@univerjs-pro/sheets-shape-ui 1.0.0-alpha.6 → 1.0.0-alpha.7

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.
Files changed (83) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/controllers/sheet-shape-render.controller.d.ts +7 -1
  62. package/lib/types/view-model/drawing-shape.d.ts +7 -0
  63. package/lib/umd/index.js +1 -1
  64. package/lib/umd/locale/ar-SA.js +1 -1
  65. package/lib/umd/locale/ca-ES.js +1 -1
  66. package/lib/umd/locale/de-DE.js +1 -1
  67. package/lib/umd/locale/en-US.js +1 -1
  68. package/lib/umd/locale/es-ES.js +1 -1
  69. package/lib/umd/locale/fa-IR.js +1 -1
  70. package/lib/umd/locale/fr-FR.js +1 -1
  71. package/lib/umd/locale/id-ID.js +1 -1
  72. package/lib/umd/locale/it-IT.js +1 -1
  73. package/lib/umd/locale/ja-JP.js +1 -1
  74. package/lib/umd/locale/ko-KR.js +1 -1
  75. package/lib/umd/locale/pl-PL.js +1 -1
  76. package/lib/umd/locale/pt-BR.js +1 -1
  77. package/lib/umd/locale/ru-RU.js +1 -1
  78. package/lib/umd/locale/sk-SK.js +1 -1
  79. package/lib/umd/locale/vi-VN.js +1 -1
  80. package/lib/umd/locale/zh-CN.js +1 -1
  81. package/lib/umd/locale/zh-HK.js +1 -1
  82. package/lib/umd/locale/zh-TW.js +1 -1
  83. package/package.json +19 -18
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x49d8a2=_0x208c;(function(_0x2d5ff8,_0x31f2ed){const _0x39c69c=_0x208c,_0x59e235=_0x2d5ff8();while(!![]){try{const _0x41cdb4=-parseInt(_0x39c69c(0x2f0))/0x1+parseInt(_0x39c69c(0x33b))/0x2*(-parseInt(_0x39c69c(0x250))/0x3)+parseInt(_0x39c69c(0x1a7))/0x4*(parseInt(_0x39c69c(0x308))/0x5)+-parseInt(_0x39c69c(0x102))/0x6*(-parseInt(_0x39c69c(0x1b2))/0x7)+-parseInt(_0x39c69c(0x156))/0x8*(parseInt(_0x39c69c(0x1f7))/0x9)+parseInt(_0x39c69c(0x110))/0xa+parseInt(_0x39c69c(0x187))/0xb;if(_0x41cdb4===_0x31f2ed)break;else _0x59e235['push'](_0x59e235['shift']());}catch(_0x101f99){_0x59e235['push'](_0x59e235['shift']());}}}(_0x4806,0xbbc9d));import{ComponentManager as _0x4dd7a3,IMenuManagerService as _0x25cc13,ISidebarService as _0xf1c3ee,IconManager as _0x45bf3a,MenuItemType as _0x2f4b7c,RibbonInsertGroup as _0x4cff09,getMenuHiddenObservable as _0x569198,useDependency as _0x2a5e25,useObservable as _0x57a615}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x20c995,ImageSourceTypeEnum as _0x4ed528,ShapeArrowSizeEnum as _0xd9107d,ShapeArrowTypeEnum as _0x1e506d,ShapeDefaultConfig as _0x2bea1d,ShapeFillEnum as _0x13bf97,ShapeLineTypeEnum as _0x3354c0,ShapeModel as _0x2a67cd,ShapeRenderModeEnum as _0x2d97cd,ShapeTypeEnum as _0x1ca39f,computeConnectorRouteLayout as _0x59ea91,getBasicShapeRotateBound as _0x4d4669,isConnectorShape as _0x5d2a5e,isCurvedConnectorShape as _0x41cad6,routeConnectorLineShape as _0x449797}from'@univerjs-pro/engine-shape';import{SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x370f9f,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x229ba4,ShapeEditPanel as _0x577577,ShapeFloatingToolbar as _0x3381e5,ShapeGroupEnum as _0x57c621,ShapePickerDropdown as _0x55b52d,ShapePickerPanel as _0x71cbe8,ShapeTextEditorContainer as _0x264bf4,ShapeTextFloatMenuRenderControllerBase as _0x596e22,ShapeTextFloatToolbar as _0x2d3b93,UniverShapeEditorUIPlugin as _0x464a71,activateDrawingObject as _0x3928d2,buildShapeTextDataUpdate as _0x1072ef,clearActiveDrawingObjects as _0xeb3392,createShapeTextBoxShapeData as _0x510160,getTextModel as _0xdf5543,getTextStyle as _0x45f466,normalizeShapeTextModel as _0x50ef04,plainShapeTextToDocumentData as _0x36c523,prepareShapeTextDocumentData as _0x55d4b7,resolveShapeTextDocumentRenderLayout as _0x110d01,resolveShapeTextEditorBehaviorShapeData as _0x31773d,resolveShapeTextEditorWrapStrategy as _0x17f1c5,shouldAllowShapeTextEditorHostSizeShrink as _0x7502d3,shouldClipShapeTextDocument as _0x3f71c6}from'@univerjs-pro/shape-editor-ui';import{InsertShapeCommand as _0x5db24c,InsertSheetsShapeMutation as _0x47dbbc,RemoveSheetsShapeMutation as _0x32e37c,SetShapeDrawingDataCommand as _0x357925,SetSheetsShapeRotateCommand as _0x45951d,SetSheetsShapeTextVerticalToggleCommand as _0x3209a5,SheetsShapeService as _0x1a451a,ToggleSheetsShapeFlipCommand as _0x4deace,UniverSheetsShapePlugin as _0x551142,UpdateConnectorRelationCommand as _0x1c01fb,UpdateLineShapeResizeCommand as _0x3b0863,UpdateSheetsShapeDataMutation as _0x22295a}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5516a4,CommandType as _0xbd62c0,DependentOn as _0x15410a,Disposable as _0x1e0fa2,DocumentDataModel as _0x4de61b,DrawingTypeEnum as _0x336997,FOCUSING_COMMON_DRAWINGS as _0x26ab00,FOCUSING_SHAPE_TEXT_EDITOR as _0x7f228e,HorizontalAlign as _0x30a9f7,ICommandService as _0x3002c9,IConfigService as _0xb443b,IContextService as _0x2d429f,IImageIoService as _0x529318,IURLImageService as _0x225d5a,IUndoRedoService as _0x471f95,IUniverInstanceService as _0x2320a1,Inject as _0x3465f0,Injector as _0xab16b2,LocaleService as _0x9a7c24,Plugin as _0x257c5b,UniverInstanceType as _0x4c1a31,VerticalAlign as _0x2099ff,createInternalEditorID as _0x4f9780,generateRandomId as _0x3893c7,merge as _0x1c7285,toDisposable as _0x4f15f0,touchDependencies as _0x14b49a}from'@univerjs/core';import{CopySheetCommand as _0x54e5a0,RemoveSheetCommand as _0x414783,SheetInterceptorService as _0x85f95e,SheetPermissionCheckController as _0x2cc1a0,SheetSkeletonService as _0x834a52,SheetsSelectionsService as _0x25ed03,WorkbookEditablePermission as _0x3216bb,WorksheetEditPermission as _0x57e1db,attachRangeWithCoord as _0x37168f,discreteRangeToRange as _0x44b7b4,getSheetCommandTarget as _0x20e706}from'@univerjs/sheets';import{IDrawingManagerService as _0x5a9176,SetDrawingSelectedOperation as _0x42475e,getDrawingShapeKeyByDrawingSearch as _0x24e648}from'@univerjs/drawing';import{CURSOR_TYPE as _0x35244f,Circle as _0x1578ae,DRAWING_OBJECT_LAYER_INDEX as _0x529f4c,DocumentSkeleton as _0x3a7e93,DocumentViewModel as _0x3425b8,Documents as _0x5ca0dd,IRenderManagerService as _0x2565d9,Image as _0xd2487b,RENDER_CLASS_TYPE as _0x18ef31,SHEET_VIEWPORT_KEY as _0x42dea8,Shape as _0x176254,Transform as _0x3a4198,Vector2 as _0x1d9584}from'@univerjs/engine-render';import{COPY_TYPE as _0x4538e3,ISheetClipboardService as _0x4d0a59,PREDEFINED_HOOK_NAME as _0x951401,SheetCanvasPopManagerService as _0x57df42,SheetPrintInterceptorService as _0x4f0169,SheetScrollManagerService as _0x5480ae,SheetSkeletonManagerService as _0x4b5a3f,deriveStateFromActiveSheet$ as _0x291355,getCurrentRangeDisable$ as _0x1aaed7,getViewportByCell as _0x356c4d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x1154b0,EMPTY as _0x4e602d,Observable as _0x17aabe,of as _0x5ba9b9,switchMap as _0x48371d}from'rxjs';import{DrawingCommonPanel as _0x4b0647,DrawingImageClipService as _0x52908b,DrawingRenderService as _0x4d04f3,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x76290b,OBJECT_LIST_FLOATING_SECTION_ID as _0x21b1e9,ObjectListPanelBase as _0x1ea8c0,getCurrentUnitInfo as _0x5b5b76,getObjectListPanelLabels as _0x3137ac,getObjectListPanelSectionIdForDrawingType as _0x68c808,getObjectListPanelTypeName as _0x23c7c2,insertGroupObject as _0x4cf997}from'@univerjs/drawing-ui';import{jsx as _0x4c6044,jsxs as _0x52bc9b}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2da0f1}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x37e739,SheetsDrawingGroupCopyPasteController as _0x407497,UniverSheetsDrawingUIPlugin as _0x1c2191}from'@univerjs/sheets-drawing-ui';import{CopyDoubleIcon as _0x8cec5a}from'@univerjs/icons';import{DrawingApplyType as _0x20e0af,ISheetDrawingService as _0xc538a1,RemoveSheetDrawingCommand as _0x5f4db7,SetDrawingApplyMutation as _0x2fbd15,SetDrawingArrangeCommand as _0xa10ec9,SetSheetDrawingCommand as _0x577eb5,transformToAxisAlignPosition as _0x14cc4e,transformToDrawingPosition as _0x4ee577}from'@univerjs/sheets-drawing';import{memo as _0x3cdd19,useEffect as _0xecd31c,useMemo as _0x307aa0,useReducer as _0x3962a7,useState as _0x487ae5}from'react';import{DocSelectionManagerService as _0x529093}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x16c1cd,DocSelectionRenderService as _0x3889b2}from'@univerjs/docs-ui';function un(_0x5d612c,_0x46bac1){const _0x325f88=_0x208c;let _0x27cabe={};for(let _0x511249 of Object['keys'](_0x46bac1)){let _0x5d5140=_0x46bac1[_0x511249],_0x13a49e=_0x5d612c[_0x511249];if(_0x5d5140!==void 0x0){if(_0x13a49e===void 0x0){_0x27cabe[_0x511249]=void 0x0;continue;}typeof _0x5d5140==_0x325f88(0x196)&&_0x5d5140&&!Array[_0x325f88(0x154)](_0x5d5140)&&typeof _0x13a49e==_0x325f88(0x196)&&_0x13a49e&&!Array['isArray'](_0x13a49e)?_0x27cabe[_0x511249]=un(_0x13a49e,_0x5d5140):_0x27cabe[_0x511249]=_0x13a49e;}}return _0x27cabe;}const dn={'type':_0xbd62c0[_0x49d8a2(0x140)],'id':_0x49d8a2(0x2e8),'handler':(_0x3c35ad,_0x35bc92)=>{const _0x44be3c=_0x49d8a2;let _0x22aef1=_0x3c35ad[_0x44be3c(0x1bc)](_0x1a451a),{unitId:_0x1e06ac,subUnitId:_0x1a379e,shapeType:_0x34b7a5,shapeId:_0x1a918b,shapeData:_0x4261e8,oldShapeJSON:_0x5f0b9d}=_0x35bc92;if(!_0x22aef1[_0x44be3c(0x296)](_0x1e06ac,_0x1a379e,_0x1a918b))return!0x1;let _0x2486f3=_0x3c35ad[_0x44be3c(0x1bc)](_0x3002c9),_0x5d4a67=_0x3c35ad[_0x44be3c(0x1bc)](_0x471f95),{oldShapeType:_0x35fe00,oldShapeData:_0x152b70={}}=_0x5f0b9d,_0x1c46a5=un(_0x152b70,_0x4261e8||{}),_0x57cdda={'id':_0x22295a['id'],'params':{'unitId':_0x1e06ac,'subUnitId':_0x1a379e,'shapeId':_0x1a918b,'shapeType':_0x34b7a5,'shapeData':_0x4261e8}},_0x33bc57={'id':_0x22295a['id'],'params':{'unitId':_0x1e06ac,'subUnitId':_0x1a379e,'shapeId':_0x1a918b,'shapeType':_0x35fe00,'shapeData':_0x1c46a5}};return _0x2486f3['syncExecuteCommand'](_0x57cdda['id'],_0x57cdda[_0x44be3c(0x2ba)])?(_0x5d4a67[_0x44be3c(0x33c)]({'unitID':_0x1e06ac,'undoMutations':[_0x33bc57],'redoMutations':[_0x57cdda]}),!0x0):!0x1;}};function fn(_0x44e964,_0x533949,_0x16674d,_0x357e1e,_0x390024,_0x317f69){const _0x5ef3aa=_0x49d8a2;let _0x498dfd={'unitId':_0x533949,'subUnitId':_0x16674d,'shapeId':_0x357e1e,'shapeData':_0x317f69,'oldShapeJSON':_0x390024};return _0x44e964[_0x5ef3aa(0x2c5)](dn['id'],_0x498dfd);}function pn(_0x3caec4,_0xf4af9d,_0x4e9c64,_0xb1c7f,_0x5d449e,_0x4d1843){const _0x15303f=_0x49d8a2;let _0x3cc772={'unitId':_0xf4af9d,'subUnitId':_0x4e9c64,'shapeId':_0xb1c7f,'shapeData':_0x4d1843,'oldShapeJSON':_0x5d449e};return _0x3caec4[_0x15303f(0x2c5)](dn['id'],_0x3cc772);}function mn(_0x855a0d){'@babel/helpers - typeof';const _0x1f258f=_0x49d8a2;return mn=typeof Symbol==_0x1f258f(0x1fd)&&typeof Symbol[_0x1f258f(0x2c2)]=='symbol'?function(_0x254e6e){return typeof _0x254e6e;}:function(_0x4943af){const _0x4346df=_0x1f258f;return _0x4943af&&typeof Symbol==_0x4346df(0x1fd)&&_0x4943af[_0x4346df(0xe2)]===Symbol&&_0x4943af!==Symbol[_0x4346df(0xef)]?'symbol':typeof _0x4943af;},mn(_0x855a0d);}function hn(_0x35a624,_0x14d9e3){const _0x4ab4a7=_0x49d8a2;if(mn(_0x35a624)!=_0x4ab4a7(0x196)||!_0x35a624)return _0x35a624;var _0x565585=_0x35a624[Symbol['toPrimitive']];if(_0x565585!==void 0x0){var _0x59fbbe=_0x565585['call'](_0x35a624,_0x14d9e3||_0x4ab4a7(0x271));if(mn(_0x59fbbe)!='object')return _0x59fbbe;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x14d9e3===_0x4ab4a7(0x202)?String:Number)(_0x35a624);}function gn(_0x152aaf){const _0x220dc0=_0x49d8a2;var _0x2bf159=hn(_0x152aaf,_0x220dc0(0x202));return mn(_0x2bf159)==_0x220dc0(0x10c)?_0x2bf159:_0x2bf159+'';}function q(_0x37cb0e,_0x4be070,_0x39d2ed){const _0x1e7906=_0x49d8a2;return(_0x4be070=gn(_0x4be070))in _0x37cb0e?Object[_0x1e7906(0x117)](_0x37cb0e,_0x4be070,{'value':_0x39d2ed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37cb0e[_0x4be070]=_0x39d2ed,_0x37cb0e;}function _n(_0x4776ea,_0x2b735f,_0x188fdb){const _0x2f95a3=_0x49d8a2;var _0x1f054e;let _0x288329=_0x31773d(_0x4776ea,{..._0x2b735f,'dataModel':{...(_0x1f054e=_0x2b735f[_0x2f95a3(0x2e0)])==null?{}:_0x1f054e,..._0x188fdb?{'doc':_0x188fdb}:null}}),_0x446e01=_0x17f1c5(_0x288329);return{'clip':_0x3f71c6(_0x288329,_0x446e01),'wrapStrategy':_0x446e01};}var vn=class extends _0x176254{constructor(_0x21ce4e,_0x3fbfdb){const _0x3c83af=_0x49d8a2;super(_0x21ce4e,_0x3fbfdb),q(this,_0x3c83af(0x122),void 0x0),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x3c83af(0x1a6),_0x336997['DRAWING_SHAPE']),q(this,_0x3c83af(0xdf),!0x0),this[_0x3c83af(0x122)]={..._0x3fbfdb},this['_init']();}[_0x49d8a2(0x2fa)](){const _0x1966a0=_0x49d8a2;this[_0x1966a0(0x135)]['subscribeEvent'](_0x33b45e=>{const _0x67d95e=_0x1966a0;this[_0x67d95e(0x2ff)](_0x33b45e);});}['setPrstGeom'](_0x727b41){const _0x3270bc=_0x49d8a2;this['_props'][_0x3270bc(0x178)]=_0x727b41;}['setEditing'](_0x264ae0){this['_props']['isEditing']=_0x264ae0,this['makeDirty'](!0x0);}get['unitId'](){const _0x27e342=_0x49d8a2;return this[_0x27e342(0x122)][_0x27e342(0x1b7)];}get[_0x49d8a2(0x2b4)](){const _0x375da2=_0x49d8a2;return this[_0x375da2(0x122)][_0x375da2(0x2b4)];}[_0x49d8a2(0x2ff)](_0x1366d0){const _0x506605=_0x49d8a2;if(this[_0x506605(0x122)][_0x506605(0x225)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x594213,height:_0x3f644b}=this,{width:_0x18f567=0x0,height:_0x38ea7d=0x0}=_0x1366d0['preValue'],{left:_0x3dc584=0x0,top:_0x29bdfb=0x0,right:_0x4c85f4=0x0,bottom:_0x2e9662=0x0}=this['_props'][_0x506605(0x225)],_0x4378df=_0x3dc584,_0x258e38=_0x29bdfb,_0x2f1899=_0x4c85f4,_0x27795c=_0x2e9662,_0x141dc8=!0x1;if(_0x18f567!==0x0&&_0x18f567!==_0x594213){let _0x545720=_0x3dc584/_0x18f567,_0x283d50=_0x4c85f4/_0x18f567;_0x4378df=_0x594213*_0x545720,_0x2f1899=_0x594213*_0x283d50,_0x141dc8=!0x0;}if(_0x38ea7d!==0x0&&_0x38ea7d!==_0x3f644b){let _0xc5f78=_0x29bdfb/_0x38ea7d,_0x20c1d6=_0x2e9662/_0x38ea7d;_0x258e38=_0x3f644b*_0xc5f78,_0x27795c=_0x3f644b*_0x20c1d6,_0x141dc8=!0x0;}_0x141dc8&&this[_0x506605(0x279)]({'left':_0x4378df,'top':_0x258e38,'right':_0x2f1899,'bottom':_0x27795c});}['setSrcRect'](_0xf412cc){const _0xd8a8d2=_0x49d8a2;this[_0xd8a8d2(0x122)][_0xd8a8d2(0x225)]=_0xf412cc,this[_0xd8a8d2(0x165)](!0x0);}['setFillImage'](_0xceef10){const _0x1aaeae=_0x49d8a2;this[_0x1aaeae(0x122)][_0x1aaeae(0x157)]=_0xceef10,this[_0x1aaeae(0x165)](!0x0);}set[_0x49d8a2(0x166)](_0x30bc04){const _0x6db4af=_0x49d8a2;this[_0x6db4af(0x293)]=_0x30bc04;}get[_0x49d8a2(0x166)](){const _0x44ea1d=_0x49d8a2;this[_0x44ea1d(0x293)]||this['_setTransForm']();let _0xfb31fd=this['_transform'][_0x44ea1d(0x148)]();return this[_0x44ea1d(0x1bd)](_0xfb31fd);}get['shapeModel'](){const _0x50103e=_0x49d8a2;return this[_0x50103e(0x122)][_0x50103e(0x11d)];}get[_0x49d8a2(0x142)](){const _0x268624=_0x49d8a2;return this[_0x268624(0x122)]['shapeId'];}get['classType'](){const _0x4aaae4=_0x49d8a2;return _0x18ef31[_0x4aaae4(0x29d)];}['_draw'](_0x131002,_0x73b0e5,_0x1d0c20,_0x56cfeb){const _0x30d5bf=_0x49d8a2;let _0x5b5381=this[_0x30d5bf(0x122)][_0x30d5bf(0x11d)];if(!_0x5b5381||!_0x73b0e5)return;let _0x423b91=_0x1d0c20==null?this[_0x30d5bf(0x2b9)]:_0x1d0c20,_0x3a213f=_0x56cfeb==null?this[_0x30d5bf(0x232)]:_0x56cfeb,_0x755730={'shapeType':_0x5b5381[_0x30d5bf(0x285)](),'width':_0x423b91,'height':_0x3a213f},_0x5b52ca={'renderMode':_0x2d97cd[_0x30d5bf(0x245)],'oKey':this['oKey'],'image':this['_props']['image'],'angle':this[_0x30d5bf(0x1fa)]};_0x5b5381[_0x30d5bf(0x314)](_0x755730),_0x131002[_0x30d5bf(0x30b)]();let _0x2cdcb4={'top':0x0,'left':0x0,'width':_0x423b91,'height':_0x3a213f};_0x5b5381[_0x30d5bf(0x2b5)](_0x131002,_0x2cdcb4,_0x5b52ca),_0x131002[_0x30d5bf(0x13e)]();let _0x970d64=_0x5b5381[_0x30d5bf(0x1cc)](),_0xb358ef=_0x5b5381[_0x30d5bf(0x2fc)](_0x2cdcb4),_0x4ca119=_0x5b5381[_0x30d5bf(0xe0)]();if(_0x970d64&&_0xb358ef&&!_0x4ca119){_0x131002[_0x30d5bf(0x30b)](),this['getState']()['flipX']&&_0x131002[_0x30d5bf(0x32e)](-0x1,0x1);let _0x4c6b9a=_0x423b91/0x2,_0x14a469=_0x3a213f/0x2;_0x131002['translate'](-_0x4c6b9a,-_0x14a469),_0x131002['beginPath'](),this['_drawShapeText'](_0x131002,_0x970d64,_0xb358ef),_0x131002['restore']();}}['getDrawingPoints'](_0x48e7c4){}[_0x49d8a2(0x194)](_0x14ab28,_0x13c102,_0x220252){const _0x13350f=_0x49d8a2;var _0x328dbe;this[_0x13350f(0x122)]['isEditing']||(!((_0x328dbe=_0x13c102[_0x13350f(0x2e0)])!=null&&_0x328dbe[_0x13350f(0x15f)])&&_0x13350f(0xec)in _0x13c102&&_0x13c102[_0x13350f(0xec)]===!0x1?this[_0x13350f(0x24b)](_0x14ab28,_0x13c102,_0x220252):this['_drawRichText'](_0x14ab28,_0x13c102,_0x220252));}[_0x49d8a2(0x24b)](_0x8f43ee,_0x379eed,_0x4e41dc){const _0x4e0cad=_0x49d8a2;var _0x2583c5;this[_0x4e0cad(0x1aa)](_0x8f43ee,{..._0x379eed,'text':(_0x2583c5=_0x379eed['text'])==null?'':_0x2583c5,'dataModel':{'doc':_0x36c523(_0x379eed,'sheets-shape-text-'+this[_0x4e0cad(0x163)])}},_0x4e41dc);}[_0x49d8a2(0x1aa)](_0x482e69,_0x38c752,_0x517a8e){const _0x490034=_0x49d8a2;var _0x331875,_0x2789d0;let _0x213a03=this[_0x490034(0x122)][_0x490034(0x244)];if(!_0x38c752[_0x490034(0x2e0)]||!_0x213a03)return;let _0x5c103f=_0x50ef04(_0x38c752['dataModel']);if(!_0x5c103f)return;let _0x55d496=_0x5c103f[_0x490034(0x15f)];if(!_0x55d496)return;let _0x7dc632=(_0x331875=_0x5c103f['va'])==null?_0x2099ff['TOP']:_0x331875,_0x227ebf=(_0x2789d0=_0x5c103f['ha'])==null?_0x30a9f7[_0x490034(0x204)]:_0x2789d0,_0x130197=_n(this['_props'][_0x490034(0x11d)][_0x490034(0x205)](),_0x38c752,_0x55d496),_0x37d1cf=_0x38c752['isHorizontal'],_0x5a2b37=new _0x4de61b(_0x55d4b7(_0x55d496,{'isHorizontal':_0x37d1cf!==!0x1,'textRect':_0x517a8e,'verticalAlign':_0x7dc632,'horizontalAlign':_0x227ebf,'wrapStrategy':_0x130197[_0x490034(0x253)]})),_0x18a652=new _0x3425b8(_0x5a2b37),_0x325633=_0x3a7e93[_0x490034(0x1cd)](_0x18a652,_0x213a03);_0x325633[_0x490034(0x174)]();let _0x325836=_0x325633['getActualSize']()[_0x490034(0x1dc)],_0x24bf5a=_0x110d01({'contentHeight':_0x325836,'verticalAlign':_0x7dc632,'viewportHeight':_0x517a8e[_0x490034(0x232)]});_0x5a2b37['updateDocumentStyle']({'pageSize':{'width':_0x37d1cf===!0x1?_0x517a8e[_0x490034(0x232)]:_0x517a8e['width'],'height':_0x24bf5a['contentHeight']}}),_0x5a2b37[_0x490034(0x274)]({'t':_0x24bf5a['marginTop']}),_0x325633[_0x490034(0x174)]();let _0x731c4=new _0x5ca0dd(_0x490034(0x192)+this[_0x490034(0x163)],_0x325633,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x490034(0x165)](!0x0)});_0x731c4['resize'](_0x517a8e[_0x490034(0x2b9)],_0x24bf5a[_0x490034(0x255)]),_0x482e69[_0x490034(0x30b)](),_0x482e69[_0x490034(0x27a)](_0x517a8e[_0x490034(0x26f)],_0x517a8e[_0x490034(0x25d)]),_0x130197[_0x490034(0x12b)]&&(_0x482e69['beginPath'](),_0x482e69[_0x490034(0x10b)](0x0,_0x24bf5a[_0x490034(0x11e)],_0x517a8e[_0x490034(0x2b9)],_0x24bf5a[_0x490034(0x14e)]),_0x482e69['clip']()),_0x24bf5a['contentVerticalOffset']&&_0x482e69[_0x490034(0x27a)](0x0,_0x24bf5a[_0x490034(0x226)]),_0x731c4[_0x490034(0x298)](_0x482e69),_0x482e69[_0x490034(0x13e)](),_0x731c4[_0x490034(0x2b0)](),_0x325633['dispose'](),_0x18a652['dispose'](),_0x5a2b37[_0x490034(0x2b0)]();}[_0x49d8a2(0x2b5)](_0xc783ff,_0x51ddd9,_0x513a5e=!0x1){const _0x53cdc8=_0x49d8a2;if(!this[_0x53cdc8(0x316)])return this[_0x53cdc8(0x165)](!0x1),this;let {width:_0x46a8ce,height:_0x1f4b46,left:_0x1bba4d,top:_0x4c174b}=this,_0x4ee6c1=this[_0x53cdc8(0x23d)]();if(_0x46a8ce=_0x4ee6c1['width'],_0x1f4b46=_0x4ee6c1[_0x53cdc8(0x232)],_0x1bba4d=_0x4ee6c1['left'],_0x4c174b=_0x4ee6c1[_0x53cdc8(0x25d)],this[_0x53cdc8(0x1cb)](_0x51ddd9)){let {top:_0x36c3c6,left:_0x4ec051,bottom:_0x2dead7,right:_0x36d197}=_0x51ddd9[_0x53cdc8(0x2f8)];if(_0x46a8ce+this[_0x53cdc8(0x276)]+_0x1bba4d<_0x4ec051||_0x36d197<_0x1bba4d||_0x1f4b46+this[_0x53cdc8(0x276)]+_0x4c174b<_0x36c3c6||_0x2dead7<_0x4c174b)return this;}let _0x392cf9=_0x1bba4d+_0x46a8ce/0x2,_0x26859f=_0x4c174b+_0x1f4b46/0x2,_0x4c5786=this[_0x53cdc8(0x166)][_0x53cdc8(0x1d8)]();if(this['_props'][_0x53cdc8(0x193)]){let _0x3e654e=this['getState'](),_0x435b83=new _0x3a4198();_0x435b83[_0x53cdc8(0xf7)]({..._0x3e654e}),_0x4c5786=_0x435b83[_0x53cdc8(0x1d8)]();}return _0xc783ff[_0x53cdc8(0x30b)](),this[_0x53cdc8(0x122)][_0x53cdc8(0x11d)]['isRenderLinePointsMode']===!0x0||_0xc783ff[_0x53cdc8(0x166)](_0x4c5786[0x0],_0x4c5786[0x1],_0x4c5786[0x2],_0x4c5786[0x3],_0x392cf9,_0x26859f),this[_0x53cdc8(0x15e)](_0xc783ff,_0x51ddd9,_0x46a8ce,_0x1f4b46),_0xc783ff[_0x53cdc8(0x13e)](),this['makeDirty'](!0x1),this;}[_0x49d8a2(0x2be)](_0x58292f){const _0x304271=_0x49d8a2;let {left:_0x2afae3,top:_0xbccd06,width:_0x2f3764,height:_0x23fffd}=this[_0x304271(0x23d)](),_0x37cc46=this[_0x304271(0x166)]['getMatrix'](),_0xf86c3b=_0x2afae3+_0x2f3764/0x2,_0x128968=_0xbccd06+_0x23fffd/0x2,_0x10b4ca=new _0x3a4198([_0x37cc46[0x0],_0x37cc46[0x1],_0x37cc46[0x2],_0x37cc46[0x3],_0xf86c3b,_0x128968]),_0xc8baf2=this['getParent']();return(this['isInGroup']&&(_0xc8baf2==null?void 0x0:_0xc8baf2[_0x304271(0x2e7)])===_0x18ef31[_0x304271(0x237)]?_0xc8baf2[_0x304271(0x22a)][_0x304271(0x1be)](_0x10b4ca):_0x10b4ca)[_0x304271(0x2e4)]()[_0x304271(0x305)](_0x58292f);}['isHit'](_0x15e219){const _0x424868=_0x49d8a2;let {left:_0x59e365,top:_0x444d00,width:_0x447c07,height:_0x56a902}=this[_0x424868(0x23d)](),_0xe955a5=_0x59e365+_0x447c07/0x2,_0x3ddfab=_0x444d00+_0x56a902/0x2,_0x22fb59=this[_0x424868(0x166)][_0x424868(0x1d8)](),_0x517f88=new _0x3a4198([_0x22fb59[0x0],_0x22fb59[0x1],_0x22fb59[0x2],_0x22fb59[0x3],_0xe955a5,_0x3ddfab]),_0x4ebb0e=this[_0x424868(0x2bf)](),_0x36543e=(this[_0x424868(0x234)]&&(_0x4ebb0e==null?void 0x0:_0x4ebb0e[_0x424868(0x2e7)])===_0x18ef31[_0x424868(0x237)]?_0x4ebb0e[_0x424868(0x22a)][_0x424868(0x1be)](_0x517f88):_0x517f88)['invert']()[_0x424868(0x305)](_0x15e219),_0x188c2c=_0x447c07/0x2,_0x4a82a2=_0x56a902/0x2,_0x42b309=this[_0x424868(0x122)][_0x424868(0x11d)];return _0x42b309&&_0x42b309[_0x424868(0xe0)]()?_0x42b309[_0x424868(0x16a)](_0x36543e['x'],_0x36543e['y'],_0x447c07,_0x56a902):_0x36543e['x']>=-_0x188c2c-this[_0x424868(0x276)]/0x2&&_0x36543e['x']<=_0x188c2c+this[_0x424868(0x276)]/0x2&&_0x36543e['y']>=-_0x4a82a2-this['strokeWidth']/0x2&&_0x36543e['y']<=_0x4a82a2+this[_0x424868(0x276)]/0x2;}[_0x49d8a2(0x2b0)](){const _0x50cd92=_0x49d8a2;this[_0x50cd92(0x122)][_0x50cd92(0x11d)]=null,super['dispose']();}},yn=class extends _0x176254{constructor(_0xdd539e,_0x59ed33){const _0x8b44ad=_0x49d8a2;super(_0xdd539e,_0x59ed33),q(this,_0x8b44ad(0x1d0),null),q(this,'_adjName',null),q(this,_0x8b44ad(0x330),null),q(this,_0x8b44ad(0x227),null),_0x59ed33&&this[_0x8b44ad(0x25e)](_0x59ed33);}[_0x49d8a2(0x275)](){const _0x176487=_0x49d8a2;return{'unitId':this['_unitId'],'subUnitId':this[_0x176487(0x227)],'drawingId':this[_0x176487(0x1d0)]};}['setShapeProps'](_0x28da57){const _0x2e94db=_0x49d8a2;_0x28da57[_0x2e94db(0x142)]!==void 0x0&&(this[_0x2e94db(0x1d0)]=_0x28da57[_0x2e94db(0x142)]),_0x28da57[_0x2e94db(0x1a2)]!==void 0x0&&(this[_0x2e94db(0x2ad)]=_0x28da57['adjName']),_0x28da57[_0x2e94db(0x1b7)]!==void 0x0&&(this['_unitId']=_0x28da57[_0x2e94db(0x1b7)]),_0x28da57['subUnitId']!==void 0x0&&(this[_0x2e94db(0x227)]=_0x28da57[_0x2e94db(0x2b4)]),this[_0x2e94db(0x112)]({'width':_0x28da57['width'],'height':_0x28da57[_0x2e94db(0x232)]});}['_draw'](_0x266a27){const _0x3bc03f=_0x49d8a2;_0x1578ae[_0x3bc03f(0x1bf)](_0x266a27,{'radius':_0x2bea1d[_0x3bc03f(0xe1)],'fill':_0x2bea1d[_0x3bc03f(0x256)],'stroke':_0x2bea1d[_0x3bc03f(0xdd)],'strokeWidth':0x1,'evented':!0x0});}};function _0x4806(){const _0x5bd9db=['getRealBound','_initCommands','#bcbcbc','group','onload','onCommandExecuted','_getImageDrawingInfo','localeService','Path','_registerDrawingMoveHandler','isStartConnectorPoint','PictureFill','removeLinePoints','enableObjectsEvent','_drawSimpleText','_disposed','_addShapeConnectorHandlerObject','UUID','startArrow','15837hHqJNk','getImage','1.0.0-alpha.6','wrapStrategy','endConnectionDetection','contentHeight','adjHandleFill','_sidebarDisposable','trim','attachPopupToObject','getEditing','_isImagePointerDown','_calculateFreeEndpointAngle','top','setShapeProps','viewportScrollY','_registerImageShapeClipDelegate','UNIVER_SHEET','DRAWING_GROUP','setOnSavingEditorData','getShapeDataById','sheetTransform','stringify','_shapeRenderController','clip-adj-','_baseWidth','getDrawingByParam','_injector','pipe','skeleton','_sheetShapeAdjustController','left','fill','default','_connectorObjects','_isOpenedShapeEditPanel','updateDocumentDataMargin','getDrawingSearch','strokeWidth','open','getCurrentTypeOfUnit$','setSrcRect','translateWithPrecision','_onSavingEditorData$','_isDrawingShapePointDown','_clearPopups','getAdjustValueByName','gdRefAng','_registerOperations','VIEW_MAIN','DEFAULT_PASTE','targetShapeId','sectionFloating','getShapeType','_disposePopups','_registerFocusChangeHandler','_activeShapeId','length','renderDrawingShape','connector-handler-','_initEditingParams','_getImagePrstGeom','getConnectionInfo','_createControls','changeShapeType','initShapePopupMenu','SheetShapeTextEditorContainer','_transform','_handleBasicShapeUpdateConnectorLineShape','objects','getShapeModel','gdRefY','draw','_addShapeAdjustControl','sheet.shape.edit.panel','DRAWING_TABLE','_imageIoService','SHAPE','_createShapeAdjustControls','_handleConnectedEndpointPointerUp','PRINTING_COMPONENT_COLLECT','getAdjustInfoByName','_updateImageAdjValues','delete','startConnectionDetection','_isStartAdjusting','_reset','indexOf','updateShapeFillImage','_focusedDrawings','_highlightedSiteIndex','fillImageSourceType','CROSSHAIR','_adjName','UNIVER_DOC','_commandService','dispose','_clearShapeAdjustControls','shapeType','_shapes','subUnitId','render','_shapeService','DRAWING_IMAGE','addClipboardHook','width','params','_cxnIndex','_generatePasteMutations','_findShapeAtPoint','getInverseCoord','getParent','sin','keys','iterator','_index','getRenderById','executeCommand','getImageSourceCache','_componentManager','focusDrawing','SHEET_SHAPE_UI_PLUGIN','setPrstGeom','clearAdjustControls','values','registerClipDelegate','Arrow','_activeAdjustPointList','copyType','_registerDrawingFocusChangeHandler','index','from','MEDIA','_editingParams$','canvas','_draggingConnectorId','vertical','_copyInfo','sqrt','ang','remove$','stroke','getConnectorLinePoints','_localeService','dataModel','fillType','forward','unsubscribe','invert','cxnPointStrokeWidth','relation','classType','sheet.command.update-shape-data','_contextService','_executeConnectedRouteConnectionCommand','_getShapeAdjustPointListById','top-center','includes','some','sheets-shape-ui.rotateRight90','1342551ANEJQO','data','_activeShapeAdjustPointList','setEditing','changing$','_isHighlighted','_initialize','_registerIcons','viewBound','completeEditing','_init','sheets-shape-ui.imagePanel.crop.shape','getShapeTextRect','refreshTransform','_handleFreeEndpointPointerUp','_updateSrcRectByTransform','calcAdjValue','onPointerMove$','fillImageSource','_createShapePopupMenu','_baseHeight','applyPoint','getDrawingOrder','getObject','6261055tAmnUR','connection-site-','_targetShapeId','save','redo','offsetX','_getScrollInfo','_resetState','TOP','_clearConnectionSites','_baseShapeWidth','_activeShapeInfo','updateContext','_openShapeEditPanel','visible','fontSize','_executeConnectedRouteResizeCommand','video','_sheetDrawingShapeRenderController','onDblclick$','flipX','interceptCommand','sheets-shape-ui.insertShape','end','onReady','_getConnectionSiteAngle','changeEnd$','prstGeomAdjValues','_shapeUpdateListener','getAdjustNames','_popupMenuListener','_clipService','onRendered','_initCopyPaste','VIEW_MAIN_LEFT','registerFeaturePasteHook','getFocusDrawings','_findNearestConnectionSite','scale','activeAnObject','_unitId','startY','sheets-shape-ui.toggleFlipH','updateLinePoints','_sheetDrawingService','CUT','_attachAdjustEvent','INSERT','sheet.operation.open-shape-object-list-panel','title','_closeShapeEditPanel','252ijoXdU','pushUndoRedo','viewportScrollX','parent','getObjectIncludeInGroup','axisAlignSheetTransform','_hasReset','adjHandleStroke','gradientEndColor','isDrawingObject','isLineShape','adjHandleSize','constructor','_adjHandlerPointerUp','_handleConnectedEndpointMove','_initializedShapePopupMenu','syncExecuteCommand','gdRefX','_updateAdjustControlPositions','shapeText','clearAdjustValue','getShapeTypeById','isRichText','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','sheets-shape-ui','prototype','_currentConnectionTarget','_getShapeInfo','_sheetSkeletonService','setShapeData','selectable','with','description','composeMatrix','_sheetClipboardService','order','editingParams$','REMOVE','sheets-shape-ui.hidePanel','URL','DRAWING_UNIT','_showConnectionSites','getCurrentScrollState','_cxtHandlerPointerUp','6hfHxHr','shapeKey','featurePluginUpdateNotification','size','_urlImageService','_renderManagerService','stopPropagation','cxnPointStroke','getDrawingEditable','rect','symbol','registerRenderModule','sheets-shape-ui.permission.editErr','_baseShapeTop','5109480aUxUOK','forEach','transformByState','close','adjustValues','_executeConnectionCommand','interceptor','defineProperty','_currentUniverService','_getOrCreateShapeModel','_initPrinting','OPERATION','table','shapeModel','clipTop','CopyDoubleIcon','add','setFillImage','_props','localToWorld','_lastEditingShapeKey','getValue','_registerMoveHandler','update$','SELECTOR','_attachConnectorObjectEvent','_context','clip','computeStraightConnectorLayout','getDrawingPoints','drawingType','getUnit','worldPoints','_groupCopyPasteController','flipY','DRAWING_VIDEO','_iconManager','onTransformChange$','reverse','start','find','focus$','_loadShapePictureFill','getDrawingVisible','entries','drawing.operation.set-drawing-active','restore','_initMenu','COMMAND','Image','shapeId','_updateShapeAdjustControls','reduce','sheet.image-clip.shape-picker.component','SHAPE_TEXT','registerCommand','clone','getSelectedObjectMap','updateConnectionDetection','getTransformerByCreate','Rect','_currentScene','clipHeight','setContextValue','_insertShapes','getUnitType','setShouldShowAdjust','refreshShapeFillImage','isArray','_baseLeft','2431176tEtTQo','image','_baseShapeLeft','_drawingManagerService','next','_sheetPrintInterceptorService','hidden','_activeImageId','_draw','doc','_commandExecutedListener','addImageSourceCache','disableObjectsEvent','oKey','setPrstGeomAdjValues','makeDirty','transform','_connectionSiteObjects','univer-box-border\x20univer-px-4\x20univer-text-sm','getSheetBySheetId','isHitLine','_isStartConnectorPoint','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','disposeWithMe','sheets-shape-ui.objectListPanel.open','setCursor','sheets-shape-ui.objectListPanel.title','beforeCommandExecuted','_baseTop','DRAWING_DOM','calculate','_sidebarService','fontFamily','pick','prstGeom','_updateTransform','_adjHandlerPointerMove','cos','VIEW_MAIN_LEFT_TOP','_sheetBasicShapeConnectionPointController','endArrow','permissionCheckWithoutRange','_drawingAddListener','DRAWING_SHAPE','_sheetCanvasPopManagerService','getTransformer','rotation','_shapeTextEditingService','_clearControls','5830946CREyAZ','_generateCutPasteMutations','VIEW_MAIN_TOP','_imageShapeClipController','getDrawingOKey','activeSheet$','resetCursor','offsetY','_config','sheet.shape.text.float-menu','sheet.shape.picker.component','shape-text-','isEditing','_drawShapeText','ShapeIcon','object','_handleConnectorPointerUp','getConnectionSiteList','getCurrentUnitOfType','sheetViewStartColumn','subscribeEvent','_registerGroupFeaturePasteHook','_loadAndSetImage','_moveConnectorWithShape','shape-adjust-point-','registerFeatureMenuOffset','map','adjName','Large','getSkeleton','DRAWING_SMART_ART','_drawingType','4hNKHvo','error','getBatchRemoveOp','_drawRichText','bind','clear','_activeTargetShapeId','DRAWING_CHART','BUTTON','shape','Medium','7640045AsVKzU','_rerouteConnectorLine','getConnectionRelation','div','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','unitId','_univerInstanceService','_getConnectPointInfo','getBasicShapeRelation','_registerComponents','get','transformForAngle','multiply','drawWith','_sheetInterceptorService','_clearShapeConnectorHandlerObjects','_baseShapeHeight','getSkeletonParam','worldPoint','shapeData','refreshAdjustControls','addObject','unit','_getSceneAndTransformerByDrawingSearch','onPointerDown$','isRender','getShapeTextData','create','sheet.operation.open-sheet-shape-format-panel','setAdjustValueByName','_shapeId','_isShouldShowDrawingShapeAdjust','_isConnecting','custom','SolidFill','_executeResizeCommand','_initEvents','extraProps','getMatrix','getStartConnectInfo','filter','_activeShapeModel','actualHeight','name','gdRefR','clip-','getCurrentSkeleton','sheets-shape-ui.toggleTextVertical','version','#4285f4','_initSheetChange','complete','sheet.shape.object-list.panel','computeConnectorResizeLayout','sheet.command.menu-insert-shape','_activeAdjustInfo','abs','cxnPointRadius','isHighlighted','_getDrawingRect','sheet.shape.floating-toolbar','getCurrentLastSelection','normal','blockExecuteWithoutPermission','changeStart$','undo','_generateCopyPasteMutations','startX','sheets-shape-ui.openPanel','18sWnEDp','_baseDrawingRect','doc.image-clip.shape-picker.component','angle','clipByShape','onPointerUp$','function','highlighted','type','smartArt','None','string','_shapeEditPanelVersion','LEFT','getShapeData','sheetViewStartRow','_sheetPermissionCheckController','packageName','onerror','set','getBatchAddOp','_getShapeAdjustInfosById','_insertingShapeKeys','drawingId','setCanUseShapeClip','UPDATE','_addShapeConnectorHandlerObjects','subscribe','sectionCanvas','push','has','SolidLine','cxnIndex','sheets-shape-ui.config','_addControl','getOwnPropertyDescriptor','_drawingRenderService','value','register','_createCopyInfoByRange','_handleFreeEndpointMove','_sheetsShapeService','getZoomRatio','cxnPointFill','getEndConnectInfo','_getZoomRatio','srcRect','contentVerticalOffset','_subUnitId','scene','getUnitId','ancestorTransform','_cxtHandlerPointerMove','point','getDrawingDataForUnit','lineType','getBentTypeFromPoints','parse','_initPermission','height','getDrawingData','isInGroup','lineShapeId','horizontal','GROUP','worldRect','getShapePopupMenus','#FFFFFF','_configService','Line'];_0x4806=function(){return _0x5bd9db;};return _0x4806();}function J(_0xb3a217,_0x1500ed){return function(_0x29141b,_0x3e3e71){_0x1500ed(_0x29141b,_0x3e3e71,_0xb3a217);};}function Y(_0x52d7d5,_0x41dde7,_0x52f893,_0x5d8005){const _0x5b8e51=_0x49d8a2;var _0x3d4c39=arguments[_0x5b8e51(0x289)],_0x29f281=_0x3d4c39<0x3?_0x41dde7:_0x5d8005===null?_0x5d8005=Object[_0x5b8e51(0x21a)](_0x41dde7,_0x52f893):_0x5d8005,_0x5f5b4b;if(typeof Reflect==_0x5b8e51(0x196)&&typeof Reflect['decorate']==_0x5b8e51(0x1fd))_0x29f281=Reflect['decorate'](_0x52d7d5,_0x41dde7,_0x52f893,_0x5d8005);else{for(var _0x1d23d6=_0x52d7d5[_0x5b8e51(0x289)]-0x1;_0x1d23d6>=0x0;_0x1d23d6--)(_0x5f5b4b=_0x52d7d5[_0x1d23d6])&&(_0x29f281=(_0x3d4c39<0x3?_0x5f5b4b(_0x29f281):_0x3d4c39>0x3?_0x5f5b4b(_0x41dde7,_0x52f893,_0x29f281):_0x5f5b4b(_0x41dde7,_0x52f893))||_0x29f281);}return _0x3d4c39>0x3&&_0x29f281&&Object[_0x5b8e51(0x117)](_0x41dde7,_0x52f893,_0x29f281),_0x29f281;}let X=class extends _0x1e0fa2{constructor(_0xc7b7be,_0x282990,_0x3b5f84,_0x4a7dd1,_0x409765){const _0x2a11b4=_0x49d8a2;super(),this[_0x2a11b4(0x159)]=_0xc7b7be,this[_0x2a11b4(0x220)]=_0x282990,this[_0x2a11b4(0x2df)]=_0x3b5f84,this['_imageIoService']=_0x4a7dd1,this[_0x2a11b4(0x106)]=_0x409765;}[_0x49d8a2(0x28a)](_0x183459,_0xa406ea,_0x46fcfc){const _0x161f5f=_0x49d8a2;let {transform:_0x1c95f3,drawingType:_0x44e1d2,srcRect:_0x560d86,prstGeom:_0x5ba077,groupId:_0x10b00d,unitId:_0x399804,subUnitId:_0x42497e,drawingId:_0x2a0ac4,isMultiTransform:_0x3cd3d3,transforms:_0x299ac5,hidden:_0x3cf1a7,selectable:_0x3228ec}=_0x183459;if(_0x44e1d2!==_0x336997[_0x161f5f(0x181)]||!this[_0x161f5f(0x159)][_0x161f5f(0x13b)]()||_0x1c95f3==null)return;let _0x1d2d53=this[_0x161f5f(0x159)][_0x161f5f(0x10a)]();_0x1d2d53&&_0xa406ea['initTransformer'](_0x370f9f);let _0x51e870=_0x3cd3d3&&_0x299ac5?_0x299ac5:[_0x1c95f3],_0x34a08a=[];for(let _0x12314e of _0x51e870){let {left:_0x23478f,top:_0x17f99d,width:_0x183345,height:_0x283433,angle:_0x5873e8,flipX:_0x432d6c,flipY:_0x1c7b82,skewX:_0x4cd3eb,skewY:_0x3d352c}=_0x12314e,_0x445ab2=_0x51e870[_0x161f5f(0x2a7)](_0x12314e),_0x2707a4=_0x24e648({'unitId':_0x399804,'subUnitId':_0x42497e,'drawingId':_0x2a0ac4},_0x3cd3d3?_0x445ab2:void 0x0),_0x2f0354=_0xa406ea[_0x161f5f(0xda)](_0x2707a4);if(_0x2f0354!=null){_0x2f0354[_0x161f5f(0x112)]({'left':_0x23478f,'top':_0x17f99d,'width':_0x183345,'height':_0x283433,'angle':_0x5873e8,'flipX':_0x432d6c,'flipY':_0x1c7b82,'skewX':_0x4cd3eb,'skewY':_0x3d352c});continue;}let _0x19b12a=this[_0x161f5f(0x159)][_0x161f5f(0x306)](_0x399804,_0x42497e),_0x4d1bc9=_0x19b12a[_0x161f5f(0x2a7)](_0x2a0ac4);if(_0xa406ea['getObjectIncludeInGroup'](_0x2707a4)||!this[_0x161f5f(0x159)][_0x161f5f(0x13b)]())continue;let _0x37b3ea=this[_0x161f5f(0x220)]['getShapeModel'](_0x399804,_0x42497e,_0x2a0ac4);if(!_0x37b3ea)continue;let _0x30f654=new vn(_0x2707a4,{..._0x5d2a5e(_0x37b3ea[_0x161f5f(0x285)]())?{..._0x12314e,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x12314e},'zIndex':_0x4d1bc9===-0x1?_0x19b12a[_0x161f5f(0x289)]-0x1:_0x4d1bc9,'shapeModel':_0x37b3ea,'localeService':this[_0x161f5f(0x2df)],'shapeId':_0x2a0ac4,'unitId':_0x399804,'subUnitId':_0x42497e,'visible':_0x3cf1a7!==!0x0,'evented':_0x3228ec!==!0x1});_0xa406ea[_0x161f5f(0x1c7)](_0x30f654,_0x529f4c),_0x1d2d53&&_0xa406ea['attachTransformerTo'](_0x30f654),_0x10b00d&&_0x4cf997({'drawingId':_0x10b00d,'unitId':_0x399804,'subUnitId':_0x42497e},_0x30f654,_0xa406ea,this[_0x161f5f(0x159)]),_0x5ba077!=null&&_0x30f654[_0x161f5f(0x2ca)](_0x5ba077),_0x560d86!=null&&_0x30f654[_0x161f5f(0x279)](_0x560d86);let _0x3e036d=this[_0x161f5f(0x13a)](_0x30f654,_0x37b3ea[_0x161f5f(0x205)]());if(_0x3e036d){var _0x3ecd5c;_0x46fcfc==null||(_0x3ecd5c=_0x46fcfc['resourceCollector'])==null||_0x3ecd5c[_0x161f5f(0x120)](_0x3e036d);}_0x34a08a[_0x161f5f(0x214)](_0x30f654);}return _0x34a08a;}[_0x49d8a2(0x153)](_0x56d730){const _0xddfde5=_0x49d8a2;let _0x3abb37=_0x56d730[_0xddfde5(0x11d)][_0xddfde5(0x205)](),_0x4fa523=_0x3abb37['fill'];if(!_0x4fa523||_0x4fa523['fillType']!==_0x13bf97[_0xddfde5(0x248)]||!_0x4fa523[_0xddfde5(0x302)]){_0x56d730['setFillImage'](void 0x0);return;}this[_0xddfde5(0x13a)](_0x56d730,_0x3abb37);}[_0x49d8a2(0x13a)](_0x5a7c49,_0x562149){const _0x5e027e=_0x49d8a2;var _0x3c7896;let _0x122467=_0x562149[_0x5e027e(0x270)];if(!_0x122467||_0x122467[_0x5e027e(0x2e1)]!==_0x13bf97[_0x5e027e(0x248)]||!_0x122467[_0x5e027e(0x302)])return;let _0x3aa8ea=_0x122467[_0x5e027e(0x302)],_0x36cd84=(_0x3c7896=_0x122467[_0x5e027e(0x2ab)])==null?_0x4ed528[_0x5e027e(0xfd)]:_0x3c7896,_0x5ac8b9=this[_0x5e027e(0x29c)][_0x5e027e(0x2c6)](_0x3aa8ea,_0x36cd84);if(_0x5ac8b9){_0x5a7c49['setFillImage'](_0x5ac8b9);return;}return this[_0x5e027e(0x19d)](_0x5a7c49,_0x3aa8ea,_0x36cd84);}async['_loadAndSetImage'](_0x177cde,_0x4fc87b,_0x1ef0cc){const _0x3ef31f=_0x49d8a2;let _0x38dc1f;try{if(_0x1ef0cc===_0x4ed528[_0x3ef31f(0x24e)])_0x38dc1f=await this[_0x3ef31f(0x29c)][_0x3ef31f(0x251)](_0x4fc87b);else{if(_0x1ef0cc===_0x4ed528['URL'])try{_0x38dc1f=await this[_0x3ef31f(0x106)][_0x3ef31f(0x251)](_0x4fc87b);}catch{_0x38dc1f=_0x4fc87b;}else _0x38dc1f=_0x4fc87b;}}catch(_0x3e4405){console[_0x3ef31f(0x1a8)](_0x3ef31f(0x1b6),_0x3e4405);return;}await new Promise(_0x2d1c56=>{const _0x245545=_0x3ef31f;let _0x50861e=new window[(_0x245545(0x141))]();_0x50861e[_0x245545(0x241)]=()=>{const _0x15b258=_0x245545;this[_0x15b258(0x29c)][_0x15b258(0x161)](_0x4fc87b,_0x1ef0cc,_0x50861e),_0x177cde['setFillImage'](_0x50861e),_0x2d1c56();},_0x50861e[_0x245545(0x209)]=()=>{const _0x16014a=_0x245545;console[_0x16014a(0x1a8)](_0x16014a(0x16c),_0x4fc87b),_0x2d1c56();},_0x50861e['src']=_0x38dc1f;});}};X=Y([J(0x0,_0x5a9176),J(0x1,_0x3465f0(_0x1a451a)),J(0x2,_0x3465f0(_0x9a7c24)),J(0x3,_0x529318),J(0x4,_0x225d5a)],X);let Z=class extends _0x1e0fa2{constructor(_0x3aebbc,_0x4b6fbe,_0xbe75ea,_0x1895b7,_0x8d9146,_0x289c49){const _0x2bde6b=_0x49d8a2;super(),this[_0x2bde6b(0x159)]=_0x3aebbc,this['_sheetsShapeService']=_0x4b6fbe,this[_0x2bde6b(0x107)]=_0xbe75ea,this[_0x2bde6b(0x31a)]=_0x1895b7,this[_0x2bde6b(0x1b8)]=_0x8d9146,this['_commandService']=_0x289c49,q(this,_0x2bde6b(0x288),null),q(this,'_unitId',null),q(this,_0x2bde6b(0x227),null),q(this,_0x2bde6b(0x2f2),void 0x0),q(this,_0x2bde6b(0x2b3),[]),q(this,_0x2bde6b(0x158),0x0),q(this,_0x2bde6b(0x10f),0x0),q(this,'_baseShapeWidth',0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x2bde6b(0x2a5),!0x1),q(this,_0x2bde6b(0x1e9),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x2bde6b(0x17a),void 0x0),q(this,_0x2bde6b(0xe3),void 0x0),q(this,_0x2bde6b(0x1d1),!0x1),this[_0x2bde6b(0x2d1)](),this[_0x2bde6b(0x246)]();}[_0x49d8a2(0x2eb)](_0xcfd4a4,_0xbb8d88,_0x839645){const _0xcf92de=_0x49d8a2;let _0x377cf1=this[_0xcf92de(0x220)][_0xcf92de(0x296)](_0xcfd4a4,_0xbb8d88,_0x839645);if(_0x377cf1)return _0x377cf1[_0xcf92de(0x12d)]();}[_0x49d8a2(0x2cb)](){const _0x67b11=_0x49d8a2;this[_0x67b11(0x2b1)]();}[_0x49d8a2(0x1c6)](){this['_updateShapeAdjustControls'](!0x0);}[_0x49d8a2(0x152)](_0x408502){const _0x30cb79=_0x49d8a2;this[_0x30cb79(0x1d1)]=_0x408502;}[_0x49d8a2(0x20c)](_0x4f9178,_0x39c783,_0x280608,_0x332d05){const _0x958057=_0x49d8a2;let _0x508315=this['_sheetsShapeService']['getShapeModel'](_0x4f9178,_0x39c783,_0x280608);if(_0x508315)return _0x508315[_0x958057(0x2a1)](_0x332d05);}[_0x49d8a2(0x29e)](_0x10d2cd=!0x1){const _0x2a6f7e=_0x49d8a2;if(this[_0x2a6f7e(0x330)]===null||this[_0x2a6f7e(0x227)]===null||this[_0x2a6f7e(0x288)]===null)return;let _0x30e784=this[_0x2a6f7e(0x107)][_0x2a6f7e(0x2c4)](this['_unitId']);if(!_0x30e784||!_0x30e784[_0x2a6f7e(0xf5)](_0x4b5a3f)[_0x2a6f7e(0x1e0)]())return;let {scene:_0x3cc1f9}=_0x30e784,_0x577b58={'unitId':this[_0x2a6f7e(0x330)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2a6f7e(0x288)]},_0x484086=this[_0x2a6f7e(0x159)][_0x2a6f7e(0x26a)](_0x577b58),{transform:_0x28044d}=_0x484086;if(!_0x28044d||_0x484086['drawingType']!==_0x336997['DRAWING_SHAPE'])return;let {left:_0x21a817,top:_0x8767e6,width:_0x1fe606,height:_0x35ef5d,flipX:_0x979434,flipY:_0x3927ad,angle:_0x18c912=0x0}=_0x28044d;if(_0x21a817===void 0x0||_0x8767e6===void 0x0)return;_0x10d2cd&&(this[_0x2a6f7e(0x2f2)]=this[_0x2a6f7e(0x2eb)](this['_unitId'],this[_0x2a6f7e(0x227)],this['_activeShapeId']));let _0x25126f=this[_0x2a6f7e(0x2f2)];for(let _0x401736=0x0;_0x401736<_0x25126f[_0x2a6f7e(0x289)];_0x401736++){let _0x9bfae9=_0x25126f[_0x401736],_0x25f64f=_0x9bfae9['x'],_0x5675c2=_0x9bfae9['y'];if(_0x979434&&(_0x25f64f=(_0x1fe606||0x0)-_0x25f64f),_0x3927ad&&(_0x5675c2=(_0x35ef5d||0x0)-_0x5675c2),_0x18c912!==0x0){let _0x46a93f=(_0x1fe606||0x0)/0x2,_0x5446f5=(_0x35ef5d||0x0)/0x2,_0x3cab39=_0x18c912*Math['PI']/0xb4,_0x2fa816=Math[_0x2a6f7e(0x17b)](_0x3cab39),_0x5b6012=Math[_0x2a6f7e(0x2c0)](_0x3cab39),_0x393125=_0x25f64f-_0x46a93f,_0x155f55=_0x5675c2-_0x5446f5;_0x25f64f=_0x46a93f+(_0x393125*_0x2fa816-_0x155f55*_0x5b6012),_0x5675c2=_0x5446f5+(_0x393125*_0x5b6012+_0x155f55*_0x2fa816);}let _0x512737={'x':_0x25f64f,'y':_0x5675c2,'adjName':_0x9bfae9[_0x2a6f7e(0x1a2)]};this[_0x2a6f7e(0x299)](_0x3cc1f9,_0x512737,_0x512737[_0x2a6f7e(0x1a2)],_0x21a817,_0x8767e6,this[_0x2a6f7e(0x330)],this[_0x2a6f7e(0x227)]);}}[_0x49d8a2(0x143)](_0x2dec76=!0x1){const _0x12340f=_0x49d8a2;_0x2dec76&&(this[_0x12340f(0x2b1)](),this[_0x12340f(0x29e)](_0x2dec76));}[_0x49d8a2(0x299)](_0x1b09a7,_0x5165d9,_0x4d8f22,_0x49fd79,_0x327b37,_0x44ad33,_0x13153e){const _0x3a366f=_0x49d8a2;if(!this['_activeShapeId'])return;let _0x5127a0=_0x1b09a7['getObjectIncludeInGroup'](_0x3a366f(0x19f)+this[_0x3a366f(0x288)]+'-'+_0x4d8f22);if(_0x5127a0){_0x5127a0[_0x3a366f(0x112)]({'left':_0x5165d9['x']+_0x49fd79-_0x2bea1d[_0x3a366f(0xe1)],'top':_0x5165d9['y']+_0x327b37-_0x2bea1d[_0x3a366f(0xe1)]});return;}let _0x28ab48={'left':_0x5165d9['x']+_0x49fd79-_0x2bea1d[_0x3a366f(0xe1)],'top':_0x5165d9['y']+_0x327b37-_0x2bea1d[_0x3a366f(0xe1)],'adjName':_0x4d8f22,'shapeId':this['_activeShapeId'],'unitId':_0x44ad33,'subUnitId':_0x13153e,'width':_0x2bea1d[_0x3a366f(0xe1)]+0x8,'height':_0x2bea1d[_0x3a366f(0xe1)]+0x8,'zIndex':_0x529f4c+0x1,'evented':!0x0},_0x493b85=new yn('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x4d8f22,_0x28ab48);this[_0x3a366f(0x2b3)][_0x3a366f(0x214)](_0x493b85),this[_0x3a366f(0x336)](_0x493b85,_0x1b09a7,_0x4d8f22),_0x1b09a7['addObject'](_0x493b85,_0x529f4c+0x1);}['_clearShapeAdjustControls'](){const _0x2d3282=_0x49d8a2;this[_0x2d3282(0x2b3)][_0x2d3282(0x289)]!==0x0&&(this[_0x2d3282(0x2b3)][_0x2d3282(0x111)](_0x168804=>{const _0x3346e5=_0x2d3282;_0x168804[_0x3346e5(0x2b0)]();}),this[_0x2d3282(0x2b3)]=[]);}[_0x49d8a2(0xe8)](){const _0x153462=_0x49d8a2;this[_0x153462(0x29e)]();}[_0x49d8a2(0x30e)](_0x3b3eb2,_0x1d61f9){const _0x253526=_0x49d8a2;var _0x52b773;let _0x5bbf57={'x':0x0,'y':0x0};if(!_0x3b3eb2||!_0x1d61f9)return _0x5bbf57;let _0x293cf6=this[_0x253526(0x107)][_0x253526(0x2c4)](_0x3b3eb2);if(!_0x293cf6||!_0x293cf6[_0x253526(0xf5)](_0x4b5a3f)[_0x253526(0x1a4)](_0x1d61f9))return _0x5bbf57;let _0x438003=_0x293cf6[_0x253526(0xf5)](_0x5480ae),_0x4ab9e5=_0x438003==null?void 0x0:_0x438003[_0x253526(0x100)]();if(!_0x4ab9e5)return _0x5bbf57;let _0x5b02ba=(_0x52b773=this[_0x253526(0x1b8)][_0x253526(0x12f)](_0x3b3eb2))==null?void 0x0:_0x52b773['getSheetBySheetId'](_0x1d61f9);if(!_0x5b02ba)return _0x5bbf57;let _0x257fe7=_0x356c4d(_0x4ab9e5[_0x253526(0x206)],_0x4ab9e5['sheetViewStartColumn'],_0x293cf6[_0x253526(0x228)],_0x5b02ba);return _0x257fe7?{'x':_0x257fe7[_0x253526(0x33d)],'y':_0x257fe7[_0x253526(0x25f)]}:_0x5bbf57;}[_0x49d8a2(0x224)](_0x374235,_0x505d02){const _0x21a3f2=_0x49d8a2;var _0x44c1ea,_0x813016;let _0x3fabc9=(_0x44c1ea=this[_0x21a3f2(0x1b8)][_0x21a3f2(0x12f)](_0x374235))==null?void 0x0:_0x44c1ea['getSheetBySheetId'](_0x505d02);return(_0x813016=_0x3fabc9==null?void 0x0:_0x3fabc9[_0x21a3f2(0x221)]())==null?0x1:_0x813016;}[_0x49d8a2(0x336)](_0x429c62,_0x42e49c,_0x905fa9){const _0x4b5fa0=_0x49d8a2;this['disposeWithMe'](_0x4f15f0(_0x429c62[_0x4b5fa0(0x1ca)][_0x4b5fa0(0x19b)]((_0x4a55a3,_0x153f6b)=>{const _0x183a09=_0x4b5fa0;var _0x4a9623,_0x473957,_0x25031f,_0x440550;let _0x5e968b=_0x429c62['getDrawingSearch']();this[_0x183a09(0x1e9)]=this[_0x183a09(0x20c)](_0x5e968b['unitId'],_0x5e968b['subUnitId'],_0x5e968b[_0x183a09(0x20e)],_0x905fa9),this[_0x183a09(0x1db)]=this[_0x183a09(0x220)][_0x183a09(0x296)](_0x5e968b['unitId'],_0x5e968b[_0x183a09(0x2b4)],_0x5e968b[_0x183a09(0x20e)]);let _0x1da94a=this[_0x183a09(0x159)][_0x183a09(0x26a)]({'unitId':this[_0x183a09(0x330)],'subUnitId':this[_0x183a09(0x227)],'drawingId':this['_activeShapeId']}),{transform:_0x5699a2}=_0x1da94a;if(_0x5699a2){let {left:_0x300435,top:_0x2a827b,width:_0x26733c,height:_0xa2716f}=_0x5699a2;this[_0x183a09(0x158)]=_0x300435||0x0,this[_0x183a09(0x10f)]=_0x2a827b||0x0,this[_0x183a09(0x312)]=_0x26733c||0x0,this['_baseShapeHeight']=_0xa2716f||0x0;}let _0x2507f9=!!((_0x4a9623=_0x1da94a[_0x183a09(0x166)])!=null&&_0x4a9623['flipX']),_0x4351d4=!!((_0x473957=_0x1da94a[_0x183a09(0x166)])!=null&&_0x473957[_0x183a09(0x132)]),_0x50cb41=((_0x25031f=_0x1da94a[_0x183a09(0x166)])==null?void 0x0:_0x25031f[_0x183a09(0x1fa)])||0x0;this[_0x183a09(0x2a5)]=!0x0,_0x42e49c[_0x183a09(0x162)]();let _0x412c8a=(_0x440550=this['_activeShapeModel'])==null?void 0x0:_0x440550['getAdjustValueByName'](_0x905fa9),_0x170901={[_0x905fa9]:_0x412c8a};this[_0x183a09(0x17a)]=_0x42e49c[_0x183a09(0x301)][_0x183a09(0x19b)]((_0x191d91,_0x1a496c)=>{const _0x2857bb=_0x183a09;if(!this[_0x2857bb(0x2a5)])return;let {offsetX:_0x27a99b,offsetY:_0x226e51}=_0x191d91,_0x3ef4dd=this[_0x2857bb(0x1e9)];if(this[_0x2857bb(0x1db)]&&_0x3ef4dd){_0x42e49c[_0x2857bb(0x162)](),_0x42e49c[_0x2857bb(0x16f)](_0x35244f['CROSSHAIR']);let _0xce89c7={'left':0x0,'top':0x0,'width':this[_0x2857bb(0x312)],'height':this[_0x2857bb(0x1c2)]},_0x368aff=this['_getScrollInfo'](this['_unitId'],this[_0x2857bb(0x227)]),_0x249022=this[_0x2857bb(0x224)](this[_0x2857bb(0x330)],this[_0x2857bb(0x227)]),_0x569805=_0x27a99b/_0x249022+_0x368aff['x']-this['_baseShapeLeft'],_0x5badc8=_0x226e51/_0x249022+_0x368aff['y']-this[_0x2857bb(0x10f)];if(_0x50cb41!==0x0){let _0x4dc7f1=this[_0x2857bb(0x312)]/0x2,_0x1fa3f1=this[_0x2857bb(0x1c2)]/0x2,_0x486857=_0x50cb41*Math['PI']/0xb4,_0x15b3a3=Math[_0x2857bb(0x17b)](_0x486857),_0x5ea094=Math[_0x2857bb(0x2c0)](_0x486857),_0x4040d9=_0x569805-_0x4dc7f1,_0x3a901f=_0x5badc8-_0x1fa3f1;_0x569805=_0x4dc7f1+(_0x4040d9*_0x15b3a3+_0x3a901f*_0x5ea094),_0x5badc8=_0x1fa3f1+(-_0x4040d9*_0x5ea094+_0x3a901f*_0x15b3a3);}_0x2507f9&&(_0x569805=this[_0x2857bb(0x312)]-_0x569805),_0x4351d4&&(_0x5badc8=this[_0x2857bb(0x1c2)]-_0x5badc8);let _0x24c362={'x':_0x569805,'y':_0x5badc8},_0x491ea0=this[_0x2857bb(0x1db)][_0x2857bb(0x300)](_0xce89c7,_0x24c362,_0x3ef4dd,_0x2507f9,_0x4351d4),_0x34fd8d=_0x3ef4dd[_0x2857bb(0xe7)]||_0x3ef4dd[_0x2857bb(0x297)]||_0x3ef4dd[_0x2857bb(0x27f)]||_0x3ef4dd[_0x2857bb(0x1de)];if(_0x34fd8d===void 0x0)return;this[_0x2857bb(0x1db)][_0x2857bb(0x1cf)](_0x34fd8d,_0x491ea0);let _0xbc5bc=this[_0x2857bb(0x159)]['getDrawingByParam']({'unitId':_0x5e968b[_0x2857bb(0x1b7)],'subUnitId':_0x5e968b[_0x2857bb(0x2b4)],'drawingId':_0x5e968b['drawingId']});_0xbc5bc&&(this[_0x2857bb(0x31a)][_0x2857bb(0x28a)](_0xbc5bc,_0x42e49c),this[_0x2857bb(0x2f2)]=this[_0x2857bb(0x2eb)](_0x5e968b[_0x2857bb(0x1b7)],_0x5e968b[_0x2857bb(0x2b4)],_0x5e968b[_0x2857bb(0x20e)]),this['_updateAdjustControlPositions']());}_0x1a496c[_0x2857bb(0x108)]();}),this[_0x183a09(0xe3)]=_0x42e49c[_0x183a09(0x1fc)][_0x183a09(0x19b)]((_0x2e36c1,_0x2a5efc)=>{const _0xa2c591=_0x183a09;this[_0xa2c591(0x17a)][_0xa2c591(0x2e3)](),this[_0xa2c591(0xe3)][_0xa2c591(0x2e3)](),_0x42e49c[_0xa2c591(0x18d)]();let _0x17d2b2=this[_0xa2c591(0x1e9)];if(_0x17d2b2){let _0x12e65f=_0x5e968b[_0xa2c591(0x1b7)],_0x5250e7=_0x5e968b[_0xa2c591(0x2b4)],_0x29eda6=_0x5e968b[_0xa2c591(0x20e)],_0x33c541=_0x17d2b2[_0xa2c591(0xe7)]||_0x17d2b2['gdRefY']||_0x17d2b2['gdRefAng']||_0x17d2b2['gdRefR'];if(_0x33c541!==void 0x0){var _0x29896f;let _0x1cfad6=(_0x29896f=this['_activeShapeModel'])==null?void 0x0:_0x29896f['getAdjustValueByName'](_0x33c541);_0x1cfad6!==void 0x0&&fn(this[_0xa2c591(0x2af)],_0x12e65f,_0x5250e7,_0x29eda6,{'oldShapeData':{'adjustValues':_0x170901}},{'adjustValues':{[_0x33c541]:_0x1cfad6}});}}this[_0xa2c591(0x1e9)]=void 0x0,this[_0xa2c591(0x1db)]=void 0x0,this[_0xa2c591(0x2a5)]=!0x1,_0x2a5efc['stopPropagation'](),_0x42e49c['enableObjectsEvent']();}),_0x153f6b['stopPropagation']();})));}[_0x49d8a2(0x246)](){const _0x4ee53e=_0x49d8a2;let _0x587288=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4c1a31[_0x4ee53e(0x261)]);this[_0x4ee53e(0x16d)](_0x587288[_0x4ee53e(0x26c)](_0x48371d(_0x37bc03=>_0x37bc03?_0x37bc03['activeSheet$'][_0x4ee53e(0x26c)](_0x48371d(_0x35f3dd=>{const _0x2fb329=_0x4ee53e;if(!_0x35f3dd)return _0x4e602d;let _0x4cee81=_0x37bc03[_0x2fb329(0x229)](),_0x199577=this['_renderManagerService'][_0x2fb329(0x2c4)](_0x4cee81),_0x129694=_0x199577==null?void 0x0:_0x199577[_0x2fb329(0x228)];return _0x129694?_0x5ba9b9(_0x129694):_0x4e602d;})):_0x4e602d))[_0x4ee53e(0x212)](_0x3a2c4b=>{const _0x39b755=_0x4ee53e;let _0x29ca3b=_0x3a2c4b[_0x39b755(0x14b)]();this[_0x39b755(0x16d)](_0x3a2c4b[_0x39b755(0x301)][_0x39b755(0x19b)](()=>{const _0x234302=_0x39b755;this[_0x234302(0x1d1)];})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x1f2)][_0x39b755(0x212)](_0x552478=>{const _0x552468=_0x39b755;let {objects:_0x4a3f3f}=_0x552478;this['_createShapeAdjustControls'](),_0x4a3f3f!==null&&_0x4a3f3f[_0x552468(0x105)]===0x1&&_0x4a3f3f[_0x552468(0x2cc)]()[_0x552468(0x15a)]()[_0x552468(0x21c)]instanceof vn&&this['setShouldShowAdjust'](!0x0);})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x2f4)][_0x39b755(0x212)](()=>{const _0x2a8783=_0x39b755;this[_0x2a8783(0x1d1)]&&this[_0x2a8783(0x2b1)]();})),this[_0x39b755(0x16d)](_0x3a2c4b[_0x39b755(0x1fc)]['subscribeEvent'](()=>{const _0x1237f8=_0x39b755;this[_0x1237f8(0x1d1)]&&(this[_0x1237f8(0x152)](!0x1),this[_0x1237f8(0x29e)]());})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x322)][_0x39b755(0x212)](()=>{const _0x4a5d80=_0x39b755;this[_0x4a5d80(0x330)]&&this[_0x4a5d80(0x227)]&&this['_activeShapeId']&&this[_0x4a5d80(0x159)][_0x4a5d80(0x26a)]({'unitId':this[_0x4a5d80(0x330)],'subUnitId':this[_0x4a5d80(0x227)],'drawingId':this[_0x4a5d80(0x288)]})&&(this[_0x4a5d80(0x2f2)]=this[_0x4a5d80(0x2eb)](this[_0x4a5d80(0x330)],this[_0x4a5d80(0x227)],this[_0x4a5d80(0x288)]),this['_updateAdjustControlPositions']());}));}));}[_0x49d8a2(0x2d1)](){const _0x45f74f=_0x49d8a2;this[_0x45f74f(0x16d)](this[_0x45f74f(0x159)][_0x45f74f(0x139)][_0x45f74f(0x212)](_0x166d74=>{const _0x2351a5=_0x45f74f;if(_0x166d74[_0x2351a5(0x289)]===0x1){let _0x2519a5=_0x166d74[0x0];if(_0x2519a5[_0x2351a5(0x12e)]===_0x336997['DRAWING_SHAPE']){this[_0x2351a5(0x288)]=_0x2519a5[_0x2351a5(0x20e)];let {unitId:_0x5bd236,subUnitId:_0x1cb204}=_0x2519a5;this[_0x2351a5(0x2f2)]=this[_0x2351a5(0x2eb)](_0x5bd236,_0x1cb204,this['_activeShapeId']),this[_0x2351a5(0x330)]=_0x5bd236,this['_subUnitId']=_0x1cb204,this[_0x2351a5(0x2b1)](),this['_createShapeAdjustControls']();}else this[_0x2351a5(0x288)]=null,this[_0x2351a5(0x2f2)]=void 0x0,this['_unitId']=null,this[_0x2351a5(0x227)]=null,this[_0x2351a5(0x2b1)]();}(_0x166d74['length']>0x1||_0x166d74[_0x2351a5(0x289)]===0x0)&&(this[_0x2351a5(0x288)]=null,this[_0x2351a5(0x2f2)]=void 0x0,this[_0x2351a5(0x330)]=null,this[_0x2351a5(0x227)]=null,this[_0x2351a5(0x2b1)]());})),this[_0x45f74f(0x16d)](this['_drawingManagerService'][_0x45f74f(0x127)]['subscribe'](_0x2aceb=>{const _0x522799=_0x45f74f;if(_0x2aceb[_0x522799(0x289)]===0x1){var _0x5d2838;let _0x4ac4d2=_0x2aceb[0x0];((_0x5d2838=this[_0x522799(0x159)][_0x522799(0x26a)](_0x4ac4d2))==null?void 0x0:_0x5d2838[_0x522799(0x12e)])===_0x336997['DRAWING_SHAPE']&&this[_0x522799(0x143)](!0x0);}})),this[_0x45f74f(0x16d)](this[_0x45f74f(0x159)]['remove$'][_0x45f74f(0x212)](_0x37ff47=>{const _0x48087c=_0x45f74f;for(let _0x5c55a2 of _0x37ff47)this[_0x48087c(0x288)]===_0x5c55a2[_0x48087c(0x20e)]&&(this[_0x48087c(0x288)]=null,this[_0x48087c(0x2f2)]=void 0x0,this[_0x48087c(0x330)]=null,this[_0x48087c(0x227)]=null,this[_0x48087c(0x2b1)]());}));}};Z=Y([J(0x0,_0x5a9176),J(0x1,_0x3465f0(_0x1a451a)),J(0x2,_0x3465f0(_0x2565d9)),J(0x3,_0x3465f0(X)),J(0x4,_0x2320a1),J(0x5,_0x3002c9)],Z);const bn={'id':_0x49d8a2(0x13d),'type':_0xbd62c0[_0x49d8a2(0x11b)],'handler':(_0x143329,_0x2b724b)=>{const _0xf8d449=_0x49d8a2;let _0x252d18=_0x143329[_0xf8d449(0x1bc)](_0x5a9176),_0x42fd73=_0x143329['get'](_0x2565d9),_0x4b65fd=_0x143329['get'](Z);if(_0x2b724b==null)return!0x0;if(_0x2b724b[_0xf8d449(0x289)]>0x0){var _0x151571;let _0x243061=(_0x151571=_0x42fd73[_0xf8d449(0x2c4)](_0x2b724b[0x0][_0xf8d449(0x1b7)]))==null?void 0x0:_0x151571[_0xf8d449(0x228)];if(_0x243061){let {unitId:_0x1aa4da,subUnitId:_0x11cf1f,drawingId:_0x4851a8}=_0x2b724b[0x0],_0x384b1d=_0x24e648({'unitId':_0x1aa4da,'subUnitId':_0x11cf1f,'drawingId':_0x4851a8},void 0x0),_0x3df695=_0x243061[_0xf8d449(0xda)](_0x384b1d);if(_0x3df695){var _0x1a28bd;(_0x1a28bd=_0x42fd73[_0xf8d449(0x2c4)](_0x2b724b[0x0][_0xf8d449(0x1b7)]))==null||(_0x1a28bd=_0x1a28bd[_0xf8d449(0x228)][_0xf8d449(0x183)]())==null||_0x1a28bd[_0xf8d449(0x32f)](_0x3df695);}}_0x252d18[_0xf8d449(0x2c8)](_0x2b724b),_0x4b65fd['setShouldShowAdjust'](!0x1);}return!0x0;}},xn={'type':_0xbd62c0[_0x49d8a2(0x140)],'id':_0x49d8a2(0x1e8),'handler':async(_0x2f9856,_0x10b0d8)=>{const _0x1b0073=_0x49d8a2;let _0x37ad65=_0x20e706(_0x2f9856['get'](_0x2320a1));if(!_0x37ad65)return!0x1;let _0x4b87f1=_0x2f9856[_0x1b0073(0x1bc)](_0x25ed03)[_0x1b0073(0x1ef)]();if(!_0x4b87f1)return!0x1;let _0x1a8ca6=_0x2f9856['get'](_0x3002c9),{unitId:_0x5bcdcd,subUnitId:_0x4298a8}=_0x37ad65,{value:_0x57fb5c,enhanceParams:_0x5be7ea}=_0x10b0d8,{range:_0x58c794}=_0x4b87f1,_0x3346e6={'unitId':_0x5bcdcd,'subUnitId':_0x4298a8,'shapeType':_0x57fb5c,'range':_0x58c794,'shapeId':_0x3893c7()};if(_0x5be7ea){let _0x482fa9=_0x5d2a5e(_0x57fb5c),_0x1983df=_0x57fb5c===_0x1ca39f[_0x1b0073(0x14c)];_0x482fa9&&(_0x5be7ea[_0x1b0073(0x24f)]||_0x5be7ea['endArrow'])&&(_0x3346e6[_0x1b0073(0x1c5)]={'ln':{'startArrow':_0x5be7ea[_0x1b0073(0x24f)]?{'type':_0x1e506d[_0x1b0073(0x2ce)],'size':_0xd9107d[_0x1b0073(0x1b1)]}:void 0x0,'endArrow':_0x5be7ea[_0x1b0073(0x17e)]?{'type':_0x1e506d['Arrow'],'size':_0xd9107d[_0x1b0073(0x1a3)]}:void 0x0}}),_0x1983df&&(_0x5be7ea[_0x1b0073(0x236)]||_0x5be7ea[_0x1b0073(0x2d8)])&&(_0x3346e6[_0x1b0073(0x1c5)]=_0x510160({'fill':{'fillType':_0x13bf97[_0x1b0073(0x1d4)],'color':_0x1b0073(0x23a)},'isHorizontal':!!_0x5be7ea['horizontal'],'stroke':{'lineStrokeType':_0x3354c0[_0x1b0073(0x216)],'width':0x1,'color':_0x1b0073(0x23f)}}));}let _0x25802b=_0x1a8ca6[_0x1b0073(0xe6)](_0x5db24c['id'],_0x3346e6);return setTimeout(()=>{const _0x5b00d8=_0x1b0073;_0x1a8ca6[_0x5b00d8(0x2c5)](bn['id'],[{'unitId':_0x5bcdcd,'subUnitId':_0x4298a8,'drawingId':_0x3346e6[_0x5b00d8(0x142)]}]);},0xc8),_0x25802b;}},Sn=_0x49d8a2(0x29a),Cn=_0x49d8a2(0x1e6),wn=_0x49d8a2(0x1ee),Tn=_0x4f9780(_0x49d8a2(0x146)),En=_0x49d8a2(0x190),Dn={'id':_0x49d8a2(0x338),'type':_0xbd62c0[_0x49d8a2(0x140)],'handler':(_0x1ab3b3,_0x511580)=>{const _0x3f00ef=_0x49d8a2;let _0x5b826a=_0x1ab3b3['get'](_0xf1c3ee),_0x545c02=_0x1ab3b3[_0x3f00ef(0x1bc)](_0x9a7c24),_0x339cb2=_0x1ab3b3['get'](_0x2320a1),_0xfd056b=_0x1ab3b3['get'](_0x3002c9);return _0x20e706(_0x339cb2)?(_0x511580==null?void 0x0:_0x511580[_0x3f00ef(0x21c)])===_0x3f00ef(0x113)?(_0x5b826a[_0x3f00ef(0x113)](Cn),!0x0):(_0x5b826a['open']({'id':Cn,'header':{'title':_0x545c02['t'](_0x3f00ef(0x170))},'children':{'label':Cn},'onClose':()=>{const _0x16344b=_0x3f00ef;_0xfd056b[_0x16344b(0xe6)](_0x42475e['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Q=class extends _0x1e0fa2{constructor(_0x365349,_0x4817af){const _0x3f1ffb=_0x49d8a2;super(),this['_clipService']=_0x365349,this[_0x3f1ffb(0x159)]=_0x4817af,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x3f1ffb(0x20f)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x3f1ffb(0x327)][_0x3f1ffb(0x20f)](!0x1)});}[_0x49d8a2(0x260)](){const _0x2680ca=_0x49d8a2;let _0x3ff126=this[_0x2680ca(0x327)],_0x3eaa67=new Map(),_0xa4757b=_0x3ff126[_0x2680ca(0x2cd)]((_0x34024d,_0x39af9e,_0x1bdc90,_0x553262,_0x31742a)=>{const _0x434ef8=_0x2680ca;let _0x2644ac=_0x39af9e;if(_0x2644ac===_0x1ca39f[_0x434ef8(0x201)]||_0x39af9e===_0x434ef8(0x1d3))return!0x1;try{let _0x409396=_0x3eaa67[_0x434ef8(0x1bc)](_0x39af9e);return _0x409396||(_0x409396=new _0x2a67cd(_0x2644ac,_0x434ef8(0x1df)+_0x39af9e),_0x3eaa67[_0x434ef8(0x20a)](_0x39af9e,_0x409396)),_0x31742a&&_0x409396[_0x434ef8(0xf3)]({'adjustValues':_0x31742a},!0x0),_0x409396['updateContext']({'width':_0x1bdc90,'height':_0x553262}),_0x409396['buildClipPath'](_0x34024d,{'left':0x0,'top':0x0,'width':_0x1bdc90,'height':_0x553262});}catch{return!0x1;}});this[_0x2680ca(0x16d)](_0xa4757b),this[_0x2680ca(0x16d)]({'dispose':()=>_0x3eaa67[_0x2680ca(0x1ac)]()});}[_0x49d8a2(0x1fb)](_0x60f65b,_0x3794bb,_0x42210e,_0x153454,_0xa1d19a){const _0x95af20=_0x49d8a2;let _0x250ece=this['_drawingManagerService']['getDrawingData'](_0x60f65b,_0x3794bb);if(!_0x250ece[_0x42210e])return;let _0x4f1e72={..._0x250ece[_0x42210e],'prstGeom':_0x153454,'adjustValues':_0xa1d19a};this['_drawingManagerService'][_0x95af20(0x104)]([_0x4f1e72]);}};Q=Y([J(0x0,_0x3465f0(_0x52908b)),J(0x1,_0x3465f0(_0x5a9176))],Q);const On=_0x49d8a2(0x191),kn=_0x49d8a2(0x145);function An({onShapeClick:_0x54d015,excludeGroups:_0xf7a90f}){const _0x18c159=_0x49d8a2;return _0x4c6044(_0x71cbe8,{'excludeGroups':_0xf7a90f,'onShapeClick':_0x54d015,'scrollContainer':_0x18c159(0xd9)});}function jn(){const _0xfb24f8=_0x49d8a2;let _0x194496=_0x2a5e25(_0x5a9176),_0x256e55=_0x2a5e25(Q);return _0x4c6044(_0x55b52d,{'buttonLabel':_0xfb24f8(0x2fb),'excludeGroups':[_0x57c621['Line']],'onShapeClick':_0x5d79fe=>{const _0x2b3cf1=_0xfb24f8;let _0x184037=_0x194496[_0x2b3cf1(0x32c)]()[_0x2b3cf1(0x138)](_0x24b029=>_0x24b029['drawingType']===_0x336997[_0x2b3cf1(0x2b7)]);if(!_0x184037)return;let {unitId:_0x8ec8e0,subUnitId:_0xa5ba9,drawingId:_0x24d030}=_0x184037;_0x256e55['clipByShape'](_0x8ec8e0,_0xa5ba9,_0x24d030,_0x5d79fe['type']);}});}function Mn(){const _0x41679c=_0x49d8a2;let _0x1d85e0=_0x2a5e25(_0x4dd7a3),_0x5e77af=_0x2a5e25(_0x5a9176),_0x4f9d74=_0x2a5e25(_0x2320a1),_0x2941f4=_0x5e77af[_0x41679c(0x32c)]()[0x0],_0x12c962=_0x2941f4?_0x4f9d74[_0x41679c(0x151)](_0x2941f4[_0x41679c(0x1b7)]):void 0x0,_0x4ae8d9=_0x12c962===_0x4c1a31[_0x41679c(0x2ae)]?_0x41679c(0x1f9):_0x12c962===_0x4c1a31[_0x41679c(0x261)]?kn:void 0x0,_0x4797ee=_0x4ae8d9?_0x1d85e0[_0x41679c(0x1bc)](_0x4ae8d9):void 0x0;return _0x4797ee?_0x4c6044(_0x4797ee,{}):null;}function Nn(){let _0x179637=_0x2a5e25(_0x3002c9);return _0x4c6044(An,{'onShapeClick':_0x4d0a51=>{const _0x4a01e9=_0x208c;_0x179637[_0x4a01e9(0x2c5)](xn['id'],{'value':_0x4d0a51[_0x4a01e9(0x1ff)],'enhanceParams':{'endArrow':_0x4d0a51[_0x4a01e9(0x17e)],'startArrow':_0x4d0a51[_0x4a01e9(0x24f)],'horizontal':_0x4d0a51['horizontal'],'vertical':_0x4d0a51[_0x4a01e9(0x2d8)]}});}});}function Pn(_0x1e138a){const _0x31e468=_0x49d8a2;let _0x5b829b=_0x1e138a[_0x31e468(0x1bc)](_0x2320a1);return{'id':xn['id'],'type':_0x2f4b7c[_0x31e468(0x128)],'selections':[{'label':{'name':On,'hoverable':!0x1,'selectable':!0x1,'props':{'id':xn['id']}}}],'icon':_0x31e468(0x195),'tooltip':_0x31e468(0x31e),'activated$':_0x291355(_0x5b829b,!0x1,()=>new _0x17aabe(_0x53eef6=>{const _0x3215ca=_0x31e468;_0x53eef6[_0x3215ca(0x15a)](!0x1);})),'hidden$':_0x569198(_0x1e138a,_0x4c1a31[_0x31e468(0x261)]),'disabled$':_0x1aaed7(_0x1e138a)};}function Fn(_0x379afe){const _0x2e1912=_0x49d8a2;let _0x5376f6=_0x379afe[_0x2e1912(0x1bc)](_0x2320a1);return{'id':Dn['id'],'type':_0x2f4b7c[_0x2e1912(0x1af)],'icon':_0x2e1912(0x11f),'title':_0x2e1912(0x16e),'tooltip':_0x2e1912(0x16e),'activated$':_0x291355(_0x5376f6,!0x1,()=>new _0x17aabe(_0x192955=>{const _0x315f67=_0x2e1912;_0x192955[_0x315f67(0x15a)](!0x1);})),'hidden$':_0x569198(_0x379afe,_0x4c1a31[_0x2e1912(0x261)]),'disabled$':_0x1aaed7(_0x379afe)};}const In={[_0x4cff09[_0x49d8a2(0x2d4)]]:{[xn['id']]:{'order':0x4,'menuItemFactory':Pn},[Dn['id']]:{'order':4.1,'menuItemFactory':Fn}}};var Ln='@univerjs-pro/sheets-shape-ui',Rn=_0x49d8a2(0x252);const zn={'type':_0xbd62c0[_0x49d8a2(0x11b)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},Bn={'type':_0xbd62c0[_0x49d8a2(0x11b)],'id':_0x49d8a2(0x1ce),'handler'(){return!0x0;}},Vn={};function Hn(_0x4b3b1a){const _0x287275=_0x49d8a2;return _0x4b3b1a[_0x287275(0x258)]()||void 0x0;}function Un(_0x2db1ee){const _0x2fd387=_0x49d8a2;switch(_0x2db1ee[_0x2fd387(0x12e)]){case _0x336997[_0x2fd387(0x2b7)]:return _0x2fd387(0x157);case _0x336997[_0x2fd387(0x1ae)]:return'chart';case _0x336997[_0x2fd387(0x29b)]:return _0x2fd387(0x11c);case _0x336997[_0x2fd387(0x1a5)]:return _0x2fd387(0x200);case _0x336997[_0x2fd387(0x133)]:return _0x2fd387(0x319);case _0x336997[_0x2fd387(0x262)]:return _0x2fd387(0x240);case _0x336997[_0x2fd387(0xfe)]:return _0x2fd387(0x1c8);case _0x336997[_0x2fd387(0x173)]:return'dom';case _0x336997['DRAWING_SHAPE']:return _0x2fd387(0x1b0);default:return'object';}}function Wn(_0x2d7bf5,_0x3c5102,_0x681705){const _0x23e279=_0x49d8a2;var _0x42ca8a;return((_0x42ca8a=_0x2d7bf5[_0x23e279(0x1dd)])==null?void 0x0:_0x42ca8a[_0x23e279(0x258)]())||_0x23c7c2(_0x681705,Un(_0x2d7bf5))+'\x20'+(_0x3c5102+0x1);}function Gn(){const _0x461945=_0x49d8a2;var _0x262542,_0x1c99d8,_0x2041d1,_0x34fa38;let _0x4d215b=_0x2a5e25(_0x9a7c24),_0x10f0aa=_0x2a5e25(_0x3002c9),_0x31d076=_0x2a5e25(_0x2320a1),_0x4f6761=_0x2a5e25(_0xc538a1),_0x39dfc0=_0x2a5e25(_0x5a9176),_0x65c50d=_0x2a5e25(_0x2565d9),[,_0x4fef57]=_0x3962a7(_0x559962=>_0x559962+0x1,0x0),_0x430ea8=_0x31d076[_0x461945(0x199)](_0x4c1a31['UNIVER_SHEET']),_0xc18259=(_0x262542=_0x430ea8==null?void 0x0:_0x430ea8['getUnitId']())==null?'':_0x262542,_0xdd93ce=(_0x1c99d8=_0x430ea8==null||(_0x2041d1=_0x430ea8['getActiveSheet']())==null?void 0x0:_0x2041d1['getSheetId']())==null?'':_0x1c99d8,_0x4c1d4e=_0x57a615(()=>_0x39dfc0[_0x461945(0x139)],_0x39dfc0[_0x461945(0x32c)](),!0x1,[_0x39dfc0]);_0xecd31c(()=>{const _0x1b25c4=_0x461945;let _0x2250e6=_0x10f0aa['onCommandExecuted'](()=>_0x4fef57());return()=>_0x2250e6[_0x1b25c4(0x2b0)]();},[_0x10f0aa]);let _0x13e3c5=_0xc18259&&_0xdd93ce?_0x4f6761[_0x461945(0x233)](_0xc18259,_0xdd93ce):{},_0x1d0451=_0xc18259&&_0xdd93ce?_0x4f6761[_0x461945(0x306)](_0xc18259,_0xdd93ce):[],_0x158842=_0x307aa0(()=>_0x3137ac(_0x4d215b),[_0x4d215b]),_0x54ee17=_0x307aa0(()=>{const _0x27799d=_0x461945;let _0x502a26=_0x1d0451[_0x27799d(0x1a1)](_0x4a8e1d=>_0x13e3c5[_0x4a8e1d])[_0x27799d(0x1da)](_0x4610d2=>!!_0x4610d2)[_0x27799d(0x136)](),_0x43e0be=_0x502a26[_0x27799d(0x144)]((_0x57a37f,_0x162990)=>(_0x57a37f[_0x68c808(_0x162990[_0x27799d(0x12e)])]+=0x1,_0x57a37f),{'canvas':0x0,'floating':0x0}),_0x2b0f49={'canvas':0x0,'floating':0x0};return _0x502a26[_0x27799d(0x1a1)]((_0x3f05b1,_0x2d6a4c)=>{const _0x3bccce=_0x27799d;let _0x488e45=_0x68c808(_0x3f05b1[_0x3bccce(0x12e)]),_0x151389=_0x488e45===_0x21b1e9,_0x4f2d83=_0x2b0f49[_0x488e45]++;return{'id':_0x3f05b1[_0x3bccce(0x20e)],'name':Wn(_0x3f05b1,_0x2d6a4c,_0x4d215b),'description':_0x3f05b1['description'],'visible':_0x3f05b1[_0x3bccce(0x15c)]!==!0x0,'selectable':_0x3f05b1[_0x3bccce(0xf4)]!==!0x1,'sectionId':_0x488e45,'sectionTitle':_0x151389?_0x158842[_0x3bccce(0x284)]:_0x158842[_0x3bccce(0x213)],'capabilities':_0x151389?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x151389&&_0x4f2d83>0x0,'canMoveBackward':!_0x151389&&_0x4f2d83<_0x43e0be[_0x3bccce(0x2d6)]-0x1,'canReorder':!_0x151389};});},[_0x13e3c5,_0x1d0451,_0x158842[_0x461945(0x213)],_0x158842['sectionFloating'],_0x4d215b]),_0x5926d8=_0x307aa0(()=>(_0x4c1d4e==null?[]:_0x4c1d4e)['filter'](_0xbf85d1=>_0xbf85d1[_0x461945(0x1b7)]===_0xc18259&&_0xbf85d1['subUnitId']===_0xdd93ce)[_0x461945(0x1a1)](_0x45fd2d=>_0x45fd2d[_0x461945(0x20e)]),[_0x4c1d4e,_0xdd93ce,_0xc18259]),_0x5cde21=(_0x34fa38=_0x5926d8[_0x5926d8['length']-0x1])==null?null:_0x34fa38,_0x4eba86=_0x28514e=>{const _0x5e67c6=_0x461945;var _0x15bc74;return(_0x15bc74=_0x4f6761[_0x5e67c6(0x26a)]({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x28514e}))==null?null:_0x15bc74;},_0x46fc17=_0x76b52f=>{const _0x532457=_0x461945;!_0xc18259||!_0x76b52f['length']||_0x10f0aa[_0x532457(0x2c5)](_0x577eb5['id'],{'unitId':_0xc18259,'drawings':_0x76b52f});},_0x3b2fd5=(_0x4fa2b3,_0x54aaea)=>{_0x4eba86(_0x4fa2b3)&&_0x46fc17([{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x4fa2b3,..._0x54aaea}]);},_0x1b05d7=(_0x55c66a,_0x20876f)=>{const _0x422e16=_0x461945;if(!_0xc18259||!_0xdd93ce)return;let _0xd9ca51=_0x20876f?_0x5926d8[_0x422e16(0x2ed)](_0x55c66a)?_0x5926d8[_0x422e16(0x1da)](_0x12d119=>_0x12d119!==_0x55c66a):[..._0x5926d8,_0x55c66a]:[_0x55c66a];_0x10f0aa[_0x422e16(0xe6)](_0x42475e['id'],_0xd9ca51[_0x422e16(0x1a1)](_0x1193f0=>({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x1193f0})));let _0x2fccfe=_0xd9ca51[_0xd9ca51[_0x422e16(0x289)]-0x1];_0x2fccfe?_0x3928d2(_0x65c50d,{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x2fccfe}):_0xeb3392(_0x65c50d,_0xc18259);},_0xc5db42=(_0x1d8484,_0x21fcb5)=>{const _0xe10097=_0x461945;_0x46fc17(_0x1d8484[_0xe10097(0x1a1)](_0x161565=>_0x4eba86(_0x161565))[_0xe10097(0x1da)](_0x20bc80=>!!_0x20bc80)[_0xe10097(0x1da)](_0x21864b=>_0x21864b['hidden']!==!0x0!==_0x21fcb5)[_0xe10097(0x1a1)](_0x2682a4=>({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x2682a4[_0xe10097(0x20e)],'hidden':!_0x21fcb5})));},_0x22aeba=_0x447497=>{let _0x3f63df=_0x4eba86(_0x447497);_0x3f63df&&_0x3b2fd5(_0x447497,{'selectable':_0x3f63df['selectable']===!0x1?void 0x0:!0x1});},_0x1767e0=(_0x5eb9f4,_0x2717e7)=>{const _0x46638e=_0x461945;var _0x25ba5f,_0x42fee7;let _0x187735=Hn(_0x2717e7);((_0x25ba5f=(_0x42fee7=_0x4eba86(_0x5eb9f4))==null?void 0x0:_0x42fee7[_0x46638e(0x1dd)])==null?void 0x0:_0x25ba5f)!==_0x187735&&_0x3b2fd5(_0x5eb9f4,{'name':_0x187735});},_0x2aa530=(_0x2301bb,_0xf22e05)=>{const _0x3c1f2b=_0x461945;var _0xc3a66d,_0x20d4f8;let _0x424994=Hn(_0xf22e05);((_0xc3a66d=(_0x20d4f8=_0x4eba86(_0x2301bb))==null?void 0x0:_0x20d4f8[_0x3c1f2b(0xf6)])==null?void 0x0:_0xc3a66d)!==_0x424994&&_0x3b2fd5(_0x2301bb,{'description':_0x424994});},_0x2fe5be=(_0x783124,_0x2408b7)=>{!_0xc18259||!_0xdd93ce||_0x10f0aa['executeCommand'](_0xa10ec9['id'],{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingIds':[_0x783124],'arrangeType':_0x2408b7});};return!_0xc18259||!_0xdd93ce?_0x4c6044(_0x461945(0x1b5),{'className':_0x461945(0xed),'children':_0x158842[_0x461945(0x339)]}):_0x4c6044(_0x1ea8c0,{'items':_0x54ee17,'selectedIds':_0x5926d8,'focusedId':_0x5cde21,'labels':_0x158842,'onSelect':_0x1b05d7,'onSetVisible':_0xc5db42,'onCommitName':_0x1767e0,'onCommitDescription':_0x2aa530,'onMoveForward':_0x2a705a=>_0x2fe5be(_0x2a705a,_0x5516a4[_0x461945(0x2e2)]),'onMoveBackward':_0x522b82=>_0x2fe5be(_0x522b82,_0x5516a4['backward']),'onToggleSelectable':_0x22aeba});}let Kn=class{constructor(_0x216351){this['_renderManagerService']=_0x216351;}['updateShapeFillImage'](_0x4fd8d5,_0x10fed6){const _0x33cea9=_0x49d8a2;let _0x396131=this[_0x33cea9(0x107)][_0x33cea9(0x2c4)](_0x4fd8d5[_0x33cea9(0x1b7)]),_0x4b25d5=_0x396131==null?void 0x0:_0x396131[_0x33cea9(0x228)];if(!_0x4b25d5)return;let _0x7699e3=_0x24e648(_0x4fd8d5),_0x3cdbd7=_0x4b25d5[_0x33cea9(0xda)](_0x7699e3);_0x3cdbd7==null||_0x3cdbd7[_0x33cea9(0x121)](_0x10fed6);}};Kn=Y([J(0x0,_0x2565d9)],Kn);function qn(){const _0x5e832f=_0x49d8a2;let _0x10fd56=_0x2a5e25(_0x5a9176),_0x44946d=_0x57a615(()=>_0x10fd56[_0x5e832f(0x139)],_0x10fd56[_0x5e832f(0x32c)](),!0x1,[_0x10fd56]);return _0x44946d[_0x5e832f(0x289)]===0x0?null:_0x4c6044(_0x5e832f(0x1b5),{'children':_0x52bc9b('div',{'className':_0x5e832f(0x168),'children':[_0x4c6044(_0x4b0647,{'drawings':_0x44946d,'hasCropper':!0x1}),_0x4c6044(_0x37e739,{'drawings':_0x44946d})]})});}function Jn(_0x4349c0){let {unitId:_0xf8b70d,subUnitId:_0x1dbddc,shapeId:_0x2d4a8c}=_0x4349c0,_0x485b16=_0x2a5e25(_0x3002c9),_0x2ebe31=_0x2a5e25(Kn);return _0x4c6044(_0x577577,{..._0x4349c0,'positionEditor':_0x4c6044(qn,{}),'onUpdateShapeData':(_0x238d82,_0x58bfb4)=>{fn(_0x485b16,_0xf8b70d,_0x1dbddc,_0x2d4a8c,_0x238d82,_0x58bfb4);},'onUpdateLineShapeData':(_0x573981,_0x4382a4)=>{pn(_0x485b16,_0xf8b70d,_0x1dbddc,_0x2d4a8c,_0x573981,_0x4382a4);},'onUpdateShapeFillImage':_0xd3e5d5=>{const _0x3bd10c=_0x208c;_0x2ebe31[_0x3bd10c(0x2a8)]({'unitId':_0xf8b70d,'subUnitId':_0x1dbddc,'drawingId':_0x2d4a8c},_0xd3e5d5);}});}function Yn(_0x5e9936){const _0x29c3c3=_0x49d8a2;let _0x536d9d=_0x5e9936['popup'][_0x29c3c3(0x1d7)];return _0x536d9d?_0x4c6044(Xn,{..._0x536d9d}):null;}function Xn(_0x349408){const _0x128a95=_0x49d8a2;var _0x29c052,_0x54b92c;let _0x46fa0a=_0x2a5e25(_0x3002c9),_0x29d2eb=_0x2a5e25(_0x1a451a),{unitId:_0x163573,subUnitId:_0x5f1009,drawingId:_0x21ae43,drawingType:_0x2e08dd,shapeType:_0x33f48f}=_0x349408,[_0x295ae6,_0x5b681a]=_0x487ae5(_0x349408[_0x128a95(0x1c5)]),_0x757b69=_0x307aa0(()=>_0x45f466(_0x295ae6),[_0x295ae6]),_0x20ebaa=_0x307aa0(()=>_0xdf5543(_0x295ae6),[_0x295ae6]);_0xecd31c(()=>{const _0x1b8ccf=_0x128a95;let _0x138e63=_0x46fa0a['onCommandExecuted'](_0x1ffea3=>{const _0x4f783c=_0x208c;if(_0x1ffea3['id']!==_0x22295a['id'])return;let _0x2bc0f4=_0x29d2eb[_0x4f783c(0x264)](_0x163573,_0x5f1009,_0x21ae43);_0x2bc0f4&&_0x5b681a(_0x2bc0f4);});return()=>_0x138e63[_0x1b8ccf(0x2b0)]();},[_0x46fa0a,_0x21ae43,_0x29d2eb,_0x5f1009,_0x163573]);let _0x14bada=_0x3fce78=>{_0x5b681a(_0x134544=>({..._0x134544,..._0x3fce78}));},_0x4ce81f=_0x3083eb=>{const _0x487748=_0x128a95;let _0x444507=_0x1072ef(_0x295ae6,_0x3083eb);fn(_0x46fa0a,_0x163573,_0x5f1009,_0x21ae43,{'oldShapeData':{'shapeText':_0x295ae6[_0x487748(0xe9)]}},_0x444507),_0x14bada(_0x444507);};return _0x4c6044(_0x3381e5,{'shapeData':_0x295ae6,'shapeType':_0x33f48f,'textStyle':{'ff':_0x2bea1d[_0x128a95(0xe9)][_0x128a95(0x176)],'fs':_0x2bea1d[_0x128a95(0xe9)][_0x128a95(0x317)],'cl':{'rgb':_0x2bea1d[_0x128a95(0xe9)]['color']},..._0x757b69},'textModel':_0x20ebaa?{'ha':(_0x29c052=_0x20ebaa['ha'])==null?_0x30a9f7[_0x128a95(0x204)]:_0x29c052,'va':(_0x54b92c=_0x20ebaa['va'])==null?_0x2099ff[_0x128a95(0x310)]:_0x54b92c}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2bea1d[_0x128a95(0x270)],'defaultGradientEndColor':_0x2bea1d[_0x128a95(0xde)],'defaultStrokeColor':_0x2bea1d[_0x128a95(0x2dd)],'onUpdateShapeData':(_0xda52f7,_0x431d4e)=>{fn(_0x46fa0a,_0x163573,_0x5f1009,_0x21ae43,_0xda52f7,_0x431d4e),_0x431d4e&&_0x14bada(_0x431d4e);},'onUpdateText':_0x4ce81f,'onOpenPanel':()=>{const _0x4e8bf8=_0x128a95;_0x46fa0a[_0x4e8bf8(0x2c5)](Bn['id'],{'unitId':_0x163573,'subUnitId':_0x5f1009,'drawingId':_0x21ae43});},'onDelete':()=>{_0x46fa0a['executeCommand'](_0x5f4db7['id'],{'unitId':_0x163573,'drawings':[{'unitId':_0x163573,'subUnitId':_0x5f1009,'drawingId':_0x21ae43,'drawingType':_0x2e08dd}]});}});}var Zn=class extends _0x1e0fa2{constructor(..._0x5c2b03){const _0x28d072=_0x49d8a2;super(..._0x5c2b03),q(this,'_editingParams$',new _0x1154b0(null)),q(this,_0x28d072(0xfa),this[_0x28d072(0x2d5)]['asObservable']()),q(this,_0x28d072(0x27b),new _0x1154b0(!0x1)),q(this,'onSavingEditorData$',this[_0x28d072(0x27b)]['asObservable']());}[_0x49d8a2(0x2b0)](){const _0xb60ecb=_0x49d8a2;this[_0xb60ecb(0x2d5)]['next'](null),this[_0xb60ecb(0x2d5)][_0xb60ecb(0x1e5)](),this[_0xb60ecb(0x27b)][_0xb60ecb(0x15a)](!0x1),this[_0xb60ecb(0x27b)][_0xb60ecb(0x1e5)](),super[_0xb60ecb(0x2b0)]();}[_0x49d8a2(0x2f3)](_0x5bb556){const _0x21d430=_0x49d8a2;this[_0x21d430(0x2d5)][_0x21d430(0x15a)](_0x5bb556),_0x5bb556==null&&this['_onSavingEditorData$']['next'](!0x1);}[_0x49d8a2(0x263)](_0x4169cc){const _0x3c35ac=_0x49d8a2;this[_0x3c35ac(0x27b)][_0x3c35ac(0x15a)](_0x4169cc);}['getEditing'](){const _0x14f384=_0x49d8a2;return this['_editingParams$'][_0x14f384(0x125)]();}[_0x49d8a2(0x2f9)](_0x3d961a){const _0x200df6=_0x49d8a2;this[_0x200df6(0x25a)]()&&(this[_0x200df6(0x263)](!0x0),requestAnimationFrame(()=>{const _0x53094f=_0x200df6;this[_0x53094f(0x2f3)](null);}));}['cancelEditing'](){const _0x2d9312=_0x49d8a2;this[_0x2d9312(0x25a)]()&&this[_0x2d9312(0x2f3)](null);}};const Qn=_0x3cdd19(()=>{const _0x5b7685=_0x49d8a2;let _0x57a8da=_0x2a5e25(Zn),_0x3121bf=_0x2a5e25(_0x1a451a),_0x452bd6=_0x2a5e25(_0x5a9176),_0x5c19c1=_0x2a5e25(_0x3002c9),_0x20e277=_0x2a5e25(_0x2565d9);return _0x4c6044(_0x264bf4,{'adapter':_0x307aa0(()=>({'getShapeModel':(_0x21e298,_0x3e7328,_0x538d6a)=>_0x3121bf[_0x5b7685(0x296)](_0x21e298,_0x3e7328,_0x538d6a),'getShapeData':(_0x5a4ffb,_0x16dbb1,_0x2bfdde)=>_0x3121bf[_0x5b7685(0x264)](_0x5a4ffb,_0x16dbb1,_0x2bfdde),'getDrawingTransform':(_0x47fea1,_0x4c3491,_0x3abadd)=>{const _0x56cfdb=_0x5b7685;let _0x305cbb=_0x452bd6[_0x56cfdb(0x26a)]({'unitId':_0x47fea1,'subUnitId':_0x4c3491,'drawingId':_0x3abadd});return _0x305cbb==null?void 0x0:_0x305cbb[_0x56cfdb(0x166)];},'updateShapeText':({unitId:_0x4a7733,subUnitId:_0x3fee19,shapeId:_0x1df34f,shapeText:_0x589585,oldShapeText:_0x1fd2e1})=>{const _0x4ed96c=_0x5b7685;_0x5c19c1[_0x4ed96c(0x2c5)](dn['id'],{'unitId':_0x4a7733,'subUnitId':_0x3fee19,'shapeId':_0x1df34f,'shapeData':{'shapeText':_0x589585},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1fd2e1}}});},'updateHostSize':({unitId:_0x447a8c,subUnitId:_0x20ab8d,shapeId:_0x54693d,width:_0x28a25b,height:_0x5a1d95})=>{const _0x3f4cd0=_0x5b7685;var _0x281f18,_0x3eae22,_0x15bf37;let _0xe0c58e=_0x452bd6['getDrawingByParam']({'unitId':_0x447a8c,'subUnitId':_0x20ab8d,'drawingId':_0x54693d}),_0x50eb13=_0xe0c58e==null?void 0x0:_0xe0c58e[_0x3f4cd0(0x166)];if(!_0xe0c58e||!_0x50eb13)return;let _0x4af162={..._0x50eb13,'width':_0x28a25b,'height':_0x5a1d95},_0x53447a=(_0x281f18=_0x20e277[_0x3f4cd0(0x2c4)](_0x447a8c))==null||(_0x281f18=_0x281f18[_0x3f4cd0(0xf5)](_0x4b5a3f)[_0x3f4cd0(0x1c3)](_0x20ab8d))==null?void 0x0:_0x281f18[_0x3f4cd0(0x26d)],_0xd6b18d=_0x53447a?(_0x3eae22=_0x4ee577(_0x4af162,_0x53447a))==null?_0xe0c58e[_0x3f4cd0(0x265)]:_0x3eae22:_0xe0c58e[_0x3f4cd0(0x265)],_0xec26ea=_0x53447a?(_0x15bf37=_0x14cc4e(_0x4af162,_0x53447a))==null?_0xe0c58e[_0x3f4cd0(0xdb)]:_0x15bf37:_0xe0c58e[_0x3f4cd0(0xdb)];_0x5c19c1[_0x3f4cd0(0x2c5)](_0x577eb5['id'],{'unitId':_0x447a8c,'drawings':[{..._0xe0c58e,'transform':_0x4af162,'sheetTransform':_0xd6b18d,'axisAlignSheetTransform':_0xec26ea}]});},'allowHostSizeShrink':({unitId:_0x51b50f,subUnitId:_0x311079,shapeId:_0x498161})=>_0x7502d3(_0x3121bf[_0x5b7685(0x264)](_0x51b50f,_0x311079,_0x498161))}),[_0x5c19c1,_0x452bd6,_0x20e277,_0x3121bf]),'editingService':_0x57a8da,'editorUnitId':Tn,'positionOptions':_0x307aa0(()=>({'viewportKeys':{'main':_0x42dea8[_0x5b7685(0x281)],'leftTop':_0x42dea8[_0x5b7685(0x17c)],'top':_0x42dea8[_0x5b7685(0x189)],'left':_0x42dea8[_0x5b7685(0x32a)]},'getSkeleton':(_0x1061c5,_0x201d8b)=>{const _0x5a4ed1=_0x5b7685;var _0x44fe8b,_0x5c2b5f;return(_0x44fe8b=(_0x5c2b5f=_0x1061c5[_0x5a4ed1(0xf5)](_0x4b5a3f)['getSkeletonParam'](_0x201d8b['subUnitId']))==null?void 0x0:_0x5c2b5f[_0x5a4ed1(0x26d)])==null?null:_0x44fe8b;}}),[])});});let $n=class extends _0x1e0fa2{constructor(_0x13d118,_0x5d381d){const _0x1e425b=_0x49d8a2;super(),this['_componentManager']=_0x13d118,this[_0x1e425b(0x134)]=_0x5d381d,this['_registerIcons'](),this['_registerComponents']();}[_0x49d8a2(0x2f7)](){const _0x138651=_0x49d8a2;this[_0x138651(0x134)][_0x138651(0x215)](_0x138651(0x11f))||this[_0x138651(0x16d)](this[_0x138651(0x134)][_0x138651(0x21d)]({'CopyDoubleIcon':_0x8cec5a}));}[_0x49d8a2(0x1bb)](){const _0x4099c6=_0x49d8a2;this[_0x4099c6(0x16d)](this['_componentManager'][_0x4099c6(0x21d)](Sn,Jn)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)]['register'](Cn,Gn)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](On,Nn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](kn,jn)),this[_0x4099c6(0x2c7)][_0x4099c6(0x1bc)](_0x76290b)||this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](_0x76290b,Mn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](wn,Yn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](En,_0x2d3b93)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](_0x4099c6(0x292),Qn));}};$n=Y([J(0x0,_0x3465f0(_0x4dd7a3)),J(0x1,_0x3465f0(_0x45bf3a))],$n);let er=class extends _0x1e0fa2{constructor(_0x4b70c7,_0x457a7a,_0x213474,_0x548bf5,_0x4ee2f3){const _0x221a1b=_0x49d8a2;super(),this[_0x221a1b(0x12a)]=_0x4b70c7,this[_0x221a1b(0x159)]=_0x457a7a,this[_0x221a1b(0x107)]=_0x213474,this[_0x221a1b(0x1b8)]=_0x548bf5,this[_0x221a1b(0x18a)]=_0x4ee2f3,q(this,_0x221a1b(0x15d),null),q(this,'_unitId',null),q(this,_0x221a1b(0x227),null),q(this,'_activeAdjustPointList',void 0x0),q(this,'_shapes',[]),q(this,_0x221a1b(0x155),0x0),q(this,'_baseTop',0x0),q(this,_0x221a1b(0x269),0x0),q(this,_0x221a1b(0x304),0x0),q(this,_0x221a1b(0x2a5),!0x1),q(this,_0x221a1b(0x1e9),void 0x0),q(this,_0x221a1b(0x1db),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x221a1b(0xe3),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x221a1b(0x287)](),this['_registerMoveHandler']();}[_0x49d8a2(0x2cb)](){const _0x2879fc=_0x49d8a2;this[_0x2879fc(0x186)]();}[_0x49d8a2(0x1c6)](){const _0x32eb47=_0x49d8a2;this['_clearControls'](),this[_0x32eb47(0x28f)](!0x0);}['_getOrCreateShapeModel'](_0x1728ca,_0x4762cf,_0x48659b,_0x70531){const _0x45baab=_0x49d8a2;let _0x33adb6=_0x1728ca;if(!(_0x33adb6===_0x1ca39f[_0x45baab(0x201)]||_0x1728ca===_0x45baab(0x1d3)))try{let _0xf1eb9a=new _0x2a67cd(_0x33adb6,_0x45baab(0x268)+_0x1728ca);return _0x70531&&_0xf1eb9a['setShapeData']({'adjustValues':_0x70531},!0x0),_0xf1eb9a[_0x45baab(0x314)]({'width':_0x4762cf,'height':_0x48659b}),_0xf1eb9a;}catch{return;}}[_0x49d8a2(0x243)](_0x363dc2,_0x492f6f,_0x29ea3d){const _0x13c3fd=_0x49d8a2;let _0x1b1c98={'unitId':_0x363dc2,'subUnitId':_0x492f6f,'drawingId':_0x29ea3d},_0x57072e=this[_0x13c3fd(0x159)][_0x13c3fd(0x26a)](_0x1b1c98);if(!(!_0x57072e||_0x57072e['drawingType']!==_0x336997[_0x13c3fd(0x2b7)]))return _0x57072e;}['_getImagePrstGeom'](_0x939447,_0x18b1c4,_0x49fa36){const _0xa71d63=_0x49d8a2;let _0x4bb97a=this['_renderManagerService']['getRenderById'](_0x939447);if(!_0x4bb97a)return;let {scene:_0x3611fd}=_0x4bb97a,_0x2d9334=_0x24e648({'unitId':_0x939447,'subUnitId':_0x18b1c4,'drawingId':_0x49fa36}),_0x41649d=_0x3611fd[_0xa71d63(0x307)](_0x2d9334);if(_0x41649d instanceof _0xd2487b){let _0x1baa22=_0x41649d[_0xa71d63(0x178)];if(_0x1baa22)return{'prstGeom':_0x1baa22,'adjustValues':_0x41649d[_0xa71d63(0x323)]};}}[_0x49d8a2(0x28f)](_0x49d47b=!0x1){const _0x3d8c36=_0x49d8a2;if(!this[_0x3d8c36(0x330)]||!this['_subUnitId']||!this[_0x3d8c36(0x15d)])return;let _0x377013=this[_0x3d8c36(0x107)][_0x3d8c36(0x2c4)](this[_0x3d8c36(0x330)]);if(!_0x377013||!_0x377013[_0x3d8c36(0xf5)](_0x4b5a3f)['getCurrentSkeleton']())return;let {scene:_0x5b4377}=_0x377013,_0x545df2=this[_0x3d8c36(0x243)](this['_unitId'],this['_subUnitId'],this[_0x3d8c36(0x15d)]);if(!_0x545df2)return;let {transform:_0x26d342}=_0x545df2;if(!_0x26d342)return;let {left:_0x276386,top:_0x5de7ee,width:_0x56b872,height:_0x5959bd,flipX:_0x2347d7,flipY:_0x2fd6bd,angle:_0x11f2a3=0x0}=_0x26d342;if(_0x276386===void 0x0||_0x5de7ee===void 0x0)return;let _0x36117e=this[_0x3d8c36(0x28d)](this[_0x3d8c36(0x330)],this[_0x3d8c36(0x227)],this['_activeImageId']);if(!_0x36117e)return;if(_0x49d47b){let _0x211d69=this[_0x3d8c36(0x119)](_0x36117e[_0x3d8c36(0x178)],_0x56b872||0x0,_0x5959bd||0x0,_0x36117e[_0x3d8c36(0x114)]);if(!_0x211d69)return;this[_0x3d8c36(0x2cf)]=_0x211d69[_0x3d8c36(0x12d)]();}let _0x431da1=this[_0x3d8c36(0x2cf)];if(!(!_0x431da1||_0x431da1['length']===0x0))for(let _0x577290=0x0;_0x577290<_0x431da1[_0x3d8c36(0x289)];_0x577290++){let _0x295615=_0x431da1[_0x577290],_0x23193d=_0x295615['x'],_0x20da0a=_0x295615['y'];if(_0x2347d7&&(_0x23193d=(_0x56b872||0x0)-_0x23193d),_0x2fd6bd&&(_0x20da0a=(_0x5959bd||0x0)-_0x20da0a),_0x11f2a3!==0x0){let _0x5444db=(_0x56b872||0x0)/0x2,_0x1f2b4e=(_0x5959bd||0x0)/0x2,_0x380ab6=_0x11f2a3*Math['PI']/0xb4,_0x361d36=Math[_0x3d8c36(0x17b)](_0x380ab6),_0x39078d=Math['sin'](_0x380ab6),_0x1c900b=_0x23193d-_0x5444db,_0x33e3b1=_0x20da0a-_0x1f2b4e;_0x23193d=_0x5444db+(_0x1c900b*_0x361d36-_0x33e3b1*_0x39078d),_0x20da0a=_0x1f2b4e+(_0x1c900b*_0x39078d+_0x33e3b1*_0x361d36);}let _0x571219={'x':_0x23193d,'y':_0x20da0a,'adjName':_0x295615[_0x3d8c36(0x1a2)]};this[_0x3d8c36(0x219)](_0x5b4377,_0x571219,_0x571219[_0x3d8c36(0x1a2)],_0x276386,_0x5de7ee,this[_0x3d8c36(0x330)],this[_0x3d8c36(0x227)]);}}['_addControl'](_0xdc775,_0x59ff81,_0x1899a0,_0x5c9ba3,_0x36a414,_0x430aa3,_0x1b2b80){const _0x53d39d=_0x49d8a2;if(!this['_activeImageId'])return;let _0x24f24a='image-clip-adjust-point-'+this[_0x53d39d(0x15d)]+'-'+_0x1899a0,_0x242192=_0xdc775[_0x53d39d(0xda)](_0x24f24a);if(_0x242192){_0x242192[_0x53d39d(0x112)]({'left':_0x59ff81['x']+_0x5c9ba3-_0x2bea1d[_0x53d39d(0xe1)],'top':_0x59ff81['y']+_0x36a414-_0x2bea1d['adjHandleSize']});return;}let _0x29be53=new yn(_0x24f24a,{'left':_0x59ff81['x']+_0x5c9ba3-_0x2bea1d[_0x53d39d(0xe1)],'top':_0x59ff81['y']+_0x36a414-_0x2bea1d[_0x53d39d(0xe1)],'adjName':_0x1899a0,'shapeId':this['_activeImageId'],'unitId':_0x430aa3,'subUnitId':_0x1b2b80,'width':_0x2bea1d[_0x53d39d(0xe1)]+0x8,'height':_0x2bea1d[_0x53d39d(0xe1)]+0x8,'zIndex':_0x529f4c+0x1,'evented':!0x0});this[_0x53d39d(0x2b3)][_0x53d39d(0x214)](_0x29be53),this[_0x53d39d(0x336)](_0x29be53,_0xdc775,_0x1899a0),_0xdc775[_0x53d39d(0x1c7)](_0x29be53,_0x529f4c+0x1);}[_0x49d8a2(0x186)](){const _0x412754=_0x49d8a2;this['_shapes']['length']!==0x0&&(this[_0x412754(0x2b3)][_0x412754(0x111)](_0x229677=>_0x229677[_0x412754(0x2b0)]()),this[_0x412754(0x2b3)]=[]);}[_0x49d8a2(0x30e)](_0x54254f,_0x1cc702){const _0x7b2acc=_0x49d8a2;var _0x55a6ce;let _0x1c8b84={'x':0x0,'y':0x0},_0x2ce962=this[_0x7b2acc(0x107)][_0x7b2acc(0x2c4)](_0x54254f);if(!_0x2ce962||!_0x2ce962['with'](_0x4b5a3f)[_0x7b2acc(0x1a4)](_0x1cc702))return _0x1c8b84;let _0x1da7c3=_0x2ce962['with'](_0x5480ae),_0xd0b61c=_0x1da7c3==null?void 0x0:_0x1da7c3['getCurrentScrollState']();if(!_0xd0b61c)return _0x1c8b84;let _0x542965=(_0x55a6ce=this[_0x7b2acc(0x1b8)][_0x7b2acc(0x12f)](_0x54254f))==null?void 0x0:_0x55a6ce[_0x7b2acc(0x169)](_0x1cc702);if(!_0x542965)return _0x1c8b84;let _0x1f843a=_0x356c4d(_0xd0b61c[_0x7b2acc(0x206)],_0xd0b61c[_0x7b2acc(0x19a)],_0x2ce962[_0x7b2acc(0x228)],_0x542965);return _0x1f843a?{'x':_0x1f843a['viewportScrollX'],'y':_0x1f843a['viewportScrollY']}:_0x1c8b84;}[_0x49d8a2(0x224)](_0x5c1288,_0x23dcad){const _0x3520a4=_0x49d8a2;var _0x1b305e,_0x1e8128;let _0x42cba6=(_0x1b305e=this['_univerInstanceService'][_0x3520a4(0x12f)](_0x5c1288))==null?void 0x0:_0x1b305e['getSheetBySheetId'](_0x23dcad);return(_0x1e8128=_0x42cba6==null?void 0x0:_0x42cba6[_0x3520a4(0x221)]())==null?0x1:_0x1e8128;}[_0x49d8a2(0x336)](_0x369b80,_0x419b75,_0x50f82a){const _0x315bbb=_0x49d8a2;this[_0x315bbb(0x16d)](_0x4f15f0(_0x369b80[_0x315bbb(0x1ca)]['subscribeEvent']((_0x53afc0,_0x47ba57)=>{const _0x3c7e5c=_0x315bbb;var _0x24fe40,_0x5473f7,_0x2a405c;let {unitId:_0x1ca42e,subUnitId:_0x30f81c,drawingId:_0x2b3286}=_0x369b80[_0x3c7e5c(0x275)](),_0x317567=this[_0x3c7e5c(0x243)](_0x1ca42e,_0x30f81c,_0x2b3286);if(!(_0x317567!=null&&_0x317567[_0x3c7e5c(0x166)]))return;let {left:_0x529c2d,top:_0x47e14b,width:_0x32b01b,height:_0x4eca48}=_0x317567[_0x3c7e5c(0x166)];this[_0x3c7e5c(0x155)]=_0x529c2d||0x0,this[_0x3c7e5c(0x172)]=_0x47e14b||0x0,this[_0x3c7e5c(0x269)]=_0x32b01b||0x0,this[_0x3c7e5c(0x304)]=_0x4eca48||0x0;let _0x341558=!!((_0x24fe40=_0x317567[_0x3c7e5c(0x166)])!=null&&_0x24fe40[_0x3c7e5c(0x31c)]),_0x8eb0e7=!!((_0x5473f7=_0x317567[_0x3c7e5c(0x166)])!=null&&_0x5473f7[_0x3c7e5c(0x132)]),_0x5c6c87=((_0x2a405c=_0x317567[_0x3c7e5c(0x166)])==null?void 0x0:_0x2a405c[_0x3c7e5c(0x1fa)])||0x0,_0x5e5353=this[_0x3c7e5c(0x28d)](_0x1ca42e,_0x30f81c,_0x2b3286);if(!_0x5e5353)return;let _0x46a845=this[_0x3c7e5c(0x119)](_0x5e5353[_0x3c7e5c(0x178)],this['_baseWidth'],this[_0x3c7e5c(0x304)],_0x5e5353[_0x3c7e5c(0x114)]);if(!_0x46a845||(this[_0x3c7e5c(0x1db)]=_0x46a845,this[_0x3c7e5c(0x1e9)]=_0x46a845[_0x3c7e5c(0x2a1)](_0x50f82a),!this['_activeAdjustInfo']))return;this['_isStartAdjusting']=!0x0,_0x419b75['disableObjectsEvent']();let _0x52be7c=_0x5e5353[_0x3c7e5c(0x178)];this[_0x3c7e5c(0x17a)]=_0x419b75['onPointerMove$'][_0x3c7e5c(0x19b)]((_0x55aa96,_0x309507)=>{const _0x10c185=_0x3c7e5c;if(!this[_0x10c185(0x2a5)])return;let {offsetX:_0x5e5476,offsetY:_0x496242}=_0x55aa96,_0x4e9290=this[_0x10c185(0x1e9)];if(!this[_0x10c185(0x1db)]||!_0x4e9290)return;_0x419b75[_0x10c185(0x162)](),_0x419b75['setCursor'](_0x35244f[_0x10c185(0x2ac)]);let _0x3bf5b6={'left':0x0,'top':0x0,'width':this[_0x10c185(0x269)],'height':this[_0x10c185(0x304)]},_0x3d39db=this['_getScrollInfo'](_0x1ca42e,_0x30f81c),_0x548fbc=this[_0x10c185(0x224)](_0x1ca42e,_0x30f81c),_0x1ea17d=_0x5e5476/_0x548fbc+_0x3d39db['x']-this[_0x10c185(0x155)],_0x40e053=_0x496242/_0x548fbc+_0x3d39db['y']-this[_0x10c185(0x172)];if(_0x5c6c87!==0x0){let _0x3a98a0=this[_0x10c185(0x269)]/0x2,_0x5d4d79=this[_0x10c185(0x304)]/0x2,_0x530a5b=_0x5c6c87*Math['PI']/0xb4,_0x42b635=Math[_0x10c185(0x17b)](_0x530a5b),_0x44d9b6=Math[_0x10c185(0x2c0)](_0x530a5b),_0x47fe43=_0x1ea17d-_0x3a98a0,_0x1323cb=_0x40e053-_0x5d4d79;_0x1ea17d=_0x3a98a0+(_0x47fe43*_0x42b635+_0x1323cb*_0x44d9b6),_0x40e053=_0x5d4d79+(-_0x47fe43*_0x44d9b6+_0x1323cb*_0x42b635);}_0x341558&&(_0x1ea17d=this['_baseWidth']-_0x1ea17d),_0x8eb0e7&&(_0x40e053=this[_0x10c185(0x304)]-_0x40e053);let _0x473459=this['_activeShapeModel'][_0x10c185(0x300)](_0x3bf5b6,{'x':_0x1ea17d,'y':_0x40e053},_0x4e9290,_0x341558,_0x8eb0e7),_0x208644=_0x4e9290[_0x10c185(0xe7)]||_0x4e9290[_0x10c185(0x297)]||_0x4e9290[_0x10c185(0x27f)]||_0x4e9290['gdRefR'];_0x208644!==void 0x0&&(this[_0x10c185(0x1db)][_0x10c185(0x1cf)](_0x208644,_0x473459),this[_0x10c185(0x1db)]['updateContext']({'width':this[_0x10c185(0x269)],'height':this[_0x10c185(0x304)]}),this[_0x10c185(0x2a2)](_0x1ca42e,_0x30f81c,_0x2b3286,_0x208644,_0x473459),this[_0x10c185(0x2cf)]=this[_0x10c185(0x1db)][_0x10c185(0x12d)](),this[_0x10c185(0x1e9)]=this[_0x10c185(0x1db)][_0x10c185(0x2a1)](_0x50f82a),this['_createControls'](),_0x309507[_0x10c185(0x108)]());}),this[_0x3c7e5c(0xe3)]=_0x419b75[_0x3c7e5c(0x1fc)][_0x3c7e5c(0x19b)]((_0x10bed5,_0x3a0b6b)=>{const _0x592b11=_0x3c7e5c;if(this[_0x592b11(0x17a)]['unsubscribe'](),this['_adjHandlerPointerUp'][_0x592b11(0x2e3)](),_0x419b75[_0x592b11(0x18d)](),this[_0x592b11(0x1db)]){let _0x316704=this[_0x592b11(0x1db)][_0x592b11(0x325)](),_0x3dc849={};for(let _0x567c71 of _0x316704){let _0x87eb15=this[_0x592b11(0x1db)][_0x592b11(0x27e)](_0x567c71);_0x87eb15!==void 0x0&&(_0x3dc849[_0x567c71]=_0x87eb15);}this[_0x592b11(0x18a)][_0x592b11(0x1fb)](_0x1ca42e,_0x30f81c,_0x2b3286,_0x52be7c,_0x3dc849);}this[_0x592b11(0x1e9)]=void 0x0,this[_0x592b11(0x1db)]=void 0x0,this[_0x592b11(0x2a5)]=!0x1,_0x3a0b6b[_0x592b11(0x108)](),_0x419b75[_0x592b11(0x24a)]();}),_0x47ba57['stopPropagation']();})));}['_updateImageAdjValues'](_0x4999d6,_0x37dac4,_0x3de9d4,_0x305312,_0x10ea99){const _0x3a875f=_0x49d8a2;let _0x506399=this[_0x3a875f(0x107)][_0x3a875f(0x2c4)](_0x4999d6);if(!_0x506399)return;let {scene:_0x2af349}=_0x506399,_0x3b76a2=_0x24e648({'unitId':_0x4999d6,'subUnitId':_0x37dac4,'drawingId':_0x3de9d4}),_0xa0ec2f=_0x2af349[_0x3a875f(0x307)](_0x3b76a2);if(_0xa0ec2f instanceof _0xd2487b){var _0x148fb7;let _0x40a4b9=(_0x148fb7=_0xa0ec2f[_0x3a875f(0x323)])==null?{}:_0x148fb7;_0xa0ec2f[_0x3a875f(0x164)]({..._0x40a4b9,[_0x305312]:_0x10ea99}),_0xa0ec2f['makeDirty'](!0x0);}}[_0x49d8a2(0x126)](){const _0x767221=_0x49d8a2;let _0x3a7ac8=this[_0x767221(0x1b8)]['getCurrentTypeOfUnit$'](_0x4c1a31['UNIVER_SHEET']);this['disposeWithMe'](_0x3a7ac8[_0x767221(0x26c)](_0x48371d(_0x39766e=>_0x39766e?_0x39766e[_0x767221(0x18c)][_0x767221(0x26c)](_0x48371d(_0x512ce9=>{const _0x3793fa=_0x767221;if(!_0x512ce9)return _0x4e602d;let _0x3c65ac=_0x39766e[_0x3793fa(0x229)](),_0x50a205=this[_0x3793fa(0x107)][_0x3793fa(0x2c4)](_0x3c65ac),_0x4f664d=_0x50a205==null?void 0x0:_0x50a205[_0x3793fa(0x228)];return _0x4f664d?_0x5ba9b9(_0x4f664d):_0x4e602d;})):_0x4e602d))[_0x767221(0x212)](_0x1acefe=>{const _0x27acf7=_0x767221;let _0x1d2683=_0x1acefe[_0x27acf7(0x14b)]();this['disposeWithMe'](_0x1acefe['onPointerMove$'][_0x27acf7(0x19b)](()=>{const _0x4d97d2=_0x27acf7;this['_isImagePointerDown']&&this[_0x4d97d2(0x186)]();})),this['disposeWithMe'](_0x1d2683['changeStart$'][_0x27acf7(0x212)](_0x519f79=>{const _0x2b565c=_0x27acf7;let {objects:_0x5582d2}=_0x519f79;if(this[_0x2b565c(0x28f)](),_0x5582d2!==null&&_0x5582d2['size']===0x1){let _0x33a3e2=_0x5582d2[_0x2b565c(0x2cc)]()[_0x2b565c(0x15a)]()['value'];_0x33a3e2 instanceof _0xd2487b&&_0x33a3e2[_0x2b565c(0x178)]&&(this[_0x2b565c(0x25b)]=!0x0);}})),this[_0x27acf7(0x16d)](_0x1d2683[_0x27acf7(0x2f4)][_0x27acf7(0x212)](()=>{const _0x5000b1=_0x27acf7;this[_0x5000b1(0x25b)]&&this[_0x5000b1(0x186)]();})),this[_0x27acf7(0x16d)](_0x1acefe[_0x27acf7(0x1fc)]['subscribeEvent'](()=>{const _0xce4466=_0x27acf7;this[_0xce4466(0x25b)]&&(this['_isImagePointerDown']=!0x1,this[_0xce4466(0x28f)]());})),this[_0x27acf7(0x16d)](_0x1d2683[_0x27acf7(0x322)][_0x27acf7(0x212)](()=>{const _0x5c042e=_0x27acf7;if(this[_0x5c042e(0x330)]&&this[_0x5c042e(0x227)]&&this['_activeImageId']){let _0x3ab4c6=this['_getImagePrstGeom'](this[_0x5c042e(0x330)],this[_0x5c042e(0x227)],this[_0x5c042e(0x15d)]);if(_0x3ab4c6){var _0x5e5626,_0x3d7988;let _0x1bac29=this[_0x5c042e(0x243)](this[_0x5c042e(0x330)],this[_0x5c042e(0x227)],this[_0x5c042e(0x15d)]),_0x4315f6=(_0x1bac29==null||(_0x5e5626=_0x1bac29[_0x5c042e(0x166)])==null?void 0x0:_0x5e5626[_0x5c042e(0x2b9)])||0x0,_0x35787e=(_0x1bac29==null||(_0x3d7988=_0x1bac29[_0x5c042e(0x166)])==null?void 0x0:_0x3d7988[_0x5c042e(0x232)])||0x0,_0x1ac35d=this[_0x5c042e(0x119)](_0x3ab4c6[_0x5c042e(0x178)],_0x4315f6,_0x35787e,_0x3ab4c6[_0x5c042e(0x114)]);_0x1ac35d&&(this[_0x5c042e(0x2cf)]=_0x1ac35d[_0x5c042e(0x12d)](),this[_0x5c042e(0x186)](),this['_createControls'](!0x0));}}}));}));}[_0x49d8a2(0x287)](){const _0x3fedab=_0x49d8a2;this['disposeWithMe'](this[_0x3fedab(0x159)]['focus$'][_0x3fedab(0x212)](_0x3eeff3=>{const _0x579926=_0x3fedab;if(_0x3eeff3[_0x579926(0x289)]===0x1){let _0x382f1c=_0x3eeff3[0x0];if(_0x382f1c[_0x579926(0x12e)]===_0x336997[_0x579926(0x2b7)]){let {unitId:_0x558b8b,subUnitId:_0x1a483e,drawingId:_0x45a9d9}=_0x382f1c,_0x1fae29=this[_0x579926(0x28d)](_0x558b8b,_0x1a483e,_0x45a9d9);if(_0x1fae29){var _0xbf5019,_0x4060b4;this['_activeImageId']=_0x45a9d9,this[_0x579926(0x330)]=_0x558b8b,this[_0x579926(0x227)]=_0x1a483e;let _0x2bd36c=this[_0x579926(0x243)](_0x558b8b,_0x1a483e,_0x45a9d9),_0x42662c=(_0x2bd36c==null||(_0xbf5019=_0x2bd36c[_0x579926(0x166)])==null?void 0x0:_0xbf5019['width'])||0x0,_0x21088f=(_0x2bd36c==null||(_0x4060b4=_0x2bd36c[_0x579926(0x166)])==null?void 0x0:_0x4060b4[_0x579926(0x232)])||0x0,_0x4a8446=this['_getOrCreateShapeModel'](_0x1fae29[_0x579926(0x178)],_0x42662c,_0x21088f,_0x1fae29[_0x579926(0x114)]);_0x4a8446&&(this['_activeAdjustPointList']=_0x4a8446[_0x579926(0x12d)]()),this[_0x579926(0x186)](),this['_createControls'](!0x0);}else this[_0x579926(0x30f)]();}else this['_resetState']();}else this[_0x579926(0x30f)]();})),this[_0x3fedab(0x16d)](this[_0x3fedab(0x159)][_0x3fedab(0x127)][_0x3fedab(0x212)](_0x131599=>{const _0x5fca99=_0x3fedab;if(_0x131599['length']===0x1){let _0x3cfac4=_0x131599[0x0],_0x32c830=this[_0x5fca99(0x159)][_0x5fca99(0x26a)](_0x3cfac4);(_0x32c830==null?void 0x0:_0x32c830[_0x5fca99(0x12e)])===_0x336997[_0x5fca99(0x2b7)]&&this['_activeImageId']===_0x3cfac4['drawingId']&&(this[_0x5fca99(0x186)](),this[_0x5fca99(0x28f)](!0x0));}})),this[_0x3fedab(0x16d)](this[_0x3fedab(0x159)][_0x3fedab(0x2dc)][_0x3fedab(0x212)](_0x11b0ce=>{const _0x5d5a69=_0x3fedab;for(let _0x4d7d77 of _0x11b0ce)this[_0x5d5a69(0x15d)]===_0x4d7d77[_0x5d5a69(0x20e)]&&this[_0x5d5a69(0x30f)]();}));}[_0x49d8a2(0x30f)](){const _0x18bc89=_0x49d8a2;this[_0x18bc89(0x15d)]=null,this['_unitId']=null,this[_0x18bc89(0x227)]=null,this[_0x18bc89(0x2cf)]=void 0x0,this['_clearControls']();}};er=Y([J(0x1,_0x5a9176),J(0x2,_0x3465f0(_0x2565d9)),J(0x3,_0x2320a1),J(0x4,_0x3465f0(Q))],er);let tr=class extends _0x1e0fa2{constructor(_0x19fb24,_0x4233bf,_0x92d6be,_0x5d1b63){const _0xafe370=_0x49d8a2;super(),this['_univerInstanceService']=_0x19fb24,this[_0xafe370(0x1c0)]=_0x4233bf,this[_0xafe370(0x334)]=_0x92d6be,this[_0xafe370(0x220)]=_0x5d1b63,this[_0xafe370(0x1e4)]();}['_initSheetChange'](){const _0xf7409e=_0x49d8a2;this[_0xf7409e(0x16d)](this[_0xf7409e(0x1c0)][_0xf7409e(0x31d)]({'getMutations':_0x3befe2=>{const _0x4d273f=_0xf7409e;if(_0x3befe2['id']===_0x414783['id']){let _0xa5df6e=_0x20e706(this[_0x4d273f(0x1b8)],_0x3befe2['params']);if(!_0xa5df6e)return{'redos':[],'undos':[]};let {unitId:_0x3d1519,subUnitId:_0x7316b0}=_0xa5df6e,_0x3c5875=this['_sheetDrawingService'][_0x4d273f(0x233)](_0x3d1519,_0x7316b0),_0x230e44=Object[_0x4d273f(0x2cc)](_0x3c5875)[_0x4d273f(0x1da)](_0x2d5dbc=>_0x2d5dbc[_0x4d273f(0x12e)]===_0x336997[_0x4d273f(0x181)]);if(_0x230e44[_0x4d273f(0x289)]===0x0)return{'redos':[],'undos':[]};let _0x2d49e8=[],_0x3928a9=[];for(let _0x4c231f=0x0;_0x4c231f<_0x230e44[_0x4d273f(0x289)];_0x4c231f++){let _0x5e8c39=_0x230e44[_0x4c231f],_0x2dda63=this[_0x4d273f(0x220)][_0x4d273f(0x296)](_0x5e8c39[_0x4d273f(0x1b7)],_0x5e8c39[_0x4d273f(0x2b4)],_0x5e8c39[_0x4d273f(0x20e)]);if(!_0x2dda63)continue;let {redo:_0x2cef78,undo:_0x1136b0,objects:_0x1e3942}=this[_0x4d273f(0x334)]['getBatchRemoveOp']([_0x5e8c39]);_0x2d49e8['push']({'id':_0x32e37c['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'shapeId':_0x5e8c39['drawingId']}}),_0x2d49e8[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'type':_0x20e0af[_0x4d273f(0xfb)],'op':_0x2cef78,'objects':_0x1e3942}}),_0x3928a9['push']({'id':_0x2fbd15['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'type':_0x20e0af[_0x4d273f(0x337)],'op':_0x1136b0,'objects':_0x1e3942}}),_0x3928a9['push']({'id':_0x47dbbc['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'shapeId':_0x5e8c39['drawingId'],'shapeType':_0x2dda63[_0x4d273f(0x285)](),'shapeData':JSON[_0x4d273f(0x230)](JSON[_0x4d273f(0x266)](_0x2dda63[_0x4d273f(0x205)]()))}});}return{'redos':_0x2d49e8,'undos':_0x3928a9};}else{if(_0x3befe2['id']===_0x54e5a0['id']){let {unitId:_0x3951ee,subUnitId:_0x56fcc5,targetSubUnitId:_0x1970b7}=_0x3befe2[_0x4d273f(0x2ba)];if(!_0x3951ee||!_0x56fcc5||!_0x1970b7)return{'redos':[],'undos':[]};let _0xd37df7=this[_0x4d273f(0x334)][_0x4d273f(0x233)](_0x3951ee,_0x56fcc5),_0x4db82c=Object[_0x4d273f(0x2cc)](_0xd37df7)['filter'](_0x486d3b=>_0x486d3b[_0x4d273f(0x12e)]===_0x336997[_0x4d273f(0x181)]);if(_0x4db82c[_0x4d273f(0x289)]===0x0)return{'redos':[],'undos':[]};let _0x2d7efa=[],_0x278517=[];for(let _0x13e062=0x0;_0x13e062<_0x4db82c[_0x4d273f(0x289)];_0x13e062++){let _0x2f2826=_0x4db82c[_0x13e062],_0x7a75e5=this[_0x4d273f(0x220)]['getShapeModel'](_0x2f2826['unitId'],_0x2f2826[_0x4d273f(0x2b4)],_0x2f2826[_0x4d273f(0x20e)]);if(!_0x7a75e5)continue;let _0x4a58db=_0x3893c7(),_0x4dafd5={..._0x2f2826,'unitId':_0x3951ee,'subUnitId':_0x1970b7,'drawingId':_0x4a58db},{redo:_0xf5d128,undo:_0x561f6a,objects:_0x31fff6}=this[_0x4d273f(0x334)][_0x4d273f(0x20b)]([_0x4dafd5]);_0x2d7efa[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'type':_0x20e0af[_0x4d273f(0x337)],'op':_0xf5d128,'objects':_0x31fff6}}),_0x2d7efa[_0x4d273f(0x214)]({'id':_0x47dbbc['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'shapeId':_0x4a58db,'shapeType':_0x7a75e5[_0x4d273f(0x285)](),'shapeData':JSON['parse'](JSON[_0x4d273f(0x266)](_0x7a75e5[_0x4d273f(0x205)]()))}}),_0x278517[_0x4d273f(0x214)]({'id':_0x32e37c['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'shapeId':_0x4a58db}}),_0x278517[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'type':_0x20e0af[_0x4d273f(0xfb)],'op':_0x561f6a,'objects':_0x31fff6}});}return{'redos':_0x2d7efa,'undos':_0x278517};}}return{'redos':[],'undos':[]};}}));}};tr=Y([J(0x0,_0x3465f0(_0x2320a1)),J(0x1,_0x3465f0(_0x85f95e)),J(0x2,_0x3465f0(_0xc538a1)),J(0x3,_0x3465f0(_0x1a451a))],tr);let nr=class extends _0x1e0fa2{constructor(_0x2fd696,_0x3329c4,_0x244be0,_0x59643d,_0x358101){const _0x26d9dd=_0x49d8a2;super(),this['_context']=_0x2fd696,this[_0x26d9dd(0x185)]=_0x3329c4,this[_0x26d9dd(0x159)]=_0x244be0,this['_contextService']=_0x59643d,this['_sheetsShapeService']=_0x358101,q(this,_0x26d9dd(0x124),null),this['_initEvents'](),this['_initSelection'](),this[_0x26d9dd(0x28c)]();}[_0x49d8a2(0x1d6)](){const _0x32b58d=_0x49d8a2;let {scene:_0x12f538}=this[_0x32b58d(0x12a)];this['disposeWithMe'](_0x12f538[_0x32b58d(0x31b)][_0x32b58d(0x19b)](_0x1214e9=>{const _0xebdca7=_0x32b58d;let {offsetX:_0x475872,offsetY:_0xff4328}=_0x1214e9,_0x44c632=_0x12f538[_0xebdca7(0x177)](_0x1d9584['FromArray']([_0x475872,_0xff4328]));if(_0x44c632 instanceof vn){if(_0x5d2a5e(this['_sheetsShapeService'][_0xebdca7(0x285)](_0x44c632[_0xebdca7(0x1b7)],_0x44c632[_0xebdca7(0x2b4)],_0x44c632['shapeId'])))return;this[_0xebdca7(0x185)][_0xebdca7(0x2f3)]({'visible':!0x0,'unitId':_0x44c632[_0xebdca7(0x1b7)],'subUnitId':_0x44c632[_0xebdca7(0x2b4)],'shapeId':_0x44c632[_0xebdca7(0x142)],'shapeKey':_0x44c632[_0xebdca7(0x163)]});}}));}['_initSelection'](){const _0x5cfc71=_0x49d8a2;this[_0x5cfc71(0x16d)](this[_0x5cfc71(0x159)][_0x5cfc71(0x139)]['subscribe'](_0x1e3da6=>{const _0x45370a=_0x5cfc71;if(_0x1e3da6[_0x45370a(0x289)]===0x1){let _0x9664a=_0x1e3da6[0x0],_0x22d218=this['_drawingManagerService'][_0x45370a(0x26a)](_0x9664a);if((_0x22d218==null?void 0x0:_0x22d218['drawingType'])===_0x336997['DRAWING_SHAPE']){let _0x1b2f7e=this[_0x45370a(0x185)][_0x45370a(0x25a)]();if((_0x1b2f7e==null?void 0x0:_0x1b2f7e[_0x45370a(0x142)])===_0x9664a[_0x45370a(0x20e)]&&_0x1b2f7e[_0x45370a(0x316)])return;_0x5d2a5e(this[_0x45370a(0x220)]['getShapeType'](_0x9664a[_0x45370a(0x1b7)],_0x9664a[_0x45370a(0x2b4)],_0x9664a[_0x45370a(0x20e)]))&&this[_0x45370a(0x185)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x45370a(0x25a)]()&&(this[_0x45370a(0x185)][_0x45370a(0x263)](!0x0),requestAnimationFrame(()=>{const _0x5635d4=_0x45370a;this[_0x5635d4(0x185)][_0x5635d4(0x2f3)](null);}));}else this[_0x45370a(0x185)][_0x45370a(0x25a)]()&&(this[_0x45370a(0x185)][_0x45370a(0x263)](!0x0),requestAnimationFrame(()=>{const _0x49817e=_0x45370a;this[_0x49817e(0x185)][_0x49817e(0x2f3)](null);}));})),this[_0x5cfc71(0x16d)](this['_drawingManagerService'][_0x5cfc71(0x2dc)][_0x5cfc71(0x212)](_0x4ba979=>{const _0x405e0f=_0x5cfc71;let _0x1f536b=this[_0x405e0f(0x185)][_0x405e0f(0x25a)]();_0x1f536b&&_0x4ba979[_0x405e0f(0x2ee)](_0x26db51=>_0x26db51[_0x405e0f(0x20e)]===_0x1f536b[_0x405e0f(0x142)])&&this[_0x405e0f(0x185)][_0x405e0f(0x2f3)](null);}));}[_0x49d8a2(0x28c)](){const _0x26d221=_0x49d8a2;this[_0x26d221(0x16d)](this[_0x26d221(0x185)][_0x26d221(0xfa)][_0x26d221(0x212)](_0x2cb3a8=>{const _0x2a2e07=_0x26d221;let {scene:_0x205a49}=this[_0x2a2e07(0x12a)];if(this[_0x2a2e07(0x124)]){let _0x25ec0d=_0x205a49[_0x2a2e07(0xda)](this[_0x2a2e07(0x124)]);_0x25ec0d&&_0x25ec0d[_0x2a2e07(0x2f3)](!0x1);}if(_0x2cb3a8){let _0x436f5a=!!_0x2cb3a8[_0x2a2e07(0x316)],_0x2343f5=_0x205a49['getObjectIncludeInGroup'](_0x2cb3a8[_0x2a2e07(0x103)]);_0x2343f5&&(_0x2343f5[_0x2a2e07(0x2f3)](_0x436f5a),this[_0x2a2e07(0x124)]=_0x2cb3a8[_0x2a2e07(0x103)]),this['_contextService'][_0x2a2e07(0x14f)](_0x7f228e,_0x436f5a);}else this[_0x2a2e07(0x124)]=null,this[_0x2a2e07(0x2e9)][_0x2a2e07(0x14f)](_0x7f228e,!0x1);}));}};nr=Y([J(0x1,_0x3465f0(Zn)),J(0x2,_0x5a9176),J(0x3,_0x2d429f),J(0x4,_0x3465f0(_0x1a451a))],nr);let rr=class extends _0x596e22{constructor(_0x5b6de9,_0x177bf4,_0x44d9c7,_0xce0296){super(_0x5b6de9,_0x177bf4,_0x44d9c7,_0xce0296,{'componentKey':En,'editorUnitId':Tn});}};rr=Y([J(0x1,_0x3465f0(_0x529093)),J(0x2,_0x3465f0(_0x16c1cd)),J(0x3,_0x3465f0(_0x3889b2))],rr);let ir=class extends _0x1e0fa2{constructor(_0x1ceb18,_0x4e55fb,_0x107fe7,_0x3961e7,_0x2c518e,_0x19316a){const _0x16b538=_0x49d8a2;super(),this[_0x16b538(0x2af)]=_0x1ceb18,this[_0x16b538(0x107)]=_0x4e55fb,this['_drawingManagerService']=_0x107fe7,this[_0x16b538(0x118)]=_0x3961e7,this[_0x16b538(0x21b)]=_0x2c518e,this[_0x16b538(0x31a)]=_0x19316a,q(this,_0x16b538(0x20d),new Set()),this[_0x16b538(0x2f6)]();}['_initialize'](){const _0x50d91d=_0x49d8a2;this['_drawingAddListener'](),this[_0x50d91d(0x160)](),this[_0x50d91d(0x324)]();}[_0x49d8a2(0x180)](){const _0x35b84f=_0x49d8a2;this[_0x35b84f(0x16d)](this[_0x35b84f(0x159)]['add$'][_0x35b84f(0x212)](_0x72c374=>{const _0x3ddf8f=_0x35b84f;this[_0x3ddf8f(0x150)](_0x72c374);}));}[_0x49d8a2(0x160)](){const _0x38fdd7=_0x49d8a2;this[_0x38fdd7(0x16d)](this[_0x38fdd7(0x2af)][_0x38fdd7(0x242)](_0x44c316=>{const _0x355c44=_0x38fdd7;if(_0x44c316['id']===_0x22295a['id']){let {unitId:_0x2c12f2,subUnitId:_0x1cf971,shapeId:_0x5f026e}=_0x44c316[_0x355c44(0x2ba)],_0x51fb82=this[_0x355c44(0x1c9)](_0x2c12f2),_0x5a1590=_0x24e648({'unitId':_0x2c12f2,'subUnitId':_0x1cf971,'drawingId':_0x5f026e}),_0x248665=_0x51fb82==null?void 0x0:_0x51fb82[_0x355c44(0x228)][_0x355c44(0xda)](_0x5a1590);_0x248665&&(this[_0x355c44(0x31a)][_0x355c44(0x153)](_0x248665),_0x248665[_0x355c44(0x165)](!0x0));return;}if(_0x44c316['id']===_0x47dbbc['id']){var _0x2f14be;let {unitId:_0x2a3d62,subUnitId:_0x40aea9,shapeId:_0x34b31c}=_0x44c316[_0x355c44(0x2ba)],_0xc618bc=this[_0x355c44(0x1c9)](_0x2a3d62);if(_0xc618bc==null)return;let {scene:_0x733d62}=_0xc618bc,_0x50dda7=_0x24e648({'unitId':_0x2a3d62,'subUnitId':_0x40aea9,'drawingId':_0x34b31c}),_0x59279c=_0x733d62[_0x355c44(0xda)](_0x50dda7);if(!((_0x2f14be=this['_renderManagerService'][_0x355c44(0x2c4)](_0x2a3d62))!=null&&_0x2f14be['with'](_0x4b5a3f)[_0x355c44(0x1a4)](_0x40aea9)))return!0x1;if(_0x59279c)return;this['_insertShapes']([{'unitId':_0x2a3d62,'subUnitId':_0x40aea9,'drawingId':_0x34b31c}]);}}));}[_0x49d8a2(0x324)](){const _0x220787=_0x49d8a2;this['disposeWithMe'](this['_drawingManagerService'][_0x220787(0x127)][_0x220787(0x212)](_0xebe672=>{const _0x1a61c8=_0x220787;_0xebe672[_0x1a61c8(0x111)](_0x4d4fca=>{const _0x394d44=_0x1a61c8;let {unitId:_0x15b528,subUnitId:_0x196a46,drawingId:_0x476f24}=_0x4d4fca,_0x2338bd=this[_0x394d44(0x159)]['getDrawingByParam'](_0x4d4fca);if(_0x2338bd==null)return;let {transform:_0x53169f,drawingType:_0x5dc258,srcRect:_0x1217e3,prstGeom:_0xb27090}=_0x2338bd;if(_0x5dc258!==_0x336997[_0x394d44(0x181)])return;let _0x128d25=this[_0x394d44(0x1c9)](_0x15b528);if(_0x128d25==null)return;let {scene:_0x16f417,transformer:_0x2e32aa}=_0x128d25;if(_0x53169f==null)return!0x0;let _0x235cce=_0x24e648({'unitId':_0x15b528,'subUnitId':_0x196a46,'drawingId':_0x476f24}),_0x1f30e1=_0x16f417[_0x394d44(0xda)](_0x235cce);if(_0x1f30e1==null)return!0x0;_0x1f30e1[_0x394d44(0x279)](_0x1217e3),_0x1f30e1[_0x394d44(0x2ca)](_0xb27090);});}));}['_insertShapes'](_0x1a5140){const _0x3d7182=_0x49d8a2;for(let _0x4f53c2 of _0x1a5140){var _0x3e59ed;let {unitId:_0x533d1e,subUnitId:_0x4c5721,drawingId:_0x3dc0ac}=_0x4f53c2,_0x5606a3=this['_getSceneAndTransformerByDrawingSearch'](_0x533d1e),_0x450b8a=(_0x3e59ed=_0x5b5b76(this[_0x3d7182(0x118)],_0x533d1e))==null?void 0x0:_0x3e59ed[_0x3d7182(0x2b4)];if(_0x5606a3==null||_0x450b8a!==_0x4c5721)return;let _0x3ceb03=_0x24e648({'unitId':_0x533d1e,'subUnitId':_0x4c5721,'drawingId':_0x3dc0ac});if(this[_0x3d7182(0x20d)][_0x3d7182(0x215)](_0x3ceb03)||_0x5606a3[_0x3d7182(0x228)][_0x3d7182(0xda)](_0x3ceb03)!=null)return;let _0x32f3c7=this[_0x3d7182(0x159)][_0x3d7182(0x26a)](_0x4f53c2);if(_0x32f3c7==null||_0x32f3c7['drawingType']!==_0x336997[_0x3d7182(0x181)])return;if(_0x5d2a5e((_0x32f3c7['data']||{})[_0x3d7182(0x2b2)])){let _0x284630=_0x32f3c7[_0x3d7182(0x166)];_0x284630&&(_0x32f3c7[_0x3d7182(0x166)]={..._0x284630,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x3d7182(0x20d)][_0x3d7182(0x120)](_0x3ceb03);try{this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x32f3c7,_0x5606a3[_0x3d7182(0x228)]);}finally{this[_0x3d7182(0x20d)][_0x3d7182(0x2a3)](_0x3ceb03);}queueMicrotask(()=>{const _0x4888dd=_0x3d7182;if(this[_0x4888dd(0x24c)])return;let _0x175a0b=_0x24e648(_0x4f53c2);if(!_0x5606a3['scene'][_0x4888dd(0xda)](_0x175a0b))return;let _0x513f57=this[_0x4888dd(0x159)]['getDrawingByParam'](_0x4f53c2);_0x513f57&&this[_0x4888dd(0x159)][_0x4888dd(0x2fd)]([_0x513f57]);});}}[_0x49d8a2(0x1c9)](_0x46c3c4){const _0x2e8e12=_0x49d8a2;if(_0x46c3c4==null)return;let _0x5e5257=this[_0x2e8e12(0x107)]['getRenderById'](_0x46c3c4),_0x4277c4=_0x5e5257==null?void 0x0:_0x5e5257['scene'];return _0x4277c4==null?null:{'scene':_0x4277c4,'transformer':_0x4277c4[_0x2e8e12(0x14b)]()};}};ir=Y([J(0x0,_0x3002c9),J(0x1,_0x2565d9),J(0x2,_0x5a9176),J(0x3,_0x2320a1),J(0x4,_0x3465f0(_0x4d04f3)),J(0x5,_0x3465f0(X))],ir);function _0x208c(_0x4fe8d9,_0x40ba78){_0x4fe8d9=_0x4fe8d9-0xd9;const _0x480688=_0x4806();let _0x208ca0=_0x480688[_0x4fe8d9];return _0x208ca0;}const ar={'normal':{'fill':_0x2bea1d['cxnPointFill'],'stroke':_0x2bea1d['cxnPointStroke'],'strokeWidth':_0x2bea1d[_0x49d8a2(0x2e5)]},'highlighted':{'fill':_0x49d8a2(0x1e3),'stroke':'#1a73e8','strokeWidth':0x2}};var or=class extends _0x176254{constructor(_0x3d732b,_0xde7c27){const _0x435980=_0x49d8a2;super(_0x3d732b,_0xde7c27),q(this,'_targetShapeId',''),q(this,_0x435980(0x2bb),-0x1),q(this,'_unitId',''),q(this,_0x435980(0x227),''),q(this,_0x435980(0x2f5),!0x1),_0xde7c27&&this[_0x435980(0x25e)](_0xde7c27);}['getConnectionInfo'](){const _0x4efe2e=_0x49d8a2;return{'unitId':this[_0x4efe2e(0x330)],'subUnitId':this[_0x4efe2e(0x227)],'shapeId':this[_0x4efe2e(0x30a)],'cxnIndex':this[_0x4efe2e(0x2bb)]};}['setHighlighted'](_0x46f819){const _0x50cfb7=_0x49d8a2;this['_isHighlighted']!==_0x46f819&&(this[_0x50cfb7(0x2f5)]=_0x46f819,this['makeDirty'](!0x0));}[_0x49d8a2(0x1ec)](){const _0x5448e3=_0x49d8a2;return this[_0x5448e3(0x2f5)];}[_0x49d8a2(0x25e)](_0x212a9e){const _0x5cb698=_0x49d8a2;var _0x49726c,_0x23bd8c;_0x212a9e[_0x5cb698(0x283)]!==void 0x0&&(this[_0x5cb698(0x30a)]=_0x212a9e[_0x5cb698(0x283)]),_0x212a9e['cxnIndex']!==void 0x0&&(this[_0x5cb698(0x2bb)]=_0x212a9e[_0x5cb698(0x217)]),_0x212a9e[_0x5cb698(0x1b7)]!==void 0x0&&(this[_0x5cb698(0x330)]=_0x212a9e[_0x5cb698(0x1b7)]),_0x212a9e['subUnitId']!==void 0x0&&(this[_0x5cb698(0x227)]=_0x212a9e[_0x5cb698(0x2b4)]),_0x212a9e[_0x5cb698(0x1ec)]!==void 0x0&&(this[_0x5cb698(0x2f5)]=_0x212a9e[_0x5cb698(0x1ec)]),this[_0x5cb698(0x112)]({'width':(_0x49726c=_0x212a9e[_0x5cb698(0x2b9)])==null?_0x2bea1d['cxnPointRadius']*0x2:_0x49726c,'height':(_0x23bd8c=_0x212a9e['height'])==null?_0x2bea1d[_0x5cb698(0x1eb)]*0x2:_0x23bd8c});}[_0x49d8a2(0x15e)](_0x84add3){const _0x196618=_0x49d8a2;let _0x1fc8cd=this[_0x196618(0x2f5)]?ar[_0x196618(0x1fe)]:ar[_0x196618(0x1f0)];_0x1578ae[_0x196618(0x1bf)](_0x84add3,{'radius':_0x2bea1d[_0x196618(0x1eb)],'fill':_0x1fc8cd[_0x196618(0x270)],'stroke':_0x1fc8cd[_0x196618(0x2dd)],'strokeWidth':_0x1fc8cd[_0x196618(0x276)],'evented':!0x0});}};let sr=class extends _0x1e0fa2{constructor(_0x15c481,_0x46cb2e,_0x530c98,_0x4bf09c){const _0x5d6328=_0x49d8a2;super(),this[_0x5d6328(0x12a)]=_0x15c481,this['_renderManagerService']=_0x46cb2e,this[_0x5d6328(0x159)]=_0x530c98,this[_0x5d6328(0x220)]=_0x4bf09c,q(this,_0x5d6328(0x167),[]),q(this,'_activeTargetShapeId',null),q(this,'_highlightedSiteIndex',-0x1),q(this,_0x5d6328(0x14d),null),q(this,'_unitId',''),q(this,_0x5d6328(0x227),''),q(this,_0x5d6328(0x2d7),null);}['startConnectionDetection'](_0x59a571,_0x211fef,_0x2c1bf1,_0x385795){const _0x596892=_0x49d8a2;this[_0x596892(0x14d)]=_0x59a571,this[_0x596892(0x330)]=_0x211fef,this['_subUnitId']=_0x2c1bf1,this['_draggingConnectorId']=_0x385795;}[_0x49d8a2(0x14a)](_0x4ce87c){const _0x1156d6=_0x49d8a2;if(!this['_currentScene'])return null;let _0x562364=this[_0x1156d6(0x2bd)](_0x4ce87c);return _0x562364?(this[_0x1156d6(0x1ad)]!==_0x562364[_0x1156d6(0x142)]&&(this[_0x1156d6(0x311)](),this[_0x1156d6(0xff)](_0x562364[_0x1156d6(0x142)],_0x562364[_0x1156d6(0x11d)]),this[_0x1156d6(0x1ad)]=_0x562364[_0x1156d6(0x142)]),this[_0x1156d6(0x32d)](_0x4ce87c)):(this[_0x1156d6(0x1ad)]!==null&&(this[_0x1156d6(0x311)](),this[_0x1156d6(0x1ad)]=null),null);}['endConnectionDetection'](){const _0x29070d=_0x49d8a2;this[_0x29070d(0x311)](),this[_0x29070d(0x14d)]=null,this[_0x29070d(0x1ad)]=null,this[_0x29070d(0x2aa)]=-0x1,this[_0x29070d(0x2d7)]=null;}[_0x49d8a2(0x1b4)](){const _0x39a936=_0x49d8a2;return this['_activeTargetShapeId']===null||this[_0x39a936(0x2aa)]<0x0?null:{'shapeId':this[_0x39a936(0x1ad)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x49d8a2(0x2bd)](_0x1adbaf){const _0x4666fa=_0x49d8a2;let _0x5eb57b=this[_0x4666fa(0x159)][_0x4666fa(0x233)](this[_0x4666fa(0x330)],this[_0x4666fa(0x227)]);for(let _0x8399a0 of Object[_0x4666fa(0x2c1)](_0x5eb57b)){if(_0x8399a0===this[_0x4666fa(0x2d7)]||_0x5eb57b[_0x8399a0][_0x4666fa(0x12e)]!==_0x336997[_0x4666fa(0x181)])continue;let _0x194973=this['_sheetsShapeService'][_0x4666fa(0x296)](this[_0x4666fa(0x330)],this['_subUnitId'],_0x8399a0);if(!_0x194973||_0x5d2a5e(_0x194973[_0x4666fa(0x285)]())||_0x194973[_0x4666fa(0x198)]()[_0x4666fa(0x289)]===0x0||!this[_0x4666fa(0x14d)])continue;let _0x5152da=_0x24e648({'unitId':this[_0x4666fa(0x330)],'subUnitId':this['_subUnitId'],'drawingId':_0x8399a0}),_0x37c545=this['_currentScene'][_0x4666fa(0xda)](_0x5152da);if(!_0x37c545)continue;let {left:_0x304b60,top:_0x25b1fd,width:_0x7ea0be,height:_0x45f99b}=_0x37c545[_0x4666fa(0x23d)](),_0x21e3e1=_0x304b60+_0x7ea0be/0x2,_0x2c5eb0=_0x25b1fd+_0x45f99b/0x2,_0x2602d8=_0x37c545[_0x4666fa(0x166)][_0x4666fa(0x1d8)](),_0x1010d6=new _0x3a4198([_0x2602d8[0x0],_0x2602d8[0x1],_0x2602d8[0x2],_0x2602d8[0x3],_0x21e3e1,_0x2c5eb0]),_0x2d6516=_0x37c545[_0x4666fa(0x2bf)](),_0x5c5849=(_0x37c545['isInGroup']&&(_0x2d6516==null?void 0x0:_0x2d6516[_0x4666fa(0x2e7)])===_0x18ef31[_0x4666fa(0x237)]?_0x2d6516['ancestorTransform'][_0x4666fa(0x1be)](_0x1010d6):_0x1010d6)[_0x4666fa(0x2e4)]()[_0x4666fa(0x305)](_0x1adbaf),_0x409467=_0x7ea0be/0x2,_0x31ddd0=_0x45f99b/0x2;if(_0x5c5849['x']>=-_0x409467-0x5&&_0x5c5849['x']<=_0x409467+0x5&&_0x5c5849['y']>=-_0x31ddd0-0x5&&_0x5c5849['y']<=_0x31ddd0+0x5)return{'shapeId':_0x8399a0,'shapeModel':_0x194973};}return null;}[_0x49d8a2(0xff)](_0x3215fe,_0x9dc25){const _0x144207=_0x49d8a2;if(!this['_currentScene'])return;let _0x26c902=_0x24e648({'unitId':this[_0x144207(0x330)],'subUnitId':this['_subUnitId'],'drawingId':_0x3215fe}),_0x1a0614=this[_0x144207(0x14d)]['getObjectIncludeInGroup'](_0x26c902);if(!_0x1a0614)return;let {left:_0xda7bea,top:_0x1d4cb6,width:_0x383b31,height:_0x38f99d}=_0x1a0614[_0x144207(0x23d)](),_0x45f1a3=_0xda7bea+_0x383b31/0x2,_0x26f03a=_0x1d4cb6+_0x38f99d/0x2,_0x224bcf=_0x1a0614[_0x144207(0x166)][_0x144207(0x1d8)](),_0x4970b0=new _0x3a4198([_0x224bcf[0x0],_0x224bcf[0x1],_0x224bcf[0x2],_0x224bcf[0x3],_0x45f1a3,_0x26f03a]),_0x1a919a=_0x1a0614[_0x144207(0x2bf)](),_0x13b9b4=_0x1a0614[_0x144207(0x234)]&&(_0x1a919a==null?void 0x0:_0x1a919a[_0x144207(0x2e7)])===_0x18ef31[_0x144207(0x237)]?_0x1a919a[_0x144207(0x22a)]['multiply'](_0x4970b0):_0x4970b0;_0x9dc25[_0x144207(0x314)]({'width':_0x383b31,'height':_0x38f99d});let _0x3ed7fb=_0x9dc25[_0x144207(0x198)]();for(let _0x428104 of _0x3ed7fb){let _0x255868=_0x428104['x']-_0x383b31/0x2,_0x526979=_0x428104['y']-_0x38f99d/0x2,_0x2b38c9=_0x13b9b4[_0x144207(0x305)]({'x':_0x255868,'y':_0x526979}),_0xbb3c80=_0x2b38c9['x'],_0x5c1a00=_0x2b38c9['y'],_0xc70b5d=new or(_0x144207(0x309)+_0x3215fe+'-'+_0x428104[_0x144207(0x2d2)],{'left':_0xbb3c80-_0x2bea1d['cxnPointRadius'],'top':_0x5c1a00-_0x2bea1d['cxnPointRadius'],'targetShapeId':_0x3215fe,'cxnIndex':_0x428104[_0x144207(0x2d2)],'unitId':this[_0x144207(0x330)],'subUnitId':this[_0x144207(0x227)],'width':_0x2bea1d['cxnPointRadius']*0x2,'height':_0x2bea1d[_0x144207(0x1eb)]*0x2,'zIndex':_0x529f4c+0x2,'evented':!0x1});this[_0x144207(0x167)][_0x144207(0x214)](_0xc70b5d),this[_0x144207(0x14d)][_0x144207(0x1c7)](_0xc70b5d,_0x529f4c+0x2);}}[_0x49d8a2(0x32d)](_0x2d1b33){const _0xa9c6d1=_0x49d8a2;let _0x8f6036=null,_0x496ecc=0x1/0x0,_0x172d7d=null;for(let _0x4fa693 of this[_0xa9c6d1(0x167)]){let _0x2a7601=_0x4fa693[_0xa9c6d1(0x26f)]+_0x2bea1d['cxnPointRadius'],_0x5dd769=_0x4fa693[_0xa9c6d1(0x25d)]+_0x2bea1d[_0xa9c6d1(0x1eb)],_0x4cdf21=_0x2d1b33['x']-_0x2a7601,_0x539e84=_0x2d1b33['y']-_0x5dd769,_0xe3d2c8=Math[_0xa9c6d1(0x2da)](_0x4cdf21*_0x4cdf21+_0x539e84*_0x539e84);_0xe3d2c8<_0x496ecc&&(_0x496ecc=_0xe3d2c8,_0x8f6036=_0x4fa693,_0x172d7d={'x':_0x2a7601,'y':_0x5dd769});}let _0x39b69d=_0x496ecc<=0xa&&_0x8f6036?_0x8f6036[_0xa9c6d1(0x28e)]()[_0xa9c6d1(0x217)]:-0x1;if(_0x39b69d!==this[_0xa9c6d1(0x2aa)]){for(let _0x577fe1 of this[_0xa9c6d1(0x167)]){let _0x48950e=_0x577fe1[_0xa9c6d1(0x28e)]();_0x577fe1['setHighlighted'](_0x48950e[_0xa9c6d1(0x217)]===_0x39b69d);}this[_0xa9c6d1(0x2aa)]=_0x39b69d;}if(_0x496ecc<=0xa&&_0x8f6036&&_0x172d7d){let _0x11a42a=_0x8f6036[_0xa9c6d1(0x28e)](),_0x44a185=this['_getConnectionSiteAngle'](_0x11a42a[_0xa9c6d1(0x142)],_0x11a42a[_0xa9c6d1(0x217)]);return{'shapeId':_0x11a42a[_0xa9c6d1(0x142)],'cxnIndex':_0x11a42a['cxnIndex'],'unitId':_0x11a42a['unitId'],'subUnitId':_0x11a42a[_0xa9c6d1(0x2b4)],'worldPoint':_0x172d7d,'angle':_0x44a185};}return null;}[_0x49d8a2(0x321)](_0x5087b2,_0x354fbe){const _0x45ede7=_0x49d8a2;let _0x3a2a84=this['_sheetsShapeService'][_0x45ede7(0x296)](this[_0x45ede7(0x330)],this['_subUnitId'],_0x5087b2);if(!_0x3a2a84)return 0x0;let _0x12fb54=this[_0x45ede7(0x159)][_0x45ede7(0x26a)]({'unitId':this['_unitId'],'subUnitId':this[_0x45ede7(0x227)],'drawingId':_0x5087b2});if(!(_0x12fb54!=null&&_0x12fb54[_0x45ede7(0x166)]))return 0x0;let {width:_0x260dd4=0x0,height:_0x4824e7=0x0,flipX:_0x12b818=!0x1,flipY:_0x3e326c=!0x1}=_0x12fb54[_0x45ede7(0x166)];_0x3a2a84[_0x45ede7(0x314)]({'width':_0x260dd4,'height':_0x4824e7});let _0x48a215=_0x3a2a84[_0x45ede7(0x198)]()[_0x45ede7(0x138)](_0x504b5c=>_0x504b5c[_0x45ede7(0x2d2)]===_0x354fbe);if(!_0x48a215)return 0x0;let _0x2271c9=_0x48a215[_0x45ede7(0x2db)]/0xea60;return _0x12b818&&(_0x2271c9=0xb4-_0x2271c9),_0x3e326c&&(_0x2271c9=-_0x2271c9),_0x2271c9=(_0x2271c9%0x168+0x168)%0x168,_0x2271c9;}[_0x49d8a2(0x311)](){const _0x4ee84d=_0x49d8a2;for(let _0x4aac9d of this[_0x4ee84d(0x167)])_0x4aac9d[_0x4ee84d(0x2b0)]();this[_0x4ee84d(0x167)]=[],this[_0x4ee84d(0x2aa)]=-0x1;}[_0x49d8a2(0x2b0)](){const _0x360524=_0x49d8a2;this[_0x360524(0x311)](),super[_0x360524(0x2b0)]();}};sr=Y([J(0x1,_0x3465f0(_0x2565d9)),J(0x2,_0x3465f0(_0x5a9176)),J(0x3,_0x3465f0(_0x1a451a))],sr);let cr=class extends _0x1e0fa2{constructor(_0x3c362b,_0x561ba9,_0x37967a,_0xe41ab5,_0x400500){const _0x327251=_0x49d8a2;super(),this['_sheetSkeletonService']=_0x3c362b,this[_0x327251(0xf8)]=_0x561ba9,this[_0x327251(0x334)]=_0x37967a,this[_0x327251(0x2b6)]=_0xe41ab5,this['_groupCopyPasteController']=_0x400500,q(this,_0x327251(0x2d9),void 0x0),this[_0x327251(0x329)](),this['_registerGroupFeaturePasteHook']();}get[_0x49d8a2(0x2a9)](){const _0x3eee63=_0x49d8a2;return this[_0x3eee63(0x334)]['getFocusDrawings']();}[_0x49d8a2(0x19c)](){const _0x421f36=_0x49d8a2;this[_0x421f36(0x131)][_0x421f36(0x32b)](({fromUnitId:_0x26070b,fromSubUnitId:_0x2317aa,toUnitId:_0x52efd5,toSubUnitId:_0x4fd6a7,idMap:_0x5c1fd3})=>{const _0x35314a=_0x421f36;let _0x53f6fc=[],_0x4c91db=[];for(let [_0xcd7ff4,_0x522ddc]of _0x5c1fd3[_0x35314a(0x13c)]()){let _0x5198ce=this[_0x35314a(0x2b6)]['getShapeModel'](_0x26070b,_0x2317aa,_0xcd7ff4);if(!_0x5198ce)continue;let _0x484586=_0x5198ce[_0x35314a(0x285)](),_0x421c91=JSON[_0x35314a(0x230)](JSON['stringify'](_0x5198ce['getShapeData']()));if(_0x421c91[_0x35314a(0x2e6)]){var _0x4a1390,_0x1051fc;let _0x49d5bd=(_0x4a1390=_0x421c91[_0x35314a(0x2e6)][_0x35314a(0x2d3)])==null?void 0x0:_0x4a1390[_0x35314a(0x142)],_0x583d09=(_0x1051fc=_0x421c91[_0x35314a(0x2e6)]['to'])==null?void 0x0:_0x1051fc[_0x35314a(0x142)],_0x1c1892=_0x49d5bd?_0x5c1fd3[_0x35314a(0x215)](_0x49d5bd):!0x0,_0x300afb=_0x583d09?_0x5c1fd3[_0x35314a(0x215)](_0x583d09):!0x0;_0x1c1892&&_0x49d5bd&&_0x421c91['relation']['from']?_0x421c91['relation'][_0x35314a(0x2d3)]={..._0x421c91[_0x35314a(0x2e6)][_0x35314a(0x2d3)],'shapeId':_0x5c1fd3['get'](_0x49d5bd)}:_0x421c91['relation']['from']=void 0x0,_0x300afb&&_0x583d09&&_0x421c91[_0x35314a(0x2e6)]['to']?_0x421c91[_0x35314a(0x2e6)]['to']={..._0x421c91['relation']['to'],'shapeId':_0x5c1fd3[_0x35314a(0x1bc)](_0x583d09)}:_0x421c91[_0x35314a(0x2e6)]['to']=void 0x0;}_0x53f6fc[_0x35314a(0x214)]({'id':_0x47dbbc['id'],'params':{'unitId':_0x52efd5,'subUnitId':_0x4fd6a7,'shapeId':_0x522ddc,'shapeType':_0x484586,'shapeData':_0x421c91}}),_0x4c91db['push']({'id':_0x32e37c['id'],'params':{'unitId':_0x52efd5,'subUnitId':_0x4fd6a7,'shapeId':_0x522ddc}});}return{'redos':_0x53f6fc,'undos':_0x4c91db};});}[_0x49d8a2(0x329)](){const _0x419195=_0x49d8a2;this[_0x419195(0x16d)](this['_sheetClipboardService'][_0x419195(0x2b8)]({'id':_0x419195(0xee),'onBeforeCopy':(_0x9a602f,_0xd2d914,_0x2fc935,_0xe3cabe)=>{const _0x2ab492=_0x419195;this[_0x2ab492(0x2d9)]=null;let _0x112d41=this[_0x2ab492(0x2a9)];if(_0x112d41['length']){let _0x4beb3e=_0x112d41[_0x2ab492(0x1da)](_0xc45f5=>_0xc45f5[_0x2ab492(0x12e)]===_0x336997[_0x2ab492(0x181)]);if(_0x4beb3e[_0x2ab492(0x289)]===0x0)return;this['_copyInfo']={'unitId':_0x9a602f,'subUnitId':_0xd2d914,'copyType':_0xe3cabe,'drawings':_0x4beb3e};}else this[_0x2ab492(0x21e)](_0x9a602f,_0xd2d914,_0x2fc935,_0xe3cabe);},'onPasteCells':(_0x4d5306,_0x585f25,_0x51cb48,_0x43f2ec)=>{const _0x5e2bb5=_0x419195;if(!this[_0x5e2bb5(0x2d9)])return{'redos':[],'undos':[]};let {pasteType:_0xd4baaf}=_0x43f2ec;return _0xd4baaf===_0x951401[_0x5e2bb5(0x282)]?this[_0x5e2bb5(0x2bc)](_0x585f25,this[_0x5e2bb5(0x2d9)][_0x5e2bb5(0x2d0)]===_0x4538e3[_0x5e2bb5(0x335)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0xfd5b62=>this['_copyInfo']?this[_0x419195(0x2bc)](_0xfd5b62,this[_0x419195(0x2d9)][_0x419195(0x2d0)]===_0x4538e3[_0x419195(0x335)]):{'redos':[],'undos':[]}}));}[_0x49d8a2(0x21e)](_0x2ac6ab,_0x45a2f9,_0x396806,_0x14e9cf){const _0x5b4064=_0x49d8a2;let _0x2c22e1=this[_0x5b4064(0xf2)]['getSkeleton'](_0x2ac6ab,_0x45a2f9);if(!_0x2c22e1)return;let _0x26b694=_0x37168f(_0x2c22e1,_0x396806);if(!_0x26b694)return;let {startX:_0x5b07e3,endX:_0x294e4b,startY:_0x3182b4,endY:_0xe7f2e9}=_0x26b694,_0x36272e=this[_0x5b4064(0x334)][_0x5b4064(0x233)](_0x2ac6ab,_0x45a2f9),_0x24f70f=this[_0x5b4064(0x2a9)]['slice']();for(let [_0x13731f,_0x579171]of Object[_0x5b4064(0x13c)](_0x36272e)){if(_0x579171[_0x5b4064(0x12e)]!==_0x336997['DRAWING_SHAPE'])continue;let {transform:_0x275598}=_0x579171;if(!_0x275598)continue;let {left:_0x50175d=0x0,top:_0x28eb13=0x0,width:_0x1f3457=0x0,height:_0x50e56e=0x0}=_0x275598;_0x5b07e3<=_0x50175d&&_0x294e4b>=_0x50175d+_0x1f3457&&_0x3182b4<=_0x28eb13&&_0xe7f2e9>=_0x28eb13+_0x50e56e&&_0x24f70f['push'](_0x579171);}_0x24f70f[_0x5b4064(0x289)]>0x0&&(this['_copyInfo']={'unitId':_0x2ac6ab,'subUnitId':_0x45a2f9,'copyType':_0x14e9cf,'copyRange':_0x396806,'drawings':_0x24f70f});}[_0x49d8a2(0x2bc)](_0xb9657d,_0x3dc20e){const _0x3eec43=_0x49d8a2;let {unitId:_0x3663e8,subUnitId:_0x406901,range:_0xda15ec}=_0xb9657d,_0x4d42d1=this[_0x3eec43(0xf2)][_0x3eec43(0x1a4)](_0x3663e8,_0x406901);if(!_0x4d42d1)return{'redos':[],'undos':[]};let _0x103fdd=_0x44b7b4(_0xda15ec),{unitId:_0x5db41c,subUnitId:_0x50fca2,copyRange:_0x2301cc,drawings:_0x40afd2}=this['_copyInfo'],_0x47cff1=this[_0x3eec43(0xf2)][_0x3eec43(0x1a4)](_0x5db41c,_0x50fca2);if(!_0x47cff1)return{'redos':[],'undos':[]};let _0x5eb93f;if(!_0x2301cc){let _0x1c4619=0x1/0x0,_0xf54a7f=0x1/0x0;for(let _0x5168d4 of _0x40afd2){var _0x23eedb;let {left:_0xd41d74=0x0,top:_0x2c3537=0x0}=(_0x23eedb=_0x5168d4[_0x3eec43(0x166)])==null?{}:_0x23eedb;_0xd41d74<_0x1c4619&&(_0x1c4619=_0xd41d74),_0x2c3537<_0xf54a7f&&(_0xf54a7f=_0x2c3537);}_0x1c4619!==0x1/0x0&&_0xf54a7f!==0x1/0x0&&(_0x5eb93f={'left':_0x1c4619,'top':_0xf54a7f});}let _0x1cbf24=new Map();if(!_0x3dc20e){for(let _0x5642bc of _0x40afd2)_0x1cbf24[_0x3eec43(0x20a)](_0x5642bc[_0x3eec43(0x20e)],_0x3893c7());}let _0x13a7ad=[],_0x75cf73=[];for(let _0x6e064d of _0x40afd2){let {drawingId:_0x1e9b60,transform:_0x43004e,sheetTransform:_0x42ce91}=_0x6e064d;if(!_0x43004e||!_0x42ce91)continue;let _0x55da36=this[_0x3eec43(0x179)]({'transform':_0x43004e,'sheetTransform':_0x42ce91},{'skeleton':_0x47cff1,'range':_0x2301cc},{'skeleton':_0x4d42d1,'range':_0x103fdd},_0x5eb93f);if(_0x3dc20e){let {redos:_0x1b434b,undos:_0xb9f57c}=this[_0x3eec43(0x188)]({'fromUnitId':_0x5db41c,'fromSubUnitId':_0x50fca2,'toUnitId':_0x3663e8,'toSubUnitId':_0x406901,'drawing':_0x6e064d,'newTransforms':_0x55da36});_0x13a7ad['push'](..._0x1b434b),_0x75cf73[_0x3eec43(0x214)](..._0xb9f57c);continue;}let {redos:_0x1b20aa,undos:_0x1cbdac}=this[_0x3eec43(0x1f4)]({'toUnitId':_0x3663e8,'toSubUnitId':_0x406901,'drawing':_0x6e064d,'newTransforms':_0x55da36,'newDrawingId':_0x1cbf24[_0x3eec43(0x1bc)](_0x1e9b60),'idMap':_0x1cbf24});_0x13a7ad[_0x3eec43(0x214)](..._0x1b20aa),_0x75cf73[_0x3eec43(0x214)](..._0x1cbdac);}return{'redos':_0x13a7ad,'undos':_0x75cf73};}['_generateCutPasteMutations'](_0x538e2d){const _0x4ad12e=_0x49d8a2;let {fromUnitId:_0x2af024,fromSubUnitId:_0x4e4d0b,toUnitId:_0x30addc,toSubUnitId:_0x5d6221,drawing:_0x3159b9,newTransforms:_0x25d993}=_0x538e2d,_0x1579c8={..._0x3159b9,'unitId':_0x30addc,'subUnitId':_0x5d6221,'transform':_0x25d993[_0x4ad12e(0x166)],'sheetTransform':_0x25d993[_0x4ad12e(0x265)]};if(_0x30addc===_0x2af024&&_0x5d6221===_0x4e4d0b){let {redo:_0x328393,undo:_0x1dfdab,objects:_0x580970}=this['_sheetDrawingService']['getBatchUpdateOp']([_0x1579c8]);return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af[_0x4ad12e(0x210)],'op':_0x328393,'objects':_0x580970}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['UPDATE'],'op':_0x1dfdab,'objects':_0x580970}}]};}else{let _0x4476af=this[_0x4ad12e(0x334)][_0x4ad12e(0x1a9)]([_0x3159b9]),_0x4d8b1c=this['_sheetDrawingService'][_0x4ad12e(0x20b)]([_0x1579c8]),_0x32425a=this[_0x4ad12e(0x2b6)][_0x4ad12e(0x296)](_0x3159b9[_0x4ad12e(0x1b7)],_0x3159b9[_0x4ad12e(0x2b4)],_0x3159b9[_0x4ad12e(0x20e)]);if(!_0x32425a)return{'redos':[],'undos':[]};let _0x5c210d=_0x32425a[_0x4ad12e(0x285)](),_0x3885a6=JSON[_0x4ad12e(0x230)](JSON['stringify'](_0x32425a[_0x4ad12e(0x205)]()));return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'type':_0x20e0af['REMOVE'],'op':_0x4476af[_0x4ad12e(0x30c)],'objects':_0x4476af['objects']}},{'id':_0x32e37c['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'shapeId':_0x3159b9['drawingId']}},{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['INSERT'],'op':_0x4d8b1c[_0x4ad12e(0x30c)],'objects':_0x4d8b1c[_0x4ad12e(0x295)]}},{'id':_0x47dbbc['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'shapeId':_0x3159b9[_0x4ad12e(0x20e)],'shapeType':_0x5c210d,'shapeData':_0x3885a6}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'type':_0x20e0af[_0x4ad12e(0x337)],'op':_0x4476af[_0x4ad12e(0x1f3)],'objects':_0x4476af[_0x4ad12e(0x295)]}},{'id':_0x47dbbc['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'shapeId':_0x3159b9[_0x4ad12e(0x20e)],'shapeType':_0x5c210d,'shapeData':_0x3885a6}},{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['REMOVE'],'op':_0x4d8b1c[_0x4ad12e(0x1f3)],'objects':_0x4d8b1c[_0x4ad12e(0x295)]}},{'id':_0x32e37c['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'shapeId':_0x3159b9[_0x4ad12e(0x20e)]}}]};}}[_0x49d8a2(0x1f4)](_0x10ed6c){const _0x2d34ef=_0x49d8a2;let {toUnitId:_0xb2185a,toSubUnitId:_0x1cd72a,drawing:_0x350ec5,newTransforms:_0x3af7ae,newDrawingId:_0x582077,idMap:_0x34235c}=_0x10ed6c,_0x57d848={..._0x350ec5,'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'drawingId':_0x582077,'transform':_0x3af7ae[_0x2d34ef(0x166)],'sheetTransform':_0x3af7ae[_0x2d34ef(0x265)]},{redo:_0x355e64,undo:_0x54b62b,objects:_0x4ade7d}=this['_sheetDrawingService']['getBatchAddOp']([_0x57d848]),_0x12dd9a=this[_0x2d34ef(0x2b6)]['getShapeModel'](_0x350ec5[_0x2d34ef(0x1b7)],_0x350ec5[_0x2d34ef(0x2b4)],_0x350ec5[_0x2d34ef(0x20e)]);if(!_0x12dd9a)return{'redos':[],'undos':[]};let _0x45dc8d=_0x12dd9a[_0x2d34ef(0x285)](),_0x4a6ef9=JSON[_0x2d34ef(0x230)](JSON[_0x2d34ef(0x266)](_0x12dd9a['getShapeData']()));if(_0x4a6ef9[_0x2d34ef(0x2e6)]){var _0x2cc814,_0x11718a;let _0x2c5789=(_0x2cc814=_0x4a6ef9[_0x2d34ef(0x2e6)][_0x2d34ef(0x2d3)])==null?void 0x0:_0x2cc814[_0x2d34ef(0x142)],_0x460045=(_0x11718a=_0x4a6ef9[_0x2d34ef(0x2e6)]['to'])==null?void 0x0:_0x11718a[_0x2d34ef(0x142)],_0x3c1bb1=_0x2c5789?_0x34235c['has'](_0x2c5789):!0x0,_0xbe89f6=_0x460045?_0x34235c[_0x2d34ef(0x215)](_0x460045):!0x0;_0x3c1bb1&&_0x2c5789&&_0x4a6ef9['relation'][_0x2d34ef(0x2d3)]?_0x4a6ef9[_0x2d34ef(0x2e6)]['from']={..._0x4a6ef9[_0x2d34ef(0x2e6)][_0x2d34ef(0x2d3)],'shapeId':_0x34235c[_0x2d34ef(0x1bc)](_0x2c5789)}:_0x4a6ef9['relation'][_0x2d34ef(0x2d3)]=void 0x0,_0xbe89f6&&_0x460045&&_0x4a6ef9[_0x2d34ef(0x2e6)]['to']?_0x4a6ef9['relation']['to']={..._0x4a6ef9[_0x2d34ef(0x2e6)]['to'],'shapeId':_0x34235c[_0x2d34ef(0x1bc)](_0x460045)}:_0x4a6ef9['relation']['to']=void 0x0;}return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'type':_0x20e0af['INSERT'],'op':_0x355e64,'objects':_0x4ade7d}},{'id':_0x47dbbc['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'shapeId':_0x582077,'shapeType':_0x45dc8d,'shapeData':_0x4a6ef9}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'type':_0x20e0af[_0x2d34ef(0xfb)],'op':_0x54b62b,'objects':_0x4ade7d}},{'id':_0x32e37c['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'shapeId':_0x582077}}]};}[_0x49d8a2(0x179)](_0x2bb2d7,_0x208dfb,_0x2338d2,_0x4a17ab){const _0x39e7c8=_0x49d8a2;var _0x28b437;let {range:_0x2da639,skeleton:_0x20d5e4}=_0x208dfb,{range:_0x502703,skeleton:_0x1f3586}=_0x2338d2,{transform:_0x1dd080,sheetTransform:_0x1db4bc}=_0x2bb2d7,_0x3c2515={..._0x1dd080};if(_0x2da639){let _0x1dbd71=_0x37168f(_0x20d5e4,_0x2da639),_0x3e0c8b=_0x37168f(_0x1f3586,_0x502703);if(_0x1dbd71&&_0x3e0c8b){var _0x346078,_0x4d93d4;let _0x702c8c=_0x3e0c8b['startX']-_0x1dbd71[_0x39e7c8(0x1f5)],_0x48e629=_0x3e0c8b['startY']-_0x1dbd71[_0x39e7c8(0x331)];_0x3c2515[_0x39e7c8(0x26f)]=((_0x346078=_0x3c2515[_0x39e7c8(0x26f)])==null?0x0:_0x346078)+_0x702c8c,_0x3c2515[_0x39e7c8(0x25d)]=((_0x4d93d4=_0x3c2515[_0x39e7c8(0x25d)])==null?0x0:_0x4d93d4)+_0x48e629;}}else{let _0x106544=_0x37168f(_0x1f3586,_0x502703);if(_0x4a17ab&&_0x106544){var _0xe76567,_0x34cc2b;let _0x118689=((_0xe76567=_0x3c2515[_0x39e7c8(0x26f)])==null?0x0:_0xe76567)-_0x4a17ab[_0x39e7c8(0x26f)],_0x2f9c73=((_0x34cc2b=_0x3c2515[_0x39e7c8(0x25d)])==null?0x0:_0x34cc2b)-_0x4a17ab['top'];_0x3c2515[_0x39e7c8(0x26f)]=_0x106544[_0x39e7c8(0x1f5)]+_0x118689,_0x3c2515[_0x39e7c8(0x25d)]=_0x106544['startY']+_0x2f9c73;}else _0x3c2515['left']=_0x106544==null?void 0x0:_0x106544[_0x39e7c8(0x1f5)],_0x3c2515[_0x39e7c8(0x25d)]=_0x106544==null?void 0x0:_0x106544[_0x39e7c8(0x331)];}return{'transform':_0x3c2515,'sheetTransform':(_0x28b437=_0x4ee577(_0x3c2515,_0x1f3586))==null?_0x1db4bc:_0x28b437};}};cr=Y([J(0x0,_0x3465f0(_0x834a52)),J(0x1,_0x3465f0(_0x4d0a59)),J(0x2,_0x3465f0(_0xc538a1)),J(0x3,_0x3465f0(_0x1a451a)),J(0x4,_0x3465f0(_0x407497))],cr);var lr=class extends _0x176254{constructor(_0x16fceb,_0x1e077b){const _0x5bb3a9=_0x49d8a2;super(_0x16fceb,_0x1e077b),q(this,_0x5bb3a9(0x1d0),null),q(this,_0x5bb3a9(0x2c3),null),q(this,_0x5bb3a9(0x330),null),q(this,_0x5bb3a9(0x227),null),q(this,_0x5bb3a9(0x16b),!0x1),_0x1e077b&&this['setShapeProps'](_0x1e077b);}['getDrawingSearch'](){const _0x50dc02=_0x49d8a2;return{'unitId':this[_0x50dc02(0x330)],'subUnitId':this[_0x50dc02(0x227)],'drawingId':this[_0x50dc02(0x1d0)]};}[_0x49d8a2(0x25e)](_0x273494){const _0x219220=_0x49d8a2;_0x273494[_0x219220(0x142)]!==void 0x0&&(this[_0x219220(0x1d0)]=_0x273494['shapeId']),_0x273494[_0x219220(0x1b7)]!==void 0x0&&(this[_0x219220(0x330)]=_0x273494['unitId']),_0x273494[_0x219220(0x2b4)]!==void 0x0&&(this[_0x219220(0x227)]=_0x273494[_0x219220(0x2b4)]),_0x273494[_0x219220(0x247)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x273494[_0x219220(0x247)]),this['transformByState']({'width':_0x273494[_0x219220(0x2b9)],'height':_0x273494[_0x219220(0x232)]});}[_0x49d8a2(0x15e)](_0x4a95a4){const _0x212cc8=_0x49d8a2;_0x1578ae['drawWith'](_0x4a95a4,{'radius':_0x2bea1d[_0x212cc8(0x1eb)],'fill':_0x2bea1d[_0x212cc8(0x222)],'stroke':_0x2bea1d[_0x212cc8(0x109)],'strokeWidth':_0x2bea1d['cxnPointStrokeWidth'],'evented':!0x0});}};let ur=class extends _0x1e0fa2{constructor(_0x1d334a,_0x2f10ca,_0x4ed22d,_0x463b63,_0x5ba0a1,_0x16924e,_0x5d5b1a,_0x26c83a){const _0x6a3796=_0x49d8a2;super(),this[_0x6a3796(0x12a)]=_0x1d334a,this['_commandService']=_0x2f10ca,this[_0x6a3796(0x107)]=_0x4ed22d,this['_drawingManagerService']=_0x463b63,this['_univerInstanceService']=_0x5ba0a1,this[_0x6a3796(0x220)]=_0x16924e,this[_0x6a3796(0x26e)]=_0x5d5b1a,this[_0x6a3796(0x17d)]=_0x26c83a,q(this,_0x6a3796(0x288),void 0x0),q(this,_0x6a3796(0x330),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x6a3796(0x272),[]),q(this,_0x6a3796(0x1f8),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x6a3796(0x1db),void 0x0),q(this,'_isConnecting',!0x1),q(this,_0x6a3796(0x27c),!0x1),q(this,_0x6a3796(0xdc),!0x1),q(this,_0x6a3796(0x22b),void 0x0),q(this,_0x6a3796(0x101),void 0x0),q(this,_0x6a3796(0xf0),null),this[_0x6a3796(0x2f6)]();}[_0x49d8a2(0x2f6)](){const _0x3ce769=_0x49d8a2;this[_0x3ce769(0x2d1)](),this[_0x3ce769(0x246)]();}[_0x49d8a2(0x1ed)](){const _0x1d131d=_0x49d8a2;if(!this[_0x1d131d(0x330)]||!this[_0x1d131d(0x227)]||!this[_0x1d131d(0x288)])return;let _0x35f0c8={'unitId':this[_0x1d131d(0x330)],'subUnitId':this[_0x1d131d(0x227)],'drawingId':this[_0x1d131d(0x288)]},{transform:_0x3837d8}=this[_0x1d131d(0x159)][_0x1d131d(0x26a)](_0x35f0c8);if(_0x3837d8)return{'left':_0x3837d8[_0x1d131d(0x26f)]||0x0,'top':_0x3837d8['top']||0x0,'width':_0x3837d8[_0x1d131d(0x2b9)]||0x0,'height':_0x3837d8[_0x1d131d(0x232)]||0x0,'flipX':_0x3837d8['flipX']||!0x1,'flipY':_0x3837d8['flipY']||!0x1,'angle':_0x3837d8[_0x1d131d(0x1fa)]};}['_addShapeConnectorHandlerObjects'](){const _0x4af483=_0x49d8a2;if(this[_0x4af483(0x330)]===void 0x0||this[_0x4af483(0x227)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x4fe720=this[_0x4af483(0x107)][_0x4af483(0x2c4)](this[_0x4af483(0x330)]);if(!_0x4fe720||!_0x4fe720['with'](_0x4b5a3f)['getCurrentSkeleton']())return;let {scene:_0x53ee95}=_0x4fe720,_0x187f45=this[_0x4af483(0x1ed)]();if(!_0x187f45)return;let _0x22aa5f=this[_0x4af483(0x220)]['getShapeModel'](this['_unitId'],this[_0x4af483(0x227)],this[_0x4af483(0x288)]);if(!_0x22aa5f||!_0x5d2a5e(_0x22aa5f[_0x4af483(0x285)]()))return;let _0x4719a3=_0x22aa5f['getConnectorLinePoints']();if(_0x4719a3[_0x4af483(0x289)]<0x2)return;let _0x119741=new _0x20c995(_0x187f45),_0x55a5cd=_0x4719a3[0x0],_0xb75ac2=_0x4719a3[_0x4719a3['length']-0x1],_0x45d7ff=_0x119741[_0x4af483(0x123)](_0x55a5cd),_0x140a2a=_0x119741[_0x4af483(0x123)](_0xb75ac2);this[_0x4af483(0x24d)](_0x53ee95,{..._0x45d7ff},!0x0),this[_0x4af483(0x24d)](_0x53ee95,{..._0x140a2a},!0x1);}[_0x49d8a2(0x24d)](_0x13cabc,_0x33e3e5,_0x1c073c){const _0x4887fd=_0x49d8a2;if(this[_0x4887fd(0x288)]===void 0x0||this['_unitId']===void 0x0||this[_0x4887fd(0x227)]===void 0x0)return;let _0xa53536=_0x4887fd(0x28b)+this[_0x4887fd(0x330)]+'-'+this[_0x4887fd(0x227)]+'-'+this[_0x4887fd(0x288)]+'-'+(_0x1c073c?_0x4887fd(0x137):_0x4887fd(0x31f)),_0x207e1f=_0x13cabc['getObjectIncludeInGroup'](_0xa53536);if(_0x207e1f){_0x207e1f[_0x4887fd(0x112)]({'left':_0x33e3e5['x']-_0x2bea1d[_0x4887fd(0x1eb)],'top':_0x33e3e5['y']-_0x2bea1d[_0x4887fd(0x1eb)]});return;}let _0x21d4eb=new lr(_0xa53536,{'left':_0x33e3e5['x']-_0x2bea1d['cxnPointRadius'],'top':_0x33e3e5['y']-_0x2bea1d[_0x4887fd(0x1eb)],'shapeId':this[_0x4887fd(0x288)],'unitId':this[_0x4887fd(0x330)],'subUnitId':this[_0x4887fd(0x227)],'isStartConnectorPoint':_0x1c073c,'width':_0x2bea1d['cxnPointRadius']*0x2,'height':_0x2bea1d[_0x4887fd(0x1eb)]*0x2,'zIndex':_0x529f4c+0x1,'evented':!0x0});this['_connectorObjects'][_0x4887fd(0x214)](_0x21d4eb),this[_0x4887fd(0x129)](_0x21d4eb,_0x13cabc,_0x1c073c),_0x13cabc[_0x4887fd(0x1c7)](_0x21d4eb,_0x529f4c+0x1);}[_0x49d8a2(0x30e)](_0x3f8082,_0x4a43e1){const _0x54bc76=_0x49d8a2;var _0x3f252f;let _0x9d0b38={'x':0x0,'y':0x0};if(!_0x3f8082||!_0x4a43e1)return _0x9d0b38;let _0x3465c6=this[_0x54bc76(0x107)][_0x54bc76(0x2c4)](_0x3f8082);if(!_0x3465c6||!_0x3465c6[_0x54bc76(0xf5)](_0x4b5a3f)['getSkeleton'](_0x4a43e1))return _0x9d0b38;let _0x29dcb4=_0x3465c6[_0x54bc76(0xf5)](_0x5480ae),_0x4f14bb=_0x29dcb4==null?void 0x0:_0x29dcb4['getCurrentScrollState']();if(!_0x4f14bb)return _0x9d0b38;let _0x5f3d=(_0x3f252f=this[_0x54bc76(0x1b8)]['getUnit'](_0x3f8082))==null?void 0x0:_0x3f252f[_0x54bc76(0x169)](_0x4a43e1);if(!_0x5f3d)return _0x9d0b38;let _0x1555a1=_0x356c4d(_0x4f14bb[_0x54bc76(0x206)],_0x4f14bb['sheetViewStartColumn'],_0x3465c6['scene'],_0x5f3d);return _0x1555a1?{'x':_0x1555a1[_0x54bc76(0x33d)],'y':_0x1555a1[_0x54bc76(0x25f)]}:_0x9d0b38;}[_0x49d8a2(0x224)](_0x2d2be7,_0x1efc7c){const _0x14568a=_0x49d8a2;var _0x10ec49,_0x4f22f9;let _0x443129=(_0x10ec49=this[_0x14568a(0x1b8)][_0x14568a(0x12f)](_0x2d2be7))==null?void 0x0:_0x10ec49[_0x14568a(0x169)](_0x1efc7c);return(_0x4f22f9=_0x443129==null?void 0x0:_0x443129[_0x14568a(0x221)]())==null?0x1:_0x4f22f9;}[_0x49d8a2(0x197)](_0x13e79e,_0xc195bd,_0x4da696,_0x395ed0,_0x19e3f2){const _0x216c1e=_0x49d8a2;this[_0x216c1e(0x22b)][_0x216c1e(0x2e3)](),this[_0x216c1e(0x101)][_0x216c1e(0x2e3)](),this['_sheetShapeAdjustController']['refreshAdjustControls']();let _0x110b99=this['_currentConnectionTarget'];this[_0x216c1e(0x17d)][_0x216c1e(0x254)]();let _0x5382e1=this[_0x216c1e(0x30e)](this[_0x216c1e(0x330)],this[_0x216c1e(0x227)]),_0x430ee4=this[_0x216c1e(0x224)](this[_0x216c1e(0x330)],this[_0x216c1e(0x227)]),_0x2008d5={'x':_0x4da696[_0x216c1e(0x30d)]/_0x430ee4+_0x5382e1['x'],'y':_0x4da696[_0x216c1e(0x18e)]/_0x430ee4+_0x5382e1['y']},_0x423c2c=_0x110b99?_0x110b99[_0x216c1e(0x1c4)]:_0x2008d5,_0x135f0d=_0x395ed0?this[_0x216c1e(0x1db)][_0x216c1e(0x223)]():this['_activeShapeModel'][_0x216c1e(0x1d9)](),_0x5dd056=this[_0x216c1e(0x1db)]['getShapeType']();_0x135f0d?this[_0x216c1e(0x29f)](_0x135f0d,_0x423c2c,_0x395ed0,_0x110b99,_0x19e3f2):this['_handleFreeEndpointPointerUp'](_0xc195bd,_0x423c2c,_0x395ed0,_0x110b99,_0x19e3f2,_0x5dd056),this[_0x216c1e(0x1d2)]=!0x1,this[_0x216c1e(0xdc)]=!0x1,this[_0x216c1e(0xf0)]=null,_0x13e79e[_0x216c1e(0x24a)]();}[_0x49d8a2(0x2fe)](_0x1b433f,_0x5d2dab,_0x99a8ac,_0x257c9f,_0x1d75e7,_0x22495d){const _0x2d6faf=_0x49d8a2;let _0x5c3244=_0x22495d===_0x1ca39f[_0x2d6faf(0x23c)]||_0x22495d===_0x1ca39f['StraightConnector1'],_0x62b818=_0x99a8ac?_0x5d2dab:_0x1b433f,_0x4d7aa6=_0x99a8ac?_0x1b433f:_0x5d2dab,_0x10c74d=this[_0x2d6faf(0x1db)][_0x2d6faf(0x2de)](),_0x237f31=_0x41cad6(this[_0x2d6faf(0x1db)][_0x2d6faf(0x285)]()),_0x6856d0=_0x20c995[_0x2d6faf(0x22f)](_0x10c74d,_0x237f31),_0xc5d135=_0x5c3244?_0x20c995[_0x2d6faf(0x12c)](_0x62b818,_0x4d7aa6):_0x20c995['computeConnectorResizeLayout'](_0x1b433f,_0x5d2dab,_0x99a8ac,_0x6856d0);_0x257c9f?this[_0x2d6faf(0x115)](_0xc5d135,_0x257c9f,_0x99a8ac,_0x1d75e7):this[_0x2d6faf(0x1d5)](_0xc5d135,_0x1d75e7);}['_handleConnectedEndpointPointerUp'](_0x165b34,_0x3c51f0,_0x58706e,_0x3573a0,_0x423790){const _0x2e8b6a=_0x49d8a2;let _0x3b3fdc=this[_0x2e8b6a(0x1b9)](_0x165b34);if(!_0x3b3fdc)return;let _0x20847a=_0x3573a0?_0x3573a0[_0x2e8b6a(0x1fa)]:this[_0x2e8b6a(0x25c)](_0x3b3fdc[_0x2e8b6a(0x22c)],_0x3c51f0),_0x262f6c;if(_0x3573a0){let _0x145cd8=this[_0x2e8b6a(0x159)]['getDrawingByParam']({'unitId':_0x3573a0[_0x2e8b6a(0x1b7)],'subUnitId':_0x3573a0[_0x2e8b6a(0x2b4)],'drawingId':_0x3573a0[_0x2e8b6a(0x142)]});if(_0x145cd8!=null&&_0x145cd8[_0x2e8b6a(0x166)]){let {left:_0x179ee6=0x0,top:_0x3a21f8=0x0,width:_0x3f8482=0x0,height:_0x23abc4=0x0,angle:_0x2ff946}=_0x145cd8[_0x2e8b6a(0x166)];_0x262f6c=_0x4d4669({'left':_0x179ee6,'top':_0x3a21f8,'width':_0x3f8482,'height':_0x23abc4},_0x2ff946||0x0);}else _0x262f6c={'left':_0x3c51f0['x'],'top':_0x3c51f0['y'],'width':0x0,'height':0x0};}else _0x262f6c={'left':_0x3c51f0['x'],'top':_0x3c51f0['y'],'width':0x0,'height':0x0};let _0x1294ac={'point':_0x3c51f0,'angle':_0x20847a,'bounds':_0x262f6c},_0x47740c=_0x58706e?_0x1294ac:_0x3b3fdc,_0x525323=_0x58706e?_0x3b3fdc:_0x1294ac,_0x411521=this[_0x2e8b6a(0x1db)]['getShapeType'](),_0x7ca124=_0x449797(_0x47740c,_0x525323,_0x411521);this[_0x2e8b6a(0x1db)][_0x2e8b6a(0x249)]();let _0x1b2606=_0x59ea91(_0x7ca124,_0x411521);_0x3573a0?this[_0x2e8b6a(0x2ea)](_0x1b2606,_0x3573a0,_0x165b34,_0x58706e,_0x423790):this[_0x2e8b6a(0x318)](_0x1b2606,_0x165b34,_0x58706e,_0x423790);}[_0x49d8a2(0x115)](_0x528b85,_0x308519,_0x5cd55e,_0x471b4c){const _0x1e87a2=_0x49d8a2;let _0x4110fd=this[_0x1e87a2(0x1db)][_0x1e87a2(0x205)]()['relation'],_0x5d0df7={..._0x4110fd},_0x34634d={'shapeId':_0x308519['shapeId'],'cxnIndex':_0x308519['cxnIndex']};_0x5cd55e?_0x5d0df7[_0x1e87a2(0x2d3)]=_0x34634d:_0x5d0df7['to']=_0x34634d;let _0x2c57bb=this[_0x1e87a2(0x1db)]['getShapeType'](),_0x19fca4=_0x59ea91(_0x528b85[_0x1e87a2(0x130)],_0x2c57bb),_0x3a6fbf={'unitId':this[_0x1e87a2(0x330)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1e87a2(0x288)],'width':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x2b9)],'height':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x232)],'left':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x26f)],'top':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x25d)],'flipX':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x31c)]||!0x1,'flipY':_0x528b85['worldRect']['flipY']||!0x1,'newAdjustValues':_0x19fca4['adjustValues'],'oldAdjustValues':_0x471b4c,'oldRelation':_0x4110fd,'newRelation':_0x5d0df7,'newLineType':_0x19fca4[_0x1e87a2(0x22e)],'oldLineType':_0x2c57bb};this['_commandService'][_0x1e87a2(0x2c5)](_0x1c01fb['id'],_0x3a6fbf);}['_executeResizeCommand'](_0x144d6b,_0x1b95ab){const _0x1815a6=_0x49d8a2;let _0x49d40a=this[_0x1815a6(0x1db)][_0x1815a6(0x285)](),_0xda55b5=_0x59ea91(_0x144d6b['worldPoints'],_0x49d40a),_0x1730f7={'unitId':this[_0x1815a6(0x330)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x1815a6(0x288)],'width':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x2b9)],'height':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x232)],'left':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x26f)],'top':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x25d)],'flipX':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x31c)]||!0x1,'flipY':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x132)]||!0x1,'angle':_0x144d6b['worldRect'][_0x1815a6(0x1fa)]||0x0,'newAdjustValues':_0xda55b5[_0x1815a6(0x114)],'oldAdjustValues':_0x1b95ab,'newLineType':_0xda55b5[_0x1815a6(0x22e)],'oldLineType':_0x49d40a};this['_commandService']['executeCommand'](_0x3b0863['id'],_0x1730f7);}[_0x49d8a2(0x2ea)](_0x11135d,_0xbd6a8e,_0x1a8754,_0x396801,_0x31024d){const _0x878b2=_0x49d8a2;let _0x286e21=this[_0x878b2(0x1db)][_0x878b2(0x205)]()['relation'],_0x1ae491={..._0x286e21},_0x164ca1={'shapeId':_0xbd6a8e[_0x878b2(0x142)],'cxnIndex':_0xbd6a8e[_0x878b2(0x217)]};_0x396801?(_0x1ae491['from']=_0x164ca1,_0x1ae491['to']=_0x1a8754):(_0x1ae491['from']=_0x1a8754,_0x1ae491['to']=_0x164ca1);let _0x42f758={'unitId':this[_0x878b2(0x330)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x878b2(0x288)],'width':_0x11135d[_0x878b2(0x238)][_0x878b2(0x2b9)],'height':_0x11135d[_0x878b2(0x238)]['height'],'left':_0x11135d[_0x878b2(0x238)][_0x878b2(0x26f)],'top':_0x11135d[_0x878b2(0x238)]['top'],'flipX':_0x11135d['worldRect'][_0x878b2(0x31c)]||!0x1,'flipY':_0x11135d['worldRect']['flipY']||!0x1,'oldAdjustValues':_0x31024d,'newAdjustValues':_0x11135d[_0x878b2(0x114)],'newLineType':_0x11135d[_0x878b2(0x22e)],'rotation':_0x11135d[_0x878b2(0x184)],'oldRelation':_0x286e21,'newRelation':_0x1ae491};this[_0x878b2(0x2af)][_0x878b2(0x2c5)](_0x1c01fb['id'],_0x42f758);}[_0x49d8a2(0x318)](_0x272335,_0x180284,_0x5d1191,_0x258a45){const _0x1decfc=_0x49d8a2;let _0x1d7a4a=this[_0x1decfc(0x1db)]['getShapeData']()[_0x1decfc(0x2e6)],_0x66d17={};_0x5d1191?(_0x66d17['to']=_0x180284,_0x66d17[_0x1decfc(0x2d3)]=void 0x0):(_0x66d17[_0x1decfc(0x2d3)]=_0x180284,_0x66d17['to']=void 0x0);let _0x3fb0f2={'unitId':this[_0x1decfc(0x330)],'subUnitId':this[_0x1decfc(0x227)],'connectorShapeId':this[_0x1decfc(0x288)],'width':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x2b9)],'height':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x232)],'left':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x26f)],'top':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x25d)],'flipX':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x31c)]||!0x1,'flipY':_0x272335[_0x1decfc(0x238)]['flipY']||!0x1,'oldAdjustValues':_0x258a45,'newAdjustValues':_0x272335[_0x1decfc(0x114)],'newLineType':_0x272335[_0x1decfc(0x22e)],'rotation':_0x272335[_0x1decfc(0x184)],'oldRelation':_0x1d7a4a,'newRelation':_0x66d17};this['_commandService'][_0x1decfc(0x2c5)](_0x1c01fb['id'],_0x3fb0f2);}[_0x49d8a2(0x129)](_0x433c96,_0x4650a8,_0x2a9435){const _0x5336bc=_0x49d8a2;this['disposeWithMe'](_0x4f15f0(_0x433c96[_0x5336bc(0x1ca)][_0x5336bc(0x19b)]((_0x52f961,_0x1548e2)=>{const _0x2ebb38=_0x5336bc;let _0x1f0ae1=_0x433c96[_0x2ebb38(0x275)]();if(this[_0x2ebb38(0x1db)]=this[_0x2ebb38(0x220)][_0x2ebb38(0x296)](_0x1f0ae1[_0x2ebb38(0x1b7)],_0x1f0ae1[_0x2ebb38(0x2b4)],_0x1f0ae1[_0x2ebb38(0x20e)]),!this[_0x2ebb38(0x1db)])return;let _0x1a13b3={};this[_0x2ebb38(0x1db)][_0x2ebb38(0x325)]()[_0x2ebb38(0x111)](_0x5e526c=>{const _0x519e88=_0x2ebb38;let _0x59a92e=this[_0x519e88(0x1db)][_0x519e88(0x27e)](_0x5e526c);_0x59a92e!==void 0x0&&(_0x1a13b3[_0x5e526c]=_0x59a92e);});let _0x5d45ac=this['_getDrawingRect']();if(!_0x5d45ac)return;this['_baseDrawingRect']={..._0x5d45ac};let _0x529f78=new _0x20c995(this[_0x2ebb38(0x1f8)]),_0x4b24ff=_0x24e648({'unitId':this[_0x2ebb38(0x330)],'subUnitId':this[_0x2ebb38(0x227)],'drawingId':this['_activeShapeId']}),_0x1fac8f=_0x4650a8[_0x2ebb38(0xda)](_0x4b24ff);this[_0x2ebb38(0x1d2)]=!0x0,_0x4650a8[_0x2ebb38(0x162)](),this['_sheetBasicShapeConnectionPointController'][_0x2ebb38(0x2a4)](_0x4650a8,this[_0x2ebb38(0x330)],this['_subUnitId'],this[_0x2ebb38(0x288)]),this['_currentConnectionTarget']=null;let _0x3d2c6d=this[_0x2ebb38(0x1db)][_0x2ebb38(0x2de)](),_0x182d5c=_0x3d2c6d[0x0],_0x47759b=_0x3d2c6d[_0x3d2c6d[_0x2ebb38(0x289)]-0x1],_0x167ef9=_0x2a9435?_0x529f78[_0x2ebb38(0x123)](_0x47759b):_0x529f78['localToWorld'](_0x182d5c);this[_0x2ebb38(0x22b)]=_0x4650a8[_0x2ebb38(0x301)][_0x2ebb38(0x19b)]((_0x5822f5,_0x17460e)=>{const _0x2ca34d=_0x2ebb38;if(!this['_isConnecting']||!this['_activeShapeModel'])return;this[_0x2ca34d(0xdc)]||(this[_0x2ca34d(0x26e)][_0x2ca34d(0x2cb)](),this[_0x2ca34d(0x1db)][_0x2ca34d(0xea)](),this[_0x2ca34d(0xdc)]=!0x0);let _0x3a8154=this[_0x2ca34d(0x30e)](this[_0x2ca34d(0x330)],this[_0x2ca34d(0x227)]),_0x1f489b=this['_getZoomRatio'](this['_unitId'],this[_0x2ca34d(0x227)]),_0x2ba099={'x':_0x5822f5[_0x2ca34d(0x30d)]/_0x1f489b+_0x3a8154['x'],'y':_0x5822f5[_0x2ca34d(0x18e)]/_0x1f489b+_0x3a8154['y']},_0x4f1aa2=this[_0x2ca34d(0x17d)][_0x2ca34d(0x14a)](_0x2ba099);if(_0x4f1aa2){let {shapeId:_0x56c8d3,unitId:_0x48f239,subUnitId:_0x1ea885}=_0x4f1aa2;if(_0x56c8d3&&_0x48f239&&_0x1ea885){let _0x245d47=_0x24e648({'unitId':_0x48f239,'subUnitId':_0x1ea885,'drawingId':_0x56c8d3});_0x4f1aa2[_0x2ca34d(0x1fa)]=(_0x4650a8['getObjectIncludeInGroup'](_0x245d47)[_0x2ca34d(0x1fa)]||0x0)+_0x4f1aa2['angle'];}}this['_currentConnectionTarget']=_0x4f1aa2;let _0x5cedbe=_0x2a9435?this[_0x2ca34d(0x1db)][_0x2ca34d(0x223)]():this[_0x2ca34d(0x1db)][_0x2ca34d(0x1d9)]();if(_0x5cedbe){this[_0x2ca34d(0xe4)](_0x5cedbe,_0x2ba099,_0x2a9435,_0x1fac8f,_0x433c96);return;}this[_0x2ca34d(0x21f)](_0x2ba099,_0x167ef9,_0x2a9435,_0x1fac8f,_0x433c96);}),this[_0x2ebb38(0x101)]=_0x4650a8[_0x2ebb38(0x1fc)][_0x2ebb38(0x19b)]((_0x2173f3,_0x3f4b0f)=>{const _0x1ef1ee=_0x2ebb38;this[_0x1ef1ee(0x197)](_0x4650a8,_0x167ef9,_0x2173f3,_0x2a9435,_0x1a13b3);}),_0x1548e2['stopPropagation']();})));}[_0x49d8a2(0x294)](_0xa537e5,_0x4a8bb8,_0x154192){const _0x2b58d9=_0x49d8a2;let _0x1f3a6f=this['_sheetsShapeService'][_0x2b58d9(0x1ba)](_0xa537e5,_0x4a8bb8,_0x154192);if(!_0x1f3a6f||_0x1f3a6f[_0x2b58d9(0x289)]===0x0)return;let _0x10f285=this[_0x2b58d9(0x107)][_0x2b58d9(0x2c4)](_0xa537e5);if(!_0x10f285)return;let {scene:_0x4d3f58}=_0x10f285;for(let _0x1c4f2b of _0x1f3a6f){let _0xecfcfa=_0x1c4f2b[_0x2b58d9(0x235)],_0x16bfa6=this[_0x2b58d9(0x220)][_0x2b58d9(0x296)](_0xa537e5,_0x4a8bb8,_0xecfcfa);if(!_0x16bfa6)continue;let _0x49c2af=_0x16bfa6[_0x2b58d9(0x1d9)](),_0x434e3c=_0x16bfa6[_0x2b58d9(0x223)](),_0x540d0d=(_0x49c2af==null?void 0x0:_0x49c2af[_0x2b58d9(0x142)])===_0x154192,_0x14db02=_0x24e648({'unitId':_0xa537e5,'subUnitId':_0x4a8bb8,'drawingId':_0xecfcfa}),_0x5c701d=_0x4d3f58['getObjectIncludeInGroup'](_0x14db02);if(!_0x5c701d)continue;let _0x5747cc=this['_drawingManagerService'][_0x2b58d9(0x26a)]({'unitId':_0xa537e5,'subUnitId':_0x4a8bb8,'drawingId':_0xecfcfa});_0x5747cc!=null&&_0x5747cc['transform']&&(_0x49c2af&&_0x434e3c?this['_rerouteConnectorLine'](_0xa537e5,_0x4a8bb8,_0xecfcfa,_0x16bfa6,_0x49c2af,_0x434e3c,_0x5c701d):this[_0x2b58d9(0x19e)](_0xa537e5,_0x4a8bb8,_0xecfcfa,_0x16bfa6,_0x540d0d?_0x49c2af:_0x434e3c,_0x540d0d,_0x5747cc,_0x5c701d));}}[_0x49d8a2(0x1b3)](_0x3562e7,_0x5ccfa1,_0x31dd74,_0x946870,_0x3aaf39,_0x421489,_0x4fa869){const _0xb5bc49=_0x49d8a2;let _0x3929b9=this['_unitId'],_0xa8b4cf=this[_0xb5bc49(0x227)];this[_0xb5bc49(0x330)]=_0x3562e7,this[_0xb5bc49(0x227)]=_0x5ccfa1;let _0x1eac42=this[_0xb5bc49(0x1b9)](_0x3aaf39),_0x2038b3=this[_0xb5bc49(0x1b9)](_0x421489);if(this[_0xb5bc49(0x330)]=_0x3929b9,this[_0xb5bc49(0x227)]=_0xa8b4cf,!_0x1eac42||!_0x2038b3)return;let _0x3148e8=_0x946870[_0xb5bc49(0x285)](),_0xc85d88=_0x449797(_0x1eac42,_0x2038b3,_0x3148e8);_0xc85d88&&_0x946870[_0xb5bc49(0x333)](_0xc85d88);let _0x3d6fae=_0x59ea91(_0xc85d88,_0x3148e8);_0x3d6fae['lineType']!==_0x3148e8&&_0x946870[_0xb5bc49(0x290)](_0x3d6fae['lineType']),_0x946870[_0xb5bc49(0xea)]();for(let [_0x129fe0,_0x4522ca]of Object[_0xb5bc49(0x13c)](_0x3d6fae[_0xb5bc49(0x114)]))_0x946870[_0xb5bc49(0x1cf)](_0x129fe0,_0x4522ca);_0x946870[_0xb5bc49(0x314)]({'width':_0x3d6fae['worldRect'][_0xb5bc49(0x2b9)],'height':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x232)]}),_0x4fa869[_0xb5bc49(0x112)]({'flipX':_0x3d6fae[_0xb5bc49(0x238)]['flipX'],'flipY':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x132)],'left':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x26f)],'top':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x25d)],'width':_0x3d6fae[_0xb5bc49(0x238)]['width'],'height':_0x3d6fae[_0xb5bc49(0x238)]['height'],'angle':_0x3d6fae['rotation']}),_0x946870[_0xb5bc49(0x249)]();}['_moveConnectorWithShape'](_0x2475af,_0x36a2d7,_0x12457a,_0x30a804,_0x1d62d8,_0x390662,_0x55a887,_0x7c2153){const _0x1ebee6=_0x49d8a2;let _0x3e77a6=this[_0x1ebee6(0x330)],_0x3b3915=this['_subUnitId'];this['_unitId']=_0x2475af,this[_0x1ebee6(0x227)]=_0x36a2d7;let _0x47f534=this[_0x1ebee6(0x1b9)](_0x1d62d8);if(this[_0x1ebee6(0x330)]=_0x3e77a6,this[_0x1ebee6(0x227)]=_0x3b3915,!_0x47f534)return;let {left:_0x5a43d9=0x0,top:_0x1a5bcf=0x0,width:_0x4f73cc=0x0,height:_0x3ffc48=0x0,flipX:_0x449082=!0x1,flipY:_0x62b658=!0x1}=_0x55a887[_0x1ebee6(0x166)],_0x59dbb2=_0x30a804['getConnectorLinePoints']();if(_0x59dbb2[_0x1ebee6(0x289)]<0x2)return;let _0x4eee31=new _0x20c995({'left':_0x5a43d9,'top':_0x1a5bcf,'width':_0x4f73cc,'height':_0x3ffc48,'flipX':_0x449082,'flipY':_0x62b658}),_0x161c88=_0x390662?_0x59dbb2[_0x59dbb2[_0x1ebee6(0x289)]-0x1]:_0x59dbb2[0x0],_0x4bd10b=_0x4eee31['localToWorld'](_0x161c88),_0x1dc217=_0x20c995[_0x1ebee6(0x1e7)](_0x4bd10b,_0x47f534[_0x1ebee6(0x22c)],!_0x390662);_0x7c2153['transformByState']({'flipX':_0x1dc217[_0x1ebee6(0x238)]['flipX'],'flipY':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x132)],'left':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x26f)],'top':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x25d)],'width':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x2b9)],'height':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x232)],'angle':_0x1dc217['worldRect'][_0x1ebee6(0x1fa)]}),_0x7c2153[_0x1ebee6(0x165)](!0x0);}[_0x49d8a2(0x1c1)](){const _0x427b1f=_0x49d8a2;this['_connectorObjects'][_0x427b1f(0x289)]!==0x0&&(this[_0x427b1f(0x272)]['forEach'](_0x1f6438=>{const _0x4afc6f=_0x427b1f;_0x1f6438[_0x4afc6f(0x2b0)]();}),this['_connectorObjects']=[]);}['_registerDrawingMoveHandler'](){const _0x54edf2=_0x49d8a2;let _0x8bbe79=this[_0x54edf2(0x1b8)][_0x54edf2(0x278)](_0x4c1a31[_0x54edf2(0x261)]);this[_0x54edf2(0x16d)](_0x8bbe79[_0x54edf2(0x26c)](_0x48371d(_0x37368c=>_0x37368c?_0x37368c[_0x54edf2(0x18c)][_0x54edf2(0x26c)](_0x48371d(_0x3bc779=>{const _0xa9db16=_0x54edf2;if(!_0x3bc779)return _0x4e602d;let _0x57f444=_0x37368c['getUnitId'](),_0x2f5acf=this[_0xa9db16(0x107)][_0xa9db16(0x2c4)](_0x57f444),_0x3c350e=_0x2f5acf==null?void 0x0:_0x2f5acf['scene'];return _0x3c350e?_0x5ba9b9(_0x3c350e):_0x4e602d;})):_0x4e602d))[_0x54edf2(0x212)](_0x336a5c=>{const _0x5d8973=_0x54edf2;let _0x8586e5=_0x336a5c[_0x5d8973(0x14b)]();this['disposeWithMe'](_0x336a5c[_0x5d8973(0x301)][_0x5d8973(0x19b)](_0x22f7c5=>{const _0xbe9ac0=_0x5d8973;this[_0xbe9ac0(0x27c)]&&this[_0xbe9ac0(0x288)]&&this[_0xbe9ac0(0x1c1)]();})),this['disposeWithMe'](_0x8586e5[_0x5d8973(0x1f2)][_0x5d8973(0x212)](_0x2e2a5d=>{const _0x25094d=_0x5d8973;let {objects:_0x2565bc}=_0x2e2a5d;this[_0x25094d(0x1c1)](),_0x2565bc!==null&&_0x2565bc['size']===0x1&&_0x2565bc[_0x25094d(0x2cc)]()[_0x25094d(0x15a)]()[_0x25094d(0x21c)]instanceof vn&&(this[_0x25094d(0x27c)]=!0x0);})),this['disposeWithMe'](_0x8586e5[_0x5d8973(0x2f4)][_0x5d8973(0x212)](_0x57fddb=>{const _0x4e2dc0=_0x5d8973;this[_0x4e2dc0(0x27c)]&&this[_0x4e2dc0(0x1c1)]();})),this[_0x5d8973(0x16d)](_0x336a5c[_0x5d8973(0x1fc)][_0x5d8973(0x19b)](()=>{const _0x3530eb=_0x5d8973;this[_0x3530eb(0x27c)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x3530eb(0x211)]());})),this[_0x5d8973(0x16d)](_0x8586e5['changeEnd$']['subscribe'](()=>{const _0x5b6e65=_0x5d8973;this[_0x5b6e65(0x330)]&&this[_0x5b6e65(0x227)]&&this[_0x5b6e65(0x288)]&&this[_0x5b6e65(0x159)]['getDrawingByParam']({'unitId':this[_0x5b6e65(0x330)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5b6e65(0x288)]})&&(this[_0x5b6e65(0x1c1)](),this[_0x5b6e65(0x211)]());}));}));}[_0x49d8a2(0x2d1)](){const _0x1b46fd=_0x49d8a2;this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x139)][_0x1b46fd(0x212)](_0x1b842c=>{const _0x107bfd=_0x1b46fd;if(_0x1b842c[_0x107bfd(0x289)]===0x1){let _0xa18e61=_0x1b842c[0x0];if(_0xa18e61[_0x107bfd(0x12e)]===_0x336997[_0x107bfd(0x181)]){let _0x4ba26d=this[_0x107bfd(0x220)][_0x107bfd(0x296)](_0xa18e61[_0x107bfd(0x1b7)],_0xa18e61['subUnitId'],_0xa18e61[_0x107bfd(0x20e)]);if(_0x4ba26d&&_0x5d2a5e(_0x4ba26d['getShapeType']())){this[_0x107bfd(0x288)]=_0xa18e61[_0x107bfd(0x20e)],this['_unitId']=_0xa18e61[_0x107bfd(0x1b7)],this[_0x107bfd(0x227)]=_0xa18e61[_0x107bfd(0x2b4)],this['_clearShapeConnectorHandlerObjects'](),this[_0x107bfd(0x211)]();return;}}}this[_0x107bfd(0x288)]=void 0x0,this[_0x107bfd(0x330)]=void 0x0,this[_0x107bfd(0x227)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x127)][_0x1b46fd(0x212)](_0x8dca6e=>{const _0x3efe75=_0x1b46fd;if(_0x8dca6e['length']===0x1){var _0x514981;let _0x28b06f=_0x8dca6e[0x0],_0x279703=(_0x514981=this[_0x3efe75(0x159)][_0x3efe75(0x26a)](_0x28b06f))==null?void 0x0:_0x514981['drawingType'];_0x279703===_0x336997['DRAWING_SHAPE']&&_0x28b06f['drawingId']===this['_activeShapeId']?(this[_0x3efe75(0x1c1)](),this[_0x3efe75(0x211)]()):!this[_0x3efe75(0x288)]&&_0x279703===_0x336997[_0x3efe75(0x181)]&&this[_0x3efe75(0x294)](_0x28b06f[_0x3efe75(0x1b7)],_0x28b06f['subUnitId'],_0x28b06f[_0x3efe75(0x20e)]);}})),this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x2dc)]['subscribe'](_0x385460=>{const _0x166a29=_0x1b46fd;for(let _0x392bbe of _0x385460){let {drawingId:_0x25fb77}=_0x392bbe;if(this['_activeShapeId']===_0x25fb77){this[_0x166a29(0x2a6)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5b4f5e,_0x26f6d1,_0x468d8d,_0x424105,_0x14503e){const _0x2dc4d9=_0x49d8a2;var _0x34cce2,_0x2f69a1;if(!this[_0x2dc4d9(0x1db)])return;let _0x278c4a=this[_0x2dc4d9(0x1b9)](_0x5b4f5e);if(!_0x278c4a)return;let _0x2ccc09=this[_0x2dc4d9(0xf0)]?this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x1c4)]:_0x26f6d1,_0x17e52b=this[_0x2dc4d9(0xf0)]?this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x1fa)]:this['_calculateFreeEndpointAngle'](_0x278c4a[_0x2dc4d9(0x22c)],_0x2ccc09),_0x1188cc;if(this['_currentConnectionTarget']){let _0x349883=this[_0x2dc4d9(0x159)]['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x2dc4d9(0x1b7)],'subUnitId':this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x2b4)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x349883!=null&&_0x349883[_0x2dc4d9(0x166)]){let {left:_0x332214=0x0,top:_0x5a2c04=0x0,width:_0x1d7e2d=0x0,height:_0xd2bdf4=0x0,angle:_0x4eeead}=_0x349883['transform'];_0x1188cc=_0x4d4669({'left':_0x332214,'top':_0x5a2c04,'width':_0x1d7e2d,'height':_0xd2bdf4},_0x4eeead||0x0);}else _0x1188cc={'left':_0x2ccc09['x'],'top':_0x2ccc09['y'],'width':0x0,'height':0x0};}else _0x1188cc={'left':_0x2ccc09['x'],'top':_0x2ccc09['y'],'width':0x0,'height':0x0};let _0x52a8ab={'point':_0x2ccc09,'angle':_0x17e52b,'bounds':_0x1188cc},_0x1d918e=_0x468d8d?_0x52a8ab:_0x278c4a,_0x5e68cb=_0x468d8d?_0x278c4a:_0x52a8ab,_0x367295=this['_activeShapeModel']['getShapeType'](),_0x4ff554=_0x449797(_0x1d918e,_0x5e68cb,_0x367295);_0x4ff554&&this[_0x2dc4d9(0x1db)][_0x2dc4d9(0x333)](_0x4ff554);let _0x536a5b=_0x59ea91(_0x4ff554,_0x367295);_0x536a5b['lineType']!==_0x367295&&this[_0x2dc4d9(0x1db)][_0x2dc4d9(0x290)](_0x536a5b[_0x2dc4d9(0x22e)]);for(let [_0x426437,_0x123304]of Object[_0x2dc4d9(0x13c)](_0x536a5b[_0x2dc4d9(0x114)]))this['_activeShapeModel'][_0x2dc4d9(0x1cf)](_0x426437,_0x123304);this['_activeShapeModel'][_0x2dc4d9(0x314)]({'width':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x2b9)],'height':_0x536a5b['worldRect'][_0x2dc4d9(0x232)]}),_0x424105[_0x2dc4d9(0x112)]({'flipX':_0x536a5b['worldRect'][_0x2dc4d9(0x31c)],'flipY':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x132)],'left':_0x536a5b['worldRect'][_0x2dc4d9(0x26f)],'top':_0x536a5b[_0x2dc4d9(0x238)]['top'],'width':_0x536a5b[_0x2dc4d9(0x238)]['width'],'height':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x232)],'angle':_0x536a5b[_0x2dc4d9(0x184)]}),_0x424105['makeDirty'](!0x0);let _0x547ffa=(_0x34cce2=(_0x2f69a1=this[_0x2dc4d9(0xf0)])==null?void 0x0:_0x2f69a1['worldPoint'])==null?_0x26f6d1:_0x34cce2;_0x14503e[_0x2dc4d9(0x112)]({'left':_0x547ffa['x']-_0x2bea1d[_0x2dc4d9(0x1eb)],'top':_0x547ffa['y']-_0x2bea1d['cxnPointRadius']});}[_0x49d8a2(0x21f)](_0x6aff35,_0x8a8f5f,_0x4d86d3,_0x108a14,_0x1c6891){const _0xcb95ac=_0x49d8a2;var _0x332b09,_0x10485f,_0xdd0833,_0x367e69;let _0x313143=(_0x332b09=(_0x10485f=this[_0xcb95ac(0xf0)])==null?void 0x0:_0x10485f['worldPoint'])==null?_0x6aff35:_0x332b09,_0x24311a=_0x20c995[_0xcb95ac(0x1e7)](_0x8a8f5f,_0x313143,_0x4d86d3);_0x108a14['transformByState']({'flipX':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x31c)],'flipY':_0x24311a[_0xcb95ac(0x238)]['flipY'],'left':_0x24311a[_0xcb95ac(0x238)]['left'],'top':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x25d)],'width':_0x24311a['worldRect'][_0xcb95ac(0x2b9)],'height':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x232)],'angle':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x1fa)]});let _0x512170=(_0xdd0833=(_0x367e69=this[_0xcb95ac(0xf0)])==null?void 0x0:_0x367e69[_0xcb95ac(0x1c4)])==null?_0x6aff35:_0xdd0833;_0x1c6891[_0xcb95ac(0x112)]({'left':_0x512170['x']-_0x2bea1d['cxnPointRadius'],'top':_0x512170['y']-_0x2bea1d[_0xcb95ac(0x1eb)]});}[_0x49d8a2(0x1b9)](_0x4474f1){const _0x261b8e=_0x49d8a2;if(!this[_0x261b8e(0x330)]||!this['_subUnitId'])return null;let {shapeId:_0x2908b6,cxnIndex:_0xe075e3}=_0x4474f1,_0x385b19=this[_0x261b8e(0x220)]['getShapeModel'](this[_0x261b8e(0x330)],this[_0x261b8e(0x227)],_0x2908b6);if(!_0x385b19)return null;let _0x1d3b9d=this[_0x261b8e(0x159)][_0x261b8e(0x26a)]({'unitId':this[_0x261b8e(0x330)],'subUnitId':this[_0x261b8e(0x227)],'drawingId':_0x2908b6});if(!(_0x1d3b9d!=null&&_0x1d3b9d['transform']))return null;let {left:_0x559a80=0x0,top:_0x5c8b46=0x0,width:_0x11dea7=0x0,height:_0x35f580=0x0,flipX:_0x3ee292=!0x1,flipY:_0x5c2784=!0x1,angle:_0x344afb}=_0x1d3b9d[_0x261b8e(0x166)];_0x385b19['updateContext']({'width':_0x11dea7,'height':_0x35f580});let _0x3e2efb=_0x385b19[_0x261b8e(0x198)]()[_0x261b8e(0x138)](_0x3c2434=>_0x3c2434[_0x261b8e(0x2d2)]===_0xe075e3);if(!_0x3e2efb)return null;let _0x5b15ab=_0x3ee292?_0x11dea7-_0x3e2efb['x']:_0x3e2efb['x'],_0x337684=_0x5c2784?_0x35f580-_0x3e2efb['y']:_0x3e2efb['y'];if(_0x344afb!==0x0&&_0x344afb!=null){let _0x10d3be=_0x344afb*Math['PI']/0xb4,_0x1a56f4=Math[_0x261b8e(0x17b)](_0x10d3be),_0x343ff5=Math[_0x261b8e(0x2c0)](_0x10d3be),_0x1b659c=_0x11dea7/0x2,_0x2c790f=_0x35f580/0x2,_0x4d72b3=_0x5b15ab-_0x1b659c,_0x48100a=_0x337684-_0x2c790f;_0x5b15ab=_0x1b659c+_0x4d72b3*_0x1a56f4-_0x48100a*_0x343ff5,_0x337684=_0x2c790f+_0x4d72b3*_0x343ff5+_0x48100a*_0x1a56f4;}_0x5b15ab+=_0x559a80,_0x337684+=_0x5c8b46;let _0x4e6e08=_0x3e2efb[_0x261b8e(0x2db)]/0xea60;_0x3ee292&&(_0x4e6e08=0xb4-_0x4e6e08),_0x5c2784&&(_0x4e6e08=-_0x4e6e08),_0x4e6e08+=_0x344afb||0x0,_0x4e6e08=(_0x4e6e08%0x168+0x168)%0x168;let _0x57adb6=_0x4d4669({'left':_0x559a80,'top':_0x5c8b46,'width':_0x11dea7,'height':_0x35f580},_0x344afb||0x0);return{'point':{'x':_0x5b15ab,'y':_0x337684},'angle':_0x4e6e08,'bounds':_0x57adb6};}[_0x49d8a2(0x25c)](_0x84120,_0x4c364e){const _0x4ac14=_0x49d8a2;let _0x10d9af=_0x4c364e['x']-_0x84120['x'],_0xcc06c4=_0x4c364e['y']-_0x84120['y'];return Math[_0x4ac14(0x1ea)](_0x10d9af)>=Math[_0x4ac14(0x1ea)](_0xcc06c4)?_0x10d9af>=0x0?0xb4:0x0:_0xcc06c4>=0x0?0x10e:0x5a;}['_reset'](){const _0x23b993=_0x49d8a2;this[_0x23b993(0x288)]=void 0x0,this['_unitId']=void 0x0,this[_0x23b993(0x227)]=void 0x0,this[_0x23b993(0x1c1)]();}['dispose'](){const _0x34341e=_0x49d8a2;this[_0x34341e(0x1c1)](),super[_0x34341e(0x2b0)]();}};ur=Y([J(0x1,_0x3002c9),J(0x2,_0x2565d9),J(0x3,_0x5a9176),J(0x4,_0x2320a1),J(0x5,_0x3465f0(_0x1a451a)),J(0x6,_0x3465f0(Z)),J(0x7,_0x3465f0(sr))],ur);let dr=class extends _0x1e0fa2{constructor(_0x234c61,_0x57459e,_0x4e71e4){const _0x531236=_0x49d8a2;super(),this[_0x531236(0x15b)]=_0x234c61,this['_drawingManagerService']=_0x57459e,this['_shapeRenderController']=_0x4e71e4,this[_0x531236(0x11a)]();}[_0x49d8a2(0x11a)](){const _0x3ecbb1=_0x49d8a2;this['disposeWithMe'](this[_0x3ecbb1(0x15b)][_0x3ecbb1(0x116)]['intercept'](this[_0x3ecbb1(0x15b)]['interceptor']['getInterceptPoints']()[_0x3ecbb1(0x2a0)],{'handler':(_0xe2b431,_0x303e55,_0xbd23a)=>{const _0x1a1c9a=_0x3ecbb1;var _0xdcd4b4;let {unitId:_0x131d39,subUnitId:_0x40f5e9,scene:_0x5149ef,resourceCollector:_0x219f8a}=_0x303e55,_0x41031c=(_0xdcd4b4=this['_drawingManagerService'][_0x1a1c9a(0x22d)](_0x131d39))==null?void 0x0:_0xdcd4b4[_0x40f5e9];return _0x41031c==null||_0x41031c[_0x1a1c9a(0xf9)][_0x1a1c9a(0x111)](_0xf3030e=>{const _0x5a8563=_0x1a1c9a;let _0x112ae9=_0x41031c[_0x5a8563(0x2f1)][_0xf3030e];_0x112ae9[_0x5a8563(0x12e)]===_0x336997[_0x5a8563(0x181)]&&!_0x112ae9[_0x5a8563(0x15c)]&&this[_0x5a8563(0x267)]['renderDrawingShape'](_0x112ae9,_0x5149ef,{'resourceCollector':_0x219f8a});}),_0xbd23a(_0xe2b431);}}));}};dr=Y([J(0x0,_0x3465f0(_0x4f0169)),J(0x1,_0x5a9176),J(0x2,_0x3465f0(X))],dr);let fr=class extends _0x1e0fa2{constructor(_0x56f396,_0x30409c,_0x377d64){const _0x4cd36f=_0x49d8a2;super(),this[_0x4cd36f(0x2af)]=_0x56f396,this[_0x4cd36f(0x2df)]=_0x30409c,this['_sheetPermissionCheckController']=_0x377d64,this[_0x4cd36f(0x231)]();}[_0x49d8a2(0x231)](){const _0x10c342=_0x49d8a2;this['disposeWithMe'](this[_0x10c342(0x2af)][_0x10c342(0x171)](_0xdc5f95=>{const _0x295723=_0x10c342;let _0x59fe05,_0x43fa45;if(_0xdc5f95['id']===_0x5db24c['id']||_0xdc5f95['id']===_0x357925['id']||_0xdc5f95['id']===_0x1c01fb['id']){let _0x97ca05=_0xdc5f95[_0x295723(0x2ba)];_0x59fe05=_0x97ca05[_0x295723(0x1b7)],_0x43fa45=_0x97ca05[_0x295723(0x2b4)];}!_0x59fe05||!_0x43fa45||this[_0x295723(0x207)][_0x295723(0x17f)]({'workbookTypes':[_0x3216bb],'worksheetTypes':[_0x57e1db]},_0x59fe05,_0x43fa45)||this['_sheetPermissionCheckController'][_0x295723(0x1f1)](this[_0x295723(0x2df)]['t'](_0x295723(0x10e)));}));}};fr=Y([J(0x0,_0x3465f0(_0x3002c9)),J(0x1,_0x3465f0(_0x9a7c24)),J(0x2,_0x3465f0(_0x2cc1a0))],fr);let pr=class extends _0x1e0fa2{constructor(_0x5432ad,_0x2e1647,_0x3637b4,_0x13d889,_0x416c1b,_0x7899bc,_0x242482,_0x131a5e,_0x4ff1da,_0x1e73a0,_0x161bab){const _0x32591b=_0x49d8a2;super(),this[_0x32591b(0x1b8)]=_0x5432ad,this[_0x32591b(0x175)]=_0x2e1647,this['_menuManagerService']=_0x3637b4,this['_sheetsShapeService']=_0x13d889,this['_localeService']=_0x416c1b,this[_0x32591b(0x2af)]=_0x7899bc,this[_0x32591b(0x159)]=_0x242482,this[_0x32591b(0x182)]=_0x131a5e,this[_0x32591b(0x2e9)]=_0x4ff1da,this[_0x32591b(0x107)]=_0x1e73a0,this[_0x32591b(0x185)]=_0x161bab,q(this,'_sidebarDisposable',null),q(this,_0x32591b(0x313),null),q(this,_0x32591b(0x273),!0x1),q(this,_0x32591b(0x203),0x0),q(this,_0x32591b(0xe5),new Set()),q(this,'_disposePopups',[]),this['_initMenu'](),this[_0x32591b(0x16d)](this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4c1a31[_0x32591b(0x261)])['subscribe'](_0xfc6a06=>{const _0x28c130=_0x32591b;if(!_0xfc6a06){var _0x530735;(_0x530735=this[_0x28c130(0x257)])==null||_0x530735[_0x28c130(0x2b0)]();return;}this[_0x28c130(0x303)](_0xfc6a06);})),this[_0x32591b(0x280)](),this['_registerShapeMenu'](),this[_0x32591b(0x291)](),this[_0x32591b(0x16d)](this[_0x32591b(0x185)][_0x32591b(0xfa)][_0x32591b(0x212)](_0x2af91a=>{const _0x2e696f=_0x32591b;_0x2af91a&&this[_0x2e696f(0x27d)]();}));}[_0x49d8a2(0x13f)](){this['_menuManagerService']['mergeMenu'](In);}['_registerShapeMenu'](){const _0x561c70=_0x49d8a2;this['_sheetCanvasPopManagerService']['registerFeatureMenu'](_0x336997[_0x561c70(0x181)],this[_0x561c70(0x239)][_0x561c70(0x1ab)](this)),this[_0x561c70(0x182)][_0x561c70(0x1a0)](_0x336997[_0x561c70(0x181)],0x6,0x4);}[_0x49d8a2(0x291)](){const _0x3826a2=_0x49d8a2;this[_0x3826a2(0x1b8)]['getAllUnitsForType'](_0x4c1a31[_0x3826a2(0x261)])['forEach'](_0x3057d4=>this[_0x3826a2(0x303)](_0x3057d4));}[_0x49d8a2(0x239)](_0x111a23,_0x387600,_0x4f8651,_0x3962c1){const _0x33ce89=_0x49d8a2;return[{'label':_0x33ce89(0x1f6),'index':0x0,'commandId':Bn['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651},'disable':_0x3962c1===_0x336997[_0x33ce89(0x173)]},{'label':'sheets-shape-ui.deleteShape','index':0x1,'commandId':_0x5f4db7['id'],'commandParams':{'unitId':_0x111a23,'drawings':[{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651,'drawingType':_0x3962c1}]},'disable':!0x1},{'label':_0x33ce89(0xfc),'index':0x2,'commandId':zn['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651},'disable':!0x1},{'label':_0x33ce89(0x332),'index':0x3,'commandId':_0x4deace['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipV','index':0x4,'commandId':_0x4deace['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'flipV':!0x0},'disable':!0x1},{'label':_0x33ce89(0x2ef),'index':0x4,'commandId':_0x45951d['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':_0x45951d['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'rotate':-0x5a},'disable':!0x1},{'label':_0x33ce89(0x1e1),'index':0x4,'commandId':_0x3209a5['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651},'disable':!0x1}];}[_0x49d8a2(0xf1)](_0x5f5098,_0x56177f,_0x320df2){const _0x21abf4=_0x49d8a2;let _0x222d3f=this[_0x21abf4(0x220)][_0x21abf4(0xeb)](_0x5f5098,_0x56177f,_0x320df2),_0x435bae=this['_sheetsShapeService'][_0x21abf4(0x264)](_0x5f5098,_0x56177f,_0x320df2);return _0x222d3f!==void 0x0&&_0x435bae!==void 0x0?{'shapeData':_0x435bae,'shapeId':_0x320df2,'shapeType':_0x222d3f,'unitId':_0x5f5098,'subUnitId':_0x56177f,'version':this[_0x21abf4(0x203)],'disableShapeOption':!0x1}:null;}[_0x49d8a2(0x303)](_0x542536){const _0x66e18c=_0x49d8a2;if(!_0x542536)return;let _0x257f19=_0x542536[_0x66e18c(0x229)]();this[_0x66e18c(0x107)][_0x66e18c(0x215)](_0x257f19)&&!this[_0x66e18c(0xe5)][_0x66e18c(0x215)](_0x257f19)&&(this[_0x66e18c(0x326)](_0x257f19),this[_0x66e18c(0xe5)][_0x66e18c(0x120)](_0x257f19));}['_clearPopups'](){const _0x514ff9=_0x49d8a2;this[_0x514ff9(0x286)][_0x514ff9(0x111)](_0x5e1f38=>_0x5e1f38['dispose']()),this['_disposePopups'][_0x514ff9(0x289)]=0x0;}[_0x49d8a2(0x326)](_0x1a335b){const _0x493db5=_0x49d8a2;var _0x1830a0;let _0x135bee=(_0x1830a0=this[_0x493db5(0x107)][_0x493db5(0x2c4)](_0x1a335b))==null?void 0x0:_0x1830a0[_0x493db5(0x228)],_0x58e87e=_0x135bee==null?void 0x0:_0x135bee[_0x493db5(0x14b)]();!_0x135bee||!_0x58e87e||(this[_0x493db5(0x16d)](_0x58e87e['createControl$'][_0x493db5(0x212)](()=>{const _0x465f5b=_0x493db5;let _0x246d53=_0x58e87e[_0x465f5b(0x149)]();if(this[_0x465f5b(0x27d)](),this['_isOpenedShapeEditPanel']||_0x246d53[_0x465f5b(0x105)]>0x1)return;let _0xa9cbf4=_0x246d53['values']()[_0x465f5b(0x15a)]()[_0x465f5b(0x21c)];if(!_0xa9cbf4)return;let _0x282dd0=this[_0x465f5b(0x159)][_0x465f5b(0x18b)](_0xa9cbf4[_0x465f5b(0x163)]);if(!_0x282dd0||_0x282dd0[_0x465f5b(0x12e)]!==_0x336997[_0x465f5b(0x181)])return;let {unitId:_0x23498d,subUnitId:_0x582e8d,drawingId:_0x1d11a4,drawingType:_0x557e8f}=_0x282dd0,_0x5881b9=this['_getShapeInfo'](_0x23498d,_0x582e8d,_0x1d11a4);if(!_0x5881b9)return;this[_0x465f5b(0x2e9)][_0x465f5b(0x14f)](_0x26ab00,!0x0);let _0x159c90=this[_0x465f5b(0x182)][_0x465f5b(0x259)](_0xa9cbf4,{'componentKey':wn,'direction':_0x465f5b(0x2ec),'offset':[0x0,_0x229ba4],'extraProps':{'unitId':_0x23498d,'subUnitId':_0x582e8d,'drawingId':_0x1d11a4,'drawingType':_0x557e8f,'shapeType':_0x5881b9[_0x465f5b(0x2b2)],'shapeData':_0x5881b9[_0x465f5b(0x1c5)]}});this['_disposePopups'][_0x465f5b(0x214)](this[_0x465f5b(0x16d)](_0x159c90)),this[_0x465f5b(0x159)][_0x465f5b(0x32c)]()[_0x465f5b(0x138)](_0x3909af=>_0x3909af['unitId']===_0x23498d&&_0x3909af[_0x465f5b(0x2b4)]===_0x582e8d&&_0x3909af[_0x465f5b(0x20e)]===_0x1d11a4)||this[_0x465f5b(0x159)]['focusDrawing']([{'unitId':_0x23498d,'subUnitId':_0x582e8d,'drawingId':_0x1d11a4}]);})),this[_0x493db5(0x16d)](_0x58e87e['clearControl$'][_0x493db5(0x212)](()=>{const _0x1bcf37=_0x493db5;this['_clearPopups'](),this['_contextService'][_0x1bcf37(0x14f)](_0x26ab00,!0x1),this[_0x1bcf37(0x159)][_0x1bcf37(0x2c8)](null);})),this[_0x493db5(0x16d)](_0x58e87e[_0x493db5(0x2f4)][_0x493db5(0x212)](()=>{this['_clearPopups']();})),this[_0x493db5(0x16d)](_0x58e87e[_0x493db5(0x1f2)][_0x493db5(0x212)](()=>{const _0x4f1cff=_0x493db5;this[_0x4f1cff(0x27d)]();})));}['_registerOperations'](){const _0x3bd3b2=_0x49d8a2;this[_0x3bd3b2(0x16d)](this[_0x3bd3b2(0x2af)][_0x3bd3b2(0x242)](_0x77c92=>{const _0x3bd0f4=_0x3bd3b2;if(_0x77c92['id']===Bn['id']){let {unitId:_0x330868,subUnitId:_0x2898ee,drawingId:_0x34aa8f}=_0x77c92['params'];this[_0x3bd0f4(0x203)]+=0x1,this[_0x3bd0f4(0x313)]=this['_getShapeInfo'](_0x330868,_0x2898ee,_0x34aa8f),this['_clearPopups'](),this[_0x3bd0f4(0x315)]();}if(_0x77c92['id']===zn['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']()),_0x77c92['id']===_0x22295a['id']){let {unitId:_0x5b5137,subUnitId:_0x615b87,shapeId:_0x347c0f}=_0x77c92[_0x3bd0f4(0x2ba)];if(this[_0x3bd0f4(0x313)]&&this[_0x3bd0f4(0x313)][_0x3bd0f4(0x142)]===_0x347c0f){let _0x33a72b=this[_0x3bd0f4(0xf1)](_0x5b5137,_0x615b87,_0x347c0f);_0x33a72b&&(this[_0x3bd0f4(0x203)]+=0x1,_0x33a72b[_0x3bd0f4(0x1e2)]=this[_0x3bd0f4(0x203)],this[_0x3bd0f4(0x313)]=_0x33a72b,this[_0x3bd0f4(0x273)]&&this[_0x3bd0f4(0x315)]());}}})),this[_0x3bd3b2(0x16d)](this[_0x3bd3b2(0x159)]['focus$'][_0x3bd3b2(0x212)](_0x14ff20=>{const _0x4cee72=_0x3bd3b2;if(this[_0x4cee72(0x273)]===!0x1)return;if(_0x14ff20[_0x4cee72(0x289)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x14ff20[_0x4cee72(0x289)]===0x1&&_0x14ff20[0x0][_0x4cee72(0x12e)]===_0x336997[_0x4cee72(0x181)]&&(this[_0x4cee72(0x203)]+=0x1,this['_activeShapeInfo']=this[_0x4cee72(0xf1)](_0x14ff20[0x0][_0x4cee72(0x1b7)],_0x14ff20[0x0][_0x4cee72(0x2b4)],_0x14ff20[0x0][_0x4cee72(0x20e)]),this[_0x4cee72(0x313)])){this[_0x4cee72(0x315)]();return;}let _0x5df85c=_0x14ff20['filter'](_0x18ac1d=>_0x18ac1d[_0x4cee72(0x12e)]===_0x336997['DRAWING_SHAPE']);if(_0x14ff20[_0x4cee72(0x289)]>0x1&&_0x5df85c[_0x4cee72(0x289)]===_0x14ff20[_0x4cee72(0x289)]){if(this[_0x4cee72(0x203)]+=0x1,this[_0x4cee72(0x313)]=this[_0x4cee72(0xf1)](_0x14ff20[0x0][_0x4cee72(0x1b7)],_0x14ff20[0x0][_0x4cee72(0x2b4)],_0x14ff20[0x0]['drawingId']),this[_0x4cee72(0x313)]){this[_0x4cee72(0x315)]();return;}}else{if(this[_0x4cee72(0x203)]+=0x1,this['_activeShapeInfo']=this[_0x4cee72(0xf1)](_0x14ff20[0x0]['unitId'],_0x14ff20[0x0]['subUnitId'],_0x14ff20[0x0][_0x4cee72(0x20e)]),this[_0x4cee72(0x313)]){this[_0x4cee72(0x313)]['disableShapeOption']=!0x0,this[_0x4cee72(0x315)]();return;}}this[_0x4cee72(0x33a)]();}));}[_0x49d8a2(0x315)](){const _0x2ce5f9=_0x49d8a2;this[_0x2ce5f9(0x313)]&&(this[_0x2ce5f9(0x257)]=this[_0x2ce5f9(0x175)][_0x2ce5f9(0x277)]({'id':Sn,'header':{'title':this[_0x2ce5f9(0x2df)]['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':Sn,...this[_0x2ce5f9(0x313)]},'onClose':()=>{const _0x7ba8b1=_0x2ce5f9;this[_0x7ba8b1(0x159)][_0x7ba8b1(0x2c8)](null),this['_contextService'][_0x7ba8b1(0x14f)](_0x26ab00,!0x1),this[_0x7ba8b1(0x257)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0xd16ec=_0x49d8a2;this[_0xd16ec(0x273)]=!0x1,this[_0xd16ec(0x175)][_0xd16ec(0x113)](Sn),this['_sidebarDisposable']=null,this['_contextService'][_0xd16ec(0x14f)](_0x26ab00,!0x1),this[_0xd16ec(0x159)][_0xd16ec(0x2c8)](null);}};pr=Y([J(0x0,_0x2320a1),J(0x1,_0x3465f0(_0xf1c3ee)),J(0x2,_0x25cc13),J(0x3,_0x3465f0(_0x1a451a)),J(0x4,_0x3465f0(_0x9a7c24)),J(0x5,_0x3002c9),J(0x6,_0x5a9176),J(0x7,_0x3465f0(_0x57df42)),J(0x8,_0x2d429f),J(0x9,_0x2565d9),J(0xa,_0x3465f0(Zn))],pr);let $=class extends _0x257c5b{constructor(_0x50c0ea=Vn,_0x42d6fe,_0x4ceb7b,_0x562450,_0x1b7580){const _0xf6f511=_0x49d8a2;super(),this[_0xf6f511(0x18f)]=_0x50c0ea,this[_0xf6f511(0x26b)]=_0x42d6fe,this[_0xf6f511(0x2af)]=_0x4ceb7b,this[_0xf6f511(0x23b)]=_0x562450,this[_0xf6f511(0x107)]=_0x1b7580;let {..._0xce0423}=_0x1c7285({},Vn,this[_0xf6f511(0x18f)]);this[_0xf6f511(0x23b)]['setConfig'](_0xf6f511(0x218),_0xce0423),this[_0xf6f511(0x23e)]();}[_0x49d8a2(0x328)](){_0x14b49a(this['_injector'],[[pr],[ir],[X],[dr]]);}['onSteady'](){const _0x481086=_0x49d8a2;this[_0x481086(0x26b)]['get'](pr)[_0x481086(0x291)]();}[_0x49d8a2(0x320)](){const _0x4ca7bc=_0x49d8a2;[[sr],[Z],[cr]][_0x4ca7bc(0x111)](_0x49a005=>this[_0x4ca7bc(0x26b)][_0x4ca7bc(0x120)](_0x49a005)),_0x14b49a(this[_0x4ca7bc(0x26b)],[[cr],[Z]]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x261)],[sr]),this[_0x4ca7bc(0x107)]['registerRenderModule'](_0x4c1a31['UNIVER_SHEET'],[er]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31['UNIVER_SHEET'],[ur]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x261)],[nr]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x2ae)],[rr]);}['onStarting'](){const _0x22f8a0=_0x49d8a2;this['_injector'][_0x22f8a0(0x120)]([$n]),this[_0x22f8a0(0x26b)][_0x22f8a0(0x1bc)]($n);let _0x527ee2=this[_0x22f8a0(0x26b)];[[pr],[ir],[X],[dr],[Kn],[Zn],[tr],[Q],[fr]]['forEach'](_0x2fa7d0=>_0x527ee2['add'](_0x2fa7d0)),_0x14b49a(this[_0x22f8a0(0x26b)],[[pr],[ir],[X],[Kn],[Zn],[tr],[Q],[fr]]);}[_0x49d8a2(0x23e)](){const _0x280c79=_0x49d8a2;[xn,dn,zn,Bn,Dn,bn][_0x280c79(0x111)](_0x443269=>this['disposeWithMe'](this[_0x280c79(0x2af)][_0x280c79(0x147)](_0x443269)));}};q($,_0x49d8a2(0x1ff),_0x4c1a31['UNIVER_SHEET']),q($,'pluginName',_0x49d8a2(0x2c9)),q($,_0x49d8a2(0x208),Ln),q($,_0x49d8a2(0x1e2),Rn),$=Y([_0x15410a(_0x2da0f1,_0x464a71,_0x1c2191,_0x551142),J(0x1,_0x3465f0(_0xab16b2)),J(0x2,_0x3002c9),J(0x3,_0xb443b),J(0x4,_0x2565d9)],$);export{In as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
1
+ const _0x43dbb9=_0x449a;(function(_0x4e70a5,_0xdf7fd3){const _0x5a991a=_0x449a,_0x23ff02=_0x4e70a5();while(!![]){try{const _0x14f7e7=parseInt(_0x5a991a(0x202))/0x1+parseInt(_0x5a991a(0x1d6))/0x2+-parseInt(_0x5a991a(0x2b7))/0x3*(-parseInt(_0x5a991a(0x1e1))/0x4)+parseInt(_0x5a991a(0x2a0))/0x5+-parseInt(_0x5a991a(0x88))/0x6+-parseInt(_0x5a991a(0x1af))/0x7*(parseInt(_0x5a991a(0x1ef))/0x8)+-parseInt(_0x5a991a(0x262))/0x9;if(_0x14f7e7===_0xdf7fd3)break;else _0x23ff02['push'](_0x23ff02['shift']());}catch(_0xaf2a7c){_0x23ff02['push'](_0x23ff02['shift']());}}}(_0x1d5d,0xef7b5));import{ComponentManager as _0x1953f8,IMenuManagerService as _0x44a75b,ISidebarService as _0x10b5ac,IconManager as _0x200e2a,MenuItemType as _0x142b74,RibbonInsertGroup as _0x24939b,getMenuHiddenObservable as _0x227618,useDependency as _0x597c42,useObservable as _0x31d745}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x427c58,ImageSourceTypeEnum as _0x283528,ShapeArrowSizeEnum as _0x421194,ShapeArrowTypeEnum as _0x454053,ShapeDefaultConfig as _0x2bc8ec,ShapeFillEnum as _0x27d461,ShapeLineTypeEnum as _0x517d31,ShapeModel as _0xf0c0c,ShapeRenderModeEnum as _0x33d52f,ShapeTypeEnum as _0x250922,computeConnectorRouteLayout as _0x3de713,getBasicShapeRotateBound as _0x15c292,isConnectorShape as _0x1f7f23,isCurvedConnectorShape as _0x2e1471,routeConnectorLineShape as _0xde601c}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0xe57842,createShapeFormulaDocument as _0x50262d,createShapeTextBoxShapeData as _0x25f061}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x28064d,InsertSheetsShapeMutation as _0x5addb7,RemoveSheetsShapeMutation as _0x35cadb,SetShapeDrawingDataCommand as _0xedfea5,SetSheetsShapeRotateCommand as _0x59af59,SetSheetsShapeTextVerticalToggleCommand as _0x1e9400,SheetsShapeService as _0x26a217,ToggleSheetsShapeFlipCommand as _0x494ee9,UniverSheetsShapePlugin as _0x249942,UpdateConnectorRelationCommand as _0x551591,UpdateLineShapeResizeCommand as _0x5760d5,UpdateSheetsShapeDataMutation as _0x19b81c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x202737,CommandType as _0x8e0e3c,DependentOn as _0x8fb429,Disposable as _0x4760b3,DocumentDataModel as _0x10f73c,DrawingTypeEnum as _0x5d03f6,FOCUSING_COMMON_DRAWINGS as _0x596494,FOCUSING_SHAPE_TEXT_EDITOR as _0x4d1a78,HorizontalAlign as _0x1bf681,ICommandService as _0x4d9cac,IConfigService as _0x1e0ba7,IContextService as _0x21d773,IImageIoService as _0x5dd91b,IURLImageService as _0x488e09,IUndoRedoService as _0x4830b5,IUniverInstanceService as _0x7113c7,Inject as _0x450bf3,Injector as _0x183eff,LocaleService as _0xa3717a,Plugin as _0x33cfb9,UniverInstanceType as _0x2a1b28,VerticalAlign as _0x3d0a33,createInternalEditorID as _0x1a4a4b,generateRandomId as _0x2bfd17,merge as _0x2f8dd2,toDisposable as _0x43b296,touchDependencies as _0xdf78a}from'@univerjs/core';import{CopySheetCommand as _0x16ae42,RemoveSheetCommand as _0x299032,SheetInterceptorService as _0x9d40d,SheetPermissionCheckController as _0xf21f2,SheetSkeletonService as _0x1fc54d,SheetsSelectionsService as _0x412710,WorkbookEditablePermission as _0x1b5cb2,WorksheetEditPermission as _0x194b28,attachRangeWithCoord as _0x403c80,discreteRangeToRange as _0x25d2bc,getSheetCommandTarget as _0x59589e}from'@univerjs/sheets';import{IDrawingManagerService as _0x324617,SetDrawingSelectedOperation as _0xd68623,getDrawingShapeKeyByDrawingSearch as _0x7f2912}from'@univerjs/drawing';import{CURSOR_TYPE as _0x110f16,Circle as _0x536c54,DRAWING_OBJECT_LAYER_INDEX as _0x11332b,DocumentSkeleton as _0x475752,DocumentViewModel as _0x36f5ae,Documents as _0x1a519e,IRenderManagerService as _0x263af6,Image as _0x3100f0,RENDER_CLASS_TYPE as _0x842655,SHEET_VIEWPORT_KEY as _0x4ce309,Shape as _0x300c3f,Transform as _0x112a4b,Vector2 as _0xf6e38e}from'@univerjs/engine-render';import{COPY_TYPE as _0x202be0,ISheetClipboardService as _0x5dfcb1,PREDEFINED_HOOK_NAME as _0x32e6c9,SheetCanvasPopManagerService as _0x15ebbe,SheetPrintInterceptorService as _0x11a3e2,SheetScrollManagerService as _0xdbee74,SheetSkeletonManagerService as _0x392ff0,deriveStateFromActiveSheet$ as _0x4f53b0,getCurrentRangeDisable$ as _0x3b91cb,getViewportByCell as _0x1b930d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x502f7b,EMPTY as _0x3149ab,Observable as _0x573c9d,of as _0x236700,switchMap as _0x46afa7}from'rxjs';import{FormulaShapeAnimationController as _0xeb6567,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x37ad89,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x9bdae2,ShapeEditPanel as _0x30898f,ShapeFloatingToolbar as _0xf7955b,ShapeGroupEnum as _0x2cca23,ShapePickerDropdown as _0x106929,ShapePickerPanel as _0x43451f,ShapeTextEditorContainer as _0x1ef440,ShapeTextFloatMenuRenderControllerBase as _0xd3a510,ShapeTextFloatToolbar as _0x312819,UniverShapeEditorUIPlugin as _0x5337ae,activateDrawingObject as _0x4df6a5,buildShapeTextDataUpdate as _0x299119,clearActiveDrawingObjects as _0xbdee17,drawFormulaShapeAnimationLayers as _0xe06053,getTextModel as _0x4d64d0,getTextStyle as _0x32374d,normalizeShapeTextModel as _0x5cbbbf,plainShapeTextToDocumentData as _0x12e116,prepareShapeTextDocumentData as _0x18b9c3,resolveFormulaShapeAutoFitSize as _0x3a11fc,resolveShapeTextDocumentRenderLayout as _0x2feb6a,resolveShapeTextEditorBehaviorShapeData as _0x11ab34,resolveShapeTextEditorWrapStrategy as _0x432797,shouldAllowShapeTextEditorHostSizeShrink as _0x7ce441,shouldClipShapeTextDocument as _0x25e48c,useFormulaShapeToolbar as _0x1d16dd}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0xd5003,DrawingImageClipService as _0xe0e719,DrawingRenderService as _0x4d43e7,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1f5a6b,OBJECT_LIST_FLOATING_SECTION_ID as _0x34974e,ObjectListPanelBase as _0x313482,getCurrentUnitInfo as _0x4a469b,getObjectListPanelLabels as _0x11da8e,getObjectListPanelSectionIdForDrawingType as _0x450da7,getObjectListPanelTypeName as _0x4a9bd6,insertGroupObject as _0x435a76}from'@univerjs/drawing-ui';import{Fragment as _0xf1e5d2,jsx as _0x2b677f,jsxs as _0x27f2a4}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2cef26}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x1fbaec,SheetsDrawingGroupCopyPasteController as _0x12c68f,UniverSheetsDrawingUIPlugin as _0x56b5ca}from'@univerjs/sheets-drawing-ui';import{ObjectLayersIcon as _0x347bf2}from'@univerjs/icons';import{DrawingApplyType as _0x2640be,ISheetDrawingService as _0x57e4c3,RemoveSheetDrawingCommand as _0x10723d,SetDrawingApplyMutation as _0x6d6f97,SetDrawingArrangeCommand as _0x390f9f,SetSheetDrawingCommand as _0x1fd507,transformToAxisAlignPosition as _0x38f007,transformToDrawingPosition as _0x556f36}from'@univerjs/sheets-drawing';import{memo as _0x3adf0a,useEffect as _0x15fc40,useMemo as _0x293422,useReducer as _0x97793a,useState as _0x5a0562}from'react';import{DocSelectionManagerService as _0x1263d4}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x86b0a2,DocSelectionRenderService as _0x7b1fa8}from'@univerjs/docs-ui';function hn(_0xf21082,_0x240fd8){const _0x5eb3c1=_0x449a;let _0x2fe8ba={};for(let _0x5f1b45 of Object[_0x5eb3c1(0x293)](_0x240fd8)){let _0x11debf=_0x240fd8[_0x5f1b45],_0x45311d=_0xf21082[_0x5f1b45];if(_0x11debf!==void 0x0){if(_0x45311d===void 0x0){_0x2fe8ba[_0x5f1b45]=void 0x0;continue;}typeof _0x11debf==_0x5eb3c1(0x2cf)&&_0x11debf&&!Array[_0x5eb3c1(0x271)](_0x11debf)&&typeof _0x45311d==_0x5eb3c1(0x2cf)&&_0x45311d&&!Array[_0x5eb3c1(0x271)](_0x45311d)?_0x2fe8ba[_0x5f1b45]=hn(_0x45311d,_0x11debf):_0x2fe8ba[_0x5f1b45]=_0x45311d;}}return _0x2fe8ba;}const gn={'type':_0x8e0e3c[_0x43dbb9(0x82)],'id':_0x43dbb9(0xf3),'handler':(_0x2e3fb6,_0xa7a62d)=>{const _0x221cad=_0x43dbb9;let _0x4b73c4=_0x2e3fb6[_0x221cad(0x1bd)](_0x26a217),{unitId:_0x53a325,subUnitId:_0xc66f0c,shapeType:_0x3c2935,shapeId:_0x5d6e50,shapeData:_0x32d918,oldShapeJSON:_0x3903dc}=_0xa7a62d;if(!_0x4b73c4[_0x221cad(0x251)](_0x53a325,_0xc66f0c,_0x5d6e50))return!0x1;let _0x3e99f2=_0x2e3fb6[_0x221cad(0x1bd)](_0x4d9cac),_0x369666=_0x2e3fb6[_0x221cad(0x1bd)](_0x4830b5),{oldShapeType:_0x421706,oldShapeData:_0x422654={}}=_0x3903dc,_0xd32860=hn(_0x422654,_0x32d918||{}),_0x21966d={'id':_0x19b81c['id'],'params':{'unitId':_0x53a325,'subUnitId':_0xc66f0c,'shapeId':_0x5d6e50,'shapeType':_0x3c2935,'shapeData':_0x32d918}},_0x48a4c4={'id':_0x19b81c['id'],'params':{'unitId':_0x53a325,'subUnitId':_0xc66f0c,'shapeId':_0x5d6e50,'shapeType':_0x421706,'shapeData':_0xd32860}};return _0x3e99f2[_0x221cad(0x193)](_0x21966d['id'],_0x21966d[_0x221cad(0x118)])?(_0x369666[_0x221cad(0x278)]({'unitID':_0x53a325,'undoMutations':[_0x48a4c4],'redoMutations':[_0x21966d]}),!0x0):!0x1;}};function _n(_0x3790d7,_0x2e21ab,_0x3c111d,_0x106f77,_0x29067f,_0x210dda){const _0x302695=_0x43dbb9;let _0x160d51={'unitId':_0x2e21ab,'subUnitId':_0x3c111d,'shapeId':_0x106f77,'shapeData':_0x210dda,'oldShapeJSON':_0x29067f};return _0x3790d7[_0x302695(0x2d0)](gn['id'],_0x160d51);}function vn(_0x5bab22,_0x5e48b2,_0xab0945,_0x48f5ca,_0x36d2ce,_0x508021){const _0x48c629=_0x43dbb9;let _0x1bf7fa={'unitId':_0x5e48b2,'subUnitId':_0xab0945,'shapeId':_0x48f5ca,'shapeData':_0x508021,'oldShapeJSON':_0x36d2ce};return _0x5bab22[_0x48c629(0x2d0)](gn['id'],_0x1bf7fa);}function yn(_0x4d922d){'@babel/helpers - typeof';const _0x42cc13=_0x43dbb9;return yn=typeof Symbol==_0x42cc13(0x1ac)&&typeof Symbol['iterator']==_0x42cc13(0x136)?function(_0x39a3f){return typeof _0x39a3f;}:function(_0xfba3ca){const _0x4ee0f2=_0x42cc13;return _0xfba3ca&&typeof Symbol==_0x4ee0f2(0x1ac)&&_0xfba3ca[_0x4ee0f2(0x8c)]===Symbol&&_0xfba3ca!==Symbol[_0x4ee0f2(0x2a9)]?_0x4ee0f2(0x136):typeof _0xfba3ca;},yn(_0x4d922d);}function bn(_0x5ed4d1,_0x2554b2){const _0x14f895=_0x43dbb9;if(yn(_0x5ed4d1)!=_0x14f895(0x2cf)||!_0x5ed4d1)return _0x5ed4d1;var _0xfeb47=_0x5ed4d1[Symbol[_0x14f895(0x1cc)]];if(_0xfeb47!==void 0x0){var _0x794ace=_0xfeb47[_0x14f895(0x210)](_0x5ed4d1,_0x2554b2||_0x14f895(0x2ce));if(yn(_0x794ace)!='object')return _0x794ace;throw TypeError(_0x14f895(0x108));}return(_0x2554b2===_0x14f895(0x16a)?String:Number)(_0x5ed4d1);}function xn(_0x535207){const _0x438d83=_0x43dbb9;var _0x27a401=bn(_0x535207,_0x438d83(0x16a));return yn(_0x27a401)==_0x438d83(0x136)?_0x27a401:_0x27a401+'';}function Y(_0x45e9e2,_0x5ee48a,_0x33fd40){const _0x2dc04b=_0x43dbb9;return(_0x5ee48a=xn(_0x5ee48a))in _0x45e9e2?Object[_0x2dc04b(0xd4)](_0x45e9e2,_0x5ee48a,{'value':_0x33fd40,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e9e2[_0x5ee48a]=_0x33fd40,_0x45e9e2;}function Sn(_0x15c52d,_0x5b4e88,_0x2881d8){var _0x1cf808;let _0x56007d=_0x11ab34(_0x15c52d,{..._0x5b4e88,'dataModel':{...(_0x1cf808=_0x5b4e88['dataModel'])==null?{}:_0x1cf808,..._0x2881d8?{'doc':_0x2881d8}:null}}),_0x45581d=_0x432797(_0x56007d);return{'clip':_0x25e48c(_0x56007d,_0x45581d),'wrapStrategy':_0x45581d};}var Cn=class extends _0x300c3f{constructor(_0x560cbe,_0x1768aa){const _0xda73e=_0x43dbb9;super(_0x560cbe,_0x1768aa),Y(this,'_props',void 0x0),Y(this,_0xda73e(0x17d),new _0xeb6567(()=>this[_0xda73e(0x15d)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Y(this,_0xda73e(0xaa),!0x0),Y(this,'_drawingType',_0x5d03f6[_0xda73e(0x23a)]),Y(this,_0xda73e(0x2aa),!0x0),this[_0xda73e(0x1b4)]={..._0x1768aa},this['_formulaAnimation']['setPresentation'](_0x1768aa[_0xda73e(0x1c2)],_0x1768aa[_0xda73e(0x2dc)]!==!0x1),this[_0xda73e(0x284)](),this[_0xda73e(0x10d)]();}['_init'](){const _0x289520=_0x43dbb9;this[_0x289520(0x184)][_0x289520(0x17c)](_0x4105ab=>{const _0x1459fd=_0x289520;this[_0x1459fd(0x2bf)](_0x4105ab);});}['setPrstGeom'](_0x1943fa){const _0x1a80ba=_0x43dbb9;this['_props'][_0x1a80ba(0x132)]=_0x1943fa;}[_0x43dbb9(0xc7)](_0xc8c20b){const _0x2ccd13=_0x43dbb9;this[_0x2ccd13(0x1b4)][_0x2ccd13(0x206)]=_0xc8c20b,this[_0x2ccd13(0x15d)](!0x0);}[_0x43dbb9(0xdc)](_0x99f1e5,_0x3e9e8a=!0x0){const _0x1a6ffe=_0x43dbb9;this[_0x1a6ffe(0x17d)][_0x1a6ffe(0x142)](_0x99f1e5,_0x3e9e8a),this[_0x1a6ffe(0x1b4)]['formulaPresentation']=_0x99f1e5,this[_0x1a6ffe(0x10d)](),this['makeDirty'](!0x0);}[_0x43dbb9(0x10d)](){const _0x246453=_0x43dbb9;let _0x311cd3=this[_0x246453(0x1b4)][_0x246453(0xc0)],_0x1eaf59=_0x311cd3[_0x246453(0xc1)](),_0x3f0d67=_0x5cbbbf(_0x1eaf59==null?void 0x0:_0x1eaf59[_0x246453(0x29c)]),_0x585098=_0x3f0d67==null?void 0x0:_0x3f0d67[_0x246453(0xe5)],_0x3af3e3=this['_formulaAnimation'][_0x246453(0xca)]();if(!_0x585098||_0x3af3e3[_0x246453(0x15f)]===0x0)return;_0x311cd3[_0x246453(0x104)]({'width':this[_0x246453(0xf7)],'height':this[_0x246453(0x1dc)]});let _0x5b85eb=_0x3a11fc({'documentData':_0x3af3e3[_0x246453(0x29a)](_0x267f6e=>_0x50262d(_0x585098,_0x267f6e)),'height':this[_0x246453(0x1dc)],'shapeData':_0x311cd3['getShapeData'](),'textRect':_0x311cd3[_0x246453(0x11a)]({'left':0x0,'top':0x0,'width':this[_0x246453(0xf7)],'height':this[_0x246453(0x1dc)]}),'width':this[_0x246453(0xf7)]});if(_0x5b85eb){var _0x18ac78;this[_0x246453(0x90)](_0x5b85eb[_0x246453(0xf7)],_0x5b85eb['height']),(_0x18ac78=this[_0x246453(0x17f)]())==null||(_0x18ac78=_0x18ac78[_0x246453(0x279)]())==null||_0x18ac78['debounceRefreshControls']();}}get[_0x43dbb9(0x25d)](){const _0x4dc28a=_0x43dbb9;return this[_0x4dc28a(0x1b4)]['unitId'];}get[_0x43dbb9(0x212)](){const _0x59f6fa=_0x43dbb9;return this['_props'][_0x59f6fa(0x212)];}[_0x43dbb9(0x2bf)](_0x1a6f3b){const _0x59f64e=_0x43dbb9;if(this[_0x59f64e(0x1b4)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x391dfe,height:_0x3d75fc}=this,{width:_0x5b3329=0x0,height:_0x34cd16=0x0}=_0x1a6f3b[_0x59f64e(0x1b6)],{left:_0x452af3=0x0,top:_0x4e3e08=0x0,right:_0x27db71=0x0,bottom:_0x4f79d8=0x0}=this[_0x59f64e(0x1b4)]['srcRect'],_0x59577c=_0x452af3,_0x1c2fb3=_0x4e3e08,_0x2e94b5=_0x27db71,_0x39664e=_0x4f79d8,_0x27f803=!0x1;if(_0x5b3329!==0x0&&_0x5b3329!==_0x391dfe){let _0x1491bb=_0x452af3/_0x5b3329,_0x1e145d=_0x27db71/_0x5b3329;_0x59577c=_0x391dfe*_0x1491bb,_0x2e94b5=_0x391dfe*_0x1e145d,_0x27f803=!0x0;}if(_0x34cd16!==0x0&&_0x34cd16!==_0x3d75fc){let _0x5d3af6=_0x4e3e08/_0x34cd16,_0x40cea9=_0x4f79d8/_0x34cd16;_0x1c2fb3=_0x3d75fc*_0x5d3af6,_0x39664e=_0x3d75fc*_0x40cea9,_0x27f803=!0x0;}_0x27f803&&this[_0x59f64e(0x20f)]({'left':_0x59577c,'top':_0x1c2fb3,'right':_0x2e94b5,'bottom':_0x39664e});}['setSrcRect'](_0x5b8dd8){const _0x1d73d2=_0x43dbb9;this[_0x1d73d2(0x1b4)][_0x1d73d2(0x2e8)]=_0x5b8dd8,this['makeDirty'](!0x0);}[_0x43dbb9(0x1a2)](_0x261c58){const _0x536903=_0x43dbb9;this[_0x536903(0x1b4)][_0x536903(0x1a5)]=_0x261c58,this['makeDirty'](!0x0);}set[_0x43dbb9(0x10c)](_0x3fb161){this['_transform']=_0x3fb161;}get[_0x43dbb9(0x10c)](){const _0x29edd9=_0x43dbb9;this[_0x29edd9(0x125)]||this['_setTransForm']();let _0x1882f9=this[_0x29edd9(0x125)]['clone']();return this[_0x29edd9(0x14e)](_0x1882f9);}get['shapeModel'](){const _0x592fc8=_0x43dbb9;return this[_0x592fc8(0x1b4)][_0x592fc8(0xc0)];}get['shapeId'](){const _0x1128b1=_0x43dbb9;return this['_props'][_0x1128b1(0xfc)];}get[_0x43dbb9(0x19d)](){return _0x842655['SHAPE'];}['_draw'](_0x34ee13,_0xbce4a9,_0x440648,_0x3e6f61){const _0x141f03=_0x43dbb9;let _0x51de90=this[_0x141f03(0x1b4)][_0x141f03(0xc0)];if(!_0x51de90||!_0xbce4a9)return;let _0x5dd801=_0x440648==null?this['width']:_0x440648,_0x2409d3=_0x3e6f61==null?this['height']:_0x3e6f61,_0x308d91={'shapeType':_0x51de90[_0x141f03(0x2ad)](),'width':_0x5dd801,'height':_0x2409d3},_0x52b487={'renderMode':_0x33d52f['Path'],'oKey':this[_0x141f03(0xe8)],'image':this[_0x141f03(0x1b4)][_0x141f03(0x1a5)],'angle':this[_0x141f03(0x2e1)]};_0x51de90['updateContext'](_0x308d91),_0x34ee13['save']();let _0x5de896={'top':0x0,'left':0x0,'width':_0x5dd801,'height':_0x2409d3};_0x51de90['render'](_0x34ee13,_0x5de896,_0x52b487),_0x34ee13[_0x141f03(0x22f)]();let _0x5056b4=_0x51de90[_0x141f03(0xc1)](),_0x483950=_0x51de90[_0x141f03(0x11a)](_0x5de896),_0x2895b3=_0x51de90[_0x141f03(0xed)]();if(_0x5056b4&&_0x483950&&!_0x2895b3){_0x34ee13[_0x141f03(0x1fd)](),this[_0x141f03(0xde)]()['flipX']&&_0x34ee13[_0x141f03(0x20b)](-0x1,0x1);let _0x4bafcb=_0x5dd801/0x2,_0x2822d0=_0x2409d3/0x2;_0x34ee13[_0x141f03(0x167)](-_0x4bafcb,-_0x2822d0),_0x34ee13[_0x141f03(0xd8)](),this['_drawShapeText'](_0x34ee13,_0x5056b4,_0x483950),_0x34ee13[_0x141f03(0x22f)]();}}['getDrawingPoints'](_0x5d47e8){}['_drawShapeText'](_0x2f9156,_0x128f56,_0x481377){const _0x5079ba=_0x43dbb9;var _0x15c167;this[_0x5079ba(0x1b4)][_0x5079ba(0x206)]||(!((_0x15c167=_0x128f56[_0x5079ba(0x29c)])!=null&&_0x15c167[_0x5079ba(0xe5)])&&_0x5079ba(0x1ed)in _0x128f56&&_0x128f56[_0x5079ba(0x1ed)]===!0x1?this['_drawSimpleText'](_0x2f9156,_0x128f56,_0x481377):this[_0x5079ba(0xc4)](_0x2f9156,_0x128f56,_0x481377));}['_drawSimpleText'](_0x47de01,_0x4e878d,_0x5cfaa1){const _0x47591a=_0x43dbb9;var _0x1d8187;this[_0x47591a(0xc4)](_0x47de01,{..._0x4e878d,'text':(_0x1d8187=_0x4e878d[_0x47591a(0x199)])==null?'':_0x1d8187,'dataModel':{'doc':_0x12e116(_0x4e878d,_0x47591a(0x24e)+this[_0x47591a(0xe8)])}},_0x5cfaa1);}[_0x43dbb9(0xc4)](_0x5efc12,_0x5a884c,_0x3f6287){const _0x330a02=_0x43dbb9;_0xe06053(_0x5efc12,this[_0x330a02(0x17d)],(_0x33cbab,_0x21b403)=>{const _0x35136a=_0x330a02;this[_0x35136a(0x2b4)](_0x33cbab,_0x5a884c,_0x3f6287,_0x21b403);});}['_drawRichTextLayer'](_0x3074c3,_0x2476d5,_0x92c6ed,_0xd97716){const _0x1f90e3=_0x43dbb9;var _0x4da2d9,_0xa2abcc;let _0x1e1392=this[_0x1f90e3(0x1b4)][_0x1f90e3(0x183)];if(!_0x2476d5[_0x1f90e3(0x29c)]||!_0x1e1392)return;let _0x7cd7a2=_0x5cbbbf(_0x2476d5[_0x1f90e3(0x29c)]);if(!_0x7cd7a2)return;let _0x1e5228=_0x7cd7a2['doc'];if(!_0x1e5228)return;let _0x16fdd0=_0x50262d(_0x1e5228,_0xd97716),_0x452eee=(_0x4da2d9=_0x7cd7a2['va'])==null?_0x3d0a33[_0x1f90e3(0x116)]:_0x4da2d9,_0x204ca4=(_0xa2abcc=_0x7cd7a2['ha'])==null?_0x1bf681['LEFT']:_0xa2abcc,_0x53d39c=Sn(this[_0x1f90e3(0x1b4)]['shapeModel']['getShapeData'](),_0x2476d5,_0x16fdd0),_0x5852b0=_0x2476d5[_0x1f90e3(0xd1)],_0x5574d6=new _0x10f73c(_0x18b9c3(_0x16fdd0,{'isHorizontal':_0x5852b0!==!0x1,'textRect':_0x92c6ed,'verticalAlign':_0x452eee,'horizontalAlign':_0x204ca4,'wrapStrategy':_0x53d39c['wrapStrategy']})),_0x37ffac=new _0x36f5ae(_0x5574d6),_0x5a23e2=_0x475752[_0x1f90e3(0x9c)](_0x37ffac,_0x1e1392);_0x5a23e2[_0x1f90e3(0x264)]();let _0x10a7c1=_0x5a23e2[_0x1f90e3(0x175)]()[_0x1f90e3(0x1d1)],_0x470bf3=_0x2feb6a({'contentHeight':_0x10a7c1,'verticalAlign':_0x452eee,'viewportHeight':_0x92c6ed[_0x1f90e3(0x1dc)]});_0x5574d6['updateDocumentStyle']({'pageSize':{'width':_0x5852b0===!0x1?_0x92c6ed[_0x1f90e3(0x1dc)]:_0x92c6ed[_0x1f90e3(0xf7)],'height':_0x470bf3[_0x1f90e3(0x232)]}}),_0x5574d6['updateDocumentDataMargin']({'t':_0x470bf3[_0x1f90e3(0x85)]}),_0x5a23e2[_0x1f90e3(0x264)]();let _0x3bc687=new _0x1a519e(_0x1f90e3(0x192)+this[_0x1f90e3(0xe8)],_0x5a23e2,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1f90e3(0x15d)](!0x0)});_0x3bc687['resize'](_0x92c6ed[_0x1f90e3(0xf7)],_0x470bf3[_0x1f90e3(0x232)]),_0x3074c3[_0x1f90e3(0x1fd)](),_0x3074c3[_0x1f90e3(0xd5)](_0x92c6ed[_0x1f90e3(0x11f)],_0x92c6ed['top']),_0x53d39c[_0x1f90e3(0x2db)]&&(_0x3074c3[_0x1f90e3(0xd8)](),_0x3074c3[_0x1f90e3(0x16c)](0x0,_0x470bf3[_0x1f90e3(0xd3)],_0x92c6ed[_0x1f90e3(0xf7)],_0x470bf3[_0x1f90e3(0x21c)]),_0x3074c3[_0x1f90e3(0x2db)]()),_0x470bf3[_0x1f90e3(0x9b)]&&_0x3074c3[_0x1f90e3(0xd5)](0x0,_0x470bf3[_0x1f90e3(0x9b)]),_0x3bc687[_0x1f90e3(0x1f3)](_0x3074c3),_0x3074c3[_0x1f90e3(0x22f)](),_0x3bc687[_0x1f90e3(0x2dd)](),_0x5a23e2['dispose'](),_0x37ffac[_0x1f90e3(0x2dd)](),_0x5574d6[_0x1f90e3(0x2dd)]();}[_0x43dbb9(0x2b6)](_0xc0213a,_0x38751c,_0x1bc156=!0x1){const _0x5cd1ec=_0x43dbb9;if(!this[_0x5cd1ec(0x2cc)])return this[_0x5cd1ec(0x15d)](!0x1),this;let {width:_0x1c77f6,height:_0x383abb,left:_0x24cdb8,top:_0x548d5f}=this,_0x247496=this[_0x5cd1ec(0x272)]();if(_0x1c77f6=_0x247496[_0x5cd1ec(0xf7)],_0x383abb=_0x247496[_0x5cd1ec(0x1dc)],_0x24cdb8=_0x247496['left'],_0x548d5f=_0x247496[_0x5cd1ec(0x16e)],this['isRender'](_0x38751c)){let {top:_0x17832c,left:_0x8f72ec,bottom:_0x5ef7a4,right:_0x2e885c}=_0x38751c[_0x5cd1ec(0xc6)];if(_0x1c77f6+this[_0x5cd1ec(0x185)]+_0x24cdb8<_0x8f72ec||_0x2e885c<_0x24cdb8||_0x383abb+this[_0x5cd1ec(0x185)]+_0x548d5f<_0x17832c||_0x5ef7a4<_0x548d5f)return this;}let _0x218577=_0x24cdb8+_0x1c77f6/0x2,_0x3e5f64=_0x548d5f+_0x383abb/0x2,_0x51ad4e=this[_0x5cd1ec(0x10c)]['getMatrix']();if(this['_props']['isEditing']){let _0x113146=this[_0x5cd1ec(0xde)](),_0x3c6d0e=new _0x112a4b();_0x3c6d0e[_0x5cd1ec(0x91)]({..._0x113146}),_0x51ad4e=_0x3c6d0e['getMatrix']();}return _0xc0213a[_0x5cd1ec(0x1fd)](),this[_0x5cd1ec(0x1b4)][_0x5cd1ec(0xc0)]['isRenderLinePointsMode']===!0x0||_0xc0213a[_0x5cd1ec(0x10c)](_0x51ad4e[0x0],_0x51ad4e[0x1],_0x51ad4e[0x2],_0x51ad4e[0x3],_0x218577,_0x3e5f64),this[_0x5cd1ec(0xd0)](_0xc0213a,_0x38751c,_0x1c77f6,_0x383abb),_0xc0213a[_0x5cd1ec(0x22f)](),this[_0x5cd1ec(0x15d)](!0x1),this;}['getInverseCoord'](_0x3d42e1){const _0x470cdd=_0x43dbb9;let {left:_0x4300dd,top:_0x575b99,width:_0xb606b1,height:_0x52a059}=this[_0x470cdd(0x272)](),_0x81ff63=this[_0x470cdd(0x10c)][_0x470cdd(0x1b9)](),_0x2ef11f=_0x4300dd+_0xb606b1/0x2,_0x16f7bf=_0x575b99+_0x52a059/0x2,_0x5c647e=new _0x112a4b([_0x81ff63[0x0],_0x81ff63[0x1],_0x81ff63[0x2],_0x81ff63[0x3],_0x2ef11f,_0x16f7bf]),_0x29f1c7=this[_0x470cdd(0x1d9)]();return(this[_0x470cdd(0xa8)]&&(_0x29f1c7==null?void 0x0:_0x29f1c7[_0x470cdd(0x19d)])===_0x842655[_0x470cdd(0xf6)]?_0x29f1c7[_0x470cdd(0x8b)]['multiply'](_0x5c647e):_0x5c647e)['invert']()[_0x470cdd(0x22c)](_0x3d42e1);}[_0x43dbb9(0x102)](_0x36a92d){const _0x308236=_0x43dbb9;let {left:_0x5c6adf,top:_0x37063e,width:_0x209179,height:_0x4b4dc5}=this[_0x308236(0x272)](),_0x4171bd=_0x5c6adf+_0x209179/0x2,_0x401f2a=_0x37063e+_0x4b4dc5/0x2,_0x2804f2=this['transform'][_0x308236(0x1b9)](),_0xfda5d6=new _0x112a4b([_0x2804f2[0x0],_0x2804f2[0x1],_0x2804f2[0x2],_0x2804f2[0x3],_0x4171bd,_0x401f2a]),_0x2c8438=this['getParent'](),_0x286431=(this[_0x308236(0xa8)]&&(_0x2c8438==null?void 0x0:_0x2c8438[_0x308236(0x19d)])===_0x842655[_0x308236(0xf6)]?_0x2c8438[_0x308236(0x8b)]['multiply'](_0xfda5d6):_0xfda5d6)[_0x308236(0x23b)]()[_0x308236(0x22c)](_0x36a92d),_0x3917cd=_0x209179/0x2,_0x4a550d=_0x4b4dc5/0x2,_0x281148=this[_0x308236(0x1b4)]['shapeModel'];return _0x281148&&_0x281148[_0x308236(0xed)]()?_0x281148[_0x308236(0x29d)](_0x286431['x'],_0x286431['y'],_0x209179,_0x4b4dc5):_0x286431['x']>=-_0x3917cd-this[_0x308236(0x185)]/0x2&&_0x286431['x']<=_0x3917cd+this[_0x308236(0x185)]/0x2&&_0x286431['y']>=-_0x4a550d-this[_0x308236(0x185)]/0x2&&_0x286431['y']<=_0x4a550d+this[_0x308236(0x185)]/0x2;}[_0x43dbb9(0x2dd)](){const _0x2c6f94=_0x43dbb9;this[_0x2c6f94(0x17d)][_0x2c6f94(0x2dd)](),this[_0x2c6f94(0x1b4)][_0x2c6f94(0xc0)]=null,super[_0x2c6f94(0x2dd)]();}},wn=class extends _0x300c3f{constructor(_0x50d5ce,_0x1564b0){const _0x59cfbb=_0x43dbb9;super(_0x50d5ce,_0x1564b0),Y(this,_0x59cfbb(0x249),null),Y(this,_0x59cfbb(0x1eb),null),Y(this,_0x59cfbb(0x238),null),Y(this,_0x59cfbb(0x250),null),_0x1564b0&&this[_0x59cfbb(0x152)](_0x1564b0);}[_0x43dbb9(0x1f1)](){const _0x18621e=_0x43dbb9;return{'unitId':this[_0x18621e(0x238)],'subUnitId':this[_0x18621e(0x250)],'drawingId':this[_0x18621e(0x249)]};}[_0x43dbb9(0x152)](_0x202d4b){const _0x5b4190=_0x43dbb9;_0x202d4b[_0x5b4190(0xfc)]!==void 0x0&&(this['_shapeId']=_0x202d4b[_0x5b4190(0xfc)]),_0x202d4b[_0x5b4190(0x18a)]!==void 0x0&&(this[_0x5b4190(0x1eb)]=_0x202d4b['adjName']),_0x202d4b['unitId']!==void 0x0&&(this[_0x5b4190(0x238)]=_0x202d4b[_0x5b4190(0x25d)]),_0x202d4b[_0x5b4190(0x212)]!==void 0x0&&(this[_0x5b4190(0x250)]=_0x202d4b['subUnitId']),this[_0x5b4190(0x1c7)]({'width':_0x202d4b['width'],'height':_0x202d4b[_0x5b4190(0x1dc)]});}[_0x43dbb9(0xd0)](_0x5f54dc){const _0x4d0c43=_0x43dbb9;_0x536c54['drawWith'](_0x5f54dc,{'radius':_0x2bc8ec[_0x4d0c43(0x86)],'fill':_0x2bc8ec['adjHandleFill'],'stroke':_0x2bc8ec[_0x4d0c43(0x140)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x35d0eb,_0x29a260){return function(_0x4cce1a,_0x467a77){_0x29a260(_0x4cce1a,_0x467a77,_0x35d0eb);};}function Z(_0x6efa4b,_0x28b08d,_0x6606dd,_0x312ae5){const _0x46ed12=_0x43dbb9;var _0xb94b9d=arguments[_0x46ed12(0x15f)],_0xbf3293=_0xb94b9d<0x3?_0x28b08d:_0x312ae5===null?_0x312ae5=Object[_0x46ed12(0x297)](_0x28b08d,_0x6606dd):_0x312ae5,_0x583a33;if(typeof Reflect=='object'&&typeof Reflect[_0x46ed12(0x280)]==_0x46ed12(0x1ac))_0xbf3293=Reflect[_0x46ed12(0x280)](_0x6efa4b,_0x28b08d,_0x6606dd,_0x312ae5);else{for(var _0x1c2001=_0x6efa4b[_0x46ed12(0x15f)]-0x1;_0x1c2001>=0x0;_0x1c2001--)(_0x583a33=_0x6efa4b[_0x1c2001])&&(_0xbf3293=(_0xb94b9d<0x3?_0x583a33(_0xbf3293):_0xb94b9d>0x3?_0x583a33(_0x28b08d,_0x6606dd,_0xbf3293):_0x583a33(_0x28b08d,_0x6606dd))||_0xbf3293);}return _0xb94b9d>0x3&&_0xbf3293&&Object[_0x46ed12(0xd4)](_0x28b08d,_0x6606dd,_0xbf3293),_0xbf3293;}let Q=class extends _0x4760b3{constructor(_0x55d103,_0x51ba7f,_0xed3145,_0x153aee,_0x81a4d1,_0x3ce517){const _0x36956c=_0x43dbb9;super(),this['_drawingManagerService']=_0x55d103,this[_0x36956c(0x1ff)]=_0x51ba7f,this[_0x36956c(0x1ca)]=_0xed3145,this[_0x36956c(0x12a)]=_0x153aee,this[_0x36956c(0xa7)]=_0x81a4d1,this[_0x36956c(0x221)]=_0x3ce517,Y(this,_0x36956c(0x27e),new Map()),this[_0x36956c(0x11b)](this[_0x36956c(0x221)][_0x36956c(0x8e)][_0x36956c(0x28f)](_0x38558c=>{const _0x16f57c=_0x36956c;var _0x1fab09;(_0x1fab09=this[_0x16f57c(0x27e)][_0x16f57c(0x1bd)](this[_0x16f57c(0x159)](_0x38558c[_0x16f57c(0x25d)],_0x38558c['subUnitId'],_0x38558c[_0x16f57c(0xfc)])))==null||_0x1fab09[_0x16f57c(0x200)](_0x243466=>_0x243466['setFormulaPresentation'](_0x38558c['presentation'],_0x38558c['animationEnabled']));})),this[_0x36956c(0x11b)](this[_0x36956c(0xcc)][_0x36956c(0xd6)][_0x36956c(0x28f)](_0xb98716=>{const _0x295166=_0x36956c;_0xb98716[_0x295166(0x200)](_0x3a05e9=>{const _0x58a801=_0x295166;this[_0x58a801(0x221)][_0x58a801(0x252)]({'unitId':_0x3a05e9[_0x58a801(0x25d)],'subUnitId':_0x3a05e9[_0x58a801(0x212)],'shapeId':_0x3a05e9[_0x58a801(0x1a9)]}),this[_0x58a801(0x27e)]['delete'](this[_0x58a801(0x159)](_0x3a05e9['unitId'],_0x3a05e9[_0x58a801(0x212)],_0x3a05e9['drawingId']));});}));}['renderDrawingShape'](_0x4ce5c5,_0x3b0918,_0x3235e4){const _0x2cbb1d=_0x43dbb9;let {transform:_0xe63bd1,drawingType:_0x4fc7d6,srcRect:_0x1bfa8b,prstGeom:_0x371562,groupId:_0x2c12ed,unitId:_0x43f1d5,subUnitId:_0x864554,drawingId:_0x345888,isMultiTransform:_0x5443a3,transforms:_0xcb0612,hidden:_0x31ed12,selectable:_0x256c48}=_0x4ce5c5;if(_0x4fc7d6!==_0x5d03f6['DRAWING_SHAPE']||!this[_0x2cbb1d(0xcc)][_0x2cbb1d(0x230)]()||_0xe63bd1==null)return;let _0x31823e=this[_0x2cbb1d(0xcc)][_0x2cbb1d(0x2d3)]();_0x31823e&&_0x3b0918[_0x2cbb1d(0x129)](_0x37ad89);let _0x29de37=_0x5443a3&&_0xcb0612?_0xcb0612:[_0xe63bd1],_0x582364=[];for(let _0x4c9d3e of _0x29de37){let {left:_0x3c121a,top:_0x463343,width:_0x13112a,height:_0x5e5f59,angle:_0x5ede6b,flipX:_0x43698c,flipY:_0x5de83a,skewX:_0xd8bfa7,skewY:_0x4d9803}=_0x4c9d3e,_0x466da9=_0x29de37[_0x2cbb1d(0x253)](_0x4c9d3e),_0x47e263=_0x7f2912({'unitId':_0x43f1d5,'subUnitId':_0x864554,'drawingId':_0x345888},_0x5443a3?_0x466da9:void 0x0),_0x3bd7d5=_0x3b0918[_0x2cbb1d(0x1de)](_0x47e263);if(_0x3bd7d5!=null){let _0x206f75={'unitId':_0x43f1d5,'subUnitId':_0x864554,'shapeId':_0x345888};_0x3bd7d5 instanceof Cn&&this['refreshFormulaPresentation'](_0x3bd7d5,_0x206f75),_0x3bd7d5[_0x2cbb1d(0x1c7)]({'left':_0x3c121a,'top':_0x463343,'width':_0x13112a,'height':_0x5e5f59,'angle':_0x5ede6b,'flipX':_0x43698c,'flipY':_0x5de83a,'skewX':_0xd8bfa7,'skewY':_0x4d9803});continue;}let _0x48ef02=this['_drawingManagerService']['getDrawingOrder'](_0x43f1d5,_0x864554),_0x3f6db4=_0x48ef02[_0x2cbb1d(0x253)](_0x345888);if(_0x3b0918[_0x2cbb1d(0x1de)](_0x47e263)||!this['_drawingManagerService'][_0x2cbb1d(0x230)]())continue;let _0x5d2210=this['_sheetsShapeService']['getShapeModel'](_0x43f1d5,_0x864554,_0x345888);if(!_0x5d2210)continue;let _0x1f249e=_0x1f7f23(_0x5d2210[_0x2cbb1d(0x2ad)]()),_0x27a77c=_0x5d2210['getShapeData']()[_0x2cbb1d(0x17a)],_0x33af18={'unitId':_0x43f1d5,'subUnitId':_0x864554,'shapeId':_0x345888};_0x27a77c&&this[_0x2cbb1d(0x221)][_0x2cbb1d(0x21e)](_0x33af18,_0x27a77c);let _0x37bf9e=new Cn(_0x47e263,{..._0x1f249e?{..._0x4c9d3e,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x4c9d3e},'zIndex':_0x3f6db4===-0x1?_0x48ef02['length']-0x1:_0x3f6db4,'shapeModel':_0x5d2210,'localeService':this['_localeService'],'shapeId':_0x345888,'unitId':_0x43f1d5,'subUnitId':_0x864554,'visible':_0x31ed12!==!0x0,'evented':_0x256c48!==!0x1,'formulaPresentation':_0x27a77c?this['_shapeFormulaService'][_0x2cbb1d(0x198)](_0x33af18):void 0x0,'animateFormulaPresentation':(_0x27a77c==null?void 0x0:_0x27a77c[_0x2cbb1d(0x229)])!==!0x1});if(_0x27a77c){var _0x1ae52a;let _0x5b2d0f=this[_0x2cbb1d(0x159)](_0x43f1d5,_0x864554,_0x345888),_0x46f6ec=(_0x1ae52a=this[_0x2cbb1d(0x27e)][_0x2cbb1d(0x1bd)](_0x5b2d0f))==null?new Set():_0x1ae52a;_0x46f6ec[_0x2cbb1d(0x10b)](_0x37bf9e),this[_0x2cbb1d(0x27e)][_0x2cbb1d(0xd9)](_0x5b2d0f,_0x46f6ec);}_0x3b0918[_0x2cbb1d(0xe9)](_0x37bf9e,_0x11332b),_0x31823e&&_0x3b0918[_0x2cbb1d(0x2bb)](_0x37bf9e),_0x2c12ed&&_0x435a76({'drawingId':_0x2c12ed,'unitId':_0x43f1d5,'subUnitId':_0x864554},_0x37bf9e,_0x3b0918,this[_0x2cbb1d(0xcc)]),_0x371562!=null&&_0x37bf9e['setPrstGeom'](_0x371562),_0x1bfa8b!=null&&_0x37bf9e[_0x2cbb1d(0x20f)](_0x1bfa8b);let _0x574063=this[_0x2cbb1d(0xaf)](_0x37bf9e,_0x5d2210[_0x2cbb1d(0x282)]());if(_0x574063){var _0x3c0255;_0x3235e4==null||(_0x3c0255=_0x3235e4['resourceCollector'])==null||_0x3c0255[_0x2cbb1d(0x10b)](_0x574063);}_0x582364[_0x2cbb1d(0x241)](_0x37bf9e);}return _0x582364;}[_0x43dbb9(0x159)](_0x83f3d6,_0x139342,_0x40ef3f){return _0x83f3d6+'\x00'+_0x139342+'\x00'+_0x40ef3f;}[_0x43dbb9(0xac)](_0x789d4e,_0x35d0e2){const _0x43ba6e=_0x43dbb9;let _0x4abe64=this[_0x43ba6e(0x1ff)][_0x43ba6e(0x251)](_0x35d0e2[_0x43ba6e(0x25d)],_0x35d0e2['subUnitId'],_0x35d0e2[_0x43ba6e(0xfc)]),_0x496639=_0x4abe64==null?void 0x0:_0x4abe64['getShapeData']()[_0x43ba6e(0x17a)],_0x402aed=this[_0x43ba6e(0x159)](_0x35d0e2[_0x43ba6e(0x25d)],_0x35d0e2[_0x43ba6e(0x212)],_0x35d0e2[_0x43ba6e(0xfc)]);if(_0x496639){var _0x322f8e;this[_0x43ba6e(0x221)]['register'](_0x35d0e2,_0x496639);let _0xc0bef5=(_0x322f8e=this[_0x43ba6e(0x27e)][_0x43ba6e(0x1bd)](_0x402aed))==null?new Set():_0x322f8e;_0xc0bef5[_0x43ba6e(0x10b)](_0x789d4e),this[_0x43ba6e(0x27e)]['set'](_0x402aed,_0xc0bef5);}else{var _0x2f1b39;this[_0x43ba6e(0x221)]['unregister'](_0x35d0e2),(_0x2f1b39=this[_0x43ba6e(0x27e)]['get'](_0x402aed))==null||_0x2f1b39[_0x43ba6e(0x2b1)](_0x789d4e);}_0x789d4e['setFormulaPresentation'](_0x496639?this[_0x43ba6e(0x221)][_0x43ba6e(0x198)](_0x35d0e2):void 0x0,(_0x496639==null?void 0x0:_0x496639[_0x43ba6e(0x229)])!==!0x1);}[_0x43dbb9(0x204)](_0x474d62){const _0x13b43e=_0x43dbb9;let _0x161fbe=_0x474d62['shapeModel'][_0x13b43e(0x282)](),_0x2ad637=_0x161fbe[_0x13b43e(0x1ee)];if(!_0x2ad637||_0x2ad637['fillType']!==_0x27d461['PictureFill']||!_0x2ad637[_0x13b43e(0x2e2)]){_0x474d62[_0x13b43e(0x1a2)](void 0x0);return;}this[_0x13b43e(0xaf)](_0x474d62,_0x161fbe);}[_0x43dbb9(0xaf)](_0x2dec07,_0x183dbc){const _0x49b914=_0x43dbb9;var _0x40df7b;let _0x3eab9a=_0x183dbc['fill'];if(!_0x3eab9a||_0x3eab9a[_0x49b914(0x242)]!==_0x27d461['PictureFill']||!_0x3eab9a[_0x49b914(0x2e2)])return;let _0x5c212c=_0x3eab9a[_0x49b914(0x2e2)],_0x22e368=(_0x40df7b=_0x3eab9a['fillImageSourceType'])==null?_0x283528[_0x49b914(0x277)]:_0x40df7b,_0x46d619=this[_0x49b914(0x12a)][_0x49b914(0x1b7)](_0x5c212c,_0x22e368);if(_0x46d619){_0x2dec07[_0x49b914(0x1a2)](_0x46d619);return;}return this['_loadAndSetImage'](_0x2dec07,_0x5c212c,_0x22e368);}async[_0x43dbb9(0x13b)](_0x3af8da,_0x4b503b,_0x9e9e80){const _0x48a7fa=_0x43dbb9;let _0x5c922f;try{if(_0x9e9e80===_0x283528['UUID'])_0x5c922f=await this[_0x48a7fa(0x12a)][_0x48a7fa(0x13a)](_0x4b503b);else{if(_0x9e9e80===_0x283528['URL'])try{_0x5c922f=await this[_0x48a7fa(0xa7)][_0x48a7fa(0x13a)](_0x4b503b);}catch{_0x5c922f=_0x4b503b;}else _0x5c922f=_0x4b503b;}}catch(_0x45633a){console[_0x48a7fa(0x2be)](_0x48a7fa(0x156),_0x45633a);return;}await new Promise(_0x1f3695=>{const _0x2cd3c3=_0x48a7fa;let _0x4caeab=new window['Image']();_0x4caeab['onload']=()=>{const _0x4158ba=_0x449a;this['_imageIoService'][_0x4158ba(0x93)](_0x4b503b,_0x9e9e80,_0x4caeab),_0x3af8da[_0x4158ba(0x1a2)](_0x4caeab),_0x1f3695();},_0x4caeab[_0x2cd3c3(0x2a6)]=()=>{const _0x747182=_0x2cd3c3;console[_0x747182(0x2be)](_0x747182(0x2a7),_0x4b503b),_0x1f3695();},_0x4caeab['src']=_0x5c922f;});}};Q=Z([X(0x0,_0x324617),X(0x1,_0x450bf3(_0x26a217)),X(0x2,_0x450bf3(_0xa3717a)),X(0x3,_0x5dd91b),X(0x4,_0x488e09),X(0x5,_0x450bf3(_0xe57842))],Q);let Tn=class extends _0x4760b3{constructor(_0x476c97,_0x3a3d0e,_0x2761bb,_0x483416,_0x28ea5,_0x1b9e75){const _0x56bbd0=_0x43dbb9;super(),this[_0x56bbd0(0xcc)]=_0x476c97,this['_sheetsShapeService']=_0x3a3d0e,this[_0x56bbd0(0x87)]=_0x2761bb,this[_0x56bbd0(0x2d9)]=_0x483416,this['_univerInstanceService']=_0x28ea5,this[_0x56bbd0(0x285)]=_0x1b9e75,Y(this,_0x56bbd0(0x14f),null),Y(this,_0x56bbd0(0x238),null),Y(this,'_subUnitId',null),Y(this,_0x56bbd0(0x20c),void 0x0),Y(this,_0x56bbd0(0x176),[]),Y(this,_0x56bbd0(0x260),0x0),Y(this,'_baseShapeTop',0x0),Y(this,_0x56bbd0(0x2b2),0x0),Y(this,'_baseShapeHeight',0x0),Y(this,_0x56bbd0(0x258),!0x1),Y(this,_0x56bbd0(0x257),void 0x0),Y(this,_0x56bbd0(0x22b),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x56bbd0(0x157),!0x1),this[_0x56bbd0(0x254)](),this[_0x56bbd0(0x235)]();}[_0x43dbb9(0x1ec)](_0x20f947,_0x3a311b,_0x1c2948){const _0x54841e=_0x43dbb9;let _0x4a3a14=this[_0x54841e(0x1ff)][_0x54841e(0x251)](_0x20f947,_0x3a311b,_0x1c2948);if(_0x4a3a14)return _0x4a3a14[_0x54841e(0x275)]();}[_0x43dbb9(0x2e3)](){const _0x54b137=_0x43dbb9;this[_0x54b137(0x1e5)]();}['refreshAdjustControls'](){const _0x188c33=_0x43dbb9;this[_0x188c33(0x246)](!0x0);}[_0x43dbb9(0x18b)](_0x8842cf){this['_isShouldShowDrawingShapeAdjust']=_0x8842cf;}['_getShapeAdjustInfosById'](_0xf99ed0,_0x40b1e0,_0x1320b2,_0x1bae36){const _0x2a12d5=_0x43dbb9;let _0x34a455=this[_0x2a12d5(0x1ff)]['getShapeModel'](_0xf99ed0,_0x40b1e0,_0x1320b2);if(_0x34a455)return _0x34a455[_0x2a12d5(0x2ae)](_0x1bae36);}[_0x43dbb9(0x21b)](_0x1da428=!0x1){const _0x303d30=_0x43dbb9;if(this[_0x303d30(0x238)]===null||this[_0x303d30(0x250)]===null||this['_activeShapeId']===null)return;let _0x439efd=this[_0x303d30(0x87)]['getRenderById'](this[_0x303d30(0x238)]);if(!_0x439efd||!_0x439efd[_0x303d30(0x2ea)](_0x392ff0)[_0x303d30(0xa4)]())return;let {scene:_0x4d76be}=_0x439efd,_0x45cc11={'unitId':this[_0x303d30(0x238)],'subUnitId':this[_0x303d30(0x250)],'drawingId':this[_0x303d30(0x14f)]},_0x13788b=this[_0x303d30(0xcc)][_0x303d30(0x171)](_0x45cc11),{transform:_0x5104fe}=_0x13788b;if(!_0x5104fe||_0x13788b[_0x303d30(0x2cb)]!==_0x5d03f6[_0x303d30(0x23a)])return;let {left:_0xc88240,top:_0x33867d,width:_0xfd214f,height:_0x27d4bb,flipX:_0x12463b,flipY:_0x5456ea,angle:_0x599c85=0x0}=_0x5104fe;if(_0xc88240===void 0x0||_0x33867d===void 0x0)return;_0x1da428&&(this[_0x303d30(0x20c)]=this[_0x303d30(0x1ec)](this[_0x303d30(0x238)],this['_subUnitId'],this[_0x303d30(0x14f)]));let _0x418380=this[_0x303d30(0x20c)];for(let _0x376a77=0x0;_0x376a77<_0x418380[_0x303d30(0x15f)];_0x376a77++){let _0x2e808f=_0x418380[_0x376a77],_0x5b29d6=_0x2e808f['x'],_0x200390=_0x2e808f['y'];if(_0x12463b&&(_0x5b29d6=(_0xfd214f||0x0)-_0x5b29d6),_0x5456ea&&(_0x200390=(_0x27d4bb||0x0)-_0x200390),_0x599c85!==0x0){let _0x386428=(_0xfd214f||0x0)/0x2,_0x1aa337=(_0x27d4bb||0x0)/0x2,_0x5249fd=_0x599c85*Math['PI']/0xb4,_0x1294f7=Math['cos'](_0x5249fd),_0x1ab3da=Math[_0x303d30(0x1e6)](_0x5249fd),_0x7856c8=_0x5b29d6-_0x386428,_0x5e1e83=_0x200390-_0x1aa337;_0x5b29d6=_0x386428+(_0x7856c8*_0x1294f7-_0x5e1e83*_0x1ab3da),_0x200390=_0x1aa337+(_0x7856c8*_0x1ab3da+_0x5e1e83*_0x1294f7);}let _0x3ebbb5={'x':_0x5b29d6,'y':_0x200390,'adjName':_0x2e808f[_0x303d30(0x18a)]};this[_0x303d30(0xcb)](_0x4d76be,_0x3ebbb5,_0x3ebbb5[_0x303d30(0x18a)],_0xc88240,_0x33867d,this['_unitId'],this[_0x303d30(0x250)]);}}['_updateShapeAdjustControls'](_0x246aa4=!0x1){const _0x590979=_0x43dbb9;_0x246aa4&&(this[_0x590979(0x1e5)](),this[_0x590979(0x21b)](_0x246aa4));}['_addShapeAdjustControl'](_0x154565,_0x4cd779,_0x1fd94f,_0x5387d3,_0x3e6523,_0x4312ea,_0x8646d0){const _0x50c1c8=_0x43dbb9;if(!this[_0x50c1c8(0x14f)])return;let _0x315b8d=_0x154565[_0x50c1c8(0x1de)]('shape-adjust-point-'+this[_0x50c1c8(0x14f)]+'-'+_0x1fd94f);if(_0x315b8d){_0x315b8d[_0x50c1c8(0x1c7)]({'left':_0x4cd779['x']+_0x5387d3-_0x2bc8ec[_0x50c1c8(0x86)],'top':_0x4cd779['y']+_0x3e6523-_0x2bc8ec[_0x50c1c8(0x86)]});return;}let _0x1bba71={'left':_0x4cd779['x']+_0x5387d3-_0x2bc8ec[_0x50c1c8(0x86)],'top':_0x4cd779['y']+_0x3e6523-_0x2bc8ec[_0x50c1c8(0x86)],'adjName':_0x1fd94f,'shapeId':this[_0x50c1c8(0x14f)],'unitId':_0x4312ea,'subUnitId':_0x8646d0,'width':_0x2bc8ec[_0x50c1c8(0x86)]+0x8,'height':_0x2bc8ec['adjHandleSize']+0x8,'zIndex':_0x11332b+0x1,'evented':!0x0},_0x35f048=new wn(_0x50c1c8(0xe3)+this[_0x50c1c8(0x14f)]+'-'+_0x1fd94f,_0x1bba71);this[_0x50c1c8(0x176)][_0x50c1c8(0x241)](_0x35f048),this[_0x50c1c8(0x2e0)](_0x35f048,_0x154565,_0x1fd94f),_0x154565[_0x50c1c8(0xe9)](_0x35f048,_0x11332b+0x1);}[_0x43dbb9(0x1e5)](){const _0x1b00d2=_0x43dbb9;this['_shapes'][_0x1b00d2(0x15f)]!==0x0&&(this[_0x1b00d2(0x176)][_0x1b00d2(0x200)](_0xed133b=>{const _0x48b8b4=_0x1b00d2;_0xed133b[_0x48b8b4(0x2dd)]();}),this['_shapes']=[]);}[_0x43dbb9(0x21a)](){this['_createShapeAdjustControls']();}[_0x43dbb9(0x15c)](_0x1ff72f,_0x2c5bbf){const _0xd664f0=_0x43dbb9;var _0x2fa970;let _0x29d2ba={'x':0x0,'y':0x0};if(!_0x1ff72f||!_0x2c5bbf)return _0x29d2ba;let _0x2b9dcb=this['_renderManagerService'][_0xd664f0(0x19c)](_0x1ff72f);if(!_0x2b9dcb||!_0x2b9dcb[_0xd664f0(0x2ea)](_0x392ff0)[_0xd664f0(0x188)](_0x2c5bbf))return _0x29d2ba;let _0x58fc10=_0x2b9dcb[_0xd664f0(0x2ea)](_0xdbee74),_0xc13026=_0x58fc10==null?void 0x0:_0x58fc10['getCurrentScrollState']();if(!_0xc13026)return _0x29d2ba;let _0x3b6e3d=(_0x2fa970=this[_0xd664f0(0xcd)]['getUnit'](_0x1ff72f))==null?void 0x0:_0x2fa970['getSheetBySheetId'](_0x2c5bbf);if(!_0x3b6e3d)return _0x29d2ba;let _0x2b0c7b=_0x1b930d(_0xc13026[_0xd664f0(0x296)],_0xc13026[_0xd664f0(0x286)],_0x2b9dcb[_0xd664f0(0x128)],_0x3b6e3d);return _0x2b0c7b?{'x':_0x2b0c7b['viewportScrollX'],'y':_0x2b0c7b[_0xd664f0(0x23f)]}:_0x29d2ba;}[_0x43dbb9(0x155)](_0x38c0cf,_0x227ffe){const _0x220b28=_0x43dbb9;var _0x85068b,_0x426761;let _0x474fe7=(_0x85068b=this['_univerInstanceService'][_0x220b28(0x150)](_0x38c0cf))==null?void 0x0:_0x85068b[_0x220b28(0x148)](_0x227ffe);return(_0x426761=_0x474fe7==null?void 0x0:_0x474fe7['getZoomRatio']())==null?0x1:_0x426761;}[_0x43dbb9(0x2e0)](_0x573e60,_0x59f196,_0x5b846b){const _0x527a9c=_0x43dbb9;this['disposeWithMe'](_0x43b296(_0x573e60[_0x527a9c(0x12f)]['subscribeEvent']((_0x2952d5,_0x5a5460)=>{const _0x124779=_0x527a9c;var _0x3819ca,_0x2e51b3,_0x322ba5,_0x2eb792;let _0x10b4cd=_0x573e60[_0x124779(0x1f1)]();this['_activeAdjustInfo']=this[_0x124779(0x14c)](_0x10b4cd[_0x124779(0x25d)],_0x10b4cd[_0x124779(0x212)],_0x10b4cd[_0x124779(0x1a9)],_0x5b846b),this[_0x124779(0x22b)]=this[_0x124779(0x1ff)][_0x124779(0x251)](_0x10b4cd['unitId'],_0x10b4cd[_0x124779(0x212)],_0x10b4cd[_0x124779(0x1a9)]);let _0x168e6d=this[_0x124779(0xcc)][_0x124779(0x171)]({'unitId':this[_0x124779(0x238)],'subUnitId':this[_0x124779(0x250)],'drawingId':this[_0x124779(0x14f)]}),{transform:_0x184873}=_0x168e6d;if(_0x184873){let {left:_0x121ab6,top:_0x4476e9,width:_0x4cacac,height:_0x297f07}=_0x184873;this[_0x124779(0x260)]=_0x121ab6||0x0,this['_baseShapeTop']=_0x4476e9||0x0,this['_baseShapeWidth']=_0x4cacac||0x0,this[_0x124779(0x8f)]=_0x297f07||0x0;}let _0x447162=!!((_0x3819ca=_0x168e6d[_0x124779(0x10c)])!=null&&_0x3819ca[_0x124779(0x2d5)]),_0x495c71=!!((_0x2e51b3=_0x168e6d[_0x124779(0x10c)])!=null&&_0x2e51b3['flipY']),_0x306d84=((_0x322ba5=_0x168e6d[_0x124779(0x10c)])==null?void 0x0:_0x322ba5[_0x124779(0x2e1)])||0x0;this[_0x124779(0x258)]=!0x0,_0x59f196['disableObjectsEvent']();let _0x1be4dc=(_0x2eb792=this[_0x124779(0x22b)])==null?void 0x0:_0x2eb792[_0x124779(0x29f)](_0x5b846b),_0x1ceb85={[_0x5b846b]:_0x1be4dc};this[_0x124779(0x1fa)]=_0x59f196[_0x124779(0x24b)][_0x124779(0x17c)]((_0x11c49c,_0x1ea7b7)=>{const _0x688629=_0x124779;if(!this[_0x688629(0x258)])return;let {offsetX:_0x2e77d6,offsetY:_0x277a53}=_0x11c49c,_0x2e8262=this[_0x688629(0x257)];if(this['_activeShapeModel']&&_0x2e8262){_0x59f196[_0x688629(0x1b8)](),_0x59f196['setCursor'](_0x110f16['CROSSHAIR']);let _0x221ffb={'left':0x0,'top':0x0,'width':this[_0x688629(0x2b2)],'height':this[_0x688629(0x8f)]},_0xb0b7aa=this['_getScrollInfo'](this[_0x688629(0x238)],this['_subUnitId']),_0x7d2cc8=this[_0x688629(0x155)](this[_0x688629(0x238)],this['_subUnitId']),_0x412d9d=_0x2e77d6/_0x7d2cc8+_0xb0b7aa['x']-this[_0x688629(0x260)],_0x5ac00c=_0x277a53/_0x7d2cc8+_0xb0b7aa['y']-this[_0x688629(0x12d)];if(_0x306d84!==0x0){let _0x1f3979=this[_0x688629(0x2b2)]/0x2,_0x197793=this['_baseShapeHeight']/0x2,_0x589779=_0x306d84*Math['PI']/0xb4,_0x2f5772=Math[_0x688629(0x109)](_0x589779),_0xa8f382=Math[_0x688629(0x1e6)](_0x589779),_0x4225ef=_0x412d9d-_0x1f3979,_0x381e55=_0x5ac00c-_0x197793;_0x412d9d=_0x1f3979+(_0x4225ef*_0x2f5772+_0x381e55*_0xa8f382),_0x5ac00c=_0x197793+(-_0x4225ef*_0xa8f382+_0x381e55*_0x2f5772);}_0x447162&&(_0x412d9d=this['_baseShapeWidth']-_0x412d9d),_0x495c71&&(_0x5ac00c=this['_baseShapeHeight']-_0x5ac00c);let _0x7fbb53={'x':_0x412d9d,'y':_0x5ac00c},_0x529988=this[_0x688629(0x22b)]['calcAdjValue'](_0x221ffb,_0x7fbb53,_0x2e8262,_0x447162,_0x495c71),_0x45e10d=_0x2e8262['gdRefX']||_0x2e8262[_0x688629(0x247)]||_0x2e8262[_0x688629(0x2de)]||_0x2e8262[_0x688629(0x2e5)];if(_0x45e10d===void 0x0)return;this[_0x688629(0x22b)][_0x688629(0x12b)](_0x45e10d,_0x529988);let _0x26e18a=this['_drawingManagerService'][_0x688629(0x171)]({'unitId':_0x10b4cd[_0x688629(0x25d)],'subUnitId':_0x10b4cd['subUnitId'],'drawingId':_0x10b4cd[_0x688629(0x1a9)]});_0x26e18a&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x26e18a,_0x59f196),this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x10b4cd[_0x688629(0x25d)],_0x10b4cd[_0x688629(0x212)],_0x10b4cd[_0x688629(0x1a9)]),this['_updateAdjustControlPositions']());}_0x1ea7b7['stopPropagation']();}),this[_0x124779(0x276)]=_0x59f196[_0x124779(0x1bf)][_0x124779(0x17c)]((_0x556af9,_0x4f3c18)=>{const _0x29b855=_0x124779;this[_0x29b855(0x1fa)][_0x29b855(0x1dd)](),this[_0x29b855(0x276)][_0x29b855(0x1dd)](),_0x59f196[_0x29b855(0x15a)]();let _0x5c56d7=this[_0x29b855(0x257)];if(_0x5c56d7){let _0x34a66e=_0x10b4cd[_0x29b855(0x25d)],_0x42b29f=_0x10b4cd[_0x29b855(0x212)],_0x4cf5de=_0x10b4cd[_0x29b855(0x1a9)],_0x503f62=_0x5c56d7[_0x29b855(0xc3)]||_0x5c56d7[_0x29b855(0x247)]||_0x5c56d7[_0x29b855(0x2de)]||_0x5c56d7[_0x29b855(0x2e5)];if(_0x503f62!==void 0x0){var _0x4a32fc;let _0xc1748b=(_0x4a32fc=this[_0x29b855(0x22b)])==null?void 0x0:_0x4a32fc[_0x29b855(0x29f)](_0x503f62);_0xc1748b!==void 0x0&&_n(this['_commandService'],_0x34a66e,_0x42b29f,_0x4cf5de,{'oldShapeData':{'adjustValues':_0x1ceb85}},{'adjustValues':{[_0x503f62]:_0xc1748b}});}}this[_0x29b855(0x257)]=void 0x0,this[_0x29b855(0x22b)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4f3c18[_0x29b855(0x26a)](),_0x59f196[_0x29b855(0x25c)]();}),_0x5a5460[_0x124779(0x26a)]();})));}[_0x43dbb9(0x235)](){const _0x2a89e1=_0x43dbb9;let _0xebc779=this[_0x2a89e1(0xcd)][_0x2a89e1(0x240)](_0x2a1b28[_0x2a89e1(0x1e0)]);this[_0x2a89e1(0x11b)](_0xebc779[_0x2a89e1(0x24d)](_0x46afa7(_0x3ea8b4=>_0x3ea8b4?_0x3ea8b4[_0x2a89e1(0x117)][_0x2a89e1(0x24d)](_0x46afa7(_0x2f68c3=>{const _0x3bb24a=_0x2a89e1;if(!_0x2f68c3)return _0x3149ab;let _0xa8b632=_0x3ea8b4[_0x3bb24a(0xb8)](),_0x1ef009=this[_0x3bb24a(0x87)][_0x3bb24a(0x19c)](_0xa8b632),_0x5c2497=_0x1ef009==null?void 0x0:_0x1ef009[_0x3bb24a(0x128)];return _0x5c2497?_0x236700(_0x5c2497):_0x3149ab;})):_0x3149ab))[_0x2a89e1(0x28f)](_0x5358ea=>{const _0x1e41fa=_0x2a89e1;let _0x256c62=_0x5358ea[_0x1e41fa(0x84)]();this['disposeWithMe'](_0x5358ea[_0x1e41fa(0x24b)][_0x1e41fa(0x17c)](()=>{const _0x429953=_0x1e41fa;this[_0x429953(0x157)];})),this['disposeWithMe'](_0x256c62[_0x1e41fa(0x89)][_0x1e41fa(0x28f)](_0x163ff0=>{const _0xdf6042=_0x1e41fa;let {objects:_0x19d7c8}=_0x163ff0;this[_0xdf6042(0x21b)](),_0x19d7c8!==null&&_0x19d7c8[_0xdf6042(0xb4)]===0x1&&_0x19d7c8['values']()[_0xdf6042(0x166)]()['value']instanceof Cn&&this['setShouldShowAdjust'](!0x0);})),this[_0x1e41fa(0x11b)](_0x256c62[_0x1e41fa(0x18c)][_0x1e41fa(0x28f)](()=>{const _0x45e339=_0x1e41fa;this[_0x45e339(0x157)]&&this[_0x45e339(0x1e5)]();})),this['disposeWithMe'](_0x5358ea['onPointerUp$'][_0x1e41fa(0x17c)](()=>{const _0x1b52f4=_0x1e41fa;this[_0x1b52f4(0x157)]&&(this[_0x1b52f4(0x18b)](!0x1),this[_0x1b52f4(0x21b)]());})),this[_0x1e41fa(0x11b)](_0x256c62[_0x1e41fa(0x174)][_0x1e41fa(0x28f)](()=>{const _0x2e8de4=_0x1e41fa;this[_0x2e8de4(0x238)]&&this[_0x2e8de4(0x250)]&&this[_0x2e8de4(0x14f)]&&this[_0x2e8de4(0xcc)][_0x2e8de4(0x171)]({'unitId':this[_0x2e8de4(0x238)],'subUnitId':this[_0x2e8de4(0x250)],'drawingId':this[_0x2e8de4(0x14f)]})&&(this[_0x2e8de4(0x20c)]=this[_0x2e8de4(0x1ec)](this['_unitId'],this[_0x2e8de4(0x250)],this[_0x2e8de4(0x14f)]),this[_0x2e8de4(0x21a)]());}));}));}[_0x43dbb9(0x254)](){const _0x41c5fb=_0x43dbb9;this[_0x41c5fb(0x11b)](this['_drawingManagerService'][_0x41c5fb(0x231)][_0x41c5fb(0x28f)](_0x3a14dc=>{const _0x1d5c4a=_0x41c5fb;if(_0x3a14dc[_0x1d5c4a(0x15f)]===0x1){let _0xcd9f50=_0x3a14dc[0x0];if(_0xcd9f50[_0x1d5c4a(0x2cb)]===_0x5d03f6[_0x1d5c4a(0x23a)]){this[_0x1d5c4a(0x14f)]=_0xcd9f50[_0x1d5c4a(0x1a9)];let {unitId:_0x32e396,subUnitId:_0xd0c0a3}=_0xcd9f50;this[_0x1d5c4a(0x20c)]=this[_0x1d5c4a(0x1ec)](_0x32e396,_0xd0c0a3,this[_0x1d5c4a(0x14f)]),this[_0x1d5c4a(0x238)]=_0x32e396,this['_subUnitId']=_0xd0c0a3,this[_0x1d5c4a(0x1e5)](),this[_0x1d5c4a(0x21b)]();}else this[_0x1d5c4a(0x14f)]=null,this[_0x1d5c4a(0x20c)]=void 0x0,this[_0x1d5c4a(0x238)]=null,this[_0x1d5c4a(0x250)]=null,this[_0x1d5c4a(0x1e5)]();}(_0x3a14dc[_0x1d5c4a(0x15f)]>0x1||_0x3a14dc[_0x1d5c4a(0x15f)]===0x0)&&(this[_0x1d5c4a(0x14f)]=null,this[_0x1d5c4a(0x20c)]=void 0x0,this[_0x1d5c4a(0x238)]=null,this[_0x1d5c4a(0x250)]=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x41c5fb(0xcc)]['update$'][_0x41c5fb(0x28f)](_0x216fca=>{const _0x28f7e6=_0x41c5fb;if(_0x216fca[_0x28f7e6(0x15f)]===0x1){var _0x528f9e;let _0x574d67=_0x216fca[0x0];((_0x528f9e=this[_0x28f7e6(0xcc)]['getDrawingByParam'](_0x574d67))==null?void 0x0:_0x528f9e[_0x28f7e6(0x2cb)])===_0x5d03f6['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x41c5fb(0x11b)](this[_0x41c5fb(0xcc)][_0x41c5fb(0xd6)][_0x41c5fb(0x28f)](_0x4de7ee=>{const _0x1f30ff=_0x41c5fb;for(let _0x41529d of _0x4de7ee)this[_0x1f30ff(0x14f)]===_0x41529d[_0x1f30ff(0x1a9)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x1f30ff(0x238)]=null,this[_0x1f30ff(0x250)]=null,this['_clearShapeAdjustControls']());}));}};Tn=Z([X(0x0,_0x324617),X(0x1,_0x450bf3(_0x26a217)),X(0x2,_0x450bf3(_0x263af6)),X(0x3,_0x450bf3(Q)),X(0x4,_0x7113c7),X(0x5,_0x4d9cac)],Tn);const En={'id':'drawing.operation.set-drawing-active','type':_0x8e0e3c[_0x43dbb9(0x269)],'handler':(_0x1ae211,_0x280be8)=>{const _0xf4969c=_0x43dbb9;let _0x2e042c=_0x1ae211[_0xf4969c(0x1bd)](_0x324617),_0x3bf523=_0x1ae211[_0xf4969c(0x1bd)](_0x263af6),_0x37f0a0=_0x1ae211[_0xf4969c(0x1bd)](Tn);if(_0x280be8==null)return!0x0;if(_0x280be8[_0xf4969c(0x15f)]>0x0){var _0x2eabd4;let _0x3c02fb=(_0x2eabd4=_0x3bf523['getRenderById'](_0x280be8[0x0][_0xf4969c(0x25d)]))==null?void 0x0:_0x2eabd4[_0xf4969c(0x128)];if(_0x3c02fb){let {unitId:_0x5469a1,subUnitId:_0x52798c,drawingId:_0x2e7d93}=_0x280be8[0x0],_0xcf1c9e=_0x7f2912({'unitId':_0x5469a1,'subUnitId':_0x52798c,'drawingId':_0x2e7d93},void 0x0),_0x19aff9=_0x3c02fb[_0xf4969c(0x1de)](_0xcf1c9e);if(_0x19aff9){var _0x4aec92;(_0x4aec92=_0x3bf523[_0xf4969c(0x19c)](_0x280be8[0x0][_0xf4969c(0x25d)]))==null||(_0x4aec92=_0x4aec92['scene']['getTransformer']())==null||_0x4aec92[_0xf4969c(0x28d)](_0x19aff9);}}_0x2e042c[_0xf4969c(0x141)](_0x280be8),_0x37f0a0['setShouldShowAdjust'](!0x1);}return!0x0;}},Dn={'type':_0x8e0e3c['COMMAND'],'id':_0x43dbb9(0x10a),'handler':async(_0x194427,_0x55cc22)=>{const _0x4b49f3=_0x43dbb9;let _0x311906=_0x59589e(_0x194427[_0x4b49f3(0x1bd)](_0x7113c7));if(!_0x311906)return!0x1;let _0x20f1bf=_0x194427[_0x4b49f3(0x1bd)](_0x412710)[_0x4b49f3(0x187)]();if(!_0x20f1bf)return!0x1;let _0x2249a7=_0x194427[_0x4b49f3(0x1bd)](_0x4d9cac),{unitId:_0x17a009,subUnitId:_0x56100a}=_0x311906,{value:_0x1c9c02,enhanceParams:_0x26a5aa}=_0x55cc22,{range:_0x3a0c3d}=_0x20f1bf,_0x2d4147={'unitId':_0x17a009,'subUnitId':_0x56100a,'shapeType':_0x1c9c02,'range':_0x3a0c3d,'shapeId':_0x2bfd17()};if(_0x26a5aa){let _0x59c765=_0x1f7f23(_0x1c9c02),_0x465420=_0x1c9c02===_0x250922[_0x4b49f3(0x1f5)];_0x59c765&&(_0x26a5aa[_0x4b49f3(0x28b)]||_0x26a5aa['endArrow'])&&(_0x2d4147[_0x4b49f3(0x106)]={'ln':{'startArrow':_0x26a5aa[_0x4b49f3(0x28b)]?{'type':_0x454053[_0x4b49f3(0x94)],'size':_0x421194[_0x4b49f3(0x1da)]}:void 0x0,'endArrow':_0x26a5aa[_0x4b49f3(0x1a3)]?{'type':_0x454053[_0x4b49f3(0x94)],'size':_0x421194[_0x4b49f3(0xf0)]}:void 0x0}}),_0x465420&&(_0x26a5aa[_0x4b49f3(0xc5)]||_0x26a5aa[_0x4b49f3(0x115)])&&(_0x2d4147[_0x4b49f3(0x106)]=_0x25f061({'fill':{'fillType':_0x27d461['SolidFill'],'color':_0x4b49f3(0x1aa)},'isHorizontal':!!_0x26a5aa[_0x4b49f3(0xc5)],'stroke':{'lineStrokeType':_0x517d31[_0x4b49f3(0x1fb)],'width':0x1,'color':_0x4b49f3(0x110)}}));}let _0x2806f1=_0x2249a7['syncExecuteCommand'](_0x28064d['id'],_0x2d4147);return setTimeout(()=>{const _0x4584de=_0x4b49f3;_0x2249a7[_0x4584de(0x2d0)](En['id'],[{'unitId':_0x17a009,'subUnitId':_0x56100a,'drawingId':_0x2d4147[_0x4584de(0xfc)]}]);},0xc8),_0x2806f1;}},On=_0x43dbb9(0x2e7),kn=_0x43dbb9(0x24c),An=_0x43dbb9(0x227),jn=_0x1a4a4b(_0x43dbb9(0x97)),Mn='sheet.shape.text.float-menu',Nn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x8e0e3c[_0x43dbb9(0x82)],'handler':(_0x56dda7,_0x20d3e0)=>{const _0x467ab3=_0x43dbb9;let _0x54f413=_0x56dda7[_0x467ab3(0x1bd)](_0x10b5ac),_0x1596ce=_0x56dda7[_0x467ab3(0x1bd)](_0xa3717a),_0x1395b5=_0x56dda7[_0x467ab3(0x1bd)](_0x7113c7),_0x3b1b1d=_0x56dda7[_0x467ab3(0x1bd)](_0x4d9cac);return _0x59589e(_0x1395b5)?(_0x20d3e0==null?void 0x0:_0x20d3e0[_0x467ab3(0x26b)])===_0x467ab3(0x25f)?(_0x54f413['close'](kn),!0x0):(_0x54f413[_0x467ab3(0x291)]({'id':kn,'header':{'title':_0x1596ce['t'](_0x467ab3(0xab))},'children':{'label':kn},'onClose':()=>{const _0x268e8a=_0x467ab3;_0x3b1b1d[_0x268e8a(0x193)](_0xd68623['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Pn=class extends _0x4760b3{constructor(_0x595d76,_0x3c460c){const _0x155721=_0x43dbb9;super(),this[_0x155721(0x1b1)]=_0x595d76,this['_drawingManagerService']=_0x3c460c,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x155721(0x27c)](!0x0),this[_0x155721(0x11b)]({'dispose':()=>this[_0x155721(0x1b1)][_0x155721(0x27c)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x3e4efc=_0x43dbb9;let _0x314042=this['_clipService'],_0x17ace9=new Map(),_0x3daa60=_0x314042['registerClipDelegate']((_0x45792d,_0x48fc15,_0x318b90,_0x2db91e,_0x4ae177)=>{const _0x2ebfb4=_0x449a;let _0x40d915=_0x48fc15;if(_0x40d915===_0x250922['None']||_0x48fc15===_0x2ebfb4(0x1c3))return!0x1;try{let _0x2d0aa6=_0x17ace9[_0x2ebfb4(0x1bd)](_0x48fc15);return _0x2d0aa6||(_0x2d0aa6=new _0xf0c0c(_0x40d915,_0x2ebfb4(0x261)+_0x48fc15),_0x17ace9[_0x2ebfb4(0xd9)](_0x48fc15,_0x2d0aa6)),_0x4ae177&&_0x2d0aa6['setShapeData']({'adjustValues':_0x4ae177},!0x0),_0x2d0aa6[_0x2ebfb4(0x104)]({'width':_0x318b90,'height':_0x2db91e}),_0x2d0aa6[_0x2ebfb4(0x2c2)](_0x45792d,{'left':0x0,'top':0x0,'width':_0x318b90,'height':_0x2db91e});}catch{return!0x1;}});this['disposeWithMe'](_0x3daa60),this['disposeWithMe']({'dispose':()=>_0x17ace9[_0x3e4efc(0x2a5)]()});}[_0x43dbb9(0x124)](_0x54fb46,_0x3296f2,_0x11e57b,_0x197668,_0x2efd94){const _0x4767b6=_0x43dbb9;let _0x5a76d9=this['_drawingManagerService']['getDrawingData'](_0x54fb46,_0x3296f2);if(!_0x5a76d9[_0x11e57b])return;let _0x3ae8b4={..._0x5a76d9[_0x11e57b],'prstGeom':_0x197668,'adjustValues':_0x2efd94};this[_0x4767b6(0xcc)]['featurePluginUpdateNotification']([_0x3ae8b4]);}};Pn=Z([X(0x0,_0x450bf3(_0xe0e719)),X(0x1,_0x450bf3(_0x324617))],Pn);const Fn=_0x43dbb9(0x281),In=_0x43dbb9(0x220);function Ln({onShapeClick:_0xc27fa8,excludeGroups:_0xe54ac2}){const _0x28c5a2=_0x43dbb9;return _0x2b677f(_0x43451f,{'excludeGroups':_0xe54ac2,'onShapeClick':_0xc27fa8,'scrollContainer':_0x28c5a2(0xf4)});}function Rn(){const _0x5923d8=_0x43dbb9;let _0x1f42a8=_0x597c42(_0x324617),_0x2e3d48=_0x597c42(Pn);return _0x2b677f(_0x106929,{'buttonLabel':_0x5923d8(0xfe),'excludeGroups':[_0x2cca23['Line']],'onShapeClick':_0x23c122=>{const _0x3faa4b=_0x5923d8;let _0x5496a7=_0x1f42a8['getFocusDrawings']()['find'](_0x28e4c0=>_0x28e4c0[_0x3faa4b(0x2cb)]===_0x5d03f6[_0x3faa4b(0x20a)]);if(!_0x5496a7)return;let {unitId:_0x49b6ba,subUnitId:_0x231248,drawingId:_0x5d59c5}=_0x5496a7;_0x2e3d48['clipByShape'](_0x49b6ba,_0x231248,_0x5d59c5,_0x23c122['type']);}});}function zn(){const _0xbea791=_0x43dbb9;let _0x7c519c=_0x597c42(_0x1953f8),_0x5c5936=_0x597c42(_0x324617),_0x569cac=_0x597c42(_0x7113c7),_0x1c420c=_0x5c5936[_0xbea791(0x27f)]()[0x0],_0x386510=_0x1c420c?_0x569cac[_0xbea791(0x172)](_0x1c420c[_0xbea791(0x25d)]):void 0x0,_0x23da56=_0x386510===_0x2a1b28[_0xbea791(0x26f)]?_0xbea791(0x18e):_0x386510===_0x2a1b28[_0xbea791(0x1e0)]?In:void 0x0,_0x226ab4=_0x23da56?_0x7c519c[_0xbea791(0x1bd)](_0x23da56):void 0x0;return _0x226ab4?_0x2b677f(_0x226ab4,{}):null;}function Bn(){let _0x51d206=_0x597c42(_0x4d9cac);return _0x2b677f(Ln,{'onShapeClick':_0x4fc891=>{const _0x409914=_0x449a;_0x51d206[_0x409914(0x2d0)](Dn['id'],{'value':_0x4fc891[_0x409914(0x178)],'enhanceParams':{'endArrow':_0x4fc891[_0x409914(0x1a3)],'startArrow':_0x4fc891[_0x409914(0x28b)],'horizontal':_0x4fc891[_0x409914(0xc5)],'vertical':_0x4fc891[_0x409914(0x115)]}});}});}function Vn(_0x277f99){const _0x22e7cb=_0x43dbb9;let _0xc42db7=_0x277f99['get'](_0x7113c7);return{'id':Dn['id'],'type':_0x142b74[_0x22e7cb(0x26d)],'selections':[{'label':{'name':Fn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Dn['id']}}}],'icon':_0x22e7cb(0x181),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x4f53b0(_0xc42db7,!0x1,()=>new _0x573c9d(_0x3dd579=>{const _0x491bfd=_0x22e7cb;_0x3dd579[_0x491bfd(0x166)](!0x1);})),'hidden$':_0x227618(_0x277f99,_0x2a1b28[_0x22e7cb(0x1e0)]),'disabled$':_0x3b91cb(_0x277f99)};}function Hn(_0x5c8858){const _0x5ad8d1=_0x43dbb9;let _0x293653=_0x5c8858['get'](_0x7113c7);return{'id':Nn['id'],'type':_0x142b74[_0x5ad8d1(0xf5)],'icon':_0x5ad8d1(0x134),'title':_0x5ad8d1(0x205),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x4f53b0(_0x293653,!0x1,()=>new _0x573c9d(_0x2d620c=>{const _0x370a93=_0x5ad8d1;_0x2d620c[_0x370a93(0x166)](!0x1);})),'hidden$':_0x227618(_0x5c8858,_0x2a1b28[_0x5ad8d1(0x1e0)]),'disabled$':_0x3b91cb(_0x5c8858)};}const Un={[_0x24939b[_0x43dbb9(0xec)]]:{[Dn['id']]:{'order':0x4,'menuItemFactory':Vn}},[_0x24939b['OTHERS']]:{[Nn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Hn}}};var Wn=_0x43dbb9(0xfa),Gn=_0x43dbb9(0xf1);const Kn={'type':_0x8e0e3c[_0x43dbb9(0x269)],'id':_0x43dbb9(0x145),'handler'(){return!0x0;}},qn={'type':_0x8e0e3c[_0x43dbb9(0x269)],'id':_0x43dbb9(0xfd),'handler'(){return!0x0;}},Jn={};function Yn(_0x3b9c3d){const _0x41be41=_0x43dbb9;return _0x3b9c3d[_0x41be41(0x2c6)]()||void 0x0;}function Xn(_0x4cf919){const _0x5e43e0=_0x43dbb9;switch(_0x4cf919['drawingType']){case _0x5d03f6[_0x5e43e0(0x20a)]:return _0x5e43e0(0x1a5);case _0x5d03f6[_0x5e43e0(0x8d)]:return'chart';case _0x5d03f6[_0x5e43e0(0xda)]:return'table';case _0x5d03f6[_0x5e43e0(0x1bc)]:return _0x5e43e0(0x131);case _0x5d03f6[_0x5e43e0(0x23e)]:return _0x5e43e0(0x1fe);case _0x5d03f6['DRAWING_GROUP']:return'group';case _0x5d03f6[_0x5e43e0(0x83)]:return'unit';case _0x5d03f6['DRAWING_DOM']:return _0x5e43e0(0x1c1);case _0x5d03f6[_0x5e43e0(0x23a)]:return'shape';default:return'object';}}function Zn(_0xfd5afd,_0xcc88cb,_0x1fa735){var _0x56c78b;return((_0x56c78b=_0xfd5afd['name'])==null?void 0x0:_0x56c78b['trim']())||_0x4a9bd6(_0x1fa735,Xn(_0xfd5afd))+'\x20'+(_0xcc88cb+0x1);}function Qn(){const _0x3264d5=_0x43dbb9;var _0x368122,_0x8a8a4a,_0x30a222,_0x21cd2b;let _0x1f729b=_0x597c42(_0xa3717a),_0x186399=_0x597c42(_0x4d9cac),_0x77d78=_0x597c42(_0x7113c7),_0x164823=_0x597c42(_0x57e4c3),_0x159c35=_0x597c42(_0x324617),_0x206d62=_0x597c42(_0x263af6),[,_0x44ccf5]=_0x97793a(_0x2d9be3=>_0x2d9be3+0x1,0x0),_0x3cf7a6=_0x77d78[_0x3264d5(0x165)](_0x2a1b28['UNIVER_SHEET']),_0xa2bcce=(_0x368122=_0x3cf7a6==null?void 0x0:_0x3cf7a6[_0x3264d5(0xb8)]())==null?'':_0x368122,_0x2972b5=(_0x8a8a4a=_0x3cf7a6==null||(_0x30a222=_0x3cf7a6[_0x3264d5(0x144)]())==null?void 0x0:_0x30a222[_0x3264d5(0xa3)]())==null?'':_0x8a8a4a,_0x28d297=_0x31d745(()=>_0x159c35[_0x3264d5(0x231)],_0x159c35[_0x3264d5(0x27f)](),!0x1,[_0x159c35]);_0x15fc40(()=>{const _0xe383bd=_0x3264d5;let _0x953e53=_0x186399[_0xe383bd(0x1f7)](()=>_0x44ccf5());return()=>_0x953e53[_0xe383bd(0x2dd)]();},[_0x186399]);let _0x1de9f3=_0xa2bcce&&_0x2972b5?_0x164823[_0x3264d5(0x295)](_0xa2bcce,_0x2972b5):{},_0x1360ee=_0xa2bcce&&_0x2972b5?_0x164823[_0x3264d5(0x1a0)](_0xa2bcce,_0x2972b5):[],_0x48ffdf=_0x293422(()=>_0x11da8e(_0x1f729b),[_0x1f729b]),_0x4cdead=_0x293422(()=>{const _0x3851d=_0x3264d5;let _0x24203c=_0x1360ee['map'](_0x2f5d99=>_0x1de9f3[_0x2f5d99])[_0x3851d(0xb6)](_0x255b23=>!!_0x255b23)['reverse'](),_0x3ef791=_0x24203c[_0x3851d(0x2a8)]((_0x57ad18,_0x339373)=>(_0x57ad18[_0x450da7(_0x339373[_0x3851d(0x2cb)])]+=0x1,_0x57ad18),{'canvas':0x0,'floating':0x0}),_0x47aa98={'canvas':0x0,'floating':0x0};return _0x24203c[_0x3851d(0x29a)]((_0x28aff5,_0x58e9e5)=>{const _0xe20625=_0x3851d;let _0x522053=_0x450da7(_0x28aff5[_0xe20625(0x2cb)]),_0xe35e22=_0x522053===_0x34974e,_0x141d7a=_0x47aa98[_0x522053]++;return{'id':_0x28aff5['drawingId'],'name':Zn(_0x28aff5,_0x58e9e5,_0x1f729b),'description':_0x28aff5[_0xe20625(0x197)],'visible':_0x28aff5['hidden']!==!0x0,'selectable':_0x28aff5[_0xe20625(0x207)]!==!0x1,'sectionId':_0x522053,'sectionTitle':_0xe35e22?_0x48ffdf[_0xe20625(0x11c)]:_0x48ffdf[_0xe20625(0x135)],'capabilities':_0xe35e22?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xe35e22&&_0x141d7a>0x0,'canMoveBackward':!_0xe35e22&&_0x141d7a<_0x3ef791[_0xe20625(0xa6)]-0x1,'canReorder':!_0xe35e22};});},[_0x1de9f3,_0x1360ee,_0x48ffdf['sectionCanvas'],_0x48ffdf['sectionFloating'],_0x1f729b]),_0xd4f05d=_0x293422(()=>(_0x28d297==null?[]:_0x28d297)[_0x3264d5(0xb6)](_0x233cda=>_0x233cda['unitId']===_0xa2bcce&&_0x233cda[_0x3264d5(0x212)]===_0x2972b5)[_0x3264d5(0x29a)](_0xd3880e=>_0xd3880e[_0x3264d5(0x1a9)]),[_0x28d297,_0x2972b5,_0xa2bcce]),_0x30a1bc=(_0x21cd2b=_0xd4f05d[_0xd4f05d[_0x3264d5(0x15f)]-0x1])==null?null:_0x21cd2b,_0x4db5ee=_0x277b9d=>{const _0x231827=_0x3264d5;var _0x2a3590;return(_0x2a3590=_0x164823[_0x231827(0x171)]({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x277b9d}))==null?null:_0x2a3590;},_0x58bbd6=_0x5b6ae9=>{!_0xa2bcce||!_0x5b6ae9['length']||_0x186399['executeCommand'](_0x1fd507['id'],{'unitId':_0xa2bcce,'drawings':_0x5b6ae9});},_0x4dbe62=(_0x5c9dad,_0x195a2e)=>{_0x4db5ee(_0x5c9dad)&&_0x58bbd6([{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x5c9dad,..._0x195a2e}]);},_0x403880=(_0x1a6093,_0x16d66e)=>{const _0x1a1827=_0x3264d5;if(!_0xa2bcce||!_0x2972b5)return;let _0x17b273=_0x16d66e?_0xd4f05d[_0x1a1827(0x1b0)](_0x1a6093)?_0xd4f05d['filter'](_0xfba0b3=>_0xfba0b3!==_0x1a6093):[..._0xd4f05d,_0x1a6093]:[_0x1a6093];_0x186399[_0x1a1827(0x193)](_0xd68623['id'],_0x17b273['map'](_0xc442dd=>({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0xc442dd})));let _0x5053ab=_0x17b273[_0x17b273[_0x1a1827(0x15f)]-0x1];_0x5053ab?_0x4df6a5(_0x206d62,{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x5053ab}):_0xbdee17(_0x206d62,_0xa2bcce);},_0x409d1d=(_0x5264d5,_0x3d74f0)=>{const _0x5817e8=_0x3264d5;_0x58bbd6(_0x5264d5['map'](_0x2e6a03=>_0x4db5ee(_0x2e6a03))[_0x5817e8(0xb6)](_0x473b67=>!!_0x473b67)[_0x5817e8(0xb6)](_0x2e892c=>_0x2e892c[_0x5817e8(0x237)]!==!0x0!==_0x3d74f0)[_0x5817e8(0x29a)](_0x2e8678=>({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x2e8678['drawingId'],'hidden':!_0x3d74f0})));},_0x499beb=_0x159c04=>{const _0x4a7fe7=_0x3264d5;let _0x4c496d=_0x4db5ee(_0x159c04);_0x4c496d&&_0x4dbe62(_0x159c04,{'selectable':_0x4c496d[_0x4a7fe7(0x207)]===!0x1?void 0x0:!0x1});},_0xb435c9=(_0x437298,_0x281235)=>{const _0x234951=_0x3264d5;var _0x2f16b9,_0x1d22a2;let _0x297a55=Yn(_0x281235);((_0x2f16b9=(_0x1d22a2=_0x4db5ee(_0x437298))==null?void 0x0:_0x1d22a2[_0x234951(0x1c4)])==null?void 0x0:_0x2f16b9)!==_0x297a55&&_0x4dbe62(_0x437298,{'name':_0x297a55});},_0x122734=(_0x459130,_0x186aeb)=>{const _0x3f8691=_0x3264d5;var _0x326430,_0x3f249b;let _0x1a9add=Yn(_0x186aeb);((_0x326430=(_0x3f249b=_0x4db5ee(_0x459130))==null?void 0x0:_0x3f249b[_0x3f8691(0x197)])==null?void 0x0:_0x326430)!==_0x1a9add&&_0x4dbe62(_0x459130,{'description':_0x1a9add});},_0x3fd0a5=(_0x474b69,_0x4c15b3)=>{!_0xa2bcce||!_0x2972b5||_0x186399['executeCommand'](_0x390f9f['id'],{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingIds':[_0x474b69],'arrangeType':_0x4c15b3});};return!_0xa2bcce||!_0x2972b5?_0x2b677f(_0x3264d5(0x223),{'className':_0x3264d5(0x211),'children':_0x48ffdf[_0x3264d5(0x1bb)]}):_0x2b677f(_0x313482,{'items':_0x4cdead,'selectedIds':_0xd4f05d,'focusedId':_0x30a1bc,'labels':_0x48ffdf,'onSelect':_0x403880,'onSetVisible':_0x409d1d,'onCommitName':_0xb435c9,'onCommitDescription':_0x122734,'onMoveForward':_0x12149c=>_0x3fd0a5(_0x12149c,_0x202737[_0x3264d5(0xdf)]),'onMoveBackward':_0x5084c2=>_0x3fd0a5(_0x5084c2,_0x202737['backward']),'onToggleSelectable':_0x499beb});}let $n=class{constructor(_0x33260a){this['_renderManagerService']=_0x33260a;}[_0x43dbb9(0x1e9)](_0x4aaab1,_0x3b5fa0){const _0x331a9c=_0x43dbb9;let _0x3cdedc=this[_0x331a9c(0x87)][_0x331a9c(0x19c)](_0x4aaab1[_0x331a9c(0x25d)]),_0xa3862d=_0x3cdedc==null?void 0x0:_0x3cdedc['scene'];if(!_0xa3862d)return;let _0x656370=_0x7f2912(_0x4aaab1),_0x314db4=_0xa3862d['getObjectIncludeInGroup'](_0x656370);_0x314db4==null||_0x314db4['setFillImage'](_0x3b5fa0);}};$n=Z([X(0x0,_0x263af6)],$n);function _0x449a(_0x375ae1,_0x5ceeea){_0x375ae1=_0x375ae1-0x82;const _0x1d5daa=_0x1d5d();let _0x449ae4=_0x1d5daa[_0x375ae1];return _0x449ae4;}function er(){const _0x14e8d2=_0x43dbb9;let _0xd8d6d2=_0x597c42(_0x324617),_0x2e2b5f=_0x31d745(()=>_0xd8d6d2[_0x14e8d2(0x231)],_0xd8d6d2[_0x14e8d2(0x27f)](),!0x1,[_0xd8d6d2]);return _0x2e2b5f[_0x14e8d2(0x15f)]===0x0?null:_0x2b677f('div',{'children':_0x27f2a4(_0x14e8d2(0x223),{'className':_0x14e8d2(0xd7),'children':[_0x2b677f(_0xd5003,{'drawings':_0x2e2b5f,'hasCropper':!0x1}),_0x2b677f(_0x1fbaec,{'drawings':_0x2e2b5f})]})});}function tr(_0x4a4486){let {unitId:_0x3daae7,subUnitId:_0xd493eb,shapeId:_0x3ddc6f}=_0x4a4486,_0x4eca3b=_0x597c42(_0x4d9cac),_0x3a1900=_0x597c42($n);return _0x2b677f(_0x30898f,{..._0x4a4486,'positionEditor':_0x2b677f(er,{}),'onUpdateShapeData':(_0x3c2142,_0x2a9ff5)=>{_n(_0x4eca3b,_0x3daae7,_0xd493eb,_0x3ddc6f,_0x3c2142,_0x2a9ff5);},'onUpdateLineShapeData':(_0x5a5f8e,_0x25cc88)=>{vn(_0x4eca3b,_0x3daae7,_0xd493eb,_0x3ddc6f,_0x5a5f8e,_0x25cc88);},'onUpdateShapeFillImage':_0xc4652d=>{const _0xfae5c9=_0x449a;_0x3a1900[_0xfae5c9(0x1e9)]({'unitId':_0x3daae7,'subUnitId':_0xd493eb,'drawingId':_0x3ddc6f},_0xc4652d);}});}function nr(_0xdb3d5f){const _0x5846de=_0x43dbb9;let _0x59f4d1=_0xdb3d5f[_0x5846de(0x1ce)][_0x5846de(0x1be)];return _0x59f4d1?_0x2b677f(rr,{..._0x59f4d1}):null;}function rr(_0x24c783){const _0x156b75=_0x43dbb9;var _0x430f3e,_0x505c2b;let _0x1a14d2=_0x597c42(_0x4d9cac),_0x4f5cc8=_0x597c42(_0x26a217),{unitId:_0x4feab7,subUnitId:_0x22cf67,drawingId:_0x522b38,drawingType:_0x453101,shapeType:_0x1cafc0}=_0x24c783,[_0x2c6782,_0x9182d7]=_0x5a0562(_0x24c783['shapeData']),_0x5eb587=_0x293422(()=>_0x32374d(_0x2c6782),[_0x2c6782]),_0x19658d=_0x293422(()=>_0x4d64d0(_0x2c6782),[_0x2c6782]);_0x15fc40(()=>{const _0x248e1d=_0x449a;let _0x3139a4=_0x1a14d2[_0x248e1d(0x1f7)](_0x3ba9f2=>{const _0x5622a3=_0x248e1d;if(_0x3ba9f2['id']!==_0x19b81c['id'])return;let _0x65f0ba=_0x4f5cc8[_0x5622a3(0xeb)](_0x4feab7,_0x22cf67,_0x522b38);_0x65f0ba&&_0x9182d7(_0x65f0ba);});return()=>_0x3139a4[_0x248e1d(0x2dd)]();},[_0x1a14d2,_0x522b38,_0x4f5cc8,_0x22cf67,_0x4feab7]);let _0x257412=_0x4dca13=>{_0x9182d7(_0x43234f=>({..._0x43234f,..._0x4dca13}));},_0x427e76=_0x3e9b15=>{const _0x11ba60=_0x449a;let _0x4fda54=_0x299119(_0x2c6782,_0x3e9b15);_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,{'oldShapeData':{'shapeText':_0x2c6782[_0x11ba60(0x1cf)]}},_0x4fda54),_0x257412(_0x4fda54);},_0x1dcd06=_0x1d16dd({'unitId':_0x4feab7,'subUnitId':_0x22cf67,'shapeId':_0x522b38,'shapeData':_0x2c6782,'onUpdateBinding':_0x128bde=>{const _0x31f808=_0x449a;let _0xdc2d9={'formulaBinding':_0x128bde};_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,{'oldShapeData':{'formulaBinding':_0x2c6782[_0x31f808(0x17a)]}},_0xdc2d9),_0x257412(_0xdc2d9);}});return _0x27f2a4(_0xf1e5d2,{'children':[_0x2b677f(_0xf7955b,{'shapeData':_0x2c6782,'shapeType':_0x1cafc0,'textStyle':{'ff':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x8a)],'fs':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x1c5)],'cl':{'rgb':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x222)]},..._0x5eb587},'textModel':_0x19658d?{'ha':(_0x430f3e=_0x19658d['ha'])==null?_0x1bf681['LEFT']:_0x430f3e,'va':(_0x505c2b=_0x19658d['va'])==null?_0x3d0a33[_0x156b75(0x116)]:_0x505c2b}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2bc8ec[_0x156b75(0x1ee)],'defaultGradientEndColor':_0x2bc8ec[_0x156b75(0xb9)],'defaultStrokeColor':_0x2bc8ec[_0x156b75(0x294)],'extensionGroups':_0x1dcd06[_0x156b75(0x13f)],'onUpdateShapeData':(_0x4cfd09,_0x5b10d4)=>{_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,_0x4cfd09,_0x5b10d4),_0x5b10d4&&_0x257412(_0x5b10d4);},'onUpdateText':_0x427e76,'onOpenPanel':()=>{_0x1a14d2['executeCommand'](qn['id'],{'unitId':_0x4feab7,'subUnitId':_0x22cf67,'drawingId':_0x522b38});},'onDelete':()=>{_0x1a14d2['executeCommand'](_0x10723d['id'],{'unitId':_0x4feab7,'drawings':[{'unitId':_0x4feab7,'subUnitId':_0x22cf67,'drawingId':_0x522b38,'drawingType':_0x453101}]});}}),_0x1dcd06[_0x156b75(0x12e)]]});}var ir=class extends _0x4760b3{constructor(..._0x43665a){const _0x3fd954=_0x43dbb9;super(..._0x43665a),Y(this,_0x3fd954(0x1ae),new _0x502f7b(null)),Y(this,_0x3fd954(0x17b),this['_editingParams$'][_0x3fd954(0x10e)]()),Y(this,_0x3fd954(0x138),new _0x502f7b(!0x1)),Y(this,'onSavingEditorData$',this[_0x3fd954(0x138)][_0x3fd954(0x10e)]());}[_0x43dbb9(0x2dd)](){const _0x397bb4=_0x43dbb9;this[_0x397bb4(0x1ae)]['next'](null),this['_editingParams$'][_0x397bb4(0x151)](),this[_0x397bb4(0x138)][_0x397bb4(0x166)](!0x1),this[_0x397bb4(0x138)][_0x397bb4(0x151)](),super[_0x397bb4(0x2dd)]();}['setEditing'](_0x34fe7f){const _0x41568a=_0x43dbb9;this['_editingParams$'][_0x41568a(0x166)](_0x34fe7f),_0x34fe7f==null&&this[_0x41568a(0x138)][_0x41568a(0x166)](!0x1);}[_0x43dbb9(0xe2)](_0x2d9900){const _0x479c88=_0x43dbb9;this['_onSavingEditorData$'][_0x479c88(0x166)](_0x2d9900);}[_0x43dbb9(0x1f9)](){const _0x5b35bc=_0x43dbb9;return this[_0x5b35bc(0x1ae)][_0x5b35bc(0x170)]();}[_0x43dbb9(0x182)](_0x5760e3){const _0x188bbd=_0x43dbb9;this['getEditing']()&&(this[_0x188bbd(0xe2)](!0x0),requestAnimationFrame(()=>{const _0x3a1216=_0x188bbd;this[_0x3a1216(0xc7)](null);}));}['cancelEditing'](){const _0x2fd8c3=_0x43dbb9;this[_0x2fd8c3(0x1f9)]()&&this[_0x2fd8c3(0xc7)](null);}};const ar=_0x3adf0a(()=>{const _0x39c086=_0x43dbb9;let _0x24814a=_0x597c42(ir),_0x39d8ce=_0x597c42(_0x26a217),_0x555180=_0x597c42(_0x324617),_0x18ebe5=_0x597c42(_0x4d9cac),_0x5c5061=_0x597c42(_0x263af6);return _0x2b677f(_0x1ef440,{'adapter':_0x293422(()=>({'getShapeModel':(_0x323d56,_0x55d689,_0x168b6e)=>_0x39d8ce[_0x39c086(0x251)](_0x323d56,_0x55d689,_0x168b6e),'getShapeData':(_0x2a42ce,_0x1ed7be,_0x181fe9)=>_0x39d8ce[_0x39c086(0xeb)](_0x2a42ce,_0x1ed7be,_0x181fe9),'getDrawingTransform':(_0x3d5b46,_0x1ec96e,_0x3f2737)=>{const _0xf33ee7=_0x39c086;let _0x50cb45=_0x555180['getDrawingByParam']({'unitId':_0x3d5b46,'subUnitId':_0x1ec96e,'drawingId':_0x3f2737});return _0x50cb45==null?void 0x0:_0x50cb45[_0xf33ee7(0x10c)];},'updateShapeText':({unitId:_0x3ff824,subUnitId:_0xdfe53c,shapeId:_0x5cd977,shapeText:_0x28c205,oldShapeText:_0x48bba0})=>{const _0x3d3000=_0x39c086;_0x18ebe5[_0x3d3000(0x2d0)](gn['id'],{'unitId':_0x3ff824,'subUnitId':_0xdfe53c,'shapeId':_0x5cd977,'shapeData':{'shapeText':_0x28c205},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x48bba0}}});},'updateHostSize':({unitId:_0x1ea1b3,subUnitId:_0x10ca5d,shapeId:_0x538887,width:_0x4801d0,height:_0x122cc8})=>{const _0x3471bf=_0x39c086;var _0x341e09,_0x16d517,_0x338e19;let _0x40b0bb=_0x555180[_0x3471bf(0x171)]({'unitId':_0x1ea1b3,'subUnitId':_0x10ca5d,'drawingId':_0x538887}),_0x2834f8=_0x40b0bb==null?void 0x0:_0x40b0bb['transform'];if(!_0x40b0bb||!_0x2834f8)return;let _0x1d89c5={..._0x2834f8,'width':_0x4801d0,'height':_0x122cc8},_0x3080ef=(_0x341e09=_0x5c5061[_0x3471bf(0x19c)](_0x1ea1b3))==null||(_0x341e09=_0x341e09[_0x3471bf(0x2ea)](_0x392ff0)[_0x3471bf(0x255)](_0x10ca5d))==null?void 0x0:_0x341e09['skeleton'],_0x2a2762=_0x3080ef?(_0x16d517=_0x556f36(_0x1d89c5,_0x3080ef))==null?_0x40b0bb[_0x3471bf(0x195)]:_0x16d517:_0x40b0bb[_0x3471bf(0x195)],_0x42f231=_0x3080ef?(_0x338e19=_0x38f007(_0x1d89c5,_0x3080ef))==null?_0x40b0bb[_0x3471bf(0x268)]:_0x338e19:_0x40b0bb[_0x3471bf(0x268)];_0x18ebe5[_0x3471bf(0x2d0)](_0x1fd507['id'],{'unitId':_0x1ea1b3,'drawings':[{..._0x40b0bb,'transform':_0x1d89c5,'sheetTransform':_0x2a2762,'axisAlignSheetTransform':_0x42f231}]});},'allowHostSizeShrink':({unitId:_0x43a7bf,subUnitId:_0x5c9d20,shapeId:_0x525970})=>_0x7ce441(_0x39d8ce[_0x39c086(0xeb)](_0x43a7bf,_0x5c9d20,_0x525970))}),[_0x18ebe5,_0x555180,_0x5c5061,_0x39d8ce]),'editingService':_0x24814a,'editorUnitId':jn,'positionOptions':_0x293422(()=>({'viewportKeys':{'main':_0x4ce309[_0x39c086(0x27d)],'leftTop':_0x4ce309[_0x39c086(0x1db)],'top':_0x4ce309[_0x39c086(0x1e8)],'left':_0x4ce309[_0x39c086(0x1f6)]},'getSkeleton':(_0x28263b,_0x320743)=>{const _0x599119=_0x39c086;var _0x2e2dc1,_0x36f2d3;return(_0x2e2dc1=(_0x36f2d3=_0x28263b[_0x599119(0x2ea)](_0x392ff0)[_0x599119(0x255)](_0x320743['subUnitId']))==null?void 0x0:_0x36f2d3[_0x599119(0x287)])==null?null:_0x2e2dc1;}}),[])});});let or=class extends _0x4760b3{constructor(_0x56f394,_0x1f6017){const _0x4a8ccd=_0x43dbb9;super(),this[_0x4a8ccd(0x103)]=_0x56f394,this[_0x4a8ccd(0x239)]=_0x1f6017,this[_0x4a8ccd(0x28c)](),this[_0x4a8ccd(0x265)]();}[_0x43dbb9(0x28c)](){const _0x2c2a87=_0x43dbb9;this[_0x2c2a87(0x239)][_0x2c2a87(0x2b0)](_0x2c2a87(0x134))||this[_0x2c2a87(0x11b)](this[_0x2c2a87(0x239)][_0x2c2a87(0x21e)]({'ObjectLayersIcon':_0x347bf2}));}['_registerComponents'](){const _0xb119ee=_0x43dbb9;this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](On,tr)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](kn,Qn)),this['disposeWithMe'](this['_componentManager'][_0xb119ee(0x21e)](Fn,Bn)),this['disposeWithMe'](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](In,Rn)),this['_componentManager']['get'](_0x1f5a6b)||this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](_0x1f5a6b,zn)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](An,nr)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](Mn,_0x312819)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](_0xb119ee(0x143),ar));}};or=Z([X(0x0,_0x450bf3(_0x1953f8)),X(0x1,_0x450bf3(_0x200e2a))],or);let sr=class extends _0x4760b3{constructor(_0x3f6628,_0xa9b068,_0x40f357,_0x9ab23e,_0x16257b){const _0x29ee3c=_0x43dbb9;super(),this[_0x29ee3c(0xfb)]=_0x3f6628,this[_0x29ee3c(0xcc)]=_0xa9b068,this[_0x29ee3c(0x87)]=_0x40f357,this['_univerInstanceService']=_0x9ab23e,this['_imageShapeClipController']=_0x16257b,Y(this,_0x29ee3c(0x169),null),Y(this,_0x29ee3c(0x238),null),Y(this,_0x29ee3c(0x250),null),Y(this,_0x29ee3c(0x2cd),void 0x0),Y(this,_0x29ee3c(0x176),[]),Y(this,_0x29ee3c(0x283),0x0),Y(this,_0x29ee3c(0x92),0x0),Y(this,_0x29ee3c(0x127),0x0),Y(this,_0x29ee3c(0x233),0x0),Y(this,'_isStartAdjusting',!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,_0x29ee3c(0x22b),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x29ee3c(0x292),!0x1),this[_0x29ee3c(0x2d8)](),this[_0x29ee3c(0x1ad)]();}[_0x43dbb9(0x2e3)](){const _0x82c8d2=_0x43dbb9;this[_0x82c8d2(0x186)]();}[_0x43dbb9(0x14d)](){const _0x11763d=_0x43dbb9;this[_0x11763d(0x186)](),this[_0x11763d(0x1c8)](!0x0);}[_0x43dbb9(0x15e)](_0x2275ba,_0x272634,_0x223dcf,_0x4611ed){const _0x312609=_0x43dbb9;let _0x323004=_0x2275ba;if(!(_0x323004===_0x250922[_0x312609(0x1cd)]||_0x2275ba===_0x312609(0x1c3)))try{let _0x48c5de=new _0xf0c0c(_0x323004,_0x312609(0x259)+_0x2275ba);return _0x4611ed&&_0x48c5de[_0x312609(0x1a4)]({'adjustValues':_0x4611ed},!0x0),_0x48c5de[_0x312609(0x104)]({'width':_0x272634,'height':_0x223dcf}),_0x48c5de;}catch{return;}}[_0x43dbb9(0x1a6)](_0x56326f,_0x5d2afc,_0x5a0771){const _0x4a2c67=_0x43dbb9;let _0xad96f={'unitId':_0x56326f,'subUnitId':_0x5d2afc,'drawingId':_0x5a0771},_0x382d2b=this[_0x4a2c67(0xcc)][_0x4a2c67(0x171)](_0xad96f);if(!(!_0x382d2b||_0x382d2b['drawingType']!==_0x5d03f6[_0x4a2c67(0x20a)]))return _0x382d2b;}[_0x43dbb9(0x190)](_0x2a657d,_0x509f76,_0x3a3299){const _0x1807ef=_0x43dbb9;let _0x1f3076=this[_0x1807ef(0x87)][_0x1807ef(0x19c)](_0x2a657d);if(!_0x1f3076)return;let {scene:_0x5759b4}=_0x1f3076,_0x532d26=_0x7f2912({'unitId':_0x2a657d,'subUnitId':_0x509f76,'drawingId':_0x3a3299}),_0x36520c=_0x5759b4[_0x1807ef(0xad)](_0x532d26);if(_0x36520c instanceof _0x3100f0){let _0x4cdadf=_0x36520c[_0x1807ef(0x132)];if(_0x4cdadf)return{'prstGeom':_0x4cdadf,'adjustValues':_0x36520c[_0x1807ef(0x224)]};}}[_0x43dbb9(0x1c8)](_0x1dc7ff=!0x1){const _0x201aa2=_0x43dbb9;if(!this[_0x201aa2(0x238)]||!this[_0x201aa2(0x250)]||!this[_0x201aa2(0x169)])return;let _0x3b9702=this[_0x201aa2(0x87)][_0x201aa2(0x19c)](this[_0x201aa2(0x238)]);if(!_0x3b9702||!_0x3b9702['with'](_0x392ff0)['getCurrentSkeleton']())return;let {scene:_0x4a7af7}=_0x3b9702,_0x8faf29=this[_0x201aa2(0x1a6)](this[_0x201aa2(0x238)],this[_0x201aa2(0x250)],this['_activeImageId']);if(!_0x8faf29)return;let {transform:_0x10dd7c}=_0x8faf29;if(!_0x10dd7c)return;let {left:_0x2cb364,top:_0xbe4c4a,width:_0x46eb08,height:_0x427252,flipX:_0x362db1,flipY:_0x573adc,angle:_0xc01ef8=0x0}=_0x10dd7c;if(_0x2cb364===void 0x0||_0xbe4c4a===void 0x0)return;let _0x4d8198=this[_0x201aa2(0x190)](this['_unitId'],this[_0x201aa2(0x250)],this[_0x201aa2(0x169)]);if(!_0x4d8198)return;if(_0x1dc7ff){let _0x46f1e5=this[_0x201aa2(0x15e)](_0x4d8198[_0x201aa2(0x132)],_0x46eb08||0x0,_0x427252||0x0,_0x4d8198[_0x201aa2(0xef)]);if(!_0x46f1e5)return;this[_0x201aa2(0x2cd)]=_0x46f1e5[_0x201aa2(0x275)]();}let _0x4988b6=this['_activeAdjustPointList'];if(!(!_0x4988b6||_0x4988b6[_0x201aa2(0x15f)]===0x0))for(let _0x261092=0x0;_0x261092<_0x4988b6[_0x201aa2(0x15f)];_0x261092++){let _0x2558dd=_0x4988b6[_0x261092],_0x4c26c1=_0x2558dd['x'],_0x407e31=_0x2558dd['y'];if(_0x362db1&&(_0x4c26c1=(_0x46eb08||0x0)-_0x4c26c1),_0x573adc&&(_0x407e31=(_0x427252||0x0)-_0x407e31),_0xc01ef8!==0x0){let _0x593eab=(_0x46eb08||0x0)/0x2,_0x32dc9f=(_0x427252||0x0)/0x2,_0x5bfcf9=_0xc01ef8*Math['PI']/0xb4,_0x41fd72=Math[_0x201aa2(0x109)](_0x5bfcf9),_0xc88062=Math[_0x201aa2(0x1e6)](_0x5bfcf9),_0x461d70=_0x4c26c1-_0x593eab,_0x58288f=_0x407e31-_0x32dc9f;_0x4c26c1=_0x593eab+(_0x461d70*_0x41fd72-_0x58288f*_0xc88062),_0x407e31=_0x32dc9f+(_0x461d70*_0xc88062+_0x58288f*_0x41fd72);}let _0x37f031={'x':_0x4c26c1,'y':_0x407e31,'adjName':_0x2558dd['adjName']};this[_0x201aa2(0x2d2)](_0x4a7af7,_0x37f031,_0x37f031['adjName'],_0x2cb364,_0xbe4c4a,this[_0x201aa2(0x238)],this[_0x201aa2(0x250)]);}}[_0x43dbb9(0x2d2)](_0x3df7af,_0xd34090,_0x3fdd98,_0x283fcd,_0x19f9ac,_0x146883,_0xdb8dab){const _0x13b400=_0x43dbb9;if(!this[_0x13b400(0x169)])return;let _0x188549=_0x13b400(0x2a2)+this[_0x13b400(0x169)]+'-'+_0x3fdd98,_0x257a33=_0x3df7af[_0x13b400(0x1de)](_0x188549);if(_0x257a33){_0x257a33[_0x13b400(0x1c7)]({'left':_0xd34090['x']+_0x283fcd-_0x2bc8ec[_0x13b400(0x86)],'top':_0xd34090['y']+_0x19f9ac-_0x2bc8ec[_0x13b400(0x86)]});return;}let _0x2cf20a=new wn(_0x188549,{'left':_0xd34090['x']+_0x283fcd-_0x2bc8ec['adjHandleSize'],'top':_0xd34090['y']+_0x19f9ac-_0x2bc8ec[_0x13b400(0x86)],'adjName':_0x3fdd98,'shapeId':this[_0x13b400(0x169)],'unitId':_0x146883,'subUnitId':_0xdb8dab,'width':_0x2bc8ec[_0x13b400(0x86)]+0x8,'height':_0x2bc8ec[_0x13b400(0x86)]+0x8,'zIndex':_0x11332b+0x1,'evented':!0x0});this['_shapes'][_0x13b400(0x241)](_0x2cf20a),this[_0x13b400(0x2e0)](_0x2cf20a,_0x3df7af,_0x3fdd98),_0x3df7af[_0x13b400(0xe9)](_0x2cf20a,_0x11332b+0x1);}[_0x43dbb9(0x186)](){const _0x1301b5=_0x43dbb9;this[_0x1301b5(0x176)]['length']!==0x0&&(this['_shapes'][_0x1301b5(0x200)](_0x52e184=>_0x52e184[_0x1301b5(0x2dd)]()),this[_0x1301b5(0x176)]=[]);}['_getScrollInfo'](_0x1ad32b,_0x104b0c){const _0x53f7e8=_0x43dbb9;var _0x2032b6;let _0x5ad3e9={'x':0x0,'y':0x0},_0x39bb25=this[_0x53f7e8(0x87)][_0x53f7e8(0x19c)](_0x1ad32b);if(!_0x39bb25||!_0x39bb25['with'](_0x392ff0)[_0x53f7e8(0x188)](_0x104b0c))return _0x5ad3e9;let _0x1a8320=_0x39bb25[_0x53f7e8(0x2ea)](_0xdbee74),_0x14643b=_0x1a8320==null?void 0x0:_0x1a8320['getCurrentScrollState']();if(!_0x14643b)return _0x5ad3e9;let _0x5f5ac4=(_0x2032b6=this[_0x53f7e8(0xcd)]['getUnit'](_0x1ad32b))==null?void 0x0:_0x2032b6[_0x53f7e8(0x148)](_0x104b0c);if(!_0x5f5ac4)return _0x5ad3e9;let _0x30d711=_0x1b930d(_0x14643b[_0x53f7e8(0x296)],_0x14643b[_0x53f7e8(0x286)],_0x39bb25[_0x53f7e8(0x128)],_0x5f5ac4);return _0x30d711?{'x':_0x30d711[_0x53f7e8(0x121)],'y':_0x30d711[_0x53f7e8(0x23f)]}:_0x5ad3e9;}[_0x43dbb9(0x155)](_0x5e10ae,_0x4d8847){const _0xec6b09=_0x43dbb9;var _0x397227,_0x2ef821;let _0x3bcb75=(_0x397227=this[_0xec6b09(0xcd)][_0xec6b09(0x150)](_0x5e10ae))==null?void 0x0:_0x397227[_0xec6b09(0x148)](_0x4d8847);return(_0x2ef821=_0x3bcb75==null?void 0x0:_0x3bcb75['getZoomRatio']())==null?0x1:_0x2ef821;}[_0x43dbb9(0x2e0)](_0x5bd7fd,_0x32d0b0,_0x3273ec){const _0x4e2590=_0x43dbb9;this[_0x4e2590(0x11b)](_0x43b296(_0x5bd7fd[_0x4e2590(0x12f)][_0x4e2590(0x17c)]((_0x476c0f,_0x31c873)=>{const _0x2c0b8c=_0x4e2590;var _0x516b0f,_0xd41a7d,_0x2023d1;let {unitId:_0x48de44,subUnitId:_0x434606,drawingId:_0x4658c2}=_0x5bd7fd['getDrawingSearch'](),_0x431862=this[_0x2c0b8c(0x1a6)](_0x48de44,_0x434606,_0x4658c2);if(!(_0x431862!=null&&_0x431862['transform']))return;let {left:_0x270a62,top:_0x13f657,width:_0x3eaa27,height:_0x306409}=_0x431862[_0x2c0b8c(0x10c)];this[_0x2c0b8c(0x283)]=_0x270a62||0x0,this['_baseTop']=_0x13f657||0x0,this[_0x2c0b8c(0x127)]=_0x3eaa27||0x0,this[_0x2c0b8c(0x233)]=_0x306409||0x0;let _0x320b89=!!((_0x516b0f=_0x431862[_0x2c0b8c(0x10c)])!=null&&_0x516b0f[_0x2c0b8c(0x2d5)]),_0x263c29=!!((_0xd41a7d=_0x431862[_0x2c0b8c(0x10c)])!=null&&_0xd41a7d[_0x2c0b8c(0x219)]),_0x134e72=((_0x2023d1=_0x431862[_0x2c0b8c(0x10c)])==null?void 0x0:_0x2023d1[_0x2c0b8c(0x2e1)])||0x0,_0x1966c6=this[_0x2c0b8c(0x190)](_0x48de44,_0x434606,_0x4658c2);if(!_0x1966c6)return;let _0xfbbbef=this[_0x2c0b8c(0x15e)](_0x1966c6[_0x2c0b8c(0x132)],this[_0x2c0b8c(0x127)],this[_0x2c0b8c(0x233)],_0x1966c6[_0x2c0b8c(0xef)]);if(!_0xfbbbef||(this[_0x2c0b8c(0x22b)]=_0xfbbbef,this['_activeAdjustInfo']=_0xfbbbef[_0x2c0b8c(0x2ae)](_0x3273ec),!this['_activeAdjustInfo']))return;this[_0x2c0b8c(0x258)]=!0x0,_0x32d0b0[_0x2c0b8c(0x1b8)]();let _0x4f565b=_0x1966c6[_0x2c0b8c(0x132)];this[_0x2c0b8c(0x1fa)]=_0x32d0b0[_0x2c0b8c(0x24b)][_0x2c0b8c(0x17c)]((_0x38ecb7,_0x2def4b)=>{const _0x221de2=_0x2c0b8c;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2e98cb,offsetY:_0x65777c}=_0x38ecb7,_0x699e4a=this[_0x221de2(0x257)];if(!this[_0x221de2(0x22b)]||!_0x699e4a)return;_0x32d0b0[_0x221de2(0x1b8)](),_0x32d0b0[_0x221de2(0xa2)](_0x110f16['CROSSHAIR']);let _0x16f103={'left':0x0,'top':0x0,'width':this[_0x221de2(0x127)],'height':this[_0x221de2(0x233)]},_0x5e69bb=this['_getScrollInfo'](_0x48de44,_0x434606),_0x56d905=this[_0x221de2(0x155)](_0x48de44,_0x434606),_0x5e23cb=_0x2e98cb/_0x56d905+_0x5e69bb['x']-this['_baseLeft'],_0x422e49=_0x65777c/_0x56d905+_0x5e69bb['y']-this[_0x221de2(0x92)];if(_0x134e72!==0x0){let _0x2fbbc0=this[_0x221de2(0x127)]/0x2,_0x5d9f07=this[_0x221de2(0x233)]/0x2,_0x47baea=_0x134e72*Math['PI']/0xb4,_0x221ea3=Math[_0x221de2(0x109)](_0x47baea),_0x36035d=Math[_0x221de2(0x1e6)](_0x47baea),_0x2126f8=_0x5e23cb-_0x2fbbc0,_0x1bb8f1=_0x422e49-_0x5d9f07;_0x5e23cb=_0x2fbbc0+(_0x2126f8*_0x221ea3+_0x1bb8f1*_0x36035d),_0x422e49=_0x5d9f07+(-_0x2126f8*_0x36035d+_0x1bb8f1*_0x221ea3);}_0x320b89&&(_0x5e23cb=this[_0x221de2(0x127)]-_0x5e23cb),_0x263c29&&(_0x422e49=this[_0x221de2(0x233)]-_0x422e49);let _0x2da3ad=this[_0x221de2(0x22b)][_0x221de2(0x180)](_0x16f103,{'x':_0x5e23cb,'y':_0x422e49},_0x699e4a,_0x320b89,_0x263c29),_0x359261=_0x699e4a[_0x221de2(0xc3)]||_0x699e4a[_0x221de2(0x247)]||_0x699e4a[_0x221de2(0x2de)]||_0x699e4a[_0x221de2(0x2e5)];_0x359261!==void 0x0&&(this[_0x221de2(0x22b)][_0x221de2(0x12b)](_0x359261,_0x2da3ad),this[_0x221de2(0x22b)][_0x221de2(0x104)]({'width':this[_0x221de2(0x127)],'height':this[_0x221de2(0x233)]}),this[_0x221de2(0x15b)](_0x48de44,_0x434606,_0x4658c2,_0x359261,_0x2da3ad),this[_0x221de2(0x2cd)]=this[_0x221de2(0x22b)]['getDrawingPoints'](),this['_activeAdjustInfo']=this[_0x221de2(0x22b)]['getAdjustInfoByName'](_0x3273ec),this[_0x221de2(0x1c8)](),_0x2def4b[_0x221de2(0x26a)]());}),this[_0x2c0b8c(0x276)]=_0x32d0b0['onPointerUp$'][_0x2c0b8c(0x17c)]((_0x56f091,_0x551942)=>{const _0x11fafa=_0x2c0b8c;if(this[_0x11fafa(0x1fa)][_0x11fafa(0x1dd)](),this['_adjHandlerPointerUp'][_0x11fafa(0x1dd)](),_0x32d0b0[_0x11fafa(0x15a)](),this[_0x11fafa(0x22b)]){let _0x1a929c=this[_0x11fafa(0x22b)]['getAdjustNames'](),_0x4026ed={};for(let _0x2c4c66 of _0x1a929c){let _0x2e7487=this[_0x11fafa(0x22b)][_0x11fafa(0x29f)](_0x2c4c66);_0x2e7487!==void 0x0&&(_0x4026ed[_0x2c4c66]=_0x2e7487);}this[_0x11fafa(0xf9)]['clipByShape'](_0x48de44,_0x434606,_0x4658c2,_0x4f565b,_0x4026ed);}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x11fafa(0x258)]=!0x1,_0x551942[_0x11fafa(0x26a)](),_0x32d0b0['enableObjectsEvent']();}),_0x31c873[_0x2c0b8c(0x26a)]();})));}[_0x43dbb9(0x15b)](_0x19a038,_0x408ed9,_0x3b74bb,_0x41473e,_0x1f23ee){const _0x161c3c=_0x43dbb9;let _0x2f37a4=this[_0x161c3c(0x87)][_0x161c3c(0x19c)](_0x19a038);if(!_0x2f37a4)return;let {scene:_0x3d98e3}=_0x2f37a4,_0x43214e=_0x7f2912({'unitId':_0x19a038,'subUnitId':_0x408ed9,'drawingId':_0x3b74bb}),_0x39dddb=_0x3d98e3[_0x161c3c(0xad)](_0x43214e);if(_0x39dddb instanceof _0x3100f0){var _0x5ed587;let _0x1dadd6=(_0x5ed587=_0x39dddb['prstGeomAdjValues'])==null?{}:_0x5ed587;_0x39dddb['setPrstGeomAdjValues']({..._0x1dadd6,[_0x41473e]:_0x1f23ee}),_0x39dddb[_0x161c3c(0x15d)](!0x0);}}[_0x43dbb9(0x1ad)](){const _0x4865ae=_0x43dbb9;let _0xa9c7c3=this[_0x4865ae(0xcd)][_0x4865ae(0x240)](_0x2a1b28[_0x4865ae(0x1e0)]);this[_0x4865ae(0x11b)](_0xa9c7c3[_0x4865ae(0x24d)](_0x46afa7(_0x2b21a6=>_0x2b21a6?_0x2b21a6[_0x4865ae(0x117)][_0x4865ae(0x24d)](_0x46afa7(_0xf4c77e=>{const _0x20f6af=_0x4865ae;if(!_0xf4c77e)return _0x3149ab;let _0x53b246=_0x2b21a6['getUnitId'](),_0x4b126d=this[_0x20f6af(0x87)][_0x20f6af(0x19c)](_0x53b246),_0x59f98b=_0x4b126d==null?void 0x0:_0x4b126d['scene'];return _0x59f98b?_0x236700(_0x59f98b):_0x3149ab;})):_0x3149ab))[_0x4865ae(0x28f)](_0x197026=>{const _0x2c2bed=_0x4865ae;let _0x2b3eb4=_0x197026[_0x2c2bed(0x84)]();this[_0x2c2bed(0x11b)](_0x197026['onPointerMove$'][_0x2c2bed(0x17c)](()=>{const _0x188094=_0x2c2bed;this[_0x188094(0x292)]&&this[_0x188094(0x186)]();})),this['disposeWithMe'](_0x2b3eb4[_0x2c2bed(0x89)][_0x2c2bed(0x28f)](_0x24ae84=>{const _0x506320=_0x2c2bed;let {objects:_0x43a265}=_0x24ae84;if(this[_0x506320(0x1c8)](),_0x43a265!==null&&_0x43a265['size']===0x1){let _0x361a99=_0x43a265['values']()[_0x506320(0x166)]()[_0x506320(0x26b)];_0x361a99 instanceof _0x3100f0&&_0x361a99[_0x506320(0x132)]&&(this[_0x506320(0x292)]=!0x0);}})),this[_0x2c2bed(0x11b)](_0x2b3eb4[_0x2c2bed(0x18c)][_0x2c2bed(0x28f)](()=>{const _0x26289e=_0x2c2bed;this[_0x26289e(0x292)]&&this['_clearControls']();})),this[_0x2c2bed(0x11b)](_0x197026[_0x2c2bed(0x1bf)]['subscribeEvent'](()=>{const _0xbd47d4=_0x2c2bed;this[_0xbd47d4(0x292)]&&(this[_0xbd47d4(0x292)]=!0x1,this['_createControls']());})),this[_0x2c2bed(0x11b)](_0x2b3eb4['changeEnd$'][_0x2c2bed(0x28f)](()=>{const _0x3c57d4=_0x2c2bed;if(this['_unitId']&&this[_0x3c57d4(0x250)]&&this[_0x3c57d4(0x169)]){let _0x594c42=this[_0x3c57d4(0x190)](this[_0x3c57d4(0x238)],this['_subUnitId'],this['_activeImageId']);if(_0x594c42){var _0x5cfe43,_0x400363;let _0x5d1265=this[_0x3c57d4(0x1a6)](this[_0x3c57d4(0x238)],this['_subUnitId'],this[_0x3c57d4(0x169)]),_0x4292e8=(_0x5d1265==null||(_0x5cfe43=_0x5d1265[_0x3c57d4(0x10c)])==null?void 0x0:_0x5cfe43[_0x3c57d4(0xf7)])||0x0,_0x1c7a99=(_0x5d1265==null||(_0x400363=_0x5d1265[_0x3c57d4(0x10c)])==null?void 0x0:_0x400363[_0x3c57d4(0x1dc)])||0x0,_0x405239=this[_0x3c57d4(0x15e)](_0x594c42['prstGeom'],_0x4292e8,_0x1c7a99,_0x594c42['adjustValues']);_0x405239&&(this[_0x3c57d4(0x2cd)]=_0x405239[_0x3c57d4(0x275)](),this['_clearControls'](),this[_0x3c57d4(0x1c8)](!0x0));}}}));}));}[_0x43dbb9(0x2d8)](){const _0x30a934=_0x43dbb9;this['disposeWithMe'](this[_0x30a934(0xcc)]['focus$']['subscribe'](_0x462754=>{const _0x23aed7=_0x30a934;if(_0x462754[_0x23aed7(0x15f)]===0x1){let _0x435d09=_0x462754[0x0];if(_0x435d09[_0x23aed7(0x2cb)]===_0x5d03f6[_0x23aed7(0x20a)]){let {unitId:_0x13171f,subUnitId:_0x33cd56,drawingId:_0x4fa6ca}=_0x435d09,_0x376ff4=this['_getImagePrstGeom'](_0x13171f,_0x33cd56,_0x4fa6ca);if(_0x376ff4){var _0x1ed7ca,_0x145f9f;this[_0x23aed7(0x169)]=_0x4fa6ca,this[_0x23aed7(0x238)]=_0x13171f,this[_0x23aed7(0x250)]=_0x33cd56;let _0xfe433d=this[_0x23aed7(0x1a6)](_0x13171f,_0x33cd56,_0x4fa6ca),_0x391274=(_0xfe433d==null||(_0x1ed7ca=_0xfe433d[_0x23aed7(0x10c)])==null?void 0x0:_0x1ed7ca['width'])||0x0,_0x4d208f=(_0xfe433d==null||(_0x145f9f=_0xfe433d[_0x23aed7(0x10c)])==null?void 0x0:_0x145f9f[_0x23aed7(0x1dc)])||0x0,_0x5346d7=this[_0x23aed7(0x15e)](_0x376ff4[_0x23aed7(0x132)],_0x391274,_0x4d208f,_0x376ff4[_0x23aed7(0xef)]);_0x5346d7&&(this[_0x23aed7(0x2cd)]=_0x5346d7[_0x23aed7(0x275)]()),this[_0x23aed7(0x186)](),this[_0x23aed7(0x1c8)](!0x0);}else this[_0x23aed7(0x25b)]();}else this['_resetState']();}else this['_resetState']();})),this[_0x30a934(0x11b)](this[_0x30a934(0xcc)]['update$'][_0x30a934(0x28f)](_0x4735bf=>{const _0x2d15bd=_0x30a934;if(_0x4735bf['length']===0x1){let _0x1b9041=_0x4735bf[0x0],_0x58224c=this[_0x2d15bd(0xcc)][_0x2d15bd(0x171)](_0x1b9041);(_0x58224c==null?void 0x0:_0x58224c[_0x2d15bd(0x2cb)])===_0x5d03f6[_0x2d15bd(0x20a)]&&this[_0x2d15bd(0x169)]===_0x1b9041[_0x2d15bd(0x1a9)]&&(this[_0x2d15bd(0x186)](),this[_0x2d15bd(0x1c8)](!0x0));}})),this[_0x30a934(0x11b)](this[_0x30a934(0xcc)][_0x30a934(0xd6)]['subscribe'](_0x2d297e=>{const _0x396164=_0x30a934;for(let _0x4c519a of _0x2d297e)this[_0x396164(0x169)]===_0x4c519a[_0x396164(0x1a9)]&&this['_resetState']();}));}[_0x43dbb9(0x25b)](){const _0x2a79a9=_0x43dbb9;this[_0x2a79a9(0x169)]=null,this['_unitId']=null,this[_0x2a79a9(0x250)]=null,this[_0x2a79a9(0x2cd)]=void 0x0,this[_0x2a79a9(0x186)]();}};sr=Z([X(0x1,_0x324617),X(0x2,_0x450bf3(_0x263af6)),X(0x3,_0x7113c7),X(0x4,_0x450bf3(Pn))],sr);let cr=class extends _0x4760b3{constructor(_0x4d135b,_0x5af0a8,_0x101cfc,_0x5dc4a9){const _0x3a993e=_0x43dbb9;super(),this['_univerInstanceService']=_0x4d135b,this['_sheetInterceptorService']=_0x5af0a8,this[_0x3a993e(0x1e4)]=_0x101cfc,this['_sheetsShapeService']=_0x5dc4a9,this[_0x3a993e(0x29e)]();}[_0x43dbb9(0x29e)](){const _0x1d9a5c=_0x43dbb9;this[_0x1d9a5c(0x11b)](this['_sheetInterceptorService'][_0x1d9a5c(0xc8)]({'getMutations':_0x55cb7b=>{const _0x47c182=_0x1d9a5c;if(_0x55cb7b['id']===_0x299032['id']){let _0x41400d=_0x59589e(this[_0x47c182(0xcd)],_0x55cb7b[_0x47c182(0x118)]);if(!_0x41400d)return{'redos':[],'undos':[]};let {unitId:_0x42d43e,subUnitId:_0x5081d9}=_0x41400d,_0x1ed26e=this['_sheetDrawingService'][_0x47c182(0x295)](_0x42d43e,_0x5081d9),_0x477213=Object[_0x47c182(0x133)](_0x1ed26e)[_0x47c182(0xb6)](_0x32bdd2=>_0x32bdd2[_0x47c182(0x2cb)]===_0x5d03f6[_0x47c182(0x23a)]);if(_0x477213[_0x47c182(0x15f)]===0x0)return{'redos':[],'undos':[]};let _0x2dc126=[],_0x13ab7b=[];for(let _0x1289b5=0x0;_0x1289b5<_0x477213[_0x47c182(0x15f)];_0x1289b5++){let _0x585798=_0x477213[_0x1289b5],_0x58336a=this[_0x47c182(0x1ff)]['getShapeModel'](_0x585798[_0x47c182(0x25d)],_0x585798[_0x47c182(0x212)],_0x585798['drawingId']);if(!_0x58336a)continue;let {redo:_0x25b128,undo:_0x387542,objects:_0x2c8c80}=this[_0x47c182(0x1e4)]['getBatchRemoveOp']([_0x585798]);_0x2dc126['push']({'id':_0x35cadb['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'shapeId':_0x585798['drawingId']}}),_0x2dc126[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'type':_0x2640be['REMOVE'],'op':_0x25b128,'objects':_0x2c8c80}}),_0x13ab7b[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'type':_0x2640be[_0x47c182(0x27b)],'op':_0x387542,'objects':_0x2c8c80}}),_0x13ab7b['push']({'id':_0x5addb7['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'shapeId':_0x585798[_0x47c182(0x1a9)],'shapeType':_0x58336a[_0x47c182(0x2ad)](),'shapeData':JSON[_0x47c182(0x154)](JSON[_0x47c182(0x2d1)](_0x58336a['getShapeData']()))}});}return{'redos':_0x2dc126,'undos':_0x13ab7b};}else{if(_0x55cb7b['id']===_0x16ae42['id']){let {unitId:_0x39e449,subUnitId:_0x547fa6,targetSubUnitId:_0x1b28a4}=_0x55cb7b['params'];if(!_0x39e449||!_0x547fa6||!_0x1b28a4)return{'redos':[],'undos':[]};let _0x776654=this[_0x47c182(0x1e4)][_0x47c182(0x295)](_0x39e449,_0x547fa6),_0xea449d=Object[_0x47c182(0x133)](_0x776654)[_0x47c182(0xb6)](_0x29a545=>_0x29a545[_0x47c182(0x2cb)]===_0x5d03f6['DRAWING_SHAPE']);if(_0xea449d[_0x47c182(0x15f)]===0x0)return{'redos':[],'undos':[]};let _0xef1e5b=[],_0x37ef29=[];for(let _0x3cfc7e=0x0;_0x3cfc7e<_0xea449d[_0x47c182(0x15f)];_0x3cfc7e++){let _0x2b4d60=_0xea449d[_0x3cfc7e],_0x2c3064=this[_0x47c182(0x1ff)][_0x47c182(0x251)](_0x2b4d60[_0x47c182(0x25d)],_0x2b4d60[_0x47c182(0x212)],_0x2b4d60[_0x47c182(0x1a9)]);if(!_0x2c3064)continue;let _0x3cafb3=_0x2bfd17(),_0x1e8ce4={..._0x2b4d60,'unitId':_0x39e449,'subUnitId':_0x1b28a4,'drawingId':_0x3cafb3},{redo:_0x3cc142,undo:_0x183d08,objects:_0x2e62ed}=this[_0x47c182(0x1e4)][_0x47c182(0x2e4)]([_0x1e8ce4]);_0xef1e5b[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'type':_0x2640be[_0x47c182(0x27b)],'op':_0x3cc142,'objects':_0x2e62ed}}),_0xef1e5b['push']({'id':_0x5addb7['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'shapeId':_0x3cafb3,'shapeType':_0x2c3064[_0x47c182(0x2ad)](),'shapeData':JSON[_0x47c182(0x154)](JSON[_0x47c182(0x2d1)](_0x2c3064[_0x47c182(0x282)]()))}}),_0x37ef29[_0x47c182(0x241)]({'id':_0x35cadb['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'shapeId':_0x3cafb3}}),_0x37ef29['push']({'id':_0x6d6f97['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'type':_0x2640be[_0x47c182(0xa9)],'op':_0x183d08,'objects':_0x2e62ed}});}return{'redos':_0xef1e5b,'undos':_0x37ef29};}}return{'redos':[],'undos':[]};}}));}};cr=Z([X(0x0,_0x450bf3(_0x7113c7)),X(0x1,_0x450bf3(_0x9d40d)),X(0x2,_0x450bf3(_0x57e4c3)),X(0x3,_0x450bf3(_0x26a217))],cr);let lr=class extends _0x4760b3{constructor(_0x447758,_0x4b8422,_0x248797,_0x4c076d,_0x5defc4){const _0x1ddc34=_0x43dbb9;super(),this[_0x1ddc34(0xfb)]=_0x447758,this['_shapeTextEditingService']=_0x4b8422,this[_0x1ddc34(0xcc)]=_0x248797,this[_0x1ddc34(0x216)]=_0x4c076d,this[_0x1ddc34(0x1ff)]=_0x5defc4,Y(this,'_lastEditingShapeKey',null),this[_0x1ddc34(0x163)](),this[_0x1ddc34(0x1f0)](),this[_0x1ddc34(0x2c3)]();}[_0x43dbb9(0x163)](){const _0x8aa2da=_0x43dbb9;let {scene:_0x369e7c}=this[_0x8aa2da(0xfb)];this[_0x8aa2da(0x11b)](_0x369e7c[_0x8aa2da(0x20d)][_0x8aa2da(0x17c)](_0x36102d=>{const _0x33c4d6=_0x8aa2da;let {offsetX:_0x3e5b99,offsetY:_0x1fd83a}=_0x36102d,_0x27831e=_0x369e7c[_0x33c4d6(0x214)](_0xf6e38e[_0x33c4d6(0x101)]([_0x3e5b99,_0x1fd83a]));if(_0x27831e instanceof Cn){let _0x545b1b=this[_0x33c4d6(0x1ff)]['getShapeModel'](_0x27831e[_0x33c4d6(0x25d)],_0x27831e[_0x33c4d6(0x212)],_0x27831e['shapeId']);if(_0x545b1b!=null&&_0x545b1b[_0x33c4d6(0x282)]()[_0x33c4d6(0x17a)]||_0x1f7f23(this[_0x33c4d6(0x1ff)][_0x33c4d6(0x2ad)](_0x27831e['unitId'],_0x27831e[_0x33c4d6(0x212)],_0x27831e[_0x33c4d6(0xfc)])))return;this['_shapeTextEditingService'][_0x33c4d6(0xc7)]({'visible':!0x0,'unitId':_0x27831e[_0x33c4d6(0x25d)],'subUnitId':_0x27831e[_0x33c4d6(0x212)],'shapeId':_0x27831e[_0x33c4d6(0xfc)],'shapeKey':_0x27831e[_0x33c4d6(0xe8)]});}}));}['_initSelection'](){const _0x2bfde6=_0x43dbb9;this[_0x2bfde6(0x11b)](this['_drawingManagerService'][_0x2bfde6(0x231)]['subscribe'](_0x4fb40e=>{const _0x490d6a=_0x2bfde6;if(_0x4fb40e[_0x490d6a(0x15f)]===0x1){let _0x4f99d7=_0x4fb40e[0x0],_0x307003=this[_0x490d6a(0xcc)][_0x490d6a(0x171)](_0x4f99d7);if((_0x307003==null?void 0x0:_0x307003[_0x490d6a(0x2cb)])===_0x5d03f6[_0x490d6a(0x23a)]){var _0x38cb74;let _0x5d3d17=this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]();if((_0x5d3d17==null?void 0x0:_0x5d3d17[_0x490d6a(0xfc)])===_0x4f99d7['drawingId']&&_0x5d3d17[_0x490d6a(0x2cc)])return;let _0x4ac6cf=_0x1f7f23(this[_0x490d6a(0x1ff)][_0x490d6a(0x2ad)](_0x4f99d7[_0x490d6a(0x25d)],_0x4f99d7[_0x490d6a(0x212)],_0x4f99d7[_0x490d6a(0x1a9)])),_0xf6824a=!!((_0x38cb74=this[_0x490d6a(0x1ff)]['getShapeModel'](_0x4f99d7[_0x490d6a(0x25d)],_0x4f99d7[_0x490d6a(0x212)],_0x4f99d7[_0x490d6a(0x1a9)]))!=null&&_0x38cb74[_0x490d6a(0x282)]()[_0x490d6a(0x17a)]);(_0x4ac6cf||_0xf6824a)&&this[_0x490d6a(0x1a8)][_0x490d6a(0xc7)](null);}else this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));}else this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]()&&(this[_0x490d6a(0x1a8)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0xf1a67=_0x490d6a;this['_shapeTextEditingService'][_0xf1a67(0xc7)](null);}));})),this[_0x2bfde6(0x11b)](this[_0x2bfde6(0xcc)][_0x2bfde6(0xd6)][_0x2bfde6(0x28f)](_0x74f032=>{const _0x3927e5=_0x2bfde6;let _0x265c8b=this[_0x3927e5(0x1a8)]['getEditing']();_0x265c8b&&_0x74f032['some'](_0x2292ba=>_0x2292ba[_0x3927e5(0x1a9)]===_0x265c8b[_0x3927e5(0xfc)])&&this[_0x3927e5(0x1a8)][_0x3927e5(0xc7)](null);}));}[_0x43dbb9(0x2c3)](){const _0x534fc6=_0x43dbb9;this['disposeWithMe'](this[_0x534fc6(0x1a8)][_0x534fc6(0x17b)][_0x534fc6(0x28f)](_0x46fd54=>{const _0x170417=_0x534fc6;let {scene:_0x3c4455}=this[_0x170417(0xfb)];if(this[_0x170417(0x263)]){let _0x5dec60=_0x3c4455[_0x170417(0x1de)](this['_lastEditingShapeKey']);_0x5dec60&&_0x5dec60[_0x170417(0xc7)](!0x1);}if(_0x46fd54){let _0x55828a=!!_0x46fd54['visible'],_0x1e7ced=_0x3c4455[_0x170417(0x1de)](_0x46fd54[_0x170417(0x16b)]);_0x1e7ced&&(_0x1e7ced[_0x170417(0xc7)](_0x55828a),this['_lastEditingShapeKey']=_0x46fd54[_0x170417(0x16b)]),this[_0x170417(0x216)]['setContextValue'](_0x4d1a78,_0x55828a);}else this[_0x170417(0x263)]=null,this[_0x170417(0x216)][_0x170417(0x1c9)](_0x4d1a78,!0x1);}));}};lr=Z([X(0x1,_0x450bf3(ir)),X(0x2,_0x324617),X(0x3,_0x21d773),X(0x4,_0x450bf3(_0x26a217))],lr);let ur=class extends _0xd3a510{constructor(_0x1fff68,_0x1d84f6,_0x4c6e85,_0x21bb3e){super(_0x1fff68,_0x1d84f6,_0x4c6e85,_0x21bb3e,{'componentKey':Mn,'editorUnitId':jn});}};ur=Z([X(0x1,_0x450bf3(_0x1263d4)),X(0x2,_0x450bf3(_0x86b0a2)),X(0x3,_0x450bf3(_0x7b1fa8))],ur);let dr=class extends _0x4760b3{constructor(_0x4e6e39,_0xf7cd6b,_0x9de519,_0x1b7ab4,_0x4bbaa2,_0x426fcb){const _0xd77912=_0x43dbb9;super(),this[_0xd77912(0x285)]=_0x4e6e39,this[_0xd77912(0x87)]=_0xf7cd6b,this['_drawingManagerService']=_0x9de519,this['_currentUniverService']=_0x1b7ab4,this['_drawingRenderService']=_0x4bbaa2,this[_0xd77912(0x2d9)]=_0x426fcb,Y(this,_0xd77912(0x107),new Set()),this[_0xd77912(0xc2)]();}['_initialize'](){const _0x422ce0=_0x43dbb9;this[_0x422ce0(0x114)](),this[_0x422ce0(0x11d)](),this[_0x422ce0(0xbe)]();}[_0x43dbb9(0x114)](){const _0x42ed87=_0x43dbb9;this['disposeWithMe'](this[_0x42ed87(0xcc)][_0x42ed87(0x17e)][_0x42ed87(0x28f)](_0x1f2977=>{const _0x16af51=_0x42ed87;this[_0x16af51(0x2af)](_0x1f2977);}));}[_0x43dbb9(0x11d)](){const _0x43aa82=_0x43dbb9;this['disposeWithMe'](this[_0x43aa82(0x285)][_0x43aa82(0x1f7)](_0x1319f9=>{const _0x115f82=_0x43aa82;if(_0x1319f9['id']===_0x19b81c['id']){let {unitId:_0x18d03a,subUnitId:_0x2d2e92,shapeId:_0x23920b}=_0x1319f9[_0x115f82(0x118)],_0xefc99a=this[_0x115f82(0x122)](_0x18d03a),_0x16b572=_0x7f2912({'unitId':_0x18d03a,'subUnitId':_0x2d2e92,'drawingId':_0x23920b}),_0x5c9369=_0xefc99a==null?void 0x0:_0xefc99a['scene'][_0x115f82(0x1de)](_0x16b572);_0x5c9369&&(this[_0x115f82(0x2d9)]['refreshShapeFillImage'](_0x5c9369),this[_0x115f82(0x2d9)][_0x115f82(0xac)](_0x5c9369,{'unitId':_0x18d03a,'subUnitId':_0x2d2e92,'shapeId':_0x23920b}),_0x5c9369[_0x115f82(0x15d)](!0x0));return;}if(_0x1319f9['id']===_0x5addb7['id']){var _0x5cc455;let {unitId:_0x131187,subUnitId:_0x13fd38,shapeId:_0xbf195e}=_0x1319f9[_0x115f82(0x118)],_0xdd4784=this[_0x115f82(0x122)](_0x131187);if(_0xdd4784==null)return;let {scene:_0x11eebd}=_0xdd4784,_0x582c10=_0x7f2912({'unitId':_0x131187,'subUnitId':_0x13fd38,'drawingId':_0xbf195e}),_0x52eda1=_0x11eebd[_0x115f82(0x1de)](_0x582c10);if(!((_0x5cc455=this[_0x115f82(0x87)][_0x115f82(0x19c)](_0x131187))!=null&&_0x5cc455[_0x115f82(0x2ea)](_0x392ff0)[_0x115f82(0x188)](_0x13fd38)))return!0x1;if(_0x52eda1)return;this[_0x115f82(0x2af)]([{'unitId':_0x131187,'subUnitId':_0x13fd38,'drawingId':_0xbf195e}]);}}));}['_shapeUpdateListener'](){const _0x219ebd=_0x43dbb9;this[_0x219ebd(0x11b)](this[_0x219ebd(0xcc)][_0x219ebd(0x105)]['subscribe'](_0x4518c9=>{const _0x2883f0=_0x219ebd;_0x4518c9[_0x2883f0(0x200)](_0x16d760=>{const _0x332fea=_0x2883f0;let {unitId:_0x5686fa,subUnitId:_0x10a6fc,drawingId:_0x3b3c2c}=_0x16d760,_0xea9eff=this[_0x332fea(0xcc)][_0x332fea(0x171)](_0x16d760);if(_0xea9eff==null)return;let {transform:_0x14e06c,drawingType:_0x19b546,srcRect:_0x1ade6a,prstGeom:_0x2e5400}=_0xea9eff;if(_0x19b546!==_0x5d03f6[_0x332fea(0x23a)])return;let _0x3afcb6=this[_0x332fea(0x122)](_0x5686fa);if(_0x3afcb6==null)return;let {scene:_0x2412e8,transformer:_0x3909dd}=_0x3afcb6;if(_0x14e06c==null)return!0x0;let _0x50cd98=_0x7f2912({'unitId':_0x5686fa,'subUnitId':_0x10a6fc,'drawingId':_0x3b3c2c}),_0x25d604=_0x2412e8[_0x332fea(0x1de)](_0x50cd98);if(_0x25d604==null)return!0x0;_0x25d604[_0x332fea(0x20f)](_0x1ade6a),_0x25d604[_0x332fea(0x234)](_0x2e5400);});}));}[_0x43dbb9(0x2af)](_0x57ffc3){const _0x30f431=_0x43dbb9;for(let _0x3f2109 of _0x57ffc3){var _0x2390d3;let {unitId:_0x2cd993,subUnitId:_0x125d00,drawingId:_0x4391f4}=_0x3f2109,_0x163a93=this['_getSceneAndTransformerByDrawingSearch'](_0x2cd993),_0x4fed68=(_0x2390d3=_0x4a469b(this[_0x30f431(0x112)],_0x2cd993))==null?void 0x0:_0x2390d3[_0x30f431(0x212)];if(_0x163a93==null||_0x4fed68!==_0x125d00)return;let _0x547f79=_0x7f2912({'unitId':_0x2cd993,'subUnitId':_0x125d00,'drawingId':_0x4391f4});if(this[_0x30f431(0x107)]['has'](_0x547f79)||_0x163a93[_0x30f431(0x128)][_0x30f431(0x1de)](_0x547f79)!=null)return;let _0x2abd0c=this[_0x30f431(0xcc)]['getDrawingByParam'](_0x3f2109);if(_0x2abd0c==null||_0x2abd0c[_0x30f431(0x2cb)]!==_0x5d03f6[_0x30f431(0x23a)])return;if(_0x1f7f23((_0x2abd0c[_0x30f431(0x1f8)]||{})['shapeType'])){let _0x6c97cb=_0x2abd0c['transform'];_0x6c97cb&&(_0x2abd0c[_0x30f431(0x10c)]={..._0x6c97cb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x30f431(0x10b)](_0x547f79);try{this[_0x30f431(0x2d9)][_0x30f431(0x1e7)](_0x2abd0c,_0x163a93['scene']);}finally{this[_0x30f431(0x107)]['delete'](_0x547f79);}queueMicrotask(()=>{const _0x3c0c93=_0x30f431;if(this['_disposed'])return;let _0x229d2e=_0x7f2912(_0x3f2109);if(!_0x163a93[_0x3c0c93(0x128)]['getObjectIncludeInGroup'](_0x229d2e))return;let _0x72fd8b=this[_0x3c0c93(0xcc)][_0x3c0c93(0x171)](_0x3f2109);_0x72fd8b&&this[_0x3c0c93(0xcc)]['refreshTransform']([_0x72fd8b]);});}}[_0x43dbb9(0x122)](_0x2a462c){const _0x13f766=_0x43dbb9;if(_0x2a462c==null)return;let _0x48d00d=this[_0x13f766(0x87)][_0x13f766(0x19c)](_0x2a462c),_0x3ed34c=_0x48d00d==null?void 0x0:_0x48d00d[_0x13f766(0x128)];return _0x3ed34c==null?null:{'scene':_0x3ed34c,'transformer':_0x3ed34c[_0x13f766(0x84)]()};}};dr=Z([X(0x0,_0x4d9cac),X(0x1,_0x263af6),X(0x2,_0x324617),X(0x3,_0x7113c7),X(0x4,_0x450bf3(_0x4d43e7)),X(0x5,_0x450bf3(Q))],dr);const fr={'normal':{'fill':_0x2bc8ec[_0x43dbb9(0x2ac)],'stroke':_0x2bc8ec['cxnPointStroke'],'strokeWidth':_0x2bc8ec[_0x43dbb9(0x19b)]},'highlighted':{'fill':'#4285f4','stroke':_0x43dbb9(0x126),'strokeWidth':0x2}};var pr=class extends _0x300c3f{constructor(_0x44422d,_0x201cfc){const _0x494407=_0x43dbb9;super(_0x44422d,_0x201cfc),Y(this,_0x494407(0x22e),''),Y(this,'_cxnIndex',-0x1),Y(this,_0x494407(0x238),''),Y(this,_0x494407(0x250),''),Y(this,_0x494407(0x2b3),!0x1),_0x201cfc&&this[_0x494407(0x152)](_0x201cfc);}[_0x43dbb9(0x18f)](){const _0x5a1892=_0x43dbb9;return{'unitId':this[_0x5a1892(0x238)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x5a1892(0x22e)],'cxnIndex':this[_0x5a1892(0x1d7)]};}[_0x43dbb9(0x14b)](_0x1edf57){const _0x20b792=_0x43dbb9;this[_0x20b792(0x2b3)]!==_0x1edf57&&(this[_0x20b792(0x2b3)]=_0x1edf57,this[_0x20b792(0x15d)](!0x0));}[_0x43dbb9(0x9d)](){const _0x123f13=_0x43dbb9;return this[_0x123f13(0x2b3)];}[_0x43dbb9(0x152)](_0x5abfe4){const _0x2e2ff9=_0x43dbb9;var _0x3b5383,_0x51b7e6;_0x5abfe4[_0x2e2ff9(0x215)]!==void 0x0&&(this['_targetShapeId']=_0x5abfe4[_0x2e2ff9(0x215)]),_0x5abfe4[_0x2e2ff9(0x162)]!==void 0x0&&(this[_0x2e2ff9(0x1d7)]=_0x5abfe4[_0x2e2ff9(0x162)]),_0x5abfe4['unitId']!==void 0x0&&(this[_0x2e2ff9(0x238)]=_0x5abfe4['unitId']),_0x5abfe4[_0x2e2ff9(0x212)]!==void 0x0&&(this['_subUnitId']=_0x5abfe4[_0x2e2ff9(0x212)]),_0x5abfe4[_0x2e2ff9(0x9d)]!==void 0x0&&(this['_isHighlighted']=_0x5abfe4[_0x2e2ff9(0x9d)]),this[_0x2e2ff9(0x1c7)]({'width':(_0x3b5383=_0x5abfe4[_0x2e2ff9(0xf7)])==null?_0x2bc8ec['cxnPointRadius']*0x2:_0x3b5383,'height':(_0x51b7e6=_0x5abfe4[_0x2e2ff9(0x1dc)])==null?_0x2bc8ec[_0x2e2ff9(0xa5)]*0x2:_0x51b7e6});}[_0x43dbb9(0xd0)](_0x1a29d5){const _0x85164e=_0x43dbb9;let _0x566bd2=this[_0x85164e(0x2b3)]?fr[_0x85164e(0x139)]:fr[_0x85164e(0x28a)];_0x536c54['drawWith'](_0x1a29d5,{'radius':_0x2bc8ec[_0x85164e(0xa5)],'fill':_0x566bd2['fill'],'stroke':_0x566bd2['stroke'],'strokeWidth':_0x566bd2['strokeWidth'],'evented':!0x0});}};let mr=class extends _0x4760b3{constructor(_0x2799db,_0x236471,_0x22648d,_0x5c36fd){const _0x100416=_0x43dbb9;super(),this[_0x100416(0xfb)]=_0x2799db,this[_0x100416(0x87)]=_0x236471,this[_0x100416(0xcc)]=_0x22648d,this[_0x100416(0x1ff)]=_0x5c36fd,Y(this,_0x100416(0x19a),[]),Y(this,_0x100416(0x16f),null),Y(this,_0x100416(0xf8),-0x1),Y(this,_0x100416(0x113),null),Y(this,_0x100416(0x238),''),Y(this,_0x100416(0x250),''),Y(this,_0x100416(0x24f),null);}['startConnectionDetection'](_0x46b321,_0x44f986,_0x399bc4,_0x1caa7e){const _0x50083d=_0x43dbb9;this[_0x50083d(0x113)]=_0x46b321,this[_0x50083d(0x238)]=_0x44f986,this[_0x50083d(0x250)]=_0x399bc4,this['_draggingConnectorId']=_0x1caa7e;}['updateConnectionDetection'](_0x5c5346){const _0x1e7c0a=_0x43dbb9;if(!this['_currentScene'])return null;let _0x5e130b=this[_0x1e7c0a(0xbb)](_0x5c5346);return _0x5e130b?(this[_0x1e7c0a(0x16f)]!==_0x5e130b[_0x1e7c0a(0xfc)]&&(this[_0x1e7c0a(0x14a)](),this['_showConnectionSites'](_0x5e130b[_0x1e7c0a(0xfc)],_0x5e130b[_0x1e7c0a(0xc0)]),this[_0x1e7c0a(0x16f)]=_0x5e130b[_0x1e7c0a(0xfc)]),this[_0x1e7c0a(0xa1)](_0x5c5346)):(this[_0x1e7c0a(0x16f)]!==null&&(this[_0x1e7c0a(0x14a)](),this[_0x1e7c0a(0x16f)]=null),null);}['endConnectionDetection'](){const _0x1354df=_0x43dbb9;this[_0x1354df(0x14a)](),this[_0x1354df(0x113)]=null,this[_0x1354df(0x16f)]=null,this[_0x1354df(0xf8)]=-0x1,this['_draggingConnectorId']=null;}['getConnectionRelation'](){const _0x3c79db=_0x43dbb9;return this[_0x3c79db(0x16f)]===null||this[_0x3c79db(0xf8)]<0x0?null:{'shapeId':this[_0x3c79db(0x16f)],'cxnIndex':this[_0x3c79db(0xf8)]};}[_0x43dbb9(0xbb)](_0x1c2e53){const _0x2af299=_0x43dbb9;let _0x4fe051=this[_0x2af299(0xcc)]['getDrawingData'](this[_0x2af299(0x238)],this['_subUnitId']);for(let _0x19158c of Object[_0x2af299(0x293)](_0x4fe051)){if(_0x19158c===this[_0x2af299(0x24f)]||_0x4fe051[_0x19158c][_0x2af299(0x2cb)]!==_0x5d03f6[_0x2af299(0x23a)])continue;let _0x52d226=this[_0x2af299(0x1ff)][_0x2af299(0x251)](this['_unitId'],this[_0x2af299(0x250)],_0x19158c);if(!_0x52d226||_0x1f7f23(_0x52d226[_0x2af299(0x2ad)]())||_0x52d226[_0x2af299(0x201)]()[_0x2af299(0x15f)]===0x0||!this[_0x2af299(0x113)])continue;let _0xafb65d=_0x7f2912({'unitId':this[_0x2af299(0x238)],'subUnitId':this[_0x2af299(0x250)],'drawingId':_0x19158c}),_0x3f13c7=this[_0x2af299(0x113)][_0x2af299(0x1de)](_0xafb65d);if(!_0x3f13c7)continue;let {left:_0x45cc75,top:_0x31cdec,width:_0x4b24da,height:_0x24ebf5}=_0x3f13c7[_0x2af299(0x272)](),_0x2a7fe0=_0x45cc75+_0x4b24da/0x2,_0x5b0797=_0x31cdec+_0x24ebf5/0x2,_0x7788b4=_0x3f13c7[_0x2af299(0x10c)][_0x2af299(0x1b9)](),_0x51e80c=new _0x112a4b([_0x7788b4[0x0],_0x7788b4[0x1],_0x7788b4[0x2],_0x7788b4[0x3],_0x2a7fe0,_0x5b0797]),_0x5d8d5a=_0x3f13c7[_0x2af299(0x1d9)](),_0x251a80=(_0x3f13c7[_0x2af299(0xa8)]&&(_0x5d8d5a==null?void 0x0:_0x5d8d5a[_0x2af299(0x19d)])===_0x842655[_0x2af299(0xf6)]?_0x5d8d5a['ancestorTransform'][_0x2af299(0xcf)](_0x51e80c):_0x51e80c)[_0x2af299(0x23b)]()[_0x2af299(0x22c)](_0x1c2e53),_0x4b1526=_0x4b24da/0x2,_0x4dea20=_0x24ebf5/0x2;if(_0x251a80['x']>=-_0x4b1526-0x5&&_0x251a80['x']<=_0x4b1526+0x5&&_0x251a80['y']>=-_0x4dea20-0x5&&_0x251a80['y']<=_0x4dea20+0x5)return{'shapeId':_0x19158c,'shapeModel':_0x52d226};}return null;}[_0x43dbb9(0x158)](_0x524814,_0x436922){const _0x12115c=_0x43dbb9;if(!this[_0x12115c(0x113)])return;let _0x73096b=_0x7f2912({'unitId':this[_0x12115c(0x238)],'subUnitId':this['_subUnitId'],'drawingId':_0x524814}),_0x53afdd=this[_0x12115c(0x113)][_0x12115c(0x1de)](_0x73096b);if(!_0x53afdd)return;let {left:_0x3c8c9e,top:_0x4f51a0,width:_0x13aa22,height:_0x4dcb40}=_0x53afdd['getRealBound'](),_0x624c3d=_0x3c8c9e+_0x13aa22/0x2,_0x31480c=_0x4f51a0+_0x4dcb40/0x2,_0x492a61=_0x53afdd[_0x12115c(0x10c)][_0x12115c(0x1b9)](),_0x47bafa=new _0x112a4b([_0x492a61[0x0],_0x492a61[0x1],_0x492a61[0x2],_0x492a61[0x3],_0x624c3d,_0x31480c]),_0x2eeabe=_0x53afdd[_0x12115c(0x1d9)](),_0x59dd43=_0x53afdd[_0x12115c(0xa8)]&&(_0x2eeabe==null?void 0x0:_0x2eeabe[_0x12115c(0x19d)])===_0x842655[_0x12115c(0xf6)]?_0x2eeabe[_0x12115c(0x8b)][_0x12115c(0xcf)](_0x47bafa):_0x47bafa;_0x436922[_0x12115c(0x104)]({'width':_0x13aa22,'height':_0x4dcb40});let _0x29ff66=_0x436922[_0x12115c(0x201)]();for(let _0x3be0ca of _0x29ff66){let _0x81174a=_0x3be0ca['x']-_0x13aa22/0x2,_0x3f2367=_0x3be0ca['y']-_0x4dcb40/0x2,_0x54e7a5=_0x59dd43[_0x12115c(0x22c)]({'x':_0x81174a,'y':_0x3f2367}),_0xf3020d=_0x54e7a5['x'],_0x33f3da=_0x54e7a5['y'],_0x7abb02=new pr(_0x12115c(0x243)+_0x524814+'-'+_0x3be0ca[_0x12115c(0x2b9)],{'left':_0xf3020d-_0x2bc8ec[_0x12115c(0xa5)],'top':_0x33f3da-_0x2bc8ec[_0x12115c(0xa5)],'targetShapeId':_0x524814,'cxnIndex':_0x3be0ca['index'],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':_0x2bc8ec[_0x12115c(0xa5)]*0x2,'height':_0x2bc8ec[_0x12115c(0xa5)]*0x2,'zIndex':_0x11332b+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x12115c(0x241)](_0x7abb02),this['_currentScene'][_0x12115c(0xe9)](_0x7abb02,_0x11332b+0x2);}}[_0x43dbb9(0xa1)](_0x8987eb){const _0x32d4be=_0x43dbb9;let _0x3fccce=null,_0x250448=0x1/0x0,_0x1130b8=null;for(let _0x45db1b of this[_0x32d4be(0x19a)]){let _0x118da8=_0x45db1b[_0x32d4be(0x11f)]+_0x2bc8ec['cxnPointRadius'],_0x442b66=_0x45db1b['top']+_0x2bc8ec['cxnPointRadius'],_0x22a14e=_0x8987eb['x']-_0x118da8,_0x1fab3f=_0x8987eb['y']-_0x442b66,_0x5b65f5=Math['sqrt'](_0x22a14e*_0x22a14e+_0x1fab3f*_0x1fab3f);_0x5b65f5<_0x250448&&(_0x250448=_0x5b65f5,_0x3fccce=_0x45db1b,_0x1130b8={'x':_0x118da8,'y':_0x442b66});}let _0x2bd6ed=_0x250448<=0xa&&_0x3fccce?_0x3fccce[_0x32d4be(0x18f)]()[_0x32d4be(0x162)]:-0x1;if(_0x2bd6ed!==this[_0x32d4be(0xf8)]){for(let _0x2b104e of this[_0x32d4be(0x19a)]){let _0x49c445=_0x2b104e['getConnectionInfo']();_0x2b104e[_0x32d4be(0x14b)](_0x49c445[_0x32d4be(0x162)]===_0x2bd6ed);}this[_0x32d4be(0xf8)]=_0x2bd6ed;}if(_0x250448<=0xa&&_0x3fccce&&_0x1130b8){let _0x583290=_0x3fccce['getConnectionInfo'](),_0x413cb9=this[_0x32d4be(0x29b)](_0x583290[_0x32d4be(0xfc)],_0x583290[_0x32d4be(0x162)]);return{'shapeId':_0x583290[_0x32d4be(0xfc)],'cxnIndex':_0x583290[_0x32d4be(0x162)],'unitId':_0x583290[_0x32d4be(0x25d)],'subUnitId':_0x583290[_0x32d4be(0x212)],'worldPoint':_0x1130b8,'angle':_0x413cb9};}return null;}['_getConnectionSiteAngle'](_0x77d2aa,_0x4b6a70){const _0x1b772c=_0x43dbb9;let _0x50393c=this[_0x1b772c(0x1ff)][_0x1b772c(0x251)](this['_unitId'],this[_0x1b772c(0x250)],_0x77d2aa);if(!_0x50393c)return 0x0;let _0x294f3e=this[_0x1b772c(0xcc)][_0x1b772c(0x171)]({'unitId':this[_0x1b772c(0x238)],'subUnitId':this[_0x1b772c(0x250)],'drawingId':_0x77d2aa});if(!(_0x294f3e!=null&&_0x294f3e[_0x1b772c(0x10c)]))return 0x0;let {width:_0x12ce91=0x0,height:_0x325196=0x0,flipX:_0x4ed780=!0x1,flipY:_0x55324f=!0x1}=_0x294f3e['transform'];_0x50393c['updateContext']({'width':_0x12ce91,'height':_0x325196});let _0x3f94c4=_0x50393c[_0x1b772c(0x201)]()[_0x1b772c(0x218)](_0x28be57=>_0x28be57[_0x1b772c(0x2b9)]===_0x4b6a70);if(!_0x3f94c4)return 0x0;let _0x5efa5b=_0x3f94c4[_0x1b772c(0x26c)]/0xea60;return _0x4ed780&&(_0x5efa5b=0xb4-_0x5efa5b),_0x55324f&&(_0x5efa5b=-_0x5efa5b),_0x5efa5b=(_0x5efa5b%0x168+0x168)%0x168,_0x5efa5b;}[_0x43dbb9(0x14a)](){const _0x1bd162=_0x43dbb9;for(let _0x1c4009 of this[_0x1bd162(0x19a)])_0x1c4009[_0x1bd162(0x2dd)]();this[_0x1bd162(0x19a)]=[],this[_0x1bd162(0xf8)]=-0x1;}[_0x43dbb9(0x2dd)](){const _0x12cc18=_0x43dbb9;this[_0x12cc18(0x14a)](),super[_0x12cc18(0x2dd)]();}};mr=Z([X(0x1,_0x450bf3(_0x263af6)),X(0x2,_0x450bf3(_0x324617)),X(0x3,_0x450bf3(_0x26a217))],mr);let hr=class extends _0x4760b3{constructor(_0x33b1e7,_0x12b974,_0x43212c,_0x2c86b1,_0x4e1897){const _0x175a72=_0x43dbb9;super(),this[_0x175a72(0x209)]=_0x33b1e7,this[_0x175a72(0xe4)]=_0x12b974,this[_0x175a72(0x1e4)]=_0x43212c,this['_shapeService']=_0x2c86b1,this[_0x175a72(0x1e2)]=_0x4e1897,Y(this,'_copyInfo',void 0x0),this[_0x175a72(0x13e)](),this[_0x175a72(0x1d2)]();}get[_0x43dbb9(0x2ba)](){const _0x55536a=_0x43dbb9;return this[_0x55536a(0x1e4)][_0x55536a(0x27f)]();}[_0x43dbb9(0x1d2)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x2e47bf,fromSubUnitId:_0x50e800,toUnitId:_0x3c6749,toSubUnitId:_0x124be4,idMap:_0x28da81})=>{const _0x789b09=_0x449a;let _0x2c5a43=[],_0x356624=[];for(let [_0x23da29,_0x229113]of _0x28da81[_0x789b09(0xb5)]()){let _0x4cc6d0=this[_0x789b09(0x1ba)][_0x789b09(0x251)](_0x2e47bf,_0x50e800,_0x23da29);if(!_0x4cc6d0)continue;let _0x35d20f=_0x4cc6d0[_0x789b09(0x2ad)](),_0x14c4e4=JSON[_0x789b09(0x154)](JSON[_0x789b09(0x2d1)](_0x4cc6d0[_0x789b09(0x282)]()));if(_0x14c4e4[_0x789b09(0x270)]){var _0x64648c,_0x76cc93;let _0x5a9bad=(_0x64648c=_0x14c4e4['relation'][_0x789b09(0x23c)])==null?void 0x0:_0x64648c['shapeId'],_0x5279b1=(_0x76cc93=_0x14c4e4[_0x789b09(0x270)]['to'])==null?void 0x0:_0x76cc93[_0x789b09(0xfc)],_0x315e5e=_0x5a9bad?_0x28da81['has'](_0x5a9bad):!0x0,_0x5b04ad=_0x5279b1?_0x28da81[_0x789b09(0x2b0)](_0x5279b1):!0x0;_0x315e5e&&_0x5a9bad&&_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]?_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]={..._0x14c4e4['relation']['from'],'shapeId':_0x28da81['get'](_0x5a9bad)}:_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]=void 0x0,_0x5b04ad&&_0x5279b1&&_0x14c4e4[_0x789b09(0x270)]['to']?_0x14c4e4[_0x789b09(0x270)]['to']={..._0x14c4e4['relation']['to'],'shapeId':_0x28da81['get'](_0x5279b1)}:_0x14c4e4[_0x789b09(0x270)]['to']=void 0x0;}_0x2c5a43[_0x789b09(0x241)]({'id':_0x5addb7['id'],'params':{'unitId':_0x3c6749,'subUnitId':_0x124be4,'shapeId':_0x229113,'shapeType':_0x35d20f,'shapeData':_0x14c4e4}}),_0x356624['push']({'id':_0x35cadb['id'],'params':{'unitId':_0x3c6749,'subUnitId':_0x124be4,'shapeId':_0x229113}});}return{'redos':_0x2c5a43,'undos':_0x356624};});}[_0x43dbb9(0x13e)](){const _0x100c04=_0x43dbb9;this[_0x100c04(0x11b)](this[_0x100c04(0xe4)][_0x100c04(0x1c0)]({'id':_0x100c04(0x149),'onBeforeCopy':(_0x38f690,_0x2242ab,_0x3307d9,_0x276aa0)=>{const _0x5a978a=_0x100c04;this[_0x5a978a(0x189)]=null;let _0x2e4ae5=this[_0x5a978a(0x2ba)];if(_0x2e4ae5[_0x5a978a(0x15f)]){let _0x2183d9=_0x2e4ae5[_0x5a978a(0xb6)](_0x30e0cd=>_0x30e0cd[_0x5a978a(0x2cb)]===_0x5d03f6[_0x5a978a(0x23a)]);if(_0x2183d9[_0x5a978a(0x15f)]===0x0)return;this[_0x5a978a(0x189)]={'unitId':_0x38f690,'subUnitId':_0x2242ab,'copyType':_0x276aa0,'drawings':_0x2183d9};}else this[_0x5a978a(0x12c)](_0x38f690,_0x2242ab,_0x3307d9,_0x276aa0);},'onPasteCells':(_0xf735ca,_0x277317,_0xc17230,_0x4517a1)=>{const _0x482fd5=_0x100c04;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x42d083}=_0x4517a1;return _0x42d083===_0x32e6c9[_0x482fd5(0x27a)]?this[_0x482fd5(0x2ab)](_0x277317,this[_0x482fd5(0x189)][_0x482fd5(0x1fc)]===_0x202be0[_0x482fd5(0xd2)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x4ce6ff=>this[_0x100c04(0x189)]?this[_0x100c04(0x2ab)](_0x4ce6ff,this['_copyInfo'][_0x100c04(0x1fc)]===_0x202be0[_0x100c04(0xd2)]):{'redos':[],'undos':[]}}));}[_0x43dbb9(0x12c)](_0x421ce1,_0x165958,_0x9ea7d5,_0x1c713e){const _0x4307df=_0x43dbb9;let _0x11d473=this[_0x4307df(0x209)][_0x4307df(0x188)](_0x421ce1,_0x165958);if(!_0x11d473)return;let _0x44bbbc=_0x403c80(_0x11d473,_0x9ea7d5);if(!_0x44bbbc)return;let {startX:_0x54e704,endX:_0x58f0a8,startY:_0x32149e,endY:_0x1796fe}=_0x44bbbc,_0x56a0e0=this[_0x4307df(0x1e4)][_0x4307df(0x295)](_0x421ce1,_0x165958),_0xa53a75=this[_0x4307df(0x2ba)][_0x4307df(0x21f)]();for(let [_0x5f0fcd,_0x2a6592]of Object[_0x4307df(0xb5)](_0x56a0e0)){if(_0x2a6592[_0x4307df(0x2cb)]!==_0x5d03f6[_0x4307df(0x23a)])continue;let {transform:_0x1fa163}=_0x2a6592;if(!_0x1fa163)continue;let {left:_0x2e6c34=0x0,top:_0x48e3b8=0x0,width:_0x315367=0x0,height:_0x34c20f=0x0}=_0x1fa163;_0x54e704<=_0x2e6c34&&_0x58f0a8>=_0x2e6c34+_0x315367&&_0x32149e<=_0x48e3b8&&_0x1796fe>=_0x48e3b8+_0x34c20f&&_0xa53a75[_0x4307df(0x241)](_0x2a6592);}_0xa53a75[_0x4307df(0x15f)]>0x0&&(this[_0x4307df(0x189)]={'unitId':_0x421ce1,'subUnitId':_0x165958,'copyType':_0x1c713e,'copyRange':_0x9ea7d5,'drawings':_0xa53a75});}['_generatePasteMutations'](_0x3f2541,_0xbe21ed){const _0x2f3fec=_0x43dbb9;let {unitId:_0x15517c,subUnitId:_0x3bef1f,range:_0x2e39d0}=_0x3f2541,_0x4c4fa9=this[_0x2f3fec(0x209)][_0x2f3fec(0x188)](_0x15517c,_0x3bef1f);if(!_0x4c4fa9)return{'redos':[],'undos':[]};let _0x518814=_0x25d2bc(_0x2e39d0),{unitId:_0x51b27d,subUnitId:_0x698b76,copyRange:_0x35eae8,drawings:_0x5b1d25}=this['_copyInfo'],_0x116274=this[_0x2f3fec(0x209)][_0x2f3fec(0x188)](_0x51b27d,_0x698b76);if(!_0x116274)return{'redos':[],'undos':[]};let _0x33ce89;if(!_0x35eae8){let _0x153669=0x1/0x0,_0x334bcd=0x1/0x0;for(let _0x330753 of _0x5b1d25){var _0x21ed7a;let {left:_0x593bf5=0x0,top:_0x1d664a=0x0}=(_0x21ed7a=_0x330753['transform'])==null?{}:_0x21ed7a;_0x593bf5<_0x153669&&(_0x153669=_0x593bf5),_0x1d664a<_0x334bcd&&(_0x334bcd=_0x1d664a);}_0x153669!==0x1/0x0&&_0x334bcd!==0x1/0x0&&(_0x33ce89={'left':_0x153669,'top':_0x334bcd});}let _0x32fa2d=new Map();if(!_0xbe21ed){for(let _0x426e5e of _0x5b1d25)_0x32fa2d[_0x2f3fec(0xd9)](_0x426e5e[_0x2f3fec(0x1a9)],_0x2bfd17());}let _0x1cac56=[],_0x5054a8=[];for(let _0x53cb9b of _0x5b1d25){let {drawingId:_0xdceec2,transform:_0x7b08fc,sheetTransform:_0x2fe2ad}=_0x53cb9b;if(!_0x7b08fc||!_0x2fe2ad)continue;let _0xb54ffd=this[_0x2f3fec(0x2c1)]({'transform':_0x7b08fc,'sheetTransform':_0x2fe2ad},{'skeleton':_0x116274,'range':_0x35eae8},{'skeleton':_0x4c4fa9,'range':_0x518814},_0x33ce89);if(_0xbe21ed){let {redos:_0x1ab04f,undos:_0x156576}=this['_generateCutPasteMutations']({'fromUnitId':_0x51b27d,'fromSubUnitId':_0x698b76,'toUnitId':_0x15517c,'toSubUnitId':_0x3bef1f,'drawing':_0x53cb9b,'newTransforms':_0xb54ffd});_0x1cac56[_0x2f3fec(0x241)](..._0x1ab04f),_0x5054a8[_0x2f3fec(0x241)](..._0x156576);continue;}let {redos:_0x14b42c,undos:_0x1b6199}=this[_0x2f3fec(0x164)]({'toUnitId':_0x15517c,'toSubUnitId':_0x3bef1f,'drawing':_0x53cb9b,'newTransforms':_0xb54ffd,'newDrawingId':_0x32fa2d[_0x2f3fec(0x1bd)](_0xdceec2),'idMap':_0x32fa2d});_0x1cac56['push'](..._0x14b42c),_0x5054a8[_0x2f3fec(0x241)](..._0x1b6199);}return{'redos':_0x1cac56,'undos':_0x5054a8};}[_0x43dbb9(0xe0)](_0xe47af6){const _0x5d9bc0=_0x43dbb9;let {fromUnitId:_0x586faf,fromSubUnitId:_0x4c16f1,toUnitId:_0x856385,toSubUnitId:_0x29a909,drawing:_0x454535,newTransforms:_0x33cbe5}=_0xe47af6,_0x33dd5f={..._0x454535,'unitId':_0x856385,'subUnitId':_0x29a909,'transform':_0x33cbe5[_0x5d9bc0(0x10c)],'sheetTransform':_0x33cbe5[_0x5d9bc0(0x195)]};if(_0x856385===_0x586faf&&_0x29a909===_0x4c16f1){let {redo:_0x419f49,undo:_0x3c2099,objects:_0x30c683}=this[_0x5d9bc0(0x1e4)][_0x5d9bc0(0x256)]([_0x33dd5f]);return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be[_0x5d9bc0(0x298)],'op':_0x419f49,'objects':_0x30c683}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['UPDATE'],'op':_0x3c2099,'objects':_0x30c683}}]};}else{let _0x4e2414=this['_sheetDrawingService'][_0x5d9bc0(0xb2)]([_0x454535]),_0x183ef6=this[_0x5d9bc0(0x1e4)][_0x5d9bc0(0x2e4)]([_0x33dd5f]),_0x32336f=this[_0x5d9bc0(0x1ba)][_0x5d9bc0(0x251)](_0x454535[_0x5d9bc0(0x25d)],_0x454535['subUnitId'],_0x454535['drawingId']);if(!_0x32336f)return{'redos':[],'undos':[]};let _0x2400f6=_0x32336f[_0x5d9bc0(0x2ad)](),_0x3d370d=JSON[_0x5d9bc0(0x154)](JSON[_0x5d9bc0(0x2d1)](_0x32336f[_0x5d9bc0(0x282)]()));return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'type':_0x2640be[_0x5d9bc0(0xa9)],'op':_0x4e2414[_0x5d9bc0(0x1f2)],'objects':_0x4e2414[_0x5d9bc0(0x1d4)]}},{'id':_0x35cadb['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'shapeId':_0x454535[_0x5d9bc0(0x1a9)]}},{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['INSERT'],'op':_0x183ef6[_0x5d9bc0(0x1f2)],'objects':_0x183ef6[_0x5d9bc0(0x1d4)]}},{'id':_0x5addb7['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'shapeId':_0x454535[_0x5d9bc0(0x1a9)],'shapeType':_0x2400f6,'shapeData':_0x3d370d}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'type':_0x2640be[_0x5d9bc0(0x27b)],'op':_0x4e2414[_0x5d9bc0(0x245)],'objects':_0x4e2414['objects']}},{'id':_0x5addb7['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'shapeId':_0x454535['drawingId'],'shapeType':_0x2400f6,'shapeData':_0x3d370d}},{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['REMOVE'],'op':_0x183ef6[_0x5d9bc0(0x245)],'objects':_0x183ef6[_0x5d9bc0(0x1d4)]}},{'id':_0x35cadb['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'shapeId':_0x454535['drawingId']}}]};}}[_0x43dbb9(0x164)](_0x3c9c56){const _0x2191a7=_0x43dbb9;let {toUnitId:_0x4ea69f,toSubUnitId:_0x2b7b57,drawing:_0x34f738,newTransforms:_0x3f53eb,newDrawingId:_0x1d6826,idMap:_0x4e41ad}=_0x3c9c56,_0x3fe9e4={..._0x34f738,'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'drawingId':_0x1d6826,'transform':_0x3f53eb[_0x2191a7(0x10c)],'sheetTransform':_0x3f53eb[_0x2191a7(0x195)]},{redo:_0x55aa5a,undo:_0x2b8ea2,objects:_0x330836}=this[_0x2191a7(0x1e4)][_0x2191a7(0x2e4)]([_0x3fe9e4]),_0x339e7b=this[_0x2191a7(0x1ba)][_0x2191a7(0x251)](_0x34f738[_0x2191a7(0x25d)],_0x34f738['subUnitId'],_0x34f738['drawingId']);if(!_0x339e7b)return{'redos':[],'undos':[]};let _0x1e3228=_0x339e7b[_0x2191a7(0x2ad)](),_0x2d19bf=JSON[_0x2191a7(0x154)](JSON[_0x2191a7(0x2d1)](_0x339e7b[_0x2191a7(0x282)]()));if(_0x2d19bf['relation']){var _0xeb7bcb,_0x47ddbc;let _0x86c2e=(_0xeb7bcb=_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)])==null?void 0x0:_0xeb7bcb[_0x2191a7(0xfc)],_0x51b910=(_0x47ddbc=_0x2d19bf[_0x2191a7(0x270)]['to'])==null?void 0x0:_0x47ddbc[_0x2191a7(0xfc)],_0x1f5a86=_0x86c2e?_0x4e41ad[_0x2191a7(0x2b0)](_0x86c2e):!0x0,_0x34bdc0=_0x51b910?_0x4e41ad['has'](_0x51b910):!0x0;_0x1f5a86&&_0x86c2e&&_0x2d19bf[_0x2191a7(0x270)]['from']?_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)]={..._0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)],'shapeId':_0x4e41ad[_0x2191a7(0x1bd)](_0x86c2e)}:_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)]=void 0x0,_0x34bdc0&&_0x51b910&&_0x2d19bf[_0x2191a7(0x270)]['to']?_0x2d19bf[_0x2191a7(0x270)]['to']={..._0x2d19bf[_0x2191a7(0x270)]['to'],'shapeId':_0x4e41ad[_0x2191a7(0x1bd)](_0x51b910)}:_0x2d19bf[_0x2191a7(0x270)]['to']=void 0x0;}return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'type':_0x2640be['INSERT'],'op':_0x55aa5a,'objects':_0x330836}},{'id':_0x5addb7['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'shapeId':_0x1d6826,'shapeType':_0x1e3228,'shapeData':_0x2d19bf}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'type':_0x2640be['REMOVE'],'op':_0x2b8ea2,'objects':_0x330836}},{'id':_0x35cadb['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'shapeId':_0x1d6826}}]};}['_updateTransform'](_0x50ecfb,_0x2be6a1,_0x31c015,_0x4f82aa){const _0x3f0b90=_0x43dbb9;var _0x2c008b;let {range:_0x2c6ec6,skeleton:_0x254352}=_0x2be6a1,{range:_0x451faa,skeleton:_0x287cd5}=_0x31c015,{transform:_0x5d85dc,sheetTransform:_0x2d0e2f}=_0x50ecfb,_0x47ce3f={..._0x5d85dc};if(_0x2c6ec6){let _0x2ca90d=_0x403c80(_0x254352,_0x2c6ec6),_0x507672=_0x403c80(_0x287cd5,_0x451faa);if(_0x2ca90d&&_0x507672){var _0x30d9e2,_0x381965;let _0xa01cba=_0x507672['startX']-_0x2ca90d[_0x3f0b90(0x267)],_0x408285=_0x507672[_0x3f0b90(0x179)]-_0x2ca90d[_0x3f0b90(0x179)];_0x47ce3f[_0x3f0b90(0x11f)]=((_0x30d9e2=_0x47ce3f[_0x3f0b90(0x11f)])==null?0x0:_0x30d9e2)+_0xa01cba,_0x47ce3f[_0x3f0b90(0x16e)]=((_0x381965=_0x47ce3f[_0x3f0b90(0x16e)])==null?0x0:_0x381965)+_0x408285;}}else{let _0x446333=_0x403c80(_0x287cd5,_0x451faa);if(_0x4f82aa&&_0x446333){var _0x598a1b,_0x163d36;let _0x112585=((_0x598a1b=_0x47ce3f[_0x3f0b90(0x11f)])==null?0x0:_0x598a1b)-_0x4f82aa[_0x3f0b90(0x11f)],_0xd241f1=((_0x163d36=_0x47ce3f[_0x3f0b90(0x16e)])==null?0x0:_0x163d36)-_0x4f82aa[_0x3f0b90(0x16e)];_0x47ce3f['left']=_0x446333[_0x3f0b90(0x267)]+_0x112585,_0x47ce3f['top']=_0x446333['startY']+_0xd241f1;}else _0x47ce3f[_0x3f0b90(0x11f)]=_0x446333==null?void 0x0:_0x446333[_0x3f0b90(0x267)],_0x47ce3f['top']=_0x446333==null?void 0x0:_0x446333[_0x3f0b90(0x179)];}return{'transform':_0x47ce3f,'sheetTransform':(_0x2c008b=_0x556f36(_0x47ce3f,_0x287cd5))==null?_0x2d0e2f:_0x2c008b};}};hr=Z([X(0x0,_0x450bf3(_0x1fc54d)),X(0x1,_0x450bf3(_0x5dfcb1)),X(0x2,_0x450bf3(_0x57e4c3)),X(0x3,_0x450bf3(_0x26a217)),X(0x4,_0x450bf3(_0x12c68f))],hr);var gr=class extends _0x300c3f{constructor(_0x23b32a,_0xc759e5){const _0x1ae9f3=_0x43dbb9;super(_0x23b32a,_0xc759e5),Y(this,_0x1ae9f3(0x249),null),Y(this,_0x1ae9f3(0x2ca),null),Y(this,'_unitId',null),Y(this,'_subUnitId',null),Y(this,_0x1ae9f3(0x168),!0x1),_0xc759e5&&this[_0x1ae9f3(0x152)](_0xc759e5);}[_0x43dbb9(0x1f1)](){const _0x174628=_0x43dbb9;return{'unitId':this[_0x174628(0x238)],'subUnitId':this[_0x174628(0x250)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x3edc58){const _0x5890ca=_0x43dbb9;_0x3edc58[_0x5890ca(0xfc)]!==void 0x0&&(this[_0x5890ca(0x249)]=_0x3edc58[_0x5890ca(0xfc)]),_0x3edc58['unitId']!==void 0x0&&(this[_0x5890ca(0x238)]=_0x3edc58[_0x5890ca(0x25d)]),_0x3edc58[_0x5890ca(0x212)]!==void 0x0&&(this[_0x5890ca(0x250)]=_0x3edc58[_0x5890ca(0x212)]),_0x3edc58[_0x5890ca(0xbd)]!==void 0x0&&(this[_0x5890ca(0x168)]=_0x3edc58[_0x5890ca(0xbd)]),this[_0x5890ca(0x1c7)]({'width':_0x3edc58[_0x5890ca(0xf7)],'height':_0x3edc58[_0x5890ca(0x1dc)]});}['_draw'](_0x5804c2){const _0x39f554=_0x43dbb9;_0x536c54['drawWith'](_0x5804c2,{'radius':_0x2bc8ec['cxnPointRadius'],'fill':_0x2bc8ec[_0x39f554(0x2ac)],'stroke':_0x2bc8ec[_0x39f554(0x194)],'strokeWidth':_0x2bc8ec[_0x39f554(0x19b)],'evented':!0x0});}};function _0x1d5d(){const _0x1dcde7=['TOP','activeSheet$','params','_menuManagerService','getShapeTextRect','disposeWithMe','sectionFloating','_commandExecutedListener','packageName','left','_addShapeConnectorHandlerObjects','viewportScrollX','_getSceneAndTransformerByDrawingSearch','registerCommand','clipByShape','_transform','#1a73e8','_baseWidth','scene','initTransformer','_imageIoService','setAdjustValueByName','_createCopyInfoByRange','_baseShapeTop','panel','onPointerDown$','removeLinePoints','smartArt','prstGeom','values','ObjectLayersIcon','sectionCanvas','symbol','StraightConnector1','_onSavingEditorData$','highlighted','getImage','_loadAndSetImage','_reset','sheets-shape-ui.toggleFlipV','_initCopyPaste','extensionGroups','adjHandleStroke','focusDrawing','setPresentation','SheetShapeTextEditorContainer','getActiveSheet','sheet.operation.close-sheet-shape-format-panel','_moveConnectorWithShape','registerFeatureMenu','getSheetBySheetId','sheets-shape-ui','_clearConnectionSites','setHighlighted','_getShapeAdjustInfosById','refreshAdjustControls','transformForAngle','_activeShapeId','getUnit','complete','setShapeProps','lineType','parse','_getZoomRatio','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_isShouldShowDrawingShapeAdjust','_showConnectionSites','_formulaKey','resetCursor','_updateImageAdjValues','_getScrollInfo','makeDirty','_getOrCreateShapeModel','length','getInterceptPoints','getConnectorLinePoints','cxnIndex','_initEvents','_generateCopyPasteMutations','getCurrentUnitOfType','next','translate','_isStartConnectorPoint','_activeImageId','string','shapeKey','rect','_currentConnectionTarget','top','_activeTargetShapeId','getValue','getDrawingByParam','getUnitType','updateConnectionDetection','changeEnd$','getActualSize','_shapes','point','type','startY','formulaBinding','editingParams$','subscribeEvent','_formulaAnimation','add$','getScene','calcAdjValue','ShapeIcon','completeEditing','localeService','onTransformChange$','strokeWidth','_clearControls','getCurrentLastSelection','getSkeleton','_copyInfo','adjName','setShouldShowAdjust','changing$','getShapePopupMenus','doc.image-clip.shape-picker.component','getConnectionInfo','_getImagePrstGeom','_isOpenedShapeEditPanel','shape-text-','syncExecuteCommand','cxnPointStroke','sheetTransform','order','description','getPresentation','text','_connectionSiteObjects','cxnPointStrokeWidth','getRenderById','classType','_addShapeConnectorHandlerObject','_handleConnectedEndpointPointerUp','getDrawingOrder','_cxtHandlerPointerMove','setFillImage','endArrow','setShapeData','image','_getImageDrawingInfo','getAllUnitsForType','_shapeTextEditingService','drawingId','#FFFFFF','connector-handler-','function','_registerMoveHandler','_editingParams$','973cllLEH','includes','_clipService','getBentTypeFromPoints','disableShapeOption','_props','_executeResizeCommand','preValue','getImageSourceCache','disableObjectsEvent','getMatrix','_shapeService','title','DRAWING_SMART_ART','get','extraProps','onPointerUp$','addClipboardHook','dom','formulaPresentation','custom','name','fontSize','getZoomRatio','transformByState','_createControls','setContextValue','_localeService','Line','toPrimitive','None','popup','shapeText','_configService','actualHeight','_registerGroupFeaturePasteHook','_disposePopups','objects','_sidebarService','3219324WeaEuO','_cxnIndex','sheets-shape-ui.openPanel','getParent','Medium','VIEW_MAIN_LEFT_TOP','height','unsubscribe','getObjectIncludeInGroup','_rerouteConnectorLine','UNIVER_SHEET','38524EuhNNl','_groupCopyPasteController','_getConnectPointInfo','_sheetDrawingService','_clearShapeAdjustControls','sin','renderDrawingShape','VIEW_MAIN_TOP','updateShapeFillImage','_activeShapeInfo','_adjName','_getShapeAdjustPointListById','isRichText','fill','56840dKLBpW','_initSelection','getDrawingSearch','redo','draw','_injector','Rect','VIEW_MAIN_LEFT','onCommandExecuted','data','getEditing','_adjHandlerPointerMove','SolidLine','copyType','save','video','_sheetsShapeService','forEach','getConnectionSiteList','887381TuLBac','_initPrinting','refreshShapeFillImage','sheets-shape-ui.objectListPanel.open','isEditing','selectable','_initMenu','_sheetSkeletonService','DRAWING_IMAGE','scale','_activeShapeAdjustPointList','onDblclick$','top-center','setSrcRect','call','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','subUnitId','_clearPopups','pick','targetShapeId','_contextService','startConnectionDetection','find','flipY','_updateAdjustControlPositions','_createShapeAdjustControls','clipHeight','bind','register','slice','sheet.image-clip.shape-picker.component','_shapeFormulaService','color','div','prstGeomAdjValues','_createShapePopupMenu','_popupMenuListener','sheet.shape.floating-toolbar','rotation','animationEnabled','_handleConnectedEndpointMove','_activeShapeModel','applyPoint','_getDrawingRect','_targetShapeId','restore','getDrawingVisible','focus$','contentHeight','_baseHeight','setPrstGeom','_registerDrawingMoveHandler','end','hidden','_unitId','_iconManager','DRAWING_SHAPE','invert','from','_closeShapeEditPanel','DRAWING_VIDEO','viewportScrollY','getCurrentTypeOfUnit$','push','fillType','connection-site-','_calculateFreeEndpointAngle','undo','_updateShapeAdjustControls','gdRefY','onRendered','_shapeId','sheets-shape-ui.deleteShape','onPointerMove$','sheet.shape.object-list.panel','pipe','sheets-shape-text-','_draggingConnectorId','_subUnitId','getShapeModel','unregister','indexOf','_registerDrawingFocusChangeHandler','getSkeletonParam','getBatchUpdateOp','_activeAdjustInfo','_isStartAdjusting','clip-adj-','_cxtHandlerPointerUp','_resetState','enableObjectsEvent','unitId','_handleConnectorPointerUp','close','_baseShapeLeft','clip-','10966311OoZOuw','_lastEditingShapeKey','calculate','_registerComponents','getDrawingDataForUnit','startX','axisAlignSheetTransform','OPERATION','stopPropagation','value','ang','SELECTOR','_sheetShapeAdjustController','UNIVER_DOC','relation','isArray','getRealBound','localToWorld','_sheetPrintInterceptorService','getDrawingPoints','_adjHandlerPointerUp','URL','pushUndoRedo','getTransformer','DEFAULT_PASTE','INSERT','setCanUseShapeClip','VIEW_MAIN','_formulaShapes','getFocusDrawings','decorate','sheet.shape.picker.component','getShapeData','_baseLeft','_init','_commandService','sheetViewStartColumn','skeleton','offsetX','beforeCommandExecuted','normal','startArrow','_registerIcons','activeAnObject','_openShapeEditPanel','subscribe','registerFeatureMenuOffset','open','_isImagePointerDown','keys','stroke','getDrawingData','sheetViewStartRow','getOwnPropertyDescriptor','UPDATE','updateLinePoints','map','_getConnectionSiteAngle','dataModel','isHitLine','_initSheetChange','getAdjustValueByName','9648175LVZHZH','intercept','image-clip-adjust-point-','_initPermission','getEndConnectInfo','clear','onerror','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','reduce','prototype','isDrawingObject','_generatePasteMutations','cxnPointFill','getShapeType','getAdjustInfoByName','_insertShapes','has','delete','_baseShapeWidth','_isHighlighted','_drawRichTextLayer','_baseDrawingRect','render','111VBDsRH','abs','index','_focusedDrawings','attachTransformerTo','initShapePopupMenu','_connectorObjects','error','_updateSrcRectByTransform','worldPoints','_updateTransform','buildClipPath','_initEditingParams','_executeConnectedRouteConnectionCommand','_getShapeInfo','trim','worldPoint','interceptor','getSelectedObjectMap','_index','drawingType','visible','_activeAdjustPointList','default','object','executeCommand','stringify','_addControl','getDrawingEditable','_clearShapeConnectorHandlerObjects','flipX','sheets-shape-ui.rotateRight90','getCurrentScrollState','_registerFocusChangeHandler','_sheetDrawingShapeRenderController','_sidebarDisposable','clip','animateFormulaPresentation','dispose','gdRefAng','setConfig','_attachAdjustEvent','angle','fillImageSource','clearAdjustControls','getBatchAddOp','gdRefR','permissionCheckWithoutRange','sheet.shape.edit.panel','srcRect','_executeConnectionCommand','with','_registerShapeMenu','COMMAND','DRAWING_UNIT','getTransformerByCreate','marginTop','adjHandleSize','_renderManagerService','9576204dWNJTb','changeStart$','fontFamily','ancestorTransform','constructor','DRAWING_CHART','presentationChanged$','_baseShapeHeight','resize','composeMatrix','_baseTop','addImageSourceCache','Arrow','_isConnecting','onSteady','SHAPE_TEXT','worldRect','createControl$','sheets-shape-ui.rotateLeft90','contentVerticalOffset','create','isHighlighted','_config','getDrawingOKey','_isDrawingShapePointDown','_findNearestConnectionSite','setCursor','getSheetId','getCurrentSkeleton','cxnPointRadius','canvas','_urlImageService','isInGroup','REMOVE','_transformCalculateSrcRect','sheets-shape-ui.objectListPanel.title','refreshFormulaPresentation','getObject','changeShapeType','_loadShapePictureFill','_sheetPermissionCheckController','_hasReset','getBatchRemoveOp','DRAWING_DOM','size','entries','filter','mergeMenu','getUnitId','gradientEndColor','offsetY','_findShapeAtPoint','computeConnectorResizeLayout','isStartConnectorPoint','_shapeUpdateListener','_sheetCanvasPopManagerService','shapeModel','getShapeTextData','_initialize','gdRefX','_drawRichText','horizontal','viewBound','setEditing','interceptCommand','_shapeEditPanelVersion','getAutoFitPresentations','_addShapeAdjustControl','_drawingManagerService','_univerInstanceService','onReady','multiply','_draw','isHorizontal','CUT','clipTop','defineProperty','translateWithPrecision','remove$','univer-box-border\x20univer-px-4\x20univer-text-sm','beginPath','set','DRAWING_TABLE','_handleFreeEndpointPointerUp','setFormulaPresentation','_initCommands','getState','forward','_generateCutPasteMutations','registerRenderModule','setOnSavingEditorData','shape-adjust-point-','_sheetClipboardService','doc','sheets-shape-ui.config','_registerOperations','oKey','addObject','_sheetBasicShapeConnectionPointController','getShapeDataById','MEDIA','isLineShape','clearControl$','adjustValues','Large','1.0.0-alpha.7','_shapeRenderController','sheet.command.update-shape-data','parent','BUTTON','GROUP','width','_highlightedSiteIndex','_imageShapeClipController','@univerjs-pro/sheets-shape-ui','_context','shapeId','sheet.operation.open-sheet-shape-format-panel','sheets-shape-ui.imagePanel.crop.shape','sheets-shape-ui.formatShape','_attachConnectorObjectEvent','FromArray','isHit','_componentManager','updateContext','update$','shapeData','_insertingShapeKeys','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cos','sheet.command.menu-insert-shape','add','transform','_applyFormulaAutoFitSize','asObservable','version','#bcbcbc','pluginName','_currentUniverService','_currentScene','_drawingAddListener','vertical'];_0x1d5d=function(){return _0x1dcde7;};return _0x1d5d();}let _r=class extends _0x4760b3{constructor(_0x2dc4ca,_0x57da97,_0x38f069,_0x1c42f7,_0x380ed9,_0x1ebd7f,_0x44b618,_0x469ce5){const _0xe63181=_0x43dbb9;super(),this[_0xe63181(0xfb)]=_0x2dc4ca,this['_commandService']=_0x57da97,this['_renderManagerService']=_0x38f069,this[_0xe63181(0xcc)]=_0x1c42f7,this[_0xe63181(0xcd)]=_0x380ed9,this[_0xe63181(0x1ff)]=_0x1ebd7f,this[_0xe63181(0x26e)]=_0x44b618,this[_0xe63181(0xea)]=_0x469ce5,Y(this,_0xe63181(0x14f),void 0x0),Y(this,_0xe63181(0x238),void 0x0),Y(this,_0xe63181(0x250),void 0x0),Y(this,_0xe63181(0x2bd),[]),Y(this,_0xe63181(0x2b5),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0xe63181(0x22b),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,'_isDrawingShapePointDown',!0x1),Y(this,_0xe63181(0xb1),!0x1),Y(this,_0xe63181(0x1a1),void 0x0),Y(this,_0xe63181(0x25a),void 0x0),Y(this,_0xe63181(0x16d),null),this['_initialize']();}[_0x43dbb9(0xc2)](){const _0x40d2da=_0x43dbb9;this[_0x40d2da(0x254)](),this[_0x40d2da(0x235)]();}[_0x43dbb9(0x22d)](){const _0x35f9d1=_0x43dbb9;if(!this[_0x35f9d1(0x238)]||!this[_0x35f9d1(0x250)]||!this[_0x35f9d1(0x14f)])return;let _0x5ccec3={'unitId':this[_0x35f9d1(0x238)],'subUnitId':this[_0x35f9d1(0x250)],'drawingId':this[_0x35f9d1(0x14f)]},{transform:_0x3f6480}=this[_0x35f9d1(0xcc)][_0x35f9d1(0x171)](_0x5ccec3);if(_0x3f6480)return{'left':_0x3f6480['left']||0x0,'top':_0x3f6480[_0x35f9d1(0x16e)]||0x0,'width':_0x3f6480['width']||0x0,'height':_0x3f6480[_0x35f9d1(0x1dc)]||0x0,'flipX':_0x3f6480[_0x35f9d1(0x2d5)]||!0x1,'flipY':_0x3f6480['flipY']||!0x1,'angle':_0x3f6480['angle']};}[_0x43dbb9(0x120)](){const _0x5e183a=_0x43dbb9;if(this[_0x5e183a(0x238)]===void 0x0||this[_0x5e183a(0x250)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x37794a=this['_renderManagerService'][_0x5e183a(0x19c)](this[_0x5e183a(0x238)]);if(!_0x37794a||!_0x37794a['with'](_0x392ff0)[_0x5e183a(0xa4)]())return;let {scene:_0x2ed470}=_0x37794a,_0x1c6d37=this[_0x5e183a(0x22d)]();if(!_0x1c6d37)return;let _0x40bfd3=this[_0x5e183a(0x1ff)][_0x5e183a(0x251)](this['_unitId'],this[_0x5e183a(0x250)],this[_0x5e183a(0x14f)]);if(!_0x40bfd3||!_0x1f7f23(_0x40bfd3['getShapeType']()))return;let _0x37b10c=_0x40bfd3['getConnectorLinePoints']();if(_0x37b10c[_0x5e183a(0x15f)]<0x2)return;let _0x101e36=new _0x427c58(_0x1c6d37),_0x2db088=_0x37b10c[0x0],_0x34058c=_0x37b10c[_0x37b10c['length']-0x1],_0x21fe47=_0x101e36['localToWorld'](_0x2db088),_0x3eb886=_0x101e36['localToWorld'](_0x34058c);this[_0x5e183a(0x19e)](_0x2ed470,{..._0x21fe47},!0x0),this[_0x5e183a(0x19e)](_0x2ed470,{..._0x3eb886},!0x1);}['_addShapeConnectorHandlerObject'](_0x1d9dba,_0x3349df,_0x5a0e15){const _0x4d2d24=_0x43dbb9;if(this[_0x4d2d24(0x14f)]===void 0x0||this[_0x4d2d24(0x238)]===void 0x0||this[_0x4d2d24(0x250)]===void 0x0)return;let _0x144bf7=_0x4d2d24(0x1ab)+this[_0x4d2d24(0x238)]+'-'+this[_0x4d2d24(0x250)]+'-'+this[_0x4d2d24(0x14f)]+'-'+(_0x5a0e15?'start':_0x4d2d24(0x236)),_0x236cd1=_0x1d9dba[_0x4d2d24(0x1de)](_0x144bf7);if(_0x236cd1){_0x236cd1[_0x4d2d24(0x1c7)]({'left':_0x3349df['x']-_0x2bc8ec[_0x4d2d24(0xa5)],'top':_0x3349df['y']-_0x2bc8ec[_0x4d2d24(0xa5)]});return;}let _0x18835b=new gr(_0x144bf7,{'left':_0x3349df['x']-_0x2bc8ec[_0x4d2d24(0xa5)],'top':_0x3349df['y']-_0x2bc8ec[_0x4d2d24(0xa5)],'shapeId':this[_0x4d2d24(0x14f)],'unitId':this[_0x4d2d24(0x238)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x5a0e15,'width':_0x2bc8ec[_0x4d2d24(0xa5)]*0x2,'height':_0x2bc8ec[_0x4d2d24(0xa5)]*0x2,'zIndex':_0x11332b+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x18835b),this[_0x4d2d24(0x100)](_0x18835b,_0x1d9dba,_0x5a0e15),_0x1d9dba[_0x4d2d24(0xe9)](_0x18835b,_0x11332b+0x1);}[_0x43dbb9(0x15c)](_0x3ff9ef,_0x169f08){const _0x38d5d8=_0x43dbb9;var _0x1eeb30;let _0x155e7f={'x':0x0,'y':0x0};if(!_0x3ff9ef||!_0x169f08)return _0x155e7f;let _0x58341b=this[_0x38d5d8(0x87)][_0x38d5d8(0x19c)](_0x3ff9ef);if(!_0x58341b||!_0x58341b['with'](_0x392ff0)[_0x38d5d8(0x188)](_0x169f08))return _0x155e7f;let _0x2a3c8c=_0x58341b[_0x38d5d8(0x2ea)](_0xdbee74),_0x1c4a2e=_0x2a3c8c==null?void 0x0:_0x2a3c8c[_0x38d5d8(0x2d7)]();if(!_0x1c4a2e)return _0x155e7f;let _0x186e30=(_0x1eeb30=this['_univerInstanceService'][_0x38d5d8(0x150)](_0x3ff9ef))==null?void 0x0:_0x1eeb30['getSheetBySheetId'](_0x169f08);if(!_0x186e30)return _0x155e7f;let _0x5ce9ca=_0x1b930d(_0x1c4a2e[_0x38d5d8(0x296)],_0x1c4a2e[_0x38d5d8(0x286)],_0x58341b['scene'],_0x186e30);return _0x5ce9ca?{'x':_0x5ce9ca[_0x38d5d8(0x121)],'y':_0x5ce9ca['viewportScrollY']}:_0x155e7f;}[_0x43dbb9(0x155)](_0x3335a7,_0x1560ce){const _0x37808b=_0x43dbb9;var _0x25290a,_0x183f8f;let _0x267c2b=(_0x25290a=this[_0x37808b(0xcd)]['getUnit'](_0x3335a7))==null?void 0x0:_0x25290a[_0x37808b(0x148)](_0x1560ce);return(_0x183f8f=_0x267c2b==null?void 0x0:_0x267c2b[_0x37808b(0x1c6)]())==null?0x1:_0x183f8f;}[_0x43dbb9(0x25e)](_0x2a0be4,_0x5964c4,_0x254167,_0x50b301,_0x2b7f54){const _0x944662=_0x43dbb9;this[_0x944662(0x1a1)]['unsubscribe'](),this[_0x944662(0x25a)][_0x944662(0x1dd)](),this[_0x944662(0x26e)][_0x944662(0x14d)]();let _0x39ee8d=this[_0x944662(0x16d)];this[_0x944662(0xea)]['endConnectionDetection']();let _0x1d210d=this[_0x944662(0x15c)](this[_0x944662(0x238)],this[_0x944662(0x250)]),_0x590e90=this['_getZoomRatio'](this[_0x944662(0x238)],this[_0x944662(0x250)]),_0x35cabf={'x':_0x254167[_0x944662(0x288)]/_0x590e90+_0x1d210d['x'],'y':_0x254167[_0x944662(0xba)]/_0x590e90+_0x1d210d['y']},_0x462d33=_0x39ee8d?_0x39ee8d[_0x944662(0x2c7)]:_0x35cabf,_0x275384=_0x50b301?this[_0x944662(0x22b)][_0x944662(0x2a4)]():this[_0x944662(0x22b)]['getStartConnectInfo'](),_0x171e8c=this[_0x944662(0x22b)]['getShapeType']();_0x275384?this[_0x944662(0x19f)](_0x275384,_0x462d33,_0x50b301,_0x39ee8d,_0x2b7f54):this[_0x944662(0xdb)](_0x5964c4,_0x462d33,_0x50b301,_0x39ee8d,_0x2b7f54,_0x171e8c),this[_0x944662(0x95)]=!0x1,this[_0x944662(0xb1)]=!0x1,this[_0x944662(0x16d)]=null,_0x2a0be4['enableObjectsEvent']();}[_0x43dbb9(0xdb)](_0x29f455,_0x20aff4,_0x3298a3,_0x1fdc5d,_0x534298,_0x520e14){const _0x4c0735=_0x43dbb9;let _0x250123=_0x520e14===_0x250922[_0x4c0735(0x1cb)]||_0x520e14===_0x250922[_0x4c0735(0x137)],_0x506d03=_0x3298a3?_0x20aff4:_0x29f455,_0xe7dbdf=_0x3298a3?_0x29f455:_0x20aff4,_0x4db2e5=this['_activeShapeModel'][_0x4c0735(0x161)](),_0x2bd35a=_0x2e1471(this['_activeShapeModel'][_0x4c0735(0x2ad)]()),_0x1db243=_0x427c58[_0x4c0735(0x1b2)](_0x4db2e5,_0x2bd35a),_0x471611=_0x250123?_0x427c58['computeStraightConnectorLayout'](_0x506d03,_0xe7dbdf):_0x427c58[_0x4c0735(0xbc)](_0x29f455,_0x20aff4,_0x3298a3,_0x1db243);_0x1fdc5d?this[_0x4c0735(0x2e9)](_0x471611,_0x1fdc5d,_0x3298a3,_0x534298):this[_0x4c0735(0x1b5)](_0x471611,_0x534298);}[_0x43dbb9(0x19f)](_0x55b29a,_0x481dd1,_0x532a62,_0xa13e98,_0x2aa2bc){const _0x4980d8=_0x43dbb9;let _0x560e50=this[_0x4980d8(0x1e3)](_0x55b29a);if(!_0x560e50)return;let _0x5da971=_0xa13e98?_0xa13e98['angle']:this[_0x4980d8(0x244)](_0x560e50[_0x4980d8(0x177)],_0x481dd1),_0x2fb355;if(_0xa13e98){let _0x2f291a=this[_0x4980d8(0xcc)][_0x4980d8(0x171)]({'unitId':_0xa13e98[_0x4980d8(0x25d)],'subUnitId':_0xa13e98[_0x4980d8(0x212)],'drawingId':_0xa13e98[_0x4980d8(0xfc)]});if(_0x2f291a!=null&&_0x2f291a[_0x4980d8(0x10c)]){let {left:_0x1dcd57=0x0,top:_0x56477a=0x0,width:_0x185b55=0x0,height:_0x4655cf=0x0,angle:_0x59fe82}=_0x2f291a['transform'];_0x2fb355=_0x15c292({'left':_0x1dcd57,'top':_0x56477a,'width':_0x185b55,'height':_0x4655cf},_0x59fe82||0x0);}else _0x2fb355={'left':_0x481dd1['x'],'top':_0x481dd1['y'],'width':0x0,'height':0x0};}else _0x2fb355={'left':_0x481dd1['x'],'top':_0x481dd1['y'],'width':0x0,'height':0x0};let _0x235461={'point':_0x481dd1,'angle':_0x5da971,'bounds':_0x2fb355},_0x28c1f6=_0x532a62?_0x235461:_0x560e50,_0x5703e4=_0x532a62?_0x560e50:_0x235461,_0x4dd0c1=this[_0x4980d8(0x22b)]['getShapeType'](),_0x5431d3=_0xde601c(_0x28c1f6,_0x5703e4,_0x4dd0c1);this['_activeShapeModel'][_0x4980d8(0x130)]();let _0x5250e6=_0x3de713(_0x5431d3,_0x4dd0c1);_0xa13e98?this[_0x4980d8(0x2c4)](_0x5250e6,_0xa13e98,_0x55b29a,_0x532a62,_0x2aa2bc):this['_executeConnectedRouteResizeCommand'](_0x5250e6,_0x55b29a,_0x532a62,_0x2aa2bc);}[_0x43dbb9(0x2e9)](_0x630a6f,_0x143431,_0x4aa354,_0x1ef7c9){const _0x544360=_0x43dbb9;let _0x24836c=this[_0x544360(0x22b)][_0x544360(0x282)]()['relation'],_0x17bbea={..._0x24836c},_0xee2ec6={'shapeId':_0x143431[_0x544360(0xfc)],'cxnIndex':_0x143431['cxnIndex']};_0x4aa354?_0x17bbea[_0x544360(0x23c)]=_0xee2ec6:_0x17bbea['to']=_0xee2ec6;let _0x4db0f2=this[_0x544360(0x22b)][_0x544360(0x2ad)](),_0x5150f5=_0x3de713(_0x630a6f[_0x544360(0x2c0)],_0x4db0f2),_0x344cb6={'unitId':this['_unitId'],'subUnitId':this[_0x544360(0x250)],'connectorShapeId':this[_0x544360(0x14f)],'width':_0x630a6f[_0x544360(0x98)][_0x544360(0xf7)],'height':_0x630a6f['worldRect'][_0x544360(0x1dc)],'left':_0x630a6f[_0x544360(0x98)][_0x544360(0x11f)],'top':_0x630a6f[_0x544360(0x98)][_0x544360(0x16e)],'flipX':_0x630a6f['worldRect'][_0x544360(0x2d5)]||!0x1,'flipY':_0x630a6f[_0x544360(0x98)]['flipY']||!0x1,'newAdjustValues':_0x5150f5[_0x544360(0xef)],'oldAdjustValues':_0x1ef7c9,'oldRelation':_0x24836c,'newRelation':_0x17bbea,'newLineType':_0x5150f5[_0x544360(0x153)],'oldLineType':_0x4db0f2};this[_0x544360(0x285)][_0x544360(0x2d0)](_0x551591['id'],_0x344cb6);}[_0x43dbb9(0x1b5)](_0x25ca84,_0x44c709){const _0x225afe=_0x43dbb9;let _0x2e1f3f=this[_0x225afe(0x22b)][_0x225afe(0x2ad)](),_0x47b3a3=_0x3de713(_0x25ca84[_0x225afe(0x2c0)],_0x2e1f3f),_0x192a65={'unitId':this['_unitId'],'subUnitId':this[_0x225afe(0x250)],'shapeId':this[_0x225afe(0x14f)],'width':_0x25ca84['worldRect'][_0x225afe(0xf7)],'height':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x1dc)],'left':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x11f)],'top':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x16e)],'flipX':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x2d5)]||!0x1,'flipY':_0x25ca84['worldRect'][_0x225afe(0x219)]||!0x1,'angle':_0x25ca84[_0x225afe(0x98)]['angle']||0x0,'newAdjustValues':_0x47b3a3[_0x225afe(0xef)],'oldAdjustValues':_0x44c709,'newLineType':_0x47b3a3['lineType'],'oldLineType':_0x2e1f3f};this[_0x225afe(0x285)][_0x225afe(0x2d0)](_0x5760d5['id'],_0x192a65);}['_executeConnectedRouteConnectionCommand'](_0x490d02,_0x2934ff,_0x3a6b1a,_0x3547d6,_0x3688af){const _0x15c893=_0x43dbb9;let _0x350bc0=this[_0x15c893(0x22b)][_0x15c893(0x282)]()[_0x15c893(0x270)],_0x2278a4={..._0x350bc0},_0x3fe59f={'shapeId':_0x2934ff['shapeId'],'cxnIndex':_0x2934ff[_0x15c893(0x162)]};_0x3547d6?(_0x2278a4['from']=_0x3fe59f,_0x2278a4['to']=_0x3a6b1a):(_0x2278a4[_0x15c893(0x23c)]=_0x3a6b1a,_0x2278a4['to']=_0x3fe59f);let _0x4c741b={'unitId':this[_0x15c893(0x238)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x15c893(0x14f)],'width':_0x490d02[_0x15c893(0x98)]['width'],'height':_0x490d02['worldRect']['height'],'left':_0x490d02['worldRect']['left'],'top':_0x490d02['worldRect'][_0x15c893(0x16e)],'flipX':_0x490d02[_0x15c893(0x98)]['flipX']||!0x1,'flipY':_0x490d02[_0x15c893(0x98)][_0x15c893(0x219)]||!0x1,'oldAdjustValues':_0x3688af,'newAdjustValues':_0x490d02[_0x15c893(0xef)],'newLineType':_0x490d02[_0x15c893(0x153)],'rotation':_0x490d02[_0x15c893(0x228)],'oldRelation':_0x350bc0,'newRelation':_0x2278a4};this[_0x15c893(0x285)]['executeCommand'](_0x551591['id'],_0x4c741b);}['_executeConnectedRouteResizeCommand'](_0x75bd26,_0xd41554,_0x259a64,_0x2e5eb6){const _0x166830=_0x43dbb9;let _0x2234b6=this[_0x166830(0x22b)][_0x166830(0x282)]()[_0x166830(0x270)],_0x24a345={};_0x259a64?(_0x24a345['to']=_0xd41554,_0x24a345['from']=void 0x0):(_0x24a345[_0x166830(0x23c)]=_0xd41554,_0x24a345['to']=void 0x0);let _0x3bc165={'unitId':this[_0x166830(0x238)],'subUnitId':this[_0x166830(0x250)],'connectorShapeId':this[_0x166830(0x14f)],'width':_0x75bd26[_0x166830(0x98)][_0x166830(0xf7)],'height':_0x75bd26[_0x166830(0x98)][_0x166830(0x1dc)],'left':_0x75bd26[_0x166830(0x98)]['left'],'top':_0x75bd26['worldRect'][_0x166830(0x16e)],'flipX':_0x75bd26[_0x166830(0x98)][_0x166830(0x2d5)]||!0x1,'flipY':_0x75bd26[_0x166830(0x98)][_0x166830(0x219)]||!0x1,'oldAdjustValues':_0x2e5eb6,'newAdjustValues':_0x75bd26[_0x166830(0xef)],'newLineType':_0x75bd26[_0x166830(0x153)],'rotation':_0x75bd26['rotation'],'oldRelation':_0x2234b6,'newRelation':_0x24a345};this[_0x166830(0x285)][_0x166830(0x2d0)](_0x551591['id'],_0x3bc165);}[_0x43dbb9(0x100)](_0x163b2e,_0x5db01e,_0x22b813){const _0x40ee20=_0x43dbb9;this[_0x40ee20(0x11b)](_0x43b296(_0x163b2e[_0x40ee20(0x12f)][_0x40ee20(0x17c)]((_0x554bc0,_0x542cf1)=>{const _0x124da5=_0x40ee20;let _0x40c5a4=_0x163b2e[_0x124da5(0x1f1)]();if(this['_activeShapeModel']=this[_0x124da5(0x1ff)]['getShapeModel'](_0x40c5a4[_0x124da5(0x25d)],_0x40c5a4['subUnitId'],_0x40c5a4['drawingId']),!this[_0x124da5(0x22b)])return;let _0x1a886b={};this[_0x124da5(0x22b)]['getAdjustNames']()['forEach'](_0x40d238=>{let _0x34cbf8=this['_activeShapeModel']['getAdjustValueByName'](_0x40d238);_0x34cbf8!==void 0x0&&(_0x1a886b[_0x40d238]=_0x34cbf8);});let _0x504362=this[_0x124da5(0x22d)]();if(!_0x504362)return;this[_0x124da5(0x2b5)]={..._0x504362};let _0x58f9bb=new _0x427c58(this[_0x124da5(0x2b5)]),_0x28d1c6=_0x7f2912({'unitId':this[_0x124da5(0x238)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x124da5(0x14f)]}),_0x46d1ce=_0x5db01e[_0x124da5(0x1de)](_0x28d1c6);this[_0x124da5(0x95)]=!0x0,_0x5db01e[_0x124da5(0x1b8)](),this[_0x124da5(0xea)][_0x124da5(0x217)](_0x5db01e,this[_0x124da5(0x238)],this[_0x124da5(0x250)],this[_0x124da5(0x14f)]),this[_0x124da5(0x16d)]=null;let _0x1d6bd7=this['_activeShapeModel'][_0x124da5(0x161)](),_0x2dc9ac=_0x1d6bd7[0x0],_0x5ab85e=_0x1d6bd7[_0x1d6bd7[_0x124da5(0x15f)]-0x1],_0x2d2498=_0x22b813?_0x58f9bb['localToWorld'](_0x5ab85e):_0x58f9bb[_0x124da5(0x273)](_0x2dc9ac);this['_cxtHandlerPointerMove']=_0x5db01e[_0x124da5(0x24b)][_0x124da5(0x17c)]((_0x393999,_0x5ec391)=>{const _0xaaf38c=_0x124da5;if(!this[_0xaaf38c(0x95)]||!this['_activeShapeModel'])return;this['_hasReset']||(this['_sheetShapeAdjustController'][_0xaaf38c(0x2e3)](),this[_0xaaf38c(0x22b)]['clearAdjustValue'](),this['_hasReset']=!0x0);let _0x35b7a9=this[_0xaaf38c(0x15c)](this[_0xaaf38c(0x238)],this[_0xaaf38c(0x250)]),_0x47a98c=this[_0xaaf38c(0x155)](this[_0xaaf38c(0x238)],this[_0xaaf38c(0x250)]),_0x3d067b={'x':_0x393999[_0xaaf38c(0x288)]/_0x47a98c+_0x35b7a9['x'],'y':_0x393999[_0xaaf38c(0xba)]/_0x47a98c+_0x35b7a9['y']},_0xaef58a=this[_0xaaf38c(0xea)][_0xaaf38c(0x173)](_0x3d067b);if(_0xaef58a){let {shapeId:_0x500729,unitId:_0x31e3d5,subUnitId:_0x4a703e}=_0xaef58a;if(_0x500729&&_0x31e3d5&&_0x4a703e){let _0x329009=_0x7f2912({'unitId':_0x31e3d5,'subUnitId':_0x4a703e,'drawingId':_0x500729});_0xaef58a[_0xaaf38c(0x2e1)]=(_0x5db01e[_0xaaf38c(0x1de)](_0x329009)[_0xaaf38c(0x2e1)]||0x0)+_0xaef58a[_0xaaf38c(0x2e1)];}}this[_0xaaf38c(0x16d)]=_0xaef58a;let _0x5967a7=_0x22b813?this[_0xaaf38c(0x22b)][_0xaaf38c(0x2a4)]():this[_0xaaf38c(0x22b)]['getStartConnectInfo']();if(_0x5967a7){this['_handleConnectedEndpointMove'](_0x5967a7,_0x3d067b,_0x22b813,_0x46d1ce,_0x163b2e);return;}this['_handleFreeEndpointMove'](_0x3d067b,_0x2d2498,_0x22b813,_0x46d1ce,_0x163b2e);}),this[_0x124da5(0x25a)]=_0x5db01e['onPointerUp$'][_0x124da5(0x17c)]((_0x19ce8b,_0x30ee31)=>{const _0x2a97aa=_0x124da5;this[_0x2a97aa(0x25e)](_0x5db01e,_0x2d2498,_0x19ce8b,_0x22b813,_0x1a886b);}),_0x542cf1[_0x124da5(0x26a)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0xe1bae3,_0x3d1aac,_0x37fd62){const _0xce7687=_0x43dbb9;let _0x5addae=this[_0xce7687(0x1ff)]['getBasicShapeRelation'](_0xe1bae3,_0x3d1aac,_0x37fd62);if(!_0x5addae||_0x5addae[_0xce7687(0x15f)]===0x0)return;let _0x237e3a=this[_0xce7687(0x87)][_0xce7687(0x19c)](_0xe1bae3);if(!_0x237e3a)return;let {scene:_0x54783e}=_0x237e3a;for(let _0x37c5e6 of _0x5addae){let _0x2baa83=_0x37c5e6['lineShapeId'],_0x1be106=this['_sheetsShapeService'][_0xce7687(0x251)](_0xe1bae3,_0x3d1aac,_0x2baa83);if(!_0x1be106)continue;let _0x301e50=_0x1be106['getStartConnectInfo'](),_0x3e936a=_0x1be106['getEndConnectInfo'](),_0xa78f0b=(_0x301e50==null?void 0x0:_0x301e50[_0xce7687(0xfc)])===_0x37fd62,_0x484753=_0x7f2912({'unitId':_0xe1bae3,'subUnitId':_0x3d1aac,'drawingId':_0x2baa83}),_0x2b7ff3=_0x54783e[_0xce7687(0x1de)](_0x484753);if(!_0x2b7ff3)continue;let _0x274ee4=this[_0xce7687(0xcc)][_0xce7687(0x171)]({'unitId':_0xe1bae3,'subUnitId':_0x3d1aac,'drawingId':_0x2baa83});_0x274ee4!=null&&_0x274ee4[_0xce7687(0x10c)]&&(_0x301e50&&_0x3e936a?this[_0xce7687(0x1df)](_0xe1bae3,_0x3d1aac,_0x2baa83,_0x1be106,_0x301e50,_0x3e936a,_0x2b7ff3):this[_0xce7687(0x146)](_0xe1bae3,_0x3d1aac,_0x2baa83,_0x1be106,_0xa78f0b?_0x301e50:_0x3e936a,_0xa78f0b,_0x274ee4,_0x2b7ff3));}}[_0x43dbb9(0x1df)](_0x5e3764,_0x4f008f,_0x16bc0b,_0xe99822,_0x35d622,_0x5818f5,_0x5e972e){const _0x2f67cb=_0x43dbb9;let _0x430abd=this['_unitId'],_0xd3f2a8=this[_0x2f67cb(0x250)];this[_0x2f67cb(0x238)]=_0x5e3764,this[_0x2f67cb(0x250)]=_0x4f008f;let _0x5e3ea8=this['_getConnectPointInfo'](_0x35d622),_0x4a0838=this['_getConnectPointInfo'](_0x5818f5);if(this[_0x2f67cb(0x238)]=_0x430abd,this['_subUnitId']=_0xd3f2a8,!_0x5e3ea8||!_0x4a0838)return;let _0x335de5=_0xe99822[_0x2f67cb(0x2ad)](),_0x3a6071=_0xde601c(_0x5e3ea8,_0x4a0838,_0x335de5);_0x3a6071&&_0xe99822[_0x2f67cb(0x299)](_0x3a6071);let _0x1270d3=_0x3de713(_0x3a6071,_0x335de5);_0x1270d3['lineType']!==_0x335de5&&_0xe99822[_0x2f67cb(0xae)](_0x1270d3[_0x2f67cb(0x153)]),_0xe99822['clearAdjustValue']();for(let [_0x433da3,_0x2566f8]of Object[_0x2f67cb(0xb5)](_0x1270d3['adjustValues']))_0xe99822[_0x2f67cb(0x12b)](_0x433da3,_0x2566f8);_0xe99822[_0x2f67cb(0x104)]({'width':_0x1270d3['worldRect'][_0x2f67cb(0xf7)],'height':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0x1dc)]}),_0x5e972e['transformByState']({'flipX':_0x1270d3['worldRect']['flipX'],'flipY':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0x219)],'left':_0x1270d3['worldRect'][_0x2f67cb(0x11f)],'top':_0x1270d3['worldRect']['top'],'width':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0xf7)],'height':_0x1270d3[_0x2f67cb(0x98)]['height'],'angle':_0x1270d3[_0x2f67cb(0x228)]}),_0xe99822[_0x2f67cb(0x130)]();}[_0x43dbb9(0x146)](_0x1307db,_0x203e1d,_0x164531,_0x2c7fba,_0x386c3c,_0x4c2afe,_0x4740ac,_0x44e8e7){const _0x245452=_0x43dbb9;let _0x1c7bdd=this[_0x245452(0x238)],_0x27a17a=this[_0x245452(0x250)];this[_0x245452(0x238)]=_0x1307db,this[_0x245452(0x250)]=_0x203e1d;let _0x325408=this[_0x245452(0x1e3)](_0x386c3c);if(this[_0x245452(0x238)]=_0x1c7bdd,this[_0x245452(0x250)]=_0x27a17a,!_0x325408)return;let {left:_0x1e7b6f=0x0,top:_0x7a0e81=0x0,width:_0x1b938d=0x0,height:_0x51721e=0x0,flipX:_0x22d041=!0x1,flipY:_0x55739e=!0x1}=_0x4740ac[_0x245452(0x10c)],_0x1f8dbc=_0x2c7fba[_0x245452(0x161)]();if(_0x1f8dbc['length']<0x2)return;let _0x3e87dd=new _0x427c58({'left':_0x1e7b6f,'top':_0x7a0e81,'width':_0x1b938d,'height':_0x51721e,'flipX':_0x22d041,'flipY':_0x55739e}),_0x5bece3=_0x4c2afe?_0x1f8dbc[_0x1f8dbc[_0x245452(0x15f)]-0x1]:_0x1f8dbc[0x0],_0x217bd5=_0x3e87dd[_0x245452(0x273)](_0x5bece3),_0x424c0e=_0x427c58['computeConnectorResizeLayout'](_0x217bd5,_0x325408[_0x245452(0x177)],!_0x4c2afe);_0x44e8e7[_0x245452(0x1c7)]({'flipX':_0x424c0e[_0x245452(0x98)]['flipX'],'flipY':_0x424c0e[_0x245452(0x98)][_0x245452(0x219)],'left':_0x424c0e['worldRect'][_0x245452(0x11f)],'top':_0x424c0e[_0x245452(0x98)]['top'],'width':_0x424c0e[_0x245452(0x98)][_0x245452(0xf7)],'height':_0x424c0e['worldRect'][_0x245452(0x1dc)],'angle':_0x424c0e[_0x245452(0x98)][_0x245452(0x2e1)]}),_0x44e8e7['makeDirty'](!0x0);}[_0x43dbb9(0x2d4)](){const _0x979bef=_0x43dbb9;this[_0x979bef(0x2bd)][_0x979bef(0x15f)]!==0x0&&(this[_0x979bef(0x2bd)][_0x979bef(0x200)](_0x33400c=>{const _0x24c956=_0x979bef;_0x33400c[_0x24c956(0x2dd)]();}),this['_connectorObjects']=[]);}[_0x43dbb9(0x235)](){const _0x77de82=_0x43dbb9;let _0x578143=this[_0x77de82(0xcd)][_0x77de82(0x240)](_0x2a1b28[_0x77de82(0x1e0)]);this[_0x77de82(0x11b)](_0x578143[_0x77de82(0x24d)](_0x46afa7(_0x2e016d=>_0x2e016d?_0x2e016d[_0x77de82(0x117)]['pipe'](_0x46afa7(_0x29ea3e=>{const _0x242736=_0x77de82;if(!_0x29ea3e)return _0x3149ab;let _0x3987dc=_0x2e016d[_0x242736(0xb8)](),_0x1aac9f=this['_renderManagerService'][_0x242736(0x19c)](_0x3987dc),_0x4f7d0e=_0x1aac9f==null?void 0x0:_0x1aac9f['scene'];return _0x4f7d0e?_0x236700(_0x4f7d0e):_0x3149ab;})):_0x3149ab))['subscribe'](_0x1b0adb=>{const _0x8e3659=_0x77de82;let _0x40b605=_0x1b0adb[_0x8e3659(0x84)]();this[_0x8e3659(0x11b)](_0x1b0adb['onPointerMove$'][_0x8e3659(0x17c)](_0x31cfd1=>{const _0x4f216f=_0x8e3659;this[_0x4f216f(0xa0)]&&this[_0x4f216f(0x14f)]&&this[_0x4f216f(0x2d4)]();})),this[_0x8e3659(0x11b)](_0x40b605['changeStart$'][_0x8e3659(0x28f)](_0x59b67f=>{const _0x9768db=_0x8e3659;let {objects:_0x2a27cc}=_0x59b67f;this[_0x9768db(0x2d4)](),_0x2a27cc!==null&&_0x2a27cc['size']===0x1&&_0x2a27cc['values']()[_0x9768db(0x166)]()[_0x9768db(0x26b)]instanceof Cn&&(this['_isDrawingShapePointDown']=!0x0);})),this['disposeWithMe'](_0x40b605[_0x8e3659(0x18c)][_0x8e3659(0x28f)](_0x95adc7=>{const _0x254757=_0x8e3659;this[_0x254757(0xa0)]&&this[_0x254757(0x2d4)]();})),this[_0x8e3659(0x11b)](_0x1b0adb[_0x8e3659(0x1bf)][_0x8e3659(0x17c)](()=>{const _0x5825d3=_0x8e3659;this[_0x5825d3(0xa0)]&&(this[_0x5825d3(0xa0)]=!0x1,this[_0x5825d3(0x120)]());})),this[_0x8e3659(0x11b)](_0x40b605[_0x8e3659(0x174)][_0x8e3659(0x28f)](()=>{const _0x2d1306=_0x8e3659;this[_0x2d1306(0x238)]&&this[_0x2d1306(0x250)]&&this[_0x2d1306(0x14f)]&&this['_drawingManagerService'][_0x2d1306(0x171)]({'unitId':this[_0x2d1306(0x238)],'subUnitId':this[_0x2d1306(0x250)],'drawingId':this[_0x2d1306(0x14f)]})&&(this[_0x2d1306(0x2d4)](),this[_0x2d1306(0x120)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x41f434=_0x43dbb9;this[_0x41f434(0x11b)](this['_drawingManagerService']['focus$']['subscribe'](_0x47af45=>{const _0x33c046=_0x41f434;if(_0x47af45[_0x33c046(0x15f)]===0x1){let _0x672dc2=_0x47af45[0x0];if(_0x672dc2['drawingType']===_0x5d03f6['DRAWING_SHAPE']){let _0xc0f9fd=this[_0x33c046(0x1ff)][_0x33c046(0x251)](_0x672dc2[_0x33c046(0x25d)],_0x672dc2['subUnitId'],_0x672dc2[_0x33c046(0x1a9)]);if(_0xc0f9fd&&_0x1f7f23(_0xc0f9fd[_0x33c046(0x2ad)]())){this[_0x33c046(0x14f)]=_0x672dc2[_0x33c046(0x1a9)],this[_0x33c046(0x238)]=_0x672dc2[_0x33c046(0x25d)],this[_0x33c046(0x250)]=_0x672dc2[_0x33c046(0x212)],this['_clearShapeConnectorHandlerObjects'](),this[_0x33c046(0x120)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x33c046(0x238)]=void 0x0,this[_0x33c046(0x250)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x41f434(0x11b)](this[_0x41f434(0xcc)][_0x41f434(0x105)][_0x41f434(0x28f)](_0x32f7e7=>{const _0x5e2831=_0x41f434;if(_0x32f7e7['length']===0x1){var _0x20f2bb;let _0x2951e5=_0x32f7e7[0x0],_0x4acad4=(_0x20f2bb=this[_0x5e2831(0xcc)][_0x5e2831(0x171)](_0x2951e5))==null?void 0x0:_0x20f2bb['drawingType'];_0x4acad4===_0x5d03f6[_0x5e2831(0x23a)]&&_0x2951e5['drawingId']===this[_0x5e2831(0x14f)]?(this[_0x5e2831(0x2d4)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x5e2831(0x14f)]&&_0x4acad4===_0x5d03f6[_0x5e2831(0x23a)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x2951e5[_0x5e2831(0x25d)],_0x2951e5[_0x5e2831(0x212)],_0x2951e5[_0x5e2831(0x1a9)]);}})),this[_0x41f434(0x11b)](this[_0x41f434(0xcc)][_0x41f434(0xd6)][_0x41f434(0x28f)](_0x4332b0=>{const _0x5bbd79=_0x41f434;for(let _0x1fe2bd of _0x4332b0){let {drawingId:_0x53632e}=_0x1fe2bd;if(this[_0x5bbd79(0x14f)]===_0x53632e){this[_0x5bbd79(0x13c)]();return;}}}));}[_0x43dbb9(0x22a)](_0x4d000d,_0x38c521,_0x44e553,_0x1f9a7a,_0x1f6fc5){const _0x1ff7a8=_0x43dbb9;var _0x3df2aa,_0x1d9a99;if(!this[_0x1ff7a8(0x22b)])return;let _0x1d617f=this[_0x1ff7a8(0x1e3)](_0x4d000d);if(!_0x1d617f)return;let _0x263ea4=this[_0x1ff7a8(0x16d)]?this[_0x1ff7a8(0x16d)]['worldPoint']:_0x38c521,_0x39ad2c=this[_0x1ff7a8(0x16d)]?this['_currentConnectionTarget'][_0x1ff7a8(0x2e1)]:this[_0x1ff7a8(0x244)](_0x1d617f[_0x1ff7a8(0x177)],_0x263ea4),_0x307919;if(this[_0x1ff7a8(0x16d)]){let _0x32b35d=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x1ff7a8(0x25d)],'subUnitId':this['_currentConnectionTarget'][_0x1ff7a8(0x212)],'drawingId':this[_0x1ff7a8(0x16d)][_0x1ff7a8(0xfc)]});if(_0x32b35d!=null&&_0x32b35d[_0x1ff7a8(0x10c)]){let {left:_0x83cd72=0x0,top:_0x1260d8=0x0,width:_0x2bc035=0x0,height:_0x1e6753=0x0,angle:_0x5516fb}=_0x32b35d[_0x1ff7a8(0x10c)];_0x307919=_0x15c292({'left':_0x83cd72,'top':_0x1260d8,'width':_0x2bc035,'height':_0x1e6753},_0x5516fb||0x0);}else _0x307919={'left':_0x263ea4['x'],'top':_0x263ea4['y'],'width':0x0,'height':0x0};}else _0x307919={'left':_0x263ea4['x'],'top':_0x263ea4['y'],'width':0x0,'height':0x0};let _0x1f8904={'point':_0x263ea4,'angle':_0x39ad2c,'bounds':_0x307919},_0x963e1e=_0x44e553?_0x1f8904:_0x1d617f,_0x232806=_0x44e553?_0x1d617f:_0x1f8904,_0x502051=this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x2ad)](),_0x3c1640=_0xde601c(_0x963e1e,_0x232806,_0x502051);_0x3c1640&&this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x299)](_0x3c1640);let _0x4122ec=_0x3de713(_0x3c1640,_0x502051);_0x4122ec[_0x1ff7a8(0x153)]!==_0x502051&&this[_0x1ff7a8(0x22b)][_0x1ff7a8(0xae)](_0x4122ec[_0x1ff7a8(0x153)]);for(let [_0x5ce22d,_0x491db9]of Object['entries'](_0x4122ec['adjustValues']))this['_activeShapeModel'][_0x1ff7a8(0x12b)](_0x5ce22d,_0x491db9);this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x104)]({'width':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0xf7)],'height':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x1dc)]}),_0x1f9a7a[_0x1ff7a8(0x1c7)]({'flipX':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x2d5)],'flipY':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x219)],'left':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x11f)],'top':_0x4122ec[_0x1ff7a8(0x98)]['top'],'width':_0x4122ec[_0x1ff7a8(0x98)]['width'],'height':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x1dc)],'angle':_0x4122ec[_0x1ff7a8(0x228)]}),_0x1f9a7a[_0x1ff7a8(0x15d)](!0x0);let _0x5421db=(_0x3df2aa=(_0x1d9a99=this[_0x1ff7a8(0x16d)])==null?void 0x0:_0x1d9a99[_0x1ff7a8(0x2c7)])==null?_0x38c521:_0x3df2aa;_0x1f6fc5[_0x1ff7a8(0x1c7)]({'left':_0x5421db['x']-_0x2bc8ec[_0x1ff7a8(0xa5)],'top':_0x5421db['y']-_0x2bc8ec[_0x1ff7a8(0xa5)]});}['_handleFreeEndpointMove'](_0x3780bb,_0x10fa4e,_0x2a2602,_0x5cb7f1,_0x5ce154){const _0x57c9ca=_0x43dbb9;var _0x4434f6,_0x5e82f0,_0xbdf99a,_0x484c9d;let _0x258126=(_0x4434f6=(_0x5e82f0=this[_0x57c9ca(0x16d)])==null?void 0x0:_0x5e82f0[_0x57c9ca(0x2c7)])==null?_0x3780bb:_0x4434f6,_0x2696bf=_0x427c58['computeConnectorResizeLayout'](_0x10fa4e,_0x258126,_0x2a2602);_0x5cb7f1[_0x57c9ca(0x1c7)]({'flipX':_0x2696bf[_0x57c9ca(0x98)]['flipX'],'flipY':_0x2696bf[_0x57c9ca(0x98)]['flipY'],'left':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x11f)],'top':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x16e)],'width':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0xf7)],'height':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x1dc)],'angle':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x2e1)]});let _0x4f42fe=(_0xbdf99a=(_0x484c9d=this[_0x57c9ca(0x16d)])==null?void 0x0:_0x484c9d[_0x57c9ca(0x2c7)])==null?_0x3780bb:_0xbdf99a;_0x5ce154[_0x57c9ca(0x1c7)]({'left':_0x4f42fe['x']-_0x2bc8ec[_0x57c9ca(0xa5)],'top':_0x4f42fe['y']-_0x2bc8ec[_0x57c9ca(0xa5)]});}[_0x43dbb9(0x1e3)](_0x354fce){const _0x52766c=_0x43dbb9;if(!this['_unitId']||!this[_0x52766c(0x250)])return null;let {shapeId:_0x3efe46,cxnIndex:_0x318ed0}=_0x354fce,_0x2f20e6=this[_0x52766c(0x1ff)]['getShapeModel'](this[_0x52766c(0x238)],this[_0x52766c(0x250)],_0x3efe46);if(!_0x2f20e6)return null;let _0x3fc848=this[_0x52766c(0xcc)][_0x52766c(0x171)]({'unitId':this['_unitId'],'subUnitId':this[_0x52766c(0x250)],'drawingId':_0x3efe46});if(!(_0x3fc848!=null&&_0x3fc848['transform']))return null;let {left:_0x5a1f72=0x0,top:_0x19d462=0x0,width:_0x361e87=0x0,height:_0x146e59=0x0,flipX:_0x293225=!0x1,flipY:_0x3766eb=!0x1,angle:_0x1d94c4}=_0x3fc848[_0x52766c(0x10c)];_0x2f20e6[_0x52766c(0x104)]({'width':_0x361e87,'height':_0x146e59});let _0x513808=_0x2f20e6['getConnectionSiteList']()[_0x52766c(0x218)](_0x11873f=>_0x11873f[_0x52766c(0x2b9)]===_0x318ed0);if(!_0x513808)return null;let _0x34b1f=_0x293225?_0x361e87-_0x513808['x']:_0x513808['x'],_0x2c0188=_0x3766eb?_0x146e59-_0x513808['y']:_0x513808['y'];if(_0x1d94c4!==0x0&&_0x1d94c4!=null){let _0x270696=_0x1d94c4*Math['PI']/0xb4,_0x5127de=Math[_0x52766c(0x109)](_0x270696),_0x3862d7=Math['sin'](_0x270696),_0x5c60bf=_0x361e87/0x2,_0x1f2e3a=_0x146e59/0x2,_0x44faa1=_0x34b1f-_0x5c60bf,_0x568920=_0x2c0188-_0x1f2e3a;_0x34b1f=_0x5c60bf+_0x44faa1*_0x5127de-_0x568920*_0x3862d7,_0x2c0188=_0x1f2e3a+_0x44faa1*_0x3862d7+_0x568920*_0x5127de;}_0x34b1f+=_0x5a1f72,_0x2c0188+=_0x19d462;let _0x367fde=_0x513808['ang']/0xea60;_0x293225&&(_0x367fde=0xb4-_0x367fde),_0x3766eb&&(_0x367fde=-_0x367fde),_0x367fde+=_0x1d94c4||0x0,_0x367fde=(_0x367fde%0x168+0x168)%0x168;let _0x220241=_0x15c292({'left':_0x5a1f72,'top':_0x19d462,'width':_0x361e87,'height':_0x146e59},_0x1d94c4||0x0);return{'point':{'x':_0x34b1f,'y':_0x2c0188},'angle':_0x367fde,'bounds':_0x220241};}['_calculateFreeEndpointAngle'](_0x10f73f,_0x22c2ef){const _0x34820e=_0x43dbb9;let _0x4e4797=_0x22c2ef['x']-_0x10f73f['x'],_0x31a2fd=_0x22c2ef['y']-_0x10f73f['y'];return Math[_0x34820e(0x2b8)](_0x4e4797)>=Math[_0x34820e(0x2b8)](_0x31a2fd)?_0x4e4797>=0x0?0xb4:0x0:_0x31a2fd>=0x0?0x10e:0x5a;}['_reset'](){const _0x4eba4b=_0x43dbb9;this[_0x4eba4b(0x14f)]=void 0x0,this[_0x4eba4b(0x238)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x4eba4b(0x2d4)]();}[_0x43dbb9(0x2dd)](){const _0x42e451=_0x43dbb9;this['_clearShapeConnectorHandlerObjects'](),super[_0x42e451(0x2dd)]();}};_r=Z([X(0x1,_0x4d9cac),X(0x2,_0x263af6),X(0x3,_0x324617),X(0x4,_0x7113c7),X(0x5,_0x450bf3(_0x26a217)),X(0x6,_0x450bf3(Tn)),X(0x7,_0x450bf3(mr))],_r);let vr=class extends _0x4760b3{constructor(_0x4a1300,_0x5ba818,_0x290008){const _0x15ef3e=_0x43dbb9;super(),this[_0x15ef3e(0x274)]=_0x4a1300,this['_drawingManagerService']=_0x5ba818,this[_0x15ef3e(0xf2)]=_0x290008,this['_initPrinting']();}[_0x43dbb9(0x203)](){const _0x4fffbe=_0x43dbb9;this[_0x4fffbe(0x11b)](this[_0x4fffbe(0x274)][_0x4fffbe(0x2c8)][_0x4fffbe(0x2a1)](this[_0x4fffbe(0x274)][_0x4fffbe(0x2c8)][_0x4fffbe(0x160)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2027ba,_0x4ccd29,_0x305303)=>{const _0xa4779c=_0x4fffbe;var _0x2a6d10;let {unitId:_0x129e37,subUnitId:_0x1948e7,scene:_0x232bb7,resourceCollector:_0x1729bb}=_0x4ccd29,_0x5335d6=(_0x2a6d10=this['_drawingManagerService'][_0xa4779c(0x266)](_0x129e37))==null?void 0x0:_0x2a6d10[_0x1948e7];return _0x5335d6==null||_0x5335d6[_0xa4779c(0x196)][_0xa4779c(0x200)](_0x2ba199=>{const _0x3bae4f=_0xa4779c;let _0x6b80fa=_0x5335d6[_0x3bae4f(0x1f8)][_0x2ba199];_0x6b80fa[_0x3bae4f(0x2cb)]===_0x5d03f6[_0x3bae4f(0x23a)]&&!_0x6b80fa[_0x3bae4f(0x237)]&&this[_0x3bae4f(0xf2)][_0x3bae4f(0x1e7)](_0x6b80fa,_0x232bb7,{'resourceCollector':_0x1729bb});}),_0x305303(_0x2027ba);}}));}};vr=Z([X(0x0,_0x450bf3(_0x11a3e2)),X(0x1,_0x324617),X(0x2,_0x450bf3(Q))],vr);let yr=class extends _0x4760b3{constructor(_0x46ff1f,_0x763a4,_0x474ea1){const _0x4c3d69=_0x43dbb9;super(),this[_0x4c3d69(0x285)]=_0x46ff1f,this[_0x4c3d69(0x1ca)]=_0x763a4,this[_0x4c3d69(0xb0)]=_0x474ea1,this[_0x4c3d69(0x2a3)]();}['_initPermission'](){const _0x714f25=_0x43dbb9;this[_0x714f25(0x11b)](this[_0x714f25(0x285)][_0x714f25(0x289)](_0x6c3cb4=>{const _0x56f836=_0x714f25;let _0x346b81,_0x2a8e94;if(_0x6c3cb4['id']===_0x28064d['id']||_0x6c3cb4['id']===_0xedfea5['id']||_0x6c3cb4['id']===_0x551591['id']){let _0x582dfc=_0x6c3cb4['params'];_0x346b81=_0x582dfc['unitId'],_0x2a8e94=_0x582dfc[_0x56f836(0x212)];}!_0x346b81||!_0x2a8e94||this[_0x56f836(0xb0)][_0x56f836(0x2e6)]({'workbookTypes':[_0x1b5cb2],'worksheetTypes':[_0x194b28]},_0x346b81,_0x2a8e94)||this[_0x56f836(0xb0)]['blockExecuteWithoutPermission'](this['_localeService']['t']('sheets-shape-ui.permission.editErr'));}));}};yr=Z([X(0x0,_0x450bf3(_0x4d9cac)),X(0x1,_0x450bf3(_0xa3717a)),X(0x2,_0x450bf3(_0xf21f2))],yr);let br=class extends _0x4760b3{constructor(_0x12fb19,_0x2381b7,_0x3221ff,_0x4e0c3b,_0x15906e,_0x3856a4,_0x1cffd9,_0x343686,_0x195da9,_0x43c76b,_0x55aaa4){const _0x23b6d6=_0x43dbb9;super(),this[_0x23b6d6(0xcd)]=_0x12fb19,this[_0x23b6d6(0x1d5)]=_0x2381b7,this[_0x23b6d6(0x119)]=_0x3221ff,this[_0x23b6d6(0x1ff)]=_0x4e0c3b,this[_0x23b6d6(0x1ca)]=_0x15906e,this['_commandService']=_0x3856a4,this[_0x23b6d6(0xcc)]=_0x1cffd9,this['_sheetCanvasPopManagerService']=_0x343686,this['_contextService']=_0x195da9,this[_0x23b6d6(0x87)]=_0x43c76b,this[_0x23b6d6(0x1a8)]=_0x55aaa4,Y(this,_0x23b6d6(0x2da),null),Y(this,'_activeShapeInfo',null),Y(this,'_isOpenedShapeEditPanel',!0x1),Y(this,_0x23b6d6(0xc9),0x0),Y(this,'_initializedShapePopupMenu',new Set()),Y(this,_0x23b6d6(0x1d3),[]),this[_0x23b6d6(0x208)](),this[_0x23b6d6(0x11b)](this[_0x23b6d6(0xcd)][_0x23b6d6(0x240)](_0x2a1b28[_0x23b6d6(0x1e0)])[_0x23b6d6(0x28f)](_0x528467=>{const _0x183fd1=_0x23b6d6;if(!_0x528467){var _0x46e082;(_0x46e082=this[_0x183fd1(0x2da)])==null||_0x46e082[_0x183fd1(0x2dd)]();return;}this[_0x183fd1(0x225)](_0x528467);})),this[_0x23b6d6(0xe7)](),this[_0x23b6d6(0x2eb)](),this['initShapePopupMenu'](),this[_0x23b6d6(0x11b)](this['_shapeTextEditingService'][_0x23b6d6(0x17b)][_0x23b6d6(0x28f)](_0x233d62=>{const _0x47f149=_0x23b6d6;_0x233d62&&this[_0x47f149(0x213)]();}));}[_0x43dbb9(0x208)](){const _0x1db833=_0x43dbb9;this[_0x1db833(0x119)][_0x1db833(0xb7)](Un);}['_registerShapeMenu'](){const _0x2cae90=_0x43dbb9;this[_0x2cae90(0xbf)][_0x2cae90(0x147)](_0x5d03f6[_0x2cae90(0x23a)],this[_0x2cae90(0x18d)][_0x2cae90(0x21d)](this)),this['_sheetCanvasPopManagerService'][_0x2cae90(0x290)](_0x5d03f6['DRAWING_SHAPE'],0x6,0x4);}[_0x43dbb9(0x2bc)](){const _0x12ae2e=_0x43dbb9;this[_0x12ae2e(0xcd)][_0x12ae2e(0x1a7)](_0x2a1b28['UNIVER_SHEET'])['forEach'](_0x26f5a6=>this[_0x12ae2e(0x225)](_0x26f5a6));}[_0x43dbb9(0x18d)](_0x5e2315,_0x18b7ed,_0x3b2177,_0x2f1c07){const _0x531022=_0x43dbb9;return[{'label':_0x531022(0x1d8),'index':0x0,'commandId':qn['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177},'disable':_0x2f1c07===_0x5d03f6[_0x531022(0xb3)]},{'label':_0x531022(0x24a),'index':0x1,'commandId':_0x10723d['id'],'commandParams':{'unitId':_0x5e2315,'drawings':[{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177,'drawingType':_0x2f1c07}]},'disable':!0x1},{'label':'sheets-shape-ui.hidePanel','index':0x2,'commandId':Kn['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipH','index':0x3,'commandId':_0x494ee9['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'flipH':!0x0},'disable':!0x1},{'label':_0x531022(0x13d),'index':0x4,'commandId':_0x494ee9['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'flipV':!0x0},'disable':!0x1},{'label':_0x531022(0x2d6),'index':0x4,'commandId':_0x59af59['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'rotate':0x5a},'disable':!0x1},{'label':_0x531022(0x9a),'index':0x4,'commandId':_0x59af59['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'rotate':-0x5a},'disable':!0x1},{'label':'sheets-shape-ui.toggleTextVertical','index':0x4,'commandId':_0x1e9400['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177},'disable':!0x1}];}['_getShapeInfo'](_0x24b19d,_0x5751d1,_0x7453ac){const _0x34e9a6=_0x43dbb9;let _0xca66c2=this[_0x34e9a6(0x1ff)]['getShapeTypeById'](_0x24b19d,_0x5751d1,_0x7453ac),_0x40afd6=this[_0x34e9a6(0x1ff)]['getShapeDataById'](_0x24b19d,_0x5751d1,_0x7453ac);return _0xca66c2!==void 0x0&&_0x40afd6!==void 0x0?{'shapeData':_0x40afd6,'shapeId':_0x7453ac,'shapeType':_0xca66c2,'unitId':_0x24b19d,'subUnitId':_0x5751d1,'version':this[_0x34e9a6(0xc9)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x106ebe){const _0x4291ec=_0x43dbb9;if(!_0x106ebe)return;let _0x10df5d=_0x106ebe[_0x4291ec(0xb8)]();this[_0x4291ec(0x87)]['has'](_0x10df5d)&&!this['_initializedShapePopupMenu']['has'](_0x10df5d)&&(this['_popupMenuListener'](_0x10df5d),this['_initializedShapePopupMenu']['add'](_0x10df5d));}['_clearPopups'](){const _0xa246b4=_0x43dbb9;this[_0xa246b4(0x1d3)][_0xa246b4(0x200)](_0x58c970=>_0x58c970['dispose']()),this['_disposePopups']['length']=0x0;}[_0x43dbb9(0x226)](_0x1d615c){const _0x5d516f=_0x43dbb9;var _0x4ce03a;let _0x5736b5=(_0x4ce03a=this[_0x5d516f(0x87)]['getRenderById'](_0x1d615c))==null?void 0x0:_0x4ce03a['scene'],_0x3610e9=_0x5736b5==null?void 0x0:_0x5736b5[_0x5d516f(0x84)]();!_0x5736b5||!_0x3610e9||(this[_0x5d516f(0x11b)](_0x3610e9[_0x5d516f(0x99)][_0x5d516f(0x28f)](()=>{const _0x3711b2=_0x5d516f;let _0x4ef2c2=_0x3610e9[_0x3711b2(0x2c9)]();if(this[_0x3711b2(0x213)](),this[_0x3711b2(0x191)]||_0x4ef2c2[_0x3711b2(0xb4)]>0x1)return;let _0x4423e2=_0x4ef2c2[_0x3711b2(0x133)]()[_0x3711b2(0x166)]()['value'];if(!_0x4423e2)return;let _0x7f16be=this[_0x3711b2(0xcc)][_0x3711b2(0x9f)](_0x4423e2[_0x3711b2(0xe8)]);if(!_0x7f16be||_0x7f16be['drawingType']!==_0x5d03f6['DRAWING_SHAPE'])return;let {unitId:_0x9b0a2,subUnitId:_0x4d4973,drawingId:_0x40f857,drawingType:_0x1d6596}=_0x7f16be,_0x133d97=this[_0x3711b2(0x2c5)](_0x9b0a2,_0x4d4973,_0x40f857);if(!_0x133d97)return;this['_contextService'][_0x3711b2(0x1c9)](_0x596494,!0x0);let _0x4817ad=this[_0x3711b2(0xbf)]['attachPopupToObject'](_0x4423e2,{'componentKey':An,'direction':_0x3711b2(0x20e),'offset':[0x0,_0x9bdae2],'extraProps':{'unitId':_0x9b0a2,'subUnitId':_0x4d4973,'drawingId':_0x40f857,'drawingType':_0x1d6596,'shapeType':_0x133d97['shapeType'],'shapeData':_0x133d97[_0x3711b2(0x106)]}});this[_0x3711b2(0x1d3)][_0x3711b2(0x241)](this[_0x3711b2(0x11b)](_0x4817ad)),this['_drawingManagerService'][_0x3711b2(0x27f)]()['find'](_0x4d8f2b=>_0x4d8f2b[_0x3711b2(0x25d)]===_0x9b0a2&&_0x4d8f2b['subUnitId']===_0x4d4973&&_0x4d8f2b['drawingId']===_0x40f857)||this[_0x3711b2(0xcc)][_0x3711b2(0x141)]([{'unitId':_0x9b0a2,'subUnitId':_0x4d4973,'drawingId':_0x40f857}]);})),this['disposeWithMe'](_0x3610e9[_0x5d516f(0xee)][_0x5d516f(0x28f)](()=>{const _0x1348cc=_0x5d516f;this[_0x1348cc(0x213)](),this[_0x1348cc(0x216)]['setContextValue'](_0x596494,!0x1),this[_0x1348cc(0xcc)][_0x1348cc(0x141)](null);})),this[_0x5d516f(0x11b)](_0x3610e9[_0x5d516f(0x18c)][_0x5d516f(0x28f)](()=>{const _0x42a488=_0x5d516f;this[_0x42a488(0x213)]();})),this[_0x5d516f(0x11b)](_0x3610e9['changeStart$'][_0x5d516f(0x28f)](()=>{const _0x370b36=_0x5d516f;this[_0x370b36(0x213)]();})));}[_0x43dbb9(0xe7)](){const _0x5a3b7b=_0x43dbb9;this[_0x5a3b7b(0x11b)](this['_commandService'][_0x5a3b7b(0x1f7)](_0x351bb8=>{const _0x111fcb=_0x5a3b7b;if(_0x351bb8['id']===qn['id']){let {unitId:_0x455d02,subUnitId:_0x55dc45,drawingId:_0x286405}=_0x351bb8[_0x111fcb(0x118)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x455d02,_0x55dc45,_0x286405),this[_0x111fcb(0x213)](),this[_0x111fcb(0x28e)]();}if(_0x351bb8['id']===Kn['id']&&(this[_0x111fcb(0x1ea)]=null,this['_closeShapeEditPanel']()),_0x351bb8['id']===_0x19b81c['id']){let {unitId:_0x4b0819,subUnitId:_0x4c282c,shapeId:_0x4363ca}=_0x351bb8[_0x111fcb(0x118)];if(this[_0x111fcb(0x1ea)]&&this[_0x111fcb(0x1ea)][_0x111fcb(0xfc)]===_0x4363ca){let _0xb9b86a=this[_0x111fcb(0x2c5)](_0x4b0819,_0x4c282c,_0x4363ca);_0xb9b86a&&(this['_shapeEditPanelVersion']+=0x1,_0xb9b86a[_0x111fcb(0x10f)]=this[_0x111fcb(0xc9)],this[_0x111fcb(0x1ea)]=_0xb9b86a,this[_0x111fcb(0x191)]&&this[_0x111fcb(0x28e)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x5a3b7b(0x231)][_0x5a3b7b(0x28f)](_0x1de67b=>{const _0x1ffb26=_0x5a3b7b;if(this[_0x1ffb26(0x191)]===!0x1)return;if(_0x1de67b[_0x1ffb26(0x15f)]===0x0){this[_0x1ffb26(0x1ea)]=null,this[_0x1ffb26(0x23d)]();return;}if(_0x1de67b['length']===0x1&&_0x1de67b[0x0]['drawingType']===_0x5d03f6[_0x1ffb26(0x23a)]&&(this[_0x1ffb26(0xc9)]+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0][_0x1ffb26(0x212)],_0x1de67b[0x0]['drawingId']),this[_0x1ffb26(0x1ea)])){this['_openShapeEditPanel']();return;}let _0x345947=_0x1de67b[_0x1ffb26(0xb6)](_0x1e7c20=>_0x1e7c20[_0x1ffb26(0x2cb)]===_0x5d03f6[_0x1ffb26(0x23a)]);if(_0x1de67b[_0x1ffb26(0x15f)]>0x1&&_0x345947['length']===_0x1de67b[_0x1ffb26(0x15f)]){if(this[_0x1ffb26(0xc9)]+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0]['subUnitId'],_0x1de67b[0x0][_0x1ffb26(0x1a9)]),this['_activeShapeInfo']){this[_0x1ffb26(0x28e)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0]['subUnitId'],_0x1de67b[0x0]['drawingId']),this[_0x1ffb26(0x1ea)]){this[_0x1ffb26(0x1ea)][_0x1ffb26(0x1b3)]=!0x0,this[_0x1ffb26(0x28e)]();return;}}this['_closeShapeEditPanel']();}));}[_0x43dbb9(0x28e)](){const _0x26cfaf=_0x43dbb9;this['_activeShapeInfo']&&(this[_0x26cfaf(0x2da)]=this[_0x26cfaf(0x1d5)][_0x26cfaf(0x291)]({'id':On,'header':{'title':this[_0x26cfaf(0x1ca)]['t'](_0x26cfaf(0xff))},'width':0x184,'children':{'label':On,...this[_0x26cfaf(0x1ea)]},'onClose':()=>{const _0x5338ce=_0x26cfaf;this[_0x5338ce(0xcc)]['focusDrawing'](null),this['_contextService'][_0x5338ce(0x1c9)](_0x596494,!0x1),this[_0x5338ce(0x2da)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x10c496=_0x43dbb9;this['_isOpenedShapeEditPanel']=!0x1,this[_0x10c496(0x1d5)][_0x10c496(0x25f)](On),this[_0x10c496(0x2da)]=null,this[_0x10c496(0x216)][_0x10c496(0x1c9)](_0x596494,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};br=Z([X(0x0,_0x7113c7),X(0x1,_0x450bf3(_0x10b5ac)),X(0x2,_0x44a75b),X(0x3,_0x450bf3(_0x26a217)),X(0x4,_0x450bf3(_0xa3717a)),X(0x5,_0x4d9cac),X(0x6,_0x324617),X(0x7,_0x450bf3(_0x15ebbe)),X(0x8,_0x21d773),X(0x9,_0x263af6),X(0xa,_0x450bf3(ir))],br);let $=class extends _0x33cfb9{constructor(_0x455ba2=Jn,_0x321202,_0x56aa4a,_0x42a527,_0x204e79){const _0x43179f=_0x43dbb9;super(),this[_0x43179f(0x9e)]=_0x455ba2,this['_injector']=_0x321202,this[_0x43179f(0x285)]=_0x56aa4a,this['_configService']=_0x42a527,this[_0x43179f(0x87)]=_0x204e79;let {..._0x2e6d11}=_0x2f8dd2({},Jn,this[_0x43179f(0x9e)]);this[_0x43179f(0x1d0)][_0x43179f(0x2df)](_0x43179f(0xe6),_0x2e6d11),this[_0x43179f(0xdd)]();}[_0x43dbb9(0x248)](){const _0x1a9e30=_0x43dbb9;_0xdf78a(this[_0x1a9e30(0x1f4)],[[br],[dr],[Q],[vr]]);}[_0x43dbb9(0x96)](){const _0x17b486=_0x43dbb9;this[_0x17b486(0x1f4)][_0x17b486(0x1bd)](br)[_0x17b486(0x2bc)]();}[_0x43dbb9(0xce)](){const _0x3c9b05=_0x43dbb9;[[mr],[Tn],[hr]]['forEach'](_0x3cb23d=>this['_injector'][_0x3c9b05(0x10b)](_0x3cb23d)),_0xdf78a(this[_0x3c9b05(0x1f4)],[[hr],[Tn]]),this['_renderManagerService'][_0x3c9b05(0xe1)](_0x2a1b28[_0x3c9b05(0x1e0)],[mr]),this[_0x3c9b05(0x87)][_0x3c9b05(0xe1)](_0x2a1b28[_0x3c9b05(0x1e0)],[sr]),this[_0x3c9b05(0x87)]['registerRenderModule'](_0x2a1b28[_0x3c9b05(0x1e0)],[_r]),this[_0x3c9b05(0x87)]['registerRenderModule'](_0x2a1b28['UNIVER_SHEET'],[lr]),this[_0x3c9b05(0x87)][_0x3c9b05(0xe1)](_0x2a1b28['UNIVER_DOC'],[ur]);}['onStarting'](){const _0x433500=_0x43dbb9;this[_0x433500(0x1f4)][_0x433500(0x10b)]([or]),this[_0x433500(0x1f4)][_0x433500(0x1bd)](or);let _0x1f1598=this['_injector'];[[br],[dr],[Q],[vr],[$n],[ir],[cr],[Pn],[yr]][_0x433500(0x200)](_0x3b15cc=>_0x1f1598[_0x433500(0x10b)](_0x3b15cc)),_0xdf78a(this[_0x433500(0x1f4)],[[br],[dr],[Q],[$n],[ir],[cr],[Pn],[yr]]);}[_0x43dbb9(0xdd)](){const _0x27dedb=_0x43dbb9;[Dn,gn,Kn,qn,Nn,En]['forEach'](_0xaeab53=>this[_0x27dedb(0x11b)](this[_0x27dedb(0x285)][_0x27dedb(0x123)](_0xaeab53)));}};Y($,_0x43dbb9(0x178),_0x2a1b28['UNIVER_SHEET']),Y($,_0x43dbb9(0x111),'SHEET_SHAPE_UI_PLUGIN'),Y($,_0x43dbb9(0x11e),Wn),Y($,_0x43dbb9(0x10f),Gn),$=Z([_0x8fb429(_0x2cef26,_0x5337ae,_0x56b5ca,_0x249942),X(0x1,_0x450bf3(_0x183eff)),X(0x2,_0x4d9cac),X(0x3,_0x1e0ba7),X(0x4,_0x263af6)],$);export{Un as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};