@univerjs-pro/sheets-shape 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x151c8b=_0x1af7;(function(_0x20b385,_0x4baae8){const _0x52252b=_0x1af7,_0x4865d3=_0x20b385();while(!![]){try{const _0x4b16c7=-parseInt(_0x52252b(0x200))/0x1*(-parseInt(_0x52252b(0x29e))/0x2)+parseInt(_0x52252b(0x227))/0x3+parseInt(_0x52252b(0x239))/0x4*(-parseInt(_0x52252b(0x202))/0x5)+parseInt(_0x52252b(0x23b))/0x6*(parseInt(_0x52252b(0x252))/0x7)+parseInt(_0x52252b(0x1f8))/0x8+parseInt(_0x52252b(0x247))/0x9*(-parseInt(_0x52252b(0x248))/0xa)+parseInt(_0x52252b(0x27a))/0xb*(-parseInt(_0x52252b(0x255))/0xc);if(_0x4b16c7===_0x4baae8)break;else _0x4865d3['push'](_0x4865d3['shift']());}catch(_0x2b95b8){_0x4865d3['push'](_0x4865d3['shift']());}}}(_0x32c8,0x4f276));import{IShapeHostAdapterRegistry as _0x2fa80a,ShapeModel as _0x3c21a6,UniverShapePlugin as _0x9b4221,buildConnectorEndpointUpdate as _0x1906b0,canApplyShapeFormulaLastValue as _0x568fd9,computeConnectorRouteLayout as _0x4064df,createDefaultInsertedShapeData as _0x419dd5,createFreeConnectorPointInfo as _0x275ed3,createUniqueShapeName as _0x1fe204,getBasicShapeRotateBound as _0x3c798b,isConnectorShape as _0x2d6c01,resolveConnectorRoutePoints as _0x5ced46,resolveShapeConnectionPoint as _0x46aa4f,routeConnectorLineShape as _0xcf1d71}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x57ca34,CommandType as _0x454588,DependentOn as _0x1f6177,Disposable as _0x38c616,DrawingTypeEnum as _0x2a0192,ICommandService as _0x29da1d,IConfigService as _0xb091bb,IResourceManagerService as _0x8741cf,IUndoRedoService as _0x388be1,IUniverInstanceService as _0x11021c,Inject as _0x4d6358,Injector as _0x2ddf23,Plugin as _0x5ab01b,Tools as _0x44cf1c,UniverInstanceType as _0x543e53,generateRandomId as _0x2c6a2b,merge as _0x5ad21b,sequenceExecute as _0x3284cf,touchDependencies as _0x123ce4}from'@univerjs/core';import{SheetInterceptorService as _0x1e775a,SheetSkeletonService as _0x503013,UniverSheetsPlugin as _0x4abf60,getSheetCommandTarget as _0x4b4231}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x4f78e5,DrawingApplyType as _0x5d57ba,ISheetDrawingService as _0x208026,InsertSheetDrawingCommand as _0x149d24,RemoveSheetDrawingCommand as _0x3be4bc,SetDrawingApplyMutation as _0x2bb427,SetDrawingArrangeCommand as _0x2ba09c,SetSheetDrawingCommand as _0x24cf20,SheetDrawingAnchorType as _0x17db90,SheetDrawingTransformPlanService as _0x270690,UniverSheetsDrawingPlugin as _0x380ea5,transformToAxisAlignPosition as _0x458f48,transformToDrawingPosition as _0x18a95d}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x5bac1f}from'@univerjs-pro/license';import{IDrawingManagerService as _0x38b720,UniverDrawingPlugin as _0x302f81}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x20f36a){'@babel/helpers - typeof';const _0x122646=_0x1af7;return ae=typeof Symbol==_0x122646(0x1eb)&&typeof Symbol[_0x122646(0x21d)]==_0x122646(0x263)?function(_0x4d4ee8){return typeof _0x4d4ee8;}:function(_0x4b3217){const _0x5be9d3=_0x122646;return _0x4b3217&&typeof Symbol==_0x5be9d3(0x1eb)&&_0x4b3217[_0x5be9d3(0x1fe)]===Symbol&&_0x4b3217!==Symbol[_0x5be9d3(0x24b)]?_0x5be9d3(0x263):typeof _0x4b3217;},ae(_0x20f36a);}function oe(_0x191cae,_0x934cbe){const _0x617707=_0x1af7;if(ae(_0x191cae)!=_0x617707(0x1e1)||!_0x191cae)return _0x191cae;var _0xd801ca=_0x191cae[Symbol[_0x617707(0x287)]];if(_0xd801ca!==void 0x0){var _0x27e383=_0xd801ca[_0x617707(0x1f5)](_0x191cae,_0x934cbe||_0x617707(0x243));if(ae(_0x27e383)!=_0x617707(0x1e1))return _0x27e383;throw TypeError(_0x617707(0x205));}return(_0x934cbe===_0x617707(0x261)?String:Number)(_0x191cae);}function _0x1af7(_0x344c1e,_0x34d575){_0x344c1e=_0x344c1e-0x1d0;const _0x32c81e=_0x32c8();let _0x1af763=_0x32c81e[_0x344c1e];return _0x1af763;}function se(_0x10ede9){const _0x1d20a8=_0x1af7;var _0x2ab8f3=oe(_0x10ede9,_0x1d20a8(0x261));return ae(_0x2ab8f3)==_0x1d20a8(0x263)?_0x2ab8f3:_0x2ab8f3+'';}function X(_0x42743a,_0x237e30,_0x52d06d){const _0x21a85e=_0x1af7;return(_0x237e30=se(_0x237e30))in _0x42743a?Object[_0x21a85e(0x1d6)](_0x42743a,_0x237e30,{'value':_0x52d06d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x42743a[_0x237e30]=_0x52d06d,_0x42743a;}var ce=class extends _0x38c616{constructor(){const _0x55ca1c=_0x1af7;super(),X(this,'_shapes',new Map()),X(this,_0x55ca1c(0x271),new Set()),X(this,_0x55ca1c(0x1d1),new Set());}[_0x151c8b(0x1dd)](_0x38b3d8,_0xeba2ee,_0x5e9e4a,_0x39f9a0){const _0x311dea=_0x151c8b;let _0x3229c1=new _0x3c21a6(_0x38b3d8,_0xeba2ee,_0x5e9e4a,_0x39f9a0);return this[_0x311dea(0x1e7)][_0x311dea(0x214)](_0xeba2ee,_0x3229c1),_0x2d6c01(_0x38b3d8)&&this[_0x311dea(0x271)][_0x311dea(0x273)](_0xeba2ee),_0x3229c1;}[_0x151c8b(0x20b)](_0x289591){const _0x4bce98=_0x151c8b;let _0x2513ab=[];for(let _0x5af42d of this[_0x4bce98(0x271)]){let _0x69cb6a=this[_0x4bce98(0x1e7)]['get'](_0x5af42d);if(_0x69cb6a){let _0x594958=_0x69cb6a[_0x4bce98(0x20c)]();if(_0x594958){var _0xb3541d,_0x4d40ed;((_0xb3541d=_0x594958['from'])==null?void 0x0:_0xb3541d[_0x4bce98(0x1f3)])===_0x289591&&_0x2513ab['push']({..._0x594958[_0x4bce98(0x21b)],'lineShapeId':_0x5af42d,'isFrom':!0x0}),((_0x4d40ed=_0x594958['to'])==null?void 0x0:_0x4d40ed[_0x4bce98(0x1f3)])===_0x289591&&_0x2513ab[_0x4bce98(0x28d)]({..._0x594958['to'],'lineShapeId':_0x5af42d,'isFrom':!0x1});}}}return _0x2513ab;}[_0x151c8b(0x209)](_0x51746b){const _0x68ce87=_0x151c8b;let _0x20651=this[_0x68ce87(0x1e7)]['get'](_0x51746b);if(_0x20651)return _0x20651[_0x68ce87(0x20c)]();}[_0x151c8b(0x23f)](_0xeb80bb){const _0x5d9c0c=_0x151c8b;let _0x398867=this[_0x5d9c0c(0x1e7)]['get'](_0xeb80bb);if(_0x398867)return _0x398867['getShapeType']();}[_0x151c8b(0x288)](_0x5220d3){const _0x4bca0a=_0x151c8b;return this[_0x4bca0a(0x1e7)][_0x4bca0a(0x272)](_0x5220d3);}[_0x151c8b(0x219)](){const _0x593c95=_0x151c8b;return Array[_0x593c95(0x21b)](this['_shapes'][_0x593c95(0x23d)]())[_0x593c95(0x281)](_0x5b7b2d=>_0x5b7b2d[_0x593c95(0x292)]()||_0x5b7b2d[_0x593c95(0x229)]());}[_0x151c8b(0x246)](_0x52c7fd){const _0xab41b3=_0x151c8b;let _0x4fdcd3=this['_shapes'][_0xab41b3(0x294)](_0x52c7fd);_0x4fdcd3&&(_0x2d6c01(_0x4fdcd3['getShapeType']())&&this['_linesIds'][_0xab41b3(0x293)](_0x52c7fd),this[_0xab41b3(0x1e7)][_0xab41b3(0x293)](_0x52c7fd));}[_0x151c8b(0x22a)](){const _0x3416ff=_0x151c8b;let _0x287ed8=[];return this[_0x3416ff(0x1e7)][_0x3416ff(0x236)](_0x5fa4bd=>{_0x287ed8['push'](_0x5fa4bd['toJSON']());}),_0x287ed8;}[_0x151c8b(0x21c)](_0x30d737){const _0x10dfd6=_0x151c8b;for(let _0x32b87b of _0x30d737){let {id:_0x5534b6,shapeType:_0x3aac22,name:_0x58cc09}=_0x32b87b,_0x1857a6=this['addShape'](_0x3aac22,_0x5534b6,_0x32b87b[_0x10dfd6(0x249)],_0x58cc09);_0x1857a6&&_0x1857a6[_0x10dfd6(0x20a)]()&&this[_0x10dfd6(0x271)][_0x10dfd6(0x273)](_0x5534b6);}}[_0x151c8b(0x26d)](){const _0x23dbff=_0x151c8b;this[_0x23dbff(0x216)]||(this[_0x23dbff(0x1e7)][_0x23dbff(0x236)](_0x432b67=>{const _0x513374=_0x23dbff;_0x432b67[_0x513374(0x26d)]();}),this[_0x23dbff(0x1e7)]['clear'](),this['_linesIds'][_0x23dbff(0x24a)](),this[_0x23dbff(0x1d1)]['clear'](),super[_0x23dbff(0x26d)]());}};function Z(_0x1b8781,_0x17ef3f){return function(_0x38780e,_0xf0c775){_0x17ef3f(_0x38780e,_0xf0c775,_0x1b8781);};}function le(_0x38b5c1,_0x3b0960,_0x19aa3b,_0x4787d6){const _0x3410a1=_0x151c8b;var _0x11e6b4=arguments[_0x3410a1(0x1f1)],_0x4e3742=_0x11e6b4<0x3?_0x3b0960:_0x4787d6===null?_0x4787d6=Object[_0x3410a1(0x201)](_0x3b0960,_0x19aa3b):_0x4787d6,_0x145c5c;if(typeof Reflect==_0x3410a1(0x1e1)&&typeof Reflect['decorate']==_0x3410a1(0x1eb))_0x4e3742=Reflect[_0x3410a1(0x24f)](_0x38b5c1,_0x3b0960,_0x19aa3b,_0x4787d6);else{for(var _0x4f5cde=_0x38b5c1['length']-0x1;_0x4f5cde>=0x0;_0x4f5cde--)(_0x145c5c=_0x38b5c1[_0x4f5cde])&&(_0x4e3742=(_0x11e6b4<0x3?_0x145c5c(_0x4e3742):_0x11e6b4>0x3?_0x145c5c(_0x3b0960,_0x19aa3b,_0x4e3742):_0x145c5c(_0x3b0960,_0x19aa3b))||_0x4e3742);}return _0x11e6b4>0x3&&_0x4e3742&&Object[_0x3410a1(0x1d6)](_0x3b0960,_0x19aa3b,_0x4e3742),_0x4e3742;}let Q=class extends _0x38c616{constructor(_0x29fdc7){const _0x55ea9d=_0x151c8b;super(),this[_0x55ea9d(0x1db)]=_0x29fdc7,X(this,_0x55ea9d(0x298),new Map()),this[_0x55ea9d(0x1d5)]();}['_ensureShapeModelManager'](_0x287d68,_0x4b4b1e){const _0x5c9ae4=_0x151c8b;let _0x433344=this[_0x5c9ae4(0x298)][_0x5c9ae4(0x294)](_0x287d68);_0x433344||(_0x433344=new Map(),this[_0x5c9ae4(0x298)][_0x5c9ae4(0x214)](_0x287d68,_0x433344));let _0x36dd08=_0x433344[_0x5c9ae4(0x294)](_0x4b4b1e);return _0x36dd08||(_0x36dd08=new ce(),_0x433344[_0x5c9ae4(0x214)](_0x4b4b1e,_0x36dd08)),_0x36dd08;}[_0x151c8b(0x264)](_0x3ec5a7,_0x4ad8ee,_0x14412a,_0x3e1d3c,_0x589d6a,_0x47548d){const _0xe9c858=_0x151c8b;this[_0xe9c858(0x207)](_0x3ec5a7,_0x4ad8ee)[_0xe9c858(0x1dd)](_0x14412a,_0x3e1d3c,_0x589d6a,_0x47548d);}[_0x151c8b(0x246)](_0x5b49a0,_0xe82070,_0x584d14){const _0x55b5a0=_0x151c8b;this[_0x55b5a0(0x207)](_0x5b49a0,_0xe82070)[_0x55b5a0(0x246)](_0x584d14);}['getBasicShapeType'](_0x314cb6,_0x46e327,_0x132139){const _0x548c1e=_0x151c8b;return this[_0x548c1e(0x207)](_0x314cb6,_0x46e327)[_0x548c1e(0x23f)](_0x132139);}[_0x151c8b(0x23f)](_0x142c68,_0x19daad,_0x59f703){const _0x507e6e=_0x151c8b;return this[_0x507e6e(0x207)](_0x142c68,_0x19daad)[_0x507e6e(0x23f)](_0x59f703);}[_0x151c8b(0x288)](_0x199239,_0x5a1eed,_0x19204b){const _0x56fe4f=_0x151c8b;return this['_ensureShapeModelManager'](_0x199239,_0x5a1eed)[_0x56fe4f(0x288)](_0x19204b);}[_0x151c8b(0x233)](_0x521f2e,_0xb72eee,_0x4f8690){const _0x288acd=_0x151c8b;return this[_0x288acd(0x207)](_0x521f2e,_0xb72eee)[_0x288acd(0x23f)](_0x4f8690);}[_0x151c8b(0x289)](_0x54cdda,_0x340a45,_0x340d76){const _0x411e63=_0x151c8b;let _0x4ce727=this[_0x411e63(0x207)](_0x54cdda,_0x340a45);if(!_0x4ce727[_0x411e63(0x23f)](_0x340d76))return;let _0x468790=_0x4ce727[_0x411e63(0x1e7)]['get'](_0x340d76);if(_0x468790)return _0x468790[_0x411e63(0x1e0)]();}[_0x151c8b(0x219)](_0x3a47fd,_0x481ea5){const _0x331cc5=_0x151c8b;return this[_0x331cc5(0x207)](_0x3a47fd,_0x481ea5)[_0x331cc5(0x219)]();}[_0x151c8b(0x27d)](_0x1078a1,_0x3d97c4,_0x1afc6c){const _0x1bd6f3=_0x151c8b;return this[_0x1bd6f3(0x207)](_0x1078a1,_0x3d97c4)[_0x1bd6f3(0x1e7)][_0x1bd6f3(0x294)](_0x1afc6c);}['getBasicShapeRelation'](_0x2000a1,_0x820311,_0x1f2d2c){const _0x4b8870=_0x151c8b;return this[_0x4b8870(0x207)](_0x2000a1,_0x820311)[_0x4b8870(0x20b)](_0x1f2d2c);}['getLineShapeRelation'](_0x16f0c0,_0x38baa3,_0x4f8d76){const _0x2ad7e1=_0x151c8b;let _0x4afcbc=this[_0x2ad7e1(0x207)](_0x16f0c0,_0x38baa3)[_0x2ad7e1(0x1e7)][_0x2ad7e1(0x294)](_0x4f8d76);if(_0x4afcbc)return _0x4afcbc[_0x2ad7e1(0x20c)]();}[_0x151c8b(0x1fc)](){}[_0x151c8b(0x208)](_0xbb7c6){const _0x306a92=_0x151c8b;let _0x454e04={},_0x3dbd91=this[_0x306a92(0x298)][_0x306a92(0x294)](_0xbb7c6);return _0x3dbd91&&_0x3dbd91[_0x306a92(0x236)]((_0x11a489,_0xae1e69)=>{const _0x435038=_0x306a92;let _0x15bcdb=_0x11a489[_0x435038(0x22a)]();_0x15bcdb[_0x435038(0x1f1)]>0x0&&(_0x454e04[_0xae1e69]=_0x15bcdb);}),JSON[_0x306a92(0x274)](_0x454e04);}[_0x151c8b(0x280)](_0x53b6aa,_0x418d32){const _0x54228f=_0x151c8b;Object[_0x54228f(0x1d2)](_0x418d32)[_0x54228f(0x236)](_0x2d40e8=>{const _0x188f31=_0x54228f;this[_0x188f31(0x207)](_0x53b6aa,_0x2d40e8)['fromJSON'](_0x418d32[_0x2d40e8]);});}[_0x151c8b(0x22a)](){const _0x3bc867=_0x151c8b;let _0x48fc46={};return this[_0x3bc867(0x298)]['forEach']((_0x5d3dfe,_0x590cf3)=>{_0x48fc46[_0x590cf3]={},_0x5d3dfe['forEach']((_0x1a4fe0,_0x59f4a7)=>{const _0x267f5d=_0x1af7;_0x48fc46[_0x590cf3][_0x59f4a7]=_0x1a4fe0[_0x267f5d(0x22a)]();});}),_0x48fc46;}[_0x151c8b(0x21c)](_0x568ec5){const _0x324280=_0x151c8b;Object[_0x324280(0x1d2)](_0x568ec5)[_0x324280(0x236)](_0x3238aa=>{const _0x5c46c6=_0x324280;let _0x332fb4=_0x568ec5[_0x3238aa];Object[_0x5c46c6(0x1d2)](_0x332fb4)[_0x5c46c6(0x236)](_0x49554e=>{const _0x1db99a=_0x5c46c6;this[_0x1db99a(0x207)](_0x3238aa,_0x49554e)[_0x1db99a(0x21c)](_0x332fb4[_0x49554e]);});});}[_0x151c8b(0x1d5)](){const _0x5d649c=_0x151c8b;this['_resourcesManagerService']['registerPluginResource']({'pluginName':_0x5d649c(0x29c),'businesses':[_0x543e53[_0x5d649c(0x26e)]],'toJson':_0x4e0355=>this[_0x5d649c(0x208)](_0x4e0355),'parseJson':_0x2ba49e=>JSON['parse'](_0x2ba49e),'onLoad':(_0x5253f1,_0x416673)=>{const _0x1b811e=_0x5d649c;this[_0x1b811e(0x280)](_0x5253f1,_0x416673);},'onUnLoad':_0x2a8eaa=>{const _0x532641=_0x5d649c;let _0x590338=this[_0x532641(0x298)][_0x532641(0x294)](_0x2a8eaa);_0x590338&&(_0x590338['forEach'](_0x2245a6=>{_0x2245a6['dispose']();}),this[_0x532641(0x298)][_0x532641(0x293)](_0x2a8eaa));}});}[_0x151c8b(0x26d)](){const _0x43a88d=_0x151c8b;this['_shapeModelManagerMap'][_0x43a88d(0x236)](_0xe3e754=>{const _0x23b3f0=_0x43a88d;_0xe3e754[_0x23b3f0(0x236)](_0x104c82=>{const _0x18d5bf=_0x23b3f0;_0x104c82[_0x18d5bf(0x26d)]();});});}};Q=le([Z(0x0,_0x8741cf)],Q);const ue={'id':_0x151c8b(0x282),'type':_0x454588[_0x151c8b(0x259)],'handler':(_0x4dca9a,_0x58c0cc)=>{const _0x602e8a=_0x151c8b;let {unitId:_0x37615a,subUnitId:_0x2ddb9d,shapeType:_0x5b2d5b,shapeId:_0x2fbb34,shapeName:_0x455d97,shapeData:_0x5d802f}=_0x58c0cc;return _0x4dca9a[_0x602e8a(0x294)](Q)[_0x602e8a(0x264)](_0x37615a,_0x2ddb9d,_0x5b2d5b,_0x2fbb34,_0x44cf1c[_0x602e8a(0x266)](_0x5d802f),_0x455d97),!0x0;}},de={'id':_0x151c8b(0x262),'type':_0x454588[_0x151c8b(0x259)],'handler':(_0x25090c,_0x212fd8)=>{const _0x3306b9=_0x151c8b;let {unitId:_0x2f0deb,subUnitId:_0x45589b,shapeId:_0x58ea9d}=_0x212fd8;return _0x25090c['get'](Q)[_0x3306b9(0x246)](_0x2f0deb,_0x45589b,_0x58ea9d),!0x0;}},fe={'type':_0x454588['COMMAND'],'id':_0x151c8b(0x1d3),'handler':(_0x333f68,_0xce179)=>{const _0x348c85=_0x151c8b;let _0x35cbe0=_0x4b4231(_0x333f68[_0x348c85(0x294)](_0x11021c),_0xce179);if(!_0x35cbe0)return!0x1;let _0x4f18a1=_0x333f68[_0x348c85(0x294)](_0x503013),{unitId:_0x581b31,subUnitId:_0x250d55}=_0x35cbe0,_0x11f212=_0x4f18a1[_0x348c85(0x251)](_0x581b31,_0x250d55);if(!_0x11f212)return!0x1;let _0xa06981=_0x333f68[_0x348c85(0x294)](_0x29da1d),_0x287d8e=_0x333f68['get'](_0x388be1),_0x406532=_0x333f68[_0x348c85(0x294)](_0x1e775a),_0x55302b=_0x333f68['get'](_0x208026),_0x47dfa4=_0x333f68[_0x348c85(0x294)](Q),{shapeType:_0x561cdf}=_0xce179,_0x1998ec=_0xce179[_0x348c85(0x249)]??_0x419dd5(_0x561cdf),_0x4bd536=_0xce179[_0x348c85(0x1f3)]||_0x2c6a2b(),_0x2a2393={'unitId':_0x581b31,'subUnitId':_0x250d55,'shapeId':_0x4bd536,'shapeName':_0xce179[_0x348c85(0x20e)]??_0x1fe204(_0x561cdf,_0x47dfa4['getShapeDisplayNames'](_0x581b31,_0x250d55)),'shapeType':_0x561cdf,'shapeData':_0x1998ec},_0x534405=_0xce179[_0x348c85(0x1f9)]||0xc8,_0x40c912=_0xce179[_0x348c85(0x25d)]||0xc8,_0x582343=0x0,_0x4e8bcd=0x0;if(_0xce179[_0x348c85(0x25e)]){let {x:_0x17dae3,y:_0x318db1}=_0xce179[_0x348c85(0x25e)];_0x582343=_0x17dae3,_0x4e8bcd=_0x318db1;}else{if(_0xce179[_0x348c85(0x24e)]){let {startRow:_0x16381f,startColumn:_0x4dacb8}=_0xce179[_0x348c85(0x24e)],_0x47a8b7=_0x11f212[_0x348c85(0x260)](_0x16381f,_0x4dacb8);_0x582343=_0x47a8b7[_0x348c85(0x265)]+0xa,_0x4e8bcd=_0x47a8b7[_0x348c85(0x2a2)]+0xa;}}let _0x355425={'left':_0x582343,'top':_0x4e8bcd,'width':_0x534405,'height':_0x40c912,'angle':_0xce179['rotation']??0x0,'flipX':_0xce179[_0x348c85(0x283)]??!0x1,'flipY':_0xce179['flipY']??!0x1},_0x1d3910=_0x18a95d(_0x355425,_0x11f212),_0x5984f6=_0x458f48(_0x355425,_0x11f212),_0x29d8ed={'unitId':_0x581b31,'subUnitId':_0x250d55,'drawingId':_0x4bd536,'drawingType':_0x2a0192['DRAWING_SHAPE'],'anchorType':_0x17db90[_0x348c85(0x1d8)],'name':_0xce179['name'],'description':_0xce179[_0x348c85(0x210)],'sheetTransform':_0x1d3910,'transform':_0x355425,'data':{'shapeType':_0x561cdf,'shapeData':_0x1998ec},'axisAlignSheetTransform':_0x5984f6,'allowTransform':!0x0,'hidden':_0xce179['visible']===!0x1,'selectable':_0xce179[_0x348c85(0x22b)]??!0x0};_0x2d6c01(_0x561cdf)&&(_0x29d8ed[_0x348c85(0x296)][_0x348c85(0x1d4)]=!0x1,_0x29d8ed['data'][_0x348c85(0x1f4)]=!0x1,_0x29d8ed[_0x348c85(0x296)][_0x348c85(0x223)]=!0x1,_0x29d8ed[_0x348c85(0x296)][_0x348c85(0x26b)]=!0x1,_0x29d8ed['transform'][_0x348c85(0x1f4)]=!0x1,_0x29d8ed[_0x348c85(0x206)][_0x348c85(0x223)]=!0x1,_0x29d8ed[_0x348c85(0x206)][_0x348c85(0x26b)]=!0x1);let {undo:_0x5abf8b,redo:_0x1ee3c2,objects:_0x472544}=_0x55302b[_0x348c85(0x285)]([_0x29d8ed]),_0xcd3ae2=_0x406532[_0x348c85(0x237)]({'id':_0x149d24['id'],'params':{'unitId':_0x581b31,'drawings':[_0x29d8ed]}}),_0x450e3e=[..._0xcd3ae2[_0x348c85(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x581b31,'subUnitId':_0x250d55,'op':_0x1ee3c2,'objects':_0x472544,'type':_0x5d57ba[_0x348c85(0x23e)]}},{'id':_0x4f78e5['id'],'params':[_0x581b31]},..._0xcd3ae2[_0x348c85(0x24d)],{'id':ue['id'],'params':_0x2a2393}],_0x4ef30c=[{'id':de['id'],'params':{'unitId':_0x581b31,'subUnitId':_0x250d55,'shapeId':_0x4bd536}},..._0xcd3ae2[_0x348c85(0x297)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x581b31,'subUnitId':_0x250d55,'op':_0x5abf8b,'objects':_0x472544,'type':_0x5d57ba['REMOVE']}},{'id':_0x4f78e5['id'],'params':[_0x581b31]},..._0xcd3ae2[_0x348c85(0x20f)]];return _0x3284cf(_0x450e3e,_0xa06981)[_0x348c85(0x22c)]?(_0x287d8e[_0x348c85(0x240)]({'unitID':_0x581b31,'undoMutations':_0x4ef30c,'redoMutations':_0x450e3e}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x454588[_0x151c8b(0x259)],'handler':(_0x2009ea,_0x15340c)=>{const _0x5d63b8=_0x151c8b;let {unitId:_0x410449,subUnitId:_0x5b5f93,shapeType:_0x3af725,shapeId:_0x72bdbb,shapeData:_0x56f4df,replace:_0x34cdb1,formulaLastValueGuard:_0x51f517}=_0x15340c,_0x46a98d=_0x2009ea[_0x5d63b8(0x294)](Q)['getShapeModel'](_0x410449,_0x5b5f93,_0x72bdbb);if(_0x46a98d){var _0x4c398f;if(!_0x568fd9(_0x2009ea,{'hostType':_0x543e53[_0x5d63b8(0x26e)],'unitId':_0x410449,'subUnitId':_0x5b5f93,'shapeId':_0x72bdbb},(_0x4c398f=_0x46a98d['getShapeData']()[_0x5d63b8(0x27b)])==null?void 0x0:_0x4c398f['formula'],_0x51f517))return!0x0;_0x3af725!==void 0x0&&_0x46a98d['setShapeType'](_0x3af725),_0x56f4df&&(_0x46a98d==null||_0x46a98d[_0x5d63b8(0x1f6)](_0x44cf1c[_0x5d63b8(0x266)](_0x56f4df),!_0x34cdb1));}return!0x0;}},pe={'type':_0x454588[_0x151c8b(0x27e)],'id':_0x151c8b(0x25c),'handler':(_0x3e6d5c,_0xaa70ea)=>{const _0x276cda=_0x151c8b;let _0x5ecdbb=_0x4b4231(_0x3e6d5c[_0x276cda(0x294)](_0x11021c),_0xaa70ea);if(!_0x5ecdbb)return!0x1;let _0x3aa73a=_0x3e6d5c[_0x276cda(0x294)](_0x503013),{unitId:_0x34e927,subUnitId:_0x3ede75}=_0x5ecdbb,_0xb3d413=_0x3aa73a[_0x276cda(0x251)](_0x34e927,_0x3ede75);if(!_0xb3d413)return!0x1;let _0x328af9=_0x3e6d5c[_0x276cda(0x294)](Q),{shapeId:_0x5cbb83,shapeType:_0x37d7c8,shapeData:_0x43ac74,position:_0x536d03,width:_0x511794,height:_0x2a4cb8}=_0xaa70ea,_0x1c08af=_0x328af9[_0x276cda(0x27d)](_0x34e927,_0x3ede75,_0x5cbb83);if(!_0x1c08af)return!0x1;let _0x4a0477=_0x3e6d5c[_0x276cda(0x294)](_0x29da1d),_0x1c6327=_0x3e6d5c[_0x276cda(0x294)](_0x388be1),_0x51ba09=_0x3e6d5c['get'](_0x1e775a),_0x4eb645=_0x3e6d5c['get'](_0x208026),_0x2c9a25={'unitId':_0x34e927,'subUnitId':_0x3ede75,'shapeId':_0x5cbb83,'shapeType':_0x37d7c8,'shapeData':_0x43ac74,'replace':!0x0},_0x273cdd=_0x1c08af[_0x276cda(0x23f)](),_0x4380b2=_0x1c08af[_0x276cda(0x1e0)](),{x:_0x2896de,y:_0x25ecc4}=_0x536d03,_0x35f7db={'left':_0x2896de,'top':_0x25ecc4,'width':_0x511794,'height':_0x2a4cb8,'angle':_0xaa70ea[_0x276cda(0x258)]??0x0,'flipX':_0xaa70ea[_0x276cda(0x283)]??!0x1,'flipY':_0xaa70ea[_0x276cda(0x1ed)]??!0x1},_0x5aacd5=_0x18a95d(_0x35f7db,_0xb3d413),_0x7a1390=_0x458f48(_0x35f7db,_0xb3d413),_0x4d5e16={'unitId':_0x34e927,'subUnitId':_0x3ede75,'drawingId':_0x5cbb83,'drawingType':_0x2a0192[_0x276cda(0x215)],'name':_0xaa70ea[_0x276cda(0x1e4)],'description':_0xaa70ea[_0x276cda(0x210)],'sheetTransform':_0x5aacd5,'transform':_0x35f7db,'data':{'shapeType':_0x37d7c8,'shapeData':_0x43ac74},'axisAlignSheetTransform':_0x7a1390,'allowTransform':!0x0,'hidden':!_0xaa70ea[_0x276cda(0x279)],'selectable':_0xaa70ea['selectable']};_0x2d6c01(_0x37d7c8)&&(_0x4d5e16['data'][_0x276cda(0x1d4)]=!0x1,_0x4d5e16[_0x276cda(0x296)][_0x276cda(0x1f4)]=!0x1,_0x4d5e16['data'][_0x276cda(0x223)]=!0x1,_0x4d5e16[_0x276cda(0x296)][_0x276cda(0x26b)]=!0x1,_0x4d5e16['transform'][_0x276cda(0x1f4)]=!0x1,_0x4d5e16[_0x276cda(0x206)]['resizeEnabled']=!0x1,_0x4d5e16[_0x276cda(0x206)][_0x276cda(0x26b)]=!0x1);let {undo:_0x3af393,redo:_0x55d9d6,objects:_0x718e76}=_0x4eb645[_0x276cda(0x2a3)]([_0x4d5e16]),_0xffd05b=_0x51ba09[_0x276cda(0x237)]({'id':_0x24cf20['id'],'params':{'unitId':_0x34e927,'drawings':[_0x4d5e16]}}),_0x31c22b=[..._0xffd05b['preRedos']??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x34e927,'subUnitId':_0x3ede75,'op':_0x55d9d6,'objects':_0x718e76,'type':_0x5d57ba[_0x276cda(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x34e927]},..._0xffd05b[_0x276cda(0x24d)],{'id':$['id'],'params':_0x2c9a25}],_0x14bb60=[..._0xffd05b[_0x276cda(0x297)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x34e927,'subUnitId':_0x3ede75,'op':_0x3af393,'objects':_0x718e76,'type':_0x5d57ba[_0x276cda(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x34e927]},..._0xffd05b[_0x276cda(0x20f)],{'id':$['id'],'params':{'unitId':_0x34e927,'subUnitId':_0x3ede75,'shapeType':_0x273cdd,'shapeId':_0x5cbb83,'shapeData':_0x4380b2,'replace':!0x0}}];return _0x3284cf(_0x31c22b,_0x4a0477)[_0x276cda(0x22c)]?(_0x1c6327[_0x276cda(0x240)]({'unitID':_0x34e927,'undoMutations':_0x14bb60,'redoMutations':_0x31c22b}),!0x0):!0x1;}},me={'type':_0x454588[_0x151c8b(0x27e)],'id':'sheet.command.toggle-shape-flip','handler':(_0xd4d271,_0xb5dd5f)=>{const _0x33a9d6=_0x151c8b;let _0x13be79=_0x4b4231(_0xd4d271[_0x33a9d6(0x294)](_0x11021c),_0xb5dd5f);if(!_0x13be79)return!0x1;let _0x1dba59=_0xd4d271[_0x33a9d6(0x294)](_0x503013),{unitId:_0x3004d1,subUnitId:_0x14678f}=_0x13be79,_0x2c3bc6=_0x1dba59[_0x33a9d6(0x254)](_0x3004d1,_0x14678f);if(!_0x2c3bc6)return!0x1;let _0x2c7f64=_0xd4d271[_0x33a9d6(0x294)](_0x208026),{shapeId:_0x149cc6,flipH:_0x155c3a,flipV:_0x86aea5}=_0xb5dd5f,_0x15f5c3=_0x2c7f64[_0x33a9d6(0x291)]({'unitId':_0x3004d1,'subUnitId':_0x14678f,'drawingId':_0x149cc6});if(!_0x15f5c3)return!0x1;let _0x3559c8=_0xd4d271['get'](Q)[_0x33a9d6(0x27d)](_0x3004d1,_0x14678f,_0x149cc6);if(!_0x3559c8)return!0x1;let _0x1c107f=_0xd4d271[_0x33a9d6(0x294)](_0x29da1d),_0x3312c7=_0xd4d271[_0x33a9d6(0x294)](_0x388be1),_0x2e0e29=_0xd4d271[_0x33a9d6(0x294)](_0x1e775a),_0x132f4f={..._0x15f5c3[_0x33a9d6(0x206)]};_0x155c3a!==void 0x0&&(_0x132f4f[_0x33a9d6(0x283)]=!_0x132f4f[_0x33a9d6(0x283)]),_0x86aea5!==void 0x0&&(_0x132f4f['flipY']=!_0x132f4f['flipY']);let _0x5bfe67=_0x18a95d(_0x132f4f,_0x2c3bc6),_0x35651d=_0x458f48(_0x132f4f,_0x2c3bc6),_0x5b7c4c=_0x3559c8[_0x33a9d6(0x23f)](),_0x4173af=_0x3559c8['getShapeData'](),_0x49397c={'unitId':_0x3004d1,'subUnitId':_0x14678f,'drawingId':_0x149cc6,'drawingType':_0x2a0192[_0x33a9d6(0x215)],'sheetTransform':_0x5bfe67,'transform':_0x132f4f,'data':{'shapeType':_0x5b7c4c,'shapeData':_0x4173af},'axisAlignSheetTransform':_0x35651d,'allowTransform':!0x0},{undo:_0x105a3e,redo:_0x4151ab,objects:_0x2e3565}=_0x2c7f64[_0x33a9d6(0x2a3)]([_0x49397c]),_0x392dba=_0x2e0e29['onCommandExecute']({'id':_0x24cf20['id'],'params':{'unitId':_0x3004d1,'drawings':[_0x49397c]}}),_0x3c40ef=[..._0x392dba[_0x33a9d6(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x3004d1,'subUnitId':_0x14678f,'op':_0x4151ab,'objects':_0x2e3565,'type':_0x5d57ba[_0x33a9d6(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x3004d1]},..._0x392dba['redos']],_0x4afb41=[..._0x392dba['preUndos']??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x3004d1,'subUnitId':_0x14678f,'op':_0x105a3e,'objects':_0x2e3565,'type':_0x5d57ba[_0x33a9d6(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x3004d1]},..._0x392dba['undos']];if(_0x2d6c01(_0x5b7c4c)){let _0x28f0ab=_0x3559c8[_0x33a9d6(0x20c)]();if(_0x28f0ab){let _0x55aefb={..._0x28f0ab};_0x55aefb[_0x33a9d6(0x21b)]=void 0x0,_0x55aefb['to']=void 0x0,_0x3c40ef['push']({'id':$['id'],'params':{'unitId':_0x3004d1,'subUnitId':_0x14678f,'shapeId':_0x149cc6,'shapeType':_0x5b7c4c,'shapeData':{'relation':_0x55aefb}}}),_0x4afb41['push']({'id':$['id'],'params':{'unitId':_0x3004d1,'subUnitId':_0x14678f,'shapeId':_0x149cc6,'shapeType':_0x5b7c4c,'shapeData':{'relation':_0x28f0ab}}});}}return _0x3284cf(_0x3c40ef,_0x1c107f)['result']?(_0x3312c7[_0x33a9d6(0x240)]({'unitID':_0x3004d1,'undoMutations':_0x4afb41,'redoMutations':_0x3c40ef}),!0x0):!0x1;}},he={'type':_0x454588['COMMAND'],'id':_0x151c8b(0x21a),'handler':(_0x554da4,_0xdc2b59)=>{const _0xd1816a=_0x151c8b;let _0x1eee0d=_0x4b4231(_0x554da4[_0xd1816a(0x294)](_0x11021c),_0xdc2b59);if(!_0x1eee0d)return!0x1;let _0x48fd37=_0x554da4[_0xd1816a(0x294)](_0x503013),{unitId:_0x365a2d,subUnitId:_0x3c2e94}=_0x1eee0d,_0x37a5d2=_0x48fd37[_0xd1816a(0x254)](_0x365a2d,_0x3c2e94);if(!_0x37a5d2)return!0x1;let _0x208ddf=_0x554da4[_0xd1816a(0x294)](_0x208026),{shapeId:_0x27acd9,rotate:_0x38dfe2}=_0xdc2b59,_0x477eed=_0x208ddf['getDrawingByParam']({'unitId':_0x365a2d,'subUnitId':_0x3c2e94,'drawingId':_0x27acd9});if(!_0x477eed)return!0x1;let _0xc7c30d=_0x554da4['get'](Q)['getShapeModel'](_0x365a2d,_0x3c2e94,_0x27acd9);if(!_0xc7c30d)return!0x1;let _0x3ac292=_0x554da4['get'](_0x29da1d),_0x4baa43=_0x554da4[_0xd1816a(0x294)](_0x388be1),_0x2f470b=_0x554da4['get'](_0x1e775a),_0x18f836={..._0x477eed[_0xd1816a(0x206)]};_0x38dfe2!==void 0x0&&(_0x18f836[_0xd1816a(0x1e2)]=(_0x18f836['angle']||0x0)+_0x38dfe2);let _0x3de2bf=_0x18a95d(_0x18f836,_0x37a5d2),_0x186699=_0x458f48(_0x18f836,_0x37a5d2),_0x403996=_0xc7c30d[_0xd1816a(0x23f)](),_0x1a880f=_0xc7c30d[_0xd1816a(0x1e0)](),_0x53c49d={'unitId':_0x365a2d,'subUnitId':_0x3c2e94,'drawingId':_0x27acd9,'drawingType':_0x2a0192[_0xd1816a(0x215)],'sheetTransform':_0x3de2bf,'transform':_0x18f836,'data':{'shapeType':_0x403996,'shapeData':_0x1a880f},'axisAlignSheetTransform':_0x186699,'allowTransform':!0x0},{undo:_0x4b3284,redo:_0x2e8a32,objects:_0x43dcfc}=_0x208ddf[_0xd1816a(0x2a3)]([_0x53c49d]),_0x429a7d=_0x2f470b[_0xd1816a(0x237)]({'id':_0x24cf20['id'],'params':{'unitId':_0x365a2d,'drawings':[_0x53c49d]}}),_0x691880=[..._0x429a7d[_0xd1816a(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x365a2d,'subUnitId':_0x3c2e94,'op':_0x2e8a32,'objects':_0x43dcfc,'type':_0x5d57ba[_0xd1816a(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x365a2d]},..._0x429a7d[_0xd1816a(0x24d)]],_0x88bfbb=[..._0x429a7d[_0xd1816a(0x297)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x365a2d,'subUnitId':_0x3c2e94,'op':_0x4b3284,'objects':_0x43dcfc,'type':_0x5d57ba[_0xd1816a(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x365a2d]},..._0x429a7d[_0xd1816a(0x20f)]];return _0x3284cf(_0x691880,_0x3ac292)['result']?(_0x4baa43[_0xd1816a(0x240)]({'unitID':_0x365a2d,'undoMutations':_0x88bfbb,'redoMutations':_0x691880}),!0x0):!0x1;}},ge={'type':_0x454588[_0x151c8b(0x27e)],'id':_0x151c8b(0x1d0),'handler':(_0x2fbe30,_0x19423f)=>{const _0x385026=_0x151c8b;let _0x399c0e=_0x4b4231(_0x2fbe30[_0x385026(0x294)](_0x11021c),_0x19423f);if(!_0x399c0e)return!0x1;let {unitId:_0x1a7a44,subUnitId:_0x119267}=_0x399c0e,{shapeId:_0x51c507}=_0x19423f,_0x136aaf=_0x2fbe30[_0x385026(0x294)](Q)[_0x385026(0x27d)](_0x1a7a44,_0x119267,_0x51c507);if(!_0x136aaf)return!0x1;let _0x46e083=_0x136aaf[_0x385026(0x204)](),_0x3e448f=(_0x46e083==null?void 0x0:_0x46e083[_0x385026(0x21e)])??!0x0,_0x1a921e=!_0x3e448f,_0x4d940b=_0x2fbe30[_0x385026(0x294)](_0x29da1d),_0x3259a2=_0x2fbe30[_0x385026(0x294)](_0x388be1),_0x5ee1b0={'unitId':_0x1a7a44,'subUnitId':_0x119267,'shapeId':_0x51c507,'shapeData':{'shapeText':{'isHorizontal':_0x1a921e}}},_0x2dfc78={'unitId':_0x1a7a44,'subUnitId':_0x119267,'shapeId':_0x51c507,'shapeData':{'shapeText':{'isHorizontal':_0x3e448f}}},_0x220242=[{'id':$['id'],'params':_0x5ee1b0}],_0x5c9a5b=[{'id':$['id'],'params':_0x2dfc78}];return _0x3284cf(_0x220242,_0x4d940b)[_0x385026(0x22c)]?(_0x3259a2[_0x385026(0x240)]({'unitID':_0x1a7a44,'undoMutations':_0x5c9a5b,'redoMutations':_0x220242}),!0x0):!0x1;}},_e={'type':_0x454588[_0x151c8b(0x27e)],'id':_0x151c8b(0x211),'handler':(_0x52e2e2,_0x8f844d)=>{const _0x5169cf=_0x151c8b;var _0x58e39c;let _0x360976=_0x4b4231(_0x52e2e2[_0x5169cf(0x294)](_0x11021c),_0x8f844d);if(!_0x360976)return!0x1;let _0x3e05ca=_0x52e2e2[_0x5169cf(0x294)](_0x503013),{unitId:_0x2592d2,subUnitId:_0x2e69f5}=_0x360976,_0x2966ee=_0x3e05ca[_0x5169cf(0x254)](_0x2592d2,_0x2e69f5);if(!_0x2966ee)return!0x1;let _0xec3106=_0x52e2e2['get'](_0x208026),{connectorShapeId:_0x10664f,width:_0x4e494d,height:_0x58b98d,left:_0x15ad86,top:_0x237730,flipX:_0x54291a,flipY:_0x2defe6,rotation:_0x2f86c7,oldAdjustValues:_0x1d00ef,newAdjustValues:_0x59b8d9,oldLineType:_0x2e3bc5,newLineType:_0x978348,oldRelation:_0x4b4647,newRelation:_0x319853}=_0x8f844d,_0x540883=_0xec3106[_0x5169cf(0x291)]({'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'drawingId':_0x10664f});if(!_0x540883)return!0x1;let _0x5c8558=_0x52e2e2[_0x5169cf(0x294)](Q)[_0x5169cf(0x27d)](_0x2592d2,_0x2e69f5,_0x10664f);if(!_0x5c8558)return!0x1;let _0x5a0813=_0x52e2e2[_0x5169cf(0x294)](_0x29da1d),_0x10b4a9=_0x52e2e2['get'](_0x388be1),_0x3652bb=_0x52e2e2[_0x5169cf(0x294)](_0x1e775a),_0x102232={..._0x540883[_0x5169cf(0x206)],'width':_0x4e494d,'height':_0x58b98d,'left':_0x15ad86,'top':_0x237730,'flipX':_0x54291a,'flipY':_0x2defe6,'angle':_0x2f86c7??((_0x58e39c=_0x540883[_0x5169cf(0x206)])==null?void 0x0:_0x58e39c[_0x5169cf(0x1e2)])??0x0},_0xf9fbb9=_0x18a95d(_0x102232,_0x2966ee),_0x4e650a=_0x458f48(_0x102232,_0x2966ee),_0x5cb49b=_0x5c8558[_0x5169cf(0x23f)](),_0x5cb6c9=_0x5c8558['getShapeData'](),_0x100e5c={'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'drawingId':_0x10664f,'drawingType':_0x2a0192[_0x5169cf(0x215)],'sheetTransform':_0xf9fbb9,'transform':_0x102232,'data':{'shapeType':_0x978348||_0x2e3bc5||_0x5cb49b,'shapeData':{..._0x5cb6c9,'adjustValues':_0x59b8d9||_0x1d00ef||(_0x5cb6c9==null?void 0x0:_0x5cb6c9['adjustValues']),'relation':_0x319853||_0x4b4647||(_0x5cb6c9==null?void 0x0:_0x5cb6c9[_0x5169cf(0x1dc)])}},'axisAlignSheetTransform':_0x4e650a,'allowTransform':!0x0},{undo:_0x21ec53,redo:_0xec13fb,objects:_0x1cfae9}=_0xec3106[_0x5169cf(0x2a3)]([_0x100e5c]),_0x57cc74=_0x3652bb[_0x5169cf(0x237)]({'id':_0x24cf20['id'],'params':{'unitId':_0x2592d2,'drawings':[_0x100e5c]}}),_0x569ada=[..._0x57cc74[_0x5169cf(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'op':_0xec13fb,'objects':_0x1cfae9,'type':_0x5d57ba[_0x5169cf(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x2592d2]},..._0x57cc74[_0x5169cf(0x24d)],{'id':$['id'],'params':{'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'shapeId':_0x10664f,'shapeType':_0x978348,'shapeData':{'adjustValues':_0x59b8d9,'relation':_0x319853}}}],_0x512c0e=[..._0x57cc74['preUndos']??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'op':_0x21ec53,'objects':_0x1cfae9,'type':_0x5d57ba[_0x5169cf(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x2592d2]},..._0x57cc74[_0x5169cf(0x20f)],{'id':$['id'],'params':{'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'shapeId':_0x10664f,'shapeType':_0x5cb49b,'shapeData':{..._0x5cb6c9,'adjustValues':_0x1d00ef||(_0x5cb6c9==null?void 0x0:_0x5cb6c9['adjustValues']),'relation':_0x4b4647||(_0x5cb6c9==null?void 0x0:_0x5cb6c9[_0x5169cf(0x1dc)])}}}];return _0x3284cf(_0x569ada,_0x5a0813)[_0x5169cf(0x22c)]?(_0x10b4a9[_0x5169cf(0x240)]({'unitID':_0x2592d2,'undoMutations':_0x512c0e,'redoMutations':_0x569ada}),!0x0):!0x1;}},ve={'type':_0x454588[_0x151c8b(0x27e)],'id':_0x151c8b(0x27f),'handler':(_0x1d7fbc,_0x4c9175)=>{const _0x3f9870=_0x151c8b;let _0x5e6b74=_0x4b4231(_0x1d7fbc[_0x3f9870(0x294)](_0x11021c),_0x4c9175);if(!_0x5e6b74)return!0x1;let _0x269dc9=_0x1d7fbc[_0x3f9870(0x294)](_0x503013),{unitId:_0x17bef5,subUnitId:_0x2cd20a}=_0x5e6b74,_0x2541d5=_0x269dc9['getSkeleton'](_0x17bef5,_0x2cd20a);if(!_0x2541d5)return!0x1;let _0x169dae=_0x1d7fbc[_0x3f9870(0x294)](_0x208026),{shapeId:_0x297bf2,width:_0x58187d,height:_0x30acff,left:_0x373f64,top:_0x56a276,flipX:_0x3ae60a,flipY:_0xa9cc0a,angle:_0x2e63f8,oldAdjustValues:_0x41d665,newAdjustValues:_0x4be5e8,oldLineType:_0x551faf,newLineType:_0x4751df}=_0x4c9175,_0x2bd1c2=_0x169dae[_0x3f9870(0x291)]({'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'drawingId':_0x297bf2});if(!_0x2bd1c2)return!0x1;let _0x22dc00=_0x1d7fbc[_0x3f9870(0x294)](Q)['getShapeModel'](_0x17bef5,_0x2cd20a,_0x297bf2);if(!_0x22dc00)return!0x1;let _0x53da08=_0x1d7fbc[_0x3f9870(0x294)](_0x29da1d),_0x26b29a=_0x1d7fbc[_0x3f9870(0x294)](_0x388be1),_0x210d5f=_0x1d7fbc[_0x3f9870(0x294)](_0x1e775a),_0xd38136={..._0x2bd1c2['transform'],'width':_0x58187d,'height':_0x30acff,'left':_0x373f64,'top':_0x56a276,'flipX':_0x3ae60a,'flipY':_0xa9cc0a,'angle':_0x2e63f8},_0x3f7d00=_0x18a95d(_0xd38136,_0x2541d5),_0xa8f684=_0x458f48(_0xd38136,_0x2541d5),_0x651822=_0x22dc00[_0x3f9870(0x23f)](),_0x5a4bed=_0x22dc00[_0x3f9870(0x1e0)](),_0x3db043={'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'drawingId':_0x297bf2,'drawingType':_0x2a0192[_0x3f9870(0x215)],'sheetTransform':_0x3f7d00,'transform':_0xd38136,'data':{'shapeType':_0x4751df||_0x551faf||_0x651822,'shapeData':{..._0x5a4bed,'adjustValues':_0x4be5e8||_0x41d665||(_0x5a4bed==null?void 0x0:_0x5a4bed['adjustValues'])}},'axisAlignSheetTransform':_0xa8f684,'allowTransform':!0x0},{undo:_0x119016,redo:_0x5923e8,objects:_0x3adc7f}=_0x169dae[_0x3f9870(0x2a3)]([_0x3db043]),_0x1fb4cb=_0x210d5f[_0x3f9870(0x237)]({'id':_0x24cf20['id'],'params':{'unitId':_0x17bef5,'drawings':[_0x3db043]}}),_0x5f58cc=[..._0x1fb4cb[_0x3f9870(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'op':_0x5923e8,'objects':_0x3adc7f,'type':_0x5d57ba[_0x3f9870(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x17bef5]},..._0x1fb4cb[_0x3f9870(0x24d)],{'id':$['id'],'params':{'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'shapeId':_0x297bf2,'shapeType':_0x4751df,'shapeData':{'adjustValues':_0x4be5e8}}}],_0x358e41=[..._0x1fb4cb[_0x3f9870(0x297)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'op':_0x119016,'objects':_0x3adc7f,'type':_0x5d57ba[_0x3f9870(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x17bef5]},..._0x1fb4cb[_0x3f9870(0x20f)],{'id':$['id'],'params':{'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'shapeId':_0x297bf2,'shapeType':_0x651822,'shapeData':{..._0x5a4bed,'adjustValues':_0x41d665||(_0x5a4bed==null?void 0x0:_0x5a4bed[_0x3f9870(0x228)])}}}];return _0x3284cf(_0x5f58cc,_0x53da08)['result']?(_0x26b29a[_0x3f9870(0x240)]({'unitID':_0x17bef5,'undoMutations':_0x358e41,'redoMutations':_0x5f58cc}),!0x0):!0x1;}},ye={'id':_0x151c8b(0x28e),'type':_0x454588[_0x151c8b(0x259)],'handler':(_0x549e13,_0x564fb5)=>{const _0x540c68=_0x151c8b;let {unitId:_0x36b3fd,subUnitId:_0x3da036,shapeType:_0xfd8d09,shapeId:_0x3fb680,shapeData:_0x1f2532}=_0x564fb5,_0x2ed79f=_0x549e13[_0x540c68(0x294)](Q)[_0x540c68(0x27d)](_0x36b3fd,_0x3da036,_0x3fb680);return _0x2ed79f&&(_0x2ed79f[_0x540c68(0x1fc)](_0xfd8d09),_0x1f2532&&(_0x2ed79f==null||_0x2ed79f['setShapeData'](_0x1f2532))),!0x0;}};var be='@univerjs-pro/sheets-shape',xe='1.0.4';function _0x32c8(){const _0x606a09=['from','fromJSON','iterator','isHorizontal','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','index','interceptCommand','cos','resizeEnabled','setZOrder','bringForward','drawingId','914241cCmiug','adjustValues','getId','toJSON','selectable','result','skeleton','sin','_resolveBinding','_commandService','ang','drawingType','getShapeTypeById','getSheetId','_sheetsShapeService','forEach','onCommandExecute','backward','7336SYuyhm','forward','29166IzvNFs','_injector','values','INSERT','getShapeType','pushUndoRedo','_getConnectPointInfo','_drawingManagerService','default','command','worldRect','removeShape','171erpBIE','108730szPlLh','shapeData','clear','prototype','packageName','redos','range','decorate','_planConnector','ensureSkeleton','266YlJJoq','hidden','getSkeleton','54396KOEZjk','_addLineRerouteUpdates','_initCommandInterceptor','rotation','MUTATION','shapeType','getShape','sheet.command.set-shape-drawing-data','height','position','removeLinePoints','getCellWithCoordByIndex','string','sheet.mutation.remove-shape','symbol','insertShape','startX','deepClone','_configService','registerCommand','subUnitId','deletes','borderEnabled','type','dispose','UNIVER_SHEET','unitId','params','_linesIds','has','add','stringify','getStartConnectInfo','updates','_config','_shapeHostAdapterRegistry','visible','594BPGKPX','formulaBinding','listShapesInUnit','getShapeModel','COMMAND','sheet.command.update-line-shape-resize','_deserializeShapeForUnit','map','sheet.mutation.insert-shape','flipX','syncExecuteCommand','getBatchAddOp','_drawingService','toPrimitive','hasShape','getShapeDataById','sendToBack','_toSnapshot','onCommandExecuted','push','sheet.mutation.update-shape-type','createShape','hostType','getDrawingByParam','getName','delete','get','getAdjustNames','data','preUndos','_shapeModelManagerMap','_initCommands','_sheetSkeletonService','sheets-shape.config','SHEET_SHAPE_PLUGIN','register','2QJuSIe','find','getUnit','isFrom','startY','getBatchUpdateOp','_addLineFollowShapeUpdates','_sheetInterceptorService','sheet.command.set-shape-text-vertical-toggle','_groupIds','keys','sheet.command.insert-shape','fill','_initSnapshot','defineProperty','UPDATE','Both','left','_shapeAdapter','_resourcesManagerService','relation','addShape','_arrange','listShapes','getShapeData','object','angle','sendBackward','name','_instanceService','lineType','_shapes','disposeWithMe','filter','preRedos','function','_applyUpdate','flipY','cxnIndex','createFormulaLastValueMutation','_planDeletes','length','originals','shapeId','rotateEnabled','call','setShapeData','point','2282240PMzeHM','width','getEndConnectInfo','getDrawingData','setShapeType','getSheets','constructor','top','640904xJzxYO','getOwnPropertyDescriptor','1745rwQfLh','updateContext','getShapeTextData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','transform','_ensureShapeModelManager','_serializeShapeForUnit','getLineShapeRelation','isLineShape','getBasicShapeRelation','getShapeRelation','updateShape','shapeName','undos','description','sheet.command.update-connector-relation','lineShapeId','getAdjustValueByName','set','DRAWING_SHAPE','_disposed','mode','_shapeService','getShapeDisplayNames','sheet.command.set-shape-rotate'];_0x32c8=function(){return _0x606a09;};return _0x32c8();}function Se(_0x2e7bd6){const _0x1b7f00=_0x151c8b;var _0x4469c2,_0x1eafd1,_0xe5a618,_0x472644,_0x3c7199,_0x38fd83,_0x249db1;return{'left':((_0x4469c2=_0x2e7bd6[_0x1b7f00(0x206)])==null?void 0x0:_0x4469c2['left'])??0x0,'top':((_0x1eafd1=_0x2e7bd6['transform'])==null?void 0x0:_0x1eafd1[_0x1b7f00(0x1ff)])??0x0,'width':((_0xe5a618=_0x2e7bd6[_0x1b7f00(0x206)])==null?void 0x0:_0xe5a618['width'])??0xc8,'height':((_0x472644=_0x2e7bd6['transform'])==null?void 0x0:_0x472644[_0x1b7f00(0x25d)])??0xc8,'rotation':((_0x3c7199=_0x2e7bd6['transform'])==null?void 0x0:_0x3c7199['rotation'])??0x0,'flipX':((_0x38fd83=_0x2e7bd6[_0x1b7f00(0x206)])==null?void 0x0:_0x38fd83['flipX'])??!0x1,'flipY':((_0x249db1=_0x2e7bd6[_0x1b7f00(0x206)])==null?void 0x0:_0x249db1[_0x1b7f00(0x1ed)])??!0x1};}let Ce=class{constructor(_0x564854,_0x3abc91,_0x53215d,_0x5f567d){const _0x4c0788=_0x151c8b;this[_0x4c0788(0x230)]=_0x564854,this[_0x4c0788(0x218)]=_0x3abc91,this['_drawingService']=_0x53215d,this[_0x4c0788(0x1e5)]=_0x5f567d,X(this,'hostType',_0x543e53[_0x4c0788(0x26e)]);}get['shapeChanged$'](){return{'subscribe':_0x6b20b0=>{const _0x4567ad=_0x1af7;let _0x6ec1f2=this[_0x4567ad(0x230)][_0x4567ad(0x28c)](_0x5201d4=>{const _0x55133a=_0x4567ad;(_0x5201d4['id']===ue['id']||_0x5201d4['id']===de['id']||_0x5201d4['id']===$['id']||_0x5201d4['id']===ye['id'])&&_0x6b20b0({'unitId':_0x5201d4[_0x55133a(0x270)][_0x55133a(0x26f)]});});return{'unsubscribe':()=>_0x6ec1f2[_0x4567ad(0x26d)]()};}};}[_0x151c8b(0x25b)](_0x3a3641){const _0x1bd37f=_0x151c8b;var _0x2374e7;let _0x48dac3=(_0x2374e7=this[_0x1bd37f(0x286)]['getDrawingData'](_0x3a3641[_0x1bd37f(0x26f)],_0x3a3641[_0x1bd37f(0x269)]))==null?void 0x0:_0x2374e7[_0x3a3641[_0x1bd37f(0x1f3)]],_0x498072=this[_0x1bd37f(0x218)][_0x1bd37f(0x23f)](_0x3a3641[_0x1bd37f(0x26f)],_0x3a3641[_0x1bd37f(0x269)],_0x3a3641[_0x1bd37f(0x1f3)]);if(!_0x48dac3||_0x48dac3['drawingType']!==_0x2a0192['DRAWING_SHAPE']||!_0x498072)return null;let _0x2ac809=_0x48dac3[_0x1bd37f(0x206)];return{..._0x3a3641,'shapeType':_0x498072,'shapeData':_0x44cf1c['deepClone'](this[_0x1bd37f(0x218)][_0x1bd37f(0x289)](_0x3a3641['unitId'],_0x3a3641[_0x1bd37f(0x269)],_0x3a3641[_0x1bd37f(0x1f3)])??{}),'name':_0x48dac3[_0x1bd37f(0x1e4)],'description':_0x48dac3['description'],'visible':_0x48dac3[_0x1bd37f(0x253)]!==!0x0,'selectable':_0x48dac3[_0x1bd37f(0x22b)]!==!0x1,'transform':{'left':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1d9)])??0x0,'top':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1ff)])??0x0,'width':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1f9)])??0xc8,'height':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x25d)])??0xc8,'rotation':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1e2)])??0x0,'flipX':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x283)])??!0x1,'flipY':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1ed)])??!0x1}};}[_0x151c8b(0x1df)](_0x51d340){const _0xe1c3=_0x151c8b;let _0x539765=this['_drawingService'][_0xe1c3(0x1fb)](_0x51d340['unitId'],_0x51d340[_0xe1c3(0x269)])??{};return Object['values'](_0x539765)[_0xe1c3(0x1e9)](_0x43f109=>(_0x43f109==null?void 0x0:_0x43f109[_0xe1c3(0x232)])===_0x2a0192[_0xe1c3(0x215)])[_0xe1c3(0x281)](_0x4d6d9e=>this[_0xe1c3(0x25b)]({..._0x51d340,'shapeId':_0x4d6d9e['drawingId']}))[_0xe1c3(0x1e9)](_0xd99895=>!!_0xd99895);}[_0x151c8b(0x27c)](_0x38c884){const _0x243e81=_0x151c8b;let _0x48f7cd=this[_0x243e81(0x1e5)][_0x243e81(0x2a0)](_0x38c884,_0x543e53[_0x243e81(0x26e)]);return(_0x48f7cd==null?void 0x0:_0x48f7cd[_0x243e81(0x1fd)]()['flatMap'](_0x3f3537=>this[_0x243e81(0x1df)]({'hostType':this[_0x243e81(0x290)],'unitId':_0x38c884,'subUnitId':_0x3f3537[_0x243e81(0x234)]()})))??[];}[_0x151c8b(0x28f)](_0x2c5854,_0x2e9ca5){const _0x1cec52=_0x151c8b;let _0x30ac3b=_0x2c6a2b(),_0x56214e=Se(_0x2e9ca5),_0x36c857=_0x44cf1c[_0x1cec52(0x266)](_0x2e9ca5[_0x1cec52(0x249)]??_0x419dd5(_0x2e9ca5['shapeType']));return this[_0x1cec52(0x230)][_0x1cec52(0x284)](fe['id'],{'unitId':_0x2c5854[_0x1cec52(0x26f)],'subUnitId':_0x2c5854[_0x1cec52(0x269)],'shapeId':_0x30ac3b,'shapeType':_0x2e9ca5[_0x1cec52(0x25a)],'shapeData':_0x36c857,'name':_0x2e9ca5[_0x1cec52(0x1e4)],'description':_0x2e9ca5[_0x1cec52(0x210)],'position':{'x':_0x56214e[_0x1cec52(0x1d9)],'y':_0x56214e[_0x1cec52(0x1ff)]},'width':_0x56214e[_0x1cec52(0x1f9)],'height':_0x56214e[_0x1cec52(0x25d)],'rotation':_0x56214e['rotation'],'flipX':_0x56214e[_0x1cec52(0x283)],'flipY':_0x56214e['flipY'],'visible':_0x2e9ca5[_0x1cec52(0x279)]??!0x0,'selectable':_0x2e9ca5[_0x1cec52(0x22b)]??!0x0})?{..._0x2c5854,'shapeId':_0x30ac3b,'shapeType':_0x2e9ca5[_0x1cec52(0x25a)],'shapeData':_0x36c857,'name':_0x2e9ca5[_0x1cec52(0x1e4)],'description':_0x2e9ca5[_0x1cec52(0x210)],'visible':_0x2e9ca5[_0x1cec52(0x279)]??!0x0,'selectable':_0x2e9ca5[_0x1cec52(0x22b)]??!0x0,'transform':_0x56214e}:null;}[_0x151c8b(0x20d)](_0x5344cc,_0x226945){const _0x317c44=_0x151c8b;var _0x146924;let _0x3d3d46=this['getShape'](_0x5344cc);if(!_0x3d3d46)return!0x1;let _0x4771a2={..._0x3d3d46[_0x317c44(0x206)],..._0x226945[_0x317c44(0x206)]};return this['_commandService']['syncExecuteCommand'](pe['id'],{'unitId':_0x5344cc[_0x317c44(0x26f)],'subUnitId':_0x5344cc[_0x317c44(0x269)],'shapeId':_0x5344cc[_0x317c44(0x1f3)],'shapeType':_0x226945[_0x317c44(0x25a)]??((_0x146924=_0x226945[_0x317c44(0x249)])==null?void 0x0:_0x146924['shapeType'])??_0x3d3d46[_0x317c44(0x25a)],'shapeData':_0x226945['shapeData']??_0x3d3d46[_0x317c44(0x249)],'position':{'x':_0x4771a2[_0x317c44(0x1d9)],'y':_0x4771a2[_0x317c44(0x1ff)]},'width':_0x4771a2['width'],'height':_0x4771a2[_0x317c44(0x25d)],'rotation':_0x4771a2[_0x317c44(0x258)],'flipX':_0x4771a2[_0x317c44(0x283)],'flipY':_0x4771a2['flipY'],'name':_0x317c44(0x1e4)in _0x226945?_0x226945[_0x317c44(0x1e4)]:_0x3d3d46[_0x317c44(0x1e4)],'description':'description'in _0x226945?_0x226945['description']:_0x3d3d46['description'],'visible':_0x226945['visible']??_0x3d3d46[_0x317c44(0x279)],'selectable':_0x226945[_0x317c44(0x22b)]??_0x3d3d46[_0x317c44(0x22b)]});}[_0x151c8b(0x1ef)](_0x3a0a3f,_0x5ad7cb,_0x1cbe32){const _0x2c4750=_0x151c8b;let _0x21bdb4=this[_0x2c4750(0x25b)](_0x3a0a3f),_0x282f0a=_0x21bdb4==null?void 0x0:_0x21bdb4[_0x2c4750(0x249)][_0x2c4750(0x27b)];return!_0x21bdb4||!_0x282f0a?null:{'id':$['id'],'params':{'unitId':_0x3a0a3f[_0x2c4750(0x26f)],'subUnitId':_0x3a0a3f[_0x2c4750(0x269)],'shapeId':_0x3a0a3f[_0x2c4750(0x1f3)],'shapeData':{..._0x21bdb4[_0x2c4750(0x249)],'formulaBinding':{..._0x282f0a,'lastValue':_0x44cf1c[_0x2c4750(0x266)](_0x1cbe32)}},'replace':!0x0,'formulaLastValueGuard':_0x5ad7cb}};}['removeShape'](_0x13e917){const _0x30f6d5=_0x151c8b;return this[_0x30f6d5(0x230)][_0x30f6d5(0x284)](_0x3be4bc['id'],{'unitId':_0x13e917[_0x30f6d5(0x26f)],'drawings':[{'unitId':_0x13e917[_0x30f6d5(0x26f)],'subUnitId':_0x13e917['subUnitId'],'drawingId':_0x13e917['shapeId'],'drawingType':_0x2a0192['DRAWING_SHAPE']}]});}['bringToFront'](_0x38de60){const _0x1a1cc2=_0x151c8b;return this[_0x1a1cc2(0x1de)](_0x38de60,_0x57ca34['front']);}[_0x151c8b(0x225)](_0x557f0e){const _0x44c449=_0x151c8b;return this[_0x44c449(0x1de)](_0x557f0e,_0x57ca34[_0x44c449(0x23a)]);}[_0x151c8b(0x1e3)](_0x51e992){const _0x5639f2=_0x151c8b;return this[_0x5639f2(0x1de)](_0x51e992,_0x57ca34[_0x5639f2(0x238)]);}[_0x151c8b(0x28a)](_0x3dd6b2){const _0x23e3d2=_0x151c8b;return this[_0x23e3d2(0x1de)](_0x3dd6b2,_0x57ca34['back']);}[_0x151c8b(0x224)](_0x441a37,_0x4b916f){const _0x5e0b06=_0x151c8b;return this['_commandService'][_0x5e0b06(0x284)](_0x2ba09c['id'],{'unitId':_0x441a37['unitId'],'subUnitId':_0x441a37['subUnitId'],'drawingIds':[_0x441a37[_0x5e0b06(0x1f3)]],'zOrder':_0x4b916f});}[_0x151c8b(0x1de)](_0x587fff,_0x215834){const _0x158e03=_0x151c8b;return this['_commandService']['syncExecuteCommand'](_0x2ba09c['id'],{'unitId':_0x587fff[_0x158e03(0x26f)],'subUnitId':_0x587fff['subUnitId'],'drawingIds':[_0x587fff[_0x158e03(0x1f3)]],'arrangeType':_0x215834});}};Ce=le([Z(0x0,_0x29da1d),Z(0x1,_0x4d6358(Q)),Z(0x2,_0x208026),Z(0x3,_0x11021c)],Ce);const we={};let Te=class extends _0x38c616{constructor(_0x27e0c5,_0x4daca3,_0x4d48ef,_0x3af795,_0xf64fdc,_0x250320,_0x1667cb){const _0x146fd3=_0x151c8b;super(),this[_0x146fd3(0x230)]=_0x27e0c5,this[_0x146fd3(0x2a5)]=_0x4daca3,this[_0x146fd3(0x29a)]=_0x4d48ef,this['_sheetsShapeService']=_0x3af795,this['_drawingManagerService']=_0xf64fdc,this['_shapeHostAdapterRegistry']=_0x250320,this[_0x146fd3(0x299)](),this[_0x146fd3(0x257)](),this[_0x146fd3(0x1e8)](this[_0x146fd3(0x278)][_0x146fd3(0x29d)](_0x1667cb));}['_initCommands'](){const _0x5c8bd9=_0x151c8b;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$]['forEach'](_0x2ff6b3=>this[_0x5c8bd9(0x1e8)](this[_0x5c8bd9(0x230)][_0x5c8bd9(0x268)](_0x2ff6b3)));}[_0x151c8b(0x257)](){const _0xfd3d9c=_0x151c8b;this[_0xfd3d9c(0x1e8)](this[_0xfd3d9c(0x2a5)][_0xfd3d9c(0x221)]({'getMutations':_0x2fdac0=>{const _0x5179c5=_0xfd3d9c;if(_0x2fdac0['id']===_0x3be4bc['id']){let {drawings:_0x287948}=_0x2fdac0[_0x5179c5(0x270)],_0xf4d639=_0x287948[_0x5179c5(0x1e9)](_0x4bf1a4=>_0x4bf1a4[_0x5179c5(0x232)]===_0x2a0192['DRAWING_SHAPE']);if(_0xf4d639[_0x5179c5(0x1f1)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x125f47=[],_0xfe11d2=[];return _0xf4d639['forEach'](_0x147db3=>{const _0x48de20=_0x5179c5;let {unitId:_0x5771db,subUnitId:_0x5d7439,drawingId:_0x524405}=_0x147db3,_0x1fa679=this[_0x48de20(0x235)][_0x48de20(0x27d)](_0x5771db,_0x5d7439,_0x524405);if(!_0x1fa679)throw TypeError(_0x48de20(0x21f)+_0x1fa679);_0x125f47['push']({'id':de['id'],'params':{'unitId':_0x5771db,'subUnitId':_0x5d7439,'shapeId':_0x524405}}),_0xfe11d2[_0x48de20(0x28d)]({'id':ue['id'],'params':{'unitId':_0x5771db,'subUnitId':_0x5d7439,'shapeId':_0x524405,'shapeType':_0x1fa679['getShapeType'](),'shapeData':_0x1fa679[_0x48de20(0x1e0)]()}});let _0x4d62de=this['_sheetsShapeService'][_0x48de20(0x20b)](_0x5771db,_0x5d7439,_0x524405);if(_0x4d62de)for(let _0x59ebf1 of _0x4d62de){let _0x586101=_0x59ebf1[_0x48de20(0x212)],_0x4d2f96=_0x59ebf1[_0x48de20(0x2a1)],_0x3136c6=_0x4d2f96?{'from':void 0x0}:{'to':void 0x0},_0x59d425=_0x4d2f96?{'from':{'shapeId':_0x59ebf1['shapeId'],'cxnIndex':_0x59ebf1[_0x48de20(0x1ee)]}}:{'to':{'shapeId':_0x59ebf1[_0x48de20(0x1f3)],'cxnIndex':_0x59ebf1[_0x48de20(0x1ee)]}};_0x125f47[_0x48de20(0x28d)]({'id':$['id'],'params':{'unitId':_0x5771db,'subUnitId':_0x5d7439,'shapeId':_0x586101,'shapeData':{'relation':_0x3136c6}}}),_0xfe11d2[_0x48de20(0x28d)]({'id':$['id'],'params':{'unitId':_0x5771db,'subUnitId':_0x5d7439,'shapeId':_0x586101,'shapeData':{'relation':_0x59d425}}});}}),{'preRedos':_0x125f47,'redos':[],'preUndos':[],'undos':_0xfe11d2};}if(_0x2fdac0['id']===_0x24cf20['id']){let {drawings:_0x5bdf89}=_0x2fdac0[_0x5179c5(0x270)],_0x33da62=_0x5bdf89[_0x5179c5(0x1e9)](_0x2cb8be=>_0x2cb8be[_0x5179c5(0x232)]===_0x2a0192[_0x5179c5(0x215)]);if(_0x33da62[_0x5179c5(0x1f1)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2ff0f4=[],_0x2e429e=[];for(let _0x5f5066 of _0x33da62){let {unitId:_0x1ca74d,subUnitId:_0x14825e,drawingId:_0x19e1ca,transform:_0x43648a}=_0x5f5066;if(!_0x1ca74d||!_0x14825e||!_0x19e1ca||!_0x43648a)continue;let _0x430153=this[_0x5179c5(0x235)][_0x5179c5(0x27d)](_0x1ca74d,_0x14825e,_0x19e1ca);if(!_0x430153)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x430153);let _0x36f0d0=_0x430153[_0x5179c5(0x23f)]();if(_0x2d6c01(_0x36f0d0)){let _0x5738f9=this[_0x5179c5(0x235)]['getLineShapeRelation'](_0x1ca74d,_0x14825e,_0x19e1ca);_0x5738f9&&(_0x2ff0f4[_0x5179c5(0x28d)]({'id':$['id'],'params':{'unitId':_0x1ca74d,'subUnitId':_0x14825e,'shapeId':_0x19e1ca,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2e429e[_0x5179c5(0x28d)]({'id':$['id'],'params':{'unitId':_0x1ca74d,'subUnitId':_0x14825e,'shapeId':_0x19e1ca,'shapeData':{'relation':_0x5738f9}}}));}else{let _0x2fbf68=this['_sheetsShapeService'][_0x5179c5(0x20b)](_0x1ca74d,_0x14825e,_0x19e1ca);if(_0x2fbf68&&_0x2fbf68[_0x5179c5(0x1f1)]>0x0)for(let _0x48acb2 of _0x2fbf68){let _0x239975=_0x48acb2['lineShapeId'],_0xbefa8d=_0x48acb2['isFrom'],_0x571dba=this[_0x5179c5(0x235)]['getShapeModel'](_0x1ca74d,_0x14825e,_0x239975);if(!_0x571dba)continue;let _0x2bf0ef=_0x571dba[_0x5179c5(0x275)](),_0x55eca4=_0x571dba[_0x5179c5(0x1fa)]();_0x2bf0ef&&_0x55eca4?this[_0x5179c5(0x256)](_0x1ca74d,_0x14825e,_0x239975,_0x571dba,_0x2bf0ef,_0x55eca4,_0x2ff0f4,_0x2e429e,_0x19e1ca,_0x43648a):this['_addLineFollowShapeUpdates'](_0x1ca74d,_0x14825e,_0x239975,_0x571dba,_0xbefa8d?_0x2bf0ef:_0x55eca4,_0xbefa8d,_0x2ff0f4,_0x2e429e,_0x19e1ca,_0x43648a);}}}return{'preRedos':[],'redos':_0x2ff0f4,'preUndos':_0x2e429e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x151c8b(0x241)](_0x13c97b,_0x3348c5,_0x5507f5,_0x2f9f97,_0x4a80b0){const _0x4f0294=_0x151c8b;if(!_0x3348c5||!_0x5507f5)return null;let {shapeId:_0x45498b,cxnIndex:_0x36a642}=_0x13c97b,_0xdada4d=this[_0x4f0294(0x235)][_0x4f0294(0x27d)](_0x3348c5,_0x5507f5,_0x45498b);if(!_0xdada4d)return null;let _0x10a46c=this['_drawingManagerService'][_0x4f0294(0x291)]({'unitId':_0x3348c5,'subUnitId':_0x5507f5,'drawingId':_0x45498b});if(!(_0x10a46c!=null&&_0x10a46c['transform']))return null;let {left:_0x47491d=0x0,top:_0x3bc7aa=0x0,width:_0x2054ad=0x0,height:_0x1bdaf9=0x0,flipX:_0x545a8a=!0x1,flipY:_0x3c3925=!0x1,angle:_0x35ed3c}=_0x10a46c[_0x4f0294(0x206)];_0x4a80b0&&_0x2f9f97===_0x45498b&&(_0x47491d=_0x4a80b0[_0x4f0294(0x1d9)]??_0x47491d,_0x3bc7aa=_0x4a80b0[_0x4f0294(0x1ff)]??_0x3bc7aa,_0x2054ad=_0x4a80b0['width']??_0x2054ad,_0x1bdaf9=_0x4a80b0['height']??_0x1bdaf9,_0x545a8a=_0x4a80b0[_0x4f0294(0x283)]??_0x545a8a,_0x3c3925=_0x4a80b0[_0x4f0294(0x1ed)]??_0x3c3925,_0x35ed3c=_0x4a80b0[_0x4f0294(0x1e2)]??_0x35ed3c),_0xdada4d[_0x4f0294(0x203)]({'width':_0x2054ad,'height':_0x1bdaf9});let _0x4c3721=_0xdada4d['getConnectionSiteList']()[_0x4f0294(0x29f)](_0xcd3592=>_0xcd3592[_0x4f0294(0x220)]===_0x36a642);if(!_0x4c3721)return null;let _0x5412a7=_0x545a8a?_0x2054ad-_0x4c3721['x']:_0x4c3721['x'],_0x42466f=_0x3c3925?_0x1bdaf9-_0x4c3721['y']:_0x4c3721['y'];if(_0x35ed3c!==0x0&&_0x35ed3c!=null){let _0x10b775=_0x35ed3c*Math['PI']/0xb4,_0x1c839e=Math[_0x4f0294(0x222)](_0x10b775),_0x53e5b5=Math[_0x4f0294(0x22e)](_0x10b775),_0x1e04b1=_0x2054ad/0x2,_0x4a0ddc=_0x1bdaf9/0x2,_0x29313e=_0x5412a7-_0x1e04b1,_0x24b3a2=_0x42466f-_0x4a0ddc;_0x5412a7=_0x1e04b1+_0x29313e*_0x1c839e-_0x24b3a2*_0x53e5b5,_0x42466f=_0x4a0ddc+_0x29313e*_0x53e5b5+_0x24b3a2*_0x1c839e;}_0x5412a7+=_0x47491d,_0x42466f+=_0x3bc7aa;let _0x5e9a07=_0x4c3721[_0x4f0294(0x231)]/0xea60;_0x545a8a&&(_0x5e9a07=0xb4-_0x5e9a07),_0x3c3925&&(_0x5e9a07=-_0x5e9a07),_0x5e9a07+=_0x35ed3c||0x0,_0x5e9a07=(_0x5e9a07%0x168+0x168)%0x168;let _0x3caab6=_0x3c798b({'left':_0x47491d,'top':_0x3bc7aa,'width':_0x2054ad,'height':_0x1bdaf9},_0x35ed3c||0x0);return{'point':{'x':_0x5412a7,'y':_0x42466f},'angle':_0x5e9a07,'bounds':_0x3caab6};}[_0x151c8b(0x256)](_0x5a796c,_0x2d22bf,_0x27ff0e,_0x10fdd0,_0x30ecc0,_0xf47ff0,_0x514929,_0x575b84,_0x770c02,_0x49b6c8){const _0x213031=_0x151c8b;let _0x53f4ce=this[_0x213031(0x29a)][_0x213031(0x254)](_0x5a796c,_0x2d22bf);if(!_0x53f4ce)return;let _0x11e4d2=_0x10fdd0[_0x213031(0x20c)](),_0x2504ca=_0x10fdd0[_0x213031(0x295)](),_0x20a6e3={},_0x2cc41d={};_0x2504ca[_0x213031(0x236)](_0x560b2c=>{const _0x5d73d0=_0x213031;let _0x26fe21=_0x10fdd0[_0x5d73d0(0x213)](_0x560b2c);_0x2cc41d[_0x560b2c]=_0x26fe21??0x0;});let _0x333ecb=this['_getConnectPointInfo'](_0x30ecc0,_0x5a796c,_0x2d22bf,_0x770c02,_0x49b6c8),_0x2b41ad=this[_0x213031(0x241)](_0xf47ff0,_0x5a796c,_0x2d22bf,_0x770c02,_0x49b6c8);if(_0x333ecb&&_0x2b41ad){let _0x51bbd8=_0x10fdd0['getShapeType'](),_0x794f40=_0xcf1d71(_0x333ecb,_0x2b41ad,_0x51bbd8),_0xe42a74=_0x51bbd8;if(_0x794f40){let _0x25c80e=_0x4064df(_0x794f40,_0x10fdd0[_0x213031(0x23f)]()),_0x146c23=this[_0x213031(0x242)][_0x213031(0x1fb)](_0x5a796c,_0x2d22bf);if(_0x146c23&&_0x146c23[_0x27ff0e]){let _0x30b16f=_0x146c23[_0x27ff0e];_0xe42a74=_0x25c80e[_0x213031(0x1e6)];for(let [_0x212ac6,_0x24667e]of Object['entries'](_0x25c80e[_0x213031(0x228)]))_0x20a6e3[_0x212ac6]=_0x24667e;let _0x400697={..._0x30b16f['transform'],'width':_0x25c80e['worldRect'][_0x213031(0x1f9)],'height':_0x25c80e['worldRect'][_0x213031(0x25d)],'left':_0x25c80e[_0x213031(0x245)]['left'],'top':_0x25c80e['worldRect'][_0x213031(0x1ff)],'flipX':_0x25c80e['worldRect'][_0x213031(0x283)],'flipY':_0x25c80e[_0x213031(0x245)][_0x213031(0x1ed)],'angle':_0x25c80e[_0x213031(0x258)]},_0x2d7dee=_0x18a95d(_0x400697,_0x53f4ce),_0x57b9e0=_0x458f48(_0x400697,_0x53f4ce),_0x5b6571={'unitId':_0x5a796c,'subUnitId':_0x2d22bf,'drawingType':_0x2a0192['DRAWING_SHAPE'],'drawingId':_0x27ff0e,'transform':_0x400697,'sheetTransform':_0x2d7dee,'axisAlignSheetTransform':_0x57b9e0},{unitId:_0x13013d,subUnitId:_0x3f26e2,undo:_0x4eb7aa,redo:_0x93173e,objects:_0x2282ce}=this[_0x213031(0x242)][_0x213031(0x2a3)]([_0x5b6571]);_0x514929[_0x213031(0x28d)]({'id':_0x2bb427['id'],'params':{'unitId':_0x13013d,'subUnitId':_0x3f26e2,'op':_0x93173e,'objects':_0x2282ce,'type':_0x5d57ba['UPDATE']}}),_0x575b84['push']({'id':_0x2bb427['id'],'params':{'unitId':_0x13013d,'subUnitId':_0x3f26e2,'op':_0x4eb7aa,'objects':_0x2282ce,'type':_0x5d57ba[_0x213031(0x1d7)]}});}_0x10fdd0[_0x213031(0x25f)]();}_0x514929[_0x213031(0x28d)]({'id':$['id'],'params':{'unitId':_0x5a796c,'subUnitId':_0x2d22bf,'shapeId':_0x27ff0e,'shapeType':_0xe42a74,'shapeData':{'adjustValues':_0x20a6e3,'relation':_0x11e4d2}}}),_0x575b84[_0x213031(0x28d)]({'id':$['id'],'params':{'unitId':_0x5a796c,'subUnitId':_0x2d22bf,'shapeId':_0x27ff0e,'shapeType':_0x51bbd8,'shapeData':{'adjustValues':_0x2cc41d,'relation':_0x11e4d2}}});}}[_0x151c8b(0x2a4)](_0x40127b,_0x3f4647,_0x3fd05b,_0xd17286,_0x60b59b,_0x3e0865,_0x54bfe6,_0xf77340,_0x4a7ae9,_0xfffc63){const _0x219eb7=_0x151c8b;var _0x2c7d17;if(!_0x60b59b)return;let _0x4ef046=this[_0x219eb7(0x29a)]['getSkeleton'](_0x40127b,_0x3f4647);if(!_0x4ef046)return;let _0x16ce1f=(_0x2c7d17=this[_0x219eb7(0x242)][_0x219eb7(0x291)]({'unitId':_0x40127b,'subUnitId':_0x3f4647,'drawingId':_0x4a7ae9}))==null?void 0x0:_0x2c7d17['transform'];if(!_0x16ce1f)return;let _0x1492d1=_0x16ce1f['left']!==_0xfffc63[_0x219eb7(0x1d9)]||_0x16ce1f[_0x219eb7(0x1ff)]!==_0xfffc63['top'],_0x21e5ba=_0x16ce1f[_0x219eb7(0x1f9)]!==_0xfffc63[_0x219eb7(0x1f9)]||_0x16ce1f[_0x219eb7(0x25d)]!==_0xfffc63[_0x219eb7(0x25d)],_0x2c0d4a=_0x16ce1f['flipX']!==_0xfffc63['flipX']||_0x16ce1f[_0x219eb7(0x1ed)]!==_0xfffc63['flipY'],_0xcefa38=_0x16ce1f['angle']!==_0xfffc63[_0x219eb7(0x1e2)];if(_0x1492d1&&!_0x21e5ba&&!_0x2c0d4a&&!_0xcefa38){let _0x31a80b=(_0xfffc63[_0x219eb7(0x1d9)]??0x0)-(_0x16ce1f[_0x219eb7(0x1d9)]??0x0),_0x178388=(_0xfffc63[_0x219eb7(0x1ff)]??0x0)-(_0x16ce1f[_0x219eb7(0x1ff)]??0x0),_0x4777a5=this[_0x219eb7(0x242)][_0x219eb7(0x1fb)](_0x40127b,_0x3f4647);if(_0x4777a5&&_0x4777a5[_0x3fd05b]){var _0x2b7d3e,_0x130b74;let _0x243e71=_0x4777a5[_0x3fd05b],_0x470ced={..._0x243e71[_0x219eb7(0x206)],'left':(((_0x2b7d3e=_0x243e71[_0x219eb7(0x206)])==null?void 0x0:_0x2b7d3e['left'])??0x0)+_0x31a80b,'top':(((_0x130b74=_0x243e71[_0x219eb7(0x206)])==null?void 0x0:_0x130b74[_0x219eb7(0x1ff)])??0x0)+_0x178388},_0x365e7b=_0x18a95d(_0x470ced,_0x4ef046),_0x42e6f9=_0x458f48(_0x470ced,_0x4ef046),_0x5781f4={'unitId':_0x40127b,'subUnitId':_0x3f4647,'drawingType':_0x2a0192[_0x219eb7(0x215)],'drawingId':_0x3fd05b,'transform':_0x470ced,'sheetTransform':_0x365e7b,'axisAlignSheetTransform':_0x42e6f9},{unitId:_0x4ea3c3,subUnitId:_0x56f688,undo:_0x4551af,redo:_0x53bba5,objects:_0x1b45ac}=this['_drawingManagerService']['getBatchUpdateOp']([_0x5781f4]);_0x54bfe6[_0x219eb7(0x28d)]({'id':_0x2bb427['id'],'params':{'unitId':_0x4ea3c3,'subUnitId':_0x56f688,'op':_0x53bba5,'objects':_0x1b45ac,'type':_0x5d57ba[_0x219eb7(0x1d7)]}}),_0xf77340['push']({'id':_0x2bb427['id'],'params':{'unitId':_0x4ea3c3,'subUnitId':_0x56f688,'op':_0x4551af,'objects':_0x1b45ac,'type':_0x5d57ba[_0x219eb7(0x1d7)]}});}}else{let _0x21123b=_0xd17286[_0x219eb7(0x275)](),_0x32af63=_0xd17286[_0x219eb7(0x1fa)]();this['_addLineRerouteUpdates'](_0x40127b,_0x3f4647,_0x3fd05b,_0xd17286,_0x21123b,_0x32af63,_0x54bfe6,_0xf77340,_0x4a7ae9,_0xfffc63);}}};Te=le([Z(0x0,_0x29da1d),Z(0x1,_0x4d6358(_0x1e775a)),Z(0x2,_0x4d6358(_0x503013)),Z(0x3,_0x4d6358(Q)),Z(0x4,_0x4d6358(_0x38b720)),Z(0x5,_0x4d6358(_0x2fa80a)),Z(0x6,_0x4d6358(Ce))],Te);let Ee=class extends _0x38c616{constructor(_0x1ec865,_0x86c5e6,_0x340336){const _0x3a3273=_0x151c8b;super(),this[_0x3a3273(0x218)]=_0x1ec865,this[_0x3a3273(0x1da)]=_0x86c5e6,this['disposeWithMe'](_0x340336['register'](this));}[_0x151c8b(0x206)](_0x22acee){const _0x196458=_0x151c8b;let _0x2759f2={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this['_planDeletes'](_0x22acee,_0x2759f2);for(let [_0x31564b,_0x55cf7b]of _0x22acee['originals'])this[_0x196458(0x250)](_0x22acee,_0x31564b,_0x55cf7b,_0x2759f2);return _0x2759f2;}[_0x151c8b(0x1f0)](_0x26c00a,_0x16e1f4){const _0x38053a=_0x151c8b;if(_0x26c00a[_0x38053a(0x217)]===_0x38053a(0x244))for(let _0x4a828d of _0x26c00a[_0x38053a(0x26a)]){let _0xbb1169=_0x26c00a[_0x38053a(0x1f2)][_0x38053a(0x294)](_0x4a828d),_0x514217=this['_shapeService'][_0x38053a(0x27d)](_0x26c00a[_0x38053a(0x26f)],_0x26c00a[_0x38053a(0x269)],_0x4a828d);(_0xbb1169==null?void 0x0:_0xbb1169[_0x38053a(0x232)])===_0x2a0192[_0x38053a(0x215)]&&_0x514217&&(_0x16e1f4[_0x38053a(0x1ea)][_0x38053a(0x28d)]({'id':de['id'],'params':{'unitId':_0x26c00a['unitId'],'subUnitId':_0x26c00a[_0x38053a(0x269)],'shapeId':_0x4a828d}}),_0x16e1f4['undos'][_0x38053a(0x28d)]({'id':ue['id'],'params':{'unitId':_0x26c00a['unitId'],'subUnitId':_0x26c00a[_0x38053a(0x269)],'shapeId':_0x4a828d,'shapeName':_0x514217[_0x38053a(0x292)](),'shapeType':_0x514217['getShapeType'](),'shapeData':_0x44cf1c[_0x38053a(0x266)](_0x514217[_0x38053a(0x1e0)]())}}));}}[_0x151c8b(0x250)](_0x3f7687,_0x1dc58a,_0x1a464e,_0x4a75a9){const _0x352716=_0x151c8b;if(_0x1a464e[_0x352716(0x232)]!==_0x2a0192['DRAWING_SHAPE']||_0x3f7687[_0x352716(0x26a)][_0x352716(0x272)](_0x1dc58a))return;let _0x16ae37=this[_0x352716(0x218)]['getShapeModel'](_0x3f7687[_0x352716(0x26f)],_0x3f7687[_0x352716(0x269)],_0x1dc58a);if(!_0x16ae37||!_0x2d6c01(_0x16ae37[_0x352716(0x23f)]()))return;let _0x45b5d7=_0x16ae37[_0x352716(0x20c)]();if(!(_0x3f7687[_0x352716(0x276)]['has'](_0x1dc58a)||_0x45b5d7!=null&&_0x45b5d7[_0x352716(0x21b)]&&(_0x3f7687[_0x352716(0x276)][_0x352716(0x272)](_0x45b5d7[_0x352716(0x21b)][_0x352716(0x1f3)])||_0x3f7687[_0x352716(0x26a)][_0x352716(0x272)](_0x45b5d7[_0x352716(0x21b)][_0x352716(0x1f3)]))||_0x45b5d7!=null&&_0x45b5d7['to']&&(_0x3f7687[_0x352716(0x276)]['has'](_0x45b5d7['to'][_0x352716(0x1f3)])||_0x3f7687['deletes']['has'](_0x45b5d7['to'][_0x352716(0x1f3)]))))return;let _0x45b285=_0x3f7687[_0x352716(0x276)]['get'](_0x1dc58a)??_0x1a464e,_0x1e7db9=this[_0x352716(0x28b)](_0x3f7687,_0x45b285);if(!_0x1e7db9)return;let _0x229963=_0x5ced46(_0x1e7db9);if(_0x229963['length']<0x2)return;let _0xf7f3e5=_0x44cf1c['deepClone'](_0x45b5d7??{}),_0xaceca2=_0xf7f3e5['from']&&this[_0x352716(0x22f)](_0x3f7687,_0xf7f3e5[_0x352716(0x21b)][_0x352716(0x1f3)],_0xf7f3e5[_0x352716(0x21b)][_0x352716(0x1ee)]),_0x44d13b=_0xf7f3e5['to']&&this[_0x352716(0x22f)](_0x3f7687,_0xf7f3e5['to'][_0x352716(0x1f3)],_0xf7f3e5['to'][_0x352716(0x1ee)]);_0xf7f3e5[_0x352716(0x21b)]&&!_0xaceca2&&delete _0xf7f3e5[_0x352716(0x21b)],_0xf7f3e5['to']&&!_0x44d13b&&delete _0xf7f3e5['to'];let _0x50596a=_0xaceca2||_0x275ed3((_0x44d13b==null?void 0x0:_0x44d13b[_0x352716(0x1f7)])??_0x229963[_0x229963[_0x352716(0x1f1)]-0x1],_0x229963[0x0]),_0x9833bf=_0x44d13b||_0x275ed3((_0xaceca2==null?void 0x0:_0xaceca2[_0x352716(0x1f7)])??_0x229963[0x0],_0x229963[_0x229963[_0x352716(0x1f1)]-0x1]),_0x4ae6b7=_0x1906b0(_0x1e7db9,_0x50596a,_0x9833bf,_0xf7f3e5);if(_0x4ae6b7!=null&&_0x4ae6b7[_0x352716(0x206)]&&_0x4ae6b7[_0x352716(0x25a)]&&_0x4ae6b7[_0x352716(0x249)]){if(this[_0x352716(0x1ec)](_0x3f7687,_0x45b285,_0x4ae6b7),_0x3f7687[_0x352716(0x217)]==='refresh'){_0x16ae37['setShapeType'](_0x4ae6b7[_0x352716(0x25a)]),_0x16ae37['setShapeData'](_0x44cf1c[_0x352716(0x266)](_0x4ae6b7['shapeData']),!0x1);return;}_0x4a75a9[_0x352716(0x24d)]['push']({'id':$['id'],'params':{'unitId':_0x3f7687[_0x352716(0x26f)],'subUnitId':_0x3f7687['subUnitId'],'shapeId':_0x1dc58a,'shapeType':_0x4ae6b7['shapeType'],'shapeData':_0x44cf1c[_0x352716(0x266)](_0x4ae6b7[_0x352716(0x249)]),'replace':!0x0}}),_0x4a75a9[_0x352716(0x20f)][_0x352716(0x28d)]({'id':$['id'],'params':{'unitId':_0x3f7687[_0x352716(0x26f)],'subUnitId':_0x3f7687[_0x352716(0x269)],'shapeId':_0x1dc58a,'shapeType':_0x16ae37[_0x352716(0x23f)](),'shapeData':_0x44cf1c[_0x352716(0x266)](_0x16ae37[_0x352716(0x1e0)]()),'replace':!0x0}});}}[_0x151c8b(0x22f)](_0x231239,_0x1df93c,_0x3ccc57){const _0x2f4235=_0x151c8b;if(_0x231239['deletes'][_0x2f4235(0x272)](_0x1df93c))return null;let _0x154b56=_0x231239[_0x2f4235(0x276)]['get'](_0x1df93c)??_0x231239[_0x2f4235(0x1f2)]['get'](_0x1df93c);if(!_0x154b56)return null;let _0x3a87a2=this[_0x2f4235(0x28b)](_0x231239,_0x154b56);return _0x3a87a2?_0x46aa4f(_0x3a87a2,_0x3ccc57):null;}[_0x151c8b(0x28b)](_0x15d10a,_0x5c025f){const _0x260fcb=_0x151c8b;let _0x33ea87={'hostType':_0x543e53[_0x260fcb(0x26e)],'unitId':_0x15d10a[_0x260fcb(0x26f)],'subUnitId':_0x15d10a[_0x260fcb(0x269)],'shapeId':_0x5c025f[_0x260fcb(0x226)]},_0x59985b=this[_0x260fcb(0x1da)][_0x260fcb(0x25b)](_0x33ea87);return!_0x59985b||!_0x5c025f[_0x260fcb(0x206)]?null:{..._0x59985b,'transform':{'left':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x1d9)]??0x0,'top':_0x5c025f['transform'][_0x260fcb(0x1ff)]??0x0,'width':_0x5c025f[_0x260fcb(0x206)]['width']??0x0,'height':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x25d)]??0x0,'rotation':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x1e2)]??0x0,'flipX':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x283)]??!0x1,'flipY':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x1ed)]??!0x1}};}[_0x151c8b(0x1ec)](_0x2d7203,_0x24762d,_0x249ec0){const _0x3858ce=_0x151c8b;let _0x15ad94=_0x24762d,_0xe8d722={..._0x24762d[_0x3858ce(0x206)],'left':_0x249ec0['transform']['left'],'top':_0x249ec0[_0x3858ce(0x206)][_0x3858ce(0x1ff)],'width':_0x249ec0[_0x3858ce(0x206)][_0x3858ce(0x1f9)],'height':_0x249ec0[_0x3858ce(0x206)][_0x3858ce(0x25d)],'angle':_0x249ec0[_0x3858ce(0x206)]['rotation'],'flipX':_0x249ec0[_0x3858ce(0x206)]['flipX'],'flipY':_0x249ec0[_0x3858ce(0x206)][_0x3858ce(0x1ed)]},_0x420c3c={..._0x15ad94,'transform':_0xe8d722,'sheetTransform':_0x18a95d(_0xe8d722,_0x2d7203['skeleton']),'axisAlignSheetTransform':_0x458f48(_0xe8d722,_0x2d7203[_0x3858ce(0x22d)]),'data':{..._0x15ad94['data'],'shapeType':_0x249ec0[_0x3858ce(0x25a)],'shapeData':_0x44cf1c[_0x3858ce(0x266)](_0x249ec0['shapeData'])}};_0x2d7203[_0x3858ce(0x276)][_0x3858ce(0x214)](_0x24762d[_0x3858ce(0x226)],_0x420c3c);}};Ee=le([Z(0x0,_0x4d6358(Q)),Z(0x1,_0x4d6358(Ce)),Z(0x2,_0x4d6358(_0x270690))],Ee);let De=class extends _0x5ab01b{constructor(_0x18f8ea=we,_0x2a39a8,_0x347c88){const _0x5e2814=_0x151c8b;super(),this[_0x5e2814(0x277)]=_0x18f8ea,this[_0x5e2814(0x23c)]=_0x2a39a8,this[_0x5e2814(0x267)]=_0x347c88;let {..._0x9e80ae}=_0x5ad21b({},we,this[_0x5e2814(0x277)]);this[_0x5e2814(0x267)]['setConfig'](_0x5e2814(0x29b),_0x9e80ae);}['onStarting'](){const _0x39166e=_0x151c8b;let _0x986392=this[_0x39166e(0x23c)];[[ce],[Q],[Ce],[Ee],[Te]]['forEach'](_0x1d5b91=>_0x986392['add'](_0x1d5b91)),_0x123ce4(_0x986392,[[Q],[Ee],[Te]]);}};X(De,_0x151c8b(0x26c),_0x543e53[_0x151c8b(0x26e)]),X(De,'pluginName',_0x151c8b(0x29c)),X(De,_0x151c8b(0x24c),be),X(De,'version',xe),De=le([_0x1f6177(_0x5bac1f,_0x302f81,_0x9b4221,_0x4abf60,_0x380ea5),Z(0x1,_0x4d6358(_0x2ddf23)),Z(0x2,_0xb091bb)],De);export{ie as DEFAULT_SHAPE_HEIGHT,re as DEFAULT_SHAPE_WIDTH,fe as InsertShapeCommand,ue as InsertSheetsShapeMutation,de as RemoveSheetsShapeMutation,pe as SetShapeDrawingDataCommand,he as SetSheetsShapeRotateCommand,ge as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,De as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
1
+ const _0x3a5dfc=_0x3b7d;(function(_0x3cb6c9,_0x12d8ae){const _0x3b7db6=_0x3b7d,_0x3f854d=_0x3cb6c9();while(!![]){try{const _0x4a43e7=parseInt(_0x3b7db6(0x1cd))/0x1*(-parseInt(_0x3b7db6(0x19b))/0x2)+parseInt(_0x3b7db6(0x253))/0x3+-parseInt(_0x3b7db6(0x255))/0x4*(parseInt(_0x3b7db6(0x1ec))/0x5)+parseInt(_0x3b7db6(0x1b0))/0x6*(parseInt(_0x3b7db6(0x24a))/0x7)+parseInt(_0x3b7db6(0x1ae))/0x8*(parseInt(_0x3b7db6(0x240))/0x9)+-parseInt(_0x3b7db6(0x211))/0xa*(-parseInt(_0x3b7db6(0x22a))/0xb)+parseInt(_0x3b7db6(0x1d4))/0xc;if(_0x4a43e7===_0x12d8ae)break;else _0x3f854d['push'](_0x3f854d['shift']());}catch(_0x10a0a9){_0x3f854d['push'](_0x3f854d['shift']());}}}(_0x2f66,0x837a0));import{IShapeHostAdapterRegistry as _0x1789d5,ShapeModel as _0x4d78a3,UniverShapePlugin as _0x548796,buildConnectorEndpointUpdate as _0x485f6c,canApplyShapeFormulaLastValue as _0x55ec03,computeConnectorRouteLayout as _0x48bb10,createDefaultInsertedShapeData as _0x5b374b,createFreeConnectorPointInfo as _0x3ff112,createUniqueShapeName as _0x5114ea,getBasicShapeRotateBound as _0x3ac411,isConnectorShape as _0x307781,resolveConnectorRoutePoints as _0x2964fd,resolveShapeConnectionPoint as _0x31b022,routeConnectorLineShape as _0x58d657}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x4a7007,CommandType as _0x3c353c,DependentOn as _0x293fcd,Disposable as _0x31a5c7,DrawingTypeEnum as _0x1e62bb,ICommandService as _0x38f217,IConfigService as _0x45b1b2,IResourceManagerService as _0x1378f6,IUndoRedoService as _0x19a3d7,IUniverInstanceService as _0x9bcde,Inject as _0x452875,Injector as _0xa34e73,Plugin as _0x243e24,Tools as _0x599624,UniverInstanceType as _0x1b684d,generateRandomId as _0x540069,merge as _0x514399,sequenceExecute as _0x21d004,touchDependencies as _0x5c8d1f}from'@univerjs/core';import{SheetInterceptorService as _0x300e17,SheetSkeletonService as _0x1775ef,UniverSheetsPlugin as _0x43113b,getSheetCommandTarget as _0x1e9b96}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x3a2ee8,DrawingApplyType as _0x548175,ISheetDrawingService as _0x4c8de1,InsertSheetDrawingCommand as _0x498826,RemoveSheetDrawingCommand as _0x4b0080,SetDrawingApplyMutation as _0x4d5632,SetDrawingArrangeCommand as _0x367ce4,SetSheetDrawingCommand as _0x1fd212,SheetDrawingAnchorType as _0x154827,SheetDrawingTransformPlanService as _0x524167,UniverSheetsDrawingPlugin as _0x150abe,transformToAxisAlignPosition as _0x14064f,transformToDrawingPosition as _0x552790}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3b3819}from'@univerjs-pro/license';import{IDrawingManagerService as _0x584a09,UniverDrawingPlugin as _0x1e5f20}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x2309a8){'@babel/helpers - typeof';const _0x57d58d=_0x3b7d;return ae=typeof Symbol==_0x57d58d(0x1ef)&&typeof Symbol['iterator']==_0x57d58d(0x22e)?function(_0xfba696){return typeof _0xfba696;}:function(_0x4b52f3){const _0x5da06c=_0x57d58d;return _0x4b52f3&&typeof Symbol==_0x5da06c(0x1ef)&&_0x4b52f3[_0x5da06c(0x1f1)]===Symbol&&_0x4b52f3!==Symbol[_0x5da06c(0x192)]?_0x5da06c(0x22e):typeof _0x4b52f3;},ae(_0x2309a8);}function oe(_0x3c0c9f,_0x3f1937){const _0x314458=_0x3b7d;if(ae(_0x3c0c9f)!='object'||!_0x3c0c9f)return _0x3c0c9f;var _0x3d9f36=_0x3c0c9f[Symbol[_0x314458(0x238)]];if(_0x3d9f36!==void 0x0){var _0x19389c=_0x3d9f36[_0x314458(0x208)](_0x3c0c9f,_0x3f1937||_0x314458(0x1e3));if(ae(_0x19389c)!=_0x314458(0x24f))return _0x19389c;throw TypeError(_0x314458(0x212));}return(_0x3f1937===_0x314458(0x1c6)?String:Number)(_0x3c0c9f);}function se(_0x519d39){const _0x18098a=_0x3b7d;var _0x28a2b5=oe(_0x519d39,_0x18098a(0x1c6));return ae(_0x28a2b5)=='symbol'?_0x28a2b5:_0x28a2b5+'';}function X(_0x44d4c3,_0x373469,_0x4531c1){return(_0x373469=se(_0x373469))in _0x44d4c3?Object['defineProperty'](_0x44d4c3,_0x373469,{'value':_0x4531c1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x44d4c3[_0x373469]=_0x4531c1,_0x44d4c3;}var ce=class extends _0x31a5c7{constructor(){const _0x432e8a=_0x3b7d;super(),X(this,_0x432e8a(0x259),new Map()),X(this,'_linesIds',new Set()),X(this,_0x432e8a(0x1f5),new Set());}[_0x3a5dfc(0x1b3)](_0x2bd24f,_0x20c86c,_0x3f7b2d,_0x45bf08){const _0xca50e8=_0x3a5dfc;let _0x5604e9=new _0x4d78a3(_0x2bd24f,_0x20c86c,_0x3f7b2d,_0x45bf08);return this[_0xca50e8(0x259)]['set'](_0x20c86c,_0x5604e9),_0x307781(_0x2bd24f)&&this[_0xca50e8(0x1c1)][_0xca50e8(0x189)](_0x20c86c),_0x5604e9;}[_0x3a5dfc(0x233)](_0x1c8702){const _0x5522f1=_0x3a5dfc;let _0x2d6eef=[];for(let _0x1b1ac6 of this[_0x5522f1(0x1c1)]){let _0x471a30=this[_0x5522f1(0x259)][_0x5522f1(0x237)](_0x1b1ac6);if(_0x471a30){let _0x24776a=_0x471a30[_0x5522f1(0x234)]();if(_0x24776a){var _0x363682,_0x3a4eba;((_0x363682=_0x24776a[_0x5522f1(0x1c9)])==null?void 0x0:_0x363682[_0x5522f1(0x210)])===_0x1c8702&&_0x2d6eef[_0x5522f1(0x1ab)]({..._0x24776a[_0x5522f1(0x1c9)],'lineShapeId':_0x1b1ac6,'isFrom':!0x0}),((_0x3a4eba=_0x24776a['to'])==null?void 0x0:_0x3a4eba[_0x5522f1(0x210)])===_0x1c8702&&_0x2d6eef['push']({..._0x24776a['to'],'lineShapeId':_0x1b1ac6,'isFrom':!0x1});}}}return _0x2d6eef;}[_0x3a5dfc(0x24d)](_0x49e6b2){const _0x592364=_0x3a5dfc;let _0x499678=this[_0x592364(0x259)][_0x592364(0x237)](_0x49e6b2);if(_0x499678)return _0x499678[_0x592364(0x234)]();}[_0x3a5dfc(0x23e)](_0x4f8cad){const _0x7f872f=_0x3a5dfc;let _0x52f15a=this[_0x7f872f(0x259)]['get'](_0x4f8cad);if(_0x52f15a)return _0x52f15a[_0x7f872f(0x23e)]();}[_0x3a5dfc(0x206)](_0x180387){const _0x1a3738=_0x3a5dfc;return this[_0x1a3738(0x259)][_0x1a3738(0x242)](_0x180387);}[_0x3a5dfc(0x1a0)](){const _0x25124a=_0x3a5dfc;return Array[_0x25124a(0x1c9)](this['_shapes'][_0x25124a(0x245)]())[_0x25124a(0x19a)](_0x3c33f0=>_0x3c33f0[_0x25124a(0x22d)]()||_0x3c33f0['getId']());}[_0x3a5dfc(0x1c8)](_0x3c10de){const _0xe81c3e=_0x3a5dfc;let _0x2dcb74=this[_0xe81c3e(0x259)]['get'](_0x3c10de);_0x2dcb74&&(_0x307781(_0x2dcb74['getShapeType']())&&this['_linesIds'][_0xe81c3e(0x1d2)](_0x3c10de),this[_0xe81c3e(0x259)][_0xe81c3e(0x1d2)](_0x3c10de));}[_0x3a5dfc(0x18f)](){const _0x433822=_0x3a5dfc;let _0x42a594=[];return this['_shapes'][_0x433822(0x1f8)](_0x1ccf2a=>{const _0x20f2c8=_0x433822;_0x42a594[_0x20f2c8(0x1ab)](_0x1ccf2a[_0x20f2c8(0x18f)]());}),_0x42a594;}[_0x3a5dfc(0x226)](_0x4742b3){const _0x52e5df=_0x3a5dfc;for(let _0x1abde4 of _0x4742b3){let {id:_0x115d63,shapeType:_0x256640,name:_0x1cdbb9}=_0x1abde4,_0x45af5e=this[_0x52e5df(0x1b3)](_0x256640,_0x115d63,_0x1abde4[_0x52e5df(0x225)],_0x1cdbb9);_0x45af5e&&_0x45af5e[_0x52e5df(0x1bf)]()&&this[_0x52e5df(0x1c1)][_0x52e5df(0x189)](_0x115d63);}}[_0x3a5dfc(0x1bb)](){const _0x39487b=_0x3a5dfc;this[_0x39487b(0x1d7)]||(this['_shapes'][_0x39487b(0x1f8)](_0x2cb2ef=>{const _0x23da74=_0x39487b;_0x2cb2ef[_0x23da74(0x1bb)]();}),this['_shapes'][_0x39487b(0x19d)](),this['_linesIds']['clear'](),this[_0x39487b(0x1f5)][_0x39487b(0x19d)](),super['dispose']());}};function Z(_0x5cb77c,_0x5ebd0d){return function(_0x57f248,_0x3effac){_0x5ebd0d(_0x57f248,_0x3effac,_0x5cb77c);};}function le(_0x4efc0c,_0x31c704,_0x49d543,_0x593749){const _0x244d5b=_0x3a5dfc;var _0x33465d=arguments[_0x244d5b(0x1b6)],_0x533610=_0x33465d<0x3?_0x31c704:_0x593749===null?_0x593749=Object[_0x244d5b(0x239)](_0x31c704,_0x49d543):_0x593749,_0xb51cc2;if(typeof Reflect=='object'&&typeof Reflect[_0x244d5b(0x21e)]==_0x244d5b(0x1ef))_0x533610=Reflect['decorate'](_0x4efc0c,_0x31c704,_0x49d543,_0x593749);else{for(var _0x2de311=_0x4efc0c['length']-0x1;_0x2de311>=0x0;_0x2de311--)(_0xb51cc2=_0x4efc0c[_0x2de311])&&(_0x533610=(_0x33465d<0x3?_0xb51cc2(_0x533610):_0x33465d>0x3?_0xb51cc2(_0x31c704,_0x49d543,_0x533610):_0xb51cc2(_0x31c704,_0x49d543))||_0x533610);}return _0x33465d>0x3&&_0x533610&&Object[_0x244d5b(0x209)](_0x31c704,_0x49d543,_0x533610),_0x533610;}let Q=class extends _0x31a5c7{constructor(_0x1ff225){const _0x36daec=_0x3a5dfc;super(),this[_0x36daec(0x1eb)]=_0x1ff225,X(this,_0x36daec(0x23c),new Map()),this[_0x36daec(0x1c2)]();}[_0x3a5dfc(0x18c)](_0x3c6fea,_0x77b006){const _0x220b05=_0x3a5dfc;let _0x3f268b=this['_shapeModelManagerMap']['get'](_0x3c6fea);_0x3f268b||(_0x3f268b=new Map(),this[_0x220b05(0x23c)][_0x220b05(0x1d8)](_0x3c6fea,_0x3f268b));let _0x425d64=_0x3f268b[_0x220b05(0x237)](_0x77b006);return _0x425d64||(_0x425d64=new ce(),_0x3f268b[_0x220b05(0x1d8)](_0x77b006,_0x425d64)),_0x425d64;}['insertShape'](_0xefda2e,_0x166170,_0x2379fb,_0x3eeac3,_0x11b900,_0x3731f5){const _0x3037ca=_0x3a5dfc;this[_0x3037ca(0x18c)](_0xefda2e,_0x166170)[_0x3037ca(0x1b3)](_0x2379fb,_0x3eeac3,_0x11b900,_0x3731f5);}[_0x3a5dfc(0x1c8)](_0x76cace,_0x56b341,_0x191f61){const _0x5f2192=_0x3a5dfc;this['_ensureShapeModelManager'](_0x76cace,_0x56b341)[_0x5f2192(0x1c8)](_0x191f61);}[_0x3a5dfc(0x196)](_0x3061c1,_0x55f1ff,_0x45c870){const _0x5e5a10=_0x3a5dfc;return this[_0x5e5a10(0x18c)](_0x3061c1,_0x55f1ff)[_0x5e5a10(0x23e)](_0x45c870);}[_0x3a5dfc(0x23e)](_0x9bc7b8,_0x5839a6,_0x57b990){const _0x1f1148=_0x3a5dfc;return this[_0x1f1148(0x18c)](_0x9bc7b8,_0x5839a6)[_0x1f1148(0x23e)](_0x57b990);}[_0x3a5dfc(0x206)](_0x3e20dd,_0x4da80a,_0x6e969c){const _0x38b253=_0x3a5dfc;return this[_0x38b253(0x18c)](_0x3e20dd,_0x4da80a)['hasShape'](_0x6e969c);}['getShapeTypeById'](_0x37a371,_0x47451e,_0x48f519){const _0x52bc70=_0x3a5dfc;return this['_ensureShapeModelManager'](_0x37a371,_0x47451e)[_0x52bc70(0x23e)](_0x48f519);}[_0x3a5dfc(0x1cb)](_0xbebc9d,_0x25ddb1,_0x365785){const _0x367278=_0x3a5dfc;let _0x351dfe=this[_0x367278(0x18c)](_0xbebc9d,_0x25ddb1);if(!_0x351dfe[_0x367278(0x23e)](_0x365785))return;let _0x51ca47=_0x351dfe['_shapes'][_0x367278(0x237)](_0x365785);if(_0x51ca47)return _0x51ca47['getShapeData']();}[_0x3a5dfc(0x1a0)](_0x3fdc0c,_0x51bf5c){const _0x14564a=_0x3a5dfc;return this[_0x14564a(0x18c)](_0x3fdc0c,_0x51bf5c)[_0x14564a(0x1a0)]();}[_0x3a5dfc(0x222)](_0x414498,_0x17c6d1,_0x5c56b6){const _0x4c4f8b=_0x3a5dfc;return this[_0x4c4f8b(0x18c)](_0x414498,_0x17c6d1)['_shapes'][_0x4c4f8b(0x237)](_0x5c56b6);}[_0x3a5dfc(0x233)](_0x5b4d1d,_0x2e6889,_0x5e344c){const _0x307ff9=_0x3a5dfc;return this['_ensureShapeModelManager'](_0x5b4d1d,_0x2e6889)[_0x307ff9(0x233)](_0x5e344c);}['getLineShapeRelation'](_0x4f1f8b,_0x9cb6f0,_0x47ff35){const _0x4e2fa5=_0x3a5dfc;let _0x2440d0=this[_0x4e2fa5(0x18c)](_0x4f1f8b,_0x9cb6f0)['_shapes']['get'](_0x47ff35);if(_0x2440d0)return _0x2440d0['getShapeRelation']();}[_0x3a5dfc(0x1e8)](){}['_serializeShapeForUnit'](_0x36ab69){const _0x406ddc=_0x3a5dfc;let _0x18943c={},_0x57fb44=this[_0x406ddc(0x23c)]['get'](_0x36ab69);return _0x57fb44&&_0x57fb44[_0x406ddc(0x1f8)]((_0x4f7e21,_0x316ae1)=>{const _0x11bdbd=_0x406ddc;let _0x3f0489=_0x4f7e21['toJSON']();_0x3f0489[_0x11bdbd(0x1b6)]>0x0&&(_0x18943c[_0x316ae1]=_0x3f0489);}),JSON['stringify'](_0x18943c);}[_0x3a5dfc(0x19f)](_0x41880e,_0x113c06){Object['keys'](_0x113c06)['forEach'](_0x20cc8a=>{const _0x5225ab=_0x3b7d;this['_ensureShapeModelManager'](_0x41880e,_0x20cc8a)[_0x5225ab(0x226)](_0x113c06[_0x20cc8a]);});}[_0x3a5dfc(0x18f)](){const _0x48972c=_0x3a5dfc;let _0x556787={};return this[_0x48972c(0x23c)][_0x48972c(0x1f8)]((_0x17e5e3,_0x50a65b)=>{const _0xebcfaf=_0x48972c;_0x556787[_0x50a65b]={},_0x17e5e3[_0xebcfaf(0x1f8)]((_0xaa09c9,_0xb460cf)=>{const _0x3d7a81=_0xebcfaf;_0x556787[_0x50a65b][_0xb460cf]=_0xaa09c9[_0x3d7a81(0x18f)]();});}),_0x556787;}[_0x3a5dfc(0x226)](_0x5b3ed9){const _0x412888=_0x3a5dfc;Object[_0x412888(0x1a2)](_0x5b3ed9)[_0x412888(0x1f8)](_0x2f63be=>{const _0x517cf8=_0x412888;let _0x181a95=_0x5b3ed9[_0x2f63be];Object[_0x517cf8(0x1a2)](_0x181a95)[_0x517cf8(0x1f8)](_0x9f803f=>{const _0x5e0f9c=_0x517cf8;this[_0x5e0f9c(0x18c)](_0x2f63be,_0x9f803f)[_0x5e0f9c(0x226)](_0x181a95[_0x9f803f]);});});}[_0x3a5dfc(0x1c2)](){const _0x2b5d21=_0x3a5dfc;this[_0x2b5d21(0x1eb)][_0x2b5d21(0x198)]({'pluginName':_0x2b5d21(0x1f9),'businesses':[_0x1b684d['UNIVER_SHEET']],'toJson':_0x409a5e=>this[_0x2b5d21(0x229)](_0x409a5e),'parseJson':_0x702e54=>JSON[_0x2b5d21(0x24e)](_0x702e54),'onLoad':(_0x3ca74d,_0x252050)=>{const _0x6f8700=_0x2b5d21;this[_0x6f8700(0x19f)](_0x3ca74d,_0x252050);},'onUnLoad':_0xef0ef3=>{const _0x388ca0=_0x2b5d21;let _0x461d37=this['_shapeModelManagerMap']['get'](_0xef0ef3);_0x461d37&&(_0x461d37[_0x388ca0(0x1f8)](_0x5e6931=>{_0x5e6931['dispose']();}),this[_0x388ca0(0x23c)][_0x388ca0(0x1d2)](_0xef0ef3));}});}[_0x3a5dfc(0x1bb)](){const _0x37eeb8=_0x3a5dfc;this[_0x37eeb8(0x23c)][_0x37eeb8(0x1f8)](_0x5bcc8a=>{const _0x2d1fad=_0x37eeb8;_0x5bcc8a[_0x2d1fad(0x1f8)](_0x2a0373=>{const _0x1bb3c8=_0x2d1fad;_0x2a0373[_0x1bb3c8(0x1bb)]();});});}};Q=le([Z(0x0,_0x1378f6)],Q);function _0x3b7d(_0x5b59b9,_0x3c9771){_0x5b59b9=_0x5b59b9-0x183;const _0x2f664d=_0x2f66();let _0x3b7db8=_0x2f664d[_0x5b59b9];return _0x3b7db8;}const ue={'id':'sheet.mutation.insert-shape','type':_0x3c353c['MUTATION'],'handler':(_0x4d65e0,_0x513ab3)=>{const _0x515668=_0x3a5dfc;let {unitId:_0x44780f,subUnitId:_0xbf61e3,shapeType:_0x10855f,shapeId:_0x434d51,shapeName:_0x38d080,shapeData:_0x3755c5}=_0x513ab3;return _0x4d65e0[_0x515668(0x237)](Q)[_0x515668(0x201)](_0x44780f,_0xbf61e3,_0x10855f,_0x434d51,_0x599624[_0x515668(0x193)](_0x3755c5),_0x38d080),!0x0;}},de={'id':_0x3a5dfc(0x19c),'type':_0x3c353c[_0x3a5dfc(0x23a)],'handler':(_0x244e22,_0xa54de9)=>{const _0x3bd54b=_0x3a5dfc;let {unitId:_0x19e9e5,subUnitId:_0x2d64cc,shapeId:_0x20f038}=_0xa54de9;return _0x244e22[_0x3bd54b(0x237)](Q)['removeShape'](_0x19e9e5,_0x2d64cc,_0x20f038),!0x0;}},fe={'type':_0x3c353c[_0x3a5dfc(0x20f)],'id':_0x3a5dfc(0x1b4),'handler':(_0x566477,_0x54b709)=>{const _0x512a5b=_0x3a5dfc;let _0x5ef101=_0x1e9b96(_0x566477[_0x512a5b(0x237)](_0x9bcde),_0x54b709);if(!_0x5ef101)return!0x1;let _0x2edf96=_0x566477[_0x512a5b(0x237)](_0x1775ef),{unitId:_0x44f738,subUnitId:_0x22889c}=_0x5ef101,_0x5d9b55=_0x2edf96[_0x512a5b(0x1c0)](_0x44f738,_0x22889c);if(!_0x5d9b55)return!0x1;let _0xc3a16c=_0x566477[_0x512a5b(0x237)](_0x38f217),_0x5c43cc=_0x566477['get'](_0x19a3d7),_0x1d6d6e=_0x566477['get'](_0x300e17),_0x844d6d=_0x566477[_0x512a5b(0x237)](_0x4c8de1),_0x300775=_0x566477['get'](Q),{shapeType:_0x500139}=_0x54b709,_0x384329=_0x54b709[_0x512a5b(0x225)]??_0x5b374b(_0x500139),_0x330018=_0x54b709[_0x512a5b(0x210)]||_0x540069(),_0x1422e0={'unitId':_0x44f738,'subUnitId':_0x22889c,'shapeId':_0x330018,'shapeName':_0x54b709[_0x512a5b(0x1db)]??_0x5114ea(_0x500139,_0x300775['getShapeDisplayNames'](_0x44f738,_0x22889c)),'shapeType':_0x500139,'shapeData':_0x384329},_0x4e9842=_0x54b709[_0x512a5b(0x1c3)]||0xc8,_0x78caae=_0x54b709[_0x512a5b(0x1dc)]||0xc8,_0x1e31b3=0x0,_0x5e40ef=0x0;if(_0x54b709[_0x512a5b(0x23d)]){let {x:_0x44abbb,y:_0x139d19}=_0x54b709[_0x512a5b(0x23d)];_0x1e31b3=_0x44abbb,_0x5e40ef=_0x139d19;}else{if(_0x54b709[_0x512a5b(0x22b)]){let {startRow:_0x1fcfe9,startColumn:_0x399fde}=_0x54b709['range'],_0x1cc2e2=_0x5d9b55[_0x512a5b(0x1be)](_0x1fcfe9,_0x399fde);_0x1e31b3=_0x1cc2e2[_0x512a5b(0x1f2)]+0xa,_0x5e40ef=_0x1cc2e2['startY']+0xa;}}let _0x2ea405={'left':_0x1e31b3,'top':_0x5e40ef,'width':_0x4e9842,'height':_0x78caae,'angle':_0x54b709['rotation']??0x0,'flipX':_0x54b709[_0x512a5b(0x20a)]??!0x1,'flipY':_0x54b709[_0x512a5b(0x18b)]??!0x1},_0x13551a=_0x552790(_0x2ea405,_0x5d9b55),_0x2d58ae=_0x14064f(_0x2ea405,_0x5d9b55),_0x2bcbef={'unitId':_0x44f738,'subUnitId':_0x22889c,'drawingId':_0x330018,'drawingType':_0x1e62bb[_0x512a5b(0x1b2)],'anchorType':_0x154827[_0x512a5b(0x218)],'name':_0x54b709[_0x512a5b(0x20e)],'description':_0x54b709[_0x512a5b(0x197)],'sheetTransform':_0x13551a,'transform':_0x2ea405,'data':{'shapeType':_0x500139,'shapeData':_0x384329},'axisAlignSheetTransform':_0x2d58ae,'allowTransform':!0x0,'hidden':_0x54b709['visible']===!0x1,'selectable':_0x54b709[_0x512a5b(0x1f7)]??!0x0};_0x307781(_0x500139)&&(_0x2bcbef['data'][_0x512a5b(0x1cc)]=!0x1,_0x2bcbef[_0x512a5b(0x191)][_0x512a5b(0x1f4)]=!0x1,_0x2bcbef[_0x512a5b(0x191)]['resizeEnabled']=!0x1,_0x2bcbef[_0x512a5b(0x191)]['borderEnabled']=!0x1,_0x2bcbef[_0x512a5b(0x1ca)]['rotateEnabled']=!0x1,_0x2bcbef['transform']['resizeEnabled']=!0x1,_0x2bcbef[_0x512a5b(0x1ca)][_0x512a5b(0x1a8)]=!0x1);let {undo:_0x12abd4,redo:_0x1467e3,objects:_0x4f61a8}=_0x844d6d[_0x512a5b(0x207)]([_0x2bcbef]),_0x1a151f=_0x1d6d6e[_0x512a5b(0x19e)]({'id':_0x498826['id'],'params':{'unitId':_0x44f738,'drawings':[_0x2bcbef]}}),_0xf0cd1f=[..._0x1a151f['preRedos']??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x44f738,'subUnitId':_0x22889c,'op':_0x1467e3,'objects':_0x4f61a8,'type':_0x548175[_0x512a5b(0x1d6)]}},{'id':_0x3a2ee8['id'],'params':[_0x44f738]},..._0x1a151f[_0x512a5b(0x1e6)],{'id':ue['id'],'params':_0x1422e0}],_0x17329b=[{'id':de['id'],'params':{'unitId':_0x44f738,'subUnitId':_0x22889c,'shapeId':_0x330018}},..._0x1a151f['preUndos']??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x44f738,'subUnitId':_0x22889c,'op':_0x12abd4,'objects':_0x4f61a8,'type':_0x548175[_0x512a5b(0x22c)]}},{'id':_0x3a2ee8['id'],'params':[_0x44f738]},..._0x1a151f[_0x512a5b(0x200)]];return _0x21d004(_0xf0cd1f,_0xc3a16c)['result']?(_0x5c43cc['pushUndoRedo']({'unitID':_0x44f738,'undoMutations':_0x17329b,'redoMutations':_0xf0cd1f}),!0x0):!0x1;}},$={'id':_0x3a5dfc(0x187),'type':_0x3c353c['MUTATION'],'handler':(_0x349e97,_0x14ae54)=>{const _0x41368c=_0x3a5dfc;let {unitId:_0x4e3c82,subUnitId:_0x9d4ae5,shapeType:_0x575cd2,shapeId:_0x46524e,shapeData:_0x3cbe8c,replace:_0x2fa022,formulaLastValueGuard:_0x4956b0}=_0x14ae54,_0xcc5702=_0x349e97[_0x41368c(0x237)](Q)[_0x41368c(0x222)](_0x4e3c82,_0x9d4ae5,_0x46524e);if(_0xcc5702){var _0x3a6d26;if(!_0x55ec03(_0x349e97,{'hostType':_0x1b684d[_0x41368c(0x20d)],'unitId':_0x4e3c82,'subUnitId':_0x9d4ae5,'shapeId':_0x46524e},(_0x3a6d26=_0xcc5702['getShapeData']()[_0x41368c(0x1c7)])==null?void 0x0:_0x3a6d26[_0x41368c(0x184)],_0x4956b0))return!0x0;_0x575cd2!==void 0x0&&_0xcc5702[_0x41368c(0x1e8)](_0x575cd2),_0x3cbe8c&&(_0xcc5702==null||_0xcc5702[_0x41368c(0x215)](_0x599624[_0x41368c(0x193)](_0x3cbe8c),!_0x2fa022));}return!0x0;}},pe={'type':_0x3c353c[_0x3a5dfc(0x20f)],'id':_0x3a5dfc(0x1f6),'handler':(_0x3f1af8,_0x2dd5ac)=>{const _0xc33f7=_0x3a5dfc;let _0x5d0d03=_0x1e9b96(_0x3f1af8[_0xc33f7(0x237)](_0x9bcde),_0x2dd5ac);if(!_0x5d0d03)return!0x1;let _0x39dd34=_0x3f1af8[_0xc33f7(0x237)](_0x1775ef),{unitId:_0x16726c,subUnitId:_0x53aafa}=_0x5d0d03,_0x174fa6=_0x39dd34['ensureSkeleton'](_0x16726c,_0x53aafa);if(!_0x174fa6)return!0x1;let _0x503aec=_0x3f1af8['get'](Q),{shapeId:_0x3cee58,shapeType:_0xc4a26f,shapeData:_0x290d48,position:_0x496812,width:_0x25c06c,height:_0xe09c8e}=_0x2dd5ac,_0xa61d4c=_0x503aec[_0xc33f7(0x222)](_0x16726c,_0x53aafa,_0x3cee58);if(!_0xa61d4c)return!0x1;let _0x80091f=_0x3f1af8[_0xc33f7(0x237)](_0x38f217),_0x47534b=_0x3f1af8['get'](_0x19a3d7),_0x3ac0ab=_0x3f1af8[_0xc33f7(0x237)](_0x300e17),_0x35690b=_0x3f1af8[_0xc33f7(0x237)](_0x4c8de1),_0x8c774={'unitId':_0x16726c,'subUnitId':_0x53aafa,'shapeId':_0x3cee58,'shapeType':_0xc4a26f,'shapeData':_0x290d48,'replace':!0x0},_0x34f67c=_0xa61d4c['getShapeType'](),_0xd98c1a=_0xa61d4c[_0xc33f7(0x256)](),{x:_0x11447f,y:_0x225bf4}=_0x496812,_0x19117e={'left':_0x11447f,'top':_0x225bf4,'width':_0x25c06c,'height':_0xe09c8e,'angle':_0x2dd5ac[_0xc33f7(0x203)]??0x0,'flipX':_0x2dd5ac[_0xc33f7(0x20a)]??!0x1,'flipY':_0x2dd5ac[_0xc33f7(0x18b)]??!0x1},_0x48e10e=_0x552790(_0x19117e,_0x174fa6),_0xcbf68d=_0x14064f(_0x19117e,_0x174fa6),_0x2f07c8={'unitId':_0x16726c,'subUnitId':_0x53aafa,'drawingId':_0x3cee58,'drawingType':_0x1e62bb['DRAWING_SHAPE'],'name':_0x2dd5ac[_0xc33f7(0x20e)],'description':_0x2dd5ac[_0xc33f7(0x197)],'sheetTransform':_0x48e10e,'transform':_0x19117e,'data':{'shapeType':_0xc4a26f,'shapeData':_0x290d48},'axisAlignSheetTransform':_0xcbf68d,'allowTransform':!0x0,'hidden':!_0x2dd5ac['visible'],'selectable':_0x2dd5ac['selectable']};_0x307781(_0xc4a26f)&&(_0x2f07c8[_0xc33f7(0x191)]['fill']=!0x1,_0x2f07c8[_0xc33f7(0x191)][_0xc33f7(0x1f4)]=!0x1,_0x2f07c8['data']['resizeEnabled']=!0x1,_0x2f07c8[_0xc33f7(0x191)]['borderEnabled']=!0x1,_0x2f07c8[_0xc33f7(0x1ca)][_0xc33f7(0x1f4)]=!0x1,_0x2f07c8[_0xc33f7(0x1ca)][_0xc33f7(0x195)]=!0x1,_0x2f07c8[_0xc33f7(0x1ca)][_0xc33f7(0x1a8)]=!0x1);let {undo:_0x22281c,redo:_0x3731a6,objects:_0x142da4}=_0x35690b[_0xc33f7(0x1ce)]([_0x2f07c8]),_0x1dfd97=_0x3ac0ab[_0xc33f7(0x19e)]({'id':_0x1fd212['id'],'params':{'unitId':_0x16726c,'drawings':[_0x2f07c8]}}),_0x6b29f0=[..._0x1dfd97[_0xc33f7(0x250)]??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x16726c,'subUnitId':_0x53aafa,'op':_0x3731a6,'objects':_0x142da4,'type':_0x548175[_0xc33f7(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x16726c]},..._0x1dfd97['redos'],{'id':$['id'],'params':_0x8c774}],_0x50f8f7=[..._0x1dfd97[_0xc33f7(0x24b)]??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x16726c,'subUnitId':_0x53aafa,'op':_0x22281c,'objects':_0x142da4,'type':_0x548175[_0xc33f7(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x16726c]},..._0x1dfd97[_0xc33f7(0x200)],{'id':$['id'],'params':{'unitId':_0x16726c,'subUnitId':_0x53aafa,'shapeType':_0x34f67c,'shapeId':_0x3cee58,'shapeData':_0xd98c1a,'replace':!0x0}}];return _0x21d004(_0x6b29f0,_0x80091f)['result']?(_0x47534b['pushUndoRedo']({'unitID':_0x16726c,'undoMutations':_0x50f8f7,'redoMutations':_0x6b29f0}),!0x0):!0x1;}},me={'type':_0x3c353c['COMMAND'],'id':_0x3a5dfc(0x258),'handler':(_0x46c244,_0x367f59)=>{const _0x2f30e3=_0x3a5dfc;let _0x508005=_0x1e9b96(_0x46c244[_0x2f30e3(0x237)](_0x9bcde),_0x367f59);if(!_0x508005)return!0x1;let _0x5cac0e=_0x46c244[_0x2f30e3(0x237)](_0x1775ef),{unitId:_0x2e7387,subUnitId:_0x52831c}=_0x508005,_0x563d7a=_0x5cac0e['getSkeleton'](_0x2e7387,_0x52831c);if(!_0x563d7a)return!0x1;let _0x518abf=_0x46c244[_0x2f30e3(0x237)](_0x4c8de1),{shapeId:_0x4b2088,flipH:_0x3823fe,flipV:_0x1f69d7}=_0x367f59,_0x185133=_0x518abf[_0x2f30e3(0x1a6)]({'unitId':_0x2e7387,'subUnitId':_0x52831c,'drawingId':_0x4b2088});if(!_0x185133)return!0x1;let _0x21045f=_0x46c244[_0x2f30e3(0x237)](Q)[_0x2f30e3(0x222)](_0x2e7387,_0x52831c,_0x4b2088);if(!_0x21045f)return!0x1;let _0x3b7707=_0x46c244['get'](_0x38f217),_0x26a5ec=_0x46c244[_0x2f30e3(0x237)](_0x19a3d7),_0x4d741c=_0x46c244[_0x2f30e3(0x237)](_0x300e17),_0x23edb6={..._0x185133[_0x2f30e3(0x1ca)]};_0x3823fe!==void 0x0&&(_0x23edb6[_0x2f30e3(0x20a)]=!_0x23edb6['flipX']),_0x1f69d7!==void 0x0&&(_0x23edb6[_0x2f30e3(0x18b)]=!_0x23edb6[_0x2f30e3(0x18b)]);let _0x5689c7=_0x552790(_0x23edb6,_0x563d7a),_0x4e9565=_0x14064f(_0x23edb6,_0x563d7a),_0x1909af=_0x21045f[_0x2f30e3(0x23e)](),_0x2e97f6=_0x21045f[_0x2f30e3(0x256)](),_0x1e09df={'unitId':_0x2e7387,'subUnitId':_0x52831c,'drawingId':_0x4b2088,'drawingType':_0x1e62bb[_0x2f30e3(0x1b2)],'sheetTransform':_0x5689c7,'transform':_0x23edb6,'data':{'shapeType':_0x1909af,'shapeData':_0x2e97f6},'axisAlignSheetTransform':_0x4e9565,'allowTransform':!0x0},{undo:_0x202905,redo:_0x371a23,objects:_0x30cb98}=_0x518abf[_0x2f30e3(0x1ce)]([_0x1e09df]),_0x5313ab=_0x4d741c[_0x2f30e3(0x19e)]({'id':_0x1fd212['id'],'params':{'unitId':_0x2e7387,'drawings':[_0x1e09df]}}),_0x1cddc1=[..._0x5313ab[_0x2f30e3(0x250)]??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x2e7387,'subUnitId':_0x52831c,'op':_0x371a23,'objects':_0x30cb98,'type':_0x548175[_0x2f30e3(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x2e7387]},..._0x5313ab[_0x2f30e3(0x1e6)]],_0x3df552=[..._0x5313ab['preUndos']??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x2e7387,'subUnitId':_0x52831c,'op':_0x202905,'objects':_0x30cb98,'type':_0x548175[_0x2f30e3(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x2e7387]},..._0x5313ab[_0x2f30e3(0x200)]];if(_0x307781(_0x1909af)){let _0x4345bd=_0x21045f['getShapeRelation']();if(_0x4345bd){let _0x2235ec={..._0x4345bd};_0x2235ec[_0x2f30e3(0x1c9)]=void 0x0,_0x2235ec['to']=void 0x0,_0x1cddc1[_0x2f30e3(0x1ab)]({'id':$['id'],'params':{'unitId':_0x2e7387,'subUnitId':_0x52831c,'shapeId':_0x4b2088,'shapeType':_0x1909af,'shapeData':{'relation':_0x2235ec}}}),_0x3df552['push']({'id':$['id'],'params':{'unitId':_0x2e7387,'subUnitId':_0x52831c,'shapeId':_0x4b2088,'shapeType':_0x1909af,'shapeData':{'relation':_0x4345bd}}});}}return _0x21d004(_0x1cddc1,_0x3b7707)['result']?(_0x26a5ec[_0x2f30e3(0x213)]({'unitID':_0x2e7387,'undoMutations':_0x3df552,'redoMutations':_0x1cddc1}),!0x0):!0x1;}},he={'type':_0x3c353c['COMMAND'],'id':_0x3a5dfc(0x230),'handler':(_0x72e069,_0x2a0b5f)=>{const _0x4a1cd8=_0x3a5dfc;let _0x2f4059=_0x1e9b96(_0x72e069['get'](_0x9bcde),_0x2a0b5f);if(!_0x2f4059)return!0x1;let _0x416bc8=_0x72e069[_0x4a1cd8(0x237)](_0x1775ef),{unitId:_0x439273,subUnitId:_0x585601}=_0x2f4059,_0x3b6989=_0x416bc8['getSkeleton'](_0x439273,_0x585601);if(!_0x3b6989)return!0x1;let _0x3d9d85=_0x72e069[_0x4a1cd8(0x237)](_0x4c8de1),{shapeId:_0x4b9c77,rotate:_0x546d9a}=_0x2a0b5f,_0x3f39a8=_0x3d9d85[_0x4a1cd8(0x1a6)]({'unitId':_0x439273,'subUnitId':_0x585601,'drawingId':_0x4b9c77});if(!_0x3f39a8)return!0x1;let _0x2385cc=_0x72e069[_0x4a1cd8(0x237)](Q)[_0x4a1cd8(0x222)](_0x439273,_0x585601,_0x4b9c77);if(!_0x2385cc)return!0x1;let _0x1f3275=_0x72e069[_0x4a1cd8(0x237)](_0x38f217),_0x2f0b64=_0x72e069[_0x4a1cd8(0x237)](_0x19a3d7),_0x3ab973=_0x72e069[_0x4a1cd8(0x237)](_0x300e17),_0x1b4ed5={..._0x3f39a8['transform']};_0x546d9a!==void 0x0&&(_0x1b4ed5[_0x4a1cd8(0x18d)]=(_0x1b4ed5['angle']||0x0)+_0x546d9a);let _0x406afd=_0x552790(_0x1b4ed5,_0x3b6989),_0x3f0ee9=_0x14064f(_0x1b4ed5,_0x3b6989),_0x111b52=_0x2385cc[_0x4a1cd8(0x23e)](),_0x437cf4=_0x2385cc[_0x4a1cd8(0x256)](),_0x79d517={'unitId':_0x439273,'subUnitId':_0x585601,'drawingId':_0x4b9c77,'drawingType':_0x1e62bb[_0x4a1cd8(0x1b2)],'sheetTransform':_0x406afd,'transform':_0x1b4ed5,'data':{'shapeType':_0x111b52,'shapeData':_0x437cf4},'axisAlignSheetTransform':_0x3f0ee9,'allowTransform':!0x0},{undo:_0x4a5214,redo:_0x4a7c3a,objects:_0x37081e}=_0x3d9d85[_0x4a1cd8(0x1ce)]([_0x79d517]),_0x3ace86=_0x3ab973[_0x4a1cd8(0x19e)]({'id':_0x1fd212['id'],'params':{'unitId':_0x439273,'drawings':[_0x79d517]}}),_0x319f0d=[..._0x3ace86[_0x4a1cd8(0x250)]??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x439273,'subUnitId':_0x585601,'op':_0x4a7c3a,'objects':_0x37081e,'type':_0x548175[_0x4a1cd8(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x439273]},..._0x3ace86['redos']],_0x95b13b=[..._0x3ace86[_0x4a1cd8(0x24b)]??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x439273,'subUnitId':_0x585601,'op':_0x4a5214,'objects':_0x37081e,'type':_0x548175['UPDATE']}},{'id':_0x3a2ee8['id'],'params':[_0x439273]},..._0x3ace86[_0x4a1cd8(0x200)]];return _0x21d004(_0x319f0d,_0x1f3275)['result']?(_0x2f0b64[_0x4a1cd8(0x213)]({'unitID':_0x439273,'undoMutations':_0x95b13b,'redoMutations':_0x319f0d}),!0x0):!0x1;}},ge={'type':_0x3c353c['COMMAND'],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x16505e,_0x280933)=>{const _0x23e228=_0x3a5dfc;let _0x1bbdfd=_0x1e9b96(_0x16505e[_0x23e228(0x237)](_0x9bcde),_0x280933);if(!_0x1bbdfd)return!0x1;let {unitId:_0x4ef4d5,subUnitId:_0x554b7e}=_0x1bbdfd,{shapeId:_0x1b077f}=_0x280933,_0x27ef66=_0x16505e[_0x23e228(0x237)](Q)[_0x23e228(0x222)](_0x4ef4d5,_0x554b7e,_0x1b077f);if(!_0x27ef66)return!0x1;let _0x3c2a69=_0x27ef66['getShapeTextData'](),_0x1d0ca3=(_0x3c2a69==null?void 0x0:_0x3c2a69[_0x23e228(0x1e5)])??!0x0,_0x4299e7=!_0x1d0ca3,_0x3275bd=_0x16505e['get'](_0x38f217),_0x5d9fcc=_0x16505e['get'](_0x19a3d7),_0x127aeb={'unitId':_0x4ef4d5,'subUnitId':_0x554b7e,'shapeId':_0x1b077f,'shapeData':{'shapeText':{'isHorizontal':_0x4299e7}}},_0x2944b2={'unitId':_0x4ef4d5,'subUnitId':_0x554b7e,'shapeId':_0x1b077f,'shapeData':{'shapeText':{'isHorizontal':_0x1d0ca3}}},_0x5dc106=[{'id':$['id'],'params':_0x127aeb}],_0x50a1c4=[{'id':$['id'],'params':_0x2944b2}];return _0x21d004(_0x5dc106,_0x3275bd)['result']?(_0x5d9fcc[_0x23e228(0x213)]({'unitID':_0x4ef4d5,'undoMutations':_0x50a1c4,'redoMutations':_0x5dc106}),!0x0):!0x1;}},_e={'type':_0x3c353c[_0x3a5dfc(0x20f)],'id':_0x3a5dfc(0x1d3),'handler':(_0x7f9da6,_0x458198)=>{const _0x182244=_0x3a5dfc;var _0x1eff9b;let _0x28854b=_0x1e9b96(_0x7f9da6[_0x182244(0x237)](_0x9bcde),_0x458198);if(!_0x28854b)return!0x1;let _0x4f2a4b=_0x7f9da6['get'](_0x1775ef),{unitId:_0x427c7d,subUnitId:_0x167c20}=_0x28854b,_0x4b95c1=_0x4f2a4b['getSkeleton'](_0x427c7d,_0x167c20);if(!_0x4b95c1)return!0x1;let _0x3a2355=_0x7f9da6['get'](_0x4c8de1),{connectorShapeId:_0x323898,width:_0x46cb9d,height:_0x1e319f,left:_0x4003ab,top:_0x560325,flipX:_0x39ae1b,flipY:_0x1fbbec,rotation:_0x205460,oldAdjustValues:_0x277a43,newAdjustValues:_0x483006,oldLineType:_0xe6ec14,newLineType:_0x1c6864,oldRelation:_0x38a4f2,newRelation:_0x3c19e6}=_0x458198,_0x22a105=_0x3a2355['getDrawingByParam']({'unitId':_0x427c7d,'subUnitId':_0x167c20,'drawingId':_0x323898});if(!_0x22a105)return!0x1;let _0x39c174=_0x7f9da6[_0x182244(0x237)](Q)[_0x182244(0x222)](_0x427c7d,_0x167c20,_0x323898);if(!_0x39c174)return!0x1;let _0x20f28a=_0x7f9da6['get'](_0x38f217),_0x4641b0=_0x7f9da6['get'](_0x19a3d7),_0x25d976=_0x7f9da6[_0x182244(0x237)](_0x300e17),_0x4a5edb={..._0x22a105[_0x182244(0x1ca)],'width':_0x46cb9d,'height':_0x1e319f,'left':_0x4003ab,'top':_0x560325,'flipX':_0x39ae1b,'flipY':_0x1fbbec,'angle':_0x205460??((_0x1eff9b=_0x22a105['transform'])==null?void 0x0:_0x1eff9b[_0x182244(0x18d)])??0x0},_0x35d717=_0x552790(_0x4a5edb,_0x4b95c1),_0x1e62ff=_0x14064f(_0x4a5edb,_0x4b95c1),_0x141cf6=_0x39c174[_0x182244(0x23e)](),_0x1f53f2=_0x39c174['getShapeData'](),_0x3f4abd={'unitId':_0x427c7d,'subUnitId':_0x167c20,'drawingId':_0x323898,'drawingType':_0x1e62bb[_0x182244(0x1b2)],'sheetTransform':_0x35d717,'transform':_0x4a5edb,'data':{'shapeType':_0x1c6864||_0xe6ec14||_0x141cf6,'shapeData':{..._0x1f53f2,'adjustValues':_0x483006||_0x277a43||(_0x1f53f2==null?void 0x0:_0x1f53f2[_0x182244(0x1ba)]),'relation':_0x3c19e6||_0x38a4f2||(_0x1f53f2==null?void 0x0:_0x1f53f2[_0x182244(0x24c)])}},'axisAlignSheetTransform':_0x1e62ff,'allowTransform':!0x0},{undo:_0x1ba9a4,redo:_0x2a584f,objects:_0x5e7028}=_0x3a2355[_0x182244(0x1ce)]([_0x3f4abd]),_0x52c2b8=_0x25d976['onCommandExecute']({'id':_0x1fd212['id'],'params':{'unitId':_0x427c7d,'drawings':[_0x3f4abd]}}),_0x15ce75=[..._0x52c2b8['preRedos']??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x427c7d,'subUnitId':_0x167c20,'op':_0x2a584f,'objects':_0x5e7028,'type':_0x548175[_0x182244(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x427c7d]},..._0x52c2b8[_0x182244(0x1e6)],{'id':$['id'],'params':{'unitId':_0x427c7d,'subUnitId':_0x167c20,'shapeId':_0x323898,'shapeType':_0x1c6864,'shapeData':{'adjustValues':_0x483006,'relation':_0x3c19e6}}}],_0x699626=[..._0x52c2b8[_0x182244(0x24b)]??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x427c7d,'subUnitId':_0x167c20,'op':_0x1ba9a4,'objects':_0x5e7028,'type':_0x548175[_0x182244(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x427c7d]},..._0x52c2b8[_0x182244(0x200)],{'id':$['id'],'params':{'unitId':_0x427c7d,'subUnitId':_0x167c20,'shapeId':_0x323898,'shapeType':_0x141cf6,'shapeData':{..._0x1f53f2,'adjustValues':_0x277a43||(_0x1f53f2==null?void 0x0:_0x1f53f2['adjustValues']),'relation':_0x38a4f2||(_0x1f53f2==null?void 0x0:_0x1f53f2[_0x182244(0x24c)])}}}];return _0x21d004(_0x15ce75,_0x20f28a)[_0x182244(0x1e1)]?(_0x4641b0[_0x182244(0x213)]({'unitID':_0x427c7d,'undoMutations':_0x699626,'redoMutations':_0x15ce75}),!0x0):!0x1;}},ve={'type':_0x3c353c[_0x3a5dfc(0x20f)],'id':_0x3a5dfc(0x1df),'handler':(_0x4aff33,_0x587fd2)=>{const _0x554672=_0x3a5dfc;let _0x364280=_0x1e9b96(_0x4aff33['get'](_0x9bcde),_0x587fd2);if(!_0x364280)return!0x1;let _0x1fa7d6=_0x4aff33['get'](_0x1775ef),{unitId:_0x508353,subUnitId:_0x71d584}=_0x364280,_0x541b8e=_0x1fa7d6[_0x554672(0x1a4)](_0x508353,_0x71d584);if(!_0x541b8e)return!0x1;let _0xb20bb4=_0x4aff33[_0x554672(0x237)](_0x4c8de1),{shapeId:_0x595845,width:_0x25d486,height:_0x258890,left:_0x5a6c51,top:_0xafd9c1,flipX:_0x10a13b,flipY:_0x531495,angle:_0x53850c,oldAdjustValues:_0x14b048,newAdjustValues:_0x53fc58,oldLineType:_0x13285d,newLineType:_0x7287ad}=_0x587fd2,_0x2f692f=_0xb20bb4['getDrawingByParam']({'unitId':_0x508353,'subUnitId':_0x71d584,'drawingId':_0x595845});if(!_0x2f692f)return!0x1;let _0x22aaaf=_0x4aff33['get'](Q)[_0x554672(0x222)](_0x508353,_0x71d584,_0x595845);if(!_0x22aaaf)return!0x1;let _0x1bff43=_0x4aff33['get'](_0x38f217),_0xf7571b=_0x4aff33[_0x554672(0x237)](_0x19a3d7),_0x3bbaa4=_0x4aff33[_0x554672(0x237)](_0x300e17),_0x4c43b4={..._0x2f692f[_0x554672(0x1ca)],'width':_0x25d486,'height':_0x258890,'left':_0x5a6c51,'top':_0xafd9c1,'flipX':_0x10a13b,'flipY':_0x531495,'angle':_0x53850c},_0x4c1b90=_0x552790(_0x4c43b4,_0x541b8e),_0xf8f407=_0x14064f(_0x4c43b4,_0x541b8e),_0x2b3e9e=_0x22aaaf[_0x554672(0x23e)](),_0x4dd067=_0x22aaaf['getShapeData'](),_0x216368={'unitId':_0x508353,'subUnitId':_0x71d584,'drawingId':_0x595845,'drawingType':_0x1e62bb['DRAWING_SHAPE'],'sheetTransform':_0x4c1b90,'transform':_0x4c43b4,'data':{'shapeType':_0x7287ad||_0x13285d||_0x2b3e9e,'shapeData':{..._0x4dd067,'adjustValues':_0x53fc58||_0x14b048||(_0x4dd067==null?void 0x0:_0x4dd067['adjustValues'])}},'axisAlignSheetTransform':_0xf8f407,'allowTransform':!0x0},{undo:_0x1678dc,redo:_0x521c01,objects:_0x22fd49}=_0xb20bb4['getBatchUpdateOp']([_0x216368]),_0xef8cb=_0x3bbaa4[_0x554672(0x19e)]({'id':_0x1fd212['id'],'params':{'unitId':_0x508353,'drawings':[_0x216368]}}),_0x43e782=[..._0xef8cb[_0x554672(0x250)]??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x508353,'subUnitId':_0x71d584,'op':_0x521c01,'objects':_0x22fd49,'type':_0x548175[_0x554672(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x508353]},..._0xef8cb[_0x554672(0x1e6)],{'id':$['id'],'params':{'unitId':_0x508353,'subUnitId':_0x71d584,'shapeId':_0x595845,'shapeType':_0x7287ad,'shapeData':{'adjustValues':_0x53fc58}}}],_0xfad49b=[..._0xef8cb[_0x554672(0x24b)]??[],{'id':_0x4d5632['id'],'params':{'unitId':_0x508353,'subUnitId':_0x71d584,'op':_0x1678dc,'objects':_0x22fd49,'type':_0x548175[_0x554672(0x183)]}},{'id':_0x3a2ee8['id'],'params':[_0x508353]},..._0xef8cb[_0x554672(0x200)],{'id':$['id'],'params':{'unitId':_0x508353,'subUnitId':_0x71d584,'shapeId':_0x595845,'shapeType':_0x2b3e9e,'shapeData':{..._0x4dd067,'adjustValues':_0x14b048||(_0x4dd067==null?void 0x0:_0x4dd067[_0x554672(0x1ba)])}}}];return _0x21d004(_0x43e782,_0x1bff43)[_0x554672(0x1e1)]?(_0xf7571b[_0x554672(0x213)]({'unitID':_0x508353,'undoMutations':_0xfad49b,'redoMutations':_0x43e782}),!0x0):!0x1;}},ye={'id':_0x3a5dfc(0x25a),'type':_0x3c353c[_0x3a5dfc(0x23a)],'handler':(_0x3b80a7,_0x1eb8de)=>{const _0x343450=_0x3a5dfc;let {unitId:_0x3aa932,subUnitId:_0x386de0,shapeType:_0x16201a,shapeId:_0x47949b,shapeData:_0x360de0}=_0x1eb8de,_0x374ce2=_0x3b80a7[_0x343450(0x237)](Q)['getShapeModel'](_0x3aa932,_0x386de0,_0x47949b);return _0x374ce2&&(_0x374ce2[_0x343450(0x1e8)](_0x16201a),_0x360de0&&(_0x374ce2==null||_0x374ce2[_0x343450(0x215)](_0x360de0))),!0x0;}};var be='@univerjs-pro/sheets-shape',xe=_0x3a5dfc(0x241);function Se(_0x4959fa){const _0x66bd4e=_0x3a5dfc;var _0x4d7e83,_0x3a1714,_0x274f92,_0x3848f0,_0x1b0129,_0x130f5d,_0x5d22fd;return{'left':((_0x4d7e83=_0x4959fa['transform'])==null?void 0x0:_0x4d7e83[_0x66bd4e(0x1e2)])??0x0,'top':((_0x3a1714=_0x4959fa[_0x66bd4e(0x1ca)])==null?void 0x0:_0x3a1714[_0x66bd4e(0x217)])??0x0,'width':((_0x274f92=_0x4959fa['transform'])==null?void 0x0:_0x274f92[_0x66bd4e(0x1c3)])??0xc8,'height':((_0x3848f0=_0x4959fa[_0x66bd4e(0x1ca)])==null?void 0x0:_0x3848f0[_0x66bd4e(0x1dc)])??0xc8,'rotation':((_0x1b0129=_0x4959fa['transform'])==null?void 0x0:_0x1b0129[_0x66bd4e(0x203)])??0x0,'flipX':((_0x130f5d=_0x4959fa[_0x66bd4e(0x1ca)])==null?void 0x0:_0x130f5d['flipX'])??!0x1,'flipY':((_0x5d22fd=_0x4959fa[_0x66bd4e(0x1ca)])==null?void 0x0:_0x5d22fd[_0x66bd4e(0x18b)])??!0x1};}let Ce=class{constructor(_0x115041,_0x5179e9,_0x4f742a,_0x3f3358){const _0x68172d=_0x3a5dfc;this[_0x68172d(0x219)]=_0x115041,this[_0x68172d(0x214)]=_0x5179e9,this[_0x68172d(0x22f)]=_0x4f742a,this[_0x68172d(0x1b5)]=_0x3f3358,X(this,_0x68172d(0x1cf),_0x1b684d[_0x68172d(0x20d)]);}get[_0x3a5dfc(0x223)](){return{'subscribe':_0x4e42c5=>{const _0x27b961=_0x3b7d;let _0x5031c2=this['_commandService'][_0x27b961(0x1c5)](_0x1bb34d=>{const _0x5163d2=_0x27b961;(_0x1bb34d['id']===ue['id']||_0x1bb34d['id']===de['id']||_0x1bb34d['id']===$['id']||_0x1bb34d['id']===ye['id'])&&_0x4e42c5({'unitId':_0x1bb34d['params'][_0x5163d2(0x252)]});});return{'unsubscribe':()=>_0x5031c2[_0x27b961(0x1bb)]()};}};}['getShape'](_0x31afc2){const _0x3f724f=_0x3a5dfc;var _0x5586e5;let _0x51f62f=(_0x5586e5=this[_0x3f724f(0x22f)][_0x3f724f(0x205)](_0x31afc2[_0x3f724f(0x252)],_0x31afc2['subUnitId']))==null?void 0x0:_0x5586e5[_0x31afc2[_0x3f724f(0x210)]],_0x3d804f=this['_shapeService'][_0x3f724f(0x23e)](_0x31afc2[_0x3f724f(0x252)],_0x31afc2[_0x3f724f(0x1bd)],_0x31afc2[_0x3f724f(0x210)]);if(!_0x51f62f||_0x51f62f['drawingType']!==_0x1e62bb[_0x3f724f(0x1b2)]||!_0x3d804f)return null;let _0x2674e7=_0x51f62f['transform'];return{..._0x31afc2,'shapeType':_0x3d804f,'shapeData':_0x599624[_0x3f724f(0x193)](this[_0x3f724f(0x214)]['getShapeDataById'](_0x31afc2[_0x3f724f(0x252)],_0x31afc2[_0x3f724f(0x1bd)],_0x31afc2[_0x3f724f(0x210)])??{}),'name':_0x51f62f['name'],'description':_0x51f62f['description'],'visible':_0x51f62f['hidden']!==!0x0,'selectable':_0x51f62f[_0x3f724f(0x1f7)]!==!0x1,'transform':{'left':(_0x2674e7==null?void 0x0:_0x2674e7[_0x3f724f(0x1e2)])??0x0,'top':(_0x2674e7==null?void 0x0:_0x2674e7[_0x3f724f(0x217)])??0x0,'width':(_0x2674e7==null?void 0x0:_0x2674e7[_0x3f724f(0x1c3)])??0xc8,'height':(_0x2674e7==null?void 0x0:_0x2674e7[_0x3f724f(0x1dc)])??0xc8,'rotation':(_0x2674e7==null?void 0x0:_0x2674e7['angle'])??0x0,'flipX':(_0x2674e7==null?void 0x0:_0x2674e7['flipX'])??!0x1,'flipY':(_0x2674e7==null?void 0x0:_0x2674e7[_0x3f724f(0x18b)])??!0x1}};}[_0x3a5dfc(0x185)](_0x5c4191){const _0x17c25f=_0x3a5dfc;let _0x52fd81=this[_0x17c25f(0x22f)][_0x17c25f(0x205)](_0x5c4191[_0x17c25f(0x252)],_0x5c4191[_0x17c25f(0x1bd)])??{};return Object[_0x17c25f(0x245)](_0x52fd81)[_0x17c25f(0x190)](_0x22e1df=>(_0x22e1df==null?void 0x0:_0x22e1df[_0x17c25f(0x1a5)])===_0x1e62bb['DRAWING_SHAPE'])[_0x17c25f(0x19a)](_0x103703=>this[_0x17c25f(0x1f3)]({..._0x5c4191,'shapeId':_0x103703[_0x17c25f(0x1aa)]}))['filter'](_0x286e0d=>!!_0x286e0d);}[_0x3a5dfc(0x21a)](_0x54ac65){const _0x1f93a1=_0x3a5dfc;let _0x578d2b=this[_0x1f93a1(0x1b5)][_0x1f93a1(0x1f0)](_0x54ac65,_0x1b684d['UNIVER_SHEET']);return(_0x578d2b==null?void 0x0:_0x578d2b[_0x1f93a1(0x254)]()['flatMap'](_0x3a95a6=>this[_0x1f93a1(0x185)]({'hostType':this[_0x1f93a1(0x1cf)],'unitId':_0x54ac65,'subUnitId':_0x3a95a6[_0x1f93a1(0x1d9)]()})))??[];}[_0x3a5dfc(0x188)](_0x6e508e,_0x16fa39){const _0x1efccf=_0x3a5dfc;let _0x4b5fd0=_0x540069(),_0x57b538=Se(_0x16fa39),_0x51b670=_0x599624['deepClone'](_0x16fa39[_0x1efccf(0x225)]??_0x5b374b(_0x16fa39[_0x1efccf(0x1a9)]));return this[_0x1efccf(0x219)]['syncExecuteCommand'](fe['id'],{'unitId':_0x6e508e['unitId'],'subUnitId':_0x6e508e[_0x1efccf(0x1bd)],'shapeId':_0x4b5fd0,'shapeType':_0x16fa39['shapeType'],'shapeData':_0x51b670,'name':_0x16fa39['name'],'description':_0x16fa39[_0x1efccf(0x197)],'position':{'x':_0x57b538[_0x1efccf(0x1e2)],'y':_0x57b538['top']},'width':_0x57b538[_0x1efccf(0x1c3)],'height':_0x57b538[_0x1efccf(0x1dc)],'rotation':_0x57b538[_0x1efccf(0x203)],'flipX':_0x57b538[_0x1efccf(0x20a)],'flipY':_0x57b538['flipY'],'visible':_0x16fa39[_0x1efccf(0x216)]??!0x0,'selectable':_0x16fa39[_0x1efccf(0x1f7)]??!0x0})?{..._0x6e508e,'shapeId':_0x4b5fd0,'shapeType':_0x16fa39[_0x1efccf(0x1a9)],'shapeData':_0x51b670,'name':_0x16fa39[_0x1efccf(0x20e)],'description':_0x16fa39[_0x1efccf(0x197)],'visible':_0x16fa39[_0x1efccf(0x216)]??!0x0,'selectable':_0x16fa39[_0x1efccf(0x1f7)]??!0x0,'transform':_0x57b538}:null;}[_0x3a5dfc(0x1a7)](_0x2a1e8b,_0x1521bb){const _0x3e22b8=_0x3a5dfc;var _0x55d7a3;let _0x123c21=this[_0x3e22b8(0x1f3)](_0x2a1e8b);if(!_0x123c21)return!0x1;let _0x123a99={..._0x123c21[_0x3e22b8(0x1ca)],..._0x1521bb[_0x3e22b8(0x1ca)]};return this[_0x3e22b8(0x219)][_0x3e22b8(0x23b)](pe['id'],{'unitId':_0x2a1e8b[_0x3e22b8(0x252)],'subUnitId':_0x2a1e8b[_0x3e22b8(0x1bd)],'shapeId':_0x2a1e8b[_0x3e22b8(0x210)],'shapeType':_0x1521bb[_0x3e22b8(0x1a9)]??((_0x55d7a3=_0x1521bb['shapeData'])==null?void 0x0:_0x55d7a3[_0x3e22b8(0x1a9)])??_0x123c21[_0x3e22b8(0x1a9)],'shapeData':_0x1521bb[_0x3e22b8(0x225)]??_0x123c21['shapeData'],'position':{'x':_0x123a99['left'],'y':_0x123a99[_0x3e22b8(0x217)]},'width':_0x123a99[_0x3e22b8(0x1c3)],'height':_0x123a99['height'],'rotation':_0x123a99[_0x3e22b8(0x203)],'flipX':_0x123a99[_0x3e22b8(0x20a)],'flipY':_0x123a99[_0x3e22b8(0x18b)],'name':_0x3e22b8(0x20e)in _0x1521bb?_0x1521bb['name']:_0x123c21[_0x3e22b8(0x20e)],'description':_0x3e22b8(0x197)in _0x1521bb?_0x1521bb[_0x3e22b8(0x197)]:_0x123c21[_0x3e22b8(0x197)],'visible':_0x1521bb['visible']??_0x123c21[_0x3e22b8(0x216)],'selectable':_0x1521bb[_0x3e22b8(0x1f7)]??_0x123c21[_0x3e22b8(0x1f7)]});}[_0x3a5dfc(0x1fd)](_0x20b8e5,_0x30aed9,_0x4fe815){const _0x455f8c=_0x3a5dfc;let _0x11878c=this[_0x455f8c(0x1f3)](_0x20b8e5),_0x402ae5=_0x11878c==null?void 0x0:_0x11878c[_0x455f8c(0x225)]['formulaBinding'];return!_0x11878c||!_0x402ae5?null:{'id':$['id'],'params':{'unitId':_0x20b8e5['unitId'],'subUnitId':_0x20b8e5[_0x455f8c(0x1bd)],'shapeId':_0x20b8e5['shapeId'],'shapeData':{..._0x11878c['shapeData'],'formulaBinding':{..._0x402ae5,'lastValue':_0x599624[_0x455f8c(0x193)](_0x4fe815)}},'replace':!0x0,'formulaLastValueGuard':_0x30aed9}};}[_0x3a5dfc(0x1c8)](_0x591c04){const _0x3aeb45=_0x3a5dfc;return this['_commandService'][_0x3aeb45(0x23b)](_0x4b0080['id'],{'unitId':_0x591c04[_0x3aeb45(0x252)],'drawings':[{'unitId':_0x591c04[_0x3aeb45(0x252)],'subUnitId':_0x591c04[_0x3aeb45(0x1bd)],'drawingId':_0x591c04[_0x3aeb45(0x210)],'drawingType':_0x1e62bb['DRAWING_SHAPE']}]});}[_0x3a5dfc(0x1b9)](_0x50428e){const _0x326d6b=_0x3a5dfc;return this['_arrange'](_0x50428e,_0x4a7007[_0x326d6b(0x221)]);}['bringForward'](_0x2c30a6){const _0x3b25d8=_0x3a5dfc;return this[_0x3b25d8(0x21d)](_0x2c30a6,_0x4a7007[_0x3b25d8(0x186)]);}[_0x3a5dfc(0x1e9)](_0x25bb36){const _0x480792=_0x3a5dfc;return this['_arrange'](_0x25bb36,_0x4a7007[_0x480792(0x1e7)]);}[_0x3a5dfc(0x199)](_0x5bb421){const _0x601376=_0x3a5dfc;return this[_0x601376(0x21d)](_0x5bb421,_0x4a7007[_0x601376(0x1d1)]);}[_0x3a5dfc(0x1da)](_0x487895,_0x227ef2){const _0x4644ea=_0x3a5dfc;return this[_0x4644ea(0x219)]['syncExecuteCommand'](_0x367ce4['id'],{'unitId':_0x487895[_0x4644ea(0x252)],'subUnitId':_0x487895[_0x4644ea(0x1bd)],'drawingIds':[_0x487895[_0x4644ea(0x210)]],'zOrder':_0x227ef2});}[_0x3a5dfc(0x21d)](_0x386019,_0x5a8380){const _0x3735ee=_0x3a5dfc;return this[_0x3735ee(0x219)]['syncExecuteCommand'](_0x367ce4['id'],{'unitId':_0x386019[_0x3735ee(0x252)],'subUnitId':_0x386019['subUnitId'],'drawingIds':[_0x386019[_0x3735ee(0x210)]],'arrangeType':_0x5a8380});}};Ce=le([Z(0x0,_0x38f217),Z(0x1,_0x452875(Q)),Z(0x2,_0x4c8de1),Z(0x3,_0x9bcde)],Ce);const we={};function _0x2f66(){const _0x33ce7a=['getShapeModel','shapeChanged$','register','shapeData','fromJSON','_planDeletes','disposeWithMe','_serializeShapeForUnit','2354Aoikao','range','REMOVE','getName','symbol','_drawingService','sheet.command.set-shape-rotate','_planConnector','getConnectionSiteList','getBasicShapeRelation','getShapeRelation','_sheetsShapeService','onStarting','get','toPrimitive','getOwnPropertyDescriptor','MUTATION','syncExecuteCommand','_shapeModelManagerMap','position','getShapeType','entries','414EMCDyx','1.1.0','has','_config','params','values','getAdjustNames','_shapeHostAdapterRegistry','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','sin','5416789utWWoQ','preUndos','relation','getLineShapeRelation','parse','object','preRedos','worldRect','unitId','716922XGTajp','getSheets','364wKDagg','getShapeData','_addLineRerouteUpdates','sheet.command.toggle-shape-flip','_shapes','sheet.mutation.update-shape-type','UPDATE','formula','listShapes','forward','sheet.mutation.update-shape-data','createShape','add','_sheetInterceptorService','flipY','_ensureShapeModelManager','angle','interceptCommand','toJSON','filter','data','prototype','deepClone','deletes','resizeEnabled','getBasicShapeType','description','registerPluginResource','sendToBack','map','4qdNDfB','sheet.mutation.remove-shape','clear','onCommandExecute','_deserializeShapeForUnit','getShapeDisplayNames','lineShapeId','keys','_configService','getSkeleton','drawingType','getDrawingByParam','updateShape','borderEnabled','shapeType','drawingId','push','type','updates','48496PMVXBq','point','6IWpzzh','_initCommands','DRAWING_SHAPE','addShape','sheet.command.insert-shape','_instanceService','length','_drawingManagerService','_getConnectPointInfo','bringToFront','adjustValues','dispose','mode','subUnitId','getCellWithCoordByIndex','isLineShape','ensureSkeleton','_linesIds','_initSnapshot','width','lineType','onCommandExecuted','string','formulaBinding','removeShape','from','transform','getShapeDataById','fill','277594BfpHeJ','getBatchUpdateOp','hostType','command','back','delete','sheet.command.update-connector-relation','9123960iBnpNn','_toSnapshot','INSERT','_disposed','set','getSheetId','setZOrder','shapeName','height','_sheetSkeletonService','getAdjustValueByName','sheet.command.update-line-shape-resize','_applyUpdate','result','left','default','getEndConnectInfo','isHorizontal','redos','backward','setShapeType','sendBackward','_addLineFollowShapeUpdates','_resourcesManagerService','53675LHvjhz','originals','pluginName','function','getUnit','constructor','startX','getShape','rotateEnabled','_groupIds','sheet.command.set-shape-drawing-data','selectable','forEach','SHEET_SHAPE_PLUGIN','skeleton','_resolveBinding','_initCommandInterceptor','createFormulaLastValueMutation','setConfig','removeLinePoints','undos','insertShape','cxnIndex','rotation','getStartConnectInfo','getDrawingData','hasShape','getBatchAddOp','call','defineProperty','flipX','_injector','find','UNIVER_SHEET','name','COMMAND','shapeId','870UeEwGf','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pushUndoRedo','_shapeService','setShapeData','visible','top','Both','_commandService','listShapesInUnit','version','cos','_arrange','decorate','packageName','index','front'];_0x2f66=function(){return _0x33ce7a;};return _0x2f66();}let Te=class extends _0x31a5c7{constructor(_0x341d5d,_0x8c9056,_0x17fa97,_0x293d17,_0x49c3fa,_0x2e77da,_0x4f8a7c){const _0x21efdd=_0x3a5dfc;super(),this[_0x21efdd(0x219)]=_0x341d5d,this[_0x21efdd(0x18a)]=_0x8c9056,this[_0x21efdd(0x1dd)]=_0x17fa97,this[_0x21efdd(0x235)]=_0x293d17,this[_0x21efdd(0x1b7)]=_0x49c3fa,this['_shapeHostAdapterRegistry']=_0x2e77da,this[_0x21efdd(0x1b1)](),this[_0x21efdd(0x1fc)](),this['disposeWithMe'](this[_0x21efdd(0x247)][_0x21efdd(0x224)](_0x4f8a7c));}[_0x3a5dfc(0x1b1)](){const _0x5c5d6d=_0x3a5dfc;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$][_0x5c5d6d(0x1f8)](_0x141225=>this[_0x5c5d6d(0x228)](this[_0x5c5d6d(0x219)]['registerCommand'](_0x141225)));}[_0x3a5dfc(0x1fc)](){const _0x1c2b52=_0x3a5dfc;this[_0x1c2b52(0x228)](this[_0x1c2b52(0x18a)][_0x1c2b52(0x18e)]({'getMutations':_0x134cea=>{const _0x4e6a0a=_0x1c2b52;if(_0x134cea['id']===_0x4b0080['id']){let {drawings:_0x1c77a1}=_0x134cea[_0x4e6a0a(0x244)],_0x194b41=_0x1c77a1[_0x4e6a0a(0x190)](_0x4274fd=>_0x4274fd[_0x4e6a0a(0x1a5)]===_0x1e62bb[_0x4e6a0a(0x1b2)]);if(_0x194b41[_0x4e6a0a(0x1b6)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1537c9=[],_0x57ef8e=[];return _0x194b41['forEach'](_0x23944c=>{const _0x26446c=_0x4e6a0a;let {unitId:_0x28f644,subUnitId:_0x4fc6bf,drawingId:_0x16a258}=_0x23944c,_0x24fbe1=this['_sheetsShapeService'][_0x26446c(0x222)](_0x28f644,_0x4fc6bf,_0x16a258);if(!_0x24fbe1)throw TypeError(_0x26446c(0x248)+_0x24fbe1);_0x1537c9[_0x26446c(0x1ab)]({'id':de['id'],'params':{'unitId':_0x28f644,'subUnitId':_0x4fc6bf,'shapeId':_0x16a258}}),_0x57ef8e[_0x26446c(0x1ab)]({'id':ue['id'],'params':{'unitId':_0x28f644,'subUnitId':_0x4fc6bf,'shapeId':_0x16a258,'shapeType':_0x24fbe1[_0x26446c(0x23e)](),'shapeData':_0x24fbe1['getShapeData']()}});let _0x5379c5=this['_sheetsShapeService'][_0x26446c(0x233)](_0x28f644,_0x4fc6bf,_0x16a258);if(_0x5379c5)for(let _0x4f97c5 of _0x5379c5){let _0x50c4cf=_0x4f97c5['lineShapeId'],_0xc2b4e9=_0x4f97c5['isFrom'],_0x55bf26=_0xc2b4e9?{'from':void 0x0}:{'to':void 0x0},_0x426832=_0xc2b4e9?{'from':{'shapeId':_0x4f97c5['shapeId'],'cxnIndex':_0x4f97c5[_0x26446c(0x202)]}}:{'to':{'shapeId':_0x4f97c5[_0x26446c(0x210)],'cxnIndex':_0x4f97c5[_0x26446c(0x202)]}};_0x1537c9[_0x26446c(0x1ab)]({'id':$['id'],'params':{'unitId':_0x28f644,'subUnitId':_0x4fc6bf,'shapeId':_0x50c4cf,'shapeData':{'relation':_0x55bf26}}}),_0x57ef8e[_0x26446c(0x1ab)]({'id':$['id'],'params':{'unitId':_0x28f644,'subUnitId':_0x4fc6bf,'shapeId':_0x50c4cf,'shapeData':{'relation':_0x426832}}});}}),{'preRedos':_0x1537c9,'redos':[],'preUndos':[],'undos':_0x57ef8e};}if(_0x134cea['id']===_0x1fd212['id']){let {drawings:_0x1e2c8a}=_0x134cea['params'],_0x5a85e7=_0x1e2c8a[_0x4e6a0a(0x190)](_0x348b30=>_0x348b30[_0x4e6a0a(0x1a5)]===_0x1e62bb[_0x4e6a0a(0x1b2)]);if(_0x5a85e7[_0x4e6a0a(0x1b6)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x51d59c=[],_0x21be1e=[];for(let _0x3f4c88 of _0x5a85e7){let {unitId:_0x567b6e,subUnitId:_0x34987c,drawingId:_0x5c4a72,transform:_0x371743}=_0x3f4c88;if(!_0x567b6e||!_0x34987c||!_0x5c4a72||!_0x371743)continue;let _0x79f2b5=this[_0x4e6a0a(0x235)]['getShapeModel'](_0x567b6e,_0x34987c,_0x5c4a72);if(!_0x79f2b5)throw TypeError(_0x4e6a0a(0x248)+_0x79f2b5);let _0x442591=_0x79f2b5[_0x4e6a0a(0x23e)]();if(_0x307781(_0x442591)){let _0x4b09e2=this[_0x4e6a0a(0x235)][_0x4e6a0a(0x24d)](_0x567b6e,_0x34987c,_0x5c4a72);_0x4b09e2&&(_0x51d59c[_0x4e6a0a(0x1ab)]({'id':$['id'],'params':{'unitId':_0x567b6e,'subUnitId':_0x34987c,'shapeId':_0x5c4a72,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x21be1e['push']({'id':$['id'],'params':{'unitId':_0x567b6e,'subUnitId':_0x34987c,'shapeId':_0x5c4a72,'shapeData':{'relation':_0x4b09e2}}}));}else{let _0x3b1644=this[_0x4e6a0a(0x235)][_0x4e6a0a(0x233)](_0x567b6e,_0x34987c,_0x5c4a72);if(_0x3b1644&&_0x3b1644[_0x4e6a0a(0x1b6)]>0x0)for(let _0x1c7817 of _0x3b1644){let _0x3f7ffa=_0x1c7817[_0x4e6a0a(0x1a1)],_0xef8372=_0x1c7817['isFrom'],_0x2980e5=this[_0x4e6a0a(0x235)][_0x4e6a0a(0x222)](_0x567b6e,_0x34987c,_0x3f7ffa);if(!_0x2980e5)continue;let _0x12c0c1=_0x2980e5['getStartConnectInfo'](),_0x3c43f8=_0x2980e5[_0x4e6a0a(0x1e4)]();_0x12c0c1&&_0x3c43f8?this[_0x4e6a0a(0x257)](_0x567b6e,_0x34987c,_0x3f7ffa,_0x2980e5,_0x12c0c1,_0x3c43f8,_0x51d59c,_0x21be1e,_0x5c4a72,_0x371743):this[_0x4e6a0a(0x1ea)](_0x567b6e,_0x34987c,_0x3f7ffa,_0x2980e5,_0xef8372?_0x12c0c1:_0x3c43f8,_0xef8372,_0x51d59c,_0x21be1e,_0x5c4a72,_0x371743);}}}return{'preRedos':[],'redos':_0x51d59c,'preUndos':_0x21be1e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3a5dfc(0x1b8)](_0x1a242f,_0x48d7c9,_0x548eee,_0x18b493,_0x56dcee){const _0x97520c=_0x3a5dfc;if(!_0x48d7c9||!_0x548eee)return null;let {shapeId:_0x26714f,cxnIndex:_0x114feb}=_0x1a242f,_0x3f2f5c=this[_0x97520c(0x235)][_0x97520c(0x222)](_0x48d7c9,_0x548eee,_0x26714f);if(!_0x3f2f5c)return null;let _0x4ce2ca=this['_drawingManagerService'][_0x97520c(0x1a6)]({'unitId':_0x48d7c9,'subUnitId':_0x548eee,'drawingId':_0x26714f});if(!(_0x4ce2ca!=null&&_0x4ce2ca['transform']))return null;let {left:_0x166117=0x0,top:_0x5ed7bf=0x0,width:_0x460217=0x0,height:_0x2eb8b8=0x0,flipX:_0x8ea011=!0x1,flipY:_0x9833a8=!0x1,angle:_0x3aedd9}=_0x4ce2ca['transform'];_0x56dcee&&_0x18b493===_0x26714f&&(_0x166117=_0x56dcee['left']??_0x166117,_0x5ed7bf=_0x56dcee[_0x97520c(0x217)]??_0x5ed7bf,_0x460217=_0x56dcee[_0x97520c(0x1c3)]??_0x460217,_0x2eb8b8=_0x56dcee[_0x97520c(0x1dc)]??_0x2eb8b8,_0x8ea011=_0x56dcee[_0x97520c(0x20a)]??_0x8ea011,_0x9833a8=_0x56dcee[_0x97520c(0x18b)]??_0x9833a8,_0x3aedd9=_0x56dcee[_0x97520c(0x18d)]??_0x3aedd9),_0x3f2f5c['updateContext']({'width':_0x460217,'height':_0x2eb8b8});let _0x15c90e=_0x3f2f5c[_0x97520c(0x232)]()[_0x97520c(0x20c)](_0x18a1ef=>_0x18a1ef[_0x97520c(0x220)]===_0x114feb);if(!_0x15c90e)return null;let _0x1cde97=_0x8ea011?_0x460217-_0x15c90e['x']:_0x15c90e['x'],_0xedb69e=_0x9833a8?_0x2eb8b8-_0x15c90e['y']:_0x15c90e['y'];if(_0x3aedd9!==0x0&&_0x3aedd9!=null){let _0x3aae98=_0x3aedd9*Math['PI']/0xb4,_0x23206b=Math[_0x97520c(0x21c)](_0x3aae98),_0x56f6c0=Math[_0x97520c(0x249)](_0x3aae98),_0x104b28=_0x460217/0x2,_0x2dcda8=_0x2eb8b8/0x2,_0x200541=_0x1cde97-_0x104b28,_0x43c875=_0xedb69e-_0x2dcda8;_0x1cde97=_0x104b28+_0x200541*_0x23206b-_0x43c875*_0x56f6c0,_0xedb69e=_0x2dcda8+_0x200541*_0x56f6c0+_0x43c875*_0x23206b;}_0x1cde97+=_0x166117,_0xedb69e+=_0x5ed7bf;let _0x2a3ba9=_0x15c90e['ang']/0xea60;_0x8ea011&&(_0x2a3ba9=0xb4-_0x2a3ba9),_0x9833a8&&(_0x2a3ba9=-_0x2a3ba9),_0x2a3ba9+=_0x3aedd9||0x0,_0x2a3ba9=(_0x2a3ba9%0x168+0x168)%0x168;let _0x4dcdfb=_0x3ac411({'left':_0x166117,'top':_0x5ed7bf,'width':_0x460217,'height':_0x2eb8b8},_0x3aedd9||0x0);return{'point':{'x':_0x1cde97,'y':_0xedb69e},'angle':_0x2a3ba9,'bounds':_0x4dcdfb};}['_addLineRerouteUpdates'](_0x211bd3,_0x47e8a0,_0x398ca3,_0x5aef05,_0x359961,_0x53fbf5,_0x4a105e,_0xd29204,_0x4a23fc,_0x2d6c2b){const _0x4d1524=_0x3a5dfc;let _0x5cd02b=this[_0x4d1524(0x1dd)][_0x4d1524(0x1a4)](_0x211bd3,_0x47e8a0);if(!_0x5cd02b)return;let _0x1a024a=_0x5aef05[_0x4d1524(0x234)](),_0x41b322=_0x5aef05[_0x4d1524(0x246)](),_0x3fd3fe={},_0x5aca78={};_0x41b322[_0x4d1524(0x1f8)](_0x41aa90=>{const _0x4b3994=_0x4d1524;let _0x483d9d=_0x5aef05[_0x4b3994(0x1de)](_0x41aa90);_0x5aca78[_0x41aa90]=_0x483d9d??0x0;});let _0x13105b=this[_0x4d1524(0x1b8)](_0x359961,_0x211bd3,_0x47e8a0,_0x4a23fc,_0x2d6c2b),_0x19ac14=this['_getConnectPointInfo'](_0x53fbf5,_0x211bd3,_0x47e8a0,_0x4a23fc,_0x2d6c2b);if(_0x13105b&&_0x19ac14){let _0x472cec=_0x5aef05[_0x4d1524(0x23e)](),_0x2a0666=_0x58d657(_0x13105b,_0x19ac14,_0x472cec),_0xe3191b=_0x472cec;if(_0x2a0666){let _0x2a0bd9=_0x48bb10(_0x2a0666,_0x5aef05[_0x4d1524(0x23e)]()),_0x3d574b=this['_drawingManagerService'][_0x4d1524(0x205)](_0x211bd3,_0x47e8a0);if(_0x3d574b&&_0x3d574b[_0x398ca3]){let _0x566236=_0x3d574b[_0x398ca3];_0xe3191b=_0x2a0bd9[_0x4d1524(0x1c4)];for(let [_0x320a36,_0x4e7fd6]of Object[_0x4d1524(0x23f)](_0x2a0bd9[_0x4d1524(0x1ba)]))_0x3fd3fe[_0x320a36]=_0x4e7fd6;let _0x296805={..._0x566236[_0x4d1524(0x1ca)],'width':_0x2a0bd9['worldRect'][_0x4d1524(0x1c3)],'height':_0x2a0bd9[_0x4d1524(0x251)][_0x4d1524(0x1dc)],'left':_0x2a0bd9[_0x4d1524(0x251)][_0x4d1524(0x1e2)],'top':_0x2a0bd9[_0x4d1524(0x251)][_0x4d1524(0x217)],'flipX':_0x2a0bd9[_0x4d1524(0x251)][_0x4d1524(0x20a)],'flipY':_0x2a0bd9[_0x4d1524(0x251)]['flipY'],'angle':_0x2a0bd9[_0x4d1524(0x203)]},_0x2d0c22=_0x552790(_0x296805,_0x5cd02b),_0x30bc84=_0x14064f(_0x296805,_0x5cd02b),_0x262487={'unitId':_0x211bd3,'subUnitId':_0x47e8a0,'drawingType':_0x1e62bb['DRAWING_SHAPE'],'drawingId':_0x398ca3,'transform':_0x296805,'sheetTransform':_0x2d0c22,'axisAlignSheetTransform':_0x30bc84},{unitId:_0x31e8e8,subUnitId:_0x38bf00,undo:_0x591fcf,redo:_0x3f9a3f,objects:_0x1c8ac4}=this[_0x4d1524(0x1b7)][_0x4d1524(0x1ce)]([_0x262487]);_0x4a105e['push']({'id':_0x4d5632['id'],'params':{'unitId':_0x31e8e8,'subUnitId':_0x38bf00,'op':_0x3f9a3f,'objects':_0x1c8ac4,'type':_0x548175['UPDATE']}}),_0xd29204[_0x4d1524(0x1ab)]({'id':_0x4d5632['id'],'params':{'unitId':_0x31e8e8,'subUnitId':_0x38bf00,'op':_0x591fcf,'objects':_0x1c8ac4,'type':_0x548175[_0x4d1524(0x183)]}});}_0x5aef05[_0x4d1524(0x1ff)]();}_0x4a105e[_0x4d1524(0x1ab)]({'id':$['id'],'params':{'unitId':_0x211bd3,'subUnitId':_0x47e8a0,'shapeId':_0x398ca3,'shapeType':_0xe3191b,'shapeData':{'adjustValues':_0x3fd3fe,'relation':_0x1a024a}}}),_0xd29204[_0x4d1524(0x1ab)]({'id':$['id'],'params':{'unitId':_0x211bd3,'subUnitId':_0x47e8a0,'shapeId':_0x398ca3,'shapeType':_0x472cec,'shapeData':{'adjustValues':_0x5aca78,'relation':_0x1a024a}}});}}['_addLineFollowShapeUpdates'](_0x23266e,_0x20d3de,_0x35d4c7,_0x17ceda,_0xa7ead6,_0x48d989,_0x35545d,_0x406bcd,_0x2647fd,_0x590b3a){const _0x4397a4=_0x3a5dfc;var _0x4ecb75;if(!_0xa7ead6)return;let _0x1226fb=this['_sheetSkeletonService'][_0x4397a4(0x1a4)](_0x23266e,_0x20d3de);if(!_0x1226fb)return;let _0x4319bb=(_0x4ecb75=this[_0x4397a4(0x1b7)]['getDrawingByParam']({'unitId':_0x23266e,'subUnitId':_0x20d3de,'drawingId':_0x2647fd}))==null?void 0x0:_0x4ecb75[_0x4397a4(0x1ca)];if(!_0x4319bb)return;let _0xb2b3e5=_0x4319bb[_0x4397a4(0x1e2)]!==_0x590b3a['left']||_0x4319bb[_0x4397a4(0x217)]!==_0x590b3a[_0x4397a4(0x217)],_0x5cdc7b=_0x4319bb['width']!==_0x590b3a[_0x4397a4(0x1c3)]||_0x4319bb[_0x4397a4(0x1dc)]!==_0x590b3a[_0x4397a4(0x1dc)],_0x2e39cc=_0x4319bb[_0x4397a4(0x20a)]!==_0x590b3a[_0x4397a4(0x20a)]||_0x4319bb[_0x4397a4(0x18b)]!==_0x590b3a[_0x4397a4(0x18b)],_0x92d985=_0x4319bb[_0x4397a4(0x18d)]!==_0x590b3a[_0x4397a4(0x18d)];if(_0xb2b3e5&&!_0x5cdc7b&&!_0x2e39cc&&!_0x92d985){let _0x148d0e=(_0x590b3a[_0x4397a4(0x1e2)]??0x0)-(_0x4319bb[_0x4397a4(0x1e2)]??0x0),_0x290a7a=(_0x590b3a['top']??0x0)-(_0x4319bb[_0x4397a4(0x217)]??0x0),_0x14fbf5=this['_drawingManagerService']['getDrawingData'](_0x23266e,_0x20d3de);if(_0x14fbf5&&_0x14fbf5[_0x35d4c7]){var _0x3022e6,_0x252d75;let _0x7ba366=_0x14fbf5[_0x35d4c7],_0x357e66={..._0x7ba366['transform'],'left':(((_0x3022e6=_0x7ba366[_0x4397a4(0x1ca)])==null?void 0x0:_0x3022e6['left'])??0x0)+_0x148d0e,'top':(((_0x252d75=_0x7ba366[_0x4397a4(0x1ca)])==null?void 0x0:_0x252d75[_0x4397a4(0x217)])??0x0)+_0x290a7a},_0x8f1526=_0x552790(_0x357e66,_0x1226fb),_0x13555b=_0x14064f(_0x357e66,_0x1226fb),_0x18ef80={'unitId':_0x23266e,'subUnitId':_0x20d3de,'drawingType':_0x1e62bb[_0x4397a4(0x1b2)],'drawingId':_0x35d4c7,'transform':_0x357e66,'sheetTransform':_0x8f1526,'axisAlignSheetTransform':_0x13555b},{unitId:_0x33b333,subUnitId:_0x7262d2,undo:_0x47e9ae,redo:_0xb249d7,objects:_0x3740ec}=this['_drawingManagerService'][_0x4397a4(0x1ce)]([_0x18ef80]);_0x35545d[_0x4397a4(0x1ab)]({'id':_0x4d5632['id'],'params':{'unitId':_0x33b333,'subUnitId':_0x7262d2,'op':_0xb249d7,'objects':_0x3740ec,'type':_0x548175['UPDATE']}}),_0x406bcd['push']({'id':_0x4d5632['id'],'params':{'unitId':_0x33b333,'subUnitId':_0x7262d2,'op':_0x47e9ae,'objects':_0x3740ec,'type':_0x548175[_0x4397a4(0x183)]}});}}else{let _0x28b9de=_0x17ceda[_0x4397a4(0x204)](),_0x2dc26c=_0x17ceda[_0x4397a4(0x1e4)]();this[_0x4397a4(0x257)](_0x23266e,_0x20d3de,_0x35d4c7,_0x17ceda,_0x28b9de,_0x2dc26c,_0x35545d,_0x406bcd,_0x2647fd,_0x590b3a);}}};Te=le([Z(0x0,_0x38f217),Z(0x1,_0x452875(_0x300e17)),Z(0x2,_0x452875(_0x1775ef)),Z(0x3,_0x452875(Q)),Z(0x4,_0x452875(_0x584a09)),Z(0x5,_0x452875(_0x1789d5)),Z(0x6,_0x452875(Ce))],Te);let Ee=class extends _0x31a5c7{constructor(_0x371df9,_0x27b031,_0x4bb2be){const _0x5166ec=_0x3a5dfc;super(),this[_0x5166ec(0x214)]=_0x371df9,this['_shapeAdapter']=_0x27b031,this[_0x5166ec(0x228)](_0x4bb2be[_0x5166ec(0x224)](this));}[_0x3a5dfc(0x1ca)](_0x6fca3e){const _0x1c7d0e=_0x3a5dfc;let _0x55b8af={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x1c7d0e(0x227)](_0x6fca3e,_0x55b8af);for(let [_0x529814,_0x1943f5]of _0x6fca3e[_0x1c7d0e(0x1ed)])this[_0x1c7d0e(0x231)](_0x6fca3e,_0x529814,_0x1943f5,_0x55b8af);return _0x55b8af;}[_0x3a5dfc(0x227)](_0x42c738,_0x3cd299){const _0x7d9c87=_0x3a5dfc;if(_0x42c738[_0x7d9c87(0x1bc)]===_0x7d9c87(0x1d0))for(let _0x4fcf4e of _0x42c738[_0x7d9c87(0x194)]){let _0x25196c=_0x42c738[_0x7d9c87(0x1ed)][_0x7d9c87(0x237)](_0x4fcf4e),_0x50c1fd=this[_0x7d9c87(0x214)][_0x7d9c87(0x222)](_0x42c738[_0x7d9c87(0x252)],_0x42c738[_0x7d9c87(0x1bd)],_0x4fcf4e);(_0x25196c==null?void 0x0:_0x25196c[_0x7d9c87(0x1a5)])===_0x1e62bb[_0x7d9c87(0x1b2)]&&_0x50c1fd&&(_0x3cd299[_0x7d9c87(0x250)][_0x7d9c87(0x1ab)]({'id':de['id'],'params':{'unitId':_0x42c738[_0x7d9c87(0x252)],'subUnitId':_0x42c738[_0x7d9c87(0x1bd)],'shapeId':_0x4fcf4e}}),_0x3cd299[_0x7d9c87(0x200)][_0x7d9c87(0x1ab)]({'id':ue['id'],'params':{'unitId':_0x42c738[_0x7d9c87(0x252)],'subUnitId':_0x42c738[_0x7d9c87(0x1bd)],'shapeId':_0x4fcf4e,'shapeName':_0x50c1fd[_0x7d9c87(0x22d)](),'shapeType':_0x50c1fd[_0x7d9c87(0x23e)](),'shapeData':_0x599624[_0x7d9c87(0x193)](_0x50c1fd[_0x7d9c87(0x256)]())}}));}}[_0x3a5dfc(0x231)](_0x27dc18,_0x4970c8,_0x578fce,_0x1603e4){const _0xa75f7=_0x3a5dfc;if(_0x578fce[_0xa75f7(0x1a5)]!==_0x1e62bb[_0xa75f7(0x1b2)]||_0x27dc18[_0xa75f7(0x194)][_0xa75f7(0x242)](_0x4970c8))return;let _0x54c0aa=this['_shapeService'][_0xa75f7(0x222)](_0x27dc18[_0xa75f7(0x252)],_0x27dc18[_0xa75f7(0x1bd)],_0x4970c8);if(!_0x54c0aa||!_0x307781(_0x54c0aa[_0xa75f7(0x23e)]()))return;let _0x2158e2=_0x54c0aa[_0xa75f7(0x234)]();if(!(_0x27dc18[_0xa75f7(0x1ad)][_0xa75f7(0x242)](_0x4970c8)||_0x2158e2!=null&&_0x2158e2[_0xa75f7(0x1c9)]&&(_0x27dc18[_0xa75f7(0x1ad)][_0xa75f7(0x242)](_0x2158e2['from']['shapeId'])||_0x27dc18[_0xa75f7(0x194)][_0xa75f7(0x242)](_0x2158e2[_0xa75f7(0x1c9)]['shapeId']))||_0x2158e2!=null&&_0x2158e2['to']&&(_0x27dc18['updates'][_0xa75f7(0x242)](_0x2158e2['to'][_0xa75f7(0x210)])||_0x27dc18[_0xa75f7(0x194)][_0xa75f7(0x242)](_0x2158e2['to'][_0xa75f7(0x210)]))))return;let _0x116327=_0x27dc18['updates']['get'](_0x4970c8)??_0x578fce,_0x50c7c7=this[_0xa75f7(0x1d5)](_0x27dc18,_0x116327);if(!_0x50c7c7)return;let _0x3fcb0a=_0x2964fd(_0x50c7c7);if(_0x3fcb0a[_0xa75f7(0x1b6)]<0x2)return;let _0x276f6c=_0x599624[_0xa75f7(0x193)](_0x2158e2??{}),_0x38f4a4=_0x276f6c['from']&&this[_0xa75f7(0x1fb)](_0x27dc18,_0x276f6c[_0xa75f7(0x1c9)]['shapeId'],_0x276f6c[_0xa75f7(0x1c9)][_0xa75f7(0x202)]),_0x45bc06=_0x276f6c['to']&&this[_0xa75f7(0x1fb)](_0x27dc18,_0x276f6c['to'][_0xa75f7(0x210)],_0x276f6c['to'][_0xa75f7(0x202)]);_0x276f6c[_0xa75f7(0x1c9)]&&!_0x38f4a4&&delete _0x276f6c[_0xa75f7(0x1c9)],_0x276f6c['to']&&!_0x45bc06&&delete _0x276f6c['to'];let _0x383a48=_0x38f4a4||_0x3ff112((_0x45bc06==null?void 0x0:_0x45bc06[_0xa75f7(0x1af)])??_0x3fcb0a[_0x3fcb0a[_0xa75f7(0x1b6)]-0x1],_0x3fcb0a[0x0]),_0x458a96=_0x45bc06||_0x3ff112((_0x38f4a4==null?void 0x0:_0x38f4a4[_0xa75f7(0x1af)])??_0x3fcb0a[0x0],_0x3fcb0a[_0x3fcb0a[_0xa75f7(0x1b6)]-0x1]),_0xa44c5e=_0x485f6c(_0x50c7c7,_0x383a48,_0x458a96,_0x276f6c);_0xa44c5e!=null&&_0xa44c5e[_0xa75f7(0x1ca)]&&_0xa44c5e[_0xa75f7(0x1a9)]&&_0xa44c5e[_0xa75f7(0x225)]&&(this[_0xa75f7(0x1e0)](_0x27dc18,_0x116327,_0xa44c5e),_0x27dc18[_0xa75f7(0x1bc)]==='refresh'?(_0x54c0aa[_0xa75f7(0x1e8)](_0xa44c5e[_0xa75f7(0x1a9)]),_0x54c0aa[_0xa75f7(0x215)](_0x599624['deepClone'](_0xa44c5e[_0xa75f7(0x225)]),!0x1)):(_0x1603e4['redos'][_0xa75f7(0x1ab)]({'id':$['id'],'params':{'unitId':_0x27dc18[_0xa75f7(0x252)],'subUnitId':_0x27dc18[_0xa75f7(0x1bd)],'shapeId':_0x4970c8,'shapeType':_0xa44c5e['shapeType'],'shapeData':_0x599624['deepClone'](_0xa44c5e[_0xa75f7(0x225)]),'replace':!0x0}}),_0x1603e4[_0xa75f7(0x200)][_0xa75f7(0x1ab)]({'id':$['id'],'params':{'unitId':_0x27dc18[_0xa75f7(0x252)],'subUnitId':_0x27dc18['subUnitId'],'shapeId':_0x4970c8,'shapeType':_0x54c0aa[_0xa75f7(0x23e)](),'shapeData':_0x599624['deepClone'](_0x54c0aa[_0xa75f7(0x256)]()),'replace':!0x0}})));}[_0x3a5dfc(0x1fb)](_0x12f82a,_0x2af0f0,_0x475cf8){const _0x1d1203=_0x3a5dfc;if(_0x12f82a[_0x1d1203(0x194)]['has'](_0x2af0f0))return null;let _0xfa8038=_0x12f82a['updates']['get'](_0x2af0f0)??_0x12f82a['originals'][_0x1d1203(0x237)](_0x2af0f0);if(!_0xfa8038)return null;let _0x3a4bf3=this[_0x1d1203(0x1d5)](_0x12f82a,_0xfa8038);return _0x3a4bf3?_0x31b022(_0x3a4bf3,_0x475cf8):null;}['_toSnapshot'](_0x520d8e,_0x16a81d){const _0x4729e8=_0x3a5dfc;let _0x1372aa={'hostType':_0x1b684d[_0x4729e8(0x20d)],'unitId':_0x520d8e[_0x4729e8(0x252)],'subUnitId':_0x520d8e[_0x4729e8(0x1bd)],'shapeId':_0x16a81d[_0x4729e8(0x1aa)]},_0x20b337=this['_shapeAdapter']['getShape'](_0x1372aa);return!_0x20b337||!_0x16a81d['transform']?null:{..._0x20b337,'transform':{'left':_0x16a81d[_0x4729e8(0x1ca)][_0x4729e8(0x1e2)]??0x0,'top':_0x16a81d[_0x4729e8(0x1ca)]['top']??0x0,'width':_0x16a81d['transform']['width']??0x0,'height':_0x16a81d['transform'][_0x4729e8(0x1dc)]??0x0,'rotation':_0x16a81d[_0x4729e8(0x1ca)][_0x4729e8(0x18d)]??0x0,'flipX':_0x16a81d[_0x4729e8(0x1ca)][_0x4729e8(0x20a)]??!0x1,'flipY':_0x16a81d[_0x4729e8(0x1ca)][_0x4729e8(0x18b)]??!0x1}};}[_0x3a5dfc(0x1e0)](_0x51348c,_0x367e41,_0x23e8d4){const _0x16c5bf=_0x3a5dfc;let _0x48ab59=_0x367e41,_0x4641fc={..._0x367e41[_0x16c5bf(0x1ca)],'left':_0x23e8d4['transform'][_0x16c5bf(0x1e2)],'top':_0x23e8d4[_0x16c5bf(0x1ca)][_0x16c5bf(0x217)],'width':_0x23e8d4['transform'][_0x16c5bf(0x1c3)],'height':_0x23e8d4[_0x16c5bf(0x1ca)]['height'],'angle':_0x23e8d4['transform']['rotation'],'flipX':_0x23e8d4[_0x16c5bf(0x1ca)]['flipX'],'flipY':_0x23e8d4[_0x16c5bf(0x1ca)][_0x16c5bf(0x18b)]},_0x4a22e2={..._0x48ab59,'transform':_0x4641fc,'sheetTransform':_0x552790(_0x4641fc,_0x51348c[_0x16c5bf(0x1fa)]),'axisAlignSheetTransform':_0x14064f(_0x4641fc,_0x51348c[_0x16c5bf(0x1fa)]),'data':{..._0x48ab59[_0x16c5bf(0x191)],'shapeType':_0x23e8d4[_0x16c5bf(0x1a9)],'shapeData':_0x599624[_0x16c5bf(0x193)](_0x23e8d4[_0x16c5bf(0x225)])}};_0x51348c[_0x16c5bf(0x1ad)]['set'](_0x367e41[_0x16c5bf(0x1aa)],_0x4a22e2);}};Ee=le([Z(0x0,_0x452875(Q)),Z(0x1,_0x452875(Ce)),Z(0x2,_0x452875(_0x524167))],Ee);let De=class extends _0x243e24{constructor(_0x4fd48e=we,_0x2abb7d,_0x269e1d){const _0x218270=_0x3a5dfc;super(),this[_0x218270(0x243)]=_0x4fd48e,this[_0x218270(0x20b)]=_0x2abb7d,this[_0x218270(0x1a3)]=_0x269e1d;let {..._0x1d9150}=_0x514399({},we,this[_0x218270(0x243)]);this[_0x218270(0x1a3)][_0x218270(0x1fe)]('sheets-shape.config',_0x1d9150);}[_0x3a5dfc(0x236)](){const _0x5a16f2=_0x3a5dfc;let _0x5832b1=this[_0x5a16f2(0x20b)];[[ce],[Q],[Ce],[Ee],[Te]][_0x5a16f2(0x1f8)](_0x3e8a59=>_0x5832b1['add'](_0x3e8a59)),_0x5c8d1f(_0x5832b1,[[Q],[Ee],[Te]]);}};X(De,_0x3a5dfc(0x1ac),_0x1b684d[_0x3a5dfc(0x20d)]),X(De,_0x3a5dfc(0x1ee),_0x3a5dfc(0x1f9)),X(De,_0x3a5dfc(0x21f),be),X(De,_0x3a5dfc(0x21b),xe),De=le([_0x293fcd(_0x3b3819,_0x1e5f20,_0x548796,_0x43113b,_0x150abe),Z(0x1,_0x452875(_0xa34e73)),Z(0x2,_0x45b1b2)],De);export{ie as DEFAULT_SHAPE_HEIGHT,re as DEFAULT_SHAPE_WIDTH,fe as InsertShapeCommand,ue as InsertSheetsShapeMutation,de as RemoveSheetsShapeMutation,pe as SetShapeDrawingDataCommand,he as SetSheetsShapeRotateCommand,ge as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,De as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x354800=_0x1e35;(function(_0x5d22e3,_0x920e6f){const _0x2aa0b9=_0x1e35,_0x59122f=_0x5d22e3();while(!![]){try{const _0x2e69b4=parseInt(_0x2aa0b9(0x1bf))/0x1+parseInt(_0x2aa0b9(0x1c6))/0x2+-parseInt(_0x2aa0b9(0x1d2))/0x3+-parseInt(_0x2aa0b9(0x1de))/0x4*(-parseInt(_0x2aa0b9(0x1be))/0x5)+parseInt(_0x2aa0b9(0x1d3))/0x6+-parseInt(_0x2aa0b9(0x1c5))/0x7+-parseInt(_0x2aa0b9(0x1d4))/0x8;if(_0x2e69b4===_0x920e6f)break;else _0x59122f['push'](_0x59122f['shift']());}catch(_0x1c3025){_0x59122f['push'](_0x59122f['shift']());}}}(_0x29d4,0xee1b5));import{IShapeHostAdapterRegistry as _0x21d26d,isConnectorShape as _0x317c6a}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x177f6f,FShape as _0x353741}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x596cf5,UniverInstanceType as _0x97b1c4}from'@univerjs/core';import{FWorksheet as _0x40c19c}from'@univerjs/sheets/facade';function _0x1e35(_0x46ce9f,_0x46d338){_0x46ce9f=_0x46ce9f-0x1b5;const _0x29d4c7=_0x29d4();let _0x1e3589=_0x29d4c7[_0x46ce9f];return _0x1e3589;}import{ISheetDrawingService as _0x532253,SetSheetDrawingPlacementCommand as _0x11e214,SheetDrawingAnchorType as _0x2306de,getSheetDrawingPlacement as _0xbfe106}from'@univerjs/sheets-drawing';function d(_0x514f67,_0x26e863){return function(_0x3cff44,_0x281b96){_0x26e863(_0x3cff44,_0x281b96,_0x514f67);};}function _0x29d4(){const _0x43ce94=['[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','_shapeRef','shapeId','defineProperty','getPlacement','\x22\x20has\x20no\x20transform\x20extent.','UNIVER_SHEET','decorate','653804QVXLsl','shapeType','setPlacement','_injector','warn','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','getWorkbook','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','getDrawingByParam','extend','insertShape','unitId','_getShapeScope','transform','10aXARlI','1122175gAhewy','createShape','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','getOwnPropertyDescriptor','length','subUnitId','6691027QWgVKi','3825868XxCZVg','getShape','_commandService','function','_getShapeAdapter','getShapes','_createShapeHandle','createInstance','_sheetDrawingService','\x22\x20was\x20not\x20found.','getSheetId','getUnitId','2139516hDcFDE','11507004wnLPSR','21084216UGqVDi','syncExecuteCommand'];_0x29d4=function(){return _0x43ce94;};return _0x29d4();}function f(_0x169822,_0x3ce677,_0x280aa9,_0x233a63){const _0x567d43=_0x1e35;var _0x264797=arguments[_0x567d43(0x1c3)],_0x408be6=_0x264797<0x3?_0x3ce677:_0x233a63===null?_0x233a63=Object[_0x567d43(0x1c2)](_0x3ce677,_0x280aa9):_0x233a63,_0x4e80f6;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x567d43(0x1c9))_0x408be6=Reflect[_0x567d43(0x1dd)](_0x169822,_0x3ce677,_0x280aa9,_0x233a63);else{for(var _0x19f643=_0x169822['length']-0x1;_0x19f643>=0x0;_0x19f643--)(_0x4e80f6=_0x169822[_0x19f643])&&(_0x408be6=(_0x264797<0x3?_0x4e80f6(_0x408be6):_0x264797>0x3?_0x4e80f6(_0x3ce677,_0x280aa9,_0x408be6):_0x4e80f6(_0x3ce677,_0x280aa9))||_0x408be6);}return _0x264797>0x3&&_0x408be6&&Object[_0x567d43(0x1d9)](_0x3ce677,_0x280aa9,_0x408be6),_0x408be6;}let p=class extends _0x353741{constructor(_0x6bd2c6,_0x3111cc,_0x52a86e,_0x10dc35,_0x33be24){const _0x278ce7=_0x1e35;super(_0x6bd2c6,_0x3111cc,_0x52a86e,_0x10dc35),this[_0x278ce7(0x1ce)]=_0x33be24;}[_0x354800(0x1da)](){const _0x35de6b=_0x354800;let _0x59d222=this[_0x35de6b(0x1ce)][_0x35de6b(0x1b8)]({'unitId':this[_0x35de6b(0x1d7)][_0x35de6b(0x1bb)],'subUnitId':this[_0x35de6b(0x1d7)][_0x35de6b(0x1c4)],'drawingId':this[_0x35de6b(0x1d7)][_0x35de6b(0x1d8)]});return _0x59d222?_0xbfe106(_0x59d222):null;}[_0x354800(0x1e0)](_0x162281){const _0x1bbaa6=_0x354800;return this['_commandService'][_0x1bbaa6(0x1d5)](_0x11e214['id'],{'unitId':this[_0x1bbaa6(0x1d7)][_0x1bbaa6(0x1bb)],'subUnitId':this['_shapeRef'][_0x1bbaa6(0x1c4)],'drawings':[{'drawingId':this['_shapeRef'][_0x1bbaa6(0x1d8)],'placement':_0x162281}]});}['setPosition'](_0x44e6e7,_0x2206c4,_0x17fcef,_0x40d05a){const _0x30d3ac=_0x354800;var _0x547429,_0x3f7a72;let _0x1e6a07=this[_0x30d3ac(0x1ce)][_0x30d3ac(0x1b8)]({'unitId':this[_0x30d3ac(0x1d7)][_0x30d3ac(0x1bb)],'subUnitId':this[_0x30d3ac(0x1d7)][_0x30d3ac(0x1c4)],'drawingId':this[_0x30d3ac(0x1d7)]['shapeId']});if(!_0x1e6a07)return console['warn']('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x30d3ac(0x1d7)]['shapeId']+_0x30d3ac(0x1cf)),this;let _0x3143ed=(_0x547429=_0x1e6a07[_0x30d3ac(0x1bd)])==null?void 0x0:_0x547429['width'],_0x4c9b46=(_0x3f7a72=_0x1e6a07[_0x30d3ac(0x1bd)])==null?void 0x0:_0x3f7a72['height'];return _0x3143ed==null||_0x4c9b46==null?(console[_0x30d3ac(0x1e2)](_0x30d3ac(0x1b5)+this[_0x30d3ac(0x1d7)][_0x30d3ac(0x1d8)]+_0x30d3ac(0x1db)),this):(this[_0x30d3ac(0x1c8)]['syncExecuteCommand'](_0x11e214['id'],{'unitId':this['_shapeRef']['unitId'],'subUnitId':this[_0x30d3ac(0x1d7)][_0x30d3ac(0x1c4)],'drawings':[{'drawingId':this[_0x30d3ac(0x1d7)]['shapeId'],'placement':{'kind':_0x2306de['Position'],'from':{'row':_0x44e6e7,'column':_0x2206c4,'rowOffset':_0x17fcef,'columnOffset':_0x40d05a},'width':_0x3143ed,'height':_0x4c9b46}}]}),this);}};p=f([d(0x2,_0x21d26d),d(0x3,_0x596cf5),d(0x4,_0x532253)],p);var m=class extends _0x40c19c{[_0x354800(0x1ba)](_0x2ed8b5){const _0x268ede=_0x354800;let _0x13899e=this[_0x268ede(0x1ca)]();if(!_0x13899e)return null;try{let _0x6dcf6d=_0x13899e[_0x268ede(0x1c0)](this[_0x268ede(0x1bc)](),_0x2ed8b5);return _0x6dcf6d?this[_0x268ede(0x1cc)](_0x6dcf6d):(console['warn'](_0x268ede(0x1b7)),null);}catch(_0x2462f7){return console['warn'](_0x268ede(0x1b7),_0x2462f7),null;}}['getShape'](_0x3b9932){const _0x311ca1=_0x354800;let _0x5c2375=this[_0x311ca1(0x1ca)]();if(!_0x5c2375)return null;try{let _0x150b6e={...this['_getShapeScope'](),'shapeId':_0x3b9932},_0x303048=_0x5c2375[_0x311ca1(0x1c7)](_0x150b6e);return _0x303048?this[_0x311ca1(0x1cc)](_0x303048):(console[_0x311ca1(0x1e2)](_0x311ca1(0x1b5)+_0x3b9932+_0x311ca1(0x1cf)),null);}catch(_0x12e050){return console['warn'](_0x311ca1(0x1c1)+_0x3b9932+'\x22.',_0x12e050),null;}}[_0x354800(0x1cb)](){const _0x13b0c6=_0x354800;let _0x4bc403=this[_0x13b0c6(0x1ca)]();if(!_0x4bc403)return[];try{return _0x4bc403['listShapes'](this[_0x13b0c6(0x1bc)]())['map'](_0x1e8c14=>this[_0x13b0c6(0x1cc)](_0x1e8c14));}catch(_0xca78e7){return console[_0x13b0c6(0x1e2)](_0x13b0c6(0x1d6),_0xca78e7),[];}}[_0x354800(0x1bc)](){const _0x150413=_0x354800;return{'hostType':_0x97b1c4['UNIVER_SHEET'],'unitId':this[_0x150413(0x1b6)]()[_0x150413(0x1d1)](),'subUnitId':this[_0x150413(0x1d0)]()};}[_0x354800(0x1ca)](){const _0x101d92=_0x354800;return this[_0x101d92(0x1e1)]['get'](_0x21d26d)['get'](_0x97b1c4['UNIVER_SHEET']);}[_0x354800(0x1cc)](_0x3159b4){const _0x452815=_0x354800;let {unitId:_0x13fa0e,subUnitId:_0xd036a3,shapeId:_0x5853e2}=_0x3159b4,_0x3bbd2b={'unitId':_0x13fa0e,'subUnitId':_0xd036a3,'shapeId':_0x5853e2,'hostType':_0x97b1c4[_0x452815(0x1dc)]};return _0x317c6a(_0x3159b4[_0x452815(0x1df)])?this[_0x452815(0x1e1)][_0x452815(0x1cd)](_0x177f6f,_0x3bbd2b,this[_0x452815(0x1e1)]):this[_0x452815(0x1e1)][_0x452815(0x1cd)](p,_0x3bbd2b,this[_0x452815(0x1e1)]);}};_0x40c19c[_0x354800(0x1b9)](m);export{p as FSheetShape};
1
+ const _0x5269ce=_0x527b;(function(_0x1f62c9,_0x3a905b){const _0x5aee91=_0x527b,_0x2d726b=_0x1f62c9();while(!![]){try{const _0x31401e=parseInt(_0x5aee91(0x115))/0x1+-parseInt(_0x5aee91(0x134))/0x2+parseInt(_0x5aee91(0x116))/0x3*(parseInt(_0x5aee91(0x13e))/0x4)+-parseInt(_0x5aee91(0x112))/0x5+-parseInt(_0x5aee91(0x114))/0x6*(-parseInt(_0x5aee91(0x13b))/0x7)+-parseInt(_0x5aee91(0x119))/0x8*(-parseInt(_0x5aee91(0x111))/0x9)+-parseInt(_0x5aee91(0x10f))/0xa;if(_0x31401e===_0x3a905b)break;else _0x2d726b['push'](_0x2d726b['shift']());}catch(_0x1f4720){_0x2d726b['push'](_0x2d726b['shift']());}}}(_0x2948,0x8f63b));import{IShapeHostAdapterRegistry as _0x89452a,isConnectorShape as _0x5bf336}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x46ec39,FShape as _0x229ab0}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x3f1094,UniverInstanceType as _0x1557e3}from'@univerjs/core';import{FWorksheet as _0x13716e}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x47a811,SetSheetDrawingPlacementCommand as _0x3784c2,SheetDrawingAnchorType as _0x3370b5,getSheetDrawingPlacement as _0x2b5fda}from'@univerjs/sheets-drawing';function d(_0x5d6bc5,_0x44fa44){return function(_0x10e3e8,_0x2c70a0){_0x44fa44(_0x10e3e8,_0x2c70a0,_0x5d6bc5);};}function _0x2948(){const _0x274987=['get','extend','7760HpAraw','UNIVER_SHEET','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','insertShape','_shapeRef','subUnitId','getOwnPropertyDescriptor','_createShapeHandle','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','width','getUnitId','height','setPlacement','getDrawingByParam','setPosition','_sheetDrawingService','shapeId','unitId','getWorkbook','_getShapeScope','Position','\x22\x20was\x20not\x20found.','syncExecuteCommand','\x22\x20has\x20no\x20transform\x20extent.','_commandService','decorate','length','934694NVlUZi','_injector','_getShapeAdapter','listShapes','getPlacement','map','warn','119QlycpP','function','transform','540fZENYM','defineProperty','getShape','7357950ypytTy','createInstance','5130PYGpEq','3422500fFaNpX','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','242490WUufXK','158925niNBaV','23913BklLpS'];_0x2948=function(){return _0x274987;};return _0x2948();}function f(_0x41fb4d,_0x42e2d,_0x4405ae,_0x179642){const _0x4569cb=_0x527b;var _0x2a29dd=arguments[_0x4569cb(0x133)],_0x27eb03=_0x2a29dd<0x3?_0x42e2d:_0x179642===null?_0x179642=Object[_0x4569cb(0x11f)](_0x42e2d,_0x4405ae):_0x179642,_0x4e3af6;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x4569cb(0x13c))_0x27eb03=Reflect[_0x4569cb(0x132)](_0x41fb4d,_0x42e2d,_0x4405ae,_0x179642);else{for(var _0x1ba75a=_0x41fb4d[_0x4569cb(0x133)]-0x1;_0x1ba75a>=0x0;_0x1ba75a--)(_0x4e3af6=_0x41fb4d[_0x1ba75a])&&(_0x27eb03=(_0x2a29dd<0x3?_0x4e3af6(_0x27eb03):_0x2a29dd>0x3?_0x4e3af6(_0x42e2d,_0x4405ae,_0x27eb03):_0x4e3af6(_0x42e2d,_0x4405ae))||_0x27eb03);}return _0x2a29dd>0x3&&_0x27eb03&&Object[_0x4569cb(0x13f)](_0x42e2d,_0x4405ae,_0x27eb03),_0x27eb03;}let p=class extends _0x229ab0{constructor(_0x5a16c5,_0x595658,_0x403212,_0xf05693,_0x5abe82){const _0xbadfbe=_0x527b;super(_0x5a16c5,_0x595658,_0x403212,_0xf05693),this[_0xbadfbe(0x128)]=_0x5abe82;}[_0x5269ce(0x138)](){const _0x1e40e1=_0x5269ce;let _0x5c25ce=this[_0x1e40e1(0x128)][_0x1e40e1(0x126)]({'unitId':this[_0x1e40e1(0x11d)][_0x1e40e1(0x12a)],'subUnitId':this['_shapeRef'][_0x1e40e1(0x11e)],'drawingId':this['_shapeRef'][_0x1e40e1(0x129)]});return _0x5c25ce?_0x2b5fda(_0x5c25ce):null;}[_0x5269ce(0x125)](_0x3a33e2){const _0x2b61e3=_0x5269ce;return this[_0x2b61e3(0x131)][_0x2b61e3(0x12f)](_0x3784c2['id'],{'unitId':this[_0x2b61e3(0x11d)][_0x2b61e3(0x12a)],'subUnitId':this[_0x2b61e3(0x11d)][_0x2b61e3(0x11e)],'drawings':[{'drawingId':this[_0x2b61e3(0x11d)][_0x2b61e3(0x129)],'placement':_0x3a33e2}]});}[_0x5269ce(0x127)](_0x154678,_0x5d38f9,_0x1aa772,_0x6708f){const _0x52c522=_0x5269ce;var _0x27fd87,_0x1501b5;let _0x51face=this['_sheetDrawingService'][_0x52c522(0x126)]({'unitId':this['_shapeRef'][_0x52c522(0x12a)],'subUnitId':this[_0x52c522(0x11d)][_0x52c522(0x11e)],'drawingId':this[_0x52c522(0x11d)]['shapeId']});if(!_0x51face)return console['warn'](_0x52c522(0x113)+this[_0x52c522(0x11d)]['shapeId']+_0x52c522(0x12e)),this;let _0x5a1579=(_0x27fd87=_0x51face[_0x52c522(0x13d)])==null?void 0x0:_0x27fd87[_0x52c522(0x122)],_0x59eb9c=(_0x1501b5=_0x51face[_0x52c522(0x13d)])==null?void 0x0:_0x1501b5[_0x52c522(0x124)];return _0x5a1579==null||_0x59eb9c==null?(console['warn'](_0x52c522(0x113)+this['_shapeRef']['shapeId']+_0x52c522(0x130)),this):(this[_0x52c522(0x131)][_0x52c522(0x12f)](_0x3784c2['id'],{'unitId':this['_shapeRef'][_0x52c522(0x12a)],'subUnitId':this['_shapeRef'][_0x52c522(0x11e)],'drawings':[{'drawingId':this[_0x52c522(0x11d)]['shapeId'],'placement':{'kind':_0x3370b5[_0x52c522(0x12d)],'from':{'row':_0x154678,'column':_0x5d38f9,'rowOffset':_0x1aa772,'columnOffset':_0x6708f},'width':_0x5a1579,'height':_0x59eb9c}}]}),this);}};function _0x527b(_0xbc236a,_0x164a8c){_0xbc236a=_0xbc236a-0x10f;const _0x29483a=_0x2948();let _0x527b60=_0x29483a[_0xbc236a];return _0x527b60;}p=f([d(0x2,_0x89452a),d(0x3,_0x3f1094),d(0x4,_0x47a811)],p);var m=class extends _0x13716e{[_0x5269ce(0x11c)](_0x4adc8a){const _0x5207be=_0x5269ce;let _0x5c6a5b=this[_0x5207be(0x136)]();if(!_0x5c6a5b)return null;try{let _0x3c19bd=_0x5c6a5b['createShape'](this[_0x5207be(0x12c)](),_0x4adc8a);return _0x3c19bd?this[_0x5207be(0x120)](_0x3c19bd):(console[_0x5207be(0x13a)](_0x5207be(0x11b)),null);}catch(_0x7d27d5){return console[_0x5207be(0x13a)](_0x5207be(0x11b),_0x7d27d5),null;}}[_0x5269ce(0x140)](_0x254774){const _0x935c07=_0x5269ce;let _0x389d7f=this['_getShapeAdapter']();if(!_0x389d7f)return null;try{let _0x4e38d7={...this[_0x935c07(0x12c)](),'shapeId':_0x254774},_0x3a0ca6=_0x389d7f[_0x935c07(0x140)](_0x4e38d7);return _0x3a0ca6?this['_createShapeHandle'](_0x3a0ca6):(console[_0x935c07(0x13a)](_0x935c07(0x113)+_0x254774+_0x935c07(0x12e)),null);}catch(_0x255e2d){return console[_0x935c07(0x13a)](_0x935c07(0x121)+_0x254774+'\x22.',_0x255e2d),null;}}['getShapes'](){const _0x48a8f1=_0x5269ce;let _0x2c511b=this[_0x48a8f1(0x136)]();if(!_0x2c511b)return[];try{return _0x2c511b[_0x48a8f1(0x137)](this['_getShapeScope']())[_0x48a8f1(0x139)](_0x836a50=>this[_0x48a8f1(0x120)](_0x836a50));}catch(_0x1d6918){return console['warn']('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.',_0x1d6918),[];}}['_getShapeScope'](){const _0x227c54=_0x5269ce;return{'hostType':_0x1557e3['UNIVER_SHEET'],'unitId':this[_0x227c54(0x12b)]()[_0x227c54(0x123)](),'subUnitId':this['getSheetId']()};}[_0x5269ce(0x136)](){const _0x2b7092=_0x5269ce;return this[_0x2b7092(0x135)][_0x2b7092(0x117)](_0x89452a)[_0x2b7092(0x117)](_0x1557e3[_0x2b7092(0x11a)]);}[_0x5269ce(0x120)](_0x36df1a){const _0x585170=_0x5269ce;let {unitId:_0x4c6434,subUnitId:_0x1b76ee,shapeId:_0x3084f2}=_0x36df1a,_0x4a9679={'unitId':_0x4c6434,'subUnitId':_0x1b76ee,'shapeId':_0x3084f2,'hostType':_0x1557e3[_0x585170(0x11a)]};return _0x5bf336(_0x36df1a['shapeType'])?this['_injector']['createInstance'](_0x46ec39,_0x4a9679,this[_0x585170(0x135)]):this[_0x585170(0x135)][_0x585170(0x110)](p,_0x4a9679,this['_injector']);}};_0x13716e[_0x5269ce(0x118)](m);export{p as FSheetShape};