@univerjs-pro/sheets-shape 1.0.0-alpha.3 → 1.0.0-alpha.5

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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x24315c=_0x401b;(function(_0xc03872,_0x98d5d4){const _0xab5daf=_0x401b,_0xa84df9=_0xc03872();while(!![]){try{const _0x54e72f=-parseInt(_0xab5daf(0x15e))/0x1+parseInt(_0xab5daf(0x102))/0x2*(-parseInt(_0xab5daf(0x178))/0x3)+parseInt(_0xab5daf(0x167))/0x4+-parseInt(_0xab5daf(0x166))/0x5*(-parseInt(_0xab5daf(0x10e))/0x6)+-parseInt(_0xab5daf(0x137))/0x7+-parseInt(_0xab5daf(0x12c))/0x8+-parseInt(_0xab5daf(0x12b))/0x9*(-parseInt(_0xab5daf(0x180))/0xa);if(_0x54e72f===_0x98d5d4)break;else _0xa84df9['push'](_0xa84df9['shift']());}catch(_0x41edee){_0xa84df9['push'](_0xa84df9['shift']());}}}(_0xb7bc,0x3fb0d));import{ShapeModel as _0x4935d1,computeConnectorRouteLayout as _0x11cba5,createUniqueShapeName as _0x3c2717,getBasicShapeRotateBound as _0xee328b,isConnectorShape as _0x45bbc3,routeConnectorLineShape as _0x696e80}from'@univerjs-pro/engine-shape';import{CommandType as _0x395a1d,DependentOn as _0x173671,Disposable as _0x205493,DrawingTypeEnum as _0xcd5ef0,ICommandService as _0x12d889,IConfigService as _0x5ad0ed,IResourceManagerService as _0x5d31ed,IUndoRedoService as _0x32f094,IUniverInstanceService as _0x14f0b3,Inject as _0x396a8a,Injector as _0x1e351a,Plugin as _0x307e7b,UniverInstanceType as _0xf89464,generateRandomId as _0x26e08e,merge as _0x5db2e6,sequenceExecute as _0x2d1a4f,touchDependencies as _0x46da78}from'@univerjs/core';function _0x401b(_0x9a3a2f,_0x5b27b6){_0x9a3a2f=_0x9a3a2f-0xe4;const _0xb7bc48=_0xb7bc();let _0x401b30=_0xb7bc48[_0x9a3a2f];return _0x401b30;}import{SheetInterceptorService as _0x3d6fd9,SheetSkeletonService as _0x3dac38,getSheetCommandTarget as _0x37d1c8}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x2ec674,DrawingApplyType as _0x366655,ISheetDrawingService as _0x189a5a,InsertSheetDrawingCommand as _0x12582e,RemoveSheetDrawingCommand as _0x30f0fe,SetDrawingApplyMutation as _0xb6a54f,SetSheetDrawingCommand as _0x1ecf99,transformToAxisAlignPosition as _0x58930a,transformToDrawingPosition as _0x4f2943}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1837ff}from'@univerjs-pro/license';import{IDrawingManagerService as _0x3f7bd4}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x1ce3e0){'@babel/helpers - typeof';const _0x43454c=_0x401b;return z=typeof Symbol==_0x43454c(0xe6)&&typeof Symbol['iterator']==_0x43454c(0x114)?function(_0x3c66c3){return typeof _0x3c66c3;}:function(_0x1012d8){const _0x5b8c20=_0x43454c;return _0x1012d8&&typeof Symbol==_0x5b8c20(0xe6)&&_0x1012d8[_0x5b8c20(0x17f)]===Symbol&&_0x1012d8!==Symbol[_0x5b8c20(0x12e)]?'symbol':typeof _0x1012d8;},z(_0x1ce3e0);}function B(_0x15d54d,_0x45bb57){const _0x45269c=_0x401b;if(z(_0x15d54d)!='object'||!_0x15d54d)return _0x15d54d;var _0x29057e=_0x15d54d[Symbol[_0x45269c(0x17e)]];if(_0x29057e!==void 0x0){var _0x273260=_0x29057e[_0x45269c(0x158)](_0x15d54d,_0x45bb57||_0x45269c(0x135));if(z(_0x273260)!=_0x45269c(0x125))return _0x273260;throw TypeError(_0x45269c(0x103));}return(_0x45bb57===_0x45269c(0x111)?String:Number)(_0x15d54d);}function V(_0x146be5){const _0x1e12dc=_0x401b;var _0x2a3d69=B(_0x146be5,_0x1e12dc(0x111));return z(_0x2a3d69)==_0x1e12dc(0x114)?_0x2a3d69:_0x2a3d69+'';}function H(_0x355373,_0x5fdeb4,_0x4e5afa){return(_0x5fdeb4=V(_0x5fdeb4))in _0x355373?Object['defineProperty'](_0x355373,_0x5fdeb4,{'value':_0x4e5afa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x355373[_0x5fdeb4]=_0x4e5afa,_0x355373;}var U=class extends _0x205493{constructor(){const _0x5a69c7=_0x401b;super(),H(this,_0x5a69c7(0x174),new Map()),H(this,_0x5a69c7(0x14b),new Set()),H(this,_0x5a69c7(0x17c),new Set());}[_0x24315c(0x14e)](_0x52c245,_0x4eced4,_0x31beae,_0x3a89da){const _0x114c2b=_0x24315c;let _0xfd11ab=new _0x4935d1(_0x52c245,_0x4eced4,_0x31beae,_0x3a89da);return this['_shapes'][_0x114c2b(0x12a)](_0x4eced4,_0xfd11ab),_0x45bbc3(_0x52c245)&&this['_linesIds'][_0x114c2b(0x145)](_0x4eced4),_0xfd11ab;}[_0x24315c(0x163)](_0xb0dca4){const _0x4862d6=_0x24315c;let _0x1311cc=[];for(let _0x15bb76 of this['_linesIds']){let _0x22f42d=this[_0x4862d6(0x174)]['get'](_0x15bb76);if(_0x22f42d){let _0x5f31e9=_0x22f42d[_0x4862d6(0x179)]();if(_0x5f31e9){var _0x5619bf,_0x4ffbdf;((_0x5619bf=_0x5f31e9['from'])==null?void 0x0:_0x5619bf['shapeId'])===_0xb0dca4&&_0x1311cc[_0x4862d6(0x12f)]({..._0x5f31e9['from'],'lineShapeId':_0x15bb76,'isFrom':!0x0}),((_0x4ffbdf=_0x5f31e9['to'])==null?void 0x0:_0x4ffbdf['shapeId'])===_0xb0dca4&&_0x1311cc[_0x4862d6(0x12f)]({..._0x5f31e9['to'],'lineShapeId':_0x15bb76,'isFrom':!0x1});}}}return _0x1311cc;}[_0x24315c(0xff)](_0x3f5741){const _0x5c452c=_0x24315c;let _0x1a62ea=this[_0x5c452c(0x174)][_0x5c452c(0x123)](_0x3f5741);if(_0x1a62ea)return _0x1a62ea['getShapeRelation']();}['getShapeType'](_0xc7728a){const _0x47def0=_0x24315c;let _0xb859c8=this['_shapes'][_0x47def0(0x123)](_0xc7728a);if(_0xb859c8)return _0xb859c8['getShapeType']();}[_0x24315c(0xf1)](_0x1a9ee7){const _0x18cbc8=_0x24315c;return this[_0x18cbc8(0x174)]['has'](_0x1a9ee7);}[_0x24315c(0x147)](){const _0x28171e=_0x24315c;return Array[_0x28171e(0x161)](this['_shapes'][_0x28171e(0x15d)]())['map'](_0x33511d=>_0x33511d['getName']()||_0x33511d[_0x28171e(0xe8)]());}[_0x24315c(0x10d)](_0x3ae981){const _0x1b11ff=_0x24315c;let _0x3516e2=this['_shapes'][_0x1b11ff(0x123)](_0x3ae981);_0x3516e2&&(_0x45bbc3(_0x3516e2[_0x1b11ff(0x126)]())&&this[_0x1b11ff(0x14b)]['delete'](_0x3ae981),this[_0x1b11ff(0x174)][_0x1b11ff(0x175)](_0x3ae981));}[_0x24315c(0x13f)](){const _0x2ada0c=_0x24315c;let _0x274a93=[];return this[_0x2ada0c(0x174)][_0x2ada0c(0x107)](_0x22032b=>{const _0x5b56c5=_0x2ada0c;_0x274a93[_0x5b56c5(0x12f)](_0x22032b['toJSON']());}),_0x274a93;}[_0x24315c(0x11c)](_0x44ace5){const _0x5bae49=_0x24315c;for(let _0x24d060 of _0x44ace5){let {id:_0x32ddb6,shapeType:_0x25f2e1,name:_0x3f822b}=_0x24d060,_0x25e55a=this[_0x5bae49(0x14e)](_0x25f2e1,_0x32ddb6,_0x24d060[_0x5bae49(0x108)],_0x3f822b);_0x25e55a&&_0x25e55a[_0x5bae49(0x140)]()&&this[_0x5bae49(0x14b)][_0x5bae49(0x145)](_0x32ddb6);}}[_0x24315c(0x152)](){const _0x440289=_0x24315c;this['_disposed']||(this[_0x440289(0x174)][_0x440289(0x107)](_0x4c95ee=>{const _0xebb0fb=_0x440289;_0x4c95ee[_0xebb0fb(0x152)]();}),this[_0x440289(0x174)][_0x440289(0x106)](),this['_linesIds'][_0x440289(0x106)](),this['_groupIds'][_0x440289(0x106)](),super[_0x440289(0x152)]());}};function W(_0x1bb470,_0x5c4068){return function(_0x2175e8,_0x481caf){_0x5c4068(_0x2175e8,_0x481caf,_0x1bb470);};}function G(_0x3ad02e,_0x13b348,_0x3b114c,_0x96ada6){const _0x8ecea5=_0x24315c;var _0xa58497=arguments[_0x8ecea5(0x142)],_0x257d42=_0xa58497<0x3?_0x13b348:_0x96ada6===null?_0x96ada6=Object[_0x8ecea5(0x17b)](_0x13b348,_0x3b114c):_0x96ada6,_0x19050b;if(typeof Reflect==_0x8ecea5(0x125)&&typeof Reflect[_0x8ecea5(0x101)]==_0x8ecea5(0xe6))_0x257d42=Reflect[_0x8ecea5(0x101)](_0x3ad02e,_0x13b348,_0x3b114c,_0x96ada6);else{for(var _0x2368a9=_0x3ad02e[_0x8ecea5(0x142)]-0x1;_0x2368a9>=0x0;_0x2368a9--)(_0x19050b=_0x3ad02e[_0x2368a9])&&(_0x257d42=(_0xa58497<0x3?_0x19050b(_0x257d42):_0xa58497>0x3?_0x19050b(_0x13b348,_0x3b114c,_0x257d42):_0x19050b(_0x13b348,_0x3b114c))||_0x257d42);}return _0xa58497>0x3&&_0x257d42&&Object[_0x8ecea5(0xe9)](_0x13b348,_0x3b114c,_0x257d42),_0x257d42;}let K=class extends _0x205493{constructor(_0xc58489){const _0xebb66=_0x24315c;super(),this[_0xebb66(0x10f)]=_0xc58489,H(this,'_shapeModelManagerMap',new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0x250ecf,_0x17ed59){const _0x4124ba=_0x24315c;let _0xb681f7=this[_0x4124ba(0xfd)][_0x4124ba(0x123)](_0x250ecf);_0xb681f7||(_0xb681f7=new Map(),this[_0x4124ba(0xfd)][_0x4124ba(0x12a)](_0x250ecf,_0xb681f7));let _0x4358af=_0xb681f7[_0x4124ba(0x123)](_0x17ed59);return _0x4358af||(_0x4358af=new U(),_0xb681f7['set'](_0x17ed59,_0x4358af)),_0x4358af;}[_0x24315c(0x171)](_0xb9fcc7,_0x2b6dab,_0x4c6b2b,_0x3549ad,_0x3a4737,_0x338688){const _0x72adea=_0x24315c;this[_0x72adea(0x17d)](_0xb9fcc7,_0x2b6dab)[_0x72adea(0x14e)](_0x4c6b2b,_0x3549ad,_0x3a4737,_0x338688);}[_0x24315c(0x10d)](_0x51e0bd,_0x270521,_0x1e78ee){const _0x12a97f=_0x24315c;this[_0x12a97f(0x17d)](_0x51e0bd,_0x270521)['removeShape'](_0x1e78ee);}[_0x24315c(0x169)](_0x2a610d,_0x285378,_0x247e92){const _0x1e5eb8=_0x24315c;return this['_ensureShapeModelManager'](_0x2a610d,_0x285378)[_0x1e5eb8(0x126)](_0x247e92);}[_0x24315c(0x126)](_0x52a040,_0x397a5b,_0x41445a){const _0x2f6e1e=_0x24315c;return this[_0x2f6e1e(0x17d)](_0x52a040,_0x397a5b)['getShapeType'](_0x41445a);}['hasShape'](_0x5e9b94,_0x4259bb,_0x4e8ad4){const _0xe1f048=_0x24315c;return this[_0xe1f048(0x17d)](_0x5e9b94,_0x4259bb)[_0xe1f048(0xf1)](_0x4e8ad4);}[_0x24315c(0x14d)](_0x468f70,_0x5e6eb3,_0x2e9acb){const _0x3a148d=_0x24315c;return this['_ensureShapeModelManager'](_0x468f70,_0x5e6eb3)[_0x3a148d(0x126)](_0x2e9acb);}[_0x24315c(0x154)](_0x1735e0,_0x2e8046,_0x4f9217){const _0x4b3af6=_0x24315c;let _0x14707f=this['_ensureShapeModelManager'](_0x1735e0,_0x2e8046);if(!_0x14707f[_0x4b3af6(0x126)](_0x4f9217))return;let _0x3f4ba2=_0x14707f[_0x4b3af6(0x174)]['get'](_0x4f9217);if(_0x3f4ba2)return _0x3f4ba2[_0x4b3af6(0x15a)]();}[_0x24315c(0x147)](_0xb594c0,_0x91dabb){const _0x4d26b9=_0x24315c;return this['_ensureShapeModelManager'](_0xb594c0,_0x91dabb)[_0x4d26b9(0x147)]();}[_0x24315c(0xfe)](_0x5a05a6,_0x158693,_0x40f94d){const _0x309eaf=_0x24315c;return this[_0x309eaf(0x17d)](_0x5a05a6,_0x158693)[_0x309eaf(0x174)]['get'](_0x40f94d);}[_0x24315c(0x163)](_0x3764aa,_0x2db5a0,_0x4ca799){const _0x528c6c=_0x24315c;return this[_0x528c6c(0x17d)](_0x3764aa,_0x2db5a0)[_0x528c6c(0x163)](_0x4ca799);}['getLineShapeRelation'](_0x37a5ef,_0x34c7eb,_0xfcbcfa){const _0x550e72=_0x24315c;let _0x196b57=this[_0x550e72(0x17d)](_0x37a5ef,_0x34c7eb)[_0x550e72(0x174)][_0x550e72(0x123)](_0xfcbcfa);if(_0x196b57)return _0x196b57['getShapeRelation']();}[_0x24315c(0xee)](){}[_0x24315c(0x11b)](_0x33b596){const _0x3d816c=_0x24315c;let _0x5b6eb0={},_0x479351=this['_shapeModelManagerMap']['get'](_0x33b596);return _0x479351&&_0x479351[_0x3d816c(0x107)]((_0x439456,_0x4ced2b)=>{const _0x5549e2=_0x3d816c;let _0x41e6fc=_0x439456['toJSON']();_0x41e6fc[_0x5549e2(0x142)]>0x0&&(_0x5b6eb0[_0x4ced2b]=_0x41e6fc);}),JSON[_0x3d816c(0x110)](_0x5b6eb0);}['_deserializeShapeForUnit'](_0x10f250,_0x5926ac){Object['keys'](_0x5926ac)['forEach'](_0x4408c4=>{const _0x731fa0=_0x401b;this[_0x731fa0(0x17d)](_0x10f250,_0x4408c4)[_0x731fa0(0x11c)](_0x5926ac[_0x4408c4]);});}[_0x24315c(0x13f)](){const _0xbd12c8=_0x24315c;let _0x1d1843={};return this[_0xbd12c8(0xfd)][_0xbd12c8(0x107)]((_0x45802e,_0x1beda6)=>{_0x1d1843[_0x1beda6]={},_0x45802e['forEach']((_0x2f95f7,_0x3ab917)=>{const _0x522db1=_0x401b;_0x1d1843[_0x1beda6][_0x3ab917]=_0x2f95f7[_0x522db1(0x13f)]();});}),_0x1d1843;}[_0x24315c(0x11c)](_0x59b049){const _0x3d5cf1=_0x24315c;Object[_0x3d5cf1(0x130)](_0x59b049)[_0x3d5cf1(0x107)](_0x414404=>{const _0x1bec2a=_0x3d5cf1;let _0x1ced3a=_0x59b049[_0x414404];Object[_0x1bec2a(0x130)](_0x1ced3a)[_0x1bec2a(0x107)](_0x1388ce=>{const _0xa04aca=_0x1bec2a;this[_0xa04aca(0x17d)](_0x414404,_0x1388ce)['fromJSON'](_0x1ced3a[_0x1388ce]);});});}['_initSnapshot'](){const _0x52b2d7=_0x24315c;this[_0x52b2d7(0x10f)][_0x52b2d7(0x10b)]({'pluginName':_0x52b2d7(0x157),'businesses':[_0xf89464[_0x52b2d7(0xe4)]],'toJson':_0x2804af=>this['_serializeShapeForUnit'](_0x2804af),'parseJson':_0x5d121c=>JSON['parse'](_0x5d121c),'onLoad':(_0x5c8343,_0x16ea18)=>{const _0x3cd385=_0x52b2d7;this[_0x3cd385(0x16b)](_0x5c8343,_0x16ea18);},'onUnLoad':_0x5c4582=>{const _0x1cd860=_0x52b2d7;let _0x5800f4=this[_0x1cd860(0xfd)]['get'](_0x5c4582);_0x5800f4&&(_0x5800f4[_0x1cd860(0x107)](_0x146e1a=>{const _0x5e808a=_0x1cd860;_0x146e1a[_0x5e808a(0x152)]();}),this[_0x1cd860(0xfd)][_0x1cd860(0x175)](_0x5c4582));}});}['dispose'](){const _0x1b4674=_0x24315c;this['_shapeModelManagerMap'][_0x1b4674(0x107)](_0x3d60ec=>{const _0x226027=_0x1b4674;_0x3d60ec[_0x226027(0x107)](_0x5499a6=>{const _0x1b7315=_0x226027;_0x5499a6[_0x1b7315(0x152)]();});});}};K=G([W(0x0,_0x5d31ed)],K);const q={'id':_0x24315c(0x141),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x64355f,_0x312452)=>{const _0x304296=_0x24315c;let {unitId:_0x2cd38d,subUnitId:_0x3da279,shapeType:_0x120e8d,shapeId:_0x3b25a4,shapeName:_0x5d5e59,shapeData:_0x39fa47}=_0x312452;return _0x64355f[_0x304296(0x123)](K)[_0x304296(0x171)](_0x2cd38d,_0x3da279,_0x120e8d,_0x3b25a4,_0x39fa47,_0x5d5e59),!0x0;}},J={'id':_0x24315c(0xf0),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x12c03d,_0x27b2d8)=>{const _0x1f9479=_0x24315c;let {unitId:_0x3d57eb,subUnitId:_0x3baa2e,shapeId:_0x4a661d}=_0x27b2d8;return _0x12c03d[_0x1f9479(0x123)](K)['removeShape'](_0x3d57eb,_0x3baa2e,_0x4a661d),!0x0;}},Y={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x13b),'handler':(_0x1e4a2f,_0x117963)=>{const _0x92334a=_0x24315c;var _0x2c1b4b,_0x26a27d,_0x43a825;let _0x277143=_0x37d1c8(_0x1e4a2f[_0x92334a(0x123)](_0x14f0b3),_0x117963);if(!_0x277143)return!0x1;let _0x972c38=_0x1e4a2f[_0x92334a(0x123)](_0x3dac38),{unitId:_0x39311c,subUnitId:_0x5ef38f}=_0x277143,_0x5260b3=_0x972c38[_0x92334a(0x133)](_0x39311c,_0x5ef38f);if(!_0x5260b3)return!0x1;let _0x275562=_0x1e4a2f[_0x92334a(0x123)](_0x12d889),_0x26250a=_0x1e4a2f['get'](_0x32f094),_0x1303cd=_0x1e4a2f[_0x92334a(0x123)](_0x3d6fd9),_0x4e872f=_0x1e4a2f['get'](_0x189a5a),_0x52897e=_0x1e4a2f[_0x92334a(0x123)](K),{shapeType:_0xa1c1a7,shapeData:_0x21acfc}=_0x117963,_0x211e57=_0x117963[_0x92334a(0xed)]||_0x26e08e(),_0x565f51={'unitId':_0x39311c,'subUnitId':_0x5ef38f,'shapeId':_0x211e57,'shapeName':(_0x2c1b4b=_0x117963['shapeName'])==null?_0x3c2717(_0xa1c1a7,_0x52897e[_0x92334a(0x147)](_0x39311c,_0x5ef38f)):_0x2c1b4b,'shapeType':_0xa1c1a7,'shapeData':_0x21acfc},_0x507ce8=_0x117963[_0x92334a(0xf3)]||0xc8,_0x426032=_0x117963[_0x92334a(0x109)]||0xc8,_0x3783a4=0x0,_0x187198=0x0,_0xa421d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x376cfb={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x117963[_0x92334a(0x172)]){let {x:_0x6dfedd,y:_0x5aa0c2}=_0x117963['position'];_0x3783a4=_0x6dfedd,_0x187198=_0x5aa0c2,_0xa421d=_0x5260b3[_0x92334a(0x182)](_0x6dfedd,_0x5aa0c2),_0x376cfb=_0x5260b3[_0x92334a(0x182)](_0x6dfedd+_0x507ce8,_0x5aa0c2+_0x426032);}else{if(_0x117963[_0x92334a(0x128)]){let {startRow:_0x2adc5b,startColumn:_0x592ef0}=_0x117963[_0x92334a(0x128)];_0xa421d={'row':_0x2adc5b,'rowOffset':0xa,'column':_0x592ef0,'columnOffset':0xa};let _0x1c28c2=_0x5260b3['getCellWithCoordByIndex'](_0x2adc5b,_0x592ef0);_0x3783a4=_0x1c28c2['startX']+0xa,_0x187198=_0x1c28c2['startY']+0xa,_0x376cfb=_0x5260b3[_0x92334a(0x182)](_0x3783a4+_0x507ce8,_0x187198+_0x426032);}}let _0x2fbd6f={'from':_0xa421d,'to':_0x376cfb},_0x288e61={'unitId':_0x39311c,'subUnitId':_0x5ef38f,'drawingId':_0x211e57,'drawingType':_0xcd5ef0[_0x92334a(0xe7)],'sheetTransform':_0x2fbd6f,'transform':{'left':_0x3783a4,'top':_0x187198,'width':_0x507ce8,'height':_0x426032},'data':{'shapeType':_0xa1c1a7,'shapeData':_0x21acfc},'axisAlignSheetTransform':_0x2fbd6f,'allowTransform':!0x0};_0x45bbc3(_0xa1c1a7)&&(_0x288e61[_0x92334a(0x116)][_0x92334a(0x15c)]=!0x1,_0x288e61[_0x92334a(0x116)]['rotateEnabled']=!0x1,_0x288e61[_0x92334a(0x116)][_0x92334a(0x10c)]=!0x1,_0x288e61[_0x92334a(0x116)][_0x92334a(0xf4)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0x146)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0x10c)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0xf4)]=!0x1);let {undo:_0x1fd36b,redo:_0x554cbe,objects:_0x37c855}=_0x4e872f[_0x92334a(0x113)]([_0x288e61]),_0x18be28=_0x1303cd[_0x92334a(0x117)]({'id':_0x12582e['id'],'params':{'unitId':_0x39311c,'drawings':[_0x288e61]}}),_0x136cdf=[...(_0x26a27d=_0x18be28[_0x92334a(0x153)])==null?[]:_0x26a27d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'op':_0x554cbe,'objects':_0x37c855,'type':_0x366655[_0x92334a(0x16e)]}},{'id':_0x2ec674['id'],'params':[_0x39311c]},..._0x18be28['redos'],{'id':q['id'],'params':_0x565f51}],_0x21f043=[{'id':J['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'shapeId':_0x211e57}},...(_0x43a825=_0x18be28[_0x92334a(0x148)])==null?[]:_0x43a825,{'id':_0xb6a54f['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'op':_0x1fd36b,'objects':_0x37c855,'type':_0x366655['REMOVE']}},{'id':_0x2ec674['id'],'params':[_0x39311c]},..._0x18be28['undos']];return _0x2d1a4f(_0x136cdf,_0x275562)[_0x92334a(0x132)]?(_0x26250a['pushUndoRedo']({'unitID':_0x39311c,'undoMutations':_0x21f043,'redoMutations':_0x136cdf}),!0x0):!0x1;}},X={'id':_0x24315c(0x15f),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x3884cc,_0x1eb60d)=>{const _0x2c325f=_0x24315c;let {unitId:_0x23fc26,subUnitId:_0x13f2a2,shapeType:_0x41acd7,shapeId:_0x1fd74b,shapeData:_0x60231a}=_0x1eb60d,_0x1e1c0a=_0x3884cc[_0x2c325f(0x123)](K)['getShapeModel'](_0x23fc26,_0x13f2a2,_0x1fd74b);return _0x1e1c0a&&(_0x41acd7!==void 0x0&&_0x1e1c0a[_0x2c325f(0xee)](_0x41acd7),_0x60231a&&(_0x1e1c0a==null||_0x1e1c0a[_0x2c325f(0x13a)](_0x60231a,!0x0))),!0x0;}},ee={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x162),'handler':(_0x50517c,_0x4317a0)=>{const _0x49eab5=_0x24315c;var _0x57a3f9,_0x36ab24;let _0x32eb3c=_0x37d1c8(_0x50517c[_0x49eab5(0x123)](_0x14f0b3),_0x4317a0);if(!_0x32eb3c)return!0x1;let _0x462ead=_0x50517c[_0x49eab5(0x123)](_0x3dac38),{unitId:_0x14b07b,subUnitId:_0x4fe54a}=_0x32eb3c,_0x29aaf2=_0x462ead[_0x49eab5(0x133)](_0x14b07b,_0x4fe54a);if(!_0x29aaf2)return!0x1;let _0x5e365f=_0x50517c['get'](K),{shapeId:_0x25369d,shapeType:_0x17488f,shapeData:_0x711b51,position:_0x6361ed,width:_0x198717,height:_0x3fddfc}=_0x4317a0,_0x538a86=_0x5e365f[_0x49eab5(0xfe)](_0x14b07b,_0x4fe54a,_0x25369d);if(!_0x538a86)return!0x1;let _0x3897cc=_0x50517c[_0x49eab5(0x123)](_0x12d889),_0x15d4ce=_0x50517c[_0x49eab5(0x123)](_0x32f094),_0x3232d1=_0x50517c['get'](_0x3d6fd9),_0x28a5df=_0x50517c[_0x49eab5(0x123)](_0x189a5a),_0xf0c65f={'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'shapeId':_0x25369d,'shapeType':_0x17488f,'shapeData':_0x711b51},_0x4a0080=_0x538a86['getShapeType'](),_0x34b559=_0x538a86[_0x49eab5(0x15a)](),{x:_0x1a81b2,y:_0x1ba525}=_0x6361ed,_0x2f92c4={'from':_0x29aaf2[_0x49eab5(0x182)](_0x1a81b2,_0x1ba525),'to':_0x29aaf2[_0x49eab5(0x182)](_0x1a81b2+_0x198717,_0x1ba525+_0x3fddfc)},_0x210b52={'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'drawingId':_0x25369d,'drawingType':_0xcd5ef0['DRAWING_SHAPE'],'sheetTransform':_0x2f92c4,'transform':{'left':_0x1a81b2,'top':_0x1ba525,'width':_0x198717,'height':_0x3fddfc},'data':{'shapeType':_0x17488f,'shapeData':_0x711b51},'axisAlignSheetTransform':_0x2f92c4,'allowTransform':!0x0};_0x45bbc3(_0x17488f)&&(_0x210b52[_0x49eab5(0x116)][_0x49eab5(0x15c)]=!0x1,_0x210b52[_0x49eab5(0x116)][_0x49eab5(0x146)]=!0x1,_0x210b52['data'][_0x49eab5(0x10c)]=!0x1,_0x210b52[_0x49eab5(0x116)][_0x49eab5(0xf4)]=!0x1,_0x210b52[_0x49eab5(0x181)][_0x49eab5(0x146)]=!0x1,_0x210b52[_0x49eab5(0x181)]['resizeEnabled']=!0x1,_0x210b52[_0x49eab5(0x181)]['borderEnabled']=!0x1);let {undo:_0x5356e6,redo:_0x57012b,objects:_0x1cfd58}=_0x28a5df[_0x49eab5(0x143)]([_0x210b52]),_0x150554=_0x3232d1['onCommandExecute']({'id':_0x1ecf99['id'],'params':{'unitId':_0x14b07b,'drawings':[_0x210b52]}}),_0x4eeefa=[...(_0x57a3f9=_0x150554[_0x49eab5(0x153)])==null?[]:_0x57a3f9,{'id':_0xb6a54f['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'op':_0x57012b,'objects':_0x1cfd58,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x14b07b]},..._0x150554[_0x49eab5(0x16f)],{'id':X['id'],'params':_0xf0c65f}],_0x578ec6=[...(_0x36ab24=_0x150554[_0x49eab5(0x148)])==null?[]:_0x36ab24,{'id':_0xb6a54f['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'op':_0x5356e6,'objects':_0x1cfd58,'type':_0x366655[_0x49eab5(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x14b07b]},..._0x150554['undos'],{'id':X['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'shapeType':_0x4a0080,'shapeId':_0x25369d,'shapeData':_0x34b559}}];return _0x2d1a4f(_0x4eeefa,_0x3897cc)['result']?(_0x15d4ce[_0x49eab5(0x127)]({'unitID':_0x14b07b,'undoMutations':_0x578ec6,'redoMutations':_0x4eeefa}),!0x0):!0x1;}},Z={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x164),'handler':(_0x33fe83,_0x14face)=>{const _0x1e6d55=_0x24315c;var _0x14d41a,_0x404b2a;let _0x194836=_0x37d1c8(_0x33fe83[_0x1e6d55(0x123)](_0x14f0b3),_0x14face);if(!_0x194836)return!0x1;let _0x2781c6=_0x33fe83[_0x1e6d55(0x123)](_0x3dac38),{unitId:_0x41b84b,subUnitId:_0x5b443c}=_0x194836,_0x16962f=_0x2781c6[_0x1e6d55(0x16c)](_0x41b84b,_0x5b443c);if(!_0x16962f)return!0x1;let _0x4e0522=_0x33fe83[_0x1e6d55(0x123)](_0x189a5a),{shapeId:_0x58ce04,flipH:_0x547ce3,flipV:_0x141732}=_0x14face,_0x1e8e35=_0x4e0522[_0x1e6d55(0x17a)]({'unitId':_0x41b84b,'subUnitId':_0x5b443c,'drawingId':_0x58ce04});if(!_0x1e8e35)return!0x1;let _0x2a86f6=_0x33fe83[_0x1e6d55(0x123)](K)[_0x1e6d55(0xfe)](_0x41b84b,_0x5b443c,_0x58ce04);if(!_0x2a86f6)return!0x1;let _0x2a71bb=_0x33fe83[_0x1e6d55(0x123)](_0x12d889),_0xab5832=_0x33fe83[_0x1e6d55(0x123)](_0x32f094),_0x5c5ca9=_0x33fe83[_0x1e6d55(0x123)](_0x3d6fd9),_0x5c8e5c={..._0x1e8e35[_0x1e6d55(0x181)]};_0x547ce3!==void 0x0&&(_0x5c8e5c[_0x1e6d55(0x105)]=!_0x5c8e5c[_0x1e6d55(0x105)]),_0x141732!==void 0x0&&(_0x5c8e5c[_0x1e6d55(0x15b)]=!_0x5c8e5c[_0x1e6d55(0x15b)]);let _0x3ebb29=_0x4f2943(_0x5c8e5c,_0x16962f),_0x51af3b=_0x58930a(_0x5c8e5c,_0x16962f),_0x19441b=_0x2a86f6['getShapeType'](),_0x3be835=_0x2a86f6[_0x1e6d55(0x15a)](),_0x1b32f0={'unitId':_0x41b84b,'subUnitId':_0x5b443c,'drawingId':_0x58ce04,'drawingType':_0xcd5ef0[_0x1e6d55(0xe7)],'sheetTransform':_0x3ebb29,'transform':_0x5c8e5c,'data':{'shapeType':_0x19441b,'shapeData':_0x3be835},'axisAlignSheetTransform':_0x51af3b,'allowTransform':!0x0},{undo:_0x3384d1,redo:_0x3fd125,objects:_0x4b1586}=_0x4e0522[_0x1e6d55(0x143)]([_0x1b32f0]),_0x4b1505=_0x5c5ca9[_0x1e6d55(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x41b84b,'drawings':[_0x1b32f0]}}),_0x17b8e3=[...(_0x14d41a=_0x4b1505['preRedos'])==null?[]:_0x14d41a,{'id':_0xb6a54f['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'op':_0x3fd125,'objects':_0x4b1586,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x41b84b]},..._0x4b1505[_0x1e6d55(0x16f)]],_0x273c9b=[...(_0x404b2a=_0x4b1505[_0x1e6d55(0x148)])==null?[]:_0x404b2a,{'id':_0xb6a54f['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'op':_0x3384d1,'objects':_0x4b1586,'type':_0x366655[_0x1e6d55(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x41b84b]},..._0x4b1505[_0x1e6d55(0x136)]];if(_0x45bbc3(_0x19441b)){let _0x83fd0d=_0x2a86f6[_0x1e6d55(0x179)]();if(_0x83fd0d){let _0x17c560={..._0x83fd0d};_0x17c560[_0x1e6d55(0x161)]=void 0x0,_0x17c560['to']=void 0x0,_0x17b8e3[_0x1e6d55(0x12f)]({'id':X['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'shapeId':_0x58ce04,'shapeType':_0x19441b,'shapeData':{'relation':_0x17c560}}}),_0x273c9b['push']({'id':X['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'shapeId':_0x58ce04,'shapeType':_0x19441b,'shapeData':{'relation':_0x83fd0d}}});}}return _0x2d1a4f(_0x17b8e3,_0x2a71bb)[_0x1e6d55(0x132)]?(_0xab5832['pushUndoRedo']({'unitID':_0x41b84b,'undoMutations':_0x273c9b,'redoMutations':_0x17b8e3}),!0x0):!0x1;}},Q={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x14f),'handler':(_0x482f7d,_0x5c4434)=>{const _0x726d3e=_0x24315c;var _0xf9fe6d,_0x33cc50;let _0x41ac78=_0x37d1c8(_0x482f7d[_0x726d3e(0x123)](_0x14f0b3),_0x5c4434);if(!_0x41ac78)return!0x1;let _0x48e98f=_0x482f7d['get'](_0x3dac38),{unitId:_0x259cd3,subUnitId:_0x45b871}=_0x41ac78,_0x4d7ac7=_0x48e98f[_0x726d3e(0x16c)](_0x259cd3,_0x45b871);if(!_0x4d7ac7)return!0x1;let _0x3dad01=_0x482f7d[_0x726d3e(0x123)](_0x189a5a),{shapeId:_0x16bcaf,rotate:_0x2398b7}=_0x5c4434,_0x3e2668=_0x3dad01[_0x726d3e(0x17a)]({'unitId':_0x259cd3,'subUnitId':_0x45b871,'drawingId':_0x16bcaf});if(!_0x3e2668)return!0x1;let _0xf665c6=_0x482f7d[_0x726d3e(0x123)](K)[_0x726d3e(0xfe)](_0x259cd3,_0x45b871,_0x16bcaf);if(!_0xf665c6)return!0x1;let _0x368328=_0x482f7d[_0x726d3e(0x123)](_0x12d889),_0x13015d=_0x482f7d[_0x726d3e(0x123)](_0x32f094),_0xd5c8e=_0x482f7d[_0x726d3e(0x123)](_0x3d6fd9),_0x3bd1e4={..._0x3e2668[_0x726d3e(0x181)]};_0x2398b7!==void 0x0&&(_0x3bd1e4[_0x726d3e(0x104)]=(_0x3bd1e4[_0x726d3e(0x104)]||0x0)+_0x2398b7);let _0x494672=_0x4f2943(_0x3bd1e4,_0x4d7ac7),_0x2db895=_0x58930a(_0x3bd1e4,_0x4d7ac7),_0x1d1b2e=_0xf665c6[_0x726d3e(0x126)](),_0x4b7f7a=_0xf665c6['getShapeData'](),_0x29dd6e={'unitId':_0x259cd3,'subUnitId':_0x45b871,'drawingId':_0x16bcaf,'drawingType':_0xcd5ef0[_0x726d3e(0xe7)],'sheetTransform':_0x494672,'transform':_0x3bd1e4,'data':{'shapeType':_0x1d1b2e,'shapeData':_0x4b7f7a},'axisAlignSheetTransform':_0x2db895,'allowTransform':!0x0},{undo:_0x57485c,redo:_0x304b11,objects:_0x5ab21f}=_0x3dad01[_0x726d3e(0x143)]([_0x29dd6e]),_0x3919f9=_0xd5c8e[_0x726d3e(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x259cd3,'drawings':[_0x29dd6e]}}),_0x4f13a7=[...(_0xf9fe6d=_0x3919f9[_0x726d3e(0x153)])==null?[]:_0xf9fe6d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x259cd3,'subUnitId':_0x45b871,'op':_0x304b11,'objects':_0x5ab21f,'type':_0x366655[_0x726d3e(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x259cd3]},..._0x3919f9[_0x726d3e(0x16f)]],_0x501f25=[...(_0x33cc50=_0x3919f9[_0x726d3e(0x148)])==null?[]:_0x33cc50,{'id':_0xb6a54f['id'],'params':{'unitId':_0x259cd3,'subUnitId':_0x45b871,'op':_0x57485c,'objects':_0x5ab21f,'type':_0x366655[_0x726d3e(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x259cd3]},..._0x3919f9[_0x726d3e(0x136)]];return _0x2d1a4f(_0x4f13a7,_0x368328)[_0x726d3e(0x132)]?(_0x13015d[_0x726d3e(0x127)]({'unitID':_0x259cd3,'undoMutations':_0x501f25,'redoMutations':_0x4f13a7}),!0x0):!0x1;}},te={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0xf2),'handler':(_0x31e371,_0x248e34)=>{const _0x24d013=_0x24315c;var _0x198f00;let _0x351f63=_0x37d1c8(_0x31e371[_0x24d013(0x123)](_0x14f0b3),_0x248e34);if(!_0x351f63)return!0x1;let {unitId:_0x252320,subUnitId:_0x36bae7}=_0x351f63,{shapeId:_0x3c287c}=_0x248e34,_0x4a72e0=_0x31e371[_0x24d013(0x123)](K)['getShapeModel'](_0x252320,_0x36bae7,_0x3c287c);if(!_0x4a72e0)return!0x1;let _0x2d6232=_0x4a72e0[_0x24d013(0xef)](),_0xa33a25=(_0x198f00=_0x2d6232==null?void 0x0:_0x2d6232[_0x24d013(0x112)])==null?!0x0:_0x198f00,_0x53f305=!_0xa33a25,_0x2b697c=_0x31e371[_0x24d013(0x123)](_0x12d889),_0x3211ba=_0x31e371['get'](_0x32f094),_0x23536d={'unitId':_0x252320,'subUnitId':_0x36bae7,'shapeId':_0x3c287c,'shapeData':{'shapeText':{'isHorizontal':_0x53f305}}},_0x2c81a9={'unitId':_0x252320,'subUnitId':_0x36bae7,'shapeId':_0x3c287c,'shapeData':{'shapeText':{'isHorizontal':_0xa33a25}}},_0x58cf59=[{'id':X['id'],'params':_0x23536d}],_0x42631a=[{'id':X['id'],'params':_0x2c81a9}];return _0x2d1a4f(_0x58cf59,_0x2b697c)[_0x24d013(0x132)]?(_0x3211ba['pushUndoRedo']({'unitID':_0x252320,'undoMutations':_0x42631a,'redoMutations':_0x58cf59}),!0x0):!0x1;}},ne={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0xfc),'handler':(_0x15024b,_0x466f1c)=>{const _0x196d25=_0x24315c;var _0x2741b9,_0x3e8752,_0x359cee,_0x3a617c;let _0x5b2e33=_0x37d1c8(_0x15024b[_0x196d25(0x123)](_0x14f0b3),_0x466f1c);if(!_0x5b2e33)return!0x1;let _0x20376d=_0x15024b[_0x196d25(0x123)](_0x3dac38),{unitId:_0x408576,subUnitId:_0x3fcb77}=_0x5b2e33,_0x15b674=_0x20376d[_0x196d25(0x16c)](_0x408576,_0x3fcb77);if(!_0x15b674)return!0x1;let _0x230328=_0x15024b[_0x196d25(0x123)](_0x189a5a),{connectorShapeId:_0x1a4f88,width:_0x1e176a,height:_0x379e23,left:_0x3a7138,top:_0x46521e,flipX:_0x5bf3d3,flipY:_0x1adb59,rotation:_0x362bec,oldAdjustValues:_0x14d18b,newAdjustValues:_0x375af5,oldLineType:_0x3ce00c,newLineType:_0x2a61a5,oldRelation:_0x4938ad,newRelation:_0xe09d53}=_0x466f1c,_0x695d86=_0x230328['getDrawingByParam']({'unitId':_0x408576,'subUnitId':_0x3fcb77,'drawingId':_0x1a4f88});if(!_0x695d86)return!0x1;let _0xee11b3=_0x15024b[_0x196d25(0x123)](K)[_0x196d25(0xfe)](_0x408576,_0x3fcb77,_0x1a4f88);if(!_0xee11b3)return!0x1;let _0x13db62=_0x15024b[_0x196d25(0x123)](_0x12d889),_0xf8996c=_0x15024b['get'](_0x32f094),_0x1438a4=_0x15024b[_0x196d25(0x123)](_0x3d6fd9),_0x54cca6={..._0x695d86['transform'],'width':_0x1e176a,'height':_0x379e23,'left':_0x3a7138,'top':_0x46521e,'flipX':_0x5bf3d3,'flipY':_0x1adb59,'angle':(_0x2741b9=_0x362bec==null?(_0x3e8752=_0x695d86[_0x196d25(0x181)])==null?void 0x0:_0x3e8752[_0x196d25(0x104)]:_0x362bec)==null?0x0:_0x2741b9},_0x1d4280=_0x4f2943(_0x54cca6,_0x15b674),_0x40f961=_0x58930a(_0x54cca6,_0x15b674),_0x3e5b75=_0xee11b3[_0x196d25(0x126)](),_0x17225f=_0xee11b3[_0x196d25(0x15a)](),_0x4ef619={'unitId':_0x408576,'subUnitId':_0x3fcb77,'drawingId':_0x1a4f88,'drawingType':_0xcd5ef0['DRAWING_SHAPE'],'sheetTransform':_0x1d4280,'transform':_0x54cca6,'data':{'shapeType':_0x2a61a5||_0x3ce00c||_0x3e5b75,'shapeData':{..._0x17225f,'adjustValues':_0x375af5||_0x14d18b||(_0x17225f==null?void 0x0:_0x17225f['adjustValues']),'relation':_0xe09d53||_0x4938ad||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0xf7)])}},'axisAlignSheetTransform':_0x40f961,'allowTransform':!0x0},{undo:_0x283ad4,redo:_0x23fa35,objects:_0x23f523}=_0x230328[_0x196d25(0x143)]([_0x4ef619]),_0x3a68d6=_0x1438a4[_0x196d25(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x408576,'drawings':[_0x4ef619]}}),_0x21af47=[...(_0x359cee=_0x3a68d6[_0x196d25(0x153)])==null?[]:_0x359cee,{'id':_0xb6a54f['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'op':_0x23fa35,'objects':_0x23f523,'type':_0x366655[_0x196d25(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x408576]},..._0x3a68d6['redos'],{'id':X['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'shapeId':_0x1a4f88,'shapeType':_0x2a61a5,'shapeData':{'adjustValues':_0x375af5,'relation':_0xe09d53}}}],_0x3b6453=[...(_0x3a617c=_0x3a68d6[_0x196d25(0x148)])==null?[]:_0x3a617c,{'id':_0xb6a54f['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'op':_0x283ad4,'objects':_0x23f523,'type':_0x366655[_0x196d25(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x408576]},..._0x3a68d6[_0x196d25(0x136)],{'id':X['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'shapeId':_0x1a4f88,'shapeType':_0x3e5b75,'shapeData':{..._0x17225f,'adjustValues':_0x14d18b||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0x144)]),'relation':_0x4938ad||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0xf7)])}}}];return _0x2d1a4f(_0x21af47,_0x13db62)[_0x196d25(0x132)]?(_0xf8996c[_0x196d25(0x127)]({'unitID':_0x408576,'undoMutations':_0x3b6453,'redoMutations':_0x21af47}),!0x0):!0x1;}},re={'type':_0x395a1d[_0x24315c(0x129)],'id':'sheet.command.update-line-shape-resize','handler':(_0x49ab1b,_0x139581)=>{const _0x34eb40=_0x24315c;var _0x5dc58d,_0x33b024;let _0x56f6f5=_0x37d1c8(_0x49ab1b[_0x34eb40(0x123)](_0x14f0b3),_0x139581);if(!_0x56f6f5)return!0x1;let _0x25c6e5=_0x49ab1b['get'](_0x3dac38),{unitId:_0x1cfa76,subUnitId:_0x18f382}=_0x56f6f5,_0x5b2274=_0x25c6e5[_0x34eb40(0x16c)](_0x1cfa76,_0x18f382);if(!_0x5b2274)return!0x1;let _0x1daf6d=_0x49ab1b[_0x34eb40(0x123)](_0x189a5a),{shapeId:_0x48de14,width:_0x58c257,height:_0x2d07ca,left:_0x1f1b5f,top:_0x3da833,flipX:_0x1279e9,flipY:_0x9e9afa,angle:_0x5e935c,oldAdjustValues:_0x4dfae9,newAdjustValues:_0x399594,oldLineType:_0x247afd,newLineType:_0x9a85a6}=_0x139581,_0xbe3706=_0x1daf6d[_0x34eb40(0x17a)]({'unitId':_0x1cfa76,'subUnitId':_0x18f382,'drawingId':_0x48de14});if(!_0xbe3706)return!0x1;let _0x220436=_0x49ab1b[_0x34eb40(0x123)](K)[_0x34eb40(0xfe)](_0x1cfa76,_0x18f382,_0x48de14);if(!_0x220436)return!0x1;let _0x5a6345=_0x49ab1b[_0x34eb40(0x123)](_0x12d889),_0x23ea96=_0x49ab1b[_0x34eb40(0x123)](_0x32f094),_0x1c3f4d=_0x49ab1b[_0x34eb40(0x123)](_0x3d6fd9),_0x533d9c={..._0xbe3706[_0x34eb40(0x181)],'width':_0x58c257,'height':_0x2d07ca,'left':_0x1f1b5f,'top':_0x3da833,'flipX':_0x1279e9,'flipY':_0x9e9afa,'angle':_0x5e935c},_0x2ad213=_0x4f2943(_0x533d9c,_0x5b2274),_0x233e3b=_0x58930a(_0x533d9c,_0x5b2274),_0xd6b0f0=_0x220436['getShapeType'](),_0x5a6f71=_0x220436[_0x34eb40(0x15a)](),_0x187045={'unitId':_0x1cfa76,'subUnitId':_0x18f382,'drawingId':_0x48de14,'drawingType':_0xcd5ef0[_0x34eb40(0xe7)],'sheetTransform':_0x2ad213,'transform':_0x533d9c,'data':{'shapeType':_0x9a85a6||_0x247afd||_0xd6b0f0,'shapeData':{..._0x5a6f71,'adjustValues':_0x399594||_0x4dfae9||(_0x5a6f71==null?void 0x0:_0x5a6f71[_0x34eb40(0x144)])}},'axisAlignSheetTransform':_0x233e3b,'allowTransform':!0x0},{undo:_0x187125,redo:_0x445c4a,objects:_0x15381a}=_0x1daf6d['getBatchUpdateOp']([_0x187045]),_0x3ec909=_0x1c3f4d[_0x34eb40(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x1cfa76,'drawings':[_0x187045]}}),_0x3e8563=[...(_0x5dc58d=_0x3ec909['preRedos'])==null?[]:_0x5dc58d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'op':_0x445c4a,'objects':_0x15381a,'type':_0x366655[_0x34eb40(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x1cfa76]},..._0x3ec909[_0x34eb40(0x16f)],{'id':X['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'shapeId':_0x48de14,'shapeType':_0x9a85a6,'shapeData':{'adjustValues':_0x399594}}}],_0x1b38bd=[...(_0x33b024=_0x3ec909[_0x34eb40(0x148)])==null?[]:_0x33b024,{'id':_0xb6a54f['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'op':_0x187125,'objects':_0x15381a,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x1cfa76]},..._0x3ec909[_0x34eb40(0x136)],{'id':X['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'shapeId':_0x48de14,'shapeType':_0xd6b0f0,'shapeData':{..._0x5a6f71,'adjustValues':_0x4dfae9||(_0x5a6f71==null?void 0x0:_0x5a6f71[_0x34eb40(0x144)])}}}];return _0x2d1a4f(_0x3e8563,_0x5a6345)[_0x34eb40(0x132)]?(_0x23ea96[_0x34eb40(0x127)]({'unitID':_0x1cfa76,'undoMutations':_0x1b38bd,'redoMutations':_0x3e8563}),!0x0):!0x1;}},ie={'id':'sheet.mutation.update-shape-type','type':_0x395a1d['MUTATION'],'handler':(_0x1228bd,_0x47f0d8)=>{const _0x4585a7=_0x24315c;let {unitId:_0xa0d2c5,subUnitId:_0x3f6f91,shapeType:_0x27607e,shapeId:_0x2293f7,shapeData:_0x34a923}=_0x47f0d8,_0x302f7b=_0x1228bd[_0x4585a7(0x123)](K)[_0x4585a7(0xfe)](_0xa0d2c5,_0x3f6f91,_0x2293f7);return _0x302f7b&&(_0x302f7b[_0x4585a7(0xee)](_0x27607e),_0x34a923&&(_0x302f7b==null||_0x302f7b[_0x4585a7(0x13a)](_0x34a923))),!0x0;}};var ae=_0x24315c(0x134),oe=_0x24315c(0x118);const se={};let ce=class extends _0x205493{constructor(_0x305bd5,_0x231a0c,_0x4ff6db,_0x512675,_0x1a771a){const _0x311f30=_0x24315c;super(),this[_0x311f30(0x173)]=_0x305bd5,this[_0x311f30(0x120)]=_0x231a0c,this[_0x311f30(0x115)]=_0x4ff6db,this[_0x311f30(0xea)]=_0x512675,this[_0x311f30(0x139)]=_0x1a771a,this[_0x311f30(0x13c)](),this[_0x311f30(0x11f)]();}['_initCommands'](){const _0x244553=_0x24315c;[Y,ee,Z,Q,te,ne,re,q,J,ie,X]['forEach'](_0x382c1e=>this['disposeWithMe'](this[_0x244553(0x173)][_0x244553(0x124)](_0x382c1e)));}['_initCommandInterceptor'](){const _0x3c4eab=_0x24315c;this[_0x3c4eab(0x138)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x289a06=>{const _0x1f150f=_0x3c4eab;if(_0x289a06['id']===_0x30f0fe['id']){let {drawings:_0x4b4ab9}=_0x289a06[_0x1f150f(0x13e)],_0x1b5ce6=_0x4b4ab9[_0x1f150f(0x168)](_0x53b1cd=>_0x53b1cd[_0x1f150f(0x11d)]===_0xcd5ef0[_0x1f150f(0xe7)]);if(_0x1b5ce6[_0x1f150f(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x521f61=[],_0xa4773d=[];return _0x1b5ce6[_0x1f150f(0x107)](_0x12b6d8=>{const _0x167caa=_0x1f150f;let {unitId:_0x210e6d,subUnitId:_0x39e27c,drawingId:_0x5afa4a}=_0x12b6d8,_0x479332=this[_0x167caa(0xea)][_0x167caa(0xfe)](_0x210e6d,_0x39e27c,_0x5afa4a);if(!_0x479332)throw TypeError(_0x167caa(0x159)+_0x479332);_0x521f61[_0x167caa(0x12f)]({'id':J['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x5afa4a}}),_0xa4773d[_0x167caa(0x12f)]({'id':q['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x5afa4a,'shapeType':_0x479332[_0x167caa(0x126)](),'shapeData':_0x479332[_0x167caa(0x15a)]()}});let _0x5bdbca=this[_0x167caa(0xea)]['getBasicShapeRelation'](_0x210e6d,_0x39e27c,_0x5afa4a);if(_0x5bdbca)for(let _0x219883 of _0x5bdbca){let _0x403be3=_0x219883[_0x167caa(0x16d)],_0x38eb0f=_0x219883[_0x167caa(0x176)],_0x146368=_0x38eb0f?{'from':void 0x0}:{'to':void 0x0},_0x54bdd9=_0x38eb0f?{'from':{'shapeId':_0x219883[_0x167caa(0xed)],'cxnIndex':_0x219883['cxnIndex']}}:{'to':{'shapeId':_0x219883[_0x167caa(0xed)],'cxnIndex':_0x219883['cxnIndex']}};_0x521f61[_0x167caa(0x12f)]({'id':X['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x403be3,'shapeData':{'relation':_0x146368}}}),_0xa4773d['push']({'id':X['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x403be3,'shapeData':{'relation':_0x54bdd9}}});}}),{'preRedos':_0x521f61,'redos':[],'preUndos':[],'undos':_0xa4773d};}if(_0x289a06['id']===_0x1ecf99['id']){let {drawings:_0x11fdd4}=_0x289a06[_0x1f150f(0x13e)],_0x27561c=_0x11fdd4['filter'](_0x2e9816=>_0x2e9816[_0x1f150f(0x11d)]===_0xcd5ef0['DRAWING_SHAPE']);if(_0x27561c[_0x1f150f(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3bb089=[],_0x168888=[];for(let _0x5c7181 of _0x27561c){let {unitId:_0x41f9e7,subUnitId:_0xf9198,drawingId:_0x272056,transform:_0x323e1b}=_0x5c7181;if(!_0x41f9e7||!_0xf9198||!_0x272056||!_0x323e1b)continue;let _0x2da13b=this[_0x1f150f(0xea)][_0x1f150f(0xfe)](_0x41f9e7,_0xf9198,_0x272056);if(!_0x2da13b)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x2da13b);if(_0x45bbc3(_0x2da13b[_0x1f150f(0x126)]())){let _0x724255=this[_0x1f150f(0xea)][_0x1f150f(0xff)](_0x41f9e7,_0xf9198,_0x272056);_0x724255&&(_0x3bb089['push']({'id':X['id'],'params':{'unitId':_0x41f9e7,'subUnitId':_0xf9198,'shapeId':_0x272056,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x168888[_0x1f150f(0x12f)]({'id':X['id'],'params':{'unitId':_0x41f9e7,'subUnitId':_0xf9198,'shapeId':_0x272056,'shapeData':{'relation':_0x724255}}}));}else{let _0x19e317=this[_0x1f150f(0xea)][_0x1f150f(0x163)](_0x41f9e7,_0xf9198,_0x272056);if(_0x19e317&&_0x19e317[_0x1f150f(0x142)]>0x0)for(let _0x33f25b of _0x19e317){let _0x4cdb60=_0x33f25b['lineShapeId'],_0x4f6d74=_0x33f25b[_0x1f150f(0x176)],_0x21629e=this[_0x1f150f(0xea)]['getShapeModel'](_0x41f9e7,_0xf9198,_0x4cdb60);if(!_0x21629e)continue;let _0x1e0b4f=_0x21629e[_0x1f150f(0xf9)](),_0x1e093c=_0x21629e[_0x1f150f(0x14c)]();_0x1e0b4f&&_0x1e093c?this['_addLineRerouteUpdates'](_0x41f9e7,_0xf9198,_0x4cdb60,_0x21629e,_0x1e0b4f,_0x1e093c,_0x3bb089,_0x168888,_0x272056,_0x323e1b):this[_0x1f150f(0xf5)](_0x41f9e7,_0xf9198,_0x4cdb60,_0x21629e,_0x4f6d74?_0x1e0b4f:_0x1e093c,_0x4f6d74,_0x3bb089,_0x168888,_0x272056,_0x323e1b);}}}return{'preRedos':[],'redos':_0x3bb089,'preUndos':_0x168888,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x24315c(0x150)](_0x24595a,_0x27f69b,_0x148fc6,_0x3b2931,_0x194b2f){const _0x8b3a83=_0x24315c;if(!_0x27f69b||!_0x148fc6)return null;let {shapeId:_0x115394,cxnIndex:_0x1e3a71}=_0x24595a,_0x1605a9=this[_0x8b3a83(0xea)][_0x8b3a83(0xfe)](_0x27f69b,_0x148fc6,_0x115394);if(!_0x1605a9)return null;let _0x4ae344=this['_drawingManagerService'][_0x8b3a83(0x17a)]({'unitId':_0x27f69b,'subUnitId':_0x148fc6,'drawingId':_0x115394});if(!(_0x4ae344!=null&&_0x4ae344['transform']))return null;let {left:_0x198aaf=0x0,top:_0x5f1e28=0x0,width:_0x117c2c=0x0,height:_0x4ccba4=0x0,flipX:_0xedb0de=!0x1,flipY:_0xfc2670=!0x1,angle:_0x8b0c41}=_0x4ae344[_0x8b3a83(0x181)];if(_0x194b2f&&_0x3b2931===_0x115394){var _0x55b549,_0x393d02,_0x1be053,_0x1d64f7,_0x48965f,_0x94f709,_0x4d190f;_0x198aaf=(_0x55b549=_0x194b2f['left'])==null?_0x198aaf:_0x55b549,_0x5f1e28=(_0x393d02=_0x194b2f['top'])==null?_0x5f1e28:_0x393d02,_0x117c2c=(_0x1be053=_0x194b2f[_0x8b3a83(0xf3)])==null?_0x117c2c:_0x1be053,_0x4ccba4=(_0x1d64f7=_0x194b2f['height'])==null?_0x4ccba4:_0x1d64f7,_0xedb0de=(_0x48965f=_0x194b2f['flipX'])==null?_0xedb0de:_0x48965f,_0xfc2670=(_0x94f709=_0x194b2f['flipY'])==null?_0xfc2670:_0x94f709,_0x8b0c41=(_0x4d190f=_0x194b2f[_0x8b3a83(0x104)])==null?_0x8b0c41:_0x4d190f;}_0x1605a9[_0x8b3a83(0x13d)]({'width':_0x117c2c,'height':_0x4ccba4});let _0x49968b=_0x1605a9[_0x8b3a83(0x11a)]()['find'](_0x35e9ff=>_0x35e9ff[_0x8b3a83(0x11e)]===_0x1e3a71);if(!_0x49968b)return null;let _0x402f22=_0xedb0de?_0x117c2c-_0x49968b['x']:_0x49968b['x'],_0x1eb4d3=_0xfc2670?_0x4ccba4-_0x49968b['y']:_0x49968b['y'];if(_0x8b0c41!==0x0&&_0x8b0c41!=null){let _0x113d3d=_0x8b0c41*Math['PI']/0xb4,_0x33c171=Math['cos'](_0x113d3d),_0x1ec104=Math[_0x8b3a83(0xec)](_0x113d3d),_0x1c48e8=_0x117c2c/0x2,_0x2eaa52=_0x4ccba4/0x2,_0x28fee3=_0x402f22-_0x1c48e8,_0x17612b=_0x1eb4d3-_0x2eaa52;_0x402f22=_0x1c48e8+_0x28fee3*_0x33c171-_0x17612b*_0x1ec104,_0x1eb4d3=_0x2eaa52+_0x28fee3*_0x1ec104+_0x17612b*_0x33c171;}_0x402f22+=_0x198aaf,_0x1eb4d3+=_0x5f1e28;let _0x14e81b=_0x49968b[_0x8b3a83(0x14a)]/0xea60;_0xedb0de&&(_0x14e81b=0xb4-_0x14e81b),_0xfc2670&&(_0x14e81b=-_0x14e81b),_0x14e81b+=_0x8b0c41||0x0,_0x14e81b=(_0x14e81b%0x168+0x168)%0x168;let _0x158b62=_0xee328b({'left':_0x198aaf,'top':_0x5f1e28,'width':_0x117c2c,'height':_0x4ccba4},_0x8b0c41||0x0);return{'point':{'x':_0x402f22,'y':_0x1eb4d3},'angle':_0x14e81b,'bounds':_0x158b62};}[_0x24315c(0xe5)](_0x467ae0,_0x2c34de,_0x1f17cc,_0x2d637a,_0x252478,_0x5f1e5b,_0x288159,_0xf02e1f,_0x2f0a13,_0x1a6568){const _0x1f2302=_0x24315c;let _0x34df8b=this[_0x1f2302(0x115)][_0x1f2302(0x16c)](_0x467ae0,_0x2c34de);if(!_0x34df8b)return;let _0x534d50=_0x2d637a[_0x1f2302(0x179)](),_0xb37424=_0x2d637a[_0x1f2302(0x122)](),_0x45c0a1={},_0xc1ed1e={};_0xb37424['forEach'](_0x42eb2d=>{const _0x41c1d4=_0x1f2302;let _0x5f397c=_0x2d637a[_0x41c1d4(0x155)](_0x42eb2d);_0xc1ed1e[_0x42eb2d]=_0x5f397c==null?0x0:_0x5f397c;});let _0x1ef877=this['_getConnectPointInfo'](_0x252478,_0x467ae0,_0x2c34de,_0x2f0a13,_0x1a6568),_0x3a047e=this[_0x1f2302(0x150)](_0x5f1e5b,_0x467ae0,_0x2c34de,_0x2f0a13,_0x1a6568);if(_0x1ef877&&_0x3a047e){let _0x54a9c2=_0x2d637a[_0x1f2302(0x126)](),_0xc8a074=_0x696e80(_0x1ef877,_0x3a047e,_0x54a9c2),_0x377062=_0x54a9c2;if(_0xc8a074){let _0x2ede50=_0x11cba5(_0xc8a074,_0x2d637a[_0x1f2302(0x126)]()),_0x2014a8=this[_0x1f2302(0x139)][_0x1f2302(0x177)](_0x467ae0,_0x2c34de);if(_0x2014a8&&_0x2014a8[_0x1f17cc]){let _0x3f423c=_0x2014a8[_0x1f17cc];_0x377062=_0x2ede50[_0x1f2302(0x10a)];for(let [_0x51f4c9,_0x17cac8]of Object[_0x1f2302(0x131)](_0x2ede50[_0x1f2302(0x144)]))_0x45c0a1[_0x51f4c9]=_0x17cac8;let _0xe020f6={..._0x3f423c[_0x1f2302(0x181)],'width':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0xf3)],'height':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x109)],'left':_0x2ede50[_0x1f2302(0x16a)]['left'],'top':_0x2ede50['worldRect'][_0x1f2302(0xfb)],'flipX':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x105)],'flipY':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x15b)],'angle':_0x2ede50[_0x1f2302(0x165)]},_0x3e7b18=_0x4f2943(_0xe020f6,_0x34df8b),_0x46f757=_0x58930a(_0xe020f6,_0x34df8b),_0x58f680={'unitId':_0x467ae0,'subUnitId':_0x2c34de,'drawingType':_0xcd5ef0[_0x1f2302(0xe7)],'drawingId':_0x1f17cc,'transform':_0xe020f6,'sheetTransform':_0x3e7b18,'axisAlignSheetTransform':_0x46f757},{unitId:_0x2db575,subUnitId:_0x4358cc,undo:_0xf8710e,redo:_0x4bf341,objects:_0x4c26ab}=this[_0x1f2302(0x139)][_0x1f2302(0x143)]([_0x58f680]);_0x288159[_0x1f2302(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x2db575,'subUnitId':_0x4358cc,'op':_0x4bf341,'objects':_0x4c26ab,'type':_0x366655[_0x1f2302(0x100)]}}),_0xf02e1f[_0x1f2302(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x2db575,'subUnitId':_0x4358cc,'op':_0xf8710e,'objects':_0x4c26ab,'type':_0x366655[_0x1f2302(0x100)]}});}_0x2d637a['removeLinePoints']();}_0x288159['push']({'id':X['id'],'params':{'unitId':_0x467ae0,'subUnitId':_0x2c34de,'shapeId':_0x1f17cc,'shapeType':_0x377062,'shapeData':{'adjustValues':_0x45c0a1,'relation':_0x534d50}}}),_0xf02e1f[_0x1f2302(0x12f)]({'id':X['id'],'params':{'unitId':_0x467ae0,'subUnitId':_0x2c34de,'shapeId':_0x1f17cc,'shapeType':_0x54a9c2,'shapeData':{'adjustValues':_0xc1ed1e,'relation':_0x534d50}}});}}[_0x24315c(0xf5)](_0x4125c6,_0x4108e3,_0x3e95ac,_0x38d541,_0x457d39,_0x14cd57,_0x2203d8,_0x46fe46,_0x35a6df,_0x2ea272){const _0x362ef3=_0x24315c;var _0x120464;if(!_0x457d39)return;let _0x20fb58=this[_0x362ef3(0x115)]['getSkeleton'](_0x4125c6,_0x4108e3);if(!_0x20fb58)return;let _0x20d4a0=(_0x120464=this['_drawingManagerService'][_0x362ef3(0x17a)]({'unitId':_0x4125c6,'subUnitId':_0x4108e3,'drawingId':_0x35a6df}))==null?void 0x0:_0x120464['transform'];if(!_0x20d4a0)return;let _0xdc6c27=_0x20d4a0[_0x362ef3(0x151)]!==_0x2ea272[_0x362ef3(0x151)]||_0x20d4a0[_0x362ef3(0xfb)]!==_0x2ea272[_0x362ef3(0xfb)],_0x182554=_0x20d4a0[_0x362ef3(0xf3)]!==_0x2ea272[_0x362ef3(0xf3)]||_0x20d4a0['height']!==_0x2ea272[_0x362ef3(0x109)],_0x338097=_0x20d4a0['flipX']!==_0x2ea272[_0x362ef3(0x105)]||_0x20d4a0[_0x362ef3(0x15b)]!==_0x2ea272[_0x362ef3(0x15b)],_0x203758=_0x20d4a0['angle']!==_0x2ea272[_0x362ef3(0x104)];if(_0xdc6c27&&!_0x182554&&!_0x338097&&!_0x203758){var _0x1fc980,_0x5055a9,_0x43cbf7,_0x53ed90;let _0x4bae6b=((_0x1fc980=_0x2ea272['left'])==null?0x0:_0x1fc980)-((_0x5055a9=_0x20d4a0[_0x362ef3(0x151)])==null?0x0:_0x5055a9),_0x1517ec=((_0x43cbf7=_0x2ea272[_0x362ef3(0xfb)])==null?0x0:_0x43cbf7)-((_0x53ed90=_0x20d4a0[_0x362ef3(0xfb)])==null?0x0:_0x53ed90),_0x7d811f=this[_0x362ef3(0x139)]['getDrawingData'](_0x4125c6,_0x4108e3);if(_0x7d811f&&_0x7d811f[_0x3e95ac]){var _0x4f055f,_0x5626ea,_0x5cdbaa,_0x4c62d1;let _0x56d57f=_0x7d811f[_0x3e95ac],_0x32262e={..._0x56d57f[_0x362ef3(0x181)],'left':((_0x4f055f=(_0x5626ea=_0x56d57f[_0x362ef3(0x181)])==null?void 0x0:_0x5626ea[_0x362ef3(0x151)])==null?0x0:_0x4f055f)+_0x4bae6b,'top':((_0x5cdbaa=(_0x4c62d1=_0x56d57f[_0x362ef3(0x181)])==null?void 0x0:_0x4c62d1['top'])==null?0x0:_0x5cdbaa)+_0x1517ec},_0x15130f=_0x4f2943(_0x32262e,_0x20fb58),_0x497605=_0x58930a(_0x32262e,_0x20fb58),_0x463f71={'unitId':_0x4125c6,'subUnitId':_0x4108e3,'drawingType':_0xcd5ef0[_0x362ef3(0xe7)],'drawingId':_0x3e95ac,'transform':_0x32262e,'sheetTransform':_0x15130f,'axisAlignSheetTransform':_0x497605},{unitId:_0x3e67ae,subUnitId:_0x19ff27,undo:_0x152113,redo:_0x12899e,objects:_0x4dc288}=this['_drawingManagerService'][_0x362ef3(0x143)]([_0x463f71]);_0x2203d8['push']({'id':_0xb6a54f['id'],'params':{'unitId':_0x3e67ae,'subUnitId':_0x19ff27,'op':_0x12899e,'objects':_0x4dc288,'type':_0x366655[_0x362ef3(0x100)]}}),_0x46fe46[_0x362ef3(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x3e67ae,'subUnitId':_0x19ff27,'op':_0x152113,'objects':_0x4dc288,'type':_0x366655[_0x362ef3(0x100)]}});}}else{let _0x185f7e=_0x38d541[_0x362ef3(0xf9)](),_0x1acd93=_0x38d541[_0x362ef3(0x14c)]();this[_0x362ef3(0xe5)](_0x4125c6,_0x4108e3,_0x3e95ac,_0x38d541,_0x185f7e,_0x1acd93,_0x2203d8,_0x46fe46,_0x35a6df,_0x2ea272);}}};ce=G([W(0x0,_0x12d889),W(0x1,_0x396a8a(_0x3d6fd9)),W(0x2,_0x396a8a(_0x3dac38)),W(0x3,_0x396a8a(K)),W(0x4,_0x396a8a(_0x3f7bd4))],ce);let $=class extends _0x307e7b{constructor(_0xa3f5a=se,_0x4ba299,_0x3afd75,_0x4f7f35){const _0x4dc86b=_0x24315c;super(),this[_0x4dc86b(0x170)]=_0xa3f5a,this[_0x4dc86b(0xf8)]=_0x4ba299,this[_0x4dc86b(0x173)]=_0x3afd75,this[_0x4dc86b(0x119)]=_0x4f7f35;let {..._0x22d231}=_0x5db2e6({},se,this[_0x4dc86b(0x170)]);this[_0x4dc86b(0x119)][_0x4dc86b(0x149)](_0x4dc86b(0x121),_0x22d231);}[_0x24315c(0xfa)](){const _0x50551b=_0x24315c;let _0x4c2c22=this[_0x50551b(0xf8)];[[U],[K],[ce]][_0x50551b(0x107)](_0x4394e1=>_0x4c2c22[_0x50551b(0x145)](_0x4394e1)),_0x46da78(_0x4c2c22,[[K],[ce]]);}};H($,_0x24315c(0x156),_0xf89464['UNIVER_SHEET']),H($,_0x24315c(0xeb),_0x24315c(0x157)),H($,_0x24315c(0xf6),ae),H($,_0x24315c(0x160),oe),$=G([_0x173671(_0x1837ff),W(0x1,_0x396a8a(_0x1e351a)),W(0x2,_0x12d889),W(0x3,_0x5ad0ed)],$);function _0xb7bc(){const _0x1699fe=['sin','shapeId','setShapeType','getShapeTextData','sheet.mutation.remove-shape','hasShape','sheet.command.set-shape-text-vertical-toggle','width','borderEnabled','_addLineFollowShapeUpdates','packageName','relation','_injector','getStartConnectInfo','onStarting','top','sheet.command.update-connector-relation','_shapeModelManagerMap','getShapeModel','getLineShapeRelation','UPDATE','decorate','175178jpZVZp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','angle','flipX','clear','forEach','shapeData','height','lineType','registerPluginResource','resizeEnabled','removeShape','326628DBCCVx','_resourcesManagerService','stringify','string','isHorizontal','getBatchAddOp','symbol','_sheetSkeletonService','data','onCommandExecute','1.0.0-alpha.3','_configService','getConnectionSiteList','_serializeShapeForUnit','fromJSON','drawingType','index','_initCommandInterceptor','_sheetInterceptorService','sheets-shape.config','getAdjustNames','get','registerCommand','object','getShapeType','pushUndoRedo','range','COMMAND','set','9PuoqpV','3121448kaqGfy','MUTATION','prototype','push','keys','entries','result','ensureSkeleton','@univerjs-pro/sheets-shape','default','undos','3394636HKIaFk','disposeWithMe','_drawingManagerService','setShapeData','sheet.command.insert-shape','_initCommands','updateContext','params','toJSON','isLineShape','sheet.mutation.insert-shape','length','getBatchUpdateOp','adjustValues','add','rotateEnabled','getShapeDisplayNames','preUndos','setConfig','ang','_linesIds','getEndConnectInfo','getShapeTypeById','addShape','sheet.command.set-shape-rotate','_getConnectPointInfo','left','dispose','preRedos','getShapeDataById','getAdjustValueByName','type','SHEET_SHAPE_PLUGIN','call','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getShapeData','flipY','fill','values','384500XizpTB','sheet.mutation.update-shape-data','version','from','sheet.command.set-shape-drawing-data','getBasicShapeRelation','sheet.command.toggle-shape-flip','rotation','5HhUqEA','723460OLhgAY','filter','getBasicShapeType','worldRect','_deserializeShapeForUnit','getSkeleton','lineShapeId','INSERT','redos','_config','insertShape','position','_commandService','_shapes','delete','isFrom','getDrawingData','6bPnyrz','getShapeRelation','getDrawingByParam','getOwnPropertyDescriptor','_groupIds','_ensureShapeModelManager','toPrimitive','constructor','14603810YnCHYo','transform','getCellIndexAndOffsetByPosition','UNIVER_SHEET','_addLineRerouteUpdates','function','DRAWING_SHAPE','getId','defineProperty','_sheetsShapeService','pluginName'];_0xb7bc=function(){return _0x1699fe;};return _0xb7bc();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeMutation};
1
+ const _0x5c01d6=_0xfb69;(function(_0x58e130,_0x127b57){const _0x1da190=_0xfb69,_0x2b0e32=_0x58e130();while(!![]){try{const _0x378088=parseInt(_0x1da190(0x160))/0x1+-parseInt(_0x1da190(0x131))/0x2*(parseInt(_0x1da190(0x1d9))/0x3)+-parseInt(_0x1da190(0x1db))/0x4+-parseInt(_0x1da190(0x130))/0x5*(-parseInt(_0x1da190(0x1ce))/0x6)+-parseInt(_0x1da190(0x127))/0x7+parseInt(_0x1da190(0x1dc))/0x8+parseInt(_0x1da190(0x15f))/0x9*(parseInt(_0x1da190(0x1bb))/0xa);if(_0x378088===_0x127b57)break;else _0x2b0e32['push'](_0x2b0e32['shift']());}catch(_0x49c7f5){_0x2b0e32['push'](_0x2b0e32['shift']());}}}(_0x301a,0xbcd50));import{IShapeHostAdapterRegistry as _0x10d679,ShapeModel as _0x57a534,UniverShapePlugin as _0x53390e,computeConnectorRouteLayout as _0x2fc0b6,createUniqueShapeName as _0x4b528f,getBasicShapeRotateBound as _0x272c36,isConnectorShape as _0x517c66,routeConnectorLineShape as _0x4cca6c}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x4abaa6,CommandType as _0x22ee2b,DependentOn as _0x59fb5e,Disposable as _0x1dc17c,DrawingTypeEnum as _0x3fcfb7,ICommandService as _0x5c6888,IConfigService as _0x344a70,IResourceManagerService as _0x11cd5e,IUndoRedoService as _0x1107ce,IUniverInstanceService as _0x1d3366,Inject as _0x36bfee,Injector as _0x2fd07f,Plugin as _0x9b668a,Tools as _0xfd6b8f,UniverInstanceType as _0xf7260a,generateRandomId as _0x518436,merge as _0x12549a,sequenceExecute as _0x263a3c,touchDependencies as _0x1f2a99}from'@univerjs/core';import{SheetInterceptorService as _0x133228,SheetSkeletonService as _0x3c7b6a,getSheetCommandTarget as _0x2abc39}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x312f26,DrawingApplyType as _0x484cad,ISheetDrawingService as _0xf49d13,InsertSheetDrawingCommand as _0x2949ae,RemoveSheetDrawingCommand as _0x4cbcd6,SetDrawingApplyMutation as _0x187b38,SetDrawingArrangeCommand as _0xc2414d,SetSheetDrawingCommand as _0xbe173f,transformToAxisAlignPosition as _0x5d5502,transformToDrawingPosition as _0x526ffb}from'@univerjs/sheets-drawing';function _0xfb69(_0x27ba8f,_0x536348){_0x27ba8f=_0x27ba8f-0x125;const _0x301a1d=_0x301a();let _0xfb6914=_0x301a1d[_0x27ba8f];return _0xfb6914;}import{UniverLicensePlugin as _0xaf9fa9}from'@univerjs-pro/license';import{IDrawingManagerService as _0x42c33a}from'@univerjs/drawing';const B=0xc8,V=0xc8;function H(_0x4ed0ba){'@babel/helpers - typeof';const _0x78c3f8=_0xfb69;return H=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x78c3f8(0x147)?function(_0x381510){return typeof _0x381510;}:function(_0x2419d9){const _0x5da360=_0x78c3f8;return _0x2419d9&&typeof Symbol=='function'&&_0x2419d9[_0x5da360(0x152)]===Symbol&&_0x2419d9!==Symbol[_0x5da360(0x150)]?_0x5da360(0x147):typeof _0x2419d9;},H(_0x4ed0ba);}function U(_0x520ed9,_0x12d020){const _0x124886=_0xfb69;if(H(_0x520ed9)!=_0x124886(0x1d1)||!_0x520ed9)return _0x520ed9;var _0x40d5b9=_0x520ed9[Symbol[_0x124886(0x1ca)]];if(_0x40d5b9!==void 0x0){var _0x5c4c51=_0x40d5b9[_0x124886(0x1b6)](_0x520ed9,_0x12d020||'default');if(H(_0x5c4c51)!='object')return _0x5c4c51;throw TypeError(_0x124886(0x181));}return(_0x12d020===_0x124886(0x12c)?String:Number)(_0x520ed9);}function W(_0x4fd953){const _0x2a2219=_0xfb69;var _0x1200ca=U(_0x4fd953,_0x2a2219(0x12c));return H(_0x1200ca)==_0x2a2219(0x147)?_0x1200ca:_0x1200ca+'';}function G(_0x1b860b,_0x2a4704,_0x5e4214){const _0x4e7c8b=_0xfb69;return(_0x2a4704=W(_0x2a4704))in _0x1b860b?Object[_0x4e7c8b(0x12e)](_0x1b860b,_0x2a4704,{'value':_0x5e4214,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b860b[_0x2a4704]=_0x5e4214,_0x1b860b;}var K=class extends _0x1dc17c{constructor(){const _0x58f613=_0xfb69;super(),G(this,_0x58f613(0x184),new Map()),G(this,_0x58f613(0x17b),new Set()),G(this,_0x58f613(0x1b0),new Set());}[_0x5c01d6(0x1a4)](_0x345f40,_0x548dbd,_0x4a6c49,_0x36bef4){const _0x13b31b=_0x5c01d6;let _0x596c52=new _0x57a534(_0x345f40,_0x548dbd,_0x4a6c49,_0x36bef4);return this[_0x13b31b(0x184)][_0x13b31b(0x1a6)](_0x548dbd,_0x596c52),_0x517c66(_0x345f40)&&this[_0x13b31b(0x17b)][_0x13b31b(0x1ab)](_0x548dbd),_0x596c52;}[_0x5c01d6(0x1a3)](_0x58bda9){const _0x9c816e=_0x5c01d6;let _0x3984a2=[];for(let _0x24c36e of this[_0x9c816e(0x17b)]){let _0x1d4776=this['_shapes']['get'](_0x24c36e);if(_0x1d4776){let _0x41d70f=_0x1d4776[_0x9c816e(0x183)]();if(_0x41d70f){var _0x27ef12,_0x4b34c8;((_0x27ef12=_0x41d70f['from'])==null?void 0x0:_0x27ef12['shapeId'])===_0x58bda9&&_0x3984a2['push']({..._0x41d70f[_0x9c816e(0x1d2)],'lineShapeId':_0x24c36e,'isFrom':!0x0}),((_0x4b34c8=_0x41d70f['to'])==null?void 0x0:_0x4b34c8[_0x9c816e(0x142)])===_0x58bda9&&_0x3984a2[_0x9c816e(0x189)]({..._0x41d70f['to'],'lineShapeId':_0x24c36e,'isFrom':!0x1});}}}return _0x3984a2;}['getLineShapeRelation'](_0x301c9a){const _0x5296a2=_0x5c01d6;let _0x39d7d4=this[_0x5296a2(0x184)][_0x5296a2(0x1a0)](_0x301c9a);if(_0x39d7d4)return _0x39d7d4[_0x5296a2(0x183)]();}['getShapeType'](_0x46aa52){const _0x3c7a9d=_0x5c01d6;let _0x3f2a80=this[_0x3c7a9d(0x184)]['get'](_0x46aa52);if(_0x3f2a80)return _0x3f2a80[_0x3c7a9d(0x1be)]();}[_0x5c01d6(0x158)](_0x201fea){const _0x4e2d44=_0x5c01d6;return this[_0x4e2d44(0x184)][_0x4e2d44(0x155)](_0x201fea);}['getShapeDisplayNames'](){const _0x91eec5=_0x5c01d6;return Array[_0x91eec5(0x1d2)](this[_0x91eec5(0x184)][_0x91eec5(0x1d7)]())['map'](_0x4764ee=>_0x4764ee[_0x91eec5(0x12b)]()||_0x4764ee['getId']());}[_0x5c01d6(0x143)](_0x5e0f09){const _0x1bb501=_0x5c01d6;let _0x28bb76=this[_0x1bb501(0x184)][_0x1bb501(0x1a0)](_0x5e0f09);_0x28bb76&&(_0x517c66(_0x28bb76[_0x1bb501(0x1be)]())&&this['_linesIds'][_0x1bb501(0x195)](_0x5e0f09),this['_shapes'][_0x1bb501(0x195)](_0x5e0f09));}['toJSON'](){const _0x1c93c5=_0x5c01d6;let _0x2415b6=[];return this[_0x1c93c5(0x184)][_0x1c93c5(0x1da)](_0x49bd99=>{const _0xef5577=_0x1c93c5;_0x2415b6[_0xef5577(0x189)](_0x49bd99[_0xef5577(0x196)]());}),_0x2415b6;}[_0x5c01d6(0x1c4)](_0x1b4b65){const _0x41e318=_0x5c01d6;for(let _0x5d634e of _0x1b4b65){let {id:_0x2cf153,shapeType:_0x2d6a7d,name:_0x21b7e7}=_0x5d634e,_0x4fef9a=this[_0x41e318(0x1a4)](_0x2d6a7d,_0x2cf153,_0x5d634e['shapeData'],_0x21b7e7);_0x4fef9a&&_0x4fef9a['isLineShape']()&&this['_linesIds'][_0x41e318(0x1ab)](_0x2cf153);}}[_0x5c01d6(0x1a8)](){const _0x5f045b=_0x5c01d6;this['_disposed']||(this[_0x5f045b(0x184)]['forEach'](_0x1b73c0=>{const _0x4f8349=_0x5f045b;_0x1b73c0[_0x4f8349(0x1a8)]();}),this[_0x5f045b(0x184)][_0x5f045b(0x1cb)](),this['_linesIds'][_0x5f045b(0x1cb)](),this['_groupIds'][_0x5f045b(0x1cb)](),super[_0x5f045b(0x1a8)]());}};function q(_0x21409b,_0x48f56a){return function(_0x54bb1b,_0x44a5fa){_0x48f56a(_0x54bb1b,_0x44a5fa,_0x21409b);};}function J(_0x4241b,_0x569e6f,_0x4dc27f,_0x2c44a5){const _0x22e4d1=_0x5c01d6;var _0x5da1f7=arguments['length'],_0x3d2450=_0x5da1f7<0x3?_0x569e6f:_0x2c44a5===null?_0x2c44a5=Object[_0x22e4d1(0x1bd)](_0x569e6f,_0x4dc27f):_0x2c44a5,_0xd325ce;if(typeof Reflect==_0x22e4d1(0x1d1)&&typeof Reflect[_0x22e4d1(0x16e)]=='function')_0x3d2450=Reflect[_0x22e4d1(0x16e)](_0x4241b,_0x569e6f,_0x4dc27f,_0x2c44a5);else{for(var _0x55632d=_0x4241b['length']-0x1;_0x55632d>=0x0;_0x55632d--)(_0xd325ce=_0x4241b[_0x55632d])&&(_0x3d2450=(_0x5da1f7<0x3?_0xd325ce(_0x3d2450):_0x5da1f7>0x3?_0xd325ce(_0x569e6f,_0x4dc27f,_0x3d2450):_0xd325ce(_0x569e6f,_0x4dc27f))||_0x3d2450);}return _0x5da1f7>0x3&&_0x3d2450&&Object[_0x22e4d1(0x12e)](_0x569e6f,_0x4dc27f,_0x3d2450),_0x3d2450;}let Y=class extends _0x1dc17c{constructor(_0x56203b){const _0x2d87c7=_0x5c01d6;super(),this[_0x2d87c7(0x145)]=_0x56203b,G(this,_0x2d87c7(0x17a),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0xd8ec4f,_0x1c7cf5){const _0x471e69=_0x5c01d6;let _0xd15577=this[_0x471e69(0x17a)]['get'](_0xd8ec4f);_0xd15577||(_0xd15577=new Map(),this[_0x471e69(0x17a)]['set'](_0xd8ec4f,_0xd15577));let _0x20ee1a=_0xd15577[_0x471e69(0x1a0)](_0x1c7cf5);return _0x20ee1a||(_0x20ee1a=new K(),_0xd15577[_0x471e69(0x1a6)](_0x1c7cf5,_0x20ee1a)),_0x20ee1a;}['insertShape'](_0x21d3fb,_0x395dbd,_0x3f9ea,_0x97ad1e,_0x509c60,_0x4ad008){const _0x591938=_0x5c01d6;this[_0x591938(0x17e)](_0x21d3fb,_0x395dbd)['addShape'](_0x3f9ea,_0x97ad1e,_0x509c60,_0x4ad008);}['removeShape'](_0x448411,_0x50f52b,_0x4c2402){const _0x3aecec=_0x5c01d6;this[_0x3aecec(0x17e)](_0x448411,_0x50f52b)['removeShape'](_0x4c2402);}['getBasicShapeType'](_0x3a2a34,_0x1edd88,_0x3cd75f){return this['_ensureShapeModelManager'](_0x3a2a34,_0x1edd88)['getShapeType'](_0x3cd75f);}[_0x5c01d6(0x1be)](_0x1f76ee,_0x491ddb,_0x38b62a){const _0x1a1b90=_0x5c01d6;return this[_0x1a1b90(0x17e)](_0x1f76ee,_0x491ddb)['getShapeType'](_0x38b62a);}[_0x5c01d6(0x158)](_0x56b0a5,_0x2c503c,_0x3d3da4){const _0x3003d3=_0x5c01d6;return this[_0x3003d3(0x17e)](_0x56b0a5,_0x2c503c)[_0x3003d3(0x158)](_0x3d3da4);}[_0x5c01d6(0x172)](_0xc125b,_0x2d993d,_0x3c5de8){const _0x5f1cb4=_0x5c01d6;return this['_ensureShapeModelManager'](_0xc125b,_0x2d993d)[_0x5f1cb4(0x1be)](_0x3c5de8);}[_0x5c01d6(0x182)](_0x256627,_0xb4b818,_0x10babc){const _0x1a6846=_0x5c01d6;let _0x2954d8=this[_0x1a6846(0x17e)](_0x256627,_0xb4b818);if(!_0x2954d8[_0x1a6846(0x1be)](_0x10babc))return;let _0x28eebb=_0x2954d8['_shapes'][_0x1a6846(0x1a0)](_0x10babc);if(_0x28eebb)return _0x28eebb['getShapeData']();}[_0x5c01d6(0x139)](_0x2d73e3,_0x4df4c3){const _0x5a1e46=_0x5c01d6;return this['_ensureShapeModelManager'](_0x2d73e3,_0x4df4c3)[_0x5a1e46(0x139)]();}[_0x5c01d6(0x148)](_0x177c8b,_0x41f43e,_0xdc0547){const _0x318451=_0x5c01d6;return this[_0x318451(0x17e)](_0x177c8b,_0x41f43e)['_shapes']['get'](_0xdc0547);}[_0x5c01d6(0x1a3)](_0x3974a7,_0x5303bf,_0x2a7f3e){const _0x279ebd=_0x5c01d6;return this[_0x279ebd(0x17e)](_0x3974a7,_0x5303bf)[_0x279ebd(0x1a3)](_0x2a7f3e);}[_0x5c01d6(0x18c)](_0x3dcefb,_0x56fbb5,_0x4825c8){const _0x13f2c6=_0x5c01d6;let _0x1be301=this[_0x13f2c6(0x17e)](_0x3dcefb,_0x56fbb5)[_0x13f2c6(0x184)][_0x13f2c6(0x1a0)](_0x4825c8);if(_0x1be301)return _0x1be301[_0x13f2c6(0x183)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0x120ca8){const _0x5a92c7=_0x5c01d6;let _0x5abdcf={},_0x551851=this[_0x5a92c7(0x17a)][_0x5a92c7(0x1a0)](_0x120ca8);return _0x551851&&_0x551851[_0x5a92c7(0x1da)]((_0x436191,_0x4d5a28)=>{const _0x382543=_0x5a92c7;let _0xf02f30=_0x436191['toJSON']();_0xf02f30[_0x382543(0x1b5)]>0x0&&(_0x5abdcf[_0x4d5a28]=_0xf02f30);}),JSON[_0x5a92c7(0x1d4)](_0x5abdcf);}['_deserializeShapeForUnit'](_0xb2f4e,_0x3333e5){const _0x19819e=_0x5c01d6;Object[_0x19819e(0x186)](_0x3333e5)[_0x19819e(0x1da)](_0x5b6ad9=>{const _0x54a925=_0x19819e;this['_ensureShapeModelManager'](_0xb2f4e,_0x5b6ad9)[_0x54a925(0x1c4)](_0x3333e5[_0x5b6ad9]);});}['toJSON'](){const _0x4ceba7=_0x5c01d6;let _0x4344bb={};return this['_shapeModelManagerMap'][_0x4ceba7(0x1da)]((_0x2c601a,_0xcb417c)=>{_0x4344bb[_0xcb417c]={},_0x2c601a['forEach']((_0x194925,_0x1175d1)=>{const _0x3397d9=_0xfb69;_0x4344bb[_0xcb417c][_0x1175d1]=_0x194925[_0x3397d9(0x196)]();});}),_0x4344bb;}[_0x5c01d6(0x1c4)](_0x5bf113){const _0x410d76=_0x5c01d6;Object[_0x410d76(0x186)](_0x5bf113)['forEach'](_0xd394eb=>{const _0x44298d=_0x410d76;let _0x4abf7b=_0x5bf113[_0xd394eb];Object[_0x44298d(0x186)](_0x4abf7b)['forEach'](_0x3cbabf=>{const _0xb3892a=_0x44298d;this['_ensureShapeModelManager'](_0xd394eb,_0x3cbabf)[_0xb3892a(0x1c4)](_0x4abf7b[_0x3cbabf]);});});}[_0x5c01d6(0x197)](){const _0x5ecbf4=_0x5c01d6;this['_resourcesManagerService'][_0x5ecbf4(0x1d5)]({'pluginName':_0x5ecbf4(0x13c),'businesses':[_0xf7260a['UNIVER_SHEET']],'toJson':_0x4f9b3c=>this[_0x5ecbf4(0x14c)](_0x4f9b3c),'parseJson':_0x3f8b83=>JSON[_0x5ecbf4(0x179)](_0x3f8b83),'onLoad':(_0x45020b,_0x28a058)=>{const _0x50003b=_0x5ecbf4;this[_0x50003b(0x1a5)](_0x45020b,_0x28a058);},'onUnLoad':_0x4ccdc7=>{const _0x43e8ce=_0x5ecbf4;let _0x2c0081=this[_0x43e8ce(0x17a)][_0x43e8ce(0x1a0)](_0x4ccdc7);_0x2c0081&&(_0x2c0081[_0x43e8ce(0x1da)](_0x361197=>{const _0x51de24=_0x43e8ce;_0x361197[_0x51de24(0x1a8)]();}),this['_shapeModelManagerMap'][_0x43e8ce(0x195)](_0x4ccdc7));}});}[_0x5c01d6(0x1a8)](){const _0x36ae33=_0x5c01d6;this[_0x36ae33(0x17a)]['forEach'](_0x30e922=>{_0x30e922['forEach'](_0x5c333c=>{const _0x1f12e8=_0xfb69;_0x5c333c[_0x1f12e8(0x1a8)]();});});}};Y=J([q(0x0,_0x11cd5e)],Y);const X={'id':_0x5c01d6(0x16a),'type':_0x22ee2b['MUTATION'],'handler':(_0x30b2ee,_0xcf72d6)=>{const _0x17b304=_0x5c01d6;let {unitId:_0x523bd5,subUnitId:_0x2f1c5f,shapeType:_0x2328eb,shapeId:_0x1b9244,shapeName:_0x1658d0,shapeData:_0xa78170}=_0xcf72d6;return _0x30b2ee[_0x17b304(0x1a0)](Y)[_0x17b304(0x1c3)](_0x523bd5,_0x2f1c5f,_0x2328eb,_0x1b9244,_0xa78170,_0x1658d0),!0x0;}},Z={'id':'sheet.mutation.remove-shape','type':_0x22ee2b['MUTATION'],'handler':(_0x466f6a,_0x5aea19)=>{const _0x3a6dd5=_0x5c01d6;let {unitId:_0x28d662,subUnitId:_0x119d76,shapeId:_0x547f14}=_0x5aea19;return _0x466f6a[_0x3a6dd5(0x1a0)](Y)[_0x3a6dd5(0x143)](_0x28d662,_0x119d76,_0x547f14),!0x0;}},Q={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x15d),'handler':(_0x2173cc,_0x5c3a75)=>{const _0xb5b020=_0x5c01d6;var _0x571e35,_0xc24c05,_0x1d5198,_0x1ffa30,_0x4fb7e7,_0x523a59,_0x293f96;let _0x376e69=_0x2abc39(_0x2173cc[_0xb5b020(0x1a0)](_0x1d3366),_0x5c3a75);if(!_0x376e69)return!0x1;let _0x184f67=_0x2173cc[_0xb5b020(0x1a0)](_0x3c7b6a),{unitId:_0x11a572,subUnitId:_0x4768d5}=_0x376e69,_0xc5b40f=_0x184f67['ensureSkeleton'](_0x11a572,_0x4768d5);if(!_0xc5b40f)return!0x1;let _0x351664=_0x2173cc['get'](_0x5c6888),_0x486935=_0x2173cc[_0xb5b020(0x1a0)](_0x1107ce),_0x2eab46=_0x2173cc[_0xb5b020(0x1a0)](_0x133228),_0x169f86=_0x2173cc['get'](_0xf49d13),_0x5c1ba5=_0x2173cc[_0xb5b020(0x1a0)](Y),{shapeType:_0x41cbc3,shapeData:_0x2d85da}=_0x5c3a75,_0x53d0ad=_0x5c3a75[_0xb5b020(0x142)]||_0x518436(),_0x3f61a9={'unitId':_0x11a572,'subUnitId':_0x4768d5,'shapeId':_0x53d0ad,'shapeName':(_0x571e35=_0x5c3a75['shapeName'])==null?_0x4b528f(_0x41cbc3,_0x5c1ba5[_0xb5b020(0x139)](_0x11a572,_0x4768d5)):_0x571e35,'shapeType':_0x41cbc3,'shapeData':_0x2d85da},_0xc37029=_0x5c3a75[_0xb5b020(0x18d)]||0xc8,_0x2904dc=_0x5c3a75[_0xb5b020(0x137)]||0xc8,_0x2f7684=0x0,_0x3f6317=0x0;if(_0x5c3a75['position']){let {x:_0x40cc2e,y:_0x594832}=_0x5c3a75['position'];_0x2f7684=_0x40cc2e,_0x3f6317=_0x594832;}else{if(_0x5c3a75[_0xb5b020(0x16d)]){let {startRow:_0x14ed7a,startColumn:_0x390f90}=_0x5c3a75[_0xb5b020(0x16d)],_0x92851c=_0xc5b40f[_0xb5b020(0x133)](_0x14ed7a,_0x390f90);_0x2f7684=_0x92851c[_0xb5b020(0x1a2)]+0xa,_0x3f6317=_0x92851c['startY']+0xa;}}let _0x923d36={'left':_0x2f7684,'top':_0x3f6317,'width':_0xc37029,'height':_0x2904dc,'angle':(_0xc24c05=_0x5c3a75['rotation'])==null?0x0:_0xc24c05,'flipX':(_0x1d5198=_0x5c3a75[_0xb5b020(0x13b)])==null?!0x1:_0x1d5198,'flipY':(_0x1ffa30=_0x5c3a75[_0xb5b020(0x1b1)])==null?!0x1:_0x1ffa30},_0x5b4677=_0x526ffb(_0x923d36,_0xc5b40f),_0x357a60=_0x5d5502(_0x923d36,_0xc5b40f),_0x3f9f0a={'unitId':_0x11a572,'subUnitId':_0x4768d5,'drawingId':_0x53d0ad,'drawingType':_0x3fcfb7[_0xb5b020(0x12d)],'name':_0x5c3a75[_0xb5b020(0x146)],'description':_0x5c3a75['description'],'sheetTransform':_0x5b4677,'transform':_0x923d36,'data':{'shapeType':_0x41cbc3,'shapeData':_0x2d85da},'axisAlignSheetTransform':_0x357a60,'allowTransform':!0x0,'hidden':_0x5c3a75[_0xb5b020(0x136)]===!0x1,'selectable':(_0x4fb7e7=_0x5c3a75[_0xb5b020(0x15b)])==null?!0x0:_0x4fb7e7};_0x517c66(_0x41cbc3)&&(_0x3f9f0a[_0xb5b020(0x1b4)]['fill']=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x15c)]=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x140)]=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x1aa)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x15c)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x140)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x1aa)]=!0x1);let {undo:_0x4679dd,redo:_0x19c7bc,objects:_0x45ebd1}=_0x169f86[_0xb5b020(0x151)]([_0x3f9f0a]),_0x1bddf9=_0x2eab46[_0xb5b020(0x14f)]({'id':_0x2949ae['id'],'params':{'unitId':_0x11a572,'drawings':[_0x3f9f0a]}}),_0x347f13=[...(_0x523a59=_0x1bddf9['preRedos'])==null?[]:_0x523a59,{'id':_0x187b38['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'op':_0x19c7bc,'objects':_0x45ebd1,'type':_0x484cad[_0xb5b020(0x1c9)]}},{'id':_0x312f26['id'],'params':[_0x11a572]},..._0x1bddf9['redos'],{'id':X['id'],'params':_0x3f61a9}],_0x53e844=[{'id':Z['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'shapeId':_0x53d0ad}},...(_0x293f96=_0x1bddf9[_0xb5b020(0x141)])==null?[]:_0x293f96,{'id':_0x187b38['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'op':_0x4679dd,'objects':_0x45ebd1,'type':_0x484cad[_0xb5b020(0x192)]}},{'id':_0x312f26['id'],'params':[_0x11a572]},..._0x1bddf9[_0xb5b020(0x157)]];return _0x263a3c(_0x347f13,_0x351664)[_0xb5b020(0x16c)]?(_0x486935[_0xb5b020(0x1b8)]({'unitID':_0x11a572,'undoMutations':_0x53e844,'redoMutations':_0x347f13}),!0x0):!0x1;}},$={'id':_0x5c01d6(0x1b7),'type':_0x22ee2b['MUTATION'],'handler':(_0x3f9f75,_0x1557c5)=>{const _0x5cb5b9=_0x5c01d6;let {unitId:_0x4a5609,subUnitId:_0x326c7e,shapeType:_0x1a6ca5,shapeId:_0x270060,shapeData:_0x1c9d68}=_0x1557c5,_0x5d36d9=_0x3f9f75[_0x5cb5b9(0x1a0)](Y)[_0x5cb5b9(0x148)](_0x4a5609,_0x326c7e,_0x270060);return _0x5d36d9&&(_0x1a6ca5!==void 0x0&&_0x5d36d9['setShapeType'](_0x1a6ca5),_0x1c9d68&&(_0x5d36d9==null||_0x5d36d9[_0x5cb5b9(0x156)](_0x1c9d68,!0x0))),!0x0;}},ne={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x39c886,_0x57c03f)=>{const _0xdd26ba=_0x5c01d6;var _0x255d17,_0x39d4ac,_0x1a6cbc,_0x4d5f9c,_0x3c1e69;let _0x25b154=_0x2abc39(_0x39c886[_0xdd26ba(0x1a0)](_0x1d3366),_0x57c03f);if(!_0x25b154)return!0x1;let _0x7c5f5f=_0x39c886['get'](_0x3c7b6a),{unitId:_0x528c5d,subUnitId:_0x2d6377}=_0x25b154,_0x47a159=_0x7c5f5f[_0xdd26ba(0x193)](_0x528c5d,_0x2d6377);if(!_0x47a159)return!0x1;let _0x24acef=_0x39c886[_0xdd26ba(0x1a0)](Y),{shapeId:_0x49c044,shapeType:_0x146a88,shapeData:_0x16150e,position:_0x165eb4,width:_0x1b7771,height:_0x71b475}=_0x57c03f,_0x3a6298=_0x24acef[_0xdd26ba(0x148)](_0x528c5d,_0x2d6377,_0x49c044);if(!_0x3a6298)return!0x1;let _0xa69028=_0x39c886[_0xdd26ba(0x1a0)](_0x5c6888),_0x2dbf14=_0x39c886[_0xdd26ba(0x1a0)](_0x1107ce),_0x479266=_0x39c886[_0xdd26ba(0x1a0)](_0x133228),_0x429e4f=_0x39c886[_0xdd26ba(0x1a0)](_0xf49d13),_0x4c9703={'unitId':_0x528c5d,'subUnitId':_0x2d6377,'shapeId':_0x49c044,'shapeType':_0x146a88,'shapeData':_0x16150e},_0x56574a=_0x3a6298[_0xdd26ba(0x1be)](),_0x571ba7=_0x3a6298[_0xdd26ba(0x149)](),{x:_0x99662f,y:_0x48db7c}=_0x165eb4,_0x107425={'left':_0x99662f,'top':_0x48db7c,'width':_0x1b7771,'height':_0x71b475,'angle':(_0x255d17=_0x57c03f['rotation'])==null?0x0:_0x255d17,'flipX':(_0x39d4ac=_0x57c03f[_0xdd26ba(0x13b)])==null?!0x1:_0x39d4ac,'flipY':(_0x1a6cbc=_0x57c03f[_0xdd26ba(0x1b1)])==null?!0x1:_0x1a6cbc},_0x3199a6=_0x526ffb(_0x107425,_0x47a159),_0x12df75=_0x5d5502(_0x107425,_0x47a159),_0x1b33fa={'unitId':_0x528c5d,'subUnitId':_0x2d6377,'drawingId':_0x49c044,'drawingType':_0x3fcfb7[_0xdd26ba(0x12d)],'name':_0x57c03f[_0xdd26ba(0x146)],'description':_0x57c03f[_0xdd26ba(0x191)],'sheetTransform':_0x3199a6,'transform':_0x107425,'data':{'shapeType':_0x146a88,'shapeData':_0x16150e},'axisAlignSheetTransform':_0x12df75,'allowTransform':!0x0,'hidden':!_0x57c03f[_0xdd26ba(0x136)],'selectable':_0x57c03f['selectable']};_0x517c66(_0x146a88)&&(_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x161)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x15c)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x140)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x1aa)]=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)]['rotateEnabled']=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)]['resizeEnabled']=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)][_0xdd26ba(0x1aa)]=!0x1);let {undo:_0x1bd4cd,redo:_0x329549,objects:_0x5a91c6}=_0x429e4f[_0xdd26ba(0x14d)]([_0x1b33fa]),_0x5854b2=_0x479266[_0xdd26ba(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x528c5d,'drawings':[_0x1b33fa]}}),_0x232d83=[...(_0x4d5f9c=_0x5854b2[_0xdd26ba(0x174)])==null?[]:_0x4d5f9c,{'id':_0x187b38['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'op':_0x329549,'objects':_0x5a91c6,'type':_0x484cad[_0xdd26ba(0x180)]}},{'id':_0x312f26['id'],'params':[_0x528c5d]},..._0x5854b2[_0xdd26ba(0x1cf)],{'id':$['id'],'params':_0x4c9703}],_0x1b3685=[...(_0x3c1e69=_0x5854b2['preUndos'])==null?[]:_0x3c1e69,{'id':_0x187b38['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'op':_0x1bd4cd,'objects':_0x5a91c6,'type':_0x484cad[_0xdd26ba(0x180)]}},{'id':_0x312f26['id'],'params':[_0x528c5d]},..._0x5854b2[_0xdd26ba(0x157)],{'id':$['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'shapeType':_0x56574a,'shapeId':_0x49c044,'shapeData':_0x571ba7}}];return _0x263a3c(_0x232d83,_0xa69028)[_0xdd26ba(0x16c)]?(_0x2dbf14[_0xdd26ba(0x1b8)]({'unitID':_0x528c5d,'undoMutations':_0x1b3685,'redoMutations':_0x232d83}),!0x0):!0x1;}},re={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x16b),'handler':(_0x126767,_0x4a0b79)=>{const _0x1f4545=_0x5c01d6;var _0x10e471,_0x32e5ca;let _0xd6fbce=_0x2abc39(_0x126767[_0x1f4545(0x1a0)](_0x1d3366),_0x4a0b79);if(!_0xd6fbce)return!0x1;let _0x52a777=_0x126767[_0x1f4545(0x1a0)](_0x3c7b6a),{unitId:_0x4c60bb,subUnitId:_0x4fb292}=_0xd6fbce,_0x8b9da9=_0x52a777[_0x1f4545(0x177)](_0x4c60bb,_0x4fb292);if(!_0x8b9da9)return!0x1;let _0x19920b=_0x126767[_0x1f4545(0x1a0)](_0xf49d13),{shapeId:_0x40d9d8,flipH:_0x5e6e92,flipV:_0x5e2f64}=_0x4a0b79,_0x494524=_0x19920b[_0x1f4545(0x187)]({'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'drawingId':_0x40d9d8});if(!_0x494524)return!0x1;let _0x3b5d78=_0x126767[_0x1f4545(0x1a0)](Y)[_0x1f4545(0x148)](_0x4c60bb,_0x4fb292,_0x40d9d8);if(!_0x3b5d78)return!0x1;let _0x541133=_0x126767[_0x1f4545(0x1a0)](_0x5c6888),_0x363111=_0x126767[_0x1f4545(0x1a0)](_0x1107ce),_0x1104f4=_0x126767['get'](_0x133228),_0x26b351={..._0x494524['transform']};_0x5e6e92!==void 0x0&&(_0x26b351['flipX']=!_0x26b351[_0x1f4545(0x13b)]),_0x5e2f64!==void 0x0&&(_0x26b351[_0x1f4545(0x1b1)]=!_0x26b351[_0x1f4545(0x1b1)]);let _0x58753d=_0x526ffb(_0x26b351,_0x8b9da9),_0x333edd=_0x5d5502(_0x26b351,_0x8b9da9),_0x7dba7a=_0x3b5d78[_0x1f4545(0x1be)](),_0xbeab32=_0x3b5d78[_0x1f4545(0x149)](),_0x4f230b={'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'drawingId':_0x40d9d8,'drawingType':_0x3fcfb7[_0x1f4545(0x12d)],'sheetTransform':_0x58753d,'transform':_0x26b351,'data':{'shapeType':_0x7dba7a,'shapeData':_0xbeab32},'axisAlignSheetTransform':_0x333edd,'allowTransform':!0x0},{undo:_0x41070b,redo:_0x3e317c,objects:_0x113a64}=_0x19920b[_0x1f4545(0x14d)]([_0x4f230b]),_0x26770f=_0x1104f4[_0x1f4545(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x4c60bb,'drawings':[_0x4f230b]}}),_0x1634b9=[...(_0x10e471=_0x26770f[_0x1f4545(0x174)])==null?[]:_0x10e471,{'id':_0x187b38['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'op':_0x3e317c,'objects':_0x113a64,'type':_0x484cad[_0x1f4545(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4c60bb]},..._0x26770f[_0x1f4545(0x1cf)]],_0x2a49f4=[...(_0x32e5ca=_0x26770f[_0x1f4545(0x141)])==null?[]:_0x32e5ca,{'id':_0x187b38['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'op':_0x41070b,'objects':_0x113a64,'type':_0x484cad[_0x1f4545(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4c60bb]},..._0x26770f[_0x1f4545(0x157)]];if(_0x517c66(_0x7dba7a)){let _0x1976e7=_0x3b5d78[_0x1f4545(0x183)]();if(_0x1976e7){let _0x12f056={..._0x1976e7};_0x12f056['from']=void 0x0,_0x12f056['to']=void 0x0,_0x1634b9['push']({'id':$['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'shapeId':_0x40d9d8,'shapeType':_0x7dba7a,'shapeData':{'relation':_0x12f056}}}),_0x2a49f4[_0x1f4545(0x189)]({'id':$['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'shapeId':_0x40d9d8,'shapeType':_0x7dba7a,'shapeData':{'relation':_0x1976e7}}});}}return _0x263a3c(_0x1634b9,_0x541133)[_0x1f4545(0x16c)]?(_0x363111[_0x1f4545(0x1b8)]({'unitID':_0x4c60bb,'undoMutations':_0x2a49f4,'redoMutations':_0x1634b9}),!0x0):!0x1;}},ie={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1d3),'handler':(_0x3c1821,_0x5daedf)=>{const _0x24caeb=_0x5c01d6;var _0x525617,_0x389fff;let _0x43e79f=_0x2abc39(_0x3c1821[_0x24caeb(0x1a0)](_0x1d3366),_0x5daedf);if(!_0x43e79f)return!0x1;let _0x56306c=_0x3c1821['get'](_0x3c7b6a),{unitId:_0x4d368c,subUnitId:_0x147bc7}=_0x43e79f,_0x55672e=_0x56306c[_0x24caeb(0x177)](_0x4d368c,_0x147bc7);if(!_0x55672e)return!0x1;let _0x4fc8f3=_0x3c1821['get'](_0xf49d13),{shapeId:_0x4cb770,rotate:_0x1231d5}=_0x5daedf,_0x489e34=_0x4fc8f3[_0x24caeb(0x187)]({'unitId':_0x4d368c,'subUnitId':_0x147bc7,'drawingId':_0x4cb770});if(!_0x489e34)return!0x1;let _0x5868a4=_0x3c1821[_0x24caeb(0x1a0)](Y)[_0x24caeb(0x148)](_0x4d368c,_0x147bc7,_0x4cb770);if(!_0x5868a4)return!0x1;let _0x1e1dab=_0x3c1821[_0x24caeb(0x1a0)](_0x5c6888),_0x513bce=_0x3c1821['get'](_0x1107ce),_0x51f2a1=_0x3c1821['get'](_0x133228),_0x180205={..._0x489e34[_0x24caeb(0x1d8)]};_0x1231d5!==void 0x0&&(_0x180205[_0x24caeb(0x15a)]=(_0x180205[_0x24caeb(0x15a)]||0x0)+_0x1231d5);let _0x4a1ac9=_0x526ffb(_0x180205,_0x55672e),_0x8df995=_0x5d5502(_0x180205,_0x55672e),_0x181e9c=_0x5868a4[_0x24caeb(0x1be)](),_0x21b89a=_0x5868a4[_0x24caeb(0x149)](),_0x243929={'unitId':_0x4d368c,'subUnitId':_0x147bc7,'drawingId':_0x4cb770,'drawingType':_0x3fcfb7[_0x24caeb(0x12d)],'sheetTransform':_0x4a1ac9,'transform':_0x180205,'data':{'shapeType':_0x181e9c,'shapeData':_0x21b89a},'axisAlignSheetTransform':_0x8df995,'allowTransform':!0x0},{undo:_0x98e949,redo:_0x2501cc,objects:_0x3f23bb}=_0x4fc8f3[_0x24caeb(0x14d)]([_0x243929]),_0x30fafa=_0x51f2a1[_0x24caeb(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x4d368c,'drawings':[_0x243929]}}),_0x36e308=[...(_0x525617=_0x30fafa[_0x24caeb(0x174)])==null?[]:_0x525617,{'id':_0x187b38['id'],'params':{'unitId':_0x4d368c,'subUnitId':_0x147bc7,'op':_0x2501cc,'objects':_0x3f23bb,'type':_0x484cad[_0x24caeb(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4d368c]},..._0x30fafa['redos']],_0x3950aa=[...(_0x389fff=_0x30fafa[_0x24caeb(0x141)])==null?[]:_0x389fff,{'id':_0x187b38['id'],'params':{'unitId':_0x4d368c,'subUnitId':_0x147bc7,'op':_0x98e949,'objects':_0x3f23bb,'type':_0x484cad[_0x24caeb(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4d368c]},..._0x30fafa[_0x24caeb(0x157)]];return _0x263a3c(_0x36e308,_0x1e1dab)[_0x24caeb(0x16c)]?(_0x513bce['pushUndoRedo']({'unitID':_0x4d368c,'undoMutations':_0x3950aa,'redoMutations':_0x36e308}),!0x0):!0x1;}},ae={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1b3),'handler':(_0x1edf21,_0xdb697b)=>{const _0x4a2db6=_0x5c01d6;var _0x2d4d08;let _0x15beac=_0x2abc39(_0x1edf21[_0x4a2db6(0x1a0)](_0x1d3366),_0xdb697b);if(!_0x15beac)return!0x1;let {unitId:_0x34daf7,subUnitId:_0x2f6b92}=_0x15beac,{shapeId:_0x162403}=_0xdb697b,_0x5c01f7=_0x1edf21[_0x4a2db6(0x1a0)](Y)[_0x4a2db6(0x148)](_0x34daf7,_0x2f6b92,_0x162403);if(!_0x5c01f7)return!0x1;let _0x32d89e=_0x5c01f7[_0x4a2db6(0x17c)](),_0x51bcbc=(_0x2d4d08=_0x32d89e==null?void 0x0:_0x32d89e[_0x4a2db6(0x164)])==null?!0x0:_0x2d4d08,_0x1ebb46=!_0x51bcbc,_0x472887=_0x1edf21[_0x4a2db6(0x1a0)](_0x5c6888),_0x591fbf=_0x1edf21[_0x4a2db6(0x1a0)](_0x1107ce),_0x44b666={'unitId':_0x34daf7,'subUnitId':_0x2f6b92,'shapeId':_0x162403,'shapeData':{'shapeText':{'isHorizontal':_0x1ebb46}}},_0x276e28={'unitId':_0x34daf7,'subUnitId':_0x2f6b92,'shapeId':_0x162403,'shapeData':{'shapeText':{'isHorizontal':_0x51bcbc}}},_0x4bd2ca=[{'id':$['id'],'params':_0x44b666}],_0x2eb632=[{'id':$['id'],'params':_0x276e28}];return _0x263a3c(_0x4bd2ca,_0x472887)[_0x4a2db6(0x16c)]?(_0x591fbf['pushUndoRedo']({'unitID':_0x34daf7,'undoMutations':_0x2eb632,'redoMutations':_0x4bd2ca}),!0x0):!0x1;}},oe={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1a7),'handler':(_0x252a38,_0x572705)=>{const _0x23f310=_0x5c01d6;var _0x5c2c90,_0x366c1f,_0x2051b9,_0x132363;let _0xf6d3a6=_0x2abc39(_0x252a38[_0x23f310(0x1a0)](_0x1d3366),_0x572705);if(!_0xf6d3a6)return!0x1;let _0xb49e0f=_0x252a38[_0x23f310(0x1a0)](_0x3c7b6a),{unitId:_0x348363,subUnitId:_0x2dea7b}=_0xf6d3a6,_0x4d3975=_0xb49e0f[_0x23f310(0x177)](_0x348363,_0x2dea7b);if(!_0x4d3975)return!0x1;let _0x4e49f4=_0x252a38[_0x23f310(0x1a0)](_0xf49d13),{connectorShapeId:_0x4fea05,width:_0x40c0b9,height:_0x477a33,left:_0x930c23,top:_0x2f959b,flipX:_0x57f365,flipY:_0x2b3625,rotation:_0x3e3856,oldAdjustValues:_0x4501f8,newAdjustValues:_0x48f6ec,oldLineType:_0x1adfa5,newLineType:_0x41be73,oldRelation:_0x21308f,newRelation:_0x126017}=_0x572705,_0x50f402=_0x4e49f4['getDrawingByParam']({'unitId':_0x348363,'subUnitId':_0x2dea7b,'drawingId':_0x4fea05});if(!_0x50f402)return!0x1;let _0x126540=_0x252a38['get'](Y)['getShapeModel'](_0x348363,_0x2dea7b,_0x4fea05);if(!_0x126540)return!0x1;let _0x21f1a1=_0x252a38['get'](_0x5c6888),_0xce91dc=_0x252a38[_0x23f310(0x1a0)](_0x1107ce),_0x1f3c10=_0x252a38[_0x23f310(0x1a0)](_0x133228),_0x5782e7={..._0x50f402[_0x23f310(0x1d8)],'width':_0x40c0b9,'height':_0x477a33,'left':_0x930c23,'top':_0x2f959b,'flipX':_0x57f365,'flipY':_0x2b3625,'angle':(_0x5c2c90=_0x3e3856==null?(_0x366c1f=_0x50f402[_0x23f310(0x1d8)])==null?void 0x0:_0x366c1f[_0x23f310(0x15a)]:_0x3e3856)==null?0x0:_0x5c2c90},_0x4ce822=_0x526ffb(_0x5782e7,_0x4d3975),_0x28a04c=_0x5d5502(_0x5782e7,_0x4d3975),_0x75d8a3=_0x126540[_0x23f310(0x1be)](),_0x4ec28c=_0x126540[_0x23f310(0x149)](),_0x4db1aa={'unitId':_0x348363,'subUnitId':_0x2dea7b,'drawingId':_0x4fea05,'drawingType':_0x3fcfb7[_0x23f310(0x12d)],'sheetTransform':_0x4ce822,'transform':_0x5782e7,'data':{'shapeType':_0x41be73||_0x1adfa5||_0x75d8a3,'shapeData':{..._0x4ec28c,'adjustValues':_0x48f6ec||_0x4501f8||(_0x4ec28c==null?void 0x0:_0x4ec28c['adjustValues']),'relation':_0x126017||_0x21308f||(_0x4ec28c==null?void 0x0:_0x4ec28c[_0x23f310(0x19f)])}},'axisAlignSheetTransform':_0x28a04c,'allowTransform':!0x0},{undo:_0x219092,redo:_0x583def,objects:_0x44142e}=_0x4e49f4[_0x23f310(0x14d)]([_0x4db1aa]),_0xca88bc=_0x1f3c10['onCommandExecute']({'id':_0xbe173f['id'],'params':{'unitId':_0x348363,'drawings':[_0x4db1aa]}}),_0x2cf6d1=[...(_0x2051b9=_0xca88bc[_0x23f310(0x174)])==null?[]:_0x2051b9,{'id':_0x187b38['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'op':_0x583def,'objects':_0x44142e,'type':_0x484cad['UPDATE']}},{'id':_0x312f26['id'],'params':[_0x348363]},..._0xca88bc[_0x23f310(0x1cf)],{'id':$['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'shapeId':_0x4fea05,'shapeType':_0x41be73,'shapeData':{'adjustValues':_0x48f6ec,'relation':_0x126017}}}],_0x2b8b5f=[...(_0x132363=_0xca88bc[_0x23f310(0x141)])==null?[]:_0x132363,{'id':_0x187b38['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'op':_0x219092,'objects':_0x44142e,'type':_0x484cad[_0x23f310(0x180)]}},{'id':_0x312f26['id'],'params':[_0x348363]},..._0xca88bc[_0x23f310(0x157)],{'id':$['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'shapeId':_0x4fea05,'shapeType':_0x75d8a3,'shapeData':{..._0x4ec28c,'adjustValues':_0x4501f8||(_0x4ec28c==null?void 0x0:_0x4ec28c['adjustValues']),'relation':_0x21308f||(_0x4ec28c==null?void 0x0:_0x4ec28c[_0x23f310(0x19f)])}}}];return _0x263a3c(_0x2cf6d1,_0x21f1a1)['result']?(_0xce91dc['pushUndoRedo']({'unitID':_0x348363,'undoMutations':_0x2b8b5f,'redoMutations':_0x2cf6d1}),!0x0):!0x1;}},se={'type':_0x22ee2b['COMMAND'],'id':_0x5c01d6(0x185),'handler':(_0x55af6a,_0x51275a)=>{const _0x257749=_0x5c01d6;var _0x39f30c,_0x4f4acc;let _0x438215=_0x2abc39(_0x55af6a[_0x257749(0x1a0)](_0x1d3366),_0x51275a);if(!_0x438215)return!0x1;let _0x5f1433=_0x55af6a[_0x257749(0x1a0)](_0x3c7b6a),{unitId:_0x359ab0,subUnitId:_0x395e39}=_0x438215,_0x37c3e2=_0x5f1433[_0x257749(0x177)](_0x359ab0,_0x395e39);if(!_0x37c3e2)return!0x1;let _0x2901a5=_0x55af6a['get'](_0xf49d13),{shapeId:_0xd8c3d4,width:_0x318c9e,height:_0x353a82,left:_0x4acec3,top:_0x3b047b,flipX:_0x20a1fb,flipY:_0xb1cf6a,angle:_0x33d800,oldAdjustValues:_0x1975c7,newAdjustValues:_0x1abec8,oldLineType:_0x2aebb1,newLineType:_0x4a4fbe}=_0x51275a,_0xd3f885=_0x2901a5['getDrawingByParam']({'unitId':_0x359ab0,'subUnitId':_0x395e39,'drawingId':_0xd8c3d4});if(!_0xd3f885)return!0x1;let _0x2ed569=_0x55af6a[_0x257749(0x1a0)](Y)[_0x257749(0x148)](_0x359ab0,_0x395e39,_0xd8c3d4);if(!_0x2ed569)return!0x1;let _0x37a005=_0x55af6a[_0x257749(0x1a0)](_0x5c6888),_0x56d947=_0x55af6a['get'](_0x1107ce),_0x40bc28=_0x55af6a[_0x257749(0x1a0)](_0x133228),_0x3d9c85={..._0xd3f885[_0x257749(0x1d8)],'width':_0x318c9e,'height':_0x353a82,'left':_0x4acec3,'top':_0x3b047b,'flipX':_0x20a1fb,'flipY':_0xb1cf6a,'angle':_0x33d800},_0x58a4ba=_0x526ffb(_0x3d9c85,_0x37c3e2),_0x142d7e=_0x5d5502(_0x3d9c85,_0x37c3e2),_0x1374f2=_0x2ed569[_0x257749(0x1be)](),_0x5c7fc8=_0x2ed569[_0x257749(0x149)](),_0x3718a0={'unitId':_0x359ab0,'subUnitId':_0x395e39,'drawingId':_0xd8c3d4,'drawingType':_0x3fcfb7[_0x257749(0x12d)],'sheetTransform':_0x58a4ba,'transform':_0x3d9c85,'data':{'shapeType':_0x4a4fbe||_0x2aebb1||_0x1374f2,'shapeData':{..._0x5c7fc8,'adjustValues':_0x1abec8||_0x1975c7||(_0x5c7fc8==null?void 0x0:_0x5c7fc8['adjustValues'])}},'axisAlignSheetTransform':_0x142d7e,'allowTransform':!0x0},{undo:_0x75edf2,redo:_0x3d5e15,objects:_0x4d62e2}=_0x2901a5[_0x257749(0x14d)]([_0x3718a0]),_0x4c709a=_0x40bc28['onCommandExecute']({'id':_0xbe173f['id'],'params':{'unitId':_0x359ab0,'drawings':[_0x3718a0]}}),_0x233be9=[...(_0x39f30c=_0x4c709a['preRedos'])==null?[]:_0x39f30c,{'id':_0x187b38['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'op':_0x3d5e15,'objects':_0x4d62e2,'type':_0x484cad[_0x257749(0x180)]}},{'id':_0x312f26['id'],'params':[_0x359ab0]},..._0x4c709a[_0x257749(0x1cf)],{'id':$['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'shapeId':_0xd8c3d4,'shapeType':_0x4a4fbe,'shapeData':{'adjustValues':_0x1abec8}}}],_0x56311f=[...(_0x4f4acc=_0x4c709a[_0x257749(0x141)])==null?[]:_0x4f4acc,{'id':_0x187b38['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'op':_0x75edf2,'objects':_0x4d62e2,'type':_0x484cad[_0x257749(0x180)]}},{'id':_0x312f26['id'],'params':[_0x359ab0]},..._0x4c709a[_0x257749(0x157)],{'id':$['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'shapeId':_0xd8c3d4,'shapeType':_0x1374f2,'shapeData':{..._0x5c7fc8,'adjustValues':_0x1975c7||(_0x5c7fc8==null?void 0x0:_0x5c7fc8[_0x257749(0x17f)])}}}];return _0x263a3c(_0x233be9,_0x37a005)[_0x257749(0x16c)]?(_0x56d947[_0x257749(0x1b8)]({'unitID':_0x359ab0,'undoMutations':_0x56311f,'redoMutations':_0x233be9}),!0x0):!0x1;}},ce={'id':'sheet.mutation.update-shape-type','type':_0x22ee2b[_0x5c01d6(0x154)],'handler':(_0x54e201,_0x4ff7fa)=>{const _0x763b5d=_0x5c01d6;let {unitId:_0x4d5556,subUnitId:_0x26da0d,shapeType:_0x235e89,shapeId:_0x1dfd99,shapeData:_0x598fee}=_0x4ff7fa,_0x3fe851=_0x54e201[_0x763b5d(0x1a0)](Y)[_0x763b5d(0x148)](_0x4d5556,_0x26da0d,_0x1dfd99);return _0x3fe851&&(_0x3fe851['setShapeType'](_0x235e89),_0x598fee&&(_0x3fe851==null||_0x3fe851[_0x763b5d(0x156)](_0x598fee))),!0x0;}};var le='@univerjs-pro/sheets-shape',ue=_0x5c01d6(0x165);let de=class{constructor(_0x2cfbd6,_0x33f881,_0x10f8b3){const _0x557742=_0x5c01d6;this[_0x557742(0x18f)]=_0x2cfbd6,this[_0x557742(0x171)]=_0x33f881,this[_0x557742(0x1c6)]=_0x10f8b3,G(this,_0x557742(0x1af),_0xf7260a[_0x557742(0x126)]);}[_0x5c01d6(0x144)](_0x4b332c){const _0x291e85=_0x5c01d6;var _0x1ecdfc,_0x459fbc,_0x367f2a,_0x33ccd4,_0x4bdb35,_0x34f636,_0x476ba3,_0x390054,_0x1f0b3c;let _0x23011a=(_0x1ecdfc=this[_0x291e85(0x1c6)][_0x291e85(0x13d)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c[_0x291e85(0x1c0)]))==null?void 0x0:_0x1ecdfc[_0x4b332c[_0x291e85(0x142)]],_0x520c60=this[_0x291e85(0x171)][_0x291e85(0x1be)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c[_0x291e85(0x1c0)],_0x4b332c[_0x291e85(0x142)]);if(!_0x23011a||_0x23011a['drawingType']!==_0x3fcfb7[_0x291e85(0x12d)]||!_0x520c60)return null;let _0x25bcc1=_0x23011a[_0x291e85(0x1d8)];return{..._0x4b332c,'shapeType':_0x520c60,'shapeData':_0xfd6b8f[_0x291e85(0x170)]((_0x459fbc=this[_0x291e85(0x171)][_0x291e85(0x182)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c['subUnitId'],_0x4b332c[_0x291e85(0x142)]))==null?{}:_0x459fbc),'name':_0x23011a[_0x291e85(0x146)],'description':_0x23011a[_0x291e85(0x191)],'visible':_0x23011a[_0x291e85(0x18a)]!==!0x0,'selectable':_0x23011a[_0x291e85(0x15b)]!==!0x1,'transform':{'left':(_0x367f2a=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x125)])==null?0x0:_0x367f2a,'top':(_0x33ccd4=_0x25bcc1==null?void 0x0:_0x25bcc1['top'])==null?0x0:_0x33ccd4,'width':(_0x4bdb35=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x18d)])==null?0xc8:_0x4bdb35,'height':(_0x34f636=_0x25bcc1==null?void 0x0:_0x25bcc1['height'])==null?0xc8:_0x34f636,'rotation':(_0x476ba3=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x15a)])==null?0x0:_0x476ba3,'flipX':(_0x390054=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x13b)])==null?!0x1:_0x390054,'flipY':(_0x1f0b3c=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x1b1)])==null?!0x1:_0x1f0b3c}};}[_0x5c01d6(0x12f)](_0x90018e){const _0x4316dd=_0x5c01d6;var _0x41d65b;let _0x506550=(_0x41d65b=this[_0x4316dd(0x1c6)]['getDrawingData'](_0x90018e['unitId'],_0x90018e[_0x4316dd(0x1c0)]))==null?{}:_0x41d65b;return Object[_0x4316dd(0x1d7)](_0x506550)['filter'](_0x1d74a6=>(_0x1d74a6==null?void 0x0:_0x1d74a6[_0x4316dd(0x1d0)])===_0x3fcfb7[_0x4316dd(0x12d)])[_0x4316dd(0x1ac)](_0x476242=>this[_0x4316dd(0x144)]({..._0x90018e,'shapeId':_0x476242[_0x4316dd(0x1a1)]}))['filter'](_0x1ff12b=>!!_0x1ff12b);}[_0x5c01d6(0x1c2)](_0x7a3b74,_0x2aa345){const _0x311b77=_0x5c01d6;var _0x4e2795,_0x327c46,_0x344af1,_0x204697,_0x13e62c,_0x446afd,_0x17ac12,_0x55f5ca,_0x3f3dc2,_0x345342,_0x40e2f7,_0x5f4f3d,_0x4338e8,_0x50e715,_0x550e0a,_0x4c57e1,_0x28216b,_0x3cb480,_0x3239de;let _0x3cfc48=_0x518436(),_0xe84784={'left':(_0x4e2795=(_0x327c46=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x327c46[_0x311b77(0x125)])==null?0x0:_0x4e2795,'top':(_0x344af1=(_0x204697=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x204697[_0x311b77(0x1d6)])==null?0x0:_0x344af1,'width':(_0x13e62c=(_0x446afd=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x446afd[_0x311b77(0x18d)])==null?0xc8:_0x13e62c,'height':(_0x17ac12=(_0x55f5ca=_0x2aa345['transform'])==null?void 0x0:_0x55f5ca[_0x311b77(0x137)])==null?0xc8:_0x17ac12,'rotation':(_0x3f3dc2=(_0x345342=_0x2aa345['transform'])==null?void 0x0:_0x345342[_0x311b77(0x167)])==null?0x0:_0x3f3dc2,'flipX':(_0x40e2f7=(_0x5f4f3d=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x5f4f3d[_0x311b77(0x13b)])==null?!0x1:_0x40e2f7,'flipY':(_0x4338e8=(_0x50e715=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x50e715[_0x311b77(0x1b1)])==null?!0x1:_0x4338e8};return this[_0x311b77(0x18f)]['syncExecuteCommand'](Q['id'],{'unitId':_0x7a3b74[_0x311b77(0x1b9)],'subUnitId':_0x7a3b74[_0x311b77(0x1c0)],'shapeId':_0x3cfc48,'shapeType':_0x2aa345[_0x311b77(0x128)],'shapeData':_0x2aa345[_0x311b77(0x18b)],'name':_0x2aa345[_0x311b77(0x146)],'description':_0x2aa345[_0x311b77(0x191)],'position':{'x':_0xe84784[_0x311b77(0x125)],'y':_0xe84784[_0x311b77(0x1d6)]},'width':_0xe84784[_0x311b77(0x18d)],'height':_0xe84784['height'],'rotation':_0xe84784['rotation'],'flipX':_0xe84784[_0x311b77(0x13b)],'flipY':_0xe84784[_0x311b77(0x1b1)],'visible':(_0x550e0a=_0x2aa345['visible'])==null?!0x0:_0x550e0a,'selectable':(_0x4c57e1=_0x2aa345[_0x311b77(0x15b)])==null?!0x0:_0x4c57e1})?{..._0x7a3b74,'shapeId':_0x3cfc48,'shapeType':_0x2aa345[_0x311b77(0x128)],'shapeData':_0xfd6b8f[_0x311b77(0x170)]((_0x28216b=_0x2aa345[_0x311b77(0x18b)])==null?{}:_0x28216b),'name':_0x2aa345[_0x311b77(0x146)],'description':_0x2aa345['description'],'visible':(_0x3cb480=_0x2aa345[_0x311b77(0x136)])==null?!0x0:_0x3cb480,'selectable':(_0x3239de=_0x2aa345[_0x311b77(0x15b)])==null?!0x0:_0x3239de,'transform':_0xe84784}:null;}['updateShape'](_0x13ae18,_0x288f25){const _0x33b2ab=_0x5c01d6;var _0x16ba9d,_0x50b3d5,_0x1c99ef,_0x152c96,_0x4913ff,_0x381014;let _0x143417=this[_0x33b2ab(0x144)](_0x13ae18);if(!_0x143417)return!0x1;let _0x5cb95f={..._0x143417[_0x33b2ab(0x1d8)],..._0x288f25[_0x33b2ab(0x1d8)]};return this[_0x33b2ab(0x18f)][_0x33b2ab(0x1b2)](ne['id'],{'unitId':_0x13ae18[_0x33b2ab(0x1b9)],'subUnitId':_0x13ae18[_0x33b2ab(0x1c0)],'shapeId':_0x13ae18[_0x33b2ab(0x142)],'shapeType':(_0x16ba9d=(_0x50b3d5=_0x288f25[_0x33b2ab(0x128)])==null?(_0x1c99ef=_0x288f25[_0x33b2ab(0x18b)])==null?void 0x0:_0x1c99ef[_0x33b2ab(0x128)]:_0x50b3d5)==null?_0x143417['shapeType']:_0x16ba9d,'shapeData':(_0x152c96=_0x288f25[_0x33b2ab(0x18b)])==null?_0x143417[_0x33b2ab(0x18b)]:_0x152c96,'position':{'x':_0x5cb95f[_0x33b2ab(0x125)],'y':_0x5cb95f[_0x33b2ab(0x1d6)]},'width':_0x5cb95f[_0x33b2ab(0x18d)],'height':_0x5cb95f[_0x33b2ab(0x137)],'rotation':_0x5cb95f[_0x33b2ab(0x167)],'flipX':_0x5cb95f['flipX'],'flipY':_0x5cb95f['flipY'],'name':'name'in _0x288f25?_0x288f25[_0x33b2ab(0x146)]:_0x143417[_0x33b2ab(0x146)],'description':'description'in _0x288f25?_0x288f25['description']:_0x143417[_0x33b2ab(0x191)],'visible':(_0x4913ff=_0x288f25[_0x33b2ab(0x136)])==null?_0x143417[_0x33b2ab(0x136)]:_0x4913ff,'selectable':(_0x381014=_0x288f25[_0x33b2ab(0x15b)])==null?_0x143417[_0x33b2ab(0x15b)]:_0x381014});}['removeShape'](_0x238043){const _0x2a7146=_0x5c01d6;return this[_0x2a7146(0x18f)][_0x2a7146(0x1b2)](_0x4cbcd6['id'],{'unitId':_0x238043[_0x2a7146(0x1b9)],'drawings':[{'unitId':_0x238043[_0x2a7146(0x1b9)],'subUnitId':_0x238043[_0x2a7146(0x1c0)],'drawingId':_0x238043[_0x2a7146(0x142)],'drawingType':_0x3fcfb7[_0x2a7146(0x12d)]}]});}[_0x5c01d6(0x1ba)](_0x290d12){const _0xa2c3a5=_0x5c01d6;return this[_0xa2c3a5(0x14e)](_0x290d12,_0x4abaa6[_0xa2c3a5(0x14a)]);}[_0x5c01d6(0x1c1)](_0xec8af4){const _0x101875=_0x5c01d6;return this[_0x101875(0x14e)](_0xec8af4,_0x4abaa6['forward']);}[_0x5c01d6(0x199)](_0x237bab){const _0x23c817=_0x5c01d6;return this[_0x23c817(0x14e)](_0x237bab,_0x4abaa6[_0x23c817(0x1a9)]);}[_0x5c01d6(0x135)](_0x3c992a){const _0x38f657=_0x5c01d6;return this['_arrange'](_0x3c992a,_0x4abaa6[_0x38f657(0x19d)]);}['_arrange'](_0x4936d6,_0x7b6ea1){const _0x37bad8=_0x5c01d6;return this[_0x37bad8(0x18f)]['syncExecuteCommand'](_0xc2414d['id'],{'unitId':_0x4936d6['unitId'],'subUnitId':_0x4936d6[_0x37bad8(0x1c0)],'drawingIds':[_0x4936d6[_0x37bad8(0x142)]],'arrangeType':_0x7b6ea1});}};function _0x301a(){const _0x76396c=['hostType','_groupIds','flipY','syncExecuteCommand','sheet.command.set-shape-text-vertical-toggle','data','length','call','sheet.mutation.update-shape-data','pushUndoRedo','unitId','bringToFront','50VNPFHA','getEndConnectInfo','getOwnPropertyDescriptor','getShapeType','_config','subUnitId','bringForward','createShape','insertShape','fromJSON','getConnectionSiteList','_drawingService','params','isFrom','INSERT','toPrimitive','clear','_addLineRerouteUpdates','onStarting','94470ssPmkO','redos','drawingType','object','from','sheet.command.set-shape-rotate','stringify','registerPluginResource','top','values','transform','23622okLSew','forEach','243008obVhIH','1111024ItDREk','left','UNIVER_SHEET','3272388WPOhhZ','shapeType','_sheetInterceptorService','packageName','getName','string','DRAWING_SHAPE','defineProperty','listShapes','50dRtswR','242KdmvRv','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getCellWithCoordByIndex','index','sendToBack','visible','height','_drawingManagerService','getShapeDisplayNames','cos','flipX','SHEET_SHAPE_PLUGIN','getDrawingData','getAdjustValueByName','_injector','resizeEnabled','preUndos','shapeId','removeShape','getShape','_resourcesManagerService','name','symbol','getShapeModel','getShapeData','front','_sheetsShapeService','_serializeShapeForUnit','getBatchUpdateOp','_arrange','onCommandExecute','prototype','getBatchAddOp','constructor','cxnIndex','MUTATION','has','setShapeData','undos','hasShape','setConfig','angle','selectable','rotateEnabled','sheet.command.insert-shape','removeLinePoints','2775645mcUfUr','416093yqGZrs','fill','filter','sin','isHorizontal','1.0.0-alpha.5','pluginName','rotation','lineShapeId','COMMAND','sheet.mutation.insert-shape','sheet.command.toggle-shape-flip','result','range','decorate','type','deepClone','_shapeService','getShapeTypeById','_addLineFollowShapeUpdates','preRedos','register','interceptCommand','getSkeleton','_configService','parse','_shapeModelManagerMap','_linesIds','getShapeTextData','getAdjustNames','_ensureShapeModelManager','adjustValues','UPDATE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeDataById','getShapeRelation','_shapes','sheet.command.update-line-shape-resize','keys','getDrawingByParam','disposeWithMe','push','hidden','shapeData','getLineShapeRelation','width','worldRect','_commandService','_initCommands','description','REMOVE','ensureSkeleton','_initCommandInterceptor','delete','toJSON','_initSnapshot','find','sendBackward','sheets-shape.config','_sheetSkeletonService','getStartConnectInfo','back','ang','relation','get','drawingId','startX','getBasicShapeRelation','addShape','_deserializeShapeForUnit','set','sheet.command.update-connector-relation','dispose','backward','borderEnabled','add','map','_getConnectPointInfo','registerCommand'];_0x301a=function(){return _0x76396c;};return _0x301a();}de=J([q(0x0,_0x5c6888),q(0x1,_0x36bfee(Y)),q(0x2,_0xf49d13)],de);const fe={};let pe=class extends _0x1dc17c{constructor(_0x3bc6ad,_0x48392b,_0x570c20,_0x17f2fc,_0x174fb7,_0x4d4c2d,_0x5b42c7){const _0x22ac01=_0x5c01d6;super(),this[_0x22ac01(0x18f)]=_0x3bc6ad,this[_0x22ac01(0x129)]=_0x48392b,this[_0x22ac01(0x19b)]=_0x570c20,this[_0x22ac01(0x14b)]=_0x17f2fc,this[_0x22ac01(0x138)]=_0x174fb7,this['_shapeHostAdapterRegistry']=_0x4d4c2d,this[_0x22ac01(0x190)](),this[_0x22ac01(0x194)](),this[_0x22ac01(0x188)](this['_shapeHostAdapterRegistry'][_0x22ac01(0x175)](_0x5b42c7));}[_0x5c01d6(0x190)](){const _0x4061ac=_0x5c01d6;[Q,ne,re,ie,ae,oe,se,X,Z,ce,$][_0x4061ac(0x1da)](_0x54e541=>this['disposeWithMe'](this[_0x4061ac(0x18f)][_0x4061ac(0x1ae)](_0x54e541)));}[_0x5c01d6(0x194)](){const _0x5a4cae=_0x5c01d6;this[_0x5a4cae(0x188)](this[_0x5a4cae(0x129)][_0x5a4cae(0x176)]({'getMutations':_0x1f7727=>{const _0x1618ce=_0x5a4cae;if(_0x1f7727['id']===_0x4cbcd6['id']){let {drawings:_0x35ed58}=_0x1f7727['params'],_0x20ee97=_0x35ed58['filter'](_0x108534=>_0x108534[_0x1618ce(0x1d0)]===_0x3fcfb7['DRAWING_SHAPE']);if(_0x20ee97[_0x1618ce(0x1b5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x54c6ff=[],_0x44b941=[];return _0x20ee97[_0x1618ce(0x1da)](_0x26811a=>{const _0x47ced4=_0x1618ce;let {unitId:_0x21274b,subUnitId:_0x1bf8f5,drawingId:_0x5cd9b2}=_0x26811a,_0x10f28c=this[_0x47ced4(0x14b)]['getShapeModel'](_0x21274b,_0x1bf8f5,_0x5cd9b2);if(!_0x10f28c)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x10f28c);_0x54c6ff[_0x47ced4(0x189)]({'id':Z['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x5cd9b2}}),_0x44b941[_0x47ced4(0x189)]({'id':X['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x5cd9b2,'shapeType':_0x10f28c[_0x47ced4(0x1be)](),'shapeData':_0x10f28c[_0x47ced4(0x149)]()}});let _0xfb2c58=this[_0x47ced4(0x14b)][_0x47ced4(0x1a3)](_0x21274b,_0x1bf8f5,_0x5cd9b2);if(_0xfb2c58)for(let _0x44d731 of _0xfb2c58){let _0x179967=_0x44d731[_0x47ced4(0x168)],_0x1aa392=_0x44d731[_0x47ced4(0x1c8)],_0x178973=_0x1aa392?{'from':void 0x0}:{'to':void 0x0},_0x3dee37=_0x1aa392?{'from':{'shapeId':_0x44d731[_0x47ced4(0x142)],'cxnIndex':_0x44d731[_0x47ced4(0x153)]}}:{'to':{'shapeId':_0x44d731[_0x47ced4(0x142)],'cxnIndex':_0x44d731[_0x47ced4(0x153)]}};_0x54c6ff['push']({'id':$['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x179967,'shapeData':{'relation':_0x178973}}}),_0x44b941['push']({'id':$['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x179967,'shapeData':{'relation':_0x3dee37}}});}}),{'preRedos':_0x54c6ff,'redos':[],'preUndos':[],'undos':_0x44b941};}if(_0x1f7727['id']===_0xbe173f['id']){let {drawings:_0x1b4da1}=_0x1f7727[_0x1618ce(0x1c7)],_0x251eb1=_0x1b4da1[_0x1618ce(0x162)](_0x1d9fd5=>_0x1d9fd5[_0x1618ce(0x1d0)]===_0x3fcfb7[_0x1618ce(0x12d)]);if(_0x251eb1['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x20797b=[],_0x2071ba=[];for(let _0x55a20d of _0x251eb1){let {unitId:_0x43da7a,subUnitId:_0xb7fa1d,drawingId:_0x5dbc59,transform:_0x2d45dc}=_0x55a20d;if(!_0x43da7a||!_0xb7fa1d||!_0x5dbc59||!_0x2d45dc)continue;let _0x487490=this['_sheetsShapeService'][_0x1618ce(0x148)](_0x43da7a,_0xb7fa1d,_0x5dbc59);if(!_0x487490)throw TypeError(_0x1618ce(0x132)+_0x487490);if(_0x517c66(_0x487490[_0x1618ce(0x1be)]())){let _0x159d28=this[_0x1618ce(0x14b)][_0x1618ce(0x18c)](_0x43da7a,_0xb7fa1d,_0x5dbc59);_0x159d28&&(_0x20797b[_0x1618ce(0x189)]({'id':$['id'],'params':{'unitId':_0x43da7a,'subUnitId':_0xb7fa1d,'shapeId':_0x5dbc59,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2071ba['push']({'id':$['id'],'params':{'unitId':_0x43da7a,'subUnitId':_0xb7fa1d,'shapeId':_0x5dbc59,'shapeData':{'relation':_0x159d28}}}));}else{let _0x25464f=this[_0x1618ce(0x14b)][_0x1618ce(0x1a3)](_0x43da7a,_0xb7fa1d,_0x5dbc59);if(_0x25464f&&_0x25464f[_0x1618ce(0x1b5)]>0x0)for(let _0x5363b5 of _0x25464f){let _0x7762ae=_0x5363b5[_0x1618ce(0x168)],_0x4181cf=_0x5363b5[_0x1618ce(0x1c8)],_0xda93c4=this[_0x1618ce(0x14b)][_0x1618ce(0x148)](_0x43da7a,_0xb7fa1d,_0x7762ae);if(!_0xda93c4)continue;let _0x48974f=_0xda93c4[_0x1618ce(0x19c)](),_0x20bfdd=_0xda93c4[_0x1618ce(0x1bc)]();_0x48974f&&_0x20bfdd?this[_0x1618ce(0x1cc)](_0x43da7a,_0xb7fa1d,_0x7762ae,_0xda93c4,_0x48974f,_0x20bfdd,_0x20797b,_0x2071ba,_0x5dbc59,_0x2d45dc):this[_0x1618ce(0x173)](_0x43da7a,_0xb7fa1d,_0x7762ae,_0xda93c4,_0x4181cf?_0x48974f:_0x20bfdd,_0x4181cf,_0x20797b,_0x2071ba,_0x5dbc59,_0x2d45dc);}}}return{'preRedos':[],'redos':_0x20797b,'preUndos':_0x2071ba,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x5c01d6(0x1ad)](_0xbb1c36,_0x3814aa,_0x1610c0,_0x4932cf,_0x223f7a){const _0x3c031e=_0x5c01d6;if(!_0x3814aa||!_0x1610c0)return null;let {shapeId:_0xf400db,cxnIndex:_0x333ea3}=_0xbb1c36,_0x5d796b=this[_0x3c031e(0x14b)][_0x3c031e(0x148)](_0x3814aa,_0x1610c0,_0xf400db);if(!_0x5d796b)return null;let _0x33f47c=this[_0x3c031e(0x138)][_0x3c031e(0x187)]({'unitId':_0x3814aa,'subUnitId':_0x1610c0,'drawingId':_0xf400db});if(!(_0x33f47c!=null&&_0x33f47c[_0x3c031e(0x1d8)]))return null;let {left:_0x1f32ea=0x0,top:_0x1e2c14=0x0,width:_0x489cc8=0x0,height:_0x56a93c=0x0,flipX:_0x2622bf=!0x1,flipY:_0x289344=!0x1,angle:_0x521b75}=_0x33f47c[_0x3c031e(0x1d8)];if(_0x223f7a&&_0x4932cf===_0xf400db){var _0x77beb5,_0x28f0a7,_0x59451b,_0x3499e6,_0x2cfe77,_0xeb6281,_0x359309;_0x1f32ea=(_0x77beb5=_0x223f7a[_0x3c031e(0x125)])==null?_0x1f32ea:_0x77beb5,_0x1e2c14=(_0x28f0a7=_0x223f7a[_0x3c031e(0x1d6)])==null?_0x1e2c14:_0x28f0a7,_0x489cc8=(_0x59451b=_0x223f7a[_0x3c031e(0x18d)])==null?_0x489cc8:_0x59451b,_0x56a93c=(_0x3499e6=_0x223f7a[_0x3c031e(0x137)])==null?_0x56a93c:_0x3499e6,_0x2622bf=(_0x2cfe77=_0x223f7a[_0x3c031e(0x13b)])==null?_0x2622bf:_0x2cfe77,_0x289344=(_0xeb6281=_0x223f7a[_0x3c031e(0x1b1)])==null?_0x289344:_0xeb6281,_0x521b75=(_0x359309=_0x223f7a['angle'])==null?_0x521b75:_0x359309;}_0x5d796b['updateContext']({'width':_0x489cc8,'height':_0x56a93c});let _0x544594=_0x5d796b[_0x3c031e(0x1c5)]()[_0x3c031e(0x198)](_0x1c1075=>_0x1c1075[_0x3c031e(0x134)]===_0x333ea3);if(!_0x544594)return null;let _0x5a4a54=_0x2622bf?_0x489cc8-_0x544594['x']:_0x544594['x'],_0x330509=_0x289344?_0x56a93c-_0x544594['y']:_0x544594['y'];if(_0x521b75!==0x0&&_0x521b75!=null){let _0x50c80c=_0x521b75*Math['PI']/0xb4,_0x1f4436=Math[_0x3c031e(0x13a)](_0x50c80c),_0x3c5644=Math[_0x3c031e(0x163)](_0x50c80c),_0x56d19d=_0x489cc8/0x2,_0x575126=_0x56a93c/0x2,_0x1d053f=_0x5a4a54-_0x56d19d,_0x22763f=_0x330509-_0x575126;_0x5a4a54=_0x56d19d+_0x1d053f*_0x1f4436-_0x22763f*_0x3c5644,_0x330509=_0x575126+_0x1d053f*_0x3c5644+_0x22763f*_0x1f4436;}_0x5a4a54+=_0x1f32ea,_0x330509+=_0x1e2c14;let _0x4da509=_0x544594[_0x3c031e(0x19e)]/0xea60;_0x2622bf&&(_0x4da509=0xb4-_0x4da509),_0x289344&&(_0x4da509=-_0x4da509),_0x4da509+=_0x521b75||0x0,_0x4da509=(_0x4da509%0x168+0x168)%0x168;let _0x1d29f5=_0x272c36({'left':_0x1f32ea,'top':_0x1e2c14,'width':_0x489cc8,'height':_0x56a93c},_0x521b75||0x0);return{'point':{'x':_0x5a4a54,'y':_0x330509},'angle':_0x4da509,'bounds':_0x1d29f5};}[_0x5c01d6(0x1cc)](_0xf5de38,_0x384901,_0x4b187f,_0x2a4684,_0x32f2f9,_0x5b6807,_0x30e884,_0x96422f,_0x1818cc,_0x5d2c65){const _0x37d804=_0x5c01d6;let _0x3cd87c=this[_0x37d804(0x19b)]['getSkeleton'](_0xf5de38,_0x384901);if(!_0x3cd87c)return;let _0x1fd80e=_0x2a4684[_0x37d804(0x183)](),_0x166440=_0x2a4684[_0x37d804(0x17d)](),_0x41edb7={},_0x221ce5={};_0x166440['forEach'](_0x4f4795=>{const _0x55a7ab=_0x37d804;let _0x245e41=_0x2a4684[_0x55a7ab(0x13e)](_0x4f4795);_0x221ce5[_0x4f4795]=_0x245e41==null?0x0:_0x245e41;});let _0x23a1fe=this[_0x37d804(0x1ad)](_0x32f2f9,_0xf5de38,_0x384901,_0x1818cc,_0x5d2c65),_0x321808=this[_0x37d804(0x1ad)](_0x5b6807,_0xf5de38,_0x384901,_0x1818cc,_0x5d2c65);if(_0x23a1fe&&_0x321808){let _0x48091a=_0x2a4684['getShapeType'](),_0x46bb2f=_0x4cca6c(_0x23a1fe,_0x321808,_0x48091a),_0x4fd590=_0x48091a;if(_0x46bb2f){let _0x442a7e=_0x2fc0b6(_0x46bb2f,_0x2a4684[_0x37d804(0x1be)]()),_0x1292df=this[_0x37d804(0x138)][_0x37d804(0x13d)](_0xf5de38,_0x384901);if(_0x1292df&&_0x1292df[_0x4b187f]){let _0x5d6f48=_0x1292df[_0x4b187f];_0x4fd590=_0x442a7e['lineType'];for(let [_0x227ffd,_0x5e9043]of Object['entries'](_0x442a7e[_0x37d804(0x17f)]))_0x41edb7[_0x227ffd]=_0x5e9043;let _0x49cd6a={..._0x5d6f48[_0x37d804(0x1d8)],'width':_0x442a7e['worldRect'][_0x37d804(0x18d)],'height':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x137)],'left':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x125)],'top':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x1d6)],'flipX':_0x442a7e[_0x37d804(0x18e)]['flipX'],'flipY':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x1b1)],'angle':_0x442a7e[_0x37d804(0x167)]},_0x248778=_0x526ffb(_0x49cd6a,_0x3cd87c),_0x14ed51=_0x5d5502(_0x49cd6a,_0x3cd87c),_0x1cdd68={'unitId':_0xf5de38,'subUnitId':_0x384901,'drawingType':_0x3fcfb7['DRAWING_SHAPE'],'drawingId':_0x4b187f,'transform':_0x49cd6a,'sheetTransform':_0x248778,'axisAlignSheetTransform':_0x14ed51},{unitId:_0x135f1d,subUnitId:_0x121da7,undo:_0x4d5ba7,redo:_0x482fbc,objects:_0x576706}=this[_0x37d804(0x138)]['getBatchUpdateOp']([_0x1cdd68]);_0x30e884[_0x37d804(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x135f1d,'subUnitId':_0x121da7,'op':_0x482fbc,'objects':_0x576706,'type':_0x484cad[_0x37d804(0x180)]}}),_0x96422f[_0x37d804(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x135f1d,'subUnitId':_0x121da7,'op':_0x4d5ba7,'objects':_0x576706,'type':_0x484cad[_0x37d804(0x180)]}});}_0x2a4684[_0x37d804(0x15e)]();}_0x30e884['push']({'id':$['id'],'params':{'unitId':_0xf5de38,'subUnitId':_0x384901,'shapeId':_0x4b187f,'shapeType':_0x4fd590,'shapeData':{'adjustValues':_0x41edb7,'relation':_0x1fd80e}}}),_0x96422f[_0x37d804(0x189)]({'id':$['id'],'params':{'unitId':_0xf5de38,'subUnitId':_0x384901,'shapeId':_0x4b187f,'shapeType':_0x48091a,'shapeData':{'adjustValues':_0x221ce5,'relation':_0x1fd80e}}});}}[_0x5c01d6(0x173)](_0x207926,_0x18fad4,_0x480bd5,_0x24c6b5,_0x2836c6,_0xf18b1b,_0x275dfd,_0x2766bb,_0x149ecd,_0x32d614){const _0x1cc19c=_0x5c01d6;var _0x18200b;if(!_0x2836c6)return;let _0x3e3f0c=this[_0x1cc19c(0x19b)][_0x1cc19c(0x177)](_0x207926,_0x18fad4);if(!_0x3e3f0c)return;let _0x290462=(_0x18200b=this[_0x1cc19c(0x138)]['getDrawingByParam']({'unitId':_0x207926,'subUnitId':_0x18fad4,'drawingId':_0x149ecd}))==null?void 0x0:_0x18200b[_0x1cc19c(0x1d8)];if(!_0x290462)return;let _0x1dddb7=_0x290462[_0x1cc19c(0x125)]!==_0x32d614[_0x1cc19c(0x125)]||_0x290462[_0x1cc19c(0x1d6)]!==_0x32d614[_0x1cc19c(0x1d6)],_0x6d4f02=_0x290462[_0x1cc19c(0x18d)]!==_0x32d614[_0x1cc19c(0x18d)]||_0x290462[_0x1cc19c(0x137)]!==_0x32d614[_0x1cc19c(0x137)],_0x3b3c79=_0x290462[_0x1cc19c(0x13b)]!==_0x32d614[_0x1cc19c(0x13b)]||_0x290462[_0x1cc19c(0x1b1)]!==_0x32d614[_0x1cc19c(0x1b1)],_0xe18155=_0x290462['angle']!==_0x32d614['angle'];if(_0x1dddb7&&!_0x6d4f02&&!_0x3b3c79&&!_0xe18155){var _0x28b93c,_0x50a0a6,_0x3cacfa,_0x4e6aed;let _0xc6a0e9=((_0x28b93c=_0x32d614[_0x1cc19c(0x125)])==null?0x0:_0x28b93c)-((_0x50a0a6=_0x290462[_0x1cc19c(0x125)])==null?0x0:_0x50a0a6),_0x56a61a=((_0x3cacfa=_0x32d614[_0x1cc19c(0x1d6)])==null?0x0:_0x3cacfa)-((_0x4e6aed=_0x290462[_0x1cc19c(0x1d6)])==null?0x0:_0x4e6aed),_0x1e08fc=this[_0x1cc19c(0x138)][_0x1cc19c(0x13d)](_0x207926,_0x18fad4);if(_0x1e08fc&&_0x1e08fc[_0x480bd5]){var _0x16e810,_0x49db0e,_0x1a0900,_0x106f8b;let _0x587849=_0x1e08fc[_0x480bd5],_0x10ff9d={..._0x587849['transform'],'left':((_0x16e810=(_0x49db0e=_0x587849[_0x1cc19c(0x1d8)])==null?void 0x0:_0x49db0e[_0x1cc19c(0x125)])==null?0x0:_0x16e810)+_0xc6a0e9,'top':((_0x1a0900=(_0x106f8b=_0x587849[_0x1cc19c(0x1d8)])==null?void 0x0:_0x106f8b[_0x1cc19c(0x1d6)])==null?0x0:_0x1a0900)+_0x56a61a},_0x1b01bf=_0x526ffb(_0x10ff9d,_0x3e3f0c),_0x1f5ee5=_0x5d5502(_0x10ff9d,_0x3e3f0c),_0x4804b0={'unitId':_0x207926,'subUnitId':_0x18fad4,'drawingType':_0x3fcfb7[_0x1cc19c(0x12d)],'drawingId':_0x480bd5,'transform':_0x10ff9d,'sheetTransform':_0x1b01bf,'axisAlignSheetTransform':_0x1f5ee5},{unitId:_0x4127aa,subUnitId:_0x136bf9,undo:_0x2495a6,redo:_0x1fa3f9,objects:_0x159e11}=this[_0x1cc19c(0x138)][_0x1cc19c(0x14d)]([_0x4804b0]);_0x275dfd[_0x1cc19c(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x4127aa,'subUnitId':_0x136bf9,'op':_0x1fa3f9,'objects':_0x159e11,'type':_0x484cad['UPDATE']}}),_0x2766bb[_0x1cc19c(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x4127aa,'subUnitId':_0x136bf9,'op':_0x2495a6,'objects':_0x159e11,'type':_0x484cad[_0x1cc19c(0x180)]}});}}else{let _0x488e94=_0x24c6b5['getStartConnectInfo'](),_0x473677=_0x24c6b5[_0x1cc19c(0x1bc)]();this[_0x1cc19c(0x1cc)](_0x207926,_0x18fad4,_0x480bd5,_0x24c6b5,_0x488e94,_0x473677,_0x275dfd,_0x2766bb,_0x149ecd,_0x32d614);}}};pe=J([q(0x0,_0x5c6888),q(0x1,_0x36bfee(_0x133228)),q(0x2,_0x36bfee(_0x3c7b6a)),q(0x3,_0x36bfee(Y)),q(0x4,_0x36bfee(_0x42c33a)),q(0x5,_0x36bfee(_0x10d679)),q(0x6,_0x36bfee(de))],pe);let me=class extends _0x9b668a{constructor(_0x327a3e=fe,_0x327364,_0x4d6459){const _0x46c33a=_0x5c01d6;super(),this[_0x46c33a(0x1bf)]=_0x327a3e,this[_0x46c33a(0x13f)]=_0x327364,this['_configService']=_0x4d6459;let {..._0x299861}=_0x12549a({},fe,this[_0x46c33a(0x1bf)]);this[_0x46c33a(0x178)][_0x46c33a(0x159)](_0x46c33a(0x19a),_0x299861);}[_0x5c01d6(0x1cd)](){const _0x2816a7=_0x5c01d6;let _0x96343d=this[_0x2816a7(0x13f)];[[K],[Y],[de],[pe]][_0x2816a7(0x1da)](_0x4e8da5=>_0x96343d[_0x2816a7(0x1ab)](_0x4e8da5)),_0x1f2a99(_0x96343d,[[Y],[pe]]);}};G(me,_0x5c01d6(0x16f),_0xf7260a[_0x5c01d6(0x126)]),G(me,_0x5c01d6(0x166),_0x5c01d6(0x13c)),G(me,_0x5c01d6(0x12a),le),G(me,'version',ue),me=J([_0x59fb5e(_0xaf9fa9,_0x53390e),q(0x1,_0x36bfee(_0x2fd07f)),q(0x2,_0x344a70)],me);export{V as DEFAULT_SHAPE_HEIGHT,B as DEFAULT_SHAPE_WIDTH,Q as InsertShapeCommand,X as InsertSheetsShapeMutation,Z as RemoveSheetsShapeMutation,ne as SetShapeDrawingDataCommand,ie as SetSheetsShapeRotateCommand,ae as SetSheetsShapeTextVerticalToggleCommand,Y as SheetsShapeService,re as ToggleSheetsShapeFlipCommand,me as UniverSheetsShapePlugin,oe as UpdateConnectorRelationCommand,se as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ce as UpdateSheetsShapeTypeMutation};
@@ -0,0 +1,21 @@
1
+ import type { IShapeCreateInput, IShapeHostAdapter, IShapeRef, IShapeScope, IShapeSnapshot, IShapeUpdateInput } from '@univerjs-pro/engine-shape';
2
+ import { ICommandService, UniverInstanceType } from '@univerjs/core';
3
+ import { ISheetDrawingService } from '@univerjs/sheets-drawing';
4
+ import { SheetsShapeService } from '../services/sheet-shape-services';
5
+ export declare class SheetShapeHostAdapter implements IShapeHostAdapter {
6
+ private readonly _commandService;
7
+ private readonly _shapeService;
8
+ private readonly _drawingService;
9
+ readonly hostType = UniverInstanceType.UNIVER_SHEET;
10
+ constructor(_commandService: ICommandService, _shapeService: SheetsShapeService, _drawingService: ISheetDrawingService);
11
+ getShape(ref: IShapeRef): IShapeSnapshot | null;
12
+ listShapes(scope: IShapeScope): IShapeSnapshot[];
13
+ createShape(scope: IShapeScope, input: IShapeCreateInput): IShapeSnapshot | null;
14
+ updateShape(ref: IShapeRef, input: IShapeUpdateInput): boolean;
15
+ removeShape(ref: IShapeRef): boolean;
16
+ bringToFront(ref: IShapeRef): boolean;
17
+ bringForward(ref: IShapeRef): boolean;
18
+ sendBackward(ref: IShapeRef): boolean;
19
+ sendToBack(ref: IShapeRef): boolean;
20
+ private _arrange;
21
+ }
@@ -11,7 +11,14 @@ export interface IInsertSheetsShapeCommandParams extends ISheetCommandSharedPara
11
11
  };
12
12
  shapeId?: string;
13
13
  shapeData?: IShapeData;
14
+ name?: string;
15
+ description?: string;
14
16
  width?: number;
15
17
  height?: number;
18
+ rotation?: number;
19
+ flipX?: boolean;
20
+ flipY?: boolean;
21
+ visible?: boolean;
22
+ selectable?: boolean;
16
23
  }
17
24
  export declare const InsertShapeCommand: ICommand;
@@ -5,11 +5,18 @@ export interface ISetShapeDrawingDataCommandParams extends ISheetCommandSharedPa
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
7
7
  shapeData?: IShapeData;
8
+ name?: string;
9
+ description?: string;
8
10
  position: {
9
11
  x: number;
10
12
  y: number;
11
13
  };
12
14
  width: number;
13
15
  height: number;
16
+ rotation?: number;
17
+ flipX?: boolean;
18
+ flipY?: boolean;
19
+ visible: boolean;
20
+ selectable: boolean;
14
21
  }
15
22
  export declare const SetShapeDrawingDataCommand: ICommand;
@@ -1,6 +1,8 @@
1
+ import { IShapeHostAdapterRegistry } from '@univerjs-pro/engine-shape';
1
2
  import { Disposable, ICommandService } from '@univerjs/core';
2
3
  import { IDrawingManagerService } from '@univerjs/drawing';
3
4
  import { SheetInterceptorService, SheetSkeletonService } from '@univerjs/sheets';
5
+ import { SheetShapeHostAdapter } from '../adapters/sheet-shape-host.adapter';
4
6
  import { SheetsShapeService } from '../services/sheet-shape-services';
5
7
  export declare class SheetsShapeController extends Disposable {
6
8
  private readonly _commandService;
@@ -8,7 +10,8 @@ export declare class SheetsShapeController extends Disposable {
8
10
  private readonly _sheetSkeletonService;
9
11
  private readonly _sheetsShapeService;
10
12
  private readonly _drawingManagerService;
11
- constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _sheetSkeletonService: SheetSkeletonService, _sheetsShapeService: SheetsShapeService, _drawingManagerService: IDrawingManagerService);
13
+ private readonly _shapeHostAdapterRegistry;
14
+ constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _sheetSkeletonService: SheetSkeletonService, _sheetsShapeService: SheetsShapeService, _drawingManagerService: IDrawingManagerService, _shapeHostAdapterRegistry: IShapeHostAdapterRegistry, shapeHostAdapter: SheetShapeHostAdapter);
12
15
  private _initCommands;
13
16
  private _initCommandInterceptor;
14
17
  /**