@univerjs-pro/sheets-shape 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5eec01=_0x7b09;(function(_0x1bd1f9,_0x219b44){const _0x4108c7=_0x7b09,_0x497177=_0x1bd1f9();while(!![]){try{const _0x40e9df=parseInt(_0x4108c7(0x220))/0x1+parseInt(_0x4108c7(0x1ef))/0x2*(parseInt(_0x4108c7(0x1c8))/0x3)+parseInt(_0x4108c7(0x1e4))/0x4+-parseInt(_0x4108c7(0x1a4))/0x5+parseInt(_0x4108c7(0x20d))/0x6+-parseInt(_0x4108c7(0x192))/0x7*(-parseInt(_0x4108c7(0x235))/0x8)+parseInt(_0x4108c7(0x18f))/0x9*(-parseInt(_0x4108c7(0x19e))/0xa);if(_0x40e9df===_0x219b44)break;else _0x497177['push'](_0x497177['shift']());}catch(_0x61a52){_0x497177['push'](_0x497177['shift']());}}}(_0x1cdb,0x69906));import{IShapeHostAdapterRegistry as _0x5aadae,ShapeModel as _0x520ec8,UniverShapePlugin as _0x4b58fe,buildConnectorEndpointUpdate as _0x11f447,canApplyShapeFormulaLastValue as _0x4bd63b,computeConnectorRouteLayout as _0x52b0f8,createFreeConnectorPointInfo as _0x401995,createUniqueShapeName as _0x50a1d6,getBasicShapeRotateBound as _0x22c422,isConnectorShape as _0x52f9c5,resolveConnectorRoutePoints as _0x3a0b56,resolveShapeConnectionPoint as _0x5699e2,routeConnectorLineShape as _0x3ded68}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x1f3847,CommandType as _0x5c2f32,DependentOn as _0x11c376,Disposable as _0x2254c8,DrawingTypeEnum as _0x5a5243,ICommandService as _0x53dc14,IConfigService as _0x1b93e1,IResourceManagerService as _0x521baf,IUndoRedoService as _0x427286,IUniverInstanceService as _0x4a585b,Inject as _0x1bc4cb,Injector as _0x56641b,Plugin as _0x2c78ba,Tools as _0x580376,UniverInstanceType as _0x52f505,generateRandomId as _0x149962,merge as _0x4834c5,sequenceExecute as _0x128903,touchDependencies as _0x31fee5}from'@univerjs/core';import{SheetInterceptorService as _0x3df5ad,SheetSkeletonService as _0x33e612,UniverSheetsPlugin as _0x151d66,getSheetCommandTarget as _0x4c9adc}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x1fc357,DrawingApplyType as _0xde6f05,ISheetDrawingService as _0x69ae5e,InsertSheetDrawingCommand as _0x372541,RemoveSheetDrawingCommand as _0x1799bf,SetDrawingApplyMutation as _0x4800f7,SetDrawingArrangeCommand as _0x17f8dc,SetSheetDrawingCommand as _0x52e268,SheetDrawingAnchorType as _0x2d0366,SheetDrawingTransformPlanService as _0x11fc84,UniverSheetsDrawingPlugin as _0x13c793,transformToAxisAlignPosition as _0x3d75ac,transformToDrawingPosition as _0x3bb572}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x5ea6ea}from'@univerjs-pro/license';import{IDrawingManagerService as _0x452e0d,UniverDrawingPlugin as _0x1981ae}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x486465){'@babel/helpers - typeof';const _0x5712b3=_0x7b09;return ae=typeof Symbol==_0x5712b3(0x197)&&typeof Symbol['iterator']==_0x5712b3(0x1b5)?function(_0x3a4e46){return typeof _0x3a4e46;}:function(_0x1299b9){const _0x34e772=_0x5712b3;return _0x1299b9&&typeof Symbol==_0x34e772(0x197)&&_0x1299b9[_0x34e772(0x245)]===Symbol&&_0x1299b9!==Symbol[_0x34e772(0x19c)]?'symbol':typeof _0x1299b9;},ae(_0x486465);}function _0x1cdb(){const _0x55bd06=['472485TAjdqs','index','get','getShapeData','getShapeDisplayNames','getBasicShapeRelation','_injector','clear','createFormulaLastValueMutation','listShapes','push','string','object','deletes','filter','visible','entries','symbol','_toSnapshot','DRAWING_SHAPE','rotation','front','setShapeData','flipX','delete','deepClone','registerCommand','_instanceService','onStarting','syncExecuteCommand','type','Both','sheet.mutation.update-shape-data','getShapeTypeById','createShape','from','1743756sZfBGW','COMMAND','ensureSkeleton','refresh','_planConnector','preUndos','getCellWithCoordByIndex','range','REMOVE','point','subUnitId','forEach','_shapes','updateContext','_linesIds','onCommandExecuted','default','position','has','left','set','adjustValues','_planDeletes','_drawingService','_shapeModelManagerMap','rotateEnabled','_sheetsShapeService','getDrawingByParam','2636284QLgpwy','data','_drawingManagerService','_shapeAdapter','removeShape','isFrom','fromJSON','shapeId','removeLinePoints','@univerjs-pro/sheets-shape','pluginName','2SCuAjw','skeleton','preRedos','hidden','_getConnectPointInfo','INSERT','sheet.command.insert-shape','shapeType','flipY','MUTATION','UPDATE','_configService','_config','registerPluginResource','getBatchUpdateOp','keys','_sheetInterceptorService','toJSON','worldRect','resizeEnabled','packageName','top','name','cos','height','shapeChanged$','setShapeType','hostType','_sheetSkeletonService','result','2370702lbOaZW','mode','drawingType','_ensureShapeModelManager','_resourcesManagerService','formulaBinding','sheet.mutation.update-shape-type','getShapeType','sheet.mutation.insert-shape','getShapeModel','_shapeService','add','sendBackward','length','version','getShapeDataById','sheets-shape.config','updates','hasShape','248660OyMszk','dispose','selectable','shapeData','isLineShape','sin','relation','_groupIds','call','sheet.mutation.remove-shape','parse','_addLineFollowShapeUpdates','_disposed','back','SHEET_SHAPE_PLUGIN','sheet.command.set-shape-text-vertical-toggle','interceptCommand','values','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','angle','getEndConnectInfo','8SULFok','unitId','redos','1.0.0-insiders.20260809-70eefdd','getLineShapeRelation','updateShape','borderEnabled','getShapeTextData','flatMap','getName','addShape','sheet.command.set-shape-drawing-data','lineShapeId','_shapeHostAdapterRegistry','cxnIndex','getDrawingData','constructor','_initSnapshot','getShape','getConnectionSiteList','bringToFront','params','startY','description','_addLineRerouteUpdates','startX','isHorizontal','getAdjustNames','undos','insertShape','_commandService','disposeWithMe','sheet.command.toggle-shape-flip','listShapesInUnit','getSkeleton','fill','_initCommands','lineType','_serializeShapeForUnit','transform','_initCommandInterceptor','map','pushUndoRedo','getShapeRelation','register','onCommandExecute','81wfSFkf','_arrange','getSheets','1106063muFiUD','_resolveBinding','sendToBack','getOwnPropertyDescriptor','getUnit','function','find','bringForward','defineProperty','width','prototype','_deserializeShapeForUnit','1683580ZruSqG','originals','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_applyUpdate','UNIVER_SHEET','drawingId'];_0x1cdb=function(){return _0x55bd06;};return _0x1cdb();}function oe(_0x52bf91,_0x14359b){const _0x54f88c=_0x7b09;if(ae(_0x52bf91)!=_0x54f88c(0x1b0)||!_0x52bf91)return _0x52bf91;var _0x370e55=_0x52bf91[Symbol['toPrimitive']];if(_0x370e55!==void 0x0){var _0x3f8c89=_0x370e55[_0x54f88c(0x228)](_0x52bf91,_0x14359b||_0x54f88c(0x1d8));if(ae(_0x3f8c89)!=_0x54f88c(0x1b0))return _0x3f8c89;throw TypeError(_0x54f88c(0x1a0));}return(_0x14359b===_0x54f88c(0x1af)?String:Number)(_0x52bf91);}function se(_0x4a6a14){const _0x5ef6a1=_0x7b09;var _0x3db022=oe(_0x4a6a14,_0x5ef6a1(0x1af));return ae(_0x3db022)==_0x5ef6a1(0x1b5)?_0x3db022:_0x3db022+'';}function Y(_0x1ee08f,_0x4148a1,_0x4bbf2e){const _0xd2b00=_0x7b09;return(_0x4148a1=se(_0x4148a1))in _0x1ee08f?Object[_0xd2b00(0x19a)](_0x1ee08f,_0x4148a1,{'value':_0x4bbf2e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ee08f[_0x4148a1]=_0x4bbf2e,_0x1ee08f;}var ce=class extends _0x2254c8{constructor(){const _0x7c106d=_0x7b09;super(),Y(this,_0x7c106d(0x1d4),new Map()),Y(this,_0x7c106d(0x1d6),new Set()),Y(this,'_groupIds',new Set());}[_0x5eec01(0x23f)](_0x1c58db,_0x3edb7c,_0x3eb715,_0x44ab2b){const _0x11a2bf=_0x5eec01;let _0x239fa6=new _0x520ec8(_0x1c58db,_0x3edb7c,_0x3eb715,_0x44ab2b);return this['_shapes'][_0x11a2bf(0x1dc)](_0x3edb7c,_0x239fa6),_0x52f9c5(_0x1c58db)&&this[_0x11a2bf(0x1d6)][_0x11a2bf(0x218)](_0x3edb7c),_0x239fa6;}[_0x5eec01(0x1a9)](_0x8429e4){const _0x4fffa1=_0x5eec01;let _0x1a8bf1=[];for(let _0x1160da of this[_0x4fffa1(0x1d6)]){let _0x6e4055=this[_0x4fffa1(0x1d4)]['get'](_0x1160da);if(_0x6e4055){let _0x56280a=_0x6e4055[_0x4fffa1(0x18c)]();if(_0x56280a){var _0x33365a,_0x45c776;((_0x33365a=_0x56280a['from'])==null?void 0x0:_0x33365a[_0x4fffa1(0x1eb)])===_0x8429e4&&_0x1a8bf1['push']({..._0x56280a[_0x4fffa1(0x1c7)],'lineShapeId':_0x1160da,'isFrom':!0x0}),((_0x45c776=_0x56280a['to'])==null?void 0x0:_0x45c776[_0x4fffa1(0x1eb)])===_0x8429e4&&_0x1a8bf1[_0x4fffa1(0x1ae)]({..._0x56280a['to'],'lineShapeId':_0x1160da,'isFrom':!0x1});}}}return _0x1a8bf1;}[_0x5eec01(0x239)](_0x23d5fb){const _0xf861a2=_0x5eec01;let _0x1d6082=this[_0xf861a2(0x1d4)][_0xf861a2(0x1a6)](_0x23d5fb);if(_0x1d6082)return _0x1d6082[_0xf861a2(0x18c)]();}[_0x5eec01(0x214)](_0x314dbe){const _0x33fb30=_0x5eec01;let _0x2a90ed=this['_shapes'][_0x33fb30(0x1a6)](_0x314dbe);if(_0x2a90ed)return _0x2a90ed[_0x33fb30(0x214)]();}[_0x5eec01(0x21f)](_0x2de404){const _0x4ea6d2=_0x5eec01;return this['_shapes'][_0x4ea6d2(0x1da)](_0x2de404);}[_0x5eec01(0x1a8)](){const _0x4699f0=_0x5eec01;return Array[_0x4699f0(0x1c7)](this[_0x4699f0(0x1d4)][_0x4699f0(0x231)]())[_0x4699f0(0x18a)](_0x2ac9b5=>_0x2ac9b5['getName']()||_0x2ac9b5['getId']());}[_0x5eec01(0x1e8)](_0x10fbcd){const _0x37292a=_0x5eec01;let _0x1925f5=this['_shapes'][_0x37292a(0x1a6)](_0x10fbcd);_0x1925f5&&(_0x52f9c5(_0x1925f5[_0x37292a(0x214)]())&&this[_0x37292a(0x1d6)][_0x37292a(0x1bc)](_0x10fbcd),this[_0x37292a(0x1d4)][_0x37292a(0x1bc)](_0x10fbcd));}['toJSON'](){const _0x1f86e3=_0x5eec01;let _0x53bd68=[];return this[_0x1f86e3(0x1d4)][_0x1f86e3(0x1d3)](_0xea9776=>{const _0x2528b3=_0x1f86e3;_0x53bd68[_0x2528b3(0x1ae)](_0xea9776[_0x2528b3(0x200)]());}),_0x53bd68;}[_0x5eec01(0x1ea)](_0x457ff0){const _0x40295c=_0x5eec01;for(let _0x42abe1 of _0x457ff0){let {id:_0x2c8e93,shapeType:_0x8a2071,name:_0x5d7e95}=_0x42abe1,_0x520ee7=this[_0x40295c(0x23f)](_0x8a2071,_0x2c8e93,_0x42abe1[_0x40295c(0x223)],_0x5d7e95);_0x520ee7&&_0x520ee7[_0x40295c(0x224)]()&&this[_0x40295c(0x1d6)][_0x40295c(0x218)](_0x2c8e93);}}['dispose'](){const _0x4925fa=_0x5eec01;this[_0x4925fa(0x22c)]||(this['_shapes'][_0x4925fa(0x1d3)](_0x4cf3d4=>{const _0x123c51=_0x4925fa;_0x4cf3d4[_0x123c51(0x221)]();}),this[_0x4925fa(0x1d4)]['clear'](),this[_0x4925fa(0x1d6)][_0x4925fa(0x1ab)](),this[_0x4925fa(0x227)]['clear'](),super['dispose']());}};function X(_0x186ca7,_0x21d9cd){return function(_0x27b011,_0x442f2c){_0x21d9cd(_0x27b011,_0x442f2c,_0x186ca7);};}function le(_0x49dba3,_0xe45d5b,_0xdc260e,_0x4440aa){const _0x463f26=_0x5eec01;var _0x4ec50b=arguments['length'],_0x2fb853=_0x4ec50b<0x3?_0xe45d5b:_0x4440aa===null?_0x4440aa=Object[_0x463f26(0x195)](_0xe45d5b,_0xdc260e):_0x4440aa,_0x2b5f43;if(typeof Reflect==_0x463f26(0x1b0)&&typeof Reflect['decorate']==_0x463f26(0x197))_0x2fb853=Reflect['decorate'](_0x49dba3,_0xe45d5b,_0xdc260e,_0x4440aa);else{for(var _0x40cb0e=_0x49dba3[_0x463f26(0x21a)]-0x1;_0x40cb0e>=0x0;_0x40cb0e--)(_0x2b5f43=_0x49dba3[_0x40cb0e])&&(_0x2fb853=(_0x4ec50b<0x3?_0x2b5f43(_0x2fb853):_0x4ec50b>0x3?_0x2b5f43(_0xe45d5b,_0xdc260e,_0x2fb853):_0x2b5f43(_0xe45d5b,_0xdc260e))||_0x2fb853);}return _0x4ec50b>0x3&&_0x2fb853&&Object['defineProperty'](_0xe45d5b,_0xdc260e,_0x2fb853),_0x2fb853;}let Z=class extends _0x2254c8{constructor(_0x2b8722){const _0x58dc87=_0x5eec01;super(),this[_0x58dc87(0x211)]=_0x2b8722,Y(this,_0x58dc87(0x1e0),new Map()),this[_0x58dc87(0x246)]();}[_0x5eec01(0x210)](_0x438d77,_0x5d1fc9){const _0x2f71cc=_0x5eec01;let _0x212587=this[_0x2f71cc(0x1e0)][_0x2f71cc(0x1a6)](_0x438d77);_0x212587||(_0x212587=new Map(),this['_shapeModelManagerMap'][_0x2f71cc(0x1dc)](_0x438d77,_0x212587));let _0x7ae7a8=_0x212587[_0x2f71cc(0x1a6)](_0x5d1fc9);return _0x7ae7a8||(_0x7ae7a8=new ce(),_0x212587[_0x2f71cc(0x1dc)](_0x5d1fc9,_0x7ae7a8)),_0x7ae7a8;}['insertShape'](_0x565ed1,_0x58f2f7,_0x5d22e9,_0x5a241f,_0x1123db,_0x4696ad){const _0x200859=_0x5eec01;this['_ensureShapeModelManager'](_0x565ed1,_0x58f2f7)[_0x200859(0x23f)](_0x5d22e9,_0x5a241f,_0x1123db,_0x4696ad);}[_0x5eec01(0x1e8)](_0xbf0c90,_0xb46980,_0x4fcb35){const _0x536534=_0x5eec01;this[_0x536534(0x210)](_0xbf0c90,_0xb46980)[_0x536534(0x1e8)](_0x4fcb35);}['getBasicShapeType'](_0x31e0ae,_0x24c2a8,_0x27217e){const _0x38e206=_0x5eec01;return this['_ensureShapeModelManager'](_0x31e0ae,_0x24c2a8)[_0x38e206(0x214)](_0x27217e);}[_0x5eec01(0x214)](_0x1bb49f,_0x30c6b5,_0x30266b){const _0xf36af4=_0x5eec01;return this['_ensureShapeModelManager'](_0x1bb49f,_0x30c6b5)[_0xf36af4(0x214)](_0x30266b);}[_0x5eec01(0x21f)](_0x2cf3c3,_0x5ce697,_0x7198c4){return this['_ensureShapeModelManager'](_0x2cf3c3,_0x5ce697)['hasShape'](_0x7198c4);}[_0x5eec01(0x1c5)](_0x455c75,_0x4458eb,_0x2e14a1){const _0x81fb18=_0x5eec01;return this[_0x81fb18(0x210)](_0x455c75,_0x4458eb)[_0x81fb18(0x214)](_0x2e14a1);}[_0x5eec01(0x21c)](_0x2c4162,_0x5ac6f1,_0x4bcff3){const _0x2bb196=_0x5eec01;let _0x43ad26=this[_0x2bb196(0x210)](_0x2c4162,_0x5ac6f1);if(!_0x43ad26[_0x2bb196(0x214)](_0x4bcff3))return;let _0x5a990d=_0x43ad26[_0x2bb196(0x1d4)][_0x2bb196(0x1a6)](_0x4bcff3);if(_0x5a990d)return _0x5a990d[_0x2bb196(0x1a7)]();}[_0x5eec01(0x1a8)](_0x2b9279,_0x15c002){const _0x1d189b=_0x5eec01;return this['_ensureShapeModelManager'](_0x2b9279,_0x15c002)[_0x1d189b(0x1a8)]();}['getShapeModel'](_0x5e1e76,_0x5d35c6,_0x458e72){const _0x66e08e=_0x5eec01;return this[_0x66e08e(0x210)](_0x5e1e76,_0x5d35c6)['_shapes'][_0x66e08e(0x1a6)](_0x458e72);}['getBasicShapeRelation'](_0xbd3444,_0x41d06b,_0x3ba412){const _0x5a87b1=_0x5eec01;return this[_0x5a87b1(0x210)](_0xbd3444,_0x41d06b)[_0x5a87b1(0x1a9)](_0x3ba412);}[_0x5eec01(0x239)](_0x378b17,_0x14724b,_0x583d19){const _0x36529b=_0x5eec01;let _0x3f560b=this[_0x36529b(0x210)](_0x378b17,_0x14724b)[_0x36529b(0x1d4)][_0x36529b(0x1a6)](_0x583d19);if(_0x3f560b)return _0x3f560b[_0x36529b(0x18c)]();}[_0x5eec01(0x209)](){}['_serializeShapeForUnit'](_0x55ec9d){const _0x2ae56c=_0x5eec01;let _0x16e907={},_0x2766e9=this[_0x2ae56c(0x1e0)][_0x2ae56c(0x1a6)](_0x55ec9d);return _0x2766e9&&_0x2766e9[_0x2ae56c(0x1d3)]((_0x1dc127,_0x28deb1)=>{const _0xc5f646=_0x2ae56c;let _0x31c45c=_0x1dc127[_0xc5f646(0x200)]();_0x31c45c['length']>0x0&&(_0x16e907[_0x28deb1]=_0x31c45c);}),JSON['stringify'](_0x16e907);}[_0x5eec01(0x19d)](_0x5b069e,_0x57fef0){const _0x1fa681=_0x5eec01;Object[_0x1fa681(0x1fe)](_0x57fef0)[_0x1fa681(0x1d3)](_0x5df4dc=>{const _0x2b540d=_0x1fa681;this[_0x2b540d(0x210)](_0x5b069e,_0x5df4dc)[_0x2b540d(0x1ea)](_0x57fef0[_0x5df4dc]);});}['toJSON'](){const _0x5622a1=_0x5eec01;let _0xb4de19={};return this[_0x5622a1(0x1e0)][_0x5622a1(0x1d3)]((_0x72feda,_0x19907e)=>{const _0x540407=_0x5622a1;_0xb4de19[_0x19907e]={},_0x72feda[_0x540407(0x1d3)]((_0x539a29,_0xfbc423)=>{_0xb4de19[_0x19907e][_0xfbc423]=_0x539a29['toJSON']();});}),_0xb4de19;}[_0x5eec01(0x1ea)](_0x1fca22){const _0x81e90a=_0x5eec01;Object[_0x81e90a(0x1fe)](_0x1fca22)[_0x81e90a(0x1d3)](_0x2fb282=>{const _0x5e7850=_0x81e90a;let _0x72dd4a=_0x1fca22[_0x2fb282];Object[_0x5e7850(0x1fe)](_0x72dd4a)['forEach'](_0x35ff91=>{const _0x5a4825=_0x5e7850;this[_0x5a4825(0x210)](_0x2fb282,_0x35ff91)['fromJSON'](_0x72dd4a[_0x35ff91]);});});}[_0x5eec01(0x246)](){const _0x3d37a0=_0x5eec01;this['_resourcesManagerService'][_0x3d37a0(0x1fc)]({'pluginName':_0x3d37a0(0x22e),'businesses':[_0x52f505['UNIVER_SHEET']],'toJson':_0x4d46ba=>this[_0x3d37a0(0x187)](_0x4d46ba),'parseJson':_0x34c8e6=>JSON[_0x3d37a0(0x22a)](_0x34c8e6),'onLoad':(_0x3411af,_0x2fe2bc)=>{const _0x49f9e1=_0x3d37a0;this[_0x49f9e1(0x19d)](_0x3411af,_0x2fe2bc);},'onUnLoad':_0x196f66=>{const _0xb61e32=_0x3d37a0;let _0x269252=this[_0xb61e32(0x1e0)][_0xb61e32(0x1a6)](_0x196f66);_0x269252&&(_0x269252[_0xb61e32(0x1d3)](_0x1bed0c=>{const _0x50b736=_0xb61e32;_0x1bed0c[_0x50b736(0x221)]();}),this[_0xb61e32(0x1e0)][_0xb61e32(0x1bc)](_0x196f66));}});}[_0x5eec01(0x221)](){const _0x594d41=_0x5eec01;this[_0x594d41(0x1e0)][_0x594d41(0x1d3)](_0x482615=>{const _0x377868=_0x594d41;_0x482615[_0x377868(0x1d3)](_0x58bbc7=>{const _0x5c2707=_0x377868;_0x58bbc7[_0x5c2707(0x221)]();});});}};Z=le([X(0x0,_0x521baf)],Z);const ue={'id':_0x5eec01(0x215),'type':_0x5c2f32[_0x5eec01(0x1f8)],'handler':(_0x69d064,_0x43598e)=>{const _0x2b7aa4=_0x5eec01;let {unitId:_0x1805e7,subUnitId:_0x5403bd,shapeType:_0x26fb69,shapeId:_0x2ec789,shapeName:_0x584a2e,shapeData:_0x178f67}=_0x43598e;return _0x69d064[_0x2b7aa4(0x1a6)](Z)[_0x2b7aa4(0x252)](_0x1805e7,_0x5403bd,_0x26fb69,_0x2ec789,_0x580376[_0x2b7aa4(0x1bd)](_0x178f67),_0x584a2e),!0x0;}},de={'id':_0x5eec01(0x229),'type':_0x5c2f32[_0x5eec01(0x1f8)],'handler':(_0x447d42,_0x18c645)=>{const _0x5a7c17=_0x5eec01;let {unitId:_0x50f75b,subUnitId:_0x558974,shapeId:_0x176005}=_0x18c645;return _0x447d42[_0x5a7c17(0x1a6)](Z)['removeShape'](_0x50f75b,_0x558974,_0x176005),!0x0;}},fe={'type':_0x5c2f32[_0x5eec01(0x1c9)],'id':_0x5eec01(0x1f5),'handler':(_0x570a6d,_0x1695d3)=>{const _0x572b98=_0x5eec01;let _0x37e1db=_0x4c9adc(_0x570a6d[_0x572b98(0x1a6)](_0x4a585b),_0x1695d3);if(!_0x37e1db)return!0x1;let _0x3dbc69=_0x570a6d[_0x572b98(0x1a6)](_0x33e612),{unitId:_0x32899d,subUnitId:_0x3b38d7}=_0x37e1db,_0x22e6d2=_0x3dbc69[_0x572b98(0x1ca)](_0x32899d,_0x3b38d7);if(!_0x22e6d2)return!0x1;let _0x10f1a7=_0x570a6d[_0x572b98(0x1a6)](_0x53dc14),_0x592231=_0x570a6d[_0x572b98(0x1a6)](_0x427286),_0x8ce2b6=_0x570a6d[_0x572b98(0x1a6)](_0x3df5ad),_0x37503e=_0x570a6d['get'](_0x69ae5e),_0x243073=_0x570a6d[_0x572b98(0x1a6)](Z),{shapeType:_0x4b1553,shapeData:_0x2f6d54}=_0x1695d3,_0x2d18fb=_0x1695d3['shapeId']||_0x149962(),_0x3be1ec={'unitId':_0x32899d,'subUnitId':_0x3b38d7,'shapeId':_0x2d18fb,'shapeName':_0x1695d3['shapeName']??_0x50a1d6(_0x4b1553,_0x243073['getShapeDisplayNames'](_0x32899d,_0x3b38d7)),'shapeType':_0x4b1553,'shapeData':_0x2f6d54},_0x18f1e9=_0x1695d3[_0x572b98(0x19b)]||0xc8,_0x3a49b4=_0x1695d3[_0x572b98(0x207)]||0xc8,_0x17bcfa=0x0,_0x3b1d3a=0x0;if(_0x1695d3[_0x572b98(0x1d9)]){let {x:_0x40464b,y:_0x22ac01}=_0x1695d3[_0x572b98(0x1d9)];_0x17bcfa=_0x40464b,_0x3b1d3a=_0x22ac01;}else{if(_0x1695d3['range']){let {startRow:_0x2cc73c,startColumn:_0x3602a3}=_0x1695d3[_0x572b98(0x1cf)],_0x184555=_0x22e6d2[_0x572b98(0x1ce)](_0x2cc73c,_0x3602a3);_0x17bcfa=_0x184555[_0x572b98(0x24e)]+0xa,_0x3b1d3a=_0x184555[_0x572b98(0x24b)]+0xa;}}let _0x16a746={'left':_0x17bcfa,'top':_0x3b1d3a,'width':_0x18f1e9,'height':_0x3a49b4,'angle':_0x1695d3[_0x572b98(0x1b8)]??0x0,'flipX':_0x1695d3[_0x572b98(0x1bb)]??!0x1,'flipY':_0x1695d3[_0x572b98(0x1f7)]??!0x1},_0x50b36c=_0x3bb572(_0x16a746,_0x22e6d2),_0x47e6f4=_0x3d75ac(_0x16a746,_0x22e6d2),_0x4dbfc0={'unitId':_0x32899d,'subUnitId':_0x3b38d7,'drawingId':_0x2d18fb,'drawingType':_0x5a5243['DRAWING_SHAPE'],'anchorType':_0x2d0366[_0x572b98(0x1c3)],'name':_0x1695d3['name'],'description':_0x1695d3['description'],'sheetTransform':_0x50b36c,'transform':_0x16a746,'data':{'shapeType':_0x4b1553,'shapeData':_0x2f6d54},'axisAlignSheetTransform':_0x47e6f4,'allowTransform':!0x0,'hidden':_0x1695d3['visible']===!0x1,'selectable':_0x1695d3[_0x572b98(0x222)]??!0x0};_0x52f9c5(_0x4b1553)&&(_0x4dbfc0['data'][_0x572b98(0x258)]=!0x1,_0x4dbfc0[_0x572b98(0x1e5)]['rotateEnabled']=!0x1,_0x4dbfc0[_0x572b98(0x1e5)][_0x572b98(0x202)]=!0x1,_0x4dbfc0[_0x572b98(0x1e5)]['borderEnabled']=!0x1,_0x4dbfc0[_0x572b98(0x188)]['rotateEnabled']=!0x1,_0x4dbfc0[_0x572b98(0x188)][_0x572b98(0x202)]=!0x1,_0x4dbfc0[_0x572b98(0x188)]['borderEnabled']=!0x1);let {undo:_0x34c123,redo:_0x55209d,objects:_0x7647fe}=_0x37503e['getBatchAddOp']([_0x4dbfc0]),_0xd9e39f=_0x8ce2b6[_0x572b98(0x18e)]({'id':_0x372541['id'],'params':{'unitId':_0x32899d,'drawings':[_0x4dbfc0]}}),_0x4e1f2d=[..._0xd9e39f[_0x572b98(0x1f1)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x32899d,'subUnitId':_0x3b38d7,'op':_0x55209d,'objects':_0x7647fe,'type':_0xde6f05[_0x572b98(0x1f4)]}},{'id':_0x1fc357['id'],'params':[_0x32899d]},..._0xd9e39f[_0x572b98(0x237)],{'id':ue['id'],'params':_0x3be1ec}],_0x22baff=[{'id':de['id'],'params':{'unitId':_0x32899d,'subUnitId':_0x3b38d7,'shapeId':_0x2d18fb}},..._0xd9e39f[_0x572b98(0x1cd)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x32899d,'subUnitId':_0x3b38d7,'op':_0x34c123,'objects':_0x7647fe,'type':_0xde6f05[_0x572b98(0x1d0)]}},{'id':_0x1fc357['id'],'params':[_0x32899d]},..._0xd9e39f['undos']];return _0x128903(_0x4e1f2d,_0x10f1a7)[_0x572b98(0x20c)]?(_0x592231['pushUndoRedo']({'unitID':_0x32899d,'undoMutations':_0x22baff,'redoMutations':_0x4e1f2d}),!0x0):!0x1;}},Q={'id':_0x5eec01(0x1c4),'type':_0x5c2f32[_0x5eec01(0x1f8)],'handler':(_0x535c1f,_0x2fc156)=>{const _0x7d5dfb=_0x5eec01;let {unitId:_0x56943c,subUnitId:_0x4e343a,shapeType:_0x11473d,shapeId:_0xa2d7a8,shapeData:_0x51ca6d,replace:_0x254d18,formulaLastValueGuard:_0xaa9f06}=_0x2fc156,_0x2fab91=_0x535c1f['get'](Z)['getShapeModel'](_0x56943c,_0x4e343a,_0xa2d7a8);if(_0x2fab91){var _0x231698;if(!_0x4bd63b(_0x535c1f,{'hostType':_0x52f505[_0x7d5dfb(0x1a2)],'unitId':_0x56943c,'subUnitId':_0x4e343a,'shapeId':_0xa2d7a8},(_0x231698=_0x2fab91[_0x7d5dfb(0x1a7)]()[_0x7d5dfb(0x212)])==null?void 0x0:_0x231698['formula'],_0xaa9f06))return!0x0;_0x11473d!==void 0x0&&_0x2fab91[_0x7d5dfb(0x209)](_0x11473d),_0x51ca6d&&(_0x2fab91==null||_0x2fab91[_0x7d5dfb(0x1ba)](_0x580376[_0x7d5dfb(0x1bd)](_0x51ca6d),!_0x254d18));}return!0x0;}},pe={'type':_0x5c2f32[_0x5eec01(0x1c9)],'id':_0x5eec01(0x240),'handler':(_0x5c4741,_0x5e2de9)=>{const _0x5ec534=_0x5eec01;let _0x19f283=_0x4c9adc(_0x5c4741[_0x5ec534(0x1a6)](_0x4a585b),_0x5e2de9);if(!_0x19f283)return!0x1;let _0x5072b7=_0x5c4741['get'](_0x33e612),{unitId:_0x12d6fe,subUnitId:_0x563e44}=_0x19f283,_0x165287=_0x5072b7[_0x5ec534(0x1ca)](_0x12d6fe,_0x563e44);if(!_0x165287)return!0x1;let _0x3c381e=_0x5c4741['get'](Z),{shapeId:_0x2ee7f5,shapeType:_0x222499,shapeData:_0x8ff49c,position:_0xb1cdfd,width:_0x3f617b,height:_0x36d582}=_0x5e2de9,_0x3df2fc=_0x3c381e['getShapeModel'](_0x12d6fe,_0x563e44,_0x2ee7f5);if(!_0x3df2fc)return!0x1;let _0x38748e=_0x5c4741[_0x5ec534(0x1a6)](_0x53dc14),_0x124a16=_0x5c4741['get'](_0x427286),_0x300797=_0x5c4741[_0x5ec534(0x1a6)](_0x3df5ad),_0x15bbb8=_0x5c4741[_0x5ec534(0x1a6)](_0x69ae5e),_0x450f80={'unitId':_0x12d6fe,'subUnitId':_0x563e44,'shapeId':_0x2ee7f5,'shapeType':_0x222499,'shapeData':_0x8ff49c,'replace':!0x0},_0x13afd3=_0x3df2fc[_0x5ec534(0x214)](),_0x535b4d=_0x3df2fc['getShapeData'](),{x:_0x88742d,y:_0x156d17}=_0xb1cdfd,_0x1896e7={'left':_0x88742d,'top':_0x156d17,'width':_0x3f617b,'height':_0x36d582,'angle':_0x5e2de9[_0x5ec534(0x1b8)]??0x0,'flipX':_0x5e2de9['flipX']??!0x1,'flipY':_0x5e2de9[_0x5ec534(0x1f7)]??!0x1},_0x32d26f=_0x3bb572(_0x1896e7,_0x165287),_0x6e6660=_0x3d75ac(_0x1896e7,_0x165287),_0x21bf70={'unitId':_0x12d6fe,'subUnitId':_0x563e44,'drawingId':_0x2ee7f5,'drawingType':_0x5a5243[_0x5ec534(0x1b7)],'name':_0x5e2de9['name'],'description':_0x5e2de9[_0x5ec534(0x24c)],'sheetTransform':_0x32d26f,'transform':_0x1896e7,'data':{'shapeType':_0x222499,'shapeData':_0x8ff49c},'axisAlignSheetTransform':_0x6e6660,'allowTransform':!0x0,'hidden':!_0x5e2de9[_0x5ec534(0x1b3)],'selectable':_0x5e2de9[_0x5ec534(0x222)]};_0x52f9c5(_0x222499)&&(_0x21bf70[_0x5ec534(0x1e5)][_0x5ec534(0x258)]=!0x1,_0x21bf70[_0x5ec534(0x1e5)][_0x5ec534(0x1e1)]=!0x1,_0x21bf70['data'][_0x5ec534(0x202)]=!0x1,_0x21bf70[_0x5ec534(0x1e5)][_0x5ec534(0x23b)]=!0x1,_0x21bf70['transform'][_0x5ec534(0x1e1)]=!0x1,_0x21bf70[_0x5ec534(0x188)][_0x5ec534(0x202)]=!0x1,_0x21bf70[_0x5ec534(0x188)][_0x5ec534(0x23b)]=!0x1);let {undo:_0x3344ad,redo:_0x1cad51,objects:_0x346a4d}=_0x15bbb8[_0x5ec534(0x1fd)]([_0x21bf70]),_0x3805ab=_0x300797['onCommandExecute']({'id':_0x52e268['id'],'params':{'unitId':_0x12d6fe,'drawings':[_0x21bf70]}}),_0x326d50=[..._0x3805ab[_0x5ec534(0x1f1)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x12d6fe,'subUnitId':_0x563e44,'op':_0x1cad51,'objects':_0x346a4d,'type':_0xde6f05[_0x5ec534(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x12d6fe]},..._0x3805ab[_0x5ec534(0x237)],{'id':Q['id'],'params':_0x450f80}],_0x53d6f8=[..._0x3805ab[_0x5ec534(0x1cd)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x12d6fe,'subUnitId':_0x563e44,'op':_0x3344ad,'objects':_0x346a4d,'type':_0xde6f05[_0x5ec534(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x12d6fe]},..._0x3805ab['undos'],{'id':Q['id'],'params':{'unitId':_0x12d6fe,'subUnitId':_0x563e44,'shapeType':_0x13afd3,'shapeId':_0x2ee7f5,'shapeData':_0x535b4d,'replace':!0x0}}];return _0x128903(_0x326d50,_0x38748e)[_0x5ec534(0x20c)]?(_0x124a16[_0x5ec534(0x18b)]({'unitID':_0x12d6fe,'undoMutations':_0x53d6f8,'redoMutations':_0x326d50}),!0x0):!0x1;}},me={'type':_0x5c2f32['COMMAND'],'id':_0x5eec01(0x255),'handler':(_0x32034a,_0x40e3c7)=>{const _0x4e8af9=_0x5eec01;let _0x124c17=_0x4c9adc(_0x32034a['get'](_0x4a585b),_0x40e3c7);if(!_0x124c17)return!0x1;let _0x3b7170=_0x32034a[_0x4e8af9(0x1a6)](_0x33e612),{unitId:_0x49a894,subUnitId:_0xcc1e59}=_0x124c17,_0x1fb821=_0x3b7170[_0x4e8af9(0x257)](_0x49a894,_0xcc1e59);if(!_0x1fb821)return!0x1;let _0x41fbbf=_0x32034a[_0x4e8af9(0x1a6)](_0x69ae5e),{shapeId:_0x3d64c6,flipH:_0x469e7a,flipV:_0x5e5014}=_0x40e3c7,_0x4a430d=_0x41fbbf[_0x4e8af9(0x1e3)]({'unitId':_0x49a894,'subUnitId':_0xcc1e59,'drawingId':_0x3d64c6});if(!_0x4a430d)return!0x1;let _0x2f085c=_0x32034a[_0x4e8af9(0x1a6)](Z)[_0x4e8af9(0x216)](_0x49a894,_0xcc1e59,_0x3d64c6);if(!_0x2f085c)return!0x1;let _0x2bb4d1=_0x32034a['get'](_0x53dc14),_0x262335=_0x32034a[_0x4e8af9(0x1a6)](_0x427286),_0x38aed3=_0x32034a[_0x4e8af9(0x1a6)](_0x3df5ad),_0x29aa60={..._0x4a430d['transform']};_0x469e7a!==void 0x0&&(_0x29aa60[_0x4e8af9(0x1bb)]=!_0x29aa60['flipX']),_0x5e5014!==void 0x0&&(_0x29aa60[_0x4e8af9(0x1f7)]=!_0x29aa60[_0x4e8af9(0x1f7)]);let _0x1519f0=_0x3bb572(_0x29aa60,_0x1fb821),_0x83a02e=_0x3d75ac(_0x29aa60,_0x1fb821),_0x2c4215=_0x2f085c[_0x4e8af9(0x214)](),_0x2cc255=_0x2f085c[_0x4e8af9(0x1a7)](),_0x5b5244={'unitId':_0x49a894,'subUnitId':_0xcc1e59,'drawingId':_0x3d64c6,'drawingType':_0x5a5243[_0x4e8af9(0x1b7)],'sheetTransform':_0x1519f0,'transform':_0x29aa60,'data':{'shapeType':_0x2c4215,'shapeData':_0x2cc255},'axisAlignSheetTransform':_0x83a02e,'allowTransform':!0x0},{undo:_0x62e30b,redo:_0x5d91e8,objects:_0x145bc8}=_0x41fbbf['getBatchUpdateOp']([_0x5b5244]),_0x4dea97=_0x38aed3[_0x4e8af9(0x18e)]({'id':_0x52e268['id'],'params':{'unitId':_0x49a894,'drawings':[_0x5b5244]}}),_0x5c7200=[..._0x4dea97[_0x4e8af9(0x1f1)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x49a894,'subUnitId':_0xcc1e59,'op':_0x5d91e8,'objects':_0x145bc8,'type':_0xde6f05[_0x4e8af9(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x49a894]},..._0x4dea97[_0x4e8af9(0x237)]],_0x12ceee=[..._0x4dea97[_0x4e8af9(0x1cd)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x49a894,'subUnitId':_0xcc1e59,'op':_0x62e30b,'objects':_0x145bc8,'type':_0xde6f05[_0x4e8af9(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x49a894]},..._0x4dea97['undos']];if(_0x52f9c5(_0x2c4215)){let _0x5915c4=_0x2f085c[_0x4e8af9(0x18c)]();if(_0x5915c4){let _0x51b0f0={..._0x5915c4};_0x51b0f0[_0x4e8af9(0x1c7)]=void 0x0,_0x51b0f0['to']=void 0x0,_0x5c7200[_0x4e8af9(0x1ae)]({'id':Q['id'],'params':{'unitId':_0x49a894,'subUnitId':_0xcc1e59,'shapeId':_0x3d64c6,'shapeType':_0x2c4215,'shapeData':{'relation':_0x51b0f0}}}),_0x12ceee[_0x4e8af9(0x1ae)]({'id':Q['id'],'params':{'unitId':_0x49a894,'subUnitId':_0xcc1e59,'shapeId':_0x3d64c6,'shapeType':_0x2c4215,'shapeData':{'relation':_0x5915c4}}});}}return _0x128903(_0x5c7200,_0x2bb4d1)[_0x4e8af9(0x20c)]?(_0x262335[_0x4e8af9(0x18b)]({'unitID':_0x49a894,'undoMutations':_0x12ceee,'redoMutations':_0x5c7200}),!0x0):!0x1;}},he={'type':_0x5c2f32[_0x5eec01(0x1c9)],'id':'sheet.command.set-shape-rotate','handler':(_0x240a4a,_0x3a3234)=>{const _0xa5404f=_0x5eec01;let _0x173afd=_0x4c9adc(_0x240a4a[_0xa5404f(0x1a6)](_0x4a585b),_0x3a3234);if(!_0x173afd)return!0x1;let _0x9a8b9=_0x240a4a[_0xa5404f(0x1a6)](_0x33e612),{unitId:_0x230959,subUnitId:_0x2c71e8}=_0x173afd,_0x31590e=_0x9a8b9[_0xa5404f(0x257)](_0x230959,_0x2c71e8);if(!_0x31590e)return!0x1;let _0x98e92=_0x240a4a[_0xa5404f(0x1a6)](_0x69ae5e),{shapeId:_0x5ba47d,rotate:_0x36f030}=_0x3a3234,_0x4c8027=_0x98e92[_0xa5404f(0x1e3)]({'unitId':_0x230959,'subUnitId':_0x2c71e8,'drawingId':_0x5ba47d});if(!_0x4c8027)return!0x1;let _0x309b99=_0x240a4a[_0xa5404f(0x1a6)](Z)[_0xa5404f(0x216)](_0x230959,_0x2c71e8,_0x5ba47d);if(!_0x309b99)return!0x1;let _0x49df6e=_0x240a4a[_0xa5404f(0x1a6)](_0x53dc14),_0x4cc391=_0x240a4a[_0xa5404f(0x1a6)](_0x427286),_0x3539e2=_0x240a4a[_0xa5404f(0x1a6)](_0x3df5ad),_0x3db1aa={..._0x4c8027[_0xa5404f(0x188)]};_0x36f030!==void 0x0&&(_0x3db1aa['angle']=(_0x3db1aa[_0xa5404f(0x233)]||0x0)+_0x36f030);let _0x2f8746=_0x3bb572(_0x3db1aa,_0x31590e),_0x10e3d3=_0x3d75ac(_0x3db1aa,_0x31590e),_0x10adbe=_0x309b99[_0xa5404f(0x214)](),_0x1c0c26=_0x309b99[_0xa5404f(0x1a7)](),_0x5c26c8={'unitId':_0x230959,'subUnitId':_0x2c71e8,'drawingId':_0x5ba47d,'drawingType':_0x5a5243[_0xa5404f(0x1b7)],'sheetTransform':_0x2f8746,'transform':_0x3db1aa,'data':{'shapeType':_0x10adbe,'shapeData':_0x1c0c26},'axisAlignSheetTransform':_0x10e3d3,'allowTransform':!0x0},{undo:_0xf98b8c,redo:_0x1cec70,objects:_0x573ec9}=_0x98e92[_0xa5404f(0x1fd)]([_0x5c26c8]),_0x2f4be2=_0x3539e2['onCommandExecute']({'id':_0x52e268['id'],'params':{'unitId':_0x230959,'drawings':[_0x5c26c8]}}),_0x4fd878=[..._0x2f4be2[_0xa5404f(0x1f1)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x230959,'subUnitId':_0x2c71e8,'op':_0x1cec70,'objects':_0x573ec9,'type':_0xde6f05[_0xa5404f(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x230959]},..._0x2f4be2[_0xa5404f(0x237)]],_0x459fce=[..._0x2f4be2[_0xa5404f(0x1cd)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x230959,'subUnitId':_0x2c71e8,'op':_0xf98b8c,'objects':_0x573ec9,'type':_0xde6f05[_0xa5404f(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x230959]},..._0x2f4be2[_0xa5404f(0x251)]];return _0x128903(_0x4fd878,_0x49df6e)[_0xa5404f(0x20c)]?(_0x4cc391[_0xa5404f(0x18b)]({'unitID':_0x230959,'undoMutations':_0x459fce,'redoMutations':_0x4fd878}),!0x0):!0x1;}},ge={'type':_0x5c2f32[_0x5eec01(0x1c9)],'id':_0x5eec01(0x22f),'handler':(_0x46f81e,_0x62187)=>{const _0x713e5=_0x5eec01;let _0x531f1=_0x4c9adc(_0x46f81e[_0x713e5(0x1a6)](_0x4a585b),_0x62187);if(!_0x531f1)return!0x1;let {unitId:_0x5823f6,subUnitId:_0xf3153a}=_0x531f1,{shapeId:_0x37810c}=_0x62187,_0x13c9d7=_0x46f81e[_0x713e5(0x1a6)](Z)[_0x713e5(0x216)](_0x5823f6,_0xf3153a,_0x37810c);if(!_0x13c9d7)return!0x1;let _0x2ffe5e=_0x13c9d7[_0x713e5(0x23c)](),_0x45e9e8=(_0x2ffe5e==null?void 0x0:_0x2ffe5e[_0x713e5(0x24f)])??!0x0,_0x281f90=!_0x45e9e8,_0x4222d5=_0x46f81e['get'](_0x53dc14),_0x599506=_0x46f81e[_0x713e5(0x1a6)](_0x427286),_0x4b5ce6={'unitId':_0x5823f6,'subUnitId':_0xf3153a,'shapeId':_0x37810c,'shapeData':{'shapeText':{'isHorizontal':_0x281f90}}},_0x92bdb2={'unitId':_0x5823f6,'subUnitId':_0xf3153a,'shapeId':_0x37810c,'shapeData':{'shapeText':{'isHorizontal':_0x45e9e8}}},_0x437ab3=[{'id':Q['id'],'params':_0x4b5ce6}],_0x2bef6a=[{'id':Q['id'],'params':_0x92bdb2}];return _0x128903(_0x437ab3,_0x4222d5)[_0x713e5(0x20c)]?(_0x599506[_0x713e5(0x18b)]({'unitID':_0x5823f6,'undoMutations':_0x2bef6a,'redoMutations':_0x437ab3}),!0x0):!0x1;}},_e={'type':_0x5c2f32[_0x5eec01(0x1c9)],'id':'sheet.command.update-connector-relation','handler':(_0x21b2c5,_0x1fd595)=>{const _0x53c7ba=_0x5eec01;var _0x447320;let _0xafc4dd=_0x4c9adc(_0x21b2c5['get'](_0x4a585b),_0x1fd595);if(!_0xafc4dd)return!0x1;let _0x4bb56e=_0x21b2c5[_0x53c7ba(0x1a6)](_0x33e612),{unitId:_0x49f999,subUnitId:_0x3557a1}=_0xafc4dd,_0x2b1b12=_0x4bb56e['getSkeleton'](_0x49f999,_0x3557a1);if(!_0x2b1b12)return!0x1;let _0x2f083c=_0x21b2c5[_0x53c7ba(0x1a6)](_0x69ae5e),{connectorShapeId:_0x14f234,width:_0x417c6f,height:_0x52cf10,left:_0x30fec2,top:_0x32feaf,flipX:_0x5d494d,flipY:_0x576b06,rotation:_0x33cf7e,oldAdjustValues:_0x5552e7,newAdjustValues:_0x57c9c9,oldLineType:_0xaae792,newLineType:_0x1abddc,oldRelation:_0x105d81,newRelation:_0x252eb1}=_0x1fd595,_0x567a20=_0x2f083c[_0x53c7ba(0x1e3)]({'unitId':_0x49f999,'subUnitId':_0x3557a1,'drawingId':_0x14f234});if(!_0x567a20)return!0x1;let _0x2a0a69=_0x21b2c5[_0x53c7ba(0x1a6)](Z)[_0x53c7ba(0x216)](_0x49f999,_0x3557a1,_0x14f234);if(!_0x2a0a69)return!0x1;let _0x183539=_0x21b2c5[_0x53c7ba(0x1a6)](_0x53dc14),_0x521a7f=_0x21b2c5[_0x53c7ba(0x1a6)](_0x427286),_0x5651ad=_0x21b2c5[_0x53c7ba(0x1a6)](_0x3df5ad),_0x55b88a={..._0x567a20[_0x53c7ba(0x188)],'width':_0x417c6f,'height':_0x52cf10,'left':_0x30fec2,'top':_0x32feaf,'flipX':_0x5d494d,'flipY':_0x576b06,'angle':_0x33cf7e??((_0x447320=_0x567a20['transform'])==null?void 0x0:_0x447320[_0x53c7ba(0x233)])??0x0},_0x5c3a0d=_0x3bb572(_0x55b88a,_0x2b1b12),_0x25dc91=_0x3d75ac(_0x55b88a,_0x2b1b12),_0x3d5997=_0x2a0a69[_0x53c7ba(0x214)](),_0x18ae35=_0x2a0a69[_0x53c7ba(0x1a7)](),_0x542d75={'unitId':_0x49f999,'subUnitId':_0x3557a1,'drawingId':_0x14f234,'drawingType':_0x5a5243['DRAWING_SHAPE'],'sheetTransform':_0x5c3a0d,'transform':_0x55b88a,'data':{'shapeType':_0x1abddc||_0xaae792||_0x3d5997,'shapeData':{..._0x18ae35,'adjustValues':_0x57c9c9||_0x5552e7||(_0x18ae35==null?void 0x0:_0x18ae35[_0x53c7ba(0x1dd)]),'relation':_0x252eb1||_0x105d81||(_0x18ae35==null?void 0x0:_0x18ae35[_0x53c7ba(0x226)])}},'axisAlignSheetTransform':_0x25dc91,'allowTransform':!0x0},{undo:_0x38f290,redo:_0x2a9618,objects:_0xa1da7a}=_0x2f083c['getBatchUpdateOp']([_0x542d75]),_0x3751fb=_0x5651ad[_0x53c7ba(0x18e)]({'id':_0x52e268['id'],'params':{'unitId':_0x49f999,'drawings':[_0x542d75]}}),_0x45cb7b=[..._0x3751fb[_0x53c7ba(0x1f1)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x49f999,'subUnitId':_0x3557a1,'op':_0x2a9618,'objects':_0xa1da7a,'type':_0xde6f05[_0x53c7ba(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x49f999]},..._0x3751fb[_0x53c7ba(0x237)],{'id':Q['id'],'params':{'unitId':_0x49f999,'subUnitId':_0x3557a1,'shapeId':_0x14f234,'shapeType':_0x1abddc,'shapeData':{'adjustValues':_0x57c9c9,'relation':_0x252eb1}}}],_0x19f348=[..._0x3751fb[_0x53c7ba(0x1cd)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x49f999,'subUnitId':_0x3557a1,'op':_0x38f290,'objects':_0xa1da7a,'type':_0xde6f05[_0x53c7ba(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x49f999]},..._0x3751fb[_0x53c7ba(0x251)],{'id':Q['id'],'params':{'unitId':_0x49f999,'subUnitId':_0x3557a1,'shapeId':_0x14f234,'shapeType':_0x3d5997,'shapeData':{..._0x18ae35,'adjustValues':_0x5552e7||(_0x18ae35==null?void 0x0:_0x18ae35['adjustValues']),'relation':_0x105d81||(_0x18ae35==null?void 0x0:_0x18ae35[_0x53c7ba(0x226)])}}}];return _0x128903(_0x45cb7b,_0x183539)[_0x53c7ba(0x20c)]?(_0x521a7f[_0x53c7ba(0x18b)]({'unitID':_0x49f999,'undoMutations':_0x19f348,'redoMutations':_0x45cb7b}),!0x0):!0x1;}},ve={'type':_0x5c2f32[_0x5eec01(0x1c9)],'id':'sheet.command.update-line-shape-resize','handler':(_0x40e5a9,_0x24f3cb)=>{const _0x1e6a2c=_0x5eec01;let _0x422b09=_0x4c9adc(_0x40e5a9[_0x1e6a2c(0x1a6)](_0x4a585b),_0x24f3cb);if(!_0x422b09)return!0x1;let _0x2e787a=_0x40e5a9['get'](_0x33e612),{unitId:_0x41139a,subUnitId:_0x517025}=_0x422b09,_0x34e335=_0x2e787a[_0x1e6a2c(0x257)](_0x41139a,_0x517025);if(!_0x34e335)return!0x1;let _0x2d7f28=_0x40e5a9[_0x1e6a2c(0x1a6)](_0x69ae5e),{shapeId:_0x485d63,width:_0x39664c,height:_0x370df1,left:_0x110352,top:_0xcaed7b,flipX:_0x206819,flipY:_0x1e8ee3,angle:_0x4659c2,oldAdjustValues:_0x1681e9,newAdjustValues:_0x17419f,oldLineType:_0xc76871,newLineType:_0x3ec2b6}=_0x24f3cb,_0x4d966e=_0x2d7f28[_0x1e6a2c(0x1e3)]({'unitId':_0x41139a,'subUnitId':_0x517025,'drawingId':_0x485d63});if(!_0x4d966e)return!0x1;let _0x529d6f=_0x40e5a9[_0x1e6a2c(0x1a6)](Z)['getShapeModel'](_0x41139a,_0x517025,_0x485d63);if(!_0x529d6f)return!0x1;let _0x2415b3=_0x40e5a9[_0x1e6a2c(0x1a6)](_0x53dc14),_0x3bb0ca=_0x40e5a9[_0x1e6a2c(0x1a6)](_0x427286),_0x1c27f6=_0x40e5a9[_0x1e6a2c(0x1a6)](_0x3df5ad),_0x3dd1b2={..._0x4d966e[_0x1e6a2c(0x188)],'width':_0x39664c,'height':_0x370df1,'left':_0x110352,'top':_0xcaed7b,'flipX':_0x206819,'flipY':_0x1e8ee3,'angle':_0x4659c2},_0x84997a=_0x3bb572(_0x3dd1b2,_0x34e335),_0x59fb34=_0x3d75ac(_0x3dd1b2,_0x34e335),_0x43162b=_0x529d6f[_0x1e6a2c(0x214)](),_0x30d2d1=_0x529d6f[_0x1e6a2c(0x1a7)](),_0x558853={'unitId':_0x41139a,'subUnitId':_0x517025,'drawingId':_0x485d63,'drawingType':_0x5a5243[_0x1e6a2c(0x1b7)],'sheetTransform':_0x84997a,'transform':_0x3dd1b2,'data':{'shapeType':_0x3ec2b6||_0xc76871||_0x43162b,'shapeData':{..._0x30d2d1,'adjustValues':_0x17419f||_0x1681e9||(_0x30d2d1==null?void 0x0:_0x30d2d1[_0x1e6a2c(0x1dd)])}},'axisAlignSheetTransform':_0x59fb34,'allowTransform':!0x0},{undo:_0x2cb388,redo:_0x5a764b,objects:_0x22e2d5}=_0x2d7f28[_0x1e6a2c(0x1fd)]([_0x558853]),_0x17c6ab=_0x1c27f6[_0x1e6a2c(0x18e)]({'id':_0x52e268['id'],'params':{'unitId':_0x41139a,'drawings':[_0x558853]}}),_0x57b28b=[..._0x17c6ab[_0x1e6a2c(0x1f1)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x41139a,'subUnitId':_0x517025,'op':_0x5a764b,'objects':_0x22e2d5,'type':_0xde6f05['UPDATE']}},{'id':_0x1fc357['id'],'params':[_0x41139a]},..._0x17c6ab[_0x1e6a2c(0x237)],{'id':Q['id'],'params':{'unitId':_0x41139a,'subUnitId':_0x517025,'shapeId':_0x485d63,'shapeType':_0x3ec2b6,'shapeData':{'adjustValues':_0x17419f}}}],_0x173c9f=[..._0x17c6ab[_0x1e6a2c(0x1cd)]??[],{'id':_0x4800f7['id'],'params':{'unitId':_0x41139a,'subUnitId':_0x517025,'op':_0x2cb388,'objects':_0x22e2d5,'type':_0xde6f05[_0x1e6a2c(0x1f9)]}},{'id':_0x1fc357['id'],'params':[_0x41139a]},..._0x17c6ab[_0x1e6a2c(0x251)],{'id':Q['id'],'params':{'unitId':_0x41139a,'subUnitId':_0x517025,'shapeId':_0x485d63,'shapeType':_0x43162b,'shapeData':{..._0x30d2d1,'adjustValues':_0x1681e9||(_0x30d2d1==null?void 0x0:_0x30d2d1['adjustValues'])}}}];return _0x128903(_0x57b28b,_0x2415b3)['result']?(_0x3bb0ca[_0x1e6a2c(0x18b)]({'unitID':_0x41139a,'undoMutations':_0x173c9f,'redoMutations':_0x57b28b}),!0x0):!0x1;}},ye={'id':_0x5eec01(0x213),'type':_0x5c2f32[_0x5eec01(0x1f8)],'handler':(_0x17d63c,_0x995dd7)=>{const _0x131a00=_0x5eec01;let {unitId:_0x2144ab,subUnitId:_0x137b35,shapeType:_0x3c7b2b,shapeId:_0x33e316,shapeData:_0x10c416}=_0x995dd7,_0x4d33ee=_0x17d63c[_0x131a00(0x1a6)](Z)['getShapeModel'](_0x2144ab,_0x137b35,_0x33e316);return _0x4d33ee&&(_0x4d33ee[_0x131a00(0x209)](_0x3c7b2b),_0x10c416&&(_0x4d33ee==null||_0x4d33ee['setShapeData'](_0x10c416))),!0x0;}};var be=_0x5eec01(0x1ed),xe=_0x5eec01(0x238);function Se(_0x5e4e5b){const _0x220fdc=_0x5eec01;var _0x504004,_0x53a13c,_0x184ff3,_0x9ad657,_0x45f5fd,_0x406c2d,_0x1cf60b;return{'left':((_0x504004=_0x5e4e5b[_0x220fdc(0x188)])==null?void 0x0:_0x504004[_0x220fdc(0x1db)])??0x0,'top':((_0x53a13c=_0x5e4e5b[_0x220fdc(0x188)])==null?void 0x0:_0x53a13c['top'])??0x0,'width':((_0x184ff3=_0x5e4e5b[_0x220fdc(0x188)])==null?void 0x0:_0x184ff3[_0x220fdc(0x19b)])??0xc8,'height':((_0x9ad657=_0x5e4e5b[_0x220fdc(0x188)])==null?void 0x0:_0x9ad657[_0x220fdc(0x207)])??0xc8,'rotation':((_0x45f5fd=_0x5e4e5b[_0x220fdc(0x188)])==null?void 0x0:_0x45f5fd[_0x220fdc(0x1b8)])??0x0,'flipX':((_0x406c2d=_0x5e4e5b[_0x220fdc(0x188)])==null?void 0x0:_0x406c2d[_0x220fdc(0x1bb)])??!0x1,'flipY':((_0x1cf60b=_0x5e4e5b['transform'])==null?void 0x0:_0x1cf60b[_0x220fdc(0x1f7)])??!0x1};}let Ce=class{constructor(_0x924f35,_0x1ff89d,_0x256116,_0x5d4e2b){const _0x239119=_0x5eec01;this[_0x239119(0x253)]=_0x924f35,this[_0x239119(0x217)]=_0x1ff89d,this[_0x239119(0x1df)]=_0x256116,this[_0x239119(0x1bf)]=_0x5d4e2b,Y(this,_0x239119(0x20a),_0x52f505['UNIVER_SHEET']);}get[_0x5eec01(0x208)](){return{'subscribe':_0x30ef2d=>{const _0x463a29=_0x7b09;let _0x2baf71=this[_0x463a29(0x253)][_0x463a29(0x1d7)](_0x39d807=>{const _0x3d6d67=_0x463a29;(_0x39d807['id']===ue['id']||_0x39d807['id']===de['id']||_0x39d807['id']===Q['id']||_0x39d807['id']===ye['id'])&&_0x30ef2d({'unitId':_0x39d807[_0x3d6d67(0x24a)]['unitId']});});return{'unsubscribe':()=>_0x2baf71[_0x463a29(0x221)]()};}};}['getShape'](_0x5a0942){const _0xc6552a=_0x5eec01;var _0x3765a3;let _0x16f19e=(_0x3765a3=this[_0xc6552a(0x1df)][_0xc6552a(0x244)](_0x5a0942['unitId'],_0x5a0942[_0xc6552a(0x1d2)]))==null?void 0x0:_0x3765a3[_0x5a0942[_0xc6552a(0x1eb)]],_0x3d34cc=this['_shapeService']['getShapeType'](_0x5a0942[_0xc6552a(0x236)],_0x5a0942[_0xc6552a(0x1d2)],_0x5a0942[_0xc6552a(0x1eb)]);if(!_0x16f19e||_0x16f19e[_0xc6552a(0x20f)]!==_0x5a5243[_0xc6552a(0x1b7)]||!_0x3d34cc)return null;let _0x29317c=_0x16f19e[_0xc6552a(0x188)];return{..._0x5a0942,'shapeType':_0x3d34cc,'shapeData':_0x580376[_0xc6552a(0x1bd)](this[_0xc6552a(0x217)][_0xc6552a(0x21c)](_0x5a0942[_0xc6552a(0x236)],_0x5a0942[_0xc6552a(0x1d2)],_0x5a0942[_0xc6552a(0x1eb)])??{}),'name':_0x16f19e['name'],'description':_0x16f19e['description'],'visible':_0x16f19e[_0xc6552a(0x1f2)]!==!0x0,'selectable':_0x16f19e[_0xc6552a(0x222)]!==!0x1,'transform':{'left':(_0x29317c==null?void 0x0:_0x29317c['left'])??0x0,'top':(_0x29317c==null?void 0x0:_0x29317c['top'])??0x0,'width':(_0x29317c==null?void 0x0:_0x29317c[_0xc6552a(0x19b)])??0xc8,'height':(_0x29317c==null?void 0x0:_0x29317c[_0xc6552a(0x207)])??0xc8,'rotation':(_0x29317c==null?void 0x0:_0x29317c[_0xc6552a(0x233)])??0x0,'flipX':(_0x29317c==null?void 0x0:_0x29317c[_0xc6552a(0x1bb)])??!0x1,'flipY':(_0x29317c==null?void 0x0:_0x29317c[_0xc6552a(0x1f7)])??!0x1}};}[_0x5eec01(0x1ad)](_0x4b1bbe){const _0x402461=_0x5eec01;let _0x1469e5=this[_0x402461(0x1df)]['getDrawingData'](_0x4b1bbe[_0x402461(0x236)],_0x4b1bbe['subUnitId'])??{};return Object['values'](_0x1469e5)[_0x402461(0x1b2)](_0xe1770a=>(_0xe1770a==null?void 0x0:_0xe1770a['drawingType'])===_0x5a5243[_0x402461(0x1b7)])[_0x402461(0x18a)](_0x3cf7a0=>this[_0x402461(0x247)]({..._0x4b1bbe,'shapeId':_0x3cf7a0[_0x402461(0x1a3)]}))[_0x402461(0x1b2)](_0x4c2247=>!!_0x4c2247);}[_0x5eec01(0x256)](_0x152459){const _0x2024f3=_0x5eec01;let _0x1ad839=this[_0x2024f3(0x1bf)][_0x2024f3(0x196)](_0x152459,_0x52f505['UNIVER_SHEET']);return(_0x1ad839==null?void 0x0:_0x1ad839[_0x2024f3(0x191)]()[_0x2024f3(0x23d)](_0x2448cd=>this['listShapes']({'hostType':this[_0x2024f3(0x20a)],'unitId':_0x152459,'subUnitId':_0x2448cd['getSheetId']()})))??[];}[_0x5eec01(0x1c6)](_0x448c8a,_0x40b158){const _0x1666c7=_0x5eec01;let _0x27d4ab=_0x149962(),_0x25de93=Se(_0x40b158);return this[_0x1666c7(0x253)][_0x1666c7(0x1c1)](fe['id'],{'unitId':_0x448c8a[_0x1666c7(0x236)],'subUnitId':_0x448c8a[_0x1666c7(0x1d2)],'shapeId':_0x27d4ab,'shapeType':_0x40b158[_0x1666c7(0x1f6)],'shapeData':_0x40b158['shapeData'],'name':_0x40b158[_0x1666c7(0x205)],'description':_0x40b158[_0x1666c7(0x24c)],'position':{'x':_0x25de93[_0x1666c7(0x1db)],'y':_0x25de93[_0x1666c7(0x204)]},'width':_0x25de93['width'],'height':_0x25de93[_0x1666c7(0x207)],'rotation':_0x25de93[_0x1666c7(0x1b8)],'flipX':_0x25de93[_0x1666c7(0x1bb)],'flipY':_0x25de93[_0x1666c7(0x1f7)],'visible':_0x40b158['visible']??!0x0,'selectable':_0x40b158[_0x1666c7(0x222)]??!0x0})?{..._0x448c8a,'shapeId':_0x27d4ab,'shapeType':_0x40b158[_0x1666c7(0x1f6)],'shapeData':_0x580376[_0x1666c7(0x1bd)](_0x40b158['shapeData']??{}),'name':_0x40b158[_0x1666c7(0x205)],'description':_0x40b158[_0x1666c7(0x24c)],'visible':_0x40b158[_0x1666c7(0x1b3)]??!0x0,'selectable':_0x40b158[_0x1666c7(0x222)]??!0x0,'transform':_0x25de93}:null;}[_0x5eec01(0x23a)](_0x5d3cf1,_0x1516b0){const _0x156690=_0x5eec01;var _0xae0440;let _0x28ed05=this[_0x156690(0x247)](_0x5d3cf1);if(!_0x28ed05)return!0x1;let _0x4d9da5={..._0x28ed05[_0x156690(0x188)],..._0x1516b0['transform']};return this[_0x156690(0x253)][_0x156690(0x1c1)](pe['id'],{'unitId':_0x5d3cf1[_0x156690(0x236)],'subUnitId':_0x5d3cf1[_0x156690(0x1d2)],'shapeId':_0x5d3cf1[_0x156690(0x1eb)],'shapeType':_0x1516b0[_0x156690(0x1f6)]??((_0xae0440=_0x1516b0[_0x156690(0x223)])==null?void 0x0:_0xae0440[_0x156690(0x1f6)])??_0x28ed05[_0x156690(0x1f6)],'shapeData':_0x1516b0['shapeData']??_0x28ed05[_0x156690(0x223)],'position':{'x':_0x4d9da5[_0x156690(0x1db)],'y':_0x4d9da5[_0x156690(0x204)]},'width':_0x4d9da5[_0x156690(0x19b)],'height':_0x4d9da5[_0x156690(0x207)],'rotation':_0x4d9da5[_0x156690(0x1b8)],'flipX':_0x4d9da5['flipX'],'flipY':_0x4d9da5[_0x156690(0x1f7)],'name':'name'in _0x1516b0?_0x1516b0[_0x156690(0x205)]:_0x28ed05[_0x156690(0x205)],'description':_0x156690(0x24c)in _0x1516b0?_0x1516b0[_0x156690(0x24c)]:_0x28ed05[_0x156690(0x24c)],'visible':_0x1516b0[_0x156690(0x1b3)]??_0x28ed05[_0x156690(0x1b3)],'selectable':_0x1516b0[_0x156690(0x222)]??_0x28ed05[_0x156690(0x222)]});}[_0x5eec01(0x1ac)](_0x137d9e,_0x1900a1,_0x42b088){const _0x29ccf9=_0x5eec01;let _0x324c9a=this[_0x29ccf9(0x247)](_0x137d9e),_0x1eb816=_0x324c9a==null?void 0x0:_0x324c9a[_0x29ccf9(0x223)][_0x29ccf9(0x212)];return!_0x324c9a||!_0x1eb816?null:{'id':Q['id'],'params':{'unitId':_0x137d9e[_0x29ccf9(0x236)],'subUnitId':_0x137d9e[_0x29ccf9(0x1d2)],'shapeId':_0x137d9e[_0x29ccf9(0x1eb)],'shapeData':{..._0x324c9a['shapeData'],'formulaBinding':{..._0x1eb816,'lastValue':_0x580376['deepClone'](_0x42b088)}},'replace':!0x0,'formulaLastValueGuard':_0x1900a1}};}['removeShape'](_0x3794bd){const _0x6e60af=_0x5eec01;return this[_0x6e60af(0x253)][_0x6e60af(0x1c1)](_0x1799bf['id'],{'unitId':_0x3794bd[_0x6e60af(0x236)],'drawings':[{'unitId':_0x3794bd['unitId'],'subUnitId':_0x3794bd[_0x6e60af(0x1d2)],'drawingId':_0x3794bd[_0x6e60af(0x1eb)],'drawingType':_0x5a5243[_0x6e60af(0x1b7)]}]});}[_0x5eec01(0x249)](_0xed750e){const _0x3f0afd=_0x5eec01;return this[_0x3f0afd(0x190)](_0xed750e,_0x1f3847[_0x3f0afd(0x1b9)]);}[_0x5eec01(0x199)](_0x2fe22e){const _0x8f6d78=_0x5eec01;return this[_0x8f6d78(0x190)](_0x2fe22e,_0x1f3847['forward']);}[_0x5eec01(0x219)](_0x28027b){const _0x4541cd=_0x5eec01;return this[_0x4541cd(0x190)](_0x28027b,_0x1f3847['backward']);}[_0x5eec01(0x194)](_0x170ce9){const _0x18083a=_0x5eec01;return this[_0x18083a(0x190)](_0x170ce9,_0x1f3847[_0x18083a(0x22d)]);}[_0x5eec01(0x190)](_0x3c616b,_0x24a995){const _0x4308b6=_0x5eec01;return this[_0x4308b6(0x253)][_0x4308b6(0x1c1)](_0x17f8dc['id'],{'unitId':_0x3c616b[_0x4308b6(0x236)],'subUnitId':_0x3c616b['subUnitId'],'drawingIds':[_0x3c616b[_0x4308b6(0x1eb)]],'arrangeType':_0x24a995});}};Ce=le([X(0x0,_0x53dc14),X(0x1,_0x1bc4cb(Z)),X(0x2,_0x69ae5e),X(0x3,_0x4a585b)],Ce);const we={};let Te=class extends _0x2254c8{constructor(_0xeb770e,_0xca57c3,_0x57e2a7,_0x2800fb,_0x2f2e68,_0x56f4b6,_0x31fd53){const _0x1ced6c=_0x5eec01;super(),this[_0x1ced6c(0x253)]=_0xeb770e,this[_0x1ced6c(0x1ff)]=_0xca57c3,this[_0x1ced6c(0x20b)]=_0x57e2a7,this[_0x1ced6c(0x1e2)]=_0x2800fb,this[_0x1ced6c(0x1e6)]=_0x2f2e68,this[_0x1ced6c(0x242)]=_0x56f4b6,this[_0x1ced6c(0x259)](),this[_0x1ced6c(0x189)](),this[_0x1ced6c(0x254)](this[_0x1ced6c(0x242)][_0x1ced6c(0x18d)](_0x31fd53));}[_0x5eec01(0x259)](){const _0x497b97=_0x5eec01;[fe,pe,me,he,ge,_e,ve,ue,de,ye,Q]['forEach'](_0x24c4f6=>this[_0x497b97(0x254)](this['_commandService'][_0x497b97(0x1be)](_0x24c4f6)));}[_0x5eec01(0x189)](){const _0x50e8b6=_0x5eec01;this[_0x50e8b6(0x254)](this[_0x50e8b6(0x1ff)][_0x50e8b6(0x230)]({'getMutations':_0x4ddd62=>{const _0x12b62f=_0x50e8b6;if(_0x4ddd62['id']===_0x1799bf['id']){let {drawings:_0x3a9022}=_0x4ddd62['params'],_0x220dfa=_0x3a9022[_0x12b62f(0x1b2)](_0x35fd2c=>_0x35fd2c[_0x12b62f(0x20f)]===_0x5a5243[_0x12b62f(0x1b7)]);if(_0x220dfa[_0x12b62f(0x21a)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4c1542=[],_0x35ba76=[];return _0x220dfa[_0x12b62f(0x1d3)](_0x2d0589=>{const _0x425649=_0x12b62f;let {unitId:_0x209362,subUnitId:_0x443ad2,drawingId:_0x578d61}=_0x2d0589,_0x56ac80=this[_0x425649(0x1e2)][_0x425649(0x216)](_0x209362,_0x443ad2,_0x578d61);if(!_0x56ac80)throw TypeError(_0x425649(0x232)+_0x56ac80);_0x4c1542[_0x425649(0x1ae)]({'id':de['id'],'params':{'unitId':_0x209362,'subUnitId':_0x443ad2,'shapeId':_0x578d61}}),_0x35ba76['push']({'id':ue['id'],'params':{'unitId':_0x209362,'subUnitId':_0x443ad2,'shapeId':_0x578d61,'shapeType':_0x56ac80[_0x425649(0x214)](),'shapeData':_0x56ac80[_0x425649(0x1a7)]()}});let _0x45cf4b=this['_sheetsShapeService'][_0x425649(0x1a9)](_0x209362,_0x443ad2,_0x578d61);if(_0x45cf4b)for(let _0x57873f of _0x45cf4b){let _0x2cf981=_0x57873f[_0x425649(0x241)],_0x835071=_0x57873f['isFrom'],_0x451ab8=_0x835071?{'from':void 0x0}:{'to':void 0x0},_0x19f74a=_0x835071?{'from':{'shapeId':_0x57873f['shapeId'],'cxnIndex':_0x57873f[_0x425649(0x243)]}}:{'to':{'shapeId':_0x57873f['shapeId'],'cxnIndex':_0x57873f[_0x425649(0x243)]}};_0x4c1542['push']({'id':Q['id'],'params':{'unitId':_0x209362,'subUnitId':_0x443ad2,'shapeId':_0x2cf981,'shapeData':{'relation':_0x451ab8}}}),_0x35ba76[_0x425649(0x1ae)]({'id':Q['id'],'params':{'unitId':_0x209362,'subUnitId':_0x443ad2,'shapeId':_0x2cf981,'shapeData':{'relation':_0x19f74a}}});}}),{'preRedos':_0x4c1542,'redos':[],'preUndos':[],'undos':_0x35ba76};}if(_0x4ddd62['id']===_0x52e268['id']){let {drawings:_0x4684f8}=_0x4ddd62['params'],_0x3d60f3=_0x4684f8[_0x12b62f(0x1b2)](_0x4a8d69=>_0x4a8d69[_0x12b62f(0x20f)]===_0x5a5243[_0x12b62f(0x1b7)]);if(_0x3d60f3[_0x12b62f(0x21a)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x31cd0b=[],_0x290769=[];for(let _0xaa837b of _0x3d60f3){let {unitId:_0x16d2af,subUnitId:_0x45cbd2,drawingId:_0x2f80ce,transform:_0x5feba4}=_0xaa837b;if(!_0x16d2af||!_0x45cbd2||!_0x2f80ce||!_0x5feba4)continue;let _0x487ee8=this['_sheetsShapeService'][_0x12b62f(0x216)](_0x16d2af,_0x45cbd2,_0x2f80ce);if(!_0x487ee8)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x487ee8);if(_0x52f9c5(_0x487ee8[_0x12b62f(0x214)]())){let _0x2ba48c=this[_0x12b62f(0x1e2)][_0x12b62f(0x239)](_0x16d2af,_0x45cbd2,_0x2f80ce);_0x2ba48c&&(_0x31cd0b[_0x12b62f(0x1ae)]({'id':Q['id'],'params':{'unitId':_0x16d2af,'subUnitId':_0x45cbd2,'shapeId':_0x2f80ce,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x290769[_0x12b62f(0x1ae)]({'id':Q['id'],'params':{'unitId':_0x16d2af,'subUnitId':_0x45cbd2,'shapeId':_0x2f80ce,'shapeData':{'relation':_0x2ba48c}}}));}else{let _0x2bff43=this[_0x12b62f(0x1e2)][_0x12b62f(0x1a9)](_0x16d2af,_0x45cbd2,_0x2f80ce);if(_0x2bff43&&_0x2bff43[_0x12b62f(0x21a)]>0x0)for(let _0x25af53 of _0x2bff43){let _0x254000=_0x25af53[_0x12b62f(0x241)],_0x2bc872=_0x25af53[_0x12b62f(0x1e9)],_0x1e490c=this[_0x12b62f(0x1e2)][_0x12b62f(0x216)](_0x16d2af,_0x45cbd2,_0x254000);if(!_0x1e490c)continue;let _0x1c9926=_0x1e490c['getStartConnectInfo'](),_0x48c895=_0x1e490c[_0x12b62f(0x234)]();_0x1c9926&&_0x48c895?this['_addLineRerouteUpdates'](_0x16d2af,_0x45cbd2,_0x254000,_0x1e490c,_0x1c9926,_0x48c895,_0x31cd0b,_0x290769,_0x2f80ce,_0x5feba4):this[_0x12b62f(0x22b)](_0x16d2af,_0x45cbd2,_0x254000,_0x1e490c,_0x2bc872?_0x1c9926:_0x48c895,_0x2bc872,_0x31cd0b,_0x290769,_0x2f80ce,_0x5feba4);}}}return{'preRedos':[],'redos':_0x31cd0b,'preUndos':_0x290769,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x5eec01(0x1f3)](_0x5b9bae,_0x378f2a,_0x5a0d70,_0x239034,_0x4eb7f1){const _0xf5edb=_0x5eec01;if(!_0x378f2a||!_0x5a0d70)return null;let {shapeId:_0x53acb5,cxnIndex:_0x358da7}=_0x5b9bae,_0x4db74d=this['_sheetsShapeService']['getShapeModel'](_0x378f2a,_0x5a0d70,_0x53acb5);if(!_0x4db74d)return null;let _0x106744=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x378f2a,'subUnitId':_0x5a0d70,'drawingId':_0x53acb5});if(!(_0x106744!=null&&_0x106744[_0xf5edb(0x188)]))return null;let {left:_0x5ae3f2=0x0,top:_0x2441f7=0x0,width:_0x34ec0b=0x0,height:_0x4bfb1e=0x0,flipX:_0x43ff5f=!0x1,flipY:_0xd33d22=!0x1,angle:_0x4013b6}=_0x106744['transform'];_0x4eb7f1&&_0x239034===_0x53acb5&&(_0x5ae3f2=_0x4eb7f1[_0xf5edb(0x1db)]??_0x5ae3f2,_0x2441f7=_0x4eb7f1[_0xf5edb(0x204)]??_0x2441f7,_0x34ec0b=_0x4eb7f1[_0xf5edb(0x19b)]??_0x34ec0b,_0x4bfb1e=_0x4eb7f1[_0xf5edb(0x207)]??_0x4bfb1e,_0x43ff5f=_0x4eb7f1[_0xf5edb(0x1bb)]??_0x43ff5f,_0xd33d22=_0x4eb7f1[_0xf5edb(0x1f7)]??_0xd33d22,_0x4013b6=_0x4eb7f1[_0xf5edb(0x233)]??_0x4013b6),_0x4db74d[_0xf5edb(0x1d5)]({'width':_0x34ec0b,'height':_0x4bfb1e});let _0x588c59=_0x4db74d[_0xf5edb(0x248)]()[_0xf5edb(0x198)](_0x34ea90=>_0x34ea90[_0xf5edb(0x1a5)]===_0x358da7);if(!_0x588c59)return null;let _0x51d41f=_0x43ff5f?_0x34ec0b-_0x588c59['x']:_0x588c59['x'],_0x14a553=_0xd33d22?_0x4bfb1e-_0x588c59['y']:_0x588c59['y'];if(_0x4013b6!==0x0&&_0x4013b6!=null){let _0x2db5b7=_0x4013b6*Math['PI']/0xb4,_0x22ee83=Math[_0xf5edb(0x206)](_0x2db5b7),_0x232521=Math[_0xf5edb(0x225)](_0x2db5b7),_0x16d652=_0x34ec0b/0x2,_0x3f10c5=_0x4bfb1e/0x2,_0x4b5207=_0x51d41f-_0x16d652,_0x2cb1df=_0x14a553-_0x3f10c5;_0x51d41f=_0x16d652+_0x4b5207*_0x22ee83-_0x2cb1df*_0x232521,_0x14a553=_0x3f10c5+_0x4b5207*_0x232521+_0x2cb1df*_0x22ee83;}_0x51d41f+=_0x5ae3f2,_0x14a553+=_0x2441f7;let _0x3a5654=_0x588c59['ang']/0xea60;_0x43ff5f&&(_0x3a5654=0xb4-_0x3a5654),_0xd33d22&&(_0x3a5654=-_0x3a5654),_0x3a5654+=_0x4013b6||0x0,_0x3a5654=(_0x3a5654%0x168+0x168)%0x168;let _0x45910d=_0x22c422({'left':_0x5ae3f2,'top':_0x2441f7,'width':_0x34ec0b,'height':_0x4bfb1e},_0x4013b6||0x0);return{'point':{'x':_0x51d41f,'y':_0x14a553},'angle':_0x3a5654,'bounds':_0x45910d};}[_0x5eec01(0x24d)](_0x6d372f,_0x3c65d6,_0x1edd33,_0x51c29e,_0xbe9f86,_0xaea5dc,_0x42ac69,_0x4d9e31,_0x53aa26,_0x3e0f2b){const _0x3303e3=_0x5eec01;let _0x4c771d=this[_0x3303e3(0x20b)][_0x3303e3(0x257)](_0x6d372f,_0x3c65d6);if(!_0x4c771d)return;let _0x58c3d0=_0x51c29e[_0x3303e3(0x18c)](),_0x24eecb=_0x51c29e[_0x3303e3(0x250)](),_0x5ebbe1={},_0x4e8480={};_0x24eecb[_0x3303e3(0x1d3)](_0x48f158=>{let _0xdd28c=_0x51c29e['getAdjustValueByName'](_0x48f158);_0x4e8480[_0x48f158]=_0xdd28c??0x0;});let _0x484fed=this[_0x3303e3(0x1f3)](_0xbe9f86,_0x6d372f,_0x3c65d6,_0x53aa26,_0x3e0f2b),_0x25a91e=this['_getConnectPointInfo'](_0xaea5dc,_0x6d372f,_0x3c65d6,_0x53aa26,_0x3e0f2b);if(_0x484fed&&_0x25a91e){let _0x507228=_0x51c29e[_0x3303e3(0x214)](),_0x3ccf7b=_0x3ded68(_0x484fed,_0x25a91e,_0x507228),_0x3f90d5=_0x507228;if(_0x3ccf7b){let _0x3a6161=_0x52b0f8(_0x3ccf7b,_0x51c29e[_0x3303e3(0x214)]()),_0x4501e0=this[_0x3303e3(0x1e6)][_0x3303e3(0x244)](_0x6d372f,_0x3c65d6);if(_0x4501e0&&_0x4501e0[_0x1edd33]){let _0x2e7d22=_0x4501e0[_0x1edd33];_0x3f90d5=_0x3a6161[_0x3303e3(0x25a)];for(let [_0x371823,_0x5a32ec]of Object[_0x3303e3(0x1b4)](_0x3a6161['adjustValues']))_0x5ebbe1[_0x371823]=_0x5a32ec;let _0x3ff366={..._0x2e7d22[_0x3303e3(0x188)],'width':_0x3a6161[_0x3303e3(0x201)][_0x3303e3(0x19b)],'height':_0x3a6161[_0x3303e3(0x201)][_0x3303e3(0x207)],'left':_0x3a6161[_0x3303e3(0x201)][_0x3303e3(0x1db)],'top':_0x3a6161[_0x3303e3(0x201)]['top'],'flipX':_0x3a6161[_0x3303e3(0x201)][_0x3303e3(0x1bb)],'flipY':_0x3a6161[_0x3303e3(0x201)][_0x3303e3(0x1f7)],'angle':_0x3a6161['rotation']},_0x1f1b63=_0x3bb572(_0x3ff366,_0x4c771d),_0x4c68d0=_0x3d75ac(_0x3ff366,_0x4c771d),_0x31b909={'unitId':_0x6d372f,'subUnitId':_0x3c65d6,'drawingType':_0x5a5243['DRAWING_SHAPE'],'drawingId':_0x1edd33,'transform':_0x3ff366,'sheetTransform':_0x1f1b63,'axisAlignSheetTransform':_0x4c68d0},{unitId:_0x1c768a,subUnitId:_0x13278b,undo:_0x1c0a24,redo:_0x32ea08,objects:_0x1a2762}=this['_drawingManagerService']['getBatchUpdateOp']([_0x31b909]);_0x42ac69[_0x3303e3(0x1ae)]({'id':_0x4800f7['id'],'params':{'unitId':_0x1c768a,'subUnitId':_0x13278b,'op':_0x32ea08,'objects':_0x1a2762,'type':_0xde6f05['UPDATE']}}),_0x4d9e31['push']({'id':_0x4800f7['id'],'params':{'unitId':_0x1c768a,'subUnitId':_0x13278b,'op':_0x1c0a24,'objects':_0x1a2762,'type':_0xde6f05[_0x3303e3(0x1f9)]}});}_0x51c29e[_0x3303e3(0x1ec)]();}_0x42ac69[_0x3303e3(0x1ae)]({'id':Q['id'],'params':{'unitId':_0x6d372f,'subUnitId':_0x3c65d6,'shapeId':_0x1edd33,'shapeType':_0x3f90d5,'shapeData':{'adjustValues':_0x5ebbe1,'relation':_0x58c3d0}}}),_0x4d9e31['push']({'id':Q['id'],'params':{'unitId':_0x6d372f,'subUnitId':_0x3c65d6,'shapeId':_0x1edd33,'shapeType':_0x507228,'shapeData':{'adjustValues':_0x4e8480,'relation':_0x58c3d0}}});}}[_0x5eec01(0x22b)](_0x32499f,_0x3b09ba,_0x1d2dc5,_0x3e78d8,_0x148aeb,_0x2f0c65,_0x521bed,_0xdd356e,_0x4955b2,_0x313638){const _0x229e77=_0x5eec01;var _0x3878e8;if(!_0x148aeb)return;let _0x224bdd=this[_0x229e77(0x20b)][_0x229e77(0x257)](_0x32499f,_0x3b09ba);if(!_0x224bdd)return;let _0x4a1fe3=(_0x3878e8=this[_0x229e77(0x1e6)][_0x229e77(0x1e3)]({'unitId':_0x32499f,'subUnitId':_0x3b09ba,'drawingId':_0x4955b2}))==null?void 0x0:_0x3878e8[_0x229e77(0x188)];if(!_0x4a1fe3)return;let _0x3deb37=_0x4a1fe3[_0x229e77(0x1db)]!==_0x313638[_0x229e77(0x1db)]||_0x4a1fe3[_0x229e77(0x204)]!==_0x313638[_0x229e77(0x204)],_0x3701f7=_0x4a1fe3[_0x229e77(0x19b)]!==_0x313638[_0x229e77(0x19b)]||_0x4a1fe3[_0x229e77(0x207)]!==_0x313638[_0x229e77(0x207)],_0x378f8f=_0x4a1fe3[_0x229e77(0x1bb)]!==_0x313638['flipX']||_0x4a1fe3['flipY']!==_0x313638['flipY'],_0x1d211c=_0x4a1fe3['angle']!==_0x313638['angle'];if(_0x3deb37&&!_0x3701f7&&!_0x378f8f&&!_0x1d211c){let _0x245a1e=(_0x313638[_0x229e77(0x1db)]??0x0)-(_0x4a1fe3[_0x229e77(0x1db)]??0x0),_0x2eaae4=(_0x313638['top']??0x0)-(_0x4a1fe3[_0x229e77(0x204)]??0x0),_0xd6ac24=this[_0x229e77(0x1e6)][_0x229e77(0x244)](_0x32499f,_0x3b09ba);if(_0xd6ac24&&_0xd6ac24[_0x1d2dc5]){var _0x8fb6a5,_0xce1b5f;let _0xfa61d1=_0xd6ac24[_0x1d2dc5],_0x278f2f={..._0xfa61d1[_0x229e77(0x188)],'left':(((_0x8fb6a5=_0xfa61d1[_0x229e77(0x188)])==null?void 0x0:_0x8fb6a5[_0x229e77(0x1db)])??0x0)+_0x245a1e,'top':(((_0xce1b5f=_0xfa61d1[_0x229e77(0x188)])==null?void 0x0:_0xce1b5f[_0x229e77(0x204)])??0x0)+_0x2eaae4},_0x2886a3=_0x3bb572(_0x278f2f,_0x224bdd),_0x3bc110=_0x3d75ac(_0x278f2f,_0x224bdd),_0x5c9757={'unitId':_0x32499f,'subUnitId':_0x3b09ba,'drawingType':_0x5a5243[_0x229e77(0x1b7)],'drawingId':_0x1d2dc5,'transform':_0x278f2f,'sheetTransform':_0x2886a3,'axisAlignSheetTransform':_0x3bc110},{unitId:_0xdd7a3f,subUnitId:_0x3f5a8c,undo:_0x386876,redo:_0x2fb4fa,objects:_0x3a6132}=this[_0x229e77(0x1e6)]['getBatchUpdateOp']([_0x5c9757]);_0x521bed[_0x229e77(0x1ae)]({'id':_0x4800f7['id'],'params':{'unitId':_0xdd7a3f,'subUnitId':_0x3f5a8c,'op':_0x2fb4fa,'objects':_0x3a6132,'type':_0xde6f05[_0x229e77(0x1f9)]}}),_0xdd356e[_0x229e77(0x1ae)]({'id':_0x4800f7['id'],'params':{'unitId':_0xdd7a3f,'subUnitId':_0x3f5a8c,'op':_0x386876,'objects':_0x3a6132,'type':_0xde6f05['UPDATE']}});}}else{let _0x34f9bb=_0x3e78d8['getStartConnectInfo'](),_0x1e5a02=_0x3e78d8[_0x229e77(0x234)]();this[_0x229e77(0x24d)](_0x32499f,_0x3b09ba,_0x1d2dc5,_0x3e78d8,_0x34f9bb,_0x1e5a02,_0x521bed,_0xdd356e,_0x4955b2,_0x313638);}}};Te=le([X(0x0,_0x53dc14),X(0x1,_0x1bc4cb(_0x3df5ad)),X(0x2,_0x1bc4cb(_0x33e612)),X(0x3,_0x1bc4cb(Z)),X(0x4,_0x1bc4cb(_0x452e0d)),X(0x5,_0x1bc4cb(_0x5aadae)),X(0x6,_0x1bc4cb(Ce))],Te);function _0x7b09(_0xacd8ba,_0x4fbbe4){_0xacd8ba=_0xacd8ba-0x187;const _0x1cdb80=_0x1cdb();let _0x7b0913=_0x1cdb80[_0xacd8ba];return _0x7b0913;}let Ee=class extends _0x2254c8{constructor(_0x1cde94,_0x183329,_0x95b9d3){const _0xb4b813=_0x5eec01;super(),this[_0xb4b813(0x217)]=_0x1cde94,this[_0xb4b813(0x1e7)]=_0x183329,this[_0xb4b813(0x254)](_0x95b9d3[_0xb4b813(0x18d)](this));}[_0x5eec01(0x188)](_0x488bfd){const _0x3fbea7=_0x5eec01;let _0x39a496={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x3fbea7(0x1de)](_0x488bfd,_0x39a496);for(let [_0x1557f9,_0x249333]of _0x488bfd[_0x3fbea7(0x19f)])this[_0x3fbea7(0x1cc)](_0x488bfd,_0x1557f9,_0x249333,_0x39a496);return _0x39a496;}[_0x5eec01(0x1de)](_0x1d2a84,_0x189000){const _0x5a3bb2=_0x5eec01;if(_0x1d2a84['mode']==='command')for(let _0x1ecc00 of _0x1d2a84[_0x5a3bb2(0x1b1)]){let _0x1c8deb=_0x1d2a84[_0x5a3bb2(0x19f)]['get'](_0x1ecc00),_0x44bab1=this[_0x5a3bb2(0x217)][_0x5a3bb2(0x216)](_0x1d2a84[_0x5a3bb2(0x236)],_0x1d2a84[_0x5a3bb2(0x1d2)],_0x1ecc00);(_0x1c8deb==null?void 0x0:_0x1c8deb['drawingType'])!==_0x5a5243[_0x5a3bb2(0x1b7)]||!_0x44bab1||(_0x189000[_0x5a3bb2(0x1f1)][_0x5a3bb2(0x1ae)]({'id':de['id'],'params':{'unitId':_0x1d2a84['unitId'],'subUnitId':_0x1d2a84[_0x5a3bb2(0x1d2)],'shapeId':_0x1ecc00}}),_0x189000[_0x5a3bb2(0x251)][_0x5a3bb2(0x1ae)]({'id':ue['id'],'params':{'unitId':_0x1d2a84[_0x5a3bb2(0x236)],'subUnitId':_0x1d2a84['subUnitId'],'shapeId':_0x1ecc00,'shapeName':_0x44bab1[_0x5a3bb2(0x23e)](),'shapeType':_0x44bab1[_0x5a3bb2(0x214)](),'shapeData':_0x580376[_0x5a3bb2(0x1bd)](_0x44bab1[_0x5a3bb2(0x1a7)]())}}));}}[_0x5eec01(0x1cc)](_0x178095,_0x4a88d3,_0x16b39e,_0x37c0b8){const _0x60400a=_0x5eec01;if(_0x16b39e[_0x60400a(0x20f)]!==_0x5a5243[_0x60400a(0x1b7)]||_0x178095['deletes'][_0x60400a(0x1da)](_0x4a88d3))return;let _0x2446ce=this[_0x60400a(0x217)][_0x60400a(0x216)](_0x178095[_0x60400a(0x236)],_0x178095[_0x60400a(0x1d2)],_0x4a88d3);if(!_0x2446ce||!_0x52f9c5(_0x2446ce[_0x60400a(0x214)]()))return;let _0x1eef29=_0x2446ce[_0x60400a(0x18c)]();if(!(_0x178095[_0x60400a(0x21e)][_0x60400a(0x1da)](_0x4a88d3)||_0x1eef29!=null&&_0x1eef29[_0x60400a(0x1c7)]&&(_0x178095[_0x60400a(0x21e)][_0x60400a(0x1da)](_0x1eef29[_0x60400a(0x1c7)]['shapeId'])||_0x178095[_0x60400a(0x1b1)][_0x60400a(0x1da)](_0x1eef29[_0x60400a(0x1c7)][_0x60400a(0x1eb)]))||_0x1eef29!=null&&_0x1eef29['to']&&(_0x178095['updates'][_0x60400a(0x1da)](_0x1eef29['to'][_0x60400a(0x1eb)])||_0x178095[_0x60400a(0x1b1)]['has'](_0x1eef29['to'][_0x60400a(0x1eb)]))))return;let _0x3298a1=_0x178095[_0x60400a(0x21e)][_0x60400a(0x1a6)](_0x4a88d3)??_0x16b39e,_0x4686b3=this[_0x60400a(0x1b6)](_0x178095,_0x3298a1);if(!_0x4686b3)return;let _0x368d66=_0x3a0b56(_0x4686b3);if(_0x368d66['length']<0x2)return;let _0xe1547c=_0x580376['deepClone'](_0x1eef29??{}),_0x399fdc=_0xe1547c[_0x60400a(0x1c7)]&&this[_0x60400a(0x193)](_0x178095,_0xe1547c[_0x60400a(0x1c7)][_0x60400a(0x1eb)],_0xe1547c[_0x60400a(0x1c7)][_0x60400a(0x243)]),_0x3b8ca1=_0xe1547c['to']&&this['_resolveBinding'](_0x178095,_0xe1547c['to'][_0x60400a(0x1eb)],_0xe1547c['to'][_0x60400a(0x243)]);_0xe1547c[_0x60400a(0x1c7)]&&!_0x399fdc&&delete _0xe1547c['from'],_0xe1547c['to']&&!_0x3b8ca1&&delete _0xe1547c['to'];let _0x2e5f7b=_0x11f447(_0x4686b3,_0x399fdc||_0x401995((_0x3b8ca1==null?void 0x0:_0x3b8ca1[_0x60400a(0x1d1)])??_0x368d66[_0x368d66[_0x60400a(0x21a)]-0x1],_0x368d66[0x0]),_0x3b8ca1||_0x401995((_0x399fdc==null?void 0x0:_0x399fdc[_0x60400a(0x1d1)])??_0x368d66[0x0],_0x368d66[_0x368d66['length']-0x1]),_0xe1547c);if(!(!(_0x2e5f7b!=null&&_0x2e5f7b[_0x60400a(0x188)])||!_0x2e5f7b[_0x60400a(0x1f6)]||!_0x2e5f7b[_0x60400a(0x223)])){if(this[_0x60400a(0x1a1)](_0x178095,_0x3298a1,_0x2e5f7b),_0x178095[_0x60400a(0x20e)]===_0x60400a(0x1cb)){_0x2446ce['setShapeType'](_0x2e5f7b[_0x60400a(0x1f6)]),_0x2446ce[_0x60400a(0x1ba)](_0x580376[_0x60400a(0x1bd)](_0x2e5f7b['shapeData']),!0x1);return;}_0x37c0b8[_0x60400a(0x237)]['push']({'id':Q['id'],'params':{'unitId':_0x178095[_0x60400a(0x236)],'subUnitId':_0x178095['subUnitId'],'shapeId':_0x4a88d3,'shapeType':_0x2e5f7b[_0x60400a(0x1f6)],'shapeData':_0x580376[_0x60400a(0x1bd)](_0x2e5f7b[_0x60400a(0x223)]),'replace':!0x0}}),_0x37c0b8[_0x60400a(0x251)][_0x60400a(0x1ae)]({'id':Q['id'],'params':{'unitId':_0x178095[_0x60400a(0x236)],'subUnitId':_0x178095[_0x60400a(0x1d2)],'shapeId':_0x4a88d3,'shapeType':_0x2446ce['getShapeType'](),'shapeData':_0x580376[_0x60400a(0x1bd)](_0x2446ce['getShapeData']()),'replace':!0x0}});}}['_resolveBinding'](_0x2989b1,_0x438c2d,_0x3fb34e){const _0x4b7f5c=_0x5eec01;if(_0x2989b1[_0x4b7f5c(0x1b1)][_0x4b7f5c(0x1da)](_0x438c2d))return null;let _0x507b22=_0x2989b1[_0x4b7f5c(0x21e)][_0x4b7f5c(0x1a6)](_0x438c2d)??_0x2989b1['originals']['get'](_0x438c2d);if(!_0x507b22)return null;let _0xd7694c=this[_0x4b7f5c(0x1b6)](_0x2989b1,_0x507b22);return _0xd7694c?_0x5699e2(_0xd7694c,_0x3fb34e):null;}['_toSnapshot'](_0x19434d,_0x4820d5){const _0x16b859=_0x5eec01;let _0x296c16={'hostType':_0x52f505[_0x16b859(0x1a2)],'unitId':_0x19434d[_0x16b859(0x236)],'subUnitId':_0x19434d['subUnitId'],'shapeId':_0x4820d5['drawingId']},_0x54980e=this[_0x16b859(0x1e7)][_0x16b859(0x247)](_0x296c16);return!_0x54980e||!_0x4820d5[_0x16b859(0x188)]?null:{..._0x54980e,'transform':{'left':_0x4820d5[_0x16b859(0x188)][_0x16b859(0x1db)]??0x0,'top':_0x4820d5[_0x16b859(0x188)][_0x16b859(0x204)]??0x0,'width':_0x4820d5[_0x16b859(0x188)][_0x16b859(0x19b)]??0x0,'height':_0x4820d5[_0x16b859(0x188)][_0x16b859(0x207)]??0x0,'rotation':_0x4820d5[_0x16b859(0x188)][_0x16b859(0x233)]??0x0,'flipX':_0x4820d5[_0x16b859(0x188)][_0x16b859(0x1bb)]??!0x1,'flipY':_0x4820d5[_0x16b859(0x188)][_0x16b859(0x1f7)]??!0x1}};}[_0x5eec01(0x1a1)](_0x57798c,_0x4f1fb1,_0x5e7e5e){const _0x4678cd=_0x5eec01;let _0x2e48d6=_0x4f1fb1,_0x56c2ee={..._0x4f1fb1[_0x4678cd(0x188)],'left':_0x5e7e5e[_0x4678cd(0x188)][_0x4678cd(0x1db)],'top':_0x5e7e5e[_0x4678cd(0x188)][_0x4678cd(0x204)],'width':_0x5e7e5e['transform'][_0x4678cd(0x19b)],'height':_0x5e7e5e[_0x4678cd(0x188)][_0x4678cd(0x207)],'angle':_0x5e7e5e[_0x4678cd(0x188)][_0x4678cd(0x1b8)],'flipX':_0x5e7e5e[_0x4678cd(0x188)][_0x4678cd(0x1bb)],'flipY':_0x5e7e5e[_0x4678cd(0x188)][_0x4678cd(0x1f7)]},_0x586c24={..._0x2e48d6,'transform':_0x56c2ee,'sheetTransform':_0x3bb572(_0x56c2ee,_0x57798c['skeleton']),'axisAlignSheetTransform':_0x3d75ac(_0x56c2ee,_0x57798c[_0x4678cd(0x1f0)]),'data':{..._0x2e48d6[_0x4678cd(0x1e5)],'shapeType':_0x5e7e5e['shapeType'],'shapeData':_0x580376['deepClone'](_0x5e7e5e[_0x4678cd(0x223)])}};_0x57798c[_0x4678cd(0x21e)][_0x4678cd(0x1dc)](_0x4f1fb1[_0x4678cd(0x1a3)],_0x586c24);}};Ee=le([X(0x0,_0x1bc4cb(Z)),X(0x1,_0x1bc4cb(Ce)),X(0x2,_0x1bc4cb(_0x11fc84))],Ee);let $=class extends _0x2c78ba{constructor(_0x3bd302=we,_0x57b1bd,_0x56bb52){const _0x45a898=_0x5eec01;super(),this['_config']=_0x3bd302,this[_0x45a898(0x1aa)]=_0x57b1bd,this[_0x45a898(0x1fa)]=_0x56bb52;let {..._0xa34419}=_0x4834c5({},we,this[_0x45a898(0x1fb)]);this[_0x45a898(0x1fa)]['setConfig'](_0x45a898(0x21d),_0xa34419);}[_0x5eec01(0x1c0)](){const _0x15fc78=_0x5eec01;let _0x3a331e=this[_0x15fc78(0x1aa)];[[ce],[Z],[Ce],[Ee],[Te]]['forEach'](_0x1abd8c=>_0x3a331e[_0x15fc78(0x218)](_0x1abd8c)),_0x31fee5(_0x3a331e,[[Z],[Ee],[Te]]);}};Y($,_0x5eec01(0x1c2),_0x52f505[_0x5eec01(0x1a2)]),Y($,_0x5eec01(0x1ee),'SHEET_SHAPE_PLUGIN'),Y($,_0x5eec01(0x203),be),Y($,_0x5eec01(0x21b),xe),$=le([_0x11c376(_0x5ea6ea,_0x1981ae,_0x4b58fe,_0x151d66,_0x13c793),X(0x1,_0x1bc4cb(_0x56641b)),X(0x2,_0x1b93e1)],$);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,Z as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,Q as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
1
+ const _0x1526f0=_0x2a81;(function(_0x12bb75,_0x2657aa){const _0x241c4e=_0x2a81,_0x272a44=_0x12bb75();while(!![]){try{const _0x197498=-parseInt(_0x241c4e(0xee))/0x1*(parseInt(_0x241c4e(0xa4))/0x2)+-parseInt(_0x241c4e(0xc9))/0x3*(parseInt(_0x241c4e(0x117))/0x4)+-parseInt(_0x241c4e(0xf1))/0x5*(parseInt(_0x241c4e(0x8a))/0x6)+parseInt(_0x241c4e(0xba))/0x7*(parseInt(_0x241c4e(0x109))/0x8)+-parseInt(_0x241c4e(0xce))/0x9+-parseInt(_0x241c4e(0xd4))/0xa*(parseInt(_0x241c4e(0x91))/0xb)+parseInt(_0x241c4e(0xa1))/0xc*(parseInt(_0x241c4e(0x6d))/0xd);if(_0x197498===_0x2657aa)break;else _0x272a44['push'](_0x272a44['shift']());}catch(_0x751c0f){_0x272a44['push'](_0x272a44['shift']());}}}(_0x4f03,0xad9cc));import{IShapeHostAdapterRegistry as _0x100e7a,ShapeModel as _0x12f1ea,UniverShapePlugin as _0x49a111,buildConnectorEndpointUpdate as _0x2dd69a,canApplyShapeFormulaLastValue as _0x359dd2,computeConnectorRouteLayout as _0x43f174,createDefaultInsertedShapeData as _0x45c94b,createFreeConnectorPointInfo as _0x14d912,createUniqueShapeName as _0x4ed56e,getBasicShapeRotateBound as _0x5bebf9,isConnectorShape as _0x262dd0,resolveConnectorRoutePoints as _0x1683bf,resolveShapeConnectionPoint as _0x6282a,routeConnectorLineShape as _0x41ca93}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x58d5a5,CommandType as _0x37d9b1,DependentOn as _0x88874c,Disposable as _0x1f6469,DrawingTypeEnum as _0x504c05,ICommandService as _0x112637,IConfigService as _0x1d41a0,IResourceManagerService as _0xe3ae63,IUndoRedoService as _0x468f04,IUniverInstanceService as _0x4eaf4c,Inject as _0x3e131b,Injector as _0x3f24f3,Plugin as _0xf62a73,Tools as _0x1e7cd3,UniverInstanceType as _0x3a6d07,generateRandomId as _0x4443aa,merge as _0xc3fe6a,sequenceExecute as _0x5a4363,touchDependencies as _0x13928d}from'@univerjs/core';import{SheetInterceptorService as _0x560256,SheetSkeletonService as _0x45a18d,UniverSheetsPlugin as _0x32bbd9,getSheetCommandTarget as _0x1a3067}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x388382,DrawingApplyType as _0x92ce6e,ISheetDrawingService as _0xeac5f4,InsertSheetDrawingCommand as _0x1f91a8,RemoveSheetDrawingCommand as _0x1aeaf6,SetDrawingApplyMutation as _0x3bddf0,SetDrawingArrangeCommand as _0x50a225,SetSheetDrawingCommand as _0x2fa2b2,SheetDrawingAnchorType as _0x21d9c7,SheetDrawingTransformPlanService as _0x50a4fe,UniverSheetsDrawingPlugin as _0x5fba8a,transformToAxisAlignPosition as _0x44e989,transformToDrawingPosition as _0x54d7fb}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x5eaaa0}from'@univerjs-pro/license';import{IDrawingManagerService as _0x2279ca,UniverDrawingPlugin as _0x329c8d}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x494146){'@babel/helpers - typeof';const _0x3fe506=_0x2a81;return ae=typeof Symbol=='function'&&typeof Symbol[_0x3fe506(0xbe)]=='symbol'?function(_0x4484c6){return typeof _0x4484c6;}:function(_0x198523){const _0x378b22=_0x3fe506;return _0x198523&&typeof Symbol==_0x378b22(0x103)&&_0x198523[_0x378b22(0xcf)]===Symbol&&_0x198523!==Symbol['prototype']?_0x378b22(0xd2):typeof _0x198523;},ae(_0x494146);}function oe(_0x342231,_0xc6975a){const _0x5cd14d=_0x2a81;if(ae(_0x342231)!=_0x5cd14d(0x11f)||!_0x342231)return _0x342231;var _0x5bc691=_0x342231[Symbol[_0x5cd14d(0x6e)]];if(_0x5bc691!==void 0x0){var _0x3380ba=_0x5bc691[_0x5cd14d(0x101)](_0x342231,_0xc6975a||_0x5cd14d(0x87));if(ae(_0x3380ba)!=_0x5cd14d(0x11f))return _0x3380ba;throw TypeError(_0x5cd14d(0x12c));}return(_0xc6975a===_0x5cd14d(0x6c)?String:Number)(_0x342231);}function se(_0x2806a3){const _0x462382=_0x2a81;var _0x1879e6=oe(_0x2806a3,_0x462382(0x6c));return ae(_0x1879e6)==_0x462382(0xd2)?_0x1879e6:_0x1879e6+'';}function X(_0x1baf01,_0x773d01,_0x40ab96){const _0x53d0a5=_0x2a81;return(_0x773d01=se(_0x773d01))in _0x1baf01?Object[_0x53d0a5(0xb7)](_0x1baf01,_0x773d01,{'value':_0x40ab96,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1baf01[_0x773d01]=_0x40ab96,_0x1baf01;}var ce=class extends _0x1f6469{constructor(){const _0x45254a=_0x2a81;super(),X(this,_0x45254a(0xde),new Map()),X(this,_0x45254a(0x85),new Set()),X(this,_0x45254a(0xf2),new Set());}[_0x1526f0(0x6a)](_0x582633,_0x339c8e,_0x38dfdc,_0x5314fb){const _0x69177e=_0x1526f0;let _0x2979f5=new _0x12f1ea(_0x582633,_0x339c8e,_0x38dfdc,_0x5314fb);return this[_0x69177e(0xde)]['set'](_0x339c8e,_0x2979f5),_0x262dd0(_0x582633)&&this[_0x69177e(0x85)][_0x69177e(0xf0)](_0x339c8e),_0x2979f5;}['getBasicShapeRelation'](_0x2b203e){const _0x59b2ed=_0x1526f0;let _0x877105=[];for(let _0x227d23 of this[_0x59b2ed(0x85)]){let _0x24d3fe=this[_0x59b2ed(0xde)][_0x59b2ed(0xd6)](_0x227d23);if(_0x24d3fe){let _0x5b4832=_0x24d3fe['getShapeRelation']();if(_0x5b4832){var _0x35ee70,_0xcaa082;((_0x35ee70=_0x5b4832[_0x59b2ed(0xdb)])==null?void 0x0:_0x35ee70[_0x59b2ed(0xed)])===_0x2b203e&&_0x877105[_0x59b2ed(0xfd)]({..._0x5b4832[_0x59b2ed(0xdb)],'lineShapeId':_0x227d23,'isFrom':!0x0}),((_0xcaa082=_0x5b4832['to'])==null?void 0x0:_0xcaa082[_0x59b2ed(0xed)])===_0x2b203e&&_0x877105['push']({..._0x5b4832['to'],'lineShapeId':_0x227d23,'isFrom':!0x1});}}}return _0x877105;}['getLineShapeRelation'](_0x4df85c){const _0x491e2c=_0x1526f0;let _0x2e8527=this[_0x491e2c(0xde)][_0x491e2c(0xd6)](_0x4df85c);if(_0x2e8527)return _0x2e8527[_0x491e2c(0xcc)]();}[_0x1526f0(0x100)](_0x2601da){const _0x49cb21=_0x1526f0;let _0x1a4b52=this['_shapes'][_0x49cb21(0xd6)](_0x2601da);if(_0x1a4b52)return _0x1a4b52[_0x49cb21(0x100)]();}['hasShape'](_0x1f131b){const _0x288e69=_0x1526f0;return this['_shapes'][_0x288e69(0x97)](_0x1f131b);}[_0x1526f0(0x80)](){const _0x1ef730=_0x1526f0;return Array[_0x1ef730(0xdb)](this[_0x1ef730(0xde)][_0x1ef730(0x8e)]())[_0x1ef730(0x124)](_0x291f5a=>_0x291f5a['getName']()||_0x291f5a[_0x1ef730(0xfb)]());}[_0x1526f0(0x10a)](_0x3738a0){const _0x429831=_0x1526f0;let _0x168771=this['_shapes'][_0x429831(0xd6)](_0x3738a0);_0x168771&&(_0x262dd0(_0x168771[_0x429831(0x100)]())&&this['_linesIds']['delete'](_0x3738a0),this[_0x429831(0xde)][_0x429831(0xb2)](_0x3738a0));}['toJSON'](){const _0x53da58=_0x1526f0;let _0x5b84d5=[];return this[_0x53da58(0xde)][_0x53da58(0xaf)](_0x141281=>{const _0x379c78=_0x53da58;_0x5b84d5[_0x379c78(0xfd)](_0x141281[_0x379c78(0xfa)]());}),_0x5b84d5;}[_0x1526f0(0xbd)](_0x17dc22){const _0x23aa01=_0x1526f0;for(let _0x4fe654 of _0x17dc22){let {id:_0x354bf2,shapeType:_0x476ac5,name:_0x345c5b}=_0x4fe654,_0x5ad58c=this['addShape'](_0x476ac5,_0x354bf2,_0x4fe654[_0x23aa01(0x6f)],_0x345c5b);_0x5ad58c&&_0x5ad58c[_0x23aa01(0x106)]()&&this[_0x23aa01(0x85)][_0x23aa01(0xf0)](_0x354bf2);}}[_0x1526f0(0xf7)](){const _0x11d967=_0x1526f0;this[_0x11d967(0xf9)]||(this[_0x11d967(0xde)][_0x11d967(0xaf)](_0x4f3566=>{const _0x411d17=_0x11d967;_0x4f3566[_0x411d17(0xf7)]();}),this[_0x11d967(0xde)][_0x11d967(0x130)](),this[_0x11d967(0x85)][_0x11d967(0x130)](),this['_groupIds']['clear'](),super[_0x11d967(0xf7)]());}};function Z(_0x516a37,_0x50c4b6){return function(_0x28ddb6,_0x351965){_0x50c4b6(_0x28ddb6,_0x351965,_0x516a37);};}function le(_0x57394f,_0x1ad0aa,_0x2f1d50,_0x45df83){const _0x298442=_0x1526f0;var _0x1e0abe=arguments[_0x298442(0xbb)],_0x1f9732=_0x1e0abe<0x3?_0x1ad0aa:_0x45df83===null?_0x45df83=Object[_0x298442(0x134)](_0x1ad0aa,_0x2f1d50):_0x45df83,_0x1a91d8;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x298442(0x103))_0x1f9732=Reflect[_0x298442(0xec)](_0x57394f,_0x1ad0aa,_0x2f1d50,_0x45df83);else{for(var _0x36de99=_0x57394f['length']-0x1;_0x36de99>=0x0;_0x36de99--)(_0x1a91d8=_0x57394f[_0x36de99])&&(_0x1f9732=(_0x1e0abe<0x3?_0x1a91d8(_0x1f9732):_0x1e0abe>0x3?_0x1a91d8(_0x1ad0aa,_0x2f1d50,_0x1f9732):_0x1a91d8(_0x1ad0aa,_0x2f1d50))||_0x1f9732);}return _0x1e0abe>0x3&&_0x1f9732&&Object[_0x298442(0xb7)](_0x1ad0aa,_0x2f1d50,_0x1f9732),_0x1f9732;}let Q=class extends _0x1f6469{constructor(_0x462cd8){const _0x1361c5=_0x1526f0;super(),this['_resourcesManagerService']=_0x462cd8,X(this,_0x1361c5(0x74),new Map()),this[_0x1361c5(0x11d)]();}[_0x1526f0(0xbf)](_0x431982,_0x124dda){const _0x5e8fae=_0x1526f0;let _0x334bd1=this[_0x5e8fae(0x74)][_0x5e8fae(0xd6)](_0x431982);_0x334bd1||(_0x334bd1=new Map(),this[_0x5e8fae(0x74)][_0x5e8fae(0x108)](_0x431982,_0x334bd1));let _0x268d4c=_0x334bd1[_0x5e8fae(0xd6)](_0x124dda);return _0x268d4c||(_0x268d4c=new ce(),_0x334bd1[_0x5e8fae(0x108)](_0x124dda,_0x268d4c)),_0x268d4c;}['insertShape'](_0x3c387e,_0x47dc21,_0x15095b,_0x258240,_0x471275,_0x1d9d90){const _0x5bd3d3=_0x1526f0;this[_0x5bd3d3(0xbf)](_0x3c387e,_0x47dc21)[_0x5bd3d3(0x6a)](_0x15095b,_0x258240,_0x471275,_0x1d9d90);}[_0x1526f0(0x10a)](_0x514dc6,_0x58bc53,_0x91f717){const _0x5e0c9f=_0x1526f0;this[_0x5e0c9f(0xbf)](_0x514dc6,_0x58bc53)['removeShape'](_0x91f717);}[_0x1526f0(0x105)](_0x2e4099,_0x4f67bb,_0x1e1e23){const _0x4988ff=_0x1526f0;return this[_0x4988ff(0xbf)](_0x2e4099,_0x4f67bb)[_0x4988ff(0x100)](_0x1e1e23);}[_0x1526f0(0x100)](_0x301853,_0x38c118,_0x4fa79c){const _0x288fa9=_0x1526f0;return this[_0x288fa9(0xbf)](_0x301853,_0x38c118)['getShapeType'](_0x4fa79c);}[_0x1526f0(0x10f)](_0x56166c,_0x643b9d,_0x3411c0){const _0x405ea4=_0x1526f0;return this[_0x405ea4(0xbf)](_0x56166c,_0x643b9d)[_0x405ea4(0x10f)](_0x3411c0);}[_0x1526f0(0x113)](_0x133b76,_0x3cfcd6,_0x212026){const _0x16ade6=_0x1526f0;return this[_0x16ade6(0xbf)](_0x133b76,_0x3cfcd6)[_0x16ade6(0x100)](_0x212026);}[_0x1526f0(0x118)](_0x2de442,_0x34a68f,_0x2e906d){const _0x10c2d6=_0x1526f0;let _0x29aaca=this[_0x10c2d6(0xbf)](_0x2de442,_0x34a68f);if(!_0x29aaca[_0x10c2d6(0x100)](_0x2e906d))return;let _0x49d4ae=_0x29aaca[_0x10c2d6(0xde)]['get'](_0x2e906d);if(_0x49d4ae)return _0x49d4ae[_0x10c2d6(0xae)]();}[_0x1526f0(0x80)](_0x447a77,_0x49f8dc){return this['_ensureShapeModelManager'](_0x447a77,_0x49f8dc)['getShapeDisplayNames']();}[_0x1526f0(0x11e)](_0x414ce7,_0x2d73ce,_0x3383c4){const _0x56c520=_0x1526f0;return this[_0x56c520(0xbf)](_0x414ce7,_0x2d73ce)[_0x56c520(0xde)][_0x56c520(0xd6)](_0x3383c4);}[_0x1526f0(0xaa)](_0x52d233,_0x3489cf,_0x5bff27){const _0x12e5c0=_0x1526f0;return this[_0x12e5c0(0xbf)](_0x52d233,_0x3489cf)[_0x12e5c0(0xaa)](_0x5bff27);}[_0x1526f0(0x76)](_0x4fc56a,_0x310121,_0x11ae6c){const _0x5ae4e7=_0x1526f0;let _0x451a0=this[_0x5ae4e7(0xbf)](_0x4fc56a,_0x310121)[_0x5ae4e7(0xde)][_0x5ae4e7(0xd6)](_0x11ae6c);if(_0x451a0)return _0x451a0[_0x5ae4e7(0xcc)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0x13fcd2){const _0x4e0b02=_0x1526f0;let _0xc0cef2={},_0x2d5fa8=this[_0x4e0b02(0x74)][_0x4e0b02(0xd6)](_0x13fcd2);return _0x2d5fa8&&_0x2d5fa8[_0x4e0b02(0xaf)]((_0xe14258,_0x4dfa1d)=>{const _0x2b890f=_0x4e0b02;let _0x12ec19=_0xe14258[_0x2b890f(0xfa)]();_0x12ec19[_0x2b890f(0xbb)]>0x0&&(_0xc0cef2[_0x4dfa1d]=_0x12ec19);}),JSON[_0x4e0b02(0x7a)](_0xc0cef2);}[_0x1526f0(0xd9)](_0x587cff,_0x25c58c){const _0x5d1bbc=_0x1526f0;Object[_0x5d1bbc(0x122)](_0x25c58c)[_0x5d1bbc(0xaf)](_0x4686b8=>{const _0x29be97=_0x5d1bbc;this[_0x29be97(0xbf)](_0x587cff,_0x4686b8)[_0x29be97(0xbd)](_0x25c58c[_0x4686b8]);});}[_0x1526f0(0xfa)](){const _0x53cefe=_0x1526f0;let _0x164e84={};return this[_0x53cefe(0x74)][_0x53cefe(0xaf)]((_0x1b090b,_0xfe05a4)=>{const _0x7272dc=_0x53cefe;_0x164e84[_0xfe05a4]={},_0x1b090b[_0x7272dc(0xaf)]((_0x1820f2,_0xf87843)=>{_0x164e84[_0xfe05a4][_0xf87843]=_0x1820f2['toJSON']();});}),_0x164e84;}[_0x1526f0(0xbd)](_0x33fa7a){const _0x30f2b8=_0x1526f0;Object[_0x30f2b8(0x122)](_0x33fa7a)['forEach'](_0x363335=>{const _0x1a7713=_0x30f2b8;let _0x3b545f=_0x33fa7a[_0x363335];Object[_0x1a7713(0x122)](_0x3b545f)[_0x1a7713(0xaf)](_0x34b24a=>{const _0xc1cc5d=_0x1a7713;this[_0xc1cc5d(0xbf)](_0x363335,_0x34b24a)[_0xc1cc5d(0xbd)](_0x3b545f[_0x34b24a]);});});}[_0x1526f0(0x11d)](){const _0x341614=_0x1526f0;this[_0x341614(0x92)][_0x341614(0x11a)]({'pluginName':_0x341614(0x125),'businesses':[_0x3a6d07[_0x341614(0xab)]],'toJson':_0x25c9db=>this[_0x341614(0x128)](_0x25c9db),'parseJson':_0x56c51a=>JSON[_0x341614(0xdc)](_0x56c51a),'onLoad':(_0x358bef,_0x3da0c0)=>{const _0x1b620a=_0x341614;this[_0x1b620a(0xd9)](_0x358bef,_0x3da0c0);},'onUnLoad':_0x10ec02=>{const _0x1d5078=_0x341614;let _0x4f35cc=this['_shapeModelManagerMap'][_0x1d5078(0xd6)](_0x10ec02);_0x4f35cc&&(_0x4f35cc[_0x1d5078(0xaf)](_0x5bc91d=>{_0x5bc91d['dispose']();}),this['_shapeModelManagerMap']['delete'](_0x10ec02));}});}['dispose'](){const _0x59130a=_0x1526f0;this[_0x59130a(0x74)]['forEach'](_0x2cd745=>{const _0x26ed99=_0x59130a;_0x2cd745[_0x26ed99(0xaf)](_0x42e872=>{const _0x4fdc76=_0x26ed99;_0x42e872[_0x4fdc76(0xf7)]();});});}};Q=le([Z(0x0,_0xe3ae63)],Q);const ue={'id':_0x1526f0(0xdf),'type':_0x37d9b1['MUTATION'],'handler':(_0x125fc0,_0x438c96)=>{const _0x3a4128=_0x1526f0;let {unitId:_0x47ce10,subUnitId:_0x33a020,shapeType:_0x26fdd5,shapeId:_0x329403,shapeName:_0x1952f5,shapeData:_0x42a2bf}=_0x438c96;return _0x125fc0[_0x3a4128(0xd6)](Q)['insertShape'](_0x47ce10,_0x33a020,_0x26fdd5,_0x329403,_0x1e7cd3[_0x3a4128(0xe8)](_0x42a2bf),_0x1952f5),!0x0;}},de={'id':'sheet.mutation.remove-shape','type':_0x37d9b1[_0x1526f0(0xa8)],'handler':(_0x48cf56,_0x55ecc7)=>{const _0x179acf=_0x1526f0;let {unitId:_0xe8710b,subUnitId:_0x1883b9,shapeId:_0x1c57b9}=_0x55ecc7;return _0x48cf56[_0x179acf(0xd6)](Q)['removeShape'](_0xe8710b,_0x1883b9,_0x1c57b9),!0x0;}},fe={'type':_0x37d9b1['COMMAND'],'id':_0x1526f0(0x11c),'handler':(_0x1e2641,_0x224416)=>{const _0x126cfd=_0x1526f0;let _0x3e0945=_0x1a3067(_0x1e2641['get'](_0x4eaf4c),_0x224416);if(!_0x3e0945)return!0x1;let _0x50fbd4=_0x1e2641['get'](_0x45a18d),{unitId:_0x4e44f4,subUnitId:_0x49e34c}=_0x3e0945,_0x21d28b=_0x50fbd4['ensureSkeleton'](_0x4e44f4,_0x49e34c);if(!_0x21d28b)return!0x1;let _0x12eee7=_0x1e2641[_0x126cfd(0xd6)](_0x112637),_0x40fe1c=_0x1e2641[_0x126cfd(0xd6)](_0x468f04),_0x10f25c=_0x1e2641['get'](_0x560256),_0x5807bc=_0x1e2641[_0x126cfd(0xd6)](_0xeac5f4),_0x267feb=_0x1e2641[_0x126cfd(0xd6)](Q),{shapeType:_0x4923dd}=_0x224416,_0x2978a8=_0x224416[_0x126cfd(0x6f)]??_0x45c94b(_0x4923dd),_0x443c31=_0x224416[_0x126cfd(0xed)]||_0x4443aa(),_0x558bcb={'unitId':_0x4e44f4,'subUnitId':_0x49e34c,'shapeId':_0x443c31,'shapeName':_0x224416[_0x126cfd(0xc3)]??_0x4ed56e(_0x4923dd,_0x267feb[_0x126cfd(0x80)](_0x4e44f4,_0x49e34c)),'shapeType':_0x4923dd,'shapeData':_0x2978a8},_0x45ea23=_0x224416['width']||0xc8,_0x330b09=_0x224416[_0x126cfd(0x72)]||0xc8,_0x543bbd=0x0,_0x450e35=0x0;if(_0x224416[_0x126cfd(0x10b)]){let {x:_0x4bb25d,y:_0x55f1b4}=_0x224416[_0x126cfd(0x10b)];_0x543bbd=_0x4bb25d,_0x450e35=_0x55f1b4;}else{if(_0x224416[_0x126cfd(0x98)]){let {startRow:_0x5d8a73,startColumn:_0x27157a}=_0x224416[_0x126cfd(0x98)],_0x484a8e=_0x21d28b[_0x126cfd(0x139)](_0x5d8a73,_0x27157a);_0x543bbd=_0x484a8e[_0x126cfd(0x12b)]+0xa,_0x450e35=_0x484a8e[_0x126cfd(0xe5)]+0xa;}}let _0x4c4048={'left':_0x543bbd,'top':_0x450e35,'width':_0x45ea23,'height':_0x330b09,'angle':_0x224416[_0x126cfd(0xc2)]??0x0,'flipX':_0x224416[_0x126cfd(0xb0)]??!0x1,'flipY':_0x224416[_0x126cfd(0x12e)]??!0x1},_0xab423d=_0x54d7fb(_0x4c4048,_0x21d28b),_0x4e4192=_0x44e989(_0x4c4048,_0x21d28b),_0x35a588={'unitId':_0x4e44f4,'subUnitId':_0x49e34c,'drawingId':_0x443c31,'drawingType':_0x504c05[_0x126cfd(0xe1)],'anchorType':_0x21d9c7['Both'],'name':_0x224416['name'],'description':_0x224416[_0x126cfd(0x77)],'sheetTransform':_0xab423d,'transform':_0x4c4048,'data':{'shapeType':_0x4923dd,'shapeData':_0x2978a8},'axisAlignSheetTransform':_0x4e4192,'allowTransform':!0x0,'hidden':_0x224416[_0x126cfd(0x9a)]===!0x1,'selectable':_0x224416[_0x126cfd(0x11b)]??!0x0};_0x262dd0(_0x4923dd)&&(_0x35a588[_0x126cfd(0x7b)][_0x126cfd(0x79)]=!0x1,_0x35a588['data'][_0x126cfd(0x88)]=!0x1,_0x35a588[_0x126cfd(0x7b)]['resizeEnabled']=!0x1,_0x35a588[_0x126cfd(0x7b)]['borderEnabled']=!0x1,_0x35a588[_0x126cfd(0xdd)][_0x126cfd(0x88)]=!0x1,_0x35a588[_0x126cfd(0xdd)][_0x126cfd(0x132)]=!0x1,_0x35a588[_0x126cfd(0xdd)][_0x126cfd(0x112)]=!0x1);let {undo:_0xfccb7d,redo:_0x31a00d,objects:_0x14fed1}=_0x5807bc['getBatchAddOp']([_0x35a588]),_0x49b152=_0x10f25c[_0x126cfd(0xac)]({'id':_0x1f91a8['id'],'params':{'unitId':_0x4e44f4,'drawings':[_0x35a588]}}),_0x2a8022=[..._0x49b152[_0x126cfd(0x137)]??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x4e44f4,'subUnitId':_0x49e34c,'op':_0x31a00d,'objects':_0x14fed1,'type':_0x92ce6e[_0x126cfd(0x12a)]}},{'id':_0x388382['id'],'params':[_0x4e44f4]},..._0x49b152['redos'],{'id':ue['id'],'params':_0x558bcb}],_0x4bfdd9=[{'id':de['id'],'params':{'unitId':_0x4e44f4,'subUnitId':_0x49e34c,'shapeId':_0x443c31}},..._0x49b152['preUndos']??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x4e44f4,'subUnitId':_0x49e34c,'op':_0xfccb7d,'objects':_0x14fed1,'type':_0x92ce6e[_0x126cfd(0x120)]}},{'id':_0x388382['id'],'params':[_0x4e44f4]},..._0x49b152['undos']];return _0x5a4363(_0x2a8022,_0x12eee7)[_0x126cfd(0xf4)]?(_0x40fe1c['pushUndoRedo']({'unitID':_0x4e44f4,'undoMutations':_0x4bfdd9,'redoMutations':_0x2a8022}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x37d9b1['MUTATION'],'handler':(_0x21db50,_0x20a07b)=>{const _0x4ff83c=_0x1526f0;let {unitId:_0x2ff3bc,subUnitId:_0x413957,shapeType:_0x42916f,shapeId:_0x41f512,shapeData:_0x5c3baa,replace:_0x42f091,formulaLastValueGuard:_0x3c5610}=_0x20a07b,_0xd66e88=_0x21db50[_0x4ff83c(0xd6)](Q)[_0x4ff83c(0x11e)](_0x2ff3bc,_0x413957,_0x41f512);if(_0xd66e88){var _0x477181;if(!_0x359dd2(_0x21db50,{'hostType':_0x3a6d07[_0x4ff83c(0xab)],'unitId':_0x2ff3bc,'subUnitId':_0x413957,'shapeId':_0x41f512},(_0x477181=_0xd66e88[_0x4ff83c(0xae)]()[_0x4ff83c(0x123)])==null?void 0x0:_0x477181['formula'],_0x3c5610))return!0x0;_0x42916f!==void 0x0&&_0xd66e88['setShapeType'](_0x42916f),_0x5c3baa&&(_0xd66e88==null||_0xd66e88[_0x4ff83c(0xe7)](_0x1e7cd3[_0x4ff83c(0xe8)](_0x5c3baa),!_0x42f091));}return!0x0;}},pe={'type':_0x37d9b1['COMMAND'],'id':_0x1526f0(0x84),'handler':(_0x3dc23d,_0x49e34f)=>{const _0x3cb0ae=_0x1526f0;let _0x90960e=_0x1a3067(_0x3dc23d[_0x3cb0ae(0xd6)](_0x4eaf4c),_0x49e34f);if(!_0x90960e)return!0x1;let _0x27a7ac=_0x3dc23d[_0x3cb0ae(0xd6)](_0x45a18d),{unitId:_0x316f60,subUnitId:_0x47e1b2}=_0x90960e,_0x297f12=_0x27a7ac['ensureSkeleton'](_0x316f60,_0x47e1b2);if(!_0x297f12)return!0x1;let _0x198f3d=_0x3dc23d[_0x3cb0ae(0xd6)](Q),{shapeId:_0x796d3d,shapeType:_0x319bb1,shapeData:_0x4022e2,position:_0x21a6c9,width:_0x389bd0,height:_0x3489e0}=_0x49e34f,_0x54db26=_0x198f3d[_0x3cb0ae(0x11e)](_0x316f60,_0x47e1b2,_0x796d3d);if(!_0x54db26)return!0x1;let _0x1f1400=_0x3dc23d[_0x3cb0ae(0xd6)](_0x112637),_0x31f57b=_0x3dc23d['get'](_0x468f04),_0xae6542=_0x3dc23d[_0x3cb0ae(0xd6)](_0x560256),_0x3f0bc4=_0x3dc23d[_0x3cb0ae(0xd6)](_0xeac5f4),_0x4bf4fb={'unitId':_0x316f60,'subUnitId':_0x47e1b2,'shapeId':_0x796d3d,'shapeType':_0x319bb1,'shapeData':_0x4022e2,'replace':!0x0},_0x4bbf55=_0x54db26[_0x3cb0ae(0x100)](),_0x14fe9e=_0x54db26['getShapeData'](),{x:_0x2b1bda,y:_0x358097}=_0x21a6c9,_0x252635={'left':_0x2b1bda,'top':_0x358097,'width':_0x389bd0,'height':_0x3489e0,'angle':_0x49e34f[_0x3cb0ae(0xc2)]??0x0,'flipX':_0x49e34f[_0x3cb0ae(0xb0)]??!0x1,'flipY':_0x49e34f[_0x3cb0ae(0x12e)]??!0x1},_0x1a5c6d=_0x54d7fb(_0x252635,_0x297f12),_0x3600ed=_0x44e989(_0x252635,_0x297f12),_0x836c79={'unitId':_0x316f60,'subUnitId':_0x47e1b2,'drawingId':_0x796d3d,'drawingType':_0x504c05['DRAWING_SHAPE'],'name':_0x49e34f[_0x3cb0ae(0xbc)],'description':_0x49e34f[_0x3cb0ae(0x77)],'sheetTransform':_0x1a5c6d,'transform':_0x252635,'data':{'shapeType':_0x319bb1,'shapeData':_0x4022e2},'axisAlignSheetTransform':_0x3600ed,'allowTransform':!0x0,'hidden':!_0x49e34f[_0x3cb0ae(0x9a)],'selectable':_0x49e34f[_0x3cb0ae(0x11b)]};_0x262dd0(_0x319bb1)&&(_0x836c79[_0x3cb0ae(0x7b)][_0x3cb0ae(0x79)]=!0x1,_0x836c79[_0x3cb0ae(0x7b)]['rotateEnabled']=!0x1,_0x836c79[_0x3cb0ae(0x7b)][_0x3cb0ae(0x132)]=!0x1,_0x836c79[_0x3cb0ae(0x7b)][_0x3cb0ae(0x112)]=!0x1,_0x836c79[_0x3cb0ae(0xdd)]['rotateEnabled']=!0x1,_0x836c79[_0x3cb0ae(0xdd)]['resizeEnabled']=!0x1,_0x836c79[_0x3cb0ae(0xdd)][_0x3cb0ae(0x112)]=!0x1);let {undo:_0x5ea5ec,redo:_0x456a9c,objects:_0x5af856}=_0x3f0bc4[_0x3cb0ae(0xca)]([_0x836c79]),_0xa94b11=_0xae6542[_0x3cb0ae(0xac)]({'id':_0x2fa2b2['id'],'params':{'unitId':_0x316f60,'drawings':[_0x836c79]}}),_0x9c8074=[..._0xa94b11[_0x3cb0ae(0x137)]??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x316f60,'subUnitId':_0x47e1b2,'op':_0x456a9c,'objects':_0x5af856,'type':_0x92ce6e[_0x3cb0ae(0x121)]}},{'id':_0x388382['id'],'params':[_0x316f60]},..._0xa94b11[_0x3cb0ae(0x135)],{'id':$['id'],'params':_0x4bf4fb}],_0x188789=[..._0xa94b11['preUndos']??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x316f60,'subUnitId':_0x47e1b2,'op':_0x5ea5ec,'objects':_0x5af856,'type':_0x92ce6e['UPDATE']}},{'id':_0x388382['id'],'params':[_0x316f60]},..._0xa94b11[_0x3cb0ae(0x10d)],{'id':$['id'],'params':{'unitId':_0x316f60,'subUnitId':_0x47e1b2,'shapeType':_0x4bbf55,'shapeId':_0x796d3d,'shapeData':_0x14fe9e,'replace':!0x0}}];return _0x5a4363(_0x9c8074,_0x1f1400)['result']?(_0x31f57b[_0x3cb0ae(0x9f)]({'unitID':_0x316f60,'undoMutations':_0x188789,'redoMutations':_0x9c8074}),!0x0):!0x1;}},me={'type':_0x37d9b1[_0x1526f0(0x93)],'id':_0x1526f0(0xe4),'handler':(_0x423d2a,_0x3c627e)=>{const _0x4f238a=_0x1526f0;let _0x39ca16=_0x1a3067(_0x423d2a[_0x4f238a(0xd6)](_0x4eaf4c),_0x3c627e);if(!_0x39ca16)return!0x1;let _0x57549d=_0x423d2a[_0x4f238a(0xd6)](_0x45a18d),{unitId:_0x59b475,subUnitId:_0x1d258a}=_0x39ca16,_0x1103d5=_0x57549d[_0x4f238a(0xd3)](_0x59b475,_0x1d258a);if(!_0x1103d5)return!0x1;let _0x551f48=_0x423d2a['get'](_0xeac5f4),{shapeId:_0x42dcc6,flipH:_0xe716cf,flipV:_0x18c693}=_0x3c627e,_0x2e1eae=_0x551f48[_0x4f238a(0xcd)]({'unitId':_0x59b475,'subUnitId':_0x1d258a,'drawingId':_0x42dcc6});if(!_0x2e1eae)return!0x1;let _0x4757e2=_0x423d2a[_0x4f238a(0xd6)](Q)['getShapeModel'](_0x59b475,_0x1d258a,_0x42dcc6);if(!_0x4757e2)return!0x1;let _0x17157c=_0x423d2a[_0x4f238a(0xd6)](_0x112637),_0x322200=_0x423d2a[_0x4f238a(0xd6)](_0x468f04),_0x4ca277=_0x423d2a[_0x4f238a(0xd6)](_0x560256),_0x2b8d58={..._0x2e1eae[_0x4f238a(0xdd)]};_0xe716cf!==void 0x0&&(_0x2b8d58['flipX']=!_0x2b8d58[_0x4f238a(0xb0)]),_0x18c693!==void 0x0&&(_0x2b8d58['flipY']=!_0x2b8d58['flipY']);let _0x362c1a=_0x54d7fb(_0x2b8d58,_0x1103d5),_0x510f95=_0x44e989(_0x2b8d58,_0x1103d5),_0x342d26=_0x4757e2[_0x4f238a(0x100)](),_0x5387ad=_0x4757e2['getShapeData'](),_0x3ba990={'unitId':_0x59b475,'subUnitId':_0x1d258a,'drawingId':_0x42dcc6,'drawingType':_0x504c05['DRAWING_SHAPE'],'sheetTransform':_0x362c1a,'transform':_0x2b8d58,'data':{'shapeType':_0x342d26,'shapeData':_0x5387ad},'axisAlignSheetTransform':_0x510f95,'allowTransform':!0x0},{undo:_0x237a3e,redo:_0x1a6460,objects:_0x131993}=_0x551f48['getBatchUpdateOp']([_0x3ba990]),_0x568e7e=_0x4ca277[_0x4f238a(0xac)]({'id':_0x2fa2b2['id'],'params':{'unitId':_0x59b475,'drawings':[_0x3ba990]}}),_0x5b7b69=[..._0x568e7e['preRedos']??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x59b475,'subUnitId':_0x1d258a,'op':_0x1a6460,'objects':_0x131993,'type':_0x92ce6e[_0x4f238a(0x121)]}},{'id':_0x388382['id'],'params':[_0x59b475]},..._0x568e7e['redos']],_0x4408b5=[..._0x568e7e[_0x4f238a(0xd1)]??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x59b475,'subUnitId':_0x1d258a,'op':_0x237a3e,'objects':_0x131993,'type':_0x92ce6e[_0x4f238a(0x121)]}},{'id':_0x388382['id'],'params':[_0x59b475]},..._0x568e7e[_0x4f238a(0x10d)]];if(_0x262dd0(_0x342d26)){let _0x387f55=_0x4757e2[_0x4f238a(0xcc)]();if(_0x387f55){let _0x61feee={..._0x387f55};_0x61feee[_0x4f238a(0xdb)]=void 0x0,_0x61feee['to']=void 0x0,_0x5b7b69['push']({'id':$['id'],'params':{'unitId':_0x59b475,'subUnitId':_0x1d258a,'shapeId':_0x42dcc6,'shapeType':_0x342d26,'shapeData':{'relation':_0x61feee}}}),_0x4408b5['push']({'id':$['id'],'params':{'unitId':_0x59b475,'subUnitId':_0x1d258a,'shapeId':_0x42dcc6,'shapeType':_0x342d26,'shapeData':{'relation':_0x387f55}}});}}return _0x5a4363(_0x5b7b69,_0x17157c)['result']?(_0x322200[_0x4f238a(0x9f)]({'unitID':_0x59b475,'undoMutations':_0x4408b5,'redoMutations':_0x5b7b69}),!0x0):!0x1;}},he={'type':_0x37d9b1[_0x1526f0(0x93)],'id':_0x1526f0(0x86),'handler':(_0x141d9a,_0x558b64)=>{const _0x1d8284=_0x1526f0;let _0x326bc0=_0x1a3067(_0x141d9a[_0x1d8284(0xd6)](_0x4eaf4c),_0x558b64);if(!_0x326bc0)return!0x1;let _0x1d77f8=_0x141d9a[_0x1d8284(0xd6)](_0x45a18d),{unitId:_0x39dbcd,subUnitId:_0x31776e}=_0x326bc0,_0x1527ff=_0x1d77f8[_0x1d8284(0xd3)](_0x39dbcd,_0x31776e);if(!_0x1527ff)return!0x1;let _0x47b77b=_0x141d9a[_0x1d8284(0xd6)](_0xeac5f4),{shapeId:_0x2a126c,rotate:_0x4dc8ae}=_0x558b64,_0x27c6db=_0x47b77b['getDrawingByParam']({'unitId':_0x39dbcd,'subUnitId':_0x31776e,'drawingId':_0x2a126c});if(!_0x27c6db)return!0x1;let _0x47a139=_0x141d9a[_0x1d8284(0xd6)](Q)[_0x1d8284(0x11e)](_0x39dbcd,_0x31776e,_0x2a126c);if(!_0x47a139)return!0x1;let _0x4a8008=_0x141d9a[_0x1d8284(0xd6)](_0x112637),_0xaf969a=_0x141d9a[_0x1d8284(0xd6)](_0x468f04),_0x25653e=_0x141d9a[_0x1d8284(0xd6)](_0x560256),_0x3e579f={..._0x27c6db['transform']};_0x4dc8ae!==void 0x0&&(_0x3e579f[_0x1d8284(0x8f)]=(_0x3e579f['angle']||0x0)+_0x4dc8ae);let _0x2d53f1=_0x54d7fb(_0x3e579f,_0x1527ff),_0x1c326f=_0x44e989(_0x3e579f,_0x1527ff),_0x3db718=_0x47a139[_0x1d8284(0x100)](),_0x83c014=_0x47a139['getShapeData'](),_0x481d67={'unitId':_0x39dbcd,'subUnitId':_0x31776e,'drawingId':_0x2a126c,'drawingType':_0x504c05[_0x1d8284(0xe1)],'sheetTransform':_0x2d53f1,'transform':_0x3e579f,'data':{'shapeType':_0x3db718,'shapeData':_0x83c014},'axisAlignSheetTransform':_0x1c326f,'allowTransform':!0x0},{undo:_0x5fb958,redo:_0x46dd6f,objects:_0x37d92b}=_0x47b77b[_0x1d8284(0xca)]([_0x481d67]),_0x48f1b8=_0x25653e['onCommandExecute']({'id':_0x2fa2b2['id'],'params':{'unitId':_0x39dbcd,'drawings':[_0x481d67]}}),_0x3f5b52=[..._0x48f1b8[_0x1d8284(0x137)]??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x39dbcd,'subUnitId':_0x31776e,'op':_0x46dd6f,'objects':_0x37d92b,'type':_0x92ce6e['UPDATE']}},{'id':_0x388382['id'],'params':[_0x39dbcd]},..._0x48f1b8[_0x1d8284(0x135)]],_0x219863=[..._0x48f1b8['preUndos']??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x39dbcd,'subUnitId':_0x31776e,'op':_0x5fb958,'objects':_0x37d92b,'type':_0x92ce6e[_0x1d8284(0x121)]}},{'id':_0x388382['id'],'params':[_0x39dbcd]},..._0x48f1b8[_0x1d8284(0x10d)]];return _0x5a4363(_0x3f5b52,_0x4a8008)[_0x1d8284(0xf4)]?(_0xaf969a[_0x1d8284(0x9f)]({'unitID':_0x39dbcd,'undoMutations':_0x219863,'redoMutations':_0x3f5b52}),!0x0):!0x1;}},ge={'type':_0x37d9b1['COMMAND'],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x54e721,_0x18c691)=>{const _0x52a864=_0x1526f0;let _0x54dc65=_0x1a3067(_0x54e721['get'](_0x4eaf4c),_0x18c691);if(!_0x54dc65)return!0x1;let {unitId:_0x3414d2,subUnitId:_0x301e4c}=_0x54dc65,{shapeId:_0x1c378c}=_0x18c691,_0x419405=_0x54e721[_0x52a864(0xd6)](Q)[_0x52a864(0x11e)](_0x3414d2,_0x301e4c,_0x1c378c);if(!_0x419405)return!0x1;let _0x4eef88=_0x419405[_0x52a864(0x107)](),_0x30d750=(_0x4eef88==null?void 0x0:_0x4eef88[_0x52a864(0x7e)])??!0x0,_0x39126b=!_0x30d750,_0x4dd3f5=_0x54e721['get'](_0x112637),_0x3567e5=_0x54e721[_0x52a864(0xd6)](_0x468f04),_0x1fe5fe={'unitId':_0x3414d2,'subUnitId':_0x301e4c,'shapeId':_0x1c378c,'shapeData':{'shapeText':{'isHorizontal':_0x39126b}}},_0x161fd8={'unitId':_0x3414d2,'subUnitId':_0x301e4c,'shapeId':_0x1c378c,'shapeData':{'shapeText':{'isHorizontal':_0x30d750}}},_0x56f9bc=[{'id':$['id'],'params':_0x1fe5fe}],_0x31919e=[{'id':$['id'],'params':_0x161fd8}];return _0x5a4363(_0x56f9bc,_0x4dd3f5)[_0x52a864(0xf4)]?(_0x3567e5[_0x52a864(0x9f)]({'unitID':_0x3414d2,'undoMutations':_0x31919e,'redoMutations':_0x56f9bc}),!0x0):!0x1;}},_e={'type':_0x37d9b1[_0x1526f0(0x93)],'id':_0x1526f0(0x70),'handler':(_0x59facb,_0xc1424d)=>{const _0x3381da=_0x1526f0;var _0x3e506b;let _0x34d943=_0x1a3067(_0x59facb[_0x3381da(0xd6)](_0x4eaf4c),_0xc1424d);if(!_0x34d943)return!0x1;let _0x2edbae=_0x59facb[_0x3381da(0xd6)](_0x45a18d),{unitId:_0x29114b,subUnitId:_0x2adcf9}=_0x34d943,_0x44235f=_0x2edbae[_0x3381da(0xd3)](_0x29114b,_0x2adcf9);if(!_0x44235f)return!0x1;let _0x10633c=_0x59facb[_0x3381da(0xd6)](_0xeac5f4),{connectorShapeId:_0x567fd8,width:_0x3a74ab,height:_0x2bf063,left:_0x39c579,top:_0x253253,flipX:_0x51fd78,flipY:_0x2dd45c,rotation:_0xbaad86,oldAdjustValues:_0x1c4e14,newAdjustValues:_0x3565bc,oldLineType:_0x14a82b,newLineType:_0x599722,oldRelation:_0x3d55ce,newRelation:_0x4a3d39}=_0xc1424d,_0x45d711=_0x10633c[_0x3381da(0xcd)]({'unitId':_0x29114b,'subUnitId':_0x2adcf9,'drawingId':_0x567fd8});if(!_0x45d711)return!0x1;let _0x120578=_0x59facb['get'](Q)[_0x3381da(0x11e)](_0x29114b,_0x2adcf9,_0x567fd8);if(!_0x120578)return!0x1;let _0x2ea421=_0x59facb['get'](_0x112637),_0x4a56a2=_0x59facb[_0x3381da(0xd6)](_0x468f04),_0x2573a4=_0x59facb[_0x3381da(0xd6)](_0x560256),_0x5430e7={..._0x45d711[_0x3381da(0xdd)],'width':_0x3a74ab,'height':_0x2bf063,'left':_0x39c579,'top':_0x253253,'flipX':_0x51fd78,'flipY':_0x2dd45c,'angle':_0xbaad86??((_0x3e506b=_0x45d711[_0x3381da(0xdd)])==null?void 0x0:_0x3e506b[_0x3381da(0x8f)])??0x0},_0x426d70=_0x54d7fb(_0x5430e7,_0x44235f),_0x3d5032=_0x44e989(_0x5430e7,_0x44235f),_0xf7c71b=_0x120578[_0x3381da(0x100)](),_0x50b9fd=_0x120578['getShapeData'](),_0x7cd623={'unitId':_0x29114b,'subUnitId':_0x2adcf9,'drawingId':_0x567fd8,'drawingType':_0x504c05[_0x3381da(0xe1)],'sheetTransform':_0x426d70,'transform':_0x5430e7,'data':{'shapeType':_0x599722||_0x14a82b||_0xf7c71b,'shapeData':{..._0x50b9fd,'adjustValues':_0x3565bc||_0x1c4e14||(_0x50b9fd==null?void 0x0:_0x50b9fd[_0x3381da(0x136)]),'relation':_0x4a3d39||_0x3d55ce||(_0x50b9fd==null?void 0x0:_0x50b9fd[_0x3381da(0x8b)])}},'axisAlignSheetTransform':_0x3d5032,'allowTransform':!0x0},{undo:_0x5ef08d,redo:_0x4c36a0,objects:_0xeaea45}=_0x10633c['getBatchUpdateOp']([_0x7cd623]),_0x3b4c6b=_0x2573a4[_0x3381da(0xac)]({'id':_0x2fa2b2['id'],'params':{'unitId':_0x29114b,'drawings':[_0x7cd623]}}),_0x3834af=[..._0x3b4c6b['preRedos']??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x29114b,'subUnitId':_0x2adcf9,'op':_0x4c36a0,'objects':_0xeaea45,'type':_0x92ce6e[_0x3381da(0x121)]}},{'id':_0x388382['id'],'params':[_0x29114b]},..._0x3b4c6b[_0x3381da(0x135)],{'id':$['id'],'params':{'unitId':_0x29114b,'subUnitId':_0x2adcf9,'shapeId':_0x567fd8,'shapeType':_0x599722,'shapeData':{'adjustValues':_0x3565bc,'relation':_0x4a3d39}}}],_0x2d557b=[..._0x3b4c6b[_0x3381da(0xd1)]??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x29114b,'subUnitId':_0x2adcf9,'op':_0x5ef08d,'objects':_0xeaea45,'type':_0x92ce6e[_0x3381da(0x121)]}},{'id':_0x388382['id'],'params':[_0x29114b]},..._0x3b4c6b[_0x3381da(0x10d)],{'id':$['id'],'params':{'unitId':_0x29114b,'subUnitId':_0x2adcf9,'shapeId':_0x567fd8,'shapeType':_0xf7c71b,'shapeData':{..._0x50b9fd,'adjustValues':_0x1c4e14||(_0x50b9fd==null?void 0x0:_0x50b9fd[_0x3381da(0x136)]),'relation':_0x3d55ce||(_0x50b9fd==null?void 0x0:_0x50b9fd[_0x3381da(0x8b)])}}}];return _0x5a4363(_0x3834af,_0x2ea421)[_0x3381da(0xf4)]?(_0x4a56a2[_0x3381da(0x9f)]({'unitID':_0x29114b,'undoMutations':_0x2d557b,'redoMutations':_0x3834af}),!0x0):!0x1;}},ve={'type':_0x37d9b1['COMMAND'],'id':_0x1526f0(0xd5),'handler':(_0x389fd9,_0x2d1101)=>{const _0x588a43=_0x1526f0;let _0xf43cc9=_0x1a3067(_0x389fd9[_0x588a43(0xd6)](_0x4eaf4c),_0x2d1101);if(!_0xf43cc9)return!0x1;let _0x4d3ac8=_0x389fd9[_0x588a43(0xd6)](_0x45a18d),{unitId:_0x2ccab7,subUnitId:_0x58d024}=_0xf43cc9,_0x1248ea=_0x4d3ac8[_0x588a43(0xd3)](_0x2ccab7,_0x58d024);if(!_0x1248ea)return!0x1;let _0x1370ac=_0x389fd9[_0x588a43(0xd6)](_0xeac5f4),{shapeId:_0x56cf64,width:_0x4847c5,height:_0x3c597e,left:_0x5343bd,top:_0x2e70a6,flipX:_0x19a5ce,flipY:_0x117a65,angle:_0x3ecd9c,oldAdjustValues:_0x3237da,newAdjustValues:_0x173a51,oldLineType:_0x265aeb,newLineType:_0x3cb617}=_0x2d1101,_0x437b28=_0x1370ac[_0x588a43(0xcd)]({'unitId':_0x2ccab7,'subUnitId':_0x58d024,'drawingId':_0x56cf64});if(!_0x437b28)return!0x1;let _0x34e7d=_0x389fd9[_0x588a43(0xd6)](Q)[_0x588a43(0x11e)](_0x2ccab7,_0x58d024,_0x56cf64);if(!_0x34e7d)return!0x1;let _0x175864=_0x389fd9[_0x588a43(0xd6)](_0x112637),_0x5023ac=_0x389fd9[_0x588a43(0xd6)](_0x468f04),_0x4bda96=_0x389fd9['get'](_0x560256),_0x3b46c4={..._0x437b28[_0x588a43(0xdd)],'width':_0x4847c5,'height':_0x3c597e,'left':_0x5343bd,'top':_0x2e70a6,'flipX':_0x19a5ce,'flipY':_0x117a65,'angle':_0x3ecd9c},_0x373c0a=_0x54d7fb(_0x3b46c4,_0x1248ea),_0x543ec3=_0x44e989(_0x3b46c4,_0x1248ea),_0x59271a=_0x34e7d[_0x588a43(0x100)](),_0x7dc98=_0x34e7d[_0x588a43(0xae)](),_0xe1a8aa={'unitId':_0x2ccab7,'subUnitId':_0x58d024,'drawingId':_0x56cf64,'drawingType':_0x504c05[_0x588a43(0xe1)],'sheetTransform':_0x373c0a,'transform':_0x3b46c4,'data':{'shapeType':_0x3cb617||_0x265aeb||_0x59271a,'shapeData':{..._0x7dc98,'adjustValues':_0x173a51||_0x3237da||(_0x7dc98==null?void 0x0:_0x7dc98[_0x588a43(0x136)])}},'axisAlignSheetTransform':_0x543ec3,'allowTransform':!0x0},{undo:_0x2dd0eb,redo:_0xb38b9c,objects:_0x5b626d}=_0x1370ac[_0x588a43(0xca)]([_0xe1a8aa]),_0x5e4163=_0x4bda96[_0x588a43(0xac)]({'id':_0x2fa2b2['id'],'params':{'unitId':_0x2ccab7,'drawings':[_0xe1a8aa]}}),_0x796fa=[..._0x5e4163[_0x588a43(0x137)]??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x2ccab7,'subUnitId':_0x58d024,'op':_0xb38b9c,'objects':_0x5b626d,'type':_0x92ce6e[_0x588a43(0x121)]}},{'id':_0x388382['id'],'params':[_0x2ccab7]},..._0x5e4163[_0x588a43(0x135)],{'id':$['id'],'params':{'unitId':_0x2ccab7,'subUnitId':_0x58d024,'shapeId':_0x56cf64,'shapeType':_0x3cb617,'shapeData':{'adjustValues':_0x173a51}}}],_0x28f8a7=[..._0x5e4163[_0x588a43(0xd1)]??[],{'id':_0x3bddf0['id'],'params':{'unitId':_0x2ccab7,'subUnitId':_0x58d024,'op':_0x2dd0eb,'objects':_0x5b626d,'type':_0x92ce6e['UPDATE']}},{'id':_0x388382['id'],'params':[_0x2ccab7]},..._0x5e4163[_0x588a43(0x10d)],{'id':$['id'],'params':{'unitId':_0x2ccab7,'subUnitId':_0x58d024,'shapeId':_0x56cf64,'shapeType':_0x59271a,'shapeData':{..._0x7dc98,'adjustValues':_0x3237da||(_0x7dc98==null?void 0x0:_0x7dc98[_0x588a43(0x136)])}}}];return _0x5a4363(_0x796fa,_0x175864)[_0x588a43(0xf4)]?(_0x5023ac[_0x588a43(0x9f)]({'unitID':_0x2ccab7,'undoMutations':_0x28f8a7,'redoMutations':_0x796fa}),!0x0):!0x1;}},ye={'id':'sheet.mutation.update-shape-type','type':_0x37d9b1[_0x1526f0(0xa8)],'handler':(_0x13cdff,_0x4a7aae)=>{const _0x389f95=_0x1526f0;let {unitId:_0x24a3f6,subUnitId:_0x119797,shapeType:_0x186d5c,shapeId:_0x22def1,shapeData:_0x5afd8d}=_0x4a7aae,_0x276a64=_0x13cdff[_0x389f95(0xd6)](Q)[_0x389f95(0x11e)](_0x24a3f6,_0x119797,_0x22def1);return _0x276a64&&(_0x276a64[_0x389f95(0xd7)](_0x186d5c),_0x5afd8d&&(_0x276a64==null||_0x276a64[_0x389f95(0xe7)](_0x5afd8d))),!0x0;}};function _0x2a81(_0x1ed3f9,_0x48981c){_0x1ed3f9=_0x1ed3f9-0x68;const _0x4f03e6=_0x4f03();let _0x2a816d=_0x4f03e6[_0x1ed3f9];return _0x2a816d;}var be=_0x1526f0(0xc1),xe=_0x1526f0(0x9d);function Se(_0x4b0e66){const _0x5cf9fc=_0x1526f0;var _0x31bde3,_0x5c19d0,_0x35a6ab,_0x3d3c89,_0x2c3471,_0x56d207,_0x438421;return{'left':((_0x31bde3=_0x4b0e66[_0x5cf9fc(0xdd)])==null?void 0x0:_0x31bde3[_0x5cf9fc(0x131)])??0x0,'top':((_0x5c19d0=_0x4b0e66[_0x5cf9fc(0xdd)])==null?void 0x0:_0x5c19d0[_0x5cf9fc(0x7c)])??0x0,'width':((_0x35a6ab=_0x4b0e66['transform'])==null?void 0x0:_0x35a6ab[_0x5cf9fc(0x12f)])??0xc8,'height':((_0x3d3c89=_0x4b0e66['transform'])==null?void 0x0:_0x3d3c89[_0x5cf9fc(0x72)])??0xc8,'rotation':((_0x2c3471=_0x4b0e66['transform'])==null?void 0x0:_0x2c3471['rotation'])??0x0,'flipX':((_0x56d207=_0x4b0e66[_0x5cf9fc(0xdd)])==null?void 0x0:_0x56d207[_0x5cf9fc(0xb0)])??!0x1,'flipY':((_0x438421=_0x4b0e66[_0x5cf9fc(0xdd)])==null?void 0x0:_0x438421[_0x5cf9fc(0x12e)])??!0x1};}let Ce=class{constructor(_0x418a4a,_0x12ef00,_0x4dcfcf,_0x4a5ceb){const _0x55f129=_0x1526f0;this['_commandService']=_0x418a4a,this[_0x55f129(0xe2)]=_0x12ef00,this[_0x55f129(0x75)]=_0x4dcfcf,this[_0x55f129(0x127)]=_0x4a5ceb,X(this,_0x55f129(0x90),_0x3a6d07[_0x55f129(0xab)]);}get[_0x1526f0(0x9c)](){return{'subscribe':_0x362743=>{const _0x333992=_0x2a81;let _0x48619e=this['_commandService']['onCommandExecuted'](_0x11903a=>{const _0xb4e8b=_0x2a81;(_0x11903a['id']===ue['id']||_0x11903a['id']===de['id']||_0x11903a['id']===$['id']||_0x11903a['id']===ye['id'])&&_0x362743({'unitId':_0x11903a['params'][_0xb4e8b(0x95)]});});return{'unsubscribe':()=>_0x48619e[_0x333992(0xf7)]()};}};}[_0x1526f0(0xb6)](_0x551a20){const _0x3c0d87=_0x1526f0;var _0x1adae6;let _0x4d74b7=(_0x1adae6=this['_drawingService'][_0x3c0d87(0x69)](_0x551a20[_0x3c0d87(0x95)],_0x551a20[_0x3c0d87(0x99)]))==null?void 0x0:_0x1adae6[_0x551a20[_0x3c0d87(0xed)]],_0x1e8bcd=this[_0x3c0d87(0xe2)]['getShapeType'](_0x551a20[_0x3c0d87(0x95)],_0x551a20[_0x3c0d87(0x99)],_0x551a20[_0x3c0d87(0xed)]);if(!_0x4d74b7||_0x4d74b7[_0x3c0d87(0xff)]!==_0x504c05[_0x3c0d87(0xe1)]||!_0x1e8bcd)return null;let _0x1b18c6=_0x4d74b7[_0x3c0d87(0xdd)];return{..._0x551a20,'shapeType':_0x1e8bcd,'shapeData':_0x1e7cd3[_0x3c0d87(0xe8)](this[_0x3c0d87(0xe2)][_0x3c0d87(0x118)](_0x551a20[_0x3c0d87(0x95)],_0x551a20[_0x3c0d87(0x99)],_0x551a20[_0x3c0d87(0xed)])??{}),'name':_0x4d74b7['name'],'description':_0x4d74b7[_0x3c0d87(0x77)],'visible':_0x4d74b7[_0x3c0d87(0x104)]!==!0x0,'selectable':_0x4d74b7['selectable']!==!0x1,'transform':{'left':(_0x1b18c6==null?void 0x0:_0x1b18c6[_0x3c0d87(0x131)])??0x0,'top':(_0x1b18c6==null?void 0x0:_0x1b18c6[_0x3c0d87(0x7c)])??0x0,'width':(_0x1b18c6==null?void 0x0:_0x1b18c6[_0x3c0d87(0x12f)])??0xc8,'height':(_0x1b18c6==null?void 0x0:_0x1b18c6[_0x3c0d87(0x72)])??0xc8,'rotation':(_0x1b18c6==null?void 0x0:_0x1b18c6[_0x3c0d87(0x8f)])??0x0,'flipX':(_0x1b18c6==null?void 0x0:_0x1b18c6[_0x3c0d87(0xb0)])??!0x1,'flipY':(_0x1b18c6==null?void 0x0:_0x1b18c6[_0x3c0d87(0x12e)])??!0x1}};}['listShapes'](_0x5e5912){const _0x5d537f=_0x1526f0;let _0x2f74aa=this[_0x5d537f(0x75)][_0x5d537f(0x69)](_0x5e5912[_0x5d537f(0x95)],_0x5e5912[_0x5d537f(0x99)])??{};return Object['values'](_0x2f74aa)['filter'](_0x1ca22d=>(_0x1ca22d==null?void 0x0:_0x1ca22d[_0x5d537f(0xff)])===_0x504c05[_0x5d537f(0xe1)])[_0x5d537f(0x124)](_0x23f486=>this[_0x5d537f(0xb6)]({..._0x5e5912,'shapeId':_0x23f486[_0x5d537f(0xa7)]}))[_0x5d537f(0xb9)](_0x44d266=>!!_0x44d266);}['listShapesInUnit'](_0x3675f7){const _0x5b699c=_0x1526f0;let _0x82db05=this[_0x5b699c(0x127)][_0x5b699c(0x73)](_0x3675f7,_0x3a6d07['UNIVER_SHEET']);return(_0x82db05==null?void 0x0:_0x82db05[_0x5b699c(0xb4)]()['flatMap'](_0x133e16=>this[_0x5b699c(0x78)]({'hostType':this[_0x5b699c(0x90)],'unitId':_0x3675f7,'subUnitId':_0x133e16['getSheetId']()})))??[];}[_0x1526f0(0x8d)](_0x502cb4,_0x56a4ad){const _0x55424a=_0x1526f0;let _0x35b33d=_0x4443aa(),_0x2761f4=Se(_0x56a4ad),_0x3525d2=_0x1e7cd3[_0x55424a(0xe8)](_0x56a4ad[_0x55424a(0x6f)]??_0x45c94b(_0x56a4ad[_0x55424a(0x119)]));return this[_0x55424a(0xc5)][_0x55424a(0xea)](fe['id'],{'unitId':_0x502cb4[_0x55424a(0x95)],'subUnitId':_0x502cb4[_0x55424a(0x99)],'shapeId':_0x35b33d,'shapeType':_0x56a4ad['shapeType'],'shapeData':_0x3525d2,'name':_0x56a4ad[_0x55424a(0xbc)],'description':_0x56a4ad[_0x55424a(0x77)],'position':{'x':_0x2761f4[_0x55424a(0x131)],'y':_0x2761f4['top']},'width':_0x2761f4[_0x55424a(0x12f)],'height':_0x2761f4[_0x55424a(0x72)],'rotation':_0x2761f4[_0x55424a(0xc2)],'flipX':_0x2761f4[_0x55424a(0xb0)],'flipY':_0x2761f4[_0x55424a(0x12e)],'visible':_0x56a4ad[_0x55424a(0x9a)]??!0x0,'selectable':_0x56a4ad[_0x55424a(0x11b)]??!0x0})?{..._0x502cb4,'shapeId':_0x35b33d,'shapeType':_0x56a4ad[_0x55424a(0x119)],'shapeData':_0x3525d2,'name':_0x56a4ad['name'],'description':_0x56a4ad[_0x55424a(0x77)],'visible':_0x56a4ad[_0x55424a(0x9a)]??!0x0,'selectable':_0x56a4ad['selectable']??!0x0,'transform':_0x2761f4}:null;}[_0x1526f0(0x10c)](_0x1c3e55,_0x337038){const _0x3c1a44=_0x1526f0;var _0x296ae1;let _0x3eb32e=this[_0x3c1a44(0xb6)](_0x1c3e55);if(!_0x3eb32e)return!0x1;let _0x48dfed={..._0x3eb32e['transform'],..._0x337038[_0x3c1a44(0xdd)]};return this[_0x3c1a44(0xc5)][_0x3c1a44(0xea)](pe['id'],{'unitId':_0x1c3e55[_0x3c1a44(0x95)],'subUnitId':_0x1c3e55[_0x3c1a44(0x99)],'shapeId':_0x1c3e55[_0x3c1a44(0xed)],'shapeType':_0x337038['shapeType']??((_0x296ae1=_0x337038[_0x3c1a44(0x6f)])==null?void 0x0:_0x296ae1['shapeType'])??_0x3eb32e[_0x3c1a44(0x119)],'shapeData':_0x337038['shapeData']??_0x3eb32e['shapeData'],'position':{'x':_0x48dfed[_0x3c1a44(0x131)],'y':_0x48dfed[_0x3c1a44(0x7c)]},'width':_0x48dfed['width'],'height':_0x48dfed[_0x3c1a44(0x72)],'rotation':_0x48dfed['rotation'],'flipX':_0x48dfed[_0x3c1a44(0xb0)],'flipY':_0x48dfed['flipY'],'name':_0x3c1a44(0xbc)in _0x337038?_0x337038[_0x3c1a44(0xbc)]:_0x3eb32e['name'],'description':'description'in _0x337038?_0x337038[_0x3c1a44(0x77)]:_0x3eb32e[_0x3c1a44(0x77)],'visible':_0x337038[_0x3c1a44(0x9a)]??_0x3eb32e[_0x3c1a44(0x9a)],'selectable':_0x337038[_0x3c1a44(0x11b)]??_0x3eb32e[_0x3c1a44(0x11b)]});}[_0x1526f0(0x71)](_0x143d3f,_0x4c158a,_0x273450){const _0x5de67a=_0x1526f0;let _0x2e93ef=this[_0x5de67a(0xb6)](_0x143d3f),_0x51c84c=_0x2e93ef==null?void 0x0:_0x2e93ef[_0x5de67a(0x6f)][_0x5de67a(0x123)];return!_0x2e93ef||!_0x51c84c?null:{'id':$['id'],'params':{'unitId':_0x143d3f[_0x5de67a(0x95)],'subUnitId':_0x143d3f[_0x5de67a(0x99)],'shapeId':_0x143d3f['shapeId'],'shapeData':{..._0x2e93ef[_0x5de67a(0x6f)],'formulaBinding':{..._0x51c84c,'lastValue':_0x1e7cd3[_0x5de67a(0xe8)](_0x273450)}},'replace':!0x0,'formulaLastValueGuard':_0x4c158a}};}[_0x1526f0(0x10a)](_0x4548ec){const _0xff1a92=_0x1526f0;return this['_commandService'][_0xff1a92(0xea)](_0x1aeaf6['id'],{'unitId':_0x4548ec[_0xff1a92(0x95)],'drawings':[{'unitId':_0x4548ec[_0xff1a92(0x95)],'subUnitId':_0x4548ec[_0xff1a92(0x99)],'drawingId':_0x4548ec['shapeId'],'drawingType':_0x504c05['DRAWING_SHAPE']}]});}[_0x1526f0(0xa9)](_0x6b81b4){const _0x39f43a=_0x1526f0;return this[_0x39f43a(0x129)](_0x6b81b4,_0x58d5a5[_0x39f43a(0xe3)]);}[_0x1526f0(0xd8)](_0x35c7c1){const _0x554e1e=_0x1526f0;return this[_0x554e1e(0x129)](_0x35c7c1,_0x58d5a5[_0x554e1e(0xa0)]);}[_0x1526f0(0xa6)](_0x50896a){const _0x60c006=_0x1526f0;return this[_0x60c006(0x129)](_0x50896a,_0x58d5a5['backward']);}['sendToBack'](_0x1c13ce){const _0x12be7c=_0x1526f0;return this[_0x12be7c(0x129)](_0x1c13ce,_0x58d5a5['back']);}['setZOrder'](_0x4c978d,_0x4e90e1){const _0x2fd431=_0x1526f0;return this[_0x2fd431(0xc5)]['syncExecuteCommand'](_0x50a225['id'],{'unitId':_0x4c978d[_0x2fd431(0x95)],'subUnitId':_0x4c978d[_0x2fd431(0x99)],'drawingIds':[_0x4c978d[_0x2fd431(0xed)]],'zOrder':_0x4e90e1});}['_arrange'](_0x3daa2b,_0x4e7949){const _0x1a6d69=_0x1526f0;return this['_commandService'][_0x1a6d69(0xea)](_0x50a225['id'],{'unitId':_0x3daa2b['unitId'],'subUnitId':_0x3daa2b[_0x1a6d69(0x99)],'drawingIds':[_0x3daa2b[_0x1a6d69(0xed)]],'arrangeType':_0x4e7949});}};Ce=le([Z(0x0,_0x112637),Z(0x1,_0x3e131b(Q)),Z(0x2,_0xeac5f4),Z(0x3,_0x4eaf4c)],Ce);const we={};let Te=class extends _0x1f6469{constructor(_0x5df273,_0x45c597,_0x10949a,_0x4f2df2,_0x1ffd66,_0xac2e38,_0x1215f9){const _0x2f252f=_0x1526f0;super(),this[_0x2f252f(0xc5)]=_0x5df273,this[_0x2f252f(0x6b)]=_0x45c597,this[_0x2f252f(0x7f)]=_0x10949a,this[_0x2f252f(0xeb)]=_0x4f2df2,this[_0x2f252f(0x7d)]=_0x1ffd66,this['_shapeHostAdapterRegistry']=_0xac2e38,this['_initCommands'](),this['_initCommandInterceptor'](),this['disposeWithMe'](this[_0x2f252f(0xe0)][_0x2f252f(0x8c)](_0x1215f9));}[_0x1526f0(0xc4)](){const _0x52fd23=_0x1526f0;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$][_0x52fd23(0xaf)](_0x362499=>this[_0x52fd23(0x111)](this['_commandService'][_0x52fd23(0x102)](_0x362499)));}['_initCommandInterceptor'](){const _0x72d57f=_0x1526f0;this['disposeWithMe'](this[_0x72d57f(0x6b)][_0x72d57f(0xc8)]({'getMutations':_0x35f8fd=>{const _0x57ba04=_0x72d57f;if(_0x35f8fd['id']===_0x1aeaf6['id']){let {drawings:_0x5a904c}=_0x35f8fd[_0x57ba04(0xd0)],_0x3edce0=_0x5a904c['filter'](_0xd69031=>_0xd69031[_0x57ba04(0xff)]===_0x504c05[_0x57ba04(0xe1)]);if(_0x3edce0[_0x57ba04(0xbb)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x260969=[],_0xdd8e60=[];return _0x3edce0['forEach'](_0xbfa677=>{const _0x437fcd=_0x57ba04;let {unitId:_0x43197e,subUnitId:_0x1fbb5d,drawingId:_0x5d7697}=_0xbfa677,_0x3a5cec=this[_0x437fcd(0xeb)][_0x437fcd(0x11e)](_0x43197e,_0x1fbb5d,_0x5d7697);if(!_0x3a5cec)throw TypeError(_0x437fcd(0x96)+_0x3a5cec);_0x260969[_0x437fcd(0xfd)]({'id':de['id'],'params':{'unitId':_0x43197e,'subUnitId':_0x1fbb5d,'shapeId':_0x5d7697}}),_0xdd8e60[_0x437fcd(0xfd)]({'id':ue['id'],'params':{'unitId':_0x43197e,'subUnitId':_0x1fbb5d,'shapeId':_0x5d7697,'shapeType':_0x3a5cec['getShapeType'](),'shapeData':_0x3a5cec['getShapeData']()}});let _0x2b6451=this[_0x437fcd(0xeb)][_0x437fcd(0xaa)](_0x43197e,_0x1fbb5d,_0x5d7697);if(_0x2b6451)for(let _0x4e62ef of _0x2b6451){let _0x4f5ac4=_0x4e62ef[_0x437fcd(0x89)],_0x5407f4=_0x4e62ef[_0x437fcd(0x133)],_0x5d90bd=_0x5407f4?{'from':void 0x0}:{'to':void 0x0},_0x54ec86=_0x5407f4?{'from':{'shapeId':_0x4e62ef[_0x437fcd(0xed)],'cxnIndex':_0x4e62ef[_0x437fcd(0xb8)]}}:{'to':{'shapeId':_0x4e62ef[_0x437fcd(0xed)],'cxnIndex':_0x4e62ef[_0x437fcd(0xb8)]}};_0x260969[_0x437fcd(0xfd)]({'id':$['id'],'params':{'unitId':_0x43197e,'subUnitId':_0x1fbb5d,'shapeId':_0x4f5ac4,'shapeData':{'relation':_0x5d90bd}}}),_0xdd8e60[_0x437fcd(0xfd)]({'id':$['id'],'params':{'unitId':_0x43197e,'subUnitId':_0x1fbb5d,'shapeId':_0x4f5ac4,'shapeData':{'relation':_0x54ec86}}});}}),{'preRedos':_0x260969,'redos':[],'preUndos':[],'undos':_0xdd8e60};}if(_0x35f8fd['id']===_0x2fa2b2['id']){let {drawings:_0x10e46a}=_0x35f8fd[_0x57ba04(0xd0)],_0x14b260=_0x10e46a['filter'](_0x2df0c0=>_0x2df0c0[_0x57ba04(0xff)]===_0x504c05[_0x57ba04(0xe1)]);if(_0x14b260[_0x57ba04(0xbb)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x19245e=[],_0x228cdf=[];for(let _0x35a8a7 of _0x14b260){let {unitId:_0x3ea1ef,subUnitId:_0x212496,drawingId:_0x449a53,transform:_0x1ed381}=_0x35a8a7;if(!_0x3ea1ef||!_0x212496||!_0x449a53||!_0x1ed381)continue;let _0x3eb65e=this[_0x57ba04(0xeb)][_0x57ba04(0x11e)](_0x3ea1ef,_0x212496,_0x449a53);if(!_0x3eb65e)throw TypeError(_0x57ba04(0x96)+_0x3eb65e);if(_0x262dd0(_0x3eb65e['getShapeType']())){let _0x57892b=this['_sheetsShapeService'][_0x57ba04(0x76)](_0x3ea1ef,_0x212496,_0x449a53);_0x57892b&&(_0x19245e[_0x57ba04(0xfd)]({'id':$['id'],'params':{'unitId':_0x3ea1ef,'subUnitId':_0x212496,'shapeId':_0x449a53,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x228cdf[_0x57ba04(0xfd)]({'id':$['id'],'params':{'unitId':_0x3ea1ef,'subUnitId':_0x212496,'shapeId':_0x449a53,'shapeData':{'relation':_0x57892b}}}));}else{let _0x49d872=this[_0x57ba04(0xeb)][_0x57ba04(0xaa)](_0x3ea1ef,_0x212496,_0x449a53);if(_0x49d872&&_0x49d872[_0x57ba04(0xbb)]>0x0)for(let _0x32c639 of _0x49d872){let _0x3fa790=_0x32c639[_0x57ba04(0x89)],_0x4a6017=_0x32c639[_0x57ba04(0x133)],_0x42a3de=this['_sheetsShapeService']['getShapeModel'](_0x3ea1ef,_0x212496,_0x3fa790);if(!_0x42a3de)continue;let _0xa90b79=_0x42a3de[_0x57ba04(0x110)](),_0x501af8=_0x42a3de[_0x57ba04(0xa3)]();_0xa90b79&&_0x501af8?this[_0x57ba04(0xef)](_0x3ea1ef,_0x212496,_0x3fa790,_0x42a3de,_0xa90b79,_0x501af8,_0x19245e,_0x228cdf,_0x449a53,_0x1ed381):this['_addLineFollowShapeUpdates'](_0x3ea1ef,_0x212496,_0x3fa790,_0x42a3de,_0x4a6017?_0xa90b79:_0x501af8,_0x4a6017,_0x19245e,_0x228cdf,_0x449a53,_0x1ed381);}}}return{'preRedos':[],'redos':_0x19245e,'preUndos':_0x228cdf,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1526f0(0xb1)](_0x4b2072,_0x3a59cb,_0x527129,_0x421f97,_0x3edb42){const _0x3182de=_0x1526f0;if(!_0x3a59cb||!_0x527129)return null;let {shapeId:_0x2f43b8,cxnIndex:_0xc0991b}=_0x4b2072,_0x23a989=this[_0x3182de(0xeb)][_0x3182de(0x11e)](_0x3a59cb,_0x527129,_0x2f43b8);if(!_0x23a989)return null;let _0x38611d=this[_0x3182de(0x7d)][_0x3182de(0xcd)]({'unitId':_0x3a59cb,'subUnitId':_0x527129,'drawingId':_0x2f43b8});if(!(_0x38611d!=null&&_0x38611d[_0x3182de(0xdd)]))return null;let {left:_0x53394b=0x0,top:_0x2f01f5=0x0,width:_0x25b426=0x0,height:_0x44a147=0x0,flipX:_0x547cd0=!0x1,flipY:_0x2771d4=!0x1,angle:_0x2067d2}=_0x38611d[_0x3182de(0xdd)];_0x3edb42&&_0x421f97===_0x2f43b8&&(_0x53394b=_0x3edb42[_0x3182de(0x131)]??_0x53394b,_0x2f01f5=_0x3edb42['top']??_0x2f01f5,_0x25b426=_0x3edb42[_0x3182de(0x12f)]??_0x25b426,_0x44a147=_0x3edb42[_0x3182de(0x72)]??_0x44a147,_0x547cd0=_0x3edb42[_0x3182de(0xb0)]??_0x547cd0,_0x2771d4=_0x3edb42[_0x3182de(0x12e)]??_0x2771d4,_0x2067d2=_0x3edb42[_0x3182de(0x8f)]??_0x2067d2),_0x23a989[_0x3182de(0xc7)]({'width':_0x25b426,'height':_0x44a147});let _0x3c0600=_0x23a989[_0x3182de(0x94)]()[_0x3182de(0x138)](_0x515dcc=>_0x515dcc['index']===_0xc0991b);if(!_0x3c0600)return null;let _0x16beca=_0x547cd0?_0x25b426-_0x3c0600['x']:_0x3c0600['x'],_0x370fde=_0x2771d4?_0x44a147-_0x3c0600['y']:_0x3c0600['y'];if(_0x2067d2!==0x0&&_0x2067d2!=null){let _0x1ab952=_0x2067d2*Math['PI']/0xb4,_0x5107c3=Math[_0x3182de(0x126)](_0x1ab952),_0x65ebc6=Math['sin'](_0x1ab952),_0x53cf91=_0x25b426/0x2,_0x5eb950=_0x44a147/0x2,_0x330985=_0x16beca-_0x53cf91,_0x147af8=_0x370fde-_0x5eb950;_0x16beca=_0x53cf91+_0x330985*_0x5107c3-_0x147af8*_0x65ebc6,_0x370fde=_0x5eb950+_0x330985*_0x65ebc6+_0x147af8*_0x5107c3;}_0x16beca+=_0x53394b,_0x370fde+=_0x2f01f5;let _0x4a1a1a=_0x3c0600[_0x3182de(0xb5)]/0xea60;_0x547cd0&&(_0x4a1a1a=0xb4-_0x4a1a1a),_0x2771d4&&(_0x4a1a1a=-_0x4a1a1a),_0x4a1a1a+=_0x2067d2||0x0,_0x4a1a1a=(_0x4a1a1a%0x168+0x168)%0x168;let _0x1e1aaf=_0x5bebf9({'left':_0x53394b,'top':_0x2f01f5,'width':_0x25b426,'height':_0x44a147},_0x2067d2||0x0);return{'point':{'x':_0x16beca,'y':_0x370fde},'angle':_0x4a1a1a,'bounds':_0x1e1aaf};}[_0x1526f0(0xef)](_0x5b4db2,_0xbe1465,_0x3ca53d,_0x31ef58,_0x22dbb5,_0x2df200,_0x3bbcdb,_0xf7199c,_0x5dbe6b,_0xa3aff0){const _0x5557f2=_0x1526f0;let _0x462ad6=this[_0x5557f2(0x7f)][_0x5557f2(0xd3)](_0x5b4db2,_0xbe1465);if(!_0x462ad6)return;let _0x5295fd=_0x31ef58[_0x5557f2(0xcc)](),_0x5dc535=_0x31ef58[_0x5557f2(0xfe)](),_0x5b7153={},_0x29317e={};_0x5dc535['forEach'](_0x33ef53=>{const _0x3281b8=_0x5557f2;let _0x524824=_0x31ef58[_0x3281b8(0x82)](_0x33ef53);_0x29317e[_0x33ef53]=_0x524824??0x0;});let _0x5d3310=this['_getConnectPointInfo'](_0x22dbb5,_0x5b4db2,_0xbe1465,_0x5dbe6b,_0xa3aff0),_0x58eaed=this[_0x5557f2(0xb1)](_0x2df200,_0x5b4db2,_0xbe1465,_0x5dbe6b,_0xa3aff0);if(_0x5d3310&&_0x58eaed){let _0xaa54c0=_0x31ef58[_0x5557f2(0x100)](),_0x11de43=_0x41ca93(_0x5d3310,_0x58eaed,_0xaa54c0),_0x4eab30=_0xaa54c0;if(_0x11de43){let _0x27569=_0x43f174(_0x11de43,_0x31ef58[_0x5557f2(0x100)]()),_0x15007e=this[_0x5557f2(0x7d)]['getDrawingData'](_0x5b4db2,_0xbe1465);if(_0x15007e&&_0x15007e[_0x3ca53d]){let _0x52d7a8=_0x15007e[_0x3ca53d];_0x4eab30=_0x27569[_0x5557f2(0xf5)];for(let [_0x5aa309,_0x5c2fd7]of Object[_0x5557f2(0xf8)](_0x27569['adjustValues']))_0x5b7153[_0x5aa309]=_0x5c2fd7;let _0x1b5ba0={..._0x52d7a8[_0x5557f2(0xdd)],'width':_0x27569[_0x5557f2(0xf3)][_0x5557f2(0x12f)],'height':_0x27569[_0x5557f2(0xf3)][_0x5557f2(0x72)],'left':_0x27569[_0x5557f2(0xf3)][_0x5557f2(0x131)],'top':_0x27569[_0x5557f2(0xf3)]['top'],'flipX':_0x27569[_0x5557f2(0xf3)][_0x5557f2(0xb0)],'flipY':_0x27569[_0x5557f2(0xf3)][_0x5557f2(0x12e)],'angle':_0x27569['rotation']},_0x299998=_0x54d7fb(_0x1b5ba0,_0x462ad6),_0x185cd6=_0x44e989(_0x1b5ba0,_0x462ad6),_0xc074ee={'unitId':_0x5b4db2,'subUnitId':_0xbe1465,'drawingType':_0x504c05[_0x5557f2(0xe1)],'drawingId':_0x3ca53d,'transform':_0x1b5ba0,'sheetTransform':_0x299998,'axisAlignSheetTransform':_0x185cd6},{unitId:_0x1dffaf,subUnitId:_0x3e565e,undo:_0x685db4,redo:_0x169de1,objects:_0x3a7de4}=this['_drawingManagerService'][_0x5557f2(0xca)]([_0xc074ee]);_0x3bbcdb['push']({'id':_0x3bddf0['id'],'params':{'unitId':_0x1dffaf,'subUnitId':_0x3e565e,'op':_0x169de1,'objects':_0x3a7de4,'type':_0x92ce6e[_0x5557f2(0x121)]}}),_0xf7199c['push']({'id':_0x3bddf0['id'],'params':{'unitId':_0x1dffaf,'subUnitId':_0x3e565e,'op':_0x685db4,'objects':_0x3a7de4,'type':_0x92ce6e['UPDATE']}});}_0x31ef58['removeLinePoints']();}_0x3bbcdb['push']({'id':$['id'],'params':{'unitId':_0x5b4db2,'subUnitId':_0xbe1465,'shapeId':_0x3ca53d,'shapeType':_0x4eab30,'shapeData':{'adjustValues':_0x5b7153,'relation':_0x5295fd}}}),_0xf7199c[_0x5557f2(0xfd)]({'id':$['id'],'params':{'unitId':_0x5b4db2,'subUnitId':_0xbe1465,'shapeId':_0x3ca53d,'shapeType':_0xaa54c0,'shapeData':{'adjustValues':_0x29317e,'relation':_0x5295fd}}});}}[_0x1526f0(0x115)](_0x16db0b,_0x1cfb41,_0x131eb1,_0xed3a8f,_0x4709a3,_0x57a267,_0x394f87,_0x5bf3af,_0x21ff19,_0xe276ca){const _0x10f8ea=_0x1526f0;var _0x35ac8e;if(!_0x4709a3)return;let _0x418cc7=this[_0x10f8ea(0x7f)][_0x10f8ea(0xd3)](_0x16db0b,_0x1cfb41);if(!_0x418cc7)return;let _0x5c938f=(_0x35ac8e=this[_0x10f8ea(0x7d)]['getDrawingByParam']({'unitId':_0x16db0b,'subUnitId':_0x1cfb41,'drawingId':_0x21ff19}))==null?void 0x0:_0x35ac8e[_0x10f8ea(0xdd)];if(!_0x5c938f)return;let _0x4151d3=_0x5c938f['left']!==_0xe276ca[_0x10f8ea(0x131)]||_0x5c938f[_0x10f8ea(0x7c)]!==_0xe276ca[_0x10f8ea(0x7c)],_0x3d98f7=_0x5c938f[_0x10f8ea(0x12f)]!==_0xe276ca[_0x10f8ea(0x12f)]||_0x5c938f[_0x10f8ea(0x72)]!==_0xe276ca[_0x10f8ea(0x72)],_0x2ce462=_0x5c938f[_0x10f8ea(0xb0)]!==_0xe276ca['flipX']||_0x5c938f['flipY']!==_0xe276ca['flipY'],_0x31c271=_0x5c938f[_0x10f8ea(0x8f)]!==_0xe276ca[_0x10f8ea(0x8f)];if(_0x4151d3&&!_0x3d98f7&&!_0x2ce462&&!_0x31c271){let _0x30aaac=(_0xe276ca[_0x10f8ea(0x131)]??0x0)-(_0x5c938f[_0x10f8ea(0x131)]??0x0),_0x31b989=(_0xe276ca[_0x10f8ea(0x7c)]??0x0)-(_0x5c938f[_0x10f8ea(0x7c)]??0x0),_0xf7c9ad=this[_0x10f8ea(0x7d)][_0x10f8ea(0x69)](_0x16db0b,_0x1cfb41);if(_0xf7c9ad&&_0xf7c9ad[_0x131eb1]){var _0x1cb7aa,_0x39736f;let _0x4cdbe9=_0xf7c9ad[_0x131eb1],_0x1afc55={..._0x4cdbe9[_0x10f8ea(0xdd)],'left':(((_0x1cb7aa=_0x4cdbe9['transform'])==null?void 0x0:_0x1cb7aa[_0x10f8ea(0x131)])??0x0)+_0x30aaac,'top':(((_0x39736f=_0x4cdbe9[_0x10f8ea(0xdd)])==null?void 0x0:_0x39736f['top'])??0x0)+_0x31b989},_0x344c12=_0x54d7fb(_0x1afc55,_0x418cc7),_0x315377=_0x44e989(_0x1afc55,_0x418cc7),_0x476076={'unitId':_0x16db0b,'subUnitId':_0x1cfb41,'drawingType':_0x504c05['DRAWING_SHAPE'],'drawingId':_0x131eb1,'transform':_0x1afc55,'sheetTransform':_0x344c12,'axisAlignSheetTransform':_0x315377},{unitId:_0x205b34,subUnitId:_0x3fc8ea,undo:_0x106467,redo:_0x15fb24,objects:_0x1a3fc2}=this[_0x10f8ea(0x7d)][_0x10f8ea(0xca)]([_0x476076]);_0x394f87[_0x10f8ea(0xfd)]({'id':_0x3bddf0['id'],'params':{'unitId':_0x205b34,'subUnitId':_0x3fc8ea,'op':_0x15fb24,'objects':_0x1a3fc2,'type':_0x92ce6e[_0x10f8ea(0x121)]}}),_0x5bf3af[_0x10f8ea(0xfd)]({'id':_0x3bddf0['id'],'params':{'unitId':_0x205b34,'subUnitId':_0x3fc8ea,'op':_0x106467,'objects':_0x1a3fc2,'type':_0x92ce6e[_0x10f8ea(0x121)]}});}}else{let _0x10d399=_0xed3a8f['getStartConnectInfo'](),_0x5518f0=_0xed3a8f[_0x10f8ea(0xa3)]();this[_0x10f8ea(0xef)](_0x16db0b,_0x1cfb41,_0x131eb1,_0xed3a8f,_0x10d399,_0x5518f0,_0x394f87,_0x5bf3af,_0x21ff19,_0xe276ca);}}};Te=le([Z(0x0,_0x112637),Z(0x1,_0x3e131b(_0x560256)),Z(0x2,_0x3e131b(_0x45a18d)),Z(0x3,_0x3e131b(Q)),Z(0x4,_0x3e131b(_0x2279ca)),Z(0x5,_0x3e131b(_0x100e7a)),Z(0x6,_0x3e131b(Ce))],Te);let Ee=class extends _0x1f6469{constructor(_0x309685,_0x2bfab0,_0x57fd04){const _0x448648=_0x1526f0;super(),this['_shapeService']=_0x309685,this['_shapeAdapter']=_0x2bfab0,this['disposeWithMe'](_0x57fd04[_0x448648(0x8c)](this));}['transform'](_0x5f1427){const _0x19d6e1=_0x1526f0;let _0x4cd8e2={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x19d6e1(0xe9)](_0x5f1427,_0x4cd8e2);for(let [_0x423e27,_0x2b267d]of _0x5f1427['originals'])this[_0x19d6e1(0xa2)](_0x5f1427,_0x423e27,_0x2b267d,_0x4cd8e2);return _0x4cd8e2;}['_planDeletes'](_0x2509a4,_0x1d0c5b){const _0x3699a3=_0x1526f0;if(_0x2509a4[_0x3699a3(0xad)]===_0x3699a3(0x10e))for(let _0x1f147b of _0x2509a4[_0x3699a3(0xb3)]){let _0x327ef6=_0x2509a4[_0x3699a3(0x12d)][_0x3699a3(0xd6)](_0x1f147b),_0xf9ad5c=this[_0x3699a3(0xe2)][_0x3699a3(0x11e)](_0x2509a4[_0x3699a3(0x95)],_0x2509a4[_0x3699a3(0x99)],_0x1f147b);(_0x327ef6==null?void 0x0:_0x327ef6[_0x3699a3(0xff)])!==_0x504c05[_0x3699a3(0xe1)]||!_0xf9ad5c||(_0x1d0c5b[_0x3699a3(0x137)][_0x3699a3(0xfd)]({'id':de['id'],'params':{'unitId':_0x2509a4[_0x3699a3(0x95)],'subUnitId':_0x2509a4[_0x3699a3(0x99)],'shapeId':_0x1f147b}}),_0x1d0c5b['undos'][_0x3699a3(0xfd)]({'id':ue['id'],'params':{'unitId':_0x2509a4[_0x3699a3(0x95)],'subUnitId':_0x2509a4[_0x3699a3(0x99)],'shapeId':_0x1f147b,'shapeName':_0xf9ad5c[_0x3699a3(0x81)](),'shapeType':_0xf9ad5c[_0x3699a3(0x100)](),'shapeData':_0x1e7cd3[_0x3699a3(0xe8)](_0xf9ad5c[_0x3699a3(0xae)]())}}));}}[_0x1526f0(0xa2)](_0x536c8c,_0x4e10c0,_0x179af9,_0x3b4dfd){const _0x3250d3=_0x1526f0;if(_0x179af9['drawingType']!==_0x504c05[_0x3250d3(0xe1)]||_0x536c8c['deletes'][_0x3250d3(0x97)](_0x4e10c0))return;let _0x842ed6=this['_shapeService'][_0x3250d3(0x11e)](_0x536c8c[_0x3250d3(0x95)],_0x536c8c[_0x3250d3(0x99)],_0x4e10c0);if(!_0x842ed6||!_0x262dd0(_0x842ed6[_0x3250d3(0x100)]()))return;let _0x34f6af=_0x842ed6[_0x3250d3(0xcc)]();if(!(_0x536c8c[_0x3250d3(0xc0)]['has'](_0x4e10c0)||_0x34f6af!=null&&_0x34f6af[_0x3250d3(0xdb)]&&(_0x536c8c[_0x3250d3(0xc0)]['has'](_0x34f6af[_0x3250d3(0xdb)]['shapeId'])||_0x536c8c[_0x3250d3(0xb3)]['has'](_0x34f6af[_0x3250d3(0xdb)][_0x3250d3(0xed)]))||_0x34f6af!=null&&_0x34f6af['to']&&(_0x536c8c[_0x3250d3(0xc0)]['has'](_0x34f6af['to'][_0x3250d3(0xed)])||_0x536c8c[_0x3250d3(0xb3)][_0x3250d3(0x97)](_0x34f6af['to'][_0x3250d3(0xed)]))))return;let _0x366de8=_0x536c8c[_0x3250d3(0xc0)][_0x3250d3(0xd6)](_0x4e10c0)??_0x179af9,_0x2c0527=this['_toSnapshot'](_0x536c8c,_0x366de8);if(!_0x2c0527)return;let _0x2a5188=_0x1683bf(_0x2c0527);if(_0x2a5188['length']<0x2)return;let _0x492619=_0x1e7cd3['deepClone'](_0x34f6af??{}),_0x2bedc0=_0x492619[_0x3250d3(0xdb)]&&this[_0x3250d3(0xcb)](_0x536c8c,_0x492619['from'][_0x3250d3(0xed)],_0x492619['from'][_0x3250d3(0xb8)]),_0x2ce4e1=_0x492619['to']&&this[_0x3250d3(0xcb)](_0x536c8c,_0x492619['to'][_0x3250d3(0xed)],_0x492619['to'][_0x3250d3(0xb8)]);_0x492619['from']&&!_0x2bedc0&&delete _0x492619[_0x3250d3(0xdb)],_0x492619['to']&&!_0x2ce4e1&&delete _0x492619['to'];let _0x8743fb=_0x2dd69a(_0x2c0527,_0x2bedc0||_0x14d912((_0x2ce4e1==null?void 0x0:_0x2ce4e1[_0x3250d3(0x9e)])??_0x2a5188[_0x2a5188[_0x3250d3(0xbb)]-0x1],_0x2a5188[0x0]),_0x2ce4e1||_0x14d912((_0x2bedc0==null?void 0x0:_0x2bedc0[_0x3250d3(0x9e)])??_0x2a5188[0x0],_0x2a5188[_0x2a5188[_0x3250d3(0xbb)]-0x1]),_0x492619);if(!(!(_0x8743fb!=null&&_0x8743fb['transform'])||!_0x8743fb[_0x3250d3(0x119)]||!_0x8743fb[_0x3250d3(0x6f)])){if(this[_0x3250d3(0x13a)](_0x536c8c,_0x366de8,_0x8743fb),_0x536c8c[_0x3250d3(0xad)]===_0x3250d3(0xda)){_0x842ed6[_0x3250d3(0xd7)](_0x8743fb[_0x3250d3(0x119)]),_0x842ed6['setShapeData'](_0x1e7cd3[_0x3250d3(0xe8)](_0x8743fb['shapeData']),!0x1);return;}_0x3b4dfd[_0x3250d3(0x135)][_0x3250d3(0xfd)]({'id':$['id'],'params':{'unitId':_0x536c8c[_0x3250d3(0x95)],'subUnitId':_0x536c8c[_0x3250d3(0x99)],'shapeId':_0x4e10c0,'shapeType':_0x8743fb[_0x3250d3(0x119)],'shapeData':_0x1e7cd3[_0x3250d3(0xe8)](_0x8743fb['shapeData']),'replace':!0x0}}),_0x3b4dfd[_0x3250d3(0x10d)][_0x3250d3(0xfd)]({'id':$['id'],'params':{'unitId':_0x536c8c[_0x3250d3(0x95)],'subUnitId':_0x536c8c[_0x3250d3(0x99)],'shapeId':_0x4e10c0,'shapeType':_0x842ed6[_0x3250d3(0x100)](),'shapeData':_0x1e7cd3[_0x3250d3(0xe8)](_0x842ed6[_0x3250d3(0xae)]()),'replace':!0x0}});}}[_0x1526f0(0xcb)](_0x248157,_0x3d6af4,_0x312495){const _0x5eac59=_0x1526f0;if(_0x248157[_0x5eac59(0xb3)][_0x5eac59(0x97)](_0x3d6af4))return null;let _0x1f5e41=_0x248157[_0x5eac59(0xc0)][_0x5eac59(0xd6)](_0x3d6af4)??_0x248157[_0x5eac59(0x12d)]['get'](_0x3d6af4);if(!_0x1f5e41)return null;let _0x49051d=this[_0x5eac59(0xc6)](_0x248157,_0x1f5e41);return _0x49051d?_0x6282a(_0x49051d,_0x312495):null;}[_0x1526f0(0xc6)](_0x556901,_0x28834e){const _0x13dd5c=_0x1526f0;let _0x1bb2d5={'hostType':_0x3a6d07[_0x13dd5c(0xab)],'unitId':_0x556901[_0x13dd5c(0x95)],'subUnitId':_0x556901[_0x13dd5c(0x99)],'shapeId':_0x28834e['drawingId']},_0x2151e0=this[_0x13dd5c(0xfc)][_0x13dd5c(0xb6)](_0x1bb2d5);return!_0x2151e0||!_0x28834e[_0x13dd5c(0xdd)]?null:{..._0x2151e0,'transform':{'left':_0x28834e[_0x13dd5c(0xdd)]['left']??0x0,'top':_0x28834e[_0x13dd5c(0xdd)][_0x13dd5c(0x7c)]??0x0,'width':_0x28834e[_0x13dd5c(0xdd)]['width']??0x0,'height':_0x28834e['transform'][_0x13dd5c(0x72)]??0x0,'rotation':_0x28834e[_0x13dd5c(0xdd)][_0x13dd5c(0x8f)]??0x0,'flipX':_0x28834e[_0x13dd5c(0xdd)]['flipX']??!0x1,'flipY':_0x28834e['transform'][_0x13dd5c(0x12e)]??!0x1}};}[_0x1526f0(0x13a)](_0x5f12a7,_0x3df90b,_0x2a6396){const _0x5c96d7=_0x1526f0;let _0x2a7b32=_0x3df90b,_0x3480db={..._0x3df90b['transform'],'left':_0x2a6396[_0x5c96d7(0xdd)]['left'],'top':_0x2a6396[_0x5c96d7(0xdd)][_0x5c96d7(0x7c)],'width':_0x2a6396[_0x5c96d7(0xdd)]['width'],'height':_0x2a6396[_0x5c96d7(0xdd)][_0x5c96d7(0x72)],'angle':_0x2a6396[_0x5c96d7(0xdd)][_0x5c96d7(0xc2)],'flipX':_0x2a6396[_0x5c96d7(0xdd)][_0x5c96d7(0xb0)],'flipY':_0x2a6396[_0x5c96d7(0xdd)]['flipY']},_0x2fbba8={..._0x2a7b32,'transform':_0x3480db,'sheetTransform':_0x54d7fb(_0x3480db,_0x5f12a7[_0x5c96d7(0x116)]),'axisAlignSheetTransform':_0x44e989(_0x3480db,_0x5f12a7['skeleton']),'data':{..._0x2a7b32[_0x5c96d7(0x7b)],'shapeType':_0x2a6396['shapeType'],'shapeData':_0x1e7cd3['deepClone'](_0x2a6396[_0x5c96d7(0x6f)])}};_0x5f12a7[_0x5c96d7(0xc0)][_0x5c96d7(0x108)](_0x3df90b[_0x5c96d7(0xa7)],_0x2fbba8);}};Ee=le([Z(0x0,_0x3e131b(Q)),Z(0x1,_0x3e131b(Ce)),Z(0x2,_0x3e131b(_0x50a4fe))],Ee);let De=class extends _0xf62a73{constructor(_0x488bd9=we,_0x276172,_0x350dad){const _0x52c8e9=_0x1526f0;super(),this['_config']=_0x488bd9,this[_0x52c8e9(0xf6)]=_0x276172,this[_0x52c8e9(0x68)]=_0x350dad;let {..._0x550977}=_0xc3fe6a({},we,this[_0x52c8e9(0x83)]);this[_0x52c8e9(0x68)][_0x52c8e9(0x9b)](_0x52c8e9(0xa5),_0x550977);}['onStarting'](){const _0x1761c8=_0x1526f0;let _0x235ce4=this[_0x1761c8(0xf6)];[[ce],[Q],[Ce],[Ee],[Te]][_0x1761c8(0xaf)](_0x52e206=>_0x235ce4[_0x1761c8(0xf0)](_0x52e206)),_0x13928d(_0x235ce4,[[Q],[Ee],[Te]]);}};X(De,_0x1526f0(0x114),_0x3a6d07[_0x1526f0(0xab)]),X(De,_0x1526f0(0xe6),_0x1526f0(0x125)),X(De,'packageName',be),X(De,'version',xe),De=le([_0x88874c(_0x5eaaa0,_0x329c8d,_0x49a111,_0x32bbd9,_0x5fba8a),Z(0x1,_0x3e131b(_0x3f24f3)),Z(0x2,_0x1d41a0)],De);function _0x4f03(){const _0x3d7c1a=['shapeType','registerPluginResource','selectable','sheet.command.insert-shape','_initSnapshot','getShapeModel','object','REMOVE','UPDATE','keys','formulaBinding','map','SHEET_SHAPE_PLUGIN','cos','_instanceService','_serializeShapeForUnit','_arrange','INSERT','startX','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','originals','flipY','width','clear','left','resizeEnabled','isFrom','getOwnPropertyDescriptor','redos','adjustValues','preRedos','find','getCellWithCoordByIndex','_applyUpdate','_configService','getDrawingData','addShape','_sheetInterceptorService','string','624yVuOFB','toPrimitive','shapeData','sheet.command.update-connector-relation','createFormulaLastValueMutation','height','getUnit','_shapeModelManagerMap','_drawingService','getLineShapeRelation','description','listShapes','fill','stringify','data','top','_drawingManagerService','isHorizontal','_sheetSkeletonService','getShapeDisplayNames','getName','getAdjustValueByName','_config','sheet.command.set-shape-drawing-data','_linesIds','sheet.command.set-shape-rotate','default','rotateEnabled','lineShapeId','6feNQOt','relation','register','createShape','values','angle','hostType','376013xMJuYF','_resourcesManagerService','COMMAND','getConnectionSiteList','unitId','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','has','range','subUnitId','visible','setConfig','shapeChanged$','1.0.0-rc.0','point','pushUndoRedo','forward','616992JHwjZg','_planConnector','getEndConnectInfo','6964gEHgeA','sheets-shape.config','sendBackward','drawingId','MUTATION','bringToFront','getBasicShapeRelation','UNIVER_SHEET','onCommandExecute','mode','getShapeData','forEach','flipX','_getConnectPointInfo','delete','deletes','getSheets','ang','getShape','defineProperty','cxnIndex','filter','322VMvaku','length','name','fromJSON','iterator','_ensureShapeModelManager','updates','@univerjs-pro/sheets-shape','rotation','shapeName','_initCommands','_commandService','_toSnapshot','updateContext','interceptCommand','3ClYCwh','getBatchUpdateOp','_resolveBinding','getShapeRelation','getDrawingByParam','2246688UinBSe','constructor','params','preUndos','symbol','getSkeleton','160tRbAOf','sheet.command.update-line-shape-resize','get','setShapeType','bringForward','_deserializeShapeForUnit','refresh','from','parse','transform','_shapes','sheet.mutation.insert-shape','_shapeHostAdapterRegistry','DRAWING_SHAPE','_shapeService','front','sheet.command.toggle-shape-flip','startY','pluginName','setShapeData','deepClone','_planDeletes','syncExecuteCommand','_sheetsShapeService','decorate','shapeId','8Nrepwb','_addLineRerouteUpdates','add','130445uycSGU','_groupIds','worldRect','result','lineType','_injector','dispose','entries','_disposed','toJSON','getId','_shapeAdapter','push','getAdjustNames','drawingType','getShapeType','call','registerCommand','function','hidden','getBasicShapeType','isLineShape','getShapeTextData','set','80376tzUnDJ','removeShape','position','updateShape','undos','command','hasShape','getStartConnectInfo','disposeWithMe','borderEnabled','getShapeTypeById','type','_addLineFollowShapeUpdates','skeleton','5474036hNNCRD','getShapeDataById'];_0x4f03=function(){return _0x3d7c1a;};return _0x4f03();}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};
@@ -22,5 +22,6 @@ export declare class SheetShapeHostAdapter implements IShapeHostAdapter {
22
22
  bringForward(ref: IShapeRef): boolean;
23
23
  sendBackward(ref: IShapeRef): boolean;
24
24
  sendToBack(ref: IShapeRef): boolean;
25
+ setZOrder(ref: IShapeRef, index: number): boolean;
25
26
  private _arrange;
26
27
  }
@@ -16,6 +16,7 @@ export type { IRemoveSheetsShapeMutationParams } from './commands/mutation/remov
16
16
  export { UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
17
17
  export type { IUpdateSheetsShapeDataMutationParams } from './commands/mutation/update-shape-data.mutation';
18
18
  export { UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
19
+ export type { IUpdateSheetsShapeTypeMutationParams } from './commands/mutation/update-shape-type.mutation';
19
20
  export { DEFAULT_SHAPE_HEIGHT, DEFAULT_SHAPE_WIDTH, } from './common/const';
20
21
  export type { IDrawingShapeData, ISheetShapeDrawingParam, } from './common/types';
21
22
  export { UniverSheetsShapePlugin } from './plugin';
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x202c(){const _0x15455f=['[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','\x22\x20was\x20not\x20found.','getShapes','height','77282PBGgJB','createShape','UNIVER_SHEET','get','IShapeHostAdapterRegistry','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','@univerjs/core','ISheetDrawingService','326600CnfPqs','SheetDrawingAnchorType','isConnectorShape','Module','_createShapeHandle','FShape','shapeId','_sheetDrawingService','\x22\x20has\x20no\x20transform\x20extent.','859240apfWXg','_commandService','map','103125fwKBut','subUnitId','object','_getShapeScope','UniverCore','insertShape','FConnectorShape','@univerjs-pro/engine-shape/facade','getShape','_getShapeAdapter','_injector','8oQZTIR','decorate','getDrawingByParam','function','UniverSheetsDrawing','toStringTag','FSheetShape','FWorksheet','1288238GBHyBY','SetSheetDrawingPlacementCommand','261312KwdYue','getWorkbook','transform','getSheetDrawingPlacement','setPosition','UniverProEngineShapeFacade','length','UniverSheetsFacade','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','Position','ICommandService','UniverInstanceType','unitId','UniverProSheetsShapeFacade','10PQdyQt','warn','amd','3xDBWkA','extend','582336QJODAN','@univerjs/sheets/facade','width','defineProperty','shapeType','_shapeRef','createInstance'];_0x202c=function(){return _0x15455f;};return _0x202c();}function _0x282d(_0x26c4c9,_0x212639){_0x26c4c9=_0x26c4c9-0xe1;const _0x202c9b=_0x202c();let _0x282dd4=_0x202c9b[_0x26c4c9];return _0x282dd4;}(function(_0x24cf36,_0x8e6cd){const _0x29113a=_0x282d,_0x1603ad=_0x24cf36();while(!![]){try{const _0x36b7f6=parseInt(_0x29113a(0x10c))/0x1+parseInt(_0x29113a(0xf8))/0x2*(parseInt(_0x29113a(0xea))/0x3)+parseInt(_0x29113a(0x100))/0x4*(-parseInt(_0x29113a(0xe7))/0x5)+-parseInt(_0x29113a(0x121))/0x6+-parseInt(_0x29113a(0x11f))/0x7*(-parseInt(_0x29113a(0x117))/0x8)+-parseInt(_0x29113a(0xec))/0x9+parseInt(_0x29113a(0x109))/0xa;if(_0x36b7f6===_0x8e6cd)break;else _0x1603ad['push'](_0x1603ad['shift']());}catch(_0x14aaac){_0x1603ad['push'](_0x1603ad['shift']());}}}(_0x202c,0x22388),function(_0x1f99c9,_0x5c6589){const _0x1e188b=_0x282d;typeof exports==_0x1e188b(0x10e)&&typeof module<'u'?_0x5c6589(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets-drawing')):typeof define==_0x1e188b(0x11a)&&define[_0x1e188b(0xe9)]?define(['exports','@univerjs-pro/engine-shape',_0x1e188b(0x113),_0x1e188b(0xfe),_0x1e188b(0xed),'@univerjs/sheets-drawing'],_0x5c6589):(_0x1f99c9=typeof globalThis<'u'?globalThis:_0x1f99c9||self,_0x5c6589(_0x1f99c9[_0x1e188b(0xe6)]={},_0x1f99c9['UniverProEngineShape'],_0x1f99c9[_0x1e188b(0x126)],_0x1f99c9[_0x1e188b(0x110)],_0x1f99c9[_0x1e188b(0x128)],_0x1f99c9[_0x1e188b(0x11b)]));}(this,function(_0xcb865e,_0x2dea1b,_0x3403b2,_0x134f3f,_0x49595d,_0x576dd7){const _0x159d26=_0x282d;Object[_0x159d26(0xef)](_0xcb865e,Symbol[_0x159d26(0x11c)],{'value':_0x159d26(0x103)});function _0x370528(_0x9e3ee9,_0x482921){return function(_0x255b41,_0x5978cc){_0x482921(_0x255b41,_0x5978cc,_0x9e3ee9);};}function _0x23e178(_0x226f61,_0x2d17ad,_0x130620,_0x257f25){const _0x4f0bd7=_0x159d26;var _0x14dce2=arguments[_0x4f0bd7(0x127)],_0x28f7e0=_0x14dce2<0x3?_0x2d17ad:_0x257f25===null?_0x257f25=Object['getOwnPropertyDescriptor'](_0x2d17ad,_0x130620):_0x257f25,_0x33f6e8;if(typeof Reflect==_0x4f0bd7(0x10e)&&typeof Reflect[_0x4f0bd7(0x118)]=='function')_0x28f7e0=Reflect[_0x4f0bd7(0x118)](_0x226f61,_0x2d17ad,_0x130620,_0x257f25);else{for(var _0x102bdf=_0x226f61[_0x4f0bd7(0x127)]-0x1;_0x102bdf>=0x0;_0x102bdf--)(_0x33f6e8=_0x226f61[_0x102bdf])&&(_0x28f7e0=(_0x14dce2<0x3?_0x33f6e8(_0x28f7e0):_0x14dce2>0x3?_0x33f6e8(_0x2d17ad,_0x130620,_0x28f7e0):_0x33f6e8(_0x2d17ad,_0x130620))||_0x28f7e0);}return _0x14dce2>0x3&&_0x28f7e0&&Object[_0x4f0bd7(0xef)](_0x2d17ad,_0x130620,_0x28f7e0),_0x28f7e0;}let _0x11f30d=class extends _0x3403b2[_0x159d26(0x105)]{constructor(_0x24b305,_0x2212a2,_0x5c3468,_0x4767c1,_0x14d7df){const _0x5dcc79=_0x159d26;super(_0x24b305,_0x2212a2,_0x5c3468,_0x4767c1),this[_0x5dcc79(0x107)]=_0x14d7df;}['getPlacement'](){const _0x5db46f=_0x159d26;let _0x35f7b1=this[_0x5db46f(0x107)][_0x5db46f(0x119)]({'unitId':this[_0x5db46f(0xf1)][_0x5db46f(0xe5)],'subUnitId':this[_0x5db46f(0xf1)][_0x5db46f(0x10d)],'drawingId':this['_shapeRef'][_0x5db46f(0x106)]});return _0x35f7b1?(0x0,_0x576dd7[_0x5db46f(0x124)])(_0x35f7b1):null;}['setPlacement'](_0x1e82ae){const _0x3a355f=_0x159d26;return this[_0x3a355f(0x10a)]['syncExecuteCommand'](_0x576dd7[_0x3a355f(0x120)]['id'],{'unitId':this[_0x3a355f(0xf1)][_0x3a355f(0xe5)],'subUnitId':this['_shapeRef']['subUnitId'],'drawings':[{'drawingId':this[_0x3a355f(0xf1)][_0x3a355f(0x106)],'placement':_0x1e82ae}]});}[_0x159d26(0x125)](_0x57ec92,_0x53f680,_0x5f4af2,_0x4f3153){const _0x4e73a6=_0x159d26;var _0x216f75,_0x354394;let _0x2f64f1=this[_0x4e73a6(0x107)][_0x4e73a6(0x119)]({'unitId':this[_0x4e73a6(0xf1)][_0x4e73a6(0xe5)],'subUnitId':this[_0x4e73a6(0xf1)][_0x4e73a6(0x10d)],'drawingId':this['_shapeRef'][_0x4e73a6(0x106)]});if(!_0x2f64f1)return console[_0x4e73a6(0xe8)](_0x4e73a6(0xf3)+this['_shapeRef'][_0x4e73a6(0x106)]+_0x4e73a6(0xf5)),this;let _0x5f869c=(_0x216f75=_0x2f64f1['transform'])==null?void 0x0:_0x216f75[_0x4e73a6(0xee)],_0x5f0af5=(_0x354394=_0x2f64f1[_0x4e73a6(0x123)])==null?void 0x0:_0x354394[_0x4e73a6(0xf7)];return _0x5f869c==null||_0x5f0af5==null?(console[_0x4e73a6(0xe8)](_0x4e73a6(0xf3)+this['_shapeRef'][_0x4e73a6(0x106)]+_0x4e73a6(0x108)),this):(this['_commandService']['syncExecuteCommand'](_0x576dd7[_0x4e73a6(0x120)]['id'],{'unitId':this[_0x4e73a6(0xf1)][_0x4e73a6(0xe5)],'subUnitId':this[_0x4e73a6(0xf1)][_0x4e73a6(0x10d)],'drawings':[{'drawingId':this[_0x4e73a6(0xf1)]['shapeId'],'placement':{'kind':_0x576dd7[_0x4e73a6(0x101)][_0x4e73a6(0xe2)],'from':{'row':_0x57ec92,'column':_0x53f680,'rowOffset':_0x5f4af2,'columnOffset':_0x4f3153},'width':_0x5f869c,'height':_0x5f0af5}}]}),this);}};_0x11f30d=_0x23e178([_0x370528(0x2,_0x2dea1b[_0x159d26(0xfc)]),_0x370528(0x3,_0x134f3f[_0x159d26(0xe3)]),_0x370528(0x4,_0x576dd7[_0x159d26(0xff)])],_0x11f30d);var _0x4dca04=class extends _0x49595d['FWorksheet']{[_0x159d26(0x111)](_0x205930){const _0x14c009=_0x159d26;let _0x406be4=this[_0x14c009(0x115)]();if(!_0x406be4)return null;try{let _0x2dd9dc=_0x406be4[_0x14c009(0xf9)](this[_0x14c009(0x10f)](),_0x205930);return _0x2dd9dc?this['_createShapeHandle'](_0x2dd9dc):(console['warn'](_0x14c009(0xe1)),null);}catch(_0x946dc2){return console[_0x14c009(0xe8)](_0x14c009(0xe1),_0x946dc2),null;}}[_0x159d26(0x114)](_0x2c8b56){const _0x4f045d=_0x159d26;let _0x5b5f25=this[_0x4f045d(0x115)]();if(!_0x5b5f25)return null;try{let _0x2afe58={...this[_0x4f045d(0x10f)](),'shapeId':_0x2c8b56},_0x19eddc=_0x5b5f25[_0x4f045d(0x114)](_0x2afe58);return _0x19eddc?this['_createShapeHandle'](_0x19eddc):(console[_0x4f045d(0xe8)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+_0x2c8b56+'\x22\x20was\x20not\x20found.'),null);}catch(_0xce3b4){return console[_0x4f045d(0xe8)](_0x4f045d(0xf4)+_0x2c8b56+'\x22.',_0xce3b4),null;}}[_0x159d26(0xf6)](){const _0x515c91=_0x159d26;let _0x4eb0a7=this[_0x515c91(0x115)]();if(!_0x4eb0a7)return[];try{return _0x4eb0a7['listShapes'](this['_getShapeScope']())[_0x515c91(0x10b)](_0x3f2455=>this[_0x515c91(0x104)](_0x3f2455));}catch(_0x2474e7){return console[_0x515c91(0xe8)](_0x515c91(0xfd),_0x2474e7),[];}}[_0x159d26(0x10f)](){const _0x403b84=_0x159d26;return{'hostType':_0x134f3f[_0x403b84(0xe4)][_0x403b84(0xfa)],'unitId':this[_0x403b84(0x122)]()['getUnitId'](),'subUnitId':this['getSheetId']()};}[_0x159d26(0x115)](){const _0x4568a9=_0x159d26;return this[_0x4568a9(0x116)][_0x4568a9(0xfb)](_0x2dea1b['IShapeHostAdapterRegistry'])[_0x4568a9(0xfb)](_0x134f3f[_0x4568a9(0xe4)][_0x4568a9(0xfa)]);}[_0x159d26(0x104)](_0x504824){const _0x54fdbb=_0x159d26;let {unitId:_0x6d03d3,subUnitId:_0x26b618,shapeId:_0x4a0d48}=_0x504824,_0x4dbb22={'unitId':_0x6d03d3,'subUnitId':_0x26b618,'shapeId':_0x4a0d48,'hostType':_0x134f3f[_0x54fdbb(0xe4)][_0x54fdbb(0xfa)]};return(0x0,_0x2dea1b[_0x54fdbb(0x102)])(_0x504824[_0x54fdbb(0xf0)])?this[_0x54fdbb(0x116)][_0x54fdbb(0xf2)](_0x3403b2[_0x54fdbb(0x112)],_0x4dbb22,this[_0x54fdbb(0x116)]):this['_injector']['createInstance'](_0x11f30d,_0x4dbb22,this[_0x54fdbb(0x116)]);}};_0x49595d[_0x159d26(0x11e)][_0x159d26(0xeb)](_0x4dca04),Object['defineProperty'](_0xcb865e,_0x159d26(0x11d),{'enumerable':!0x0,'get':function(){return _0x11f30d;}});}));
1
+ (function(_0x2dd469,_0x4a2911){const _0x1f5c84=_0x5369,_0x1fc7ab=_0x2dd469();while(!![]){try{const _0x1fa948=-parseInt(_0x1f5c84(0xfd))/0x1*(parseInt(_0x1f5c84(0x127))/0x2)+-parseInt(_0x1f5c84(0x105))/0x3*(parseInt(_0x1f5c84(0xea))/0x4)+-parseInt(_0x1f5c84(0x10a))/0x5+parseInt(_0x1f5c84(0x107))/0x6+-parseInt(_0x1f5c84(0x10f))/0x7*(-parseInt(_0x1f5c84(0x10d))/0x8)+parseInt(_0x1f5c84(0x115))/0x9+parseInt(_0x1f5c84(0xfb))/0xa;if(_0x1fa948===_0x4a2911)break;else _0x1fc7ab['push'](_0x1fc7ab['shift']());}catch(_0x10c67b){_0x1fc7ab['push'](_0x1fc7ab['shift']());}}}(_0x4a98,0x4749e),function(_0x2f472b,_0x3251a2){const _0x41080c=_0x5369;typeof exports==_0x41080c(0xfa)&&typeof module<'u'?_0x3251a2(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets-drawing')):typeof define==_0x41080c(0x12b)&&define[_0x41080c(0xf2)]?define([_0x41080c(0x12e),'@univerjs-pro/engine-shape',_0x41080c(0xf7),_0x41080c(0x12f),_0x41080c(0x12c),_0x41080c(0x12a)],_0x3251a2):(_0x2f472b=typeof globalThis<'u'?globalThis:_0x2f472b||self,_0x3251a2(_0x2f472b[_0x41080c(0x109)]={},_0x2f472b['UniverProEngineShape'],_0x2f472b[_0x41080c(0x10c)],_0x2f472b[_0x41080c(0x111)],_0x2f472b[_0x41080c(0x12d)],_0x2f472b[_0x41080c(0x113)]));}(this,function(_0x3cbb4e,_0x144dd7,_0x415700,_0xa77a5f,_0x1b5dee,_0x4830cb){const _0x2702a7=_0x5369;Object[_0x2702a7(0xf5)](_0x3cbb4e,Symbol[_0x2702a7(0xfc)],{'value':'Module'});function _0x36cdfc(_0x4ce4b5,_0x11e8bc){return function(_0x512179,_0x4246eb){_0x11e8bc(_0x512179,_0x4246eb,_0x4ce4b5);};}function _0x4f54ff(_0x55a007,_0x1fbbfc,_0x51a89c,_0x1d0891){const _0x484e35=_0x2702a7;var _0x5a05ff=arguments[_0x484e35(0x117)],_0x44140c=_0x5a05ff<0x3?_0x1fbbfc:_0x1d0891===null?_0x1d0891=Object['getOwnPropertyDescriptor'](_0x1fbbfc,_0x51a89c):_0x1d0891,_0x4b62ae;if(typeof Reflect=='object'&&typeof Reflect[_0x484e35(0x11e)]==_0x484e35(0x12b))_0x44140c=Reflect[_0x484e35(0x11e)](_0x55a007,_0x1fbbfc,_0x51a89c,_0x1d0891);else{for(var _0x2d02c5=_0x55a007['length']-0x1;_0x2d02c5>=0x0;_0x2d02c5--)(_0x4b62ae=_0x55a007[_0x2d02c5])&&(_0x44140c=(_0x5a05ff<0x3?_0x4b62ae(_0x44140c):_0x5a05ff>0x3?_0x4b62ae(_0x1fbbfc,_0x51a89c,_0x44140c):_0x4b62ae(_0x1fbbfc,_0x51a89c))||_0x44140c);}return _0x5a05ff>0x3&&_0x44140c&&Object[_0x484e35(0xf5)](_0x1fbbfc,_0x51a89c,_0x44140c),_0x44140c;}let _0x1a34d7=class extends _0x415700[_0x2702a7(0x108)]{constructor(_0x7f7807,_0x7c13ad,_0x50291f,_0x2523a1,_0x3c2916){const _0x22b32f=_0x2702a7;super(_0x7f7807,_0x7c13ad,_0x50291f,_0x2523a1),this[_0x22b32f(0x118)]=_0x3c2916;}['getPlacement'](){const _0x4548cf=_0x2702a7;let _0x13b0c9=this['_sheetDrawingService'][_0x4548cf(0x119)]({'unitId':this[_0x4548cf(0xed)][_0x4548cf(0x122)],'subUnitId':this[_0x4548cf(0xed)][_0x4548cf(0x11a)],'drawingId':this[_0x4548cf(0xed)][_0x4548cf(0x116)]});return _0x13b0c9?(0x0,_0x4830cb[_0x4548cf(0xf4)])(_0x13b0c9):null;}[_0x2702a7(0xf9)](_0x56bf7d){const _0x2e8f66=_0x2702a7;return this[_0x2e8f66(0x102)][_0x2e8f66(0x114)](_0x4830cb[_0x2e8f66(0x11c)]['id'],{'unitId':this[_0x2e8f66(0xed)][_0x2e8f66(0x122)],'subUnitId':this[_0x2e8f66(0xed)]['subUnitId'],'drawings':[{'drawingId':this[_0x2e8f66(0xed)][_0x2e8f66(0x116)],'placement':_0x56bf7d}]});}[_0x2702a7(0xf6)](_0x4fd38c,_0x594603,_0x3b560b,_0xc34090){const _0x42a289=_0x2702a7;var _0x2c3131,_0x36f385;let _0x3184ce=this['_sheetDrawingService']['getDrawingByParam']({'unitId':this[_0x42a289(0xed)][_0x42a289(0x122)],'subUnitId':this[_0x42a289(0xed)]['subUnitId'],'drawingId':this[_0x42a289(0xed)][_0x42a289(0x116)]});if(!_0x3184ce)return console[_0x42a289(0x125)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x42a289(0xed)][_0x42a289(0x116)]+_0x42a289(0x10e)),this;let _0x4758ab=(_0x2c3131=_0x3184ce[_0x42a289(0x104)])==null?void 0x0:_0x2c3131[_0x42a289(0x10b)],_0x50a41f=(_0x36f385=_0x3184ce[_0x42a289(0x104)])==null?void 0x0:_0x36f385[_0x42a289(0x110)];return _0x4758ab==null||_0x50a41f==null?(console[_0x42a289(0x125)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x42a289(0xed)][_0x42a289(0x116)]+_0x42a289(0x11f)),this):(this['_commandService']['syncExecuteCommand'](_0x4830cb[_0x42a289(0x11c)]['id'],{'unitId':this['_shapeRef'][_0x42a289(0x122)],'subUnitId':this['_shapeRef'][_0x42a289(0x11a)],'drawings':[{'drawingId':this[_0x42a289(0xed)][_0x42a289(0x116)],'placement':{'kind':_0x4830cb[_0x42a289(0x126)][_0x42a289(0x128)],'from':{'row':_0x4fd38c,'column':_0x594603,'rowOffset':_0x3b560b,'columnOffset':_0xc34090},'width':_0x4758ab,'height':_0x50a41f}}]}),this);}};_0x1a34d7=_0x4f54ff([_0x36cdfc(0x2,_0x144dd7['IShapeHostAdapterRegistry']),_0x36cdfc(0x3,_0xa77a5f[_0x2702a7(0xff)]),_0x36cdfc(0x4,_0x4830cb['ISheetDrawingService'])],_0x1a34d7);var _0x16f01d=class extends _0x1b5dee['FWorksheet']{['insertShape'](_0x18a865){const _0x8e02a5=_0x2702a7;let _0x21ffb6=this[_0x8e02a5(0x120)]();if(!_0x21ffb6)return null;try{let _0x26ecfa=_0x21ffb6[_0x8e02a5(0xeb)](this[_0x8e02a5(0x106)](),_0x18a865);return _0x26ecfa?this[_0x8e02a5(0x112)](_0x26ecfa):(console[_0x8e02a5(0x125)](_0x8e02a5(0xf0)),null);}catch(_0x4977a3){return console[_0x8e02a5(0x125)](_0x8e02a5(0xf0),_0x4977a3),null;}}['getShape'](_0x3f3b9d){const _0x4b0f41=_0x2702a7;let _0x57dc3d=this['_getShapeAdapter']();if(!_0x57dc3d)return null;try{let _0x55ad16={...this[_0x4b0f41(0x106)](),'shapeId':_0x3f3b9d},_0x18ccc4=_0x57dc3d[_0x4b0f41(0x130)](_0x55ad16);return _0x18ccc4?this[_0x4b0f41(0x112)](_0x18ccc4):(console[_0x4b0f41(0x125)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+_0x3f3b9d+_0x4b0f41(0x10e)),null);}catch(_0x355fb1){return console[_0x4b0f41(0x125)](_0x4b0f41(0x103)+_0x3f3b9d+'\x22.',_0x355fb1),null;}}[_0x2702a7(0x129)](){const _0x33a119=_0x2702a7;let _0xf47e60=this['_getShapeAdapter']();if(!_0xf47e60)return[];try{return _0xf47e60[_0x33a119(0xf8)](this['_getShapeScope']())['map'](_0x9ead64=>this[_0x33a119(0x112)](_0x9ead64));}catch(_0x4bfa78){return console['warn'](_0x33a119(0xf1),_0x4bfa78),[];}}['_getShapeScope'](){const _0x41712c=_0x2702a7;return{'hostType':_0xa77a5f[_0x41712c(0x100)][_0x41712c(0x121)],'unitId':this[_0x41712c(0xec)]()[_0x41712c(0xf3)](),'subUnitId':this[_0x41712c(0xfe)]()};}[_0x2702a7(0x120)](){const _0x28d5fe=_0x2702a7;return this[_0x28d5fe(0x11d)][_0x28d5fe(0xe9)](_0x144dd7[_0x28d5fe(0x101)])[_0x28d5fe(0xe9)](_0xa77a5f[_0x28d5fe(0x100)][_0x28d5fe(0x121)]);}[_0x2702a7(0x112)](_0x2b51a6){const _0x26e723=_0x2702a7;let {unitId:_0x31c80c,subUnitId:_0x1bf4cb,shapeId:_0x34d9ec}=_0x2b51a6,_0x2a5195={'unitId':_0x31c80c,'subUnitId':_0x1bf4cb,'shapeId':_0x34d9ec,'hostType':_0xa77a5f['UniverInstanceType'][_0x26e723(0x121)]};return(0x0,_0x144dd7[_0x26e723(0x124)])(_0x2b51a6['shapeType'])?this[_0x26e723(0x11d)][_0x26e723(0x123)](_0x415700['FConnectorShape'],_0x2a5195,this[_0x26e723(0x11d)]):this['_injector'][_0x26e723(0x123)](_0x1a34d7,_0x2a5195,this[_0x26e723(0x11d)]);}};_0x1b5dee[_0x2702a7(0xee)][_0x2702a7(0xef)](_0x16f01d),Object[_0x2702a7(0xf5)](_0x3cbb4e,_0x2702a7(0x11b),{'enumerable':!0x0,'get':function(){return _0x1a34d7;}});}));function _0x5369(_0x12b592,_0x52833f){_0x12b592=_0x12b592-0xe9;const _0x4a98d8=_0x4a98();let _0x536985=_0x4a98d8[_0x12b592];return _0x536985;}function _0x4a98(){const _0x49c135=['exports','@univerjs/core','getShape','get','44jRlWiv','createShape','getWorkbook','_shapeRef','FWorksheet','extend','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','amd','getUnitId','getSheetDrawingPlacement','defineProperty','setPosition','@univerjs-pro/engine-shape/facade','listShapes','setPlacement','object','333950JqHScM','toStringTag','492433HtZDFc','getSheetId','ICommandService','UniverInstanceType','IShapeHostAdapterRegistry','_commandService','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','transform','74739EPKCry','_getShapeScope','3076938BmmEId','FShape','UniverProSheetsShapeFacade','2063160OmENUq','width','UniverProEngineShapeFacade','8920xWDvdQ','\x22\x20was\x20not\x20found.','2541nrZTYQ','height','UniverCore','_createShapeHandle','UniverSheetsDrawing','syncExecuteCommand','4681287rlnQbA','shapeId','length','_sheetDrawingService','getDrawingByParam','subUnitId','FSheetShape','SetSheetDrawingPlacementCommand','_injector','decorate','\x22\x20has\x20no\x20transform\x20extent.','_getShapeAdapter','UNIVER_SHEET','unitId','createInstance','isConnectorShape','warn','SheetDrawingAnchorType','2xooZwQ','Position','getShapes','@univerjs/sheets-drawing','function','@univerjs/sheets/facade','UniverSheetsFacade'];_0x4a98=function(){return _0x49c135;};return _0x4a98();}