@univerjs-pro/sheets-shape 0.25.1 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/command/add-shape.command.d.ts +1 -0
- package/lib/types/commands/mutation/add-shape.mutation.d.ts +1 -0
- package/lib/types/facade/f-shape.d.ts +32 -1
- package/lib/types/index.d.ts +24 -12
- package/lib/types/{model → models}/shape-manager.d.ts +2 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/sheet-shape-services.d.ts +3 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -13
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x291bb4=_0x10d7;(function(_0x1c6552,_0x1a5eb9){const _0x499fee=_0x10d7,_0x33fe19=_0x1c6552();while(!![]){try{const _0x46cc14=parseInt(_0x499fee(0x180))/0x1*(parseInt(_0x499fee(0x11f))/0x2)+-parseInt(_0x499fee(0x155))/0x3*(-parseInt(_0x499fee(0x16e))/0x4)+-parseInt(_0x499fee(0x13a))/0x5*(parseInt(_0x499fee(0x147))/0x6)+-parseInt(_0x499fee(0x14d))/0x7+-parseInt(_0x499fee(0x11c))/0x8+parseInt(_0x499fee(0x18b))/0x9+-parseInt(_0x499fee(0x166))/0xa*(-parseInt(_0x499fee(0x12b))/0xb);if(_0x46cc14===_0x1a5eb9)break;else _0x33fe19['push'](_0x33fe19['shift']());}catch(_0x477b26){_0x33fe19['push'](_0x33fe19['shift']());}}}(_0x10ff,0x418c0));import{ConnectorCoordinateTransform as _0x3af6ac,ShapeArrowSizeEnum as _0x2155f7,ShapeArrowTypeEnum as _0x48d718,ShapeFillEnum as _0x56f575,ShapeGradientTypeEnum as _0x3d3b73,ShapeLineCapEnum as _0x3a73ac,ShapeLineDashEnum as _0x6eaf0d,ShapeLineJoinEnum as _0x5232cf,ShapeLineTypeEnum as _0x2e1f3e,ShapeTypeEnum as _0x140b90,computeConnectorRouteLayout as _0x1390bf,getBasicShapeRotateBound as _0x468f4d,isConnectorShape as _0x50e99f,routeConnectorLineShape as _0x59fc77}from'@univerjs-pro/engine-shape';import{FEnum as _0x2c4b61}from'@univerjs/core/facade';function _0x10d7(_0x1c07a4,_0x4892a8){_0x1c07a4=_0x1c07a4-0x10e;const _0x10ff88=_0x10ff();let _0x10d7a7=_0x10ff88[_0x1c07a4];return _0x10d7a7;}import{DEFAULT_SHAPE_HEIGHT as _0xd6b3e8,DEFAULT_SHAPE_WIDTH as _0xa2c7ac,InsertShapeCommand as _0x2d78f8,SetShapeDrawingDataCommand as _0x268798,SheetsShapeService as _0x32f133,UpdateConnectorRelationCommand as _0x219dd2}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x255a32,generateRandomId as _0x506b1e}from'@univerjs/core';function _0x10ff(){const _0x383bf4=['setShapeSolidFill','call','3260166OizARj','getDrawingByParam','getShapeData','shapeData','drawId','width','ShapeArrowSizeEnum','from','189VyjxAC','worldRect','string','gradientType','isLineShape','object','setStartArrowType','removeShape','lineType','getShapeModel','symbol','abs','ensureSkeleton','top','getConnectorLinePoints','setStrokeLineCapType','function','900CRAiij','_resolveEndpoints','updateShape','extend','ShapeLineJoinEnum','ShapeGradientTypeEnum','constructor','endArrow','10324fmJDFT','ang','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeFillEnum','height','opacity','sin','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','unitId','fill','getEndConnectInfo','getShapeType','index','setStrokeLineJoinType','find','keys','getShapes','setStrokeWidth','483oGbpgg','length','relation','shape','left','subUnitId','NoFill','build','newConnector','getUnitId','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','2323071KfQtpJ','_preloadShapeProperties','localToWorld','setShapeGradientFill','capType','shapeType','\x20and\x20subUnitId\x20','setWidth','_commandService','setStrokeColor','shapeId','getDrawingPoints','fillType','SolidFill','getAdjustValueByName','cxnIndex','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','1234536kLTvlp','getDrawingData','ShapeTypeEnum','1628zdFSEP','connectShapes','setStartArrowSize','size','startArrow','setEndArrowType','getShapeRelation','_injector','color','setStrokeOpacity','Skeleton\x20for\x20unitId\x20','transform','20229KcEOIa','stroke','executeCommand','default','getSheetId','updateContext','getShapeId','stringify','get','insertShape','cos','ShapeLineCapEnum','defineProperty','type','ShapeArrowTypeEnum','10565YDzbAb','setPosition','prototype','getConnectionSiteList','_resolveExistingOrFreeEndpoint','getStartConnectInfo','entries','setStrokeLineType','setNoneFill','connectionSiteIndex','getPosition','rotation','DRAWING_SHAPE','258eBRDuB','getWorkbook','\x20not\x20found','getAdjustPoints'];_0x10ff=function(){return _0x383bf4;};return _0x10ff();}import{IDrawingManagerService as _0x41f792}from'@univerjs/drawing';import{SheetSkeletonService as _0x40d10b,convertPositionCellToSheetOverGrid as _0x100e99}from'@univerjs/sheets';import{ISheetDrawingService as _0x14d135,RemoveSheetDrawingCommand as _0x1fa062}from'@univerjs/sheets-drawing';import{FWorksheet as _0x435e82}from'@univerjs/sheets/facade';var k=class extends _0x2c4b61{get[_0x291bb4(0x11e)](){return _0x140b90;}get[_0x291bb4(0x171)](){return _0x56f575;}get[_0x291bb4(0x16b)](){return _0x3d3b73;}get['ShapeLineTypeEnum'](){return _0x2e1f3e;}get['ShapeLineDashEnum'](){return _0x6eaf0d;}get[_0x291bb4(0x136)](){return _0x3a73ac;}get[_0x291bb4(0x16a)](){return _0x5232cf;}get[_0x291bb4(0x139)](){return _0x48d718;}get[_0x291bb4(0x153)](){return _0x2155f7;}};_0x2c4b61[_0x291bb4(0x169)](k);function A(_0x5a1545){'@babel/helpers - typeof';const _0x36760d=_0x291bb4;return A=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x36760d(0x15f)?function(_0x3c3bb5){return typeof _0x3c3bb5;}:function(_0x4ebbc4){const _0x4ac6cc=_0x36760d;return _0x4ebbc4&&typeof Symbol==_0x4ac6cc(0x165)&&_0x4ebbc4[_0x4ac6cc(0x16c)]===Symbol&&_0x4ebbc4!==Symbol[_0x4ac6cc(0x13c)]?_0x4ac6cc(0x15f):typeof _0x4ebbc4;},A(_0x5a1545);}function j(_0x157b57,_0x783281){const _0x3794f2=_0x291bb4;if(A(_0x157b57)!=_0x3794f2(0x15a)||!_0x157b57)return _0x157b57;var _0x1eb0e4=_0x157b57[Symbol['toPrimitive']];if(_0x1eb0e4!==void 0x0){var _0x1eb3f7=_0x1eb0e4[_0x3794f2(0x14c)](_0x157b57,_0x783281||_0x3794f2(0x12e));if(A(_0x1eb3f7)!=_0x3794f2(0x15a))return _0x1eb3f7;throw TypeError(_0x3794f2(0x170));}return(_0x783281===_0x3794f2(0x157)?String:Number)(_0x157b57);}function M(_0x1beec3){const _0x122b98=_0x291bb4;var _0x1ae5b5=j(_0x1beec3,'string');return A(_0x1ae5b5)==_0x122b98(0x15f)?_0x1ae5b5:_0x1ae5b5+'';}function N(_0x4116ec,_0xc4980c,_0xab6fa9){const _0x300898=_0x291bb4;return(_0xc4980c=M(_0xc4980c))in _0x4116ec?Object[_0x300898(0x137)](_0x4116ec,_0xc4980c,{'value':_0xab6fa9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4116ec[_0xc4980c]=_0xab6fa9,_0x4116ec;}var P=class{constructor(_0x2a0b04,_0x580b3e,_0x1c733b,_0x5758a1){const _0x1f6511=_0x291bb4;N(this,'unitId',void 0x0),N(this,_0x1f6511(0x185),void 0x0),N(this,_0x1f6511(0x151),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x1f6511(0x152),_0xa2c7ac),N(this,_0x1f6511(0x172),_0xd6b3e8),N(this,_0x1f6511(0x110),void 0x0),N(this,'shapeData',{}),N(this,_0x1f6511(0x126),void 0x0),this['unitId']=_0x2a0b04,this[_0x1f6511(0x185)]=_0x580b3e,this['drawId']=_0x1c733b||_0x506b1e(),this[_0x1f6511(0x126)]=_0x5758a1;}[_0x291bb4(0x13b)](_0x261d41,_0x4fc217,_0x27dc2b,_0x1263fa){const _0x4868c8=_0x291bb4;let _0x3a8f77=this[_0x4868c8(0x126)][_0x4868c8(0x133)](_0x40d10b)[_0x4868c8(0x161)](this[_0x4868c8(0x176)],this[_0x4868c8(0x185)]);if(!_0x3a8f77)throw Error(_0x4868c8(0x129)+this['unitId']+_0x4868c8(0x111)+this['subUnitId']+_0x4868c8(0x149));let {transform:_0x4c5151}=_0x100e99(this['unitId'],this[_0x4868c8(0x185)],{'row':_0x261d41,'column':_0x4fc217,'rowOffset':_0x27dc2b,'columnOffset':_0x1263fa},0x1,0x1,_0x3a8f77);return this['x']=_0x4c5151[_0x4868c8(0x184)],this['y']=_0x4c5151[_0x4868c8(0x162)],this;}['setAbsolutePosition'](_0x1a4538,_0x540a6e){return this['x']=_0x1a4538,this['y']=_0x540a6e,this;}['setShapeType'](_0x77a102){return this['shapeType']=_0x77a102,this;}[_0x291bb4(0x14b)](_0x198df8,_0x4689da){const _0x9d3d88=_0x291bb4;return this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]||(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]={}),this[_0x9d3d88(0x150)][_0x9d3d88(0x177)][_0x9d3d88(0x117)]=_0x56f575[_0x9d3d88(0x118)],_0x198df8!==void 0x0&&(this[_0x9d3d88(0x150)]['fill']['color']=_0x198df8),_0x4689da!==void 0x0&&(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]['opacity']=_0x4689da),this;}[_0x291bb4(0x10e)](_0x58ea71,_0x404ecd,_0x5045cb){const _0x118485=_0x291bb4;if(_0x404ecd===void 0x0||_0x404ecd[_0x118485(0x181)]===0x0)throw Error(_0x118485(0x175));return this[_0x118485(0x150)]['fill']||(this[_0x118485(0x150)][_0x118485(0x177)]={}),this[_0x118485(0x150)]['fill']['gradientStops']=_0x404ecd,this[_0x118485(0x150)][_0x118485(0x177)][_0x118485(0x117)]=_0x56f575['GradientFill'],this['shapeData'][_0x118485(0x177)][_0x118485(0x158)]=_0x58ea71,_0x5045cb!==void 0x0&&(this[_0x118485(0x150)][_0x118485(0x177)]['gradientAngle']=_0x5045cb),this;}[_0x291bb4(0x142)](){const _0x14498e=_0x291bb4;return this[_0x14498e(0x150)]['fill']={'fillType':_0x56f575[_0x14498e(0x186)]},this;}[_0x291bb4(0x114)](_0x3085bf){const _0x5ab674=_0x291bb4;return this[_0x5ab674(0x150)][_0x5ab674(0x12c)]||(this['shapeData'][_0x5ab674(0x12c)]={}),this['shapeData'][_0x5ab674(0x12c)][_0x5ab674(0x127)]=_0x3085bf,this;}[_0x291bb4(0x17f)](_0x8c029e){const _0x5009cf=_0x291bb4;return this[_0x5009cf(0x150)][_0x5009cf(0x12c)]||(this['shapeData']['stroke']={}),this[_0x5009cf(0x150)]['stroke'][_0x5009cf(0x152)]=_0x8c029e,this;}['setStrokeLineDashType'](_0x2a3931){const _0x4df03d=_0x291bb4;return this['shapeData'][_0x4df03d(0x12c)]||(this['shapeData'][_0x4df03d(0x12c)]={}),this[_0x4df03d(0x150)]['stroke']['dashType']=_0x2a3931,this;}[_0x291bb4(0x17b)](_0x5bcc09){const _0x229141=_0x291bb4;return this[_0x229141(0x150)]['stroke']||(this[_0x229141(0x150)][_0x229141(0x12c)]={}),this['shapeData'][_0x229141(0x12c)]['lineJoinType']=_0x5bcc09,this;}[_0x291bb4(0x164)](_0x38b6cc){const _0x3ee6cf=_0x291bb4;return this[_0x3ee6cf(0x150)]['stroke']||(this[_0x3ee6cf(0x150)][_0x3ee6cf(0x12c)]={}),this[_0x3ee6cf(0x150)]['stroke'][_0x3ee6cf(0x10f)]=_0x38b6cc,this;}[_0x291bb4(0x128)](_0x2723cd){const _0x3d33e3=_0x291bb4;return this['shapeData'][_0x3d33e3(0x12c)]||(this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)]={}),this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)][_0x3d33e3(0x173)]=_0x2723cd,this;}[_0x291bb4(0x141)](_0x5683c4){const _0x502f8b=_0x291bb4;return this['shapeData']['stroke']||(this[_0x502f8b(0x150)][_0x502f8b(0x12c)]={}),this[_0x502f8b(0x150)][_0x502f8b(0x12c)]['lineStrokeType']=_0x5683c4,this;}[_0x291bb4(0x112)](_0x44132d){const _0x28ed93=_0x291bb4;return this[_0x28ed93(0x152)]=_0x44132d,this;}['setHeight'](_0xe3ab6a){const _0xcee124=_0x291bb4;return this[_0xcee124(0x172)]=_0xe3ab6a,this;}[_0x291bb4(0x159)](){const _0x2d8f19=_0x291bb4;let _0x9ed73c=this[_0x2d8f19(0x126)][_0x2d8f19(0x133)](_0x32f133)['getShapeModel'](this[_0x2d8f19(0x176)],this[_0x2d8f19(0x185)],this[_0x2d8f19(0x151)]);return _0x9ed73c?_0x50e99f(_0x9ed73c[_0x2d8f19(0x179)]()):this['shapeType']?_0x50e99f(this[_0x2d8f19(0x110)]):!0x1;}['getConnectionSites'](){const _0xef1195=_0x291bb4;let _0x375fc9=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x32f133)[_0xef1195(0x15e)](this[_0xef1195(0x176)],this[_0xef1195(0x185)],this[_0xef1195(0x151)]);if(!_0x375fc9)return[];let _0x462ad3=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x41f792)[_0xef1195(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0xef1195(0x185)],'drawingId':this['drawId']});if(!(_0x462ad3!=null&&_0x462ad3[_0xef1195(0x12a)]))return[];let {width:_0xf7cd19=0x0,height:_0x42b9bf=0x0}=_0x462ad3[_0xef1195(0x12a)];return _0x375fc9[_0xef1195(0x130)]({'width':_0xf7cd19,'height':_0x42b9bf}),_0x375fc9[_0xef1195(0x13d)]();}[_0x291bb4(0x14a)](){const _0x288ca2=_0x291bb4;let _0x31cdc9=this['_injector']['get'](_0x32f133)['getShapeModel'](this['unitId'],this[_0x288ca2(0x185)],this[_0x288ca2(0x151)]);if(!_0x31cdc9)return[];let _0x486cfe=this[_0x288ca2(0x126)][_0x288ca2(0x133)](_0x41f792)[_0x288ca2(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0x288ca2(0x185)],'drawingId':this['drawId']});if(!(_0x486cfe!=null&&_0x486cfe[_0x288ca2(0x12a)]))return[];let {width:_0x12f537=0x0,height:_0x5bc8a9=0x0}=_0x486cfe[_0x288ca2(0x12a)];return _0x31cdc9['updateContext']({'width':_0x12f537,'height':_0x5bc8a9}),_0x31cdc9[_0x288ca2(0x116)]();}[_0x291bb4(0x163)](){const _0x3bf9f0=_0x291bb4;let _0x280a57=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x32f133)[_0x3bf9f0(0x15e)](this[_0x3bf9f0(0x176)],this[_0x3bf9f0(0x185)],this[_0x3bf9f0(0x151)]);if(!_0x280a57||!_0x50e99f(_0x280a57[_0x3bf9f0(0x179)]()))return[];let _0x1a96e3=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x41f792)[_0x3bf9f0(0x14e)]({'unitId':this[_0x3bf9f0(0x176)],'subUnitId':this[_0x3bf9f0(0x185)],'drawingId':this[_0x3bf9f0(0x151)]});if(!(_0x1a96e3!=null&&_0x1a96e3[_0x3bf9f0(0x12a)]))return[];let {width:_0x216445=0x0,height:_0x43af91=0x0}=_0x1a96e3[_0x3bf9f0(0x12a)];return _0x280a57[_0x3bf9f0(0x130)]({'width':_0x216445,'height':_0x43af91}),_0x280a57['getConnectorLinePoints']();}[_0x291bb4(0x13f)](){const _0x7eb395=_0x291bb4;var _0x19df9f;let _0x2f017c=this[_0x7eb395(0x126)][_0x7eb395(0x133)](_0x32f133)[_0x7eb395(0x15e)](this[_0x7eb395(0x176)],this['subUnitId'],this[_0x7eb395(0x151)]);return _0x2f017c?(_0x19df9f=_0x2f017c[_0x7eb395(0x13f)]())==null?null:_0x19df9f:null;}[_0x291bb4(0x178)](){const _0x5368c4=_0x291bb4;var _0x2754d3;let _0x1ac605=this[_0x5368c4(0x126)][_0x5368c4(0x133)](_0x32f133)[_0x5368c4(0x15e)](this['unitId'],this[_0x5368c4(0x185)],this[_0x5368c4(0x151)]);return _0x1ac605?(_0x2754d3=_0x1ac605['getEndConnectInfo']())==null?null:_0x2754d3:null;}[_0x291bb4(0x187)](){const _0x3a8a6c=_0x291bb4;var _0x141713,_0x4c3bda;if(!this['shapeType'])throw Error(_0x3a8a6c(0x18a));if(this['x']===0x0||this['y']===0x0){let _0x169b03=this[_0x3a8a6c(0x126)]['get'](_0x40d10b)[_0x3a8a6c(0x161)](this[_0x3a8a6c(0x176)],this[_0x3a8a6c(0x185)]);if(!_0x169b03)throw Error(_0x3a8a6c(0x129)+this[_0x3a8a6c(0x176)]+'\x20and\x20subUnitId\x20'+this[_0x3a8a6c(0x185)]+_0x3a8a6c(0x149));let {transform:_0x4e2c57}=_0x100e99(this['unitId'],this[_0x3a8a6c(0x185)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x169b03);this['x']=this['x']>0x0?this['x']:_0x4e2c57[_0x3a8a6c(0x184)],this['y']=this['y']>0x0?this['y']:_0x4e2c57[_0x3a8a6c(0x162)];}return this[_0x3a8a6c(0x152)]=(_0x141713=this[_0x3a8a6c(0x152)])==null?_0xa2c7ac:_0x141713,this[_0x3a8a6c(0x172)]=(_0x4c3bda=this[_0x3a8a6c(0x172)])==null?_0xd6b3e8:_0x4c3bda,{'unitId':this[_0x3a8a6c(0x176)],'subUnitId':this['subUnitId'],'shapeId':this[_0x3a8a6c(0x151)],'shapeType':this[_0x3a8a6c(0x110)],'shapeData':Object[_0x3a8a6c(0x17d)](this[_0x3a8a6c(0x150)])[_0x3a8a6c(0x181)]>0x0?this[_0x3a8a6c(0x150)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x3a8a6c(0x172)]};}[_0x291bb4(0x131)](){const _0x5983bb=_0x291bb4;return this[_0x5983bb(0x151)];}['getShapeType'](){const _0x5ea486=_0x291bb4;return this[_0x5ea486(0x110)];}[_0x291bb4(0x14f)](){const _0x4954e1=_0x291bb4;return this[_0x4954e1(0x150)];}[_0x291bb4(0x144)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0xdffd63=_0x291bb4;return{'width':this[_0xdffd63(0x152)],'height':this[_0xdffd63(0x172)]};}},F=class extends P{constructor(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481){const _0x342473=_0x291bb4;super(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481),N(this,_0x342473(0x150),{});}['setShapeType'](_0x38304c){const _0x173e1a=_0x291bb4;if(!_0x50e99f(_0x38304c))throw Error(_0x173e1a(0x11b)+_0x38304c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x38304c),this;}[_0x291bb4(0x15b)](_0x7b5985){const _0x30b6f7=_0x291bb4;var _0x3da1b9,_0x13ab25;return(_0x3da1b9=this[_0x30b6f7(0x150)])!=null&&_0x3da1b9['ln']||(this[_0x30b6f7(0x150)]['ln']={}),!((_0x13ab25=this[_0x30b6f7(0x150)])==null||(_0x13ab25=_0x13ab25['ln'])==null)&&_0x13ab25[_0x30b6f7(0x123)]||(this['shapeData']['ln'][_0x30b6f7(0x123)]={}),this[_0x30b6f7(0x150)]['ln']['startArrow'][_0x30b6f7(0x138)]=_0x7b5985,this;}[_0x291bb4(0x124)](_0x2ae5fb){const _0x2e6c9f=_0x291bb4;var _0x38f201,_0x415815;return(_0x38f201=this['shapeData'])!=null&&_0x38f201['ln']||(this[_0x2e6c9f(0x150)]['ln']={}),!((_0x415815=this[_0x2e6c9f(0x150)])==null||(_0x415815=_0x415815['ln'])==null)&&_0x415815['endArrow']||(this[_0x2e6c9f(0x150)]['ln'][_0x2e6c9f(0x16d)]={}),this['shapeData']['ln'][_0x2e6c9f(0x16d)]['type']=_0x2ae5fb,this;}[_0x291bb4(0x121)](_0x11812d){const _0x1a9e83=_0x291bb4;var _0x42c5c4,_0x23ed3d;return(_0x42c5c4=this[_0x1a9e83(0x150)])!=null&&_0x42c5c4['ln']||(this[_0x1a9e83(0x150)]['ln']={}),!((_0x23ed3d=this[_0x1a9e83(0x150)])==null||(_0x23ed3d=_0x23ed3d['ln'])==null)&&_0x23ed3d[_0x1a9e83(0x123)]||(this['shapeData']['ln']['startArrow']={}),this[_0x1a9e83(0x150)]['ln'][_0x1a9e83(0x123)][_0x1a9e83(0x122)]=_0x11812d,this;}['setEndArrowSize'](_0x3242fc){const _0x2dc2df=_0x291bb4;var _0x1d564b,_0x5502e5;return(_0x1d564b=this[_0x2dc2df(0x150)])!=null&&_0x1d564b['ln']||(this[_0x2dc2df(0x150)]['ln']={}),!((_0x5502e5=this['shapeData'])==null||(_0x5502e5=_0x5502e5['ln'])==null)&&_0x5502e5['endArrow']||(this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]={}),this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]['size']=_0x3242fc,this;}[_0x291bb4(0x187)](){const _0x4c41ec=_0x291bb4;return super[_0x4c41ec(0x187)]();}[_0x291bb4(0x178)](){const _0x2217a7=_0x291bb4;var _0xc8c934;return((_0xc8c934=this[_0x2217a7(0x150)])==null||(_0xc8c934=_0xc8c934[_0x2217a7(0x182)])==null?void 0x0:_0xc8c934['to'])||null;}[_0x291bb4(0x13f)](){const _0x3392e2=_0x291bb4;var _0x5c0d3d;return((_0x5c0d3d=this[_0x3392e2(0x150)])==null||(_0x5c0d3d=_0x5c0d3d[_0x3392e2(0x182)])==null?void 0x0:_0x5c0d3d['from'])||null;}};function I(_0x8d8981,_0x41c625,_0x18d7f5,_0x2c17fe,_0x579bac,_0x478df6){const _0x44c814=_0x291bb4;let _0x13026d=_0x579bac[_0x44c814(0x15e)](_0x8d8981,_0x41c625,_0x18d7f5);if(!_0x13026d)return null;let _0x3643ac=_0x478df6[_0x44c814(0x14e)]({'unitId':_0x8d8981,'subUnitId':_0x41c625,'drawingId':_0x18d7f5});if(!(_0x3643ac!=null&&_0x3643ac[_0x44c814(0x12a)]))return null;let {left:_0x1d2b1e=0x0,top:_0x1583e0=0x0,width:_0x5e3e5d=0x0,height:_0x4f5724=0x0,flipX:_0xd2a02c=!0x1,flipY:_0x4f96af=!0x1,angle:_0x4791c9}=_0x3643ac[_0x44c814(0x12a)];_0x13026d[_0x44c814(0x130)]({'width':_0x5e3e5d,'height':_0x4f5724});let _0x1ad6aa=_0x13026d[_0x44c814(0x13d)]()[_0x44c814(0x17c)](_0x3c642d=>_0x3c642d[_0x44c814(0x17a)]===_0x2c17fe);if(!_0x1ad6aa)return null;let _0x265a76=_0xd2a02c?_0x5e3e5d-_0x1ad6aa['x']:_0x1ad6aa['x'],_0x5b618b=_0x4f96af?_0x4f5724-_0x1ad6aa['y']:_0x1ad6aa['y'];if(_0x4791c9&&_0x4791c9!==0x0){let _0x299421=_0x4791c9*Math['PI']/0xb4,_0x39492f=Math[_0x44c814(0x135)](_0x299421),_0x5525dd=Math[_0x44c814(0x174)](_0x299421),_0x38d391=_0x5e3e5d/0x2,_0x46530b=_0x4f5724/0x2,_0x28443a=_0x265a76-_0x38d391,_0x533292=_0x5b618b-_0x46530b;_0x265a76=_0x38d391+_0x28443a*_0x39492f-_0x533292*_0x5525dd,_0x5b618b=_0x46530b+_0x28443a*_0x5525dd+_0x533292*_0x39492f;}_0x265a76+=_0x1d2b1e,_0x5b618b+=_0x1583e0;let _0x3de08d=_0x1ad6aa[_0x44c814(0x16f)]/0xea60;_0xd2a02c&&(_0x3de08d=0xb4-_0x3de08d),_0x4f96af&&(_0x3de08d=-_0x3de08d),_0x3de08d+=_0x4791c9||0x0,_0x3de08d=(_0x3de08d%0x168+0x168)%0x168;let _0x10413b=_0x468f4d({'left':_0x1d2b1e,'top':_0x1583e0,'width':_0x5e3e5d,'height':_0x4f5724},_0x4791c9||0x0);return{'point':{'x':_0x265a76,'y':_0x5b618b},'angle':_0x3de08d,'bounds':_0x10413b};}function L(_0xa9b7bd,_0x14eabe){const _0x58da9c=_0x291bb4;let _0x2e2e4e=_0x14eabe['x']-_0xa9b7bd['x'],_0xc900d6=_0x14eabe['y']-_0xa9b7bd['y'];return Math[_0x58da9c(0x160)](_0x2e2e4e)>=Math[_0x58da9c(0x160)](_0xc900d6)?_0x2e2e4e>=0x0?0xb4:0x0:_0xc900d6>=0x0?0x10e:0x5a;}function R(_0x1876c6,_0x44a1ab,_0x4ad0cb,_0x575d5c,_0x15f0b8,_0x8d7868,_0x2eed4a){const _0x2fa57e=_0x291bb4;let _0xce97b1=_0x8d7868['getShapeModel'](_0x1876c6,_0x44a1ab,_0x4ad0cb);if(!_0xce97b1)return null;let _0x1d05e7=_0x2eed4a[_0x2fa57e(0x14e)]({'unitId':_0x1876c6,'subUnitId':_0x44a1ab,'drawingId':_0x4ad0cb});if(!(_0x1d05e7!=null&&_0x1d05e7[_0x2fa57e(0x12a)]))return null;let {left:_0x4fd262=0x0,top:_0x4ffc94=0x0,width:_0x458028=0x0,height:_0x457bba=0x0,flipX:_0x1fe5d2=!0x1,flipY:_0x54e319=!0x1}=_0x1d05e7[_0x2fa57e(0x12a)];_0xce97b1[_0x2fa57e(0x130)]({'width':_0x458028,'height':_0x457bba});let _0x10505f=_0xce97b1['getConnectorLinePoints']();if(_0x10505f[_0x2fa57e(0x181)]<0x2)return null;let _0x40eed3=_0x575d5c?_0x10505f[0x0]:_0x10505f[_0x10505f['length']-0x1],_0x3de4b7=new _0x3af6ac({'left':_0x4fd262,'top':_0x4ffc94,'width':_0x458028,'height':_0x457bba,'flipX':_0x1fe5d2,'flipY':_0x54e319})[_0x2fa57e(0x18d)](_0x40eed3);return{'point':_0x3de4b7,'angle':L(_0x15f0b8['point'],_0x3de4b7),'bounds':{'left':_0x3de4b7['x'],'top':_0x3de4b7['y'],'width':0x0,'height':0x0}};}var z=class extends _0x435e82{async[_0x291bb4(0x134)](_0x489826){const _0x5a1b45=_0x291bb4;let {unitId:_0x4cf428,subUnitId:_0x575cd8,shapeId:_0x2be68f,shapeType:_0x40a2ed,shapeData:_0x2964f9,x:_0x5dd0bc,y:_0x52f6a2,width:_0x4eddcb,height:_0x4cc8e2}=_0x489826;return this[_0x5a1b45(0x113)][_0x5a1b45(0x12d)](_0x2d78f8['id'],{'unitId':_0x4cf428,'subUnitId':_0x575cd8,'shapeId':_0x2be68f,'shapeType':_0x40a2ed,'shapeData':_0x2964f9,'position':{'x':_0x5dd0bc,'y':_0x52f6a2},'width':_0x4eddcb,'height':_0x4cc8e2});}async[_0x291bb4(0x168)](_0x4c6c48){const _0x5b1464=_0x291bb4;let {unitId:_0x186aa3,subUnitId:_0x5e0a50,shapeId:_0x43d57f,shapeType:_0x505f08,shapeData:_0x3eb725,x:_0x5ca3af,y:_0x4b298a,width:_0x1d349c,height:_0x3c47aa}=_0x4c6c48;return this['_commandService'][_0x5b1464(0x12d)](_0x268798['id'],{'unitId':_0x186aa3,'subUnitId':_0x5e0a50,'shapeId':_0x43d57f,'shapeType':_0x505f08,'shapeData':_0x3eb725,'position':{'x':_0x5ca3af,'y':_0x4b298a},'width':_0x1d349c,'height':_0x3c47aa});}['newShape'](_0xe9eec1){const _0x4a5ed0=_0x291bb4;let _0x50e147=this[_0x4a5ed0(0x148)]()['getUnitId'](),_0x40e240=this[_0x4a5ed0(0x12f)]();if(_0xe9eec1){let _0x1c4947=new P(_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)],this[_0x4a5ed0(0x126)]);return this[_0x4a5ed0(0x18c)](_0x1c4947,_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)]),_0x1c4947;}return new P(_0x50e147,_0x40e240,_0x506b1e(),this['_injector']);}[_0x291bb4(0x188)](_0x23fbc3){const _0x4cdc57=_0x291bb4;let _0x1db8f6=this['getWorkbook']()[_0x4cdc57(0x189)](),_0x2250c2=this[_0x4cdc57(0x12f)]();if(_0x23fbc3){let _0x55f236=new F(_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)],this[_0x4cdc57(0x126)]);return this[_0x4cdc57(0x18c)](_0x55f236,_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)]),_0x55f236;}return new F(_0x1db8f6,_0x2250c2,_0x506b1e(),this['_injector']);}[_0x291bb4(0x17e)](){const _0x76f708=_0x291bb4;let _0x261ce5=this[_0x76f708(0x126)]['get'](_0x14d135),_0x3a1cde=this[_0x76f708(0x148)]()[_0x76f708(0x189)](),_0x19bb16=this[_0x76f708(0x12f)](),_0x569dae=_0x261ce5[_0x76f708(0x11d)](_0x3a1cde,_0x19bb16);if(!_0x569dae)return[];let _0x3b72ca=[];for(let [_0x2e4454,_0xad1a7a]of Object[_0x76f708(0x140)](_0x569dae))if(_0xad1a7a&&_0xad1a7a['drawingType']===_0x255a32[_0x76f708(0x146)]){let _0x57779d=new P(_0x3a1cde,_0x19bb16,_0x2e4454,this[_0x76f708(0x126)]);this[_0x76f708(0x18c)](_0x57779d,_0x3a1cde,_0x19bb16,_0x2e4454),_0x3b72ca['push'](_0x57779d);}return _0x3b72ca;}[_0x291bb4(0x15c)](_0x5bb6ee){const _0x2a2a98=_0x291bb4;let {unitId:_0x45bfff,subUnitId:_0x41b3a7,drawId:_0x1c60e3}=_0x5bb6ee;return this['_commandService'][_0x2a2a98(0x12d)](_0x1fa062['id'],{'unitId':_0x45bfff,'drawings':[{'unitId':_0x45bfff,'subUnitId':_0x41b3a7,'drawingId':_0x1c60e3,'drawingType':_0x255a32['DRAWING_SHAPE']}]});}async[_0x291bb4(0x120)](_0x5064f9){const _0xa912f7=_0x291bb4;let {connector:_0x47335f,startTarget:_0x58bd20,endTarget:_0x3c4d5e}=_0x5064f9;if(!_0x58bd20&&!_0x3c4d5e)return!0x1;let _0x5340b4=this[_0xa912f7(0x148)]()[_0xa912f7(0x189)](),_0x1b1df8=this[_0xa912f7(0x12f)](),_0x43c8c5=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x32f133),_0xf1d35b=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x41f792),_0x654580=_0x43c8c5[_0xa912f7(0x15e)](_0x5340b4,_0x1b1df8,_0x47335f[_0xa912f7(0x151)]);if(!_0x654580)return!0x1;let _0x12d271=_0x654580[_0xa912f7(0x179)](),_0x2d4bc0=_0x654580[_0xa912f7(0x125)](),_0x5d8595={};for(let _0x45403a of _0x654580['getAdjustNames']()){let _0x18aec5=_0x654580[_0xa912f7(0x119)](_0x45403a);_0x18aec5!==void 0x0&&(_0x5d8595[_0x45403a]=_0x18aec5);}let {startInfo:_0x86a1cb,endInfo:_0x38758a}=this[_0xa912f7(0x167)](_0x5340b4,_0x1b1df8,_0x47335f,_0x654580,_0x58bd20,_0x3c4d5e,_0x43c8c5,_0xf1d35b,_0x2d4bc0);if(!_0x86a1cb||!_0x38758a)return!0x1;let _0x4fe045=_0x1390bf(_0x59fc77(_0x86a1cb,_0x38758a,_0x12d271),_0x12d271),_0x45cc63={};return _0x58bd20?_0x45cc63['from']={'shapeId':_0x58bd20['shape'][_0xa912f7(0x151)],'cxnIndex':_0x58bd20[_0xa912f7(0x143)]}:_0x2d4bc0!=null&&_0x2d4bc0['from']&&(_0x45cc63[_0xa912f7(0x154)]=_0x2d4bc0[_0xa912f7(0x154)]),_0x3c4d5e?_0x45cc63['to']={'shapeId':_0x3c4d5e[_0xa912f7(0x183)][_0xa912f7(0x151)],'cxnIndex':_0x3c4d5e['connectionSiteIndex']}:_0x2d4bc0!=null&&_0x2d4bc0['to']&&(_0x45cc63['to']=_0x2d4bc0['to']),this[_0xa912f7(0x113)][_0xa912f7(0x12d)](_0x219dd2['id'],{'unitId':_0x5340b4,'subUnitId':_0x1b1df8,'connectorShapeId':_0x47335f[_0xa912f7(0x151)],'width':_0x4fe045[_0xa912f7(0x156)]['width'],'height':_0x4fe045['worldRect'][_0xa912f7(0x172)],'left':_0x4fe045[_0xa912f7(0x156)][_0xa912f7(0x184)],'top':_0x4fe045['worldRect'][_0xa912f7(0x162)],'flipX':_0x4fe045['worldRect']['flipX']||!0x1,'flipY':_0x4fe045[_0xa912f7(0x156)]['flipY']||!0x1,'oldAdjustValues':_0x5d8595,'newAdjustValues':_0x4fe045['adjustValues'],'newLineType':_0x4fe045[_0xa912f7(0x15d)],'oldLineType':_0x12d271,'rotation':_0x4fe045[_0xa912f7(0x145)],'oldRelation':_0x2d4bc0,'newRelation':_0x45cc63});}[_0x291bb4(0x18c)](_0x58b9c9,_0x1cc1bf,_0x30f73a,_0x51dd5a){const _0x2add98=_0x291bb4;let _0x50e1e5=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x41f792)[_0x2add98(0x14e)]({'unitId':_0x1cc1bf,'subUnitId':_0x30f73a,'drawingId':_0x51dd5a});if(_0x50e1e5!=null&&_0x50e1e5['transform']){var _0x4404ca,_0x2f7c6d,_0x250518,_0xf08f46;_0x58b9c9['x']=(_0x4404ca=_0x50e1e5['transform'][_0x2add98(0x184)])==null?0x0:_0x4404ca,_0x58b9c9['y']=(_0x2f7c6d=_0x50e1e5['transform'][_0x2add98(0x162)])==null?0x0:_0x2f7c6d,_0x58b9c9[_0x2add98(0x152)]=(_0x250518=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x152)])==null?_0x58b9c9[_0x2add98(0x152)]:_0x250518,_0x58b9c9[_0x2add98(0x172)]=(_0xf08f46=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x172)])==null?_0x58b9c9[_0x2add98(0x172)]:_0xf08f46;}let _0x5930c3=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x32f133)[_0x2add98(0x15e)](_0x1cc1bf,_0x30f73a,_0x51dd5a);if(_0x5930c3){_0x58b9c9[_0x2add98(0x110)]=_0x5930c3[_0x2add98(0x179)]();let _0x195736=_0x5930c3[_0x2add98(0x14f)]();_0x195736&&(_0x58b9c9[_0x2add98(0x150)]=JSON['parse'](JSON[_0x2add98(0x132)](_0x195736)));}}[_0x291bb4(0x167)](_0xd84ca8,_0x20bf47,_0x53f6f1,_0x44ea04,_0x416fa1,_0x5eb004,_0x1b7505,_0x41b98a,_0x3d0389){const _0x434b74=_0x291bb4;let _0xbe91d8=null,_0x2b4212=null;return _0x416fa1&&(_0xbe91d8=I(_0xd84ca8,_0x20bf47,_0x416fa1['shape']['drawId'],_0x416fa1[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0x5eb004&&(_0x2b4212=I(_0xd84ca8,_0x20bf47,_0x5eb004[_0x434b74(0x183)][_0x434b74(0x151)],_0x5eb004[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0xbe91d8||(_0xbe91d8=this['_resolveExistingOrFreeEndpoint'](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x0,_0x2b4212,_0x3d0389==null?void 0x0:_0x3d0389['from'],_0x1b7505,_0x41b98a)),_0x2b4212||(_0x2b4212=this[_0x434b74(0x13e)](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x1,_0xbe91d8,_0x3d0389==null?void 0x0:_0x3d0389['to'],_0x1b7505,_0x41b98a)),{'startInfo':_0xbe91d8,'endInfo':_0x2b4212};}['_resolveExistingOrFreeEndpoint'](_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x1b67d3,_0x4d75d6,_0x33a6e1){const _0x15cf70=_0x291bb4;if(_0x1b67d3){let _0x46c05e=I(_0x4d1515,_0x1ac046,_0x1b67d3[_0x15cf70(0x115)],_0x1b67d3[_0x15cf70(0x11a)],_0x4d75d6,_0x33a6e1);if(_0x46c05e)return _0x46c05e;}return _0x25a3d9?R(_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x4d75d6,_0x33a6e1):null;}};_0x435e82[_0x291bb4(0x169)](z);export{F as FConnectorShape,P as FShape};
|
|
1
|
+
const _0x2294c8=_0x10e5;(function(_0x4d9f1d,_0x3815bc){const _0x4f039b=_0x10e5,_0x47dd03=_0x4d9f1d();while(!![]){try{const _0x5b786c=parseInt(_0x4f039b(0x20c))/0x1*(parseInt(_0x4f039b(0x1d6))/0x2)+-parseInt(_0x4f039b(0x1dc))/0x3+parseInt(_0x4f039b(0x1fe))/0x4*(parseInt(_0x4f039b(0x1c6))/0x5)+parseInt(_0x4f039b(0x23e))/0x6+-parseInt(_0x4f039b(0x24a))/0x7+parseInt(_0x4f039b(0x1e6))/0x8+parseInt(_0x4f039b(0x201))/0x9;if(_0x5b786c===_0x3815bc)break;else _0x47dd03['push'](_0x47dd03['shift']());}catch(_0x1e04c8){_0x47dd03['push'](_0x47dd03['shift']());}}}(_0x2ff6,0xd870b));import{ConnectorCoordinateTransform as _0x226b98,ShapeArrowSizeEnum as _0x1a009f,ShapeArrowTypeEnum as _0x1b13c3,ShapeFillEnum as _0x17ad7b,ShapeGradientTypeEnum as _0xc86cba,ShapeLineCapEnum as _0x21b06d,ShapeLineDashEnum as _0x51187e,ShapeLineJoinEnum as _0x45dc6f,ShapeLineTypeEnum as _0x2121d7,ShapeTypeEnum as _0x4f25b2,computeConnectorRouteLayout as _0x8012ef,getBasicShapeRotateBound as _0x5350e5,isConnectorShape as _0xe1c987,routeConnectorLineShape as _0x1966ac}from'@univerjs-pro/engine-shape';import{FEnum as _0x468a15}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x11c2a4,DEFAULT_SHAPE_WIDTH as _0xdabd8b,InsertShapeCommand as _0x2b5f84,SetShapeDrawingDataCommand as _0x4bd9a0,SheetsShapeService as _0x5c3722,UpdateConnectorRelationCommand as _0x3ac70a}from'@univerjs-pro/sheets-shape';function _0x2ff6(){const _0x4aa9d5=['executeCommand','getShapeModel','build','stroke','setAbsolutePosition','1875964jeiWQX','constructor','abs','15225786xAednD','setStrokeLineDashType','getWorkbook','ShapeTypeEnum','getConnectionSiteList','SolidFill','drawingType','_resolveEndpoints','setEndArrowSize','ang','defineProperty','7PSNceE','drawId','capType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','worldRect','GradientFill','getDrawingData','Skeleton\x20for\x20unitId\x20','setNoneFill','_commandService','getAdjustValueByName','height','subUnitId','ShapeLineJoinEnum','adjustValues','localToWorld','top','ShapeArrowSizeEnum','type','NoFill','fillType','shapeType','string','prototype','getConnectionSites','cxnIndex','lineJoinType','transform','object','getDrawingByParam','insertShape','rotation','length','_injector','setStrokeColor','ShapeArrowTypeEnum','\x20and\x20subUnitId\x20','symbol','getStartConnectInfo','shapeId','cos','connectShapes','DRAWING_SHAPE','getSheetId','call','function','ShapeLineCapEnum','gradientType','setEndArrowType','2709090pIvfIz','connectionSiteIndex','relation','getDrawingPoints','setStrokeLineType','size','find','getSize','setWidth','fill','isLineShape','getConnectorLinePoints','11366705cvCvsZ','width','15plLmKY','getShapeRelation','ShapeFillEnum','flipX','unitId','ShapeLineTypeEnum','ensureSkeleton','setStartArrowSize','updateShape','getShapeId','stringify','opacity','updateContext','shapeData','getAdjustPoints','getAdjustNames','108326TSsoHM','setStrokeWidth','endArrow','setShapeGradientFill','removeShape','setHeight','4286337SAgFHD','left','ShapeLineDashEnum','_resolveExistingOrFreeEndpoint','default','getShapeData','flipY','get','getShapes','keys','78000tfLxHq','_preloadShapeProperties',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getEndConnectInfo','\x20not\x20found','gradientAngle','getUnitId','ShapeGradientTypeEnum','setStartArrowType','startArrow','setShapeType','shape','setStrokeOpacity','from','point','gradientStops','getShapeType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend'];_0x2ff6=function(){return _0x4aa9d5;};return _0x2ff6();}import{DrawingTypeEnum as _0x285b45,generateRandomId as _0x4e4bad}from'@univerjs/core';import{IDrawingManagerService as _0x4e860d}from'@univerjs/drawing';import{SheetSkeletonService as _0xe5b182,convertPositionCellToSheetOverGrid as _0x439023}from'@univerjs/sheets';import{ISheetDrawingService as _0xa71416,RemoveSheetDrawingCommand as _0x1b2369}from'@univerjs/sheets-drawing';import{FWorksheet as _0x4f6f37}from'@univerjs/sheets/facade';var k=class extends _0x468a15{get[_0x2294c8(0x204)](){return _0x4f25b2;}get[_0x2294c8(0x1c8)](){return _0x17ad7b;}get[_0x2294c8(0x1ed)](){return _0xc86cba;}get[_0x2294c8(0x1cb)](){return _0x2121d7;}get[_0x2294c8(0x1de)](){return _0x51187e;}get[_0x2294c8(0x23b)](){return _0x21b06d;}get[_0x2294c8(0x21a)](){return _0x45dc6f;}get[_0x2294c8(0x230)](){return _0x1b13c3;}get[_0x2294c8(0x21e)](){return _0x1a009f;}};_0x468a15[_0x2294c8(0x1f8)](k);function A(_0xf329cf){'@babel/helpers - typeof';const _0x27b098=_0x2294c8;return A=typeof Symbol==_0x27b098(0x23a)&&typeof Symbol['iterator']==_0x27b098(0x232)?function(_0x13f09d){return typeof _0x13f09d;}:function(_0x30c5f2){const _0x10ed6f=_0x27b098;return _0x30c5f2&&typeof Symbol==_0x10ed6f(0x23a)&&_0x30c5f2[_0x10ed6f(0x1ff)]===Symbol&&_0x30c5f2!==Symbol[_0x10ed6f(0x224)]?_0x10ed6f(0x232):typeof _0x30c5f2;},A(_0xf329cf);}function j(_0x179464,_0x20af1c){const _0x4f28d2=_0x2294c8;if(A(_0x179464)!=_0x4f28d2(0x229)||!_0x179464)return _0x179464;var _0x3d5b3e=_0x179464[Symbol['toPrimitive']];if(_0x3d5b3e!==void 0x0){var _0x5aa1ec=_0x3d5b3e[_0x4f28d2(0x239)](_0x179464,_0x20af1c||_0x4f28d2(0x1e0));if(A(_0x5aa1ec)!=_0x4f28d2(0x229))return _0x5aa1ec;throw TypeError(_0x4f28d2(0x20f));}return(_0x20af1c===_0x4f28d2(0x223)?String:Number)(_0x179464);}function M(_0x14370d){const _0x5381fe=_0x2294c8;var _0x4df15d=j(_0x14370d,_0x5381fe(0x223));return A(_0x4df15d)=='symbol'?_0x4df15d:_0x4df15d+'';}function N(_0x359362,_0x144c50,_0x430d56){const _0x12cec9=_0x2294c8;return(_0x144c50=M(_0x144c50))in _0x359362?Object[_0x12cec9(0x20b)](_0x359362,_0x144c50,{'value':_0x430d56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x359362[_0x144c50]=_0x430d56,_0x359362;}var P=class{constructor(_0x5de167,_0x23939b,_0x1f7e1a,_0x986594){const _0xf485ad=_0x2294c8;N(this,_0xf485ad(0x1ca),void 0x0),N(this,_0xf485ad(0x219),void 0x0),N(this,_0xf485ad(0x20d),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0xf485ad(0x1c5),_0xdabd8b),N(this,_0xf485ad(0x218),_0x11c2a4),N(this,_0xf485ad(0x222),void 0x0),N(this,_0xf485ad(0x1d3),{}),N(this,_0xf485ad(0x22e),void 0x0),this[_0xf485ad(0x1ca)]=_0x5de167,this[_0xf485ad(0x219)]=_0x23939b,this[_0xf485ad(0x20d)]=_0x1f7e1a||_0x4e4bad(),this[_0xf485ad(0x22e)]=_0x986594;}['setPosition'](_0x1bcaa6,_0x5bef2a,_0x1c221b,_0x90f467){const _0x3697a8=_0x2294c8;let _0x4dd757=this['_injector'][_0x3697a8(0x1e3)](_0xe5b182)[_0x3697a8(0x1cc)](this[_0x3697a8(0x1ca)],this['subUnitId']);if(!_0x4dd757)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x3697a8(0x1ca)]+'\x20and\x20subUnitId\x20'+this[_0x3697a8(0x219)]+_0x3697a8(0x1ea));let {transform:_0x4eb9cd}=_0x439023(this[_0x3697a8(0x1ca)],this[_0x3697a8(0x219)],{'row':_0x1bcaa6,'column':_0x5bef2a,'rowOffset':_0x1c221b,'columnOffset':_0x90f467},0x1,0x1,_0x4dd757);return this['x']=_0x4eb9cd[_0x3697a8(0x1dd)],this['y']=_0x4eb9cd[_0x3697a8(0x21d)],this;}[_0x2294c8(0x1fd)](_0x50bac6,_0x3914c7){return this['x']=_0x50bac6,this['y']=_0x3914c7,this;}[_0x2294c8(0x1f0)](_0x236164){const _0x30e354=_0x2294c8;return this[_0x30e354(0x222)]=_0x236164,this;}['setShapeData'](_0x5b82f9){const _0x1a3f48=_0x2294c8;return _0x5b82f9['shapeType']&&this[_0x1a3f48(0x1f0)](_0x5b82f9[_0x1a3f48(0x222)]),this['shapeData']={..._0x5b82f9},this;}['setShapeSolidFill'](_0x313fdf,_0x5b570d){const _0x2c93fa=_0x2294c8;return this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)]||(this[_0x2c93fa(0x1d3)]['fill']={}),this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)][_0x2c93fa(0x221)]=_0x17ad7b[_0x2c93fa(0x206)],_0x313fdf!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill']['color']=_0x313fdf),_0x5b570d!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill'][_0x2c93fa(0x1d1)]=_0x5b570d),this;}[_0x2294c8(0x1d9)](_0x55d2fe,_0x385c53,_0x664497){const _0x361935=_0x2294c8;if(_0x385c53===void 0x0||_0x385c53[_0x361935(0x22d)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this['shapeData'][_0x361935(0x247)]||(this['shapeData'][_0x361935(0x247)]={}),this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1f5)]=_0x385c53,this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x221)]=_0x17ad7b[_0x361935(0x212)],this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x23c)]=_0x55d2fe,_0x664497!==void 0x0&&(this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1eb)]=_0x664497),this;}[_0x2294c8(0x215)](){const _0x1ff339=_0x2294c8;return this[_0x1ff339(0x1d3)][_0x1ff339(0x247)]={'fillType':_0x17ad7b[_0x1ff339(0x220)]},this;}[_0x2294c8(0x22f)](_0x2fa00e){const _0xaffb99=_0x2294c8;return this[_0xaffb99(0x1d3)][_0xaffb99(0x1fc)]||(this[_0xaffb99(0x1d3)]['stroke']={}),this[_0xaffb99(0x1d3)]['stroke']['color']=_0x2fa00e,this;}[_0x2294c8(0x1d7)](_0xbf4748){const _0x125361=_0x2294c8;return this[_0x125361(0x1d3)]['stroke']||(this['shapeData'][_0x125361(0x1fc)]={}),this[_0x125361(0x1d3)][_0x125361(0x1fc)][_0x125361(0x1c5)]=_0xbf4748,this;}[_0x2294c8(0x202)](_0x29ca2a){const _0x41785a=_0x2294c8;return this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]||(this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]={}),this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]['dashType']=_0x29ca2a,this;}['setStrokeLineJoinType'](_0x45b777){const _0x1cc131=_0x2294c8;return this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]||(this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]={}),this[_0x1cc131(0x1d3)]['stroke'][_0x1cc131(0x227)]=_0x45b777,this;}['setStrokeLineCapType'](_0x33ba9d){const _0x375a73=_0x2294c8;return this[_0x375a73(0x1d3)][_0x375a73(0x1fc)]||(this['shapeData']['stroke']={}),this[_0x375a73(0x1d3)][_0x375a73(0x1fc)][_0x375a73(0x20e)]=_0x33ba9d,this;}[_0x2294c8(0x1f2)](_0x23590f){const _0x3696cf=_0x2294c8;return this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]||(this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]={}),this['shapeData']['stroke']['opacity']=_0x23590f,this;}[_0x2294c8(0x242)](_0x4874cd){const _0x13eb83=_0x2294c8;return this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]||(this['shapeData'][_0x13eb83(0x1fc)]={}),this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]['lineStrokeType']=_0x4874cd,this;}[_0x2294c8(0x246)](_0x4ea888){return this['width']=_0x4ea888,this;}[_0x2294c8(0x1db)](_0x12a528){const _0x5f910d=_0x2294c8;return this[_0x5f910d(0x218)]=_0x12a528,this;}[_0x2294c8(0x248)](){const _0x1f090f=_0x2294c8;let _0x4715c3=this['_injector'][_0x1f090f(0x1e3)](_0x5c3722)['getShapeModel'](this[_0x1f090f(0x1ca)],this['subUnitId'],this[_0x1f090f(0x20d)]);return _0x4715c3?_0xe1c987(_0x4715c3[_0x1f090f(0x1f6)]()):this[_0x1f090f(0x222)]?_0xe1c987(this[_0x1f090f(0x222)]):!0x1;}[_0x2294c8(0x225)](){const _0x3260f3=_0x2294c8;let _0x411a55=this[_0x3260f3(0x22e)]['get'](_0x5c3722)['getShapeModel'](this[_0x3260f3(0x1ca)],this[_0x3260f3(0x219)],this['drawId']);if(!_0x411a55)return[];let _0x3d5dfa=this[_0x3260f3(0x22e)]['get'](_0x4e860d)[_0x3260f3(0x22a)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3260f3(0x20d)]});if(!(_0x3d5dfa!=null&&_0x3d5dfa['transform']))return[];let {width:_0x3e7e55=0x0,height:_0x47b691=0x0}=_0x3d5dfa[_0x3260f3(0x228)];return _0x411a55['updateContext']({'width':_0x3e7e55,'height':_0x47b691}),_0x411a55[_0x3260f3(0x205)]();}[_0x2294c8(0x1d4)](){const _0x514a6d=_0x2294c8;let _0x16fdf4=this[_0x514a6d(0x22e)]['get'](_0x5c3722)[_0x514a6d(0x1fa)](this[_0x514a6d(0x1ca)],this['subUnitId'],this[_0x514a6d(0x20d)]);if(!_0x16fdf4)return[];let _0x1706b3=this[_0x514a6d(0x22e)][_0x514a6d(0x1e3)](_0x4e860d)[_0x514a6d(0x22a)]({'unitId':this['unitId'],'subUnitId':this[_0x514a6d(0x219)],'drawingId':this[_0x514a6d(0x20d)]});if(!(_0x1706b3!=null&&_0x1706b3[_0x514a6d(0x228)]))return[];let {width:_0x41dce9=0x0,height:_0x33e58c=0x0}=_0x1706b3[_0x514a6d(0x228)];return _0x16fdf4['updateContext']({'width':_0x41dce9,'height':_0x33e58c}),_0x16fdf4[_0x514a6d(0x241)]();}[_0x2294c8(0x249)](){const _0x411be5=_0x2294c8;let _0x132594=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x5c3722)[_0x411be5(0x1fa)](this[_0x411be5(0x1ca)],this['subUnitId'],this[_0x411be5(0x20d)]);if(!_0x132594||!_0xe1c987(_0x132594[_0x411be5(0x1f6)]()))return[];let _0x2b025b=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x4e860d)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x411be5(0x219)],'drawingId':this[_0x411be5(0x20d)]});if(!(_0x2b025b!=null&&_0x2b025b[_0x411be5(0x228)]))return[];let {width:_0x476173=0x0,height:_0xd1f238=0x0}=_0x2b025b[_0x411be5(0x228)];return _0x132594[_0x411be5(0x1d2)]({'width':_0x476173,'height':_0xd1f238}),_0x132594[_0x411be5(0x249)]();}[_0x2294c8(0x233)](){const _0x486827=_0x2294c8;var _0x438855;let _0x8ed768=this[_0x486827(0x22e)][_0x486827(0x1e3)](_0x5c3722)[_0x486827(0x1fa)](this[_0x486827(0x1ca)],this[_0x486827(0x219)],this[_0x486827(0x20d)]);return _0x8ed768?(_0x438855=_0x8ed768[_0x486827(0x233)]())==null?null:_0x438855:null;}[_0x2294c8(0x1e9)](){const _0x1b2317=_0x2294c8;var _0x1724a0;let _0x48e208=this['_injector'][_0x1b2317(0x1e3)](_0x5c3722)[_0x1b2317(0x1fa)](this[_0x1b2317(0x1ca)],this[_0x1b2317(0x219)],this['drawId']);return _0x48e208?(_0x1724a0=_0x48e208[_0x1b2317(0x1e9)]())==null?null:_0x1724a0:null;}[_0x2294c8(0x1fb)](){const _0x5cc4ee=_0x2294c8;var _0x153fbb,_0x4e7bde;if(!this[_0x5cc4ee(0x222)])throw Error(_0x5cc4ee(0x1f7));if(this['x']===0x0||this['y']===0x0){let _0x5aaea5=this['_injector'][_0x5cc4ee(0x1e3)](_0xe5b182)['ensureSkeleton'](this['unitId'],this['subUnitId']);if(!_0x5aaea5)throw Error(_0x5cc4ee(0x214)+this[_0x5cc4ee(0x1ca)]+_0x5cc4ee(0x231)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3312e3}=_0x439023(this[_0x5cc4ee(0x1ca)],this[_0x5cc4ee(0x219)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5aaea5);this['x']=this['x']>0x0?this['x']:_0x3312e3[_0x5cc4ee(0x1dd)],this['y']=this['y']>0x0?this['y']:_0x3312e3[_0x5cc4ee(0x21d)];}return this['width']=(_0x153fbb=this[_0x5cc4ee(0x1c5)])==null?_0xdabd8b:_0x153fbb,this['height']=(_0x4e7bde=this[_0x5cc4ee(0x218)])==null?_0x11c2a4:_0x4e7bde,{'unitId':this[_0x5cc4ee(0x1ca)],'subUnitId':this[_0x5cc4ee(0x219)],'shapeId':this[_0x5cc4ee(0x20d)],'shapeType':this[_0x5cc4ee(0x222)],'shapeData':Object[_0x5cc4ee(0x1e5)](this[_0x5cc4ee(0x1d3)])[_0x5cc4ee(0x22d)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x5cc4ee(0x218)]};}[_0x2294c8(0x1cf)](){const _0x299801=_0x2294c8;return this[_0x299801(0x20d)];}[_0x2294c8(0x1f6)](){const _0x2bbab4=_0x2294c8;return this[_0x2bbab4(0x222)];}[_0x2294c8(0x1e1)](){const _0x3e91c9=_0x2294c8;return this[_0x3e91c9(0x1d3)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x2294c8(0x245)](){const _0x18b848=_0x2294c8;return{'width':this['width'],'height':this[_0x18b848(0x218)]};}},F=class extends P{constructor(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813){const _0x37e36c=_0x2294c8;super(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813),N(this,_0x37e36c(0x1d3),{});}[_0x2294c8(0x1f0)](_0x13a1a3){const _0x2c6723=_0x2294c8;if(!_0xe1c987(_0x13a1a3))throw Error(_0x2c6723(0x210)+_0x13a1a3+_0x2c6723(0x1e8));return super['setShapeType'](_0x13a1a3),this;}[_0x2294c8(0x1ee)](_0x599217){const _0x1d3eea=_0x2294c8;var _0x2609be,_0x39a67e;return(_0x2609be=this[_0x1d3eea(0x1d3)])!=null&&_0x2609be['ln']||(this['shapeData']['ln']={}),!((_0x39a67e=this[_0x1d3eea(0x1d3)])==null||(_0x39a67e=_0x39a67e['ln'])==null)&&_0x39a67e['startArrow']||(this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)]={}),this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)][_0x1d3eea(0x21f)]=_0x599217,this;}[_0x2294c8(0x23d)](_0x3dd134){const _0x5aa569=_0x2294c8;var _0xfa308,_0x351dd6;return(_0xfa308=this[_0x5aa569(0x1d3)])!=null&&_0xfa308['ln']||(this[_0x5aa569(0x1d3)]['ln']={}),!((_0x351dd6=this[_0x5aa569(0x1d3)])==null||(_0x351dd6=_0x351dd6['ln'])==null)&&_0x351dd6[_0x5aa569(0x1d8)]||(this[_0x5aa569(0x1d3)]['ln'][_0x5aa569(0x1d8)]={}),this['shapeData']['ln']['endArrow'][_0x5aa569(0x21f)]=_0x3dd134,this;}[_0x2294c8(0x1cd)](_0x31eab9){const _0xf4d18e=_0x2294c8;var _0x40bd11,_0x134d29;return(_0x40bd11=this[_0xf4d18e(0x1d3)])!=null&&_0x40bd11['ln']||(this[_0xf4d18e(0x1d3)]['ln']={}),!((_0x134d29=this['shapeData'])==null||(_0x134d29=_0x134d29['ln'])==null)&&_0x134d29[_0xf4d18e(0x1ef)]||(this[_0xf4d18e(0x1d3)]['ln']['startArrow']={}),this[_0xf4d18e(0x1d3)]['ln']['startArrow'][_0xf4d18e(0x243)]=_0x31eab9,this;}[_0x2294c8(0x209)](_0x5179ba){const _0x3a6800=_0x2294c8;var _0x4f9409,_0x250ee5;return(_0x4f9409=this[_0x3a6800(0x1d3)])!=null&&_0x4f9409['ln']||(this[_0x3a6800(0x1d3)]['ln']={}),!((_0x250ee5=this[_0x3a6800(0x1d3)])==null||(_0x250ee5=_0x250ee5['ln'])==null)&&_0x250ee5[_0x3a6800(0x1d8)]||(this[_0x3a6800(0x1d3)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x3a6800(0x1d8)][_0x3a6800(0x243)]=_0x5179ba,this;}[_0x2294c8(0x1fb)](){return super['build']();}[_0x2294c8(0x1e9)](){const _0x271a70=_0x2294c8;var _0x3b5a6e;return((_0x3b5a6e=this[_0x271a70(0x1d3)])==null||(_0x3b5a6e=_0x3b5a6e[_0x271a70(0x240)])==null?void 0x0:_0x3b5a6e['to'])||null;}[_0x2294c8(0x233)](){const _0x7f272e=_0x2294c8;var _0x19b794;return((_0x19b794=this['shapeData'])==null||(_0x19b794=_0x19b794[_0x7f272e(0x240)])==null?void 0x0:_0x19b794[_0x7f272e(0x1f3)])||null;}};function I(_0x20336c,_0x1dfd7b,_0x14df5a,_0x36efcb,_0x4a590e,_0x25c7a7){const _0x331a96=_0x2294c8;let _0x45800d=_0x4a590e[_0x331a96(0x1fa)](_0x20336c,_0x1dfd7b,_0x14df5a);if(!_0x45800d)return null;let _0x3d7c50=_0x25c7a7['getDrawingByParam']({'unitId':_0x20336c,'subUnitId':_0x1dfd7b,'drawingId':_0x14df5a});if(!(_0x3d7c50!=null&&_0x3d7c50[_0x331a96(0x228)]))return null;let {left:_0x310935=0x0,top:_0x519fae=0x0,width:_0x201003=0x0,height:_0x525de1=0x0,flipX:_0x2ed3e6=!0x1,flipY:_0x2b6667=!0x1,angle:_0x134923}=_0x3d7c50[_0x331a96(0x228)];_0x45800d[_0x331a96(0x1d2)]({'width':_0x201003,'height':_0x525de1});let _0x1ac5ed=_0x45800d[_0x331a96(0x205)]()[_0x331a96(0x244)](_0x58cc8e=>_0x58cc8e['index']===_0x36efcb);if(!_0x1ac5ed)return null;let _0x15ec78=_0x2ed3e6?_0x201003-_0x1ac5ed['x']:_0x1ac5ed['x'],_0x438821=_0x2b6667?_0x525de1-_0x1ac5ed['y']:_0x1ac5ed['y'];if(_0x134923&&_0x134923!==0x0){let _0x3f203a=_0x134923*Math['PI']/0xb4,_0x283e8d=Math[_0x331a96(0x235)](_0x3f203a),_0x2d1844=Math['sin'](_0x3f203a),_0x3820d9=_0x201003/0x2,_0x3f63bf=_0x525de1/0x2,_0x36e6f8=_0x15ec78-_0x3820d9,_0xbb0eb9=_0x438821-_0x3f63bf;_0x15ec78=_0x3820d9+_0x36e6f8*_0x283e8d-_0xbb0eb9*_0x2d1844,_0x438821=_0x3f63bf+_0x36e6f8*_0x2d1844+_0xbb0eb9*_0x283e8d;}_0x15ec78+=_0x310935,_0x438821+=_0x519fae;let _0x527b10=_0x1ac5ed[_0x331a96(0x20a)]/0xea60;_0x2ed3e6&&(_0x527b10=0xb4-_0x527b10),_0x2b6667&&(_0x527b10=-_0x527b10),_0x527b10+=_0x134923||0x0,_0x527b10=(_0x527b10%0x168+0x168)%0x168;let _0x1104a8=_0x5350e5({'left':_0x310935,'top':_0x519fae,'width':_0x201003,'height':_0x525de1},_0x134923||0x0);return{'point':{'x':_0x15ec78,'y':_0x438821},'angle':_0x527b10,'bounds':_0x1104a8};}function L(_0x457973,_0x467354){const _0x2b083d=_0x2294c8;let _0x4c5881=_0x467354['x']-_0x457973['x'],_0x268f7e=_0x467354['y']-_0x457973['y'];return Math[_0x2b083d(0x200)](_0x4c5881)>=Math['abs'](_0x268f7e)?_0x4c5881>=0x0?0xb4:0x0:_0x268f7e>=0x0?0x10e:0x5a;}function R(_0x42ebd4,_0x41045c,_0x346f0d,_0x42f598,_0x49e4fa,_0x5868c6,_0x69a39d){const _0xb7570f=_0x2294c8;let _0x1de5ea=_0x5868c6[_0xb7570f(0x1fa)](_0x42ebd4,_0x41045c,_0x346f0d);if(!_0x1de5ea)return null;let _0xf9636d=_0x69a39d['getDrawingByParam']({'unitId':_0x42ebd4,'subUnitId':_0x41045c,'drawingId':_0x346f0d});if(!(_0xf9636d!=null&&_0xf9636d[_0xb7570f(0x228)]))return null;let {left:_0x1d932a=0x0,top:_0x654a09=0x0,width:_0x17721b=0x0,height:_0x5db118=0x0,flipX:_0x374390=!0x1,flipY:_0x529e77=!0x1}=_0xf9636d['transform'];_0x1de5ea['updateContext']({'width':_0x17721b,'height':_0x5db118});let _0xdfeaa6=_0x1de5ea[_0xb7570f(0x249)]();if(_0xdfeaa6['length']<0x2)return null;let _0x311ead=_0x42f598?_0xdfeaa6[0x0]:_0xdfeaa6[_0xdfeaa6['length']-0x1],_0x5efb79=new _0x226b98({'left':_0x1d932a,'top':_0x654a09,'width':_0x17721b,'height':_0x5db118,'flipX':_0x374390,'flipY':_0x529e77})[_0xb7570f(0x21c)](_0x311ead);return{'point':_0x5efb79,'angle':L(_0x49e4fa[_0xb7570f(0x1f4)],_0x5efb79),'bounds':{'left':_0x5efb79['x'],'top':_0x5efb79['y'],'width':0x0,'height':0x0}};}function _0x10e5(_0x2a12c3,_0x79ac5a){_0x2a12c3=_0x2a12c3-0x1c5;const _0x2ff63f=_0x2ff6();let _0x10e548=_0x2ff63f[_0x2a12c3];return _0x10e548;}var z=class extends _0x4f6f37{async[_0x2294c8(0x22b)](_0x518ede){const _0x2687ee=_0x2294c8;let {unitId:_0x13c442,subUnitId:_0x590a86,shapeId:_0x499271,shapeType:_0x459c80,shapeData:_0x2e719a,x:_0x317d35,y:_0x4583c4,width:_0x2650aa,height:_0x5b6add}=_0x518ede;return this[_0x2687ee(0x216)][_0x2687ee(0x1f9)](_0x2b5f84['id'],{'unitId':_0x13c442,'subUnitId':_0x590a86,'shapeId':_0x499271,'shapeType':_0x459c80,'shapeData':_0x2e719a,'position':{'x':_0x317d35,'y':_0x4583c4},'width':_0x2650aa,'height':_0x5b6add});}async[_0x2294c8(0x1ce)](_0x534acf){const _0x3e9c87=_0x2294c8;let {unitId:_0x3cd1c5,subUnitId:_0x42e559,shapeId:_0x33282e,shapeType:_0x57fd12,shapeData:_0x12c1db,x:_0x3b4908,y:_0xf60132,width:_0x1887e3,height:_0x203ae6}=_0x534acf;return this[_0x3e9c87(0x216)][_0x3e9c87(0x1f9)](_0x4bd9a0['id'],{'unitId':_0x3cd1c5,'subUnitId':_0x42e559,'shapeId':_0x33282e,'shapeType':_0x57fd12,'shapeData':_0x12c1db,'position':{'x':_0x3b4908,'y':_0xf60132},'width':_0x1887e3,'height':_0x203ae6});}['newShape'](_0x339dd0){const _0x5de9c2=_0x2294c8;let _0x1489bb=this[_0x5de9c2(0x203)]()[_0x5de9c2(0x1ec)](),_0x472bb4=this[_0x5de9c2(0x238)]();if(_0x339dd0){let _0x4e3568=new P(_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)],this['_injector']);return this[_0x5de9c2(0x1e7)](_0x4e3568,_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)]),_0x4e3568;}return new P(_0x1489bb,_0x472bb4,_0x4e4bad(),this['_injector']);}['newConnector'](_0x43fc0d){const _0x47823c=_0x2294c8;let _0x3f05c9=this[_0x47823c(0x203)]()[_0x47823c(0x1ec)](),_0x4f1ee3=this['getSheetId']();if(_0x43fc0d){let _0x220291=new F(_0x3f05c9,_0x4f1ee3,_0x43fc0d['drawId'],this[_0x47823c(0x22e)]);return this['_preloadShapeProperties'](_0x220291,_0x3f05c9,_0x4f1ee3,_0x43fc0d[_0x47823c(0x20d)]),_0x220291;}return new F(_0x3f05c9,_0x4f1ee3,_0x4e4bad(),this[_0x47823c(0x22e)]);}[_0x2294c8(0x1e4)](){const _0x7390e2=_0x2294c8;let _0x120489=this[_0x7390e2(0x22e)][_0x7390e2(0x1e3)](_0xa71416),_0x3d597f=this[_0x7390e2(0x203)]()['getUnitId'](),_0x2a2e0f=this[_0x7390e2(0x238)](),_0x509c9f=_0x120489[_0x7390e2(0x213)](_0x3d597f,_0x2a2e0f);if(!_0x509c9f)return[];let _0xc15c52=[];for(let [_0x253011,_0x1d4231]of Object['entries'](_0x509c9f))if(_0x1d4231&&_0x1d4231[_0x7390e2(0x207)]===_0x285b45[_0x7390e2(0x237)]){let _0x57cf5c=new P(_0x3d597f,_0x2a2e0f,_0x253011,this[_0x7390e2(0x22e)]);this[_0x7390e2(0x1e7)](_0x57cf5c,_0x3d597f,_0x2a2e0f,_0x253011),_0xc15c52['push'](_0x57cf5c);}return _0xc15c52;}[_0x2294c8(0x1da)](_0x5dcdfe){const _0x2c691b=_0x2294c8;let {unitId:_0x3bb5ec,subUnitId:_0xbcc1d0,drawId:_0x1004d8}=_0x5dcdfe;return this[_0x2c691b(0x216)][_0x2c691b(0x1f9)](_0x1b2369['id'],{'unitId':_0x3bb5ec,'drawings':[{'unitId':_0x3bb5ec,'subUnitId':_0xbcc1d0,'drawingId':_0x1004d8,'drawingType':_0x285b45[_0x2c691b(0x237)]}]});}async[_0x2294c8(0x236)](_0x10c630){const _0x4e2616=_0x2294c8;let {connector:_0x90d6cd,startTarget:_0x410607,endTarget:_0x49f4f8}=_0x10c630;if(!_0x410607&&!_0x49f4f8)return!0x1;let _0x4fe5f4=this['getWorkbook']()[_0x4e2616(0x1ec)](),_0x1d5dca=this[_0x4e2616(0x238)](),_0x5b30a5=this[_0x4e2616(0x22e)][_0x4e2616(0x1e3)](_0x5c3722),_0x42ea4c=this[_0x4e2616(0x22e)]['get'](_0x4e860d),_0x3f9b57=_0x5b30a5[_0x4e2616(0x1fa)](_0x4fe5f4,_0x1d5dca,_0x90d6cd[_0x4e2616(0x20d)]);if(!_0x3f9b57)return!0x1;let _0x1e639e=_0x3f9b57['getShapeType'](),_0x3fbcad=_0x3f9b57[_0x4e2616(0x1c7)](),_0x32b2f6={};for(let _0x14f71e of _0x3f9b57[_0x4e2616(0x1d5)]()){let _0x23047e=_0x3f9b57[_0x4e2616(0x217)](_0x14f71e);_0x23047e!==void 0x0&&(_0x32b2f6[_0x14f71e]=_0x23047e);}let {startInfo:_0x3ca704,endInfo:_0x33e99c}=this[_0x4e2616(0x208)](_0x4fe5f4,_0x1d5dca,_0x90d6cd,_0x3f9b57,_0x410607,_0x49f4f8,_0x5b30a5,_0x42ea4c,_0x3fbcad);if(!_0x3ca704||!_0x33e99c)return!0x1;let _0xe9ee61=_0x8012ef(_0x1966ac(_0x3ca704,_0x33e99c,_0x1e639e),_0x1e639e),_0x3834d4={};return _0x410607?_0x3834d4[_0x4e2616(0x1f3)]={'shapeId':_0x410607['shape'][_0x4e2616(0x20d)],'cxnIndex':_0x410607['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['from']&&(_0x3834d4[_0x4e2616(0x1f3)]=_0x3fbcad[_0x4e2616(0x1f3)]),_0x49f4f8?_0x3834d4['to']={'shapeId':_0x49f4f8[_0x4e2616(0x1f1)]['drawId'],'cxnIndex':_0x49f4f8['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['to']&&(_0x3834d4['to']=_0x3fbcad['to']),this[_0x4e2616(0x216)][_0x4e2616(0x1f9)](_0x3ac70a['id'],{'unitId':_0x4fe5f4,'subUnitId':_0x1d5dca,'connectorShapeId':_0x90d6cd[_0x4e2616(0x20d)],'width':_0xe9ee61[_0x4e2616(0x211)]['width'],'height':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x218)],'left':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1dd)],'top':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x21d)],'flipX':_0xe9ee61['worldRect'][_0x4e2616(0x1c9)]||!0x1,'flipY':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1e2)]||!0x1,'oldAdjustValues':_0x32b2f6,'newAdjustValues':_0xe9ee61[_0x4e2616(0x21b)],'newLineType':_0xe9ee61['lineType'],'oldLineType':_0x1e639e,'rotation':_0xe9ee61[_0x4e2616(0x22c)],'oldRelation':_0x3fbcad,'newRelation':_0x3834d4});}[_0x2294c8(0x1e7)](_0x143ada,_0x5976d4,_0xffcd87,_0x5be5dd){const _0x3d4c33=_0x2294c8;let _0x2e2d92=this[_0x3d4c33(0x22e)]['get'](_0x4e860d)[_0x3d4c33(0x22a)]({'unitId':_0x5976d4,'subUnitId':_0xffcd87,'drawingId':_0x5be5dd});if(_0x2e2d92!=null&&_0x2e2d92[_0x3d4c33(0x228)]){var _0x1ccff4,_0x5bd70f,_0x19c628,_0x50ccaf;_0x143ada['x']=(_0x1ccff4=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1dd)])==null?0x0:_0x1ccff4,_0x143ada['y']=(_0x5bd70f=_0x2e2d92[_0x3d4c33(0x228)]['top'])==null?0x0:_0x5bd70f,_0x143ada[_0x3d4c33(0x1c5)]=(_0x19c628=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1c5)])==null?_0x143ada[_0x3d4c33(0x1c5)]:_0x19c628,_0x143ada[_0x3d4c33(0x218)]=(_0x50ccaf=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x218)])==null?_0x143ada[_0x3d4c33(0x218)]:_0x50ccaf;}let _0x112727=this[_0x3d4c33(0x22e)][_0x3d4c33(0x1e3)](_0x5c3722)[_0x3d4c33(0x1fa)](_0x5976d4,_0xffcd87,_0x5be5dd);if(_0x112727){_0x143ada[_0x3d4c33(0x222)]=_0x112727[_0x3d4c33(0x1f6)]();let _0x3bd835=_0x112727[_0x3d4c33(0x1e1)]();_0x3bd835&&(_0x143ada[_0x3d4c33(0x1d3)]=JSON['parse'](JSON[_0x3d4c33(0x1d0)](_0x3bd835)));}}[_0x2294c8(0x208)](_0x1dacb4,_0x59248c,_0x17164b,_0x70a6a,_0x5708c8,_0x21c049,_0x1ce575,_0x3fb1bd,_0x2e2563){const _0x1493bd=_0x2294c8;let _0x15ffa2=null,_0x57025e=null;return _0x5708c8&&(_0x15ffa2=I(_0x1dacb4,_0x59248c,_0x5708c8[_0x1493bd(0x1f1)][_0x1493bd(0x20d)],_0x5708c8[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x21c049&&(_0x57025e=I(_0x1dacb4,_0x59248c,_0x21c049[_0x1493bd(0x1f1)]['drawId'],_0x21c049[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x15ffa2||(_0x15ffa2=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b['drawId'],!0x0,_0x57025e,_0x2e2563==null?void 0x0:_0x2e2563[_0x1493bd(0x1f3)],_0x1ce575,_0x3fb1bd)),_0x57025e||(_0x57025e=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b[_0x1493bd(0x20d)],!0x1,_0x15ffa2,_0x2e2563==null?void 0x0:_0x2e2563['to'],_0x1ce575,_0x3fb1bd)),{'startInfo':_0x15ffa2,'endInfo':_0x57025e};}['_resolveExistingOrFreeEndpoint'](_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x5d0a85,_0x67d839,_0x39c03d){const _0x59461b=_0x2294c8;if(_0x5d0a85){let _0x5d38ef=I(_0xc5558a,_0x98c206,_0x5d0a85[_0x59461b(0x234)],_0x5d0a85[_0x59461b(0x226)],_0x67d839,_0x39c03d);if(_0x5d38ef)return _0x5d38ef;}return _0x3c06ec?R(_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x67d839,_0x39c03d):null;}};_0x4f6f37[_0x2294c8(0x1f8)](z);export{F as FConnectorShape,P as FShape};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x26c497=_0x48a4;(function(_0x3c1614,_0x8a4965){const _0x1a71b2=_0x48a4,_0x40a448=_0x3c1614();while(!![]){try{const _0x2b0243=parseInt(_0x1a71b2(0xd5))/0x1*(-parseInt(_0x1a71b2(0x144))/0x2)+parseInt(_0x1a71b2(0x12f))/0x3*(-parseInt(_0x1a71b2(0xfd))/0x4)+-parseInt(_0x1a71b2(0xeb))/0x5*(parseInt(_0x1a71b2(0x100))/0x6)+-parseInt(_0x1a71b2(0xed))/0x7*(-parseInt(_0x1a71b2(0x129))/0x8)+parseInt(_0x1a71b2(0x15e))/0x9*(parseInt(_0x1a71b2(0x148))/0xa)+parseInt(_0x1a71b2(0xec))/0xb+-parseInt(_0x1a71b2(0x11c))/0xc;if(_0x2b0243===_0x8a4965)break;else _0x40a448['push'](_0x40a448['shift']());}catch(_0x10a02f){_0x40a448['push'](_0x40a448['shift']());}}}(_0x1d94,0xa02cc));import{ShapeModel as _0x155cd2,computeConnectorRouteLayout as _0x1cd34f,getBasicShapeRotateBound as _0x420ab7,isConnectorShape as _0x45d4e8,routeConnectorLineShape as _0x37d66d}from'@univerjs-pro/engine-shape';function _0x1d94(){const _0x4b1f04=['forEach','getCellIndexAndOffsetByPosition','_serializeShapeForUnit','sheet.mutation.update-shape-type','push','getBatchUpdateOp','_shapes','2062xQYfHf','keys','getSkeleton','_initCommandInterceptor','10YfIQuU','fill','getDrawingByParam','_deserializeShapeForUnit','_groupIds','lineType','width','isFrom','_initCommands','getDrawingData','sheet.command.update-line-shape-resize','delete','stringify','adjustValues','onCommandExecute','iterator','_sheetSkeletonService','getBasicShapeType','has','sheet.command.insert-shape','getBatchAddOp','index','10060029FQDyBw','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','interceptCommand','MUTATION','lineShapeId','getShapeType','getConnectionSiteList','length','getAdjustNames','string','sheet.command.set-shape-rotate','_ensureShapeModelManager','defineProperty','sheet.mutation.update-shape-data','left','rotation','flipX','startX','shapeId','position','getLineShapeRelation','getBasicShapeRelation','sheet.command.set-shape-text-vertical-toggle','clear','parse','743CWebtX','_config','worldRect','insertShape','type','rotateEnabled','resizeEnabled','sheet.mutation.remove-shape','cos','syncExecuteCommand','UPDATE','get','getOwnPropertyDescriptor','setConfig','getShapeTextData','_sheetsShapeService','startY','getAdjustValueByName','decorate','removeLinePoints','pushUndoRedo','sheet.mutation.insert-shape','1525vjKUER','10459944JoDvpB','14XymoRz','UNIVER_SHEET','prototype','getShapeData','from','sheet.command.update-connector-relation','assign','_configService','COMMAND','_addLineFollowShapeUpdates','ang','default','getShapeRelation','redos','angle','sheet.command.toggle-shape-flip','124748ybGHOT','0.25.1','getCellWithCoordByIndex','3504mVMlAZ','transform','params','SHEET_SHAPE_PLUGIN','toJSON','set','_commandService','addShape','drawingType','_addLineRerouteUpdates','toPrimitive','_initSnapshot','add','top','result','filter','_drawingManagerService','height','function','relation','preUndos','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getEndConnectInfo','fromJSON','hasShape','data','cxnIndex','removeShape','17907612bYWPzA','_resourcesManagerService','registerPluginResource','setShapeType','sin','isLineShape','_getConnectPointInfo','disposeWithMe','object','constructor','_shapeModelManagerMap','_linesIds','ensureSkeleton','5218112aYRAbN','flipY','@univerjs-pro/sheets-shape','shapeData','call','setShapeData','27gHOgXi','DRAWING_SHAPE','preRedos','getStartConnectInfo','_sheetInterceptorService','range','INSERT','isHorizontal','borderEnabled','updateContext','symbol','undos','getShapeModel','dispose'];_0x1d94=function(){return _0x4b1f04;};return _0x1d94();}import{CommandType as _0x3e9504,DependentOn as _0x44491a,Disposable as _0x28b545,DrawingTypeEnum as _0x5e5e5b,ICommandService as _0x5b8310,IConfigService as _0x3ea937,IResourceManagerService as _0x54f492,IUndoRedoService as _0x4f939d,IUniverInstanceService as _0x70c7f6,Inject as _0x224b32,Injector as _0x5c089c,Plugin as _0x118c9a,UniverInstanceType as _0xd9deb1,generateRandomId as _0x15fabb,merge as _0x410777,sequenceExecute as _0x3a6f34,touchDependencies as _0x41ed94}from'@univerjs/core';import{SheetInterceptorService as _0x499171,SheetSkeletonService as _0xf2e92a,getSheetCommandTarget as _0x1d1d1e}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x286f04,DrawingApplyType as _0x5e6d34,ISheetDrawingService as _0x41f85d,InsertSheetDrawingCommand as _0xbe823c,RemoveSheetDrawingCommand as _0xd0523e,SetDrawingApplyMutation as _0x30ac56,SetSheetDrawingCommand as _0x238f6a,transformToAxisAlignPosition as _0x13d14d,transformToDrawingPosition as _0x4fa37c}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1f94d7}from'@univerjs-pro/license';import{IDrawingManagerService as _0x531999}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x49f382){'@babel/helpers - typeof';const _0x2da745=_0x48a4;return R=typeof Symbol==_0x2da745(0x112)&&typeof Symbol[_0x2da745(0x157)]==_0x2da745(0x139)?function(_0x582e35){return typeof _0x582e35;}:function(_0x803fd4){const _0x271709=_0x2da745;return _0x803fd4&&typeof Symbol==_0x271709(0x112)&&_0x803fd4[_0x271709(0x125)]===Symbol&&_0x803fd4!==Symbol[_0x271709(0xef)]?_0x271709(0x139):typeof _0x803fd4;},R(_0x49f382);}function z(_0x5bc6a4,_0x26daa1){const _0x37233b=_0x48a4;if(R(_0x5bc6a4)!=_0x37233b(0x124)||!_0x5bc6a4)return _0x5bc6a4;var _0x256033=_0x5bc6a4[Symbol[_0x37233b(0x10a)]];if(_0x256033!==void 0x0){var _0xf8f055=_0x256033[_0x37233b(0x12d)](_0x5bc6a4,_0x26daa1||_0x37233b(0xf8));if(R(_0xf8f055)!=_0x37233b(0x124))return _0xf8f055;throw TypeError(_0x37233b(0x115));}return(_0x26daa1===_0x37233b(0x167)?String:Number)(_0x5bc6a4);}function B(_0x5cbab0){const _0x3f7bbf=_0x48a4;var _0x2503cb=z(_0x5cbab0,_0x3f7bbf(0x167));return R(_0x2503cb)==_0x3f7bbf(0x139)?_0x2503cb:_0x2503cb+'';}function V(_0x4f8cca,_0x565fdc,_0x5f57f7){const _0x3055d5=_0x48a4;return(_0x565fdc=B(_0x565fdc))in _0x4f8cca?Object[_0x3055d5(0x16a)](_0x4f8cca,_0x565fdc,{'value':_0x5f57f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f8cca[_0x565fdc]=_0x5f57f7,_0x4f8cca;}var H=class extends _0x28b545{constructor(){const _0x43f9e0=_0x48a4;super(),V(this,'_shapes',new Map()),V(this,'_linesIds',new Set()),V(this,_0x43f9e0(0x14c),new Set());}[_0x26c497(0x107)](_0xfcbee,_0x5538b8,_0x128938){const _0x1e767a=_0x26c497;let _0x17cd9a=new _0x155cd2(_0xfcbee,_0x5538b8,_0x128938);return this[_0x1e767a(0x143)][_0x1e767a(0x105)](_0x5538b8,_0x17cd9a),_0x45d4e8(_0xfcbee)&&this[_0x1e767a(0x127)][_0x1e767a(0x10c)](_0x5538b8),_0x17cd9a;}[_0x26c497(0xd1)](_0x3b6a43){const _0x1544f0=_0x26c497;let _0x42bfc8=[];for(let _0x172f5e of this[_0x1544f0(0x127)]){let _0x542e50=this[_0x1544f0(0x143)]['get'](_0x172f5e);if(_0x542e50){let _0x3c98c1=_0x542e50['getShapeRelation']();if(_0x3c98c1){var _0x11cad0,_0x4dc3cc;((_0x11cad0=_0x3c98c1[_0x1544f0(0xf1)])==null?void 0x0:_0x11cad0[_0x1544f0(0x170)])===_0x3b6a43&&_0x42bfc8['push']({..._0x3c98c1[_0x1544f0(0xf1)],'lineShapeId':_0x172f5e,'isFrom':!0x0}),((_0x4dc3cc=_0x3c98c1['to'])==null?void 0x0:_0x4dc3cc['shapeId'])===_0x3b6a43&&_0x42bfc8[_0x1544f0(0x141)]({..._0x3c98c1['to'],'lineShapeId':_0x172f5e,'isFrom':!0x1});}}}return _0x42bfc8;}[_0x26c497(0xd0)](_0x5e5d06){const _0xbc7a37=_0x26c497;let _0x5469a4=this[_0xbc7a37(0x143)][_0xbc7a37(0xe0)](_0x5e5d06);if(_0x5469a4)return _0x5469a4['getShapeRelation']();}[_0x26c497(0x163)](_0x2fbffa){const _0x3f7c05=_0x26c497;let _0x2b7734=this[_0x3f7c05(0x143)]['get'](_0x2fbffa);if(_0x2b7734)return _0x2b7734[_0x3f7c05(0x163)]();}[_0x26c497(0x118)](_0x1bbaa6){const _0x32e7d9=_0x26c497;return this[_0x32e7d9(0x143)][_0x32e7d9(0x15a)](_0x1bbaa6);}['removeShape'](_0x59211b){const _0x67f8e2=_0x26c497;let _0x1bfb24=this[_0x67f8e2(0x143)]['get'](_0x59211b);_0x1bfb24&&(_0x45d4e8(_0x1bfb24['getShapeType']())&&this[_0x67f8e2(0x127)][_0x67f8e2(0x153)](_0x59211b),this[_0x67f8e2(0x143)][_0x67f8e2(0x153)](_0x59211b));}[_0x26c497(0x104)](){const _0x39390f=_0x26c497;let _0x17b91d=[];return this[_0x39390f(0x143)][_0x39390f(0x13d)](_0x262d65=>{const _0x4608a9=_0x39390f;_0x17b91d[_0x4608a9(0x141)](_0x262d65['toJSON']());}),_0x17b91d;}[_0x26c497(0x117)](_0x366811){const _0x281061=_0x26c497;for(let _0x5886b6 of _0x366811){let {id:_0x1613eb,shapeType:_0x381818}=_0x5886b6,_0x2a53f9=this['addShape'](_0x381818,_0x1613eb,_0x5886b6[_0x281061(0x12c)]);_0x2a53f9&&_0x2a53f9[_0x281061(0x121)]()&&this['_linesIds'][_0x281061(0x10c)](_0x1613eb);}}[_0x26c497(0x13c)](){const _0x52ec68=_0x26c497;this['_disposed']||(this['_shapes'][_0x52ec68(0x13d)](_0xe1f1b7=>{const _0x3b713e=_0x52ec68;_0xe1f1b7[_0x3b713e(0x13c)]();}),this[_0x52ec68(0x143)][_0x52ec68(0xd3)](),this[_0x52ec68(0x127)]['clear'](),this[_0x52ec68(0x14c)][_0x52ec68(0xd3)](),super[_0x52ec68(0x13c)]());}};function U(_0x13c04a,_0x4793ab){return function(_0x16f67a,_0x25be65){_0x4793ab(_0x16f67a,_0x25be65,_0x13c04a);};}function W(_0x3afaab,_0x365abd,_0x4d4665,_0x4efb1e){const _0xf79c23=_0x26c497;var _0x5f49b9=arguments[_0xf79c23(0x165)],_0x5f4e33=_0x5f49b9<0x3?_0x365abd:_0x4efb1e===null?_0x4efb1e=Object[_0xf79c23(0xe1)](_0x365abd,_0x4d4665):_0x4efb1e,_0x4373be;if(typeof Reflect==_0xf79c23(0x124)&&typeof Reflect[_0xf79c23(0xe7)]==_0xf79c23(0x112))_0x5f4e33=Reflect[_0xf79c23(0xe7)](_0x3afaab,_0x365abd,_0x4d4665,_0x4efb1e);else{for(var _0x56fa29=_0x3afaab[_0xf79c23(0x165)]-0x1;_0x56fa29>=0x0;_0x56fa29--)(_0x4373be=_0x3afaab[_0x56fa29])&&(_0x5f4e33=(_0x5f49b9<0x3?_0x4373be(_0x5f4e33):_0x5f49b9>0x3?_0x4373be(_0x365abd,_0x4d4665,_0x5f4e33):_0x4373be(_0x365abd,_0x4d4665))||_0x5f4e33);}return _0x5f49b9>0x3&&_0x5f4e33&&Object[_0xf79c23(0x16a)](_0x365abd,_0x4d4665,_0x5f4e33),_0x5f4e33;}let G=class extends _0x28b545{constructor(_0x4b99ff){const _0x5c4884=_0x26c497;super(),this[_0x5c4884(0x11d)]=_0x4b99ff,V(this,_0x5c4884(0x126),new Map()),this[_0x5c4884(0x10b)]();}[_0x26c497(0x169)](_0x24e69e,_0x262e7e){const _0x3cb6e7=_0x26c497;let _0x2d5dfc=this[_0x3cb6e7(0x126)][_0x3cb6e7(0xe0)](_0x24e69e);_0x2d5dfc||(_0x2d5dfc=new Map(),this[_0x3cb6e7(0x126)][_0x3cb6e7(0x105)](_0x24e69e,_0x2d5dfc));let _0x2e9df6=_0x2d5dfc[_0x3cb6e7(0xe0)](_0x262e7e);return _0x2e9df6||(_0x2e9df6=new H(),_0x2d5dfc[_0x3cb6e7(0x105)](_0x262e7e,_0x2e9df6)),_0x2e9df6;}['insertShape'](_0x7d340,_0x1f2e90,_0x3783fe,_0x3365fc,_0x2a8820){const _0x1a56af=_0x26c497;this[_0x1a56af(0x169)](_0x7d340,_0x1f2e90)[_0x1a56af(0x107)](_0x3783fe,_0x3365fc,_0x2a8820);}[_0x26c497(0x11b)](_0x523cf7,_0x3c226a,_0x5650a4){const _0x469da0=_0x26c497;this[_0x469da0(0x169)](_0x523cf7,_0x3c226a)['removeShape'](_0x5650a4);}[_0x26c497(0x159)](_0xdab321,_0xb9c2ae,_0x23fe19){const _0x30314d=_0x26c497;return this[_0x30314d(0x169)](_0xdab321,_0xb9c2ae)[_0x30314d(0x163)](_0x23fe19);}[_0x26c497(0x163)](_0x4f92f2,_0x5ad2ce,_0x2a3cf3){const _0x5b5d48=_0x26c497;return this[_0x5b5d48(0x169)](_0x4f92f2,_0x5ad2ce)[_0x5b5d48(0x163)](_0x2a3cf3);}[_0x26c497(0x118)](_0x4f0b0b,_0x5820dc,_0x5ca91e){const _0x2013d9=_0x26c497;return this[_0x2013d9(0x169)](_0x4f0b0b,_0x5820dc)[_0x2013d9(0x118)](_0x5ca91e);}['getShapeTypeById'](_0x2de412,_0x34bb18,_0x5b74fc){const _0x40dd7e=_0x26c497;return this[_0x40dd7e(0x169)](_0x2de412,_0x34bb18)['getShapeType'](_0x5b74fc);}['getShapeDataById'](_0x302171,_0x50dd53,_0x51886f){const _0x461133=_0x26c497;let _0x2bb7ee=this[_0x461133(0x169)](_0x302171,_0x50dd53);if(!_0x2bb7ee[_0x461133(0x163)](_0x51886f))return;let _0x3f9e95=_0x2bb7ee[_0x461133(0x143)][_0x461133(0xe0)](_0x51886f);if(_0x3f9e95)return _0x3f9e95[_0x461133(0xf0)]();}[_0x26c497(0x13b)](_0x526f75,_0x1788ae,_0x1a7383){const _0x32039a=_0x26c497;return this[_0x32039a(0x169)](_0x526f75,_0x1788ae)['_shapes']['get'](_0x1a7383);}[_0x26c497(0xd1)](_0x15bd2a,_0xdcab3f,_0x2e30a4){const _0x484410=_0x26c497;return this[_0x484410(0x169)](_0x15bd2a,_0xdcab3f)['getBasicShapeRelation'](_0x2e30a4);}[_0x26c497(0xd0)](_0x3d69af,_0x292fb5,_0x204ba3){const _0xe7d09c=_0x26c497;let _0x4f1569=this[_0xe7d09c(0x169)](_0x3d69af,_0x292fb5)['_shapes'][_0xe7d09c(0xe0)](_0x204ba3);if(_0x4f1569)return _0x4f1569[_0xe7d09c(0xf9)]();}[_0x26c497(0x11f)](){}[_0x26c497(0x13f)](_0x170143){const _0x1b3707=_0x26c497;let _0x1d5822={},_0x2af644=this[_0x1b3707(0x126)][_0x1b3707(0xe0)](_0x170143);return _0x2af644&&_0x2af644[_0x1b3707(0x13d)]((_0x98408b,_0x821173)=>{const _0x432500=_0x1b3707;let _0x41c0dd=_0x98408b[_0x432500(0x104)]();_0x41c0dd[_0x432500(0x165)]>0x0&&(_0x1d5822[_0x821173]=_0x41c0dd);}),JSON[_0x1b3707(0x154)](_0x1d5822);}[_0x26c497(0x14b)](_0x3450f3,_0x20f76f){const _0xd4115f=_0x26c497;Object[_0xd4115f(0x145)](_0x20f76f)[_0xd4115f(0x13d)](_0x2cf43d=>{const _0x5b9b89=_0xd4115f;this[_0x5b9b89(0x169)](_0x3450f3,_0x2cf43d)['fromJSON'](_0x20f76f[_0x2cf43d]);});}[_0x26c497(0x104)](){let _0x3949c0={};return this['_shapeModelManagerMap']['forEach']((_0x1060f9,_0x583629)=>{const _0x5cc134=_0x48a4;_0x3949c0[_0x583629]={},_0x1060f9[_0x5cc134(0x13d)]((_0x16f962,_0x45cb97)=>{_0x3949c0[_0x583629][_0x45cb97]=_0x16f962['toJSON']();});}),_0x3949c0;}[_0x26c497(0x117)](_0x5cf92e){const _0x36f7a9=_0x26c497;Object[_0x36f7a9(0x145)](_0x5cf92e)[_0x36f7a9(0x13d)](_0x385f07=>{const _0xecfd04=_0x36f7a9;let _0xfa9fa4=_0x5cf92e[_0x385f07];Object[_0xecfd04(0x145)](_0xfa9fa4)[_0xecfd04(0x13d)](_0x55e8ad=>{const _0x1e9d27=_0xecfd04;this['_ensureShapeModelManager'](_0x385f07,_0x55e8ad)[_0x1e9d27(0x117)](_0xfa9fa4[_0x55e8ad]);});});}['_initSnapshot'](){const _0x1f3e8f=_0x26c497;this[_0x1f3e8f(0x11d)][_0x1f3e8f(0x11e)]({'pluginName':_0x1f3e8f(0x103),'businesses':[_0xd9deb1[_0x1f3e8f(0xee)]],'toJson':_0x401a25=>this[_0x1f3e8f(0x13f)](_0x401a25),'parseJson':_0x53060e=>JSON[_0x1f3e8f(0xd4)](_0x53060e),'onLoad':(_0x259681,_0xabb09d)=>{const _0x53756e=_0x1f3e8f;this[_0x53756e(0x14b)](_0x259681,_0xabb09d);},'onUnLoad':_0xaac5ff=>{const _0x1fb8bc=_0x1f3e8f;let _0x3dade4=this[_0x1fb8bc(0x126)][_0x1fb8bc(0xe0)](_0xaac5ff);_0x3dade4&&(_0x3dade4[_0x1fb8bc(0x13d)](_0x4291da=>{const _0x3f6b33=_0x1fb8bc;_0x4291da[_0x3f6b33(0x13c)]();}),this[_0x1fb8bc(0x126)][_0x1fb8bc(0x153)](_0xaac5ff));}});}[_0x26c497(0x13c)](){this['_shapeModelManagerMap']['forEach'](_0x56db29=>{const _0x4ab5d4=_0x48a4;_0x56db29[_0x4ab5d4(0x13d)](_0x35e43f=>{const _0x18ab3b=_0x4ab5d4;_0x35e43f[_0x18ab3b(0x13c)]();});});}};G=W([U(0x0,_0x54f492)],G);const K={'id':_0x26c497(0xea),'type':_0x3e9504['MUTATION'],'handler':(_0x9aa014,_0x5a0978)=>{const _0x1e718a=_0x26c497;let {unitId:_0xf4d0aa,subUnitId:_0x533484,shapeType:_0x32e362,shapeId:_0x161492,shapeData:_0x2b0ea6}=_0x5a0978;return _0x9aa014[_0x1e718a(0xe0)](G)[_0x1e718a(0xd8)](_0xf4d0aa,_0x533484,_0x32e362,_0x161492,_0x2b0ea6),!0x0;}},q={'id':_0x26c497(0xdc),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x3cd920,_0x56e80c)=>{const _0x520dc0=_0x26c497;let {unitId:_0x233503,subUnitId:_0x595c21,shapeId:_0x3db2c0}=_0x56e80c;return _0x3cd920[_0x520dc0(0xe0)](G)[_0x520dc0(0x11b)](_0x233503,_0x595c21,_0x3db2c0),!0x0;}},J={'type':_0x3e9504[_0x26c497(0xf5)],'id':_0x26c497(0x15b),'handler':(_0x2c27d0,_0x454bf0)=>{const _0x34291a=_0x26c497;var _0x3d737a,_0x4cf013;let _0x8550a5=_0x1d1d1e(_0x2c27d0[_0x34291a(0xe0)](_0x70c7f6),_0x454bf0);if(!_0x8550a5)return!0x1;let _0x158328=_0x2c27d0[_0x34291a(0xe0)](_0xf2e92a),{unitId:_0x56edde,subUnitId:_0x420415}=_0x8550a5,_0x4db6e0=_0x158328['ensureSkeleton'](_0x56edde,_0x420415);if(!_0x4db6e0)return!0x1;let _0x5931c9=_0x2c27d0[_0x34291a(0xe0)](_0x5b8310),_0x2c6ba9=_0x2c27d0['get'](_0x4f939d),_0x52a1b3=_0x2c27d0['get'](_0x499171),_0x1e97dd=_0x2c27d0[_0x34291a(0xe0)](_0x41f85d),{shapeType:_0x22d9d,shapeData:_0x751a47}=_0x454bf0,_0x20e007=_0x454bf0[_0x34291a(0x170)]||_0x15fabb(),_0x4ea29e={'unitId':_0x56edde,'subUnitId':_0x420415,'shapeId':_0x20e007,'shapeType':_0x22d9d,'shapeData':_0x751a47},_0x37c2f2=_0x454bf0['width']||0xc8,_0x664d32=_0x454bf0[_0x34291a(0x111)]||0xc8,_0x3ed4a6=0x0,_0x504b9e=0x0,_0x5dc65f={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x322d25={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x454bf0[_0x34291a(0x171)]){let {x:_0x30018f,y:_0x4c0c50}=_0x454bf0['position'];_0x3ed4a6=_0x30018f,_0x504b9e=_0x4c0c50,_0x5dc65f=_0x4db6e0[_0x34291a(0x13e)](_0x30018f,_0x4c0c50),_0x322d25=_0x4db6e0[_0x34291a(0x13e)](_0x30018f+_0x37c2f2,_0x4c0c50+_0x664d32);}else{if(_0x454bf0[_0x34291a(0x134)]){let {startRow:_0x35556a,startColumn:_0x8c66d9}=_0x454bf0[_0x34291a(0x134)];_0x5dc65f={'row':_0x35556a,'rowOffset':0xa,'column':_0x8c66d9,'columnOffset':0xa};let _0x2213a5=_0x4db6e0[_0x34291a(0xff)](_0x35556a,_0x8c66d9);_0x3ed4a6=_0x2213a5[_0x34291a(0x16f)]+0xa,_0x504b9e=_0x2213a5[_0x34291a(0xe5)]+0xa,_0x322d25=_0x4db6e0[_0x34291a(0x13e)](_0x3ed4a6+_0x37c2f2,_0x504b9e+_0x664d32);}}let _0x43a997={'from':_0x5dc65f,'to':_0x322d25},_0x17fd16={'unitId':_0x56edde,'subUnitId':_0x420415,'drawingId':_0x20e007,'drawingType':_0x5e5e5b[_0x34291a(0x130)],'sheetTransform':_0x43a997,'transform':{'left':_0x3ed4a6,'top':_0x504b9e,'width':_0x37c2f2,'height':_0x664d32},'data':{'shapeType':_0x22d9d,'shapeData':_0x751a47},'axisAlignSheetTransform':_0x43a997,'allowTransform':!0x0};_0x45d4e8(_0x22d9d)&&(_0x17fd16[_0x34291a(0x119)]['fill']=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0xda)]=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0xdb)]=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0x137)]=!0x1,_0x17fd16[_0x34291a(0x101)][_0x34291a(0xda)]=!0x1,_0x17fd16[_0x34291a(0x101)][_0x34291a(0xdb)]=!0x1,_0x17fd16['transform']['borderEnabled']=!0x1);let {undo:_0xf315e9,redo:_0x1ec50e,objects:_0x34484b}=_0x1e97dd[_0x34291a(0x15c)]([_0x17fd16]),_0xf99a43=_0x52a1b3[_0x34291a(0x156)]({'id':_0xbe823c['id'],'params':{'unitId':_0x56edde,'drawings':[_0x17fd16]}}),_0x55643b=[...(_0x3d737a=_0xf99a43[_0x34291a(0x131)])==null?[]:_0x3d737a,{'id':_0x30ac56['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'op':_0x1ec50e,'objects':_0x34484b,'type':_0x5e6d34[_0x34291a(0x135)]}},{'id':_0x286f04['id'],'params':[_0x56edde]},..._0xf99a43[_0x34291a(0xfa)],{'id':K['id'],'params':_0x4ea29e}],_0x4868cf=[{'id':q['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'shapeId':_0x20e007}},...(_0x4cf013=_0xf99a43[_0x34291a(0x114)])==null?[]:_0x4cf013,{'id':_0x30ac56['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'op':_0xf315e9,'objects':_0x34484b,'type':_0x5e6d34['REMOVE']}},{'id':_0x286f04['id'],'params':[_0x56edde]},..._0xf99a43[_0x34291a(0x13a)]];return _0x3a6f34(_0x55643b,_0x5931c9)[_0x34291a(0x10e)]?(_0x2c6ba9[_0x34291a(0xe9)]({'unitID':_0x56edde,'undoMutations':_0x4868cf,'redoMutations':_0x55643b}),!0x0):!0x1;}},Y={'id':_0x26c497(0x16b),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x166154,_0x2fa193)=>{const _0x23b08a=_0x26c497;let {unitId:_0x58f341,subUnitId:_0x2c7ee7,shapeType:_0x4e5e9b,shapeId:_0x315414,shapeData:_0x678c8d}=_0x2fa193,_0x4be03e=_0x166154[_0x23b08a(0xe0)](G)[_0x23b08a(0x13b)](_0x58f341,_0x2c7ee7,_0x315414);return _0x4be03e&&(_0x4e5e9b!==void 0x0&&_0x4be03e[_0x23b08a(0x11f)](_0x4e5e9b),_0x678c8d&&(_0x4be03e==null||_0x4be03e[_0x23b08a(0x12e)](_0x678c8d,!0x0))),!0x0;}},ee={'type':_0x3e9504[_0x26c497(0xf5)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x98ff5e,_0x1e07af)=>{const _0x26f5ab=_0x26c497;var _0x43a3dd,_0x1d3c65;let _0x3dd426=_0x1d1d1e(_0x98ff5e[_0x26f5ab(0xe0)](_0x70c7f6),_0x1e07af);if(!_0x3dd426)return!0x1;let _0x53b7c2=_0x98ff5e[_0x26f5ab(0xe0)](_0xf2e92a),{unitId:_0xa1ec7f,subUnitId:_0xc7bc36}=_0x3dd426,_0x4b1cce=_0x53b7c2[_0x26f5ab(0x128)](_0xa1ec7f,_0xc7bc36);if(!_0x4b1cce)return!0x1;let _0x340b81=_0x98ff5e[_0x26f5ab(0xe0)](G),{shapeId:_0x3630d1,shapeType:_0x2710a5,shapeData:_0x2d0fc6,position:_0x5aa5e5,width:_0x3151bc,height:_0x112586}=_0x1e07af,_0x1117d2=_0x340b81[_0x26f5ab(0x13b)](_0xa1ec7f,_0xc7bc36,_0x3630d1);if(!_0x1117d2)return!0x1;let _0x255174=_0x98ff5e[_0x26f5ab(0xe0)](_0x5b8310),_0x3a269a=_0x98ff5e[_0x26f5ab(0xe0)](_0x4f939d),_0x5e5fac=_0x98ff5e[_0x26f5ab(0xe0)](_0x499171),_0x408ca1=_0x98ff5e[_0x26f5ab(0xe0)](_0x41f85d),_0xca3b78={'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'shapeId':_0x3630d1,'shapeType':_0x2710a5,'shapeData':_0x2d0fc6},_0x115019=_0x1117d2[_0x26f5ab(0x163)](),_0x53651c=_0x1117d2[_0x26f5ab(0xf0)](),{x:_0x591ab8,y:_0x52f890}=_0x5aa5e5,_0x429642={'from':_0x4b1cce[_0x26f5ab(0x13e)](_0x591ab8,_0x52f890),'to':_0x4b1cce[_0x26f5ab(0x13e)](_0x591ab8+_0x3151bc,_0x52f890+_0x112586)},_0x4e61cd={'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'drawingId':_0x3630d1,'drawingType':_0x5e5e5b[_0x26f5ab(0x130)],'sheetTransform':_0x429642,'transform':{'left':_0x591ab8,'top':_0x52f890,'width':_0x3151bc,'height':_0x112586},'data':{'shapeType':_0x2710a5,'shapeData':_0x2d0fc6},'axisAlignSheetTransform':_0x429642,'allowTransform':!0x0};_0x45d4e8(_0x2710a5)&&(_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0x149)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0xda)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0xdb)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0x137)]=!0x1,_0x4e61cd[_0x26f5ab(0x101)]['rotateEnabled']=!0x1,_0x4e61cd[_0x26f5ab(0x101)][_0x26f5ab(0xdb)]=!0x1,_0x4e61cd[_0x26f5ab(0x101)][_0x26f5ab(0x137)]=!0x1);let {undo:_0x49bf3d,redo:_0x36e9ea,objects:_0x29b7d6}=_0x408ca1[_0x26f5ab(0x142)]([_0x4e61cd]),_0x3c1289=_0x5e5fac['onCommandExecute']({'id':_0x238f6a['id'],'params':{'unitId':_0xa1ec7f,'drawings':[_0x4e61cd]}}),_0x1238b6=[...(_0x43a3dd=_0x3c1289['preRedos'])==null?[]:_0x43a3dd,{'id':_0x30ac56['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'op':_0x36e9ea,'objects':_0x29b7d6,'type':_0x5e6d34['UPDATE']}},{'id':_0x286f04['id'],'params':[_0xa1ec7f]},..._0x3c1289[_0x26f5ab(0xfa)],{'id':Y['id'],'params':_0xca3b78}],_0x224c97=[...(_0x1d3c65=_0x3c1289[_0x26f5ab(0x114)])==null?[]:_0x1d3c65,{'id':_0x30ac56['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'op':_0x49bf3d,'objects':_0x29b7d6,'type':_0x5e6d34[_0x26f5ab(0xdf)]}},{'id':_0x286f04['id'],'params':[_0xa1ec7f]},..._0x3c1289[_0x26f5ab(0x13a)],{'id':Y['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'shapeType':_0x115019,'shapeId':_0x3630d1,'shapeData':_0x53651c}}];return _0x3a6f34(_0x1238b6,_0x255174)['result']?(_0x3a269a['pushUndoRedo']({'unitID':_0xa1ec7f,'undoMutations':_0x224c97,'redoMutations':_0x1238b6}),!0x0):!0x1;}},te={'type':_0x3e9504[_0x26c497(0xf5)],'id':_0x26c497(0xfc),'handler':(_0x122e06,_0x789a7b)=>{const _0x2e9f1d=_0x26c497;var _0x316003,_0x21c296;let _0x52bc5c=_0x1d1d1e(_0x122e06[_0x2e9f1d(0xe0)](_0x70c7f6),_0x789a7b);if(!_0x52bc5c)return!0x1;let _0x37151f=_0x122e06[_0x2e9f1d(0xe0)](_0xf2e92a),{unitId:_0x22550e,subUnitId:_0x2d5a8d}=_0x52bc5c,_0x3240e1=_0x37151f['getSkeleton'](_0x22550e,_0x2d5a8d);if(!_0x3240e1)return!0x1;let _0x3289cb=_0x122e06[_0x2e9f1d(0xe0)](_0x41f85d),{shapeId:_0x2964dc,flipH:_0x12aee5,flipV:_0x3307dc}=_0x789a7b,_0x40f8b5=_0x3289cb['getDrawingByParam']({'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'drawingId':_0x2964dc});if(!_0x40f8b5)return!0x1;let _0x26413f=_0x122e06[_0x2e9f1d(0xe0)](G)[_0x2e9f1d(0x13b)](_0x22550e,_0x2d5a8d,_0x2964dc);if(!_0x26413f)return!0x1;let _0x2f50c6=_0x122e06['get'](_0x5b8310),_0x48951e=_0x122e06[_0x2e9f1d(0xe0)](_0x4f939d),_0x55d89f=_0x122e06[_0x2e9f1d(0xe0)](_0x499171),_0x465299={..._0x40f8b5[_0x2e9f1d(0x101)]};_0x12aee5!==void 0x0&&(_0x465299[_0x2e9f1d(0x16e)]=!_0x465299[_0x2e9f1d(0x16e)]),_0x3307dc!==void 0x0&&(_0x465299[_0x2e9f1d(0x12a)]=!_0x465299[_0x2e9f1d(0x12a)]);let _0x5a18b1=_0x4fa37c(_0x465299,_0x3240e1),_0x55741b=_0x13d14d(_0x465299,_0x3240e1),_0x6d1621=_0x26413f[_0x2e9f1d(0x163)](),_0x2e8173=_0x26413f['getShapeData'](),_0x202935={'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'drawingId':_0x2964dc,'drawingType':_0x5e5e5b[_0x2e9f1d(0x130)],'sheetTransform':_0x5a18b1,'transform':_0x465299,'data':{'shapeType':_0x6d1621,'shapeData':_0x2e8173},'axisAlignSheetTransform':_0x55741b,'allowTransform':!0x0},{undo:_0x195e51,redo:_0x1016cf,objects:_0x384042}=_0x3289cb[_0x2e9f1d(0x142)]([_0x202935]),_0x131507=_0x55d89f[_0x2e9f1d(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x22550e,'drawings':[_0x202935]}}),_0x398d5c=[...(_0x316003=_0x131507[_0x2e9f1d(0x131)])==null?[]:_0x316003,{'id':_0x30ac56['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'op':_0x1016cf,'objects':_0x384042,'type':_0x5e6d34[_0x2e9f1d(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x22550e]},..._0x131507[_0x2e9f1d(0xfa)]],_0x1fae9f=[...(_0x21c296=_0x131507[_0x2e9f1d(0x114)])==null?[]:_0x21c296,{'id':_0x30ac56['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'op':_0x195e51,'objects':_0x384042,'type':_0x5e6d34['UPDATE']}},{'id':_0x286f04['id'],'params':[_0x22550e]},..._0x131507[_0x2e9f1d(0x13a)]];if(_0x45d4e8(_0x6d1621)){let _0x595ba9=_0x26413f[_0x2e9f1d(0xf9)]();if(_0x595ba9){let _0x10f4a1={..._0x595ba9};_0x10f4a1['from']=void 0x0,_0x10f4a1['to']=void 0x0,_0x398d5c[_0x2e9f1d(0x141)]({'id':Y['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'shapeId':_0x2964dc,'shapeType':_0x6d1621,'shapeData':{'relation':_0x10f4a1}}}),_0x1fae9f['push']({'id':Y['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'shapeId':_0x2964dc,'shapeType':_0x6d1621,'shapeData':{'relation':_0x595ba9}}});}}return _0x3a6f34(_0x398d5c,_0x2f50c6)['result']?(_0x48951e[_0x2e9f1d(0xe9)]({'unitID':_0x22550e,'undoMutations':_0x1fae9f,'redoMutations':_0x398d5c}),!0x0):!0x1;}},X={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0x168),'handler':(_0xaefcfe,_0x570736)=>{const _0x4c2ac9=_0x26c497;var _0xa213ec,_0x3d04b0;let _0x224521=_0x1d1d1e(_0xaefcfe[_0x4c2ac9(0xe0)](_0x70c7f6),_0x570736);if(!_0x224521)return!0x1;let _0x474566=_0xaefcfe[_0x4c2ac9(0xe0)](_0xf2e92a),{unitId:_0x2d7c6e,subUnitId:_0x1c05ac}=_0x224521,_0x2ee746=_0x474566['getSkeleton'](_0x2d7c6e,_0x1c05ac);if(!_0x2ee746)return!0x1;let _0x2d0d18=_0xaefcfe[_0x4c2ac9(0xe0)](_0x41f85d),{shapeId:_0x5c791f,rotate:_0x243eea}=_0x570736,_0x65a673=_0x2d0d18[_0x4c2ac9(0x14a)]({'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'drawingId':_0x5c791f});if(!_0x65a673)return!0x1;let _0x4ff02e=_0xaefcfe[_0x4c2ac9(0xe0)](G)['getShapeModel'](_0x2d7c6e,_0x1c05ac,_0x5c791f);if(!_0x4ff02e)return!0x1;let _0x3a5e74=_0xaefcfe[_0x4c2ac9(0xe0)](_0x5b8310),_0x16bde5=_0xaefcfe[_0x4c2ac9(0xe0)](_0x4f939d),_0x181830=_0xaefcfe[_0x4c2ac9(0xe0)](_0x499171),_0x48caf5={..._0x65a673[_0x4c2ac9(0x101)]};_0x243eea!==void 0x0&&(_0x48caf5[_0x4c2ac9(0xfb)]=(_0x48caf5['angle']||0x0)+_0x243eea);let _0x534004=_0x4fa37c(_0x48caf5,_0x2ee746),_0x5598bd=_0x13d14d(_0x48caf5,_0x2ee746),_0x1db777=_0x4ff02e[_0x4c2ac9(0x163)](),_0x1169e3=_0x4ff02e['getShapeData'](),_0x43a563={'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'drawingId':_0x5c791f,'drawingType':_0x5e5e5b[_0x4c2ac9(0x130)],'sheetTransform':_0x534004,'transform':_0x48caf5,'data':{'shapeType':_0x1db777,'shapeData':_0x1169e3},'axisAlignSheetTransform':_0x5598bd,'allowTransform':!0x0},{undo:_0x577541,redo:_0x54249a,objects:_0x614f98}=_0x2d0d18['getBatchUpdateOp']([_0x43a563]),_0xe27102=_0x181830[_0x4c2ac9(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x2d7c6e,'drawings':[_0x43a563]}}),_0x3baa24=[...(_0xa213ec=_0xe27102[_0x4c2ac9(0x131)])==null?[]:_0xa213ec,{'id':_0x30ac56['id'],'params':{'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'op':_0x54249a,'objects':_0x614f98,'type':_0x5e6d34[_0x4c2ac9(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x2d7c6e]},..._0xe27102['redos']],_0x2637f2=[...(_0x3d04b0=_0xe27102[_0x4c2ac9(0x114)])==null?[]:_0x3d04b0,{'id':_0x30ac56['id'],'params':{'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'op':_0x577541,'objects':_0x614f98,'type':_0x5e6d34[_0x4c2ac9(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x2d7c6e]},..._0xe27102[_0x4c2ac9(0x13a)]];return _0x3a6f34(_0x3baa24,_0x3a5e74)[_0x4c2ac9(0x10e)]?(_0x16bde5['pushUndoRedo']({'unitID':_0x2d7c6e,'undoMutations':_0x2637f2,'redoMutations':_0x3baa24}),!0x0):!0x1;}},Z={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0xd2),'handler':(_0x93b416,_0x11aa62)=>{const _0x45f2f5=_0x26c497;var _0x1ffe49;let _0xdbf691=_0x1d1d1e(_0x93b416[_0x45f2f5(0xe0)](_0x70c7f6),_0x11aa62);if(!_0xdbf691)return!0x1;let {unitId:_0x50c62d,subUnitId:_0x3dde17}=_0xdbf691,{shapeId:_0x1b3e6d}=_0x11aa62,_0x1eb255=_0x93b416[_0x45f2f5(0xe0)](G)['getShapeModel'](_0x50c62d,_0x3dde17,_0x1b3e6d);if(!_0x1eb255)return!0x1;let _0x51a863=_0x1eb255[_0x45f2f5(0xe3)](),_0x5325cf=(_0x1ffe49=_0x51a863==null?void 0x0:_0x51a863[_0x45f2f5(0x136)])==null?!0x0:_0x1ffe49,_0x362488=!_0x5325cf,_0x2582b3=_0x93b416[_0x45f2f5(0xe0)](_0x5b8310),_0x17cdb1=_0x93b416[_0x45f2f5(0xe0)](_0x4f939d),_0x385bf6={'unitId':_0x50c62d,'subUnitId':_0x3dde17,'shapeId':_0x1b3e6d,'shapeData':{'shapeText':{'isHorizontal':_0x362488}}},_0x1f5e34={'unitId':_0x50c62d,'subUnitId':_0x3dde17,'shapeId':_0x1b3e6d,'shapeData':{'shapeText':{'isHorizontal':_0x5325cf}}},_0x40cd13=[{'id':Y['id'],'params':_0x385bf6}],_0x21fe59=[{'id':Y['id'],'params':_0x1f5e34}];return _0x3a6f34(_0x40cd13,_0x2582b3)[_0x45f2f5(0x10e)]?(_0x17cdb1[_0x45f2f5(0xe9)]({'unitID':_0x50c62d,'undoMutations':_0x21fe59,'redoMutations':_0x40cd13}),!0x0):!0x1;}},ne={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0xf2),'handler':(_0x583433,_0x593494)=>{const _0x309c4b=_0x26c497;var _0x566c89,_0x3d07b0,_0x2d60c2,_0x1f2281;let _0x5ba37e=_0x1d1d1e(_0x583433[_0x309c4b(0xe0)](_0x70c7f6),_0x593494);if(!_0x5ba37e)return!0x1;let _0x35ed10=_0x583433[_0x309c4b(0xe0)](_0xf2e92a),{unitId:_0x406edf,subUnitId:_0x4c277e}=_0x5ba37e,_0xaec5ce=_0x35ed10[_0x309c4b(0x146)](_0x406edf,_0x4c277e);if(!_0xaec5ce)return!0x1;let _0x152784=_0x583433['get'](_0x41f85d),{connectorShapeId:_0x2d8cc9,width:_0x3b599c,height:_0x12c807,left:_0x4d506e,top:_0x1ee9aa,flipX:_0x45a36b,flipY:_0x1e0202,rotation:_0x2bb0da,oldAdjustValues:_0x40a8e2,newAdjustValues:_0x5937e3,oldLineType:_0x41e464,newLineType:_0x1215d0,oldRelation:_0x2bfa5f,newRelation:_0x5f4468}=_0x593494,_0x5010d9=_0x152784[_0x309c4b(0x14a)]({'unitId':_0x406edf,'subUnitId':_0x4c277e,'drawingId':_0x2d8cc9});if(!_0x5010d9)return!0x1;let _0x37c194=_0x583433[_0x309c4b(0xe0)](G)['getShapeModel'](_0x406edf,_0x4c277e,_0x2d8cc9);if(!_0x37c194)return!0x1;let _0x565bcf=_0x583433[_0x309c4b(0xe0)](_0x5b8310),_0x2db390=_0x583433[_0x309c4b(0xe0)](_0x4f939d),_0x571a04=_0x583433[_0x309c4b(0xe0)](_0x499171),_0x4b18a5={..._0x5010d9[_0x309c4b(0x101)],'width':_0x3b599c,'height':_0x12c807,'left':_0x4d506e,'top':_0x1ee9aa,'flipX':_0x45a36b,'flipY':_0x1e0202,'angle':(_0x566c89=_0x2bb0da==null?(_0x3d07b0=_0x5010d9['transform'])==null?void 0x0:_0x3d07b0[_0x309c4b(0xfb)]:_0x2bb0da)==null?0x0:_0x566c89},_0x2fb48e=_0x4fa37c(_0x4b18a5,_0xaec5ce),_0x2d2f13=_0x13d14d(_0x4b18a5,_0xaec5ce),_0x954c9d=_0x37c194[_0x309c4b(0x163)](),_0x48249f=_0x37c194[_0x309c4b(0xf0)](),_0x4e74b5={'unitId':_0x406edf,'subUnitId':_0x4c277e,'drawingId':_0x2d8cc9,'drawingType':_0x5e5e5b['DRAWING_SHAPE'],'sheetTransform':_0x2fb48e,'transform':_0x4b18a5,'data':{'shapeType':_0x1215d0||_0x41e464||_0x954c9d,'shapeData':{..._0x48249f,'adjustValues':_0x5937e3||_0x40a8e2||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x155)]),'relation':_0x5f4468||_0x2bfa5f||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x113)])}},'axisAlignSheetTransform':_0x2d2f13,'allowTransform':!0x0},{undo:_0x5a6597,redo:_0x418c69,objects:_0x12d9db}=_0x152784[_0x309c4b(0x142)]([_0x4e74b5]),_0x190368=_0x571a04[_0x309c4b(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x406edf,'drawings':[_0x4e74b5]}}),_0x1d87a9=[...(_0x2d60c2=_0x190368['preRedos'])==null?[]:_0x2d60c2,{'id':_0x30ac56['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'op':_0x418c69,'objects':_0x12d9db,'type':_0x5e6d34[_0x309c4b(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x406edf]},..._0x190368['redos'],{'id':Y['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'shapeId':_0x2d8cc9,'shapeType':_0x1215d0,'shapeData':{'adjustValues':_0x5937e3,'relation':_0x5f4468}}}],_0x29d5f9=[...(_0x1f2281=_0x190368[_0x309c4b(0x114)])==null?[]:_0x1f2281,{'id':_0x30ac56['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'op':_0x5a6597,'objects':_0x12d9db,'type':_0x5e6d34[_0x309c4b(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x406edf]},..._0x190368[_0x309c4b(0x13a)],{'id':Y['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'shapeId':_0x2d8cc9,'shapeType':_0x954c9d,'shapeData':{..._0x48249f,'adjustValues':_0x40a8e2||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x155)]),'relation':_0x2bfa5f||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x113)])}}}];return _0x3a6f34(_0x1d87a9,_0x565bcf)[_0x309c4b(0x10e)]?(_0x2db390[_0x309c4b(0xe9)]({'unitID':_0x406edf,'undoMutations':_0x29d5f9,'redoMutations':_0x1d87a9}),!0x0):!0x1;}},re={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0x152),'handler':(_0x27b0cd,_0x45d01c)=>{const _0x3acb89=_0x26c497;var _0x40849c,_0x18c34e;let _0x5223b0=_0x1d1d1e(_0x27b0cd[_0x3acb89(0xe0)](_0x70c7f6),_0x45d01c);if(!_0x5223b0)return!0x1;let _0x379f5a=_0x27b0cd[_0x3acb89(0xe0)](_0xf2e92a),{unitId:_0x80e8d2,subUnitId:_0x3576b7}=_0x5223b0,_0x2e4090=_0x379f5a['getSkeleton'](_0x80e8d2,_0x3576b7);if(!_0x2e4090)return!0x1;let _0xa104d1=_0x27b0cd['get'](_0x41f85d),{shapeId:_0x5cb93e,width:_0x4f06a4,height:_0x5ac3bd,left:_0x1f35c3,top:_0x559f1d,flipX:_0xfe20f0,flipY:_0x167ea2,angle:_0x37429c,oldAdjustValues:_0x2105fd,newAdjustValues:_0x19cbd9,oldLineType:_0x11ac87,newLineType:_0x1ae2ae}=_0x45d01c,_0x59f67a=_0xa104d1[_0x3acb89(0x14a)]({'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'drawingId':_0x5cb93e});if(!_0x59f67a)return!0x1;let _0x1b565d=_0x27b0cd['get'](G)[_0x3acb89(0x13b)](_0x80e8d2,_0x3576b7,_0x5cb93e);if(!_0x1b565d)return!0x1;let _0x5901be=_0x27b0cd['get'](_0x5b8310),_0x3f5783=_0x27b0cd[_0x3acb89(0xe0)](_0x4f939d),_0x2d4abb=_0x27b0cd['get'](_0x499171),_0x4ffad3={..._0x59f67a[_0x3acb89(0x101)],'width':_0x4f06a4,'height':_0x5ac3bd,'left':_0x1f35c3,'top':_0x559f1d,'flipX':_0xfe20f0,'flipY':_0x167ea2,'angle':_0x37429c},_0x5da79c=_0x4fa37c(_0x4ffad3,_0x2e4090),_0x129615=_0x13d14d(_0x4ffad3,_0x2e4090),_0x413dff=_0x1b565d['getShapeType'](),_0x537b20=_0x1b565d[_0x3acb89(0xf0)](),_0x303d24={'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'drawingId':_0x5cb93e,'drawingType':_0x5e5e5b[_0x3acb89(0x130)],'sheetTransform':_0x5da79c,'transform':_0x4ffad3,'data':{'shapeType':_0x1ae2ae||_0x11ac87||_0x413dff,'shapeData':{..._0x537b20,'adjustValues':_0x19cbd9||_0x2105fd||(_0x537b20==null?void 0x0:_0x537b20['adjustValues'])}},'axisAlignSheetTransform':_0x129615,'allowTransform':!0x0},{undo:_0xa694ce,redo:_0x4292c6,objects:_0x522d06}=_0xa104d1[_0x3acb89(0x142)]([_0x303d24]),_0x1f91bf=_0x2d4abb['onCommandExecute']({'id':_0x238f6a['id'],'params':{'unitId':_0x80e8d2,'drawings':[_0x303d24]}}),_0x2f7f67=[...(_0x40849c=_0x1f91bf['preRedos'])==null?[]:_0x40849c,{'id':_0x30ac56['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'op':_0x4292c6,'objects':_0x522d06,'type':_0x5e6d34[_0x3acb89(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x80e8d2]},..._0x1f91bf[_0x3acb89(0xfa)],{'id':Y['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'shapeId':_0x5cb93e,'shapeType':_0x1ae2ae,'shapeData':{'adjustValues':_0x19cbd9}}}],_0x12105a=[...(_0x18c34e=_0x1f91bf[_0x3acb89(0x114)])==null?[]:_0x18c34e,{'id':_0x30ac56['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'op':_0xa694ce,'objects':_0x522d06,'type':_0x5e6d34[_0x3acb89(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x80e8d2]},..._0x1f91bf[_0x3acb89(0x13a)],{'id':Y['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'shapeId':_0x5cb93e,'shapeType':_0x413dff,'shapeData':{..._0x537b20,'adjustValues':_0x2105fd||(_0x537b20==null?void 0x0:_0x537b20[_0x3acb89(0x155)])}}}];return _0x3a6f34(_0x2f7f67,_0x5901be)['result']?(_0x3f5783[_0x3acb89(0xe9)]({'unitID':_0x80e8d2,'undoMutations':_0x12105a,'redoMutations':_0x2f7f67}),!0x0):!0x1;}},Q={'id':_0x26c497(0x140),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x4fee02,_0x53d2fe)=>{const _0xed3c8b=_0x26c497;let {unitId:_0x2abc37,subUnitId:_0x1785ae,shapeType:_0x578746,shapeId:_0x419c6a,shapeData:_0x574e4a}=_0x53d2fe,_0xb55453=_0x4fee02[_0xed3c8b(0xe0)](G)[_0xed3c8b(0x13b)](_0x2abc37,_0x1785ae,_0x419c6a);return _0xb55453&&(_0xb55453[_0xed3c8b(0x11f)](_0x578746),_0x574e4a&&(_0xb55453==null||_0xb55453[_0xed3c8b(0x12e)](_0x574e4a))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x3e9504[_0x26c497(0xf5)],'handler':(_0x215d6c,_0x28b1e0)=>{const _0x496e41=_0x26c497;if(!_0x28b1e0)return!0x1;let _0x188a0b=_0x215d6c[_0x496e41(0xe0)](_0x5b8310),_0x121d82=_0x215d6c['get'](G),_0x308fe8=_0x215d6c['get'](_0x4f939d),_0x4325e8=[],_0x23b2d8=[],{unitId:_0x5132e6,subUnitId:_0x16b927,shapeId:_0x27105d,shapeType:_0xc49c0f,shapeData:_0x35c12f}=_0x28b1e0,_0x46a615=_0x121d82[_0x496e41(0x13b)](_0x5132e6,_0x16b927,_0x27105d);if(_0x46a615){let _0x5a95bd=_0x46a615['getShapeType'](),_0x3d8132=Object[_0x496e41(0xf3)]({},_0x46a615[_0x496e41(0xf0)]()),_0x327b8b={'unitId':_0x5132e6,'subUnitId':_0x16b927,'shapeId':_0x27105d,'shapeType':_0xc49c0f,'shapeData':_0x35c12f},_0x212918={'unitId':_0x5132e6,'subUnitId':_0x16b927,'shapeId':_0x27105d,'shapeType':_0x5a95bd,'shapeData':_0x3d8132};return _0x4325e8['push']({'id':Q['id'],'params':_0x327b8b}),_0x23b2d8[_0x496e41(0x141)]({'id':Q['id'],'params':_0x212918}),_0x4325e8['every'](_0x98c255=>_0x188a0b[_0x496e41(0xde)](_0x98c255['id'],_0x98c255[_0x496e41(0x102)]))&&_0x308fe8[_0x496e41(0xe9)]({'unitID':_0x5132e6,'redoMutations':[..._0x4325e8],'undoMutations':[..._0x23b2d8]}),!0x0;}return!0x1;}};var ae=_0x26c497(0x12b),oe=_0x26c497(0xfe);const se={};function _0x48a4(_0x420ab7,_0x488495){_0x420ab7=_0x420ab7-0xd0;const _0x1d9452=_0x1d94();let _0x48a400=_0x1d9452[_0x420ab7];return _0x48a400;}let ce=class extends _0x28b545{constructor(_0x2eb3b4,_0xb6caf2,_0x42d830,_0x5ca834,_0x1674c2){const _0x4fea63=_0x26c497;super(),this[_0x4fea63(0x106)]=_0x2eb3b4,this[_0x4fea63(0x133)]=_0xb6caf2,this['_sheetSkeletonService']=_0x42d830,this['_sheetsShapeService']=_0x5ca834,this[_0x4fea63(0x110)]=_0x1674c2,this[_0x4fea63(0x150)](),this[_0x4fea63(0x147)]();}[_0x26c497(0x150)](){const _0x358145=_0x26c497;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x361a06=>this[_0x358145(0x123)](this[_0x358145(0x106)]['registerCommand'](_0x361a06)));}[_0x26c497(0x147)](){const _0x3392f5=_0x26c497;this[_0x3392f5(0x123)](this[_0x3392f5(0x133)][_0x3392f5(0x160)]({'getMutations':_0x300b3d=>{const _0x47a595=_0x3392f5;if(_0x300b3d['id']===_0xd0523e['id']){let {drawings:_0xf642dc}=_0x300b3d[_0x47a595(0x102)],_0x42d700=_0xf642dc[_0x47a595(0x10f)](_0x54d39a=>_0x54d39a[_0x47a595(0x108)]===_0x5e5e5b[_0x47a595(0x130)]);if(_0x42d700['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x44c797=[],_0x39115c=[];return _0x42d700[_0x47a595(0x13d)](_0x1fdcf9=>{const _0x570125=_0x47a595;let {unitId:_0x43749a,subUnitId:_0x257046,drawingId:_0x449c75}=_0x1fdcf9,_0x5762a8=this[_0x570125(0xe4)][_0x570125(0x13b)](_0x43749a,_0x257046,_0x449c75);if(!_0x5762a8)throw TypeError(_0x570125(0x15f)+_0x5762a8);_0x44c797[_0x570125(0x141)]({'id':q['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x449c75}}),_0x39115c[_0x570125(0x141)]({'id':K['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x449c75,'shapeType':_0x5762a8['getShapeType'](),'shapeData':_0x5762a8[_0x570125(0xf0)]()}});let _0x24cacd=this[_0x570125(0xe4)][_0x570125(0xd1)](_0x43749a,_0x257046,_0x449c75);if(_0x24cacd)for(let _0x2c38cb of _0x24cacd){let _0x2f0bab=_0x2c38cb[_0x570125(0x162)],_0x21fc90=_0x2c38cb[_0x570125(0x14f)],_0x5b78b5=_0x21fc90?{'from':void 0x0}:{'to':void 0x0},_0x51e1e5=_0x21fc90?{'from':{'shapeId':_0x2c38cb[_0x570125(0x170)],'cxnIndex':_0x2c38cb[_0x570125(0x11a)]}}:{'to':{'shapeId':_0x2c38cb[_0x570125(0x170)],'cxnIndex':_0x2c38cb[_0x570125(0x11a)]}};_0x44c797[_0x570125(0x141)]({'id':Y['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x2f0bab,'shapeData':{'relation':_0x5b78b5}}}),_0x39115c[_0x570125(0x141)]({'id':Y['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x2f0bab,'shapeData':{'relation':_0x51e1e5}}});}}),{'preRedos':_0x44c797,'redos':[],'preUndos':[],'undos':_0x39115c};}if(_0x300b3d['id']===_0x238f6a['id']){let {drawings:_0x4b20ea}=_0x300b3d['params'],_0x59e3bb=_0x4b20ea['filter'](_0x22a5c3=>_0x22a5c3[_0x47a595(0x108)]===_0x5e5e5b[_0x47a595(0x130)]);if(_0x59e3bb['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2ded07=[],_0x45265e=[];for(let _0x58d13f of _0x59e3bb){let {unitId:_0x104c7f,subUnitId:_0x47a688,drawingId:_0x57f528,transform:_0x59554b}=_0x58d13f;if(!_0x104c7f||!_0x47a688||!_0x57f528||!_0x59554b)continue;let _0x3ef3ae=this[_0x47a595(0xe4)]['getShapeModel'](_0x104c7f,_0x47a688,_0x57f528);if(!_0x3ef3ae)throw TypeError(_0x47a595(0x15f)+_0x3ef3ae);if(_0x45d4e8(_0x3ef3ae[_0x47a595(0x163)]())){let _0x2d62f0=this['_sheetsShapeService'][_0x47a595(0xd0)](_0x104c7f,_0x47a688,_0x57f528);_0x2d62f0&&(_0x2ded07[_0x47a595(0x141)]({'id':Y['id'],'params':{'unitId':_0x104c7f,'subUnitId':_0x47a688,'shapeId':_0x57f528,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x45265e[_0x47a595(0x141)]({'id':Y['id'],'params':{'unitId':_0x104c7f,'subUnitId':_0x47a688,'shapeId':_0x57f528,'shapeData':{'relation':_0x2d62f0}}}));}else{let _0x1b943b=this['_sheetsShapeService'][_0x47a595(0xd1)](_0x104c7f,_0x47a688,_0x57f528);if(_0x1b943b&&_0x1b943b['length']>0x0)for(let _0x23e4fd of _0x1b943b){let _0x48a680=_0x23e4fd[_0x47a595(0x162)],_0x12b6c7=_0x23e4fd['isFrom'],_0x41aedd=this[_0x47a595(0xe4)][_0x47a595(0x13b)](_0x104c7f,_0x47a688,_0x48a680);if(!_0x41aedd)continue;let _0x1cd8bf=_0x41aedd[_0x47a595(0x132)](),_0xe21744=_0x41aedd[_0x47a595(0x116)]();_0x1cd8bf&&_0xe21744?this[_0x47a595(0x109)](_0x104c7f,_0x47a688,_0x48a680,_0x41aedd,_0x1cd8bf,_0xe21744,_0x2ded07,_0x45265e,_0x57f528,_0x59554b):this[_0x47a595(0xf6)](_0x104c7f,_0x47a688,_0x48a680,_0x41aedd,_0x12b6c7?_0x1cd8bf:_0xe21744,_0x12b6c7,_0x2ded07,_0x45265e,_0x57f528,_0x59554b);}}}return{'preRedos':[],'redos':_0x2ded07,'preUndos':_0x45265e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x31e73a,_0x11fbf5,_0x2db225,_0x26b55d,_0x5c3c63){const _0x12393b=_0x26c497;if(!_0x11fbf5||!_0x2db225)return null;let {shapeId:_0x4ae0d7,cxnIndex:_0x420973}=_0x31e73a,_0x252543=this[_0x12393b(0xe4)][_0x12393b(0x13b)](_0x11fbf5,_0x2db225,_0x4ae0d7);if(!_0x252543)return null;let _0x458ef8=this[_0x12393b(0x110)]['getDrawingByParam']({'unitId':_0x11fbf5,'subUnitId':_0x2db225,'drawingId':_0x4ae0d7});if(!(_0x458ef8!=null&&_0x458ef8['transform']))return null;let {left:_0x2aceb0=0x0,top:_0x50084d=0x0,width:_0x80b08c=0x0,height:_0x1adb8a=0x0,flipX:_0x2e8ac3=!0x1,flipY:_0x360a27=!0x1,angle:_0x50d9b6}=_0x458ef8['transform'];if(_0x5c3c63&&_0x26b55d===_0x4ae0d7){var _0x381c20,_0x357c46,_0x317af1,_0x238892,_0x4114a9,_0x2d8892,_0x175c91;_0x2aceb0=(_0x381c20=_0x5c3c63[_0x12393b(0x16c)])==null?_0x2aceb0:_0x381c20,_0x50084d=(_0x357c46=_0x5c3c63[_0x12393b(0x10d)])==null?_0x50084d:_0x357c46,_0x80b08c=(_0x317af1=_0x5c3c63[_0x12393b(0x14e)])==null?_0x80b08c:_0x317af1,_0x1adb8a=(_0x238892=_0x5c3c63['height'])==null?_0x1adb8a:_0x238892,_0x2e8ac3=(_0x4114a9=_0x5c3c63[_0x12393b(0x16e)])==null?_0x2e8ac3:_0x4114a9,_0x360a27=(_0x2d8892=_0x5c3c63[_0x12393b(0x12a)])==null?_0x360a27:_0x2d8892,_0x50d9b6=(_0x175c91=_0x5c3c63[_0x12393b(0xfb)])==null?_0x50d9b6:_0x175c91;}_0x252543[_0x12393b(0x138)]({'width':_0x80b08c,'height':_0x1adb8a});let _0x206854=_0x252543[_0x12393b(0x164)]()['find'](_0x3b598c=>_0x3b598c[_0x12393b(0x15d)]===_0x420973);if(!_0x206854)return null;let _0x3f2c2e=_0x2e8ac3?_0x80b08c-_0x206854['x']:_0x206854['x'],_0x48beb3=_0x360a27?_0x1adb8a-_0x206854['y']:_0x206854['y'];if(_0x50d9b6!==0x0&&_0x50d9b6!=null){let _0x86797f=_0x50d9b6*Math['PI']/0xb4,_0x303345=Math[_0x12393b(0xdd)](_0x86797f),_0x59943d=Math[_0x12393b(0x120)](_0x86797f),_0x5783b4=_0x80b08c/0x2,_0x4759f1=_0x1adb8a/0x2,_0x173c04=_0x3f2c2e-_0x5783b4,_0x294023=_0x48beb3-_0x4759f1;_0x3f2c2e=_0x5783b4+_0x173c04*_0x303345-_0x294023*_0x59943d,_0x48beb3=_0x4759f1+_0x173c04*_0x59943d+_0x294023*_0x303345;}_0x3f2c2e+=_0x2aceb0,_0x48beb3+=_0x50084d;let _0x3b75ad=_0x206854[_0x12393b(0xf7)]/0xea60;_0x2e8ac3&&(_0x3b75ad=0xb4-_0x3b75ad),_0x360a27&&(_0x3b75ad=-_0x3b75ad),_0x3b75ad+=_0x50d9b6||0x0,_0x3b75ad=(_0x3b75ad%0x168+0x168)%0x168;let _0x4ec920=_0x420ab7({'left':_0x2aceb0,'top':_0x50084d,'width':_0x80b08c,'height':_0x1adb8a},_0x50d9b6||0x0);return{'point':{'x':_0x3f2c2e,'y':_0x48beb3},'angle':_0x3b75ad,'bounds':_0x4ec920};}['_addLineRerouteUpdates'](_0x403e67,_0x40cac3,_0x6362ee,_0x313b43,_0x482791,_0x4b5d33,_0xb733e7,_0x5333d5,_0x95ff8,_0x398200){const _0x1e1be7=_0x26c497;let _0x55b90e=this[_0x1e1be7(0x158)][_0x1e1be7(0x146)](_0x403e67,_0x40cac3);if(!_0x55b90e)return;let _0x5b29e6=_0x313b43[_0x1e1be7(0xf9)](),_0xf315d3=_0x313b43[_0x1e1be7(0x166)](),_0x3577be={},_0x58af6e={};_0xf315d3[_0x1e1be7(0x13d)](_0x77d155=>{const _0x306965=_0x1e1be7;let _0x2c129d=_0x313b43[_0x306965(0xe6)](_0x77d155);_0x58af6e[_0x77d155]=_0x2c129d==null?0x0:_0x2c129d;});let _0x43ffe6=this[_0x1e1be7(0x122)](_0x482791,_0x403e67,_0x40cac3,_0x95ff8,_0x398200),_0x4f843d=this['_getConnectPointInfo'](_0x4b5d33,_0x403e67,_0x40cac3,_0x95ff8,_0x398200);if(_0x43ffe6&&_0x4f843d){let _0x5bd554=_0x313b43['getShapeType'](),_0x547284=_0x37d66d(_0x43ffe6,_0x4f843d,_0x5bd554),_0x3ac850=_0x5bd554;if(_0x547284){let _0xbf5c85=_0x1cd34f(_0x547284,_0x313b43[_0x1e1be7(0x163)]()),_0x5af0b0=this[_0x1e1be7(0x110)][_0x1e1be7(0x151)](_0x403e67,_0x40cac3);if(_0x5af0b0&&_0x5af0b0[_0x6362ee]){let _0x3cb2d6=_0x5af0b0[_0x6362ee];_0x3ac850=_0xbf5c85[_0x1e1be7(0x14d)];for(let [_0x5b26de,_0x1acc2d]of Object['entries'](_0xbf5c85[_0x1e1be7(0x155)]))_0x3577be[_0x5b26de]=_0x1acc2d;let _0x1dc12d={..._0x3cb2d6[_0x1e1be7(0x101)],'width':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x14e)],'height':_0xbf5c85['worldRect'][_0x1e1be7(0x111)],'left':_0xbf5c85['worldRect']['left'],'top':_0xbf5c85[_0x1e1be7(0xd7)]['top'],'flipX':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x16e)],'flipY':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x12a)],'angle':_0xbf5c85[_0x1e1be7(0x16d)]},_0x55d4b3=_0x4fa37c(_0x1dc12d,_0x55b90e),_0x547a1d=_0x13d14d(_0x1dc12d,_0x55b90e),_0x2ecd60={'unitId':_0x403e67,'subUnitId':_0x40cac3,'drawingType':_0x5e5e5b['DRAWING_SHAPE'],'drawingId':_0x6362ee,'transform':_0x1dc12d,'sheetTransform':_0x55d4b3,'axisAlignSheetTransform':_0x547a1d},{unitId:_0x59ab4f,subUnitId:_0x99015a,undo:_0x59ca85,redo:_0x2835ce,objects:_0x428207}=this['_drawingManagerService'][_0x1e1be7(0x142)]([_0x2ecd60]);_0xb733e7[_0x1e1be7(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x59ab4f,'subUnitId':_0x99015a,'op':_0x2835ce,'objects':_0x428207,'type':_0x5e6d34[_0x1e1be7(0xdf)]}}),_0x5333d5['push']({'id':_0x30ac56['id'],'params':{'unitId':_0x59ab4f,'subUnitId':_0x99015a,'op':_0x59ca85,'objects':_0x428207,'type':_0x5e6d34[_0x1e1be7(0xdf)]}});}_0x313b43[_0x1e1be7(0xe8)]();}_0xb733e7[_0x1e1be7(0x141)]({'id':Y['id'],'params':{'unitId':_0x403e67,'subUnitId':_0x40cac3,'shapeId':_0x6362ee,'shapeType':_0x3ac850,'shapeData':{'adjustValues':_0x3577be,'relation':_0x5b29e6}}}),_0x5333d5[_0x1e1be7(0x141)]({'id':Y['id'],'params':{'unitId':_0x403e67,'subUnitId':_0x40cac3,'shapeId':_0x6362ee,'shapeType':_0x5bd554,'shapeData':{'adjustValues':_0x58af6e,'relation':_0x5b29e6}}});}}[_0x26c497(0xf6)](_0x1d601f,_0x1bf784,_0x2be500,_0x3d9066,_0x14b46a,_0x28719d,_0x3b3625,_0xb88a29,_0x14c794,_0x1367a9){const _0x12ea58=_0x26c497;var _0xf850ad;if(!_0x14b46a)return;let _0x1d7e93=this[_0x12ea58(0x158)][_0x12ea58(0x146)](_0x1d601f,_0x1bf784);if(!_0x1d7e93)return;let _0x18ff2=(_0xf850ad=this[_0x12ea58(0x110)]['getDrawingByParam']({'unitId':_0x1d601f,'subUnitId':_0x1bf784,'drawingId':_0x14c794}))==null?void 0x0:_0xf850ad['transform'];if(!_0x18ff2)return;let _0x1815bb=_0x18ff2[_0x12ea58(0x16c)]!==_0x1367a9[_0x12ea58(0x16c)]||_0x18ff2['top']!==_0x1367a9['top'],_0x34d63e=_0x18ff2[_0x12ea58(0x14e)]!==_0x1367a9[_0x12ea58(0x14e)]||_0x18ff2[_0x12ea58(0x111)]!==_0x1367a9[_0x12ea58(0x111)],_0x30218d=_0x18ff2[_0x12ea58(0x16e)]!==_0x1367a9['flipX']||_0x18ff2[_0x12ea58(0x12a)]!==_0x1367a9[_0x12ea58(0x12a)],_0x6ba956=_0x18ff2['angle']!==_0x1367a9['angle'];if(_0x1815bb&&!_0x34d63e&&!_0x30218d&&!_0x6ba956){var _0x554153,_0x40a93c,_0x48beb6,_0x4909ae;let _0x534499=((_0x554153=_0x1367a9['left'])==null?0x0:_0x554153)-((_0x40a93c=_0x18ff2[_0x12ea58(0x16c)])==null?0x0:_0x40a93c),_0x489da8=((_0x48beb6=_0x1367a9['top'])==null?0x0:_0x48beb6)-((_0x4909ae=_0x18ff2[_0x12ea58(0x10d)])==null?0x0:_0x4909ae),_0x1fffdf=this['_drawingManagerService'][_0x12ea58(0x151)](_0x1d601f,_0x1bf784);if(_0x1fffdf&&_0x1fffdf[_0x2be500]){var _0x368761,_0x2723ca,_0x213a04,_0x353a23;let _0x3cb7fc=_0x1fffdf[_0x2be500],_0x5b684f={..._0x3cb7fc[_0x12ea58(0x101)],'left':((_0x368761=(_0x2723ca=_0x3cb7fc['transform'])==null?void 0x0:_0x2723ca[_0x12ea58(0x16c)])==null?0x0:_0x368761)+_0x534499,'top':((_0x213a04=(_0x353a23=_0x3cb7fc[_0x12ea58(0x101)])==null?void 0x0:_0x353a23['top'])==null?0x0:_0x213a04)+_0x489da8},_0x2bd77f=_0x4fa37c(_0x5b684f,_0x1d7e93),_0x5c8e5c=_0x13d14d(_0x5b684f,_0x1d7e93),_0x10f57e={'unitId':_0x1d601f,'subUnitId':_0x1bf784,'drawingType':_0x5e5e5b[_0x12ea58(0x130)],'drawingId':_0x2be500,'transform':_0x5b684f,'sheetTransform':_0x2bd77f,'axisAlignSheetTransform':_0x5c8e5c},{unitId:_0x2610a3,subUnitId:_0x626f3d,undo:_0xf7031,redo:_0x53a829,objects:_0xb37ad0}=this['_drawingManagerService'][_0x12ea58(0x142)]([_0x10f57e]);_0x3b3625[_0x12ea58(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x2610a3,'subUnitId':_0x626f3d,'op':_0x53a829,'objects':_0xb37ad0,'type':_0x5e6d34['UPDATE']}}),_0xb88a29[_0x12ea58(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x2610a3,'subUnitId':_0x626f3d,'op':_0xf7031,'objects':_0xb37ad0,'type':_0x5e6d34[_0x12ea58(0xdf)]}});}}else{let _0x3d29f2=_0x3d9066[_0x12ea58(0x132)](),_0x4fe8fc=_0x3d9066['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x1d601f,_0x1bf784,_0x2be500,_0x3d9066,_0x3d29f2,_0x4fe8fc,_0x3b3625,_0xb88a29,_0x14c794,_0x1367a9);}}};ce=W([U(0x0,_0x5b8310),U(0x1,_0x224b32(_0x499171)),U(0x2,_0x224b32(_0xf2e92a)),U(0x3,_0x224b32(G)),U(0x4,_0x224b32(_0x531999))],ce);let $=class extends _0x118c9a{constructor(_0x5befa8=se,_0x69ecc9,_0x491181,_0x376d6f){const _0x373219=_0x26c497;super(),this[_0x373219(0xd6)]=_0x5befa8,this['_injector']=_0x69ecc9,this[_0x373219(0x106)]=_0x491181,this[_0x373219(0xf4)]=_0x376d6f;let {..._0x2dabc6}=_0x410777({},se,this['_config']);this[_0x373219(0xf4)][_0x373219(0xe2)]('sheets-shape.config',_0x2dabc6);}['onStarting'](){const _0x2f1c91=_0x26c497;let _0x401031=this['_injector'];[[H],[G],[ce]][_0x2f1c91(0x13d)](_0x4dba78=>_0x401031['add'](_0x4dba78)),_0x41ed94(_0x401031,[[G],[ce]]);}};V($,_0x26c497(0xd9),_0xd9deb1['UNIVER_SHEET']),V($,'pluginName',_0x26c497(0x103)),V($,'packageName',ae),V($,'version',oe),$=W([_0x44491a(_0x1f94d7),U(0x1,_0x224b32(_0x5c089c)),U(0x2,_0x5b8310),U(0x3,_0x3ea937)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x1b2777=_0x55ca;(function(_0x274e08,_0x1363c2){const _0x4d9193=_0x55ca,_0x25b4dd=_0x274e08();while(!![]){try{const _0x1eec06=parseInt(_0x4d9193(0x103))/0x1*(-parseInt(_0x4d9193(0x123))/0x2)+-parseInt(_0x4d9193(0xb9))/0x3*(parseInt(_0x4d9193(0xf8))/0x4)+-parseInt(_0x4d9193(0x100))/0x5+parseInt(_0x4d9193(0xc0))/0x6*(parseInt(_0x4d9193(0x9b))/0x7)+-parseInt(_0x4d9193(0x12a))/0x8+-parseInt(_0x4d9193(0xf7))/0x9*(-parseInt(_0x4d9193(0x110))/0xa)+parseInt(_0x4d9193(0x9c))/0xb;if(_0x1eec06===_0x1363c2)break;else _0x25b4dd['push'](_0x25b4dd['shift']());}catch(_0x3bd7dd){_0x25b4dd['push'](_0x25b4dd['shift']());}}}(_0x5220,0xca2ae));import{ShapeModel as _0x4b5768,computeConnectorRouteLayout as _0xc69524,createUniqueShapeName as _0x35cb9a,getBasicShapeRotateBound as _0x40b288,isConnectorShape as _0xc963bc,routeConnectorLineShape as _0x4cc214}from'@univerjs-pro/engine-shape';import{CommandType as _0x2d4ac4,DependentOn as _0x2c7cf6,Disposable as _0x543ffa,DrawingTypeEnum as _0x4d3e69,ICommandService as _0xa3208c,IConfigService as _0x1802b3,IResourceManagerService as _0x1fce46,IUndoRedoService as _0x17d14d,IUniverInstanceService as _0x38fcfb,Inject as _0x19216a,Injector as _0x180637,Plugin as _0x11a17d,UniverInstanceType as _0x37476a,generateRandomId as _0x3ef264,merge as _0x14640d,sequenceExecute as _0x16df04,touchDependencies as _0x29f0fc}from'@univerjs/core';function _0x55ca(_0x400b15,_0x441b0d){_0x400b15=_0x400b15-0x99;const _0x522044=_0x5220();let _0x55cae2=_0x522044[_0x400b15];return _0x55cae2;}import{SheetInterceptorService as _0x51d1bf,SheetSkeletonService as _0x2fc9c5,getSheetCommandTarget as _0x1fda72}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x5ec59a,DrawingApplyType as _0x534eeb,ISheetDrawingService as _0x3f2b28,InsertSheetDrawingCommand as _0xff1699,RemoveSheetDrawingCommand as _0x36289e,SetDrawingApplyMutation as _0x2703c3,SetSheetDrawingCommand as _0x6aec62,transformToAxisAlignPosition as _0x45aabc,transformToDrawingPosition as _0x2d6220}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x17d981}from'@univerjs-pro/license';import{IDrawingManagerService as _0x5b1dc7}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x406b3c){'@babel/helpers - typeof';return z=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x49fdc8){return typeof _0x49fdc8;}:function(_0x5b30e7){const _0x494149=_0x55ca;return _0x5b30e7&&typeof Symbol==_0x494149(0x13b)&&_0x5b30e7[_0x494149(0x11c)]===Symbol&&_0x5b30e7!==Symbol[_0x494149(0xa3)]?_0x494149(0xad):typeof _0x5b30e7;},z(_0x406b3c);}function B(_0x4da072,_0x4db97f){const _0x1cc262=_0x55ca;if(z(_0x4da072)!='object'||!_0x4da072)return _0x4da072;var _0x264778=_0x4da072[Symbol['toPrimitive']];if(_0x264778!==void 0x0){var _0x4e734c=_0x264778[_0x1cc262(0xbe)](_0x4da072,_0x4db97f||'default');if(z(_0x4e734c)!=_0x1cc262(0x118))return _0x4e734c;throw TypeError(_0x1cc262(0xf3));}return(_0x4db97f===_0x1cc262(0xdd)?String:Number)(_0x4da072);}function V(_0x1c5dba){const _0x13323c=_0x55ca;var _0x424ccd=B(_0x1c5dba,_0x13323c(0xdd));return z(_0x424ccd)==_0x13323c(0xad)?_0x424ccd:_0x424ccd+'';}function H(_0x5c3816,_0x5b111f,_0x9f001d){const _0x14169b=_0x55ca;return(_0x5b111f=V(_0x5b111f))in _0x5c3816?Object[_0x14169b(0xb0)](_0x5c3816,_0x5b111f,{'value':_0x9f001d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c3816[_0x5b111f]=_0x9f001d,_0x5c3816;}var U=class extends _0x543ffa{constructor(){const _0x25433b=_0x55ca;super(),H(this,_0x25433b(0x113),new Map()),H(this,_0x25433b(0xe3),new Set()),H(this,'_groupIds',new Set());}[_0x1b2777(0xc2)](_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3){const _0xbf33cf=_0x1b2777;let _0x3bccdf=new _0x4b5768(_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3);return this[_0xbf33cf(0x113)][_0xbf33cf(0xba)](_0xddb1a5,_0x3bccdf),_0xc963bc(_0xda0a65)&&this[_0xbf33cf(0xe3)]['add'](_0xddb1a5),_0x3bccdf;}['getBasicShapeRelation'](_0x550e21){const _0x5b4808=_0x1b2777;let _0x42144a=[];for(let _0x3304dd of this['_linesIds']){let _0x4f1c5a=this[_0x5b4808(0x113)]['get'](_0x3304dd);if(_0x4f1c5a){let _0x3f90e3=_0x4f1c5a[_0x5b4808(0xb4)]();if(_0x3f90e3){var _0x10e2e5,_0xdadc62;((_0x10e2e5=_0x3f90e3[_0x5b4808(0xa0)])==null?void 0x0:_0x10e2e5['shapeId'])===_0x550e21&&_0x42144a['push']({..._0x3f90e3[_0x5b4808(0xa0)],'lineShapeId':_0x3304dd,'isFrom':!0x0}),((_0xdadc62=_0x3f90e3['to'])==null?void 0x0:_0xdadc62[_0x5b4808(0x102)])===_0x550e21&&_0x42144a['push']({..._0x3f90e3['to'],'lineShapeId':_0x3304dd,'isFrom':!0x1});}}}return _0x42144a;}[_0x1b2777(0xff)](_0x2869e2){const _0x219345=_0x1b2777;let _0x32e2bc=this[_0x219345(0x113)]['get'](_0x2869e2);if(_0x32e2bc)return _0x32e2bc['getShapeRelation']();}[_0x1b2777(0x10b)](_0x2f5100){const _0x2ca4fc=_0x1b2777;let _0x22e160=this[_0x2ca4fc(0x113)]['get'](_0x2f5100);if(_0x22e160)return _0x22e160[_0x2ca4fc(0x10b)]();}[_0x1b2777(0xdc)](_0x5e5935){const _0x21760b=_0x1b2777;return this[_0x21760b(0x113)][_0x21760b(0x134)](_0x5e5935);}[_0x1b2777(0xcc)](){const _0x4c4b6e=_0x1b2777;return Array[_0x4c4b6e(0xa0)](this[_0x4c4b6e(0x113)][_0x4c4b6e(0xdf)]())[_0x4c4b6e(0x130)](_0xc4514d=>_0xc4514d[_0x4c4b6e(0x117)]()||_0xc4514d[_0x4c4b6e(0xbf)]());}[_0x1b2777(0xb3)](_0x498814){const _0x21451d=_0x1b2777;let _0x22db25=this[_0x21451d(0x113)]['get'](_0x498814);_0x22db25&&(_0xc963bc(_0x22db25['getShapeType']())&&this[_0x21451d(0xe3)][_0x21451d(0x10f)](_0x498814),this[_0x21451d(0x113)][_0x21451d(0x10f)](_0x498814));}[_0x1b2777(0xeb)](){const _0x15b9c4=_0x1b2777;let _0x409e80=[];return this[_0x15b9c4(0x113)][_0x15b9c4(0xa4)](_0x4a9294=>{const _0x145899=_0x15b9c4;_0x409e80['push'](_0x4a9294[_0x145899(0xeb)]());}),_0x409e80;}[_0x1b2777(0xed)](_0x431fdd){const _0x2ffa21=_0x1b2777;for(let _0x2f3b0a of _0x431fdd){let {id:_0x4471f2,shapeType:_0x53c6c5,name:_0x3f0215}=_0x2f3b0a,_0x16b95d=this['addShape'](_0x53c6c5,_0x4471f2,_0x2f3b0a[_0x2ffa21(0xf1)],_0x3f0215);_0x16b95d&&_0x16b95d[_0x2ffa21(0xe0)]()&&this[_0x2ffa21(0xe3)]['add'](_0x4471f2);}}[_0x1b2777(0x122)](){const _0x421825=_0x1b2777;this[_0x421825(0xef)]||(this['_shapes'][_0x421825(0xa4)](_0x16becf=>{const _0x4f8a66=_0x421825;_0x16becf[_0x4f8a66(0x122)]();}),this[_0x421825(0x113)][_0x421825(0x114)](),this[_0x421825(0xe3)][_0x421825(0x114)](),this['_groupIds'][_0x421825(0x114)](),super[_0x421825(0x122)]());}};function W(_0x5a7aa5,_0x2d4550){return function(_0x219768,_0x3f7676){_0x2d4550(_0x219768,_0x3f7676,_0x5a7aa5);};}function G(_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e){const _0x1e5050=_0x1b2777;var _0x3ca514=arguments[_0x1e5050(0xec)],_0x20c0f4=_0x3ca514<0x3?_0x47fcfb:_0x52b22e===null?_0x52b22e=Object[_0x1e5050(0xee)](_0x47fcfb,_0x31ed06):_0x52b22e,_0xdb86fb;if(typeof Reflect==_0x1e5050(0x118)&&typeof Reflect[_0x1e5050(0xfc)]=='function')_0x20c0f4=Reflect[_0x1e5050(0xfc)](_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e);else{for(var _0x2c8f04=_0x3b2e62[_0x1e5050(0xec)]-0x1;_0x2c8f04>=0x0;_0x2c8f04--)(_0xdb86fb=_0x3b2e62[_0x2c8f04])&&(_0x20c0f4=(_0x3ca514<0x3?_0xdb86fb(_0x20c0f4):_0x3ca514>0x3?_0xdb86fb(_0x47fcfb,_0x31ed06,_0x20c0f4):_0xdb86fb(_0x47fcfb,_0x31ed06))||_0x20c0f4);}return _0x3ca514>0x3&&_0x20c0f4&&Object[_0x1e5050(0xb0)](_0x47fcfb,_0x31ed06,_0x20c0f4),_0x20c0f4;}let K=class extends _0x543ffa{constructor(_0x5b1a1d){const _0x48700b=_0x1b2777;super(),this[_0x48700b(0x112)]=_0x5b1a1d,H(this,_0x48700b(0xa9),new Map()),this['_initSnapshot']();}[_0x1b2777(0xb6)](_0x13bf01,_0x165f3f){const _0x2112ac=_0x1b2777;let _0x3c0a10=this[_0x2112ac(0xa9)][_0x2112ac(0x10e)](_0x13bf01);_0x3c0a10||(_0x3c0a10=new Map(),this['_shapeModelManagerMap'][_0x2112ac(0xba)](_0x13bf01,_0x3c0a10));let _0x10b2d2=_0x3c0a10[_0x2112ac(0x10e)](_0x165f3f);return _0x10b2d2||(_0x10b2d2=new U(),_0x3c0a10[_0x2112ac(0xba)](_0x165f3f,_0x10b2d2)),_0x10b2d2;}['insertShape'](_0x41098d,_0x3b218c,_0x35d2d8,_0x114122,_0x31d540,_0x148064){const _0x12f527=_0x1b2777;this['_ensureShapeModelManager'](_0x41098d,_0x3b218c)[_0x12f527(0xc2)](_0x35d2d8,_0x114122,_0x31d540,_0x148064);}[_0x1b2777(0xb3)](_0x9f4c2f,_0x10aaad,_0xcc0751){const _0x231647=_0x1b2777;this[_0x231647(0xb6)](_0x9f4c2f,_0x10aaad)[_0x231647(0xb3)](_0xcc0751);}['getBasicShapeType'](_0x4a20e0,_0x507199,_0x599a0a){const _0x195c52=_0x1b2777;return this[_0x195c52(0xb6)](_0x4a20e0,_0x507199)[_0x195c52(0x10b)](_0x599a0a);}[_0x1b2777(0x10b)](_0x334d4c,_0x2ceec5,_0x4a0881){const _0x123be9=_0x1b2777;return this[_0x123be9(0xb6)](_0x334d4c,_0x2ceec5)[_0x123be9(0x10b)](_0x4a0881);}[_0x1b2777(0xdc)](_0x523c96,_0x120efe,_0x23def1){const _0x4f4a0f=_0x1b2777;return this[_0x4f4a0f(0xb6)](_0x523c96,_0x120efe)[_0x4f4a0f(0xdc)](_0x23def1);}[_0x1b2777(0x126)](_0x133eda,_0x43167a,_0x2d80e3){const _0x338d76=_0x1b2777;return this[_0x338d76(0xb6)](_0x133eda,_0x43167a)['getShapeType'](_0x2d80e3);}[_0x1b2777(0x12c)](_0x2e91b4,_0x48fb61,_0x3e89e4){const _0xf4a329=_0x1b2777;let _0x741a2=this[_0xf4a329(0xb6)](_0x2e91b4,_0x48fb61);if(!_0x741a2[_0xf4a329(0x10b)](_0x3e89e4))return;let _0x207a83=_0x741a2[_0xf4a329(0x113)][_0xf4a329(0x10e)](_0x3e89e4);if(_0x207a83)return _0x207a83[_0xf4a329(0xa2)]();}[_0x1b2777(0xcc)](_0xd26554,_0x2d65ce){const _0x1edde1=_0x1b2777;return this[_0x1edde1(0xb6)](_0xd26554,_0x2d65ce)[_0x1edde1(0xcc)]();}['getShapeModel'](_0x1c224d,_0x324c44,_0x2bfc86){const _0x4f77db=_0x1b2777;return this[_0x4f77db(0xb6)](_0x1c224d,_0x324c44)['_shapes'][_0x4f77db(0x10e)](_0x2bfc86);}[_0x1b2777(0x119)](_0x1a1882,_0x200c36,_0x2a5bcd){const _0x5d3258=_0x1b2777;return this[_0x5d3258(0xb6)](_0x1a1882,_0x200c36)[_0x5d3258(0x119)](_0x2a5bcd);}['getLineShapeRelation'](_0x56e0a9,_0x3579b5,_0xec2178){const _0x4fa56e=_0x1b2777;let _0x22ab84=this['_ensureShapeModelManager'](_0x56e0a9,_0x3579b5)[_0x4fa56e(0x113)][_0x4fa56e(0x10e)](_0xec2178);if(_0x22ab84)return _0x22ab84[_0x4fa56e(0xb4)]();}[_0x1b2777(0x105)](){}[_0x1b2777(0x9d)](_0x24e78c){const _0x2247b1=_0x1b2777;let _0x503002={},_0x3b420c=this[_0x2247b1(0xa9)][_0x2247b1(0x10e)](_0x24e78c);return _0x3b420c&&_0x3b420c[_0x2247b1(0xa4)]((_0x31d710,_0x5930a5)=>{const _0x3f2a5c=_0x2247b1;let _0x2b4b20=_0x31d710['toJSON']();_0x2b4b20[_0x3f2a5c(0xec)]>0x0&&(_0x503002[_0x5930a5]=_0x2b4b20);}),JSON['stringify'](_0x503002);}[_0x1b2777(0x139)](_0x3e9023,_0x5ad212){const _0x209237=_0x1b2777;Object[_0x209237(0x9f)](_0x5ad212)[_0x209237(0xa4)](_0x272d8f=>{const _0x2bfe5a=_0x209237;this[_0x2bfe5a(0xb6)](_0x3e9023,_0x272d8f)[_0x2bfe5a(0xed)](_0x5ad212[_0x272d8f]);});}['toJSON'](){const _0x372fab=_0x1b2777;let _0x930d={};return this[_0x372fab(0xa9)][_0x372fab(0xa4)]((_0x214802,_0x169147)=>{const _0x5ac8c3=_0x372fab;_0x930d[_0x169147]={},_0x214802[_0x5ac8c3(0xa4)]((_0x5e68f3,_0xc8d4ae)=>{const _0x57f301=_0x5ac8c3;_0x930d[_0x169147][_0xc8d4ae]=_0x5e68f3[_0x57f301(0xeb)]();});}),_0x930d;}['fromJSON'](_0x2bf9a6){Object['keys'](_0x2bf9a6)['forEach'](_0x2f3dd5=>{const _0x501e8d=_0x55ca;let _0x3b77aa=_0x2bf9a6[_0x2f3dd5];Object[_0x501e8d(0x9f)](_0x3b77aa)[_0x501e8d(0xa4)](_0x1baf71=>{const _0x33567e=_0x501e8d;this[_0x33567e(0xb6)](_0x2f3dd5,_0x1baf71)[_0x33567e(0xed)](_0x3b77aa[_0x1baf71]);});});}[_0x1b2777(0x101)](){const _0xbc9278=_0x1b2777;this[_0xbc9278(0x112)][_0xbc9278(0xaa)]({'pluginName':_0xbc9278(0xfa),'businesses':[_0x37476a[_0xbc9278(0x11b)]],'toJson':_0xb9192f=>this[_0xbc9278(0x9d)](_0xb9192f),'parseJson':_0x4fea57=>JSON[_0xbc9278(0xa5)](_0x4fea57),'onLoad':(_0x4d5bbe,_0x106b80)=>{const _0x14afc0=_0xbc9278;this[_0x14afc0(0x139)](_0x4d5bbe,_0x106b80);},'onUnLoad':_0x1d625e=>{const _0x51e8d0=_0xbc9278;let _0xe22bab=this[_0x51e8d0(0xa9)][_0x51e8d0(0x10e)](_0x1d625e);_0xe22bab&&(_0xe22bab[_0x51e8d0(0xa4)](_0x549dd2=>{const _0x3af62d=_0x51e8d0;_0x549dd2[_0x3af62d(0x122)]();}),this['_shapeModelManagerMap']['delete'](_0x1d625e));}});}[_0x1b2777(0x122)](){const _0x501602=_0x1b2777;this[_0x501602(0xa9)][_0x501602(0xa4)](_0x3cf640=>{const _0x4a0467=_0x501602;_0x3cf640[_0x4a0467(0xa4)](_0x1a2dd6=>{_0x1a2dd6['dispose']();});});}};K=G([W(0x0,_0x1fce46)],K);const q={'id':'sheet.mutation.insert-shape','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x56a6eb,_0x3cf7a7)=>{const _0x56004f=_0x1b2777;let {unitId:_0x4980d5,subUnitId:_0x5bf1db,shapeType:_0x1358b1,shapeId:_0x524b60,shapeName:_0x454e78,shapeData:_0x552638}=_0x3cf7a7;return _0x56a6eb[_0x56004f(0x10e)](K)[_0x56004f(0x12f)](_0x4980d5,_0x5bf1db,_0x1358b1,_0x524b60,_0x552638,_0x454e78),!0x0;}},J={'id':_0x1b2777(0xe9),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x195ddf,_0x2805a4)=>{const _0x2d8398=_0x1b2777;let {unitId:_0x24bb16,subUnitId:_0x182991,shapeId:_0x2547d1}=_0x2805a4;return _0x195ddf[_0x2d8398(0x10e)](K)['removeShape'](_0x24bb16,_0x182991,_0x2547d1),!0x0;}},Y={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x9a),'handler':(_0x5b9660,_0x468d47)=>{const _0x4c7424=_0x1b2777;var _0x147934,_0xfb3acb,_0x56fe63;let _0x3dcce5=_0x1fda72(_0x5b9660[_0x4c7424(0x10e)](_0x38fcfb),_0x468d47);if(!_0x3dcce5)return!0x1;let _0x1cf566=_0x5b9660[_0x4c7424(0x10e)](_0x2fc9c5),{unitId:_0x3269ef,subUnitId:_0xf103c9}=_0x3dcce5,_0x1e93c3=_0x1cf566[_0x4c7424(0x11a)](_0x3269ef,_0xf103c9);if(!_0x1e93c3)return!0x1;let _0x5845af=_0x5b9660[_0x4c7424(0x10e)](_0xa3208c),_0x32570c=_0x5b9660[_0x4c7424(0x10e)](_0x17d14d),_0x8c089a=_0x5b9660['get'](_0x51d1bf),_0x1d02e1=_0x5b9660[_0x4c7424(0x10e)](_0x3f2b28),_0x570449=_0x5b9660[_0x4c7424(0x10e)](K),{shapeType:_0x234e63,shapeData:_0x1d6c7a}=_0x468d47,_0x332c8b=_0x468d47[_0x4c7424(0x102)]||_0x3ef264(),_0x48ddc9={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b,'shapeName':(_0x147934=_0x468d47[_0x4c7424(0xc1)])==null?_0x35cb9a(_0x234e63,_0x570449[_0x4c7424(0xcc)](_0x3269ef,_0xf103c9)):_0x147934,'shapeType':_0x234e63,'shapeData':_0x1d6c7a},_0x44a293=_0x468d47['width']||0xc8,_0x49311b=_0x468d47[_0x4c7424(0x135)]||0xc8,_0x3124c0=0x0,_0x128d10=0x0,_0x3d28cf={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x38e155={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x468d47['position']){let {x:_0xefaab0,y:_0x3c6182}=_0x468d47[_0x4c7424(0xb5)];_0x3124c0=_0xefaab0,_0x128d10=_0x3c6182,_0x3d28cf=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0,_0x3c6182),_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0+_0x44a293,_0x3c6182+_0x49311b);}else{if(_0x468d47['range']){let {startRow:_0x513d6c,startColumn:_0x205e45}=_0x468d47[_0x4c7424(0xfb)];_0x3d28cf={'row':_0x513d6c,'rowOffset':0xa,'column':_0x205e45,'columnOffset':0xa};let _0x11d9cf=_0x1e93c3[_0x4c7424(0xea)](_0x513d6c,_0x205e45);_0x3124c0=_0x11d9cf[_0x4c7424(0xa7)]+0xa,_0x128d10=_0x11d9cf[_0x4c7424(0xf9)]+0xa,_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0x3124c0+_0x44a293,_0x128d10+_0x49311b);}}let _0x1ce045={'from':_0x3d28cf,'to':_0x38e155},_0x5d1e57={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'drawingId':_0x332c8b,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x1ce045,'transform':{'left':_0x3124c0,'top':_0x128d10,'width':_0x44a293,'height':_0x49311b},'data':{'shapeType':_0x234e63,'shapeData':_0x1d6c7a},'axisAlignSheetTransform':_0x1ce045,'allowTransform':!0x0};_0xc963bc(_0x234e63)&&(_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xf5)]=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['rotateEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['resizeEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xde)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xcd)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xbb)]=!0x1,_0x5d1e57['transform']['borderEnabled']=!0x1);let {undo:_0x40bd9b,redo:_0x22dfb0,objects:_0x11d2e5}=_0x1d02e1['getBatchAddOp']([_0x5d1e57]),_0x5427c6=_0x8c089a[_0x4c7424(0x10d)]({'id':_0xff1699['id'],'params':{'unitId':_0x3269ef,'drawings':[_0x5d1e57]}}),_0x239935=[...(_0xfb3acb=_0x5427c6[_0x4c7424(0xd5)])==null?[]:_0xfb3acb,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x22dfb0,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xd6)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6[_0x4c7424(0xd7)],{'id':q['id'],'params':_0x48ddc9}],_0x507e46=[{'id':J['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b}},...(_0x56fe63=_0x5427c6['preUndos'])==null?[]:_0x56fe63,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x40bd9b,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xaf)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6['undos']];return _0x16df04(_0x239935,_0x5845af)[_0x4c7424(0xb2)]?(_0x32570c[_0x4c7424(0x125)]({'unitID':_0x3269ef,'undoMutations':_0x507e46,'redoMutations':_0x239935}),!0x0):!0x1;}},X={'id':_0x1b2777(0xcf),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x2b7823,_0x561614)=>{const _0x352e89=_0x1b2777;let {unitId:_0x3d754f,subUnitId:_0x5e5a7a,shapeType:_0x47825f,shapeId:_0x18d440,shapeData:_0x3ad095}=_0x561614,_0x584b72=_0x2b7823['get'](K)[_0x352e89(0xb8)](_0x3d754f,_0x5e5a7a,_0x18d440);return _0x584b72&&(_0x47825f!==void 0x0&&_0x584b72[_0x352e89(0x105)](_0x47825f),_0x3ad095&&(_0x584b72==null||_0x584b72['setShapeData'](_0x3ad095,!0x0))),!0x0;}},ee={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xc8),'handler':(_0x3a27c9,_0x35b3bf)=>{const _0x3aebeb=_0x1b2777;var _0x462f99,_0x550383;let _0x453046=_0x1fda72(_0x3a27c9[_0x3aebeb(0x10e)](_0x38fcfb),_0x35b3bf);if(!_0x453046)return!0x1;let _0x4e9f99=_0x3a27c9[_0x3aebeb(0x10e)](_0x2fc9c5),{unitId:_0x5e19b3,subUnitId:_0x43fb46}=_0x453046,_0x2d656e=_0x4e9f99[_0x3aebeb(0x11a)](_0x5e19b3,_0x43fb46);if(!_0x2d656e)return!0x1;let _0x3cf08d=_0x3a27c9[_0x3aebeb(0x10e)](K),{shapeId:_0x39ffc1,shapeType:_0x238a33,shapeData:_0x5904b9,position:_0x31d818,width:_0x1e2a8a,height:_0x4d456f}=_0x35b3bf,_0x1a8e44=_0x3cf08d[_0x3aebeb(0xb8)](_0x5e19b3,_0x43fb46,_0x39ffc1);if(!_0x1a8e44)return!0x1;let _0x555443=_0x3a27c9[_0x3aebeb(0x10e)](_0xa3208c),_0x5e36d7=_0x3a27c9[_0x3aebeb(0x10e)](_0x17d14d),_0xed37da=_0x3a27c9[_0x3aebeb(0x10e)](_0x51d1bf),_0x226163=_0x3a27c9[_0x3aebeb(0x10e)](_0x3f2b28),_0x342e34={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeId':_0x39ffc1,'shapeType':_0x238a33,'shapeData':_0x5904b9},_0x4bfa7d=_0x1a8e44[_0x3aebeb(0x10b)](),_0x4096c8=_0x1a8e44['getShapeData'](),{x:_0x501798,y:_0x5758a1}=_0x31d818,_0x3dee2d={'from':_0x2d656e['getCellIndexAndOffsetByPosition'](_0x501798,_0x5758a1),'to':_0x2d656e[_0x3aebeb(0x124)](_0x501798+_0x1e2a8a,_0x5758a1+_0x4d456f)},_0x43079e={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'drawingId':_0x39ffc1,'drawingType':_0x4d3e69[_0x3aebeb(0x11e)],'sheetTransform':_0x3dee2d,'transform':{'left':_0x501798,'top':_0x5758a1,'width':_0x1e2a8a,'height':_0x4d456f},'data':{'shapeType':_0x238a33,'shapeData':_0x5904b9},'axisAlignSheetTransform':_0x3dee2d,'allowTransform':!0x0};_0xc963bc(_0x238a33)&&(_0x43079e['data'][_0x3aebeb(0xf5)]=!0x1,_0x43079e[_0x3aebeb(0xf2)][_0x3aebeb(0xcd)]=!0x1,_0x43079e[_0x3aebeb(0xf2)]['resizeEnabled']=!0x1,_0x43079e[_0x3aebeb(0xf2)]['borderEnabled']=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xcd)]=!0x1,_0x43079e['transform'][_0x3aebeb(0xbb)]=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xde)]=!0x1);let {undo:_0xf01f82,redo:_0x570e66,objects:_0x1e2eb2}=_0x226163[_0x3aebeb(0x99)]([_0x43079e]),_0x59ce19=_0xed37da['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x5e19b3,'drawings':[_0x43079e]}}),_0x15daf4=[...(_0x462f99=_0x59ce19[_0x3aebeb(0xd5)])==null?[]:_0x462f99,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0x570e66,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xd7)],{'id':X['id'],'params':_0x342e34}],_0x116dd2=[...(_0x550383=_0x59ce19[_0x3aebeb(0xe1)])==null?[]:_0x550383,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0xf01f82,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xce)],{'id':X['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeType':_0x4bfa7d,'shapeId':_0x39ffc1,'shapeData':_0x4096c8}}];return _0x16df04(_0x15daf4,_0x555443)[_0x3aebeb(0xb2)]?(_0x5e36d7[_0x3aebeb(0x125)]({'unitID':_0x5e19b3,'undoMutations':_0x116dd2,'redoMutations':_0x15daf4}),!0x0):!0x1;}},Z={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x129),'handler':(_0x48e061,_0xf599e8)=>{const _0x30e9c8=_0x1b2777;var _0x264938,_0x171074;let _0x34ba24=_0x1fda72(_0x48e061['get'](_0x38fcfb),_0xf599e8);if(!_0x34ba24)return!0x1;let _0x5bfbc9=_0x48e061[_0x30e9c8(0x10e)](_0x2fc9c5),{unitId:_0x2ca4fb,subUnitId:_0x52fe7e}=_0x34ba24,_0x5c370a=_0x5bfbc9[_0x30e9c8(0x115)](_0x2ca4fb,_0x52fe7e);if(!_0x5c370a)return!0x1;let _0xae6f32=_0x48e061[_0x30e9c8(0x10e)](_0x3f2b28),{shapeId:_0x3a8cd0,flipH:_0x1a0e57,flipV:_0x38f6a6}=_0xf599e8,_0x3c2534=_0xae6f32[_0x30e9c8(0x10a)]({'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0});if(!_0x3c2534)return!0x1;let _0x533831=_0x48e061[_0x30e9c8(0x10e)](K)['getShapeModel'](_0x2ca4fb,_0x52fe7e,_0x3a8cd0);if(!_0x533831)return!0x1;let _0x34beb9=_0x48e061[_0x30e9c8(0x10e)](_0xa3208c),_0x29869d=_0x48e061['get'](_0x17d14d),_0x239276=_0x48e061[_0x30e9c8(0x10e)](_0x51d1bf),_0x4d2a66={..._0x3c2534[_0x30e9c8(0xc6)]};_0x1a0e57!==void 0x0&&(_0x4d2a66[_0x30e9c8(0x10c)]=!_0x4d2a66[_0x30e9c8(0x10c)]),_0x38f6a6!==void 0x0&&(_0x4d2a66[_0x30e9c8(0xd0)]=!_0x4d2a66['flipY']);let _0x4f02a1=_0x2d6220(_0x4d2a66,_0x5c370a),_0x21b8ad=_0x45aabc(_0x4d2a66,_0x5c370a),_0x26c64a=_0x533831[_0x30e9c8(0x10b)](),_0xfdf682=_0x533831[_0x30e9c8(0xa2)](),_0x867b43={'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x4f02a1,'transform':_0x4d2a66,'data':{'shapeType':_0x26c64a,'shapeData':_0xfdf682},'axisAlignSheetTransform':_0x21b8ad,'allowTransform':!0x0},{undo:_0x2743e2,redo:_0x467de5,objects:_0x18e6c9}=_0xae6f32[_0x30e9c8(0x99)]([_0x867b43]),_0x286679=_0x239276[_0x30e9c8(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x2ca4fb,'drawings':[_0x867b43]}}),_0x4a4a7c=[...(_0x264938=_0x286679[_0x30e9c8(0xd5)])==null?[]:_0x264938,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x467de5,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679['redos']],_0x3d4f42=[...(_0x171074=_0x286679['preUndos'])==null?[]:_0x171074,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x2743e2,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679[_0x30e9c8(0xce)]];if(_0xc963bc(_0x26c64a)){let _0x32dd5e=_0x533831[_0x30e9c8(0xb4)]();if(_0x32dd5e){let _0x5a7b3a={..._0x32dd5e};_0x5a7b3a[_0x30e9c8(0xa0)]=void 0x0,_0x5a7b3a['to']=void 0x0,_0x4a4a7c[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x5a7b3a}}}),_0x3d4f42[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x32dd5e}}});}}return _0x16df04(_0x4a4a7c,_0x34beb9)['result']?(_0x29869d[_0x30e9c8(0x125)]({'unitID':_0x2ca4fb,'undoMutations':_0x3d4f42,'redoMutations':_0x4a4a7c}),!0x0):!0x1;}},Q={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xa1),'handler':(_0x4ee665,_0x1d2249)=>{const _0x24c5bf=_0x1b2777;var _0x3aa8c2,_0x26eec3;let _0x182c7d=_0x1fda72(_0x4ee665[_0x24c5bf(0x10e)](_0x38fcfb),_0x1d2249);if(!_0x182c7d)return!0x1;let _0x215e90=_0x4ee665[_0x24c5bf(0x10e)](_0x2fc9c5),{unitId:_0x167f6f,subUnitId:_0x3b9010}=_0x182c7d,_0x528dfd=_0x215e90[_0x24c5bf(0x115)](_0x167f6f,_0x3b9010);if(!_0x528dfd)return!0x1;let _0x4aceed=_0x4ee665[_0x24c5bf(0x10e)](_0x3f2b28),{shapeId:_0x3bf16c,rotate:_0x1d4fc6}=_0x1d2249,_0x3980aa=_0x4aceed[_0x24c5bf(0x10a)]({'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c});if(!_0x3980aa)return!0x1;let _0x4c497c=_0x4ee665[_0x24c5bf(0x10e)](K)[_0x24c5bf(0xb8)](_0x167f6f,_0x3b9010,_0x3bf16c);if(!_0x4c497c)return!0x1;let _0x22a473=_0x4ee665['get'](_0xa3208c),_0x21cfac=_0x4ee665[_0x24c5bf(0x10e)](_0x17d14d),_0x4bfe8f=_0x4ee665['get'](_0x51d1bf),_0x6c7996={..._0x3980aa[_0x24c5bf(0xc6)]};_0x1d4fc6!==void 0x0&&(_0x6c7996['angle']=(_0x6c7996[_0x24c5bf(0xe8)]||0x0)+_0x1d4fc6);let _0x45de82=_0x2d6220(_0x6c7996,_0x528dfd),_0x16888a=_0x45aabc(_0x6c7996,_0x528dfd),_0x384be5=_0x4c497c['getShapeType'](),_0x37868b=_0x4c497c['getShapeData'](),_0xa45a1c={'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c,'drawingType':_0x4d3e69[_0x24c5bf(0x11e)],'sheetTransform':_0x45de82,'transform':_0x6c7996,'data':{'shapeType':_0x384be5,'shapeData':_0x37868b},'axisAlignSheetTransform':_0x16888a,'allowTransform':!0x0},{undo:_0x2b7507,redo:_0x1cb603,objects:_0x1a9b5d}=_0x4aceed[_0x24c5bf(0x99)]([_0xa45a1c]),_0x489e65=_0x4bfe8f[_0x24c5bf(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x167f6f,'drawings':[_0xa45a1c]}}),_0x456693=[...(_0x3aa8c2=_0x489e65[_0x24c5bf(0xd5)])==null?[]:_0x3aa8c2,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x1cb603,'objects':_0x1a9b5d,'type':_0x534eeb[_0x24c5bf(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xd7)]],_0x46358c=[...(_0x26eec3=_0x489e65[_0x24c5bf(0xe1)])==null?[]:_0x26eec3,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x2b7507,'objects':_0x1a9b5d,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xce)]];return _0x16df04(_0x456693,_0x22a473)[_0x24c5bf(0xb2)]?(_0x21cfac[_0x24c5bf(0x125)]({'unitID':_0x167f6f,'undoMutations':_0x46358c,'redoMutations':_0x456693}),!0x0):!0x1;}},te={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x3e0ca0,_0x5ac4b2)=>{const _0x2fbda7=_0x1b2777;var _0x42b59b;let _0x2a5e71=_0x1fda72(_0x3e0ca0['get'](_0x38fcfb),_0x5ac4b2);if(!_0x2a5e71)return!0x1;let {unitId:_0x3bf8a0,subUnitId:_0x467450}=_0x2a5e71,{shapeId:_0x17978c}=_0x5ac4b2,_0x1c2769=_0x3e0ca0[_0x2fbda7(0x10e)](K)[_0x2fbda7(0xb8)](_0x3bf8a0,_0x467450,_0x17978c);if(!_0x1c2769)return!0x1;let _0x16ec8b=_0x1c2769[_0x2fbda7(0x12b)](),_0x54a32a=(_0x42b59b=_0x16ec8b==null?void 0x0:_0x16ec8b['isHorizontal'])==null?!0x0:_0x42b59b,_0x5c4340=!_0x54a32a,_0x2758fa=_0x3e0ca0[_0x2fbda7(0x10e)](_0xa3208c),_0x1899f9=_0x3e0ca0[_0x2fbda7(0x10e)](_0x17d14d),_0x2deddc={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x5c4340}}},_0x82fec3={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x54a32a}}},_0x27e504=[{'id':X['id'],'params':_0x2deddc}],_0x16597c=[{'id':X['id'],'params':_0x82fec3}];return _0x16df04(_0x27e504,_0x2758fa)[_0x2fbda7(0xb2)]?(_0x1899f9['pushUndoRedo']({'unitID':_0x3bf8a0,'undoMutations':_0x16597c,'redoMutations':_0x27e504}),!0x0):!0x1;}},ne={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x128),'handler':(_0x5344ba,_0x246558)=>{const _0x30192c=_0x1b2777;var _0x3a3d48,_0x328601,_0x12121b,_0x4a321f;let _0x1c75d3=_0x1fda72(_0x5344ba[_0x30192c(0x10e)](_0x38fcfb),_0x246558);if(!_0x1c75d3)return!0x1;let _0x15709a=_0x5344ba[_0x30192c(0x10e)](_0x2fc9c5),{unitId:_0x3309bb,subUnitId:_0x1945e1}=_0x1c75d3,_0x18ee9f=_0x15709a[_0x30192c(0x115)](_0x3309bb,_0x1945e1);if(!_0x18ee9f)return!0x1;let _0x87fa3c=_0x5344ba[_0x30192c(0x10e)](_0x3f2b28),{connectorShapeId:_0x240910,width:_0x50fcd7,height:_0x9c1af2,left:_0x4198a0,top:_0x5043af,flipX:_0x22df10,flipY:_0x2d657b,rotation:_0xb858bd,oldAdjustValues:_0x43c30b,newAdjustValues:_0x21f304,oldLineType:_0xb66e6,newLineType:_0x5d3dad,oldRelation:_0x7132be,newRelation:_0x5fb073}=_0x246558,_0x2c4646=_0x87fa3c['getDrawingByParam']({'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910});if(!_0x2c4646)return!0x1;let _0x5591ee=_0x5344ba[_0x30192c(0x10e)](K)[_0x30192c(0xb8)](_0x3309bb,_0x1945e1,_0x240910);if(!_0x5591ee)return!0x1;let _0x521fa3=_0x5344ba[_0x30192c(0x10e)](_0xa3208c),_0x480f7f=_0x5344ba[_0x30192c(0x10e)](_0x17d14d),_0x5085c7=_0x5344ba['get'](_0x51d1bf),_0x4adcee={..._0x2c4646[_0x30192c(0xc6)],'width':_0x50fcd7,'height':_0x9c1af2,'left':_0x4198a0,'top':_0x5043af,'flipX':_0x22df10,'flipY':_0x2d657b,'angle':(_0x3a3d48=_0xb858bd==null?(_0x328601=_0x2c4646[_0x30192c(0xc6)])==null?void 0x0:_0x328601[_0x30192c(0xe8)]:_0xb858bd)==null?0x0:_0x3a3d48},_0x38e6ef=_0x2d6220(_0x4adcee,_0x18ee9f),_0x37787c=_0x45aabc(_0x4adcee,_0x18ee9f),_0x172127=_0x5591ee['getShapeType'](),_0x185478=_0x5591ee[_0x30192c(0xa2)](),_0x2a5b4d={'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x38e6ef,'transform':_0x4adcee,'data':{'shapeType':_0x5d3dad||_0xb66e6||_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x21f304||_0x43c30b||(_0x185478==null?void 0x0:_0x185478['adjustValues']),'relation':_0x5fb073||_0x7132be||(_0x185478==null?void 0x0:_0x185478['relation'])}},'axisAlignSheetTransform':_0x37787c,'allowTransform':!0x0},{undo:_0x266eb1,redo:_0x22cda4,objects:_0x2d79d6}=_0x87fa3c[_0x30192c(0x99)]([_0x2a5b4d]),_0xe78cdb=_0x5085c7['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x3309bb,'drawings':[_0x2a5b4d]}}),_0x55fed2=[...(_0x12121b=_0xe78cdb[_0x30192c(0xd5)])==null?[]:_0x12121b,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x22cda4,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb[_0x30192c(0xd7)],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x5d3dad,'shapeData':{'adjustValues':_0x21f304,'relation':_0x5fb073}}}],_0x15f412=[...(_0x4a321f=_0xe78cdb[_0x30192c(0xe1)])==null?[]:_0x4a321f,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x266eb1,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb['undos'],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x43c30b||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x11f)]),'relation':_0x7132be||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x13a)])}}}];return _0x16df04(_0x55fed2,_0x521fa3)[_0x30192c(0xb2)]?(_0x480f7f[_0x30192c(0x125)]({'unitID':_0x3309bb,'undoMutations':_0x15f412,'redoMutations':_0x55fed2}),!0x0):!0x1;}},re={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xe4),'handler':(_0x13a5e6,_0x50146b)=>{const _0x1fcd11=_0x1b2777;var _0x229e79,_0x2a2be8;let _0x213a4e=_0x1fda72(_0x13a5e6[_0x1fcd11(0x10e)](_0x38fcfb),_0x50146b);if(!_0x213a4e)return!0x1;let _0x2d5074=_0x13a5e6[_0x1fcd11(0x10e)](_0x2fc9c5),{unitId:_0x27196b,subUnitId:_0x3abcb8}=_0x213a4e,_0x467457=_0x2d5074['getSkeleton'](_0x27196b,_0x3abcb8);if(!_0x467457)return!0x1;let _0x43876a=_0x13a5e6[_0x1fcd11(0x10e)](_0x3f2b28),{shapeId:_0x4375dc,width:_0x280057,height:_0xeb5e0e,left:_0xf9503d,top:_0x41249b,flipX:_0x332bb6,flipY:_0x3b11c6,angle:_0x1f0a28,oldAdjustValues:_0x181092,newAdjustValues:_0x594e61,oldLineType:_0x5a8a01,newLineType:_0x2be886}=_0x50146b,_0x42f2f3=_0x43876a[_0x1fcd11(0x10a)]({'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc});if(!_0x42f2f3)return!0x1;let _0x42f827=_0x13a5e6[_0x1fcd11(0x10e)](K)[_0x1fcd11(0xb8)](_0x27196b,_0x3abcb8,_0x4375dc);if(!_0x42f827)return!0x1;let _0x2bbb79=_0x13a5e6[_0x1fcd11(0x10e)](_0xa3208c),_0x4aafee=_0x13a5e6[_0x1fcd11(0x10e)](_0x17d14d),_0x147444=_0x13a5e6[_0x1fcd11(0x10e)](_0x51d1bf),_0x4a8b68={..._0x42f2f3[_0x1fcd11(0xc6)],'width':_0x280057,'height':_0xeb5e0e,'left':_0xf9503d,'top':_0x41249b,'flipX':_0x332bb6,'flipY':_0x3b11c6,'angle':_0x1f0a28},_0xc544d3=_0x2d6220(_0x4a8b68,_0x467457),_0x199394=_0x45aabc(_0x4a8b68,_0x467457),_0x62abc3=_0x42f827[_0x1fcd11(0x10b)](),_0x12129d=_0x42f827['getShapeData'](),_0xd98f5d={'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc,'drawingType':_0x4d3e69[_0x1fcd11(0x11e)],'sheetTransform':_0xc544d3,'transform':_0x4a8b68,'data':{'shapeType':_0x2be886||_0x5a8a01||_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x594e61||_0x181092||(_0x12129d==null?void 0x0:_0x12129d[_0x1fcd11(0x11f)])}},'axisAlignSheetTransform':_0x199394,'allowTransform':!0x0},{undo:_0x2d42cc,redo:_0x394950,objects:_0x37adc1}=_0x43876a[_0x1fcd11(0x99)]([_0xd98f5d]),_0x552d28=_0x147444[_0x1fcd11(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x27196b,'drawings':[_0xd98f5d]}}),_0x2557fe=[...(_0x229e79=_0x552d28['preRedos'])==null?[]:_0x229e79,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x394950,'objects':_0x37adc1,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xd7)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x2be886,'shapeData':{'adjustValues':_0x594e61}}}],_0x2a9c33=[...(_0x2a2be8=_0x552d28[_0x1fcd11(0xe1)])==null?[]:_0x2a2be8,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x2d42cc,'objects':_0x37adc1,'type':_0x534eeb[_0x1fcd11(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xce)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x181092||(_0x12129d==null?void 0x0:_0x12129d['adjustValues'])}}}];return _0x16df04(_0x2557fe,_0x2bbb79)[_0x1fcd11(0xb2)]?(_0x4aafee[_0x1fcd11(0x125)]({'unitID':_0x27196b,'undoMutations':_0x2a9c33,'redoMutations':_0x2557fe}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x20977a,_0x3973ef)=>{const _0x401cb6=_0x1b2777;let {unitId:_0x2c9ef0,subUnitId:_0x434f3f,shapeType:_0x48ff2c,shapeId:_0x42bbe7,shapeData:_0x5d9185}=_0x3973ef,_0x155f2e=_0x20977a['get'](K)[_0x401cb6(0xb8)](_0x2c9ef0,_0x434f3f,_0x42bbe7);return _0x155f2e&&(_0x155f2e[_0x401cb6(0x105)](_0x48ff2c),_0x5d9185&&(_0x155f2e==null||_0x155f2e[_0x401cb6(0x11d)](_0x5d9185))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xc4)],'handler':(_0x47c15e,_0x16a230)=>{const _0x3efacb=_0x1b2777;if(!_0x16a230)return!0x1;let _0xd51bea=_0x47c15e['get'](_0xa3208c),_0x5f19ec=_0x47c15e['get'](K),_0x3b4f0a=_0x47c15e['get'](_0x17d14d),_0x16a1a4=[],_0x5d5bc9=[],{unitId:_0x1e8b93,subUnitId:_0x31a359,shapeId:_0xddb8de,shapeType:_0x544bbd,shapeData:_0x39eb48}=_0x16a230,_0x34e07b=_0x5f19ec[_0x3efacb(0xb8)](_0x1e8b93,_0x31a359,_0xddb8de);if(_0x34e07b){let _0x41c422=_0x34e07b[_0x3efacb(0x10b)](),_0x22a1d3=Object[_0x3efacb(0xc9)]({},_0x34e07b[_0x3efacb(0xa2)]()),_0x418a5b={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x544bbd,'shapeData':_0x39eb48},_0x4d6efa={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x41c422,'shapeData':_0x22a1d3};return _0x16a1a4['push']({'id':$['id'],'params':_0x418a5b}),_0x5d5bc9['push']({'id':$['id'],'params':_0x4d6efa}),_0x16a1a4['every'](_0x1713f9=>_0xd51bea[_0x3efacb(0x106)](_0x1713f9['id'],_0x1713f9[_0x3efacb(0xf6)]))&&_0x3b4f0a[_0x3efacb(0x125)]({'unitID':_0x1e8b93,'redoMutations':[..._0x16a1a4],'undoMutations':[..._0x5d5bc9]}),!0x0;}return!0x1;}};var ae=_0x1b2777(0x121),oe=_0x1b2777(0xab);const se={};let ce=class extends _0x543ffa{constructor(_0x511283,_0x5c10d6,_0x3489a2,_0x404e4b,_0x4fff45){const _0x122cf4=_0x1b2777;super(),this[_0x122cf4(0xd3)]=_0x511283,this['_sheetInterceptorService']=_0x5c10d6,this[_0x122cf4(0x107)]=_0x3489a2,this[_0x122cf4(0x12e)]=_0x404e4b,this[_0x122cf4(0xa6)]=_0x4fff45,this[_0x122cf4(0x136)](),this[_0x122cf4(0xd9)]();}[_0x1b2777(0x136)](){const _0x3e760e=_0x1b2777;[Y,ee,Z,Q,te,ne,re,q,J,$,X]['forEach'](_0x2c8b59=>this[_0x3e760e(0xae)](this['_commandService'][_0x3e760e(0xbc)](_0x2c8b59)));}[_0x1b2777(0xd9)](){const _0x3a0b28=_0x1b2777;this['disposeWithMe'](this[_0x3a0b28(0xa8)][_0x3a0b28(0x120)]({'getMutations':_0x1cd38b=>{const _0x515113=_0x3a0b28;if(_0x1cd38b['id']===_0x36289e['id']){let {drawings:_0x345653}=_0x1cd38b[_0x515113(0xf6)],_0x2bf523=_0x345653[_0x515113(0xc7)](_0x38638e=>_0x38638e[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x2bf523[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4d6cf5=[],_0x2571e1=[];return _0x2bf523[_0x515113(0xa4)](_0x2a908d=>{const _0x30770b=_0x515113;let {unitId:_0x4cb35d,subUnitId:_0x23ad55,drawingId:_0x229661}=_0x2a908d,_0x1f5098=this['_sheetsShapeService'][_0x30770b(0xb8)](_0x4cb35d,_0x23ad55,_0x229661);if(!_0x1f5098)throw TypeError(_0x30770b(0xd4)+_0x1f5098);_0x4d6cf5['push']({'id':J['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661}}),_0x2571e1[_0x30770b(0xb7)]({'id':q['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661,'shapeType':_0x1f5098[_0x30770b(0x10b)](),'shapeData':_0x1f5098[_0x30770b(0xa2)]()}});let _0x10dd64=this[_0x30770b(0x12e)]['getBasicShapeRelation'](_0x4cb35d,_0x23ad55,_0x229661);if(_0x10dd64)for(let _0x373799 of _0x10dd64){let _0x464049=_0x373799[_0x30770b(0x12d)],_0x49a385=_0x373799[_0x30770b(0xbd)],_0x339cb0=_0x49a385?{'from':void 0x0}:{'to':void 0x0},_0x25a640=_0x49a385?{'from':{'shapeId':_0x373799['shapeId'],'cxnIndex':_0x373799[_0x30770b(0x116)]}}:{'to':{'shapeId':_0x373799[_0x30770b(0x102)],'cxnIndex':_0x373799[_0x30770b(0x116)]}};_0x4d6cf5['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x339cb0}}}),_0x2571e1['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x25a640}}});}}),{'preRedos':_0x4d6cf5,'redos':[],'preUndos':[],'undos':_0x2571e1};}if(_0x1cd38b['id']===_0x6aec62['id']){let {drawings:_0x52c0a6}=_0x1cd38b[_0x515113(0xf6)],_0x220de4=_0x52c0a6[_0x515113(0xc7)](_0x2a7185=>_0x2a7185[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x220de4[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3866ee=[],_0x19db35=[];for(let _0x30aad0 of _0x220de4){let {unitId:_0x37823b,subUnitId:_0x1bbdc8,drawingId:_0x360609,transform:_0x139aa8}=_0x30aad0;if(!_0x37823b||!_0x1bbdc8||!_0x360609||!_0x139aa8)continue;let _0x25a2a0=this[_0x515113(0x12e)][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x360609);if(!_0x25a2a0)throw TypeError(_0x515113(0xd4)+_0x25a2a0);if(_0xc963bc(_0x25a2a0[_0x515113(0x10b)]())){let _0x5e00fe=this[_0x515113(0x12e)][_0x515113(0xff)](_0x37823b,_0x1bbdc8,_0x360609);_0x5e00fe&&(_0x3866ee[_0x515113(0xb7)]({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x19db35['push']({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':_0x5e00fe}}}));}else{let _0x137bdf=this['_sheetsShapeService'][_0x515113(0x119)](_0x37823b,_0x1bbdc8,_0x360609);if(_0x137bdf&&_0x137bdf[_0x515113(0xec)]>0x0)for(let _0x106617 of _0x137bdf){let _0x5af678=_0x106617[_0x515113(0x12d)],_0x251609=_0x106617[_0x515113(0xbd)],_0x1f995c=this['_sheetsShapeService'][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x5af678);if(!_0x1f995c)continue;let _0x258b59=_0x1f995c[_0x515113(0xda)](),_0x24d385=_0x1f995c[_0x515113(0x138)]();_0x258b59&&_0x24d385?this[_0x515113(0xcb)](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x258b59,_0x24d385,_0x3866ee,_0x19db35,_0x360609,_0x139aa8):this['_addLineFollowShapeUpdates'](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x251609?_0x258b59:_0x24d385,_0x251609,_0x3866ee,_0x19db35,_0x360609,_0x139aa8);}}}return{'preRedos':[],'redos':_0x3866ee,'preUndos':_0x19db35,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1b2777(0x111)](_0x110c37,_0x36f00f,_0x33e67b,_0x4c63e3,_0x3832f3){const _0x1ad18b=_0x1b2777;if(!_0x36f00f||!_0x33e67b)return null;let {shapeId:_0x5453af,cxnIndex:_0x3d58b1}=_0x110c37,_0x3e50af=this[_0x1ad18b(0x12e)][_0x1ad18b(0xb8)](_0x36f00f,_0x33e67b,_0x5453af);if(!_0x3e50af)return null;let _0x32f17a=this['_drawingManagerService'][_0x1ad18b(0x10a)]({'unitId':_0x36f00f,'subUnitId':_0x33e67b,'drawingId':_0x5453af});if(!(_0x32f17a!=null&&_0x32f17a['transform']))return null;let {left:_0x3442a=0x0,top:_0x427335=0x0,width:_0x59faab=0x0,height:_0x408d6e=0x0,flipX:_0x53e966=!0x1,flipY:_0x476111=!0x1,angle:_0x54f57a}=_0x32f17a[_0x1ad18b(0xc6)];if(_0x3832f3&&_0x4c63e3===_0x5453af){var _0x1f0cd2,_0x451a25,_0x40ce47,_0x5ac989,_0x23140a,_0x17fb87,_0x466ad1;_0x3442a=(_0x1f0cd2=_0x3832f3['left'])==null?_0x3442a:_0x1f0cd2,_0x427335=(_0x451a25=_0x3832f3[_0x1ad18b(0xd8)])==null?_0x427335:_0x451a25,_0x59faab=(_0x40ce47=_0x3832f3[_0x1ad18b(0x104)])==null?_0x59faab:_0x40ce47,_0x408d6e=(_0x5ac989=_0x3832f3[_0x1ad18b(0x135)])==null?_0x408d6e:_0x5ac989,_0x53e966=(_0x23140a=_0x3832f3[_0x1ad18b(0x10c)])==null?_0x53e966:_0x23140a,_0x476111=(_0x17fb87=_0x3832f3[_0x1ad18b(0xd0)])==null?_0x476111:_0x17fb87,_0x54f57a=(_0x466ad1=_0x3832f3['angle'])==null?_0x54f57a:_0x466ad1;}_0x3e50af[_0x1ad18b(0xe5)]({'width':_0x59faab,'height':_0x408d6e});let _0x4b9367=_0x3e50af['getConnectionSiteList']()[_0x1ad18b(0xd2)](_0x5f5702=>_0x5f5702['index']===_0x3d58b1);if(!_0x4b9367)return null;let _0x3d1d0c=_0x53e966?_0x59faab-_0x4b9367['x']:_0x4b9367['x'],_0x3f1d56=_0x476111?_0x408d6e-_0x4b9367['y']:_0x4b9367['y'];if(_0x54f57a!==0x0&&_0x54f57a!=null){let _0x276b5e=_0x54f57a*Math['PI']/0xb4,_0x26b722=Math[_0x1ad18b(0x9e)](_0x276b5e),_0x2e3305=Math[_0x1ad18b(0x109)](_0x276b5e),_0x270bd4=_0x59faab/0x2,_0x1b6710=_0x408d6e/0x2,_0x3af8da=_0x3d1d0c-_0x270bd4,_0x2faf0d=_0x3f1d56-_0x1b6710;_0x3d1d0c=_0x270bd4+_0x3af8da*_0x26b722-_0x2faf0d*_0x2e3305,_0x3f1d56=_0x1b6710+_0x3af8da*_0x2e3305+_0x2faf0d*_0x26b722;}_0x3d1d0c+=_0x3442a,_0x3f1d56+=_0x427335;let _0x3c4914=_0x4b9367['ang']/0xea60;_0x53e966&&(_0x3c4914=0xb4-_0x3c4914),_0x476111&&(_0x3c4914=-_0x3c4914),_0x3c4914+=_0x54f57a||0x0,_0x3c4914=(_0x3c4914%0x168+0x168)%0x168;let _0x4df82a=_0x40b288({'left':_0x3442a,'top':_0x427335,'width':_0x59faab,'height':_0x408d6e},_0x54f57a||0x0);return{'point':{'x':_0x3d1d0c,'y':_0x3f1d56},'angle':_0x3c4914,'bounds':_0x4df82a};}[_0x1b2777(0xcb)](_0x12a202,_0x198e92,_0x586d87,_0x38579f,_0x49141c,_0x5c8c89,_0x185dd1,_0x15e697,_0x5b8a24,_0xd74126){const _0x5edce5=_0x1b2777;let _0x594a81=this[_0x5edce5(0x107)][_0x5edce5(0x115)](_0x12a202,_0x198e92);if(!_0x594a81)return;let _0x4612a5=_0x38579f[_0x5edce5(0xb4)](),_0x4f7d3c=_0x38579f[_0x5edce5(0xfe)](),_0x1f8659={},_0x365c5e={};_0x4f7d3c[_0x5edce5(0xa4)](_0x2ad86d=>{const _0x4ef58b=_0x5edce5;let _0xe1cb2e=_0x38579f[_0x4ef58b(0xd1)](_0x2ad86d);_0x365c5e[_0x2ad86d]=_0xe1cb2e==null?0x0:_0xe1cb2e;});let _0x5aa757=this[_0x5edce5(0x111)](_0x49141c,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126),_0x297962=this['_getConnectPointInfo'](_0x5c8c89,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126);if(_0x5aa757&&_0x297962){let _0x384a55=_0x38579f[_0x5edce5(0x10b)](),_0x289467=_0x4cc214(_0x5aa757,_0x297962,_0x384a55),_0x4059cf=_0x384a55;if(_0x289467){let _0xe5e3af=_0xc69524(_0x289467,_0x38579f[_0x5edce5(0x10b)]()),_0x3c0888=this[_0x5edce5(0xa6)][_0x5edce5(0x127)](_0x12a202,_0x198e92);if(_0x3c0888&&_0x3c0888[_0x586d87]){let _0x65ccf6=_0x3c0888[_0x586d87];_0x4059cf=_0xe5e3af[_0x5edce5(0xdb)];for(let [_0x3a9e12,_0x5b5301]of Object[_0x5edce5(0xc3)](_0xe5e3af[_0x5edce5(0x11f)]))_0x1f8659[_0x3a9e12]=_0x5b5301;let _0x283c23={..._0x65ccf6[_0x5edce5(0xc6)],'width':_0xe5e3af['worldRect'][_0x5edce5(0x104)],'height':_0xe5e3af['worldRect'][_0x5edce5(0x135)],'left':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0x132)],'top':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0xd8)],'flipX':_0xe5e3af['worldRect'][_0x5edce5(0x10c)],'flipY':_0xe5e3af['worldRect'][_0x5edce5(0xd0)],'angle':_0xe5e3af[_0x5edce5(0xe2)]},_0x39a2c0=_0x2d6220(_0x283c23,_0x594a81),_0x5bde46=_0x45aabc(_0x283c23,_0x594a81),_0x296621={'unitId':_0x12a202,'subUnitId':_0x198e92,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'drawingId':_0x586d87,'transform':_0x283c23,'sheetTransform':_0x39a2c0,'axisAlignSheetTransform':_0x5bde46},{unitId:_0x4c9316,subUnitId:_0x3d4148,undo:_0x2b9d07,redo:_0x112041,objects:_0x292cfa}=this[_0x5edce5(0xa6)]['getBatchUpdateOp']([_0x296621]);_0x185dd1[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x112041,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}}),_0x15e697[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x2b9d07,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}});}_0x38579f[_0x5edce5(0xf4)]();}_0x185dd1[_0x5edce5(0xb7)]({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x4059cf,'shapeData':{'adjustValues':_0x1f8659,'relation':_0x4612a5}}}),_0x15e697['push']({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x384a55,'shapeData':{'adjustValues':_0x365c5e,'relation':_0x4612a5}}});}}[_0x1b2777(0x137)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x4c6ed9,_0x4452aa,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da){const _0x2d7ba0=_0x1b2777;var _0x3f10a4;if(!_0x4c6ed9)return;let _0x1ceda0=this['_sheetSkeletonService'][_0x2d7ba0(0x115)](_0x3aa200,_0x587d7e);if(!_0x1ceda0)return;let _0x325687=(_0x3f10a4=this['_drawingManagerService'][_0x2d7ba0(0x10a)]({'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingId':_0x538ad8}))==null?void 0x0:_0x3f10a4[_0x2d7ba0(0xc6)];if(!_0x325687)return;let _0x3340b6=_0x325687[_0x2d7ba0(0x132)]!==_0x5340da['left']||_0x325687[_0x2d7ba0(0xd8)]!==_0x5340da['top'],_0x10dddc=_0x325687[_0x2d7ba0(0x104)]!==_0x5340da[_0x2d7ba0(0x104)]||_0x325687[_0x2d7ba0(0x135)]!==_0x5340da[_0x2d7ba0(0x135)],_0x19573b=_0x325687[_0x2d7ba0(0x10c)]!==_0x5340da[_0x2d7ba0(0x10c)]||_0x325687['flipY']!==_0x5340da[_0x2d7ba0(0xd0)],_0x1b856e=_0x325687[_0x2d7ba0(0xe8)]!==_0x5340da['angle'];if(_0x3340b6&&!_0x10dddc&&!_0x19573b&&!_0x1b856e){var _0x493f59,_0x2306d6,_0x3b96e9,_0x49ce6d;let _0x2d847c=((_0x493f59=_0x5340da[_0x2d7ba0(0x132)])==null?0x0:_0x493f59)-((_0x2306d6=_0x325687[_0x2d7ba0(0x132)])==null?0x0:_0x2306d6),_0x401d65=((_0x3b96e9=_0x5340da[_0x2d7ba0(0xd8)])==null?0x0:_0x3b96e9)-((_0x49ce6d=_0x325687[_0x2d7ba0(0xd8)])==null?0x0:_0x49ce6d),_0xcf994e=this[_0x2d7ba0(0xa6)][_0x2d7ba0(0x127)](_0x3aa200,_0x587d7e);if(_0xcf994e&&_0xcf994e[_0x4144f7]){var _0x38b077,_0x4e0711,_0x556193,_0x2a9f3a;let _0x4c4b43=_0xcf994e[_0x4144f7],_0x5e7afc={..._0x4c4b43['transform'],'left':((_0x38b077=(_0x4e0711=_0x4c4b43['transform'])==null?void 0x0:_0x4e0711['left'])==null?0x0:_0x38b077)+_0x2d847c,'top':((_0x556193=(_0x2a9f3a=_0x4c4b43[_0x2d7ba0(0xc6)])==null?void 0x0:_0x2a9f3a['top'])==null?0x0:_0x556193)+_0x401d65},_0x2ea5f8=_0x2d6220(_0x5e7afc,_0x1ceda0),_0x48c653=_0x45aabc(_0x5e7afc,_0x1ceda0),_0x285aa0={'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingType':_0x4d3e69[_0x2d7ba0(0x11e)],'drawingId':_0x4144f7,'transform':_0x5e7afc,'sheetTransform':_0x2ea5f8,'axisAlignSheetTransform':_0x48c653},{unitId:_0x30c7b3,subUnitId:_0x948afe,undo:_0x17153e,redo:_0x20264b,objects:_0x59dbf6}=this['_drawingManagerService'][_0x2d7ba0(0x99)]([_0x285aa0]);_0x34c43b['push']({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x20264b,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}}),_0x5232bf[_0x2d7ba0(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x17153e,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}});}}else{let _0x2b0d6f=_0x1c0dff[_0x2d7ba0(0xda)](),_0x493218=_0x1c0dff[_0x2d7ba0(0x138)]();this[_0x2d7ba0(0xcb)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x2b0d6f,_0x493218,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da);}}};ce=G([W(0x0,_0xa3208c),W(0x1,_0x19216a(_0x51d1bf)),W(0x2,_0x19216a(_0x2fc9c5)),W(0x3,_0x19216a(K)),W(0x4,_0x19216a(_0x5b1dc7))],ce);let le=class extends _0x11a17d{constructor(_0x139a9b=se,_0x52b822,_0x18f9fb,_0xffa4e0){const _0x49c0ef=_0x1b2777;super(),this['_config']=_0x139a9b,this[_0x49c0ef(0x133)]=_0x52b822,this[_0x49c0ef(0xd3)]=_0x18f9fb,this['_configService']=_0xffa4e0;let {..._0x37d887}=_0x14640d({},se,this['_config']);this[_0x49c0ef(0xf0)][_0x49c0ef(0xe6)]('sheets-shape.config',_0x37d887);}[_0x1b2777(0xca)](){const _0x5e6648=_0x1b2777;let _0x11dc81=this[_0x5e6648(0x133)];[[U],[K],[ce]][_0x5e6648(0xa4)](_0x110116=>_0x11dc81['add'](_0x110116)),_0x29f0fc(_0x11dc81,[[K],[ce]]);}};H(le,_0x1b2777(0xfd),_0x37476a[_0x1b2777(0x11b)]),H(le,'pluginName',_0x1b2777(0xfa)),H(le,_0x1b2777(0x131),ae),H(le,_0x1b2777(0xac),oe),le=G([_0x2c7cf6(_0x17d981),W(0x1,_0x19216a(_0x180637)),W(0x2,_0xa3208c),W(0x3,_0x1802b3)],le);function _0x5220(){const _0x4fb7a2=['removeShape','getShapeRelation','position','_ensureShapeModelManager','push','getShapeModel','3iJNeah','set','resizeEnabled','registerCommand','isFrom','call','getId','204uZQgjg','shapeName','addShape','entries','COMMAND','worldRect','transform','filter','sheet.command.set-shape-drawing-data','assign','onStarting','_addLineRerouteUpdates','getShapeDisplayNames','rotateEnabled','undos','sheet.mutation.update-shape-data','flipY','getAdjustValueByName','find','_commandService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','preRedos','INSERT','redos','top','_initCommandInterceptor','getStartConnectInfo','lineType','hasShape','string','borderEnabled','values','isLineShape','preUndos','rotation','_linesIds','sheet.command.update-line-shape-resize','updateContext','setConfig','UPDATE','angle','sheet.mutation.remove-shape','getCellWithCoordByIndex','toJSON','length','fromJSON','getOwnPropertyDescriptor','_disposed','_configService','shapeData','data','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeLinePoints','fill','params','11845287OGCLlc','4756316sfbUym','startY','SHEET_SHAPE_PLUGIN','range','decorate','type','getAdjustNames','getLineShapeRelation','5694540zqocwC','_initSnapshot','shapeId','562FpraEj','width','setShapeType','syncExecuteCommand','_sheetSkeletonService','drawingType','sin','getDrawingByParam','getShapeType','flipX','onCommandExecute','get','delete','10nAzoIZ','_getConnectPointInfo','_resourcesManagerService','_shapes','clear','getSkeleton','cxnIndex','getName','object','getBasicShapeRelation','ensureSkeleton','UNIVER_SHEET','constructor','setShapeData','DRAWING_SHAPE','adjustValues','interceptCommand','@univerjs-pro/sheets-shape','dispose','5358WGvjLE','getCellIndexAndOffsetByPosition','pushUndoRedo','getShapeTypeById','getDrawingData','sheet.command.update-connector-relation','sheet.command.toggle-shape-flip','8023112UAnvuW','getShapeTextData','getShapeDataById','lineShapeId','_sheetsShapeService','insertShape','map','packageName','left','_injector','has','height','_initCommands','_addLineFollowShapeUpdates','getEndConnectInfo','_deserializeShapeForUnit','relation','function','getBatchUpdateOp','sheet.command.insert-shape','3017ItWVgg','47671305XTFKFT','_serializeShapeForUnit','cos','keys','from','sheet.command.set-shape-rotate','getShapeData','prototype','forEach','parse','_drawingManagerService','startX','_sheetInterceptorService','_shapeModelManagerMap','registerPluginResource','1.0.0-alpha.1','version','symbol','disposeWithMe','REMOVE','defineProperty','MUTATION','result'];_0x5220=function(){return _0x4fb7a2;};return _0x5220();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x291bb4=_0x10d7;(function(_0x1c6552,_0x1a5eb9){const _0x499fee=_0x10d7,_0x33fe19=_0x1c6552();while(!![]){try{const _0x46cc14=parseInt(_0x499fee(0x180))/0x1*(parseInt(_0x499fee(0x11f))/0x2)+-parseInt(_0x499fee(0x155))/0x3*(-parseInt(_0x499fee(0x16e))/0x4)+-parseInt(_0x499fee(0x13a))/0x5*(parseInt(_0x499fee(0x147))/0x6)+-parseInt(_0x499fee(0x14d))/0x7+-parseInt(_0x499fee(0x11c))/0x8+parseInt(_0x499fee(0x18b))/0x9+-parseInt(_0x499fee(0x166))/0xa*(-parseInt(_0x499fee(0x12b))/0xb);if(_0x46cc14===_0x1a5eb9)break;else _0x33fe19['push'](_0x33fe19['shift']());}catch(_0x477b26){_0x33fe19['push'](_0x33fe19['shift']());}}}(_0x10ff,0x418c0));import{ConnectorCoordinateTransform as _0x3af6ac,ShapeArrowSizeEnum as _0x2155f7,ShapeArrowTypeEnum as _0x48d718,ShapeFillEnum as _0x56f575,ShapeGradientTypeEnum as _0x3d3b73,ShapeLineCapEnum as _0x3a73ac,ShapeLineDashEnum as _0x6eaf0d,ShapeLineJoinEnum as _0x5232cf,ShapeLineTypeEnum as _0x2e1f3e,ShapeTypeEnum as _0x140b90,computeConnectorRouteLayout as _0x1390bf,getBasicShapeRotateBound as _0x468f4d,isConnectorShape as _0x50e99f,routeConnectorLineShape as _0x59fc77}from'@univerjs-pro/engine-shape';import{FEnum as _0x2c4b61}from'@univerjs/core/facade';function _0x10d7(_0x1c07a4,_0x4892a8){_0x1c07a4=_0x1c07a4-0x10e;const _0x10ff88=_0x10ff();let _0x10d7a7=_0x10ff88[_0x1c07a4];return _0x10d7a7;}import{DEFAULT_SHAPE_HEIGHT as _0xd6b3e8,DEFAULT_SHAPE_WIDTH as _0xa2c7ac,InsertShapeCommand as _0x2d78f8,SetShapeDrawingDataCommand as _0x268798,SheetsShapeService as _0x32f133,UpdateConnectorRelationCommand as _0x219dd2}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x255a32,generateRandomId as _0x506b1e}from'@univerjs/core';function _0x10ff(){const _0x383bf4=['setShapeSolidFill','call','3260166OizARj','getDrawingByParam','getShapeData','shapeData','drawId','width','ShapeArrowSizeEnum','from','189VyjxAC','worldRect','string','gradientType','isLineShape','object','setStartArrowType','removeShape','lineType','getShapeModel','symbol','abs','ensureSkeleton','top','getConnectorLinePoints','setStrokeLineCapType','function','900CRAiij','_resolveEndpoints','updateShape','extend','ShapeLineJoinEnum','ShapeGradientTypeEnum','constructor','endArrow','10324fmJDFT','ang','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeFillEnum','height','opacity','sin','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','unitId','fill','getEndConnectInfo','getShapeType','index','setStrokeLineJoinType','find','keys','getShapes','setStrokeWidth','483oGbpgg','length','relation','shape','left','subUnitId','NoFill','build','newConnector','getUnitId','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','2323071KfQtpJ','_preloadShapeProperties','localToWorld','setShapeGradientFill','capType','shapeType','\x20and\x20subUnitId\x20','setWidth','_commandService','setStrokeColor','shapeId','getDrawingPoints','fillType','SolidFill','getAdjustValueByName','cxnIndex','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','1234536kLTvlp','getDrawingData','ShapeTypeEnum','1628zdFSEP','connectShapes','setStartArrowSize','size','startArrow','setEndArrowType','getShapeRelation','_injector','color','setStrokeOpacity','Skeleton\x20for\x20unitId\x20','transform','20229KcEOIa','stroke','executeCommand','default','getSheetId','updateContext','getShapeId','stringify','get','insertShape','cos','ShapeLineCapEnum','defineProperty','type','ShapeArrowTypeEnum','10565YDzbAb','setPosition','prototype','getConnectionSiteList','_resolveExistingOrFreeEndpoint','getStartConnectInfo','entries','setStrokeLineType','setNoneFill','connectionSiteIndex','getPosition','rotation','DRAWING_SHAPE','258eBRDuB','getWorkbook','\x20not\x20found','getAdjustPoints'];_0x10ff=function(){return _0x383bf4;};return _0x10ff();}import{IDrawingManagerService as _0x41f792}from'@univerjs/drawing';import{SheetSkeletonService as _0x40d10b,convertPositionCellToSheetOverGrid as _0x100e99}from'@univerjs/sheets';import{ISheetDrawingService as _0x14d135,RemoveSheetDrawingCommand as _0x1fa062}from'@univerjs/sheets-drawing';import{FWorksheet as _0x435e82}from'@univerjs/sheets/facade';var k=class extends _0x2c4b61{get[_0x291bb4(0x11e)](){return _0x140b90;}get[_0x291bb4(0x171)](){return _0x56f575;}get[_0x291bb4(0x16b)](){return _0x3d3b73;}get['ShapeLineTypeEnum'](){return _0x2e1f3e;}get['ShapeLineDashEnum'](){return _0x6eaf0d;}get[_0x291bb4(0x136)](){return _0x3a73ac;}get[_0x291bb4(0x16a)](){return _0x5232cf;}get[_0x291bb4(0x139)](){return _0x48d718;}get[_0x291bb4(0x153)](){return _0x2155f7;}};_0x2c4b61[_0x291bb4(0x169)](k);function A(_0x5a1545){'@babel/helpers - typeof';const _0x36760d=_0x291bb4;return A=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x36760d(0x15f)?function(_0x3c3bb5){return typeof _0x3c3bb5;}:function(_0x4ebbc4){const _0x4ac6cc=_0x36760d;return _0x4ebbc4&&typeof Symbol==_0x4ac6cc(0x165)&&_0x4ebbc4[_0x4ac6cc(0x16c)]===Symbol&&_0x4ebbc4!==Symbol[_0x4ac6cc(0x13c)]?_0x4ac6cc(0x15f):typeof _0x4ebbc4;},A(_0x5a1545);}function j(_0x157b57,_0x783281){const _0x3794f2=_0x291bb4;if(A(_0x157b57)!=_0x3794f2(0x15a)||!_0x157b57)return _0x157b57;var _0x1eb0e4=_0x157b57[Symbol['toPrimitive']];if(_0x1eb0e4!==void 0x0){var _0x1eb3f7=_0x1eb0e4[_0x3794f2(0x14c)](_0x157b57,_0x783281||_0x3794f2(0x12e));if(A(_0x1eb3f7)!=_0x3794f2(0x15a))return _0x1eb3f7;throw TypeError(_0x3794f2(0x170));}return(_0x783281===_0x3794f2(0x157)?String:Number)(_0x157b57);}function M(_0x1beec3){const _0x122b98=_0x291bb4;var _0x1ae5b5=j(_0x1beec3,'string');return A(_0x1ae5b5)==_0x122b98(0x15f)?_0x1ae5b5:_0x1ae5b5+'';}function N(_0x4116ec,_0xc4980c,_0xab6fa9){const _0x300898=_0x291bb4;return(_0xc4980c=M(_0xc4980c))in _0x4116ec?Object[_0x300898(0x137)](_0x4116ec,_0xc4980c,{'value':_0xab6fa9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4116ec[_0xc4980c]=_0xab6fa9,_0x4116ec;}var P=class{constructor(_0x2a0b04,_0x580b3e,_0x1c733b,_0x5758a1){const _0x1f6511=_0x291bb4;N(this,'unitId',void 0x0),N(this,_0x1f6511(0x185),void 0x0),N(this,_0x1f6511(0x151),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x1f6511(0x152),_0xa2c7ac),N(this,_0x1f6511(0x172),_0xd6b3e8),N(this,_0x1f6511(0x110),void 0x0),N(this,'shapeData',{}),N(this,_0x1f6511(0x126),void 0x0),this['unitId']=_0x2a0b04,this[_0x1f6511(0x185)]=_0x580b3e,this['drawId']=_0x1c733b||_0x506b1e(),this[_0x1f6511(0x126)]=_0x5758a1;}[_0x291bb4(0x13b)](_0x261d41,_0x4fc217,_0x27dc2b,_0x1263fa){const _0x4868c8=_0x291bb4;let _0x3a8f77=this[_0x4868c8(0x126)][_0x4868c8(0x133)](_0x40d10b)[_0x4868c8(0x161)](this[_0x4868c8(0x176)],this[_0x4868c8(0x185)]);if(!_0x3a8f77)throw Error(_0x4868c8(0x129)+this['unitId']+_0x4868c8(0x111)+this['subUnitId']+_0x4868c8(0x149));let {transform:_0x4c5151}=_0x100e99(this['unitId'],this[_0x4868c8(0x185)],{'row':_0x261d41,'column':_0x4fc217,'rowOffset':_0x27dc2b,'columnOffset':_0x1263fa},0x1,0x1,_0x3a8f77);return this['x']=_0x4c5151[_0x4868c8(0x184)],this['y']=_0x4c5151[_0x4868c8(0x162)],this;}['setAbsolutePosition'](_0x1a4538,_0x540a6e){return this['x']=_0x1a4538,this['y']=_0x540a6e,this;}['setShapeType'](_0x77a102){return this['shapeType']=_0x77a102,this;}[_0x291bb4(0x14b)](_0x198df8,_0x4689da){const _0x9d3d88=_0x291bb4;return this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]||(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]={}),this[_0x9d3d88(0x150)][_0x9d3d88(0x177)][_0x9d3d88(0x117)]=_0x56f575[_0x9d3d88(0x118)],_0x198df8!==void 0x0&&(this[_0x9d3d88(0x150)]['fill']['color']=_0x198df8),_0x4689da!==void 0x0&&(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]['opacity']=_0x4689da),this;}[_0x291bb4(0x10e)](_0x58ea71,_0x404ecd,_0x5045cb){const _0x118485=_0x291bb4;if(_0x404ecd===void 0x0||_0x404ecd[_0x118485(0x181)]===0x0)throw Error(_0x118485(0x175));return this[_0x118485(0x150)]['fill']||(this[_0x118485(0x150)][_0x118485(0x177)]={}),this[_0x118485(0x150)]['fill']['gradientStops']=_0x404ecd,this[_0x118485(0x150)][_0x118485(0x177)][_0x118485(0x117)]=_0x56f575['GradientFill'],this['shapeData'][_0x118485(0x177)][_0x118485(0x158)]=_0x58ea71,_0x5045cb!==void 0x0&&(this[_0x118485(0x150)][_0x118485(0x177)]['gradientAngle']=_0x5045cb),this;}[_0x291bb4(0x142)](){const _0x14498e=_0x291bb4;return this[_0x14498e(0x150)]['fill']={'fillType':_0x56f575[_0x14498e(0x186)]},this;}[_0x291bb4(0x114)](_0x3085bf){const _0x5ab674=_0x291bb4;return this[_0x5ab674(0x150)][_0x5ab674(0x12c)]||(this['shapeData'][_0x5ab674(0x12c)]={}),this['shapeData'][_0x5ab674(0x12c)][_0x5ab674(0x127)]=_0x3085bf,this;}[_0x291bb4(0x17f)](_0x8c029e){const _0x5009cf=_0x291bb4;return this[_0x5009cf(0x150)][_0x5009cf(0x12c)]||(this['shapeData']['stroke']={}),this[_0x5009cf(0x150)]['stroke'][_0x5009cf(0x152)]=_0x8c029e,this;}['setStrokeLineDashType'](_0x2a3931){const _0x4df03d=_0x291bb4;return this['shapeData'][_0x4df03d(0x12c)]||(this['shapeData'][_0x4df03d(0x12c)]={}),this[_0x4df03d(0x150)]['stroke']['dashType']=_0x2a3931,this;}[_0x291bb4(0x17b)](_0x5bcc09){const _0x229141=_0x291bb4;return this[_0x229141(0x150)]['stroke']||(this[_0x229141(0x150)][_0x229141(0x12c)]={}),this['shapeData'][_0x229141(0x12c)]['lineJoinType']=_0x5bcc09,this;}[_0x291bb4(0x164)](_0x38b6cc){const _0x3ee6cf=_0x291bb4;return this[_0x3ee6cf(0x150)]['stroke']||(this[_0x3ee6cf(0x150)][_0x3ee6cf(0x12c)]={}),this[_0x3ee6cf(0x150)]['stroke'][_0x3ee6cf(0x10f)]=_0x38b6cc,this;}[_0x291bb4(0x128)](_0x2723cd){const _0x3d33e3=_0x291bb4;return this['shapeData'][_0x3d33e3(0x12c)]||(this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)]={}),this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)][_0x3d33e3(0x173)]=_0x2723cd,this;}[_0x291bb4(0x141)](_0x5683c4){const _0x502f8b=_0x291bb4;return this['shapeData']['stroke']||(this[_0x502f8b(0x150)][_0x502f8b(0x12c)]={}),this[_0x502f8b(0x150)][_0x502f8b(0x12c)]['lineStrokeType']=_0x5683c4,this;}[_0x291bb4(0x112)](_0x44132d){const _0x28ed93=_0x291bb4;return this[_0x28ed93(0x152)]=_0x44132d,this;}['setHeight'](_0xe3ab6a){const _0xcee124=_0x291bb4;return this[_0xcee124(0x172)]=_0xe3ab6a,this;}[_0x291bb4(0x159)](){const _0x2d8f19=_0x291bb4;let _0x9ed73c=this[_0x2d8f19(0x126)][_0x2d8f19(0x133)](_0x32f133)['getShapeModel'](this[_0x2d8f19(0x176)],this[_0x2d8f19(0x185)],this[_0x2d8f19(0x151)]);return _0x9ed73c?_0x50e99f(_0x9ed73c[_0x2d8f19(0x179)]()):this['shapeType']?_0x50e99f(this[_0x2d8f19(0x110)]):!0x1;}['getConnectionSites'](){const _0xef1195=_0x291bb4;let _0x375fc9=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x32f133)[_0xef1195(0x15e)](this[_0xef1195(0x176)],this[_0xef1195(0x185)],this[_0xef1195(0x151)]);if(!_0x375fc9)return[];let _0x462ad3=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x41f792)[_0xef1195(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0xef1195(0x185)],'drawingId':this['drawId']});if(!(_0x462ad3!=null&&_0x462ad3[_0xef1195(0x12a)]))return[];let {width:_0xf7cd19=0x0,height:_0x42b9bf=0x0}=_0x462ad3[_0xef1195(0x12a)];return _0x375fc9[_0xef1195(0x130)]({'width':_0xf7cd19,'height':_0x42b9bf}),_0x375fc9[_0xef1195(0x13d)]();}[_0x291bb4(0x14a)](){const _0x288ca2=_0x291bb4;let _0x31cdc9=this['_injector']['get'](_0x32f133)['getShapeModel'](this['unitId'],this[_0x288ca2(0x185)],this[_0x288ca2(0x151)]);if(!_0x31cdc9)return[];let _0x486cfe=this[_0x288ca2(0x126)][_0x288ca2(0x133)](_0x41f792)[_0x288ca2(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0x288ca2(0x185)],'drawingId':this['drawId']});if(!(_0x486cfe!=null&&_0x486cfe[_0x288ca2(0x12a)]))return[];let {width:_0x12f537=0x0,height:_0x5bc8a9=0x0}=_0x486cfe[_0x288ca2(0x12a)];return _0x31cdc9['updateContext']({'width':_0x12f537,'height':_0x5bc8a9}),_0x31cdc9[_0x288ca2(0x116)]();}[_0x291bb4(0x163)](){const _0x3bf9f0=_0x291bb4;let _0x280a57=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x32f133)[_0x3bf9f0(0x15e)](this[_0x3bf9f0(0x176)],this[_0x3bf9f0(0x185)],this[_0x3bf9f0(0x151)]);if(!_0x280a57||!_0x50e99f(_0x280a57[_0x3bf9f0(0x179)]()))return[];let _0x1a96e3=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x41f792)[_0x3bf9f0(0x14e)]({'unitId':this[_0x3bf9f0(0x176)],'subUnitId':this[_0x3bf9f0(0x185)],'drawingId':this[_0x3bf9f0(0x151)]});if(!(_0x1a96e3!=null&&_0x1a96e3[_0x3bf9f0(0x12a)]))return[];let {width:_0x216445=0x0,height:_0x43af91=0x0}=_0x1a96e3[_0x3bf9f0(0x12a)];return _0x280a57[_0x3bf9f0(0x130)]({'width':_0x216445,'height':_0x43af91}),_0x280a57['getConnectorLinePoints']();}[_0x291bb4(0x13f)](){const _0x7eb395=_0x291bb4;var _0x19df9f;let _0x2f017c=this[_0x7eb395(0x126)][_0x7eb395(0x133)](_0x32f133)[_0x7eb395(0x15e)](this[_0x7eb395(0x176)],this['subUnitId'],this[_0x7eb395(0x151)]);return _0x2f017c?(_0x19df9f=_0x2f017c[_0x7eb395(0x13f)]())==null?null:_0x19df9f:null;}[_0x291bb4(0x178)](){const _0x5368c4=_0x291bb4;var _0x2754d3;let _0x1ac605=this[_0x5368c4(0x126)][_0x5368c4(0x133)](_0x32f133)[_0x5368c4(0x15e)](this['unitId'],this[_0x5368c4(0x185)],this[_0x5368c4(0x151)]);return _0x1ac605?(_0x2754d3=_0x1ac605['getEndConnectInfo']())==null?null:_0x2754d3:null;}[_0x291bb4(0x187)](){const _0x3a8a6c=_0x291bb4;var _0x141713,_0x4c3bda;if(!this['shapeType'])throw Error(_0x3a8a6c(0x18a));if(this['x']===0x0||this['y']===0x0){let _0x169b03=this[_0x3a8a6c(0x126)]['get'](_0x40d10b)[_0x3a8a6c(0x161)](this[_0x3a8a6c(0x176)],this[_0x3a8a6c(0x185)]);if(!_0x169b03)throw Error(_0x3a8a6c(0x129)+this[_0x3a8a6c(0x176)]+'\x20and\x20subUnitId\x20'+this[_0x3a8a6c(0x185)]+_0x3a8a6c(0x149));let {transform:_0x4e2c57}=_0x100e99(this['unitId'],this[_0x3a8a6c(0x185)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x169b03);this['x']=this['x']>0x0?this['x']:_0x4e2c57[_0x3a8a6c(0x184)],this['y']=this['y']>0x0?this['y']:_0x4e2c57[_0x3a8a6c(0x162)];}return this[_0x3a8a6c(0x152)]=(_0x141713=this[_0x3a8a6c(0x152)])==null?_0xa2c7ac:_0x141713,this[_0x3a8a6c(0x172)]=(_0x4c3bda=this[_0x3a8a6c(0x172)])==null?_0xd6b3e8:_0x4c3bda,{'unitId':this[_0x3a8a6c(0x176)],'subUnitId':this['subUnitId'],'shapeId':this[_0x3a8a6c(0x151)],'shapeType':this[_0x3a8a6c(0x110)],'shapeData':Object[_0x3a8a6c(0x17d)](this[_0x3a8a6c(0x150)])[_0x3a8a6c(0x181)]>0x0?this[_0x3a8a6c(0x150)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x3a8a6c(0x172)]};}[_0x291bb4(0x131)](){const _0x5983bb=_0x291bb4;return this[_0x5983bb(0x151)];}['getShapeType'](){const _0x5ea486=_0x291bb4;return this[_0x5ea486(0x110)];}[_0x291bb4(0x14f)](){const _0x4954e1=_0x291bb4;return this[_0x4954e1(0x150)];}[_0x291bb4(0x144)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0xdffd63=_0x291bb4;return{'width':this[_0xdffd63(0x152)],'height':this[_0xdffd63(0x172)]};}},F=class extends P{constructor(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481){const _0x342473=_0x291bb4;super(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481),N(this,_0x342473(0x150),{});}['setShapeType'](_0x38304c){const _0x173e1a=_0x291bb4;if(!_0x50e99f(_0x38304c))throw Error(_0x173e1a(0x11b)+_0x38304c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x38304c),this;}[_0x291bb4(0x15b)](_0x7b5985){const _0x30b6f7=_0x291bb4;var _0x3da1b9,_0x13ab25;return(_0x3da1b9=this[_0x30b6f7(0x150)])!=null&&_0x3da1b9['ln']||(this[_0x30b6f7(0x150)]['ln']={}),!((_0x13ab25=this[_0x30b6f7(0x150)])==null||(_0x13ab25=_0x13ab25['ln'])==null)&&_0x13ab25[_0x30b6f7(0x123)]||(this['shapeData']['ln'][_0x30b6f7(0x123)]={}),this[_0x30b6f7(0x150)]['ln']['startArrow'][_0x30b6f7(0x138)]=_0x7b5985,this;}[_0x291bb4(0x124)](_0x2ae5fb){const _0x2e6c9f=_0x291bb4;var _0x38f201,_0x415815;return(_0x38f201=this['shapeData'])!=null&&_0x38f201['ln']||(this[_0x2e6c9f(0x150)]['ln']={}),!((_0x415815=this[_0x2e6c9f(0x150)])==null||(_0x415815=_0x415815['ln'])==null)&&_0x415815['endArrow']||(this[_0x2e6c9f(0x150)]['ln'][_0x2e6c9f(0x16d)]={}),this['shapeData']['ln'][_0x2e6c9f(0x16d)]['type']=_0x2ae5fb,this;}[_0x291bb4(0x121)](_0x11812d){const _0x1a9e83=_0x291bb4;var _0x42c5c4,_0x23ed3d;return(_0x42c5c4=this[_0x1a9e83(0x150)])!=null&&_0x42c5c4['ln']||(this[_0x1a9e83(0x150)]['ln']={}),!((_0x23ed3d=this[_0x1a9e83(0x150)])==null||(_0x23ed3d=_0x23ed3d['ln'])==null)&&_0x23ed3d[_0x1a9e83(0x123)]||(this['shapeData']['ln']['startArrow']={}),this[_0x1a9e83(0x150)]['ln'][_0x1a9e83(0x123)][_0x1a9e83(0x122)]=_0x11812d,this;}['setEndArrowSize'](_0x3242fc){const _0x2dc2df=_0x291bb4;var _0x1d564b,_0x5502e5;return(_0x1d564b=this[_0x2dc2df(0x150)])!=null&&_0x1d564b['ln']||(this[_0x2dc2df(0x150)]['ln']={}),!((_0x5502e5=this['shapeData'])==null||(_0x5502e5=_0x5502e5['ln'])==null)&&_0x5502e5['endArrow']||(this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]={}),this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]['size']=_0x3242fc,this;}[_0x291bb4(0x187)](){const _0x4c41ec=_0x291bb4;return super[_0x4c41ec(0x187)]();}[_0x291bb4(0x178)](){const _0x2217a7=_0x291bb4;var _0xc8c934;return((_0xc8c934=this[_0x2217a7(0x150)])==null||(_0xc8c934=_0xc8c934[_0x2217a7(0x182)])==null?void 0x0:_0xc8c934['to'])||null;}[_0x291bb4(0x13f)](){const _0x3392e2=_0x291bb4;var _0x5c0d3d;return((_0x5c0d3d=this[_0x3392e2(0x150)])==null||(_0x5c0d3d=_0x5c0d3d[_0x3392e2(0x182)])==null?void 0x0:_0x5c0d3d['from'])||null;}};function I(_0x8d8981,_0x41c625,_0x18d7f5,_0x2c17fe,_0x579bac,_0x478df6){const _0x44c814=_0x291bb4;let _0x13026d=_0x579bac[_0x44c814(0x15e)](_0x8d8981,_0x41c625,_0x18d7f5);if(!_0x13026d)return null;let _0x3643ac=_0x478df6[_0x44c814(0x14e)]({'unitId':_0x8d8981,'subUnitId':_0x41c625,'drawingId':_0x18d7f5});if(!(_0x3643ac!=null&&_0x3643ac[_0x44c814(0x12a)]))return null;let {left:_0x1d2b1e=0x0,top:_0x1583e0=0x0,width:_0x5e3e5d=0x0,height:_0x4f5724=0x0,flipX:_0xd2a02c=!0x1,flipY:_0x4f96af=!0x1,angle:_0x4791c9}=_0x3643ac[_0x44c814(0x12a)];_0x13026d[_0x44c814(0x130)]({'width':_0x5e3e5d,'height':_0x4f5724});let _0x1ad6aa=_0x13026d[_0x44c814(0x13d)]()[_0x44c814(0x17c)](_0x3c642d=>_0x3c642d[_0x44c814(0x17a)]===_0x2c17fe);if(!_0x1ad6aa)return null;let _0x265a76=_0xd2a02c?_0x5e3e5d-_0x1ad6aa['x']:_0x1ad6aa['x'],_0x5b618b=_0x4f96af?_0x4f5724-_0x1ad6aa['y']:_0x1ad6aa['y'];if(_0x4791c9&&_0x4791c9!==0x0){let _0x299421=_0x4791c9*Math['PI']/0xb4,_0x39492f=Math[_0x44c814(0x135)](_0x299421),_0x5525dd=Math[_0x44c814(0x174)](_0x299421),_0x38d391=_0x5e3e5d/0x2,_0x46530b=_0x4f5724/0x2,_0x28443a=_0x265a76-_0x38d391,_0x533292=_0x5b618b-_0x46530b;_0x265a76=_0x38d391+_0x28443a*_0x39492f-_0x533292*_0x5525dd,_0x5b618b=_0x46530b+_0x28443a*_0x5525dd+_0x533292*_0x39492f;}_0x265a76+=_0x1d2b1e,_0x5b618b+=_0x1583e0;let _0x3de08d=_0x1ad6aa[_0x44c814(0x16f)]/0xea60;_0xd2a02c&&(_0x3de08d=0xb4-_0x3de08d),_0x4f96af&&(_0x3de08d=-_0x3de08d),_0x3de08d+=_0x4791c9||0x0,_0x3de08d=(_0x3de08d%0x168+0x168)%0x168;let _0x10413b=_0x468f4d({'left':_0x1d2b1e,'top':_0x1583e0,'width':_0x5e3e5d,'height':_0x4f5724},_0x4791c9||0x0);return{'point':{'x':_0x265a76,'y':_0x5b618b},'angle':_0x3de08d,'bounds':_0x10413b};}function L(_0xa9b7bd,_0x14eabe){const _0x58da9c=_0x291bb4;let _0x2e2e4e=_0x14eabe['x']-_0xa9b7bd['x'],_0xc900d6=_0x14eabe['y']-_0xa9b7bd['y'];return Math[_0x58da9c(0x160)](_0x2e2e4e)>=Math[_0x58da9c(0x160)](_0xc900d6)?_0x2e2e4e>=0x0?0xb4:0x0:_0xc900d6>=0x0?0x10e:0x5a;}function R(_0x1876c6,_0x44a1ab,_0x4ad0cb,_0x575d5c,_0x15f0b8,_0x8d7868,_0x2eed4a){const _0x2fa57e=_0x291bb4;let _0xce97b1=_0x8d7868['getShapeModel'](_0x1876c6,_0x44a1ab,_0x4ad0cb);if(!_0xce97b1)return null;let _0x1d05e7=_0x2eed4a[_0x2fa57e(0x14e)]({'unitId':_0x1876c6,'subUnitId':_0x44a1ab,'drawingId':_0x4ad0cb});if(!(_0x1d05e7!=null&&_0x1d05e7[_0x2fa57e(0x12a)]))return null;let {left:_0x4fd262=0x0,top:_0x4ffc94=0x0,width:_0x458028=0x0,height:_0x457bba=0x0,flipX:_0x1fe5d2=!0x1,flipY:_0x54e319=!0x1}=_0x1d05e7[_0x2fa57e(0x12a)];_0xce97b1[_0x2fa57e(0x130)]({'width':_0x458028,'height':_0x457bba});let _0x10505f=_0xce97b1['getConnectorLinePoints']();if(_0x10505f[_0x2fa57e(0x181)]<0x2)return null;let _0x40eed3=_0x575d5c?_0x10505f[0x0]:_0x10505f[_0x10505f['length']-0x1],_0x3de4b7=new _0x3af6ac({'left':_0x4fd262,'top':_0x4ffc94,'width':_0x458028,'height':_0x457bba,'flipX':_0x1fe5d2,'flipY':_0x54e319})[_0x2fa57e(0x18d)](_0x40eed3);return{'point':_0x3de4b7,'angle':L(_0x15f0b8['point'],_0x3de4b7),'bounds':{'left':_0x3de4b7['x'],'top':_0x3de4b7['y'],'width':0x0,'height':0x0}};}var z=class extends _0x435e82{async[_0x291bb4(0x134)](_0x489826){const _0x5a1b45=_0x291bb4;let {unitId:_0x4cf428,subUnitId:_0x575cd8,shapeId:_0x2be68f,shapeType:_0x40a2ed,shapeData:_0x2964f9,x:_0x5dd0bc,y:_0x52f6a2,width:_0x4eddcb,height:_0x4cc8e2}=_0x489826;return this[_0x5a1b45(0x113)][_0x5a1b45(0x12d)](_0x2d78f8['id'],{'unitId':_0x4cf428,'subUnitId':_0x575cd8,'shapeId':_0x2be68f,'shapeType':_0x40a2ed,'shapeData':_0x2964f9,'position':{'x':_0x5dd0bc,'y':_0x52f6a2},'width':_0x4eddcb,'height':_0x4cc8e2});}async[_0x291bb4(0x168)](_0x4c6c48){const _0x5b1464=_0x291bb4;let {unitId:_0x186aa3,subUnitId:_0x5e0a50,shapeId:_0x43d57f,shapeType:_0x505f08,shapeData:_0x3eb725,x:_0x5ca3af,y:_0x4b298a,width:_0x1d349c,height:_0x3c47aa}=_0x4c6c48;return this['_commandService'][_0x5b1464(0x12d)](_0x268798['id'],{'unitId':_0x186aa3,'subUnitId':_0x5e0a50,'shapeId':_0x43d57f,'shapeType':_0x505f08,'shapeData':_0x3eb725,'position':{'x':_0x5ca3af,'y':_0x4b298a},'width':_0x1d349c,'height':_0x3c47aa});}['newShape'](_0xe9eec1){const _0x4a5ed0=_0x291bb4;let _0x50e147=this[_0x4a5ed0(0x148)]()['getUnitId'](),_0x40e240=this[_0x4a5ed0(0x12f)]();if(_0xe9eec1){let _0x1c4947=new P(_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)],this[_0x4a5ed0(0x126)]);return this[_0x4a5ed0(0x18c)](_0x1c4947,_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)]),_0x1c4947;}return new P(_0x50e147,_0x40e240,_0x506b1e(),this['_injector']);}[_0x291bb4(0x188)](_0x23fbc3){const _0x4cdc57=_0x291bb4;let _0x1db8f6=this['getWorkbook']()[_0x4cdc57(0x189)](),_0x2250c2=this[_0x4cdc57(0x12f)]();if(_0x23fbc3){let _0x55f236=new F(_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)],this[_0x4cdc57(0x126)]);return this[_0x4cdc57(0x18c)](_0x55f236,_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)]),_0x55f236;}return new F(_0x1db8f6,_0x2250c2,_0x506b1e(),this['_injector']);}[_0x291bb4(0x17e)](){const _0x76f708=_0x291bb4;let _0x261ce5=this[_0x76f708(0x126)]['get'](_0x14d135),_0x3a1cde=this[_0x76f708(0x148)]()[_0x76f708(0x189)](),_0x19bb16=this[_0x76f708(0x12f)](),_0x569dae=_0x261ce5[_0x76f708(0x11d)](_0x3a1cde,_0x19bb16);if(!_0x569dae)return[];let _0x3b72ca=[];for(let [_0x2e4454,_0xad1a7a]of Object[_0x76f708(0x140)](_0x569dae))if(_0xad1a7a&&_0xad1a7a['drawingType']===_0x255a32[_0x76f708(0x146)]){let _0x57779d=new P(_0x3a1cde,_0x19bb16,_0x2e4454,this[_0x76f708(0x126)]);this[_0x76f708(0x18c)](_0x57779d,_0x3a1cde,_0x19bb16,_0x2e4454),_0x3b72ca['push'](_0x57779d);}return _0x3b72ca;}[_0x291bb4(0x15c)](_0x5bb6ee){const _0x2a2a98=_0x291bb4;let {unitId:_0x45bfff,subUnitId:_0x41b3a7,drawId:_0x1c60e3}=_0x5bb6ee;return this['_commandService'][_0x2a2a98(0x12d)](_0x1fa062['id'],{'unitId':_0x45bfff,'drawings':[{'unitId':_0x45bfff,'subUnitId':_0x41b3a7,'drawingId':_0x1c60e3,'drawingType':_0x255a32['DRAWING_SHAPE']}]});}async[_0x291bb4(0x120)](_0x5064f9){const _0xa912f7=_0x291bb4;let {connector:_0x47335f,startTarget:_0x58bd20,endTarget:_0x3c4d5e}=_0x5064f9;if(!_0x58bd20&&!_0x3c4d5e)return!0x1;let _0x5340b4=this[_0xa912f7(0x148)]()[_0xa912f7(0x189)](),_0x1b1df8=this[_0xa912f7(0x12f)](),_0x43c8c5=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x32f133),_0xf1d35b=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x41f792),_0x654580=_0x43c8c5[_0xa912f7(0x15e)](_0x5340b4,_0x1b1df8,_0x47335f[_0xa912f7(0x151)]);if(!_0x654580)return!0x1;let _0x12d271=_0x654580[_0xa912f7(0x179)](),_0x2d4bc0=_0x654580[_0xa912f7(0x125)](),_0x5d8595={};for(let _0x45403a of _0x654580['getAdjustNames']()){let _0x18aec5=_0x654580[_0xa912f7(0x119)](_0x45403a);_0x18aec5!==void 0x0&&(_0x5d8595[_0x45403a]=_0x18aec5);}let {startInfo:_0x86a1cb,endInfo:_0x38758a}=this[_0xa912f7(0x167)](_0x5340b4,_0x1b1df8,_0x47335f,_0x654580,_0x58bd20,_0x3c4d5e,_0x43c8c5,_0xf1d35b,_0x2d4bc0);if(!_0x86a1cb||!_0x38758a)return!0x1;let _0x4fe045=_0x1390bf(_0x59fc77(_0x86a1cb,_0x38758a,_0x12d271),_0x12d271),_0x45cc63={};return _0x58bd20?_0x45cc63['from']={'shapeId':_0x58bd20['shape'][_0xa912f7(0x151)],'cxnIndex':_0x58bd20[_0xa912f7(0x143)]}:_0x2d4bc0!=null&&_0x2d4bc0['from']&&(_0x45cc63[_0xa912f7(0x154)]=_0x2d4bc0[_0xa912f7(0x154)]),_0x3c4d5e?_0x45cc63['to']={'shapeId':_0x3c4d5e[_0xa912f7(0x183)][_0xa912f7(0x151)],'cxnIndex':_0x3c4d5e['connectionSiteIndex']}:_0x2d4bc0!=null&&_0x2d4bc0['to']&&(_0x45cc63['to']=_0x2d4bc0['to']),this[_0xa912f7(0x113)][_0xa912f7(0x12d)](_0x219dd2['id'],{'unitId':_0x5340b4,'subUnitId':_0x1b1df8,'connectorShapeId':_0x47335f[_0xa912f7(0x151)],'width':_0x4fe045[_0xa912f7(0x156)]['width'],'height':_0x4fe045['worldRect'][_0xa912f7(0x172)],'left':_0x4fe045[_0xa912f7(0x156)][_0xa912f7(0x184)],'top':_0x4fe045['worldRect'][_0xa912f7(0x162)],'flipX':_0x4fe045['worldRect']['flipX']||!0x1,'flipY':_0x4fe045[_0xa912f7(0x156)]['flipY']||!0x1,'oldAdjustValues':_0x5d8595,'newAdjustValues':_0x4fe045['adjustValues'],'newLineType':_0x4fe045[_0xa912f7(0x15d)],'oldLineType':_0x12d271,'rotation':_0x4fe045[_0xa912f7(0x145)],'oldRelation':_0x2d4bc0,'newRelation':_0x45cc63});}[_0x291bb4(0x18c)](_0x58b9c9,_0x1cc1bf,_0x30f73a,_0x51dd5a){const _0x2add98=_0x291bb4;let _0x50e1e5=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x41f792)[_0x2add98(0x14e)]({'unitId':_0x1cc1bf,'subUnitId':_0x30f73a,'drawingId':_0x51dd5a});if(_0x50e1e5!=null&&_0x50e1e5['transform']){var _0x4404ca,_0x2f7c6d,_0x250518,_0xf08f46;_0x58b9c9['x']=(_0x4404ca=_0x50e1e5['transform'][_0x2add98(0x184)])==null?0x0:_0x4404ca,_0x58b9c9['y']=(_0x2f7c6d=_0x50e1e5['transform'][_0x2add98(0x162)])==null?0x0:_0x2f7c6d,_0x58b9c9[_0x2add98(0x152)]=(_0x250518=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x152)])==null?_0x58b9c9[_0x2add98(0x152)]:_0x250518,_0x58b9c9[_0x2add98(0x172)]=(_0xf08f46=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x172)])==null?_0x58b9c9[_0x2add98(0x172)]:_0xf08f46;}let _0x5930c3=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x32f133)[_0x2add98(0x15e)](_0x1cc1bf,_0x30f73a,_0x51dd5a);if(_0x5930c3){_0x58b9c9[_0x2add98(0x110)]=_0x5930c3[_0x2add98(0x179)]();let _0x195736=_0x5930c3[_0x2add98(0x14f)]();_0x195736&&(_0x58b9c9[_0x2add98(0x150)]=JSON['parse'](JSON[_0x2add98(0x132)](_0x195736)));}}[_0x291bb4(0x167)](_0xd84ca8,_0x20bf47,_0x53f6f1,_0x44ea04,_0x416fa1,_0x5eb004,_0x1b7505,_0x41b98a,_0x3d0389){const _0x434b74=_0x291bb4;let _0xbe91d8=null,_0x2b4212=null;return _0x416fa1&&(_0xbe91d8=I(_0xd84ca8,_0x20bf47,_0x416fa1['shape']['drawId'],_0x416fa1[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0x5eb004&&(_0x2b4212=I(_0xd84ca8,_0x20bf47,_0x5eb004[_0x434b74(0x183)][_0x434b74(0x151)],_0x5eb004[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0xbe91d8||(_0xbe91d8=this['_resolveExistingOrFreeEndpoint'](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x0,_0x2b4212,_0x3d0389==null?void 0x0:_0x3d0389['from'],_0x1b7505,_0x41b98a)),_0x2b4212||(_0x2b4212=this[_0x434b74(0x13e)](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x1,_0xbe91d8,_0x3d0389==null?void 0x0:_0x3d0389['to'],_0x1b7505,_0x41b98a)),{'startInfo':_0xbe91d8,'endInfo':_0x2b4212};}['_resolveExistingOrFreeEndpoint'](_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x1b67d3,_0x4d75d6,_0x33a6e1){const _0x15cf70=_0x291bb4;if(_0x1b67d3){let _0x46c05e=I(_0x4d1515,_0x1ac046,_0x1b67d3[_0x15cf70(0x115)],_0x1b67d3[_0x15cf70(0x11a)],_0x4d75d6,_0x33a6e1);if(_0x46c05e)return _0x46c05e;}return _0x25a3d9?R(_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x4d75d6,_0x33a6e1):null;}};_0x435e82[_0x291bb4(0x169)](z);export{F as FConnectorShape,P as FShape};
|
|
1
|
+
const _0x2294c8=_0x10e5;(function(_0x4d9f1d,_0x3815bc){const _0x4f039b=_0x10e5,_0x47dd03=_0x4d9f1d();while(!![]){try{const _0x5b786c=parseInt(_0x4f039b(0x20c))/0x1*(parseInt(_0x4f039b(0x1d6))/0x2)+-parseInt(_0x4f039b(0x1dc))/0x3+parseInt(_0x4f039b(0x1fe))/0x4*(parseInt(_0x4f039b(0x1c6))/0x5)+parseInt(_0x4f039b(0x23e))/0x6+-parseInt(_0x4f039b(0x24a))/0x7+parseInt(_0x4f039b(0x1e6))/0x8+parseInt(_0x4f039b(0x201))/0x9;if(_0x5b786c===_0x3815bc)break;else _0x47dd03['push'](_0x47dd03['shift']());}catch(_0x1e04c8){_0x47dd03['push'](_0x47dd03['shift']());}}}(_0x2ff6,0xd870b));import{ConnectorCoordinateTransform as _0x226b98,ShapeArrowSizeEnum as _0x1a009f,ShapeArrowTypeEnum as _0x1b13c3,ShapeFillEnum as _0x17ad7b,ShapeGradientTypeEnum as _0xc86cba,ShapeLineCapEnum as _0x21b06d,ShapeLineDashEnum as _0x51187e,ShapeLineJoinEnum as _0x45dc6f,ShapeLineTypeEnum as _0x2121d7,ShapeTypeEnum as _0x4f25b2,computeConnectorRouteLayout as _0x8012ef,getBasicShapeRotateBound as _0x5350e5,isConnectorShape as _0xe1c987,routeConnectorLineShape as _0x1966ac}from'@univerjs-pro/engine-shape';import{FEnum as _0x468a15}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x11c2a4,DEFAULT_SHAPE_WIDTH as _0xdabd8b,InsertShapeCommand as _0x2b5f84,SetShapeDrawingDataCommand as _0x4bd9a0,SheetsShapeService as _0x5c3722,UpdateConnectorRelationCommand as _0x3ac70a}from'@univerjs-pro/sheets-shape';function _0x2ff6(){const _0x4aa9d5=['executeCommand','getShapeModel','build','stroke','setAbsolutePosition','1875964jeiWQX','constructor','abs','15225786xAednD','setStrokeLineDashType','getWorkbook','ShapeTypeEnum','getConnectionSiteList','SolidFill','drawingType','_resolveEndpoints','setEndArrowSize','ang','defineProperty','7PSNceE','drawId','capType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','worldRect','GradientFill','getDrawingData','Skeleton\x20for\x20unitId\x20','setNoneFill','_commandService','getAdjustValueByName','height','subUnitId','ShapeLineJoinEnum','adjustValues','localToWorld','top','ShapeArrowSizeEnum','type','NoFill','fillType','shapeType','string','prototype','getConnectionSites','cxnIndex','lineJoinType','transform','object','getDrawingByParam','insertShape','rotation','length','_injector','setStrokeColor','ShapeArrowTypeEnum','\x20and\x20subUnitId\x20','symbol','getStartConnectInfo','shapeId','cos','connectShapes','DRAWING_SHAPE','getSheetId','call','function','ShapeLineCapEnum','gradientType','setEndArrowType','2709090pIvfIz','connectionSiteIndex','relation','getDrawingPoints','setStrokeLineType','size','find','getSize','setWidth','fill','isLineShape','getConnectorLinePoints','11366705cvCvsZ','width','15plLmKY','getShapeRelation','ShapeFillEnum','flipX','unitId','ShapeLineTypeEnum','ensureSkeleton','setStartArrowSize','updateShape','getShapeId','stringify','opacity','updateContext','shapeData','getAdjustPoints','getAdjustNames','108326TSsoHM','setStrokeWidth','endArrow','setShapeGradientFill','removeShape','setHeight','4286337SAgFHD','left','ShapeLineDashEnum','_resolveExistingOrFreeEndpoint','default','getShapeData','flipY','get','getShapes','keys','78000tfLxHq','_preloadShapeProperties',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getEndConnectInfo','\x20not\x20found','gradientAngle','getUnitId','ShapeGradientTypeEnum','setStartArrowType','startArrow','setShapeType','shape','setStrokeOpacity','from','point','gradientStops','getShapeType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend'];_0x2ff6=function(){return _0x4aa9d5;};return _0x2ff6();}import{DrawingTypeEnum as _0x285b45,generateRandomId as _0x4e4bad}from'@univerjs/core';import{IDrawingManagerService as _0x4e860d}from'@univerjs/drawing';import{SheetSkeletonService as _0xe5b182,convertPositionCellToSheetOverGrid as _0x439023}from'@univerjs/sheets';import{ISheetDrawingService as _0xa71416,RemoveSheetDrawingCommand as _0x1b2369}from'@univerjs/sheets-drawing';import{FWorksheet as _0x4f6f37}from'@univerjs/sheets/facade';var k=class extends _0x468a15{get[_0x2294c8(0x204)](){return _0x4f25b2;}get[_0x2294c8(0x1c8)](){return _0x17ad7b;}get[_0x2294c8(0x1ed)](){return _0xc86cba;}get[_0x2294c8(0x1cb)](){return _0x2121d7;}get[_0x2294c8(0x1de)](){return _0x51187e;}get[_0x2294c8(0x23b)](){return _0x21b06d;}get[_0x2294c8(0x21a)](){return _0x45dc6f;}get[_0x2294c8(0x230)](){return _0x1b13c3;}get[_0x2294c8(0x21e)](){return _0x1a009f;}};_0x468a15[_0x2294c8(0x1f8)](k);function A(_0xf329cf){'@babel/helpers - typeof';const _0x27b098=_0x2294c8;return A=typeof Symbol==_0x27b098(0x23a)&&typeof Symbol['iterator']==_0x27b098(0x232)?function(_0x13f09d){return typeof _0x13f09d;}:function(_0x30c5f2){const _0x10ed6f=_0x27b098;return _0x30c5f2&&typeof Symbol==_0x10ed6f(0x23a)&&_0x30c5f2[_0x10ed6f(0x1ff)]===Symbol&&_0x30c5f2!==Symbol[_0x10ed6f(0x224)]?_0x10ed6f(0x232):typeof _0x30c5f2;},A(_0xf329cf);}function j(_0x179464,_0x20af1c){const _0x4f28d2=_0x2294c8;if(A(_0x179464)!=_0x4f28d2(0x229)||!_0x179464)return _0x179464;var _0x3d5b3e=_0x179464[Symbol['toPrimitive']];if(_0x3d5b3e!==void 0x0){var _0x5aa1ec=_0x3d5b3e[_0x4f28d2(0x239)](_0x179464,_0x20af1c||_0x4f28d2(0x1e0));if(A(_0x5aa1ec)!=_0x4f28d2(0x229))return _0x5aa1ec;throw TypeError(_0x4f28d2(0x20f));}return(_0x20af1c===_0x4f28d2(0x223)?String:Number)(_0x179464);}function M(_0x14370d){const _0x5381fe=_0x2294c8;var _0x4df15d=j(_0x14370d,_0x5381fe(0x223));return A(_0x4df15d)=='symbol'?_0x4df15d:_0x4df15d+'';}function N(_0x359362,_0x144c50,_0x430d56){const _0x12cec9=_0x2294c8;return(_0x144c50=M(_0x144c50))in _0x359362?Object[_0x12cec9(0x20b)](_0x359362,_0x144c50,{'value':_0x430d56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x359362[_0x144c50]=_0x430d56,_0x359362;}var P=class{constructor(_0x5de167,_0x23939b,_0x1f7e1a,_0x986594){const _0xf485ad=_0x2294c8;N(this,_0xf485ad(0x1ca),void 0x0),N(this,_0xf485ad(0x219),void 0x0),N(this,_0xf485ad(0x20d),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0xf485ad(0x1c5),_0xdabd8b),N(this,_0xf485ad(0x218),_0x11c2a4),N(this,_0xf485ad(0x222),void 0x0),N(this,_0xf485ad(0x1d3),{}),N(this,_0xf485ad(0x22e),void 0x0),this[_0xf485ad(0x1ca)]=_0x5de167,this[_0xf485ad(0x219)]=_0x23939b,this[_0xf485ad(0x20d)]=_0x1f7e1a||_0x4e4bad(),this[_0xf485ad(0x22e)]=_0x986594;}['setPosition'](_0x1bcaa6,_0x5bef2a,_0x1c221b,_0x90f467){const _0x3697a8=_0x2294c8;let _0x4dd757=this['_injector'][_0x3697a8(0x1e3)](_0xe5b182)[_0x3697a8(0x1cc)](this[_0x3697a8(0x1ca)],this['subUnitId']);if(!_0x4dd757)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x3697a8(0x1ca)]+'\x20and\x20subUnitId\x20'+this[_0x3697a8(0x219)]+_0x3697a8(0x1ea));let {transform:_0x4eb9cd}=_0x439023(this[_0x3697a8(0x1ca)],this[_0x3697a8(0x219)],{'row':_0x1bcaa6,'column':_0x5bef2a,'rowOffset':_0x1c221b,'columnOffset':_0x90f467},0x1,0x1,_0x4dd757);return this['x']=_0x4eb9cd[_0x3697a8(0x1dd)],this['y']=_0x4eb9cd[_0x3697a8(0x21d)],this;}[_0x2294c8(0x1fd)](_0x50bac6,_0x3914c7){return this['x']=_0x50bac6,this['y']=_0x3914c7,this;}[_0x2294c8(0x1f0)](_0x236164){const _0x30e354=_0x2294c8;return this[_0x30e354(0x222)]=_0x236164,this;}['setShapeData'](_0x5b82f9){const _0x1a3f48=_0x2294c8;return _0x5b82f9['shapeType']&&this[_0x1a3f48(0x1f0)](_0x5b82f9[_0x1a3f48(0x222)]),this['shapeData']={..._0x5b82f9},this;}['setShapeSolidFill'](_0x313fdf,_0x5b570d){const _0x2c93fa=_0x2294c8;return this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)]||(this[_0x2c93fa(0x1d3)]['fill']={}),this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)][_0x2c93fa(0x221)]=_0x17ad7b[_0x2c93fa(0x206)],_0x313fdf!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill']['color']=_0x313fdf),_0x5b570d!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill'][_0x2c93fa(0x1d1)]=_0x5b570d),this;}[_0x2294c8(0x1d9)](_0x55d2fe,_0x385c53,_0x664497){const _0x361935=_0x2294c8;if(_0x385c53===void 0x0||_0x385c53[_0x361935(0x22d)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this['shapeData'][_0x361935(0x247)]||(this['shapeData'][_0x361935(0x247)]={}),this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1f5)]=_0x385c53,this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x221)]=_0x17ad7b[_0x361935(0x212)],this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x23c)]=_0x55d2fe,_0x664497!==void 0x0&&(this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1eb)]=_0x664497),this;}[_0x2294c8(0x215)](){const _0x1ff339=_0x2294c8;return this[_0x1ff339(0x1d3)][_0x1ff339(0x247)]={'fillType':_0x17ad7b[_0x1ff339(0x220)]},this;}[_0x2294c8(0x22f)](_0x2fa00e){const _0xaffb99=_0x2294c8;return this[_0xaffb99(0x1d3)][_0xaffb99(0x1fc)]||(this[_0xaffb99(0x1d3)]['stroke']={}),this[_0xaffb99(0x1d3)]['stroke']['color']=_0x2fa00e,this;}[_0x2294c8(0x1d7)](_0xbf4748){const _0x125361=_0x2294c8;return this[_0x125361(0x1d3)]['stroke']||(this['shapeData'][_0x125361(0x1fc)]={}),this[_0x125361(0x1d3)][_0x125361(0x1fc)][_0x125361(0x1c5)]=_0xbf4748,this;}[_0x2294c8(0x202)](_0x29ca2a){const _0x41785a=_0x2294c8;return this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]||(this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]={}),this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]['dashType']=_0x29ca2a,this;}['setStrokeLineJoinType'](_0x45b777){const _0x1cc131=_0x2294c8;return this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]||(this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]={}),this[_0x1cc131(0x1d3)]['stroke'][_0x1cc131(0x227)]=_0x45b777,this;}['setStrokeLineCapType'](_0x33ba9d){const _0x375a73=_0x2294c8;return this[_0x375a73(0x1d3)][_0x375a73(0x1fc)]||(this['shapeData']['stroke']={}),this[_0x375a73(0x1d3)][_0x375a73(0x1fc)][_0x375a73(0x20e)]=_0x33ba9d,this;}[_0x2294c8(0x1f2)](_0x23590f){const _0x3696cf=_0x2294c8;return this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]||(this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]={}),this['shapeData']['stroke']['opacity']=_0x23590f,this;}[_0x2294c8(0x242)](_0x4874cd){const _0x13eb83=_0x2294c8;return this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]||(this['shapeData'][_0x13eb83(0x1fc)]={}),this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]['lineStrokeType']=_0x4874cd,this;}[_0x2294c8(0x246)](_0x4ea888){return this['width']=_0x4ea888,this;}[_0x2294c8(0x1db)](_0x12a528){const _0x5f910d=_0x2294c8;return this[_0x5f910d(0x218)]=_0x12a528,this;}[_0x2294c8(0x248)](){const _0x1f090f=_0x2294c8;let _0x4715c3=this['_injector'][_0x1f090f(0x1e3)](_0x5c3722)['getShapeModel'](this[_0x1f090f(0x1ca)],this['subUnitId'],this[_0x1f090f(0x20d)]);return _0x4715c3?_0xe1c987(_0x4715c3[_0x1f090f(0x1f6)]()):this[_0x1f090f(0x222)]?_0xe1c987(this[_0x1f090f(0x222)]):!0x1;}[_0x2294c8(0x225)](){const _0x3260f3=_0x2294c8;let _0x411a55=this[_0x3260f3(0x22e)]['get'](_0x5c3722)['getShapeModel'](this[_0x3260f3(0x1ca)],this[_0x3260f3(0x219)],this['drawId']);if(!_0x411a55)return[];let _0x3d5dfa=this[_0x3260f3(0x22e)]['get'](_0x4e860d)[_0x3260f3(0x22a)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3260f3(0x20d)]});if(!(_0x3d5dfa!=null&&_0x3d5dfa['transform']))return[];let {width:_0x3e7e55=0x0,height:_0x47b691=0x0}=_0x3d5dfa[_0x3260f3(0x228)];return _0x411a55['updateContext']({'width':_0x3e7e55,'height':_0x47b691}),_0x411a55[_0x3260f3(0x205)]();}[_0x2294c8(0x1d4)](){const _0x514a6d=_0x2294c8;let _0x16fdf4=this[_0x514a6d(0x22e)]['get'](_0x5c3722)[_0x514a6d(0x1fa)](this[_0x514a6d(0x1ca)],this['subUnitId'],this[_0x514a6d(0x20d)]);if(!_0x16fdf4)return[];let _0x1706b3=this[_0x514a6d(0x22e)][_0x514a6d(0x1e3)](_0x4e860d)[_0x514a6d(0x22a)]({'unitId':this['unitId'],'subUnitId':this[_0x514a6d(0x219)],'drawingId':this[_0x514a6d(0x20d)]});if(!(_0x1706b3!=null&&_0x1706b3[_0x514a6d(0x228)]))return[];let {width:_0x41dce9=0x0,height:_0x33e58c=0x0}=_0x1706b3[_0x514a6d(0x228)];return _0x16fdf4['updateContext']({'width':_0x41dce9,'height':_0x33e58c}),_0x16fdf4[_0x514a6d(0x241)]();}[_0x2294c8(0x249)](){const _0x411be5=_0x2294c8;let _0x132594=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x5c3722)[_0x411be5(0x1fa)](this[_0x411be5(0x1ca)],this['subUnitId'],this[_0x411be5(0x20d)]);if(!_0x132594||!_0xe1c987(_0x132594[_0x411be5(0x1f6)]()))return[];let _0x2b025b=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x4e860d)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x411be5(0x219)],'drawingId':this[_0x411be5(0x20d)]});if(!(_0x2b025b!=null&&_0x2b025b[_0x411be5(0x228)]))return[];let {width:_0x476173=0x0,height:_0xd1f238=0x0}=_0x2b025b[_0x411be5(0x228)];return _0x132594[_0x411be5(0x1d2)]({'width':_0x476173,'height':_0xd1f238}),_0x132594[_0x411be5(0x249)]();}[_0x2294c8(0x233)](){const _0x486827=_0x2294c8;var _0x438855;let _0x8ed768=this[_0x486827(0x22e)][_0x486827(0x1e3)](_0x5c3722)[_0x486827(0x1fa)](this[_0x486827(0x1ca)],this[_0x486827(0x219)],this[_0x486827(0x20d)]);return _0x8ed768?(_0x438855=_0x8ed768[_0x486827(0x233)]())==null?null:_0x438855:null;}[_0x2294c8(0x1e9)](){const _0x1b2317=_0x2294c8;var _0x1724a0;let _0x48e208=this['_injector'][_0x1b2317(0x1e3)](_0x5c3722)[_0x1b2317(0x1fa)](this[_0x1b2317(0x1ca)],this[_0x1b2317(0x219)],this['drawId']);return _0x48e208?(_0x1724a0=_0x48e208[_0x1b2317(0x1e9)]())==null?null:_0x1724a0:null;}[_0x2294c8(0x1fb)](){const _0x5cc4ee=_0x2294c8;var _0x153fbb,_0x4e7bde;if(!this[_0x5cc4ee(0x222)])throw Error(_0x5cc4ee(0x1f7));if(this['x']===0x0||this['y']===0x0){let _0x5aaea5=this['_injector'][_0x5cc4ee(0x1e3)](_0xe5b182)['ensureSkeleton'](this['unitId'],this['subUnitId']);if(!_0x5aaea5)throw Error(_0x5cc4ee(0x214)+this[_0x5cc4ee(0x1ca)]+_0x5cc4ee(0x231)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3312e3}=_0x439023(this[_0x5cc4ee(0x1ca)],this[_0x5cc4ee(0x219)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5aaea5);this['x']=this['x']>0x0?this['x']:_0x3312e3[_0x5cc4ee(0x1dd)],this['y']=this['y']>0x0?this['y']:_0x3312e3[_0x5cc4ee(0x21d)];}return this['width']=(_0x153fbb=this[_0x5cc4ee(0x1c5)])==null?_0xdabd8b:_0x153fbb,this['height']=(_0x4e7bde=this[_0x5cc4ee(0x218)])==null?_0x11c2a4:_0x4e7bde,{'unitId':this[_0x5cc4ee(0x1ca)],'subUnitId':this[_0x5cc4ee(0x219)],'shapeId':this[_0x5cc4ee(0x20d)],'shapeType':this[_0x5cc4ee(0x222)],'shapeData':Object[_0x5cc4ee(0x1e5)](this[_0x5cc4ee(0x1d3)])[_0x5cc4ee(0x22d)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x5cc4ee(0x218)]};}[_0x2294c8(0x1cf)](){const _0x299801=_0x2294c8;return this[_0x299801(0x20d)];}[_0x2294c8(0x1f6)](){const _0x2bbab4=_0x2294c8;return this[_0x2bbab4(0x222)];}[_0x2294c8(0x1e1)](){const _0x3e91c9=_0x2294c8;return this[_0x3e91c9(0x1d3)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x2294c8(0x245)](){const _0x18b848=_0x2294c8;return{'width':this['width'],'height':this[_0x18b848(0x218)]};}},F=class extends P{constructor(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813){const _0x37e36c=_0x2294c8;super(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813),N(this,_0x37e36c(0x1d3),{});}[_0x2294c8(0x1f0)](_0x13a1a3){const _0x2c6723=_0x2294c8;if(!_0xe1c987(_0x13a1a3))throw Error(_0x2c6723(0x210)+_0x13a1a3+_0x2c6723(0x1e8));return super['setShapeType'](_0x13a1a3),this;}[_0x2294c8(0x1ee)](_0x599217){const _0x1d3eea=_0x2294c8;var _0x2609be,_0x39a67e;return(_0x2609be=this[_0x1d3eea(0x1d3)])!=null&&_0x2609be['ln']||(this['shapeData']['ln']={}),!((_0x39a67e=this[_0x1d3eea(0x1d3)])==null||(_0x39a67e=_0x39a67e['ln'])==null)&&_0x39a67e['startArrow']||(this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)]={}),this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)][_0x1d3eea(0x21f)]=_0x599217,this;}[_0x2294c8(0x23d)](_0x3dd134){const _0x5aa569=_0x2294c8;var _0xfa308,_0x351dd6;return(_0xfa308=this[_0x5aa569(0x1d3)])!=null&&_0xfa308['ln']||(this[_0x5aa569(0x1d3)]['ln']={}),!((_0x351dd6=this[_0x5aa569(0x1d3)])==null||(_0x351dd6=_0x351dd6['ln'])==null)&&_0x351dd6[_0x5aa569(0x1d8)]||(this[_0x5aa569(0x1d3)]['ln'][_0x5aa569(0x1d8)]={}),this['shapeData']['ln']['endArrow'][_0x5aa569(0x21f)]=_0x3dd134,this;}[_0x2294c8(0x1cd)](_0x31eab9){const _0xf4d18e=_0x2294c8;var _0x40bd11,_0x134d29;return(_0x40bd11=this[_0xf4d18e(0x1d3)])!=null&&_0x40bd11['ln']||(this[_0xf4d18e(0x1d3)]['ln']={}),!((_0x134d29=this['shapeData'])==null||(_0x134d29=_0x134d29['ln'])==null)&&_0x134d29[_0xf4d18e(0x1ef)]||(this[_0xf4d18e(0x1d3)]['ln']['startArrow']={}),this[_0xf4d18e(0x1d3)]['ln']['startArrow'][_0xf4d18e(0x243)]=_0x31eab9,this;}[_0x2294c8(0x209)](_0x5179ba){const _0x3a6800=_0x2294c8;var _0x4f9409,_0x250ee5;return(_0x4f9409=this[_0x3a6800(0x1d3)])!=null&&_0x4f9409['ln']||(this[_0x3a6800(0x1d3)]['ln']={}),!((_0x250ee5=this[_0x3a6800(0x1d3)])==null||(_0x250ee5=_0x250ee5['ln'])==null)&&_0x250ee5[_0x3a6800(0x1d8)]||(this[_0x3a6800(0x1d3)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x3a6800(0x1d8)][_0x3a6800(0x243)]=_0x5179ba,this;}[_0x2294c8(0x1fb)](){return super['build']();}[_0x2294c8(0x1e9)](){const _0x271a70=_0x2294c8;var _0x3b5a6e;return((_0x3b5a6e=this[_0x271a70(0x1d3)])==null||(_0x3b5a6e=_0x3b5a6e[_0x271a70(0x240)])==null?void 0x0:_0x3b5a6e['to'])||null;}[_0x2294c8(0x233)](){const _0x7f272e=_0x2294c8;var _0x19b794;return((_0x19b794=this['shapeData'])==null||(_0x19b794=_0x19b794[_0x7f272e(0x240)])==null?void 0x0:_0x19b794[_0x7f272e(0x1f3)])||null;}};function I(_0x20336c,_0x1dfd7b,_0x14df5a,_0x36efcb,_0x4a590e,_0x25c7a7){const _0x331a96=_0x2294c8;let _0x45800d=_0x4a590e[_0x331a96(0x1fa)](_0x20336c,_0x1dfd7b,_0x14df5a);if(!_0x45800d)return null;let _0x3d7c50=_0x25c7a7['getDrawingByParam']({'unitId':_0x20336c,'subUnitId':_0x1dfd7b,'drawingId':_0x14df5a});if(!(_0x3d7c50!=null&&_0x3d7c50[_0x331a96(0x228)]))return null;let {left:_0x310935=0x0,top:_0x519fae=0x0,width:_0x201003=0x0,height:_0x525de1=0x0,flipX:_0x2ed3e6=!0x1,flipY:_0x2b6667=!0x1,angle:_0x134923}=_0x3d7c50[_0x331a96(0x228)];_0x45800d[_0x331a96(0x1d2)]({'width':_0x201003,'height':_0x525de1});let _0x1ac5ed=_0x45800d[_0x331a96(0x205)]()[_0x331a96(0x244)](_0x58cc8e=>_0x58cc8e['index']===_0x36efcb);if(!_0x1ac5ed)return null;let _0x15ec78=_0x2ed3e6?_0x201003-_0x1ac5ed['x']:_0x1ac5ed['x'],_0x438821=_0x2b6667?_0x525de1-_0x1ac5ed['y']:_0x1ac5ed['y'];if(_0x134923&&_0x134923!==0x0){let _0x3f203a=_0x134923*Math['PI']/0xb4,_0x283e8d=Math[_0x331a96(0x235)](_0x3f203a),_0x2d1844=Math['sin'](_0x3f203a),_0x3820d9=_0x201003/0x2,_0x3f63bf=_0x525de1/0x2,_0x36e6f8=_0x15ec78-_0x3820d9,_0xbb0eb9=_0x438821-_0x3f63bf;_0x15ec78=_0x3820d9+_0x36e6f8*_0x283e8d-_0xbb0eb9*_0x2d1844,_0x438821=_0x3f63bf+_0x36e6f8*_0x2d1844+_0xbb0eb9*_0x283e8d;}_0x15ec78+=_0x310935,_0x438821+=_0x519fae;let _0x527b10=_0x1ac5ed[_0x331a96(0x20a)]/0xea60;_0x2ed3e6&&(_0x527b10=0xb4-_0x527b10),_0x2b6667&&(_0x527b10=-_0x527b10),_0x527b10+=_0x134923||0x0,_0x527b10=(_0x527b10%0x168+0x168)%0x168;let _0x1104a8=_0x5350e5({'left':_0x310935,'top':_0x519fae,'width':_0x201003,'height':_0x525de1},_0x134923||0x0);return{'point':{'x':_0x15ec78,'y':_0x438821},'angle':_0x527b10,'bounds':_0x1104a8};}function L(_0x457973,_0x467354){const _0x2b083d=_0x2294c8;let _0x4c5881=_0x467354['x']-_0x457973['x'],_0x268f7e=_0x467354['y']-_0x457973['y'];return Math[_0x2b083d(0x200)](_0x4c5881)>=Math['abs'](_0x268f7e)?_0x4c5881>=0x0?0xb4:0x0:_0x268f7e>=0x0?0x10e:0x5a;}function R(_0x42ebd4,_0x41045c,_0x346f0d,_0x42f598,_0x49e4fa,_0x5868c6,_0x69a39d){const _0xb7570f=_0x2294c8;let _0x1de5ea=_0x5868c6[_0xb7570f(0x1fa)](_0x42ebd4,_0x41045c,_0x346f0d);if(!_0x1de5ea)return null;let _0xf9636d=_0x69a39d['getDrawingByParam']({'unitId':_0x42ebd4,'subUnitId':_0x41045c,'drawingId':_0x346f0d});if(!(_0xf9636d!=null&&_0xf9636d[_0xb7570f(0x228)]))return null;let {left:_0x1d932a=0x0,top:_0x654a09=0x0,width:_0x17721b=0x0,height:_0x5db118=0x0,flipX:_0x374390=!0x1,flipY:_0x529e77=!0x1}=_0xf9636d['transform'];_0x1de5ea['updateContext']({'width':_0x17721b,'height':_0x5db118});let _0xdfeaa6=_0x1de5ea[_0xb7570f(0x249)]();if(_0xdfeaa6['length']<0x2)return null;let _0x311ead=_0x42f598?_0xdfeaa6[0x0]:_0xdfeaa6[_0xdfeaa6['length']-0x1],_0x5efb79=new _0x226b98({'left':_0x1d932a,'top':_0x654a09,'width':_0x17721b,'height':_0x5db118,'flipX':_0x374390,'flipY':_0x529e77})[_0xb7570f(0x21c)](_0x311ead);return{'point':_0x5efb79,'angle':L(_0x49e4fa[_0xb7570f(0x1f4)],_0x5efb79),'bounds':{'left':_0x5efb79['x'],'top':_0x5efb79['y'],'width':0x0,'height':0x0}};}function _0x10e5(_0x2a12c3,_0x79ac5a){_0x2a12c3=_0x2a12c3-0x1c5;const _0x2ff63f=_0x2ff6();let _0x10e548=_0x2ff63f[_0x2a12c3];return _0x10e548;}var z=class extends _0x4f6f37{async[_0x2294c8(0x22b)](_0x518ede){const _0x2687ee=_0x2294c8;let {unitId:_0x13c442,subUnitId:_0x590a86,shapeId:_0x499271,shapeType:_0x459c80,shapeData:_0x2e719a,x:_0x317d35,y:_0x4583c4,width:_0x2650aa,height:_0x5b6add}=_0x518ede;return this[_0x2687ee(0x216)][_0x2687ee(0x1f9)](_0x2b5f84['id'],{'unitId':_0x13c442,'subUnitId':_0x590a86,'shapeId':_0x499271,'shapeType':_0x459c80,'shapeData':_0x2e719a,'position':{'x':_0x317d35,'y':_0x4583c4},'width':_0x2650aa,'height':_0x5b6add});}async[_0x2294c8(0x1ce)](_0x534acf){const _0x3e9c87=_0x2294c8;let {unitId:_0x3cd1c5,subUnitId:_0x42e559,shapeId:_0x33282e,shapeType:_0x57fd12,shapeData:_0x12c1db,x:_0x3b4908,y:_0xf60132,width:_0x1887e3,height:_0x203ae6}=_0x534acf;return this[_0x3e9c87(0x216)][_0x3e9c87(0x1f9)](_0x4bd9a0['id'],{'unitId':_0x3cd1c5,'subUnitId':_0x42e559,'shapeId':_0x33282e,'shapeType':_0x57fd12,'shapeData':_0x12c1db,'position':{'x':_0x3b4908,'y':_0xf60132},'width':_0x1887e3,'height':_0x203ae6});}['newShape'](_0x339dd0){const _0x5de9c2=_0x2294c8;let _0x1489bb=this[_0x5de9c2(0x203)]()[_0x5de9c2(0x1ec)](),_0x472bb4=this[_0x5de9c2(0x238)]();if(_0x339dd0){let _0x4e3568=new P(_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)],this['_injector']);return this[_0x5de9c2(0x1e7)](_0x4e3568,_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)]),_0x4e3568;}return new P(_0x1489bb,_0x472bb4,_0x4e4bad(),this['_injector']);}['newConnector'](_0x43fc0d){const _0x47823c=_0x2294c8;let _0x3f05c9=this[_0x47823c(0x203)]()[_0x47823c(0x1ec)](),_0x4f1ee3=this['getSheetId']();if(_0x43fc0d){let _0x220291=new F(_0x3f05c9,_0x4f1ee3,_0x43fc0d['drawId'],this[_0x47823c(0x22e)]);return this['_preloadShapeProperties'](_0x220291,_0x3f05c9,_0x4f1ee3,_0x43fc0d[_0x47823c(0x20d)]),_0x220291;}return new F(_0x3f05c9,_0x4f1ee3,_0x4e4bad(),this[_0x47823c(0x22e)]);}[_0x2294c8(0x1e4)](){const _0x7390e2=_0x2294c8;let _0x120489=this[_0x7390e2(0x22e)][_0x7390e2(0x1e3)](_0xa71416),_0x3d597f=this[_0x7390e2(0x203)]()['getUnitId'](),_0x2a2e0f=this[_0x7390e2(0x238)](),_0x509c9f=_0x120489[_0x7390e2(0x213)](_0x3d597f,_0x2a2e0f);if(!_0x509c9f)return[];let _0xc15c52=[];for(let [_0x253011,_0x1d4231]of Object['entries'](_0x509c9f))if(_0x1d4231&&_0x1d4231[_0x7390e2(0x207)]===_0x285b45[_0x7390e2(0x237)]){let _0x57cf5c=new P(_0x3d597f,_0x2a2e0f,_0x253011,this[_0x7390e2(0x22e)]);this[_0x7390e2(0x1e7)](_0x57cf5c,_0x3d597f,_0x2a2e0f,_0x253011),_0xc15c52['push'](_0x57cf5c);}return _0xc15c52;}[_0x2294c8(0x1da)](_0x5dcdfe){const _0x2c691b=_0x2294c8;let {unitId:_0x3bb5ec,subUnitId:_0xbcc1d0,drawId:_0x1004d8}=_0x5dcdfe;return this[_0x2c691b(0x216)][_0x2c691b(0x1f9)](_0x1b2369['id'],{'unitId':_0x3bb5ec,'drawings':[{'unitId':_0x3bb5ec,'subUnitId':_0xbcc1d0,'drawingId':_0x1004d8,'drawingType':_0x285b45[_0x2c691b(0x237)]}]});}async[_0x2294c8(0x236)](_0x10c630){const _0x4e2616=_0x2294c8;let {connector:_0x90d6cd,startTarget:_0x410607,endTarget:_0x49f4f8}=_0x10c630;if(!_0x410607&&!_0x49f4f8)return!0x1;let _0x4fe5f4=this['getWorkbook']()[_0x4e2616(0x1ec)](),_0x1d5dca=this[_0x4e2616(0x238)](),_0x5b30a5=this[_0x4e2616(0x22e)][_0x4e2616(0x1e3)](_0x5c3722),_0x42ea4c=this[_0x4e2616(0x22e)]['get'](_0x4e860d),_0x3f9b57=_0x5b30a5[_0x4e2616(0x1fa)](_0x4fe5f4,_0x1d5dca,_0x90d6cd[_0x4e2616(0x20d)]);if(!_0x3f9b57)return!0x1;let _0x1e639e=_0x3f9b57['getShapeType'](),_0x3fbcad=_0x3f9b57[_0x4e2616(0x1c7)](),_0x32b2f6={};for(let _0x14f71e of _0x3f9b57[_0x4e2616(0x1d5)]()){let _0x23047e=_0x3f9b57[_0x4e2616(0x217)](_0x14f71e);_0x23047e!==void 0x0&&(_0x32b2f6[_0x14f71e]=_0x23047e);}let {startInfo:_0x3ca704,endInfo:_0x33e99c}=this[_0x4e2616(0x208)](_0x4fe5f4,_0x1d5dca,_0x90d6cd,_0x3f9b57,_0x410607,_0x49f4f8,_0x5b30a5,_0x42ea4c,_0x3fbcad);if(!_0x3ca704||!_0x33e99c)return!0x1;let _0xe9ee61=_0x8012ef(_0x1966ac(_0x3ca704,_0x33e99c,_0x1e639e),_0x1e639e),_0x3834d4={};return _0x410607?_0x3834d4[_0x4e2616(0x1f3)]={'shapeId':_0x410607['shape'][_0x4e2616(0x20d)],'cxnIndex':_0x410607['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['from']&&(_0x3834d4[_0x4e2616(0x1f3)]=_0x3fbcad[_0x4e2616(0x1f3)]),_0x49f4f8?_0x3834d4['to']={'shapeId':_0x49f4f8[_0x4e2616(0x1f1)]['drawId'],'cxnIndex':_0x49f4f8['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['to']&&(_0x3834d4['to']=_0x3fbcad['to']),this[_0x4e2616(0x216)][_0x4e2616(0x1f9)](_0x3ac70a['id'],{'unitId':_0x4fe5f4,'subUnitId':_0x1d5dca,'connectorShapeId':_0x90d6cd[_0x4e2616(0x20d)],'width':_0xe9ee61[_0x4e2616(0x211)]['width'],'height':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x218)],'left':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1dd)],'top':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x21d)],'flipX':_0xe9ee61['worldRect'][_0x4e2616(0x1c9)]||!0x1,'flipY':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1e2)]||!0x1,'oldAdjustValues':_0x32b2f6,'newAdjustValues':_0xe9ee61[_0x4e2616(0x21b)],'newLineType':_0xe9ee61['lineType'],'oldLineType':_0x1e639e,'rotation':_0xe9ee61[_0x4e2616(0x22c)],'oldRelation':_0x3fbcad,'newRelation':_0x3834d4});}[_0x2294c8(0x1e7)](_0x143ada,_0x5976d4,_0xffcd87,_0x5be5dd){const _0x3d4c33=_0x2294c8;let _0x2e2d92=this[_0x3d4c33(0x22e)]['get'](_0x4e860d)[_0x3d4c33(0x22a)]({'unitId':_0x5976d4,'subUnitId':_0xffcd87,'drawingId':_0x5be5dd});if(_0x2e2d92!=null&&_0x2e2d92[_0x3d4c33(0x228)]){var _0x1ccff4,_0x5bd70f,_0x19c628,_0x50ccaf;_0x143ada['x']=(_0x1ccff4=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1dd)])==null?0x0:_0x1ccff4,_0x143ada['y']=(_0x5bd70f=_0x2e2d92[_0x3d4c33(0x228)]['top'])==null?0x0:_0x5bd70f,_0x143ada[_0x3d4c33(0x1c5)]=(_0x19c628=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1c5)])==null?_0x143ada[_0x3d4c33(0x1c5)]:_0x19c628,_0x143ada[_0x3d4c33(0x218)]=(_0x50ccaf=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x218)])==null?_0x143ada[_0x3d4c33(0x218)]:_0x50ccaf;}let _0x112727=this[_0x3d4c33(0x22e)][_0x3d4c33(0x1e3)](_0x5c3722)[_0x3d4c33(0x1fa)](_0x5976d4,_0xffcd87,_0x5be5dd);if(_0x112727){_0x143ada[_0x3d4c33(0x222)]=_0x112727[_0x3d4c33(0x1f6)]();let _0x3bd835=_0x112727[_0x3d4c33(0x1e1)]();_0x3bd835&&(_0x143ada[_0x3d4c33(0x1d3)]=JSON['parse'](JSON[_0x3d4c33(0x1d0)](_0x3bd835)));}}[_0x2294c8(0x208)](_0x1dacb4,_0x59248c,_0x17164b,_0x70a6a,_0x5708c8,_0x21c049,_0x1ce575,_0x3fb1bd,_0x2e2563){const _0x1493bd=_0x2294c8;let _0x15ffa2=null,_0x57025e=null;return _0x5708c8&&(_0x15ffa2=I(_0x1dacb4,_0x59248c,_0x5708c8[_0x1493bd(0x1f1)][_0x1493bd(0x20d)],_0x5708c8[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x21c049&&(_0x57025e=I(_0x1dacb4,_0x59248c,_0x21c049[_0x1493bd(0x1f1)]['drawId'],_0x21c049[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x15ffa2||(_0x15ffa2=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b['drawId'],!0x0,_0x57025e,_0x2e2563==null?void 0x0:_0x2e2563[_0x1493bd(0x1f3)],_0x1ce575,_0x3fb1bd)),_0x57025e||(_0x57025e=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b[_0x1493bd(0x20d)],!0x1,_0x15ffa2,_0x2e2563==null?void 0x0:_0x2e2563['to'],_0x1ce575,_0x3fb1bd)),{'startInfo':_0x15ffa2,'endInfo':_0x57025e};}['_resolveExistingOrFreeEndpoint'](_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x5d0a85,_0x67d839,_0x39c03d){const _0x59461b=_0x2294c8;if(_0x5d0a85){let _0x5d38ef=I(_0xc5558a,_0x98c206,_0x5d0a85[_0x59461b(0x234)],_0x5d0a85[_0x59461b(0x226)],_0x67d839,_0x39c03d);if(_0x5d38ef)return _0x5d38ef;}return _0x3c06ec?R(_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x67d839,_0x39c03d):null;}};_0x4f6f37[_0x2294c8(0x1f8)](z);export{F as FConnectorShape,P as FShape};
|