@univerjs-pro/sheets-shape 1.0.0-alpha.1 → 1.0.0-alpha.3
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/README.md +7 -2
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -8
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1b2777=_0x55ca;(function(_0x274e08,_0x1363c2){const _0x4d9193=_0x55ca,_0x25b4dd=_0x274e08();while(!![]){try{const _0x1eec06=parseInt(_0x4d9193(0x103))/0x1*(-parseInt(_0x4d9193(0x123))/0x2)+-parseInt(_0x4d9193(0xb9))/0x3*(parseInt(_0x4d9193(0xf8))/0x4)+-parseInt(_0x4d9193(0x100))/0x5+parseInt(_0x4d9193(0xc0))/0x6*(parseInt(_0x4d9193(0x9b))/0x7)+-parseInt(_0x4d9193(0x12a))/0x8+-parseInt(_0x4d9193(0xf7))/0x9*(-parseInt(_0x4d9193(0x110))/0xa)+parseInt(_0x4d9193(0x9c))/0xb;if(_0x1eec06===_0x1363c2)break;else _0x25b4dd['push'](_0x25b4dd['shift']());}catch(_0x3bd7dd){_0x25b4dd['push'](_0x25b4dd['shift']());}}}(_0x5220,0xca2ae));import{ShapeModel as _0x4b5768,computeConnectorRouteLayout as _0xc69524,createUniqueShapeName as _0x35cb9a,getBasicShapeRotateBound as _0x40b288,isConnectorShape as _0xc963bc,routeConnectorLineShape as _0x4cc214}from'@univerjs-pro/engine-shape';import{CommandType as _0x2d4ac4,DependentOn as _0x2c7cf6,Disposable as _0x543ffa,DrawingTypeEnum as _0x4d3e69,ICommandService as _0xa3208c,IConfigService as _0x1802b3,IResourceManagerService as _0x1fce46,IUndoRedoService as _0x17d14d,IUniverInstanceService as _0x38fcfb,Inject as _0x19216a,Injector as _0x180637,Plugin as _0x11a17d,UniverInstanceType as _0x37476a,generateRandomId as _0x3ef264,merge as _0x14640d,sequenceExecute as _0x16df04,touchDependencies as _0x29f0fc}from'@univerjs/core';function _0x55ca(_0x400b15,_0x441b0d){_0x400b15=_0x400b15-0x99;const _0x522044=_0x5220();let _0x55cae2=_0x522044[_0x400b15];return _0x55cae2;}import{SheetInterceptorService as _0x51d1bf,SheetSkeletonService as _0x2fc9c5,getSheetCommandTarget as _0x1fda72}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x5ec59a,DrawingApplyType as _0x534eeb,ISheetDrawingService as _0x3f2b28,InsertSheetDrawingCommand as _0xff1699,RemoveSheetDrawingCommand as _0x36289e,SetDrawingApplyMutation as _0x2703c3,SetSheetDrawingCommand as _0x6aec62,transformToAxisAlignPosition as _0x45aabc,transformToDrawingPosition as _0x2d6220}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x17d981}from'@univerjs-pro/license';import{IDrawingManagerService as _0x5b1dc7}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x406b3c){'@babel/helpers - typeof';return z=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x49fdc8){return typeof _0x49fdc8;}:function(_0x5b30e7){const _0x494149=_0x55ca;return _0x5b30e7&&typeof Symbol==_0x494149(0x13b)&&_0x5b30e7[_0x494149(0x11c)]===Symbol&&_0x5b30e7!==Symbol[_0x494149(0xa3)]?_0x494149(0xad):typeof _0x5b30e7;},z(_0x406b3c);}function B(_0x4da072,_0x4db97f){const _0x1cc262=_0x55ca;if(z(_0x4da072)!='object'||!_0x4da072)return _0x4da072;var _0x264778=_0x4da072[Symbol['toPrimitive']];if(_0x264778!==void 0x0){var _0x4e734c=_0x264778[_0x1cc262(0xbe)](_0x4da072,_0x4db97f||'default');if(z(_0x4e734c)!=_0x1cc262(0x118))return _0x4e734c;throw TypeError(_0x1cc262(0xf3));}return(_0x4db97f===_0x1cc262(0xdd)?String:Number)(_0x4da072);}function V(_0x1c5dba){const _0x13323c=_0x55ca;var _0x424ccd=B(_0x1c5dba,_0x13323c(0xdd));return z(_0x424ccd)==_0x13323c(0xad)?_0x424ccd:_0x424ccd+'';}function H(_0x5c3816,_0x5b111f,_0x9f001d){const _0x14169b=_0x55ca;return(_0x5b111f=V(_0x5b111f))in _0x5c3816?Object[_0x14169b(0xb0)](_0x5c3816,_0x5b111f,{'value':_0x9f001d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c3816[_0x5b111f]=_0x9f001d,_0x5c3816;}var U=class extends _0x543ffa{constructor(){const _0x25433b=_0x55ca;super(),H(this,_0x25433b(0x113),new Map()),H(this,_0x25433b(0xe3),new Set()),H(this,'_groupIds',new Set());}[_0x1b2777(0xc2)](_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3){const _0xbf33cf=_0x1b2777;let _0x3bccdf=new _0x4b5768(_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3);return this[_0xbf33cf(0x113)][_0xbf33cf(0xba)](_0xddb1a5,_0x3bccdf),_0xc963bc(_0xda0a65)&&this[_0xbf33cf(0xe3)]['add'](_0xddb1a5),_0x3bccdf;}['getBasicShapeRelation'](_0x550e21){const _0x5b4808=_0x1b2777;let _0x42144a=[];for(let _0x3304dd of this['_linesIds']){let _0x4f1c5a=this[_0x5b4808(0x113)]['get'](_0x3304dd);if(_0x4f1c5a){let _0x3f90e3=_0x4f1c5a[_0x5b4808(0xb4)]();if(_0x3f90e3){var _0x10e2e5,_0xdadc62;((_0x10e2e5=_0x3f90e3[_0x5b4808(0xa0)])==null?void 0x0:_0x10e2e5['shapeId'])===_0x550e21&&_0x42144a['push']({..._0x3f90e3[_0x5b4808(0xa0)],'lineShapeId':_0x3304dd,'isFrom':!0x0}),((_0xdadc62=_0x3f90e3['to'])==null?void 0x0:_0xdadc62[_0x5b4808(0x102)])===_0x550e21&&_0x42144a['push']({..._0x3f90e3['to'],'lineShapeId':_0x3304dd,'isFrom':!0x1});}}}return _0x42144a;}[_0x1b2777(0xff)](_0x2869e2){const _0x219345=_0x1b2777;let _0x32e2bc=this[_0x219345(0x113)]['get'](_0x2869e2);if(_0x32e2bc)return _0x32e2bc['getShapeRelation']();}[_0x1b2777(0x10b)](_0x2f5100){const _0x2ca4fc=_0x1b2777;let _0x22e160=this[_0x2ca4fc(0x113)]['get'](_0x2f5100);if(_0x22e160)return _0x22e160[_0x2ca4fc(0x10b)]();}[_0x1b2777(0xdc)](_0x5e5935){const _0x21760b=_0x1b2777;return this[_0x21760b(0x113)][_0x21760b(0x134)](_0x5e5935);}[_0x1b2777(0xcc)](){const _0x4c4b6e=_0x1b2777;return Array[_0x4c4b6e(0xa0)](this[_0x4c4b6e(0x113)][_0x4c4b6e(0xdf)]())[_0x4c4b6e(0x130)](_0xc4514d=>_0xc4514d[_0x4c4b6e(0x117)]()||_0xc4514d[_0x4c4b6e(0xbf)]());}[_0x1b2777(0xb3)](_0x498814){const _0x21451d=_0x1b2777;let _0x22db25=this[_0x21451d(0x113)]['get'](_0x498814);_0x22db25&&(_0xc963bc(_0x22db25['getShapeType']())&&this[_0x21451d(0xe3)][_0x21451d(0x10f)](_0x498814),this[_0x21451d(0x113)][_0x21451d(0x10f)](_0x498814));}[_0x1b2777(0xeb)](){const _0x15b9c4=_0x1b2777;let _0x409e80=[];return this[_0x15b9c4(0x113)][_0x15b9c4(0xa4)](_0x4a9294=>{const _0x145899=_0x15b9c4;_0x409e80['push'](_0x4a9294[_0x145899(0xeb)]());}),_0x409e80;}[_0x1b2777(0xed)](_0x431fdd){const _0x2ffa21=_0x1b2777;for(let _0x2f3b0a of _0x431fdd){let {id:_0x4471f2,shapeType:_0x53c6c5,name:_0x3f0215}=_0x2f3b0a,_0x16b95d=this['addShape'](_0x53c6c5,_0x4471f2,_0x2f3b0a[_0x2ffa21(0xf1)],_0x3f0215);_0x16b95d&&_0x16b95d[_0x2ffa21(0xe0)]()&&this[_0x2ffa21(0xe3)]['add'](_0x4471f2);}}[_0x1b2777(0x122)](){const _0x421825=_0x1b2777;this[_0x421825(0xef)]||(this['_shapes'][_0x421825(0xa4)](_0x16becf=>{const _0x4f8a66=_0x421825;_0x16becf[_0x4f8a66(0x122)]();}),this[_0x421825(0x113)][_0x421825(0x114)](),this[_0x421825(0xe3)][_0x421825(0x114)](),this['_groupIds'][_0x421825(0x114)](),super[_0x421825(0x122)]());}};function W(_0x5a7aa5,_0x2d4550){return function(_0x219768,_0x3f7676){_0x2d4550(_0x219768,_0x3f7676,_0x5a7aa5);};}function G(_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e){const _0x1e5050=_0x1b2777;var _0x3ca514=arguments[_0x1e5050(0xec)],_0x20c0f4=_0x3ca514<0x3?_0x47fcfb:_0x52b22e===null?_0x52b22e=Object[_0x1e5050(0xee)](_0x47fcfb,_0x31ed06):_0x52b22e,_0xdb86fb;if(typeof Reflect==_0x1e5050(0x118)&&typeof Reflect[_0x1e5050(0xfc)]=='function')_0x20c0f4=Reflect[_0x1e5050(0xfc)](_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e);else{for(var _0x2c8f04=_0x3b2e62[_0x1e5050(0xec)]-0x1;_0x2c8f04>=0x0;_0x2c8f04--)(_0xdb86fb=_0x3b2e62[_0x2c8f04])&&(_0x20c0f4=(_0x3ca514<0x3?_0xdb86fb(_0x20c0f4):_0x3ca514>0x3?_0xdb86fb(_0x47fcfb,_0x31ed06,_0x20c0f4):_0xdb86fb(_0x47fcfb,_0x31ed06))||_0x20c0f4);}return _0x3ca514>0x3&&_0x20c0f4&&Object[_0x1e5050(0xb0)](_0x47fcfb,_0x31ed06,_0x20c0f4),_0x20c0f4;}let K=class extends _0x543ffa{constructor(_0x5b1a1d){const _0x48700b=_0x1b2777;super(),this[_0x48700b(0x112)]=_0x5b1a1d,H(this,_0x48700b(0xa9),new Map()),this['_initSnapshot']();}[_0x1b2777(0xb6)](_0x13bf01,_0x165f3f){const _0x2112ac=_0x1b2777;let _0x3c0a10=this[_0x2112ac(0xa9)][_0x2112ac(0x10e)](_0x13bf01);_0x3c0a10||(_0x3c0a10=new Map(),this['_shapeModelManagerMap'][_0x2112ac(0xba)](_0x13bf01,_0x3c0a10));let _0x10b2d2=_0x3c0a10[_0x2112ac(0x10e)](_0x165f3f);return _0x10b2d2||(_0x10b2d2=new U(),_0x3c0a10[_0x2112ac(0xba)](_0x165f3f,_0x10b2d2)),_0x10b2d2;}['insertShape'](_0x41098d,_0x3b218c,_0x35d2d8,_0x114122,_0x31d540,_0x148064){const _0x12f527=_0x1b2777;this['_ensureShapeModelManager'](_0x41098d,_0x3b218c)[_0x12f527(0xc2)](_0x35d2d8,_0x114122,_0x31d540,_0x148064);}[_0x1b2777(0xb3)](_0x9f4c2f,_0x10aaad,_0xcc0751){const _0x231647=_0x1b2777;this[_0x231647(0xb6)](_0x9f4c2f,_0x10aaad)[_0x231647(0xb3)](_0xcc0751);}['getBasicShapeType'](_0x4a20e0,_0x507199,_0x599a0a){const _0x195c52=_0x1b2777;return this[_0x195c52(0xb6)](_0x4a20e0,_0x507199)[_0x195c52(0x10b)](_0x599a0a);}[_0x1b2777(0x10b)](_0x334d4c,_0x2ceec5,_0x4a0881){const _0x123be9=_0x1b2777;return this[_0x123be9(0xb6)](_0x334d4c,_0x2ceec5)[_0x123be9(0x10b)](_0x4a0881);}[_0x1b2777(0xdc)](_0x523c96,_0x120efe,_0x23def1){const _0x4f4a0f=_0x1b2777;return this[_0x4f4a0f(0xb6)](_0x523c96,_0x120efe)[_0x4f4a0f(0xdc)](_0x23def1);}[_0x1b2777(0x126)](_0x133eda,_0x43167a,_0x2d80e3){const _0x338d76=_0x1b2777;return this[_0x338d76(0xb6)](_0x133eda,_0x43167a)['getShapeType'](_0x2d80e3);}[_0x1b2777(0x12c)](_0x2e91b4,_0x48fb61,_0x3e89e4){const _0xf4a329=_0x1b2777;let _0x741a2=this[_0xf4a329(0xb6)](_0x2e91b4,_0x48fb61);if(!_0x741a2[_0xf4a329(0x10b)](_0x3e89e4))return;let _0x207a83=_0x741a2[_0xf4a329(0x113)][_0xf4a329(0x10e)](_0x3e89e4);if(_0x207a83)return _0x207a83[_0xf4a329(0xa2)]();}[_0x1b2777(0xcc)](_0xd26554,_0x2d65ce){const _0x1edde1=_0x1b2777;return this[_0x1edde1(0xb6)](_0xd26554,_0x2d65ce)[_0x1edde1(0xcc)]();}['getShapeModel'](_0x1c224d,_0x324c44,_0x2bfc86){const _0x4f77db=_0x1b2777;return this[_0x4f77db(0xb6)](_0x1c224d,_0x324c44)['_shapes'][_0x4f77db(0x10e)](_0x2bfc86);}[_0x1b2777(0x119)](_0x1a1882,_0x200c36,_0x2a5bcd){const _0x5d3258=_0x1b2777;return this[_0x5d3258(0xb6)](_0x1a1882,_0x200c36)[_0x5d3258(0x119)](_0x2a5bcd);}['getLineShapeRelation'](_0x56e0a9,_0x3579b5,_0xec2178){const _0x4fa56e=_0x1b2777;let _0x22ab84=this['_ensureShapeModelManager'](_0x56e0a9,_0x3579b5)[_0x4fa56e(0x113)][_0x4fa56e(0x10e)](_0xec2178);if(_0x22ab84)return _0x22ab84[_0x4fa56e(0xb4)]();}[_0x1b2777(0x105)](){}[_0x1b2777(0x9d)](_0x24e78c){const _0x2247b1=_0x1b2777;let _0x503002={},_0x3b420c=this[_0x2247b1(0xa9)][_0x2247b1(0x10e)](_0x24e78c);return _0x3b420c&&_0x3b420c[_0x2247b1(0xa4)]((_0x31d710,_0x5930a5)=>{const _0x3f2a5c=_0x2247b1;let _0x2b4b20=_0x31d710['toJSON']();_0x2b4b20[_0x3f2a5c(0xec)]>0x0&&(_0x503002[_0x5930a5]=_0x2b4b20);}),JSON['stringify'](_0x503002);}[_0x1b2777(0x139)](_0x3e9023,_0x5ad212){const _0x209237=_0x1b2777;Object[_0x209237(0x9f)](_0x5ad212)[_0x209237(0xa4)](_0x272d8f=>{const _0x2bfe5a=_0x209237;this[_0x2bfe5a(0xb6)](_0x3e9023,_0x272d8f)[_0x2bfe5a(0xed)](_0x5ad212[_0x272d8f]);});}['toJSON'](){const _0x372fab=_0x1b2777;let _0x930d={};return this[_0x372fab(0xa9)][_0x372fab(0xa4)]((_0x214802,_0x169147)=>{const _0x5ac8c3=_0x372fab;_0x930d[_0x169147]={},_0x214802[_0x5ac8c3(0xa4)]((_0x5e68f3,_0xc8d4ae)=>{const _0x57f301=_0x5ac8c3;_0x930d[_0x169147][_0xc8d4ae]=_0x5e68f3[_0x57f301(0xeb)]();});}),_0x930d;}['fromJSON'](_0x2bf9a6){Object['keys'](_0x2bf9a6)['forEach'](_0x2f3dd5=>{const _0x501e8d=_0x55ca;let _0x3b77aa=_0x2bf9a6[_0x2f3dd5];Object[_0x501e8d(0x9f)](_0x3b77aa)[_0x501e8d(0xa4)](_0x1baf71=>{const _0x33567e=_0x501e8d;this[_0x33567e(0xb6)](_0x2f3dd5,_0x1baf71)[_0x33567e(0xed)](_0x3b77aa[_0x1baf71]);});});}[_0x1b2777(0x101)](){const _0xbc9278=_0x1b2777;this[_0xbc9278(0x112)][_0xbc9278(0xaa)]({'pluginName':_0xbc9278(0xfa),'businesses':[_0x37476a[_0xbc9278(0x11b)]],'toJson':_0xb9192f=>this[_0xbc9278(0x9d)](_0xb9192f),'parseJson':_0x4fea57=>JSON[_0xbc9278(0xa5)](_0x4fea57),'onLoad':(_0x4d5bbe,_0x106b80)=>{const _0x14afc0=_0xbc9278;this[_0x14afc0(0x139)](_0x4d5bbe,_0x106b80);},'onUnLoad':_0x1d625e=>{const _0x51e8d0=_0xbc9278;let _0xe22bab=this[_0x51e8d0(0xa9)][_0x51e8d0(0x10e)](_0x1d625e);_0xe22bab&&(_0xe22bab[_0x51e8d0(0xa4)](_0x549dd2=>{const _0x3af62d=_0x51e8d0;_0x549dd2[_0x3af62d(0x122)]();}),this['_shapeModelManagerMap']['delete'](_0x1d625e));}});}[_0x1b2777(0x122)](){const _0x501602=_0x1b2777;this[_0x501602(0xa9)][_0x501602(0xa4)](_0x3cf640=>{const _0x4a0467=_0x501602;_0x3cf640[_0x4a0467(0xa4)](_0x1a2dd6=>{_0x1a2dd6['dispose']();});});}};K=G([W(0x0,_0x1fce46)],K);const q={'id':'sheet.mutation.insert-shape','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x56a6eb,_0x3cf7a7)=>{const _0x56004f=_0x1b2777;let {unitId:_0x4980d5,subUnitId:_0x5bf1db,shapeType:_0x1358b1,shapeId:_0x524b60,shapeName:_0x454e78,shapeData:_0x552638}=_0x3cf7a7;return _0x56a6eb[_0x56004f(0x10e)](K)[_0x56004f(0x12f)](_0x4980d5,_0x5bf1db,_0x1358b1,_0x524b60,_0x552638,_0x454e78),!0x0;}},J={'id':_0x1b2777(0xe9),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x195ddf,_0x2805a4)=>{const _0x2d8398=_0x1b2777;let {unitId:_0x24bb16,subUnitId:_0x182991,shapeId:_0x2547d1}=_0x2805a4;return _0x195ddf[_0x2d8398(0x10e)](K)['removeShape'](_0x24bb16,_0x182991,_0x2547d1),!0x0;}},Y={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x9a),'handler':(_0x5b9660,_0x468d47)=>{const _0x4c7424=_0x1b2777;var _0x147934,_0xfb3acb,_0x56fe63;let _0x3dcce5=_0x1fda72(_0x5b9660[_0x4c7424(0x10e)](_0x38fcfb),_0x468d47);if(!_0x3dcce5)return!0x1;let _0x1cf566=_0x5b9660[_0x4c7424(0x10e)](_0x2fc9c5),{unitId:_0x3269ef,subUnitId:_0xf103c9}=_0x3dcce5,_0x1e93c3=_0x1cf566[_0x4c7424(0x11a)](_0x3269ef,_0xf103c9);if(!_0x1e93c3)return!0x1;let _0x5845af=_0x5b9660[_0x4c7424(0x10e)](_0xa3208c),_0x32570c=_0x5b9660[_0x4c7424(0x10e)](_0x17d14d),_0x8c089a=_0x5b9660['get'](_0x51d1bf),_0x1d02e1=_0x5b9660[_0x4c7424(0x10e)](_0x3f2b28),_0x570449=_0x5b9660[_0x4c7424(0x10e)](K),{shapeType:_0x234e63,shapeData:_0x1d6c7a}=_0x468d47,_0x332c8b=_0x468d47[_0x4c7424(0x102)]||_0x3ef264(),_0x48ddc9={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b,'shapeName':(_0x147934=_0x468d47[_0x4c7424(0xc1)])==null?_0x35cb9a(_0x234e63,_0x570449[_0x4c7424(0xcc)](_0x3269ef,_0xf103c9)):_0x147934,'shapeType':_0x234e63,'shapeData':_0x1d6c7a},_0x44a293=_0x468d47['width']||0xc8,_0x49311b=_0x468d47[_0x4c7424(0x135)]||0xc8,_0x3124c0=0x0,_0x128d10=0x0,_0x3d28cf={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x38e155={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x468d47['position']){let {x:_0xefaab0,y:_0x3c6182}=_0x468d47[_0x4c7424(0xb5)];_0x3124c0=_0xefaab0,_0x128d10=_0x3c6182,_0x3d28cf=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0,_0x3c6182),_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0+_0x44a293,_0x3c6182+_0x49311b);}else{if(_0x468d47['range']){let {startRow:_0x513d6c,startColumn:_0x205e45}=_0x468d47[_0x4c7424(0xfb)];_0x3d28cf={'row':_0x513d6c,'rowOffset':0xa,'column':_0x205e45,'columnOffset':0xa};let _0x11d9cf=_0x1e93c3[_0x4c7424(0xea)](_0x513d6c,_0x205e45);_0x3124c0=_0x11d9cf[_0x4c7424(0xa7)]+0xa,_0x128d10=_0x11d9cf[_0x4c7424(0xf9)]+0xa,_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0x3124c0+_0x44a293,_0x128d10+_0x49311b);}}let _0x1ce045={'from':_0x3d28cf,'to':_0x38e155},_0x5d1e57={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'drawingId':_0x332c8b,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x1ce045,'transform':{'left':_0x3124c0,'top':_0x128d10,'width':_0x44a293,'height':_0x49311b},'data':{'shapeType':_0x234e63,'shapeData':_0x1d6c7a},'axisAlignSheetTransform':_0x1ce045,'allowTransform':!0x0};_0xc963bc(_0x234e63)&&(_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xf5)]=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['rotateEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['resizeEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xde)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xcd)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xbb)]=!0x1,_0x5d1e57['transform']['borderEnabled']=!0x1);let {undo:_0x40bd9b,redo:_0x22dfb0,objects:_0x11d2e5}=_0x1d02e1['getBatchAddOp']([_0x5d1e57]),_0x5427c6=_0x8c089a[_0x4c7424(0x10d)]({'id':_0xff1699['id'],'params':{'unitId':_0x3269ef,'drawings':[_0x5d1e57]}}),_0x239935=[...(_0xfb3acb=_0x5427c6[_0x4c7424(0xd5)])==null?[]:_0xfb3acb,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x22dfb0,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xd6)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6[_0x4c7424(0xd7)],{'id':q['id'],'params':_0x48ddc9}],_0x507e46=[{'id':J['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b}},...(_0x56fe63=_0x5427c6['preUndos'])==null?[]:_0x56fe63,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x40bd9b,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xaf)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6['undos']];return _0x16df04(_0x239935,_0x5845af)[_0x4c7424(0xb2)]?(_0x32570c[_0x4c7424(0x125)]({'unitID':_0x3269ef,'undoMutations':_0x507e46,'redoMutations':_0x239935}),!0x0):!0x1;}},X={'id':_0x1b2777(0xcf),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x2b7823,_0x561614)=>{const _0x352e89=_0x1b2777;let {unitId:_0x3d754f,subUnitId:_0x5e5a7a,shapeType:_0x47825f,shapeId:_0x18d440,shapeData:_0x3ad095}=_0x561614,_0x584b72=_0x2b7823['get'](K)[_0x352e89(0xb8)](_0x3d754f,_0x5e5a7a,_0x18d440);return _0x584b72&&(_0x47825f!==void 0x0&&_0x584b72[_0x352e89(0x105)](_0x47825f),_0x3ad095&&(_0x584b72==null||_0x584b72['setShapeData'](_0x3ad095,!0x0))),!0x0;}},ee={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xc8),'handler':(_0x3a27c9,_0x35b3bf)=>{const _0x3aebeb=_0x1b2777;var _0x462f99,_0x550383;let _0x453046=_0x1fda72(_0x3a27c9[_0x3aebeb(0x10e)](_0x38fcfb),_0x35b3bf);if(!_0x453046)return!0x1;let _0x4e9f99=_0x3a27c9[_0x3aebeb(0x10e)](_0x2fc9c5),{unitId:_0x5e19b3,subUnitId:_0x43fb46}=_0x453046,_0x2d656e=_0x4e9f99[_0x3aebeb(0x11a)](_0x5e19b3,_0x43fb46);if(!_0x2d656e)return!0x1;let _0x3cf08d=_0x3a27c9[_0x3aebeb(0x10e)](K),{shapeId:_0x39ffc1,shapeType:_0x238a33,shapeData:_0x5904b9,position:_0x31d818,width:_0x1e2a8a,height:_0x4d456f}=_0x35b3bf,_0x1a8e44=_0x3cf08d[_0x3aebeb(0xb8)](_0x5e19b3,_0x43fb46,_0x39ffc1);if(!_0x1a8e44)return!0x1;let _0x555443=_0x3a27c9[_0x3aebeb(0x10e)](_0xa3208c),_0x5e36d7=_0x3a27c9[_0x3aebeb(0x10e)](_0x17d14d),_0xed37da=_0x3a27c9[_0x3aebeb(0x10e)](_0x51d1bf),_0x226163=_0x3a27c9[_0x3aebeb(0x10e)](_0x3f2b28),_0x342e34={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeId':_0x39ffc1,'shapeType':_0x238a33,'shapeData':_0x5904b9},_0x4bfa7d=_0x1a8e44[_0x3aebeb(0x10b)](),_0x4096c8=_0x1a8e44['getShapeData'](),{x:_0x501798,y:_0x5758a1}=_0x31d818,_0x3dee2d={'from':_0x2d656e['getCellIndexAndOffsetByPosition'](_0x501798,_0x5758a1),'to':_0x2d656e[_0x3aebeb(0x124)](_0x501798+_0x1e2a8a,_0x5758a1+_0x4d456f)},_0x43079e={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'drawingId':_0x39ffc1,'drawingType':_0x4d3e69[_0x3aebeb(0x11e)],'sheetTransform':_0x3dee2d,'transform':{'left':_0x501798,'top':_0x5758a1,'width':_0x1e2a8a,'height':_0x4d456f},'data':{'shapeType':_0x238a33,'shapeData':_0x5904b9},'axisAlignSheetTransform':_0x3dee2d,'allowTransform':!0x0};_0xc963bc(_0x238a33)&&(_0x43079e['data'][_0x3aebeb(0xf5)]=!0x1,_0x43079e[_0x3aebeb(0xf2)][_0x3aebeb(0xcd)]=!0x1,_0x43079e[_0x3aebeb(0xf2)]['resizeEnabled']=!0x1,_0x43079e[_0x3aebeb(0xf2)]['borderEnabled']=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xcd)]=!0x1,_0x43079e['transform'][_0x3aebeb(0xbb)]=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xde)]=!0x1);let {undo:_0xf01f82,redo:_0x570e66,objects:_0x1e2eb2}=_0x226163[_0x3aebeb(0x99)]([_0x43079e]),_0x59ce19=_0xed37da['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x5e19b3,'drawings':[_0x43079e]}}),_0x15daf4=[...(_0x462f99=_0x59ce19[_0x3aebeb(0xd5)])==null?[]:_0x462f99,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0x570e66,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xd7)],{'id':X['id'],'params':_0x342e34}],_0x116dd2=[...(_0x550383=_0x59ce19[_0x3aebeb(0xe1)])==null?[]:_0x550383,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0xf01f82,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xce)],{'id':X['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeType':_0x4bfa7d,'shapeId':_0x39ffc1,'shapeData':_0x4096c8}}];return _0x16df04(_0x15daf4,_0x555443)[_0x3aebeb(0xb2)]?(_0x5e36d7[_0x3aebeb(0x125)]({'unitID':_0x5e19b3,'undoMutations':_0x116dd2,'redoMutations':_0x15daf4}),!0x0):!0x1;}},Z={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x129),'handler':(_0x48e061,_0xf599e8)=>{const _0x30e9c8=_0x1b2777;var _0x264938,_0x171074;let _0x34ba24=_0x1fda72(_0x48e061['get'](_0x38fcfb),_0xf599e8);if(!_0x34ba24)return!0x1;let _0x5bfbc9=_0x48e061[_0x30e9c8(0x10e)](_0x2fc9c5),{unitId:_0x2ca4fb,subUnitId:_0x52fe7e}=_0x34ba24,_0x5c370a=_0x5bfbc9[_0x30e9c8(0x115)](_0x2ca4fb,_0x52fe7e);if(!_0x5c370a)return!0x1;let _0xae6f32=_0x48e061[_0x30e9c8(0x10e)](_0x3f2b28),{shapeId:_0x3a8cd0,flipH:_0x1a0e57,flipV:_0x38f6a6}=_0xf599e8,_0x3c2534=_0xae6f32[_0x30e9c8(0x10a)]({'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0});if(!_0x3c2534)return!0x1;let _0x533831=_0x48e061[_0x30e9c8(0x10e)](K)['getShapeModel'](_0x2ca4fb,_0x52fe7e,_0x3a8cd0);if(!_0x533831)return!0x1;let _0x34beb9=_0x48e061[_0x30e9c8(0x10e)](_0xa3208c),_0x29869d=_0x48e061['get'](_0x17d14d),_0x239276=_0x48e061[_0x30e9c8(0x10e)](_0x51d1bf),_0x4d2a66={..._0x3c2534[_0x30e9c8(0xc6)]};_0x1a0e57!==void 0x0&&(_0x4d2a66[_0x30e9c8(0x10c)]=!_0x4d2a66[_0x30e9c8(0x10c)]),_0x38f6a6!==void 0x0&&(_0x4d2a66[_0x30e9c8(0xd0)]=!_0x4d2a66['flipY']);let _0x4f02a1=_0x2d6220(_0x4d2a66,_0x5c370a),_0x21b8ad=_0x45aabc(_0x4d2a66,_0x5c370a),_0x26c64a=_0x533831[_0x30e9c8(0x10b)](),_0xfdf682=_0x533831[_0x30e9c8(0xa2)](),_0x867b43={'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x4f02a1,'transform':_0x4d2a66,'data':{'shapeType':_0x26c64a,'shapeData':_0xfdf682},'axisAlignSheetTransform':_0x21b8ad,'allowTransform':!0x0},{undo:_0x2743e2,redo:_0x467de5,objects:_0x18e6c9}=_0xae6f32[_0x30e9c8(0x99)]([_0x867b43]),_0x286679=_0x239276[_0x30e9c8(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x2ca4fb,'drawings':[_0x867b43]}}),_0x4a4a7c=[...(_0x264938=_0x286679[_0x30e9c8(0xd5)])==null?[]:_0x264938,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x467de5,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679['redos']],_0x3d4f42=[...(_0x171074=_0x286679['preUndos'])==null?[]:_0x171074,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x2743e2,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679[_0x30e9c8(0xce)]];if(_0xc963bc(_0x26c64a)){let _0x32dd5e=_0x533831[_0x30e9c8(0xb4)]();if(_0x32dd5e){let _0x5a7b3a={..._0x32dd5e};_0x5a7b3a[_0x30e9c8(0xa0)]=void 0x0,_0x5a7b3a['to']=void 0x0,_0x4a4a7c[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x5a7b3a}}}),_0x3d4f42[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x32dd5e}}});}}return _0x16df04(_0x4a4a7c,_0x34beb9)['result']?(_0x29869d[_0x30e9c8(0x125)]({'unitID':_0x2ca4fb,'undoMutations':_0x3d4f42,'redoMutations':_0x4a4a7c}),!0x0):!0x1;}},Q={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xa1),'handler':(_0x4ee665,_0x1d2249)=>{const _0x24c5bf=_0x1b2777;var _0x3aa8c2,_0x26eec3;let _0x182c7d=_0x1fda72(_0x4ee665[_0x24c5bf(0x10e)](_0x38fcfb),_0x1d2249);if(!_0x182c7d)return!0x1;let _0x215e90=_0x4ee665[_0x24c5bf(0x10e)](_0x2fc9c5),{unitId:_0x167f6f,subUnitId:_0x3b9010}=_0x182c7d,_0x528dfd=_0x215e90[_0x24c5bf(0x115)](_0x167f6f,_0x3b9010);if(!_0x528dfd)return!0x1;let _0x4aceed=_0x4ee665[_0x24c5bf(0x10e)](_0x3f2b28),{shapeId:_0x3bf16c,rotate:_0x1d4fc6}=_0x1d2249,_0x3980aa=_0x4aceed[_0x24c5bf(0x10a)]({'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c});if(!_0x3980aa)return!0x1;let _0x4c497c=_0x4ee665[_0x24c5bf(0x10e)](K)[_0x24c5bf(0xb8)](_0x167f6f,_0x3b9010,_0x3bf16c);if(!_0x4c497c)return!0x1;let _0x22a473=_0x4ee665['get'](_0xa3208c),_0x21cfac=_0x4ee665[_0x24c5bf(0x10e)](_0x17d14d),_0x4bfe8f=_0x4ee665['get'](_0x51d1bf),_0x6c7996={..._0x3980aa[_0x24c5bf(0xc6)]};_0x1d4fc6!==void 0x0&&(_0x6c7996['angle']=(_0x6c7996[_0x24c5bf(0xe8)]||0x0)+_0x1d4fc6);let _0x45de82=_0x2d6220(_0x6c7996,_0x528dfd),_0x16888a=_0x45aabc(_0x6c7996,_0x528dfd),_0x384be5=_0x4c497c['getShapeType'](),_0x37868b=_0x4c497c['getShapeData'](),_0xa45a1c={'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c,'drawingType':_0x4d3e69[_0x24c5bf(0x11e)],'sheetTransform':_0x45de82,'transform':_0x6c7996,'data':{'shapeType':_0x384be5,'shapeData':_0x37868b},'axisAlignSheetTransform':_0x16888a,'allowTransform':!0x0},{undo:_0x2b7507,redo:_0x1cb603,objects:_0x1a9b5d}=_0x4aceed[_0x24c5bf(0x99)]([_0xa45a1c]),_0x489e65=_0x4bfe8f[_0x24c5bf(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x167f6f,'drawings':[_0xa45a1c]}}),_0x456693=[...(_0x3aa8c2=_0x489e65[_0x24c5bf(0xd5)])==null?[]:_0x3aa8c2,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x1cb603,'objects':_0x1a9b5d,'type':_0x534eeb[_0x24c5bf(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xd7)]],_0x46358c=[...(_0x26eec3=_0x489e65[_0x24c5bf(0xe1)])==null?[]:_0x26eec3,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x2b7507,'objects':_0x1a9b5d,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xce)]];return _0x16df04(_0x456693,_0x22a473)[_0x24c5bf(0xb2)]?(_0x21cfac[_0x24c5bf(0x125)]({'unitID':_0x167f6f,'undoMutations':_0x46358c,'redoMutations':_0x456693}),!0x0):!0x1;}},te={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x3e0ca0,_0x5ac4b2)=>{const _0x2fbda7=_0x1b2777;var _0x42b59b;let _0x2a5e71=_0x1fda72(_0x3e0ca0['get'](_0x38fcfb),_0x5ac4b2);if(!_0x2a5e71)return!0x1;let {unitId:_0x3bf8a0,subUnitId:_0x467450}=_0x2a5e71,{shapeId:_0x17978c}=_0x5ac4b2,_0x1c2769=_0x3e0ca0[_0x2fbda7(0x10e)](K)[_0x2fbda7(0xb8)](_0x3bf8a0,_0x467450,_0x17978c);if(!_0x1c2769)return!0x1;let _0x16ec8b=_0x1c2769[_0x2fbda7(0x12b)](),_0x54a32a=(_0x42b59b=_0x16ec8b==null?void 0x0:_0x16ec8b['isHorizontal'])==null?!0x0:_0x42b59b,_0x5c4340=!_0x54a32a,_0x2758fa=_0x3e0ca0[_0x2fbda7(0x10e)](_0xa3208c),_0x1899f9=_0x3e0ca0[_0x2fbda7(0x10e)](_0x17d14d),_0x2deddc={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x5c4340}}},_0x82fec3={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x54a32a}}},_0x27e504=[{'id':X['id'],'params':_0x2deddc}],_0x16597c=[{'id':X['id'],'params':_0x82fec3}];return _0x16df04(_0x27e504,_0x2758fa)[_0x2fbda7(0xb2)]?(_0x1899f9['pushUndoRedo']({'unitID':_0x3bf8a0,'undoMutations':_0x16597c,'redoMutations':_0x27e504}),!0x0):!0x1;}},ne={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x128),'handler':(_0x5344ba,_0x246558)=>{const _0x30192c=_0x1b2777;var _0x3a3d48,_0x328601,_0x12121b,_0x4a321f;let _0x1c75d3=_0x1fda72(_0x5344ba[_0x30192c(0x10e)](_0x38fcfb),_0x246558);if(!_0x1c75d3)return!0x1;let _0x15709a=_0x5344ba[_0x30192c(0x10e)](_0x2fc9c5),{unitId:_0x3309bb,subUnitId:_0x1945e1}=_0x1c75d3,_0x18ee9f=_0x15709a[_0x30192c(0x115)](_0x3309bb,_0x1945e1);if(!_0x18ee9f)return!0x1;let _0x87fa3c=_0x5344ba[_0x30192c(0x10e)](_0x3f2b28),{connectorShapeId:_0x240910,width:_0x50fcd7,height:_0x9c1af2,left:_0x4198a0,top:_0x5043af,flipX:_0x22df10,flipY:_0x2d657b,rotation:_0xb858bd,oldAdjustValues:_0x43c30b,newAdjustValues:_0x21f304,oldLineType:_0xb66e6,newLineType:_0x5d3dad,oldRelation:_0x7132be,newRelation:_0x5fb073}=_0x246558,_0x2c4646=_0x87fa3c['getDrawingByParam']({'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910});if(!_0x2c4646)return!0x1;let _0x5591ee=_0x5344ba[_0x30192c(0x10e)](K)[_0x30192c(0xb8)](_0x3309bb,_0x1945e1,_0x240910);if(!_0x5591ee)return!0x1;let _0x521fa3=_0x5344ba[_0x30192c(0x10e)](_0xa3208c),_0x480f7f=_0x5344ba[_0x30192c(0x10e)](_0x17d14d),_0x5085c7=_0x5344ba['get'](_0x51d1bf),_0x4adcee={..._0x2c4646[_0x30192c(0xc6)],'width':_0x50fcd7,'height':_0x9c1af2,'left':_0x4198a0,'top':_0x5043af,'flipX':_0x22df10,'flipY':_0x2d657b,'angle':(_0x3a3d48=_0xb858bd==null?(_0x328601=_0x2c4646[_0x30192c(0xc6)])==null?void 0x0:_0x328601[_0x30192c(0xe8)]:_0xb858bd)==null?0x0:_0x3a3d48},_0x38e6ef=_0x2d6220(_0x4adcee,_0x18ee9f),_0x37787c=_0x45aabc(_0x4adcee,_0x18ee9f),_0x172127=_0x5591ee['getShapeType'](),_0x185478=_0x5591ee[_0x30192c(0xa2)](),_0x2a5b4d={'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x38e6ef,'transform':_0x4adcee,'data':{'shapeType':_0x5d3dad||_0xb66e6||_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x21f304||_0x43c30b||(_0x185478==null?void 0x0:_0x185478['adjustValues']),'relation':_0x5fb073||_0x7132be||(_0x185478==null?void 0x0:_0x185478['relation'])}},'axisAlignSheetTransform':_0x37787c,'allowTransform':!0x0},{undo:_0x266eb1,redo:_0x22cda4,objects:_0x2d79d6}=_0x87fa3c[_0x30192c(0x99)]([_0x2a5b4d]),_0xe78cdb=_0x5085c7['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x3309bb,'drawings':[_0x2a5b4d]}}),_0x55fed2=[...(_0x12121b=_0xe78cdb[_0x30192c(0xd5)])==null?[]:_0x12121b,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x22cda4,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb[_0x30192c(0xd7)],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x5d3dad,'shapeData':{'adjustValues':_0x21f304,'relation':_0x5fb073}}}],_0x15f412=[...(_0x4a321f=_0xe78cdb[_0x30192c(0xe1)])==null?[]:_0x4a321f,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x266eb1,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb['undos'],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x43c30b||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x11f)]),'relation':_0x7132be||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x13a)])}}}];return _0x16df04(_0x55fed2,_0x521fa3)[_0x30192c(0xb2)]?(_0x480f7f[_0x30192c(0x125)]({'unitID':_0x3309bb,'undoMutations':_0x15f412,'redoMutations':_0x55fed2}),!0x0):!0x1;}},re={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xe4),'handler':(_0x13a5e6,_0x50146b)=>{const _0x1fcd11=_0x1b2777;var _0x229e79,_0x2a2be8;let _0x213a4e=_0x1fda72(_0x13a5e6[_0x1fcd11(0x10e)](_0x38fcfb),_0x50146b);if(!_0x213a4e)return!0x1;let _0x2d5074=_0x13a5e6[_0x1fcd11(0x10e)](_0x2fc9c5),{unitId:_0x27196b,subUnitId:_0x3abcb8}=_0x213a4e,_0x467457=_0x2d5074['getSkeleton'](_0x27196b,_0x3abcb8);if(!_0x467457)return!0x1;let _0x43876a=_0x13a5e6[_0x1fcd11(0x10e)](_0x3f2b28),{shapeId:_0x4375dc,width:_0x280057,height:_0xeb5e0e,left:_0xf9503d,top:_0x41249b,flipX:_0x332bb6,flipY:_0x3b11c6,angle:_0x1f0a28,oldAdjustValues:_0x181092,newAdjustValues:_0x594e61,oldLineType:_0x5a8a01,newLineType:_0x2be886}=_0x50146b,_0x42f2f3=_0x43876a[_0x1fcd11(0x10a)]({'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc});if(!_0x42f2f3)return!0x1;let _0x42f827=_0x13a5e6[_0x1fcd11(0x10e)](K)[_0x1fcd11(0xb8)](_0x27196b,_0x3abcb8,_0x4375dc);if(!_0x42f827)return!0x1;let _0x2bbb79=_0x13a5e6[_0x1fcd11(0x10e)](_0xa3208c),_0x4aafee=_0x13a5e6[_0x1fcd11(0x10e)](_0x17d14d),_0x147444=_0x13a5e6[_0x1fcd11(0x10e)](_0x51d1bf),_0x4a8b68={..._0x42f2f3[_0x1fcd11(0xc6)],'width':_0x280057,'height':_0xeb5e0e,'left':_0xf9503d,'top':_0x41249b,'flipX':_0x332bb6,'flipY':_0x3b11c6,'angle':_0x1f0a28},_0xc544d3=_0x2d6220(_0x4a8b68,_0x467457),_0x199394=_0x45aabc(_0x4a8b68,_0x467457),_0x62abc3=_0x42f827[_0x1fcd11(0x10b)](),_0x12129d=_0x42f827['getShapeData'](),_0xd98f5d={'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc,'drawingType':_0x4d3e69[_0x1fcd11(0x11e)],'sheetTransform':_0xc544d3,'transform':_0x4a8b68,'data':{'shapeType':_0x2be886||_0x5a8a01||_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x594e61||_0x181092||(_0x12129d==null?void 0x0:_0x12129d[_0x1fcd11(0x11f)])}},'axisAlignSheetTransform':_0x199394,'allowTransform':!0x0},{undo:_0x2d42cc,redo:_0x394950,objects:_0x37adc1}=_0x43876a[_0x1fcd11(0x99)]([_0xd98f5d]),_0x552d28=_0x147444[_0x1fcd11(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x27196b,'drawings':[_0xd98f5d]}}),_0x2557fe=[...(_0x229e79=_0x552d28['preRedos'])==null?[]:_0x229e79,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x394950,'objects':_0x37adc1,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xd7)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x2be886,'shapeData':{'adjustValues':_0x594e61}}}],_0x2a9c33=[...(_0x2a2be8=_0x552d28[_0x1fcd11(0xe1)])==null?[]:_0x2a2be8,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x2d42cc,'objects':_0x37adc1,'type':_0x534eeb[_0x1fcd11(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xce)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x181092||(_0x12129d==null?void 0x0:_0x12129d['adjustValues'])}}}];return _0x16df04(_0x2557fe,_0x2bbb79)[_0x1fcd11(0xb2)]?(_0x4aafee[_0x1fcd11(0x125)]({'unitID':_0x27196b,'undoMutations':_0x2a9c33,'redoMutations':_0x2557fe}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x20977a,_0x3973ef)=>{const _0x401cb6=_0x1b2777;let {unitId:_0x2c9ef0,subUnitId:_0x434f3f,shapeType:_0x48ff2c,shapeId:_0x42bbe7,shapeData:_0x5d9185}=_0x3973ef,_0x155f2e=_0x20977a['get'](K)[_0x401cb6(0xb8)](_0x2c9ef0,_0x434f3f,_0x42bbe7);return _0x155f2e&&(_0x155f2e[_0x401cb6(0x105)](_0x48ff2c),_0x5d9185&&(_0x155f2e==null||_0x155f2e[_0x401cb6(0x11d)](_0x5d9185))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xc4)],'handler':(_0x47c15e,_0x16a230)=>{const _0x3efacb=_0x1b2777;if(!_0x16a230)return!0x1;let _0xd51bea=_0x47c15e['get'](_0xa3208c),_0x5f19ec=_0x47c15e['get'](K),_0x3b4f0a=_0x47c15e['get'](_0x17d14d),_0x16a1a4=[],_0x5d5bc9=[],{unitId:_0x1e8b93,subUnitId:_0x31a359,shapeId:_0xddb8de,shapeType:_0x544bbd,shapeData:_0x39eb48}=_0x16a230,_0x34e07b=_0x5f19ec[_0x3efacb(0xb8)](_0x1e8b93,_0x31a359,_0xddb8de);if(_0x34e07b){let _0x41c422=_0x34e07b[_0x3efacb(0x10b)](),_0x22a1d3=Object[_0x3efacb(0xc9)]({},_0x34e07b[_0x3efacb(0xa2)]()),_0x418a5b={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x544bbd,'shapeData':_0x39eb48},_0x4d6efa={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x41c422,'shapeData':_0x22a1d3};return _0x16a1a4['push']({'id':$['id'],'params':_0x418a5b}),_0x5d5bc9['push']({'id':$['id'],'params':_0x4d6efa}),_0x16a1a4['every'](_0x1713f9=>_0xd51bea[_0x3efacb(0x106)](_0x1713f9['id'],_0x1713f9[_0x3efacb(0xf6)]))&&_0x3b4f0a[_0x3efacb(0x125)]({'unitID':_0x1e8b93,'redoMutations':[..._0x16a1a4],'undoMutations':[..._0x5d5bc9]}),!0x0;}return!0x1;}};var ae=_0x1b2777(0x121),oe=_0x1b2777(0xab);const se={};let ce=class extends _0x543ffa{constructor(_0x511283,_0x5c10d6,_0x3489a2,_0x404e4b,_0x4fff45){const _0x122cf4=_0x1b2777;super(),this[_0x122cf4(0xd3)]=_0x511283,this['_sheetInterceptorService']=_0x5c10d6,this[_0x122cf4(0x107)]=_0x3489a2,this[_0x122cf4(0x12e)]=_0x404e4b,this[_0x122cf4(0xa6)]=_0x4fff45,this[_0x122cf4(0x136)](),this[_0x122cf4(0xd9)]();}[_0x1b2777(0x136)](){const _0x3e760e=_0x1b2777;[Y,ee,Z,Q,te,ne,re,q,J,$,X]['forEach'](_0x2c8b59=>this[_0x3e760e(0xae)](this['_commandService'][_0x3e760e(0xbc)](_0x2c8b59)));}[_0x1b2777(0xd9)](){const _0x3a0b28=_0x1b2777;this['disposeWithMe'](this[_0x3a0b28(0xa8)][_0x3a0b28(0x120)]({'getMutations':_0x1cd38b=>{const _0x515113=_0x3a0b28;if(_0x1cd38b['id']===_0x36289e['id']){let {drawings:_0x345653}=_0x1cd38b[_0x515113(0xf6)],_0x2bf523=_0x345653[_0x515113(0xc7)](_0x38638e=>_0x38638e[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x2bf523[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4d6cf5=[],_0x2571e1=[];return _0x2bf523[_0x515113(0xa4)](_0x2a908d=>{const _0x30770b=_0x515113;let {unitId:_0x4cb35d,subUnitId:_0x23ad55,drawingId:_0x229661}=_0x2a908d,_0x1f5098=this['_sheetsShapeService'][_0x30770b(0xb8)](_0x4cb35d,_0x23ad55,_0x229661);if(!_0x1f5098)throw TypeError(_0x30770b(0xd4)+_0x1f5098);_0x4d6cf5['push']({'id':J['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661}}),_0x2571e1[_0x30770b(0xb7)]({'id':q['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661,'shapeType':_0x1f5098[_0x30770b(0x10b)](),'shapeData':_0x1f5098[_0x30770b(0xa2)]()}});let _0x10dd64=this[_0x30770b(0x12e)]['getBasicShapeRelation'](_0x4cb35d,_0x23ad55,_0x229661);if(_0x10dd64)for(let _0x373799 of _0x10dd64){let _0x464049=_0x373799[_0x30770b(0x12d)],_0x49a385=_0x373799[_0x30770b(0xbd)],_0x339cb0=_0x49a385?{'from':void 0x0}:{'to':void 0x0},_0x25a640=_0x49a385?{'from':{'shapeId':_0x373799['shapeId'],'cxnIndex':_0x373799[_0x30770b(0x116)]}}:{'to':{'shapeId':_0x373799[_0x30770b(0x102)],'cxnIndex':_0x373799[_0x30770b(0x116)]}};_0x4d6cf5['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x339cb0}}}),_0x2571e1['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x25a640}}});}}),{'preRedos':_0x4d6cf5,'redos':[],'preUndos':[],'undos':_0x2571e1};}if(_0x1cd38b['id']===_0x6aec62['id']){let {drawings:_0x52c0a6}=_0x1cd38b[_0x515113(0xf6)],_0x220de4=_0x52c0a6[_0x515113(0xc7)](_0x2a7185=>_0x2a7185[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x220de4[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3866ee=[],_0x19db35=[];for(let _0x30aad0 of _0x220de4){let {unitId:_0x37823b,subUnitId:_0x1bbdc8,drawingId:_0x360609,transform:_0x139aa8}=_0x30aad0;if(!_0x37823b||!_0x1bbdc8||!_0x360609||!_0x139aa8)continue;let _0x25a2a0=this[_0x515113(0x12e)][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x360609);if(!_0x25a2a0)throw TypeError(_0x515113(0xd4)+_0x25a2a0);if(_0xc963bc(_0x25a2a0[_0x515113(0x10b)]())){let _0x5e00fe=this[_0x515113(0x12e)][_0x515113(0xff)](_0x37823b,_0x1bbdc8,_0x360609);_0x5e00fe&&(_0x3866ee[_0x515113(0xb7)]({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x19db35['push']({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':_0x5e00fe}}}));}else{let _0x137bdf=this['_sheetsShapeService'][_0x515113(0x119)](_0x37823b,_0x1bbdc8,_0x360609);if(_0x137bdf&&_0x137bdf[_0x515113(0xec)]>0x0)for(let _0x106617 of _0x137bdf){let _0x5af678=_0x106617[_0x515113(0x12d)],_0x251609=_0x106617[_0x515113(0xbd)],_0x1f995c=this['_sheetsShapeService'][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x5af678);if(!_0x1f995c)continue;let _0x258b59=_0x1f995c[_0x515113(0xda)](),_0x24d385=_0x1f995c[_0x515113(0x138)]();_0x258b59&&_0x24d385?this[_0x515113(0xcb)](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x258b59,_0x24d385,_0x3866ee,_0x19db35,_0x360609,_0x139aa8):this['_addLineFollowShapeUpdates'](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x251609?_0x258b59:_0x24d385,_0x251609,_0x3866ee,_0x19db35,_0x360609,_0x139aa8);}}}return{'preRedos':[],'redos':_0x3866ee,'preUndos':_0x19db35,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1b2777(0x111)](_0x110c37,_0x36f00f,_0x33e67b,_0x4c63e3,_0x3832f3){const _0x1ad18b=_0x1b2777;if(!_0x36f00f||!_0x33e67b)return null;let {shapeId:_0x5453af,cxnIndex:_0x3d58b1}=_0x110c37,_0x3e50af=this[_0x1ad18b(0x12e)][_0x1ad18b(0xb8)](_0x36f00f,_0x33e67b,_0x5453af);if(!_0x3e50af)return null;let _0x32f17a=this['_drawingManagerService'][_0x1ad18b(0x10a)]({'unitId':_0x36f00f,'subUnitId':_0x33e67b,'drawingId':_0x5453af});if(!(_0x32f17a!=null&&_0x32f17a['transform']))return null;let {left:_0x3442a=0x0,top:_0x427335=0x0,width:_0x59faab=0x0,height:_0x408d6e=0x0,flipX:_0x53e966=!0x1,flipY:_0x476111=!0x1,angle:_0x54f57a}=_0x32f17a[_0x1ad18b(0xc6)];if(_0x3832f3&&_0x4c63e3===_0x5453af){var _0x1f0cd2,_0x451a25,_0x40ce47,_0x5ac989,_0x23140a,_0x17fb87,_0x466ad1;_0x3442a=(_0x1f0cd2=_0x3832f3['left'])==null?_0x3442a:_0x1f0cd2,_0x427335=(_0x451a25=_0x3832f3[_0x1ad18b(0xd8)])==null?_0x427335:_0x451a25,_0x59faab=(_0x40ce47=_0x3832f3[_0x1ad18b(0x104)])==null?_0x59faab:_0x40ce47,_0x408d6e=(_0x5ac989=_0x3832f3[_0x1ad18b(0x135)])==null?_0x408d6e:_0x5ac989,_0x53e966=(_0x23140a=_0x3832f3[_0x1ad18b(0x10c)])==null?_0x53e966:_0x23140a,_0x476111=(_0x17fb87=_0x3832f3[_0x1ad18b(0xd0)])==null?_0x476111:_0x17fb87,_0x54f57a=(_0x466ad1=_0x3832f3['angle'])==null?_0x54f57a:_0x466ad1;}_0x3e50af[_0x1ad18b(0xe5)]({'width':_0x59faab,'height':_0x408d6e});let _0x4b9367=_0x3e50af['getConnectionSiteList']()[_0x1ad18b(0xd2)](_0x5f5702=>_0x5f5702['index']===_0x3d58b1);if(!_0x4b9367)return null;let _0x3d1d0c=_0x53e966?_0x59faab-_0x4b9367['x']:_0x4b9367['x'],_0x3f1d56=_0x476111?_0x408d6e-_0x4b9367['y']:_0x4b9367['y'];if(_0x54f57a!==0x0&&_0x54f57a!=null){let _0x276b5e=_0x54f57a*Math['PI']/0xb4,_0x26b722=Math[_0x1ad18b(0x9e)](_0x276b5e),_0x2e3305=Math[_0x1ad18b(0x109)](_0x276b5e),_0x270bd4=_0x59faab/0x2,_0x1b6710=_0x408d6e/0x2,_0x3af8da=_0x3d1d0c-_0x270bd4,_0x2faf0d=_0x3f1d56-_0x1b6710;_0x3d1d0c=_0x270bd4+_0x3af8da*_0x26b722-_0x2faf0d*_0x2e3305,_0x3f1d56=_0x1b6710+_0x3af8da*_0x2e3305+_0x2faf0d*_0x26b722;}_0x3d1d0c+=_0x3442a,_0x3f1d56+=_0x427335;let _0x3c4914=_0x4b9367['ang']/0xea60;_0x53e966&&(_0x3c4914=0xb4-_0x3c4914),_0x476111&&(_0x3c4914=-_0x3c4914),_0x3c4914+=_0x54f57a||0x0,_0x3c4914=(_0x3c4914%0x168+0x168)%0x168;let _0x4df82a=_0x40b288({'left':_0x3442a,'top':_0x427335,'width':_0x59faab,'height':_0x408d6e},_0x54f57a||0x0);return{'point':{'x':_0x3d1d0c,'y':_0x3f1d56},'angle':_0x3c4914,'bounds':_0x4df82a};}[_0x1b2777(0xcb)](_0x12a202,_0x198e92,_0x586d87,_0x38579f,_0x49141c,_0x5c8c89,_0x185dd1,_0x15e697,_0x5b8a24,_0xd74126){const _0x5edce5=_0x1b2777;let _0x594a81=this[_0x5edce5(0x107)][_0x5edce5(0x115)](_0x12a202,_0x198e92);if(!_0x594a81)return;let _0x4612a5=_0x38579f[_0x5edce5(0xb4)](),_0x4f7d3c=_0x38579f[_0x5edce5(0xfe)](),_0x1f8659={},_0x365c5e={};_0x4f7d3c[_0x5edce5(0xa4)](_0x2ad86d=>{const _0x4ef58b=_0x5edce5;let _0xe1cb2e=_0x38579f[_0x4ef58b(0xd1)](_0x2ad86d);_0x365c5e[_0x2ad86d]=_0xe1cb2e==null?0x0:_0xe1cb2e;});let _0x5aa757=this[_0x5edce5(0x111)](_0x49141c,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126),_0x297962=this['_getConnectPointInfo'](_0x5c8c89,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126);if(_0x5aa757&&_0x297962){let _0x384a55=_0x38579f[_0x5edce5(0x10b)](),_0x289467=_0x4cc214(_0x5aa757,_0x297962,_0x384a55),_0x4059cf=_0x384a55;if(_0x289467){let _0xe5e3af=_0xc69524(_0x289467,_0x38579f[_0x5edce5(0x10b)]()),_0x3c0888=this[_0x5edce5(0xa6)][_0x5edce5(0x127)](_0x12a202,_0x198e92);if(_0x3c0888&&_0x3c0888[_0x586d87]){let _0x65ccf6=_0x3c0888[_0x586d87];_0x4059cf=_0xe5e3af[_0x5edce5(0xdb)];for(let [_0x3a9e12,_0x5b5301]of Object[_0x5edce5(0xc3)](_0xe5e3af[_0x5edce5(0x11f)]))_0x1f8659[_0x3a9e12]=_0x5b5301;let _0x283c23={..._0x65ccf6[_0x5edce5(0xc6)],'width':_0xe5e3af['worldRect'][_0x5edce5(0x104)],'height':_0xe5e3af['worldRect'][_0x5edce5(0x135)],'left':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0x132)],'top':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0xd8)],'flipX':_0xe5e3af['worldRect'][_0x5edce5(0x10c)],'flipY':_0xe5e3af['worldRect'][_0x5edce5(0xd0)],'angle':_0xe5e3af[_0x5edce5(0xe2)]},_0x39a2c0=_0x2d6220(_0x283c23,_0x594a81),_0x5bde46=_0x45aabc(_0x283c23,_0x594a81),_0x296621={'unitId':_0x12a202,'subUnitId':_0x198e92,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'drawingId':_0x586d87,'transform':_0x283c23,'sheetTransform':_0x39a2c0,'axisAlignSheetTransform':_0x5bde46},{unitId:_0x4c9316,subUnitId:_0x3d4148,undo:_0x2b9d07,redo:_0x112041,objects:_0x292cfa}=this[_0x5edce5(0xa6)]['getBatchUpdateOp']([_0x296621]);_0x185dd1[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x112041,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}}),_0x15e697[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x2b9d07,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}});}_0x38579f[_0x5edce5(0xf4)]();}_0x185dd1[_0x5edce5(0xb7)]({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x4059cf,'shapeData':{'adjustValues':_0x1f8659,'relation':_0x4612a5}}}),_0x15e697['push']({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x384a55,'shapeData':{'adjustValues':_0x365c5e,'relation':_0x4612a5}}});}}[_0x1b2777(0x137)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x4c6ed9,_0x4452aa,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da){const _0x2d7ba0=_0x1b2777;var _0x3f10a4;if(!_0x4c6ed9)return;let _0x1ceda0=this['_sheetSkeletonService'][_0x2d7ba0(0x115)](_0x3aa200,_0x587d7e);if(!_0x1ceda0)return;let _0x325687=(_0x3f10a4=this['_drawingManagerService'][_0x2d7ba0(0x10a)]({'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingId':_0x538ad8}))==null?void 0x0:_0x3f10a4[_0x2d7ba0(0xc6)];if(!_0x325687)return;let _0x3340b6=_0x325687[_0x2d7ba0(0x132)]!==_0x5340da['left']||_0x325687[_0x2d7ba0(0xd8)]!==_0x5340da['top'],_0x10dddc=_0x325687[_0x2d7ba0(0x104)]!==_0x5340da[_0x2d7ba0(0x104)]||_0x325687[_0x2d7ba0(0x135)]!==_0x5340da[_0x2d7ba0(0x135)],_0x19573b=_0x325687[_0x2d7ba0(0x10c)]!==_0x5340da[_0x2d7ba0(0x10c)]||_0x325687['flipY']!==_0x5340da[_0x2d7ba0(0xd0)],_0x1b856e=_0x325687[_0x2d7ba0(0xe8)]!==_0x5340da['angle'];if(_0x3340b6&&!_0x10dddc&&!_0x19573b&&!_0x1b856e){var _0x493f59,_0x2306d6,_0x3b96e9,_0x49ce6d;let _0x2d847c=((_0x493f59=_0x5340da[_0x2d7ba0(0x132)])==null?0x0:_0x493f59)-((_0x2306d6=_0x325687[_0x2d7ba0(0x132)])==null?0x0:_0x2306d6),_0x401d65=((_0x3b96e9=_0x5340da[_0x2d7ba0(0xd8)])==null?0x0:_0x3b96e9)-((_0x49ce6d=_0x325687[_0x2d7ba0(0xd8)])==null?0x0:_0x49ce6d),_0xcf994e=this[_0x2d7ba0(0xa6)][_0x2d7ba0(0x127)](_0x3aa200,_0x587d7e);if(_0xcf994e&&_0xcf994e[_0x4144f7]){var _0x38b077,_0x4e0711,_0x556193,_0x2a9f3a;let _0x4c4b43=_0xcf994e[_0x4144f7],_0x5e7afc={..._0x4c4b43['transform'],'left':((_0x38b077=(_0x4e0711=_0x4c4b43['transform'])==null?void 0x0:_0x4e0711['left'])==null?0x0:_0x38b077)+_0x2d847c,'top':((_0x556193=(_0x2a9f3a=_0x4c4b43[_0x2d7ba0(0xc6)])==null?void 0x0:_0x2a9f3a['top'])==null?0x0:_0x556193)+_0x401d65},_0x2ea5f8=_0x2d6220(_0x5e7afc,_0x1ceda0),_0x48c653=_0x45aabc(_0x5e7afc,_0x1ceda0),_0x285aa0={'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingType':_0x4d3e69[_0x2d7ba0(0x11e)],'drawingId':_0x4144f7,'transform':_0x5e7afc,'sheetTransform':_0x2ea5f8,'axisAlignSheetTransform':_0x48c653},{unitId:_0x30c7b3,subUnitId:_0x948afe,undo:_0x17153e,redo:_0x20264b,objects:_0x59dbf6}=this['_drawingManagerService'][_0x2d7ba0(0x99)]([_0x285aa0]);_0x34c43b['push']({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x20264b,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}}),_0x5232bf[_0x2d7ba0(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x17153e,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}});}}else{let _0x2b0d6f=_0x1c0dff[_0x2d7ba0(0xda)](),_0x493218=_0x1c0dff[_0x2d7ba0(0x138)]();this[_0x2d7ba0(0xcb)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x2b0d6f,_0x493218,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da);}}};ce=G([W(0x0,_0xa3208c),W(0x1,_0x19216a(_0x51d1bf)),W(0x2,_0x19216a(_0x2fc9c5)),W(0x3,_0x19216a(K)),W(0x4,_0x19216a(_0x5b1dc7))],ce);let le=class extends _0x11a17d{constructor(_0x139a9b=se,_0x52b822,_0x18f9fb,_0xffa4e0){const _0x49c0ef=_0x1b2777;super(),this['_config']=_0x139a9b,this[_0x49c0ef(0x133)]=_0x52b822,this[_0x49c0ef(0xd3)]=_0x18f9fb,this['_configService']=_0xffa4e0;let {..._0x37d887}=_0x14640d({},se,this['_config']);this[_0x49c0ef(0xf0)][_0x49c0ef(0xe6)]('sheets-shape.config',_0x37d887);}[_0x1b2777(0xca)](){const _0x5e6648=_0x1b2777;let _0x11dc81=this[_0x5e6648(0x133)];[[U],[K],[ce]][_0x5e6648(0xa4)](_0x110116=>_0x11dc81['add'](_0x110116)),_0x29f0fc(_0x11dc81,[[K],[ce]]);}};H(le,_0x1b2777(0xfd),_0x37476a[_0x1b2777(0x11b)]),H(le,'pluginName',_0x1b2777(0xfa)),H(le,_0x1b2777(0x131),ae),H(le,_0x1b2777(0xac),oe),le=G([_0x2c7cf6(_0x17d981),W(0x1,_0x19216a(_0x180637)),W(0x2,_0xa3208c),W(0x3,_0x1802b3)],le);function _0x5220(){const _0x4fb7a2=['removeShape','getShapeRelation','position','_ensureShapeModelManager','push','getShapeModel','3iJNeah','set','resizeEnabled','registerCommand','isFrom','call','getId','204uZQgjg','shapeName','addShape','entries','COMMAND','worldRect','transform','filter','sheet.command.set-shape-drawing-data','assign','onStarting','_addLineRerouteUpdates','getShapeDisplayNames','rotateEnabled','undos','sheet.mutation.update-shape-data','flipY','getAdjustValueByName','find','_commandService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','preRedos','INSERT','redos','top','_initCommandInterceptor','getStartConnectInfo','lineType','hasShape','string','borderEnabled','values','isLineShape','preUndos','rotation','_linesIds','sheet.command.update-line-shape-resize','updateContext','setConfig','UPDATE','angle','sheet.mutation.remove-shape','getCellWithCoordByIndex','toJSON','length','fromJSON','getOwnPropertyDescriptor','_disposed','_configService','shapeData','data','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeLinePoints','fill','params','11845287OGCLlc','4756316sfbUym','startY','SHEET_SHAPE_PLUGIN','range','decorate','type','getAdjustNames','getLineShapeRelation','5694540zqocwC','_initSnapshot','shapeId','562FpraEj','width','setShapeType','syncExecuteCommand','_sheetSkeletonService','drawingType','sin','getDrawingByParam','getShapeType','flipX','onCommandExecute','get','delete','10nAzoIZ','_getConnectPointInfo','_resourcesManagerService','_shapes','clear','getSkeleton','cxnIndex','getName','object','getBasicShapeRelation','ensureSkeleton','UNIVER_SHEET','constructor','setShapeData','DRAWING_SHAPE','adjustValues','interceptCommand','@univerjs-pro/sheets-shape','dispose','5358WGvjLE','getCellIndexAndOffsetByPosition','pushUndoRedo','getShapeTypeById','getDrawingData','sheet.command.update-connector-relation','sheet.command.toggle-shape-flip','8023112UAnvuW','getShapeTextData','getShapeDataById','lineShapeId','_sheetsShapeService','insertShape','map','packageName','left','_injector','has','height','_initCommands','_addLineFollowShapeUpdates','getEndConnectInfo','_deserializeShapeForUnit','relation','function','getBatchUpdateOp','sheet.command.insert-shape','3017ItWVgg','47671305XTFKFT','_serializeShapeForUnit','cos','keys','from','sheet.command.set-shape-rotate','getShapeData','prototype','forEach','parse','_drawingManagerService','startX','_sheetInterceptorService','_shapeModelManagerMap','registerPluginResource','1.0.0-alpha.1','version','symbol','disposeWithMe','REMOVE','defineProperty','MUTATION','result'];_0x5220=function(){return _0x4fb7a2;};return _0x5220();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x24315c=_0x401b;(function(_0xc03872,_0x98d5d4){const _0xab5daf=_0x401b,_0xa84df9=_0xc03872();while(!![]){try{const _0x54e72f=-parseInt(_0xab5daf(0x15e))/0x1+parseInt(_0xab5daf(0x102))/0x2*(-parseInt(_0xab5daf(0x178))/0x3)+parseInt(_0xab5daf(0x167))/0x4+-parseInt(_0xab5daf(0x166))/0x5*(-parseInt(_0xab5daf(0x10e))/0x6)+-parseInt(_0xab5daf(0x137))/0x7+-parseInt(_0xab5daf(0x12c))/0x8+-parseInt(_0xab5daf(0x12b))/0x9*(-parseInt(_0xab5daf(0x180))/0xa);if(_0x54e72f===_0x98d5d4)break;else _0xa84df9['push'](_0xa84df9['shift']());}catch(_0x41edee){_0xa84df9['push'](_0xa84df9['shift']());}}}(_0xb7bc,0x3fb0d));import{ShapeModel as _0x4935d1,computeConnectorRouteLayout as _0x11cba5,createUniqueShapeName as _0x3c2717,getBasicShapeRotateBound as _0xee328b,isConnectorShape as _0x45bbc3,routeConnectorLineShape as _0x696e80}from'@univerjs-pro/engine-shape';import{CommandType as _0x395a1d,DependentOn as _0x173671,Disposable as _0x205493,DrawingTypeEnum as _0xcd5ef0,ICommandService as _0x12d889,IConfigService as _0x5ad0ed,IResourceManagerService as _0x5d31ed,IUndoRedoService as _0x32f094,IUniverInstanceService as _0x14f0b3,Inject as _0x396a8a,Injector as _0x1e351a,Plugin as _0x307e7b,UniverInstanceType as _0xf89464,generateRandomId as _0x26e08e,merge as _0x5db2e6,sequenceExecute as _0x2d1a4f,touchDependencies as _0x46da78}from'@univerjs/core';function _0x401b(_0x9a3a2f,_0x5b27b6){_0x9a3a2f=_0x9a3a2f-0xe4;const _0xb7bc48=_0xb7bc();let _0x401b30=_0xb7bc48[_0x9a3a2f];return _0x401b30;}import{SheetInterceptorService as _0x3d6fd9,SheetSkeletonService as _0x3dac38,getSheetCommandTarget as _0x37d1c8}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x2ec674,DrawingApplyType as _0x366655,ISheetDrawingService as _0x189a5a,InsertSheetDrawingCommand as _0x12582e,RemoveSheetDrawingCommand as _0x30f0fe,SetDrawingApplyMutation as _0xb6a54f,SetSheetDrawingCommand as _0x1ecf99,transformToAxisAlignPosition as _0x58930a,transformToDrawingPosition as _0x4f2943}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1837ff}from'@univerjs-pro/license';import{IDrawingManagerService as _0x3f7bd4}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x1ce3e0){'@babel/helpers - typeof';const _0x43454c=_0x401b;return z=typeof Symbol==_0x43454c(0xe6)&&typeof Symbol['iterator']==_0x43454c(0x114)?function(_0x3c66c3){return typeof _0x3c66c3;}:function(_0x1012d8){const _0x5b8c20=_0x43454c;return _0x1012d8&&typeof Symbol==_0x5b8c20(0xe6)&&_0x1012d8[_0x5b8c20(0x17f)]===Symbol&&_0x1012d8!==Symbol[_0x5b8c20(0x12e)]?'symbol':typeof _0x1012d8;},z(_0x1ce3e0);}function B(_0x15d54d,_0x45bb57){const _0x45269c=_0x401b;if(z(_0x15d54d)!='object'||!_0x15d54d)return _0x15d54d;var _0x29057e=_0x15d54d[Symbol[_0x45269c(0x17e)]];if(_0x29057e!==void 0x0){var _0x273260=_0x29057e[_0x45269c(0x158)](_0x15d54d,_0x45bb57||_0x45269c(0x135));if(z(_0x273260)!=_0x45269c(0x125))return _0x273260;throw TypeError(_0x45269c(0x103));}return(_0x45bb57===_0x45269c(0x111)?String:Number)(_0x15d54d);}function V(_0x146be5){const _0x1e12dc=_0x401b;var _0x2a3d69=B(_0x146be5,_0x1e12dc(0x111));return z(_0x2a3d69)==_0x1e12dc(0x114)?_0x2a3d69:_0x2a3d69+'';}function H(_0x355373,_0x5fdeb4,_0x4e5afa){return(_0x5fdeb4=V(_0x5fdeb4))in _0x355373?Object['defineProperty'](_0x355373,_0x5fdeb4,{'value':_0x4e5afa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x355373[_0x5fdeb4]=_0x4e5afa,_0x355373;}var U=class extends _0x205493{constructor(){const _0x5a69c7=_0x401b;super(),H(this,_0x5a69c7(0x174),new Map()),H(this,_0x5a69c7(0x14b),new Set()),H(this,_0x5a69c7(0x17c),new Set());}[_0x24315c(0x14e)](_0x52c245,_0x4eced4,_0x31beae,_0x3a89da){const _0x114c2b=_0x24315c;let _0xfd11ab=new _0x4935d1(_0x52c245,_0x4eced4,_0x31beae,_0x3a89da);return this['_shapes'][_0x114c2b(0x12a)](_0x4eced4,_0xfd11ab),_0x45bbc3(_0x52c245)&&this['_linesIds'][_0x114c2b(0x145)](_0x4eced4),_0xfd11ab;}[_0x24315c(0x163)](_0xb0dca4){const _0x4862d6=_0x24315c;let _0x1311cc=[];for(let _0x15bb76 of this['_linesIds']){let _0x22f42d=this[_0x4862d6(0x174)]['get'](_0x15bb76);if(_0x22f42d){let _0x5f31e9=_0x22f42d[_0x4862d6(0x179)]();if(_0x5f31e9){var _0x5619bf,_0x4ffbdf;((_0x5619bf=_0x5f31e9['from'])==null?void 0x0:_0x5619bf['shapeId'])===_0xb0dca4&&_0x1311cc[_0x4862d6(0x12f)]({..._0x5f31e9['from'],'lineShapeId':_0x15bb76,'isFrom':!0x0}),((_0x4ffbdf=_0x5f31e9['to'])==null?void 0x0:_0x4ffbdf['shapeId'])===_0xb0dca4&&_0x1311cc[_0x4862d6(0x12f)]({..._0x5f31e9['to'],'lineShapeId':_0x15bb76,'isFrom':!0x1});}}}return _0x1311cc;}[_0x24315c(0xff)](_0x3f5741){const _0x5c452c=_0x24315c;let _0x1a62ea=this[_0x5c452c(0x174)][_0x5c452c(0x123)](_0x3f5741);if(_0x1a62ea)return _0x1a62ea['getShapeRelation']();}['getShapeType'](_0xc7728a){const _0x47def0=_0x24315c;let _0xb859c8=this['_shapes'][_0x47def0(0x123)](_0xc7728a);if(_0xb859c8)return _0xb859c8['getShapeType']();}[_0x24315c(0xf1)](_0x1a9ee7){const _0x18cbc8=_0x24315c;return this[_0x18cbc8(0x174)]['has'](_0x1a9ee7);}[_0x24315c(0x147)](){const _0x28171e=_0x24315c;return Array[_0x28171e(0x161)](this['_shapes'][_0x28171e(0x15d)]())['map'](_0x33511d=>_0x33511d['getName']()||_0x33511d[_0x28171e(0xe8)]());}[_0x24315c(0x10d)](_0x3ae981){const _0x1b11ff=_0x24315c;let _0x3516e2=this['_shapes'][_0x1b11ff(0x123)](_0x3ae981);_0x3516e2&&(_0x45bbc3(_0x3516e2[_0x1b11ff(0x126)]())&&this[_0x1b11ff(0x14b)]['delete'](_0x3ae981),this[_0x1b11ff(0x174)][_0x1b11ff(0x175)](_0x3ae981));}[_0x24315c(0x13f)](){const _0x2ada0c=_0x24315c;let _0x274a93=[];return this[_0x2ada0c(0x174)][_0x2ada0c(0x107)](_0x22032b=>{const _0x5b56c5=_0x2ada0c;_0x274a93[_0x5b56c5(0x12f)](_0x22032b['toJSON']());}),_0x274a93;}[_0x24315c(0x11c)](_0x44ace5){const _0x5bae49=_0x24315c;for(let _0x24d060 of _0x44ace5){let {id:_0x32ddb6,shapeType:_0x25f2e1,name:_0x3f822b}=_0x24d060,_0x25e55a=this[_0x5bae49(0x14e)](_0x25f2e1,_0x32ddb6,_0x24d060[_0x5bae49(0x108)],_0x3f822b);_0x25e55a&&_0x25e55a[_0x5bae49(0x140)]()&&this[_0x5bae49(0x14b)][_0x5bae49(0x145)](_0x32ddb6);}}[_0x24315c(0x152)](){const _0x440289=_0x24315c;this['_disposed']||(this[_0x440289(0x174)][_0x440289(0x107)](_0x4c95ee=>{const _0xebb0fb=_0x440289;_0x4c95ee[_0xebb0fb(0x152)]();}),this[_0x440289(0x174)][_0x440289(0x106)](),this['_linesIds'][_0x440289(0x106)](),this['_groupIds'][_0x440289(0x106)](),super[_0x440289(0x152)]());}};function W(_0x1bb470,_0x5c4068){return function(_0x2175e8,_0x481caf){_0x5c4068(_0x2175e8,_0x481caf,_0x1bb470);};}function G(_0x3ad02e,_0x13b348,_0x3b114c,_0x96ada6){const _0x8ecea5=_0x24315c;var _0xa58497=arguments[_0x8ecea5(0x142)],_0x257d42=_0xa58497<0x3?_0x13b348:_0x96ada6===null?_0x96ada6=Object[_0x8ecea5(0x17b)](_0x13b348,_0x3b114c):_0x96ada6,_0x19050b;if(typeof Reflect==_0x8ecea5(0x125)&&typeof Reflect[_0x8ecea5(0x101)]==_0x8ecea5(0xe6))_0x257d42=Reflect[_0x8ecea5(0x101)](_0x3ad02e,_0x13b348,_0x3b114c,_0x96ada6);else{for(var _0x2368a9=_0x3ad02e[_0x8ecea5(0x142)]-0x1;_0x2368a9>=0x0;_0x2368a9--)(_0x19050b=_0x3ad02e[_0x2368a9])&&(_0x257d42=(_0xa58497<0x3?_0x19050b(_0x257d42):_0xa58497>0x3?_0x19050b(_0x13b348,_0x3b114c,_0x257d42):_0x19050b(_0x13b348,_0x3b114c))||_0x257d42);}return _0xa58497>0x3&&_0x257d42&&Object[_0x8ecea5(0xe9)](_0x13b348,_0x3b114c,_0x257d42),_0x257d42;}let K=class extends _0x205493{constructor(_0xc58489){const _0xebb66=_0x24315c;super(),this[_0xebb66(0x10f)]=_0xc58489,H(this,'_shapeModelManagerMap',new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0x250ecf,_0x17ed59){const _0x4124ba=_0x24315c;let _0xb681f7=this[_0x4124ba(0xfd)][_0x4124ba(0x123)](_0x250ecf);_0xb681f7||(_0xb681f7=new Map(),this[_0x4124ba(0xfd)][_0x4124ba(0x12a)](_0x250ecf,_0xb681f7));let _0x4358af=_0xb681f7[_0x4124ba(0x123)](_0x17ed59);return _0x4358af||(_0x4358af=new U(),_0xb681f7['set'](_0x17ed59,_0x4358af)),_0x4358af;}[_0x24315c(0x171)](_0xb9fcc7,_0x2b6dab,_0x4c6b2b,_0x3549ad,_0x3a4737,_0x338688){const _0x72adea=_0x24315c;this[_0x72adea(0x17d)](_0xb9fcc7,_0x2b6dab)[_0x72adea(0x14e)](_0x4c6b2b,_0x3549ad,_0x3a4737,_0x338688);}[_0x24315c(0x10d)](_0x51e0bd,_0x270521,_0x1e78ee){const _0x12a97f=_0x24315c;this[_0x12a97f(0x17d)](_0x51e0bd,_0x270521)['removeShape'](_0x1e78ee);}[_0x24315c(0x169)](_0x2a610d,_0x285378,_0x247e92){const _0x1e5eb8=_0x24315c;return this['_ensureShapeModelManager'](_0x2a610d,_0x285378)[_0x1e5eb8(0x126)](_0x247e92);}[_0x24315c(0x126)](_0x52a040,_0x397a5b,_0x41445a){const _0x2f6e1e=_0x24315c;return this[_0x2f6e1e(0x17d)](_0x52a040,_0x397a5b)['getShapeType'](_0x41445a);}['hasShape'](_0x5e9b94,_0x4259bb,_0x4e8ad4){const _0xe1f048=_0x24315c;return this[_0xe1f048(0x17d)](_0x5e9b94,_0x4259bb)[_0xe1f048(0xf1)](_0x4e8ad4);}[_0x24315c(0x14d)](_0x468f70,_0x5e6eb3,_0x2e9acb){const _0x3a148d=_0x24315c;return this['_ensureShapeModelManager'](_0x468f70,_0x5e6eb3)[_0x3a148d(0x126)](_0x2e9acb);}[_0x24315c(0x154)](_0x1735e0,_0x2e8046,_0x4f9217){const _0x4b3af6=_0x24315c;let _0x14707f=this['_ensureShapeModelManager'](_0x1735e0,_0x2e8046);if(!_0x14707f[_0x4b3af6(0x126)](_0x4f9217))return;let _0x3f4ba2=_0x14707f[_0x4b3af6(0x174)]['get'](_0x4f9217);if(_0x3f4ba2)return _0x3f4ba2[_0x4b3af6(0x15a)]();}[_0x24315c(0x147)](_0xb594c0,_0x91dabb){const _0x4d26b9=_0x24315c;return this['_ensureShapeModelManager'](_0xb594c0,_0x91dabb)[_0x4d26b9(0x147)]();}[_0x24315c(0xfe)](_0x5a05a6,_0x158693,_0x40f94d){const _0x309eaf=_0x24315c;return this[_0x309eaf(0x17d)](_0x5a05a6,_0x158693)[_0x309eaf(0x174)]['get'](_0x40f94d);}[_0x24315c(0x163)](_0x3764aa,_0x2db5a0,_0x4ca799){const _0x528c6c=_0x24315c;return this[_0x528c6c(0x17d)](_0x3764aa,_0x2db5a0)[_0x528c6c(0x163)](_0x4ca799);}['getLineShapeRelation'](_0x37a5ef,_0x34c7eb,_0xfcbcfa){const _0x550e72=_0x24315c;let _0x196b57=this[_0x550e72(0x17d)](_0x37a5ef,_0x34c7eb)[_0x550e72(0x174)][_0x550e72(0x123)](_0xfcbcfa);if(_0x196b57)return _0x196b57['getShapeRelation']();}[_0x24315c(0xee)](){}[_0x24315c(0x11b)](_0x33b596){const _0x3d816c=_0x24315c;let _0x5b6eb0={},_0x479351=this['_shapeModelManagerMap']['get'](_0x33b596);return _0x479351&&_0x479351[_0x3d816c(0x107)]((_0x439456,_0x4ced2b)=>{const _0x5549e2=_0x3d816c;let _0x41e6fc=_0x439456['toJSON']();_0x41e6fc[_0x5549e2(0x142)]>0x0&&(_0x5b6eb0[_0x4ced2b]=_0x41e6fc);}),JSON[_0x3d816c(0x110)](_0x5b6eb0);}['_deserializeShapeForUnit'](_0x10f250,_0x5926ac){Object['keys'](_0x5926ac)['forEach'](_0x4408c4=>{const _0x731fa0=_0x401b;this[_0x731fa0(0x17d)](_0x10f250,_0x4408c4)[_0x731fa0(0x11c)](_0x5926ac[_0x4408c4]);});}[_0x24315c(0x13f)](){const _0xbd12c8=_0x24315c;let _0x1d1843={};return this[_0xbd12c8(0xfd)][_0xbd12c8(0x107)]((_0x45802e,_0x1beda6)=>{_0x1d1843[_0x1beda6]={},_0x45802e['forEach']((_0x2f95f7,_0x3ab917)=>{const _0x522db1=_0x401b;_0x1d1843[_0x1beda6][_0x3ab917]=_0x2f95f7[_0x522db1(0x13f)]();});}),_0x1d1843;}[_0x24315c(0x11c)](_0x59b049){const _0x3d5cf1=_0x24315c;Object[_0x3d5cf1(0x130)](_0x59b049)[_0x3d5cf1(0x107)](_0x414404=>{const _0x1bec2a=_0x3d5cf1;let _0x1ced3a=_0x59b049[_0x414404];Object[_0x1bec2a(0x130)](_0x1ced3a)[_0x1bec2a(0x107)](_0x1388ce=>{const _0xa04aca=_0x1bec2a;this[_0xa04aca(0x17d)](_0x414404,_0x1388ce)['fromJSON'](_0x1ced3a[_0x1388ce]);});});}['_initSnapshot'](){const _0x52b2d7=_0x24315c;this[_0x52b2d7(0x10f)][_0x52b2d7(0x10b)]({'pluginName':_0x52b2d7(0x157),'businesses':[_0xf89464[_0x52b2d7(0xe4)]],'toJson':_0x2804af=>this['_serializeShapeForUnit'](_0x2804af),'parseJson':_0x5d121c=>JSON['parse'](_0x5d121c),'onLoad':(_0x5c8343,_0x16ea18)=>{const _0x3cd385=_0x52b2d7;this[_0x3cd385(0x16b)](_0x5c8343,_0x16ea18);},'onUnLoad':_0x5c4582=>{const _0x1cd860=_0x52b2d7;let _0x5800f4=this[_0x1cd860(0xfd)]['get'](_0x5c4582);_0x5800f4&&(_0x5800f4[_0x1cd860(0x107)](_0x146e1a=>{const _0x5e808a=_0x1cd860;_0x146e1a[_0x5e808a(0x152)]();}),this[_0x1cd860(0xfd)][_0x1cd860(0x175)](_0x5c4582));}});}['dispose'](){const _0x1b4674=_0x24315c;this['_shapeModelManagerMap'][_0x1b4674(0x107)](_0x3d60ec=>{const _0x226027=_0x1b4674;_0x3d60ec[_0x226027(0x107)](_0x5499a6=>{const _0x1b7315=_0x226027;_0x5499a6[_0x1b7315(0x152)]();});});}};K=G([W(0x0,_0x5d31ed)],K);const q={'id':_0x24315c(0x141),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x64355f,_0x312452)=>{const _0x304296=_0x24315c;let {unitId:_0x2cd38d,subUnitId:_0x3da279,shapeType:_0x120e8d,shapeId:_0x3b25a4,shapeName:_0x5d5e59,shapeData:_0x39fa47}=_0x312452;return _0x64355f[_0x304296(0x123)](K)[_0x304296(0x171)](_0x2cd38d,_0x3da279,_0x120e8d,_0x3b25a4,_0x39fa47,_0x5d5e59),!0x0;}},J={'id':_0x24315c(0xf0),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x12c03d,_0x27b2d8)=>{const _0x1f9479=_0x24315c;let {unitId:_0x3d57eb,subUnitId:_0x3baa2e,shapeId:_0x4a661d}=_0x27b2d8;return _0x12c03d[_0x1f9479(0x123)](K)['removeShape'](_0x3d57eb,_0x3baa2e,_0x4a661d),!0x0;}},Y={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x13b),'handler':(_0x1e4a2f,_0x117963)=>{const _0x92334a=_0x24315c;var _0x2c1b4b,_0x26a27d,_0x43a825;let _0x277143=_0x37d1c8(_0x1e4a2f[_0x92334a(0x123)](_0x14f0b3),_0x117963);if(!_0x277143)return!0x1;let _0x972c38=_0x1e4a2f[_0x92334a(0x123)](_0x3dac38),{unitId:_0x39311c,subUnitId:_0x5ef38f}=_0x277143,_0x5260b3=_0x972c38[_0x92334a(0x133)](_0x39311c,_0x5ef38f);if(!_0x5260b3)return!0x1;let _0x275562=_0x1e4a2f[_0x92334a(0x123)](_0x12d889),_0x26250a=_0x1e4a2f['get'](_0x32f094),_0x1303cd=_0x1e4a2f[_0x92334a(0x123)](_0x3d6fd9),_0x4e872f=_0x1e4a2f['get'](_0x189a5a),_0x52897e=_0x1e4a2f[_0x92334a(0x123)](K),{shapeType:_0xa1c1a7,shapeData:_0x21acfc}=_0x117963,_0x211e57=_0x117963[_0x92334a(0xed)]||_0x26e08e(),_0x565f51={'unitId':_0x39311c,'subUnitId':_0x5ef38f,'shapeId':_0x211e57,'shapeName':(_0x2c1b4b=_0x117963['shapeName'])==null?_0x3c2717(_0xa1c1a7,_0x52897e[_0x92334a(0x147)](_0x39311c,_0x5ef38f)):_0x2c1b4b,'shapeType':_0xa1c1a7,'shapeData':_0x21acfc},_0x507ce8=_0x117963[_0x92334a(0xf3)]||0xc8,_0x426032=_0x117963[_0x92334a(0x109)]||0xc8,_0x3783a4=0x0,_0x187198=0x0,_0xa421d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x376cfb={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x117963[_0x92334a(0x172)]){let {x:_0x6dfedd,y:_0x5aa0c2}=_0x117963['position'];_0x3783a4=_0x6dfedd,_0x187198=_0x5aa0c2,_0xa421d=_0x5260b3[_0x92334a(0x182)](_0x6dfedd,_0x5aa0c2),_0x376cfb=_0x5260b3[_0x92334a(0x182)](_0x6dfedd+_0x507ce8,_0x5aa0c2+_0x426032);}else{if(_0x117963[_0x92334a(0x128)]){let {startRow:_0x2adc5b,startColumn:_0x592ef0}=_0x117963[_0x92334a(0x128)];_0xa421d={'row':_0x2adc5b,'rowOffset':0xa,'column':_0x592ef0,'columnOffset':0xa};let _0x1c28c2=_0x5260b3['getCellWithCoordByIndex'](_0x2adc5b,_0x592ef0);_0x3783a4=_0x1c28c2['startX']+0xa,_0x187198=_0x1c28c2['startY']+0xa,_0x376cfb=_0x5260b3[_0x92334a(0x182)](_0x3783a4+_0x507ce8,_0x187198+_0x426032);}}let _0x2fbd6f={'from':_0xa421d,'to':_0x376cfb},_0x288e61={'unitId':_0x39311c,'subUnitId':_0x5ef38f,'drawingId':_0x211e57,'drawingType':_0xcd5ef0[_0x92334a(0xe7)],'sheetTransform':_0x2fbd6f,'transform':{'left':_0x3783a4,'top':_0x187198,'width':_0x507ce8,'height':_0x426032},'data':{'shapeType':_0xa1c1a7,'shapeData':_0x21acfc},'axisAlignSheetTransform':_0x2fbd6f,'allowTransform':!0x0};_0x45bbc3(_0xa1c1a7)&&(_0x288e61[_0x92334a(0x116)][_0x92334a(0x15c)]=!0x1,_0x288e61[_0x92334a(0x116)]['rotateEnabled']=!0x1,_0x288e61[_0x92334a(0x116)][_0x92334a(0x10c)]=!0x1,_0x288e61[_0x92334a(0x116)][_0x92334a(0xf4)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0x146)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0x10c)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0xf4)]=!0x1);let {undo:_0x1fd36b,redo:_0x554cbe,objects:_0x37c855}=_0x4e872f[_0x92334a(0x113)]([_0x288e61]),_0x18be28=_0x1303cd[_0x92334a(0x117)]({'id':_0x12582e['id'],'params':{'unitId':_0x39311c,'drawings':[_0x288e61]}}),_0x136cdf=[...(_0x26a27d=_0x18be28[_0x92334a(0x153)])==null?[]:_0x26a27d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'op':_0x554cbe,'objects':_0x37c855,'type':_0x366655[_0x92334a(0x16e)]}},{'id':_0x2ec674['id'],'params':[_0x39311c]},..._0x18be28['redos'],{'id':q['id'],'params':_0x565f51}],_0x21f043=[{'id':J['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'shapeId':_0x211e57}},...(_0x43a825=_0x18be28[_0x92334a(0x148)])==null?[]:_0x43a825,{'id':_0xb6a54f['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'op':_0x1fd36b,'objects':_0x37c855,'type':_0x366655['REMOVE']}},{'id':_0x2ec674['id'],'params':[_0x39311c]},..._0x18be28['undos']];return _0x2d1a4f(_0x136cdf,_0x275562)[_0x92334a(0x132)]?(_0x26250a['pushUndoRedo']({'unitID':_0x39311c,'undoMutations':_0x21f043,'redoMutations':_0x136cdf}),!0x0):!0x1;}},X={'id':_0x24315c(0x15f),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x3884cc,_0x1eb60d)=>{const _0x2c325f=_0x24315c;let {unitId:_0x23fc26,subUnitId:_0x13f2a2,shapeType:_0x41acd7,shapeId:_0x1fd74b,shapeData:_0x60231a}=_0x1eb60d,_0x1e1c0a=_0x3884cc[_0x2c325f(0x123)](K)['getShapeModel'](_0x23fc26,_0x13f2a2,_0x1fd74b);return _0x1e1c0a&&(_0x41acd7!==void 0x0&&_0x1e1c0a[_0x2c325f(0xee)](_0x41acd7),_0x60231a&&(_0x1e1c0a==null||_0x1e1c0a[_0x2c325f(0x13a)](_0x60231a,!0x0))),!0x0;}},ee={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x162),'handler':(_0x50517c,_0x4317a0)=>{const _0x49eab5=_0x24315c;var _0x57a3f9,_0x36ab24;let _0x32eb3c=_0x37d1c8(_0x50517c[_0x49eab5(0x123)](_0x14f0b3),_0x4317a0);if(!_0x32eb3c)return!0x1;let _0x462ead=_0x50517c[_0x49eab5(0x123)](_0x3dac38),{unitId:_0x14b07b,subUnitId:_0x4fe54a}=_0x32eb3c,_0x29aaf2=_0x462ead[_0x49eab5(0x133)](_0x14b07b,_0x4fe54a);if(!_0x29aaf2)return!0x1;let _0x5e365f=_0x50517c['get'](K),{shapeId:_0x25369d,shapeType:_0x17488f,shapeData:_0x711b51,position:_0x6361ed,width:_0x198717,height:_0x3fddfc}=_0x4317a0,_0x538a86=_0x5e365f[_0x49eab5(0xfe)](_0x14b07b,_0x4fe54a,_0x25369d);if(!_0x538a86)return!0x1;let _0x3897cc=_0x50517c[_0x49eab5(0x123)](_0x12d889),_0x15d4ce=_0x50517c[_0x49eab5(0x123)](_0x32f094),_0x3232d1=_0x50517c['get'](_0x3d6fd9),_0x28a5df=_0x50517c[_0x49eab5(0x123)](_0x189a5a),_0xf0c65f={'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'shapeId':_0x25369d,'shapeType':_0x17488f,'shapeData':_0x711b51},_0x4a0080=_0x538a86['getShapeType'](),_0x34b559=_0x538a86[_0x49eab5(0x15a)](),{x:_0x1a81b2,y:_0x1ba525}=_0x6361ed,_0x2f92c4={'from':_0x29aaf2[_0x49eab5(0x182)](_0x1a81b2,_0x1ba525),'to':_0x29aaf2[_0x49eab5(0x182)](_0x1a81b2+_0x198717,_0x1ba525+_0x3fddfc)},_0x210b52={'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'drawingId':_0x25369d,'drawingType':_0xcd5ef0['DRAWING_SHAPE'],'sheetTransform':_0x2f92c4,'transform':{'left':_0x1a81b2,'top':_0x1ba525,'width':_0x198717,'height':_0x3fddfc},'data':{'shapeType':_0x17488f,'shapeData':_0x711b51},'axisAlignSheetTransform':_0x2f92c4,'allowTransform':!0x0};_0x45bbc3(_0x17488f)&&(_0x210b52[_0x49eab5(0x116)][_0x49eab5(0x15c)]=!0x1,_0x210b52[_0x49eab5(0x116)][_0x49eab5(0x146)]=!0x1,_0x210b52['data'][_0x49eab5(0x10c)]=!0x1,_0x210b52[_0x49eab5(0x116)][_0x49eab5(0xf4)]=!0x1,_0x210b52[_0x49eab5(0x181)][_0x49eab5(0x146)]=!0x1,_0x210b52[_0x49eab5(0x181)]['resizeEnabled']=!0x1,_0x210b52[_0x49eab5(0x181)]['borderEnabled']=!0x1);let {undo:_0x5356e6,redo:_0x57012b,objects:_0x1cfd58}=_0x28a5df[_0x49eab5(0x143)]([_0x210b52]),_0x150554=_0x3232d1['onCommandExecute']({'id':_0x1ecf99['id'],'params':{'unitId':_0x14b07b,'drawings':[_0x210b52]}}),_0x4eeefa=[...(_0x57a3f9=_0x150554[_0x49eab5(0x153)])==null?[]:_0x57a3f9,{'id':_0xb6a54f['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'op':_0x57012b,'objects':_0x1cfd58,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x14b07b]},..._0x150554[_0x49eab5(0x16f)],{'id':X['id'],'params':_0xf0c65f}],_0x578ec6=[...(_0x36ab24=_0x150554[_0x49eab5(0x148)])==null?[]:_0x36ab24,{'id':_0xb6a54f['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'op':_0x5356e6,'objects':_0x1cfd58,'type':_0x366655[_0x49eab5(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x14b07b]},..._0x150554['undos'],{'id':X['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'shapeType':_0x4a0080,'shapeId':_0x25369d,'shapeData':_0x34b559}}];return _0x2d1a4f(_0x4eeefa,_0x3897cc)['result']?(_0x15d4ce[_0x49eab5(0x127)]({'unitID':_0x14b07b,'undoMutations':_0x578ec6,'redoMutations':_0x4eeefa}),!0x0):!0x1;}},Z={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x164),'handler':(_0x33fe83,_0x14face)=>{const _0x1e6d55=_0x24315c;var _0x14d41a,_0x404b2a;let _0x194836=_0x37d1c8(_0x33fe83[_0x1e6d55(0x123)](_0x14f0b3),_0x14face);if(!_0x194836)return!0x1;let _0x2781c6=_0x33fe83[_0x1e6d55(0x123)](_0x3dac38),{unitId:_0x41b84b,subUnitId:_0x5b443c}=_0x194836,_0x16962f=_0x2781c6[_0x1e6d55(0x16c)](_0x41b84b,_0x5b443c);if(!_0x16962f)return!0x1;let _0x4e0522=_0x33fe83[_0x1e6d55(0x123)](_0x189a5a),{shapeId:_0x58ce04,flipH:_0x547ce3,flipV:_0x141732}=_0x14face,_0x1e8e35=_0x4e0522[_0x1e6d55(0x17a)]({'unitId':_0x41b84b,'subUnitId':_0x5b443c,'drawingId':_0x58ce04});if(!_0x1e8e35)return!0x1;let _0x2a86f6=_0x33fe83[_0x1e6d55(0x123)](K)[_0x1e6d55(0xfe)](_0x41b84b,_0x5b443c,_0x58ce04);if(!_0x2a86f6)return!0x1;let _0x2a71bb=_0x33fe83[_0x1e6d55(0x123)](_0x12d889),_0xab5832=_0x33fe83[_0x1e6d55(0x123)](_0x32f094),_0x5c5ca9=_0x33fe83[_0x1e6d55(0x123)](_0x3d6fd9),_0x5c8e5c={..._0x1e8e35[_0x1e6d55(0x181)]};_0x547ce3!==void 0x0&&(_0x5c8e5c[_0x1e6d55(0x105)]=!_0x5c8e5c[_0x1e6d55(0x105)]),_0x141732!==void 0x0&&(_0x5c8e5c[_0x1e6d55(0x15b)]=!_0x5c8e5c[_0x1e6d55(0x15b)]);let _0x3ebb29=_0x4f2943(_0x5c8e5c,_0x16962f),_0x51af3b=_0x58930a(_0x5c8e5c,_0x16962f),_0x19441b=_0x2a86f6['getShapeType'](),_0x3be835=_0x2a86f6[_0x1e6d55(0x15a)](),_0x1b32f0={'unitId':_0x41b84b,'subUnitId':_0x5b443c,'drawingId':_0x58ce04,'drawingType':_0xcd5ef0[_0x1e6d55(0xe7)],'sheetTransform':_0x3ebb29,'transform':_0x5c8e5c,'data':{'shapeType':_0x19441b,'shapeData':_0x3be835},'axisAlignSheetTransform':_0x51af3b,'allowTransform':!0x0},{undo:_0x3384d1,redo:_0x3fd125,objects:_0x4b1586}=_0x4e0522[_0x1e6d55(0x143)]([_0x1b32f0]),_0x4b1505=_0x5c5ca9[_0x1e6d55(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x41b84b,'drawings':[_0x1b32f0]}}),_0x17b8e3=[...(_0x14d41a=_0x4b1505['preRedos'])==null?[]:_0x14d41a,{'id':_0xb6a54f['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'op':_0x3fd125,'objects':_0x4b1586,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x41b84b]},..._0x4b1505[_0x1e6d55(0x16f)]],_0x273c9b=[...(_0x404b2a=_0x4b1505[_0x1e6d55(0x148)])==null?[]:_0x404b2a,{'id':_0xb6a54f['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'op':_0x3384d1,'objects':_0x4b1586,'type':_0x366655[_0x1e6d55(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x41b84b]},..._0x4b1505[_0x1e6d55(0x136)]];if(_0x45bbc3(_0x19441b)){let _0x83fd0d=_0x2a86f6[_0x1e6d55(0x179)]();if(_0x83fd0d){let _0x17c560={..._0x83fd0d};_0x17c560[_0x1e6d55(0x161)]=void 0x0,_0x17c560['to']=void 0x0,_0x17b8e3[_0x1e6d55(0x12f)]({'id':X['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'shapeId':_0x58ce04,'shapeType':_0x19441b,'shapeData':{'relation':_0x17c560}}}),_0x273c9b['push']({'id':X['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'shapeId':_0x58ce04,'shapeType':_0x19441b,'shapeData':{'relation':_0x83fd0d}}});}}return _0x2d1a4f(_0x17b8e3,_0x2a71bb)[_0x1e6d55(0x132)]?(_0xab5832['pushUndoRedo']({'unitID':_0x41b84b,'undoMutations':_0x273c9b,'redoMutations':_0x17b8e3}),!0x0):!0x1;}},Q={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x14f),'handler':(_0x482f7d,_0x5c4434)=>{const _0x726d3e=_0x24315c;var _0xf9fe6d,_0x33cc50;let _0x41ac78=_0x37d1c8(_0x482f7d[_0x726d3e(0x123)](_0x14f0b3),_0x5c4434);if(!_0x41ac78)return!0x1;let _0x48e98f=_0x482f7d['get'](_0x3dac38),{unitId:_0x259cd3,subUnitId:_0x45b871}=_0x41ac78,_0x4d7ac7=_0x48e98f[_0x726d3e(0x16c)](_0x259cd3,_0x45b871);if(!_0x4d7ac7)return!0x1;let _0x3dad01=_0x482f7d[_0x726d3e(0x123)](_0x189a5a),{shapeId:_0x16bcaf,rotate:_0x2398b7}=_0x5c4434,_0x3e2668=_0x3dad01[_0x726d3e(0x17a)]({'unitId':_0x259cd3,'subUnitId':_0x45b871,'drawingId':_0x16bcaf});if(!_0x3e2668)return!0x1;let _0xf665c6=_0x482f7d[_0x726d3e(0x123)](K)[_0x726d3e(0xfe)](_0x259cd3,_0x45b871,_0x16bcaf);if(!_0xf665c6)return!0x1;let _0x368328=_0x482f7d[_0x726d3e(0x123)](_0x12d889),_0x13015d=_0x482f7d[_0x726d3e(0x123)](_0x32f094),_0xd5c8e=_0x482f7d[_0x726d3e(0x123)](_0x3d6fd9),_0x3bd1e4={..._0x3e2668[_0x726d3e(0x181)]};_0x2398b7!==void 0x0&&(_0x3bd1e4[_0x726d3e(0x104)]=(_0x3bd1e4[_0x726d3e(0x104)]||0x0)+_0x2398b7);let _0x494672=_0x4f2943(_0x3bd1e4,_0x4d7ac7),_0x2db895=_0x58930a(_0x3bd1e4,_0x4d7ac7),_0x1d1b2e=_0xf665c6[_0x726d3e(0x126)](),_0x4b7f7a=_0xf665c6['getShapeData'](),_0x29dd6e={'unitId':_0x259cd3,'subUnitId':_0x45b871,'drawingId':_0x16bcaf,'drawingType':_0xcd5ef0[_0x726d3e(0xe7)],'sheetTransform':_0x494672,'transform':_0x3bd1e4,'data':{'shapeType':_0x1d1b2e,'shapeData':_0x4b7f7a},'axisAlignSheetTransform':_0x2db895,'allowTransform':!0x0},{undo:_0x57485c,redo:_0x304b11,objects:_0x5ab21f}=_0x3dad01[_0x726d3e(0x143)]([_0x29dd6e]),_0x3919f9=_0xd5c8e[_0x726d3e(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x259cd3,'drawings':[_0x29dd6e]}}),_0x4f13a7=[...(_0xf9fe6d=_0x3919f9[_0x726d3e(0x153)])==null?[]:_0xf9fe6d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x259cd3,'subUnitId':_0x45b871,'op':_0x304b11,'objects':_0x5ab21f,'type':_0x366655[_0x726d3e(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x259cd3]},..._0x3919f9[_0x726d3e(0x16f)]],_0x501f25=[...(_0x33cc50=_0x3919f9[_0x726d3e(0x148)])==null?[]:_0x33cc50,{'id':_0xb6a54f['id'],'params':{'unitId':_0x259cd3,'subUnitId':_0x45b871,'op':_0x57485c,'objects':_0x5ab21f,'type':_0x366655[_0x726d3e(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x259cd3]},..._0x3919f9[_0x726d3e(0x136)]];return _0x2d1a4f(_0x4f13a7,_0x368328)[_0x726d3e(0x132)]?(_0x13015d[_0x726d3e(0x127)]({'unitID':_0x259cd3,'undoMutations':_0x501f25,'redoMutations':_0x4f13a7}),!0x0):!0x1;}},te={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0xf2),'handler':(_0x31e371,_0x248e34)=>{const _0x24d013=_0x24315c;var _0x198f00;let _0x351f63=_0x37d1c8(_0x31e371[_0x24d013(0x123)](_0x14f0b3),_0x248e34);if(!_0x351f63)return!0x1;let {unitId:_0x252320,subUnitId:_0x36bae7}=_0x351f63,{shapeId:_0x3c287c}=_0x248e34,_0x4a72e0=_0x31e371[_0x24d013(0x123)](K)['getShapeModel'](_0x252320,_0x36bae7,_0x3c287c);if(!_0x4a72e0)return!0x1;let _0x2d6232=_0x4a72e0[_0x24d013(0xef)](),_0xa33a25=(_0x198f00=_0x2d6232==null?void 0x0:_0x2d6232[_0x24d013(0x112)])==null?!0x0:_0x198f00,_0x53f305=!_0xa33a25,_0x2b697c=_0x31e371[_0x24d013(0x123)](_0x12d889),_0x3211ba=_0x31e371['get'](_0x32f094),_0x23536d={'unitId':_0x252320,'subUnitId':_0x36bae7,'shapeId':_0x3c287c,'shapeData':{'shapeText':{'isHorizontal':_0x53f305}}},_0x2c81a9={'unitId':_0x252320,'subUnitId':_0x36bae7,'shapeId':_0x3c287c,'shapeData':{'shapeText':{'isHorizontal':_0xa33a25}}},_0x58cf59=[{'id':X['id'],'params':_0x23536d}],_0x42631a=[{'id':X['id'],'params':_0x2c81a9}];return _0x2d1a4f(_0x58cf59,_0x2b697c)[_0x24d013(0x132)]?(_0x3211ba['pushUndoRedo']({'unitID':_0x252320,'undoMutations':_0x42631a,'redoMutations':_0x58cf59}),!0x0):!0x1;}},ne={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0xfc),'handler':(_0x15024b,_0x466f1c)=>{const _0x196d25=_0x24315c;var _0x2741b9,_0x3e8752,_0x359cee,_0x3a617c;let _0x5b2e33=_0x37d1c8(_0x15024b[_0x196d25(0x123)](_0x14f0b3),_0x466f1c);if(!_0x5b2e33)return!0x1;let _0x20376d=_0x15024b[_0x196d25(0x123)](_0x3dac38),{unitId:_0x408576,subUnitId:_0x3fcb77}=_0x5b2e33,_0x15b674=_0x20376d[_0x196d25(0x16c)](_0x408576,_0x3fcb77);if(!_0x15b674)return!0x1;let _0x230328=_0x15024b[_0x196d25(0x123)](_0x189a5a),{connectorShapeId:_0x1a4f88,width:_0x1e176a,height:_0x379e23,left:_0x3a7138,top:_0x46521e,flipX:_0x5bf3d3,flipY:_0x1adb59,rotation:_0x362bec,oldAdjustValues:_0x14d18b,newAdjustValues:_0x375af5,oldLineType:_0x3ce00c,newLineType:_0x2a61a5,oldRelation:_0x4938ad,newRelation:_0xe09d53}=_0x466f1c,_0x695d86=_0x230328['getDrawingByParam']({'unitId':_0x408576,'subUnitId':_0x3fcb77,'drawingId':_0x1a4f88});if(!_0x695d86)return!0x1;let _0xee11b3=_0x15024b[_0x196d25(0x123)](K)[_0x196d25(0xfe)](_0x408576,_0x3fcb77,_0x1a4f88);if(!_0xee11b3)return!0x1;let _0x13db62=_0x15024b[_0x196d25(0x123)](_0x12d889),_0xf8996c=_0x15024b['get'](_0x32f094),_0x1438a4=_0x15024b[_0x196d25(0x123)](_0x3d6fd9),_0x54cca6={..._0x695d86['transform'],'width':_0x1e176a,'height':_0x379e23,'left':_0x3a7138,'top':_0x46521e,'flipX':_0x5bf3d3,'flipY':_0x1adb59,'angle':(_0x2741b9=_0x362bec==null?(_0x3e8752=_0x695d86[_0x196d25(0x181)])==null?void 0x0:_0x3e8752[_0x196d25(0x104)]:_0x362bec)==null?0x0:_0x2741b9},_0x1d4280=_0x4f2943(_0x54cca6,_0x15b674),_0x40f961=_0x58930a(_0x54cca6,_0x15b674),_0x3e5b75=_0xee11b3[_0x196d25(0x126)](),_0x17225f=_0xee11b3[_0x196d25(0x15a)](),_0x4ef619={'unitId':_0x408576,'subUnitId':_0x3fcb77,'drawingId':_0x1a4f88,'drawingType':_0xcd5ef0['DRAWING_SHAPE'],'sheetTransform':_0x1d4280,'transform':_0x54cca6,'data':{'shapeType':_0x2a61a5||_0x3ce00c||_0x3e5b75,'shapeData':{..._0x17225f,'adjustValues':_0x375af5||_0x14d18b||(_0x17225f==null?void 0x0:_0x17225f['adjustValues']),'relation':_0xe09d53||_0x4938ad||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0xf7)])}},'axisAlignSheetTransform':_0x40f961,'allowTransform':!0x0},{undo:_0x283ad4,redo:_0x23fa35,objects:_0x23f523}=_0x230328[_0x196d25(0x143)]([_0x4ef619]),_0x3a68d6=_0x1438a4[_0x196d25(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x408576,'drawings':[_0x4ef619]}}),_0x21af47=[...(_0x359cee=_0x3a68d6[_0x196d25(0x153)])==null?[]:_0x359cee,{'id':_0xb6a54f['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'op':_0x23fa35,'objects':_0x23f523,'type':_0x366655[_0x196d25(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x408576]},..._0x3a68d6['redos'],{'id':X['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'shapeId':_0x1a4f88,'shapeType':_0x2a61a5,'shapeData':{'adjustValues':_0x375af5,'relation':_0xe09d53}}}],_0x3b6453=[...(_0x3a617c=_0x3a68d6[_0x196d25(0x148)])==null?[]:_0x3a617c,{'id':_0xb6a54f['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'op':_0x283ad4,'objects':_0x23f523,'type':_0x366655[_0x196d25(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x408576]},..._0x3a68d6[_0x196d25(0x136)],{'id':X['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'shapeId':_0x1a4f88,'shapeType':_0x3e5b75,'shapeData':{..._0x17225f,'adjustValues':_0x14d18b||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0x144)]),'relation':_0x4938ad||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0xf7)])}}}];return _0x2d1a4f(_0x21af47,_0x13db62)[_0x196d25(0x132)]?(_0xf8996c[_0x196d25(0x127)]({'unitID':_0x408576,'undoMutations':_0x3b6453,'redoMutations':_0x21af47}),!0x0):!0x1;}},re={'type':_0x395a1d[_0x24315c(0x129)],'id':'sheet.command.update-line-shape-resize','handler':(_0x49ab1b,_0x139581)=>{const _0x34eb40=_0x24315c;var _0x5dc58d,_0x33b024;let _0x56f6f5=_0x37d1c8(_0x49ab1b[_0x34eb40(0x123)](_0x14f0b3),_0x139581);if(!_0x56f6f5)return!0x1;let _0x25c6e5=_0x49ab1b['get'](_0x3dac38),{unitId:_0x1cfa76,subUnitId:_0x18f382}=_0x56f6f5,_0x5b2274=_0x25c6e5[_0x34eb40(0x16c)](_0x1cfa76,_0x18f382);if(!_0x5b2274)return!0x1;let _0x1daf6d=_0x49ab1b[_0x34eb40(0x123)](_0x189a5a),{shapeId:_0x48de14,width:_0x58c257,height:_0x2d07ca,left:_0x1f1b5f,top:_0x3da833,flipX:_0x1279e9,flipY:_0x9e9afa,angle:_0x5e935c,oldAdjustValues:_0x4dfae9,newAdjustValues:_0x399594,oldLineType:_0x247afd,newLineType:_0x9a85a6}=_0x139581,_0xbe3706=_0x1daf6d[_0x34eb40(0x17a)]({'unitId':_0x1cfa76,'subUnitId':_0x18f382,'drawingId':_0x48de14});if(!_0xbe3706)return!0x1;let _0x220436=_0x49ab1b[_0x34eb40(0x123)](K)[_0x34eb40(0xfe)](_0x1cfa76,_0x18f382,_0x48de14);if(!_0x220436)return!0x1;let _0x5a6345=_0x49ab1b[_0x34eb40(0x123)](_0x12d889),_0x23ea96=_0x49ab1b[_0x34eb40(0x123)](_0x32f094),_0x1c3f4d=_0x49ab1b[_0x34eb40(0x123)](_0x3d6fd9),_0x533d9c={..._0xbe3706[_0x34eb40(0x181)],'width':_0x58c257,'height':_0x2d07ca,'left':_0x1f1b5f,'top':_0x3da833,'flipX':_0x1279e9,'flipY':_0x9e9afa,'angle':_0x5e935c},_0x2ad213=_0x4f2943(_0x533d9c,_0x5b2274),_0x233e3b=_0x58930a(_0x533d9c,_0x5b2274),_0xd6b0f0=_0x220436['getShapeType'](),_0x5a6f71=_0x220436[_0x34eb40(0x15a)](),_0x187045={'unitId':_0x1cfa76,'subUnitId':_0x18f382,'drawingId':_0x48de14,'drawingType':_0xcd5ef0[_0x34eb40(0xe7)],'sheetTransform':_0x2ad213,'transform':_0x533d9c,'data':{'shapeType':_0x9a85a6||_0x247afd||_0xd6b0f0,'shapeData':{..._0x5a6f71,'adjustValues':_0x399594||_0x4dfae9||(_0x5a6f71==null?void 0x0:_0x5a6f71[_0x34eb40(0x144)])}},'axisAlignSheetTransform':_0x233e3b,'allowTransform':!0x0},{undo:_0x187125,redo:_0x445c4a,objects:_0x15381a}=_0x1daf6d['getBatchUpdateOp']([_0x187045]),_0x3ec909=_0x1c3f4d[_0x34eb40(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x1cfa76,'drawings':[_0x187045]}}),_0x3e8563=[...(_0x5dc58d=_0x3ec909['preRedos'])==null?[]:_0x5dc58d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'op':_0x445c4a,'objects':_0x15381a,'type':_0x366655[_0x34eb40(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x1cfa76]},..._0x3ec909[_0x34eb40(0x16f)],{'id':X['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'shapeId':_0x48de14,'shapeType':_0x9a85a6,'shapeData':{'adjustValues':_0x399594}}}],_0x1b38bd=[...(_0x33b024=_0x3ec909[_0x34eb40(0x148)])==null?[]:_0x33b024,{'id':_0xb6a54f['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'op':_0x187125,'objects':_0x15381a,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x1cfa76]},..._0x3ec909[_0x34eb40(0x136)],{'id':X['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'shapeId':_0x48de14,'shapeType':_0xd6b0f0,'shapeData':{..._0x5a6f71,'adjustValues':_0x4dfae9||(_0x5a6f71==null?void 0x0:_0x5a6f71[_0x34eb40(0x144)])}}}];return _0x2d1a4f(_0x3e8563,_0x5a6345)[_0x34eb40(0x132)]?(_0x23ea96[_0x34eb40(0x127)]({'unitID':_0x1cfa76,'undoMutations':_0x1b38bd,'redoMutations':_0x3e8563}),!0x0):!0x1;}},ie={'id':'sheet.mutation.update-shape-type','type':_0x395a1d['MUTATION'],'handler':(_0x1228bd,_0x47f0d8)=>{const _0x4585a7=_0x24315c;let {unitId:_0xa0d2c5,subUnitId:_0x3f6f91,shapeType:_0x27607e,shapeId:_0x2293f7,shapeData:_0x34a923}=_0x47f0d8,_0x302f7b=_0x1228bd[_0x4585a7(0x123)](K)[_0x4585a7(0xfe)](_0xa0d2c5,_0x3f6f91,_0x2293f7);return _0x302f7b&&(_0x302f7b[_0x4585a7(0xee)](_0x27607e),_0x34a923&&(_0x302f7b==null||_0x302f7b[_0x4585a7(0x13a)](_0x34a923))),!0x0;}};var ae=_0x24315c(0x134),oe=_0x24315c(0x118);const se={};let ce=class extends _0x205493{constructor(_0x305bd5,_0x231a0c,_0x4ff6db,_0x512675,_0x1a771a){const _0x311f30=_0x24315c;super(),this[_0x311f30(0x173)]=_0x305bd5,this[_0x311f30(0x120)]=_0x231a0c,this[_0x311f30(0x115)]=_0x4ff6db,this[_0x311f30(0xea)]=_0x512675,this[_0x311f30(0x139)]=_0x1a771a,this[_0x311f30(0x13c)](),this[_0x311f30(0x11f)]();}['_initCommands'](){const _0x244553=_0x24315c;[Y,ee,Z,Q,te,ne,re,q,J,ie,X]['forEach'](_0x382c1e=>this['disposeWithMe'](this[_0x244553(0x173)][_0x244553(0x124)](_0x382c1e)));}['_initCommandInterceptor'](){const _0x3c4eab=_0x24315c;this[_0x3c4eab(0x138)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x289a06=>{const _0x1f150f=_0x3c4eab;if(_0x289a06['id']===_0x30f0fe['id']){let {drawings:_0x4b4ab9}=_0x289a06[_0x1f150f(0x13e)],_0x1b5ce6=_0x4b4ab9[_0x1f150f(0x168)](_0x53b1cd=>_0x53b1cd[_0x1f150f(0x11d)]===_0xcd5ef0[_0x1f150f(0xe7)]);if(_0x1b5ce6[_0x1f150f(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x521f61=[],_0xa4773d=[];return _0x1b5ce6[_0x1f150f(0x107)](_0x12b6d8=>{const _0x167caa=_0x1f150f;let {unitId:_0x210e6d,subUnitId:_0x39e27c,drawingId:_0x5afa4a}=_0x12b6d8,_0x479332=this[_0x167caa(0xea)][_0x167caa(0xfe)](_0x210e6d,_0x39e27c,_0x5afa4a);if(!_0x479332)throw TypeError(_0x167caa(0x159)+_0x479332);_0x521f61[_0x167caa(0x12f)]({'id':J['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x5afa4a}}),_0xa4773d[_0x167caa(0x12f)]({'id':q['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x5afa4a,'shapeType':_0x479332[_0x167caa(0x126)](),'shapeData':_0x479332[_0x167caa(0x15a)]()}});let _0x5bdbca=this[_0x167caa(0xea)]['getBasicShapeRelation'](_0x210e6d,_0x39e27c,_0x5afa4a);if(_0x5bdbca)for(let _0x219883 of _0x5bdbca){let _0x403be3=_0x219883[_0x167caa(0x16d)],_0x38eb0f=_0x219883[_0x167caa(0x176)],_0x146368=_0x38eb0f?{'from':void 0x0}:{'to':void 0x0},_0x54bdd9=_0x38eb0f?{'from':{'shapeId':_0x219883[_0x167caa(0xed)],'cxnIndex':_0x219883['cxnIndex']}}:{'to':{'shapeId':_0x219883[_0x167caa(0xed)],'cxnIndex':_0x219883['cxnIndex']}};_0x521f61[_0x167caa(0x12f)]({'id':X['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x403be3,'shapeData':{'relation':_0x146368}}}),_0xa4773d['push']({'id':X['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x403be3,'shapeData':{'relation':_0x54bdd9}}});}}),{'preRedos':_0x521f61,'redos':[],'preUndos':[],'undos':_0xa4773d};}if(_0x289a06['id']===_0x1ecf99['id']){let {drawings:_0x11fdd4}=_0x289a06[_0x1f150f(0x13e)],_0x27561c=_0x11fdd4['filter'](_0x2e9816=>_0x2e9816[_0x1f150f(0x11d)]===_0xcd5ef0['DRAWING_SHAPE']);if(_0x27561c[_0x1f150f(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3bb089=[],_0x168888=[];for(let _0x5c7181 of _0x27561c){let {unitId:_0x41f9e7,subUnitId:_0xf9198,drawingId:_0x272056,transform:_0x323e1b}=_0x5c7181;if(!_0x41f9e7||!_0xf9198||!_0x272056||!_0x323e1b)continue;let _0x2da13b=this[_0x1f150f(0xea)][_0x1f150f(0xfe)](_0x41f9e7,_0xf9198,_0x272056);if(!_0x2da13b)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x2da13b);if(_0x45bbc3(_0x2da13b[_0x1f150f(0x126)]())){let _0x724255=this[_0x1f150f(0xea)][_0x1f150f(0xff)](_0x41f9e7,_0xf9198,_0x272056);_0x724255&&(_0x3bb089['push']({'id':X['id'],'params':{'unitId':_0x41f9e7,'subUnitId':_0xf9198,'shapeId':_0x272056,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x168888[_0x1f150f(0x12f)]({'id':X['id'],'params':{'unitId':_0x41f9e7,'subUnitId':_0xf9198,'shapeId':_0x272056,'shapeData':{'relation':_0x724255}}}));}else{let _0x19e317=this[_0x1f150f(0xea)][_0x1f150f(0x163)](_0x41f9e7,_0xf9198,_0x272056);if(_0x19e317&&_0x19e317[_0x1f150f(0x142)]>0x0)for(let _0x33f25b of _0x19e317){let _0x4cdb60=_0x33f25b['lineShapeId'],_0x4f6d74=_0x33f25b[_0x1f150f(0x176)],_0x21629e=this[_0x1f150f(0xea)]['getShapeModel'](_0x41f9e7,_0xf9198,_0x4cdb60);if(!_0x21629e)continue;let _0x1e0b4f=_0x21629e[_0x1f150f(0xf9)](),_0x1e093c=_0x21629e[_0x1f150f(0x14c)]();_0x1e0b4f&&_0x1e093c?this['_addLineRerouteUpdates'](_0x41f9e7,_0xf9198,_0x4cdb60,_0x21629e,_0x1e0b4f,_0x1e093c,_0x3bb089,_0x168888,_0x272056,_0x323e1b):this[_0x1f150f(0xf5)](_0x41f9e7,_0xf9198,_0x4cdb60,_0x21629e,_0x4f6d74?_0x1e0b4f:_0x1e093c,_0x4f6d74,_0x3bb089,_0x168888,_0x272056,_0x323e1b);}}}return{'preRedos':[],'redos':_0x3bb089,'preUndos':_0x168888,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x24315c(0x150)](_0x24595a,_0x27f69b,_0x148fc6,_0x3b2931,_0x194b2f){const _0x8b3a83=_0x24315c;if(!_0x27f69b||!_0x148fc6)return null;let {shapeId:_0x115394,cxnIndex:_0x1e3a71}=_0x24595a,_0x1605a9=this[_0x8b3a83(0xea)][_0x8b3a83(0xfe)](_0x27f69b,_0x148fc6,_0x115394);if(!_0x1605a9)return null;let _0x4ae344=this['_drawingManagerService'][_0x8b3a83(0x17a)]({'unitId':_0x27f69b,'subUnitId':_0x148fc6,'drawingId':_0x115394});if(!(_0x4ae344!=null&&_0x4ae344['transform']))return null;let {left:_0x198aaf=0x0,top:_0x5f1e28=0x0,width:_0x117c2c=0x0,height:_0x4ccba4=0x0,flipX:_0xedb0de=!0x1,flipY:_0xfc2670=!0x1,angle:_0x8b0c41}=_0x4ae344[_0x8b3a83(0x181)];if(_0x194b2f&&_0x3b2931===_0x115394){var _0x55b549,_0x393d02,_0x1be053,_0x1d64f7,_0x48965f,_0x94f709,_0x4d190f;_0x198aaf=(_0x55b549=_0x194b2f['left'])==null?_0x198aaf:_0x55b549,_0x5f1e28=(_0x393d02=_0x194b2f['top'])==null?_0x5f1e28:_0x393d02,_0x117c2c=(_0x1be053=_0x194b2f[_0x8b3a83(0xf3)])==null?_0x117c2c:_0x1be053,_0x4ccba4=(_0x1d64f7=_0x194b2f['height'])==null?_0x4ccba4:_0x1d64f7,_0xedb0de=(_0x48965f=_0x194b2f['flipX'])==null?_0xedb0de:_0x48965f,_0xfc2670=(_0x94f709=_0x194b2f['flipY'])==null?_0xfc2670:_0x94f709,_0x8b0c41=(_0x4d190f=_0x194b2f[_0x8b3a83(0x104)])==null?_0x8b0c41:_0x4d190f;}_0x1605a9[_0x8b3a83(0x13d)]({'width':_0x117c2c,'height':_0x4ccba4});let _0x49968b=_0x1605a9[_0x8b3a83(0x11a)]()['find'](_0x35e9ff=>_0x35e9ff[_0x8b3a83(0x11e)]===_0x1e3a71);if(!_0x49968b)return null;let _0x402f22=_0xedb0de?_0x117c2c-_0x49968b['x']:_0x49968b['x'],_0x1eb4d3=_0xfc2670?_0x4ccba4-_0x49968b['y']:_0x49968b['y'];if(_0x8b0c41!==0x0&&_0x8b0c41!=null){let _0x113d3d=_0x8b0c41*Math['PI']/0xb4,_0x33c171=Math['cos'](_0x113d3d),_0x1ec104=Math[_0x8b3a83(0xec)](_0x113d3d),_0x1c48e8=_0x117c2c/0x2,_0x2eaa52=_0x4ccba4/0x2,_0x28fee3=_0x402f22-_0x1c48e8,_0x17612b=_0x1eb4d3-_0x2eaa52;_0x402f22=_0x1c48e8+_0x28fee3*_0x33c171-_0x17612b*_0x1ec104,_0x1eb4d3=_0x2eaa52+_0x28fee3*_0x1ec104+_0x17612b*_0x33c171;}_0x402f22+=_0x198aaf,_0x1eb4d3+=_0x5f1e28;let _0x14e81b=_0x49968b[_0x8b3a83(0x14a)]/0xea60;_0xedb0de&&(_0x14e81b=0xb4-_0x14e81b),_0xfc2670&&(_0x14e81b=-_0x14e81b),_0x14e81b+=_0x8b0c41||0x0,_0x14e81b=(_0x14e81b%0x168+0x168)%0x168;let _0x158b62=_0xee328b({'left':_0x198aaf,'top':_0x5f1e28,'width':_0x117c2c,'height':_0x4ccba4},_0x8b0c41||0x0);return{'point':{'x':_0x402f22,'y':_0x1eb4d3},'angle':_0x14e81b,'bounds':_0x158b62};}[_0x24315c(0xe5)](_0x467ae0,_0x2c34de,_0x1f17cc,_0x2d637a,_0x252478,_0x5f1e5b,_0x288159,_0xf02e1f,_0x2f0a13,_0x1a6568){const _0x1f2302=_0x24315c;let _0x34df8b=this[_0x1f2302(0x115)][_0x1f2302(0x16c)](_0x467ae0,_0x2c34de);if(!_0x34df8b)return;let _0x534d50=_0x2d637a[_0x1f2302(0x179)](),_0xb37424=_0x2d637a[_0x1f2302(0x122)](),_0x45c0a1={},_0xc1ed1e={};_0xb37424['forEach'](_0x42eb2d=>{const _0x41c1d4=_0x1f2302;let _0x5f397c=_0x2d637a[_0x41c1d4(0x155)](_0x42eb2d);_0xc1ed1e[_0x42eb2d]=_0x5f397c==null?0x0:_0x5f397c;});let _0x1ef877=this['_getConnectPointInfo'](_0x252478,_0x467ae0,_0x2c34de,_0x2f0a13,_0x1a6568),_0x3a047e=this[_0x1f2302(0x150)](_0x5f1e5b,_0x467ae0,_0x2c34de,_0x2f0a13,_0x1a6568);if(_0x1ef877&&_0x3a047e){let _0x54a9c2=_0x2d637a[_0x1f2302(0x126)](),_0xc8a074=_0x696e80(_0x1ef877,_0x3a047e,_0x54a9c2),_0x377062=_0x54a9c2;if(_0xc8a074){let _0x2ede50=_0x11cba5(_0xc8a074,_0x2d637a[_0x1f2302(0x126)]()),_0x2014a8=this[_0x1f2302(0x139)][_0x1f2302(0x177)](_0x467ae0,_0x2c34de);if(_0x2014a8&&_0x2014a8[_0x1f17cc]){let _0x3f423c=_0x2014a8[_0x1f17cc];_0x377062=_0x2ede50[_0x1f2302(0x10a)];for(let [_0x51f4c9,_0x17cac8]of Object[_0x1f2302(0x131)](_0x2ede50[_0x1f2302(0x144)]))_0x45c0a1[_0x51f4c9]=_0x17cac8;let _0xe020f6={..._0x3f423c[_0x1f2302(0x181)],'width':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0xf3)],'height':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x109)],'left':_0x2ede50[_0x1f2302(0x16a)]['left'],'top':_0x2ede50['worldRect'][_0x1f2302(0xfb)],'flipX':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x105)],'flipY':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x15b)],'angle':_0x2ede50[_0x1f2302(0x165)]},_0x3e7b18=_0x4f2943(_0xe020f6,_0x34df8b),_0x46f757=_0x58930a(_0xe020f6,_0x34df8b),_0x58f680={'unitId':_0x467ae0,'subUnitId':_0x2c34de,'drawingType':_0xcd5ef0[_0x1f2302(0xe7)],'drawingId':_0x1f17cc,'transform':_0xe020f6,'sheetTransform':_0x3e7b18,'axisAlignSheetTransform':_0x46f757},{unitId:_0x2db575,subUnitId:_0x4358cc,undo:_0xf8710e,redo:_0x4bf341,objects:_0x4c26ab}=this[_0x1f2302(0x139)][_0x1f2302(0x143)]([_0x58f680]);_0x288159[_0x1f2302(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x2db575,'subUnitId':_0x4358cc,'op':_0x4bf341,'objects':_0x4c26ab,'type':_0x366655[_0x1f2302(0x100)]}}),_0xf02e1f[_0x1f2302(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x2db575,'subUnitId':_0x4358cc,'op':_0xf8710e,'objects':_0x4c26ab,'type':_0x366655[_0x1f2302(0x100)]}});}_0x2d637a['removeLinePoints']();}_0x288159['push']({'id':X['id'],'params':{'unitId':_0x467ae0,'subUnitId':_0x2c34de,'shapeId':_0x1f17cc,'shapeType':_0x377062,'shapeData':{'adjustValues':_0x45c0a1,'relation':_0x534d50}}}),_0xf02e1f[_0x1f2302(0x12f)]({'id':X['id'],'params':{'unitId':_0x467ae0,'subUnitId':_0x2c34de,'shapeId':_0x1f17cc,'shapeType':_0x54a9c2,'shapeData':{'adjustValues':_0xc1ed1e,'relation':_0x534d50}}});}}[_0x24315c(0xf5)](_0x4125c6,_0x4108e3,_0x3e95ac,_0x38d541,_0x457d39,_0x14cd57,_0x2203d8,_0x46fe46,_0x35a6df,_0x2ea272){const _0x362ef3=_0x24315c;var _0x120464;if(!_0x457d39)return;let _0x20fb58=this[_0x362ef3(0x115)]['getSkeleton'](_0x4125c6,_0x4108e3);if(!_0x20fb58)return;let _0x20d4a0=(_0x120464=this['_drawingManagerService'][_0x362ef3(0x17a)]({'unitId':_0x4125c6,'subUnitId':_0x4108e3,'drawingId':_0x35a6df}))==null?void 0x0:_0x120464['transform'];if(!_0x20d4a0)return;let _0xdc6c27=_0x20d4a0[_0x362ef3(0x151)]!==_0x2ea272[_0x362ef3(0x151)]||_0x20d4a0[_0x362ef3(0xfb)]!==_0x2ea272[_0x362ef3(0xfb)],_0x182554=_0x20d4a0[_0x362ef3(0xf3)]!==_0x2ea272[_0x362ef3(0xf3)]||_0x20d4a0['height']!==_0x2ea272[_0x362ef3(0x109)],_0x338097=_0x20d4a0['flipX']!==_0x2ea272[_0x362ef3(0x105)]||_0x20d4a0[_0x362ef3(0x15b)]!==_0x2ea272[_0x362ef3(0x15b)],_0x203758=_0x20d4a0['angle']!==_0x2ea272[_0x362ef3(0x104)];if(_0xdc6c27&&!_0x182554&&!_0x338097&&!_0x203758){var _0x1fc980,_0x5055a9,_0x43cbf7,_0x53ed90;let _0x4bae6b=((_0x1fc980=_0x2ea272['left'])==null?0x0:_0x1fc980)-((_0x5055a9=_0x20d4a0[_0x362ef3(0x151)])==null?0x0:_0x5055a9),_0x1517ec=((_0x43cbf7=_0x2ea272[_0x362ef3(0xfb)])==null?0x0:_0x43cbf7)-((_0x53ed90=_0x20d4a0[_0x362ef3(0xfb)])==null?0x0:_0x53ed90),_0x7d811f=this[_0x362ef3(0x139)]['getDrawingData'](_0x4125c6,_0x4108e3);if(_0x7d811f&&_0x7d811f[_0x3e95ac]){var _0x4f055f,_0x5626ea,_0x5cdbaa,_0x4c62d1;let _0x56d57f=_0x7d811f[_0x3e95ac],_0x32262e={..._0x56d57f[_0x362ef3(0x181)],'left':((_0x4f055f=(_0x5626ea=_0x56d57f[_0x362ef3(0x181)])==null?void 0x0:_0x5626ea[_0x362ef3(0x151)])==null?0x0:_0x4f055f)+_0x4bae6b,'top':((_0x5cdbaa=(_0x4c62d1=_0x56d57f[_0x362ef3(0x181)])==null?void 0x0:_0x4c62d1['top'])==null?0x0:_0x5cdbaa)+_0x1517ec},_0x15130f=_0x4f2943(_0x32262e,_0x20fb58),_0x497605=_0x58930a(_0x32262e,_0x20fb58),_0x463f71={'unitId':_0x4125c6,'subUnitId':_0x4108e3,'drawingType':_0xcd5ef0[_0x362ef3(0xe7)],'drawingId':_0x3e95ac,'transform':_0x32262e,'sheetTransform':_0x15130f,'axisAlignSheetTransform':_0x497605},{unitId:_0x3e67ae,subUnitId:_0x19ff27,undo:_0x152113,redo:_0x12899e,objects:_0x4dc288}=this['_drawingManagerService'][_0x362ef3(0x143)]([_0x463f71]);_0x2203d8['push']({'id':_0xb6a54f['id'],'params':{'unitId':_0x3e67ae,'subUnitId':_0x19ff27,'op':_0x12899e,'objects':_0x4dc288,'type':_0x366655[_0x362ef3(0x100)]}}),_0x46fe46[_0x362ef3(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x3e67ae,'subUnitId':_0x19ff27,'op':_0x152113,'objects':_0x4dc288,'type':_0x366655[_0x362ef3(0x100)]}});}}else{let _0x185f7e=_0x38d541[_0x362ef3(0xf9)](),_0x1acd93=_0x38d541[_0x362ef3(0x14c)]();this[_0x362ef3(0xe5)](_0x4125c6,_0x4108e3,_0x3e95ac,_0x38d541,_0x185f7e,_0x1acd93,_0x2203d8,_0x46fe46,_0x35a6df,_0x2ea272);}}};ce=G([W(0x0,_0x12d889),W(0x1,_0x396a8a(_0x3d6fd9)),W(0x2,_0x396a8a(_0x3dac38)),W(0x3,_0x396a8a(K)),W(0x4,_0x396a8a(_0x3f7bd4))],ce);let $=class extends _0x307e7b{constructor(_0xa3f5a=se,_0x4ba299,_0x3afd75,_0x4f7f35){const _0x4dc86b=_0x24315c;super(),this[_0x4dc86b(0x170)]=_0xa3f5a,this[_0x4dc86b(0xf8)]=_0x4ba299,this[_0x4dc86b(0x173)]=_0x3afd75,this[_0x4dc86b(0x119)]=_0x4f7f35;let {..._0x22d231}=_0x5db2e6({},se,this[_0x4dc86b(0x170)]);this[_0x4dc86b(0x119)][_0x4dc86b(0x149)](_0x4dc86b(0x121),_0x22d231);}[_0x24315c(0xfa)](){const _0x50551b=_0x24315c;let _0x4c2c22=this[_0x50551b(0xf8)];[[U],[K],[ce]][_0x50551b(0x107)](_0x4394e1=>_0x4c2c22[_0x50551b(0x145)](_0x4394e1)),_0x46da78(_0x4c2c22,[[K],[ce]]);}};H($,_0x24315c(0x156),_0xf89464['UNIVER_SHEET']),H($,_0x24315c(0xeb),_0x24315c(0x157)),H($,_0x24315c(0xf6),ae),H($,_0x24315c(0x160),oe),$=G([_0x173671(_0x1837ff),W(0x1,_0x396a8a(_0x1e351a)),W(0x2,_0x12d889),W(0x3,_0x5ad0ed)],$);function _0xb7bc(){const _0x1699fe=['sin','shapeId','setShapeType','getShapeTextData','sheet.mutation.remove-shape','hasShape','sheet.command.set-shape-text-vertical-toggle','width','borderEnabled','_addLineFollowShapeUpdates','packageName','relation','_injector','getStartConnectInfo','onStarting','top','sheet.command.update-connector-relation','_shapeModelManagerMap','getShapeModel','getLineShapeRelation','UPDATE','decorate','175178jpZVZp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','angle','flipX','clear','forEach','shapeData','height','lineType','registerPluginResource','resizeEnabled','removeShape','326628DBCCVx','_resourcesManagerService','stringify','string','isHorizontal','getBatchAddOp','symbol','_sheetSkeletonService','data','onCommandExecute','1.0.0-alpha.3','_configService','getConnectionSiteList','_serializeShapeForUnit','fromJSON','drawingType','index','_initCommandInterceptor','_sheetInterceptorService','sheets-shape.config','getAdjustNames','get','registerCommand','object','getShapeType','pushUndoRedo','range','COMMAND','set','9PuoqpV','3121448kaqGfy','MUTATION','prototype','push','keys','entries','result','ensureSkeleton','@univerjs-pro/sheets-shape','default','undos','3394636HKIaFk','disposeWithMe','_drawingManagerService','setShapeData','sheet.command.insert-shape','_initCommands','updateContext','params','toJSON','isLineShape','sheet.mutation.insert-shape','length','getBatchUpdateOp','adjustValues','add','rotateEnabled','getShapeDisplayNames','preUndos','setConfig','ang','_linesIds','getEndConnectInfo','getShapeTypeById','addShape','sheet.command.set-shape-rotate','_getConnectPointInfo','left','dispose','preRedos','getShapeDataById','getAdjustValueByName','type','SHEET_SHAPE_PLUGIN','call','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getShapeData','flipY','fill','values','384500XizpTB','sheet.mutation.update-shape-data','version','from','sheet.command.set-shape-drawing-data','getBasicShapeRelation','sheet.command.toggle-shape-flip','rotation','5HhUqEA','723460OLhgAY','filter','getBasicShapeType','worldRect','_deserializeShapeForUnit','getSkeleton','lineShapeId','INSERT','redos','_config','insertShape','position','_commandService','_shapes','delete','isFrom','getDrawingData','6bPnyrz','getShapeRelation','getDrawingByParam','getOwnPropertyDescriptor','_groupIds','_ensureShapeModelManager','toPrimitive','constructor','14603810YnCHYo','transform','getCellIndexAndOffsetByPosition','UNIVER_SHEET','_addLineRerouteUpdates','function','DRAWING_SHAPE','getId','defineProperty','_sheetsShapeService','pluginName'];_0xb7bc=function(){return _0x1699fe;};return _0xb7bc();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeMutation};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -3,17 +3,12 @@ export type { IInsertSheetsShapeCommandParams } from './commands/command/add-sha
|
|
|
3
3
|
export { SetShapeDrawingDataCommand } from './commands/command/set-shape-drawing-data.command';
|
|
4
4
|
export type { ISetShapeDrawingDataCommandParams } from './commands/command/set-shape-drawing-data.command';
|
|
5
5
|
export { ToggleSheetsShapeFlipCommand } from './commands/command/set-shape-flip.command';
|
|
6
|
-
export type { IUpdateSheetsShapeFlipCommandParams } from './commands/command/set-shape-flip.command';
|
|
7
6
|
export { SetSheetsShapeRotateCommand } from './commands/command/set-shape-rotate.command';
|
|
8
|
-
export type { IUpdateSheetsShapeRotateCommandParams } from './commands/command/set-shape-rotate.command';
|
|
9
7
|
export { SetSheetsShapeTextVerticalToggleCommand } from './commands/command/set-shape-text-vertical-toggle.command';
|
|
10
|
-
export type { ISetSheetsShapeTextVerticalToggleCommandParams, } from './commands/command/set-shape-text-vertical-toggle.command';
|
|
11
8
|
export { UpdateConnectorRelationCommand } from './commands/command/update-connector-relation.command';
|
|
12
9
|
export type { IUpdateConnectorRelationCommandParams } from './commands/command/update-connector-relation.command';
|
|
13
10
|
export { UpdateLineShapeResizeCommand } from './commands/command/update-line-shape-resize.command';
|
|
14
11
|
export type { IUpdateSheetsShapeResizeCommandParams } from './commands/command/update-line-shape-resize.command';
|
|
15
|
-
export { UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
|
|
16
|
-
export type { IUpdateSheetsShapeTypeCommandParams } from './commands/command/update-shape-type.command';
|
|
17
12
|
export { InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
|
|
18
13
|
export type { IInsertSheetsShapeMutationParams } from './commands/mutation/add-shape.mutation';
|
|
19
14
|
export { RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
|
|
@@ -21,8 +16,7 @@ export type { IRemoveSheetsShapeMutationParams } from './commands/mutation/remov
|
|
|
21
16
|
export { UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
|
|
22
17
|
export type { IUpdateSheetsShapeDataMutationParams } from './commands/mutation/update-shape-data.mutation';
|
|
23
18
|
export { UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
|
|
24
|
-
export
|
|
25
|
-
export {
|
|
26
|
-
export type { IDrawingShapeData, ISheetShapeDrawingParam } from './common/types';
|
|
19
|
+
export { DEFAULT_SHAPE_HEIGHT, DEFAULT_SHAPE_WIDTH, } from './common/const';
|
|
20
|
+
export type { IDrawingShapeData, ISheetShapeDrawingParam, } from './common/types';
|
|
27
21
|
export { UniverSheetsShapePlugin } from './plugin';
|
|
28
22
|
export { SheetsShapeService } from './services/sheet-shape-services';
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x57eb(_0x5b7eec,_0x4e3ddf){_0x5b7eec=_0x5b7eec-0xf3;const _0xc53854=_0xc538();let _0x57eb9c=_0xc53854[_0x5b7eec];return _0x57eb9c;}function _0xc538(){const _0x8db38b=['newShape','left','\x20and\x20subUnitId\x20','ConnectorCoordinateTransform','ShapeTypeEnum','entries','localToWorld','setAbsolutePosition','Module','shapeData','connectShapes','@univerjs-pro/engine-shape','getShapes','opacity','lineStrokeType','isLineShape','setStartArrowType','call','ensureSkeleton','1446538KVXKRl','getDrawingData','@univerjs/drawing','stroke','index','connectionSiteIndex','find','dashType','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','setEndArrowType','RemoveSheetDrawingCommand','defineProperty','setWidth','lineType','getEndConnectInfo','isConnectorShape','shape','point','get','getShapeData','UniverCore','flipY','extend','InsertShapeCommand','drawId','DRAWING_SHAPE','2478UEnPvY','1208DNcDLC','getShapeType','setShapeData','SheetsShapeService','getSize','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','color','getWorkbook','FConnectorShape','SheetSkeletonService','getConnectorLinePoints','fillType','routeConnectorLineShape','setShapeType','SolidFill','getStartConnectInfo','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','setEndArrowSize','getShapeRelation','getShapeId','string','UpdateConnectorRelationCommand','getDrawingPoints','setStrokeColor','UniverProSheetsShape','cos','capType','abs','exports','setStrokeLineType','UniverSheetsDrawing','FEnum','UniverProSheetsShapeFacade','insertShape','removeShape','ShapeArrowTypeEnum','\x20not\x20found','convertPositionCellToSheetOverGrid','cxnIndex','fill','gradientType','ShapeLineJoinEnum',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','setStrokeWidth','@univerjs/core','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeLineDashEnum','524PCDotG','stringify','getAdjustPoints','_commandService','@univerjs-pro/sheets-shape','iterator','SetShapeDrawingDataCommand','unitId','setHeight','ShapeGradientTypeEnum','@univerjs/sheets/facade','keys','ShapeArrowSizeEnum','_resolveEndpoints','Skeleton\x20for\x20unitId\x20','parse','type','height','shapeType','updateContext','3238420UtnvOg','width','drawingType','function','getPosition','from','generateRandomId','2787cKzrJw','getConnectionSites','executeCommand','FShape','2471kwWGfe','setNoneFill','flipX','FWorksheet','ShapeLineTypeEnum','push','updateShape','_injector','length','build','toStringTag','setStrokeLineCapType','getBasicShapeRotateBound','_resolveExistingOrFreeEndpoint','startArrow','setStrokeOpacity','setStartArrowSize','ISheetDrawingService','DEFAULT_SHAPE_WIDTH','DrawingTypeEnum','object','transform','rotation','getUnitId','relation','getShapeModel','endArrow','newConnector','amd','setPosition','@univerjs/sheets-drawing','setShapeSolidFill','_preloadShapeProperties','worldRect','getDrawingByParam','IDrawingManagerService','getAdjustValueByName','adjustValues','225676jaFXnf','getSheetId','top','21559190ohSrzi','lineJoinType','symbol','5202vBvhhw','@univerjs/sheets','ShapeFillEnum','subUnitId'];_0xc538=function(){return _0x8db38b;};return _0xc538();}(function(_0x3ea46e,_0x46dbe7){const _0x1ba3cd=_0x57eb,_0x4318e2=_0x3ea46e();while(!![]){try{const _0x297181=-parseInt(_0x1ba3cd(0x176))/0x1+-parseInt(_0x1ba3cd(0x193))/0x2+parseInt(_0x1ba3cd(0x14c))/0x3*(-parseInt(_0x1ba3cd(0x131))/0x4)+-parseInt(_0x1ba3cd(0x145))/0x5+-parseInt(_0x1ba3cd(0x101))/0x6*(-parseInt(_0x1ba3cd(0x150))/0x7)+parseInt(_0x1ba3cd(0x102))/0x8*(parseInt(_0x1ba3cd(0x17c))/0x9)+parseInt(_0x1ba3cd(0x179))/0xa;if(_0x297181===_0x46dbe7)break;else _0x4318e2['push'](_0x4318e2['shift']());}catch(_0x29815a){_0x4318e2['push'](_0x4318e2['shift']());}}}(_0xc538,0xa3bc2),function(_0x32328f,_0x50e639){const _0x57f258=_0x57eb;typeof exports==_0x57f258(0x164)&&typeof module<'u'?_0x50e639(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x57f258(0x148)&&define[_0x57f258(0x16c)]?define([_0x57f258(0x11e),_0x57f258(0x18b),'@univerjs/core/facade',_0x57f258(0x135),_0x57f258(0x12e),_0x57f258(0x195),_0x57f258(0x17d),_0x57f258(0x16e),_0x57f258(0x13b)],_0x50e639):(_0x32328f=typeof globalThis<'u'?globalThis:_0x32328f||self,_0x50e639(_0x32328f[_0x57f258(0x122)]={},_0x32328f['UniverProEngineShape'],_0x32328f['UniverCoreFacade'],_0x32328f[_0x57f258(0x11a)],_0x32328f[_0x57f258(0xfb)],_0x32328f['UniverDrawing'],_0x32328f['UniverSheets'],_0x32328f[_0x57f258(0x120)],_0x32328f['UniverSheetsFacade']));}(this,function(_0x44e3e2,_0x2d3149,_0x4bcb01,_0x10036c,_0x3c3b6a,_0x4756c1,_0x2198b1,_0x44cfc6,_0x2f4305){const _0x251f25=_0x57eb;Object[_0x251f25(0x19e)](_0x44e3e2,Symbol[_0x251f25(0x15a)],{'value':_0x251f25(0x188)});var _0x42bd3e=class extends _0x4bcb01[_0x251f25(0x121)]{get[_0x251f25(0x184)](){const _0x337172=_0x251f25;return _0x2d3149[_0x337172(0x184)];}get[_0x251f25(0x17e)](){const _0xb9c9a0=_0x251f25;return _0x2d3149[_0xb9c9a0(0x17e)];}get[_0x251f25(0x13a)](){const _0x4fa99b=_0x251f25;return _0x2d3149[_0x4fa99b(0x13a)];}get[_0x251f25(0x154)](){const _0x56bda9=_0x251f25;return _0x2d3149[_0x56bda9(0x154)];}get[_0x251f25(0x130)](){const _0x20502c=_0x251f25;return _0x2d3149[_0x20502c(0x130)];}get['ShapeLineCapEnum'](){return _0x2d3149['ShapeLineCapEnum'];}get[_0x251f25(0x12b)](){const _0x2dc835=_0x251f25;return _0x2d3149[_0x2dc835(0x12b)];}get['ShapeArrowTypeEnum'](){const _0x47a3f1=_0x251f25;return _0x2d3149[_0x47a3f1(0x125)];}get[_0x251f25(0x13d)](){const _0x147067=_0x251f25;return _0x2d3149[_0x147067(0x13d)];}};_0x4bcb01[_0x251f25(0x121)]['extend'](_0x42bd3e);function _0x46e1ec(_0x2feca4){'@babel/helpers - typeof';const _0x58480d=_0x251f25;return _0x46e1ec=typeof Symbol==_0x58480d(0x148)&&typeof Symbol[_0x58480d(0x136)]==_0x58480d(0x17b)?function(_0x25f17b){return typeof _0x25f17b;}:function(_0x52fa13){const _0x246948=_0x58480d;return _0x52fa13&&typeof Symbol==_0x246948(0x148)&&_0x52fa13['constructor']===Symbol&&_0x52fa13!==Symbol['prototype']?'symbol':typeof _0x52fa13;},_0x46e1ec(_0x2feca4);}function _0x2f9f87(_0x183327,_0xfa35c9){const _0x1bf49f=_0x251f25;if(_0x46e1ec(_0x183327)!=_0x1bf49f(0x164)||!_0x183327)return _0x183327;var _0x8503ad=_0x183327[Symbol['toPrimitive']];if(_0x8503ad!==void 0x0){var _0x3586e6=_0x8503ad[_0x1bf49f(0x191)](_0x183327,_0xfa35c9||'default');if(_0x46e1ec(_0x3586e6)!=_0x1bf49f(0x164))return _0x3586e6;throw TypeError(_0x1bf49f(0x12f));}return(_0xfa35c9===_0x1bf49f(0x116)?String:Number)(_0x183327);}function _0x346edc(_0x53c03b){const _0xc7a6e8=_0x251f25;var _0x493627=_0x2f9f87(_0x53c03b,_0xc7a6e8(0x116));return _0x46e1ec(_0x493627)==_0xc7a6e8(0x17b)?_0x493627:_0x493627+'';}function _0xd8f3a7(_0x466baf,_0x26b110,_0x2efe9f){const _0x51c042=_0x251f25;return(_0x26b110=_0x346edc(_0x26b110))in _0x466baf?Object[_0x51c042(0x19e)](_0x466baf,_0x26b110,{'value':_0x2efe9f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x466baf[_0x26b110]=_0x2efe9f,_0x466baf;}var _0x5838cb=class{constructor(_0x2d51ee,_0x4fa8ec,_0x279d31,_0x14055b){const _0xb45065=_0x251f25;_0xd8f3a7(this,_0xb45065(0x138),void 0x0),_0xd8f3a7(this,_0xb45065(0x17f),void 0x0),_0xd8f3a7(this,'drawId',void 0x0),_0xd8f3a7(this,'x',0x0),_0xd8f3a7(this,'y',0x0),_0xd8f3a7(this,_0xb45065(0x146),_0x10036c['DEFAULT_SHAPE_WIDTH']),_0xd8f3a7(this,_0xb45065(0x142),_0x10036c['DEFAULT_SHAPE_HEIGHT']),_0xd8f3a7(this,_0xb45065(0x143),void 0x0),_0xd8f3a7(this,'shapeData',{}),_0xd8f3a7(this,_0xb45065(0x157),void 0x0),this[_0xb45065(0x138)]=_0x2d51ee,this[_0xb45065(0x17f)]=_0x4fa8ec,this[_0xb45065(0xff)]=_0x279d31||(0x0,_0x3c3b6a[_0xb45065(0x14b)])(),this[_0xb45065(0x157)]=_0x14055b;}[_0x251f25(0x16d)](_0x2aeff7,_0x39ecf8,_0x5bc658,_0x31ccba){const _0x41b6d4=_0x251f25;let _0x47e86d=this[_0x41b6d4(0x157)][_0x41b6d4(0xf9)](_0x2198b1[_0x41b6d4(0x10b)])[_0x41b6d4(0x192)](this[_0x41b6d4(0x138)],this[_0x41b6d4(0x17f)]);if(!_0x47e86d)throw Error(_0x41b6d4(0x13f)+this[_0x41b6d4(0x138)]+'\x20and\x20subUnitId\x20'+this[_0x41b6d4(0x17f)]+_0x41b6d4(0x126));let {transform:_0x25d0bf}=(0x0,_0x2198b1[_0x41b6d4(0x127)])(this['unitId'],this['subUnitId'],{'row':_0x2aeff7,'column':_0x39ecf8,'rowOffset':_0x5bc658,'columnOffset':_0x31ccba},0x1,0x1,_0x47e86d);return this['x']=_0x25d0bf[_0x41b6d4(0x181)],this['y']=_0x25d0bf[_0x41b6d4(0x178)],this;}[_0x251f25(0x187)](_0x420714,_0x267ba2){return this['x']=_0x420714,this['y']=_0x267ba2,this;}[_0x251f25(0x10f)](_0x3be357){const _0x45a759=_0x251f25;return this[_0x45a759(0x143)]=_0x3be357,this;}[_0x251f25(0x104)](_0x11ac37){const _0x38b34b=_0x251f25;return _0x11ac37[_0x38b34b(0x143)]&&this[_0x38b34b(0x10f)](_0x11ac37['shapeType']),this['shapeData']={..._0x11ac37},this;}[_0x251f25(0x16f)](_0x3c02ba,_0x33a25a){const _0x4c0ca9=_0x251f25;return this[_0x4c0ca9(0x189)][_0x4c0ca9(0x129)]||(this[_0x4c0ca9(0x189)][_0x4c0ca9(0x129)]={}),this['shapeData'][_0x4c0ca9(0x129)][_0x4c0ca9(0x10d)]=_0x2d3149[_0x4c0ca9(0x17e)][_0x4c0ca9(0x110)],_0x3c02ba!==void 0x0&&(this[_0x4c0ca9(0x189)][_0x4c0ca9(0x129)][_0x4c0ca9(0x108)]=_0x3c02ba),_0x33a25a!==void 0x0&&(this['shapeData'][_0x4c0ca9(0x129)]['opacity']=_0x33a25a),this;}['setShapeGradientFill'](_0x49cbad,_0xda11,_0x2f3954){const _0x47bf71=_0x251f25;if(_0xda11===void 0x0||_0xda11['length']===0x0)throw Error(_0x47bf71(0x19b));return this[_0x47bf71(0x189)][_0x47bf71(0x129)]||(this[_0x47bf71(0x189)][_0x47bf71(0x129)]={}),this[_0x47bf71(0x189)][_0x47bf71(0x129)]['gradientStops']=_0xda11,this[_0x47bf71(0x189)][_0x47bf71(0x129)][_0x47bf71(0x10d)]=_0x2d3149[_0x47bf71(0x17e)]['GradientFill'],this['shapeData'][_0x47bf71(0x129)][_0x47bf71(0x12a)]=_0x49cbad,_0x2f3954!==void 0x0&&(this['shapeData'][_0x47bf71(0x129)]['gradientAngle']=_0x2f3954),this;}[_0x251f25(0x151)](){const _0x547e89=_0x251f25;return this[_0x547e89(0x189)][_0x547e89(0x129)]={'fillType':_0x2d3149[_0x547e89(0x17e)]['NoFill']},this;}[_0x251f25(0x119)](_0x41d4b5){const _0x4dff40=_0x251f25;return this[_0x4dff40(0x189)]['stroke']||(this[_0x4dff40(0x189)]['stroke']={}),this['shapeData'][_0x4dff40(0x196)][_0x4dff40(0x108)]=_0x41d4b5,this;}[_0x251f25(0x12d)](_0x260639){const _0x3d13dc=_0x251f25;return this[_0x3d13dc(0x189)][_0x3d13dc(0x196)]||(this[_0x3d13dc(0x189)][_0x3d13dc(0x196)]={}),this[_0x3d13dc(0x189)][_0x3d13dc(0x196)][_0x3d13dc(0x146)]=_0x260639,this;}['setStrokeLineDashType'](_0x4e382f){const _0x45a29c=_0x251f25;return this[_0x45a29c(0x189)][_0x45a29c(0x196)]||(this[_0x45a29c(0x189)][_0x45a29c(0x196)]={}),this['shapeData']['stroke'][_0x45a29c(0x19a)]=_0x4e382f,this;}['setStrokeLineJoinType'](_0x9988b6){const _0x342269=_0x251f25;return this['shapeData'][_0x342269(0x196)]||(this[_0x342269(0x189)]['stroke']={}),this[_0x342269(0x189)][_0x342269(0x196)][_0x342269(0x17a)]=_0x9988b6,this;}[_0x251f25(0x15b)](_0x2cd17a){const _0x2c6572=_0x251f25;return this[_0x2c6572(0x189)]['stroke']||(this[_0x2c6572(0x189)][_0x2c6572(0x196)]={}),this[_0x2c6572(0x189)][_0x2c6572(0x196)][_0x2c6572(0x11c)]=_0x2cd17a,this;}[_0x251f25(0x15f)](_0x3c75ef){const _0x11f06e=_0x251f25;return this['shapeData']['stroke']||(this[_0x11f06e(0x189)][_0x11f06e(0x196)]={}),this[_0x11f06e(0x189)][_0x11f06e(0x196)][_0x11f06e(0x18d)]=_0x3c75ef,this;}[_0x251f25(0x11f)](_0x307de1){const _0x4418a1=_0x251f25;return this['shapeData'][_0x4418a1(0x196)]||(this[_0x4418a1(0x189)]['stroke']={}),this[_0x4418a1(0x189)][_0x4418a1(0x196)][_0x4418a1(0x18e)]=_0x307de1,this;}[_0x251f25(0xf3)](_0x506d12){const _0x4b946a=_0x251f25;return this[_0x4b946a(0x146)]=_0x506d12,this;}[_0x251f25(0x139)](_0x20ecb1){return this['height']=_0x20ecb1,this;}[_0x251f25(0x18f)](){const _0x56cfef=_0x251f25;let _0x2b4802=this[_0x56cfef(0x157)][_0x56cfef(0xf9)](_0x10036c[_0x56cfef(0x105)])['getShapeModel'](this['unitId'],this[_0x56cfef(0x17f)],this[_0x56cfef(0xff)]);return _0x2b4802?(0x0,_0x2d3149[_0x56cfef(0xf6)])(_0x2b4802['getShapeType']()):this[_0x56cfef(0x143)]?(0x0,_0x2d3149[_0x56cfef(0xf6)])(this[_0x56cfef(0x143)]):!0x1;}[_0x251f25(0x14d)](){const _0x3dcb22=_0x251f25;let _0x2c113a=this['_injector'][_0x3dcb22(0xf9)](_0x10036c[_0x3dcb22(0x105)])['getShapeModel'](this['unitId'],this['subUnitId'],this[_0x3dcb22(0xff)]);if(!_0x2c113a)return[];let _0x379e4f=this[_0x3dcb22(0x157)][_0x3dcb22(0xf9)](_0x4756c1[_0x3dcb22(0x173)])[_0x3dcb22(0x172)]({'unitId':this[_0x3dcb22(0x138)],'subUnitId':this[_0x3dcb22(0x17f)],'drawingId':this[_0x3dcb22(0xff)]});if(!(_0x379e4f!=null&&_0x379e4f[_0x3dcb22(0x165)]))return[];let {width:_0x79d23=0x0,height:_0x54b8d6=0x0}=_0x379e4f['transform'];return _0x2c113a[_0x3dcb22(0x144)]({'width':_0x79d23,'height':_0x54b8d6}),_0x2c113a['getConnectionSiteList']();}[_0x251f25(0x133)](){const _0x45fe6a=_0x251f25;let _0x397be1=this[_0x45fe6a(0x157)][_0x45fe6a(0xf9)](_0x10036c[_0x45fe6a(0x105)])[_0x45fe6a(0x169)](this['unitId'],this['subUnitId'],this['drawId']);if(!_0x397be1)return[];let _0x9c227d=this[_0x45fe6a(0x157)]['get'](_0x4756c1[_0x45fe6a(0x173)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x45fe6a(0x17f)],'drawingId':this['drawId']});if(!(_0x9c227d!=null&&_0x9c227d[_0x45fe6a(0x165)]))return[];let {width:_0x1e36f1=0x0,height:_0xbb8c54=0x0}=_0x9c227d[_0x45fe6a(0x165)];return _0x397be1[_0x45fe6a(0x144)]({'width':_0x1e36f1,'height':_0xbb8c54}),_0x397be1[_0x45fe6a(0x118)]();}[_0x251f25(0x10c)](){const _0x3416b5=_0x251f25;let _0x51de0a=this[_0x3416b5(0x157)][_0x3416b5(0xf9)](_0x10036c['SheetsShapeService'])[_0x3416b5(0x169)](this['unitId'],this[_0x3416b5(0x17f)],this[_0x3416b5(0xff)]);if(!_0x51de0a||!(0x0,_0x2d3149['isConnectorShape'])(_0x51de0a[_0x3416b5(0x103)]()))return[];let _0x35de01=this[_0x3416b5(0x157)][_0x3416b5(0xf9)](_0x4756c1[_0x3416b5(0x173)])[_0x3416b5(0x172)]({'unitId':this[_0x3416b5(0x138)],'subUnitId':this[_0x3416b5(0x17f)],'drawingId':this[_0x3416b5(0xff)]});if(!(_0x35de01!=null&&_0x35de01[_0x3416b5(0x165)]))return[];let {width:_0x4c736d=0x0,height:_0x343479=0x0}=_0x35de01['transform'];return _0x51de0a['updateContext']({'width':_0x4c736d,'height':_0x343479}),_0x51de0a[_0x3416b5(0x10c)]();}[_0x251f25(0x111)](){const _0x8de56c=_0x251f25;var _0x3e7c9d;let _0xdc2ff=this[_0x8de56c(0x157)][_0x8de56c(0xf9)](_0x10036c[_0x8de56c(0x105)])[_0x8de56c(0x169)](this[_0x8de56c(0x138)],this[_0x8de56c(0x17f)],this['drawId']);return _0xdc2ff?(_0x3e7c9d=_0xdc2ff[_0x8de56c(0x111)]())==null?null:_0x3e7c9d:null;}[_0x251f25(0xf5)](){const _0x3b6b21=_0x251f25;var _0x32fe8c;let _0x1bb4cd=this['_injector'][_0x3b6b21(0xf9)](_0x10036c[_0x3b6b21(0x105)])[_0x3b6b21(0x169)](this[_0x3b6b21(0x138)],this[_0x3b6b21(0x17f)],this[_0x3b6b21(0xff)]);return _0x1bb4cd?(_0x32fe8c=_0x1bb4cd[_0x3b6b21(0xf5)]())==null?null:_0x32fe8c:null;}['build'](){const _0x11e7e5=_0x251f25;var _0x726f69,_0x505c7d;if(!this[_0x11e7e5(0x143)])throw Error(_0x11e7e5(0x112));if(this['x']===0x0||this['y']===0x0){let _0x307aa7=this[_0x11e7e5(0x157)][_0x11e7e5(0xf9)](_0x2198b1['SheetSkeletonService'])[_0x11e7e5(0x192)](this[_0x11e7e5(0x138)],this[_0x11e7e5(0x17f)]);if(!_0x307aa7)throw Error(_0x11e7e5(0x13f)+this[_0x11e7e5(0x138)]+_0x11e7e5(0x182)+this[_0x11e7e5(0x17f)]+_0x11e7e5(0x126));let {transform:_0x3dea27}=(0x0,_0x2198b1['convertPositionCellToSheetOverGrid'])(this[_0x11e7e5(0x138)],this[_0x11e7e5(0x17f)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x307aa7);this['x']=this['x']>0x0?this['x']:_0x3dea27['left'],this['y']=this['y']>0x0?this['y']:_0x3dea27[_0x11e7e5(0x178)];}return this[_0x11e7e5(0x146)]=(_0x726f69=this[_0x11e7e5(0x146)])==null?_0x10036c[_0x11e7e5(0x162)]:_0x726f69,this[_0x11e7e5(0x142)]=(_0x505c7d=this[_0x11e7e5(0x142)])==null?_0x10036c['DEFAULT_SHAPE_HEIGHT']:_0x505c7d,{'unitId':this[_0x11e7e5(0x138)],'subUnitId':this[_0x11e7e5(0x17f)],'shapeId':this[_0x11e7e5(0xff)],'shapeType':this[_0x11e7e5(0x143)],'shapeData':Object[_0x11e7e5(0x13c)](this[_0x11e7e5(0x189)])[_0x11e7e5(0x158)]>0x0?this[_0x11e7e5(0x189)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x11e7e5(0x146)],'height':this[_0x11e7e5(0x142)]};}[_0x251f25(0x115)](){const _0x47a9eb=_0x251f25;return this[_0x47a9eb(0xff)];}[_0x251f25(0x103)](){return this['shapeType'];}['getShapeData'](){const _0x2e601d=_0x251f25;return this[_0x2e601d(0x189)];}[_0x251f25(0x149)](){return{'x':this['x'],'y':this['y']};}[_0x251f25(0x106)](){const _0x4e71a0=_0x251f25;return{'width':this[_0x4e71a0(0x146)],'height':this[_0x4e71a0(0x142)]};}},_0x1a5b35=class extends _0x5838cb{constructor(_0x2495ad,_0x3045e8,_0x5eb6f9,_0x55a383){const _0x251837=_0x251f25;super(_0x2495ad,_0x3045e8,_0x5eb6f9,_0x55a383),_0xd8f3a7(this,_0x251837(0x189),{});}[_0x251f25(0x10f)](_0x995d9e){const _0x30d043=_0x251f25;if(!(0x0,_0x2d3149[_0x30d043(0xf6)])(_0x995d9e))throw Error(_0x30d043(0x107)+_0x995d9e+_0x30d043(0x12c));return super['setShapeType'](_0x995d9e),this;}[_0x251f25(0x190)](_0x33bbb8){const _0x2e2da1=_0x251f25;var _0xd803ee,_0x4cef81;return(_0xd803ee=this[_0x2e2da1(0x189)])!=null&&_0xd803ee['ln']||(this[_0x2e2da1(0x189)]['ln']={}),!((_0x4cef81=this['shapeData'])==null||(_0x4cef81=_0x4cef81['ln'])==null)&&_0x4cef81[_0x2e2da1(0x15e)]||(this[_0x2e2da1(0x189)]['ln']['startArrow']={}),this[_0x2e2da1(0x189)]['ln']['startArrow'][_0x2e2da1(0x141)]=_0x33bbb8,this;}[_0x251f25(0x19c)](_0x102cb9){const _0x2fbdc3=_0x251f25;var _0x4722bb,_0x1cd9b0;return(_0x4722bb=this['shapeData'])!=null&&_0x4722bb['ln']||(this[_0x2fbdc3(0x189)]['ln']={}),!((_0x1cd9b0=this[_0x2fbdc3(0x189)])==null||(_0x1cd9b0=_0x1cd9b0['ln'])==null)&&_0x1cd9b0['endArrow']||(this[_0x2fbdc3(0x189)]['ln']['endArrow']={}),this[_0x2fbdc3(0x189)]['ln'][_0x2fbdc3(0x16a)][_0x2fbdc3(0x141)]=_0x102cb9,this;}[_0x251f25(0x160)](_0x5a517b){const _0x70003e=_0x251f25;var _0x53bacc,_0x38e173;return(_0x53bacc=this['shapeData'])!=null&&_0x53bacc['ln']||(this['shapeData']['ln']={}),!((_0x38e173=this['shapeData'])==null||(_0x38e173=_0x38e173['ln'])==null)&&_0x38e173[_0x70003e(0x15e)]||(this['shapeData']['ln']['startArrow']={}),this[_0x70003e(0x189)]['ln'][_0x70003e(0x15e)]['size']=_0x5a517b,this;}[_0x251f25(0x113)](_0x459463){const _0x2f8ce2=_0x251f25;var _0x4fa141,_0x3bdd64;return(_0x4fa141=this[_0x2f8ce2(0x189)])!=null&&_0x4fa141['ln']||(this[_0x2f8ce2(0x189)]['ln']={}),!((_0x3bdd64=this[_0x2f8ce2(0x189)])==null||(_0x3bdd64=_0x3bdd64['ln'])==null)&&_0x3bdd64['endArrow']||(this[_0x2f8ce2(0x189)]['ln'][_0x2f8ce2(0x16a)]={}),this[_0x2f8ce2(0x189)]['ln'][_0x2f8ce2(0x16a)]['size']=_0x459463,this;}[_0x251f25(0x159)](){const _0x459c43=_0x251f25;return super[_0x459c43(0x159)]();}[_0x251f25(0xf5)](){const _0x184629=_0x251f25;var _0x573d2c;return((_0x573d2c=this['shapeData'])==null||(_0x573d2c=_0x573d2c[_0x184629(0x168)])==null?void 0x0:_0x573d2c['to'])||null;}[_0x251f25(0x111)](){const _0x539a44=_0x251f25;var _0x18cd5d;return((_0x18cd5d=this[_0x539a44(0x189)])==null||(_0x18cd5d=_0x18cd5d[_0x539a44(0x168)])==null?void 0x0:_0x18cd5d[_0x539a44(0x14a)])||null;}};function _0x579e6d(_0xecd8dc,_0x722f0a,_0x372abd,_0x1776c7,_0x1e039f,_0x288509){const _0x27c355=_0x251f25;let _0x4ad2cb=_0x1e039f['getShapeModel'](_0xecd8dc,_0x722f0a,_0x372abd);if(!_0x4ad2cb)return null;let _0x319873=_0x288509[_0x27c355(0x172)]({'unitId':_0xecd8dc,'subUnitId':_0x722f0a,'drawingId':_0x372abd});if(!(_0x319873!=null&&_0x319873['transform']))return null;let {left:_0x536ac6=0x0,top:_0x3b2c7c=0x0,width:_0x58178c=0x0,height:_0x5d1487=0x0,flipX:_0x55db9b=!0x1,flipY:_0x1dcfd8=!0x1,angle:_0xc2fcba}=_0x319873[_0x27c355(0x165)];_0x4ad2cb[_0x27c355(0x144)]({'width':_0x58178c,'height':_0x5d1487});let _0x335ad4=_0x4ad2cb['getConnectionSiteList']()[_0x27c355(0x199)](_0x126c79=>_0x126c79[_0x27c355(0x197)]===_0x1776c7);if(!_0x335ad4)return null;let _0x564199=_0x55db9b?_0x58178c-_0x335ad4['x']:_0x335ad4['x'],_0x57c67b=_0x1dcfd8?_0x5d1487-_0x335ad4['y']:_0x335ad4['y'];if(_0xc2fcba&&_0xc2fcba!==0x0){let _0x510047=_0xc2fcba*Math['PI']/0xb4,_0x49b200=Math[_0x27c355(0x11b)](_0x510047),_0x11debd=Math['sin'](_0x510047),_0x2e2815=_0x58178c/0x2,_0x58a846=_0x5d1487/0x2,_0x147cff=_0x564199-_0x2e2815,_0x5a8125=_0x57c67b-_0x58a846;_0x564199=_0x2e2815+_0x147cff*_0x49b200-_0x5a8125*_0x11debd,_0x57c67b=_0x58a846+_0x147cff*_0x11debd+_0x5a8125*_0x49b200;}_0x564199+=_0x536ac6,_0x57c67b+=_0x3b2c7c;let _0x16cebc=_0x335ad4['ang']/0xea60;_0x55db9b&&(_0x16cebc=0xb4-_0x16cebc),_0x1dcfd8&&(_0x16cebc=-_0x16cebc),_0x16cebc+=_0xc2fcba||0x0,_0x16cebc=(_0x16cebc%0x168+0x168)%0x168;let _0x4c60a7=(0x0,_0x2d3149[_0x27c355(0x15c)])({'left':_0x536ac6,'top':_0x3b2c7c,'width':_0x58178c,'height':_0x5d1487},_0xc2fcba||0x0);return{'point':{'x':_0x564199,'y':_0x57c67b},'angle':_0x16cebc,'bounds':_0x4c60a7};}function _0x32332e(_0x2e9aa2,_0x41247f){const _0x3260e9=_0x251f25;let _0x3ac4db=_0x41247f['x']-_0x2e9aa2['x'],_0x4f1739=_0x41247f['y']-_0x2e9aa2['y'];return Math[_0x3260e9(0x11d)](_0x3ac4db)>=Math['abs'](_0x4f1739)?_0x3ac4db>=0x0?0xb4:0x0:_0x4f1739>=0x0?0x10e:0x5a;}function _0x2d3437(_0x40363f,_0x50a44e,_0x23e2c6,_0x34cb65,_0x4e8164,_0x509c14,_0x2178bd){const _0x209682=_0x251f25;let _0x33503e=_0x509c14['getShapeModel'](_0x40363f,_0x50a44e,_0x23e2c6);if(!_0x33503e)return null;let _0x1c76ed=_0x2178bd['getDrawingByParam']({'unitId':_0x40363f,'subUnitId':_0x50a44e,'drawingId':_0x23e2c6});if(!(_0x1c76ed!=null&&_0x1c76ed[_0x209682(0x165)]))return null;let {left:_0x5c847e=0x0,top:_0x9a3fc9=0x0,width:_0x3adafd=0x0,height:_0x48a370=0x0,flipX:_0x49b093=!0x1,flipY:_0x795b5e=!0x1}=_0x1c76ed[_0x209682(0x165)];_0x33503e[_0x209682(0x144)]({'width':_0x3adafd,'height':_0x48a370});let _0x4cbacb=_0x33503e['getConnectorLinePoints']();if(_0x4cbacb[_0x209682(0x158)]<0x2)return null;let _0x369f4d=_0x34cb65?_0x4cbacb[0x0]:_0x4cbacb[_0x4cbacb['length']-0x1],_0xbf9753=new _0x2d3149[(_0x209682(0x183))]({'left':_0x5c847e,'top':_0x9a3fc9,'width':_0x3adafd,'height':_0x48a370,'flipX':_0x49b093,'flipY':_0x795b5e})[_0x209682(0x186)](_0x369f4d);return{'point':_0xbf9753,'angle':_0x32332e(_0x4e8164[_0x209682(0xf8)],_0xbf9753),'bounds':{'left':_0xbf9753['x'],'top':_0xbf9753['y'],'width':0x0,'height':0x0}};}var _0x4fdb13=class extends _0x2f4305[_0x251f25(0x153)]{async[_0x251f25(0x123)](_0x3c29d1){const _0x9d1ce9=_0x251f25;let {unitId:_0x1a4719,subUnitId:_0x4e8e01,shapeId:_0x3ef844,shapeType:_0x4aa38c,shapeData:_0x52e1ac,x:_0x19acc9,y:_0x27db20,width:_0x328181,height:_0x65743f}=_0x3c29d1;return this[_0x9d1ce9(0x134)][_0x9d1ce9(0x14e)](_0x10036c[_0x9d1ce9(0xfe)]['id'],{'unitId':_0x1a4719,'subUnitId':_0x4e8e01,'shapeId':_0x3ef844,'shapeType':_0x4aa38c,'shapeData':_0x52e1ac,'position':{'x':_0x19acc9,'y':_0x27db20},'width':_0x328181,'height':_0x65743f});}async[_0x251f25(0x156)](_0xe97940){const _0x984a53=_0x251f25;let {unitId:_0x1ac2f7,subUnitId:_0x3d8889,shapeId:_0x3b90e0,shapeType:_0x748835,shapeData:_0x274f9b,x:_0x10d79b,y:_0xc93074,width:_0x5a3733,height:_0xfb9183}=_0xe97940;return this[_0x984a53(0x134)][_0x984a53(0x14e)](_0x10036c[_0x984a53(0x137)]['id'],{'unitId':_0x1ac2f7,'subUnitId':_0x3d8889,'shapeId':_0x3b90e0,'shapeType':_0x748835,'shapeData':_0x274f9b,'position':{'x':_0x10d79b,'y':_0xc93074},'width':_0x5a3733,'height':_0xfb9183});}[_0x251f25(0x180)](_0x52e1d0){const _0x554f5d=_0x251f25;let _0x4b58c2=this[_0x554f5d(0x109)]()[_0x554f5d(0x167)](),_0xb98ef6=this['getSheetId']();if(_0x52e1d0){let _0x2a6bec=new _0x5838cb(_0x4b58c2,_0xb98ef6,_0x52e1d0[_0x554f5d(0xff)],this[_0x554f5d(0x157)]);return this[_0x554f5d(0x170)](_0x2a6bec,_0x4b58c2,_0xb98ef6,_0x52e1d0[_0x554f5d(0xff)]),_0x2a6bec;}return new _0x5838cb(_0x4b58c2,_0xb98ef6,(0x0,_0x3c3b6a['generateRandomId'])(),this[_0x554f5d(0x157)]);}[_0x251f25(0x16b)](_0x3d92f8){const _0x1b00a4=_0x251f25;let _0x1f602f=this[_0x1b00a4(0x109)]()[_0x1b00a4(0x167)](),_0x5ad8a0=this[_0x1b00a4(0x177)]();if(_0x3d92f8){let _0x347282=new _0x1a5b35(_0x1f602f,_0x5ad8a0,_0x3d92f8[_0x1b00a4(0xff)],this[_0x1b00a4(0x157)]);return this[_0x1b00a4(0x170)](_0x347282,_0x1f602f,_0x5ad8a0,_0x3d92f8['drawId']),_0x347282;}return new _0x1a5b35(_0x1f602f,_0x5ad8a0,(0x0,_0x3c3b6a[_0x1b00a4(0x14b)])(),this['_injector']);}[_0x251f25(0x18c)](){const _0x34524a=_0x251f25;let _0x58cacc=this[_0x34524a(0x157)]['get'](_0x44cfc6[_0x34524a(0x161)]),_0x50646d=this[_0x34524a(0x109)]()[_0x34524a(0x167)](),_0x2c8765=this['getSheetId'](),_0x1ec24b=_0x58cacc[_0x34524a(0x194)](_0x50646d,_0x2c8765);if(!_0x1ec24b)return[];let _0x29aa96=[];for(let [_0x5c7a4c,_0x354a35]of Object[_0x34524a(0x185)](_0x1ec24b))if(_0x354a35&&_0x354a35[_0x34524a(0x147)]===_0x3c3b6a[_0x34524a(0x163)][_0x34524a(0x100)]){let _0x2d3a67=new _0x5838cb(_0x50646d,_0x2c8765,_0x5c7a4c,this[_0x34524a(0x157)]);this[_0x34524a(0x170)](_0x2d3a67,_0x50646d,_0x2c8765,_0x5c7a4c),_0x29aa96[_0x34524a(0x155)](_0x2d3a67);}return _0x29aa96;}[_0x251f25(0x124)](_0x21e146){const _0x59752b=_0x251f25;let {unitId:_0x40e825,subUnitId:_0x5b799a,drawId:_0x2179ec}=_0x21e146;return this[_0x59752b(0x134)][_0x59752b(0x14e)](_0x44cfc6[_0x59752b(0x19d)]['id'],{'unitId':_0x40e825,'drawings':[{'unitId':_0x40e825,'subUnitId':_0x5b799a,'drawingId':_0x2179ec,'drawingType':_0x3c3b6a['DrawingTypeEnum'][_0x59752b(0x100)]}]});}async[_0x251f25(0x18a)](_0x249a51){const _0x35e027=_0x251f25;let {connector:_0x38b690,startTarget:_0x2c0708,endTarget:_0x334b4d}=_0x249a51;if(!_0x2c0708&&!_0x334b4d)return!0x1;let _0x3e8a36=this[_0x35e027(0x109)]()[_0x35e027(0x167)](),_0x5d6121=this[_0x35e027(0x177)](),_0x3c6f34=this['_injector']['get'](_0x10036c[_0x35e027(0x105)]),_0xd1604b=this[_0x35e027(0x157)][_0x35e027(0xf9)](_0x4756c1[_0x35e027(0x173)]),_0x20ed9a=_0x3c6f34[_0x35e027(0x169)](_0x3e8a36,_0x5d6121,_0x38b690[_0x35e027(0xff)]);if(!_0x20ed9a)return!0x1;let _0x517848=_0x20ed9a[_0x35e027(0x103)](),_0x31ec86=_0x20ed9a[_0x35e027(0x114)](),_0x1854ef={};for(let _0x36aaeb of _0x20ed9a['getAdjustNames']()){let _0x552076=_0x20ed9a[_0x35e027(0x174)](_0x36aaeb);_0x552076!==void 0x0&&(_0x1854ef[_0x36aaeb]=_0x552076);}let {startInfo:_0x58b202,endInfo:_0x300eca}=this[_0x35e027(0x13e)](_0x3e8a36,_0x5d6121,_0x38b690,_0x20ed9a,_0x2c0708,_0x334b4d,_0x3c6f34,_0xd1604b,_0x31ec86);if(!_0x58b202||!_0x300eca)return!0x1;let _0x155e79=(0x0,_0x2d3149['computeConnectorRouteLayout'])((0x0,_0x2d3149[_0x35e027(0x10e)])(_0x58b202,_0x300eca,_0x517848),_0x517848),_0x2b5d83={};return _0x2c0708?_0x2b5d83['from']={'shapeId':_0x2c0708['shape'][_0x35e027(0xff)],'cxnIndex':_0x2c0708[_0x35e027(0x198)]}:_0x31ec86!=null&&_0x31ec86[_0x35e027(0x14a)]&&(_0x2b5d83[_0x35e027(0x14a)]=_0x31ec86[_0x35e027(0x14a)]),_0x334b4d?_0x2b5d83['to']={'shapeId':_0x334b4d[_0x35e027(0xf7)][_0x35e027(0xff)],'cxnIndex':_0x334b4d[_0x35e027(0x198)]}:_0x31ec86!=null&&_0x31ec86['to']&&(_0x2b5d83['to']=_0x31ec86['to']),this[_0x35e027(0x134)][_0x35e027(0x14e)](_0x10036c[_0x35e027(0x117)]['id'],{'unitId':_0x3e8a36,'subUnitId':_0x5d6121,'connectorShapeId':_0x38b690[_0x35e027(0xff)],'width':_0x155e79[_0x35e027(0x171)][_0x35e027(0x146)],'height':_0x155e79[_0x35e027(0x171)][_0x35e027(0x142)],'left':_0x155e79[_0x35e027(0x171)][_0x35e027(0x181)],'top':_0x155e79[_0x35e027(0x171)]['top'],'flipX':_0x155e79[_0x35e027(0x171)][_0x35e027(0x152)]||!0x1,'flipY':_0x155e79[_0x35e027(0x171)][_0x35e027(0xfc)]||!0x1,'oldAdjustValues':_0x1854ef,'newAdjustValues':_0x155e79[_0x35e027(0x175)],'newLineType':_0x155e79[_0x35e027(0xf4)],'oldLineType':_0x517848,'rotation':_0x155e79[_0x35e027(0x166)],'oldRelation':_0x31ec86,'newRelation':_0x2b5d83});}[_0x251f25(0x170)](_0x2eb0d2,_0x1228ad,_0x261e7e,_0x4067f2){const _0x42db21=_0x251f25;let _0x3c5073=this['_injector']['get'](_0x4756c1[_0x42db21(0x173)])[_0x42db21(0x172)]({'unitId':_0x1228ad,'subUnitId':_0x261e7e,'drawingId':_0x4067f2});if(_0x3c5073!=null&&_0x3c5073[_0x42db21(0x165)]){var _0x7547e0,_0x4ae2c5,_0x31c01c,_0x459140;_0x2eb0d2['x']=(_0x7547e0=_0x3c5073[_0x42db21(0x165)]['left'])==null?0x0:_0x7547e0,_0x2eb0d2['y']=(_0x4ae2c5=_0x3c5073[_0x42db21(0x165)][_0x42db21(0x178)])==null?0x0:_0x4ae2c5,_0x2eb0d2[_0x42db21(0x146)]=(_0x31c01c=_0x3c5073[_0x42db21(0x165)]['width'])==null?_0x2eb0d2['width']:_0x31c01c,_0x2eb0d2[_0x42db21(0x142)]=(_0x459140=_0x3c5073['transform']['height'])==null?_0x2eb0d2['height']:_0x459140;}let _0x562c2e=this[_0x42db21(0x157)][_0x42db21(0xf9)](_0x10036c[_0x42db21(0x105)])[_0x42db21(0x169)](_0x1228ad,_0x261e7e,_0x4067f2);if(_0x562c2e){_0x2eb0d2[_0x42db21(0x143)]=_0x562c2e[_0x42db21(0x103)]();let _0x4449bf=_0x562c2e[_0x42db21(0xfa)]();_0x4449bf&&(_0x2eb0d2[_0x42db21(0x189)]=JSON[_0x42db21(0x140)](JSON[_0x42db21(0x132)](_0x4449bf)));}}[_0x251f25(0x13e)](_0x2871c0,_0x376e51,_0x5eade6,_0x222308,_0x569f98,_0x1aabed,_0x15b092,_0x3dd3b7,_0x6d0f74){const _0x440386=_0x251f25;let _0x38e620=null,_0x552a7c=null;return _0x569f98&&(_0x38e620=_0x579e6d(_0x2871c0,_0x376e51,_0x569f98[_0x440386(0xf7)]['drawId'],_0x569f98[_0x440386(0x198)],_0x15b092,_0x3dd3b7)),_0x1aabed&&(_0x552a7c=_0x579e6d(_0x2871c0,_0x376e51,_0x1aabed[_0x440386(0xf7)][_0x440386(0xff)],_0x1aabed[_0x440386(0x198)],_0x15b092,_0x3dd3b7)),_0x38e620||(_0x38e620=this[_0x440386(0x15d)](_0x2871c0,_0x376e51,_0x5eade6[_0x440386(0xff)],!0x0,_0x552a7c,_0x6d0f74==null?void 0x0:_0x6d0f74['from'],_0x15b092,_0x3dd3b7)),_0x552a7c||(_0x552a7c=this[_0x440386(0x15d)](_0x2871c0,_0x376e51,_0x5eade6[_0x440386(0xff)],!0x1,_0x38e620,_0x6d0f74==null?void 0x0:_0x6d0f74['to'],_0x15b092,_0x3dd3b7)),{'startInfo':_0x38e620,'endInfo':_0x552a7c};}[_0x251f25(0x15d)](_0x3c2737,_0x56c8c0,_0xd4d178,_0x4f6def,_0x245bde,_0x46d602,_0x4da702,_0x555422){const _0x422d01=_0x251f25;if(_0x46d602){let _0x2c9c7b=_0x579e6d(_0x3c2737,_0x56c8c0,_0x46d602['shapeId'],_0x46d602[_0x422d01(0x128)],_0x4da702,_0x555422);if(_0x2c9c7b)return _0x2c9c7b;}return _0x245bde?_0x2d3437(_0x3c2737,_0x56c8c0,_0xd4d178,_0x4f6def,_0x245bde,_0x4da702,_0x555422):null;}};_0x2f4305[_0x251f25(0x153)][_0x251f25(0xfd)](_0x4fdb13),_0x44e3e2[_0x251f25(0x10a)]=_0x1a5b35,_0x44e3e2[_0x251f25(0x14f)]=_0x5838cb;}));
|
|
1
|
+
function _0x1027(_0x2dc7f1,_0x4d8fa8){_0x2dc7f1=_0x2dc7f1-0xad;const _0x5b7141=_0x5b71();let _0x10270f=_0x5b7141[_0x2dc7f1];return _0x10270f;}(function(_0x4a3d9e,_0x367b18){const _0x56406f=_0x1027,_0x3b3f9f=_0x4a3d9e();while(!![]){try{const _0x2d1db8=-parseInt(_0x56406f(0xea))/0x1*(-parseInt(_0x56406f(0xe9))/0x2)+parseInt(_0x56406f(0xfb))/0x3+-parseInt(_0x56406f(0xb6))/0x4*(parseInt(_0x56406f(0xc3))/0x5)+-parseInt(_0x56406f(0x142))/0x6*(-parseInt(_0x56406f(0x132))/0x7)+parseInt(_0x56406f(0x113))/0x8*(-parseInt(_0x56406f(0xb8))/0x9)+parseInt(_0x56406f(0xfe))/0xa+-parseInt(_0x56406f(0x107))/0xb;if(_0x2d1db8===_0x367b18)break;else _0x3b3f9f['push'](_0x3b3f9f['shift']());}catch(_0x1b6665){_0x3b3f9f['push'](_0x3b3f9f['shift']());}}}(_0x5b71,0xd0da6),function(_0xda5adb,_0x5ef639){const _0x556793=_0x1027;typeof exports==_0x556793(0xef)&&typeof module<'u'?_0x5ef639(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x556793(0xd4)&&define[_0x556793(0xc6)]?define(['exports',_0x556793(0xbb),_0x556793(0x11a),_0x556793(0xc2),'@univerjs/core',_0x556793(0x14e),_0x556793(0xc9),'@univerjs/sheets-drawing',_0x556793(0xd6)],_0x5ef639):(_0xda5adb=typeof globalThis<'u'?globalThis:_0xda5adb||self,_0x5ef639(_0xda5adb[_0x556793(0xd5)]={},_0xda5adb[_0x556793(0xb3)],_0xda5adb[_0x556793(0xbd)],_0xda5adb['UniverProSheetsShape'],_0xda5adb['UniverCore'],_0xda5adb[_0x556793(0x124)],_0xda5adb[_0x556793(0x145)],_0xda5adb['UniverSheetsDrawing'],_0xda5adb[_0x556793(0xb1)]));}(this,function(_0x5c5861,_0x54c147,_0xd9f9e0,_0x375338,_0x24ae8f,_0x440193,_0x2597b1,_0x57bb3a,_0xad8875){const _0x52ed0f=_0x1027;Object['defineProperty'](_0x5c5861,Symbol['toStringTag'],{'value':_0x52ed0f(0xdf)});var _0xf9d592=class extends _0xd9f9e0[_0x52ed0f(0xeb)]{get['ShapeTypeEnum'](){const _0x1312b7=_0x52ed0f;return _0x54c147[_0x1312b7(0x11c)];}get[_0x52ed0f(0xe2)](){const _0x474e54=_0x52ed0f;return _0x54c147[_0x474e54(0xe2)];}get['ShapeGradientTypeEnum'](){const _0x5eee5e=_0x52ed0f;return _0x54c147[_0x5eee5e(0x146)];}get['ShapeLineTypeEnum'](){const _0x2866d3=_0x52ed0f;return _0x54c147[_0x2866d3(0xf2)];}get[_0x52ed0f(0xf3)](){const _0x8690e6=_0x52ed0f;return _0x54c147[_0x8690e6(0xf3)];}get['ShapeLineCapEnum'](){return _0x54c147['ShapeLineCapEnum'];}get[_0x52ed0f(0x10b)](){const _0x533114=_0x52ed0f;return _0x54c147[_0x533114(0x10b)];}get[_0x52ed0f(0x136)](){const _0x57e546=_0x52ed0f;return _0x54c147[_0x57e546(0x136)];}get['ShapeArrowSizeEnum'](){return _0x54c147['ShapeArrowSizeEnum'];}};_0xd9f9e0[_0x52ed0f(0xeb)][_0x52ed0f(0x12d)](_0xf9d592);function _0x4e7bd6(_0x20f485){'@babel/helpers - typeof';const _0x2efa50=_0x52ed0f;return _0x4e7bd6=typeof Symbol==_0x2efa50(0xd4)&&typeof Symbol[_0x2efa50(0x143)]==_0x2efa50(0x134)?function(_0x3805bc){return typeof _0x3805bc;}:function(_0x429edb){const _0x336a81=_0x2efa50;return _0x429edb&&typeof Symbol==_0x336a81(0xd4)&&_0x429edb[_0x336a81(0x101)]===Symbol&&_0x429edb!==Symbol[_0x336a81(0x104)]?_0x336a81(0x134):typeof _0x429edb;},_0x4e7bd6(_0x20f485);}function _0x92ee77(_0x2d5e9b,_0x1b71d9){const _0x581213=_0x52ed0f;if(_0x4e7bd6(_0x2d5e9b)!=_0x581213(0xef)||!_0x2d5e9b)return _0x2d5e9b;var _0x4cd0fe=_0x2d5e9b[Symbol['toPrimitive']];if(_0x4cd0fe!==void 0x0){var _0x1e260b=_0x4cd0fe[_0x581213(0xda)](_0x2d5e9b,_0x1b71d9||_0x581213(0xf8));if(_0x4e7bd6(_0x1e260b)!=_0x581213(0xef))return _0x1e260b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b71d9==='string'?String:Number)(_0x2d5e9b);}function _0x301c6b(_0x4d4ad8){const _0x16a4a5=_0x52ed0f;var _0x33d870=_0x92ee77(_0x4d4ad8,_0x16a4a5(0x13f));return _0x4e7bd6(_0x33d870)==_0x16a4a5(0x134)?_0x33d870:_0x33d870+'';}function _0x494f4f(_0x162e6c,_0x995d13,_0x89383f){return(_0x995d13=_0x301c6b(_0x995d13))in _0x162e6c?Object['defineProperty'](_0x162e6c,_0x995d13,{'value':_0x89383f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x162e6c[_0x995d13]=_0x89383f,_0x162e6c;}var _0x559842=class{constructor(_0x574ef3,_0x12cfc0,_0x5c9f20,_0x5de6ef){const _0x3e1a76=_0x52ed0f;_0x494f4f(this,_0x3e1a76(0xc4),void 0x0),_0x494f4f(this,_0x3e1a76(0x120),void 0x0),_0x494f4f(this,_0x3e1a76(0x105),void 0x0),_0x494f4f(this,'x',0x0),_0x494f4f(this,'y',0x0),_0x494f4f(this,'width',_0x375338[_0x3e1a76(0x123)]),_0x494f4f(this,'height',_0x375338[_0x3e1a76(0x13e)]),_0x494f4f(this,_0x3e1a76(0xb2),void 0x0),_0x494f4f(this,_0x3e1a76(0x109),{}),_0x494f4f(this,_0x3e1a76(0x117),void 0x0),this['unitId']=_0x574ef3,this['subUnitId']=_0x12cfc0,this[_0x3e1a76(0x105)]=_0x5c9f20||(0x0,_0x24ae8f[_0x3e1a76(0x12a)])(),this[_0x3e1a76(0x117)]=_0x5de6ef;}['setPosition'](_0x503a45,_0x397def,_0x1be62a,_0x28b311){const _0x25b066=_0x52ed0f;let _0x217a1a=this['_injector'][_0x25b066(0xe0)](_0x2597b1[_0x25b066(0x10e)])[_0x25b066(0xcd)](this[_0x25b066(0xc4)],this[_0x25b066(0x120)]);if(!_0x217a1a)throw Error(_0x25b066(0x139)+this[_0x25b066(0xc4)]+_0x25b066(0x14d)+this[_0x25b066(0x120)]+_0x25b066(0x125));let {transform:_0x415aa6}=(0x0,_0x2597b1[_0x25b066(0x12f)])(this[_0x25b066(0xc4)],this[_0x25b066(0x120)],{'row':_0x503a45,'column':_0x397def,'rowOffset':_0x1be62a,'columnOffset':_0x28b311},0x1,0x1,_0x217a1a);return this['x']=_0x415aa6['left'],this['y']=_0x415aa6['top'],this;}[_0x52ed0f(0x103)](_0x5ea00b,_0x34e72f){return this['x']=_0x5ea00b,this['y']=_0x34e72f,this;}[_0x52ed0f(0xfa)](_0x32e078){const _0x564217=_0x52ed0f;return this[_0x564217(0xb2)]=_0x32e078,this;}[_0x52ed0f(0x128)](_0x2c4969){const _0xa46bdd=_0x52ed0f;return _0x2c4969[_0xa46bdd(0xb2)]&&this[_0xa46bdd(0xfa)](_0x2c4969['shapeType']),this[_0xa46bdd(0x109)]={..._0x2c4969},this;}[_0x52ed0f(0xdb)](_0x5e7449,_0x33fa99){const _0x3de7d1=_0x52ed0f;return this[_0x3de7d1(0x109)]['fill']||(this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)]={}),this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)][_0x3de7d1(0xba)]=_0x54c147[_0x3de7d1(0xe2)][_0x3de7d1(0xdc)],_0x5e7449!==void 0x0&&(this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)][_0x3de7d1(0xfd)]=_0x5e7449),_0x33fa99!==void 0x0&&(this[_0x3de7d1(0x109)]['fill'][_0x3de7d1(0x141)]=_0x33fa99),this;}['setShapeGradientFill'](_0x1103c0,_0x11b081,_0x396e50){const _0x13676b=_0x52ed0f;if(_0x11b081===void 0x0||_0x11b081[_0x13676b(0x110)]===0x0)throw Error(_0x13676b(0xd3));return this['shapeData'][_0x13676b(0x14b)]||(this[_0x13676b(0x109)][_0x13676b(0x14b)]={}),this['shapeData']['fill']['gradientStops']=_0x11b081,this[_0x13676b(0x109)][_0x13676b(0x14b)][_0x13676b(0xba)]=_0x54c147[_0x13676b(0xe2)][_0x13676b(0xfc)],this['shapeData'][_0x13676b(0x14b)][_0x13676b(0x116)]=_0x1103c0,_0x396e50!==void 0x0&&(this[_0x13676b(0x109)][_0x13676b(0x14b)]['gradientAngle']=_0x396e50),this;}['setNoneFill'](){const _0x4ad0c0=_0x52ed0f;return this[_0x4ad0c0(0x109)][_0x4ad0c0(0x14b)]={'fillType':_0x54c147[_0x4ad0c0(0xe2)][_0x4ad0c0(0x133)]},this;}[_0x52ed0f(0xde)](_0x5c1983){const _0xb3bba4=_0x52ed0f;return this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)]||(this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)]={}),this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)][_0xb3bba4(0xfd)]=_0x5c1983,this;}['setStrokeWidth'](_0x55e0b6){const _0x45de39=_0x52ed0f;return this[_0x45de39(0x109)][_0x45de39(0xb0)]||(this[_0x45de39(0x109)][_0x45de39(0xb0)]={}),this[_0x45de39(0x109)][_0x45de39(0xb0)][_0x45de39(0x10f)]=_0x55e0b6,this;}[_0x52ed0f(0xc7)](_0x226d25){const _0x2af9c4=_0x52ed0f;return this[_0x2af9c4(0x109)][_0x2af9c4(0xb0)]||(this[_0x2af9c4(0x109)]['stroke']={}),this[_0x2af9c4(0x109)]['stroke'][_0x2af9c4(0x114)]=_0x226d25,this;}[_0x52ed0f(0x148)](_0x186e19){const _0x17b1a9=_0x52ed0f;return this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]||(this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]={}),this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]['lineJoinType']=_0x186e19,this;}['setStrokeLineCapType'](_0x183da5){const _0x43b2fc=_0x52ed0f;return this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)]||(this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)]={}),this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)][_0x43b2fc(0x11e)]=_0x183da5,this;}['setStrokeOpacity'](_0xd43cc3){const _0x47c682=_0x52ed0f;return this[_0x47c682(0x109)][_0x47c682(0xb0)]||(this['shapeData']['stroke']={}),this[_0x47c682(0x109)]['stroke']['opacity']=_0xd43cc3,this;}[_0x52ed0f(0xd9)](_0x41bfd8){const _0x209cd6=_0x52ed0f;return this[_0x209cd6(0x109)]['stroke']||(this[_0x209cd6(0x109)][_0x209cd6(0xb0)]={}),this['shapeData'][_0x209cd6(0xb0)]['lineStrokeType']=_0x41bfd8,this;}[_0x52ed0f(0x12e)](_0x35e3ba){return this['width']=_0x35e3ba,this;}[_0x52ed0f(0xe6)](_0x4f78d2){const _0x55b985=_0x52ed0f;return this[_0x55b985(0xe4)]=_0x4f78d2,this;}[_0x52ed0f(0x14f)](){const _0x46f6e3=_0x52ed0f;let _0x3296a5=this[_0x46f6e3(0x117)]['get'](_0x375338[_0x46f6e3(0x135)])[_0x46f6e3(0x10a)](this['unitId'],this[_0x46f6e3(0x120)],this[_0x46f6e3(0x105)]);return _0x3296a5?(0x0,_0x54c147['isConnectorShape'])(_0x3296a5[_0x46f6e3(0x100)]()):this[_0x46f6e3(0xb2)]?(0x0,_0x54c147[_0x46f6e3(0x150)])(this[_0x46f6e3(0xb2)]):!0x1;}[_0x52ed0f(0xdd)](){const _0x4fd65f=_0x52ed0f;let _0x409c89=this[_0x4fd65f(0x117)][_0x4fd65f(0xe0)](_0x375338[_0x4fd65f(0x135)])[_0x4fd65f(0x10a)](this[_0x4fd65f(0xc4)],this[_0x4fd65f(0x120)],this[_0x4fd65f(0x105)]);if(!_0x409c89)return[];let _0x426675=this[_0x4fd65f(0x117)]['get'](_0x440193['IDrawingManagerService'])[_0x4fd65f(0xf7)]({'unitId':this[_0x4fd65f(0xc4)],'subUnitId':this[_0x4fd65f(0x120)],'drawingId':this[_0x4fd65f(0x105)]});if(!(_0x426675!=null&&_0x426675[_0x4fd65f(0xbf)]))return[];let {width:_0x487bcf=0x0,height:_0x4cb53b=0x0}=_0x426675[_0x4fd65f(0xbf)];return _0x409c89[_0x4fd65f(0xff)]({'width':_0x487bcf,'height':_0x4cb53b}),_0x409c89[_0x4fd65f(0xb9)]();}['getAdjustPoints'](){const _0x50a0a9=_0x52ed0f;let _0x4101c4=this[_0x50a0a9(0x117)][_0x50a0a9(0xe0)](_0x375338[_0x50a0a9(0x135)])['getShapeModel'](this['unitId'],this['subUnitId'],this['drawId']);if(!_0x4101c4)return[];let _0x4dce4=this[_0x50a0a9(0x117)][_0x50a0a9(0xe0)](_0x440193[_0x50a0a9(0xbe)])['getDrawingByParam']({'unitId':this[_0x50a0a9(0xc4)],'subUnitId':this['subUnitId'],'drawingId':this[_0x50a0a9(0x105)]});if(!(_0x4dce4!=null&&_0x4dce4[_0x50a0a9(0xbf)]))return[];let {width:_0x2a9687=0x0,height:_0x9eba5c=0x0}=_0x4dce4['transform'];return _0x4101c4[_0x50a0a9(0xff)]({'width':_0x2a9687,'height':_0x9eba5c}),_0x4101c4[_0x50a0a9(0x119)]();}[_0x52ed0f(0xb7)](){const _0x5a3740=_0x52ed0f;let _0x27cab5=this[_0x5a3740(0x117)][_0x5a3740(0xe0)](_0x375338['SheetsShapeService'])[_0x5a3740(0x10a)](this[_0x5a3740(0xc4)],this['subUnitId'],this[_0x5a3740(0x105)]);if(!_0x27cab5||!(0x0,_0x54c147[_0x5a3740(0x150)])(_0x27cab5[_0x5a3740(0x100)]()))return[];let _0x4c60cf=this[_0x5a3740(0x117)][_0x5a3740(0xe0)](_0x440193[_0x5a3740(0xbe)])[_0x5a3740(0xf7)]({'unitId':this[_0x5a3740(0xc4)],'subUnitId':this[_0x5a3740(0x120)],'drawingId':this['drawId']});if(!(_0x4c60cf!=null&&_0x4c60cf['transform']))return[];let {width:_0xe93364=0x0,height:_0xf7d10b=0x0}=_0x4c60cf['transform'];return _0x27cab5['updateContext']({'width':_0xe93364,'height':_0xf7d10b}),_0x27cab5['getConnectorLinePoints']();}[_0x52ed0f(0x140)](){const _0x12c870=_0x52ed0f;var _0x2459a4;let _0x3632b9=this['_injector']['get'](_0x375338['SheetsShapeService'])[_0x12c870(0x10a)](this[_0x12c870(0xc4)],this[_0x12c870(0x120)],this[_0x12c870(0x105)]);return _0x3632b9?(_0x2459a4=_0x3632b9[_0x12c870(0x140)]())==null?null:_0x2459a4:null;}[_0x52ed0f(0x115)](){const _0x3d5094=_0x52ed0f;var _0x13085b;let _0x530203=this[_0x3d5094(0x117)][_0x3d5094(0xe0)](_0x375338[_0x3d5094(0x135)])[_0x3d5094(0x10a)](this[_0x3d5094(0xc4)],this['subUnitId'],this[_0x3d5094(0x105)]);return _0x530203?(_0x13085b=_0x530203[_0x3d5094(0x115)]())==null?null:_0x13085b:null;}['build'](){const _0x104fba=_0x52ed0f;var _0x3e79d9,_0x24ae80;if(!this[_0x104fba(0xb2)])throw Error(_0x104fba(0x12c));if(this['x']===0x0||this['y']===0x0){let _0x33bf34=this['_injector'][_0x104fba(0xe0)](_0x2597b1[_0x104fba(0x10e)])[_0x104fba(0xcd)](this['unitId'],this[_0x104fba(0x120)]);if(!_0x33bf34)throw Error(_0x104fba(0x139)+this[_0x104fba(0xc4)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+'\x20not\x20found');let {transform:_0x37c535}=(0x0,_0x2597b1['convertPositionCellToSheetOverGrid'])(this['unitId'],this[_0x104fba(0x120)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x33bf34);this['x']=this['x']>0x0?this['x']:_0x37c535[_0x104fba(0xd8)],this['y']=this['y']>0x0?this['y']:_0x37c535['top'];}return this[_0x104fba(0x10f)]=(_0x3e79d9=this[_0x104fba(0x10f)])==null?_0x375338[_0x104fba(0x123)]:_0x3e79d9,this[_0x104fba(0xe4)]=(_0x24ae80=this['height'])==null?_0x375338['DEFAULT_SHAPE_HEIGHT']:_0x24ae80,{'unitId':this[_0x104fba(0xc4)],'subUnitId':this[_0x104fba(0x120)],'shapeId':this[_0x104fba(0x105)],'shapeType':this[_0x104fba(0xb2)],'shapeData':Object[_0x104fba(0xf5)](this[_0x104fba(0x109)])[_0x104fba(0x110)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x104fba(0x10f)],'height':this[_0x104fba(0xe4)]};}[_0x52ed0f(0x121)](){const _0x175e0a=_0x52ed0f;return this[_0x175e0a(0x105)];}[_0x52ed0f(0x100)](){return this['shapeType'];}[_0x52ed0f(0xe3)](){const _0x60a2e7=_0x52ed0f;return this[_0x60a2e7(0x109)];}[_0x52ed0f(0xad)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x2bfd25=_0x52ed0f;return{'width':this['width'],'height':this[_0x2bfd25(0xe4)]};}},_0x23d7b7=class extends _0x559842{constructor(_0x36db9b,_0x52abb0,_0x3ee330,_0x3563f5){const _0x32e014=_0x52ed0f;super(_0x36db9b,_0x52abb0,_0x3ee330,_0x3563f5),_0x494f4f(this,_0x32e014(0x109),{});}[_0x52ed0f(0xfa)](_0x62ca8f){const _0x22c07f=_0x52ed0f;if(!(0x0,_0x54c147[_0x22c07f(0x150)])(_0x62ca8f))throw Error(_0x22c07f(0x144)+_0x62ca8f+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x22c07f(0xfa)](_0x62ca8f),this;}[_0x52ed0f(0x126)](_0x4082cd){const _0x336997=_0x52ed0f;var _0xb31865,_0x34d86e;return(_0xb31865=this[_0x336997(0x109)])!=null&&_0xb31865['ln']||(this[_0x336997(0x109)]['ln']={}),!((_0x34d86e=this[_0x336997(0x109)])==null||(_0x34d86e=_0x34d86e['ln'])==null)&&_0x34d86e['startArrow']||(this[_0x336997(0x109)]['ln']['startArrow']={}),this[_0x336997(0x109)]['ln'][_0x336997(0x14a)][_0x336997(0x149)]=_0x4082cd,this;}[_0x52ed0f(0x129)](_0x25b3bc){const _0x2dc309=_0x52ed0f;var _0x35327d,_0x36d1f4;return(_0x35327d=this[_0x2dc309(0x109)])!=null&&_0x35327d['ln']||(this[_0x2dc309(0x109)]['ln']={}),!((_0x36d1f4=this[_0x2dc309(0x109)])==null||(_0x36d1f4=_0x36d1f4['ln'])==null)&&_0x36d1f4['endArrow']||(this[_0x2dc309(0x109)]['ln'][_0x2dc309(0xc1)]={}),this[_0x2dc309(0x109)]['ln'][_0x2dc309(0xc1)]['type']=_0x25b3bc,this;}['setStartArrowSize'](_0x4771fe){const _0x1f25bf=_0x52ed0f;var _0x419d69,_0x269af4;return(_0x419d69=this[_0x1f25bf(0x109)])!=null&&_0x419d69['ln']||(this[_0x1f25bf(0x109)]['ln']={}),!((_0x269af4=this[_0x1f25bf(0x109)])==null||(_0x269af4=_0x269af4['ln'])==null)&&_0x269af4[_0x1f25bf(0x14a)]||(this[_0x1f25bf(0x109)]['ln'][_0x1f25bf(0x14a)]={}),this['shapeData']['ln'][_0x1f25bf(0x14a)]['size']=_0x4771fe,this;}['setEndArrowSize'](_0xdab2d5){const _0xc6d037=_0x52ed0f;var _0x2de8aa,_0x5dd47f;return(_0x2de8aa=this[_0xc6d037(0x109)])!=null&&_0x2de8aa['ln']||(this[_0xc6d037(0x109)]['ln']={}),!((_0x5dd47f=this[_0xc6d037(0x109)])==null||(_0x5dd47f=_0x5dd47f['ln'])==null)&&_0x5dd47f[_0xc6d037(0xc1)]||(this[_0xc6d037(0x109)]['ln'][_0xc6d037(0xc1)]={}),this[_0xc6d037(0x109)]['ln'][_0xc6d037(0xc1)][_0xc6d037(0xe1)]=_0xdab2d5,this;}[_0x52ed0f(0x108)](){return super['build']();}['getEndConnectInfo'](){const _0x3631a1=_0x52ed0f;var _0x2c5dcd;return((_0x2c5dcd=this[_0x3631a1(0x109)])==null||(_0x2c5dcd=_0x2c5dcd['relation'])==null?void 0x0:_0x2c5dcd['to'])||null;}['getStartConnectInfo'](){const _0x2603ba=_0x52ed0f;var _0x5f061e;return((_0x5f061e=this[_0x2603ba(0x109)])==null||(_0x5f061e=_0x5f061e[_0x2603ba(0xf0)])==null?void 0x0:_0x5f061e['from'])||null;}};function _0x2e3edc(_0x481d13,_0x35e733,_0x45d2f4,_0x34b8cd,_0x454d5d,_0x4a4982){const _0x6174a4=_0x52ed0f;let _0x375340=_0x454d5d[_0x6174a4(0x10a)](_0x481d13,_0x35e733,_0x45d2f4);if(!_0x375340)return null;let _0x4ca4cc=_0x4a4982[_0x6174a4(0xf7)]({'unitId':_0x481d13,'subUnitId':_0x35e733,'drawingId':_0x45d2f4});if(!(_0x4ca4cc!=null&&_0x4ca4cc['transform']))return null;let {left:_0x3bdece=0x0,top:_0x352a9e=0x0,width:_0x2c85ae=0x0,height:_0x598d19=0x0,flipX:_0x165def=!0x1,flipY:_0x31fec7=!0x1,angle:_0xcd3265}=_0x4ca4cc[_0x6174a4(0xbf)];_0x375340[_0x6174a4(0xff)]({'width':_0x2c85ae,'height':_0x598d19});let _0x18f319=_0x375340[_0x6174a4(0xb9)]()['find'](_0x5500fa=>_0x5500fa[_0x6174a4(0xee)]===_0x34b8cd);if(!_0x18f319)return null;let _0x420240=_0x165def?_0x2c85ae-_0x18f319['x']:_0x18f319['x'],_0x3d914d=_0x31fec7?_0x598d19-_0x18f319['y']:_0x18f319['y'];if(_0xcd3265&&_0xcd3265!==0x0){let _0x12f9f3=_0xcd3265*Math['PI']/0xb4,_0x377f67=Math[_0x6174a4(0x147)](_0x12f9f3),_0x300cec=Math[_0x6174a4(0x102)](_0x12f9f3),_0x4a7b9d=_0x2c85ae/0x2,_0x44b035=_0x598d19/0x2,_0x24b5f7=_0x420240-_0x4a7b9d,_0xd4a88f=_0x3d914d-_0x44b035;_0x420240=_0x4a7b9d+_0x24b5f7*_0x377f67-_0xd4a88f*_0x300cec,_0x3d914d=_0x44b035+_0x24b5f7*_0x300cec+_0xd4a88f*_0x377f67;}_0x420240+=_0x3bdece,_0x3d914d+=_0x352a9e;let _0x16d670=_0x18f319[_0x6174a4(0xd7)]/0xea60;_0x165def&&(_0x16d670=0xb4-_0x16d670),_0x31fec7&&(_0x16d670=-_0x16d670),_0x16d670+=_0xcd3265||0x0,_0x16d670=(_0x16d670%0x168+0x168)%0x168;let _0x2fefd9=(0x0,_0x54c147[_0x6174a4(0x137)])({'left':_0x3bdece,'top':_0x352a9e,'width':_0x2c85ae,'height':_0x598d19},_0xcd3265||0x0);return{'point':{'x':_0x420240,'y':_0x3d914d},'angle':_0x16d670,'bounds':_0x2fefd9};}function _0x3931d8(_0x2ac480,_0x299931){const _0x27f7ac=_0x52ed0f;let _0x1ff6cb=_0x299931['x']-_0x2ac480['x'],_0x5232e9=_0x299931['y']-_0x2ac480['y'];return Math[_0x27f7ac(0xf4)](_0x1ff6cb)>=Math[_0x27f7ac(0xf4)](_0x5232e9)?_0x1ff6cb>=0x0?0xb4:0x0:_0x5232e9>=0x0?0x10e:0x5a;}function _0x3f3edb(_0x26bd28,_0xc16a7e,_0x5ebd31,_0x49920b,_0x262df4,_0x4eaaa7,_0x4d0c20){const _0x4cff53=_0x52ed0f;let _0x13185b=_0x4eaaa7[_0x4cff53(0x10a)](_0x26bd28,_0xc16a7e,_0x5ebd31);if(!_0x13185b)return null;let _0xfcf831=_0x4d0c20[_0x4cff53(0xf7)]({'unitId':_0x26bd28,'subUnitId':_0xc16a7e,'drawingId':_0x5ebd31});if(!(_0xfcf831!=null&&_0xfcf831['transform']))return null;let {left:_0x5238ea=0x0,top:_0x48e460=0x0,width:_0x422e4f=0x0,height:_0x5517c4=0x0,flipX:_0x562383=!0x1,flipY:_0xe61155=!0x1}=_0xfcf831[_0x4cff53(0xbf)];_0x13185b[_0x4cff53(0xff)]({'width':_0x422e4f,'height':_0x5517c4});let _0x351983=_0x13185b[_0x4cff53(0xb7)]();if(_0x351983['length']<0x2)return null;let _0x55394a=_0x49920b?_0x351983[0x0]:_0x351983[_0x351983['length']-0x1],_0x268014=new _0x54c147[(_0x4cff53(0x13c))]({'left':_0x5238ea,'top':_0x48e460,'width':_0x422e4f,'height':_0x5517c4,'flipX':_0x562383,'flipY':_0xe61155})[_0x4cff53(0xe5)](_0x55394a);return{'point':_0x268014,'angle':_0x3931d8(_0x262df4[_0x4cff53(0x130)],_0x268014),'bounds':{'left':_0x268014['x'],'top':_0x268014['y'],'width':0x0,'height':0x0}};}var _0x335196=class extends _0xad8875['FWorksheet']{async[_0x52ed0f(0x127)](_0x115218){const _0x59a8a6=_0x52ed0f;let {unitId:_0x2420ab,subUnitId:_0x551390,shapeId:_0x2d335f,shapeType:_0x5da283,shapeData:_0x3c20f8,x:_0x20456e,y:_0x20d2fc,width:_0x123d57,height:_0x25c62b}=_0x115218;return this[_0x59a8a6(0x12b)][_0x59a8a6(0x122)](_0x375338[_0x59a8a6(0x13d)]['id'],{'unitId':_0x2420ab,'subUnitId':_0x551390,'shapeId':_0x2d335f,'shapeType':_0x5da283,'shapeData':_0x3c20f8,'position':{'x':_0x20456e,'y':_0x20d2fc},'width':_0x123d57,'height':_0x25c62b});}async[_0x52ed0f(0x10c)](_0x291f71){const _0x58c6c0=_0x52ed0f;let {unitId:_0x3c0f01,subUnitId:_0xc81c8f,shapeId:_0x161511,shapeType:_0x1eeb53,shapeData:_0xef1d25,x:_0x5bc9d7,y:_0xfee400,width:_0x23d61f,height:_0xc71978}=_0x291f71;return this[_0x58c6c0(0x12b)][_0x58c6c0(0x122)](_0x375338[_0x58c6c0(0xf1)]['id'],{'unitId':_0x3c0f01,'subUnitId':_0xc81c8f,'shapeId':_0x161511,'shapeType':_0x1eeb53,'shapeData':_0xef1d25,'position':{'x':_0x5bc9d7,'y':_0xfee400},'width':_0x23d61f,'height':_0xc71978});}[_0x52ed0f(0xc0)](_0x58a2f6){const _0x2f0f22=_0x52ed0f;let _0x2da051=this[_0x2f0f22(0xcc)]()[_0x2f0f22(0x111)](),_0x15dd04=this[_0x2f0f22(0xd0)]();if(_0x58a2f6){let _0x2849b8=new _0x559842(_0x2da051,_0x15dd04,_0x58a2f6[_0x2f0f22(0x105)],this['_injector']);return this['_preloadShapeProperties'](_0x2849b8,_0x2da051,_0x15dd04,_0x58a2f6[_0x2f0f22(0x105)]),_0x2849b8;}return new _0x559842(_0x2da051,_0x15dd04,(0x0,_0x24ae8f[_0x2f0f22(0x12a)])(),this[_0x2f0f22(0x117)]);}['newConnector'](_0x4aed42){const _0x677d8e=_0x52ed0f;let _0x1c9bb4=this[_0x677d8e(0xcc)]()['getUnitId'](),_0xbffc59=this[_0x677d8e(0xd0)]();if(_0x4aed42){let _0x246420=new _0x23d7b7(_0x1c9bb4,_0xbffc59,_0x4aed42[_0x677d8e(0x105)],this[_0x677d8e(0x117)]);return this[_0x677d8e(0xcb)](_0x246420,_0x1c9bb4,_0xbffc59,_0x4aed42['drawId']),_0x246420;}return new _0x23d7b7(_0x1c9bb4,_0xbffc59,(0x0,_0x24ae8f[_0x677d8e(0x12a)])(),this['_injector']);}[_0x52ed0f(0xf9)](){const _0x3cdb14=_0x52ed0f;let _0x1bd570=this[_0x3cdb14(0x117)]['get'](_0x57bb3a[_0x3cdb14(0xe7)]),_0x4e5d91=this[_0x3cdb14(0xcc)]()[_0x3cdb14(0x111)](),_0xa12fcc=this[_0x3cdb14(0xd0)](),_0x109f5a=_0x1bd570[_0x3cdb14(0x14c)](_0x4e5d91,_0xa12fcc);if(!_0x109f5a)return[];let _0x4d3cb0=[];for(let [_0x148255,_0x4a9e0e]of Object[_0x3cdb14(0xca)](_0x109f5a))if(_0x4a9e0e&&_0x4a9e0e[_0x3cdb14(0xd2)]===_0x24ae8f['DrawingTypeEnum'][_0x3cdb14(0xce)]){let _0x3289de=new _0x559842(_0x4e5d91,_0xa12fcc,_0x148255,this[_0x3cdb14(0x117)]);this[_0x3cdb14(0xcb)](_0x3289de,_0x4e5d91,_0xa12fcc,_0x148255),_0x4d3cb0[_0x3cdb14(0x118)](_0x3289de);}return _0x4d3cb0;}[_0x52ed0f(0xb4)](_0x3f2fcb){const _0x32dc22=_0x52ed0f;let {unitId:_0x4c789b,subUnitId:_0xe511ca,drawId:_0x12d8ce}=_0x3f2fcb;return this['_commandService'][_0x32dc22(0x122)](_0x57bb3a[_0x32dc22(0xc5)]['id'],{'unitId':_0x4c789b,'drawings':[{'unitId':_0x4c789b,'subUnitId':_0xe511ca,'drawingId':_0x12d8ce,'drawingType':_0x24ae8f[_0x32dc22(0x11b)][_0x32dc22(0xce)]}]});}async[_0x52ed0f(0xcf)](_0x508c82){const _0x4bd382=_0x52ed0f;let {connector:_0x405ab2,startTarget:_0x37e859,endTarget:_0x2b6e30}=_0x508c82;if(!_0x37e859&&!_0x2b6e30)return!0x1;let _0x2128a9=this['getWorkbook']()[_0x4bd382(0x111)](),_0x274061=this[_0x4bd382(0xd0)](),_0x56e25f=this[_0x4bd382(0x117)][_0x4bd382(0xe0)](_0x375338[_0x4bd382(0x135)]),_0x1e22d6=this[_0x4bd382(0x117)][_0x4bd382(0xe0)](_0x440193['IDrawingManagerService']),_0x592233=_0x56e25f['getShapeModel'](_0x2128a9,_0x274061,_0x405ab2[_0x4bd382(0x105)]);if(!_0x592233)return!0x1;let _0x27a902=_0x592233[_0x4bd382(0x100)](),_0x347e48=_0x592233[_0x4bd382(0x11d)](),_0x473048={};for(let _0x1eb9eb of _0x592233[_0x4bd382(0x13a)]()){let _0x4ec336=_0x592233[_0x4bd382(0xae)](_0x1eb9eb);_0x4ec336!==void 0x0&&(_0x473048[_0x1eb9eb]=_0x4ec336);}let {startInfo:_0x1e3ee2,endInfo:_0x54dd82}=this[_0x4bd382(0x151)](_0x2128a9,_0x274061,_0x405ab2,_0x592233,_0x37e859,_0x2b6e30,_0x56e25f,_0x1e22d6,_0x347e48);if(!_0x1e3ee2||!_0x54dd82)return!0x1;let _0x204f6e=(0x0,_0x54c147[_0x4bd382(0x138)])((0x0,_0x54c147[_0x4bd382(0x131)])(_0x1e3ee2,_0x54dd82,_0x27a902),_0x27a902),_0x375197={};return _0x37e859?_0x375197['from']={'shapeId':_0x37e859[_0x4bd382(0xf6)]['drawId'],'cxnIndex':_0x37e859[_0x4bd382(0x112)]}:_0x347e48!=null&&_0x347e48[_0x4bd382(0xec)]&&(_0x375197[_0x4bd382(0xec)]=_0x347e48['from']),_0x2b6e30?_0x375197['to']={'shapeId':_0x2b6e30[_0x4bd382(0xf6)]['drawId'],'cxnIndex':_0x2b6e30['connectionSiteIndex']}:_0x347e48!=null&&_0x347e48['to']&&(_0x375197['to']=_0x347e48['to']),this[_0x4bd382(0x12b)][_0x4bd382(0x122)](_0x375338[_0x4bd382(0x10d)]['id'],{'unitId':_0x2128a9,'subUnitId':_0x274061,'connectorShapeId':_0x405ab2[_0x4bd382(0x105)],'width':_0x204f6e[_0x4bd382(0xe8)]['width'],'height':_0x204f6e['worldRect'][_0x4bd382(0xe4)],'left':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xd8)],'top':_0x204f6e[_0x4bd382(0xe8)]['top'],'flipX':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xd1)]||!0x1,'flipY':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xed)]||!0x1,'oldAdjustValues':_0x473048,'newAdjustValues':_0x204f6e['adjustValues'],'newLineType':_0x204f6e[_0x4bd382(0xbc)],'oldLineType':_0x27a902,'rotation':_0x204f6e['rotation'],'oldRelation':_0x347e48,'newRelation':_0x375197});}[_0x52ed0f(0xcb)](_0x33cfce,_0x1fadf3,_0x4dbac9,_0x15aef0){const _0x5e6c34=_0x52ed0f;let _0x51eacc=this[_0x5e6c34(0x117)][_0x5e6c34(0xe0)](_0x440193[_0x5e6c34(0xbe)])[_0x5e6c34(0xf7)]({'unitId':_0x1fadf3,'subUnitId':_0x4dbac9,'drawingId':_0x15aef0});if(_0x51eacc!=null&&_0x51eacc[_0x5e6c34(0xbf)]){var _0x41119c,_0x495c5e,_0x1edac5,_0x4a6f71;_0x33cfce['x']=(_0x41119c=_0x51eacc['transform'][_0x5e6c34(0xd8)])==null?0x0:_0x41119c,_0x33cfce['y']=(_0x495c5e=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0x13b)])==null?0x0:_0x495c5e,_0x33cfce['width']=(_0x1edac5=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0x10f)])==null?_0x33cfce[_0x5e6c34(0x10f)]:_0x1edac5,_0x33cfce[_0x5e6c34(0xe4)]=(_0x4a6f71=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0xe4)])==null?_0x33cfce[_0x5e6c34(0xe4)]:_0x4a6f71;}let _0x5f18a9=this['_injector'][_0x5e6c34(0xe0)](_0x375338[_0x5e6c34(0x135)])[_0x5e6c34(0x10a)](_0x1fadf3,_0x4dbac9,_0x15aef0);if(_0x5f18a9){_0x33cfce[_0x5e6c34(0xb2)]=_0x5f18a9[_0x5e6c34(0x100)]();let _0x2df62f=_0x5f18a9[_0x5e6c34(0xe3)]();_0x2df62f&&(_0x33cfce[_0x5e6c34(0x109)]=JSON[_0x5e6c34(0xc8)](JSON[_0x5e6c34(0x106)](_0x2df62f)));}}[_0x52ed0f(0x151)](_0x42ae80,_0x3dbf54,_0x411234,_0x2f4411,_0x18b954,_0x2438db,_0x3c282f,_0x1912c0,_0x5f2cf0){const _0x2cdeaa=_0x52ed0f;let _0x12faa6=null,_0x34261f=null;return _0x18b954&&(_0x12faa6=_0x2e3edc(_0x42ae80,_0x3dbf54,_0x18b954[_0x2cdeaa(0xf6)][_0x2cdeaa(0x105)],_0x18b954[_0x2cdeaa(0x112)],_0x3c282f,_0x1912c0)),_0x2438db&&(_0x34261f=_0x2e3edc(_0x42ae80,_0x3dbf54,_0x2438db['shape'][_0x2cdeaa(0x105)],_0x2438db[_0x2cdeaa(0x112)],_0x3c282f,_0x1912c0)),_0x12faa6||(_0x12faa6=this[_0x2cdeaa(0xb5)](_0x42ae80,_0x3dbf54,_0x411234[_0x2cdeaa(0x105)],!0x0,_0x34261f,_0x5f2cf0==null?void 0x0:_0x5f2cf0['from'],_0x3c282f,_0x1912c0)),_0x34261f||(_0x34261f=this[_0x2cdeaa(0xb5)](_0x42ae80,_0x3dbf54,_0x411234[_0x2cdeaa(0x105)],!0x1,_0x12faa6,_0x5f2cf0==null?void 0x0:_0x5f2cf0['to'],_0x3c282f,_0x1912c0)),{'startInfo':_0x12faa6,'endInfo':_0x34261f};}[_0x52ed0f(0xb5)](_0x25501c,_0x3b57b0,_0x5e6a88,_0x1d965f,_0x42824f,_0x242f37,_0x474540,_0x2d3e0f){const _0xe093ce=_0x52ed0f;if(_0x242f37){let _0xdcf728=_0x2e3edc(_0x25501c,_0x3b57b0,_0x242f37['shapeId'],_0x242f37[_0xe093ce(0x11f)],_0x474540,_0x2d3e0f);if(_0xdcf728)return _0xdcf728;}return _0x42824f?_0x3f3edb(_0x25501c,_0x3b57b0,_0x5e6a88,_0x1d965f,_0x42824f,_0x474540,_0x2d3e0f):null;}};_0xad8875[_0x52ed0f(0xaf)][_0x52ed0f(0x12d)](_0x335196),_0x5c5861['FConnectorShape']=_0x23d7b7,_0x5c5861['FShape']=_0x559842;}));function _0x5b71(){const _0x258fcc=['getEndConnectInfo','gradientType','_injector','push','getDrawingPoints','@univerjs/core/facade','DrawingTypeEnum','ShapeTypeEnum','getShapeRelation','capType','cxnIndex','subUnitId','getShapeId','executeCommand','DEFAULT_SHAPE_WIDTH','UniverDrawing','\x20not\x20found','setStartArrowType','insertShape','setShapeData','setEndArrowType','generateRandomId','_commandService','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend','setWidth','convertPositionCellToSheetOverGrid','point','routeConnectorLineShape','3071775sNkoIZ','NoFill','symbol','SheetsShapeService','ShapeArrowTypeEnum','getBasicShapeRotateBound','computeConnectorRouteLayout','Skeleton\x20for\x20unitId\x20','getAdjustNames','top','ConnectorCoordinateTransform','InsertShapeCommand','DEFAULT_SHAPE_HEIGHT','string','getStartConnectInfo','opacity','12uUANNZ','iterator','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','UniverSheets','ShapeGradientTypeEnum','cos','setStrokeLineJoinType','type','startArrow','fill','getDrawingData','\x20and\x20subUnitId\x20','@univerjs/drawing','isLineShape','isConnectorShape','_resolveEndpoints','getPosition','getAdjustValueByName','FWorksheet','stroke','UniverSheetsFacade','shapeType','UniverProEngineShape','removeShape','_resolveExistingOrFreeEndpoint','4037988cEjXUB','getConnectorLinePoints','2303289aDSEVm','getConnectionSiteList','fillType','@univerjs-pro/engine-shape','lineType','UniverCoreFacade','IDrawingManagerService','transform','newShape','endArrow','@univerjs-pro/sheets-shape','5Rfwdnt','unitId','RemoveSheetDrawingCommand','amd','setStrokeLineDashType','parse','@univerjs/sheets','entries','_preloadShapeProperties','getWorkbook','ensureSkeleton','DRAWING_SHAPE','connectShapes','getSheetId','flipX','drawingType','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','function','UniverProSheetsShapeFacade','@univerjs/sheets/facade','ang','left','setStrokeLineType','call','setShapeSolidFill','SolidFill','getConnectionSites','setStrokeColor','Module','get','size','ShapeFillEnum','getShapeData','height','localToWorld','setHeight','ISheetDrawingService','worldRect','208282bmPxsK','9PShRDc','FEnum','from','flipY','index','object','relation','SetShapeDrawingDataCommand','ShapeLineTypeEnum','ShapeLineDashEnum','abs','keys','shape','getDrawingByParam','default','getShapes','setShapeType','4359846kkfFGn','GradientFill','color','14847330lnZfCO','updateContext','getShapeType','constructor','sin','setAbsolutePosition','prototype','drawId','stringify','20507201AoPwGM','build','shapeData','getShapeModel','ShapeLineJoinEnum','updateShape','UpdateConnectorRelationCommand','SheetSkeletonService','width','length','getUnitId','connectionSiteIndex','32YSuQuc','dashType'];_0x5b71=function(){return _0x258fcc;};return _0x5b71();}
|