@univerjs-pro/sheets-shape 1.3.1 → 1.5.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 _0x280f9e=_0x85a7;(function(_0x3aa90a,_0x5a5ba5){const _0x8c4cd4=_0x85a7,_0x2f1250=_0x3aa90a();while(!![]){try{const _0x3b32e3=-parseInt(_0x8c4cd4(0xec))/0x1+parseInt(_0x8c4cd4(0xcb))/0x2*(-parseInt(_0x8c4cd4(0x168))/0x3)+-parseInt(_0x8c4cd4(0xca))/0x4+-parseInt(_0x8c4cd4(0xbf))/0x5+-parseInt(_0x8c4cd4(0x160))/0x6*(parseInt(_0x8c4cd4(0xde))/0x7)+parseInt(_0x8c4cd4(0xe5))/0x8*(-parseInt(_0x8c4cd4(0x12c))/0x9)+parseInt(_0x8c4cd4(0xe9))/0xa*(parseInt(_0x8c4cd4(0x12e))/0xb);if(_0x3b32e3===_0x5a5ba5)break;else _0x2f1250['push'](_0x2f1250['shift']());}catch(_0x2ef116){_0x2f1250['push'](_0x2f1250['shift']());}}}(_0x2a53,0x23871));import{IShapeHostAdapterRegistry as _0x4dfa79,ShapeModel as _0x146be9,UniverShapePlugin as _0x130a10,buildConnectorEndpointUpdate as _0x97f49c,canApplyShapeFormulaLastValue as _0x38be55,computeConnectorRouteLayout as _0x13a585,createDefaultInsertedShapeData as _0x37770b,createFreeConnectorPointInfo as _0x3c819c,createUniqueShapeName as _0xf4f772,getBasicShapeRotateBound as _0x161b03,isConnectorShape as _0x50c3a7,resolveConnectorRoutePoints as _0x4b450a,resolveShapeConnectionPoint as _0x391d2f,routeConnectorLineShape as _0x5549d7}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x5c73a5,CommandType as _0x5a7102,DependentOn as _0x5cb7af,Disposable as _0x2bc8e7,DrawingTypeEnum as _0x4c4e17,ICommandService as _0x26bdbb,IConfigService as _0x388349,IResourceManagerService as _0x3a6d1d,IUndoRedoService as _0x3833a8,IUniverInstanceService as _0x357a2c,Inject as _0x4eaa88,Injector as _0x2b9b4b,Plugin as _0x426c41,Tools as _0x245736,UniverInstanceType as _0x330674,generateRandomId as _0x4b832f,merge as _0x45c8b0,sequenceExecute as _0x2eb1bc,touchDependencies as _0x3fb557}from'@univerjs/core';import{SheetInterceptorService as _0x4f1328,SheetSkeletonService as _0x276426,UniverSheetsPlugin as _0xf6b7a1,getSheetCommandTarget as _0x301198}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0xa9a285,DrawingApplyType as _0x45565a,ISheetDrawingService as _0xbb9270,InsertSheetDrawingCommand as _0x692e6d,RemoveSheetDrawingCommand as _0x167e82,SetDrawingApplyMutation as _0x32ff9b,SetDrawingArrangeCommand as _0x3d4f64,SetSheetDrawingCommand as _0x4b133c,SheetDrawingAnchorType as _0x379fa3,SheetDrawingTransformPlanService as _0x196a2d,UniverSheetsDrawingPlugin as _0x170b23,transformToAxisAlignPosition as _0x3876d8,transformToDrawingPosition as _0x5be43d}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3a64bc}from'@univerjs-pro/license';import{IDrawingManagerService as _0x963e04,UniverDrawingPlugin as _0x3a282c}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x2d96d3){'@babel/helpers - typeof';const _0x1e83bb=_0x85a7;return ae=typeof Symbol==_0x1e83bb(0x115)&&typeof Symbol[_0x1e83bb(0x15d)]==_0x1e83bb(0xea)?function(_0x23e9d5){return typeof _0x23e9d5;}:function(_0x54c1f5){const _0x2256c6=_0x1e83bb;return _0x54c1f5&&typeof Symbol=='function'&&_0x54c1f5[_0x2256c6(0xe6)]===Symbol&&_0x54c1f5!==Symbol[_0x2256c6(0xdc)]?_0x2256c6(0xea):typeof _0x54c1f5;},ae(_0x2d96d3);}function oe(_0x30cb4c,_0x57c3c5){const _0x24af64=_0x85a7;if(ae(_0x30cb4c)!=_0x24af64(0xf0)||!_0x30cb4c)return _0x30cb4c;var _0x5930a1=_0x30cb4c[Symbol[_0x24af64(0x149)]];if(_0x5930a1!==void 0x0){var _0x6a0c2b=_0x5930a1[_0x24af64(0xd3)](_0x30cb4c,_0x57c3c5||_0x24af64(0xd9));if(ae(_0x6a0c2b)!=_0x24af64(0xf0))return _0x6a0c2b;throw TypeError(_0x24af64(0xf5));}return(_0x57c3c5===_0x24af64(0xa7)?String:Number)(_0x30cb4c);}function se(_0x5cb511){const _0x45da69=_0x85a7;var _0x141c79=oe(_0x5cb511,'string');return ae(_0x141c79)==_0x45da69(0xea)?_0x141c79:_0x141c79+'';}function X(_0xf82243,_0x5c924e,_0x9f460f){const _0x4325d3=_0x85a7;return(_0x5c924e=se(_0x5c924e))in _0xf82243?Object[_0x4325d3(0x144)](_0xf82243,_0x5c924e,{'value':_0x9f460f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf82243[_0x5c924e]=_0x9f460f,_0xf82243;}var ce=class extends _0x2bc8e7{constructor(){const _0x4f4a7a=_0x85a7;super(),X(this,_0x4f4a7a(0x118),new Map()),X(this,_0x4f4a7a(0xc9),new Set()),X(this,'_groupIds',new Set());}[_0x280f9e(0xe0)](_0x36ad4b,_0x3a0795,_0x2daff8,_0x46ff5f){const _0x4b34f4=_0x280f9e;let _0x42062e=new _0x146be9(_0x36ad4b,_0x3a0795,_0x2daff8,_0x46ff5f);return this['_shapes'][_0x4b34f4(0x10b)](_0x3a0795,_0x42062e),_0x50c3a7(_0x36ad4b)&&this[_0x4b34f4(0xc9)]['add'](_0x3a0795),_0x42062e;}['getBasicShapeRelation'](_0x4a6b93){const _0x199677=_0x280f9e;let _0xe7042f=[];for(let _0x284951 of this[_0x199677(0xc9)]){let _0x13c431=this[_0x199677(0x118)][_0x199677(0xdb)](_0x284951);if(_0x13c431){let _0x9d8412=_0x13c431[_0x199677(0x136)]();if(_0x9d8412){var _0x566099,_0x5602ce;((_0x566099=_0x9d8412['from'])==null?void 0x0:_0x566099['shapeId'])===_0x4a6b93&&_0xe7042f['push']({..._0x9d8412[_0x199677(0x15a)],'lineShapeId':_0x284951,'isFrom':!0x0}),((_0x5602ce=_0x9d8412['to'])==null?void 0x0:_0x5602ce[_0x199677(0xb3)])===_0x4a6b93&&_0xe7042f['push']({..._0x9d8412['to'],'lineShapeId':_0x284951,'isFrom':!0x1});}}}return _0xe7042f;}['getLineShapeRelation'](_0x16d282){const _0x4ab925=_0x280f9e;let _0x1cc8da=this[_0x4ab925(0x118)][_0x4ab925(0xdb)](_0x16d282);if(_0x1cc8da)return _0x1cc8da[_0x4ab925(0x136)]();}[_0x280f9e(0x154)](_0x2a8510){const _0x58c0ed=_0x280f9e;let _0x123d8e=this[_0x58c0ed(0x118)]['get'](_0x2a8510);if(_0x123d8e)return _0x123d8e[_0x58c0ed(0x154)]();}[_0x280f9e(0x164)](_0x44b7cc){const _0x2e7c8d=_0x280f9e;return this['_shapes'][_0x2e7c8d(0x9b)](_0x44b7cc);}[_0x280f9e(0x11f)](){const _0x4db47a=_0x280f9e;return Array[_0x4db47a(0x15a)](this[_0x4db47a(0x118)][_0x4db47a(0x120)]())[_0x4db47a(0x12a)](_0x2a7e5f=>_0x2a7e5f['getName']()||_0x2a7e5f[_0x4db47a(0xcd)]());}[_0x280f9e(0x10a)](_0x244b1a){const _0x5097e6=_0x280f9e;let _0x2d195d=this[_0x5097e6(0x118)][_0x5097e6(0xdb)](_0x244b1a);_0x2d195d&&(_0x50c3a7(_0x2d195d[_0x5097e6(0x154)]())&&this[_0x5097e6(0xc9)][_0x5097e6(0xa6)](_0x244b1a),this[_0x5097e6(0x118)][_0x5097e6(0xa6)](_0x244b1a));}[_0x280f9e(0x140)](){let _0x524456=[];return this['_shapes']['forEach'](_0x4a4425=>{const _0x421397=_0x85a7;_0x524456[_0x421397(0xc5)](_0x4a4425[_0x421397(0x140)]());}),_0x524456;}[_0x280f9e(0x14f)](_0x5e7e5d){const _0x54c17c=_0x280f9e;for(let _0x5cb0c5 of _0x5e7e5d){let {id:_0x494e28,shapeType:_0xa1a8b9,name:_0x5c7270}=_0x5cb0c5,_0x3534f4=this[_0x54c17c(0xe0)](_0xa1a8b9,_0x494e28,_0x5cb0c5[_0x54c17c(0xc3)],_0x5c7270);_0x3534f4&&_0x3534f4[_0x54c17c(0x157)]()&&this[_0x54c17c(0xc9)][_0x54c17c(0xcc)](_0x494e28);}}[_0x280f9e(0xf3)](){const _0x4908ac=_0x280f9e;this[_0x4908ac(0x161)]||(this['_shapes'][_0x4908ac(0x167)](_0x151aa6=>{const _0x5f2673=_0x4908ac;_0x151aa6[_0x5f2673(0xf3)]();}),this[_0x4908ac(0x118)]['clear'](),this[_0x4908ac(0xc9)][_0x4908ac(0x9e)](),this['_groupIds'][_0x4908ac(0x9e)](),super[_0x4908ac(0xf3)]());}};function Z(_0x1aa063,_0x313dd5){return function(_0x5679ec,_0x19ca90){_0x313dd5(_0x5679ec,_0x19ca90,_0x1aa063);};}function le(_0x2dafe8,_0x3c2558,_0x962079,_0x3babbc){const _0x183419=_0x280f9e;var _0x146367=arguments[_0x183419(0xb8)],_0x2436fb=_0x146367<0x3?_0x3c2558:_0x3babbc===null?_0x3babbc=Object[_0x183419(0x148)](_0x3c2558,_0x962079):_0x3babbc,_0x5b75f0;if(typeof Reflect==_0x183419(0xf0)&&typeof Reflect[_0x183419(0xcf)]==_0x183419(0x115))_0x2436fb=Reflect[_0x183419(0xcf)](_0x2dafe8,_0x3c2558,_0x962079,_0x3babbc);else{for(var _0x29e399=_0x2dafe8[_0x183419(0xb8)]-0x1;_0x29e399>=0x0;_0x29e399--)(_0x5b75f0=_0x2dafe8[_0x29e399])&&(_0x2436fb=(_0x146367<0x3?_0x5b75f0(_0x2436fb):_0x146367>0x3?_0x5b75f0(_0x3c2558,_0x962079,_0x2436fb):_0x5b75f0(_0x3c2558,_0x962079))||_0x2436fb);}return _0x146367>0x3&&_0x2436fb&&Object[_0x183419(0x144)](_0x3c2558,_0x962079,_0x2436fb),_0x2436fb;}let Q=class extends _0x2bc8e7{constructor(_0x378ee5){const _0x500048=_0x280f9e;super(),this[_0x500048(0x107)]=_0x378ee5,X(this,_0x500048(0x13f),new Map()),this[_0x500048(0xee)]();}[_0x280f9e(0x11c)](_0x381503,_0x154ad6){const _0x85f52e=_0x280f9e;let _0x4200db=this[_0x85f52e(0x13f)][_0x85f52e(0xdb)](_0x381503);_0x4200db||(_0x4200db=new Map(),this[_0x85f52e(0x13f)][_0x85f52e(0x10b)](_0x381503,_0x4200db));let _0x3e4d90=_0x4200db[_0x85f52e(0xdb)](_0x154ad6);return _0x3e4d90||(_0x3e4d90=new ce(),_0x4200db[_0x85f52e(0x10b)](_0x154ad6,_0x3e4d90)),_0x3e4d90;}[_0x280f9e(0x97)](_0x51c074,_0x45c754,_0x13bb14,_0x34436f,_0x5d9dc9,_0x355730){const _0x378396=_0x280f9e;this[_0x378396(0x11c)](_0x51c074,_0x45c754)[_0x378396(0xe0)](_0x13bb14,_0x34436f,_0x5d9dc9,_0x355730);}['removeShape'](_0x512a54,_0x2e12e8,_0x48794a){const _0x26601c=_0x280f9e;this[_0x26601c(0x11c)](_0x512a54,_0x2e12e8)[_0x26601c(0x10a)](_0x48794a);}[_0x280f9e(0xce)](_0x4e8dbb,_0x5aa83e,_0x39e58d){const _0x43b714=_0x280f9e;return this[_0x43b714(0x11c)](_0x4e8dbb,_0x5aa83e)[_0x43b714(0x154)](_0x39e58d);}[_0x280f9e(0x154)](_0x48dda4,_0x486a35,_0xf8336a){return this['_ensureShapeModelManager'](_0x48dda4,_0x486a35)['getShapeType'](_0xf8336a);}[_0x280f9e(0x164)](_0x3617f2,_0x2df817,_0x505d8d){const _0xcc8ab=_0x280f9e;return this['_ensureShapeModelManager'](_0x3617f2,_0x2df817)[_0xcc8ab(0x164)](_0x505d8d);}[_0x280f9e(0xb6)](_0x23baec,_0x2665a6,_0x21f2eb){return this['_ensureShapeModelManager'](_0x23baec,_0x2665a6)['getShapeType'](_0x21f2eb);}[_0x280f9e(0x125)](_0x57894f,_0xbf96f8,_0x5a7f88){const _0x2c9da2=_0x280f9e;let _0x57332e=this[_0x2c9da2(0x11c)](_0x57894f,_0xbf96f8);if(!_0x57332e[_0x2c9da2(0x154)](_0x5a7f88))return;let _0x2a1d5d=_0x57332e['_shapes'][_0x2c9da2(0xdb)](_0x5a7f88);if(_0x2a1d5d)return _0x2a1d5d[_0x2c9da2(0xb7)]();}[_0x280f9e(0x11f)](_0xf29e80,_0x44f3e4){const _0x52f17f=_0x280f9e;return this[_0x52f17f(0x11c)](_0xf29e80,_0x44f3e4)[_0x52f17f(0x11f)]();}[_0x280f9e(0xc1)](_0x531e73,_0x54bdc8,_0x23a2eb){const _0x5ab593=_0x280f9e;return this[_0x5ab593(0x11c)](_0x531e73,_0x54bdc8)[_0x5ab593(0x118)][_0x5ab593(0xdb)](_0x23a2eb);}['getBasicShapeRelation'](_0x46b50c,_0x2da99c,_0xb518e4){const _0x76a20d=_0x280f9e;return this['_ensureShapeModelManager'](_0x46b50c,_0x2da99c)[_0x76a20d(0x9f)](_0xb518e4);}['getLineShapeRelation'](_0x27daad,_0x2e4fd7,_0x4788b1){const _0x304f2f=_0x280f9e;let _0x2a23b7=this[_0x304f2f(0x11c)](_0x27daad,_0x2e4fd7)['_shapes']['get'](_0x4788b1);if(_0x2a23b7)return _0x2a23b7[_0x304f2f(0x136)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0xa4e751){const _0x12dd86=_0x280f9e;let _0x446393={},_0x2da5db=this[_0x12dd86(0x13f)][_0x12dd86(0xdb)](_0xa4e751);return _0x2da5db&&_0x2da5db[_0x12dd86(0x167)]((_0x2271d6,_0x254134)=>{const _0xd87900=_0x12dd86;let _0x3d6feb=_0x2271d6[_0xd87900(0x140)]();_0x3d6feb[_0xd87900(0xb8)]>0x0&&(_0x446393[_0x254134]=_0x3d6feb);}),JSON[_0x12dd86(0xa5)](_0x446393);}['_deserializeShapeForUnit'](_0x5d540a,_0x301f42){Object['keys'](_0x301f42)['forEach'](_0x152047=>{this['_ensureShapeModelManager'](_0x5d540a,_0x152047)['fromJSON'](_0x301f42[_0x152047]);});}[_0x280f9e(0x140)](){const _0x9114fc=_0x280f9e;let _0x5c0a1d={};return this[_0x9114fc(0x13f)][_0x9114fc(0x167)]((_0x2eadfe,_0x293bd9)=>{const _0x2a751e=_0x9114fc;_0x5c0a1d[_0x293bd9]={},_0x2eadfe[_0x2a751e(0x167)]((_0x4cd0b0,_0x53516c)=>{_0x5c0a1d[_0x293bd9][_0x53516c]=_0x4cd0b0['toJSON']();});}),_0x5c0a1d;}[_0x280f9e(0x14f)](_0x16505c){const _0x23c80b=_0x280f9e;Object['keys'](_0x16505c)[_0x23c80b(0x167)](_0x239643=>{const _0x36c76a=_0x23c80b;let _0x2a657c=_0x16505c[_0x239643];Object[_0x36c76a(0xa0)](_0x2a657c)[_0x36c76a(0x167)](_0x33f6f8=>{this['_ensureShapeModelManager'](_0x239643,_0x33f6f8)['fromJSON'](_0x2a657c[_0x33f6f8]);});});}[_0x280f9e(0xee)](){const _0x2c6ac7=_0x280f9e;this['_resourcesManagerService'][_0x2c6ac7(0xdd)]({'pluginName':_0x2c6ac7(0xaf),'businesses':[_0x330674[_0x2c6ac7(0x11a)]],'toJson':_0x28a091=>this[_0x2c6ac7(0x13e)](_0x28a091),'parseJson':_0xcce405=>JSON['parse'](_0xcce405),'onLoad':(_0x34ca81,_0x517029)=>{const _0x561945=_0x2c6ac7;this[_0x561945(0xf2)](_0x34ca81,_0x517029);},'onUnLoad':_0x6cfab=>{const _0x4aba75=_0x2c6ac7;let _0x38481d=this[_0x4aba75(0x13f)][_0x4aba75(0xdb)](_0x6cfab);_0x38481d&&(_0x38481d[_0x4aba75(0x167)](_0x5ca6d0=>{_0x5ca6d0['dispose']();}),this[_0x4aba75(0x13f)][_0x4aba75(0xa6)](_0x6cfab));}});}['dispose'](){const _0x483385=_0x280f9e;this[_0x483385(0x13f)][_0x483385(0x167)](_0x1f3d49=>{const _0x3746d0=_0x483385;_0x1f3d49[_0x3746d0(0x167)](_0x476d4b=>{const _0x148118=_0x3746d0;_0x476d4b[_0x148118(0xf3)]();});});}};Q=le([Z(0x0,_0x3a6d1d)],Q);const ue={'id':_0x280f9e(0x123),'type':_0x5a7102['MUTATION'],'handler':(_0x12071a,_0x3f042f)=>{const _0x3bbbbc=_0x280f9e;let {unitId:_0x391641,subUnitId:_0x4500c1,shapeType:_0x3a81e8,shapeId:_0x3529b3,shapeName:_0x328f2f,shapeData:_0x454e52}=_0x3f042f;return _0x12071a['get'](Q)[_0x3bbbbc(0x97)](_0x391641,_0x4500c1,_0x3a81e8,_0x3529b3,_0x245736[_0x3bbbbc(0xa2)](_0x454e52),_0x328f2f),!0x0;}},de={'id':'sheet.mutation.remove-shape','type':_0x5a7102['MUTATION'],'handler':(_0x1eff31,_0x1c2e78)=>{const _0x12f1f1=_0x280f9e;let {unitId:_0x411627,subUnitId:_0x436adf,shapeId:_0x53cb25}=_0x1c2e78;return _0x1eff31[_0x12f1f1(0xdb)](Q)[_0x12f1f1(0x10a)](_0x411627,_0x436adf,_0x53cb25),!0x0;}},fe={'type':_0x5a7102['COMMAND'],'id':_0x280f9e(0xfb),'handler':(_0x4779fd,_0x4c8ae9)=>{const _0x4c1465=_0x280f9e;let _0x416fe3=_0x301198(_0x4779fd[_0x4c1465(0xdb)](_0x357a2c),_0x4c8ae9);if(!_0x416fe3)return!0x1;let _0x385616=_0x4779fd[_0x4c1465(0xdb)](_0x276426),{unitId:_0x4f0f03,subUnitId:_0x2ab602}=_0x416fe3,_0x21e260=_0x385616[_0x4c1465(0x10c)](_0x4f0f03,_0x2ab602);if(!_0x21e260)return!0x1;let _0x2674aa=_0x4779fd[_0x4c1465(0xdb)](_0x26bdbb),_0x54b1fb=_0x4779fd['get'](_0x3833a8),_0x5f8765=_0x4779fd['get'](_0x4f1328),_0x4a4557=_0x4779fd['get'](_0xbb9270),_0x199a73=_0x4779fd['get'](Q),{shapeType:_0x24eec4}=_0x4c8ae9,_0x597816=_0x4c8ae9['shapeData']??_0x37770b(_0x24eec4),_0x39f907=_0x4c8ae9[_0x4c1465(0xb3)]||_0x4b832f(),_0x449d94={'unitId':_0x4f0f03,'subUnitId':_0x2ab602,'shapeId':_0x39f907,'shapeName':_0x4c8ae9[_0x4c1465(0x113)]??_0xf4f772(_0x24eec4,_0x199a73[_0x4c1465(0x11f)](_0x4f0f03,_0x2ab602)),'shapeType':_0x24eec4,'shapeData':_0x597816},_0x14ce25=_0x4c8ae9[_0x4c1465(0x117)]||0xc8,_0x4f3bde=_0x4c8ae9['height']||0xc8,_0x5705a8=0x0,_0x2a0be3=0x0;if(_0x4c8ae9[_0x4c1465(0x153)]){let {x:_0x1c2640,y:_0x4d6b8f}=_0x4c8ae9[_0x4c1465(0x153)];_0x5705a8=_0x1c2640,_0x2a0be3=_0x4d6b8f;}else{if(_0x4c8ae9[_0x4c1465(0x132)]){let {startRow:_0x2d0f38,startColumn:_0x1bc781}=_0x4c8ae9[_0x4c1465(0x132)],_0x394d0d=_0x21e260['getCellWithCoordByIndex'](_0x2d0f38,_0x1bc781);_0x5705a8=_0x394d0d[_0x4c1465(0x9a)]+0xa,_0x2a0be3=_0x394d0d[_0x4c1465(0x110)]+0xa;}}let _0x217ac0={'left':_0x5705a8,'top':_0x2a0be3,'width':_0x14ce25,'height':_0x4f3bde,'angle':_0x4c8ae9[_0x4c1465(0xf6)]??0x0,'flipX':_0x4c8ae9[_0x4c1465(0x151)]??!0x1,'flipY':_0x4c8ae9[_0x4c1465(0x16d)]??!0x1},_0x4b467f=_0x5be43d(_0x217ac0,_0x21e260),_0x5b3505=_0x3876d8(_0x217ac0,_0x21e260),_0x41494b={'unitId':_0x4f0f03,'subUnitId':_0x2ab602,'drawingId':_0x39f907,'drawingType':_0x4c4e17['DRAWING_SHAPE'],'anchorType':_0x379fa3[_0x4c1465(0x146)],'name':_0x4c8ae9['name'],'description':_0x4c8ae9['description'],'sheetTransform':_0x4b467f,'transform':_0x217ac0,'data':{'shapeType':_0x24eec4,'shapeData':_0x597816},'axisAlignSheetTransform':_0x5b3505,'allowTransform':!0x0,'hidden':_0x4c8ae9['visible']===!0x1,'selectable':_0x4c8ae9['selectable']??!0x0};_0x50c3a7(_0x24eec4)&&(_0x41494b[_0x4c1465(0x138)][_0x4c1465(0x145)]=!0x1,_0x41494b[_0x4c1465(0x138)][_0x4c1465(0x11b)]=!0x1,_0x41494b[_0x4c1465(0x138)]['resizeEnabled']=!0x1,_0x41494b[_0x4c1465(0x138)][_0x4c1465(0x16a)]=!0x1,_0x41494b[_0x4c1465(0x122)][_0x4c1465(0x11b)]=!0x1,_0x41494b['transform'][_0x4c1465(0x139)]=!0x1,_0x41494b[_0x4c1465(0x122)][_0x4c1465(0x16a)]=!0x1);let {undo:_0x1ea0c3,redo:_0x2f948c,objects:_0x543118}=_0x4a4557[_0x4c1465(0x10e)]([_0x41494b]),_0x516669=_0x5f8765[_0x4c1465(0x134)]({'id':_0x692e6d['id'],'params':{'unitId':_0x4f0f03,'drawings':[_0x41494b]}}),_0xce5688=[..._0x516669[_0x4c1465(0x14c)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x4f0f03,'subUnitId':_0x2ab602,'op':_0x2f948c,'objects':_0x543118,'type':_0x45565a['INSERT']}},{'id':_0xa9a285['id'],'params':[_0x4f0f03]},..._0x516669[_0x4c1465(0xe3)],{'id':ue['id'],'params':_0x449d94}],_0x28a579=[{'id':de['id'],'params':{'unitId':_0x4f0f03,'subUnitId':_0x2ab602,'shapeId':_0x39f907}},..._0x516669[_0x4c1465(0xd8)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x4f0f03,'subUnitId':_0x2ab602,'op':_0x1ea0c3,'objects':_0x543118,'type':_0x45565a[_0x4c1465(0xbe)]}},{'id':_0xa9a285['id'],'params':[_0x4f0f03]},..._0x516669[_0x4c1465(0x141)]];return _0x2eb1bc(_0xce5688,_0x2674aa)[_0x4c1465(0x13c)]?(_0x54b1fb[_0x4c1465(0xd4)]({'unitID':_0x4f0f03,'undoMutations':_0x28a579,'redoMutations':_0xce5688}),!0x0):!0x1;}},$={'id':_0x280f9e(0x101),'type':_0x5a7102[_0x280f9e(0x15e)],'handler':(_0x174371,_0x20876f)=>{const _0x2004b4=_0x280f9e;let {unitId:_0x1c58a0,subUnitId:_0x2b27b0,shapeType:_0x15dcaa,shapeId:_0x59247b,shapeData:_0xd1bbaa,replace:_0x1679ff,formulaLastValueGuard:_0x3c4201}=_0x20876f,_0x2ed0d6=_0x174371[_0x2004b4(0xdb)](Q)[_0x2004b4(0xc1)](_0x1c58a0,_0x2b27b0,_0x59247b);if(_0x2ed0d6){var _0x6b5945;if(!_0x38be55(_0x174371,{'hostType':_0x330674[_0x2004b4(0x11a)],'unitId':_0x1c58a0,'subUnitId':_0x2b27b0,'shapeId':_0x59247b},(_0x6b5945=_0x2ed0d6[_0x2004b4(0xb7)]()[_0x2004b4(0x158)])==null?void 0x0:_0x6b5945[_0x2004b4(0xbc)],_0x3c4201))return!0x0;_0x15dcaa!==void 0x0&&_0x2ed0d6[_0x2004b4(0x142)](_0x15dcaa),_0xd1bbaa&&(_0x2ed0d6==null||_0x2ed0d6[_0x2004b4(0xab)](_0x245736[_0x2004b4(0xa2)](_0xd1bbaa),!_0x1679ff));}return!0x0;}},pe={'type':_0x5a7102[_0x280f9e(0x108)],'id':_0x280f9e(0x116),'handler':(_0x598845,_0x17dc4a)=>{const _0x143d69=_0x280f9e;let _0x5e3ddc=_0x301198(_0x598845[_0x143d69(0xdb)](_0x357a2c),_0x17dc4a);if(!_0x5e3ddc)return!0x1;let _0x33db73=_0x598845[_0x143d69(0xdb)](_0x276426),{unitId:_0x1bd8cc,subUnitId:_0x802f45}=_0x5e3ddc,_0x4c899d=_0x33db73[_0x143d69(0x10c)](_0x1bd8cc,_0x802f45);if(!_0x4c899d)return!0x1;let _0x260b9a=_0x598845[_0x143d69(0xdb)](Q),{shapeId:_0x25e4ef,shapeType:_0x136db5,shapeData:_0x1af38d,position:_0x1748f8,width:_0x3937c5,height:_0xe9df11}=_0x17dc4a,_0x34d53e=_0x260b9a[_0x143d69(0xc1)](_0x1bd8cc,_0x802f45,_0x25e4ef);if(!_0x34d53e)return!0x1;let _0x4fa205=_0x598845[_0x143d69(0xdb)](_0x26bdbb),_0x189632=_0x598845[_0x143d69(0xdb)](_0x3833a8),_0x42714c=_0x598845[_0x143d69(0xdb)](_0x4f1328),_0x4a9bf4=_0x598845[_0x143d69(0xdb)](_0xbb9270),_0x13d2d2={'unitId':_0x1bd8cc,'subUnitId':_0x802f45,'shapeId':_0x25e4ef,'shapeType':_0x136db5,'shapeData':_0x1af38d,'replace':!0x0},_0x291cae=_0x34d53e[_0x143d69(0x154)](),_0x4e731a=_0x34d53e['getShapeData'](),{x:_0x29ce56,y:_0x58d45}=_0x1748f8,_0x4da637={'left':_0x29ce56,'top':_0x58d45,'width':_0x3937c5,'height':_0xe9df11,'angle':_0x17dc4a[_0x143d69(0xf6)]??0x0,'flipX':_0x17dc4a['flipX']??!0x1,'flipY':_0x17dc4a[_0x143d69(0x16d)]??!0x1},_0x697db0=_0x5be43d(_0x4da637,_0x4c899d),_0x57dab3=_0x3876d8(_0x4da637,_0x4c899d),_0x47394f={'unitId':_0x1bd8cc,'subUnitId':_0x802f45,'drawingId':_0x25e4ef,'drawingType':_0x4c4e17[_0x143d69(0x166)],'name':_0x17dc4a[_0x143d69(0x106)],'description':_0x17dc4a['description'],'sheetTransform':_0x697db0,'transform':_0x4da637,'data':{'shapeType':_0x136db5,'shapeData':_0x1af38d},'axisAlignSheetTransform':_0x57dab3,'allowTransform':!0x0,'hidden':!_0x17dc4a[_0x143d69(0xf8)],'selectable':_0x17dc4a[_0x143d69(0x102)]};_0x50c3a7(_0x136db5)&&(_0x47394f[_0x143d69(0x138)]['fill']=!0x1,_0x47394f[_0x143d69(0x138)]['rotateEnabled']=!0x1,_0x47394f['data'][_0x143d69(0x139)]=!0x1,_0x47394f[_0x143d69(0x138)][_0x143d69(0x16a)]=!0x1,_0x47394f[_0x143d69(0x122)][_0x143d69(0x11b)]=!0x1,_0x47394f['transform'][_0x143d69(0x139)]=!0x1,_0x47394f[_0x143d69(0x122)]['borderEnabled']=!0x1);let {undo:_0x2753da,redo:_0x55efe9,objects:_0x4ac0ec}=_0x4a9bf4[_0x143d69(0x16f)]([_0x47394f]),_0x190a42=_0x42714c[_0x143d69(0x134)]({'id':_0x4b133c['id'],'params':{'unitId':_0x1bd8cc,'drawings':[_0x47394f]}}),_0x2af3d5=[..._0x190a42[_0x143d69(0x14c)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x1bd8cc,'subUnitId':_0x802f45,'op':_0x55efe9,'objects':_0x4ac0ec,'type':_0x45565a['UPDATE']}},{'id':_0xa9a285['id'],'params':[_0x1bd8cc]},..._0x190a42[_0x143d69(0xe3)],{'id':$['id'],'params':_0x13d2d2}],_0x15a093=[..._0x190a42[_0x143d69(0xd8)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x1bd8cc,'subUnitId':_0x802f45,'op':_0x2753da,'objects':_0x4ac0ec,'type':_0x45565a[_0x143d69(0xaa)]}},{'id':_0xa9a285['id'],'params':[_0x1bd8cc]},..._0x190a42[_0x143d69(0x141)],{'id':$['id'],'params':{'unitId':_0x1bd8cc,'subUnitId':_0x802f45,'shapeType':_0x291cae,'shapeId':_0x25e4ef,'shapeData':_0x4e731a,'replace':!0x0}}];return _0x2eb1bc(_0x2af3d5,_0x4fa205)[_0x143d69(0x13c)]?(_0x189632['pushUndoRedo']({'unitID':_0x1bd8cc,'undoMutations':_0x15a093,'redoMutations':_0x2af3d5}),!0x0):!0x1;}},me={'type':_0x5a7102[_0x280f9e(0x108)],'id':_0x280f9e(0xed),'handler':(_0x1cf337,_0xc9b69e)=>{const _0x461f3b=_0x280f9e;let _0x2c94a4=_0x301198(_0x1cf337[_0x461f3b(0xdb)](_0x357a2c),_0xc9b69e);if(!_0x2c94a4)return!0x1;let _0x5316f6=_0x1cf337[_0x461f3b(0xdb)](_0x276426),{unitId:_0x2af2eb,subUnitId:_0x4b79df}=_0x2c94a4,_0x5ddad2=_0x5316f6[_0x461f3b(0xb9)](_0x2af2eb,_0x4b79df);if(!_0x5ddad2)return!0x1;let _0x4bd57b=_0x1cf337[_0x461f3b(0xdb)](_0xbb9270),{shapeId:_0x794fd7,flipH:_0x22b664,flipV:_0x482f6b}=_0xc9b69e,_0x1184f9=_0x4bd57b['getDrawingByParam']({'unitId':_0x2af2eb,'subUnitId':_0x4b79df,'drawingId':_0x794fd7});if(!_0x1184f9)return!0x1;let _0x345972=_0x1cf337['get'](Q)[_0x461f3b(0xc1)](_0x2af2eb,_0x4b79df,_0x794fd7);if(!_0x345972)return!0x1;let _0x37fbec=_0x1cf337[_0x461f3b(0xdb)](_0x26bdbb),_0x3f373d=_0x1cf337[_0x461f3b(0xdb)](_0x3833a8),_0x27186c=_0x1cf337['get'](_0x4f1328),_0x21ef19={..._0x1184f9[_0x461f3b(0x122)]};_0x22b664!==void 0x0&&(_0x21ef19[_0x461f3b(0x151)]=!_0x21ef19[_0x461f3b(0x151)]),_0x482f6b!==void 0x0&&(_0x21ef19[_0x461f3b(0x16d)]=!_0x21ef19[_0x461f3b(0x16d)]);let _0x5f1533=_0x5be43d(_0x21ef19,_0x5ddad2),_0x4dd299=_0x3876d8(_0x21ef19,_0x5ddad2),_0x18932f=_0x345972[_0x461f3b(0x154)](),_0xc78bdf=_0x345972[_0x461f3b(0xb7)](),_0x1d69b6={'unitId':_0x2af2eb,'subUnitId':_0x4b79df,'drawingId':_0x794fd7,'drawingType':_0x4c4e17[_0x461f3b(0x166)],'sheetTransform':_0x5f1533,'transform':_0x21ef19,'data':{'shapeType':_0x18932f,'shapeData':_0xc78bdf},'axisAlignSheetTransform':_0x4dd299,'allowTransform':!0x0},{undo:_0x2a757d,redo:_0x42f89f,objects:_0x37c654}=_0x4bd57b[_0x461f3b(0x16f)]([_0x1d69b6]),_0x21052d=_0x27186c['onCommandExecute']({'id':_0x4b133c['id'],'params':{'unitId':_0x2af2eb,'drawings':[_0x1d69b6]}}),_0x392470=[..._0x21052d[_0x461f3b(0x14c)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x2af2eb,'subUnitId':_0x4b79df,'op':_0x42f89f,'objects':_0x37c654,'type':_0x45565a[_0x461f3b(0xaa)]}},{'id':_0xa9a285['id'],'params':[_0x2af2eb]},..._0x21052d['redos']],_0x38d22b=[..._0x21052d[_0x461f3b(0xd8)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x2af2eb,'subUnitId':_0x4b79df,'op':_0x2a757d,'objects':_0x37c654,'type':_0x45565a[_0x461f3b(0xaa)]}},{'id':_0xa9a285['id'],'params':[_0x2af2eb]},..._0x21052d['undos']];if(_0x50c3a7(_0x18932f)){let _0x3a0f94=_0x345972[_0x461f3b(0x136)]();if(_0x3a0f94){let _0x3b358f={..._0x3a0f94};_0x3b358f['from']=void 0x0,_0x3b358f['to']=void 0x0,_0x392470[_0x461f3b(0xc5)]({'id':$['id'],'params':{'unitId':_0x2af2eb,'subUnitId':_0x4b79df,'shapeId':_0x794fd7,'shapeType':_0x18932f,'shapeData':{'relation':_0x3b358f}}}),_0x38d22b[_0x461f3b(0xc5)]({'id':$['id'],'params':{'unitId':_0x2af2eb,'subUnitId':_0x4b79df,'shapeId':_0x794fd7,'shapeType':_0x18932f,'shapeData':{'relation':_0x3a0f94}}});}}return _0x2eb1bc(_0x392470,_0x37fbec)[_0x461f3b(0x13c)]?(_0x3f373d[_0x461f3b(0xd4)]({'unitID':_0x2af2eb,'undoMutations':_0x38d22b,'redoMutations':_0x392470}),!0x0):!0x1;}},he={'type':_0x5a7102[_0x280f9e(0x108)],'id':_0x280f9e(0xa4),'handler':(_0x183a48,_0x23afb5)=>{const _0x468b19=_0x280f9e;let _0x4a7222=_0x301198(_0x183a48['get'](_0x357a2c),_0x23afb5);if(!_0x4a7222)return!0x1;let _0x1efb48=_0x183a48[_0x468b19(0xdb)](_0x276426),{unitId:_0x3fc8e0,subUnitId:_0x41e2e4}=_0x4a7222,_0x2709b5=_0x1efb48[_0x468b19(0xb9)](_0x3fc8e0,_0x41e2e4);if(!_0x2709b5)return!0x1;let _0x2bb062=_0x183a48[_0x468b19(0xdb)](_0xbb9270),{shapeId:_0x37188e,rotate:_0x2bb2d9}=_0x23afb5,_0x5e68ab=_0x2bb062[_0x468b19(0xc2)]({'unitId':_0x3fc8e0,'subUnitId':_0x41e2e4,'drawingId':_0x37188e});if(!_0x5e68ab)return!0x1;let _0x3af15e=_0x183a48[_0x468b19(0xdb)](Q)[_0x468b19(0xc1)](_0x3fc8e0,_0x41e2e4,_0x37188e);if(!_0x3af15e)return!0x1;let _0x23298e=_0x183a48[_0x468b19(0xdb)](_0x26bdbb),_0x526227=_0x183a48[_0x468b19(0xdb)](_0x3833a8),_0x4f49dc=_0x183a48[_0x468b19(0xdb)](_0x4f1328),_0x5d9b83={..._0x5e68ab[_0x468b19(0x122)]};_0x2bb2d9!==void 0x0&&(_0x5d9b83[_0x468b19(0xd7)]=(_0x5d9b83[_0x468b19(0xd7)]||0x0)+_0x2bb2d9);let _0x4bc3bb=_0x5be43d(_0x5d9b83,_0x2709b5),_0x2ea7a8=_0x3876d8(_0x5d9b83,_0x2709b5),_0x2f8592=_0x3af15e[_0x468b19(0x154)](),_0x2116af=_0x3af15e['getShapeData'](),_0x90e4ac={'unitId':_0x3fc8e0,'subUnitId':_0x41e2e4,'drawingId':_0x37188e,'drawingType':_0x4c4e17[_0x468b19(0x166)],'sheetTransform':_0x4bc3bb,'transform':_0x5d9b83,'data':{'shapeType':_0x2f8592,'shapeData':_0x2116af},'axisAlignSheetTransform':_0x2ea7a8,'allowTransform':!0x0},{undo:_0x385fae,redo:_0x5a4676,objects:_0x2916c9}=_0x2bb062[_0x468b19(0x16f)]([_0x90e4ac]),_0x3bdcbd=_0x4f49dc[_0x468b19(0x134)]({'id':_0x4b133c['id'],'params':{'unitId':_0x3fc8e0,'drawings':[_0x90e4ac]}}),_0x47285e=[..._0x3bdcbd[_0x468b19(0x14c)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x3fc8e0,'subUnitId':_0x41e2e4,'op':_0x5a4676,'objects':_0x2916c9,'type':_0x45565a['UPDATE']}},{'id':_0xa9a285['id'],'params':[_0x3fc8e0]},..._0x3bdcbd[_0x468b19(0xe3)]],_0x242de2=[..._0x3bdcbd['preUndos']??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x3fc8e0,'subUnitId':_0x41e2e4,'op':_0x385fae,'objects':_0x2916c9,'type':_0x45565a[_0x468b19(0xaa)]}},{'id':_0xa9a285['id'],'params':[_0x3fc8e0]},..._0x3bdcbd[_0x468b19(0x141)]];return _0x2eb1bc(_0x47285e,_0x23298e)[_0x468b19(0x13c)]?(_0x526227['pushUndoRedo']({'unitID':_0x3fc8e0,'undoMutations':_0x242de2,'redoMutations':_0x47285e}),!0x0):!0x1;}},ge={'type':_0x5a7102[_0x280f9e(0x108)],'id':_0x280f9e(0xfd),'handler':(_0x5585fd,_0x6f6d60)=>{const _0x3fb5be=_0x280f9e;let _0x9d9ea1=_0x301198(_0x5585fd[_0x3fb5be(0xdb)](_0x357a2c),_0x6f6d60);if(!_0x9d9ea1)return!0x1;let {unitId:_0x39db9b,subUnitId:_0x12db16}=_0x9d9ea1,{shapeId:_0x25857e}=_0x6f6d60,_0xe49660=_0x5585fd[_0x3fb5be(0xdb)](Q)[_0x3fb5be(0xc1)](_0x39db9b,_0x12db16,_0x25857e);if(!_0xe49660)return!0x1;let _0x1596cc=_0xe49660['getShapeTextData'](),_0x1884a8=(_0x1596cc==null?void 0x0:_0x1596cc[_0x3fb5be(0x10f)])??!0x0,_0x40bd2e=!_0x1884a8,_0x16ffc9=_0x5585fd['get'](_0x26bdbb),_0x56f816=_0x5585fd['get'](_0x3833a8),_0x33d870={'unitId':_0x39db9b,'subUnitId':_0x12db16,'shapeId':_0x25857e,'shapeData':{'shapeText':{'isHorizontal':_0x40bd2e}}},_0x1e8b53={'unitId':_0x39db9b,'subUnitId':_0x12db16,'shapeId':_0x25857e,'shapeData':{'shapeText':{'isHorizontal':_0x1884a8}}},_0x431ad3=[{'id':$['id'],'params':_0x33d870}],_0x468ddf=[{'id':$['id'],'params':_0x1e8b53}];return _0x2eb1bc(_0x431ad3,_0x16ffc9)[_0x3fb5be(0x13c)]?(_0x56f816[_0x3fb5be(0xd4)]({'unitID':_0x39db9b,'undoMutations':_0x468ddf,'redoMutations':_0x431ad3}),!0x0):!0x1;}},_e={'type':_0x5a7102[_0x280f9e(0x108)],'id':_0x280f9e(0xb1),'handler':(_0x4d6232,_0x4e031c)=>{const _0x4ae274=_0x280f9e;var _0x59d00b;let _0x77e778=_0x301198(_0x4d6232['get'](_0x357a2c),_0x4e031c);if(!_0x77e778)return!0x1;let _0x428067=_0x4d6232[_0x4ae274(0xdb)](_0x276426),{unitId:_0x88264e,subUnitId:_0x51f029}=_0x77e778,_0x56b93e=_0x428067[_0x4ae274(0xb9)](_0x88264e,_0x51f029);if(!_0x56b93e)return!0x1;let _0x52c374=_0x4d6232['get'](_0xbb9270),{connectorShapeId:_0x3a2cd5,width:_0x233ffc,height:_0x59ad29,left:_0x437871,top:_0x341b64,flipX:_0x2bb1cf,flipY:_0x57a121,rotation:_0x34890d,oldAdjustValues:_0x187580,newAdjustValues:_0x4dd439,oldLineType:_0x4959fb,newLineType:_0x357e01,oldRelation:_0x3cb01c,newRelation:_0x509d39}=_0x4e031c,_0x2f9cfa=_0x52c374[_0x4ae274(0xc2)]({'unitId':_0x88264e,'subUnitId':_0x51f029,'drawingId':_0x3a2cd5});if(!_0x2f9cfa)return!0x1;let _0x1f3340=_0x4d6232[_0x4ae274(0xdb)](Q)['getShapeModel'](_0x88264e,_0x51f029,_0x3a2cd5);if(!_0x1f3340)return!0x1;let _0xcc3f60=_0x4d6232[_0x4ae274(0xdb)](_0x26bdbb),_0x1dfef8=_0x4d6232[_0x4ae274(0xdb)](_0x3833a8),_0x10b6fc=_0x4d6232[_0x4ae274(0xdb)](_0x4f1328),_0x30edf7={..._0x2f9cfa[_0x4ae274(0x122)],'width':_0x233ffc,'height':_0x59ad29,'left':_0x437871,'top':_0x341b64,'flipX':_0x2bb1cf,'flipY':_0x57a121,'angle':_0x34890d??((_0x59d00b=_0x2f9cfa[_0x4ae274(0x122)])==null?void 0x0:_0x59d00b[_0x4ae274(0xd7)])??0x0},_0x13b4dc=_0x5be43d(_0x30edf7,_0x56b93e),_0x1a167a=_0x3876d8(_0x30edf7,_0x56b93e),_0x52ff82=_0x1f3340[_0x4ae274(0x154)](),_0xf037fc=_0x1f3340[_0x4ae274(0xb7)](),_0x23f277={'unitId':_0x88264e,'subUnitId':_0x51f029,'drawingId':_0x3a2cd5,'drawingType':_0x4c4e17[_0x4ae274(0x166)],'sheetTransform':_0x13b4dc,'transform':_0x30edf7,'data':{'shapeType':_0x357e01||_0x4959fb||_0x52ff82,'shapeData':{..._0xf037fc,'adjustValues':_0x4dd439||_0x187580||(_0xf037fc==null?void 0x0:_0xf037fc[_0x4ae274(0x9d)]),'relation':_0x509d39||_0x3cb01c||(_0xf037fc==null?void 0x0:_0xf037fc[_0x4ae274(0xb4)])}},'axisAlignSheetTransform':_0x1a167a,'allowTransform':!0x0},{undo:_0x41df99,redo:_0x2723b2,objects:_0x2574b6}=_0x52c374[_0x4ae274(0x16f)]([_0x23f277]),_0x5cdff1=_0x10b6fc[_0x4ae274(0x134)]({'id':_0x4b133c['id'],'params':{'unitId':_0x88264e,'drawings':[_0x23f277]}}),_0x1637ef=[..._0x5cdff1['preRedos']??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x88264e,'subUnitId':_0x51f029,'op':_0x2723b2,'objects':_0x2574b6,'type':_0x45565a['UPDATE']}},{'id':_0xa9a285['id'],'params':[_0x88264e]},..._0x5cdff1[_0x4ae274(0xe3)],{'id':$['id'],'params':{'unitId':_0x88264e,'subUnitId':_0x51f029,'shapeId':_0x3a2cd5,'shapeType':_0x357e01,'shapeData':{'adjustValues':_0x4dd439,'relation':_0x509d39}}}],_0x1e231d=[..._0x5cdff1[_0x4ae274(0xd8)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x88264e,'subUnitId':_0x51f029,'op':_0x41df99,'objects':_0x2574b6,'type':_0x45565a[_0x4ae274(0xaa)]}},{'id':_0xa9a285['id'],'params':[_0x88264e]},..._0x5cdff1['undos'],{'id':$['id'],'params':{'unitId':_0x88264e,'subUnitId':_0x51f029,'shapeId':_0x3a2cd5,'shapeType':_0x52ff82,'shapeData':{..._0xf037fc,'adjustValues':_0x187580||(_0xf037fc==null?void 0x0:_0xf037fc[_0x4ae274(0x9d)]),'relation':_0x3cb01c||(_0xf037fc==null?void 0x0:_0xf037fc['relation'])}}}];return _0x2eb1bc(_0x1637ef,_0xcc3f60)[_0x4ae274(0x13c)]?(_0x1dfef8[_0x4ae274(0xd4)]({'unitID':_0x88264e,'undoMutations':_0x1e231d,'redoMutations':_0x1637ef}),!0x0):!0x1;}},ve={'type':_0x5a7102[_0x280f9e(0x108)],'id':'sheet.command.update-line-shape-resize','handler':(_0x5d2f6c,_0x5b4d7f)=>{const _0x2382cd=_0x280f9e;let _0x42e8ba=_0x301198(_0x5d2f6c[_0x2382cd(0xdb)](_0x357a2c),_0x5b4d7f);if(!_0x42e8ba)return!0x1;let _0x53408b=_0x5d2f6c['get'](_0x276426),{unitId:_0x3861ac,subUnitId:_0x82a457}=_0x42e8ba,_0x3a912a=_0x53408b['getSkeleton'](_0x3861ac,_0x82a457);if(!_0x3a912a)return!0x1;let _0x215a96=_0x5d2f6c[_0x2382cd(0xdb)](_0xbb9270),{shapeId:_0x3a4079,width:_0xe4b3ec,height:_0x2d9225,left:_0x53ba34,top:_0xe966de,flipX:_0x3c15f9,flipY:_0x4a9333,angle:_0x165600,oldAdjustValues:_0x4f93c3,newAdjustValues:_0x31de7f,oldLineType:_0x1bbe51,newLineType:_0xd53bc0}=_0x5b4d7f,_0x65c2f6=_0x215a96[_0x2382cd(0xc2)]({'unitId':_0x3861ac,'subUnitId':_0x82a457,'drawingId':_0x3a4079});if(!_0x65c2f6)return!0x1;let _0x263b10=_0x5d2f6c[_0x2382cd(0xdb)](Q)[_0x2382cd(0xc1)](_0x3861ac,_0x82a457,_0x3a4079);if(!_0x263b10)return!0x1;let _0x465014=_0x5d2f6c[_0x2382cd(0xdb)](_0x26bdbb),_0x52790a=_0x5d2f6c[_0x2382cd(0xdb)](_0x3833a8),_0x9f5398=_0x5d2f6c[_0x2382cd(0xdb)](_0x4f1328),_0x37a414={..._0x65c2f6[_0x2382cd(0x122)],'width':_0xe4b3ec,'height':_0x2d9225,'left':_0x53ba34,'top':_0xe966de,'flipX':_0x3c15f9,'flipY':_0x4a9333,'angle':_0x165600},_0x39164c=_0x5be43d(_0x37a414,_0x3a912a),_0x212243=_0x3876d8(_0x37a414,_0x3a912a),_0xdc7050=_0x263b10['getShapeType'](),_0x5c15bd=_0x263b10[_0x2382cd(0xb7)](),_0x43a1cf={'unitId':_0x3861ac,'subUnitId':_0x82a457,'drawingId':_0x3a4079,'drawingType':_0x4c4e17[_0x2382cd(0x166)],'sheetTransform':_0x39164c,'transform':_0x37a414,'data':{'shapeType':_0xd53bc0||_0x1bbe51||_0xdc7050,'shapeData':{..._0x5c15bd,'adjustValues':_0x31de7f||_0x4f93c3||(_0x5c15bd==null?void 0x0:_0x5c15bd[_0x2382cd(0x9d)])}},'axisAlignSheetTransform':_0x212243,'allowTransform':!0x0},{undo:_0x4d7740,redo:_0x331980,objects:_0x21b91c}=_0x215a96[_0x2382cd(0x16f)]([_0x43a1cf]),_0x3a7fda=_0x9f5398[_0x2382cd(0x134)]({'id':_0x4b133c['id'],'params':{'unitId':_0x3861ac,'drawings':[_0x43a1cf]}}),_0x5a28d6=[..._0x3a7fda['preRedos']??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x3861ac,'subUnitId':_0x82a457,'op':_0x331980,'objects':_0x21b91c,'type':_0x45565a['UPDATE']}},{'id':_0xa9a285['id'],'params':[_0x3861ac]},..._0x3a7fda['redos'],{'id':$['id'],'params':{'unitId':_0x3861ac,'subUnitId':_0x82a457,'shapeId':_0x3a4079,'shapeType':_0xd53bc0,'shapeData':{'adjustValues':_0x31de7f}}}],_0x1617cc=[..._0x3a7fda[_0x2382cd(0xd8)]??[],{'id':_0x32ff9b['id'],'params':{'unitId':_0x3861ac,'subUnitId':_0x82a457,'op':_0x4d7740,'objects':_0x21b91c,'type':_0x45565a[_0x2382cd(0xaa)]}},{'id':_0xa9a285['id'],'params':[_0x3861ac]},..._0x3a7fda[_0x2382cd(0x141)],{'id':$['id'],'params':{'unitId':_0x3861ac,'subUnitId':_0x82a457,'shapeId':_0x3a4079,'shapeType':_0xdc7050,'shapeData':{..._0x5c15bd,'adjustValues':_0x4f93c3||(_0x5c15bd==null?void 0x0:_0x5c15bd[_0x2382cd(0x9d)])}}}];return _0x2eb1bc(_0x5a28d6,_0x465014)[_0x2382cd(0x13c)]?(_0x52790a[_0x2382cd(0xd4)]({'unitID':_0x3861ac,'undoMutations':_0x1617cc,'redoMutations':_0x5a28d6}),!0x0):!0x1;}},ye={'id':_0x280f9e(0xba),'type':_0x5a7102[_0x280f9e(0x15e)],'handler':(_0x2312a2,_0x226117)=>{const _0x59c069=_0x280f9e;let {unitId:_0x1c5df0,subUnitId:_0x1b0cf7,shapeType:_0x35040b,shapeId:_0x2bf513,shapeData:_0xdf2f23}=_0x226117,_0x152b9c=_0x2312a2[_0x59c069(0xdb)](Q)['getShapeModel'](_0x1c5df0,_0x1b0cf7,_0x2bf513);return _0x152b9c&&(_0x152b9c[_0x59c069(0x142)](_0x35040b),_0xdf2f23&&(_0x152b9c==null||_0x152b9c['setShapeData'](_0xdf2f23))),!0x0;}};function _0x85a7(_0x528833,_0x4560bf){_0x528833=_0x528833-0x97;const _0x2a5393=_0x2a53();let _0x85a7ea=_0x2a5393[_0x528833];return _0x85a7ea;}var be=_0x280f9e(0xa9),xe=_0x280f9e(0xd5);function Se(_0x4e3d93){const _0x2f3ccc=_0x280f9e;var _0x4976f0,_0x1bc02d,_0x3ad254,_0xe91c00,_0x3c1d46,_0x1be5da,_0x4e51d2;return{'left':((_0x4976f0=_0x4e3d93[_0x2f3ccc(0x122)])==null?void 0x0:_0x4976f0[_0x2f3ccc(0xbd)])??0x0,'top':((_0x1bc02d=_0x4e3d93['transform'])==null?void 0x0:_0x1bc02d[_0x2f3ccc(0x14e)])??0x0,'width':((_0x3ad254=_0x4e3d93['transform'])==null?void 0x0:_0x3ad254[_0x2f3ccc(0x117)])??0xc8,'height':((_0xe91c00=_0x4e3d93[_0x2f3ccc(0x122)])==null?void 0x0:_0xe91c00['height'])??0xc8,'rotation':((_0x3c1d46=_0x4e3d93[_0x2f3ccc(0x122)])==null?void 0x0:_0x3c1d46['rotation'])??0x0,'flipX':((_0x1be5da=_0x4e3d93[_0x2f3ccc(0x122)])==null?void 0x0:_0x1be5da[_0x2f3ccc(0x151)])??!0x1,'flipY':((_0x4e51d2=_0x4e3d93[_0x2f3ccc(0x122)])==null?void 0x0:_0x4e51d2['flipY'])??!0x1};}let Ce=class{constructor(_0x307ace,_0x1d844a,_0x4f76f5,_0x21acc5){const _0x448cc2=_0x280f9e;this[_0x448cc2(0xa8)]=_0x307ace,this['_shapeService']=_0x1d844a,this['_drawingService']=_0x4f76f5,this[_0x448cc2(0x130)]=_0x21acc5,X(this,'hostType',_0x330674[_0x448cc2(0x11a)]);}get[_0x280f9e(0xc7)](){return{'subscribe':_0x128ad4=>{const _0x4ff2f3=_0x85a7;let _0x5cdd4f=this[_0x4ff2f3(0xa8)][_0x4ff2f3(0x14a)](_0x4f261d=>{const _0x1a4256=_0x4ff2f3;(_0x4f261d['id']===ue['id']||_0x4f261d['id']===de['id']||_0x4f261d['id']===$['id']||_0x4f261d['id']===ye['id'])&&_0x128ad4({'unitId':_0x4f261d[_0x1a4256(0xfe)][_0x1a4256(0xd2)]});});return{'unsubscribe':()=>_0x5cdd4f[_0x4ff2f3(0xf3)]()};}};}['getShape'](_0x4da013){const _0x3ee796=_0x280f9e;var _0x5ade8c;let _0x4565b7=(_0x5ade8c=this['_drawingService'][_0x3ee796(0x13b)](_0x4da013['unitId'],_0x4da013[_0x3ee796(0x105)]))==null?void 0x0:_0x5ade8c[_0x4da013['shapeId']],_0xc0bdb0=this['_shapeService'][_0x3ee796(0x154)](_0x4da013['unitId'],_0x4da013[_0x3ee796(0x105)],_0x4da013[_0x3ee796(0xb3)]);if(!_0x4565b7||_0x4565b7[_0x3ee796(0x170)]!==_0x4c4e17['DRAWING_SHAPE']||!_0xc0bdb0)return null;let _0x5b7ea5=_0x4565b7['transform'];return{..._0x4da013,'shapeType':_0xc0bdb0,'shapeData':_0x245736[_0x3ee796(0xa2)](this['_shapeService']['getShapeDataById'](_0x4da013['unitId'],_0x4da013[_0x3ee796(0x105)],_0x4da013[_0x3ee796(0xb3)])??{}),'name':_0x4565b7[_0x3ee796(0x106)],'description':_0x4565b7['description'],'visible':_0x4565b7['hidden']!==!0x0,'selectable':_0x4565b7[_0x3ee796(0x102)]!==!0x1,'transform':{'left':(_0x5b7ea5==null?void 0x0:_0x5b7ea5[_0x3ee796(0xbd)])??0x0,'top':(_0x5b7ea5==null?void 0x0:_0x5b7ea5[_0x3ee796(0x14e)])??0x0,'width':(_0x5b7ea5==null?void 0x0:_0x5b7ea5['width'])??0xc8,'height':(_0x5b7ea5==null?void 0x0:_0x5b7ea5[_0x3ee796(0xf4)])??0xc8,'rotation':(_0x5b7ea5==null?void 0x0:_0x5b7ea5[_0x3ee796(0xd7)])??0x0,'flipX':(_0x5b7ea5==null?void 0x0:_0x5b7ea5[_0x3ee796(0x151)])??!0x1,'flipY':(_0x5b7ea5==null?void 0x0:_0x5b7ea5['flipY'])??!0x1}};}[_0x280f9e(0x100)](_0x1aa430){const _0x2f7c5c=_0x280f9e;let _0x137035=this[_0x2f7c5c(0xc4)][_0x2f7c5c(0x13b)](_0x1aa430[_0x2f7c5c(0xd2)],_0x1aa430[_0x2f7c5c(0x105)])??{};return Object[_0x2f7c5c(0x120)](_0x137035)[_0x2f7c5c(0x98)](_0xc3c884=>(_0xc3c884==null?void 0x0:_0xc3c884['drawingType'])===_0x4c4e17[_0x2f7c5c(0x166)])['map'](_0x2a8def=>this[_0x2f7c5c(0xf9)]({..._0x1aa430,'shapeId':_0x2a8def[_0x2f7c5c(0xe7)]}))[_0x2f7c5c(0x98)](_0x50005e=>!!_0x50005e);}['listShapesInUnit'](_0xed4c30){const _0x18d37c=_0x280f9e;let _0x407e97=this[_0x18d37c(0x130)][_0x18d37c(0x11e)](_0xed4c30,_0x330674[_0x18d37c(0x11a)]);return(_0x407e97==null?void 0x0:_0x407e97[_0x18d37c(0x9c)]()[_0x18d37c(0xe2)](_0x3b1fd7=>this[_0x18d37c(0x100)]({'hostType':this[_0x18d37c(0xd0)],'unitId':_0xed4c30,'subUnitId':_0x3b1fd7[_0x18d37c(0x109)]()})))??[];}[_0x280f9e(0x165)](_0x1b4284,_0x5d91d2){const _0x5b3838=_0x280f9e;let _0xdd0621=_0x4b832f(),_0x9d7372=Se(_0x5d91d2),_0x2eb7fe=_0x245736[_0x5b3838(0xa2)](_0x5d91d2[_0x5b3838(0xc3)]??_0x37770b(_0x5d91d2[_0x5b3838(0x129)]));return this[_0x5b3838(0xa8)][_0x5b3838(0x128)](fe['id'],{'unitId':_0x1b4284[_0x5b3838(0xd2)],'subUnitId':_0x1b4284[_0x5b3838(0x105)],'shapeId':_0xdd0621,'shapeType':_0x5d91d2[_0x5b3838(0x129)],'shapeData':_0x2eb7fe,'name':_0x5d91d2['name'],'description':_0x5d91d2[_0x5b3838(0x13a)],'position':{'x':_0x9d7372[_0x5b3838(0xbd)],'y':_0x9d7372[_0x5b3838(0x14e)]},'width':_0x9d7372[_0x5b3838(0x117)],'height':_0x9d7372[_0x5b3838(0xf4)],'rotation':_0x9d7372[_0x5b3838(0xf6)],'flipX':_0x9d7372[_0x5b3838(0x151)],'flipY':_0x9d7372[_0x5b3838(0x16d)],'visible':_0x5d91d2[_0x5b3838(0xf8)]??!0x0,'selectable':_0x5d91d2[_0x5b3838(0x102)]??!0x0})?{..._0x1b4284,'shapeId':_0xdd0621,'shapeType':_0x5d91d2[_0x5b3838(0x129)],'shapeData':_0x2eb7fe,'name':_0x5d91d2[_0x5b3838(0x106)],'description':_0x5d91d2[_0x5b3838(0x13a)],'visible':_0x5d91d2[_0x5b3838(0xf8)]??!0x0,'selectable':_0x5d91d2['selectable']??!0x0,'transform':_0x9d7372}:null;}['updateShape'](_0x250ad6,_0x5afb58){const _0x553e94=_0x280f9e;var _0xb9cf81;let _0x59705c=this['getShape'](_0x250ad6);if(!_0x59705c)return!0x1;let _0xa0f83a={..._0x59705c[_0x553e94(0x122)],..._0x5afb58[_0x553e94(0x122)]};return this[_0x553e94(0xa8)]['syncExecuteCommand'](pe['id'],{'unitId':_0x250ad6['unitId'],'subUnitId':_0x250ad6[_0x553e94(0x105)],'shapeId':_0x250ad6[_0x553e94(0xb3)],'shapeType':_0x5afb58[_0x553e94(0x129)]??((_0xb9cf81=_0x5afb58['shapeData'])==null?void 0x0:_0xb9cf81[_0x553e94(0x129)])??_0x59705c[_0x553e94(0x129)],'shapeData':_0x5afb58[_0x553e94(0xc3)]??_0x59705c['shapeData'],'position':{'x':_0xa0f83a[_0x553e94(0xbd)],'y':_0xa0f83a[_0x553e94(0x14e)]},'width':_0xa0f83a[_0x553e94(0x117)],'height':_0xa0f83a[_0x553e94(0xf4)],'rotation':_0xa0f83a[_0x553e94(0xf6)],'flipX':_0xa0f83a['flipX'],'flipY':_0xa0f83a[_0x553e94(0x16d)],'name':_0x553e94(0x106)in _0x5afb58?_0x5afb58[_0x553e94(0x106)]:_0x59705c[_0x553e94(0x106)],'description':_0x553e94(0x13a)in _0x5afb58?_0x5afb58[_0x553e94(0x13a)]:_0x59705c[_0x553e94(0x13a)],'visible':_0x5afb58[_0x553e94(0xf8)]??_0x59705c['visible'],'selectable':_0x5afb58[_0x553e94(0x102)]??_0x59705c[_0x553e94(0x102)]});}[_0x280f9e(0x11d)](_0x5bb9db,_0x452473,_0x542ea7){const _0x2c370=_0x280f9e;let _0x271311=this['getShape'](_0x5bb9db),_0x38d5df=_0x271311==null?void 0x0:_0x271311[_0x2c370(0xc3)]['formulaBinding'];return!_0x271311||!_0x38d5df?null:{'id':$['id'],'params':{'unitId':_0x5bb9db['unitId'],'subUnitId':_0x5bb9db[_0x2c370(0x105)],'shapeId':_0x5bb9db[_0x2c370(0xb3)],'shapeData':{..._0x271311[_0x2c370(0xc3)],'formulaBinding':{..._0x38d5df,'lastValue':_0x245736[_0x2c370(0xa2)](_0x542ea7)}},'replace':!0x0,'formulaLastValueGuard':_0x452473}};}['removeShape'](_0x11b545){const _0x4664fa=_0x280f9e;return this['_commandService'][_0x4664fa(0x128)](_0x167e82['id'],{'unitId':_0x11b545[_0x4664fa(0xd2)],'drawings':[{'unitId':_0x11b545[_0x4664fa(0xd2)],'subUnitId':_0x11b545[_0x4664fa(0x105)],'drawingId':_0x11b545['shapeId'],'drawingType':_0x4c4e17[_0x4664fa(0x166)]}]});}[_0x280f9e(0xc8)](_0x271dbe){const _0x1709c4=_0x280f9e;return this['_arrange'](_0x271dbe,_0x5c73a5[_0x1709c4(0x114)]);}[_0x280f9e(0xf7)](_0x3438b9){return this['_arrange'](_0x3438b9,_0x5c73a5['forward']);}[_0x280f9e(0x99)](_0x3cc445){const _0x37aca4=_0x280f9e;return this[_0x37aca4(0x133)](_0x3cc445,_0x5c73a5[_0x37aca4(0xa1)]);}['sendToBack'](_0x559420){const _0x115f9c=_0x280f9e;return this[_0x115f9c(0x133)](_0x559420,_0x5c73a5[_0x115f9c(0x111)]);}[_0x280f9e(0x15c)](_0x420fd6,_0x2bf6d4){const _0x5d5705=_0x280f9e;return this[_0x5d5705(0xa8)][_0x5d5705(0x128)](_0x3d4f64['id'],{'unitId':_0x420fd6[_0x5d5705(0xd2)],'subUnitId':_0x420fd6[_0x5d5705(0x105)],'drawingIds':[_0x420fd6['shapeId']],'zOrder':_0x2bf6d4});}[_0x280f9e(0x133)](_0xdacafe,_0x1f9e0d){const _0x30ba46=_0x280f9e;return this[_0x30ba46(0xa8)][_0x30ba46(0x128)](_0x3d4f64['id'],{'unitId':_0xdacafe[_0x30ba46(0xd2)],'subUnitId':_0xdacafe[_0x30ba46(0x105)],'drawingIds':[_0xdacafe['shapeId']],'arrangeType':_0x1f9e0d});}};Ce=le([Z(0x0,_0x26bdbb),Z(0x1,_0x4eaa88(Q)),Z(0x2,_0xbb9270),Z(0x3,_0x357a2c)],Ce);const we={};let Te=class extends _0x2bc8e7{constructor(_0x19ac29,_0x21da75,_0x6097e6,_0x167a5e,_0x55d1c1,_0x243603,_0x33413e){const _0x520c87=_0x280f9e;super(),this[_0x520c87(0xa8)]=_0x19ac29,this[_0x520c87(0xa3)]=_0x21da75,this[_0x520c87(0xef)]=_0x6097e6,this[_0x520c87(0x15f)]=_0x167a5e,this[_0x520c87(0xae)]=_0x55d1c1,this[_0x520c87(0x104)]=_0x243603,this['_initCommands'](),this[_0x520c87(0xff)](),this[_0x520c87(0xe8)](this['_shapeHostAdapterRegistry'][_0x520c87(0x171)](_0x33413e));}[_0x280f9e(0x16c)](){const _0x29e342=_0x280f9e;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$][_0x29e342(0x167)](_0x4fde1e=>this[_0x29e342(0xe8)](this['_commandService'][_0x29e342(0xac)](_0x4fde1e)));}[_0x280f9e(0xff)](){const _0x47bb50=_0x280f9e;this['disposeWithMe'](this[_0x47bb50(0xa3)][_0x47bb50(0x169)]({'getMutations':_0x59a0e0=>{const _0x216f80=_0x47bb50;if(_0x59a0e0['id']===_0x167e82['id']){let {drawings:_0x37225b}=_0x59a0e0[_0x216f80(0xfe)],_0x144233=_0x37225b[_0x216f80(0x98)](_0xf74712=>_0xf74712['drawingType']===_0x4c4e17[_0x216f80(0x166)]);if(_0x144233[_0x216f80(0xb8)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1c7b69=[],_0x141924=[];return _0x144233[_0x216f80(0x167)](_0x413cf3=>{const _0x160590=_0x216f80;let {unitId:_0x4999c9,subUnitId:_0x20ebbf,drawingId:_0x17665f}=_0x413cf3,_0x324c82=this['_sheetsShapeService'][_0x160590(0xc1)](_0x4999c9,_0x20ebbf,_0x17665f);if(!_0x324c82)throw TypeError(_0x160590(0xfc)+_0x324c82);_0x1c7b69[_0x160590(0xc5)]({'id':de['id'],'params':{'unitId':_0x4999c9,'subUnitId':_0x20ebbf,'shapeId':_0x17665f}}),_0x141924['push']({'id':ue['id'],'params':{'unitId':_0x4999c9,'subUnitId':_0x20ebbf,'shapeId':_0x17665f,'shapeType':_0x324c82[_0x160590(0x154)](),'shapeData':_0x324c82[_0x160590(0xb7)]()}});let _0x496c7a=this[_0x160590(0x15f)][_0x160590(0x9f)](_0x4999c9,_0x20ebbf,_0x17665f);if(_0x496c7a)for(let _0x5f4cab of _0x496c7a){let _0xc43a8f=_0x5f4cab[_0x160590(0x112)],_0x550e88=_0x5f4cab[_0x160590(0x12b)],_0x4c7d8e=_0x550e88?{'from':void 0x0}:{'to':void 0x0},_0x197171=_0x550e88?{'from':{'shapeId':_0x5f4cab[_0x160590(0xb3)],'cxnIndex':_0x5f4cab[_0x160590(0xb0)]}}:{'to':{'shapeId':_0x5f4cab[_0x160590(0xb3)],'cxnIndex':_0x5f4cab[_0x160590(0xb0)]}};_0x1c7b69['push']({'id':$['id'],'params':{'unitId':_0x4999c9,'subUnitId':_0x20ebbf,'shapeId':_0xc43a8f,'shapeData':{'relation':_0x4c7d8e}}}),_0x141924[_0x160590(0xc5)]({'id':$['id'],'params':{'unitId':_0x4999c9,'subUnitId':_0x20ebbf,'shapeId':_0xc43a8f,'shapeData':{'relation':_0x197171}}});}}),{'preRedos':_0x1c7b69,'redos':[],'preUndos':[],'undos':_0x141924};}if(_0x59a0e0['id']===_0x4b133c['id']){let {drawings:_0x1d1ee4}=_0x59a0e0['params'],_0x3dfc53=_0x1d1ee4[_0x216f80(0x98)](_0x2e3963=>_0x2e3963[_0x216f80(0x170)]===_0x4c4e17[_0x216f80(0x166)]);if(_0x3dfc53[_0x216f80(0xb8)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x508813=[],_0x3eec5d=[];for(let _0x17c3d1 of _0x3dfc53){let {unitId:_0x109c3c,subUnitId:_0x2c84ad,drawingId:_0x4b9dca,transform:_0x239804}=_0x17c3d1;if(!_0x109c3c||!_0x2c84ad||!_0x4b9dca||!_0x239804)continue;let _0x4d8bcd=this[_0x216f80(0x15f)][_0x216f80(0xc1)](_0x109c3c,_0x2c84ad,_0x4b9dca);if(!_0x4d8bcd)throw TypeError(_0x216f80(0xfc)+_0x4d8bcd);let _0x2fd667=_0x4d8bcd[_0x216f80(0x154)]();if(_0x50c3a7(_0x2fd667)){let _0xb8464b=this[_0x216f80(0x15f)][_0x216f80(0xeb)](_0x109c3c,_0x2c84ad,_0x4b9dca);_0xb8464b&&(_0x508813[_0x216f80(0xc5)]({'id':$['id'],'params':{'unitId':_0x109c3c,'subUnitId':_0x2c84ad,'shapeId':_0x4b9dca,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x3eec5d['push']({'id':$['id'],'params':{'unitId':_0x109c3c,'subUnitId':_0x2c84ad,'shapeId':_0x4b9dca,'shapeData':{'relation':_0xb8464b}}}));}else{let _0x5750ad=this[_0x216f80(0x15f)][_0x216f80(0x9f)](_0x109c3c,_0x2c84ad,_0x4b9dca);if(_0x5750ad&&_0x5750ad['length']>0x0)for(let _0x27180e of _0x5750ad){let _0x4893d5=_0x27180e[_0x216f80(0x112)],_0x3efd40=_0x27180e[_0x216f80(0x12b)],_0x5b9a2d=this[_0x216f80(0x15f)]['getShapeModel'](_0x109c3c,_0x2c84ad,_0x4893d5);if(!_0x5b9a2d)continue;let _0x2301b7=_0x5b9a2d['getStartConnectInfo'](),_0x7fb93=_0x5b9a2d['getEndConnectInfo']();_0x2301b7&&_0x7fb93?this[_0x216f80(0x121)](_0x109c3c,_0x2c84ad,_0x4893d5,_0x5b9a2d,_0x2301b7,_0x7fb93,_0x508813,_0x3eec5d,_0x4b9dca,_0x239804):this['_addLineFollowShapeUpdates'](_0x109c3c,_0x2c84ad,_0x4893d5,_0x5b9a2d,_0x3efd40?_0x2301b7:_0x7fb93,_0x3efd40,_0x508813,_0x3eec5d,_0x4b9dca,_0x239804);}}}return{'preRedos':[],'redos':_0x508813,'preUndos':_0x3eec5d,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x280f9e(0x131)](_0x4d4986,_0x3f6910,_0x3aef48,_0x6ff5a5,_0x476773){const _0x11919c=_0x280f9e;if(!_0x3f6910||!_0x3aef48)return null;let {shapeId:_0x324904,cxnIndex:_0x26a2e8}=_0x4d4986,_0x58cf28=this[_0x11919c(0x15f)][_0x11919c(0xc1)](_0x3f6910,_0x3aef48,_0x324904);if(!_0x58cf28)return null;let _0x509ddc=this[_0x11919c(0xae)]['getDrawingByParam']({'unitId':_0x3f6910,'subUnitId':_0x3aef48,'drawingId':_0x324904});if(!(_0x509ddc!=null&&_0x509ddc[_0x11919c(0x122)]))return null;let {left:_0x484b49=0x0,top:_0x271815=0x0,width:_0x2bb7cc=0x0,height:_0xb63fb7=0x0,flipX:_0x4c2fe3=!0x1,flipY:_0x492cc4=!0x1,angle:_0x28ae8e}=_0x509ddc[_0x11919c(0x122)];_0x476773&&_0x6ff5a5===_0x324904&&(_0x484b49=_0x476773['left']??_0x484b49,_0x271815=_0x476773[_0x11919c(0x14e)]??_0x271815,_0x2bb7cc=_0x476773[_0x11919c(0x117)]??_0x2bb7cc,_0xb63fb7=_0x476773[_0x11919c(0xf4)]??_0xb63fb7,_0x4c2fe3=_0x476773[_0x11919c(0x151)]??_0x4c2fe3,_0x492cc4=_0x476773[_0x11919c(0x16d)]??_0x492cc4,_0x28ae8e=_0x476773['angle']??_0x28ae8e),_0x58cf28[_0x11919c(0xdf)]({'width':_0x2bb7cc,'height':_0xb63fb7});let _0x31f661=_0x58cf28['getConnectionSiteList']()[_0x11919c(0xbb)](_0x3a5a8e=>_0x3a5a8e[_0x11919c(0x14d)]===_0x26a2e8);if(!_0x31f661)return null;let _0x45178d=_0x4c2fe3?_0x2bb7cc-_0x31f661['x']:_0x31f661['x'],_0x514fe8=_0x492cc4?_0xb63fb7-_0x31f661['y']:_0x31f661['y'];if(_0x28ae8e!==0x0&&_0x28ae8e!=null){let _0x1ee904=_0x28ae8e*Math['PI']/0xb4,_0x21bc06=Math[_0x11919c(0x16b)](_0x1ee904),_0x4d9c9a=Math[_0x11919c(0x152)](_0x1ee904),_0x54ff8f=_0x2bb7cc/0x2,_0x47be96=_0xb63fb7/0x2,_0x56cf78=_0x45178d-_0x54ff8f,_0x2056b4=_0x514fe8-_0x47be96;_0x45178d=_0x54ff8f+_0x56cf78*_0x21bc06-_0x2056b4*_0x4d9c9a,_0x514fe8=_0x47be96+_0x56cf78*_0x4d9c9a+_0x2056b4*_0x21bc06;}_0x45178d+=_0x484b49,_0x514fe8+=_0x271815;let _0x63dcbf=_0x31f661[_0x11919c(0xda)]/0xea60;_0x4c2fe3&&(_0x63dcbf=0xb4-_0x63dcbf),_0x492cc4&&(_0x63dcbf=-_0x63dcbf),_0x63dcbf+=_0x28ae8e||0x0,_0x63dcbf=(_0x63dcbf%0x168+0x168)%0x168;let _0x25e1c6=_0x161b03({'left':_0x484b49,'top':_0x271815,'width':_0x2bb7cc,'height':_0xb63fb7},_0x28ae8e||0x0);return{'point':{'x':_0x45178d,'y':_0x514fe8},'angle':_0x63dcbf,'bounds':_0x25e1c6};}['_addLineRerouteUpdates'](_0x84f3a5,_0x12a049,_0x56d54d,_0x3abe97,_0x3a7ad6,_0x27bc81,_0x5aacfc,_0xb32cc4,_0x5a524c,_0x204a06){const _0x1300f5=_0x280f9e;let _0x127ee=this[_0x1300f5(0xef)]['getSkeleton'](_0x84f3a5,_0x12a049);if(!_0x127ee)return;let _0x470024=_0x3abe97[_0x1300f5(0x136)](),_0x224b44=_0x3abe97[_0x1300f5(0xb2)](),_0x4f3dd0={},_0x3b6b5a={};_0x224b44[_0x1300f5(0x167)](_0x22c676=>{let _0x39afe6=_0x3abe97['getAdjustValueByName'](_0x22c676);_0x3b6b5a[_0x22c676]=_0x39afe6??0x0;});let _0x37a562=this[_0x1300f5(0x131)](_0x3a7ad6,_0x84f3a5,_0x12a049,_0x5a524c,_0x204a06),_0x40adf9=this['_getConnectPointInfo'](_0x27bc81,_0x84f3a5,_0x12a049,_0x5a524c,_0x204a06);if(_0x37a562&&_0x40adf9){let _0x5c1304=_0x3abe97[_0x1300f5(0x154)](),_0x35fc11=_0x5549d7(_0x37a562,_0x40adf9,_0x5c1304),_0xb6a79a=_0x5c1304;if(_0x35fc11){let _0x224d4c=_0x13a585(_0x35fc11,_0x3abe97['getShapeType']()),_0x2ee0e5=this['_drawingManagerService'][_0x1300f5(0x13b)](_0x84f3a5,_0x12a049);if(_0x2ee0e5&&_0x2ee0e5[_0x56d54d]){let _0x1491e5=_0x2ee0e5[_0x56d54d];_0xb6a79a=_0x224d4c[_0x1300f5(0xfa)];for(let [_0x50f8f1,_0x5996f1]of Object[_0x1300f5(0x12f)](_0x224d4c[_0x1300f5(0x9d)]))_0x4f3dd0[_0x50f8f1]=_0x5996f1;let _0x256bc4={..._0x1491e5[_0x1300f5(0x122)],'width':_0x224d4c[_0x1300f5(0x150)][_0x1300f5(0x117)],'height':_0x224d4c[_0x1300f5(0x150)][_0x1300f5(0xf4)],'left':_0x224d4c['worldRect'][_0x1300f5(0xbd)],'top':_0x224d4c[_0x1300f5(0x150)]['top'],'flipX':_0x224d4c[_0x1300f5(0x150)][_0x1300f5(0x151)],'flipY':_0x224d4c[_0x1300f5(0x150)][_0x1300f5(0x16d)],'angle':_0x224d4c[_0x1300f5(0xf6)]},_0x1e338c=_0x5be43d(_0x256bc4,_0x127ee),_0xfc2208=_0x3876d8(_0x256bc4,_0x127ee),_0x4072bc={'unitId':_0x84f3a5,'subUnitId':_0x12a049,'drawingType':_0x4c4e17[_0x1300f5(0x166)],'drawingId':_0x56d54d,'transform':_0x256bc4,'sheetTransform':_0x1e338c,'axisAlignSheetTransform':_0xfc2208},{unitId:_0x313a38,subUnitId:_0x2610d3,undo:_0x2af7d2,redo:_0x3c6305,objects:_0x4b42e0}=this[_0x1300f5(0xae)][_0x1300f5(0x16f)]([_0x4072bc]);_0x5aacfc[_0x1300f5(0xc5)]({'id':_0x32ff9b['id'],'params':{'unitId':_0x313a38,'subUnitId':_0x2610d3,'op':_0x3c6305,'objects':_0x4b42e0,'type':_0x45565a['UPDATE']}}),_0xb32cc4[_0x1300f5(0xc5)]({'id':_0x32ff9b['id'],'params':{'unitId':_0x313a38,'subUnitId':_0x2610d3,'op':_0x2af7d2,'objects':_0x4b42e0,'type':_0x45565a[_0x1300f5(0xaa)]}});}_0x3abe97[_0x1300f5(0x127)]();}_0x5aacfc[_0x1300f5(0xc5)]({'id':$['id'],'params':{'unitId':_0x84f3a5,'subUnitId':_0x12a049,'shapeId':_0x56d54d,'shapeType':_0xb6a79a,'shapeData':{'adjustValues':_0x4f3dd0,'relation':_0x470024}}}),_0xb32cc4[_0x1300f5(0xc5)]({'id':$['id'],'params':{'unitId':_0x84f3a5,'subUnitId':_0x12a049,'shapeId':_0x56d54d,'shapeType':_0x5c1304,'shapeData':{'adjustValues':_0x3b6b5a,'relation':_0x470024}}});}}[_0x280f9e(0xd1)](_0xbe1814,_0x168682,_0x2cba7d,_0x57b00e,_0x31a1ce,_0xca07e2,_0x58dbcd,_0x2ea0d3,_0xc547ea,_0x48f14c){const _0xcebafe=_0x280f9e;var _0x245afc;if(!_0x31a1ce)return;let _0xc74552=this[_0xcebafe(0xef)][_0xcebafe(0xb9)](_0xbe1814,_0x168682);if(!_0xc74552)return;let _0x7b5f48=(_0x245afc=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0xbe1814,'subUnitId':_0x168682,'drawingId':_0xc547ea}))==null?void 0x0:_0x245afc['transform'];if(!_0x7b5f48)return;let _0x1c34a8=_0x7b5f48['left']!==_0x48f14c[_0xcebafe(0xbd)]||_0x7b5f48[_0xcebafe(0x14e)]!==_0x48f14c[_0xcebafe(0x14e)],_0x5837c7=_0x7b5f48[_0xcebafe(0x117)]!==_0x48f14c[_0xcebafe(0x117)]||_0x7b5f48[_0xcebafe(0xf4)]!==_0x48f14c[_0xcebafe(0xf4)],_0x509505=_0x7b5f48['flipX']!==_0x48f14c['flipX']||_0x7b5f48[_0xcebafe(0x16d)]!==_0x48f14c[_0xcebafe(0x16d)],_0x470216=_0x7b5f48[_0xcebafe(0xd7)]!==_0x48f14c[_0xcebafe(0xd7)];if(_0x1c34a8&&!_0x5837c7&&!_0x509505&&!_0x470216){let _0x312c7a=(_0x48f14c['left']??0x0)-(_0x7b5f48['left']??0x0),_0x37e1f2=(_0x48f14c[_0xcebafe(0x14e)]??0x0)-(_0x7b5f48[_0xcebafe(0x14e)]??0x0),_0x2a500f=this[_0xcebafe(0xae)][_0xcebafe(0x13b)](_0xbe1814,_0x168682);if(_0x2a500f&&_0x2a500f[_0x2cba7d]){var _0x5b06a2,_0x3ae00f;let _0x193c46=_0x2a500f[_0x2cba7d],_0x450c8c={..._0x193c46['transform'],'left':(((_0x5b06a2=_0x193c46['transform'])==null?void 0x0:_0x5b06a2[_0xcebafe(0xbd)])??0x0)+_0x312c7a,'top':(((_0x3ae00f=_0x193c46[_0xcebafe(0x122)])==null?void 0x0:_0x3ae00f[_0xcebafe(0x14e)])??0x0)+_0x37e1f2},_0xc4e25f=_0x5be43d(_0x450c8c,_0xc74552),_0x3e160d=_0x3876d8(_0x450c8c,_0xc74552),_0x1524c1={'unitId':_0xbe1814,'subUnitId':_0x168682,'drawingType':_0x4c4e17[_0xcebafe(0x166)],'drawingId':_0x2cba7d,'transform':_0x450c8c,'sheetTransform':_0xc4e25f,'axisAlignSheetTransform':_0x3e160d},{unitId:_0x485f53,subUnitId:_0x1c158e,undo:_0x2bcebe,redo:_0x417237,objects:_0x7b156d}=this[_0xcebafe(0xae)][_0xcebafe(0x16f)]([_0x1524c1]);_0x58dbcd[_0xcebafe(0xc5)]({'id':_0x32ff9b['id'],'params':{'unitId':_0x485f53,'subUnitId':_0x1c158e,'op':_0x417237,'objects':_0x7b156d,'type':_0x45565a['UPDATE']}}),_0x2ea0d3[_0xcebafe(0xc5)]({'id':_0x32ff9b['id'],'params':{'unitId':_0x485f53,'subUnitId':_0x1c158e,'op':_0x2bcebe,'objects':_0x7b156d,'type':_0x45565a[_0xcebafe(0xaa)]}});}}else{let _0x16d80f=_0x57b00e[_0xcebafe(0x14b)](),_0x480eb1=_0x57b00e[_0xcebafe(0x15b)]();this['_addLineRerouteUpdates'](_0xbe1814,_0x168682,_0x2cba7d,_0x57b00e,_0x16d80f,_0x480eb1,_0x58dbcd,_0x2ea0d3,_0xc547ea,_0x48f14c);}}};Te=le([Z(0x0,_0x26bdbb),Z(0x1,_0x4eaa88(_0x4f1328)),Z(0x2,_0x4eaa88(_0x276426)),Z(0x3,_0x4eaa88(Q)),Z(0x4,_0x4eaa88(_0x963e04)),Z(0x5,_0x4eaa88(_0x4dfa79)),Z(0x6,_0x4eaa88(Ce))],Te);let Ee=class extends _0x2bc8e7{constructor(_0x120b1e,_0x2a2df1,_0x47e7c6){const _0x5762b1=_0x280f9e;super(),this[_0x5762b1(0xf1)]=_0x120b1e,this['_shapeAdapter']=_0x2a2df1,this[_0x5762b1(0xe8)](_0x47e7c6[_0x5762b1(0x171)](this));}[_0x280f9e(0x122)](_0x228859){const _0x5cd076=_0x280f9e;let _0x161234={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x5cd076(0x143)](_0x228859,_0x161234);for(let [_0x2328ce,_0x33ccd5]of _0x228859[_0x5cd076(0x156)])this['_planConnector'](_0x228859,_0x2328ce,_0x33ccd5,_0x161234);return _0x161234;}['_planDeletes'](_0x2fb538,_0xa57b07){const _0x4a0856=_0x280f9e;if(_0x2fb538['mode']===_0x4a0856(0xc0))for(let _0x1ad186 of _0x2fb538[_0x4a0856(0xb5)]){let _0x240508=_0x2fb538[_0x4a0856(0x156)][_0x4a0856(0xdb)](_0x1ad186),_0x249273=this[_0x4a0856(0xf1)]['getShapeModel'](_0x2fb538[_0x4a0856(0xd2)],_0x2fb538[_0x4a0856(0x105)],_0x1ad186);(_0x240508==null?void 0x0:_0x240508[_0x4a0856(0x170)])===_0x4c4e17['DRAWING_SHAPE']&&_0x249273&&(_0xa57b07['preRedos'][_0x4a0856(0xc5)]({'id':de['id'],'params':{'unitId':_0x2fb538[_0x4a0856(0xd2)],'subUnitId':_0x2fb538[_0x4a0856(0x105)],'shapeId':_0x1ad186}}),_0xa57b07[_0x4a0856(0x141)][_0x4a0856(0xc5)]({'id':ue['id'],'params':{'unitId':_0x2fb538[_0x4a0856(0xd2)],'subUnitId':_0x2fb538[_0x4a0856(0x105)],'shapeId':_0x1ad186,'shapeName':_0x249273['getName'](),'shapeType':_0x249273[_0x4a0856(0x154)](),'shapeData':_0x245736[_0x4a0856(0xa2)](_0x249273[_0x4a0856(0xb7)]())}}));}}[_0x280f9e(0x124)](_0x51d914,_0x4e4f24,_0x130796,_0x1bc4f4){const _0x4e36b3=_0x280f9e;if(_0x130796[_0x4e36b3(0x170)]!==_0x4c4e17['DRAWING_SHAPE']||_0x51d914['deletes'][_0x4e36b3(0x9b)](_0x4e4f24))return;let _0x471469=this[_0x4e36b3(0xf1)]['getShapeModel'](_0x51d914[_0x4e36b3(0xd2)],_0x51d914[_0x4e36b3(0x105)],_0x4e4f24);if(!_0x471469||!_0x50c3a7(_0x471469[_0x4e36b3(0x154)]()))return;let _0x1dde5f=_0x471469[_0x4e36b3(0x136)]();if(!(_0x51d914[_0x4e36b3(0x155)]['has'](_0x4e4f24)||_0x1dde5f!=null&&_0x1dde5f[_0x4e36b3(0x15a)]&&(_0x51d914['updates']['has'](_0x1dde5f[_0x4e36b3(0x15a)]['shapeId'])||_0x51d914[_0x4e36b3(0xb5)]['has'](_0x1dde5f[_0x4e36b3(0x15a)]['shapeId']))||_0x1dde5f!=null&&_0x1dde5f['to']&&(_0x51d914[_0x4e36b3(0x155)][_0x4e36b3(0x9b)](_0x1dde5f['to']['shapeId'])||_0x51d914[_0x4e36b3(0xb5)]['has'](_0x1dde5f['to'][_0x4e36b3(0xb3)]))))return;let _0x17f137=_0x51d914['updates']['get'](_0x4e4f24)??_0x130796,_0x1dbaab=this[_0x4e36b3(0x119)](_0x51d914,_0x17f137);if(!_0x1dbaab)return;let _0x555bd9=_0x4b450a(_0x1dbaab);if(_0x555bd9[_0x4e36b3(0xb8)]<0x2)return;let _0x159ee8=_0x245736['deepClone'](_0x1dde5f??{}),_0x445cba=_0x159ee8['from']&&this[_0x4e36b3(0x159)](_0x51d914,_0x159ee8[_0x4e36b3(0x15a)][_0x4e36b3(0xb3)],_0x159ee8[_0x4e36b3(0x15a)][_0x4e36b3(0xb0)]),_0x20711e=_0x159ee8['to']&&this[_0x4e36b3(0x159)](_0x51d914,_0x159ee8['to'][_0x4e36b3(0xb3)],_0x159ee8['to'][_0x4e36b3(0xb0)]);_0x159ee8[_0x4e36b3(0x15a)]&&!_0x445cba&&delete _0x159ee8[_0x4e36b3(0x15a)],_0x159ee8['to']&&!_0x20711e&&delete _0x159ee8['to'];let _0x36f869=_0x445cba||_0x3c819c((_0x20711e==null?void 0x0:_0x20711e[_0x4e36b3(0xc6)])??_0x555bd9[_0x555bd9[_0x4e36b3(0xb8)]-0x1],_0x555bd9[0x0]),_0x5c7b35=_0x20711e||_0x3c819c((_0x445cba==null?void 0x0:_0x445cba[_0x4e36b3(0xc6)])??_0x555bd9[0x0],_0x555bd9[_0x555bd9[_0x4e36b3(0xb8)]-0x1]),_0x2782ba=_0x97f49c(_0x1dbaab,_0x36f869,_0x5c7b35,_0x159ee8);_0x2782ba!=null&&_0x2782ba['transform']&&_0x2782ba[_0x4e36b3(0x129)]&&_0x2782ba[_0x4e36b3(0xc3)]&&(this[_0x4e36b3(0x137)](_0x51d914,_0x17f137,_0x2782ba),_0x51d914[_0x4e36b3(0x126)]===_0x4e36b3(0xd6)?(_0x471469[_0x4e36b3(0x142)](_0x2782ba[_0x4e36b3(0x129)]),_0x471469[_0x4e36b3(0xab)](_0x245736[_0x4e36b3(0xa2)](_0x2782ba[_0x4e36b3(0xc3)]),!0x1)):(_0x1bc4f4[_0x4e36b3(0xe3)]['push']({'id':$['id'],'params':{'unitId':_0x51d914[_0x4e36b3(0xd2)],'subUnitId':_0x51d914['subUnitId'],'shapeId':_0x4e4f24,'shapeType':_0x2782ba[_0x4e36b3(0x129)],'shapeData':_0x245736[_0x4e36b3(0xa2)](_0x2782ba[_0x4e36b3(0xc3)]),'replace':!0x0}}),_0x1bc4f4[_0x4e36b3(0x141)][_0x4e36b3(0xc5)]({'id':$['id'],'params':{'unitId':_0x51d914[_0x4e36b3(0xd2)],'subUnitId':_0x51d914[_0x4e36b3(0x105)],'shapeId':_0x4e4f24,'shapeType':_0x471469[_0x4e36b3(0x154)](),'shapeData':_0x245736[_0x4e36b3(0xa2)](_0x471469[_0x4e36b3(0xb7)]()),'replace':!0x0}})));}[_0x280f9e(0x159)](_0x3e32b9,_0x52d793,_0x3ccb48){const _0xd24a5e=_0x280f9e;if(_0x3e32b9['deletes'][_0xd24a5e(0x9b)](_0x52d793))return null;let _0x54bdfa=_0x3e32b9[_0xd24a5e(0x155)][_0xd24a5e(0xdb)](_0x52d793)??_0x3e32b9[_0xd24a5e(0x156)][_0xd24a5e(0xdb)](_0x52d793);if(!_0x54bdfa)return null;let _0x2aa397=this['_toSnapshot'](_0x3e32b9,_0x54bdfa);return _0x2aa397?_0x391d2f(_0x2aa397,_0x3ccb48):null;}['_toSnapshot'](_0x4ffb0a,_0x4ccb7c){const _0x2027ae=_0x280f9e;let _0x7ad1d2={'hostType':_0x330674[_0x2027ae(0x11a)],'unitId':_0x4ffb0a[_0x2027ae(0xd2)],'subUnitId':_0x4ffb0a[_0x2027ae(0x105)],'shapeId':_0x4ccb7c[_0x2027ae(0xe7)]},_0x20b08e=this[_0x2027ae(0xe4)][_0x2027ae(0xf9)](_0x7ad1d2);return!_0x20b08e||!_0x4ccb7c[_0x2027ae(0x122)]?null:{..._0x20b08e,'transform':{'left':_0x4ccb7c['transform'][_0x2027ae(0xbd)]??0x0,'top':_0x4ccb7c[_0x2027ae(0x122)]['top']??0x0,'width':_0x4ccb7c[_0x2027ae(0x122)][_0x2027ae(0x117)]??0x0,'height':_0x4ccb7c[_0x2027ae(0x122)][_0x2027ae(0xf4)]??0x0,'rotation':_0x4ccb7c[_0x2027ae(0x122)][_0x2027ae(0xd7)]??0x0,'flipX':_0x4ccb7c[_0x2027ae(0x122)][_0x2027ae(0x151)]??!0x1,'flipY':_0x4ccb7c[_0x2027ae(0x122)]['flipY']??!0x1}};}[_0x280f9e(0x137)](_0x2938ce,_0x516471,_0x360b4c){const _0x57e751=_0x280f9e;let _0x10ef76=_0x516471,_0x5bcb96={..._0x516471[_0x57e751(0x122)],'left':_0x360b4c[_0x57e751(0x122)][_0x57e751(0xbd)],'top':_0x360b4c['transform'][_0x57e751(0x14e)],'width':_0x360b4c[_0x57e751(0x122)][_0x57e751(0x117)],'height':_0x360b4c['transform'][_0x57e751(0xf4)],'angle':_0x360b4c[_0x57e751(0x122)][_0x57e751(0xf6)],'flipX':_0x360b4c[_0x57e751(0x122)][_0x57e751(0x151)],'flipY':_0x360b4c[_0x57e751(0x122)]['flipY']},_0x5db0d8={..._0x10ef76,'transform':_0x5bcb96,'sheetTransform':_0x5be43d(_0x5bcb96,_0x2938ce[_0x57e751(0x16e)]),'axisAlignSheetTransform':_0x3876d8(_0x5bcb96,_0x2938ce[_0x57e751(0x16e)]),'data':{..._0x10ef76[_0x57e751(0x138)],'shapeType':_0x360b4c[_0x57e751(0x129)],'shapeData':_0x245736[_0x57e751(0xa2)](_0x360b4c[_0x57e751(0xc3)])}};_0x2938ce[_0x57e751(0x155)][_0x57e751(0x10b)](_0x516471[_0x57e751(0xe7)],_0x5db0d8);}};Ee=le([Z(0x0,_0x4eaa88(Q)),Z(0x1,_0x4eaa88(Ce)),Z(0x2,_0x4eaa88(_0x196a2d))],Ee);let De=class extends _0x426c41{constructor(_0x2949a7=we,_0x1109bc,_0x5a36a7){const _0x4bedb0=_0x280f9e;super(),this['_config']=_0x2949a7,this[_0x4bedb0(0x13d)]=_0x1109bc,this[_0x4bedb0(0x135)]=_0x5a36a7;let {..._0x28b966}=_0x45c8b0({},we,this[_0x4bedb0(0x147)]);this[_0x4bedb0(0x135)][_0x4bedb0(0xad)](_0x4bedb0(0x10d),_0x28b966);}[_0x280f9e(0x163)](){const _0x3ff424=_0x280f9e;let _0x27eb9e=this['_injector'];[[ce],[Q],[Ce],[Ee],[Te]][_0x3ff424(0x167)](_0x2f310d=>_0x27eb9e['add'](_0x2f310d)),_0x3fb557(_0x27eb9e,[[Q],[Ee],[Te]]);}};function _0x2a53(){const _0x5d19ca=['getBasicShapeRelation','keys','backward','deepClone','_sheetInterceptorService','sheet.command.set-shape-rotate','stringify','delete','string','_commandService','@univerjs-pro/sheets-shape','UPDATE','setShapeData','registerCommand','setConfig','_drawingManagerService','SHEET_SHAPE_PLUGIN','cxnIndex','sheet.command.update-connector-relation','getAdjustNames','shapeId','relation','deletes','getShapeTypeById','getShapeData','length','getSkeleton','sheet.mutation.update-shape-type','find','formula','left','REMOVE','741375UZLtcw','command','getShapeModel','getDrawingByParam','shapeData','_drawingService','push','point','shapeChanged$','bringToFront','_linesIds','381268zrKrxe','3374bctaNM','add','getId','getBasicShapeType','decorate','hostType','_addLineFollowShapeUpdates','unitId','call','pushUndoRedo','1.3.1','refresh','angle','preUndos','default','ang','get','prototype','registerPluginResource','7LaHtdU','updateContext','addShape','packageName','flatMap','redos','_shapeAdapter','120zmJWtz','constructor','drawingId','disposeWithMe','10fVkhsT','symbol','getLineShapeRelation','56791amQwQz','sheet.command.toggle-shape-flip','_initSnapshot','_sheetSkeletonService','object','_shapeService','_deserializeShapeForUnit','dispose','height','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','rotation','bringForward','visible','getShape','lineType','sheet.command.insert-shape','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','sheet.command.set-shape-text-vertical-toggle','params','_initCommandInterceptor','listShapes','sheet.mutation.update-shape-data','selectable','version','_shapeHostAdapterRegistry','subUnitId','name','_resourcesManagerService','COMMAND','getSheetId','removeShape','set','ensureSkeleton','sheets-shape.config','getBatchAddOp','isHorizontal','startY','back','lineShapeId','shapeName','front','function','sheet.command.set-shape-drawing-data','width','_shapes','_toSnapshot','UNIVER_SHEET','rotateEnabled','_ensureShapeModelManager','createFormulaLastValueMutation','getUnit','getShapeDisplayNames','values','_addLineRerouteUpdates','transform','sheet.mutation.insert-shape','_planConnector','getShapeDataById','mode','removeLinePoints','syncExecuteCommand','shapeType','map','isFrom','13275VccOXB','type','6331523oOnLXx','entries','_instanceService','_getConnectPointInfo','range','_arrange','onCommandExecute','_configService','getShapeRelation','_applyUpdate','data','resizeEnabled','description','getDrawingData','result','_injector','_serializeShapeForUnit','_shapeModelManagerMap','toJSON','undos','setShapeType','_planDeletes','defineProperty','fill','Both','_config','getOwnPropertyDescriptor','toPrimitive','onCommandExecuted','getStartConnectInfo','preRedos','index','top','fromJSON','worldRect','flipX','sin','position','getShapeType','updates','originals','isLineShape','formulaBinding','_resolveBinding','from','getEndConnectInfo','setZOrder','iterator','MUTATION','_sheetsShapeService','493554MbqmPM','_disposed','pluginName','onStarting','hasShape','createShape','DRAWING_SHAPE','forEach','45GXQzpm','interceptCommand','borderEnabled','cos','_initCommands','flipY','skeleton','getBatchUpdateOp','drawingType','register','insertShape','filter','sendBackward','startX','has','getSheets','adjustValues','clear'];_0x2a53=function(){return _0x5d19ca;};return _0x2a53();}X(De,_0x280f9e(0x12d),_0x330674[_0x280f9e(0x11a)]),X(De,_0x280f9e(0x162),_0x280f9e(0xaf)),X(De,_0x280f9e(0xe1),be),X(De,_0x280f9e(0x103),xe),De=le([_0x5cb7af(_0x3a64bc,_0x3a282c,_0x130a10,_0xf6b7a1,_0x170b23),Z(0x1,_0x4eaa88(_0x2b9b4b)),Z(0x2,_0x388349)],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};
1
+ const _0x225b1f=_0x2588;(function(_0x44f386,_0x2a9234){const _0x242c9b=_0x2588,_0x5d6669=_0x44f386();while(!![]){try{const _0x1fc419=parseInt(_0x242c9b(0x138))/0x1+parseInt(_0x242c9b(0x1e7))/0x2+parseInt(_0x242c9b(0x15e))/0x3*(parseInt(_0x242c9b(0x1c6))/0x4)+-parseInt(_0x242c9b(0x19f))/0x5+-parseInt(_0x242c9b(0x15a))/0x6*(parseInt(_0x242c9b(0x12f))/0x7)+parseInt(_0x242c9b(0x19c))/0x8+-parseInt(_0x242c9b(0x1da))/0x9;if(_0x1fc419===_0x2a9234)break;else _0x5d6669['push'](_0x5d6669['shift']());}catch(_0x14c77f){_0x5d6669['push'](_0x5d6669['shift']());}}}(_0x6e62,0xe8266));function _0x6e62(){const _0x56f02c=['axisAlignSheetTransform','sheet.command.set-shape-drawing-data','CHART','getShapeRelation','createShape','sheet.command.insert-shape','command','removeShape','every','None','redos','transferShapeTo','cxnIndex','_drawingManagerService','ensureSkeleton','getAdjustValueByName','insertShape','type','_configService','resizeEnabled','GRID','hidden','_planDeletes','result','map','onCommandExecute','find','_shapeService','6sNqMfG','createFormulaLastValueMutation','_instanceService','getBasicShapeRelation','147qtDkPE','_arrange','forward','decorate','_sheetInterceptorService','keys','_injector','pluginName','top','params','UNIVER_SHEET','listShapes','INSERT','setConfig','has','getShapeData','sheet.mutation.insert-shape','from','getDrawingByParam','transform','function','disposeWithMe','unitId','front','getShapeModel','deletes','flipX','_groupIds','getShapeDataById','getSkeleton','forEach','packageName','entries','parse','getBasicShapeType','_shapeAdapter','getBatchUpdateOp','registerCommand','rotation','shapeChanged$','rehostShape','_sheetSkeletonService','sheet.command.update-connector-relation','_resourcesManagerService','getLineShapeRelation','relation','DRAWING_SHAPE','getShapeDisplayNames','getOwnPropertyDescriptor','push','formula','drawings','getName','updateShape','_planConnector','shapeData','fill','angle','clear','setShapeType','values','sin','4228624yEPaPa','get','getShapeType','2637435vHCjUF','constructor','filter','interceptCommand','description','toJSON','_shapes','getConnectionSiteList','startX','length','prototype','hasShape','rotateEnabled','deepClone','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getSheetId','pushUndoRedo','position','mode','name','backward','height','skeleton','updates','preRedos','_getConnectPointInfo','SHEET_SHAPE_PLUGIN','_getDrawingUpdates','worldRect','isFinite','getShape','lineShapeId','setZOrder','getShapeTextData','_commandService','drawingId','UPDATE','borderEnabled','sendBackward','48876tMLhDS','REMOVE','_addLineRerouteUpdates','bringToFront','version','getUnit','width','visible','_deserializeShapeForUnit','sheet.command.set-shape-rotate','delete','register','getDrawingData','_resolveBinding','left','subUnitId','lineType','onCommandExecuted','getEndConnectInfo','getConfig','5684148voiFWF','1.5.0','ang','object','originals','set','updateContext','_initCommands','MUTATION','dispose','_toSnapshot','getId','_shapeHostAdapterRegistry','745978zCPzIV','getStartConnectInfo','kind','setShapeData','undos','_linesIds','Both','adjustValues','sheets-shape.config','drawingType','_shapeModelManagerMap','_ensureShapeModelManager','onStarting','cos','isHorizontal','fromJSON','symbol','add','sheet.mutation.remove-shape','_addLineFollowShapeUpdates','getSheets','defineProperty','_initCommandInterceptor','data','sendToBack','selectable','_sheetsShapeService','_drawingService','startY','@univerjs-pro/sheets-shape','flipY','preUndos','shapeId','3613414ccqaAd','_initSnapshot','string','getBatchAddOp','shapeType','addShape','COMMAND','syncExecuteCommand','isFrom','1125849ftCBle','formulaBinding','getAdjustNames','_applyUpdate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','range'];_0x6e62=function(){return _0x56f02c;};return _0x6e62();}import{IShapeHostAdapterRegistry as _0x26e807,ShapeModel as _0x3e1cf5,UniverShapePlugin as _0x2d662f,buildConnectorEndpointUpdate as _0x39a6f1,canApplyShapeFormulaLastValue as _0x5cebb4,computeConnectorRouteLayout as _0x20b01f,createDefaultInsertedShapeData as _0x2169ba,createFreeConnectorPointInfo as _0x21057d,createUniqueShapeName as _0x4ff467,getBasicShapeRotateBound as _0x29238b,isConnectorShape as _0x10aa10,resolveConnectorRoutePoints as _0x2536c2,resolveShapeConnectionPoint as _0x150c8e,routeConnectorLineShape as _0x19932a}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x22aed2,CommandType as _0x4e919d,DependentOn as _0x4f8586,Disposable as _0x1b1f35,DrawingTypeEnum as _0x1b1709,ICommandService as _0x1220c4,IConfigService as _0x121a34,IResourceManagerService as _0x35f035,IUndoRedoService as _0x3626df,IUniverInstanceService as _0x2543b8,Inject as _0x9e5ef9,Injector as _0x28f5b9,Plugin as _0x543854,SheetTypes as _0x52a118,Tools as _0x56bc3c,UniverInstanceType as _0x32e2b1,generateRandomId as _0x34af8c,merge as _0x13580a,sequenceExecute as _0x5c6377,touchDependencies as _0x5e640a}from'@univerjs/core';import{SheetInterceptorService as _0x4c2afb,SheetSkeletonService as _0x32f773,UniverSheetsPlugin as _0x5b96cb,getSheetCommandTarget as _0x483059}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x5bdc79,DrawingApplyType as _0x2c701a,ISheetDrawingService as _0x5f3711,InsertSheetDrawingCommand as _0x3f8f5f,RemoveSheetDrawingCommand as _0x52d128,SetDrawingApplyMutation as _0xa539c0,SetDrawingArrangeCommand as _0x51e055,SetSheetDrawingCommand as _0x57d0bf,SetSheetDrawingPlacementCommand as _0xede2d4,SheetDrawingAnchorType as _0x105b85,SheetDrawingTransformPlanService as _0x1cf727,UniverSheetsDrawingPlugin as _0x5ad029,applySheetDrawingPlacement as _0x506f27,transformToAxisAlignPosition as _0x2d2bb4,transformToDrawingPosition as _0x3b3677}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x52e3ac}from'@univerjs-pro/license';import{IDrawingManagerService as _0x410964,UniverDrawingPlugin as _0xa332b5}from'@univerjs/drawing';function _0x2588(_0x46bc4e,_0x426019){_0x46bc4e=_0x46bc4e-0x11e;const _0x6e6291=_0x6e62();let _0x2588aa=_0x6e6291[_0x46bc4e];return _0x2588aa;}const oe=0xc8,se=0xc8;function ce(_0x30e5f7){'@babel/helpers - typeof';const _0x4a6c92=_0x2588;return ce=typeof Symbol==_0x4a6c92(0x172)&&typeof Symbol['iterator']==_0x4a6c92(0x11e)?function(_0x483d1a){return typeof _0x483d1a;}:function(_0x1d18a6){const _0x5074eb=_0x4a6c92;return _0x1d18a6&&typeof Symbol==_0x5074eb(0x172)&&_0x1d18a6[_0x5074eb(0x1a0)]===Symbol&&_0x1d18a6!==Symbol[_0x5074eb(0x1a9)]?_0x5074eb(0x11e):typeof _0x1d18a6;},ce(_0x30e5f7);}function le(_0x222cf9,_0x1b5cf1){const _0x4877cd=_0x2588;if(ce(_0x222cf9)!=_0x4877cd(0x1dd)||!_0x222cf9)return _0x222cf9;var _0x5ab897;if(typeof Symbol<'u'&&(_0x5ab897=_0x222cf9[Symbol['toPrimitive']])!==void 0x0){var _0x2dea99=_0x5ab897['call'](_0x222cf9,_0x1b5cf1||'default');if(ce(_0x2dea99)!='object')return _0x2dea99;throw TypeError(_0x4877cd(0x13c));}return(_0x1b5cf1===_0x4877cd(0x131)?String:Number)(_0x222cf9);}function ue(_0x385692){const _0x2c4242=_0x2588;var _0x41eb79=le(_0x385692,'string');return ce(_0x41eb79)==_0x2c4242(0x11e)?_0x41eb79:_0x41eb79+'';}function X(_0x27e95a,_0x292c44,_0x327181){const _0x3e349f=_0x2588;return(_0x292c44=ue(_0x292c44))in _0x27e95a?Object[_0x3e349f(0x123)](_0x27e95a,_0x292c44,{'value':_0x327181,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27e95a[_0x292c44]=_0x327181,_0x27e95a;}var de=class extends _0x1b1f35{constructor(){const _0x3cbc68=_0x2588;super(),X(this,_0x3cbc68(0x1a5),new Map()),X(this,_0x3cbc68(0x1ec),new Set()),X(this,_0x3cbc68(0x179),new Set());}['addShape'](_0x3bddbd,_0x19347e,_0x1b557b,_0x3b0b2f){const _0x5261f6=_0x2588;let _0xdc4dee=new _0x3e1cf5(_0x3bddbd,_0x19347e,_0x1b557b,_0x3b0b2f);return this[_0x5261f6(0x1a5)][_0x5261f6(0x1df)](_0x19347e,_0xdc4dee),_0x10aa10(_0x3bddbd)&&this[_0x5261f6(0x1ec)][_0x5261f6(0x11f)](_0x19347e),_0xdc4dee;}[_0x225b1f(0x15d)](_0x233dd1){const _0x8b42aa=_0x225b1f;let _0x3fed1e=[];for(let _0x39dd5d of this['_linesIds']){let _0x3f63ae=this[_0x8b42aa(0x1a5)]['get'](_0x39dd5d);if(_0x3f63ae){let _0x688c39=_0x3f63ae[_0x8b42aa(0x141)]();if(_0x688c39){var _0xcd7d37,_0x2179f0;((_0xcd7d37=_0x688c39[_0x8b42aa(0x16f)])==null?void 0x0:_0xcd7d37['shapeId'])===_0x233dd1&&_0x3fed1e[_0x8b42aa(0x18f)]({..._0x688c39['from'],'lineShapeId':_0x39dd5d,'isFrom':!0x0}),((_0x2179f0=_0x688c39['to'])==null?void 0x0:_0x2179f0['shapeId'])===_0x233dd1&&_0x3fed1e[_0x8b42aa(0x18f)]({..._0x688c39['to'],'lineShapeId':_0x39dd5d,'isFrom':!0x1});}}}return _0x3fed1e;}[_0x225b1f(0x18a)](_0x549d5f){const _0x593be0=_0x225b1f;let _0x5d13a4=this[_0x593be0(0x1a5)][_0x593be0(0x19d)](_0x549d5f);if(_0x5d13a4)return _0x5d13a4[_0x593be0(0x141)]();}[_0x225b1f(0x19e)](_0x17b530){const _0x466333=_0x225b1f;let _0x2bb127=this['_shapes'][_0x466333(0x19d)](_0x17b530);if(_0x2bb127)return _0x2bb127[_0x466333(0x19e)]();}[_0x225b1f(0x1aa)](_0x384704){const _0x1e3832=_0x225b1f;return this[_0x1e3832(0x1a5)][_0x1e3832(0x16c)](_0x384704);}['getShapeDisplayNames'](){const _0x18f965=_0x225b1f;return Array[_0x18f965(0x16f)](this[_0x18f965(0x1a5)]['values']())[_0x18f965(0x156)](_0x233003=>_0x233003[_0x18f965(0x192)]()||_0x233003[_0x18f965(0x1e5)]());}[_0x225b1f(0x149)](_0x294e86,_0x20e499){const _0x39431f=_0x225b1f;let _0x5a8ef7=this[_0x39431f(0x1a5)][_0x39431f(0x19d)](_0x20e499);return!_0x5a8ef7||_0x294e86['hasShape'](_0x20e499)?!0x1:(this[_0x39431f(0x145)](_0x20e499),_0x294e86[_0x39431f(0x1a5)][_0x39431f(0x1df)](_0x20e499,_0x5a8ef7),_0x10aa10(_0x5a8ef7[_0x39431f(0x19e)]())&&_0x294e86[_0x39431f(0x1ec)][_0x39431f(0x11f)](_0x20e499),!0x0);}[_0x225b1f(0x145)](_0x276546){const _0x15a98c=_0x225b1f;let _0xf07f03=this[_0x15a98c(0x1a5)]['get'](_0x276546);_0xf07f03&&(_0x10aa10(_0xf07f03[_0x15a98c(0x19e)]())&&this[_0x15a98c(0x1ec)][_0x15a98c(0x1d0)](_0x276546),this[_0x15a98c(0x1a5)][_0x15a98c(0x1d0)](_0x276546));}[_0x225b1f(0x1a4)](){const _0x4fa41d=_0x225b1f;let _0x5be7f8=[];return this[_0x4fa41d(0x1a5)][_0x4fa41d(0x17c)](_0x4ee4e1=>{const _0x52a815=_0x4fa41d;_0x5be7f8[_0x52a815(0x18f)](_0x4ee4e1[_0x52a815(0x1a4)]());}),_0x5be7f8;}[_0x225b1f(0x1f6)](_0x4c5a42){const _0xc5379c=_0x225b1f;for(let _0x3e7ab6 of _0x4c5a42){let {id:_0x39061a,shapeType:_0x26b78c,name:_0x43ccea}=_0x3e7ab6,_0x2d49fd=this[_0xc5379c(0x134)](_0x26b78c,_0x39061a,_0x3e7ab6[_0xc5379c(0x195)],_0x43ccea);_0x2d49fd&&_0x2d49fd['isLineShape']()&&this[_0xc5379c(0x1ec)][_0xc5379c(0x11f)](_0x39061a);}}[_0x225b1f(0x1e3)](){const _0x396ab6=_0x225b1f;this['_disposed']||(this[_0x396ab6(0x1a5)]['forEach'](_0x5b7d68=>{_0x5b7d68['dispose']();}),this[_0x396ab6(0x1a5)][_0x396ab6(0x198)](),this[_0x396ab6(0x1ec)]['clear'](),this['_groupIds'][_0x396ab6(0x198)](),super[_0x396ab6(0x1e3)]());}};function Z(_0x1eabc4,_0x4e03ca){return function(_0x483c47,_0x5f0146){_0x4e03ca(_0x483c47,_0x5f0146,_0x1eabc4);};}function fe(_0x1c2c90,_0x54cec6,_0x1c9e56,_0x17fda6){const _0x222109=_0x225b1f;var _0x3ba272=arguments['length'],_0x4e66a5=_0x3ba272<0x3?_0x54cec6:_0x17fda6===null?_0x17fda6=Object[_0x222109(0x18e)](_0x54cec6,_0x1c9e56):_0x17fda6,_0x577a9e;if(typeof Reflect=='object'&&typeof Reflect[_0x222109(0x161)]==_0x222109(0x172))_0x4e66a5=Reflect['decorate'](_0x1c2c90,_0x54cec6,_0x1c9e56,_0x17fda6);else{for(var _0xe59129=_0x1c2c90[_0x222109(0x1a8)]-0x1;_0xe59129>=0x0;_0xe59129--)(_0x577a9e=_0x1c2c90[_0xe59129])&&(_0x4e66a5=(_0x3ba272<0x3?_0x577a9e(_0x4e66a5):_0x3ba272>0x3?_0x577a9e(_0x54cec6,_0x1c9e56,_0x4e66a5):_0x577a9e(_0x54cec6,_0x1c9e56))||_0x4e66a5);}return _0x3ba272>0x3&&_0x4e66a5&&Object[_0x222109(0x123)](_0x54cec6,_0x1c9e56,_0x4e66a5),_0x4e66a5;}let Q=class extends _0x1b1f35{constructor(_0x40d24e){const _0x4ccc34=_0x225b1f;super(),this['_resourcesManagerService']=_0x40d24e,X(this,_0x4ccc34(0x1f1),new Map()),this[_0x4ccc34(0x130)]();}[_0x225b1f(0x1f2)](_0x487b29,_0x2f51c0){const _0x195b7b=_0x225b1f;let _0x6c03d5=this[_0x195b7b(0x1f1)][_0x195b7b(0x19d)](_0x487b29);_0x6c03d5||(_0x6c03d5=new Map(),this[_0x195b7b(0x1f1)]['set'](_0x487b29,_0x6c03d5));let _0x396674=_0x6c03d5[_0x195b7b(0x19d)](_0x2f51c0);return _0x396674||(_0x396674=new de(),_0x6c03d5['set'](_0x2f51c0,_0x396674)),_0x396674;}[_0x225b1f(0x14e)](_0x395d85,_0x20ef20,_0x8cada7,_0x2fa691,_0x38f531,_0x20b77b){const _0x321569=_0x225b1f;this['_ensureShapeModelManager'](_0x395d85,_0x20ef20)[_0x321569(0x134)](_0x8cada7,_0x2fa691,_0x38f531,_0x20b77b);}[_0x225b1f(0x186)](_0x346024,_0x29c307,_0xdcecb4,_0x2714de){const _0x4cb31c=_0x225b1f;var _0x383acc;let _0xd285ad=(_0x383acc=this[_0x4cb31c(0x1f1)][_0x4cb31c(0x19d)](_0x346024))==null?void 0x0:_0x383acc[_0x4cb31c(0x19d)](_0x29c307);return!_0xd285ad||_0x29c307===_0xdcecb4?!0x1:_0xd285ad[_0x4cb31c(0x149)](this[_0x4cb31c(0x1f2)](_0x346024,_0xdcecb4),_0x2714de);}[_0x225b1f(0x145)](_0x2c40d8,_0x542187,_0x23e188){const _0x49a3aa=_0x225b1f;this[_0x49a3aa(0x1f2)](_0x2c40d8,_0x542187)['removeShape'](_0x23e188);}[_0x225b1f(0x180)](_0x552d27,_0x6ab3de,_0x4526d8){const _0xce189e=_0x225b1f;return this[_0xce189e(0x1f2)](_0x552d27,_0x6ab3de)['getShapeType'](_0x4526d8);}[_0x225b1f(0x19e)](_0x4c654b,_0x1a07f0,_0x4d096c){const _0x151b63=_0x225b1f;return this[_0x151b63(0x1f2)](_0x4c654b,_0x1a07f0)[_0x151b63(0x19e)](_0x4d096c);}['hasShape'](_0x1462ea,_0x161e27,_0xff720){const _0x351e17=_0x225b1f;return this['_ensureShapeModelManager'](_0x1462ea,_0x161e27)[_0x351e17(0x1aa)](_0xff720);}['getShapeTypeById'](_0x3b005e,_0x1e4cbd,_0xd75998){const _0x16fbda=_0x225b1f;return this[_0x16fbda(0x1f2)](_0x3b005e,_0x1e4cbd)[_0x16fbda(0x19e)](_0xd75998);}['getShapeDataById'](_0x4e8f19,_0x5a3c63,_0x26000f){const _0x131546=_0x225b1f;let _0x259750=this[_0x131546(0x1f2)](_0x4e8f19,_0x5a3c63);if(!_0x259750[_0x131546(0x19e)](_0x26000f))return;let _0x3bc0f1=_0x259750['_shapes'][_0x131546(0x19d)](_0x26000f);if(_0x3bc0f1)return _0x3bc0f1[_0x131546(0x16d)]();}[_0x225b1f(0x18d)](_0x487663,_0x358cdc){const _0x4eb0fc=_0x225b1f;return this[_0x4eb0fc(0x1f2)](_0x487663,_0x358cdc)[_0x4eb0fc(0x18d)]();}[_0x225b1f(0x176)](_0x1a5d3a,_0x199fd0,_0x36edd9){const _0x3cf56b=_0x225b1f;return this[_0x3cf56b(0x1f2)](_0x1a5d3a,_0x199fd0)[_0x3cf56b(0x1a5)][_0x3cf56b(0x19d)](_0x36edd9);}['getBasicShapeRelation'](_0x50ca28,_0x568155,_0x1297a9){const _0x4bba55=_0x225b1f;return this[_0x4bba55(0x1f2)](_0x50ca28,_0x568155)[_0x4bba55(0x15d)](_0x1297a9);}[_0x225b1f(0x18a)](_0x510d97,_0x58bf43,_0x5acd84){const _0x2a995b=_0x225b1f;let _0x3e846a=this[_0x2a995b(0x1f2)](_0x510d97,_0x58bf43)[_0x2a995b(0x1a5)][_0x2a995b(0x19d)](_0x5acd84);if(_0x3e846a)return _0x3e846a[_0x2a995b(0x141)]();}[_0x225b1f(0x199)](){}['_serializeShapeForUnit'](_0xc4ff54){const _0x282fa1=_0x225b1f;let _0x354ad8={},_0x260702=this[_0x282fa1(0x1f1)]['get'](_0xc4ff54);return _0x260702&&_0x260702[_0x282fa1(0x17c)]((_0x31b3e9,_0x287e9a)=>{const _0x2b9553=_0x282fa1;let _0x37b6aa=_0x31b3e9[_0x2b9553(0x1a4)]();_0x37b6aa[_0x2b9553(0x1a8)]>0x0&&(_0x354ad8[_0x287e9a]=_0x37b6aa);}),JSON['stringify'](_0x354ad8);}[_0x225b1f(0x1ce)](_0x477885,_0x71f190){const _0x531689=_0x225b1f;Object[_0x531689(0x163)](_0x71f190)['forEach'](_0x143fce=>{const _0x266c3c=_0x531689;this[_0x266c3c(0x1f2)](_0x477885,_0x143fce)[_0x266c3c(0x1f6)](_0x71f190[_0x143fce]);});}[_0x225b1f(0x1a4)](){const _0x245e30=_0x225b1f;let _0x4f57f2={};return this[_0x245e30(0x1f1)][_0x245e30(0x17c)]((_0x197e34,_0x30efa7)=>{_0x4f57f2[_0x30efa7]={},_0x197e34['forEach']((_0x1589ed,_0x542ac5)=>{_0x4f57f2[_0x30efa7][_0x542ac5]=_0x1589ed['toJSON']();});}),_0x4f57f2;}[_0x225b1f(0x1f6)](_0x5a7295){const _0x570574=_0x225b1f;Object[_0x570574(0x163)](_0x5a7295)[_0x570574(0x17c)](_0x229ecd=>{const _0x1dd67c=_0x570574;let _0x32a699=_0x5a7295[_0x229ecd];Object['keys'](_0x32a699)[_0x1dd67c(0x17c)](_0x291dc0=>{const _0x2536ee=_0x1dd67c;this[_0x2536ee(0x1f2)](_0x229ecd,_0x291dc0)[_0x2536ee(0x1f6)](_0x32a699[_0x291dc0]);});});}[_0x225b1f(0x130)](){const _0x12b52b=_0x225b1f;this[_0x12b52b(0x189)]['registerPluginResource']({'pluginName':_0x12b52b(0x1b9),'businesses':[_0x32e2b1[_0x12b52b(0x168)]],'toJson':_0x3f8e81=>this['_serializeShapeForUnit'](_0x3f8e81),'parseJson':_0x5da1e0=>JSON[_0x12b52b(0x17f)](_0x5da1e0),'onLoad':(_0x1eca70,_0x5dc85d)=>{const _0x2db846=_0x12b52b;this[_0x2db846(0x1ce)](_0x1eca70,_0x5dc85d);},'onUnLoad':_0x2b2246=>{const _0x3df784=_0x12b52b;let _0x147188=this[_0x3df784(0x1f1)][_0x3df784(0x19d)](_0x2b2246);_0x147188&&(_0x147188['forEach'](_0x87f632=>{const _0x2e08cc=_0x3df784;_0x87f632[_0x2e08cc(0x1e3)]();}),this[_0x3df784(0x1f1)][_0x3df784(0x1d0)](_0x2b2246));}});}['dispose'](){const _0x4da379=_0x225b1f;this[_0x4da379(0x1f1)][_0x4da379(0x17c)](_0x14edb4=>{const _0x1979f5=_0x4da379;_0x14edb4[_0x1979f5(0x17c)](_0x586129=>{const _0x2b9447=_0x1979f5;_0x586129[_0x2b9447(0x1e3)]();});});}};Q=fe([Z(0x0,_0x35f035)],Q);const pe={'id':_0x225b1f(0x16e),'type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0x52f2a7,_0x3534ad)=>{const _0x507dd8=_0x225b1f;let {unitId:_0x31b3cd,subUnitId:_0x1aec7c,shapeType:_0x48be5b,shapeId:_0x5b6d5e,shapeName:_0x3f7795,shapeData:_0x1a5532}=_0x3534ad;return _0x52f2a7[_0x507dd8(0x19d)](Q)['insertShape'](_0x31b3cd,_0x1aec7c,_0x48be5b,_0x5b6d5e,_0x56bc3c[_0x507dd8(0x1ac)](_0x1a5532),_0x3f7795),!0x0;}},me={'id':_0x225b1f(0x120),'type':_0x4e919d['MUTATION'],'handler':(_0x11ed09,_0x2c6379)=>{let {unitId:_0x47cc1b,subUnitId:_0x2ef336,shapeId:_0x349de1}=_0x2c6379;return _0x11ed09['get'](Q)['removeShape'](_0x47cc1b,_0x2ef336,_0x349de1),!0x0;}},he={'type':_0x4e919d['COMMAND'],'id':_0x225b1f(0x143),'handler':(_0x139bb6,_0x4e96fc)=>{const _0xef97c5=_0x225b1f;let _0x102558=_0x483059(_0x139bb6[_0xef97c5(0x19d)](_0x2543b8),_0x4e96fc);if(!_0x102558)return!0x1;let {unitId:_0x9d3b66,subUnitId:_0x48e83a,worksheet:_0x3a4bca}=_0x102558,_0x1ae62d=_0x3a4bca[_0xef97c5(0x1d9)]()[_0xef97c5(0x14f)]??_0x52a118['GRID'],_0x1193bb=_0x1ae62d===_0x52a118[_0xef97c5(0x140)];if(!_0x1193bb&&_0x1ae62d!==_0x52a118[_0xef97c5(0x152)])return!0x1;let _0x204528=_0x1193bb?void 0x0:_0x139bb6[_0xef97c5(0x19d)](_0x32f773)[_0xef97c5(0x14c)](_0x9d3b66,_0x48e83a);if(!_0x1193bb&&!_0x204528)return!0x1;let _0x42d054=_0x1193bb?_0x4e96fc[_0xef97c5(0x1cc)]??0xc8:_0x4e96fc[_0xef97c5(0x1cc)]||0xc8,_0x371758=_0x1193bb?_0x4e96fc[_0xef97c5(0x1b4)]??0xc8:_0x4e96fc[_0xef97c5(0x1b4)]||0xc8,{position:_0x3f010e}=_0x4e96fc;if(_0x1193bb&&(!Number[_0xef97c5(0x1bc)](_0x42d054)||!Number[_0xef97c5(0x1bc)](_0x371758)||_0x42d054<=0x0||_0x371758<=0x0||_0x3f010e&&(!Number[_0xef97c5(0x1bc)](_0x3f010e['x'])||!Number['isFinite'](_0x3f010e['y']))))return!0x1;let _0x553d93=_0x139bb6[_0xef97c5(0x19d)](_0x1220c4),_0x179833=_0x139bb6['get'](_0x3626df),_0x289ff7=_0x139bb6['get'](_0x4c2afb),_0x6e31ac=_0x139bb6['get'](_0x5f3711),_0x56d31e=_0x139bb6[_0xef97c5(0x19d)](Q),{shapeType:_0x31b8ac}=_0x4e96fc,_0x34d4ac=_0x4e96fc['shapeData']??_0x2169ba(_0x31b8ac),_0xc6a6eb=_0x4e96fc[_0xef97c5(0x12e)]||_0x34af8c(),_0x5052dd={'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'shapeId':_0xc6a6eb,'shapeName':_0x4e96fc['shapeName']??_0x4ff467(_0x31b8ac,_0x56d31e[_0xef97c5(0x18d)](_0x9d3b66,_0x48e83a)),'shapeType':_0x31b8ac,'shapeData':_0x34d4ac},_0x580a0b=0x0,_0x1cc07f=0x0;if(_0x4e96fc[_0xef97c5(0x1b0)]){let {x:_0x1e5e8d,y:_0x4d1b14}=_0x4e96fc[_0xef97c5(0x1b0)];_0x580a0b=_0x1e5e8d,_0x1cc07f=_0x4d1b14;}else{if(_0x4e96fc[_0xef97c5(0x13d)]&&_0x204528){let {startRow:_0x1395a7,startColumn:_0x219a02}=_0x4e96fc[_0xef97c5(0x13d)],_0x159622=_0x204528['getCellWithCoordByIndex'](_0x1395a7,_0x219a02);_0x580a0b=_0x159622[_0xef97c5(0x1a7)]+0xa,_0x1cc07f=_0x159622[_0xef97c5(0x12a)]+0xa;}}let _0x1bb09d={'left':_0x580a0b,'top':_0x1cc07f,'width':_0x42d054,'height':_0x371758,'angle':_0x4e96fc[_0xef97c5(0x184)]??0x0,'flipX':_0x4e96fc[_0xef97c5(0x178)]??!0x1,'flipY':_0x4e96fc[_0xef97c5(0x12c)]??!0x1},_0x2825a5={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x57ed61=_0x204528?_0x3b3677(_0x1bb09d,_0x204528):{'from':_0x2825a5,'to':_0x2825a5},_0x46785d=_0x204528?_0x2d2bb4(_0x1bb09d,_0x204528):_0x57ed61,_0x1c5163={'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'drawingId':_0xc6a6eb,'drawingType':_0x1b1709[_0xef97c5(0x18c)],'anchorType':_0x105b85[_0xef97c5(0x1ed)],'name':_0x4e96fc['name'],'description':_0x4e96fc[_0xef97c5(0x1a3)],'sheetTransform':_0x57ed61,'transform':_0x1bb09d,'data':{'shapeType':_0x31b8ac,'shapeData':_0x34d4ac},'axisAlignSheetTransform':_0x46785d,'allowTransform':!0x0,'hidden':_0x4e96fc[_0xef97c5(0x1cd)]===!0x1,'selectable':_0x4e96fc[_0xef97c5(0x127)]??!0x0};if(_0x1193bb){let _0x2ab7b3=_0x506f27(_0x1c5163,{'kind':_0x105b85['None'],'left':_0x580a0b,'top':_0x1cc07f,'width':_0x42d054,'height':_0x371758});_0x1c5163={..._0x1c5163,'anchorType':_0x2ab7b3['anchorType'],'transform':_0x2ab7b3[_0xef97c5(0x171)],'sheetTransform':_0x2ab7b3['sheetTransform'],'axisAlignSheetTransform':_0x2ab7b3[_0xef97c5(0x13e)]};}_0x10aa10(_0x31b8ac)&&(_0x1c5163[_0xef97c5(0x125)][_0xef97c5(0x196)]=!0x1,_0x1c5163[_0xef97c5(0x125)]['rotateEnabled']=!0x1,_0x1c5163[_0xef97c5(0x125)]['resizeEnabled']=!0x1,_0x1c5163[_0xef97c5(0x125)][_0xef97c5(0x1c4)]=!0x1,_0x1c5163[_0xef97c5(0x171)][_0xef97c5(0x1ab)]=!0x1,_0x1c5163['transform'][_0xef97c5(0x151)]=!0x1,_0x1c5163['transform'][_0xef97c5(0x1c4)]=!0x1);let {undo:_0x5b951f,redo:_0x71f608,objects:_0x33aa85}=_0x6e31ac[_0xef97c5(0x132)]([_0x1c5163]),_0x313a36=_0x289ff7[_0xef97c5(0x157)]({'id':_0x3f8f5f['id'],'params':{'unitId':_0x9d3b66,'drawings':[_0x1c5163]}}),_0x344e4a=[..._0x313a36['preRedos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'op':_0x71f608,'objects':_0x33aa85,'type':_0x2c701a[_0xef97c5(0x16a)]}},{'id':_0x5bdc79['id'],'params':[_0x9d3b66]},..._0x313a36[_0xef97c5(0x148)],{'id':pe['id'],'params':_0x5052dd}],_0x49eb48=[{'id':me['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'shapeId':_0xc6a6eb}},..._0x313a36['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'op':_0x5b951f,'objects':_0x33aa85,'type':_0x2c701a[_0xef97c5(0x1c7)]}},{'id':_0x5bdc79['id'],'params':[_0x9d3b66]},..._0x313a36[_0xef97c5(0x1eb)]];return _0x5c6377(_0x344e4a,_0x553d93)['result']?(_0x179833[_0xef97c5(0x1af)]({'unitID':_0x9d3b66,'undoMutations':_0x49eb48,'redoMutations':_0x344e4a}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0x230c66,_0x116d35)=>{const _0x51d824=_0x225b1f;let {unitId:_0x4a190f,subUnitId:_0x4e0ad2,shapeType:_0x1a416f,shapeId:_0x5be7ff,shapeData:_0x4776b9,replace:_0x29e4ff,formulaLastValueGuard:_0x24b848}=_0x116d35,_0x37e9c6=_0x230c66[_0x51d824(0x19d)](Q)['getShapeModel'](_0x4a190f,_0x4e0ad2,_0x5be7ff);if(_0x37e9c6){var _0x177bdd;if(!_0x5cebb4(_0x230c66,{'hostType':_0x32e2b1[_0x51d824(0x168)],'unitId':_0x4a190f,'subUnitId':_0x4e0ad2,'shapeId':_0x5be7ff},(_0x177bdd=_0x37e9c6[_0x51d824(0x16d)]()[_0x51d824(0x139)])==null?void 0x0:_0x177bdd[_0x51d824(0x190)],_0x24b848))return!0x0;_0x1a416f!==void 0x0&&_0x37e9c6[_0x51d824(0x199)](_0x1a416f),_0x4776b9&&(_0x37e9c6==null||_0x37e9c6[_0x51d824(0x1ea)](_0x56bc3c[_0x51d824(0x1ac)](_0x4776b9),!_0x29e4ff));}return!0x0;}},ge={'type':_0x4e919d['COMMAND'],'id':_0x225b1f(0x13f),'handler':(_0x568e52,_0x2e1efc)=>{const _0x31b086=_0x225b1f;let _0x2811a7=_0x483059(_0x568e52['get'](_0x2543b8),_0x2e1efc);if(!_0x2811a7)return!0x1;let _0x555941=_0x568e52[_0x31b086(0x19d)](_0x32f773),{unitId:_0x46bf89,subUnitId:_0x34ab79}=_0x2811a7,_0x388d42=_0x555941['ensureSkeleton'](_0x46bf89,_0x34ab79);if(!_0x388d42)return!0x1;let _0xf7a617=_0x568e52[_0x31b086(0x19d)](Q),{shapeId:_0x397f46,shapeType:_0x3401f5,shapeData:_0x47efe4,position:_0x4bb77b,width:_0x46e26d,height:_0x225a0f}=_0x2e1efc,_0x17d489=_0xf7a617[_0x31b086(0x176)](_0x46bf89,_0x34ab79,_0x397f46);if(!_0x17d489)return!0x1;let _0x14c541=_0x568e52[_0x31b086(0x19d)](_0x1220c4),_0x2e2373=_0x568e52['get'](_0x3626df),_0x5b7859=_0x568e52[_0x31b086(0x19d)](_0x4c2afb),_0x3ee74c=_0x568e52['get'](_0x5f3711),_0x53f96e={'unitId':_0x46bf89,'subUnitId':_0x34ab79,'shapeId':_0x397f46,'shapeType':_0x3401f5,'shapeData':_0x47efe4,'replace':!0x0},_0x1e7fee=_0x17d489[_0x31b086(0x19e)](),_0x426bf5=_0x17d489[_0x31b086(0x16d)](),{x:_0x174522,y:_0x443bdb}=_0x4bb77b,_0x608629={'left':_0x174522,'top':_0x443bdb,'width':_0x46e26d,'height':_0x225a0f,'angle':_0x2e1efc[_0x31b086(0x184)]??0x0,'flipX':_0x2e1efc[_0x31b086(0x178)]??!0x1,'flipY':_0x2e1efc[_0x31b086(0x12c)]??!0x1},_0x4148c4=_0x3b3677(_0x608629,_0x388d42),_0x1b090e=_0x2d2bb4(_0x608629,_0x388d42),_0x5be16d={'unitId':_0x46bf89,'subUnitId':_0x34ab79,'drawingId':_0x397f46,'drawingType':_0x1b1709[_0x31b086(0x18c)],'name':_0x2e1efc[_0x31b086(0x1b2)],'description':_0x2e1efc['description'],'sheetTransform':_0x4148c4,'transform':_0x608629,'data':{'shapeType':_0x3401f5,'shapeData':_0x47efe4},'axisAlignSheetTransform':_0x1b090e,'allowTransform':!0x0,'hidden':!_0x2e1efc[_0x31b086(0x1cd)],'selectable':_0x2e1efc['selectable']};_0x10aa10(_0x3401f5)&&(_0x5be16d[_0x31b086(0x125)][_0x31b086(0x196)]=!0x1,_0x5be16d[_0x31b086(0x125)]['rotateEnabled']=!0x1,_0x5be16d[_0x31b086(0x125)][_0x31b086(0x151)]=!0x1,_0x5be16d[_0x31b086(0x125)]['borderEnabled']=!0x1,_0x5be16d['transform'][_0x31b086(0x1ab)]=!0x1,_0x5be16d[_0x31b086(0x171)]['resizeEnabled']=!0x1,_0x5be16d['transform'][_0x31b086(0x1c4)]=!0x1);let {undo:_0x1e68cb,redo:_0x4f0590,objects:_0x15682c}=_0x3ee74c['getBatchUpdateOp']([_0x5be16d]),_0x376b4f=_0x5b7859[_0x31b086(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x46bf89,'drawings':[_0x5be16d]}}),_0x512401=[..._0x376b4f[_0x31b086(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'op':_0x4f0590,'objects':_0x15682c,'type':_0x2c701a[_0x31b086(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x46bf89]},..._0x376b4f[_0x31b086(0x148)],{'id':$['id'],'params':_0x53f96e}],_0x4c1cfc=[..._0x376b4f[_0x31b086(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'op':_0x1e68cb,'objects':_0x15682c,'type':_0x2c701a[_0x31b086(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x46bf89]},..._0x376b4f[_0x31b086(0x1eb)],{'id':$['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'shapeType':_0x1e7fee,'shapeId':_0x397f46,'shapeData':_0x426bf5,'replace':!0x0}}];return _0x5c6377(_0x512401,_0x14c541)['result']?(_0x2e2373[_0x31b086(0x1af)]({'unitID':_0x46bf89,'undoMutations':_0x4c1cfc,'redoMutations':_0x512401}),!0x0):!0x1;}},_e={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.toggle-shape-flip','handler':(_0x46a1ba,_0x2327c4)=>{const _0x50a91f=_0x225b1f;let _0x26d24d=_0x483059(_0x46a1ba[_0x50a91f(0x19d)](_0x2543b8),_0x2327c4);if(!_0x26d24d)return!0x1;let _0x5d3229=_0x46a1ba[_0x50a91f(0x19d)](_0x32f773),{unitId:_0xb269ce,subUnitId:_0xeca1b3}=_0x26d24d,_0x58c3d4=_0x5d3229[_0x50a91f(0x17b)](_0xb269ce,_0xeca1b3);if(!_0x58c3d4)return!0x1;let _0xb9a7be=_0x46a1ba['get'](_0x5f3711),{shapeId:_0x1fa7d3,flipH:_0x5ecf28,flipV:_0x57135d}=_0x2327c4,_0x36fa9b=_0xb9a7be[_0x50a91f(0x170)]({'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'drawingId':_0x1fa7d3});if(!_0x36fa9b)return!0x1;let _0x46f0b8=_0x46a1ba[_0x50a91f(0x19d)](Q)[_0x50a91f(0x176)](_0xb269ce,_0xeca1b3,_0x1fa7d3);if(!_0x46f0b8)return!0x1;let _0x355689=_0x46a1ba['get'](_0x1220c4),_0x33b380=_0x46a1ba[_0x50a91f(0x19d)](_0x3626df),_0x361d97=_0x46a1ba[_0x50a91f(0x19d)](_0x4c2afb),_0xfaef0f={..._0x36fa9b['transform']};_0x5ecf28!==void 0x0&&(_0xfaef0f[_0x50a91f(0x178)]=!_0xfaef0f[_0x50a91f(0x178)]),_0x57135d!==void 0x0&&(_0xfaef0f[_0x50a91f(0x12c)]=!_0xfaef0f[_0x50a91f(0x12c)]);let _0x27bdb3=_0x3b3677(_0xfaef0f,_0x58c3d4),_0x9c3783=_0x2d2bb4(_0xfaef0f,_0x58c3d4),_0x24585d=_0x46f0b8[_0x50a91f(0x19e)](),_0x2942dd=_0x46f0b8[_0x50a91f(0x16d)](),_0x196302={'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'drawingId':_0x1fa7d3,'drawingType':_0x1b1709[_0x50a91f(0x18c)],'sheetTransform':_0x27bdb3,'transform':_0xfaef0f,'data':{'shapeType':_0x24585d,'shapeData':_0x2942dd},'axisAlignSheetTransform':_0x9c3783,'allowTransform':!0x0},{undo:_0x20fb15,redo:_0x25237d,objects:_0x54906c}=_0xb9a7be[_0x50a91f(0x182)]([_0x196302]),_0x5d8801=_0x361d97['onCommandExecute']({'id':_0x57d0bf['id'],'params':{'unitId':_0xb269ce,'drawings':[_0x196302]}}),_0x43f64d=[..._0x5d8801[_0x50a91f(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'op':_0x25237d,'objects':_0x54906c,'type':_0x2c701a['UPDATE']}},{'id':_0x5bdc79['id'],'params':[_0xb269ce]},..._0x5d8801[_0x50a91f(0x148)]],_0x72680e=[..._0x5d8801['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'op':_0x20fb15,'objects':_0x54906c,'type':_0x2c701a[_0x50a91f(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0xb269ce]},..._0x5d8801[_0x50a91f(0x1eb)]];if(_0x10aa10(_0x24585d)){let _0x2aba0c=_0x46f0b8[_0x50a91f(0x141)]();if(_0x2aba0c){let _0x269213={..._0x2aba0c};_0x269213[_0x50a91f(0x16f)]=void 0x0,_0x269213['to']=void 0x0,_0x43f64d[_0x50a91f(0x18f)]({'id':$['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'shapeId':_0x1fa7d3,'shapeType':_0x24585d,'shapeData':{'relation':_0x269213}}}),_0x72680e[_0x50a91f(0x18f)]({'id':$['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'shapeId':_0x1fa7d3,'shapeType':_0x24585d,'shapeData':{'relation':_0x2aba0c}}});}}return _0x5c6377(_0x43f64d,_0x355689)['result']?(_0x33b380[_0x50a91f(0x1af)]({'unitID':_0xb269ce,'undoMutations':_0x72680e,'redoMutations':_0x43f64d}),!0x0):!0x1;}},ve={'type':_0x4e919d[_0x225b1f(0x135)],'id':_0x225b1f(0x1cf),'handler':(_0x4bb44c,_0x51ab9f)=>{const _0x5c8da6=_0x225b1f;let _0x2b745a=_0x483059(_0x4bb44c[_0x5c8da6(0x19d)](_0x2543b8),_0x51ab9f);if(!_0x2b745a)return!0x1;let _0x2570ae=_0x4bb44c[_0x5c8da6(0x19d)](_0x32f773),{unitId:_0x89676a,subUnitId:_0x591d65}=_0x2b745a,_0x1e576d=_0x2570ae['getSkeleton'](_0x89676a,_0x591d65);if(!_0x1e576d)return!0x1;let _0x11b7b0=_0x4bb44c['get'](_0x5f3711),{shapeId:_0x548c88,rotate:_0x206129}=_0x51ab9f,_0x1301f8=_0x11b7b0['getDrawingByParam']({'unitId':_0x89676a,'subUnitId':_0x591d65,'drawingId':_0x548c88});if(!_0x1301f8)return!0x1;let _0x10b004=_0x4bb44c[_0x5c8da6(0x19d)](Q)['getShapeModel'](_0x89676a,_0x591d65,_0x548c88);if(!_0x10b004)return!0x1;let _0x51688b=_0x4bb44c[_0x5c8da6(0x19d)](_0x1220c4),_0x1a42f6=_0x4bb44c[_0x5c8da6(0x19d)](_0x3626df),_0x45ea10=_0x4bb44c['get'](_0x4c2afb),_0x296fd8={..._0x1301f8[_0x5c8da6(0x171)]};_0x206129!==void 0x0&&(_0x296fd8[_0x5c8da6(0x197)]=(_0x296fd8['angle']||0x0)+_0x206129);let _0x475b9a=_0x3b3677(_0x296fd8,_0x1e576d),_0x455db1=_0x2d2bb4(_0x296fd8,_0x1e576d),_0x508cd1=_0x10b004['getShapeType'](),_0x56ade5=_0x10b004[_0x5c8da6(0x16d)](),_0x4f6fe4={'unitId':_0x89676a,'subUnitId':_0x591d65,'drawingId':_0x548c88,'drawingType':_0x1b1709[_0x5c8da6(0x18c)],'sheetTransform':_0x475b9a,'transform':_0x296fd8,'data':{'shapeType':_0x508cd1,'shapeData':_0x56ade5},'axisAlignSheetTransform':_0x455db1,'allowTransform':!0x0},{undo:_0x26aa79,redo:_0x16930f,objects:_0x14a2f5}=_0x11b7b0[_0x5c8da6(0x182)]([_0x4f6fe4]),_0x521c49=_0x45ea10['onCommandExecute']({'id':_0x57d0bf['id'],'params':{'unitId':_0x89676a,'drawings':[_0x4f6fe4]}}),_0x54a0bd=[..._0x521c49[_0x5c8da6(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x89676a,'subUnitId':_0x591d65,'op':_0x16930f,'objects':_0x14a2f5,'type':_0x2c701a[_0x5c8da6(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x89676a]},..._0x521c49[_0x5c8da6(0x148)]],_0x1f6eb1=[..._0x521c49[_0x5c8da6(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x89676a,'subUnitId':_0x591d65,'op':_0x26aa79,'objects':_0x14a2f5,'type':_0x2c701a[_0x5c8da6(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x89676a]},..._0x521c49[_0x5c8da6(0x1eb)]];return _0x5c6377(_0x54a0bd,_0x51688b)['result']?(_0x1a42f6[_0x5c8da6(0x1af)]({'unitID':_0x89676a,'undoMutations':_0x1f6eb1,'redoMutations':_0x54a0bd}),!0x0):!0x1;}},ye={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x25e1d5,_0x4bcc67)=>{const _0xe860f6=_0x225b1f;let _0x978063=_0x483059(_0x25e1d5[_0xe860f6(0x19d)](_0x2543b8),_0x4bcc67);if(!_0x978063)return!0x1;let {unitId:_0x3cfd41,subUnitId:_0x337780}=_0x978063,{shapeId:_0x2138a3}=_0x4bcc67,_0x6dae88=_0x25e1d5[_0xe860f6(0x19d)](Q)['getShapeModel'](_0x3cfd41,_0x337780,_0x2138a3);if(!_0x6dae88)return!0x1;let _0x43f15e=_0x6dae88[_0xe860f6(0x1c0)](),_0x3ff202=(_0x43f15e==null?void 0x0:_0x43f15e[_0xe860f6(0x1f5)])??!0x0,_0x4f3008=!_0x3ff202,_0x490733=_0x25e1d5[_0xe860f6(0x19d)](_0x1220c4),_0x4524e9=_0x25e1d5[_0xe860f6(0x19d)](_0x3626df),_0x4da293={'unitId':_0x3cfd41,'subUnitId':_0x337780,'shapeId':_0x2138a3,'shapeData':{'shapeText':{'isHorizontal':_0x4f3008}}},_0x4640d0={'unitId':_0x3cfd41,'subUnitId':_0x337780,'shapeId':_0x2138a3,'shapeData':{'shapeText':{'isHorizontal':_0x3ff202}}},_0x4ba5e5=[{'id':$['id'],'params':_0x4da293}],_0x2c7758=[{'id':$['id'],'params':_0x4640d0}];return _0x5c6377(_0x4ba5e5,_0x490733)[_0xe860f6(0x155)]?(_0x4524e9[_0xe860f6(0x1af)]({'unitID':_0x3cfd41,'undoMutations':_0x2c7758,'redoMutations':_0x4ba5e5}),!0x0):!0x1;}},be={'type':_0x4e919d[_0x225b1f(0x135)],'id':_0x225b1f(0x188),'handler':(_0x23ae85,_0x43c2b2)=>{const _0x132577=_0x225b1f;var _0x583718;let _0x5bdc69=_0x483059(_0x23ae85[_0x132577(0x19d)](_0x2543b8),_0x43c2b2);if(!_0x5bdc69)return!0x1;let _0x3a8730=_0x23ae85[_0x132577(0x19d)](_0x32f773),{unitId:_0x3201c4,subUnitId:_0x2f0b84}=_0x5bdc69,_0x3e2f30=_0x3a8730['getSkeleton'](_0x3201c4,_0x2f0b84);if(!_0x3e2f30)return!0x1;let _0xf54c57=_0x23ae85['get'](_0x5f3711),{connectorShapeId:_0xb18d6,width:_0x5b59df,height:_0x4fe893,left:_0x9a8516,top:_0x5ced4c,flipX:_0x56b6f3,flipY:_0x3518af,rotation:_0x497574,oldAdjustValues:_0x3fc188,newAdjustValues:_0x377f33,oldLineType:_0x2d2d89,newLineType:_0x3cd072,oldRelation:_0x38034e,newRelation:_0xdb4232}=_0x43c2b2,_0xe49db6=_0xf54c57['getDrawingByParam']({'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'drawingId':_0xb18d6});if(!_0xe49db6)return!0x1;let _0x383ffd=_0x23ae85[_0x132577(0x19d)](Q)[_0x132577(0x176)](_0x3201c4,_0x2f0b84,_0xb18d6);if(!_0x383ffd)return!0x1;let _0x59f3e5=_0x23ae85[_0x132577(0x19d)](_0x1220c4),_0x40d03a=_0x23ae85['get'](_0x3626df),_0xfa0c06=_0x23ae85[_0x132577(0x19d)](_0x4c2afb),_0x179955={..._0xe49db6[_0x132577(0x171)],'width':_0x5b59df,'height':_0x4fe893,'left':_0x9a8516,'top':_0x5ced4c,'flipX':_0x56b6f3,'flipY':_0x3518af,'angle':_0x497574??((_0x583718=_0xe49db6[_0x132577(0x171)])==null?void 0x0:_0x583718[_0x132577(0x197)])??0x0},_0xa62121=_0x3b3677(_0x179955,_0x3e2f30),_0x5e94b5=_0x2d2bb4(_0x179955,_0x3e2f30),_0x1fadf0=_0x383ffd['getShapeType'](),_0x10c263=_0x383ffd[_0x132577(0x16d)](),_0x4d7ab6={'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'drawingId':_0xb18d6,'drawingType':_0x1b1709[_0x132577(0x18c)],'sheetTransform':_0xa62121,'transform':_0x179955,'data':{'shapeType':_0x3cd072||_0x2d2d89||_0x1fadf0,'shapeData':{..._0x10c263,'adjustValues':_0x377f33||_0x3fc188||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x1ee)]),'relation':_0xdb4232||_0x38034e||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x18b)])}},'axisAlignSheetTransform':_0x5e94b5,'allowTransform':!0x0},{undo:_0x1bed5f,redo:_0x1afad7,objects:_0x4baaa7}=_0xf54c57[_0x132577(0x182)]([_0x4d7ab6]),_0x55da7b=_0xfa0c06[_0x132577(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x3201c4,'drawings':[_0x4d7ab6]}}),_0x23741a=[..._0x55da7b[_0x132577(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'op':_0x1afad7,'objects':_0x4baaa7,'type':_0x2c701a[_0x132577(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x3201c4]},..._0x55da7b['redos'],{'id':$['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'shapeId':_0xb18d6,'shapeType':_0x3cd072,'shapeData':{'adjustValues':_0x377f33,'relation':_0xdb4232}}}],_0x37f59d=[..._0x55da7b[_0x132577(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'op':_0x1bed5f,'objects':_0x4baaa7,'type':_0x2c701a[_0x132577(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x3201c4]},..._0x55da7b[_0x132577(0x1eb)],{'id':$['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'shapeId':_0xb18d6,'shapeType':_0x1fadf0,'shapeData':{..._0x10c263,'adjustValues':_0x3fc188||(_0x10c263==null?void 0x0:_0x10c263['adjustValues']),'relation':_0x38034e||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x18b)])}}}];return _0x5c6377(_0x23741a,_0x59f3e5)['result']?(_0x40d03a[_0x132577(0x1af)]({'unitID':_0x3201c4,'undoMutations':_0x37f59d,'redoMutations':_0x23741a}),!0x0):!0x1;}},xe={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.update-line-shape-resize','handler':(_0x53aa54,_0x4f7367)=>{const _0x446731=_0x225b1f;let _0x3d5122=_0x483059(_0x53aa54[_0x446731(0x19d)](_0x2543b8),_0x4f7367);if(!_0x3d5122)return!0x1;let _0x9a0377=_0x53aa54[_0x446731(0x19d)](_0x32f773),{unitId:_0x4e190a,subUnitId:_0x3a525f}=_0x3d5122,_0x291098=_0x9a0377[_0x446731(0x17b)](_0x4e190a,_0x3a525f);if(!_0x291098)return!0x1;let _0x458fa4=_0x53aa54[_0x446731(0x19d)](_0x5f3711),{shapeId:_0x13c2b5,width:_0x1da22e,height:_0x8a2eb3,left:_0x4cf34e,top:_0x5a774a,flipX:_0x58605d,flipY:_0x3ff1b,angle:_0x58f546,oldAdjustValues:_0x5c4b71,newAdjustValues:_0x23f74c,oldLineType:_0x39222d,newLineType:_0x570b9e}=_0x4f7367,_0x24e18d=_0x458fa4[_0x446731(0x170)]({'unitId':_0x4e190a,'subUnitId':_0x3a525f,'drawingId':_0x13c2b5});if(!_0x24e18d)return!0x1;let _0x91329=_0x53aa54[_0x446731(0x19d)](Q)[_0x446731(0x176)](_0x4e190a,_0x3a525f,_0x13c2b5);if(!_0x91329)return!0x1;let _0x5b6bb0=_0x53aa54[_0x446731(0x19d)](_0x1220c4),_0x4bb681=_0x53aa54[_0x446731(0x19d)](_0x3626df),_0x4a8460=_0x53aa54[_0x446731(0x19d)](_0x4c2afb),_0xd7122f={..._0x24e18d[_0x446731(0x171)],'width':_0x1da22e,'height':_0x8a2eb3,'left':_0x4cf34e,'top':_0x5a774a,'flipX':_0x58605d,'flipY':_0x3ff1b,'angle':_0x58f546},_0x2ff590=_0x3b3677(_0xd7122f,_0x291098),_0x145168=_0x2d2bb4(_0xd7122f,_0x291098),_0x5851ba=_0x91329[_0x446731(0x19e)](),_0x2a24fc=_0x91329['getShapeData'](),_0x29eae9={'unitId':_0x4e190a,'subUnitId':_0x3a525f,'drawingId':_0x13c2b5,'drawingType':_0x1b1709[_0x446731(0x18c)],'sheetTransform':_0x2ff590,'transform':_0xd7122f,'data':{'shapeType':_0x570b9e||_0x39222d||_0x5851ba,'shapeData':{..._0x2a24fc,'adjustValues':_0x23f74c||_0x5c4b71||(_0x2a24fc==null?void 0x0:_0x2a24fc[_0x446731(0x1ee)])}},'axisAlignSheetTransform':_0x145168,'allowTransform':!0x0},{undo:_0x33392d,redo:_0x283bb6,objects:_0x368ae8}=_0x458fa4['getBatchUpdateOp']([_0x29eae9]),_0x1bc5ac=_0x4a8460[_0x446731(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x4e190a,'drawings':[_0x29eae9]}}),_0x411ce7=[..._0x1bc5ac['preRedos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'op':_0x283bb6,'objects':_0x368ae8,'type':_0x2c701a[_0x446731(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x4e190a]},..._0x1bc5ac[_0x446731(0x148)],{'id':$['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'shapeId':_0x13c2b5,'shapeType':_0x570b9e,'shapeData':{'adjustValues':_0x23f74c}}}],_0x179f38=[..._0x1bc5ac['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'op':_0x33392d,'objects':_0x368ae8,'type':_0x2c701a[_0x446731(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x4e190a]},..._0x1bc5ac['undos'],{'id':$['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'shapeId':_0x13c2b5,'shapeType':_0x5851ba,'shapeData':{..._0x2a24fc,'adjustValues':_0x5c4b71||(_0x2a24fc==null?void 0x0:_0x2a24fc[_0x446731(0x1ee)])}}}];return _0x5c6377(_0x411ce7,_0x5b6bb0)[_0x446731(0x155)]?(_0x4bb681[_0x446731(0x1af)]({'unitID':_0x4e190a,'undoMutations':_0x179f38,'redoMutations':_0x411ce7}),!0x0):!0x1;}},Se={'id':'sheet.mutation.update-shape-type','type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0xb558d9,_0x1529bc)=>{const _0x1a1b17=_0x225b1f;let {unitId:_0x51008c,subUnitId:_0x327bc4,shapeType:_0x3ba39c,shapeId:_0x33ba06,shapeData:_0x35e23a}=_0x1529bc,_0x41f0a7=_0xb558d9['get'](Q)[_0x1a1b17(0x176)](_0x51008c,_0x327bc4,_0x33ba06);return _0x41f0a7&&(_0x41f0a7[_0x1a1b17(0x199)](_0x3ba39c),_0x35e23a&&(_0x41f0a7==null||_0x41f0a7['setShapeData'](_0x35e23a))),!0x0;}};var Ce=_0x225b1f(0x12b),we=_0x225b1f(0x1db);function Te(_0x208fc4){const _0x4597c6=_0x225b1f;var _0x2b6572,_0x4ea407,_0x377f5c,_0x2df4a1,_0x4e6296,_0xfcdd36,_0x583ae9;return{'left':((_0x2b6572=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x2b6572[_0x4597c6(0x1d4)])??0x0,'top':((_0x4ea407=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x4ea407[_0x4597c6(0x166)])??0x0,'width':((_0x377f5c=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x377f5c[_0x4597c6(0x1cc)])??0xc8,'height':((_0x2df4a1=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x2df4a1['height'])??0xc8,'rotation':((_0x4e6296=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x4e6296['rotation'])??0x0,'flipX':((_0xfcdd36=_0x208fc4['transform'])==null?void 0x0:_0xfcdd36[_0x4597c6(0x178)])??!0x1,'flipY':((_0x583ae9=_0x208fc4['transform'])==null?void 0x0:_0x583ae9[_0x4597c6(0x12c)])??!0x1};}let Ee=class{constructor(_0x28986b,_0x2aa6d5,_0x55be29,_0x44e14c){const _0x5ec1e2=_0x225b1f;this[_0x5ec1e2(0x1c1)]=_0x28986b,this[_0x5ec1e2(0x159)]=_0x2aa6d5,this[_0x5ec1e2(0x129)]=_0x55be29,this[_0x5ec1e2(0x15c)]=_0x44e14c,X(this,'hostType',_0x32e2b1[_0x5ec1e2(0x168)]);}get[_0x225b1f(0x185)](){return{'subscribe':_0x5fcb2c=>{const _0x2e78ad=_0x2588;let _0x4dfeeb=this[_0x2e78ad(0x1c1)][_0x2e78ad(0x1d7)](_0x466f34=>{(_0x466f34['id']===pe['id']||_0x466f34['id']===me['id']||_0x466f34['id']===$['id']||_0x466f34['id']===Se['id'])&&_0x5fcb2c({'unitId':_0x466f34['params']['unitId']});});return{'unsubscribe':()=>_0x4dfeeb[_0x2e78ad(0x1e3)]()};}};}[_0x225b1f(0x1bd)](_0x2ce321){const _0x3e09ed=_0x225b1f;var _0x52118c;let _0xa9f2a5=(_0x52118c=this[_0x3e09ed(0x129)][_0x3e09ed(0x1d2)](_0x2ce321['unitId'],_0x2ce321[_0x3e09ed(0x1d5)]))==null?void 0x0:_0x52118c[_0x2ce321[_0x3e09ed(0x12e)]],_0x876e93=this['_shapeService'][_0x3e09ed(0x19e)](_0x2ce321[_0x3e09ed(0x174)],_0x2ce321[_0x3e09ed(0x1d5)],_0x2ce321['shapeId']);if(!_0xa9f2a5||_0xa9f2a5['drawingType']!==_0x1b1709['DRAWING_SHAPE']||!_0x876e93)return null;let _0x355f4f=_0xa9f2a5[_0x3e09ed(0x171)];return{..._0x2ce321,'shapeType':_0x876e93,'shapeData':_0x56bc3c[_0x3e09ed(0x1ac)](this[_0x3e09ed(0x159)][_0x3e09ed(0x17a)](_0x2ce321[_0x3e09ed(0x174)],_0x2ce321['subUnitId'],_0x2ce321[_0x3e09ed(0x12e)])??{}),'name':_0xa9f2a5[_0x3e09ed(0x1b2)],'description':_0xa9f2a5[_0x3e09ed(0x1a3)],'visible':_0xa9f2a5[_0x3e09ed(0x153)]!==!0x0,'selectable':_0xa9f2a5['selectable']!==!0x1,'transform':{'left':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1d4)])??0x0,'top':(_0x355f4f==null?void 0x0:_0x355f4f['top'])??0x0,'width':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1cc)])??0xc8,'height':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1b4)])??0xc8,'rotation':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x197)])??0x0,'flipX':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x178)])??!0x1,'flipY':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x12c)])??!0x1}};}[_0x225b1f(0x169)](_0x37c33d){const _0x3ec6fd=_0x225b1f;let _0x4c6c39=this[_0x3ec6fd(0x129)][_0x3ec6fd(0x1d2)](_0x37c33d[_0x3ec6fd(0x174)],_0x37c33d[_0x3ec6fd(0x1d5)])??{};return Object[_0x3ec6fd(0x19a)](_0x4c6c39)['filter'](_0x192a79=>(_0x192a79==null?void 0x0:_0x192a79[_0x3ec6fd(0x1f0)])===_0x1b1709[_0x3ec6fd(0x18c)])['map'](_0x24c1b3=>this[_0x3ec6fd(0x1bd)]({..._0x37c33d,'shapeId':_0x24c1b3[_0x3ec6fd(0x1c2)]}))[_0x3ec6fd(0x1a1)](_0x4634ed=>!!_0x4634ed);}['listShapesInUnit'](_0x4c0f21){const _0x4eda03=_0x225b1f;let _0x331b45=this[_0x4eda03(0x15c)][_0x4eda03(0x1cb)](_0x4c0f21,_0x32e2b1[_0x4eda03(0x168)]);return(_0x331b45==null?void 0x0:_0x331b45[_0x4eda03(0x122)]()['flatMap'](_0x5d4eb6=>this['listShapes']({'hostType':this['hostType'],'unitId':_0x4c0f21,'subUnitId':_0x5d4eb6[_0x4eda03(0x1ae)]()})))??[];}[_0x225b1f(0x142)](_0x137e83,_0x2f614e){const _0x14c187=_0x225b1f;let _0x3deb8d=_0x34af8c(),_0xd0829f=Te(_0x2f614e),_0xb09078=_0x56bc3c[_0x14c187(0x1ac)](_0x2f614e[_0x14c187(0x195)]??_0x2169ba(_0x2f614e[_0x14c187(0x133)]));return this['_commandService'][_0x14c187(0x136)](he['id'],{'unitId':_0x137e83[_0x14c187(0x174)],'subUnitId':_0x137e83[_0x14c187(0x1d5)],'shapeId':_0x3deb8d,'shapeType':_0x2f614e['shapeType'],'shapeData':_0xb09078,'name':_0x2f614e['name'],'description':_0x2f614e[_0x14c187(0x1a3)],'position':{'x':_0xd0829f[_0x14c187(0x1d4)],'y':_0xd0829f[_0x14c187(0x166)]},'width':_0xd0829f['width'],'height':_0xd0829f['height'],'rotation':_0xd0829f[_0x14c187(0x184)],'flipX':_0xd0829f[_0x14c187(0x178)],'flipY':_0xd0829f[_0x14c187(0x12c)],'visible':_0x2f614e[_0x14c187(0x1cd)]??!0x0,'selectable':_0x2f614e['selectable']??!0x0})?{..._0x137e83,'shapeId':_0x3deb8d,'shapeType':_0x2f614e[_0x14c187(0x133)],'shapeData':_0xb09078,'name':_0x2f614e['name'],'description':_0x2f614e['description'],'visible':_0x2f614e[_0x14c187(0x1cd)]??!0x0,'selectable':_0x2f614e['selectable']??!0x0,'transform':_0xd0829f}:null;}[_0x225b1f(0x193)](_0x396d34,_0x29738e){const _0x283fac=_0x225b1f;var _0x27b8dd;let _0x526496=this[_0x283fac(0x1bd)](_0x396d34);if(!_0x526496)return!0x1;let _0x10c294={..._0x526496[_0x283fac(0x171)],..._0x29738e[_0x283fac(0x171)]};return this[_0x283fac(0x1c1)][_0x283fac(0x136)](ge['id'],{'unitId':_0x396d34[_0x283fac(0x174)],'subUnitId':_0x396d34[_0x283fac(0x1d5)],'shapeId':_0x396d34[_0x283fac(0x12e)],'shapeType':_0x29738e[_0x283fac(0x133)]??((_0x27b8dd=_0x29738e[_0x283fac(0x195)])==null?void 0x0:_0x27b8dd[_0x283fac(0x133)])??_0x526496[_0x283fac(0x133)],'shapeData':_0x29738e[_0x283fac(0x195)]??_0x526496[_0x283fac(0x195)],'position':{'x':_0x10c294['left'],'y':_0x10c294['top']},'width':_0x10c294[_0x283fac(0x1cc)],'height':_0x10c294[_0x283fac(0x1b4)],'rotation':_0x10c294[_0x283fac(0x184)],'flipX':_0x10c294['flipX'],'flipY':_0x10c294[_0x283fac(0x12c)],'name':'name'in _0x29738e?_0x29738e[_0x283fac(0x1b2)]:_0x526496[_0x283fac(0x1b2)],'description':_0x283fac(0x1a3)in _0x29738e?_0x29738e[_0x283fac(0x1a3)]:_0x526496[_0x283fac(0x1a3)],'visible':_0x29738e[_0x283fac(0x1cd)]??_0x526496[_0x283fac(0x1cd)],'selectable':_0x29738e[_0x283fac(0x127)]??_0x526496[_0x283fac(0x127)]});}[_0x225b1f(0x15b)](_0x294a3f,_0x3c7f63,_0x4d4222){const _0x2dd8b4=_0x225b1f;let _0xdf5f98=this['getShape'](_0x294a3f),_0x52673c=_0xdf5f98==null?void 0x0:_0xdf5f98['shapeData'][_0x2dd8b4(0x139)];return!_0xdf5f98||!_0x52673c?null:{'id':$['id'],'params':{'unitId':_0x294a3f[_0x2dd8b4(0x174)],'subUnitId':_0x294a3f['subUnitId'],'shapeId':_0x294a3f[_0x2dd8b4(0x12e)],'shapeData':{..._0xdf5f98['shapeData'],'formulaBinding':{..._0x52673c,'lastValue':_0x56bc3c[_0x2dd8b4(0x1ac)](_0x4d4222)}},'replace':!0x0,'formulaLastValueGuard':_0x3c7f63}};}[_0x225b1f(0x145)](_0x3e98ed){const _0x3bac15=_0x225b1f;return this['_commandService'][_0x3bac15(0x136)](_0x52d128['id'],{'unitId':_0x3e98ed['unitId'],'drawings':[{'unitId':_0x3e98ed[_0x3bac15(0x174)],'subUnitId':_0x3e98ed[_0x3bac15(0x1d5)],'drawingId':_0x3e98ed[_0x3bac15(0x12e)],'drawingType':_0x1b1709[_0x3bac15(0x18c)]}]});}[_0x225b1f(0x1c9)](_0x1a9069){const _0x1a201e=_0x225b1f;return this['_arrange'](_0x1a9069,_0x22aed2[_0x1a201e(0x175)]);}['bringForward'](_0x53f9ae){const _0x436cd2=_0x225b1f;return this[_0x436cd2(0x15f)](_0x53f9ae,_0x22aed2[_0x436cd2(0x160)]);}[_0x225b1f(0x1c5)](_0x1d0ac5){const _0x5a38c2=_0x225b1f;return this[_0x5a38c2(0x15f)](_0x1d0ac5,_0x22aed2[_0x5a38c2(0x1b3)]);}[_0x225b1f(0x126)](_0xa718c1){const _0x454062=_0x225b1f;return this[_0x454062(0x15f)](_0xa718c1,_0x22aed2['back']);}[_0x225b1f(0x1bf)](_0x546dcb,_0x36e5df){const _0x426f23=_0x225b1f;return this[_0x426f23(0x1c1)][_0x426f23(0x136)](_0x51e055['id'],{'unitId':_0x546dcb[_0x426f23(0x174)],'subUnitId':_0x546dcb['subUnitId'],'drawingIds':[_0x546dcb[_0x426f23(0x12e)]],'zOrder':_0x36e5df});}[_0x225b1f(0x15f)](_0x3221df,_0x304c22){const _0x21cc4f=_0x225b1f;return this[_0x21cc4f(0x1c1)][_0x21cc4f(0x136)](_0x51e055['id'],{'unitId':_0x3221df[_0x21cc4f(0x174)],'subUnitId':_0x3221df['subUnitId'],'drawingIds':[_0x3221df[_0x21cc4f(0x12e)]],'arrangeType':_0x304c22});}};Ee=fe([Z(0x0,_0x1220c4),Z(0x1,_0x9e5ef9(Q)),Z(0x2,_0x5f3711),Z(0x3,_0x2543b8)],Ee);const De={};let Oe=class extends _0x1b1f35{constructor(_0x34e7d9,_0x481588,_0x198d11,_0x3411fb,_0x17835b,_0x4d201e,_0x3f9e33,_0x1e5b59){const _0x38e2a6=_0x225b1f;super(),this['_commandService']=_0x34e7d9,this['_sheetInterceptorService']=_0x481588,this[_0x38e2a6(0x187)]=_0x198d11,this['_sheetDrawingService']=_0x3411fb,this['_sheetsShapeService']=_0x17835b,this[_0x38e2a6(0x14b)]=_0x4d201e,this[_0x38e2a6(0x1e6)]=_0x3f9e33,this[_0x38e2a6(0x1e1)](),this['_initCommandInterceptor'](),this[_0x38e2a6(0x173)](this[_0x38e2a6(0x1e6)]['register'](_0x1e5b59));}[_0x225b1f(0x1e1)](){const _0x321459=_0x225b1f;[he,ge,_e,ve,ye,be,xe,pe,me,Se,$][_0x321459(0x17c)](_0x12a8c8=>this['disposeWithMe'](this['_commandService'][_0x321459(0x183)](_0x12a8c8)));}[_0x225b1f(0x124)](){const _0x4e1939=_0x225b1f;this[_0x4e1939(0x173)](this[_0x4e1939(0x162)][_0x4e1939(0x1a2)]({'getMutations':_0x51d926=>{const _0x12f38b=_0x4e1939;if(_0x51d926['id']===_0x52d128['id']){let {drawings:_0xdd42a6}=_0x51d926['params'],_0x2373a3=_0xdd42a6[_0x12f38b(0x1a1)](_0x199677=>_0x199677['drawingType']===_0x1b1709['DRAWING_SHAPE']);if(_0x2373a3[_0x12f38b(0x1a8)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x475c7a=[],_0x4581bc=[];return _0x2373a3[_0x12f38b(0x17c)](_0x3e1411=>{const _0x15e385=_0x12f38b;let {unitId:_0x566bc5,subUnitId:_0x58aa9c,drawingId:_0x32eae0}=_0x3e1411,_0x4f5a89=this[_0x15e385(0x128)][_0x15e385(0x176)](_0x566bc5,_0x58aa9c,_0x32eae0);if(!_0x4f5a89)throw TypeError(_0x15e385(0x1ad)+_0x4f5a89);_0x475c7a[_0x15e385(0x18f)]({'id':me['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x32eae0}}),_0x4581bc[_0x15e385(0x18f)]({'id':pe['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x32eae0,'shapeType':_0x4f5a89['getShapeType'](),'shapeData':_0x4f5a89[_0x15e385(0x16d)]()}});let _0xed843c=this[_0x15e385(0x128)]['getBasicShapeRelation'](_0x566bc5,_0x58aa9c,_0x32eae0);if(_0xed843c)for(let _0x251f49 of _0xed843c){let _0x343e4a=_0x251f49[_0x15e385(0x1be)],_0x593132=_0x251f49[_0x15e385(0x137)],_0x30477c=_0x593132?{'from':void 0x0}:{'to':void 0x0},_0x1226dd=_0x593132?{'from':{'shapeId':_0x251f49[_0x15e385(0x12e)],'cxnIndex':_0x251f49[_0x15e385(0x14a)]}}:{'to':{'shapeId':_0x251f49[_0x15e385(0x12e)],'cxnIndex':_0x251f49[_0x15e385(0x14a)]}};_0x475c7a[_0x15e385(0x18f)]({'id':$['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x343e4a,'shapeData':{'relation':_0x30477c}}}),_0x4581bc[_0x15e385(0x18f)]({'id':$['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x343e4a,'shapeData':{'relation':_0x1226dd}}});}}),{'preRedos':_0x475c7a,'redos':[],'preUndos':[],'undos':_0x4581bc};}let _0x12f914=this[_0x12f38b(0x1ba)](_0x51d926);if(_0x12f914){let _0x336fdb=_0x12f914[_0x12f38b(0x1a1)](_0x1849c6=>_0x1849c6['drawingType']===_0x1b1709[_0x12f38b(0x18c)]);if(_0x336fdb['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x33c21f=[],_0x5c0750=[];for(let _0x12d24a of _0x336fdb){let {unitId:_0x1db0cc,subUnitId:_0x2641a5,drawingId:_0x119d98,transform:_0x557ece}=_0x12d24a;if(!_0x1db0cc||!_0x2641a5||!_0x119d98||!_0x557ece)continue;let _0x403ccc=this['_sheetsShapeService'][_0x12f38b(0x176)](_0x1db0cc,_0x2641a5,_0x119d98);if(!_0x403ccc)throw TypeError(_0x12f38b(0x1ad)+_0x403ccc);let _0x228f4b=_0x403ccc[_0x12f38b(0x19e)]();if(_0x10aa10(_0x228f4b)){let _0x2be318=this['_sheetsShapeService']['getLineShapeRelation'](_0x1db0cc,_0x2641a5,_0x119d98);_0x2be318&&(_0x33c21f[_0x12f38b(0x18f)]({'id':$['id'],'params':{'unitId':_0x1db0cc,'subUnitId':_0x2641a5,'shapeId':_0x119d98,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x5c0750[_0x12f38b(0x18f)]({'id':$['id'],'params':{'unitId':_0x1db0cc,'subUnitId':_0x2641a5,'shapeId':_0x119d98,'shapeData':{'relation':_0x2be318}}}));}else{let _0x43dd15=this[_0x12f38b(0x128)]['getBasicShapeRelation'](_0x1db0cc,_0x2641a5,_0x119d98);if(_0x43dd15&&_0x43dd15[_0x12f38b(0x1a8)]>0x0)for(let _0x2d16cc of _0x43dd15){let _0xfbcf0b=_0x2d16cc[_0x12f38b(0x1be)],_0x179e29=_0x2d16cc['isFrom'],_0x3153ea=this[_0x12f38b(0x128)][_0x12f38b(0x176)](_0x1db0cc,_0x2641a5,_0xfbcf0b);if(!_0x3153ea)continue;let _0x58bb47=_0x3153ea[_0x12f38b(0x1e8)](),_0x3c2451=_0x3153ea[_0x12f38b(0x1d8)]();_0x58bb47&&_0x3c2451?this[_0x12f38b(0x1c8)](_0x1db0cc,_0x2641a5,_0xfbcf0b,_0x3153ea,_0x58bb47,_0x3c2451,_0x33c21f,_0x5c0750,_0x119d98,_0x557ece):this[_0x12f38b(0x121)](_0x1db0cc,_0x2641a5,_0xfbcf0b,_0x3153ea,_0x179e29?_0x58bb47:_0x3c2451,_0x179e29,_0x33c21f,_0x5c0750,_0x119d98,_0x557ece);}}}return{'preRedos':[],'redos':_0x33c21f,'preUndos':_0x5c0750,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getDrawingUpdates'](_0x21fd4c){const _0xab39b0=_0x225b1f;if(_0x21fd4c['id']===_0x57d0bf['id'])return _0x21fd4c[_0xab39b0(0x167)][_0xab39b0(0x191)];if(_0x21fd4c['id']===_0xede2d4['id']){let _0x1ac48e=_0x21fd4c[_0xab39b0(0x167)],_0x7077bf=_0x1ac48e[_0xab39b0(0x191)][_0xab39b0(0x146)](({placement:_0x2540f4})=>_0x2540f4[_0xab39b0(0x1e9)]===_0x105b85[_0xab39b0(0x147)])?void 0x0:this[_0xab39b0(0x187)][_0xab39b0(0x14c)](_0x1ac48e[_0xab39b0(0x174)],_0x1ac48e[_0xab39b0(0x1d5)]),_0x50cc5e=[];for(let {drawingId:_0x2ec054,placement:_0x18391b}of _0x1ac48e[_0xab39b0(0x191)]){let _0x41d4d3=this['_sheetDrawingService']['getDrawingByParam']({'unitId':_0x1ac48e[_0xab39b0(0x174)],'subUnitId':_0x1ac48e[_0xab39b0(0x1d5)],'drawingId':_0x2ec054});(_0x41d4d3==null?void 0x0:_0x41d4d3['drawingType'])===_0x1b1709[_0xab39b0(0x18c)]&&_0x50cc5e[_0xab39b0(0x18f)](_0x506f27(_0x41d4d3,_0x18391b,_0x7077bf));}return _0x50cc5e;}return null;}[_0x225b1f(0x1b8)](_0x27c250,_0x4c29d6,_0x12af7c,_0x79857c,_0x243405){const _0x23976c=_0x225b1f;if(!_0x4c29d6||!_0x12af7c)return null;let {shapeId:_0x36745e,cxnIndex:_0x32a851}=_0x27c250,_0x5bea01=this[_0x23976c(0x128)][_0x23976c(0x176)](_0x4c29d6,_0x12af7c,_0x36745e);if(!_0x5bea01)return null;let _0x46fc81=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x4c29d6,'subUnitId':_0x12af7c,'drawingId':_0x36745e});if(!(_0x46fc81!=null&&_0x46fc81['transform']))return null;let {left:_0x4075d8=0x0,top:_0x30bbb6=0x0,width:_0x3c2b77=0x0,height:_0x256296=0x0,flipX:_0x308f1a=!0x1,flipY:_0x5cc99c=!0x1,angle:_0x4c8385}=_0x46fc81['transform'];_0x243405&&_0x79857c===_0x36745e&&(_0x4075d8=_0x243405[_0x23976c(0x1d4)]??_0x4075d8,_0x30bbb6=_0x243405[_0x23976c(0x166)]??_0x30bbb6,_0x3c2b77=_0x243405[_0x23976c(0x1cc)]??_0x3c2b77,_0x256296=_0x243405[_0x23976c(0x1b4)]??_0x256296,_0x308f1a=_0x243405['flipX']??_0x308f1a,_0x5cc99c=_0x243405[_0x23976c(0x12c)]??_0x5cc99c,_0x4c8385=_0x243405[_0x23976c(0x197)]??_0x4c8385),_0x5bea01[_0x23976c(0x1e0)]({'width':_0x3c2b77,'height':_0x256296});let _0x3a2c00=_0x5bea01[_0x23976c(0x1a6)]()[_0x23976c(0x158)](_0x4c14a1=>_0x4c14a1['index']===_0x32a851);if(!_0x3a2c00)return null;let _0x40741f=_0x308f1a?_0x3c2b77-_0x3a2c00['x']:_0x3a2c00['x'],_0x3b2032=_0x5cc99c?_0x256296-_0x3a2c00['y']:_0x3a2c00['y'];if(_0x4c8385!==0x0&&_0x4c8385!=null){let _0x5a5ee0=_0x4c8385*Math['PI']/0xb4,_0x2a16d2=Math[_0x23976c(0x1f4)](_0x5a5ee0),_0x1d4ce9=Math[_0x23976c(0x19b)](_0x5a5ee0),_0x3feb1c=_0x3c2b77/0x2,_0xe1b92f=_0x256296/0x2,_0x1117e4=_0x40741f-_0x3feb1c,_0x1747b8=_0x3b2032-_0xe1b92f;_0x40741f=_0x3feb1c+_0x1117e4*_0x2a16d2-_0x1747b8*_0x1d4ce9,_0x3b2032=_0xe1b92f+_0x1117e4*_0x1d4ce9+_0x1747b8*_0x2a16d2;}_0x40741f+=_0x4075d8,_0x3b2032+=_0x30bbb6;let _0xd716c1=_0x3a2c00[_0x23976c(0x1dc)]/0xea60;_0x308f1a&&(_0xd716c1=0xb4-_0xd716c1),_0x5cc99c&&(_0xd716c1=-_0xd716c1),_0xd716c1+=_0x4c8385||0x0,_0xd716c1=(_0xd716c1%0x168+0x168)%0x168;let _0x530f89=_0x29238b({'left':_0x4075d8,'top':_0x30bbb6,'width':_0x3c2b77,'height':_0x256296},_0x4c8385||0x0);return{'point':{'x':_0x40741f,'y':_0x3b2032},'angle':_0xd716c1,'bounds':_0x530f89};}[_0x225b1f(0x1c8)](_0x519e11,_0x72b99f,_0x2e65ba,_0x590140,_0x24fe9a,_0x54610a,_0x9c9537,_0x6b2f6e,_0x2c6ba2,_0x59498a){const _0x340f1a=_0x225b1f;let _0x4fedb3=this[_0x340f1a(0x187)][_0x340f1a(0x17b)](_0x519e11,_0x72b99f);if(!_0x4fedb3)return;let _0x171386=_0x590140[_0x340f1a(0x141)](),_0x3bee29=_0x590140[_0x340f1a(0x13a)](),_0x34bbd9={},_0x41dad6={};_0x3bee29[_0x340f1a(0x17c)](_0x25ac48=>{const _0x37aa42=_0x340f1a;let _0x6893c3=_0x590140[_0x37aa42(0x14d)](_0x25ac48);_0x41dad6[_0x25ac48]=_0x6893c3??0x0;});let _0x471d2e=this[_0x340f1a(0x1b8)](_0x24fe9a,_0x519e11,_0x72b99f,_0x2c6ba2,_0x59498a),_0x2d0798=this[_0x340f1a(0x1b8)](_0x54610a,_0x519e11,_0x72b99f,_0x2c6ba2,_0x59498a);if(_0x471d2e&&_0x2d0798){let _0x33611e=_0x590140[_0x340f1a(0x19e)](),_0x2f1f22=_0x19932a(_0x471d2e,_0x2d0798,_0x33611e),_0x3c98bb=_0x33611e;if(_0x2f1f22){let _0x44738b=_0x20b01f(_0x2f1f22,_0x590140[_0x340f1a(0x19e)]()),_0x27dba8=this[_0x340f1a(0x14b)][_0x340f1a(0x1d2)](_0x519e11,_0x72b99f);if(_0x27dba8&&_0x27dba8[_0x2e65ba]){let _0x4439d0=_0x27dba8[_0x2e65ba];_0x3c98bb=_0x44738b[_0x340f1a(0x1d6)];for(let [_0x39e4ca,_0x2a3207]of Object[_0x340f1a(0x17e)](_0x44738b[_0x340f1a(0x1ee)]))_0x34bbd9[_0x39e4ca]=_0x2a3207;let _0x1f499f={..._0x4439d0[_0x340f1a(0x171)],'width':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x1cc)],'height':_0x44738b['worldRect'][_0x340f1a(0x1b4)],'left':_0x44738b['worldRect'][_0x340f1a(0x1d4)],'top':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x166)],'flipX':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x178)],'flipY':_0x44738b[_0x340f1a(0x1bb)]['flipY'],'angle':_0x44738b[_0x340f1a(0x184)]},_0x1f88d0=_0x3b3677(_0x1f499f,_0x4fedb3),_0x6a9d84=_0x2d2bb4(_0x1f499f,_0x4fedb3),_0x34e125={'unitId':_0x519e11,'subUnitId':_0x72b99f,'drawingType':_0x1b1709[_0x340f1a(0x18c)],'drawingId':_0x2e65ba,'transform':_0x1f499f,'sheetTransform':_0x1f88d0,'axisAlignSheetTransform':_0x6a9d84},{unitId:_0xe0c30f,subUnitId:_0x4facba,undo:_0x2f4333,redo:_0x359532,objects:_0x553c99}=this['_drawingManagerService'][_0x340f1a(0x182)]([_0x34e125]);_0x9c9537[_0x340f1a(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xe0c30f,'subUnitId':_0x4facba,'op':_0x359532,'objects':_0x553c99,'type':_0x2c701a[_0x340f1a(0x1c3)]}}),_0x6b2f6e[_0x340f1a(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xe0c30f,'subUnitId':_0x4facba,'op':_0x2f4333,'objects':_0x553c99,'type':_0x2c701a[_0x340f1a(0x1c3)]}});}_0x590140['removeLinePoints']();}_0x9c9537[_0x340f1a(0x18f)]({'id':$['id'],'params':{'unitId':_0x519e11,'subUnitId':_0x72b99f,'shapeId':_0x2e65ba,'shapeType':_0x3c98bb,'shapeData':{'adjustValues':_0x34bbd9,'relation':_0x171386}}}),_0x6b2f6e['push']({'id':$['id'],'params':{'unitId':_0x519e11,'subUnitId':_0x72b99f,'shapeId':_0x2e65ba,'shapeType':_0x33611e,'shapeData':{'adjustValues':_0x41dad6,'relation':_0x171386}}});}}['_addLineFollowShapeUpdates'](_0x2efc84,_0x38c4be,_0x60a7e7,_0x50a9dc,_0x2535d5,_0x51ea29,_0x27401d,_0x4ff0b5,_0x3353c5,_0x1ed672){const _0x5eaa51=_0x225b1f;var _0x3f7439;if(!_0x2535d5)return;let _0x5b3b08=this['_sheetSkeletonService'][_0x5eaa51(0x17b)](_0x2efc84,_0x38c4be);if(!_0x5b3b08)return;let _0x43a3eb=(_0x3f7439=this[_0x5eaa51(0x14b)]['getDrawingByParam']({'unitId':_0x2efc84,'subUnitId':_0x38c4be,'drawingId':_0x3353c5}))==null?void 0x0:_0x3f7439[_0x5eaa51(0x171)];if(!_0x43a3eb)return;let _0x422330=_0x43a3eb[_0x5eaa51(0x1d4)]!==_0x1ed672['left']||_0x43a3eb[_0x5eaa51(0x166)]!==_0x1ed672[_0x5eaa51(0x166)],_0x506fb4=_0x43a3eb[_0x5eaa51(0x1cc)]!==_0x1ed672[_0x5eaa51(0x1cc)]||_0x43a3eb['height']!==_0x1ed672['height'],_0x32f35c=_0x43a3eb['flipX']!==_0x1ed672['flipX']||_0x43a3eb[_0x5eaa51(0x12c)]!==_0x1ed672[_0x5eaa51(0x12c)],_0x42ff8a=_0x43a3eb['angle']!==_0x1ed672[_0x5eaa51(0x197)];if(_0x422330&&!_0x506fb4&&!_0x32f35c&&!_0x42ff8a){let _0x48f34c=(_0x1ed672[_0x5eaa51(0x1d4)]??0x0)-(_0x43a3eb[_0x5eaa51(0x1d4)]??0x0),_0x2b5ea3=(_0x1ed672['top']??0x0)-(_0x43a3eb['top']??0x0),_0x22fcf6=this[_0x5eaa51(0x14b)][_0x5eaa51(0x1d2)](_0x2efc84,_0x38c4be);if(_0x22fcf6&&_0x22fcf6[_0x60a7e7]){var _0x3eb4bf,_0x4fb057;let _0x571da6=_0x22fcf6[_0x60a7e7],_0x27f4fb={..._0x571da6['transform'],'left':(((_0x3eb4bf=_0x571da6['transform'])==null?void 0x0:_0x3eb4bf['left'])??0x0)+_0x48f34c,'top':(((_0x4fb057=_0x571da6[_0x5eaa51(0x171)])==null?void 0x0:_0x4fb057[_0x5eaa51(0x166)])??0x0)+_0x2b5ea3},_0x35a904=_0x3b3677(_0x27f4fb,_0x5b3b08),_0x294aaa=_0x2d2bb4(_0x27f4fb,_0x5b3b08),_0x2f49fb={'unitId':_0x2efc84,'subUnitId':_0x38c4be,'drawingType':_0x1b1709[_0x5eaa51(0x18c)],'drawingId':_0x60a7e7,'transform':_0x27f4fb,'sheetTransform':_0x35a904,'axisAlignSheetTransform':_0x294aaa},{unitId:_0xa18e63,subUnitId:_0x19aebe,undo:_0x190a19,redo:_0x33b7fb,objects:_0x2cf3fb}=this[_0x5eaa51(0x14b)][_0x5eaa51(0x182)]([_0x2f49fb]);_0x27401d[_0x5eaa51(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xa18e63,'subUnitId':_0x19aebe,'op':_0x33b7fb,'objects':_0x2cf3fb,'type':_0x2c701a[_0x5eaa51(0x1c3)]}}),_0x4ff0b5[_0x5eaa51(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xa18e63,'subUnitId':_0x19aebe,'op':_0x190a19,'objects':_0x2cf3fb,'type':_0x2c701a[_0x5eaa51(0x1c3)]}});}}else{let _0x4dbbad=_0x50a9dc['getStartConnectInfo'](),_0x418d6b=_0x50a9dc[_0x5eaa51(0x1d8)]();this[_0x5eaa51(0x1c8)](_0x2efc84,_0x38c4be,_0x60a7e7,_0x50a9dc,_0x4dbbad,_0x418d6b,_0x27401d,_0x4ff0b5,_0x3353c5,_0x1ed672);}}};Oe=fe([Z(0x0,_0x1220c4),Z(0x1,_0x9e5ef9(_0x4c2afb)),Z(0x2,_0x9e5ef9(_0x32f773)),Z(0x3,_0x9e5ef9(_0x5f3711)),Z(0x4,_0x9e5ef9(Q)),Z(0x5,_0x9e5ef9(_0x410964)),Z(0x6,_0x9e5ef9(_0x26e807)),Z(0x7,_0x9e5ef9(Ee))],Oe);let ke=class extends _0x1b1f35{constructor(_0x870562,_0x46faf4,_0x4815b0){const _0x2461a9=_0x225b1f;super(),this[_0x2461a9(0x159)]=_0x870562,this[_0x2461a9(0x181)]=_0x46faf4,this['disposeWithMe'](_0x4815b0[_0x2461a9(0x1d1)](this));}[_0x225b1f(0x171)](_0x32b4db){const _0xfadbf1=_0x225b1f;let _0x518f7e={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0xfadbf1(0x154)](_0x32b4db,_0x518f7e);for(let [_0x65d011,_0x3a7e9b]of _0x32b4db['originals'])this[_0xfadbf1(0x194)](_0x32b4db,_0x65d011,_0x3a7e9b,_0x518f7e);return _0x518f7e;}[_0x225b1f(0x154)](_0x1b5617,_0x1b839b){const _0x487ccd=_0x225b1f;if(_0x1b5617[_0x487ccd(0x1b1)]===_0x487ccd(0x144))for(let _0x4a9c6f of _0x1b5617[_0x487ccd(0x177)]){let _0x318cf3=_0x1b5617['originals']['get'](_0x4a9c6f),_0x57051b=this[_0x487ccd(0x159)][_0x487ccd(0x176)](_0x1b5617[_0x487ccd(0x174)],_0x1b5617[_0x487ccd(0x1d5)],_0x4a9c6f);(_0x318cf3==null?void 0x0:_0x318cf3[_0x487ccd(0x1f0)])===_0x1b1709[_0x487ccd(0x18c)]&&_0x57051b&&(_0x1b839b[_0x487ccd(0x1b7)]['push']({'id':me['id'],'params':{'unitId':_0x1b5617[_0x487ccd(0x174)],'subUnitId':_0x1b5617['subUnitId'],'shapeId':_0x4a9c6f}}),_0x1b839b['undos'][_0x487ccd(0x18f)]({'id':pe['id'],'params':{'unitId':_0x1b5617['unitId'],'subUnitId':_0x1b5617[_0x487ccd(0x1d5)],'shapeId':_0x4a9c6f,'shapeName':_0x57051b[_0x487ccd(0x192)](),'shapeType':_0x57051b[_0x487ccd(0x19e)](),'shapeData':_0x56bc3c[_0x487ccd(0x1ac)](_0x57051b[_0x487ccd(0x16d)]())}}));}}[_0x225b1f(0x194)](_0x37519b,_0x1645b6,_0x1f1255,_0x1bf5d8){const _0x1adf19=_0x225b1f;if(_0x1f1255['drawingType']!==_0x1b1709[_0x1adf19(0x18c)]||_0x37519b[_0x1adf19(0x177)]['has'](_0x1645b6))return;let _0x105cf1=this[_0x1adf19(0x159)]['getShapeModel'](_0x37519b['unitId'],_0x37519b[_0x1adf19(0x1d5)],_0x1645b6);if(!_0x105cf1||!_0x10aa10(_0x105cf1[_0x1adf19(0x19e)]()))return;let _0x21bb37=_0x105cf1[_0x1adf19(0x141)]();if(!(_0x37519b[_0x1adf19(0x1b6)][_0x1adf19(0x16c)](_0x1645b6)||_0x21bb37!=null&&_0x21bb37[_0x1adf19(0x16f)]&&(_0x37519b[_0x1adf19(0x1b6)]['has'](_0x21bb37[_0x1adf19(0x16f)]['shapeId'])||_0x37519b['deletes']['has'](_0x21bb37['from']['shapeId']))||_0x21bb37!=null&&_0x21bb37['to']&&(_0x37519b[_0x1adf19(0x1b6)]['has'](_0x21bb37['to']['shapeId'])||_0x37519b[_0x1adf19(0x177)][_0x1adf19(0x16c)](_0x21bb37['to']['shapeId']))))return;let _0x17d443=_0x37519b['updates']['get'](_0x1645b6)??_0x1f1255,_0x43e604=this['_toSnapshot'](_0x37519b,_0x17d443);if(!_0x43e604)return;let _0xdfdd08=_0x2536c2(_0x43e604);if(_0xdfdd08[_0x1adf19(0x1a8)]<0x2)return;let _0x5a3bfe=_0x56bc3c[_0x1adf19(0x1ac)](_0x21bb37??{}),_0x29eb68=_0x5a3bfe[_0x1adf19(0x16f)]&&this[_0x1adf19(0x1d3)](_0x37519b,_0x5a3bfe['from'][_0x1adf19(0x12e)],_0x5a3bfe[_0x1adf19(0x16f)][_0x1adf19(0x14a)]),_0x35507a=_0x5a3bfe['to']&&this['_resolveBinding'](_0x37519b,_0x5a3bfe['to']['shapeId'],_0x5a3bfe['to'][_0x1adf19(0x14a)]);_0x5a3bfe[_0x1adf19(0x16f)]&&!_0x29eb68&&delete _0x5a3bfe[_0x1adf19(0x16f)],_0x5a3bfe['to']&&!_0x35507a&&delete _0x5a3bfe['to'];let _0x45834f=_0x29eb68||_0x21057d((_0x35507a==null?void 0x0:_0x35507a['point'])??_0xdfdd08[_0xdfdd08[_0x1adf19(0x1a8)]-0x1],_0xdfdd08[0x0]),_0x4e6817=_0x35507a||_0x21057d((_0x29eb68==null?void 0x0:_0x29eb68['point'])??_0xdfdd08[0x0],_0xdfdd08[_0xdfdd08[_0x1adf19(0x1a8)]-0x1]),_0x339bfe=_0x39a6f1(_0x43e604,_0x45834f,_0x4e6817,_0x5a3bfe);_0x339bfe!=null&&_0x339bfe[_0x1adf19(0x171)]&&_0x339bfe[_0x1adf19(0x133)]&&_0x339bfe['shapeData']&&(this['_applyUpdate'](_0x37519b,_0x17d443,_0x339bfe),_0x37519b['mode']==='refresh'?(_0x105cf1['setShapeType'](_0x339bfe[_0x1adf19(0x133)]),_0x105cf1[_0x1adf19(0x1ea)](_0x56bc3c[_0x1adf19(0x1ac)](_0x339bfe[_0x1adf19(0x195)]),!0x1)):(_0x1bf5d8[_0x1adf19(0x148)][_0x1adf19(0x18f)]({'id':$['id'],'params':{'unitId':_0x37519b[_0x1adf19(0x174)],'subUnitId':_0x37519b[_0x1adf19(0x1d5)],'shapeId':_0x1645b6,'shapeType':_0x339bfe[_0x1adf19(0x133)],'shapeData':_0x56bc3c[_0x1adf19(0x1ac)](_0x339bfe[_0x1adf19(0x195)]),'replace':!0x0}}),_0x1bf5d8[_0x1adf19(0x1eb)][_0x1adf19(0x18f)]({'id':$['id'],'params':{'unitId':_0x37519b[_0x1adf19(0x174)],'subUnitId':_0x37519b[_0x1adf19(0x1d5)],'shapeId':_0x1645b6,'shapeType':_0x105cf1['getShapeType'](),'shapeData':_0x56bc3c[_0x1adf19(0x1ac)](_0x105cf1[_0x1adf19(0x16d)]()),'replace':!0x0}})));}[_0x225b1f(0x1d3)](_0x5a8ff3,_0x1a068a,_0x5129d2){const _0x32b42c=_0x225b1f;if(_0x5a8ff3['deletes'][_0x32b42c(0x16c)](_0x1a068a))return null;let _0x1de944=_0x5a8ff3[_0x32b42c(0x1b6)][_0x32b42c(0x19d)](_0x1a068a)??_0x5a8ff3[_0x32b42c(0x1de)][_0x32b42c(0x19d)](_0x1a068a);if(!_0x1de944)return null;let _0x515f0c=this['_toSnapshot'](_0x5a8ff3,_0x1de944);return _0x515f0c?_0x150c8e(_0x515f0c,_0x5129d2):null;}[_0x225b1f(0x1e4)](_0x37dd0f,_0x20bd52){const _0xd0113b=_0x225b1f;let _0x44d152={'hostType':_0x32e2b1['UNIVER_SHEET'],'unitId':_0x37dd0f['unitId'],'subUnitId':_0x37dd0f[_0xd0113b(0x1d5)],'shapeId':_0x20bd52[_0xd0113b(0x1c2)]},_0x152bb5=this[_0xd0113b(0x181)][_0xd0113b(0x1bd)](_0x44d152);return!_0x152bb5||!_0x20bd52[_0xd0113b(0x171)]?null:{..._0x152bb5,'transform':{'left':_0x20bd52[_0xd0113b(0x171)]['left']??0x0,'top':_0x20bd52[_0xd0113b(0x171)][_0xd0113b(0x166)]??0x0,'width':_0x20bd52[_0xd0113b(0x171)]['width']??0x0,'height':_0x20bd52['transform'][_0xd0113b(0x1b4)]??0x0,'rotation':_0x20bd52[_0xd0113b(0x171)]['angle']??0x0,'flipX':_0x20bd52[_0xd0113b(0x171)]['flipX']??!0x1,'flipY':_0x20bd52[_0xd0113b(0x171)][_0xd0113b(0x12c)]??!0x1}};}[_0x225b1f(0x13b)](_0x1baba0,_0x386c1e,_0x348390){const _0x59c3c0=_0x225b1f;let _0x2bd848=_0x386c1e,_0x2f0e2c={..._0x386c1e[_0x59c3c0(0x171)],'left':_0x348390['transform'][_0x59c3c0(0x1d4)],'top':_0x348390['transform'][_0x59c3c0(0x166)],'width':_0x348390[_0x59c3c0(0x171)][_0x59c3c0(0x1cc)],'height':_0x348390['transform'][_0x59c3c0(0x1b4)],'angle':_0x348390[_0x59c3c0(0x171)]['rotation'],'flipX':_0x348390[_0x59c3c0(0x171)][_0x59c3c0(0x178)],'flipY':_0x348390['transform'][_0x59c3c0(0x12c)]},_0x384de9={..._0x2bd848,'transform':_0x2f0e2c,'sheetTransform':_0x3b3677(_0x2f0e2c,_0x1baba0['skeleton']),'axisAlignSheetTransform':_0x2d2bb4(_0x2f0e2c,_0x1baba0[_0x59c3c0(0x1b5)]),'data':{..._0x2bd848[_0x59c3c0(0x125)],'shapeType':_0x348390[_0x59c3c0(0x133)],'shapeData':_0x56bc3c['deepClone'](_0x348390[_0x59c3c0(0x195)])}};_0x1baba0['updates'][_0x59c3c0(0x1df)](_0x386c1e[_0x59c3c0(0x1c2)],_0x384de9);}};ke=fe([Z(0x0,_0x9e5ef9(Q)),Z(0x1,_0x9e5ef9(Ee)),Z(0x2,_0x9e5ef9(_0x1cf727))],ke);let Ae=class extends _0x543854{constructor(_0x1654c0=De,_0x323927,_0x5e1d9e){const _0x1ecb92=_0x225b1f;super(),this['_config']=_0x1654c0,this['_injector']=_0x323927,this[_0x1ecb92(0x150)]=_0x5e1d9e;let {..._0x3b70bb}=_0x13580a({},De,this['_config']);this[_0x1ecb92(0x150)][_0x1ecb92(0x16b)](_0x1ecb92(0x1ef),_0x3b70bb);}[_0x225b1f(0x1f3)](){const _0x47046d=_0x225b1f;let _0x223b17=this[_0x47046d(0x164)];[[de],[Q],[Ee],[ke],[Oe]][_0x47046d(0x17c)](_0x590ac5=>_0x223b17[_0x47046d(0x11f)](_0x590ac5)),_0x5e640a(_0x223b17,[[Q],[ke],[Oe]]);}};X(Ae,_0x225b1f(0x14f),_0x32e2b1['UNIVER_SHEET']),X(Ae,_0x225b1f(0x165),'SHEET_SHAPE_PLUGIN'),X(Ae,_0x225b1f(0x17d),Ce),X(Ae,_0x225b1f(0x1ca),we),Ae=fe([_0x4f8586(_0x52e3ac,_0xa332b5,_0x2d662f,_0x5b96cb,_0x5ad029),Z(0x1,_0x9e5ef9(_0x28f5b9)),Z(0x2,_0x121a34)],Ae);export{se as DEFAULT_SHAPE_HEIGHT,oe as DEFAULT_SHAPE_WIDTH,he as InsertShapeCommand,pe as InsertSheetsShapeMutation,me as RemoveSheetsShapeMutation,ge as SetShapeDrawingDataCommand,ve as SetSheetsShapeRotateCommand,ye as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,_e as ToggleSheetsShapeFlipCommand,Ae as UniverSheetsShapePlugin,be as UpdateConnectorRelationCommand,xe as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,Se as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x46f499=_0x40a9;(function(_0x52a993,_0x238e82){const _0x4dacae=_0x40a9,_0x44de31=_0x52a993();while(!![]){try{const _0x5ec74d=-parseInt(_0x4dacae(0x206))/0x1*(-parseInt(_0x4dacae(0x207))/0x2)+-parseInt(_0x4dacae(0x210))/0x3*(-parseInt(_0x4dacae(0x1f0))/0x4)+-parseInt(_0x4dacae(0x1f3))/0x5*(-parseInt(_0x4dacae(0x20c))/0x6)+-parseInt(_0x4dacae(0x1ff))/0x7+parseInt(_0x4dacae(0x204))/0x8*(parseInt(_0x4dacae(0x214))/0x9)+parseInt(_0x4dacae(0x20e))/0xa+-parseInt(_0x4dacae(0x1f6))/0xb*(parseInt(_0x4dacae(0x1fc))/0xc);if(_0x5ec74d===_0x238e82)break;else _0x44de31['push'](_0x44de31['shift']());}catch(_0x440629){_0x44de31['push'](_0x44de31['shift']());}}}(_0x2eda,0x88082));import{IShapeHostAdapterRegistry as _0xc01d44,isConnectorShape as _0x3326b2}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x47e5c0,FShape as _0x49bfb1}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x4a5ab4,UniverInstanceType as _0x48b233}from'@univerjs/core';function _0x2eda(){const _0x5d0954=['1982897kNYYLY','\x22\x20has\x20no\x20transform\x20extent.','shapeId','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','getWorkbook','1160144wJTKRx','_injector','2xKYPrf','331742MMAtBE','height','_sheetDrawingService','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','createInstance','2673438EmJofn','extend','176360JKNXPW','createShape','2613eSvfYl','length','getShape','Position','63zZuWHH','getPlacement','getOwnPropertyDescriptor','subUnitId','insertShape','unitId','function','map','transform','getUnitId','decorate','warn','width','object','\x22\x20was\x20not\x20found.','356QjwzGb','_createShapeHandle','getDrawingByParam','5jAxcNK','_getShapeAdapter','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','11WHLMLx','_getShapeScope','_commandService','setPlacement','getShapes','_shapeRef','12565668LaUeZM','syncExecuteCommand','UNIVER_SHEET'];_0x2eda=function(){return _0x5d0954;};return _0x2eda();}import{FWorksheet as _0x28abce}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x525749,SetSheetDrawingPlacementCommand as _0x3d535e,SheetDrawingAnchorType as _0x4edb6a,getSheetDrawingPlacement as _0x2ff89b}from'@univerjs/sheets-drawing';function d(_0x270128,_0x567b4b){return function(_0x1e1da1,_0x39f44a){_0x567b4b(_0x1e1da1,_0x39f44a,_0x270128);};}function f(_0x3299cf,_0x379ff7,_0x42ba89,_0x2cc397){const _0x2cb39d=_0x40a9;var _0x275927=arguments[_0x2cb39d(0x211)],_0x3d83f6=_0x275927<0x3?_0x379ff7:_0x2cc397===null?_0x2cc397=Object[_0x2cb39d(0x216)](_0x379ff7,_0x42ba89):_0x2cc397,_0x3f2120;if(typeof Reflect==_0x2cb39d(0x1ee)&&typeof Reflect[_0x2cb39d(0x1eb)]==_0x2cb39d(0x1e7))_0x3d83f6=Reflect[_0x2cb39d(0x1eb)](_0x3299cf,_0x379ff7,_0x42ba89,_0x2cc397);else{for(var _0x20d8cf=_0x3299cf[_0x2cb39d(0x211)]-0x1;_0x20d8cf>=0x0;_0x20d8cf--)(_0x3f2120=_0x3299cf[_0x20d8cf])&&(_0x3d83f6=(_0x275927<0x3?_0x3f2120(_0x3d83f6):_0x275927>0x3?_0x3f2120(_0x379ff7,_0x42ba89,_0x3d83f6):_0x3f2120(_0x379ff7,_0x42ba89))||_0x3d83f6);}return _0x275927>0x3&&_0x3d83f6&&Object['defineProperty'](_0x379ff7,_0x42ba89,_0x3d83f6),_0x3d83f6;}function _0x40a9(_0x2fd2f6,_0x4d277f){_0x2fd2f6=_0x2fd2f6-0x1e4;const _0x2eda0e=_0x2eda();let _0x40a9f4=_0x2eda0e[_0x2fd2f6];return _0x40a9f4;}let p=class extends _0x49bfb1{constructor(_0x2d74fa,_0x4ca014,_0x3391ee,_0x1c9c7b,_0x441730){const _0x25c8d3=_0x40a9;super(_0x2d74fa,_0x4ca014,_0x3391ee,_0x1c9c7b),this[_0x25c8d3(0x209)]=_0x441730;}[_0x46f499(0x215)](){const _0x2cd34e=_0x46f499;let _0x127dce=this[_0x2cd34e(0x209)][_0x2cd34e(0x1f2)]({'unitId':this[_0x2cd34e(0x1fb)][_0x2cd34e(0x1e6)],'subUnitId':this['_shapeRef'][_0x2cd34e(0x1e4)],'drawingId':this[_0x2cd34e(0x1fb)][_0x2cd34e(0x201)]});return _0x127dce?_0x2ff89b(_0x127dce):null;}[_0x46f499(0x1f9)](_0xe1bf68){const _0x2fb6e3=_0x46f499;return this[_0x2fb6e3(0x1f8)][_0x2fb6e3(0x1fd)](_0x3d535e['id'],{'unitId':this['_shapeRef'][_0x2fb6e3(0x1e6)],'subUnitId':this['_shapeRef'][_0x2fb6e3(0x1e4)],'drawings':[{'drawingId':this[_0x2fb6e3(0x1fb)][_0x2fb6e3(0x201)],'placement':_0xe1bf68}]});}['setPosition'](_0x3b999f,_0x30b79a,_0x685249,_0x155b77){const _0x561edf=_0x46f499;var _0x3f8d96,_0x135d1e;let _0x1b6718=this['_sheetDrawingService'][_0x561edf(0x1f2)]({'unitId':this[_0x561edf(0x1fb)][_0x561edf(0x1e6)],'subUnitId':this[_0x561edf(0x1fb)][_0x561edf(0x1e4)],'drawingId':this[_0x561edf(0x1fb)][_0x561edf(0x201)]});if(!_0x1b6718)return console['warn'](_0x561edf(0x20a)+this[_0x561edf(0x1fb)][_0x561edf(0x201)]+'\x22\x20was\x20not\x20found.'),this;let _0x1f1783=(_0x3f8d96=_0x1b6718['transform'])==null?void 0x0:_0x3f8d96[_0x561edf(0x1ed)],_0x5a45ce=(_0x135d1e=_0x1b6718[_0x561edf(0x1e9)])==null?void 0x0:_0x135d1e[_0x561edf(0x208)];return _0x1f1783==null||_0x5a45ce==null?(console[_0x561edf(0x1ec)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x561edf(0x1fb)][_0x561edf(0x201)]+_0x561edf(0x200)),this):(this[_0x561edf(0x1f8)][_0x561edf(0x1fd)](_0x3d535e['id'],{'unitId':this[_0x561edf(0x1fb)][_0x561edf(0x1e6)],'subUnitId':this[_0x561edf(0x1fb)][_0x561edf(0x1e4)],'drawings':[{'drawingId':this[_0x561edf(0x1fb)][_0x561edf(0x201)],'placement':{'kind':_0x4edb6a[_0x561edf(0x213)],'from':{'row':_0x3b999f,'column':_0x30b79a,'rowOffset':_0x685249,'columnOffset':_0x155b77},'width':_0x1f1783,'height':_0x5a45ce}}]}),this);}};p=f([d(0x2,_0xc01d44),d(0x3,_0x4a5ab4),d(0x4,_0x525749)],p);var m=class extends _0x28abce{[_0x46f499(0x1e5)](_0x293cf8){const _0x38aa3b=_0x46f499;let _0x131983=this[_0x38aa3b(0x1f4)]();if(!_0x131983)return null;try{let _0x5358dd=_0x131983[_0x38aa3b(0x20f)](this[_0x38aa3b(0x1f7)](),_0x293cf8);return _0x5358dd?this[_0x38aa3b(0x1f1)](_0x5358dd):(console['warn']('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.'),null);}catch(_0x4876e3){return console['warn'](_0x38aa3b(0x1f5),_0x4876e3),null;}}[_0x46f499(0x212)](_0x519892){const _0x2c5541=_0x46f499;let _0x2b9daf=this[_0x2c5541(0x1f4)]();if(!_0x2b9daf)return null;try{let _0x4c1fd9={...this[_0x2c5541(0x1f7)](),'shapeId':_0x519892},_0x3af37d=_0x2b9daf[_0x2c5541(0x212)](_0x4c1fd9);return _0x3af37d?this[_0x2c5541(0x1f1)](_0x3af37d):(console[_0x2c5541(0x1ec)](_0x2c5541(0x20a)+_0x519892+_0x2c5541(0x1ef)),null);}catch(_0x2cea4d){return console['warn'](_0x2c5541(0x202)+_0x519892+'\x22.',_0x2cea4d),null;}}[_0x46f499(0x1fa)](){const _0x454253=_0x46f499;let _0x17c3a5=this[_0x454253(0x1f4)]();if(!_0x17c3a5)return[];try{return _0x17c3a5['listShapes'](this[_0x454253(0x1f7)]())[_0x454253(0x1e8)](_0x468967=>this['_createShapeHandle'](_0x468967));}catch(_0x387775){return console[_0x454253(0x1ec)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.',_0x387775),[];}}[_0x46f499(0x1f7)](){const _0x1d3978=_0x46f499;return{'hostType':_0x48b233['UNIVER_SHEET'],'unitId':this[_0x1d3978(0x203)]()[_0x1d3978(0x1ea)](),'subUnitId':this['getSheetId']()};}['_getShapeAdapter'](){const _0x48fa0a=_0x46f499;return this[_0x48fa0a(0x205)]['get'](_0xc01d44)['get'](_0x48b233['UNIVER_SHEET']);}[_0x46f499(0x1f1)](_0xaf4177){const _0x42ae32=_0x46f499;let {unitId:_0x510e6f,subUnitId:_0x1928f7,shapeId:_0x581fb6}=_0xaf4177,_0x2c9592={'unitId':_0x510e6f,'subUnitId':_0x1928f7,'shapeId':_0x581fb6,'hostType':_0x48b233[_0x42ae32(0x1fe)]};return _0x3326b2(_0xaf4177['shapeType'])?this[_0x42ae32(0x205)][_0x42ae32(0x20b)](_0x47e5c0,_0x2c9592,this[_0x42ae32(0x205)]):this[_0x42ae32(0x205)][_0x42ae32(0x20b)](p,_0x2c9592,this[_0x42ae32(0x205)]);}};_0x28abce[_0x46f499(0x20d)](m);export{p as FSheetShape};
1
+ const _0x341fb7=_0x33a0;(function(_0x545479,_0x350115){const _0x3b24ad=_0x33a0,_0x1b454e=_0x545479();while(!![]){try{const _0x27b73f=-parseInt(_0x3b24ad(0x128))/0x1*(parseInt(_0x3b24ad(0x15b))/0x2)+parseInt(_0x3b24ad(0x12c))/0x3*(-parseInt(_0x3b24ad(0x137))/0x4)+-parseInt(_0x3b24ad(0x149))/0x5*(-parseInt(_0x3b24ad(0x14d))/0x6)+parseInt(_0x3b24ad(0x155))/0x7*(parseInt(_0x3b24ad(0x14f))/0x8)+-parseInt(_0x3b24ad(0x159))/0x9+parseInt(_0x3b24ad(0x148))/0xa*(-parseInt(_0x3b24ad(0x134))/0xb)+parseInt(_0x3b24ad(0x141))/0xc;if(_0x27b73f===_0x350115)break;else _0x1b454e['push'](_0x1b454e['shift']());}catch(_0x5e608e){_0x1b454e['push'](_0x1b454e['shift']());}}}(_0xdb31,0x61731));import{IShapeHostAdapterRegistry as _0x563e27,isConnectorShape as _0x4538a5}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x1d0afb,FShape as _0x17a926}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x32d283,UniverInstanceType as _0x877091}from'@univerjs/core';import{FWorksheet as _0x58f322}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x185ab9,SetSheetDrawingPlacementCommand as _0x77b2fd,SheetDrawingAnchorType as _0x2e5c0a,getSheetDrawingPlacement as _0x4aa0f2}from'@univerjs/sheets-drawing';function d(_0x1153d8,_0xbd6b82){return function(_0x361f4d,_0x1f3104){_0xbd6b82(_0x361f4d,_0x1f3104,_0x1153d8);};}function f(_0x454c1b,_0x31da3d,_0x53d73c,_0x5c1ce4){const _0x3a9a49=_0x33a0;var _0x2ec27a=arguments[_0x3a9a49(0x12e)],_0x2acd18=_0x2ec27a<0x3?_0x31da3d:_0x5c1ce4===null?_0x5c1ce4=Object[_0x3a9a49(0x15e)](_0x31da3d,_0x53d73c):_0x5c1ce4,_0x3e3059;if(typeof Reflect==_0x3a9a49(0x14e)&&typeof Reflect[_0x3a9a49(0x12f)]==_0x3a9a49(0x156))_0x2acd18=Reflect[_0x3a9a49(0x12f)](_0x454c1b,_0x31da3d,_0x53d73c,_0x5c1ce4);else{for(var _0x58db45=_0x454c1b[_0x3a9a49(0x12e)]-0x1;_0x58db45>=0x0;_0x58db45--)(_0x3e3059=_0x454c1b[_0x58db45])&&(_0x2acd18=(_0x2ec27a<0x3?_0x3e3059(_0x2acd18):_0x2ec27a>0x3?_0x3e3059(_0x31da3d,_0x53d73c,_0x2acd18):_0x3e3059(_0x31da3d,_0x53d73c))||_0x2acd18);}return _0x2ec27a>0x3&&_0x2acd18&&Object[_0x3a9a49(0x154)](_0x31da3d,_0x53d73c,_0x2acd18),_0x2acd18;}let p=class extends _0x17a926{constructor(_0x2d858d,_0x593061,_0x4f2a32,_0x16dc23,_0x2870fb){const _0x1afb1e=_0x33a0;super(_0x2d858d,_0x593061,_0x4f2a32,_0x16dc23),this[_0x1afb1e(0x158)]=_0x2870fb;}[_0x341fb7(0x138)](){const _0x4b3011=_0x341fb7;let _0x1aa820=this['_sheetDrawingService'][_0x4b3011(0x139)]({'unitId':this[_0x4b3011(0x135)][_0x4b3011(0x151)],'subUnitId':this[_0x4b3011(0x135)][_0x4b3011(0x13d)],'drawingId':this[_0x4b3011(0x135)]['shapeId']});return _0x1aa820?_0x4aa0f2(_0x1aa820):null;}[_0x341fb7(0x13b)](_0x49cbe7){const _0x65350b=_0x341fb7;return this[_0x65350b(0x152)][_0x65350b(0x129)](_0x77b2fd['id'],{'unitId':this[_0x65350b(0x135)][_0x65350b(0x151)],'subUnitId':this[_0x65350b(0x135)]['subUnitId'],'drawings':[{'drawingId':this[_0x65350b(0x135)]['shapeId'],'placement':_0x49cbe7}]});}[_0x341fb7(0x13a)](_0x4e2827,_0x1d63a4,_0x233fd3,_0x58ffd4){const _0x2ddc99=_0x341fb7;var _0x3c6447,_0x444f33;let _0x10abf6=this[_0x2ddc99(0x158)][_0x2ddc99(0x139)]({'unitId':this[_0x2ddc99(0x135)][_0x2ddc99(0x151)],'subUnitId':this[_0x2ddc99(0x135)][_0x2ddc99(0x13d)],'drawingId':this[_0x2ddc99(0x135)][_0x2ddc99(0x142)]});if(!_0x10abf6)return console[_0x2ddc99(0x130)](_0x2ddc99(0x133)+this[_0x2ddc99(0x135)][_0x2ddc99(0x142)]+_0x2ddc99(0x132)),this;let _0x23c818=(_0x3c6447=_0x10abf6[_0x2ddc99(0x15a)])==null?void 0x0:_0x3c6447[_0x2ddc99(0x14b)],_0x55186d=(_0x444f33=_0x10abf6[_0x2ddc99(0x15a)])==null?void 0x0:_0x444f33['height'];return _0x23c818==null||_0x55186d==null?(console['warn'](_0x2ddc99(0x133)+this[_0x2ddc99(0x135)][_0x2ddc99(0x142)]+_0x2ddc99(0x13f)),this):(this[_0x2ddc99(0x152)][_0x2ddc99(0x129)](_0x77b2fd['id'],{'unitId':this[_0x2ddc99(0x135)]['unitId'],'subUnitId':this[_0x2ddc99(0x135)]['subUnitId'],'drawings':[{'drawingId':this[_0x2ddc99(0x135)][_0x2ddc99(0x142)],'placement':{'kind':_0x2e5c0a['Position'],'from':{'row':_0x4e2827,'column':_0x1d63a4,'rowOffset':_0x233fd3,'columnOffset':_0x58ffd4},'width':_0x23c818,'height':_0x55186d}}]}),this);}};p=f([d(0x2,_0x563e27),d(0x3,_0x32d283),d(0x4,_0x185ab9)],p);function _0x33a0(_0x2a9f3b,_0x4fc04c){_0x2a9f3b=_0x2a9f3b-0x128;const _0xdb3158=_0xdb31();let _0x33a085=_0xdb3158[_0x2a9f3b];return _0x33a085;}var m=class extends _0x58f322{[_0x341fb7(0x13c)](_0x3d0289){const _0x44424f=_0x341fb7;let _0x3d25c5=this['_getShapeAdapter']();if(!_0x3d25c5)return null;try{let _0x618fa2=_0x3d25c5[_0x44424f(0x12d)](this[_0x44424f(0x143)](),_0x3d0289);return _0x618fa2?this[_0x44424f(0x147)](_0x618fa2):(console[_0x44424f(0x130)](_0x44424f(0x157)),null);}catch(_0x7999){return console[_0x44424f(0x130)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.',_0x7999),null;}}[_0x341fb7(0x131)](_0x4ffd8a){const _0x2be8f3=_0x341fb7;let _0x5c6759=this[_0x2be8f3(0x144)]();if(!_0x5c6759)return null;try{let _0x589814={...this[_0x2be8f3(0x143)](),'shapeId':_0x4ffd8a},_0xc91134=_0x5c6759[_0x2be8f3(0x131)](_0x589814);return _0xc91134?this['_createShapeHandle'](_0xc91134):(console[_0x2be8f3(0x130)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+_0x4ffd8a+'\x22\x20was\x20not\x20found.'),null);}catch(_0x246cbb){return console[_0x2be8f3(0x130)](_0x2be8f3(0x14a)+_0x4ffd8a+'\x22.',_0x246cbb),null;}}[_0x341fb7(0x12a)](){const _0x46f968=_0x341fb7;let _0xceae2b=this[_0x46f968(0x144)]();if(!_0xceae2b)return[];try{return _0xceae2b[_0x46f968(0x12b)](this[_0x46f968(0x143)]())['map'](_0x2b2397=>this[_0x46f968(0x147)](_0x2b2397));}catch(_0x351a9b){return console[_0x46f968(0x130)](_0x46f968(0x146),_0x351a9b),[];}}[_0x341fb7(0x143)](){const _0x1246cc=_0x341fb7;return{'hostType':_0x877091[_0x1246cc(0x13e)],'unitId':this[_0x1246cc(0x145)]()[_0x1246cc(0x14c)](),'subUnitId':this[_0x1246cc(0x153)]()};}['_getShapeAdapter'](){const _0x45b56c=_0x341fb7;return this['_injector'][_0x45b56c(0x136)](_0x563e27)[_0x45b56c(0x136)](_0x877091[_0x45b56c(0x13e)]);}[_0x341fb7(0x147)](_0x1dd8e2){const _0x47960b=_0x341fb7;let {unitId:_0x20157d,subUnitId:_0x39013f,shapeId:_0x4a7f88}=_0x1dd8e2,_0x6950={'unitId':_0x20157d,'subUnitId':_0x39013f,'shapeId':_0x4a7f88,'hostType':_0x877091['UNIVER_SHEET']};return _0x4538a5(_0x1dd8e2[_0x47960b(0x140)])?this[_0x47960b(0x150)]['createInstance'](_0x1d0afb,_0x6950,this['_injector']):this[_0x47960b(0x150)][_0x47960b(0x15d)](p,_0x6950,this['_injector']);}};function _0xdb31(){const _0x4c96ac=['_getShapeScope','_getShapeAdapter','getWorkbook','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','_createShapeHandle','118930wosNRA','2770wMDJyB','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','width','getUnitId','1302BmLIPM','object','56edohjU','_injector','unitId','_commandService','getSheetId','defineProperty','754579njjPZd','function','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','_sheetDrawingService','1871721eyFWwo','transform','274800JXaYFe','extend','createInstance','getOwnPropertyDescriptor','4VOdXaF','syncExecuteCommand','getShapes','listShapes','1656219ktJMVz','createShape','length','decorate','warn','getShape','\x22\x20was\x20not\x20found.','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','231cKmnSj','_shapeRef','get','4PHnHrH','getPlacement','getDrawingByParam','setPosition','setPlacement','insertShape','subUnitId','UNIVER_SHEET','\x22\x20has\x20no\x20transform\x20extent.','shapeType','13005012toJRRP','shapeId'];_0xdb31=function(){return _0x4c96ac;};return _0xdb31();}_0x58f322[_0x341fb7(0x15c)](m);export{p as FSheetShape};