@univerjs-pro/sheets-shape 0.25.0 → 1.0.0-alpha.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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3c3e(){const _0x1b50bf=['rotation','getShapes','toPrimitive','point','unitId','141817OxLMdK','shapeData','@univerjs-pro/engine-shape','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','UniverProSheetsShapeFacade','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dashType','stroke','startArrow','Skeleton\x20for\x20unitId\x20','abs','fill','GradientFill','getEndConnectInfo','shape','updateContext','call','setWidth','localToWorld','458qwwmoA','drawingType','52CRRvgm','flipX','getBasicShapeRotateBound','endArrow','ShapeTypeEnum','UniverSheetsDrawing','gradientType','top','14864710EvjApD','defineProperty','shapeId','14LJlynu','cos','parse','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','insertShape','8bgPVpY','Module','UniverCoreFacade','11sHlxLk','582020FzbHQV','ShapeGradientTypeEnum','SolidFill','getShapeId','opacity','DrawingTypeEnum','length','SheetsShapeService','symbol','_resolveEndpoints','keys','FWorksheet','@univerjs/sheets/facade','\x20and\x20subUnitId\x20','\x20not\x20found','getAdjustNames','FEnum','UniverProEngineShape','DRAWING_SHAPE','@univerjs/core','stringify','setStrokeLineJoinType','setShapeSolidFill','connectionSiteIndex','worldRect','size','getConnectionSiteList','entries','IDrawingManagerService','default','5357817lFfaLm','_resolveExistingOrFreeEndpoint','ShapeArrowTypeEnum','SheetSkeletonService','prototype','InsertShapeCommand','setStrokeLineType','4951zabrUq','_commandService','function','left','convertPositionCellToSheetOverGrid','ShapeLineDashEnum','transform','flipY','object','shapeType','getShapeModel','connectShapes','setShapeType','newConnector','width','getDrawingByParam','capType','build','ensureSkeleton','UniverSheets','executeCommand','ISheetDrawingService','lineType','DEFAULT_SHAPE_WIDTH','setStartArrowSize',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','@univerjs/core/facade','type','_preloadShapeProperties','cxnIndex','setNoneFill','routeConnectorLineShape','@univerjs/sheets','from','DEFAULT_SHAPE_HEIGHT','setShapeGradientFill','subUnitId','setStartArrowType','index','getAdjustPoints','UniverCore','getUnitId','2352ziLnAr','iterator','getSize','3377382MCqvpO','ShapeLineCapEnum','setStrokeOpacity','color','find','ShapeLineTypeEnum','4284690IrnYEt','ShapeFillEnum','getConnectorLinePoints','getStartConnectInfo','get','setAbsolutePosition','getSheetId','@univerjs/sheets-drawing','getDrawingData','getShapeType','@univerjs/drawing','setPosition','getShapeData','updateShape','setEndArrowType','height','FConnectorShape','_injector','UpdateConnectorRelationCommand','generateRandomId','ConnectorCoordinateTransform','ShapeLineJoinEnum','ang','drawId','getShapeRelation','getWorkbook','relation','extend','lineJoinType','toStringTag','gradientAngle','removeShape','UniverProSheetsShape','FShape','SetShapeDrawingDataCommand'];_0x3c3e=function(){return _0x1b50bf;};return _0x3c3e();}function _0xedd8(_0x5d08bf,_0x5ec1d1){_0x5d08bf=_0x5d08bf-0x163;const _0x3c3e05=_0x3c3e();let _0xedd891=_0x3c3e05[_0x5d08bf];return _0xedd891;}(function(_0x1ce54b,_0x85ccb3){const _0x14faf0=_0xedd8,_0x279317=_0x1ce54b();while(!![]){try{const _0x555f66=parseInt(_0x14faf0(0x1a5))/0x1*(parseInt(_0x14faf0(0x16a))/0x2)+parseInt(_0x14faf0(0x1d2))/0x3+parseInt(_0x14faf0(0x16c))/0x4*(-parseInt(_0x14faf0(0x180))/0x5)+-parseInt(_0x14faf0(0x1d8))/0x6*(-parseInt(_0x14faf0(0x177))/0x7)+-parseInt(_0x14faf0(0x17c))/0x8*(parseInt(_0x14faf0(0x19e))/0x9)+-parseInt(_0x14faf0(0x174))/0xa*(-parseInt(_0x14faf0(0x17f))/0xb)+-parseInt(_0x14faf0(0x1cf))/0xc*(parseInt(_0x14faf0(0x200))/0xd);if(_0x555f66===_0x85ccb3)break;else _0x279317['push'](_0x279317['shift']());}catch(_0xe1ad54){_0x279317['push'](_0x279317['shift']());}}}(_0x3c3e,0xe2739),function(_0x4f508f,_0x400413){const _0x28df6a=_0xedd8;typeof exports==_0x28df6a(0x1ad)&&typeof module<'u'?_0x400413(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x28df6a(0x1a7)&&define['amd']?define(['exports',_0x28df6a(0x202),_0x28df6a(0x1bf),'@univerjs-pro/sheets-shape',_0x28df6a(0x193),_0x28df6a(0x1e2),_0x28df6a(0x1c5),_0x28df6a(0x1df),_0x28df6a(0x18c)],_0x400413):(_0x4f508f=typeof globalThis<'u'?globalThis:_0x4f508f||self,_0x400413(_0x4f508f[_0x28df6a(0x204)]={},_0x4f508f[_0x28df6a(0x191)],_0x4f508f[_0x28df6a(0x17e)],_0x4f508f[_0x28df6a(0x1f8)],_0x4f508f[_0x28df6a(0x1cd)],_0x4f508f['UniverDrawing'],_0x4f508f[_0x28df6a(0x1b8)],_0x4f508f[_0x28df6a(0x171)],_0x4f508f['UniverSheetsFacade']));}(this,function(_0x3d3915,_0xc8edff,_0x45c64d,_0x17e23b,_0x5272a5,_0x437071,_0x589c3e,_0x482202,_0x5a18f5){const _0x1265a8=_0xedd8;Object[_0x1265a8(0x175)](_0x3d3915,Symbol[_0x1265a8(0x1f5)],{'value':_0x1265a8(0x17d)});var _0xaf1ee4=class extends _0x45c64d[_0x1265a8(0x190)]{get['ShapeTypeEnum'](){const _0x3d64e8=_0x1265a8;return _0xc8edff[_0x3d64e8(0x170)];}get[_0x1265a8(0x1d9)](){const _0x1d154c=_0x1265a8;return _0xc8edff[_0x1d154c(0x1d9)];}get[_0x1265a8(0x181)](){const _0xcbfce7=_0x1265a8;return _0xc8edff[_0xcbfce7(0x181)];}get['ShapeLineTypeEnum'](){const _0x16ad07=_0x1265a8;return _0xc8edff[_0x16ad07(0x1d7)];}get[_0x1265a8(0x1aa)](){const _0x4d9bbf=_0x1265a8;return _0xc8edff[_0x4d9bbf(0x1aa)];}get[_0x1265a8(0x1d3)](){return _0xc8edff['ShapeLineCapEnum'];}get[_0x1265a8(0x1ed)](){return _0xc8edff['ShapeLineJoinEnum'];}get['ShapeArrowTypeEnum'](){const _0x12a99e=_0x1265a8;return _0xc8edff[_0x12a99e(0x1a0)];}get['ShapeArrowSizeEnum'](){return _0xc8edff['ShapeArrowSizeEnum'];}};_0x45c64d[_0x1265a8(0x190)][_0x1265a8(0x1f3)](_0xaf1ee4);function _0x4760b5(_0x541f34){'@babel/helpers - typeof';const _0x23c8e9=_0x1265a8;return _0x4760b5=typeof Symbol==_0x23c8e9(0x1a7)&&typeof Symbol[_0x23c8e9(0x1d0)]==_0x23c8e9(0x188)?function(_0x3b78c5){return typeof _0x3b78c5;}:function(_0xa84cd9){const _0x282c51=_0x23c8e9;return _0xa84cd9&&typeof Symbol==_0x282c51(0x1a7)&&_0xa84cd9['constructor']===Symbol&&_0xa84cd9!==Symbol[_0x282c51(0x1a2)]?'symbol':typeof _0xa84cd9;},_0x4760b5(_0x541f34);}function _0x146a31(_0x185dfa,_0x38e8bd){const _0x18751e=_0x1265a8;if(_0x4760b5(_0x185dfa)!=_0x18751e(0x1ad)||!_0x185dfa)return _0x185dfa;var _0x3c26a2=_0x185dfa[Symbol[_0x18751e(0x1fd)]];if(_0x3c26a2!==void 0x0){var _0x42a7c9=_0x3c26a2[_0x18751e(0x167)](_0x185dfa,_0x38e8bd||_0x18751e(0x19d));if(_0x4760b5(_0x42a7c9)!=_0x18751e(0x1ad))return _0x42a7c9;throw TypeError(_0x18751e(0x205));}return(_0x38e8bd==='string'?String:Number)(_0x185dfa);}function _0x133d12(_0x5c8354){const _0x66c9e6=_0x1265a8;var _0x55b73f=_0x146a31(_0x5c8354,'string');return _0x4760b5(_0x55b73f)==_0x66c9e6(0x188)?_0x55b73f:_0x55b73f+'';}function _0x4ffd9b(_0x7acc76,_0x39d154,_0x2f5430){const _0xc8e05b=_0x1265a8;return(_0x39d154=_0x133d12(_0x39d154))in _0x7acc76?Object[_0xc8e05b(0x175)](_0x7acc76,_0x39d154,{'value':_0x2f5430,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x7acc76[_0x39d154]=_0x2f5430,_0x7acc76;}var _0x42aab5=class{constructor(_0x3240f4,_0xda2f71,_0x39d894,_0x225dc4){const _0x19a337=_0x1265a8;_0x4ffd9b(this,_0x19a337(0x1ff),void 0x0),_0x4ffd9b(this,_0x19a337(0x1c9),void 0x0),_0x4ffd9b(this,_0x19a337(0x1ef),void 0x0),_0x4ffd9b(this,'x',0x0),_0x4ffd9b(this,'y',0x0),_0x4ffd9b(this,_0x19a337(0x1b3),_0x17e23b[_0x19a337(0x1bc)]),_0x4ffd9b(this,'height',_0x17e23b[_0x19a337(0x1c7)]),_0x4ffd9b(this,'shapeType',void 0x0),_0x4ffd9b(this,_0x19a337(0x201),{}),_0x4ffd9b(this,_0x19a337(0x1e9),void 0x0),this['unitId']=_0x3240f4,this[_0x19a337(0x1c9)]=_0xda2f71,this[_0x19a337(0x1ef)]=_0x39d894||(0x0,_0x5272a5['generateRandomId'])(),this['_injector']=_0x225dc4;}[_0x1265a8(0x1e3)](_0x3c0407,_0x12330d,_0x476601,_0x316e9f){const _0x511afd=_0x1265a8;let _0x3405d4=this['_injector'][_0x511afd(0x1dc)](_0x589c3e[_0x511afd(0x1a1)])[_0x511afd(0x1b7)](this[_0x511afd(0x1ff)],this[_0x511afd(0x1c9)]);if(!_0x3405d4)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x511afd(0x1ff)]+'\x20and\x20subUnitId\x20'+this[_0x511afd(0x1c9)]+_0x511afd(0x18e));let {transform:_0x11a8d1}=(0x0,_0x589c3e[_0x511afd(0x1a9)])(this[_0x511afd(0x1ff)],this[_0x511afd(0x1c9)],{'row':_0x3c0407,'column':_0x12330d,'rowOffset':_0x476601,'columnOffset':_0x316e9f},0x1,0x1,_0x3405d4);return this['x']=_0x11a8d1[_0x511afd(0x1a8)],this['y']=_0x11a8d1[_0x511afd(0x173)],this;}[_0x1265a8(0x1dd)](_0x138ca9,_0x55ca6a){return this['x']=_0x138ca9,this['y']=_0x55ca6a,this;}[_0x1265a8(0x1b1)](_0x1901cc){const _0x1b0e7d=_0x1265a8;return this[_0x1b0e7d(0x1ae)]=_0x1901cc,this;}[_0x1265a8(0x196)](_0xaac51a,_0x48bff9){const _0x2cdcae=_0x1265a8;return this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)]||(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)]={}),this[_0x2cdcae(0x201)]['fill']['fillType']=_0xc8edff[_0x2cdcae(0x1d9)][_0x2cdcae(0x182)],_0xaac51a!==void 0x0&&(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)][_0x2cdcae(0x1d5)]=_0xaac51a),_0x48bff9!==void 0x0&&(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)][_0x2cdcae(0x184)]=_0x48bff9),this;}[_0x1265a8(0x1c8)](_0x266ad9,_0x2edda0,_0x5a6f77){const _0x1b3b78=_0x1265a8;if(_0x2edda0===void 0x0||_0x2edda0[_0x1b3b78(0x186)]===0x0)throw Error(_0x1b3b78(0x203));return this[_0x1b3b78(0x201)][_0x1b3b78(0x20b)]||(this['shapeData'][_0x1b3b78(0x20b)]={}),this['shapeData'][_0x1b3b78(0x20b)]['gradientStops']=_0x2edda0,this['shapeData'][_0x1b3b78(0x20b)]['fillType']=_0xc8edff['ShapeFillEnum'][_0x1b3b78(0x163)],this['shapeData']['fill'][_0x1b3b78(0x172)]=_0x266ad9,_0x5a6f77!==void 0x0&&(this['shapeData']['fill'][_0x1b3b78(0x1f6)]=_0x5a6f77),this;}[_0x1265a8(0x1c3)](){const _0x3ccb0e=_0x1265a8;return this[_0x3ccb0e(0x201)][_0x3ccb0e(0x20b)]={'fillType':_0xc8edff[_0x3ccb0e(0x1d9)]['NoFill']},this;}['setStrokeColor'](_0x1dc879){const _0x265bf8=_0x1265a8;return this[_0x265bf8(0x201)][_0x265bf8(0x207)]||(this[_0x265bf8(0x201)]['stroke']={}),this[_0x265bf8(0x201)]['stroke'][_0x265bf8(0x1d5)]=_0x1dc879,this;}['setStrokeWidth'](_0x248e8c){const _0x524d5c=_0x1265a8;return this[_0x524d5c(0x201)][_0x524d5c(0x207)]||(this['shapeData'][_0x524d5c(0x207)]={}),this['shapeData'][_0x524d5c(0x207)]['width']=_0x248e8c,this;}['setStrokeLineDashType'](_0x18aa7f){const _0x2ef2fb=_0x1265a8;return this[_0x2ef2fb(0x201)][_0x2ef2fb(0x207)]||(this['shapeData'][_0x2ef2fb(0x207)]={}),this[_0x2ef2fb(0x201)][_0x2ef2fb(0x207)][_0x2ef2fb(0x206)]=_0x18aa7f,this;}[_0x1265a8(0x195)](_0x4deaed){const _0x57f930=_0x1265a8;return this['shapeData'][_0x57f930(0x207)]||(this[_0x57f930(0x201)][_0x57f930(0x207)]={}),this[_0x57f930(0x201)][_0x57f930(0x207)][_0x57f930(0x1f4)]=_0x4deaed,this;}['setStrokeLineCapType'](_0x24ada7){const _0x24853f=_0x1265a8;return this['shapeData'][_0x24853f(0x207)]||(this[_0x24853f(0x201)][_0x24853f(0x207)]={}),this[_0x24853f(0x201)][_0x24853f(0x207)][_0x24853f(0x1b5)]=_0x24ada7,this;}[_0x1265a8(0x1d4)](_0x42aabd){const _0x1f56fa=_0x1265a8;return this[_0x1f56fa(0x201)][_0x1f56fa(0x207)]||(this[_0x1f56fa(0x201)][_0x1f56fa(0x207)]={}),this[_0x1f56fa(0x201)]['stroke'][_0x1f56fa(0x184)]=_0x42aabd,this;}[_0x1265a8(0x1a4)](_0x2b7aa4){const _0x480876=_0x1265a8;return this[_0x480876(0x201)][_0x480876(0x207)]||(this[_0x480876(0x201)][_0x480876(0x207)]={}),this[_0x480876(0x201)][_0x480876(0x207)]['lineStrokeType']=_0x2b7aa4,this;}[_0x1265a8(0x168)](_0x5cffd5){const _0x3e52e4=_0x1265a8;return this[_0x3e52e4(0x1b3)]=_0x5cffd5,this;}['setHeight'](_0x29964b){const _0x1df8c1=_0x1265a8;return this[_0x1df8c1(0x1e7)]=_0x29964b,this;}['isLineShape'](){const _0x5a8e2e=_0x1265a8;let _0x2963a5=this[_0x5a8e2e(0x1e9)]['get'](_0x17e23b[_0x5a8e2e(0x187)])[_0x5a8e2e(0x1af)](this[_0x5a8e2e(0x1ff)],this[_0x5a8e2e(0x1c9)],this[_0x5a8e2e(0x1ef)]);return _0x2963a5?(0x0,_0xc8edff['isConnectorShape'])(_0x2963a5[_0x5a8e2e(0x1e1)]()):this[_0x5a8e2e(0x1ae)]?(0x0,_0xc8edff['isConnectorShape'])(this[_0x5a8e2e(0x1ae)]):!0x1;}['getConnectionSites'](){const _0x11a1f0=_0x1265a8;let _0x1dd293=this[_0x11a1f0(0x1e9)]['get'](_0x17e23b[_0x11a1f0(0x187)])[_0x11a1f0(0x1af)](this[_0x11a1f0(0x1ff)],this['subUnitId'],this[_0x11a1f0(0x1ef)]);if(!_0x1dd293)return[];let _0x35bc22=this[_0x11a1f0(0x1e9)][_0x11a1f0(0x1dc)](_0x437071[_0x11a1f0(0x19c)])[_0x11a1f0(0x1b4)]({'unitId':this['unitId'],'subUnitId':this[_0x11a1f0(0x1c9)],'drawingId':this[_0x11a1f0(0x1ef)]});if(!(_0x35bc22!=null&&_0x35bc22[_0x11a1f0(0x1ab)]))return[];let {width:_0x56a67e=0x0,height:_0x29be80=0x0}=_0x35bc22[_0x11a1f0(0x1ab)];return _0x1dd293[_0x11a1f0(0x166)]({'width':_0x56a67e,'height':_0x29be80}),_0x1dd293[_0x11a1f0(0x19a)]();}[_0x1265a8(0x1cc)](){const _0x440756=_0x1265a8;let _0x3cfdee=this['_injector']['get'](_0x17e23b[_0x440756(0x187)])[_0x440756(0x1af)](this[_0x440756(0x1ff)],this[_0x440756(0x1c9)],this['drawId']);if(!_0x3cfdee)return[];let _0x43ab12=this['_injector'][_0x440756(0x1dc)](_0x437071[_0x440756(0x19c)])['getDrawingByParam']({'unitId':this[_0x440756(0x1ff)],'subUnitId':this[_0x440756(0x1c9)],'drawingId':this[_0x440756(0x1ef)]});if(!(_0x43ab12!=null&&_0x43ab12[_0x440756(0x1ab)]))return[];let {width:_0x48ca1f=0x0,height:_0x4ed327=0x0}=_0x43ab12[_0x440756(0x1ab)];return _0x3cfdee[_0x440756(0x166)]({'width':_0x48ca1f,'height':_0x4ed327}),_0x3cfdee['getDrawingPoints']();}['getConnectorLinePoints'](){const _0x8ce5bf=_0x1265a8;let _0x5caf48=this['_injector']['get'](_0x17e23b[_0x8ce5bf(0x187)])[_0x8ce5bf(0x1af)](this['unitId'],this[_0x8ce5bf(0x1c9)],this['drawId']);if(!_0x5caf48||!(0x0,_0xc8edff['isConnectorShape'])(_0x5caf48['getShapeType']()))return[];let _0x266abf=this[_0x8ce5bf(0x1e9)][_0x8ce5bf(0x1dc)](_0x437071[_0x8ce5bf(0x19c)])[_0x8ce5bf(0x1b4)]({'unitId':this['unitId'],'subUnitId':this[_0x8ce5bf(0x1c9)],'drawingId':this['drawId']});if(!(_0x266abf!=null&&_0x266abf[_0x8ce5bf(0x1ab)]))return[];let {width:_0x43796a=0x0,height:_0x434395=0x0}=_0x266abf[_0x8ce5bf(0x1ab)];return _0x5caf48[_0x8ce5bf(0x166)]({'width':_0x43796a,'height':_0x434395}),_0x5caf48['getConnectorLinePoints']();}[_0x1265a8(0x1db)](){const _0x1f983b=_0x1265a8;var _0x41b9fa;let _0x4fdd08=this[_0x1f983b(0x1e9)][_0x1f983b(0x1dc)](_0x17e23b[_0x1f983b(0x187)])[_0x1f983b(0x1af)](this[_0x1f983b(0x1ff)],this[_0x1f983b(0x1c9)],this[_0x1f983b(0x1ef)]);return _0x4fdd08?(_0x41b9fa=_0x4fdd08[_0x1f983b(0x1db)]())==null?null:_0x41b9fa:null;}['getEndConnectInfo'](){const _0x4718cc=_0x1265a8;var _0x7edbff;let _0x22a51c=this[_0x4718cc(0x1e9)]['get'](_0x17e23b[_0x4718cc(0x187)])[_0x4718cc(0x1af)](this[_0x4718cc(0x1ff)],this[_0x4718cc(0x1c9)],this[_0x4718cc(0x1ef)]);return _0x22a51c?(_0x7edbff=_0x22a51c[_0x4718cc(0x164)]())==null?null:_0x7edbff:null;}['build'](){const _0x9916a0=_0x1265a8;var _0x5115ed,_0x253aa0;if(!this[_0x9916a0(0x1ae)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x1345ff=this['_injector'][_0x9916a0(0x1dc)](_0x589c3e[_0x9916a0(0x1a1)])['ensureSkeleton'](this[_0x9916a0(0x1ff)],this[_0x9916a0(0x1c9)]);if(!_0x1345ff)throw Error(_0x9916a0(0x209)+this[_0x9916a0(0x1ff)]+_0x9916a0(0x18d)+this['subUnitId']+_0x9916a0(0x18e));let {transform:_0xed8a8e}=(0x0,_0x589c3e[_0x9916a0(0x1a9)])(this['unitId'],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x1345ff);this['x']=this['x']>0x0?this['x']:_0xed8a8e['left'],this['y']=this['y']>0x0?this['y']:_0xed8a8e[_0x9916a0(0x173)];}return this[_0x9916a0(0x1b3)]=(_0x5115ed=this['width'])==null?_0x17e23b['DEFAULT_SHAPE_WIDTH']:_0x5115ed,this[_0x9916a0(0x1e7)]=(_0x253aa0=this[_0x9916a0(0x1e7)])==null?_0x17e23b[_0x9916a0(0x1c7)]:_0x253aa0,{'unitId':this[_0x9916a0(0x1ff)],'subUnitId':this[_0x9916a0(0x1c9)],'shapeId':this['drawId'],'shapeType':this[_0x9916a0(0x1ae)],'shapeData':Object[_0x9916a0(0x18a)](this[_0x9916a0(0x201)])['length']>0x0?this[_0x9916a0(0x201)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x9916a0(0x1e7)]};}[_0x1265a8(0x183)](){const _0x3c851f=_0x1265a8;return this[_0x3c851f(0x1ef)];}[_0x1265a8(0x1e1)](){return this['shapeType'];}[_0x1265a8(0x1e4)](){const _0x5a05ef=_0x1265a8;return this[_0x5a05ef(0x201)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x1265a8(0x1d1)](){const _0x550ce0=_0x1265a8;return{'width':this[_0x550ce0(0x1b3)],'height':this['height']};}},_0x339591=class extends _0x42aab5{constructor(_0x21ce6a,_0x57af0b,_0x2664de,_0x3ece33){const _0x8ff295=_0x1265a8;super(_0x21ce6a,_0x57af0b,_0x2664de,_0x3ece33),_0x4ffd9b(this,_0x8ff295(0x201),{});}[_0x1265a8(0x1b1)](_0xf6835){const _0x35f377=_0x1265a8;if(!(0x0,_0xc8edff['isConnectorShape'])(_0xf6835))throw Error(_0x35f377(0x17a)+_0xf6835+_0x35f377(0x1be));return super['setShapeType'](_0xf6835),this;}[_0x1265a8(0x1ca)](_0x1826b){const _0x507c1d=_0x1265a8;var _0x56f026,_0x2b9f5c;return(_0x56f026=this[_0x507c1d(0x201)])!=null&&_0x56f026['ln']||(this[_0x507c1d(0x201)]['ln']={}),!((_0x2b9f5c=this[_0x507c1d(0x201)])==null||(_0x2b9f5c=_0x2b9f5c['ln'])==null)&&_0x2b9f5c[_0x507c1d(0x208)]||(this[_0x507c1d(0x201)]['ln']['startArrow']={}),this[_0x507c1d(0x201)]['ln'][_0x507c1d(0x208)]['type']=_0x1826b,this;}[_0x1265a8(0x1e6)](_0x57f0a4){const _0x3eb6fc=_0x1265a8;var _0x3b3d2d,_0x27b1e5;return(_0x3b3d2d=this[_0x3eb6fc(0x201)])!=null&&_0x3b3d2d['ln']||(this[_0x3eb6fc(0x201)]['ln']={}),!((_0x27b1e5=this['shapeData'])==null||(_0x27b1e5=_0x27b1e5['ln'])==null)&&_0x27b1e5['endArrow']||(this[_0x3eb6fc(0x201)]['ln']['endArrow']={}),this['shapeData']['ln']['endArrow'][_0x3eb6fc(0x1c0)]=_0x57f0a4,this;}[_0x1265a8(0x1bd)](_0xb9ceb7){const _0x46d1d3=_0x1265a8;var _0x34c2be,_0x3e5d9b;return(_0x34c2be=this[_0x46d1d3(0x201)])!=null&&_0x34c2be['ln']||(this[_0x46d1d3(0x201)]['ln']={}),!((_0x3e5d9b=this[_0x46d1d3(0x201)])==null||(_0x3e5d9b=_0x3e5d9b['ln'])==null)&&_0x3e5d9b[_0x46d1d3(0x208)]||(this[_0x46d1d3(0x201)]['ln'][_0x46d1d3(0x208)]={}),this[_0x46d1d3(0x201)]['ln'][_0x46d1d3(0x208)][_0x46d1d3(0x199)]=_0xb9ceb7,this;}['setEndArrowSize'](_0x1e6f42){const _0x3c350c=_0x1265a8;var _0x2af916,_0x187d5f;return(_0x2af916=this[_0x3c350c(0x201)])!=null&&_0x2af916['ln']||(this[_0x3c350c(0x201)]['ln']={}),!((_0x187d5f=this[_0x3c350c(0x201)])==null||(_0x187d5f=_0x187d5f['ln'])==null)&&_0x187d5f[_0x3c350c(0x16f)]||(this[_0x3c350c(0x201)]['ln'][_0x3c350c(0x16f)]={}),this[_0x3c350c(0x201)]['ln'][_0x3c350c(0x16f)][_0x3c350c(0x199)]=_0x1e6f42,this;}[_0x1265a8(0x1b6)](){const _0x3e4f20=_0x1265a8;return super[_0x3e4f20(0x1b6)]();}[_0x1265a8(0x164)](){const _0x547d8e=_0x1265a8;var _0x5b356a;return((_0x5b356a=this[_0x547d8e(0x201)])==null||(_0x5b356a=_0x5b356a[_0x547d8e(0x1f2)])==null?void 0x0:_0x5b356a['to'])||null;}[_0x1265a8(0x1db)](){const _0x58a8ed=_0x1265a8;var _0x307e48;return((_0x307e48=this[_0x58a8ed(0x201)])==null||(_0x307e48=_0x307e48[_0x58a8ed(0x1f2)])==null?void 0x0:_0x307e48[_0x58a8ed(0x1c6)])||null;}};function _0x1a3961(_0x7dc05c,_0x487759,_0x5f2e3c,_0x4d495b,_0x4862b6,_0x47d02b){const _0x2aff7d=_0x1265a8;let _0x1446cc=_0x4862b6['getShapeModel'](_0x7dc05c,_0x487759,_0x5f2e3c);if(!_0x1446cc)return null;let _0x58d506=_0x47d02b[_0x2aff7d(0x1b4)]({'unitId':_0x7dc05c,'subUnitId':_0x487759,'drawingId':_0x5f2e3c});if(!(_0x58d506!=null&&_0x58d506[_0x2aff7d(0x1ab)]))return null;let {left:_0x143224=0x0,top:_0x440e46=0x0,width:_0x985917=0x0,height:_0x4702ad=0x0,flipX:_0x529555=!0x1,flipY:_0x46489b=!0x1,angle:_0x109838}=_0x58d506[_0x2aff7d(0x1ab)];_0x1446cc[_0x2aff7d(0x166)]({'width':_0x985917,'height':_0x4702ad});let _0x334e79=_0x1446cc[_0x2aff7d(0x19a)]()[_0x2aff7d(0x1d6)](_0x3327e3=>_0x3327e3[_0x2aff7d(0x1cb)]===_0x4d495b);if(!_0x334e79)return null;let _0xe413b3=_0x529555?_0x985917-_0x334e79['x']:_0x334e79['x'],_0x352371=_0x46489b?_0x4702ad-_0x334e79['y']:_0x334e79['y'];if(_0x109838&&_0x109838!==0x0){let _0x51e24d=_0x109838*Math['PI']/0xb4,_0x5c6424=Math[_0x2aff7d(0x178)](_0x51e24d),_0x32666d=Math['sin'](_0x51e24d),_0x30c798=_0x985917/0x2,_0x5baea9=_0x4702ad/0x2,_0x17f7d9=_0xe413b3-_0x30c798,_0x40cbfc=_0x352371-_0x5baea9;_0xe413b3=_0x30c798+_0x17f7d9*_0x5c6424-_0x40cbfc*_0x32666d,_0x352371=_0x5baea9+_0x17f7d9*_0x32666d+_0x40cbfc*_0x5c6424;}_0xe413b3+=_0x143224,_0x352371+=_0x440e46;let _0x4f311d=_0x334e79[_0x2aff7d(0x1ee)]/0xea60;_0x529555&&(_0x4f311d=0xb4-_0x4f311d),_0x46489b&&(_0x4f311d=-_0x4f311d),_0x4f311d+=_0x109838||0x0,_0x4f311d=(_0x4f311d%0x168+0x168)%0x168;let _0x1d39ad=(0x0,_0xc8edff[_0x2aff7d(0x16e)])({'left':_0x143224,'top':_0x440e46,'width':_0x985917,'height':_0x4702ad},_0x109838||0x0);return{'point':{'x':_0xe413b3,'y':_0x352371},'angle':_0x4f311d,'bounds':_0x1d39ad};}function _0x1891bb(_0x4c04d7,_0x3cef5d){const _0x4f7b76=_0x1265a8;let _0x1a0f17=_0x3cef5d['x']-_0x4c04d7['x'],_0xe83d9c=_0x3cef5d['y']-_0x4c04d7['y'];return Math[_0x4f7b76(0x20a)](_0x1a0f17)>=Math[_0x4f7b76(0x20a)](_0xe83d9c)?_0x1a0f17>=0x0?0xb4:0x0:_0xe83d9c>=0x0?0x10e:0x5a;}function _0x2a33ce(_0x3c0dfd,_0xdea2a5,_0x30f815,_0x1cf0ae,_0x2b9b7d,_0x54e71c,_0x43de86){const _0x321712=_0x1265a8;let _0x142e8c=_0x54e71c['getShapeModel'](_0x3c0dfd,_0xdea2a5,_0x30f815);if(!_0x142e8c)return null;let _0x8d0d20=_0x43de86[_0x321712(0x1b4)]({'unitId':_0x3c0dfd,'subUnitId':_0xdea2a5,'drawingId':_0x30f815});if(!(_0x8d0d20!=null&&_0x8d0d20['transform']))return null;let {left:_0x3ff74c=0x0,top:_0x52dbf4=0x0,width:_0x334726=0x0,height:_0x1cbd14=0x0,flipX:_0x459017=!0x1,flipY:_0x452696=!0x1}=_0x8d0d20[_0x321712(0x1ab)];_0x142e8c[_0x321712(0x166)]({'width':_0x334726,'height':_0x1cbd14});let _0x2f3e66=_0x142e8c[_0x321712(0x1da)]();if(_0x2f3e66[_0x321712(0x186)]<0x2)return null;let _0x2e282d=_0x1cf0ae?_0x2f3e66[0x0]:_0x2f3e66[_0x2f3e66[_0x321712(0x186)]-0x1],_0x1efa0e=new _0xc8edff[(_0x321712(0x1ec))]({'left':_0x3ff74c,'top':_0x52dbf4,'width':_0x334726,'height':_0x1cbd14,'flipX':_0x459017,'flipY':_0x452696})[_0x321712(0x169)](_0x2e282d);return{'point':_0x1efa0e,'angle':_0x1891bb(_0x2b9b7d[_0x321712(0x1fe)],_0x1efa0e),'bounds':{'left':_0x1efa0e['x'],'top':_0x1efa0e['y'],'width':0x0,'height':0x0}};}var _0x1c3d8a=class extends _0x5a18f5[_0x1265a8(0x18b)]{async[_0x1265a8(0x17b)](_0x263ba2){const _0x1aa240=_0x1265a8;let {unitId:_0x47fbc1,subUnitId:_0x2f575c,shapeId:_0x5b0f1f,shapeType:_0x499bba,shapeData:_0x444fed,x:_0x220ffd,y:_0x4a028b,width:_0x3777c8,height:_0x59d76a}=_0x263ba2;return this[_0x1aa240(0x1a6)]['executeCommand'](_0x17e23b[_0x1aa240(0x1a3)]['id'],{'unitId':_0x47fbc1,'subUnitId':_0x2f575c,'shapeId':_0x5b0f1f,'shapeType':_0x499bba,'shapeData':_0x444fed,'position':{'x':_0x220ffd,'y':_0x4a028b},'width':_0x3777c8,'height':_0x59d76a});}async[_0x1265a8(0x1e5)](_0x2ff009){const _0x15204a=_0x1265a8;let {unitId:_0x3d2c8a,subUnitId:_0x1e368f,shapeId:_0x259337,shapeType:_0x3584e5,shapeData:_0x5529c8,x:_0x5a8215,y:_0x5755b3,width:_0x36ea5a,height:_0xc88dd4}=_0x2ff009;return this['_commandService']['executeCommand'](_0x17e23b[_0x15204a(0x1fa)]['id'],{'unitId':_0x3d2c8a,'subUnitId':_0x1e368f,'shapeId':_0x259337,'shapeType':_0x3584e5,'shapeData':_0x5529c8,'position':{'x':_0x5a8215,'y':_0x5755b3},'width':_0x36ea5a,'height':_0xc88dd4});}['newShape'](_0x505849){const _0x21e83a=_0x1265a8;let _0x102f96=this[_0x21e83a(0x1f1)]()[_0x21e83a(0x1ce)](),_0x181270=this[_0x21e83a(0x1de)]();if(_0x505849){let _0x50f719=new _0x42aab5(_0x102f96,_0x181270,_0x505849[_0x21e83a(0x1ef)],this[_0x21e83a(0x1e9)]);return this['_preloadShapeProperties'](_0x50f719,_0x102f96,_0x181270,_0x505849[_0x21e83a(0x1ef)]),_0x50f719;}return new _0x42aab5(_0x102f96,_0x181270,(0x0,_0x5272a5[_0x21e83a(0x1eb)])(),this[_0x21e83a(0x1e9)]);}[_0x1265a8(0x1b2)](_0x501749){const _0x200a16=_0x1265a8;let _0x5cf358=this[_0x200a16(0x1f1)]()[_0x200a16(0x1ce)](),_0x561691=this['getSheetId']();if(_0x501749){let _0x2ab52f=new _0x339591(_0x5cf358,_0x561691,_0x501749['drawId'],this[_0x200a16(0x1e9)]);return this['_preloadShapeProperties'](_0x2ab52f,_0x5cf358,_0x561691,_0x501749[_0x200a16(0x1ef)]),_0x2ab52f;}return new _0x339591(_0x5cf358,_0x561691,(0x0,_0x5272a5[_0x200a16(0x1eb)])(),this[_0x200a16(0x1e9)]);}[_0x1265a8(0x1fc)](){const _0x49fdd5=_0x1265a8;let _0x121779=this[_0x49fdd5(0x1e9)][_0x49fdd5(0x1dc)](_0x482202[_0x49fdd5(0x1ba)]),_0x4290ec=this[_0x49fdd5(0x1f1)]()[_0x49fdd5(0x1ce)](),_0x18c5a2=this[_0x49fdd5(0x1de)](),_0x1e9120=_0x121779[_0x49fdd5(0x1e0)](_0x4290ec,_0x18c5a2);if(!_0x1e9120)return[];let _0x2f2b4a=[];for(let [_0x44f8cd,_0xd1ecb]of Object[_0x49fdd5(0x19b)](_0x1e9120))if(_0xd1ecb&&_0xd1ecb[_0x49fdd5(0x16b)]===_0x5272a5[_0x49fdd5(0x185)]['DRAWING_SHAPE']){let _0x47146e=new _0x42aab5(_0x4290ec,_0x18c5a2,_0x44f8cd,this['_injector']);this[_0x49fdd5(0x1c1)](_0x47146e,_0x4290ec,_0x18c5a2,_0x44f8cd),_0x2f2b4a['push'](_0x47146e);}return _0x2f2b4a;}[_0x1265a8(0x1f7)](_0x15dded){const _0x5cee6d=_0x1265a8;let {unitId:_0x32ca70,subUnitId:_0x484d1f,drawId:_0x1f09c9}=_0x15dded;return this[_0x5cee6d(0x1a6)]['executeCommand'](_0x482202['RemoveSheetDrawingCommand']['id'],{'unitId':_0x32ca70,'drawings':[{'unitId':_0x32ca70,'subUnitId':_0x484d1f,'drawingId':_0x1f09c9,'drawingType':_0x5272a5[_0x5cee6d(0x185)][_0x5cee6d(0x192)]}]});}async[_0x1265a8(0x1b0)](_0x2609f9){const _0x248659=_0x1265a8;let {connector:_0x504d9e,startTarget:_0x2c095a,endTarget:_0x3c0f10}=_0x2609f9;if(!_0x2c095a&&!_0x3c0f10)return!0x1;let _0x1385ce=this[_0x248659(0x1f1)]()[_0x248659(0x1ce)](),_0x4e7f30=this[_0x248659(0x1de)](),_0x10cae3=this[_0x248659(0x1e9)][_0x248659(0x1dc)](_0x17e23b[_0x248659(0x187)]),_0x50dedc=this[_0x248659(0x1e9)][_0x248659(0x1dc)](_0x437071[_0x248659(0x19c)]),_0x50e287=_0x10cae3[_0x248659(0x1af)](_0x1385ce,_0x4e7f30,_0x504d9e[_0x248659(0x1ef)]);if(!_0x50e287)return!0x1;let _0x46dbb8=_0x50e287[_0x248659(0x1e1)](),_0x2deb01=_0x50e287[_0x248659(0x1f0)](),_0x2a2acf={};for(let _0x8d5494 of _0x50e287[_0x248659(0x18f)]()){let _0x3ceaed=_0x50e287['getAdjustValueByName'](_0x8d5494);_0x3ceaed!==void 0x0&&(_0x2a2acf[_0x8d5494]=_0x3ceaed);}let {startInfo:_0xa42bc0,endInfo:_0x4550ff}=this['_resolveEndpoints'](_0x1385ce,_0x4e7f30,_0x504d9e,_0x50e287,_0x2c095a,_0x3c0f10,_0x10cae3,_0x50dedc,_0x2deb01);if(!_0xa42bc0||!_0x4550ff)return!0x1;let _0x403c19=(0x0,_0xc8edff['computeConnectorRouteLayout'])((0x0,_0xc8edff[_0x248659(0x1c4)])(_0xa42bc0,_0x4550ff,_0x46dbb8),_0x46dbb8),_0x4da2bc={};return _0x2c095a?_0x4da2bc[_0x248659(0x1c6)]={'shapeId':_0x2c095a[_0x248659(0x165)][_0x248659(0x1ef)],'cxnIndex':_0x2c095a[_0x248659(0x197)]}:_0x2deb01!=null&&_0x2deb01[_0x248659(0x1c6)]&&(_0x4da2bc['from']=_0x2deb01['from']),_0x3c0f10?_0x4da2bc['to']={'shapeId':_0x3c0f10[_0x248659(0x165)][_0x248659(0x1ef)],'cxnIndex':_0x3c0f10[_0x248659(0x197)]}:_0x2deb01!=null&&_0x2deb01['to']&&(_0x4da2bc['to']=_0x2deb01['to']),this[_0x248659(0x1a6)][_0x248659(0x1b9)](_0x17e23b[_0x248659(0x1ea)]['id'],{'unitId':_0x1385ce,'subUnitId':_0x4e7f30,'connectorShapeId':_0x504d9e[_0x248659(0x1ef)],'width':_0x403c19[_0x248659(0x198)][_0x248659(0x1b3)],'height':_0x403c19['worldRect'][_0x248659(0x1e7)],'left':_0x403c19['worldRect'][_0x248659(0x1a8)],'top':_0x403c19['worldRect'][_0x248659(0x173)],'flipX':_0x403c19[_0x248659(0x198)][_0x248659(0x16d)]||!0x1,'flipY':_0x403c19[_0x248659(0x198)][_0x248659(0x1ac)]||!0x1,'oldAdjustValues':_0x2a2acf,'newAdjustValues':_0x403c19['adjustValues'],'newLineType':_0x403c19[_0x248659(0x1bb)],'oldLineType':_0x46dbb8,'rotation':_0x403c19[_0x248659(0x1fb)],'oldRelation':_0x2deb01,'newRelation':_0x4da2bc});}['_preloadShapeProperties'](_0x646d4c,_0x357e53,_0x684359,_0xe7eda1){const _0x5b1324=_0x1265a8;let _0x3ccd92=this[_0x5b1324(0x1e9)][_0x5b1324(0x1dc)](_0x437071[_0x5b1324(0x19c)])[_0x5b1324(0x1b4)]({'unitId':_0x357e53,'subUnitId':_0x684359,'drawingId':_0xe7eda1});if(_0x3ccd92!=null&&_0x3ccd92[_0x5b1324(0x1ab)]){var _0x31f74e,_0x1d2e16,_0xefbd,_0x57f072;_0x646d4c['x']=(_0x31f74e=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x1a8)])==null?0x0:_0x31f74e,_0x646d4c['y']=(_0x1d2e16=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x173)])==null?0x0:_0x1d2e16,_0x646d4c['width']=(_0xefbd=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x1b3)])==null?_0x646d4c[_0x5b1324(0x1b3)]:_0xefbd,_0x646d4c[_0x5b1324(0x1e7)]=(_0x57f072=_0x3ccd92[_0x5b1324(0x1ab)]['height'])==null?_0x646d4c[_0x5b1324(0x1e7)]:_0x57f072;}let _0x27a485=this[_0x5b1324(0x1e9)][_0x5b1324(0x1dc)](_0x17e23b[_0x5b1324(0x187)])[_0x5b1324(0x1af)](_0x357e53,_0x684359,_0xe7eda1);if(_0x27a485){_0x646d4c[_0x5b1324(0x1ae)]=_0x27a485[_0x5b1324(0x1e1)]();let _0x414352=_0x27a485[_0x5b1324(0x1e4)]();_0x414352&&(_0x646d4c[_0x5b1324(0x201)]=JSON[_0x5b1324(0x179)](JSON[_0x5b1324(0x194)](_0x414352)));}}[_0x1265a8(0x189)](_0x16dea6,_0xfbf01a,_0x2a8286,_0x511815,_0x4be68f,_0x31c308,_0x3eaf24,_0x210752,_0x319ef5){const _0x8183f=_0x1265a8;let _0x30351b=null,_0x47bab7=null;return _0x4be68f&&(_0x30351b=_0x1a3961(_0x16dea6,_0xfbf01a,_0x4be68f[_0x8183f(0x165)][_0x8183f(0x1ef)],_0x4be68f[_0x8183f(0x197)],_0x3eaf24,_0x210752)),_0x31c308&&(_0x47bab7=_0x1a3961(_0x16dea6,_0xfbf01a,_0x31c308[_0x8183f(0x165)][_0x8183f(0x1ef)],_0x31c308[_0x8183f(0x197)],_0x3eaf24,_0x210752)),_0x30351b||(_0x30351b=this[_0x8183f(0x19f)](_0x16dea6,_0xfbf01a,_0x2a8286[_0x8183f(0x1ef)],!0x0,_0x47bab7,_0x319ef5==null?void 0x0:_0x319ef5['from'],_0x3eaf24,_0x210752)),_0x47bab7||(_0x47bab7=this[_0x8183f(0x19f)](_0x16dea6,_0xfbf01a,_0x2a8286[_0x8183f(0x1ef)],!0x1,_0x30351b,_0x319ef5==null?void 0x0:_0x319ef5['to'],_0x3eaf24,_0x210752)),{'startInfo':_0x30351b,'endInfo':_0x47bab7};}[_0x1265a8(0x19f)](_0x476ea0,_0x244e4d,_0x454e74,_0x2635fc,_0x5d9de0,_0x187fde,_0x2563d4,_0x7f38bd){const _0x161c49=_0x1265a8;if(_0x187fde){let _0x4f1da1=_0x1a3961(_0x476ea0,_0x244e4d,_0x187fde[_0x161c49(0x176)],_0x187fde[_0x161c49(0x1c2)],_0x2563d4,_0x7f38bd);if(_0x4f1da1)return _0x4f1da1;}return _0x5d9de0?_0x2a33ce(_0x476ea0,_0x244e4d,_0x454e74,_0x2635fc,_0x5d9de0,_0x2563d4,_0x7f38bd):null;}};_0x5a18f5[_0x1265a8(0x18b)][_0x1265a8(0x1f3)](_0x1c3d8a),_0x3d3915[_0x1265a8(0x1e8)]=_0x339591,_0x3d3915[_0x1265a8(0x1f9)]=_0x42aab5;}));
1
+ function _0x237f(){const _0x159abe=['setStrokeOpacity','length','_injector','constructor','gradientType','setStrokeLineDashType','transform','from','shapeId','ShapeLineTypeEnum','ShapeArrowTypeEnum','adjustValues','startArrow','@univerjs/sheets','symbol','UniverProSheetsShapeFacade','getSize','setWidth','SetShapeDrawingDataCommand','top','getDrawingData','NoFill','capType','getUnitId','DrawingTypeEnum','endArrow','UniverProEngineShape','getAdjustPoints','setShapeData','@univerjs/sheets-drawing','generateRandomId','localToWorld','ensureSkeleton','shape','updateShape','getConnectorLinePoints','opacity','entries','getConnectionSites','ConnectorCoordinateTransform','insertShape','getAdjustValueByName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IDrawingManagerService','fill','2122712PgFwUs','setStrokeLineCapType','exports','setPosition','get','ShapeGradientTypeEnum','_resolveEndpoints','ShapeLineJoinEnum','RemoveSheetDrawingCommand','525513PaZjJT','ShapeArrowSizeEnum','setStrokeLineJoinType','_preloadShapeProperties','setNoneFill','keys','getSheetId','defineProperty','height','flipX','connectionSiteIndex','setShapeSolidFill','build','sin','index','@univerjs/drawing','isConnectorShape','DEFAULT_SHAPE_HEIGHT','shapeData','setStrokeLineType','_commandService','196990viaqvS','UniverCoreFacade','drawingType','getShapes','162000PymhUj','stringify','InsertShapeCommand','executeCommand','computeConnectorRouteLayout','\x20and\x20subUnitId\x20','Module','ShapeLineDashEnum','width','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','gradientStops','shapeType','getEndConnectInfo','size','UniverProSheetsShape','toPrimitive','SheetSkeletonService','getShapeId','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','push','default','lineStrokeType','FEnum','1rIEBqn','ShapeTypeEnum','updateContext','FShape','routeConnectorLineShape','extend','color','getDrawingByParam','getShapeData','\x20not\x20found','object','rotation','call','66618DSeCcp','getShapeType','@univerjs/core/facade','setStartArrowType','setEndArrowType','amd','getConnectionSiteList','SheetsShapeService','getShapeModel','cxnIndex','relation','UniverSheets','getStartConnectInfo','type','Skeleton\x20for\x20unitId\x20','newShape','DRAWING_SHAPE','subUnitId','setShapeType','left','removeShape','function','string','unitId','setEndArrowSize','ShapeLineCapEnum','toStringTag','dashType','getWorkbook','1243389gPbDxo','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','drawId','newConnector','stroke','worldRect','_resolveExistingOrFreeEndpoint','getBasicShapeRotateBound','abs','@univerjs/core','ShapeFillEnum','361028JeTbDR','fillType'];_0x237f=function(){return _0x159abe;};return _0x237f();}function _0x3d73(_0x12bba1,_0x3ea531){_0x12bba1=_0x12bba1-0x74;const _0x237fd5=_0x237f();let _0x3d73ea=_0x237fd5[_0x12bba1];return _0x3d73ea;}(function(_0x35f486,_0x592c2b){const _0x5773dd=_0x3d73,_0x185e16=_0x35f486();while(!![]){try{const _0x37cd03=parseInt(_0x5773dd(0x104))/0x1*(parseInt(_0x5773dd(0x9b))/0x2)+-parseInt(_0x5773dd(0xd3))/0x3+parseInt(_0x5773dd(0xec))/0x4+-parseInt(_0x5773dd(0xe8))/0x5+parseInt(_0x5773dd(0x111))/0x6+-parseInt(_0x5773dd(0x90))/0x7+parseInt(_0x5773dd(0xca))/0x8;if(_0x37cd03===_0x592c2b)break;else _0x185e16['push'](_0x185e16['shift']());}catch(_0x4349f5){_0x185e16['push'](_0x185e16['shift']());}}}(_0x237f,0x19b2c),function(_0x4ba654,_0x15ea7a){const _0x41f0f2=_0x3d73;typeof exports=='object'&&typeof module<'u'?_0x15ea7a(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define=='function'&&define[_0x41f0f2(0x78)]?define([_0x41f0f2(0xcc),'@univerjs-pro/engine-shape',_0x41f0f2(0x75),'@univerjs-pro/sheets-shape',_0x41f0f2(0x99),_0x41f0f2(0xe2),_0x41f0f2(0xaa),_0x41f0f2(0xba),'@univerjs/sheets/facade'],_0x15ea7a):(_0x4ba654=typeof globalThis<'u'?globalThis:_0x4ba654||self,_0x15ea7a(_0x4ba654[_0x41f0f2(0xac)]={},_0x4ba654[_0x41f0f2(0xb7)],_0x4ba654[_0x41f0f2(0xe9)],_0x4ba654[_0x41f0f2(0xfa)],_0x4ba654['UniverCore'],_0x4ba654['UniverDrawing'],_0x4ba654[_0x41f0f2(0x7e)],_0x4ba654['UniverSheetsDrawing'],_0x4ba654['UniverSheetsFacade']));}(this,function(_0x30ae42,_0x5ce04d,_0x395940,_0x596963,_0x952f44,_0x487e3b,_0x2d56ed,_0xf564fe,_0x426ae2){const _0x31a6cc=_0x3d73;Object[_0x31a6cc(0xda)](_0x30ae42,Symbol[_0x31a6cc(0x8d)],{'value':_0x31a6cc(0xf2)});var _0x2a5de5=class extends _0x395940[_0x31a6cc(0x103)]{get[_0x31a6cc(0x105)](){return _0x5ce04d['ShapeTypeEnum'];}get[_0x31a6cc(0x9a)](){const _0x5f4335=_0x31a6cc;return _0x5ce04d[_0x5f4335(0x9a)];}get[_0x31a6cc(0xcf)](){const _0x3e980a=_0x31a6cc;return _0x5ce04d[_0x3e980a(0xcf)];}get[_0x31a6cc(0xa6)](){return _0x5ce04d['ShapeLineTypeEnum'];}get[_0x31a6cc(0xf3)](){const _0x5798dd=_0x31a6cc;return _0x5ce04d[_0x5798dd(0xf3)];}get[_0x31a6cc(0x8c)](){const _0x480525=_0x31a6cc;return _0x5ce04d[_0x480525(0x8c)];}get['ShapeLineJoinEnum'](){const _0x4ef527=_0x31a6cc;return _0x5ce04d[_0x4ef527(0xd1)];}get[_0x31a6cc(0xa7)](){return _0x5ce04d['ShapeArrowTypeEnum'];}get[_0x31a6cc(0xd4)](){const _0xf064ac=_0x31a6cc;return _0x5ce04d[_0xf064ac(0xd4)];}};_0x395940[_0x31a6cc(0x103)][_0x31a6cc(0x109)](_0x2a5de5);function _0xf56a57(_0x4a6603){'@babel/helpers - typeof';const _0x344f61=_0x31a6cc;return _0xf56a57=typeof Symbol==_0x344f61(0x88)&&typeof Symbol['iterator']==_0x344f61(0xab)?function(_0x15f713){return typeof _0x15f713;}:function(_0x118eda){const _0x5d9104=_0x344f61;return _0x118eda&&typeof Symbol==_0x5d9104(0x88)&&_0x118eda[_0x5d9104(0xa0)]===Symbol&&_0x118eda!==Symbol['prototype']?_0x5d9104(0xab):typeof _0x118eda;},_0xf56a57(_0x4a6603);}function _0x38832a(_0x1fd54f,_0x350abd){const _0xed14cd=_0x31a6cc;if(_0xf56a57(_0x1fd54f)!=_0xed14cd(0x10e)||!_0x1fd54f)return _0x1fd54f;var _0x27ea3a=_0x1fd54f[Symbol[_0xed14cd(0xfb)]];if(_0x27ea3a!==void 0x0){var _0x1f578a=_0x27ea3a[_0xed14cd(0x110)](_0x1fd54f,_0x350abd||_0xed14cd(0x101));if(_0xf56a57(_0x1f578a)!=_0xed14cd(0x10e))return _0x1f578a;throw TypeError(_0xed14cd(0xc7));}return(_0x350abd==='string'?String:Number)(_0x1fd54f);}function _0x3ba750(_0xb6e56a){const _0x44a21=_0x31a6cc;var _0x292b0f=_0x38832a(_0xb6e56a,_0x44a21(0x89));return _0xf56a57(_0x292b0f)==_0x44a21(0xab)?_0x292b0f:_0x292b0f+'';}function _0x1efa51(_0x57fda1,_0x55590f,_0x4b81e8){const _0x52585d=_0x31a6cc;return(_0x55590f=_0x3ba750(_0x55590f))in _0x57fda1?Object[_0x52585d(0xda)](_0x57fda1,_0x55590f,{'value':_0x4b81e8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57fda1[_0x55590f]=_0x4b81e8,_0x57fda1;}var _0x41d38e=class{constructor(_0xa53d79,_0x7b388,_0x498760,_0x264d16){const _0x4ed08f=_0x31a6cc;_0x1efa51(this,_0x4ed08f(0x8a),void 0x0),_0x1efa51(this,_0x4ed08f(0x84),void 0x0),_0x1efa51(this,'drawId',void 0x0),_0x1efa51(this,'x',0x0),_0x1efa51(this,'y',0x0),_0x1efa51(this,_0x4ed08f(0xf4),_0x596963['DEFAULT_SHAPE_WIDTH']),_0x1efa51(this,_0x4ed08f(0xdb),_0x596963[_0x4ed08f(0xe4)]),_0x1efa51(this,'shapeType',void 0x0),_0x1efa51(this,_0x4ed08f(0xe5),{}),_0x1efa51(this,_0x4ed08f(0x9f),void 0x0),this[_0x4ed08f(0x8a)]=_0xa53d79,this[_0x4ed08f(0x84)]=_0x7b388,this[_0x4ed08f(0x92)]=_0x498760||(0x0,_0x952f44['generateRandomId'])(),this[_0x4ed08f(0x9f)]=_0x264d16;}[_0x31a6cc(0xcd)](_0x14e5fd,_0x415bce,_0x2b7ff0,_0x36f681){const _0x574f2c=_0x31a6cc;let _0x14834a=this[_0x574f2c(0x9f)][_0x574f2c(0xce)](_0x2d56ed[_0x574f2c(0xfc)])[_0x574f2c(0xbd)](this['unitId'],this[_0x574f2c(0x84)]);if(!_0x14834a)throw Error(_0x574f2c(0x81)+this[_0x574f2c(0x8a)]+_0x574f2c(0xf1)+this['subUnitId']+_0x574f2c(0x10d));let {transform:_0x24770b}=(0x0,_0x2d56ed['convertPositionCellToSheetOverGrid'])(this[_0x574f2c(0x8a)],this[_0x574f2c(0x84)],{'row':_0x14e5fd,'column':_0x415bce,'rowOffset':_0x2b7ff0,'columnOffset':_0x36f681},0x1,0x1,_0x14834a);return this['x']=_0x24770b[_0x574f2c(0x86)],this['y']=_0x24770b[_0x574f2c(0xb0)],this;}['setAbsolutePosition'](_0x30f985,_0x31895a){return this['x']=_0x30f985,this['y']=_0x31895a,this;}[_0x31a6cc(0x85)](_0x590fa8){const _0x5b4522=_0x31a6cc;return this[_0x5b4522(0xf7)]=_0x590fa8,this;}[_0x31a6cc(0xb9)](_0x1ad56d){const _0x4a32a4=_0x31a6cc;return _0x1ad56d[_0x4a32a4(0xf7)]&&this[_0x4a32a4(0x85)](_0x1ad56d[_0x4a32a4(0xf7)]),this['shapeData']={..._0x1ad56d},this;}[_0x31a6cc(0xde)](_0x4473cc,_0x9ac45e){const _0x5e8a78=_0x31a6cc;return this[_0x5e8a78(0xe5)]['fill']||(this[_0x5e8a78(0xe5)][_0x5e8a78(0xc9)]={}),this[_0x5e8a78(0xe5)][_0x5e8a78(0xc9)][_0x5e8a78(0x9c)]=_0x5ce04d['ShapeFillEnum']['SolidFill'],_0x4473cc!==void 0x0&&(this[_0x5e8a78(0xe5)][_0x5e8a78(0xc9)]['color']=_0x4473cc),_0x9ac45e!==void 0x0&&(this[_0x5e8a78(0xe5)]['fill'][_0x5e8a78(0xc1)]=_0x9ac45e),this;}['setShapeGradientFill'](_0x4270f6,_0x4d33d3,_0x21881a){const _0x34704b=_0x31a6cc;if(_0x4d33d3===void 0x0||_0x4d33d3['length']===0x0)throw Error(_0x34704b(0x91));return this[_0x34704b(0xe5)][_0x34704b(0xc9)]||(this['shapeData'][_0x34704b(0xc9)]={}),this[_0x34704b(0xe5)][_0x34704b(0xc9)][_0x34704b(0xf6)]=_0x4d33d3,this[_0x34704b(0xe5)]['fill'][_0x34704b(0x9c)]=_0x5ce04d[_0x34704b(0x9a)]['GradientFill'],this[_0x34704b(0xe5)][_0x34704b(0xc9)][_0x34704b(0xa1)]=_0x4270f6,_0x21881a!==void 0x0&&(this[_0x34704b(0xe5)][_0x34704b(0xc9)]['gradientAngle']=_0x21881a),this;}[_0x31a6cc(0xd7)](){const _0x7b8b10=_0x31a6cc;return this[_0x7b8b10(0xe5)][_0x7b8b10(0xc9)]={'fillType':_0x5ce04d[_0x7b8b10(0x9a)][_0x7b8b10(0xb2)]},this;}['setStrokeColor'](_0x54503d){const _0x500dba=_0x31a6cc;return this['shapeData'][_0x500dba(0x94)]||(this[_0x500dba(0xe5)]['stroke']={}),this['shapeData'][_0x500dba(0x94)][_0x500dba(0x10a)]=_0x54503d,this;}['setStrokeWidth'](_0x43497d){const _0x4ce56e=_0x31a6cc;return this[_0x4ce56e(0xe5)][_0x4ce56e(0x94)]||(this[_0x4ce56e(0xe5)]['stroke']={}),this[_0x4ce56e(0xe5)][_0x4ce56e(0x94)][_0x4ce56e(0xf4)]=_0x43497d,this;}[_0x31a6cc(0xa2)](_0xe0eb2e){const _0xeef33b=_0x31a6cc;return this['shapeData'][_0xeef33b(0x94)]||(this['shapeData'][_0xeef33b(0x94)]={}),this['shapeData'][_0xeef33b(0x94)][_0xeef33b(0x8e)]=_0xe0eb2e,this;}[_0x31a6cc(0xd5)](_0x55daaf){const _0x4da22d=_0x31a6cc;return this['shapeData'][_0x4da22d(0x94)]||(this[_0x4da22d(0xe5)][_0x4da22d(0x94)]={}),this[_0x4da22d(0xe5)][_0x4da22d(0x94)]['lineJoinType']=_0x55daaf,this;}[_0x31a6cc(0xcb)](_0x49e9ca){const _0x5ab16e=_0x31a6cc;return this[_0x5ab16e(0xe5)][_0x5ab16e(0x94)]||(this[_0x5ab16e(0xe5)][_0x5ab16e(0x94)]={}),this[_0x5ab16e(0xe5)][_0x5ab16e(0x94)][_0x5ab16e(0xb3)]=_0x49e9ca,this;}[_0x31a6cc(0x9d)](_0x223101){const _0x203019=_0x31a6cc;return this[_0x203019(0xe5)][_0x203019(0x94)]||(this[_0x203019(0xe5)][_0x203019(0x94)]={}),this[_0x203019(0xe5)][_0x203019(0x94)][_0x203019(0xc1)]=_0x223101,this;}[_0x31a6cc(0xe6)](_0x292fe5){const _0x50c89c=_0x31a6cc;return this[_0x50c89c(0xe5)][_0x50c89c(0x94)]||(this[_0x50c89c(0xe5)]['stroke']={}),this[_0x50c89c(0xe5)][_0x50c89c(0x94)][_0x50c89c(0x102)]=_0x292fe5,this;}[_0x31a6cc(0xae)](_0x432a4a){return this['width']=_0x432a4a,this;}['setHeight'](_0x695226){return this['height']=_0x695226,this;}['isLineShape'](){const _0x30e666=_0x31a6cc;let _0x3a1eec=this[_0x30e666(0x9f)]['get'](_0x596963[_0x30e666(0x7a)])[_0x30e666(0x7b)](this[_0x30e666(0x8a)],this[_0x30e666(0x84)],this[_0x30e666(0x92)]);return _0x3a1eec?(0x0,_0x5ce04d[_0x30e666(0xe3)])(_0x3a1eec[_0x30e666(0x74)]()):this[_0x30e666(0xf7)]?(0x0,_0x5ce04d['isConnectorShape'])(this[_0x30e666(0xf7)]):!0x1;}[_0x31a6cc(0xc3)](){const _0x120ce3=_0x31a6cc;let _0x4075db=this[_0x120ce3(0x9f)][_0x120ce3(0xce)](_0x596963['SheetsShapeService'])[_0x120ce3(0x7b)](this[_0x120ce3(0x8a)],this[_0x120ce3(0x84)],this['drawId']);if(!_0x4075db)return[];let _0x399d08=this['_injector'][_0x120ce3(0xce)](_0x487e3b[_0x120ce3(0xc8)])[_0x120ce3(0x10b)]({'unitId':this[_0x120ce3(0x8a)],'subUnitId':this[_0x120ce3(0x84)],'drawingId':this[_0x120ce3(0x92)]});if(!(_0x399d08!=null&&_0x399d08[_0x120ce3(0xa3)]))return[];let {width:_0x3b7b64=0x0,height:_0x41208c=0x0}=_0x399d08['transform'];return _0x4075db[_0x120ce3(0x106)]({'width':_0x3b7b64,'height':_0x41208c}),_0x4075db['getConnectionSiteList']();}[_0x31a6cc(0xb8)](){const _0x246122=_0x31a6cc;let _0x4c02c3=this[_0x246122(0x9f)][_0x246122(0xce)](_0x596963['SheetsShapeService'])['getShapeModel'](this[_0x246122(0x8a)],this['subUnitId'],this['drawId']);if(!_0x4c02c3)return[];let _0xa9e9e2=this[_0x246122(0x9f)][_0x246122(0xce)](_0x487e3b[_0x246122(0xc8)])[_0x246122(0x10b)]({'unitId':this['unitId'],'subUnitId':this[_0x246122(0x84)],'drawingId':this[_0x246122(0x92)]});if(!(_0xa9e9e2!=null&&_0xa9e9e2[_0x246122(0xa3)]))return[];let {width:_0x9e6da7=0x0,height:_0x34b725=0x0}=_0xa9e9e2[_0x246122(0xa3)];return _0x4c02c3[_0x246122(0x106)]({'width':_0x9e6da7,'height':_0x34b725}),_0x4c02c3['getDrawingPoints']();}[_0x31a6cc(0xc0)](){const _0x212ed6=_0x31a6cc;let _0x1a0e38=this[_0x212ed6(0x9f)][_0x212ed6(0xce)](_0x596963[_0x212ed6(0x7a)])['getShapeModel'](this['unitId'],this[_0x212ed6(0x84)],this[_0x212ed6(0x92)]);if(!_0x1a0e38||!(0x0,_0x5ce04d[_0x212ed6(0xe3)])(_0x1a0e38[_0x212ed6(0x74)]()))return[];let _0x1030ee=this[_0x212ed6(0x9f)]['get'](_0x487e3b[_0x212ed6(0xc8)])['getDrawingByParam']({'unitId':this[_0x212ed6(0x8a)],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0x1030ee!=null&&_0x1030ee['transform']))return[];let {width:_0x5efd47=0x0,height:_0x57148a=0x0}=_0x1030ee[_0x212ed6(0xa3)];return _0x1a0e38[_0x212ed6(0x106)]({'width':_0x5efd47,'height':_0x57148a}),_0x1a0e38['getConnectorLinePoints']();}[_0x31a6cc(0x7f)](){const _0xbbac97=_0x31a6cc;var _0xc65038;let _0x70c06f=this[_0xbbac97(0x9f)][_0xbbac97(0xce)](_0x596963['SheetsShapeService'])['getShapeModel'](this[_0xbbac97(0x8a)],this[_0xbbac97(0x84)],this[_0xbbac97(0x92)]);return _0x70c06f?(_0xc65038=_0x70c06f[_0xbbac97(0x7f)]())==null?null:_0xc65038:null;}['getEndConnectInfo'](){const _0x381a83=_0x31a6cc;var _0x9eb508;let _0x5e195c=this['_injector'][_0x381a83(0xce)](_0x596963[_0x381a83(0x7a)])[_0x381a83(0x7b)](this[_0x381a83(0x8a)],this[_0x381a83(0x84)],this['drawId']);return _0x5e195c?(_0x9eb508=_0x5e195c[_0x381a83(0xf8)]())==null?null:_0x9eb508:null;}[_0x31a6cc(0xdf)](){const _0x28b554=_0x31a6cc;var _0x47fcfc,_0x660e92;if(!this['shapeType'])throw Error(_0x28b554(0xf5));if(this['x']===0x0||this['y']===0x0){let _0xb65ff5=this[_0x28b554(0x9f)][_0x28b554(0xce)](_0x2d56ed[_0x28b554(0xfc)])[_0x28b554(0xbd)](this[_0x28b554(0x8a)],this[_0x28b554(0x84)]);if(!_0xb65ff5)throw Error(_0x28b554(0x81)+this[_0x28b554(0x8a)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+_0x28b554(0x10d));let {transform:_0x53ea3e}=(0x0,_0x2d56ed['convertPositionCellToSheetOverGrid'])(this['unitId'],this[_0x28b554(0x84)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0xb65ff5);this['x']=this['x']>0x0?this['x']:_0x53ea3e[_0x28b554(0x86)],this['y']=this['y']>0x0?this['y']:_0x53ea3e[_0x28b554(0xb0)];}return this[_0x28b554(0xf4)]=(_0x47fcfc=this[_0x28b554(0xf4)])==null?_0x596963['DEFAULT_SHAPE_WIDTH']:_0x47fcfc,this[_0x28b554(0xdb)]=(_0x660e92=this['height'])==null?_0x596963[_0x28b554(0xe4)]:_0x660e92,{'unitId':this[_0x28b554(0x8a)],'subUnitId':this[_0x28b554(0x84)],'shapeId':this['drawId'],'shapeType':this[_0x28b554(0xf7)],'shapeData':Object[_0x28b554(0xd8)](this[_0x28b554(0xe5)])[_0x28b554(0x9e)]>0x0?this[_0x28b554(0xe5)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x28b554(0xf4)],'height':this[_0x28b554(0xdb)]};}[_0x31a6cc(0xfd)](){const _0x128419=_0x31a6cc;return this[_0x128419(0x92)];}[_0x31a6cc(0x74)](){const _0x2d3074=_0x31a6cc;return this[_0x2d3074(0xf7)];}[_0x31a6cc(0x10c)](){const _0x210910=_0x31a6cc;return this[_0x210910(0xe5)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x31a6cc(0xad)](){const _0x2e1446=_0x31a6cc;return{'width':this[_0x2e1446(0xf4)],'height':this[_0x2e1446(0xdb)]};}},_0x5ea94d=class extends _0x41d38e{constructor(_0x3d030f,_0x5be1bb,_0x1bacbe,_0x5a5b08){const _0x5b0ed3=_0x31a6cc;super(_0x3d030f,_0x5be1bb,_0x1bacbe,_0x5a5b08),_0x1efa51(this,_0x5b0ed3(0xe5),{});}['setShapeType'](_0x568bd6){const _0x39bea2=_0x31a6cc;if(!(0x0,_0x5ce04d[_0x39bea2(0xe3)])(_0x568bd6))throw Error(_0x39bea2(0xfe)+_0x568bd6+_0x39bea2(0xff));return super['setShapeType'](_0x568bd6),this;}[_0x31a6cc(0x76)](_0x34c4d9){const _0x108b41=_0x31a6cc;var _0x7eb88e,_0x4cbdb3;return(_0x7eb88e=this[_0x108b41(0xe5)])!=null&&_0x7eb88e['ln']||(this[_0x108b41(0xe5)]['ln']={}),!((_0x4cbdb3=this[_0x108b41(0xe5)])==null||(_0x4cbdb3=_0x4cbdb3['ln'])==null)&&_0x4cbdb3[_0x108b41(0xa9)]||(this[_0x108b41(0xe5)]['ln']['startArrow']={}),this[_0x108b41(0xe5)]['ln'][_0x108b41(0xa9)][_0x108b41(0x80)]=_0x34c4d9,this;}[_0x31a6cc(0x77)](_0x508219){const _0x2f4cd9=_0x31a6cc;var _0x31c6f3,_0x4967e0;return(_0x31c6f3=this[_0x2f4cd9(0xe5)])!=null&&_0x31c6f3['ln']||(this[_0x2f4cd9(0xe5)]['ln']={}),!((_0x4967e0=this['shapeData'])==null||(_0x4967e0=_0x4967e0['ln'])==null)&&_0x4967e0[_0x2f4cd9(0xb6)]||(this[_0x2f4cd9(0xe5)]['ln']['endArrow']={}),this[_0x2f4cd9(0xe5)]['ln'][_0x2f4cd9(0xb6)]['type']=_0x508219,this;}['setStartArrowSize'](_0x5980f9){const _0x1abeb0=_0x31a6cc;var _0x1c4ca3,_0x3fe4f9;return(_0x1c4ca3=this['shapeData'])!=null&&_0x1c4ca3['ln']||(this[_0x1abeb0(0xe5)]['ln']={}),!((_0x3fe4f9=this[_0x1abeb0(0xe5)])==null||(_0x3fe4f9=_0x3fe4f9['ln'])==null)&&_0x3fe4f9[_0x1abeb0(0xa9)]||(this[_0x1abeb0(0xe5)]['ln'][_0x1abeb0(0xa9)]={}),this['shapeData']['ln'][_0x1abeb0(0xa9)][_0x1abeb0(0xf9)]=_0x5980f9,this;}[_0x31a6cc(0x8b)](_0x4523c6){const _0x41f075=_0x31a6cc;var _0x30eb3f,_0x2ccdc4;return(_0x30eb3f=this[_0x41f075(0xe5)])!=null&&_0x30eb3f['ln']||(this[_0x41f075(0xe5)]['ln']={}),!((_0x2ccdc4=this[_0x41f075(0xe5)])==null||(_0x2ccdc4=_0x2ccdc4['ln'])==null)&&_0x2ccdc4['endArrow']||(this[_0x41f075(0xe5)]['ln'][_0x41f075(0xb6)]={}),this[_0x41f075(0xe5)]['ln'][_0x41f075(0xb6)][_0x41f075(0xf9)]=_0x4523c6,this;}[_0x31a6cc(0xdf)](){const _0x47ab13=_0x31a6cc;return super[_0x47ab13(0xdf)]();}['getEndConnectInfo'](){const _0x3f33fc=_0x31a6cc;var _0x137ba9;return((_0x137ba9=this[_0x3f33fc(0xe5)])==null||(_0x137ba9=_0x137ba9[_0x3f33fc(0x7d)])==null?void 0x0:_0x137ba9['to'])||null;}[_0x31a6cc(0x7f)](){const _0x5ee1e2=_0x31a6cc;var _0x35bbaa;return((_0x35bbaa=this['shapeData'])==null||(_0x35bbaa=_0x35bbaa[_0x5ee1e2(0x7d)])==null?void 0x0:_0x35bbaa['from'])||null;}};function _0x376367(_0x26990a,_0x4ba4b0,_0x2433c5,_0x1d994b,_0x4a399e,_0x2eaa30){const _0x4757a1=_0x31a6cc;let _0x17dc70=_0x4a399e[_0x4757a1(0x7b)](_0x26990a,_0x4ba4b0,_0x2433c5);if(!_0x17dc70)return null;let _0x1c363c=_0x2eaa30[_0x4757a1(0x10b)]({'unitId':_0x26990a,'subUnitId':_0x4ba4b0,'drawingId':_0x2433c5});if(!(_0x1c363c!=null&&_0x1c363c['transform']))return null;let {left:_0xd7b9b7=0x0,top:_0x34400c=0x0,width:_0x57c022=0x0,height:_0x186275=0x0,flipX:_0x2a48e0=!0x1,flipY:_0x516cf5=!0x1,angle:_0x2a34b8}=_0x1c363c['transform'];_0x17dc70['updateContext']({'width':_0x57c022,'height':_0x186275});let _0x352972=_0x17dc70[_0x4757a1(0x79)]()['find'](_0x2a7dc4=>_0x2a7dc4[_0x4757a1(0xe1)]===_0x1d994b);if(!_0x352972)return null;let _0x512435=_0x2a48e0?_0x57c022-_0x352972['x']:_0x352972['x'],_0x4cd3eb=_0x516cf5?_0x186275-_0x352972['y']:_0x352972['y'];if(_0x2a34b8&&_0x2a34b8!==0x0){let _0x2a9345=_0x2a34b8*Math['PI']/0xb4,_0x1f891a=Math['cos'](_0x2a9345),_0x6c8ca4=Math[_0x4757a1(0xe0)](_0x2a9345),_0x57b6d0=_0x57c022/0x2,_0x2119ff=_0x186275/0x2,_0x29dcb3=_0x512435-_0x57b6d0,_0x5cd50c=_0x4cd3eb-_0x2119ff;_0x512435=_0x57b6d0+_0x29dcb3*_0x1f891a-_0x5cd50c*_0x6c8ca4,_0x4cd3eb=_0x2119ff+_0x29dcb3*_0x6c8ca4+_0x5cd50c*_0x1f891a;}_0x512435+=_0xd7b9b7,_0x4cd3eb+=_0x34400c;let _0x267adf=_0x352972['ang']/0xea60;_0x2a48e0&&(_0x267adf=0xb4-_0x267adf),_0x516cf5&&(_0x267adf=-_0x267adf),_0x267adf+=_0x2a34b8||0x0,_0x267adf=(_0x267adf%0x168+0x168)%0x168;let _0x5afe5d=(0x0,_0x5ce04d[_0x4757a1(0x97)])({'left':_0xd7b9b7,'top':_0x34400c,'width':_0x57c022,'height':_0x186275},_0x2a34b8||0x0);return{'point':{'x':_0x512435,'y':_0x4cd3eb},'angle':_0x267adf,'bounds':_0x5afe5d};}function _0x2b64ee(_0x2558cc,_0x25329a){const _0x45a938=_0x31a6cc;let _0xc8b0a4=_0x25329a['x']-_0x2558cc['x'],_0xadb7ea=_0x25329a['y']-_0x2558cc['y'];return Math['abs'](_0xc8b0a4)>=Math[_0x45a938(0x98)](_0xadb7ea)?_0xc8b0a4>=0x0?0xb4:0x0:_0xadb7ea>=0x0?0x10e:0x5a;}function _0x55d411(_0x437584,_0x2fc108,_0x539a38,_0x54f712,_0x143d93,_0x1648fa,_0x439d6c){const _0x509bdb=_0x31a6cc;let _0x5170f9=_0x1648fa[_0x509bdb(0x7b)](_0x437584,_0x2fc108,_0x539a38);if(!_0x5170f9)return null;let _0x262425=_0x439d6c[_0x509bdb(0x10b)]({'unitId':_0x437584,'subUnitId':_0x2fc108,'drawingId':_0x539a38});if(!(_0x262425!=null&&_0x262425['transform']))return null;let {left:_0x37ec16=0x0,top:_0x76bc5=0x0,width:_0x9c4ad2=0x0,height:_0x52f0bb=0x0,flipX:_0x5955e8=!0x1,flipY:_0x2299ae=!0x1}=_0x262425[_0x509bdb(0xa3)];_0x5170f9[_0x509bdb(0x106)]({'width':_0x9c4ad2,'height':_0x52f0bb});let _0xc66f47=_0x5170f9['getConnectorLinePoints']();if(_0xc66f47[_0x509bdb(0x9e)]<0x2)return null;let _0x763115=_0x54f712?_0xc66f47[0x0]:_0xc66f47[_0xc66f47[_0x509bdb(0x9e)]-0x1],_0x2cf45a=new _0x5ce04d[(_0x509bdb(0xc4))]({'left':_0x37ec16,'top':_0x76bc5,'width':_0x9c4ad2,'height':_0x52f0bb,'flipX':_0x5955e8,'flipY':_0x2299ae})[_0x509bdb(0xbc)](_0x763115);return{'point':_0x2cf45a,'angle':_0x2b64ee(_0x143d93['point'],_0x2cf45a),'bounds':{'left':_0x2cf45a['x'],'top':_0x2cf45a['y'],'width':0x0,'height':0x0}};}var _0x2691ac=class extends _0x426ae2['FWorksheet']{async[_0x31a6cc(0xc5)](_0x3c0d64){const _0x2a9394=_0x31a6cc;let {unitId:_0x1d1b24,subUnitId:_0x13bafc,shapeId:_0x57814e,shapeType:_0x26b516,shapeData:_0x15dc77,x:_0x26a158,y:_0x2d7530,width:_0x2bba99,height:_0x32023b}=_0x3c0d64;return this[_0x2a9394(0xe7)][_0x2a9394(0xef)](_0x596963[_0x2a9394(0xee)]['id'],{'unitId':_0x1d1b24,'subUnitId':_0x13bafc,'shapeId':_0x57814e,'shapeType':_0x26b516,'shapeData':_0x15dc77,'position':{'x':_0x26a158,'y':_0x2d7530},'width':_0x2bba99,'height':_0x32023b});}async[_0x31a6cc(0xbf)](_0x2ea1e3){const _0x55df74=_0x31a6cc;let {unitId:_0x5af425,subUnitId:_0x3c8962,shapeId:_0x484f6c,shapeType:_0x514be6,shapeData:_0x9362c6,x:_0x2fe9d0,y:_0x11d550,width:_0x32a673,height:_0x1f93cd}=_0x2ea1e3;return this['_commandService']['executeCommand'](_0x596963[_0x55df74(0xaf)]['id'],{'unitId':_0x5af425,'subUnitId':_0x3c8962,'shapeId':_0x484f6c,'shapeType':_0x514be6,'shapeData':_0x9362c6,'position':{'x':_0x2fe9d0,'y':_0x11d550},'width':_0x32a673,'height':_0x1f93cd});}[_0x31a6cc(0x82)](_0x10e9df){const _0x16d80e=_0x31a6cc;let _0xd9a3c4=this[_0x16d80e(0x8f)]()[_0x16d80e(0xb4)](),_0x151a6d=this['getSheetId']();if(_0x10e9df){let _0x254454=new _0x41d38e(_0xd9a3c4,_0x151a6d,_0x10e9df['drawId'],this[_0x16d80e(0x9f)]);return this[_0x16d80e(0xd6)](_0x254454,_0xd9a3c4,_0x151a6d,_0x10e9df[_0x16d80e(0x92)]),_0x254454;}return new _0x41d38e(_0xd9a3c4,_0x151a6d,(0x0,_0x952f44[_0x16d80e(0xbb)])(),this['_injector']);}[_0x31a6cc(0x93)](_0x21c6af){const _0x3a93d8=_0x31a6cc;let _0x5331dc=this[_0x3a93d8(0x8f)]()[_0x3a93d8(0xb4)](),_0x29017d=this[_0x3a93d8(0xd9)]();if(_0x21c6af){let _0x295f0d=new _0x5ea94d(_0x5331dc,_0x29017d,_0x21c6af[_0x3a93d8(0x92)],this[_0x3a93d8(0x9f)]);return this[_0x3a93d8(0xd6)](_0x295f0d,_0x5331dc,_0x29017d,_0x21c6af[_0x3a93d8(0x92)]),_0x295f0d;}return new _0x5ea94d(_0x5331dc,_0x29017d,(0x0,_0x952f44[_0x3a93d8(0xbb)])(),this[_0x3a93d8(0x9f)]);}[_0x31a6cc(0xeb)](){const _0x3e306f=_0x31a6cc;let _0x4ccbc2=this[_0x3e306f(0x9f)][_0x3e306f(0xce)](_0xf564fe['ISheetDrawingService']),_0xd14a00=this[_0x3e306f(0x8f)]()[_0x3e306f(0xb4)](),_0x9830ad=this[_0x3e306f(0xd9)](),_0x510cd5=_0x4ccbc2[_0x3e306f(0xb1)](_0xd14a00,_0x9830ad);if(!_0x510cd5)return[];let _0x583a01=[];for(let [_0x113d42,_0x1906a4]of Object[_0x3e306f(0xc2)](_0x510cd5))if(_0x1906a4&&_0x1906a4[_0x3e306f(0xea)]===_0x952f44[_0x3e306f(0xb5)][_0x3e306f(0x83)]){let _0x19ead0=new _0x41d38e(_0xd14a00,_0x9830ad,_0x113d42,this[_0x3e306f(0x9f)]);this[_0x3e306f(0xd6)](_0x19ead0,_0xd14a00,_0x9830ad,_0x113d42),_0x583a01[_0x3e306f(0x100)](_0x19ead0);}return _0x583a01;}[_0x31a6cc(0x87)](_0x5305a3){const _0x22a587=_0x31a6cc;let {unitId:_0x998e4d,subUnitId:_0x2337e9,drawId:_0x5f3248}=_0x5305a3;return this['_commandService']['executeCommand'](_0xf564fe[_0x22a587(0xd2)]['id'],{'unitId':_0x998e4d,'drawings':[{'unitId':_0x998e4d,'subUnitId':_0x2337e9,'drawingId':_0x5f3248,'drawingType':_0x952f44['DrawingTypeEnum'][_0x22a587(0x83)]}]});}async['connectShapes'](_0x374cde){const _0x6e9280=_0x31a6cc;let {connector:_0x416499,startTarget:_0x1d1bb6,endTarget:_0x1b0994}=_0x374cde;if(!_0x1d1bb6&&!_0x1b0994)return!0x1;let _0x5beffa=this[_0x6e9280(0x8f)]()['getUnitId'](),_0x51a0f0=this[_0x6e9280(0xd9)](),_0x33379c=this[_0x6e9280(0x9f)]['get'](_0x596963['SheetsShapeService']),_0x5b0f20=this[_0x6e9280(0x9f)][_0x6e9280(0xce)](_0x487e3b['IDrawingManagerService']),_0x509b2f=_0x33379c[_0x6e9280(0x7b)](_0x5beffa,_0x51a0f0,_0x416499[_0x6e9280(0x92)]);if(!_0x509b2f)return!0x1;let _0x3c2660=_0x509b2f['getShapeType'](),_0x2f1cd2=_0x509b2f['getShapeRelation'](),_0xeacfde={};for(let _0x201eb6 of _0x509b2f['getAdjustNames']()){let _0x1efb5f=_0x509b2f[_0x6e9280(0xc6)](_0x201eb6);_0x1efb5f!==void 0x0&&(_0xeacfde[_0x201eb6]=_0x1efb5f);}let {startInfo:_0x96c9f3,endInfo:_0x5cd3c4}=this[_0x6e9280(0xd0)](_0x5beffa,_0x51a0f0,_0x416499,_0x509b2f,_0x1d1bb6,_0x1b0994,_0x33379c,_0x5b0f20,_0x2f1cd2);if(!_0x96c9f3||!_0x5cd3c4)return!0x1;let _0x4e921f=(0x0,_0x5ce04d[_0x6e9280(0xf0)])((0x0,_0x5ce04d[_0x6e9280(0x108)])(_0x96c9f3,_0x5cd3c4,_0x3c2660),_0x3c2660),_0x2f38db={};return _0x1d1bb6?_0x2f38db[_0x6e9280(0xa4)]={'shapeId':_0x1d1bb6[_0x6e9280(0xbe)][_0x6e9280(0x92)],'cxnIndex':_0x1d1bb6[_0x6e9280(0xdd)]}:_0x2f1cd2!=null&&_0x2f1cd2[_0x6e9280(0xa4)]&&(_0x2f38db['from']=_0x2f1cd2[_0x6e9280(0xa4)]),_0x1b0994?_0x2f38db['to']={'shapeId':_0x1b0994['shape'][_0x6e9280(0x92)],'cxnIndex':_0x1b0994['connectionSiteIndex']}:_0x2f1cd2!=null&&_0x2f1cd2['to']&&(_0x2f38db['to']=_0x2f1cd2['to']),this[_0x6e9280(0xe7)][_0x6e9280(0xef)](_0x596963['UpdateConnectorRelationCommand']['id'],{'unitId':_0x5beffa,'subUnitId':_0x51a0f0,'connectorShapeId':_0x416499[_0x6e9280(0x92)],'width':_0x4e921f[_0x6e9280(0x95)][_0x6e9280(0xf4)],'height':_0x4e921f[_0x6e9280(0x95)][_0x6e9280(0xdb)],'left':_0x4e921f[_0x6e9280(0x95)][_0x6e9280(0x86)],'top':_0x4e921f[_0x6e9280(0x95)][_0x6e9280(0xb0)],'flipX':_0x4e921f[_0x6e9280(0x95)][_0x6e9280(0xdc)]||!0x1,'flipY':_0x4e921f[_0x6e9280(0x95)]['flipY']||!0x1,'oldAdjustValues':_0xeacfde,'newAdjustValues':_0x4e921f[_0x6e9280(0xa8)],'newLineType':_0x4e921f['lineType'],'oldLineType':_0x3c2660,'rotation':_0x4e921f[_0x6e9280(0x10f)],'oldRelation':_0x2f1cd2,'newRelation':_0x2f38db});}['_preloadShapeProperties'](_0x2a711b,_0x220444,_0x1806f8,_0x3ce6f3){const _0x16b781=_0x31a6cc;let _0x45ec4d=this['_injector']['get'](_0x487e3b[_0x16b781(0xc8)])[_0x16b781(0x10b)]({'unitId':_0x220444,'subUnitId':_0x1806f8,'drawingId':_0x3ce6f3});if(_0x45ec4d!=null&&_0x45ec4d[_0x16b781(0xa3)]){var _0xa6cc0b,_0x4ac2c6,_0x1f53c4,_0x37cae2;_0x2a711b['x']=(_0xa6cc0b=_0x45ec4d[_0x16b781(0xa3)][_0x16b781(0x86)])==null?0x0:_0xa6cc0b,_0x2a711b['y']=(_0x4ac2c6=_0x45ec4d[_0x16b781(0xa3)]['top'])==null?0x0:_0x4ac2c6,_0x2a711b['width']=(_0x1f53c4=_0x45ec4d[_0x16b781(0xa3)][_0x16b781(0xf4)])==null?_0x2a711b[_0x16b781(0xf4)]:_0x1f53c4,_0x2a711b[_0x16b781(0xdb)]=(_0x37cae2=_0x45ec4d[_0x16b781(0xa3)][_0x16b781(0xdb)])==null?_0x2a711b[_0x16b781(0xdb)]:_0x37cae2;}let _0x1fc761=this[_0x16b781(0x9f)][_0x16b781(0xce)](_0x596963[_0x16b781(0x7a)])['getShapeModel'](_0x220444,_0x1806f8,_0x3ce6f3);if(_0x1fc761){_0x2a711b[_0x16b781(0xf7)]=_0x1fc761[_0x16b781(0x74)]();let _0x351a49=_0x1fc761[_0x16b781(0x10c)]();_0x351a49&&(_0x2a711b[_0x16b781(0xe5)]=JSON['parse'](JSON[_0x16b781(0xed)](_0x351a49)));}}[_0x31a6cc(0xd0)](_0x243553,_0x2dfe64,_0x347ea4,_0xa032ad,_0x49dfc2,_0x528c62,_0x565d57,_0x393025,_0x11ae88){const _0x3e5b08=_0x31a6cc;let _0x5c172b=null,_0x524ff3=null;return _0x49dfc2&&(_0x5c172b=_0x376367(_0x243553,_0x2dfe64,_0x49dfc2[_0x3e5b08(0xbe)][_0x3e5b08(0x92)],_0x49dfc2[_0x3e5b08(0xdd)],_0x565d57,_0x393025)),_0x528c62&&(_0x524ff3=_0x376367(_0x243553,_0x2dfe64,_0x528c62[_0x3e5b08(0xbe)]['drawId'],_0x528c62['connectionSiteIndex'],_0x565d57,_0x393025)),_0x5c172b||(_0x5c172b=this[_0x3e5b08(0x96)](_0x243553,_0x2dfe64,_0x347ea4[_0x3e5b08(0x92)],!0x0,_0x524ff3,_0x11ae88==null?void 0x0:_0x11ae88[_0x3e5b08(0xa4)],_0x565d57,_0x393025)),_0x524ff3||(_0x524ff3=this[_0x3e5b08(0x96)](_0x243553,_0x2dfe64,_0x347ea4['drawId'],!0x1,_0x5c172b,_0x11ae88==null?void 0x0:_0x11ae88['to'],_0x565d57,_0x393025)),{'startInfo':_0x5c172b,'endInfo':_0x524ff3};}[_0x31a6cc(0x96)](_0x202703,_0x29f2da,_0x4e16a2,_0x54bdf8,_0x17c267,_0x38e395,_0x48c504,_0x5c44b2){const _0x356d5a=_0x31a6cc;if(_0x38e395){let _0x1e507a=_0x376367(_0x202703,_0x29f2da,_0x38e395[_0x356d5a(0xa5)],_0x38e395[_0x356d5a(0x7c)],_0x48c504,_0x5c44b2);if(_0x1e507a)return _0x1e507a;}return _0x17c267?_0x55d411(_0x202703,_0x29f2da,_0x4e16a2,_0x54bdf8,_0x17c267,_0x48c504,_0x5c44b2):null;}};_0x426ae2['FWorksheet'][_0x31a6cc(0x109)](_0x2691ac),_0x30ae42['FConnectorShape']=_0x5ea94d,_0x30ae42[_0x31a6cc(0x107)]=_0x41d38e;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3fcadf,_0x5664d6){const _0x10fcbe=_0x57a9,_0x4c23e7=_0x3fcadf();while(!![]){try{const _0x389877=-parseInt(_0x10fcbe(0x212))/0x1+-parseInt(_0x10fcbe(0x1c3))/0x2*(-parseInt(_0x10fcbe(0x220))/0x3)+parseInt(_0x10fcbe(0x260))/0x4*(parseInt(_0x10fcbe(0x25e))/0x5)+-parseInt(_0x10fcbe(0x245))/0x6*(parseInt(_0x10fcbe(0x1c6))/0x7)+-parseInt(_0x10fcbe(0x27d))/0x8+-parseInt(_0x10fcbe(0x258))/0x9*(-parseInt(_0x10fcbe(0x221))/0xa)+-parseInt(_0x10fcbe(0x279))/0xb*(parseInt(_0x10fcbe(0x20c))/0xc);if(_0x389877===_0x5664d6)break;else _0x4c23e7['push'](_0x4c23e7['shift']());}catch(_0x397414){_0x4c23e7['push'](_0x4c23e7['shift']());}}}(_0x20a3,0xf0914),function(_0x19bd52,_0x36b9a0){const _0x2ce5af=_0x57a9;typeof exports==_0x2ce5af(0x1ce)&&typeof module<'u'?_0x36b9a0(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x2ce5af(0x21e)&&define['amd']?define([_0x2ce5af(0x267),_0x2ce5af(0x21a),'@univerjs/core',_0x2ce5af(0x1f3),_0x2ce5af(0x243),_0x2ce5af(0x253),_0x2ce5af(0x26a)],_0x36b9a0):(_0x19bd52=typeof globalThis<'u'?globalThis:_0x19bd52||self,_0x36b9a0(_0x19bd52[_0x2ce5af(0x1e9)]={},_0x19bd52[_0x2ce5af(0x215)],_0x19bd52[_0x2ce5af(0x287)],_0x19bd52[_0x2ce5af(0x1ef)],_0x19bd52['UniverSheetsDrawing'],_0x19bd52[_0x2ce5af(0x232)],_0x19bd52['UniverDrawing']));}(this,function(_0x1e21c0,_0x5036a4,_0x47bed,_0xf07d9d,_0x40c92a,_0x18f76b,_0x308eb9){const _0x33b6ea=_0x57a9;Object[_0x33b6ea(0x1fe)](_0x1e21c0,Symbol['toStringTag'],{'value':_0x33b6ea(0x27e)});function _0x138e52(_0x3f87a2){'@babel/helpers - typeof';const _0x4cabfe=_0x33b6ea;return _0x138e52=typeof Symbol==_0x4cabfe(0x21e)&&typeof Symbol[_0x4cabfe(0x226)]==_0x4cabfe(0x1ca)?function(_0x491235){return typeof _0x491235;}:function(_0x5a9db2){const _0x2c345c=_0x4cabfe;return _0x5a9db2&&typeof Symbol==_0x2c345c(0x21e)&&_0x5a9db2['constructor']===Symbol&&_0x5a9db2!==Symbol[_0x2c345c(0x22d)]?_0x2c345c(0x1ca):typeof _0x5a9db2;},_0x138e52(_0x3f87a2);}function _0x1138ee(_0x301548,_0x2779a2){const _0x5da7d5=_0x33b6ea;if(_0x138e52(_0x301548)!='object'||!_0x301548)return _0x301548;var _0x39f2e9=_0x301548[Symbol['toPrimitive']];if(_0x39f2e9!==void 0x0){var _0x134021=_0x39f2e9[_0x5da7d5(0x26e)](_0x301548,_0x2779a2||'default');if(_0x138e52(_0x134021)!=_0x5da7d5(0x1ce))return _0x134021;throw TypeError(_0x5da7d5(0x202));}return(_0x2779a2===_0x5da7d5(0x1cd)?String:Number)(_0x301548);}function _0x450d60(_0x344409){const _0x4ce357=_0x33b6ea;var _0x502f6c=_0x1138ee(_0x344409,_0x4ce357(0x1cd));return _0x138e52(_0x502f6c)==_0x4ce357(0x1ca)?_0x502f6c:_0x502f6c+'';}function _0x3571b3(_0x442c38,_0x5e1021,_0x14ad2d){return(_0x5e1021=_0x450d60(_0x5e1021))in _0x442c38?Object['defineProperty'](_0x442c38,_0x5e1021,{'value':_0x14ad2d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x442c38[_0x5e1021]=_0x14ad2d,_0x442c38;}var _0x4230e8=class extends _0x47bed[_0x33b6ea(0x239)]{constructor(){const _0x4acf6a=_0x33b6ea;super(),_0x3571b3(this,_0x4acf6a(0x21d),new Map()),_0x3571b3(this,_0x4acf6a(0x22f),new Set()),_0x3571b3(this,_0x4acf6a(0x1bf),new Set());}[_0x33b6ea(0x1d7)](_0x1a4ef8,_0x4cb726,_0x5984a2){const _0xdfdc09=_0x33b6ea;let _0x4307cd=new _0x5036a4[(_0xdfdc09(0x23b))](_0x1a4ef8,_0x4cb726,_0x5984a2);return this['_shapes'][_0xdfdc09(0x20d)](_0x4cb726,_0x4307cd),(0x0,_0x5036a4[_0xdfdc09(0x271)])(_0x1a4ef8)&&this[_0xdfdc09(0x22f)][_0xdfdc09(0x1e5)](_0x4cb726),_0x4307cd;}[_0x33b6ea(0x1d2)](_0x230bcd){const _0x26f8a0=_0x33b6ea;let _0x5c4169=[];for(let _0x4adc58 of this[_0x26f8a0(0x22f)]){let _0x3688e9=this[_0x26f8a0(0x21d)][_0x26f8a0(0x264)](_0x4adc58);if(_0x3688e9){let _0x3ec90b=_0x3688e9[_0x26f8a0(0x1e1)]();if(_0x3ec90b){var _0x2bec57,_0x56f237;((_0x2bec57=_0x3ec90b['from'])==null?void 0x0:_0x2bec57[_0x26f8a0(0x231)])===_0x230bcd&&_0x5c4169['push']({..._0x3ec90b[_0x26f8a0(0x1cc)],'lineShapeId':_0x4adc58,'isFrom':!0x0}),((_0x56f237=_0x3ec90b['to'])==null?void 0x0:_0x56f237[_0x26f8a0(0x231)])===_0x230bcd&&_0x5c4169[_0x26f8a0(0x208)]({..._0x3ec90b['to'],'lineShapeId':_0x4adc58,'isFrom':!0x1});}}}return _0x5c4169;}[_0x33b6ea(0x1f8)](_0x1bfe1f){const _0x1409e8=_0x33b6ea;let _0x3b6a8d=this[_0x1409e8(0x21d)][_0x1409e8(0x264)](_0x1bfe1f);if(_0x3b6a8d)return _0x3b6a8d[_0x1409e8(0x1e1)]();}[_0x33b6ea(0x205)](_0x391fdd){const _0x49f31e=_0x33b6ea;let _0x6a6538=this[_0x49f31e(0x21d)][_0x49f31e(0x264)](_0x391fdd);if(_0x6a6538)return _0x6a6538[_0x49f31e(0x205)]();}[_0x33b6ea(0x25c)](_0x19e716){const _0x4d41a0=_0x33b6ea;return this[_0x4d41a0(0x21d)]['has'](_0x19e716);}[_0x33b6ea(0x1b9)](_0x3546c6){const _0x433540=_0x33b6ea;let _0x6c3df=this[_0x433540(0x21d)]['get'](_0x3546c6);_0x6c3df&&((0x0,_0x5036a4[_0x433540(0x271)])(_0x6c3df['getShapeType']())&&this[_0x433540(0x22f)]['delete'](_0x3546c6),this[_0x433540(0x21d)][_0x433540(0x1e7)](_0x3546c6));}[_0x33b6ea(0x1fc)](){const _0xea696f=_0x33b6ea;let _0x2d6110=[];return this[_0xea696f(0x21d)][_0xea696f(0x1dc)](_0x1de603=>{const _0x2cf5b9=_0xea696f;_0x2d6110[_0x2cf5b9(0x208)](_0x1de603['toJSON']());}),_0x2d6110;}[_0x33b6ea(0x1c1)](_0x54d37e){const _0x473a38=_0x33b6ea;for(let _0x50802f of _0x54d37e){let {id:_0x448a7f,shapeType:_0x57d190}=_0x50802f,_0x5493c9=this[_0x473a38(0x1d7)](_0x57d190,_0x448a7f,_0x50802f[_0x473a38(0x1b6)]);_0x5493c9&&_0x5493c9[_0x473a38(0x1d5)]()&&this[_0x473a38(0x22f)]['add'](_0x448a7f);}}[_0x33b6ea(0x1d0)](){const _0x59030e=_0x33b6ea;this[_0x59030e(0x207)]||(this['_shapes']['forEach'](_0x2896e0=>{const _0x56c79a=_0x59030e;_0x2896e0[_0x56c79a(0x1d0)]();}),this[_0x59030e(0x21d)][_0x59030e(0x204)](),this['_linesIds'][_0x59030e(0x204)](),this[_0x59030e(0x1bf)][_0x59030e(0x204)](),super[_0x59030e(0x1d0)]());}};function _0x4cb749(_0x1a6e8b,_0x553275){return function(_0x4ce140,_0x4b887f){_0x553275(_0x4ce140,_0x4b887f,_0x1a6e8b);};}function _0x3bfd7b(_0x178723,_0x1f3d8e,_0x1195e3,_0x1aa49a){const _0x2acc1f=_0x33b6ea;var _0x5a3f21=arguments[_0x2acc1f(0x200)],_0x54b101=_0x5a3f21<0x3?_0x1f3d8e:_0x1aa49a===null?_0x1aa49a=Object[_0x2acc1f(0x203)](_0x1f3d8e,_0x1195e3):_0x1aa49a,_0xe26016;if(typeof Reflect==_0x2acc1f(0x1ce)&&typeof Reflect[_0x2acc1f(0x244)]=='function')_0x54b101=Reflect[_0x2acc1f(0x244)](_0x178723,_0x1f3d8e,_0x1195e3,_0x1aa49a);else{for(var _0xc32582=_0x178723[_0x2acc1f(0x200)]-0x1;_0xc32582>=0x0;_0xc32582--)(_0xe26016=_0x178723[_0xc32582])&&(_0x54b101=(_0x5a3f21<0x3?_0xe26016(_0x54b101):_0x5a3f21>0x3?_0xe26016(_0x1f3d8e,_0x1195e3,_0x54b101):_0xe26016(_0x1f3d8e,_0x1195e3))||_0x54b101);}return _0x5a3f21>0x3&&_0x54b101&&Object[_0x2acc1f(0x1fe)](_0x1f3d8e,_0x1195e3,_0x54b101),_0x54b101;}let _0x35f7ee=class extends _0x47bed[_0x33b6ea(0x239)]{constructor(_0x272480){const _0x14f1b3=_0x33b6ea;super(),this[_0x14f1b3(0x24f)]=_0x272480,_0x3571b3(this,_0x14f1b3(0x217),new Map()),this[_0x14f1b3(0x21c)]();}[_0x33b6ea(0x27a)](_0x275b6f,_0x490027){const _0x4ba022=_0x33b6ea;let _0xb409b5=this['_shapeModelManagerMap'][_0x4ba022(0x264)](_0x275b6f);_0xb409b5||(_0xb409b5=new Map(),this[_0x4ba022(0x217)][_0x4ba022(0x20d)](_0x275b6f,_0xb409b5));let _0x1cabc1=_0xb409b5['get'](_0x490027);return _0x1cabc1||(_0x1cabc1=new _0x4230e8(),_0xb409b5[_0x4ba022(0x20d)](_0x490027,_0x1cabc1)),_0x1cabc1;}['insertShape'](_0x2367c6,_0x5e0d1b,_0x3b305a,_0x13acb4,_0x40d8f5){const _0xa5f987=_0x33b6ea;this[_0xa5f987(0x27a)](_0x2367c6,_0x5e0d1b)['addShape'](_0x3b305a,_0x13acb4,_0x40d8f5);}[_0x33b6ea(0x1b9)](_0x53cd11,_0x3a54c8,_0x177750){const _0x3e82b2=_0x33b6ea;this[_0x3e82b2(0x27a)](_0x53cd11,_0x3a54c8)[_0x3e82b2(0x1b9)](_0x177750);}[_0x33b6ea(0x1e8)](_0x5f3f48,_0x30df4,_0xce5ac7){const _0x3f5b75=_0x33b6ea;return this[_0x3f5b75(0x27a)](_0x5f3f48,_0x30df4)[_0x3f5b75(0x205)](_0xce5ac7);}['getShapeType'](_0x6574d3,_0x46767f,_0x42c1dd){const _0x4574ae=_0x33b6ea;return this[_0x4574ae(0x27a)](_0x6574d3,_0x46767f)[_0x4574ae(0x205)](_0x42c1dd);}[_0x33b6ea(0x25c)](_0x379d6b,_0x2bef23,_0x2dacf9){const _0x1ceb6c=_0x33b6ea;return this[_0x1ceb6c(0x27a)](_0x379d6b,_0x2bef23)['hasShape'](_0x2dacf9);}[_0x33b6ea(0x1d9)](_0x1aafac,_0x5cb155,_0x24ed55){return this['_ensureShapeModelManager'](_0x1aafac,_0x5cb155)['getShapeType'](_0x24ed55);}[_0x33b6ea(0x24d)](_0x2aea04,_0x4b1cba,_0x526c51){const _0x262b2e=_0x33b6ea;let _0x5e9e7a=this[_0x262b2e(0x27a)](_0x2aea04,_0x4b1cba);if(!_0x5e9e7a[_0x262b2e(0x205)](_0x526c51))return;let _0x105d0c=_0x5e9e7a[_0x262b2e(0x21d)][_0x262b2e(0x264)](_0x526c51);if(_0x105d0c)return _0x105d0c[_0x262b2e(0x241)]();}[_0x33b6ea(0x1f4)](_0x131e9c,_0x109b05,_0x381561){const _0x1cc3bf=_0x33b6ea;return this[_0x1cc3bf(0x27a)](_0x131e9c,_0x109b05)['_shapes'][_0x1cc3bf(0x264)](_0x381561);}[_0x33b6ea(0x1d2)](_0x2c71b8,_0x11e827,_0x5573a7){const _0x26203f=_0x33b6ea;return this[_0x26203f(0x27a)](_0x2c71b8,_0x11e827)[_0x26203f(0x1d2)](_0x5573a7);}[_0x33b6ea(0x1f8)](_0x2637de,_0x4a2ee1,_0x336863){const _0x52ab51=_0x33b6ea;let _0x2d7341=this['_ensureShapeModelManager'](_0x2637de,_0x4a2ee1)[_0x52ab51(0x21d)][_0x52ab51(0x264)](_0x336863);if(_0x2d7341)return _0x2d7341[_0x52ab51(0x1e1)]();}[_0x33b6ea(0x1b5)](){}[_0x33b6ea(0x1d6)](_0x695f73){const _0x104c25=_0x33b6ea;let _0x1a9272={},_0x1202fb=this[_0x104c25(0x217)][_0x104c25(0x264)](_0x695f73);return _0x1202fb&&_0x1202fb['forEach']((_0x1351e0,_0x4c5696)=>{const _0x5e1bce=_0x104c25;let _0x20ec71=_0x1351e0[_0x5e1bce(0x1fc)]();_0x20ec71[_0x5e1bce(0x200)]>0x0&&(_0x1a9272[_0x4c5696]=_0x20ec71);}),JSON[_0x104c25(0x20f)](_0x1a9272);}[_0x33b6ea(0x1ec)](_0xa89838,_0x12a6be){const _0x59b1bb=_0x33b6ea;Object[_0x59b1bb(0x1bd)](_0x12a6be)['forEach'](_0x1da4fd=>{const _0x26f290=_0x59b1bb;this['_ensureShapeModelManager'](_0xa89838,_0x1da4fd)[_0x26f290(0x1c1)](_0x12a6be[_0x1da4fd]);});}[_0x33b6ea(0x1fc)](){const _0x41747d=_0x33b6ea;let _0x565eb1={};return this[_0x41747d(0x217)]['forEach']((_0x196a84,_0x4191e8)=>{const _0x2aabbe=_0x41747d;_0x565eb1[_0x4191e8]={},_0x196a84[_0x2aabbe(0x1dc)]((_0xea6d8,_0x4c24aa)=>{_0x565eb1[_0x4191e8][_0x4c24aa]=_0xea6d8['toJSON']();});}),_0x565eb1;}[_0x33b6ea(0x1c1)](_0x345f03){const _0x396e9e=_0x33b6ea;Object[_0x396e9e(0x1bd)](_0x345f03)[_0x396e9e(0x1dc)](_0x1f68b1=>{let _0x1467ee=_0x345f03[_0x1f68b1];Object['keys'](_0x1467ee)['forEach'](_0x41264b=>{const _0x581a44=_0x57a9;this[_0x581a44(0x27a)](_0x1f68b1,_0x41264b)[_0x581a44(0x1c1)](_0x1467ee[_0x41264b]);});});}[_0x33b6ea(0x21c)](){const _0xa67511=_0x33b6ea;this[_0xa67511(0x24f)][_0xa67511(0x1ff)]({'pluginName':_0xa67511(0x251),'businesses':[_0x47bed['UniverInstanceType'][_0xa67511(0x270)]],'toJson':_0x189c0c=>this[_0xa67511(0x1d6)](_0x189c0c),'parseJson':_0x510f1e=>JSON[_0xa67511(0x277)](_0x510f1e),'onLoad':(_0x11956f,_0x265b63)=>{this['_deserializeShapeForUnit'](_0x11956f,_0x265b63);},'onUnLoad':_0x25fa42=>{const _0x6334b9=_0xa67511;let _0x516dd1=this[_0x6334b9(0x217)]['get'](_0x25fa42);_0x516dd1&&(_0x516dd1[_0x6334b9(0x1dc)](_0x410b3f=>{_0x410b3f['dispose']();}),this[_0x6334b9(0x217)][_0x6334b9(0x1e7)](_0x25fa42));}});}[_0x33b6ea(0x1d0)](){const _0x3daff2=_0x33b6ea;this[_0x3daff2(0x217)][_0x3daff2(0x1dc)](_0x344b1e=>{_0x344b1e['forEach'](_0x8a7a16=>{const _0x21e187=_0x57a9;_0x8a7a16[_0x21e187(0x1d0)]();});});}};_0x35f7ee=_0x3bfd7b([_0x4cb749(0x0,_0x47bed[_0x33b6ea(0x23e)])],_0x35f7ee);let _0xaeceb3={'id':_0x33b6ea(0x227),'type':_0x47bed['CommandType'][_0x33b6ea(0x282)],'handler':(_0x5b223f,_0x1607d3)=>{const _0xeeb66f=_0x33b6ea;let {unitId:_0x3b8e6e,subUnitId:_0x3fd05f,shapeType:_0x16fb62,shapeId:_0x1bff14,shapeData:_0x263248}=_0x1607d3;return _0x5b223f[_0xeeb66f(0x264)](_0x35f7ee)[_0xeeb66f(0x26b)](_0x3b8e6e,_0x3fd05f,_0x16fb62,_0x1bff14,_0x263248),!0x0;}},_0x16a9b5={'id':_0x33b6ea(0x229),'type':_0x47bed[_0x33b6ea(0x268)][_0x33b6ea(0x282)],'handler':(_0x578f10,_0x4ad86e)=>{const _0x39bf28=_0x33b6ea;let {unitId:_0x51f74a,subUnitId:_0x24b3c3,shapeId:_0x11f5c7}=_0x4ad86e;return _0x578f10[_0x39bf28(0x264)](_0x35f7ee)[_0x39bf28(0x1b9)](_0x51f74a,_0x24b3c3,_0x11f5c7),!0x0;}},_0x57b466={'type':_0x47bed['CommandType']['COMMAND'],'id':'sheet.command.insert-shape','handler':(_0x552223,_0x35b94b)=>{const _0x19dd24=_0x33b6ea;var _0x29dde4,_0x2efd13;let _0xd915be=(0x0,_0xf07d9d[_0x19dd24(0x285)])(_0x552223[_0x19dd24(0x264)](_0x47bed[_0x19dd24(0x1ed)]),_0x35b94b);if(!_0xd915be)return!0x1;let _0x3469ee=_0x552223[_0x19dd24(0x264)](_0xf07d9d[_0x19dd24(0x1cb)]),{unitId:_0x5cccb4,subUnitId:_0xd50a1c}=_0xd915be,_0x3842c=_0x3469ee['ensureSkeleton'](_0x5cccb4,_0xd50a1c);if(!_0x3842c)return!0x1;let _0x389772=_0x552223[_0x19dd24(0x264)](_0x47bed[_0x19dd24(0x1c7)]),_0x3fb144=_0x552223[_0x19dd24(0x264)](_0x47bed['IUndoRedoService']),_0x488491=_0x552223[_0x19dd24(0x264)](_0xf07d9d[_0x19dd24(0x218)]),_0x357a72=_0x552223[_0x19dd24(0x264)](_0x40c92a[_0x19dd24(0x1db)]),{shapeType:_0x2738f1,shapeData:_0xed4394}=_0x35b94b,_0x4c8f25=_0x35b94b[_0x19dd24(0x231)]||(0x0,_0x47bed['generateRandomId'])(),_0x2d0727={'unitId':_0x5cccb4,'subUnitId':_0xd50a1c,'shapeId':_0x4c8f25,'shapeType':_0x2738f1,'shapeData':_0xed4394},_0x5d442e=_0x35b94b[_0x19dd24(0x1e0)]||0xc8,_0x7d25b0=_0x35b94b[_0x19dd24(0x21f)]||0xc8,_0x5bc5ed=0x0,_0x4beee5=0x0,_0x5d479d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3af877={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x35b94b[_0x19dd24(0x228)]){let {x:_0xe2dd0f,y:_0xa73ecd}=_0x35b94b[_0x19dd24(0x228)];_0x5bc5ed=_0xe2dd0f,_0x4beee5=_0xa73ecd,_0x5d479d=_0x3842c[_0x19dd24(0x1f0)](_0xe2dd0f,_0xa73ecd),_0x3af877=_0x3842c[_0x19dd24(0x1f0)](_0xe2dd0f+_0x5d442e,_0xa73ecd+_0x7d25b0);}else{if(_0x35b94b[_0x19dd24(0x225)]){let {startRow:_0x4a97f8,startColumn:_0x1e603e}=_0x35b94b['range'];_0x5d479d={'row':_0x4a97f8,'rowOffset':0xa,'column':_0x1e603e,'columnOffset':0xa};let _0x46b39e=_0x3842c[_0x19dd24(0x230)](_0x4a97f8,_0x1e603e);_0x5bc5ed=_0x46b39e[_0x19dd24(0x22b)]+0xa,_0x4beee5=_0x46b39e[_0x19dd24(0x266)]+0xa,_0x3af877=_0x3842c[_0x19dd24(0x1f0)](_0x5bc5ed+_0x5d442e,_0x4beee5+_0x7d25b0);}}let _0x1260b5={'from':_0x5d479d,'to':_0x3af877},_0x3c352d={'unitId':_0x5cccb4,'subUnitId':_0xd50a1c,'drawingId':_0x4c8f25,'drawingType':_0x47bed[_0x19dd24(0x240)][_0x19dd24(0x23f)],'sheetTransform':_0x1260b5,'transform':{'left':_0x5bc5ed,'top':_0x4beee5,'width':_0x5d442e,'height':_0x7d25b0},'data':{'shapeType':_0x2738f1,'shapeData':_0xed4394},'axisAlignSheetTransform':_0x1260b5,'allowTransform':!0x0};(0x0,_0x5036a4[_0x19dd24(0x271)])(_0x2738f1)&&(_0x3c352d[_0x19dd24(0x246)][_0x19dd24(0x26c)]=!0x1,_0x3c352d[_0x19dd24(0x246)][_0x19dd24(0x280)]=!0x1,_0x3c352d['data']['resizeEnabled']=!0x1,_0x3c352d[_0x19dd24(0x246)][_0x19dd24(0x23a)]=!0x1,_0x3c352d[_0x19dd24(0x20a)][_0x19dd24(0x280)]=!0x1,_0x3c352d['transform'][_0x19dd24(0x27f)]=!0x1,_0x3c352d[_0x19dd24(0x20a)]['borderEnabled']=!0x1);let {undo:_0x5936a8,redo:_0x18146e,objects:_0x58bc85}=_0x357a72['getBatchAddOp']([_0x3c352d]),_0x3c1b34=_0x488491[_0x19dd24(0x1e4)]({'id':_0x40c92a[_0x19dd24(0x1b7)]['id'],'params':{'unitId':_0x5cccb4,'drawings':[_0x3c352d]}}),_0x3644e1=[...(_0x29dde4=_0x3c1b34[_0x19dd24(0x1e3)])==null?[]:_0x29dde4,{'id':_0x40c92a['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5cccb4,'subUnitId':_0xd50a1c,'op':_0x18146e,'objects':_0x58bc85,'type':_0x40c92a['DrawingApplyType'][_0x19dd24(0x236)]}},{'id':_0x40c92a[_0x19dd24(0x211)]['id'],'params':[_0x5cccb4]},..._0x3c1b34['redos'],{'id':_0xaeceb3['id'],'params':_0x2d0727}],_0x3f30c1=[{'id':_0x16a9b5['id'],'params':{'unitId':_0x5cccb4,'subUnitId':_0xd50a1c,'shapeId':_0x4c8f25}},...(_0x2efd13=_0x3c1b34[_0x19dd24(0x25d)])==null?[]:_0x2efd13,{'id':_0x40c92a['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5cccb4,'subUnitId':_0xd50a1c,'op':_0x5936a8,'objects':_0x58bc85,'type':_0x40c92a['DrawingApplyType']['REMOVE']}},{'id':_0x40c92a[_0x19dd24(0x211)]['id'],'params':[_0x5cccb4]},..._0x3c1b34['undos']];return(0x0,_0x47bed[_0x19dd24(0x25f)])(_0x3644e1,_0x389772)['result']?(_0x3fb144[_0x19dd24(0x1f9)]({'unitID':_0x5cccb4,'undoMutations':_0x3f30c1,'redoMutations':_0x3644e1}),!0x0):!0x1;}},_0x3e1632={'id':_0x33b6ea(0x1f1),'type':_0x47bed[_0x33b6ea(0x268)][_0x33b6ea(0x282)],'handler':(_0x4bcda6,_0x3bc298)=>{const _0xe5167e=_0x33b6ea;let {unitId:_0x165c36,subUnitId:_0x4f537f,shapeType:_0x3091a3,shapeId:_0x418ce9,shapeData:_0x321344}=_0x3bc298,_0x26a97a=_0x4bcda6['get'](_0x35f7ee)[_0xe5167e(0x1f4)](_0x165c36,_0x4f537f,_0x418ce9);return _0x26a97a&&(_0x3091a3!==void 0x0&&_0x26a97a[_0xe5167e(0x1b5)](_0x3091a3),_0x321344&&(_0x26a97a==null||_0x26a97a[_0xe5167e(0x1dd)](_0x321344,!0x0))),!0x0;}},_0x33d7c4={'type':_0x47bed['CommandType'][_0x33b6ea(0x262)],'id':_0x33b6ea(0x1df),'handler':(_0x5eff87,_0x24631f)=>{const _0x7de908=_0x33b6ea;var _0x2132e7,_0x18fcb2;let _0x2d6d07=(0x0,_0xf07d9d[_0x7de908(0x285)])(_0x5eff87[_0x7de908(0x264)](_0x47bed[_0x7de908(0x1ed)]),_0x24631f);if(!_0x2d6d07)return!0x1;let _0x45acb5=_0x5eff87[_0x7de908(0x264)](_0xf07d9d[_0x7de908(0x1cb)]),{unitId:_0x954735,subUnitId:_0xbcdf22}=_0x2d6d07,_0x151cc3=_0x45acb5[_0x7de908(0x1ee)](_0x954735,_0xbcdf22);if(!_0x151cc3)return!0x1;let _0x428817=_0x5eff87[_0x7de908(0x264)](_0x35f7ee),{shapeId:_0x363694,shapeType:_0x48b744,shapeData:_0x5cd947,position:_0x570469,width:_0x4c88e0,height:_0x2e1fa9}=_0x24631f,_0x539198=_0x428817[_0x7de908(0x1f4)](_0x954735,_0xbcdf22,_0x363694);if(!_0x539198)return!0x1;let _0xb4c539=_0x5eff87[_0x7de908(0x264)](_0x47bed[_0x7de908(0x1c7)]),_0x20da5f=_0x5eff87[_0x7de908(0x264)](_0x47bed[_0x7de908(0x24b)]),_0x3abb1e=_0x5eff87[_0x7de908(0x264)](_0xf07d9d[_0x7de908(0x218)]),_0x2b6172=_0x5eff87[_0x7de908(0x264)](_0x40c92a[_0x7de908(0x1db)]),_0x11fdd4={'unitId':_0x954735,'subUnitId':_0xbcdf22,'shapeId':_0x363694,'shapeType':_0x48b744,'shapeData':_0x5cd947},_0x54cf58=_0x539198['getShapeType'](),_0x1b8a27=_0x539198[_0x7de908(0x241)](),{x:_0x3905cb,y:_0x161343}=_0x570469,_0x3b4966={'from':_0x151cc3[_0x7de908(0x1f0)](_0x3905cb,_0x161343),'to':_0x151cc3['getCellIndexAndOffsetByPosition'](_0x3905cb+_0x4c88e0,_0x161343+_0x2e1fa9)},_0x452d32={'unitId':_0x954735,'subUnitId':_0xbcdf22,'drawingId':_0x363694,'drawingType':_0x47bed[_0x7de908(0x240)]['DRAWING_SHAPE'],'sheetTransform':_0x3b4966,'transform':{'left':_0x3905cb,'top':_0x161343,'width':_0x4c88e0,'height':_0x2e1fa9},'data':{'shapeType':_0x48b744,'shapeData':_0x5cd947},'axisAlignSheetTransform':_0x3b4966,'allowTransform':!0x0};(0x0,_0x5036a4[_0x7de908(0x271)])(_0x48b744)&&(_0x452d32[_0x7de908(0x246)][_0x7de908(0x26c)]=!0x1,_0x452d32['data'][_0x7de908(0x280)]=!0x1,_0x452d32[_0x7de908(0x246)][_0x7de908(0x27f)]=!0x1,_0x452d32['data'][_0x7de908(0x23a)]=!0x1,_0x452d32[_0x7de908(0x20a)][_0x7de908(0x280)]=!0x1,_0x452d32[_0x7de908(0x20a)][_0x7de908(0x27f)]=!0x1,_0x452d32[_0x7de908(0x20a)][_0x7de908(0x23a)]=!0x1);let {undo:_0x5775e8,redo:_0x1c9a5e,objects:_0xc9dcb8}=_0x2b6172[_0x7de908(0x1e6)]([_0x452d32]),_0x1cc74f=_0x3abb1e[_0x7de908(0x1e4)]({'id':_0x40c92a[_0x7de908(0x1d8)]['id'],'params':{'unitId':_0x954735,'drawings':[_0x452d32]}}),_0x540030=[...(_0x2132e7=_0x1cc74f['preRedos'])==null?[]:_0x2132e7,{'id':_0x40c92a[_0x7de908(0x259)]['id'],'params':{'unitId':_0x954735,'subUnitId':_0xbcdf22,'op':_0x1c9a5e,'objects':_0xc9dcb8,'type':_0x40c92a[_0x7de908(0x201)][_0x7de908(0x25b)]}},{'id':_0x40c92a[_0x7de908(0x211)]['id'],'params':[_0x954735]},..._0x1cc74f[_0x7de908(0x278)],{'id':_0x3e1632['id'],'params':_0x11fdd4}],_0x9fdf99=[...(_0x18fcb2=_0x1cc74f[_0x7de908(0x25d)])==null?[]:_0x18fcb2,{'id':_0x40c92a[_0x7de908(0x259)]['id'],'params':{'unitId':_0x954735,'subUnitId':_0xbcdf22,'op':_0x5775e8,'objects':_0xc9dcb8,'type':_0x40c92a[_0x7de908(0x201)]['UPDATE']}},{'id':_0x40c92a[_0x7de908(0x211)]['id'],'params':[_0x954735]},..._0x1cc74f[_0x7de908(0x1ba)],{'id':_0x3e1632['id'],'params':{'unitId':_0x954735,'subUnitId':_0xbcdf22,'shapeType':_0x54cf58,'shapeId':_0x363694,'shapeData':_0x1b8a27}}];return(0x0,_0x47bed['sequenceExecute'])(_0x540030,_0xb4c539)[_0x7de908(0x276)]?(_0x20da5f['pushUndoRedo']({'unitID':_0x954735,'undoMutations':_0x9fdf99,'redoMutations':_0x540030}),!0x0):!0x1;}},_0x75320d={'type':_0x47bed[_0x33b6ea(0x268)][_0x33b6ea(0x262)],'id':'sheet.command.toggle-shape-flip','handler':(_0x22561f,_0x2d587d)=>{const _0x3a4a45=_0x33b6ea;var _0x2d0856,_0x40a690;let _0xb0f356=(0x0,_0xf07d9d[_0x3a4a45(0x285)])(_0x22561f[_0x3a4a45(0x264)](_0x47bed[_0x3a4a45(0x1ed)]),_0x2d587d);if(!_0xb0f356)return!0x1;let _0x1d887d=_0x22561f['get'](_0xf07d9d[_0x3a4a45(0x1cb)]),{unitId:_0x21d92a,subUnitId:_0x4c99f7}=_0xb0f356,_0x4ffed1=_0x1d887d[_0x3a4a45(0x20e)](_0x21d92a,_0x4c99f7);if(!_0x4ffed1)return!0x1;let _0x230de8=_0x22561f['get'](_0x40c92a[_0x3a4a45(0x1db)]),{shapeId:_0x4ec502,flipH:_0x1d21f9,flipV:_0x5cfd6d}=_0x2d587d,_0x57255a=_0x230de8[_0x3a4a45(0x272)]({'unitId':_0x21d92a,'subUnitId':_0x4c99f7,'drawingId':_0x4ec502});if(!_0x57255a)return!0x1;let _0x1c51c8=_0x22561f[_0x3a4a45(0x264)](_0x35f7ee)[_0x3a4a45(0x1f4)](_0x21d92a,_0x4c99f7,_0x4ec502);if(!_0x1c51c8)return!0x1;let _0x298723=_0x22561f[_0x3a4a45(0x264)](_0x47bed[_0x3a4a45(0x1c7)]),_0x2d34eb=_0x22561f[_0x3a4a45(0x264)](_0x47bed['IUndoRedoService']),_0x2b5a53=_0x22561f['get'](_0xf07d9d[_0x3a4a45(0x218)]),_0x5343c4={..._0x57255a[_0x3a4a45(0x20a)]};_0x1d21f9!==void 0x0&&(_0x5343c4[_0x3a4a45(0x234)]=!_0x5343c4[_0x3a4a45(0x234)]),_0x5cfd6d!==void 0x0&&(_0x5343c4[_0x3a4a45(0x1ea)]=!_0x5343c4[_0x3a4a45(0x1ea)]);let _0x2a6119=(0x0,_0x40c92a[_0x3a4a45(0x222)])(_0x5343c4,_0x4ffed1),_0x5814f8=(0x0,_0x40c92a['transformToAxisAlignPosition'])(_0x5343c4,_0x4ffed1),_0x430577=_0x1c51c8[_0x3a4a45(0x205)](),_0x4f48c5=_0x1c51c8[_0x3a4a45(0x241)](),_0x4fd53d={'unitId':_0x21d92a,'subUnitId':_0x4c99f7,'drawingId':_0x4ec502,'drawingType':_0x47bed['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x2a6119,'transform':_0x5343c4,'data':{'shapeType':_0x430577,'shapeData':_0x4f48c5},'axisAlignSheetTransform':_0x5814f8,'allowTransform':!0x0},{undo:_0x22cd55,redo:_0x5205ec,objects:_0x1772ef}=_0x230de8[_0x3a4a45(0x1e6)]([_0x4fd53d]),_0x2a8b52=_0x2b5a53[_0x3a4a45(0x1e4)]({'id':_0x40c92a[_0x3a4a45(0x1d8)]['id'],'params':{'unitId':_0x21d92a,'drawings':[_0x4fd53d]}}),_0x1dd7b2=[...(_0x2d0856=_0x2a8b52[_0x3a4a45(0x1e3)])==null?[]:_0x2d0856,{'id':_0x40c92a[_0x3a4a45(0x259)]['id'],'params':{'unitId':_0x21d92a,'subUnitId':_0x4c99f7,'op':_0x5205ec,'objects':_0x1772ef,'type':_0x40c92a[_0x3a4a45(0x201)][_0x3a4a45(0x25b)]}},{'id':_0x40c92a[_0x3a4a45(0x211)]['id'],'params':[_0x21d92a]},..._0x2a8b52['redos']],_0x27c811=[...(_0x40a690=_0x2a8b52['preUndos'])==null?[]:_0x40a690,{'id':_0x40c92a[_0x3a4a45(0x259)]['id'],'params':{'unitId':_0x21d92a,'subUnitId':_0x4c99f7,'op':_0x22cd55,'objects':_0x1772ef,'type':_0x40c92a[_0x3a4a45(0x201)][_0x3a4a45(0x25b)]}},{'id':_0x40c92a[_0x3a4a45(0x211)]['id'],'params':[_0x21d92a]},..._0x2a8b52[_0x3a4a45(0x1ba)]];if((0x0,_0x5036a4[_0x3a4a45(0x271)])(_0x430577)){let _0x5edc9e=_0x1c51c8[_0x3a4a45(0x1e1)]();if(_0x5edc9e){let _0x330de0={..._0x5edc9e};_0x330de0['from']=void 0x0,_0x330de0['to']=void 0x0,_0x1dd7b2[_0x3a4a45(0x208)]({'id':_0x3e1632['id'],'params':{'unitId':_0x21d92a,'subUnitId':_0x4c99f7,'shapeId':_0x4ec502,'shapeType':_0x430577,'shapeData':{'relation':_0x330de0}}}),_0x27c811['push']({'id':_0x3e1632['id'],'params':{'unitId':_0x21d92a,'subUnitId':_0x4c99f7,'shapeId':_0x4ec502,'shapeType':_0x430577,'shapeData':{'relation':_0x5edc9e}}});}}return(0x0,_0x47bed['sequenceExecute'])(_0x1dd7b2,_0x298723)[_0x3a4a45(0x276)]?(_0x2d34eb[_0x3a4a45(0x1f9)]({'unitID':_0x21d92a,'undoMutations':_0x27c811,'redoMutations':_0x1dd7b2}),!0x0):!0x1;}},_0x10b223={'type':_0x47bed['CommandType'][_0x33b6ea(0x262)],'id':_0x33b6ea(0x250),'handler':(_0x25d834,_0x556052)=>{const _0x215591=_0x33b6ea;var _0x146c83,_0x1c0629;let _0x5432b6=(0x0,_0xf07d9d[_0x215591(0x285)])(_0x25d834[_0x215591(0x264)](_0x47bed[_0x215591(0x1ed)]),_0x556052);if(!_0x5432b6)return!0x1;let _0x3602aa=_0x25d834['get'](_0xf07d9d[_0x215591(0x1cb)]),{unitId:_0x673b63,subUnitId:_0x14a08d}=_0x5432b6,_0x1bd919=_0x3602aa['getSkeleton'](_0x673b63,_0x14a08d);if(!_0x1bd919)return!0x1;let _0x586d2e=_0x25d834['get'](_0x40c92a[_0x215591(0x1db)]),{shapeId:_0x42b3be,rotate:_0x3e02a8}=_0x556052,_0x25b04b=_0x586d2e[_0x215591(0x272)]({'unitId':_0x673b63,'subUnitId':_0x14a08d,'drawingId':_0x42b3be});if(!_0x25b04b)return!0x1;let _0x45ca06=_0x25d834['get'](_0x35f7ee)[_0x215591(0x1f4)](_0x673b63,_0x14a08d,_0x42b3be);if(!_0x45ca06)return!0x1;let _0x58e7d3=_0x25d834[_0x215591(0x264)](_0x47bed['ICommandService']),_0x11741e=_0x25d834[_0x215591(0x264)](_0x47bed['IUndoRedoService']),_0x57c395=_0x25d834[_0x215591(0x264)](_0xf07d9d['SheetInterceptorService']),_0x109ba4={..._0x25b04b[_0x215591(0x20a)]};_0x3e02a8!==void 0x0&&(_0x109ba4[_0x215591(0x261)]=(_0x109ba4[_0x215591(0x261)]||0x0)+_0x3e02a8);let _0x5103eb=(0x0,_0x40c92a['transformToDrawingPosition'])(_0x109ba4,_0x1bd919),_0x4372ff=(0x0,_0x40c92a[_0x215591(0x233)])(_0x109ba4,_0x1bd919),_0x136729=_0x45ca06[_0x215591(0x205)](),_0x3f42b3=_0x45ca06[_0x215591(0x241)](),_0x36d5f8={'unitId':_0x673b63,'subUnitId':_0x14a08d,'drawingId':_0x42b3be,'drawingType':_0x47bed[_0x215591(0x240)][_0x215591(0x23f)],'sheetTransform':_0x5103eb,'transform':_0x109ba4,'data':{'shapeType':_0x136729,'shapeData':_0x3f42b3},'axisAlignSheetTransform':_0x4372ff,'allowTransform':!0x0},{undo:_0x54290c,redo:_0x41eef3,objects:_0x5cd1b6}=_0x586d2e[_0x215591(0x1e6)]([_0x36d5f8]),_0x4a8fd9=_0x57c395['onCommandExecute']({'id':_0x40c92a[_0x215591(0x1d8)]['id'],'params':{'unitId':_0x673b63,'drawings':[_0x36d5f8]}}),_0x412744=[...(_0x146c83=_0x4a8fd9[_0x215591(0x1e3)])==null?[]:_0x146c83,{'id':_0x40c92a[_0x215591(0x259)]['id'],'params':{'unitId':_0x673b63,'subUnitId':_0x14a08d,'op':_0x41eef3,'objects':_0x5cd1b6,'type':_0x40c92a[_0x215591(0x201)][_0x215591(0x25b)]}},{'id':_0x40c92a[_0x215591(0x211)]['id'],'params':[_0x673b63]},..._0x4a8fd9[_0x215591(0x278)]],_0x390f79=[...(_0x1c0629=_0x4a8fd9[_0x215591(0x25d)])==null?[]:_0x1c0629,{'id':_0x40c92a['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x673b63,'subUnitId':_0x14a08d,'op':_0x54290c,'objects':_0x5cd1b6,'type':_0x40c92a[_0x215591(0x201)][_0x215591(0x25b)]}},{'id':_0x40c92a['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x673b63]},..._0x4a8fd9['undos']];return(0x0,_0x47bed['sequenceExecute'])(_0x412744,_0x58e7d3)['result']?(_0x11741e['pushUndoRedo']({'unitID':_0x673b63,'undoMutations':_0x390f79,'redoMutations':_0x412744}),!0x0):!0x1;}},_0x16e55d={'type':_0x47bed[_0x33b6ea(0x268)][_0x33b6ea(0x262)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x394aec,_0x43006b)=>{const _0x316373=_0x33b6ea;var _0x46dc2f;let _0x2d2dc0=(0x0,_0xf07d9d['getSheetCommandTarget'])(_0x394aec[_0x316373(0x264)](_0x47bed[_0x316373(0x1ed)]),_0x43006b);if(!_0x2d2dc0)return!0x1;let {unitId:_0x2a7089,subUnitId:_0x17ae91}=_0x2d2dc0,{shapeId:_0x4c24ea}=_0x43006b,_0x2bd76b=_0x394aec[_0x316373(0x264)](_0x35f7ee)[_0x316373(0x1f4)](_0x2a7089,_0x17ae91,_0x4c24ea);if(!_0x2bd76b)return!0x1;let _0x2c40da=_0x2bd76b[_0x316373(0x1d4)](),_0x1dac1d=(_0x46dc2f=_0x2c40da==null?void 0x0:_0x2c40da[_0x316373(0x242)])==null?!0x0:_0x46dc2f,_0x1170f3=!_0x1dac1d,_0x1edb07=_0x394aec[_0x316373(0x264)](_0x47bed[_0x316373(0x1c7)]),_0x2b6138=_0x394aec[_0x316373(0x264)](_0x47bed[_0x316373(0x24b)]),_0xc8b22={'unitId':_0x2a7089,'subUnitId':_0x17ae91,'shapeId':_0x4c24ea,'shapeData':{'shapeText':{'isHorizontal':_0x1170f3}}},_0x11413f={'unitId':_0x2a7089,'subUnitId':_0x17ae91,'shapeId':_0x4c24ea,'shapeData':{'shapeText':{'isHorizontal':_0x1dac1d}}},_0x306b1e=[{'id':_0x3e1632['id'],'params':_0xc8b22}],_0x585163=[{'id':_0x3e1632['id'],'params':_0x11413f}];return(0x0,_0x47bed['sequenceExecute'])(_0x306b1e,_0x1edb07)[_0x316373(0x276)]?(_0x2b6138[_0x316373(0x1f9)]({'unitID':_0x2a7089,'undoMutations':_0x585163,'redoMutations':_0x306b1e}),!0x0):!0x1;}},_0x3373e2={'type':_0x47bed[_0x33b6ea(0x268)]['COMMAND'],'id':'sheet.command.update-connector-relation','handler':(_0x1573f5,_0x28f93b)=>{const _0x294893=_0x33b6ea;var _0x548fc0,_0xc6f21c,_0xb7633a,_0x4ae894;let _0x2fd7b1=(0x0,_0xf07d9d[_0x294893(0x285)])(_0x1573f5['get'](_0x47bed['IUniverInstanceService']),_0x28f93b);if(!_0x2fd7b1)return!0x1;let _0x47fe61=_0x1573f5[_0x294893(0x264)](_0xf07d9d['SheetSkeletonService']),{unitId:_0x1d6af5,subUnitId:_0x1c0f6a}=_0x2fd7b1,_0x2b8dd8=_0x47fe61['getSkeleton'](_0x1d6af5,_0x1c0f6a);if(!_0x2b8dd8)return!0x1;let _0x3aff72=_0x1573f5[_0x294893(0x264)](_0x40c92a['ISheetDrawingService']),{connectorShapeId:_0x2be7a9,width:_0x2fcb5c,height:_0x627410,left:_0x1a4b23,top:_0x7db80e,flipX:_0x64b630,flipY:_0xd30a29,rotation:_0x300aa6,oldAdjustValues:_0x37b974,newAdjustValues:_0xe0390e,oldLineType:_0x1b3238,newLineType:_0x1f29ad,oldRelation:_0x224685,newRelation:_0x5958e2}=_0x28f93b,_0x4910f3=_0x3aff72[_0x294893(0x272)]({'unitId':_0x1d6af5,'subUnitId':_0x1c0f6a,'drawingId':_0x2be7a9});if(!_0x4910f3)return!0x1;let _0x2f0586=_0x1573f5['get'](_0x35f7ee)[_0x294893(0x1f4)](_0x1d6af5,_0x1c0f6a,_0x2be7a9);if(!_0x2f0586)return!0x1;let _0x18f28b=_0x1573f5[_0x294893(0x264)](_0x47bed[_0x294893(0x1c7)]),_0x520db1=_0x1573f5[_0x294893(0x264)](_0x47bed['IUndoRedoService']),_0x39256c=_0x1573f5['get'](_0xf07d9d[_0x294893(0x218)]),_0x419fda={..._0x4910f3[_0x294893(0x20a)],'width':_0x2fcb5c,'height':_0x627410,'left':_0x1a4b23,'top':_0x7db80e,'flipX':_0x64b630,'flipY':_0xd30a29,'angle':(_0x548fc0=_0x300aa6==null?(_0xc6f21c=_0x4910f3[_0x294893(0x20a)])==null?void 0x0:_0xc6f21c[_0x294893(0x261)]:_0x300aa6)==null?0x0:_0x548fc0},_0x3e9eb5=(0x0,_0x40c92a[_0x294893(0x222)])(_0x419fda,_0x2b8dd8),_0x4207bc=(0x0,_0x40c92a[_0x294893(0x233)])(_0x419fda,_0x2b8dd8),_0x52aedf=_0x2f0586[_0x294893(0x205)](),_0x466d17=_0x2f0586['getShapeData'](),_0x409a00={'unitId':_0x1d6af5,'subUnitId':_0x1c0f6a,'drawingId':_0x2be7a9,'drawingType':_0x47bed[_0x294893(0x240)][_0x294893(0x23f)],'sheetTransform':_0x3e9eb5,'transform':_0x419fda,'data':{'shapeType':_0x1f29ad||_0x1b3238||_0x52aedf,'shapeData':{..._0x466d17,'adjustValues':_0xe0390e||_0x37b974||(_0x466d17==null?void 0x0:_0x466d17[_0x294893(0x213)]),'relation':_0x5958e2||_0x224685||(_0x466d17==null?void 0x0:_0x466d17[_0x294893(0x223)])}},'axisAlignSheetTransform':_0x4207bc,'allowTransform':!0x0},{undo:_0x3d0683,redo:_0x4fc06b,objects:_0x26413d}=_0x3aff72[_0x294893(0x1e6)]([_0x409a00]),_0x4acc15=_0x39256c[_0x294893(0x1e4)]({'id':_0x40c92a[_0x294893(0x1d8)]['id'],'params':{'unitId':_0x1d6af5,'drawings':[_0x409a00]}}),_0xf8740f=[...(_0xb7633a=_0x4acc15['preRedos'])==null?[]:_0xb7633a,{'id':_0x40c92a[_0x294893(0x259)]['id'],'params':{'unitId':_0x1d6af5,'subUnitId':_0x1c0f6a,'op':_0x4fc06b,'objects':_0x26413d,'type':_0x40c92a[_0x294893(0x201)][_0x294893(0x25b)]}},{'id':_0x40c92a[_0x294893(0x211)]['id'],'params':[_0x1d6af5]},..._0x4acc15[_0x294893(0x278)],{'id':_0x3e1632['id'],'params':{'unitId':_0x1d6af5,'subUnitId':_0x1c0f6a,'shapeId':_0x2be7a9,'shapeType':_0x1f29ad,'shapeData':{'adjustValues':_0xe0390e,'relation':_0x5958e2}}}],_0x528bd3=[...(_0x4ae894=_0x4acc15[_0x294893(0x25d)])==null?[]:_0x4ae894,{'id':_0x40c92a[_0x294893(0x259)]['id'],'params':{'unitId':_0x1d6af5,'subUnitId':_0x1c0f6a,'op':_0x3d0683,'objects':_0x26413d,'type':_0x40c92a['DrawingApplyType'][_0x294893(0x25b)]}},{'id':_0x40c92a[_0x294893(0x211)]['id'],'params':[_0x1d6af5]},..._0x4acc15[_0x294893(0x1ba)],{'id':_0x3e1632['id'],'params':{'unitId':_0x1d6af5,'subUnitId':_0x1c0f6a,'shapeId':_0x2be7a9,'shapeType':_0x52aedf,'shapeData':{..._0x466d17,'adjustValues':_0x37b974||(_0x466d17==null?void 0x0:_0x466d17[_0x294893(0x213)]),'relation':_0x224685||(_0x466d17==null?void 0x0:_0x466d17['relation'])}}}];return(0x0,_0x47bed['sequenceExecute'])(_0xf8740f,_0x18f28b)[_0x294893(0x276)]?(_0x520db1['pushUndoRedo']({'unitID':_0x1d6af5,'undoMutations':_0x528bd3,'redoMutations':_0xf8740f}),!0x0):!0x1;}},_0x13c806={'type':_0x47bed[_0x33b6ea(0x268)]['COMMAND'],'id':'sheet.command.update-line-shape-resize','handler':(_0x6ec232,_0x1697bf)=>{const _0x5a9eb4=_0x33b6ea;var _0x3c3167,_0xcd8b5b;let _0x8c2572=(0x0,_0xf07d9d[_0x5a9eb4(0x285)])(_0x6ec232[_0x5a9eb4(0x264)](_0x47bed[_0x5a9eb4(0x1ed)]),_0x1697bf);if(!_0x8c2572)return!0x1;let _0x3d9b76=_0x6ec232[_0x5a9eb4(0x264)](_0xf07d9d[_0x5a9eb4(0x1cb)]),{unitId:_0x4281fc,subUnitId:_0x394da0}=_0x8c2572,_0x5d251e=_0x3d9b76['getSkeleton'](_0x4281fc,_0x394da0);if(!_0x5d251e)return!0x1;let _0x3cae0c=_0x6ec232[_0x5a9eb4(0x264)](_0x40c92a[_0x5a9eb4(0x1db)]),{shapeId:_0x2d7b33,width:_0x1aa24d,height:_0x8bbd80,left:_0x33336d,top:_0xc65a31,flipX:_0x8476e8,flipY:_0x5bff11,angle:_0x406b6b,oldAdjustValues:_0x133a74,newAdjustValues:_0xea0309,oldLineType:_0xd5ff56,newLineType:_0x5333a7}=_0x1697bf,_0x32dba9=_0x3cae0c[_0x5a9eb4(0x272)]({'unitId':_0x4281fc,'subUnitId':_0x394da0,'drawingId':_0x2d7b33});if(!_0x32dba9)return!0x1;let _0x2e1b1c=_0x6ec232[_0x5a9eb4(0x264)](_0x35f7ee)[_0x5a9eb4(0x1f4)](_0x4281fc,_0x394da0,_0x2d7b33);if(!_0x2e1b1c)return!0x1;let _0xd1a4d4=_0x6ec232['get'](_0x47bed[_0x5a9eb4(0x1c7)]),_0x458a1e=_0x6ec232[_0x5a9eb4(0x264)](_0x47bed[_0x5a9eb4(0x24b)]),_0x410695=_0x6ec232['get'](_0xf07d9d[_0x5a9eb4(0x218)]),_0x4f813d={..._0x32dba9[_0x5a9eb4(0x20a)],'width':_0x1aa24d,'height':_0x8bbd80,'left':_0x33336d,'top':_0xc65a31,'flipX':_0x8476e8,'flipY':_0x5bff11,'angle':_0x406b6b},_0x4c8dae=(0x0,_0x40c92a[_0x5a9eb4(0x222)])(_0x4f813d,_0x5d251e),_0xc0df4e=(0x0,_0x40c92a[_0x5a9eb4(0x233)])(_0x4f813d,_0x5d251e),_0x352013=_0x2e1b1c[_0x5a9eb4(0x205)](),_0x3a6b14=_0x2e1b1c[_0x5a9eb4(0x241)](),_0x1dbca4={'unitId':_0x4281fc,'subUnitId':_0x394da0,'drawingId':_0x2d7b33,'drawingType':_0x47bed['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x4c8dae,'transform':_0x4f813d,'data':{'shapeType':_0x5333a7||_0xd5ff56||_0x352013,'shapeData':{..._0x3a6b14,'adjustValues':_0xea0309||_0x133a74||(_0x3a6b14==null?void 0x0:_0x3a6b14[_0x5a9eb4(0x213)])}},'axisAlignSheetTransform':_0xc0df4e,'allowTransform':!0x0},{undo:_0x5e5cfb,redo:_0x1131bd,objects:_0x3c6ccc}=_0x3cae0c[_0x5a9eb4(0x1e6)]([_0x1dbca4]),_0x2829df=_0x410695[_0x5a9eb4(0x1e4)]({'id':_0x40c92a[_0x5a9eb4(0x1d8)]['id'],'params':{'unitId':_0x4281fc,'drawings':[_0x1dbca4]}}),_0x122fd4=[...(_0x3c3167=_0x2829df[_0x5a9eb4(0x1e3)])==null?[]:_0x3c3167,{'id':_0x40c92a[_0x5a9eb4(0x259)]['id'],'params':{'unitId':_0x4281fc,'subUnitId':_0x394da0,'op':_0x1131bd,'objects':_0x3c6ccc,'type':_0x40c92a[_0x5a9eb4(0x201)][_0x5a9eb4(0x25b)]}},{'id':_0x40c92a[_0x5a9eb4(0x211)]['id'],'params':[_0x4281fc]},..._0x2829df[_0x5a9eb4(0x278)],{'id':_0x3e1632['id'],'params':{'unitId':_0x4281fc,'subUnitId':_0x394da0,'shapeId':_0x2d7b33,'shapeType':_0x5333a7,'shapeData':{'adjustValues':_0xea0309}}}],_0x19ba69=[...(_0xcd8b5b=_0x2829df['preUndos'])==null?[]:_0xcd8b5b,{'id':_0x40c92a[_0x5a9eb4(0x259)]['id'],'params':{'unitId':_0x4281fc,'subUnitId':_0x394da0,'op':_0x5e5cfb,'objects':_0x3c6ccc,'type':_0x40c92a[_0x5a9eb4(0x201)][_0x5a9eb4(0x25b)]}},{'id':_0x40c92a[_0x5a9eb4(0x211)]['id'],'params':[_0x4281fc]},..._0x2829df[_0x5a9eb4(0x1ba)],{'id':_0x3e1632['id'],'params':{'unitId':_0x4281fc,'subUnitId':_0x394da0,'shapeId':_0x2d7b33,'shapeType':_0x352013,'shapeData':{..._0x3a6b14,'adjustValues':_0x133a74||(_0x3a6b14==null?void 0x0:_0x3a6b14[_0x5a9eb4(0x213)])}}}];return(0x0,_0x47bed['sequenceExecute'])(_0x122fd4,_0xd1a4d4)[_0x5a9eb4(0x276)]?(_0x458a1e[_0x5a9eb4(0x1f9)]({'unitID':_0x4281fc,'undoMutations':_0x19ba69,'redoMutations':_0x122fd4}),!0x0):!0x1;}},_0x548afe={'id':_0x33b6ea(0x209),'type':_0x47bed[_0x33b6ea(0x268)][_0x33b6ea(0x282)],'handler':(_0x1d8e4b,_0x514192)=>{const _0x114651=_0x33b6ea;let {unitId:_0x33599a,subUnitId:_0x22814b,shapeType:_0x2d14f0,shapeId:_0x1a10fb,shapeData:_0x34ec7b}=_0x514192,_0x254eaf=_0x1d8e4b['get'](_0x35f7ee)[_0x114651(0x1f4)](_0x33599a,_0x22814b,_0x1a10fb);return _0x254eaf&&(_0x254eaf[_0x114651(0x1b5)](_0x2d14f0),_0x34ec7b&&(_0x254eaf==null||_0x254eaf[_0x114651(0x1dd)](_0x34ec7b))),!0x0;}},_0x39b70b={'id':'sheet.command.update-shape-type','type':_0x47bed['CommandType'][_0x33b6ea(0x262)],'handler':(_0x5ea2dd,_0x135a5c)=>{const _0x381fc1=_0x33b6ea;if(!_0x135a5c)return!0x1;let _0x3ab932=_0x5ea2dd[_0x381fc1(0x264)](_0x47bed[_0x381fc1(0x1c7)]),_0x48f08b=_0x5ea2dd[_0x381fc1(0x264)](_0x35f7ee),_0x88882f=_0x5ea2dd['get'](_0x47bed[_0x381fc1(0x24b)]),_0x424257=[],_0x518318=[],{unitId:_0x584b2a,subUnitId:_0x217d66,shapeId:_0x257251,shapeType:_0x3a475c,shapeData:_0x4d74de}=_0x135a5c,_0x3ea597=_0x48f08b[_0x381fc1(0x1f4)](_0x584b2a,_0x217d66,_0x257251);if(_0x3ea597){let _0xbe8f78=_0x3ea597['getShapeType'](),_0x3a0736=Object['assign']({},_0x3ea597['getShapeData']()),_0x49d08f={'unitId':_0x584b2a,'subUnitId':_0x217d66,'shapeId':_0x257251,'shapeType':_0x3a475c,'shapeData':_0x4d74de},_0x158bd1={'unitId':_0x584b2a,'subUnitId':_0x217d66,'shapeId':_0x257251,'shapeType':_0xbe8f78,'shapeData':_0x3a0736};return _0x424257[_0x381fc1(0x208)]({'id':_0x548afe['id'],'params':_0x49d08f}),_0x518318[_0x381fc1(0x208)]({'id':_0x548afe['id'],'params':_0x158bd1}),_0x424257['every'](_0x1bf6ec=>_0x3ab932[_0x381fc1(0x238)](_0x1bf6ec['id'],_0x1bf6ec[_0x381fc1(0x24e)]))&&_0x88882f[_0x381fc1(0x1f9)]({'unitID':_0x584b2a,'redoMutations':[..._0x424257],'undoMutations':[..._0x518318]}),!0x0;}return!0x1;}};var _0x155ccd=_0x33b6ea(0x237),_0x2726b4=_0x33b6ea(0x210);let _0x4ab597={},_0xb097e5=class extends _0x47bed[_0x33b6ea(0x239)]{constructor(_0xceda6,_0x4b149b,_0x172776,_0x2d461b,_0x5aed7f){const _0x4a1aa2=_0x33b6ea;super(),this[_0x4a1aa2(0x275)]=_0xceda6,this[_0x4a1aa2(0x283)]=_0x4b149b,this['_sheetSkeletonService']=_0x172776,this[_0x4a1aa2(0x1da)]=_0x2d461b,this[_0x4a1aa2(0x263)]=_0x5aed7f,this[_0x4a1aa2(0x235)](),this[_0x4a1aa2(0x1c9)]();}['_initCommands'](){const _0x256879=_0x33b6ea;[_0x57b466,_0x33d7c4,_0x75320d,_0x10b223,_0x16e55d,_0x3373e2,_0x13c806,_0xaeceb3,_0x16a9b5,_0x548afe,_0x3e1632][_0x256879(0x1dc)](_0x135c5d=>this[_0x256879(0x1fb)](this['_commandService'][_0x256879(0x1c2)](_0x135c5d)));}['_initCommandInterceptor'](){const _0x2387d1=_0x33b6ea;this[_0x2387d1(0x1fb)](this['_sheetInterceptorService'][_0x2387d1(0x1cf)]({'getMutations':_0x2a16f6=>{const _0x3a275a=_0x2387d1;if(_0x2a16f6['id']===_0x40c92a['RemoveSheetDrawingCommand']['id']){let {drawings:_0xa429d2}=_0x2a16f6[_0x3a275a(0x24e)],_0xc7be2e=_0xa429d2['filter'](_0x1d6e8c=>_0x1d6e8c[_0x3a275a(0x1f2)]===_0x47bed['DrawingTypeEnum'][_0x3a275a(0x23f)]);if(_0xc7be2e[_0x3a275a(0x200)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2f386c=[],_0x9eb024=[];return _0xc7be2e['forEach'](_0x481795=>{const _0x525b4e=_0x3a275a;let {unitId:_0x2a7abc,subUnitId:_0x12af64,drawingId:_0x2dc575}=_0x481795,_0x16230d=this[_0x525b4e(0x1da)]['getShapeModel'](_0x2a7abc,_0x12af64,_0x2dc575);if(!_0x16230d)throw TypeError(_0x525b4e(0x286)+_0x16230d);_0x2f386c[_0x525b4e(0x208)]({'id':_0x16a9b5['id'],'params':{'unitId':_0x2a7abc,'subUnitId':_0x12af64,'shapeId':_0x2dc575}}),_0x9eb024[_0x525b4e(0x208)]({'id':_0xaeceb3['id'],'params':{'unitId':_0x2a7abc,'subUnitId':_0x12af64,'shapeId':_0x2dc575,'shapeType':_0x16230d[_0x525b4e(0x205)](),'shapeData':_0x16230d[_0x525b4e(0x241)]()}});let _0x10ec73=this[_0x525b4e(0x1da)][_0x525b4e(0x1d2)](_0x2a7abc,_0x12af64,_0x2dc575);if(_0x10ec73)for(let _0x1d1d45 of _0x10ec73){let _0x42b3db=_0x1d1d45['lineShapeId'],_0x5612c5=_0x1d1d45[_0x525b4e(0x249)],_0x31d275=_0x5612c5?{'from':void 0x0}:{'to':void 0x0},_0x394c31=_0x5612c5?{'from':{'shapeId':_0x1d1d45['shapeId'],'cxnIndex':_0x1d1d45[_0x525b4e(0x257)]}}:{'to':{'shapeId':_0x1d1d45[_0x525b4e(0x231)],'cxnIndex':_0x1d1d45[_0x525b4e(0x257)]}};_0x2f386c[_0x525b4e(0x208)]({'id':_0x3e1632['id'],'params':{'unitId':_0x2a7abc,'subUnitId':_0x12af64,'shapeId':_0x42b3db,'shapeData':{'relation':_0x31d275}}}),_0x9eb024[_0x525b4e(0x208)]({'id':_0x3e1632['id'],'params':{'unitId':_0x2a7abc,'subUnitId':_0x12af64,'shapeId':_0x42b3db,'shapeData':{'relation':_0x394c31}}});}}),{'preRedos':_0x2f386c,'redos':[],'preUndos':[],'undos':_0x9eb024};}if(_0x2a16f6['id']===_0x40c92a[_0x3a275a(0x1d8)]['id']){let {drawings:_0x45752d}=_0x2a16f6[_0x3a275a(0x24e)],_0x192788=_0x45752d[_0x3a275a(0x1fd)](_0x4ec977=>_0x4ec977[_0x3a275a(0x1f2)]===_0x47bed['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x192788[_0x3a275a(0x200)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3161d3=[],_0x3741cf=[];for(let _0x9239c7 of _0x192788){let {unitId:_0x131fba,subUnitId:_0x103f06,drawingId:_0x257151,transform:_0x1c8408}=_0x9239c7;if(!_0x131fba||!_0x103f06||!_0x257151||!_0x1c8408)continue;let _0x4d3578=this[_0x3a275a(0x1da)][_0x3a275a(0x1f4)](_0x131fba,_0x103f06,_0x257151);if(!_0x4d3578)throw TypeError(_0x3a275a(0x286)+_0x4d3578);if((0x0,_0x5036a4[_0x3a275a(0x271)])(_0x4d3578[_0x3a275a(0x205)]())){let _0x13ae45=this['_sheetsShapeService'][_0x3a275a(0x1f8)](_0x131fba,_0x103f06,_0x257151);_0x13ae45&&(_0x3161d3['push']({'id':_0x3e1632['id'],'params':{'unitId':_0x131fba,'subUnitId':_0x103f06,'shapeId':_0x257151,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x3741cf[_0x3a275a(0x208)]({'id':_0x3e1632['id'],'params':{'unitId':_0x131fba,'subUnitId':_0x103f06,'shapeId':_0x257151,'shapeData':{'relation':_0x13ae45}}}));}else{let _0x27730c=this[_0x3a275a(0x1da)][_0x3a275a(0x1d2)](_0x131fba,_0x103f06,_0x257151);if(_0x27730c&&_0x27730c['length']>0x0)for(let _0x2ee025 of _0x27730c){let _0x11ad84=_0x2ee025[_0x3a275a(0x1b8)],_0x444730=_0x2ee025[_0x3a275a(0x249)],_0x1f26f7=this[_0x3a275a(0x1da)][_0x3a275a(0x1f4)](_0x131fba,_0x103f06,_0x11ad84);if(!_0x1f26f7)continue;let _0x2e3d6b=_0x1f26f7[_0x3a275a(0x1c5)](),_0x3ca76a=_0x1f26f7[_0x3a275a(0x20b)]();_0x2e3d6b&&_0x3ca76a?this[_0x3a275a(0x1c0)](_0x131fba,_0x103f06,_0x11ad84,_0x1f26f7,_0x2e3d6b,_0x3ca76a,_0x3161d3,_0x3741cf,_0x257151,_0x1c8408):this[_0x3a275a(0x27b)](_0x131fba,_0x103f06,_0x11ad84,_0x1f26f7,_0x444730?_0x2e3d6b:_0x3ca76a,_0x444730,_0x3161d3,_0x3741cf,_0x257151,_0x1c8408);}}}return{'preRedos':[],'redos':_0x3161d3,'preUndos':_0x3741cf,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x33b6ea(0x224)](_0x3239d7,_0x34d34a,_0x3f2509,_0x37c5e6,_0x517ece){const _0x33c7d5=_0x33b6ea;if(!_0x34d34a||!_0x3f2509)return null;let {shapeId:_0x3af734,cxnIndex:_0x4e3db7}=_0x3239d7,_0x2e8267=this[_0x33c7d5(0x1da)][_0x33c7d5(0x1f4)](_0x34d34a,_0x3f2509,_0x3af734);if(!_0x2e8267)return null;let _0x4cd654=this[_0x33c7d5(0x263)][_0x33c7d5(0x272)]({'unitId':_0x34d34a,'subUnitId':_0x3f2509,'drawingId':_0x3af734});if(!(_0x4cd654!=null&&_0x4cd654[_0x33c7d5(0x20a)]))return null;let {left:_0x2b6cb5=0x0,top:_0x5d214a=0x0,width:_0x4e0c0a=0x0,height:_0x5ec632=0x0,flipX:_0xf9ade5=!0x1,flipY:_0x6dee04=!0x1,angle:_0x392bf6}=_0x4cd654[_0x33c7d5(0x20a)];if(_0x517ece&&_0x37c5e6===_0x3af734){var _0x2f83af,_0x1b37bf,_0x4bcfb0,_0x511080,_0x35baff,_0x1786ff,_0x21084c;_0x2b6cb5=(_0x2f83af=_0x517ece[_0x33c7d5(0x27c)])==null?_0x2b6cb5:_0x2f83af,_0x5d214a=(_0x1b37bf=_0x517ece[_0x33c7d5(0x1f5)])==null?_0x5d214a:_0x1b37bf,_0x4e0c0a=(_0x4bcfb0=_0x517ece['width'])==null?_0x4e0c0a:_0x4bcfb0,_0x5ec632=(_0x511080=_0x517ece[_0x33c7d5(0x21f)])==null?_0x5ec632:_0x511080,_0xf9ade5=(_0x35baff=_0x517ece[_0x33c7d5(0x234)])==null?_0xf9ade5:_0x35baff,_0x6dee04=(_0x1786ff=_0x517ece[_0x33c7d5(0x1ea)])==null?_0x6dee04:_0x1786ff,_0x392bf6=(_0x21084c=_0x517ece[_0x33c7d5(0x261)])==null?_0x392bf6:_0x21084c;}_0x2e8267[_0x33c7d5(0x22a)]({'width':_0x4e0c0a,'height':_0x5ec632});let _0x380e56=_0x2e8267[_0x33c7d5(0x1de)]()[_0x33c7d5(0x1f6)](_0x37069e=>_0x37069e['index']===_0x4e3db7);if(!_0x380e56)return null;let _0x1b5c17=_0xf9ade5?_0x4e0c0a-_0x380e56['x']:_0x380e56['x'],_0x5e8fc4=_0x6dee04?_0x5ec632-_0x380e56['y']:_0x380e56['y'];if(_0x392bf6!==0x0&&_0x392bf6!=null){let _0x1e58a9=_0x392bf6*Math['PI']/0xb4,_0x39dffc=Math[_0x33c7d5(0x24a)](_0x1e58a9),_0x9260f5=Math['sin'](_0x1e58a9),_0x49a15f=_0x4e0c0a/0x2,_0x98e2dc=_0x5ec632/0x2,_0x185f84=_0x1b5c17-_0x49a15f,_0x9e440c=_0x5e8fc4-_0x98e2dc;_0x1b5c17=_0x49a15f+_0x185f84*_0x39dffc-_0x9e440c*_0x9260f5,_0x5e8fc4=_0x98e2dc+_0x185f84*_0x9260f5+_0x9e440c*_0x39dffc;}_0x1b5c17+=_0x2b6cb5,_0x5e8fc4+=_0x5d214a;let _0xd5103e=_0x380e56[_0x33c7d5(0x1bc)]/0xea60;_0xf9ade5&&(_0xd5103e=0xb4-_0xd5103e),_0x6dee04&&(_0xd5103e=-_0xd5103e),_0xd5103e+=_0x392bf6||0x0,_0xd5103e=(_0xd5103e%0x168+0x168)%0x168;let _0x2e4480=(0x0,_0x5036a4[_0x33c7d5(0x26f)])({'left':_0x2b6cb5,'top':_0x5d214a,'width':_0x4e0c0a,'height':_0x5ec632},_0x392bf6||0x0);return{'point':{'x':_0x1b5c17,'y':_0x5e8fc4},'angle':_0xd5103e,'bounds':_0x2e4480};}[_0x33b6ea(0x1c0)](_0x856de7,_0x3232f5,_0x42e373,_0x555e85,_0x5087d1,_0x1bc914,_0x231fb2,_0x4896de,_0x2d440c,_0x3220e7){const _0x1f9fb6=_0x33b6ea;let _0x558e33=this[_0x1f9fb6(0x214)][_0x1f9fb6(0x20e)](_0x856de7,_0x3232f5);if(!_0x558e33)return;let _0xc6b6ae=_0x555e85[_0x1f9fb6(0x1e1)](),_0x26ea81=_0x555e85[_0x1f9fb6(0x23c)](),_0x2a602f={},_0x359ed8={};_0x26ea81[_0x1f9fb6(0x1dc)](_0x47aeee=>{const _0x56811a=_0x1f9fb6;let _0x3856c8=_0x555e85[_0x56811a(0x284)](_0x47aeee);_0x359ed8[_0x47aeee]=_0x3856c8==null?0x0:_0x3856c8;});let _0x5213fd=this[_0x1f9fb6(0x224)](_0x5087d1,_0x856de7,_0x3232f5,_0x2d440c,_0x3220e7),_0x2ecb1a=this['_getConnectPointInfo'](_0x1bc914,_0x856de7,_0x3232f5,_0x2d440c,_0x3220e7);if(_0x5213fd&&_0x2ecb1a){let _0x5d357e=_0x555e85[_0x1f9fb6(0x205)](),_0x2ece86=(0x0,_0x5036a4[_0x1f9fb6(0x269)])(_0x5213fd,_0x2ecb1a,_0x5d357e),_0x28d643=_0x5d357e;if(_0x2ece86){let _0x202e21=(0x0,_0x5036a4[_0x1f9fb6(0x256)])(_0x2ece86,_0x555e85[_0x1f9fb6(0x205)]()),_0x109796=this[_0x1f9fb6(0x263)][_0x1f9fb6(0x252)](_0x856de7,_0x3232f5);if(_0x109796&&_0x109796[_0x42e373]){let _0x33af93=_0x109796[_0x42e373];_0x28d643=_0x202e21[_0x1f9fb6(0x24c)];for(let [_0x385cff,_0x283269]of Object[_0x1f9fb6(0x1d1)](_0x202e21['adjustValues']))_0x2a602f[_0x385cff]=_0x283269;let _0x42112e={..._0x33af93['transform'],'width':_0x202e21[_0x1f9fb6(0x265)]['width'],'height':_0x202e21[_0x1f9fb6(0x265)][_0x1f9fb6(0x21f)],'left':_0x202e21['worldRect'][_0x1f9fb6(0x27c)],'top':_0x202e21['worldRect'][_0x1f9fb6(0x1f5)],'flipX':_0x202e21[_0x1f9fb6(0x265)]['flipX'],'flipY':_0x202e21['worldRect']['flipY'],'angle':_0x202e21['rotation']},_0x2912ec=(0x0,_0x40c92a['transformToDrawingPosition'])(_0x42112e,_0x558e33),_0x3eac38=(0x0,_0x40c92a[_0x1f9fb6(0x233)])(_0x42112e,_0x558e33),_0x1ed4e6={'unitId':_0x856de7,'subUnitId':_0x3232f5,'drawingType':_0x47bed[_0x1f9fb6(0x240)][_0x1f9fb6(0x23f)],'drawingId':_0x42e373,'transform':_0x42112e,'sheetTransform':_0x2912ec,'axisAlignSheetTransform':_0x3eac38},{unitId:_0x57c908,subUnitId:_0x1b87ee,undo:_0x341c6d,redo:_0x54f760,objects:_0x487cca}=this[_0x1f9fb6(0x263)][_0x1f9fb6(0x1e6)]([_0x1ed4e6]);_0x231fb2[_0x1f9fb6(0x208)]({'id':_0x40c92a['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x57c908,'subUnitId':_0x1b87ee,'op':_0x54f760,'objects':_0x487cca,'type':_0x40c92a['DrawingApplyType'][_0x1f9fb6(0x25b)]}}),_0x4896de['push']({'id':_0x40c92a[_0x1f9fb6(0x259)]['id'],'params':{'unitId':_0x57c908,'subUnitId':_0x1b87ee,'op':_0x341c6d,'objects':_0x487cca,'type':_0x40c92a[_0x1f9fb6(0x201)]['UPDATE']}});}_0x555e85[_0x1f9fb6(0x247)]();}_0x231fb2[_0x1f9fb6(0x208)]({'id':_0x3e1632['id'],'params':{'unitId':_0x856de7,'subUnitId':_0x3232f5,'shapeId':_0x42e373,'shapeType':_0x28d643,'shapeData':{'adjustValues':_0x2a602f,'relation':_0xc6b6ae}}}),_0x4896de[_0x1f9fb6(0x208)]({'id':_0x3e1632['id'],'params':{'unitId':_0x856de7,'subUnitId':_0x3232f5,'shapeId':_0x42e373,'shapeType':_0x5d357e,'shapeData':{'adjustValues':_0x359ed8,'relation':_0xc6b6ae}}});}}['_addLineFollowShapeUpdates'](_0xd1a297,_0x3c502f,_0x4b8dae,_0x4a18dc,_0x8b8f39,_0x56e37a,_0x2cd826,_0x2d9425,_0x21ecf6,_0x53c461){const _0x44726f=_0x33b6ea;var _0x271600;if(!_0x8b8f39)return;let _0x38be02=this[_0x44726f(0x214)][_0x44726f(0x20e)](_0xd1a297,_0x3c502f);if(!_0x38be02)return;let _0x22017a=(_0x271600=this[_0x44726f(0x263)][_0x44726f(0x272)]({'unitId':_0xd1a297,'subUnitId':_0x3c502f,'drawingId':_0x21ecf6}))==null?void 0x0:_0x271600[_0x44726f(0x20a)];if(!_0x22017a)return;let _0x39183c=_0x22017a[_0x44726f(0x27c)]!==_0x53c461[_0x44726f(0x27c)]||_0x22017a[_0x44726f(0x1f5)]!==_0x53c461[_0x44726f(0x1f5)],_0x550421=_0x22017a[_0x44726f(0x1e0)]!==_0x53c461[_0x44726f(0x1e0)]||_0x22017a[_0x44726f(0x21f)]!==_0x53c461[_0x44726f(0x21f)],_0x465f63=_0x22017a['flipX']!==_0x53c461[_0x44726f(0x234)]||_0x22017a[_0x44726f(0x1ea)]!==_0x53c461['flipY'],_0x29de9d=_0x22017a[_0x44726f(0x261)]!==_0x53c461[_0x44726f(0x261)];if(_0x39183c&&!_0x550421&&!_0x465f63&&!_0x29de9d){var _0xe1b124,_0x3a77ed,_0x2e93eb,_0x1761de;let _0x14ebfd=((_0xe1b124=_0x53c461[_0x44726f(0x27c)])==null?0x0:_0xe1b124)-((_0x3a77ed=_0x22017a['left'])==null?0x0:_0x3a77ed),_0x4f57f5=((_0x2e93eb=_0x53c461['top'])==null?0x0:_0x2e93eb)-((_0x1761de=_0x22017a[_0x44726f(0x1f5)])==null?0x0:_0x1761de),_0x334c0d=this[_0x44726f(0x263)][_0x44726f(0x252)](_0xd1a297,_0x3c502f);if(_0x334c0d&&_0x334c0d[_0x4b8dae]){var _0xd6885,_0x3b68d1,_0x1dbaaa,_0x479674;let _0x1b0fb3=_0x334c0d[_0x4b8dae],_0x5a3e5a={..._0x1b0fb3[_0x44726f(0x20a)],'left':((_0xd6885=(_0x3b68d1=_0x1b0fb3[_0x44726f(0x20a)])==null?void 0x0:_0x3b68d1['left'])==null?0x0:_0xd6885)+_0x14ebfd,'top':((_0x1dbaaa=(_0x479674=_0x1b0fb3['transform'])==null?void 0x0:_0x479674[_0x44726f(0x1f5)])==null?0x0:_0x1dbaaa)+_0x4f57f5},_0x122abb=(0x0,_0x40c92a[_0x44726f(0x222)])(_0x5a3e5a,_0x38be02),_0x322e92=(0x0,_0x40c92a[_0x44726f(0x233)])(_0x5a3e5a,_0x38be02),_0xe7b366={'unitId':_0xd1a297,'subUnitId':_0x3c502f,'drawingType':_0x47bed[_0x44726f(0x240)]['DRAWING_SHAPE'],'drawingId':_0x4b8dae,'transform':_0x5a3e5a,'sheetTransform':_0x122abb,'axisAlignSheetTransform':_0x322e92},{unitId:_0x303a6f,subUnitId:_0x240c14,undo:_0x2ba4f5,redo:_0x462226,objects:_0x480e5c}=this[_0x44726f(0x263)][_0x44726f(0x1e6)]([_0xe7b366]);_0x2cd826['push']({'id':_0x40c92a[_0x44726f(0x259)]['id'],'params':{'unitId':_0x303a6f,'subUnitId':_0x240c14,'op':_0x462226,'objects':_0x480e5c,'type':_0x40c92a[_0x44726f(0x201)][_0x44726f(0x25b)]}}),_0x2d9425[_0x44726f(0x208)]({'id':_0x40c92a[_0x44726f(0x259)]['id'],'params':{'unitId':_0x303a6f,'subUnitId':_0x240c14,'op':_0x2ba4f5,'objects':_0x480e5c,'type':_0x40c92a[_0x44726f(0x201)][_0x44726f(0x25b)]}});}}else{let _0x1341fa=_0x4a18dc[_0x44726f(0x1c5)](),_0x500165=_0x4a18dc[_0x44726f(0x20b)]();this[_0x44726f(0x1c0)](_0xd1a297,_0x3c502f,_0x4b8dae,_0x4a18dc,_0x1341fa,_0x500165,_0x2cd826,_0x2d9425,_0x21ecf6,_0x53c461);}}};_0xb097e5=_0x3bfd7b([_0x4cb749(0x0,_0x47bed[_0x33b6ea(0x1c7)]),_0x4cb749(0x1,(0x0,_0x47bed['Inject'])(_0xf07d9d[_0x33b6ea(0x218)])),_0x4cb749(0x2,(0x0,_0x47bed['Inject'])(_0xf07d9d[_0x33b6ea(0x1cb)])),_0x4cb749(0x3,(0x0,_0x47bed[_0x33b6ea(0x274)])(_0x35f7ee)),_0x4cb749(0x4,(0x0,_0x47bed['Inject'])(_0x308eb9[_0x33b6ea(0x255)]))],_0xb097e5);let _0x143992=class extends _0x47bed[_0x33b6ea(0x273)]{constructor(_0x21e902=_0x4ab597,_0x45ce46,_0x28563b,_0x57fb02){const _0x18ab90=_0x33b6ea;super(),this[_0x18ab90(0x26d)]=_0x21e902,this[_0x18ab90(0x1bb)]=_0x45ce46,this[_0x18ab90(0x275)]=_0x28563b,this[_0x18ab90(0x1c8)]=_0x57fb02;let {..._0x24a609}=(0x0,_0x47bed[_0x18ab90(0x22c)])({},_0x4ab597,this['_config']);this[_0x18ab90(0x1c8)][_0x18ab90(0x1d3)](_0x18ab90(0x1fa),_0x24a609);}['onStarting'](){const _0x3a484c=_0x33b6ea;let _0x13b73f=this[_0x3a484c(0x1bb)];[[_0x4230e8],[_0x35f7ee],[_0xb097e5]][_0x3a484c(0x1dc)](_0x4ffd6e=>_0x13b73f[_0x3a484c(0x1e5)](_0x4ffd6e)),(0x0,_0x47bed[_0x3a484c(0x206)])(_0x13b73f,[[_0x35f7ee],[_0xb097e5]]);}};_0x3571b3(_0x143992,_0x33b6ea(0x254),_0x47bed[_0x33b6ea(0x219)][_0x33b6ea(0x270)]),_0x3571b3(_0x143992,'pluginName',_0x33b6ea(0x251)),_0x3571b3(_0x143992,_0x33b6ea(0x281),_0x155ccd),_0x3571b3(_0x143992,_0x33b6ea(0x22e),_0x2726b4),_0x143992=_0x3bfd7b([(0x0,_0x47bed[_0x33b6ea(0x1eb)])(_0x18f76b['UniverLicensePlugin']),_0x4cb749(0x1,(0x0,_0x47bed[_0x33b6ea(0x274)])(_0x47bed['Injector'])),_0x4cb749(0x2,_0x47bed[_0x33b6ea(0x1c7)]),_0x4cb749(0x3,_0x47bed[_0x33b6ea(0x21b)])],_0x143992),_0x1e21c0[_0x33b6ea(0x1c4)]=0xc8,_0x1e21c0['DEFAULT_SHAPE_WIDTH']=0xc8,_0x1e21c0['InsertShapeCommand']=_0x57b466,_0x1e21c0['InsertSheetsShapeMutation']=_0xaeceb3,_0x1e21c0[_0x33b6ea(0x1f7)]=_0x16a9b5,_0x1e21c0['SetShapeDrawingDataCommand']=_0x33d7c4,_0x1e21c0[_0x33b6ea(0x1be)]=_0x10b223,_0x1e21c0[_0x33b6ea(0x23d)]=_0x16e55d,Object[_0x33b6ea(0x1fe)](_0x1e21c0,_0x33b6ea(0x1e2),{'enumerable':!0x0,'get':function(){return _0x35f7ee;}}),_0x1e21c0[_0x33b6ea(0x25a)]=_0x75320d,Object['defineProperty'](_0x1e21c0,_0x33b6ea(0x216),{'enumerable':!0x0,'get':function(){return _0x143992;}}),_0x1e21c0[_0x33b6ea(0x288)]=_0x3373e2,_0x1e21c0['UpdateLineShapeResizeCommand']=_0x13c806,_0x1e21c0['UpdateSheetsShapeDataMutation']=_0x3e1632,_0x1e21c0[_0x33b6ea(0x248)]=_0x39b70b,_0x1e21c0['UpdateSheetsShapeTypeMutation']=_0x548afe;}));function _0x57a9(_0x5ad90a,_0x3ab631){_0x5ad90a=_0x5ad90a-0x1b5;const _0x20a332=_0x20a3();let _0x57a92d=_0x20a332[_0x5ad90a];return _0x57a92d;}function _0x20a3(){const _0x3306eb=['@univerjs-pro/sheets-shape','syncExecuteCommand','Disposable','borderEnabled','ShapeModel','getAdjustNames','SetSheetsShapeTextVerticalToggleCommand','IResourceManagerService','DRAWING_SHAPE','DrawingTypeEnum','getShapeData','isHorizontal','@univerjs/sheets-drawing','decorate','12198lpLIol','data','removeLinePoints','UpdateSheetsShapeTypeCommand','isFrom','cos','IUndoRedoService','lineType','getShapeDataById','params','_resourcesManagerService','sheet.command.set-shape-rotate','SHEET_SHAPE_PLUGIN','getDrawingData','@univerjs-pro/license','type','IDrawingManagerService','computeConnectorRouteLayout','cxnIndex','248355sxnQxG','SetDrawingApplyMutation','ToggleSheetsShapeFlipCommand','UPDATE','hasShape','preUndos','7814735XCfMXV','sequenceExecute','4cceSPy','angle','COMMAND','_drawingManagerService','get','worldRect','startY','exports','CommandType','routeConnectorLineShape','@univerjs/drawing','insertShape','fill','_config','call','getBasicShapeRotateBound','UNIVER_SHEET','isConnectorShape','getDrawingByParam','Plugin','Inject','_commandService','result','parse','redos','9937917SJkEBL','_ensureShapeModelManager','_addLineFollowShapeUpdates','left','5568448nSCFqt','Module','resizeEnabled','rotateEnabled','packageName','MUTATION','_sheetInterceptorService','getAdjustValueByName','getSheetCommandTarget','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','UniverCore','UpdateConnectorRelationCommand','setShapeType','shapeData','InsertSheetDrawingCommand','lineShapeId','removeShape','undos','_injector','ang','keys','SetSheetsShapeRotateCommand','_groupIds','_addLineRerouteUpdates','fromJSON','registerCommand','788IkaLFF','DEFAULT_SHAPE_HEIGHT','getStartConnectInfo','1603IbQKnU','ICommandService','_configService','_initCommandInterceptor','symbol','SheetSkeletonService','from','string','object','interceptCommand','dispose','entries','getBasicShapeRelation','setConfig','getShapeTextData','isLineShape','_serializeShapeForUnit','addShape','SetSheetDrawingCommand','getShapeTypeById','_sheetsShapeService','ISheetDrawingService','forEach','setShapeData','getConnectionSiteList','sheet.command.set-shape-drawing-data','width','getShapeRelation','SheetsShapeService','preRedos','onCommandExecute','add','getBatchUpdateOp','delete','getBasicShapeType','UniverProSheetsShape','flipY','DependentOn','_deserializeShapeForUnit','IUniverInstanceService','ensureSkeleton','UniverSheets','getCellIndexAndOffsetByPosition','sheet.mutation.update-shape-data','drawingType','@univerjs/sheets','getShapeModel','top','find','RemoveSheetsShapeMutation','getLineShapeRelation','pushUndoRedo','sheets-shape.config','disposeWithMe','toJSON','filter','defineProperty','registerPluginResource','length','DrawingApplyType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','clear','getShapeType','touchDependencies','_disposed','push','sheet.mutation.update-shape-type','transform','getEndConnectInfo','12rICWdZ','set','getSkeleton','stringify','0.25.0','ClearSheetDrawingTransformerOperation','114602zuktzO','adjustValues','_sheetSkeletonService','UniverProEngineShape','UniverSheetsShapePlugin','_shapeModelManagerMap','SheetInterceptorService','UniverInstanceType','@univerjs-pro/engine-shape','IConfigService','_initSnapshot','_shapes','function','height','11148vDVnUm','50oKmvYj','transformToDrawingPosition','relation','_getConnectPointInfo','range','iterator','sheet.mutation.insert-shape','position','sheet.mutation.remove-shape','updateContext','startX','merge','prototype','version','_linesIds','getCellWithCoordByIndex','shapeId','UniverProLicense','transformToAxisAlignPosition','flipX','_initCommands','INSERT'];_0x20a3=function(){return _0x3306eb;};return _0x20a3();}
1
+ function _0xcdb2(_0x152cfe,_0xa6438){_0x152cfe=_0x152cfe-0xe2;const _0x30ba3d=_0x30ba();let _0xcdb256=_0x30ba3d[_0x152cfe];return _0xcdb256;}function _0x30ba(){const _0x38c3c7=['sheet.command.set-shape-text-vertical-toggle','getAdjustValueByName','assign','defineProperty','isConnectorShape','delete','UniverInstanceType','SHEET_SHAPE_PLUGIN','getAdjustNames','getEndConnectInfo','stringify','@univerjs/core','fromJSON','getShapeTypeById','SheetInterceptorService','drawingType','width','getBasicShapeRelation','getBatchUpdateOp','_addLineFollowShapeUpdates','_initCommandInterceptor','syncExecuteCommand','4KSqPmb','SheetsShapeService','MUTATION','resizeEnabled','parse','undos','IResourceManagerService','InsertShapeCommand','UniverSheets','_initCommands','sequenceExecute','removeShape','UniverSheetsShapePlugin','_injector','interceptCommand','params','_shapeModelManagerMap','transformToDrawingPosition','function','getStartConnectInfo','UNIVER_SHEET','1980981lLdugo','string','UPDATE','UniverSheetsDrawing','isHorizontal','34224wJadwW','decorate','1355949EPnSfa','registerPluginResource','symbol','_initSnapshot','isLineShape','relation','sheet.mutation.update-shape-data','result','_getConnectPointInfo','SetShapeDrawingDataCommand','sheet.command.update-shape-type','IConfigService','left','RemoveSheetDrawingCommand','DrawingTypeEnum','addShape','cos','disposeWithMe','toJSON','registerCommand','startX','getCellWithCoordByIndex','getConnectionSiteList','COMMAND','Disposable','@univerjs-pro/engine-shape','ISheetDrawingService','toStringTag','angle','_sheetSkeletonService','sheet.mutation.remove-shape','prototype','createUniqueShapeName','getName','56jZSVSK','getShapeType','shapeId','getSkeleton','cxnIndex','toPrimitive','getLineShapeRelation','7921830xDCEDB','SetSheetDrawingCommand','constructor','UniverDrawing','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DRAWING_SHAPE','keys','default','ShapeModel','has','hasShape','data','transformToAxisAlignPosition','set','SheetSkeletonService','_linesIds','startY','version','getId','getDrawingData','getDrawingByParam','_sheetsShapeService','onCommandExecute','CommandType','preUndos','IUniverInstanceService','Injector','getSheetCommandTarget','_groupIds','adjustValues','redos','getShapeDisplayNames','map','_serializeShapeForUnit','DrawingApplyType','filter','_addLineRerouteUpdates','computeConnectorRouteLayout','routeConnectorLineShape','Plugin','_commandService','434950jVoDfR','@univerjs/drawing','values','worldRect','SetDrawingApplyMutation','pluginName','SetSheetsShapeRotateCommand','UpdateConnectorRelationCommand','sheet.mutation.update-shape-type','rotateEnabled','flipX','transform','@univerjs-pro/license','getCellIndexAndOffsetByPosition','REMOVE','rotation','dispose','lineShapeId','UniverLicensePlugin','add','UniverProLicense','InsertSheetsShapeMutation','RemoveSheetsShapeMutation','getShapeTextData','sheets-shape.config','_ensureShapeModelManager','getOwnPropertyDescriptor','DEFAULT_SHAPE_WIDTH','setShapeType','find','length','call','removeLinePoints','1.0.0-alpha.0','_shapes','flipY','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','UpdateSheetsShapeTypeMutation','IUndoRedoService','sheet.mutation.insert-shape','_configService','getShapeData','132PchpNf','top','getBasicShapeRotateBound','sheet.command.toggle-shape-flip','preRedos','forEach','sheet.command.update-line-shape-resize','DEFAULT_SHAPE_HEIGHT','@univerjs/sheets','Inject','ensureSkeleton','Module','range','UniverProEngineShape','object','get','INSERT','ang','from','2922806sIaCfh','lineType','getBatchAddOp','IDrawingManagerService','fill','borderEnabled','ICommandService','_deserializeShapeForUnit','iterator','index','ClearSheetDrawingTransformerOperation','exports','pushUndoRedo','598609wbubSG','_resourcesManagerService','isFrom','insertShape','_disposed','sheet.command.update-connector-relation','shapeName','clear','getShapeModel','updateContext','merge','shapeData','every','getShapeRelation','onStarting','_drawingManagerService','push','360kMcefI','height','sheet.command.insert-shape','setConfig'];_0x30ba=function(){return _0x38c3c7;};return _0x30ba();}(function(_0x306f91,_0xaa71e1){const _0x2fb338=_0xcdb2,_0x2c5616=_0x306f91();while(!![]){try{const _0x4f4bf9=-parseInt(_0x2fb338(0x148))/0x1+parseInt(_0x2fb338(0x13b))/0x2+-parseInt(_0x2fb338(0x18f))/0x3*(-parseInt(_0x2fb338(0x173))/0x4)+-parseInt(_0x2fb338(0x159))/0x5*(-parseInt(_0x2fb338(0x18d))/0x6)+parseInt(_0x2fb338(0x1b8))/0x7+-parseInt(_0x2fb338(0x1b1))/0x8*(parseInt(_0x2fb338(0x188))/0x9)+parseInt(_0x2fb338(0xfe))/0xa*(-parseInt(_0x2fb338(0x128))/0xb);if(_0x4f4bf9===_0xaa71e1)break;else _0x2c5616['push'](_0x2c5616['shift']());}catch(_0x291bd7){_0x2c5616['push'](_0x2c5616['shift']());}}}(_0x30ba,0xc1f54),function(_0x242022,_0x25e2b1){const _0x573447=_0xcdb2;typeof exports==_0x573447(0x136)&&typeof module<'u'?_0x25e2b1(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x573447(0x185)&&define['amd']?define([_0x573447(0x146),_0x573447(0x1a8),_0x573447(0x168),_0x573447(0x130),'@univerjs/sheets-drawing',_0x573447(0x10a),_0x573447(0xff)],_0x25e2b1):(_0x242022=typeof globalThis<'u'?globalThis:_0x242022||self,_0x25e2b1(_0x242022['UniverProSheetsShape']={},_0x242022[_0x573447(0x135)],_0x242022['UniverCore'],_0x242022[_0x573447(0x17b)],_0x242022[_0x573447(0x18b)],_0x242022[_0x573447(0x112)],_0x242022[_0x573447(0x1bb)]));}(this,function(_0x5cefec,_0x75463,_0x415cfb,_0x3cf8ef,_0x1768c8,_0x577a99,_0x4f2e45){const _0x290195=_0xcdb2;Object[_0x290195(0x160)](_0x5cefec,Symbol[_0x290195(0x1aa)],{'value':_0x290195(0x133)});function _0x5f3c7a(_0x5571cf){'@babel/helpers - typeof';const _0x33a6b6=_0x290195;return _0x5f3c7a=typeof Symbol==_0x33a6b6(0x185)&&typeof Symbol[_0x33a6b6(0x143)]==_0x33a6b6(0x191)?function(_0x489f2b){return typeof _0x489f2b;}:function(_0x12bacb){const _0x15fdab=_0x33a6b6;return _0x12bacb&&typeof Symbol==_0x15fdab(0x185)&&_0x12bacb[_0x15fdab(0x1ba)]===Symbol&&_0x12bacb!==Symbol[_0x15fdab(0x1ae)]?_0x15fdab(0x191):typeof _0x12bacb;},_0x5f3c7a(_0x5571cf);}function _0x5d0390(_0x1e3934,_0xf0f5d9){const _0xfd19dd=_0x290195;if(_0x5f3c7a(_0x1e3934)!=_0xfd19dd(0x136)||!_0x1e3934)return _0x1e3934;var _0x5c22fd=_0x1e3934[Symbol[_0xfd19dd(0x1b6)]];if(_0x5c22fd!==void 0x0){var _0x44a528=_0x5c22fd[_0xfd19dd(0x11d)](_0x1e3934,_0xf0f5d9||_0xfd19dd(0x1c0));if(_0x5f3c7a(_0x44a528)!=_0xfd19dd(0x136))return _0x44a528;throw TypeError(_0xfd19dd(0x1bd));}return(_0xf0f5d9===_0xfd19dd(0x189)?String:Number)(_0x1e3934);}function _0x1f5f81(_0x5d3450){const _0x58de7e=_0x290195;var _0x527e38=_0x5d0390(_0x5d3450,_0x58de7e(0x189));return _0x5f3c7a(_0x527e38)==_0x58de7e(0x191)?_0x527e38:_0x527e38+'';}function _0x2249a9(_0x3e7652,_0xde5c5b,_0x1acae5){const _0xa7ced4=_0x290195;return(_0xde5c5b=_0x1f5f81(_0xde5c5b))in _0x3e7652?Object[_0xa7ced4(0x160)](_0x3e7652,_0xde5c5b,{'value':_0x1acae5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e7652[_0xde5c5b]=_0x1acae5,_0x3e7652;}var _0x42960f=class extends _0x415cfb['Disposable']{constructor(){const _0x5ce589=_0x290195;super(),_0x2249a9(this,_0x5ce589(0x120),new Map()),_0x2249a9(this,'_linesIds',new Set()),_0x2249a9(this,_0x5ce589(0xf1),new Set());}[_0x290195(0x19e)](_0x5dd941,_0x18c343,_0x29ff5d,_0x3cd276){const _0x5b03a3=_0x290195;let _0x4e101e=new _0x75463[(_0x5b03a3(0x1c1))](_0x5dd941,_0x18c343,_0x29ff5d,_0x3cd276);return this[_0x5b03a3(0x120)][_0x5b03a3(0xe2)](_0x18c343,_0x4e101e),(0x0,_0x75463[_0x5b03a3(0x161)])(_0x5dd941)&&this[_0x5b03a3(0xe4)]['add'](_0x18c343),_0x4e101e;}[_0x290195(0x16e)](_0x35415f){const _0x215868=_0x290195;let _0x5c5232=[];for(let _0x31278e of this[_0x215868(0xe4)]){let _0x1e812d=this[_0x215868(0x120)][_0x215868(0x137)](_0x31278e);if(_0x1e812d){let _0x1e05e6=_0x1e812d[_0x215868(0x155)]();if(_0x1e05e6){var _0x3e7750,_0x577843;((_0x3e7750=_0x1e05e6['from'])==null?void 0x0:_0x3e7750['shapeId'])===_0x35415f&&_0x5c5232[_0x215868(0x158)]({..._0x1e05e6['from'],'lineShapeId':_0x31278e,'isFrom':!0x0}),((_0x577843=_0x1e05e6['to'])==null?void 0x0:_0x577843['shapeId'])===_0x35415f&&_0x5c5232['push']({..._0x1e05e6['to'],'lineShapeId':_0x31278e,'isFrom':!0x1});}}}return _0x5c5232;}[_0x290195(0x1b7)](_0x246b1a){const _0x1cb6b9=_0x290195;let _0x57ee01=this[_0x1cb6b9(0x120)]['get'](_0x246b1a);if(_0x57ee01)return _0x57ee01[_0x1cb6b9(0x155)]();}[_0x290195(0x1b2)](_0x27cb08){const _0x1dfb1a=_0x290195;let _0x22487e=this[_0x1dfb1a(0x120)]['get'](_0x27cb08);if(_0x22487e)return _0x22487e[_0x1dfb1a(0x1b2)]();}['hasShape'](_0x1408fe){const _0x34a732=_0x290195;return this[_0x34a732(0x120)][_0x34a732(0x1c2)](_0x1408fe);}[_0x290195(0xf4)](){const _0x22b404=_0x290195;return Array[_0x22b404(0x13a)](this['_shapes'][_0x22b404(0x100)]())[_0x22b404(0xf5)](_0x406c12=>_0x406c12[_0x22b404(0x1b0)]()||_0x406c12[_0x22b404(0xe7)]());}[_0x290195(0x17e)](_0x48574b){const _0x963878=_0x290195;let _0x45855e=this['_shapes'][_0x963878(0x137)](_0x48574b);_0x45855e&&((0x0,_0x75463[_0x963878(0x161)])(_0x45855e[_0x963878(0x1b2)]())&&this[_0x963878(0xe4)][_0x963878(0x162)](_0x48574b),this[_0x963878(0x120)][_0x963878(0x162)](_0x48574b));}[_0x290195(0x1a1)](){const _0xe8719b=_0x290195;let _0x12fd85=[];return this['_shapes'][_0xe8719b(0x12d)](_0x4433d5=>{const _0x3a43a6=_0xe8719b;_0x12fd85[_0x3a43a6(0x158)](_0x4433d5['toJSON']());}),_0x12fd85;}[_0x290195(0x169)](_0x14bb55){const _0xe86805=_0x290195;for(let _0x317168 of _0x14bb55){let {id:_0x45b61d,shapeType:_0x1b4475,name:_0x4deec4}=_0x317168,_0x54128d=this[_0xe86805(0x19e)](_0x1b4475,_0x45b61d,_0x317168[_0xe86805(0x153)],_0x4deec4);_0x54128d&&_0x54128d[_0xe86805(0x193)]()&&this[_0xe86805(0xe4)][_0xe86805(0x111)](_0x45b61d);}}['dispose'](){const _0x3b4125=_0x290195;this[_0x3b4125(0x14c)]||(this[_0x3b4125(0x120)][_0x3b4125(0x12d)](_0x3dcea6=>{const _0x42b646=_0x3b4125;_0x3dcea6[_0x42b646(0x10e)]();}),this[_0x3b4125(0x120)][_0x3b4125(0x14f)](),this[_0x3b4125(0xe4)][_0x3b4125(0x14f)](),this[_0x3b4125(0xf1)][_0x3b4125(0x14f)](),super[_0x3b4125(0x10e)]());}};function _0x443e02(_0xd84a2,_0xe55cdc){return function(_0x600fdf,_0x523aa0){_0xe55cdc(_0x600fdf,_0x523aa0,_0xd84a2);};}function _0x37d62f(_0x282386,_0x287066,_0x3ca1d4,_0x444177){const _0x580e2c=_0x290195;var _0x4a879b=arguments[_0x580e2c(0x11c)],_0x118b6e=_0x4a879b<0x3?_0x287066:_0x444177===null?_0x444177=Object[_0x580e2c(0x118)](_0x287066,_0x3ca1d4):_0x444177,_0x555c19;if(typeof Reflect==_0x580e2c(0x136)&&typeof Reflect['decorate']==_0x580e2c(0x185))_0x118b6e=Reflect[_0x580e2c(0x18e)](_0x282386,_0x287066,_0x3ca1d4,_0x444177);else{for(var _0x24d524=_0x282386[_0x580e2c(0x11c)]-0x1;_0x24d524>=0x0;_0x24d524--)(_0x555c19=_0x282386[_0x24d524])&&(_0x118b6e=(_0x4a879b<0x3?_0x555c19(_0x118b6e):_0x4a879b>0x3?_0x555c19(_0x287066,_0x3ca1d4,_0x118b6e):_0x555c19(_0x287066,_0x3ca1d4))||_0x118b6e);}return _0x4a879b>0x3&&_0x118b6e&&Object[_0x580e2c(0x160)](_0x287066,_0x3ca1d4,_0x118b6e),_0x118b6e;}let _0x1217e1=class extends _0x415cfb[_0x290195(0x1a7)]{constructor(_0x179cc0){const _0x46207c=_0x290195;super(),this[_0x46207c(0x149)]=_0x179cc0,_0x2249a9(this,_0x46207c(0x183),new Map()),this[_0x46207c(0x192)]();}['_ensureShapeModelManager'](_0x2ef625,_0x336c65){const _0x1e3e29=_0x290195;let _0x3c3444=this['_shapeModelManagerMap'][_0x1e3e29(0x137)](_0x2ef625);_0x3c3444||(_0x3c3444=new Map(),this[_0x1e3e29(0x183)][_0x1e3e29(0xe2)](_0x2ef625,_0x3c3444));let _0x5133d4=_0x3c3444['get'](_0x336c65);return _0x5133d4||(_0x5133d4=new _0x42960f(),_0x3c3444[_0x1e3e29(0xe2)](_0x336c65,_0x5133d4)),_0x5133d4;}['insertShape'](_0x2862ae,_0x13393c,_0x193e2b,_0x12045e,_0x76bf12,_0x35ba1c){const _0x3818bc=_0x290195;this[_0x3818bc(0x117)](_0x2862ae,_0x13393c)[_0x3818bc(0x19e)](_0x193e2b,_0x12045e,_0x76bf12,_0x35ba1c);}[_0x290195(0x17e)](_0x175520,_0x4aee5c,_0x2ea87c){const _0x15d182=_0x290195;this[_0x15d182(0x117)](_0x175520,_0x4aee5c)[_0x15d182(0x17e)](_0x2ea87c);}['getBasicShapeType'](_0x359483,_0x562eed,_0x2b10d){const _0x345110=_0x290195;return this[_0x345110(0x117)](_0x359483,_0x562eed)[_0x345110(0x1b2)](_0x2b10d);}['getShapeType'](_0x1c9307,_0xdbab03,_0x1a6c6f){const _0xd638b5=_0x290195;return this[_0xd638b5(0x117)](_0x1c9307,_0xdbab03)[_0xd638b5(0x1b2)](_0x1a6c6f);}[_0x290195(0x1c3)](_0x555142,_0x358685,_0x535e25){const _0x2e566b=_0x290195;return this[_0x2e566b(0x117)](_0x555142,_0x358685)[_0x2e566b(0x1c3)](_0x535e25);}[_0x290195(0x16a)](_0x5591fe,_0x3dbd1e,_0x29664c){const _0x1044bb=_0x290195;return this[_0x1044bb(0x117)](_0x5591fe,_0x3dbd1e)[_0x1044bb(0x1b2)](_0x29664c);}['getShapeDataById'](_0x3093ef,_0x58e97d,_0x496ec5){const _0x3e4efc=_0x290195;let _0x4dd526=this['_ensureShapeModelManager'](_0x3093ef,_0x58e97d);if(!_0x4dd526[_0x3e4efc(0x1b2)](_0x496ec5))return;let _0x549199=_0x4dd526[_0x3e4efc(0x120)][_0x3e4efc(0x137)](_0x496ec5);if(_0x549199)return _0x549199[_0x3e4efc(0x127)]();}['getShapeDisplayNames'](_0x2a4ff6,_0x3e9808){const _0x5164f1=_0x290195;return this[_0x5164f1(0x117)](_0x2a4ff6,_0x3e9808)[_0x5164f1(0xf4)]();}[_0x290195(0x150)](_0xdbe50d,_0x152be1,_0x3c36a6){const _0x2287c6=_0x290195;return this[_0x2287c6(0x117)](_0xdbe50d,_0x152be1)[_0x2287c6(0x120)][_0x2287c6(0x137)](_0x3c36a6);}[_0x290195(0x16e)](_0x267c34,_0x57dc4a,_0x56706c){return this['_ensureShapeModelManager'](_0x267c34,_0x57dc4a)['getBasicShapeRelation'](_0x56706c);}[_0x290195(0x1b7)](_0x2bf299,_0x3838c3,_0x254c03){const _0x31f2da=_0x290195;let _0x56d54d=this[_0x31f2da(0x117)](_0x2bf299,_0x3838c3)[_0x31f2da(0x120)][_0x31f2da(0x137)](_0x254c03);if(_0x56d54d)return _0x56d54d['getShapeRelation']();}[_0x290195(0x11a)](){}[_0x290195(0xf6)](_0x34a52f){const _0x314f3b=_0x290195;let _0x40a5ca={},_0x72d6fd=this[_0x314f3b(0x183)][_0x314f3b(0x137)](_0x34a52f);return _0x72d6fd&&_0x72d6fd[_0x314f3b(0x12d)]((_0x2a1668,_0x1d32cf)=>{const _0x297a0b=_0x314f3b;let _0x85df0a=_0x2a1668[_0x297a0b(0x1a1)]();_0x85df0a[_0x297a0b(0x11c)]>0x0&&(_0x40a5ca[_0x1d32cf]=_0x85df0a);}),JSON[_0x314f3b(0x167)](_0x40a5ca);}[_0x290195(0x142)](_0x13a27f,_0x4ac9d5){Object['keys'](_0x4ac9d5)['forEach'](_0x46a993=>{const _0x40b0eb=_0xcdb2;this[_0x40b0eb(0x117)](_0x13a27f,_0x46a993)[_0x40b0eb(0x169)](_0x4ac9d5[_0x46a993]);});}[_0x290195(0x1a1)](){const _0x3be729=_0x290195;let _0x528edd={};return this[_0x3be729(0x183)][_0x3be729(0x12d)]((_0x2b724f,_0x5be039)=>{const _0xa0619a=_0x3be729;_0x528edd[_0x5be039]={},_0x2b724f[_0xa0619a(0x12d)]((_0x3f1ffa,_0xffe59a)=>{const _0x2fa5b6=_0xa0619a;_0x528edd[_0x5be039][_0xffe59a]=_0x3f1ffa[_0x2fa5b6(0x1a1)]();});}),_0x528edd;}[_0x290195(0x169)](_0x50a83b){const _0x8c59d=_0x290195;Object[_0x8c59d(0x1bf)](_0x50a83b)[_0x8c59d(0x12d)](_0x1abd18=>{const _0x571ec0=_0x8c59d;let _0x4cddc9=_0x50a83b[_0x1abd18];Object[_0x571ec0(0x1bf)](_0x4cddc9)[_0x571ec0(0x12d)](_0x180125=>{const _0x14b845=_0x571ec0;this[_0x14b845(0x117)](_0x1abd18,_0x180125)[_0x14b845(0x169)](_0x4cddc9[_0x180125]);});});}[_0x290195(0x192)](){const _0x46eafc=_0x290195;this[_0x46eafc(0x149)][_0x46eafc(0x190)]({'pluginName':_0x46eafc(0x164),'businesses':[_0x415cfb[_0x46eafc(0x163)][_0x46eafc(0x187)]],'toJson':_0x132b94=>this[_0x46eafc(0xf6)](_0x132b94),'parseJson':_0x3d4f37=>JSON[_0x46eafc(0x177)](_0x3d4f37),'onLoad':(_0x2ec8b3,_0x267b75)=>{const _0x1a0afa=_0x46eafc;this[_0x1a0afa(0x142)](_0x2ec8b3,_0x267b75);},'onUnLoad':_0x5c3d18=>{const _0x5346cd=_0x46eafc;let _0x26e9ef=this[_0x5346cd(0x183)][_0x5346cd(0x137)](_0x5c3d18);_0x26e9ef&&(_0x26e9ef[_0x5346cd(0x12d)](_0x3c3b40=>{const _0x32caa7=_0x5346cd;_0x3c3b40[_0x32caa7(0x10e)]();}),this[_0x5346cd(0x183)][_0x5346cd(0x162)](_0x5c3d18));}});}[_0x290195(0x10e)](){const _0x6f320f=_0x290195;this[_0x6f320f(0x183)][_0x6f320f(0x12d)](_0x1d9944=>{const _0x40f2f6=_0x6f320f;_0x1d9944[_0x40f2f6(0x12d)](_0x23d469=>{const _0x4ad0ff=_0x40f2f6;_0x23d469[_0x4ad0ff(0x10e)]();});});}};_0x1217e1=_0x37d62f([_0x443e02(0x0,_0x415cfb[_0x290195(0x179)])],_0x1217e1);let _0x41165d={'id':_0x290195(0x125),'type':_0x415cfb[_0x290195(0xec)][_0x290195(0x175)],'handler':(_0x2bce5a,_0x1887f9)=>{const _0x4a996d=_0x290195;let {unitId:_0x252db1,subUnitId:_0x446fad,shapeType:_0x29c961,shapeId:_0x4b9aff,shapeName:_0x40b5a2,shapeData:_0x452665}=_0x1887f9;return _0x2bce5a[_0x4a996d(0x137)](_0x1217e1)[_0x4a996d(0x14b)](_0x252db1,_0x446fad,_0x29c961,_0x4b9aff,_0x452665,_0x40b5a2),!0x0;}},_0x179ec7={'id':_0x290195(0x1ad),'type':_0x415cfb['CommandType'][_0x290195(0x175)],'handler':(_0x6ab288,_0x10f34d)=>{const _0x695323=_0x290195;let {unitId:_0x22c005,subUnitId:_0x27ae9e,shapeId:_0x2bf726}=_0x10f34d;return _0x6ab288[_0x695323(0x137)](_0x1217e1)['removeShape'](_0x22c005,_0x27ae9e,_0x2bf726),!0x0;}},_0x5543f9={'type':_0x415cfb[_0x290195(0xec)][_0x290195(0x1a6)],'id':_0x290195(0x15b),'handler':(_0x24006f,_0x5a4ff9)=>{const _0x373f9e=_0x290195;var _0xfbd257,_0x26862f,_0x531935;let _0x56d1fc=(0x0,_0x3cf8ef[_0x373f9e(0xf0)])(_0x24006f[_0x373f9e(0x137)](_0x415cfb[_0x373f9e(0xee)]),_0x5a4ff9);if(!_0x56d1fc)return!0x1;let _0x791cca=_0x24006f['get'](_0x3cf8ef[_0x373f9e(0xe3)]),{unitId:_0x1d19db,subUnitId:_0x2bc015}=_0x56d1fc,_0x34b618=_0x791cca[_0x373f9e(0x132)](_0x1d19db,_0x2bc015);if(!_0x34b618)return!0x1;let _0x13de31=_0x24006f[_0x373f9e(0x137)](_0x415cfb[_0x373f9e(0x141)]),_0x2c3da7=_0x24006f[_0x373f9e(0x137)](_0x415cfb[_0x373f9e(0x124)]),_0x42c6f3=_0x24006f[_0x373f9e(0x137)](_0x3cf8ef['SheetInterceptorService']),_0x197b56=_0x24006f[_0x373f9e(0x137)](_0x1768c8['ISheetDrawingService']),_0xa43e0e=_0x24006f[_0x373f9e(0x137)](_0x1217e1),{shapeType:_0x4db096,shapeData:_0x58adc3}=_0x5a4ff9,_0xb3f257=_0x5a4ff9[_0x373f9e(0x1b3)]||(0x0,_0x415cfb['generateRandomId'])(),_0x1fe3ca={'unitId':_0x1d19db,'subUnitId':_0x2bc015,'shapeId':_0xb3f257,'shapeName':(_0xfbd257=_0x5a4ff9[_0x373f9e(0x14e)])==null?(0x0,_0x75463[_0x373f9e(0x1af)])(_0x4db096,_0xa43e0e[_0x373f9e(0xf4)](_0x1d19db,_0x2bc015)):_0xfbd257,'shapeType':_0x4db096,'shapeData':_0x58adc3},_0x4b96e8=_0x5a4ff9['width']||0xc8,_0x47ee57=_0x5a4ff9[_0x373f9e(0x15a)]||0xc8,_0x51ed70=0x0,_0x5bfe95=0x0,_0x5b4cbd={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x151b2f={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x5a4ff9['position']){let {x:_0x411a94,y:_0x9a52a6}=_0x5a4ff9['position'];_0x51ed70=_0x411a94,_0x5bfe95=_0x9a52a6,_0x5b4cbd=_0x34b618[_0x373f9e(0x10b)](_0x411a94,_0x9a52a6),_0x151b2f=_0x34b618['getCellIndexAndOffsetByPosition'](_0x411a94+_0x4b96e8,_0x9a52a6+_0x47ee57);}else{if(_0x5a4ff9[_0x373f9e(0x134)]){let {startRow:_0x42dab9,startColumn:_0x2447e2}=_0x5a4ff9['range'];_0x5b4cbd={'row':_0x42dab9,'rowOffset':0xa,'column':_0x2447e2,'columnOffset':0xa};let _0x23b047=_0x34b618[_0x373f9e(0x1a4)](_0x42dab9,_0x2447e2);_0x51ed70=_0x23b047[_0x373f9e(0x1a3)]+0xa,_0x5bfe95=_0x23b047[_0x373f9e(0xe5)]+0xa,_0x151b2f=_0x34b618[_0x373f9e(0x10b)](_0x51ed70+_0x4b96e8,_0x5bfe95+_0x47ee57);}}let _0x238750={'from':_0x5b4cbd,'to':_0x151b2f},_0x393e2f={'unitId':_0x1d19db,'subUnitId':_0x2bc015,'drawingId':_0xb3f257,'drawingType':_0x415cfb[_0x373f9e(0x19d)]['DRAWING_SHAPE'],'sheetTransform':_0x238750,'transform':{'left':_0x51ed70,'top':_0x5bfe95,'width':_0x4b96e8,'height':_0x47ee57},'data':{'shapeType':_0x4db096,'shapeData':_0x58adc3},'axisAlignSheetTransform':_0x238750,'allowTransform':!0x0};(0x0,_0x75463[_0x373f9e(0x161)])(_0x4db096)&&(_0x393e2f['data'][_0x373f9e(0x13f)]=!0x1,_0x393e2f['data']['rotateEnabled']=!0x1,_0x393e2f['data'][_0x373f9e(0x176)]=!0x1,_0x393e2f[_0x373f9e(0x1c4)][_0x373f9e(0x140)]=!0x1,_0x393e2f[_0x373f9e(0x109)][_0x373f9e(0x107)]=!0x1,_0x393e2f[_0x373f9e(0x109)][_0x373f9e(0x176)]=!0x1,_0x393e2f[_0x373f9e(0x109)][_0x373f9e(0x140)]=!0x1);let {undo:_0x43bfe6,redo:_0x11f992,objects:_0x5b764e}=_0x197b56[_0x373f9e(0x13d)]([_0x393e2f]),_0x4b7be3=_0x42c6f3['onCommandExecute']({'id':_0x1768c8['InsertSheetDrawingCommand']['id'],'params':{'unitId':_0x1d19db,'drawings':[_0x393e2f]}}),_0x3f13ea=[...(_0x26862f=_0x4b7be3[_0x373f9e(0x12c)])==null?[]:_0x26862f,{'id':_0x1768c8[_0x373f9e(0x102)]['id'],'params':{'unitId':_0x1d19db,'subUnitId':_0x2bc015,'op':_0x11f992,'objects':_0x5b764e,'type':_0x1768c8[_0x373f9e(0xf7)][_0x373f9e(0x138)]}},{'id':_0x1768c8[_0x373f9e(0x145)]['id'],'params':[_0x1d19db]},..._0x4b7be3[_0x373f9e(0xf3)],{'id':_0x41165d['id'],'params':_0x1fe3ca}],_0x28931e=[{'id':_0x179ec7['id'],'params':{'unitId':_0x1d19db,'subUnitId':_0x2bc015,'shapeId':_0xb3f257}},...(_0x531935=_0x4b7be3[_0x373f9e(0xed)])==null?[]:_0x531935,{'id':_0x1768c8[_0x373f9e(0x102)]['id'],'params':{'unitId':_0x1d19db,'subUnitId':_0x2bc015,'op':_0x43bfe6,'objects':_0x5b764e,'type':_0x1768c8[_0x373f9e(0xf7)][_0x373f9e(0x10c)]}},{'id':_0x1768c8[_0x373f9e(0x145)]['id'],'params':[_0x1d19db]},..._0x4b7be3[_0x373f9e(0x178)]];return(0x0,_0x415cfb[_0x373f9e(0x17d)])(_0x3f13ea,_0x13de31)['result']?(_0x2c3da7[_0x373f9e(0x147)]({'unitID':_0x1d19db,'undoMutations':_0x28931e,'redoMutations':_0x3f13ea}),!0x0):!0x1;}},_0x573cdd={'id':_0x290195(0x195),'type':_0x415cfb[_0x290195(0xec)]['MUTATION'],'handler':(_0x1de4be,_0x501b0a)=>{const _0x2f971c=_0x290195;let {unitId:_0x2b7c53,subUnitId:_0x4a5762,shapeType:_0x55a12e,shapeId:_0x4082c5,shapeData:_0x29c4ef}=_0x501b0a,_0x13905c=_0x1de4be[_0x2f971c(0x137)](_0x1217e1)[_0x2f971c(0x150)](_0x2b7c53,_0x4a5762,_0x4082c5);return _0x13905c&&(_0x55a12e!==void 0x0&&_0x13905c[_0x2f971c(0x11a)](_0x55a12e),_0x29c4ef&&(_0x13905c==null||_0x13905c['setShapeData'](_0x29c4ef,!0x0))),!0x0;}},_0x2d00be={'type':_0x415cfb[_0x290195(0xec)][_0x290195(0x1a6)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x5a5fbf,_0x30e3bc)=>{const _0x4b4cda=_0x290195;var _0x2ed7cb,_0x36dcad;let _0x36f0e4=(0x0,_0x3cf8ef['getSheetCommandTarget'])(_0x5a5fbf['get'](_0x415cfb[_0x4b4cda(0xee)]),_0x30e3bc);if(!_0x36f0e4)return!0x1;let _0x1c7138=_0x5a5fbf['get'](_0x3cf8ef[_0x4b4cda(0xe3)]),{unitId:_0x852d60,subUnitId:_0xd50501}=_0x36f0e4,_0x2ba16e=_0x1c7138['ensureSkeleton'](_0x852d60,_0xd50501);if(!_0x2ba16e)return!0x1;let _0x5079a7=_0x5a5fbf[_0x4b4cda(0x137)](_0x1217e1),{shapeId:_0xb169f9,shapeType:_0x5e06cf,shapeData:_0x47d3e3,position:_0x5a3a7a,width:_0x5a145f,height:_0x4e93b1}=_0x30e3bc,_0xed1f17=_0x5079a7[_0x4b4cda(0x150)](_0x852d60,_0xd50501,_0xb169f9);if(!_0xed1f17)return!0x1;let _0x5839e7=_0x5a5fbf[_0x4b4cda(0x137)](_0x415cfb[_0x4b4cda(0x141)]),_0xfb159a=_0x5a5fbf[_0x4b4cda(0x137)](_0x415cfb[_0x4b4cda(0x124)]),_0x2c8405=_0x5a5fbf[_0x4b4cda(0x137)](_0x3cf8ef[_0x4b4cda(0x16b)]),_0x24d88b=_0x5a5fbf[_0x4b4cda(0x137)](_0x1768c8[_0x4b4cda(0x1a9)]),_0x4bd95d={'unitId':_0x852d60,'subUnitId':_0xd50501,'shapeId':_0xb169f9,'shapeType':_0x5e06cf,'shapeData':_0x47d3e3},_0x12bfd5=_0xed1f17[_0x4b4cda(0x1b2)](),_0x2aae9d=_0xed1f17[_0x4b4cda(0x127)](),{x:_0x3c5b3f,y:_0x2c2ace}=_0x5a3a7a,_0x4c1d2b={'from':_0x2ba16e[_0x4b4cda(0x10b)](_0x3c5b3f,_0x2c2ace),'to':_0x2ba16e[_0x4b4cda(0x10b)](_0x3c5b3f+_0x5a145f,_0x2c2ace+_0x4e93b1)},_0x9e01b1={'unitId':_0x852d60,'subUnitId':_0xd50501,'drawingId':_0xb169f9,'drawingType':_0x415cfb[_0x4b4cda(0x19d)]['DRAWING_SHAPE'],'sheetTransform':_0x4c1d2b,'transform':{'left':_0x3c5b3f,'top':_0x2c2ace,'width':_0x5a145f,'height':_0x4e93b1},'data':{'shapeType':_0x5e06cf,'shapeData':_0x47d3e3},'axisAlignSheetTransform':_0x4c1d2b,'allowTransform':!0x0};(0x0,_0x75463[_0x4b4cda(0x161)])(_0x5e06cf)&&(_0x9e01b1[_0x4b4cda(0x1c4)][_0x4b4cda(0x13f)]=!0x1,_0x9e01b1[_0x4b4cda(0x1c4)][_0x4b4cda(0x107)]=!0x1,_0x9e01b1['data']['resizeEnabled']=!0x1,_0x9e01b1[_0x4b4cda(0x1c4)][_0x4b4cda(0x140)]=!0x1,_0x9e01b1[_0x4b4cda(0x109)]['rotateEnabled']=!0x1,_0x9e01b1[_0x4b4cda(0x109)][_0x4b4cda(0x176)]=!0x1,_0x9e01b1[_0x4b4cda(0x109)][_0x4b4cda(0x140)]=!0x1);let {undo:_0x1c306f,redo:_0x2186eb,objects:_0x1f30e3}=_0x24d88b[_0x4b4cda(0x16f)]([_0x9e01b1]),_0x150391=_0x2c8405['onCommandExecute']({'id':_0x1768c8[_0x4b4cda(0x1b9)]['id'],'params':{'unitId':_0x852d60,'drawings':[_0x9e01b1]}}),_0x3be0ee=[...(_0x2ed7cb=_0x150391[_0x4b4cda(0x12c)])==null?[]:_0x2ed7cb,{'id':_0x1768c8[_0x4b4cda(0x102)]['id'],'params':{'unitId':_0x852d60,'subUnitId':_0xd50501,'op':_0x2186eb,'objects':_0x1f30e3,'type':_0x1768c8[_0x4b4cda(0xf7)]['UPDATE']}},{'id':_0x1768c8[_0x4b4cda(0x145)]['id'],'params':[_0x852d60]},..._0x150391[_0x4b4cda(0xf3)],{'id':_0x573cdd['id'],'params':_0x4bd95d}],_0x50ef15=[...(_0x36dcad=_0x150391['preUndos'])==null?[]:_0x36dcad,{'id':_0x1768c8[_0x4b4cda(0x102)]['id'],'params':{'unitId':_0x852d60,'subUnitId':_0xd50501,'op':_0x1c306f,'objects':_0x1f30e3,'type':_0x1768c8[_0x4b4cda(0xf7)][_0x4b4cda(0x18a)]}},{'id':_0x1768c8[_0x4b4cda(0x145)]['id'],'params':[_0x852d60]},..._0x150391[_0x4b4cda(0x178)],{'id':_0x573cdd['id'],'params':{'unitId':_0x852d60,'subUnitId':_0xd50501,'shapeType':_0x12bfd5,'shapeId':_0xb169f9,'shapeData':_0x2aae9d}}];return(0x0,_0x415cfb[_0x4b4cda(0x17d)])(_0x3be0ee,_0x5839e7)[_0x4b4cda(0x196)]?(_0xfb159a['pushUndoRedo']({'unitID':_0x852d60,'undoMutations':_0x50ef15,'redoMutations':_0x3be0ee}),!0x0):!0x1;}},_0x2da9bb={'type':_0x415cfb[_0x290195(0xec)]['COMMAND'],'id':_0x290195(0x12b),'handler':(_0x2602fb,_0x36e391)=>{const _0x4a4371=_0x290195;var _0x52049a,_0xa9f067;let _0x2dbf72=(0x0,_0x3cf8ef[_0x4a4371(0xf0)])(_0x2602fb['get'](_0x415cfb[_0x4a4371(0xee)]),_0x36e391);if(!_0x2dbf72)return!0x1;let _0x16bb1e=_0x2602fb[_0x4a4371(0x137)](_0x3cf8ef[_0x4a4371(0xe3)]),{unitId:_0xc76608,subUnitId:_0x346a59}=_0x2dbf72,_0x129c27=_0x16bb1e[_0x4a4371(0x1b4)](_0xc76608,_0x346a59);if(!_0x129c27)return!0x1;let _0x19d92d=_0x2602fb[_0x4a4371(0x137)](_0x1768c8[_0x4a4371(0x1a9)]),{shapeId:_0x28de56,flipH:_0x4973bc,flipV:_0x1fabdd}=_0x36e391,_0x1e1ec8=_0x19d92d['getDrawingByParam']({'unitId':_0xc76608,'subUnitId':_0x346a59,'drawingId':_0x28de56});if(!_0x1e1ec8)return!0x1;let _0x21c18d=_0x2602fb['get'](_0x1217e1)[_0x4a4371(0x150)](_0xc76608,_0x346a59,_0x28de56);if(!_0x21c18d)return!0x1;let _0x11dbab=_0x2602fb['get'](_0x415cfb['ICommandService']),_0x5abd45=_0x2602fb['get'](_0x415cfb[_0x4a4371(0x124)]),_0x1e4057=_0x2602fb[_0x4a4371(0x137)](_0x3cf8ef[_0x4a4371(0x16b)]),_0x1b1f3d={..._0x1e1ec8[_0x4a4371(0x109)]};_0x4973bc!==void 0x0&&(_0x1b1f3d[_0x4a4371(0x108)]=!_0x1b1f3d[_0x4a4371(0x108)]),_0x1fabdd!==void 0x0&&(_0x1b1f3d['flipY']=!_0x1b1f3d[_0x4a4371(0x121)]);let _0x79bf5=(0x0,_0x1768c8[_0x4a4371(0x184)])(_0x1b1f3d,_0x129c27),_0x5b6841=(0x0,_0x1768c8[_0x4a4371(0x1c5)])(_0x1b1f3d,_0x129c27),_0x5155f8=_0x21c18d[_0x4a4371(0x1b2)](),_0x38de89=_0x21c18d[_0x4a4371(0x127)](),_0x1b2c05={'unitId':_0xc76608,'subUnitId':_0x346a59,'drawingId':_0x28de56,'drawingType':_0x415cfb[_0x4a4371(0x19d)][_0x4a4371(0x1be)],'sheetTransform':_0x79bf5,'transform':_0x1b1f3d,'data':{'shapeType':_0x5155f8,'shapeData':_0x38de89},'axisAlignSheetTransform':_0x5b6841,'allowTransform':!0x0},{undo:_0x452451,redo:_0x53433c,objects:_0x1c6135}=_0x19d92d[_0x4a4371(0x16f)]([_0x1b2c05]),_0x68756d=_0x1e4057[_0x4a4371(0xeb)]({'id':_0x1768c8[_0x4a4371(0x1b9)]['id'],'params':{'unitId':_0xc76608,'drawings':[_0x1b2c05]}}),_0x190aee=[...(_0x52049a=_0x68756d[_0x4a4371(0x12c)])==null?[]:_0x52049a,{'id':_0x1768c8[_0x4a4371(0x102)]['id'],'params':{'unitId':_0xc76608,'subUnitId':_0x346a59,'op':_0x53433c,'objects':_0x1c6135,'type':_0x1768c8[_0x4a4371(0xf7)][_0x4a4371(0x18a)]}},{'id':_0x1768c8[_0x4a4371(0x145)]['id'],'params':[_0xc76608]},..._0x68756d[_0x4a4371(0xf3)]],_0x1593d9=[...(_0xa9f067=_0x68756d[_0x4a4371(0xed)])==null?[]:_0xa9f067,{'id':_0x1768c8[_0x4a4371(0x102)]['id'],'params':{'unitId':_0xc76608,'subUnitId':_0x346a59,'op':_0x452451,'objects':_0x1c6135,'type':_0x1768c8[_0x4a4371(0xf7)]['UPDATE']}},{'id':_0x1768c8['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xc76608]},..._0x68756d[_0x4a4371(0x178)]];if((0x0,_0x75463[_0x4a4371(0x161)])(_0x5155f8)){let _0x46aec3=_0x21c18d[_0x4a4371(0x155)]();if(_0x46aec3){let _0x14f454={..._0x46aec3};_0x14f454[_0x4a4371(0x13a)]=void 0x0,_0x14f454['to']=void 0x0,_0x190aee[_0x4a4371(0x158)]({'id':_0x573cdd['id'],'params':{'unitId':_0xc76608,'subUnitId':_0x346a59,'shapeId':_0x28de56,'shapeType':_0x5155f8,'shapeData':{'relation':_0x14f454}}}),_0x1593d9[_0x4a4371(0x158)]({'id':_0x573cdd['id'],'params':{'unitId':_0xc76608,'subUnitId':_0x346a59,'shapeId':_0x28de56,'shapeType':_0x5155f8,'shapeData':{'relation':_0x46aec3}}});}}return(0x0,_0x415cfb[_0x4a4371(0x17d)])(_0x190aee,_0x11dbab)[_0x4a4371(0x196)]?(_0x5abd45[_0x4a4371(0x147)]({'unitID':_0xc76608,'undoMutations':_0x1593d9,'redoMutations':_0x190aee}),!0x0):!0x1;}},_0x2f4d9e={'type':_0x415cfb[_0x290195(0xec)]['COMMAND'],'id':'sheet.command.set-shape-rotate','handler':(_0x55becb,_0x23b856)=>{const _0x2b8104=_0x290195;var _0x241a7e,_0x45a3de;let _0x475c9e=(0x0,_0x3cf8ef['getSheetCommandTarget'])(_0x55becb['get'](_0x415cfb['IUniverInstanceService']),_0x23b856);if(!_0x475c9e)return!0x1;let _0x28ce9c=_0x55becb['get'](_0x3cf8ef[_0x2b8104(0xe3)]),{unitId:_0x156147,subUnitId:_0x4cc621}=_0x475c9e,_0x3a75d6=_0x28ce9c[_0x2b8104(0x1b4)](_0x156147,_0x4cc621);if(!_0x3a75d6)return!0x1;let _0x25bd88=_0x55becb[_0x2b8104(0x137)](_0x1768c8['ISheetDrawingService']),{shapeId:_0x42ac5f,rotate:_0x40e102}=_0x23b856,_0x300198=_0x25bd88['getDrawingByParam']({'unitId':_0x156147,'subUnitId':_0x4cc621,'drawingId':_0x42ac5f});if(!_0x300198)return!0x1;let _0xf74e16=_0x55becb[_0x2b8104(0x137)](_0x1217e1)['getShapeModel'](_0x156147,_0x4cc621,_0x42ac5f);if(!_0xf74e16)return!0x1;let _0x4cbdc8=_0x55becb['get'](_0x415cfb[_0x2b8104(0x141)]),_0x37f55a=_0x55becb[_0x2b8104(0x137)](_0x415cfb['IUndoRedoService']),_0x31edc8=_0x55becb[_0x2b8104(0x137)](_0x3cf8ef[_0x2b8104(0x16b)]),_0x291510={..._0x300198[_0x2b8104(0x109)]};_0x40e102!==void 0x0&&(_0x291510[_0x2b8104(0x1ab)]=(_0x291510['angle']||0x0)+_0x40e102);let _0x108727=(0x0,_0x1768c8['transformToDrawingPosition'])(_0x291510,_0x3a75d6),_0x450792=(0x0,_0x1768c8[_0x2b8104(0x1c5)])(_0x291510,_0x3a75d6),_0x1d091a=_0xf74e16[_0x2b8104(0x1b2)](),_0xf9b062=_0xf74e16[_0x2b8104(0x127)](),_0x4de97d={'unitId':_0x156147,'subUnitId':_0x4cc621,'drawingId':_0x42ac5f,'drawingType':_0x415cfb[_0x2b8104(0x19d)][_0x2b8104(0x1be)],'sheetTransform':_0x108727,'transform':_0x291510,'data':{'shapeType':_0x1d091a,'shapeData':_0xf9b062},'axisAlignSheetTransform':_0x450792,'allowTransform':!0x0},{undo:_0xae3ea4,redo:_0x4c5362,objects:_0xa44f56}=_0x25bd88[_0x2b8104(0x16f)]([_0x4de97d]),_0x43c6ca=_0x31edc8[_0x2b8104(0xeb)]({'id':_0x1768c8['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x156147,'drawings':[_0x4de97d]}}),_0x3368ee=[...(_0x241a7e=_0x43c6ca[_0x2b8104(0x12c)])==null?[]:_0x241a7e,{'id':_0x1768c8[_0x2b8104(0x102)]['id'],'params':{'unitId':_0x156147,'subUnitId':_0x4cc621,'op':_0x4c5362,'objects':_0xa44f56,'type':_0x1768c8[_0x2b8104(0xf7)][_0x2b8104(0x18a)]}},{'id':_0x1768c8[_0x2b8104(0x145)]['id'],'params':[_0x156147]},..._0x43c6ca['redos']],_0x581cc4=[...(_0x45a3de=_0x43c6ca[_0x2b8104(0xed)])==null?[]:_0x45a3de,{'id':_0x1768c8[_0x2b8104(0x102)]['id'],'params':{'unitId':_0x156147,'subUnitId':_0x4cc621,'op':_0xae3ea4,'objects':_0xa44f56,'type':_0x1768c8[_0x2b8104(0xf7)][_0x2b8104(0x18a)]}},{'id':_0x1768c8[_0x2b8104(0x145)]['id'],'params':[_0x156147]},..._0x43c6ca[_0x2b8104(0x178)]];return(0x0,_0x415cfb[_0x2b8104(0x17d)])(_0x3368ee,_0x4cbdc8)[_0x2b8104(0x196)]?(_0x37f55a[_0x2b8104(0x147)]({'unitID':_0x156147,'undoMutations':_0x581cc4,'redoMutations':_0x3368ee}),!0x0):!0x1;}},_0x457159={'type':_0x415cfb[_0x290195(0xec)]['COMMAND'],'id':_0x290195(0x15d),'handler':(_0x26090c,_0x1cdf57)=>{const _0x46ebe2=_0x290195;var _0x4d06df;let _0x27886a=(0x0,_0x3cf8ef[_0x46ebe2(0xf0)])(_0x26090c['get'](_0x415cfb[_0x46ebe2(0xee)]),_0x1cdf57);if(!_0x27886a)return!0x1;let {unitId:_0x515fea,subUnitId:_0x157788}=_0x27886a,{shapeId:_0x20b787}=_0x1cdf57,_0x4915de=_0x26090c[_0x46ebe2(0x137)](_0x1217e1)[_0x46ebe2(0x150)](_0x515fea,_0x157788,_0x20b787);if(!_0x4915de)return!0x1;let _0x386b25=_0x4915de[_0x46ebe2(0x115)](),_0x390654=(_0x4d06df=_0x386b25==null?void 0x0:_0x386b25[_0x46ebe2(0x18c)])==null?!0x0:_0x4d06df,_0x483bca=!_0x390654,_0x584615=_0x26090c[_0x46ebe2(0x137)](_0x415cfb[_0x46ebe2(0x141)]),_0x27fa1a=_0x26090c[_0x46ebe2(0x137)](_0x415cfb[_0x46ebe2(0x124)]),_0x123236={'unitId':_0x515fea,'subUnitId':_0x157788,'shapeId':_0x20b787,'shapeData':{'shapeText':{'isHorizontal':_0x483bca}}},_0x4e161a={'unitId':_0x515fea,'subUnitId':_0x157788,'shapeId':_0x20b787,'shapeData':{'shapeText':{'isHorizontal':_0x390654}}},_0x21574c=[{'id':_0x573cdd['id'],'params':_0x123236}],_0x4a5444=[{'id':_0x573cdd['id'],'params':_0x4e161a}];return(0x0,_0x415cfb[_0x46ebe2(0x17d)])(_0x21574c,_0x584615)[_0x46ebe2(0x196)]?(_0x27fa1a[_0x46ebe2(0x147)]({'unitID':_0x515fea,'undoMutations':_0x4a5444,'redoMutations':_0x21574c}),!0x0):!0x1;}},_0x861f74={'type':_0x415cfb[_0x290195(0xec)]['COMMAND'],'id':_0x290195(0x14d),'handler':(_0x1dbe64,_0x3b5ec9)=>{const _0x3bc726=_0x290195;var _0x171a2f,_0x30cde2,_0x5aeb0a,_0x1b8138;let _0x178342=(0x0,_0x3cf8ef[_0x3bc726(0xf0)])(_0x1dbe64[_0x3bc726(0x137)](_0x415cfb[_0x3bc726(0xee)]),_0x3b5ec9);if(!_0x178342)return!0x1;let _0x2d6652=_0x1dbe64['get'](_0x3cf8ef[_0x3bc726(0xe3)]),{unitId:_0x54b319,subUnitId:_0x2c7812}=_0x178342,_0x2c05b3=_0x2d6652['getSkeleton'](_0x54b319,_0x2c7812);if(!_0x2c05b3)return!0x1;let _0x3ef24b=_0x1dbe64[_0x3bc726(0x137)](_0x1768c8['ISheetDrawingService']),{connectorShapeId:_0x30b67a,width:_0x323081,height:_0x16e4c2,left:_0x349d76,top:_0x183325,flipX:_0x117605,flipY:_0xed3a89,rotation:_0x28bd28,oldAdjustValues:_0x43c5f3,newAdjustValues:_0x2c3aa8,oldLineType:_0xbcb1cd,newLineType:_0x2f8375,oldRelation:_0x6ab3a5,newRelation:_0x477b1e}=_0x3b5ec9,_0x599f42=_0x3ef24b[_0x3bc726(0xe9)]({'unitId':_0x54b319,'subUnitId':_0x2c7812,'drawingId':_0x30b67a});if(!_0x599f42)return!0x1;let _0x31e659=_0x1dbe64[_0x3bc726(0x137)](_0x1217e1)[_0x3bc726(0x150)](_0x54b319,_0x2c7812,_0x30b67a);if(!_0x31e659)return!0x1;let _0x196efe=_0x1dbe64['get'](_0x415cfb[_0x3bc726(0x141)]),_0xc4fb79=_0x1dbe64[_0x3bc726(0x137)](_0x415cfb[_0x3bc726(0x124)]),_0x303ff8=_0x1dbe64[_0x3bc726(0x137)](_0x3cf8ef[_0x3bc726(0x16b)]),_0x5785d9={..._0x599f42['transform'],'width':_0x323081,'height':_0x16e4c2,'left':_0x349d76,'top':_0x183325,'flipX':_0x117605,'flipY':_0xed3a89,'angle':(_0x171a2f=_0x28bd28==null?(_0x30cde2=_0x599f42[_0x3bc726(0x109)])==null?void 0x0:_0x30cde2[_0x3bc726(0x1ab)]:_0x28bd28)==null?0x0:_0x171a2f},_0xb13aa1=(0x0,_0x1768c8[_0x3bc726(0x184)])(_0x5785d9,_0x2c05b3),_0x33ad38=(0x0,_0x1768c8[_0x3bc726(0x1c5)])(_0x5785d9,_0x2c05b3),_0xf8959=_0x31e659[_0x3bc726(0x1b2)](),_0x4d5135=_0x31e659[_0x3bc726(0x127)](),_0x5155bf={'unitId':_0x54b319,'subUnitId':_0x2c7812,'drawingId':_0x30b67a,'drawingType':_0x415cfb['DrawingTypeEnum'][_0x3bc726(0x1be)],'sheetTransform':_0xb13aa1,'transform':_0x5785d9,'data':{'shapeType':_0x2f8375||_0xbcb1cd||_0xf8959,'shapeData':{..._0x4d5135,'adjustValues':_0x2c3aa8||_0x43c5f3||(_0x4d5135==null?void 0x0:_0x4d5135['adjustValues']),'relation':_0x477b1e||_0x6ab3a5||(_0x4d5135==null?void 0x0:_0x4d5135[_0x3bc726(0x194)])}},'axisAlignSheetTransform':_0x33ad38,'allowTransform':!0x0},{undo:_0x556c2b,redo:_0x40db62,objects:_0x1dcd48}=_0x3ef24b[_0x3bc726(0x16f)]([_0x5155bf]),_0x505edd=_0x303ff8['onCommandExecute']({'id':_0x1768c8[_0x3bc726(0x1b9)]['id'],'params':{'unitId':_0x54b319,'drawings':[_0x5155bf]}}),_0x159ca5=[...(_0x5aeb0a=_0x505edd[_0x3bc726(0x12c)])==null?[]:_0x5aeb0a,{'id':_0x1768c8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x54b319,'subUnitId':_0x2c7812,'op':_0x40db62,'objects':_0x1dcd48,'type':_0x1768c8[_0x3bc726(0xf7)][_0x3bc726(0x18a)]}},{'id':_0x1768c8[_0x3bc726(0x145)]['id'],'params':[_0x54b319]},..._0x505edd[_0x3bc726(0xf3)],{'id':_0x573cdd['id'],'params':{'unitId':_0x54b319,'subUnitId':_0x2c7812,'shapeId':_0x30b67a,'shapeType':_0x2f8375,'shapeData':{'adjustValues':_0x2c3aa8,'relation':_0x477b1e}}}],_0x24120c=[...(_0x1b8138=_0x505edd['preUndos'])==null?[]:_0x1b8138,{'id':_0x1768c8[_0x3bc726(0x102)]['id'],'params':{'unitId':_0x54b319,'subUnitId':_0x2c7812,'op':_0x556c2b,'objects':_0x1dcd48,'type':_0x1768c8[_0x3bc726(0xf7)][_0x3bc726(0x18a)]}},{'id':_0x1768c8[_0x3bc726(0x145)]['id'],'params':[_0x54b319]},..._0x505edd[_0x3bc726(0x178)],{'id':_0x573cdd['id'],'params':{'unitId':_0x54b319,'subUnitId':_0x2c7812,'shapeId':_0x30b67a,'shapeType':_0xf8959,'shapeData':{..._0x4d5135,'adjustValues':_0x43c5f3||(_0x4d5135==null?void 0x0:_0x4d5135[_0x3bc726(0xf2)]),'relation':_0x6ab3a5||(_0x4d5135==null?void 0x0:_0x4d5135['relation'])}}}];return(0x0,_0x415cfb['sequenceExecute'])(_0x159ca5,_0x196efe)[_0x3bc726(0x196)]?(_0xc4fb79['pushUndoRedo']({'unitID':_0x54b319,'undoMutations':_0x24120c,'redoMutations':_0x159ca5}),!0x0):!0x1;}},_0x2f0279={'type':_0x415cfb[_0x290195(0xec)][_0x290195(0x1a6)],'id':_0x290195(0x12e),'handler':(_0x58def4,_0x32b625)=>{const _0xbbb013=_0x290195;var _0x2b1aa1,_0x24bc44;let _0x29d432=(0x0,_0x3cf8ef['getSheetCommandTarget'])(_0x58def4[_0xbbb013(0x137)](_0x415cfb[_0xbbb013(0xee)]),_0x32b625);if(!_0x29d432)return!0x1;let _0x5d2c79=_0x58def4[_0xbbb013(0x137)](_0x3cf8ef[_0xbbb013(0xe3)]),{unitId:_0x537933,subUnitId:_0x21d482}=_0x29d432,_0x101879=_0x5d2c79[_0xbbb013(0x1b4)](_0x537933,_0x21d482);if(!_0x101879)return!0x1;let _0x2f81ee=_0x58def4[_0xbbb013(0x137)](_0x1768c8[_0xbbb013(0x1a9)]),{shapeId:_0x4d012f,width:_0x3acd19,height:_0x578586,left:_0x6e1261,top:_0x37b1f7,flipX:_0x2b3378,flipY:_0x2779f8,angle:_0x23a888,oldAdjustValues:_0x3e7e3f,newAdjustValues:_0x1c7768,oldLineType:_0x2a90c8,newLineType:_0x1ad25b}=_0x32b625,_0x52c6d4=_0x2f81ee[_0xbbb013(0xe9)]({'unitId':_0x537933,'subUnitId':_0x21d482,'drawingId':_0x4d012f});if(!_0x52c6d4)return!0x1;let _0x1b9039=_0x58def4[_0xbbb013(0x137)](_0x1217e1)['getShapeModel'](_0x537933,_0x21d482,_0x4d012f);if(!_0x1b9039)return!0x1;let _0x2b52b8=_0x58def4[_0xbbb013(0x137)](_0x415cfb[_0xbbb013(0x141)]),_0x4d0afc=_0x58def4['get'](_0x415cfb[_0xbbb013(0x124)]),_0x434ca8=_0x58def4[_0xbbb013(0x137)](_0x3cf8ef['SheetInterceptorService']),_0x18710c={..._0x52c6d4[_0xbbb013(0x109)],'width':_0x3acd19,'height':_0x578586,'left':_0x6e1261,'top':_0x37b1f7,'flipX':_0x2b3378,'flipY':_0x2779f8,'angle':_0x23a888},_0x3791c7=(0x0,_0x1768c8[_0xbbb013(0x184)])(_0x18710c,_0x101879),_0x21b619=(0x0,_0x1768c8[_0xbbb013(0x1c5)])(_0x18710c,_0x101879),_0x542c10=_0x1b9039[_0xbbb013(0x1b2)](),_0x1632b1=_0x1b9039[_0xbbb013(0x127)](),_0x5b1f86={'unitId':_0x537933,'subUnitId':_0x21d482,'drawingId':_0x4d012f,'drawingType':_0x415cfb[_0xbbb013(0x19d)]['DRAWING_SHAPE'],'sheetTransform':_0x3791c7,'transform':_0x18710c,'data':{'shapeType':_0x1ad25b||_0x2a90c8||_0x542c10,'shapeData':{..._0x1632b1,'adjustValues':_0x1c7768||_0x3e7e3f||(_0x1632b1==null?void 0x0:_0x1632b1[_0xbbb013(0xf2)])}},'axisAlignSheetTransform':_0x21b619,'allowTransform':!0x0},{undo:_0x17e8e2,redo:_0x2724ed,objects:_0x19cb1f}=_0x2f81ee[_0xbbb013(0x16f)]([_0x5b1f86]),_0x2741ce=_0x434ca8[_0xbbb013(0xeb)]({'id':_0x1768c8[_0xbbb013(0x1b9)]['id'],'params':{'unitId':_0x537933,'drawings':[_0x5b1f86]}}),_0x31f564=[...(_0x2b1aa1=_0x2741ce[_0xbbb013(0x12c)])==null?[]:_0x2b1aa1,{'id':_0x1768c8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x537933,'subUnitId':_0x21d482,'op':_0x2724ed,'objects':_0x19cb1f,'type':_0x1768c8['DrawingApplyType']['UPDATE']}},{'id':_0x1768c8[_0xbbb013(0x145)]['id'],'params':[_0x537933]},..._0x2741ce[_0xbbb013(0xf3)],{'id':_0x573cdd['id'],'params':{'unitId':_0x537933,'subUnitId':_0x21d482,'shapeId':_0x4d012f,'shapeType':_0x1ad25b,'shapeData':{'adjustValues':_0x1c7768}}}],_0x50712a=[...(_0x24bc44=_0x2741ce['preUndos'])==null?[]:_0x24bc44,{'id':_0x1768c8[_0xbbb013(0x102)]['id'],'params':{'unitId':_0x537933,'subUnitId':_0x21d482,'op':_0x17e8e2,'objects':_0x19cb1f,'type':_0x1768c8['DrawingApplyType']['UPDATE']}},{'id':_0x1768c8[_0xbbb013(0x145)]['id'],'params':[_0x537933]},..._0x2741ce['undos'],{'id':_0x573cdd['id'],'params':{'unitId':_0x537933,'subUnitId':_0x21d482,'shapeId':_0x4d012f,'shapeType':_0x542c10,'shapeData':{..._0x1632b1,'adjustValues':_0x3e7e3f||(_0x1632b1==null?void 0x0:_0x1632b1['adjustValues'])}}}];return(0x0,_0x415cfb[_0xbbb013(0x17d)])(_0x31f564,_0x2b52b8)['result']?(_0x4d0afc[_0xbbb013(0x147)]({'unitID':_0x537933,'undoMutations':_0x50712a,'redoMutations':_0x31f564}),!0x0):!0x1;}},_0x55ed4b={'id':_0x290195(0x106),'type':_0x415cfb[_0x290195(0xec)]['MUTATION'],'handler':(_0x1cd22c,_0x4c32bf)=>{const _0x598147=_0x290195;let {unitId:_0x15181f,subUnitId:_0x227203,shapeType:_0x31bf11,shapeId:_0x30ea8f,shapeData:_0x437634}=_0x4c32bf,_0x37046b=_0x1cd22c[_0x598147(0x137)](_0x1217e1)[_0x598147(0x150)](_0x15181f,_0x227203,_0x30ea8f);return _0x37046b&&(_0x37046b[_0x598147(0x11a)](_0x31bf11),_0x437634&&(_0x37046b==null||_0x37046b['setShapeData'](_0x437634))),!0x0;}},_0x59f7b7={'id':_0x290195(0x199),'type':_0x415cfb[_0x290195(0xec)][_0x290195(0x1a6)],'handler':(_0x11f57e,_0x3d26ec)=>{const _0x3bf4e2=_0x290195;if(!_0x3d26ec)return!0x1;let _0x8b24c4=_0x11f57e[_0x3bf4e2(0x137)](_0x415cfb[_0x3bf4e2(0x141)]),_0xa87126=_0x11f57e[_0x3bf4e2(0x137)](_0x1217e1),_0x2eb770=_0x11f57e[_0x3bf4e2(0x137)](_0x415cfb[_0x3bf4e2(0x124)]),_0x920526=[],_0x3dd84c=[],{unitId:_0x46dbd0,subUnitId:_0x35e484,shapeId:_0x389b2f,shapeType:_0x4018e5,shapeData:_0x448068}=_0x3d26ec,_0x28b2e1=_0xa87126[_0x3bf4e2(0x150)](_0x46dbd0,_0x35e484,_0x389b2f);if(_0x28b2e1){let _0x4c329a=_0x28b2e1[_0x3bf4e2(0x1b2)](),_0x50af96=Object[_0x3bf4e2(0x15f)]({},_0x28b2e1[_0x3bf4e2(0x127)]()),_0xbd359e={'unitId':_0x46dbd0,'subUnitId':_0x35e484,'shapeId':_0x389b2f,'shapeType':_0x4018e5,'shapeData':_0x448068},_0x503fd3={'unitId':_0x46dbd0,'subUnitId':_0x35e484,'shapeId':_0x389b2f,'shapeType':_0x4c329a,'shapeData':_0x50af96};return _0x920526[_0x3bf4e2(0x158)]({'id':_0x55ed4b['id'],'params':_0xbd359e}),_0x3dd84c[_0x3bf4e2(0x158)]({'id':_0x55ed4b['id'],'params':_0x503fd3}),_0x920526[_0x3bf4e2(0x154)](_0x696449=>_0x8b24c4[_0x3bf4e2(0x172)](_0x696449['id'],_0x696449[_0x3bf4e2(0x182)]))&&_0x2eb770[_0x3bf4e2(0x147)]({'unitID':_0x46dbd0,'redoMutations':[..._0x920526],'undoMutations':[..._0x3dd84c]}),!0x0;}return!0x1;}};var _0x1c3da3='@univerjs-pro/sheets-shape',_0xbca6f5=_0x290195(0x11f);let _0x37946e={},_0x305ce9=class extends _0x415cfb['Disposable']{constructor(_0x504d28,_0x67d14e,_0xcceb4e,_0x18b546,_0xbd9ef2){const _0x4f42ef=_0x290195;super(),this['_commandService']=_0x504d28,this['_sheetInterceptorService']=_0x67d14e,this[_0x4f42ef(0x1ac)]=_0xcceb4e,this[_0x4f42ef(0xea)]=_0x18b546,this['_drawingManagerService']=_0xbd9ef2,this[_0x4f42ef(0x17c)](),this[_0x4f42ef(0x171)]();}['_initCommands'](){const _0x1c4380=_0x290195;[_0x5543f9,_0x2d00be,_0x2da9bb,_0x2f4d9e,_0x457159,_0x861f74,_0x2f0279,_0x41165d,_0x179ec7,_0x55ed4b,_0x573cdd][_0x1c4380(0x12d)](_0x239ab6=>this[_0x1c4380(0x1a0)](this['_commandService'][_0x1c4380(0x1a2)](_0x239ab6)));}[_0x290195(0x171)](){const _0x35d6c0=_0x290195;this[_0x35d6c0(0x1a0)](this['_sheetInterceptorService'][_0x35d6c0(0x181)]({'getMutations':_0x4ea748=>{const _0x32a51f=_0x35d6c0;if(_0x4ea748['id']===_0x1768c8[_0x32a51f(0x19c)]['id']){let {drawings:_0x545547}=_0x4ea748[_0x32a51f(0x182)],_0x38b0bd=_0x545547[_0x32a51f(0xf8)](_0x4a4ee5=>_0x4a4ee5['drawingType']===_0x415cfb['DrawingTypeEnum'][_0x32a51f(0x1be)]);if(_0x38b0bd[_0x32a51f(0x11c)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x437f71=[],_0x293323=[];return _0x38b0bd[_0x32a51f(0x12d)](_0x3b45c5=>{const _0x5eb6c5=_0x32a51f;let {unitId:_0x49a3d9,subUnitId:_0x48e622,drawingId:_0x29c43b}=_0x3b45c5,_0x4dc952=this[_0x5eb6c5(0xea)][_0x5eb6c5(0x150)](_0x49a3d9,_0x48e622,_0x29c43b);if(!_0x4dc952)throw TypeError(_0x5eb6c5(0x122)+_0x4dc952);_0x437f71[_0x5eb6c5(0x158)]({'id':_0x179ec7['id'],'params':{'unitId':_0x49a3d9,'subUnitId':_0x48e622,'shapeId':_0x29c43b}}),_0x293323[_0x5eb6c5(0x158)]({'id':_0x41165d['id'],'params':{'unitId':_0x49a3d9,'subUnitId':_0x48e622,'shapeId':_0x29c43b,'shapeType':_0x4dc952[_0x5eb6c5(0x1b2)](),'shapeData':_0x4dc952['getShapeData']()}});let _0x6b26fe=this[_0x5eb6c5(0xea)][_0x5eb6c5(0x16e)](_0x49a3d9,_0x48e622,_0x29c43b);if(_0x6b26fe)for(let _0x11e342 of _0x6b26fe){let _0x1290b4=_0x11e342[_0x5eb6c5(0x10f)],_0x27135f=_0x11e342[_0x5eb6c5(0x14a)],_0x188655=_0x27135f?{'from':void 0x0}:{'to':void 0x0},_0x1a5c6e=_0x27135f?{'from':{'shapeId':_0x11e342[_0x5eb6c5(0x1b3)],'cxnIndex':_0x11e342[_0x5eb6c5(0x1b5)]}}:{'to':{'shapeId':_0x11e342['shapeId'],'cxnIndex':_0x11e342[_0x5eb6c5(0x1b5)]}};_0x437f71[_0x5eb6c5(0x158)]({'id':_0x573cdd['id'],'params':{'unitId':_0x49a3d9,'subUnitId':_0x48e622,'shapeId':_0x1290b4,'shapeData':{'relation':_0x188655}}}),_0x293323[_0x5eb6c5(0x158)]({'id':_0x573cdd['id'],'params':{'unitId':_0x49a3d9,'subUnitId':_0x48e622,'shapeId':_0x1290b4,'shapeData':{'relation':_0x1a5c6e}}});}}),{'preRedos':_0x437f71,'redos':[],'preUndos':[],'undos':_0x293323};}if(_0x4ea748['id']===_0x1768c8[_0x32a51f(0x1b9)]['id']){let {drawings:_0x56cae0}=_0x4ea748[_0x32a51f(0x182)],_0x4c41b6=_0x56cae0[_0x32a51f(0xf8)](_0x3a481b=>_0x3a481b[_0x32a51f(0x16c)]===_0x415cfb[_0x32a51f(0x19d)][_0x32a51f(0x1be)]);if(_0x4c41b6[_0x32a51f(0x11c)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x59a3b8=[],_0x2b43d1=[];for(let _0x51cc28 of _0x4c41b6){let {unitId:_0x4bc16d,subUnitId:_0x15fb6d,drawingId:_0x342e08,transform:_0x67c4a8}=_0x51cc28;if(!_0x4bc16d||!_0x15fb6d||!_0x342e08||!_0x67c4a8)continue;let _0x2fd60e=this['_sheetsShapeService'][_0x32a51f(0x150)](_0x4bc16d,_0x15fb6d,_0x342e08);if(!_0x2fd60e)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x2fd60e);if((0x0,_0x75463[_0x32a51f(0x161)])(_0x2fd60e['getShapeType']())){let _0x51ad1a=this[_0x32a51f(0xea)]['getLineShapeRelation'](_0x4bc16d,_0x15fb6d,_0x342e08);_0x51ad1a&&(_0x59a3b8[_0x32a51f(0x158)]({'id':_0x573cdd['id'],'params':{'unitId':_0x4bc16d,'subUnitId':_0x15fb6d,'shapeId':_0x342e08,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2b43d1[_0x32a51f(0x158)]({'id':_0x573cdd['id'],'params':{'unitId':_0x4bc16d,'subUnitId':_0x15fb6d,'shapeId':_0x342e08,'shapeData':{'relation':_0x51ad1a}}}));}else{let _0x104bb7=this[_0x32a51f(0xea)][_0x32a51f(0x16e)](_0x4bc16d,_0x15fb6d,_0x342e08);if(_0x104bb7&&_0x104bb7[_0x32a51f(0x11c)]>0x0)for(let _0xbad3aa of _0x104bb7){let _0x5bb071=_0xbad3aa['lineShapeId'],_0x16b989=_0xbad3aa['isFrom'],_0x2f7771=this['_sheetsShapeService'][_0x32a51f(0x150)](_0x4bc16d,_0x15fb6d,_0x5bb071);if(!_0x2f7771)continue;let _0x24a75b=_0x2f7771[_0x32a51f(0x186)](),_0x4c91ac=_0x2f7771['getEndConnectInfo']();_0x24a75b&&_0x4c91ac?this[_0x32a51f(0xf9)](_0x4bc16d,_0x15fb6d,_0x5bb071,_0x2f7771,_0x24a75b,_0x4c91ac,_0x59a3b8,_0x2b43d1,_0x342e08,_0x67c4a8):this[_0x32a51f(0x170)](_0x4bc16d,_0x15fb6d,_0x5bb071,_0x2f7771,_0x16b989?_0x24a75b:_0x4c91ac,_0x16b989,_0x59a3b8,_0x2b43d1,_0x342e08,_0x67c4a8);}}}return{'preRedos':[],'redos':_0x59a3b8,'preUndos':_0x2b43d1,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x290195(0x197)](_0x710a1c,_0x3c2edf,_0x3d811b,_0xedc1a5,_0x1e1d33){const _0x99c25f=_0x290195;if(!_0x3c2edf||!_0x3d811b)return null;let {shapeId:_0x460299,cxnIndex:_0x876422}=_0x710a1c,_0x3d8ae9=this[_0x99c25f(0xea)][_0x99c25f(0x150)](_0x3c2edf,_0x3d811b,_0x460299);if(!_0x3d8ae9)return null;let _0x140d85=this[_0x99c25f(0x157)]['getDrawingByParam']({'unitId':_0x3c2edf,'subUnitId':_0x3d811b,'drawingId':_0x460299});if(!(_0x140d85!=null&&_0x140d85[_0x99c25f(0x109)]))return null;let {left:_0x2a3775=0x0,top:_0x2443f7=0x0,width:_0x37090a=0x0,height:_0x3940b5=0x0,flipX:_0x455afe=!0x1,flipY:_0x544672=!0x1,angle:_0x3553f5}=_0x140d85[_0x99c25f(0x109)];if(_0x1e1d33&&_0xedc1a5===_0x460299){var _0x5132f7,_0x38b5fa,_0x2ddeca,_0x1731b9,_0x1c32f0,_0x19217c,_0x407531;_0x2a3775=(_0x5132f7=_0x1e1d33['left'])==null?_0x2a3775:_0x5132f7,_0x2443f7=(_0x38b5fa=_0x1e1d33[_0x99c25f(0x129)])==null?_0x2443f7:_0x38b5fa,_0x37090a=(_0x2ddeca=_0x1e1d33[_0x99c25f(0x16d)])==null?_0x37090a:_0x2ddeca,_0x3940b5=(_0x1731b9=_0x1e1d33['height'])==null?_0x3940b5:_0x1731b9,_0x455afe=(_0x1c32f0=_0x1e1d33[_0x99c25f(0x108)])==null?_0x455afe:_0x1c32f0,_0x544672=(_0x19217c=_0x1e1d33[_0x99c25f(0x121)])==null?_0x544672:_0x19217c,_0x3553f5=(_0x407531=_0x1e1d33[_0x99c25f(0x1ab)])==null?_0x3553f5:_0x407531;}_0x3d8ae9[_0x99c25f(0x151)]({'width':_0x37090a,'height':_0x3940b5});let _0x24f9c3=_0x3d8ae9[_0x99c25f(0x1a5)]()[_0x99c25f(0x11b)](_0x451661=>_0x451661[_0x99c25f(0x144)]===_0x876422);if(!_0x24f9c3)return null;let _0xe60c47=_0x455afe?_0x37090a-_0x24f9c3['x']:_0x24f9c3['x'],_0x4c2239=_0x544672?_0x3940b5-_0x24f9c3['y']:_0x24f9c3['y'];if(_0x3553f5!==0x0&&_0x3553f5!=null){let _0x162024=_0x3553f5*Math['PI']/0xb4,_0x4a4ffe=Math[_0x99c25f(0x19f)](_0x162024),_0x16d4fd=Math['sin'](_0x162024),_0x5c1142=_0x37090a/0x2,_0x116dc8=_0x3940b5/0x2,_0x4505f0=_0xe60c47-_0x5c1142,_0x28ccee=_0x4c2239-_0x116dc8;_0xe60c47=_0x5c1142+_0x4505f0*_0x4a4ffe-_0x28ccee*_0x16d4fd,_0x4c2239=_0x116dc8+_0x4505f0*_0x16d4fd+_0x28ccee*_0x4a4ffe;}_0xe60c47+=_0x2a3775,_0x4c2239+=_0x2443f7;let _0x3b5cd5=_0x24f9c3[_0x99c25f(0x139)]/0xea60;_0x455afe&&(_0x3b5cd5=0xb4-_0x3b5cd5),_0x544672&&(_0x3b5cd5=-_0x3b5cd5),_0x3b5cd5+=_0x3553f5||0x0,_0x3b5cd5=(_0x3b5cd5%0x168+0x168)%0x168;let _0x546b5c=(0x0,_0x75463[_0x99c25f(0x12a)])({'left':_0x2a3775,'top':_0x2443f7,'width':_0x37090a,'height':_0x3940b5},_0x3553f5||0x0);return{'point':{'x':_0xe60c47,'y':_0x4c2239},'angle':_0x3b5cd5,'bounds':_0x546b5c};}[_0x290195(0xf9)](_0x3233ee,_0x53da5e,_0x4fee4d,_0xe36e4b,_0x4815b1,_0x4f55eb,_0x17f352,_0x3c910a,_0x289c8e,_0x59caec){const _0x2e421f=_0x290195;let _0x31cb96=this[_0x2e421f(0x1ac)][_0x2e421f(0x1b4)](_0x3233ee,_0x53da5e);if(!_0x31cb96)return;let _0x61caf1=_0xe36e4b['getShapeRelation'](),_0xb4ca66=_0xe36e4b[_0x2e421f(0x165)](),_0x572125={},_0x2dc6f2={};_0xb4ca66[_0x2e421f(0x12d)](_0x311b3c=>{const _0x1cfd8c=_0x2e421f;let _0x39fc53=_0xe36e4b[_0x1cfd8c(0x15e)](_0x311b3c);_0x2dc6f2[_0x311b3c]=_0x39fc53==null?0x0:_0x39fc53;});let _0x3805b3=this[_0x2e421f(0x197)](_0x4815b1,_0x3233ee,_0x53da5e,_0x289c8e,_0x59caec),_0x5608e3=this[_0x2e421f(0x197)](_0x4f55eb,_0x3233ee,_0x53da5e,_0x289c8e,_0x59caec);if(_0x3805b3&&_0x5608e3){let _0x2c2c5d=_0xe36e4b[_0x2e421f(0x1b2)](),_0x435ddb=(0x0,_0x75463[_0x2e421f(0xfb)])(_0x3805b3,_0x5608e3,_0x2c2c5d),_0x3bd667=_0x2c2c5d;if(_0x435ddb){let _0x3317d9=(0x0,_0x75463[_0x2e421f(0xfa)])(_0x435ddb,_0xe36e4b[_0x2e421f(0x1b2)]()),_0x23865e=this[_0x2e421f(0x157)][_0x2e421f(0xe8)](_0x3233ee,_0x53da5e);if(_0x23865e&&_0x23865e[_0x4fee4d]){let _0x5c017c=_0x23865e[_0x4fee4d];_0x3bd667=_0x3317d9[_0x2e421f(0x13c)];for(let [_0x40a308,_0x3e629e]of Object['entries'](_0x3317d9[_0x2e421f(0xf2)]))_0x572125[_0x40a308]=_0x3e629e;let _0x4c5e98={..._0x5c017c['transform'],'width':_0x3317d9[_0x2e421f(0x101)]['width'],'height':_0x3317d9[_0x2e421f(0x101)]['height'],'left':_0x3317d9['worldRect'][_0x2e421f(0x19b)],'top':_0x3317d9['worldRect']['top'],'flipX':_0x3317d9[_0x2e421f(0x101)]['flipX'],'flipY':_0x3317d9[_0x2e421f(0x101)][_0x2e421f(0x121)],'angle':_0x3317d9[_0x2e421f(0x10d)]},_0xdfd3b=(0x0,_0x1768c8[_0x2e421f(0x184)])(_0x4c5e98,_0x31cb96),_0x424635=(0x0,_0x1768c8[_0x2e421f(0x1c5)])(_0x4c5e98,_0x31cb96),_0x4ff423={'unitId':_0x3233ee,'subUnitId':_0x53da5e,'drawingType':_0x415cfb[_0x2e421f(0x19d)][_0x2e421f(0x1be)],'drawingId':_0x4fee4d,'transform':_0x4c5e98,'sheetTransform':_0xdfd3b,'axisAlignSheetTransform':_0x424635},{unitId:_0x3ddc7a,subUnitId:_0x198ae3,undo:_0x1c5975,redo:_0x1c06e0,objects:_0x32866a}=this[_0x2e421f(0x157)][_0x2e421f(0x16f)]([_0x4ff423]);_0x17f352[_0x2e421f(0x158)]({'id':_0x1768c8[_0x2e421f(0x102)]['id'],'params':{'unitId':_0x3ddc7a,'subUnitId':_0x198ae3,'op':_0x1c06e0,'objects':_0x32866a,'type':_0x1768c8[_0x2e421f(0xf7)][_0x2e421f(0x18a)]}}),_0x3c910a[_0x2e421f(0x158)]({'id':_0x1768c8[_0x2e421f(0x102)]['id'],'params':{'unitId':_0x3ddc7a,'subUnitId':_0x198ae3,'op':_0x1c5975,'objects':_0x32866a,'type':_0x1768c8[_0x2e421f(0xf7)][_0x2e421f(0x18a)]}});}_0xe36e4b[_0x2e421f(0x11e)]();}_0x17f352[_0x2e421f(0x158)]({'id':_0x573cdd['id'],'params':{'unitId':_0x3233ee,'subUnitId':_0x53da5e,'shapeId':_0x4fee4d,'shapeType':_0x3bd667,'shapeData':{'adjustValues':_0x572125,'relation':_0x61caf1}}}),_0x3c910a[_0x2e421f(0x158)]({'id':_0x573cdd['id'],'params':{'unitId':_0x3233ee,'subUnitId':_0x53da5e,'shapeId':_0x4fee4d,'shapeType':_0x2c2c5d,'shapeData':{'adjustValues':_0x2dc6f2,'relation':_0x61caf1}}});}}['_addLineFollowShapeUpdates'](_0x5b48df,_0x5c2908,_0x336bcc,_0x43ade7,_0x32f595,_0x4210ce,_0x4f0897,_0x4e91dd,_0x560168,_0xf79c40){const _0x1d91aa=_0x290195;var _0x4fca61;if(!_0x32f595)return;let _0xe898a3=this[_0x1d91aa(0x1ac)]['getSkeleton'](_0x5b48df,_0x5c2908);if(!_0xe898a3)return;let _0x47f31f=(_0x4fca61=this['_drawingManagerService'][_0x1d91aa(0xe9)]({'unitId':_0x5b48df,'subUnitId':_0x5c2908,'drawingId':_0x560168}))==null?void 0x0:_0x4fca61[_0x1d91aa(0x109)];if(!_0x47f31f)return;let _0x1391c0=_0x47f31f[_0x1d91aa(0x19b)]!==_0xf79c40['left']||_0x47f31f[_0x1d91aa(0x129)]!==_0xf79c40[_0x1d91aa(0x129)],_0x26f585=_0x47f31f[_0x1d91aa(0x16d)]!==_0xf79c40[_0x1d91aa(0x16d)]||_0x47f31f[_0x1d91aa(0x15a)]!==_0xf79c40[_0x1d91aa(0x15a)],_0x5ed04=_0x47f31f['flipX']!==_0xf79c40[_0x1d91aa(0x108)]||_0x47f31f[_0x1d91aa(0x121)]!==_0xf79c40['flipY'],_0x446730=_0x47f31f[_0x1d91aa(0x1ab)]!==_0xf79c40[_0x1d91aa(0x1ab)];if(_0x1391c0&&!_0x26f585&&!_0x5ed04&&!_0x446730){var _0x2876a8,_0x5100de,_0x2c66b8,_0x29c7a1;let _0xfbac8=((_0x2876a8=_0xf79c40[_0x1d91aa(0x19b)])==null?0x0:_0x2876a8)-((_0x5100de=_0x47f31f[_0x1d91aa(0x19b)])==null?0x0:_0x5100de),_0x43f498=((_0x2c66b8=_0xf79c40[_0x1d91aa(0x129)])==null?0x0:_0x2c66b8)-((_0x29c7a1=_0x47f31f[_0x1d91aa(0x129)])==null?0x0:_0x29c7a1),_0x42c8cd=this[_0x1d91aa(0x157)][_0x1d91aa(0xe8)](_0x5b48df,_0x5c2908);if(_0x42c8cd&&_0x42c8cd[_0x336bcc]){var _0x4d647f,_0x1bd8f7,_0x283b56,_0x58b79f;let _0x4973c3=_0x42c8cd[_0x336bcc],_0x21b632={..._0x4973c3[_0x1d91aa(0x109)],'left':((_0x4d647f=(_0x1bd8f7=_0x4973c3[_0x1d91aa(0x109)])==null?void 0x0:_0x1bd8f7[_0x1d91aa(0x19b)])==null?0x0:_0x4d647f)+_0xfbac8,'top':((_0x283b56=(_0x58b79f=_0x4973c3[_0x1d91aa(0x109)])==null?void 0x0:_0x58b79f['top'])==null?0x0:_0x283b56)+_0x43f498},_0x4aea59=(0x0,_0x1768c8[_0x1d91aa(0x184)])(_0x21b632,_0xe898a3),_0x3e1063=(0x0,_0x1768c8[_0x1d91aa(0x1c5)])(_0x21b632,_0xe898a3),_0x2df014={'unitId':_0x5b48df,'subUnitId':_0x5c2908,'drawingType':_0x415cfb[_0x1d91aa(0x19d)][_0x1d91aa(0x1be)],'drawingId':_0x336bcc,'transform':_0x21b632,'sheetTransform':_0x4aea59,'axisAlignSheetTransform':_0x3e1063},{unitId:_0x29863e,subUnitId:_0x67424f,undo:_0x41cc20,redo:_0x30e5c5,objects:_0x50a2bc}=this['_drawingManagerService'][_0x1d91aa(0x16f)]([_0x2df014]);_0x4f0897[_0x1d91aa(0x158)]({'id':_0x1768c8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x29863e,'subUnitId':_0x67424f,'op':_0x30e5c5,'objects':_0x50a2bc,'type':_0x1768c8[_0x1d91aa(0xf7)][_0x1d91aa(0x18a)]}}),_0x4e91dd[_0x1d91aa(0x158)]({'id':_0x1768c8[_0x1d91aa(0x102)]['id'],'params':{'unitId':_0x29863e,'subUnitId':_0x67424f,'op':_0x41cc20,'objects':_0x50a2bc,'type':_0x1768c8['DrawingApplyType'][_0x1d91aa(0x18a)]}});}}else{let _0x4a51b5=_0x43ade7['getStartConnectInfo'](),_0x224436=_0x43ade7[_0x1d91aa(0x166)]();this[_0x1d91aa(0xf9)](_0x5b48df,_0x5c2908,_0x336bcc,_0x43ade7,_0x4a51b5,_0x224436,_0x4f0897,_0x4e91dd,_0x560168,_0xf79c40);}}};_0x305ce9=_0x37d62f([_0x443e02(0x0,_0x415cfb['ICommandService']),_0x443e02(0x1,(0x0,_0x415cfb[_0x290195(0x131)])(_0x3cf8ef['SheetInterceptorService'])),_0x443e02(0x2,(0x0,_0x415cfb[_0x290195(0x131)])(_0x3cf8ef[_0x290195(0xe3)])),_0x443e02(0x3,(0x0,_0x415cfb[_0x290195(0x131)])(_0x1217e1)),_0x443e02(0x4,(0x0,_0x415cfb[_0x290195(0x131)])(_0x4f2e45[_0x290195(0x13e)]))],_0x305ce9);let _0x3ea0dc=class extends _0x415cfb[_0x290195(0xfc)]{constructor(_0x1cd692=_0x37946e,_0x3c76d6,_0x453ecd,_0x22cf70){const _0xf6cef2=_0x290195;super(),this[_0xf6cef2(0x1bc)]=_0x1cd692,this['_injector']=_0x3c76d6,this[_0xf6cef2(0xfd)]=_0x453ecd,this[_0xf6cef2(0x126)]=_0x22cf70;let {..._0x4cfc1a}=(0x0,_0x415cfb[_0xf6cef2(0x152)])({},_0x37946e,this[_0xf6cef2(0x1bc)]);this[_0xf6cef2(0x126)][_0xf6cef2(0x15c)](_0xf6cef2(0x116),_0x4cfc1a);}[_0x290195(0x156)](){const _0x2c5c06=_0x290195;let _0x18ba1f=this[_0x2c5c06(0x180)];[[_0x42960f],[_0x1217e1],[_0x305ce9]]['forEach'](_0x5003a3=>_0x18ba1f[_0x2c5c06(0x111)](_0x5003a3)),(0x0,_0x415cfb['touchDependencies'])(_0x18ba1f,[[_0x1217e1],[_0x305ce9]]);}};_0x2249a9(_0x3ea0dc,'type',_0x415cfb[_0x290195(0x163)]['UNIVER_SHEET']),_0x2249a9(_0x3ea0dc,_0x290195(0x103),_0x290195(0x164)),_0x2249a9(_0x3ea0dc,'packageName',_0x1c3da3),_0x2249a9(_0x3ea0dc,_0x290195(0xe6),_0xbca6f5),_0x3ea0dc=_0x37d62f([(0x0,_0x415cfb['DependentOn'])(_0x577a99[_0x290195(0x110)]),_0x443e02(0x1,(0x0,_0x415cfb[_0x290195(0x131)])(_0x415cfb[_0x290195(0xef)])),_0x443e02(0x2,_0x415cfb[_0x290195(0x141)]),_0x443e02(0x3,_0x415cfb[_0x290195(0x19a)])],_0x3ea0dc),_0x5cefec[_0x290195(0x12f)]=0xc8,_0x5cefec[_0x290195(0x119)]=0xc8,_0x5cefec[_0x290195(0x17a)]=_0x5543f9,_0x5cefec[_0x290195(0x113)]=_0x41165d,_0x5cefec[_0x290195(0x114)]=_0x179ec7,_0x5cefec[_0x290195(0x198)]=_0x2d00be,_0x5cefec[_0x290195(0x104)]=_0x2f4d9e,_0x5cefec['SetSheetsShapeTextVerticalToggleCommand']=_0x457159,Object[_0x290195(0x160)](_0x5cefec,_0x290195(0x174),{'enumerable':!0x0,'get':function(){return _0x1217e1;}}),_0x5cefec['ToggleSheetsShapeFlipCommand']=_0x2da9bb,Object['defineProperty'](_0x5cefec,_0x290195(0x17f),{'enumerable':!0x0,'get':function(){return _0x3ea0dc;}}),_0x5cefec[_0x290195(0x105)]=_0x861f74,_0x5cefec['UpdateLineShapeResizeCommand']=_0x2f0279,_0x5cefec['UpdateSheetsShapeDataMutation']=_0x573cdd,_0x5cefec['UpdateSheetsShapeTypeCommand']=_0x59f7b7,_0x5cefec[_0x290195(0x123)]=_0x55ed4b;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.25.0",
3
+ "version": "1.0.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "Shape and drawing model integration for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -57,22 +57,18 @@
57
57
  "files": [
58
58
  "lib"
59
59
  ],
60
- "engines": {
61
- "node": ">=16.0.0",
62
- "npm": ">=8.0.0"
63
- },
64
60
  "dependencies": {
65
- "@univerjs-pro/engine-shape": "0.25.0",
66
- "@univerjs/core": "0.25.0",
67
- "@univerjs-pro/license": "0.25.0",
68
- "@univerjs/sheets": "0.25.0",
69
- "@univerjs/drawing": "0.25.0",
70
- "@univerjs/sheets-drawing": "0.25.0"
61
+ "@univerjs-pro/engine-shape": "1.0.0-alpha.0",
62
+ "@univerjs/core": "1.0.0-alpha.0",
63
+ "@univerjs-pro/license": "1.0.0-alpha.0",
64
+ "@univerjs/drawing": "1.0.0-alpha.0",
65
+ "@univerjs/sheets-drawing": "1.0.0-alpha.0",
66
+ "@univerjs/sheets": "1.0.0-alpha.0"
71
67
  },
72
68
  "devDependencies": {
73
69
  "typescript": "^6.0.3",
74
- "vitest": "^4.1.6",
75
- "@univerjs-infra/shared": "0.25.0"
70
+ "vitest": "^4.1.9",
71
+ "@univerjs-infra/shared": "1.0.0-alpha.0"
76
72
  },
77
73
  "scripts": {
78
74
  "test": "vitest run",