@univerjs-pro/sheets-shape 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4e1758=_0x289a;(function(_0x3909b7,_0x366cc3){const _0x2e7baf=_0x289a,_0x4f4835=_0x3909b7();while(!![]){try{const _0x4a6d64=parseInt(_0x2e7baf(0x214))/0x1+-parseInt(_0x2e7baf(0x1f6))/0x2+parseInt(_0x2e7baf(0x1b6))/0x3*(-parseInt(_0x2e7baf(0x1a8))/0x4)+parseInt(_0x2e7baf(0x255))/0x5+parseInt(_0x2e7baf(0x1dc))/0x6*(parseInt(_0x2e7baf(0x273))/0x7)+-parseInt(_0x2e7baf(0x1bb))/0x8+parseInt(_0x2e7baf(0x267))/0x9*(parseInt(_0x2e7baf(0x259))/0xa);if(_0x4a6d64===_0x366cc3)break;else _0x4f4835['push'](_0x4f4835['shift']());}catch(_0x3f2bde){_0x4f4835['push'](_0x4f4835['shift']());}}}(_0xf86d,0x20cb8));import{IShapeHostAdapterRegistry as _0x281679,ShapeModel as _0x2d7c22,UniverShapePlugin as _0x223efa,buildConnectorEndpointUpdate as _0x150f21,canApplyShapeFormulaLastValue as _0x151daa,computeConnectorRouteLayout as _0x33778f,createDefaultInsertedShapeData as _0x1a88d3,createFreeConnectorPointInfo as _0x480a1d,createUniqueShapeName as _0x34737b,getBasicShapeRotateBound as _0x454a23,isConnectorShape as _0x178a1e,resolveConnectorRoutePoints as _0x404ba0,resolveShapeConnectionPoint as _0x37f0e6,routeConnectorLineShape as _0x4bf912}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x29f512,CommandType as _0x5ca941,DependentOn as _0x39978e,Disposable as _0x50ff4f,DrawingTypeEnum as _0x579c28,ICommandService as _0x446a3b,IConfigService as _0x29256c,IResourceManagerService as _0x2a1ffc,IUndoRedoService as _0x1e06fd,IUniverInstanceService as _0xa1550,Inject as _0x201a83,Injector as _0x3dddb4,Plugin as _0x2abf53,Tools as _0x32fcde,UniverInstanceType as _0x1e8d7b,generateRandomId as _0x7b910c,merge as _0x8713b3,sequenceExecute as _0x3c4f99,touchDependencies as _0x51e20f}from'@univerjs/core';import{SheetInterceptorService as _0x1c2c98,SheetSkeletonService as _0xb3d7e9,UniverSheetsPlugin as _0x237476,getSheetCommandTarget as _0xe34dd0}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x1b00b3,DrawingApplyType as _0x13e9cb,ISheetDrawingService as _0x16cbc8,InsertSheetDrawingCommand as _0x11f257,RemoveSheetDrawingCommand as _0x442350,SetDrawingApplyMutation as _0x553d2b,SetDrawingArrangeCommand as _0x13f510,SetSheetDrawingCommand as _0x47cba2,SheetDrawingAnchorType as _0x6b2bef,SheetDrawingTransformPlanService as _0x103301,UniverSheetsDrawingPlugin as _0x2b4b06,transformToAxisAlignPosition as _0x53a78f,transformToDrawingPosition as _0x55e9d6}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x460a76}from'@univerjs-pro/license';import{IDrawingManagerService as _0x392aaf,UniverDrawingPlugin as _0x14ff54}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0xe524c1){'@babel/helpers - typeof';return ae=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x3f9686){return typeof _0x3f9686;}:function(_0x31ee28){const _0xab8cd6=_0x289a;return _0x31ee28&&typeof Symbol==_0xab8cd6(0x1cf)&&_0x31ee28[_0xab8cd6(0x21b)]===Symbol&&_0x31ee28!==Symbol[_0xab8cd6(0x1df)]?_0xab8cd6(0x270):typeof _0x31ee28;},ae(_0xe524c1);}function oe(_0x49af9b,_0xdcd465){const _0x133c5d=_0x289a;if(ae(_0x49af9b)!='object'||!_0x49af9b)return _0x49af9b;var _0x4d7d11=_0x49af9b[Symbol['toPrimitive']];if(_0x4d7d11!==void 0x0){var _0x4916de=_0x4d7d11[_0x133c5d(0x20d)](_0x49af9b,_0xdcd465||_0x133c5d(0x26f));if(ae(_0x4916de)!=_0x133c5d(0x207))return _0x4916de;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xdcd465===_0x133c5d(0x266)?String:Number)(_0x49af9b);}function se(_0x124e53){const _0x25362b=_0x289a;var _0x494a5f=oe(_0x124e53,'string');return ae(_0x494a5f)==_0x25362b(0x270)?_0x494a5f:_0x494a5f+'';}function X(_0x43d8ed,_0x3ee3ab,_0x5843ec){const _0x823327=_0x289a;return(_0x3ee3ab=se(_0x3ee3ab))in _0x43d8ed?Object[_0x823327(0x22c)](_0x43d8ed,_0x3ee3ab,{'value':_0x5843ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43d8ed[_0x3ee3ab]=_0x5843ec,_0x43d8ed;}var ce=class extends _0x50ff4f{constructor(){const _0x226ed7=_0x289a;super(),X(this,'_shapes',new Map()),X(this,'_linesIds',new Set()),X(this,_0x226ed7(0x1aa),new Set());}['addShape'](_0x17f197,_0x376195,_0x2a4a1d,_0x46485a){const _0x4bcdf5=_0x289a;let _0x2d17bd=new _0x2d7c22(_0x17f197,_0x376195,_0x2a4a1d,_0x46485a);return this['_shapes']['set'](_0x376195,_0x2d17bd),_0x178a1e(_0x17f197)&&this[_0x4bcdf5(0x203)]['add'](_0x376195),_0x2d17bd;}[_0x4e1758(0x1d9)](_0x4a12ea){const _0x413d02=_0x4e1758;let _0xbe248a=[];for(let _0x102968 of this['_linesIds']){let _0x114681=this[_0x413d02(0x1ca)][_0x413d02(0x225)](_0x102968);if(_0x114681){let _0x18806b=_0x114681[_0x413d02(0x240)]();if(_0x18806b){var _0x32e9d0,_0x510e00;((_0x32e9d0=_0x18806b[_0x413d02(0x22e)])==null?void 0x0:_0x32e9d0[_0x413d02(0x1e2)])===_0x4a12ea&&_0xbe248a['push']({..._0x18806b[_0x413d02(0x22e)],'lineShapeId':_0x102968,'isFrom':!0x0}),((_0x510e00=_0x18806b['to'])==null?void 0x0:_0x510e00[_0x413d02(0x1e2)])===_0x4a12ea&&_0xbe248a[_0x413d02(0x20c)]({..._0x18806b['to'],'lineShapeId':_0x102968,'isFrom':!0x1});}}}return _0xbe248a;}[_0x4e1758(0x222)](_0x132949){const _0x502092=_0x4e1758;let _0x5b74c8=this[_0x502092(0x1ca)][_0x502092(0x225)](_0x132949);if(_0x5b74c8)return _0x5b74c8[_0x502092(0x240)]();}['getShapeType'](_0x27030d){const _0x5d0018=_0x4e1758;let _0x4b34e3=this[_0x5d0018(0x1ca)][_0x5d0018(0x225)](_0x27030d);if(_0x4b34e3)return _0x4b34e3[_0x5d0018(0x239)]();}[_0x4e1758(0x248)](_0x4d56e3){const _0x3e71db=_0x4e1758;return this[_0x3e71db(0x1ca)][_0x3e71db(0x1f5)](_0x4d56e3);}['getShapeDisplayNames'](){const _0x7845c1=_0x4e1758;return Array[_0x7845c1(0x22e)](this[_0x7845c1(0x1ca)][_0x7845c1(0x1fe)]())['map'](_0x183a01=>_0x183a01[_0x7845c1(0x23b)]()||_0x183a01[_0x7845c1(0x254)]());}['removeShape'](_0x12847d){const _0x2e38a3=_0x4e1758;let _0x3b14fa=this[_0x2e38a3(0x1ca)]['get'](_0x12847d);_0x3b14fa&&(_0x178a1e(_0x3b14fa[_0x2e38a3(0x239)]())&&this[_0x2e38a3(0x203)][_0x2e38a3(0x25d)](_0x12847d),this['_shapes']['delete'](_0x12847d));}['toJSON'](){const _0xcd022e=_0x4e1758;let _0x359425=[];return this[_0xcd022e(0x1ca)][_0xcd022e(0x215)](_0x39d71c=>{const _0x1717fe=_0xcd022e;_0x359425[_0x1717fe(0x20c)](_0x39d71c[_0x1717fe(0x1ef)]());}),_0x359425;}[_0x4e1758(0x1c5)](_0x31a3d2){const _0x248675=_0x4e1758;for(let _0x355464 of _0x31a3d2){let {id:_0x1e1ef8,shapeType:_0x43d1d6,name:_0xaefbff}=_0x355464,_0x35112a=this[_0x248675(0x23e)](_0x43d1d6,_0x1e1ef8,_0x355464[_0x248675(0x23f)],_0xaefbff);_0x35112a&&_0x35112a[_0x248675(0x26b)]()&&this[_0x248675(0x203)][_0x248675(0x243)](_0x1e1ef8);}}[_0x4e1758(0x242)](){const _0x4c8c5c=_0x4e1758;this[_0x4c8c5c(0x265)]||(this['_shapes'][_0x4c8c5c(0x215)](_0x254836=>{_0x254836['dispose']();}),this[_0x4c8c5c(0x1ca)]['clear'](),this['_linesIds']['clear'](),this[_0x4c8c5c(0x1aa)][_0x4c8c5c(0x271)](),super[_0x4c8c5c(0x242)]());}};function Z(_0x9e16cc,_0x38af67){return function(_0x26fd2e,_0x24d04e){_0x38af67(_0x26fd2e,_0x24d04e,_0x9e16cc);};}function le(_0x1eb6d0,_0x1fb5af,_0xf4920e,_0xac286f){const _0x3a055f=_0x4e1758;var _0x3bbedc=arguments[_0x3a055f(0x204)],_0x26bf81=_0x3bbedc<0x3?_0x1fb5af:_0xac286f===null?_0xac286f=Object[_0x3a055f(0x24e)](_0x1fb5af,_0xf4920e):_0xac286f,_0x5761f2;if(typeof Reflect=='object'&&typeof Reflect[_0x3a055f(0x26e)]==_0x3a055f(0x1cf))_0x26bf81=Reflect['decorate'](_0x1eb6d0,_0x1fb5af,_0xf4920e,_0xac286f);else{for(var _0x150e4d=_0x1eb6d0[_0x3a055f(0x204)]-0x1;_0x150e4d>=0x0;_0x150e4d--)(_0x5761f2=_0x1eb6d0[_0x150e4d])&&(_0x26bf81=(_0x3bbedc<0x3?_0x5761f2(_0x26bf81):_0x3bbedc>0x3?_0x5761f2(_0x1fb5af,_0xf4920e,_0x26bf81):_0x5761f2(_0x1fb5af,_0xf4920e))||_0x26bf81);}return _0x3bbedc>0x3&&_0x26bf81&&Object['defineProperty'](_0x1fb5af,_0xf4920e,_0x26bf81),_0x26bf81;}let Q=class extends _0x50ff4f{constructor(_0x164e90){const _0x5dd27e=_0x4e1758;super(),this[_0x5dd27e(0x1a5)]=_0x164e90,X(this,'_shapeModelManagerMap',new Map()),this[_0x5dd27e(0x1b2)]();}[_0x4e1758(0x238)](_0xbe129d,_0x50731b){const _0x492e96=_0x4e1758;let _0x457942=this[_0x492e96(0x20e)]['get'](_0xbe129d);_0x457942||(_0x457942=new Map(),this[_0x492e96(0x20e)]['set'](_0xbe129d,_0x457942));let _0x2224cf=_0x457942[_0x492e96(0x225)](_0x50731b);return _0x2224cf||(_0x2224cf=new ce(),_0x457942[_0x492e96(0x1c0)](_0x50731b,_0x2224cf)),_0x2224cf;}[_0x4e1758(0x241)](_0x389c31,_0x16e307,_0x56e436,_0x2f3393,_0xca8a13,_0x54d910){this['_ensureShapeModelManager'](_0x389c31,_0x16e307)['addShape'](_0x56e436,_0x2f3393,_0xca8a13,_0x54d910);}['removeShape'](_0x3bc56a,_0x163396,_0xeb3e96){const _0x2a0921=_0x4e1758;this[_0x2a0921(0x238)](_0x3bc56a,_0x163396)[_0x2a0921(0x263)](_0xeb3e96);}['getBasicShapeType'](_0x5766b4,_0x15db44,_0x5e35fe){const _0x434456=_0x4e1758;return this[_0x434456(0x238)](_0x5766b4,_0x15db44)[_0x434456(0x239)](_0x5e35fe);}['getShapeType'](_0x20d6ec,_0x36153c,_0x2391f1){const _0x57f6b1=_0x4e1758;return this['_ensureShapeModelManager'](_0x20d6ec,_0x36153c)[_0x57f6b1(0x239)](_0x2391f1);}[_0x4e1758(0x248)](_0x35266b,_0x1f6c7f,_0x315bd1){const _0x588023=_0x4e1758;return this[_0x588023(0x238)](_0x35266b,_0x1f6c7f)['hasShape'](_0x315bd1);}['getShapeTypeById'](_0x33ccc6,_0x6bf3d6,_0x4e5503){const _0x55f271=_0x4e1758;return this[_0x55f271(0x238)](_0x33ccc6,_0x6bf3d6)[_0x55f271(0x239)](_0x4e5503);}[_0x4e1758(0x26d)](_0x237e9a,_0x26ea52,_0x3665ab){const _0x5584cf=_0x4e1758;let _0x3c1910=this[_0x5584cf(0x238)](_0x237e9a,_0x26ea52);if(!_0x3c1910['getShapeType'](_0x3665ab))return;let _0x36413f=_0x3c1910['_shapes'][_0x5584cf(0x225)](_0x3665ab);if(_0x36413f)return _0x36413f[_0x5584cf(0x25f)]();}[_0x4e1758(0x224)](_0x1baace,_0x572ed2){const _0x1bf809=_0x4e1758;return this[_0x1bf809(0x238)](_0x1baace,_0x572ed2)[_0x1bf809(0x224)]();}[_0x4e1758(0x1f9)](_0x24f730,_0x56f36c,_0x1cb7dd){const _0x3e66c2=_0x4e1758;return this[_0x3e66c2(0x238)](_0x24f730,_0x56f36c)['_shapes'][_0x3e66c2(0x225)](_0x1cb7dd);}['getBasicShapeRelation'](_0x7418f0,_0x10c1d0,_0x5608c3){const _0x490ed4=_0x4e1758;return this[_0x490ed4(0x238)](_0x7418f0,_0x10c1d0)[_0x490ed4(0x1d9)](_0x5608c3);}[_0x4e1758(0x222)](_0x5e7030,_0x3aa39e,_0x571c25){const _0x1dd53e=_0x4e1758;let _0x398b78=this[_0x1dd53e(0x238)](_0x5e7030,_0x3aa39e)[_0x1dd53e(0x1ca)][_0x1dd53e(0x225)](_0x571c25);if(_0x398b78)return _0x398b78[_0x1dd53e(0x240)]();}[_0x4e1758(0x1fc)](){}[_0x4e1758(0x217)](_0x5a74c0){const _0x1bc5d4=_0x4e1758;let _0x3dde54={},_0xbb8cf=this[_0x1bc5d4(0x20e)]['get'](_0x5a74c0);return _0xbb8cf&&_0xbb8cf[_0x1bc5d4(0x215)]((_0x543f11,_0x3a0436)=>{const _0x3624d3=_0x1bc5d4;let _0x56af0d=_0x543f11[_0x3624d3(0x1ef)]();_0x56af0d['length']>0x0&&(_0x3dde54[_0x3a0436]=_0x56af0d);}),JSON[_0x1bc5d4(0x221)](_0x3dde54);}[_0x4e1758(0x212)](_0x48447e,_0x4dc780){const _0xf72050=_0x4e1758;Object['keys'](_0x4dc780)[_0xf72050(0x215)](_0x55f034=>{const _0x550669=_0xf72050;this[_0x550669(0x238)](_0x48447e,_0x55f034)[_0x550669(0x1c5)](_0x4dc780[_0x55f034]);});}[_0x4e1758(0x1ef)](){const _0x30942d=_0x4e1758;let _0x21c86e={};return this['_shapeModelManagerMap'][_0x30942d(0x215)]((_0x264658,_0x101290)=>{_0x21c86e[_0x101290]={},_0x264658['forEach']((_0x3209e6,_0xf5311b)=>{const _0x114ebb=_0x289a;_0x21c86e[_0x101290][_0xf5311b]=_0x3209e6[_0x114ebb(0x1ef)]();});}),_0x21c86e;}[_0x4e1758(0x1c5)](_0x421849){const _0x83672a=_0x4e1758;Object[_0x83672a(0x1af)](_0x421849)[_0x83672a(0x215)](_0x124522=>{const _0x55e391=_0x83672a;let _0x289d93=_0x421849[_0x124522];Object[_0x55e391(0x1af)](_0x289d93)[_0x55e391(0x215)](_0x504cf1=>{const _0x3be857=_0x55e391;this['_ensureShapeModelManager'](_0x124522,_0x504cf1)[_0x3be857(0x1c5)](_0x289d93[_0x504cf1]);});});}['_initSnapshot'](){const _0x599d3e=_0x4e1758;this[_0x599d3e(0x1a5)][_0x599d3e(0x25a)]({'pluginName':_0x599d3e(0x21a),'businesses':[_0x1e8d7b['UNIVER_SHEET']],'toJson':_0x36a9eb=>this[_0x599d3e(0x217)](_0x36a9eb),'parseJson':_0x5bb785=>JSON[_0x599d3e(0x1cb)](_0x5bb785),'onLoad':(_0x55fce2,_0x202439)=>{const _0x2385f3=_0x599d3e;this[_0x2385f3(0x212)](_0x55fce2,_0x202439);},'onUnLoad':_0xa05807=>{const _0x146639=_0x599d3e;let _0x405292=this[_0x146639(0x20e)][_0x146639(0x225)](_0xa05807);_0x405292&&(_0x405292[_0x146639(0x215)](_0x3f7e52=>{const _0x49ed47=_0x146639;_0x3f7e52[_0x49ed47(0x242)]();}),this['_shapeModelManagerMap'][_0x146639(0x25d)](_0xa05807));}});}[_0x4e1758(0x242)](){const _0x4bcffd=_0x4e1758;this[_0x4bcffd(0x20e)][_0x4bcffd(0x215)](_0x2d0362=>{const _0x4a52da=_0x4bcffd;_0x2d0362[_0x4a52da(0x215)](_0x55bd09=>{const _0x25bbaa=_0x4a52da;_0x55bd09[_0x25bbaa(0x242)]();});});}};Q=le([Z(0x0,_0x2a1ffc)],Q);const ue={'id':_0x4e1758(0x1c9),'type':_0x5ca941[_0x4e1758(0x1ab)],'handler':(_0x126ac0,_0x3fbecf)=>{const _0x3d416e=_0x4e1758;let {unitId:_0x37c528,subUnitId:_0x1e36d4,shapeType:_0xca7682,shapeId:_0x58d416,shapeName:_0x10cc0f,shapeData:_0x580e72}=_0x3fbecf;return _0x126ac0['get'](Q)[_0x3d416e(0x241)](_0x37c528,_0x1e36d4,_0xca7682,_0x58d416,_0x32fcde['deepClone'](_0x580e72),_0x10cc0f),!0x0;}},de={'id':_0x4e1758(0x223),'type':_0x5ca941[_0x4e1758(0x1ab)],'handler':(_0x339859,_0x24d101)=>{const _0x5e2e6d=_0x4e1758;let {unitId:_0x516438,subUnitId:_0x4e02b4,shapeId:_0x2836de}=_0x24d101;return _0x339859['get'](Q)[_0x5e2e6d(0x263)](_0x516438,_0x4e02b4,_0x2836de),!0x0;}},fe={'type':_0x5ca941['COMMAND'],'id':_0x4e1758(0x1e7),'handler':(_0x103d53,_0x1cde4d)=>{const _0x7bf734=_0x4e1758;let _0x41ce62=_0xe34dd0(_0x103d53['get'](_0xa1550),_0x1cde4d);if(!_0x41ce62)return!0x1;let _0x158b62=_0x103d53['get'](_0xb3d7e9),{unitId:_0x19983e,subUnitId:_0x54ba0a}=_0x41ce62,_0x491394=_0x158b62[_0x7bf734(0x208)](_0x19983e,_0x54ba0a);if(!_0x491394)return!0x1;let _0x3968ef=_0x103d53[_0x7bf734(0x225)](_0x446a3b),_0x44b91f=_0x103d53['get'](_0x1e06fd),_0x304588=_0x103d53[_0x7bf734(0x225)](_0x1c2c98),_0x24e823=_0x103d53['get'](_0x16cbc8),_0xdade66=_0x103d53['get'](Q),{shapeType:_0x1f5a58}=_0x1cde4d,_0x390ef1=_0x1cde4d['shapeData']??_0x1a88d3(_0x1f5a58),_0x15efe0=_0x1cde4d[_0x7bf734(0x1e2)]||_0x7b910c(),_0x5a4872={'unitId':_0x19983e,'subUnitId':_0x54ba0a,'shapeId':_0x15efe0,'shapeName':_0x1cde4d[_0x7bf734(0x1c3)]??_0x34737b(_0x1f5a58,_0xdade66[_0x7bf734(0x224)](_0x19983e,_0x54ba0a)),'shapeType':_0x1f5a58,'shapeData':_0x390ef1},_0x4c1090=_0x1cde4d[_0x7bf734(0x22b)]||0xc8,_0x14871e=_0x1cde4d[_0x7bf734(0x213)]||0xc8,_0x305c58=0x0,_0x39c91f=0x0;if(_0x1cde4d[_0x7bf734(0x226)]){let {x:_0x45a835,y:_0x16c3e1}=_0x1cde4d[_0x7bf734(0x226)];_0x305c58=_0x45a835,_0x39c91f=_0x16c3e1;}else{if(_0x1cde4d[_0x7bf734(0x256)]){let {startRow:_0x3b5406,startColumn:_0x5b4987}=_0x1cde4d[_0x7bf734(0x256)],_0x41ebc9=_0x491394['getCellWithCoordByIndex'](_0x3b5406,_0x5b4987);_0x305c58=_0x41ebc9[_0x7bf734(0x1d3)]+0xa,_0x39c91f=_0x41ebc9[_0x7bf734(0x234)]+0xa;}}let _0x3a99f4={'left':_0x305c58,'top':_0x39c91f,'width':_0x4c1090,'height':_0x14871e,'angle':_0x1cde4d['rotation']??0x0,'flipX':_0x1cde4d[_0x7bf734(0x1d1)]??!0x1,'flipY':_0x1cde4d[_0x7bf734(0x1ac)]??!0x1},_0x446da3=_0x55e9d6(_0x3a99f4,_0x491394),_0x479e9e=_0x53a78f(_0x3a99f4,_0x491394),_0x58eb1d={'unitId':_0x19983e,'subUnitId':_0x54ba0a,'drawingId':_0x15efe0,'drawingType':_0x579c28[_0x7bf734(0x261)],'anchorType':_0x6b2bef['Both'],'name':_0x1cde4d['name'],'description':_0x1cde4d[_0x7bf734(0x235)],'sheetTransform':_0x446da3,'transform':_0x3a99f4,'data':{'shapeType':_0x1f5a58,'shapeData':_0x390ef1},'axisAlignSheetTransform':_0x479e9e,'allowTransform':!0x0,'hidden':_0x1cde4d[_0x7bf734(0x1bc)]===!0x1,'selectable':_0x1cde4d[_0x7bf734(0x210)]??!0x0};_0x178a1e(_0x1f5a58)&&(_0x58eb1d[_0x7bf734(0x1f2)][_0x7bf734(0x1b4)]=!0x1,_0x58eb1d[_0x7bf734(0x1f2)][_0x7bf734(0x1da)]=!0x1,_0x58eb1d[_0x7bf734(0x1f2)][_0x7bf734(0x274)]=!0x1,_0x58eb1d[_0x7bf734(0x1f2)][_0x7bf734(0x1dd)]=!0x1,_0x58eb1d[_0x7bf734(0x216)][_0x7bf734(0x1da)]=!0x1,_0x58eb1d['transform'][_0x7bf734(0x274)]=!0x1,_0x58eb1d[_0x7bf734(0x216)][_0x7bf734(0x1dd)]=!0x1);let {undo:_0x3127bc,redo:_0x10c57e,objects:_0xdee922}=_0x24e823[_0x7bf734(0x1ea)]([_0x58eb1d]),_0xdd1795=_0x304588['onCommandExecute']({'id':_0x11f257['id'],'params':{'unitId':_0x19983e,'drawings':[_0x58eb1d]}}),_0x2eb0a3=[..._0xdd1795[_0x7bf734(0x211)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x19983e,'subUnitId':_0x54ba0a,'op':_0x10c57e,'objects':_0xdee922,'type':_0x13e9cb[_0x7bf734(0x1fb)]}},{'id':_0x1b00b3['id'],'params':[_0x19983e]},..._0xdd1795[_0x7bf734(0x1b7)],{'id':ue['id'],'params':_0x5a4872}],_0x3b0123=[{'id':de['id'],'params':{'unitId':_0x19983e,'subUnitId':_0x54ba0a,'shapeId':_0x15efe0}},..._0xdd1795[_0x7bf734(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x19983e,'subUnitId':_0x54ba0a,'op':_0x3127bc,'objects':_0xdee922,'type':_0x13e9cb['REMOVE']}},{'id':_0x1b00b3['id'],'params':[_0x19983e]},..._0xdd1795['undos']];return _0x3c4f99(_0x2eb0a3,_0x3968ef)[_0x7bf734(0x232)]?(_0x44b91f[_0x7bf734(0x260)]({'unitID':_0x19983e,'undoMutations':_0x3b0123,'redoMutations':_0x2eb0a3}),!0x0):!0x1;}},$={'id':_0x4e1758(0x24b),'type':_0x5ca941[_0x4e1758(0x1ab)],'handler':(_0x2721fa,_0x274a7a)=>{const _0x27d77d=_0x4e1758;let {unitId:_0x254c1a,subUnitId:_0xf57972,shapeType:_0x1fd50e,shapeId:_0x39a6cf,shapeData:_0x21df51,replace:_0x688c05,formulaLastValueGuard:_0x3875a7}=_0x274a7a,_0x5e18a8=_0x2721fa[_0x27d77d(0x225)](Q)['getShapeModel'](_0x254c1a,_0xf57972,_0x39a6cf);if(_0x5e18a8){var _0x3c631c;if(!_0x151daa(_0x2721fa,{'hostType':_0x1e8d7b['UNIVER_SHEET'],'unitId':_0x254c1a,'subUnitId':_0xf57972,'shapeId':_0x39a6cf},(_0x3c631c=_0x5e18a8['getShapeData']()[_0x27d77d(0x1ee)])==null?void 0x0:_0x3c631c[_0x27d77d(0x1b1)],_0x3875a7))return!0x0;_0x1fd50e!==void 0x0&&_0x5e18a8[_0x27d77d(0x1fc)](_0x1fd50e),_0x21df51&&(_0x5e18a8==null||_0x5e18a8[_0x27d77d(0x1fa)](_0x32fcde[_0x27d77d(0x1cd)](_0x21df51),!_0x688c05));}return!0x0;}},pe={'type':_0x5ca941['COMMAND'],'id':_0x4e1758(0x1e5),'handler':(_0x4a7138,_0x58619e)=>{const _0x43ddaf=_0x4e1758;let _0x4533d5=_0xe34dd0(_0x4a7138[_0x43ddaf(0x225)](_0xa1550),_0x58619e);if(!_0x4533d5)return!0x1;let _0x3b7deb=_0x4a7138[_0x43ddaf(0x225)](_0xb3d7e9),{unitId:_0x4d4187,subUnitId:_0x260741}=_0x4533d5,_0x33edec=_0x3b7deb['ensureSkeleton'](_0x4d4187,_0x260741);if(!_0x33edec)return!0x1;let _0xe95192=_0x4a7138[_0x43ddaf(0x225)](Q),{shapeId:_0x5420d0,shapeType:_0xaac139,shapeData:_0x1aac3b,position:_0x48ac51,width:_0x34983b,height:_0x41926f}=_0x58619e,_0x3aecdc=_0xe95192['getShapeModel'](_0x4d4187,_0x260741,_0x5420d0);if(!_0x3aecdc)return!0x1;let _0x50abfe=_0x4a7138[_0x43ddaf(0x225)](_0x446a3b),_0x3ec6e4=_0x4a7138['get'](_0x1e06fd),_0xe24597=_0x4a7138[_0x43ddaf(0x225)](_0x1c2c98),_0x1360c4=_0x4a7138[_0x43ddaf(0x225)](_0x16cbc8),_0x1f0254={'unitId':_0x4d4187,'subUnitId':_0x260741,'shapeId':_0x5420d0,'shapeType':_0xaac139,'shapeData':_0x1aac3b,'replace':!0x0},_0x427d0b=_0x3aecdc[_0x43ddaf(0x239)](),_0x1b2761=_0x3aecdc[_0x43ddaf(0x25f)](),{x:_0x4925cd,y:_0x4eafb9}=_0x48ac51,_0x7ff65c={'left':_0x4925cd,'top':_0x4eafb9,'width':_0x34983b,'height':_0x41926f,'angle':_0x58619e[_0x43ddaf(0x24a)]??0x0,'flipX':_0x58619e[_0x43ddaf(0x1d1)]??!0x1,'flipY':_0x58619e[_0x43ddaf(0x1ac)]??!0x1},_0x11ae05=_0x55e9d6(_0x7ff65c,_0x33edec),_0x301477=_0x53a78f(_0x7ff65c,_0x33edec),_0x4730b4={'unitId':_0x4d4187,'subUnitId':_0x260741,'drawingId':_0x5420d0,'drawingType':_0x579c28[_0x43ddaf(0x261)],'name':_0x58619e[_0x43ddaf(0x1d5)],'description':_0x58619e['description'],'sheetTransform':_0x11ae05,'transform':_0x7ff65c,'data':{'shapeType':_0xaac139,'shapeData':_0x1aac3b},'axisAlignSheetTransform':_0x301477,'allowTransform':!0x0,'hidden':!_0x58619e[_0x43ddaf(0x1bc)],'selectable':_0x58619e[_0x43ddaf(0x210)]};_0x178a1e(_0xaac139)&&(_0x4730b4[_0x43ddaf(0x1f2)][_0x43ddaf(0x1b4)]=!0x1,_0x4730b4[_0x43ddaf(0x1f2)][_0x43ddaf(0x1da)]=!0x1,_0x4730b4['data'][_0x43ddaf(0x274)]=!0x1,_0x4730b4[_0x43ddaf(0x1f2)][_0x43ddaf(0x1dd)]=!0x1,_0x4730b4[_0x43ddaf(0x216)][_0x43ddaf(0x1da)]=!0x1,_0x4730b4[_0x43ddaf(0x216)][_0x43ddaf(0x274)]=!0x1,_0x4730b4[_0x43ddaf(0x216)][_0x43ddaf(0x1dd)]=!0x1);let {undo:_0x6b9ec7,redo:_0x918ec0,objects:_0x2b32d4}=_0x1360c4[_0x43ddaf(0x1c6)]([_0x4730b4]),_0x46f887=_0xe24597[_0x43ddaf(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x4d4187,'drawings':[_0x4730b4]}}),_0x403222=[..._0x46f887['preRedos']??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x4d4187,'subUnitId':_0x260741,'op':_0x918ec0,'objects':_0x2b32d4,'type':_0x13e9cb[_0x43ddaf(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x4d4187]},..._0x46f887[_0x43ddaf(0x1b7)],{'id':$['id'],'params':_0x1f0254}],_0x1bde67=[..._0x46f887[_0x43ddaf(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x4d4187,'subUnitId':_0x260741,'op':_0x6b9ec7,'objects':_0x2b32d4,'type':_0x13e9cb[_0x43ddaf(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x4d4187]},..._0x46f887[_0x43ddaf(0x1e1)],{'id':$['id'],'params':{'unitId':_0x4d4187,'subUnitId':_0x260741,'shapeType':_0x427d0b,'shapeId':_0x5420d0,'shapeData':_0x1b2761,'replace':!0x0}}];return _0x3c4f99(_0x403222,_0x50abfe)[_0x43ddaf(0x232)]?(_0x3ec6e4['pushUndoRedo']({'unitID':_0x4d4187,'undoMutations':_0x1bde67,'redoMutations':_0x403222}),!0x0):!0x1;}},me={'type':_0x5ca941[_0x4e1758(0x25e)],'id':_0x4e1758(0x251),'handler':(_0x25282f,_0x5db5c5)=>{const _0x1ce0e1=_0x4e1758;let _0xb27f2c=_0xe34dd0(_0x25282f[_0x1ce0e1(0x225)](_0xa1550),_0x5db5c5);if(!_0xb27f2c)return!0x1;let _0x44ae1c=_0x25282f[_0x1ce0e1(0x225)](_0xb3d7e9),{unitId:_0x40b0f0,subUnitId:_0x2956ac}=_0xb27f2c,_0x53a431=_0x44ae1c[_0x1ce0e1(0x1d8)](_0x40b0f0,_0x2956ac);if(!_0x53a431)return!0x1;let _0x50a501=_0x25282f[_0x1ce0e1(0x225)](_0x16cbc8),{shapeId:_0x51ca40,flipH:_0x4624ed,flipV:_0x1f9558}=_0x5db5c5,_0x37fc68=_0x50a501[_0x1ce0e1(0x20a)]({'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'drawingId':_0x51ca40});if(!_0x37fc68)return!0x1;let _0x3975d3=_0x25282f[_0x1ce0e1(0x225)](Q)[_0x1ce0e1(0x1f9)](_0x40b0f0,_0x2956ac,_0x51ca40);if(!_0x3975d3)return!0x1;let _0x5225fd=_0x25282f[_0x1ce0e1(0x225)](_0x446a3b),_0x40013e=_0x25282f['get'](_0x1e06fd),_0x570c47=_0x25282f['get'](_0x1c2c98),_0x5cc6f6={..._0x37fc68[_0x1ce0e1(0x216)]};_0x4624ed!==void 0x0&&(_0x5cc6f6['flipX']=!_0x5cc6f6['flipX']),_0x1f9558!==void 0x0&&(_0x5cc6f6[_0x1ce0e1(0x1ac)]=!_0x5cc6f6['flipY']);let _0xc43a59=_0x55e9d6(_0x5cc6f6,_0x53a431),_0x8bb494=_0x53a78f(_0x5cc6f6,_0x53a431),_0x5a03f4=_0x3975d3[_0x1ce0e1(0x239)](),_0x5156cf=_0x3975d3[_0x1ce0e1(0x25f)](),_0x3ba4d6={'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'drawingId':_0x51ca40,'drawingType':_0x579c28[_0x1ce0e1(0x261)],'sheetTransform':_0xc43a59,'transform':_0x5cc6f6,'data':{'shapeType':_0x5a03f4,'shapeData':_0x5156cf},'axisAlignSheetTransform':_0x8bb494,'allowTransform':!0x0},{undo:_0xf6858f,redo:_0x3b3ab7,objects:_0x25ad2d}=_0x50a501[_0x1ce0e1(0x1c6)]([_0x3ba4d6]),_0x37640b=_0x570c47[_0x1ce0e1(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x40b0f0,'drawings':[_0x3ba4d6]}}),_0x16199a=[..._0x37640b['preRedos']??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'op':_0x3b3ab7,'objects':_0x25ad2d,'type':_0x13e9cb['UPDATE']}},{'id':_0x1b00b3['id'],'params':[_0x40b0f0]},..._0x37640b[_0x1ce0e1(0x1b7)]],_0x31d052=[..._0x37640b[_0x1ce0e1(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'op':_0xf6858f,'objects':_0x25ad2d,'type':_0x13e9cb[_0x1ce0e1(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x40b0f0]},..._0x37640b[_0x1ce0e1(0x1e1)]];if(_0x178a1e(_0x5a03f4)){let _0x51fe74=_0x3975d3[_0x1ce0e1(0x240)]();if(_0x51fe74){let _0x4b9e59={..._0x51fe74};_0x4b9e59['from']=void 0x0,_0x4b9e59['to']=void 0x0,_0x16199a[_0x1ce0e1(0x20c)]({'id':$['id'],'params':{'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'shapeId':_0x51ca40,'shapeType':_0x5a03f4,'shapeData':{'relation':_0x4b9e59}}}),_0x31d052[_0x1ce0e1(0x20c)]({'id':$['id'],'params':{'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'shapeId':_0x51ca40,'shapeType':_0x5a03f4,'shapeData':{'relation':_0x51fe74}}});}}return _0x3c4f99(_0x16199a,_0x5225fd)[_0x1ce0e1(0x232)]?(_0x40013e[_0x1ce0e1(0x260)]({'unitID':_0x40b0f0,'undoMutations':_0x31d052,'redoMutations':_0x16199a}),!0x0):!0x1;}},he={'type':_0x5ca941[_0x4e1758(0x25e)],'id':_0x4e1758(0x1a6),'handler':(_0x209013,_0x590a9a)=>{const _0x382fa4=_0x4e1758;let _0x504231=_0xe34dd0(_0x209013[_0x382fa4(0x225)](_0xa1550),_0x590a9a);if(!_0x504231)return!0x1;let _0x10c29b=_0x209013['get'](_0xb3d7e9),{unitId:_0x3be4f0,subUnitId:_0x58f1ca}=_0x504231,_0x5b320f=_0x10c29b[_0x382fa4(0x1d8)](_0x3be4f0,_0x58f1ca);if(!_0x5b320f)return!0x1;let _0x38856=_0x209013[_0x382fa4(0x225)](_0x16cbc8),{shapeId:_0x927d9a,rotate:_0xcad1e5}=_0x590a9a,_0x447480=_0x38856[_0x382fa4(0x20a)]({'unitId':_0x3be4f0,'subUnitId':_0x58f1ca,'drawingId':_0x927d9a});if(!_0x447480)return!0x1;let _0x5cf2a1=_0x209013[_0x382fa4(0x225)](Q)[_0x382fa4(0x1f9)](_0x3be4f0,_0x58f1ca,_0x927d9a);if(!_0x5cf2a1)return!0x1;let _0x443006=_0x209013[_0x382fa4(0x225)](_0x446a3b),_0x176b45=_0x209013[_0x382fa4(0x225)](_0x1e06fd),_0x336492=_0x209013[_0x382fa4(0x225)](_0x1c2c98),_0x2cde57={..._0x447480[_0x382fa4(0x216)]};_0xcad1e5!==void 0x0&&(_0x2cde57[_0x382fa4(0x253)]=(_0x2cde57[_0x382fa4(0x253)]||0x0)+_0xcad1e5);let _0x4614fc=_0x55e9d6(_0x2cde57,_0x5b320f),_0x4e4d92=_0x53a78f(_0x2cde57,_0x5b320f),_0x102b1b=_0x5cf2a1[_0x382fa4(0x239)](),_0x5b30a9=_0x5cf2a1['getShapeData'](),_0x152c7b={'unitId':_0x3be4f0,'subUnitId':_0x58f1ca,'drawingId':_0x927d9a,'drawingType':_0x579c28[_0x382fa4(0x261)],'sheetTransform':_0x4614fc,'transform':_0x2cde57,'data':{'shapeType':_0x102b1b,'shapeData':_0x5b30a9},'axisAlignSheetTransform':_0x4e4d92,'allowTransform':!0x0},{undo:_0x49a5b4,redo:_0x5668e3,objects:_0x164d3b}=_0x38856[_0x382fa4(0x1c6)]([_0x152c7b]),_0x12be89=_0x336492[_0x382fa4(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x3be4f0,'drawings':[_0x152c7b]}}),_0xf183b8=[..._0x12be89[_0x382fa4(0x211)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x3be4f0,'subUnitId':_0x58f1ca,'op':_0x5668e3,'objects':_0x164d3b,'type':_0x13e9cb[_0x382fa4(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x3be4f0]},..._0x12be89['redos']],_0x12f052=[..._0x12be89[_0x382fa4(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x3be4f0,'subUnitId':_0x58f1ca,'op':_0x49a5b4,'objects':_0x164d3b,'type':_0x13e9cb[_0x382fa4(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x3be4f0]},..._0x12be89[_0x382fa4(0x1e1)]];return _0x3c4f99(_0xf183b8,_0x443006)[_0x382fa4(0x232)]?(_0x176b45['pushUndoRedo']({'unitID':_0x3be4f0,'undoMutations':_0x12f052,'redoMutations':_0xf183b8}),!0x0):!0x1;}},ge={'type':_0x5ca941[_0x4e1758(0x25e)],'id':_0x4e1758(0x26c),'handler':(_0x3813e0,_0x39f9b0)=>{const _0x5e464d=_0x4e1758;let _0x521e00=_0xe34dd0(_0x3813e0[_0x5e464d(0x225)](_0xa1550),_0x39f9b0);if(!_0x521e00)return!0x1;let {unitId:_0x9e935c,subUnitId:_0x166bfa}=_0x521e00,{shapeId:_0xc8279}=_0x39f9b0,_0x357a98=_0x3813e0[_0x5e464d(0x225)](Q)[_0x5e464d(0x1f9)](_0x9e935c,_0x166bfa,_0xc8279);if(!_0x357a98)return!0x1;let _0x46c63d=_0x357a98['getShapeTextData'](),_0x3a84d8=(_0x46c63d==null?void 0x0:_0x46c63d[_0x5e464d(0x1cc)])??!0x0,_0x3b9ead=!_0x3a84d8,_0x471712=_0x3813e0[_0x5e464d(0x225)](_0x446a3b),_0x5c22a5=_0x3813e0[_0x5e464d(0x225)](_0x1e06fd),_0x31728c={'unitId':_0x9e935c,'subUnitId':_0x166bfa,'shapeId':_0xc8279,'shapeData':{'shapeText':{'isHorizontal':_0x3b9ead}}},_0x5008a2={'unitId':_0x9e935c,'subUnitId':_0x166bfa,'shapeId':_0xc8279,'shapeData':{'shapeText':{'isHorizontal':_0x3a84d8}}},_0x5f16e2=[{'id':$['id'],'params':_0x31728c}],_0x2b7e80=[{'id':$['id'],'params':_0x5008a2}];return _0x3c4f99(_0x5f16e2,_0x471712)['result']?(_0x5c22a5[_0x5e464d(0x260)]({'unitID':_0x9e935c,'undoMutations':_0x2b7e80,'redoMutations':_0x5f16e2}),!0x0):!0x1;}},_e={'type':_0x5ca941[_0x4e1758(0x25e)],'id':'sheet.command.update-connector-relation','handler':(_0x59d19,_0x5a1241)=>{const _0x5d4c6b=_0x4e1758;var _0x43db78;let _0x181387=_0xe34dd0(_0x59d19[_0x5d4c6b(0x225)](_0xa1550),_0x5a1241);if(!_0x181387)return!0x1;let _0x24eebf=_0x59d19[_0x5d4c6b(0x225)](_0xb3d7e9),{unitId:_0x45fdad,subUnitId:_0x445c52}=_0x181387,_0x490c67=_0x24eebf[_0x5d4c6b(0x1d8)](_0x45fdad,_0x445c52);if(!_0x490c67)return!0x1;let _0x5d67dc=_0x59d19[_0x5d4c6b(0x225)](_0x16cbc8),{connectorShapeId:_0x2ee692,width:_0xd98b5f,height:_0x2486f4,left:_0xc6ebaf,top:_0x31d94d,flipX:_0x4e7aff,flipY:_0x1e9e52,rotation:_0x143b06,oldAdjustValues:_0x3409e7,newAdjustValues:_0x17e358,oldLineType:_0x364eaf,newLineType:_0x407122,oldRelation:_0x3e0cf2,newRelation:_0x4b7f1f}=_0x5a1241,_0x4ba288=_0x5d67dc[_0x5d4c6b(0x20a)]({'unitId':_0x45fdad,'subUnitId':_0x445c52,'drawingId':_0x2ee692});if(!_0x4ba288)return!0x1;let _0x47279c=_0x59d19['get'](Q)[_0x5d4c6b(0x1f9)](_0x45fdad,_0x445c52,_0x2ee692);if(!_0x47279c)return!0x1;let _0x1da08c=_0x59d19[_0x5d4c6b(0x225)](_0x446a3b),_0x121777=_0x59d19[_0x5d4c6b(0x225)](_0x1e06fd),_0x34824f=_0x59d19['get'](_0x1c2c98),_0x28cb4e={..._0x4ba288[_0x5d4c6b(0x216)],'width':_0xd98b5f,'height':_0x2486f4,'left':_0xc6ebaf,'top':_0x31d94d,'flipX':_0x4e7aff,'flipY':_0x1e9e52,'angle':_0x143b06??((_0x43db78=_0x4ba288['transform'])==null?void 0x0:_0x43db78[_0x5d4c6b(0x253)])??0x0},_0xbeb1d5=_0x55e9d6(_0x28cb4e,_0x490c67),_0x4312bf=_0x53a78f(_0x28cb4e,_0x490c67),_0x2e9581=_0x47279c['getShapeType'](),_0x263ee1=_0x47279c[_0x5d4c6b(0x25f)](),_0x5c9909={'unitId':_0x45fdad,'subUnitId':_0x445c52,'drawingId':_0x2ee692,'drawingType':_0x579c28[_0x5d4c6b(0x261)],'sheetTransform':_0xbeb1d5,'transform':_0x28cb4e,'data':{'shapeType':_0x407122||_0x364eaf||_0x2e9581,'shapeData':{..._0x263ee1,'adjustValues':_0x17e358||_0x3409e7||(_0x263ee1==null?void 0x0:_0x263ee1[_0x5d4c6b(0x22f)]),'relation':_0x4b7f1f||_0x3e0cf2||(_0x263ee1==null?void 0x0:_0x263ee1[_0x5d4c6b(0x249)])}},'axisAlignSheetTransform':_0x4312bf,'allowTransform':!0x0},{undo:_0x5b64e0,redo:_0x4b9c1e,objects:_0x574c97}=_0x5d67dc[_0x5d4c6b(0x1c6)]([_0x5c9909]),_0x4a7464=_0x34824f[_0x5d4c6b(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x45fdad,'drawings':[_0x5c9909]}}),_0x4d5e13=[..._0x4a7464[_0x5d4c6b(0x211)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x45fdad,'subUnitId':_0x445c52,'op':_0x4b9c1e,'objects':_0x574c97,'type':_0x13e9cb['UPDATE']}},{'id':_0x1b00b3['id'],'params':[_0x45fdad]},..._0x4a7464[_0x5d4c6b(0x1b7)],{'id':$['id'],'params':{'unitId':_0x45fdad,'subUnitId':_0x445c52,'shapeId':_0x2ee692,'shapeType':_0x407122,'shapeData':{'adjustValues':_0x17e358,'relation':_0x4b7f1f}}}],_0x5aea51=[..._0x4a7464[_0x5d4c6b(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x45fdad,'subUnitId':_0x445c52,'op':_0x5b64e0,'objects':_0x574c97,'type':_0x13e9cb[_0x5d4c6b(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x45fdad]},..._0x4a7464[_0x5d4c6b(0x1e1)],{'id':$['id'],'params':{'unitId':_0x45fdad,'subUnitId':_0x445c52,'shapeId':_0x2ee692,'shapeType':_0x2e9581,'shapeData':{..._0x263ee1,'adjustValues':_0x3409e7||(_0x263ee1==null?void 0x0:_0x263ee1[_0x5d4c6b(0x22f)]),'relation':_0x3e0cf2||(_0x263ee1==null?void 0x0:_0x263ee1[_0x5d4c6b(0x249)])}}}];return _0x3c4f99(_0x4d5e13,_0x1da08c)['result']?(_0x121777[_0x5d4c6b(0x260)]({'unitID':_0x45fdad,'undoMutations':_0x5aea51,'redoMutations':_0x4d5e13}),!0x0):!0x1;}},ve={'type':_0x5ca941[_0x4e1758(0x25e)],'id':_0x4e1758(0x23a),'handler':(_0x5f44ee,_0x2568b1)=>{const _0x3ac3cf=_0x4e1758;let _0x4698ee=_0xe34dd0(_0x5f44ee['get'](_0xa1550),_0x2568b1);if(!_0x4698ee)return!0x1;let _0x1617f9=_0x5f44ee[_0x3ac3cf(0x225)](_0xb3d7e9),{unitId:_0x31e22d,subUnitId:_0x1832ef}=_0x4698ee,_0x2b8469=_0x1617f9[_0x3ac3cf(0x1d8)](_0x31e22d,_0x1832ef);if(!_0x2b8469)return!0x1;let _0x2167bd=_0x5f44ee['get'](_0x16cbc8),{shapeId:_0x54dbaf,width:_0x1682b9,height:_0x50cb5a,left:_0x255338,top:_0x14063f,flipX:_0x1877df,flipY:_0x2c9114,angle:_0x51bfea,oldAdjustValues:_0x4c35f4,newAdjustValues:_0x22290c,oldLineType:_0x2ec74a,newLineType:_0x24a0c7}=_0x2568b1,_0x2d5c0b=_0x2167bd['getDrawingByParam']({'unitId':_0x31e22d,'subUnitId':_0x1832ef,'drawingId':_0x54dbaf});if(!_0x2d5c0b)return!0x1;let _0x4dd4e6=_0x5f44ee[_0x3ac3cf(0x225)](Q)[_0x3ac3cf(0x1f9)](_0x31e22d,_0x1832ef,_0x54dbaf);if(!_0x4dd4e6)return!0x1;let _0x3a082a=_0x5f44ee[_0x3ac3cf(0x225)](_0x446a3b),_0x5b2eb9=_0x5f44ee[_0x3ac3cf(0x225)](_0x1e06fd),_0xe351d0=_0x5f44ee[_0x3ac3cf(0x225)](_0x1c2c98),_0x2c971e={..._0x2d5c0b[_0x3ac3cf(0x216)],'width':_0x1682b9,'height':_0x50cb5a,'left':_0x255338,'top':_0x14063f,'flipX':_0x1877df,'flipY':_0x2c9114,'angle':_0x51bfea},_0x50e3ec=_0x55e9d6(_0x2c971e,_0x2b8469),_0x53dd62=_0x53a78f(_0x2c971e,_0x2b8469),_0x57c7a2=_0x4dd4e6['getShapeType'](),_0x53c840=_0x4dd4e6[_0x3ac3cf(0x25f)](),_0x58e6bd={'unitId':_0x31e22d,'subUnitId':_0x1832ef,'drawingId':_0x54dbaf,'drawingType':_0x579c28['DRAWING_SHAPE'],'sheetTransform':_0x50e3ec,'transform':_0x2c971e,'data':{'shapeType':_0x24a0c7||_0x2ec74a||_0x57c7a2,'shapeData':{..._0x53c840,'adjustValues':_0x22290c||_0x4c35f4||(_0x53c840==null?void 0x0:_0x53c840['adjustValues'])}},'axisAlignSheetTransform':_0x53dd62,'allowTransform':!0x0},{undo:_0x206d55,redo:_0x3b7496,objects:_0x5d267a}=_0x2167bd[_0x3ac3cf(0x1c6)]([_0x58e6bd]),_0xc4e50=_0xe351d0[_0x3ac3cf(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x31e22d,'drawings':[_0x58e6bd]}}),_0x161c3e=[..._0xc4e50['preRedos']??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x31e22d,'subUnitId':_0x1832ef,'op':_0x3b7496,'objects':_0x5d267a,'type':_0x13e9cb[_0x3ac3cf(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x31e22d]},..._0xc4e50[_0x3ac3cf(0x1b7)],{'id':$['id'],'params':{'unitId':_0x31e22d,'subUnitId':_0x1832ef,'shapeId':_0x54dbaf,'shapeType':_0x24a0c7,'shapeData':{'adjustValues':_0x22290c}}}],_0x332ca0=[..._0xc4e50['preUndos']??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x31e22d,'subUnitId':_0x1832ef,'op':_0x206d55,'objects':_0x5d267a,'type':_0x13e9cb[_0x3ac3cf(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x31e22d]},..._0xc4e50['undos'],{'id':$['id'],'params':{'unitId':_0x31e22d,'subUnitId':_0x1832ef,'shapeId':_0x54dbaf,'shapeType':_0x57c7a2,'shapeData':{..._0x53c840,'adjustValues':_0x4c35f4||(_0x53c840==null?void 0x0:_0x53c840[_0x3ac3cf(0x22f)])}}}];return _0x3c4f99(_0x161c3e,_0x3a082a)[_0x3ac3cf(0x232)]?(_0x5b2eb9['pushUndoRedo']({'unitID':_0x31e22d,'undoMutations':_0x332ca0,'redoMutations':_0x161c3e}),!0x0):!0x1;}},ye={'id':_0x4e1758(0x1d6),'type':_0x5ca941[_0x4e1758(0x1ab)],'handler':(_0xe1b6b,_0x12c8ae)=>{const _0x89a77f=_0x4e1758;let {unitId:_0x452f40,subUnitId:_0x345096,shapeType:_0x76a0ac,shapeId:_0x5a9386,shapeData:_0x421f57}=_0x12c8ae,_0x57e49a=_0xe1b6b['get'](Q)[_0x89a77f(0x1f9)](_0x452f40,_0x345096,_0x5a9386);return _0x57e49a&&(_0x57e49a[_0x89a77f(0x1fc)](_0x76a0ac),_0x421f57&&(_0x57e49a==null||_0x57e49a[_0x89a77f(0x1fa)](_0x421f57))),!0x0;}};function _0x289a(_0x929c3,_0x120f2c){_0x929c3=_0x929c3-0x1a2;const _0xf86d32=_0xf86d();let _0x289a3c=_0xf86d32[_0x929c3];return _0x289a3c;}var be=_0x4e1758(0x272),xe=_0x4e1758(0x218);function Se(_0x3f9f17){const _0x28a844=_0x4e1758;var _0x3073eb,_0xcefd4e,_0x2fd288,_0x3ddf86,_0x120d2e,_0x5beff9,_0x39d5a8;return{'left':((_0x3073eb=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x3073eb[_0x28a844(0x1b8)])??0x0,'top':((_0xcefd4e=_0x3f9f17['transform'])==null?void 0x0:_0xcefd4e[_0x28a844(0x26a)])??0x0,'width':((_0x2fd288=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x2fd288[_0x28a844(0x22b)])??0xc8,'height':((_0x3ddf86=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x3ddf86[_0x28a844(0x213)])??0xc8,'rotation':((_0x120d2e=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x120d2e['rotation'])??0x0,'flipX':((_0x5beff9=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x5beff9[_0x28a844(0x1d1)])??!0x1,'flipY':((_0x39d5a8=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x39d5a8['flipY'])??!0x1};}let Ce=class{constructor(_0x3419fd,_0x388f45,_0x18c2c1,_0x5a266a){const _0x5c35aa=_0x4e1758;this[_0x5c35aa(0x22a)]=_0x3419fd,this[_0x5c35aa(0x231)]=_0x388f45,this['_drawingService']=_0x18c2c1,this[_0x5c35aa(0x1eb)]=_0x5a266a,X(this,_0x5c35aa(0x245),_0x1e8d7b[_0x5c35aa(0x1ba)]);}get[_0x4e1758(0x1ed)](){return{'subscribe':_0x35c36d=>{const _0x563773=_0x289a;let _0x5c5e1b=this[_0x563773(0x22a)][_0x563773(0x206)](_0x168b13=>{const _0x425334=_0x563773;(_0x168b13['id']===ue['id']||_0x168b13['id']===de['id']||_0x168b13['id']===$['id']||_0x168b13['id']===ye['id'])&&_0x35c36d({'unitId':_0x168b13['params'][_0x425334(0x1f1)]});});return{'unsubscribe':()=>_0x5c5e1b['dispose']()};}};}[_0x4e1758(0x1a9)](_0x143317){const _0xd404d5=_0x4e1758;var _0x315ecb;let _0x28d3a2=(_0x315ecb=this[_0xd404d5(0x1b9)][_0xd404d5(0x1e0)](_0x143317[_0xd404d5(0x1f1)],_0x143317['subUnitId']))==null?void 0x0:_0x315ecb[_0x143317[_0xd404d5(0x1e2)]],_0x5a0461=this[_0xd404d5(0x231)]['getShapeType'](_0x143317[_0xd404d5(0x1f1)],_0x143317[_0xd404d5(0x200)],_0x143317[_0xd404d5(0x1e2)]);if(!_0x28d3a2||_0x28d3a2[_0xd404d5(0x1e4)]!==_0x579c28['DRAWING_SHAPE']||!_0x5a0461)return null;let _0x3333b7=_0x28d3a2[_0xd404d5(0x216)];return{..._0x143317,'shapeType':_0x5a0461,'shapeData':_0x32fcde[_0xd404d5(0x1cd)](this[_0xd404d5(0x231)]['getShapeDataById'](_0x143317[_0xd404d5(0x1f1)],_0x143317[_0xd404d5(0x200)],_0x143317[_0xd404d5(0x1e2)])??{}),'name':_0x28d3a2[_0xd404d5(0x1d5)],'description':_0x28d3a2[_0xd404d5(0x235)],'visible':_0x28d3a2[_0xd404d5(0x202)]!==!0x0,'selectable':_0x28d3a2[_0xd404d5(0x210)]!==!0x1,'transform':{'left':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x1b8)])??0x0,'top':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x26a)])??0x0,'width':(_0x3333b7==null?void 0x0:_0x3333b7['width'])??0xc8,'height':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x213)])??0xc8,'rotation':(_0x3333b7==null?void 0x0:_0x3333b7['angle'])??0x0,'flipX':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x1d1)])??!0x1,'flipY':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x1ac)])??!0x1}};}[_0x4e1758(0x247)](_0x1a82cb){const _0x1cdc97=_0x4e1758;let _0x1fe341=this['_drawingService'][_0x1cdc97(0x1e0)](_0x1a82cb[_0x1cdc97(0x1f1)],_0x1a82cb[_0x1cdc97(0x200)])??{};return Object[_0x1cdc97(0x1fe)](_0x1fe341)[_0x1cdc97(0x1b3)](_0x5da55d=>(_0x5da55d==null?void 0x0:_0x5da55d[_0x1cdc97(0x1e4)])===_0x579c28['DRAWING_SHAPE'])[_0x1cdc97(0x244)](_0x1824d4=>this[_0x1cdc97(0x1a9)]({..._0x1a82cb,'shapeId':_0x1824d4[_0x1cdc97(0x227)]}))[_0x1cdc97(0x1b3)](_0x2596d9=>!!_0x2596d9);}[_0x4e1758(0x230)](_0x8e94d2){const _0x3a1982=_0x4e1758;let _0x56906a=this[_0x3a1982(0x1eb)][_0x3a1982(0x229)](_0x8e94d2,_0x1e8d7b[_0x3a1982(0x1ba)]);return(_0x56906a==null?void 0x0:_0x56906a['getSheets']()['flatMap'](_0x3fca4e=>this[_0x3a1982(0x247)]({'hostType':this[_0x3a1982(0x245)],'unitId':_0x8e94d2,'subUnitId':_0x3fca4e[_0x3a1982(0x269)]()})))??[];}['createShape'](_0x47e45a,_0x121b0a){const _0x56affc=_0x4e1758;let _0x42a40c=_0x7b910c(),_0x3d2a00=Se(_0x121b0a),_0x54ca76=_0x32fcde['deepClone'](_0x121b0a[_0x56affc(0x23f)]??_0x1a88d3(_0x121b0a[_0x56affc(0x1bf)]));return this[_0x56affc(0x22a)][_0x56affc(0x23d)](fe['id'],{'unitId':_0x47e45a[_0x56affc(0x1f1)],'subUnitId':_0x47e45a['subUnitId'],'shapeId':_0x42a40c,'shapeType':_0x121b0a[_0x56affc(0x1bf)],'shapeData':_0x54ca76,'name':_0x121b0a[_0x56affc(0x1d5)],'description':_0x121b0a[_0x56affc(0x235)],'position':{'x':_0x3d2a00[_0x56affc(0x1b8)],'y':_0x3d2a00[_0x56affc(0x26a)]},'width':_0x3d2a00[_0x56affc(0x22b)],'height':_0x3d2a00[_0x56affc(0x213)],'rotation':_0x3d2a00[_0x56affc(0x24a)],'flipX':_0x3d2a00[_0x56affc(0x1d1)],'flipY':_0x3d2a00[_0x56affc(0x1ac)],'visible':_0x121b0a['visible']??!0x0,'selectable':_0x121b0a[_0x56affc(0x210)]??!0x0})?{..._0x47e45a,'shapeId':_0x42a40c,'shapeType':_0x121b0a[_0x56affc(0x1bf)],'shapeData':_0x54ca76,'name':_0x121b0a[_0x56affc(0x1d5)],'description':_0x121b0a[_0x56affc(0x235)],'visible':_0x121b0a[_0x56affc(0x1bc)]??!0x0,'selectable':_0x121b0a[_0x56affc(0x210)]??!0x0,'transform':_0x3d2a00}:null;}[_0x4e1758(0x1f0)](_0x3cbc59,_0x48d0e2){const _0xac4da1=_0x4e1758;var _0x5396bb;let _0xcd2c29=this[_0xac4da1(0x1a9)](_0x3cbc59);if(!_0xcd2c29)return!0x1;let _0x1be8df={..._0xcd2c29[_0xac4da1(0x216)],..._0x48d0e2[_0xac4da1(0x216)]};return this['_commandService'][_0xac4da1(0x23d)](pe['id'],{'unitId':_0x3cbc59[_0xac4da1(0x1f1)],'subUnitId':_0x3cbc59[_0xac4da1(0x200)],'shapeId':_0x3cbc59[_0xac4da1(0x1e2)],'shapeType':_0x48d0e2['shapeType']??((_0x5396bb=_0x48d0e2['shapeData'])==null?void 0x0:_0x5396bb[_0xac4da1(0x1bf)])??_0xcd2c29[_0xac4da1(0x1bf)],'shapeData':_0x48d0e2[_0xac4da1(0x23f)]??_0xcd2c29[_0xac4da1(0x23f)],'position':{'x':_0x1be8df[_0xac4da1(0x1b8)],'y':_0x1be8df[_0xac4da1(0x26a)]},'width':_0x1be8df['width'],'height':_0x1be8df['height'],'rotation':_0x1be8df[_0xac4da1(0x24a)],'flipX':_0x1be8df['flipX'],'flipY':_0x1be8df[_0xac4da1(0x1ac)],'name':'name'in _0x48d0e2?_0x48d0e2[_0xac4da1(0x1d5)]:_0xcd2c29['name'],'description':'description'in _0x48d0e2?_0x48d0e2[_0xac4da1(0x235)]:_0xcd2c29['description'],'visible':_0x48d0e2[_0xac4da1(0x1bc)]??_0xcd2c29['visible'],'selectable':_0x48d0e2[_0xac4da1(0x210)]??_0xcd2c29['selectable']});}['createFormulaLastValueMutation'](_0x1e0a56,_0x56b744,_0x434a2a){const _0x3054c2=_0x4e1758;let _0x45a89c=this[_0x3054c2(0x1a9)](_0x1e0a56),_0x52212a=_0x45a89c==null?void 0x0:_0x45a89c[_0x3054c2(0x23f)]['formulaBinding'];return!_0x45a89c||!_0x52212a?null:{'id':$['id'],'params':{'unitId':_0x1e0a56['unitId'],'subUnitId':_0x1e0a56['subUnitId'],'shapeId':_0x1e0a56[_0x3054c2(0x1e2)],'shapeData':{..._0x45a89c['shapeData'],'formulaBinding':{..._0x52212a,'lastValue':_0x32fcde['deepClone'](_0x434a2a)}},'replace':!0x0,'formulaLastValueGuard':_0x56b744}};}[_0x4e1758(0x263)](_0x21c692){const _0x4bef6a=_0x4e1758;return this[_0x4bef6a(0x22a)][_0x4bef6a(0x23d)](_0x442350['id'],{'unitId':_0x21c692[_0x4bef6a(0x1f1)],'drawings':[{'unitId':_0x21c692[_0x4bef6a(0x1f1)],'subUnitId':_0x21c692[_0x4bef6a(0x200)],'drawingId':_0x21c692[_0x4bef6a(0x1e2)],'drawingType':_0x579c28[_0x4bef6a(0x261)]}]});}[_0x4e1758(0x1be)](_0x1a49a1){const _0x5d1078=_0x4e1758;return this[_0x5d1078(0x1e6)](_0x1a49a1,_0x29f512[_0x5d1078(0x21e)]);}[_0x4e1758(0x1a3)](_0x4b2d65){const _0x132585=_0x4e1758;return this[_0x132585(0x1e6)](_0x4b2d65,_0x29f512['forward']);}[_0x4e1758(0x1ad)](_0x2791b1){const _0x137ad1=_0x4e1758;return this['_arrange'](_0x2791b1,_0x29f512[_0x137ad1(0x233)]);}[_0x4e1758(0x1e3)](_0x576c93){const _0x52d947=_0x4e1758;return this[_0x52d947(0x1e6)](_0x576c93,_0x29f512[_0x52d947(0x1c2)]);}['setZOrder'](_0x209996,_0x2593f0){const _0x3849d2=_0x4e1758;return this['_commandService'][_0x3849d2(0x23d)](_0x13f510['id'],{'unitId':_0x209996[_0x3849d2(0x1f1)],'subUnitId':_0x209996[_0x3849d2(0x200)],'drawingIds':[_0x209996['shapeId']],'zOrder':_0x2593f0});}[_0x4e1758(0x1e6)](_0x388325,_0xb93b86){const _0x538c00=_0x4e1758;return this[_0x538c00(0x22a)][_0x538c00(0x23d)](_0x13f510['id'],{'unitId':_0x388325[_0x538c00(0x1f1)],'subUnitId':_0x388325[_0x538c00(0x200)],'drawingIds':[_0x388325[_0x538c00(0x1e2)]],'arrangeType':_0xb93b86});}};Ce=le([Z(0x0,_0x446a3b),Z(0x1,_0x201a83(Q)),Z(0x2,_0x16cbc8),Z(0x3,_0xa1550)],Ce);const we={};let Te=class extends _0x50ff4f{constructor(_0x2960d3,_0x12e1bb,_0x37d4b3,_0x3b86ad,_0x368cf6,_0x5f1b12,_0x577343){const _0x5ac2d4=_0x4e1758;super(),this[_0x5ac2d4(0x22a)]=_0x2960d3,this['_sheetInterceptorService']=_0x12e1bb,this[_0x5ac2d4(0x1e8)]=_0x37d4b3,this['_sheetsShapeService']=_0x3b86ad,this['_drawingManagerService']=_0x368cf6,this['_shapeHostAdapterRegistry']=_0x5f1b12,this[_0x5ac2d4(0x236)](),this[_0x5ac2d4(0x24f)](),this[_0x5ac2d4(0x252)](this[_0x5ac2d4(0x1c4)][_0x5ac2d4(0x21c)](_0x577343));}[_0x4e1758(0x236)](){const _0x444708=_0x4e1758;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$]['forEach'](_0x17e316=>this[_0x444708(0x252)](this['_commandService'][_0x444708(0x246)](_0x17e316)));}[_0x4e1758(0x24f)](){const _0x492e2a=_0x4e1758;this[_0x492e2a(0x252)](this[_0x492e2a(0x250)]['interceptCommand']({'getMutations':_0x30fdad=>{const _0x3cb5ca=_0x492e2a;if(_0x30fdad['id']===_0x442350['id']){let {drawings:_0x442e57}=_0x30fdad[_0x3cb5ca(0x1b5)],_0xf76810=_0x442e57['filter'](_0x323d87=>_0x323d87[_0x3cb5ca(0x1e4)]===_0x579c28[_0x3cb5ca(0x261)]);if(_0xf76810['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x5c5cef=[],_0x4394b9=[];return _0xf76810[_0x3cb5ca(0x215)](_0x56f0ed=>{const _0x5446b6=_0x3cb5ca;let {unitId:_0x14fe10,subUnitId:_0x9c2dcc,drawingId:_0x11832d}=_0x56f0ed,_0x2b2ff5=this[_0x5446b6(0x25b)][_0x5446b6(0x1f9)](_0x14fe10,_0x9c2dcc,_0x11832d);if(!_0x2b2ff5)throw TypeError(_0x5446b6(0x25c)+_0x2b2ff5);_0x5c5cef[_0x5446b6(0x20c)]({'id':de['id'],'params':{'unitId':_0x14fe10,'subUnitId':_0x9c2dcc,'shapeId':_0x11832d}}),_0x4394b9['push']({'id':ue['id'],'params':{'unitId':_0x14fe10,'subUnitId':_0x9c2dcc,'shapeId':_0x11832d,'shapeType':_0x2b2ff5['getShapeType'](),'shapeData':_0x2b2ff5[_0x5446b6(0x25f)]()}});let _0x4d6711=this[_0x5446b6(0x25b)][_0x5446b6(0x1d9)](_0x14fe10,_0x9c2dcc,_0x11832d);if(_0x4d6711)for(let _0x5d6c23 of _0x4d6711){let _0x1e399c=_0x5d6c23[_0x5446b6(0x1e9)],_0x5c8762=_0x5d6c23['isFrom'],_0x58b758=_0x5c8762?{'from':void 0x0}:{'to':void 0x0},_0x49c405=_0x5c8762?{'from':{'shapeId':_0x5d6c23['shapeId'],'cxnIndex':_0x5d6c23[_0x5446b6(0x237)]}}:{'to':{'shapeId':_0x5d6c23[_0x5446b6(0x1e2)],'cxnIndex':_0x5d6c23[_0x5446b6(0x237)]}};_0x5c5cef[_0x5446b6(0x20c)]({'id':$['id'],'params':{'unitId':_0x14fe10,'subUnitId':_0x9c2dcc,'shapeId':_0x1e399c,'shapeData':{'relation':_0x58b758}}}),_0x4394b9[_0x5446b6(0x20c)]({'id':$['id'],'params':{'unitId':_0x14fe10,'subUnitId':_0x9c2dcc,'shapeId':_0x1e399c,'shapeData':{'relation':_0x49c405}}});}}),{'preRedos':_0x5c5cef,'redos':[],'preUndos':[],'undos':_0x4394b9};}if(_0x30fdad['id']===_0x47cba2['id']){let {drawings:_0x23a818}=_0x30fdad[_0x3cb5ca(0x1b5)],_0x3bfde7=_0x23a818[_0x3cb5ca(0x1b3)](_0x265813=>_0x265813['drawingType']===_0x579c28[_0x3cb5ca(0x261)]);if(_0x3bfde7[_0x3cb5ca(0x204)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x5f4047=[],_0x301be3=[];for(let _0x437dae of _0x3bfde7){let {unitId:_0x5112c9,subUnitId:_0x5b6f90,drawingId:_0x3da703,transform:_0x3d3c9c}=_0x437dae;if(!_0x5112c9||!_0x5b6f90||!_0x3da703||!_0x3d3c9c)continue;let _0x35a466=this['_sheetsShapeService'][_0x3cb5ca(0x1f9)](_0x5112c9,_0x5b6f90,_0x3da703);if(!_0x35a466)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x35a466);let _0x23b13e=_0x35a466[_0x3cb5ca(0x239)]();if(_0x178a1e(_0x23b13e)){let _0x4b7704=this[_0x3cb5ca(0x25b)]['getLineShapeRelation'](_0x5112c9,_0x5b6f90,_0x3da703);_0x4b7704&&(_0x5f4047[_0x3cb5ca(0x20c)]({'id':$['id'],'params':{'unitId':_0x5112c9,'subUnitId':_0x5b6f90,'shapeId':_0x3da703,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x301be3[_0x3cb5ca(0x20c)]({'id':$['id'],'params':{'unitId':_0x5112c9,'subUnitId':_0x5b6f90,'shapeId':_0x3da703,'shapeData':{'relation':_0x4b7704}}}));}else{let _0x337947=this[_0x3cb5ca(0x25b)][_0x3cb5ca(0x1d9)](_0x5112c9,_0x5b6f90,_0x3da703);if(_0x337947&&_0x337947[_0x3cb5ca(0x204)]>0x0)for(let _0x40d1c7 of _0x337947){let _0x3be858=_0x40d1c7[_0x3cb5ca(0x1e9)],_0x33d47c=_0x40d1c7[_0x3cb5ca(0x1de)],_0x5000eb=this[_0x3cb5ca(0x25b)][_0x3cb5ca(0x1f9)](_0x5112c9,_0x5b6f90,_0x3be858);if(!_0x5000eb)continue;let _0x1b9e3f=_0x5000eb[_0x3cb5ca(0x21f)](),_0x33c902=_0x5000eb[_0x3cb5ca(0x257)]();_0x1b9e3f&&_0x33c902?this[_0x3cb5ca(0x20f)](_0x5112c9,_0x5b6f90,_0x3be858,_0x5000eb,_0x1b9e3f,_0x33c902,_0x5f4047,_0x301be3,_0x3da703,_0x3d3c9c):this[_0x3cb5ca(0x1a7)](_0x5112c9,_0x5b6f90,_0x3be858,_0x5000eb,_0x33d47c?_0x1b9e3f:_0x33c902,_0x33d47c,_0x5f4047,_0x301be3,_0x3da703,_0x3d3c9c);}}}return{'preRedos':[],'redos':_0x5f4047,'preUndos':_0x301be3,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0xdaa852,_0x1f3143,_0x3b7a20,_0x34af97,_0x49a4de){const _0x1f4e96=_0x4e1758;if(!_0x1f3143||!_0x3b7a20)return null;let {shapeId:_0x48154e,cxnIndex:_0x551c71}=_0xdaa852,_0x38e448=this['_sheetsShapeService'][_0x1f4e96(0x1f9)](_0x1f3143,_0x3b7a20,_0x48154e);if(!_0x38e448)return null;let _0x585daa=this[_0x1f4e96(0x264)][_0x1f4e96(0x20a)]({'unitId':_0x1f3143,'subUnitId':_0x3b7a20,'drawingId':_0x48154e});if(!(_0x585daa!=null&&_0x585daa[_0x1f4e96(0x216)]))return null;let {left:_0x38797b=0x0,top:_0x4ba9da=0x0,width:_0x13c0e5=0x0,height:_0x4a0c52=0x0,flipX:_0x10c307=!0x1,flipY:_0x5656c9=!0x1,angle:_0x5b49bf}=_0x585daa[_0x1f4e96(0x216)];_0x49a4de&&_0x34af97===_0x48154e&&(_0x38797b=_0x49a4de[_0x1f4e96(0x1b8)]??_0x38797b,_0x4ba9da=_0x49a4de[_0x1f4e96(0x26a)]??_0x4ba9da,_0x13c0e5=_0x49a4de['width']??_0x13c0e5,_0x4a0c52=_0x49a4de[_0x1f4e96(0x213)]??_0x4a0c52,_0x10c307=_0x49a4de[_0x1f4e96(0x1d1)]??_0x10c307,_0x5656c9=_0x49a4de[_0x1f4e96(0x1ac)]??_0x5656c9,_0x5b49bf=_0x49a4de[_0x1f4e96(0x253)]??_0x5b49bf),_0x38e448[_0x1f4e96(0x1ce)]({'width':_0x13c0e5,'height':_0x4a0c52});let _0x7f4544=_0x38e448[_0x1f4e96(0x1f4)]()[_0x1f4e96(0x21d)](_0x247431=>_0x247431[_0x1f4e96(0x1d4)]===_0x551c71);if(!_0x7f4544)return null;let _0x5553ff=_0x10c307?_0x13c0e5-_0x7f4544['x']:_0x7f4544['x'],_0x2e96e8=_0x5656c9?_0x4a0c52-_0x7f4544['y']:_0x7f4544['y'];if(_0x5b49bf!==0x0&&_0x5b49bf!=null){let _0x12e2c9=_0x5b49bf*Math['PI']/0xb4,_0xbf7638=Math[_0x1f4e96(0x1ec)](_0x12e2c9),_0x298d3b=Math[_0x1f4e96(0x23c)](_0x12e2c9),_0xf6bfb7=_0x13c0e5/0x2,_0x3c9a6b=_0x4a0c52/0x2,_0x2a3bcf=_0x5553ff-_0xf6bfb7,_0xbf574d=_0x2e96e8-_0x3c9a6b;_0x5553ff=_0xf6bfb7+_0x2a3bcf*_0xbf7638-_0xbf574d*_0x298d3b,_0x2e96e8=_0x3c9a6b+_0x2a3bcf*_0x298d3b+_0xbf574d*_0xbf7638;}_0x5553ff+=_0x38797b,_0x2e96e8+=_0x4ba9da;let _0x40aaf7=_0x7f4544[_0x1f4e96(0x24d)]/0xea60;_0x10c307&&(_0x40aaf7=0xb4-_0x40aaf7),_0x5656c9&&(_0x40aaf7=-_0x40aaf7),_0x40aaf7+=_0x5b49bf||0x0,_0x40aaf7=(_0x40aaf7%0x168+0x168)%0x168;let _0x3f4885=_0x454a23({'left':_0x38797b,'top':_0x4ba9da,'width':_0x13c0e5,'height':_0x4a0c52},_0x5b49bf||0x0);return{'point':{'x':_0x5553ff,'y':_0x2e96e8},'angle':_0x40aaf7,'bounds':_0x3f4885};}[_0x4e1758(0x20f)](_0x2b8db5,_0x46668f,_0x53af0a,_0x5ca773,_0x1f6b10,_0x58fe69,_0x73bf75,_0x4d5f82,_0x4c8868,_0x399691){const _0x345005=_0x4e1758;let _0x197276=this[_0x345005(0x1e8)][_0x345005(0x1d8)](_0x2b8db5,_0x46668f);if(!_0x197276)return;let _0x7d85c0=_0x5ca773[_0x345005(0x240)](),_0x105b7e=_0x5ca773[_0x345005(0x205)](),_0x389b2e={},_0x9d873a={};_0x105b7e['forEach'](_0x21481f=>{const _0x596152=_0x345005;let _0x2cb8b0=_0x5ca773[_0x596152(0x1d0)](_0x21481f);_0x9d873a[_0x21481f]=_0x2cb8b0??0x0;});let _0x259a2d=this[_0x345005(0x201)](_0x1f6b10,_0x2b8db5,_0x46668f,_0x4c8868,_0x399691),_0x53aa9c=this[_0x345005(0x201)](_0x58fe69,_0x2b8db5,_0x46668f,_0x4c8868,_0x399691);if(_0x259a2d&&_0x53aa9c){let _0x4254f6=_0x5ca773[_0x345005(0x239)](),_0x25e822=_0x4bf912(_0x259a2d,_0x53aa9c,_0x4254f6),_0x170fa8=_0x4254f6;if(_0x25e822){let _0x51ac72=_0x33778f(_0x25e822,_0x5ca773[_0x345005(0x239)]()),_0x1d1a39=this['_drawingManagerService'][_0x345005(0x1e0)](_0x2b8db5,_0x46668f);if(_0x1d1a39&&_0x1d1a39[_0x53af0a]){let _0x379d3f=_0x1d1a39[_0x53af0a];_0x170fa8=_0x51ac72[_0x345005(0x1ff)];for(let [_0x3859d7,_0xe53959]of Object[_0x345005(0x1f7)](_0x51ac72[_0x345005(0x22f)]))_0x389b2e[_0x3859d7]=_0xe53959;let _0x269152={..._0x379d3f[_0x345005(0x216)],'width':_0x51ac72[_0x345005(0x1c7)][_0x345005(0x22b)],'height':_0x51ac72[_0x345005(0x1c7)]['height'],'left':_0x51ac72[_0x345005(0x1c7)]['left'],'top':_0x51ac72[_0x345005(0x1c7)][_0x345005(0x26a)],'flipX':_0x51ac72[_0x345005(0x1c7)][_0x345005(0x1d1)],'flipY':_0x51ac72[_0x345005(0x1c7)][_0x345005(0x1ac)],'angle':_0x51ac72[_0x345005(0x24a)]},_0x4d90e6=_0x55e9d6(_0x269152,_0x197276),_0x65d5c0=_0x53a78f(_0x269152,_0x197276),_0x4763b9={'unitId':_0x2b8db5,'subUnitId':_0x46668f,'drawingType':_0x579c28[_0x345005(0x261)],'drawingId':_0x53af0a,'transform':_0x269152,'sheetTransform':_0x4d90e6,'axisAlignSheetTransform':_0x65d5c0},{unitId:_0x4ba26a,subUnitId:_0x55a71a,undo:_0x51e699,redo:_0x4455f3,objects:_0x4d639c}=this['_drawingManagerService']['getBatchUpdateOp']([_0x4763b9]);_0x73bf75[_0x345005(0x20c)]({'id':_0x553d2b['id'],'params':{'unitId':_0x4ba26a,'subUnitId':_0x55a71a,'op':_0x4455f3,'objects':_0x4d639c,'type':_0x13e9cb[_0x345005(0x1ae)]}}),_0x4d5f82[_0x345005(0x20c)]({'id':_0x553d2b['id'],'params':{'unitId':_0x4ba26a,'subUnitId':_0x55a71a,'op':_0x51e699,'objects':_0x4d639c,'type':_0x13e9cb['UPDATE']}});}_0x5ca773['removeLinePoints']();}_0x73bf75['push']({'id':$['id'],'params':{'unitId':_0x2b8db5,'subUnitId':_0x46668f,'shapeId':_0x53af0a,'shapeType':_0x170fa8,'shapeData':{'adjustValues':_0x389b2e,'relation':_0x7d85c0}}}),_0x4d5f82[_0x345005(0x20c)]({'id':$['id'],'params':{'unitId':_0x2b8db5,'subUnitId':_0x46668f,'shapeId':_0x53af0a,'shapeType':_0x4254f6,'shapeData':{'adjustValues':_0x9d873a,'relation':_0x7d85c0}}});}}[_0x4e1758(0x1a7)](_0x2ea1a0,_0x171e69,_0x5579f4,_0x3496a3,_0x5a2c01,_0x1949ea,_0xe42b62,_0x17b1d4,_0x3afd27,_0x4ac1de){const _0x5142b1=_0x4e1758;var _0x57946b;if(!_0x5a2c01)return;let _0x5abf4f=this[_0x5142b1(0x1e8)][_0x5142b1(0x1d8)](_0x2ea1a0,_0x171e69);if(!_0x5abf4f)return;let _0x187e11=(_0x57946b=this[_0x5142b1(0x264)][_0x5142b1(0x20a)]({'unitId':_0x2ea1a0,'subUnitId':_0x171e69,'drawingId':_0x3afd27}))==null?void 0x0:_0x57946b[_0x5142b1(0x216)];if(!_0x187e11)return;let _0xb17ff6=_0x187e11[_0x5142b1(0x1b8)]!==_0x4ac1de['left']||_0x187e11[_0x5142b1(0x26a)]!==_0x4ac1de[_0x5142b1(0x26a)],_0x3876a0=_0x187e11[_0x5142b1(0x22b)]!==_0x4ac1de[_0x5142b1(0x22b)]||_0x187e11['height']!==_0x4ac1de[_0x5142b1(0x213)],_0x20b767=_0x187e11[_0x5142b1(0x1d1)]!==_0x4ac1de['flipX']||_0x187e11[_0x5142b1(0x1ac)]!==_0x4ac1de[_0x5142b1(0x1ac)],_0x49946a=_0x187e11[_0x5142b1(0x253)]!==_0x4ac1de[_0x5142b1(0x253)];if(_0xb17ff6&&!_0x3876a0&&!_0x20b767&&!_0x49946a){let _0x6e5da7=(_0x4ac1de[_0x5142b1(0x1b8)]??0x0)-(_0x187e11['left']??0x0),_0x3e264e=(_0x4ac1de['top']??0x0)-(_0x187e11['top']??0x0),_0x315a01=this[_0x5142b1(0x264)][_0x5142b1(0x1e0)](_0x2ea1a0,_0x171e69);if(_0x315a01&&_0x315a01[_0x5579f4]){var _0x262234,_0x4dd627;let _0x49d1ce=_0x315a01[_0x5579f4],_0x164497={..._0x49d1ce[_0x5142b1(0x216)],'left':(((_0x262234=_0x49d1ce[_0x5142b1(0x216)])==null?void 0x0:_0x262234['left'])??0x0)+_0x6e5da7,'top':(((_0x4dd627=_0x49d1ce[_0x5142b1(0x216)])==null?void 0x0:_0x4dd627[_0x5142b1(0x26a)])??0x0)+_0x3e264e},_0x30565e=_0x55e9d6(_0x164497,_0x5abf4f),_0x5f4025=_0x53a78f(_0x164497,_0x5abf4f),_0x4a57ca={'unitId':_0x2ea1a0,'subUnitId':_0x171e69,'drawingType':_0x579c28[_0x5142b1(0x261)],'drawingId':_0x5579f4,'transform':_0x164497,'sheetTransform':_0x30565e,'axisAlignSheetTransform':_0x5f4025},{unitId:_0x5185db,subUnitId:_0x23b88d,undo:_0x58c60d,redo:_0x1a97d0,objects:_0x36cc5b}=this['_drawingManagerService'][_0x5142b1(0x1c6)]([_0x4a57ca]);_0xe42b62[_0x5142b1(0x20c)]({'id':_0x553d2b['id'],'params':{'unitId':_0x5185db,'subUnitId':_0x23b88d,'op':_0x1a97d0,'objects':_0x36cc5b,'type':_0x13e9cb['UPDATE']}}),_0x17b1d4[_0x5142b1(0x20c)]({'id':_0x553d2b['id'],'params':{'unitId':_0x5185db,'subUnitId':_0x23b88d,'op':_0x58c60d,'objects':_0x36cc5b,'type':_0x13e9cb['UPDATE']}});}}else{let _0x41c0e2=_0x3496a3['getStartConnectInfo'](),_0x2dc016=_0x3496a3['getEndConnectInfo']();this[_0x5142b1(0x20f)](_0x2ea1a0,_0x171e69,_0x5579f4,_0x3496a3,_0x41c0e2,_0x2dc016,_0xe42b62,_0x17b1d4,_0x3afd27,_0x4ac1de);}}};Te=le([Z(0x0,_0x446a3b),Z(0x1,_0x201a83(_0x1c2c98)),Z(0x2,_0x201a83(_0xb3d7e9)),Z(0x3,_0x201a83(Q)),Z(0x4,_0x201a83(_0x392aaf)),Z(0x5,_0x201a83(_0x281679)),Z(0x6,_0x201a83(Ce))],Te);let Ee=class extends _0x50ff4f{constructor(_0xdbe91d,_0x22bcfa,_0x42abe3){const _0x16e1bb=_0x4e1758;super(),this[_0x16e1bb(0x231)]=_0xdbe91d,this[_0x16e1bb(0x220)]=_0x22bcfa,this['disposeWithMe'](_0x42abe3[_0x16e1bb(0x21c)](this));}[_0x4e1758(0x216)](_0x369774){const _0x56269b=_0x4e1758;let _0x49e1b3={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x56269b(0x24c)](_0x369774,_0x49e1b3);for(let [_0x577252,_0x54228f]of _0x369774[_0x56269b(0x1f3)])this[_0x56269b(0x1b0)](_0x369774,_0x577252,_0x54228f,_0x49e1b3);return _0x49e1b3;}[_0x4e1758(0x24c)](_0x2c49f2,_0xd61c20){const _0xc17cd3=_0x4e1758;if(_0x2c49f2[_0xc17cd3(0x219)]===_0xc17cd3(0x1db))for(let _0x573ca9 of _0x2c49f2[_0xc17cd3(0x1d7)]){let _0x12cd8c=_0x2c49f2[_0xc17cd3(0x1f3)][_0xc17cd3(0x225)](_0x573ca9),_0x53de25=this['_shapeService'][_0xc17cd3(0x1f9)](_0x2c49f2[_0xc17cd3(0x1f1)],_0x2c49f2['subUnitId'],_0x573ca9);(_0x12cd8c==null?void 0x0:_0x12cd8c[_0xc17cd3(0x1e4)])===_0x579c28[_0xc17cd3(0x261)]&&_0x53de25&&(_0xd61c20[_0xc17cd3(0x211)][_0xc17cd3(0x20c)]({'id':de['id'],'params':{'unitId':_0x2c49f2[_0xc17cd3(0x1f1)],'subUnitId':_0x2c49f2[_0xc17cd3(0x200)],'shapeId':_0x573ca9}}),_0xd61c20['undos'][_0xc17cd3(0x20c)]({'id':ue['id'],'params':{'unitId':_0x2c49f2[_0xc17cd3(0x1f1)],'subUnitId':_0x2c49f2[_0xc17cd3(0x200)],'shapeId':_0x573ca9,'shapeName':_0x53de25['getName'](),'shapeType':_0x53de25['getShapeType'](),'shapeData':_0x32fcde[_0xc17cd3(0x1cd)](_0x53de25[_0xc17cd3(0x25f)]())}}));}}['_planConnector'](_0x5116f3,_0x1e6786,_0x339ded,_0x238179){const _0x3d66d7=_0x4e1758;if(_0x339ded[_0x3d66d7(0x1e4)]!==_0x579c28[_0x3d66d7(0x261)]||_0x5116f3[_0x3d66d7(0x1d7)][_0x3d66d7(0x1f5)](_0x1e6786))return;let _0x242dde=this[_0x3d66d7(0x231)][_0x3d66d7(0x1f9)](_0x5116f3['unitId'],_0x5116f3[_0x3d66d7(0x200)],_0x1e6786);if(!_0x242dde||!_0x178a1e(_0x242dde[_0x3d66d7(0x239)]()))return;let _0x452eda=_0x242dde[_0x3d66d7(0x240)]();if(!(_0x5116f3[_0x3d66d7(0x1c1)][_0x3d66d7(0x1f5)](_0x1e6786)||_0x452eda!=null&&_0x452eda[_0x3d66d7(0x22e)]&&(_0x5116f3['updates'][_0x3d66d7(0x1f5)](_0x452eda[_0x3d66d7(0x22e)][_0x3d66d7(0x1e2)])||_0x5116f3[_0x3d66d7(0x1d7)][_0x3d66d7(0x1f5)](_0x452eda[_0x3d66d7(0x22e)][_0x3d66d7(0x1e2)]))||_0x452eda!=null&&_0x452eda['to']&&(_0x5116f3[_0x3d66d7(0x1c1)][_0x3d66d7(0x1f5)](_0x452eda['to']['shapeId'])||_0x5116f3[_0x3d66d7(0x1d7)][_0x3d66d7(0x1f5)](_0x452eda['to'][_0x3d66d7(0x1e2)]))))return;let _0x1802f1=_0x5116f3[_0x3d66d7(0x1c1)]['get'](_0x1e6786)??_0x339ded,_0x4502b3=this[_0x3d66d7(0x1bd)](_0x5116f3,_0x1802f1);if(!_0x4502b3)return;let _0x32265f=_0x404ba0(_0x4502b3);if(_0x32265f[_0x3d66d7(0x204)]<0x2)return;let _0x56efca=_0x32fcde['deepClone'](_0x452eda??{}),_0x5059dd=_0x56efca[_0x3d66d7(0x22e)]&&this[_0x3d66d7(0x258)](_0x5116f3,_0x56efca[_0x3d66d7(0x22e)][_0x3d66d7(0x1e2)],_0x56efca['from'][_0x3d66d7(0x237)]),_0x45ca35=_0x56efca['to']&&this[_0x3d66d7(0x258)](_0x5116f3,_0x56efca['to']['shapeId'],_0x56efca['to']['cxnIndex']);_0x56efca['from']&&!_0x5059dd&&delete _0x56efca[_0x3d66d7(0x22e)],_0x56efca['to']&&!_0x45ca35&&delete _0x56efca['to'];let _0x5f013e=_0x5059dd||_0x480a1d((_0x45ca35==null?void 0x0:_0x45ca35[_0x3d66d7(0x209)])??_0x32265f[_0x32265f[_0x3d66d7(0x204)]-0x1],_0x32265f[0x0]),_0x33c00a=_0x45ca35||_0x480a1d((_0x5059dd==null?void 0x0:_0x5059dd[_0x3d66d7(0x209)])??_0x32265f[0x0],_0x32265f[_0x32265f[_0x3d66d7(0x204)]-0x1]),_0x1a0d21=_0x150f21(_0x4502b3,_0x5f013e,_0x33c00a,_0x56efca);_0x1a0d21!=null&&_0x1a0d21[_0x3d66d7(0x216)]&&_0x1a0d21[_0x3d66d7(0x1bf)]&&_0x1a0d21[_0x3d66d7(0x23f)]&&(this[_0x3d66d7(0x1f8)](_0x5116f3,_0x1802f1,_0x1a0d21),_0x5116f3[_0x3d66d7(0x219)]===_0x3d66d7(0x1a2)?(_0x242dde[_0x3d66d7(0x1fc)](_0x1a0d21[_0x3d66d7(0x1bf)]),_0x242dde[_0x3d66d7(0x1fa)](_0x32fcde[_0x3d66d7(0x1cd)](_0x1a0d21[_0x3d66d7(0x23f)]),!0x1)):(_0x238179['redos'][_0x3d66d7(0x20c)]({'id':$['id'],'params':{'unitId':_0x5116f3[_0x3d66d7(0x1f1)],'subUnitId':_0x5116f3[_0x3d66d7(0x200)],'shapeId':_0x1e6786,'shapeType':_0x1a0d21[_0x3d66d7(0x1bf)],'shapeData':_0x32fcde['deepClone'](_0x1a0d21[_0x3d66d7(0x23f)]),'replace':!0x0}}),_0x238179[_0x3d66d7(0x1e1)][_0x3d66d7(0x20c)]({'id':$['id'],'params':{'unitId':_0x5116f3[_0x3d66d7(0x1f1)],'subUnitId':_0x5116f3['subUnitId'],'shapeId':_0x1e6786,'shapeType':_0x242dde[_0x3d66d7(0x239)](),'shapeData':_0x32fcde[_0x3d66d7(0x1cd)](_0x242dde[_0x3d66d7(0x25f)]()),'replace':!0x0}})));}['_resolveBinding'](_0x329ce8,_0x6d349,_0x45d8b0){const _0x5417aa=_0x4e1758;if(_0x329ce8['deletes'][_0x5417aa(0x1f5)](_0x6d349))return null;let _0x219cd4=_0x329ce8[_0x5417aa(0x1c1)]['get'](_0x6d349)??_0x329ce8[_0x5417aa(0x1f3)][_0x5417aa(0x225)](_0x6d349);if(!_0x219cd4)return null;let _0x15c3db=this[_0x5417aa(0x1bd)](_0x329ce8,_0x219cd4);return _0x15c3db?_0x37f0e6(_0x15c3db,_0x45d8b0):null;}[_0x4e1758(0x1bd)](_0x21d531,_0xf89466){const _0x326638=_0x4e1758;let _0x475179={'hostType':_0x1e8d7b[_0x326638(0x1ba)],'unitId':_0x21d531[_0x326638(0x1f1)],'subUnitId':_0x21d531[_0x326638(0x200)],'shapeId':_0xf89466[_0x326638(0x227)]},_0x340f05=this[_0x326638(0x220)][_0x326638(0x1a9)](_0x475179);return!_0x340f05||!_0xf89466[_0x326638(0x216)]?null:{..._0x340f05,'transform':{'left':_0xf89466[_0x326638(0x216)][_0x326638(0x1b8)]??0x0,'top':_0xf89466[_0x326638(0x216)][_0x326638(0x26a)]??0x0,'width':_0xf89466[_0x326638(0x216)][_0x326638(0x22b)]??0x0,'height':_0xf89466['transform'][_0x326638(0x213)]??0x0,'rotation':_0xf89466[_0x326638(0x216)]['angle']??0x0,'flipX':_0xf89466[_0x326638(0x216)][_0x326638(0x1d1)]??!0x1,'flipY':_0xf89466[_0x326638(0x216)]['flipY']??!0x1}};}['_applyUpdate'](_0x537e94,_0x5d29a4,_0x148979){const _0x4d2aa4=_0x4e1758;let _0x87cba3=_0x5d29a4,_0x33a06f={..._0x5d29a4[_0x4d2aa4(0x216)],'left':_0x148979['transform'][_0x4d2aa4(0x1b8)],'top':_0x148979[_0x4d2aa4(0x216)][_0x4d2aa4(0x26a)],'width':_0x148979['transform']['width'],'height':_0x148979[_0x4d2aa4(0x216)][_0x4d2aa4(0x213)],'angle':_0x148979[_0x4d2aa4(0x216)][_0x4d2aa4(0x24a)],'flipX':_0x148979[_0x4d2aa4(0x216)][_0x4d2aa4(0x1d1)],'flipY':_0x148979['transform']['flipY']},_0x2edcf8={..._0x87cba3,'transform':_0x33a06f,'sheetTransform':_0x55e9d6(_0x33a06f,_0x537e94[_0x4d2aa4(0x1a4)]),'axisAlignSheetTransform':_0x53a78f(_0x33a06f,_0x537e94[_0x4d2aa4(0x1a4)]),'data':{..._0x87cba3[_0x4d2aa4(0x1f2)],'shapeType':_0x148979[_0x4d2aa4(0x1bf)],'shapeData':_0x32fcde['deepClone'](_0x148979['shapeData'])}};_0x537e94[_0x4d2aa4(0x1c1)][_0x4d2aa4(0x1c0)](_0x5d29a4[_0x4d2aa4(0x227)],_0x2edcf8);}};Ee=le([Z(0x0,_0x201a83(Q)),Z(0x1,_0x201a83(Ce)),Z(0x2,_0x201a83(_0x103301))],Ee);let De=class extends _0x2abf53{constructor(_0x42c7f9=we,_0x293e0f,_0x2446bd){const _0x102007=_0x4e1758;super(),this[_0x102007(0x262)]=_0x42c7f9,this[_0x102007(0x1d2)]=_0x293e0f,this[_0x102007(0x20b)]=_0x2446bd;let {..._0x17cf33}=_0x8713b3({},we,this[_0x102007(0x262)]);this[_0x102007(0x20b)]['setConfig']('sheets-shape.config',_0x17cf33);}['onStarting'](){const _0x2078cf=_0x4e1758;let _0x1f016b=this['_injector'];[[ce],[Q],[Ce],[Ee],[Te]]['forEach'](_0x163155=>_0x1f016b[_0x2078cf(0x243)](_0x163155)),_0x51e20f(_0x1f016b,[[Q],[Ee],[Te]]);}};X(De,'type',_0x1e8d7b['UNIVER_SHEET']),X(De,_0x4e1758(0x228),_0x4e1758(0x21a)),X(De,_0x4e1758(0x1fd),be),X(De,_0x4e1758(0x268),xe),De=le([_0x39978e(_0x460a76,_0x14ff54,_0x223efa,_0x237476,_0x2b4b06),Z(0x1,_0x201a83(_0x3dddb4)),Z(0x2,_0x29256c)],De);function _0xf86d(){const _0x12e9f3=['_planDeletes','ang','getOwnPropertyDescriptor','_initCommandInterceptor','_sheetInterceptorService','sheet.command.toggle-shape-flip','disposeWithMe','angle','getId','1207155maahKq','range','getEndConnectInfo','_resolveBinding','4023260AbitNh','registerPluginResource','_sheetsShapeService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','delete','COMMAND','getShapeData','pushUndoRedo','DRAWING_SHAPE','_config','removeShape','_drawingManagerService','_disposed','string','9WHzdCZ','version','getSheetId','top','isLineShape','sheet.command.set-shape-text-vertical-toggle','getShapeDataById','decorate','default','symbol','clear','@univerjs-pro/sheets-shape','3227GYlLEc','resizeEnabled','refresh','bringForward','skeleton','_resourcesManagerService','sheet.command.set-shape-rotate','_addLineFollowShapeUpdates','40nlPhUR','getShape','_groupIds','MUTATION','flipY','sendBackward','UPDATE','keys','_planConnector','formula','_initSnapshot','filter','fill','params','78792rOCUUG','redos','left','_drawingService','UNIVER_SHEET','2007704hqkSyv','visible','_toSnapshot','bringToFront','shapeType','set','updates','back','shapeName','_shapeHostAdapterRegistry','fromJSON','getBatchUpdateOp','worldRect','onCommandExecute','sheet.mutation.insert-shape','_shapes','parse','isHorizontal','deepClone','updateContext','function','getAdjustValueByName','flipX','_injector','startX','index','name','sheet.mutation.update-shape-type','deletes','getSkeleton','getBasicShapeRelation','rotateEnabled','command','150XOkkcG','borderEnabled','isFrom','prototype','getDrawingData','undos','shapeId','sendToBack','drawingType','sheet.command.set-shape-drawing-data','_arrange','sheet.command.insert-shape','_sheetSkeletonService','lineShapeId','getBatchAddOp','_instanceService','cos','shapeChanged$','formulaBinding','toJSON','updateShape','unitId','data','originals','getConnectionSiteList','has','527566jZlZmg','entries','_applyUpdate','getShapeModel','setShapeData','INSERT','setShapeType','packageName','values','lineType','subUnitId','_getConnectPointInfo','hidden','_linesIds','length','getAdjustNames','onCommandExecuted','object','ensureSkeleton','point','getDrawingByParam','_configService','push','call','_shapeModelManagerMap','_addLineRerouteUpdates','selectable','preRedos','_deserializeShapeForUnit','height','256432UNbleo','forEach','transform','_serializeShapeForUnit','1.2.0','mode','SHEET_SHAPE_PLUGIN','constructor','register','find','front','getStartConnectInfo','_shapeAdapter','stringify','getLineShapeRelation','sheet.mutation.remove-shape','getShapeDisplayNames','get','position','drawingId','pluginName','getUnit','_commandService','width','defineProperty','preUndos','from','adjustValues','listShapesInUnit','_shapeService','result','backward','startY','description','_initCommands','cxnIndex','_ensureShapeModelManager','getShapeType','sheet.command.update-line-shape-resize','getName','sin','syncExecuteCommand','addShape','shapeData','getShapeRelation','insertShape','dispose','add','map','hostType','registerCommand','listShapes','hasShape','relation','rotation','sheet.mutation.update-shape-data'];_0xf86d=function(){return _0x12e9f3;};return _0xf86d();}export{ie as DEFAULT_SHAPE_HEIGHT,re as DEFAULT_SHAPE_WIDTH,fe as InsertShapeCommand,ue as InsertSheetsShapeMutation,de as RemoveSheetsShapeMutation,pe as SetShapeDrawingDataCommand,he as SetSheetsShapeRotateCommand,ge as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,De as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
1
+ const _0x1af8ba=_0x47ff;function _0x47ff(_0x19f213,_0x18c6e6){_0x19f213=_0x19f213-0x198;const _0x6c32e1=_0x6c32();let _0x47ff84=_0x6c32e1[_0x19f213];return _0x47ff84;}(function(_0x4006cb,_0x4c8cf2){const _0x6be83=_0x47ff,_0x4ddf4f=_0x4006cb();while(!![]){try{const _0x260f79=-parseInt(_0x6be83(0x259))/0x1+-parseInt(_0x6be83(0x1b7))/0x2+-parseInt(_0x6be83(0x22a))/0x3*(-parseInt(_0x6be83(0x1d6))/0x4)+-parseInt(_0x6be83(0x254))/0x5*(-parseInt(_0x6be83(0x234))/0x6)+-parseInt(_0x6be83(0x237))/0x7+parseInt(_0x6be83(0x1cf))/0x8*(-parseInt(_0x6be83(0x1a8))/0x9)+parseInt(_0x6be83(0x1a3))/0xa*(parseInt(_0x6be83(0x242))/0xb);if(_0x260f79===_0x4c8cf2)break;else _0x4ddf4f['push'](_0x4ddf4f['shift']());}catch(_0x197330){_0x4ddf4f['push'](_0x4ddf4f['shift']());}}}(_0x6c32,0x97a85));import{IShapeHostAdapterRegistry as _0x4a2e80,ShapeModel as _0x3f693b,UniverShapePlugin as _0x3937ec,buildConnectorEndpointUpdate as _0x45d483,canApplyShapeFormulaLastValue as _0x994700,computeConnectorRouteLayout as _0x2f507a,createDefaultInsertedShapeData as _0xedef7a,createFreeConnectorPointInfo as _0x4ab8b7,createUniqueShapeName as _0x2d45d8,getBasicShapeRotateBound as _0x2c4308,isConnectorShape as _0x551829,resolveConnectorRoutePoints as _0x2441fb,resolveShapeConnectionPoint as _0x30d25e,routeConnectorLineShape as _0x3c1584}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x2aecfa,CommandType as _0x5b5f6b,DependentOn as _0x29d693,Disposable as _0x579ef8,DrawingTypeEnum as _0x512154,ICommandService as _0x4667d0,IConfigService as _0x51005e,IResourceManagerService as _0x50518d,IUndoRedoService as _0x27588f,IUniverInstanceService as _0x347354,Inject as _0x2e9398,Injector as _0x69fd41,Plugin as _0x1d0c76,Tools as _0x1030c0,UniverInstanceType as _0x2c36da,generateRandomId as _0x3f21a1,merge as _0x32805e,sequenceExecute as _0x2c8eed,touchDependencies as _0x4a0a9e}from'@univerjs/core';import{SheetInterceptorService as _0x2d02fd,SheetSkeletonService as _0x2f9e3d,UniverSheetsPlugin as _0x5e821c,getSheetCommandTarget as _0x4cca1b}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x28fe77,DrawingApplyType as _0x2931f5,ISheetDrawingService as _0x54d918,InsertSheetDrawingCommand as _0x1a0475,RemoveSheetDrawingCommand as _0x2e8a2b,SetDrawingApplyMutation as _0x2c8a28,SetDrawingArrangeCommand as _0x3b2e6f,SetSheetDrawingCommand as _0x2ef369,SheetDrawingAnchorType as _0x1c850a,SheetDrawingTransformPlanService as _0x67a695,UniverSheetsDrawingPlugin as _0x2768d5,transformToAxisAlignPosition as _0x4504c2,transformToDrawingPosition as _0x56c1f4}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x4e5f89}from'@univerjs-pro/license';import{IDrawingManagerService as _0x1ade4e,UniverDrawingPlugin as _0x4891c7}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x2ff988){'@babel/helpers - typeof';const _0x1338e5=_0x47ff;return ae=typeof Symbol==_0x1338e5(0x25a)&&typeof Symbol[_0x1338e5(0x200)]==_0x1338e5(0x1fc)?function(_0x23908b){return typeof _0x23908b;}:function(_0x1899bf){const _0xc18098=_0x1338e5;return _0x1899bf&&typeof Symbol==_0xc18098(0x25a)&&_0x1899bf[_0xc18098(0x1ef)]===Symbol&&_0x1899bf!==Symbol['prototype']?_0xc18098(0x1fc):typeof _0x1899bf;},ae(_0x2ff988);}function _0x6c32(){const _0x31ec3e=['hidden','1.3.0','values','1059582hMzONF','_planDeletes','_sheetSkeletonService','8413573pfhlSf','_resolveBinding','cxnIndex','forEach','bringForward','add','_addLineFollowShapeUpdates','_applyUpdate','getShape','flipY','clear','220rgaUaz','flipX','has','ang','getShapeType','relation','@univerjs-pro/sheets-shape','_drawingManagerService','listShapesInUnit','getDrawingByParam','drawingType','_deserializeShapeForUnit','keys','pushUndoRedo','sheet.mutation.remove-shape','_arrange','length','from','15fRnqQf','getEndConnectInfo','_getConnectPointInfo','getSheets','sheet.command.set-shape-text-vertical-toggle','368407vezDaP','function','_disposed','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','description','_shapes','setShapeData','getShapeData','shapeData','deepClone','UNIVER_SHEET','width','object','fromJSON','INSERT','shapeChanged$','push','MUTATION','getLineShapeRelation','toJSON','disposeWithMe','rotation','subUnitId','951880isTKFn','_serializeShapeForUnit','undos','startY','decorate','805284yyxhvA','delete','onCommandExecuted','getShapeDisplayNames','visible','_addLineRerouteUpdates','Both','name','listShapes','top','isFrom','version','setShapeType','setZOrder','point','1016960aQeKha','formulaBinding','bringToFront','refresh','startX','mode','COMMAND','drawingId','dispose','_ensureShapeModelManager','hostType','sheet.command.toggle-shape-flip','UPDATE','createShape','transform','cos','params','packageName','_configService','_initCommandInterceptor','preUndos','getDrawingData','registerCommand','getShapeTextData','80LsgiCH','_instanceService','addShape','_initSnapshot','_sheetInterceptorService','register','getUnit','92OkqWNs','pluginName','updateShape','_shapeHostAdapterRegistry','result','_sheetsShapeService','position','getName','filter','getConnectionSiteList','worldRect','shapeType','getShapeDataById','adjustValues','defineProperty','getShapeModel','stringify','isHorizontal','shapeId','get','_linesIds','getOwnPropertyDescriptor','_drawingService','updates','data','constructor','index','REMOVE','sheet.command.set-shape-rotate','fill','selectable','sheet.command.update-connector-relation','ensureSkeleton','angle','front','getShapeRelation','toPrimitive','skeleton','symbol','_shapeService','DRAWING_SHAPE','borderEnabled','iterator','onStarting','call','getBasicShapeRelation','insertShape','rotateEnabled','removeLinePoints','back','getSkeleton','originals','hasShape','preRedos','flatMap','sheet.command.update-line-shape-resize','sendToBack','_planConnector','set','getAdjustValueByName','backward','left','lineType','registerPluginResource','sin','unitId','map','type','deletes','syncExecuteCommand','height','_shapeAdapter','_shapeModelManagerMap','_injector','command','_config','_toSnapshot','SHEET_SHAPE_PLUGIN','_commandService','getStartConnectInfo','sheet.command.insert-shape','getBatchUpdateOp','parse','_resourcesManagerService','151464FvDgKD','_initCommands','redos','removeShape','resizeEnabled','onCommandExecute','string'];_0x6c32=function(){return _0x31ec3e;};return _0x6c32();}function oe(_0x51ed8e,_0xf3b8e){const _0xc0ab99=_0x47ff;if(ae(_0x51ed8e)!=_0xc0ab99(0x198)||!_0x51ed8e)return _0x51ed8e;var _0x28cddf=_0x51ed8e[Symbol[_0xc0ab99(0x1fa)]];if(_0x28cddf!==void 0x0){var _0x1a95b9=_0x28cddf[_0xc0ab99(0x202)](_0x51ed8e,_0xf3b8e||'default');if(ae(_0x1a95b9)!=_0xc0ab99(0x198))return _0x1a95b9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xf3b8e===_0xc0ab99(0x230)?String:Number)(_0x51ed8e);}function se(_0xf221ff){const _0xda5d54=_0x47ff;var _0x443cde=oe(_0xf221ff,'string');return ae(_0x443cde)==_0xda5d54(0x1fc)?_0x443cde:_0x443cde+'';}function X(_0x53a279,_0x15570a,_0x88afeb){const _0x38e274=_0x47ff;return(_0x15570a=se(_0x15570a))in _0x53a279?Object[_0x38e274(0x1e4)](_0x53a279,_0x15570a,{'value':_0x88afeb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53a279[_0x15570a]=_0x88afeb,_0x53a279;}var ce=class extends _0x579ef8{constructor(){const _0x59f34f=_0x47ff;super(),X(this,_0x59f34f(0x25e),new Map()),X(this,'_linesIds',new Set()),X(this,'_groupIds',new Set());}[_0x1af8ba(0x1d1)](_0x4fd733,_0x42b7bb,_0x23336e,_0x5894d3){const _0x350c82=_0x1af8ba;let _0x19da89=new _0x3f693b(_0x4fd733,_0x42b7bb,_0x23336e,_0x5894d3);return this[_0x350c82(0x25e)][_0x350c82(0x210)](_0x42b7bb,_0x19da89),_0x551829(_0x4fd733)&&this[_0x350c82(0x1ea)]['add'](_0x42b7bb),_0x19da89;}[_0x1af8ba(0x203)](_0x45c59f){const _0x25c6f3=_0x1af8ba;let _0x2c4910=[];for(let _0x208db3 of this[_0x25c6f3(0x1ea)]){let _0x1cff67=this[_0x25c6f3(0x25e)]['get'](_0x208db3);if(_0x1cff67){let _0x1a0e5a=_0x1cff67['getShapeRelation']();if(_0x1a0e5a){var _0x185edc,_0x158c3f;((_0x185edc=_0x1a0e5a[_0x25c6f3(0x253)])==null?void 0x0:_0x185edc['shapeId'])===_0x45c59f&&_0x2c4910['push']({..._0x1a0e5a[_0x25c6f3(0x253)],'lineShapeId':_0x208db3,'isFrom':!0x0}),((_0x158c3f=_0x1a0e5a['to'])==null?void 0x0:_0x158c3f[_0x25c6f3(0x1e8)])===_0x45c59f&&_0x2c4910[_0x25c6f3(0x19c)]({..._0x1a0e5a['to'],'lineShapeId':_0x208db3,'isFrom':!0x1});}}}return _0x2c4910;}[_0x1af8ba(0x19e)](_0x15ed5f){const _0x1efe09=_0x1af8ba;let _0x2abfca=this[_0x1efe09(0x25e)][_0x1efe09(0x1e9)](_0x15ed5f);if(_0x2abfca)return _0x2abfca[_0x1efe09(0x1f9)]();}[_0x1af8ba(0x246)](_0x1da0fa){const _0x24f931=_0x1af8ba;let _0x5928ea=this[_0x24f931(0x25e)][_0x24f931(0x1e9)](_0x1da0fa);if(_0x5928ea)return _0x5928ea[_0x24f931(0x246)]();}[_0x1af8ba(0x20a)](_0x5a6d82){const _0x4b6967=_0x1af8ba;return this[_0x4b6967(0x25e)][_0x4b6967(0x244)](_0x5a6d82);}[_0x1af8ba(0x1ab)](){const _0x1345f3=_0x1af8ba;return Array[_0x1345f3(0x253)](this[_0x1345f3(0x25e)][_0x1345f3(0x233)]())[_0x1345f3(0x218)](_0x49f8cb=>_0x49f8cb[_0x1345f3(0x1dd)]()||_0x49f8cb['getId']());}[_0x1af8ba(0x22d)](_0x2c8b83){const _0x55e1bc=_0x1af8ba;let _0x39fce6=this[_0x55e1bc(0x25e)][_0x55e1bc(0x1e9)](_0x2c8b83);_0x39fce6&&(_0x551829(_0x39fce6[_0x55e1bc(0x246)]())&&this['_linesIds'][_0x55e1bc(0x1a9)](_0x2c8b83),this['_shapes']['delete'](_0x2c8b83));}['toJSON'](){const _0xc52619=_0x1af8ba;let _0x36f6e2=[];return this[_0xc52619(0x25e)][_0xc52619(0x23a)](_0x24788a=>{const _0x5d1773=_0xc52619;_0x36f6e2[_0x5d1773(0x19c)](_0x24788a[_0x5d1773(0x19f)]());}),_0x36f6e2;}[_0x1af8ba(0x199)](_0x5154b3){const _0x15e400=_0x1af8ba;for(let _0x566b10 of _0x5154b3){let {id:_0x48a3cb,shapeType:_0x117e82,name:_0x1090d2}=_0x566b10,_0x32f062=this['addShape'](_0x117e82,_0x48a3cb,_0x566b10[_0x15e400(0x261)],_0x1090d2);_0x32f062&&_0x32f062['isLineShape']()&&this[_0x15e400(0x1ea)][_0x15e400(0x23c)](_0x48a3cb);}}['dispose'](){const _0x2f8bc2=_0x1af8ba;this[_0x2f8bc2(0x25b)]||(this[_0x2f8bc2(0x25e)][_0x2f8bc2(0x23a)](_0x348b70=>{const _0xaf1ac4=_0x2f8bc2;_0x348b70[_0xaf1ac4(0x1bf)]();}),this['_shapes'][_0x2f8bc2(0x241)](),this['_linesIds'][_0x2f8bc2(0x241)](),this['_groupIds'][_0x2f8bc2(0x241)](),super[_0x2f8bc2(0x1bf)]());}};function Z(_0x3b8753,_0x15ea3e){return function(_0x261940,_0x1b6bb5){_0x15ea3e(_0x261940,_0x1b6bb5,_0x3b8753);};}function le(_0x25f20e,_0x3235a8,_0x41d60b,_0x280526){const _0x5507fa=_0x1af8ba;var _0x515906=arguments['length'],_0x20679c=_0x515906<0x3?_0x3235a8:_0x280526===null?_0x280526=Object[_0x5507fa(0x1eb)](_0x3235a8,_0x41d60b):_0x280526,_0x1b648e;if(typeof Reflect==_0x5507fa(0x198)&&typeof Reflect[_0x5507fa(0x1a7)]==_0x5507fa(0x25a))_0x20679c=Reflect[_0x5507fa(0x1a7)](_0x25f20e,_0x3235a8,_0x41d60b,_0x280526);else{for(var _0x4df34d=_0x25f20e['length']-0x1;_0x4df34d>=0x0;_0x4df34d--)(_0x1b648e=_0x25f20e[_0x4df34d])&&(_0x20679c=(_0x515906<0x3?_0x1b648e(_0x20679c):_0x515906>0x3?_0x1b648e(_0x3235a8,_0x41d60b,_0x20679c):_0x1b648e(_0x3235a8,_0x41d60b))||_0x20679c);}return _0x515906>0x3&&_0x20679c&&Object[_0x5507fa(0x1e4)](_0x3235a8,_0x41d60b,_0x20679c),_0x20679c;}let Q=class extends _0x579ef8{constructor(_0x1c89ad){const _0x34515e=_0x1af8ba;super(),this[_0x34515e(0x229)]=_0x1c89ad,X(this,'_shapeModelManagerMap',new Map()),this[_0x34515e(0x1d2)]();}[_0x1af8ba(0x1c0)](_0x2418fb,_0x3a3058){const _0x542525=_0x1af8ba;let _0x23a9a5=this[_0x542525(0x21e)][_0x542525(0x1e9)](_0x2418fb);_0x23a9a5||(_0x23a9a5=new Map(),this[_0x542525(0x21e)][_0x542525(0x210)](_0x2418fb,_0x23a9a5));let _0x25f49f=_0x23a9a5['get'](_0x3a3058);return _0x25f49f||(_0x25f49f=new ce(),_0x23a9a5[_0x542525(0x210)](_0x3a3058,_0x25f49f)),_0x25f49f;}['insertShape'](_0x54386e,_0x331ed7,_0x4595f4,_0xc85281,_0x536a56,_0x57277e){const _0x3546b4=_0x1af8ba;this[_0x3546b4(0x1c0)](_0x54386e,_0x331ed7)[_0x3546b4(0x1d1)](_0x4595f4,_0xc85281,_0x536a56,_0x57277e);}[_0x1af8ba(0x22d)](_0x22cb8f,_0xe27511,_0x28d2c0){const _0xec8112=_0x1af8ba;this[_0xec8112(0x1c0)](_0x22cb8f,_0xe27511)[_0xec8112(0x22d)](_0x28d2c0);}['getBasicShapeType'](_0x2c06cf,_0x46c8eb,_0x15c17e){const _0x3fe5c3=_0x1af8ba;return this[_0x3fe5c3(0x1c0)](_0x2c06cf,_0x46c8eb)[_0x3fe5c3(0x246)](_0x15c17e);}[_0x1af8ba(0x246)](_0x4b440b,_0x36525e,_0x1556f8){const _0x44d06a=_0x1af8ba;return this[_0x44d06a(0x1c0)](_0x4b440b,_0x36525e)[_0x44d06a(0x246)](_0x1556f8);}[_0x1af8ba(0x20a)](_0x1ba17a,_0x5df775,_0x499e07){const _0x33e234=_0x1af8ba;return this[_0x33e234(0x1c0)](_0x1ba17a,_0x5df775)[_0x33e234(0x20a)](_0x499e07);}['getShapeTypeById'](_0x30d602,_0x123d16,_0x3e8fdf){const _0x5e82fc=_0x1af8ba;return this[_0x5e82fc(0x1c0)](_0x30d602,_0x123d16)['getShapeType'](_0x3e8fdf);}[_0x1af8ba(0x1e2)](_0x1c0b68,_0x55f167,_0x58580b){const _0x25f2d1=_0x1af8ba;let _0x260e82=this[_0x25f2d1(0x1c0)](_0x1c0b68,_0x55f167);if(!_0x260e82[_0x25f2d1(0x246)](_0x58580b))return;let _0x35cf76=_0x260e82['_shapes'][_0x25f2d1(0x1e9)](_0x58580b);if(_0x35cf76)return _0x35cf76[_0x25f2d1(0x260)]();}['getShapeDisplayNames'](_0x1e75cb,_0x3cb391){const _0x1246d9=_0x1af8ba;return this[_0x1246d9(0x1c0)](_0x1e75cb,_0x3cb391)[_0x1246d9(0x1ab)]();}[_0x1af8ba(0x1e5)](_0x31ddd6,_0xe77b0c,_0x43005d){const _0x1521a5=_0x1af8ba;return this[_0x1521a5(0x1c0)](_0x31ddd6,_0xe77b0c)[_0x1521a5(0x25e)][_0x1521a5(0x1e9)](_0x43005d);}[_0x1af8ba(0x203)](_0x30c509,_0x3c8185,_0x3a555d){const _0xd6826b=_0x1af8ba;return this[_0xd6826b(0x1c0)](_0x30c509,_0x3c8185)[_0xd6826b(0x203)](_0x3a555d);}[_0x1af8ba(0x19e)](_0x2fb2dd,_0x308728,_0x5eb8c1){const _0x1245be=_0x1af8ba;let _0x3a078d=this[_0x1245be(0x1c0)](_0x2fb2dd,_0x308728)[_0x1245be(0x25e)]['get'](_0x5eb8c1);if(_0x3a078d)return _0x3a078d[_0x1245be(0x1f9)]();}[_0x1af8ba(0x1b4)](){}['_serializeShapeForUnit'](_0x134e82){const _0x54b11f=_0x1af8ba;let _0x40ca5c={},_0x30942b=this[_0x54b11f(0x21e)][_0x54b11f(0x1e9)](_0x134e82);return _0x30942b&&_0x30942b[_0x54b11f(0x23a)]((_0x3e9fc0,_0x59bcf8)=>{const _0x5cb8d7=_0x54b11f;let _0x4f383e=_0x3e9fc0['toJSON']();_0x4f383e[_0x5cb8d7(0x252)]>0x0&&(_0x40ca5c[_0x59bcf8]=_0x4f383e);}),JSON[_0x54b11f(0x1e6)](_0x40ca5c);}[_0x1af8ba(0x24d)](_0x49dbf1,_0x19e7c0){const _0x5bcfb5=_0x1af8ba;Object[_0x5bcfb5(0x24e)](_0x19e7c0)[_0x5bcfb5(0x23a)](_0x54d347=>{const _0x14b002=_0x5bcfb5;this[_0x14b002(0x1c0)](_0x49dbf1,_0x54d347)[_0x14b002(0x199)](_0x19e7c0[_0x54d347]);});}[_0x1af8ba(0x19f)](){const _0xe0fc72=_0x1af8ba;let _0x2d59ab={};return this['_shapeModelManagerMap'][_0xe0fc72(0x23a)]((_0x401307,_0x5b2cf6)=>{const _0x10c6fa=_0xe0fc72;_0x2d59ab[_0x5b2cf6]={},_0x401307[_0x10c6fa(0x23a)]((_0x59c611,_0x168bba)=>{const _0x37ffba=_0x10c6fa;_0x2d59ab[_0x5b2cf6][_0x168bba]=_0x59c611[_0x37ffba(0x19f)]();});}),_0x2d59ab;}[_0x1af8ba(0x199)](_0x5e74bd){const _0x5ceb16=_0x1af8ba;Object[_0x5ceb16(0x24e)](_0x5e74bd)[_0x5ceb16(0x23a)](_0x322878=>{const _0x74abb=_0x5ceb16;let _0x149d0c=_0x5e74bd[_0x322878];Object[_0x74abb(0x24e)](_0x149d0c)['forEach'](_0x181d16=>{const _0x535c5e=_0x74abb;this[_0x535c5e(0x1c0)](_0x322878,_0x181d16)['fromJSON'](_0x149d0c[_0x181d16]);});});}[_0x1af8ba(0x1d2)](){const _0x548c65=_0x1af8ba;this['_resourcesManagerService'][_0x548c65(0x215)]({'pluginName':_0x548c65(0x223),'businesses':[_0x2c36da[_0x548c65(0x263)]],'toJson':_0x529ba4=>this[_0x548c65(0x1a4)](_0x529ba4),'parseJson':_0x56b391=>JSON[_0x548c65(0x228)](_0x56b391),'onLoad':(_0x500e2e,_0x556100)=>{const _0x55a03f=_0x548c65;this[_0x55a03f(0x24d)](_0x500e2e,_0x556100);},'onUnLoad':_0x111bb0=>{const _0x349d93=_0x548c65;let _0x3487fd=this[_0x349d93(0x21e)][_0x349d93(0x1e9)](_0x111bb0);_0x3487fd&&(_0x3487fd[_0x349d93(0x23a)](_0x5b20c4=>{const _0x3c84a1=_0x349d93;_0x5b20c4[_0x3c84a1(0x1bf)]();}),this[_0x349d93(0x21e)][_0x349d93(0x1a9)](_0x111bb0));}});}[_0x1af8ba(0x1bf)](){const _0x4ff163=_0x1af8ba;this['_shapeModelManagerMap'][_0x4ff163(0x23a)](_0x3ffa1d=>{_0x3ffa1d['forEach'](_0x64979c=>{const _0xf2ec24=_0x47ff;_0x64979c[_0xf2ec24(0x1bf)]();});});}};Q=le([Z(0x0,_0x50518d)],Q);const ue={'id':'sheet.mutation.insert-shape','type':_0x5b5f6b[_0x1af8ba(0x19d)],'handler':(_0x29d226,_0x40245c)=>{const _0x422e96=_0x1af8ba;let {unitId:_0x215821,subUnitId:_0x20a140,shapeType:_0x3d67ad,shapeId:_0x366ac8,shapeName:_0x1e0d52,shapeData:_0x4138fb}=_0x40245c;return _0x29d226[_0x422e96(0x1e9)](Q)[_0x422e96(0x204)](_0x215821,_0x20a140,_0x3d67ad,_0x366ac8,_0x1030c0[_0x422e96(0x262)](_0x4138fb),_0x1e0d52),!0x0;}},de={'id':_0x1af8ba(0x250),'type':_0x5b5f6b['MUTATION'],'handler':(_0x46453d,_0x3e0e98)=>{const _0x1286a5=_0x1af8ba;let {unitId:_0x5c17c6,subUnitId:_0x2b4cbf,shapeId:_0x122999}=_0x3e0e98;return _0x46453d[_0x1286a5(0x1e9)](Q)[_0x1286a5(0x22d)](_0x5c17c6,_0x2b4cbf,_0x122999),!0x0;}},fe={'type':_0x5b5f6b['COMMAND'],'id':_0x1af8ba(0x226),'handler':(_0x59c64a,_0x3408ed)=>{const _0x172a65=_0x1af8ba;let _0x3cb6d1=_0x4cca1b(_0x59c64a[_0x172a65(0x1e9)](_0x347354),_0x3408ed);if(!_0x3cb6d1)return!0x1;let _0x42ed2d=_0x59c64a[_0x172a65(0x1e9)](_0x2f9e3d),{unitId:_0x1ca8d9,subUnitId:_0x109e79}=_0x3cb6d1,_0x5b7e64=_0x42ed2d[_0x172a65(0x1f6)](_0x1ca8d9,_0x109e79);if(!_0x5b7e64)return!0x1;let _0x3c1e7b=_0x59c64a[_0x172a65(0x1e9)](_0x4667d0),_0x12d084=_0x59c64a[_0x172a65(0x1e9)](_0x27588f),_0x42f9f8=_0x59c64a[_0x172a65(0x1e9)](_0x2d02fd),_0x11b879=_0x59c64a[_0x172a65(0x1e9)](_0x54d918),_0x361feb=_0x59c64a[_0x172a65(0x1e9)](Q),{shapeType:_0x4397c8}=_0x3408ed,_0x54e89e=_0x3408ed[_0x172a65(0x261)]??_0xedef7a(_0x4397c8),_0x3afb8c=_0x3408ed[_0x172a65(0x1e8)]||_0x3f21a1(),_0x1febda={'unitId':_0x1ca8d9,'subUnitId':_0x109e79,'shapeId':_0x3afb8c,'shapeName':_0x3408ed['shapeName']??_0x2d45d8(_0x4397c8,_0x361feb[_0x172a65(0x1ab)](_0x1ca8d9,_0x109e79)),'shapeType':_0x4397c8,'shapeData':_0x54e89e},_0x2bfdec=_0x3408ed[_0x172a65(0x264)]||0xc8,_0xde3e66=_0x3408ed[_0x172a65(0x21c)]||0xc8,_0x3c3de1=0x0,_0x5804ab=0x0;if(_0x3408ed[_0x172a65(0x1dc)]){let {x:_0x2cc7e7,y:_0x5e2de1}=_0x3408ed['position'];_0x3c3de1=_0x2cc7e7,_0x5804ab=_0x5e2de1;}else{if(_0x3408ed['range']){let {startRow:_0x2fa4b0,startColumn:_0x4848a9}=_0x3408ed['range'],_0x2376b7=_0x5b7e64['getCellWithCoordByIndex'](_0x2fa4b0,_0x4848a9);_0x3c3de1=_0x2376b7[_0x172a65(0x1bb)]+0xa,_0x5804ab=_0x2376b7[_0x172a65(0x1a6)]+0xa;}}let _0x3213a9={'left':_0x3c3de1,'top':_0x5804ab,'width':_0x2bfdec,'height':_0xde3e66,'angle':_0x3408ed[_0x172a65(0x1a1)]??0x0,'flipX':_0x3408ed['flipX']??!0x1,'flipY':_0x3408ed[_0x172a65(0x240)]??!0x1},_0x3f4c94=_0x56c1f4(_0x3213a9,_0x5b7e64),_0x25fd4a=_0x4504c2(_0x3213a9,_0x5b7e64),_0x5122b3={'unitId':_0x1ca8d9,'subUnitId':_0x109e79,'drawingId':_0x3afb8c,'drawingType':_0x512154[_0x172a65(0x1fe)],'anchorType':_0x1c850a[_0x172a65(0x1ae)],'name':_0x3408ed[_0x172a65(0x1af)],'description':_0x3408ed[_0x172a65(0x25d)],'sheetTransform':_0x3f4c94,'transform':_0x3213a9,'data':{'shapeType':_0x4397c8,'shapeData':_0x54e89e},'axisAlignSheetTransform':_0x25fd4a,'allowTransform':!0x0,'hidden':_0x3408ed[_0x172a65(0x1ac)]===!0x1,'selectable':_0x3408ed[_0x172a65(0x1f4)]??!0x0};_0x551829(_0x4397c8)&&(_0x5122b3['data'][_0x172a65(0x1f3)]=!0x1,_0x5122b3[_0x172a65(0x1ee)][_0x172a65(0x205)]=!0x1,_0x5122b3[_0x172a65(0x1ee)][_0x172a65(0x22e)]=!0x1,_0x5122b3[_0x172a65(0x1ee)][_0x172a65(0x1ff)]=!0x1,_0x5122b3[_0x172a65(0x1c5)]['rotateEnabled']=!0x1,_0x5122b3['transform'][_0x172a65(0x22e)]=!0x1,_0x5122b3[_0x172a65(0x1c5)][_0x172a65(0x1ff)]=!0x1);let {undo:_0xc2fd21,redo:_0x64c47d,objects:_0xfdd0d4}=_0x11b879['getBatchAddOp']([_0x5122b3]),_0x37c183=_0x42f9f8['onCommandExecute']({'id':_0x1a0475['id'],'params':{'unitId':_0x1ca8d9,'drawings':[_0x5122b3]}}),_0xd23d80=[..._0x37c183[_0x172a65(0x20b)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0x1ca8d9,'subUnitId':_0x109e79,'op':_0x64c47d,'objects':_0xfdd0d4,'type':_0x2931f5[_0x172a65(0x19a)]}},{'id':_0x28fe77['id'],'params':[_0x1ca8d9]},..._0x37c183[_0x172a65(0x22c)],{'id':ue['id'],'params':_0x1febda}],_0x140733=[{'id':de['id'],'params':{'unitId':_0x1ca8d9,'subUnitId':_0x109e79,'shapeId':_0x3afb8c}},..._0x37c183[_0x172a65(0x1cb)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0x1ca8d9,'subUnitId':_0x109e79,'op':_0xc2fd21,'objects':_0xfdd0d4,'type':_0x2931f5[_0x172a65(0x1f1)]}},{'id':_0x28fe77['id'],'params':[_0x1ca8d9]},..._0x37c183['undos']];return _0x2c8eed(_0xd23d80,_0x3c1e7b)[_0x172a65(0x1da)]?(_0x12d084[_0x172a65(0x24f)]({'unitID':_0x1ca8d9,'undoMutations':_0x140733,'redoMutations':_0xd23d80}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x5b5f6b[_0x1af8ba(0x19d)],'handler':(_0x42db3d,_0x2162f8)=>{const _0x33f0aa=_0x1af8ba;let {unitId:_0x3517fb,subUnitId:_0x944abc,shapeType:_0x25dd7d,shapeId:_0x5186b7,shapeData:_0x4f485e,replace:_0x465077,formulaLastValueGuard:_0x51f9fc}=_0x2162f8,_0x3a768f=_0x42db3d[_0x33f0aa(0x1e9)](Q)[_0x33f0aa(0x1e5)](_0x3517fb,_0x944abc,_0x5186b7);if(_0x3a768f){var _0x4c6f8f;if(!_0x994700(_0x42db3d,{'hostType':_0x2c36da[_0x33f0aa(0x263)],'unitId':_0x3517fb,'subUnitId':_0x944abc,'shapeId':_0x5186b7},(_0x4c6f8f=_0x3a768f[_0x33f0aa(0x260)]()[_0x33f0aa(0x1b8)])==null?void 0x0:_0x4c6f8f['formula'],_0x51f9fc))return!0x0;_0x25dd7d!==void 0x0&&_0x3a768f['setShapeType'](_0x25dd7d),_0x4f485e&&(_0x3a768f==null||_0x3a768f[_0x33f0aa(0x25f)](_0x1030c0[_0x33f0aa(0x262)](_0x4f485e),!_0x465077));}return!0x0;}},pe={'type':_0x5b5f6b[_0x1af8ba(0x1bd)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x433c04,_0x4d97b9)=>{const _0x119d1c=_0x1af8ba;let _0x4e5027=_0x4cca1b(_0x433c04[_0x119d1c(0x1e9)](_0x347354),_0x4d97b9);if(!_0x4e5027)return!0x1;let _0x117107=_0x433c04[_0x119d1c(0x1e9)](_0x2f9e3d),{unitId:_0xb3985,subUnitId:_0x4dfecb}=_0x4e5027,_0x15a3f2=_0x117107[_0x119d1c(0x1f6)](_0xb3985,_0x4dfecb);if(!_0x15a3f2)return!0x1;let _0x5dbf5e=_0x433c04[_0x119d1c(0x1e9)](Q),{shapeId:_0x4bd69b,shapeType:_0x4b0ed6,shapeData:_0x1b8775,position:_0x5e3ec7,width:_0x440e2a,height:_0x15a43f}=_0x4d97b9,_0x5b27b9=_0x5dbf5e[_0x119d1c(0x1e5)](_0xb3985,_0x4dfecb,_0x4bd69b);if(!_0x5b27b9)return!0x1;let _0x10cd41=_0x433c04[_0x119d1c(0x1e9)](_0x4667d0),_0x5090bd=_0x433c04[_0x119d1c(0x1e9)](_0x27588f),_0x13f6ec=_0x433c04[_0x119d1c(0x1e9)](_0x2d02fd),_0x4d73d8=_0x433c04[_0x119d1c(0x1e9)](_0x54d918),_0x415138={'unitId':_0xb3985,'subUnitId':_0x4dfecb,'shapeId':_0x4bd69b,'shapeType':_0x4b0ed6,'shapeData':_0x1b8775,'replace':!0x0},_0x298ba0=_0x5b27b9[_0x119d1c(0x246)](),_0x2271d9=_0x5b27b9[_0x119d1c(0x260)](),{x:_0x288e51,y:_0x408f12}=_0x5e3ec7,_0x160897={'left':_0x288e51,'top':_0x408f12,'width':_0x440e2a,'height':_0x15a43f,'angle':_0x4d97b9[_0x119d1c(0x1a1)]??0x0,'flipX':_0x4d97b9[_0x119d1c(0x243)]??!0x1,'flipY':_0x4d97b9[_0x119d1c(0x240)]??!0x1},_0x17c46a=_0x56c1f4(_0x160897,_0x15a3f2),_0x42b3f5=_0x4504c2(_0x160897,_0x15a3f2),_0x2e5d75={'unitId':_0xb3985,'subUnitId':_0x4dfecb,'drawingId':_0x4bd69b,'drawingType':_0x512154[_0x119d1c(0x1fe)],'name':_0x4d97b9['name'],'description':_0x4d97b9['description'],'sheetTransform':_0x17c46a,'transform':_0x160897,'data':{'shapeType':_0x4b0ed6,'shapeData':_0x1b8775},'axisAlignSheetTransform':_0x42b3f5,'allowTransform':!0x0,'hidden':!_0x4d97b9[_0x119d1c(0x1ac)],'selectable':_0x4d97b9[_0x119d1c(0x1f4)]};_0x551829(_0x4b0ed6)&&(_0x2e5d75[_0x119d1c(0x1ee)][_0x119d1c(0x1f3)]=!0x1,_0x2e5d75['data']['rotateEnabled']=!0x1,_0x2e5d75[_0x119d1c(0x1ee)][_0x119d1c(0x22e)]=!0x1,_0x2e5d75['data'][_0x119d1c(0x1ff)]=!0x1,_0x2e5d75[_0x119d1c(0x1c5)][_0x119d1c(0x205)]=!0x1,_0x2e5d75['transform']['resizeEnabled']=!0x1,_0x2e5d75[_0x119d1c(0x1c5)][_0x119d1c(0x1ff)]=!0x1);let {undo:_0x3f486d,redo:_0x4f55d2,objects:_0x27d435}=_0x4d73d8['getBatchUpdateOp']([_0x2e5d75]),_0x1a688e=_0x13f6ec['onCommandExecute']({'id':_0x2ef369['id'],'params':{'unitId':_0xb3985,'drawings':[_0x2e5d75]}}),_0x311d6e=[..._0x1a688e[_0x119d1c(0x20b)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0xb3985,'subUnitId':_0x4dfecb,'op':_0x4f55d2,'objects':_0x27d435,'type':_0x2931f5[_0x119d1c(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0xb3985]},..._0x1a688e[_0x119d1c(0x22c)],{'id':$['id'],'params':_0x415138}],_0x3c0569=[..._0x1a688e[_0x119d1c(0x1cb)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0xb3985,'subUnitId':_0x4dfecb,'op':_0x3f486d,'objects':_0x27d435,'type':_0x2931f5[_0x119d1c(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0xb3985]},..._0x1a688e['undos'],{'id':$['id'],'params':{'unitId':_0xb3985,'subUnitId':_0x4dfecb,'shapeType':_0x298ba0,'shapeId':_0x4bd69b,'shapeData':_0x2271d9,'replace':!0x0}}];return _0x2c8eed(_0x311d6e,_0x10cd41)[_0x119d1c(0x1da)]?(_0x5090bd[_0x119d1c(0x24f)]({'unitID':_0xb3985,'undoMutations':_0x3c0569,'redoMutations':_0x311d6e}),!0x0):!0x1;}},me={'type':_0x5b5f6b[_0x1af8ba(0x1bd)],'id':_0x1af8ba(0x1c2),'handler':(_0x20d2c7,_0x3d5f2f)=>{const _0x2d5270=_0x1af8ba;let _0x324d9a=_0x4cca1b(_0x20d2c7['get'](_0x347354),_0x3d5f2f);if(!_0x324d9a)return!0x1;let _0x28d6ed=_0x20d2c7['get'](_0x2f9e3d),{unitId:_0x3eb5e6,subUnitId:_0x1d81a4}=_0x324d9a,_0x226081=_0x28d6ed[_0x2d5270(0x208)](_0x3eb5e6,_0x1d81a4);if(!_0x226081)return!0x1;let _0x7f791f=_0x20d2c7['get'](_0x54d918),{shapeId:_0x54a0c2,flipH:_0x2efb8a,flipV:_0x354ad1}=_0x3d5f2f,_0x3b096b=_0x7f791f[_0x2d5270(0x24b)]({'unitId':_0x3eb5e6,'subUnitId':_0x1d81a4,'drawingId':_0x54a0c2});if(!_0x3b096b)return!0x1;let _0x381642=_0x20d2c7[_0x2d5270(0x1e9)](Q)[_0x2d5270(0x1e5)](_0x3eb5e6,_0x1d81a4,_0x54a0c2);if(!_0x381642)return!0x1;let _0x494486=_0x20d2c7[_0x2d5270(0x1e9)](_0x4667d0),_0x2e0611=_0x20d2c7[_0x2d5270(0x1e9)](_0x27588f),_0x2895de=_0x20d2c7[_0x2d5270(0x1e9)](_0x2d02fd),_0x205125={..._0x3b096b[_0x2d5270(0x1c5)]};_0x2efb8a!==void 0x0&&(_0x205125[_0x2d5270(0x243)]=!_0x205125[_0x2d5270(0x243)]),_0x354ad1!==void 0x0&&(_0x205125[_0x2d5270(0x240)]=!_0x205125[_0x2d5270(0x240)]);let _0x4addad=_0x56c1f4(_0x205125,_0x226081),_0x2bb2ac=_0x4504c2(_0x205125,_0x226081),_0x45574c=_0x381642[_0x2d5270(0x246)](),_0xecdc1c=_0x381642[_0x2d5270(0x260)](),_0x587c0f={'unitId':_0x3eb5e6,'subUnitId':_0x1d81a4,'drawingId':_0x54a0c2,'drawingType':_0x512154[_0x2d5270(0x1fe)],'sheetTransform':_0x4addad,'transform':_0x205125,'data':{'shapeType':_0x45574c,'shapeData':_0xecdc1c},'axisAlignSheetTransform':_0x2bb2ac,'allowTransform':!0x0},{undo:_0xb8dfca,redo:_0x129d3b,objects:_0x5450c5}=_0x7f791f[_0x2d5270(0x227)]([_0x587c0f]),_0x27c2d1=_0x2895de[_0x2d5270(0x22f)]({'id':_0x2ef369['id'],'params':{'unitId':_0x3eb5e6,'drawings':[_0x587c0f]}}),_0x234f9e=[..._0x27c2d1['preRedos']??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0x3eb5e6,'subUnitId':_0x1d81a4,'op':_0x129d3b,'objects':_0x5450c5,'type':_0x2931f5[_0x2d5270(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0x3eb5e6]},..._0x27c2d1['redos']],_0x26c610=[..._0x27c2d1[_0x2d5270(0x1cb)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0x3eb5e6,'subUnitId':_0x1d81a4,'op':_0xb8dfca,'objects':_0x5450c5,'type':_0x2931f5[_0x2d5270(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0x3eb5e6]},..._0x27c2d1[_0x2d5270(0x1a5)]];if(_0x551829(_0x45574c)){let _0xc8f2b4=_0x381642[_0x2d5270(0x1f9)]();if(_0xc8f2b4){let _0x5baa2={..._0xc8f2b4};_0x5baa2[_0x2d5270(0x253)]=void 0x0,_0x5baa2['to']=void 0x0,_0x234f9e[_0x2d5270(0x19c)]({'id':$['id'],'params':{'unitId':_0x3eb5e6,'subUnitId':_0x1d81a4,'shapeId':_0x54a0c2,'shapeType':_0x45574c,'shapeData':{'relation':_0x5baa2}}}),_0x26c610['push']({'id':$['id'],'params':{'unitId':_0x3eb5e6,'subUnitId':_0x1d81a4,'shapeId':_0x54a0c2,'shapeType':_0x45574c,'shapeData':{'relation':_0xc8f2b4}}});}}return _0x2c8eed(_0x234f9e,_0x494486)[_0x2d5270(0x1da)]?(_0x2e0611[_0x2d5270(0x24f)]({'unitID':_0x3eb5e6,'undoMutations':_0x26c610,'redoMutations':_0x234f9e}),!0x0):!0x1;}},he={'type':_0x5b5f6b[_0x1af8ba(0x1bd)],'id':_0x1af8ba(0x1f2),'handler':(_0x14cd6f,_0x5600c3)=>{const _0x521303=_0x1af8ba;let _0x3c8fb5=_0x4cca1b(_0x14cd6f['get'](_0x347354),_0x5600c3);if(!_0x3c8fb5)return!0x1;let _0x508ba7=_0x14cd6f[_0x521303(0x1e9)](_0x2f9e3d),{unitId:_0x42f48f,subUnitId:_0x51a352}=_0x3c8fb5,_0x31c351=_0x508ba7[_0x521303(0x208)](_0x42f48f,_0x51a352);if(!_0x31c351)return!0x1;let _0x58851a=_0x14cd6f[_0x521303(0x1e9)](_0x54d918),{shapeId:_0xa53e5d,rotate:_0x10e80b}=_0x5600c3,_0x4f2299=_0x58851a[_0x521303(0x24b)]({'unitId':_0x42f48f,'subUnitId':_0x51a352,'drawingId':_0xa53e5d});if(!_0x4f2299)return!0x1;let _0x1d9a40=_0x14cd6f['get'](Q)[_0x521303(0x1e5)](_0x42f48f,_0x51a352,_0xa53e5d);if(!_0x1d9a40)return!0x1;let _0x1518a5=_0x14cd6f[_0x521303(0x1e9)](_0x4667d0),_0x20f1c1=_0x14cd6f[_0x521303(0x1e9)](_0x27588f),_0x5d4c59=_0x14cd6f['get'](_0x2d02fd),_0x3833b0={..._0x4f2299['transform']};_0x10e80b!==void 0x0&&(_0x3833b0[_0x521303(0x1f7)]=(_0x3833b0[_0x521303(0x1f7)]||0x0)+_0x10e80b);let _0x1aa224=_0x56c1f4(_0x3833b0,_0x31c351),_0x3e912c=_0x4504c2(_0x3833b0,_0x31c351),_0x316f1b=_0x1d9a40[_0x521303(0x246)](),_0x426b1c=_0x1d9a40[_0x521303(0x260)](),_0x17f226={'unitId':_0x42f48f,'subUnitId':_0x51a352,'drawingId':_0xa53e5d,'drawingType':_0x512154['DRAWING_SHAPE'],'sheetTransform':_0x1aa224,'transform':_0x3833b0,'data':{'shapeType':_0x316f1b,'shapeData':_0x426b1c},'axisAlignSheetTransform':_0x3e912c,'allowTransform':!0x0},{undo:_0x508dfb,redo:_0x51e078,objects:_0x1b290d}=_0x58851a[_0x521303(0x227)]([_0x17f226]),_0x586fb0=_0x5d4c59[_0x521303(0x22f)]({'id':_0x2ef369['id'],'params':{'unitId':_0x42f48f,'drawings':[_0x17f226]}}),_0x114861=[..._0x586fb0[_0x521303(0x20b)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0x42f48f,'subUnitId':_0x51a352,'op':_0x51e078,'objects':_0x1b290d,'type':_0x2931f5[_0x521303(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0x42f48f]},..._0x586fb0[_0x521303(0x22c)]],_0x501ab0=[..._0x586fb0['preUndos']??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0x42f48f,'subUnitId':_0x51a352,'op':_0x508dfb,'objects':_0x1b290d,'type':_0x2931f5[_0x521303(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0x42f48f]},..._0x586fb0['undos']];return _0x2c8eed(_0x114861,_0x1518a5)['result']?(_0x20f1c1[_0x521303(0x24f)]({'unitID':_0x42f48f,'undoMutations':_0x501ab0,'redoMutations':_0x114861}),!0x0):!0x1;}},ge={'type':_0x5b5f6b[_0x1af8ba(0x1bd)],'id':_0x1af8ba(0x258),'handler':(_0x299bb7,_0xe10543)=>{const _0x33596d=_0x1af8ba;let _0x2f8a82=_0x4cca1b(_0x299bb7[_0x33596d(0x1e9)](_0x347354),_0xe10543);if(!_0x2f8a82)return!0x1;let {unitId:_0x9dac9a,subUnitId:_0x4223ea}=_0x2f8a82,{shapeId:_0x36b05f}=_0xe10543,_0x2e949c=_0x299bb7['get'](Q)['getShapeModel'](_0x9dac9a,_0x4223ea,_0x36b05f);if(!_0x2e949c)return!0x1;let _0xc12124=_0x2e949c[_0x33596d(0x1ce)](),_0x4157d3=(_0xc12124==null?void 0x0:_0xc12124[_0x33596d(0x1e7)])??!0x0,_0xe02137=!_0x4157d3,_0x18cced=_0x299bb7[_0x33596d(0x1e9)](_0x4667d0),_0x57c3df=_0x299bb7[_0x33596d(0x1e9)](_0x27588f),_0x3f16c5={'unitId':_0x9dac9a,'subUnitId':_0x4223ea,'shapeId':_0x36b05f,'shapeData':{'shapeText':{'isHorizontal':_0xe02137}}},_0x396198={'unitId':_0x9dac9a,'subUnitId':_0x4223ea,'shapeId':_0x36b05f,'shapeData':{'shapeText':{'isHorizontal':_0x4157d3}}},_0xa887ca=[{'id':$['id'],'params':_0x3f16c5}],_0x3f70be=[{'id':$['id'],'params':_0x396198}];return _0x2c8eed(_0xa887ca,_0x18cced)[_0x33596d(0x1da)]?(_0x57c3df[_0x33596d(0x24f)]({'unitID':_0x9dac9a,'undoMutations':_0x3f70be,'redoMutations':_0xa887ca}),!0x0):!0x1;}},_e={'type':_0x5b5f6b[_0x1af8ba(0x1bd)],'id':_0x1af8ba(0x1f5),'handler':(_0x1bb255,_0x4d1fb3)=>{const _0x259bd8=_0x1af8ba;var _0x1bbd72;let _0x2d9841=_0x4cca1b(_0x1bb255['get'](_0x347354),_0x4d1fb3);if(!_0x2d9841)return!0x1;let _0x5776f8=_0x1bb255[_0x259bd8(0x1e9)](_0x2f9e3d),{unitId:_0xc756bc,subUnitId:_0x5a03b4}=_0x2d9841,_0x20cfce=_0x5776f8[_0x259bd8(0x208)](_0xc756bc,_0x5a03b4);if(!_0x20cfce)return!0x1;let _0x1cb1d2=_0x1bb255[_0x259bd8(0x1e9)](_0x54d918),{connectorShapeId:_0x42c167,width:_0x57ba8a,height:_0x47fdc2,left:_0x347f82,top:_0x14844a,flipX:_0x4dfcd1,flipY:_0x1e1f6d,rotation:_0x22fb85,oldAdjustValues:_0x32d4bc,newAdjustValues:_0x466ab1,oldLineType:_0x2f9f14,newLineType:_0x24466d,oldRelation:_0x3ea85b,newRelation:_0x39508a}=_0x4d1fb3,_0x1dc8ea=_0x1cb1d2[_0x259bd8(0x24b)]({'unitId':_0xc756bc,'subUnitId':_0x5a03b4,'drawingId':_0x42c167});if(!_0x1dc8ea)return!0x1;let _0x1bfaca=_0x1bb255[_0x259bd8(0x1e9)](Q)[_0x259bd8(0x1e5)](_0xc756bc,_0x5a03b4,_0x42c167);if(!_0x1bfaca)return!0x1;let _0x31d4b7=_0x1bb255[_0x259bd8(0x1e9)](_0x4667d0),_0xa29b97=_0x1bb255[_0x259bd8(0x1e9)](_0x27588f),_0x3f8a71=_0x1bb255[_0x259bd8(0x1e9)](_0x2d02fd),_0x55b9d3={..._0x1dc8ea[_0x259bd8(0x1c5)],'width':_0x57ba8a,'height':_0x47fdc2,'left':_0x347f82,'top':_0x14844a,'flipX':_0x4dfcd1,'flipY':_0x1e1f6d,'angle':_0x22fb85??((_0x1bbd72=_0x1dc8ea[_0x259bd8(0x1c5)])==null?void 0x0:_0x1bbd72[_0x259bd8(0x1f7)])??0x0},_0x3f9bc7=_0x56c1f4(_0x55b9d3,_0x20cfce),_0x23eb1c=_0x4504c2(_0x55b9d3,_0x20cfce),_0x7c240a=_0x1bfaca[_0x259bd8(0x246)](),_0x1172b1=_0x1bfaca['getShapeData'](),_0x4c4756={'unitId':_0xc756bc,'subUnitId':_0x5a03b4,'drawingId':_0x42c167,'drawingType':_0x512154[_0x259bd8(0x1fe)],'sheetTransform':_0x3f9bc7,'transform':_0x55b9d3,'data':{'shapeType':_0x24466d||_0x2f9f14||_0x7c240a,'shapeData':{..._0x1172b1,'adjustValues':_0x466ab1||_0x32d4bc||(_0x1172b1==null?void 0x0:_0x1172b1['adjustValues']),'relation':_0x39508a||_0x3ea85b||(_0x1172b1==null?void 0x0:_0x1172b1[_0x259bd8(0x247)])}},'axisAlignSheetTransform':_0x23eb1c,'allowTransform':!0x0},{undo:_0x3e5a10,redo:_0x11136b,objects:_0x257a84}=_0x1cb1d2[_0x259bd8(0x227)]([_0x4c4756]),_0x1d4475=_0x3f8a71['onCommandExecute']({'id':_0x2ef369['id'],'params':{'unitId':_0xc756bc,'drawings':[_0x4c4756]}}),_0x1a283d=[..._0x1d4475[_0x259bd8(0x20b)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0xc756bc,'subUnitId':_0x5a03b4,'op':_0x11136b,'objects':_0x257a84,'type':_0x2931f5[_0x259bd8(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0xc756bc]},..._0x1d4475[_0x259bd8(0x22c)],{'id':$['id'],'params':{'unitId':_0xc756bc,'subUnitId':_0x5a03b4,'shapeId':_0x42c167,'shapeType':_0x24466d,'shapeData':{'adjustValues':_0x466ab1,'relation':_0x39508a}}}],_0x49f1fc=[..._0x1d4475[_0x259bd8(0x1cb)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0xc756bc,'subUnitId':_0x5a03b4,'op':_0x3e5a10,'objects':_0x257a84,'type':_0x2931f5['UPDATE']}},{'id':_0x28fe77['id'],'params':[_0xc756bc]},..._0x1d4475[_0x259bd8(0x1a5)],{'id':$['id'],'params':{'unitId':_0xc756bc,'subUnitId':_0x5a03b4,'shapeId':_0x42c167,'shapeType':_0x7c240a,'shapeData':{..._0x1172b1,'adjustValues':_0x32d4bc||(_0x1172b1==null?void 0x0:_0x1172b1['adjustValues']),'relation':_0x3ea85b||(_0x1172b1==null?void 0x0:_0x1172b1[_0x259bd8(0x247)])}}}];return _0x2c8eed(_0x1a283d,_0x31d4b7)[_0x259bd8(0x1da)]?(_0xa29b97[_0x259bd8(0x24f)]({'unitID':_0xc756bc,'undoMutations':_0x49f1fc,'redoMutations':_0x1a283d}),!0x0):!0x1;}},ve={'type':_0x5b5f6b['COMMAND'],'id':_0x1af8ba(0x20d),'handler':(_0x147fe6,_0x2185f5)=>{const _0x2faa30=_0x1af8ba;let _0x25bddc=_0x4cca1b(_0x147fe6[_0x2faa30(0x1e9)](_0x347354),_0x2185f5);if(!_0x25bddc)return!0x1;let _0x3a52df=_0x147fe6[_0x2faa30(0x1e9)](_0x2f9e3d),{unitId:_0xdd9edf,subUnitId:_0x3a6d21}=_0x25bddc,_0x489a1f=_0x3a52df['getSkeleton'](_0xdd9edf,_0x3a6d21);if(!_0x489a1f)return!0x1;let _0x1ffa0a=_0x147fe6[_0x2faa30(0x1e9)](_0x54d918),{shapeId:_0x1efb59,width:_0x3a1fcc,height:_0x2d7686,left:_0x6cad2e,top:_0x183aa9,flipX:_0x1e4fcd,flipY:_0x5d99a5,angle:_0x1eacbe,oldAdjustValues:_0x3e492c,newAdjustValues:_0x31c8d9,oldLineType:_0x2bb964,newLineType:_0x44e7ab}=_0x2185f5,_0x188e5c=_0x1ffa0a['getDrawingByParam']({'unitId':_0xdd9edf,'subUnitId':_0x3a6d21,'drawingId':_0x1efb59});if(!_0x188e5c)return!0x1;let _0x2fe0be=_0x147fe6['get'](Q)[_0x2faa30(0x1e5)](_0xdd9edf,_0x3a6d21,_0x1efb59);if(!_0x2fe0be)return!0x1;let _0x3eda88=_0x147fe6['get'](_0x4667d0),_0x3a5508=_0x147fe6[_0x2faa30(0x1e9)](_0x27588f),_0x514641=_0x147fe6[_0x2faa30(0x1e9)](_0x2d02fd),_0x2af0e7={..._0x188e5c[_0x2faa30(0x1c5)],'width':_0x3a1fcc,'height':_0x2d7686,'left':_0x6cad2e,'top':_0x183aa9,'flipX':_0x1e4fcd,'flipY':_0x5d99a5,'angle':_0x1eacbe},_0x2f564a=_0x56c1f4(_0x2af0e7,_0x489a1f),_0x18a63a=_0x4504c2(_0x2af0e7,_0x489a1f),_0x514bbd=_0x2fe0be[_0x2faa30(0x246)](),_0x1f51fe=_0x2fe0be[_0x2faa30(0x260)](),_0x2dd2df={'unitId':_0xdd9edf,'subUnitId':_0x3a6d21,'drawingId':_0x1efb59,'drawingType':_0x512154[_0x2faa30(0x1fe)],'sheetTransform':_0x2f564a,'transform':_0x2af0e7,'data':{'shapeType':_0x44e7ab||_0x2bb964||_0x514bbd,'shapeData':{..._0x1f51fe,'adjustValues':_0x31c8d9||_0x3e492c||(_0x1f51fe==null?void 0x0:_0x1f51fe[_0x2faa30(0x1e3)])}},'axisAlignSheetTransform':_0x18a63a,'allowTransform':!0x0},{undo:_0x5e5b12,redo:_0x3b10db,objects:_0x346fa8}=_0x1ffa0a[_0x2faa30(0x227)]([_0x2dd2df]),_0xd337a4=_0x514641[_0x2faa30(0x22f)]({'id':_0x2ef369['id'],'params':{'unitId':_0xdd9edf,'drawings':[_0x2dd2df]}}),_0x2e8ade=[..._0xd337a4['preRedos']??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0xdd9edf,'subUnitId':_0x3a6d21,'op':_0x3b10db,'objects':_0x346fa8,'type':_0x2931f5[_0x2faa30(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0xdd9edf]},..._0xd337a4['redos'],{'id':$['id'],'params':{'unitId':_0xdd9edf,'subUnitId':_0x3a6d21,'shapeId':_0x1efb59,'shapeType':_0x44e7ab,'shapeData':{'adjustValues':_0x31c8d9}}}],_0x3cc427=[..._0xd337a4[_0x2faa30(0x1cb)]??[],{'id':_0x2c8a28['id'],'params':{'unitId':_0xdd9edf,'subUnitId':_0x3a6d21,'op':_0x5e5b12,'objects':_0x346fa8,'type':_0x2931f5[_0x2faa30(0x1c3)]}},{'id':_0x28fe77['id'],'params':[_0xdd9edf]},..._0xd337a4[_0x2faa30(0x1a5)],{'id':$['id'],'params':{'unitId':_0xdd9edf,'subUnitId':_0x3a6d21,'shapeId':_0x1efb59,'shapeType':_0x514bbd,'shapeData':{..._0x1f51fe,'adjustValues':_0x3e492c||(_0x1f51fe==null?void 0x0:_0x1f51fe[_0x2faa30(0x1e3)])}}}];return _0x2c8eed(_0x2e8ade,_0x3eda88)[_0x2faa30(0x1da)]?(_0x3a5508[_0x2faa30(0x24f)]({'unitID':_0xdd9edf,'undoMutations':_0x3cc427,'redoMutations':_0x2e8ade}),!0x0):!0x1;}},ye={'id':'sheet.mutation.update-shape-type','type':_0x5b5f6b[_0x1af8ba(0x19d)],'handler':(_0x2815a8,_0x56895e)=>{const _0x249914=_0x1af8ba;let {unitId:_0x1c568f,subUnitId:_0xafa3a9,shapeType:_0x384cf5,shapeId:_0x4ec099,shapeData:_0x1514d8}=_0x56895e,_0x35320a=_0x2815a8['get'](Q)['getShapeModel'](_0x1c568f,_0xafa3a9,_0x4ec099);return _0x35320a&&(_0x35320a['setShapeType'](_0x384cf5),_0x1514d8&&(_0x35320a==null||_0x35320a[_0x249914(0x25f)](_0x1514d8))),!0x0;}};var be=_0x1af8ba(0x248),xe=_0x1af8ba(0x232);function Se(_0x879d77){const _0x3590ea=_0x1af8ba;var _0x30231a,_0x5a5f3,_0x363ae0,_0x53c89c,_0x4e4163,_0x5e3a95,_0x571140;return{'left':((_0x30231a=_0x879d77[_0x3590ea(0x1c5)])==null?void 0x0:_0x30231a[_0x3590ea(0x213)])??0x0,'top':((_0x5a5f3=_0x879d77[_0x3590ea(0x1c5)])==null?void 0x0:_0x5a5f3[_0x3590ea(0x1b1)])??0x0,'width':((_0x363ae0=_0x879d77[_0x3590ea(0x1c5)])==null?void 0x0:_0x363ae0[_0x3590ea(0x264)])??0xc8,'height':((_0x53c89c=_0x879d77['transform'])==null?void 0x0:_0x53c89c[_0x3590ea(0x21c)])??0xc8,'rotation':((_0x4e4163=_0x879d77['transform'])==null?void 0x0:_0x4e4163[_0x3590ea(0x1a1)])??0x0,'flipX':((_0x5e3a95=_0x879d77['transform'])==null?void 0x0:_0x5e3a95[_0x3590ea(0x243)])??!0x1,'flipY':((_0x571140=_0x879d77['transform'])==null?void 0x0:_0x571140[_0x3590ea(0x240)])??!0x1};}let Ce=class{constructor(_0x4560e4,_0x2cc2a7,_0x4719a8,_0x2368a6){const _0xd922fe=_0x1af8ba;this[_0xd922fe(0x224)]=_0x4560e4,this['_shapeService']=_0x2cc2a7,this[_0xd922fe(0x1ec)]=_0x4719a8,this[_0xd922fe(0x1d0)]=_0x2368a6,X(this,'hostType',_0x2c36da[_0xd922fe(0x263)]);}get[_0x1af8ba(0x19b)](){return{'subscribe':_0xd8ae6a=>{const _0x5c1c27=_0x47ff;let _0x2dc310=this[_0x5c1c27(0x224)][_0x5c1c27(0x1aa)](_0x9373bd=>{const _0x461d2b=_0x5c1c27;(_0x9373bd['id']===ue['id']||_0x9373bd['id']===de['id']||_0x9373bd['id']===$['id']||_0x9373bd['id']===ye['id'])&&_0xd8ae6a({'unitId':_0x9373bd['params'][_0x461d2b(0x217)]});});return{'unsubscribe':()=>_0x2dc310[_0x5c1c27(0x1bf)]()};}};}[_0x1af8ba(0x23f)](_0xb3acc6){const _0x422397=_0x1af8ba;var _0x7a34c6;let _0x5b7e55=(_0x7a34c6=this[_0x422397(0x1ec)][_0x422397(0x1cc)](_0xb3acc6[_0x422397(0x217)],_0xb3acc6[_0x422397(0x1a2)]))==null?void 0x0:_0x7a34c6[_0xb3acc6[_0x422397(0x1e8)]],_0x36cc1c=this[_0x422397(0x1fd)][_0x422397(0x246)](_0xb3acc6[_0x422397(0x217)],_0xb3acc6[_0x422397(0x1a2)],_0xb3acc6[_0x422397(0x1e8)]);if(!_0x5b7e55||_0x5b7e55[_0x422397(0x24c)]!==_0x512154[_0x422397(0x1fe)]||!_0x36cc1c)return null;let _0x217949=_0x5b7e55[_0x422397(0x1c5)];return{..._0xb3acc6,'shapeType':_0x36cc1c,'shapeData':_0x1030c0['deepClone'](this['_shapeService']['getShapeDataById'](_0xb3acc6['unitId'],_0xb3acc6[_0x422397(0x1a2)],_0xb3acc6[_0x422397(0x1e8)])??{}),'name':_0x5b7e55[_0x422397(0x1af)],'description':_0x5b7e55['description'],'visible':_0x5b7e55[_0x422397(0x231)]!==!0x0,'selectable':_0x5b7e55[_0x422397(0x1f4)]!==!0x1,'transform':{'left':(_0x217949==null?void 0x0:_0x217949[_0x422397(0x213)])??0x0,'top':(_0x217949==null?void 0x0:_0x217949[_0x422397(0x1b1)])??0x0,'width':(_0x217949==null?void 0x0:_0x217949['width'])??0xc8,'height':(_0x217949==null?void 0x0:_0x217949[_0x422397(0x21c)])??0xc8,'rotation':(_0x217949==null?void 0x0:_0x217949['angle'])??0x0,'flipX':(_0x217949==null?void 0x0:_0x217949[_0x422397(0x243)])??!0x1,'flipY':(_0x217949==null?void 0x0:_0x217949[_0x422397(0x240)])??!0x1}};}[_0x1af8ba(0x1b0)](_0x35f649){const _0x5cba72=_0x1af8ba;let _0x2a83ff=this[_0x5cba72(0x1ec)][_0x5cba72(0x1cc)](_0x35f649[_0x5cba72(0x217)],_0x35f649['subUnitId'])??{};return Object[_0x5cba72(0x233)](_0x2a83ff)[_0x5cba72(0x1de)](_0x5e2b27=>(_0x5e2b27==null?void 0x0:_0x5e2b27[_0x5cba72(0x24c)])===_0x512154[_0x5cba72(0x1fe)])[_0x5cba72(0x218)](_0x2b2af7=>this[_0x5cba72(0x23f)]({..._0x35f649,'shapeId':_0x2b2af7['drawingId']}))['filter'](_0x1de03b=>!!_0x1de03b);}[_0x1af8ba(0x24a)](_0x3a6866){const _0x27d466=_0x1af8ba;let _0x1838d2=this['_instanceService'][_0x27d466(0x1d5)](_0x3a6866,_0x2c36da[_0x27d466(0x263)]);return(_0x1838d2==null?void 0x0:_0x1838d2[_0x27d466(0x257)]()[_0x27d466(0x20c)](_0x3adcef=>this[_0x27d466(0x1b0)]({'hostType':this[_0x27d466(0x1c1)],'unitId':_0x3a6866,'subUnitId':_0x3adcef['getSheetId']()})))??[];}[_0x1af8ba(0x1c4)](_0xf48376,_0x426a54){const _0x38dbad=_0x1af8ba;let _0x3bd56d=_0x3f21a1(),_0x1034a6=Se(_0x426a54),_0x50abdc=_0x1030c0[_0x38dbad(0x262)](_0x426a54[_0x38dbad(0x261)]??_0xedef7a(_0x426a54[_0x38dbad(0x1e1)]));return this[_0x38dbad(0x224)][_0x38dbad(0x21b)](fe['id'],{'unitId':_0xf48376[_0x38dbad(0x217)],'subUnitId':_0xf48376[_0x38dbad(0x1a2)],'shapeId':_0x3bd56d,'shapeType':_0x426a54[_0x38dbad(0x1e1)],'shapeData':_0x50abdc,'name':_0x426a54[_0x38dbad(0x1af)],'description':_0x426a54[_0x38dbad(0x25d)],'position':{'x':_0x1034a6[_0x38dbad(0x213)],'y':_0x1034a6[_0x38dbad(0x1b1)]},'width':_0x1034a6['width'],'height':_0x1034a6[_0x38dbad(0x21c)],'rotation':_0x1034a6[_0x38dbad(0x1a1)],'flipX':_0x1034a6[_0x38dbad(0x243)],'flipY':_0x1034a6[_0x38dbad(0x240)],'visible':_0x426a54['visible']??!0x0,'selectable':_0x426a54[_0x38dbad(0x1f4)]??!0x0})?{..._0xf48376,'shapeId':_0x3bd56d,'shapeType':_0x426a54[_0x38dbad(0x1e1)],'shapeData':_0x50abdc,'name':_0x426a54[_0x38dbad(0x1af)],'description':_0x426a54[_0x38dbad(0x25d)],'visible':_0x426a54['visible']??!0x0,'selectable':_0x426a54[_0x38dbad(0x1f4)]??!0x0,'transform':_0x1034a6}:null;}[_0x1af8ba(0x1d8)](_0x4e99f,_0x2e5fb7){const _0x382f76=_0x1af8ba;var _0x147362;let _0x3b8b50=this[_0x382f76(0x23f)](_0x4e99f);if(!_0x3b8b50)return!0x1;let _0x5cab49={..._0x3b8b50[_0x382f76(0x1c5)],..._0x2e5fb7[_0x382f76(0x1c5)]};return this['_commandService'][_0x382f76(0x21b)](pe['id'],{'unitId':_0x4e99f[_0x382f76(0x217)],'subUnitId':_0x4e99f[_0x382f76(0x1a2)],'shapeId':_0x4e99f[_0x382f76(0x1e8)],'shapeType':_0x2e5fb7['shapeType']??((_0x147362=_0x2e5fb7['shapeData'])==null?void 0x0:_0x147362[_0x382f76(0x1e1)])??_0x3b8b50[_0x382f76(0x1e1)],'shapeData':_0x2e5fb7[_0x382f76(0x261)]??_0x3b8b50['shapeData'],'position':{'x':_0x5cab49[_0x382f76(0x213)],'y':_0x5cab49[_0x382f76(0x1b1)]},'width':_0x5cab49[_0x382f76(0x264)],'height':_0x5cab49[_0x382f76(0x21c)],'rotation':_0x5cab49['rotation'],'flipX':_0x5cab49['flipX'],'flipY':_0x5cab49[_0x382f76(0x240)],'name':_0x382f76(0x1af)in _0x2e5fb7?_0x2e5fb7[_0x382f76(0x1af)]:_0x3b8b50['name'],'description':_0x382f76(0x25d)in _0x2e5fb7?_0x2e5fb7[_0x382f76(0x25d)]:_0x3b8b50[_0x382f76(0x25d)],'visible':_0x2e5fb7[_0x382f76(0x1ac)]??_0x3b8b50[_0x382f76(0x1ac)],'selectable':_0x2e5fb7['selectable']??_0x3b8b50[_0x382f76(0x1f4)]});}['createFormulaLastValueMutation'](_0x3e8885,_0x17d4c1,_0x5d098d){const _0x98b21c=_0x1af8ba;let _0x183542=this[_0x98b21c(0x23f)](_0x3e8885),_0x4e4602=_0x183542==null?void 0x0:_0x183542[_0x98b21c(0x261)][_0x98b21c(0x1b8)];return!_0x183542||!_0x4e4602?null:{'id':$['id'],'params':{'unitId':_0x3e8885['unitId'],'subUnitId':_0x3e8885['subUnitId'],'shapeId':_0x3e8885[_0x98b21c(0x1e8)],'shapeData':{..._0x183542[_0x98b21c(0x261)],'formulaBinding':{..._0x4e4602,'lastValue':_0x1030c0['deepClone'](_0x5d098d)}},'replace':!0x0,'formulaLastValueGuard':_0x17d4c1}};}[_0x1af8ba(0x22d)](_0x230fae){const _0x3545cf=_0x1af8ba;return this[_0x3545cf(0x224)][_0x3545cf(0x21b)](_0x2e8a2b['id'],{'unitId':_0x230fae[_0x3545cf(0x217)],'drawings':[{'unitId':_0x230fae[_0x3545cf(0x217)],'subUnitId':_0x230fae[_0x3545cf(0x1a2)],'drawingId':_0x230fae[_0x3545cf(0x1e8)],'drawingType':_0x512154[_0x3545cf(0x1fe)]}]});}[_0x1af8ba(0x1b9)](_0x37660c){const _0x254083=_0x1af8ba;return this[_0x254083(0x251)](_0x37660c,_0x2aecfa[_0x254083(0x1f8)]);}[_0x1af8ba(0x23b)](_0x458d95){const _0x37893f=_0x1af8ba;return this[_0x37893f(0x251)](_0x458d95,_0x2aecfa['forward']);}['sendBackward'](_0x3ed7bc){const _0x4c40b2=_0x1af8ba;return this['_arrange'](_0x3ed7bc,_0x2aecfa[_0x4c40b2(0x212)]);}[_0x1af8ba(0x20e)](_0x7f6e16){const _0xfc37a5=_0x1af8ba;return this['_arrange'](_0x7f6e16,_0x2aecfa[_0xfc37a5(0x207)]);}[_0x1af8ba(0x1b5)](_0x197c65,_0x15a46c){const _0x477c66=_0x1af8ba;return this[_0x477c66(0x224)]['syncExecuteCommand'](_0x3b2e6f['id'],{'unitId':_0x197c65['unitId'],'subUnitId':_0x197c65[_0x477c66(0x1a2)],'drawingIds':[_0x197c65[_0x477c66(0x1e8)]],'zOrder':_0x15a46c});}[_0x1af8ba(0x251)](_0x499fa8,_0x4ee1fe){const _0x50860c=_0x1af8ba;return this['_commandService'][_0x50860c(0x21b)](_0x3b2e6f['id'],{'unitId':_0x499fa8[_0x50860c(0x217)],'subUnitId':_0x499fa8['subUnitId'],'drawingIds':[_0x499fa8[_0x50860c(0x1e8)]],'arrangeType':_0x4ee1fe});}};Ce=le([Z(0x0,_0x4667d0),Z(0x1,_0x2e9398(Q)),Z(0x2,_0x54d918),Z(0x3,_0x347354)],Ce);const we={};let Te=class extends _0x579ef8{constructor(_0x213862,_0x381e04,_0x1749d6,_0x16ccf5,_0x26984c,_0x3aeddc,_0x1fdfb0){const _0x28744f=_0x1af8ba;super(),this[_0x28744f(0x224)]=_0x213862,this[_0x28744f(0x1d3)]=_0x381e04,this['_sheetSkeletonService']=_0x1749d6,this[_0x28744f(0x1db)]=_0x16ccf5,this[_0x28744f(0x249)]=_0x26984c,this[_0x28744f(0x1d9)]=_0x3aeddc,this[_0x28744f(0x22b)](),this[_0x28744f(0x1ca)](),this[_0x28744f(0x1a0)](this[_0x28744f(0x1d9)]['register'](_0x1fdfb0));}[_0x1af8ba(0x22b)](){const _0xe3ec97=_0x1af8ba;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$]['forEach'](_0x4af033=>this[_0xe3ec97(0x1a0)](this[_0xe3ec97(0x224)][_0xe3ec97(0x1cd)](_0x4af033)));}['_initCommandInterceptor'](){const _0x52fbe4=_0x1af8ba;this['disposeWithMe'](this[_0x52fbe4(0x1d3)]['interceptCommand']({'getMutations':_0x61e7e1=>{const _0x45e73c=_0x52fbe4;if(_0x61e7e1['id']===_0x2e8a2b['id']){let {drawings:_0x3f674d}=_0x61e7e1[_0x45e73c(0x1c7)],_0xb57858=_0x3f674d[_0x45e73c(0x1de)](_0x136bd3=>_0x136bd3['drawingType']===_0x512154[_0x45e73c(0x1fe)]);if(_0xb57858[_0x45e73c(0x252)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4f7a38=[],_0x266064=[];return _0xb57858[_0x45e73c(0x23a)](_0xa775db=>{const _0x7008e3=_0x45e73c;let {unitId:_0x33058e,subUnitId:_0xd10363,drawingId:_0xdff714}=_0xa775db,_0x5b3685=this[_0x7008e3(0x1db)]['getShapeModel'](_0x33058e,_0xd10363,_0xdff714);if(!_0x5b3685)throw TypeError(_0x7008e3(0x25c)+_0x5b3685);_0x4f7a38[_0x7008e3(0x19c)]({'id':de['id'],'params':{'unitId':_0x33058e,'subUnitId':_0xd10363,'shapeId':_0xdff714}}),_0x266064[_0x7008e3(0x19c)]({'id':ue['id'],'params':{'unitId':_0x33058e,'subUnitId':_0xd10363,'shapeId':_0xdff714,'shapeType':_0x5b3685['getShapeType'](),'shapeData':_0x5b3685['getShapeData']()}});let _0x53f33f=this['_sheetsShapeService']['getBasicShapeRelation'](_0x33058e,_0xd10363,_0xdff714);if(_0x53f33f)for(let _0xdf5dbb of _0x53f33f){let _0x261853=_0xdf5dbb['lineShapeId'],_0x4b61dd=_0xdf5dbb[_0x7008e3(0x1b2)],_0xfebf21=_0x4b61dd?{'from':void 0x0}:{'to':void 0x0},_0x56938c=_0x4b61dd?{'from':{'shapeId':_0xdf5dbb['shapeId'],'cxnIndex':_0xdf5dbb[_0x7008e3(0x239)]}}:{'to':{'shapeId':_0xdf5dbb[_0x7008e3(0x1e8)],'cxnIndex':_0xdf5dbb[_0x7008e3(0x239)]}};_0x4f7a38[_0x7008e3(0x19c)]({'id':$['id'],'params':{'unitId':_0x33058e,'subUnitId':_0xd10363,'shapeId':_0x261853,'shapeData':{'relation':_0xfebf21}}}),_0x266064[_0x7008e3(0x19c)]({'id':$['id'],'params':{'unitId':_0x33058e,'subUnitId':_0xd10363,'shapeId':_0x261853,'shapeData':{'relation':_0x56938c}}});}}),{'preRedos':_0x4f7a38,'redos':[],'preUndos':[],'undos':_0x266064};}if(_0x61e7e1['id']===_0x2ef369['id']){let {drawings:_0x237c70}=_0x61e7e1['params'],_0x26a4c7=_0x237c70['filter'](_0x23a674=>_0x23a674['drawingType']===_0x512154[_0x45e73c(0x1fe)]);if(_0x26a4c7[_0x45e73c(0x252)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x374c05=[],_0xbe3d17=[];for(let _0x5769a1 of _0x26a4c7){let {unitId:_0x3b77a7,subUnitId:_0x5556f7,drawingId:_0x9e5125,transform:_0x4a1ff8}=_0x5769a1;if(!_0x3b77a7||!_0x5556f7||!_0x9e5125||!_0x4a1ff8)continue;let _0x54e056=this[_0x45e73c(0x1db)][_0x45e73c(0x1e5)](_0x3b77a7,_0x5556f7,_0x9e5125);if(!_0x54e056)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x54e056);let _0x6bddb6=_0x54e056[_0x45e73c(0x246)]();if(_0x551829(_0x6bddb6)){let _0x1f3a72=this['_sheetsShapeService'][_0x45e73c(0x19e)](_0x3b77a7,_0x5556f7,_0x9e5125);_0x1f3a72&&(_0x374c05[_0x45e73c(0x19c)]({'id':$['id'],'params':{'unitId':_0x3b77a7,'subUnitId':_0x5556f7,'shapeId':_0x9e5125,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0xbe3d17[_0x45e73c(0x19c)]({'id':$['id'],'params':{'unitId':_0x3b77a7,'subUnitId':_0x5556f7,'shapeId':_0x9e5125,'shapeData':{'relation':_0x1f3a72}}}));}else{let _0x38b88a=this['_sheetsShapeService']['getBasicShapeRelation'](_0x3b77a7,_0x5556f7,_0x9e5125);if(_0x38b88a&&_0x38b88a[_0x45e73c(0x252)]>0x0)for(let _0x1dec8e of _0x38b88a){let _0x43959b=_0x1dec8e['lineShapeId'],_0x5bc1d0=_0x1dec8e['isFrom'],_0x402259=this['_sheetsShapeService'][_0x45e73c(0x1e5)](_0x3b77a7,_0x5556f7,_0x43959b);if(!_0x402259)continue;let _0xb6ce66=_0x402259['getStartConnectInfo'](),_0x402481=_0x402259['getEndConnectInfo']();_0xb6ce66&&_0x402481?this['_addLineRerouteUpdates'](_0x3b77a7,_0x5556f7,_0x43959b,_0x402259,_0xb6ce66,_0x402481,_0x374c05,_0xbe3d17,_0x9e5125,_0x4a1ff8):this[_0x45e73c(0x23d)](_0x3b77a7,_0x5556f7,_0x43959b,_0x402259,_0x5bc1d0?_0xb6ce66:_0x402481,_0x5bc1d0,_0x374c05,_0xbe3d17,_0x9e5125,_0x4a1ff8);}}}return{'preRedos':[],'redos':_0x374c05,'preUndos':_0xbe3d17,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1af8ba(0x256)](_0x55961b,_0x203444,_0x4172f1,_0x47ad37,_0x47e3e9){const _0x45bb23=_0x1af8ba;if(!_0x203444||!_0x4172f1)return null;let {shapeId:_0x6fdf69,cxnIndex:_0x4a0d75}=_0x55961b,_0x17391e=this[_0x45bb23(0x1db)]['getShapeModel'](_0x203444,_0x4172f1,_0x6fdf69);if(!_0x17391e)return null;let _0x3010e1=this[_0x45bb23(0x249)][_0x45bb23(0x24b)]({'unitId':_0x203444,'subUnitId':_0x4172f1,'drawingId':_0x6fdf69});if(!(_0x3010e1!=null&&_0x3010e1['transform']))return null;let {left:_0x12b5cf=0x0,top:_0x1c1764=0x0,width:_0x14ed0c=0x0,height:_0xbac57c=0x0,flipX:_0x18ae02=!0x1,flipY:_0xbaecb4=!0x1,angle:_0x769d1e}=_0x3010e1['transform'];_0x47e3e9&&_0x47ad37===_0x6fdf69&&(_0x12b5cf=_0x47e3e9[_0x45bb23(0x213)]??_0x12b5cf,_0x1c1764=_0x47e3e9[_0x45bb23(0x1b1)]??_0x1c1764,_0x14ed0c=_0x47e3e9['width']??_0x14ed0c,_0xbac57c=_0x47e3e9['height']??_0xbac57c,_0x18ae02=_0x47e3e9[_0x45bb23(0x243)]??_0x18ae02,_0xbaecb4=_0x47e3e9['flipY']??_0xbaecb4,_0x769d1e=_0x47e3e9[_0x45bb23(0x1f7)]??_0x769d1e),_0x17391e['updateContext']({'width':_0x14ed0c,'height':_0xbac57c});let _0x1512a0=_0x17391e[_0x45bb23(0x1df)]()['find'](_0x1fd61f=>_0x1fd61f[_0x45bb23(0x1f0)]===_0x4a0d75);if(!_0x1512a0)return null;let _0x116738=_0x18ae02?_0x14ed0c-_0x1512a0['x']:_0x1512a0['x'],_0x5c53ee=_0xbaecb4?_0xbac57c-_0x1512a0['y']:_0x1512a0['y'];if(_0x769d1e!==0x0&&_0x769d1e!=null){let _0x25d43f=_0x769d1e*Math['PI']/0xb4,_0x57299e=Math[_0x45bb23(0x1c6)](_0x25d43f),_0x1da4d1=Math[_0x45bb23(0x216)](_0x25d43f),_0x3084b3=_0x14ed0c/0x2,_0x43681a=_0xbac57c/0x2,_0x177355=_0x116738-_0x3084b3,_0x92eb88=_0x5c53ee-_0x43681a;_0x116738=_0x3084b3+_0x177355*_0x57299e-_0x92eb88*_0x1da4d1,_0x5c53ee=_0x43681a+_0x177355*_0x1da4d1+_0x92eb88*_0x57299e;}_0x116738+=_0x12b5cf,_0x5c53ee+=_0x1c1764;let _0x1e8e3c=_0x1512a0[_0x45bb23(0x245)]/0xea60;_0x18ae02&&(_0x1e8e3c=0xb4-_0x1e8e3c),_0xbaecb4&&(_0x1e8e3c=-_0x1e8e3c),_0x1e8e3c+=_0x769d1e||0x0,_0x1e8e3c=(_0x1e8e3c%0x168+0x168)%0x168;let _0x1a16c1=_0x2c4308({'left':_0x12b5cf,'top':_0x1c1764,'width':_0x14ed0c,'height':_0xbac57c},_0x769d1e||0x0);return{'point':{'x':_0x116738,'y':_0x5c53ee},'angle':_0x1e8e3c,'bounds':_0x1a16c1};}['_addLineRerouteUpdates'](_0x57ad28,_0x18fa96,_0x172f8c,_0x2afd27,_0x1d727c,_0xc7043d,_0x1bc723,_0x1dc5ba,_0x3a26b3,_0x1948b3){const _0x4bc02a=_0x1af8ba;let _0x859033=this[_0x4bc02a(0x236)][_0x4bc02a(0x208)](_0x57ad28,_0x18fa96);if(!_0x859033)return;let _0x5c9e99=_0x2afd27[_0x4bc02a(0x1f9)](),_0x1efa21=_0x2afd27['getAdjustNames'](),_0x4b95da={},_0x476d73={};_0x1efa21[_0x4bc02a(0x23a)](_0x13c333=>{const _0x22eadf=_0x4bc02a;let _0x1a6393=_0x2afd27[_0x22eadf(0x211)](_0x13c333);_0x476d73[_0x13c333]=_0x1a6393??0x0;});let _0x467afa=this[_0x4bc02a(0x256)](_0x1d727c,_0x57ad28,_0x18fa96,_0x3a26b3,_0x1948b3),_0x141905=this[_0x4bc02a(0x256)](_0xc7043d,_0x57ad28,_0x18fa96,_0x3a26b3,_0x1948b3);if(_0x467afa&&_0x141905){let _0x5c329b=_0x2afd27[_0x4bc02a(0x246)](),_0xac6b6c=_0x3c1584(_0x467afa,_0x141905,_0x5c329b),_0x208e45=_0x5c329b;if(_0xac6b6c){let _0x15da5a=_0x2f507a(_0xac6b6c,_0x2afd27['getShapeType']()),_0x2fe4b4=this[_0x4bc02a(0x249)][_0x4bc02a(0x1cc)](_0x57ad28,_0x18fa96);if(_0x2fe4b4&&_0x2fe4b4[_0x172f8c]){let _0x3bfa1d=_0x2fe4b4[_0x172f8c];_0x208e45=_0x15da5a[_0x4bc02a(0x214)];for(let [_0x4cab39,_0x3f08df]of Object['entries'](_0x15da5a[_0x4bc02a(0x1e3)]))_0x4b95da[_0x4cab39]=_0x3f08df;let _0x4b127e={..._0x3bfa1d[_0x4bc02a(0x1c5)],'width':_0x15da5a[_0x4bc02a(0x1e0)][_0x4bc02a(0x264)],'height':_0x15da5a[_0x4bc02a(0x1e0)][_0x4bc02a(0x21c)],'left':_0x15da5a[_0x4bc02a(0x1e0)][_0x4bc02a(0x213)],'top':_0x15da5a['worldRect'][_0x4bc02a(0x1b1)],'flipX':_0x15da5a[_0x4bc02a(0x1e0)]['flipX'],'flipY':_0x15da5a[_0x4bc02a(0x1e0)][_0x4bc02a(0x240)],'angle':_0x15da5a[_0x4bc02a(0x1a1)]},_0x30f141=_0x56c1f4(_0x4b127e,_0x859033),_0x2ed8e3=_0x4504c2(_0x4b127e,_0x859033),_0x1334e6={'unitId':_0x57ad28,'subUnitId':_0x18fa96,'drawingType':_0x512154[_0x4bc02a(0x1fe)],'drawingId':_0x172f8c,'transform':_0x4b127e,'sheetTransform':_0x30f141,'axisAlignSheetTransform':_0x2ed8e3},{unitId:_0x10e6cc,subUnitId:_0x3ce896,undo:_0xd67ca,redo:_0xfc0e77,objects:_0x822629}=this['_drawingManagerService'][_0x4bc02a(0x227)]([_0x1334e6]);_0x1bc723[_0x4bc02a(0x19c)]({'id':_0x2c8a28['id'],'params':{'unitId':_0x10e6cc,'subUnitId':_0x3ce896,'op':_0xfc0e77,'objects':_0x822629,'type':_0x2931f5[_0x4bc02a(0x1c3)]}}),_0x1dc5ba['push']({'id':_0x2c8a28['id'],'params':{'unitId':_0x10e6cc,'subUnitId':_0x3ce896,'op':_0xd67ca,'objects':_0x822629,'type':_0x2931f5['UPDATE']}});}_0x2afd27[_0x4bc02a(0x206)]();}_0x1bc723[_0x4bc02a(0x19c)]({'id':$['id'],'params':{'unitId':_0x57ad28,'subUnitId':_0x18fa96,'shapeId':_0x172f8c,'shapeType':_0x208e45,'shapeData':{'adjustValues':_0x4b95da,'relation':_0x5c9e99}}}),_0x1dc5ba[_0x4bc02a(0x19c)]({'id':$['id'],'params':{'unitId':_0x57ad28,'subUnitId':_0x18fa96,'shapeId':_0x172f8c,'shapeType':_0x5c329b,'shapeData':{'adjustValues':_0x476d73,'relation':_0x5c9e99}}});}}[_0x1af8ba(0x23d)](_0x19094f,_0x2180df,_0x7bbcde,_0x4336eb,_0x13444c,_0x28598c,_0x2fd274,_0x187c01,_0x37f751,_0x1c6c41){const _0x39e1dd=_0x1af8ba;var _0x283309;if(!_0x13444c)return;let _0x2d80de=this[_0x39e1dd(0x236)][_0x39e1dd(0x208)](_0x19094f,_0x2180df);if(!_0x2d80de)return;let _0x4f8e6c=(_0x283309=this[_0x39e1dd(0x249)][_0x39e1dd(0x24b)]({'unitId':_0x19094f,'subUnitId':_0x2180df,'drawingId':_0x37f751}))==null?void 0x0:_0x283309['transform'];if(!_0x4f8e6c)return;let _0x58e885=_0x4f8e6c[_0x39e1dd(0x213)]!==_0x1c6c41[_0x39e1dd(0x213)]||_0x4f8e6c[_0x39e1dd(0x1b1)]!==_0x1c6c41['top'],_0x1b6ca8=_0x4f8e6c[_0x39e1dd(0x264)]!==_0x1c6c41[_0x39e1dd(0x264)]||_0x4f8e6c['height']!==_0x1c6c41['height'],_0x4f7b02=_0x4f8e6c[_0x39e1dd(0x243)]!==_0x1c6c41[_0x39e1dd(0x243)]||_0x4f8e6c[_0x39e1dd(0x240)]!==_0x1c6c41[_0x39e1dd(0x240)],_0x21b590=_0x4f8e6c[_0x39e1dd(0x1f7)]!==_0x1c6c41[_0x39e1dd(0x1f7)];if(_0x58e885&&!_0x1b6ca8&&!_0x4f7b02&&!_0x21b590){let _0x2eab3d=(_0x1c6c41['left']??0x0)-(_0x4f8e6c[_0x39e1dd(0x213)]??0x0),_0x4ef9fc=(_0x1c6c41[_0x39e1dd(0x1b1)]??0x0)-(_0x4f8e6c[_0x39e1dd(0x1b1)]??0x0),_0x458534=this[_0x39e1dd(0x249)][_0x39e1dd(0x1cc)](_0x19094f,_0x2180df);if(_0x458534&&_0x458534[_0x7bbcde]){var _0x5a9047,_0x46f063;let _0x242ce2=_0x458534[_0x7bbcde],_0x31a152={..._0x242ce2[_0x39e1dd(0x1c5)],'left':(((_0x5a9047=_0x242ce2[_0x39e1dd(0x1c5)])==null?void 0x0:_0x5a9047[_0x39e1dd(0x213)])??0x0)+_0x2eab3d,'top':(((_0x46f063=_0x242ce2[_0x39e1dd(0x1c5)])==null?void 0x0:_0x46f063[_0x39e1dd(0x1b1)])??0x0)+_0x4ef9fc},_0x3c4100=_0x56c1f4(_0x31a152,_0x2d80de),_0x4853de=_0x4504c2(_0x31a152,_0x2d80de),_0x1999ac={'unitId':_0x19094f,'subUnitId':_0x2180df,'drawingType':_0x512154[_0x39e1dd(0x1fe)],'drawingId':_0x7bbcde,'transform':_0x31a152,'sheetTransform':_0x3c4100,'axisAlignSheetTransform':_0x4853de},{unitId:_0xbd41,subUnitId:_0x172878,undo:_0x139eb1,redo:_0x8262af,objects:_0x23b3a9}=this[_0x39e1dd(0x249)][_0x39e1dd(0x227)]([_0x1999ac]);_0x2fd274[_0x39e1dd(0x19c)]({'id':_0x2c8a28['id'],'params':{'unitId':_0xbd41,'subUnitId':_0x172878,'op':_0x8262af,'objects':_0x23b3a9,'type':_0x2931f5[_0x39e1dd(0x1c3)]}}),_0x187c01['push']({'id':_0x2c8a28['id'],'params':{'unitId':_0xbd41,'subUnitId':_0x172878,'op':_0x139eb1,'objects':_0x23b3a9,'type':_0x2931f5[_0x39e1dd(0x1c3)]}});}}else{let _0x37fc96=_0x4336eb[_0x39e1dd(0x225)](),_0x4cba90=_0x4336eb[_0x39e1dd(0x255)]();this[_0x39e1dd(0x1ad)](_0x19094f,_0x2180df,_0x7bbcde,_0x4336eb,_0x37fc96,_0x4cba90,_0x2fd274,_0x187c01,_0x37f751,_0x1c6c41);}}};Te=le([Z(0x0,_0x4667d0),Z(0x1,_0x2e9398(_0x2d02fd)),Z(0x2,_0x2e9398(_0x2f9e3d)),Z(0x3,_0x2e9398(Q)),Z(0x4,_0x2e9398(_0x1ade4e)),Z(0x5,_0x2e9398(_0x4a2e80)),Z(0x6,_0x2e9398(Ce))],Te);let Ee=class extends _0x579ef8{constructor(_0x123cc9,_0x344fa5,_0x5093bf){const _0x3e9c0b=_0x1af8ba;super(),this['_shapeService']=_0x123cc9,this[_0x3e9c0b(0x21d)]=_0x344fa5,this[_0x3e9c0b(0x1a0)](_0x5093bf[_0x3e9c0b(0x1d4)](this));}[_0x1af8ba(0x1c5)](_0x5da8eb){const _0x46d6bb=_0x1af8ba;let _0x43fffa={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x46d6bb(0x235)](_0x5da8eb,_0x43fffa);for(let [_0x3e283b,_0x1d2720]of _0x5da8eb[_0x46d6bb(0x209)])this[_0x46d6bb(0x20f)](_0x5da8eb,_0x3e283b,_0x1d2720,_0x43fffa);return _0x43fffa;}[_0x1af8ba(0x235)](_0x1235de,_0x1090d0){const _0x4812fa=_0x1af8ba;if(_0x1235de[_0x4812fa(0x1bc)]===_0x4812fa(0x220))for(let _0x4bcc4c of _0x1235de['deletes']){let _0xb3a849=_0x1235de[_0x4812fa(0x209)][_0x4812fa(0x1e9)](_0x4bcc4c),_0x3efdfe=this[_0x4812fa(0x1fd)][_0x4812fa(0x1e5)](_0x1235de['unitId'],_0x1235de[_0x4812fa(0x1a2)],_0x4bcc4c);(_0xb3a849==null?void 0x0:_0xb3a849['drawingType'])===_0x512154[_0x4812fa(0x1fe)]&&_0x3efdfe&&(_0x1090d0[_0x4812fa(0x20b)]['push']({'id':de['id'],'params':{'unitId':_0x1235de[_0x4812fa(0x217)],'subUnitId':_0x1235de[_0x4812fa(0x1a2)],'shapeId':_0x4bcc4c}}),_0x1090d0[_0x4812fa(0x1a5)][_0x4812fa(0x19c)]({'id':ue['id'],'params':{'unitId':_0x1235de[_0x4812fa(0x217)],'subUnitId':_0x1235de[_0x4812fa(0x1a2)],'shapeId':_0x4bcc4c,'shapeName':_0x3efdfe[_0x4812fa(0x1dd)](),'shapeType':_0x3efdfe[_0x4812fa(0x246)](),'shapeData':_0x1030c0[_0x4812fa(0x262)](_0x3efdfe[_0x4812fa(0x260)]())}}));}}[_0x1af8ba(0x20f)](_0x2c368f,_0x55c567,_0x49bf28,_0x4025cf){const _0x345ff6=_0x1af8ba;if(_0x49bf28[_0x345ff6(0x24c)]!==_0x512154[_0x345ff6(0x1fe)]||_0x2c368f[_0x345ff6(0x21a)]['has'](_0x55c567))return;let _0xdd322a=this[_0x345ff6(0x1fd)][_0x345ff6(0x1e5)](_0x2c368f[_0x345ff6(0x217)],_0x2c368f[_0x345ff6(0x1a2)],_0x55c567);if(!_0xdd322a||!_0x551829(_0xdd322a['getShapeType']()))return;let _0x948924=_0xdd322a[_0x345ff6(0x1f9)]();if(!(_0x2c368f[_0x345ff6(0x1ed)][_0x345ff6(0x244)](_0x55c567)||_0x948924!=null&&_0x948924[_0x345ff6(0x253)]&&(_0x2c368f[_0x345ff6(0x1ed)][_0x345ff6(0x244)](_0x948924[_0x345ff6(0x253)][_0x345ff6(0x1e8)])||_0x2c368f['deletes'][_0x345ff6(0x244)](_0x948924['from'][_0x345ff6(0x1e8)]))||_0x948924!=null&&_0x948924['to']&&(_0x2c368f[_0x345ff6(0x1ed)]['has'](_0x948924['to']['shapeId'])||_0x2c368f[_0x345ff6(0x21a)][_0x345ff6(0x244)](_0x948924['to'][_0x345ff6(0x1e8)]))))return;let _0x31c06c=_0x2c368f['updates']['get'](_0x55c567)??_0x49bf28,_0x4f29b1=this[_0x345ff6(0x222)](_0x2c368f,_0x31c06c);if(!_0x4f29b1)return;let _0x30fd07=_0x2441fb(_0x4f29b1);if(_0x30fd07[_0x345ff6(0x252)]<0x2)return;let _0x1a2b03=_0x1030c0[_0x345ff6(0x262)](_0x948924??{}),_0x58a115=_0x1a2b03[_0x345ff6(0x253)]&&this[_0x345ff6(0x238)](_0x2c368f,_0x1a2b03[_0x345ff6(0x253)][_0x345ff6(0x1e8)],_0x1a2b03[_0x345ff6(0x253)]['cxnIndex']),_0x2ed4a3=_0x1a2b03['to']&&this[_0x345ff6(0x238)](_0x2c368f,_0x1a2b03['to']['shapeId'],_0x1a2b03['to'][_0x345ff6(0x239)]);_0x1a2b03['from']&&!_0x58a115&&delete _0x1a2b03[_0x345ff6(0x253)],_0x1a2b03['to']&&!_0x2ed4a3&&delete _0x1a2b03['to'];let _0x2b5881=_0x58a115||_0x4ab8b7((_0x2ed4a3==null?void 0x0:_0x2ed4a3[_0x345ff6(0x1b6)])??_0x30fd07[_0x30fd07[_0x345ff6(0x252)]-0x1],_0x30fd07[0x0]),_0x2d3964=_0x2ed4a3||_0x4ab8b7((_0x58a115==null?void 0x0:_0x58a115[_0x345ff6(0x1b6)])??_0x30fd07[0x0],_0x30fd07[_0x30fd07[_0x345ff6(0x252)]-0x1]),_0x2f1ac2=_0x45d483(_0x4f29b1,_0x2b5881,_0x2d3964,_0x1a2b03);_0x2f1ac2!=null&&_0x2f1ac2[_0x345ff6(0x1c5)]&&_0x2f1ac2['shapeType']&&_0x2f1ac2[_0x345ff6(0x261)]&&(this[_0x345ff6(0x23e)](_0x2c368f,_0x31c06c,_0x2f1ac2),_0x2c368f[_0x345ff6(0x1bc)]===_0x345ff6(0x1ba)?(_0xdd322a['setShapeType'](_0x2f1ac2['shapeType']),_0xdd322a[_0x345ff6(0x25f)](_0x1030c0[_0x345ff6(0x262)](_0x2f1ac2['shapeData']),!0x1)):(_0x4025cf[_0x345ff6(0x22c)][_0x345ff6(0x19c)]({'id':$['id'],'params':{'unitId':_0x2c368f[_0x345ff6(0x217)],'subUnitId':_0x2c368f[_0x345ff6(0x1a2)],'shapeId':_0x55c567,'shapeType':_0x2f1ac2[_0x345ff6(0x1e1)],'shapeData':_0x1030c0[_0x345ff6(0x262)](_0x2f1ac2[_0x345ff6(0x261)]),'replace':!0x0}}),_0x4025cf[_0x345ff6(0x1a5)]['push']({'id':$['id'],'params':{'unitId':_0x2c368f[_0x345ff6(0x217)],'subUnitId':_0x2c368f['subUnitId'],'shapeId':_0x55c567,'shapeType':_0xdd322a[_0x345ff6(0x246)](),'shapeData':_0x1030c0[_0x345ff6(0x262)](_0xdd322a[_0x345ff6(0x260)]()),'replace':!0x0}})));}[_0x1af8ba(0x238)](_0xf483a8,_0x5abac7,_0x3f2f98){const _0x35091d=_0x1af8ba;if(_0xf483a8[_0x35091d(0x21a)]['has'](_0x5abac7))return null;let _0x623e0b=_0xf483a8['updates']['get'](_0x5abac7)??_0xf483a8[_0x35091d(0x209)]['get'](_0x5abac7);if(!_0x623e0b)return null;let _0x276410=this[_0x35091d(0x222)](_0xf483a8,_0x623e0b);return _0x276410?_0x30d25e(_0x276410,_0x3f2f98):null;}[_0x1af8ba(0x222)](_0x192e62,_0x4ff45c){const _0x3fa36c=_0x1af8ba;let _0x238f1a={'hostType':_0x2c36da[_0x3fa36c(0x263)],'unitId':_0x192e62[_0x3fa36c(0x217)],'subUnitId':_0x192e62[_0x3fa36c(0x1a2)],'shapeId':_0x4ff45c[_0x3fa36c(0x1be)]},_0xaeabb8=this[_0x3fa36c(0x21d)][_0x3fa36c(0x23f)](_0x238f1a);return!_0xaeabb8||!_0x4ff45c[_0x3fa36c(0x1c5)]?null:{..._0xaeabb8,'transform':{'left':_0x4ff45c[_0x3fa36c(0x1c5)][_0x3fa36c(0x213)]??0x0,'top':_0x4ff45c['transform'][_0x3fa36c(0x1b1)]??0x0,'width':_0x4ff45c[_0x3fa36c(0x1c5)][_0x3fa36c(0x264)]??0x0,'height':_0x4ff45c[_0x3fa36c(0x1c5)]['height']??0x0,'rotation':_0x4ff45c[_0x3fa36c(0x1c5)][_0x3fa36c(0x1f7)]??0x0,'flipX':_0x4ff45c[_0x3fa36c(0x1c5)][_0x3fa36c(0x243)]??!0x1,'flipY':_0x4ff45c[_0x3fa36c(0x1c5)]['flipY']??!0x1}};}['_applyUpdate'](_0x3b5661,_0x7cd445,_0x47dbbd){const _0x1187d8=_0x1af8ba;let _0xfc00d5=_0x7cd445,_0x2cf601={..._0x7cd445['transform'],'left':_0x47dbbd[_0x1187d8(0x1c5)][_0x1187d8(0x213)],'top':_0x47dbbd[_0x1187d8(0x1c5)][_0x1187d8(0x1b1)],'width':_0x47dbbd[_0x1187d8(0x1c5)]['width'],'height':_0x47dbbd['transform']['height'],'angle':_0x47dbbd[_0x1187d8(0x1c5)]['rotation'],'flipX':_0x47dbbd[_0x1187d8(0x1c5)][_0x1187d8(0x243)],'flipY':_0x47dbbd[_0x1187d8(0x1c5)][_0x1187d8(0x240)]},_0x1222df={..._0xfc00d5,'transform':_0x2cf601,'sheetTransform':_0x56c1f4(_0x2cf601,_0x3b5661[_0x1187d8(0x1fb)]),'axisAlignSheetTransform':_0x4504c2(_0x2cf601,_0x3b5661[_0x1187d8(0x1fb)]),'data':{..._0xfc00d5[_0x1187d8(0x1ee)],'shapeType':_0x47dbbd[_0x1187d8(0x1e1)],'shapeData':_0x1030c0[_0x1187d8(0x262)](_0x47dbbd[_0x1187d8(0x261)])}};_0x3b5661[_0x1187d8(0x1ed)][_0x1187d8(0x210)](_0x7cd445[_0x1187d8(0x1be)],_0x1222df);}};Ee=le([Z(0x0,_0x2e9398(Q)),Z(0x1,_0x2e9398(Ce)),Z(0x2,_0x2e9398(_0x67a695))],Ee);let De=class extends _0x1d0c76{constructor(_0x47cb36=we,_0x3b74ee,_0x2816c8){const _0x5a19ea=_0x1af8ba;super(),this[_0x5a19ea(0x221)]=_0x47cb36,this[_0x5a19ea(0x21f)]=_0x3b74ee,this[_0x5a19ea(0x1c9)]=_0x2816c8;let {..._0x5ae7cd}=_0x32805e({},we,this['_config']);this['_configService']['setConfig']('sheets-shape.config',_0x5ae7cd);}[_0x1af8ba(0x201)](){const _0x57bd80=_0x1af8ba;let _0x2c4aab=this['_injector'];[[ce],[Q],[Ce],[Ee],[Te]][_0x57bd80(0x23a)](_0x520dbb=>_0x2c4aab[_0x57bd80(0x23c)](_0x520dbb)),_0x4a0a9e(_0x2c4aab,[[Q],[Ee],[Te]]);}};X(De,_0x1af8ba(0x219),_0x2c36da[_0x1af8ba(0x263)]),X(De,_0x1af8ba(0x1d7),'SHEET_SHAPE_PLUGIN'),X(De,_0x1af8ba(0x1c8),be),X(De,_0x1af8ba(0x1b3),xe),De=le([_0x29d693(_0x4e5f89,_0x4891c7,_0x3937ec,_0x5e821c,_0x2768d5),Z(0x1,_0x2e9398(_0x69fd41)),Z(0x2,_0x51005e)],De);export{ie as DEFAULT_SHAPE_HEIGHT,re as DEFAULT_SHAPE_WIDTH,fe as InsertShapeCommand,ue as InsertSheetsShapeMutation,de as RemoveSheetsShapeMutation,pe as SetShapeDrawingDataCommand,he as SetSheetsShapeRotateCommand,ge as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,De as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x54438a=_0x1656;(function(_0x49f4ac,_0x37dab0){const _0x57d916=_0x1656,_0x376b52=_0x49f4ac();while(!![]){try{const _0x48292c=-parseInt(_0x57d916(0x1e2))/0x1*(-parseInt(_0x57d916(0x1cf))/0x2)+parseInt(_0x57d916(0x1bd))/0x3*(parseInt(_0x57d916(0x1c0))/0x4)+parseInt(_0x57d916(0x1da))/0x5+parseInt(_0x57d916(0x1c9))/0x6*(-parseInt(_0x57d916(0x1cc))/0x7)+-parseInt(_0x57d916(0x1b7))/0x8+-parseInt(_0x57d916(0x1d8))/0x9*(-parseInt(_0x57d916(0x1e4))/0xa)+-parseInt(_0x57d916(0x1be))/0xb;if(_0x48292c===_0x37dab0)break;else _0x376b52['push'](_0x376b52['shift']());}catch(_0x5ec17e){_0x376b52['push'](_0x376b52['shift']());}}}(_0x5d44,0xc584a));function _0x5d44(){const _0x177d63=['getShapes','_getShapeAdapter','3EYAwRz','12207833dwOkhX','warn','3170668EsYCPi','getDrawingByParam','listShapes','decorate','getPlacement','getWorkbook','get','_sheetDrawingService','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','34200EEiUrT','_commandService','_injector','1092INeIqx','subUnitId','getShape','2gEGxIk','length','transform','unitId','object','_getShapeScope','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','shapeId','\x22\x20has\x20no\x20transform\x20extent.','455103zzQAmx','syncExecuteCommand','5352565mmpCKn','setPosition','\x22\x20was\x20not\x20found.','UNIVER_SHEET','_shapeRef','_createShapeHandle','createInstance','getUnitId','1567306nhKbUA','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','40FsaMUT','setPlacement','createShape','6597736fgaCtm','function','map','getSheetId'];_0x5d44=function(){return _0x177d63;};return _0x5d44();}import{IShapeHostAdapterRegistry as _0x10710c,isConnectorShape as _0x3be048}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x4879c5,FShape as _0x4f0cad}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x389fff,UniverInstanceType as _0x4456e6}from'@univerjs/core';import{FWorksheet as _0x52fb30}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x38a7cd,SetSheetDrawingPlacementCommand as _0x54b839,SheetDrawingAnchorType as _0x150267,getSheetDrawingPlacement as _0x53203d}from'@univerjs/sheets-drawing';function d(_0x7c59d1,_0x21e406){return function(_0x16fe7f,_0x589fa0){_0x21e406(_0x16fe7f,_0x589fa0,_0x7c59d1);};}function f(_0x2427eb,_0x3a43d4,_0x8eaace,_0x3d9bbf){const _0x4552d6=_0x1656;var _0x29c118=arguments[_0x4552d6(0x1d0)],_0x2b0d2c=_0x29c118<0x3?_0x3a43d4:_0x3d9bbf===null?_0x3d9bbf=Object['getOwnPropertyDescriptor'](_0x3a43d4,_0x8eaace):_0x3d9bbf,_0x581fa3;if(typeof Reflect==_0x4552d6(0x1d3)&&typeof Reflect[_0x4552d6(0x1c3)]==_0x4552d6(0x1b8))_0x2b0d2c=Reflect[_0x4552d6(0x1c3)](_0x2427eb,_0x3a43d4,_0x8eaace,_0x3d9bbf);else{for(var _0x2602b9=_0x2427eb[_0x4552d6(0x1d0)]-0x1;_0x2602b9>=0x0;_0x2602b9--)(_0x581fa3=_0x2427eb[_0x2602b9])&&(_0x2b0d2c=(_0x29c118<0x3?_0x581fa3(_0x2b0d2c):_0x29c118>0x3?_0x581fa3(_0x3a43d4,_0x8eaace,_0x2b0d2c):_0x581fa3(_0x3a43d4,_0x8eaace))||_0x2b0d2c);}return _0x29c118>0x3&&_0x2b0d2c&&Object['defineProperty'](_0x3a43d4,_0x8eaace,_0x2b0d2c),_0x2b0d2c;}let p=class extends _0x4f0cad{constructor(_0x4cc15c,_0x22d318,_0x7a58cc,_0xd1b1cc,_0x318b89){const _0x44ac98=_0x1656;super(_0x4cc15c,_0x22d318,_0x7a58cc,_0xd1b1cc),this[_0x44ac98(0x1c7)]=_0x318b89;}[_0x54438a(0x1c4)](){const _0x22a403=_0x54438a;let _0x5982da=this[_0x22a403(0x1c7)][_0x22a403(0x1c1)]({'unitId':this[_0x22a403(0x1de)][_0x22a403(0x1d2)],'subUnitId':this[_0x22a403(0x1de)][_0x22a403(0x1cd)],'drawingId':this[_0x22a403(0x1de)][_0x22a403(0x1d6)]});return _0x5982da?_0x53203d(_0x5982da):null;}[_0x54438a(0x1e5)](_0x2e2f1c){const _0x542076=_0x54438a;return this[_0x542076(0x1ca)][_0x542076(0x1d9)](_0x54b839['id'],{'unitId':this[_0x542076(0x1de)]['unitId'],'subUnitId':this[_0x542076(0x1de)]['subUnitId'],'drawings':[{'drawingId':this['_shapeRef'][_0x542076(0x1d6)],'placement':_0x2e2f1c}]});}[_0x54438a(0x1db)](_0x297c5f,_0x1e9511,_0x5f0e0f,_0x4323d4){const _0x572282=_0x54438a;var _0x4e543e,_0x4e19dd;let _0x53d68d=this[_0x572282(0x1c7)]['getDrawingByParam']({'unitId':this['_shapeRef']['unitId'],'subUnitId':this[_0x572282(0x1de)][_0x572282(0x1cd)],'drawingId':this['_shapeRef'][_0x572282(0x1d6)]});if(!_0x53d68d)return console[_0x572282(0x1bf)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x572282(0x1de)][_0x572282(0x1d6)]+_0x572282(0x1dc)),this;let _0x95644d=(_0x4e543e=_0x53d68d[_0x572282(0x1d1)])==null?void 0x0:_0x4e543e['width'],_0x5bcd8a=(_0x4e19dd=_0x53d68d[_0x572282(0x1d1)])==null?void 0x0:_0x4e19dd['height'];return _0x95644d==null||_0x5bcd8a==null?(console['warn'](_0x572282(0x1d5)+this[_0x572282(0x1de)]['shapeId']+_0x572282(0x1d7)),this):(this[_0x572282(0x1ca)]['syncExecuteCommand'](_0x54b839['id'],{'unitId':this[_0x572282(0x1de)][_0x572282(0x1d2)],'subUnitId':this[_0x572282(0x1de)]['subUnitId'],'drawings':[{'drawingId':this[_0x572282(0x1de)]['shapeId'],'placement':{'kind':_0x150267['Position'],'from':{'row':_0x297c5f,'column':_0x1e9511,'rowOffset':_0x5f0e0f,'columnOffset':_0x4323d4},'width':_0x95644d,'height':_0x5bcd8a}}]}),this);}};p=f([d(0x2,_0x10710c),d(0x3,_0x389fff),d(0x4,_0x38a7cd)],p);var m=class extends _0x52fb30{['insertShape'](_0x38d256){const _0x4b717e=_0x54438a;let _0x471b79=this[_0x4b717e(0x1bc)]();if(!_0x471b79)return null;try{let _0x1e0eeb=_0x471b79[_0x4b717e(0x1e6)](this[_0x4b717e(0x1d4)](),_0x38d256);return _0x1e0eeb?this[_0x4b717e(0x1df)](_0x1e0eeb):(console[_0x4b717e(0x1bf)](_0x4b717e(0x1c8)),null);}catch(_0x3c90fa){return console[_0x4b717e(0x1bf)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.',_0x3c90fa),null;}}['getShape'](_0x5930e5){const _0x3cc0f1=_0x54438a;let _0xf0afe6=this[_0x3cc0f1(0x1bc)]();if(!_0xf0afe6)return null;try{let _0x1d15b9={...this[_0x3cc0f1(0x1d4)](),'shapeId':_0x5930e5},_0x3ef7f5=_0xf0afe6[_0x3cc0f1(0x1ce)](_0x1d15b9);return _0x3ef7f5?this[_0x3cc0f1(0x1df)](_0x3ef7f5):(console['warn'](_0x3cc0f1(0x1d5)+_0x5930e5+_0x3cc0f1(0x1dc)),null);}catch(_0x2b5fd1){return console[_0x3cc0f1(0x1bf)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22'+_0x5930e5+'\x22.',_0x2b5fd1),null;}}[_0x54438a(0x1bb)](){const _0x2d7073=_0x54438a;let _0x2825c6=this['_getShapeAdapter']();if(!_0x2825c6)return[];try{return _0x2825c6[_0x2d7073(0x1c2)](this[_0x2d7073(0x1d4)]())[_0x2d7073(0x1b9)](_0x11ecbd=>this[_0x2d7073(0x1df)](_0x11ecbd));}catch(_0x2f528d){return console[_0x2d7073(0x1bf)](_0x2d7073(0x1e3),_0x2f528d),[];}}[_0x54438a(0x1d4)](){const _0x5f1bc1=_0x54438a;return{'hostType':_0x4456e6[_0x5f1bc1(0x1dd)],'unitId':this[_0x5f1bc1(0x1c5)]()[_0x5f1bc1(0x1e1)](),'subUnitId':this[_0x5f1bc1(0x1ba)]()};}[_0x54438a(0x1bc)](){const _0x46c6b2=_0x54438a;return this[_0x46c6b2(0x1cb)]['get'](_0x10710c)[_0x46c6b2(0x1c6)](_0x4456e6[_0x46c6b2(0x1dd)]);}[_0x54438a(0x1df)](_0x44a40a){const _0xcbc9f5=_0x54438a;let {unitId:_0x38b3e2,subUnitId:_0x12784b,shapeId:_0xff8c5e}=_0x44a40a,_0x403b97={'unitId':_0x38b3e2,'subUnitId':_0x12784b,'shapeId':_0xff8c5e,'hostType':_0x4456e6[_0xcbc9f5(0x1dd)]};return _0x3be048(_0x44a40a['shapeType'])?this[_0xcbc9f5(0x1cb)][_0xcbc9f5(0x1e0)](_0x4879c5,_0x403b97,this[_0xcbc9f5(0x1cb)]):this[_0xcbc9f5(0x1cb)]['createInstance'](p,_0x403b97,this['_injector']);}};_0x52fb30['extend'](m);function _0x1656(_0x5a0760,_0x1881cc){_0x5a0760=_0x5a0760-0x1b7;const _0x5d4492=_0x5d44();let _0x1656d8=_0x5d4492[_0x5a0760];return _0x1656d8;}export{p as FSheetShape};
1
+ const _0x277267=_0x50db;function _0x50db(_0x19162d,_0x44909d){_0x19162d=_0x19162d-0x165;const _0xf5e35a=_0xf5e3();let _0x50db02=_0xf5e35a[_0x19162d];return _0x50db02;}function _0xf5e3(){const _0x4b41b6=['\x22\x20has\x20no\x20transform\x20extent.','setPosition','_getShapeScope','map','createInstance','42nhRPHz','width','object','shapeType','_sheetDrawingService','_createShapeHandle','subUnitId','setPlacement','Position','get','3380912lhTUBg','unitId','UNIVER_SHEET','insertShape','getSheetId','getDrawingByParam','_getShapeAdapter','getOwnPropertyDescriptor','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','extend','syncExecuteCommand','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','5NQOXLd','_injector','_commandService','length','304468UQhEyc','6410556pHpIQy','transform','function','warn','12087DtQgLW','158214TMnpLf','decorate','getUnitId','_shapeRef','3755290rMTopT','getShapes','createShape','shapeId','7090dHaprX','\x22\x20was\x20not\x20found.','getShape','listShapes','2681742qTiSXQ'];_0xf5e3=function(){return _0x4b41b6;};return _0xf5e3();}(function(_0xbf2a8b,_0x4175a7){const _0x1b60d2=_0x50db,_0x41f7fb=_0xbf2a8b();while(!![]){try{const _0x3c8308=-parseInt(_0x1b60d2(0x194))/0x1*(-parseInt(_0x1b60d2(0x16c))/0x2)+-parseInt(_0x1b60d2(0x17e))/0x3*(parseInt(_0x1b60d2(0x166))/0x4)+-parseInt(_0x1b60d2(0x170))/0x5+parseInt(_0x1b60d2(0x167))/0x6+parseInt(_0x1b60d2(0x178))/0x7+-parseInt(_0x1b60d2(0x188))/0x8+parseInt(_0x1b60d2(0x16b))/0x9*(parseInt(_0x1b60d2(0x174))/0xa);if(_0x3c8308===_0x4175a7)break;else _0x41f7fb['push'](_0x41f7fb['shift']());}catch(_0x5c27ad){_0x41f7fb['push'](_0x41f7fb['shift']());}}}(_0xf5e3,0x88b48));import{IShapeHostAdapterRegistry as _0x1915f2,isConnectorShape as _0x175a42}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x576c15,FShape as _0x524fe6}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x3cfcad,UniverInstanceType as _0xfac74a}from'@univerjs/core';import{FWorksheet as _0x39eab9}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x48bb2c,SetSheetDrawingPlacementCommand as _0x163f9b,SheetDrawingAnchorType as _0x18f1da,getSheetDrawingPlacement as _0x479626}from'@univerjs/sheets-drawing';function d(_0x5d1256,_0x518575){return function(_0x2ebb5b,_0x39491e){_0x518575(_0x2ebb5b,_0x39491e,_0x5d1256);};}function f(_0x40614b,_0x10bde1,_0x535404,_0x456fca){const _0x4571db=_0x50db;var _0x2baf44=arguments[_0x4571db(0x165)],_0x38805e=_0x2baf44<0x3?_0x10bde1:_0x456fca===null?_0x456fca=Object[_0x4571db(0x18f)](_0x10bde1,_0x535404):_0x456fca,_0x3e9850;if(typeof Reflect==_0x4571db(0x180)&&typeof Reflect[_0x4571db(0x16d)]==_0x4571db(0x169))_0x38805e=Reflect['decorate'](_0x40614b,_0x10bde1,_0x535404,_0x456fca);else{for(var _0x86de1d=_0x40614b['length']-0x1;_0x86de1d>=0x0;_0x86de1d--)(_0x3e9850=_0x40614b[_0x86de1d])&&(_0x38805e=(_0x2baf44<0x3?_0x3e9850(_0x38805e):_0x2baf44>0x3?_0x3e9850(_0x10bde1,_0x535404,_0x38805e):_0x3e9850(_0x10bde1,_0x535404))||_0x38805e);}return _0x2baf44>0x3&&_0x38805e&&Object['defineProperty'](_0x10bde1,_0x535404,_0x38805e),_0x38805e;}let p=class extends _0x524fe6{constructor(_0x38b95c,_0xbfb669,_0x42ce37,_0x4c14aa,_0x47800c){const _0x44ae8d=_0x50db;super(_0x38b95c,_0xbfb669,_0x42ce37,_0x4c14aa),this[_0x44ae8d(0x182)]=_0x47800c;}['getPlacement'](){const _0x4ee41e=_0x50db;let _0x5d7b8e=this[_0x4ee41e(0x182)][_0x4ee41e(0x18d)]({'unitId':this[_0x4ee41e(0x16f)][_0x4ee41e(0x189)],'subUnitId':this[_0x4ee41e(0x16f)][_0x4ee41e(0x184)],'drawingId':this['_shapeRef'][_0x4ee41e(0x173)]});return _0x5d7b8e?_0x479626(_0x5d7b8e):null;}[_0x277267(0x185)](_0x598cba){const _0x1cb286=_0x277267;return this['_commandService']['syncExecuteCommand'](_0x163f9b['id'],{'unitId':this[_0x1cb286(0x16f)][_0x1cb286(0x189)],'subUnitId':this[_0x1cb286(0x16f)]['subUnitId'],'drawings':[{'drawingId':this['_shapeRef']['shapeId'],'placement':_0x598cba}]});}[_0x277267(0x17a)](_0x1bb011,_0xc49b46,_0x2f0dac,_0x1bef0c){const _0xf466ea=_0x277267;var _0x47a176,_0x2f7d51;let _0x778fe5=this['_sheetDrawingService'][_0xf466ea(0x18d)]({'unitId':this[_0xf466ea(0x16f)][_0xf466ea(0x189)],'subUnitId':this[_0xf466ea(0x16f)][_0xf466ea(0x184)],'drawingId':this[_0xf466ea(0x16f)]['shapeId']});if(!_0x778fe5)return console[_0xf466ea(0x16a)](_0xf466ea(0x193)+this[_0xf466ea(0x16f)][_0xf466ea(0x173)]+'\x22\x20was\x20not\x20found.'),this;let _0x3a9794=(_0x47a176=_0x778fe5[_0xf466ea(0x168)])==null?void 0x0:_0x47a176[_0xf466ea(0x17f)],_0x4dcba0=(_0x2f7d51=_0x778fe5[_0xf466ea(0x168)])==null?void 0x0:_0x2f7d51['height'];return _0x3a9794==null||_0x4dcba0==null?(console[_0xf466ea(0x16a)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this[_0xf466ea(0x16f)]['shapeId']+_0xf466ea(0x179)),this):(this[_0xf466ea(0x196)][_0xf466ea(0x192)](_0x163f9b['id'],{'unitId':this[_0xf466ea(0x16f)][_0xf466ea(0x189)],'subUnitId':this['_shapeRef']['subUnitId'],'drawings':[{'drawingId':this[_0xf466ea(0x16f)][_0xf466ea(0x173)],'placement':{'kind':_0x18f1da[_0xf466ea(0x186)],'from':{'row':_0x1bb011,'column':_0xc49b46,'rowOffset':_0x2f0dac,'columnOffset':_0x1bef0c},'width':_0x3a9794,'height':_0x4dcba0}}]}),this);}};p=f([d(0x2,_0x1915f2),d(0x3,_0x3cfcad),d(0x4,_0x48bb2c)],p);var m=class extends _0x39eab9{[_0x277267(0x18b)](_0xaf2712){const _0x1a6b63=_0x277267;let _0x443bc4=this[_0x1a6b63(0x18e)]();if(!_0x443bc4)return null;try{let _0x14b1d1=_0x443bc4[_0x1a6b63(0x172)](this[_0x1a6b63(0x17b)](),_0xaf2712);return _0x14b1d1?this[_0x1a6b63(0x183)](_0x14b1d1):(console[_0x1a6b63(0x16a)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.'),null);}catch(_0x32b798){return console[_0x1a6b63(0x16a)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.',_0x32b798),null;}}['getShape'](_0x45b334){const _0x5db415=_0x277267;let _0x5302ed=this[_0x5db415(0x18e)]();if(!_0x5302ed)return null;try{let _0x5d706b={...this[_0x5db415(0x17b)](),'shapeId':_0x45b334},_0x2a9ca0=_0x5302ed[_0x5db415(0x176)](_0x5d706b);return _0x2a9ca0?this[_0x5db415(0x183)](_0x2a9ca0):(console[_0x5db415(0x16a)](_0x5db415(0x193)+_0x45b334+_0x5db415(0x175)),null);}catch(_0x458407){return console[_0x5db415(0x16a)](_0x5db415(0x190)+_0x45b334+'\x22.',_0x458407),null;}}[_0x277267(0x171)](){const _0x38f9ab=_0x277267;let _0x3f9c5d=this[_0x38f9ab(0x18e)]();if(!_0x3f9c5d)return[];try{return _0x3f9c5d[_0x38f9ab(0x177)](this['_getShapeScope']())[_0x38f9ab(0x17c)](_0x51cab1=>this['_createShapeHandle'](_0x51cab1));}catch(_0x11907e){return console[_0x38f9ab(0x16a)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.',_0x11907e),[];}}[_0x277267(0x17b)](){const _0x1d221c=_0x277267;return{'hostType':_0xfac74a[_0x1d221c(0x18a)],'unitId':this['getWorkbook']()[_0x1d221c(0x16e)](),'subUnitId':this[_0x1d221c(0x18c)]()};}['_getShapeAdapter'](){const _0x3a0399=_0x277267;return this[_0x3a0399(0x195)]['get'](_0x1915f2)[_0x3a0399(0x187)](_0xfac74a[_0x3a0399(0x18a)]);}[_0x277267(0x183)](_0x49841f){const _0x445165=_0x277267;let {unitId:_0x2d8dca,subUnitId:_0x5259dc,shapeId:_0x3970d4}=_0x49841f,_0x527344={'unitId':_0x2d8dca,'subUnitId':_0x5259dc,'shapeId':_0x3970d4,'hostType':_0xfac74a[_0x445165(0x18a)]};return _0x175a42(_0x49841f[_0x445165(0x181)])?this[_0x445165(0x195)][_0x445165(0x17d)](_0x576c15,_0x527344,this[_0x445165(0x195)]):this[_0x445165(0x195)][_0x445165(0x17d)](p,_0x527344,this[_0x445165(0x195)]);}};_0x39eab9[_0x277267(0x191)](m);export{p as FSheetShape};