@univerjs-pro/sheets-shape 1.0.0-alpha.1 → 1.0.0-insiders.20260629-12f2e44
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/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1813d6=_0x3405;(function(_0x50b0aa,_0x5f0e76){const _0x4d059e=_0x3405,_0x56d358=_0x50b0aa();while(!![]){try{const _0x5e68c7=-parseInt(_0x4d059e(0x161))/0x1+parseInt(_0x4d059e(0x1e5))/0x2+parseInt(_0x4d059e(0x1b4))/0x3*(-parseInt(_0x4d059e(0x1db))/0x4)+parseInt(_0x4d059e(0x16c))/0x5*(-parseInt(_0x4d059e(0x1a0))/0x6)+parseInt(_0x4d059e(0x150))/0x7+parseInt(_0x4d059e(0x1a8))/0x8*(-parseInt(_0x4d059e(0x190))/0x9)+parseInt(_0x4d059e(0x1e9))/0xa*(parseInt(_0x4d059e(0x1ab))/0xb);if(_0x5e68c7===_0x5f0e76)break;else _0x56d358['push'](_0x56d358['shift']());}catch(_0xdd2ac7){_0x56d358['push'](_0x56d358['shift']());}}}(_0x5281,0x807d2),Object[_0x1813d6(0x187)](exports,Symbol['toStringTag'],{'value':_0x1813d6(0x173)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs-pro/sheets-shape'),r=require('@univerjs/core'),i=require('@univerjs/drawing'),a=require('@univerjs/sheets'),o=require('@univerjs/sheets-drawing'),s=require('@univerjs/sheets/facade');var c=class extends t[_0x1813d6(0x1c1)]{get['ShapeTypeEnum'](){const _0x58a70d=_0x1813d6;return e[_0x58a70d(0x17b)];}get[_0x1813d6(0x189)](){const _0x1fb46b=_0x1813d6;return e[_0x1fb46b(0x189)];}get['ShapeGradientTypeEnum'](){const _0x471ac2=_0x1813d6;return e[_0x471ac2(0x1af)];}get['ShapeLineTypeEnum'](){return e['ShapeLineTypeEnum'];}get[_0x1813d6(0x1a4)](){const _0x2d6160=_0x1813d6;return e[_0x2d6160(0x1a4)];}get[_0x1813d6(0x176)](){const _0x24f0bf=_0x1813d6;return e[_0x24f0bf(0x176)];}get[_0x1813d6(0x17f)](){const _0x5e179f=_0x1813d6;return e[_0x5e179f(0x17f)];}get[_0x1813d6(0x16a)](){const _0x3f748b=_0x1813d6;return e[_0x3f748b(0x16a)];}get[_0x1813d6(0x1e2)](){const _0x38783f=_0x1813d6;return e[_0x38783f(0x1e2)];}};t[_0x1813d6(0x1c1)]['extend'](c);function l(_0x1c7796){'@babel/helpers - typeof';const _0x1fc5dc=_0x1813d6;return l=typeof Symbol==_0x1fc5dc(0x18c)&&typeof Symbol[_0x1fc5dc(0x199)]==_0x1fc5dc(0x15a)?function(_0x418859){return typeof _0x418859;}:function(_0x1c79f7){const _0x3f9810=_0x1fc5dc;return _0x1c79f7&&typeof Symbol==_0x3f9810(0x18c)&&_0x1c79f7[_0x3f9810(0x1e6)]===Symbol&&_0x1c79f7!==Symbol[_0x3f9810(0x168)]?_0x3f9810(0x15a):typeof _0x1c79f7;},l(_0x1c7796);}function _0x3405(_0x2b6cc4,_0x3f0616){_0x2b6cc4=_0x2b6cc4-0x14d;const _0x528155=_0x5281();let _0x3405df=_0x528155[_0x2b6cc4];return _0x3405df;}function u(_0x3dbb47,_0x2f3aac){const _0x340b9d=_0x1813d6;if(l(_0x3dbb47)!=_0x340b9d(0x167)||!_0x3dbb47)return _0x3dbb47;var _0x1379ef=_0x3dbb47[Symbol[_0x340b9d(0x17a)]];if(_0x1379ef!==void 0x0){var _0x5ad59d=_0x1379ef['call'](_0x3dbb47,_0x2f3aac||_0x340b9d(0x1c5));if(l(_0x5ad59d)!='object')return _0x5ad59d;throw TypeError(_0x340b9d(0x17d));}return(_0x2f3aac==='string'?String:Number)(_0x3dbb47);}function d(_0x4704a8){const _0x19a153=_0x1813d6;var _0x1c87e8=u(_0x4704a8,_0x19a153(0x188));return l(_0x1c87e8)==_0x19a153(0x15a)?_0x1c87e8:_0x1c87e8+'';}function f(_0x20d1a6,_0x553d59,_0x4eaa3f){const _0x4bd73b=_0x1813d6;return(_0x553d59=d(_0x553d59))in _0x20d1a6?Object[_0x4bd73b(0x187)](_0x20d1a6,_0x553d59,{'value':_0x4eaa3f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20d1a6[_0x553d59]=_0x4eaa3f,_0x20d1a6;}var p=class{constructor(_0x2e573a,_0x485d89,_0x132722,_0x9b71a5){const _0x593dbc=_0x1813d6;f(this,_0x593dbc(0x1d0),void 0x0),f(this,_0x593dbc(0x1ea),void 0x0),f(this,_0x593dbc(0x177),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x593dbc(0x1b1),n[_0x593dbc(0x1c6)]),f(this,_0x593dbc(0x1be),n['DEFAULT_SHAPE_HEIGHT']),f(this,'shapeType',void 0x0),f(this,_0x593dbc(0x174),{}),f(this,'_injector',void 0x0),this['unitId']=_0x2e573a,this[_0x593dbc(0x1ea)]=_0x485d89,this[_0x593dbc(0x177)]=_0x132722||(0x0,r['generateRandomId'])(),this['_injector']=_0x9b71a5;}[_0x1813d6(0x1ae)](_0x1a983b,_0x48ea4c,_0x5e8d6b,_0x2e1e3e){const _0x1d99a8=_0x1813d6;let _0x407f01=this[_0x1d99a8(0x14f)][_0x1d99a8(0x16e)](a[_0x1d99a8(0x195)])['ensureSkeleton'](this[_0x1d99a8(0x1d0)],this[_0x1d99a8(0x1ea)]);if(!_0x407f01)throw Error(_0x1d99a8(0x1c4)+this[_0x1d99a8(0x1d0)]+_0x1d99a8(0x192)+this[_0x1d99a8(0x1ea)]+_0x1d99a8(0x1e3));let {transform:_0x42c181}=(0x0,a[_0x1d99a8(0x19d)])(this['unitId'],this[_0x1d99a8(0x1ea)],{'row':_0x1a983b,'column':_0x48ea4c,'rowOffset':_0x5e8d6b,'columnOffset':_0x2e1e3e},0x1,0x1,_0x407f01);return this['x']=_0x42c181[_0x1d99a8(0x1ca)],this['y']=_0x42c181[_0x1d99a8(0x17c)],this;}['setAbsolutePosition'](_0x27aa01,_0x4b76b7){return this['x']=_0x27aa01,this['y']=_0x4b76b7,this;}[_0x1813d6(0x184)](_0x518142){return this['shapeType']=_0x518142,this;}[_0x1813d6(0x1cf)](_0x60f142){const _0xd8d9d1=_0x1813d6;return _0x60f142['shapeType']&&this[_0xd8d9d1(0x184)](_0x60f142['shapeType']),this[_0xd8d9d1(0x174)]={..._0x60f142},this;}[_0x1813d6(0x1e0)](_0x2eb292,_0xdc0aa4){const _0x5e26b2=_0x1813d6;return this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]||(this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]={}),this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]['fillType']=e['ShapeFillEnum'][_0x5e26b2(0x166)],_0x2eb292!==void 0x0&&(this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)][_0x5e26b2(0x165)]=_0x2eb292),_0xdc0aa4!==void 0x0&&(this['shapeData']['fill']['opacity']=_0xdc0aa4),this;}[_0x1813d6(0x155)](_0x5894a4,_0x41a707,_0x4523e0){const _0x59d788=_0x1813d6;if(_0x41a707===void 0x0||_0x41a707[_0x59d788(0x19b)]===0x0)throw Error(_0x59d788(0x1a5));return this[_0x59d788(0x174)]['fill']||(this[_0x59d788(0x174)][_0x59d788(0x1da)]={}),this[_0x59d788(0x174)][_0x59d788(0x1da)][_0x59d788(0x1b5)]=_0x41a707,this['shapeData']['fill'][_0x59d788(0x182)]=e[_0x59d788(0x189)][_0x59d788(0x19e)],this[_0x59d788(0x174)][_0x59d788(0x1da)][_0x59d788(0x15d)]=_0x5894a4,_0x4523e0!==void 0x0&&(this[_0x59d788(0x174)][_0x59d788(0x1da)]['gradientAngle']=_0x4523e0),this;}[_0x1813d6(0x180)](){const _0x3157ee=_0x1813d6;return this['shapeData'][_0x3157ee(0x1da)]={'fillType':e['ShapeFillEnum'][_0x3157ee(0x1bc)]},this;}['setStrokeColor'](_0x370033){const _0x44e850=_0x1813d6;return this[_0x44e850(0x174)][_0x44e850(0x193)]||(this[_0x44e850(0x174)][_0x44e850(0x193)]={}),this['shapeData'][_0x44e850(0x193)][_0x44e850(0x165)]=_0x370033,this;}[_0x1813d6(0x153)](_0x3d8dce){const _0x114018=_0x1813d6;return this[_0x114018(0x174)]['stroke']||(this[_0x114018(0x174)]['stroke']={}),this[_0x114018(0x174)]['stroke'][_0x114018(0x1b1)]=_0x3d8dce,this;}[_0x1813d6(0x1de)](_0x220fe5){const _0x27497d=_0x1813d6;return this[_0x27497d(0x174)][_0x27497d(0x193)]||(this[_0x27497d(0x174)]['stroke']={}),this[_0x27497d(0x174)][_0x27497d(0x193)]['dashType']=_0x220fe5,this;}['setStrokeLineJoinType'](_0x48e9c1){const _0x1ab801=_0x1813d6;return this[_0x1ab801(0x174)][_0x1ab801(0x193)]||(this['shapeData']['stroke']={}),this[_0x1ab801(0x174)][_0x1ab801(0x193)][_0x1ab801(0x156)]=_0x48e9c1,this;}['setStrokeLineCapType'](_0x579727){const _0x3a8418=_0x1813d6;return this[_0x3a8418(0x174)][_0x3a8418(0x193)]||(this[_0x3a8418(0x174)]['stroke']={}),this[_0x3a8418(0x174)]['stroke'][_0x3a8418(0x1a2)]=_0x579727,this;}[_0x1813d6(0x159)](_0x2a97c6){const _0x90e0de=_0x1813d6;return this[_0x90e0de(0x174)][_0x90e0de(0x193)]||(this[_0x90e0de(0x174)][_0x90e0de(0x193)]={}),this[_0x90e0de(0x174)][_0x90e0de(0x193)][_0x90e0de(0x1b7)]=_0x2a97c6,this;}[_0x1813d6(0x196)](_0x5026f1){const _0x3383c3=_0x1813d6;return this[_0x3383c3(0x174)]['stroke']||(this['shapeData']['stroke']={}),this['shapeData'][_0x3383c3(0x193)][_0x3383c3(0x164)]=_0x5026f1,this;}[_0x1813d6(0x1e1)](_0xdbd9fe){const _0x1064eb=_0x1813d6;return this[_0x1064eb(0x1b1)]=_0xdbd9fe,this;}[_0x1813d6(0x1b3)](_0x81f77d){const _0xa54a2e=_0x1813d6;return this[_0xa54a2e(0x1be)]=_0x81f77d,this;}[_0x1813d6(0x16b)](){const _0x4217b5=_0x1813d6;let _0x40225d=this['_injector']['get'](n[_0x4217b5(0x16d)])[_0x4217b5(0x1d3)](this[_0x4217b5(0x1d0)],this[_0x4217b5(0x1ea)],this[_0x4217b5(0x177)]);return _0x40225d?(0x0,e['isConnectorShape'])(_0x40225d[_0x4217b5(0x197)]()):this[_0x4217b5(0x1cd)]?(0x0,e[_0x4217b5(0x1c2)])(this['shapeType']):!0x1;}['getConnectionSites'](){const _0xdc950d=_0x1813d6;let _0xbe29b9=this[_0xdc950d(0x14f)][_0xdc950d(0x16e)](n[_0xdc950d(0x16d)])[_0xdc950d(0x1d3)](this[_0xdc950d(0x1d0)],this[_0xdc950d(0x1ea)],this[_0xdc950d(0x177)]);if(!_0xbe29b9)return[];let _0xcebe44=this[_0xdc950d(0x14f)][_0xdc950d(0x16e)](i[_0xdc950d(0x1dd)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0xcebe44!=null&&_0xcebe44[_0xdc950d(0x154)]))return[];let {width:_0x53ba0d=0x0,height:_0x58f2a6=0x0}=_0xcebe44[_0xdc950d(0x154)];return _0xbe29b9[_0xdc950d(0x1ad)]({'width':_0x53ba0d,'height':_0x58f2a6}),_0xbe29b9['getConnectionSiteList']();}[_0x1813d6(0x171)](){const _0x288626=_0x1813d6;let _0x14b9ae=this[_0x288626(0x14f)][_0x288626(0x16e)](n[_0x288626(0x16d)])[_0x288626(0x1d3)](this[_0x288626(0x1d0)],this[_0x288626(0x1ea)],this[_0x288626(0x177)]);if(!_0x14b9ae)return[];let _0x96436b=this[_0x288626(0x14f)][_0x288626(0x16e)](i[_0x288626(0x1dd)])[_0x288626(0x1ce)]({'unitId':this[_0x288626(0x1d0)],'subUnitId':this[_0x288626(0x1ea)],'drawingId':this[_0x288626(0x177)]});if(!(_0x96436b!=null&&_0x96436b['transform']))return[];let {width:_0x26dd28=0x0,height:_0x506b43=0x0}=_0x96436b[_0x288626(0x154)];return _0x14b9ae[_0x288626(0x1ad)]({'width':_0x26dd28,'height':_0x506b43}),_0x14b9ae[_0x288626(0x179)]();}[_0x1813d6(0x1c9)](){const _0x375b4f=_0x1813d6;let _0x2b2f61=this[_0x375b4f(0x14f)]['get'](n['SheetsShapeService'])[_0x375b4f(0x1d3)](this[_0x375b4f(0x1d0)],this['subUnitId'],this['drawId']);if(!_0x2b2f61||!(0x0,e[_0x375b4f(0x1c2)])(_0x2b2f61['getShapeType']()))return[];let _0x1b2c35=this[_0x375b4f(0x14f)][_0x375b4f(0x16e)](i[_0x375b4f(0x1dd)])[_0x375b4f(0x1ce)]({'unitId':this[_0x375b4f(0x1d0)],'subUnitId':this[_0x375b4f(0x1ea)],'drawingId':this[_0x375b4f(0x177)]});if(!(_0x1b2c35!=null&&_0x1b2c35['transform']))return[];let {width:_0x3db08d=0x0,height:_0x143847=0x0}=_0x1b2c35[_0x375b4f(0x154)];return _0x2b2f61[_0x375b4f(0x1ad)]({'width':_0x3db08d,'height':_0x143847}),_0x2b2f61[_0x375b4f(0x1c9)]();}['getStartConnectInfo'](){const _0x5e9363=_0x1813d6;var _0x4f1f3e;let _0x3522be=this[_0x5e9363(0x14f)][_0x5e9363(0x16e)](n[_0x5e9363(0x16d)])[_0x5e9363(0x1d3)](this[_0x5e9363(0x1d0)],this['subUnitId'],this['drawId']);return _0x3522be?(_0x4f1f3e=_0x3522be[_0x5e9363(0x1cb)]())==null?null:_0x4f1f3e:null;}[_0x1813d6(0x1e8)](){const _0x42742d=_0x1813d6;var _0x5066c7;let _0x20d068=this[_0x42742d(0x14f)][_0x42742d(0x16e)](n[_0x42742d(0x16d)])[_0x42742d(0x1d3)](this['unitId'],this[_0x42742d(0x1ea)],this[_0x42742d(0x177)]);return _0x20d068?(_0x5066c7=_0x20d068[_0x42742d(0x1e8)]())==null?null:_0x5066c7:null;}[_0x1813d6(0x1a1)](){const _0x2353b1=_0x1813d6;var _0x6ff243,_0x95792c;if(!this[_0x2353b1(0x1cd)])throw Error(_0x2353b1(0x181));if(this['x']===0x0||this['y']===0x0){let _0x17b86c=this['_injector'][_0x2353b1(0x16e)](a[_0x2353b1(0x195)])[_0x2353b1(0x1d1)](this[_0x2353b1(0x1d0)],this[_0x2353b1(0x1ea)]);if(!_0x17b86c)throw Error(_0x2353b1(0x1c4)+this[_0x2353b1(0x1d0)]+_0x2353b1(0x192)+this['subUnitId']+_0x2353b1(0x1e3));let {transform:_0x594a87}=(0x0,a['convertPositionCellToSheetOverGrid'])(this[_0x2353b1(0x1d0)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x17b86c);this['x']=this['x']>0x0?this['x']:_0x594a87[_0x2353b1(0x1ca)],this['y']=this['y']>0x0?this['y']:_0x594a87['top'];}return this['width']=(_0x6ff243=this[_0x2353b1(0x1b1)])==null?n['DEFAULT_SHAPE_WIDTH']:_0x6ff243,this[_0x2353b1(0x1be)]=(_0x95792c=this[_0x2353b1(0x1be)])==null?n[_0x2353b1(0x151)]:_0x95792c,{'unitId':this[_0x2353b1(0x1d0)],'subUnitId':this[_0x2353b1(0x1ea)],'shapeId':this[_0x2353b1(0x177)],'shapeType':this['shapeType'],'shapeData':Object[_0x2353b1(0x172)](this[_0x2353b1(0x174)])[_0x2353b1(0x19b)]>0x0?this[_0x2353b1(0x174)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x2353b1(0x1be)]};}[_0x1813d6(0x1a7)](){const _0x39ac9d=_0x1813d6;return this[_0x39ac9d(0x177)];}[_0x1813d6(0x197)](){const _0x26d211=_0x1813d6;return this[_0x26d211(0x1cd)];}[_0x1813d6(0x169)](){const _0x54e330=_0x1813d6;return this[_0x54e330(0x174)];}[_0x1813d6(0x178)](){return{'x':this['x'],'y':this['y']};}[_0x1813d6(0x1d5)](){const _0xb088b=_0x1813d6;return{'width':this[_0xb088b(0x1b1)],'height':this[_0xb088b(0x1be)]};}},m=class extends p{constructor(_0x53a100,_0x73b03f,_0x3411ed,_0x43f88f){const _0x532dec=_0x1813d6;super(_0x53a100,_0x73b03f,_0x3411ed,_0x43f88f),f(this,_0x532dec(0x174),{});}[_0x1813d6(0x184)](_0x10871c){const _0x5ed4a2=_0x1813d6;if(!(0x0,e[_0x5ed4a2(0x1c2)])(_0x10871c))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x10871c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x5ed4a2(0x184)](_0x10871c),this;}[_0x1813d6(0x152)](_0x410598){const _0x4cbbc8=_0x1813d6;var _0x2f64b8,_0x4339fc;return(_0x2f64b8=this[_0x4cbbc8(0x174)])!=null&&_0x2f64b8['ln']||(this[_0x4cbbc8(0x174)]['ln']={}),!((_0x4339fc=this[_0x4cbbc8(0x174)])==null||(_0x4339fc=_0x4339fc['ln'])==null)&&_0x4339fc[_0x4cbbc8(0x1aa)]||(this[_0x4cbbc8(0x174)]['ln'][_0x4cbbc8(0x1aa)]={}),this[_0x4cbbc8(0x174)]['ln'][_0x4cbbc8(0x1aa)][_0x4cbbc8(0x1b6)]=_0x410598,this;}[_0x1813d6(0x15f)](_0xce7598){const _0x4cd92d=_0x1813d6;var _0x24538b,_0x116e82;return(_0x24538b=this[_0x4cd92d(0x174)])!=null&&_0x24538b['ln']||(this[_0x4cd92d(0x174)]['ln']={}),!((_0x116e82=this[_0x4cd92d(0x174)])==null||(_0x116e82=_0x116e82['ln'])==null)&&_0x116e82[_0x4cd92d(0x1bb)]||(this['shapeData']['ln']['endArrow']={}),this['shapeData']['ln']['endArrow'][_0x4cd92d(0x1b6)]=_0xce7598,this;}[_0x1813d6(0x175)](_0x376b2a){const _0x1347d6=_0x1813d6;var _0x5ebca6,_0x462a4e;return(_0x5ebca6=this['shapeData'])!=null&&_0x5ebca6['ln']||(this['shapeData']['ln']={}),!((_0x462a4e=this[_0x1347d6(0x174)])==null||(_0x462a4e=_0x462a4e['ln'])==null)&&_0x462a4e[_0x1347d6(0x1aa)]||(this[_0x1347d6(0x174)]['ln'][_0x1347d6(0x1aa)]={}),this[_0x1347d6(0x174)]['ln'][_0x1347d6(0x1aa)][_0x1347d6(0x1b2)]=_0x376b2a,this;}[_0x1813d6(0x170)](_0x4d359){const _0x549309=_0x1813d6;var _0x49d49d,_0x3e9133;return(_0x49d49d=this[_0x549309(0x174)])!=null&&_0x49d49d['ln']||(this[_0x549309(0x174)]['ln']={}),!((_0x3e9133=this[_0x549309(0x174)])==null||(_0x3e9133=_0x3e9133['ln'])==null)&&_0x3e9133['endArrow']||(this[_0x549309(0x174)]['ln'][_0x549309(0x1bb)]={}),this[_0x549309(0x174)]['ln']['endArrow'][_0x549309(0x1b2)]=_0x4d359,this;}[_0x1813d6(0x1a1)](){const _0x526e8b=_0x1813d6;return super[_0x526e8b(0x1a1)]();}[_0x1813d6(0x1e8)](){const _0x5e66e3=_0x1813d6;var _0x3d71af;return((_0x3d71af=this[_0x5e66e3(0x174)])==null||(_0x3d71af=_0x3d71af[_0x5e66e3(0x18f)])==null?void 0x0:_0x3d71af['to'])||null;}['getStartConnectInfo'](){const _0x2949f9=_0x1813d6;var _0x29c99d;return((_0x29c99d=this[_0x2949f9(0x174)])==null||(_0x29c99d=_0x29c99d['relation'])==null?void 0x0:_0x29c99d['from'])||null;}};function h(_0x39ee41,_0x40861a,_0x4cef17,_0x31d45c,_0x5127f9,_0x3b855d){const _0x44b09a=_0x1813d6;let _0x20daf1=_0x5127f9[_0x44b09a(0x1d3)](_0x39ee41,_0x40861a,_0x4cef17);if(!_0x20daf1)return null;let _0x3b3ed9=_0x3b855d['getDrawingByParam']({'unitId':_0x39ee41,'subUnitId':_0x40861a,'drawingId':_0x4cef17});if(!(_0x3b3ed9!=null&&_0x3b3ed9[_0x44b09a(0x154)]))return null;let {left:_0x4d14d4=0x0,top:_0x1b0bdc=0x0,width:_0x551cd8=0x0,height:_0x1564ff=0x0,flipX:_0x5adbb8=!0x1,flipY:_0x30f742=!0x1,angle:_0x3ef2c6}=_0x3b3ed9['transform'];_0x20daf1[_0x44b09a(0x1ad)]({'width':_0x551cd8,'height':_0x1564ff});let _0x53047b=_0x20daf1[_0x44b09a(0x186)]()[_0x44b09a(0x1ac)](_0x2a4602=>_0x2a4602[_0x44b09a(0x18b)]===_0x31d45c);if(!_0x53047b)return null;let _0x58175f=_0x5adbb8?_0x551cd8-_0x53047b['x']:_0x53047b['x'],_0x129ed5=_0x30f742?_0x1564ff-_0x53047b['y']:_0x53047b['y'];if(_0x3ef2c6&&_0x3ef2c6!==0x0){let _0x3d0806=_0x3ef2c6*Math['PI']/0xb4,_0xe2f4d1=Math[_0x44b09a(0x1d4)](_0x3d0806),_0x92c34e=Math[_0x44b09a(0x19c)](_0x3d0806),_0x22bdf9=_0x551cd8/0x2,_0xc1641d=_0x1564ff/0x2,_0x56308f=_0x58175f-_0x22bdf9,_0x29a892=_0x129ed5-_0xc1641d;_0x58175f=_0x22bdf9+_0x56308f*_0xe2f4d1-_0x29a892*_0x92c34e,_0x129ed5=_0xc1641d+_0x56308f*_0x92c34e+_0x29a892*_0xe2f4d1;}_0x58175f+=_0x4d14d4,_0x129ed5+=_0x1b0bdc;let _0x3b899f=_0x53047b[_0x44b09a(0x17e)]/0xea60;_0x5adbb8&&(_0x3b899f=0xb4-_0x3b899f),_0x30f742&&(_0x3b899f=-_0x3b899f),_0x3b899f+=_0x3ef2c6||0x0,_0x3b899f=(_0x3b899f%0x168+0x168)%0x168;let _0x152c7b=(0x0,e[_0x44b09a(0x1bf)])({'left':_0x4d14d4,'top':_0x1b0bdc,'width':_0x551cd8,'height':_0x1564ff},_0x3ef2c6||0x0);return{'point':{'x':_0x58175f,'y':_0x129ed5},'angle':_0x3b899f,'bounds':_0x152c7b};}function g(_0x3ed06e,_0x336be8){const _0x2402c7=_0x1813d6;let _0x161d90=_0x336be8['x']-_0x3ed06e['x'],_0x148963=_0x336be8['y']-_0x3ed06e['y'];return Math[_0x2402c7(0x160)](_0x161d90)>=Math[_0x2402c7(0x160)](_0x148963)?_0x161d90>=0x0?0xb4:0x0:_0x148963>=0x0?0x10e:0x5a;}function _(_0x525e96,_0x51b11e,_0x1c5055,_0x152963,_0x512913,_0x2c7f34,_0x581b69){const _0x5ea419=_0x1813d6;let _0x152ae6=_0x2c7f34['getShapeModel'](_0x525e96,_0x51b11e,_0x1c5055);if(!_0x152ae6)return null;let _0x6e4272=_0x581b69[_0x5ea419(0x1ce)]({'unitId':_0x525e96,'subUnitId':_0x51b11e,'drawingId':_0x1c5055});if(!(_0x6e4272!=null&&_0x6e4272[_0x5ea419(0x154)]))return null;let {left:_0x5019e1=0x0,top:_0x5ccf36=0x0,width:_0x5409af=0x0,height:_0x2a8919=0x0,flipX:_0x4b9b8c=!0x1,flipY:_0x4fc813=!0x1}=_0x6e4272['transform'];_0x152ae6[_0x5ea419(0x1ad)]({'width':_0x5409af,'height':_0x2a8919});let _0x367eb8=_0x152ae6[_0x5ea419(0x1c9)]();if(_0x367eb8[_0x5ea419(0x19b)]<0x2)return null;let _0x480d42=_0x152963?_0x367eb8[0x0]:_0x367eb8[_0x367eb8[_0x5ea419(0x19b)]-0x1],_0x4b3aa8=new e['ConnectorCoordinateTransform']({'left':_0x5019e1,'top':_0x5ccf36,'width':_0x5409af,'height':_0x2a8919,'flipX':_0x4b9b8c,'flipY':_0x4fc813})[_0x5ea419(0x1c7)](_0x480d42);return{'point':_0x4b3aa8,'angle':g(_0x512913[_0x5ea419(0x1ba)],_0x4b3aa8),'bounds':{'left':_0x4b3aa8['x'],'top':_0x4b3aa8['y'],'width':0x0,'height':0x0}};}var v=class extends s['FWorksheet']{async[_0x1813d6(0x18a)](_0x2ed62a){const _0x52510=_0x1813d6;let {unitId:_0x4e63d9,subUnitId:_0x478397,shapeId:_0x36edaa,shapeType:_0x1f67ac,shapeData:_0x19954a,x:_0x4d0cc9,y:_0x4a0348,width:_0x3d92d1,height:_0x216272}=_0x2ed62a;return this[_0x52510(0x15c)]['executeCommand'](n[_0x52510(0x1d9)]['id'],{'unitId':_0x4e63d9,'subUnitId':_0x478397,'shapeId':_0x36edaa,'shapeType':_0x1f67ac,'shapeData':_0x19954a,'position':{'x':_0x4d0cc9,'y':_0x4a0348},'width':_0x3d92d1,'height':_0x216272});}async[_0x1813d6(0x14e)](_0x42a1ee){const _0x113aab=_0x1813d6;let {unitId:_0x459163,subUnitId:_0x4e088e,shapeId:_0x71259f,shapeType:_0x2f158b,shapeData:_0x4400bc,x:_0xe4ca49,y:_0xf48ad9,width:_0x46546a,height:_0x3e7c21}=_0x42a1ee;return this['_commandService'][_0x113aab(0x162)](n['SetShapeDrawingDataCommand']['id'],{'unitId':_0x459163,'subUnitId':_0x4e088e,'shapeId':_0x71259f,'shapeType':_0x2f158b,'shapeData':_0x4400bc,'position':{'x':_0xe4ca49,'y':_0xf48ad9},'width':_0x46546a,'height':_0x3e7c21});}[_0x1813d6(0x158)](_0x23bded){const _0x384e97=_0x1813d6;let _0x4ff28b=this[_0x384e97(0x194)]()[_0x384e97(0x15e)](),_0x821cb7=this[_0x384e97(0x18e)]();if(_0x23bded){let _0x25ecda=new p(_0x4ff28b,_0x821cb7,_0x23bded['drawId'],this['_injector']);return this['_preloadShapeProperties'](_0x25ecda,_0x4ff28b,_0x821cb7,_0x23bded['drawId']),_0x25ecda;}return new p(_0x4ff28b,_0x821cb7,(0x0,r[_0x384e97(0x1d8)])(),this['_injector']);}['newConnector'](_0x59357c){const _0x2157ae=_0x1813d6;let _0x156628=this[_0x2157ae(0x194)]()[_0x2157ae(0x15e)](),_0x1f710f=this[_0x2157ae(0x18e)]();if(_0x59357c){let _0x3e3a18=new m(_0x156628,_0x1f710f,_0x59357c[_0x2157ae(0x177)],this['_injector']);return this[_0x2157ae(0x1e4)](_0x3e3a18,_0x156628,_0x1f710f,_0x59357c['drawId']),_0x3e3a18;}return new m(_0x156628,_0x1f710f,(0x0,r[_0x2157ae(0x1d8)])(),this['_injector']);}[_0x1813d6(0x1d2)](){const _0x482d9d=_0x1813d6;let _0x378b53=this[_0x482d9d(0x14f)][_0x482d9d(0x16e)](o['ISheetDrawingService']),_0x2eb9be=this[_0x482d9d(0x194)]()[_0x482d9d(0x15e)](),_0x657c47=this[_0x482d9d(0x18e)](),_0x402615=_0x378b53['getDrawingData'](_0x2eb9be,_0x657c47);if(!_0x402615)return[];let _0x5e4ef2=[];for(let [_0x20a41a,_0x1f2f9a]of Object[_0x482d9d(0x157)](_0x402615))if(_0x1f2f9a&&_0x1f2f9a[_0x482d9d(0x1b0)]===r['DrawingTypeEnum'][_0x482d9d(0x1a3)]){let _0x3e52c9=new p(_0x2eb9be,_0x657c47,_0x20a41a,this['_injector']);this[_0x482d9d(0x1e4)](_0x3e52c9,_0x2eb9be,_0x657c47,_0x20a41a),_0x5e4ef2[_0x482d9d(0x1c0)](_0x3e52c9);}return _0x5e4ef2;}[_0x1813d6(0x198)](_0x508862){const _0x362892=_0x1813d6;let {unitId:_0x2afed8,subUnitId:_0x6603f0,drawId:_0x203fb4}=_0x508862;return this[_0x362892(0x15c)][_0x362892(0x162)](o['RemoveSheetDrawingCommand']['id'],{'unitId':_0x2afed8,'drawings':[{'unitId':_0x2afed8,'subUnitId':_0x6603f0,'drawingId':_0x203fb4,'drawingType':r['DrawingTypeEnum'][_0x362892(0x1a3)]}]});}async[_0x1813d6(0x1d7)](_0x17fe6d){const _0x5720c9=_0x1813d6;let {connector:_0x4d627,startTarget:_0x13d7ba,endTarget:_0x4a8637}=_0x17fe6d;if(!_0x13d7ba&&!_0x4a8637)return!0x1;let _0x581a5c=this[_0x5720c9(0x194)]()['getUnitId'](),_0x5e5f89=this[_0x5720c9(0x18e)](),_0x13c816=this['_injector'][_0x5720c9(0x16e)](n[_0x5720c9(0x16d)]),_0x21eb4c=this[_0x5720c9(0x14f)][_0x5720c9(0x16e)](i[_0x5720c9(0x1dd)]),_0x43f83c=_0x13c816[_0x5720c9(0x1d3)](_0x581a5c,_0x5e5f89,_0x4d627[_0x5720c9(0x177)]);if(!_0x43f83c)return!0x1;let _0x47ab86=_0x43f83c[_0x5720c9(0x197)](),_0x570ad2=_0x43f83c[_0x5720c9(0x191)](),_0x3be2f6={};for(let _0x363488 of _0x43f83c[_0x5720c9(0x19f)]()){let _0x2ea20f=_0x43f83c[_0x5720c9(0x18d)](_0x363488);_0x2ea20f!==void 0x0&&(_0x3be2f6[_0x363488]=_0x2ea20f);}let {startInfo:_0x44de94,endInfo:_0x44db18}=this['_resolveEndpoints'](_0x581a5c,_0x5e5f89,_0x4d627,_0x43f83c,_0x13d7ba,_0x4a8637,_0x13c816,_0x21eb4c,_0x570ad2);if(!_0x44de94||!_0x44db18)return!0x1;let _0x266eff=(0x0,e[_0x5720c9(0x1cc)])((0x0,e[_0x5720c9(0x1c8)])(_0x44de94,_0x44db18,_0x47ab86),_0x47ab86),_0x191018={};return _0x13d7ba?_0x191018['from']={'shapeId':_0x13d7ba['shape'][_0x5720c9(0x177)],'cxnIndex':_0x13d7ba[_0x5720c9(0x1e7)]}:_0x570ad2!=null&&_0x570ad2['from']&&(_0x191018[_0x5720c9(0x1bd)]=_0x570ad2[_0x5720c9(0x1bd)]),_0x4a8637?_0x191018['to']={'shapeId':_0x4a8637['shape'][_0x5720c9(0x177)],'cxnIndex':_0x4a8637[_0x5720c9(0x1e7)]}:_0x570ad2!=null&&_0x570ad2['to']&&(_0x191018['to']=_0x570ad2['to']),this[_0x5720c9(0x15c)][_0x5720c9(0x162)](n[_0x5720c9(0x1a6)]['id'],{'unitId':_0x581a5c,'subUnitId':_0x5e5f89,'connectorShapeId':_0x4d627[_0x5720c9(0x177)],'width':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1b1)],'height':_0x266eff['worldRect'][_0x5720c9(0x1be)],'left':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1ca)],'top':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x17c)],'flipX':_0x266eff['worldRect'][_0x5720c9(0x1dc)]||!0x1,'flipY':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1c3)]||!0x1,'oldAdjustValues':_0x3be2f6,'newAdjustValues':_0x266eff[_0x5720c9(0x1d6)],'newLineType':_0x266eff[_0x5720c9(0x185)],'oldLineType':_0x47ab86,'rotation':_0x266eff[_0x5720c9(0x19a)],'oldRelation':_0x570ad2,'newRelation':_0x191018});}[_0x1813d6(0x1e4)](_0x5696c0,_0x8b26e0,_0x5e661a,_0x5c23a9){const _0x3c1bcb=_0x1813d6;let _0x111d47=this[_0x3c1bcb(0x14f)][_0x3c1bcb(0x16e)](i[_0x3c1bcb(0x1dd)])[_0x3c1bcb(0x1ce)]({'unitId':_0x8b26e0,'subUnitId':_0x5e661a,'drawingId':_0x5c23a9});if(_0x111d47!=null&&_0x111d47[_0x3c1bcb(0x154)]){var _0x497d41,_0xaa0b4f,_0x33b5ea,_0x287c27;_0x5696c0['x']=(_0x497d41=_0x111d47['transform'][_0x3c1bcb(0x1ca)])==null?0x0:_0x497d41,_0x5696c0['y']=(_0xaa0b4f=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x17c)])==null?0x0:_0xaa0b4f,_0x5696c0[_0x3c1bcb(0x1b1)]=(_0x33b5ea=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x1b1)])==null?_0x5696c0[_0x3c1bcb(0x1b1)]:_0x33b5ea,_0x5696c0[_0x3c1bcb(0x1be)]=(_0x287c27=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x1be)])==null?_0x5696c0['height']:_0x287c27;}let _0x13e6b5=this[_0x3c1bcb(0x14f)][_0x3c1bcb(0x16e)](n[_0x3c1bcb(0x16d)])[_0x3c1bcb(0x1d3)](_0x8b26e0,_0x5e661a,_0x5c23a9);if(_0x13e6b5){_0x5696c0[_0x3c1bcb(0x1cd)]=_0x13e6b5[_0x3c1bcb(0x197)]();let _0x2edd88=_0x13e6b5['getShapeData']();_0x2edd88&&(_0x5696c0[_0x3c1bcb(0x174)]=JSON['parse'](JSON[_0x3c1bcb(0x1a9)](_0x2edd88)));}}[_0x1813d6(0x163)](_0x225c0f,_0x505f00,_0x1365b7,_0x54470f,_0x3a3a77,_0x381f40,_0x485e8,_0x29a3f8,_0x250e13){const _0x32fd05=_0x1813d6;let _0x541a3c=null,_0xf74b8e=null;return _0x3a3a77&&(_0x541a3c=h(_0x225c0f,_0x505f00,_0x3a3a77[_0x32fd05(0x14d)]['drawId'],_0x3a3a77['connectionSiteIndex'],_0x485e8,_0x29a3f8)),_0x381f40&&(_0xf74b8e=h(_0x225c0f,_0x505f00,_0x381f40[_0x32fd05(0x14d)][_0x32fd05(0x177)],_0x381f40[_0x32fd05(0x1e7)],_0x485e8,_0x29a3f8)),_0x541a3c||(_0x541a3c=this['_resolveExistingOrFreeEndpoint'](_0x225c0f,_0x505f00,_0x1365b7[_0x32fd05(0x177)],!0x0,_0xf74b8e,_0x250e13==null?void 0x0:_0x250e13[_0x32fd05(0x1bd)],_0x485e8,_0x29a3f8)),_0xf74b8e||(_0xf74b8e=this[_0x32fd05(0x1b9)](_0x225c0f,_0x505f00,_0x1365b7[_0x32fd05(0x177)],!0x1,_0x541a3c,_0x250e13==null?void 0x0:_0x250e13['to'],_0x485e8,_0x29a3f8)),{'startInfo':_0x541a3c,'endInfo':_0xf74b8e};}[_0x1813d6(0x1b9)](_0xea0db8,_0x1ff005,_0x5cd2fa,_0x20bc32,_0x2b1264,_0x2135c7,_0x5f3984,_0x4f49da){if(_0x2135c7){let _0x41e3d9=h(_0xea0db8,_0x1ff005,_0x2135c7['shapeId'],_0x2135c7['cxnIndex'],_0x5f3984,_0x4f49da);if(_0x41e3d9)return _0x41e3d9;}return _0x2b1264?_(_0xea0db8,_0x1ff005,_0x5cd2fa,_0x20bc32,_0x2b1264,_0x5f3984,_0x4f49da):null;}};s[_0x1813d6(0x15b)][_0x1813d6(0x16f)](v),exports[_0x1813d6(0x1df)]=m,exports[_0x1813d6(0x1b8)]=p;function _0x5281(){const _0xf8bea6=['object','prototype','getShapeData','ShapeArrowTypeEnum','isLineShape','15qYOWUo','SheetsShapeService','get','extend','setEndArrowSize','getAdjustPoints','keys','Module','shapeData','setStartArrowSize','ShapeLineCapEnum','drawId','getPosition','getDrawingPoints','toPrimitive','ShapeTypeEnum','top','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ang','ShapeLineJoinEnum','setNoneFill','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','fillType','worldRect','setShapeType','lineType','getConnectionSiteList','defineProperty','string','ShapeFillEnum','insertShape','index','function','getAdjustValueByName','getSheetId','relation','7356177KbyuXm','getShapeRelation','\x20and\x20subUnitId\x20','stroke','getWorkbook','SheetSkeletonService','setStrokeLineType','getShapeType','removeShape','iterator','rotation','length','sin','convertPositionCellToSheetOverGrid','GradientFill','getAdjustNames','92382kfRaDi','build','capType','DRAWING_SHAPE','ShapeLineDashEnum','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','UpdateConnectorRelationCommand','getShapeId','8sVLUBR','stringify','startArrow','14669237uSODYn','find','updateContext','setPosition','ShapeGradientTypeEnum','drawingType','width','size','setHeight','8535CZaxUd','gradientStops','type','opacity','FShape','_resolveExistingOrFreeEndpoint','point','endArrow','NoFill','from','height','getBasicShapeRotateBound','push','FEnum','isConnectorShape','flipY','Skeleton\x20for\x20unitId\x20','default','DEFAULT_SHAPE_WIDTH','localToWorld','routeConnectorLineShape','getConnectorLinePoints','left','getStartConnectInfo','computeConnectorRouteLayout','shapeType','getDrawingByParam','setShapeData','unitId','ensureSkeleton','getShapes','getShapeModel','cos','getSize','adjustValues','connectShapes','generateRandomId','InsertShapeCommand','fill','108nagUxo','flipX','IDrawingManagerService','setStrokeLineDashType','FConnectorShape','setShapeSolidFill','setWidth','ShapeArrowSizeEnum','\x20not\x20found','_preloadShapeProperties','904662iRQmbw','constructor','connectionSiteIndex','getEndConnectInfo','10pOshzf','subUnitId','shape','updateShape','_injector','2554384pMtCdh','DEFAULT_SHAPE_HEIGHT','setStartArrowType','setStrokeWidth','transform','setShapeGradientFill','lineJoinType','entries','newShape','setStrokeOpacity','symbol','FWorksheet','_commandService','gradientType','getUnitId','setEndArrowType','abs','684161wDNNXa','executeCommand','_resolveEndpoints','lineStrokeType','color','SolidFill'];_0x5281=function(){return _0xf8bea6;};return _0x5281();}
|
|
1
|
+
const _0x4edaef=_0x4b1f;(function(_0x1f3f98,_0xd34326){const _0x3045bd=_0x4b1f,_0x6511e7=_0x1f3f98();while(!![]){try{const _0x4fca52=parseInt(_0x3045bd(0x1bc))/0x1*(-parseInt(_0x3045bd(0x140))/0x2)+-parseInt(_0x3045bd(0x190))/0x3+-parseInt(_0x3045bd(0x1a9))/0x4*(-parseInt(_0x3045bd(0x1d3))/0x5)+-parseInt(_0x3045bd(0x198))/0x6+parseInt(_0x3045bd(0x19d))/0x7+-parseInt(_0x3045bd(0x1cf))/0x8*(parseInt(_0x3045bd(0x148))/0x9)+parseInt(_0x3045bd(0x18d))/0xa*(parseInt(_0x3045bd(0x1c2))/0xb);if(_0x4fca52===_0xd34326)break;else _0x6511e7['push'](_0x6511e7['shift']());}catch(_0x47687e){_0x6511e7['push'](_0x6511e7['shift']());}}}(_0x178a,0x3cb49),Object['defineProperty'](exports,Symbol[_0x4edaef(0x160)],{'value':_0x4edaef(0x1c8)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs-pro/sheets-shape'),r=require('@univerjs/core'),i=require('@univerjs/drawing'),a=require('@univerjs/sheets'),o=require('@univerjs/sheets-drawing'),s=require('@univerjs/sheets/facade');var c=class extends t[_0x4edaef(0x19a)]{get[_0x4edaef(0x142)](){const _0xb312e1=_0x4edaef;return e[_0xb312e1(0x142)];}get[_0x4edaef(0x1c1)](){const _0x50f645=_0x4edaef;return e[_0x50f645(0x1c1)];}get[_0x4edaef(0x1b9)](){return e['ShapeGradientTypeEnum'];}get[_0x4edaef(0x192)](){const _0x328dd3=_0x4edaef;return e[_0x328dd3(0x192)];}get[_0x4edaef(0x1bb)](){const _0x1c1285=_0x4edaef;return e[_0x1c1285(0x1bb)];}get[_0x4edaef(0x18a)](){const _0x44eec7=_0x4edaef;return e[_0x44eec7(0x18a)];}get[_0x4edaef(0x172)](){const _0x4633b8=_0x4edaef;return e[_0x4633b8(0x172)];}get[_0x4edaef(0x168)](){const _0x2cf4ea=_0x4edaef;return e[_0x2cf4ea(0x168)];}get[_0x4edaef(0x19e)](){const _0x3c8f0b=_0x4edaef;return e[_0x3c8f0b(0x19e)];}};t[_0x4edaef(0x19a)][_0x4edaef(0x17f)](c);function l(_0x5ca9a9){'@babel/helpers - typeof';const _0xaf4ea8=_0x4edaef;return l=typeof Symbol==_0xaf4ea8(0x1ac)&&typeof Symbol[_0xaf4ea8(0x18b)]==_0xaf4ea8(0x1c5)?function(_0x4d1a45){return typeof _0x4d1a45;}:function(_0x3eab8d){const _0x2aeca9=_0xaf4ea8;return _0x3eab8d&&typeof Symbol=='function'&&_0x3eab8d[_0x2aeca9(0x1a4)]===Symbol&&_0x3eab8d!==Symbol[_0x2aeca9(0x177)]?_0x2aeca9(0x1c5):typeof _0x3eab8d;},l(_0x5ca9a9);}function u(_0x29b56f,_0x26d2aa){const _0xa7b275=_0x4edaef;if(l(_0x29b56f)!=_0xa7b275(0x146)||!_0x29b56f)return _0x29b56f;var _0x124716=_0x29b56f[Symbol['toPrimitive']];if(_0x124716!==void 0x0){var _0x3ac0a0=_0x124716[_0xa7b275(0x191)](_0x29b56f,_0x26d2aa||'default');if(l(_0x3ac0a0)!='object')return _0x3ac0a0;throw TypeError(_0xa7b275(0x185));}return(_0x26d2aa==='string'?String:Number)(_0x29b56f);}function d(_0xabded){const _0x4b48c5=_0x4edaef;var _0x3605ac=u(_0xabded,_0x4b48c5(0x162));return l(_0x3605ac)=='symbol'?_0x3605ac:_0x3605ac+'';}function f(_0x561093,_0x26c228,_0x505fde){const _0x4dc4b3=_0x4edaef;return(_0x26c228=d(_0x26c228))in _0x561093?Object[_0x4dc4b3(0x1c4)](_0x561093,_0x26c228,{'value':_0x505fde,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x561093[_0x26c228]=_0x505fde,_0x561093;}function _0x178a(){const _0x3bf7e7=['ShapeFillEnum','627SiMnjF','startArrow','defineProperty','symbol','_resolveExistingOrFreeEndpoint','RemoveSheetDrawingCommand','Module','NoFill','executeCommand','setShapeType','FConnectorShape','flipY','localToWorld','176isXZKS','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','subUnitId','getWorkbook','35KRaQsU','gradientAngle','setAbsolutePosition','connectShapes','getEndConnectInfo','adjustValues','setStrokeWidth','setStrokeColor','858770dNHdPP','SetShapeDrawingDataCommand','ShapeTypeEnum','setHeight','Skeleton\x20for\x20unitId\x20','getShapeType','object','setNoneFill','119457LLNXds','getSheetId','setShapeData','setStrokeLineType','drawId','gradientType','convertPositionCellToSheetOverGrid','_commandService','ensureSkeleton','setStartArrowType','getConnectionSiteList','flipX','SheetsShapeService','InsertShapeCommand','shapeData','setStrokeLineJoinType','lineStrokeType','SheetSkeletonService','ConnectorCoordinateTransform','insertShape','getDrawingPoints','computeConnectorRouteLayout','newShape','shapeType','toStringTag','ang','string','DEFAULT_SHAPE_HEIGHT','_injector','parse','lineType','color','ShapeArrowTypeEnum','\x20not\x20found','get','stroke','build','drawingType','unitId','SolidFill','GradientFill','_preloadShapeProperties','ShapeLineJoinEnum','FWorksheet','keys','left','shape','prototype','updateContext','find','setEndArrowSize','ISheetDrawingService','UpdateConnectorRelationCommand','endArrow','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend','width','_resolveEndpoints','setStartArrowSize','abs','setStrokeLineCapType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','getShapeId','DRAWING_SHAPE','type','ShapeLineCapEnum','iterator','getAdjustValueByName','118280ftNHXx','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','generateRandomId','410520npisLs','call','ShapeLineTypeEnum','sin','getPosition','getBasicShapeRotateBound','rotation','stringify','297684PQvEiJ','removeShape','FEnum','getDrawingData','transform','3079979MtDEcA','ShapeArrowSizeEnum','height','setWidth','dashType','gradientStops','routeConnectorLineShape','constructor','getAdjustPoints','relation','from','top','24172gjIkCL','getConnectorLinePoints','getShapeModel','function','getDrawingByParam','getShapes','size','getStartConnectInfo','\x20and\x20subUnitId\x20','getShapeData','opacity','lineJoinType','IDrawingManagerService','index','point','isConnectorShape','ShapeGradientTypeEnum','DEFAULT_SHAPE_WIDTH','ShapeLineDashEnum','1UYItyP','DrawingTypeEnum','getUnitId','fill','worldRect'];_0x178a=function(){return _0x3bf7e7;};return _0x178a();}var p=class{constructor(_0x5462c8,_0x57c4a9,_0x144701,_0x24ea08){const _0x283303=_0x4edaef;f(this,_0x283303(0x16e),void 0x0),f(this,_0x283303(0x1d1),void 0x0),f(this,_0x283303(0x14c),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x283303(0x180),n[_0x283303(0x1ba)]),f(this,'height',n['DEFAULT_SHAPE_HEIGHT']),f(this,_0x283303(0x15f),void 0x0),f(this,_0x283303(0x156),{}),f(this,'_injector',void 0x0),this[_0x283303(0x16e)]=_0x5462c8,this[_0x283303(0x1d1)]=_0x57c4a9,this['drawId']=_0x144701||(0x0,r['generateRandomId'])(),this[_0x283303(0x164)]=_0x24ea08;}['setPosition'](_0x4746a6,_0x3b27ad,_0x5e6bc1,_0x10a51f){const _0xa5f1b=_0x4edaef;let _0x52874a=this[_0xa5f1b(0x164)][_0xa5f1b(0x16a)](a[_0xa5f1b(0x159)])['ensureSkeleton'](this[_0xa5f1b(0x16e)],this['subUnitId']);if(!_0x52874a)throw Error(_0xa5f1b(0x144)+this[_0xa5f1b(0x16e)]+'\x20and\x20subUnitId\x20'+this[_0xa5f1b(0x1d1)]+_0xa5f1b(0x169));let {transform:_0x91576c}=(0x0,a['convertPositionCellToSheetOverGrid'])(this['unitId'],this[_0xa5f1b(0x1d1)],{'row':_0x4746a6,'column':_0x3b27ad,'rowOffset':_0x5e6bc1,'columnOffset':_0x10a51f},0x1,0x1,_0x52874a);return this['x']=_0x91576c[_0xa5f1b(0x175)],this['y']=_0x91576c[_0xa5f1b(0x1a8)],this;}[_0x4edaef(0x1d5)](_0x5d8adc,_0x6d7478){return this['x']=_0x5d8adc,this['y']=_0x6d7478,this;}['setShapeType'](_0x3a1b4e){const _0x1b2004=_0x4edaef;return this[_0x1b2004(0x15f)]=_0x3a1b4e,this;}[_0x4edaef(0x14a)](_0x1107b7){const _0xb93061=_0x4edaef;return _0x1107b7['shapeType']&&this[_0xb93061(0x1cb)](_0x1107b7['shapeType']),this[_0xb93061(0x156)]={..._0x1107b7},this;}['setShapeSolidFill'](_0x346b93,_0x319c3b){const _0x25d3e6=_0x4edaef;return this[_0x25d3e6(0x156)][_0x25d3e6(0x1bf)]||(this[_0x25d3e6(0x156)][_0x25d3e6(0x1bf)]={}),this[_0x25d3e6(0x156)][_0x25d3e6(0x1bf)]['fillType']=e[_0x25d3e6(0x1c1)][_0x25d3e6(0x16f)],_0x346b93!==void 0x0&&(this[_0x25d3e6(0x156)]['fill'][_0x25d3e6(0x167)]=_0x346b93),_0x319c3b!==void 0x0&&(this['shapeData'][_0x25d3e6(0x1bf)]['opacity']=_0x319c3b),this;}['setShapeGradientFill'](_0x10cfcd,_0x57a74a,_0x2affc1){const _0x2c80d1=_0x4edaef;if(_0x57a74a===void 0x0||_0x57a74a['length']===0x0)throw Error(_0x2c80d1(0x18e));return this['shapeData']['fill']||(this[_0x2c80d1(0x156)]['fill']={}),this[_0x2c80d1(0x156)][_0x2c80d1(0x1bf)][_0x2c80d1(0x1a2)]=_0x57a74a,this[_0x2c80d1(0x156)][_0x2c80d1(0x1bf)]['fillType']=e[_0x2c80d1(0x1c1)][_0x2c80d1(0x170)],this[_0x2c80d1(0x156)][_0x2c80d1(0x1bf)][_0x2c80d1(0x14d)]=_0x10cfcd,_0x2affc1!==void 0x0&&(this[_0x2c80d1(0x156)][_0x2c80d1(0x1bf)][_0x2c80d1(0x1d4)]=_0x2affc1),this;}[_0x4edaef(0x147)](){const _0x270890=_0x4edaef;return this[_0x270890(0x156)][_0x270890(0x1bf)]={'fillType':e['ShapeFillEnum'][_0x270890(0x1c9)]},this;}[_0x4edaef(0x13f)](_0x57e513){const _0xfc2b8f=_0x4edaef;return this['shapeData']['stroke']||(this[_0xfc2b8f(0x156)][_0xfc2b8f(0x16b)]={}),this[_0xfc2b8f(0x156)]['stroke'][_0xfc2b8f(0x167)]=_0x57e513,this;}[_0x4edaef(0x13e)](_0x242507){const _0x53b7b6=_0x4edaef;return this[_0x53b7b6(0x156)][_0x53b7b6(0x16b)]||(this[_0x53b7b6(0x156)][_0x53b7b6(0x16b)]={}),this[_0x53b7b6(0x156)]['stroke'][_0x53b7b6(0x180)]=_0x242507,this;}['setStrokeLineDashType'](_0x1c3c9a){const _0x54230f=_0x4edaef;return this[_0x54230f(0x156)][_0x54230f(0x16b)]||(this['shapeData'][_0x54230f(0x16b)]={}),this['shapeData'][_0x54230f(0x16b)][_0x54230f(0x1a1)]=_0x1c3c9a,this;}[_0x4edaef(0x157)](_0x3d1e5e){const _0x1445d8=_0x4edaef;return this[_0x1445d8(0x156)]['stroke']||(this[_0x1445d8(0x156)][_0x1445d8(0x16b)]={}),this[_0x1445d8(0x156)][_0x1445d8(0x16b)][_0x1445d8(0x1b4)]=_0x3d1e5e,this;}[_0x4edaef(0x184)](_0x3d8541){const _0x53eea0=_0x4edaef;return this[_0x53eea0(0x156)]['stroke']||(this['shapeData'][_0x53eea0(0x16b)]={}),this['shapeData'][_0x53eea0(0x16b)]['capType']=_0x3d8541,this;}['setStrokeOpacity'](_0x224442){const _0xc2daf4=_0x4edaef;return this[_0xc2daf4(0x156)][_0xc2daf4(0x16b)]||(this[_0xc2daf4(0x156)]['stroke']={}),this[_0xc2daf4(0x156)][_0xc2daf4(0x16b)][_0xc2daf4(0x1b3)]=_0x224442,this;}[_0x4edaef(0x14b)](_0x35fd00){const _0x73b78a=_0x4edaef;return this[_0x73b78a(0x156)][_0x73b78a(0x16b)]||(this[_0x73b78a(0x156)][_0x73b78a(0x16b)]={}),this[_0x73b78a(0x156)][_0x73b78a(0x16b)][_0x73b78a(0x158)]=_0x35fd00,this;}[_0x4edaef(0x1a0)](_0x243ec6){const _0x5c6a61=_0x4edaef;return this[_0x5c6a61(0x180)]=_0x243ec6,this;}[_0x4edaef(0x143)](_0x210d5c){const _0x12eb76=_0x4edaef;return this[_0x12eb76(0x19f)]=_0x210d5c,this;}['isLineShape'](){const _0x2aaf4b=_0x4edaef;let _0x50ef05=this[_0x2aaf4b(0x164)]['get'](n[_0x2aaf4b(0x154)])['getShapeModel'](this[_0x2aaf4b(0x16e)],this['subUnitId'],this['drawId']);return _0x50ef05?(0x0,e['isConnectorShape'])(_0x50ef05['getShapeType']()):this[_0x2aaf4b(0x15f)]?(0x0,e['isConnectorShape'])(this[_0x2aaf4b(0x15f)]):!0x1;}['getConnectionSites'](){const _0x2b03f9=_0x4edaef;let _0x11ff93=this[_0x2b03f9(0x164)][_0x2b03f9(0x16a)](n['SheetsShapeService'])[_0x2b03f9(0x1ab)](this['unitId'],this[_0x2b03f9(0x1d1)],this['drawId']);if(!_0x11ff93)return[];let _0x3efb85=this[_0x2b03f9(0x164)][_0x2b03f9(0x16a)](i['IDrawingManagerService'])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x2b03f9(0x1d1)],'drawingId':this[_0x2b03f9(0x14c)]});if(!(_0x3efb85!=null&&_0x3efb85['transform']))return[];let {width:_0x26abfc=0x0,height:_0x4ecfe9=0x0}=_0x3efb85[_0x2b03f9(0x19c)];return _0x11ff93[_0x2b03f9(0x178)]({'width':_0x26abfc,'height':_0x4ecfe9}),_0x11ff93[_0x2b03f9(0x152)]();}[_0x4edaef(0x1a5)](){const _0x153af6=_0x4edaef;let _0x54e4bd=this[_0x153af6(0x164)][_0x153af6(0x16a)](n[_0x153af6(0x154)])[_0x153af6(0x1ab)](this[_0x153af6(0x16e)],this[_0x153af6(0x1d1)],this[_0x153af6(0x14c)]);if(!_0x54e4bd)return[];let _0x45a841=this['_injector'][_0x153af6(0x16a)](i[_0x153af6(0x1b5)])[_0x153af6(0x1ad)]({'unitId':this[_0x153af6(0x16e)],'subUnitId':this[_0x153af6(0x1d1)],'drawingId':this[_0x153af6(0x14c)]});if(!(_0x45a841!=null&&_0x45a841[_0x153af6(0x19c)]))return[];let {width:_0x2f6546=0x0,height:_0x7f066a=0x0}=_0x45a841['transform'];return _0x54e4bd[_0x153af6(0x178)]({'width':_0x2f6546,'height':_0x7f066a}),_0x54e4bd[_0x153af6(0x15c)]();}[_0x4edaef(0x1aa)](){const _0x3fc1e9=_0x4edaef;let _0x5e7fed=this[_0x3fc1e9(0x164)][_0x3fc1e9(0x16a)](n['SheetsShapeService'])[_0x3fc1e9(0x1ab)](this['unitId'],this[_0x3fc1e9(0x1d1)],this['drawId']);if(!_0x5e7fed||!(0x0,e[_0x3fc1e9(0x1b8)])(_0x5e7fed['getShapeType']()))return[];let _0x449593=this[_0x3fc1e9(0x164)][_0x3fc1e9(0x16a)](i[_0x3fc1e9(0x1b5)])[_0x3fc1e9(0x1ad)]({'unitId':this[_0x3fc1e9(0x16e)],'subUnitId':this[_0x3fc1e9(0x1d1)],'drawingId':this[_0x3fc1e9(0x14c)]});if(!(_0x449593!=null&&_0x449593[_0x3fc1e9(0x19c)]))return[];let {width:_0xf124fe=0x0,height:_0x43a74a=0x0}=_0x449593[_0x3fc1e9(0x19c)];return _0x5e7fed[_0x3fc1e9(0x178)]({'width':_0xf124fe,'height':_0x43a74a}),_0x5e7fed[_0x3fc1e9(0x1aa)]();}[_0x4edaef(0x1b0)](){const _0x103233=_0x4edaef;var _0x15f48b;let _0x58da5b=this[_0x103233(0x164)][_0x103233(0x16a)](n[_0x103233(0x154)])[_0x103233(0x1ab)](this[_0x103233(0x16e)],this[_0x103233(0x1d1)],this[_0x103233(0x14c)]);return _0x58da5b?(_0x15f48b=_0x58da5b[_0x103233(0x1b0)]())==null?null:_0x15f48b:null;}[_0x4edaef(0x13c)](){const _0x241a8c=_0x4edaef;var _0x75cc3e;let _0x1c0473=this[_0x241a8c(0x164)]['get'](n['SheetsShapeService'])[_0x241a8c(0x1ab)](this[_0x241a8c(0x16e)],this[_0x241a8c(0x1d1)],this[_0x241a8c(0x14c)]);return _0x1c0473?(_0x75cc3e=_0x1c0473[_0x241a8c(0x13c)]())==null?null:_0x75cc3e:null;}[_0x4edaef(0x16c)](){const _0x4fa537=_0x4edaef;var _0x296c88,_0x2d023e;if(!this['shapeType'])throw Error(_0x4fa537(0x17e));if(this['x']===0x0||this['y']===0x0){let _0x1794c3=this['_injector'][_0x4fa537(0x16a)](a['SheetSkeletonService'])[_0x4fa537(0x150)](this['unitId'],this[_0x4fa537(0x1d1)]);if(!_0x1794c3)throw Error(_0x4fa537(0x144)+this['unitId']+_0x4fa537(0x1b1)+this[_0x4fa537(0x1d1)]+_0x4fa537(0x169));let {transform:_0x484b1a}=(0x0,a[_0x4fa537(0x14e)])(this[_0x4fa537(0x16e)],this[_0x4fa537(0x1d1)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x1794c3);this['x']=this['x']>0x0?this['x']:_0x484b1a[_0x4fa537(0x175)],this['y']=this['y']>0x0?this['y']:_0x484b1a[_0x4fa537(0x1a8)];}return this[_0x4fa537(0x180)]=(_0x296c88=this[_0x4fa537(0x180)])==null?n['DEFAULT_SHAPE_WIDTH']:_0x296c88,this[_0x4fa537(0x19f)]=(_0x2d023e=this[_0x4fa537(0x19f)])==null?n[_0x4fa537(0x163)]:_0x2d023e,{'unitId':this[_0x4fa537(0x16e)],'subUnitId':this[_0x4fa537(0x1d1)],'shapeId':this['drawId'],'shapeType':this[_0x4fa537(0x15f)],'shapeData':Object[_0x4fa537(0x174)](this[_0x4fa537(0x156)])[_0x4fa537(0x186)]>0x0?this[_0x4fa537(0x156)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x4fa537(0x180)],'height':this[_0x4fa537(0x19f)]};}[_0x4edaef(0x187)](){const _0x57ad5f=_0x4edaef;return this[_0x57ad5f(0x14c)];}[_0x4edaef(0x145)](){const _0xcdb5a8=_0x4edaef;return this[_0xcdb5a8(0x15f)];}[_0x4edaef(0x1b2)](){const _0x59a37e=_0x4edaef;return this[_0x59a37e(0x156)];}[_0x4edaef(0x194)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x4cf988=_0x4edaef;return{'width':this[_0x4cf988(0x180)],'height':this[_0x4cf988(0x19f)]};}},m=class extends p{constructor(_0x1a8ed1,_0x476ec3,_0x49623b,_0xba9842){const _0x3e7e51=_0x4edaef;super(_0x1a8ed1,_0x476ec3,_0x49623b,_0xba9842),f(this,_0x3e7e51(0x156),{});}[_0x4edaef(0x1cb)](_0x5c3169){const _0x6f5346=_0x4edaef;if(!(0x0,e[_0x6f5346(0x1b8)])(_0x5c3169))throw Error(_0x6f5346(0x1d0)+_0x5c3169+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x5c3169),this;}[_0x4edaef(0x151)](_0x44925f){const _0x1823e0=_0x4edaef;var _0x37c765,_0x2c97e1;return(_0x37c765=this[_0x1823e0(0x156)])!=null&&_0x37c765['ln']||(this['shapeData']['ln']={}),!((_0x2c97e1=this[_0x1823e0(0x156)])==null||(_0x2c97e1=_0x2c97e1['ln'])==null)&&_0x2c97e1['startArrow']||(this[_0x1823e0(0x156)]['ln'][_0x1823e0(0x1c3)]={}),this['shapeData']['ln'][_0x1823e0(0x1c3)][_0x1823e0(0x189)]=_0x44925f,this;}['setEndArrowType'](_0x46c334){const _0x2ec524=_0x4edaef;var _0x5525ac,_0x15f166;return(_0x5525ac=this[_0x2ec524(0x156)])!=null&&_0x5525ac['ln']||(this[_0x2ec524(0x156)]['ln']={}),!((_0x15f166=this[_0x2ec524(0x156)])==null||(_0x15f166=_0x15f166['ln'])==null)&&_0x15f166[_0x2ec524(0x17d)]||(this['shapeData']['ln']['endArrow']={}),this['shapeData']['ln'][_0x2ec524(0x17d)][_0x2ec524(0x189)]=_0x46c334,this;}[_0x4edaef(0x182)](_0x3484c7){const _0x429181=_0x4edaef;var _0x58faf1,_0xbb52f;return(_0x58faf1=this[_0x429181(0x156)])!=null&&_0x58faf1['ln']||(this[_0x429181(0x156)]['ln']={}),!((_0xbb52f=this[_0x429181(0x156)])==null||(_0xbb52f=_0xbb52f['ln'])==null)&&_0xbb52f[_0x429181(0x1c3)]||(this[_0x429181(0x156)]['ln'][_0x429181(0x1c3)]={}),this['shapeData']['ln'][_0x429181(0x1c3)][_0x429181(0x1af)]=_0x3484c7,this;}[_0x4edaef(0x17a)](_0x5d75f5){const _0x105d82=_0x4edaef;var _0x41c98e,_0x190459;return(_0x41c98e=this[_0x105d82(0x156)])!=null&&_0x41c98e['ln']||(this['shapeData']['ln']={}),!((_0x190459=this[_0x105d82(0x156)])==null||(_0x190459=_0x190459['ln'])==null)&&_0x190459[_0x105d82(0x17d)]||(this['shapeData']['ln']['endArrow']={}),this[_0x105d82(0x156)]['ln'][_0x105d82(0x17d)]['size']=_0x5d75f5,this;}[_0x4edaef(0x16c)](){const _0x3b8592=_0x4edaef;return super[_0x3b8592(0x16c)]();}[_0x4edaef(0x13c)](){const _0x43f5e2=_0x4edaef;var _0x2a32f7;return((_0x2a32f7=this[_0x43f5e2(0x156)])==null||(_0x2a32f7=_0x2a32f7[_0x43f5e2(0x1a6)])==null?void 0x0:_0x2a32f7['to'])||null;}[_0x4edaef(0x1b0)](){const _0x16fce2=_0x4edaef;var _0x41d985;return((_0x41d985=this[_0x16fce2(0x156)])==null||(_0x41d985=_0x41d985[_0x16fce2(0x1a6)])==null?void 0x0:_0x41d985[_0x16fce2(0x1a7)])||null;}};function h(_0x1ced89,_0xcf376a,_0x199405,_0x4f2b50,_0x54d4af,_0x42aeb2){const _0xff841f=_0x4edaef;let _0x10c403=_0x54d4af[_0xff841f(0x1ab)](_0x1ced89,_0xcf376a,_0x199405);if(!_0x10c403)return null;let _0x343620=_0x42aeb2[_0xff841f(0x1ad)]({'unitId':_0x1ced89,'subUnitId':_0xcf376a,'drawingId':_0x199405});if(!(_0x343620!=null&&_0x343620[_0xff841f(0x19c)]))return null;let {left:_0x5db6c2=0x0,top:_0x4aad80=0x0,width:_0x3ae9e7=0x0,height:_0x1ef5c5=0x0,flipX:_0x35b1c5=!0x1,flipY:_0x5075d0=!0x1,angle:_0xc03ea7}=_0x343620['transform'];_0x10c403[_0xff841f(0x178)]({'width':_0x3ae9e7,'height':_0x1ef5c5});let _0x21adc9=_0x10c403[_0xff841f(0x152)]()[_0xff841f(0x179)](_0x51ecad=>_0x51ecad[_0xff841f(0x1b6)]===_0x4f2b50);if(!_0x21adc9)return null;let _0x522681=_0x35b1c5?_0x3ae9e7-_0x21adc9['x']:_0x21adc9['x'],_0x1a817b=_0x5075d0?_0x1ef5c5-_0x21adc9['y']:_0x21adc9['y'];if(_0xc03ea7&&_0xc03ea7!==0x0){let _0x3aef54=_0xc03ea7*Math['PI']/0xb4,_0x263096=Math['cos'](_0x3aef54),_0x48d914=Math[_0xff841f(0x193)](_0x3aef54),_0x28a005=_0x3ae9e7/0x2,_0x273177=_0x1ef5c5/0x2,_0x4f98a5=_0x522681-_0x28a005,_0x598d74=_0x1a817b-_0x273177;_0x522681=_0x28a005+_0x4f98a5*_0x263096-_0x598d74*_0x48d914,_0x1a817b=_0x273177+_0x4f98a5*_0x48d914+_0x598d74*_0x263096;}_0x522681+=_0x5db6c2,_0x1a817b+=_0x4aad80;let _0x523dc5=_0x21adc9[_0xff841f(0x161)]/0xea60;_0x35b1c5&&(_0x523dc5=0xb4-_0x523dc5),_0x5075d0&&(_0x523dc5=-_0x523dc5),_0x523dc5+=_0xc03ea7||0x0,_0x523dc5=(_0x523dc5%0x168+0x168)%0x168;let _0x2d3216=(0x0,e[_0xff841f(0x195)])({'left':_0x5db6c2,'top':_0x4aad80,'width':_0x3ae9e7,'height':_0x1ef5c5},_0xc03ea7||0x0);return{'point':{'x':_0x522681,'y':_0x1a817b},'angle':_0x523dc5,'bounds':_0x2d3216};}function g(_0x7f2bfd,_0x5e0f04){const _0x1c65d5=_0x4edaef;let _0x55aa67=_0x5e0f04['x']-_0x7f2bfd['x'],_0x50e8e4=_0x5e0f04['y']-_0x7f2bfd['y'];return Math[_0x1c65d5(0x183)](_0x55aa67)>=Math['abs'](_0x50e8e4)?_0x55aa67>=0x0?0xb4:0x0:_0x50e8e4>=0x0?0x10e:0x5a;}function _0x4b1f(_0x144163,_0x4ff2e3){_0x144163=_0x144163-0x13b;const _0x178a9b=_0x178a();let _0x4b1f65=_0x178a9b[_0x144163];return _0x4b1f65;}function _(_0x3f2168,_0x418a91,_0x4d8dbe,_0x3d4576,_0x5f47a2,_0x4a074d,_0x46ddb1){const _0x220ebd=_0x4edaef;let _0x4a7387=_0x4a074d[_0x220ebd(0x1ab)](_0x3f2168,_0x418a91,_0x4d8dbe);if(!_0x4a7387)return null;let _0x508d3b=_0x46ddb1['getDrawingByParam']({'unitId':_0x3f2168,'subUnitId':_0x418a91,'drawingId':_0x4d8dbe});if(!(_0x508d3b!=null&&_0x508d3b[_0x220ebd(0x19c)]))return null;let {left:_0x17d77f=0x0,top:_0x3b071b=0x0,width:_0x12a971=0x0,height:_0x4b5124=0x0,flipX:_0x5af214=!0x1,flipY:_0x1b4472=!0x1}=_0x508d3b[_0x220ebd(0x19c)];_0x4a7387[_0x220ebd(0x178)]({'width':_0x12a971,'height':_0x4b5124});let _0x70553f=_0x4a7387['getConnectorLinePoints']();if(_0x70553f[_0x220ebd(0x186)]<0x2)return null;let _0xb1a8a1=_0x3d4576?_0x70553f[0x0]:_0x70553f[_0x70553f['length']-0x1],_0x51b7f2=new e[(_0x220ebd(0x15a))]({'left':_0x17d77f,'top':_0x3b071b,'width':_0x12a971,'height':_0x4b5124,'flipX':_0x5af214,'flipY':_0x1b4472})[_0x220ebd(0x1ce)](_0xb1a8a1);return{'point':_0x51b7f2,'angle':g(_0x5f47a2[_0x220ebd(0x1b7)],_0x51b7f2),'bounds':{'left':_0x51b7f2['x'],'top':_0x51b7f2['y'],'width':0x0,'height':0x0}};}var v=class extends s[_0x4edaef(0x173)]{async[_0x4edaef(0x15b)](_0x55bf77){const _0x32c9ce=_0x4edaef;let {unitId:_0x208516,subUnitId:_0x38330b,shapeId:_0x45115c,shapeType:_0x5b4787,shapeData:_0x2f6e26,x:_0x15c63b,y:_0x52b5bf,width:_0x2811a0,height:_0x10cd21}=_0x55bf77;return this[_0x32c9ce(0x14f)][_0x32c9ce(0x1ca)](n[_0x32c9ce(0x155)]['id'],{'unitId':_0x208516,'subUnitId':_0x38330b,'shapeId':_0x45115c,'shapeType':_0x5b4787,'shapeData':_0x2f6e26,'position':{'x':_0x15c63b,'y':_0x52b5bf},'width':_0x2811a0,'height':_0x10cd21});}async['updateShape'](_0x4684e3){const _0x1a3b20=_0x4edaef;let {unitId:_0x137765,subUnitId:_0x4a6f73,shapeId:_0x28c110,shapeType:_0x848975,shapeData:_0x3b376c,x:_0x4b3690,y:_0x1e1ff0,width:_0x56a55d,height:_0x6898dd}=_0x4684e3;return this['_commandService'][_0x1a3b20(0x1ca)](n[_0x1a3b20(0x141)]['id'],{'unitId':_0x137765,'subUnitId':_0x4a6f73,'shapeId':_0x28c110,'shapeType':_0x848975,'shapeData':_0x3b376c,'position':{'x':_0x4b3690,'y':_0x1e1ff0},'width':_0x56a55d,'height':_0x6898dd});}[_0x4edaef(0x15e)](_0x421e09){const _0x17eff3=_0x4edaef;let _0x479c3f=this[_0x17eff3(0x1d2)]()[_0x17eff3(0x1be)](),_0x5d0401=this[_0x17eff3(0x149)]();if(_0x421e09){let _0x5a079d=new p(_0x479c3f,_0x5d0401,_0x421e09['drawId'],this['_injector']);return this[_0x17eff3(0x171)](_0x5a079d,_0x479c3f,_0x5d0401,_0x421e09['drawId']),_0x5a079d;}return new p(_0x479c3f,_0x5d0401,(0x0,r[_0x17eff3(0x18f)])(),this[_0x17eff3(0x164)]);}['newConnector'](_0x5810a6){const _0x9415df=_0x4edaef;let _0x3654a4=this[_0x9415df(0x1d2)]()[_0x9415df(0x1be)](),_0x8d56c3=this[_0x9415df(0x149)]();if(_0x5810a6){let _0x12f344=new m(_0x3654a4,_0x8d56c3,_0x5810a6[_0x9415df(0x14c)],this[_0x9415df(0x164)]);return this[_0x9415df(0x171)](_0x12f344,_0x3654a4,_0x8d56c3,_0x5810a6[_0x9415df(0x14c)]),_0x12f344;}return new m(_0x3654a4,_0x8d56c3,(0x0,r['generateRandomId'])(),this[_0x9415df(0x164)]);}[_0x4edaef(0x1ae)](){const _0x2fc3b8=_0x4edaef;let _0x29c351=this['_injector'][_0x2fc3b8(0x16a)](o[_0x2fc3b8(0x17b)]),_0x2e888d=this[_0x2fc3b8(0x1d2)]()['getUnitId'](),_0x2ec8d2=this[_0x2fc3b8(0x149)](),_0x3be964=_0x29c351[_0x2fc3b8(0x19b)](_0x2e888d,_0x2ec8d2);if(!_0x3be964)return[];let _0x1b9ef7=[];for(let [_0x5e03a0,_0x4241a1]of Object['entries'](_0x3be964))if(_0x4241a1&&_0x4241a1[_0x2fc3b8(0x16d)]===r[_0x2fc3b8(0x1bd)][_0x2fc3b8(0x188)]){let _0x1abb92=new p(_0x2e888d,_0x2ec8d2,_0x5e03a0,this['_injector']);this['_preloadShapeProperties'](_0x1abb92,_0x2e888d,_0x2ec8d2,_0x5e03a0),_0x1b9ef7['push'](_0x1abb92);}return _0x1b9ef7;}[_0x4edaef(0x199)](_0x1f8de6){const _0x2053ac=_0x4edaef;let {unitId:_0x1fc245,subUnitId:_0x3f3005,drawId:_0x2c4678}=_0x1f8de6;return this['_commandService']['executeCommand'](o[_0x2053ac(0x1c7)]['id'],{'unitId':_0x1fc245,'drawings':[{'unitId':_0x1fc245,'subUnitId':_0x3f3005,'drawingId':_0x2c4678,'drawingType':r['DrawingTypeEnum'][_0x2053ac(0x188)]}]});}async[_0x4edaef(0x13b)](_0x3f6ceb){const _0x2d1d7c=_0x4edaef;let {connector:_0x31c75f,startTarget:_0x1b0995,endTarget:_0x1b13b6}=_0x3f6ceb;if(!_0x1b0995&&!_0x1b13b6)return!0x1;let _0x5501a3=this[_0x2d1d7c(0x1d2)]()[_0x2d1d7c(0x1be)](),_0x3911ad=this['getSheetId'](),_0x8ebdd6=this['_injector'][_0x2d1d7c(0x16a)](n[_0x2d1d7c(0x154)]),_0x2d3014=this['_injector']['get'](i['IDrawingManagerService']),_0x285140=_0x8ebdd6[_0x2d1d7c(0x1ab)](_0x5501a3,_0x3911ad,_0x31c75f[_0x2d1d7c(0x14c)]);if(!_0x285140)return!0x1;let _0x291c0a=_0x285140[_0x2d1d7c(0x145)](),_0x110516=_0x285140['getShapeRelation'](),_0x3a2f9f={};for(let _0x16d8b2 of _0x285140['getAdjustNames']()){let _0x252b28=_0x285140[_0x2d1d7c(0x18c)](_0x16d8b2);_0x252b28!==void 0x0&&(_0x3a2f9f[_0x16d8b2]=_0x252b28);}let {startInfo:_0xace829,endInfo:_0x48cec5}=this['_resolveEndpoints'](_0x5501a3,_0x3911ad,_0x31c75f,_0x285140,_0x1b0995,_0x1b13b6,_0x8ebdd6,_0x2d3014,_0x110516);if(!_0xace829||!_0x48cec5)return!0x1;let _0x3e17e4=(0x0,e[_0x2d1d7c(0x15d)])((0x0,e[_0x2d1d7c(0x1a3)])(_0xace829,_0x48cec5,_0x291c0a),_0x291c0a),_0x251e67={};return _0x1b0995?_0x251e67[_0x2d1d7c(0x1a7)]={'shapeId':_0x1b0995[_0x2d1d7c(0x176)][_0x2d1d7c(0x14c)],'cxnIndex':_0x1b0995['connectionSiteIndex']}:_0x110516!=null&&_0x110516[_0x2d1d7c(0x1a7)]&&(_0x251e67[_0x2d1d7c(0x1a7)]=_0x110516[_0x2d1d7c(0x1a7)]),_0x1b13b6?_0x251e67['to']={'shapeId':_0x1b13b6[_0x2d1d7c(0x176)][_0x2d1d7c(0x14c)],'cxnIndex':_0x1b13b6['connectionSiteIndex']}:_0x110516!=null&&_0x110516['to']&&(_0x251e67['to']=_0x110516['to']),this[_0x2d1d7c(0x14f)][_0x2d1d7c(0x1ca)](n[_0x2d1d7c(0x17c)]['id'],{'unitId':_0x5501a3,'subUnitId':_0x3911ad,'connectorShapeId':_0x31c75f[_0x2d1d7c(0x14c)],'width':_0x3e17e4['worldRect'][_0x2d1d7c(0x180)],'height':_0x3e17e4[_0x2d1d7c(0x1c0)]['height'],'left':_0x3e17e4[_0x2d1d7c(0x1c0)][_0x2d1d7c(0x175)],'top':_0x3e17e4[_0x2d1d7c(0x1c0)][_0x2d1d7c(0x1a8)],'flipX':_0x3e17e4['worldRect'][_0x2d1d7c(0x153)]||!0x1,'flipY':_0x3e17e4['worldRect'][_0x2d1d7c(0x1cd)]||!0x1,'oldAdjustValues':_0x3a2f9f,'newAdjustValues':_0x3e17e4[_0x2d1d7c(0x13d)],'newLineType':_0x3e17e4[_0x2d1d7c(0x166)],'oldLineType':_0x291c0a,'rotation':_0x3e17e4[_0x2d1d7c(0x196)],'oldRelation':_0x110516,'newRelation':_0x251e67});}[_0x4edaef(0x171)](_0x214e14,_0x43ad78,_0x113e74,_0x5d8ab0){const _0x3a3614=_0x4edaef;let _0x3b9288=this[_0x3a3614(0x164)]['get'](i[_0x3a3614(0x1b5)])[_0x3a3614(0x1ad)]({'unitId':_0x43ad78,'subUnitId':_0x113e74,'drawingId':_0x5d8ab0});if(_0x3b9288!=null&&_0x3b9288[_0x3a3614(0x19c)]){var _0x26ef8f,_0x45deb5,_0x5662dc,_0x566a37;_0x214e14['x']=(_0x26ef8f=_0x3b9288[_0x3a3614(0x19c)]['left'])==null?0x0:_0x26ef8f,_0x214e14['y']=(_0x45deb5=_0x3b9288['transform'][_0x3a3614(0x1a8)])==null?0x0:_0x45deb5,_0x214e14[_0x3a3614(0x180)]=(_0x5662dc=_0x3b9288[_0x3a3614(0x19c)][_0x3a3614(0x180)])==null?_0x214e14[_0x3a3614(0x180)]:_0x5662dc,_0x214e14['height']=(_0x566a37=_0x3b9288['transform'][_0x3a3614(0x19f)])==null?_0x214e14[_0x3a3614(0x19f)]:_0x566a37;}let _0x3fd7c4=this[_0x3a3614(0x164)][_0x3a3614(0x16a)](n[_0x3a3614(0x154)])[_0x3a3614(0x1ab)](_0x43ad78,_0x113e74,_0x5d8ab0);if(_0x3fd7c4){_0x214e14[_0x3a3614(0x15f)]=_0x3fd7c4['getShapeType']();let _0xda3462=_0x3fd7c4['getShapeData']();_0xda3462&&(_0x214e14[_0x3a3614(0x156)]=JSON[_0x3a3614(0x165)](JSON[_0x3a3614(0x197)](_0xda3462)));}}[_0x4edaef(0x181)](_0x24af03,_0xa25416,_0x48112d,_0xb8f3a,_0x34d735,_0x38297e,_0x5bb0e3,_0x1f538b,_0x544761){const _0x561d58=_0x4edaef;let _0x449524=null,_0x2d6a15=null;return _0x34d735&&(_0x449524=h(_0x24af03,_0xa25416,_0x34d735[_0x561d58(0x176)][_0x561d58(0x14c)],_0x34d735['connectionSiteIndex'],_0x5bb0e3,_0x1f538b)),_0x38297e&&(_0x2d6a15=h(_0x24af03,_0xa25416,_0x38297e['shape'][_0x561d58(0x14c)],_0x38297e['connectionSiteIndex'],_0x5bb0e3,_0x1f538b)),_0x449524||(_0x449524=this[_0x561d58(0x1c6)](_0x24af03,_0xa25416,_0x48112d['drawId'],!0x0,_0x2d6a15,_0x544761==null?void 0x0:_0x544761[_0x561d58(0x1a7)],_0x5bb0e3,_0x1f538b)),_0x2d6a15||(_0x2d6a15=this[_0x561d58(0x1c6)](_0x24af03,_0xa25416,_0x48112d[_0x561d58(0x14c)],!0x1,_0x449524,_0x544761==null?void 0x0:_0x544761['to'],_0x5bb0e3,_0x1f538b)),{'startInfo':_0x449524,'endInfo':_0x2d6a15};}['_resolveExistingOrFreeEndpoint'](_0x4c1e76,_0x4b680b,_0x165b83,_0x436095,_0x20d2ba,_0x13d0f9,_0x1c4a9a,_0x49de60){if(_0x13d0f9){let _0x215a9a=h(_0x4c1e76,_0x4b680b,_0x13d0f9['shapeId'],_0x13d0f9['cxnIndex'],_0x1c4a9a,_0x49de60);if(_0x215a9a)return _0x215a9a;}return _0x20d2ba?_(_0x4c1e76,_0x4b680b,_0x165b83,_0x436095,_0x20d2ba,_0x1c4a9a,_0x49de60):null;}};s[_0x4edaef(0x173)][_0x4edaef(0x17f)](v),exports[_0x4edaef(0x1cc)]=m,exports['FShape']=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x26e2(_0x3e9a01,_0x2e21fe){_0x3e9a01=_0x3e9a01-0xb0;const _0x41e828=_0x41e8();let _0x26e261=_0x41e828[_0x3e9a01];return _0x26e261;}const _0x34634d=_0x26e2;(function(_0x324adf,_0x2915f0){const _0xed1316=_0x26e2,_0x22e495=_0x324adf();while(!![]){try{const _0x386f76=parseInt(_0xed1316(0x11c))/0x1*(-parseInt(_0xed1316(0x10c))/0x2)+parseInt(_0xed1316(0x12c))/0x3+parseInt(_0xed1316(0x102))/0x4*(-parseInt(_0xed1316(0x115))/0x5)+-parseInt(_0xed1316(0x172))/0x6*(-parseInt(_0xed1316(0x151))/0x7)+-parseInt(_0xed1316(0x10d))/0x8+parseInt(_0xed1316(0xcb))/0x9+-parseInt(_0xed1316(0x10a))/0xa*(-parseInt(_0xed1316(0xc4))/0xb);if(_0x386f76===_0x2915f0)break;else _0x22e495['push'](_0x22e495['shift']());}catch(_0x43ec50){_0x22e495['push'](_0x22e495['shift']());}}}(_0x41e8,0x7b2b7),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'}));function _0x41e8(){const _0x5b0474=['result','2rrpuoC','4135160hSaskO','hasShape','dispose','isFrom','SheetInterceptorService','object','REMOVE','sheet.command.set-shape-text-vertical-toggle','68260NnbaBQ','RemoveSheetDrawingCommand','toPrimitive','type','width','ISheetDrawingService','onStarting','140641kOyqJr','decorate','DependentOn','isLineShape','sin','InsertSheetDrawingCommand','UPDATE','getStartConnectInfo','MUTATION','constructor','getDrawingByParam','getDrawingData','_configService','getBasicShapeType','getOwnPropertyDescriptor','fill','1891041adpCoy','ClearSheetDrawingTransformerOperation','addShape','stringify','set','_injector','symbol','setShapeData','position','push','updateContext','IUniverInstanceService','version','disposeWithMe','flipY','computeConnectorRouteLayout','_sheetsShapeService','keys','shapeData','forEach','rotation','sheet.command.toggle-shape-flip','getName','has','getShapeModel','UpdateSheetsShapeTypeCommand','_initSnapshot','string','insertShape','relation','from','InsertShapeCommand','isConnectorShape','@univerjs-pro/sheets-shape','lineType','fromJSON','interceptCommand','12796bYkmhJ','top','UniverInstanceType','getShapeDataById','shapeId','Injector','preUndos','defineProperty','SetSheetDrawingCommand','sheet.command.set-shape-rotate','_shapes','cxnIndex','getAdjustNames','get','getShapeData','left','_getConnectPointInfo','getShapeTypeById','_drawingManagerService','SheetSkeletonService','call','sheet.command.update-line-shape-resize','_resourcesManagerService','undos','height','syncExecuteCommand','SetSheetsShapeRotateCommand','params','cos','Plugin','setConfig','1.0.0-alpha.1','setShapeType','1842dYqqvl','_deserializeShapeForUnit','getEndConnectInfo','pushUndoRedo','sheet.mutation.insert-shape','sheet.mutation.remove-shape','getId','find','filter','ICommandService','transformToDrawingPosition','add','entries','preRedos','sheet.command.update-connector-relation','startY','registerPluginResource','_config','_addLineRerouteUpdates','removeShape','range','_commandService','getSkeleton','_sheetSkeletonService','SheetsShapeService','IResourceManagerService','worldRect','DrawingTypeEnum','map','transformToAxisAlignPosition','InsertSheetsShapeMutation','_initCommands','537328cdhCPr','merge','adjustValues','SetDrawingApplyMutation','IDrawingManagerService','borderEnabled','getShapeType','5664780FwVPej','shapeName','ang','getBatchAddOp','parse','_initCommandInterceptor','getConnectionSiteList','DrawingApplyType','_linesIds','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_serializeShapeForUnit','_disposed','index','IUndoRedoService','transform','data','SetSheetsShapeTextVerticalToggleCommand','SHEET_SHAPE_PLUGIN','DRAWING_SHAPE','getSheetCommandTarget','length','getBatchUpdateOp','Inject','drawingType','DEFAULT_SHAPE_WIDTH','sheet.command.insert-shape','onCommandExecute','iterator','getShapeRelation','_addLineFollowShapeUpdates','UpdateLineShapeResizeCommand','ensureSkeleton','lineShapeId','function','getBasicShapeRelation','COMMAND','default','sheet.mutation.update-shape-type','sequenceExecute','values','_ensureShapeModelManager','Disposable','rotateEnabled','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','assign','toJSON','_shapeModelManagerMap','resizeEnabled','angle','redos','CommandType','getShapeDisplayNames','SetShapeDrawingDataCommand','pluginName','delete','236FJsmSI','clear','UNIVER_SHEET','getLineShapeRelation','flipX','IConfigService','_sheetInterceptorService','getCellIndexAndOffsetByPosition','30iXWNuH'];_0x41e8=function(){return _0x5b0474;};return _0x41e8();}let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs-pro/license'),a=require('@univerjs/drawing');function o(_0x2ebcbf){'@babel/helpers - typeof';const _0x2f40c5=_0x26e2;return o=typeof Symbol==_0x2f40c5(0xec)&&typeof Symbol[_0x2f40c5(0xe6)]==_0x2f40c5(0x132)?function(_0x15e6f7){return typeof _0x15e6f7;}:function(_0x270766){const _0x24f4e9=_0x2f40c5;return _0x270766&&typeof Symbol==_0x24f4e9(0xec)&&_0x270766[_0x24f4e9(0x125)]===Symbol&&_0x270766!==Symbol['prototype']?_0x24f4e9(0x132):typeof _0x270766;},o(_0x2ebcbf);}function s(_0x281c5e,_0x3f6651){const _0x50e742=_0x26e2;if(o(_0x281c5e)!=_0x50e742(0x112)||!_0x281c5e)return _0x281c5e;var _0x250705=_0x281c5e[Symbol[_0x50e742(0x117)]];if(_0x250705!==void 0x0){var _0x546810=_0x250705[_0x50e742(0x165)](_0x281c5e,_0x3f6651||_0x50e742(0xef));if(o(_0x546810)!=_0x50e742(0x112))return _0x546810;throw TypeError(_0x50e742(0xd4));}return(_0x3f6651===_0x50e742(0x147)?String:Number)(_0x281c5e);}function c(_0x54e5ab){const _0x4c52b4=_0x26e2;var _0x3ac327=s(_0x54e5ab,_0x4c52b4(0x147));return o(_0x3ac327)==_0x4c52b4(0x132)?_0x3ac327:_0x3ac327+'';}function l(_0x17dce4,_0x1880ea,_0x459dca){const _0xebb300=_0x26e2;return(_0x1880ea=c(_0x1880ea))in _0x17dce4?Object[_0xebb300(0x158)](_0x17dce4,_0x1880ea,{'value':_0x459dca,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17dce4[_0x1880ea]=_0x459dca,_0x17dce4;}var u=class extends t[_0x34634d(0xf4)]{constructor(){const _0xee6b21=_0x34634d;super(),l(this,_0xee6b21(0x15b),new Map()),l(this,_0xee6b21(0xd3),new Set()),l(this,'_groupIds',new Set());}[_0x34634d(0x12e)](_0x99b177,_0xe8b07b,_0x2dcf85,_0x20dd81){const _0x2737ea=_0x34634d;let _0x13e2e5=new e['ShapeModel'](_0x99b177,_0xe8b07b,_0x2dcf85,_0x20dd81);return this[_0x2737ea(0x15b)][_0x2737ea(0x130)](_0xe8b07b,_0x13e2e5),(0x0,e[_0x2737ea(0x14c)])(_0x99b177)&&this['_linesIds'][_0x2737ea(0x17d)](_0xe8b07b),_0x13e2e5;}[_0x34634d(0xed)](_0x553e38){const _0x2398d2=_0x34634d;let _0x2f1e19=[];for(let _0x4fd840 of this[_0x2398d2(0xd3)]){let _0x2d440e=this['_shapes'][_0x2398d2(0x15e)](_0x4fd840);if(_0x2d440e){let _0x414e51=_0x2d440e[_0x2398d2(0xe7)]();if(_0x414e51){var _0x106ea8,_0x106f84;((_0x106ea8=_0x414e51[_0x2398d2(0x14a)])==null?void 0x0:_0x106ea8['shapeId'])===_0x553e38&&_0x2f1e19[_0x2398d2(0x135)]({..._0x414e51[_0x2398d2(0x14a)],'lineShapeId':_0x4fd840,'isFrom':!0x0}),((_0x106f84=_0x414e51['to'])==null?void 0x0:_0x106f84[_0x2398d2(0x155)])===_0x553e38&&_0x2f1e19[_0x2398d2(0x135)]({..._0x414e51['to'],'lineShapeId':_0x4fd840,'isFrom':!0x1});}}}return _0x2f1e19;}[_0x34634d(0x105)](_0x432e3c){const _0xe7b7c9=_0x34634d;let _0x30bdb5=this[_0xe7b7c9(0x15b)][_0xe7b7c9(0x15e)](_0x432e3c);if(_0x30bdb5)return _0x30bdb5['getShapeRelation']();}[_0x34634d(0xca)](_0x412c42){const _0x1590d4=_0x34634d;let _0x5c99f9=this[_0x1590d4(0x15b)][_0x1590d4(0x15e)](_0x412c42);if(_0x5c99f9)return _0x5c99f9[_0x1590d4(0xca)]();}['hasShape'](_0x16cb85){const _0x40da34=_0x34634d;return this[_0x40da34(0x15b)][_0x40da34(0x143)](_0x16cb85);}['getShapeDisplayNames'](){const _0x29354a=_0x34634d;return Array[_0x29354a(0x14a)](this[_0x29354a(0x15b)][_0x29354a(0xf2)]())[_0x29354a(0xc0)](_0x30ed40=>_0x30ed40[_0x29354a(0x142)]()||_0x30ed40[_0x29354a(0x178)]());}[_0x34634d(0xb7)](_0x1ff08f){const _0x473f64=_0x34634d;let _0x4edf3e=this['_shapes'][_0x473f64(0x15e)](_0x1ff08f);_0x4edf3e&&((0x0,e['isConnectorShape'])(_0x4edf3e[_0x473f64(0xca)]())&&this[_0x473f64(0xd3)][_0x473f64(0x101)](_0x1ff08f),this[_0x473f64(0x15b)][_0x473f64(0x101)](_0x1ff08f));}[_0x34634d(0xf8)](){const _0x42889f=_0x34634d;let _0x135f42=[];return this[_0x42889f(0x15b)][_0x42889f(0x13f)](_0x143bcc=>{_0x135f42['push'](_0x143bcc['toJSON']());}),_0x135f42;}[_0x34634d(0x14f)](_0x1546db){const _0x273f30=_0x34634d;for(let _0x542f15 of _0x1546db){let {id:_0x30bfc9,shapeType:_0x556c14,name:_0x15d806}=_0x542f15,_0x55da88=this['addShape'](_0x556c14,_0x30bfc9,_0x542f15[_0x273f30(0x13e)],_0x15d806);_0x55da88&&_0x55da88[_0x273f30(0x11f)]()&&this['_linesIds'][_0x273f30(0x17d)](_0x30bfc9);}}[_0x34634d(0x10f)](){const _0x36e3cc=_0x34634d;this[_0x36e3cc(0xd6)]||(this[_0x36e3cc(0x15b)][_0x36e3cc(0x13f)](_0x2ceb90=>{const _0x49f81d=_0x36e3cc;_0x2ceb90[_0x49f81d(0x10f)]();}),this[_0x36e3cc(0x15b)][_0x36e3cc(0x103)](),this['_linesIds'][_0x36e3cc(0x103)](),this['_groupIds'][_0x36e3cc(0x103)](),super['dispose']());}};function d(_0x18ada9,_0x2a4f07){return function(_0x3d8338,_0x13a6a8){_0x2a4f07(_0x3d8338,_0x13a6a8,_0x18ada9);};}function f(_0x3e1c1f,_0x1e8527,_0x1c3a5a,_0x323e05){const _0x3b33f5=_0x34634d;var _0xb18111=arguments['length'],_0x598d69=_0xb18111<0x3?_0x1e8527:_0x323e05===null?_0x323e05=Object[_0x3b33f5(0x12a)](_0x1e8527,_0x1c3a5a):_0x323e05,_0x329e55;if(typeof Reflect=='object'&&typeof Reflect[_0x3b33f5(0x11d)]==_0x3b33f5(0xec))_0x598d69=Reflect[_0x3b33f5(0x11d)](_0x3e1c1f,_0x1e8527,_0x1c3a5a,_0x323e05);else{for(var _0x289337=_0x3e1c1f['length']-0x1;_0x289337>=0x0;_0x289337--)(_0x329e55=_0x3e1c1f[_0x289337])&&(_0x598d69=(_0xb18111<0x3?_0x329e55(_0x598d69):_0xb18111>0x3?_0x329e55(_0x1e8527,_0x1c3a5a,_0x598d69):_0x329e55(_0x1e8527,_0x1c3a5a))||_0x598d69);}return _0xb18111>0x3&&_0x598d69&&Object[_0x3b33f5(0x158)](_0x1e8527,_0x1c3a5a,_0x598d69),_0x598d69;}let p=class extends t[_0x34634d(0xf4)]{constructor(_0x207f91){const _0x1d7f15=_0x34634d;super(),this[_0x1d7f15(0x167)]=_0x207f91,l(this,'_shapeModelManagerMap',new Map()),this[_0x1d7f15(0x146)]();}[_0x34634d(0xf3)](_0xc99089,_0x22de39){const _0x2bce6f=_0x34634d;let _0x27b8a2=this['_shapeModelManagerMap'][_0x2bce6f(0x15e)](_0xc99089);_0x27b8a2||(_0x27b8a2=new Map(),this[_0x2bce6f(0xf9)][_0x2bce6f(0x130)](_0xc99089,_0x27b8a2));let _0x55d88f=_0x27b8a2[_0x2bce6f(0x15e)](_0x22de39);return _0x55d88f||(_0x55d88f=new u(),_0x27b8a2[_0x2bce6f(0x130)](_0x22de39,_0x55d88f)),_0x55d88f;}[_0x34634d(0x148)](_0x3e7d4e,_0x239c0a,_0x3d592a,_0x36579b,_0x553d63,_0xd6a551){const _0x1a5495=_0x34634d;this[_0x1a5495(0xf3)](_0x3e7d4e,_0x239c0a)[_0x1a5495(0x12e)](_0x3d592a,_0x36579b,_0x553d63,_0xd6a551);}[_0x34634d(0xb7)](_0x3c7b34,_0x5571c7,_0x403b43){const _0x224ffd=_0x34634d;this['_ensureShapeModelManager'](_0x3c7b34,_0x5571c7)[_0x224ffd(0xb7)](_0x403b43);}[_0x34634d(0x129)](_0x2ccac7,_0x1d310e,_0x27c7fd){const _0x23d67a=_0x34634d;return this[_0x23d67a(0xf3)](_0x2ccac7,_0x1d310e)[_0x23d67a(0xca)](_0x27c7fd);}[_0x34634d(0xca)](_0xcfcca0,_0xd1860,_0x528ab9){const _0x443875=_0x34634d;return this[_0x443875(0xf3)](_0xcfcca0,_0xd1860)[_0x443875(0xca)](_0x528ab9);}['hasShape'](_0x52a8ad,_0xbd8dc8,_0x382fb8){const _0x8ddd83=_0x34634d;return this['_ensureShapeModelManager'](_0x52a8ad,_0xbd8dc8)[_0x8ddd83(0x10e)](_0x382fb8);}[_0x34634d(0x162)](_0x9e18ed,_0x13f242,_0x318a54){const _0x468d43=_0x34634d;return this[_0x468d43(0xf3)](_0x9e18ed,_0x13f242)['getShapeType'](_0x318a54);}[_0x34634d(0x154)](_0x3c150c,_0x5abe41,_0x55a8b3){const _0x5ca335=_0x34634d;let _0xb3ea0d=this[_0x5ca335(0xf3)](_0x3c150c,_0x5abe41);if(!_0xb3ea0d['getShapeType'](_0x55a8b3))return;let _0x1e8310=_0xb3ea0d[_0x5ca335(0x15b)][_0x5ca335(0x15e)](_0x55a8b3);if(_0x1e8310)return _0x1e8310[_0x5ca335(0x15f)]();}[_0x34634d(0xfe)](_0x4d3c71,_0x2d81a8){const _0x1dc7ba=_0x34634d;return this[_0x1dc7ba(0xf3)](_0x4d3c71,_0x2d81a8)[_0x1dc7ba(0xfe)]();}[_0x34634d(0x144)](_0x51ee53,_0x286553,_0x5c45d5){const _0x5900a4=_0x34634d;return this[_0x5900a4(0xf3)](_0x51ee53,_0x286553)['_shapes']['get'](_0x5c45d5);}['getBasicShapeRelation'](_0x3a7914,_0xe0153c,_0x14100b){return this['_ensureShapeModelManager'](_0x3a7914,_0xe0153c)['getBasicShapeRelation'](_0x14100b);}[_0x34634d(0x105)](_0x27cb57,_0xd6f834,_0x25f62d){const _0x10e869=_0x34634d;let _0x260cde=this['_ensureShapeModelManager'](_0x27cb57,_0xd6f834)[_0x10e869(0x15b)][_0x10e869(0x15e)](_0x25f62d);if(_0x260cde)return _0x260cde['getShapeRelation']();}[_0x34634d(0x171)](){}[_0x34634d(0xd5)](_0x272b3c){const _0x36d43d=_0x34634d;let _0x224114={},_0x5f1b22=this[_0x36d43d(0xf9)]['get'](_0x272b3c);return _0x5f1b22&&_0x5f1b22[_0x36d43d(0x13f)]((_0x35d1ab,_0x362216)=>{const _0x3eaf0a=_0x36d43d;let _0x40fc03=_0x35d1ab[_0x3eaf0a(0xf8)]();_0x40fc03['length']>0x0&&(_0x224114[_0x362216]=_0x40fc03);}),JSON[_0x36d43d(0x12f)](_0x224114);}['_deserializeShapeForUnit'](_0x1c3e47,_0x163edd){const _0x561d8c=_0x34634d;Object[_0x561d8c(0x13d)](_0x163edd)[_0x561d8c(0x13f)](_0x510ba5=>{const _0x283ee0=_0x561d8c;this[_0x283ee0(0xf3)](_0x1c3e47,_0x510ba5)['fromJSON'](_0x163edd[_0x510ba5]);});}[_0x34634d(0xf8)](){const _0x829bf5=_0x34634d;let _0x2045bd={};return this[_0x829bf5(0xf9)]['forEach']((_0xb7bbce,_0x4bd9e7)=>{_0x2045bd[_0x4bd9e7]={},_0xb7bbce['forEach']((_0x1bb1ce,_0x183dad)=>{const _0x342ffd=_0x26e2;_0x2045bd[_0x4bd9e7][_0x183dad]=_0x1bb1ce[_0x342ffd(0xf8)]();});}),_0x2045bd;}[_0x34634d(0x14f)](_0x387a38){const _0x39625a=_0x34634d;Object[_0x39625a(0x13d)](_0x387a38)[_0x39625a(0x13f)](_0x2a1abd=>{const _0x3ce658=_0x39625a;let _0x2618e8=_0x387a38[_0x2a1abd];Object[_0x3ce658(0x13d)](_0x2618e8)['forEach'](_0x9ea211=>{const _0x24a199=_0x3ce658;this[_0x24a199(0xf3)](_0x2a1abd,_0x9ea211)[_0x24a199(0x14f)](_0x2618e8[_0x9ea211]);});});}[_0x34634d(0x146)](){const _0x2d56db=_0x34634d;this[_0x2d56db(0x167)][_0x2d56db(0xb4)]({'pluginName':_0x2d56db(0xdc),'businesses':[t[_0x2d56db(0x153)][_0x2d56db(0x104)]],'toJson':_0x1bf606=>this['_serializeShapeForUnit'](_0x1bf606),'parseJson':_0x2a4dca=>JSON[_0x2d56db(0xcf)](_0x2a4dca),'onLoad':(_0x422c8e,_0x278d75)=>{const _0x497dc5=_0x2d56db;this[_0x497dc5(0x173)](_0x422c8e,_0x278d75);},'onUnLoad':_0x15311f=>{const _0x41fb72=_0x2d56db;let _0x2df13b=this[_0x41fb72(0xf9)][_0x41fb72(0x15e)](_0x15311f);_0x2df13b&&(_0x2df13b[_0x41fb72(0x13f)](_0x1d5793=>{_0x1d5793['dispose']();}),this[_0x41fb72(0xf9)]['delete'](_0x15311f));}});}['dispose'](){const _0x177c4f=_0x34634d;this[_0x177c4f(0xf9)]['forEach'](_0x440f53=>{const _0x153250=_0x177c4f;_0x440f53[_0x153250(0x13f)](_0x87ffa9=>{const _0x2d37f5=_0x153250;_0x87ffa9[_0x2d37f5(0x10f)]();});});}};p=f([d(0x0,t[_0x34634d(0xbd)])],p);const m={'id':_0x34634d(0x176),'type':t[_0x34634d(0xfd)]['MUTATION'],'handler':(_0x2e8d8b,_0x1ee116)=>{let {unitId:_0x55aa91,subUnitId:_0x258440,shapeType:_0x5d519d,shapeId:_0x45ea40,shapeName:_0x2b130c,shapeData:_0x1795e2}=_0x1ee116;return _0x2e8d8b['get'](p)['insertShape'](_0x55aa91,_0x258440,_0x5d519d,_0x45ea40,_0x1795e2,_0x2b130c),!0x0;}},h={'id':_0x34634d(0x177),'type':t[_0x34634d(0xfd)]['MUTATION'],'handler':(_0x42ab5a,_0xbd5fc3)=>{const _0x212114=_0x34634d;let {unitId:_0x578e3e,subUnitId:_0x831a73,shapeId:_0x1c2ffd}=_0xbd5fc3;return _0x42ab5a['get'](p)[_0x212114(0xb7)](_0x578e3e,_0x831a73,_0x1c2ffd),!0x0;}},g={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0xe4),'handler':(_0x42cabb,_0x3cf023)=>{const _0x53db64=_0x34634d;var _0x1795c9,_0x22c50e,_0xb565ce;let _0x271b4b=(0x0,n[_0x53db64(0xde)])(_0x42cabb['get'](t[_0x53db64(0x137)]),_0x3cf023);if(!_0x271b4b)return!0x1;let _0x3077a4=_0x42cabb[_0x53db64(0x15e)](n[_0x53db64(0x164)]),{unitId:_0xe257b,subUnitId:_0x4101ca}=_0x271b4b,_0x1dc05f=_0x3077a4['ensureSkeleton'](_0xe257b,_0x4101ca);if(!_0x1dc05f)return!0x1;let _0x858ae1=_0x42cabb['get'](t['ICommandService']),_0x4d124b=_0x42cabb[_0x53db64(0x15e)](t[_0x53db64(0xd8)]),_0x289517=_0x42cabb[_0x53db64(0x15e)](n[_0x53db64(0x111)]),_0x58086c=_0x42cabb[_0x53db64(0x15e)](r['ISheetDrawingService']),_0x4c902d=_0x42cabb[_0x53db64(0x15e)](p),{shapeType:_0x3cd739,shapeData:_0x486d0b}=_0x3cf023,_0x7abaf5=_0x3cf023[_0x53db64(0x155)]||(0x0,t['generateRandomId'])(),_0x2bd8e4={'unitId':_0xe257b,'subUnitId':_0x4101ca,'shapeId':_0x7abaf5,'shapeName':(_0x1795c9=_0x3cf023[_0x53db64(0xcc)])==null?(0x0,e['createUniqueShapeName'])(_0x3cd739,_0x4c902d['getShapeDisplayNames'](_0xe257b,_0x4101ca)):_0x1795c9,'shapeType':_0x3cd739,'shapeData':_0x486d0b},_0x19488d=_0x3cf023[_0x53db64(0x119)]||0xc8,_0x14db5c=_0x3cf023['height']||0xc8,_0x40a3ef=0x0,_0x493001=0x0,_0x59e8f5={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x550df9={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x3cf023[_0x53db64(0x134)]){let {x:_0xb9438d,y:_0x1e5343}=_0x3cf023[_0x53db64(0x134)];_0x40a3ef=_0xb9438d,_0x493001=_0x1e5343,_0x59e8f5=_0x1dc05f[_0x53db64(0x109)](_0xb9438d,_0x1e5343),_0x550df9=_0x1dc05f[_0x53db64(0x109)](_0xb9438d+_0x19488d,_0x1e5343+_0x14db5c);}else{if(_0x3cf023['range']){let {startRow:_0x5b9595,startColumn:_0x169f52}=_0x3cf023[_0x53db64(0xb8)];_0x59e8f5={'row':_0x5b9595,'rowOffset':0xa,'column':_0x169f52,'columnOffset':0xa};let _0x24a92a=_0x1dc05f['getCellWithCoordByIndex'](_0x5b9595,_0x169f52);_0x40a3ef=_0x24a92a['startX']+0xa,_0x493001=_0x24a92a[_0x53db64(0xb3)]+0xa,_0x550df9=_0x1dc05f[_0x53db64(0x109)](_0x40a3ef+_0x19488d,_0x493001+_0x14db5c);}}let _0x29ec3c={'from':_0x59e8f5,'to':_0x550df9},_0x2336e3={'unitId':_0xe257b,'subUnitId':_0x4101ca,'drawingId':_0x7abaf5,'drawingType':t['DrawingTypeEnum'][_0x53db64(0xdd)],'sheetTransform':_0x29ec3c,'transform':{'left':_0x40a3ef,'top':_0x493001,'width':_0x19488d,'height':_0x14db5c},'data':{'shapeType':_0x3cd739,'shapeData':_0x486d0b},'axisAlignSheetTransform':_0x29ec3c,'allowTransform':!0x0};(0x0,e[_0x53db64(0x14c)])(_0x3cd739)&&(_0x2336e3[_0x53db64(0xda)][_0x53db64(0x12b)]=!0x1,_0x2336e3[_0x53db64(0xda)]['rotateEnabled']=!0x1,_0x2336e3['data'][_0x53db64(0xfa)]=!0x1,_0x2336e3[_0x53db64(0xda)][_0x53db64(0xc9)]=!0x1,_0x2336e3[_0x53db64(0xd9)][_0x53db64(0xf5)]=!0x1,_0x2336e3['transform'][_0x53db64(0xfa)]=!0x1,_0x2336e3[_0x53db64(0xd9)][_0x53db64(0xc9)]=!0x1);let {undo:_0x3bb2db,redo:_0x1bb5a0,objects:_0x50bd89}=_0x58086c[_0x53db64(0xce)]([_0x2336e3]),_0x183c85=_0x289517[_0x53db64(0xe5)]({'id':r[_0x53db64(0x121)]['id'],'params':{'unitId':_0xe257b,'drawings':[_0x2336e3]}}),_0xf59470=[...(_0x22c50e=_0x183c85[_0x53db64(0xb1)])==null?[]:_0x22c50e,{'id':r[_0x53db64(0xc7)]['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'op':_0x1bb5a0,'objects':_0x50bd89,'type':r['DrawingApplyType']['INSERT']}},{'id':r[_0x53db64(0x12d)]['id'],'params':[_0xe257b]},..._0x183c85[_0x53db64(0xfc)],{'id':m['id'],'params':_0x2bd8e4}],_0x4111a8=[{'id':h['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'shapeId':_0x7abaf5}},...(_0xb565ce=_0x183c85[_0x53db64(0x157)])==null?[]:_0xb565ce,{'id':r[_0x53db64(0xc7)]['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'op':_0x3bb2db,'objects':_0x50bd89,'type':r[_0x53db64(0xd2)][_0x53db64(0x113)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xe257b]},..._0x183c85[_0x53db64(0x168)]];return(0x0,t[_0x53db64(0xf1)])(_0xf59470,_0x858ae1)[_0x53db64(0x10b)]?(_0x4d124b['pushUndoRedo']({'unitID':_0xe257b,'undoMutations':_0x4111a8,'redoMutations':_0xf59470}),!0x0):!0x1;}},_={'id':'sheet.mutation.update-shape-data','type':t[_0x34634d(0xfd)][_0x34634d(0x124)],'handler':(_0xd74d00,_0x452398)=>{const _0x47577a=_0x34634d;let {unitId:_0x2ac6cf,subUnitId:_0x5e3dcd,shapeType:_0x1a98a6,shapeId:_0x514c36,shapeData:_0x478e5e}=_0x452398,_0x575bcc=_0xd74d00['get'](p)[_0x47577a(0x144)](_0x2ac6cf,_0x5e3dcd,_0x514c36);return _0x575bcc&&(_0x1a98a6!==void 0x0&&_0x575bcc['setShapeType'](_0x1a98a6),_0x478e5e&&(_0x575bcc==null||_0x575bcc[_0x47577a(0x133)](_0x478e5e,!0x0))),!0x0;}},v={'type':t[_0x34634d(0xfd)]['COMMAND'],'id':'sheet.command.set-shape-drawing-data','handler':(_0x3b39c2,_0x3f29d2)=>{const _0x6f8e6=_0x34634d;var _0x1d1f38,_0x220455;let _0x309800=(0x0,n['getSheetCommandTarget'])(_0x3b39c2[_0x6f8e6(0x15e)](t[_0x6f8e6(0x137)]),_0x3f29d2);if(!_0x309800)return!0x1;let _0x28b8ea=_0x3b39c2[_0x6f8e6(0x15e)](n['SheetSkeletonService']),{unitId:_0x4a5c62,subUnitId:_0x1af4b4}=_0x309800,_0x4d470c=_0x28b8ea[_0x6f8e6(0xea)](_0x4a5c62,_0x1af4b4);if(!_0x4d470c)return!0x1;let _0x4aa8e1=_0x3b39c2['get'](p),{shapeId:_0x44e993,shapeType:_0x5d8adb,shapeData:_0x2f4244,position:_0x472b0a,width:_0x40f8c8,height:_0x1eb141}=_0x3f29d2,_0x5c6c0b=_0x4aa8e1[_0x6f8e6(0x144)](_0x4a5c62,_0x1af4b4,_0x44e993);if(!_0x5c6c0b)return!0x1;let _0x36437b=_0x3b39c2[_0x6f8e6(0x15e)](t[_0x6f8e6(0x17b)]),_0x398484=_0x3b39c2['get'](t[_0x6f8e6(0xd8)]),_0x1815e9=_0x3b39c2[_0x6f8e6(0x15e)](n[_0x6f8e6(0x111)]),_0x837f16=_0x3b39c2[_0x6f8e6(0x15e)](r['ISheetDrawingService']),_0x165a6e={'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'shapeId':_0x44e993,'shapeType':_0x5d8adb,'shapeData':_0x2f4244},_0x22723e=_0x5c6c0b[_0x6f8e6(0xca)](),_0x9fc35f=_0x5c6c0b[_0x6f8e6(0x15f)](),{x:_0x29cf18,y:_0x5d66f7}=_0x472b0a,_0x56b436={'from':_0x4d470c[_0x6f8e6(0x109)](_0x29cf18,_0x5d66f7),'to':_0x4d470c[_0x6f8e6(0x109)](_0x29cf18+_0x40f8c8,_0x5d66f7+_0x1eb141)},_0x41f0fc={'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'drawingId':_0x44e993,'drawingType':t[_0x6f8e6(0xbf)][_0x6f8e6(0xdd)],'sheetTransform':_0x56b436,'transform':{'left':_0x29cf18,'top':_0x5d66f7,'width':_0x40f8c8,'height':_0x1eb141},'data':{'shapeType':_0x5d8adb,'shapeData':_0x2f4244},'axisAlignSheetTransform':_0x56b436,'allowTransform':!0x0};(0x0,e[_0x6f8e6(0x14c)])(_0x5d8adb)&&(_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0x12b)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xf5)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xfa)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xc9)]=!0x1,_0x41f0fc[_0x6f8e6(0xd9)]['rotateEnabled']=!0x1,_0x41f0fc[_0x6f8e6(0xd9)]['resizeEnabled']=!0x1,_0x41f0fc[_0x6f8e6(0xd9)][_0x6f8e6(0xc9)]=!0x1);let {undo:_0x490d69,redo:_0x198893,objects:_0x19b868}=_0x837f16[_0x6f8e6(0xe0)]([_0x41f0fc]),_0x266384=_0x1815e9[_0x6f8e6(0xe5)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x4a5c62,'drawings':[_0x41f0fc]}}),_0x339fd7=[...(_0x1d1f38=_0x266384[_0x6f8e6(0xb1)])==null?[]:_0x1d1f38,{'id':r[_0x6f8e6(0xc7)]['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'op':_0x198893,'objects':_0x19b868,'type':r[_0x6f8e6(0xd2)][_0x6f8e6(0x122)]}},{'id':r[_0x6f8e6(0x12d)]['id'],'params':[_0x4a5c62]},..._0x266384[_0x6f8e6(0xfc)],{'id':_['id'],'params':_0x165a6e}],_0x579a12=[...(_0x220455=_0x266384['preUndos'])==null?[]:_0x220455,{'id':r[_0x6f8e6(0xc7)]['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'op':_0x490d69,'objects':_0x19b868,'type':r[_0x6f8e6(0xd2)][_0x6f8e6(0x122)]}},{'id':r[_0x6f8e6(0x12d)]['id'],'params':[_0x4a5c62]},..._0x266384[_0x6f8e6(0x168)],{'id':_['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'shapeType':_0x22723e,'shapeId':_0x44e993,'shapeData':_0x9fc35f}}];return(0x0,t[_0x6f8e6(0xf1)])(_0x339fd7,_0x36437b)['result']?(_0x398484[_0x6f8e6(0x175)]({'unitID':_0x4a5c62,'undoMutations':_0x579a12,'redoMutations':_0x339fd7}),!0x0):!0x1;}},y={'type':t['CommandType'][_0x34634d(0xee)],'id':_0x34634d(0x141),'handler':(_0x917fb6,_0xab9875)=>{const _0x4c9925=_0x34634d;var _0x55ecc7,_0x1f1cee;let _0x5df864=(0x0,n[_0x4c9925(0xde)])(_0x917fb6['get'](t[_0x4c9925(0x137)]),_0xab9875);if(!_0x5df864)return!0x1;let _0x54e394=_0x917fb6['get'](n['SheetSkeletonService']),{unitId:_0xf7dc90,subUnitId:_0x4fb01c}=_0x5df864,_0x10cce1=_0x54e394[_0x4c9925(0xba)](_0xf7dc90,_0x4fb01c);if(!_0x10cce1)return!0x1;let _0x5a28dd=_0x917fb6['get'](r[_0x4c9925(0x11a)]),{shapeId:_0x5af192,flipH:_0x35b42b,flipV:_0x4146c1}=_0xab9875,_0x588e14=_0x5a28dd[_0x4c9925(0x126)]({'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'drawingId':_0x5af192});if(!_0x588e14)return!0x1;let _0x58f8af=_0x917fb6[_0x4c9925(0x15e)](p)[_0x4c9925(0x144)](_0xf7dc90,_0x4fb01c,_0x5af192);if(!_0x58f8af)return!0x1;let _0x1362f9=_0x917fb6[_0x4c9925(0x15e)](t[_0x4c9925(0x17b)]),_0x23cdfb=_0x917fb6['get'](t[_0x4c9925(0xd8)]),_0x11b12e=_0x917fb6[_0x4c9925(0x15e)](n[_0x4c9925(0x111)]),_0x583abc={..._0x588e14[_0x4c9925(0xd9)]};_0x35b42b!==void 0x0&&(_0x583abc['flipX']=!_0x583abc[_0x4c9925(0x106)]),_0x4146c1!==void 0x0&&(_0x583abc[_0x4c9925(0x13a)]=!_0x583abc[_0x4c9925(0x13a)]);let _0x5e88cd=(0x0,r[_0x4c9925(0x17c)])(_0x583abc,_0x10cce1),_0x33839f=(0x0,r[_0x4c9925(0xc1)])(_0x583abc,_0x10cce1),_0x2060a4=_0x58f8af['getShapeType'](),_0x28e9f9=_0x58f8af[_0x4c9925(0x15f)](),_0x398993={'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'drawingId':_0x5af192,'drawingType':t['DrawingTypeEnum'][_0x4c9925(0xdd)],'sheetTransform':_0x5e88cd,'transform':_0x583abc,'data':{'shapeType':_0x2060a4,'shapeData':_0x28e9f9},'axisAlignSheetTransform':_0x33839f,'allowTransform':!0x0},{undo:_0x432adf,redo:_0x80f2d9,objects:_0x9a3f7f}=_0x5a28dd[_0x4c9925(0xe0)]([_0x398993]),_0x86b675=_0x11b12e[_0x4c9925(0xe5)]({'id':r[_0x4c9925(0x159)]['id'],'params':{'unitId':_0xf7dc90,'drawings':[_0x398993]}}),_0x3501a8=[...(_0x55ecc7=_0x86b675['preRedos'])==null?[]:_0x55ecc7,{'id':r[_0x4c9925(0xc7)]['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'op':_0x80f2d9,'objects':_0x9a3f7f,'type':r['DrawingApplyType'][_0x4c9925(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xf7dc90]},..._0x86b675[_0x4c9925(0xfc)]],_0x108d60=[...(_0x1f1cee=_0x86b675[_0x4c9925(0x157)])==null?[]:_0x1f1cee,{'id':r[_0x4c9925(0xc7)]['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'op':_0x432adf,'objects':_0x9a3f7f,'type':r[_0x4c9925(0xd2)][_0x4c9925(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xf7dc90]},..._0x86b675[_0x4c9925(0x168)]];if((0x0,e[_0x4c9925(0x14c)])(_0x2060a4)){let _0x5f3ef0=_0x58f8af[_0x4c9925(0xe7)]();if(_0x5f3ef0){let _0x557247={..._0x5f3ef0};_0x557247['from']=void 0x0,_0x557247['to']=void 0x0,_0x3501a8[_0x4c9925(0x135)]({'id':_['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'shapeId':_0x5af192,'shapeType':_0x2060a4,'shapeData':{'relation':_0x557247}}}),_0x108d60[_0x4c9925(0x135)]({'id':_['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'shapeId':_0x5af192,'shapeType':_0x2060a4,'shapeData':{'relation':_0x5f3ef0}}});}}return(0x0,t['sequenceExecute'])(_0x3501a8,_0x1362f9)[_0x4c9925(0x10b)]?(_0x23cdfb['pushUndoRedo']({'unitID':_0xf7dc90,'undoMutations':_0x108d60,'redoMutations':_0x3501a8}),!0x0):!0x1;}},b={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0x15a),'handler':(_0x28272e,_0x295d79)=>{const _0x358e11=_0x34634d;var _0x373a23,_0xc42fdd;let _0xd89520=(0x0,n[_0x358e11(0xde)])(_0x28272e['get'](t[_0x358e11(0x137)]),_0x295d79);if(!_0xd89520)return!0x1;let _0x182f0d=_0x28272e[_0x358e11(0x15e)](n[_0x358e11(0x164)]),{unitId:_0x3d9f7f,subUnitId:_0x30265a}=_0xd89520,_0x252d23=_0x182f0d[_0x358e11(0xba)](_0x3d9f7f,_0x30265a);if(!_0x252d23)return!0x1;let _0x25b64f=_0x28272e['get'](r[_0x358e11(0x11a)]),{shapeId:_0x4c3a58,rotate:_0x4f420d}=_0x295d79,_0x70cfcb=_0x25b64f['getDrawingByParam']({'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'drawingId':_0x4c3a58});if(!_0x70cfcb)return!0x1;let _0x46c255=_0x28272e['get'](p)[_0x358e11(0x144)](_0x3d9f7f,_0x30265a,_0x4c3a58);if(!_0x46c255)return!0x1;let _0x34701c=_0x28272e[_0x358e11(0x15e)](t[_0x358e11(0x17b)]),_0x1db858=_0x28272e[_0x358e11(0x15e)](t['IUndoRedoService']),_0x38ef12=_0x28272e['get'](n['SheetInterceptorService']),_0x5a87ab={..._0x70cfcb[_0x358e11(0xd9)]};_0x4f420d!==void 0x0&&(_0x5a87ab[_0x358e11(0xfb)]=(_0x5a87ab[_0x358e11(0xfb)]||0x0)+_0x4f420d);let _0x22856e=(0x0,r[_0x358e11(0x17c)])(_0x5a87ab,_0x252d23),_0x3a63d1=(0x0,r[_0x358e11(0xc1)])(_0x5a87ab,_0x252d23),_0x12ed7f=_0x46c255[_0x358e11(0xca)](),_0x2294ca=_0x46c255[_0x358e11(0x15f)](),_0x5cedee={'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'drawingId':_0x4c3a58,'drawingType':t[_0x358e11(0xbf)][_0x358e11(0xdd)],'sheetTransform':_0x22856e,'transform':_0x5a87ab,'data':{'shapeType':_0x12ed7f,'shapeData':_0x2294ca},'axisAlignSheetTransform':_0x3a63d1,'allowTransform':!0x0},{undo:_0x2d5aa6,redo:_0x5b5568,objects:_0xddc084}=_0x25b64f[_0x358e11(0xe0)]([_0x5cedee]),_0x31d128=_0x38ef12[_0x358e11(0xe5)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x3d9f7f,'drawings':[_0x5cedee]}}),_0x2c4650=[...(_0x373a23=_0x31d128[_0x358e11(0xb1)])==null?[]:_0x373a23,{'id':r[_0x358e11(0xc7)]['id'],'params':{'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'op':_0x5b5568,'objects':_0xddc084,'type':r[_0x358e11(0xd2)][_0x358e11(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3d9f7f]},..._0x31d128[_0x358e11(0xfc)]],_0x42326e=[...(_0xc42fdd=_0x31d128[_0x358e11(0x157)])==null?[]:_0xc42fdd,{'id':r[_0x358e11(0xc7)]['id'],'params':{'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'op':_0x2d5aa6,'objects':_0xddc084,'type':r[_0x358e11(0xd2)][_0x358e11(0x122)]}},{'id':r[_0x358e11(0x12d)]['id'],'params':[_0x3d9f7f]},..._0x31d128[_0x358e11(0x168)]];return(0x0,t[_0x358e11(0xf1)])(_0x2c4650,_0x34701c)[_0x358e11(0x10b)]?(_0x1db858['pushUndoRedo']({'unitID':_0x3d9f7f,'undoMutations':_0x42326e,'redoMutations':_0x2c4650}),!0x0):!0x1;}},x={'type':t['CommandType'][_0x34634d(0xee)],'id':_0x34634d(0x114),'handler':(_0x1142e6,_0x1100d7)=>{const _0x304fa1=_0x34634d;var _0x39986c;let _0xe45b75=(0x0,n[_0x304fa1(0xde)])(_0x1142e6['get'](t[_0x304fa1(0x137)]),_0x1100d7);if(!_0xe45b75)return!0x1;let {unitId:_0x5d3853,subUnitId:_0x3f14a6}=_0xe45b75,{shapeId:_0x1d158b}=_0x1100d7,_0xec2073=_0x1142e6[_0x304fa1(0x15e)](p)[_0x304fa1(0x144)](_0x5d3853,_0x3f14a6,_0x1d158b);if(!_0xec2073)return!0x1;let _0x2fce93=_0xec2073['getShapeTextData'](),_0x46328b=(_0x39986c=_0x2fce93==null?void 0x0:_0x2fce93['isHorizontal'])==null?!0x0:_0x39986c,_0x228730=!_0x46328b,_0x334302=_0x1142e6[_0x304fa1(0x15e)](t[_0x304fa1(0x17b)]),_0x2b4711=_0x1142e6[_0x304fa1(0x15e)](t[_0x304fa1(0xd8)]),_0x30dafb={'unitId':_0x5d3853,'subUnitId':_0x3f14a6,'shapeId':_0x1d158b,'shapeData':{'shapeText':{'isHorizontal':_0x228730}}},_0x1e9907={'unitId':_0x5d3853,'subUnitId':_0x3f14a6,'shapeId':_0x1d158b,'shapeData':{'shapeText':{'isHorizontal':_0x46328b}}},_0x650de1=[{'id':_['id'],'params':_0x30dafb}],_0x5254cd=[{'id':_['id'],'params':_0x1e9907}];return(0x0,t[_0x304fa1(0xf1)])(_0x650de1,_0x334302)[_0x304fa1(0x10b)]?(_0x2b4711['pushUndoRedo']({'unitID':_0x5d3853,'undoMutations':_0x5254cd,'redoMutations':_0x650de1}),!0x0):!0x1;}},S={'type':t[_0x34634d(0xfd)]['COMMAND'],'id':_0x34634d(0xb2),'handler':(_0x4db4b7,_0x53691c)=>{const _0x3945d1=_0x34634d;var _0x2defed,_0x27430b,_0x9b7121,_0x5afa6e;let _0x5b3358=(0x0,n['getSheetCommandTarget'])(_0x4db4b7['get'](t[_0x3945d1(0x137)]),_0x53691c);if(!_0x5b3358)return!0x1;let _0x5e88e2=_0x4db4b7[_0x3945d1(0x15e)](n['SheetSkeletonService']),{unitId:_0x5a500c,subUnitId:_0xfc70ae}=_0x5b3358,_0x238125=_0x5e88e2[_0x3945d1(0xba)](_0x5a500c,_0xfc70ae);if(!_0x238125)return!0x1;let _0xd0cca=_0x4db4b7[_0x3945d1(0x15e)](r['ISheetDrawingService']),{connectorShapeId:_0x322ed7,width:_0x3b744c,height:_0x17cc78,left:_0x2be67f,top:_0x8769bc,flipX:_0x5bffb1,flipY:_0x374a47,rotation:_0x195035,oldAdjustValues:_0x1b3ad0,newAdjustValues:_0x1f95de,oldLineType:_0x20d80d,newLineType:_0x5c806c,oldRelation:_0x278a7d,newRelation:_0x2a900c}=_0x53691c,_0x120c25=_0xd0cca[_0x3945d1(0x126)]({'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'drawingId':_0x322ed7});if(!_0x120c25)return!0x1;let _0x103eb2=_0x4db4b7[_0x3945d1(0x15e)](p)[_0x3945d1(0x144)](_0x5a500c,_0xfc70ae,_0x322ed7);if(!_0x103eb2)return!0x1;let _0x3990a1=_0x4db4b7['get'](t['ICommandService']),_0x220c51=_0x4db4b7[_0x3945d1(0x15e)](t[_0x3945d1(0xd8)]),_0x2f7f1a=_0x4db4b7[_0x3945d1(0x15e)](n[_0x3945d1(0x111)]),_0x59cf62={..._0x120c25[_0x3945d1(0xd9)],'width':_0x3b744c,'height':_0x17cc78,'left':_0x2be67f,'top':_0x8769bc,'flipX':_0x5bffb1,'flipY':_0x374a47,'angle':(_0x2defed=_0x195035==null?(_0x27430b=_0x120c25[_0x3945d1(0xd9)])==null?void 0x0:_0x27430b[_0x3945d1(0xfb)]:_0x195035)==null?0x0:_0x2defed},_0x556027=(0x0,r[_0x3945d1(0x17c)])(_0x59cf62,_0x238125),_0x1207e6=(0x0,r['transformToAxisAlignPosition'])(_0x59cf62,_0x238125),_0x47f2cb=_0x103eb2[_0x3945d1(0xca)](),_0x46d014=_0x103eb2['getShapeData'](),_0xee035d={'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'drawingId':_0x322ed7,'drawingType':t[_0x3945d1(0xbf)][_0x3945d1(0xdd)],'sheetTransform':_0x556027,'transform':_0x59cf62,'data':{'shapeType':_0x5c806c||_0x20d80d||_0x47f2cb,'shapeData':{..._0x46d014,'adjustValues':_0x1f95de||_0x1b3ad0||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0xc6)]),'relation':_0x2a900c||_0x278a7d||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0x149)])}},'axisAlignSheetTransform':_0x1207e6,'allowTransform':!0x0},{undo:_0x712035,redo:_0x492689,objects:_0x3174e6}=_0xd0cca[_0x3945d1(0xe0)]([_0xee035d]),_0x1b6bdd=_0x2f7f1a['onCommandExecute']({'id':r[_0x3945d1(0x159)]['id'],'params':{'unitId':_0x5a500c,'drawings':[_0xee035d]}}),_0x2089d7=[...(_0x9b7121=_0x1b6bdd['preRedos'])==null?[]:_0x9b7121,{'id':r[_0x3945d1(0xc7)]['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'op':_0x492689,'objects':_0x3174e6,'type':r[_0x3945d1(0xd2)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5a500c]},..._0x1b6bdd[_0x3945d1(0xfc)],{'id':_['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'shapeId':_0x322ed7,'shapeType':_0x5c806c,'shapeData':{'adjustValues':_0x1f95de,'relation':_0x2a900c}}}],_0x3835a3=[...(_0x5afa6e=_0x1b6bdd[_0x3945d1(0x157)])==null?[]:_0x5afa6e,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'op':_0x712035,'objects':_0x3174e6,'type':r[_0x3945d1(0xd2)][_0x3945d1(0x122)]}},{'id':r[_0x3945d1(0x12d)]['id'],'params':[_0x5a500c]},..._0x1b6bdd[_0x3945d1(0x168)],{'id':_['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'shapeId':_0x322ed7,'shapeType':_0x47f2cb,'shapeData':{..._0x46d014,'adjustValues':_0x1b3ad0||(_0x46d014==null?void 0x0:_0x46d014['adjustValues']),'relation':_0x278a7d||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0x149)])}}}];return(0x0,t[_0x3945d1(0xf1)])(_0x2089d7,_0x3990a1)[_0x3945d1(0x10b)]?(_0x220c51[_0x3945d1(0x175)]({'unitID':_0x5a500c,'undoMutations':_0x3835a3,'redoMutations':_0x2089d7}),!0x0):!0x1;}},C={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0x166),'handler':(_0x523243,_0x49614c)=>{const _0x1c1a49=_0x34634d;var _0x30cb95,_0x342eba;let _0x72cf93=(0x0,n[_0x1c1a49(0xde)])(_0x523243[_0x1c1a49(0x15e)](t['IUniverInstanceService']),_0x49614c);if(!_0x72cf93)return!0x1;let _0x2e55c0=_0x523243[_0x1c1a49(0x15e)](n[_0x1c1a49(0x164)]),{unitId:_0x2110d5,subUnitId:_0x53d6ef}=_0x72cf93,_0x3f35f8=_0x2e55c0['getSkeleton'](_0x2110d5,_0x53d6ef);if(!_0x3f35f8)return!0x1;let _0x11fd2e=_0x523243[_0x1c1a49(0x15e)](r['ISheetDrawingService']),{shapeId:_0x376969,width:_0x1c5e5a,height:_0x313058,left:_0x6370f,top:_0x3b8a4e,flipX:_0x133382,flipY:_0x220f3e,angle:_0x1e1237,oldAdjustValues:_0x9f7f9a,newAdjustValues:_0x48cff2,oldLineType:_0x474874,newLineType:_0x36b6db}=_0x49614c,_0x12acce=_0x11fd2e[_0x1c1a49(0x126)]({'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'drawingId':_0x376969});if(!_0x12acce)return!0x1;let _0x36b38e=_0x523243[_0x1c1a49(0x15e)](p)[_0x1c1a49(0x144)](_0x2110d5,_0x53d6ef,_0x376969);if(!_0x36b38e)return!0x1;let _0x52c832=_0x523243['get'](t['ICommandService']),_0x4cc426=_0x523243[_0x1c1a49(0x15e)](t[_0x1c1a49(0xd8)]),_0x33b046=_0x523243[_0x1c1a49(0x15e)](n[_0x1c1a49(0x111)]),_0x20459f={..._0x12acce[_0x1c1a49(0xd9)],'width':_0x1c5e5a,'height':_0x313058,'left':_0x6370f,'top':_0x3b8a4e,'flipX':_0x133382,'flipY':_0x220f3e,'angle':_0x1e1237},_0x457ca0=(0x0,r[_0x1c1a49(0x17c)])(_0x20459f,_0x3f35f8),_0xf9ad22=(0x0,r[_0x1c1a49(0xc1)])(_0x20459f,_0x3f35f8),_0x27d9a4=_0x36b38e[_0x1c1a49(0xca)](),_0x1b7a3f=_0x36b38e[_0x1c1a49(0x15f)](),_0x530416={'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'drawingId':_0x376969,'drawingType':t[_0x1c1a49(0xbf)][_0x1c1a49(0xdd)],'sheetTransform':_0x457ca0,'transform':_0x20459f,'data':{'shapeType':_0x36b6db||_0x474874||_0x27d9a4,'shapeData':{..._0x1b7a3f,'adjustValues':_0x48cff2||_0x9f7f9a||(_0x1b7a3f==null?void 0x0:_0x1b7a3f[_0x1c1a49(0xc6)])}},'axisAlignSheetTransform':_0xf9ad22,'allowTransform':!0x0},{undo:_0xd4a5dc,redo:_0x4ede00,objects:_0x282e16}=_0x11fd2e[_0x1c1a49(0xe0)]([_0x530416]),_0x5c7218=_0x33b046[_0x1c1a49(0xe5)]({'id':r[_0x1c1a49(0x159)]['id'],'params':{'unitId':_0x2110d5,'drawings':[_0x530416]}}),_0x5c0a8a=[...(_0x30cb95=_0x5c7218[_0x1c1a49(0xb1)])==null?[]:_0x30cb95,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'op':_0x4ede00,'objects':_0x282e16,'type':r[_0x1c1a49(0xd2)][_0x1c1a49(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2110d5]},..._0x5c7218['redos'],{'id':_['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'shapeId':_0x376969,'shapeType':_0x36b6db,'shapeData':{'adjustValues':_0x48cff2}}}],_0x16e814=[...(_0x342eba=_0x5c7218[_0x1c1a49(0x157)])==null?[]:_0x342eba,{'id':r[_0x1c1a49(0xc7)]['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'op':_0xd4a5dc,'objects':_0x282e16,'type':r[_0x1c1a49(0xd2)][_0x1c1a49(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2110d5]},..._0x5c7218['undos'],{'id':_['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'shapeId':_0x376969,'shapeType':_0x27d9a4,'shapeData':{..._0x1b7a3f,'adjustValues':_0x9f7f9a||(_0x1b7a3f==null?void 0x0:_0x1b7a3f[_0x1c1a49(0xc6)])}}}];return(0x0,t[_0x1c1a49(0xf1)])(_0x5c0a8a,_0x52c832)[_0x1c1a49(0x10b)]?(_0x4cc426[_0x1c1a49(0x175)]({'unitID':_0x2110d5,'undoMutations':_0x16e814,'redoMutations':_0x5c0a8a}),!0x0):!0x1;}},w={'id':_0x34634d(0xf0),'type':t[_0x34634d(0xfd)][_0x34634d(0x124)],'handler':(_0xb5dd37,_0xead57f)=>{const _0x2b57cc=_0x34634d;let {unitId:_0x1a27f6,subUnitId:_0x239e3a,shapeType:_0x35fce1,shapeId:_0x37d857,shapeData:_0x435c36}=_0xead57f,_0x13be4f=_0xb5dd37[_0x2b57cc(0x15e)](p)[_0x2b57cc(0x144)](_0x1a27f6,_0x239e3a,_0x37d857);return _0x13be4f&&(_0x13be4f[_0x2b57cc(0x171)](_0x35fce1),_0x435c36&&(_0x13be4f==null||_0x13be4f[_0x2b57cc(0x133)](_0x435c36))),!0x0;}},T={'id':'sheet.command.update-shape-type','type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'handler':(_0x260511,_0x346a6b)=>{const _0x3e26c0=_0x34634d;if(!_0x346a6b)return!0x1;let _0x3ae0d7=_0x260511[_0x3e26c0(0x15e)](t[_0x3e26c0(0x17b)]),_0x36c79a=_0x260511[_0x3e26c0(0x15e)](p),_0x4c5f78=_0x260511[_0x3e26c0(0x15e)](t[_0x3e26c0(0xd8)]),_0x64cc85=[],_0x11742a=[],{unitId:_0x34476d,subUnitId:_0x3e6543,shapeId:_0x29bf93,shapeType:_0xae63b2,shapeData:_0xe0206d}=_0x346a6b,_0x36af86=_0x36c79a[_0x3e26c0(0x144)](_0x34476d,_0x3e6543,_0x29bf93);if(_0x36af86){let _0xdfe883=_0x36af86[_0x3e26c0(0xca)](),_0x3f8241=Object[_0x3e26c0(0xf7)]({},_0x36af86[_0x3e26c0(0x15f)]()),_0x2f3292={'unitId':_0x34476d,'subUnitId':_0x3e6543,'shapeId':_0x29bf93,'shapeType':_0xae63b2,'shapeData':_0xe0206d},_0x132274={'unitId':_0x34476d,'subUnitId':_0x3e6543,'shapeId':_0x29bf93,'shapeType':_0xdfe883,'shapeData':_0x3f8241};return _0x64cc85['push']({'id':w['id'],'params':_0x2f3292}),_0x11742a[_0x3e26c0(0x135)]({'id':w['id'],'params':_0x132274}),_0x64cc85['every'](_0x21a7c5=>_0x3ae0d7[_0x3e26c0(0x16a)](_0x21a7c5['id'],_0x21a7c5[_0x3e26c0(0x16c)]))&&_0x4c5f78[_0x3e26c0(0x175)]({'unitID':_0x34476d,'redoMutations':[..._0x64cc85],'undoMutations':[..._0x11742a]}),!0x0;}return!0x1;}};var E=_0x34634d(0x14d),D=_0x34634d(0x170);const O={};let k=class extends t['Disposable']{constructor(_0x1c4e61,_0xca095a,_0x563382,_0x2ac9f1,_0x63cead){const _0x112db3=_0x34634d;super(),this[_0x112db3(0xb9)]=_0x1c4e61,this['_sheetInterceptorService']=_0xca095a,this[_0x112db3(0xbb)]=_0x563382,this[_0x112db3(0x13c)]=_0x2ac9f1,this[_0x112db3(0x163)]=_0x63cead,this[_0x112db3(0xc3)](),this[_0x112db3(0xd0)]();}[_0x34634d(0xc3)](){const _0x107f2a=_0x34634d;[g,v,y,b,x,S,C,m,h,w,_][_0x107f2a(0x13f)](_0x51a3f3=>this[_0x107f2a(0x139)](this[_0x107f2a(0xb9)]['registerCommand'](_0x51a3f3)));}[_0x34634d(0xd0)](){const _0x5ea71b=_0x34634d;this[_0x5ea71b(0x139)](this[_0x5ea71b(0x108)][_0x5ea71b(0x150)]({'getMutations':_0x469b5b=>{const _0xe1df6=_0x5ea71b;if(_0x469b5b['id']===r[_0xe1df6(0x116)]['id']){let {drawings:_0x546e4f}=_0x469b5b[_0xe1df6(0x16c)],_0x49d44c=_0x546e4f[_0xe1df6(0x17a)](_0xada922=>_0xada922[_0xe1df6(0xe2)]===t['DrawingTypeEnum'][_0xe1df6(0xdd)]);if(_0x49d44c['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4a698e=[],_0x133558=[];return _0x49d44c[_0xe1df6(0x13f)](_0x3df0d1=>{const _0x37b657=_0xe1df6;let {unitId:_0x3171f3,subUnitId:_0x37f143,drawingId:_0x40cd0}=_0x3df0d1,_0x134126=this[_0x37b657(0x13c)][_0x37b657(0x144)](_0x3171f3,_0x37f143,_0x40cd0);if(!_0x134126)throw TypeError(_0x37b657(0xf6)+_0x134126);_0x4a698e[_0x37b657(0x135)]({'id':h['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x40cd0}}),_0x133558[_0x37b657(0x135)]({'id':m['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x40cd0,'shapeType':_0x134126[_0x37b657(0xca)](),'shapeData':_0x134126['getShapeData']()}});let _0x56a6a7=this[_0x37b657(0x13c)]['getBasicShapeRelation'](_0x3171f3,_0x37f143,_0x40cd0);if(_0x56a6a7)for(let _0x471fe5 of _0x56a6a7){let _0x5ca9c6=_0x471fe5[_0x37b657(0xeb)],_0x24cfa7=_0x471fe5[_0x37b657(0x110)],_0x536397=_0x24cfa7?{'from':void 0x0}:{'to':void 0x0},_0x4db8bc=_0x24cfa7?{'from':{'shapeId':_0x471fe5['shapeId'],'cxnIndex':_0x471fe5['cxnIndex']}}:{'to':{'shapeId':_0x471fe5[_0x37b657(0x155)],'cxnIndex':_0x471fe5[_0x37b657(0x15c)]}};_0x4a698e[_0x37b657(0x135)]({'id':_['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x5ca9c6,'shapeData':{'relation':_0x536397}}}),_0x133558[_0x37b657(0x135)]({'id':_['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x5ca9c6,'shapeData':{'relation':_0x4db8bc}}});}}),{'preRedos':_0x4a698e,'redos':[],'preUndos':[],'undos':_0x133558};}if(_0x469b5b['id']===r[_0xe1df6(0x159)]['id']){let {drawings:_0xfb5d88}=_0x469b5b[_0xe1df6(0x16c)],_0x248f7e=_0xfb5d88['filter'](_0xc4b33=>_0xc4b33[_0xe1df6(0xe2)]===t[_0xe1df6(0xbf)][_0xe1df6(0xdd)]);if(_0x248f7e[_0xe1df6(0xdf)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2598e6=[],_0x17267a=[];for(let _0x37adb7 of _0x248f7e){let {unitId:_0x11eb4e,subUnitId:_0x3aa14e,drawingId:_0x1b6c39,transform:_0x5a6952}=_0x37adb7;if(!_0x11eb4e||!_0x3aa14e||!_0x1b6c39||!_0x5a6952)continue;let _0x4d0bb0=this['_sheetsShapeService'][_0xe1df6(0x144)](_0x11eb4e,_0x3aa14e,_0x1b6c39);if(!_0x4d0bb0)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x4d0bb0);if((0x0,e[_0xe1df6(0x14c)])(_0x4d0bb0[_0xe1df6(0xca)]())){let _0x2941ff=this[_0xe1df6(0x13c)][_0xe1df6(0x105)](_0x11eb4e,_0x3aa14e,_0x1b6c39);_0x2941ff&&(_0x2598e6[_0xe1df6(0x135)]({'id':_['id'],'params':{'unitId':_0x11eb4e,'subUnitId':_0x3aa14e,'shapeId':_0x1b6c39,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x17267a[_0xe1df6(0x135)]({'id':_['id'],'params':{'unitId':_0x11eb4e,'subUnitId':_0x3aa14e,'shapeId':_0x1b6c39,'shapeData':{'relation':_0x2941ff}}}));}else{let _0x46c9c7=this['_sheetsShapeService'][_0xe1df6(0xed)](_0x11eb4e,_0x3aa14e,_0x1b6c39);if(_0x46c9c7&&_0x46c9c7[_0xe1df6(0xdf)]>0x0)for(let _0x2f936b of _0x46c9c7){let _0x10b23f=_0x2f936b['lineShapeId'],_0x88e54a=_0x2f936b[_0xe1df6(0x110)],_0x38500f=this[_0xe1df6(0x13c)][_0xe1df6(0x144)](_0x11eb4e,_0x3aa14e,_0x10b23f);if(!_0x38500f)continue;let _0x1321ba=_0x38500f['getStartConnectInfo'](),_0x2b7832=_0x38500f[_0xe1df6(0x174)]();_0x1321ba&&_0x2b7832?this[_0xe1df6(0xb6)](_0x11eb4e,_0x3aa14e,_0x10b23f,_0x38500f,_0x1321ba,_0x2b7832,_0x2598e6,_0x17267a,_0x1b6c39,_0x5a6952):this[_0xe1df6(0xe8)](_0x11eb4e,_0x3aa14e,_0x10b23f,_0x38500f,_0x88e54a?_0x1321ba:_0x2b7832,_0x88e54a,_0x2598e6,_0x17267a,_0x1b6c39,_0x5a6952);}}}return{'preRedos':[],'redos':_0x2598e6,'preUndos':_0x17267a,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x32bd5a,_0x3d7f8c,_0x161e61,_0x5502bc,_0x4349ff){const _0x1f47fe=_0x34634d;if(!_0x3d7f8c||!_0x161e61)return null;let {shapeId:_0x26c8f4,cxnIndex:_0x1e0b27}=_0x32bd5a,_0x229d06=this[_0x1f47fe(0x13c)][_0x1f47fe(0x144)](_0x3d7f8c,_0x161e61,_0x26c8f4);if(!_0x229d06)return null;let _0x3adece=this[_0x1f47fe(0x163)][_0x1f47fe(0x126)]({'unitId':_0x3d7f8c,'subUnitId':_0x161e61,'drawingId':_0x26c8f4});if(!(_0x3adece!=null&&_0x3adece[_0x1f47fe(0xd9)]))return null;let {left:_0x737009=0x0,top:_0x4271b5=0x0,width:_0x5ce06c=0x0,height:_0x875194=0x0,flipX:_0x47148c=!0x1,flipY:_0x5c9bb3=!0x1,angle:_0x566a3b}=_0x3adece[_0x1f47fe(0xd9)];if(_0x4349ff&&_0x5502bc===_0x26c8f4){var _0x3a6ed0,_0x319493,_0x499a3f,_0x6708cc,_0x1d6927,_0x5ef722,_0x490853;_0x737009=(_0x3a6ed0=_0x4349ff[_0x1f47fe(0x160)])==null?_0x737009:_0x3a6ed0,_0x4271b5=(_0x319493=_0x4349ff[_0x1f47fe(0x152)])==null?_0x4271b5:_0x319493,_0x5ce06c=(_0x499a3f=_0x4349ff[_0x1f47fe(0x119)])==null?_0x5ce06c:_0x499a3f,_0x875194=(_0x6708cc=_0x4349ff[_0x1f47fe(0x169)])==null?_0x875194:_0x6708cc,_0x47148c=(_0x1d6927=_0x4349ff['flipX'])==null?_0x47148c:_0x1d6927,_0x5c9bb3=(_0x5ef722=_0x4349ff[_0x1f47fe(0x13a)])==null?_0x5c9bb3:_0x5ef722,_0x566a3b=(_0x490853=_0x4349ff['angle'])==null?_0x566a3b:_0x490853;}_0x229d06[_0x1f47fe(0x136)]({'width':_0x5ce06c,'height':_0x875194});let _0x20a0b8=_0x229d06[_0x1f47fe(0xd1)]()[_0x1f47fe(0x179)](_0x46adf3=>_0x46adf3[_0x1f47fe(0xd7)]===_0x1e0b27);if(!_0x20a0b8)return null;let _0x4419b8=_0x47148c?_0x5ce06c-_0x20a0b8['x']:_0x20a0b8['x'],_0x57143a=_0x5c9bb3?_0x875194-_0x20a0b8['y']:_0x20a0b8['y'];if(_0x566a3b!==0x0&&_0x566a3b!=null){let _0x21158b=_0x566a3b*Math['PI']/0xb4,_0x40f1cd=Math[_0x1f47fe(0x16d)](_0x21158b),_0x306003=Math[_0x1f47fe(0x120)](_0x21158b),_0x43827a=_0x5ce06c/0x2,_0x30df7a=_0x875194/0x2,_0x4da776=_0x4419b8-_0x43827a,_0x409269=_0x57143a-_0x30df7a;_0x4419b8=_0x43827a+_0x4da776*_0x40f1cd-_0x409269*_0x306003,_0x57143a=_0x30df7a+_0x4da776*_0x306003+_0x409269*_0x40f1cd;}_0x4419b8+=_0x737009,_0x57143a+=_0x4271b5;let _0x24a3bb=_0x20a0b8[_0x1f47fe(0xcd)]/0xea60;_0x47148c&&(_0x24a3bb=0xb4-_0x24a3bb),_0x5c9bb3&&(_0x24a3bb=-_0x24a3bb),_0x24a3bb+=_0x566a3b||0x0,_0x24a3bb=(_0x24a3bb%0x168+0x168)%0x168;let _0x55347c=(0x0,e['getBasicShapeRotateBound'])({'left':_0x737009,'top':_0x4271b5,'width':_0x5ce06c,'height':_0x875194},_0x566a3b||0x0);return{'point':{'x':_0x4419b8,'y':_0x57143a},'angle':_0x24a3bb,'bounds':_0x55347c};}[_0x34634d(0xb6)](_0x80165a,_0xe4395,_0x34836d,_0x41259f,_0x37bed1,_0x435ed6,_0x40586a,_0x4febbd,_0x563e3c,_0x167320){const _0x4dfffa=_0x34634d;let _0x15b8bd=this[_0x4dfffa(0xbb)][_0x4dfffa(0xba)](_0x80165a,_0xe4395);if(!_0x15b8bd)return;let _0x470524=_0x41259f[_0x4dfffa(0xe7)](),_0xda751c=_0x41259f[_0x4dfffa(0x15d)](),_0x5dbb31={},_0x4e8c24={};_0xda751c[_0x4dfffa(0x13f)](_0x9a2b0=>{let _0x4a479a=_0x41259f['getAdjustValueByName'](_0x9a2b0);_0x4e8c24[_0x9a2b0]=_0x4a479a==null?0x0:_0x4a479a;});let _0x5a23b6=this[_0x4dfffa(0x161)](_0x37bed1,_0x80165a,_0xe4395,_0x563e3c,_0x167320),_0x481dbd=this[_0x4dfffa(0x161)](_0x435ed6,_0x80165a,_0xe4395,_0x563e3c,_0x167320);if(_0x5a23b6&&_0x481dbd){let _0x3c490d=_0x41259f['getShapeType'](),_0x2cf65e=(0x0,e['routeConnectorLineShape'])(_0x5a23b6,_0x481dbd,_0x3c490d),_0x492e5e=_0x3c490d;if(_0x2cf65e){let _0x581d74=(0x0,e[_0x4dfffa(0x13b)])(_0x2cf65e,_0x41259f[_0x4dfffa(0xca)]()),_0x5533b3=this[_0x4dfffa(0x163)][_0x4dfffa(0x127)](_0x80165a,_0xe4395);if(_0x5533b3&&_0x5533b3[_0x34836d]){let _0x2a5e04=_0x5533b3[_0x34836d];_0x492e5e=_0x581d74[_0x4dfffa(0x14e)];for(let [_0x483ac6,_0x3ae797]of Object[_0x4dfffa(0xb0)](_0x581d74['adjustValues']))_0x5dbb31[_0x483ac6]=_0x3ae797;let _0x2e1aac={..._0x2a5e04[_0x4dfffa(0xd9)],'width':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x119)],'height':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x169)],'left':_0x581d74['worldRect'][_0x4dfffa(0x160)],'top':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x152)],'flipX':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x106)],'flipY':_0x581d74['worldRect'][_0x4dfffa(0x13a)],'angle':_0x581d74[_0x4dfffa(0x140)]},_0x2a8280=(0x0,r['transformToDrawingPosition'])(_0x2e1aac,_0x15b8bd),_0x58d2e0=(0x0,r['transformToAxisAlignPosition'])(_0x2e1aac,_0x15b8bd),_0x45c4f7={'unitId':_0x80165a,'subUnitId':_0xe4395,'drawingType':t[_0x4dfffa(0xbf)][_0x4dfffa(0xdd)],'drawingId':_0x34836d,'transform':_0x2e1aac,'sheetTransform':_0x2a8280,'axisAlignSheetTransform':_0x58d2e0},{unitId:_0x36a0d9,subUnitId:_0x4f32f3,undo:_0x492e96,redo:_0x145fe2,objects:_0xa6e587}=this[_0x4dfffa(0x163)][_0x4dfffa(0xe0)]([_0x45c4f7]);_0x40586a[_0x4dfffa(0x135)]({'id':r[_0x4dfffa(0xc7)]['id'],'params':{'unitId':_0x36a0d9,'subUnitId':_0x4f32f3,'op':_0x145fe2,'objects':_0xa6e587,'type':r['DrawingApplyType'][_0x4dfffa(0x122)]}}),_0x4febbd['push']({'id':r[_0x4dfffa(0xc7)]['id'],'params':{'unitId':_0x36a0d9,'subUnitId':_0x4f32f3,'op':_0x492e96,'objects':_0xa6e587,'type':r[_0x4dfffa(0xd2)]['UPDATE']}});}_0x41259f['removeLinePoints']();}_0x40586a[_0x4dfffa(0x135)]({'id':_['id'],'params':{'unitId':_0x80165a,'subUnitId':_0xe4395,'shapeId':_0x34836d,'shapeType':_0x492e5e,'shapeData':{'adjustValues':_0x5dbb31,'relation':_0x470524}}}),_0x4febbd[_0x4dfffa(0x135)]({'id':_['id'],'params':{'unitId':_0x80165a,'subUnitId':_0xe4395,'shapeId':_0x34836d,'shapeType':_0x3c490d,'shapeData':{'adjustValues':_0x4e8c24,'relation':_0x470524}}});}}[_0x34634d(0xe8)](_0x5bef6d,_0x131c04,_0x34feb3,_0x5ebbbf,_0x22cdf3,_0x39a751,_0x5d1337,_0x31ee8c,_0x598c8d,_0x41ac0b){const _0x16f864=_0x34634d;var _0x5f432e;if(!_0x22cdf3)return;let _0x5f0184=this['_sheetSkeletonService'][_0x16f864(0xba)](_0x5bef6d,_0x131c04);if(!_0x5f0184)return;let _0x557628=(_0x5f432e=this[_0x16f864(0x163)][_0x16f864(0x126)]({'unitId':_0x5bef6d,'subUnitId':_0x131c04,'drawingId':_0x598c8d}))==null?void 0x0:_0x5f432e['transform'];if(!_0x557628)return;let _0x412457=_0x557628[_0x16f864(0x160)]!==_0x41ac0b[_0x16f864(0x160)]||_0x557628[_0x16f864(0x152)]!==_0x41ac0b[_0x16f864(0x152)],_0x5a996c=_0x557628[_0x16f864(0x119)]!==_0x41ac0b[_0x16f864(0x119)]||_0x557628['height']!==_0x41ac0b[_0x16f864(0x169)],_0x4d23ea=_0x557628[_0x16f864(0x106)]!==_0x41ac0b['flipX']||_0x557628[_0x16f864(0x13a)]!==_0x41ac0b[_0x16f864(0x13a)],_0x37dd3b=_0x557628[_0x16f864(0xfb)]!==_0x41ac0b['angle'];if(_0x412457&&!_0x5a996c&&!_0x4d23ea&&!_0x37dd3b){var _0x9b6c7a,_0x11abe3,_0x4b4bc9,_0x4b7237;let _0x541995=((_0x9b6c7a=_0x41ac0b[_0x16f864(0x160)])==null?0x0:_0x9b6c7a)-((_0x11abe3=_0x557628['left'])==null?0x0:_0x11abe3),_0x1c01f6=((_0x4b4bc9=_0x41ac0b[_0x16f864(0x152)])==null?0x0:_0x4b4bc9)-((_0x4b7237=_0x557628[_0x16f864(0x152)])==null?0x0:_0x4b7237),_0xba6a81=this[_0x16f864(0x163)][_0x16f864(0x127)](_0x5bef6d,_0x131c04);if(_0xba6a81&&_0xba6a81[_0x34feb3]){var _0x14bcb5,_0x141ef9,_0x9ad33c,_0x4d941a;let _0x4cf3a8=_0xba6a81[_0x34feb3],_0x3437ae={..._0x4cf3a8[_0x16f864(0xd9)],'left':((_0x14bcb5=(_0x141ef9=_0x4cf3a8[_0x16f864(0xd9)])==null?void 0x0:_0x141ef9[_0x16f864(0x160)])==null?0x0:_0x14bcb5)+_0x541995,'top':((_0x9ad33c=(_0x4d941a=_0x4cf3a8[_0x16f864(0xd9)])==null?void 0x0:_0x4d941a[_0x16f864(0x152)])==null?0x0:_0x9ad33c)+_0x1c01f6},_0x19d9fb=(0x0,r[_0x16f864(0x17c)])(_0x3437ae,_0x5f0184),_0x177fe9=(0x0,r[_0x16f864(0xc1)])(_0x3437ae,_0x5f0184),_0x944607={'unitId':_0x5bef6d,'subUnitId':_0x131c04,'drawingType':t[_0x16f864(0xbf)][_0x16f864(0xdd)],'drawingId':_0x34feb3,'transform':_0x3437ae,'sheetTransform':_0x19d9fb,'axisAlignSheetTransform':_0x177fe9},{unitId:_0x1844e5,subUnitId:_0x44f793,undo:_0x5c148d,redo:_0x45f075,objects:_0x501ff6}=this[_0x16f864(0x163)][_0x16f864(0xe0)]([_0x944607]);_0x5d1337[_0x16f864(0x135)]({'id':r[_0x16f864(0xc7)]['id'],'params':{'unitId':_0x1844e5,'subUnitId':_0x44f793,'op':_0x45f075,'objects':_0x501ff6,'type':r[_0x16f864(0xd2)][_0x16f864(0x122)]}}),_0x31ee8c[_0x16f864(0x135)]({'id':r[_0x16f864(0xc7)]['id'],'params':{'unitId':_0x1844e5,'subUnitId':_0x44f793,'op':_0x5c148d,'objects':_0x501ff6,'type':r['DrawingApplyType'][_0x16f864(0x122)]}});}}else{let _0x4b7542=_0x5ebbbf[_0x16f864(0x123)](),_0x6d59c9=_0x5ebbbf[_0x16f864(0x174)]();this[_0x16f864(0xb6)](_0x5bef6d,_0x131c04,_0x34feb3,_0x5ebbbf,_0x4b7542,_0x6d59c9,_0x5d1337,_0x31ee8c,_0x598c8d,_0x41ac0b);}}};k=f([d(0x0,t['ICommandService']),d(0x1,(0x0,t[_0x34634d(0xe1)])(n['SheetInterceptorService'])),d(0x2,(0x0,t[_0x34634d(0xe1)])(n['SheetSkeletonService'])),d(0x3,(0x0,t[_0x34634d(0xe1)])(p)),d(0x4,(0x0,t['Inject'])(a[_0x34634d(0xc8)]))],k);let A=class extends t[_0x34634d(0x16e)]{constructor(_0x311f16=O,_0x2061fd,_0x224f40,_0x5cf343){const _0x4418c3=_0x34634d;super(),this[_0x4418c3(0xb5)]=_0x311f16,this[_0x4418c3(0x131)]=_0x2061fd,this[_0x4418c3(0xb9)]=_0x224f40,this['_configService']=_0x5cf343;let {..._0x38edbd}=(0x0,t[_0x4418c3(0xc5)])({},O,this[_0x4418c3(0xb5)]);this[_0x4418c3(0x128)][_0x4418c3(0x16f)]('sheets-shape.config',_0x38edbd);}[_0x34634d(0x11b)](){const _0x39d5ab=_0x34634d;let _0x18f6c7=this[_0x39d5ab(0x131)];[[u],[p],[k]][_0x39d5ab(0x13f)](_0x5831fe=>_0x18f6c7[_0x39d5ab(0x17d)](_0x5831fe)),(0x0,t['touchDependencies'])(_0x18f6c7,[[p],[k]]);}};l(A,_0x34634d(0x118),t['UniverInstanceType']['UNIVER_SHEET']),l(A,_0x34634d(0x100),_0x34634d(0xdc)),l(A,'packageName',E),l(A,_0x34634d(0x138),D),A=f([(0x0,t[_0x34634d(0x11e)])(i['UniverLicensePlugin']),d(0x1,(0x0,t[_0x34634d(0xe1)])(t[_0x34634d(0x156)])),d(0x2,t['ICommandService']),d(0x3,t[_0x34634d(0x107)])],A),exports['DEFAULT_SHAPE_HEIGHT']=0xc8,exports[_0x34634d(0xe3)]=0xc8,exports[_0x34634d(0x14b)]=g,exports[_0x34634d(0xc2)]=m,exports['RemoveSheetsShapeMutation']=h,exports[_0x34634d(0xff)]=v,exports[_0x34634d(0x16b)]=b,exports[_0x34634d(0xdb)]=x,Object[_0x34634d(0x158)](exports,_0x34634d(0xbc),{'enumerable':!0x0,'get':function(){return p;}}),exports['ToggleSheetsShapeFlipCommand']=y,Object[_0x34634d(0x158)](exports,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return A;}}),exports['UpdateConnectorRelationCommand']=S,exports[_0x34634d(0xe9)]=C,exports['UpdateSheetsShapeDataMutation']=_,exports[_0x34634d(0x145)]=T,exports['UpdateSheetsShapeTypeMutation']=w;
|
|
1
|
+
const _0x5cc9e4=_0x865d;(function(_0x42f119,_0x1afc6a){const _0x44d5f0=_0x865d,_0x311f18=_0x42f119();while(!![]){try{const _0x424ce0=-parseInt(_0x44d5f0(0x1d1))/0x1+parseInt(_0x44d5f0(0x1d3))/0x2+parseInt(_0x44d5f0(0x279))/0x3*(-parseInt(_0x44d5f0(0x1c2))/0x4)+parseInt(_0x44d5f0(0x220))/0x5*(parseInt(_0x44d5f0(0x209))/0x6)+parseInt(_0x44d5f0(0x26c))/0x7+parseInt(_0x44d5f0(0x255))/0x8+-parseInt(_0x44d5f0(0x234))/0x9*(parseInt(_0x44d5f0(0x1d8))/0xa);if(_0x424ce0===_0x1afc6a)break;else _0x311f18['push'](_0x311f18['shift']());}catch(_0x4c31d8){_0x311f18['push'](_0x311f18['shift']());}}}(_0x21e7,0x2d837),Object[_0x5cc9e4(0x1fc)](exports,Symbol['toStringTag'],{'value':_0x5cc9e4(0x24a)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs-pro/license'),a=require('@univerjs/drawing');function o(_0xbf74f0){'@babel/helpers - typeof';const _0x2cf07c=_0x5cc9e4;return o=typeof Symbol==_0x2cf07c(0x1bc)&&typeof Symbol[_0x2cf07c(0x27c)]==_0x2cf07c(0x26b)?function(_0xc05915){return typeof _0xc05915;}:function(_0x313a16){const _0x333c69=_0x2cf07c;return _0x313a16&&typeof Symbol==_0x333c69(0x1bc)&&_0x313a16[_0x333c69(0x1e0)]===Symbol&&_0x313a16!==Symbol['prototype']?'symbol':typeof _0x313a16;},o(_0xbf74f0);}function s(_0x41c9de,_0x167b17){const _0x474785=_0x5cc9e4;if(o(_0x41c9de)!='object'||!_0x41c9de)return _0x41c9de;var _0x1bb1ef=_0x41c9de[Symbol[_0x474785(0x243)]];if(_0x1bb1ef!==void 0x0){var _0x2b6b56=_0x1bb1ef[_0x474785(0x200)](_0x41c9de,_0x167b17||_0x474785(0x262));if(o(_0x2b6b56)!='object')return _0x2b6b56;throw TypeError(_0x474785(0x1e6));}return(_0x167b17===_0x474785(0x26e)?String:Number)(_0x41c9de);}function c(_0x4a3ee8){const _0x13fc5a=_0x5cc9e4;var _0x44a101=s(_0x4a3ee8,'string');return o(_0x44a101)==_0x13fc5a(0x26b)?_0x44a101:_0x44a101+'';}function l(_0x29d7be,_0x23bcec,_0x4d095b){const _0x3abaf9=_0x5cc9e4;return(_0x23bcec=c(_0x23bcec))in _0x29d7be?Object[_0x3abaf9(0x1fc)](_0x29d7be,_0x23bcec,{'value':_0x4d095b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29d7be[_0x23bcec]=_0x4d095b,_0x29d7be;}function _0x21e7(){const _0x4141a5=['function','_getConnectPointInfo','data','registerPluginResource','_injector','generateRandomId','32xbEMce','IUniverInstanceService','sheet.command.insert-shape','_commandService','UPDATE','UpdateSheetsShapeDataMutation','getConnectionSiteList','fromJSON','position','INSERT','length','forEach','UNIVER_SHEET','COMMAND','getShapeTextData','239760cwAwPB','_sheetsShapeService','164352sLsTAH','getCellWithCoordByIndex','getAdjustNames','getSkeleton','getShapeModel','1230lsVunG','result','UpdateSheetsShapeTypeCommand','_linesIds','SheetsShapeService','keys','_groupIds','_initCommandInterceptor','constructor','IDrawingManagerService','relation','merge','startX','getLineShapeRelation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_sheetSkeletonService','IUndoRedoService','_config','getCellIndexAndOffsetByPosition','InsertSheetDrawingCommand','1.0.0-insiders.20260629-12f2e44','dispose','cos','ISheetDrawingService','filter','from','ClearSheetDrawingTransformerOperation','getBasicShapeType','_drawingManagerService','rotateEnabled','RemoveSheetDrawingCommand','push','borderEnabled','_addLineFollowShapeUpdates','getBatchAddOp','InsertShapeCommand','defineProperty','params','ensureSkeleton','onStarting','call','_shapes','onCommandExecute','touchDependencies','adjustValues','width','sheet.command.update-connector-relation','CommandType','set','4926AEPyQw','cxnIndex','getName','_addLineRerouteUpdates','sheet.command.update-shape-type','UniverSheetsShapePlugin','addShape','clear','setShapeData','angle','_shapeModelManagerMap','getShapeDisplayNames','preRedos','routeConnectorLineShape','_initSnapshot','ICommandService','getBasicShapeRelation','interceptCommand','lineType','DRAWING_SHAPE','getShapeRelation','removeLinePoints','sheet.mutation.update-shape-data','715KoBkqh','transform','getShapeType','find','drawingType','_serializeShapeForUnit','SheetSkeletonService','setShapeType','IConfigService','getDrawingByParam','shapeName','SHEET_SHAPE_PLUGIN','_disposed','preUndos','MUTATION','sheet.mutation.insert-shape','delete','createUniqueShapeName','index','getEndConnectInfo','3897ZtlhLE','entries','getShapeData','height','DEFAULT_SHAPE_HEIGHT','getDrawingData','_ensureShapeModelManager','Inject','transformToAxisAlignPosition','getStartConnectInfo','setConfig','isConnectorShape','flipY','hasShape','isLineShape','toPrimitive','sin','DrawingTypeEnum','every','SheetInterceptorService','parse','get','Module','sheet.mutation.update-shape-type','registerCommand','pushUndoRedo','Plugin','transformToDrawingPosition','Disposable','DrawingApplyType','values','sheet.command.set-shape-rotate','_configService','2313568kHDPJD','getBatchUpdateOp','SetSheetDrawingCommand','updateContext','removeShape','getOwnPropertyDescriptor','flipX','sheet.command.set-shape-drawing-data','ShapeModel','Injector','UpdateLineShapeResizeCommand','toJSON','getAdjustValueByName','default','shapeId','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','undos','@univerjs-pro/sheets-shape','SetDrawingApplyMutation','sequenceExecute','disposeWithMe','lineShapeId','symbol','2153053HDPYPG','getSheetCommandTarget','string','isHorizontal','SetSheetsShapeRotateCommand','resizeEnabled','_initCommands','sheet.command.update-line-shape-resize','SetSheetsShapeTextVerticalToggleCommand','fill','DEFAULT_SHAPE_WIDTH','top','pluginName','118842doOvjp','decorate','add','iterator','UpdateConnectorRelationCommand','_resourcesManagerService','redos','SetShapeDrawingDataCommand','rotation','type','range','_deserializeShapeForUnit','getShapeDataById','sheet.mutation.remove-shape','ToggleSheetsShapeFlipCommand','worldRect','REMOVE','left','ang','has','isFrom'];_0x21e7=function(){return _0x4141a5;};return _0x21e7();}var u=class extends t[_0x5cc9e4(0x250)]{constructor(){const _0x2b8378=_0x5cc9e4;super(),l(this,_0x2b8378(0x201),new Map()),l(this,'_linesIds',new Set()),l(this,'_groupIds',new Set());}[_0x5cc9e4(0x20f)](_0x16969b,_0x374647,_0x1f5f90,_0x33bb1a){const _0x21366c=_0x5cc9e4;let _0x5d701f=new e[(_0x21366c(0x25d))](_0x16969b,_0x374647,_0x1f5f90,_0x33bb1a);return this[_0x21366c(0x201)][_0x21366c(0x208)](_0x374647,_0x5d701f),(0x0,e[_0x21366c(0x23f)])(_0x16969b)&&this[_0x21366c(0x1db)][_0x21366c(0x27b)](_0x374647),_0x5d701f;}[_0x5cc9e4(0x219)](_0x360d88){const _0x40e3ea=_0x5cc9e4;let _0x4bf844=[];for(let _0x500a5 of this[_0x40e3ea(0x1db)]){let _0x5ee283=this[_0x40e3ea(0x201)][_0x40e3ea(0x249)](_0x500a5);if(_0x5ee283){let _0x1112ab=_0x5ee283[_0x40e3ea(0x21d)]();if(_0x1112ab){var _0x332584,_0x256199;((_0x332584=_0x1112ab[_0x40e3ea(0x1f1)])==null?void 0x0:_0x332584[_0x40e3ea(0x263)])===_0x360d88&&_0x4bf844[_0x40e3ea(0x1f7)]({..._0x1112ab[_0x40e3ea(0x1f1)],'lineShapeId':_0x500a5,'isFrom':!0x0}),((_0x256199=_0x1112ab['to'])==null?void 0x0:_0x256199[_0x40e3ea(0x263)])===_0x360d88&&_0x4bf844[_0x40e3ea(0x1f7)]({..._0x1112ab['to'],'lineShapeId':_0x500a5,'isFrom':!0x1});}}}return _0x4bf844;}['getLineShapeRelation'](_0x20112d){const _0x2899c1=_0x5cc9e4;let _0x2281dd=this[_0x2899c1(0x201)][_0x2899c1(0x249)](_0x20112d);if(_0x2281dd)return _0x2281dd['getShapeRelation']();}['getShapeType'](_0x4aff34){const _0x56a7b5=_0x5cc9e4;let _0x10dd2c=this[_0x56a7b5(0x201)]['get'](_0x4aff34);if(_0x10dd2c)return _0x10dd2c[_0x56a7b5(0x222)]();}[_0x5cc9e4(0x241)](_0x1f304e){const _0x52fd52=_0x5cc9e4;return this['_shapes'][_0x52fd52(0x1ba)](_0x1f304e);}[_0x5cc9e4(0x214)](){const _0x8bc74d=_0x5cc9e4;return Array[_0x8bc74d(0x1f1)](this[_0x8bc74d(0x201)][_0x8bc74d(0x252)]())['map'](_0x402b9d=>_0x402b9d[_0x8bc74d(0x20b)]()||_0x402b9d['getId']());}[_0x5cc9e4(0x259)](_0x12a427){const _0x11300b=_0x5cc9e4;let _0x114f36=this[_0x11300b(0x201)][_0x11300b(0x249)](_0x12a427);_0x114f36&&((0x0,e['isConnectorShape'])(_0x114f36['getShapeType']())&&this['_linesIds'][_0x11300b(0x230)](_0x12a427),this['_shapes'][_0x11300b(0x230)](_0x12a427));}[_0x5cc9e4(0x260)](){const _0x33d93d=_0x5cc9e4;let _0x101806=[];return this[_0x33d93d(0x201)]['forEach'](_0x2e4158=>{const _0x41a762=_0x33d93d;_0x101806[_0x41a762(0x1f7)](_0x2e4158[_0x41a762(0x260)]());}),_0x101806;}[_0x5cc9e4(0x1c9)](_0x40f50e){const _0x577e42=_0x5cc9e4;for(let _0x2c399b of _0x40f50e){let {id:_0x2e1aad,shapeType:_0x339d2d,name:_0x38a005}=_0x2c399b,_0x5c19fa=this[_0x577e42(0x20f)](_0x339d2d,_0x2e1aad,_0x2c399b['shapeData'],_0x38a005);_0x5c19fa&&_0x5c19fa[_0x577e42(0x242)]()&&this[_0x577e42(0x1db)][_0x577e42(0x27b)](_0x2e1aad);}}[_0x5cc9e4(0x1ed)](){const _0x594cc5=_0x5cc9e4;this[_0x594cc5(0x22c)]||(this[_0x594cc5(0x201)][_0x594cc5(0x1cd)](_0xcbf995=>{const _0x4ee18d=_0x594cc5;_0xcbf995[_0x4ee18d(0x1ed)]();}),this['_shapes'][_0x594cc5(0x210)](),this[_0x594cc5(0x1db)][_0x594cc5(0x210)](),this[_0x594cc5(0x1de)][_0x594cc5(0x210)](),super['dispose']());}};function d(_0x3c833c,_0x77fc77){return function(_0x2e13bc,_0x4bc7d6){_0x77fc77(_0x2e13bc,_0x4bc7d6,_0x3c833c);};}function f(_0x4d2330,_0x5485f2,_0x368011,_0x59d32a){const _0x29eda=_0x5cc9e4;var _0x590043=arguments[_0x29eda(0x1cc)],_0x4ab5e1=_0x590043<0x3?_0x5485f2:_0x59d32a===null?_0x59d32a=Object[_0x29eda(0x25a)](_0x5485f2,_0x368011):_0x59d32a,_0x45f603;if(typeof Reflect=='object'&&typeof Reflect[_0x29eda(0x27a)]=='function')_0x4ab5e1=Reflect[_0x29eda(0x27a)](_0x4d2330,_0x5485f2,_0x368011,_0x59d32a);else{for(var _0x43e478=_0x4d2330[_0x29eda(0x1cc)]-0x1;_0x43e478>=0x0;_0x43e478--)(_0x45f603=_0x4d2330[_0x43e478])&&(_0x4ab5e1=(_0x590043<0x3?_0x45f603(_0x4ab5e1):_0x590043>0x3?_0x45f603(_0x5485f2,_0x368011,_0x4ab5e1):_0x45f603(_0x5485f2,_0x368011))||_0x4ab5e1);}return _0x590043>0x3&&_0x4ab5e1&&Object[_0x29eda(0x1fc)](_0x5485f2,_0x368011,_0x4ab5e1),_0x4ab5e1;}let p=class extends t['Disposable']{constructor(_0x2626fc){const _0x59d9f6=_0x5cc9e4;super(),this[_0x59d9f6(0x27e)]=_0x2626fc,l(this,_0x59d9f6(0x213),new Map()),this[_0x59d9f6(0x217)]();}[_0x5cc9e4(0x23a)](_0xe50ac6,_0x5cbd3e){const _0x5672dd=_0x5cc9e4;let _0x7ac7ab=this[_0x5672dd(0x213)][_0x5672dd(0x249)](_0xe50ac6);_0x7ac7ab||(_0x7ac7ab=new Map(),this[_0x5672dd(0x213)]['set'](_0xe50ac6,_0x7ac7ab));let _0xcd3a98=_0x7ac7ab[_0x5672dd(0x249)](_0x5cbd3e);return _0xcd3a98||(_0xcd3a98=new u(),_0x7ac7ab['set'](_0x5cbd3e,_0xcd3a98)),_0xcd3a98;}['insertShape'](_0x12a7e2,_0x348289,_0x15098c,_0x492efb,_0x251b7a,_0x3b5eaa){const _0x43faf0=_0x5cc9e4;this['_ensureShapeModelManager'](_0x12a7e2,_0x348289)[_0x43faf0(0x20f)](_0x15098c,_0x492efb,_0x251b7a,_0x3b5eaa);}[_0x5cc9e4(0x259)](_0x113616,_0x1d06be,_0x50e7b7){const _0x5f508f=_0x5cc9e4;this[_0x5f508f(0x23a)](_0x113616,_0x1d06be)[_0x5f508f(0x259)](_0x50e7b7);}[_0x5cc9e4(0x1f3)](_0x33583e,_0x1a58d7,_0x59fdbd){const _0x2a81e0=_0x5cc9e4;return this[_0x2a81e0(0x23a)](_0x33583e,_0x1a58d7)[_0x2a81e0(0x222)](_0x59fdbd);}['getShapeType'](_0x8d111f,_0x2787d3,_0x1050ac){const _0x167dcd=_0x5cc9e4;return this[_0x167dcd(0x23a)](_0x8d111f,_0x2787d3)[_0x167dcd(0x222)](_0x1050ac);}[_0x5cc9e4(0x241)](_0x28a119,_0x1fcccc,_0x35818c){const _0x4704d7=_0x5cc9e4;return this[_0x4704d7(0x23a)](_0x28a119,_0x1fcccc)[_0x4704d7(0x241)](_0x35818c);}['getShapeTypeById'](_0x107c25,_0x2b470a,_0x5cad02){const _0x33cd26=_0x5cc9e4;return this['_ensureShapeModelManager'](_0x107c25,_0x2b470a)[_0x33cd26(0x222)](_0x5cad02);}[_0x5cc9e4(0x285)](_0x252cf5,_0x3902bc,_0xb4b222){const _0xaf10c7=_0x5cc9e4;let _0x33d3ce=this[_0xaf10c7(0x23a)](_0x252cf5,_0x3902bc);if(!_0x33d3ce[_0xaf10c7(0x222)](_0xb4b222))return;let _0x1c81be=_0x33d3ce[_0xaf10c7(0x201)]['get'](_0xb4b222);if(_0x1c81be)return _0x1c81be[_0xaf10c7(0x236)]();}[_0x5cc9e4(0x214)](_0xfba4df,_0xdab48a){const _0x1d8e6f=_0x5cc9e4;return this[_0x1d8e6f(0x23a)](_0xfba4df,_0xdab48a)['getShapeDisplayNames']();}[_0x5cc9e4(0x1d7)](_0xb100a7,_0xf20667,_0x5741d5){const _0x3a1afa=_0x5cc9e4;return this[_0x3a1afa(0x23a)](_0xb100a7,_0xf20667)[_0x3a1afa(0x201)][_0x3a1afa(0x249)](_0x5741d5);}[_0x5cc9e4(0x219)](_0x103a07,_0x32bc64,_0x275114){const _0x24b877=_0x5cc9e4;return this[_0x24b877(0x23a)](_0x103a07,_0x32bc64)[_0x24b877(0x219)](_0x275114);}[_0x5cc9e4(0x1e5)](_0x16ffb3,_0xb13f92,_0x6c5e2a){const _0x513386=_0x5cc9e4;let _0x47ae4a=this[_0x513386(0x23a)](_0x16ffb3,_0xb13f92)[_0x513386(0x201)]['get'](_0x6c5e2a);if(_0x47ae4a)return _0x47ae4a[_0x513386(0x21d)]();}[_0x5cc9e4(0x227)](){}[_0x5cc9e4(0x225)](_0x44fb56){const _0x3b616f=_0x5cc9e4;let _0x5340eb={},_0x1cff2e=this[_0x3b616f(0x213)][_0x3b616f(0x249)](_0x44fb56);return _0x1cff2e&&_0x1cff2e[_0x3b616f(0x1cd)]((_0x38ef33,_0x451dae)=>{const _0x2aeee1=_0x3b616f;let _0x1ee64e=_0x38ef33['toJSON']();_0x1ee64e[_0x2aeee1(0x1cc)]>0x0&&(_0x5340eb[_0x451dae]=_0x1ee64e);}),JSON['stringify'](_0x5340eb);}[_0x5cc9e4(0x284)](_0x36de5d,_0xc84a1c){const _0x5a07c2=_0x5cc9e4;Object['keys'](_0xc84a1c)[_0x5a07c2(0x1cd)](_0x24f8fd=>{const _0x56bd6b=_0x5a07c2;this[_0x56bd6b(0x23a)](_0x36de5d,_0x24f8fd)['fromJSON'](_0xc84a1c[_0x24f8fd]);});}[_0x5cc9e4(0x260)](){let _0x91d993={};return this['_shapeModelManagerMap']['forEach']((_0x4650a1,_0x251308)=>{const _0x57d82a=_0x865d;_0x91d993[_0x251308]={},_0x4650a1[_0x57d82a(0x1cd)]((_0x2fac1d,_0x580293)=>{const _0x17aed6=_0x57d82a;_0x91d993[_0x251308][_0x580293]=_0x2fac1d[_0x17aed6(0x260)]();});}),_0x91d993;}['fromJSON'](_0x286011){const _0x3323d9=_0x5cc9e4;Object[_0x3323d9(0x1dd)](_0x286011)['forEach'](_0x3049bc=>{const _0x15f408=_0x3323d9;let _0x150838=_0x286011[_0x3049bc];Object[_0x15f408(0x1dd)](_0x150838)[_0x15f408(0x1cd)](_0x5da28c=>{this['_ensureShapeModelManager'](_0x3049bc,_0x5da28c)['fromJSON'](_0x150838[_0x5da28c]);});});}[_0x5cc9e4(0x217)](){const _0x2f6389=_0x5cc9e4;this[_0x2f6389(0x27e)][_0x2f6389(0x1bf)]({'pluginName':_0x2f6389(0x22b),'businesses':[t['UniverInstanceType'][_0x2f6389(0x1ce)]],'toJson':_0x4fbccf=>this['_serializeShapeForUnit'](_0x4fbccf),'parseJson':_0x3ef840=>JSON[_0x2f6389(0x248)](_0x3ef840),'onLoad':(_0x40cea2,_0x52fca6)=>{this['_deserializeShapeForUnit'](_0x40cea2,_0x52fca6);},'onUnLoad':_0x58732f=>{const _0x5f9220=_0x2f6389;let _0x3d958=this[_0x5f9220(0x213)]['get'](_0x58732f);_0x3d958&&(_0x3d958[_0x5f9220(0x1cd)](_0x434b67=>{const _0x3c439c=_0x5f9220;_0x434b67[_0x3c439c(0x1ed)]();}),this[_0x5f9220(0x213)]['delete'](_0x58732f));}});}[_0x5cc9e4(0x1ed)](){const _0x158a53=_0x5cc9e4;this[_0x158a53(0x213)][_0x158a53(0x1cd)](_0x57ad15=>{_0x57ad15['forEach'](_0x1bd117=>{const _0xd45ef0=_0x865d;_0x1bd117[_0xd45ef0(0x1ed)]();});});}};p=f([d(0x0,t['IResourceManagerService'])],p);const m={'id':_0x5cc9e4(0x22f),'type':t[_0x5cc9e4(0x207)][_0x5cc9e4(0x22e)],'handler':(_0x1cc512,_0x1aebad)=>{const _0x306287=_0x5cc9e4;let {unitId:_0x41e487,subUnitId:_0x64a267,shapeType:_0x495d9a,shapeId:_0x43aeb3,shapeName:_0x2dd648,shapeData:_0x589b3c}=_0x1aebad;return _0x1cc512[_0x306287(0x249)](p)['insertShape'](_0x41e487,_0x64a267,_0x495d9a,_0x43aeb3,_0x589b3c,_0x2dd648),!0x0;}},h={'id':_0x5cc9e4(0x286),'type':t[_0x5cc9e4(0x207)][_0x5cc9e4(0x22e)],'handler':(_0x49306a,_0x377fc5)=>{const _0x569c38=_0x5cc9e4;let {unitId:_0x27c5f4,subUnitId:_0x47f35c,shapeId:_0x44df14}=_0x377fc5;return _0x49306a[_0x569c38(0x249)](p)['removeShape'](_0x27c5f4,_0x47f35c,_0x44df14),!0x0;}},g={'type':t[_0x5cc9e4(0x207)]['COMMAND'],'id':_0x5cc9e4(0x1c4),'handler':(_0x3a20b4,_0x25cd2c)=>{const _0x23f805=_0x5cc9e4;var _0x1c1f77,_0x47cac2,_0x957e14;let _0x3af7d2=(0x0,n[_0x23f805(0x26d)])(_0x3a20b4[_0x23f805(0x249)](t['IUniverInstanceService']),_0x25cd2c);if(!_0x3af7d2)return!0x1;let _0x967bff=_0x3a20b4[_0x23f805(0x249)](n['SheetSkeletonService']),{unitId:_0x4c85ec,subUnitId:_0x485d31}=_0x3af7d2,_0x51ebae=_0x967bff[_0x23f805(0x1fe)](_0x4c85ec,_0x485d31);if(!_0x51ebae)return!0x1;let _0x302dce=_0x3a20b4[_0x23f805(0x249)](t[_0x23f805(0x218)]),_0x204f87=_0x3a20b4['get'](t[_0x23f805(0x1e8)]),_0x3bea67=_0x3a20b4[_0x23f805(0x249)](n[_0x23f805(0x247)]),_0xc10dcf=_0x3a20b4[_0x23f805(0x249)](r[_0x23f805(0x1ef)]),_0x5e1440=_0x3a20b4[_0x23f805(0x249)](p),{shapeType:_0x2bfb94,shapeData:_0x7aa802}=_0x25cd2c,_0x5420ea=_0x25cd2c[_0x23f805(0x263)]||(0x0,t[_0x23f805(0x1c1)])(),_0x512d74={'unitId':_0x4c85ec,'subUnitId':_0x485d31,'shapeId':_0x5420ea,'shapeName':(_0x1c1f77=_0x25cd2c[_0x23f805(0x22a)])==null?(0x0,e[_0x23f805(0x231)])(_0x2bfb94,_0x5e1440['getShapeDisplayNames'](_0x4c85ec,_0x485d31)):_0x1c1f77,'shapeType':_0x2bfb94,'shapeData':_0x7aa802},_0x5326c7=_0x25cd2c[_0x23f805(0x205)]||0xc8,_0x23daab=_0x25cd2c[_0x23f805(0x237)]||0xc8,_0x1fb6d6=0x0,_0x1351b0=0x0,_0x32824e={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x48d6ef={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x25cd2c['position']){let {x:_0x1dbbbb,y:_0x311af9}=_0x25cd2c[_0x23f805(0x1ca)];_0x1fb6d6=_0x1dbbbb,_0x1351b0=_0x311af9,_0x32824e=_0x51ebae[_0x23f805(0x1ea)](_0x1dbbbb,_0x311af9),_0x48d6ef=_0x51ebae['getCellIndexAndOffsetByPosition'](_0x1dbbbb+_0x5326c7,_0x311af9+_0x23daab);}else{if(_0x25cd2c[_0x23f805(0x283)]){let {startRow:_0x4034ae,startColumn:_0x27432b}=_0x25cd2c[_0x23f805(0x283)];_0x32824e={'row':_0x4034ae,'rowOffset':0xa,'column':_0x27432b,'columnOffset':0xa};let _0x32473a=_0x51ebae[_0x23f805(0x1d4)](_0x4034ae,_0x27432b);_0x1fb6d6=_0x32473a[_0x23f805(0x1e4)]+0xa,_0x1351b0=_0x32473a['startY']+0xa,_0x48d6ef=_0x51ebae['getCellIndexAndOffsetByPosition'](_0x1fb6d6+_0x5326c7,_0x1351b0+_0x23daab);}}let _0x43ecac={'from':_0x32824e,'to':_0x48d6ef},_0x392562={'unitId':_0x4c85ec,'subUnitId':_0x485d31,'drawingId':_0x5420ea,'drawingType':t[_0x23f805(0x245)]['DRAWING_SHAPE'],'sheetTransform':_0x43ecac,'transform':{'left':_0x1fb6d6,'top':_0x1351b0,'width':_0x5326c7,'height':_0x23daab},'data':{'shapeType':_0x2bfb94,'shapeData':_0x7aa802},'axisAlignSheetTransform':_0x43ecac,'allowTransform':!0x0};(0x0,e[_0x23f805(0x23f)])(_0x2bfb94)&&(_0x392562['data']['fill']=!0x1,_0x392562[_0x23f805(0x1be)][_0x23f805(0x1f5)]=!0x1,_0x392562[_0x23f805(0x1be)][_0x23f805(0x271)]=!0x1,_0x392562['data'][_0x23f805(0x1f8)]=!0x1,_0x392562['transform'][_0x23f805(0x1f5)]=!0x1,_0x392562['transform']['resizeEnabled']=!0x1,_0x392562[_0x23f805(0x221)][_0x23f805(0x1f8)]=!0x1);let {undo:_0x1becd1,redo:_0x4e49c3,objects:_0x213cfd}=_0xc10dcf[_0x23f805(0x1fa)]([_0x392562]),_0x82fc7c=_0x3bea67[_0x23f805(0x202)]({'id':r[_0x23f805(0x1eb)]['id'],'params':{'unitId':_0x4c85ec,'drawings':[_0x392562]}}),_0x321df0=[...(_0x47cac2=_0x82fc7c['preRedos'])==null?[]:_0x47cac2,{'id':r[_0x23f805(0x267)]['id'],'params':{'unitId':_0x4c85ec,'subUnitId':_0x485d31,'op':_0x4e49c3,'objects':_0x213cfd,'type':r[_0x23f805(0x251)][_0x23f805(0x1cb)]}},{'id':r[_0x23f805(0x1f2)]['id'],'params':[_0x4c85ec]},..._0x82fc7c[_0x23f805(0x27f)],{'id':m['id'],'params':_0x512d74}],_0x3fb96c=[{'id':h['id'],'params':{'unitId':_0x4c85ec,'subUnitId':_0x485d31,'shapeId':_0x5420ea}},...(_0x957e14=_0x82fc7c[_0x23f805(0x22d)])==null?[]:_0x957e14,{'id':r[_0x23f805(0x267)]['id'],'params':{'unitId':_0x4c85ec,'subUnitId':_0x485d31,'op':_0x1becd1,'objects':_0x213cfd,'type':r[_0x23f805(0x251)][_0x23f805(0x289)]}},{'id':r[_0x23f805(0x1f2)]['id'],'params':[_0x4c85ec]},..._0x82fc7c[_0x23f805(0x265)]];return(0x0,t[_0x23f805(0x268)])(_0x321df0,_0x302dce)['result']?(_0x204f87[_0x23f805(0x24d)]({'unitID':_0x4c85ec,'undoMutations':_0x3fb96c,'redoMutations':_0x321df0}),!0x0):!0x1;}},_={'id':_0x5cc9e4(0x21f),'type':t['CommandType'][_0x5cc9e4(0x22e)],'handler':(_0x1052ed,_0x5b3a30)=>{const _0xc96d7e=_0x5cc9e4;let {unitId:_0x2d9c19,subUnitId:_0x15d17c,shapeType:_0x22f5ca,shapeId:_0x48f37e,shapeData:_0xe19faa}=_0x5b3a30,_0x3ae58a=_0x1052ed[_0xc96d7e(0x249)](p)[_0xc96d7e(0x1d7)](_0x2d9c19,_0x15d17c,_0x48f37e);return _0x3ae58a&&(_0x22f5ca!==void 0x0&&_0x3ae58a[_0xc96d7e(0x227)](_0x22f5ca),_0xe19faa&&(_0x3ae58a==null||_0x3ae58a[_0xc96d7e(0x211)](_0xe19faa,!0x0))),!0x0;}},v={'type':t[_0x5cc9e4(0x207)]['COMMAND'],'id':_0x5cc9e4(0x25c),'handler':(_0x31c042,_0x24d130)=>{const _0x5a4629=_0x5cc9e4;var _0x1f15fe,_0x5b2a75;let _0x47576f=(0x0,n[_0x5a4629(0x26d)])(_0x31c042[_0x5a4629(0x249)](t[_0x5a4629(0x1c3)]),_0x24d130);if(!_0x47576f)return!0x1;let _0x131451=_0x31c042[_0x5a4629(0x249)](n[_0x5a4629(0x226)]),{unitId:_0x215eac,subUnitId:_0x186feb}=_0x47576f,_0xd545ca=_0x131451[_0x5a4629(0x1fe)](_0x215eac,_0x186feb);if(!_0xd545ca)return!0x1;let _0x4aeb87=_0x31c042[_0x5a4629(0x249)](p),{shapeId:_0x5584fd,shapeType:_0x5491d4,shapeData:_0x36a7ec,position:_0x29af1e,width:_0x38277c,height:_0x5cf187}=_0x24d130,_0x2fd66e=_0x4aeb87['getShapeModel'](_0x215eac,_0x186feb,_0x5584fd);if(!_0x2fd66e)return!0x1;let _0x5a685e=_0x31c042[_0x5a4629(0x249)](t[_0x5a4629(0x218)]),_0x3d4a6d=_0x31c042['get'](t['IUndoRedoService']),_0x15a55a=_0x31c042[_0x5a4629(0x249)](n['SheetInterceptorService']),_0x43ec01=_0x31c042[_0x5a4629(0x249)](r[_0x5a4629(0x1ef)]),_0x1538a5={'unitId':_0x215eac,'subUnitId':_0x186feb,'shapeId':_0x5584fd,'shapeType':_0x5491d4,'shapeData':_0x36a7ec},_0x4a65e8=_0x2fd66e['getShapeType'](),_0x3667a1=_0x2fd66e[_0x5a4629(0x236)](),{x:_0x2a2dc8,y:_0x3558e5}=_0x29af1e,_0x2cea8f={'from':_0xd545ca[_0x5a4629(0x1ea)](_0x2a2dc8,_0x3558e5),'to':_0xd545ca[_0x5a4629(0x1ea)](_0x2a2dc8+_0x38277c,_0x3558e5+_0x5cf187)},_0x413d3b={'unitId':_0x215eac,'subUnitId':_0x186feb,'drawingId':_0x5584fd,'drawingType':t[_0x5a4629(0x245)][_0x5a4629(0x21c)],'sheetTransform':_0x2cea8f,'transform':{'left':_0x2a2dc8,'top':_0x3558e5,'width':_0x38277c,'height':_0x5cf187},'data':{'shapeType':_0x5491d4,'shapeData':_0x36a7ec},'axisAlignSheetTransform':_0x2cea8f,'allowTransform':!0x0};(0x0,e['isConnectorShape'])(_0x5491d4)&&(_0x413d3b[_0x5a4629(0x1be)][_0x5a4629(0x275)]=!0x1,_0x413d3b[_0x5a4629(0x1be)][_0x5a4629(0x1f5)]=!0x1,_0x413d3b[_0x5a4629(0x1be)][_0x5a4629(0x271)]=!0x1,_0x413d3b[_0x5a4629(0x1be)][_0x5a4629(0x1f8)]=!0x1,_0x413d3b['transform']['rotateEnabled']=!0x1,_0x413d3b['transform'][_0x5a4629(0x271)]=!0x1,_0x413d3b[_0x5a4629(0x221)][_0x5a4629(0x1f8)]=!0x1);let {undo:_0x260494,redo:_0x57e252,objects:_0x2a988d}=_0x43ec01[_0x5a4629(0x256)]([_0x413d3b]),_0x5326e0=_0x15a55a[_0x5a4629(0x202)]({'id':r[_0x5a4629(0x257)]['id'],'params':{'unitId':_0x215eac,'drawings':[_0x413d3b]}}),_0xc7f712=[...(_0x1f15fe=_0x5326e0[_0x5a4629(0x215)])==null?[]:_0x1f15fe,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x215eac,'subUnitId':_0x186feb,'op':_0x57e252,'objects':_0x2a988d,'type':r[_0x5a4629(0x251)][_0x5a4629(0x1c6)]}},{'id':r[_0x5a4629(0x1f2)]['id'],'params':[_0x215eac]},..._0x5326e0[_0x5a4629(0x27f)],{'id':_['id'],'params':_0x1538a5}],_0x108a99=[...(_0x5b2a75=_0x5326e0['preUndos'])==null?[]:_0x5b2a75,{'id':r[_0x5a4629(0x267)]['id'],'params':{'unitId':_0x215eac,'subUnitId':_0x186feb,'op':_0x260494,'objects':_0x2a988d,'type':r['DrawingApplyType']['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x215eac]},..._0x5326e0[_0x5a4629(0x265)],{'id':_['id'],'params':{'unitId':_0x215eac,'subUnitId':_0x186feb,'shapeType':_0x4a65e8,'shapeId':_0x5584fd,'shapeData':_0x3667a1}}];return(0x0,t[_0x5a4629(0x268)])(_0xc7f712,_0x5a685e)[_0x5a4629(0x1d9)]?(_0x3d4a6d['pushUndoRedo']({'unitID':_0x215eac,'undoMutations':_0x108a99,'redoMutations':_0xc7f712}),!0x0):!0x1;}},y={'type':t[_0x5cc9e4(0x207)][_0x5cc9e4(0x1cf)],'id':'sheet.command.toggle-shape-flip','handler':(_0x3162c5,_0x5d07bc)=>{const _0x1743a5=_0x5cc9e4;var _0x1e99db,_0xa53d54;let _0x28d523=(0x0,n[_0x1743a5(0x26d)])(_0x3162c5[_0x1743a5(0x249)](t[_0x1743a5(0x1c3)]),_0x5d07bc);if(!_0x28d523)return!0x1;let _0x593008=_0x3162c5['get'](n[_0x1743a5(0x226)]),{unitId:_0x23b802,subUnitId:_0x1f3b29}=_0x28d523,_0x101b72=_0x593008[_0x1743a5(0x1d6)](_0x23b802,_0x1f3b29);if(!_0x101b72)return!0x1;let _0x4c919c=_0x3162c5[_0x1743a5(0x249)](r[_0x1743a5(0x1ef)]),{shapeId:_0x19aa07,flipH:_0x10669d,flipV:_0x1ed01b}=_0x5d07bc,_0x54001a=_0x4c919c[_0x1743a5(0x229)]({'unitId':_0x23b802,'subUnitId':_0x1f3b29,'drawingId':_0x19aa07});if(!_0x54001a)return!0x1;let _0x320c21=_0x3162c5[_0x1743a5(0x249)](p)[_0x1743a5(0x1d7)](_0x23b802,_0x1f3b29,_0x19aa07);if(!_0x320c21)return!0x1;let _0x235663=_0x3162c5['get'](t[_0x1743a5(0x218)]),_0x205570=_0x3162c5[_0x1743a5(0x249)](t[_0x1743a5(0x1e8)]),_0x525c9d=_0x3162c5[_0x1743a5(0x249)](n[_0x1743a5(0x247)]),_0x1d5fa6={..._0x54001a[_0x1743a5(0x221)]};_0x10669d!==void 0x0&&(_0x1d5fa6[_0x1743a5(0x25b)]=!_0x1d5fa6[_0x1743a5(0x25b)]),_0x1ed01b!==void 0x0&&(_0x1d5fa6[_0x1743a5(0x240)]=!_0x1d5fa6[_0x1743a5(0x240)]);let _0x58e37d=(0x0,r[_0x1743a5(0x24f)])(_0x1d5fa6,_0x101b72),_0x4b0c02=(0x0,r['transformToAxisAlignPosition'])(_0x1d5fa6,_0x101b72),_0xfcbb41=_0x320c21[_0x1743a5(0x222)](),_0x221480=_0x320c21['getShapeData'](),_0x33cdff={'unitId':_0x23b802,'subUnitId':_0x1f3b29,'drawingId':_0x19aa07,'drawingType':t['DrawingTypeEnum'][_0x1743a5(0x21c)],'sheetTransform':_0x58e37d,'transform':_0x1d5fa6,'data':{'shapeType':_0xfcbb41,'shapeData':_0x221480},'axisAlignSheetTransform':_0x4b0c02,'allowTransform':!0x0},{undo:_0x386a3f,redo:_0x53b4b3,objects:_0xcb5fc3}=_0x4c919c['getBatchUpdateOp']([_0x33cdff]),_0x4c2c7d=_0x525c9d[_0x1743a5(0x202)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x23b802,'drawings':[_0x33cdff]}}),_0x68e8db=[...(_0x1e99db=_0x4c2c7d[_0x1743a5(0x215)])==null?[]:_0x1e99db,{'id':r[_0x1743a5(0x267)]['id'],'params':{'unitId':_0x23b802,'subUnitId':_0x1f3b29,'op':_0x53b4b3,'objects':_0xcb5fc3,'type':r[_0x1743a5(0x251)]['UPDATE']}},{'id':r[_0x1743a5(0x1f2)]['id'],'params':[_0x23b802]},..._0x4c2c7d[_0x1743a5(0x27f)]],_0x5c5d36=[...(_0xa53d54=_0x4c2c7d['preUndos'])==null?[]:_0xa53d54,{'id':r[_0x1743a5(0x267)]['id'],'params':{'unitId':_0x23b802,'subUnitId':_0x1f3b29,'op':_0x386a3f,'objects':_0xcb5fc3,'type':r[_0x1743a5(0x251)][_0x1743a5(0x1c6)]}},{'id':r[_0x1743a5(0x1f2)]['id'],'params':[_0x23b802]},..._0x4c2c7d['undos']];if((0x0,e[_0x1743a5(0x23f)])(_0xfcbb41)){let _0x35ce71=_0x320c21[_0x1743a5(0x21d)]();if(_0x35ce71){let _0x10ba74={..._0x35ce71};_0x10ba74[_0x1743a5(0x1f1)]=void 0x0,_0x10ba74['to']=void 0x0,_0x68e8db['push']({'id':_['id'],'params':{'unitId':_0x23b802,'subUnitId':_0x1f3b29,'shapeId':_0x19aa07,'shapeType':_0xfcbb41,'shapeData':{'relation':_0x10ba74}}}),_0x5c5d36[_0x1743a5(0x1f7)]({'id':_['id'],'params':{'unitId':_0x23b802,'subUnitId':_0x1f3b29,'shapeId':_0x19aa07,'shapeType':_0xfcbb41,'shapeData':{'relation':_0x35ce71}}});}}return(0x0,t[_0x1743a5(0x268)])(_0x68e8db,_0x235663)[_0x1743a5(0x1d9)]?(_0x205570[_0x1743a5(0x24d)]({'unitID':_0x23b802,'undoMutations':_0x5c5d36,'redoMutations':_0x68e8db}),!0x0):!0x1;}},b={'type':t[_0x5cc9e4(0x207)][_0x5cc9e4(0x1cf)],'id':_0x5cc9e4(0x253),'handler':(_0x261fe7,_0x18f33a)=>{const _0x54131b=_0x5cc9e4;var _0x438ed6,_0x46d1dc;let _0x419812=(0x0,n[_0x54131b(0x26d)])(_0x261fe7[_0x54131b(0x249)](t[_0x54131b(0x1c3)]),_0x18f33a);if(!_0x419812)return!0x1;let _0x260046=_0x261fe7[_0x54131b(0x249)](n[_0x54131b(0x226)]),{unitId:_0x23ce94,subUnitId:_0x5a4e41}=_0x419812,_0x1cbacc=_0x260046[_0x54131b(0x1d6)](_0x23ce94,_0x5a4e41);if(!_0x1cbacc)return!0x1;let _0x271048=_0x261fe7[_0x54131b(0x249)](r['ISheetDrawingService']),{shapeId:_0x254693,rotate:_0x23c595}=_0x18f33a,_0x6ca657=_0x271048['getDrawingByParam']({'unitId':_0x23ce94,'subUnitId':_0x5a4e41,'drawingId':_0x254693});if(!_0x6ca657)return!0x1;let _0x133f30=_0x261fe7[_0x54131b(0x249)](p)[_0x54131b(0x1d7)](_0x23ce94,_0x5a4e41,_0x254693);if(!_0x133f30)return!0x1;let _0xd7a3b5=_0x261fe7[_0x54131b(0x249)](t['ICommandService']),_0x6e8d8b=_0x261fe7['get'](t['IUndoRedoService']),_0x4fe264=_0x261fe7[_0x54131b(0x249)](n[_0x54131b(0x247)]),_0x537ad4={..._0x6ca657['transform']};_0x23c595!==void 0x0&&(_0x537ad4[_0x54131b(0x212)]=(_0x537ad4[_0x54131b(0x212)]||0x0)+_0x23c595);let _0x2d9bf6=(0x0,r['transformToDrawingPosition'])(_0x537ad4,_0x1cbacc),_0x2f55d2=(0x0,r[_0x54131b(0x23c)])(_0x537ad4,_0x1cbacc),_0x4e2b1f=_0x133f30[_0x54131b(0x222)](),_0x583f4e=_0x133f30[_0x54131b(0x236)](),_0x3f0a0b={'unitId':_0x23ce94,'subUnitId':_0x5a4e41,'drawingId':_0x254693,'drawingType':t['DrawingTypeEnum'][_0x54131b(0x21c)],'sheetTransform':_0x2d9bf6,'transform':_0x537ad4,'data':{'shapeType':_0x4e2b1f,'shapeData':_0x583f4e},'axisAlignSheetTransform':_0x2f55d2,'allowTransform':!0x0},{undo:_0x30a520,redo:_0x4eb5b1,objects:_0x1ce377}=_0x271048['getBatchUpdateOp']([_0x3f0a0b]),_0x13aefc=_0x4fe264[_0x54131b(0x202)]({'id':r[_0x54131b(0x257)]['id'],'params':{'unitId':_0x23ce94,'drawings':[_0x3f0a0b]}}),_0x2cb728=[...(_0x438ed6=_0x13aefc[_0x54131b(0x215)])==null?[]:_0x438ed6,{'id':r[_0x54131b(0x267)]['id'],'params':{'unitId':_0x23ce94,'subUnitId':_0x5a4e41,'op':_0x4eb5b1,'objects':_0x1ce377,'type':r['DrawingApplyType'][_0x54131b(0x1c6)]}},{'id':r[_0x54131b(0x1f2)]['id'],'params':[_0x23ce94]},..._0x13aefc[_0x54131b(0x27f)]],_0x1acc74=[...(_0x46d1dc=_0x13aefc[_0x54131b(0x22d)])==null?[]:_0x46d1dc,{'id':r[_0x54131b(0x267)]['id'],'params':{'unitId':_0x23ce94,'subUnitId':_0x5a4e41,'op':_0x30a520,'objects':_0x1ce377,'type':r['DrawingApplyType']['UPDATE']}},{'id':r[_0x54131b(0x1f2)]['id'],'params':[_0x23ce94]},..._0x13aefc[_0x54131b(0x265)]];return(0x0,t[_0x54131b(0x268)])(_0x2cb728,_0xd7a3b5)[_0x54131b(0x1d9)]?(_0x6e8d8b[_0x54131b(0x24d)]({'unitID':_0x23ce94,'undoMutations':_0x1acc74,'redoMutations':_0x2cb728}),!0x0):!0x1;}},x={'type':t[_0x5cc9e4(0x207)][_0x5cc9e4(0x1cf)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x28ac56,_0x4bf877)=>{const _0x9ca43d=_0x5cc9e4;var _0x545810;let _0x37fc03=(0x0,n['getSheetCommandTarget'])(_0x28ac56[_0x9ca43d(0x249)](t[_0x9ca43d(0x1c3)]),_0x4bf877);if(!_0x37fc03)return!0x1;let {unitId:_0x45febd,subUnitId:_0x11fdc9}=_0x37fc03,{shapeId:_0x503fd4}=_0x4bf877,_0x21753b=_0x28ac56['get'](p)['getShapeModel'](_0x45febd,_0x11fdc9,_0x503fd4);if(!_0x21753b)return!0x1;let _0x569182=_0x21753b[_0x9ca43d(0x1d0)](),_0x165bc9=(_0x545810=_0x569182==null?void 0x0:_0x569182[_0x9ca43d(0x26f)])==null?!0x0:_0x545810,_0x4e46e8=!_0x165bc9,_0x19788c=_0x28ac56[_0x9ca43d(0x249)](t[_0x9ca43d(0x218)]),_0x3d6b6b=_0x28ac56[_0x9ca43d(0x249)](t[_0x9ca43d(0x1e8)]),_0x184964={'unitId':_0x45febd,'subUnitId':_0x11fdc9,'shapeId':_0x503fd4,'shapeData':{'shapeText':{'isHorizontal':_0x4e46e8}}},_0x488c59={'unitId':_0x45febd,'subUnitId':_0x11fdc9,'shapeId':_0x503fd4,'shapeData':{'shapeText':{'isHorizontal':_0x165bc9}}},_0x3548a8=[{'id':_['id'],'params':_0x184964}],_0x365a63=[{'id':_['id'],'params':_0x488c59}];return(0x0,t[_0x9ca43d(0x268)])(_0x3548a8,_0x19788c)[_0x9ca43d(0x1d9)]?(_0x3d6b6b[_0x9ca43d(0x24d)]({'unitID':_0x45febd,'undoMutations':_0x365a63,'redoMutations':_0x3548a8}),!0x0):!0x1;}},S={'type':t[_0x5cc9e4(0x207)]['COMMAND'],'id':_0x5cc9e4(0x206),'handler':(_0x52afcb,_0x1d5250)=>{const _0x52e19a=_0x5cc9e4;var _0x301e9c,_0x193536,_0x4d3b06,_0x410d28;let _0x2cd9d0=(0x0,n[_0x52e19a(0x26d)])(_0x52afcb[_0x52e19a(0x249)](t['IUniverInstanceService']),_0x1d5250);if(!_0x2cd9d0)return!0x1;let _0x5dacb9=_0x52afcb[_0x52e19a(0x249)](n[_0x52e19a(0x226)]),{unitId:_0x4f8a11,subUnitId:_0x15d035}=_0x2cd9d0,_0x33463d=_0x5dacb9[_0x52e19a(0x1d6)](_0x4f8a11,_0x15d035);if(!_0x33463d)return!0x1;let _0x1d567b=_0x52afcb[_0x52e19a(0x249)](r[_0x52e19a(0x1ef)]),{connectorShapeId:_0x41e67b,width:_0x149d96,height:_0x15ecfa,left:_0x14ea9d,top:_0x59322a,flipX:_0x403f51,flipY:_0x3009f3,rotation:_0x419846,oldAdjustValues:_0x4e42d6,newAdjustValues:_0x931a1c,oldLineType:_0x161e8a,newLineType:_0x15ef3b,oldRelation:_0x54d168,newRelation:_0x45c2ca}=_0x1d5250,_0x28f521=_0x1d567b['getDrawingByParam']({'unitId':_0x4f8a11,'subUnitId':_0x15d035,'drawingId':_0x41e67b});if(!_0x28f521)return!0x1;let _0x3206bb=_0x52afcb[_0x52e19a(0x249)](p)[_0x52e19a(0x1d7)](_0x4f8a11,_0x15d035,_0x41e67b);if(!_0x3206bb)return!0x1;let _0x2f834b=_0x52afcb[_0x52e19a(0x249)](t[_0x52e19a(0x218)]),_0xfc6f16=_0x52afcb[_0x52e19a(0x249)](t[_0x52e19a(0x1e8)]),_0x3f3b69=_0x52afcb['get'](n['SheetInterceptorService']),_0x55e9e4={..._0x28f521[_0x52e19a(0x221)],'width':_0x149d96,'height':_0x15ecfa,'left':_0x14ea9d,'top':_0x59322a,'flipX':_0x403f51,'flipY':_0x3009f3,'angle':(_0x301e9c=_0x419846==null?(_0x193536=_0x28f521[_0x52e19a(0x221)])==null?void 0x0:_0x193536[_0x52e19a(0x212)]:_0x419846)==null?0x0:_0x301e9c},_0x51128e=(0x0,r['transformToDrawingPosition'])(_0x55e9e4,_0x33463d),_0x4e03f7=(0x0,r[_0x52e19a(0x23c)])(_0x55e9e4,_0x33463d),_0x34c055=_0x3206bb[_0x52e19a(0x222)](),_0xc438de=_0x3206bb[_0x52e19a(0x236)](),_0x22c6e0={'unitId':_0x4f8a11,'subUnitId':_0x15d035,'drawingId':_0x41e67b,'drawingType':t[_0x52e19a(0x245)]['DRAWING_SHAPE'],'sheetTransform':_0x51128e,'transform':_0x55e9e4,'data':{'shapeType':_0x15ef3b||_0x161e8a||_0x34c055,'shapeData':{..._0xc438de,'adjustValues':_0x931a1c||_0x4e42d6||(_0xc438de==null?void 0x0:_0xc438de['adjustValues']),'relation':_0x45c2ca||_0x54d168||(_0xc438de==null?void 0x0:_0xc438de[_0x52e19a(0x1e2)])}},'axisAlignSheetTransform':_0x4e03f7,'allowTransform':!0x0},{undo:_0x5488be,redo:_0x12e02c,objects:_0x251494}=_0x1d567b[_0x52e19a(0x256)]([_0x22c6e0]),_0x218c0a=_0x3f3b69[_0x52e19a(0x202)]({'id':r[_0x52e19a(0x257)]['id'],'params':{'unitId':_0x4f8a11,'drawings':[_0x22c6e0]}}),_0x1b5a2e=[...(_0x4d3b06=_0x218c0a[_0x52e19a(0x215)])==null?[]:_0x4d3b06,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4f8a11,'subUnitId':_0x15d035,'op':_0x12e02c,'objects':_0x251494,'type':r[_0x52e19a(0x251)][_0x52e19a(0x1c6)]}},{'id':r[_0x52e19a(0x1f2)]['id'],'params':[_0x4f8a11]},..._0x218c0a[_0x52e19a(0x27f)],{'id':_['id'],'params':{'unitId':_0x4f8a11,'subUnitId':_0x15d035,'shapeId':_0x41e67b,'shapeType':_0x15ef3b,'shapeData':{'adjustValues':_0x931a1c,'relation':_0x45c2ca}}}],_0x4f8735=[...(_0x410d28=_0x218c0a[_0x52e19a(0x22d)])==null?[]:_0x410d28,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4f8a11,'subUnitId':_0x15d035,'op':_0x5488be,'objects':_0x251494,'type':r[_0x52e19a(0x251)][_0x52e19a(0x1c6)]}},{'id':r[_0x52e19a(0x1f2)]['id'],'params':[_0x4f8a11]},..._0x218c0a[_0x52e19a(0x265)],{'id':_['id'],'params':{'unitId':_0x4f8a11,'subUnitId':_0x15d035,'shapeId':_0x41e67b,'shapeType':_0x34c055,'shapeData':{..._0xc438de,'adjustValues':_0x4e42d6||(_0xc438de==null?void 0x0:_0xc438de[_0x52e19a(0x204)]),'relation':_0x54d168||(_0xc438de==null?void 0x0:_0xc438de['relation'])}}}];return(0x0,t[_0x52e19a(0x268)])(_0x1b5a2e,_0x2f834b)[_0x52e19a(0x1d9)]?(_0xfc6f16[_0x52e19a(0x24d)]({'unitID':_0x4f8a11,'undoMutations':_0x4f8735,'redoMutations':_0x1b5a2e}),!0x0):!0x1;}},C={'type':t[_0x5cc9e4(0x207)][_0x5cc9e4(0x1cf)],'id':_0x5cc9e4(0x273),'handler':(_0x7ad25a,_0x3f6aa4)=>{const _0x33f691=_0x5cc9e4;var _0x5cfa4e,_0x440a6c;let _0x325537=(0x0,n[_0x33f691(0x26d)])(_0x7ad25a[_0x33f691(0x249)](t[_0x33f691(0x1c3)]),_0x3f6aa4);if(!_0x325537)return!0x1;let _0x2e1963=_0x7ad25a[_0x33f691(0x249)](n['SheetSkeletonService']),{unitId:_0x3f1b00,subUnitId:_0x4d390d}=_0x325537,_0x42651a=_0x2e1963[_0x33f691(0x1d6)](_0x3f1b00,_0x4d390d);if(!_0x42651a)return!0x1;let _0x35c881=_0x7ad25a[_0x33f691(0x249)](r['ISheetDrawingService']),{shapeId:_0xe4eb51,width:_0x4f0173,height:_0x3635e8,left:_0x2df95b,top:_0x176780,flipX:_0x272551,flipY:_0x16e4cf,angle:_0x393fc2,oldAdjustValues:_0x253c54,newAdjustValues:_0x2f774a,oldLineType:_0x12d6ba,newLineType:_0x483c74}=_0x3f6aa4,_0x2b6d3b=_0x35c881['getDrawingByParam']({'unitId':_0x3f1b00,'subUnitId':_0x4d390d,'drawingId':_0xe4eb51});if(!_0x2b6d3b)return!0x1;let _0x492947=_0x7ad25a[_0x33f691(0x249)](p)[_0x33f691(0x1d7)](_0x3f1b00,_0x4d390d,_0xe4eb51);if(!_0x492947)return!0x1;let _0x1357d4=_0x7ad25a[_0x33f691(0x249)](t[_0x33f691(0x218)]),_0x71bcd0=_0x7ad25a[_0x33f691(0x249)](t[_0x33f691(0x1e8)]),_0x4b58e5=_0x7ad25a['get'](n['SheetInterceptorService']),_0x322bfd={..._0x2b6d3b[_0x33f691(0x221)],'width':_0x4f0173,'height':_0x3635e8,'left':_0x2df95b,'top':_0x176780,'flipX':_0x272551,'flipY':_0x16e4cf,'angle':_0x393fc2},_0x102e46=(0x0,r[_0x33f691(0x24f)])(_0x322bfd,_0x42651a),_0x597adc=(0x0,r[_0x33f691(0x23c)])(_0x322bfd,_0x42651a),_0x1e44af=_0x492947[_0x33f691(0x222)](),_0x1515d9=_0x492947[_0x33f691(0x236)](),_0x5efc16={'unitId':_0x3f1b00,'subUnitId':_0x4d390d,'drawingId':_0xe4eb51,'drawingType':t['DrawingTypeEnum'][_0x33f691(0x21c)],'sheetTransform':_0x102e46,'transform':_0x322bfd,'data':{'shapeType':_0x483c74||_0x12d6ba||_0x1e44af,'shapeData':{..._0x1515d9,'adjustValues':_0x2f774a||_0x253c54||(_0x1515d9==null?void 0x0:_0x1515d9[_0x33f691(0x204)])}},'axisAlignSheetTransform':_0x597adc,'allowTransform':!0x0},{undo:_0x1b2a09,redo:_0x602d85,objects:_0x449193}=_0x35c881[_0x33f691(0x256)]([_0x5efc16]),_0x211203=_0x4b58e5['onCommandExecute']({'id':r[_0x33f691(0x257)]['id'],'params':{'unitId':_0x3f1b00,'drawings':[_0x5efc16]}}),_0x47667b=[...(_0x5cfa4e=_0x211203[_0x33f691(0x215)])==null?[]:_0x5cfa4e,{'id':r[_0x33f691(0x267)]['id'],'params':{'unitId':_0x3f1b00,'subUnitId':_0x4d390d,'op':_0x602d85,'objects':_0x449193,'type':r[_0x33f691(0x251)][_0x33f691(0x1c6)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3f1b00]},..._0x211203[_0x33f691(0x27f)],{'id':_['id'],'params':{'unitId':_0x3f1b00,'subUnitId':_0x4d390d,'shapeId':_0xe4eb51,'shapeType':_0x483c74,'shapeData':{'adjustValues':_0x2f774a}}}],_0x258007=[...(_0x440a6c=_0x211203[_0x33f691(0x22d)])==null?[]:_0x440a6c,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3f1b00,'subUnitId':_0x4d390d,'op':_0x1b2a09,'objects':_0x449193,'type':r[_0x33f691(0x251)][_0x33f691(0x1c6)]}},{'id':r[_0x33f691(0x1f2)]['id'],'params':[_0x3f1b00]},..._0x211203['undos'],{'id':_['id'],'params':{'unitId':_0x3f1b00,'subUnitId':_0x4d390d,'shapeId':_0xe4eb51,'shapeType':_0x1e44af,'shapeData':{..._0x1515d9,'adjustValues':_0x253c54||(_0x1515d9==null?void 0x0:_0x1515d9[_0x33f691(0x204)])}}}];return(0x0,t[_0x33f691(0x268)])(_0x47667b,_0x1357d4)[_0x33f691(0x1d9)]?(_0x71bcd0[_0x33f691(0x24d)]({'unitID':_0x3f1b00,'undoMutations':_0x258007,'redoMutations':_0x47667b}),!0x0):!0x1;}},w={'id':_0x5cc9e4(0x24b),'type':t[_0x5cc9e4(0x207)][_0x5cc9e4(0x22e)],'handler':(_0xf357ef,_0x554b51)=>{const _0x4ec499=_0x5cc9e4;let {unitId:_0x5c63d3,subUnitId:_0x59bf83,shapeType:_0x173689,shapeId:_0x7244e9,shapeData:_0x196323}=_0x554b51,_0x9805fd=_0xf357ef[_0x4ec499(0x249)](p)[_0x4ec499(0x1d7)](_0x5c63d3,_0x59bf83,_0x7244e9);return _0x9805fd&&(_0x9805fd[_0x4ec499(0x227)](_0x173689),_0x196323&&(_0x9805fd==null||_0x9805fd[_0x4ec499(0x211)](_0x196323))),!0x0;}},T={'id':_0x5cc9e4(0x20d),'type':t['CommandType'][_0x5cc9e4(0x1cf)],'handler':(_0x1c84cb,_0x3b745e)=>{const _0x870a3e=_0x5cc9e4;if(!_0x3b745e)return!0x1;let _0xa407c=_0x1c84cb[_0x870a3e(0x249)](t[_0x870a3e(0x218)]),_0x15ab2e=_0x1c84cb[_0x870a3e(0x249)](p),_0x4f042b=_0x1c84cb[_0x870a3e(0x249)](t[_0x870a3e(0x1e8)]),_0x1a0c5b=[],_0x581abf=[],{unitId:_0x359916,subUnitId:_0x3a08ce,shapeId:_0x1b1860,shapeType:_0x1cb06c,shapeData:_0x285ebd}=_0x3b745e,_0x6c4136=_0x15ab2e[_0x870a3e(0x1d7)](_0x359916,_0x3a08ce,_0x1b1860);if(_0x6c4136){let _0x2b149c=_0x6c4136['getShapeType'](),_0x2d1544=Object['assign']({},_0x6c4136[_0x870a3e(0x236)]()),_0x129aee={'unitId':_0x359916,'subUnitId':_0x3a08ce,'shapeId':_0x1b1860,'shapeType':_0x1cb06c,'shapeData':_0x285ebd},_0x1529c3={'unitId':_0x359916,'subUnitId':_0x3a08ce,'shapeId':_0x1b1860,'shapeType':_0x2b149c,'shapeData':_0x2d1544};return _0x1a0c5b['push']({'id':w['id'],'params':_0x129aee}),_0x581abf['push']({'id':w['id'],'params':_0x1529c3}),_0x1a0c5b[_0x870a3e(0x246)](_0x44674c=>_0xa407c['syncExecuteCommand'](_0x44674c['id'],_0x44674c['params']))&&_0x4f042b['pushUndoRedo']({'unitID':_0x359916,'redoMutations':[..._0x1a0c5b],'undoMutations':[..._0x581abf]}),!0x0;}return!0x1;}};function _0x865d(_0x2eac4e,_0x409cd3){_0x2eac4e=_0x2eac4e-0x1b9;const _0x21e7f3=_0x21e7();let _0x865df5=_0x21e7f3[_0x2eac4e];return _0x865df5;}var E=_0x5cc9e4(0x266),D=_0x5cc9e4(0x1ec);const O={};let k=class extends t['Disposable']{constructor(_0x246fc1,_0x6a88d,_0x10de42,_0x19d361,_0xe65e9c){const _0x19206b=_0x5cc9e4;super(),this[_0x19206b(0x1c5)]=_0x246fc1,this['_sheetInterceptorService']=_0x6a88d,this[_0x19206b(0x1e7)]=_0x10de42,this['_sheetsShapeService']=_0x19d361,this['_drawingManagerService']=_0xe65e9c,this['_initCommands'](),this[_0x19206b(0x1df)]();}[_0x5cc9e4(0x272)](){const _0x2300ea=_0x5cc9e4;[g,v,y,b,x,S,C,m,h,w,_][_0x2300ea(0x1cd)](_0x4a1be5=>this[_0x2300ea(0x269)](this[_0x2300ea(0x1c5)][_0x2300ea(0x24c)](_0x4a1be5)));}[_0x5cc9e4(0x1df)](){const _0x39d42c=_0x5cc9e4;this[_0x39d42c(0x269)](this['_sheetInterceptorService'][_0x39d42c(0x21a)]({'getMutations':_0x5e7d99=>{const _0x443058=_0x39d42c;if(_0x5e7d99['id']===r[_0x443058(0x1f6)]['id']){let {drawings:_0x3a51fe}=_0x5e7d99['params'],_0xa16199=_0x3a51fe[_0x443058(0x1f0)](_0x4af86d=>_0x4af86d[_0x443058(0x224)]===t[_0x443058(0x245)]['DRAWING_SHAPE']);if(_0xa16199[_0x443058(0x1cc)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x542eb7=[],_0x32ce62=[];return _0xa16199[_0x443058(0x1cd)](_0x1f244b=>{const _0xd29d69=_0x443058;let {unitId:_0x5b424a,subUnitId:_0x55aca9,drawingId:_0x388d43}=_0x1f244b,_0x589048=this[_0xd29d69(0x1d2)][_0xd29d69(0x1d7)](_0x5b424a,_0x55aca9,_0x388d43);if(!_0x589048)throw TypeError(_0xd29d69(0x264)+_0x589048);_0x542eb7[_0xd29d69(0x1f7)]({'id':h['id'],'params':{'unitId':_0x5b424a,'subUnitId':_0x55aca9,'shapeId':_0x388d43}}),_0x32ce62[_0xd29d69(0x1f7)]({'id':m['id'],'params':{'unitId':_0x5b424a,'subUnitId':_0x55aca9,'shapeId':_0x388d43,'shapeType':_0x589048[_0xd29d69(0x222)](),'shapeData':_0x589048[_0xd29d69(0x236)]()}});let _0x4ceb74=this[_0xd29d69(0x1d2)][_0xd29d69(0x219)](_0x5b424a,_0x55aca9,_0x388d43);if(_0x4ceb74)for(let _0x59b1e0 of _0x4ceb74){let _0x2709f8=_0x59b1e0[_0xd29d69(0x26a)],_0x866506=_0x59b1e0[_0xd29d69(0x1bb)],_0x1c8aae=_0x866506?{'from':void 0x0}:{'to':void 0x0},_0x4d343d=_0x866506?{'from':{'shapeId':_0x59b1e0['shapeId'],'cxnIndex':_0x59b1e0[_0xd29d69(0x20a)]}}:{'to':{'shapeId':_0x59b1e0['shapeId'],'cxnIndex':_0x59b1e0[_0xd29d69(0x20a)]}};_0x542eb7[_0xd29d69(0x1f7)]({'id':_['id'],'params':{'unitId':_0x5b424a,'subUnitId':_0x55aca9,'shapeId':_0x2709f8,'shapeData':{'relation':_0x1c8aae}}}),_0x32ce62['push']({'id':_['id'],'params':{'unitId':_0x5b424a,'subUnitId':_0x55aca9,'shapeId':_0x2709f8,'shapeData':{'relation':_0x4d343d}}});}}),{'preRedos':_0x542eb7,'redos':[],'preUndos':[],'undos':_0x32ce62};}if(_0x5e7d99['id']===r['SetSheetDrawingCommand']['id']){let {drawings:_0x38a0c7}=_0x5e7d99[_0x443058(0x1fd)],_0xc10a55=_0x38a0c7[_0x443058(0x1f0)](_0x1a7bcd=>_0x1a7bcd['drawingType']===t[_0x443058(0x245)]['DRAWING_SHAPE']);if(_0xc10a55['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x43018c=[],_0x1d34f8=[];for(let _0x65ee8a of _0xc10a55){let {unitId:_0x38dd27,subUnitId:_0x4895b3,drawingId:_0x2f6634,transform:_0x4dd930}=_0x65ee8a;if(!_0x38dd27||!_0x4895b3||!_0x2f6634||!_0x4dd930)continue;let _0x2977cf=this[_0x443058(0x1d2)][_0x443058(0x1d7)](_0x38dd27,_0x4895b3,_0x2f6634);if(!_0x2977cf)throw TypeError(_0x443058(0x264)+_0x2977cf);if((0x0,e['isConnectorShape'])(_0x2977cf['getShapeType']())){let _0x2b92c7=this[_0x443058(0x1d2)][_0x443058(0x1e5)](_0x38dd27,_0x4895b3,_0x2f6634);_0x2b92c7&&(_0x43018c[_0x443058(0x1f7)]({'id':_['id'],'params':{'unitId':_0x38dd27,'subUnitId':_0x4895b3,'shapeId':_0x2f6634,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x1d34f8[_0x443058(0x1f7)]({'id':_['id'],'params':{'unitId':_0x38dd27,'subUnitId':_0x4895b3,'shapeId':_0x2f6634,'shapeData':{'relation':_0x2b92c7}}}));}else{let _0x383c03=this[_0x443058(0x1d2)]['getBasicShapeRelation'](_0x38dd27,_0x4895b3,_0x2f6634);if(_0x383c03&&_0x383c03[_0x443058(0x1cc)]>0x0)for(let _0x458e28 of _0x383c03){let _0x417242=_0x458e28[_0x443058(0x26a)],_0x5d5686=_0x458e28['isFrom'],_0x392c46=this[_0x443058(0x1d2)][_0x443058(0x1d7)](_0x38dd27,_0x4895b3,_0x417242);if(!_0x392c46)continue;let _0x2bbbb5=_0x392c46[_0x443058(0x23d)](),_0x91fa08=_0x392c46[_0x443058(0x233)]();_0x2bbbb5&&_0x91fa08?this['_addLineRerouteUpdates'](_0x38dd27,_0x4895b3,_0x417242,_0x392c46,_0x2bbbb5,_0x91fa08,_0x43018c,_0x1d34f8,_0x2f6634,_0x4dd930):this[_0x443058(0x1f9)](_0x38dd27,_0x4895b3,_0x417242,_0x392c46,_0x5d5686?_0x2bbbb5:_0x91fa08,_0x5d5686,_0x43018c,_0x1d34f8,_0x2f6634,_0x4dd930);}}}return{'preRedos':[],'redos':_0x43018c,'preUndos':_0x1d34f8,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x5cc9e4(0x1bd)](_0x13f157,_0x4db858,_0x4f1154,_0x5045ee,_0xaacd9c){const _0x10eadb=_0x5cc9e4;if(!_0x4db858||!_0x4f1154)return null;let {shapeId:_0xb8fbb6,cxnIndex:_0x187e66}=_0x13f157,_0x398c4f=this[_0x10eadb(0x1d2)][_0x10eadb(0x1d7)](_0x4db858,_0x4f1154,_0xb8fbb6);if(!_0x398c4f)return null;let _0x1483af=this[_0x10eadb(0x1f4)]['getDrawingByParam']({'unitId':_0x4db858,'subUnitId':_0x4f1154,'drawingId':_0xb8fbb6});if(!(_0x1483af!=null&&_0x1483af[_0x10eadb(0x221)]))return null;let {left:_0x3d83c0=0x0,top:_0x4af249=0x0,width:_0x24e44c=0x0,height:_0x4116c6=0x0,flipX:_0x3ac1bf=!0x1,flipY:_0x5923e1=!0x1,angle:_0x426f33}=_0x1483af['transform'];if(_0xaacd9c&&_0x5045ee===_0xb8fbb6){var _0x1d9c74,_0x219b68,_0x2b011f,_0x3dd69a,_0x366d98,_0xd58f6c,_0x35bc52;_0x3d83c0=(_0x1d9c74=_0xaacd9c[_0x10eadb(0x28a)])==null?_0x3d83c0:_0x1d9c74,_0x4af249=(_0x219b68=_0xaacd9c[_0x10eadb(0x277)])==null?_0x4af249:_0x219b68,_0x24e44c=(_0x2b011f=_0xaacd9c['width'])==null?_0x24e44c:_0x2b011f,_0x4116c6=(_0x3dd69a=_0xaacd9c[_0x10eadb(0x237)])==null?_0x4116c6:_0x3dd69a,_0x3ac1bf=(_0x366d98=_0xaacd9c['flipX'])==null?_0x3ac1bf:_0x366d98,_0x5923e1=(_0xd58f6c=_0xaacd9c[_0x10eadb(0x240)])==null?_0x5923e1:_0xd58f6c,_0x426f33=(_0x35bc52=_0xaacd9c[_0x10eadb(0x212)])==null?_0x426f33:_0x35bc52;}_0x398c4f[_0x10eadb(0x258)]({'width':_0x24e44c,'height':_0x4116c6});let _0x191d1b=_0x398c4f[_0x10eadb(0x1c8)]()[_0x10eadb(0x223)](_0x43b563=>_0x43b563[_0x10eadb(0x232)]===_0x187e66);if(!_0x191d1b)return null;let _0x208454=_0x3ac1bf?_0x24e44c-_0x191d1b['x']:_0x191d1b['x'],_0x43791c=_0x5923e1?_0x4116c6-_0x191d1b['y']:_0x191d1b['y'];if(_0x426f33!==0x0&&_0x426f33!=null){let _0x1c3d68=_0x426f33*Math['PI']/0xb4,_0x554847=Math[_0x10eadb(0x1ee)](_0x1c3d68),_0xb99183=Math[_0x10eadb(0x244)](_0x1c3d68),_0xa5aa81=_0x24e44c/0x2,_0x2ed861=_0x4116c6/0x2,_0x98fd57=_0x208454-_0xa5aa81,_0x13cf43=_0x43791c-_0x2ed861;_0x208454=_0xa5aa81+_0x98fd57*_0x554847-_0x13cf43*_0xb99183,_0x43791c=_0x2ed861+_0x98fd57*_0xb99183+_0x13cf43*_0x554847;}_0x208454+=_0x3d83c0,_0x43791c+=_0x4af249;let _0x492d85=_0x191d1b[_0x10eadb(0x1b9)]/0xea60;_0x3ac1bf&&(_0x492d85=0xb4-_0x492d85),_0x5923e1&&(_0x492d85=-_0x492d85),_0x492d85+=_0x426f33||0x0,_0x492d85=(_0x492d85%0x168+0x168)%0x168;let _0x376bc9=(0x0,e['getBasicShapeRotateBound'])({'left':_0x3d83c0,'top':_0x4af249,'width':_0x24e44c,'height':_0x4116c6},_0x426f33||0x0);return{'point':{'x':_0x208454,'y':_0x43791c},'angle':_0x492d85,'bounds':_0x376bc9};}[_0x5cc9e4(0x20c)](_0x15d2e5,_0x263821,_0x2495d2,_0x3934fc,_0x3991b8,_0x4939f5,_0x4fa1d2,_0x26ebf4,_0x511615,_0x3d9682){const _0x128d85=_0x5cc9e4;let _0x36d872=this[_0x128d85(0x1e7)]['getSkeleton'](_0x15d2e5,_0x263821);if(!_0x36d872)return;let _0x531a98=_0x3934fc['getShapeRelation'](),_0x6388f=_0x3934fc[_0x128d85(0x1d5)](),_0x82342={},_0x2604ad={};_0x6388f['forEach'](_0x1c5879=>{const _0x52f394=_0x128d85;let _0x11e390=_0x3934fc[_0x52f394(0x261)](_0x1c5879);_0x2604ad[_0x1c5879]=_0x11e390==null?0x0:_0x11e390;});let _0x4e0f26=this[_0x128d85(0x1bd)](_0x3991b8,_0x15d2e5,_0x263821,_0x511615,_0x3d9682),_0x172d1a=this[_0x128d85(0x1bd)](_0x4939f5,_0x15d2e5,_0x263821,_0x511615,_0x3d9682);if(_0x4e0f26&&_0x172d1a){let _0x20f155=_0x3934fc[_0x128d85(0x222)](),_0x12b1b2=(0x0,e[_0x128d85(0x216)])(_0x4e0f26,_0x172d1a,_0x20f155),_0x103618=_0x20f155;if(_0x12b1b2){let _0x50e704=(0x0,e['computeConnectorRouteLayout'])(_0x12b1b2,_0x3934fc['getShapeType']()),_0x3e0ee7=this[_0x128d85(0x1f4)][_0x128d85(0x239)](_0x15d2e5,_0x263821);if(_0x3e0ee7&&_0x3e0ee7[_0x2495d2]){let _0x37e779=_0x3e0ee7[_0x2495d2];_0x103618=_0x50e704[_0x128d85(0x21b)];for(let [_0x131654,_0x35712c]of Object[_0x128d85(0x235)](_0x50e704[_0x128d85(0x204)]))_0x82342[_0x131654]=_0x35712c;let _0x4142f9={..._0x37e779[_0x128d85(0x221)],'width':_0x50e704['worldRect'][_0x128d85(0x205)],'height':_0x50e704[_0x128d85(0x288)][_0x128d85(0x237)],'left':_0x50e704[_0x128d85(0x288)][_0x128d85(0x28a)],'top':_0x50e704[_0x128d85(0x288)][_0x128d85(0x277)],'flipX':_0x50e704['worldRect'][_0x128d85(0x25b)],'flipY':_0x50e704[_0x128d85(0x288)][_0x128d85(0x240)],'angle':_0x50e704[_0x128d85(0x281)]},_0xb9683e=(0x0,r['transformToDrawingPosition'])(_0x4142f9,_0x36d872),_0x15e7e3=(0x0,r['transformToAxisAlignPosition'])(_0x4142f9,_0x36d872),_0x538d28={'unitId':_0x15d2e5,'subUnitId':_0x263821,'drawingType':t[_0x128d85(0x245)][_0x128d85(0x21c)],'drawingId':_0x2495d2,'transform':_0x4142f9,'sheetTransform':_0xb9683e,'axisAlignSheetTransform':_0x15e7e3},{unitId:_0x2ee4a2,subUnitId:_0x4b71ac,undo:_0x335341,redo:_0x70e7dc,objects:_0x3e919f}=this[_0x128d85(0x1f4)][_0x128d85(0x256)]([_0x538d28]);_0x4fa1d2[_0x128d85(0x1f7)]({'id':r[_0x128d85(0x267)]['id'],'params':{'unitId':_0x2ee4a2,'subUnitId':_0x4b71ac,'op':_0x70e7dc,'objects':_0x3e919f,'type':r[_0x128d85(0x251)][_0x128d85(0x1c6)]}}),_0x26ebf4[_0x128d85(0x1f7)]({'id':r[_0x128d85(0x267)]['id'],'params':{'unitId':_0x2ee4a2,'subUnitId':_0x4b71ac,'op':_0x335341,'objects':_0x3e919f,'type':r[_0x128d85(0x251)][_0x128d85(0x1c6)]}});}_0x3934fc[_0x128d85(0x21e)]();}_0x4fa1d2[_0x128d85(0x1f7)]({'id':_['id'],'params':{'unitId':_0x15d2e5,'subUnitId':_0x263821,'shapeId':_0x2495d2,'shapeType':_0x103618,'shapeData':{'adjustValues':_0x82342,'relation':_0x531a98}}}),_0x26ebf4[_0x128d85(0x1f7)]({'id':_['id'],'params':{'unitId':_0x15d2e5,'subUnitId':_0x263821,'shapeId':_0x2495d2,'shapeType':_0x20f155,'shapeData':{'adjustValues':_0x2604ad,'relation':_0x531a98}}});}}['_addLineFollowShapeUpdates'](_0xab3e77,_0x475cf5,_0x164f76,_0x511ce9,_0x92c76d,_0x22cf1d,_0xf7e51d,_0x4d3d39,_0x2218ac,_0x690bfa){const _0x2768b7=_0x5cc9e4;var _0x255ec3;if(!_0x92c76d)return;let _0x269a73=this[_0x2768b7(0x1e7)][_0x2768b7(0x1d6)](_0xab3e77,_0x475cf5);if(!_0x269a73)return;let _0x507b7f=(_0x255ec3=this[_0x2768b7(0x1f4)][_0x2768b7(0x229)]({'unitId':_0xab3e77,'subUnitId':_0x475cf5,'drawingId':_0x2218ac}))==null?void 0x0:_0x255ec3[_0x2768b7(0x221)];if(!_0x507b7f)return;let _0x3a203a=_0x507b7f['left']!==_0x690bfa[_0x2768b7(0x28a)]||_0x507b7f['top']!==_0x690bfa[_0x2768b7(0x277)],_0x22e615=_0x507b7f['width']!==_0x690bfa[_0x2768b7(0x205)]||_0x507b7f[_0x2768b7(0x237)]!==_0x690bfa[_0x2768b7(0x237)],_0x29ac8b=_0x507b7f[_0x2768b7(0x25b)]!==_0x690bfa['flipX']||_0x507b7f[_0x2768b7(0x240)]!==_0x690bfa['flipY'],_0x365f13=_0x507b7f[_0x2768b7(0x212)]!==_0x690bfa[_0x2768b7(0x212)];if(_0x3a203a&&!_0x22e615&&!_0x29ac8b&&!_0x365f13){var _0x111ad0,_0x59fd41,_0x3674d4,_0x8e63c2;let _0x5c5ddc=((_0x111ad0=_0x690bfa[_0x2768b7(0x28a)])==null?0x0:_0x111ad0)-((_0x59fd41=_0x507b7f[_0x2768b7(0x28a)])==null?0x0:_0x59fd41),_0xdb0fb3=((_0x3674d4=_0x690bfa[_0x2768b7(0x277)])==null?0x0:_0x3674d4)-((_0x8e63c2=_0x507b7f['top'])==null?0x0:_0x8e63c2),_0x28641c=this[_0x2768b7(0x1f4)]['getDrawingData'](_0xab3e77,_0x475cf5);if(_0x28641c&&_0x28641c[_0x164f76]){var _0x2ab637,_0x519a1f,_0x41b59f,_0x3c8354;let _0x372670=_0x28641c[_0x164f76],_0x10c50f={..._0x372670['transform'],'left':((_0x2ab637=(_0x519a1f=_0x372670[_0x2768b7(0x221)])==null?void 0x0:_0x519a1f[_0x2768b7(0x28a)])==null?0x0:_0x2ab637)+_0x5c5ddc,'top':((_0x41b59f=(_0x3c8354=_0x372670[_0x2768b7(0x221)])==null?void 0x0:_0x3c8354['top'])==null?0x0:_0x41b59f)+_0xdb0fb3},_0x5bff9d=(0x0,r[_0x2768b7(0x24f)])(_0x10c50f,_0x269a73),_0x2c5ac0=(0x0,r[_0x2768b7(0x23c)])(_0x10c50f,_0x269a73),_0x578ba9={'unitId':_0xab3e77,'subUnitId':_0x475cf5,'drawingType':t['DrawingTypeEnum'][_0x2768b7(0x21c)],'drawingId':_0x164f76,'transform':_0x10c50f,'sheetTransform':_0x5bff9d,'axisAlignSheetTransform':_0x2c5ac0},{unitId:_0x2fc882,subUnitId:_0x26b2b1,undo:_0x2282a4,redo:_0x3163ed,objects:_0x1602db}=this[_0x2768b7(0x1f4)]['getBatchUpdateOp']([_0x578ba9]);_0xf7e51d[_0x2768b7(0x1f7)]({'id':r[_0x2768b7(0x267)]['id'],'params':{'unitId':_0x2fc882,'subUnitId':_0x26b2b1,'op':_0x3163ed,'objects':_0x1602db,'type':r[_0x2768b7(0x251)][_0x2768b7(0x1c6)]}}),_0x4d3d39[_0x2768b7(0x1f7)]({'id':r[_0x2768b7(0x267)]['id'],'params':{'unitId':_0x2fc882,'subUnitId':_0x26b2b1,'op':_0x2282a4,'objects':_0x1602db,'type':r[_0x2768b7(0x251)][_0x2768b7(0x1c6)]}});}}else{let _0x2370c9=_0x511ce9[_0x2768b7(0x23d)](),_0x2e398c=_0x511ce9[_0x2768b7(0x233)]();this[_0x2768b7(0x20c)](_0xab3e77,_0x475cf5,_0x164f76,_0x511ce9,_0x2370c9,_0x2e398c,_0xf7e51d,_0x4d3d39,_0x2218ac,_0x690bfa);}}};k=f([d(0x0,t[_0x5cc9e4(0x218)]),d(0x1,(0x0,t[_0x5cc9e4(0x23b)])(n[_0x5cc9e4(0x247)])),d(0x2,(0x0,t[_0x5cc9e4(0x23b)])(n[_0x5cc9e4(0x226)])),d(0x3,(0x0,t[_0x5cc9e4(0x23b)])(p)),d(0x4,(0x0,t['Inject'])(a[_0x5cc9e4(0x1e1)]))],k);let A=class extends t[_0x5cc9e4(0x24e)]{constructor(_0x5abddf=O,_0x1b930e,_0x505384,_0x2487ca){const _0x2dadfd=_0x5cc9e4;super(),this['_config']=_0x5abddf,this[_0x2dadfd(0x1c0)]=_0x1b930e,this[_0x2dadfd(0x1c5)]=_0x505384,this[_0x2dadfd(0x254)]=_0x2487ca;let {..._0x50ae8a}=(0x0,t[_0x2dadfd(0x1e3)])({},O,this[_0x2dadfd(0x1e9)]);this[_0x2dadfd(0x254)][_0x2dadfd(0x23e)]('sheets-shape.config',_0x50ae8a);}[_0x5cc9e4(0x1ff)](){const _0x503021=_0x5cc9e4;let _0x4f5418=this[_0x503021(0x1c0)];[[u],[p],[k]][_0x503021(0x1cd)](_0x1ff5a4=>_0x4f5418[_0x503021(0x27b)](_0x1ff5a4)),(0x0,t[_0x503021(0x203)])(_0x4f5418,[[p],[k]]);}};l(A,_0x5cc9e4(0x282),t['UniverInstanceType'][_0x5cc9e4(0x1ce)]),l(A,_0x5cc9e4(0x278),_0x5cc9e4(0x22b)),l(A,'packageName',E),l(A,'version',D),A=f([(0x0,t['DependentOn'])(i['UniverLicensePlugin']),d(0x1,(0x0,t[_0x5cc9e4(0x23b)])(t[_0x5cc9e4(0x25e)])),d(0x2,t[_0x5cc9e4(0x218)]),d(0x3,t[_0x5cc9e4(0x228)])],A),exports[_0x5cc9e4(0x238)]=0xc8,exports[_0x5cc9e4(0x276)]=0xc8,exports[_0x5cc9e4(0x1fb)]=g,exports['InsertSheetsShapeMutation']=m,exports['RemoveSheetsShapeMutation']=h,exports[_0x5cc9e4(0x280)]=v,exports[_0x5cc9e4(0x270)]=b,exports[_0x5cc9e4(0x274)]=x,Object[_0x5cc9e4(0x1fc)](exports,_0x5cc9e4(0x1dc),{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x5cc9e4(0x287)]=y,Object[_0x5cc9e4(0x1fc)](exports,_0x5cc9e4(0x20e),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x5cc9e4(0x27d)]=S,exports[_0x5cc9e4(0x25f)]=C,exports[_0x5cc9e4(0x1c7)]=_,exports[_0x5cc9e4(0x1da)]=T,exports['UpdateSheetsShapeTypeMutation']=w;
|