@univerjs-pro/sheets-shape 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +3 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
- /package/lib/types/commands/command/{add-shape-command.d.ts → add-shape.command.d.ts} +0 -0
- /package/lib/types/commands/command/{set-shape-drawing-data-command.d.ts → set-shape-drawing-data.command.d.ts} +0 -0
- /package/lib/types/commands/command/{set-shape-flip-command.d.ts → set-shape-flip.command.d.ts} +0 -0
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x245d3a=_0x1b79;(function(_0x13fb2b,_0xa99a92){const _0x4947ec=_0x1b79,_0x1da5fa=_0x13fb2b();while(!![]){try{const _0x14522e=parseInt(_0x4947ec(0x7b))/0x1+parseInt(_0x4947ec(0xa6))/0x2+-parseInt(_0x4947ec(0xb2))/0x3+-parseInt(_0x4947ec(0x97))/0x4+-parseInt(_0x4947ec(0xd8))/0x5+parseInt(_0x4947ec(0x8a))/0x6*(parseInt(_0x4947ec(0xa5))/0x7)+parseInt(_0x4947ec(0xca))/0x8*(parseInt(_0x4947ec(0x85))/0x9);if(_0x14522e===_0xa99a92)break;else _0x1da5fa['push'](_0x1da5fa['shift']());}catch(_0x268c45){_0x1da5fa['push'](_0x1da5fa['shift']());}}}(_0x2100,0xab119));import{ConnectorCoordinateTransform as _0x34439f,ShapeArrowSizeEnum as _0x54e0e1,ShapeArrowTypeEnum as _0x335d65,ShapeFillEnum as _0x3e14b8,ShapeGradientTypeEnum as _0x245464,ShapeLineCapEnum as _0xadc783,ShapeLineDashEnum as _0x2e2237,ShapeLineJoinEnum as _0x216ef4,ShapeLineTypeEnum as _0x39a7be,ShapeTypeEnum as _0x91019f,computeConnectorRouteLayout as _0x5129d0,getBasicShapeRotateBound as _0x423cee,isConnectorShape as _0x58493c,routeConnectorLineShape as _0x311777}from'@univerjs-pro/engine-shape';import{FEnum as _0x2fbe40}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x288aed,DEFAULT_SHAPE_WIDTH as _0x5857c2,InsertShapeCommand as _0x48442c,SetShapeDrawingDataCommand as _0xbd1de4,SheetsShapeService as _0x458533,UpdateConnectorRelationCommand as _0x10f71e}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x215d4d,generateRandomId as _0x58c69f}from'@univerjs/core';import{IDrawingManagerService as _0x155517}from'@univerjs/drawing';import{SheetSkeletonService as _0x55eb89,convertPositionCellToSheetOverGrid as _0x15097a}from'@univerjs/sheets';import{ISheetDrawingService as _0x428383,RemoveSheetDrawingCommand as _0x55e1a4}from'@univerjs/sheets-drawing';import{FWorksheet as _0x4ae227}from'@univerjs/sheets/facade';function _0x2100(){const _0x5b3436=['adjustValues','subUnitId','worldRect','sin','lineStrokeType','NoFill','ShapeFillEnum','connectShapes','stroke','getAdjustNames','size','relation','setStartArrowSize','gradientType','shapeData','color','call','abs','getConnectorLinePoints','setHeight','40fNpaeO','updateContext','DRAWING_SHAPE','lineJoinType','ShapeGradientTypeEnum','setShapeSolidFill','setStartArrowType','default','getDrawingPoints','getPosition','getSize','setShapeType','setEndArrowType','length','4214995AHXNPg','parse','shapeId','drawingType','get','top','keys','getShapes','setShapeGradientFill','setWidth','getConnectionSiteList','getShapeType','setStrokeLineJoinType','executeCommand','height','symbol','ang','getUnitId','function','entries','extend','flipY','ensureSkeleton','getAdjustPoints','startArrow','updateShape','_commandService','setStrokeLineCapType','Skeleton\x20for\x20unitId\x20','_preloadShapeProperties','flipX','unitId','getDrawingByParam','_resolveExistingOrFreeEndpoint','getDrawingData','localToWorld','112359HNUTcW','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','iterator','getEndConnectInfo','setEndArrowSize','getShapeRelation','index','\x20not\x20found','rotation','5100453LdBTvk','build','defineProperty','getShapeData','cxnIndex','139674zanUHq','from','left','getShapeModel','object','getStartConnectInfo','opacity','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','width','ShapeLineDashEnum','constructor','find','ShapeTypeEnum','2977220CiMNMz','_injector','isLineShape','stringify','ShapeArrowSizeEnum','newShape','_resolveEndpoints','fillType','connectionSiteIndex','string','getShapeId','drawId','getWorkbook','GradientFill','91xRTOJw','297650OgmbIm','SolidFill','transform','getSheetId','\x20and\x20subUnitId\x20','getAdjustValueByName','ShapeLineCapEnum','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','removeShape','shapeType','endArrow','shape','3328185vzRnmg','setStrokeLineType','fill','prototype'];_0x2100=function(){return _0x5b3436;};return _0x2100();}function _0x1b79(_0x3bb631,_0x3aa0e4){_0x3bb631=_0x3bb631-0x69;const _0x21003d=_0x2100();let _0x1b790b=_0x21003d[_0x3bb631];return _0x1b790b;}var k=class extends _0x2fbe40{get[_0x245d3a(0x96)](){return _0x91019f;}get[_0x245d3a(0xbc)](){return _0x3e14b8;}get[_0x245d3a(0xce)](){return _0x245464;}get['ShapeLineTypeEnum'](){return _0x39a7be;}get[_0x245d3a(0x93)](){return _0x2e2237;}get[_0x245d3a(0xac)](){return _0xadc783;}get['ShapeLineJoinEnum'](){return _0x216ef4;}get['ShapeArrowTypeEnum'](){return _0x335d65;}get[_0x245d3a(0x9b)](){return _0x54e0e1;}};_0x2fbe40[_0x245d3a(0x6b)](k);function A(_0x37bfc3){'@babel/helpers - typeof';const _0x4cdfb4=_0x245d3a;return A=typeof Symbol==_0x4cdfb4(0x69)&&typeof Symbol[_0x4cdfb4(0x7e)]==_0x4cdfb4(0xe7)?function(_0x18d3af){return typeof _0x18d3af;}:function(_0x695a3){const _0x2f19ac=_0x4cdfb4;return _0x695a3&&typeof Symbol==_0x2f19ac(0x69)&&_0x695a3[_0x2f19ac(0x94)]===Symbol&&_0x695a3!==Symbol[_0x2f19ac(0xb5)]?_0x2f19ac(0xe7):typeof _0x695a3;},A(_0x37bfc3);}function j(_0x2154af,_0x2e7aca){const _0x2b1046=_0x245d3a;if(A(_0x2154af)!=_0x2b1046(0x8e)||!_0x2154af)return _0x2154af;var _0x270bb0=_0x2154af[Symbol['toPrimitive']];if(_0x270bb0!==void 0x0){var _0x184d9a=_0x270bb0[_0x2b1046(0xc6)](_0x2154af,_0x2e7aca||_0x2b1046(0xd1));if(A(_0x184d9a)!='object')return _0x184d9a;throw TypeError(_0x2b1046(0x91));}return(_0x2e7aca==='string'?String:Number)(_0x2154af);}function M(_0x237fdb){const _0x395483=_0x245d3a;var _0x215426=j(_0x237fdb,_0x395483(0xa0));return A(_0x215426)==_0x395483(0xe7)?_0x215426:_0x215426+'';}function N(_0x51da70,_0x3d58ae,_0x3d016e){const _0x18de13=_0x245d3a;return(_0x3d58ae=M(_0x3d58ae))in _0x51da70?Object[_0x18de13(0x87)](_0x51da70,_0x3d58ae,{'value':_0x3d016e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51da70[_0x3d58ae]=_0x3d016e,_0x51da70;}var P=class{constructor(_0x261c9a,_0x5bcfea,_0x1ed22e,_0x50e9a8){const _0x2c19b6=_0x245d3a;N(this,_0x2c19b6(0x76),void 0x0),N(this,_0x2c19b6(0xb7),void 0x0),N(this,'drawId',void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x2c19b6(0x92),_0x5857c2),N(this,'height',_0x288aed),N(this,_0x2c19b6(0xaf),void 0x0),N(this,_0x2c19b6(0xc4),{}),N(this,'_injector',void 0x0),this['unitId']=_0x261c9a,this[_0x2c19b6(0xb7)]=_0x5bcfea,this[_0x2c19b6(0xa2)]=_0x1ed22e||_0x58c69f(),this[_0x2c19b6(0x98)]=_0x50e9a8;}['setPosition'](_0x6da34d,_0x3c339a,_0x2aa247,_0x3f0b01){const _0x311946=_0x245d3a;let _0x27ce42=this[_0x311946(0x98)][_0x311946(0xdc)](_0x55eb89)[_0x311946(0x6d)](this[_0x311946(0x76)],this[_0x311946(0xb7)]);if(!_0x27ce42)throw Error(_0x311946(0x73)+this[_0x311946(0x76)]+_0x311946(0xaa)+this['subUnitId']+_0x311946(0x83));let {transform:_0x4183ad}=_0x15097a(this[_0x311946(0x76)],this[_0x311946(0xb7)],{'row':_0x6da34d,'column':_0x3c339a,'rowOffset':_0x2aa247,'columnOffset':_0x3f0b01},0x1,0x1,_0x27ce42);return this['x']=_0x4183ad[_0x311946(0x8c)],this['y']=_0x4183ad[_0x311946(0xdd)],this;}['setAbsolutePosition'](_0x139ec1,_0x3077e0){return this['x']=_0x139ec1,this['y']=_0x3077e0,this;}['setShapeType'](_0x5db06f){const _0x286723=_0x245d3a;return this[_0x286723(0xaf)]=_0x5db06f,this;}[_0x245d3a(0xcf)](_0x2f84b6,_0x3c5ff5){const _0x18b368=_0x245d3a;return this['shapeData']['fill']||(this[_0x18b368(0xc4)]['fill']={}),this[_0x18b368(0xc4)][_0x18b368(0xb4)][_0x18b368(0x9e)]=_0x3e14b8[_0x18b368(0xa7)],_0x2f84b6!==void 0x0&&(this[_0x18b368(0xc4)][_0x18b368(0xb4)][_0x18b368(0xc5)]=_0x2f84b6),_0x3c5ff5!==void 0x0&&(this[_0x18b368(0xc4)][_0x18b368(0xb4)][_0x18b368(0x90)]=_0x3c5ff5),this;}[_0x245d3a(0xe0)](_0x2455f2,_0x3e7a58,_0x1e17f7){const _0xba02a9=_0x245d3a;if(_0x3e7a58===void 0x0||_0x3e7a58[_0xba02a9(0xd7)]===0x0)throw Error(_0xba02a9(0xad));return this[_0xba02a9(0xc4)][_0xba02a9(0xb4)]||(this[_0xba02a9(0xc4)][_0xba02a9(0xb4)]={}),this['shapeData'][_0xba02a9(0xb4)]['gradientStops']=_0x3e7a58,this['shapeData'][_0xba02a9(0xb4)]['fillType']=_0x3e14b8[_0xba02a9(0xa4)],this[_0xba02a9(0xc4)][_0xba02a9(0xb4)][_0xba02a9(0xc3)]=_0x2455f2,_0x1e17f7!==void 0x0&&(this[_0xba02a9(0xc4)][_0xba02a9(0xb4)]['gradientAngle']=_0x1e17f7),this;}['setNoneFill'](){const _0x5d41df=_0x245d3a;return this[_0x5d41df(0xc4)][_0x5d41df(0xb4)]={'fillType':_0x3e14b8[_0x5d41df(0xbb)]},this;}['setStrokeColor'](_0x341d03){const _0x2f07d5=_0x245d3a;return this['shapeData'][_0x2f07d5(0xbe)]||(this[_0x2f07d5(0xc4)][_0x2f07d5(0xbe)]={}),this[_0x2f07d5(0xc4)][_0x2f07d5(0xbe)][_0x2f07d5(0xc5)]=_0x341d03,this;}['setStrokeWidth'](_0x1bb622){const _0x535509=_0x245d3a;return this['shapeData'][_0x535509(0xbe)]||(this[_0x535509(0xc4)]['stroke']={}),this['shapeData'][_0x535509(0xbe)]['width']=_0x1bb622,this;}['setStrokeLineDashType'](_0x2d3f6d){const _0xb960fa=_0x245d3a;return this[_0xb960fa(0xc4)][_0xb960fa(0xbe)]||(this['shapeData'][_0xb960fa(0xbe)]={}),this[_0xb960fa(0xc4)][_0xb960fa(0xbe)]['dashType']=_0x2d3f6d,this;}[_0x245d3a(0xe4)](_0x534f12){const _0x8ddcdd=_0x245d3a;return this[_0x8ddcdd(0xc4)][_0x8ddcdd(0xbe)]||(this[_0x8ddcdd(0xc4)]['stroke']={}),this[_0x8ddcdd(0xc4)][_0x8ddcdd(0xbe)][_0x8ddcdd(0xcd)]=_0x534f12,this;}[_0x245d3a(0x72)](_0x288e8a){const _0x462a84=_0x245d3a;return this['shapeData'][_0x462a84(0xbe)]||(this[_0x462a84(0xc4)][_0x462a84(0xbe)]={}),this[_0x462a84(0xc4)][_0x462a84(0xbe)]['capType']=_0x288e8a,this;}['setStrokeOpacity'](_0x2b07be){const _0x4ca0ab=_0x245d3a;return this[_0x4ca0ab(0xc4)][_0x4ca0ab(0xbe)]||(this[_0x4ca0ab(0xc4)]['stroke']={}),this['shapeData']['stroke']['opacity']=_0x2b07be,this;}[_0x245d3a(0xb3)](_0x23772a){const _0x2cb4e5=_0x245d3a;return this[_0x2cb4e5(0xc4)][_0x2cb4e5(0xbe)]||(this['shapeData'][_0x2cb4e5(0xbe)]={}),this[_0x2cb4e5(0xc4)][_0x2cb4e5(0xbe)][_0x2cb4e5(0xba)]=_0x23772a,this;}[_0x245d3a(0xe1)](_0x586fe3){const _0x5c35b7=_0x245d3a;return this[_0x5c35b7(0x92)]=_0x586fe3,this;}[_0x245d3a(0xc9)](_0x3ac05f){const _0x489d94=_0x245d3a;return this[_0x489d94(0xe6)]=_0x3ac05f,this;}[_0x245d3a(0x99)](){const _0x5a76de=_0x245d3a;let _0x49f428=this[_0x5a76de(0x98)][_0x5a76de(0xdc)](_0x458533)[_0x5a76de(0x8d)](this[_0x5a76de(0x76)],this[_0x5a76de(0xb7)],this[_0x5a76de(0xa2)]);return _0x49f428?_0x58493c(_0x49f428[_0x5a76de(0xe3)]()):this[_0x5a76de(0xaf)]?_0x58493c(this[_0x5a76de(0xaf)]):!0x1;}['getConnectionSites'](){const _0xf86f4c=_0x245d3a;let _0xda4bfa=this[_0xf86f4c(0x98)]['get'](_0x458533)[_0xf86f4c(0x8d)](this[_0xf86f4c(0x76)],this[_0xf86f4c(0xb7)],this[_0xf86f4c(0xa2)]);if(!_0xda4bfa)return[];let _0x39ca50=this[_0xf86f4c(0x98)][_0xf86f4c(0xdc)](_0x155517)['getDrawingByParam']({'unitId':this[_0xf86f4c(0x76)],'subUnitId':this[_0xf86f4c(0xb7)],'drawingId':this[_0xf86f4c(0xa2)]});if(!(_0x39ca50!=null&&_0x39ca50[_0xf86f4c(0xa8)]))return[];let {width:_0x1e7425=0x0,height:_0x125fd7=0x0}=_0x39ca50['transform'];return _0xda4bfa[_0xf86f4c(0xcb)]({'width':_0x1e7425,'height':_0x125fd7}),_0xda4bfa[_0xf86f4c(0xe2)]();}[_0x245d3a(0x6e)](){const _0x148037=_0x245d3a;let _0x348b2e=this[_0x148037(0x98)][_0x148037(0xdc)](_0x458533)[_0x148037(0x8d)](this[_0x148037(0x76)],this[_0x148037(0xb7)],this[_0x148037(0xa2)]);if(!_0x348b2e)return[];let _0x5cf699=this[_0x148037(0x98)]['get'](_0x155517)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x148037(0xb7)],'drawingId':this[_0x148037(0xa2)]});if(!(_0x5cf699!=null&&_0x5cf699[_0x148037(0xa8)]))return[];let {width:_0x247350=0x0,height:_0x20a795=0x0}=_0x5cf699[_0x148037(0xa8)];return _0x348b2e[_0x148037(0xcb)]({'width':_0x247350,'height':_0x20a795}),_0x348b2e[_0x148037(0xd2)]();}[_0x245d3a(0xc8)](){const _0x12007e=_0x245d3a;let _0x46d169=this[_0x12007e(0x98)][_0x12007e(0xdc)](_0x458533)[_0x12007e(0x8d)](this[_0x12007e(0x76)],this[_0x12007e(0xb7)],this[_0x12007e(0xa2)]);if(!_0x46d169||!_0x58493c(_0x46d169[_0x12007e(0xe3)]()))return[];let _0x290742=this[_0x12007e(0x98)][_0x12007e(0xdc)](_0x155517)[_0x12007e(0x77)]({'unitId':this['unitId'],'subUnitId':this[_0x12007e(0xb7)],'drawingId':this['drawId']});if(!(_0x290742!=null&&_0x290742[_0x12007e(0xa8)]))return[];let {width:_0x2b7002=0x0,height:_0x547e28=0x0}=_0x290742[_0x12007e(0xa8)];return _0x46d169[_0x12007e(0xcb)]({'width':_0x2b7002,'height':_0x547e28}),_0x46d169[_0x12007e(0xc8)]();}[_0x245d3a(0x8f)](){const _0x5da5c0=_0x245d3a;var _0x268f33;let _0x53ef04=this[_0x5da5c0(0x98)][_0x5da5c0(0xdc)](_0x458533)[_0x5da5c0(0x8d)](this[_0x5da5c0(0x76)],this[_0x5da5c0(0xb7)],this[_0x5da5c0(0xa2)]);return _0x53ef04?(_0x268f33=_0x53ef04[_0x5da5c0(0x8f)]())==null?null:_0x268f33:null;}[_0x245d3a(0x7f)](){const _0x28c33f=_0x245d3a;var _0x504826;let _0x5be1c1=this[_0x28c33f(0x98)]['get'](_0x458533)[_0x28c33f(0x8d)](this[_0x28c33f(0x76)],this[_0x28c33f(0xb7)],this[_0x28c33f(0xa2)]);return _0x5be1c1?(_0x504826=_0x5be1c1[_0x28c33f(0x7f)]())==null?null:_0x504826:null;}[_0x245d3a(0x86)](){const _0x301065=_0x245d3a;var _0x378359,_0x19624b;if(!this[_0x301065(0xaf)])throw Error(_0x301065(0x7d));if(this['x']===0x0||this['y']===0x0){let _0x3dda44=this['_injector'][_0x301065(0xdc)](_0x55eb89)[_0x301065(0x6d)](this[_0x301065(0x76)],this[_0x301065(0xb7)]);if(!_0x3dda44)throw Error(_0x301065(0x73)+this['unitId']+_0x301065(0xaa)+this[_0x301065(0xb7)]+_0x301065(0x83));let {transform:_0x3c8e74}=_0x15097a(this[_0x301065(0x76)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x3dda44);this['x']=this['x']>0x0?this['x']:_0x3c8e74['left'],this['y']=this['y']>0x0?this['y']:_0x3c8e74[_0x301065(0xdd)];}return this[_0x301065(0x92)]=(_0x378359=this[_0x301065(0x92)])==null?_0x5857c2:_0x378359,this[_0x301065(0xe6)]=(_0x19624b=this['height'])==null?_0x288aed:_0x19624b,{'unitId':this[_0x301065(0x76)],'subUnitId':this[_0x301065(0xb7)],'shapeId':this[_0x301065(0xa2)],'shapeType':this['shapeType'],'shapeData':Object[_0x301065(0xde)](this[_0x301065(0xc4)])['length']>0x0?this[_0x301065(0xc4)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x301065(0xe6)]};}[_0x245d3a(0xa1)](){const _0xa22e8a=_0x245d3a;return this[_0xa22e8a(0xa2)];}['getShapeType'](){const _0x5b81a4=_0x245d3a;return this[_0x5b81a4(0xaf)];}['getShapeData'](){const _0x18e8dd=_0x245d3a;return this[_0x18e8dd(0xc4)];}[_0x245d3a(0xd3)](){return{'x':this['x'],'y':this['y']};}[_0x245d3a(0xd4)](){const _0x47cb56=_0x245d3a;return{'width':this['width'],'height':this[_0x47cb56(0xe6)]};}},F=class extends P{constructor(_0xc1acf4,_0x37841b,_0x261ef8,_0x20c8d3){const _0x3bf0cc=_0x245d3a;super(_0xc1acf4,_0x37841b,_0x261ef8,_0x20c8d3),N(this,_0x3bf0cc(0xc4),{});}[_0x245d3a(0xd5)](_0x16ba6c){const _0x4a34cb=_0x245d3a;if(!_0x58493c(_0x16ba6c))throw Error(_0x4a34cb(0x7c)+_0x16ba6c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x16ba6c),this;}[_0x245d3a(0xd0)](_0x32cc11){const _0x2d3fd6=_0x245d3a;var _0x258999,_0xf1c21b;return(_0x258999=this['shapeData'])!=null&&_0x258999['ln']||(this[_0x2d3fd6(0xc4)]['ln']={}),!((_0xf1c21b=this[_0x2d3fd6(0xc4)])==null||(_0xf1c21b=_0xf1c21b['ln'])==null)&&_0xf1c21b[_0x2d3fd6(0x6f)]||(this['shapeData']['ln'][_0x2d3fd6(0x6f)]={}),this[_0x2d3fd6(0xc4)]['ln']['startArrow']['type']=_0x32cc11,this;}[_0x245d3a(0xd6)](_0x1c43bb){const _0x1dd3ac=_0x245d3a;var _0x27f28d,_0x161951;return(_0x27f28d=this['shapeData'])!=null&&_0x27f28d['ln']||(this[_0x1dd3ac(0xc4)]['ln']={}),!((_0x161951=this['shapeData'])==null||(_0x161951=_0x161951['ln'])==null)&&_0x161951[_0x1dd3ac(0xb0)]||(this[_0x1dd3ac(0xc4)]['ln'][_0x1dd3ac(0xb0)]={}),this[_0x1dd3ac(0xc4)]['ln'][_0x1dd3ac(0xb0)]['type']=_0x1c43bb,this;}[_0x245d3a(0xc2)](_0x3d9691){const _0x5416b9=_0x245d3a;var _0x4283f7,_0x401127;return(_0x4283f7=this[_0x5416b9(0xc4)])!=null&&_0x4283f7['ln']||(this[_0x5416b9(0xc4)]['ln']={}),!((_0x401127=this[_0x5416b9(0xc4)])==null||(_0x401127=_0x401127['ln'])==null)&&_0x401127['startArrow']||(this[_0x5416b9(0xc4)]['ln'][_0x5416b9(0x6f)]={}),this[_0x5416b9(0xc4)]['ln'][_0x5416b9(0x6f)][_0x5416b9(0xc0)]=_0x3d9691,this;}[_0x245d3a(0x80)](_0x483cf8){const _0x15ced2=_0x245d3a;var _0x444843,_0x1a3979;return(_0x444843=this[_0x15ced2(0xc4)])!=null&&_0x444843['ln']||(this[_0x15ced2(0xc4)]['ln']={}),!((_0x1a3979=this[_0x15ced2(0xc4)])==null||(_0x1a3979=_0x1a3979['ln'])==null)&&_0x1a3979[_0x15ced2(0xb0)]||(this[_0x15ced2(0xc4)]['ln']['endArrow']={}),this['shapeData']['ln']['endArrow'][_0x15ced2(0xc0)]=_0x483cf8,this;}[_0x245d3a(0x86)](){const _0xb2fe17=_0x245d3a;return super[_0xb2fe17(0x86)]();}['getEndConnectInfo'](){const _0x3779f9=_0x245d3a;var _0xaef10;return((_0xaef10=this[_0x3779f9(0xc4)])==null||(_0xaef10=_0xaef10[_0x3779f9(0xc1)])==null?void 0x0:_0xaef10['to'])||null;}['getStartConnectInfo'](){const _0x7ea93e=_0x245d3a;var _0x6e5ed;return((_0x6e5ed=this[_0x7ea93e(0xc4)])==null||(_0x6e5ed=_0x6e5ed[_0x7ea93e(0xc1)])==null?void 0x0:_0x6e5ed[_0x7ea93e(0x8b)])||null;}};function I(_0x49a457,_0x766408,_0x31e157,_0xb72f5f,_0x5f2dc2,_0x31aa5a){const _0x4123e4=_0x245d3a;let _0x108991=_0x5f2dc2['getShapeModel'](_0x49a457,_0x766408,_0x31e157);if(!_0x108991)return null;let _0x53caea=_0x31aa5a[_0x4123e4(0x77)]({'unitId':_0x49a457,'subUnitId':_0x766408,'drawingId':_0x31e157});if(!(_0x53caea!=null&&_0x53caea[_0x4123e4(0xa8)]))return null;let {left:_0x2d634e=0x0,top:_0x4d05d8=0x0,width:_0x437a6e=0x0,height:_0xb5b7a2=0x0,flipX:_0x3cd0b9=!0x1,flipY:_0x1363f0=!0x1,angle:_0x2ba431}=_0x53caea[_0x4123e4(0xa8)];_0x108991['updateContext']({'width':_0x437a6e,'height':_0xb5b7a2});let _0x40786d=_0x108991[_0x4123e4(0xe2)]()[_0x4123e4(0x95)](_0x926199=>_0x926199[_0x4123e4(0x82)]===_0xb72f5f);if(!_0x40786d)return null;let _0x4f1573=_0x3cd0b9?_0x437a6e-_0x40786d['x']:_0x40786d['x'],_0x333bfc=_0x1363f0?_0xb5b7a2-_0x40786d['y']:_0x40786d['y'];if(_0x2ba431&&_0x2ba431!==0x0){let _0x710f79=_0x2ba431*Math['PI']/0xb4,_0x1405fd=Math['cos'](_0x710f79),_0x564fcf=Math[_0x4123e4(0xb9)](_0x710f79),_0x5545a6=_0x437a6e/0x2,_0x31513c=_0xb5b7a2/0x2,_0xe792fb=_0x4f1573-_0x5545a6,_0x456cc7=_0x333bfc-_0x31513c;_0x4f1573=_0x5545a6+_0xe792fb*_0x1405fd-_0x456cc7*_0x564fcf,_0x333bfc=_0x31513c+_0xe792fb*_0x564fcf+_0x456cc7*_0x1405fd;}_0x4f1573+=_0x2d634e,_0x333bfc+=_0x4d05d8;let _0x3bca9e=_0x40786d[_0x4123e4(0xe8)]/0xea60;_0x3cd0b9&&(_0x3bca9e=0xb4-_0x3bca9e),_0x1363f0&&(_0x3bca9e=-_0x3bca9e),_0x3bca9e+=_0x2ba431||0x0,_0x3bca9e=(_0x3bca9e%0x168+0x168)%0x168;let _0x2a6e0e=_0x423cee({'left':_0x2d634e,'top':_0x4d05d8,'width':_0x437a6e,'height':_0xb5b7a2},_0x2ba431||0x0);return{'point':{'x':_0x4f1573,'y':_0x333bfc},'angle':_0x3bca9e,'bounds':_0x2a6e0e};}function L(_0x21b5b5,_0x2f0ead){const _0x526bd5=_0x245d3a;let _0x2dba75=_0x2f0ead['x']-_0x21b5b5['x'],_0x4354b6=_0x2f0ead['y']-_0x21b5b5['y'];return Math[_0x526bd5(0xc7)](_0x2dba75)>=Math['abs'](_0x4354b6)?_0x2dba75>=0x0?0xb4:0x0:_0x4354b6>=0x0?0x10e:0x5a;}function R(_0x2246e1,_0x118312,_0x3e9df9,_0x4bcda2,_0x50b343,_0x52e9aa,_0x33e5a8){const _0x3ccfd9=_0x245d3a;let _0xf6a587=_0x52e9aa['getShapeModel'](_0x2246e1,_0x118312,_0x3e9df9);if(!_0xf6a587)return null;let _0x5b018f=_0x33e5a8[_0x3ccfd9(0x77)]({'unitId':_0x2246e1,'subUnitId':_0x118312,'drawingId':_0x3e9df9});if(!(_0x5b018f!=null&&_0x5b018f[_0x3ccfd9(0xa8)]))return null;let {left:_0xe3d905=0x0,top:_0x9a238e=0x0,width:_0x1148e8=0x0,height:_0x27480c=0x0,flipX:_0x333072=!0x1,flipY:_0x3221a5=!0x1}=_0x5b018f[_0x3ccfd9(0xa8)];_0xf6a587[_0x3ccfd9(0xcb)]({'width':_0x1148e8,'height':_0x27480c});let _0x2acfda=_0xf6a587[_0x3ccfd9(0xc8)]();if(_0x2acfda[_0x3ccfd9(0xd7)]<0x2)return null;let _0x3c48cf=_0x4bcda2?_0x2acfda[0x0]:_0x2acfda[_0x2acfda['length']-0x1],_0x4b625c=new _0x34439f({'left':_0xe3d905,'top':_0x9a238e,'width':_0x1148e8,'height':_0x27480c,'flipX':_0x333072,'flipY':_0x3221a5})[_0x3ccfd9(0x7a)](_0x3c48cf);return{'point':_0x4b625c,'angle':L(_0x50b343['point'],_0x4b625c),'bounds':{'left':_0x4b625c['x'],'top':_0x4b625c['y'],'width':0x0,'height':0x0}};}var z=class extends _0x4ae227{async['insertShape'](_0x25132){const _0x4c230a=_0x245d3a;let {unitId:_0x3a2d9c,subUnitId:_0x40519b,shapeId:_0x3c9bba,shapeType:_0x290fc5,shapeData:_0x11baab,x:_0x3ce62a,y:_0x20b2fb,width:_0x54c3e6,height:_0x1771a2}=_0x25132;return this[_0x4c230a(0x71)][_0x4c230a(0xe5)](_0x48442c['id'],{'unitId':_0x3a2d9c,'subUnitId':_0x40519b,'shapeId':_0x3c9bba,'shapeType':_0x290fc5,'shapeData':_0x11baab,'position':{'x':_0x3ce62a,'y':_0x20b2fb},'width':_0x54c3e6,'height':_0x1771a2});}async[_0x245d3a(0x70)](_0x4f9cb5){const _0x2c994c=_0x245d3a;let {unitId:_0xcfce0d,subUnitId:_0x1e62d5,shapeId:_0x9e5ea8,shapeType:_0x46aec0,shapeData:_0x1a793b,x:_0x15d647,y:_0x245c4b,width:_0x1c55a2,height:_0x22e089}=_0x4f9cb5;return this[_0x2c994c(0x71)][_0x2c994c(0xe5)](_0xbd1de4['id'],{'unitId':_0xcfce0d,'subUnitId':_0x1e62d5,'shapeId':_0x9e5ea8,'shapeType':_0x46aec0,'shapeData':_0x1a793b,'position':{'x':_0x15d647,'y':_0x245c4b},'width':_0x1c55a2,'height':_0x22e089});}[_0x245d3a(0x9c)](_0x519406){const _0x35ac00=_0x245d3a;let _0x16909a=this[_0x35ac00(0xa3)]()[_0x35ac00(0xe9)](),_0x15dbd1=this[_0x35ac00(0xa9)]();if(_0x519406){let _0x2a2600=new P(_0x16909a,_0x15dbd1,_0x519406[_0x35ac00(0xa2)],this['_injector']);return this[_0x35ac00(0x74)](_0x2a2600,_0x16909a,_0x15dbd1,_0x519406['drawId']),_0x2a2600;}return new P(_0x16909a,_0x15dbd1,_0x58c69f(),this[_0x35ac00(0x98)]);}['newConnector'](_0x3c710a){const _0x31eae7=_0x245d3a;let _0x341179=this[_0x31eae7(0xa3)]()[_0x31eae7(0xe9)](),_0x453780=this[_0x31eae7(0xa9)]();if(_0x3c710a){let _0x400073=new F(_0x341179,_0x453780,_0x3c710a[_0x31eae7(0xa2)],this[_0x31eae7(0x98)]);return this['_preloadShapeProperties'](_0x400073,_0x341179,_0x453780,_0x3c710a[_0x31eae7(0xa2)]),_0x400073;}return new F(_0x341179,_0x453780,_0x58c69f(),this[_0x31eae7(0x98)]);}[_0x245d3a(0xdf)](){const _0x503ee7=_0x245d3a;let _0x249672=this[_0x503ee7(0x98)]['get'](_0x428383),_0x56ca0a=this[_0x503ee7(0xa3)]()[_0x503ee7(0xe9)](),_0x1a27c7=this[_0x503ee7(0xa9)](),_0x508a38=_0x249672[_0x503ee7(0x79)](_0x56ca0a,_0x1a27c7);if(!_0x508a38)return[];let _0x125ed5=[];for(let [_0x43cd1f,_0x197ba7]of Object[_0x503ee7(0x6a)](_0x508a38))if(_0x197ba7&&_0x197ba7[_0x503ee7(0xdb)]===_0x215d4d[_0x503ee7(0xcc)]){let _0x5406c3=new P(_0x56ca0a,_0x1a27c7,_0x43cd1f,this[_0x503ee7(0x98)]);this[_0x503ee7(0x74)](_0x5406c3,_0x56ca0a,_0x1a27c7,_0x43cd1f),_0x125ed5['push'](_0x5406c3);}return _0x125ed5;}[_0x245d3a(0xae)](_0x441d04){const _0x5b120c=_0x245d3a;let {unitId:_0x30b3be,subUnitId:_0x3ecd5d,drawId:_0x29efc0}=_0x441d04;return this[_0x5b120c(0x71)][_0x5b120c(0xe5)](_0x55e1a4['id'],{'unitId':_0x30b3be,'drawings':[{'unitId':_0x30b3be,'subUnitId':_0x3ecd5d,'drawingId':_0x29efc0,'drawingType':_0x215d4d[_0x5b120c(0xcc)]}]});}async[_0x245d3a(0xbd)](_0x5133d0){const _0x156e55=_0x245d3a;let {connector:_0x130fe8,startTarget:_0x8732c6,endTarget:_0x163116}=_0x5133d0;if(!_0x8732c6&&!_0x163116)return!0x1;let _0x466152=this[_0x156e55(0xa3)]()[_0x156e55(0xe9)](),_0x21d480=this[_0x156e55(0xa9)](),_0x5dc00f=this[_0x156e55(0x98)][_0x156e55(0xdc)](_0x458533),_0x4c4b2d=this['_injector'][_0x156e55(0xdc)](_0x155517),_0x3d9349=_0x5dc00f[_0x156e55(0x8d)](_0x466152,_0x21d480,_0x130fe8[_0x156e55(0xa2)]);if(!_0x3d9349)return!0x1;let _0x2c284d=_0x3d9349[_0x156e55(0xe3)](),_0x18d5b5=_0x3d9349[_0x156e55(0x81)](),_0x54e5b5={};for(let _0xf35998 of _0x3d9349[_0x156e55(0xbf)]()){let _0x366b26=_0x3d9349[_0x156e55(0xab)](_0xf35998);_0x366b26!==void 0x0&&(_0x54e5b5[_0xf35998]=_0x366b26);}let {startInfo:_0x2d9e0a,endInfo:_0x3917ea}=this['_resolveEndpoints'](_0x466152,_0x21d480,_0x130fe8,_0x3d9349,_0x8732c6,_0x163116,_0x5dc00f,_0x4c4b2d,_0x18d5b5);if(!_0x2d9e0a||!_0x3917ea)return!0x1;let _0x2f4c74=_0x5129d0(_0x311777(_0x2d9e0a,_0x3917ea,_0x2c284d),_0x2c284d),_0x33135e={};return _0x8732c6?_0x33135e[_0x156e55(0x8b)]={'shapeId':_0x8732c6[_0x156e55(0xb1)]['drawId'],'cxnIndex':_0x8732c6['connectionSiteIndex']}:_0x18d5b5!=null&&_0x18d5b5[_0x156e55(0x8b)]&&(_0x33135e[_0x156e55(0x8b)]=_0x18d5b5[_0x156e55(0x8b)]),_0x163116?_0x33135e['to']={'shapeId':_0x163116[_0x156e55(0xb1)]['drawId'],'cxnIndex':_0x163116[_0x156e55(0x9f)]}:_0x18d5b5!=null&&_0x18d5b5['to']&&(_0x33135e['to']=_0x18d5b5['to']),this[_0x156e55(0x71)][_0x156e55(0xe5)](_0x10f71e['id'],{'unitId':_0x466152,'subUnitId':_0x21d480,'connectorShapeId':_0x130fe8[_0x156e55(0xa2)],'width':_0x2f4c74[_0x156e55(0xb8)][_0x156e55(0x92)],'height':_0x2f4c74[_0x156e55(0xb8)]['height'],'left':_0x2f4c74[_0x156e55(0xb8)]['left'],'top':_0x2f4c74['worldRect'][_0x156e55(0xdd)],'flipX':_0x2f4c74[_0x156e55(0xb8)][_0x156e55(0x75)]||!0x1,'flipY':_0x2f4c74[_0x156e55(0xb8)][_0x156e55(0x6c)]||!0x1,'oldAdjustValues':_0x54e5b5,'newAdjustValues':_0x2f4c74[_0x156e55(0xb6)],'newLineType':_0x2f4c74['lineType'],'oldLineType':_0x2c284d,'rotation':_0x2f4c74[_0x156e55(0x84)],'oldRelation':_0x18d5b5,'newRelation':_0x33135e});}[_0x245d3a(0x74)](_0x6ee6c,_0x4a911b,_0x51562d,_0x2248ad){const _0x318a89=_0x245d3a;let _0x3af245=this[_0x318a89(0x98)]['get'](_0x155517)['getDrawingByParam']({'unitId':_0x4a911b,'subUnitId':_0x51562d,'drawingId':_0x2248ad});if(_0x3af245!=null&&_0x3af245['transform']){var _0xbd7ba1,_0x28c1a7,_0x5c8c5f,_0x195531;_0x6ee6c['x']=(_0xbd7ba1=_0x3af245[_0x318a89(0xa8)]['left'])==null?0x0:_0xbd7ba1,_0x6ee6c['y']=(_0x28c1a7=_0x3af245[_0x318a89(0xa8)][_0x318a89(0xdd)])==null?0x0:_0x28c1a7,_0x6ee6c[_0x318a89(0x92)]=(_0x5c8c5f=_0x3af245['transform'][_0x318a89(0x92)])==null?_0x6ee6c[_0x318a89(0x92)]:_0x5c8c5f,_0x6ee6c['height']=(_0x195531=_0x3af245[_0x318a89(0xa8)][_0x318a89(0xe6)])==null?_0x6ee6c[_0x318a89(0xe6)]:_0x195531;}let _0x49b09d=this[_0x318a89(0x98)]['get'](_0x458533)[_0x318a89(0x8d)](_0x4a911b,_0x51562d,_0x2248ad);if(_0x49b09d){_0x6ee6c[_0x318a89(0xaf)]=_0x49b09d['getShapeType']();let _0x9beed2=_0x49b09d[_0x318a89(0x88)]();_0x9beed2&&(_0x6ee6c['shapeData']=JSON[_0x318a89(0xd9)](JSON[_0x318a89(0x9a)](_0x9beed2)));}}[_0x245d3a(0x9d)](_0x5450fc,_0x120536,_0x4b7615,_0x472185,_0x4dd9af,_0x323dec,_0x52fd6f,_0xd55c5d,_0x1e6058){const _0x3ae668=_0x245d3a;let _0x3ef8bf=null,_0x465062=null;return _0x4dd9af&&(_0x3ef8bf=I(_0x5450fc,_0x120536,_0x4dd9af['shape'][_0x3ae668(0xa2)],_0x4dd9af['connectionSiteIndex'],_0x52fd6f,_0xd55c5d)),_0x323dec&&(_0x465062=I(_0x5450fc,_0x120536,_0x323dec[_0x3ae668(0xb1)][_0x3ae668(0xa2)],_0x323dec[_0x3ae668(0x9f)],_0x52fd6f,_0xd55c5d)),_0x3ef8bf||(_0x3ef8bf=this[_0x3ae668(0x78)](_0x5450fc,_0x120536,_0x4b7615[_0x3ae668(0xa2)],!0x0,_0x465062,_0x1e6058==null?void 0x0:_0x1e6058[_0x3ae668(0x8b)],_0x52fd6f,_0xd55c5d)),_0x465062||(_0x465062=this[_0x3ae668(0x78)](_0x5450fc,_0x120536,_0x4b7615['drawId'],!0x1,_0x3ef8bf,_0x1e6058==null?void 0x0:_0x1e6058['to'],_0x52fd6f,_0xd55c5d)),{'startInfo':_0x3ef8bf,'endInfo':_0x465062};}['_resolveExistingOrFreeEndpoint'](_0x560780,_0x8d6e2f,_0x18150d,_0x1b80e9,_0x423ada,_0x843eab,_0x3bc7d2,_0x5027b8){const _0x1973d5=_0x245d3a;if(_0x843eab){let _0x94431c=I(_0x560780,_0x8d6e2f,_0x843eab[_0x1973d5(0xda)],_0x843eab[_0x1973d5(0x89)],_0x3bc7d2,_0x5027b8);if(_0x94431c)return _0x94431c;}return _0x423ada?R(_0x560780,_0x8d6e2f,_0x18150d,_0x1b80e9,_0x423ada,_0x3bc7d2,_0x5027b8):null;}};_0x4ae227[_0x245d3a(0x6b)](z);export{F as FConnectorShape,P as FShape};
|
|
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};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x524b07=_0x2d92;(function(_0x27fcbe,_0x2ec196){const _0x307b7d=_0x2d92,_0x13f26e=_0x27fcbe();while(!![]){try{const _0x3e7ef6=parseInt(_0x307b7d(0x177))/0x1*(parseInt(_0x307b7d(0x104))/0x2)+-parseInt(_0x307b7d(0x162))/0x3*(-parseInt(_0x307b7d(0x111))/0x4)+parseInt(_0x307b7d(0x17a))/0x5*(parseInt(_0x307b7d(0x103))/0x6)+-parseInt(_0x307b7d(0xfc))/0x7+parseInt(_0x307b7d(0x131))/0x8+parseInt(_0x307b7d(0x14b))/0x9*(parseInt(_0x307b7d(0x167))/0xa)+-parseInt(_0x307b7d(0x171))/0xb;if(_0x3e7ef6===_0x2ec196)break;else _0x13f26e['push'](_0x13f26e['shift']());}catch(_0xcfed1e){_0x13f26e['push'](_0x13f26e['shift']());}}}(_0x36ec,0xbf6e0));import{ShapeModel as _0x59f482,computeConnectorRouteLayout as _0x24d05d,getBasicShapeRotateBound as _0x99cd44,isConnectorShape as _0x2268cf,routeConnectorLineShape as _0x306e4f}from'@univerjs-pro/engine-shape';import{CommandType as _0x6a9665,DependentOn as _0x4d9764,Disposable as _0xf366a6,DrawingTypeEnum as _0x4b689a,ICommandService as _0x42d311,IConfigService as _0xb915cd,IResourceManagerService as _0x2be511,IUndoRedoService as _0x766309,IUniverInstanceService as _0x587f6e,Inject as _0x1c1ea5,Injector as _0x5373cb,Plugin as _0x1b8cd9,UniverInstanceType as _0x3d34e0,generateRandomId as _0x40cb57,merge as _0x508608,sequenceExecute as _0x618d40,touchDependencies as _0x44b044}from'@univerjs/core';import{SheetInterceptorService as _0x1967ce,SheetSkeletonService as _0x59bdce,getSheetCommandTarget as _0x12b758}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x1c3205,DrawingApplyType as _0x34149e,ISheetDrawingService as _0x478a50,InsertSheetDrawingCommand as _0x481590,RemoveSheetDrawingCommand as _0x114f87,SetDrawingApplyMutation as _0x42ee93,SetSheetDrawingCommand as _0x25cc72,transformToAxisAlignPosition as _0x2eabf8,transformToDrawingPosition as _0xc9c2ce}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x578903}from'@univerjs-pro/license';import{IDrawingManagerService as _0x4b5bfb}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x3546e6){'@babel/helpers - typeof';const _0x11e3cd=_0x2d92;return R=typeof Symbol==_0x11e3cd(0x141)&&typeof Symbol[_0x11e3cd(0x180)]==_0x11e3cd(0x122)?function(_0x49cfab){return typeof _0x49cfab;}:function(_0x2fe95a){const _0x79240d=_0x11e3cd;return _0x2fe95a&&typeof Symbol==_0x79240d(0x141)&&_0x2fe95a['constructor']===Symbol&&_0x2fe95a!==Symbol[_0x79240d(0x16b)]?_0x79240d(0x122):typeof _0x2fe95a;},R(_0x3546e6);}function z(_0x246f1f,_0x57f8fb){const _0x2d5997=_0x2d92;if(R(_0x246f1f)!=_0x2d5997(0x143)||!_0x246f1f)return _0x246f1f;var _0x5eb0bb=_0x246f1f[Symbol[_0x2d5997(0x155)]];if(_0x5eb0bb!==void 0x0){var _0x1fb562=_0x5eb0bb[_0x2d5997(0x13e)](_0x246f1f,_0x57f8fb||'default');if(R(_0x1fb562)!=_0x2d5997(0x143))return _0x1fb562;throw TypeError(_0x2d5997(0x136));}return(_0x57f8fb===_0x2d5997(0x17d)?String:Number)(_0x246f1f);}function B(_0x1caf8d){const _0x50dbda=_0x2d92;var _0x37724f=z(_0x1caf8d,_0x50dbda(0x17d));return R(_0x37724f)==_0x50dbda(0x122)?_0x37724f:_0x37724f+'';}function V(_0x42f71f,_0x516a61,_0x3125c1){return(_0x516a61=B(_0x516a61))in _0x42f71f?Object['defineProperty'](_0x42f71f,_0x516a61,{'value':_0x3125c1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x42f71f[_0x516a61]=_0x3125c1,_0x42f71f;}var H=class extends _0xf366a6{constructor(){const _0xcff9ba=_0x2d92;super(),V(this,'_shapes',new Map()),V(this,_0xcff9ba(0x160),new Set()),V(this,_0xcff9ba(0x14e),new Set());}[_0x524b07(0x154)](_0x35f465,_0x841d17,_0x39bf1){const _0x1bb4a8=_0x524b07;let _0x26a81e=new _0x59f482(_0x35f465,_0x841d17,_0x39bf1);return this[_0x1bb4a8(0x120)][_0x1bb4a8(0x18b)](_0x841d17,_0x26a81e),_0x2268cf(_0x35f465)&&this[_0x1bb4a8(0x160)][_0x1bb4a8(0x192)](_0x841d17),_0x26a81e;}[_0x524b07(0x13d)](_0x5f049f){const _0x415291=_0x524b07;let _0x39e29b=[];for(let _0x4e140a of this['_linesIds']){let _0x5caf36=this[_0x415291(0x120)]['get'](_0x4e140a);if(_0x5caf36){let _0x3fdb90=_0x5caf36['getShapeRelation']();if(_0x3fdb90){var _0x5d41dd,_0x20cb6d;((_0x5d41dd=_0x3fdb90[_0x415291(0x16f)])==null?void 0x0:_0x5d41dd['shapeId'])===_0x5f049f&&_0x39e29b[_0x415291(0x17e)]({..._0x3fdb90[_0x415291(0x16f)],'lineShapeId':_0x4e140a,'isFrom':!0x0}),((_0x20cb6d=_0x3fdb90['to'])==null?void 0x0:_0x20cb6d[_0x415291(0x18c)])===_0x5f049f&&_0x39e29b[_0x415291(0x17e)]({..._0x3fdb90['to'],'lineShapeId':_0x4e140a,'isFrom':!0x1});}}}return _0x39e29b;}['getLineShapeRelation'](_0x261ad6){const _0x11c869=_0x524b07;let _0x168a69=this[_0x11c869(0x120)][_0x11c869(0x152)](_0x261ad6);if(_0x168a69)return _0x168a69['getShapeRelation']();}[_0x524b07(0x179)](_0x1cbf5b){const _0x470203=_0x524b07;let _0x495e14=this[_0x470203(0x120)][_0x470203(0x152)](_0x1cbf5b);if(_0x495e14)return _0x495e14['getShapeType']();}[_0x524b07(0x168)](_0x128f02){const _0x18ba78=_0x524b07;return this[_0x18ba78(0x120)][_0x18ba78(0x176)](_0x128f02);}['removeShape'](_0x56c4ea){const _0x3a73a7=_0x524b07;let _0xfd2f2=this[_0x3a73a7(0x120)][_0x3a73a7(0x152)](_0x56c4ea);_0xfd2f2&&(_0x2268cf(_0xfd2f2['getShapeType']())&&this[_0x3a73a7(0x160)][_0x3a73a7(0xfb)](_0x56c4ea),this['_shapes'][_0x3a73a7(0xfb)](_0x56c4ea));}[_0x524b07(0xff)](){const _0x415f05=_0x524b07;let _0x3220a7=[];return this[_0x415f05(0x120)]['forEach'](_0x506429=>{const _0x57b4b9=_0x415f05;_0x3220a7[_0x57b4b9(0x17e)](_0x506429['toJSON']());}),_0x3220a7;}[_0x524b07(0x169)](_0xe8e45e){const _0xcaad60=_0x524b07;for(let _0x447443 of _0xe8e45e){let {id:_0xbb7f43,shapeType:_0x15f3c6}=_0x447443,_0x2c93c1=this[_0xcaad60(0x154)](_0x15f3c6,_0xbb7f43,_0x447443[_0xcaad60(0x139)]);_0x2c93c1&&_0x2c93c1['isLineShape']()&&this['_linesIds']['add'](_0xbb7f43);}}[_0x524b07(0x12f)](){const _0x67b7c9=_0x524b07;this[_0x67b7c9(0x184)]||(this[_0x67b7c9(0x120)]['forEach'](_0x362612=>{_0x362612['dispose']();}),this[_0x67b7c9(0x120)][_0x67b7c9(0x11f)](),this['_linesIds'][_0x67b7c9(0x11f)](),this[_0x67b7c9(0x14e)][_0x67b7c9(0x11f)](),super[_0x67b7c9(0x12f)]());}};function U(_0x3fe4f9,_0x4c3863){return function(_0x4c388b,_0x3aeaa0){_0x4c3863(_0x4c388b,_0x3aeaa0,_0x3fe4f9);};}function _0x2d92(_0x9d0e11,_0x5d8d14){_0x9d0e11=_0x9d0e11-0xfb;const _0x36ecb6=_0x36ec();let _0x2d925c=_0x36ecb6[_0x9d0e11];return _0x2d925c;}function W(_0x8df62a,_0x245f0d,_0x311740,_0x4799d6){const _0x26d230=_0x524b07;var _0x29310c=arguments[_0x26d230(0x142)],_0x3fb4c8=_0x29310c<0x3?_0x245f0d:_0x4799d6===null?_0x4799d6=Object[_0x26d230(0x12d)](_0x245f0d,_0x311740):_0x4799d6,_0xe6cfc0;if(typeof Reflect==_0x26d230(0x143)&&typeof Reflect[_0x26d230(0x144)]==_0x26d230(0x141))_0x3fb4c8=Reflect['decorate'](_0x8df62a,_0x245f0d,_0x311740,_0x4799d6);else{for(var _0x50f04b=_0x8df62a[_0x26d230(0x142)]-0x1;_0x50f04b>=0x0;_0x50f04b--)(_0xe6cfc0=_0x8df62a[_0x50f04b])&&(_0x3fb4c8=(_0x29310c<0x3?_0xe6cfc0(_0x3fb4c8):_0x29310c>0x3?_0xe6cfc0(_0x245f0d,_0x311740,_0x3fb4c8):_0xe6cfc0(_0x245f0d,_0x311740))||_0x3fb4c8);}return _0x29310c>0x3&&_0x3fb4c8&&Object[_0x26d230(0x16a)](_0x245f0d,_0x311740,_0x3fb4c8),_0x3fb4c8;}let G=class extends _0xf366a6{constructor(_0x4a6eea){const _0x199931=_0x524b07;super(),this[_0x199931(0x12a)]=_0x4a6eea,V(this,'_shapeModelManagerMap',new Map()),this[_0x199931(0x193)]();}[_0x524b07(0x107)](_0x23fa18,_0x52f663){const _0x4cc9c9=_0x524b07;let _0x425962=this[_0x4cc9c9(0x134)][_0x4cc9c9(0x152)](_0x23fa18);_0x425962||(_0x425962=new Map(),this[_0x4cc9c9(0x134)][_0x4cc9c9(0x18b)](_0x23fa18,_0x425962));let _0x32fcfc=_0x425962[_0x4cc9c9(0x152)](_0x52f663);return _0x32fcfc||(_0x32fcfc=new H(),_0x425962['set'](_0x52f663,_0x32fcfc)),_0x32fcfc;}['insertShape'](_0x210f0c,_0x24cb07,_0x443238,_0x4cdc97,_0x5d6df6){const _0x2223a3=_0x524b07;this[_0x2223a3(0x107)](_0x210f0c,_0x24cb07)[_0x2223a3(0x154)](_0x443238,_0x4cdc97,_0x5d6df6);}['removeShape'](_0x20cb49,_0x321656,_0x1743c4){const _0x2b9411=_0x524b07;this['_ensureShapeModelManager'](_0x20cb49,_0x321656)[_0x2b9411(0x11c)](_0x1743c4);}[_0x524b07(0x10f)](_0x41fd3c,_0x142ee9,_0xd5dd22){const _0x5e0836=_0x524b07;return this[_0x5e0836(0x107)](_0x41fd3c,_0x142ee9)[_0x5e0836(0x179)](_0xd5dd22);}[_0x524b07(0x179)](_0x34a533,_0x3e92a3,_0x2e8b89){const _0x2054c0=_0x524b07;return this[_0x2054c0(0x107)](_0x34a533,_0x3e92a3)[_0x2054c0(0x179)](_0x2e8b89);}[_0x524b07(0x168)](_0x6223cd,_0x3fe17c,_0x1bc277){const _0x38a1ac=_0x524b07;return this[_0x38a1ac(0x107)](_0x6223cd,_0x3fe17c)[_0x38a1ac(0x168)](_0x1bc277);}[_0x524b07(0x186)](_0x2ec128,_0x1258ac,_0x13b6f0){const _0x3b6d88=_0x524b07;return this['_ensureShapeModelManager'](_0x2ec128,_0x1258ac)[_0x3b6d88(0x179)](_0x13b6f0);}[_0x524b07(0x195)](_0x563b21,_0x6e47ac,_0x44efb7){const _0xf715d0=_0x524b07;let _0x53ab3e=this['_ensureShapeModelManager'](_0x563b21,_0x6e47ac);if(!_0x53ab3e[_0xf715d0(0x179)](_0x44efb7))return;let _0x20ebe6=_0x53ab3e[_0xf715d0(0x120)]['get'](_0x44efb7);if(_0x20ebe6)return _0x20ebe6[_0xf715d0(0x12c)]();}['getShapeModel'](_0x3d7649,_0x2920f4,_0x43edcf){const _0x5964fc=_0x524b07;return this[_0x5964fc(0x107)](_0x3d7649,_0x2920f4)[_0x5964fc(0x120)][_0x5964fc(0x152)](_0x43edcf);}[_0x524b07(0x13d)](_0x16f771,_0x1202f8,_0x256d55){const _0xeb24ea=_0x524b07;return this['_ensureShapeModelManager'](_0x16f771,_0x1202f8)[_0xeb24ea(0x13d)](_0x256d55);}[_0x524b07(0x10c)](_0x5b1016,_0x4b177b,_0x532e78){const _0x224223=_0x524b07;let _0x565a17=this['_ensureShapeModelManager'](_0x5b1016,_0x4b177b)[_0x224223(0x120)]['get'](_0x532e78);if(_0x565a17)return _0x565a17[_0x224223(0x102)]();}[_0x524b07(0x109)](){}['_serializeShapeForUnit'](_0x42acd6){const _0x28cee5=_0x524b07;let _0x584863={},_0x28df79=this['_shapeModelManagerMap'][_0x28cee5(0x152)](_0x42acd6);return _0x28df79&&_0x28df79[_0x28cee5(0x197)]((_0x725fa3,_0x431cc2)=>{const _0x44b444=_0x28cee5;let _0x15ca3e=_0x725fa3['toJSON']();_0x15ca3e[_0x44b444(0x142)]>0x0&&(_0x584863[_0x431cc2]=_0x15ca3e);}),JSON[_0x28cee5(0x13a)](_0x584863);}[_0x524b07(0x194)](_0x2e4438,_0x4094fe){const _0x36d0b3=_0x524b07;Object['keys'](_0x4094fe)[_0x36d0b3(0x197)](_0x3a2ae8=>{const _0x1c3ca4=_0x36d0b3;this[_0x1c3ca4(0x107)](_0x2e4438,_0x3a2ae8)['fromJSON'](_0x4094fe[_0x3a2ae8]);});}[_0x524b07(0xff)](){const _0x1a4a55=_0x524b07;let _0x4d0483={};return this['_shapeModelManagerMap'][_0x1a4a55(0x197)]((_0xedf202,_0x6fde18)=>{const _0x569367=_0x1a4a55;_0x4d0483[_0x6fde18]={},_0xedf202[_0x569367(0x197)]((_0x9a7ede,_0x1bc0a2)=>{const _0x44cbd7=_0x569367;_0x4d0483[_0x6fde18][_0x1bc0a2]=_0x9a7ede[_0x44cbd7(0xff)]();});}),_0x4d0483;}[_0x524b07(0x169)](_0x504f4d){const _0x2fd5e2=_0x524b07;Object[_0x2fd5e2(0x15b)](_0x504f4d)[_0x2fd5e2(0x197)](_0x18e9db=>{const _0x461e19=_0x2fd5e2;let _0x4511f2=_0x504f4d[_0x18e9db];Object['keys'](_0x4511f2)[_0x461e19(0x197)](_0x2f40b0=>{const _0x520252=_0x461e19;this['_ensureShapeModelManager'](_0x18e9db,_0x2f40b0)[_0x520252(0x169)](_0x4511f2[_0x2f40b0]);});});}[_0x524b07(0x193)](){const _0x2e5abb=_0x524b07;this[_0x2e5abb(0x12a)]['registerPluginResource']({'pluginName':_0x2e5abb(0x127),'businesses':[_0x3d34e0['UNIVER_SHEET']],'toJson':_0x5605d3=>this[_0x2e5abb(0x12e)](_0x5605d3),'parseJson':_0x2b8c5b=>JSON['parse'](_0x2b8c5b),'onLoad':(_0x31c308,_0x3496e6)=>{const _0x38907c=_0x2e5abb;this[_0x38907c(0x194)](_0x31c308,_0x3496e6);},'onUnLoad':_0x339863=>{const _0x5c77bf=_0x2e5abb;let _0x551b36=this['_shapeModelManagerMap'][_0x5c77bf(0x152)](_0x339863);_0x551b36&&(_0x551b36[_0x5c77bf(0x197)](_0xb4fd2=>{const _0x15aadf=_0x5c77bf;_0xb4fd2[_0x15aadf(0x12f)]();}),this['_shapeModelManagerMap'][_0x5c77bf(0xfb)](_0x339863));}});}['dispose'](){const _0xf57f18=_0x524b07;this['_shapeModelManagerMap'][_0xf57f18(0x197)](_0x532c88=>{_0x532c88['forEach'](_0x215b49=>{_0x215b49['dispose']();});});}};G=W([U(0x0,_0x2be511)],G);const K={'id':_0x524b07(0x112),'type':_0x6a9665[_0x524b07(0x157)],'handler':(_0x2d8c6f,_0x5b1327)=>{const _0xc6f781=_0x524b07;let {unitId:_0x3d311c,subUnitId:_0x4de21d,shapeType:_0x1c35d1,shapeId:_0x5a63cd,shapeData:_0x3c9359}=_0x5b1327;return _0x2d8c6f['get'](G)[_0xc6f781(0x190)](_0x3d311c,_0x4de21d,_0x1c35d1,_0x5a63cd,_0x3c9359),!0x0;}},q={'id':_0x524b07(0x161),'type':_0x6a9665[_0x524b07(0x157)],'handler':(_0x4aba30,_0x24212b)=>{const _0x12c8ff=_0x524b07;let {unitId:_0x402f75,subUnitId:_0x500dfb,shapeId:_0x3cce46}=_0x24212b;return _0x4aba30[_0x12c8ff(0x152)](G)[_0x12c8ff(0x11c)](_0x402f75,_0x500dfb,_0x3cce46),!0x0;}},J={'type':_0x6a9665[_0x524b07(0x135)],'id':_0x524b07(0x146),'handler':(_0x3c6260,_0x5cd0bf)=>{const _0x18db68=_0x524b07;var _0xdc0e6d,_0x34ec48;let _0x2b4404=_0x12b758(_0x3c6260[_0x18db68(0x152)](_0x587f6e),_0x5cd0bf);if(!_0x2b4404)return!0x1;let _0x3a601e=_0x3c6260[_0x18db68(0x152)](_0x59bdce),{unitId:_0x12ba5b,subUnitId:_0x11558c}=_0x2b4404,_0x546b78=_0x3a601e[_0x18db68(0x18e)](_0x12ba5b,_0x11558c);if(!_0x546b78)return!0x1;let _0x18472c=_0x3c6260['get'](_0x42d311),_0x11eb26=_0x3c6260['get'](_0x766309),_0x337d38=_0x3c6260[_0x18db68(0x152)](_0x1967ce),_0x28e0c3=_0x3c6260[_0x18db68(0x152)](_0x478a50),{shapeType:_0x555883,shapeData:_0x3974b5}=_0x5cd0bf,_0x37eb96=_0x5cd0bf['shapeId']||_0x40cb57(),_0x505347={'unitId':_0x12ba5b,'subUnitId':_0x11558c,'shapeId':_0x37eb96,'shapeType':_0x555883,'shapeData':_0x3974b5},_0x41a1b9=_0x5cd0bf[_0x18db68(0x16d)]||0xc8,_0x1a81e0=_0x5cd0bf[_0x18db68(0x118)]||0xc8,_0x9a4243=0x0,_0x24c521=0x0,_0x3c562a={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x1ecad8={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x5cd0bf[_0x18db68(0x159)]){let {x:_0x9012b4,y:_0x38b72e}=_0x5cd0bf['position'];_0x9a4243=_0x9012b4,_0x24c521=_0x38b72e,_0x3c562a=_0x546b78['getCellIndexAndOffsetByPosition'](_0x9012b4,_0x38b72e),_0x1ecad8=_0x546b78[_0x18db68(0x15d)](_0x9012b4+_0x41a1b9,_0x38b72e+_0x1a81e0);}else{if(_0x5cd0bf['range']){let {startRow:_0x2c1d8c,startColumn:_0x2cfc2b}=_0x5cd0bf[_0x18db68(0x119)];_0x3c562a={'row':_0x2c1d8c,'rowOffset':0xa,'column':_0x2cfc2b,'columnOffset':0xa};let _0xc482a9=_0x546b78[_0x18db68(0x10b)](_0x2c1d8c,_0x2cfc2b);_0x9a4243=_0xc482a9['startX']+0xa,_0x24c521=_0xc482a9[_0x18db68(0x16c)]+0xa,_0x1ecad8=_0x546b78[_0x18db68(0x15d)](_0x9a4243+_0x41a1b9,_0x24c521+_0x1a81e0);}}let _0x5e46cf={'from':_0x3c562a,'to':_0x1ecad8},_0x1ff402={'unitId':_0x12ba5b,'subUnitId':_0x11558c,'drawingId':_0x37eb96,'drawingType':_0x4b689a[_0x18db68(0x15c)],'sheetTransform':_0x5e46cf,'transform':{'left':_0x9a4243,'top':_0x24c521,'width':_0x41a1b9,'height':_0x1a81e0},'data':{'shapeType':_0x555883,'shapeData':_0x3974b5},'axisAlignSheetTransform':_0x5e46cf,'allowTransform':!0x0};_0x2268cf(_0x555883)&&(_0x1ff402[_0x18db68(0x189)][_0x18db68(0x178)]=!0x1,_0x1ff402['data'][_0x18db68(0x117)]=!0x1,_0x1ff402['data'][_0x18db68(0x129)]=!0x1,_0x1ff402[_0x18db68(0x189)][_0x18db68(0x15f)]=!0x1,_0x1ff402[_0x18db68(0x175)][_0x18db68(0x117)]=!0x1,_0x1ff402[_0x18db68(0x175)][_0x18db68(0x129)]=!0x1,_0x1ff402[_0x18db68(0x175)][_0x18db68(0x15f)]=!0x1);let {undo:_0x590910,redo:_0x10d25c,objects:_0x4e6aec}=_0x28e0c3[_0x18db68(0x116)]([_0x1ff402]),_0x2bb722=_0x337d38[_0x18db68(0x188)]({'id':_0x481590['id'],'params':{'unitId':_0x12ba5b,'drawings':[_0x1ff402]}}),_0x5b06c6=[...(_0xdc0e6d=_0x2bb722[_0x18db68(0x158)])==null?[]:_0xdc0e6d,{'id':_0x42ee93['id'],'params':{'unitId':_0x12ba5b,'subUnitId':_0x11558c,'op':_0x10d25c,'objects':_0x4e6aec,'type':_0x34149e[_0x18db68(0x106)]}},{'id':_0x1c3205['id'],'params':[_0x12ba5b]},..._0x2bb722[_0x18db68(0x10a)],{'id':K['id'],'params':_0x505347}],_0x367bd1=[{'id':q['id'],'params':{'unitId':_0x12ba5b,'subUnitId':_0x11558c,'shapeId':_0x37eb96}},...(_0x34ec48=_0x2bb722[_0x18db68(0x140)])==null?[]:_0x34ec48,{'id':_0x42ee93['id'],'params':{'unitId':_0x12ba5b,'subUnitId':_0x11558c,'op':_0x590910,'objects':_0x4e6aec,'type':_0x34149e[_0x18db68(0x11a)]}},{'id':_0x1c3205['id'],'params':[_0x12ba5b]},..._0x2bb722[_0x18db68(0x196)]];return _0x618d40(_0x5b06c6,_0x18472c)[_0x18db68(0x191)]?(_0x11eb26[_0x18db68(0x124)]({'unitID':_0x12ba5b,'undoMutations':_0x367bd1,'redoMutations':_0x5b06c6}),!0x0):!0x1;}},Y={'id':'sheet.mutation.update-shape-data','type':_0x6a9665[_0x524b07(0x157)],'handler':(_0x25f21f,_0x18d761)=>{const _0x12b2e6=_0x524b07;let {unitId:_0x1e5816,subUnitId:_0x209c83,shapeType:_0x1268db,shapeId:_0x3945,shapeData:_0x45d495}=_0x18d761,_0x2e3022=_0x25f21f[_0x12b2e6(0x152)](G)['getShapeModel'](_0x1e5816,_0x209c83,_0x3945);return _0x2e3022&&(_0x1268db!==void 0x0&&_0x2e3022[_0x12b2e6(0x109)](_0x1268db),_0x45d495&&(_0x2e3022==null||_0x2e3022['setShapeData'](_0x45d495,!0x0))),!0x0;}},ee={'type':_0x6a9665[_0x524b07(0x135)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x42be71,_0x2a0296)=>{const _0x4c773e=_0x524b07;var _0x687608,_0x21ac6b;let _0x32a0ff=_0x12b758(_0x42be71[_0x4c773e(0x152)](_0x587f6e),_0x2a0296);if(!_0x32a0ff)return!0x1;let _0x45c464=_0x42be71[_0x4c773e(0x152)](_0x59bdce),{unitId:_0x238011,subUnitId:_0x25532c}=_0x32a0ff,_0x3ec5ac=_0x45c464['ensureSkeleton'](_0x238011,_0x25532c);if(!_0x3ec5ac)return!0x1;let _0x5d7748=_0x42be71[_0x4c773e(0x152)](G),{shapeId:_0x1b308b,shapeType:_0x5767cc,shapeData:_0x156a3f,position:_0x2df105,width:_0x291491,height:_0x321146}=_0x2a0296,_0x5704c4=_0x5d7748[_0x4c773e(0x156)](_0x238011,_0x25532c,_0x1b308b);if(!_0x5704c4)return!0x1;let _0x4abeb8=_0x42be71[_0x4c773e(0x152)](_0x42d311),_0xb0defe=_0x42be71[_0x4c773e(0x152)](_0x766309),_0x21eed1=_0x42be71[_0x4c773e(0x152)](_0x1967ce),_0x27d206=_0x42be71[_0x4c773e(0x152)](_0x478a50),_0x4172cb={'unitId':_0x238011,'subUnitId':_0x25532c,'shapeId':_0x1b308b,'shapeType':_0x5767cc,'shapeData':_0x156a3f},_0x12b9d9=_0x5704c4['getShapeType'](),_0x464098=_0x5704c4[_0x4c773e(0x12c)](),{x:_0x26d75b,y:_0x4b3234}=_0x2df105,_0x188b55={'from':_0x3ec5ac[_0x4c773e(0x15d)](_0x26d75b,_0x4b3234),'to':_0x3ec5ac[_0x4c773e(0x15d)](_0x26d75b+_0x291491,_0x4b3234+_0x321146)},_0x2a3304={'unitId':_0x238011,'subUnitId':_0x25532c,'drawingId':_0x1b308b,'drawingType':_0x4b689a[_0x4c773e(0x15c)],'sheetTransform':_0x188b55,'transform':{'left':_0x26d75b,'top':_0x4b3234,'width':_0x291491,'height':_0x321146},'data':{'shapeType':_0x5767cc,'shapeData':_0x156a3f},'axisAlignSheetTransform':_0x188b55,'allowTransform':!0x0};_0x2268cf(_0x5767cc)&&(_0x2a3304[_0x4c773e(0x189)]['fill']=!0x1,_0x2a3304[_0x4c773e(0x189)][_0x4c773e(0x117)]=!0x1,_0x2a3304[_0x4c773e(0x189)]['resizeEnabled']=!0x1,_0x2a3304['data'][_0x4c773e(0x15f)]=!0x1,_0x2a3304[_0x4c773e(0x175)]['rotateEnabled']=!0x1,_0x2a3304[_0x4c773e(0x175)]['resizeEnabled']=!0x1,_0x2a3304[_0x4c773e(0x175)][_0x4c773e(0x15f)]=!0x1);let {undo:_0xd36d67,redo:_0x52e76d,objects:_0x3865ae}=_0x27d206[_0x4c773e(0x166)]([_0x2a3304]),_0x5cd039=_0x21eed1[_0x4c773e(0x188)]({'id':_0x25cc72['id'],'params':{'unitId':_0x238011,'drawings':[_0x2a3304]}}),_0x215dc5=[...(_0x687608=_0x5cd039[_0x4c773e(0x158)])==null?[]:_0x687608,{'id':_0x42ee93['id'],'params':{'unitId':_0x238011,'subUnitId':_0x25532c,'op':_0x52e76d,'objects':_0x3865ae,'type':_0x34149e['UPDATE']}},{'id':_0x1c3205['id'],'params':[_0x238011]},..._0x5cd039[_0x4c773e(0x10a)],{'id':Y['id'],'params':_0x4172cb}],_0x295b18=[...(_0x21ac6b=_0x5cd039[_0x4c773e(0x140)])==null?[]:_0x21ac6b,{'id':_0x42ee93['id'],'params':{'unitId':_0x238011,'subUnitId':_0x25532c,'op':_0xd36d67,'objects':_0x3865ae,'type':_0x34149e['UPDATE']}},{'id':_0x1c3205['id'],'params':[_0x238011]},..._0x5cd039['undos'],{'id':Y['id'],'params':{'unitId':_0x238011,'subUnitId':_0x25532c,'shapeType':_0x12b9d9,'shapeId':_0x1b308b,'shapeData':_0x464098}}];return _0x618d40(_0x215dc5,_0x4abeb8)['result']?(_0xb0defe[_0x4c773e(0x124)]({'unitID':_0x238011,'undoMutations':_0x295b18,'redoMutations':_0x215dc5}),!0x0):!0x1;}},te={'type':_0x6a9665[_0x524b07(0x135)],'id':_0x524b07(0x172),'handler':(_0x369665,_0x5c86e6)=>{const _0x530ea9=_0x524b07;var _0x395f64,_0x5dae69;let _0x4507b1=_0x12b758(_0x369665['get'](_0x587f6e),_0x5c86e6);if(!_0x4507b1)return!0x1;let _0x5ec779=_0x369665[_0x530ea9(0x152)](_0x59bdce),{unitId:_0x29e7a5,subUnitId:_0x455ab5}=_0x4507b1,_0x1715fb=_0x5ec779[_0x530ea9(0x12b)](_0x29e7a5,_0x455ab5);if(!_0x1715fb)return!0x1;let _0x2e2117=_0x369665[_0x530ea9(0x152)](_0x478a50),{shapeId:_0x4fd770,flipH:_0x4d667b,flipV:_0x5f1f68}=_0x5c86e6,_0x53e5c3=_0x2e2117['getDrawingByParam']({'unitId':_0x29e7a5,'subUnitId':_0x455ab5,'drawingId':_0x4fd770});if(!_0x53e5c3)return!0x1;let _0x5ad668=_0x369665[_0x530ea9(0x152)](G)[_0x530ea9(0x156)](_0x29e7a5,_0x455ab5,_0x4fd770);if(!_0x5ad668)return!0x1;let _0x50f2ae=_0x369665[_0x530ea9(0x152)](_0x42d311),_0x1cf651=_0x369665[_0x530ea9(0x152)](_0x766309),_0xf26296=_0x369665[_0x530ea9(0x152)](_0x1967ce),_0x2ca05d={..._0x53e5c3[_0x530ea9(0x175)]};_0x4d667b!==void 0x0&&(_0x2ca05d[_0x530ea9(0x14d)]=!_0x2ca05d[_0x530ea9(0x14d)]),_0x5f1f68!==void 0x0&&(_0x2ca05d[_0x530ea9(0x110)]=!_0x2ca05d[_0x530ea9(0x110)]);let _0x502abf=_0xc9c2ce(_0x2ca05d,_0x1715fb),_0x37e5fa=_0x2eabf8(_0x2ca05d,_0x1715fb),_0x4a5757=_0x5ad668[_0x530ea9(0x179)](),_0xdbf15e=_0x5ad668[_0x530ea9(0x12c)](),_0xbd89ce={'unitId':_0x29e7a5,'subUnitId':_0x455ab5,'drawingId':_0x4fd770,'drawingType':_0x4b689a['DRAWING_SHAPE'],'sheetTransform':_0x502abf,'transform':_0x2ca05d,'data':{'shapeType':_0x4a5757,'shapeData':_0xdbf15e},'axisAlignSheetTransform':_0x37e5fa,'allowTransform':!0x0},{undo:_0x38545a,redo:_0x4b25a5,objects:_0x21b20e}=_0x2e2117[_0x530ea9(0x166)]([_0xbd89ce]),_0x23fce4=_0xf26296[_0x530ea9(0x188)]({'id':_0x25cc72['id'],'params':{'unitId':_0x29e7a5,'drawings':[_0xbd89ce]}}),_0xfb8f45=[...(_0x395f64=_0x23fce4[_0x530ea9(0x158)])==null?[]:_0x395f64,{'id':_0x42ee93['id'],'params':{'unitId':_0x29e7a5,'subUnitId':_0x455ab5,'op':_0x4b25a5,'objects':_0x21b20e,'type':_0x34149e[_0x530ea9(0x13f)]}},{'id':_0x1c3205['id'],'params':[_0x29e7a5]},..._0x23fce4[_0x530ea9(0x10a)]],_0x3ba58a=[...(_0x5dae69=_0x23fce4[_0x530ea9(0x140)])==null?[]:_0x5dae69,{'id':_0x42ee93['id'],'params':{'unitId':_0x29e7a5,'subUnitId':_0x455ab5,'op':_0x38545a,'objects':_0x21b20e,'type':_0x34149e[_0x530ea9(0x13f)]}},{'id':_0x1c3205['id'],'params':[_0x29e7a5]},..._0x23fce4[_0x530ea9(0x196)]];if(_0x2268cf(_0x4a5757)){let _0x19e412=_0x5ad668[_0x530ea9(0x102)]();if(_0x19e412){let _0x1c1a19={..._0x19e412};_0x1c1a19[_0x530ea9(0x16f)]=void 0x0,_0x1c1a19['to']=void 0x0,_0xfb8f45[_0x530ea9(0x17e)]({'id':Y['id'],'params':{'unitId':_0x29e7a5,'subUnitId':_0x455ab5,'shapeId':_0x4fd770,'shapeType':_0x4a5757,'shapeData':{'relation':_0x1c1a19}}}),_0x3ba58a[_0x530ea9(0x17e)]({'id':Y['id'],'params':{'unitId':_0x29e7a5,'subUnitId':_0x455ab5,'shapeId':_0x4fd770,'shapeType':_0x4a5757,'shapeData':{'relation':_0x19e412}}});}}return _0x618d40(_0xfb8f45,_0x50f2ae)[_0x530ea9(0x191)]?(_0x1cf651[_0x530ea9(0x124)]({'unitID':_0x29e7a5,'undoMutations':_0x3ba58a,'redoMutations':_0xfb8f45}),!0x0):!0x1;}},X={'type':_0x6a9665[_0x524b07(0x135)],'id':_0x524b07(0x18a),'handler':(_0x11a251,_0x3af655)=>{const _0x1b9c1e=_0x524b07;var _0x22b7c4,_0x3474f3;let _0x593a40=_0x12b758(_0x11a251['get'](_0x587f6e),_0x3af655);if(!_0x593a40)return!0x1;let _0x3bbc04=_0x11a251[_0x1b9c1e(0x152)](_0x59bdce),{unitId:_0x94136b,subUnitId:_0x1edd4c}=_0x593a40,_0x5f009b=_0x3bbc04[_0x1b9c1e(0x12b)](_0x94136b,_0x1edd4c);if(!_0x5f009b)return!0x1;let _0x306a01=_0x11a251[_0x1b9c1e(0x152)](_0x478a50),{shapeId:_0x1a2dbb,rotate:_0x310beb}=_0x3af655,_0x24c02a=_0x306a01[_0x1b9c1e(0x174)]({'unitId':_0x94136b,'subUnitId':_0x1edd4c,'drawingId':_0x1a2dbb});if(!_0x24c02a)return!0x1;let _0x4d6efa=_0x11a251['get'](G)[_0x1b9c1e(0x156)](_0x94136b,_0x1edd4c,_0x1a2dbb);if(!_0x4d6efa)return!0x1;let _0x571817=_0x11a251[_0x1b9c1e(0x152)](_0x42d311),_0x2b20cd=_0x11a251[_0x1b9c1e(0x152)](_0x766309),_0x538f6f=_0x11a251[_0x1b9c1e(0x152)](_0x1967ce),_0x31b175={..._0x24c02a['transform']};_0x310beb!==void 0x0&&(_0x31b175[_0x1b9c1e(0x182)]=(_0x31b175['angle']||0x0)+_0x310beb);let _0x104c90=_0xc9c2ce(_0x31b175,_0x5f009b),_0x5bd297=_0x2eabf8(_0x31b175,_0x5f009b),_0x2be230=_0x4d6efa['getShapeType'](),_0x5edb8b=_0x4d6efa[_0x1b9c1e(0x12c)](),_0x46c0a0={'unitId':_0x94136b,'subUnitId':_0x1edd4c,'drawingId':_0x1a2dbb,'drawingType':_0x4b689a[_0x1b9c1e(0x15c)],'sheetTransform':_0x104c90,'transform':_0x31b175,'data':{'shapeType':_0x2be230,'shapeData':_0x5edb8b},'axisAlignSheetTransform':_0x5bd297,'allowTransform':!0x0},{undo:_0x38ece1,redo:_0x240492,objects:_0x1539a3}=_0x306a01[_0x1b9c1e(0x166)]([_0x46c0a0]),_0x468b9=_0x538f6f[_0x1b9c1e(0x188)]({'id':_0x25cc72['id'],'params':{'unitId':_0x94136b,'drawings':[_0x46c0a0]}}),_0x4e39ef=[...(_0x22b7c4=_0x468b9[_0x1b9c1e(0x158)])==null?[]:_0x22b7c4,{'id':_0x42ee93['id'],'params':{'unitId':_0x94136b,'subUnitId':_0x1edd4c,'op':_0x240492,'objects':_0x1539a3,'type':_0x34149e[_0x1b9c1e(0x13f)]}},{'id':_0x1c3205['id'],'params':[_0x94136b]},..._0x468b9[_0x1b9c1e(0x10a)]],_0x4ca1fb=[...(_0x3474f3=_0x468b9[_0x1b9c1e(0x140)])==null?[]:_0x3474f3,{'id':_0x42ee93['id'],'params':{'unitId':_0x94136b,'subUnitId':_0x1edd4c,'op':_0x38ece1,'objects':_0x1539a3,'type':_0x34149e['UPDATE']}},{'id':_0x1c3205['id'],'params':[_0x94136b]},..._0x468b9['undos']];return _0x618d40(_0x4e39ef,_0x571817)[_0x1b9c1e(0x191)]?(_0x2b20cd[_0x1b9c1e(0x124)]({'unitID':_0x94136b,'undoMutations':_0x4ca1fb,'redoMutations':_0x4e39ef}),!0x0):!0x1;}},Z={'type':_0x6a9665[_0x524b07(0x135)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x1bb721,_0xa6ab78)=>{const _0x2f5202=_0x524b07;var _0x468301;let _0xdb49c3=_0x12b758(_0x1bb721[_0x2f5202(0x152)](_0x587f6e),_0xa6ab78);if(!_0xdb49c3)return!0x1;let {unitId:_0x177b96,subUnitId:_0x59d5c8}=_0xdb49c3,{shapeId:_0x4edc5c}=_0xa6ab78,_0x57b9c9=_0x1bb721[_0x2f5202(0x152)](G)[_0x2f5202(0x156)](_0x177b96,_0x59d5c8,_0x4edc5c);if(!_0x57b9c9)return!0x1;let _0xdffda1=_0x57b9c9[_0x2f5202(0x151)](),_0x36ebfd=(_0x468301=_0xdffda1==null?void 0x0:_0xdffda1[_0x2f5202(0x14c)])==null?!0x0:_0x468301,_0x1e43b7=!_0x36ebfd,_0x4f4013=_0x1bb721[_0x2f5202(0x152)](_0x42d311),_0x545b08=_0x1bb721[_0x2f5202(0x152)](_0x766309),_0x47b2ba={'unitId':_0x177b96,'subUnitId':_0x59d5c8,'shapeId':_0x4edc5c,'shapeData':{'shapeText':{'isHorizontal':_0x1e43b7}}},_0x4fee5f={'unitId':_0x177b96,'subUnitId':_0x59d5c8,'shapeId':_0x4edc5c,'shapeData':{'shapeText':{'isHorizontal':_0x36ebfd}}},_0x42ceca=[{'id':Y['id'],'params':_0x47b2ba}],_0x5a96da=[{'id':Y['id'],'params':_0x4fee5f}];return _0x618d40(_0x42ceca,_0x4f4013)[_0x2f5202(0x191)]?(_0x545b08[_0x2f5202(0x124)]({'unitID':_0x177b96,'undoMutations':_0x5a96da,'redoMutations':_0x42ceca}),!0x0):!0x1;}},ne={'type':_0x6a9665[_0x524b07(0x135)],'id':'sheet.command.update-connector-relation','handler':(_0xd02ff,_0x3266b8)=>{const _0x273fd3=_0x524b07;var _0x5c6b82,_0x5efdf8,_0x537bbd,_0x2f45a6;let _0x111ee3=_0x12b758(_0xd02ff[_0x273fd3(0x152)](_0x587f6e),_0x3266b8);if(!_0x111ee3)return!0x1;let _0x301f12=_0xd02ff[_0x273fd3(0x152)](_0x59bdce),{unitId:_0x51a4eb,subUnitId:_0x4d396b}=_0x111ee3,_0xaf2aec=_0x301f12[_0x273fd3(0x12b)](_0x51a4eb,_0x4d396b);if(!_0xaf2aec)return!0x1;let _0x4360db=_0xd02ff[_0x273fd3(0x152)](_0x478a50),{connectorShapeId:_0xd79ce0,width:_0x45c785,height:_0x41058d,left:_0x1f76fc,top:_0xd38776,flipX:_0x2a5295,flipY:_0x453f22,rotation:_0x193ab2,oldAdjustValues:_0x5593ad,newAdjustValues:_0x1a728b,oldLineType:_0x522ed8,newLineType:_0x3b1738,oldRelation:_0x51ee16,newRelation:_0x59511a}=_0x3266b8,_0x593d3f=_0x4360db[_0x273fd3(0x174)]({'unitId':_0x51a4eb,'subUnitId':_0x4d396b,'drawingId':_0xd79ce0});if(!_0x593d3f)return!0x1;let _0x514ffc=_0xd02ff[_0x273fd3(0x152)](G)[_0x273fd3(0x156)](_0x51a4eb,_0x4d396b,_0xd79ce0);if(!_0x514ffc)return!0x1;let _0xe74fa0=_0xd02ff[_0x273fd3(0x152)](_0x42d311),_0x1c51cb=_0xd02ff[_0x273fd3(0x152)](_0x766309),_0x5c049a=_0xd02ff[_0x273fd3(0x152)](_0x1967ce),_0x3e7138={..._0x593d3f[_0x273fd3(0x175)],'width':_0x45c785,'height':_0x41058d,'left':_0x1f76fc,'top':_0xd38776,'flipX':_0x2a5295,'flipY':_0x453f22,'angle':(_0x5c6b82=_0x193ab2==null?(_0x5efdf8=_0x593d3f[_0x273fd3(0x175)])==null?void 0x0:_0x5efdf8[_0x273fd3(0x182)]:_0x193ab2)==null?0x0:_0x5c6b82},_0x168b44=_0xc9c2ce(_0x3e7138,_0xaf2aec),_0xd8294c=_0x2eabf8(_0x3e7138,_0xaf2aec),_0xecb6d3=_0x514ffc['getShapeType'](),_0xd1cd6a=_0x514ffc[_0x273fd3(0x12c)](),_0x51a272={'unitId':_0x51a4eb,'subUnitId':_0x4d396b,'drawingId':_0xd79ce0,'drawingType':_0x4b689a[_0x273fd3(0x15c)],'sheetTransform':_0x168b44,'transform':_0x3e7138,'data':{'shapeType':_0x3b1738||_0x522ed8||_0xecb6d3,'shapeData':{..._0xd1cd6a,'adjustValues':_0x1a728b||_0x5593ad||(_0xd1cd6a==null?void 0x0:_0xd1cd6a[_0x273fd3(0x11e)]),'relation':_0x59511a||_0x51ee16||(_0xd1cd6a==null?void 0x0:_0xd1cd6a[_0x273fd3(0x148)])}},'axisAlignSheetTransform':_0xd8294c,'allowTransform':!0x0},{undo:_0x1680e7,redo:_0x416f29,objects:_0x117faa}=_0x4360db['getBatchUpdateOp']([_0x51a272]),_0x33f278=_0x5c049a[_0x273fd3(0x188)]({'id':_0x25cc72['id'],'params':{'unitId':_0x51a4eb,'drawings':[_0x51a272]}}),_0x55343f=[...(_0x537bbd=_0x33f278[_0x273fd3(0x158)])==null?[]:_0x537bbd,{'id':_0x42ee93['id'],'params':{'unitId':_0x51a4eb,'subUnitId':_0x4d396b,'op':_0x416f29,'objects':_0x117faa,'type':_0x34149e[_0x273fd3(0x13f)]}},{'id':_0x1c3205['id'],'params':[_0x51a4eb]},..._0x33f278[_0x273fd3(0x10a)],{'id':Y['id'],'params':{'unitId':_0x51a4eb,'subUnitId':_0x4d396b,'shapeId':_0xd79ce0,'shapeType':_0x3b1738,'shapeData':{'adjustValues':_0x1a728b,'relation':_0x59511a}}}],_0x11eb12=[...(_0x2f45a6=_0x33f278[_0x273fd3(0x140)])==null?[]:_0x2f45a6,{'id':_0x42ee93['id'],'params':{'unitId':_0x51a4eb,'subUnitId':_0x4d396b,'op':_0x1680e7,'objects':_0x117faa,'type':_0x34149e[_0x273fd3(0x13f)]}},{'id':_0x1c3205['id'],'params':[_0x51a4eb]},..._0x33f278[_0x273fd3(0x196)],{'id':Y['id'],'params':{'unitId':_0x51a4eb,'subUnitId':_0x4d396b,'shapeId':_0xd79ce0,'shapeType':_0xecb6d3,'shapeData':{..._0xd1cd6a,'adjustValues':_0x5593ad||(_0xd1cd6a==null?void 0x0:_0xd1cd6a[_0x273fd3(0x11e)]),'relation':_0x51ee16||(_0xd1cd6a==null?void 0x0:_0xd1cd6a['relation'])}}}];return _0x618d40(_0x55343f,_0xe74fa0)[_0x273fd3(0x191)]?(_0x1c51cb[_0x273fd3(0x124)]({'unitID':_0x51a4eb,'undoMutations':_0x11eb12,'redoMutations':_0x55343f}),!0x0):!0x1;}},re={'type':_0x6a9665[_0x524b07(0x135)],'id':'sheet.command.update-line-shape-resize','handler':(_0x42d5c8,_0xa20814)=>{const _0x9937d5=_0x524b07;var _0x2e1fe1,_0x3e19e6;let _0x16476b=_0x12b758(_0x42d5c8['get'](_0x587f6e),_0xa20814);if(!_0x16476b)return!0x1;let _0xd18037=_0x42d5c8[_0x9937d5(0x152)](_0x59bdce),{unitId:_0x172ec6,subUnitId:_0x50f90c}=_0x16476b,_0x2754a0=_0xd18037[_0x9937d5(0x12b)](_0x172ec6,_0x50f90c);if(!_0x2754a0)return!0x1;let _0x2b22cd=_0x42d5c8[_0x9937d5(0x152)](_0x478a50),{shapeId:_0x5afa94,width:_0x224ec8,height:_0x9d9c4f,left:_0x329d2d,top:_0x2f0b13,flipX:_0x1c1791,flipY:_0x3afc3b,angle:_0x169d1f,oldAdjustValues:_0x15ae43,newAdjustValues:_0x596021,oldLineType:_0x3a0cec,newLineType:_0x61b3f7}=_0xa20814,_0x31cfd9=_0x2b22cd[_0x9937d5(0x174)]({'unitId':_0x172ec6,'subUnitId':_0x50f90c,'drawingId':_0x5afa94});if(!_0x31cfd9)return!0x1;let _0x31cb10=_0x42d5c8[_0x9937d5(0x152)](G)['getShapeModel'](_0x172ec6,_0x50f90c,_0x5afa94);if(!_0x31cb10)return!0x1;let _0xcec1c5=_0x42d5c8[_0x9937d5(0x152)](_0x42d311),_0x32dc1c=_0x42d5c8[_0x9937d5(0x152)](_0x766309),_0x4b8197=_0x42d5c8[_0x9937d5(0x152)](_0x1967ce),_0x169a5e={..._0x31cfd9['transform'],'width':_0x224ec8,'height':_0x9d9c4f,'left':_0x329d2d,'top':_0x2f0b13,'flipX':_0x1c1791,'flipY':_0x3afc3b,'angle':_0x169d1f},_0x2cb7bf=_0xc9c2ce(_0x169a5e,_0x2754a0),_0x4d1f2e=_0x2eabf8(_0x169a5e,_0x2754a0),_0x46da28=_0x31cb10['getShapeType'](),_0x9d77fc=_0x31cb10[_0x9937d5(0x12c)](),_0x292700={'unitId':_0x172ec6,'subUnitId':_0x50f90c,'drawingId':_0x5afa94,'drawingType':_0x4b689a['DRAWING_SHAPE'],'sheetTransform':_0x2cb7bf,'transform':_0x169a5e,'data':{'shapeType':_0x61b3f7||_0x3a0cec||_0x46da28,'shapeData':{..._0x9d77fc,'adjustValues':_0x596021||_0x15ae43||(_0x9d77fc==null?void 0x0:_0x9d77fc[_0x9937d5(0x11e)])}},'axisAlignSheetTransform':_0x4d1f2e,'allowTransform':!0x0},{undo:_0xe259d2,redo:_0x38a209,objects:_0x30c1df}=_0x2b22cd[_0x9937d5(0x166)]([_0x292700]),_0x21e725=_0x4b8197[_0x9937d5(0x188)]({'id':_0x25cc72['id'],'params':{'unitId':_0x172ec6,'drawings':[_0x292700]}}),_0x1acd13=[...(_0x2e1fe1=_0x21e725[_0x9937d5(0x158)])==null?[]:_0x2e1fe1,{'id':_0x42ee93['id'],'params':{'unitId':_0x172ec6,'subUnitId':_0x50f90c,'op':_0x38a209,'objects':_0x30c1df,'type':_0x34149e[_0x9937d5(0x13f)]}},{'id':_0x1c3205['id'],'params':[_0x172ec6]},..._0x21e725['redos'],{'id':Y['id'],'params':{'unitId':_0x172ec6,'subUnitId':_0x50f90c,'shapeId':_0x5afa94,'shapeType':_0x61b3f7,'shapeData':{'adjustValues':_0x596021}}}],_0x1fff1e=[...(_0x3e19e6=_0x21e725['preUndos'])==null?[]:_0x3e19e6,{'id':_0x42ee93['id'],'params':{'unitId':_0x172ec6,'subUnitId':_0x50f90c,'op':_0xe259d2,'objects':_0x30c1df,'type':_0x34149e[_0x9937d5(0x13f)]}},{'id':_0x1c3205['id'],'params':[_0x172ec6]},..._0x21e725[_0x9937d5(0x196)],{'id':Y['id'],'params':{'unitId':_0x172ec6,'subUnitId':_0x50f90c,'shapeId':_0x5afa94,'shapeType':_0x46da28,'shapeData':{..._0x9d77fc,'adjustValues':_0x15ae43||(_0x9d77fc==null?void 0x0:_0x9d77fc[_0x9937d5(0x11e)])}}}];return _0x618d40(_0x1acd13,_0xcec1c5)['result']?(_0x32dc1c[_0x9937d5(0x124)]({'unitID':_0x172ec6,'undoMutations':_0x1fff1e,'redoMutations':_0x1acd13}),!0x0):!0x1;}},Q={'id':_0x524b07(0x10d),'type':_0x6a9665['MUTATION'],'handler':(_0x387d4d,_0x3d9e55)=>{const _0x398169=_0x524b07;let {unitId:_0x4fe89a,subUnitId:_0xa26990,shapeType:_0x4c3a54,shapeId:_0x297eec,shapeData:_0x177f0a}=_0x3d9e55,_0x4b2acb=_0x387d4d[_0x398169(0x152)](G)[_0x398169(0x156)](_0x4fe89a,_0xa26990,_0x297eec);return _0x4b2acb&&(_0x4b2acb[_0x398169(0x109)](_0x4c3a54),_0x177f0a&&(_0x4b2acb==null||_0x4b2acb[_0x398169(0x14f)](_0x177f0a))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x6a9665[_0x524b07(0x135)],'handler':(_0x19650c,_0x1a52be)=>{const _0x15be5e=_0x524b07;if(!_0x1a52be)return!0x1;let _0x31a125=_0x19650c['get'](_0x42d311),_0x3c0fdc=_0x19650c['get'](G),_0x3d11d7=_0x19650c[_0x15be5e(0x152)](_0x766309),_0x998093=[],_0x102d87=[],{unitId:_0x5535bf,subUnitId:_0xff1312,shapeId:_0x5901da,shapeType:_0xa124de,shapeData:_0x39cd39}=_0x1a52be,_0x400c9b=_0x3c0fdc[_0x15be5e(0x156)](_0x5535bf,_0xff1312,_0x5901da);if(_0x400c9b){let _0x406a7d=_0x400c9b['getShapeType'](),_0x595853=Object[_0x15be5e(0x121)]({},_0x400c9b[_0x15be5e(0x12c)]()),_0xc60b27={'unitId':_0x5535bf,'subUnitId':_0xff1312,'shapeId':_0x5901da,'shapeType':_0xa124de,'shapeData':_0x39cd39},_0x47b87d={'unitId':_0x5535bf,'subUnitId':_0xff1312,'shapeId':_0x5901da,'shapeType':_0x406a7d,'shapeData':_0x595853};return _0x998093['push']({'id':Q['id'],'params':_0xc60b27}),_0x102d87[_0x15be5e(0x17e)]({'id':Q['id'],'params':_0x47b87d}),_0x998093[_0x15be5e(0x147)](_0x2ca8f4=>_0x31a125[_0x15be5e(0x105)](_0x2ca8f4['id'],_0x2ca8f4[_0x15be5e(0x183)]))&&_0x3d11d7[_0x15be5e(0x124)]({'unitID':_0x5535bf,'redoMutations':[..._0x998093],'undoMutations':[..._0x102d87]}),!0x0;}return!0x1;}};var ae=_0x524b07(0x181),oe=_0x524b07(0xfd);const se=_0x524b07(0x15e);Symbol(se);function _0x36ec(){const _0x3a4fcf=['filter','ensureSkeleton','updateContext','insertShape','result','add','_initSnapshot','_deserializeShapeForUnit','getShapeDataById','undos','forEach','delete','1045142euSJjZ','0.23.0','_commandService','toJSON','UNIVER_SHEET','top','getShapeRelation','6AkENjM','991534GzRpfa','syncExecuteCommand','INSERT','_ensureShapeModelManager','_config','setShapeType','redos','getCellWithCoordByIndex','getLineShapeRelation','sheet.mutation.update-shape-type','getEndConnectInfo','getBasicShapeType','flipY','93004eessKp','sheet.mutation.insert-shape','getStartConnectInfo','index','cos','getBatchAddOp','rotateEnabled','height','range','REMOVE','cxnIndex','removeShape','isFrom','adjustValues','clear','_shapes','assign','symbol','find','pushUndoRedo','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','entries','SHEET_SHAPE_PLUGIN','_sheetInterceptorService','resizeEnabled','_resourcesManagerService','getSkeleton','getShapeData','getOwnPropertyDescriptor','_serializeShapeForUnit','dispose','getDrawingData','11050216YjePQA','getAdjustValueByName','removeLinePoints','_shapeModelManagerMap','COMMAND','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getAdjustNames','ang','shapeData','stringify','lineShapeId','_configService','getBasicShapeRelation','call','UPDATE','preUndos','function','length','object','decorate','_getConnectPointInfo','sheet.command.insert-shape','every','relation','_sheetsShapeService','drawingType','11356344vQDwDe','isHorizontal','flipX','_groupIds','setShapeData','_initCommands','getShapeTextData','get','disposeWithMe','addShape','toPrimitive','getShapeModel','MUTATION','preRedos','position','type','keys','DRAWING_SHAPE','getCellIndexAndOffsetByPosition','sheets-shape.config','borderEnabled','_linesIds','sheet.mutation.remove-shape','171JCUiST','_addLineRerouteUpdates','_injector','packageName','getBatchUpdateOp','10PSRypP','hasShape','fromJSON','defineProperty','prototype','startY','width','worldRect','from','setConfig','53141110bVXXoI','sheet.command.toggle-shape-flip','_sheetSkeletonService','getDrawingByParam','transform','has','3oXdMkY','fill','getShapeType','1543555PaUESQ','left','onStarting','string','push','getConnectionSiteList','iterator','@univerjs-pro/sheets-shape','angle','params','_disposed','_initCommandInterceptor','getShapeTypeById','_drawingManagerService','onCommandExecute','data','sheet.command.set-shape-rotate','set','shapeId'];_0x36ec=function(){return _0x3a4fcf;};return _0x36ec();}const ce={};let le=class extends _0xf366a6{constructor(_0x575e9d,_0x5caef0,_0x5875f0,_0x5ac707,_0x3a9b58){const _0x1dd6a8=_0x524b07;super(),this[_0x1dd6a8(0xfe)]=_0x575e9d,this[_0x1dd6a8(0x128)]=_0x5caef0,this[_0x1dd6a8(0x173)]=_0x5875f0,this[_0x1dd6a8(0x149)]=_0x5ac707,this[_0x1dd6a8(0x187)]=_0x3a9b58,this[_0x1dd6a8(0x150)](),this[_0x1dd6a8(0x185)]();}[_0x524b07(0x150)](){const _0x5021e5=_0x524b07;[J,ee,te,X,Z,ne,re,K,q,Q,Y][_0x5021e5(0x197)](_0x236dd4=>this[_0x5021e5(0x153)](this[_0x5021e5(0xfe)]['registerCommand'](_0x236dd4)));}[_0x524b07(0x185)](){const _0x5533ff=_0x524b07;this[_0x5533ff(0x153)](this[_0x5533ff(0x128)]['interceptCommand']({'getMutations':_0x355bd6=>{const _0x2fde7b=_0x5533ff;if(_0x355bd6['id']===_0x114f87['id']){let {drawings:_0x2c14f4}=_0x355bd6[_0x2fde7b(0x183)],_0x23185a=_0x2c14f4[_0x2fde7b(0x18d)](_0xe6af41=>_0xe6af41[_0x2fde7b(0x14a)]===_0x4b689a[_0x2fde7b(0x15c)]);if(_0x23185a[_0x2fde7b(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x45b84a=[],_0x50dbe3=[];return _0x23185a['forEach'](_0x316d83=>{const _0x58ab16=_0x2fde7b;let {unitId:_0x51b842,subUnitId:_0x4b123d,drawingId:_0xe3b9cb}=_0x316d83,_0x3e6454=this[_0x58ab16(0x149)]['getShapeModel'](_0x51b842,_0x4b123d,_0xe3b9cb);if(!_0x3e6454)throw TypeError(_0x58ab16(0x125)+_0x3e6454);_0x45b84a['push']({'id':q['id'],'params':{'unitId':_0x51b842,'subUnitId':_0x4b123d,'shapeId':_0xe3b9cb}}),_0x50dbe3[_0x58ab16(0x17e)]({'id':K['id'],'params':{'unitId':_0x51b842,'subUnitId':_0x4b123d,'shapeId':_0xe3b9cb,'shapeType':_0x3e6454[_0x58ab16(0x179)](),'shapeData':_0x3e6454[_0x58ab16(0x12c)]()}});let _0x40d2c6=this[_0x58ab16(0x149)][_0x58ab16(0x13d)](_0x51b842,_0x4b123d,_0xe3b9cb);if(_0x40d2c6)for(let _0x40d1f8 of _0x40d2c6){let _0x303ecd=_0x40d1f8[_0x58ab16(0x13b)],_0x26fff4=_0x40d1f8[_0x58ab16(0x11d)],_0x3e792c=_0x26fff4?{'from':void 0x0}:{'to':void 0x0},_0x166559=_0x26fff4?{'from':{'shapeId':_0x40d1f8['shapeId'],'cxnIndex':_0x40d1f8[_0x58ab16(0x11b)]}}:{'to':{'shapeId':_0x40d1f8[_0x58ab16(0x18c)],'cxnIndex':_0x40d1f8[_0x58ab16(0x11b)]}};_0x45b84a[_0x58ab16(0x17e)]({'id':Y['id'],'params':{'unitId':_0x51b842,'subUnitId':_0x4b123d,'shapeId':_0x303ecd,'shapeData':{'relation':_0x3e792c}}}),_0x50dbe3[_0x58ab16(0x17e)]({'id':Y['id'],'params':{'unitId':_0x51b842,'subUnitId':_0x4b123d,'shapeId':_0x303ecd,'shapeData':{'relation':_0x166559}}});}}),{'preRedos':_0x45b84a,'redos':[],'preUndos':[],'undos':_0x50dbe3};}if(_0x355bd6['id']===_0x25cc72['id']){let {drawings:_0x1ef98e}=_0x355bd6[_0x2fde7b(0x183)],_0x235896=_0x1ef98e[_0x2fde7b(0x18d)](_0x43a265=>_0x43a265[_0x2fde7b(0x14a)]===_0x4b689a['DRAWING_SHAPE']);if(_0x235896[_0x2fde7b(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x400de7=[],_0x308182=[];for(let _0x67d39e of _0x235896){let {unitId:_0x4f4417,subUnitId:_0x3cf43f,drawingId:_0x51f200,transform:_0x562abf}=_0x67d39e;if(!_0x4f4417||!_0x3cf43f||!_0x51f200||!_0x562abf)continue;let _0x2daf97=this[_0x2fde7b(0x149)]['getShapeModel'](_0x4f4417,_0x3cf43f,_0x51f200);if(!_0x2daf97)throw TypeError(_0x2fde7b(0x125)+_0x2daf97);if(_0x2268cf(_0x2daf97['getShapeType']())){let _0x86e9d8=this[_0x2fde7b(0x149)]['getLineShapeRelation'](_0x4f4417,_0x3cf43f,_0x51f200);_0x86e9d8&&(_0x400de7[_0x2fde7b(0x17e)]({'id':Y['id'],'params':{'unitId':_0x4f4417,'subUnitId':_0x3cf43f,'shapeId':_0x51f200,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x308182['push']({'id':Y['id'],'params':{'unitId':_0x4f4417,'subUnitId':_0x3cf43f,'shapeId':_0x51f200,'shapeData':{'relation':_0x86e9d8}}}));}else{let _0x4a3547=this[_0x2fde7b(0x149)][_0x2fde7b(0x13d)](_0x4f4417,_0x3cf43f,_0x51f200);if(_0x4a3547&&_0x4a3547['length']>0x0)for(let _0x323c36 of _0x4a3547){let _0x2a595b=_0x323c36['lineShapeId'],_0x5f3aa8=_0x323c36['isFrom'],_0x40d3f3=this[_0x2fde7b(0x149)]['getShapeModel'](_0x4f4417,_0x3cf43f,_0x2a595b);if(!_0x40d3f3)continue;let _0x20ad6c=_0x40d3f3[_0x2fde7b(0x113)](),_0x4fd144=_0x40d3f3[_0x2fde7b(0x10e)]();_0x20ad6c&&_0x4fd144?this[_0x2fde7b(0x163)](_0x4f4417,_0x3cf43f,_0x2a595b,_0x40d3f3,_0x20ad6c,_0x4fd144,_0x400de7,_0x308182,_0x51f200,_0x562abf):this['_addLineFollowShapeUpdates'](_0x4f4417,_0x3cf43f,_0x2a595b,_0x40d3f3,_0x5f3aa8?_0x20ad6c:_0x4fd144,_0x5f3aa8,_0x400de7,_0x308182,_0x51f200,_0x562abf);}}}return{'preRedos':[],'redos':_0x400de7,'preUndos':_0x308182,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x33818b,_0x2d5867,_0x51dd07,_0x23a8b2,_0xb43d96){const _0x56d8e8=_0x524b07;if(!_0x2d5867||!_0x51dd07)return null;let {shapeId:_0x216f98,cxnIndex:_0x547581}=_0x33818b,_0xf7131b=this[_0x56d8e8(0x149)]['getShapeModel'](_0x2d5867,_0x51dd07,_0x216f98);if(!_0xf7131b)return null;let _0x3b473a=this[_0x56d8e8(0x187)]['getDrawingByParam']({'unitId':_0x2d5867,'subUnitId':_0x51dd07,'drawingId':_0x216f98});if(!(_0x3b473a!=null&&_0x3b473a[_0x56d8e8(0x175)]))return null;let {left:_0x25b467=0x0,top:_0x424c79=0x0,width:_0x298923=0x0,height:_0x13e534=0x0,flipX:_0x204d71=!0x1,flipY:_0x1fde0d=!0x1,angle:_0x177c2a}=_0x3b473a[_0x56d8e8(0x175)];if(_0xb43d96&&_0x23a8b2===_0x216f98){var _0x6b770b,_0x7cd2ad,_0x2b0a59,_0x2b7319,_0xbdbdf0,_0x1ac197,_0x57c256;_0x25b467=(_0x6b770b=_0xb43d96[_0x56d8e8(0x17b)])==null?_0x25b467:_0x6b770b,_0x424c79=(_0x7cd2ad=_0xb43d96['top'])==null?_0x424c79:_0x7cd2ad,_0x298923=(_0x2b0a59=_0xb43d96['width'])==null?_0x298923:_0x2b0a59,_0x13e534=(_0x2b7319=_0xb43d96[_0x56d8e8(0x118)])==null?_0x13e534:_0x2b7319,_0x204d71=(_0xbdbdf0=_0xb43d96['flipX'])==null?_0x204d71:_0xbdbdf0,_0x1fde0d=(_0x1ac197=_0xb43d96[_0x56d8e8(0x110)])==null?_0x1fde0d:_0x1ac197,_0x177c2a=(_0x57c256=_0xb43d96[_0x56d8e8(0x182)])==null?_0x177c2a:_0x57c256;}_0xf7131b[_0x56d8e8(0x18f)]({'width':_0x298923,'height':_0x13e534});let _0x24ab8f=_0xf7131b[_0x56d8e8(0x17f)]()[_0x56d8e8(0x123)](_0x27a46e=>_0x27a46e[_0x56d8e8(0x114)]===_0x547581);if(!_0x24ab8f)return null;let _0x1b141b=_0x204d71?_0x298923-_0x24ab8f['x']:_0x24ab8f['x'],_0x34eefb=_0x1fde0d?_0x13e534-_0x24ab8f['y']:_0x24ab8f['y'];if(_0x177c2a!==0x0&&_0x177c2a!=null){let _0x3dfcf7=_0x177c2a*Math['PI']/0xb4,_0x5f357b=Math[_0x56d8e8(0x115)](_0x3dfcf7),_0x5a2fec=Math['sin'](_0x3dfcf7),_0x2f4fb1=_0x298923/0x2,_0x2473e9=_0x13e534/0x2,_0x1e05b3=_0x1b141b-_0x2f4fb1,_0x2dfc9c=_0x34eefb-_0x2473e9;_0x1b141b=_0x2f4fb1+_0x1e05b3*_0x5f357b-_0x2dfc9c*_0x5a2fec,_0x34eefb=_0x2473e9+_0x1e05b3*_0x5a2fec+_0x2dfc9c*_0x5f357b;}_0x1b141b+=_0x25b467,_0x34eefb+=_0x424c79;let _0x9f62a5=_0x24ab8f[_0x56d8e8(0x138)]/0xea60;_0x204d71&&(_0x9f62a5=0xb4-_0x9f62a5),_0x1fde0d&&(_0x9f62a5=-_0x9f62a5),_0x9f62a5+=_0x177c2a||0x0,_0x9f62a5=(_0x9f62a5%0x168+0x168)%0x168;let _0x59b3d6=_0x99cd44({'left':_0x25b467,'top':_0x424c79,'width':_0x298923,'height':_0x13e534},_0x177c2a||0x0);return{'point':{'x':_0x1b141b,'y':_0x34eefb},'angle':_0x9f62a5,'bounds':_0x59b3d6};}['_addLineRerouteUpdates'](_0x31f4f4,_0x500bc2,_0x3b2270,_0x2edd2e,_0x4459d4,_0x72f95,_0x3bfd6f,_0x33ebe9,_0x260f0f,_0x3c9920){const _0x436338=_0x524b07;let _0x1c4c9d=this['_sheetSkeletonService'][_0x436338(0x12b)](_0x31f4f4,_0x500bc2);if(!_0x1c4c9d)return;let _0x2ab5e4=_0x2edd2e[_0x436338(0x102)](),_0x2e8cef=_0x2edd2e[_0x436338(0x137)](),_0x40bb45={},_0x1ad217={};_0x2e8cef['forEach'](_0x3d3530=>{const _0x391073=_0x436338;let _0x2bfff1=_0x2edd2e[_0x391073(0x132)](_0x3d3530);_0x1ad217[_0x3d3530]=_0x2bfff1==null?0x0:_0x2bfff1;});let _0x106ba7=this[_0x436338(0x145)](_0x4459d4,_0x31f4f4,_0x500bc2,_0x260f0f,_0x3c9920),_0x4bc8c4=this[_0x436338(0x145)](_0x72f95,_0x31f4f4,_0x500bc2,_0x260f0f,_0x3c9920);if(_0x106ba7&&_0x4bc8c4){let _0x5247ae=_0x2edd2e[_0x436338(0x179)](),_0x6e2e0d=_0x306e4f(_0x106ba7,_0x4bc8c4,_0x5247ae),_0x3ccea3=_0x5247ae;if(_0x6e2e0d){let _0x184ec2=_0x24d05d(_0x6e2e0d,_0x2edd2e[_0x436338(0x179)]()),_0xd4668f=this['_drawingManagerService'][_0x436338(0x130)](_0x31f4f4,_0x500bc2);if(_0xd4668f&&_0xd4668f[_0x3b2270]){let _0x591841=_0xd4668f[_0x3b2270];_0x3ccea3=_0x184ec2['lineType'];for(let [_0x51c7ef,_0x5ef5b3]of Object[_0x436338(0x126)](_0x184ec2[_0x436338(0x11e)]))_0x40bb45[_0x51c7ef]=_0x5ef5b3;let _0x5779cc={..._0x591841['transform'],'width':_0x184ec2[_0x436338(0x16e)][_0x436338(0x16d)],'height':_0x184ec2[_0x436338(0x16e)][_0x436338(0x118)],'left':_0x184ec2[_0x436338(0x16e)][_0x436338(0x17b)],'top':_0x184ec2[_0x436338(0x16e)][_0x436338(0x101)],'flipX':_0x184ec2[_0x436338(0x16e)]['flipX'],'flipY':_0x184ec2[_0x436338(0x16e)][_0x436338(0x110)],'angle':_0x184ec2['rotation']},_0x3079b6=_0xc9c2ce(_0x5779cc,_0x1c4c9d),_0x374473=_0x2eabf8(_0x5779cc,_0x1c4c9d),_0x1913c1={'unitId':_0x31f4f4,'subUnitId':_0x500bc2,'drawingType':_0x4b689a[_0x436338(0x15c)],'drawingId':_0x3b2270,'transform':_0x5779cc,'sheetTransform':_0x3079b6,'axisAlignSheetTransform':_0x374473},{unitId:_0x565fad,subUnitId:_0x47eead,undo:_0x5733b8,redo:_0x414a6f,objects:_0x46e853}=this['_drawingManagerService'][_0x436338(0x166)]([_0x1913c1]);_0x3bfd6f[_0x436338(0x17e)]({'id':_0x42ee93['id'],'params':{'unitId':_0x565fad,'subUnitId':_0x47eead,'op':_0x414a6f,'objects':_0x46e853,'type':_0x34149e[_0x436338(0x13f)]}}),_0x33ebe9['push']({'id':_0x42ee93['id'],'params':{'unitId':_0x565fad,'subUnitId':_0x47eead,'op':_0x5733b8,'objects':_0x46e853,'type':_0x34149e[_0x436338(0x13f)]}});}_0x2edd2e[_0x436338(0x133)]();}_0x3bfd6f['push']({'id':Y['id'],'params':{'unitId':_0x31f4f4,'subUnitId':_0x500bc2,'shapeId':_0x3b2270,'shapeType':_0x3ccea3,'shapeData':{'adjustValues':_0x40bb45,'relation':_0x2ab5e4}}}),_0x33ebe9['push']({'id':Y['id'],'params':{'unitId':_0x31f4f4,'subUnitId':_0x500bc2,'shapeId':_0x3b2270,'shapeType':_0x5247ae,'shapeData':{'adjustValues':_0x1ad217,'relation':_0x2ab5e4}}});}}['_addLineFollowShapeUpdates'](_0x4e6056,_0x21d4d3,_0x3699a6,_0x327044,_0x3d9dc9,_0x522280,_0x1bc867,_0x9c8cb5,_0x33f106,_0x5abbf1){const _0x40f1db=_0x524b07;var _0x3d3092;if(!_0x3d9dc9)return;let _0x4f2167=this[_0x40f1db(0x173)]['getSkeleton'](_0x4e6056,_0x21d4d3);if(!_0x4f2167)return;let _0x4efd1a=(_0x3d3092=this['_drawingManagerService'][_0x40f1db(0x174)]({'unitId':_0x4e6056,'subUnitId':_0x21d4d3,'drawingId':_0x33f106}))==null?void 0x0:_0x3d3092['transform'];if(!_0x4efd1a)return;let _0x11dd4e=_0x4efd1a[_0x40f1db(0x17b)]!==_0x5abbf1[_0x40f1db(0x17b)]||_0x4efd1a[_0x40f1db(0x101)]!==_0x5abbf1[_0x40f1db(0x101)],_0x2d8329=_0x4efd1a[_0x40f1db(0x16d)]!==_0x5abbf1[_0x40f1db(0x16d)]||_0x4efd1a['height']!==_0x5abbf1[_0x40f1db(0x118)],_0x58a868=_0x4efd1a[_0x40f1db(0x14d)]!==_0x5abbf1[_0x40f1db(0x14d)]||_0x4efd1a[_0x40f1db(0x110)]!==_0x5abbf1['flipY'],_0x3f858e=_0x4efd1a[_0x40f1db(0x182)]!==_0x5abbf1[_0x40f1db(0x182)];if(_0x11dd4e&&!_0x2d8329&&!_0x58a868&&!_0x3f858e){var _0x51a7fc,_0x1232e1,_0x42f8de,_0x53ef5d;let _0x5672c7=((_0x51a7fc=_0x5abbf1['left'])==null?0x0:_0x51a7fc)-((_0x1232e1=_0x4efd1a[_0x40f1db(0x17b)])==null?0x0:_0x1232e1),_0x205a64=((_0x42f8de=_0x5abbf1[_0x40f1db(0x101)])==null?0x0:_0x42f8de)-((_0x53ef5d=_0x4efd1a[_0x40f1db(0x101)])==null?0x0:_0x53ef5d),_0x3e6afe=this[_0x40f1db(0x187)][_0x40f1db(0x130)](_0x4e6056,_0x21d4d3);if(_0x3e6afe&&_0x3e6afe[_0x3699a6]){var _0x4db9f1,_0x4ed2f6,_0x1296a4,_0x2fd279;let _0x5681a3=_0x3e6afe[_0x3699a6],_0x13a391={..._0x5681a3[_0x40f1db(0x175)],'left':((_0x4db9f1=(_0x4ed2f6=_0x5681a3[_0x40f1db(0x175)])==null?void 0x0:_0x4ed2f6[_0x40f1db(0x17b)])==null?0x0:_0x4db9f1)+_0x5672c7,'top':((_0x1296a4=(_0x2fd279=_0x5681a3[_0x40f1db(0x175)])==null?void 0x0:_0x2fd279[_0x40f1db(0x101)])==null?0x0:_0x1296a4)+_0x205a64},_0x5ad5a9=_0xc9c2ce(_0x13a391,_0x4f2167),_0xfc29a0=_0x2eabf8(_0x13a391,_0x4f2167),_0x58d13f={'unitId':_0x4e6056,'subUnitId':_0x21d4d3,'drawingType':_0x4b689a[_0x40f1db(0x15c)],'drawingId':_0x3699a6,'transform':_0x13a391,'sheetTransform':_0x5ad5a9,'axisAlignSheetTransform':_0xfc29a0},{unitId:_0x43f636,subUnitId:_0x5ec14c,undo:_0x3540db,redo:_0x4a1011,objects:_0x111838}=this[_0x40f1db(0x187)]['getBatchUpdateOp']([_0x58d13f]);_0x1bc867[_0x40f1db(0x17e)]({'id':_0x42ee93['id'],'params':{'unitId':_0x43f636,'subUnitId':_0x5ec14c,'op':_0x4a1011,'objects':_0x111838,'type':_0x34149e['UPDATE']}}),_0x9c8cb5['push']({'id':_0x42ee93['id'],'params':{'unitId':_0x43f636,'subUnitId':_0x5ec14c,'op':_0x3540db,'objects':_0x111838,'type':_0x34149e[_0x40f1db(0x13f)]}});}}else{let _0x4068b5=_0x327044[_0x40f1db(0x113)](),_0x35db81=_0x327044['getEndConnectInfo']();this[_0x40f1db(0x163)](_0x4e6056,_0x21d4d3,_0x3699a6,_0x327044,_0x4068b5,_0x35db81,_0x1bc867,_0x9c8cb5,_0x33f106,_0x5abbf1);}}};le=W([U(0x0,_0x42d311),U(0x1,_0x1c1ea5(_0x1967ce)),U(0x2,_0x1c1ea5(_0x59bdce)),U(0x3,_0x1c1ea5(G)),U(0x4,_0x1c1ea5(_0x4b5bfb))],le);let $=class extends _0x1b8cd9{constructor(_0x200d28=ce,_0xd910e4,_0x5c1b28,_0x511397){const _0x2a2baa=_0x524b07;super(),this[_0x2a2baa(0x108)]=_0x200d28,this[_0x2a2baa(0x164)]=_0xd910e4,this['_commandService']=_0x5c1b28,this['_configService']=_0x511397;let {..._0x2b556b}=_0x508608({},ce,this[_0x2a2baa(0x108)]);this[_0x2a2baa(0x13c)][_0x2a2baa(0x170)](se,_0x2b556b);}[_0x524b07(0x17c)](){const _0x2d1cac=_0x524b07;let _0x4ab171=this['_injector'];[[H],[G],[le]][_0x2d1cac(0x197)](_0x83cf6f=>_0x4ab171[_0x2d1cac(0x192)](_0x83cf6f)),_0x44b044(_0x4ab171,[[G],[le]]);}};V($,_0x524b07(0x15a),_0x3d34e0[_0x524b07(0x100)]),V($,'pluginName','SHEET_SHAPE_PLUGIN'),V($,_0x524b07(0x165),ae),V($,'version',oe),$=W([_0x4d9764(_0x578903),U(0x1,_0x1c1ea5(_0x5373cb)),U(0x2,_0x42d311),U(0x3,_0xb915cd)],$);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 _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};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x245d3a=_0x1b79;(function(_0x13fb2b,_0xa99a92){const _0x4947ec=_0x1b79,_0x1da5fa=_0x13fb2b();while(!![]){try{const _0x14522e=parseInt(_0x4947ec(0x7b))/0x1+parseInt(_0x4947ec(0xa6))/0x2+-parseInt(_0x4947ec(0xb2))/0x3+-parseInt(_0x4947ec(0x97))/0x4+-parseInt(_0x4947ec(0xd8))/0x5+parseInt(_0x4947ec(0x8a))/0x6*(parseInt(_0x4947ec(0xa5))/0x7)+parseInt(_0x4947ec(0xca))/0x8*(parseInt(_0x4947ec(0x85))/0x9);if(_0x14522e===_0xa99a92)break;else _0x1da5fa['push'](_0x1da5fa['shift']());}catch(_0x268c45){_0x1da5fa['push'](_0x1da5fa['shift']());}}}(_0x2100,0xab119));import{ConnectorCoordinateTransform as _0x34439f,ShapeArrowSizeEnum as _0x54e0e1,ShapeArrowTypeEnum as _0x335d65,ShapeFillEnum as _0x3e14b8,ShapeGradientTypeEnum as _0x245464,ShapeLineCapEnum as _0xadc783,ShapeLineDashEnum as _0x2e2237,ShapeLineJoinEnum as _0x216ef4,ShapeLineTypeEnum as _0x39a7be,ShapeTypeEnum as _0x91019f,computeConnectorRouteLayout as _0x5129d0,getBasicShapeRotateBound as _0x423cee,isConnectorShape as _0x58493c,routeConnectorLineShape as _0x311777}from'@univerjs-pro/engine-shape';import{FEnum as _0x2fbe40}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x288aed,DEFAULT_SHAPE_WIDTH as _0x5857c2,InsertShapeCommand as _0x48442c,SetShapeDrawingDataCommand as _0xbd1de4,SheetsShapeService as _0x458533,UpdateConnectorRelationCommand as _0x10f71e}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x215d4d,generateRandomId as _0x58c69f}from'@univerjs/core';import{IDrawingManagerService as _0x155517}from'@univerjs/drawing';import{SheetSkeletonService as _0x55eb89,convertPositionCellToSheetOverGrid as _0x15097a}from'@univerjs/sheets';import{ISheetDrawingService as _0x428383,RemoveSheetDrawingCommand as _0x55e1a4}from'@univerjs/sheets-drawing';import{FWorksheet as _0x4ae227}from'@univerjs/sheets/facade';function _0x2100(){const _0x5b3436=['adjustValues','subUnitId','worldRect','sin','lineStrokeType','NoFill','ShapeFillEnum','connectShapes','stroke','getAdjustNames','size','relation','setStartArrowSize','gradientType','shapeData','color','call','abs','getConnectorLinePoints','setHeight','40fNpaeO','updateContext','DRAWING_SHAPE','lineJoinType','ShapeGradientTypeEnum','setShapeSolidFill','setStartArrowType','default','getDrawingPoints','getPosition','getSize','setShapeType','setEndArrowType','length','4214995AHXNPg','parse','shapeId','drawingType','get','top','keys','getShapes','setShapeGradientFill','setWidth','getConnectionSiteList','getShapeType','setStrokeLineJoinType','executeCommand','height','symbol','ang','getUnitId','function','entries','extend','flipY','ensureSkeleton','getAdjustPoints','startArrow','updateShape','_commandService','setStrokeLineCapType','Skeleton\x20for\x20unitId\x20','_preloadShapeProperties','flipX','unitId','getDrawingByParam','_resolveExistingOrFreeEndpoint','getDrawingData','localToWorld','112359HNUTcW','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','iterator','getEndConnectInfo','setEndArrowSize','getShapeRelation','index','\x20not\x20found','rotation','5100453LdBTvk','build','defineProperty','getShapeData','cxnIndex','139674zanUHq','from','left','getShapeModel','object','getStartConnectInfo','opacity','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','width','ShapeLineDashEnum','constructor','find','ShapeTypeEnum','2977220CiMNMz','_injector','isLineShape','stringify','ShapeArrowSizeEnum','newShape','_resolveEndpoints','fillType','connectionSiteIndex','string','getShapeId','drawId','getWorkbook','GradientFill','91xRTOJw','297650OgmbIm','SolidFill','transform','getSheetId','\x20and\x20subUnitId\x20','getAdjustValueByName','ShapeLineCapEnum','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','removeShape','shapeType','endArrow','shape','3328185vzRnmg','setStrokeLineType','fill','prototype'];_0x2100=function(){return _0x5b3436;};return _0x2100();}function _0x1b79(_0x3bb631,_0x3aa0e4){_0x3bb631=_0x3bb631-0x69;const _0x21003d=_0x2100();let _0x1b790b=_0x21003d[_0x3bb631];return _0x1b790b;}var k=class extends _0x2fbe40{get[_0x245d3a(0x96)](){return _0x91019f;}get[_0x245d3a(0xbc)](){return _0x3e14b8;}get[_0x245d3a(0xce)](){return _0x245464;}get['ShapeLineTypeEnum'](){return _0x39a7be;}get[_0x245d3a(0x93)](){return _0x2e2237;}get[_0x245d3a(0xac)](){return _0xadc783;}get['ShapeLineJoinEnum'](){return _0x216ef4;}get['ShapeArrowTypeEnum'](){return _0x335d65;}get[_0x245d3a(0x9b)](){return _0x54e0e1;}};_0x2fbe40[_0x245d3a(0x6b)](k);function A(_0x37bfc3){'@babel/helpers - typeof';const _0x4cdfb4=_0x245d3a;return A=typeof Symbol==_0x4cdfb4(0x69)&&typeof Symbol[_0x4cdfb4(0x7e)]==_0x4cdfb4(0xe7)?function(_0x18d3af){return typeof _0x18d3af;}:function(_0x695a3){const _0x2f19ac=_0x4cdfb4;return _0x695a3&&typeof Symbol==_0x2f19ac(0x69)&&_0x695a3[_0x2f19ac(0x94)]===Symbol&&_0x695a3!==Symbol[_0x2f19ac(0xb5)]?_0x2f19ac(0xe7):typeof _0x695a3;},A(_0x37bfc3);}function j(_0x2154af,_0x2e7aca){const _0x2b1046=_0x245d3a;if(A(_0x2154af)!=_0x2b1046(0x8e)||!_0x2154af)return _0x2154af;var _0x270bb0=_0x2154af[Symbol['toPrimitive']];if(_0x270bb0!==void 0x0){var _0x184d9a=_0x270bb0[_0x2b1046(0xc6)](_0x2154af,_0x2e7aca||_0x2b1046(0xd1));if(A(_0x184d9a)!='object')return _0x184d9a;throw TypeError(_0x2b1046(0x91));}return(_0x2e7aca==='string'?String:Number)(_0x2154af);}function M(_0x237fdb){const _0x395483=_0x245d3a;var _0x215426=j(_0x237fdb,_0x395483(0xa0));return A(_0x215426)==_0x395483(0xe7)?_0x215426:_0x215426+'';}function N(_0x51da70,_0x3d58ae,_0x3d016e){const _0x18de13=_0x245d3a;return(_0x3d58ae=M(_0x3d58ae))in _0x51da70?Object[_0x18de13(0x87)](_0x51da70,_0x3d58ae,{'value':_0x3d016e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51da70[_0x3d58ae]=_0x3d016e,_0x51da70;}var P=class{constructor(_0x261c9a,_0x5bcfea,_0x1ed22e,_0x50e9a8){const _0x2c19b6=_0x245d3a;N(this,_0x2c19b6(0x76),void 0x0),N(this,_0x2c19b6(0xb7),void 0x0),N(this,'drawId',void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x2c19b6(0x92),_0x5857c2),N(this,'height',_0x288aed),N(this,_0x2c19b6(0xaf),void 0x0),N(this,_0x2c19b6(0xc4),{}),N(this,'_injector',void 0x0),this['unitId']=_0x261c9a,this[_0x2c19b6(0xb7)]=_0x5bcfea,this[_0x2c19b6(0xa2)]=_0x1ed22e||_0x58c69f(),this[_0x2c19b6(0x98)]=_0x50e9a8;}['setPosition'](_0x6da34d,_0x3c339a,_0x2aa247,_0x3f0b01){const _0x311946=_0x245d3a;let _0x27ce42=this[_0x311946(0x98)][_0x311946(0xdc)](_0x55eb89)[_0x311946(0x6d)](this[_0x311946(0x76)],this[_0x311946(0xb7)]);if(!_0x27ce42)throw Error(_0x311946(0x73)+this[_0x311946(0x76)]+_0x311946(0xaa)+this['subUnitId']+_0x311946(0x83));let {transform:_0x4183ad}=_0x15097a(this[_0x311946(0x76)],this[_0x311946(0xb7)],{'row':_0x6da34d,'column':_0x3c339a,'rowOffset':_0x2aa247,'columnOffset':_0x3f0b01},0x1,0x1,_0x27ce42);return this['x']=_0x4183ad[_0x311946(0x8c)],this['y']=_0x4183ad[_0x311946(0xdd)],this;}['setAbsolutePosition'](_0x139ec1,_0x3077e0){return this['x']=_0x139ec1,this['y']=_0x3077e0,this;}['setShapeType'](_0x5db06f){const _0x286723=_0x245d3a;return this[_0x286723(0xaf)]=_0x5db06f,this;}[_0x245d3a(0xcf)](_0x2f84b6,_0x3c5ff5){const _0x18b368=_0x245d3a;return this['shapeData']['fill']||(this[_0x18b368(0xc4)]['fill']={}),this[_0x18b368(0xc4)][_0x18b368(0xb4)][_0x18b368(0x9e)]=_0x3e14b8[_0x18b368(0xa7)],_0x2f84b6!==void 0x0&&(this[_0x18b368(0xc4)][_0x18b368(0xb4)][_0x18b368(0xc5)]=_0x2f84b6),_0x3c5ff5!==void 0x0&&(this[_0x18b368(0xc4)][_0x18b368(0xb4)][_0x18b368(0x90)]=_0x3c5ff5),this;}[_0x245d3a(0xe0)](_0x2455f2,_0x3e7a58,_0x1e17f7){const _0xba02a9=_0x245d3a;if(_0x3e7a58===void 0x0||_0x3e7a58[_0xba02a9(0xd7)]===0x0)throw Error(_0xba02a9(0xad));return this[_0xba02a9(0xc4)][_0xba02a9(0xb4)]||(this[_0xba02a9(0xc4)][_0xba02a9(0xb4)]={}),this['shapeData'][_0xba02a9(0xb4)]['gradientStops']=_0x3e7a58,this['shapeData'][_0xba02a9(0xb4)]['fillType']=_0x3e14b8[_0xba02a9(0xa4)],this[_0xba02a9(0xc4)][_0xba02a9(0xb4)][_0xba02a9(0xc3)]=_0x2455f2,_0x1e17f7!==void 0x0&&(this[_0xba02a9(0xc4)][_0xba02a9(0xb4)]['gradientAngle']=_0x1e17f7),this;}['setNoneFill'](){const _0x5d41df=_0x245d3a;return this[_0x5d41df(0xc4)][_0x5d41df(0xb4)]={'fillType':_0x3e14b8[_0x5d41df(0xbb)]},this;}['setStrokeColor'](_0x341d03){const _0x2f07d5=_0x245d3a;return this['shapeData'][_0x2f07d5(0xbe)]||(this[_0x2f07d5(0xc4)][_0x2f07d5(0xbe)]={}),this[_0x2f07d5(0xc4)][_0x2f07d5(0xbe)][_0x2f07d5(0xc5)]=_0x341d03,this;}['setStrokeWidth'](_0x1bb622){const _0x535509=_0x245d3a;return this['shapeData'][_0x535509(0xbe)]||(this[_0x535509(0xc4)]['stroke']={}),this['shapeData'][_0x535509(0xbe)]['width']=_0x1bb622,this;}['setStrokeLineDashType'](_0x2d3f6d){const _0xb960fa=_0x245d3a;return this[_0xb960fa(0xc4)][_0xb960fa(0xbe)]||(this['shapeData'][_0xb960fa(0xbe)]={}),this[_0xb960fa(0xc4)][_0xb960fa(0xbe)]['dashType']=_0x2d3f6d,this;}[_0x245d3a(0xe4)](_0x534f12){const _0x8ddcdd=_0x245d3a;return this[_0x8ddcdd(0xc4)][_0x8ddcdd(0xbe)]||(this[_0x8ddcdd(0xc4)]['stroke']={}),this[_0x8ddcdd(0xc4)][_0x8ddcdd(0xbe)][_0x8ddcdd(0xcd)]=_0x534f12,this;}[_0x245d3a(0x72)](_0x288e8a){const _0x462a84=_0x245d3a;return this['shapeData'][_0x462a84(0xbe)]||(this[_0x462a84(0xc4)][_0x462a84(0xbe)]={}),this[_0x462a84(0xc4)][_0x462a84(0xbe)]['capType']=_0x288e8a,this;}['setStrokeOpacity'](_0x2b07be){const _0x4ca0ab=_0x245d3a;return this[_0x4ca0ab(0xc4)][_0x4ca0ab(0xbe)]||(this[_0x4ca0ab(0xc4)]['stroke']={}),this['shapeData']['stroke']['opacity']=_0x2b07be,this;}[_0x245d3a(0xb3)](_0x23772a){const _0x2cb4e5=_0x245d3a;return this[_0x2cb4e5(0xc4)][_0x2cb4e5(0xbe)]||(this['shapeData'][_0x2cb4e5(0xbe)]={}),this[_0x2cb4e5(0xc4)][_0x2cb4e5(0xbe)][_0x2cb4e5(0xba)]=_0x23772a,this;}[_0x245d3a(0xe1)](_0x586fe3){const _0x5c35b7=_0x245d3a;return this[_0x5c35b7(0x92)]=_0x586fe3,this;}[_0x245d3a(0xc9)](_0x3ac05f){const _0x489d94=_0x245d3a;return this[_0x489d94(0xe6)]=_0x3ac05f,this;}[_0x245d3a(0x99)](){const _0x5a76de=_0x245d3a;let _0x49f428=this[_0x5a76de(0x98)][_0x5a76de(0xdc)](_0x458533)[_0x5a76de(0x8d)](this[_0x5a76de(0x76)],this[_0x5a76de(0xb7)],this[_0x5a76de(0xa2)]);return _0x49f428?_0x58493c(_0x49f428[_0x5a76de(0xe3)]()):this[_0x5a76de(0xaf)]?_0x58493c(this[_0x5a76de(0xaf)]):!0x1;}['getConnectionSites'](){const _0xf86f4c=_0x245d3a;let _0xda4bfa=this[_0xf86f4c(0x98)]['get'](_0x458533)[_0xf86f4c(0x8d)](this[_0xf86f4c(0x76)],this[_0xf86f4c(0xb7)],this[_0xf86f4c(0xa2)]);if(!_0xda4bfa)return[];let _0x39ca50=this[_0xf86f4c(0x98)][_0xf86f4c(0xdc)](_0x155517)['getDrawingByParam']({'unitId':this[_0xf86f4c(0x76)],'subUnitId':this[_0xf86f4c(0xb7)],'drawingId':this[_0xf86f4c(0xa2)]});if(!(_0x39ca50!=null&&_0x39ca50[_0xf86f4c(0xa8)]))return[];let {width:_0x1e7425=0x0,height:_0x125fd7=0x0}=_0x39ca50['transform'];return _0xda4bfa[_0xf86f4c(0xcb)]({'width':_0x1e7425,'height':_0x125fd7}),_0xda4bfa[_0xf86f4c(0xe2)]();}[_0x245d3a(0x6e)](){const _0x148037=_0x245d3a;let _0x348b2e=this[_0x148037(0x98)][_0x148037(0xdc)](_0x458533)[_0x148037(0x8d)](this[_0x148037(0x76)],this[_0x148037(0xb7)],this[_0x148037(0xa2)]);if(!_0x348b2e)return[];let _0x5cf699=this[_0x148037(0x98)]['get'](_0x155517)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x148037(0xb7)],'drawingId':this[_0x148037(0xa2)]});if(!(_0x5cf699!=null&&_0x5cf699[_0x148037(0xa8)]))return[];let {width:_0x247350=0x0,height:_0x20a795=0x0}=_0x5cf699[_0x148037(0xa8)];return _0x348b2e[_0x148037(0xcb)]({'width':_0x247350,'height':_0x20a795}),_0x348b2e[_0x148037(0xd2)]();}[_0x245d3a(0xc8)](){const _0x12007e=_0x245d3a;let _0x46d169=this[_0x12007e(0x98)][_0x12007e(0xdc)](_0x458533)[_0x12007e(0x8d)](this[_0x12007e(0x76)],this[_0x12007e(0xb7)],this[_0x12007e(0xa2)]);if(!_0x46d169||!_0x58493c(_0x46d169[_0x12007e(0xe3)]()))return[];let _0x290742=this[_0x12007e(0x98)][_0x12007e(0xdc)](_0x155517)[_0x12007e(0x77)]({'unitId':this['unitId'],'subUnitId':this[_0x12007e(0xb7)],'drawingId':this['drawId']});if(!(_0x290742!=null&&_0x290742[_0x12007e(0xa8)]))return[];let {width:_0x2b7002=0x0,height:_0x547e28=0x0}=_0x290742[_0x12007e(0xa8)];return _0x46d169[_0x12007e(0xcb)]({'width':_0x2b7002,'height':_0x547e28}),_0x46d169[_0x12007e(0xc8)]();}[_0x245d3a(0x8f)](){const _0x5da5c0=_0x245d3a;var _0x268f33;let _0x53ef04=this[_0x5da5c0(0x98)][_0x5da5c0(0xdc)](_0x458533)[_0x5da5c0(0x8d)](this[_0x5da5c0(0x76)],this[_0x5da5c0(0xb7)],this[_0x5da5c0(0xa2)]);return _0x53ef04?(_0x268f33=_0x53ef04[_0x5da5c0(0x8f)]())==null?null:_0x268f33:null;}[_0x245d3a(0x7f)](){const _0x28c33f=_0x245d3a;var _0x504826;let _0x5be1c1=this[_0x28c33f(0x98)]['get'](_0x458533)[_0x28c33f(0x8d)](this[_0x28c33f(0x76)],this[_0x28c33f(0xb7)],this[_0x28c33f(0xa2)]);return _0x5be1c1?(_0x504826=_0x5be1c1[_0x28c33f(0x7f)]())==null?null:_0x504826:null;}[_0x245d3a(0x86)](){const _0x301065=_0x245d3a;var _0x378359,_0x19624b;if(!this[_0x301065(0xaf)])throw Error(_0x301065(0x7d));if(this['x']===0x0||this['y']===0x0){let _0x3dda44=this['_injector'][_0x301065(0xdc)](_0x55eb89)[_0x301065(0x6d)](this[_0x301065(0x76)],this[_0x301065(0xb7)]);if(!_0x3dda44)throw Error(_0x301065(0x73)+this['unitId']+_0x301065(0xaa)+this[_0x301065(0xb7)]+_0x301065(0x83));let {transform:_0x3c8e74}=_0x15097a(this[_0x301065(0x76)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x3dda44);this['x']=this['x']>0x0?this['x']:_0x3c8e74['left'],this['y']=this['y']>0x0?this['y']:_0x3c8e74[_0x301065(0xdd)];}return this[_0x301065(0x92)]=(_0x378359=this[_0x301065(0x92)])==null?_0x5857c2:_0x378359,this[_0x301065(0xe6)]=(_0x19624b=this['height'])==null?_0x288aed:_0x19624b,{'unitId':this[_0x301065(0x76)],'subUnitId':this[_0x301065(0xb7)],'shapeId':this[_0x301065(0xa2)],'shapeType':this['shapeType'],'shapeData':Object[_0x301065(0xde)](this[_0x301065(0xc4)])['length']>0x0?this[_0x301065(0xc4)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x301065(0xe6)]};}[_0x245d3a(0xa1)](){const _0xa22e8a=_0x245d3a;return this[_0xa22e8a(0xa2)];}['getShapeType'](){const _0x5b81a4=_0x245d3a;return this[_0x5b81a4(0xaf)];}['getShapeData'](){const _0x18e8dd=_0x245d3a;return this[_0x18e8dd(0xc4)];}[_0x245d3a(0xd3)](){return{'x':this['x'],'y':this['y']};}[_0x245d3a(0xd4)](){const _0x47cb56=_0x245d3a;return{'width':this['width'],'height':this[_0x47cb56(0xe6)]};}},F=class extends P{constructor(_0xc1acf4,_0x37841b,_0x261ef8,_0x20c8d3){const _0x3bf0cc=_0x245d3a;super(_0xc1acf4,_0x37841b,_0x261ef8,_0x20c8d3),N(this,_0x3bf0cc(0xc4),{});}[_0x245d3a(0xd5)](_0x16ba6c){const _0x4a34cb=_0x245d3a;if(!_0x58493c(_0x16ba6c))throw Error(_0x4a34cb(0x7c)+_0x16ba6c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x16ba6c),this;}[_0x245d3a(0xd0)](_0x32cc11){const _0x2d3fd6=_0x245d3a;var _0x258999,_0xf1c21b;return(_0x258999=this['shapeData'])!=null&&_0x258999['ln']||(this[_0x2d3fd6(0xc4)]['ln']={}),!((_0xf1c21b=this[_0x2d3fd6(0xc4)])==null||(_0xf1c21b=_0xf1c21b['ln'])==null)&&_0xf1c21b[_0x2d3fd6(0x6f)]||(this['shapeData']['ln'][_0x2d3fd6(0x6f)]={}),this[_0x2d3fd6(0xc4)]['ln']['startArrow']['type']=_0x32cc11,this;}[_0x245d3a(0xd6)](_0x1c43bb){const _0x1dd3ac=_0x245d3a;var _0x27f28d,_0x161951;return(_0x27f28d=this['shapeData'])!=null&&_0x27f28d['ln']||(this[_0x1dd3ac(0xc4)]['ln']={}),!((_0x161951=this['shapeData'])==null||(_0x161951=_0x161951['ln'])==null)&&_0x161951[_0x1dd3ac(0xb0)]||(this[_0x1dd3ac(0xc4)]['ln'][_0x1dd3ac(0xb0)]={}),this[_0x1dd3ac(0xc4)]['ln'][_0x1dd3ac(0xb0)]['type']=_0x1c43bb,this;}[_0x245d3a(0xc2)](_0x3d9691){const _0x5416b9=_0x245d3a;var _0x4283f7,_0x401127;return(_0x4283f7=this[_0x5416b9(0xc4)])!=null&&_0x4283f7['ln']||(this[_0x5416b9(0xc4)]['ln']={}),!((_0x401127=this[_0x5416b9(0xc4)])==null||(_0x401127=_0x401127['ln'])==null)&&_0x401127['startArrow']||(this[_0x5416b9(0xc4)]['ln'][_0x5416b9(0x6f)]={}),this[_0x5416b9(0xc4)]['ln'][_0x5416b9(0x6f)][_0x5416b9(0xc0)]=_0x3d9691,this;}[_0x245d3a(0x80)](_0x483cf8){const _0x15ced2=_0x245d3a;var _0x444843,_0x1a3979;return(_0x444843=this[_0x15ced2(0xc4)])!=null&&_0x444843['ln']||(this[_0x15ced2(0xc4)]['ln']={}),!((_0x1a3979=this[_0x15ced2(0xc4)])==null||(_0x1a3979=_0x1a3979['ln'])==null)&&_0x1a3979[_0x15ced2(0xb0)]||(this[_0x15ced2(0xc4)]['ln']['endArrow']={}),this['shapeData']['ln']['endArrow'][_0x15ced2(0xc0)]=_0x483cf8,this;}[_0x245d3a(0x86)](){const _0xb2fe17=_0x245d3a;return super[_0xb2fe17(0x86)]();}['getEndConnectInfo'](){const _0x3779f9=_0x245d3a;var _0xaef10;return((_0xaef10=this[_0x3779f9(0xc4)])==null||(_0xaef10=_0xaef10[_0x3779f9(0xc1)])==null?void 0x0:_0xaef10['to'])||null;}['getStartConnectInfo'](){const _0x7ea93e=_0x245d3a;var _0x6e5ed;return((_0x6e5ed=this[_0x7ea93e(0xc4)])==null||(_0x6e5ed=_0x6e5ed[_0x7ea93e(0xc1)])==null?void 0x0:_0x6e5ed[_0x7ea93e(0x8b)])||null;}};function I(_0x49a457,_0x766408,_0x31e157,_0xb72f5f,_0x5f2dc2,_0x31aa5a){const _0x4123e4=_0x245d3a;let _0x108991=_0x5f2dc2['getShapeModel'](_0x49a457,_0x766408,_0x31e157);if(!_0x108991)return null;let _0x53caea=_0x31aa5a[_0x4123e4(0x77)]({'unitId':_0x49a457,'subUnitId':_0x766408,'drawingId':_0x31e157});if(!(_0x53caea!=null&&_0x53caea[_0x4123e4(0xa8)]))return null;let {left:_0x2d634e=0x0,top:_0x4d05d8=0x0,width:_0x437a6e=0x0,height:_0xb5b7a2=0x0,flipX:_0x3cd0b9=!0x1,flipY:_0x1363f0=!0x1,angle:_0x2ba431}=_0x53caea[_0x4123e4(0xa8)];_0x108991['updateContext']({'width':_0x437a6e,'height':_0xb5b7a2});let _0x40786d=_0x108991[_0x4123e4(0xe2)]()[_0x4123e4(0x95)](_0x926199=>_0x926199[_0x4123e4(0x82)]===_0xb72f5f);if(!_0x40786d)return null;let _0x4f1573=_0x3cd0b9?_0x437a6e-_0x40786d['x']:_0x40786d['x'],_0x333bfc=_0x1363f0?_0xb5b7a2-_0x40786d['y']:_0x40786d['y'];if(_0x2ba431&&_0x2ba431!==0x0){let _0x710f79=_0x2ba431*Math['PI']/0xb4,_0x1405fd=Math['cos'](_0x710f79),_0x564fcf=Math[_0x4123e4(0xb9)](_0x710f79),_0x5545a6=_0x437a6e/0x2,_0x31513c=_0xb5b7a2/0x2,_0xe792fb=_0x4f1573-_0x5545a6,_0x456cc7=_0x333bfc-_0x31513c;_0x4f1573=_0x5545a6+_0xe792fb*_0x1405fd-_0x456cc7*_0x564fcf,_0x333bfc=_0x31513c+_0xe792fb*_0x564fcf+_0x456cc7*_0x1405fd;}_0x4f1573+=_0x2d634e,_0x333bfc+=_0x4d05d8;let _0x3bca9e=_0x40786d[_0x4123e4(0xe8)]/0xea60;_0x3cd0b9&&(_0x3bca9e=0xb4-_0x3bca9e),_0x1363f0&&(_0x3bca9e=-_0x3bca9e),_0x3bca9e+=_0x2ba431||0x0,_0x3bca9e=(_0x3bca9e%0x168+0x168)%0x168;let _0x2a6e0e=_0x423cee({'left':_0x2d634e,'top':_0x4d05d8,'width':_0x437a6e,'height':_0xb5b7a2},_0x2ba431||0x0);return{'point':{'x':_0x4f1573,'y':_0x333bfc},'angle':_0x3bca9e,'bounds':_0x2a6e0e};}function L(_0x21b5b5,_0x2f0ead){const _0x526bd5=_0x245d3a;let _0x2dba75=_0x2f0ead['x']-_0x21b5b5['x'],_0x4354b6=_0x2f0ead['y']-_0x21b5b5['y'];return Math[_0x526bd5(0xc7)](_0x2dba75)>=Math['abs'](_0x4354b6)?_0x2dba75>=0x0?0xb4:0x0:_0x4354b6>=0x0?0x10e:0x5a;}function R(_0x2246e1,_0x118312,_0x3e9df9,_0x4bcda2,_0x50b343,_0x52e9aa,_0x33e5a8){const _0x3ccfd9=_0x245d3a;let _0xf6a587=_0x52e9aa['getShapeModel'](_0x2246e1,_0x118312,_0x3e9df9);if(!_0xf6a587)return null;let _0x5b018f=_0x33e5a8[_0x3ccfd9(0x77)]({'unitId':_0x2246e1,'subUnitId':_0x118312,'drawingId':_0x3e9df9});if(!(_0x5b018f!=null&&_0x5b018f[_0x3ccfd9(0xa8)]))return null;let {left:_0xe3d905=0x0,top:_0x9a238e=0x0,width:_0x1148e8=0x0,height:_0x27480c=0x0,flipX:_0x333072=!0x1,flipY:_0x3221a5=!0x1}=_0x5b018f[_0x3ccfd9(0xa8)];_0xf6a587[_0x3ccfd9(0xcb)]({'width':_0x1148e8,'height':_0x27480c});let _0x2acfda=_0xf6a587[_0x3ccfd9(0xc8)]();if(_0x2acfda[_0x3ccfd9(0xd7)]<0x2)return null;let _0x3c48cf=_0x4bcda2?_0x2acfda[0x0]:_0x2acfda[_0x2acfda['length']-0x1],_0x4b625c=new _0x34439f({'left':_0xe3d905,'top':_0x9a238e,'width':_0x1148e8,'height':_0x27480c,'flipX':_0x333072,'flipY':_0x3221a5})[_0x3ccfd9(0x7a)](_0x3c48cf);return{'point':_0x4b625c,'angle':L(_0x50b343['point'],_0x4b625c),'bounds':{'left':_0x4b625c['x'],'top':_0x4b625c['y'],'width':0x0,'height':0x0}};}var z=class extends _0x4ae227{async['insertShape'](_0x25132){const _0x4c230a=_0x245d3a;let {unitId:_0x3a2d9c,subUnitId:_0x40519b,shapeId:_0x3c9bba,shapeType:_0x290fc5,shapeData:_0x11baab,x:_0x3ce62a,y:_0x20b2fb,width:_0x54c3e6,height:_0x1771a2}=_0x25132;return this[_0x4c230a(0x71)][_0x4c230a(0xe5)](_0x48442c['id'],{'unitId':_0x3a2d9c,'subUnitId':_0x40519b,'shapeId':_0x3c9bba,'shapeType':_0x290fc5,'shapeData':_0x11baab,'position':{'x':_0x3ce62a,'y':_0x20b2fb},'width':_0x54c3e6,'height':_0x1771a2});}async[_0x245d3a(0x70)](_0x4f9cb5){const _0x2c994c=_0x245d3a;let {unitId:_0xcfce0d,subUnitId:_0x1e62d5,shapeId:_0x9e5ea8,shapeType:_0x46aec0,shapeData:_0x1a793b,x:_0x15d647,y:_0x245c4b,width:_0x1c55a2,height:_0x22e089}=_0x4f9cb5;return this[_0x2c994c(0x71)][_0x2c994c(0xe5)](_0xbd1de4['id'],{'unitId':_0xcfce0d,'subUnitId':_0x1e62d5,'shapeId':_0x9e5ea8,'shapeType':_0x46aec0,'shapeData':_0x1a793b,'position':{'x':_0x15d647,'y':_0x245c4b},'width':_0x1c55a2,'height':_0x22e089});}[_0x245d3a(0x9c)](_0x519406){const _0x35ac00=_0x245d3a;let _0x16909a=this[_0x35ac00(0xa3)]()[_0x35ac00(0xe9)](),_0x15dbd1=this[_0x35ac00(0xa9)]();if(_0x519406){let _0x2a2600=new P(_0x16909a,_0x15dbd1,_0x519406[_0x35ac00(0xa2)],this['_injector']);return this[_0x35ac00(0x74)](_0x2a2600,_0x16909a,_0x15dbd1,_0x519406['drawId']),_0x2a2600;}return new P(_0x16909a,_0x15dbd1,_0x58c69f(),this[_0x35ac00(0x98)]);}['newConnector'](_0x3c710a){const _0x31eae7=_0x245d3a;let _0x341179=this[_0x31eae7(0xa3)]()[_0x31eae7(0xe9)](),_0x453780=this[_0x31eae7(0xa9)]();if(_0x3c710a){let _0x400073=new F(_0x341179,_0x453780,_0x3c710a[_0x31eae7(0xa2)],this[_0x31eae7(0x98)]);return this['_preloadShapeProperties'](_0x400073,_0x341179,_0x453780,_0x3c710a[_0x31eae7(0xa2)]),_0x400073;}return new F(_0x341179,_0x453780,_0x58c69f(),this[_0x31eae7(0x98)]);}[_0x245d3a(0xdf)](){const _0x503ee7=_0x245d3a;let _0x249672=this[_0x503ee7(0x98)]['get'](_0x428383),_0x56ca0a=this[_0x503ee7(0xa3)]()[_0x503ee7(0xe9)](),_0x1a27c7=this[_0x503ee7(0xa9)](),_0x508a38=_0x249672[_0x503ee7(0x79)](_0x56ca0a,_0x1a27c7);if(!_0x508a38)return[];let _0x125ed5=[];for(let [_0x43cd1f,_0x197ba7]of Object[_0x503ee7(0x6a)](_0x508a38))if(_0x197ba7&&_0x197ba7[_0x503ee7(0xdb)]===_0x215d4d[_0x503ee7(0xcc)]){let _0x5406c3=new P(_0x56ca0a,_0x1a27c7,_0x43cd1f,this[_0x503ee7(0x98)]);this[_0x503ee7(0x74)](_0x5406c3,_0x56ca0a,_0x1a27c7,_0x43cd1f),_0x125ed5['push'](_0x5406c3);}return _0x125ed5;}[_0x245d3a(0xae)](_0x441d04){const _0x5b120c=_0x245d3a;let {unitId:_0x30b3be,subUnitId:_0x3ecd5d,drawId:_0x29efc0}=_0x441d04;return this[_0x5b120c(0x71)][_0x5b120c(0xe5)](_0x55e1a4['id'],{'unitId':_0x30b3be,'drawings':[{'unitId':_0x30b3be,'subUnitId':_0x3ecd5d,'drawingId':_0x29efc0,'drawingType':_0x215d4d[_0x5b120c(0xcc)]}]});}async[_0x245d3a(0xbd)](_0x5133d0){const _0x156e55=_0x245d3a;let {connector:_0x130fe8,startTarget:_0x8732c6,endTarget:_0x163116}=_0x5133d0;if(!_0x8732c6&&!_0x163116)return!0x1;let _0x466152=this[_0x156e55(0xa3)]()[_0x156e55(0xe9)](),_0x21d480=this[_0x156e55(0xa9)](),_0x5dc00f=this[_0x156e55(0x98)][_0x156e55(0xdc)](_0x458533),_0x4c4b2d=this['_injector'][_0x156e55(0xdc)](_0x155517),_0x3d9349=_0x5dc00f[_0x156e55(0x8d)](_0x466152,_0x21d480,_0x130fe8[_0x156e55(0xa2)]);if(!_0x3d9349)return!0x1;let _0x2c284d=_0x3d9349[_0x156e55(0xe3)](),_0x18d5b5=_0x3d9349[_0x156e55(0x81)](),_0x54e5b5={};for(let _0xf35998 of _0x3d9349[_0x156e55(0xbf)]()){let _0x366b26=_0x3d9349[_0x156e55(0xab)](_0xf35998);_0x366b26!==void 0x0&&(_0x54e5b5[_0xf35998]=_0x366b26);}let {startInfo:_0x2d9e0a,endInfo:_0x3917ea}=this['_resolveEndpoints'](_0x466152,_0x21d480,_0x130fe8,_0x3d9349,_0x8732c6,_0x163116,_0x5dc00f,_0x4c4b2d,_0x18d5b5);if(!_0x2d9e0a||!_0x3917ea)return!0x1;let _0x2f4c74=_0x5129d0(_0x311777(_0x2d9e0a,_0x3917ea,_0x2c284d),_0x2c284d),_0x33135e={};return _0x8732c6?_0x33135e[_0x156e55(0x8b)]={'shapeId':_0x8732c6[_0x156e55(0xb1)]['drawId'],'cxnIndex':_0x8732c6['connectionSiteIndex']}:_0x18d5b5!=null&&_0x18d5b5[_0x156e55(0x8b)]&&(_0x33135e[_0x156e55(0x8b)]=_0x18d5b5[_0x156e55(0x8b)]),_0x163116?_0x33135e['to']={'shapeId':_0x163116[_0x156e55(0xb1)]['drawId'],'cxnIndex':_0x163116[_0x156e55(0x9f)]}:_0x18d5b5!=null&&_0x18d5b5['to']&&(_0x33135e['to']=_0x18d5b5['to']),this[_0x156e55(0x71)][_0x156e55(0xe5)](_0x10f71e['id'],{'unitId':_0x466152,'subUnitId':_0x21d480,'connectorShapeId':_0x130fe8[_0x156e55(0xa2)],'width':_0x2f4c74[_0x156e55(0xb8)][_0x156e55(0x92)],'height':_0x2f4c74[_0x156e55(0xb8)]['height'],'left':_0x2f4c74[_0x156e55(0xb8)]['left'],'top':_0x2f4c74['worldRect'][_0x156e55(0xdd)],'flipX':_0x2f4c74[_0x156e55(0xb8)][_0x156e55(0x75)]||!0x1,'flipY':_0x2f4c74[_0x156e55(0xb8)][_0x156e55(0x6c)]||!0x1,'oldAdjustValues':_0x54e5b5,'newAdjustValues':_0x2f4c74[_0x156e55(0xb6)],'newLineType':_0x2f4c74['lineType'],'oldLineType':_0x2c284d,'rotation':_0x2f4c74[_0x156e55(0x84)],'oldRelation':_0x18d5b5,'newRelation':_0x33135e});}[_0x245d3a(0x74)](_0x6ee6c,_0x4a911b,_0x51562d,_0x2248ad){const _0x318a89=_0x245d3a;let _0x3af245=this[_0x318a89(0x98)]['get'](_0x155517)['getDrawingByParam']({'unitId':_0x4a911b,'subUnitId':_0x51562d,'drawingId':_0x2248ad});if(_0x3af245!=null&&_0x3af245['transform']){var _0xbd7ba1,_0x28c1a7,_0x5c8c5f,_0x195531;_0x6ee6c['x']=(_0xbd7ba1=_0x3af245[_0x318a89(0xa8)]['left'])==null?0x0:_0xbd7ba1,_0x6ee6c['y']=(_0x28c1a7=_0x3af245[_0x318a89(0xa8)][_0x318a89(0xdd)])==null?0x0:_0x28c1a7,_0x6ee6c[_0x318a89(0x92)]=(_0x5c8c5f=_0x3af245['transform'][_0x318a89(0x92)])==null?_0x6ee6c[_0x318a89(0x92)]:_0x5c8c5f,_0x6ee6c['height']=(_0x195531=_0x3af245[_0x318a89(0xa8)][_0x318a89(0xe6)])==null?_0x6ee6c[_0x318a89(0xe6)]:_0x195531;}let _0x49b09d=this[_0x318a89(0x98)]['get'](_0x458533)[_0x318a89(0x8d)](_0x4a911b,_0x51562d,_0x2248ad);if(_0x49b09d){_0x6ee6c[_0x318a89(0xaf)]=_0x49b09d['getShapeType']();let _0x9beed2=_0x49b09d[_0x318a89(0x88)]();_0x9beed2&&(_0x6ee6c['shapeData']=JSON[_0x318a89(0xd9)](JSON[_0x318a89(0x9a)](_0x9beed2)));}}[_0x245d3a(0x9d)](_0x5450fc,_0x120536,_0x4b7615,_0x472185,_0x4dd9af,_0x323dec,_0x52fd6f,_0xd55c5d,_0x1e6058){const _0x3ae668=_0x245d3a;let _0x3ef8bf=null,_0x465062=null;return _0x4dd9af&&(_0x3ef8bf=I(_0x5450fc,_0x120536,_0x4dd9af['shape'][_0x3ae668(0xa2)],_0x4dd9af['connectionSiteIndex'],_0x52fd6f,_0xd55c5d)),_0x323dec&&(_0x465062=I(_0x5450fc,_0x120536,_0x323dec[_0x3ae668(0xb1)][_0x3ae668(0xa2)],_0x323dec[_0x3ae668(0x9f)],_0x52fd6f,_0xd55c5d)),_0x3ef8bf||(_0x3ef8bf=this[_0x3ae668(0x78)](_0x5450fc,_0x120536,_0x4b7615[_0x3ae668(0xa2)],!0x0,_0x465062,_0x1e6058==null?void 0x0:_0x1e6058[_0x3ae668(0x8b)],_0x52fd6f,_0xd55c5d)),_0x465062||(_0x465062=this[_0x3ae668(0x78)](_0x5450fc,_0x120536,_0x4b7615['drawId'],!0x1,_0x3ef8bf,_0x1e6058==null?void 0x0:_0x1e6058['to'],_0x52fd6f,_0xd55c5d)),{'startInfo':_0x3ef8bf,'endInfo':_0x465062};}['_resolveExistingOrFreeEndpoint'](_0x560780,_0x8d6e2f,_0x18150d,_0x1b80e9,_0x423ada,_0x843eab,_0x3bc7d2,_0x5027b8){const _0x1973d5=_0x245d3a;if(_0x843eab){let _0x94431c=I(_0x560780,_0x8d6e2f,_0x843eab[_0x1973d5(0xda)],_0x843eab[_0x1973d5(0x89)],_0x3bc7d2,_0x5027b8);if(_0x94431c)return _0x94431c;}return _0x423ada?R(_0x560780,_0x8d6e2f,_0x18150d,_0x1b80e9,_0x423ada,_0x3bc7d2,_0x5027b8):null;}};_0x4ae227[_0x245d3a(0x6b)](z);export{F as FConnectorShape,P as FShape};
|
|
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};
|