@univerjs-pro/sheets-shape 0.24.0 → 0.25.0-insiders.20260604-29ebbff

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1a70bd=_0x2c14;(function(_0x544329,_0x2f5711){const _0x36358c=_0x2c14,_0x33f88a=_0x544329();while(!![]){try{const _0x1c6634=parseInt(_0x36358c(0x235))/0x1+-parseInt(_0x36358c(0x232))/0x2*(-parseInt(_0x36358c(0x1ea))/0x3)+parseInt(_0x36358c(0x1c7))/0x4+-parseInt(_0x36358c(0x1ce))/0x5+parseInt(_0x36358c(0x238))/0x6+-parseInt(_0x36358c(0x1d1))/0x7+parseInt(_0x36358c(0x200))/0x8*(-parseInt(_0x36358c(0x202))/0x9);if(_0x1c6634===_0x2f5711)break;else _0x33f88a['push'](_0x33f88a['shift']());}catch(_0xb764a){_0x33f88a['push'](_0x33f88a['shift']());}}}(_0x2fe9,0xcf9fe));import{ConnectorCoordinateTransform as _0x5dda88,ShapeArrowSizeEnum as _0x2d1f7a,ShapeArrowTypeEnum as _0x594270,ShapeFillEnum as _0x2d0686,ShapeGradientTypeEnum as _0x2104ac,ShapeLineCapEnum as _0x444bff,ShapeLineDashEnum as _0x3fe494,ShapeLineJoinEnum as _0xce6401,ShapeLineTypeEnum as _0x598361,ShapeTypeEnum as _0x2d11c6,computeConnectorRouteLayout as _0x5f27ec,getBasicShapeRotateBound as _0x1ccf79,isConnectorShape as _0x221386,routeConnectorLineShape as _0x4432fe}from'@univerjs-pro/engine-shape';import{FEnum as _0x2ce1d8}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x1c416b,DEFAULT_SHAPE_WIDTH as _0x5e2b87,InsertShapeCommand as _0x286adb,SetShapeDrawingDataCommand as _0x5ddcca,SheetsShapeService as _0x3fe959,UpdateConnectorRelationCommand as _0x4cacb3}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x7113b1,generateRandomId as _0xca9b09}from'@univerjs/core';import{IDrawingManagerService as _0x383207}from'@univerjs/drawing';import{SheetSkeletonService as _0x2114e5,convertPositionCellToSheetOverGrid as _0x37472c}from'@univerjs/sheets';import{ISheetDrawingService as _0x4b057e,RemoveSheetDrawingCommand as _0x324f42}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26ae22}from'@univerjs/sheets/facade';var k=class extends _0x2ce1d8{get[_0x1a70bd(0x20a)](){return _0x2d11c6;}get['ShapeFillEnum'](){return _0x2d0686;}get[_0x1a70bd(0x20f)](){return _0x2104ac;}get[_0x1a70bd(0x217)](){return _0x598361;}get[_0x1a70bd(0x1dd)](){return _0x3fe494;}get[_0x1a70bd(0x1c3)](){return _0x444bff;}get['ShapeLineJoinEnum'](){return _0xce6401;}get[_0x1a70bd(0x1dc)](){return _0x594270;}get[_0x1a70bd(0x207)](){return _0x2d1f7a;}};_0x2ce1d8['extend'](k);function A(_0x496c12){'@babel/helpers - typeof';const _0x5749ee=_0x1a70bd;return A=typeof Symbol==_0x5749ee(0x1d9)&&typeof Symbol[_0x5749ee(0x23a)]=='symbol'?function(_0x403591){return typeof _0x403591;}:function(_0x294aa1){const _0x50f4cb=_0x5749ee;return _0x294aa1&&typeof Symbol=='function'&&_0x294aa1['constructor']===Symbol&&_0x294aa1!==Symbol[_0x50f4cb(0x208)]?'symbol':typeof _0x294aa1;},A(_0x496c12);}function j(_0x148c4b,_0x44f207){const _0xd99366=_0x1a70bd;if(A(_0x148c4b)!=_0xd99366(0x1de)||!_0x148c4b)return _0x148c4b;var _0x12590f=_0x148c4b[Symbol[_0xd99366(0x1c6)]];if(_0x12590f!==void 0x0){var _0xff4a3c=_0x12590f[_0xd99366(0x223)](_0x148c4b,_0x44f207||_0xd99366(0x1f5));if(A(_0xff4a3c)!=_0xd99366(0x1de))return _0xff4a3c;throw TypeError(_0xd99366(0x212));}return(_0x44f207===_0xd99366(0x209)?String:Number)(_0x148c4b);}function _0x2fe9(){const _0x4c1401=['colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','5223245DHEiuD','left','getDrawingByParam','2334164RCrZKi','_injector','fillType','getShapeData','worldRect','gradientAngle','type','index','function','getSize','height','ShapeArrowTypeEnum','ShapeLineDashEnum','object','cxnIndex','stroke','sin','shapeType','GradientFill','flipY','adjustValues','setShapeGradientFill','get','insertShape','setEndArrowSize','2307qQWTEB','setShapeSolidFill','newShape','drawId','from','setHeight','_preloadShapeProperties','setShapeType','setPosition','getWorkbook','getShapeType','default','build','getAdjustNames','getDrawingData','flipX','setStrokeLineCapType','color','ensureSkeleton','getUnitId','getConnectionSiteList','point','152IsgkRy','updateShape','256257BQcUwH','subUnitId','transform','stringify','extend','ShapeArrowSizeEnum','prototype','string','ShapeTypeEnum','localToWorld','setStartArrowType','DRAWING_SHAPE','getEndConnectInfo','ShapeGradientTypeEnum','gradientType','getShapeId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endArrow','setStartArrowSize','newConnector','SolidFill','ShapeLineTypeEnum','getShapeModel','capType','setEndArrowType','shapeData','setStrokeOpacity','_commandService','setStrokeLineDashType','getPosition','lineType','executeCommand','lineJoinType','call','unitId','setStrokeWidth','setStrokeColor','getDrawingPoints','_resolveEndpoints','fill','connectShapes','drawingType','setStrokeLineJoinType','getSheetId','getShapes','shape','ang','connectionSiteIndex','790smwZJH','length','gradientStops','688156ItyIpJ','_resolveExistingOrFreeEndpoint','opacity','1177728kIhpLC','\x20and\x20subUnitId\x20','iterator','push','keys','getStartConnectInfo','defineProperty','startArrow',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','rotation','abs','top','lineStrokeType','getConnectionSites','size','ShapeLineCapEnum','\x20not\x20found','getConnectorLinePoints','toPrimitive','6325276JTvXsN','relation','width','cos','updateContext','removeShape'];_0x2fe9=function(){return _0x4c1401;};return _0x2fe9();}function M(_0x4fb2c5){const _0x1112cb=_0x1a70bd;var _0x381cf9=j(_0x4fb2c5,_0x1112cb(0x209));return A(_0x381cf9)=='symbol'?_0x381cf9:_0x381cf9+'';}function N(_0x1b1cc8,_0x34fba4,_0x28d439){const _0x14fb2d=_0x1a70bd;return(_0x34fba4=M(_0x34fba4))in _0x1b1cc8?Object[_0x14fb2d(0x23e)](_0x1b1cc8,_0x34fba4,{'value':_0x28d439,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b1cc8[_0x34fba4]=_0x28d439,_0x1b1cc8;}var P=class{constructor(_0x11e990,_0x3d6b05,_0x22073f,_0x96e0c4){const _0x5c95a0=_0x1a70bd;N(this,'unitId',void 0x0),N(this,_0x5c95a0(0x203),void 0x0),N(this,_0x5c95a0(0x1ed),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5c95a0(0x1c9),_0x5e2b87),N(this,_0x5c95a0(0x1db),_0x1c416b),N(this,_0x5c95a0(0x1e2),void 0x0),N(this,_0x5c95a0(0x21b),{}),N(this,_0x5c95a0(0x1d2),void 0x0),this[_0x5c95a0(0x224)]=_0x11e990,this[_0x5c95a0(0x203)]=_0x3d6b05,this[_0x5c95a0(0x1ed)]=_0x22073f||_0xca9b09(),this['_injector']=_0x96e0c4;}[_0x1a70bd(0x1f2)](_0x3ee561,_0x4c67c3,_0x2d4d45,_0x33faf4){const _0xbc1389=_0x1a70bd;let _0x3b3801=this[_0xbc1389(0x1d2)][_0xbc1389(0x1e7)](_0x2114e5)[_0xbc1389(0x1fc)](this[_0xbc1389(0x224)],this[_0xbc1389(0x203)]);if(!_0x3b3801)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0xbc1389(0x224)]+'\x20and\x20subUnitId\x20'+this[_0xbc1389(0x203)]+_0xbc1389(0x1c4));let {transform:_0x54f04e}=_0x37472c(this[_0xbc1389(0x224)],this['subUnitId'],{'row':_0x3ee561,'column':_0x4c67c3,'rowOffset':_0x2d4d45,'columnOffset':_0x33faf4},0x1,0x1,_0x3b3801);return this['x']=_0x54f04e[_0xbc1389(0x1cf)],this['y']=_0x54f04e['top'],this;}['setAbsolutePosition'](_0x3a3fb2,_0x5bebdb){return this['x']=_0x3a3fb2,this['y']=_0x5bebdb,this;}[_0x1a70bd(0x1f1)](_0x5bd157){const _0x421d32=_0x1a70bd;return this[_0x421d32(0x1e2)]=_0x5bd157,this;}[_0x1a70bd(0x1eb)](_0x216434,_0x39f04f){const _0xd91e55=_0x1a70bd;return this['shapeData'][_0xd91e55(0x229)]||(this['shapeData'][_0xd91e55(0x229)]={}),this[_0xd91e55(0x21b)][_0xd91e55(0x229)][_0xd91e55(0x1d3)]=_0x2d0686[_0xd91e55(0x216)],_0x216434!==void 0x0&&(this['shapeData']['fill'][_0xd91e55(0x1fb)]=_0x216434),_0x39f04f!==void 0x0&&(this[_0xd91e55(0x21b)][_0xd91e55(0x229)][_0xd91e55(0x237)]=_0x39f04f),this;}[_0x1a70bd(0x1e6)](_0x430f60,_0x52f9fc,_0x34a7bf){const _0x11d8c0=_0x1a70bd;if(_0x52f9fc===void 0x0||_0x52f9fc[_0x11d8c0(0x233)]===0x0)throw Error(_0x11d8c0(0x1cd));return this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)]||(this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)]={}),this['shapeData'][_0x11d8c0(0x229)][_0x11d8c0(0x234)]=_0x52f9fc,this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)][_0x11d8c0(0x1d3)]=_0x2d0686[_0x11d8c0(0x1e3)],this[_0x11d8c0(0x21b)]['fill'][_0x11d8c0(0x210)]=_0x430f60,_0x34a7bf!==void 0x0&&(this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)][_0x11d8c0(0x1d6)]=_0x34a7bf),this;}['setNoneFill'](){const _0x4df092=_0x1a70bd;return this[_0x4df092(0x21b)][_0x4df092(0x229)]={'fillType':_0x2d0686['NoFill']},this;}[_0x1a70bd(0x226)](_0x5eac72){const _0x359fb1=_0x1a70bd;return this[_0x359fb1(0x21b)][_0x359fb1(0x1e0)]||(this[_0x359fb1(0x21b)][_0x359fb1(0x1e0)]={}),this['shapeData'][_0x359fb1(0x1e0)][_0x359fb1(0x1fb)]=_0x5eac72,this;}[_0x1a70bd(0x225)](_0x994b82){const _0x5c04fb=_0x1a70bd;return this[_0x5c04fb(0x21b)]['stroke']||(this[_0x5c04fb(0x21b)][_0x5c04fb(0x1e0)]={}),this['shapeData'][_0x5c04fb(0x1e0)][_0x5c04fb(0x1c9)]=_0x994b82,this;}[_0x1a70bd(0x21e)](_0x8f9c37){const _0x420a55=_0x1a70bd;return this[_0x420a55(0x21b)][_0x420a55(0x1e0)]||(this[_0x420a55(0x21b)][_0x420a55(0x1e0)]={}),this[_0x420a55(0x21b)][_0x420a55(0x1e0)]['dashType']=_0x8f9c37,this;}[_0x1a70bd(0x22c)](_0x26425d){const _0x36d22a=_0x1a70bd;return this[_0x36d22a(0x21b)][_0x36d22a(0x1e0)]||(this[_0x36d22a(0x21b)]['stroke']={}),this[_0x36d22a(0x21b)][_0x36d22a(0x1e0)][_0x36d22a(0x222)]=_0x26425d,this;}[_0x1a70bd(0x1fa)](_0x31897f){const _0x14196c=_0x1a70bd;return this['shapeData'][_0x14196c(0x1e0)]||(this[_0x14196c(0x21b)][_0x14196c(0x1e0)]={}),this['shapeData'][_0x14196c(0x1e0)][_0x14196c(0x219)]=_0x31897f,this;}[_0x1a70bd(0x21c)](_0x332c31){const _0x636c9b=_0x1a70bd;return this[_0x636c9b(0x21b)][_0x636c9b(0x1e0)]||(this[_0x636c9b(0x21b)]['stroke']={}),this[_0x636c9b(0x21b)][_0x636c9b(0x1e0)][_0x636c9b(0x237)]=_0x332c31,this;}['setStrokeLineType'](_0x5c5167){const _0x180970=_0x1a70bd;return this[_0x180970(0x21b)][_0x180970(0x1e0)]||(this[_0x180970(0x21b)][_0x180970(0x1e0)]={}),this[_0x180970(0x21b)]['stroke'][_0x180970(0x244)]=_0x5c5167,this;}['setWidth'](_0x3e7dfb){const _0x35b133=_0x1a70bd;return this[_0x35b133(0x1c9)]=_0x3e7dfb,this;}[_0x1a70bd(0x1ef)](_0x395191){const _0x282712=_0x1a70bd;return this[_0x282712(0x1db)]=_0x395191,this;}['isLineShape'](){const _0x2c2021=_0x1a70bd;let _0xb714bb=this[_0x2c2021(0x1d2)][_0x2c2021(0x1e7)](_0x3fe959)['getShapeModel'](this[_0x2c2021(0x224)],this['subUnitId'],this['drawId']);return _0xb714bb?_0x221386(_0xb714bb[_0x2c2021(0x1f4)]()):this[_0x2c2021(0x1e2)]?_0x221386(this[_0x2c2021(0x1e2)]):!0x1;}[_0x1a70bd(0x1c1)](){const _0x574f1b=_0x1a70bd;let _0x4c8fc5=this[_0x574f1b(0x1d2)][_0x574f1b(0x1e7)](_0x3fe959)[_0x574f1b(0x218)](this['unitId'],this[_0x574f1b(0x203)],this[_0x574f1b(0x1ed)]);if(!_0x4c8fc5)return[];let _0x2903af=this[_0x574f1b(0x1d2)][_0x574f1b(0x1e7)](_0x383207)['getDrawingByParam']({'unitId':this[_0x574f1b(0x224)],'subUnitId':this[_0x574f1b(0x203)],'drawingId':this[_0x574f1b(0x1ed)]});if(!(_0x2903af!=null&&_0x2903af[_0x574f1b(0x204)]))return[];let {width:_0x2fe17b=0x0,height:_0x1c25b0=0x0}=_0x2903af['transform'];return _0x4c8fc5['updateContext']({'width':_0x2fe17b,'height':_0x1c25b0}),_0x4c8fc5[_0x574f1b(0x1fe)]();}['getAdjustPoints'](){const _0x586380=_0x1a70bd;let _0x4bcc3a=this[_0x586380(0x1d2)]['get'](_0x3fe959)['getShapeModel'](this[_0x586380(0x224)],this[_0x586380(0x203)],this[_0x586380(0x1ed)]);if(!_0x4bcc3a)return[];let _0xe362d7=this[_0x586380(0x1d2)]['get'](_0x383207)[_0x586380(0x1d0)]({'unitId':this[_0x586380(0x224)],'subUnitId':this[_0x586380(0x203)],'drawingId':this[_0x586380(0x1ed)]});if(!(_0xe362d7!=null&&_0xe362d7['transform']))return[];let {width:_0x1e8fd3=0x0,height:_0x1157b6=0x0}=_0xe362d7[_0x586380(0x204)];return _0x4bcc3a[_0x586380(0x1cb)]({'width':_0x1e8fd3,'height':_0x1157b6}),_0x4bcc3a[_0x586380(0x227)]();}[_0x1a70bd(0x1c5)](){const _0x5bd0b5=_0x1a70bd;let _0x33ae3b=this[_0x5bd0b5(0x1d2)][_0x5bd0b5(0x1e7)](_0x3fe959)[_0x5bd0b5(0x218)](this[_0x5bd0b5(0x224)],this[_0x5bd0b5(0x203)],this['drawId']);if(!_0x33ae3b||!_0x221386(_0x33ae3b['getShapeType']()))return[];let _0x1ddcf2=this[_0x5bd0b5(0x1d2)][_0x5bd0b5(0x1e7)](_0x383207)[_0x5bd0b5(0x1d0)]({'unitId':this['unitId'],'subUnitId':this[_0x5bd0b5(0x203)],'drawingId':this[_0x5bd0b5(0x1ed)]});if(!(_0x1ddcf2!=null&&_0x1ddcf2[_0x5bd0b5(0x204)]))return[];let {width:_0x30bca2=0x0,height:_0x58a3f2=0x0}=_0x1ddcf2['transform'];return _0x33ae3b[_0x5bd0b5(0x1cb)]({'width':_0x30bca2,'height':_0x58a3f2}),_0x33ae3b[_0x5bd0b5(0x1c5)]();}[_0x1a70bd(0x23d)](){const _0x18e13d=_0x1a70bd;var _0x32e30a;let _0x50d7ac=this['_injector']['get'](_0x3fe959)[_0x18e13d(0x218)](this[_0x18e13d(0x224)],this['subUnitId'],this['drawId']);return _0x50d7ac?(_0x32e30a=_0x50d7ac[_0x18e13d(0x23d)]())==null?null:_0x32e30a:null;}[_0x1a70bd(0x20e)](){const _0x1b3614=_0x1a70bd;var _0x3520fa;let _0x17bc49=this[_0x1b3614(0x1d2)]['get'](_0x3fe959)[_0x1b3614(0x218)](this[_0x1b3614(0x224)],this[_0x1b3614(0x203)],this['drawId']);return _0x17bc49?(_0x3520fa=_0x17bc49[_0x1b3614(0x20e)]())==null?null:_0x3520fa:null;}['build'](){const _0x390994=_0x1a70bd;var _0x582397,_0x2f7dbe;if(!this[_0x390994(0x1e2)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x46d0c6=this[_0x390994(0x1d2)][_0x390994(0x1e7)](_0x2114e5)[_0x390994(0x1fc)](this[_0x390994(0x224)],this[_0x390994(0x203)]);if(!_0x46d0c6)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x390994(0x224)]+_0x390994(0x239)+this[_0x390994(0x203)]+_0x390994(0x1c4));let {transform:_0x138872}=_0x37472c(this[_0x390994(0x224)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x46d0c6);this['x']=this['x']>0x0?this['x']:_0x138872[_0x390994(0x1cf)],this['y']=this['y']>0x0?this['y']:_0x138872[_0x390994(0x243)];}return this['width']=(_0x582397=this[_0x390994(0x1c9)])==null?_0x5e2b87:_0x582397,this['height']=(_0x2f7dbe=this[_0x390994(0x1db)])==null?_0x1c416b:_0x2f7dbe,{'unitId':this[_0x390994(0x224)],'subUnitId':this[_0x390994(0x203)],'shapeId':this[_0x390994(0x1ed)],'shapeType':this[_0x390994(0x1e2)],'shapeData':Object[_0x390994(0x23c)](this['shapeData'])['length']>0x0?this[_0x390994(0x21b)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x390994(0x1c9)],'height':this[_0x390994(0x1db)]};}[_0x1a70bd(0x211)](){const _0x2d04b3=_0x1a70bd;return this[_0x2d04b3(0x1ed)];}[_0x1a70bd(0x1f4)](){const _0x3d4cc9=_0x1a70bd;return this[_0x3d4cc9(0x1e2)];}[_0x1a70bd(0x1d4)](){const _0x5a5b71=_0x1a70bd;return this[_0x5a5b71(0x21b)];}[_0x1a70bd(0x21f)](){return{'x':this['x'],'y':this['y']};}[_0x1a70bd(0x1da)](){const _0x237137=_0x1a70bd;return{'width':this[_0x237137(0x1c9)],'height':this[_0x237137(0x1db)]};}},F=class extends P{constructor(_0x96539e,_0x799170,_0xff615f,_0x3d167a){const _0x4baaa8=_0x1a70bd;super(_0x96539e,_0x799170,_0xff615f,_0x3d167a),N(this,_0x4baaa8(0x21b),{});}[_0x1a70bd(0x1f1)](_0x53401f){const _0x2d10a5=_0x1a70bd;if(!_0x221386(_0x53401f))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x53401f+_0x2d10a5(0x240));return super[_0x2d10a5(0x1f1)](_0x53401f),this;}[_0x1a70bd(0x20c)](_0x4063a5){const _0x2e5309=_0x1a70bd;var _0x43f810,_0x2301c6;return(_0x43f810=this[_0x2e5309(0x21b)])!=null&&_0x43f810['ln']||(this[_0x2e5309(0x21b)]['ln']={}),!((_0x2301c6=this[_0x2e5309(0x21b)])==null||(_0x2301c6=_0x2301c6['ln'])==null)&&_0x2301c6[_0x2e5309(0x23f)]||(this[_0x2e5309(0x21b)]['ln'][_0x2e5309(0x23f)]={}),this['shapeData']['ln'][_0x2e5309(0x23f)][_0x2e5309(0x1d7)]=_0x4063a5,this;}[_0x1a70bd(0x21a)](_0x44daec){const _0x387b1e=_0x1a70bd;var _0x203513,_0xf03a46;return(_0x203513=this[_0x387b1e(0x21b)])!=null&&_0x203513['ln']||(this[_0x387b1e(0x21b)]['ln']={}),!((_0xf03a46=this[_0x387b1e(0x21b)])==null||(_0xf03a46=_0xf03a46['ln'])==null)&&_0xf03a46['endArrow']||(this[_0x387b1e(0x21b)]['ln'][_0x387b1e(0x213)]={}),this[_0x387b1e(0x21b)]['ln'][_0x387b1e(0x213)][_0x387b1e(0x1d7)]=_0x44daec,this;}[_0x1a70bd(0x214)](_0x5eb6c9){const _0x485b63=_0x1a70bd;var _0x4e4065,_0x14bcc3;return(_0x4e4065=this[_0x485b63(0x21b)])!=null&&_0x4e4065['ln']||(this[_0x485b63(0x21b)]['ln']={}),!((_0x14bcc3=this[_0x485b63(0x21b)])==null||(_0x14bcc3=_0x14bcc3['ln'])==null)&&_0x14bcc3['startArrow']||(this[_0x485b63(0x21b)]['ln'][_0x485b63(0x23f)]={}),this['shapeData']['ln'][_0x485b63(0x23f)][_0x485b63(0x1c2)]=_0x5eb6c9,this;}[_0x1a70bd(0x1e9)](_0x976007){const _0xfb8c96=_0x1a70bd;var _0x50b1b1,_0x58ddbd;return(_0x50b1b1=this[_0xfb8c96(0x21b)])!=null&&_0x50b1b1['ln']||(this[_0xfb8c96(0x21b)]['ln']={}),!((_0x58ddbd=this[_0xfb8c96(0x21b)])==null||(_0x58ddbd=_0x58ddbd['ln'])==null)&&_0x58ddbd['endArrow']||(this[_0xfb8c96(0x21b)]['ln'][_0xfb8c96(0x213)]={}),this[_0xfb8c96(0x21b)]['ln'][_0xfb8c96(0x213)][_0xfb8c96(0x1c2)]=_0x976007,this;}['build'](){const _0x1f74be=_0x1a70bd;return super[_0x1f74be(0x1f6)]();}[_0x1a70bd(0x20e)](){const _0xb47b30=_0x1a70bd;var _0xdd1ada;return((_0xdd1ada=this['shapeData'])==null||(_0xdd1ada=_0xdd1ada[_0xb47b30(0x1c8)])==null?void 0x0:_0xdd1ada['to'])||null;}[_0x1a70bd(0x23d)](){const _0x1b7648=_0x1a70bd;var _0x5f72dc;return((_0x5f72dc=this[_0x1b7648(0x21b)])==null||(_0x5f72dc=_0x5f72dc[_0x1b7648(0x1c8)])==null?void 0x0:_0x5f72dc['from'])||null;}};function I(_0x13fb05,_0x39e15e,_0x5b92c7,_0x3f99fc,_0x5090f4,_0x2365ae){const _0x2ee033=_0x1a70bd;let _0x468a2b=_0x5090f4[_0x2ee033(0x218)](_0x13fb05,_0x39e15e,_0x5b92c7);if(!_0x468a2b)return null;let _0x258a02=_0x2365ae[_0x2ee033(0x1d0)]({'unitId':_0x13fb05,'subUnitId':_0x39e15e,'drawingId':_0x5b92c7});if(!(_0x258a02!=null&&_0x258a02[_0x2ee033(0x204)]))return null;let {left:_0x403edd=0x0,top:_0x43a0a6=0x0,width:_0x5bbf2b=0x0,height:_0x17281f=0x0,flipX:_0x5a9cec=!0x1,flipY:_0xf291c=!0x1,angle:_0xab7cfe}=_0x258a02['transform'];_0x468a2b[_0x2ee033(0x1cb)]({'width':_0x5bbf2b,'height':_0x17281f});let _0x3b4335=_0x468a2b[_0x2ee033(0x1fe)]()['find'](_0x26d285=>_0x26d285[_0x2ee033(0x1d8)]===_0x3f99fc);if(!_0x3b4335)return null;let _0x34b116=_0x5a9cec?_0x5bbf2b-_0x3b4335['x']:_0x3b4335['x'],_0x58e989=_0xf291c?_0x17281f-_0x3b4335['y']:_0x3b4335['y'];if(_0xab7cfe&&_0xab7cfe!==0x0){let _0x50b6f0=_0xab7cfe*Math['PI']/0xb4,_0x1d4d74=Math[_0x2ee033(0x1ca)](_0x50b6f0),_0x4be184=Math[_0x2ee033(0x1e1)](_0x50b6f0),_0x199304=_0x5bbf2b/0x2,_0x3188f5=_0x17281f/0x2,_0x12a69f=_0x34b116-_0x199304,_0x319a2f=_0x58e989-_0x3188f5;_0x34b116=_0x199304+_0x12a69f*_0x1d4d74-_0x319a2f*_0x4be184,_0x58e989=_0x3188f5+_0x12a69f*_0x4be184+_0x319a2f*_0x1d4d74;}_0x34b116+=_0x403edd,_0x58e989+=_0x43a0a6;let _0x393733=_0x3b4335[_0x2ee033(0x230)]/0xea60;_0x5a9cec&&(_0x393733=0xb4-_0x393733),_0xf291c&&(_0x393733=-_0x393733),_0x393733+=_0xab7cfe||0x0,_0x393733=(_0x393733%0x168+0x168)%0x168;let _0x3614f0=_0x1ccf79({'left':_0x403edd,'top':_0x43a0a6,'width':_0x5bbf2b,'height':_0x17281f},_0xab7cfe||0x0);return{'point':{'x':_0x34b116,'y':_0x58e989},'angle':_0x393733,'bounds':_0x3614f0};}function L(_0x408463,_0x2298b9){const _0x39ef1b=_0x1a70bd;let _0x509e5e=_0x2298b9['x']-_0x408463['x'],_0x30283f=_0x2298b9['y']-_0x408463['y'];return Math[_0x39ef1b(0x242)](_0x509e5e)>=Math[_0x39ef1b(0x242)](_0x30283f)?_0x509e5e>=0x0?0xb4:0x0:_0x30283f>=0x0?0x10e:0x5a;}function R(_0x3c7d22,_0x8eee2c,_0x1a489b,_0x12e955,_0x4a7462,_0x26668c,_0x1bb58c){const _0x39afa8=_0x1a70bd;let _0x43e341=_0x26668c[_0x39afa8(0x218)](_0x3c7d22,_0x8eee2c,_0x1a489b);if(!_0x43e341)return null;let _0x340a6e=_0x1bb58c[_0x39afa8(0x1d0)]({'unitId':_0x3c7d22,'subUnitId':_0x8eee2c,'drawingId':_0x1a489b});if(!(_0x340a6e!=null&&_0x340a6e[_0x39afa8(0x204)]))return null;let {left:_0x3001c8=0x0,top:_0x1071e2=0x0,width:_0x5f1041=0x0,height:_0x29d07f=0x0,flipX:_0x3d5d72=!0x1,flipY:_0x1c8e2a=!0x1}=_0x340a6e['transform'];_0x43e341['updateContext']({'width':_0x5f1041,'height':_0x29d07f});let _0x2a9092=_0x43e341[_0x39afa8(0x1c5)]();if(_0x2a9092[_0x39afa8(0x233)]<0x2)return null;let _0x8ead84=_0x12e955?_0x2a9092[0x0]:_0x2a9092[_0x2a9092[_0x39afa8(0x233)]-0x1],_0x3b78c6=new _0x5dda88({'left':_0x3001c8,'top':_0x1071e2,'width':_0x5f1041,'height':_0x29d07f,'flipX':_0x3d5d72,'flipY':_0x1c8e2a})[_0x39afa8(0x20b)](_0x8ead84);return{'point':_0x3b78c6,'angle':L(_0x4a7462[_0x39afa8(0x1ff)],_0x3b78c6),'bounds':{'left':_0x3b78c6['x'],'top':_0x3b78c6['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26ae22{async[_0x1a70bd(0x1e8)](_0x20dcc5){const _0x167355=_0x1a70bd;let {unitId:_0x3744ab,subUnitId:_0xfa01b9,shapeId:_0x1b4eb0,shapeType:_0x4f892f,shapeData:_0x4db7f8,x:_0x23aa67,y:_0xabd2b4,width:_0x5c9ab0,height:_0x138ad5}=_0x20dcc5;return this[_0x167355(0x21d)]['executeCommand'](_0x286adb['id'],{'unitId':_0x3744ab,'subUnitId':_0xfa01b9,'shapeId':_0x1b4eb0,'shapeType':_0x4f892f,'shapeData':_0x4db7f8,'position':{'x':_0x23aa67,'y':_0xabd2b4},'width':_0x5c9ab0,'height':_0x138ad5});}async[_0x1a70bd(0x201)](_0xdbdefc){const _0x1def2d=_0x1a70bd;let {unitId:_0x2ef823,subUnitId:_0x5470dc,shapeId:_0x4457ad,shapeType:_0x126949,shapeData:_0x8a380f,x:_0x94e417,y:_0x4871c5,width:_0x4de276,height:_0x39b880}=_0xdbdefc;return this[_0x1def2d(0x21d)][_0x1def2d(0x221)](_0x5ddcca['id'],{'unitId':_0x2ef823,'subUnitId':_0x5470dc,'shapeId':_0x4457ad,'shapeType':_0x126949,'shapeData':_0x8a380f,'position':{'x':_0x94e417,'y':_0x4871c5},'width':_0x4de276,'height':_0x39b880});}[_0x1a70bd(0x1ec)](_0x55377d){const _0x2867b5=_0x1a70bd;let _0x3732a7=this[_0x2867b5(0x1f3)]()[_0x2867b5(0x1fd)](),_0x25dda3=this[_0x2867b5(0x22d)]();if(_0x55377d){let _0x2e942d=new P(_0x3732a7,_0x25dda3,_0x55377d[_0x2867b5(0x1ed)],this[_0x2867b5(0x1d2)]);return this[_0x2867b5(0x1f0)](_0x2e942d,_0x3732a7,_0x25dda3,_0x55377d['drawId']),_0x2e942d;}return new P(_0x3732a7,_0x25dda3,_0xca9b09(),this['_injector']);}[_0x1a70bd(0x215)](_0x15611a){const _0x250b03=_0x1a70bd;let _0x4b94bd=this[_0x250b03(0x1f3)]()['getUnitId'](),_0x2c8aed=this[_0x250b03(0x22d)]();if(_0x15611a){let _0x4d04fb=new F(_0x4b94bd,_0x2c8aed,_0x15611a['drawId'],this[_0x250b03(0x1d2)]);return this[_0x250b03(0x1f0)](_0x4d04fb,_0x4b94bd,_0x2c8aed,_0x15611a['drawId']),_0x4d04fb;}return new F(_0x4b94bd,_0x2c8aed,_0xca9b09(),this[_0x250b03(0x1d2)]);}[_0x1a70bd(0x22e)](){const _0x11b29f=_0x1a70bd;let _0x1510ac=this[_0x11b29f(0x1d2)][_0x11b29f(0x1e7)](_0x4b057e),_0x3262d6=this[_0x11b29f(0x1f3)]()[_0x11b29f(0x1fd)](),_0x34cefe=this[_0x11b29f(0x22d)](),_0x591ef9=_0x1510ac[_0x11b29f(0x1f8)](_0x3262d6,_0x34cefe);if(!_0x591ef9)return[];let _0x2dbb27=[];for(let [_0x2d99f4,_0x5602aa]of Object['entries'](_0x591ef9))if(_0x5602aa&&_0x5602aa[_0x11b29f(0x22b)]===_0x7113b1[_0x11b29f(0x20d)]){let _0x5b4721=new P(_0x3262d6,_0x34cefe,_0x2d99f4,this[_0x11b29f(0x1d2)]);this[_0x11b29f(0x1f0)](_0x5b4721,_0x3262d6,_0x34cefe,_0x2d99f4),_0x2dbb27[_0x11b29f(0x23b)](_0x5b4721);}return _0x2dbb27;}[_0x1a70bd(0x1cc)](_0x2a5808){const _0x3585fb=_0x1a70bd;let {unitId:_0x16ac09,subUnitId:_0x4d8785,drawId:_0x478aad}=_0x2a5808;return this[_0x3585fb(0x21d)][_0x3585fb(0x221)](_0x324f42['id'],{'unitId':_0x16ac09,'drawings':[{'unitId':_0x16ac09,'subUnitId':_0x4d8785,'drawingId':_0x478aad,'drawingType':_0x7113b1[_0x3585fb(0x20d)]}]});}async[_0x1a70bd(0x22a)](_0x19108b){const _0x263b7c=_0x1a70bd;let {connector:_0x14be9d,startTarget:_0x51dca8,endTarget:_0x34aea1}=_0x19108b;if(!_0x51dca8&&!_0x34aea1)return!0x1;let _0x29142d=this[_0x263b7c(0x1f3)]()[_0x263b7c(0x1fd)](),_0x291ffb=this[_0x263b7c(0x22d)](),_0x2407e4=this[_0x263b7c(0x1d2)][_0x263b7c(0x1e7)](_0x3fe959),_0xfbc104=this[_0x263b7c(0x1d2)][_0x263b7c(0x1e7)](_0x383207),_0x80f674=_0x2407e4['getShapeModel'](_0x29142d,_0x291ffb,_0x14be9d[_0x263b7c(0x1ed)]);if(!_0x80f674)return!0x1;let _0x3f5884=_0x80f674[_0x263b7c(0x1f4)](),_0x5f02c3=_0x80f674['getShapeRelation'](),_0x4e353b={};for(let _0x3272f9 of _0x80f674[_0x263b7c(0x1f7)]()){let _0x31e993=_0x80f674['getAdjustValueByName'](_0x3272f9);_0x31e993!==void 0x0&&(_0x4e353b[_0x3272f9]=_0x31e993);}let {startInfo:_0x3ba3f1,endInfo:_0x170999}=this[_0x263b7c(0x228)](_0x29142d,_0x291ffb,_0x14be9d,_0x80f674,_0x51dca8,_0x34aea1,_0x2407e4,_0xfbc104,_0x5f02c3);if(!_0x3ba3f1||!_0x170999)return!0x1;let _0x105ef6=_0x5f27ec(_0x4432fe(_0x3ba3f1,_0x170999,_0x3f5884),_0x3f5884),_0x1e5f69={};return _0x51dca8?_0x1e5f69['from']={'shapeId':_0x51dca8['shape'][_0x263b7c(0x1ed)],'cxnIndex':_0x51dca8['connectionSiteIndex']}:_0x5f02c3!=null&&_0x5f02c3[_0x263b7c(0x1ee)]&&(_0x1e5f69['from']=_0x5f02c3['from']),_0x34aea1?_0x1e5f69['to']={'shapeId':_0x34aea1[_0x263b7c(0x22f)]['drawId'],'cxnIndex':_0x34aea1[_0x263b7c(0x231)]}:_0x5f02c3!=null&&_0x5f02c3['to']&&(_0x1e5f69['to']=_0x5f02c3['to']),this[_0x263b7c(0x21d)]['executeCommand'](_0x4cacb3['id'],{'unitId':_0x29142d,'subUnitId':_0x291ffb,'connectorShapeId':_0x14be9d[_0x263b7c(0x1ed)],'width':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1c9)],'height':_0x105ef6[_0x263b7c(0x1d5)]['height'],'left':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1cf)],'top':_0x105ef6['worldRect']['top'],'flipX':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1f9)]||!0x1,'flipY':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1e4)]||!0x1,'oldAdjustValues':_0x4e353b,'newAdjustValues':_0x105ef6[_0x263b7c(0x1e5)],'newLineType':_0x105ef6[_0x263b7c(0x220)],'oldLineType':_0x3f5884,'rotation':_0x105ef6[_0x263b7c(0x241)],'oldRelation':_0x5f02c3,'newRelation':_0x1e5f69});}[_0x1a70bd(0x1f0)](_0x2cb91c,_0x572092,_0x2e143a,_0x45ec04){const _0xd2b492=_0x1a70bd;let _0x10bd8c=this[_0xd2b492(0x1d2)]['get'](_0x383207)[_0xd2b492(0x1d0)]({'unitId':_0x572092,'subUnitId':_0x2e143a,'drawingId':_0x45ec04});if(_0x10bd8c!=null&&_0x10bd8c[_0xd2b492(0x204)]){var _0x3d08aa,_0x2acd3c,_0x2490b1,_0x1dfdf2;_0x2cb91c['x']=(_0x3d08aa=_0x10bd8c['transform']['left'])==null?0x0:_0x3d08aa,_0x2cb91c['y']=(_0x2acd3c=_0x10bd8c['transform']['top'])==null?0x0:_0x2acd3c,_0x2cb91c[_0xd2b492(0x1c9)]=(_0x2490b1=_0x10bd8c[_0xd2b492(0x204)][_0xd2b492(0x1c9)])==null?_0x2cb91c['width']:_0x2490b1,_0x2cb91c[_0xd2b492(0x1db)]=(_0x1dfdf2=_0x10bd8c['transform']['height'])==null?_0x2cb91c[_0xd2b492(0x1db)]:_0x1dfdf2;}let _0x3ad149=this[_0xd2b492(0x1d2)][_0xd2b492(0x1e7)](_0x3fe959)[_0xd2b492(0x218)](_0x572092,_0x2e143a,_0x45ec04);if(_0x3ad149){_0x2cb91c[_0xd2b492(0x1e2)]=_0x3ad149[_0xd2b492(0x1f4)]();let _0x6936fb=_0x3ad149[_0xd2b492(0x1d4)]();_0x6936fb&&(_0x2cb91c[_0xd2b492(0x21b)]=JSON['parse'](JSON[_0xd2b492(0x205)](_0x6936fb)));}}['_resolveEndpoints'](_0xa5f090,_0x29583f,_0x3f01ae,_0x4676ec,_0x580e57,_0x558ac6,_0x2b21ae,_0x43d1b3,_0x341001){const _0x1753c8=_0x1a70bd;let _0x15e03d=null,_0x3f1b73=null;return _0x580e57&&(_0x15e03d=I(_0xa5f090,_0x29583f,_0x580e57[_0x1753c8(0x22f)][_0x1753c8(0x1ed)],_0x580e57[_0x1753c8(0x231)],_0x2b21ae,_0x43d1b3)),_0x558ac6&&(_0x3f1b73=I(_0xa5f090,_0x29583f,_0x558ac6['shape'][_0x1753c8(0x1ed)],_0x558ac6[_0x1753c8(0x231)],_0x2b21ae,_0x43d1b3)),_0x15e03d||(_0x15e03d=this[_0x1753c8(0x236)](_0xa5f090,_0x29583f,_0x3f01ae[_0x1753c8(0x1ed)],!0x0,_0x3f1b73,_0x341001==null?void 0x0:_0x341001[_0x1753c8(0x1ee)],_0x2b21ae,_0x43d1b3)),_0x3f1b73||(_0x3f1b73=this[_0x1753c8(0x236)](_0xa5f090,_0x29583f,_0x3f01ae['drawId'],!0x1,_0x15e03d,_0x341001==null?void 0x0:_0x341001['to'],_0x2b21ae,_0x43d1b3)),{'startInfo':_0x15e03d,'endInfo':_0x3f1b73};}[_0x1a70bd(0x236)](_0x39e1e9,_0x5e3334,_0x2c157b,_0x234abc,_0x2eac03,_0x3bf25c,_0x1a168f,_0x8d9eb5){const _0x3af242=_0x1a70bd;if(_0x3bf25c){let _0x299b72=I(_0x39e1e9,_0x5e3334,_0x3bf25c['shapeId'],_0x3bf25c[_0x3af242(0x1df)],_0x1a168f,_0x8d9eb5);if(_0x299b72)return _0x299b72;}return _0x2eac03?R(_0x39e1e9,_0x5e3334,_0x2c157b,_0x234abc,_0x2eac03,_0x1a168f,_0x8d9eb5):null;}};function _0x2c14(_0x8f1f09,_0x1b9adb){_0x8f1f09=_0x8f1f09-0x1c1;const _0x2fe922=_0x2fe9();let _0x2c1456=_0x2fe922[_0x8f1f09];return _0x2c1456;}_0x26ae22[_0x1a70bd(0x206)](z);export{F as FConnectorShape,P as FShape};
1
+ function _0x2deb(){const _0x1c177c=['constructor','ShapeLineJoinEnum','setShapeSolidFill','opacity','getShapeType','ShapeArrowSizeEnum','symbol','3702360LRPYSO','27yhKSRQ','1CeNqBP','worldRect','getConnectionSiteList','iterator','type','relation','function','getDrawingPoints','entries','setStrokeLineDashType','setWidth','getSheetId','removeShape','startArrow','getConnectorLinePoints','ShapeLineCapEnum','object','fill','string','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','top','getShapeRelation','insertShape','SolidFill','connectionSiteIndex','extend','getAdjustPoints','getSize','newConnector','width','capType','default','lineJoinType','cos','adjustValues','getShapes','1436218WdRstN','setStrokeLineJoinType','transform','prototype','getEndConnectInfo','defineProperty','shape','parse','executeCommand','setStrokeColor','get','_resolveEndpoints','_preloadShapeProperties','shapeId','gradientType','sin','_commandService','getDrawingData','shapeData','32lWvUux','left','size','getShapeId','drawingType','DRAWING_SHAPE','ShapeLineDashEnum','newShape','connectShapes','setStartArrowType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawId','getAdjustValueByName','getShapeData','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','setPosition','height','getUnitId','endArrow','NoFill','Skeleton\x20for\x20unitId\x20','gradientAngle','toPrimitive','lineStrokeType','point','setStrokeLineCapType','14025888RPxyFa','setStrokeOpacity','getStartConnectInfo','setShapeType','getShapeModel','from',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','GradientFill','6842465ovwmLl','ensureSkeleton','setStrokeLineType','_resolveExistingOrFreeEndpoint','163011poVULx','getDrawingByParam','getWorkbook','setStartArrowSize','ShapeTypeEnum','updateContext','getAdjustNames','\x20and\x20subUnitId\x20','ShapeLineTypeEnum','3168935BoAohI','call','stroke','_injector','subUnitId','cxnIndex','abs','ShapeArrowTypeEnum','build','index','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','setStrokeWidth','unitId','length','shapeType','setEndArrowSize','getPosition','7115484UtbiCI','setNoneFill'];_0x2deb=function(){return _0x1c177c;};return _0x2deb();}const _0xa2463b=_0x2503;(function(_0x299186,_0x1b1854){const _0x2100fb=_0x2503,_0xdd6fc9=_0x299186();while(!![]){try{const _0x5605ba=parseInt(_0x2100fb(0x1de))/0x1*(parseInt(_0x2100fb(0x202))/0x2)+-parseInt(_0x2100fb(0x1b9))/0x3*(-parseInt(_0x2100fb(0x215))/0x4)+parseInt(_0x2100fb(0x1c2))/0x5+-parseInt(_0x2100fb(0x1d3))/0x6+parseInt(_0x2100fb(0x1b5))/0x7+-parseInt(_0x2100fb(0x1ad))/0x8+-parseInt(_0x2100fb(0x1dd))/0x9*(-parseInt(_0x2100fb(0x1dc))/0xa);if(_0x5605ba===_0x1b1854)break;else _0xdd6fc9['push'](_0xdd6fc9['shift']());}catch(_0x44d2fd){_0xdd6fc9['push'](_0xdd6fc9['shift']());}}}(_0x2deb,0xe46dd));import{ConnectorCoordinateTransform as _0x26d8d2,ShapeArrowSizeEnum as _0x20943d,ShapeArrowTypeEnum as _0x241bc8,ShapeFillEnum as _0x4cb821,ShapeGradientTypeEnum as _0x3e5f5b,ShapeLineCapEnum as _0x44267e,ShapeLineDashEnum as _0x56b446,ShapeLineJoinEnum as _0x8efbab,ShapeLineTypeEnum as _0xa14801,ShapeTypeEnum as _0x333862,computeConnectorRouteLayout as _0x5bb031,getBasicShapeRotateBound as _0x19bd62,isConnectorShape as _0x3448ac,routeConnectorLineShape as _0x2bc896}from'@univerjs-pro/engine-shape';import{FEnum as _0x4bb67d}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x79874,DEFAULT_SHAPE_WIDTH as _0x10b147,InsertShapeCommand as _0x39e09c,SetShapeDrawingDataCommand as _0x37525d,SheetsShapeService as _0x4bc659,UpdateConnectorRelationCommand as _0x42361b}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x4c500d,generateRandomId as _0x287657}from'@univerjs/core';import{IDrawingManagerService as _0x1e4021}from'@univerjs/drawing';import{SheetSkeletonService as _0x3201a7,convertPositionCellToSheetOverGrid as _0x5a45ad}from'@univerjs/sheets';import{ISheetDrawingService as _0x51eaf6,RemoveSheetDrawingCommand as _0x211153}from'@univerjs/sheets-drawing';import{FWorksheet as _0xf5b551}from'@univerjs/sheets/facade';var k=class extends _0x4bb67d{get[_0xa2463b(0x1bd)](){return _0x333862;}get['ShapeFillEnum'](){return _0x4cb821;}get['ShapeGradientTypeEnum'](){return _0x3e5f5b;}get[_0xa2463b(0x1c1)](){return _0xa14801;}get[_0xa2463b(0x21b)](){return _0x56b446;}get[_0xa2463b(0x1ed)](){return _0x44267e;}get[_0xa2463b(0x1d6)](){return _0x8efbab;}get[_0xa2463b(0x1c9)](){return _0x241bc8;}get[_0xa2463b(0x1da)](){return _0x20943d;}};_0x4bb67d[_0xa2463b(0x1f7)](k);function A(_0x1a01e1){'@babel/helpers - typeof';const _0x3b436e=_0xa2463b;return A=typeof Symbol==_0x3b436e(0x1e4)&&typeof Symbol[_0x3b436e(0x1e1)]==_0x3b436e(0x1db)?function(_0x44ff34){return typeof _0x44ff34;}:function(_0xecd589){const _0x3baf2e=_0x3b436e;return _0xecd589&&typeof Symbol==_0x3baf2e(0x1e4)&&_0xecd589[_0x3baf2e(0x1d5)]===Symbol&&_0xecd589!==Symbol[_0x3baf2e(0x205)]?_0x3baf2e(0x1db):typeof _0xecd589;},A(_0x1a01e1);}function j(_0x146c66,_0x22c367){const _0x46583a=_0xa2463b;if(A(_0x146c66)!=_0x46583a(0x1ee)||!_0x146c66)return _0x146c66;var _0x1fdbd7=_0x146c66[Symbol[_0x46583a(0x1a9)]];if(_0x1fdbd7!==void 0x0){var _0x43e84d=_0x1fdbd7[_0x46583a(0x1c3)](_0x146c66,_0x22c367||_0x46583a(0x1fd));if(A(_0x43e84d)!=_0x46583a(0x1ee))return _0x43e84d;throw TypeError(_0x46583a(0x21f));}return(_0x22c367===_0x46583a(0x1f0)?String:Number)(_0x146c66);}function _0x2503(_0x45e8d6,_0x12f457){_0x45e8d6=_0x45e8d6-0x1a9;const _0x2deb42=_0x2deb();let _0x2503a6=_0x2deb42[_0x45e8d6];return _0x2503a6;}function M(_0x4df7c9){const _0x2707a5=_0xa2463b;var _0x27811d=j(_0x4df7c9,_0x2707a5(0x1f0));return A(_0x27811d)==_0x2707a5(0x1db)?_0x27811d:_0x27811d+'';}function N(_0x52cc1e,_0x2f3dbd,_0x594bb9){const _0x2d5e8a=_0xa2463b;return(_0x2f3dbd=M(_0x2f3dbd))in _0x52cc1e?Object[_0x2d5e8a(0x207)](_0x52cc1e,_0x2f3dbd,{'value':_0x594bb9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52cc1e[_0x2f3dbd]=_0x594bb9,_0x52cc1e;}var P=class{constructor(_0x3f2c6b,_0x4780ce,_0x1c2339,_0x1080c5){const _0x5be753=_0xa2463b;N(this,_0x5be753(0x1ce),void 0x0),N(this,_0x5be753(0x1c6),void 0x0),N(this,'drawId',void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5be753(0x1fb),_0x10b147),N(this,_0x5be753(0x225),_0x79874),N(this,'shapeType',void 0x0),N(this,'shapeData',{}),N(this,'_injector',void 0x0),this['unitId']=_0x3f2c6b,this[_0x5be753(0x1c6)]=_0x4780ce,this[_0x5be753(0x220)]=_0x1c2339||_0x287657(),this[_0x5be753(0x1c5)]=_0x1080c5;}[_0xa2463b(0x224)](_0x450882,_0x119e3b,_0x1053a0,_0x526f96){const _0x56c49f=_0xa2463b;let _0x1cba72=this[_0x56c49f(0x1c5)]['get'](_0x3201a7)[_0x56c49f(0x1b6)](this[_0x56c49f(0x1ce)],this[_0x56c49f(0x1c6)]);if(!_0x1cba72)throw Error(_0x56c49f(0x229)+this[_0x56c49f(0x1ce)]+_0x56c49f(0x1c0)+this['subUnitId']+'\x20not\x20found');let {transform:_0x5e8dd5}=_0x5a45ad(this['unitId'],this[_0x56c49f(0x1c6)],{'row':_0x450882,'column':_0x119e3b,'rowOffset':_0x1053a0,'columnOffset':_0x526f96},0x1,0x1,_0x1cba72);return this['x']=_0x5e8dd5[_0x56c49f(0x216)],this['y']=_0x5e8dd5[_0x56c49f(0x1f2)],this;}['setAbsolutePosition'](_0x360a42,_0x1aa758){return this['x']=_0x360a42,this['y']=_0x1aa758,this;}[_0xa2463b(0x1b0)](_0x860f28){const _0x3e2be8=_0xa2463b;return this[_0x3e2be8(0x1d0)]=_0x860f28,this;}[_0xa2463b(0x1d7)](_0xd5e495,_0x125038){const _0x167bfe=_0xa2463b;return this[_0x167bfe(0x214)][_0x167bfe(0x1ef)]||(this['shapeData'][_0x167bfe(0x1ef)]={}),this[_0x167bfe(0x214)][_0x167bfe(0x1ef)]['fillType']=_0x4cb821[_0x167bfe(0x1f5)],_0xd5e495!==void 0x0&&(this[_0x167bfe(0x214)]['fill']['color']=_0xd5e495),_0x125038!==void 0x0&&(this[_0x167bfe(0x214)][_0x167bfe(0x1ef)][_0x167bfe(0x1d8)]=_0x125038),this;}['setShapeGradientFill'](_0x437c1b,_0x41986d,_0x226570){const _0x410134=_0xa2463b;if(_0x41986d===void 0x0||_0x41986d[_0x410134(0x1cf)]===0x0)throw Error(_0x410134(0x1f1));return this[_0x410134(0x214)][_0x410134(0x1ef)]||(this[_0x410134(0x214)][_0x410134(0x1ef)]={}),this[_0x410134(0x214)]['fill']['gradientStops']=_0x41986d,this[_0x410134(0x214)][_0x410134(0x1ef)]['fillType']=_0x4cb821[_0x410134(0x1b4)],this[_0x410134(0x214)][_0x410134(0x1ef)][_0x410134(0x210)]=_0x437c1b,_0x226570!==void 0x0&&(this[_0x410134(0x214)][_0x410134(0x1ef)][_0x410134(0x22a)]=_0x226570),this;}[_0xa2463b(0x1d4)](){const _0x3fa742=_0xa2463b;return this[_0x3fa742(0x214)][_0x3fa742(0x1ef)]={'fillType':_0x4cb821[_0x3fa742(0x228)]},this;}[_0xa2463b(0x20b)](_0x309ea6){const _0x49bd47=_0xa2463b;return this[_0x49bd47(0x214)]['stroke']||(this[_0x49bd47(0x214)][_0x49bd47(0x1c4)]={}),this[_0x49bd47(0x214)][_0x49bd47(0x1c4)]['color']=_0x309ea6,this;}[_0xa2463b(0x1cd)](_0x5090ab){const _0x4bad6b=_0xa2463b;return this[_0x4bad6b(0x214)]['stroke']||(this[_0x4bad6b(0x214)]['stroke']={}),this['shapeData']['stroke'][_0x4bad6b(0x1fb)]=_0x5090ab,this;}[_0xa2463b(0x1e7)](_0x2bc3e2){const _0x1c3833=_0xa2463b;return this[_0x1c3833(0x214)][_0x1c3833(0x1c4)]||(this[_0x1c3833(0x214)][_0x1c3833(0x1c4)]={}),this[_0x1c3833(0x214)][_0x1c3833(0x1c4)]['dashType']=_0x2bc3e2,this;}[_0xa2463b(0x203)](_0x290d38){const _0x15a2ea=_0xa2463b;return this[_0x15a2ea(0x214)]['stroke']||(this['shapeData'][_0x15a2ea(0x1c4)]={}),this[_0x15a2ea(0x214)][_0x15a2ea(0x1c4)][_0x15a2ea(0x1fe)]=_0x290d38,this;}[_0xa2463b(0x1ac)](_0x3c21e3){const _0x3f4d2c=_0xa2463b;return this[_0x3f4d2c(0x214)][_0x3f4d2c(0x1c4)]||(this[_0x3f4d2c(0x214)][_0x3f4d2c(0x1c4)]={}),this[_0x3f4d2c(0x214)][_0x3f4d2c(0x1c4)][_0x3f4d2c(0x1fc)]=_0x3c21e3,this;}[_0xa2463b(0x1ae)](_0x1d1c4b){const _0x5105af=_0xa2463b;return this[_0x5105af(0x214)][_0x5105af(0x1c4)]||(this[_0x5105af(0x214)][_0x5105af(0x1c4)]={}),this[_0x5105af(0x214)][_0x5105af(0x1c4)][_0x5105af(0x1d8)]=_0x1d1c4b,this;}[_0xa2463b(0x1b7)](_0x207f3c){const _0x3e2422=_0xa2463b;return this[_0x3e2422(0x214)][_0x3e2422(0x1c4)]||(this['shapeData'][_0x3e2422(0x1c4)]={}),this[_0x3e2422(0x214)][_0x3e2422(0x1c4)][_0x3e2422(0x1aa)]=_0x207f3c,this;}[_0xa2463b(0x1e8)](_0x4f7fd7){return this['width']=_0x4f7fd7,this;}['setHeight'](_0x404347){return this['height']=_0x404347,this;}['isLineShape'](){const _0x2ea97a=_0xa2463b;let _0x5bef52=this[_0x2ea97a(0x1c5)]['get'](_0x4bc659)[_0x2ea97a(0x1b1)](this[_0x2ea97a(0x1ce)],this['subUnitId'],this['drawId']);return _0x5bef52?_0x3448ac(_0x5bef52[_0x2ea97a(0x1d9)]()):this['shapeType']?_0x3448ac(this['shapeType']):!0x1;}['getConnectionSites'](){const _0x49906e=_0xa2463b;let _0x2a174b=this['_injector'][_0x49906e(0x20c)](_0x4bc659)['getShapeModel'](this[_0x49906e(0x1ce)],this[_0x49906e(0x1c6)],this[_0x49906e(0x220)]);if(!_0x2a174b)return[];let _0x31bd63=this['_injector'][_0x49906e(0x20c)](_0x1e4021)[_0x49906e(0x1ba)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0x31bd63!=null&&_0x31bd63[_0x49906e(0x204)]))return[];let {width:_0x750c25=0x0,height:_0x2c941e=0x0}=_0x31bd63[_0x49906e(0x204)];return _0x2a174b[_0x49906e(0x1be)]({'width':_0x750c25,'height':_0x2c941e}),_0x2a174b[_0x49906e(0x1e0)]();}[_0xa2463b(0x1f8)](){const _0x2caec2=_0xa2463b;let _0x3ecf80=this['_injector'][_0x2caec2(0x20c)](_0x4bc659)[_0x2caec2(0x1b1)](this[_0x2caec2(0x1ce)],this['subUnitId'],this[_0x2caec2(0x220)]);if(!_0x3ecf80)return[];let _0x3fd58f=this['_injector'][_0x2caec2(0x20c)](_0x1e4021)[_0x2caec2(0x1ba)]({'unitId':this['unitId'],'subUnitId':this[_0x2caec2(0x1c6)],'drawingId':this[_0x2caec2(0x220)]});if(!(_0x3fd58f!=null&&_0x3fd58f[_0x2caec2(0x204)]))return[];let {width:_0x378d92=0x0,height:_0x1d739c=0x0}=_0x3fd58f['transform'];return _0x3ecf80[_0x2caec2(0x1be)]({'width':_0x378d92,'height':_0x1d739c}),_0x3ecf80[_0x2caec2(0x1e5)]();}[_0xa2463b(0x1ec)](){const _0x8bb9f1=_0xa2463b;let _0x1e6e5a=this['_injector'][_0x8bb9f1(0x20c)](_0x4bc659)[_0x8bb9f1(0x1b1)](this[_0x8bb9f1(0x1ce)],this[_0x8bb9f1(0x1c6)],this[_0x8bb9f1(0x220)]);if(!_0x1e6e5a||!_0x3448ac(_0x1e6e5a[_0x8bb9f1(0x1d9)]()))return[];let _0x246c41=this[_0x8bb9f1(0x1c5)][_0x8bb9f1(0x20c)](_0x1e4021)[_0x8bb9f1(0x1ba)]({'unitId':this[_0x8bb9f1(0x1ce)],'subUnitId':this[_0x8bb9f1(0x1c6)],'drawingId':this['drawId']});if(!(_0x246c41!=null&&_0x246c41[_0x8bb9f1(0x204)]))return[];let {width:_0x557cfa=0x0,height:_0x1ba1e7=0x0}=_0x246c41[_0x8bb9f1(0x204)];return _0x1e6e5a['updateContext']({'width':_0x557cfa,'height':_0x1ba1e7}),_0x1e6e5a['getConnectorLinePoints']();}[_0xa2463b(0x1af)](){const _0x3668a8=_0xa2463b;var _0xba8428;let _0xfa4932=this[_0x3668a8(0x1c5)][_0x3668a8(0x20c)](_0x4bc659)['getShapeModel'](this['unitId'],this[_0x3668a8(0x1c6)],this['drawId']);return _0xfa4932?(_0xba8428=_0xfa4932[_0x3668a8(0x1af)]())==null?null:_0xba8428:null;}[_0xa2463b(0x206)](){const _0x15406=_0xa2463b;var _0x59edd4;let _0x4da98e=this['_injector'][_0x15406(0x20c)](_0x4bc659)[_0x15406(0x1b1)](this[_0x15406(0x1ce)],this['subUnitId'],this[_0x15406(0x220)]);return _0x4da98e?(_0x59edd4=_0x4da98e[_0x15406(0x206)]())==null?null:_0x59edd4:null;}[_0xa2463b(0x1ca)](){const _0x53999e=_0xa2463b;var _0x29a19b,_0x4ecc30;if(!this[_0x53999e(0x1d0)])throw Error(_0x53999e(0x223));if(this['x']===0x0||this['y']===0x0){let _0x26e9cc=this[_0x53999e(0x1c5)][_0x53999e(0x20c)](_0x3201a7)[_0x53999e(0x1b6)](this[_0x53999e(0x1ce)],this[_0x53999e(0x1c6)]);if(!_0x26e9cc)throw Error(_0x53999e(0x229)+this['unitId']+_0x53999e(0x1c0)+this[_0x53999e(0x1c6)]+'\x20not\x20found');let {transform:_0x2f89d8}=_0x5a45ad(this[_0x53999e(0x1ce)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x26e9cc);this['x']=this['x']>0x0?this['x']:_0x2f89d8[_0x53999e(0x216)],this['y']=this['y']>0x0?this['y']:_0x2f89d8[_0x53999e(0x1f2)];}return this[_0x53999e(0x1fb)]=(_0x29a19b=this[_0x53999e(0x1fb)])==null?_0x10b147:_0x29a19b,this[_0x53999e(0x225)]=(_0x4ecc30=this[_0x53999e(0x225)])==null?_0x79874:_0x4ecc30,{'unitId':this['unitId'],'subUnitId':this[_0x53999e(0x1c6)],'shapeId':this['drawId'],'shapeType':this[_0x53999e(0x1d0)],'shapeData':Object['keys'](this[_0x53999e(0x214)])[_0x53999e(0x1cf)]>0x0?this[_0x53999e(0x214)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x53999e(0x1fb)],'height':this[_0x53999e(0x225)]};}[_0xa2463b(0x218)](){return this['drawId'];}[_0xa2463b(0x1d9)](){const _0x4452b0=_0xa2463b;return this[_0x4452b0(0x1d0)];}[_0xa2463b(0x222)](){const _0x3dd329=_0xa2463b;return this[_0x3dd329(0x214)];}[_0xa2463b(0x1d2)](){return{'x':this['x'],'y':this['y']};}[_0xa2463b(0x1f9)](){const _0x9e9ef4=_0xa2463b;return{'width':this[_0x9e9ef4(0x1fb)],'height':this[_0x9e9ef4(0x225)]};}},F=class extends P{constructor(_0x5b30b7,_0x4d1b5b,_0x5b51a1,_0x5af6b4){super(_0x5b30b7,_0x4d1b5b,_0x5b51a1,_0x5af6b4),N(this,'shapeData',{});}[_0xa2463b(0x1b0)](_0x35379f){const _0x131963=_0xa2463b;if(!_0x3448ac(_0x35379f))throw Error(_0x131963(0x1cc)+_0x35379f+_0x131963(0x1b3));return super[_0x131963(0x1b0)](_0x35379f),this;}[_0xa2463b(0x21e)](_0x508226){const _0x982720=_0xa2463b;var _0x13c83f,_0x13f1f0;return(_0x13c83f=this['shapeData'])!=null&&_0x13c83f['ln']||(this[_0x982720(0x214)]['ln']={}),!((_0x13f1f0=this['shapeData'])==null||(_0x13f1f0=_0x13f1f0['ln'])==null)&&_0x13f1f0[_0x982720(0x1eb)]||(this[_0x982720(0x214)]['ln']['startArrow']={}),this['shapeData']['ln'][_0x982720(0x1eb)][_0x982720(0x1e2)]=_0x508226,this;}['setEndArrowType'](_0x524256){const _0x278e0f=_0xa2463b;var _0x2961d2,_0x4bfc92;return(_0x2961d2=this['shapeData'])!=null&&_0x2961d2['ln']||(this[_0x278e0f(0x214)]['ln']={}),!((_0x4bfc92=this[_0x278e0f(0x214)])==null||(_0x4bfc92=_0x4bfc92['ln'])==null)&&_0x4bfc92['endArrow']||(this[_0x278e0f(0x214)]['ln'][_0x278e0f(0x227)]={}),this[_0x278e0f(0x214)]['ln'][_0x278e0f(0x227)][_0x278e0f(0x1e2)]=_0x524256,this;}[_0xa2463b(0x1bc)](_0x3342b0){const _0x25670f=_0xa2463b;var _0x252046,_0xe482cf;return(_0x252046=this['shapeData'])!=null&&_0x252046['ln']||(this[_0x25670f(0x214)]['ln']={}),!((_0xe482cf=this['shapeData'])==null||(_0xe482cf=_0xe482cf['ln'])==null)&&_0xe482cf[_0x25670f(0x1eb)]||(this['shapeData']['ln']['startArrow']={}),this['shapeData']['ln'][_0x25670f(0x1eb)]['size']=_0x3342b0,this;}[_0xa2463b(0x1d1)](_0xb8202c){const _0x5d1e06=_0xa2463b;var _0x414647,_0x4c7681;return(_0x414647=this[_0x5d1e06(0x214)])!=null&&_0x414647['ln']||(this['shapeData']['ln']={}),!((_0x4c7681=this['shapeData'])==null||(_0x4c7681=_0x4c7681['ln'])==null)&&_0x4c7681['endArrow']||(this[_0x5d1e06(0x214)]['ln'][_0x5d1e06(0x227)]={}),this[_0x5d1e06(0x214)]['ln'][_0x5d1e06(0x227)][_0x5d1e06(0x217)]=_0xb8202c,this;}[_0xa2463b(0x1ca)](){const _0x2a0901=_0xa2463b;return super[_0x2a0901(0x1ca)]();}['getEndConnectInfo'](){const _0xa83966=_0xa2463b;var _0x2c4427;return((_0x2c4427=this[_0xa83966(0x214)])==null||(_0x2c4427=_0x2c4427[_0xa83966(0x1e3)])==null?void 0x0:_0x2c4427['to'])||null;}[_0xa2463b(0x1af)](){const _0x519811=_0xa2463b;var _0x5f2f42;return((_0x5f2f42=this['shapeData'])==null||(_0x5f2f42=_0x5f2f42[_0x519811(0x1e3)])==null?void 0x0:_0x5f2f42[_0x519811(0x1b2)])||null;}};function I(_0x2d01f3,_0x52740c,_0x250eaa,_0x3f9d3a,_0x2dbe8e,_0x561756){const _0x34df6a=_0xa2463b;let _0x286043=_0x2dbe8e[_0x34df6a(0x1b1)](_0x2d01f3,_0x52740c,_0x250eaa);if(!_0x286043)return null;let _0x345e3c=_0x561756[_0x34df6a(0x1ba)]({'unitId':_0x2d01f3,'subUnitId':_0x52740c,'drawingId':_0x250eaa});if(!(_0x345e3c!=null&&_0x345e3c[_0x34df6a(0x204)]))return null;let {left:_0x1da7d9=0x0,top:_0x187506=0x0,width:_0x387c2e=0x0,height:_0x26a20d=0x0,flipX:_0x336d6d=!0x1,flipY:_0x11f618=!0x1,angle:_0x511d30}=_0x345e3c[_0x34df6a(0x204)];_0x286043[_0x34df6a(0x1be)]({'width':_0x387c2e,'height':_0x26a20d});let _0x37ae3a=_0x286043[_0x34df6a(0x1e0)]()['find'](_0x3fcb1b=>_0x3fcb1b[_0x34df6a(0x1cb)]===_0x3f9d3a);if(!_0x37ae3a)return null;let _0x524b28=_0x336d6d?_0x387c2e-_0x37ae3a['x']:_0x37ae3a['x'],_0x5b7180=_0x11f618?_0x26a20d-_0x37ae3a['y']:_0x37ae3a['y'];if(_0x511d30&&_0x511d30!==0x0){let _0x54b87d=_0x511d30*Math['PI']/0xb4,_0xb31f94=Math[_0x34df6a(0x1ff)](_0x54b87d),_0x442adb=Math[_0x34df6a(0x211)](_0x54b87d),_0x35469d=_0x387c2e/0x2,_0x37dadb=_0x26a20d/0x2,_0x915062=_0x524b28-_0x35469d,_0x51527b=_0x5b7180-_0x37dadb;_0x524b28=_0x35469d+_0x915062*_0xb31f94-_0x51527b*_0x442adb,_0x5b7180=_0x37dadb+_0x915062*_0x442adb+_0x51527b*_0xb31f94;}_0x524b28+=_0x1da7d9,_0x5b7180+=_0x187506;let _0xe7bff8=_0x37ae3a['ang']/0xea60;_0x336d6d&&(_0xe7bff8=0xb4-_0xe7bff8),_0x11f618&&(_0xe7bff8=-_0xe7bff8),_0xe7bff8+=_0x511d30||0x0,_0xe7bff8=(_0xe7bff8%0x168+0x168)%0x168;let _0x1380b9=_0x19bd62({'left':_0x1da7d9,'top':_0x187506,'width':_0x387c2e,'height':_0x26a20d},_0x511d30||0x0);return{'point':{'x':_0x524b28,'y':_0x5b7180},'angle':_0xe7bff8,'bounds':_0x1380b9};}function L(_0x5d90e4,_0x53d021){const _0x47b534=_0xa2463b;let _0x200a42=_0x53d021['x']-_0x5d90e4['x'],_0x403281=_0x53d021['y']-_0x5d90e4['y'];return Math[_0x47b534(0x1c8)](_0x200a42)>=Math[_0x47b534(0x1c8)](_0x403281)?_0x200a42>=0x0?0xb4:0x0:_0x403281>=0x0?0x10e:0x5a;}function R(_0x29010b,_0x48eefe,_0x509f2c,_0x2b4de5,_0x572044,_0x24d5cf,_0x37c3a5){const _0x4a9ca1=_0xa2463b;let _0x5810dc=_0x24d5cf[_0x4a9ca1(0x1b1)](_0x29010b,_0x48eefe,_0x509f2c);if(!_0x5810dc)return null;let _0x41b717=_0x37c3a5[_0x4a9ca1(0x1ba)]({'unitId':_0x29010b,'subUnitId':_0x48eefe,'drawingId':_0x509f2c});if(!(_0x41b717!=null&&_0x41b717['transform']))return null;let {left:_0x1a05cb=0x0,top:_0x46f4fb=0x0,width:_0x24be28=0x0,height:_0x3dfde1=0x0,flipX:_0x2c3e00=!0x1,flipY:_0x3588ad=!0x1}=_0x41b717[_0x4a9ca1(0x204)];_0x5810dc[_0x4a9ca1(0x1be)]({'width':_0x24be28,'height':_0x3dfde1});let _0x5ca53e=_0x5810dc[_0x4a9ca1(0x1ec)]();if(_0x5ca53e[_0x4a9ca1(0x1cf)]<0x2)return null;let _0x43a182=_0x2b4de5?_0x5ca53e[0x0]:_0x5ca53e[_0x5ca53e[_0x4a9ca1(0x1cf)]-0x1],_0x4c13f9=new _0x26d8d2({'left':_0x1a05cb,'top':_0x46f4fb,'width':_0x24be28,'height':_0x3dfde1,'flipX':_0x2c3e00,'flipY':_0x3588ad})['localToWorld'](_0x43a182);return{'point':_0x4c13f9,'angle':L(_0x572044[_0x4a9ca1(0x1ab)],_0x4c13f9),'bounds':{'left':_0x4c13f9['x'],'top':_0x4c13f9['y'],'width':0x0,'height':0x0}};}var z=class extends _0xf5b551{async[_0xa2463b(0x1f4)](_0x5922cf){const _0x316e6a=_0xa2463b;let {unitId:_0x21b6f5,subUnitId:_0x4be73f,shapeId:_0x37c5bb,shapeType:_0xe4cd0f,shapeData:_0x2fd0d7,x:_0x99649f,y:_0x14f171,width:_0x51d41e,height:_0x2291b8}=_0x5922cf;return this[_0x316e6a(0x212)]['executeCommand'](_0x39e09c['id'],{'unitId':_0x21b6f5,'subUnitId':_0x4be73f,'shapeId':_0x37c5bb,'shapeType':_0xe4cd0f,'shapeData':_0x2fd0d7,'position':{'x':_0x99649f,'y':_0x14f171},'width':_0x51d41e,'height':_0x2291b8});}async['updateShape'](_0x16d26e){const _0x269d36=_0xa2463b;let {unitId:_0x24a7db,subUnitId:_0x4c03c8,shapeId:_0xe1b645,shapeType:_0x489b32,shapeData:_0x3e4c1f,x:_0x3755d0,y:_0x2439e3,width:_0x31a55f,height:_0x115c4f}=_0x16d26e;return this[_0x269d36(0x212)][_0x269d36(0x20a)](_0x37525d['id'],{'unitId':_0x24a7db,'subUnitId':_0x4c03c8,'shapeId':_0xe1b645,'shapeType':_0x489b32,'shapeData':_0x3e4c1f,'position':{'x':_0x3755d0,'y':_0x2439e3},'width':_0x31a55f,'height':_0x115c4f});}[_0xa2463b(0x21c)](_0x295651){const _0x308783=_0xa2463b;let _0x5d713e=this[_0x308783(0x1bb)]()[_0x308783(0x226)](),_0x374ad3=this['getSheetId']();if(_0x295651){let _0x427bc3=new P(_0x5d713e,_0x374ad3,_0x295651['drawId'],this[_0x308783(0x1c5)]);return this[_0x308783(0x20e)](_0x427bc3,_0x5d713e,_0x374ad3,_0x295651[_0x308783(0x220)]),_0x427bc3;}return new P(_0x5d713e,_0x374ad3,_0x287657(),this[_0x308783(0x1c5)]);}[_0xa2463b(0x1fa)](_0x5c60f8){const _0x14f777=_0xa2463b;let _0x20c30c=this[_0x14f777(0x1bb)]()[_0x14f777(0x226)](),_0x27ea29=this[_0x14f777(0x1e9)]();if(_0x5c60f8){let _0x17de59=new F(_0x20c30c,_0x27ea29,_0x5c60f8[_0x14f777(0x220)],this[_0x14f777(0x1c5)]);return this['_preloadShapeProperties'](_0x17de59,_0x20c30c,_0x27ea29,_0x5c60f8[_0x14f777(0x220)]),_0x17de59;}return new F(_0x20c30c,_0x27ea29,_0x287657(),this[_0x14f777(0x1c5)]);}[_0xa2463b(0x201)](){const _0x193a19=_0xa2463b;let _0x25afdb=this['_injector'][_0x193a19(0x20c)](_0x51eaf6),_0x1bf41e=this[_0x193a19(0x1bb)]()[_0x193a19(0x226)](),_0x7eef4f=this[_0x193a19(0x1e9)](),_0x32099d=_0x25afdb[_0x193a19(0x213)](_0x1bf41e,_0x7eef4f);if(!_0x32099d)return[];let _0x63ac48=[];for(let [_0x57920c,_0x1a8e79]of Object[_0x193a19(0x1e6)](_0x32099d))if(_0x1a8e79&&_0x1a8e79[_0x193a19(0x219)]===_0x4c500d[_0x193a19(0x21a)]){let _0x214a25=new P(_0x1bf41e,_0x7eef4f,_0x57920c,this[_0x193a19(0x1c5)]);this['_preloadShapeProperties'](_0x214a25,_0x1bf41e,_0x7eef4f,_0x57920c),_0x63ac48['push'](_0x214a25);}return _0x63ac48;}[_0xa2463b(0x1ea)](_0x30baf4){const _0x53f4c7=_0xa2463b;let {unitId:_0x16c435,subUnitId:_0x32ccf7,drawId:_0x549c62}=_0x30baf4;return this[_0x53f4c7(0x212)]['executeCommand'](_0x211153['id'],{'unitId':_0x16c435,'drawings':[{'unitId':_0x16c435,'subUnitId':_0x32ccf7,'drawingId':_0x549c62,'drawingType':_0x4c500d[_0x53f4c7(0x21a)]}]});}async[_0xa2463b(0x21d)](_0x138f71){const _0x4d1802=_0xa2463b;let {connector:_0x57909b,startTarget:_0x515c72,endTarget:_0x4627e4}=_0x138f71;if(!_0x515c72&&!_0x4627e4)return!0x1;let _0x4bf8c8=this[_0x4d1802(0x1bb)]()[_0x4d1802(0x226)](),_0x42c7fe=this[_0x4d1802(0x1e9)](),_0x5055d6=this[_0x4d1802(0x1c5)][_0x4d1802(0x20c)](_0x4bc659),_0x36295b=this[_0x4d1802(0x1c5)]['get'](_0x1e4021),_0xb827f3=_0x5055d6[_0x4d1802(0x1b1)](_0x4bf8c8,_0x42c7fe,_0x57909b['drawId']);if(!_0xb827f3)return!0x1;let _0x10190a=_0xb827f3['getShapeType'](),_0x34c913=_0xb827f3[_0x4d1802(0x1f3)](),_0x469336={};for(let _0x39b80e of _0xb827f3[_0x4d1802(0x1bf)]()){let _0x953a94=_0xb827f3[_0x4d1802(0x221)](_0x39b80e);_0x953a94!==void 0x0&&(_0x469336[_0x39b80e]=_0x953a94);}let {startInfo:_0xab6eb2,endInfo:_0x151443}=this[_0x4d1802(0x20d)](_0x4bf8c8,_0x42c7fe,_0x57909b,_0xb827f3,_0x515c72,_0x4627e4,_0x5055d6,_0x36295b,_0x34c913);if(!_0xab6eb2||!_0x151443)return!0x1;let _0x4076f6=_0x5bb031(_0x2bc896(_0xab6eb2,_0x151443,_0x10190a),_0x10190a),_0x160db0={};return _0x515c72?_0x160db0['from']={'shapeId':_0x515c72[_0x4d1802(0x208)][_0x4d1802(0x220)],'cxnIndex':_0x515c72[_0x4d1802(0x1f6)]}:_0x34c913!=null&&_0x34c913[_0x4d1802(0x1b2)]&&(_0x160db0[_0x4d1802(0x1b2)]=_0x34c913[_0x4d1802(0x1b2)]),_0x4627e4?_0x160db0['to']={'shapeId':_0x4627e4[_0x4d1802(0x208)][_0x4d1802(0x220)],'cxnIndex':_0x4627e4[_0x4d1802(0x1f6)]}:_0x34c913!=null&&_0x34c913['to']&&(_0x160db0['to']=_0x34c913['to']),this[_0x4d1802(0x212)][_0x4d1802(0x20a)](_0x42361b['id'],{'unitId':_0x4bf8c8,'subUnitId':_0x42c7fe,'connectorShapeId':_0x57909b[_0x4d1802(0x220)],'width':_0x4076f6[_0x4d1802(0x1df)][_0x4d1802(0x1fb)],'height':_0x4076f6[_0x4d1802(0x1df)][_0x4d1802(0x225)],'left':_0x4076f6[_0x4d1802(0x1df)]['left'],'top':_0x4076f6['worldRect'][_0x4d1802(0x1f2)],'flipX':_0x4076f6[_0x4d1802(0x1df)]['flipX']||!0x1,'flipY':_0x4076f6[_0x4d1802(0x1df)]['flipY']||!0x1,'oldAdjustValues':_0x469336,'newAdjustValues':_0x4076f6[_0x4d1802(0x200)],'newLineType':_0x4076f6['lineType'],'oldLineType':_0x10190a,'rotation':_0x4076f6['rotation'],'oldRelation':_0x34c913,'newRelation':_0x160db0});}['_preloadShapeProperties'](_0x4ae9d8,_0x9eafa6,_0x3a9105,_0x5dafc6){const _0xdcc553=_0xa2463b;let _0x505544=this['_injector'][_0xdcc553(0x20c)](_0x1e4021)['getDrawingByParam']({'unitId':_0x9eafa6,'subUnitId':_0x3a9105,'drawingId':_0x5dafc6});if(_0x505544!=null&&_0x505544['transform']){var _0x2471b8,_0x440a63,_0x130a62,_0x2d7f5b;_0x4ae9d8['x']=(_0x2471b8=_0x505544[_0xdcc553(0x204)][_0xdcc553(0x216)])==null?0x0:_0x2471b8,_0x4ae9d8['y']=(_0x440a63=_0x505544['transform'][_0xdcc553(0x1f2)])==null?0x0:_0x440a63,_0x4ae9d8['width']=(_0x130a62=_0x505544[_0xdcc553(0x204)][_0xdcc553(0x1fb)])==null?_0x4ae9d8[_0xdcc553(0x1fb)]:_0x130a62,_0x4ae9d8[_0xdcc553(0x225)]=(_0x2d7f5b=_0x505544[_0xdcc553(0x204)][_0xdcc553(0x225)])==null?_0x4ae9d8[_0xdcc553(0x225)]:_0x2d7f5b;}let _0x35339c=this[_0xdcc553(0x1c5)][_0xdcc553(0x20c)](_0x4bc659)[_0xdcc553(0x1b1)](_0x9eafa6,_0x3a9105,_0x5dafc6);if(_0x35339c){_0x4ae9d8['shapeType']=_0x35339c['getShapeType']();let _0x2c2fef=_0x35339c[_0xdcc553(0x222)]();_0x2c2fef&&(_0x4ae9d8['shapeData']=JSON[_0xdcc553(0x209)](JSON['stringify'](_0x2c2fef)));}}[_0xa2463b(0x20d)](_0x218f08,_0x39d2c3,_0x56ae1a,_0x48ad94,_0x377d30,_0x37d78b,_0x2efc68,_0x2841bb,_0x447fe1){const _0x2d9115=_0xa2463b;let _0x2f9c44=null,_0x2b18c4=null;return _0x377d30&&(_0x2f9c44=I(_0x218f08,_0x39d2c3,_0x377d30[_0x2d9115(0x208)][_0x2d9115(0x220)],_0x377d30[_0x2d9115(0x1f6)],_0x2efc68,_0x2841bb)),_0x37d78b&&(_0x2b18c4=I(_0x218f08,_0x39d2c3,_0x37d78b[_0x2d9115(0x208)][_0x2d9115(0x220)],_0x37d78b[_0x2d9115(0x1f6)],_0x2efc68,_0x2841bb)),_0x2f9c44||(_0x2f9c44=this[_0x2d9115(0x1b8)](_0x218f08,_0x39d2c3,_0x56ae1a['drawId'],!0x0,_0x2b18c4,_0x447fe1==null?void 0x0:_0x447fe1[_0x2d9115(0x1b2)],_0x2efc68,_0x2841bb)),_0x2b18c4||(_0x2b18c4=this['_resolveExistingOrFreeEndpoint'](_0x218f08,_0x39d2c3,_0x56ae1a[_0x2d9115(0x220)],!0x1,_0x2f9c44,_0x447fe1==null?void 0x0:_0x447fe1['to'],_0x2efc68,_0x2841bb)),{'startInfo':_0x2f9c44,'endInfo':_0x2b18c4};}[_0xa2463b(0x1b8)](_0x2bd32f,_0x29de6e,_0x511f99,_0x366e91,_0x33e529,_0x2e36e8,_0x2ec805,_0x1ac75b){const _0x41c5e7=_0xa2463b;if(_0x2e36e8){let _0xf71c25=I(_0x2bd32f,_0x29de6e,_0x2e36e8[_0x41c5e7(0x20f)],_0x2e36e8[_0x41c5e7(0x1c7)],_0x2ec805,_0x1ac75b);if(_0xf71c25)return _0xf71c25;}return _0x33e529?R(_0x2bd32f,_0x29de6e,_0x511f99,_0x366e91,_0x33e529,_0x2ec805,_0x1ac75b):null;}};_0xf5b551[_0xa2463b(0x1f7)](z);export{F as FConnectorShape,P as FShape};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a184f=_0x4815;(function(_0x4c5fbe,_0x335f9b){const _0x44b59b=_0x4815,_0x480c64=_0x4c5fbe();while(!![]){try{const _0x47e475=-parseInt(_0x44b59b(0x136))/0x1*(-parseInt(_0x44b59b(0x19b))/0x2)+parseInt(_0x44b59b(0x166))/0x3*(-parseInt(_0x44b59b(0x146))/0x4)+parseInt(_0x44b59b(0x156))/0x5+parseInt(_0x44b59b(0x148))/0x6*(parseInt(_0x44b59b(0x15a))/0x7)+parseInt(_0x44b59b(0x13b))/0x8+-parseInt(_0x44b59b(0x1a0))/0x9*(parseInt(_0x44b59b(0x121))/0xa)+-parseInt(_0x44b59b(0x177))/0xb;if(_0x47e475===_0x335f9b)break;else _0x480c64['push'](_0x480c64['shift']());}catch(_0x278da8){_0x480c64['push'](_0x480c64['shift']());}}}(_0x4d57,0x8d891));import{ShapeModel as _0x4e9e09,computeConnectorRouteLayout as _0x2856f6,getBasicShapeRotateBound as _0x5e7c0a,isConnectorShape as _0x711ab1,routeConnectorLineShape as _0x3ff60f}from'@univerjs-pro/engine-shape';import{CommandType as _0x353930,DependentOn as _0x8500a4,Disposable as _0x24c5b2,DrawingTypeEnum as _0x123f9a,ICommandService as _0x27fb22,IConfigService as _0x59fdba,IResourceManagerService as _0x3863ee,IUndoRedoService as _0x1e7ecc,IUniverInstanceService as _0x40f73c,Inject as _0x14913b,Injector as _0x378ab6,Plugin as _0x1916d8,UniverInstanceType as _0x5e7a6a,generateRandomId as _0x31fc7d,merge as _0x2fb6e3,sequenceExecute as _0x3f0ae0,touchDependencies as _0x47b815}from'@univerjs/core';import{SheetInterceptorService as _0x1d917b,SheetSkeletonService as _0x40d9b8,getSheetCommandTarget as _0x2792d1}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x2c533f,DrawingApplyType as _0x597b08,ISheetDrawingService as _0x39f882,InsertSheetDrawingCommand as _0x4d513b,RemoveSheetDrawingCommand as _0x3e5d52,SetDrawingApplyMutation as _0x25204a,SetSheetDrawingCommand as _0x1c5703,transformToAxisAlignPosition as _0x107177,transformToDrawingPosition as _0x5b629c}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3c411b}from'@univerjs-pro/license';import{IDrawingManagerService as _0x2841a3}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x1e7fb4){'@babel/helpers - typeof';const _0x1dc65c=_0x4815;return R=typeof Symbol==_0x1dc65c(0x14b)&&typeof Symbol['iterator']=='symbol'?function(_0x259273){return typeof _0x259273;}:function(_0x5975be){const _0x5e1df5=_0x1dc65c;return _0x5975be&&typeof Symbol==_0x5e1df5(0x14b)&&_0x5975be['constructor']===Symbol&&_0x5975be!==Symbol[_0x5e1df5(0x137)]?_0x5e1df5(0x18e):typeof _0x5975be;},R(_0x1e7fb4);}function _0x4d57(){const _0x30b844=['getShapeDataById','114tKPent','_shapes','sheet.command.set-shape-drawing-data','function','getOwnPropertyDescriptor','setShapeData','cos','redos','sheet.mutation.remove-shape','_initCommandInterceptor','removeShape','borderEnabled','preUndos','resizeEnabled','1122525BaXOhr','call','delete','interceptCommand','59941BbxQxG','sheet.command.update-shape-type','UPDATE','_shapeModelManagerMap','has','fill','0.24.0','transform','_sheetsShapeService','_configService','getCellIndexAndOffsetByPosition','set','9iWwLDh','_addLineFollowShapeUpdates','ang','pluginName','sheet.command.set-shape-rotate','_config','sheet.command.update-line-shape-resize','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','default','_sheetInterceptorService','MUTATION','find','string','getShapeType','isFrom','_deserializeShapeForUnit','sheet.command.update-connector-relation','247533hJKyDs','getBatchAddOp','width','from','_initCommands','COMMAND','addShape','range','getAdjustNames','_commandService','setShapeType','getShapeModel','preRedos','insertShape','result','getSkeleton','height','top','getShapeRelation','onCommandExecute','_linesIds','stringify','relation','symbol','getLineShapeRelation','shapeData','disposeWithMe','_getConnectPointInfo','adjustValues','object','undos','getDrawingData','_groupIds','getStartConnectInfo','pushUndoRedo','shapeId','140212tQiLAu','sheet.mutation.insert-shape','toJSON','onStarting','drawingType','18RtFnkr','UNIVER_SHEET','DRAWING_SHAPE','angle','startX','length','get','_sheetSkeletonService','startY','worldRect','SHEET_SHAPE_PLUGIN','getShapeData','flipY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','index','every','keys','getEndConnectInfo','version','entries','_addLineRerouteUpdates','rotateEnabled','position','sheet.mutation.update-shape-type','sheets-shape.config','parse','277450PqOdZp','decorate','_serializeShapeForUnit','_drawingManagerService','filter','sheet.mutation.update-shape-data','lineShapeId','getConnectionSiteList','registerCommand','_initSnapshot','clear','flipX','updateContext','forEach','getDrawingByParam','data','left','REMOVE','ensureSkeleton','removeLinePoints','hasShape','9LTOxak','prototype','assign','sheet.command.set-shape-text-vertical-toggle','fromJSON','935096xqAFbO','add','getBatchUpdateOp','push','cxnIndex','isLineShape','getBasicShapeRelation','dispose','_ensureShapeModelManager','_resourcesManagerService','params','636428TKVyVa'];_0x4d57=function(){return _0x30b844;};return _0x4d57();}function z(_0x2e8319,_0x529466){const _0x5ef0f1=_0x4815;if(R(_0x2e8319)!=_0x5ef0f1(0x194)||!_0x2e8319)return _0x2e8319;var _0x3df257=_0x2e8319[Symbol['toPrimitive']];if(_0x3df257!==void 0x0){var _0x41d307=_0x3df257[_0x5ef0f1(0x157)](_0x2e8319,_0x529466||_0x5ef0f1(0x16e));if(R(_0x41d307)!=_0x5ef0f1(0x194))return _0x41d307;throw TypeError(_0x5ef0f1(0x114));}return(_0x529466===_0x5ef0f1(0x172)?String:Number)(_0x2e8319);}function B(_0x5c8fff){const _0x28fbbc=_0x4815;var _0x15854a=z(_0x5c8fff,'string');return R(_0x15854a)==_0x28fbbc(0x18e)?_0x15854a:_0x15854a+'';}function V(_0x2942cf,_0x33e74d,_0x1476c7){return(_0x33e74d=B(_0x33e74d))in _0x2942cf?Object['defineProperty'](_0x2942cf,_0x33e74d,{'value':_0x1476c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2942cf[_0x33e74d]=_0x1476c7,_0x2942cf;}var H=class extends _0x24c5b2{constructor(){const _0x3c3570=_0x4815;super(),V(this,_0x3c3570(0x149),new Map()),V(this,'_linesIds',new Set()),V(this,_0x3c3570(0x197),new Set());}[_0x3a184f(0x17d)](_0x4f7a34,_0x449575,_0x5e77a7){const _0x66d55c=_0x3a184f;let _0x43ef93=new _0x4e9e09(_0x4f7a34,_0x449575,_0x5e77a7);return this[_0x66d55c(0x149)]['set'](_0x449575,_0x43ef93),_0x711ab1(_0x4f7a34)&&this[_0x66d55c(0x18b)]['add'](_0x449575),_0x43ef93;}[_0x3a184f(0x141)](_0x46bf35){const _0xf60f99=_0x3a184f;let _0x3a8d3e=[];for(let _0x1a58e2 of this[_0xf60f99(0x18b)]){let _0x40bd67=this[_0xf60f99(0x149)][_0xf60f99(0x1a6)](_0x1a58e2);if(_0x40bd67){let _0x123670=_0x40bd67['getShapeRelation']();if(_0x123670){var _0x53808c,_0x3ce24d;((_0x53808c=_0x123670[_0xf60f99(0x17a)])==null?void 0x0:_0x53808c[_0xf60f99(0x19a)])===_0x46bf35&&_0x3a8d3e['push']({..._0x123670[_0xf60f99(0x17a)],'lineShapeId':_0x1a58e2,'isFrom':!0x0}),((_0x3ce24d=_0x123670['to'])==null?void 0x0:_0x3ce24d[_0xf60f99(0x19a)])===_0x46bf35&&_0x3a8d3e[_0xf60f99(0x13e)]({..._0x123670['to'],'lineShapeId':_0x1a58e2,'isFrom':!0x1});}}}return _0x3a8d3e;}[_0x3a184f(0x18f)](_0x29d7d0){const _0x5b86a3=_0x3a184f;let _0x3a8312=this[_0x5b86a3(0x149)][_0x5b86a3(0x1a6)](_0x29d7d0);if(_0x3a8312)return _0x3a8312[_0x5b86a3(0x189)]();}[_0x3a184f(0x173)](_0x2b36ee){const _0x7cdbf6=_0x3a184f;let _0x415bce=this['_shapes'][_0x7cdbf6(0x1a6)](_0x2b36ee);if(_0x415bce)return _0x415bce['getShapeType']();}[_0x3a184f(0x135)](_0x4cf9b8){const _0x392f7c=_0x3a184f;return this['_shapes'][_0x392f7c(0x15e)](_0x4cf9b8);}[_0x3a184f(0x152)](_0xdf5cce){const _0x5d1991=_0x3a184f;let _0x13dee7=this[_0x5d1991(0x149)][_0x5d1991(0x1a6)](_0xdf5cce);_0x13dee7&&(_0x711ab1(_0x13dee7[_0x5d1991(0x173)]())&&this[_0x5d1991(0x18b)][_0x5d1991(0x158)](_0xdf5cce),this['_shapes'][_0x5d1991(0x158)](_0xdf5cce));}[_0x3a184f(0x19d)](){const _0x4699fa=_0x3a184f;let _0x5af2b1=[];return this[_0x4699fa(0x149)][_0x4699fa(0x12e)](_0x23f705=>{const _0x223123=_0x4699fa;_0x5af2b1[_0x223123(0x13e)](_0x23f705[_0x223123(0x19d)]());}),_0x5af2b1;}[_0x3a184f(0x13a)](_0x5e09e0){const _0x3f974b=_0x3a184f;for(let _0x3ead05 of _0x5e09e0){let {id:_0x12b973,shapeType:_0x491f4a}=_0x3ead05,_0x54c329=this[_0x3f974b(0x17d)](_0x491f4a,_0x12b973,_0x3ead05[_0x3f974b(0x190)]);_0x54c329&&_0x54c329[_0x3f974b(0x140)]()&&this['_linesIds'][_0x3f974b(0x13c)](_0x12b973);}}['dispose'](){const _0x3f8112=_0x3a184f;this['_disposed']||(this[_0x3f8112(0x149)][_0x3f8112(0x12e)](_0x10a6dd=>{_0x10a6dd['dispose']();}),this[_0x3f8112(0x149)]['clear'](),this['_linesIds'][_0x3f8112(0x12b)](),this[_0x3f8112(0x197)][_0x3f8112(0x12b)](),super[_0x3f8112(0x142)]());}};function U(_0x127638,_0x17f8b5){return function(_0x409674,_0x212dc8){_0x17f8b5(_0x409674,_0x212dc8,_0x127638);};}function _0x4815(_0x1a46b5,_0x39276e){_0x1a46b5=_0x1a46b5-0x113;const _0x4d5784=_0x4d57();let _0x48152d=_0x4d5784[_0x1a46b5];return _0x48152d;}function W(_0x27f351,_0x43c426,_0x34c90d,_0x4cf620){const _0x3b370a=_0x3a184f;var _0x5a152c=arguments[_0x3b370a(0x1a5)],_0xfc864f=_0x5a152c<0x3?_0x43c426:_0x4cf620===null?_0x4cf620=Object[_0x3b370a(0x14c)](_0x43c426,_0x34c90d):_0x4cf620,_0x409ae4;if(typeof Reflect=='object'&&typeof Reflect[_0x3b370a(0x122)]=='function')_0xfc864f=Reflect[_0x3b370a(0x122)](_0x27f351,_0x43c426,_0x34c90d,_0x4cf620);else{for(var _0x3636e9=_0x27f351[_0x3b370a(0x1a5)]-0x1;_0x3636e9>=0x0;_0x3636e9--)(_0x409ae4=_0x27f351[_0x3636e9])&&(_0xfc864f=(_0x5a152c<0x3?_0x409ae4(_0xfc864f):_0x5a152c>0x3?_0x409ae4(_0x43c426,_0x34c90d,_0xfc864f):_0x409ae4(_0x43c426,_0x34c90d))||_0xfc864f);}return _0x5a152c>0x3&&_0xfc864f&&Object['defineProperty'](_0x43c426,_0x34c90d,_0xfc864f),_0xfc864f;}let G=class extends _0x24c5b2{constructor(_0x385135){const _0x13f710=_0x3a184f;super(),this[_0x13f710(0x144)]=_0x385135,V(this,_0x13f710(0x15d),new Map()),this[_0x13f710(0x12a)]();}[_0x3a184f(0x143)](_0x27e1ec,_0x5df65f){const _0x92faae=_0x3a184f;let _0x1c6e7b=this[_0x92faae(0x15d)][_0x92faae(0x1a6)](_0x27e1ec);_0x1c6e7b||(_0x1c6e7b=new Map(),this[_0x92faae(0x15d)][_0x92faae(0x165)](_0x27e1ec,_0x1c6e7b));let _0x175d70=_0x1c6e7b[_0x92faae(0x1a6)](_0x5df65f);return _0x175d70||(_0x175d70=new H(),_0x1c6e7b[_0x92faae(0x165)](_0x5df65f,_0x175d70)),_0x175d70;}['insertShape'](_0x1b1874,_0x3c7b21,_0x30081b,_0x5587a8,_0x446ade){const _0x5d2161=_0x3a184f;this[_0x5d2161(0x143)](_0x1b1874,_0x3c7b21)[_0x5d2161(0x17d)](_0x30081b,_0x5587a8,_0x446ade);}[_0x3a184f(0x152)](_0x49c350,_0x2ccc9a,_0x779b4c){const _0x19d6ce=_0x3a184f;this[_0x19d6ce(0x143)](_0x49c350,_0x2ccc9a)['removeShape'](_0x779b4c);}['getBasicShapeType'](_0x3cf4fa,_0x4c0c62,_0x28885e){const _0x262c11=_0x3a184f;return this['_ensureShapeModelManager'](_0x3cf4fa,_0x4c0c62)[_0x262c11(0x173)](_0x28885e);}['getShapeType'](_0x4e55f7,_0x3da808,_0x111c30){const _0x26022=_0x3a184f;return this['_ensureShapeModelManager'](_0x4e55f7,_0x3da808)[_0x26022(0x173)](_0x111c30);}[_0x3a184f(0x135)](_0x1203d7,_0x40aacb,_0xb1d3fb){const _0x51565f=_0x3a184f;return this[_0x51565f(0x143)](_0x1203d7,_0x40aacb)[_0x51565f(0x135)](_0xb1d3fb);}['getShapeTypeById'](_0x171db9,_0xc3a43c,_0x3b083e){const _0x28cfee=_0x3a184f;return this[_0x28cfee(0x143)](_0x171db9,_0xc3a43c)[_0x28cfee(0x173)](_0x3b083e);}[_0x3a184f(0x147)](_0x153cfa,_0x20f4b2,_0x421867){const _0x125959=_0x3a184f;let _0x10c282=this[_0x125959(0x143)](_0x153cfa,_0x20f4b2);if(!_0x10c282[_0x125959(0x173)](_0x421867))return;let _0x2df216=_0x10c282[_0x125959(0x149)]['get'](_0x421867);if(_0x2df216)return _0x2df216[_0x125959(0x1ab)]();}[_0x3a184f(0x182)](_0x51744c,_0x4dc035,_0x38b99d){const _0x29ada0=_0x3a184f;return this[_0x29ada0(0x143)](_0x51744c,_0x4dc035)[_0x29ada0(0x149)]['get'](_0x38b99d);}[_0x3a184f(0x141)](_0x14f7fd,_0x4a6ba9,_0x5819e5){const _0x4b07ad=_0x3a184f;return this[_0x4b07ad(0x143)](_0x14f7fd,_0x4a6ba9)[_0x4b07ad(0x141)](_0x5819e5);}[_0x3a184f(0x18f)](_0x3a1210,_0x34e9a8,_0x4b5beb){const _0x19009d=_0x3a184f;let _0x47bed3=this[_0x19009d(0x143)](_0x3a1210,_0x34e9a8)['_shapes'][_0x19009d(0x1a6)](_0x4b5beb);if(_0x47bed3)return _0x47bed3[_0x19009d(0x189)]();}[_0x3a184f(0x181)](){}[_0x3a184f(0x123)](_0x22f676){const _0x516cff=_0x3a184f;let _0x23938c={},_0x322aed=this[_0x516cff(0x15d)][_0x516cff(0x1a6)](_0x22f676);return _0x322aed&&_0x322aed[_0x516cff(0x12e)]((_0x205235,_0x41f3c1)=>{const _0x3061bc=_0x516cff;let _0x3841a2=_0x205235[_0x3061bc(0x19d)]();_0x3841a2[_0x3061bc(0x1a5)]>0x0&&(_0x23938c[_0x41f3c1]=_0x3841a2);}),JSON[_0x516cff(0x18c)](_0x23938c);}[_0x3a184f(0x175)](_0x3bd8b0,_0x26d7fe){const _0x494bc9=_0x3a184f;Object['keys'](_0x26d7fe)[_0x494bc9(0x12e)](_0xaf67e6=>{const _0x40abd8=_0x494bc9;this[_0x40abd8(0x143)](_0x3bd8b0,_0xaf67e6)[_0x40abd8(0x13a)](_0x26d7fe[_0xaf67e6]);});}[_0x3a184f(0x19d)](){const _0x572cf0=_0x3a184f;let _0xd89738={};return this[_0x572cf0(0x15d)][_0x572cf0(0x12e)]((_0x37c432,_0x14d89d)=>{const _0x521711=_0x572cf0;_0xd89738[_0x14d89d]={},_0x37c432[_0x521711(0x12e)]((_0x2d8d21,_0x448ec0)=>{const _0x183c38=_0x521711;_0xd89738[_0x14d89d][_0x448ec0]=_0x2d8d21[_0x183c38(0x19d)]();});}),_0xd89738;}[_0x3a184f(0x13a)](_0x1afe8e){const _0x27fbfc=_0x3a184f;Object['keys'](_0x1afe8e)[_0x27fbfc(0x12e)](_0x158725=>{const _0x21dcfc=_0x27fbfc;let _0x2843aa=_0x1afe8e[_0x158725];Object[_0x21dcfc(0x117)](_0x2843aa)[_0x21dcfc(0x12e)](_0x1d50ad=>{const _0x51dd46=_0x21dcfc;this[_0x51dd46(0x143)](_0x158725,_0x1d50ad)['fromJSON'](_0x2843aa[_0x1d50ad]);});});}[_0x3a184f(0x12a)](){const _0x5c6638=_0x3a184f;this[_0x5c6638(0x144)]['registerPluginResource']({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x5e7a6a[_0x5c6638(0x1a1)]],'toJson':_0x1e1564=>this[_0x5c6638(0x123)](_0x1e1564),'parseJson':_0x44a26c=>JSON[_0x5c6638(0x120)](_0x44a26c),'onLoad':(_0x11b444,_0x1843c2)=>{const _0x2e901b=_0x5c6638;this[_0x2e901b(0x175)](_0x11b444,_0x1843c2);},'onUnLoad':_0x510e16=>{const _0x513309=_0x5c6638;let _0x2377e0=this[_0x513309(0x15d)][_0x513309(0x1a6)](_0x510e16);_0x2377e0&&(_0x2377e0[_0x513309(0x12e)](_0x681535=>{const _0x1d124a=_0x513309;_0x681535[_0x1d124a(0x142)]();}),this[_0x513309(0x15d)][_0x513309(0x158)](_0x510e16));}});}[_0x3a184f(0x142)](){const _0x4b9303=_0x3a184f;this['_shapeModelManagerMap'][_0x4b9303(0x12e)](_0x3c8fb=>{const _0x51426b=_0x4b9303;_0x3c8fb[_0x51426b(0x12e)](_0xef9a54=>{_0xef9a54['dispose']();});});}};G=W([U(0x0,_0x3863ee)],G);const K={'id':_0x3a184f(0x19c),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1f7f83,_0x38f528)=>{const _0x930aa8=_0x3a184f;let {unitId:_0x59b21f,subUnitId:_0x30485a,shapeType:_0xebd56a,shapeId:_0x1c564f,shapeData:_0x3f7b2a}=_0x38f528;return _0x1f7f83[_0x930aa8(0x1a6)](G)[_0x930aa8(0x184)](_0x59b21f,_0x30485a,_0xebd56a,_0x1c564f,_0x3f7b2a),!0x0;}},q={'id':_0x3a184f(0x150),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x570f20,_0x4670c2)=>{const _0x25ddcd=_0x3a184f;let {unitId:_0x2e338a,subUnitId:_0x4f81fe,shapeId:_0x1ab9b9}=_0x4670c2;return _0x570f20[_0x25ddcd(0x1a6)](G)[_0x25ddcd(0x152)](_0x2e338a,_0x4f81fe,_0x1ab9b9),!0x0;}},J={'type':_0x353930[_0x3a184f(0x17c)],'id':'sheet.command.insert-shape','handler':(_0x4d9f48,_0x55a69d)=>{const _0x337bf7=_0x3a184f;var _0x25c3a5,_0x13889c;let _0x217e1b=_0x2792d1(_0x4d9f48['get'](_0x40f73c),_0x55a69d);if(!_0x217e1b)return!0x1;let _0x1fbc28=_0x4d9f48['get'](_0x40d9b8),{unitId:_0x9d3603,subUnitId:_0x38bade}=_0x217e1b,_0x2acb1c=_0x1fbc28[_0x337bf7(0x133)](_0x9d3603,_0x38bade);if(!_0x2acb1c)return!0x1;let _0x103657=_0x4d9f48[_0x337bf7(0x1a6)](_0x27fb22),_0x140091=_0x4d9f48['get'](_0x1e7ecc),_0x5d2270=_0x4d9f48['get'](_0x1d917b),_0x25f9a6=_0x4d9f48['get'](_0x39f882),{shapeType:_0x2851c8,shapeData:_0x225859}=_0x55a69d,_0xbde33f=_0x55a69d['shapeId']||_0x31fc7d(),_0x3fae70={'unitId':_0x9d3603,'subUnitId':_0x38bade,'shapeId':_0xbde33f,'shapeType':_0x2851c8,'shapeData':_0x225859},_0x32c443=_0x55a69d[_0x337bf7(0x179)]||0xc8,_0x2f978e=_0x55a69d[_0x337bf7(0x187)]||0xc8,_0x11e4d8=0x0,_0x27fcda=0x0,_0x48058d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x4708e2={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x55a69d[_0x337bf7(0x11d)]){let {x:_0x5b14bd,y:_0x38b9a5}=_0x55a69d['position'];_0x11e4d8=_0x5b14bd,_0x27fcda=_0x38b9a5,_0x48058d=_0x2acb1c[_0x337bf7(0x164)](_0x5b14bd,_0x38b9a5),_0x4708e2=_0x2acb1c[_0x337bf7(0x164)](_0x5b14bd+_0x32c443,_0x38b9a5+_0x2f978e);}else{if(_0x55a69d['range']){let {startRow:_0x2ab7e5,startColumn:_0x1646b1}=_0x55a69d[_0x337bf7(0x17e)];_0x48058d={'row':_0x2ab7e5,'rowOffset':0xa,'column':_0x1646b1,'columnOffset':0xa};let _0x1904e7=_0x2acb1c['getCellWithCoordByIndex'](_0x2ab7e5,_0x1646b1);_0x11e4d8=_0x1904e7[_0x337bf7(0x1a4)]+0xa,_0x27fcda=_0x1904e7[_0x337bf7(0x1a8)]+0xa,_0x4708e2=_0x2acb1c[_0x337bf7(0x164)](_0x11e4d8+_0x32c443,_0x27fcda+_0x2f978e);}}let _0x4875ca={'from':_0x48058d,'to':_0x4708e2},_0xd17438={'unitId':_0x9d3603,'subUnitId':_0x38bade,'drawingId':_0xbde33f,'drawingType':_0x123f9a['DRAWING_SHAPE'],'sheetTransform':_0x4875ca,'transform':{'left':_0x11e4d8,'top':_0x27fcda,'width':_0x32c443,'height':_0x2f978e},'data':{'shapeType':_0x2851c8,'shapeData':_0x225859},'axisAlignSheetTransform':_0x4875ca,'allowTransform':!0x0};_0x711ab1(_0x2851c8)&&(_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x15f)]=!0x1,_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x11c)]=!0x1,_0xd17438[_0x337bf7(0x130)]['resizeEnabled']=!0x1,_0xd17438[_0x337bf7(0x130)][_0x337bf7(0x153)]=!0x1,_0xd17438['transform'][_0x337bf7(0x11c)]=!0x1,_0xd17438[_0x337bf7(0x161)][_0x337bf7(0x155)]=!0x1,_0xd17438['transform']['borderEnabled']=!0x1);let {undo:_0x1a1b94,redo:_0x5881f3,objects:_0x37aab6}=_0x25f9a6[_0x337bf7(0x178)]([_0xd17438]),_0x5f2dcb=_0x5d2270['onCommandExecute']({'id':_0x4d513b['id'],'params':{'unitId':_0x9d3603,'drawings':[_0xd17438]}}),_0x356969=[...(_0x25c3a5=_0x5f2dcb['preRedos'])==null?[]:_0x25c3a5,{'id':_0x25204a['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'op':_0x5881f3,'objects':_0x37aab6,'type':_0x597b08['INSERT']}},{'id':_0x2c533f['id'],'params':[_0x9d3603]},..._0x5f2dcb[_0x337bf7(0x14f)],{'id':K['id'],'params':_0x3fae70}],_0x1f83d0=[{'id':q['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'shapeId':_0xbde33f}},...(_0x13889c=_0x5f2dcb[_0x337bf7(0x154)])==null?[]:_0x13889c,{'id':_0x25204a['id'],'params':{'unitId':_0x9d3603,'subUnitId':_0x38bade,'op':_0x1a1b94,'objects':_0x37aab6,'type':_0x597b08[_0x337bf7(0x132)]}},{'id':_0x2c533f['id'],'params':[_0x9d3603]},..._0x5f2dcb['undos']];return _0x3f0ae0(_0x356969,_0x103657)['result']?(_0x140091['pushUndoRedo']({'unitID':_0x9d3603,'undoMutations':_0x1f83d0,'redoMutations':_0x356969}),!0x0):!0x1;}},Y={'id':_0x3a184f(0x126),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1f9c33,_0xcb5c53)=>{const _0x5900ce=_0x3a184f;let {unitId:_0x312c57,subUnitId:_0x51ce84,shapeType:_0x52111e,shapeId:_0x25efa6,shapeData:_0x31a303}=_0xcb5c53,_0x5482da=_0x1f9c33['get'](G)[_0x5900ce(0x182)](_0x312c57,_0x51ce84,_0x25efa6);return _0x5482da&&(_0x52111e!==void 0x0&&_0x5482da[_0x5900ce(0x181)](_0x52111e),_0x31a303&&(_0x5482da==null||_0x5482da[_0x5900ce(0x14d)](_0x31a303,!0x0))),!0x0;}},ee={'type':_0x353930['COMMAND'],'id':_0x3a184f(0x14a),'handler':(_0x151e36,_0x25658b)=>{const _0x1a61d3=_0x3a184f;var _0x51976a,_0x4c2027;let _0x2805f3=_0x2792d1(_0x151e36[_0x1a61d3(0x1a6)](_0x40f73c),_0x25658b);if(!_0x2805f3)return!0x1;let _0x2e9e6c=_0x151e36[_0x1a61d3(0x1a6)](_0x40d9b8),{unitId:_0x235eab,subUnitId:_0x5421e9}=_0x2805f3,_0x22ac00=_0x2e9e6c[_0x1a61d3(0x133)](_0x235eab,_0x5421e9);if(!_0x22ac00)return!0x1;let _0xf4bff4=_0x151e36[_0x1a61d3(0x1a6)](G),{shapeId:_0x457b63,shapeType:_0x2ce9ae,shapeData:_0x370c0a,position:_0x1f99fa,width:_0x3f5227,height:_0x3b7a9e}=_0x25658b,_0x19434f=_0xf4bff4[_0x1a61d3(0x182)](_0x235eab,_0x5421e9,_0x457b63);if(!_0x19434f)return!0x1;let _0x2c70f9=_0x151e36[_0x1a61d3(0x1a6)](_0x27fb22),_0x514c31=_0x151e36['get'](_0x1e7ecc),_0x40e896=_0x151e36[_0x1a61d3(0x1a6)](_0x1d917b),_0x3cd78e=_0x151e36[_0x1a61d3(0x1a6)](_0x39f882),_0x1f63c2={'unitId':_0x235eab,'subUnitId':_0x5421e9,'shapeId':_0x457b63,'shapeType':_0x2ce9ae,'shapeData':_0x370c0a},_0x4b983b=_0x19434f[_0x1a61d3(0x173)](),_0x2197ea=_0x19434f[_0x1a61d3(0x1ab)](),{x:_0x2edd4b,y:_0x57482a}=_0x1f99fa,_0xb8ff5a={'from':_0x22ac00[_0x1a61d3(0x164)](_0x2edd4b,_0x57482a),'to':_0x22ac00[_0x1a61d3(0x164)](_0x2edd4b+_0x3f5227,_0x57482a+_0x3b7a9e)},_0x2d6c9c={'unitId':_0x235eab,'subUnitId':_0x5421e9,'drawingId':_0x457b63,'drawingType':_0x123f9a[_0x1a61d3(0x1a2)],'sheetTransform':_0xb8ff5a,'transform':{'left':_0x2edd4b,'top':_0x57482a,'width':_0x3f5227,'height':_0x3b7a9e},'data':{'shapeType':_0x2ce9ae,'shapeData':_0x370c0a},'axisAlignSheetTransform':_0xb8ff5a,'allowTransform':!0x0};_0x711ab1(_0x2ce9ae)&&(_0x2d6c9c[_0x1a61d3(0x130)]['fill']=!0x1,_0x2d6c9c[_0x1a61d3(0x130)][_0x1a61d3(0x11c)]=!0x1,_0x2d6c9c['data'][_0x1a61d3(0x155)]=!0x1,_0x2d6c9c['data'][_0x1a61d3(0x153)]=!0x1,_0x2d6c9c['transform'][_0x1a61d3(0x11c)]=!0x1,_0x2d6c9c[_0x1a61d3(0x161)][_0x1a61d3(0x155)]=!0x1,_0x2d6c9c[_0x1a61d3(0x161)][_0x1a61d3(0x153)]=!0x1);let {undo:_0x26052b,redo:_0x29f6c9,objects:_0x95a0a6}=_0x3cd78e[_0x1a61d3(0x13d)]([_0x2d6c9c]),_0x1b65ac=_0x40e896[_0x1a61d3(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x235eab,'drawings':[_0x2d6c9c]}}),_0x4f4cf8=[...(_0x51976a=_0x1b65ac[_0x1a61d3(0x183)])==null?[]:_0x51976a,{'id':_0x25204a['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'op':_0x29f6c9,'objects':_0x95a0a6,'type':_0x597b08[_0x1a61d3(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x235eab]},..._0x1b65ac[_0x1a61d3(0x14f)],{'id':Y['id'],'params':_0x1f63c2}],_0x32108a=[...(_0x4c2027=_0x1b65ac['preUndos'])==null?[]:_0x4c2027,{'id':_0x25204a['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'op':_0x26052b,'objects':_0x95a0a6,'type':_0x597b08[_0x1a61d3(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x235eab]},..._0x1b65ac[_0x1a61d3(0x195)],{'id':Y['id'],'params':{'unitId':_0x235eab,'subUnitId':_0x5421e9,'shapeType':_0x4b983b,'shapeId':_0x457b63,'shapeData':_0x2197ea}}];return _0x3f0ae0(_0x4f4cf8,_0x2c70f9)[_0x1a61d3(0x185)]?(_0x514c31[_0x1a61d3(0x199)]({'unitID':_0x235eab,'undoMutations':_0x32108a,'redoMutations':_0x4f4cf8}),!0x0):!0x1;}},te={'type':_0x353930['COMMAND'],'id':'sheet.command.toggle-shape-flip','handler':(_0x4aff08,_0x981567)=>{const _0x2d32ed=_0x3a184f;var _0x2f79c4,_0x1f2c46;let _0x2f2deb=_0x2792d1(_0x4aff08[_0x2d32ed(0x1a6)](_0x40f73c),_0x981567);if(!_0x2f2deb)return!0x1;let _0x6be591=_0x4aff08[_0x2d32ed(0x1a6)](_0x40d9b8),{unitId:_0x432a8a,subUnitId:_0x3b8801}=_0x2f2deb,_0x28355e=_0x6be591[_0x2d32ed(0x186)](_0x432a8a,_0x3b8801);if(!_0x28355e)return!0x1;let _0x320b3b=_0x4aff08[_0x2d32ed(0x1a6)](_0x39f882),{shapeId:_0x338df1,flipH:_0x303d53,flipV:_0x4bd4b6}=_0x981567,_0x329490=_0x320b3b[_0x2d32ed(0x12f)]({'unitId':_0x432a8a,'subUnitId':_0x3b8801,'drawingId':_0x338df1});if(!_0x329490)return!0x1;let _0x4eabe3=_0x4aff08[_0x2d32ed(0x1a6)](G)['getShapeModel'](_0x432a8a,_0x3b8801,_0x338df1);if(!_0x4eabe3)return!0x1;let _0x116ddf=_0x4aff08[_0x2d32ed(0x1a6)](_0x27fb22),_0x180d75=_0x4aff08[_0x2d32ed(0x1a6)](_0x1e7ecc),_0x3490df=_0x4aff08[_0x2d32ed(0x1a6)](_0x1d917b),_0x3addfd={..._0x329490['transform']};_0x303d53!==void 0x0&&(_0x3addfd[_0x2d32ed(0x12c)]=!_0x3addfd[_0x2d32ed(0x12c)]),_0x4bd4b6!==void 0x0&&(_0x3addfd['flipY']=!_0x3addfd[_0x2d32ed(0x113)]);let _0x103998=_0x5b629c(_0x3addfd,_0x28355e),_0xbba810=_0x107177(_0x3addfd,_0x28355e),_0x505e68=_0x4eabe3[_0x2d32ed(0x173)](),_0x2bfae2=_0x4eabe3['getShapeData'](),_0x38b526={'unitId':_0x432a8a,'subUnitId':_0x3b8801,'drawingId':_0x338df1,'drawingType':_0x123f9a[_0x2d32ed(0x1a2)],'sheetTransform':_0x103998,'transform':_0x3addfd,'data':{'shapeType':_0x505e68,'shapeData':_0x2bfae2},'axisAlignSheetTransform':_0xbba810,'allowTransform':!0x0},{undo:_0x4cf7db,redo:_0x34ab4d,objects:_0x2d722e}=_0x320b3b[_0x2d32ed(0x13d)]([_0x38b526]),_0x4e15a0=_0x3490df[_0x2d32ed(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x432a8a,'drawings':[_0x38b526]}}),_0x1a0ed3=[...(_0x2f79c4=_0x4e15a0[_0x2d32ed(0x183)])==null?[]:_0x2f79c4,{'id':_0x25204a['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'op':_0x34ab4d,'objects':_0x2d722e,'type':_0x597b08[_0x2d32ed(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x432a8a]},..._0x4e15a0['redos']],_0x44db1d=[...(_0x1f2c46=_0x4e15a0[_0x2d32ed(0x154)])==null?[]:_0x1f2c46,{'id':_0x25204a['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'op':_0x4cf7db,'objects':_0x2d722e,'type':_0x597b08[_0x2d32ed(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x432a8a]},..._0x4e15a0[_0x2d32ed(0x195)]];if(_0x711ab1(_0x505e68)){let _0x3c3ac1=_0x4eabe3['getShapeRelation']();if(_0x3c3ac1){let _0xb465e5={..._0x3c3ac1};_0xb465e5['from']=void 0x0,_0xb465e5['to']=void 0x0,_0x1a0ed3['push']({'id':Y['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'shapeId':_0x338df1,'shapeType':_0x505e68,'shapeData':{'relation':_0xb465e5}}}),_0x44db1d[_0x2d32ed(0x13e)]({'id':Y['id'],'params':{'unitId':_0x432a8a,'subUnitId':_0x3b8801,'shapeId':_0x338df1,'shapeType':_0x505e68,'shapeData':{'relation':_0x3c3ac1}}});}}return _0x3f0ae0(_0x1a0ed3,_0x116ddf)[_0x2d32ed(0x185)]?(_0x180d75['pushUndoRedo']({'unitID':_0x432a8a,'undoMutations':_0x44db1d,'redoMutations':_0x1a0ed3}),!0x0):!0x1;}},X={'type':_0x353930['COMMAND'],'id':_0x3a184f(0x16a),'handler':(_0x4e5dc5,_0x53c907)=>{const _0x1fe8c5=_0x3a184f;var _0x4ec0ac,_0x523cd8;let _0x39bc04=_0x2792d1(_0x4e5dc5['get'](_0x40f73c),_0x53c907);if(!_0x39bc04)return!0x1;let _0x4918a6=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x40d9b8),{unitId:_0x18a8d4,subUnitId:_0x29f4f3}=_0x39bc04,_0x2286c3=_0x4918a6[_0x1fe8c5(0x186)](_0x18a8d4,_0x29f4f3);if(!_0x2286c3)return!0x1;let _0x286a03=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x39f882),{shapeId:_0x509d34,rotate:_0x973a5}=_0x53c907,_0x102d3f=_0x286a03[_0x1fe8c5(0x12f)]({'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'drawingId':_0x509d34});if(!_0x102d3f)return!0x1;let _0x55bfc4=_0x4e5dc5['get'](G)['getShapeModel'](_0x18a8d4,_0x29f4f3,_0x509d34);if(!_0x55bfc4)return!0x1;let _0x10f880=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x27fb22),_0x4505e2=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x1e7ecc),_0x3cfa04=_0x4e5dc5[_0x1fe8c5(0x1a6)](_0x1d917b),_0x1d353a={..._0x102d3f[_0x1fe8c5(0x161)]};_0x973a5!==void 0x0&&(_0x1d353a[_0x1fe8c5(0x1a3)]=(_0x1d353a[_0x1fe8c5(0x1a3)]||0x0)+_0x973a5);let _0x627fff=_0x5b629c(_0x1d353a,_0x2286c3),_0x204d2e=_0x107177(_0x1d353a,_0x2286c3),_0x5a7350=_0x55bfc4[_0x1fe8c5(0x173)](),_0x188caf=_0x55bfc4['getShapeData'](),_0x5b9db2={'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'drawingId':_0x509d34,'drawingType':_0x123f9a[_0x1fe8c5(0x1a2)],'sheetTransform':_0x627fff,'transform':_0x1d353a,'data':{'shapeType':_0x5a7350,'shapeData':_0x188caf},'axisAlignSheetTransform':_0x204d2e,'allowTransform':!0x0},{undo:_0x2bb91c,redo:_0x521643,objects:_0x4c131d}=_0x286a03['getBatchUpdateOp']([_0x5b9db2]),_0x3baa7f=_0x3cfa04['onCommandExecute']({'id':_0x1c5703['id'],'params':{'unitId':_0x18a8d4,'drawings':[_0x5b9db2]}}),_0x47b9a4=[...(_0x4ec0ac=_0x3baa7f[_0x1fe8c5(0x183)])==null?[]:_0x4ec0ac,{'id':_0x25204a['id'],'params':{'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'op':_0x521643,'objects':_0x4c131d,'type':_0x597b08[_0x1fe8c5(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x18a8d4]},..._0x3baa7f[_0x1fe8c5(0x14f)]],_0x4dec91=[...(_0x523cd8=_0x3baa7f[_0x1fe8c5(0x154)])==null?[]:_0x523cd8,{'id':_0x25204a['id'],'params':{'unitId':_0x18a8d4,'subUnitId':_0x29f4f3,'op':_0x2bb91c,'objects':_0x4c131d,'type':_0x597b08[_0x1fe8c5(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x18a8d4]},..._0x3baa7f[_0x1fe8c5(0x195)]];return _0x3f0ae0(_0x47b9a4,_0x10f880)[_0x1fe8c5(0x185)]?(_0x4505e2[_0x1fe8c5(0x199)]({'unitID':_0x18a8d4,'undoMutations':_0x4dec91,'redoMutations':_0x47b9a4}),!0x0):!0x1;}},Z={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x139),'handler':(_0x168738,_0x490206)=>{const _0xb78bb6=_0x3a184f;var _0x73a9d5;let _0x5ea308=_0x2792d1(_0x168738[_0xb78bb6(0x1a6)](_0x40f73c),_0x490206);if(!_0x5ea308)return!0x1;let {unitId:_0x599693,subUnitId:_0x4da870}=_0x5ea308,{shapeId:_0x397957}=_0x490206,_0x58f49b=_0x168738[_0xb78bb6(0x1a6)](G)[_0xb78bb6(0x182)](_0x599693,_0x4da870,_0x397957);if(!_0x58f49b)return!0x1;let _0x44c977=_0x58f49b['getShapeTextData'](),_0x206301=(_0x73a9d5=_0x44c977==null?void 0x0:_0x44c977['isHorizontal'])==null?!0x0:_0x73a9d5,_0x4fd1b5=!_0x206301,_0x2cc954=_0x168738[_0xb78bb6(0x1a6)](_0x27fb22),_0x49a0da=_0x168738['get'](_0x1e7ecc),_0x5e4d18={'unitId':_0x599693,'subUnitId':_0x4da870,'shapeId':_0x397957,'shapeData':{'shapeText':{'isHorizontal':_0x4fd1b5}}},_0xa334a3={'unitId':_0x599693,'subUnitId':_0x4da870,'shapeId':_0x397957,'shapeData':{'shapeText':{'isHorizontal':_0x206301}}},_0x5a7886=[{'id':Y['id'],'params':_0x5e4d18}],_0x30f133=[{'id':Y['id'],'params':_0xa334a3}];return _0x3f0ae0(_0x5a7886,_0x2cc954)[_0xb78bb6(0x185)]?(_0x49a0da[_0xb78bb6(0x199)]({'unitID':_0x599693,'undoMutations':_0x30f133,'redoMutations':_0x5a7886}),!0x0):!0x1;}},ne={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x176),'handler':(_0x136d52,_0x4fa08c)=>{const _0x321f1d=_0x3a184f;var _0x304ded,_0x4d0f55,_0x29d787,_0xe0de00;let _0x5994e9=_0x2792d1(_0x136d52[_0x321f1d(0x1a6)](_0x40f73c),_0x4fa08c);if(!_0x5994e9)return!0x1;let _0x28378b=_0x136d52[_0x321f1d(0x1a6)](_0x40d9b8),{unitId:_0x5299fc,subUnitId:_0x180441}=_0x5994e9,_0x4b666d=_0x28378b[_0x321f1d(0x186)](_0x5299fc,_0x180441);if(!_0x4b666d)return!0x1;let _0x1c1932=_0x136d52[_0x321f1d(0x1a6)](_0x39f882),{connectorShapeId:_0x31f485,width:_0x38b798,height:_0x5491b3,left:_0x276efb,top:_0xb142da,flipX:_0x286f52,flipY:_0x339b57,rotation:_0x1575ae,oldAdjustValues:_0x447e89,newAdjustValues:_0x2d0646,oldLineType:_0xcb1f6b,newLineType:_0x4af916,oldRelation:_0x4b530d,newRelation:_0x36827e}=_0x4fa08c,_0x3d89cf=_0x1c1932['getDrawingByParam']({'unitId':_0x5299fc,'subUnitId':_0x180441,'drawingId':_0x31f485});if(!_0x3d89cf)return!0x1;let _0x41ec22=_0x136d52[_0x321f1d(0x1a6)](G)[_0x321f1d(0x182)](_0x5299fc,_0x180441,_0x31f485);if(!_0x41ec22)return!0x1;let _0x4878f4=_0x136d52[_0x321f1d(0x1a6)](_0x27fb22),_0x117973=_0x136d52[_0x321f1d(0x1a6)](_0x1e7ecc),_0x296541=_0x136d52[_0x321f1d(0x1a6)](_0x1d917b),_0x41ec5b={..._0x3d89cf[_0x321f1d(0x161)],'width':_0x38b798,'height':_0x5491b3,'left':_0x276efb,'top':_0xb142da,'flipX':_0x286f52,'flipY':_0x339b57,'angle':(_0x304ded=_0x1575ae==null?(_0x4d0f55=_0x3d89cf[_0x321f1d(0x161)])==null?void 0x0:_0x4d0f55[_0x321f1d(0x1a3)]:_0x1575ae)==null?0x0:_0x304ded},_0x15e45f=_0x5b629c(_0x41ec5b,_0x4b666d),_0x55435e=_0x107177(_0x41ec5b,_0x4b666d),_0x5c91ee=_0x41ec22['getShapeType'](),_0x581454=_0x41ec22['getShapeData'](),_0x40258d={'unitId':_0x5299fc,'subUnitId':_0x180441,'drawingId':_0x31f485,'drawingType':_0x123f9a[_0x321f1d(0x1a2)],'sheetTransform':_0x15e45f,'transform':_0x41ec5b,'data':{'shapeType':_0x4af916||_0xcb1f6b||_0x5c91ee,'shapeData':{..._0x581454,'adjustValues':_0x2d0646||_0x447e89||(_0x581454==null?void 0x0:_0x581454[_0x321f1d(0x193)]),'relation':_0x36827e||_0x4b530d||(_0x581454==null?void 0x0:_0x581454[_0x321f1d(0x18d)])}},'axisAlignSheetTransform':_0x55435e,'allowTransform':!0x0},{undo:_0x185018,redo:_0x530d61,objects:_0x3404bb}=_0x1c1932['getBatchUpdateOp']([_0x40258d]),_0x51b02d=_0x296541[_0x321f1d(0x18a)]({'id':_0x1c5703['id'],'params':{'unitId':_0x5299fc,'drawings':[_0x40258d]}}),_0x5a4d12=[...(_0x29d787=_0x51b02d[_0x321f1d(0x183)])==null?[]:_0x29d787,{'id':_0x25204a['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'op':_0x530d61,'objects':_0x3404bb,'type':_0x597b08['UPDATE']}},{'id':_0x2c533f['id'],'params':[_0x5299fc]},..._0x51b02d['redos'],{'id':Y['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'shapeId':_0x31f485,'shapeType':_0x4af916,'shapeData':{'adjustValues':_0x2d0646,'relation':_0x36827e}}}],_0x1352ca=[...(_0xe0de00=_0x51b02d[_0x321f1d(0x154)])==null?[]:_0xe0de00,{'id':_0x25204a['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'op':_0x185018,'objects':_0x3404bb,'type':_0x597b08[_0x321f1d(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x5299fc]},..._0x51b02d[_0x321f1d(0x195)],{'id':Y['id'],'params':{'unitId':_0x5299fc,'subUnitId':_0x180441,'shapeId':_0x31f485,'shapeType':_0x5c91ee,'shapeData':{..._0x581454,'adjustValues':_0x447e89||(_0x581454==null?void 0x0:_0x581454['adjustValues']),'relation':_0x4b530d||(_0x581454==null?void 0x0:_0x581454['relation'])}}}];return _0x3f0ae0(_0x5a4d12,_0x4878f4)[_0x321f1d(0x185)]?(_0x117973['pushUndoRedo']({'unitID':_0x5299fc,'undoMutations':_0x1352ca,'redoMutations':_0x5a4d12}),!0x0):!0x1;}},re={'type':_0x353930[_0x3a184f(0x17c)],'id':_0x3a184f(0x16c),'handler':(_0x1f480f,_0x5cf9f3)=>{const _0x5b0bfb=_0x3a184f;var _0x360baf,_0x401fc7;let _0x3f8285=_0x2792d1(_0x1f480f[_0x5b0bfb(0x1a6)](_0x40f73c),_0x5cf9f3);if(!_0x3f8285)return!0x1;let _0x41aab2=_0x1f480f[_0x5b0bfb(0x1a6)](_0x40d9b8),{unitId:_0x4a9a9d,subUnitId:_0x1e6e8f}=_0x3f8285,_0x22b177=_0x41aab2[_0x5b0bfb(0x186)](_0x4a9a9d,_0x1e6e8f);if(!_0x22b177)return!0x1;let _0x46378e=_0x1f480f[_0x5b0bfb(0x1a6)](_0x39f882),{shapeId:_0x588867,width:_0x170a38,height:_0x58c15e,left:_0x51b87c,top:_0xd2d5ac,flipX:_0x53a31d,flipY:_0x5b438f,angle:_0x1ad7c7,oldAdjustValues:_0x2cb737,newAdjustValues:_0xc35bee,oldLineType:_0x27ce98,newLineType:_0x40aa5d}=_0x5cf9f3,_0x12ea4d=_0x46378e[_0x5b0bfb(0x12f)]({'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'drawingId':_0x588867});if(!_0x12ea4d)return!0x1;let _0x419033=_0x1f480f[_0x5b0bfb(0x1a6)](G)['getShapeModel'](_0x4a9a9d,_0x1e6e8f,_0x588867);if(!_0x419033)return!0x1;let _0xb3c4ce=_0x1f480f[_0x5b0bfb(0x1a6)](_0x27fb22),_0x458b4a=_0x1f480f['get'](_0x1e7ecc),_0x4eb71d=_0x1f480f['get'](_0x1d917b),_0xf1742e={..._0x12ea4d[_0x5b0bfb(0x161)],'width':_0x170a38,'height':_0x58c15e,'left':_0x51b87c,'top':_0xd2d5ac,'flipX':_0x53a31d,'flipY':_0x5b438f,'angle':_0x1ad7c7},_0x460217=_0x5b629c(_0xf1742e,_0x22b177),_0x1c74b7=_0x107177(_0xf1742e,_0x22b177),_0x12fff3=_0x419033[_0x5b0bfb(0x173)](),_0x663597=_0x419033[_0x5b0bfb(0x1ab)](),_0x3c5666={'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'drawingId':_0x588867,'drawingType':_0x123f9a[_0x5b0bfb(0x1a2)],'sheetTransform':_0x460217,'transform':_0xf1742e,'data':{'shapeType':_0x40aa5d||_0x27ce98||_0x12fff3,'shapeData':{..._0x663597,'adjustValues':_0xc35bee||_0x2cb737||(_0x663597==null?void 0x0:_0x663597[_0x5b0bfb(0x193)])}},'axisAlignSheetTransform':_0x1c74b7,'allowTransform':!0x0},{undo:_0x4b3064,redo:_0x3dbfd2,objects:_0x5dc28a}=_0x46378e[_0x5b0bfb(0x13d)]([_0x3c5666]),_0x34bf57=_0x4eb71d['onCommandExecute']({'id':_0x1c5703['id'],'params':{'unitId':_0x4a9a9d,'drawings':[_0x3c5666]}}),_0x31f6e7=[...(_0x360baf=_0x34bf57['preRedos'])==null?[]:_0x360baf,{'id':_0x25204a['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'op':_0x3dbfd2,'objects':_0x5dc28a,'type':_0x597b08['UPDATE']}},{'id':_0x2c533f['id'],'params':[_0x4a9a9d]},..._0x34bf57[_0x5b0bfb(0x14f)],{'id':Y['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'shapeId':_0x588867,'shapeType':_0x40aa5d,'shapeData':{'adjustValues':_0xc35bee}}}],_0x45fb49=[...(_0x401fc7=_0x34bf57[_0x5b0bfb(0x154)])==null?[]:_0x401fc7,{'id':_0x25204a['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'op':_0x4b3064,'objects':_0x5dc28a,'type':_0x597b08[_0x5b0bfb(0x15c)]}},{'id':_0x2c533f['id'],'params':[_0x4a9a9d]},..._0x34bf57['undos'],{'id':Y['id'],'params':{'unitId':_0x4a9a9d,'subUnitId':_0x1e6e8f,'shapeId':_0x588867,'shapeType':_0x12fff3,'shapeData':{..._0x663597,'adjustValues':_0x2cb737||(_0x663597==null?void 0x0:_0x663597[_0x5b0bfb(0x193)])}}}];return _0x3f0ae0(_0x31f6e7,_0xb3c4ce)[_0x5b0bfb(0x185)]?(_0x458b4a['pushUndoRedo']({'unitID':_0x4a9a9d,'undoMutations':_0x45fb49,'redoMutations':_0x31f6e7}),!0x0):!0x1;}},Q={'id':_0x3a184f(0x11e),'type':_0x353930[_0x3a184f(0x170)],'handler':(_0x1133a4,_0x2c5ac7)=>{const _0x27ae5a=_0x3a184f;let {unitId:_0x33308b,subUnitId:_0x8249b5,shapeType:_0x4978e8,shapeId:_0x215edd,shapeData:_0x1b7f10}=_0x2c5ac7,_0x4b744b=_0x1133a4[_0x27ae5a(0x1a6)](G)[_0x27ae5a(0x182)](_0x33308b,_0x8249b5,_0x215edd);return _0x4b744b&&(_0x4b744b[_0x27ae5a(0x181)](_0x4978e8),_0x1b7f10&&(_0x4b744b==null||_0x4b744b[_0x27ae5a(0x14d)](_0x1b7f10))),!0x0;}},ie={'id':_0x3a184f(0x15b),'type':_0x353930[_0x3a184f(0x17c)],'handler':(_0x495809,_0x934799)=>{const _0x3f63f9=_0x3a184f;if(!_0x934799)return!0x1;let _0x34b3a5=_0x495809['get'](_0x27fb22),_0x294644=_0x495809[_0x3f63f9(0x1a6)](G),_0x2d4f5b=_0x495809[_0x3f63f9(0x1a6)](_0x1e7ecc),_0x17df6c=[],_0x4c5199=[],{unitId:_0x3c7281,subUnitId:_0x1db864,shapeId:_0x53e010,shapeType:_0xd0e356,shapeData:_0x5ec1fd}=_0x934799,_0x8672c2=_0x294644[_0x3f63f9(0x182)](_0x3c7281,_0x1db864,_0x53e010);if(_0x8672c2){let _0x400ee5=_0x8672c2['getShapeType'](),_0xfd1e60=Object[_0x3f63f9(0x138)]({},_0x8672c2[_0x3f63f9(0x1ab)]()),_0x4374b0={'unitId':_0x3c7281,'subUnitId':_0x1db864,'shapeId':_0x53e010,'shapeType':_0xd0e356,'shapeData':_0x5ec1fd},_0x47e62c={'unitId':_0x3c7281,'subUnitId':_0x1db864,'shapeId':_0x53e010,'shapeType':_0x400ee5,'shapeData':_0xfd1e60};return _0x17df6c[_0x3f63f9(0x13e)]({'id':Q['id'],'params':_0x4374b0}),_0x4c5199[_0x3f63f9(0x13e)]({'id':Q['id'],'params':_0x47e62c}),_0x17df6c[_0x3f63f9(0x116)](_0x1c29bd=>_0x34b3a5['syncExecuteCommand'](_0x1c29bd['id'],_0x1c29bd[_0x3f63f9(0x145)]))&&_0x2d4f5b['pushUndoRedo']({'unitID':_0x3c7281,'redoMutations':[..._0x17df6c],'undoMutations':[..._0x4c5199]}),!0x0;}return!0x1;}};var ae='@univerjs-pro/sheets-shape',oe=_0x3a184f(0x160);const se=_0x3a184f(0x11f);Symbol(se);const ce={};let le=class extends _0x24c5b2{constructor(_0x1dc1a0,_0x7a20ea,_0x486921,_0x2c6534,_0x10e2ee){const _0x51d6bc=_0x3a184f;super(),this[_0x51d6bc(0x180)]=_0x1dc1a0,this[_0x51d6bc(0x16f)]=_0x7a20ea,this[_0x51d6bc(0x1a7)]=_0x486921,this[_0x51d6bc(0x162)]=_0x2c6534,this[_0x51d6bc(0x124)]=_0x10e2ee,this[_0x51d6bc(0x17b)](),this[_0x51d6bc(0x151)]();}[_0x3a184f(0x17b)](){const _0x16ad58=_0x3a184f;[J,ee,te,X,Z,ne,re,K,q,Q,Y][_0x16ad58(0x12e)](_0x41fbf4=>this[_0x16ad58(0x191)](this[_0x16ad58(0x180)][_0x16ad58(0x129)](_0x41fbf4)));}['_initCommandInterceptor'](){const _0x30d632=_0x3a184f;this[_0x30d632(0x191)](this[_0x30d632(0x16f)][_0x30d632(0x159)]({'getMutations':_0x1ea33d=>{const _0x204f58=_0x30d632;if(_0x1ea33d['id']===_0x3e5d52['id']){let {drawings:_0x270280}=_0x1ea33d[_0x204f58(0x145)],_0x1820cc=_0x270280[_0x204f58(0x125)](_0x48acd5=>_0x48acd5['drawingType']===_0x123f9a['DRAWING_SHAPE']);if(_0x1820cc[_0x204f58(0x1a5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xd28b9b=[],_0x384e69=[];return _0x1820cc['forEach'](_0x2c08f6=>{const _0x11a355=_0x204f58;let {unitId:_0x26dc1a,subUnitId:_0x111a3d,drawingId:_0x252e27}=_0x2c08f6,_0x237d0b=this['_sheetsShapeService']['getShapeModel'](_0x26dc1a,_0x111a3d,_0x252e27);if(!_0x237d0b)throw TypeError(_0x11a355(0x16d)+_0x237d0b);_0xd28b9b[_0x11a355(0x13e)]({'id':q['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x252e27}}),_0x384e69['push']({'id':K['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x252e27,'shapeType':_0x237d0b[_0x11a355(0x173)](),'shapeData':_0x237d0b[_0x11a355(0x1ab)]()}});let _0x228fd3=this['_sheetsShapeService'][_0x11a355(0x141)](_0x26dc1a,_0x111a3d,_0x252e27);if(_0x228fd3)for(let _0x2327e0 of _0x228fd3){let _0x9f6ba3=_0x2327e0[_0x11a355(0x127)],_0x285e7b=_0x2327e0[_0x11a355(0x174)],_0x1cad23=_0x285e7b?{'from':void 0x0}:{'to':void 0x0},_0x14e943=_0x285e7b?{'from':{'shapeId':_0x2327e0[_0x11a355(0x19a)],'cxnIndex':_0x2327e0[_0x11a355(0x13f)]}}:{'to':{'shapeId':_0x2327e0[_0x11a355(0x19a)],'cxnIndex':_0x2327e0[_0x11a355(0x13f)]}};_0xd28b9b[_0x11a355(0x13e)]({'id':Y['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x9f6ba3,'shapeData':{'relation':_0x1cad23}}}),_0x384e69[_0x11a355(0x13e)]({'id':Y['id'],'params':{'unitId':_0x26dc1a,'subUnitId':_0x111a3d,'shapeId':_0x9f6ba3,'shapeData':{'relation':_0x14e943}}});}}),{'preRedos':_0xd28b9b,'redos':[],'preUndos':[],'undos':_0x384e69};}if(_0x1ea33d['id']===_0x1c5703['id']){let {drawings:_0x482f82}=_0x1ea33d[_0x204f58(0x145)],_0x48e43b=_0x482f82[_0x204f58(0x125)](_0x2ec4fb=>_0x2ec4fb[_0x204f58(0x19f)]===_0x123f9a['DRAWING_SHAPE']);if(_0x48e43b[_0x204f58(0x1a5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1b1c60=[],_0x4c4b12=[];for(let _0x49e0c0 of _0x48e43b){let {unitId:_0x15a74a,subUnitId:_0x46640a,drawingId:_0x736b7e,transform:_0x41a753}=_0x49e0c0;if(!_0x15a74a||!_0x46640a||!_0x736b7e||!_0x41a753)continue;let _0x3a2fdc=this[_0x204f58(0x162)][_0x204f58(0x182)](_0x15a74a,_0x46640a,_0x736b7e);if(!_0x3a2fdc)throw TypeError(_0x204f58(0x16d)+_0x3a2fdc);if(_0x711ab1(_0x3a2fdc['getShapeType']())){let _0x2a9def=this[_0x204f58(0x162)][_0x204f58(0x18f)](_0x15a74a,_0x46640a,_0x736b7e);_0x2a9def&&(_0x1b1c60[_0x204f58(0x13e)]({'id':Y['id'],'params':{'unitId':_0x15a74a,'subUnitId':_0x46640a,'shapeId':_0x736b7e,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4c4b12[_0x204f58(0x13e)]({'id':Y['id'],'params':{'unitId':_0x15a74a,'subUnitId':_0x46640a,'shapeId':_0x736b7e,'shapeData':{'relation':_0x2a9def}}}));}else{let _0x5bbd2b=this['_sheetsShapeService'][_0x204f58(0x141)](_0x15a74a,_0x46640a,_0x736b7e);if(_0x5bbd2b&&_0x5bbd2b['length']>0x0)for(let _0x488771 of _0x5bbd2b){let _0x42d73e=_0x488771['lineShapeId'],_0x1243ca=_0x488771[_0x204f58(0x174)],_0x48a3f1=this[_0x204f58(0x162)][_0x204f58(0x182)](_0x15a74a,_0x46640a,_0x42d73e);if(!_0x48a3f1)continue;let _0x3f1583=_0x48a3f1[_0x204f58(0x198)](),_0x40ff0b=_0x48a3f1[_0x204f58(0x118)]();_0x3f1583&&_0x40ff0b?this['_addLineRerouteUpdates'](_0x15a74a,_0x46640a,_0x42d73e,_0x48a3f1,_0x3f1583,_0x40ff0b,_0x1b1c60,_0x4c4b12,_0x736b7e,_0x41a753):this[_0x204f58(0x167)](_0x15a74a,_0x46640a,_0x42d73e,_0x48a3f1,_0x1243ca?_0x3f1583:_0x40ff0b,_0x1243ca,_0x1b1c60,_0x4c4b12,_0x736b7e,_0x41a753);}}}return{'preRedos':[],'redos':_0x1b1c60,'preUndos':_0x4c4b12,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3a184f(0x192)](_0x6cd8d9,_0x5d0ce9,_0x46479e,_0x22c157,_0x4a3c72){const _0x3ca78a=_0x3a184f;if(!_0x5d0ce9||!_0x46479e)return null;let {shapeId:_0x2f751c,cxnIndex:_0x1acf9d}=_0x6cd8d9,_0x6e799=this[_0x3ca78a(0x162)][_0x3ca78a(0x182)](_0x5d0ce9,_0x46479e,_0x2f751c);if(!_0x6e799)return null;let _0x33a816=this[_0x3ca78a(0x124)][_0x3ca78a(0x12f)]({'unitId':_0x5d0ce9,'subUnitId':_0x46479e,'drawingId':_0x2f751c});if(!(_0x33a816!=null&&_0x33a816[_0x3ca78a(0x161)]))return null;let {left:_0x2b6856=0x0,top:_0x5a55fc=0x0,width:_0x2633a8=0x0,height:_0x1bae60=0x0,flipX:_0x4f362e=!0x1,flipY:_0x2fc6f3=!0x1,angle:_0x489913}=_0x33a816[_0x3ca78a(0x161)];if(_0x4a3c72&&_0x22c157===_0x2f751c){var _0x1a087e,_0x9e285b,_0x3bd779,_0x598fbd,_0x17df4a,_0x46f2bb,_0x44e124;_0x2b6856=(_0x1a087e=_0x4a3c72[_0x3ca78a(0x131)])==null?_0x2b6856:_0x1a087e,_0x5a55fc=(_0x9e285b=_0x4a3c72[_0x3ca78a(0x188)])==null?_0x5a55fc:_0x9e285b,_0x2633a8=(_0x3bd779=_0x4a3c72[_0x3ca78a(0x179)])==null?_0x2633a8:_0x3bd779,_0x1bae60=(_0x598fbd=_0x4a3c72[_0x3ca78a(0x187)])==null?_0x1bae60:_0x598fbd,_0x4f362e=(_0x17df4a=_0x4a3c72[_0x3ca78a(0x12c)])==null?_0x4f362e:_0x17df4a,_0x2fc6f3=(_0x46f2bb=_0x4a3c72[_0x3ca78a(0x113)])==null?_0x2fc6f3:_0x46f2bb,_0x489913=(_0x44e124=_0x4a3c72[_0x3ca78a(0x1a3)])==null?_0x489913:_0x44e124;}_0x6e799[_0x3ca78a(0x12d)]({'width':_0x2633a8,'height':_0x1bae60});let _0xf3797a=_0x6e799[_0x3ca78a(0x128)]()[_0x3ca78a(0x171)](_0x4ede54=>_0x4ede54[_0x3ca78a(0x115)]===_0x1acf9d);if(!_0xf3797a)return null;let _0x5700e9=_0x4f362e?_0x2633a8-_0xf3797a['x']:_0xf3797a['x'],_0xacd598=_0x2fc6f3?_0x1bae60-_0xf3797a['y']:_0xf3797a['y'];if(_0x489913!==0x0&&_0x489913!=null){let _0x571137=_0x489913*Math['PI']/0xb4,_0x43a5a4=Math[_0x3ca78a(0x14e)](_0x571137),_0x2c4de0=Math['sin'](_0x571137),_0x2e07d5=_0x2633a8/0x2,_0x3a6c2b=_0x1bae60/0x2,_0x27f36a=_0x5700e9-_0x2e07d5,_0x437a3c=_0xacd598-_0x3a6c2b;_0x5700e9=_0x2e07d5+_0x27f36a*_0x43a5a4-_0x437a3c*_0x2c4de0,_0xacd598=_0x3a6c2b+_0x27f36a*_0x2c4de0+_0x437a3c*_0x43a5a4;}_0x5700e9+=_0x2b6856,_0xacd598+=_0x5a55fc;let _0x96f53e=_0xf3797a[_0x3ca78a(0x168)]/0xea60;_0x4f362e&&(_0x96f53e=0xb4-_0x96f53e),_0x2fc6f3&&(_0x96f53e=-_0x96f53e),_0x96f53e+=_0x489913||0x0,_0x96f53e=(_0x96f53e%0x168+0x168)%0x168;let _0x8a48d=_0x5e7c0a({'left':_0x2b6856,'top':_0x5a55fc,'width':_0x2633a8,'height':_0x1bae60},_0x489913||0x0);return{'point':{'x':_0x5700e9,'y':_0xacd598},'angle':_0x96f53e,'bounds':_0x8a48d};}[_0x3a184f(0x11b)](_0x96f936,_0x226e52,_0xa7f9bd,_0x551b16,_0x51e9ba,_0x286338,_0x46c5f3,_0x1020a0,_0x26050b,_0x554563){const _0x938ed3=_0x3a184f;let _0x97f887=this['_sheetSkeletonService'][_0x938ed3(0x186)](_0x96f936,_0x226e52);if(!_0x97f887)return;let _0x1361c2=_0x551b16['getShapeRelation'](),_0xb64df0=_0x551b16[_0x938ed3(0x17f)](),_0x483efb={},_0x1c742e={};_0xb64df0[_0x938ed3(0x12e)](_0x3e21da=>{let _0x1a885c=_0x551b16['getAdjustValueByName'](_0x3e21da);_0x1c742e[_0x3e21da]=_0x1a885c==null?0x0:_0x1a885c;});let _0x2445f5=this[_0x938ed3(0x192)](_0x51e9ba,_0x96f936,_0x226e52,_0x26050b,_0x554563),_0x25507c=this['_getConnectPointInfo'](_0x286338,_0x96f936,_0x226e52,_0x26050b,_0x554563);if(_0x2445f5&&_0x25507c){let _0x1cece7=_0x551b16[_0x938ed3(0x173)](),_0x48c3dc=_0x3ff60f(_0x2445f5,_0x25507c,_0x1cece7),_0x50adfa=_0x1cece7;if(_0x48c3dc){let _0x58953a=_0x2856f6(_0x48c3dc,_0x551b16['getShapeType']()),_0x3a465f=this[_0x938ed3(0x124)][_0x938ed3(0x196)](_0x96f936,_0x226e52);if(_0x3a465f&&_0x3a465f[_0xa7f9bd]){let _0x15a3b3=_0x3a465f[_0xa7f9bd];_0x50adfa=_0x58953a['lineType'];for(let [_0x2f6dc2,_0x5b646d]of Object[_0x938ed3(0x11a)](_0x58953a[_0x938ed3(0x193)]))_0x483efb[_0x2f6dc2]=_0x5b646d;let _0x16924d={..._0x15a3b3[_0x938ed3(0x161)],'width':_0x58953a[_0x938ed3(0x1a9)]['width'],'height':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x187)],'left':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x131)],'top':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x188)],'flipX':_0x58953a['worldRect'][_0x938ed3(0x12c)],'flipY':_0x58953a[_0x938ed3(0x1a9)][_0x938ed3(0x113)],'angle':_0x58953a['rotation']},_0x50d120=_0x5b629c(_0x16924d,_0x97f887),_0x19d0a7=_0x107177(_0x16924d,_0x97f887),_0x4c8ae0={'unitId':_0x96f936,'subUnitId':_0x226e52,'drawingType':_0x123f9a['DRAWING_SHAPE'],'drawingId':_0xa7f9bd,'transform':_0x16924d,'sheetTransform':_0x50d120,'axisAlignSheetTransform':_0x19d0a7},{unitId:_0x11aa67,subUnitId:_0x5b638d,undo:_0x5ab79b,redo:_0x10440e,objects:_0x3df361}=this[_0x938ed3(0x124)][_0x938ed3(0x13d)]([_0x4c8ae0]);_0x46c5f3['push']({'id':_0x25204a['id'],'params':{'unitId':_0x11aa67,'subUnitId':_0x5b638d,'op':_0x10440e,'objects':_0x3df361,'type':_0x597b08[_0x938ed3(0x15c)]}}),_0x1020a0[_0x938ed3(0x13e)]({'id':_0x25204a['id'],'params':{'unitId':_0x11aa67,'subUnitId':_0x5b638d,'op':_0x5ab79b,'objects':_0x3df361,'type':_0x597b08['UPDATE']}});}_0x551b16[_0x938ed3(0x134)]();}_0x46c5f3[_0x938ed3(0x13e)]({'id':Y['id'],'params':{'unitId':_0x96f936,'subUnitId':_0x226e52,'shapeId':_0xa7f9bd,'shapeType':_0x50adfa,'shapeData':{'adjustValues':_0x483efb,'relation':_0x1361c2}}}),_0x1020a0[_0x938ed3(0x13e)]({'id':Y['id'],'params':{'unitId':_0x96f936,'subUnitId':_0x226e52,'shapeId':_0xa7f9bd,'shapeType':_0x1cece7,'shapeData':{'adjustValues':_0x1c742e,'relation':_0x1361c2}}});}}[_0x3a184f(0x167)](_0x51f77e,_0x5abb7d,_0x2ccbd7,_0x25d05a,_0x22e6f7,_0x48a4a1,_0x219ea7,_0xc31eb9,_0x471290,_0x4fd8b2){const _0x4edb1a=_0x3a184f;var _0xa5e4c3;if(!_0x22e6f7)return;let _0x5de468=this['_sheetSkeletonService'][_0x4edb1a(0x186)](_0x51f77e,_0x5abb7d);if(!_0x5de468)return;let _0x3cb33d=(_0xa5e4c3=this[_0x4edb1a(0x124)]['getDrawingByParam']({'unitId':_0x51f77e,'subUnitId':_0x5abb7d,'drawingId':_0x471290}))==null?void 0x0:_0xa5e4c3['transform'];if(!_0x3cb33d)return;let _0x3f1dd9=_0x3cb33d[_0x4edb1a(0x131)]!==_0x4fd8b2['left']||_0x3cb33d[_0x4edb1a(0x188)]!==_0x4fd8b2[_0x4edb1a(0x188)],_0x11d64b=_0x3cb33d[_0x4edb1a(0x179)]!==_0x4fd8b2['width']||_0x3cb33d['height']!==_0x4fd8b2['height'],_0x5488eb=_0x3cb33d['flipX']!==_0x4fd8b2[_0x4edb1a(0x12c)]||_0x3cb33d[_0x4edb1a(0x113)]!==_0x4fd8b2[_0x4edb1a(0x113)],_0x7f1563=_0x3cb33d[_0x4edb1a(0x1a3)]!==_0x4fd8b2[_0x4edb1a(0x1a3)];if(_0x3f1dd9&&!_0x11d64b&&!_0x5488eb&&!_0x7f1563){var _0x5e0a26,_0x1739a5,_0x513f5e,_0x3ee93d;let _0x4fcd97=((_0x5e0a26=_0x4fd8b2['left'])==null?0x0:_0x5e0a26)-((_0x1739a5=_0x3cb33d[_0x4edb1a(0x131)])==null?0x0:_0x1739a5),_0x575b9e=((_0x513f5e=_0x4fd8b2[_0x4edb1a(0x188)])==null?0x0:_0x513f5e)-((_0x3ee93d=_0x3cb33d[_0x4edb1a(0x188)])==null?0x0:_0x3ee93d),_0xc2a84=this[_0x4edb1a(0x124)][_0x4edb1a(0x196)](_0x51f77e,_0x5abb7d);if(_0xc2a84&&_0xc2a84[_0x2ccbd7]){var _0x5da9d4,_0x10785b,_0x135c38,_0x3f0b5c;let _0x13ad5d=_0xc2a84[_0x2ccbd7],_0x5c2a23={..._0x13ad5d['transform'],'left':((_0x5da9d4=(_0x10785b=_0x13ad5d[_0x4edb1a(0x161)])==null?void 0x0:_0x10785b[_0x4edb1a(0x131)])==null?0x0:_0x5da9d4)+_0x4fcd97,'top':((_0x135c38=(_0x3f0b5c=_0x13ad5d[_0x4edb1a(0x161)])==null?void 0x0:_0x3f0b5c['top'])==null?0x0:_0x135c38)+_0x575b9e},_0x482877=_0x5b629c(_0x5c2a23,_0x5de468),_0x3fddc3=_0x107177(_0x5c2a23,_0x5de468),_0x17d995={'unitId':_0x51f77e,'subUnitId':_0x5abb7d,'drawingType':_0x123f9a['DRAWING_SHAPE'],'drawingId':_0x2ccbd7,'transform':_0x5c2a23,'sheetTransform':_0x482877,'axisAlignSheetTransform':_0x3fddc3},{unitId:_0x171aca,subUnitId:_0x48a2aa,undo:_0x4ad4b8,redo:_0x22e497,objects:_0x26282c}=this['_drawingManagerService']['getBatchUpdateOp']([_0x17d995]);_0x219ea7[_0x4edb1a(0x13e)]({'id':_0x25204a['id'],'params':{'unitId':_0x171aca,'subUnitId':_0x48a2aa,'op':_0x22e497,'objects':_0x26282c,'type':_0x597b08[_0x4edb1a(0x15c)]}}),_0xc31eb9['push']({'id':_0x25204a['id'],'params':{'unitId':_0x171aca,'subUnitId':_0x48a2aa,'op':_0x4ad4b8,'objects':_0x26282c,'type':_0x597b08[_0x4edb1a(0x15c)]}});}}else{let _0x18da3c=_0x25d05a[_0x4edb1a(0x198)](),_0x4bc225=_0x25d05a[_0x4edb1a(0x118)]();this[_0x4edb1a(0x11b)](_0x51f77e,_0x5abb7d,_0x2ccbd7,_0x25d05a,_0x18da3c,_0x4bc225,_0x219ea7,_0xc31eb9,_0x471290,_0x4fd8b2);}}};le=W([U(0x0,_0x27fb22),U(0x1,_0x14913b(_0x1d917b)),U(0x2,_0x14913b(_0x40d9b8)),U(0x3,_0x14913b(G)),U(0x4,_0x14913b(_0x2841a3))],le);let $=class extends _0x1916d8{constructor(_0x2c54e8=ce,_0x3e8e51,_0x3564a4,_0x301fbd){const _0x2dbcaf=_0x3a184f;super(),this[_0x2dbcaf(0x16b)]=_0x2c54e8,this['_injector']=_0x3e8e51,this[_0x2dbcaf(0x180)]=_0x3564a4,this[_0x2dbcaf(0x163)]=_0x301fbd;let {..._0x2e07cc}=_0x2fb6e3({},ce,this[_0x2dbcaf(0x16b)]);this[_0x2dbcaf(0x163)]['setConfig'](se,_0x2e07cc);}[_0x3a184f(0x19e)](){const _0x1683db=_0x3a184f;let _0x4d71cc=this['_injector'];[[H],[G],[le]][_0x1683db(0x12e)](_0x19ab22=>_0x4d71cc['add'](_0x19ab22)),_0x47b815(_0x4d71cc,[[G],[le]]);}};V($,'type',_0x5e7a6a['UNIVER_SHEET']),V($,_0x3a184f(0x169),_0x3a184f(0x1aa)),V($,'packageName',ae),V($,_0x3a184f(0x119),oe),$=W([_0x8500a4(_0x3c411b),U(0x1,_0x14913b(_0x378ab6)),U(0x2,_0x27fb22),U(0x3,_0x59fdba)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
1
+ const _0x35f79c=_0x2167;(function(_0x2f26d1,_0x162d70){const _0x477a7f=_0x2167,_0x1913c8=_0x2f26d1();while(!![]){try{const _0x4ec8d7=-parseInt(_0x477a7f(0xb7))/0x1+-parseInt(_0x477a7f(0xe1))/0x2+parseInt(_0x477a7f(0xcd))/0x3+parseInt(_0x477a7f(0x10c))/0x4*(parseInt(_0x477a7f(0xdb))/0x5)+-parseInt(_0x477a7f(0xbd))/0x6+parseInt(_0x477a7f(0xe5))/0x7*(parseInt(_0x477a7f(0x109))/0x8)+parseInt(_0x477a7f(0xf9))/0x9;if(_0x4ec8d7===_0x162d70)break;else _0x1913c8['push'](_0x1913c8['shift']());}catch(_0x41ba1d){_0x1913c8['push'](_0x1913c8['shift']());}}}(_0x1238,0x45d5f));import{ShapeModel as _0x5f2519,computeConnectorRouteLayout as _0x6da396,getBasicShapeRotateBound as _0x33eb95,isConnectorShape as _0x27c329,routeConnectorLineShape as _0x3de667}from'@univerjs-pro/engine-shape';import{CommandType as _0x563c6d,DependentOn as _0x4d893d,Disposable as _0x540e89,DrawingTypeEnum as _0x43bb4b,ICommandService as _0x14537d,IConfigService as _0x45a1ad,IResourceManagerService as _0x5357a6,IUndoRedoService as _0x4ad18c,IUniverInstanceService as _0x1b2090,Inject as _0x56d6c5,Injector as _0x4104fb,Plugin as _0x1f0f66,UniverInstanceType as _0x52ae4c,generateRandomId as _0x2d3aac,merge as _0x4764c5,sequenceExecute as _0x576ed8,touchDependencies as _0x494c3e}from'@univerjs/core';import{SheetInterceptorService as _0x5e4927,SheetSkeletonService as _0xe5cdeb,getSheetCommandTarget as _0x548129}from'@univerjs/sheets';function _0x2167(_0x497d39,_0x350d87){_0x497d39=_0x497d39-0x7d;const _0x123831=_0x1238();let _0x216721=_0x123831[_0x497d39];return _0x216721;}import{ClearSheetDrawingTransformerOperation as _0x49ea18,DrawingApplyType as _0x59ff5d,ISheetDrawingService as _0x1eb5a3,InsertSheetDrawingCommand as _0x3ca2ba,RemoveSheetDrawingCommand as _0x474978,SetDrawingApplyMutation as _0x409811,SetSheetDrawingCommand as _0x1207c1,transformToAxisAlignPosition as _0x4575c6,transformToDrawingPosition as _0x150ffb}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x15c2f8}from'@univerjs-pro/license';import{IDrawingManagerService as _0xdb3d88}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x5097a1){'@babel/helpers - typeof';const _0x14cc4e=_0x2167;return R=typeof Symbol==_0x14cc4e(0xe9)&&typeof Symbol[_0x14cc4e(0xc1)]==_0x14cc4e(0xa8)?function(_0x143767){return typeof _0x143767;}:function(_0x322dcb){const _0x29ec6d=_0x14cc4e;return _0x322dcb&&typeof Symbol=='function'&&_0x322dcb['constructor']===Symbol&&_0x322dcb!==Symbol['prototype']?_0x29ec6d(0xa8):typeof _0x322dcb;},R(_0x5097a1);}function z(_0x202c06,_0x520de1){const _0x47fadb=_0x2167;if(R(_0x202c06)!=_0x47fadb(0xfb)||!_0x202c06)return _0x202c06;var _0x4fd268=_0x202c06[Symbol['toPrimitive']];if(_0x4fd268!==void 0x0){var _0x37baf5=_0x4fd268['call'](_0x202c06,_0x520de1||'default');if(R(_0x37baf5)!=_0x47fadb(0xfb))return _0x37baf5;throw TypeError(_0x47fadb(0x10e));}return(_0x520de1==='string'?String:Number)(_0x202c06);}function B(_0x151b5b){const _0x18f2c8=_0x2167;var _0x3a8603=z(_0x151b5b,_0x18f2c8(0xb3));return R(_0x3a8603)=='symbol'?_0x3a8603:_0x3a8603+'';}function _0x1238(){const _0x42caef=['updateContext','_serializeShapeForUnit','SHEET_SHAPE_PLUGIN','sheet.command.set-shape-drawing-data','string','getDrawingData','add','undos','189153dAXmMs','getShapeTypeById','onStarting','getCellWithCoordByIndex','getLineShapeRelation','left','2492832rIplsP','defineProperty','push','position','iterator','version','flipY','startY','cxnIndex','lineType','sheets-shape.config','getStartConnectInfo','_commandService','redos','clear','getShapeType','325491NrNhfK','startX','delete','_groupIds','getBasicShapeRelation','sheet.mutation.update-shape-type','_getConnectPointInfo','_disposed','assign','width','getShapeModel','_resourcesManagerService','top','hasShape','172425OoAJsf','interceptCommand','setShapeData','DRAWING_SHAPE','fill','rotation','853392YeYseO','_initCommandInterceptor','type','getCellIndexAndOffsetByPosition','1246063mwnwSp','get','entries','getEndConnectInfo','function','adjustValues','packageName','COMMAND','onCommandExecute','getAdjustNames','worldRect','getDrawingByParam','removeShape','setShapeType','filter','height','getBatchUpdateOp','angle','setConfig','result','5763231pwmYQn','_shapes','object','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_ensureShapeModelManager','data','length','_sheetSkeletonService','forEach','sheet.command.set-shape-text-vertical-toggle','disposeWithMe','fromJSON','preRedos','flipX','syncExecuteCommand','ensureSkeleton','24kAYvfu','getShapeTextData','dispose','4ZxQDug','params','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','rotateEnabled','drawingType','sheet.command.update-line-shape-resize','UPDATE','_configService','transform','isFrom','registerCommand','lineShapeId','getOwnPropertyDescriptor','index','keys','resizeEnabled','getShapeData','isHorizontal','_addLineFollowShapeUpdates','insertShape','_addLineRerouteUpdates','sheet.command.update-shape-type','decorate','getSkeleton','pushUndoRedo','getConnectionSiteList','_linesIds','from','getShapeRelation','_initSnapshot','toJSON','getShapeDataById','_sheetInterceptorService','shapeId','sheet.mutation.remove-shape','find','_shapeModelManagerMap','pluginName','isLineShape','addShape','_initCommands','set','borderEnabled','_drawingManagerService','UNIVER_SHEET','_deserializeShapeForUnit','preUndos','relation','MUTATION','symbol','_config','range','_sheetsShapeService','@univerjs-pro/sheets-shape','sin','_injector'];_0x1238=function(){return _0x42caef;};return _0x1238();}function V(_0x49e1f5,_0x328b6c,_0x20b66a){const _0x50c905=_0x2167;return(_0x328b6c=B(_0x328b6c))in _0x49e1f5?Object[_0x50c905(0xbe)](_0x49e1f5,_0x328b6c,{'value':_0x20b66a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49e1f5[_0x328b6c]=_0x20b66a,_0x49e1f5;}var H=class extends _0x540e89{constructor(){const _0x10b857=_0x2167;super(),V(this,_0x10b857(0xfa),new Map()),V(this,_0x10b857(0x91),new Set()),V(this,_0x10b857(0xd0),new Set());}[_0x35f79c(0x9e)](_0x44866e,_0x1cc029,_0x16c880){const _0xb07bc3=_0x35f79c;let _0x572ba6=new _0x5f2519(_0x44866e,_0x1cc029,_0x16c880);return this[_0xb07bc3(0xfa)][_0xb07bc3(0xa0)](_0x1cc029,_0x572ba6),_0x27c329(_0x44866e)&&this[_0xb07bc3(0x91)][_0xb07bc3(0xb5)](_0x1cc029),_0x572ba6;}[_0x35f79c(0xd1)](_0x3ed925){const _0x2e64c5=_0x35f79c;let _0x1240d4=[];for(let _0x352d00 of this[_0x2e64c5(0x91)]){let _0x169a21=this[_0x2e64c5(0xfa)][_0x2e64c5(0xe6)](_0x352d00);if(_0x169a21){let _0x5c21bf=_0x169a21[_0x2e64c5(0x93)]();if(_0x5c21bf){var _0x3cd812,_0x237060;((_0x3cd812=_0x5c21bf['from'])==null?void 0x0:_0x3cd812[_0x2e64c5(0x98)])===_0x3ed925&&_0x1240d4['push']({..._0x5c21bf['from'],'lineShapeId':_0x352d00,'isFrom':!0x0}),((_0x237060=_0x5c21bf['to'])==null?void 0x0:_0x237060['shapeId'])===_0x3ed925&&_0x1240d4[_0x2e64c5(0xbf)]({..._0x5c21bf['to'],'lineShapeId':_0x352d00,'isFrom':!0x1});}}}return _0x1240d4;}[_0x35f79c(0xbb)](_0x4f96cd){const _0x2e5b95=_0x35f79c;let _0x3cfa33=this[_0x2e5b95(0xfa)][_0x2e5b95(0xe6)](_0x4f96cd);if(_0x3cfa33)return _0x3cfa33[_0x2e5b95(0x93)]();}[_0x35f79c(0xcc)](_0x2b2f27){const _0x18dac7=_0x35f79c;let _0x197d49=this[_0x18dac7(0xfa)][_0x18dac7(0xe6)](_0x2b2f27);if(_0x197d49)return _0x197d49[_0x18dac7(0xcc)]();}[_0x35f79c(0xda)](_0x327721){const _0x3556c0=_0x35f79c;return this[_0x3556c0(0xfa)]['has'](_0x327721);}['removeShape'](_0x179ee2){const _0x58d2b6=_0x35f79c;let _0x3974e6=this[_0x58d2b6(0xfa)]['get'](_0x179ee2);_0x3974e6&&(_0x27c329(_0x3974e6[_0x58d2b6(0xcc)]())&&this[_0x58d2b6(0x91)][_0x58d2b6(0xcf)](_0x179ee2),this[_0x58d2b6(0xfa)][_0x58d2b6(0xcf)](_0x179ee2));}[_0x35f79c(0x95)](){const _0xc9c438=_0x35f79c;let _0x51d2e1=[];return this[_0xc9c438(0xfa)]['forEach'](_0x53b7fe=>{const _0x37f512=_0xc9c438;_0x51d2e1[_0x37f512(0xbf)](_0x53b7fe[_0x37f512(0x95)]());}),_0x51d2e1;}[_0x35f79c(0x104)](_0x252e66){const _0x3a094d=_0x35f79c;for(let _0x56e03c of _0x252e66){let {id:_0x52da1a,shapeType:_0x4780e9}=_0x56e03c,_0x46f8af=this[_0x3a094d(0x9e)](_0x4780e9,_0x52da1a,_0x56e03c['shapeData']);_0x46f8af&&_0x46f8af[_0x3a094d(0x9d)]()&&this[_0x3a094d(0x91)][_0x3a094d(0xb5)](_0x52da1a);}}[_0x35f79c(0x10b)](){const _0x163f83=_0x35f79c;this[_0x163f83(0xd4)]||(this[_0x163f83(0xfa)][_0x163f83(0x101)](_0x1a01a1=>{const _0x4ac59c=_0x163f83;_0x1a01a1[_0x4ac59c(0x10b)]();}),this[_0x163f83(0xfa)][_0x163f83(0xcb)](),this[_0x163f83(0x91)][_0x163f83(0xcb)](),this[_0x163f83(0xd0)][_0x163f83(0xcb)](),super[_0x163f83(0x10b)]());}};function U(_0x4f42b1,_0x448d86){return function(_0x44b8cc,_0x5c9922){_0x448d86(_0x44b8cc,_0x5c9922,_0x4f42b1);};}function W(_0x30a8a6,_0x588f23,_0x8cc34e,_0x1520e1){const _0x2ecd84=_0x35f79c;var _0x5ebd02=arguments[_0x2ecd84(0xff)],_0x538d36=_0x5ebd02<0x3?_0x588f23:_0x1520e1===null?_0x1520e1=Object[_0x2ecd84(0x83)](_0x588f23,_0x8cc34e):_0x1520e1,_0x138719;if(typeof Reflect==_0x2ecd84(0xfb)&&typeof Reflect[_0x2ecd84(0x8d)]==_0x2ecd84(0xe9))_0x538d36=Reflect[_0x2ecd84(0x8d)](_0x30a8a6,_0x588f23,_0x8cc34e,_0x1520e1);else{for(var _0x595dc2=_0x30a8a6[_0x2ecd84(0xff)]-0x1;_0x595dc2>=0x0;_0x595dc2--)(_0x138719=_0x30a8a6[_0x595dc2])&&(_0x538d36=(_0x5ebd02<0x3?_0x138719(_0x538d36):_0x5ebd02>0x3?_0x138719(_0x588f23,_0x8cc34e,_0x538d36):_0x138719(_0x588f23,_0x8cc34e))||_0x538d36);}return _0x5ebd02>0x3&&_0x538d36&&Object['defineProperty'](_0x588f23,_0x8cc34e,_0x538d36),_0x538d36;}let G=class extends _0x540e89{constructor(_0x38fa58){const _0x23f2d3=_0x35f79c;super(),this[_0x23f2d3(0xd8)]=_0x38fa58,V(this,_0x23f2d3(0x9b),new Map()),this['_initSnapshot']();}[_0x35f79c(0xfd)](_0xe3c988,_0x488644){const _0xf93492=_0x35f79c;let _0x44c4ae=this[_0xf93492(0x9b)]['get'](_0xe3c988);_0x44c4ae||(_0x44c4ae=new Map(),this[_0xf93492(0x9b)][_0xf93492(0xa0)](_0xe3c988,_0x44c4ae));let _0x17b5be=_0x44c4ae[_0xf93492(0xe6)](_0x488644);return _0x17b5be||(_0x17b5be=new H(),_0x44c4ae[_0xf93492(0xa0)](_0x488644,_0x17b5be)),_0x17b5be;}[_0x35f79c(0x8a)](_0x4869d5,_0x41cbd6,_0x12f8f3,_0x26d167,_0x348f4f){const _0x34c0f9=_0x35f79c;this[_0x34c0f9(0xfd)](_0x4869d5,_0x41cbd6)[_0x34c0f9(0x9e)](_0x12f8f3,_0x26d167,_0x348f4f);}['removeShape'](_0x21cb59,_0xffa0ff,_0x59eb47){const _0x50166a=_0x35f79c;this['_ensureShapeModelManager'](_0x21cb59,_0xffa0ff)[_0x50166a(0xf1)](_0x59eb47);}['getBasicShapeType'](_0x5e2311,_0x3f9bff,_0x57cad2){const _0x127877=_0x35f79c;return this[_0x127877(0xfd)](_0x5e2311,_0x3f9bff)[_0x127877(0xcc)](_0x57cad2);}[_0x35f79c(0xcc)](_0x4476cb,_0xf7c564,_0x447161){const _0x34d2dd=_0x35f79c;return this['_ensureShapeModelManager'](_0x4476cb,_0xf7c564)[_0x34d2dd(0xcc)](_0x447161);}[_0x35f79c(0xda)](_0x1f8591,_0x35a4f4,_0x28fc84){const _0x4141bb=_0x35f79c;return this[_0x4141bb(0xfd)](_0x1f8591,_0x35a4f4)[_0x4141bb(0xda)](_0x28fc84);}[_0x35f79c(0xb8)](_0x1bf705,_0x514a22,_0x2902c1){return this['_ensureShapeModelManager'](_0x1bf705,_0x514a22)['getShapeType'](_0x2902c1);}[_0x35f79c(0x96)](_0x24599e,_0xb1ed00,_0x4d9c34){const _0x27fa9d=_0x35f79c;let _0x5a7d7a=this['_ensureShapeModelManager'](_0x24599e,_0xb1ed00);if(!_0x5a7d7a[_0x27fa9d(0xcc)](_0x4d9c34))return;let _0x131097=_0x5a7d7a['_shapes'][_0x27fa9d(0xe6)](_0x4d9c34);if(_0x131097)return _0x131097[_0x27fa9d(0x87)]();}[_0x35f79c(0xd7)](_0xc66862,_0x2acaf1,_0x161f9b){const _0x478fd8=_0x35f79c;return this[_0x478fd8(0xfd)](_0xc66862,_0x2acaf1)[_0x478fd8(0xfa)][_0x478fd8(0xe6)](_0x161f9b);}[_0x35f79c(0xd1)](_0x4e2429,_0x4d3007,_0x4d2f77){const _0x29316b=_0x35f79c;return this[_0x29316b(0xfd)](_0x4e2429,_0x4d3007)['getBasicShapeRelation'](_0x4d2f77);}['getLineShapeRelation'](_0x11e97d,_0x58bee2,_0x1a46f3){const _0x366a40=_0x35f79c;let _0x1d937a=this[_0x366a40(0xfd)](_0x11e97d,_0x58bee2)[_0x366a40(0xfa)]['get'](_0x1a46f3);if(_0x1d937a)return _0x1d937a[_0x366a40(0x93)]();}[_0x35f79c(0xf2)](){}['_serializeShapeForUnit'](_0x1d6259){const _0x3630da=_0x35f79c;let _0x854dbf={},_0x533ca9=this['_shapeModelManagerMap'][_0x3630da(0xe6)](_0x1d6259);return _0x533ca9&&_0x533ca9[_0x3630da(0x101)]((_0xec36eb,_0xb794e9)=>{const _0x1ea0fa=_0x3630da;let _0x1f1632=_0xec36eb[_0x1ea0fa(0x95)]();_0x1f1632[_0x1ea0fa(0xff)]>0x0&&(_0x854dbf[_0xb794e9]=_0x1f1632);}),JSON['stringify'](_0x854dbf);}[_0x35f79c(0xa4)](_0x161ac6,_0x2e7d18){const _0x30f209=_0x35f79c;Object['keys'](_0x2e7d18)[_0x30f209(0x101)](_0x1f2b39=>{const _0x298c43=_0x30f209;this['_ensureShapeModelManager'](_0x161ac6,_0x1f2b39)[_0x298c43(0x104)](_0x2e7d18[_0x1f2b39]);});}['toJSON'](){const _0x13ccdf=_0x35f79c;let _0x545a2a={};return this[_0x13ccdf(0x9b)][_0x13ccdf(0x101)]((_0x181b07,_0x4dcd83)=>{const _0x4ae45f=_0x13ccdf;_0x545a2a[_0x4dcd83]={},_0x181b07[_0x4ae45f(0x101)]((_0x31b76a,_0x96e157)=>{_0x545a2a[_0x4dcd83][_0x96e157]=_0x31b76a['toJSON']();});}),_0x545a2a;}[_0x35f79c(0x104)](_0x24f848){const _0x3bc1b6=_0x35f79c;Object[_0x3bc1b6(0x85)](_0x24f848)[_0x3bc1b6(0x101)](_0x1018a1=>{const _0x5a3147=_0x3bc1b6;let _0x440906=_0x24f848[_0x1018a1];Object[_0x5a3147(0x85)](_0x440906)[_0x5a3147(0x101)](_0x3e560b=>{const _0x9e3012=_0x5a3147;this[_0x9e3012(0xfd)](_0x1018a1,_0x3e560b)['fromJSON'](_0x440906[_0x3e560b]);});});}[_0x35f79c(0x94)](){const _0x51c756=_0x35f79c;this[_0x51c756(0xd8)]['registerPluginResource']({'pluginName':_0x51c756(0xb1),'businesses':[_0x52ae4c[_0x51c756(0xa3)]],'toJson':_0x227c38=>this[_0x51c756(0xb0)](_0x227c38),'parseJson':_0x17ba5a=>JSON['parse'](_0x17ba5a),'onLoad':(_0x4ff506,_0x322151)=>{const _0x5bffd9=_0x51c756;this[_0x5bffd9(0xa4)](_0x4ff506,_0x322151);},'onUnLoad':_0x10c97c=>{const _0x2c2072=_0x51c756;let _0x174680=this['_shapeModelManagerMap'][_0x2c2072(0xe6)](_0x10c97c);_0x174680&&(_0x174680[_0x2c2072(0x101)](_0x3424da=>{const _0x32b440=_0x2c2072;_0x3424da[_0x32b440(0x10b)]();}),this[_0x2c2072(0x9b)]['delete'](_0x10c97c));}});}[_0x35f79c(0x10b)](){const _0x2fe13a=_0x35f79c;this['_shapeModelManagerMap'][_0x2fe13a(0x101)](_0x1770ea=>{const _0x423121=_0x2fe13a;_0x1770ea[_0x423121(0x101)](_0x1d40c5=>{const _0x33f81a=_0x423121;_0x1d40c5[_0x33f81a(0x10b)]();});});}};G=W([U(0x0,_0x5357a6)],G);const K={'id':'sheet.mutation.insert-shape','type':_0x563c6d['MUTATION'],'handler':(_0x54c42b,_0x29654f)=>{const _0x1b97ea=_0x35f79c;let {unitId:_0x3bfdc6,subUnitId:_0x1f6f8a,shapeType:_0x125648,shapeId:_0x1b223f,shapeData:_0xb09cab}=_0x29654f;return _0x54c42b[_0x1b97ea(0xe6)](G)['insertShape'](_0x3bfdc6,_0x1f6f8a,_0x125648,_0x1b223f,_0xb09cab),!0x0;}},q={'id':_0x35f79c(0x99),'type':_0x563c6d['MUTATION'],'handler':(_0x3d9cca,_0x5e8a37)=>{const _0x28de8a=_0x35f79c;let {unitId:_0x3ab5c3,subUnitId:_0x2b984,shapeId:_0x16adef}=_0x5e8a37;return _0x3d9cca['get'](G)[_0x28de8a(0xf1)](_0x3ab5c3,_0x2b984,_0x16adef),!0x0;}},J={'type':_0x563c6d[_0x35f79c(0xec)],'id':'sheet.command.insert-shape','handler':(_0x48602b,_0x2814b4)=>{const _0x346bc6=_0x35f79c;var _0x20d775,_0xd8eca7;let _0x395c75=_0x548129(_0x48602b[_0x346bc6(0xe6)](_0x1b2090),_0x2814b4);if(!_0x395c75)return!0x1;let _0x308681=_0x48602b[_0x346bc6(0xe6)](_0xe5cdeb),{unitId:_0x33046e,subUnitId:_0x2e8b72}=_0x395c75,_0x390ea7=_0x308681[_0x346bc6(0x108)](_0x33046e,_0x2e8b72);if(!_0x390ea7)return!0x1;let _0x976e1=_0x48602b['get'](_0x14537d),_0x4a52a6=_0x48602b[_0x346bc6(0xe6)](_0x4ad18c),_0x3c3b82=_0x48602b[_0x346bc6(0xe6)](_0x5e4927),_0x5d56b7=_0x48602b['get'](_0x1eb5a3),{shapeType:_0x504629,shapeData:_0x585867}=_0x2814b4,_0x49db58=_0x2814b4[_0x346bc6(0x98)]||_0x2d3aac(),_0x5eaec1={'unitId':_0x33046e,'subUnitId':_0x2e8b72,'shapeId':_0x49db58,'shapeType':_0x504629,'shapeData':_0x585867},_0xc290ef=_0x2814b4[_0x346bc6(0xd6)]||0xc8,_0x435277=_0x2814b4[_0x346bc6(0xf4)]||0xc8,_0x146882=0x0,_0x3a67e8=0x0,_0x4c22bd={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x2e156c={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x2814b4[_0x346bc6(0xc0)]){let {x:_0x3a7b66,y:_0x1517fe}=_0x2814b4[_0x346bc6(0xc0)];_0x146882=_0x3a7b66,_0x3a67e8=_0x1517fe,_0x4c22bd=_0x390ea7['getCellIndexAndOffsetByPosition'](_0x3a7b66,_0x1517fe),_0x2e156c=_0x390ea7[_0x346bc6(0xe4)](_0x3a7b66+_0xc290ef,_0x1517fe+_0x435277);}else{if(_0x2814b4[_0x346bc6(0xaa)]){let {startRow:_0x5b19d1,startColumn:_0x5e85ff}=_0x2814b4[_0x346bc6(0xaa)];_0x4c22bd={'row':_0x5b19d1,'rowOffset':0xa,'column':_0x5e85ff,'columnOffset':0xa};let _0x42f006=_0x390ea7[_0x346bc6(0xba)](_0x5b19d1,_0x5e85ff);_0x146882=_0x42f006[_0x346bc6(0xce)]+0xa,_0x3a67e8=_0x42f006[_0x346bc6(0xc4)]+0xa,_0x2e156c=_0x390ea7[_0x346bc6(0xe4)](_0x146882+_0xc290ef,_0x3a67e8+_0x435277);}}let _0x12d21b={'from':_0x4c22bd,'to':_0x2e156c},_0xfb25b2={'unitId':_0x33046e,'subUnitId':_0x2e8b72,'drawingId':_0x49db58,'drawingType':_0x43bb4b[_0x346bc6(0xde)],'sheetTransform':_0x12d21b,'transform':{'left':_0x146882,'top':_0x3a67e8,'width':_0xc290ef,'height':_0x435277},'data':{'shapeType':_0x504629,'shapeData':_0x585867},'axisAlignSheetTransform':_0x12d21b,'allowTransform':!0x0};_0x27c329(_0x504629)&&(_0xfb25b2['data'][_0x346bc6(0xdf)]=!0x1,_0xfb25b2[_0x346bc6(0xfe)][_0x346bc6(0x10f)]=!0x1,_0xfb25b2[_0x346bc6(0xfe)][_0x346bc6(0x86)]=!0x1,_0xfb25b2['data']['borderEnabled']=!0x1,_0xfb25b2[_0x346bc6(0x7f)][_0x346bc6(0x10f)]=!0x1,_0xfb25b2['transform'][_0x346bc6(0x86)]=!0x1,_0xfb25b2[_0x346bc6(0x7f)][_0x346bc6(0xa1)]=!0x1);let {undo:_0x2a0193,redo:_0x390851,objects:_0x30300e}=_0x5d56b7['getBatchAddOp']([_0xfb25b2]),_0x22109f=_0x3c3b82[_0x346bc6(0xed)]({'id':_0x3ca2ba['id'],'params':{'unitId':_0x33046e,'drawings':[_0xfb25b2]}}),_0x26ba29=[...(_0x20d775=_0x22109f['preRedos'])==null?[]:_0x20d775,{'id':_0x409811['id'],'params':{'unitId':_0x33046e,'subUnitId':_0x2e8b72,'op':_0x390851,'objects':_0x30300e,'type':_0x59ff5d['INSERT']}},{'id':_0x49ea18['id'],'params':[_0x33046e]},..._0x22109f['redos'],{'id':K['id'],'params':_0x5eaec1}],_0xcd556c=[{'id':q['id'],'params':{'unitId':_0x33046e,'subUnitId':_0x2e8b72,'shapeId':_0x49db58}},...(_0xd8eca7=_0x22109f['preUndos'])==null?[]:_0xd8eca7,{'id':_0x409811['id'],'params':{'unitId':_0x33046e,'subUnitId':_0x2e8b72,'op':_0x2a0193,'objects':_0x30300e,'type':_0x59ff5d['REMOVE']}},{'id':_0x49ea18['id'],'params':[_0x33046e]},..._0x22109f[_0x346bc6(0xb6)]];return _0x576ed8(_0x26ba29,_0x976e1)[_0x346bc6(0xf8)]?(_0x4a52a6[_0x346bc6(0x8f)]({'unitID':_0x33046e,'undoMutations':_0xcd556c,'redoMutations':_0x26ba29}),!0x0):!0x1;}},Y={'id':'sheet.mutation.update-shape-data','type':_0x563c6d[_0x35f79c(0xa7)],'handler':(_0x370e79,_0x3f9c4e)=>{const _0xad17cb=_0x35f79c;let {unitId:_0x56f6d5,subUnitId:_0x419fb0,shapeType:_0x2db319,shapeId:_0x20c3af,shapeData:_0x55a6e8}=_0x3f9c4e,_0x4eeeaa=_0x370e79[_0xad17cb(0xe6)](G)['getShapeModel'](_0x56f6d5,_0x419fb0,_0x20c3af);return _0x4eeeaa&&(_0x2db319!==void 0x0&&_0x4eeeaa[_0xad17cb(0xf2)](_0x2db319),_0x55a6e8&&(_0x4eeeaa==null||_0x4eeeaa['setShapeData'](_0x55a6e8,!0x0))),!0x0;}},ee={'type':_0x563c6d[_0x35f79c(0xec)],'id':_0x35f79c(0xb2),'handler':(_0x1457b7,_0x1497f1)=>{const _0x2c063e=_0x35f79c;var _0x14eb60,_0x5044ef;let _0x499e78=_0x548129(_0x1457b7[_0x2c063e(0xe6)](_0x1b2090),_0x1497f1);if(!_0x499e78)return!0x1;let _0x5e2a33=_0x1457b7['get'](_0xe5cdeb),{unitId:_0x1cda0e,subUnitId:_0xbe6b7c}=_0x499e78,_0x3c332d=_0x5e2a33[_0x2c063e(0x108)](_0x1cda0e,_0xbe6b7c);if(!_0x3c332d)return!0x1;let _0x467349=_0x1457b7['get'](G),{shapeId:_0x55024f,shapeType:_0x1b3ee9,shapeData:_0x237aa7,position:_0x3cb88f,width:_0x46f2f7,height:_0x8a2afd}=_0x1497f1,_0x2e7a73=_0x467349[_0x2c063e(0xd7)](_0x1cda0e,_0xbe6b7c,_0x55024f);if(!_0x2e7a73)return!0x1;let _0x55c88b=_0x1457b7['get'](_0x14537d),_0x7faeb6=_0x1457b7[_0x2c063e(0xe6)](_0x4ad18c),_0x42a320=_0x1457b7[_0x2c063e(0xe6)](_0x5e4927),_0x2b8215=_0x1457b7[_0x2c063e(0xe6)](_0x1eb5a3),_0x150f4e={'unitId':_0x1cda0e,'subUnitId':_0xbe6b7c,'shapeId':_0x55024f,'shapeType':_0x1b3ee9,'shapeData':_0x237aa7},_0x34a66c=_0x2e7a73['getShapeType'](),_0x5b6e8e=_0x2e7a73[_0x2c063e(0x87)](),{x:_0x5c2c4c,y:_0x536075}=_0x3cb88f,_0x9ed519={'from':_0x3c332d[_0x2c063e(0xe4)](_0x5c2c4c,_0x536075),'to':_0x3c332d[_0x2c063e(0xe4)](_0x5c2c4c+_0x46f2f7,_0x536075+_0x8a2afd)},_0x55cb7a={'unitId':_0x1cda0e,'subUnitId':_0xbe6b7c,'drawingId':_0x55024f,'drawingType':_0x43bb4b[_0x2c063e(0xde)],'sheetTransform':_0x9ed519,'transform':{'left':_0x5c2c4c,'top':_0x536075,'width':_0x46f2f7,'height':_0x8a2afd},'data':{'shapeType':_0x1b3ee9,'shapeData':_0x237aa7},'axisAlignSheetTransform':_0x9ed519,'allowTransform':!0x0};_0x27c329(_0x1b3ee9)&&(_0x55cb7a['data']['fill']=!0x1,_0x55cb7a[_0x2c063e(0xfe)][_0x2c063e(0x10f)]=!0x1,_0x55cb7a['data']['resizeEnabled']=!0x1,_0x55cb7a[_0x2c063e(0xfe)][_0x2c063e(0xa1)]=!0x1,_0x55cb7a[_0x2c063e(0x7f)]['rotateEnabled']=!0x1,_0x55cb7a[_0x2c063e(0x7f)][_0x2c063e(0x86)]=!0x1,_0x55cb7a['transform'][_0x2c063e(0xa1)]=!0x1);let {undo:_0x2bd0d2,redo:_0x280841,objects:_0x327f01}=_0x2b8215[_0x2c063e(0xf5)]([_0x55cb7a]),_0x3780c4=_0x42a320[_0x2c063e(0xed)]({'id':_0x1207c1['id'],'params':{'unitId':_0x1cda0e,'drawings':[_0x55cb7a]}}),_0x15b3ee=[...(_0x14eb60=_0x3780c4[_0x2c063e(0x105)])==null?[]:_0x14eb60,{'id':_0x409811['id'],'params':{'unitId':_0x1cda0e,'subUnitId':_0xbe6b7c,'op':_0x280841,'objects':_0x327f01,'type':_0x59ff5d[_0x2c063e(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x1cda0e]},..._0x3780c4['redos'],{'id':Y['id'],'params':_0x150f4e}],_0x417046=[...(_0x5044ef=_0x3780c4[_0x2c063e(0xa5)])==null?[]:_0x5044ef,{'id':_0x409811['id'],'params':{'unitId':_0x1cda0e,'subUnitId':_0xbe6b7c,'op':_0x2bd0d2,'objects':_0x327f01,'type':_0x59ff5d[_0x2c063e(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x1cda0e]},..._0x3780c4[_0x2c063e(0xb6)],{'id':Y['id'],'params':{'unitId':_0x1cda0e,'subUnitId':_0xbe6b7c,'shapeType':_0x34a66c,'shapeId':_0x55024f,'shapeData':_0x5b6e8e}}];return _0x576ed8(_0x15b3ee,_0x55c88b)[_0x2c063e(0xf8)]?(_0x7faeb6['pushUndoRedo']({'unitID':_0x1cda0e,'undoMutations':_0x417046,'redoMutations':_0x15b3ee}),!0x0):!0x1;}},te={'type':_0x563c6d['COMMAND'],'id':'sheet.command.toggle-shape-flip','handler':(_0x3c0120,_0x41d1be)=>{const _0x149ca9=_0x35f79c;var _0x4d7421,_0xdc4ff0;let _0x2b7258=_0x548129(_0x3c0120[_0x149ca9(0xe6)](_0x1b2090),_0x41d1be);if(!_0x2b7258)return!0x1;let _0xfd64b7=_0x3c0120[_0x149ca9(0xe6)](_0xe5cdeb),{unitId:_0x49d4c6,subUnitId:_0x3193d4}=_0x2b7258,_0x4cea4e=_0xfd64b7[_0x149ca9(0x8e)](_0x49d4c6,_0x3193d4);if(!_0x4cea4e)return!0x1;let _0x2ba225=_0x3c0120[_0x149ca9(0xe6)](_0x1eb5a3),{shapeId:_0x54d660,flipH:_0x475da3,flipV:_0x34fa12}=_0x41d1be,_0x575c65=_0x2ba225[_0x149ca9(0xf0)]({'unitId':_0x49d4c6,'subUnitId':_0x3193d4,'drawingId':_0x54d660});if(!_0x575c65)return!0x1;let _0x4d3e4d=_0x3c0120['get'](G)['getShapeModel'](_0x49d4c6,_0x3193d4,_0x54d660);if(!_0x4d3e4d)return!0x1;let _0x252dd7=_0x3c0120[_0x149ca9(0xe6)](_0x14537d),_0x4a82e0=_0x3c0120[_0x149ca9(0xe6)](_0x4ad18c),_0x5c256d=_0x3c0120[_0x149ca9(0xe6)](_0x5e4927),_0x23f208={..._0x575c65[_0x149ca9(0x7f)]};_0x475da3!==void 0x0&&(_0x23f208['flipX']=!_0x23f208[_0x149ca9(0x106)]),_0x34fa12!==void 0x0&&(_0x23f208[_0x149ca9(0xc3)]=!_0x23f208['flipY']);let _0x44053f=_0x150ffb(_0x23f208,_0x4cea4e),_0x1a8174=_0x4575c6(_0x23f208,_0x4cea4e),_0x5ca6ab=_0x4d3e4d['getShapeType'](),_0x46bfb0=_0x4d3e4d[_0x149ca9(0x87)](),_0x253f21={'unitId':_0x49d4c6,'subUnitId':_0x3193d4,'drawingId':_0x54d660,'drawingType':_0x43bb4b[_0x149ca9(0xde)],'sheetTransform':_0x44053f,'transform':_0x23f208,'data':{'shapeType':_0x5ca6ab,'shapeData':_0x46bfb0},'axisAlignSheetTransform':_0x1a8174,'allowTransform':!0x0},{undo:_0x58b2fe,redo:_0x421104,objects:_0x49b38d}=_0x2ba225[_0x149ca9(0xf5)]([_0x253f21]),_0x13820f=_0x5c256d[_0x149ca9(0xed)]({'id':_0x1207c1['id'],'params':{'unitId':_0x49d4c6,'drawings':[_0x253f21]}}),_0x4df59f=[...(_0x4d7421=_0x13820f[_0x149ca9(0x105)])==null?[]:_0x4d7421,{'id':_0x409811['id'],'params':{'unitId':_0x49d4c6,'subUnitId':_0x3193d4,'op':_0x421104,'objects':_0x49b38d,'type':_0x59ff5d[_0x149ca9(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x49d4c6]},..._0x13820f[_0x149ca9(0xca)]],_0x1eace8=[...(_0xdc4ff0=_0x13820f[_0x149ca9(0xa5)])==null?[]:_0xdc4ff0,{'id':_0x409811['id'],'params':{'unitId':_0x49d4c6,'subUnitId':_0x3193d4,'op':_0x58b2fe,'objects':_0x49b38d,'type':_0x59ff5d[_0x149ca9(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x49d4c6]},..._0x13820f[_0x149ca9(0xb6)]];if(_0x27c329(_0x5ca6ab)){let _0x16d43e=_0x4d3e4d['getShapeRelation']();if(_0x16d43e){let _0x293f23={..._0x16d43e};_0x293f23[_0x149ca9(0x92)]=void 0x0,_0x293f23['to']=void 0x0,_0x4df59f[_0x149ca9(0xbf)]({'id':Y['id'],'params':{'unitId':_0x49d4c6,'subUnitId':_0x3193d4,'shapeId':_0x54d660,'shapeType':_0x5ca6ab,'shapeData':{'relation':_0x293f23}}}),_0x1eace8[_0x149ca9(0xbf)]({'id':Y['id'],'params':{'unitId':_0x49d4c6,'subUnitId':_0x3193d4,'shapeId':_0x54d660,'shapeType':_0x5ca6ab,'shapeData':{'relation':_0x16d43e}}});}}return _0x576ed8(_0x4df59f,_0x252dd7)[_0x149ca9(0xf8)]?(_0x4a82e0[_0x149ca9(0x8f)]({'unitID':_0x49d4c6,'undoMutations':_0x1eace8,'redoMutations':_0x4df59f}),!0x0):!0x1;}},X={'type':_0x563c6d['COMMAND'],'id':'sheet.command.set-shape-rotate','handler':(_0x2e464e,_0x5d92b2)=>{const _0x2686cb=_0x35f79c;var _0x3469cb,_0x547c8e;let _0x1dbaef=_0x548129(_0x2e464e['get'](_0x1b2090),_0x5d92b2);if(!_0x1dbaef)return!0x1;let _0x12099d=_0x2e464e[_0x2686cb(0xe6)](_0xe5cdeb),{unitId:_0x1a2e91,subUnitId:_0x2dd90e}=_0x1dbaef,_0xc06686=_0x12099d[_0x2686cb(0x8e)](_0x1a2e91,_0x2dd90e);if(!_0xc06686)return!0x1;let _0x3f89bf=_0x2e464e[_0x2686cb(0xe6)](_0x1eb5a3),{shapeId:_0x575088,rotate:_0x46da4f}=_0x5d92b2,_0x5599f0=_0x3f89bf['getDrawingByParam']({'unitId':_0x1a2e91,'subUnitId':_0x2dd90e,'drawingId':_0x575088});if(!_0x5599f0)return!0x1;let _0x6e4ac8=_0x2e464e[_0x2686cb(0xe6)](G)['getShapeModel'](_0x1a2e91,_0x2dd90e,_0x575088);if(!_0x6e4ac8)return!0x1;let _0x453c24=_0x2e464e[_0x2686cb(0xe6)](_0x14537d),_0x399330=_0x2e464e[_0x2686cb(0xe6)](_0x4ad18c),_0x3d7f79=_0x2e464e[_0x2686cb(0xe6)](_0x5e4927),_0x4af944={..._0x5599f0[_0x2686cb(0x7f)]};_0x46da4f!==void 0x0&&(_0x4af944[_0x2686cb(0xf6)]=(_0x4af944[_0x2686cb(0xf6)]||0x0)+_0x46da4f);let _0x1c68c1=_0x150ffb(_0x4af944,_0xc06686),_0x24f539=_0x4575c6(_0x4af944,_0xc06686),_0x1e2207=_0x6e4ac8[_0x2686cb(0xcc)](),_0x29baf8=_0x6e4ac8['getShapeData'](),_0x1ab401={'unitId':_0x1a2e91,'subUnitId':_0x2dd90e,'drawingId':_0x575088,'drawingType':_0x43bb4b[_0x2686cb(0xde)],'sheetTransform':_0x1c68c1,'transform':_0x4af944,'data':{'shapeType':_0x1e2207,'shapeData':_0x29baf8},'axisAlignSheetTransform':_0x24f539,'allowTransform':!0x0},{undo:_0x52fcb0,redo:_0x1b5e82,objects:_0x4b99ea}=_0x3f89bf['getBatchUpdateOp']([_0x1ab401]),_0x2e45c7=_0x3d7f79[_0x2686cb(0xed)]({'id':_0x1207c1['id'],'params':{'unitId':_0x1a2e91,'drawings':[_0x1ab401]}}),_0x5d7f21=[...(_0x3469cb=_0x2e45c7[_0x2686cb(0x105)])==null?[]:_0x3469cb,{'id':_0x409811['id'],'params':{'unitId':_0x1a2e91,'subUnitId':_0x2dd90e,'op':_0x1b5e82,'objects':_0x4b99ea,'type':_0x59ff5d[_0x2686cb(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x1a2e91]},..._0x2e45c7[_0x2686cb(0xca)]],_0x9fb9e3=[...(_0x547c8e=_0x2e45c7[_0x2686cb(0xa5)])==null?[]:_0x547c8e,{'id':_0x409811['id'],'params':{'unitId':_0x1a2e91,'subUnitId':_0x2dd90e,'op':_0x52fcb0,'objects':_0x4b99ea,'type':_0x59ff5d[_0x2686cb(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x1a2e91]},..._0x2e45c7[_0x2686cb(0xb6)]];return _0x576ed8(_0x5d7f21,_0x453c24)[_0x2686cb(0xf8)]?(_0x399330[_0x2686cb(0x8f)]({'unitID':_0x1a2e91,'undoMutations':_0x9fb9e3,'redoMutations':_0x5d7f21}),!0x0):!0x1;}},Z={'type':_0x563c6d[_0x35f79c(0xec)],'id':_0x35f79c(0x102),'handler':(_0x190c83,_0x311dc6)=>{const _0x465d6b=_0x35f79c;var _0x3a46bb;let _0x206b39=_0x548129(_0x190c83[_0x465d6b(0xe6)](_0x1b2090),_0x311dc6);if(!_0x206b39)return!0x1;let {unitId:_0x1847f4,subUnitId:_0x7574c5}=_0x206b39,{shapeId:_0xd35cc9}=_0x311dc6,_0x1f3a61=_0x190c83[_0x465d6b(0xe6)](G)[_0x465d6b(0xd7)](_0x1847f4,_0x7574c5,_0xd35cc9);if(!_0x1f3a61)return!0x1;let _0x3fce24=_0x1f3a61[_0x465d6b(0x10a)](),_0x16d0a4=(_0x3a46bb=_0x3fce24==null?void 0x0:_0x3fce24[_0x465d6b(0x88)])==null?!0x0:_0x3a46bb,_0x1fead2=!_0x16d0a4,_0xec4c41=_0x190c83[_0x465d6b(0xe6)](_0x14537d),_0x16be68=_0x190c83[_0x465d6b(0xe6)](_0x4ad18c),_0x19a298={'unitId':_0x1847f4,'subUnitId':_0x7574c5,'shapeId':_0xd35cc9,'shapeData':{'shapeText':{'isHorizontal':_0x1fead2}}},_0xa0d5f3={'unitId':_0x1847f4,'subUnitId':_0x7574c5,'shapeId':_0xd35cc9,'shapeData':{'shapeText':{'isHorizontal':_0x16d0a4}}},_0x2ceb8a=[{'id':Y['id'],'params':_0x19a298}],_0x4913a3=[{'id':Y['id'],'params':_0xa0d5f3}];return _0x576ed8(_0x2ceb8a,_0xec4c41)[_0x465d6b(0xf8)]?(_0x16be68[_0x465d6b(0x8f)]({'unitID':_0x1847f4,'undoMutations':_0x4913a3,'redoMutations':_0x2ceb8a}),!0x0):!0x1;}},ne={'type':_0x563c6d[_0x35f79c(0xec)],'id':'sheet.command.update-connector-relation','handler':(_0x1e65df,_0x882b76)=>{const _0x1278a5=_0x35f79c;var _0x21e58c,_0x5bfe01,_0x204907,_0x51b28d;let _0xf70d81=_0x548129(_0x1e65df[_0x1278a5(0xe6)](_0x1b2090),_0x882b76);if(!_0xf70d81)return!0x1;let _0x28bd6e=_0x1e65df['get'](_0xe5cdeb),{unitId:_0x5ae446,subUnitId:_0x565fce}=_0xf70d81,_0x550e68=_0x28bd6e[_0x1278a5(0x8e)](_0x5ae446,_0x565fce);if(!_0x550e68)return!0x1;let _0x1f4648=_0x1e65df[_0x1278a5(0xe6)](_0x1eb5a3),{connectorShapeId:_0x4f012e,width:_0xf376fd,height:_0x120233,left:_0x2c3f44,top:_0x202623,flipX:_0x5a261b,flipY:_0x19dc3b,rotation:_0xd693ed,oldAdjustValues:_0x45eab2,newAdjustValues:_0x1791c7,oldLineType:_0x5d554a,newLineType:_0x247640,oldRelation:_0x24ab47,newRelation:_0x2324c6}=_0x882b76,_0x479925=_0x1f4648[_0x1278a5(0xf0)]({'unitId':_0x5ae446,'subUnitId':_0x565fce,'drawingId':_0x4f012e});if(!_0x479925)return!0x1;let _0x469301=_0x1e65df[_0x1278a5(0xe6)](G)[_0x1278a5(0xd7)](_0x5ae446,_0x565fce,_0x4f012e);if(!_0x469301)return!0x1;let _0x5ba2c5=_0x1e65df[_0x1278a5(0xe6)](_0x14537d),_0x4d5e97=_0x1e65df[_0x1278a5(0xe6)](_0x4ad18c),_0x4ab492=_0x1e65df[_0x1278a5(0xe6)](_0x5e4927),_0xe19423={..._0x479925[_0x1278a5(0x7f)],'width':_0xf376fd,'height':_0x120233,'left':_0x2c3f44,'top':_0x202623,'flipX':_0x5a261b,'flipY':_0x19dc3b,'angle':(_0x21e58c=_0xd693ed==null?(_0x5bfe01=_0x479925[_0x1278a5(0x7f)])==null?void 0x0:_0x5bfe01[_0x1278a5(0xf6)]:_0xd693ed)==null?0x0:_0x21e58c},_0x438e4e=_0x150ffb(_0xe19423,_0x550e68),_0xdf5464=_0x4575c6(_0xe19423,_0x550e68),_0x4eb3db=_0x469301['getShapeType'](),_0x467558=_0x469301[_0x1278a5(0x87)](),_0x1b7758={'unitId':_0x5ae446,'subUnitId':_0x565fce,'drawingId':_0x4f012e,'drawingType':_0x43bb4b[_0x1278a5(0xde)],'sheetTransform':_0x438e4e,'transform':_0xe19423,'data':{'shapeType':_0x247640||_0x5d554a||_0x4eb3db,'shapeData':{..._0x467558,'adjustValues':_0x1791c7||_0x45eab2||(_0x467558==null?void 0x0:_0x467558['adjustValues']),'relation':_0x2324c6||_0x24ab47||(_0x467558==null?void 0x0:_0x467558[_0x1278a5(0xa6)])}},'axisAlignSheetTransform':_0xdf5464,'allowTransform':!0x0},{undo:_0x30fae2,redo:_0x3f4b3d,objects:_0x420e1b}=_0x1f4648[_0x1278a5(0xf5)]([_0x1b7758]),_0x41c602=_0x4ab492[_0x1278a5(0xed)]({'id':_0x1207c1['id'],'params':{'unitId':_0x5ae446,'drawings':[_0x1b7758]}}),_0x2f3268=[...(_0x204907=_0x41c602[_0x1278a5(0x105)])==null?[]:_0x204907,{'id':_0x409811['id'],'params':{'unitId':_0x5ae446,'subUnitId':_0x565fce,'op':_0x3f4b3d,'objects':_0x420e1b,'type':_0x59ff5d['UPDATE']}},{'id':_0x49ea18['id'],'params':[_0x5ae446]},..._0x41c602[_0x1278a5(0xca)],{'id':Y['id'],'params':{'unitId':_0x5ae446,'subUnitId':_0x565fce,'shapeId':_0x4f012e,'shapeType':_0x247640,'shapeData':{'adjustValues':_0x1791c7,'relation':_0x2324c6}}}],_0x3ccf7b=[...(_0x51b28d=_0x41c602[_0x1278a5(0xa5)])==null?[]:_0x51b28d,{'id':_0x409811['id'],'params':{'unitId':_0x5ae446,'subUnitId':_0x565fce,'op':_0x30fae2,'objects':_0x420e1b,'type':_0x59ff5d[_0x1278a5(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x5ae446]},..._0x41c602[_0x1278a5(0xb6)],{'id':Y['id'],'params':{'unitId':_0x5ae446,'subUnitId':_0x565fce,'shapeId':_0x4f012e,'shapeType':_0x4eb3db,'shapeData':{..._0x467558,'adjustValues':_0x45eab2||(_0x467558==null?void 0x0:_0x467558[_0x1278a5(0xea)]),'relation':_0x24ab47||(_0x467558==null?void 0x0:_0x467558[_0x1278a5(0xa6)])}}}];return _0x576ed8(_0x2f3268,_0x5ba2c5)[_0x1278a5(0xf8)]?(_0x4d5e97[_0x1278a5(0x8f)]({'unitID':_0x5ae446,'undoMutations':_0x3ccf7b,'redoMutations':_0x2f3268}),!0x0):!0x1;}},re={'type':_0x563c6d[_0x35f79c(0xec)],'id':_0x35f79c(0x111),'handler':(_0x754f95,_0x191664)=>{const _0x1153f0=_0x35f79c;var _0x2e64e4,_0x2c6476;let _0x579dd2=_0x548129(_0x754f95[_0x1153f0(0xe6)](_0x1b2090),_0x191664);if(!_0x579dd2)return!0x1;let _0x4da9a2=_0x754f95[_0x1153f0(0xe6)](_0xe5cdeb),{unitId:_0x2f729f,subUnitId:_0x4ea8c0}=_0x579dd2,_0x431706=_0x4da9a2[_0x1153f0(0x8e)](_0x2f729f,_0x4ea8c0);if(!_0x431706)return!0x1;let _0x121fed=_0x754f95[_0x1153f0(0xe6)](_0x1eb5a3),{shapeId:_0x4d2b1a,width:_0x36e178,height:_0x3d1ebd,left:_0x1df060,top:_0x4b4efe,flipX:_0x408bdb,flipY:_0xf9cad6,angle:_0x274141,oldAdjustValues:_0x11c450,newAdjustValues:_0xf5de53,oldLineType:_0x4961c0,newLineType:_0x52ba4a}=_0x191664,_0xb206ff=_0x121fed[_0x1153f0(0xf0)]({'unitId':_0x2f729f,'subUnitId':_0x4ea8c0,'drawingId':_0x4d2b1a});if(!_0xb206ff)return!0x1;let _0x55f77d=_0x754f95[_0x1153f0(0xe6)](G)[_0x1153f0(0xd7)](_0x2f729f,_0x4ea8c0,_0x4d2b1a);if(!_0x55f77d)return!0x1;let _0x4ce33c=_0x754f95[_0x1153f0(0xe6)](_0x14537d),_0x110bad=_0x754f95['get'](_0x4ad18c),_0x314c66=_0x754f95[_0x1153f0(0xe6)](_0x5e4927),_0x13c1d4={..._0xb206ff[_0x1153f0(0x7f)],'width':_0x36e178,'height':_0x3d1ebd,'left':_0x1df060,'top':_0x4b4efe,'flipX':_0x408bdb,'flipY':_0xf9cad6,'angle':_0x274141},_0x5090c1=_0x150ffb(_0x13c1d4,_0x431706),_0x4e9faa=_0x4575c6(_0x13c1d4,_0x431706),_0x24e31a=_0x55f77d['getShapeType'](),_0x858aa3=_0x55f77d[_0x1153f0(0x87)](),_0x68b7e5={'unitId':_0x2f729f,'subUnitId':_0x4ea8c0,'drawingId':_0x4d2b1a,'drawingType':_0x43bb4b[_0x1153f0(0xde)],'sheetTransform':_0x5090c1,'transform':_0x13c1d4,'data':{'shapeType':_0x52ba4a||_0x4961c0||_0x24e31a,'shapeData':{..._0x858aa3,'adjustValues':_0xf5de53||_0x11c450||(_0x858aa3==null?void 0x0:_0x858aa3[_0x1153f0(0xea)])}},'axisAlignSheetTransform':_0x4e9faa,'allowTransform':!0x0},{undo:_0x3dd348,redo:_0x451720,objects:_0x201ae5}=_0x121fed['getBatchUpdateOp']([_0x68b7e5]),_0x5c5e1c=_0x314c66[_0x1153f0(0xed)]({'id':_0x1207c1['id'],'params':{'unitId':_0x2f729f,'drawings':[_0x68b7e5]}}),_0x451415=[...(_0x2e64e4=_0x5c5e1c['preRedos'])==null?[]:_0x2e64e4,{'id':_0x409811['id'],'params':{'unitId':_0x2f729f,'subUnitId':_0x4ea8c0,'op':_0x451720,'objects':_0x201ae5,'type':_0x59ff5d[_0x1153f0(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x2f729f]},..._0x5c5e1c[_0x1153f0(0xca)],{'id':Y['id'],'params':{'unitId':_0x2f729f,'subUnitId':_0x4ea8c0,'shapeId':_0x4d2b1a,'shapeType':_0x52ba4a,'shapeData':{'adjustValues':_0xf5de53}}}],_0x6b60d9=[...(_0x2c6476=_0x5c5e1c[_0x1153f0(0xa5)])==null?[]:_0x2c6476,{'id':_0x409811['id'],'params':{'unitId':_0x2f729f,'subUnitId':_0x4ea8c0,'op':_0x3dd348,'objects':_0x201ae5,'type':_0x59ff5d[_0x1153f0(0x7d)]}},{'id':_0x49ea18['id'],'params':[_0x2f729f]},..._0x5c5e1c['undos'],{'id':Y['id'],'params':{'unitId':_0x2f729f,'subUnitId':_0x4ea8c0,'shapeId':_0x4d2b1a,'shapeType':_0x24e31a,'shapeData':{..._0x858aa3,'adjustValues':_0x11c450||(_0x858aa3==null?void 0x0:_0x858aa3[_0x1153f0(0xea)])}}}];return _0x576ed8(_0x451415,_0x4ce33c)[_0x1153f0(0xf8)]?(_0x110bad[_0x1153f0(0x8f)]({'unitID':_0x2f729f,'undoMutations':_0x6b60d9,'redoMutations':_0x451415}),!0x0):!0x1;}},Q={'id':_0x35f79c(0xd2),'type':_0x563c6d[_0x35f79c(0xa7)],'handler':(_0x4d7e6c,_0x1ef27c)=>{const _0x2ba53f=_0x35f79c;let {unitId:_0x1631af,subUnitId:_0x190004,shapeType:_0x44246b,shapeId:_0x3acdc9,shapeData:_0x3a1bb4}=_0x1ef27c,_0x1f1cad=_0x4d7e6c[_0x2ba53f(0xe6)](G)[_0x2ba53f(0xd7)](_0x1631af,_0x190004,_0x3acdc9);return _0x1f1cad&&(_0x1f1cad[_0x2ba53f(0xf2)](_0x44246b),_0x3a1bb4&&(_0x1f1cad==null||_0x1f1cad[_0x2ba53f(0xdd)](_0x3a1bb4))),!0x0;}},ie={'id':_0x35f79c(0x8c),'type':_0x563c6d[_0x35f79c(0xec)],'handler':(_0x25e893,_0x1f6050)=>{const _0x36e84d=_0x35f79c;if(!_0x1f6050)return!0x1;let _0xcd4d87=_0x25e893[_0x36e84d(0xe6)](_0x14537d),_0x541866=_0x25e893[_0x36e84d(0xe6)](G),_0x2db475=_0x25e893[_0x36e84d(0xe6)](_0x4ad18c),_0x1cf15d=[],_0x26e83e=[],{unitId:_0x32ce57,subUnitId:_0x1baea9,shapeId:_0x3fc08d,shapeType:_0x549c12,shapeData:_0x5cdd6f}=_0x1f6050,_0x31cd81=_0x541866[_0x36e84d(0xd7)](_0x32ce57,_0x1baea9,_0x3fc08d);if(_0x31cd81){let _0x29f070=_0x31cd81[_0x36e84d(0xcc)](),_0x473152=Object[_0x36e84d(0xd5)]({},_0x31cd81['getShapeData']()),_0x427b8c={'unitId':_0x32ce57,'subUnitId':_0x1baea9,'shapeId':_0x3fc08d,'shapeType':_0x549c12,'shapeData':_0x5cdd6f},_0x41bccc={'unitId':_0x32ce57,'subUnitId':_0x1baea9,'shapeId':_0x3fc08d,'shapeType':_0x29f070,'shapeData':_0x473152};return _0x1cf15d['push']({'id':Q['id'],'params':_0x427b8c}),_0x26e83e[_0x36e84d(0xbf)]({'id':Q['id'],'params':_0x41bccc}),_0x1cf15d['every'](_0x18420c=>_0xcd4d87[_0x36e84d(0x107)](_0x18420c['id'],_0x18420c[_0x36e84d(0x10d)]))&&_0x2db475['pushUndoRedo']({'unitID':_0x32ce57,'redoMutations':[..._0x1cf15d],'undoMutations':[..._0x26e83e]}),!0x0;}return!0x1;}};var ae=_0x35f79c(0xac),oe='0.25.0-insiders.20260604-29ebbff';const se={};let ce=class extends _0x540e89{constructor(_0x4498eb,_0x1313c2,_0x599950,_0x1838e4,_0x2b5890){const _0x102444=_0x35f79c;super(),this[_0x102444(0xc9)]=_0x4498eb,this[_0x102444(0x97)]=_0x1313c2,this[_0x102444(0x100)]=_0x599950,this[_0x102444(0xab)]=_0x1838e4,this[_0x102444(0xa2)]=_0x2b5890,this[_0x102444(0x9f)](),this['_initCommandInterceptor']();}[_0x35f79c(0x9f)](){const _0x3e859d=_0x35f79c;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x10ad17=>this[_0x3e859d(0x103)](this[_0x3e859d(0xc9)][_0x3e859d(0x81)](_0x10ad17)));}[_0x35f79c(0xe2)](){const _0x45f7ce=_0x35f79c;this[_0x45f7ce(0x103)](this[_0x45f7ce(0x97)][_0x45f7ce(0xdc)]({'getMutations':_0x430147=>{const _0x478fee=_0x45f7ce;if(_0x430147['id']===_0x474978['id']){let {drawings:_0x3ab8a5}=_0x430147[_0x478fee(0x10d)],_0x143704=_0x3ab8a5[_0x478fee(0xf3)](_0x4537bd=>_0x4537bd[_0x478fee(0x110)]===_0x43bb4b[_0x478fee(0xde)]);if(_0x143704[_0x478fee(0xff)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x555a33=[],_0x385115=[];return _0x143704[_0x478fee(0x101)](_0x2167a5=>{const _0x419109=_0x478fee;let {unitId:_0x441b94,subUnitId:_0x377bf8,drawingId:_0x336dff}=_0x2167a5,_0x28f48c=this['_sheetsShapeService'][_0x419109(0xd7)](_0x441b94,_0x377bf8,_0x336dff);if(!_0x28f48c)throw TypeError(_0x419109(0xfc)+_0x28f48c);_0x555a33[_0x419109(0xbf)]({'id':q['id'],'params':{'unitId':_0x441b94,'subUnitId':_0x377bf8,'shapeId':_0x336dff}}),_0x385115[_0x419109(0xbf)]({'id':K['id'],'params':{'unitId':_0x441b94,'subUnitId':_0x377bf8,'shapeId':_0x336dff,'shapeType':_0x28f48c[_0x419109(0xcc)](),'shapeData':_0x28f48c[_0x419109(0x87)]()}});let _0x2b233c=this[_0x419109(0xab)][_0x419109(0xd1)](_0x441b94,_0x377bf8,_0x336dff);if(_0x2b233c)for(let _0x36f817 of _0x2b233c){let _0x131154=_0x36f817['lineShapeId'],_0x7145e1=_0x36f817[_0x419109(0x80)],_0x588d92=_0x7145e1?{'from':void 0x0}:{'to':void 0x0},_0x30c422=_0x7145e1?{'from':{'shapeId':_0x36f817[_0x419109(0x98)],'cxnIndex':_0x36f817[_0x419109(0xc5)]}}:{'to':{'shapeId':_0x36f817[_0x419109(0x98)],'cxnIndex':_0x36f817['cxnIndex']}};_0x555a33[_0x419109(0xbf)]({'id':Y['id'],'params':{'unitId':_0x441b94,'subUnitId':_0x377bf8,'shapeId':_0x131154,'shapeData':{'relation':_0x588d92}}}),_0x385115['push']({'id':Y['id'],'params':{'unitId':_0x441b94,'subUnitId':_0x377bf8,'shapeId':_0x131154,'shapeData':{'relation':_0x30c422}}});}}),{'preRedos':_0x555a33,'redos':[],'preUndos':[],'undos':_0x385115};}if(_0x430147['id']===_0x1207c1['id']){let {drawings:_0x23ee5d}=_0x430147[_0x478fee(0x10d)],_0x177b55=_0x23ee5d[_0x478fee(0xf3)](_0x10de28=>_0x10de28[_0x478fee(0x110)]===_0x43bb4b[_0x478fee(0xde)]);if(_0x177b55[_0x478fee(0xff)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4c13b5=[],_0x3f1ded=[];for(let _0x1613c3 of _0x177b55){let {unitId:_0x1e4993,subUnitId:_0x3ee78c,drawingId:_0x283938,transform:_0xd75bcc}=_0x1613c3;if(!_0x1e4993||!_0x3ee78c||!_0x283938||!_0xd75bcc)continue;let _0x4f7d88=this[_0x478fee(0xab)]['getShapeModel'](_0x1e4993,_0x3ee78c,_0x283938);if(!_0x4f7d88)throw TypeError(_0x478fee(0xfc)+_0x4f7d88);if(_0x27c329(_0x4f7d88[_0x478fee(0xcc)]())){let _0x1a0564=this[_0x478fee(0xab)][_0x478fee(0xbb)](_0x1e4993,_0x3ee78c,_0x283938);_0x1a0564&&(_0x4c13b5[_0x478fee(0xbf)]({'id':Y['id'],'params':{'unitId':_0x1e4993,'subUnitId':_0x3ee78c,'shapeId':_0x283938,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x3f1ded[_0x478fee(0xbf)]({'id':Y['id'],'params':{'unitId':_0x1e4993,'subUnitId':_0x3ee78c,'shapeId':_0x283938,'shapeData':{'relation':_0x1a0564}}}));}else{let _0x1e447f=this['_sheetsShapeService']['getBasicShapeRelation'](_0x1e4993,_0x3ee78c,_0x283938);if(_0x1e447f&&_0x1e447f[_0x478fee(0xff)]>0x0)for(let _0x47861e of _0x1e447f){let _0xca2364=_0x47861e[_0x478fee(0x82)],_0x4efecb=_0x47861e['isFrom'],_0x25a292=this[_0x478fee(0xab)]['getShapeModel'](_0x1e4993,_0x3ee78c,_0xca2364);if(!_0x25a292)continue;let _0x425a63=_0x25a292[_0x478fee(0xc8)](),_0x38b919=_0x25a292[_0x478fee(0xe8)]();_0x425a63&&_0x38b919?this['_addLineRerouteUpdates'](_0x1e4993,_0x3ee78c,_0xca2364,_0x25a292,_0x425a63,_0x38b919,_0x4c13b5,_0x3f1ded,_0x283938,_0xd75bcc):this[_0x478fee(0x89)](_0x1e4993,_0x3ee78c,_0xca2364,_0x25a292,_0x4efecb?_0x425a63:_0x38b919,_0x4efecb,_0x4c13b5,_0x3f1ded,_0x283938,_0xd75bcc);}}}return{'preRedos':[],'redos':_0x4c13b5,'preUndos':_0x3f1ded,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x35f79c(0xd3)](_0x28140f,_0x281111,_0x4040eb,_0x4abde4,_0x3a2f35){const _0xe75c12=_0x35f79c;if(!_0x281111||!_0x4040eb)return null;let {shapeId:_0x3e1c56,cxnIndex:_0x33f2c1}=_0x28140f,_0x401e33=this[_0xe75c12(0xab)]['getShapeModel'](_0x281111,_0x4040eb,_0x3e1c56);if(!_0x401e33)return null;let _0x2cb066=this['_drawingManagerService'][_0xe75c12(0xf0)]({'unitId':_0x281111,'subUnitId':_0x4040eb,'drawingId':_0x3e1c56});if(!(_0x2cb066!=null&&_0x2cb066[_0xe75c12(0x7f)]))return null;let {left:_0x55dc8b=0x0,top:_0x3bc6da=0x0,width:_0x24491b=0x0,height:_0x255bd0=0x0,flipX:_0x152e90=!0x1,flipY:_0x352f59=!0x1,angle:_0x324a60}=_0x2cb066[_0xe75c12(0x7f)];if(_0x3a2f35&&_0x4abde4===_0x3e1c56){var _0x2ceae1,_0x372afb,_0x2eaf01,_0x3ec558,_0xfa3da2,_0x387118,_0x6d69a8;_0x55dc8b=(_0x2ceae1=_0x3a2f35[_0xe75c12(0xbc)])==null?_0x55dc8b:_0x2ceae1,_0x3bc6da=(_0x372afb=_0x3a2f35['top'])==null?_0x3bc6da:_0x372afb,_0x24491b=(_0x2eaf01=_0x3a2f35[_0xe75c12(0xd6)])==null?_0x24491b:_0x2eaf01,_0x255bd0=(_0x3ec558=_0x3a2f35[_0xe75c12(0xf4)])==null?_0x255bd0:_0x3ec558,_0x152e90=(_0xfa3da2=_0x3a2f35[_0xe75c12(0x106)])==null?_0x152e90:_0xfa3da2,_0x352f59=(_0x387118=_0x3a2f35[_0xe75c12(0xc3)])==null?_0x352f59:_0x387118,_0x324a60=(_0x6d69a8=_0x3a2f35[_0xe75c12(0xf6)])==null?_0x324a60:_0x6d69a8;}_0x401e33[_0xe75c12(0xaf)]({'width':_0x24491b,'height':_0x255bd0});let _0x58222b=_0x401e33[_0xe75c12(0x90)]()[_0xe75c12(0x9a)](_0x266309=>_0x266309[_0xe75c12(0x84)]===_0x33f2c1);if(!_0x58222b)return null;let _0x36c354=_0x152e90?_0x24491b-_0x58222b['x']:_0x58222b['x'],_0x49e5e6=_0x352f59?_0x255bd0-_0x58222b['y']:_0x58222b['y'];if(_0x324a60!==0x0&&_0x324a60!=null){let _0x5da5a1=_0x324a60*Math['PI']/0xb4,_0x5e953d=Math['cos'](_0x5da5a1),_0x92a68=Math[_0xe75c12(0xad)](_0x5da5a1),_0x5053a9=_0x24491b/0x2,_0x4c3312=_0x255bd0/0x2,_0x9747be=_0x36c354-_0x5053a9,_0x53f79f=_0x49e5e6-_0x4c3312;_0x36c354=_0x5053a9+_0x9747be*_0x5e953d-_0x53f79f*_0x92a68,_0x49e5e6=_0x4c3312+_0x9747be*_0x92a68+_0x53f79f*_0x5e953d;}_0x36c354+=_0x55dc8b,_0x49e5e6+=_0x3bc6da;let _0x4cd2a8=_0x58222b['ang']/0xea60;_0x152e90&&(_0x4cd2a8=0xb4-_0x4cd2a8),_0x352f59&&(_0x4cd2a8=-_0x4cd2a8),_0x4cd2a8+=_0x324a60||0x0,_0x4cd2a8=(_0x4cd2a8%0x168+0x168)%0x168;let _0x18324c=_0x33eb95({'left':_0x55dc8b,'top':_0x3bc6da,'width':_0x24491b,'height':_0x255bd0},_0x324a60||0x0);return{'point':{'x':_0x36c354,'y':_0x49e5e6},'angle':_0x4cd2a8,'bounds':_0x18324c};}[_0x35f79c(0x8b)](_0x47f67c,_0x245125,_0x15b74d,_0x4b7f49,_0x4f1411,_0x2d6a88,_0x5e74b1,_0x9edf87,_0x3d8c52,_0x24fd7b){const _0x1385b9=_0x35f79c;let _0x3a2eca=this['_sheetSkeletonService'][_0x1385b9(0x8e)](_0x47f67c,_0x245125);if(!_0x3a2eca)return;let _0x50b8b7=_0x4b7f49[_0x1385b9(0x93)](),_0x3c9a06=_0x4b7f49[_0x1385b9(0xee)](),_0x4ea1f5={},_0x44e992={};_0x3c9a06[_0x1385b9(0x101)](_0x440b3d=>{let _0x5a8aa8=_0x4b7f49['getAdjustValueByName'](_0x440b3d);_0x44e992[_0x440b3d]=_0x5a8aa8==null?0x0:_0x5a8aa8;});let _0xa4058b=this[_0x1385b9(0xd3)](_0x4f1411,_0x47f67c,_0x245125,_0x3d8c52,_0x24fd7b),_0x23a324=this['_getConnectPointInfo'](_0x2d6a88,_0x47f67c,_0x245125,_0x3d8c52,_0x24fd7b);if(_0xa4058b&&_0x23a324){let _0x6dbb9a=_0x4b7f49[_0x1385b9(0xcc)](),_0x248c8e=_0x3de667(_0xa4058b,_0x23a324,_0x6dbb9a),_0xd05791=_0x6dbb9a;if(_0x248c8e){let _0x24a79b=_0x6da396(_0x248c8e,_0x4b7f49[_0x1385b9(0xcc)]()),_0x5d565c=this['_drawingManagerService'][_0x1385b9(0xb4)](_0x47f67c,_0x245125);if(_0x5d565c&&_0x5d565c[_0x15b74d]){let _0xfde260=_0x5d565c[_0x15b74d];_0xd05791=_0x24a79b[_0x1385b9(0xc6)];for(let [_0x52e53a,_0xbe6a58]of Object[_0x1385b9(0xe7)](_0x24a79b[_0x1385b9(0xea)]))_0x4ea1f5[_0x52e53a]=_0xbe6a58;let _0x3131f5={..._0xfde260[_0x1385b9(0x7f)],'width':_0x24a79b[_0x1385b9(0xef)]['width'],'height':_0x24a79b[_0x1385b9(0xef)][_0x1385b9(0xf4)],'left':_0x24a79b[_0x1385b9(0xef)][_0x1385b9(0xbc)],'top':_0x24a79b[_0x1385b9(0xef)][_0x1385b9(0xd9)],'flipX':_0x24a79b['worldRect']['flipX'],'flipY':_0x24a79b[_0x1385b9(0xef)][_0x1385b9(0xc3)],'angle':_0x24a79b[_0x1385b9(0xe0)]},_0x2c7d92=_0x150ffb(_0x3131f5,_0x3a2eca),_0x3f2098=_0x4575c6(_0x3131f5,_0x3a2eca),_0x24d281={'unitId':_0x47f67c,'subUnitId':_0x245125,'drawingType':_0x43bb4b['DRAWING_SHAPE'],'drawingId':_0x15b74d,'transform':_0x3131f5,'sheetTransform':_0x2c7d92,'axisAlignSheetTransform':_0x3f2098},{unitId:_0x3b8489,subUnitId:_0x383a21,undo:_0x4cbf4f,redo:_0x5af062,objects:_0x351c03}=this['_drawingManagerService'][_0x1385b9(0xf5)]([_0x24d281]);_0x5e74b1[_0x1385b9(0xbf)]({'id':_0x409811['id'],'params':{'unitId':_0x3b8489,'subUnitId':_0x383a21,'op':_0x5af062,'objects':_0x351c03,'type':_0x59ff5d[_0x1385b9(0x7d)]}}),_0x9edf87[_0x1385b9(0xbf)]({'id':_0x409811['id'],'params':{'unitId':_0x3b8489,'subUnitId':_0x383a21,'op':_0x4cbf4f,'objects':_0x351c03,'type':_0x59ff5d[_0x1385b9(0x7d)]}});}_0x4b7f49['removeLinePoints']();}_0x5e74b1[_0x1385b9(0xbf)]({'id':Y['id'],'params':{'unitId':_0x47f67c,'subUnitId':_0x245125,'shapeId':_0x15b74d,'shapeType':_0xd05791,'shapeData':{'adjustValues':_0x4ea1f5,'relation':_0x50b8b7}}}),_0x9edf87[_0x1385b9(0xbf)]({'id':Y['id'],'params':{'unitId':_0x47f67c,'subUnitId':_0x245125,'shapeId':_0x15b74d,'shapeType':_0x6dbb9a,'shapeData':{'adjustValues':_0x44e992,'relation':_0x50b8b7}}});}}[_0x35f79c(0x89)](_0x14ab50,_0x275905,_0x463aff,_0x9e243d,_0x374a53,_0xaa5dfc,_0x353ac5,_0x31db72,_0x269001,_0x497109){const _0x272247=_0x35f79c;var _0x35aafb;if(!_0x374a53)return;let _0x496021=this[_0x272247(0x100)][_0x272247(0x8e)](_0x14ab50,_0x275905);if(!_0x496021)return;let _0x3875ec=(_0x35aafb=this['_drawingManagerService'][_0x272247(0xf0)]({'unitId':_0x14ab50,'subUnitId':_0x275905,'drawingId':_0x269001}))==null?void 0x0:_0x35aafb[_0x272247(0x7f)];if(!_0x3875ec)return;let _0x15b0fa=_0x3875ec['left']!==_0x497109[_0x272247(0xbc)]||_0x3875ec[_0x272247(0xd9)]!==_0x497109[_0x272247(0xd9)],_0xa5f6c2=_0x3875ec[_0x272247(0xd6)]!==_0x497109['width']||_0x3875ec[_0x272247(0xf4)]!==_0x497109[_0x272247(0xf4)],_0x2158e7=_0x3875ec['flipX']!==_0x497109['flipX']||_0x3875ec[_0x272247(0xc3)]!==_0x497109[_0x272247(0xc3)],_0x5c3fc4=_0x3875ec[_0x272247(0xf6)]!==_0x497109[_0x272247(0xf6)];if(_0x15b0fa&&!_0xa5f6c2&&!_0x2158e7&&!_0x5c3fc4){var _0x5ada31,_0x3435f4,_0x5360e1,_0x3ae89f;let _0x347e1c=((_0x5ada31=_0x497109['left'])==null?0x0:_0x5ada31)-((_0x3435f4=_0x3875ec[_0x272247(0xbc)])==null?0x0:_0x3435f4),_0x21a7de=((_0x5360e1=_0x497109['top'])==null?0x0:_0x5360e1)-((_0x3ae89f=_0x3875ec[_0x272247(0xd9)])==null?0x0:_0x3ae89f),_0x224c48=this[_0x272247(0xa2)][_0x272247(0xb4)](_0x14ab50,_0x275905);if(_0x224c48&&_0x224c48[_0x463aff]){var _0x22a125,_0x18c53b,_0x379c70,_0x3defb1;let _0x237f6a=_0x224c48[_0x463aff],_0x1c7a3e={..._0x237f6a[_0x272247(0x7f)],'left':((_0x22a125=(_0x18c53b=_0x237f6a[_0x272247(0x7f)])==null?void 0x0:_0x18c53b[_0x272247(0xbc)])==null?0x0:_0x22a125)+_0x347e1c,'top':((_0x379c70=(_0x3defb1=_0x237f6a[_0x272247(0x7f)])==null?void 0x0:_0x3defb1['top'])==null?0x0:_0x379c70)+_0x21a7de},_0x18b5c5=_0x150ffb(_0x1c7a3e,_0x496021),_0x48bc94=_0x4575c6(_0x1c7a3e,_0x496021),_0x4d9c2a={'unitId':_0x14ab50,'subUnitId':_0x275905,'drawingType':_0x43bb4b[_0x272247(0xde)],'drawingId':_0x463aff,'transform':_0x1c7a3e,'sheetTransform':_0x18b5c5,'axisAlignSheetTransform':_0x48bc94},{unitId:_0x4c1059,subUnitId:_0x11535c,undo:_0x1d42ce,redo:_0x4e3dae,objects:_0x1554b2}=this[_0x272247(0xa2)]['getBatchUpdateOp']([_0x4d9c2a]);_0x353ac5[_0x272247(0xbf)]({'id':_0x409811['id'],'params':{'unitId':_0x4c1059,'subUnitId':_0x11535c,'op':_0x4e3dae,'objects':_0x1554b2,'type':_0x59ff5d[_0x272247(0x7d)]}}),_0x31db72[_0x272247(0xbf)]({'id':_0x409811['id'],'params':{'unitId':_0x4c1059,'subUnitId':_0x11535c,'op':_0x1d42ce,'objects':_0x1554b2,'type':_0x59ff5d['UPDATE']}});}}else{let _0x45d05c=_0x9e243d['getStartConnectInfo'](),_0x1c4abc=_0x9e243d[_0x272247(0xe8)]();this['_addLineRerouteUpdates'](_0x14ab50,_0x275905,_0x463aff,_0x9e243d,_0x45d05c,_0x1c4abc,_0x353ac5,_0x31db72,_0x269001,_0x497109);}}};ce=W([U(0x0,_0x14537d),U(0x1,_0x56d6c5(_0x5e4927)),U(0x2,_0x56d6c5(_0xe5cdeb)),U(0x3,_0x56d6c5(G)),U(0x4,_0x56d6c5(_0xdb3d88))],ce);let $=class extends _0x1f0f66{constructor(_0x5b867b=se,_0x4c547e,_0x47fded,_0x16c381){const _0x274db7=_0x35f79c;super(),this['_config']=_0x5b867b,this[_0x274db7(0xae)]=_0x4c547e,this[_0x274db7(0xc9)]=_0x47fded,this['_configService']=_0x16c381;let {..._0x496081}=_0x4764c5({},se,this[_0x274db7(0xa9)]);this[_0x274db7(0x7e)][_0x274db7(0xf7)](_0x274db7(0xc7),_0x496081);}[_0x35f79c(0xb9)](){const _0x12b74b=_0x35f79c;let _0xba7804=this[_0x12b74b(0xae)];[[H],[G],[ce]][_0x12b74b(0x101)](_0x30bbc3=>_0xba7804[_0x12b74b(0xb5)](_0x30bbc3)),_0x494c3e(_0xba7804,[[G],[ce]]);}};V($,_0x35f79c(0xe3),_0x52ae4c['UNIVER_SHEET']),V($,_0x35f79c(0x9c),'SHEET_SHAPE_PLUGIN'),V($,_0x35f79c(0xeb),ae),V($,_0x35f79c(0xc2),oe),$=W([_0x4d893d(_0x15c2f8),U(0x1,_0x56d6c5(_0x4104fb)),U(0x2,_0x14537d),U(0x3,_0x45a1ad)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1a70bd=_0x2c14;(function(_0x544329,_0x2f5711){const _0x36358c=_0x2c14,_0x33f88a=_0x544329();while(!![]){try{const _0x1c6634=parseInt(_0x36358c(0x235))/0x1+-parseInt(_0x36358c(0x232))/0x2*(-parseInt(_0x36358c(0x1ea))/0x3)+parseInt(_0x36358c(0x1c7))/0x4+-parseInt(_0x36358c(0x1ce))/0x5+parseInt(_0x36358c(0x238))/0x6+-parseInt(_0x36358c(0x1d1))/0x7+parseInt(_0x36358c(0x200))/0x8*(-parseInt(_0x36358c(0x202))/0x9);if(_0x1c6634===_0x2f5711)break;else _0x33f88a['push'](_0x33f88a['shift']());}catch(_0xb764a){_0x33f88a['push'](_0x33f88a['shift']());}}}(_0x2fe9,0xcf9fe));import{ConnectorCoordinateTransform as _0x5dda88,ShapeArrowSizeEnum as _0x2d1f7a,ShapeArrowTypeEnum as _0x594270,ShapeFillEnum as _0x2d0686,ShapeGradientTypeEnum as _0x2104ac,ShapeLineCapEnum as _0x444bff,ShapeLineDashEnum as _0x3fe494,ShapeLineJoinEnum as _0xce6401,ShapeLineTypeEnum as _0x598361,ShapeTypeEnum as _0x2d11c6,computeConnectorRouteLayout as _0x5f27ec,getBasicShapeRotateBound as _0x1ccf79,isConnectorShape as _0x221386,routeConnectorLineShape as _0x4432fe}from'@univerjs-pro/engine-shape';import{FEnum as _0x2ce1d8}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x1c416b,DEFAULT_SHAPE_WIDTH as _0x5e2b87,InsertShapeCommand as _0x286adb,SetShapeDrawingDataCommand as _0x5ddcca,SheetsShapeService as _0x3fe959,UpdateConnectorRelationCommand as _0x4cacb3}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x7113b1,generateRandomId as _0xca9b09}from'@univerjs/core';import{IDrawingManagerService as _0x383207}from'@univerjs/drawing';import{SheetSkeletonService as _0x2114e5,convertPositionCellToSheetOverGrid as _0x37472c}from'@univerjs/sheets';import{ISheetDrawingService as _0x4b057e,RemoveSheetDrawingCommand as _0x324f42}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26ae22}from'@univerjs/sheets/facade';var k=class extends _0x2ce1d8{get[_0x1a70bd(0x20a)](){return _0x2d11c6;}get['ShapeFillEnum'](){return _0x2d0686;}get[_0x1a70bd(0x20f)](){return _0x2104ac;}get[_0x1a70bd(0x217)](){return _0x598361;}get[_0x1a70bd(0x1dd)](){return _0x3fe494;}get[_0x1a70bd(0x1c3)](){return _0x444bff;}get['ShapeLineJoinEnum'](){return _0xce6401;}get[_0x1a70bd(0x1dc)](){return _0x594270;}get[_0x1a70bd(0x207)](){return _0x2d1f7a;}};_0x2ce1d8['extend'](k);function A(_0x496c12){'@babel/helpers - typeof';const _0x5749ee=_0x1a70bd;return A=typeof Symbol==_0x5749ee(0x1d9)&&typeof Symbol[_0x5749ee(0x23a)]=='symbol'?function(_0x403591){return typeof _0x403591;}:function(_0x294aa1){const _0x50f4cb=_0x5749ee;return _0x294aa1&&typeof Symbol=='function'&&_0x294aa1['constructor']===Symbol&&_0x294aa1!==Symbol[_0x50f4cb(0x208)]?'symbol':typeof _0x294aa1;},A(_0x496c12);}function j(_0x148c4b,_0x44f207){const _0xd99366=_0x1a70bd;if(A(_0x148c4b)!=_0xd99366(0x1de)||!_0x148c4b)return _0x148c4b;var _0x12590f=_0x148c4b[Symbol[_0xd99366(0x1c6)]];if(_0x12590f!==void 0x0){var _0xff4a3c=_0x12590f[_0xd99366(0x223)](_0x148c4b,_0x44f207||_0xd99366(0x1f5));if(A(_0xff4a3c)!=_0xd99366(0x1de))return _0xff4a3c;throw TypeError(_0xd99366(0x212));}return(_0x44f207===_0xd99366(0x209)?String:Number)(_0x148c4b);}function _0x2fe9(){const _0x4c1401=['colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','5223245DHEiuD','left','getDrawingByParam','2334164RCrZKi','_injector','fillType','getShapeData','worldRect','gradientAngle','type','index','function','getSize','height','ShapeArrowTypeEnum','ShapeLineDashEnum','object','cxnIndex','stroke','sin','shapeType','GradientFill','flipY','adjustValues','setShapeGradientFill','get','insertShape','setEndArrowSize','2307qQWTEB','setShapeSolidFill','newShape','drawId','from','setHeight','_preloadShapeProperties','setShapeType','setPosition','getWorkbook','getShapeType','default','build','getAdjustNames','getDrawingData','flipX','setStrokeLineCapType','color','ensureSkeleton','getUnitId','getConnectionSiteList','point','152IsgkRy','updateShape','256257BQcUwH','subUnitId','transform','stringify','extend','ShapeArrowSizeEnum','prototype','string','ShapeTypeEnum','localToWorld','setStartArrowType','DRAWING_SHAPE','getEndConnectInfo','ShapeGradientTypeEnum','gradientType','getShapeId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endArrow','setStartArrowSize','newConnector','SolidFill','ShapeLineTypeEnum','getShapeModel','capType','setEndArrowType','shapeData','setStrokeOpacity','_commandService','setStrokeLineDashType','getPosition','lineType','executeCommand','lineJoinType','call','unitId','setStrokeWidth','setStrokeColor','getDrawingPoints','_resolveEndpoints','fill','connectShapes','drawingType','setStrokeLineJoinType','getSheetId','getShapes','shape','ang','connectionSiteIndex','790smwZJH','length','gradientStops','688156ItyIpJ','_resolveExistingOrFreeEndpoint','opacity','1177728kIhpLC','\x20and\x20subUnitId\x20','iterator','push','keys','getStartConnectInfo','defineProperty','startArrow',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','rotation','abs','top','lineStrokeType','getConnectionSites','size','ShapeLineCapEnum','\x20not\x20found','getConnectorLinePoints','toPrimitive','6325276JTvXsN','relation','width','cos','updateContext','removeShape'];_0x2fe9=function(){return _0x4c1401;};return _0x2fe9();}function M(_0x4fb2c5){const _0x1112cb=_0x1a70bd;var _0x381cf9=j(_0x4fb2c5,_0x1112cb(0x209));return A(_0x381cf9)=='symbol'?_0x381cf9:_0x381cf9+'';}function N(_0x1b1cc8,_0x34fba4,_0x28d439){const _0x14fb2d=_0x1a70bd;return(_0x34fba4=M(_0x34fba4))in _0x1b1cc8?Object[_0x14fb2d(0x23e)](_0x1b1cc8,_0x34fba4,{'value':_0x28d439,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b1cc8[_0x34fba4]=_0x28d439,_0x1b1cc8;}var P=class{constructor(_0x11e990,_0x3d6b05,_0x22073f,_0x96e0c4){const _0x5c95a0=_0x1a70bd;N(this,'unitId',void 0x0),N(this,_0x5c95a0(0x203),void 0x0),N(this,_0x5c95a0(0x1ed),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5c95a0(0x1c9),_0x5e2b87),N(this,_0x5c95a0(0x1db),_0x1c416b),N(this,_0x5c95a0(0x1e2),void 0x0),N(this,_0x5c95a0(0x21b),{}),N(this,_0x5c95a0(0x1d2),void 0x0),this[_0x5c95a0(0x224)]=_0x11e990,this[_0x5c95a0(0x203)]=_0x3d6b05,this[_0x5c95a0(0x1ed)]=_0x22073f||_0xca9b09(),this['_injector']=_0x96e0c4;}[_0x1a70bd(0x1f2)](_0x3ee561,_0x4c67c3,_0x2d4d45,_0x33faf4){const _0xbc1389=_0x1a70bd;let _0x3b3801=this[_0xbc1389(0x1d2)][_0xbc1389(0x1e7)](_0x2114e5)[_0xbc1389(0x1fc)](this[_0xbc1389(0x224)],this[_0xbc1389(0x203)]);if(!_0x3b3801)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0xbc1389(0x224)]+'\x20and\x20subUnitId\x20'+this[_0xbc1389(0x203)]+_0xbc1389(0x1c4));let {transform:_0x54f04e}=_0x37472c(this[_0xbc1389(0x224)],this['subUnitId'],{'row':_0x3ee561,'column':_0x4c67c3,'rowOffset':_0x2d4d45,'columnOffset':_0x33faf4},0x1,0x1,_0x3b3801);return this['x']=_0x54f04e[_0xbc1389(0x1cf)],this['y']=_0x54f04e['top'],this;}['setAbsolutePosition'](_0x3a3fb2,_0x5bebdb){return this['x']=_0x3a3fb2,this['y']=_0x5bebdb,this;}[_0x1a70bd(0x1f1)](_0x5bd157){const _0x421d32=_0x1a70bd;return this[_0x421d32(0x1e2)]=_0x5bd157,this;}[_0x1a70bd(0x1eb)](_0x216434,_0x39f04f){const _0xd91e55=_0x1a70bd;return this['shapeData'][_0xd91e55(0x229)]||(this['shapeData'][_0xd91e55(0x229)]={}),this[_0xd91e55(0x21b)][_0xd91e55(0x229)][_0xd91e55(0x1d3)]=_0x2d0686[_0xd91e55(0x216)],_0x216434!==void 0x0&&(this['shapeData']['fill'][_0xd91e55(0x1fb)]=_0x216434),_0x39f04f!==void 0x0&&(this[_0xd91e55(0x21b)][_0xd91e55(0x229)][_0xd91e55(0x237)]=_0x39f04f),this;}[_0x1a70bd(0x1e6)](_0x430f60,_0x52f9fc,_0x34a7bf){const _0x11d8c0=_0x1a70bd;if(_0x52f9fc===void 0x0||_0x52f9fc[_0x11d8c0(0x233)]===0x0)throw Error(_0x11d8c0(0x1cd));return this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)]||(this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)]={}),this['shapeData'][_0x11d8c0(0x229)][_0x11d8c0(0x234)]=_0x52f9fc,this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)][_0x11d8c0(0x1d3)]=_0x2d0686[_0x11d8c0(0x1e3)],this[_0x11d8c0(0x21b)]['fill'][_0x11d8c0(0x210)]=_0x430f60,_0x34a7bf!==void 0x0&&(this[_0x11d8c0(0x21b)][_0x11d8c0(0x229)][_0x11d8c0(0x1d6)]=_0x34a7bf),this;}['setNoneFill'](){const _0x4df092=_0x1a70bd;return this[_0x4df092(0x21b)][_0x4df092(0x229)]={'fillType':_0x2d0686['NoFill']},this;}[_0x1a70bd(0x226)](_0x5eac72){const _0x359fb1=_0x1a70bd;return this[_0x359fb1(0x21b)][_0x359fb1(0x1e0)]||(this[_0x359fb1(0x21b)][_0x359fb1(0x1e0)]={}),this['shapeData'][_0x359fb1(0x1e0)][_0x359fb1(0x1fb)]=_0x5eac72,this;}[_0x1a70bd(0x225)](_0x994b82){const _0x5c04fb=_0x1a70bd;return this[_0x5c04fb(0x21b)]['stroke']||(this[_0x5c04fb(0x21b)][_0x5c04fb(0x1e0)]={}),this['shapeData'][_0x5c04fb(0x1e0)][_0x5c04fb(0x1c9)]=_0x994b82,this;}[_0x1a70bd(0x21e)](_0x8f9c37){const _0x420a55=_0x1a70bd;return this[_0x420a55(0x21b)][_0x420a55(0x1e0)]||(this[_0x420a55(0x21b)][_0x420a55(0x1e0)]={}),this[_0x420a55(0x21b)][_0x420a55(0x1e0)]['dashType']=_0x8f9c37,this;}[_0x1a70bd(0x22c)](_0x26425d){const _0x36d22a=_0x1a70bd;return this[_0x36d22a(0x21b)][_0x36d22a(0x1e0)]||(this[_0x36d22a(0x21b)]['stroke']={}),this[_0x36d22a(0x21b)][_0x36d22a(0x1e0)][_0x36d22a(0x222)]=_0x26425d,this;}[_0x1a70bd(0x1fa)](_0x31897f){const _0x14196c=_0x1a70bd;return this['shapeData'][_0x14196c(0x1e0)]||(this[_0x14196c(0x21b)][_0x14196c(0x1e0)]={}),this['shapeData'][_0x14196c(0x1e0)][_0x14196c(0x219)]=_0x31897f,this;}[_0x1a70bd(0x21c)](_0x332c31){const _0x636c9b=_0x1a70bd;return this[_0x636c9b(0x21b)][_0x636c9b(0x1e0)]||(this[_0x636c9b(0x21b)]['stroke']={}),this[_0x636c9b(0x21b)][_0x636c9b(0x1e0)][_0x636c9b(0x237)]=_0x332c31,this;}['setStrokeLineType'](_0x5c5167){const _0x180970=_0x1a70bd;return this[_0x180970(0x21b)][_0x180970(0x1e0)]||(this[_0x180970(0x21b)][_0x180970(0x1e0)]={}),this[_0x180970(0x21b)]['stroke'][_0x180970(0x244)]=_0x5c5167,this;}['setWidth'](_0x3e7dfb){const _0x35b133=_0x1a70bd;return this[_0x35b133(0x1c9)]=_0x3e7dfb,this;}[_0x1a70bd(0x1ef)](_0x395191){const _0x282712=_0x1a70bd;return this[_0x282712(0x1db)]=_0x395191,this;}['isLineShape'](){const _0x2c2021=_0x1a70bd;let _0xb714bb=this[_0x2c2021(0x1d2)][_0x2c2021(0x1e7)](_0x3fe959)['getShapeModel'](this[_0x2c2021(0x224)],this['subUnitId'],this['drawId']);return _0xb714bb?_0x221386(_0xb714bb[_0x2c2021(0x1f4)]()):this[_0x2c2021(0x1e2)]?_0x221386(this[_0x2c2021(0x1e2)]):!0x1;}[_0x1a70bd(0x1c1)](){const _0x574f1b=_0x1a70bd;let _0x4c8fc5=this[_0x574f1b(0x1d2)][_0x574f1b(0x1e7)](_0x3fe959)[_0x574f1b(0x218)](this['unitId'],this[_0x574f1b(0x203)],this[_0x574f1b(0x1ed)]);if(!_0x4c8fc5)return[];let _0x2903af=this[_0x574f1b(0x1d2)][_0x574f1b(0x1e7)](_0x383207)['getDrawingByParam']({'unitId':this[_0x574f1b(0x224)],'subUnitId':this[_0x574f1b(0x203)],'drawingId':this[_0x574f1b(0x1ed)]});if(!(_0x2903af!=null&&_0x2903af[_0x574f1b(0x204)]))return[];let {width:_0x2fe17b=0x0,height:_0x1c25b0=0x0}=_0x2903af['transform'];return _0x4c8fc5['updateContext']({'width':_0x2fe17b,'height':_0x1c25b0}),_0x4c8fc5[_0x574f1b(0x1fe)]();}['getAdjustPoints'](){const _0x586380=_0x1a70bd;let _0x4bcc3a=this[_0x586380(0x1d2)]['get'](_0x3fe959)['getShapeModel'](this[_0x586380(0x224)],this[_0x586380(0x203)],this[_0x586380(0x1ed)]);if(!_0x4bcc3a)return[];let _0xe362d7=this[_0x586380(0x1d2)]['get'](_0x383207)[_0x586380(0x1d0)]({'unitId':this[_0x586380(0x224)],'subUnitId':this[_0x586380(0x203)],'drawingId':this[_0x586380(0x1ed)]});if(!(_0xe362d7!=null&&_0xe362d7['transform']))return[];let {width:_0x1e8fd3=0x0,height:_0x1157b6=0x0}=_0xe362d7[_0x586380(0x204)];return _0x4bcc3a[_0x586380(0x1cb)]({'width':_0x1e8fd3,'height':_0x1157b6}),_0x4bcc3a[_0x586380(0x227)]();}[_0x1a70bd(0x1c5)](){const _0x5bd0b5=_0x1a70bd;let _0x33ae3b=this[_0x5bd0b5(0x1d2)][_0x5bd0b5(0x1e7)](_0x3fe959)[_0x5bd0b5(0x218)](this[_0x5bd0b5(0x224)],this[_0x5bd0b5(0x203)],this['drawId']);if(!_0x33ae3b||!_0x221386(_0x33ae3b['getShapeType']()))return[];let _0x1ddcf2=this[_0x5bd0b5(0x1d2)][_0x5bd0b5(0x1e7)](_0x383207)[_0x5bd0b5(0x1d0)]({'unitId':this['unitId'],'subUnitId':this[_0x5bd0b5(0x203)],'drawingId':this[_0x5bd0b5(0x1ed)]});if(!(_0x1ddcf2!=null&&_0x1ddcf2[_0x5bd0b5(0x204)]))return[];let {width:_0x30bca2=0x0,height:_0x58a3f2=0x0}=_0x1ddcf2['transform'];return _0x33ae3b[_0x5bd0b5(0x1cb)]({'width':_0x30bca2,'height':_0x58a3f2}),_0x33ae3b[_0x5bd0b5(0x1c5)]();}[_0x1a70bd(0x23d)](){const _0x18e13d=_0x1a70bd;var _0x32e30a;let _0x50d7ac=this['_injector']['get'](_0x3fe959)[_0x18e13d(0x218)](this[_0x18e13d(0x224)],this['subUnitId'],this['drawId']);return _0x50d7ac?(_0x32e30a=_0x50d7ac[_0x18e13d(0x23d)]())==null?null:_0x32e30a:null;}[_0x1a70bd(0x20e)](){const _0x1b3614=_0x1a70bd;var _0x3520fa;let _0x17bc49=this[_0x1b3614(0x1d2)]['get'](_0x3fe959)[_0x1b3614(0x218)](this[_0x1b3614(0x224)],this[_0x1b3614(0x203)],this['drawId']);return _0x17bc49?(_0x3520fa=_0x17bc49[_0x1b3614(0x20e)]())==null?null:_0x3520fa:null;}['build'](){const _0x390994=_0x1a70bd;var _0x582397,_0x2f7dbe;if(!this[_0x390994(0x1e2)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x46d0c6=this[_0x390994(0x1d2)][_0x390994(0x1e7)](_0x2114e5)[_0x390994(0x1fc)](this[_0x390994(0x224)],this[_0x390994(0x203)]);if(!_0x46d0c6)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x390994(0x224)]+_0x390994(0x239)+this[_0x390994(0x203)]+_0x390994(0x1c4));let {transform:_0x138872}=_0x37472c(this[_0x390994(0x224)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x46d0c6);this['x']=this['x']>0x0?this['x']:_0x138872[_0x390994(0x1cf)],this['y']=this['y']>0x0?this['y']:_0x138872[_0x390994(0x243)];}return this['width']=(_0x582397=this[_0x390994(0x1c9)])==null?_0x5e2b87:_0x582397,this['height']=(_0x2f7dbe=this[_0x390994(0x1db)])==null?_0x1c416b:_0x2f7dbe,{'unitId':this[_0x390994(0x224)],'subUnitId':this[_0x390994(0x203)],'shapeId':this[_0x390994(0x1ed)],'shapeType':this[_0x390994(0x1e2)],'shapeData':Object[_0x390994(0x23c)](this['shapeData'])['length']>0x0?this[_0x390994(0x21b)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x390994(0x1c9)],'height':this[_0x390994(0x1db)]};}[_0x1a70bd(0x211)](){const _0x2d04b3=_0x1a70bd;return this[_0x2d04b3(0x1ed)];}[_0x1a70bd(0x1f4)](){const _0x3d4cc9=_0x1a70bd;return this[_0x3d4cc9(0x1e2)];}[_0x1a70bd(0x1d4)](){const _0x5a5b71=_0x1a70bd;return this[_0x5a5b71(0x21b)];}[_0x1a70bd(0x21f)](){return{'x':this['x'],'y':this['y']};}[_0x1a70bd(0x1da)](){const _0x237137=_0x1a70bd;return{'width':this[_0x237137(0x1c9)],'height':this[_0x237137(0x1db)]};}},F=class extends P{constructor(_0x96539e,_0x799170,_0xff615f,_0x3d167a){const _0x4baaa8=_0x1a70bd;super(_0x96539e,_0x799170,_0xff615f,_0x3d167a),N(this,_0x4baaa8(0x21b),{});}[_0x1a70bd(0x1f1)](_0x53401f){const _0x2d10a5=_0x1a70bd;if(!_0x221386(_0x53401f))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x53401f+_0x2d10a5(0x240));return super[_0x2d10a5(0x1f1)](_0x53401f),this;}[_0x1a70bd(0x20c)](_0x4063a5){const _0x2e5309=_0x1a70bd;var _0x43f810,_0x2301c6;return(_0x43f810=this[_0x2e5309(0x21b)])!=null&&_0x43f810['ln']||(this[_0x2e5309(0x21b)]['ln']={}),!((_0x2301c6=this[_0x2e5309(0x21b)])==null||(_0x2301c6=_0x2301c6['ln'])==null)&&_0x2301c6[_0x2e5309(0x23f)]||(this[_0x2e5309(0x21b)]['ln'][_0x2e5309(0x23f)]={}),this['shapeData']['ln'][_0x2e5309(0x23f)][_0x2e5309(0x1d7)]=_0x4063a5,this;}[_0x1a70bd(0x21a)](_0x44daec){const _0x387b1e=_0x1a70bd;var _0x203513,_0xf03a46;return(_0x203513=this[_0x387b1e(0x21b)])!=null&&_0x203513['ln']||(this[_0x387b1e(0x21b)]['ln']={}),!((_0xf03a46=this[_0x387b1e(0x21b)])==null||(_0xf03a46=_0xf03a46['ln'])==null)&&_0xf03a46['endArrow']||(this[_0x387b1e(0x21b)]['ln'][_0x387b1e(0x213)]={}),this[_0x387b1e(0x21b)]['ln'][_0x387b1e(0x213)][_0x387b1e(0x1d7)]=_0x44daec,this;}[_0x1a70bd(0x214)](_0x5eb6c9){const _0x485b63=_0x1a70bd;var _0x4e4065,_0x14bcc3;return(_0x4e4065=this[_0x485b63(0x21b)])!=null&&_0x4e4065['ln']||(this[_0x485b63(0x21b)]['ln']={}),!((_0x14bcc3=this[_0x485b63(0x21b)])==null||(_0x14bcc3=_0x14bcc3['ln'])==null)&&_0x14bcc3['startArrow']||(this[_0x485b63(0x21b)]['ln'][_0x485b63(0x23f)]={}),this['shapeData']['ln'][_0x485b63(0x23f)][_0x485b63(0x1c2)]=_0x5eb6c9,this;}[_0x1a70bd(0x1e9)](_0x976007){const _0xfb8c96=_0x1a70bd;var _0x50b1b1,_0x58ddbd;return(_0x50b1b1=this[_0xfb8c96(0x21b)])!=null&&_0x50b1b1['ln']||(this[_0xfb8c96(0x21b)]['ln']={}),!((_0x58ddbd=this[_0xfb8c96(0x21b)])==null||(_0x58ddbd=_0x58ddbd['ln'])==null)&&_0x58ddbd['endArrow']||(this[_0xfb8c96(0x21b)]['ln'][_0xfb8c96(0x213)]={}),this[_0xfb8c96(0x21b)]['ln'][_0xfb8c96(0x213)][_0xfb8c96(0x1c2)]=_0x976007,this;}['build'](){const _0x1f74be=_0x1a70bd;return super[_0x1f74be(0x1f6)]();}[_0x1a70bd(0x20e)](){const _0xb47b30=_0x1a70bd;var _0xdd1ada;return((_0xdd1ada=this['shapeData'])==null||(_0xdd1ada=_0xdd1ada[_0xb47b30(0x1c8)])==null?void 0x0:_0xdd1ada['to'])||null;}[_0x1a70bd(0x23d)](){const _0x1b7648=_0x1a70bd;var _0x5f72dc;return((_0x5f72dc=this[_0x1b7648(0x21b)])==null||(_0x5f72dc=_0x5f72dc[_0x1b7648(0x1c8)])==null?void 0x0:_0x5f72dc['from'])||null;}};function I(_0x13fb05,_0x39e15e,_0x5b92c7,_0x3f99fc,_0x5090f4,_0x2365ae){const _0x2ee033=_0x1a70bd;let _0x468a2b=_0x5090f4[_0x2ee033(0x218)](_0x13fb05,_0x39e15e,_0x5b92c7);if(!_0x468a2b)return null;let _0x258a02=_0x2365ae[_0x2ee033(0x1d0)]({'unitId':_0x13fb05,'subUnitId':_0x39e15e,'drawingId':_0x5b92c7});if(!(_0x258a02!=null&&_0x258a02[_0x2ee033(0x204)]))return null;let {left:_0x403edd=0x0,top:_0x43a0a6=0x0,width:_0x5bbf2b=0x0,height:_0x17281f=0x0,flipX:_0x5a9cec=!0x1,flipY:_0xf291c=!0x1,angle:_0xab7cfe}=_0x258a02['transform'];_0x468a2b[_0x2ee033(0x1cb)]({'width':_0x5bbf2b,'height':_0x17281f});let _0x3b4335=_0x468a2b[_0x2ee033(0x1fe)]()['find'](_0x26d285=>_0x26d285[_0x2ee033(0x1d8)]===_0x3f99fc);if(!_0x3b4335)return null;let _0x34b116=_0x5a9cec?_0x5bbf2b-_0x3b4335['x']:_0x3b4335['x'],_0x58e989=_0xf291c?_0x17281f-_0x3b4335['y']:_0x3b4335['y'];if(_0xab7cfe&&_0xab7cfe!==0x0){let _0x50b6f0=_0xab7cfe*Math['PI']/0xb4,_0x1d4d74=Math[_0x2ee033(0x1ca)](_0x50b6f0),_0x4be184=Math[_0x2ee033(0x1e1)](_0x50b6f0),_0x199304=_0x5bbf2b/0x2,_0x3188f5=_0x17281f/0x2,_0x12a69f=_0x34b116-_0x199304,_0x319a2f=_0x58e989-_0x3188f5;_0x34b116=_0x199304+_0x12a69f*_0x1d4d74-_0x319a2f*_0x4be184,_0x58e989=_0x3188f5+_0x12a69f*_0x4be184+_0x319a2f*_0x1d4d74;}_0x34b116+=_0x403edd,_0x58e989+=_0x43a0a6;let _0x393733=_0x3b4335[_0x2ee033(0x230)]/0xea60;_0x5a9cec&&(_0x393733=0xb4-_0x393733),_0xf291c&&(_0x393733=-_0x393733),_0x393733+=_0xab7cfe||0x0,_0x393733=(_0x393733%0x168+0x168)%0x168;let _0x3614f0=_0x1ccf79({'left':_0x403edd,'top':_0x43a0a6,'width':_0x5bbf2b,'height':_0x17281f},_0xab7cfe||0x0);return{'point':{'x':_0x34b116,'y':_0x58e989},'angle':_0x393733,'bounds':_0x3614f0};}function L(_0x408463,_0x2298b9){const _0x39ef1b=_0x1a70bd;let _0x509e5e=_0x2298b9['x']-_0x408463['x'],_0x30283f=_0x2298b9['y']-_0x408463['y'];return Math[_0x39ef1b(0x242)](_0x509e5e)>=Math[_0x39ef1b(0x242)](_0x30283f)?_0x509e5e>=0x0?0xb4:0x0:_0x30283f>=0x0?0x10e:0x5a;}function R(_0x3c7d22,_0x8eee2c,_0x1a489b,_0x12e955,_0x4a7462,_0x26668c,_0x1bb58c){const _0x39afa8=_0x1a70bd;let _0x43e341=_0x26668c[_0x39afa8(0x218)](_0x3c7d22,_0x8eee2c,_0x1a489b);if(!_0x43e341)return null;let _0x340a6e=_0x1bb58c[_0x39afa8(0x1d0)]({'unitId':_0x3c7d22,'subUnitId':_0x8eee2c,'drawingId':_0x1a489b});if(!(_0x340a6e!=null&&_0x340a6e[_0x39afa8(0x204)]))return null;let {left:_0x3001c8=0x0,top:_0x1071e2=0x0,width:_0x5f1041=0x0,height:_0x29d07f=0x0,flipX:_0x3d5d72=!0x1,flipY:_0x1c8e2a=!0x1}=_0x340a6e['transform'];_0x43e341['updateContext']({'width':_0x5f1041,'height':_0x29d07f});let _0x2a9092=_0x43e341[_0x39afa8(0x1c5)]();if(_0x2a9092[_0x39afa8(0x233)]<0x2)return null;let _0x8ead84=_0x12e955?_0x2a9092[0x0]:_0x2a9092[_0x2a9092[_0x39afa8(0x233)]-0x1],_0x3b78c6=new _0x5dda88({'left':_0x3001c8,'top':_0x1071e2,'width':_0x5f1041,'height':_0x29d07f,'flipX':_0x3d5d72,'flipY':_0x1c8e2a})[_0x39afa8(0x20b)](_0x8ead84);return{'point':_0x3b78c6,'angle':L(_0x4a7462[_0x39afa8(0x1ff)],_0x3b78c6),'bounds':{'left':_0x3b78c6['x'],'top':_0x3b78c6['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26ae22{async[_0x1a70bd(0x1e8)](_0x20dcc5){const _0x167355=_0x1a70bd;let {unitId:_0x3744ab,subUnitId:_0xfa01b9,shapeId:_0x1b4eb0,shapeType:_0x4f892f,shapeData:_0x4db7f8,x:_0x23aa67,y:_0xabd2b4,width:_0x5c9ab0,height:_0x138ad5}=_0x20dcc5;return this[_0x167355(0x21d)]['executeCommand'](_0x286adb['id'],{'unitId':_0x3744ab,'subUnitId':_0xfa01b9,'shapeId':_0x1b4eb0,'shapeType':_0x4f892f,'shapeData':_0x4db7f8,'position':{'x':_0x23aa67,'y':_0xabd2b4},'width':_0x5c9ab0,'height':_0x138ad5});}async[_0x1a70bd(0x201)](_0xdbdefc){const _0x1def2d=_0x1a70bd;let {unitId:_0x2ef823,subUnitId:_0x5470dc,shapeId:_0x4457ad,shapeType:_0x126949,shapeData:_0x8a380f,x:_0x94e417,y:_0x4871c5,width:_0x4de276,height:_0x39b880}=_0xdbdefc;return this[_0x1def2d(0x21d)][_0x1def2d(0x221)](_0x5ddcca['id'],{'unitId':_0x2ef823,'subUnitId':_0x5470dc,'shapeId':_0x4457ad,'shapeType':_0x126949,'shapeData':_0x8a380f,'position':{'x':_0x94e417,'y':_0x4871c5},'width':_0x4de276,'height':_0x39b880});}[_0x1a70bd(0x1ec)](_0x55377d){const _0x2867b5=_0x1a70bd;let _0x3732a7=this[_0x2867b5(0x1f3)]()[_0x2867b5(0x1fd)](),_0x25dda3=this[_0x2867b5(0x22d)]();if(_0x55377d){let _0x2e942d=new P(_0x3732a7,_0x25dda3,_0x55377d[_0x2867b5(0x1ed)],this[_0x2867b5(0x1d2)]);return this[_0x2867b5(0x1f0)](_0x2e942d,_0x3732a7,_0x25dda3,_0x55377d['drawId']),_0x2e942d;}return new P(_0x3732a7,_0x25dda3,_0xca9b09(),this['_injector']);}[_0x1a70bd(0x215)](_0x15611a){const _0x250b03=_0x1a70bd;let _0x4b94bd=this[_0x250b03(0x1f3)]()['getUnitId'](),_0x2c8aed=this[_0x250b03(0x22d)]();if(_0x15611a){let _0x4d04fb=new F(_0x4b94bd,_0x2c8aed,_0x15611a['drawId'],this[_0x250b03(0x1d2)]);return this[_0x250b03(0x1f0)](_0x4d04fb,_0x4b94bd,_0x2c8aed,_0x15611a['drawId']),_0x4d04fb;}return new F(_0x4b94bd,_0x2c8aed,_0xca9b09(),this[_0x250b03(0x1d2)]);}[_0x1a70bd(0x22e)](){const _0x11b29f=_0x1a70bd;let _0x1510ac=this[_0x11b29f(0x1d2)][_0x11b29f(0x1e7)](_0x4b057e),_0x3262d6=this[_0x11b29f(0x1f3)]()[_0x11b29f(0x1fd)](),_0x34cefe=this[_0x11b29f(0x22d)](),_0x591ef9=_0x1510ac[_0x11b29f(0x1f8)](_0x3262d6,_0x34cefe);if(!_0x591ef9)return[];let _0x2dbb27=[];for(let [_0x2d99f4,_0x5602aa]of Object['entries'](_0x591ef9))if(_0x5602aa&&_0x5602aa[_0x11b29f(0x22b)]===_0x7113b1[_0x11b29f(0x20d)]){let _0x5b4721=new P(_0x3262d6,_0x34cefe,_0x2d99f4,this[_0x11b29f(0x1d2)]);this[_0x11b29f(0x1f0)](_0x5b4721,_0x3262d6,_0x34cefe,_0x2d99f4),_0x2dbb27[_0x11b29f(0x23b)](_0x5b4721);}return _0x2dbb27;}[_0x1a70bd(0x1cc)](_0x2a5808){const _0x3585fb=_0x1a70bd;let {unitId:_0x16ac09,subUnitId:_0x4d8785,drawId:_0x478aad}=_0x2a5808;return this[_0x3585fb(0x21d)][_0x3585fb(0x221)](_0x324f42['id'],{'unitId':_0x16ac09,'drawings':[{'unitId':_0x16ac09,'subUnitId':_0x4d8785,'drawingId':_0x478aad,'drawingType':_0x7113b1[_0x3585fb(0x20d)]}]});}async[_0x1a70bd(0x22a)](_0x19108b){const _0x263b7c=_0x1a70bd;let {connector:_0x14be9d,startTarget:_0x51dca8,endTarget:_0x34aea1}=_0x19108b;if(!_0x51dca8&&!_0x34aea1)return!0x1;let _0x29142d=this[_0x263b7c(0x1f3)]()[_0x263b7c(0x1fd)](),_0x291ffb=this[_0x263b7c(0x22d)](),_0x2407e4=this[_0x263b7c(0x1d2)][_0x263b7c(0x1e7)](_0x3fe959),_0xfbc104=this[_0x263b7c(0x1d2)][_0x263b7c(0x1e7)](_0x383207),_0x80f674=_0x2407e4['getShapeModel'](_0x29142d,_0x291ffb,_0x14be9d[_0x263b7c(0x1ed)]);if(!_0x80f674)return!0x1;let _0x3f5884=_0x80f674[_0x263b7c(0x1f4)](),_0x5f02c3=_0x80f674['getShapeRelation'](),_0x4e353b={};for(let _0x3272f9 of _0x80f674[_0x263b7c(0x1f7)]()){let _0x31e993=_0x80f674['getAdjustValueByName'](_0x3272f9);_0x31e993!==void 0x0&&(_0x4e353b[_0x3272f9]=_0x31e993);}let {startInfo:_0x3ba3f1,endInfo:_0x170999}=this[_0x263b7c(0x228)](_0x29142d,_0x291ffb,_0x14be9d,_0x80f674,_0x51dca8,_0x34aea1,_0x2407e4,_0xfbc104,_0x5f02c3);if(!_0x3ba3f1||!_0x170999)return!0x1;let _0x105ef6=_0x5f27ec(_0x4432fe(_0x3ba3f1,_0x170999,_0x3f5884),_0x3f5884),_0x1e5f69={};return _0x51dca8?_0x1e5f69['from']={'shapeId':_0x51dca8['shape'][_0x263b7c(0x1ed)],'cxnIndex':_0x51dca8['connectionSiteIndex']}:_0x5f02c3!=null&&_0x5f02c3[_0x263b7c(0x1ee)]&&(_0x1e5f69['from']=_0x5f02c3['from']),_0x34aea1?_0x1e5f69['to']={'shapeId':_0x34aea1[_0x263b7c(0x22f)]['drawId'],'cxnIndex':_0x34aea1[_0x263b7c(0x231)]}:_0x5f02c3!=null&&_0x5f02c3['to']&&(_0x1e5f69['to']=_0x5f02c3['to']),this[_0x263b7c(0x21d)]['executeCommand'](_0x4cacb3['id'],{'unitId':_0x29142d,'subUnitId':_0x291ffb,'connectorShapeId':_0x14be9d[_0x263b7c(0x1ed)],'width':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1c9)],'height':_0x105ef6[_0x263b7c(0x1d5)]['height'],'left':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1cf)],'top':_0x105ef6['worldRect']['top'],'flipX':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1f9)]||!0x1,'flipY':_0x105ef6[_0x263b7c(0x1d5)][_0x263b7c(0x1e4)]||!0x1,'oldAdjustValues':_0x4e353b,'newAdjustValues':_0x105ef6[_0x263b7c(0x1e5)],'newLineType':_0x105ef6[_0x263b7c(0x220)],'oldLineType':_0x3f5884,'rotation':_0x105ef6[_0x263b7c(0x241)],'oldRelation':_0x5f02c3,'newRelation':_0x1e5f69});}[_0x1a70bd(0x1f0)](_0x2cb91c,_0x572092,_0x2e143a,_0x45ec04){const _0xd2b492=_0x1a70bd;let _0x10bd8c=this[_0xd2b492(0x1d2)]['get'](_0x383207)[_0xd2b492(0x1d0)]({'unitId':_0x572092,'subUnitId':_0x2e143a,'drawingId':_0x45ec04});if(_0x10bd8c!=null&&_0x10bd8c[_0xd2b492(0x204)]){var _0x3d08aa,_0x2acd3c,_0x2490b1,_0x1dfdf2;_0x2cb91c['x']=(_0x3d08aa=_0x10bd8c['transform']['left'])==null?0x0:_0x3d08aa,_0x2cb91c['y']=(_0x2acd3c=_0x10bd8c['transform']['top'])==null?0x0:_0x2acd3c,_0x2cb91c[_0xd2b492(0x1c9)]=(_0x2490b1=_0x10bd8c[_0xd2b492(0x204)][_0xd2b492(0x1c9)])==null?_0x2cb91c['width']:_0x2490b1,_0x2cb91c[_0xd2b492(0x1db)]=(_0x1dfdf2=_0x10bd8c['transform']['height'])==null?_0x2cb91c[_0xd2b492(0x1db)]:_0x1dfdf2;}let _0x3ad149=this[_0xd2b492(0x1d2)][_0xd2b492(0x1e7)](_0x3fe959)[_0xd2b492(0x218)](_0x572092,_0x2e143a,_0x45ec04);if(_0x3ad149){_0x2cb91c[_0xd2b492(0x1e2)]=_0x3ad149[_0xd2b492(0x1f4)]();let _0x6936fb=_0x3ad149[_0xd2b492(0x1d4)]();_0x6936fb&&(_0x2cb91c[_0xd2b492(0x21b)]=JSON['parse'](JSON[_0xd2b492(0x205)](_0x6936fb)));}}['_resolveEndpoints'](_0xa5f090,_0x29583f,_0x3f01ae,_0x4676ec,_0x580e57,_0x558ac6,_0x2b21ae,_0x43d1b3,_0x341001){const _0x1753c8=_0x1a70bd;let _0x15e03d=null,_0x3f1b73=null;return _0x580e57&&(_0x15e03d=I(_0xa5f090,_0x29583f,_0x580e57[_0x1753c8(0x22f)][_0x1753c8(0x1ed)],_0x580e57[_0x1753c8(0x231)],_0x2b21ae,_0x43d1b3)),_0x558ac6&&(_0x3f1b73=I(_0xa5f090,_0x29583f,_0x558ac6['shape'][_0x1753c8(0x1ed)],_0x558ac6[_0x1753c8(0x231)],_0x2b21ae,_0x43d1b3)),_0x15e03d||(_0x15e03d=this[_0x1753c8(0x236)](_0xa5f090,_0x29583f,_0x3f01ae[_0x1753c8(0x1ed)],!0x0,_0x3f1b73,_0x341001==null?void 0x0:_0x341001[_0x1753c8(0x1ee)],_0x2b21ae,_0x43d1b3)),_0x3f1b73||(_0x3f1b73=this[_0x1753c8(0x236)](_0xa5f090,_0x29583f,_0x3f01ae['drawId'],!0x1,_0x15e03d,_0x341001==null?void 0x0:_0x341001['to'],_0x2b21ae,_0x43d1b3)),{'startInfo':_0x15e03d,'endInfo':_0x3f1b73};}[_0x1a70bd(0x236)](_0x39e1e9,_0x5e3334,_0x2c157b,_0x234abc,_0x2eac03,_0x3bf25c,_0x1a168f,_0x8d9eb5){const _0x3af242=_0x1a70bd;if(_0x3bf25c){let _0x299b72=I(_0x39e1e9,_0x5e3334,_0x3bf25c['shapeId'],_0x3bf25c[_0x3af242(0x1df)],_0x1a168f,_0x8d9eb5);if(_0x299b72)return _0x299b72;}return _0x2eac03?R(_0x39e1e9,_0x5e3334,_0x2c157b,_0x234abc,_0x2eac03,_0x1a168f,_0x8d9eb5):null;}};function _0x2c14(_0x8f1f09,_0x1b9adb){_0x8f1f09=_0x8f1f09-0x1c1;const _0x2fe922=_0x2fe9();let _0x2c1456=_0x2fe922[_0x8f1f09];return _0x2c1456;}_0x26ae22[_0x1a70bd(0x206)](z);export{F as FConnectorShape,P as FShape};
1
+ function _0x2deb(){const _0x1c177c=['constructor','ShapeLineJoinEnum','setShapeSolidFill','opacity','getShapeType','ShapeArrowSizeEnum','symbol','3702360LRPYSO','27yhKSRQ','1CeNqBP','worldRect','getConnectionSiteList','iterator','type','relation','function','getDrawingPoints','entries','setStrokeLineDashType','setWidth','getSheetId','removeShape','startArrow','getConnectorLinePoints','ShapeLineCapEnum','object','fill','string','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','top','getShapeRelation','insertShape','SolidFill','connectionSiteIndex','extend','getAdjustPoints','getSize','newConnector','width','capType','default','lineJoinType','cos','adjustValues','getShapes','1436218WdRstN','setStrokeLineJoinType','transform','prototype','getEndConnectInfo','defineProperty','shape','parse','executeCommand','setStrokeColor','get','_resolveEndpoints','_preloadShapeProperties','shapeId','gradientType','sin','_commandService','getDrawingData','shapeData','32lWvUux','left','size','getShapeId','drawingType','DRAWING_SHAPE','ShapeLineDashEnum','newShape','connectShapes','setStartArrowType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawId','getAdjustValueByName','getShapeData','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','setPosition','height','getUnitId','endArrow','NoFill','Skeleton\x20for\x20unitId\x20','gradientAngle','toPrimitive','lineStrokeType','point','setStrokeLineCapType','14025888RPxyFa','setStrokeOpacity','getStartConnectInfo','setShapeType','getShapeModel','from',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','GradientFill','6842465ovwmLl','ensureSkeleton','setStrokeLineType','_resolveExistingOrFreeEndpoint','163011poVULx','getDrawingByParam','getWorkbook','setStartArrowSize','ShapeTypeEnum','updateContext','getAdjustNames','\x20and\x20subUnitId\x20','ShapeLineTypeEnum','3168935BoAohI','call','stroke','_injector','subUnitId','cxnIndex','abs','ShapeArrowTypeEnum','build','index','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','setStrokeWidth','unitId','length','shapeType','setEndArrowSize','getPosition','7115484UtbiCI','setNoneFill'];_0x2deb=function(){return _0x1c177c;};return _0x2deb();}const _0xa2463b=_0x2503;(function(_0x299186,_0x1b1854){const _0x2100fb=_0x2503,_0xdd6fc9=_0x299186();while(!![]){try{const _0x5605ba=parseInt(_0x2100fb(0x1de))/0x1*(parseInt(_0x2100fb(0x202))/0x2)+-parseInt(_0x2100fb(0x1b9))/0x3*(-parseInt(_0x2100fb(0x215))/0x4)+parseInt(_0x2100fb(0x1c2))/0x5+-parseInt(_0x2100fb(0x1d3))/0x6+parseInt(_0x2100fb(0x1b5))/0x7+-parseInt(_0x2100fb(0x1ad))/0x8+-parseInt(_0x2100fb(0x1dd))/0x9*(-parseInt(_0x2100fb(0x1dc))/0xa);if(_0x5605ba===_0x1b1854)break;else _0xdd6fc9['push'](_0xdd6fc9['shift']());}catch(_0x44d2fd){_0xdd6fc9['push'](_0xdd6fc9['shift']());}}}(_0x2deb,0xe46dd));import{ConnectorCoordinateTransform as _0x26d8d2,ShapeArrowSizeEnum as _0x20943d,ShapeArrowTypeEnum as _0x241bc8,ShapeFillEnum as _0x4cb821,ShapeGradientTypeEnum as _0x3e5f5b,ShapeLineCapEnum as _0x44267e,ShapeLineDashEnum as _0x56b446,ShapeLineJoinEnum as _0x8efbab,ShapeLineTypeEnum as _0xa14801,ShapeTypeEnum as _0x333862,computeConnectorRouteLayout as _0x5bb031,getBasicShapeRotateBound as _0x19bd62,isConnectorShape as _0x3448ac,routeConnectorLineShape as _0x2bc896}from'@univerjs-pro/engine-shape';import{FEnum as _0x4bb67d}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x79874,DEFAULT_SHAPE_WIDTH as _0x10b147,InsertShapeCommand as _0x39e09c,SetShapeDrawingDataCommand as _0x37525d,SheetsShapeService as _0x4bc659,UpdateConnectorRelationCommand as _0x42361b}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x4c500d,generateRandomId as _0x287657}from'@univerjs/core';import{IDrawingManagerService as _0x1e4021}from'@univerjs/drawing';import{SheetSkeletonService as _0x3201a7,convertPositionCellToSheetOverGrid as _0x5a45ad}from'@univerjs/sheets';import{ISheetDrawingService as _0x51eaf6,RemoveSheetDrawingCommand as _0x211153}from'@univerjs/sheets-drawing';import{FWorksheet as _0xf5b551}from'@univerjs/sheets/facade';var k=class extends _0x4bb67d{get[_0xa2463b(0x1bd)](){return _0x333862;}get['ShapeFillEnum'](){return _0x4cb821;}get['ShapeGradientTypeEnum'](){return _0x3e5f5b;}get[_0xa2463b(0x1c1)](){return _0xa14801;}get[_0xa2463b(0x21b)](){return _0x56b446;}get[_0xa2463b(0x1ed)](){return _0x44267e;}get[_0xa2463b(0x1d6)](){return _0x8efbab;}get[_0xa2463b(0x1c9)](){return _0x241bc8;}get[_0xa2463b(0x1da)](){return _0x20943d;}};_0x4bb67d[_0xa2463b(0x1f7)](k);function A(_0x1a01e1){'@babel/helpers - typeof';const _0x3b436e=_0xa2463b;return A=typeof Symbol==_0x3b436e(0x1e4)&&typeof Symbol[_0x3b436e(0x1e1)]==_0x3b436e(0x1db)?function(_0x44ff34){return typeof _0x44ff34;}:function(_0xecd589){const _0x3baf2e=_0x3b436e;return _0xecd589&&typeof Symbol==_0x3baf2e(0x1e4)&&_0xecd589[_0x3baf2e(0x1d5)]===Symbol&&_0xecd589!==Symbol[_0x3baf2e(0x205)]?_0x3baf2e(0x1db):typeof _0xecd589;},A(_0x1a01e1);}function j(_0x146c66,_0x22c367){const _0x46583a=_0xa2463b;if(A(_0x146c66)!=_0x46583a(0x1ee)||!_0x146c66)return _0x146c66;var _0x1fdbd7=_0x146c66[Symbol[_0x46583a(0x1a9)]];if(_0x1fdbd7!==void 0x0){var _0x43e84d=_0x1fdbd7[_0x46583a(0x1c3)](_0x146c66,_0x22c367||_0x46583a(0x1fd));if(A(_0x43e84d)!=_0x46583a(0x1ee))return _0x43e84d;throw TypeError(_0x46583a(0x21f));}return(_0x22c367===_0x46583a(0x1f0)?String:Number)(_0x146c66);}function _0x2503(_0x45e8d6,_0x12f457){_0x45e8d6=_0x45e8d6-0x1a9;const _0x2deb42=_0x2deb();let _0x2503a6=_0x2deb42[_0x45e8d6];return _0x2503a6;}function M(_0x4df7c9){const _0x2707a5=_0xa2463b;var _0x27811d=j(_0x4df7c9,_0x2707a5(0x1f0));return A(_0x27811d)==_0x2707a5(0x1db)?_0x27811d:_0x27811d+'';}function N(_0x52cc1e,_0x2f3dbd,_0x594bb9){const _0x2d5e8a=_0xa2463b;return(_0x2f3dbd=M(_0x2f3dbd))in _0x52cc1e?Object[_0x2d5e8a(0x207)](_0x52cc1e,_0x2f3dbd,{'value':_0x594bb9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52cc1e[_0x2f3dbd]=_0x594bb9,_0x52cc1e;}var P=class{constructor(_0x3f2c6b,_0x4780ce,_0x1c2339,_0x1080c5){const _0x5be753=_0xa2463b;N(this,_0x5be753(0x1ce),void 0x0),N(this,_0x5be753(0x1c6),void 0x0),N(this,'drawId',void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5be753(0x1fb),_0x10b147),N(this,_0x5be753(0x225),_0x79874),N(this,'shapeType',void 0x0),N(this,'shapeData',{}),N(this,'_injector',void 0x0),this['unitId']=_0x3f2c6b,this[_0x5be753(0x1c6)]=_0x4780ce,this[_0x5be753(0x220)]=_0x1c2339||_0x287657(),this[_0x5be753(0x1c5)]=_0x1080c5;}[_0xa2463b(0x224)](_0x450882,_0x119e3b,_0x1053a0,_0x526f96){const _0x56c49f=_0xa2463b;let _0x1cba72=this[_0x56c49f(0x1c5)]['get'](_0x3201a7)[_0x56c49f(0x1b6)](this[_0x56c49f(0x1ce)],this[_0x56c49f(0x1c6)]);if(!_0x1cba72)throw Error(_0x56c49f(0x229)+this[_0x56c49f(0x1ce)]+_0x56c49f(0x1c0)+this['subUnitId']+'\x20not\x20found');let {transform:_0x5e8dd5}=_0x5a45ad(this['unitId'],this[_0x56c49f(0x1c6)],{'row':_0x450882,'column':_0x119e3b,'rowOffset':_0x1053a0,'columnOffset':_0x526f96},0x1,0x1,_0x1cba72);return this['x']=_0x5e8dd5[_0x56c49f(0x216)],this['y']=_0x5e8dd5[_0x56c49f(0x1f2)],this;}['setAbsolutePosition'](_0x360a42,_0x1aa758){return this['x']=_0x360a42,this['y']=_0x1aa758,this;}[_0xa2463b(0x1b0)](_0x860f28){const _0x3e2be8=_0xa2463b;return this[_0x3e2be8(0x1d0)]=_0x860f28,this;}[_0xa2463b(0x1d7)](_0xd5e495,_0x125038){const _0x167bfe=_0xa2463b;return this[_0x167bfe(0x214)][_0x167bfe(0x1ef)]||(this['shapeData'][_0x167bfe(0x1ef)]={}),this[_0x167bfe(0x214)][_0x167bfe(0x1ef)]['fillType']=_0x4cb821[_0x167bfe(0x1f5)],_0xd5e495!==void 0x0&&(this[_0x167bfe(0x214)]['fill']['color']=_0xd5e495),_0x125038!==void 0x0&&(this[_0x167bfe(0x214)][_0x167bfe(0x1ef)][_0x167bfe(0x1d8)]=_0x125038),this;}['setShapeGradientFill'](_0x437c1b,_0x41986d,_0x226570){const _0x410134=_0xa2463b;if(_0x41986d===void 0x0||_0x41986d[_0x410134(0x1cf)]===0x0)throw Error(_0x410134(0x1f1));return this[_0x410134(0x214)][_0x410134(0x1ef)]||(this[_0x410134(0x214)][_0x410134(0x1ef)]={}),this[_0x410134(0x214)]['fill']['gradientStops']=_0x41986d,this[_0x410134(0x214)][_0x410134(0x1ef)]['fillType']=_0x4cb821[_0x410134(0x1b4)],this[_0x410134(0x214)][_0x410134(0x1ef)][_0x410134(0x210)]=_0x437c1b,_0x226570!==void 0x0&&(this[_0x410134(0x214)][_0x410134(0x1ef)][_0x410134(0x22a)]=_0x226570),this;}[_0xa2463b(0x1d4)](){const _0x3fa742=_0xa2463b;return this[_0x3fa742(0x214)][_0x3fa742(0x1ef)]={'fillType':_0x4cb821[_0x3fa742(0x228)]},this;}[_0xa2463b(0x20b)](_0x309ea6){const _0x49bd47=_0xa2463b;return this[_0x49bd47(0x214)]['stroke']||(this[_0x49bd47(0x214)][_0x49bd47(0x1c4)]={}),this[_0x49bd47(0x214)][_0x49bd47(0x1c4)]['color']=_0x309ea6,this;}[_0xa2463b(0x1cd)](_0x5090ab){const _0x4bad6b=_0xa2463b;return this[_0x4bad6b(0x214)]['stroke']||(this[_0x4bad6b(0x214)]['stroke']={}),this['shapeData']['stroke'][_0x4bad6b(0x1fb)]=_0x5090ab,this;}[_0xa2463b(0x1e7)](_0x2bc3e2){const _0x1c3833=_0xa2463b;return this[_0x1c3833(0x214)][_0x1c3833(0x1c4)]||(this[_0x1c3833(0x214)][_0x1c3833(0x1c4)]={}),this[_0x1c3833(0x214)][_0x1c3833(0x1c4)]['dashType']=_0x2bc3e2,this;}[_0xa2463b(0x203)](_0x290d38){const _0x15a2ea=_0xa2463b;return this[_0x15a2ea(0x214)]['stroke']||(this['shapeData'][_0x15a2ea(0x1c4)]={}),this[_0x15a2ea(0x214)][_0x15a2ea(0x1c4)][_0x15a2ea(0x1fe)]=_0x290d38,this;}[_0xa2463b(0x1ac)](_0x3c21e3){const _0x3f4d2c=_0xa2463b;return this[_0x3f4d2c(0x214)][_0x3f4d2c(0x1c4)]||(this[_0x3f4d2c(0x214)][_0x3f4d2c(0x1c4)]={}),this[_0x3f4d2c(0x214)][_0x3f4d2c(0x1c4)][_0x3f4d2c(0x1fc)]=_0x3c21e3,this;}[_0xa2463b(0x1ae)](_0x1d1c4b){const _0x5105af=_0xa2463b;return this[_0x5105af(0x214)][_0x5105af(0x1c4)]||(this[_0x5105af(0x214)][_0x5105af(0x1c4)]={}),this[_0x5105af(0x214)][_0x5105af(0x1c4)][_0x5105af(0x1d8)]=_0x1d1c4b,this;}[_0xa2463b(0x1b7)](_0x207f3c){const _0x3e2422=_0xa2463b;return this[_0x3e2422(0x214)][_0x3e2422(0x1c4)]||(this['shapeData'][_0x3e2422(0x1c4)]={}),this[_0x3e2422(0x214)][_0x3e2422(0x1c4)][_0x3e2422(0x1aa)]=_0x207f3c,this;}[_0xa2463b(0x1e8)](_0x4f7fd7){return this['width']=_0x4f7fd7,this;}['setHeight'](_0x404347){return this['height']=_0x404347,this;}['isLineShape'](){const _0x2ea97a=_0xa2463b;let _0x5bef52=this[_0x2ea97a(0x1c5)]['get'](_0x4bc659)[_0x2ea97a(0x1b1)](this[_0x2ea97a(0x1ce)],this['subUnitId'],this['drawId']);return _0x5bef52?_0x3448ac(_0x5bef52[_0x2ea97a(0x1d9)]()):this['shapeType']?_0x3448ac(this['shapeType']):!0x1;}['getConnectionSites'](){const _0x49906e=_0xa2463b;let _0x2a174b=this['_injector'][_0x49906e(0x20c)](_0x4bc659)['getShapeModel'](this[_0x49906e(0x1ce)],this[_0x49906e(0x1c6)],this[_0x49906e(0x220)]);if(!_0x2a174b)return[];let _0x31bd63=this['_injector'][_0x49906e(0x20c)](_0x1e4021)[_0x49906e(0x1ba)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0x31bd63!=null&&_0x31bd63[_0x49906e(0x204)]))return[];let {width:_0x750c25=0x0,height:_0x2c941e=0x0}=_0x31bd63[_0x49906e(0x204)];return _0x2a174b[_0x49906e(0x1be)]({'width':_0x750c25,'height':_0x2c941e}),_0x2a174b[_0x49906e(0x1e0)]();}[_0xa2463b(0x1f8)](){const _0x2caec2=_0xa2463b;let _0x3ecf80=this['_injector'][_0x2caec2(0x20c)](_0x4bc659)[_0x2caec2(0x1b1)](this[_0x2caec2(0x1ce)],this['subUnitId'],this[_0x2caec2(0x220)]);if(!_0x3ecf80)return[];let _0x3fd58f=this['_injector'][_0x2caec2(0x20c)](_0x1e4021)[_0x2caec2(0x1ba)]({'unitId':this['unitId'],'subUnitId':this[_0x2caec2(0x1c6)],'drawingId':this[_0x2caec2(0x220)]});if(!(_0x3fd58f!=null&&_0x3fd58f[_0x2caec2(0x204)]))return[];let {width:_0x378d92=0x0,height:_0x1d739c=0x0}=_0x3fd58f['transform'];return _0x3ecf80[_0x2caec2(0x1be)]({'width':_0x378d92,'height':_0x1d739c}),_0x3ecf80[_0x2caec2(0x1e5)]();}[_0xa2463b(0x1ec)](){const _0x8bb9f1=_0xa2463b;let _0x1e6e5a=this['_injector'][_0x8bb9f1(0x20c)](_0x4bc659)[_0x8bb9f1(0x1b1)](this[_0x8bb9f1(0x1ce)],this[_0x8bb9f1(0x1c6)],this[_0x8bb9f1(0x220)]);if(!_0x1e6e5a||!_0x3448ac(_0x1e6e5a[_0x8bb9f1(0x1d9)]()))return[];let _0x246c41=this[_0x8bb9f1(0x1c5)][_0x8bb9f1(0x20c)](_0x1e4021)[_0x8bb9f1(0x1ba)]({'unitId':this[_0x8bb9f1(0x1ce)],'subUnitId':this[_0x8bb9f1(0x1c6)],'drawingId':this['drawId']});if(!(_0x246c41!=null&&_0x246c41[_0x8bb9f1(0x204)]))return[];let {width:_0x557cfa=0x0,height:_0x1ba1e7=0x0}=_0x246c41[_0x8bb9f1(0x204)];return _0x1e6e5a['updateContext']({'width':_0x557cfa,'height':_0x1ba1e7}),_0x1e6e5a['getConnectorLinePoints']();}[_0xa2463b(0x1af)](){const _0x3668a8=_0xa2463b;var _0xba8428;let _0xfa4932=this[_0x3668a8(0x1c5)][_0x3668a8(0x20c)](_0x4bc659)['getShapeModel'](this['unitId'],this[_0x3668a8(0x1c6)],this['drawId']);return _0xfa4932?(_0xba8428=_0xfa4932[_0x3668a8(0x1af)]())==null?null:_0xba8428:null;}[_0xa2463b(0x206)](){const _0x15406=_0xa2463b;var _0x59edd4;let _0x4da98e=this['_injector'][_0x15406(0x20c)](_0x4bc659)[_0x15406(0x1b1)](this[_0x15406(0x1ce)],this['subUnitId'],this[_0x15406(0x220)]);return _0x4da98e?(_0x59edd4=_0x4da98e[_0x15406(0x206)]())==null?null:_0x59edd4:null;}[_0xa2463b(0x1ca)](){const _0x53999e=_0xa2463b;var _0x29a19b,_0x4ecc30;if(!this[_0x53999e(0x1d0)])throw Error(_0x53999e(0x223));if(this['x']===0x0||this['y']===0x0){let _0x26e9cc=this[_0x53999e(0x1c5)][_0x53999e(0x20c)](_0x3201a7)[_0x53999e(0x1b6)](this[_0x53999e(0x1ce)],this[_0x53999e(0x1c6)]);if(!_0x26e9cc)throw Error(_0x53999e(0x229)+this['unitId']+_0x53999e(0x1c0)+this[_0x53999e(0x1c6)]+'\x20not\x20found');let {transform:_0x2f89d8}=_0x5a45ad(this[_0x53999e(0x1ce)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x26e9cc);this['x']=this['x']>0x0?this['x']:_0x2f89d8[_0x53999e(0x216)],this['y']=this['y']>0x0?this['y']:_0x2f89d8[_0x53999e(0x1f2)];}return this[_0x53999e(0x1fb)]=(_0x29a19b=this[_0x53999e(0x1fb)])==null?_0x10b147:_0x29a19b,this[_0x53999e(0x225)]=(_0x4ecc30=this[_0x53999e(0x225)])==null?_0x79874:_0x4ecc30,{'unitId':this['unitId'],'subUnitId':this[_0x53999e(0x1c6)],'shapeId':this['drawId'],'shapeType':this[_0x53999e(0x1d0)],'shapeData':Object['keys'](this[_0x53999e(0x214)])[_0x53999e(0x1cf)]>0x0?this[_0x53999e(0x214)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x53999e(0x1fb)],'height':this[_0x53999e(0x225)]};}[_0xa2463b(0x218)](){return this['drawId'];}[_0xa2463b(0x1d9)](){const _0x4452b0=_0xa2463b;return this[_0x4452b0(0x1d0)];}[_0xa2463b(0x222)](){const _0x3dd329=_0xa2463b;return this[_0x3dd329(0x214)];}[_0xa2463b(0x1d2)](){return{'x':this['x'],'y':this['y']};}[_0xa2463b(0x1f9)](){const _0x9e9ef4=_0xa2463b;return{'width':this[_0x9e9ef4(0x1fb)],'height':this[_0x9e9ef4(0x225)]};}},F=class extends P{constructor(_0x5b30b7,_0x4d1b5b,_0x5b51a1,_0x5af6b4){super(_0x5b30b7,_0x4d1b5b,_0x5b51a1,_0x5af6b4),N(this,'shapeData',{});}[_0xa2463b(0x1b0)](_0x35379f){const _0x131963=_0xa2463b;if(!_0x3448ac(_0x35379f))throw Error(_0x131963(0x1cc)+_0x35379f+_0x131963(0x1b3));return super[_0x131963(0x1b0)](_0x35379f),this;}[_0xa2463b(0x21e)](_0x508226){const _0x982720=_0xa2463b;var _0x13c83f,_0x13f1f0;return(_0x13c83f=this['shapeData'])!=null&&_0x13c83f['ln']||(this[_0x982720(0x214)]['ln']={}),!((_0x13f1f0=this['shapeData'])==null||(_0x13f1f0=_0x13f1f0['ln'])==null)&&_0x13f1f0[_0x982720(0x1eb)]||(this[_0x982720(0x214)]['ln']['startArrow']={}),this['shapeData']['ln'][_0x982720(0x1eb)][_0x982720(0x1e2)]=_0x508226,this;}['setEndArrowType'](_0x524256){const _0x278e0f=_0xa2463b;var _0x2961d2,_0x4bfc92;return(_0x2961d2=this['shapeData'])!=null&&_0x2961d2['ln']||(this[_0x278e0f(0x214)]['ln']={}),!((_0x4bfc92=this[_0x278e0f(0x214)])==null||(_0x4bfc92=_0x4bfc92['ln'])==null)&&_0x4bfc92['endArrow']||(this[_0x278e0f(0x214)]['ln'][_0x278e0f(0x227)]={}),this[_0x278e0f(0x214)]['ln'][_0x278e0f(0x227)][_0x278e0f(0x1e2)]=_0x524256,this;}[_0xa2463b(0x1bc)](_0x3342b0){const _0x25670f=_0xa2463b;var _0x252046,_0xe482cf;return(_0x252046=this['shapeData'])!=null&&_0x252046['ln']||(this[_0x25670f(0x214)]['ln']={}),!((_0xe482cf=this['shapeData'])==null||(_0xe482cf=_0xe482cf['ln'])==null)&&_0xe482cf[_0x25670f(0x1eb)]||(this['shapeData']['ln']['startArrow']={}),this['shapeData']['ln'][_0x25670f(0x1eb)]['size']=_0x3342b0,this;}[_0xa2463b(0x1d1)](_0xb8202c){const _0x5d1e06=_0xa2463b;var _0x414647,_0x4c7681;return(_0x414647=this[_0x5d1e06(0x214)])!=null&&_0x414647['ln']||(this['shapeData']['ln']={}),!((_0x4c7681=this['shapeData'])==null||(_0x4c7681=_0x4c7681['ln'])==null)&&_0x4c7681['endArrow']||(this[_0x5d1e06(0x214)]['ln'][_0x5d1e06(0x227)]={}),this[_0x5d1e06(0x214)]['ln'][_0x5d1e06(0x227)][_0x5d1e06(0x217)]=_0xb8202c,this;}[_0xa2463b(0x1ca)](){const _0x2a0901=_0xa2463b;return super[_0x2a0901(0x1ca)]();}['getEndConnectInfo'](){const _0xa83966=_0xa2463b;var _0x2c4427;return((_0x2c4427=this[_0xa83966(0x214)])==null||(_0x2c4427=_0x2c4427[_0xa83966(0x1e3)])==null?void 0x0:_0x2c4427['to'])||null;}[_0xa2463b(0x1af)](){const _0x519811=_0xa2463b;var _0x5f2f42;return((_0x5f2f42=this['shapeData'])==null||(_0x5f2f42=_0x5f2f42[_0x519811(0x1e3)])==null?void 0x0:_0x5f2f42[_0x519811(0x1b2)])||null;}};function I(_0x2d01f3,_0x52740c,_0x250eaa,_0x3f9d3a,_0x2dbe8e,_0x561756){const _0x34df6a=_0xa2463b;let _0x286043=_0x2dbe8e[_0x34df6a(0x1b1)](_0x2d01f3,_0x52740c,_0x250eaa);if(!_0x286043)return null;let _0x345e3c=_0x561756[_0x34df6a(0x1ba)]({'unitId':_0x2d01f3,'subUnitId':_0x52740c,'drawingId':_0x250eaa});if(!(_0x345e3c!=null&&_0x345e3c[_0x34df6a(0x204)]))return null;let {left:_0x1da7d9=0x0,top:_0x187506=0x0,width:_0x387c2e=0x0,height:_0x26a20d=0x0,flipX:_0x336d6d=!0x1,flipY:_0x11f618=!0x1,angle:_0x511d30}=_0x345e3c[_0x34df6a(0x204)];_0x286043[_0x34df6a(0x1be)]({'width':_0x387c2e,'height':_0x26a20d});let _0x37ae3a=_0x286043[_0x34df6a(0x1e0)]()['find'](_0x3fcb1b=>_0x3fcb1b[_0x34df6a(0x1cb)]===_0x3f9d3a);if(!_0x37ae3a)return null;let _0x524b28=_0x336d6d?_0x387c2e-_0x37ae3a['x']:_0x37ae3a['x'],_0x5b7180=_0x11f618?_0x26a20d-_0x37ae3a['y']:_0x37ae3a['y'];if(_0x511d30&&_0x511d30!==0x0){let _0x54b87d=_0x511d30*Math['PI']/0xb4,_0xb31f94=Math[_0x34df6a(0x1ff)](_0x54b87d),_0x442adb=Math[_0x34df6a(0x211)](_0x54b87d),_0x35469d=_0x387c2e/0x2,_0x37dadb=_0x26a20d/0x2,_0x915062=_0x524b28-_0x35469d,_0x51527b=_0x5b7180-_0x37dadb;_0x524b28=_0x35469d+_0x915062*_0xb31f94-_0x51527b*_0x442adb,_0x5b7180=_0x37dadb+_0x915062*_0x442adb+_0x51527b*_0xb31f94;}_0x524b28+=_0x1da7d9,_0x5b7180+=_0x187506;let _0xe7bff8=_0x37ae3a['ang']/0xea60;_0x336d6d&&(_0xe7bff8=0xb4-_0xe7bff8),_0x11f618&&(_0xe7bff8=-_0xe7bff8),_0xe7bff8+=_0x511d30||0x0,_0xe7bff8=(_0xe7bff8%0x168+0x168)%0x168;let _0x1380b9=_0x19bd62({'left':_0x1da7d9,'top':_0x187506,'width':_0x387c2e,'height':_0x26a20d},_0x511d30||0x0);return{'point':{'x':_0x524b28,'y':_0x5b7180},'angle':_0xe7bff8,'bounds':_0x1380b9};}function L(_0x5d90e4,_0x53d021){const _0x47b534=_0xa2463b;let _0x200a42=_0x53d021['x']-_0x5d90e4['x'],_0x403281=_0x53d021['y']-_0x5d90e4['y'];return Math[_0x47b534(0x1c8)](_0x200a42)>=Math[_0x47b534(0x1c8)](_0x403281)?_0x200a42>=0x0?0xb4:0x0:_0x403281>=0x0?0x10e:0x5a;}function R(_0x29010b,_0x48eefe,_0x509f2c,_0x2b4de5,_0x572044,_0x24d5cf,_0x37c3a5){const _0x4a9ca1=_0xa2463b;let _0x5810dc=_0x24d5cf[_0x4a9ca1(0x1b1)](_0x29010b,_0x48eefe,_0x509f2c);if(!_0x5810dc)return null;let _0x41b717=_0x37c3a5[_0x4a9ca1(0x1ba)]({'unitId':_0x29010b,'subUnitId':_0x48eefe,'drawingId':_0x509f2c});if(!(_0x41b717!=null&&_0x41b717['transform']))return null;let {left:_0x1a05cb=0x0,top:_0x46f4fb=0x0,width:_0x24be28=0x0,height:_0x3dfde1=0x0,flipX:_0x2c3e00=!0x1,flipY:_0x3588ad=!0x1}=_0x41b717[_0x4a9ca1(0x204)];_0x5810dc[_0x4a9ca1(0x1be)]({'width':_0x24be28,'height':_0x3dfde1});let _0x5ca53e=_0x5810dc[_0x4a9ca1(0x1ec)]();if(_0x5ca53e[_0x4a9ca1(0x1cf)]<0x2)return null;let _0x43a182=_0x2b4de5?_0x5ca53e[0x0]:_0x5ca53e[_0x5ca53e[_0x4a9ca1(0x1cf)]-0x1],_0x4c13f9=new _0x26d8d2({'left':_0x1a05cb,'top':_0x46f4fb,'width':_0x24be28,'height':_0x3dfde1,'flipX':_0x2c3e00,'flipY':_0x3588ad})['localToWorld'](_0x43a182);return{'point':_0x4c13f9,'angle':L(_0x572044[_0x4a9ca1(0x1ab)],_0x4c13f9),'bounds':{'left':_0x4c13f9['x'],'top':_0x4c13f9['y'],'width':0x0,'height':0x0}};}var z=class extends _0xf5b551{async[_0xa2463b(0x1f4)](_0x5922cf){const _0x316e6a=_0xa2463b;let {unitId:_0x21b6f5,subUnitId:_0x4be73f,shapeId:_0x37c5bb,shapeType:_0xe4cd0f,shapeData:_0x2fd0d7,x:_0x99649f,y:_0x14f171,width:_0x51d41e,height:_0x2291b8}=_0x5922cf;return this[_0x316e6a(0x212)]['executeCommand'](_0x39e09c['id'],{'unitId':_0x21b6f5,'subUnitId':_0x4be73f,'shapeId':_0x37c5bb,'shapeType':_0xe4cd0f,'shapeData':_0x2fd0d7,'position':{'x':_0x99649f,'y':_0x14f171},'width':_0x51d41e,'height':_0x2291b8});}async['updateShape'](_0x16d26e){const _0x269d36=_0xa2463b;let {unitId:_0x24a7db,subUnitId:_0x4c03c8,shapeId:_0xe1b645,shapeType:_0x489b32,shapeData:_0x3e4c1f,x:_0x3755d0,y:_0x2439e3,width:_0x31a55f,height:_0x115c4f}=_0x16d26e;return this[_0x269d36(0x212)][_0x269d36(0x20a)](_0x37525d['id'],{'unitId':_0x24a7db,'subUnitId':_0x4c03c8,'shapeId':_0xe1b645,'shapeType':_0x489b32,'shapeData':_0x3e4c1f,'position':{'x':_0x3755d0,'y':_0x2439e3},'width':_0x31a55f,'height':_0x115c4f});}[_0xa2463b(0x21c)](_0x295651){const _0x308783=_0xa2463b;let _0x5d713e=this[_0x308783(0x1bb)]()[_0x308783(0x226)](),_0x374ad3=this['getSheetId']();if(_0x295651){let _0x427bc3=new P(_0x5d713e,_0x374ad3,_0x295651['drawId'],this[_0x308783(0x1c5)]);return this[_0x308783(0x20e)](_0x427bc3,_0x5d713e,_0x374ad3,_0x295651[_0x308783(0x220)]),_0x427bc3;}return new P(_0x5d713e,_0x374ad3,_0x287657(),this[_0x308783(0x1c5)]);}[_0xa2463b(0x1fa)](_0x5c60f8){const _0x14f777=_0xa2463b;let _0x20c30c=this[_0x14f777(0x1bb)]()[_0x14f777(0x226)](),_0x27ea29=this[_0x14f777(0x1e9)]();if(_0x5c60f8){let _0x17de59=new F(_0x20c30c,_0x27ea29,_0x5c60f8[_0x14f777(0x220)],this[_0x14f777(0x1c5)]);return this['_preloadShapeProperties'](_0x17de59,_0x20c30c,_0x27ea29,_0x5c60f8[_0x14f777(0x220)]),_0x17de59;}return new F(_0x20c30c,_0x27ea29,_0x287657(),this[_0x14f777(0x1c5)]);}[_0xa2463b(0x201)](){const _0x193a19=_0xa2463b;let _0x25afdb=this['_injector'][_0x193a19(0x20c)](_0x51eaf6),_0x1bf41e=this[_0x193a19(0x1bb)]()[_0x193a19(0x226)](),_0x7eef4f=this[_0x193a19(0x1e9)](),_0x32099d=_0x25afdb[_0x193a19(0x213)](_0x1bf41e,_0x7eef4f);if(!_0x32099d)return[];let _0x63ac48=[];for(let [_0x57920c,_0x1a8e79]of Object[_0x193a19(0x1e6)](_0x32099d))if(_0x1a8e79&&_0x1a8e79[_0x193a19(0x219)]===_0x4c500d[_0x193a19(0x21a)]){let _0x214a25=new P(_0x1bf41e,_0x7eef4f,_0x57920c,this[_0x193a19(0x1c5)]);this['_preloadShapeProperties'](_0x214a25,_0x1bf41e,_0x7eef4f,_0x57920c),_0x63ac48['push'](_0x214a25);}return _0x63ac48;}[_0xa2463b(0x1ea)](_0x30baf4){const _0x53f4c7=_0xa2463b;let {unitId:_0x16c435,subUnitId:_0x32ccf7,drawId:_0x549c62}=_0x30baf4;return this[_0x53f4c7(0x212)]['executeCommand'](_0x211153['id'],{'unitId':_0x16c435,'drawings':[{'unitId':_0x16c435,'subUnitId':_0x32ccf7,'drawingId':_0x549c62,'drawingType':_0x4c500d[_0x53f4c7(0x21a)]}]});}async[_0xa2463b(0x21d)](_0x138f71){const _0x4d1802=_0xa2463b;let {connector:_0x57909b,startTarget:_0x515c72,endTarget:_0x4627e4}=_0x138f71;if(!_0x515c72&&!_0x4627e4)return!0x1;let _0x4bf8c8=this[_0x4d1802(0x1bb)]()[_0x4d1802(0x226)](),_0x42c7fe=this[_0x4d1802(0x1e9)](),_0x5055d6=this[_0x4d1802(0x1c5)][_0x4d1802(0x20c)](_0x4bc659),_0x36295b=this[_0x4d1802(0x1c5)]['get'](_0x1e4021),_0xb827f3=_0x5055d6[_0x4d1802(0x1b1)](_0x4bf8c8,_0x42c7fe,_0x57909b['drawId']);if(!_0xb827f3)return!0x1;let _0x10190a=_0xb827f3['getShapeType'](),_0x34c913=_0xb827f3[_0x4d1802(0x1f3)](),_0x469336={};for(let _0x39b80e of _0xb827f3[_0x4d1802(0x1bf)]()){let _0x953a94=_0xb827f3[_0x4d1802(0x221)](_0x39b80e);_0x953a94!==void 0x0&&(_0x469336[_0x39b80e]=_0x953a94);}let {startInfo:_0xab6eb2,endInfo:_0x151443}=this[_0x4d1802(0x20d)](_0x4bf8c8,_0x42c7fe,_0x57909b,_0xb827f3,_0x515c72,_0x4627e4,_0x5055d6,_0x36295b,_0x34c913);if(!_0xab6eb2||!_0x151443)return!0x1;let _0x4076f6=_0x5bb031(_0x2bc896(_0xab6eb2,_0x151443,_0x10190a),_0x10190a),_0x160db0={};return _0x515c72?_0x160db0['from']={'shapeId':_0x515c72[_0x4d1802(0x208)][_0x4d1802(0x220)],'cxnIndex':_0x515c72[_0x4d1802(0x1f6)]}:_0x34c913!=null&&_0x34c913[_0x4d1802(0x1b2)]&&(_0x160db0[_0x4d1802(0x1b2)]=_0x34c913[_0x4d1802(0x1b2)]),_0x4627e4?_0x160db0['to']={'shapeId':_0x4627e4[_0x4d1802(0x208)][_0x4d1802(0x220)],'cxnIndex':_0x4627e4[_0x4d1802(0x1f6)]}:_0x34c913!=null&&_0x34c913['to']&&(_0x160db0['to']=_0x34c913['to']),this[_0x4d1802(0x212)][_0x4d1802(0x20a)](_0x42361b['id'],{'unitId':_0x4bf8c8,'subUnitId':_0x42c7fe,'connectorShapeId':_0x57909b[_0x4d1802(0x220)],'width':_0x4076f6[_0x4d1802(0x1df)][_0x4d1802(0x1fb)],'height':_0x4076f6[_0x4d1802(0x1df)][_0x4d1802(0x225)],'left':_0x4076f6[_0x4d1802(0x1df)]['left'],'top':_0x4076f6['worldRect'][_0x4d1802(0x1f2)],'flipX':_0x4076f6[_0x4d1802(0x1df)]['flipX']||!0x1,'flipY':_0x4076f6[_0x4d1802(0x1df)]['flipY']||!0x1,'oldAdjustValues':_0x469336,'newAdjustValues':_0x4076f6[_0x4d1802(0x200)],'newLineType':_0x4076f6['lineType'],'oldLineType':_0x10190a,'rotation':_0x4076f6['rotation'],'oldRelation':_0x34c913,'newRelation':_0x160db0});}['_preloadShapeProperties'](_0x4ae9d8,_0x9eafa6,_0x3a9105,_0x5dafc6){const _0xdcc553=_0xa2463b;let _0x505544=this['_injector'][_0xdcc553(0x20c)](_0x1e4021)['getDrawingByParam']({'unitId':_0x9eafa6,'subUnitId':_0x3a9105,'drawingId':_0x5dafc6});if(_0x505544!=null&&_0x505544['transform']){var _0x2471b8,_0x440a63,_0x130a62,_0x2d7f5b;_0x4ae9d8['x']=(_0x2471b8=_0x505544[_0xdcc553(0x204)][_0xdcc553(0x216)])==null?0x0:_0x2471b8,_0x4ae9d8['y']=(_0x440a63=_0x505544['transform'][_0xdcc553(0x1f2)])==null?0x0:_0x440a63,_0x4ae9d8['width']=(_0x130a62=_0x505544[_0xdcc553(0x204)][_0xdcc553(0x1fb)])==null?_0x4ae9d8[_0xdcc553(0x1fb)]:_0x130a62,_0x4ae9d8[_0xdcc553(0x225)]=(_0x2d7f5b=_0x505544[_0xdcc553(0x204)][_0xdcc553(0x225)])==null?_0x4ae9d8[_0xdcc553(0x225)]:_0x2d7f5b;}let _0x35339c=this[_0xdcc553(0x1c5)][_0xdcc553(0x20c)](_0x4bc659)[_0xdcc553(0x1b1)](_0x9eafa6,_0x3a9105,_0x5dafc6);if(_0x35339c){_0x4ae9d8['shapeType']=_0x35339c['getShapeType']();let _0x2c2fef=_0x35339c[_0xdcc553(0x222)]();_0x2c2fef&&(_0x4ae9d8['shapeData']=JSON[_0xdcc553(0x209)](JSON['stringify'](_0x2c2fef)));}}[_0xa2463b(0x20d)](_0x218f08,_0x39d2c3,_0x56ae1a,_0x48ad94,_0x377d30,_0x37d78b,_0x2efc68,_0x2841bb,_0x447fe1){const _0x2d9115=_0xa2463b;let _0x2f9c44=null,_0x2b18c4=null;return _0x377d30&&(_0x2f9c44=I(_0x218f08,_0x39d2c3,_0x377d30[_0x2d9115(0x208)][_0x2d9115(0x220)],_0x377d30[_0x2d9115(0x1f6)],_0x2efc68,_0x2841bb)),_0x37d78b&&(_0x2b18c4=I(_0x218f08,_0x39d2c3,_0x37d78b[_0x2d9115(0x208)][_0x2d9115(0x220)],_0x37d78b[_0x2d9115(0x1f6)],_0x2efc68,_0x2841bb)),_0x2f9c44||(_0x2f9c44=this[_0x2d9115(0x1b8)](_0x218f08,_0x39d2c3,_0x56ae1a['drawId'],!0x0,_0x2b18c4,_0x447fe1==null?void 0x0:_0x447fe1[_0x2d9115(0x1b2)],_0x2efc68,_0x2841bb)),_0x2b18c4||(_0x2b18c4=this['_resolveExistingOrFreeEndpoint'](_0x218f08,_0x39d2c3,_0x56ae1a[_0x2d9115(0x220)],!0x1,_0x2f9c44,_0x447fe1==null?void 0x0:_0x447fe1['to'],_0x2efc68,_0x2841bb)),{'startInfo':_0x2f9c44,'endInfo':_0x2b18c4};}[_0xa2463b(0x1b8)](_0x2bd32f,_0x29de6e,_0x511f99,_0x366e91,_0x33e529,_0x2e36e8,_0x2ec805,_0x1ac75b){const _0x41c5e7=_0xa2463b;if(_0x2e36e8){let _0xf71c25=I(_0x2bd32f,_0x29de6e,_0x2e36e8[_0x41c5e7(0x20f)],_0x2e36e8[_0x41c5e7(0x1c7)],_0x2ec805,_0x1ac75b);if(_0xf71c25)return _0xf71c25;}return _0x33e529?R(_0x2bd32f,_0x29de6e,_0x511f99,_0x366e91,_0x33e529,_0x2ec805,_0x1ac75b):null;}};_0xf5b551[_0xa2463b(0x1f7)](z);export{F as FConnectorShape,P as FShape};