@univerjs-pro/sheets-shape-ui 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) 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/umd/index.js +1 -1
  62. package/lib/umd/locale/ar-SA.js +1 -1
  63. package/lib/umd/locale/ca-ES.js +1 -1
  64. package/lib/umd/locale/de-DE.js +1 -1
  65. package/lib/umd/locale/en-US.js +1 -1
  66. package/lib/umd/locale/es-ES.js +1 -1
  67. package/lib/umd/locale/fa-IR.js +1 -1
  68. package/lib/umd/locale/fr-FR.js +1 -1
  69. package/lib/umd/locale/id-ID.js +1 -1
  70. package/lib/umd/locale/it-IT.js +1 -1
  71. package/lib/umd/locale/ja-JP.js +1 -1
  72. package/lib/umd/locale/ko-KR.js +1 -1
  73. package/lib/umd/locale/pl-PL.js +1 -1
  74. package/lib/umd/locale/pt-BR.js +1 -1
  75. package/lib/umd/locale/ru-RU.js +1 -1
  76. package/lib/umd/locale/sk-SK.js +1 -1
  77. package/lib/umd/locale/vi-VN.js +1 -1
  78. package/lib/umd/locale/zh-CN.js +1 -1
  79. package/lib/umd/locale/zh-HK.js +1 -1
  80. package/lib/umd/locale/zh-TW.js +1 -1
  81. package/package.json +25 -25
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x714ef0=_0x5396;(function(_0x2bf5d2,_0x4d17ba){const _0x21edd2=_0x5396,_0x31d8db=_0x2bf5d2();while(!![]){try{const _0x3f0fdf=-parseInt(_0x21edd2(0x429))/0x1+parseInt(_0x21edd2(0x368))/0x2+-parseInt(_0x21edd2(0x2b0))/0x3*(parseInt(_0x21edd2(0x419))/0x4)+-parseInt(_0x21edd2(0x2fb))/0x5+parseInt(_0x21edd2(0x2f8))/0x6+-parseInt(_0x21edd2(0x360))/0x7*(-parseInt(_0x21edd2(0x2bd))/0x8)+-parseInt(_0x21edd2(0x1d1))/0x9;if(_0x3f0fdf===_0x4d17ba)break;else _0x31d8db['push'](_0x31d8db['shift']());}catch(_0x54b54f){_0x31d8db['push'](_0x31d8db['shift']());}}}(_0x4ab1,0x21809));import{FormulaShapeAnimationController as _0xb6a9b5,MobileShapeEditorService as _0x9eb493,SHAPE_CHANGE_PICKER_COMPONENT as _0x549e13,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xbe6416,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x571bee,ShapeEditPanel as _0x624b40,ShapeFloatingToolbar as _0x40aecd,ShapeFloatingToolbarService as _0x21f7f2,ShapeFloatingToolbarToggleFactory as _0x5bad15,ShapeFormulaRibbonControl as _0x493081,ShapeGroupEnum as _0x2a0c3e,ShapePickerDropdown as _0x2b2e10,ShapePickerPanel as _0x3bf045,ShapeQuickStyleGallery as _0x10a63c,ShapeStyleRibbonControl as _0x52b5ae,ShapeTextEditorContainer as _0x430207,ShapeTextFloatMenuRenderControllerBase as _0x4a3283,ShapeTextFloatToolbar as _0xca529a,ShapeTextHyperLinkHoverController as _0x1a7486,ShapeTextHyperLinkInfo as _0x2c3aaf,ShapeTextHyperLinkPopupService as _0x26baa8,ShapeTextRibbonControl as _0x2a1de0,ToggleShapeFloatingToolbarOperation as _0x45fee0,UniverShapeEditorMobileUIPlugin as _0x16c905,UniverShapeEditorUIPlugin as _0x28f3b2,activateDrawingObject as _0x2179ed,bindRenderTransformerLifecycle as _0x2cfb50,buildShapeTextDataUpdate as _0x380e1e,clearActiveDrawingObjects as _0x156f61,createShapeTextHyperLinkRegions as _0x3e58b1,drawFormulaShapeAnimationLayers as _0x4a0ea2,getDrawingTypeNameKey as _0x20bb51,getTextModel as _0x109803,getTextStyle as _0x4f4448,normalizeShapeTextModel as _0x5587e4,plainShapeTextToDocumentData as _0x2287f9,prepareShapeTextDocumentData as _0x1c57ea,registerShapeFormatPainter as _0x3b4dfd,resolveFormulaShapeAutoFitSize as _0x19d060,resolveShapeContextualRibbonHostMode as _0x3bb4cc,resolveShapeTextDocumentPageHeight as _0x3d2b36,resolveShapeTextDocumentRenderLayout as _0x34246b,resolveShapeTextEditorBehaviorShapeData as _0x5d5ef9,resolveShapeTextEditorWrapStrategy as _0x1885b0,resolveShapeTextHyperLinkAt as _0x40b4a2,resolveShapeTextHyperLinkObject as _0x296a42,shouldAllowShapeTextEditorHostSizeShrink as _0x248a4d,shouldClipShapeTextDocument as _0x430642,useFormulaShapeToolbar as _0x1f34d3}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x5a67d0,ContextMenuGroup as _0x144ec7,ContextMenuPosition as _0x281ae1,FloatingObjectToolbarPosition as _0x2b4dd0,FormatPainterSessionService as _0x43a96f,IMenuManagerService as _0x308400,IRibbonService as _0x1dad42,ISidebarService as _0x3d8cd5,IconManager as _0x1567a8,MenuItemType as _0x507a55,MenuManagerPosition as _0x31bc17,RibbonInsertGroup as _0x3372cf,UndoRedoGroupService as _0x4605cf,UniverMobileUIPlugin as _0xdc088c,getMenuHiddenObservable as _0x1975c5,useDependency as _0x3bcf4c,useObservable as _0x54184f}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x2610e3,ImageSourceTypeEnum as _0x1a3351,ShapeArrowSizeEnum as _0x5c2abc,ShapeArrowTypeEnum as _0x2a1afb,ShapeDefaultConfig as _0x4945a0,ShapeFillEnum as _0x271926,ShapeLineTypeEnum as _0x560aad,ShapeModel as _0x573393,ShapeRenderModeEnum as _0x1a48ca,ShapeTypeEnum as _0xf1eb19,computeConnectorRouteLayout as _0x1469b5,getBasicShapeRotateBound as _0x4191f0,isConnectorShape as _0x4cb876,isCurvedConnectorShape as _0x179376,routeConnectorLineShape as _0x22d8a5}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x205d16,UniverShapeEditorPlugin as _0x2d5783,applyQuickStyleToShapeData as _0x368cae,cloneShapeDataForType as _0x56761c,createShapeFormulaDocument as _0x342a66,createShapeTextBoxShapeData as _0xa48a9d,getShapeQuickStylePreset as _0x3ceb76,getShapeQuickStyleType as _0x189f9a,resolveActiveShapeQuickStylePresetId as _0x555e02}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x166112,InsertSheetsShapeMutation as _0x269d0a,RemoveSheetsShapeMutation as _0x2506a4,SetShapeDrawingDataCommand as _0x2cc34c,SheetsShapeService as _0x5b8f71,ToggleSheetsShapeFlipCommand as _0x4b4814,UniverSheetsShapePlugin as _0x178f75,UpdateConnectorRelationCommand as _0x128516,UpdateLineShapeResizeCommand as _0x48cda4,UpdateSheetsShapeDataMutation as _0x197dab}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x426c14,CommandType as _0x4017c5,DependentOn as _0x542984,Disposable as _0xe29064,DisposableCollection as _0x5941cd,DocumentDataModel as _0x2a49c7,DrawingTypeEnum as _0x544f7a,FOCUSING_COMMON_DRAWINGS as _0x435760,FOCUSING_SHAPE_TEXT_EDITOR as _0xd91ec1,HorizontalAlign as _0x5d9043,ICommandService as _0x2b8a3e,IConfigService as _0x5f4811,IContextService as _0x3ae1e3,IImageIoService as _0x1fd21f,IPermissionService as _0x9a590e,IURLImageService as _0x427e79,IUndoRedoService as _0x335b8b,IUniverInstanceService as _0x1d15d2,Inject as _0x5c502f,Injector as _0x25a967,LocaleService as _0x30b59c,Plugin as _0x14d9ad,UniverInstanceType as _0x58aa7b,VerticalAlign as _0x4f4c88,createInternalEditorID as _0x47130c,generateRandomId as _0x2f2dbb,merge as _0x1a3e4c,registerDependencies as _0x5ee9a9,toDisposable as _0x128476,touchDependencies as _0x6cf6c}from'@univerjs/core';import{CopySheetCommand as _0x2b64f6,RemoveSheetCommand as _0x21d984,SheetInterceptorService as _0x2a88c5,SheetPermissionCheckController as _0x33b80c,SheetSkeletonService as _0x48e7a4,SheetsSelectionsService as _0x469c9d,UniverSheetsPlugin as _0x1b9900,WorkbookCopyPermission as _0x324600,WorkbookEditablePermission as _0xe0fab9,WorksheetCopyPermission as _0x51eb20,WorksheetEditPermission as _0x123e53,attachRangeWithCoord as _0x50939b,discreteRangeToRange as _0x5de548,getSheetCommandTarget as _0x510a30}from'@univerjs/sheets';import{IDrawingManagerService as _0x19d008,SetDrawingSelectedOperation as _0x2b2ec1,UniverDrawingPlugin as _0x3fbaa1,getDrawingShapeKeyByDrawingSearch as _0x562c30,getOrCreateDrawingCopyPlan as _0x16a868}from'@univerjs/drawing';import{CURSOR_TYPE as _0x141a72,Circle as _0x540920,DRAWING_OBJECT_LAYER_INDEX as _0x4232ac,DocumentSkeleton as _0x68ac11,DocumentViewModel as _0x5b1715,Documents as _0x36ba8c,IRenderManagerService as _0x1e1faa,Image as _0x230c76,RENDER_CLASS_TYPE as _0x61e19a,SHEET_VIEWPORT_KEY as _0x5b9251,Shape as _0x240da9,Transform as _0x5a3b07,UniverRenderEnginePlugin as _0x262fbb,Vector2 as _0x5be732}from'@univerjs/engine-render';import{COPY_TYPE as _0x22fdbb,ISheetClipboardService as _0x345ee2,PREDEFINED_HOOK_NAME as _0x205afc,SheetCanvasPopManagerService as _0x2373db,SheetPrintInterceptorService as _0x39aad2,SheetScrollManagerService as _0x4e89db,SheetSkeletonManagerService as _0x44086e,UniverSheetsMobileUIPlugin as _0x50669f,UniverSheetsUIPlugin as _0x1542ac,deriveStateFromActiveSheet$ as _0x5b4c60,getCurrentRangeDisable$ as _0x3afc35,getViewportByCell as _0xe31858}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x50fa27,EMPTY as _0x535914,Observable as _0x1bac00,map as _0x3fd006,merge as _0x252868,of as _0x12c65f,startWith as _0x293b44,switchMap as _0x1e4916}from'rxjs';import{DrawingCommonPanel as _0x5527d5,DrawingImageClipService as _0x1d70d0,DrawingRenderService as _0x596343,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x4fdf51,MobileObjectListPanel as _0x5174cb,OBJECT_LIST_FLOATING_SECTION_ID as _0x3904f4,ObjectListPanelBase as _0xd50128,UniverDrawingUIPlugin as _0x2cd028,getCurrentUnitInfo as _0x52a805,getObjectListPanelSectionIdForDrawingType as _0x286e3b,insertGroupObject as _0x2a3ac3}from'@univerjs/drawing-ui';import{MobileDropdown as _0x8991e2}from'@univerjs/design';import{Fragment as _0x1956c4,jsx as _0x230828,jsxs as _0x55ce9a}from'react/jsx-runtime';import{DrawingApplyType as _0x377ac1,ISheetDrawingService as _0x4ba6b3,RemoveSheetDrawingCommand as _0x3e89af,SetDrawingApplyMutation as _0x2221ab,SetDrawingArrangeCommand as _0x8e2df9,SetSheetDrawingCommand as _0x297360,UniverSheetsDrawingPlugin as _0x28c2e2,transformToAxisAlignPosition as _0x5c977a,transformToDrawingPosition as _0x33f6ee}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1b2df7}from'@univerjs-pro/license';import{DocInterceptorService as _0x18dd84,DocSelectionManagerService as _0x50e1f3,UniverDocsPlugin as _0x3444ed}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x3b5158,DocEventManagerService as _0x13e37b,DocRenderController as _0x14fc5b,DocSelectionRenderService as _0x533da4,UniverDocsUIPlugin as _0x4ebfbc}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x522516,SheetsDrawingGroupCopyPasteController as _0x5e793f,UniverSheetsDrawingMobileUIPlugin as _0x58b005,UniverSheetsDrawingUIPlugin as _0x33abc1}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x5d75f2,FlipHorizontalIcon as _0x4b0f8a,FlipVerticalIcon as _0x5e2243,MoveDownIcon as _0x178ad9,MoveUpIcon as _0x1ab950,ObjectLayersIcon as _0xe11253,ShapeFormatSettingIcon as _0x1496d5,TopmostIcon as _0x215261}from'@univerjs/icons';import{memo as _0x3aaaf3,useEffect as _0x5c63a2,useMemo as _0x23fcdc,useReducer as _0x3da1b7,useState as _0x2f8af9}from'react';function Er(_0x364107,_0x35d236){const _0x5730a7=_0x5396;let _0x152535={};for(let _0x4ef89a of Object[_0x5730a7(0x1a3)](_0x35d236)){let _0x552d61=_0x35d236[_0x4ef89a],_0x1c21e4=_0x364107[_0x4ef89a];_0x152535[_0x4ef89a]=_0x1c21e4===void 0x0?void 0x0:typeof _0x552d61==_0x5730a7(0x257)&&_0x552d61&&!Array[_0x5730a7(0x246)](_0x552d61)&&typeof _0x1c21e4=='object'&&_0x1c21e4&&!Array[_0x5730a7(0x246)](_0x1c21e4)?Er(_0x1c21e4,_0x552d61):_0x1c21e4;}return _0x152535;}function _0x5396(_0x5c0ca8,_0x48764a){_0x5c0ca8=_0x5c0ca8-0x15e;const _0x4ab1e3=_0x4ab1();let _0x5396d6=_0x4ab1e3[_0x5c0ca8];return _0x5396d6;}const K={'type':_0x4017c5[_0x714ef0(0x20c)],'id':_0x714ef0(0x38d),'handler':(_0x3ed849,_0x54eacb)=>{const _0x27b374=_0x714ef0;let _0x576f34=_0x3ed849['get'](_0x5b8f71),{unitId:_0xa7a9fc,subUnitId:_0x5f4246,shapeType:_0x483d53,shapeId:_0x4795a2,shapeData:_0x4c5383,replaceShapeData:_0x3d8104,oldShapeJSON:_0x1201ba}=_0x54eacb;if(!_0x576f34[_0x27b374(0x199)](_0xa7a9fc,_0x5f4246,_0x4795a2))return!0x1;let _0x345381=_0x3ed849['get'](_0x2b8a3e),_0x3b442d=_0x3ed849['get'](_0x335b8b),{oldShapeType:_0x293959,oldShapeData:_0x595432={}}=_0x1201ba,_0x284cc5=_0x3d8104?_0x595432:Er(_0x595432,_0x4c5383||{}),_0x1ab1fc={'id':_0x197dab['id'],'params':{'unitId':_0xa7a9fc,'subUnitId':_0x5f4246,'shapeId':_0x4795a2,'shapeType':_0x483d53,'shapeData':_0x4c5383,'replace':_0x3d8104}},_0x214d01={'id':_0x197dab['id'],'params':{'unitId':_0xa7a9fc,'subUnitId':_0x5f4246,'shapeId':_0x4795a2,'shapeType':_0x293959,'shapeData':_0x284cc5,'replace':_0x3d8104}};return _0x345381[_0x27b374(0x3ca)](_0x1ab1fc['id'],_0x1ab1fc[_0x27b374(0x387)])?(_0x3b442d[_0x27b374(0x1be)]({'unitID':_0xa7a9fc,'undoMutations':[_0x214d01],'redoMutations':[_0x1ab1fc]}),!0x0):!0x1;}};function Dr(_0x198721,_0x8b1110,_0xeaa61d,_0xcb99fa,_0x587996,_0x3f2231){const _0x336be7=_0x714ef0;let _0x55bd71={'unitId':_0x8b1110,'subUnitId':_0xeaa61d,'shapeId':_0xcb99fa,'shapeData':_0x3f2231,'oldShapeJSON':_0x587996};return _0x198721[_0x336be7(0x40b)](K['id'],_0x55bd71);}function Or(_0x74a600,_0x19324d,_0x7b8c39,_0x37c2f5,_0x4f1128,_0x2efd63){const _0x1e52c8=_0x714ef0;let _0x1b9b77={'unitId':_0x19324d,'subUnitId':_0x7b8c39,'shapeId':_0x37c2f5,'shapeData':_0x2efd63,'oldShapeJSON':_0x4f1128};return _0x74a600[_0x1e52c8(0x40b)](K['id'],_0x1b9b77);}function kr(_0x4bfbc7){'@babel/helpers - typeof';const _0x1d3391=_0x714ef0;return kr=typeof Symbol=='function'&&typeof Symbol[_0x1d3391(0x2db)]==_0x1d3391(0x3ef)?function(_0x11a6a6){return typeof _0x11a6a6;}:function(_0x516e0a){const _0x3716c9=_0x1d3391;return _0x516e0a&&typeof Symbol=='function'&&_0x516e0a[_0x3716c9(0x409)]===Symbol&&_0x516e0a!==Symbol[_0x3716c9(0x22c)]?_0x3716c9(0x3ef):typeof _0x516e0a;},kr(_0x4bfbc7);}function Ar(_0x36ca3e,_0x1d440d){const _0x38520b=_0x714ef0;if(kr(_0x36ca3e)!=_0x38520b(0x257)||!_0x36ca3e)return _0x36ca3e;var _0x2f6493=_0x36ca3e[Symbol[_0x38520b(0x2bb)]];if(_0x2f6493!==void 0x0){var _0x2cc971=_0x2f6493['call'](_0x36ca3e,_0x1d440d||_0x38520b(0x2e7));if(kr(_0x2cc971)!=_0x38520b(0x257))return _0x2cc971;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1d440d===_0x38520b(0x432)?String:Number)(_0x36ca3e);}function jr(_0x49d0e4){const _0x55e886=_0x714ef0;var _0x1bff42=Ar(_0x49d0e4,'string');return kr(_0x1bff42)==_0x55e886(0x3ef)?_0x1bff42:_0x1bff42+'';}function q(_0x5cda28,_0x563ea4,_0x3be3ef){const _0x1b47e7=_0x714ef0;return(_0x563ea4=jr(_0x563ea4))in _0x5cda28?Object[_0x1b47e7(0x1fe)](_0x5cda28,_0x563ea4,{'value':_0x3be3ef,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cda28[_0x563ea4]=_0x3be3ef,_0x5cda28;}function Mr(_0x255ff6,_0x3d4cc4,_0x1fd22d){const _0x17945c=_0x714ef0;let _0x414f32={..._0x3d4cc4,'dataModel':{..._0x3d4cc4[_0x17945c(0x186)]??{},..._0x1fd22d?{'doc':_0x1fd22d}:null}},_0x351bb5=_0x5d5ef9(_0x255ff6,_0x414f32),_0x1e9e53=_0x1885b0(_0x351bb5);return{'clip':_0x430642(_0x351bb5,_0x1e9e53),'wrapStrategy':_0x1e9e53};}var J=class extends _0x240da9{constructor(_0x395789,_0x223070){const _0x288b39=_0x714ef0;super(_0x395789,_0x223070),q(this,'_hyperLinkRegions',[]),q(this,'_props',void 0x0),q(this,_0x288b39(0x16d),new _0xb6a9b5(()=>this[_0x288b39(0x226)](!0x0),()=>this[_0x288b39(0x3ed)]())),q(this,_0x288b39(0x2e6),!0x0),q(this,_0x288b39(0x27d),_0x544f7a[_0x288b39(0x2c1)]),q(this,_0x288b39(0x1b5),!0x0),this[_0x288b39(0x34e)]={..._0x223070},this[_0x288b39(0x16d)]['setPresentation'](_0x223070['formulaPresentation'],_0x223070[_0x288b39(0x37c)]!==!0x1),this[_0x288b39(0x306)](),this[_0x288b39(0x3ed)]();}[_0x714ef0(0x306)](){const _0x1f976e=_0x714ef0;this[_0x1f976e(0x2c8)][_0x1f976e(0x212)](_0x35f616=>{const _0x2f409c=_0x1f976e;this[_0x2f409c(0x16b)](_0x35f616);});}[_0x714ef0(0x3b4)](_0xf01693){const _0x3c9b99=_0x714ef0;this[_0x3c9b99(0x34e)]['prstGeom']=_0xf01693;}[_0x714ef0(0x24e)](_0x3c8f13){const _0x2c09de=_0x714ef0;if(this[_0x2c09de(0x34e)]['isEditing'])return null;let _0x3c8ee5=this['getInverseCoord'](_0x3c8f13),{width:_0x4426f5,height:_0x38712e}=this[_0x2c09de(0x27e)]();return _0x40b4a2(this['_hyperLinkRegions'],{'x':(this[_0x2c09de(0x18d)]?-_0x3c8ee5['x']:_0x3c8ee5['x'])+_0x4426f5/0x2,'y':_0x3c8ee5['y']+_0x38712e/0x2});}[_0x714ef0(0x380)](_0x5d683f){const _0x14f769=_0x714ef0;this[_0x14f769(0x34e)]['isEditing']=_0x5d683f,this[_0x14f769(0x226)](!0x0);}[_0x714ef0(0x261)](_0x13d852,_0x4efde9=!0x0){const _0x19d28a=_0x714ef0;this[_0x19d28a(0x16d)][_0x19d28a(0x428)](_0x13d852,_0x4efde9),this[_0x19d28a(0x34e)][_0x19d28a(0x381)]=_0x13d852,this[_0x19d28a(0x3ed)](),this[_0x19d28a(0x226)](!0x0);}[_0x714ef0(0x3ed)](){const _0x18468c=_0x714ef0;let _0x434b8e=this[_0x18468c(0x34e)][_0x18468c(0x2e9)],_0x237be6=_0x434b8e[_0x18468c(0x33d)](),_0x11abb2=_0x5587e4(_0x237be6==null?void 0x0:_0x237be6[_0x18468c(0x186)]),_0x5e4c71=_0x11abb2==null?void 0x0:_0x11abb2[_0x18468c(0x32c)],_0x2852e1=this[_0x18468c(0x16d)][_0x18468c(0x1b2)]();if(!_0x5e4c71||_0x2852e1[_0x18468c(0x1c3)]===0x0)return;_0x434b8e[_0x18468c(0x2b8)]({'width':this[_0x18468c(0x253)],'height':this[_0x18468c(0x2d4)]});let _0x9fa737=_0x19d060({'documentData':_0x2852e1[_0x18468c(0x316)](_0x1cea70=>_0x342a66(_0x5e4c71,_0x1cea70)),'height':this['height'],'shapeData':_0x434b8e['getShapeData'](),'textRect':_0x434b8e['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x18468c(0x253)],'height':this[_0x18468c(0x2d4)]}),'width':this[_0x18468c(0x253)]});if(_0x9fa737){var _0x597479;this['resize'](_0x9fa737[_0x18468c(0x253)],_0x9fa737[_0x18468c(0x2d4)]),(_0x597479=this[_0x18468c(0x24c)]())==null||(_0x597479=_0x597479[_0x18468c(0x20e)]())==null||_0x597479['debounceRefreshControls']();}}get[_0x714ef0(0x277)](){const _0x3de7d9=_0x714ef0;return this['_props'][_0x3de7d9(0x277)];}get[_0x714ef0(0x3d0)](){return this['_props']['subUnitId'];}[_0x714ef0(0x16b)](_0x5e3423){const _0x130713=_0x714ef0;if(this[_0x130713(0x34e)][_0x130713(0x2cc)]==null||!this[_0x130713(0x2e6)])return;let {width:_0x74563f,height:_0x1d6893}=this,{width:_0x1d3bf3=0x0,height:_0x2a950a=0x0}=_0x5e3423[_0x130713(0x32a)],{left:_0x4b8d77=0x0,top:_0xa2b803=0x0,right:_0x53ac67=0x0,bottom:_0x480957=0x0}=this[_0x130713(0x34e)][_0x130713(0x2cc)],_0xeca028=_0x4b8d77,_0x20ae1a=_0xa2b803,_0x862f67=_0x53ac67,_0x5b404f=_0x480957,_0x217a4d=!0x1;if(_0x1d3bf3!==0x0&&_0x1d3bf3!==_0x74563f){let _0x4dd00f=_0x4b8d77/_0x1d3bf3,_0xe73a94=_0x53ac67/_0x1d3bf3;_0xeca028=_0x74563f*_0x4dd00f,_0x862f67=_0x74563f*_0xe73a94,_0x217a4d=!0x0;}if(_0x2a950a!==0x0&&_0x2a950a!==_0x1d6893){let _0x2d2244=_0xa2b803/_0x2a950a,_0x4f4c87=_0x480957/_0x2a950a;_0x20ae1a=_0x1d6893*_0x2d2244,_0x5b404f=_0x1d6893*_0x4f4c87,_0x217a4d=!0x0;}_0x217a4d&&this['setSrcRect']({'left':_0xeca028,'top':_0x20ae1a,'right':_0x862f67,'bottom':_0x5b404f});}[_0x714ef0(0x323)](_0x5ce644){const _0x5dcf91=_0x714ef0;this[_0x5dcf91(0x34e)][_0x5dcf91(0x2cc)]=_0x5ce644,this['makeDirty'](!0x0);}[_0x714ef0(0x29e)](_0xfcff69){const _0x3a8c52=_0x714ef0;this[_0x3a8c52(0x34e)][_0x3a8c52(0x333)]=_0xfcff69,this[_0x3a8c52(0x226)](!0x0);}set['transform'](_0x5f3493){this['_transform']=_0x5f3493;}get[_0x714ef0(0x29f)](){const _0x3df81e=_0x714ef0;this[_0x3df81e(0x23a)]||this[_0x3df81e(0x21e)]();let _0x7c20=this[_0x3df81e(0x23a)][_0x3df81e(0x3a0)]();return this[_0x3df81e(0x3a8)](_0x7c20);}get[_0x714ef0(0x2e9)](){const _0x29623f=_0x714ef0;return this[_0x29623f(0x34e)]['shapeModel'];}get['shapeId'](){const _0x3859a9=_0x714ef0;return this[_0x3859a9(0x34e)]['shapeId'];}get['classType'](){const _0x57021c=_0x714ef0;return _0x61e19a[_0x57021c(0x427)];}['_draw'](_0x1d297d,_0x587200,_0x5c4619,_0x94fef6){const _0x71aeab=_0x714ef0;let _0x5b0f28=this['_props'][_0x71aeab(0x2e9)];if(!_0x5b0f28||!_0x587200)return;let _0x177514=_0x5c4619??this['width'],_0x4f3d7a=_0x94fef6??this['height'],_0x5d65ec={'shapeType':_0x5b0f28[_0x71aeab(0x2fc)](),'width':_0x177514,'height':_0x4f3d7a},_0x4316d8={'renderMode':_0x1a48ca[_0x71aeab(0x2a4)],'oKey':this[_0x71aeab(0x266)],'image':this[_0x71aeab(0x34e)]['image'],'angle':this[_0x71aeab(0x2ae)]};_0x5b0f28[_0x71aeab(0x2b8)](_0x5d65ec),_0x1d297d[_0x71aeab(0x32b)]();let _0x3ac23b={'top':0x0,'left':0x0,'width':_0x177514,'height':_0x4f3d7a},_0xe16c36=_0x5b0f28[_0x71aeab(0x1a0)](_0x3ac23b);_0xe16c36?this['_renderWithCache'](_0x1d297d,_0xe16c36,_0x4226a6=>{const _0x1fec8d=_0x71aeab;_0x5b0f28[_0x1fec8d(0x2e4)](_0x4226a6,_0x3ac23b,_0x4316d8);}):(this[_0x71aeab(0x242)](),_0x5b0f28['render'](_0x1d297d,_0x3ac23b,_0x4316d8)),_0x1d297d['restore']();let _0x12d51a=_0x5b0f28['getShapeTextData'](),_0x3edf2b=_0x5b0f28[_0x71aeab(0x415)](_0x3ac23b),_0x3fdc87=_0x5b0f28['isLineShape']();if(_0x12d51a&&_0x3edf2b&&!_0x3fdc87){_0x1d297d[_0x71aeab(0x32b)](),this[_0x71aeab(0x1b4)]()[_0x71aeab(0x18d)]&&_0x1d297d[_0x71aeab(0x1d5)](-0x1,0x1);let _0x37c7e8=_0x177514/0x2,_0xaaac61=_0x4f3d7a/0x2;_0x1d297d[_0x71aeab(0x2a1)](-_0x37c7e8,-_0xaaac61),_0x1d297d[_0x71aeab(0x2f7)](),this[_0x71aeab(0x205)](_0x1d297d,_0x12d51a,_0x3edf2b),_0x1d297d[_0x71aeab(0x1eb)]();}}[_0x714ef0(0x41e)](_0x1e7932){}['_drawShapeText'](_0x26195a,_0x35f6b0,_0x1c5b69){const _0x14d908=_0x714ef0;var _0x5bf7ed;this[_0x14d908(0x339)]=[],!this[_0x14d908(0x34e)][_0x14d908(0x2d1)]&&(!((_0x5bf7ed=_0x35f6b0[_0x14d908(0x186)])!=null&&_0x5bf7ed[_0x14d908(0x32c)])&&'isRichText'in _0x35f6b0&&_0x35f6b0[_0x14d908(0x36a)]===!0x1?this['_drawSimpleText'](_0x26195a,_0x35f6b0,_0x1c5b69):this[_0x14d908(0x308)](_0x26195a,_0x35f6b0,_0x1c5b69));}['_drawSimpleText'](_0xfeafb,_0x5520df,_0x593e45){const _0x1a5eeb=_0x714ef0;this[_0x1a5eeb(0x308)](_0xfeafb,{..._0x5520df,'text':_0x5520df[_0x1a5eeb(0x281)]??'','dataModel':{'doc':_0x2287f9(_0x5520df,_0x1a5eeb(0x23f)+this[_0x1a5eeb(0x266)])}},_0x593e45);}[_0x714ef0(0x308)](_0x520e23,_0x6eee97,_0x5f151c){const _0x2299aa=_0x714ef0;_0x4a0ea2(_0x520e23,this[_0x2299aa(0x16d)],(_0x276d6b,_0x504887,_0x260e0b)=>{const _0x4bed5a=_0x2299aa;this[_0x4bed5a(0x3db)](_0x276d6b,_0x6eee97,_0x5f151c,_0x504887,_0x260e0b===_0x4bed5a(0x36d));});}['_drawRichTextLayer'](_0x1e2d4c,_0x25430c,_0x3aeff9,_0x29e7a4,_0x476c63){const _0x4a0d7e=_0x714ef0;let _0x345cbd=this['_props']['localeService'];if(!_0x25430c['dataModel']||!_0x345cbd)return;let _0x6507a1=_0x5587e4(_0x25430c['dataModel']);if(!_0x6507a1)return;let _0x5f4c66=_0x6507a1[_0x4a0d7e(0x32c)];if(!_0x5f4c66)return;let _0x3f0939=_0x342a66(_0x5f4c66,_0x29e7a4),_0x254fbd=_0x6507a1['va']??_0x4f4c88[_0x4a0d7e(0x264)],_0x546866=_0x6507a1['ha']??_0x5d9043['LEFT'],_0x495af2=Mr(this[_0x4a0d7e(0x34e)][_0x4a0d7e(0x2e9)][_0x4a0d7e(0x3c4)](),_0x25430c,_0x3f0939),_0x5fe9c3=_0x25430c[_0x4a0d7e(0x236)],_0x2e08eb=_0x1c57ea(_0x3f0939,{'isHorizontal':_0x5fe9c3!==!0x1,'textRect':_0x3aeff9,'verticalAlign':_0x254fbd,'horizontalAlign':_0x546866,'wrapStrategy':_0x495af2[_0x4a0d7e(0x293)]}),_0x40099e=new _0x2a49c7(_0x2e08eb),_0x5c9de2=new _0x5b1715(_0x40099e),_0x30d7ce=_0x68ac11['create'](_0x5c9de2,_0x345cbd);_0x30d7ce['calculate']();let _0x161355=_0x30d7ce[_0x4a0d7e(0x2ec)]()[_0x4a0d7e(0x19b)],_0x2f9ebe=_0x34246b({'contentHeight':_0x161355,'verticalAlign':_0x254fbd,'viewportHeight':_0x3aeff9['height']});_0x40099e[_0x4a0d7e(0x1fd)]({'pageSize':{'width':_0x5fe9c3===!0x1?_0x3aeff9['height']:_0x3aeff9[_0x4a0d7e(0x253)],'height':_0x3d2b36(_0x3f0939,_0x2f9ebe[_0x4a0d7e(0x239)])}}),_0x40099e[_0x4a0d7e(0x29c)]({'t':_0x2f9ebe[_0x4a0d7e(0x355)]}),_0x30d7ce[_0x4a0d7e(0x37b)]();let _0x51f5e8=new _0x36ba8c(_0x4a0d7e(0x41a)+this[_0x4a0d7e(0x266)],_0x30d7ce,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x51f5e8['resize'](_0x3aeff9[_0x4a0d7e(0x253)],_0x2f9ebe['contentHeight']),_0x1e2d4c['save'](),_0x1e2d4c[_0x4a0d7e(0x2ad)](_0x3aeff9[_0x4a0d7e(0x201)],_0x3aeff9['top']),_0x495af2[_0x4a0d7e(0x2e1)]&&(_0x1e2d4c[_0x4a0d7e(0x2f7)](),_0x1e2d4c[_0x4a0d7e(0x2fd)](0x0,_0x2f9ebe[_0x4a0d7e(0x233)],_0x3aeff9[_0x4a0d7e(0x253)],_0x2f9ebe[_0x4a0d7e(0x40a)]),_0x1e2d4c[_0x4a0d7e(0x2e1)]()),_0x2f9ebe[_0x4a0d7e(0x276)]&&_0x1e2d4c[_0x4a0d7e(0x2ad)](0x0,_0x2f9ebe[_0x4a0d7e(0x276)]),_0x51f5e8[_0x4a0d7e(0x3c2)](_0x1e2d4c),_0x476c63&&(this[_0x4a0d7e(0x339)]=_0x3e58b1(_0x51f5e8,{'left':_0x3aeff9[_0x4a0d7e(0x201)],'top':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe[_0x4a0d7e(0x276)]},_0x495af2['clip']?{'left':_0x3aeff9[_0x4a0d7e(0x201)],'right':_0x3aeff9['left']+_0x3aeff9[_0x4a0d7e(0x253)],'top':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe[_0x4a0d7e(0x233)],'bottom':_0x3aeff9[_0x4a0d7e(0x211)]+_0x2f9ebe['clipTop']+_0x2f9ebe[_0x4a0d7e(0x40a)]}:void 0x0)),_0x1e2d4c[_0x4a0d7e(0x1eb)](),_0x51f5e8[_0x4a0d7e(0x232)](),_0x30d7ce[_0x4a0d7e(0x232)](),_0x5c9de2[_0x4a0d7e(0x232)](),_0x40099e[_0x4a0d7e(0x232)]();}[_0x714ef0(0x2e4)](_0x5654f7,_0x18c16d,_0x3252b2=!0x1){const _0x20e743=_0x714ef0;if(!this[_0x20e743(0x206)])return this[_0x20e743(0x226)](!0x1),this;let {width:_0x34d149,height:_0x43f24f,left:_0x51946f,top:_0x1d5179}=this,_0x4da6b2=this['getRealBound']();if(_0x34d149=_0x4da6b2[_0x20e743(0x253)],_0x43f24f=_0x4da6b2[_0x20e743(0x2d4)],_0x51946f=_0x4da6b2[_0x20e743(0x201)],_0x1d5179=_0x4da6b2[_0x20e743(0x211)],this['isRender'](_0x18c16d)){let {top:_0xd610d2,left:_0xcf54c2,bottom:_0x4a2eb7,right:_0x3718d8}=_0x18c16d[_0x20e743(0x1cf)];if(_0x34d149+this[_0x20e743(0x166)]+_0x51946f<_0xcf54c2||_0x3718d8<_0x51946f||_0x43f24f+this[_0x20e743(0x166)]+_0x1d5179<_0xd610d2||_0x4a2eb7<_0x1d5179)return this;}let _0x394742=_0x51946f+_0x34d149/0x2,_0x197d36=_0x1d5179+_0x43f24f/0x2,_0x2e75e8=this['transform'][_0x20e743(0x231)]();if(this[_0x20e743(0x34e)][_0x20e743(0x2d1)]){let _0x29934f=this[_0x20e743(0x1b4)](),_0x1891d3=new _0x5a3b07();_0x1891d3[_0x20e743(0x41c)]({..._0x29934f}),_0x2e75e8=_0x1891d3[_0x20e743(0x231)]();}return _0x5654f7['save'](),this[_0x20e743(0x34e)][_0x20e743(0x2e9)][_0x20e743(0x195)]===!0x0||_0x5654f7[_0x20e743(0x29f)](_0x2e75e8[0x0],_0x2e75e8[0x1],_0x2e75e8[0x2],_0x2e75e8[0x3],_0x394742,_0x197d36),this['_draw'](_0x5654f7,_0x18c16d,_0x34d149,_0x43f24f),_0x5654f7[_0x20e743(0x1eb)](),this['makeDirty'](!0x1),this;}[_0x714ef0(0x304)](_0x5714a7){const _0x48472d=_0x714ef0;let {left:_0x82961a,top:_0x39bd28,width:_0x14522e,height:_0xc6ce51}=this[_0x48472d(0x27e)](),_0x569781=this[_0x48472d(0x29f)][_0x48472d(0x231)](),_0x1ef5a5=_0x82961a+_0x14522e/0x2,_0x4dd2fc=_0x39bd28+_0xc6ce51/0x2,_0x356e2d=new _0x5a3b07([_0x569781[0x0],_0x569781[0x1],_0x569781[0x2],_0x569781[0x3],_0x1ef5a5,_0x4dd2fc]),_0x3b4c02=this[_0x48472d(0x20a)]();return(this[_0x48472d(0x3eb)]&&(_0x3b4c02==null?void 0x0:_0x3b4c02[_0x48472d(0x3d6)])===_0x61e19a[_0x48472d(0x240)]?_0x3b4c02[_0x48472d(0x2dc)][_0x48472d(0x196)](_0x356e2d):_0x356e2d)[_0x48472d(0x265)]()[_0x48472d(0x171)](_0x5714a7);}[_0x714ef0(0x2f9)](_0x5f47b1){const _0x5b7ac8=_0x714ef0;let {left:_0x47f21c,top:_0x237d8d,width:_0x792b47,height:_0xcf78af}=this[_0x5b7ac8(0x27e)](),_0x30cc98=_0x47f21c+_0x792b47/0x2,_0x405698=_0x237d8d+_0xcf78af/0x2,_0x4a4190=this[_0x5b7ac8(0x29f)][_0x5b7ac8(0x231)](),_0x3d2d23=new _0x5a3b07([_0x4a4190[0x0],_0x4a4190[0x1],_0x4a4190[0x2],_0x4a4190[0x3],_0x30cc98,_0x405698]),_0x189a29=this[_0x5b7ac8(0x20a)](),_0x1fe4b3=(this['isInGroup']&&(_0x189a29==null?void 0x0:_0x189a29[_0x5b7ac8(0x3d6)])===_0x61e19a['GROUP']?_0x189a29[_0x5b7ac8(0x2dc)]['multiply'](_0x3d2d23):_0x3d2d23)[_0x5b7ac8(0x265)]()[_0x5b7ac8(0x171)](_0x5f47b1),_0x22ef6a=_0x792b47/0x2,_0x9c2eb4=_0xcf78af/0x2,_0x5dd38e=this['_props'][_0x5b7ac8(0x2e9)];return _0x5dd38e&&_0x5dd38e[_0x5b7ac8(0x229)]()?_0x5dd38e[_0x5b7ac8(0x345)](_0x1fe4b3['x'],_0x1fe4b3['y'],_0x792b47,_0xcf78af):_0x1fe4b3['x']>=-_0x22ef6a-this[_0x5b7ac8(0x166)]/0x2&&_0x1fe4b3['x']<=_0x22ef6a+this['strokeWidth']/0x2&&_0x1fe4b3['y']>=-_0x9c2eb4-this[_0x5b7ac8(0x166)]/0x2&&_0x1fe4b3['y']<=_0x9c2eb4+this[_0x5b7ac8(0x166)]/0x2;}['dispose'](){const _0x43cdcf=_0x714ef0;this[_0x43cdcf(0x16d)]['dispose'](),this[_0x43cdcf(0x34e)][_0x43cdcf(0x2e9)]=null,super[_0x43cdcf(0x232)]();}},Nr=class extends _0x240da9{constructor(_0x5e96d8,_0x482c13){const _0x349804=_0x714ef0;super(_0x5e96d8,_0x482c13),q(this,_0x349804(0x295),null),q(this,_0x349804(0x392),null),q(this,_0x349804(0x180),null),q(this,_0x349804(0x3af),null),_0x482c13&&this[_0x349804(0x30a)](_0x482c13);}[_0x714ef0(0x423)](){const _0x14fddc=_0x714ef0;return{'unitId':this[_0x14fddc(0x180)],'subUnitId':this[_0x14fddc(0x3af)],'drawingId':this[_0x14fddc(0x295)]};}[_0x714ef0(0x30a)](_0x30326b){const _0x219177=_0x714ef0;_0x30326b[_0x219177(0x21d)]!==void 0x0&&(this['_shapeId']=_0x30326b[_0x219177(0x21d)]),_0x30326b[_0x219177(0x2a3)]!==void 0x0&&(this['_adjName']=_0x30326b[_0x219177(0x2a3)]),_0x30326b[_0x219177(0x277)]!==void 0x0&&(this[_0x219177(0x180)]=_0x30326b['unitId']),_0x30326b[_0x219177(0x3d0)]!==void 0x0&&(this[_0x219177(0x3af)]=_0x30326b[_0x219177(0x3d0)]),this[_0x219177(0x1b1)]({'width':_0x30326b[_0x219177(0x253)],'height':_0x30326b[_0x219177(0x2d4)]});}['_draw'](_0x331444){const _0x5385f9=_0x714ef0;_0x540920[_0x5385f9(0x385)](_0x331444,{'radius':_0x4945a0[_0x5385f9(0x17b)],'fill':_0x4945a0[_0x5385f9(0x1ff)],'stroke':_0x4945a0[_0x5385f9(0x31a)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x78e107,_0x290331){return function(_0x21b759,_0x23d6e5){_0x290331(_0x21b759,_0x23d6e5,_0x78e107);};}function _0x4ab1(){const _0x168665=['isEditing','isStartConnectorPoint','decorate','height','copyId','selectable','_isOpenedShapeEditPanel','MEDIA','_cxtHandlerPointerUp','getDrawingByParam','iterator','ancestorTransform','get','highlighted','_getDrawingRect','OPERATION','clip','permissionCheckWithoutRange','_clearCompletionFrame','render','bottom','_transformCalculateSrcRect','default','updateConnectionDetection','shapeModel','_index','_generateCopyPasteMutations','getActualSize','shape-editor-ui.arrange.backward','_shapes','close','getSheetBySheetId','Arrow','_baseShapeWidth','_groupCopyPasteController','_shapeEditPanelVersion','_initCommands','getBasicShapeRelation','beginPath','1440876RNhCRG','isHit','sheets-shape-ui.ribbon.shape-format.style-control','677965itgDuC','getShapeType','rect','@univerjs-pro/sheets-shape-ui','_shapeFormulaService','flipY','_getConnectPointInfo','calcAdjValues','title','getInverseCoord','_popupMenuListener','_init','data','_drawRichText','offsetY','setShapeProps','_openShapeEditPanel','_registerFeatureMenu','getCurrentTypeOfUnit$','_updateTransform','_generatePasteMutations','flatMap','_shapeUpdateListener','#4285f4','value','resetCursor','_getScrollInfo','map','formulaBinding','getStartConnectInfo','getSelectedObjectMap','adjHandleStroke','getAdjustValueByName','sheets-shape-ui.flipVertical','_visible','editingParams$','INSERT','changeStart$','setCanUseShapeClip','sheet.command.menu-insert-shape','setSrcRect','shape-editor-ui.arrange.front','hideContextualTab','_permissionService','None','ShapeIcon','getConnectionRelation','preValue','save','doc','computeStraightConnectorLayout','_updateImageAdjValues','_findNearestConnectionSite','index','_localeService','reverse','image','registerCommand','_targetShapeId','_initSelection','getConnectionInfo','drawing-ui.objectListPanel.empty','_hyperLinkRegions','visible$','parse','adjustValues','getShapeTextData','prstGeom','_registerDrawingMoveHandler','endConnectionDetection','sheets-shape-ui.ribbon.shape-format.arrange-front','_clearConnectionSites','refreshShapeFillImage','drawing-ui.objectListPanel.sectionFloating','isHitLine','getUnitType','SHAPE_TEXT','worldPoints','_generateCutPasteMutations','ang','shape-editor-ui.arrange.back','cxnPointFill','_registerImageShapeClipDelegate','_props','panel','_baseShapeTop','_initEvents','drawing-ui.objectListPanel.filterHidden','_closeShapeEditPanel','_attachAdjustEvent','marginTop','registerFeatureMenu','sectionFloating','pick','CUT','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.unlockAll','blockExecuteWithoutPermission','sheets-shape-ui.formatShape','FlipVerticalIcon','_drawingAddListener','14OUcwGK','drawing-ui.objectListPanel.typeNames.','hideInfoPopup','shape-editor-ui.toolbar.quickStyles','getPresentation','clip-adj-','shape-adjust-point-','onPointerUp$','516232nyNSGE','_menuManagerService','isRichText','_cxtHandlerPointerMove','shape-editor-ui.arrange.forward','current','sqrt','focusDrawing','extraProps','pipe','attachTransformerTo','sheets-shape-ui.flipHorizontal','entries','getInterceptPoints','FlipHorizontalIcon','mergeMenu','reduce','_clipService','redo','calculate','animateFormulaPresentation','_completionFrame','#1a73e8','fillImageSourceType','setEditing','formulaPresentation','_shapeService','fromChangeset','setCursor','drawWith','drawing-ui.objectListPanel.unlock','params','viewportScrollX','cxnPointRadius','_draggingConnectorId','PRINTING_COMPONENT_COLLECT','getDrawingDataForUnit','sheet.command.update-shape-data','sheets-shape-ui.shape-format.formula-ribbon-control','_clearFocusedShape','_isConnecting','drawing-ui.objectListPanel.filterAll','_adjName','transformVector2SceneCoord','stopPropagation','Large','localToWorld','onReady','getConnectorLinePoints','startY','UUID','setShouldShowAdjust','BUTTON','_moveConnectorWithShape','_sheetPrintInterceptorService','_activeShapeInfo','clone','startX','_clearPopups','_clearShapeConnectorHandlerObjects','getShapeDataById','sheet.menu.shape.flip-vertical','ObjectLayersIcon','SheetShapeTextEditorContainer','transformForAngle','_connectorObjects','connector-handler-','_sheetShapeAdjustController','sheets-shape-ui.objectListPanel.open','_initPrinting','_registerDrawingFocusChangeHandler','_subUnitId','color','CROSSHAIR','VIEW_MAIN','RIBBON','setPrstGeom','onStarting','getObject','shapeType','back','isHighlighted','remove$','onRendered','getBatchRemoveOp','addImageSourceCache','shapeData','_isImagePointerDown','filter','_currentConnectionTarget','draw','_updateAdjustControlPositions','getShapeData','_isHighlighted','version','sheet.shape.floating-toolbar','_sidebarService','_clearControls','syncExecuteCommand','stringify','DRAWING','_sheetBasicShapeConnectionPointController','_currentScene','relation','subUnitId','unit','getPermissionPoint','_activeTargetShapeId','buildClipPath','idMap','classType','sheets-shape-ui.ribbon.shape-format.arrange-backward','drawing-ui.objectListPanel.showAll','sheetViewStartRow','clip-','_drawRichTextLayer','getFocusDrawings','backward','_activeShapeId','_createCopyInfoByRange','_adjHandlerPointerMove','_cxnIndex','_formulaShapes','getConnectionSiteList','subscribe','_baseWidth','with','PictureFill','getEndConnectInfo','doc.image-clip.shape-picker.component','_getConnectionSiteAngle','isInGroup','includes','_applyFormulaAutoFitSize','next','symbol','SolidFill','registerClipDelegate','sheetViewStartColumn','sheet.operation.update-shape-type','_isStartConnectorPoint','focus$','fill','undo','refreshAdjustControls','sheets-shape-ui.imagePanel.crop.shape','changing$','getZoomRatio','BottomIcon','_canEdit','_handleConnectedEndpointPointerUp','REMOVE','run','horizontal','drawing-ui.objectListPanel.noSelection','clipByShape','_sheetDrawingService','presetId','Medium','copyType','sheets-shape-ui.insertShape','constructor','clipHeight','executeCommand','sheets-shape-ui.title','function','onDblclick$','onCommandExecuted','rotation','startArrow','div','_loadShapePictureFill','lineType','getShapeTextRect','_sheetDrawingShapeRenderController','_getShapeInfo','connection-site-','508Wyhtnk','shape-text-','sheets-shape-format-font-family-menu','composeMatrix','_registerGroupFeaturePasteHook','getDrawingPoints','_getOrCreateShapeModel','sheets-shape-ui.config','_insertingShapeKeys','_initMenu','getDrawingSearch','ShapeFormatSettingIcon','skeleton','sheet.shape.object-list.panel','SHAPE','setPresentation','56242CawEVQ','_onSavingEditorData$','asObservable','canvasElement','UPDATE','getEditing','drawing-ui.objectListPanel.hideAll','DRAWING_IMAGE','sheetTransform','string','componentKey','activeSheet$','_update','getSheetId','set','getCurrentSkeleton','some','setPrstGeomAdjValues','MoveUpIcon','_connectionSiteObjects','strokeWidth','sheets-shape-contextual-ribbon','_getImagePrstGeom','_createShapeAdjustControls','_getZoomRatio','_updateSrcRectByTransform','setFallbackVisible','_formulaAnimation','name','sheets-shape-ui.shape-format.style-ribbon-control','sheets-shape-ui.ribbon.shape-format.arrange-forward','applyPoint','shapeKey','enableObjectsEvent','permissionPointUpdate$','changeShapeType','_showConnectionSites','initShapePopupMenu','_urlImageService','clearAdjustValue','viewportScrollY','adjHandleSize','packageName','_lastEditingShapeKey','fillImageSource','onSavingEditorData$','_unitId','push','hidden','Line','point','forEach','dataModel','unsubscribe','_highlightedSiteIndex','drawing-ui.objectListPanel.moveForward','_formulaKey','setHighlighted','description','flipX','onPointerDown$','_registerOperations','_getSceneAndTransformerByDrawingSearch','_activeShapeAdjustPointList','gradientEndColor','_getShapeAdjustPointListById','DEFAULT_PASTE','isRenderLinePointsMode','multiply','removeLinePoints','drawingType','getShapeModel','abs','actualHeight','setAdjustValueByName','_addShapeConnectorHandlerObjects','_isDrawingShapePointDown','_insertShapes','getDrawingEffectBounds','_focusedDrawings','_contextService','keys','complete','getDrawingData','drawing-ui.objectListPanel.lockAll','_commandService','unregister','presentation','fontSize','sheets-shape-ui.editText','cos','getShapeTypeById','sheet.operation.open-mobile-shape-editor','_shapePopupMenuDisposable','getUnitId','transformByState','getAutoFitPresentations','_reset','getState','isDrawingObject','_registerComponents','_handleFreeEndpointMove','LEFT','getCurrentScrollState','SHEET','offsetX','cxnIndex','_executeConnectionCommand','pushUndoRedo','_copyInfo','_isStartAdjusting','getCanvasElement','refreshFormulaPresentation','length','_drawingRenderService','createControl$','_config','_getImageDrawingInfo','start','_handleFreeEndpointPointerUp','_initPermission','_currentUniverService','_sheetSkeletonService','popup','onerror','viewBound','custom','530559InofsN','attachPopupToObject','_addControl','scene','scale','clear','_editingParams$','_sheetInterceptorService','interceptor','_initialize','_registerMoveHandler','_sidebarDisposable','_initSheetChange','_rerouteConnectorLine','VIEW_MAIN_LEFT','drawing-ui.objectListPanel.details','trim','showContextualTab','OTHERS','sheets-shape-ui.quickStyles','clearControl$','targetShapeId','_registerFocusChangeHandler','_loadAndSetImage','StraightConnector1','_getShapeAdjustInfosById','restore','_hasReset','_configService','VIEW_MAIN_LEFT_TOP','_imageShapeClipController','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','type','getImage','sheets-shape-ui.ribbon.shape-format','getSkeleton','univer-box-border\x20univer-px-4\x20univer-text-sm','add$','find','values','_initEditingParams','indexOf','drawing-ui.objectListPanel.title','setCollapsedIds','updateDocumentStyle','defineProperty','adjHandleFill','hasDefault','left','_baseShapeLeft','_activeAdjustInfo','intercept','_drawShapeText','visible','disableObjectsEvent','getDrawingOKey','drawing-ui.objectListPanel.lock','getParent','_shapeRenderController','COMMAND','_activeShapeModel','getTransformer','_drawingManagerService','_injector','top','subscribeEvent','addObject','fillType','setConfig','#bcbcbc','getValue','getTransformerByCreate','sheets-shape-ui.objectListPanel.title','Rect','shape-editor-ui.toolbar.changeShape','drawing-ui.objectListPanel.nameInput','shapeId','_setTransForm','_componentManager','registerRenderModule','src','UNIVER_SHEET','_executeConnectedRouteResizeCommand','onPointerMove$','getVisible','makeDirty','_commandExecutedListener','startConnectionDetection','isLineShape','_context','sheet.operation.apply-shape-quick-style','prototype','_initCopyPaste','getOwnPropertyDescriptor','update$','_adjHandlerPointerUp','getMatrix','dispose','clipTop','VIEW_MAIN_TOP','drawing-ui.objectListPanel.unlockHint','isHorizontal','setContextValue','disposeWithMe','contentHeight','_transform','worldRect','_handleConnectedEndpointMove','#FFFFFF','SELECTOR','sheets-shape-text-','GROUP','getBentTypeFromPoints','_releaseRenderCache','_shapeFloatingToolbarService','SolidLine','vertical-center','isArray','_sheetCanvasPopManagerService','from','open','prstGeomAdjValues','_draw','getScene','registerFeaturePasteHook','resolveHyperLinkAt','forward','_sheetClipboardService','_sheetsShapeService','getObjectIncludeInGroup','width','URL','_hide','setShapeData','object','renderDrawingShape','_baseDrawingRect','_executeResizeCommand','_createControls','sheets-shape-ui.permission.editErr','_addShapeAdjustControl','add','1.3.1','clearAdjustControls','setFormulaPresentation','_baseShapeHeight','_baseTop','TOP','invert','oKey','sin','register','getDrawingOrder','getAdjustNames','_shapeTextEditingService','onSteady','drawing-ui.objectListPanel.sectionCanvas','_ribbonService','_findShapeAtPoint','_iconManager','FromArray','sheet.operation.open-shape-object-list-panel','animationEnabled','_imageIoService','_disposePopups','contentVerticalOffset','unitId','sheet.shape.text.float-menu','TopmostIcon','canvas','pluginName','extensionGroups','_drawingType','getRealBound','addClipboardHook','cxnPointStroke','text','currentAdjustValues','drawing-ui.objectListPanel.lockHint','getBatchUpdateOp','refreshTransform','sheet.operation.open-sheet-shape-format-panel','front','drawing-ui.objectListPanel.hide','SHEET_SHAPE_UI_PLUGIN','getCurrentUnitOfType','getDrawingEditable','_updateShapeAdjustControls','computeConnectorResizeLayout','activeAnObject','_sheetPermissionCheckController','drawingId','sheets-shape-ui.ribbon.shape-format.formula-control','drawing-ui.objectListPanel.moveBackward','wrapStrategy','_baseLeft','_shapeId','size','_baseHeight','sheets-shape-ui.deleteShape','engine','shapeText','_calculateFreeEndpointAngle','updateDocumentDataMargin','lineShapeId','setFillImage','transform','_handleConnectorPointerUp','translate','delete','adjName','Path','_addShapeConnectorHandlerObject','getUnit','_activeAdjustPointList','_resetState','drawing-ui.objectListPanel.dragToReorder','UNIVER_DOC','drawing-ui.objectListPanel.locate','_activeImageId','translateWithPrecision','angle','getRenderUnitById','2997uRbsau','getAdjustInfoByName','_clearShapeAdjustControls','sheets-shape-ui.ribbon.shape-format.arrange-back','worldPoint','updateLinePoints','_attachConnectorObjectEvent','objects','updateContext','axisAlignSheetTransform','cxnPointStrokeWidth','toPrimitive','sheet.menu.shape.flip-horizontal','66488qSmOad','_univerInstanceService','style','getCurrentLastSelection','DRAWING_SHAPE','_handleBasicShapeUpdateConnectorLineShape','getActiveViewportByCoord','sheet.shape.picker.component','_isShouldShowDrawingShapeAdjust','has','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','onTransformChange$','sectionCanvas','vertical','sheet.image-clip.shape-picker.component','srcRect','error','setOnSavingEditorData','_renderManagerService','changeEnd$'];_0x4ab1=function(){return _0x168665;};return _0x4ab1();}function X(_0x4d15c9,_0x292b2b,_0x43cd39,_0x2ee316){const _0x365e1b=_0x714ef0;var _0x1af127=arguments[_0x365e1b(0x1c3)],_0x19170c=_0x1af127<0x3?_0x292b2b:_0x2ee316===null?_0x2ee316=Object[_0x365e1b(0x22e)](_0x292b2b,_0x43cd39):_0x2ee316,_0x289b5d;if(typeof Reflect==_0x365e1b(0x257)&&typeof Reflect['decorate']==_0x365e1b(0x40d))_0x19170c=Reflect[_0x365e1b(0x2d3)](_0x4d15c9,_0x292b2b,_0x43cd39,_0x2ee316);else{for(var _0x34cd4b=_0x4d15c9[_0x365e1b(0x1c3)]-0x1;_0x34cd4b>=0x0;_0x34cd4b--)(_0x289b5d=_0x4d15c9[_0x34cd4b])&&(_0x19170c=(_0x1af127<0x3?_0x289b5d(_0x19170c):_0x1af127>0x3?_0x289b5d(_0x292b2b,_0x43cd39,_0x19170c):_0x289b5d(_0x292b2b,_0x43cd39))||_0x19170c);}return _0x1af127>0x3&&_0x19170c&&Object[_0x365e1b(0x1fe)](_0x292b2b,_0x43cd39,_0x19170c),_0x19170c;}let Z=class extends _0xe29064{constructor(_0x20eeaf,_0x18e8f4,_0xa1adc8,_0x574d95,_0x4e3a32,_0x55858a){const _0x1a9b71=_0x714ef0;super(),this[_0x1a9b71(0x20f)]=_0x20eeaf,this['_sheetsShapeService']=_0x18e8f4,this[_0x1a9b71(0x331)]=_0xa1adc8,this['_imageIoService']=_0x574d95,this[_0x1a9b71(0x178)]=_0x4e3a32,this[_0x1a9b71(0x2ff)]=_0x55858a,q(this,'_formulaShapes',new Map()),this[_0x1a9b71(0x238)](this[_0x1a9b71(0x2ff)]['presentationChanged$'][_0x1a9b71(0x3e4)](_0x1f0b6f=>{const _0x550e5a=_0x1a9b71;var _0x5c45f9;(_0x5c45f9=this[_0x550e5a(0x3e2)][_0x550e5a(0x2dd)](this[_0x550e5a(0x18a)](_0x1f0b6f['unitId'],_0x1f0b6f[_0x550e5a(0x3d0)],_0x1f0b6f[_0x550e5a(0x21d)])))==null||_0x5c45f9[_0x550e5a(0x185)](_0x379bf3=>_0x379bf3[_0x550e5a(0x261)](_0x1f0b6f[_0x550e5a(0x1a9)],_0x1f0b6f['animationEnabled']));})),this['disposeWithMe'](this['_drawingManagerService'][_0x1a9b71(0x3ba)][_0x1a9b71(0x3e4)](_0x1c6add=>{const _0x4d7497=_0x1a9b71;_0x1c6add[_0x4d7497(0x185)](_0x78cae=>{const _0x3c2e83=_0x4d7497;this[_0x3c2e83(0x2ff)][_0x3c2e83(0x1a8)]({'unitId':_0x78cae[_0x3c2e83(0x277)],'subUnitId':_0x78cae[_0x3c2e83(0x3d0)],'shapeId':_0x78cae[_0x3c2e83(0x290)]}),this[_0x3c2e83(0x3e2)][_0x3c2e83(0x2a2)](this['_formulaKey'](_0x78cae[_0x3c2e83(0x277)],_0x78cae['subUnitId'],_0x78cae[_0x3c2e83(0x290)]));});}));}[_0x714ef0(0x258)](_0x5dbfa2,_0x1a1e2c,_0x554eb6){const _0x58e2ce=_0x714ef0;let {transform:_0x154810,drawingType:_0x4be4f9,srcRect:_0x5dc492,prstGeom:_0x3192d8,groupId:_0x4abb7d,unitId:_0x235b42,subUnitId:_0x232851,drawingId:_0x1ef085,isMultiTransform:_0x824495,transforms:_0x1dad6d,hidden:_0x2f6b00,selectable:_0x1d7455}=_0x5dbfa2;if(_0x4be4f9!==_0x544f7a[_0x58e2ce(0x2c1)]||!this[_0x58e2ce(0x20f)]['getDrawingVisible']()||_0x154810==null)return;let _0x497890=this[_0x58e2ce(0x20f)][_0x58e2ce(0x28b)](),_0x41c68f=_0x824495&&_0x1dad6d?_0x1dad6d:[_0x154810],_0x19a65b=[];for(let _0xab8868 of _0x41c68f){let {left:_0x8827e,top:_0x47f2d9,width:_0xe58afa,height:_0x4026e3,angle:_0x1d57d5,flipX:_0x1e514c,flipY:_0x21cadc,skewX:_0xdce19,skewY:_0x4cb11b}=_0xab8868,_0x5ce724=_0x41c68f[_0x58e2ce(0x1fa)](_0xab8868),_0xee31e5=_0x562c30({'unitId':_0x235b42,'subUnitId':_0x232851,'drawingId':_0x1ef085},_0x824495?_0x5ce724:void 0x0),_0x237cb1=_0x1a1e2c['getObjectIncludeInGroup'](_0xee31e5);if(_0x237cb1!=null){let _0x52bf8b={'unitId':_0x235b42,'subUnitId':_0x232851,'shapeId':_0x1ef085};_0x237cb1 instanceof J&&this[_0x58e2ce(0x1c2)](_0x237cb1,_0x52bf8b),_0x237cb1[_0x58e2ce(0x1b1)]({'left':_0x8827e,'top':_0x47f2d9,'width':_0xe58afa,'height':_0x4026e3,'angle':_0x1d57d5,'flipX':_0x1e514c,'flipY':_0x21cadc,'skewX':_0xdce19,'skewY':_0x4cb11b});continue;}let _0x5506b4=this['_drawingManagerService'][_0x58e2ce(0x269)](_0x235b42,_0x232851),_0x2e6da3=_0x5506b4[_0x58e2ce(0x1fa)](_0x1ef085);if(_0x1a1e2c['getObjectIncludeInGroup'](_0xee31e5)||!this[_0x58e2ce(0x20f)]['getDrawingVisible']())continue;let _0x5bce8d=this[_0x58e2ce(0x251)][_0x58e2ce(0x199)](_0x235b42,_0x232851,_0x1ef085);if(!_0x5bce8d)continue;let _0x2cdaab=_0x4cb876(_0x5bce8d[_0x58e2ce(0x2fc)]())?{..._0xbe6416,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xbe6416,_0x3f8d3a=_0x5bce8d[_0x58e2ce(0x3c4)]()[_0x58e2ce(0x317)],_0x4c8e56={'unitId':_0x235b42,'subUnitId':_0x232851,'shapeId':_0x1ef085};_0x3f8d3a&&this[_0x58e2ce(0x2ff)][_0x58e2ce(0x268)](_0x4c8e56,_0x3f8d3a);let _0x1f30bb=new J(_0xee31e5,{..._0xab8868,'zIndex':_0x2e6da3===-0x1?_0x5506b4[_0x58e2ce(0x1c3)]-0x1:_0x2e6da3,'shapeModel':_0x5bce8d,'localeService':this[_0x58e2ce(0x331)],'shapeId':_0x1ef085,'unitId':_0x235b42,'subUnitId':_0x232851,'visible':_0x2f6b00!==!0x0,'evented':_0x1d7455!==!0x1,'formulaPresentation':_0x3f8d3a?this[_0x58e2ce(0x2ff)][_0x58e2ce(0x364)](_0x4c8e56):void 0x0,'animateFormulaPresentation':(_0x3f8d3a==null?void 0x0:_0x3f8d3a[_0x58e2ce(0x273)])!==!0x1,'transformerConfig':_0x2cdaab});if(_0x3f8d3a){let _0x14b55a=this[_0x58e2ce(0x18a)](_0x235b42,_0x232851,_0x1ef085),_0x4fc7d4=this[_0x58e2ce(0x3e2)]['get'](_0x14b55a)??new Set();_0x4fc7d4[_0x58e2ce(0x25e)](_0x1f30bb),this[_0x58e2ce(0x3e2)][_0x58e2ce(0x160)](_0x14b55a,_0x4fc7d4);}_0x1a1e2c[_0x58e2ce(0x213)](_0x1f30bb,_0x4232ac),_0x497890&&_0x1a1e2c[_0x58e2ce(0x372)](_0x1f30bb),_0x4abb7d&&_0x2a3ac3({'drawingId':_0x4abb7d,'unitId':_0x235b42,'subUnitId':_0x232851},_0x1f30bb,_0x1a1e2c,this[_0x58e2ce(0x20f)]),_0x3192d8!=null&&_0x1f30bb[_0x58e2ce(0x3b4)](_0x3192d8),_0x5dc492!=null&&_0x1f30bb[_0x58e2ce(0x323)](_0x5dc492);let _0x59d6d1=this[_0x58e2ce(0x413)](_0x1f30bb,_0x5bce8d[_0x58e2ce(0x3c4)]());if(_0x59d6d1){var _0x1816f7;_0x554eb6==null||(_0x1816f7=_0x554eb6['resourceCollector'])==null||_0x1816f7['add'](_0x59d6d1);}_0x19a65b[_0x58e2ce(0x181)](_0x1f30bb);}return _0x19a65b;}[_0x714ef0(0x18a)](_0x4ea6a0,_0x148c6f,_0x1d23f4){return _0x4ea6a0+'\x00'+_0x148c6f+'\x00'+_0x1d23f4;}['refreshFormulaPresentation'](_0x5ab4bb,_0x67bcdf){const _0x3a1723=_0x714ef0;let _0x3b40a3=this['_sheetsShapeService'][_0x3a1723(0x199)](_0x67bcdf[_0x3a1723(0x277)],_0x67bcdf[_0x3a1723(0x3d0)],_0x67bcdf[_0x3a1723(0x21d)]),_0x363d35=_0x3b40a3==null?void 0x0:_0x3b40a3['getShapeData']()[_0x3a1723(0x317)],_0x5de68b=this[_0x3a1723(0x18a)](_0x67bcdf['unitId'],_0x67bcdf[_0x3a1723(0x3d0)],_0x67bcdf[_0x3a1723(0x21d)]);if(_0x363d35){this['_shapeFormulaService']['register'](_0x67bcdf,_0x363d35);let _0x1f3a19=this[_0x3a1723(0x3e2)][_0x3a1723(0x2dd)](_0x5de68b)??new Set();_0x1f3a19[_0x3a1723(0x25e)](_0x5ab4bb),this[_0x3a1723(0x3e2)][_0x3a1723(0x160)](_0x5de68b,_0x1f3a19);}else{var _0x1369cc;this[_0x3a1723(0x2ff)][_0x3a1723(0x1a8)](_0x67bcdf),(_0x1369cc=this[_0x3a1723(0x3e2)][_0x3a1723(0x2dd)](_0x5de68b))==null||_0x1369cc[_0x3a1723(0x2a2)](_0x5ab4bb);}_0x5ab4bb[_0x3a1723(0x261)](_0x363d35?this[_0x3a1723(0x2ff)][_0x3a1723(0x364)](_0x67bcdf):void 0x0,(_0x363d35==null?void 0x0:_0x363d35[_0x3a1723(0x273)])!==!0x1);}[_0x714ef0(0x343)](_0x476ef2){const _0x251ff0=_0x714ef0;let _0x3ab68d=_0x476ef2[_0x251ff0(0x2e9)]['getShapeData'](),_0x255ae4=_0x3ab68d['fill'];!_0x255ae4||_0x255ae4[_0x251ff0(0x214)]!==_0x271926[_0x251ff0(0x3e7)]||!_0x255ae4['fillImageSource']?_0x476ef2['setFillImage'](void 0x0):this['_loadShapePictureFill'](_0x476ef2,_0x3ab68d);}[_0x714ef0(0x413)](_0x599ff5,_0x518666){const _0x51ada3=_0x714ef0;let _0x1faf8a=_0x518666['fill'];if(!_0x1faf8a||_0x1faf8a[_0x51ada3(0x214)]!==_0x271926[_0x51ada3(0x3e7)]||!_0x1faf8a[_0x51ada3(0x17e)])return;let _0x90897e=_0x1faf8a[_0x51ada3(0x17e)],_0x3422ae=_0x1faf8a[_0x51ada3(0x37f)]??_0x1a3351[_0x51ada3(0x254)],_0x2660c9=this[_0x51ada3(0x274)]['getImageSourceCache'](_0x90897e,_0x3422ae);if(_0x2660c9)_0x599ff5[_0x51ada3(0x29e)](_0x2660c9);else return this['_loadAndSetImage'](_0x599ff5,_0x90897e,_0x3422ae);}async[_0x714ef0(0x1e8)](_0xf1016,_0x19e4ee,_0x38a305){const _0x16ccf3=_0x714ef0;let _0x425f7f;try{if(_0x38a305===_0x1a3351[_0x16ccf3(0x39a)])_0x425f7f=await this['_imageIoService'][_0x16ccf3(0x1f2)](_0x19e4ee);else{if(_0x38a305===_0x1a3351[_0x16ccf3(0x254)])try{_0x425f7f=await this[_0x16ccf3(0x178)][_0x16ccf3(0x1f2)](_0x19e4ee);}catch{_0x425f7f=_0x19e4ee;}else _0x425f7f=_0x19e4ee;}}catch(_0x5253d5){console[_0x16ccf3(0x2cd)](_0x16ccf3(0x1f0),_0x5253d5);return;}await new Promise(_0x28d2ae=>{const _0x348b6f=_0x16ccf3;let _0x195380=new window['Image']();_0x195380['onload']=()=>{const _0x59e47c=_0x5396;this[_0x59e47c(0x274)][_0x59e47c(0x3bd)](_0x19e4ee,_0x38a305,_0x195380),_0xf1016[_0x59e47c(0x29e)](_0x195380),_0x28d2ae();},_0x195380[_0x348b6f(0x1ce)]=()=>{const _0x5eb421=_0x348b6f;console[_0x5eb421(0x2cd)](_0x5eb421(0x2c7),_0x19e4ee),_0x28d2ae();},_0x195380[_0x348b6f(0x221)]=_0x425f7f;});}};Z=X([Y(0x0,_0x19d008),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x5c502f(_0x30b59c)),Y(0x3,_0x1fd21f),Y(0x4,_0x427e79),Y(0x5,_0x5c502f(_0x205d16))],Z);let Pr=class extends _0xe29064{constructor(_0x4daa18,_0x5f0bf0,_0x175788,_0x30aab5,_0x4af219,_0x536aa9){const _0x9270d5=_0x714ef0;super(),this['_drawingManagerService']=_0x4daa18,this['_sheetsShapeService']=_0x5f0bf0,this[_0x9270d5(0x2cf)]=_0x175788,this[_0x9270d5(0x416)]=_0x30aab5,this[_0x9270d5(0x2be)]=_0x4af219,this['_commandService']=_0x536aa9,q(this,'_activeShapeId',null),q(this,'_unitId',null),q(this,_0x9270d5(0x3af),null),q(this,_0x9270d5(0x191),void 0x0),q(this,_0x9270d5(0x2ee),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x9270d5(0x350),0x0),q(this,_0x9270d5(0x2f2),0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x9270d5(0x1c0),!0x1),q(this,_0x9270d5(0x203),void 0x0),q(this,_0x9270d5(0x20d),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x9270d5(0x230),void 0x0),q(this,_0x9270d5(0x2c5),!0x1),this[_0x9270d5(0x3ae)](),this['_registerDrawingMoveHandler']();}[_0x714ef0(0x193)](_0x42c108,_0x2c815f,_0x585e15){const _0xcf9bd=_0x714ef0;let _0x39809b=this[_0xcf9bd(0x251)]['getShapeModel'](_0x42c108,_0x2c815f,_0x585e15);if(_0x39809b)return _0x39809b[_0xcf9bd(0x41e)]();}[_0x714ef0(0x260)](){const _0xfe9ff4=_0x714ef0;this[_0xfe9ff4(0x2b2)]();}[_0x714ef0(0x3f8)](){this['_updateShapeAdjustControls'](!0x0);}[_0x714ef0(0x39b)](_0x3f1afc){const _0x56ad3b=_0x714ef0;this[_0x56ad3b(0x2c5)]=_0x3f1afc;}[_0x714ef0(0x1ea)](_0x168ecb,_0x11413d,_0x522932,_0x17d806){const _0x359afb=_0x714ef0;let _0x2682d4=this[_0x359afb(0x251)]['getShapeModel'](_0x168ecb,_0x11413d,_0x522932);if(_0x2682d4)return _0x2682d4[_0x359afb(0x2b1)](_0x17d806);}[_0x714ef0(0x169)](_0x127d95=!0x1){const _0x5e9b7f=_0x714ef0;if(this[_0x5e9b7f(0x180)]===null||this[_0x5e9b7f(0x3af)]===null||this[_0x5e9b7f(0x3de)]===null)return;let _0x169053=this[_0x5e9b7f(0x2cf)]['getRenderUnitById'](this['_unitId']);if(!_0x169053||!_0x169053['with'](_0x44086e)['getCurrentSkeleton']())return;let {scene:_0x4233c4}=_0x169053,_0x152397={'unitId':this[_0x5e9b7f(0x180)],'subUnitId':this[_0x5e9b7f(0x3af)],'drawingId':this[_0x5e9b7f(0x3de)]},_0xd089e8=this[_0x5e9b7f(0x20f)]['getDrawingByParam'](_0x152397),{transform:_0x609599}=_0xd089e8;if(!_0x609599||_0xd089e8['drawingType']!==_0x544f7a[_0x5e9b7f(0x2c1)])return;let {left:_0x1302d7,top:_0x5dc07e,width:_0x2c7ecc,height:_0x5926e4,flipX:_0x3a918e,flipY:_0x5eea58,angle:_0x3412b7=0x0}=_0x609599;if(_0x1302d7===void 0x0||_0x5dc07e===void 0x0)return;if(_0x127d95){let _0x12425b=this[_0x5e9b7f(0x251)]['getShapeModel'](this[_0x5e9b7f(0x180)],this[_0x5e9b7f(0x3af)],this['_activeShapeId']);_0x12425b==null||_0x12425b[_0x5e9b7f(0x2b8)]({'width':_0x2c7ecc??0x0,'height':_0x5926e4??0x0}),this[_0x5e9b7f(0x191)]=_0x12425b==null?void 0x0:_0x12425b['getDrawingPoints']();}let _0x4b1782=this[_0x5e9b7f(0x191)];for(let _0x229286=0x0;_0x229286<_0x4b1782[_0x5e9b7f(0x1c3)];_0x229286++){let _0x2a887c=_0x4b1782[_0x229286],_0x2bac75=_0x2a887c['x'],_0x4887b5=_0x2a887c['y'];if(_0x3a918e&&(_0x2bac75=(_0x2c7ecc||0x0)-_0x2bac75),_0x5eea58&&(_0x4887b5=(_0x5926e4||0x0)-_0x4887b5),_0x3412b7!==0x0){let _0x41d95f=(_0x2c7ecc||0x0)/0x2,_0xb30b9d=(_0x5926e4||0x0)/0x2,_0x384df7=_0x3412b7*Math['PI']/0xb4,_0x44509f=Math[_0x5e9b7f(0x1ac)](_0x384df7),_0x35940f=Math['sin'](_0x384df7),_0xac6776=_0x2bac75-_0x41d95f,_0x399c8b=_0x4887b5-_0xb30b9d;_0x2bac75=_0x41d95f+(_0xac6776*_0x44509f-_0x399c8b*_0x35940f),_0x4887b5=_0xb30b9d+(_0xac6776*_0x35940f+_0x399c8b*_0x44509f);}let _0x1f3557={'x':_0x2bac75,'y':_0x4887b5,'adjName':_0x2a887c[_0x5e9b7f(0x2a3)]};this[_0x5e9b7f(0x25d)](_0x4233c4,_0x1f3557,_0x1f3557['adjName'],_0x1302d7,_0x5dc07e,this[_0x5e9b7f(0x180)],this[_0x5e9b7f(0x3af)]);}}['_updateShapeAdjustControls'](_0x56c8ad=!0x1){const _0x266ce8=_0x714ef0;_0x56c8ad&&(this[_0x266ce8(0x2b2)](),this[_0x266ce8(0x169)](_0x56c8ad));}[_0x714ef0(0x25d)](_0x129aab,_0x48b05a,_0x44b4a2,_0xbde929,_0x3d2f45,_0x545c8c,_0x498225){const _0x248cae=_0x714ef0;if(!this[_0x248cae(0x3de)])return;let _0x31968f=_0x129aab['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0x248cae(0x3de)]+'-'+_0x44b4a2);if(_0x31968f){_0x31968f['transformByState']({'left':_0x48b05a['x']+_0xbde929-_0x4945a0[_0x248cae(0x17b)],'top':_0x48b05a['y']+_0x3d2f45-_0x4945a0['adjHandleSize']});return;}let _0x4093d9={'left':_0x48b05a['x']+_0xbde929-_0x4945a0[_0x248cae(0x17b)],'top':_0x48b05a['y']+_0x3d2f45-_0x4945a0[_0x248cae(0x17b)],'adjName':_0x44b4a2,'shapeId':this[_0x248cae(0x3de)],'unitId':_0x545c8c,'subUnitId':_0x498225,'width':_0x4945a0['adjHandleSize']+0x8,'height':_0x4945a0[_0x248cae(0x17b)]+0x8,'zIndex':_0x4232ac+0x1,'evented':!0x0},_0x2a6888=new Nr(_0x248cae(0x366)+this[_0x248cae(0x3de)]+'-'+_0x44b4a2,_0x4093d9);this[_0x248cae(0x2ee)][_0x248cae(0x181)](_0x2a6888),this[_0x248cae(0x354)](_0x2a6888,_0x129aab,_0x44b4a2),_0x129aab[_0x248cae(0x213)](_0x2a6888,_0x4232ac+0x1);}[_0x714ef0(0x2b2)](){const _0x14c9f8=_0x714ef0;this['_shapes']['length']!==0x0&&(this[_0x14c9f8(0x2ee)]['forEach'](_0x8966e8=>{const _0x3f089a=_0x14c9f8;_0x8966e8[_0x3f089a(0x232)]();}),this[_0x14c9f8(0x2ee)]=[]);}['_updateAdjustControlPositions'](){const _0x39f9ef=_0x714ef0;this[_0x39f9ef(0x169)]();}['_getScrollInfo'](_0x536eae,_0x54f0fd){const _0xb0e6f2=_0x714ef0;var _0x2f7a46;let _0x3e4e2c={'x':0x0,'y':0x0};if(!_0x536eae||!_0x54f0fd)return _0x3e4e2c;let _0x34572a=this['_renderManagerService'][_0xb0e6f2(0x2af)](_0x536eae);if(!_0x34572a||!_0x34572a['with'](_0x44086e)[_0xb0e6f2(0x1f4)](_0x54f0fd))return _0x3e4e2c;let _0x4f76d8=_0x34572a[_0xb0e6f2(0x3e6)](_0x4e89db),_0x546898=_0x4f76d8==null?void 0x0:_0x4f76d8[_0xb0e6f2(0x1b9)]();if(!_0x546898)return _0x3e4e2c;let _0x48e9f3=(_0x2f7a46=this[_0xb0e6f2(0x2be)][_0xb0e6f2(0x2a6)](_0x536eae))==null?void 0x0:_0x2f7a46['getSheetBySheetId'](_0x54f0fd);if(!_0x48e9f3)return _0x3e4e2c;let _0x3e2a8f=_0xe31858(_0x546898[_0xb0e6f2(0x3d9)],_0x546898[_0xb0e6f2(0x3f2)],_0x34572a['scene'],_0x48e9f3);return _0x3e2a8f?{'x':_0x3e2a8f[_0xb0e6f2(0x388)],'y':_0x3e2a8f[_0xb0e6f2(0x17a)]}:_0x3e4e2c;}[_0x714ef0(0x16a)](_0x5c70a1,_0xb35381){const _0x297164=_0x714ef0;var _0x3d7427;let _0x32570d=(_0x3d7427=this[_0x297164(0x2be)][_0x297164(0x2a6)](_0x5c70a1))==null?void 0x0:_0x3d7427['getSheetBySheetId'](_0xb35381);return(_0x32570d==null?void 0x0:_0x32570d[_0x297164(0x3fb)]())??0x1;}['_attachAdjustEvent'](_0x589ac9,_0xae0a6a,_0x11af32){const _0x4d3d81=_0x714ef0;this['disposeWithMe'](_0x128476(_0x589ac9[_0x4d3d81(0x18e)][_0x4d3d81(0x212)]((_0x34641c,_0x512175)=>{const _0x253edb=_0x4d3d81;var _0x426876,_0x307755,_0x977880,_0x7c1e46;let _0x272ffc=_0x589ac9['getDrawingSearch']();this[_0x253edb(0x203)]=this[_0x253edb(0x1ea)](_0x272ffc['unitId'],_0x272ffc[_0x253edb(0x3d0)],_0x272ffc[_0x253edb(0x290)],_0x11af32),this[_0x253edb(0x20d)]=this[_0x253edb(0x251)][_0x253edb(0x199)](_0x272ffc['unitId'],_0x272ffc[_0x253edb(0x3d0)],_0x272ffc['drawingId']);let _0x1bc2c3=this['_drawingManagerService'][_0x253edb(0x2da)]({'unitId':this['_unitId'],'subUnitId':this[_0x253edb(0x3af)],'drawingId':this['_activeShapeId']}),{transform:_0x483b55}=_0x1bc2c3;if(_0x483b55){let {left:_0xeefbf7,top:_0x2f4fa7,width:_0x417e62,height:_0xc14098}=_0x483b55;this[_0x253edb(0x202)]=_0xeefbf7||0x0,this[_0x253edb(0x350)]=_0x2f4fa7||0x0,this['_baseShapeWidth']=_0x417e62||0x0,this[_0x253edb(0x262)]=_0xc14098||0x0;}let _0x463d9b=!!((_0x426876=_0x1bc2c3[_0x253edb(0x29f)])!=null&&_0x426876[_0x253edb(0x18d)]),_0x59c72a=!!((_0x307755=_0x1bc2c3['transform'])!=null&&_0x307755['flipY']),_0x12c47d=((_0x977880=_0x1bc2c3[_0x253edb(0x29f)])==null?void 0x0:_0x977880[_0x253edb(0x2ae)])||0x0;this[_0x253edb(0x1c0)]=!0x0,_0xae0a6a[_0x253edb(0x207)]();let _0x6df414={...((_0x7c1e46=this[_0x253edb(0x203)])==null?void 0x0:_0x7c1e46[_0x253edb(0x282)])??{}};this['_adjHandlerPointerMove']=_0xae0a6a[_0x253edb(0x224)][_0x253edb(0x212)]((_0x5d7472,_0xa4bc8)=>{const _0x1cc328=_0x253edb;if(!this['_isStartAdjusting'])return;let {offsetX:_0x268c3a,offsetY:_0x5c416e}=_0x5d7472,_0x3a2b5a=this[_0x1cc328(0x203)];if(this[_0x1cc328(0x20d)]&&_0x3a2b5a){_0xae0a6a['disableObjectsEvent'](),_0xae0a6a[_0x1cc328(0x384)](_0x141a72[_0x1cc328(0x3b1)]);let _0x5a47ac={'left':0x0,'top':0x0,'width':this[_0x1cc328(0x2f2)],'height':this[_0x1cc328(0x262)]},_0x4d57d3=this[_0x1cc328(0x315)](this['_unitId'],this['_subUnitId']),_0x135954=this[_0x1cc328(0x16a)](this[_0x1cc328(0x180)],this['_subUnitId']),_0x5b5382=_0x268c3a/_0x135954+_0x4d57d3['x']-this['_baseShapeLeft'],_0x1d65b2=_0x5c416e/_0x135954+_0x4d57d3['y']-this[_0x1cc328(0x350)];if(_0x12c47d!==0x0){let _0x11953f=this['_baseShapeWidth']/0x2,_0x2c3fe4=this[_0x1cc328(0x262)]/0x2,_0x395d4e=_0x12c47d*Math['PI']/0xb4,_0x351e9c=Math[_0x1cc328(0x1ac)](_0x395d4e),_0x44b963=Math[_0x1cc328(0x267)](_0x395d4e),_0x3dd386=_0x5b5382-_0x11953f,_0x4938d1=_0x1d65b2-_0x2c3fe4;_0x5b5382=_0x11953f+(_0x3dd386*_0x351e9c+_0x4938d1*_0x44b963),_0x1d65b2=_0x2c3fe4+(-_0x3dd386*_0x44b963+_0x4938d1*_0x351e9c);}_0x463d9b&&(_0x5b5382=this['_baseShapeWidth']-_0x5b5382),_0x59c72a&&(_0x1d65b2=this[_0x1cc328(0x262)]-_0x1d65b2);let _0x3c18ee={'x':_0x5b5382,'y':_0x1d65b2},_0x51af81=this[_0x1cc328(0x20d)][_0x1cc328(0x302)](_0x5a47ac,_0x3c18ee,_0x3a2b5a,_0x463d9b,_0x59c72a);if(Object[_0x1cc328(0x1a3)](_0x51af81)[_0x1cc328(0x1c3)]===0x0)return;for(let [_0x172d8e,_0x27c1fc]of Object[_0x1cc328(0x374)](_0x51af81))this[_0x1cc328(0x20d)][_0x1cc328(0x19c)](_0x172d8e,_0x27c1fc);this[_0x1cc328(0x20d)]['updateContext']({'width':this[_0x1cc328(0x2f2)],'height':this[_0x1cc328(0x262)]});let _0x477d52=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x272ffc[_0x1cc328(0x277)],'subUnitId':_0x272ffc['subUnitId'],'drawingId':_0x272ffc[_0x1cc328(0x290)]});_0x477d52&&(this['_sheetDrawingShapeRenderController'][_0x1cc328(0x258)](_0x477d52,_0xae0a6a),this[_0x1cc328(0x191)]=this['_getShapeAdjustPointListById'](_0x272ffc[_0x1cc328(0x277)],_0x272ffc['subUnitId'],_0x272ffc[_0x1cc328(0x290)]),this[_0x1cc328(0x3c3)]());}_0xa4bc8['stopPropagation']();}),this[_0x253edb(0x230)]=_0xae0a6a[_0x253edb(0x367)][_0x253edb(0x212)]((_0x2e73e9,_0x2aa271)=>{const _0x56c8d6=_0x253edb;this[_0x56c8d6(0x3e0)][_0x56c8d6(0x187)](),this['_adjHandlerPointerUp'][_0x56c8d6(0x187)](),_0xae0a6a[_0x56c8d6(0x314)]();let _0x37da9c=this[_0x56c8d6(0x203)];if(_0x37da9c){let _0x36242b=_0x272ffc[_0x56c8d6(0x277)],_0x34beaf=_0x272ffc[_0x56c8d6(0x3d0)],_0x3c6d6d=_0x272ffc['drawingId'],_0x2c71ad={};for(let _0x586c5f of Object[_0x56c8d6(0x1a3)](_0x37da9c['currentAdjustValues'])){var _0x417c37;let _0x4a961c=(_0x417c37=this[_0x56c8d6(0x20d)])==null?void 0x0:_0x417c37[_0x56c8d6(0x31b)](_0x586c5f);_0x4a961c!==void 0x0&&(_0x2c71ad[_0x586c5f]=_0x4a961c);}Object[_0x56c8d6(0x1a3)](_0x2c71ad)['length']>0x0&&Dr(this[_0x56c8d6(0x1a7)],_0x36242b,_0x34beaf,_0x3c6d6d,{'oldShapeData':{'adjustValues':_0x6df414}},{'adjustValues':_0x2c71ad});}this[_0x56c8d6(0x203)]=void 0x0,this[_0x56c8d6(0x20d)]=void 0x0,this[_0x56c8d6(0x1c0)]=!0x1,_0x2aa271[_0x56c8d6(0x394)](),_0xae0a6a[_0x56c8d6(0x173)]();}),_0x512175[_0x253edb(0x394)]();})));}[_0x714ef0(0x33f)](){const _0x5b781f=_0x714ef0;let _0x569577=this[_0x5b781f(0x2be)][_0x5b781f(0x30d)](_0x58aa7b[_0x5b781f(0x222)]);this['disposeWithMe'](_0x569577[_0x5b781f(0x371)](_0x1e4916(_0x132ffa=>_0x132ffa?_0x132ffa['activeSheet$'][_0x5b781f(0x371)](_0x1e4916(_0x5eab1b=>{const _0x560f43=_0x5b781f;if(!_0x5eab1b)return _0x535914;let _0x20da37=_0x132ffa[_0x560f43(0x1b0)](),_0x59d21f=this[_0x560f43(0x2cf)][_0x560f43(0x2af)](_0x20da37),_0x596293=_0x59d21f==null?void 0x0:_0x59d21f[_0x560f43(0x1d4)];return _0x596293?_0x12c65f(_0x596293):_0x535914;})):_0x535914))[_0x5b781f(0x3e4)](_0x393941=>{const _0x383de7=_0x5b781f;let _0x18d4a7=_0x393941[_0x383de7(0x218)]();this['disposeWithMe'](_0x393941[_0x383de7(0x224)]['subscribeEvent'](()=>{const _0x19044c=_0x383de7;this[_0x19044c(0x2c5)];})),this['disposeWithMe'](_0x18d4a7[_0x383de7(0x320)][_0x383de7(0x3e4)](_0x33323e=>{const _0x3a1eb0=_0x383de7;let {objects:_0x5beb4f}=_0x33323e;this['_createShapeAdjustControls'](),_0x5beb4f!==null&&_0x5beb4f[_0x3a1eb0(0x296)]===0x1&&_0x5beb4f[_0x3a1eb0(0x1f8)]()[_0x3a1eb0(0x3ee)]()[_0x3a1eb0(0x313)]instanceof J&&this[_0x3a1eb0(0x39b)](!0x0);})),this[_0x383de7(0x238)](_0x18d4a7[_0x383de7(0x3fa)][_0x383de7(0x3e4)](()=>{const _0x2409a9=_0x383de7;this[_0x2409a9(0x2c5)]&&this[_0x2409a9(0x2b2)]();})),this['disposeWithMe'](_0x393941[_0x383de7(0x367)][_0x383de7(0x212)](()=>{const _0x3c29c6=_0x383de7;this[_0x3c29c6(0x2c5)]&&(this['setShouldShowAdjust'](!0x1),this['_createShapeAdjustControls']());})),this[_0x383de7(0x238)](_0x18d4a7[_0x383de7(0x2d0)][_0x383de7(0x3e4)](()=>{const _0x32ca8e=_0x383de7;this[_0x32ca8e(0x180)]&&this[_0x32ca8e(0x3af)]&&this[_0x32ca8e(0x3de)]&&this[_0x32ca8e(0x20f)]['getDrawingByParam']({'unitId':this[_0x32ca8e(0x180)],'subUnitId':this[_0x32ca8e(0x3af)],'drawingId':this[_0x32ca8e(0x3de)]})&&(this[_0x32ca8e(0x191)]=this[_0x32ca8e(0x193)](this['_unitId'],this[_0x32ca8e(0x3af)],this[_0x32ca8e(0x3de)]),this[_0x32ca8e(0x3c3)]());}));}));}[_0x714ef0(0x3ae)](){const _0xee4d61=_0x714ef0;this[_0xee4d61(0x238)](this[_0xee4d61(0x1a7)][_0xee4d61(0x40f)](_0x3d0a6c=>{const _0x389a85=_0xee4d61;if(_0x3d0a6c['id']!==_0x197dab['id'])return;let {unitId:_0x2929cb,subUnitId:_0x5e80bf,shapeId:_0x2ffcc5}=_0x3d0a6c[_0x389a85(0x387)];_0x2929cb===this['_unitId']&&_0x5e80bf===this[_0x389a85(0x3af)]&&_0x2ffcc5===this[_0x389a85(0x3de)]&&this[_0x389a85(0x3f8)]();})),this[_0xee4d61(0x238)](this[_0xee4d61(0x20f)][_0xee4d61(0x3f5)]['subscribe'](_0x4c6438=>{const _0x31e65e=_0xee4d61;if(_0x4c6438['length']===0x1){let _0x562510=_0x4c6438[0x0];if(_0x562510['drawingType']===_0x544f7a[_0x31e65e(0x2c1)]&&this[_0x31e65e(0x2be)][_0x31e65e(0x346)](_0x562510[_0x31e65e(0x277)])===_0x58aa7b[_0x31e65e(0x222)]){this['_activeShapeId']=_0x562510[_0x31e65e(0x290)];let {unitId:_0x29ddf9,subUnitId:_0x39197c}=_0x562510;this[_0x31e65e(0x191)]=this[_0x31e65e(0x193)](_0x29ddf9,_0x39197c,this[_0x31e65e(0x3de)]),this[_0x31e65e(0x180)]=_0x29ddf9,this['_subUnitId']=_0x39197c,this[_0x31e65e(0x2b2)](),this['_createShapeAdjustControls']();return;}}this[_0x31e65e(0x3de)]=null,this[_0x31e65e(0x191)]=void 0x0,this[_0x31e65e(0x180)]=null,this['_subUnitId']=null,this[_0x31e65e(0x2b2)]();})),this[_0xee4d61(0x238)](this['_drawingManagerService'][_0xee4d61(0x22f)][_0xee4d61(0x3e4)](_0x13b412=>{const _0x34cd68=_0xee4d61;if(_0x13b412[_0x34cd68(0x1c3)]===0x1){var _0x10abc7;let _0x527719=_0x13b412[0x0];((_0x10abc7=this[_0x34cd68(0x20f)][_0x34cd68(0x2da)](_0x527719))==null?void 0x0:_0x10abc7[_0x34cd68(0x198)])===_0x544f7a['DRAWING_SHAPE']&&this[_0x34cd68(0x28c)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0xee4d61(0x3e4)](_0x27065e=>{const _0x2f1fbb=_0xee4d61;for(let _0x580592 of _0x27065e)this[_0x2f1fbb(0x3de)]===_0x580592[_0x2f1fbb(0x290)]&&(this[_0x2f1fbb(0x3de)]=null,this[_0x2f1fbb(0x191)]=void 0x0,this[_0x2f1fbb(0x180)]=null,this['_subUnitId']=null,this[_0x2f1fbb(0x2b2)]());}));}};Pr=X([Y(0x0,_0x19d008),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x5c502f(_0x1e1faa)),Y(0x3,_0x5c502f(Z)),Y(0x4,_0x1d15d2),Y(0x5,_0x2b8a3e)],Pr);const Fr={'id':'drawing.operation.set-drawing-active','type':_0x4017c5['OPERATION'],'handler':(_0x53860a,_0x3a1d35)=>{const _0x1d7c65=_0x714ef0;let _0x5ae3e9=_0x53860a[_0x1d7c65(0x2dd)](_0x19d008),_0x903fe8=_0x53860a[_0x1d7c65(0x2dd)](_0x1e1faa),_0x4bb80a=_0x53860a[_0x1d7c65(0x2dd)](Pr);if(_0x3a1d35==null)return!0x0;if(_0x3a1d35['length']>0x0){var _0x25792a;let _0x202749=(_0x25792a=_0x903fe8[_0x1d7c65(0x2af)](_0x3a1d35[0x0][_0x1d7c65(0x277)]))==null?void 0x0:_0x25792a[_0x1d7c65(0x1d4)];if(_0x202749){let {unitId:_0x1f3c58,subUnitId:_0x2bb593,drawingId:_0x1322c9}=_0x3a1d35[0x0],_0x1f8d04=_0x562c30({'unitId':_0x1f3c58,'subUnitId':_0x2bb593,'drawingId':_0x1322c9},void 0x0),_0x589eba=_0x202749['getObjectIncludeInGroup'](_0x1f8d04);if(_0x589eba){var _0x402cd1;(_0x402cd1=_0x903fe8[_0x1d7c65(0x2af)](_0x3a1d35[0x0][_0x1d7c65(0x277)]))==null||(_0x402cd1=_0x402cd1[_0x1d7c65(0x1d4)]['getTransformer']())==null||_0x402cd1[_0x1d7c65(0x28e)](_0x589eba);}}_0x5ae3e9['focusDrawing'](_0x3a1d35),_0x4bb80a[_0x1d7c65(0x39b)](!0x1);}return!0x0;}},Ir={'type':_0x4017c5[_0x714ef0(0x20c)],'id':_0x714ef0(0x322),'handler':async(_0x3e59fe,_0x214aac)=>{const _0x195e06=_0x714ef0;let _0x43a905=_0x510a30(_0x3e59fe[_0x195e06(0x2dd)](_0x1d15d2));if(!_0x43a905)return!0x1;let _0x603bb2=_0x3e59fe[_0x195e06(0x2dd)](_0x469c9d)[_0x195e06(0x2c0)]();if(!_0x603bb2)return!0x1;let _0x1776b4=_0x3e59fe[_0x195e06(0x2dd)](_0x2b8a3e),{unitId:_0x5102cb,subUnitId:_0x1468b3}=_0x43a905,{value:_0x26679f,enhanceParams:_0x489697}=_0x214aac,{range:_0x15d1cf}=_0x603bb2,_0x190b40={'unitId':_0x5102cb,'subUnitId':_0x1468b3,'shapeType':_0x26679f,'range':_0x15d1cf,'shapeId':_0x2f2dbb()};if(_0x489697){let _0x310dfd=_0x4cb876(_0x26679f),_0x70eafa=_0x26679f===_0xf1eb19[_0x195e06(0x21a)];_0x310dfd&&(_0x489697[_0x195e06(0x411)]||_0x489697['endArrow'])&&(_0x190b40[_0x195e06(0x3be)]={'ln':{'startArrow':_0x489697[_0x195e06(0x411)]?{'type':_0x2a1afb[_0x195e06(0x2f1)],'size':_0x5c2abc[_0x195e06(0x406)]}:void 0x0,'endArrow':_0x489697['endArrow']?{'type':_0x2a1afb[_0x195e06(0x2f1)],'size':_0x5c2abc[_0x195e06(0x395)]}:void 0x0}}),_0x70eafa&&(_0x489697['horizontal']||_0x489697[_0x195e06(0x2ca)])&&(_0x190b40[_0x195e06(0x3be)]=_0xa48a9d({'fill':{'fillType':_0x271926[_0x195e06(0x3f0)],'color':_0x195e06(0x23d)},'isHorizontal':!!_0x489697['horizontal'],'stroke':{'lineStrokeType':_0x560aad[_0x195e06(0x244)],'width':0x1,'color':_0x195e06(0x216)}}));}let _0x1e79ee=_0x1776b4['syncExecuteCommand'](_0x166112['id'],_0x190b40);return setTimeout(()=>{const _0x407ca2=_0x195e06;_0x1776b4[_0x407ca2(0x40b)](Fr['id'],[{'unitId':_0x5102cb,'subUnitId':_0x1468b3,'drawingId':_0x190b40['shapeId']}]);},0xc8),_0x1e79ee;}},Lr='sheet.shape.edit.panel',Rr=_0x714ef0(0x426),zr=_0x714ef0(0x3c7),Br=_0x714ef0(0x1f3),Vr=_0x47130c(_0x714ef0(0x347)),Hr=_0x714ef0(0x278),Ur={'id':_0x714ef0(0x272),'type':_0x4017c5[_0x714ef0(0x20c)],'handler':(_0xc0591d,_0x2a9381)=>{const _0x4610d3=_0x714ef0;let _0x28eebd=_0xc0591d[_0x4610d3(0x2dd)](_0x3d8cd5),_0x3f89bd=_0xc0591d[_0x4610d3(0x2dd)](_0x30b59c),_0x1b1768=_0xc0591d['get'](_0x1d15d2),_0x12f55b=_0xc0591d[_0x4610d3(0x2dd)](_0x2b8a3e);return _0x510a30(_0x1b1768)?(_0x2a9381==null?void 0x0:_0x2a9381[_0x4610d3(0x313)])===_0x4610d3(0x2ef)?(_0x28eebd['close'](Rr),!0x0):(_0x28eebd[_0x4610d3(0x249)]({'id':Rr,'header':{'title':_0x3f89bd['t'](_0x4610d3(0x219))},'children':{'label':Rr},'onClose':()=>{const _0x1673f5=_0x4610d3;_0x12f55b[_0x1673f5(0x3ca)](_0x2b2ec1['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x4017c5[_0x714ef0(0x2e0)],'id':_0x714ef0(0x286),'handler'(){return!0x0;}};function Gr(_0x3d1935){const _0x2bdec9=_0x714ef0;let _0x2746d7=_0x3d1935['get'](_0x19d008)[_0x2bdec9(0x3dc)](),_0xa739a0=_0x2746d7['length']===0x1?_0x2746d7[0x0]:null;if(!_0xa739a0||_0xa739a0[_0x2bdec9(0x198)]!==_0x544f7a['DRAWING_SHAPE'])return null;let _0x3e831e=_0x3d1935['get'](_0x5b8f71),_0x3c42fb=_0x3e831e[_0x2bdec9(0x1ad)](_0xa739a0[_0x2bdec9(0x277)],_0xa739a0['subUnitId'],_0xa739a0['drawingId']),_0x322ce7=_0x3e831e[_0x2bdec9(0x3a4)](_0xa739a0['unitId'],_0xa739a0[_0x2bdec9(0x3d0)],_0xa739a0[_0x2bdec9(0x290)]);return _0x3c42fb===void 0x0||!_0x322ce7?null:{'drawing':_0xa739a0,'shapeData':_0x322ce7,'shapeType':_0x3c42fb};}const Kr={'id':_0x714ef0(0x22b),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler':(_0x1d3672,_0x559c77)=>{const _0x38ed55=_0x714ef0;let _0x2db150=Gr(_0x1d3672),_0x54a61d=_0x3ceb76((_0x559c77==null?void 0x0:_0x559c77[_0x38ed55(0x405)])??(_0x559c77==null?void 0x0:_0x559c77[_0x38ed55(0x313)])??'');if(!_0x2db150||!_0x54a61d||_0x54a61d[_0x38ed55(0x1f1)]!==_0x189f9a(_0x2db150[_0x38ed55(0x3be)]))return!0x1;let _0x20727b=_0x368cae(_0x2db150[_0x38ed55(0x3be)],_0x54a61d);if(!_0x20727b)return!0x1;let {drawing:_0x1464eb}=_0x2db150;return _0x1d3672[_0x38ed55(0x2dd)](_0x2b8a3e)['executeCommand'](K['id'],{'unitId':_0x1464eb['unitId'],'subUnitId':_0x1464eb[_0x38ed55(0x3d0)],'shapeId':_0x1464eb['drawingId'],'shapeData':_0x20727b,'oldShapeJSON':{'oldShapeData':_0x2db150['shapeData']}});}},qr={'id':_0x714ef0(0x3f3),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler':(_0x40821b,_0x2dfe03)=>{const _0x4a28a2=_0x714ef0;let _0x2f3200=Gr(_0x40821b),_0x1514c3=(_0x2dfe03==null?void 0x0:_0x2dfe03['shapeType'])??(_0x2dfe03==null?void 0x0:_0x2dfe03['value']);if(!_0x2f3200||!_0x1514c3||_0x4cb876(_0x2f3200[_0x4a28a2(0x3b7)])||_0x4cb876(_0x1514c3))return!0x1;let _0x3b8210=_0x56761c(_0x2f3200[_0x4a28a2(0x3be)],_0x1514c3);if(!_0x3b8210)return!0x1;let {drawing:_0x1c22a7}=_0x2f3200;return _0x40821b[_0x4a28a2(0x2dd)](_0x2b8a3e)[_0x4a28a2(0x40b)](K['id'],{'unitId':_0x1c22a7[_0x4a28a2(0x277)],'subUnitId':_0x1c22a7[_0x4a28a2(0x3d0)],'shapeId':_0x1c22a7[_0x4a28a2(0x290)],'shapeType':_0x1514c3,'shapeData':_0x3b8210,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2f3200[_0x4a28a2(0x3b7)],'oldShapeData':_0x2f3200[_0x4a28a2(0x3be)]}});}};let Q=class extends _0xe29064{constructor(_0x251554,_0x827a0f){const _0x156f2a=_0x714ef0;super(),this[_0x156f2a(0x379)]=_0x251554,this['_drawingManagerService']=_0x827a0f,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x156f2a(0x321)](!0x0),this[_0x156f2a(0x238)]({'dispose':()=>this[_0x156f2a(0x379)][_0x156f2a(0x321)](!0x1)});}[_0x714ef0(0x34d)](){const _0x2168ad=_0x714ef0;let _0xd2dfe6=this[_0x2168ad(0x379)],_0x192fe4=new Map(),_0x34b800=_0xd2dfe6[_0x2168ad(0x3f1)]((_0x3a2e21,_0x11e7b,_0x27ae9e,_0x7b42ef,_0x1cb846)=>{const _0xaa213b=_0x2168ad;let _0x5652b9=_0x11e7b;if(_0x5652b9===_0xf1eb19[_0xaa213b(0x327)]||_0x11e7b===_0xaa213b(0x1d0))return!0x1;try{let _0x56155d=_0x192fe4['get'](_0x11e7b);return _0x56155d||(_0x56155d=new _0x573393(_0x5652b9,_0xaa213b(0x3da)+_0x11e7b),_0x192fe4['set'](_0x11e7b,_0x56155d)),_0x56155d[_0xaa213b(0x179)](),_0x1cb846&&Object[_0xaa213b(0x1a3)](_0x1cb846)[_0xaa213b(0x1c3)]>0x0&&_0x56155d['setShapeData']({'adjustValues':_0x1cb846},!0x0),_0x56155d[_0xaa213b(0x2b8)]({'width':_0x27ae9e,'height':_0x7b42ef}),_0x56155d[_0xaa213b(0x3d4)](_0x3a2e21,{'left':0x0,'top':0x0,'width':_0x27ae9e,'height':_0x7b42ef});}catch{return!0x1;}});this[_0x2168ad(0x238)](_0x34b800),this[_0x2168ad(0x238)]({'dispose':()=>_0x192fe4[_0x2168ad(0x1d6)]()});}[_0x714ef0(0x403)](_0x28613b,_0x18b566,_0x1def61,_0x4010fe,_0x200c30){const _0x5bddbe=_0x714ef0;let _0x123a6b=this[_0x5bddbe(0x20f)][_0x5bddbe(0x1a5)](_0x28613b,_0x18b566);if(!_0x123a6b[_0x1def61])return;let _0x1dd3b8={..._0x123a6b[_0x1def61],'prstGeom':_0x4010fe,'adjustValues':_0x200c30};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x1dd3b8]);}};Q=X([Y(0x0,_0x5c502f(_0x1d70d0)),Y(0x1,_0x5c502f(_0x19d008))],Q);const Jr=_0x714ef0(0x2c4),Yr=_0x714ef0(0x2cb);function Xr({onShapeClick:_0x3c4dec,excludeGroups:_0x3803fa}){return _0x230828(_0x3bf045,{'excludeGroups':_0x3803fa,'onShapeClick':_0x3c4dec,'scrollContainer':'parent'});}function Zr(){const _0x27a378=_0x714ef0;let _0x301669=_0x3bcf4c(_0x19d008),_0x5d7816=_0x3bcf4c(Q);return _0x230828(_0x2b2e10,{'buttonLabel':_0x27a378(0x3f9),'excludeGroups':[_0x2a0c3e['Line']],'onShapeClick':_0x31c95a=>{const _0xae6239=_0x27a378;let _0x28a3e7=_0x301669['getFocusDrawings']()['find'](_0x57c155=>_0x57c155[_0xae6239(0x198)]===_0x544f7a[_0xae6239(0x430)]);if(!_0x28a3e7)return;let {unitId:_0x3cc985,subUnitId:_0x57ad77,drawingId:_0x3968c1}=_0x28a3e7;_0x5d7816[_0xae6239(0x403)](_0x3cc985,_0x57ad77,_0x3968c1,_0x31c95a[_0xae6239(0x1f1)]);}});}function Qr(){const _0x50a7b7=_0x714ef0;let _0x38a4c4=_0x3bcf4c(_0x19d008),_0x769ea9=_0x3bcf4c(Q);return _0x230828(_0x2b2e10,{'buttonLabel':_0x50a7b7(0x3f9),'excludeGroups':[_0x2a0c3e[_0x50a7b7(0x183)]],'DropdownComponent':_0x8991e2,'onShapeClick':_0x4fe581=>{const _0x4d7123=_0x50a7b7;let _0x26e902=_0x38a4c4[_0x4d7123(0x3dc)]()['find'](_0x532336=>_0x532336['drawingType']===_0x544f7a[_0x4d7123(0x430)]);if(!_0x26e902)return;let {unitId:_0x2cf933,subUnitId:_0x391d55,drawingId:_0x16fa58}=_0x26e902;_0x769ea9[_0x4d7123(0x403)](_0x2cf933,_0x391d55,_0x16fa58,_0x4fe581[_0x4d7123(0x1f1)]);}});}function $r(){const _0x28b719=_0x714ef0;let _0x2bda3e=_0x3bcf4c(_0x5a67d0),_0x1fe248=_0x3bcf4c(_0x19d008),_0x1a6110=_0x3bcf4c(_0x1d15d2),_0x479bf0=_0x1fe248[_0x28b719(0x3dc)]()[0x0],_0xdd48ba=_0x479bf0?_0x1a6110[_0x28b719(0x346)](_0x479bf0[_0x28b719(0x277)]):void 0x0,_0x48e737=_0xdd48ba===_0x58aa7b['UNIVER_DOC']?_0x28b719(0x3e9):_0xdd48ba===_0x58aa7b[_0x28b719(0x222)]?Yr:void 0x0,_0x59d30e=_0x48e737?_0x2bda3e[_0x28b719(0x2dd)](_0x48e737):void 0x0;return _0x59d30e?_0x230828(_0x59d30e,{}):null;}function ei(){let _0x2fcd4b=_0x3bcf4c(_0x2b8a3e);return _0x230828(Xr,{'onShapeClick':_0x373ab0=>{const _0x5dc408=_0x5396;_0x2fcd4b[_0x5dc408(0x40b)](Ir['id'],{'value':_0x373ab0[_0x5dc408(0x1f1)],'enhanceParams':{'endArrow':_0x373ab0['endArrow'],'startArrow':_0x373ab0[_0x5dc408(0x411)],'horizontal':_0x373ab0[_0x5dc408(0x401)],'vertical':_0x373ab0[_0x5dc408(0x2ca)]}});}});}function ti(){return _0x230828(ei,{});}function ni(_0xfd55e8){const _0x54625d=_0x714ef0;let _0x26887d=_0xfd55e8[_0x54625d(0x2dd)](_0x1d15d2);return{'id':Ir['id'],'type':_0x507a55[_0x54625d(0x23e)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x54625d(0x328),'tooltip':_0x54625d(0x408),'activated$':_0x5b4c60(_0x26887d,!0x1,()=>new _0x1bac00(_0x3f7ae3=>{const _0x2f39f9=_0x54625d;_0x3f7ae3[_0x2f39f9(0x3ee)](!0x1);})),'hidden$':_0x1975c5(_0xfd55e8,_0x58aa7b[_0x54625d(0x222)]),'disabled$':_0x3afc35(_0xfd55e8)};}function ri(_0x18eef5){const _0x48afe4=_0x714ef0;let _0x4bbd4d=_0x18eef5['get'](_0x1d15d2);return{'id':Ur['id'],'type':_0x507a55['BUTTON'],'icon':_0x48afe4(0x3a6),'title':_0x48afe4(0x3ac),'tooltip':_0x48afe4(0x3ac),'activated$':_0x5b4c60(_0x4bbd4d,!0x1,()=>new _0x1bac00(_0x181eaf=>{_0x181eaf['next'](!0x1);})),'hidden$':_0x1975c5(_0x18eef5,_0x58aa7b[_0x48afe4(0x222)]),'disabled$':_0x3afc35(_0x18eef5)};}const ii=_0x714ef0(0x2bc),ai=_0x714ef0(0x3a5);function oi(_0x20fcd6){const _0x1f5f66=_0x714ef0;let _0x5895c4=_0x20fcd6['get'](_0x19d008)[_0x1f5f66(0x3dc)]();return _0x5895c4[_0x1f5f66(0x1c3)]===0x1&&_0x5895c4[0x0][_0x1f5f66(0x198)]===_0x544f7a[_0x1f5f66(0x2c1)]?_0x5895c4[0x0]:null;}function si(_0x596535){const _0x24e80c=_0x714ef0;let _0x310aeb=_0x596535[_0x24e80c(0x2dd)](_0x19d008);return _0x310aeb[_0x24e80c(0x3f5)][_0x24e80c(0x371)](_0x293b44(_0x310aeb[_0x24e80c(0x3dc)]()),_0x3fd006(_0x1cc5a9=>_0x1cc5a9['length']!==0x1||_0x1cc5a9[0x0]['drawingType']!==_0x544f7a[_0x24e80c(0x2c1)]));}function ci(_0x379a8b){const _0x55f365=_0x714ef0;return{'id':ii,'commandId':_0x4b4814['id'],'type':_0x507a55[_0x55f365(0x39c)],'title':_0x55f365(0x373),'tooltip':_0x55f365(0x373),'icon':_0x55f365(0x376),'hidden$':si(_0x379a8b),'params':()=>{const _0x1357ab=_0x55f365;let _0x3d8fac=oi(_0x379a8b);return _0x3d8fac?{'unitId':_0x3d8fac[_0x1357ab(0x277)],'subUnitId':_0x3d8fac[_0x1357ab(0x3d0)],'shapeId':_0x3d8fac['drawingId'],'flipH':!0x0}:void 0x0;}};}function li(_0xce7bf){const _0x11becd=_0x714ef0;return{'id':ai,'commandId':_0x4b4814['id'],'type':_0x507a55[_0x11becd(0x39c)],'title':_0x11becd(0x31c),'tooltip':_0x11becd(0x31c),'icon':_0x11becd(0x35e),'hidden$':si(_0xce7bf),'params':()=>{const _0x2e81a5=_0x11becd;let _0xe0938d=oi(_0xce7bf);return _0xe0938d?{'unitId':_0xe0938d[_0x2e81a5(0x277)],'subUnitId':_0xe0938d['subUnitId'],'shapeId':_0xe0938d[_0x2e81a5(0x290)],'flipV':!0x0}:void 0x0;}};}const ui='sheets-shape-ui.shape-format.quick-style-gallery',di=_0x714ef0(0x16f),fi='sheets-shape-ui.shape-format.text-ribbon-control',pi=_0x714ef0(0x38e);function mi(){let _0x3b4f9a=_0x3bcf4c(_0x2b8a3e),_0x45ac04=_0x3bcf4c(_0x19d008),_0x5aea4f=_0x3bcf4c(_0x5b8f71),_0x4f2aed=()=>{const _0x2bf935=_0x5396;var _0xe0cf28;let _0x4e930e=_0x45ac04[_0x2bf935(0x3dc)]();if(_0x4e930e[_0x2bf935(0x1c3)]!==0x1||((_0xe0cf28=_0x4e930e[0x0])==null?void 0x0:_0xe0cf28[_0x2bf935(0x198)])!==_0x544f7a[_0x2bf935(0x2c1)])return null;let {unitId:_0x3407d5,subUnitId:_0x358b0a,drawingId:_0x5db6ee}=_0x4e930e[0x0],_0x1866cb=_0x5aea4f[_0x2bf935(0x1ad)](_0x3407d5,_0x358b0a,_0x5db6ee),_0x35384b=_0x5aea4f[_0x2bf935(0x3a4)](_0x3407d5,_0x358b0a,_0x5db6ee);return _0x1866cb===void 0x0||!_0x35384b?null:{'unitId':_0x3407d5,'subUnitId':_0x358b0a,'drawingId':_0x5db6ee,'shapeType':_0x1866cb,'shapeData':_0x35384b};},_0x482661=_0x54184f(()=>new _0x1bac00(_0x1f6a38=>{const _0x19df69=_0x5396;let _0x441452=()=>_0x1f6a38[_0x19df69(0x3ee)](_0x4f2aed()),_0x22850a=_0x45ac04['focus$'][_0x19df69(0x3e4)](_0x441452),_0x1be858=_0x3b4f9a[_0x19df69(0x40f)](_0x39ed42=>{_0x39ed42['id']===_0x197dab['id']&&_0x441452();});return _0x441452(),()=>{const _0x49acf8=_0x19df69;_0x22850a[_0x49acf8(0x187)](),_0x1be858[_0x49acf8(0x232)]();};}),_0x4f2aed(),!0x1,[_0x3b4f9a,_0x45ac04,_0x5aea4f]);return{'selection':_0x482661,'updateShapeData':_0x4a9378=>{const _0x183b14=_0x5396;_0x482661&&Dr(_0x3b4f9a,_0x482661[_0x183b14(0x277)],_0x482661['subUnitId'],_0x482661['drawingId'],{'oldShapeData':_0x482661['shapeData']},_0x4a9378);}};}function hi(){const _0x3db532=_0x714ef0;let {selection:_0x1e0b81,updateShapeData:_0x206d70}=mi();return _0x1e0b81?_0x230828(_0x52b5ae,{'shapeData':_0x1e0b81[_0x3db532(0x3be)],'shapeType':_0x1e0b81[_0x3db532(0x3b7)],'onUpdateShapeData':_0x206d70}):null;}function gi(){const _0x17f26a=_0x714ef0;let _0x1d08aa=_0x3bcf4c(_0x2b8a3e),_0x49cfac=_0x3bcf4c(_0x30b59c),{selection:_0x29b43b}=mi();return _0x29b43b?_0x230828(_0x10a63c,{'type':_0x189f9a(_0x29b43b[_0x17f26a(0x3be)]),'ariaLabel':_0x49cfac['t'](_0x17f26a(0x1e4)),'activePresetId':_0x555e02(_0x29b43b[_0x17f26a(0x3be)]),'onSelect':_0x324984=>_0x1d08aa[_0x17f26a(0x40b)](Kr['id'],{'presetId':_0x324984})}):null;}function _i(){const _0x830252=_0x714ef0;let {selection:_0x4fdbae,updateShapeData:_0x4ab41c}=mi();return _0x4fdbae?_0x230828(_0x2a1de0,{'fontFamilyPopupDataComponent':_0x830252(0x41b),'shapeData':_0x4fdbae['shapeData'],'onUpdateShapeData':_0x4ab41c}):null;}function vi(){const _0x56e956=_0x714ef0;var _0x5ca2b4;let {selection:_0x31dbd8,updateShapeData:_0x3bf4db}=mi(),_0x12a3a2=_0x1f34d3({'hostType':_0x58aa7b[_0x56e956(0x222)],'unitId':(_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x277)])??'','subUnitId':(_0x31dbd8==null?void 0x0:_0x31dbd8['subUnitId'])??'','shapeId':(_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x290)])??'','shapeData':_0x31dbd8==null?void 0x0:_0x31dbd8[_0x56e956(0x3be)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x56e956(0x2e5),'onUpdateBinding':_0x1d015f=>_0x3bf4db({'formulaBinding':_0x1d015f})}),_0x225f7f=((_0x5ca2b4=_0x12a3a2[_0x56e956(0x27c)])==null?void 0x0:_0x5ca2b4[_0x56e956(0x310)](_0x330f2a=>_0x330f2a['actions'])[_0x56e956(0x3c0)](_0x5b5195=>_0x5b5195['visible']!==!0x1))??[];return _0x31dbd8!=null&&_0x31dbd8[_0x56e956(0x3be)][_0x56e956(0x317)]?_0x230828(_0x493081,{'actions':_0x225f7f,'panel':_0x12a3a2['panel']}):null;}const yi=_0x714ef0(0x2fa),bi='sheets-shape-ui.ribbon.shape-format.text-control',xi=_0x714ef0(0x291),Si=_0x714ef0(0x170),Ci=_0x714ef0(0x3d7),wi=_0x714ef0(0x341),Ti=_0x714ef0(0x2b3);function Ei(_0xcdf213){let _0x19fe88=_0xcdf213['get'](_0x2b8a3e),_0x294f93=_0xcdf213['get'](_0x19d008),_0x5ab309=_0xcdf213['get'](_0x5b8f71);return new _0x1bac00(_0x1c3877=>{const _0x26ea6a=_0x5396;let _0x2bcdb0=()=>{const _0xc4e92f=_0x5396;let _0x4d2431=Di(_0xcdf213),_0x1c9304=_0x4d2431?_0x5ab309['getShapeDataById'](_0x4d2431[_0xc4e92f(0x277)],_0x4d2431['subUnitId'],_0x4d2431[_0xc4e92f(0x290)]):null;_0x1c3877['next'](_0x1c9304?_0x555e02(_0x1c9304)??'':'');},_0x5b6e68=_0x294f93[_0x26ea6a(0x3f5)][_0x26ea6a(0x3e4)](_0x2bcdb0),_0x30eaaf=_0x19fe88[_0x26ea6a(0x40f)](_0xac4b45=>{_0xac4b45['id']===_0x197dab['id']&&_0x2bcdb0();});return _0x2bcdb0(),()=>{const _0x15c6c9=_0x26ea6a;_0x5b6e68[_0x15c6c9(0x187)](),_0x30eaaf[_0x15c6c9(0x232)]();};});}function Di(_0x5e8feb){const _0xb586e5=_0x714ef0;var _0x3937db;let _0x40493c=_0x5e8feb['get'](_0x19d008)[_0xb586e5(0x3dc)]();return _0x40493c[_0xb586e5(0x1c3)]===0x1&&((_0x3937db=_0x40493c[0x0])==null?void 0x0:_0x3937db[_0xb586e5(0x198)])===_0x544f7a[_0xb586e5(0x2c1)]?_0x40493c[0x0]:null;}function Oi(_0x42fcca,_0x1e6ff6=!0x1){const _0x37ae39=_0x714ef0;let _0x2fdcec=_0x42fcca[_0x37ae39(0x2dd)](_0x2b8a3e),_0x3d4e53=_0x42fcca[_0x37ae39(0x2dd)](_0x19d008),_0x488183=_0x42fcca[_0x37ae39(0x2dd)](_0x5b8f71);return new _0x1bac00(_0x3e047c=>{const _0x14133f=_0x37ae39;let _0x3d8bf3=()=>{const _0x27c0d2=_0x5396;let _0x19bb25=Di(_0x42fcca);if(!_0x19bb25){_0x3e047c['next'](!0x0);return;}let _0x4c74d5=_0x488183[_0x27c0d2(0x3a4)](_0x19bb25[_0x27c0d2(0x277)],_0x19bb25[_0x27c0d2(0x3d0)],_0x19bb25[_0x27c0d2(0x290)]);_0x3e047c[_0x27c0d2(0x3ee)](!_0x4c74d5||_0x1e6ff6&&_0x4c74d5[_0x27c0d2(0x317)]==null);},_0x294850=_0x3d4e53[_0x14133f(0x3f5)]['subscribe'](_0x3d8bf3),_0x199816=_0x2fdcec['onCommandExecuted'](_0x4aa4f2=>{_0x4aa4f2['id']===_0x197dab['id']&&_0x3d8bf3();});return _0x3d8bf3(),()=>{const _0x14c253=_0x14133f;_0x294850[_0x14c253(0x187)](),_0x199816[_0x14c253(0x232)]();};});}function ki(_0x3a730e){const _0x567ef3=_0x714ef0;let _0x5e661e=_0x3a730e['get'](_0x19d008),_0x206534=_0x3a730e[_0x567ef3(0x2dd)](_0x5b8f71);return _0x5e661e[_0x567ef3(0x3f5)][_0x567ef3(0x371)](_0x293b44(_0x5e661e[_0x567ef3(0x3dc)]()),_0x3fd006(()=>{const _0x94a6f7=_0x567ef3;let _0x169446=Di(_0x3a730e),_0x4e9af5=_0x169446?_0x206534[_0x94a6f7(0x1ad)](_0x169446['unitId'],_0x169446[_0x94a6f7(0x3d0)],_0x169446['drawingId']):void 0x0;return _0x4e9af5===void 0x0||_0x4cb876(_0x4e9af5);}));}function Ai(_0x53cf0e){const _0x202d90=_0x714ef0;return{'id':Kr['id'],'type':_0x507a55[_0x202d90(0x23e)],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x202d90(0x363),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x53cf0e),'hidden$':Oi(_0x53cf0e)};}function ji(_0x1b8c7f){const _0x344ec6=_0x714ef0;return{'id':qr['id'],'type':_0x507a55[_0x344ec6(0x23e)],'icon':_0x344ec6(0x328),'title':_0x344ec6(0x21b),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x549e13,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x1b8c7f)};}function Mi(_0x516992,_0x49b129,_0x5b8868=!0x1){const _0x4acf32=_0x714ef0;return _0x2ea373=>({'id':_0x516992,'type':_0x507a55[_0x4acf32(0x39c)],'label':{'name':_0x49b129,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x2ea373,_0x5b8868)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x47068d,_0x343942,_0x4e0c5c,_0x294ec7){const _0x266166=_0x714ef0;return _0x3b5cfe=>({'id':_0x47068d,'commandId':_0x8e2df9['id'],'type':_0x507a55[_0x266166(0x39c)],'icon':_0x4e0c5c,'title':_0x294ec7,'tooltip':_0x294ec7,'hidden$':Oi(_0x3b5cfe),'params':()=>{const _0x373d15=_0x266166;let _0x47f338=Di(_0x3b5cfe);return _0x47f338?{'unitId':_0x47f338['unitId'],'subUnitId':_0x47f338['subUnitId'],'drawingIds':[_0x47f338[_0x373d15(0x290)]],'arrangeType':_0x343942}:void 0x0;}});}const Li=Ii(Si,_0x426c14['forward'],_0x714ef0(0x164),_0x714ef0(0x36c)),Ri=Ii(Ci,_0x426c14['backward'],'MoveDownIcon',_0x714ef0(0x2ed)),zi=Ii(wi,_0x426c14[_0x714ef0(0x287)],_0x714ef0(0x279),_0x714ef0(0x324)),Bi=Ii(Ti,_0x426c14[_0x714ef0(0x3b8)],'BottomIcon',_0x714ef0(0x34b));function Vi(_0x486570){const _0x281969=_0x714ef0;return{'id':Wr['id'],'type':_0x507a55[_0x281969(0x39c)],'icon':_0x281969(0x424),'title':_0x281969(0x35d),'tooltip':_0x281969(0x35d),'hidden$':Oi(_0x486570),'params':()=>{const _0x47625b=_0x281969;let _0xf5e4be=Di(_0x486570);return _0xf5e4be?{'unitId':_0xf5e4be['unitId'],'subUnitId':_0xf5e4be[_0x47625b(0x3d0)],'drawingId':_0xf5e4be[_0x47625b(0x290)]}:void 0x0;}};}const Hi={[_0x31bc17[_0x714ef0(0x3b3)]]:{[Br]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x45fee0['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5bad15}}}}},Ui={[_0x3372cf[_0x714ef0(0x2d8)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x3372cf[_0x714ef0(0x1e3)]]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x281ae1[_0x714ef0(0x3cc)]]:{[_0x144ec7[_0x714ef0(0x1e3)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi=_0x714ef0(0x2fe),Ki=_0x714ef0(0x25f);const qi={'id':_0x714ef0(0x1ae),'type':_0x4017c5[_0x714ef0(0x2e0)],'handler'(_0xea0b8e,_0x2a76e0){const _0x2b0013=_0x714ef0;return _0x2a76e0?(_0xea0b8e[_0x2b0013(0x2dd)](_0x9eb493)[_0x2b0013(0x249)](_0x2a76e0['mode'],{'hostType':_0x58aa7b[_0x2b0013(0x222)],'shapeId':_0x2a76e0[_0x2b0013(0x290)],'subUnitId':_0x2a76e0['subUnitId'],'unitId':_0x2a76e0[_0x2b0013(0x277)]}),!0x0):!0x1;}},Ji=_0x714ef0(0x420),Yi={};let Xi=class extends _0xe29064{constructor(_0x3fcce2,_0x41abff,_0x17bf19,_0x36f66f,_0x35e928){const _0x56c17d=_0x714ef0;super(),this[_0x56c17d(0x22a)]=_0x3fcce2,this['_drawingManagerService']=_0x41abff,this[_0x56c17d(0x2cf)]=_0x17bf19,this[_0x56c17d(0x2be)]=_0x36f66f,this[_0x56c17d(0x1ef)]=_0x35e928,q(this,_0x56c17d(0x2ac),null),q(this,'_unitId',null),q(this,_0x56c17d(0x3af),null),q(this,_0x56c17d(0x2a7),void 0x0),q(this,_0x56c17d(0x2ee),[]),q(this,_0x56c17d(0x294),0x0),q(this,_0x56c17d(0x263),0x0),q(this,_0x56c17d(0x3e5),0x0),q(this,_0x56c17d(0x297),0x0),q(this,_0x56c17d(0x1c0),!0x1),q(this,_0x56c17d(0x203),void 0x0),q(this,_0x56c17d(0x20d),void 0x0),q(this,_0x56c17d(0x3e0),void 0x0),q(this,'_adjHandlerPointerUp',void 0x0),q(this,_0x56c17d(0x3bf),!0x1),this[_0x56c17d(0x1e7)](),this['_registerMoveHandler']();}[_0x714ef0(0x260)](){const _0x3c9b25=_0x714ef0;this[_0x3c9b25(0x3c9)]();}[_0x714ef0(0x3f8)](){const _0x4c2b5d=_0x714ef0;this[_0x4c2b5d(0x3c9)](),this['_createControls'](!0x0);}[_0x714ef0(0x41f)](_0x2ce296,_0x39d500,_0x1ce1c5,_0x34bc90){const _0x4c0fae=_0x714ef0;let _0x45f7dd=_0x2ce296;if(_0x45f7dd!==_0xf1eb19['None']&&_0x2ce296!==_0x4c0fae(0x1d0))try{let _0x29d3b8=new _0x573393(_0x45f7dd,_0x4c0fae(0x365)+_0x2ce296);return _0x34bc90&&_0x29d3b8[_0x4c0fae(0x256)]({'adjustValues':_0x34bc90},!0x0),_0x29d3b8[_0x4c0fae(0x2b8)]({'width':_0x39d500,'height':_0x1ce1c5}),_0x29d3b8;}catch{return;}}[_0x714ef0(0x1c7)](_0x5a8263,_0x433fb4,_0x1eb224){const _0x32186e=_0x714ef0;let _0x1eae1a={'unitId':_0x5a8263,'subUnitId':_0x433fb4,'drawingId':_0x1eb224},_0x3cd1b7=this[_0x32186e(0x20f)][_0x32186e(0x2da)](_0x1eae1a);if(_0x3cd1b7&&_0x3cd1b7['drawingType']===_0x544f7a[_0x32186e(0x430)])return _0x3cd1b7;}[_0x714ef0(0x168)](_0x5ebc48,_0x2abf4a,_0x332211){const _0x54b6d1=_0x714ef0;let _0x13242e=this[_0x54b6d1(0x2cf)]['getRenderUnitById'](_0x5ebc48);if(!_0x13242e)return;let {scene:_0x2bdfbd}=_0x13242e,_0x42082f=_0x562c30({'unitId':_0x5ebc48,'subUnitId':_0x2abf4a,'drawingId':_0x332211}),_0x4a593d=_0x2bdfbd[_0x54b6d1(0x3b6)](_0x42082f);if(_0x4a593d instanceof _0x230c76){let _0x526d7a=_0x4a593d[_0x54b6d1(0x33e)];if(_0x526d7a)return{'prstGeom':_0x526d7a,'adjustValues':_0x4a593d[_0x54b6d1(0x24a)]};}}[_0x714ef0(0x25b)](_0x276fdb=!0x1){const _0x46072e=_0x714ef0;if(!this[_0x46072e(0x180)]||!this[_0x46072e(0x3af)]||!this['_activeImageId'])return;let _0x106656=this[_0x46072e(0x2cf)]['getRenderUnitById'](this[_0x46072e(0x180)]);if(!_0x106656||!_0x106656[_0x46072e(0x3e6)](_0x44086e)[_0x46072e(0x161)]())return;let {scene:_0x4da006}=_0x106656,_0xf5547e=this[_0x46072e(0x1c7)](this[_0x46072e(0x180)],this[_0x46072e(0x3af)],this[_0x46072e(0x2ac)]);if(!_0xf5547e)return;let {transform:_0x38b4a2}=_0xf5547e;if(!_0x38b4a2)return;let {left:_0x7a3559,top:_0x4d4cc9,width:_0x23b830,height:_0x587640,flipX:_0x27036a,flipY:_0x378c8a,angle:_0x3dddba=0x0}=_0x38b4a2;if(_0x7a3559===void 0x0||_0x4d4cc9===void 0x0)return;let _0x81975b=this[_0x46072e(0x168)](this[_0x46072e(0x180)],this[_0x46072e(0x3af)],this[_0x46072e(0x2ac)]);if(!_0x81975b)return;if(_0x276fdb){let _0x15c68b=this['_getOrCreateShapeModel'](_0x81975b[_0x46072e(0x33e)],_0x23b830||0x0,_0x587640||0x0,_0x81975b[_0x46072e(0x33c)]);if(!_0x15c68b)return;this['_activeAdjustPointList']=_0x15c68b[_0x46072e(0x41e)]();}let _0x4d2bc9=this[_0x46072e(0x2a7)];if(_0x4d2bc9&&_0x4d2bc9[_0x46072e(0x1c3)]!==0x0)for(let _0x121017=0x0;_0x121017<_0x4d2bc9[_0x46072e(0x1c3)];_0x121017++){let _0x5ec84b=_0x4d2bc9[_0x121017],_0xfa5511=_0x5ec84b['x'],_0x3d157b=_0x5ec84b['y'];if(_0x27036a&&(_0xfa5511=(_0x23b830||0x0)-_0xfa5511),_0x378c8a&&(_0x3d157b=(_0x587640||0x0)-_0x3d157b),_0x3dddba!==0x0){let _0x25bbc3=(_0x23b830||0x0)/0x2,_0x52b3cb=(_0x587640||0x0)/0x2,_0x250ebd=_0x3dddba*Math['PI']/0xb4,_0x3f3e69=Math['cos'](_0x250ebd),_0x3ae405=Math[_0x46072e(0x267)](_0x250ebd),_0x53071d=_0xfa5511-_0x25bbc3,_0x198f5f=_0x3d157b-_0x52b3cb;_0xfa5511=_0x25bbc3+(_0x53071d*_0x3f3e69-_0x198f5f*_0x3ae405),_0x3d157b=_0x52b3cb+(_0x53071d*_0x3ae405+_0x198f5f*_0x3f3e69);}let _0x56dc6d={'x':_0xfa5511,'y':_0x3d157b,'adjName':_0x5ec84b[_0x46072e(0x2a3)]};this['_addControl'](_0x4da006,_0x56dc6d,_0x56dc6d[_0x46072e(0x2a3)],_0x7a3559,_0x4d4cc9,this['_unitId'],this[_0x46072e(0x3af)]);}}[_0x714ef0(0x1d3)](_0x457661,_0x1d5169,_0x21de1a,_0x570ec3,_0x250317,_0x1d8bd9,_0x216246){const _0x6ed577=_0x714ef0;if(!this[_0x6ed577(0x2ac)])return;let _0x14bce9='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x21de1a,_0x452cca=_0x457661[_0x6ed577(0x252)](_0x14bce9);if(_0x452cca){_0x452cca[_0x6ed577(0x1b1)]({'left':_0x1d5169['x']+_0x570ec3-_0x4945a0[_0x6ed577(0x17b)],'top':_0x1d5169['y']+_0x250317-_0x4945a0[_0x6ed577(0x17b)]});return;}let _0x37aced=new Nr(_0x14bce9,{'left':_0x1d5169['x']+_0x570ec3-_0x4945a0['adjHandleSize'],'top':_0x1d5169['y']+_0x250317-_0x4945a0[_0x6ed577(0x17b)],'adjName':_0x21de1a,'shapeId':this['_activeImageId'],'unitId':_0x1d8bd9,'subUnitId':_0x216246,'width':_0x4945a0['adjHandleSize']+0x8,'height':_0x4945a0[_0x6ed577(0x17b)]+0x8,'zIndex':_0x4232ac+0x1,'evented':!0x0});this[_0x6ed577(0x2ee)][_0x6ed577(0x181)](_0x37aced),this[_0x6ed577(0x354)](_0x37aced,_0x457661,_0x21de1a),_0x457661[_0x6ed577(0x213)](_0x37aced,_0x4232ac+0x1);}['_clearControls'](){const _0x42ff33=_0x714ef0;this[_0x42ff33(0x2ee)][_0x42ff33(0x1c3)]!==0x0&&(this['_shapes'][_0x42ff33(0x185)](_0x395514=>_0x395514[_0x42ff33(0x232)]()),this['_shapes']=[]);}['_getScrollInfo'](_0x22a1d3,_0xa5f4ee){const _0x14692e=_0x714ef0;var _0x154c3a;let _0x58f5d5={'x':0x0,'y':0x0},_0x1540ec=this[_0x14692e(0x2cf)][_0x14692e(0x2af)](_0x22a1d3);if(!_0x1540ec||!_0x1540ec[_0x14692e(0x3e6)](_0x44086e)[_0x14692e(0x1f4)](_0xa5f4ee))return _0x58f5d5;let _0x48d43b=_0x1540ec['with'](_0x4e89db),_0x4b84c3=_0x48d43b==null?void 0x0:_0x48d43b[_0x14692e(0x1b9)]();if(!_0x4b84c3)return _0x58f5d5;let _0x11524a=(_0x154c3a=this[_0x14692e(0x2be)][_0x14692e(0x2a6)](_0x22a1d3))==null?void 0x0:_0x154c3a[_0x14692e(0x2f0)](_0xa5f4ee);if(!_0x11524a)return _0x58f5d5;let _0xbe80ca=_0xe31858(_0x4b84c3[_0x14692e(0x3d9)],_0x4b84c3['sheetViewStartColumn'],_0x1540ec[_0x14692e(0x1d4)],_0x11524a);return _0xbe80ca?{'x':_0xbe80ca[_0x14692e(0x388)],'y':_0xbe80ca[_0x14692e(0x17a)]}:_0x58f5d5;}['_getZoomRatio'](_0xd4c95a,_0x503261){const _0x34b09e=_0x714ef0;var _0x5e07b3;let _0x168444=(_0x5e07b3=this[_0x34b09e(0x2be)]['getUnit'](_0xd4c95a))==null?void 0x0:_0x5e07b3[_0x34b09e(0x2f0)](_0x503261);return(_0x168444==null?void 0x0:_0x168444[_0x34b09e(0x3fb)]())??0x1;}[_0x714ef0(0x354)](_0x5cdb19,_0x5b64b3,_0x450211){const _0x139407=_0x714ef0;this[_0x139407(0x238)](_0x128476(_0x5cdb19[_0x139407(0x18e)][_0x139407(0x212)]((_0x5b1114,_0x5370e7)=>{const _0x76c6d1=_0x139407;var _0x117f31,_0x2efe98,_0x6c5c06;let {unitId:_0x20ca99,subUnitId:_0x491c14,drawingId:_0x11049a}=_0x5cdb19['getDrawingSearch'](),_0x3578dd=this[_0x76c6d1(0x1c7)](_0x20ca99,_0x491c14,_0x11049a);if(!(_0x3578dd!=null&&_0x3578dd[_0x76c6d1(0x29f)]))return;let {left:_0x386c7a,top:_0x3119a8,width:_0x167c8e,height:_0x19194a}=_0x3578dd['transform'];this['_baseLeft']=_0x386c7a||0x0,this[_0x76c6d1(0x263)]=_0x3119a8||0x0,this[_0x76c6d1(0x3e5)]=_0x167c8e||0x0,this[_0x76c6d1(0x297)]=_0x19194a||0x0;let _0x5c0c48=!!((_0x117f31=_0x3578dd[_0x76c6d1(0x29f)])!=null&&_0x117f31[_0x76c6d1(0x18d)]),_0x567a6c=!!((_0x2efe98=_0x3578dd[_0x76c6d1(0x29f)])!=null&&_0x2efe98['flipY']),_0x5ec8bc=((_0x6c5c06=_0x3578dd[_0x76c6d1(0x29f)])==null?void 0x0:_0x6c5c06[_0x76c6d1(0x2ae)])||0x0,_0x523492=this[_0x76c6d1(0x168)](_0x20ca99,_0x491c14,_0x11049a);if(!_0x523492)return;let _0x2b7dd0=this[_0x76c6d1(0x41f)](_0x523492[_0x76c6d1(0x33e)],this[_0x76c6d1(0x3e5)],this[_0x76c6d1(0x297)],_0x523492['adjustValues']);if(!_0x2b7dd0||(this[_0x76c6d1(0x20d)]=_0x2b7dd0,this['_activeAdjustInfo']=_0x2b7dd0[_0x76c6d1(0x2b1)](_0x450211),!this[_0x76c6d1(0x203)]))return;this[_0x76c6d1(0x1c0)]=!0x0,_0x5b64b3['disableObjectsEvent']();let _0x3b20ba=_0x523492[_0x76c6d1(0x33e)];this[_0x76c6d1(0x3e0)]=_0x5b64b3[_0x76c6d1(0x224)]['subscribeEvent']((_0x24fead,_0x295758)=>{const _0x3366b9=_0x76c6d1;if(!this['_isStartAdjusting'])return;let {offsetX:_0x3d9a5b,offsetY:_0x3892e6}=_0x24fead,_0x3686ce=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x3686ce)return;_0x5b64b3['disableObjectsEvent'](),_0x5b64b3['setCursor'](_0x141a72[_0x3366b9(0x3b1)]);let _0x29c7f3={'left':0x0,'top':0x0,'width':this[_0x3366b9(0x3e5)],'height':this[_0x3366b9(0x297)]},_0x2320f9=this[_0x3366b9(0x315)](_0x20ca99,_0x491c14),_0x5d42b7=this[_0x3366b9(0x16a)](_0x20ca99,_0x491c14),_0x295445=_0x3d9a5b/_0x5d42b7+_0x2320f9['x']-this[_0x3366b9(0x294)],_0x4649a9=_0x3892e6/_0x5d42b7+_0x2320f9['y']-this[_0x3366b9(0x263)];if(_0x5ec8bc!==0x0){let _0x524da3=this['_baseWidth']/0x2,_0x4e0fc8=this[_0x3366b9(0x297)]/0x2,_0x5a8537=_0x5ec8bc*Math['PI']/0xb4,_0x5c9d08=Math[_0x3366b9(0x1ac)](_0x5a8537),_0x486302=Math[_0x3366b9(0x267)](_0x5a8537),_0x48e834=_0x295445-_0x524da3,_0x17e6bd=_0x4649a9-_0x4e0fc8;_0x295445=_0x524da3+(_0x48e834*_0x5c9d08+_0x17e6bd*_0x486302),_0x4649a9=_0x4e0fc8+(-_0x48e834*_0x486302+_0x17e6bd*_0x5c9d08);}_0x5c0c48&&(_0x295445=this[_0x3366b9(0x3e5)]-_0x295445),_0x567a6c&&(_0x4649a9=this[_0x3366b9(0x297)]-_0x4649a9);let _0x5b7c16=this[_0x3366b9(0x20d)][_0x3366b9(0x302)](_0x29c7f3,{'x':_0x295445,'y':_0x4649a9},_0x3686ce,_0x5c0c48,_0x567a6c);if(Object[_0x3366b9(0x1a3)](_0x5b7c16)[_0x3366b9(0x1c3)]!==0x0){for(let [_0x3a5738,_0x51c9b6]of Object['entries'](_0x5b7c16))this['_activeShapeModel'][_0x3366b9(0x19c)](_0x3a5738,_0x51c9b6);this[_0x3366b9(0x20d)][_0x3366b9(0x2b8)]({'width':this['_baseWidth'],'height':this[_0x3366b9(0x297)]}),this[_0x3366b9(0x32e)](_0x20ca99,_0x491c14,_0x11049a,_0x5b7c16),this['_activeAdjustPointList']=this[_0x3366b9(0x20d)]['getDrawingPoints'](),this[_0x3366b9(0x25b)](),_0x295758[_0x3366b9(0x394)]();}}),this[_0x76c6d1(0x230)]=_0x5b64b3['onPointerUp$'][_0x76c6d1(0x212)]((_0x173787,_0x25fe12)=>{const _0x4975fe=_0x76c6d1;if(this[_0x4975fe(0x3e0)][_0x4975fe(0x187)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x5b64b3['resetCursor'](),this[_0x4975fe(0x20d)]){let _0xbbb77=this[_0x4975fe(0x20d)][_0x4975fe(0x26a)](),_0x367a3f={};for(let _0x58e869 of _0xbbb77){let _0x5c6d02=this[_0x4975fe(0x20d)][_0x4975fe(0x31b)](_0x58e869);_0x5c6d02!==void 0x0&&(_0x367a3f[_0x58e869]=_0x5c6d02);}this['_imageShapeClipController']['clipByShape'](_0x20ca99,_0x491c14,_0x11049a,_0x3b20ba,_0x367a3f);}this[_0x4975fe(0x203)]=void 0x0,this[_0x4975fe(0x20d)]=void 0x0,this[_0x4975fe(0x1c0)]=!0x1,_0x25fe12[_0x4975fe(0x394)](),_0x5b64b3[_0x4975fe(0x173)]();}),_0x5370e7[_0x76c6d1(0x394)]();})));}[_0x714ef0(0x32e)](_0x30da67,_0x6ce5a9,_0x46e6e1,_0x4fc967){const _0x381f38=_0x714ef0;let _0x484d3c=this[_0x381f38(0x2cf)][_0x381f38(0x2af)](_0x30da67);if(!_0x484d3c)return;let {scene:_0x13ad65}=_0x484d3c,_0xc59294=_0x562c30({'unitId':_0x30da67,'subUnitId':_0x6ce5a9,'drawingId':_0x46e6e1}),_0x5375e0=_0x13ad65[_0x381f38(0x3b6)](_0xc59294);if(_0x5375e0 instanceof _0x230c76){let _0x2f4576=_0x5375e0[_0x381f38(0x24a)]??{};_0x5375e0[_0x381f38(0x163)]({..._0x2f4576,..._0x4fc967}),_0x5375e0[_0x381f38(0x226)](!0x0);}}[_0x714ef0(0x1db)](){const _0x450c03=_0x714ef0;let _0x3d72ba=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x58aa7b['UNIVER_SHEET']);this['disposeWithMe'](_0x3d72ba[_0x450c03(0x371)](_0x1e4916(_0x3198c1=>_0x3198c1?_0x3198c1[_0x450c03(0x434)][_0x450c03(0x371)](_0x1e4916(_0x42818d=>{const _0x2e541=_0x450c03;if(!_0x42818d)return _0x535914;let _0x4aa288=_0x3198c1['getUnitId'](),_0x52c802=this[_0x2e541(0x2cf)]['getRenderUnitById'](_0x4aa288),_0xba93ca=_0x52c802==null?void 0x0:_0x52c802[_0x2e541(0x1d4)];return _0xba93ca?_0x12c65f(_0xba93ca):_0x535914;})):_0x535914))[_0x450c03(0x3e4)](_0xec765d=>{const _0x2caa56=_0x450c03;let _0x3d55c9=_0xec765d[_0x2caa56(0x218)]();this['disposeWithMe'](_0xec765d[_0x2caa56(0x224)][_0x2caa56(0x212)](()=>{const _0x376b9d=_0x2caa56;this[_0x376b9d(0x3bf)]&&this[_0x376b9d(0x3c9)]();})),this['disposeWithMe'](_0x3d55c9['changeStart$'][_0x2caa56(0x3e4)](_0x385779=>{const _0x3c0916=_0x2caa56;let {objects:_0x5e6e36}=_0x385779;if(this[_0x3c0916(0x25b)](),_0x5e6e36!==null&&_0x5e6e36[_0x3c0916(0x296)]===0x1){let _0x329bcf=_0x5e6e36[_0x3c0916(0x1f8)]()[_0x3c0916(0x3ee)]()[_0x3c0916(0x313)];_0x329bcf instanceof _0x230c76&&_0x329bcf[_0x3c0916(0x33e)]&&(this[_0x3c0916(0x3bf)]=!0x0);}})),this['disposeWithMe'](_0x3d55c9[_0x2caa56(0x3fa)]['subscribe'](()=>{const _0x489021=_0x2caa56;this[_0x489021(0x3bf)]&&this[_0x489021(0x3c9)]();})),this[_0x2caa56(0x238)](_0xec765d[_0x2caa56(0x367)][_0x2caa56(0x212)](()=>{const _0x59f355=_0x2caa56;this[_0x59f355(0x3bf)]&&(this[_0x59f355(0x3bf)]=!0x1,this[_0x59f355(0x25b)]());})),this[_0x2caa56(0x238)](_0x3d55c9['changeEnd$'][_0x2caa56(0x3e4)](()=>{const _0x599b10=_0x2caa56;if(this[_0x599b10(0x180)]&&this[_0x599b10(0x3af)]&&this[_0x599b10(0x2ac)]){let _0x2598cf=this[_0x599b10(0x168)](this[_0x599b10(0x180)],this['_subUnitId'],this[_0x599b10(0x2ac)]);if(_0x2598cf){var _0x35e16a,_0x2a9721;let _0x24884b=this[_0x599b10(0x1c7)](this['_unitId'],this['_subUnitId'],this[_0x599b10(0x2ac)]),_0x1ba115=(_0x24884b==null||(_0x35e16a=_0x24884b[_0x599b10(0x29f)])==null?void 0x0:_0x35e16a[_0x599b10(0x253)])||0x0,_0x3496d2=(_0x24884b==null||(_0x2a9721=_0x24884b[_0x599b10(0x29f)])==null?void 0x0:_0x2a9721['height'])||0x0,_0x3a54bd=this[_0x599b10(0x41f)](_0x2598cf[_0x599b10(0x33e)],_0x1ba115,_0x3496d2,_0x2598cf[_0x599b10(0x33c)]);_0x3a54bd&&(this['_activeAdjustPointList']=_0x3a54bd[_0x599b10(0x41e)](),this[_0x599b10(0x3c9)](),this[_0x599b10(0x25b)](!0x0));}}}));}));}[_0x714ef0(0x1e7)](){const _0x5edc6c=_0x714ef0;this['disposeWithMe'](this[_0x5edc6c(0x20f)][_0x5edc6c(0x3f5)][_0x5edc6c(0x3e4)](_0x186ab1=>{const _0x44c092=_0x5edc6c;if(_0x186ab1['length']===0x1){let _0x4687e8=_0x186ab1[0x0];if(_0x4687e8['drawingType']===_0x544f7a['DRAWING_IMAGE']){let {unitId:_0x491966,subUnitId:_0x1931eb,drawingId:_0xe0c88d}=_0x4687e8,_0x1f1229=this[_0x44c092(0x168)](_0x491966,_0x1931eb,_0xe0c88d);if(_0x1f1229){var _0x2dd6df,_0x485e24;this[_0x44c092(0x2ac)]=_0xe0c88d,this[_0x44c092(0x180)]=_0x491966,this[_0x44c092(0x3af)]=_0x1931eb;let _0x4cf1fe=this[_0x44c092(0x1c7)](_0x491966,_0x1931eb,_0xe0c88d),_0x5dccb7=(_0x4cf1fe==null||(_0x2dd6df=_0x4cf1fe['transform'])==null?void 0x0:_0x2dd6df[_0x44c092(0x253)])||0x0,_0x11a69e=(_0x4cf1fe==null||(_0x485e24=_0x4cf1fe[_0x44c092(0x29f)])==null?void 0x0:_0x485e24[_0x44c092(0x2d4)])||0x0,_0x1dd761=this[_0x44c092(0x41f)](_0x1f1229[_0x44c092(0x33e)],_0x5dccb7,_0x11a69e,_0x1f1229['adjustValues']);_0x1dd761&&(this[_0x44c092(0x2a7)]=_0x1dd761[_0x44c092(0x41e)]()),this[_0x44c092(0x3c9)](),this[_0x44c092(0x25b)](!0x0);}else this[_0x44c092(0x2a8)]();}else this[_0x44c092(0x2a8)]();}else this[_0x44c092(0x2a8)]();})),this[_0x5edc6c(0x238)](this[_0x5edc6c(0x20f)]['update$'][_0x5edc6c(0x3e4)](_0x1d8f2e=>{const _0x3503f0=_0x5edc6c;if(_0x1d8f2e['length']===0x1){let _0x4aae6c=_0x1d8f2e[0x0],_0x48fba0=this[_0x3503f0(0x20f)]['getDrawingByParam'](_0x4aae6c);(_0x48fba0==null?void 0x0:_0x48fba0['drawingType'])===_0x544f7a[_0x3503f0(0x430)]&&this['_activeImageId']===_0x4aae6c['drawingId']&&(this[_0x3503f0(0x3c9)](),this[_0x3503f0(0x25b)](!0x0));}})),this[_0x5edc6c(0x238)](this['_drawingManagerService']['remove$'][_0x5edc6c(0x3e4)](_0x38438f=>{const _0x1d4a69=_0x5edc6c;for(let _0x194576 of _0x38438f)this[_0x1d4a69(0x2ac)]===_0x194576[_0x1d4a69(0x290)]&&this[_0x1d4a69(0x2a8)]();}));}[_0x714ef0(0x2a8)](){const _0xf0d1d9=_0x714ef0;this[_0xf0d1d9(0x2ac)]=null,this[_0xf0d1d9(0x180)]=null,this['_subUnitId']=null,this[_0xf0d1d9(0x2a7)]=void 0x0,this[_0xf0d1d9(0x3c9)]();}};Xi=X([Y(0x1,_0x19d008),Y(0x2,_0x5c502f(_0x1e1faa)),Y(0x3,_0x1d15d2),Y(0x4,_0x5c502f(Q))],Xi);function Zi(_0x31402e){const _0x5374e5=_0x714ef0;return _0x31402e[_0x5374e5(0x1e1)]()||void 0x0;}function Qi(_0xdb59a7,_0x516cd2,_0x56ee7e){const _0x41d6dc=_0x714ef0;var _0x28e265;return((_0x28e265=_0xdb59a7[_0x41d6dc(0x16e)])==null?void 0x0:_0x28e265[_0x41d6dc(0x1e1)]())||_0x56ee7e['t'](_0x41d6dc(0x361)+_0x20bb51(_0xdb59a7['drawingType']))+'\x20'+(_0x516cd2+0x1);}function $i({PanelComponent:_0x45968a=_0xd50128}){const _0x3267b3=_0x714ef0;var _0x17de3d;let _0x671263=_0x3bcf4c(_0x30b59c),_0x12a4b4={'title':_0x671263['t'](_0x3267b3(0x1fb)),'empty':_0x671263['t'](_0x3267b3(0x338)),'showAll':_0x671263['t'](_0x3267b3(0x3d8)),'hideAll':_0x671263['t'](_0x3267b3(0x42f)),'lockAll':_0x671263['t'](_0x3267b3(0x1a6)),'unlockAll':_0x671263['t'](_0x3267b3(0x35b)),'moveForward':_0x671263['t'](_0x3267b3(0x189)),'moveBackward':_0x671263['t'](_0x3267b3(0x292)),'close':_0x671263['t']('drawing-ui.objectListPanel.close'),'show':_0x671263['t']('drawing-ui.objectListPanel.show'),'hide':_0x671263['t'](_0x3267b3(0x288)),'lock':_0x671263['t'](_0x3267b3(0x209)),'unlock':_0x671263['t'](_0x3267b3(0x386)),'lockHint':_0x671263['t'](_0x3267b3(0x283)),'unlockHint':_0x671263['t'](_0x3267b3(0x235)),'name':_0x671263['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x671263['t'](_0x3267b3(0x21c)),'description':_0x671263['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x671263['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x671263['t'](_0x3267b3(0x1e0)),'noSelection':_0x671263['t'](_0x3267b3(0x402)),'locate':_0x671263['t'](_0x3267b3(0x2ab)),'expand':_0x671263['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x671263['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x671263['t'](_0x3267b3(0x2a9)),'search':_0x671263['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x671263['t'](_0x3267b3(0x391)),'filterHidden':_0x671263['t'](_0x3267b3(0x352)),'filterLocked':_0x671263['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x671263['t'](_0x3267b3(0x26d)),'sectionFloating':_0x671263['t'](_0x3267b3(0x344))},_0x50d887=_0x3bcf4c(_0x2b8a3e),_0x41348d=_0x3bcf4c(_0x1d15d2),_0x3a5e19=_0x3bcf4c(_0x4ba6b3),_0x30c518=_0x3bcf4c(_0x19d008),_0x1dcb84=_0x3bcf4c(_0x1e1faa),[,_0x15519f]=_0x3da1b7(_0x5f20da=>_0x5f20da+0x1,0x0),_0xb3dbbf=_0x41348d[_0x3267b3(0x28a)](_0x58aa7b['UNIVER_SHEET']),_0x1ec76f=(_0xb3dbbf==null?void 0x0:_0xb3dbbf[_0x3267b3(0x1b0)]())??'',_0x1af784=(_0xb3dbbf==null||(_0x17de3d=_0xb3dbbf['getActiveSheet']())==null?void 0x0:_0x17de3d[_0x3267b3(0x15f)]())??'',_0x55b72b=_0x54184f(()=>_0x30c518[_0x3267b3(0x3f5)],_0x30c518['getFocusDrawings'](),!0x1,[_0x30c518]);_0x5c63a2(()=>{let _0x37517a=_0x50d887['onCommandExecuted'](()=>_0x15519f());return()=>_0x37517a['dispose']();},[_0x50d887]);let _0x4eb336=_0x1ec76f&&_0x1af784?_0x3a5e19[_0x3267b3(0x1a5)](_0x1ec76f,_0x1af784):{},_0x3f6fa5=(_0x1ec76f&&_0x1af784?_0x3a5e19['getDrawingOrder'](_0x1ec76f,_0x1af784):[])[_0x3267b3(0x316)](_0x5a9e5f=>_0x4eb336[_0x5a9e5f])['filter'](_0x2d640a=>!!_0x2d640a)[_0x3267b3(0x332)](),_0xd4d192=_0x3f6fa5[_0x3267b3(0x378)]((_0x3dc5b7,_0x63c10a)=>(_0x3dc5b7[_0x286e3b(_0x63c10a[_0x3267b3(0x198)])]+=0x1,_0x3dc5b7),{'canvas':0x0,'floating':0x0}),_0x26786b={'canvas':0x0,'floating':0x0},_0xa534ae=_0x3f6fa5[_0x3267b3(0x316)]((_0x585081,_0x11ae47)=>{const _0x4b3a51=_0x3267b3;let _0x234606=_0x286e3b(_0x585081[_0x4b3a51(0x198)]),_0x513133=_0x234606===_0x3904f4,_0x334752=_0x26786b[_0x234606]++;return{'id':_0x585081[_0x4b3a51(0x290)],'name':Qi(_0x585081,_0x11ae47,_0x671263),'description':_0x585081[_0x4b3a51(0x18c)],'visible':_0x585081[_0x4b3a51(0x182)]!==!0x0,'selectable':_0x585081['selectable']!==!0x1,'sectionId':_0x234606,'sectionTitle':_0x513133?_0x12a4b4[_0x4b3a51(0x357)]:_0x12a4b4[_0x4b3a51(0x2c9)],'capabilities':_0x513133?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x513133&&_0x334752>0x0,'canMoveBackward':!_0x513133&&_0x334752<_0xd4d192[_0x4b3a51(0x27a)]-0x1,'canReorder':!_0x513133};}),_0x51e679=_0x23fcdc(()=>(_0x55b72b??[])['filter'](_0x23a38d=>_0x23a38d[_0x3267b3(0x277)]===_0x1ec76f&&_0x23a38d[_0x3267b3(0x3d0)]===_0x1af784)[_0x3267b3(0x316)](_0x768f48=>_0x768f48['drawingId']),[_0x55b72b,_0x1af784,_0x1ec76f]),_0x1a68b5=_0x51e679[_0x51e679[_0x3267b3(0x1c3)]-0x1]??null,_0x671431=_0x4aa164=>_0x3a5e19[_0x3267b3(0x2da)]({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x4aa164})??null,_0x22fd2c=async _0x358fe3=>{const _0x410cf5=_0x3267b3;_0x1ec76f&&_0x358fe3[_0x410cf5(0x1c3)]&&await _0x50d887[_0x410cf5(0x40b)](_0x297360['id'],{'unitId':_0x1ec76f,'drawings':_0x358fe3});},_0x2278f5=async(_0x2e3886,_0x39d003)=>{_0x671431(_0x2e3886)&&await _0x22fd2c([{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x2e3886,..._0x39d003}]);},_0x1284e9=(_0x51ae9f,_0x137244)=>{const _0x4ba4db=_0x3267b3;if(!_0x1ec76f||!_0x1af784)return;let _0x307943=_0x137244?_0x51e679[_0x4ba4db(0x3ec)](_0x51ae9f)?_0x51e679[_0x4ba4db(0x3c0)](_0x121d57=>_0x121d57!==_0x51ae9f):[..._0x51e679,_0x51ae9f]:[_0x51ae9f];_0x50d887['syncExecuteCommand'](_0x2b2ec1['id'],_0x307943[_0x4ba4db(0x316)](_0x3099d7=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x3099d7})));let _0xf70dfe=_0x307943[_0x307943[_0x4ba4db(0x1c3)]-0x1];_0xf70dfe?_0x2179ed(_0x1dcb84,{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0xf70dfe}):_0x156f61(_0x1dcb84,_0x1ec76f);},_0x2bdf95=async(_0x28f07f,_0xa51f5c)=>{const _0x303c06=_0x3267b3;await _0x22fd2c(_0x28f07f[_0x303c06(0x316)](_0x1997f5=>_0x671431(_0x1997f5))[_0x303c06(0x3c0)](_0x10a5a4=>!!_0x10a5a4)['filter'](_0x172785=>_0x172785[_0x303c06(0x182)]!==!0x0!==_0xa51f5c)[_0x303c06(0x316)](_0x5ee25=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x5ee25[_0x303c06(0x290)],'hidden':!_0xa51f5c})));},_0x2641e5=async(_0x55b377,_0x2dd908)=>{const _0xbbeb69=_0x3267b3;await _0x22fd2c(_0x55b377['map'](_0x3170c2=>_0x671431(_0x3170c2))[_0xbbeb69(0x3c0)](_0x1ad0ce=>!!_0x1ad0ce)[_0xbbeb69(0x3c0)](_0x327d85=>_0x327d85['selectable']!==!0x1!==_0x2dd908)['map'](_0x281e60=>({'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingId':_0x281e60[_0xbbeb69(0x290)],'selectable':_0x2dd908})));},_0x5aba94=_0x507152=>{const _0x24a72e=_0x3267b3;let _0x395867=_0x671431(_0x507152);if(_0x395867)return _0x2641e5([_0x507152],_0x395867[_0x24a72e(0x2d6)]===!0x1);},_0x539739=async(_0x44e4f0,_0x13d387)=>{const _0x2d1497=_0x3267b3;var _0x33107;let _0x3b5539=Zi(_0x13d387);(((_0x33107=_0x671431(_0x44e4f0))==null?void 0x0:_0x33107[_0x2d1497(0x16e)])??void 0x0)!==_0x3b5539&&await _0x2278f5(_0x44e4f0,{'name':_0x3b5539});},_0x2c4232=async(_0x36d617,_0xc7fedd)=>{const _0x540dd4=_0x3267b3;var _0x4e4ae9;let _0x2c97aa=Zi(_0xc7fedd);(((_0x4e4ae9=_0x671431(_0x36d617))==null?void 0x0:_0x4e4ae9[_0x540dd4(0x18c)])??void 0x0)!==_0x2c97aa&&await _0x2278f5(_0x36d617,{'description':_0x2c97aa});},_0x2de48b=async(_0x5c0fd5,_0x4fa71a)=>{const _0x3e8fc6=_0x3267b3;_0x1ec76f&&_0x1af784&&await _0x50d887[_0x3e8fc6(0x40b)](_0x8e2df9['id'],{'unitId':_0x1ec76f,'subUnitId':_0x1af784,'drawingIds':[_0x5c0fd5],'arrangeType':_0x4fa71a});};return!_0x1ec76f||!_0x1af784?_0x230828(_0x3267b3(0x412),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x12a4b4[_0x3267b3(0x303)]}):_0x230828(_0x45968a,{'labels':_0x12a4b4,'items':_0xa534ae,'selectedIds':_0x51e679,'focusedId':_0x1a68b5,'showHeader':!0x1,'onSelect':_0x1284e9,'onSetVisible':_0x2bdf95,'onSetSelectable':_0x2641e5,'onCommitName':_0x539739,'onCommitDescription':_0x2c4232,'onMoveForward':async _0x376e8f=>_0x2de48b(_0x376e8f,_0x426c14[_0x3267b3(0x24f)]),'onMoveBackward':async _0x3b2f45=>_0x2de48b(_0x3b2f45,_0x426c14[_0x3267b3(0x3dd)]),'onToggleSelectable':_0x5aba94});}function ea(){return _0x230828($i,{'PanelComponent':_0x5174cb});}let ta=class extends _0xe29064{constructor(_0x27c934,_0x5ec6f7){const _0x3856f0=_0x714ef0;super(),this[_0x3856f0(0x238)](_0x27c934[_0x3856f0(0x268)](Rr,ea)),this[_0x3856f0(0x238)](_0x5ec6f7[_0x3856f0(0x268)]({'BottomIcon':_0x5d75f2,'FlipHorizontalIcon':_0x4b0f8a,'FlipVerticalIcon':_0x5e2243,'MoveDownIcon':_0x178ad9,'MoveUpIcon':_0x1ab950,'ObjectLayersIcon':_0xe11253,'ShapeFormatSettingIcon':_0x1496d5,'TopmostIcon':_0x215261})),this['disposeWithMe'](_0x27c934[_0x3856f0(0x268)](Jr,ti)),this[_0x3856f0(0x238)](_0x27c934[_0x3856f0(0x268)](Yr,Qr)),_0x27c934[_0x3856f0(0x200)](_0x4fdf51)||this['disposeWithMe'](_0x27c934[_0x3856f0(0x268)](_0x4fdf51,$r));}};ta=X([Y(0x0,_0x5c502f(_0x5a67d0)),Y(0x1,_0x5c502f(_0x1567a8))],ta);let $=class extends _0xe29064{constructor(_0x1a2c0e){const _0x1c5c30=_0x714ef0;super(),this[_0x1c5c30(0x326)]=_0x1a2c0e,q(this,_0x1c5c30(0x1d7),new _0x50fa27(null)),q(this,_0x1c5c30(0x31e),this[_0x1c5c30(0x1d7)][_0x1c5c30(0x42b)]()),q(this,_0x1c5c30(0x42a),new _0x50fa27(!0x1)),q(this,_0x1c5c30(0x17f),this[_0x1c5c30(0x42a)][_0x1c5c30(0x42b)]()),q(this,_0x1c5c30(0x37d),void 0x0),this[_0x1c5c30(0x238)](this[_0x1c5c30(0x326)]['permissionPointUpdate$'][_0x1c5c30(0x3e4)](()=>{const _0x372e7e=_0x1c5c30;let _0x92f6d9=this[_0x372e7e(0x42e)]();_0x92f6d9!=null&&_0x92f6d9[_0x372e7e(0x206)]&&!this[_0x372e7e(0x3fd)](_0x92f6d9)&&this[_0x372e7e(0x380)](null);}));}[_0x714ef0(0x232)](){const _0x1604dc=_0x714ef0;this[_0x1604dc(0x2e3)](),this[_0x1604dc(0x1d7)]['next'](null),this[_0x1604dc(0x1d7)][_0x1604dc(0x1a4)](),this['_onSavingEditorData$'][_0x1604dc(0x3ee)](!0x1),this[_0x1604dc(0x42a)]['complete'](),super[_0x1604dc(0x232)]();}[_0x714ef0(0x380)](_0x2e0c40){const _0x193cca=_0x714ef0;(_0x2e0c40==null||!_0x2e0c40['visible']||this[_0x193cca(0x3fd)](_0x2e0c40))&&(this[_0x193cca(0x2e3)](),this[_0x193cca(0x1d7)][_0x193cca(0x3ee)](_0x2e0c40),(_0x2e0c40==null||_0x2e0c40[_0x193cca(0x206)]&&this[_0x193cca(0x42a)][_0x193cca(0x217)]())&&this['_onSavingEditorData$'][_0x193cca(0x3ee)](!0x1));}[_0x714ef0(0x2ce)](_0x512314){const _0x314f3d=_0x714ef0;this[_0x314f3d(0x42a)][_0x314f3d(0x3ee)](_0x512314);}[_0x714ef0(0x42e)](){const _0x5c44a4=_0x714ef0;return this[_0x5c44a4(0x1d7)][_0x5c44a4(0x217)]();}[_0x714ef0(0x3fd)](_0x51a91e){const _0x325379=_0x714ef0;let _0x2a8793=this[_0x325379(0x326)][_0x325379(0x3d2)](new _0xe0fab9(_0x51a91e[_0x325379(0x277)])['id']),_0xee7424=this['_permissionService']['getPermissionPoint'](new _0x123e53(_0x51a91e[_0x325379(0x277)],_0x51a91e[_0x325379(0x3d0)])['id']);return((_0x2a8793==null?void 0x0:_0x2a8793[_0x325379(0x313)])??!0x0)&&((_0xee7424==null?void 0x0:_0xee7424['value'])??!0x0);}['completeEditing'](_0x5865a6){const _0x141a8e=_0x714ef0;let _0x51eea8=this[_0x141a8e(0x42e)]();_0x51eea8&&this[_0x141a8e(0x37d)]===void 0x0&&(this[_0x141a8e(0x2ce)](!0x0),this[_0x141a8e(0x37d)]=requestAnimationFrame(()=>{const _0x493926=_0x141a8e;this['_completionFrame']=void 0x0,this[_0x493926(0x42e)]()===_0x51eea8&&this[_0x493926(0x380)](null);}));}['_clearCompletionFrame'](){const _0x29ec77=_0x714ef0;this[_0x29ec77(0x37d)]!==void 0x0&&(cancelAnimationFrame(this[_0x29ec77(0x37d)]),this[_0x29ec77(0x37d)]=void 0x0);}['cancelEditing'](){const _0x42fa64=_0x714ef0;this[_0x42fa64(0x42e)]()&&this[_0x42fa64(0x380)](null);}};$=X([Y(0x0,_0x9a590e)],$);let na=class extends _0xe29064{constructor(_0x4739b6,_0x1998c5,_0x4e8d29,_0x2db5b5,_0x405d6f,_0x562cdb){const _0x12fc48=_0x714ef0;super(),this[_0x12fc48(0x22a)]=_0x4739b6,this[_0x12fc48(0x210)]=_0x1998c5,this[_0x12fc48(0x26b)]=_0x4e8d29,this[_0x12fc48(0x20f)]=_0x2db5b5,this[_0x12fc48(0x1a2)]=_0x405d6f,this[_0x12fc48(0x251)]=_0x562cdb,q(this,_0x12fc48(0x17d),null),this['_initEvents'](),this['_initSelection'](),this[_0x12fc48(0x1f9)]();}[_0x714ef0(0x351)](){const _0x27f5b5=_0x714ef0;let {scene:_0x489fe1}=this[_0x27f5b5(0x22a)];this[_0x27f5b5(0x238)](_0x489fe1['onDblclick$'][_0x27f5b5(0x212)](_0x122bfd=>{const _0x3b33b5=_0x27f5b5;let {offsetX:_0x3da0cb,offsetY:_0x2b680a}=_0x122bfd,_0x12047d=_0x489fe1[_0x3b33b5(0x358)](_0x5be732['FromArray']([_0x3da0cb,_0x2b680a]));if(_0x12047d instanceof J){let _0x488fa0=this['_sheetsShapeService']['getShapeModel'](_0x12047d[_0x3b33b5(0x277)],_0x12047d[_0x3b33b5(0x3d0)],_0x12047d[_0x3b33b5(0x21d)]);if(_0x4cb876(this[_0x3b33b5(0x251)][_0x3b33b5(0x2fc)](_0x12047d[_0x3b33b5(0x277)],_0x12047d[_0x3b33b5(0x3d0)],_0x12047d[_0x3b33b5(0x21d)]))||_0x488fa0!=null&&_0x488fa0[_0x3b33b5(0x3c4)]()[_0x3b33b5(0x317)])return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x12047d[_0x3b33b5(0x277)],'subUnitId':_0x12047d['subUnitId'],'shapeId':_0x12047d[_0x3b33b5(0x21d)],'shapeKey':_0x12047d[_0x3b33b5(0x266)]});}}));}[_0x714ef0(0x336)](){const _0x1fe801=_0x714ef0;this[_0x1fe801(0x238)](this[_0x1fe801(0x20f)]['focus$'][_0x1fe801(0x3e4)](_0x8fa25b=>{const _0x9179ee=_0x1fe801;if(_0x8fa25b[_0x9179ee(0x1c3)]===0x1){let _0x4c1368=_0x8fa25b[0x0],_0x486204=this[_0x9179ee(0x20f)][_0x9179ee(0x2da)](_0x4c1368);if((_0x486204==null?void 0x0:_0x486204[_0x9179ee(0x198)])===_0x544f7a[_0x9179ee(0x2c1)]){var _0x39406d;let _0x1a65cc=this[_0x9179ee(0x26b)][_0x9179ee(0x42e)]();if((_0x1a65cc==null?void 0x0:_0x1a65cc[_0x9179ee(0x21d)])===_0x4c1368['drawingId']&&_0x1a65cc[_0x9179ee(0x206)])return;let _0x23e6f9=_0x4cb876(this[_0x9179ee(0x251)][_0x9179ee(0x2fc)](_0x4c1368[_0x9179ee(0x277)],_0x4c1368[_0x9179ee(0x3d0)],_0x4c1368[_0x9179ee(0x290)])),_0x261fb6=!!((_0x39406d=this[_0x9179ee(0x251)][_0x9179ee(0x199)](_0x4c1368[_0x9179ee(0x277)],_0x4c1368['subUnitId'],_0x4c1368['drawingId']))!=null&&_0x39406d[_0x9179ee(0x3c4)]()['formulaBinding']);(_0x23e6f9||_0x261fb6)&&this[_0x9179ee(0x26b)][_0x9179ee(0x380)](null);}else this['_shapeTextEditingService']['completeEditing']();}else this[_0x9179ee(0x26b)]['completeEditing']();})),this[_0x1fe801(0x238)](this['_drawingManagerService']['remove$'][_0x1fe801(0x3e4)](_0x30cb86=>{const _0x512c54=_0x1fe801;let _0x14d69a=this[_0x512c54(0x26b)][_0x512c54(0x42e)]();_0x14d69a&&_0x30cb86['some'](_0x13c0c0=>_0x13c0c0[_0x512c54(0x290)]===_0x14d69a[_0x512c54(0x21d)])&&this['_shapeTextEditingService'][_0x512c54(0x380)](null);}));}['_initEditingParams'](){const _0x394a31=_0x714ef0;this[_0x394a31(0x238)](this[_0x394a31(0x26b)][_0x394a31(0x31e)]['subscribe'](_0x389117=>{const _0x5016cd=_0x394a31;let {scene:_0x2ad9e8}=this[_0x5016cd(0x22a)];if(this[_0x5016cd(0x17d)]){let _0x184847=_0x2ad9e8['getObjectIncludeInGroup'](this[_0x5016cd(0x17d)]);_0x184847&&_0x184847['setEditing'](!0x1);}if(_0x389117){let _0x1c3bc9=!!_0x389117['visible'],_0x33730e=_0x2ad9e8[_0x5016cd(0x252)](_0x389117[_0x5016cd(0x172)]);_0x33730e&&(_0x33730e[_0x5016cd(0x380)](_0x1c3bc9),this[_0x5016cd(0x17d)]=_0x389117[_0x5016cd(0x172)]),this['_contextService']['setContextValue'](_0xd91ec1,_0x1c3bc9);}else this['_lastEditingShapeKey']=null,this[_0x5016cd(0x1a2)][_0x5016cd(0x237)](_0xd91ec1,!0x1);}));}};na=X([Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x5c502f($)),Y(0x3,_0x19d008),Y(0x4,_0x3ae1e3),Y(0x5,_0x5c502f(_0x5b8f71))],na);var ra=class extends na{[_0x714ef0(0x351)](){const _0x538858=_0x714ef0;let {scene:_0x208dc6}=this[_0x538858(0x22a)],_0xbfaef8=this[_0x538858(0x210)][_0x538858(0x2dd)](_0x9eb493);this['disposeWithMe'](_0x208dc6[_0x538858(0x40e)][_0x538858(0x212)](_0x37bde9=>{const _0x5cf06d=_0x538858;let {offsetX:_0x14f1c8,offsetY:_0x388c24}=_0x37bde9,_0x788583=_0x208dc6[_0x5cf06d(0x358)](_0x5be732[_0x5cf06d(0x271)]([_0x14f1c8,_0x388c24]));if(!(_0x788583 instanceof J))return;let _0x12d86c=this[_0x5cf06d(0x251)][_0x5cf06d(0x199)](_0x788583['unitId'],_0x788583[_0x5cf06d(0x3d0)],_0x788583[_0x5cf06d(0x21d)]);_0x4cb876(this[_0x5cf06d(0x251)]['getShapeType'](_0x788583[_0x5cf06d(0x277)],_0x788583[_0x5cf06d(0x3d0)],_0x788583[_0x5cf06d(0x21d)]))||_0x12d86c!=null&&_0x12d86c['getShapeData']()[_0x5cf06d(0x317)]||_0xbfaef8[_0x5cf06d(0x249)]('text',{'hostType':_0x58aa7b[_0x5cf06d(0x222)],'unitId':_0x788583[_0x5cf06d(0x277)],'subUnitId':_0x788583[_0x5cf06d(0x3d0)],'shapeId':_0x788583[_0x5cf06d(0x21d)]});}));}};const ia={...Ui};let aa=class extends _0xe29064{constructor(_0x4bace3,_0x154db3,_0x3d920c,_0x46f1b6,_0x1ee4a1,_0x2b5fff,_0x5f132a,_0x195a35){const _0x3e8cc2=_0x714ef0;super(),this[_0x3e8cc2(0x369)]=_0x4bace3,this[_0x3e8cc2(0x251)]=_0x154db3,this[_0x3e8cc2(0x1a7)]=_0x3d920c,this[_0x3e8cc2(0x20f)]=_0x46f1b6,this[_0x3e8cc2(0x247)]=_0x1ee4a1,this[_0x3e8cc2(0x1a2)]=_0x2b5fff,this['_renderManagerService']=_0x5f132a,this[_0x3e8cc2(0x26b)]=_0x195a35,q(this,_0x3e8cc2(0x1af),null),this[_0x3e8cc2(0x369)]['mergeMenu'](ia),this[_0x3e8cc2(0x30c)](),this[_0x3e8cc2(0x238)](this[_0x3e8cc2(0x26b)][_0x3e8cc2(0x31e)][_0x3e8cc2(0x3e4)](_0x47bbdd=>{_0x47bbdd&&this['_clearFocusedShape']();}));}['initShapePopupMenu'](){const _0x5a809c=_0x714ef0;this['_shapePopupMenuDisposable']||=this[_0x5a809c(0x238)](_0x2cfb50(this['_renderManagerService'],_0x58aa7b[_0x5a809c(0x222)],_0x42533e=>this[_0x5a809c(0x305)](_0x42533e)));}[_0x714ef0(0x30c)](){const _0x3f0876=_0x714ef0;this['_sheetCanvasPopManagerService'][_0x3f0876(0x356)](_0x544f7a[_0x3f0876(0x2c1)],(_0x749511,_0x571dbd,_0x28b2d6,_0x31ad65)=>{const _0x126512=_0x3f0876;let _0x42dc98=this['_sheetsShapeService'][_0x126512(0x1ad)](_0x749511,_0x571dbd,_0x28b2d6),_0x4ac96b=this['_sheetsShapeService'][_0x126512(0x3a4)](_0x749511,_0x571dbd,_0x28b2d6),_0x4aa28d=_0x42dc98!==void 0x0&&!_0x4cb876(_0x42dc98)&&!(_0x4ac96b!=null&&_0x4ac96b['formulaBinding']);return[{'label':'sheets-shape-ui.editShape','index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'mode':_0x126512(0x2bf)},'disable':!0x1},..._0x4aa28d?[{'label':_0x126512(0x1ab),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'mode':_0x126512(0x281)},'disable':!0x1}]:[],{'label':_0x126512(0x298),'index':0x2,'commandId':_0x3e89af['id'],'commandParams':{'unitId':_0x749511,'drawings':[{'unitId':_0x749511,'subUnitId':_0x571dbd,'drawingId':_0x28b2d6,'drawingType':_0x31ad65}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x4b4814['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'shapeId':_0x28b2d6,'flipH':!0x0},'disable':!0x1},{'label':_0x126512(0x31c),'index':0x4,'commandId':_0x4b4814['id'],'commandParams':{'unitId':_0x749511,'subUnitId':_0x571dbd,'shapeId':_0x28b2d6,'flipV':!0x0},'disable':!0x1}];},_0x3f0876(0x40c));}['_popupMenuListener'](_0x5b3539){const _0x106e5b=_0x714ef0;let _0x59cb04=new _0x5941cd(),_0x4d07ff=null,_0x1b0f5a=()=>{const _0x336e92=_0x5396;if(!_0x4d07ff)return;let _0x59739a=this[_0x336e92(0x20f)][_0x336e92(0x3dc)](),_0x1eb578=_0x59739a[_0x336e92(0x1c3)]===0x0||_0x59739a['length']===0x1&&_0x59739a['some'](_0x5ed85a=>_0x5ed85a['unitId']===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x277)])&&_0x5ed85a[_0x336e92(0x3d0)]===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x3d0)])&&_0x5ed85a['drawingId']===(_0x4d07ff==null?void 0x0:_0x4d07ff[_0x336e92(0x290)]));_0x4d07ff=null,_0x1eb578&&(this['_contextService'][_0x336e92(0x237)](_0x435760,!0x1),this[_0x336e92(0x20f)]['focusDrawing'](null));};return _0x59cb04[_0x106e5b(0x25e)](_0x5b3539[_0x106e5b(0x1c5)][_0x106e5b(0x3e4)](()=>{const _0x57bda2=_0x106e5b;let _0x38eb59=_0x5b3539['getSelectedObjectMap']();if(_0x38eb59[_0x57bda2(0x296)]>0x1){_0x1b0f5a();return;}let _0x1db376=_0x38eb59[_0x57bda2(0x1f8)]()[_0x57bda2(0x3ee)]()['value'];if(!_0x1db376){_0x1b0f5a();return;}let _0x24ec04=this[_0x57bda2(0x20f)][_0x57bda2(0x208)](_0x1db376[_0x57bda2(0x266)]);if(!_0x24ec04||_0x24ec04[_0x57bda2(0x198)]!==_0x544f7a[_0x57bda2(0x2c1)]){_0x1b0f5a();return;}let {unitId:_0x39f27b,subUnitId:_0x7620cc,drawingId:_0x55e5b8}=_0x24ec04;_0x4d07ff={'unitId':_0x39f27b,'subUnitId':_0x7620cc,'drawingId':_0x55e5b8},this[_0x57bda2(0x1a2)][_0x57bda2(0x237)](_0x435760,!0x0),this[_0x57bda2(0x20f)][_0x57bda2(0x3dc)]()[_0x57bda2(0x1f7)](_0x3cc23f=>_0x3cc23f[_0x57bda2(0x277)]===_0x39f27b&&_0x3cc23f[_0x57bda2(0x3d0)]===_0x7620cc&&_0x3cc23f[_0x57bda2(0x290)]===_0x55e5b8)||this[_0x57bda2(0x20f)][_0x57bda2(0x36f)]([{'unitId':_0x39f27b,'subUnitId':_0x7620cc,'drawingId':_0x55e5b8}]);})),_0x59cb04['add'](_0x5b3539[_0x106e5b(0x1e5)][_0x106e5b(0x3e4)](()=>{_0x1b0f5a();})),_0x128476(()=>{const _0x4ce89a=_0x106e5b;_0x59cb04[_0x4ce89a(0x232)](),_0x1b0f5a();});}[_0x714ef0(0x38f)](){const _0xa5bb49=_0x714ef0;this[_0xa5bb49(0x1a2)][_0xa5bb49(0x237)](_0x435760,!0x1),this[_0xa5bb49(0x20f)][_0xa5bb49(0x36f)](null);}};aa=X([Y(0x0,_0x308400),Y(0x1,_0x5c502f(_0x5b8f71)),Y(0x2,_0x2b8a3e),Y(0x3,_0x19d008),Y(0x4,_0x5c502f(_0x2373db)),Y(0x5,_0x3ae1e3),Y(0x6,_0x1e1faa),Y(0x7,_0x5c502f($))],aa);function oa(_0x3d34c3,_0x2df8d0,_0x2f1c2d,_0x596b80){const _0x2af13e=_0x714ef0;let _0x47b982=_0x16a868(_0x3d34c3,_0x2df8d0,_0x2f1c2d),_0x210c29=[];for(let _0x322a7b of _0x2df8d0){let _0x3266e3=_0x47b982[_0x2af13e(0x3d5)][_0x2af13e(0x2dd)](_0x322a7b[_0x2af13e(0x290)]),_0x3be3bc=_0x596b80(_0x322a7b);_0x3266e3&&_0x3be3bc&&_0x210c29[_0x2af13e(0x181)]({'targetShapeId':_0x3266e3,'source':_0x3be3bc});}return _0x210c29;}let sa=class extends _0xe29064{constructor(_0x3f5855,_0x1c46ff,_0x5a8cac,_0x4f5718){const _0x5f011b=_0x714ef0;super(),this[_0x5f011b(0x2be)]=_0x3f5855,this[_0x5f011b(0x1d8)]=_0x1c46ff,this[_0x5f011b(0x404)]=_0x5a8cac,this[_0x5f011b(0x251)]=_0x4f5718,this[_0x5f011b(0x1dd)]();}[_0x714ef0(0x1dd)](){const _0x5e859f=_0x714ef0;this[_0x5e859f(0x238)](this[_0x5e859f(0x1d8)]['interceptCommand']({'getMutations':_0x287fa9=>{const _0x1b58dd=_0x5e859f;if(_0x287fa9['id']===_0x21d984['id']){let _0x46ee9b=_0x510a30(this[_0x1b58dd(0x2be)],_0x287fa9[_0x1b58dd(0x387)]);if(!_0x46ee9b)return{'redos':[],'undos':[]};let {unitId:_0x14220c,subUnitId:_0x60e8da}=_0x46ee9b,_0x33a0c0=this[_0x1b58dd(0x404)][_0x1b58dd(0x1a5)](_0x14220c,_0x60e8da),_0x3b1599=Object[_0x1b58dd(0x1f8)](_0x33a0c0)[_0x1b58dd(0x3c0)](_0x3ae10b=>_0x3ae10b[_0x1b58dd(0x198)]===_0x544f7a[_0x1b58dd(0x2c1)]);if(_0x3b1599[_0x1b58dd(0x1c3)]===0x0)return{'redos':[],'undos':[]};let _0x130a98=[],_0x21b89a=[];for(let _0x19ee2e=0x0;_0x19ee2e<_0x3b1599[_0x1b58dd(0x1c3)];_0x19ee2e++){let _0x3c4509=_0x3b1599[_0x19ee2e],_0x4378bb=this[_0x1b58dd(0x251)][_0x1b58dd(0x199)](_0x3c4509[_0x1b58dd(0x277)],_0x3c4509[_0x1b58dd(0x3d0)],_0x3c4509['drawingId']);_0x4378bb&&(_0x130a98[_0x1b58dd(0x181)]({'id':_0x2506a4['id'],'params':{'unitId':_0x14220c,'subUnitId':_0x60e8da,'shapeId':_0x3c4509[_0x1b58dd(0x290)]}}),_0x21b89a[_0x1b58dd(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x14220c,'subUnitId':_0x60e8da,'shapeId':_0x3c4509[_0x1b58dd(0x290)],'shapeType':_0x4378bb[_0x1b58dd(0x2fc)](),'shapeData':JSON['parse'](JSON[_0x1b58dd(0x3cb)](_0x4378bb[_0x1b58dd(0x3c4)]()))}}));}return{'redos':_0x130a98,'undos':_0x21b89a};}if(_0x287fa9['id']===_0x2b64f6['id']){let {unitId:_0x43fae3,subUnitId:_0x49f897,targetSubUnitId:_0x556d3c,copyContext:_0xfe2d49}=_0x287fa9[_0x1b58dd(0x387)];if(!_0x43fae3||!_0x49f897||!_0x556d3c)return{'redos':[],'undos':[]};let _0x5d51e7=this[_0x1b58dd(0x404)]['getDrawingData'](_0x43fae3,_0x49f897),_0x5b7710=Object[_0x1b58dd(0x1f8)](_0x5d51e7)['filter'](_0x2fdfd4=>_0x2fdfd4[_0x1b58dd(0x198)]===_0x544f7a[_0x1b58dd(0x2c1)]);if(_0x5b7710[_0x1b58dd(0x1c3)]===0x0)return{'redos':[],'undos':[]};let _0x56805a=oa(_0xfe2d49,_0x5b7710,{'unitId':_0x43fae3,'sourceSubUnitId':_0x49f897,'targetSubUnitId':_0x556d3c},_0x534071=>{const _0x51535b=_0x1b58dd;let _0x5c331a=this[_0x51535b(0x251)][_0x51535b(0x199)](_0x534071[_0x51535b(0x277)],_0x534071['subUnitId'],_0x534071['drawingId']);if(_0x5c331a)return{'shapeType':_0x5c331a[_0x51535b(0x2fc)](),'shapeData':JSON['parse'](JSON['stringify'](_0x5c331a[_0x51535b(0x3c4)]()))};}),_0x458585=[],_0x24ebb3=[];for(let {targetShapeId:_0x5c678f,source:_0x5479be}of _0x56805a)_0x458585[_0x1b58dd(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x43fae3,'subUnitId':_0x556d3c,'shapeId':_0x5c678f,'shapeType':_0x5479be[_0x1b58dd(0x3b7)],'shapeData':_0x5479be[_0x1b58dd(0x3be)]}}),_0x24ebb3['push']({'id':_0x2506a4['id'],'params':{'unitId':_0x43fae3,'subUnitId':_0x556d3c,'shapeId':_0x5c678f}});return{'redos':_0x458585,'undos':_0x24ebb3};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x5c502f(_0x1d15d2)),Y(0x1,_0x5c502f(_0x2a88c5)),Y(0x2,_0x5c502f(_0x4ba6b3)),Y(0x3,_0x5c502f(_0x5b8f71))],sa);let ca=class extends _0xe29064{constructor(_0x303663,_0x22633b,_0x1cf3f3,_0x5ef66e,_0x5f429a,_0x2dbf65){const _0x53a8b6=_0x714ef0;super(),this[_0x53a8b6(0x1a7)]=_0x303663,this['_renderManagerService']=_0x22633b,this[_0x53a8b6(0x20f)]=_0x1cf3f3,this[_0x53a8b6(0x1cb)]=_0x5ef66e,this[_0x53a8b6(0x1c4)]=_0x5f429a,this[_0x53a8b6(0x416)]=_0x2dbf65,q(this,_0x53a8b6(0x421),new Set()),this[_0x53a8b6(0x1da)]();}[_0x714ef0(0x1da)](){const _0x203980=_0x714ef0;this[_0x203980(0x35f)](),this[_0x203980(0x227)](),this[_0x203980(0x311)]();}[_0x714ef0(0x35f)](){const _0x4a6990=_0x714ef0;this[_0x4a6990(0x238)](this[_0x4a6990(0x20f)][_0x4a6990(0x1f6)][_0x4a6990(0x3e4)](_0x31233a=>{const _0x2a879b=_0x4a6990;this[_0x2a879b(0x19f)](_0x31233a);}));}[_0x714ef0(0x227)](){const _0x97f055=_0x714ef0;this['disposeWithMe'](this[_0x97f055(0x1a7)][_0x97f055(0x40f)]((_0x23c9f3,_0xd8fca4)=>{const _0x2129dc=_0x97f055;if(_0x23c9f3['id']===_0x197dab['id']){let {unitId:_0x71c727,subUnitId:_0xca694c,shapeId:_0x535327}=_0x23c9f3[_0x2129dc(0x387)],_0x441d62=this['_getSceneAndTransformerByDrawingSearch'](_0x71c727),_0x4f7b5f=_0x562c30({'unitId':_0x71c727,'subUnitId':_0xca694c,'drawingId':_0x535327}),_0x2a99b2=_0x441d62==null?void 0x0:_0x441d62['scene']['getObjectIncludeInGroup'](_0x4f7b5f);_0x2a99b2&&(this[_0x2129dc(0x416)]['refreshShapeFillImage'](_0x2a99b2),this['_sheetDrawingShapeRenderController'][_0x2129dc(0x1c2)](_0x2a99b2,{'unitId':_0x71c727,'subUnitId':_0xca694c,'shapeId':_0x535327}),_0x2a99b2[_0x2129dc(0x226)](!0x0));}else{if(_0x23c9f3['id']===_0x269d0a['id']){var _0x33d53b;let {unitId:_0x12d314,subUnitId:_0x21a054,shapeId:_0x14d3a6}=_0x23c9f3[_0x2129dc(0x387)],_0x147873=this[_0x2129dc(0x190)](_0x12d314);if(_0x147873==null)return;let {scene:_0x44ac10}=_0x147873,_0x1ad6e5=_0x562c30({'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}),_0x213fcc=_0x44ac10[_0x2129dc(0x252)](_0x1ad6e5);if(!((_0x33d53b=this[_0x2129dc(0x2cf)][_0x2129dc(0x2af)](_0x12d314))!=null&&_0x33d53b[_0x2129dc(0x3e6)](_0x44086e)[_0x2129dc(0x1f4)](_0x21a054)))return!0x1;if(_0x213fcc)return;if(_0xd8fca4!=null&&_0xd8fca4[_0x2129dc(0x383)]){queueMicrotask(()=>{const _0x4f0a8d=_0x2129dc;this['_disposed']||this[_0x4f0a8d(0x19f)]([{'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}]);});return;}this[_0x2129dc(0x19f)]([{'unitId':_0x12d314,'subUnitId':_0x21a054,'drawingId':_0x14d3a6}]);}}}));}[_0x714ef0(0x311)](){const _0x5d15d6=_0x714ef0;this[_0x5d15d6(0x238)](this['_drawingManagerService'][_0x5d15d6(0x22f)][_0x5d15d6(0x3e4)](_0x1b28b1=>{_0x1b28b1['forEach'](_0x54aa4d=>{const _0x5d919b=_0x5396;let {unitId:_0x443dd9,subUnitId:_0x25a842,drawingId:_0x285346}=_0x54aa4d,_0x39c7f7=this[_0x5d919b(0x20f)][_0x5d919b(0x2da)](_0x54aa4d);if(_0x39c7f7==null)return;let {transform:_0x47f08e,drawingType:_0x426d86,srcRect:_0x1f5fc2,prstGeom:_0x5de441}=_0x39c7f7;if(_0x426d86!==_0x544f7a[_0x5d919b(0x2c1)])return;let _0x589959=this[_0x5d919b(0x190)](_0x443dd9);if(_0x589959==null)return;let {scene:_0x21065b,transformer:_0x1e4a34}=_0x589959;if(_0x47f08e==null)return!0x0;let _0x192a30=_0x562c30({'unitId':_0x443dd9,'subUnitId':_0x25a842,'drawingId':_0x285346}),_0x356c82=_0x21065b[_0x5d919b(0x252)](_0x192a30);if(_0x356c82==null)return!0x0;_0x356c82[_0x5d919b(0x323)](_0x1f5fc2),_0x356c82[_0x5d919b(0x3b4)](_0x5de441);});}));}[_0x714ef0(0x19f)](_0x13fdbc){const _0x533d8d=_0x714ef0;for(let _0x3d63d1 of _0x13fdbc){var _0x58fdbc;let {unitId:_0x5efd3c,subUnitId:_0x184af9,drawingId:_0x57b4a}=_0x3d63d1,_0x54b590=this[_0x533d8d(0x190)](_0x5efd3c),_0x3ab308=(_0x58fdbc=_0x52a805(this[_0x533d8d(0x1cb)],_0x5efd3c))==null?void 0x0:_0x58fdbc[_0x533d8d(0x3d0)];if(_0x54b590==null||_0x3ab308!==_0x184af9)return;let _0x5652a0=_0x562c30({'unitId':_0x5efd3c,'subUnitId':_0x184af9,'drawingId':_0x57b4a});if(this['_insertingShapeKeys'][_0x533d8d(0x2c6)](_0x5652a0)||_0x54b590[_0x533d8d(0x1d4)]['getObjectIncludeInGroup'](_0x5652a0)!=null)return;let _0x52c277=this[_0x533d8d(0x20f)]['getDrawingByParam'](_0x3d63d1);if(_0x52c277==null||_0x52c277[_0x533d8d(0x198)]!==_0x544f7a[_0x533d8d(0x2c1)])return;let _0x66e6d3=_0x52c277[_0x533d8d(0x307)]||{};if(_0x4cb876(_0x66e6d3[_0x533d8d(0x3b7)])){let _0x221721=_0x52c277['transform'];_0x221721&&(_0x52c277[_0x533d8d(0x29f)]={..._0x221721,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x533d8d(0x25e)](_0x5652a0);try{this['_sheetDrawingShapeRenderController'][_0x533d8d(0x258)](_0x52c277,_0x54b590[_0x533d8d(0x1d4)]);}finally{this['_insertingShapeKeys'][_0x533d8d(0x2a2)](_0x5652a0);}queueMicrotask(()=>{const _0x479495=_0x533d8d;if(this['_disposed'])return;let _0x3914fe=_0x562c30(_0x3d63d1);if(!_0x54b590[_0x479495(0x1d4)][_0x479495(0x252)](_0x3914fe))return;let _0x4c35bf=this[_0x479495(0x20f)][_0x479495(0x2da)](_0x3d63d1);_0x4c35bf&&this[_0x479495(0x20f)][_0x479495(0x285)]([_0x4c35bf]);});}}[_0x714ef0(0x190)](_0x329eed){const _0x433a5b=_0x714ef0;if(_0x329eed==null)return;let _0x37bc95=this['_renderManagerService'][_0x433a5b(0x2af)](_0x329eed),_0x23159e=_0x37bc95==null?void 0x0:_0x37bc95[_0x433a5b(0x1d4)];return _0x23159e==null?null:{'scene':_0x23159e,'transformer':_0x23159e[_0x433a5b(0x218)]()};}};ca=X([Y(0x0,_0x2b8a3e),Y(0x1,_0x1e1faa),Y(0x2,_0x19d008),Y(0x3,_0x1d15d2),Y(0x4,_0x5c502f(_0x596343)),Y(0x5,_0x5c502f(Z))],ca);const la={'normal':{'fill':_0x4945a0[_0x714ef0(0x34c)],'stroke':_0x4945a0[_0x714ef0(0x280)],'strokeWidth':_0x4945a0[_0x714ef0(0x2ba)]},'highlighted':{'fill':_0x714ef0(0x312),'stroke':_0x714ef0(0x37e),'strokeWidth':0x2}};var ua=class extends _0x240da9{constructor(_0x2a146d,_0xa67886){const _0x30aafd=_0x714ef0;super(_0x2a146d,_0xa67886),q(this,_0x30aafd(0x335),''),q(this,_0x30aafd(0x3e1),-0x1),q(this,_0x30aafd(0x180),''),q(this,_0x30aafd(0x3af),''),q(this,_0x30aafd(0x3c5),!0x1),_0xa67886&&this['setShapeProps'](_0xa67886);}[_0x714ef0(0x337)](){const _0x5b1b29=_0x714ef0;return{'unitId':this[_0x5b1b29(0x180)],'subUnitId':this[_0x5b1b29(0x3af)],'shapeId':this[_0x5b1b29(0x335)],'cxnIndex':this['_cxnIndex']};}[_0x714ef0(0x18b)](_0x41b843){const _0x6d682c=_0x714ef0;this['_isHighlighted']!==_0x41b843&&(this['_isHighlighted']=_0x41b843,this[_0x6d682c(0x226)](!0x0));}[_0x714ef0(0x3b9)](){const _0x2f9b6f=_0x714ef0;return this[_0x2f9b6f(0x3c5)];}[_0x714ef0(0x30a)](_0x322e4f){const _0x4ea83d=_0x714ef0;_0x322e4f[_0x4ea83d(0x1e6)]!==void 0x0&&(this['_targetShapeId']=_0x322e4f[_0x4ea83d(0x1e6)]),_0x322e4f[_0x4ea83d(0x1bc)]!==void 0x0&&(this['_cxnIndex']=_0x322e4f['cxnIndex']),_0x322e4f[_0x4ea83d(0x277)]!==void 0x0&&(this[_0x4ea83d(0x180)]=_0x322e4f[_0x4ea83d(0x277)]),_0x322e4f[_0x4ea83d(0x3d0)]!==void 0x0&&(this['_subUnitId']=_0x322e4f[_0x4ea83d(0x3d0)]),_0x322e4f[_0x4ea83d(0x3b9)]!==void 0x0&&(this[_0x4ea83d(0x3c5)]=_0x322e4f[_0x4ea83d(0x3b9)]),this[_0x4ea83d(0x1b1)]({'width':_0x322e4f['width']??_0x4945a0[_0x4ea83d(0x389)]*0x2,'height':_0x322e4f[_0x4ea83d(0x2d4)]??_0x4945a0[_0x4ea83d(0x389)]*0x2});}[_0x714ef0(0x24b)](_0x2bd096){const _0x49832d=_0x714ef0;let _0x45608e=this['_isHighlighted']?la[_0x49832d(0x2de)]:la['normal'];_0x540920[_0x49832d(0x385)](_0x2bd096,{'radius':_0x4945a0[_0x49832d(0x389)],'fill':_0x45608e[_0x49832d(0x3f6)],'stroke':_0x45608e['stroke'],'strokeWidth':_0x45608e[_0x49832d(0x166)],'evented':!0x0});}};let da=class extends _0xe29064{constructor(_0x3c8651,_0x12a7e9,_0x189cc3,_0x1f4cb3){const _0x3d1fac=_0x714ef0;super(),this[_0x3d1fac(0x22a)]=_0x3c8651,this[_0x3d1fac(0x2cf)]=_0x12a7e9,this[_0x3d1fac(0x20f)]=_0x189cc3,this['_sheetsShapeService']=_0x1f4cb3,q(this,_0x3d1fac(0x165),[]),q(this,_0x3d1fac(0x3d3),null),q(this,_0x3d1fac(0x188),-0x1),q(this,'_currentScene',null),q(this,_0x3d1fac(0x180),''),q(this,_0x3d1fac(0x3af),''),q(this,_0x3d1fac(0x38a),null);}['startConnectionDetection'](_0x421bda,_0x175c92,_0x65dfb2,_0x5991fe){const _0x1b9581=_0x714ef0;this[_0x1b9581(0x3ce)]=_0x421bda,this['_unitId']=_0x175c92,this[_0x1b9581(0x3af)]=_0x65dfb2,this[_0x1b9581(0x38a)]=_0x5991fe;}[_0x714ef0(0x2e8)](_0x48b561){const _0x5e52e1=_0x714ef0;if(!this[_0x5e52e1(0x3ce)])return null;let _0x170f8b=this[_0x5e52e1(0x26f)](_0x48b561);return _0x170f8b?(this[_0x5e52e1(0x3d3)]!==_0x170f8b[_0x5e52e1(0x21d)]&&(this[_0x5e52e1(0x342)](),this[_0x5e52e1(0x176)](_0x170f8b[_0x5e52e1(0x21d)],_0x170f8b[_0x5e52e1(0x2e9)]),this[_0x5e52e1(0x3d3)]=_0x170f8b[_0x5e52e1(0x21d)]),this[_0x5e52e1(0x32f)](_0x48b561)):(this['_activeTargetShapeId']!==null&&(this[_0x5e52e1(0x342)](),this['_activeTargetShapeId']=null),null);}[_0x714ef0(0x340)](){const _0xf32714=_0x714ef0;this[_0xf32714(0x342)](),this[_0xf32714(0x3ce)]=null,this[_0xf32714(0x3d3)]=null,this[_0xf32714(0x188)]=-0x1,this[_0xf32714(0x38a)]=null;}[_0x714ef0(0x329)](){const _0x23cde5=_0x714ef0;return this[_0x23cde5(0x3d3)]===null||this[_0x23cde5(0x188)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x23cde5(0x188)]};}['_findShapeAtPoint'](_0x37263d){const _0x27d820=_0x714ef0;let _0x3d0433=this[_0x27d820(0x20f)][_0x27d820(0x1a5)](this[_0x27d820(0x180)],this['_subUnitId']);for(let _0x183984 of Object[_0x27d820(0x1a3)](_0x3d0433)){if(_0x183984===this[_0x27d820(0x38a)]||_0x3d0433[_0x183984][_0x27d820(0x198)]!==_0x544f7a[_0x27d820(0x2c1)])continue;let _0x419ef6=this[_0x27d820(0x251)][_0x27d820(0x199)](this['_unitId'],this[_0x27d820(0x3af)],_0x183984);if(!_0x419ef6||_0x4cb876(_0x419ef6[_0x27d820(0x2fc)]())||_0x419ef6[_0x27d820(0x3e3)]()['length']===0x0||!this[_0x27d820(0x3ce)])continue;let _0x2d106a=_0x562c30({'unitId':this[_0x27d820(0x180)],'subUnitId':this[_0x27d820(0x3af)],'drawingId':_0x183984}),_0x42546b=this['_currentScene'][_0x27d820(0x252)](_0x2d106a);if(!_0x42546b)continue;let {left:_0x46cad6,top:_0x5c69f4,width:_0x135e7f,height:_0x2adb32}=_0x42546b[_0x27d820(0x27e)](),_0x4b1f72=_0x46cad6+_0x135e7f/0x2,_0x434554=_0x5c69f4+_0x2adb32/0x2,_0x2d3872=_0x42546b[_0x27d820(0x29f)][_0x27d820(0x231)](),_0x5bbf68=new _0x5a3b07([_0x2d3872[0x0],_0x2d3872[0x1],_0x2d3872[0x2],_0x2d3872[0x3],_0x4b1f72,_0x434554]),_0x4db4d8=_0x42546b[_0x27d820(0x20a)](),_0x2db424=(_0x42546b[_0x27d820(0x3eb)]&&(_0x4db4d8==null?void 0x0:_0x4db4d8[_0x27d820(0x3d6)])===_0x61e19a['GROUP']?_0x4db4d8[_0x27d820(0x2dc)][_0x27d820(0x196)](_0x5bbf68):_0x5bbf68)[_0x27d820(0x265)]()[_0x27d820(0x171)](_0x37263d),_0x5e3079=_0x135e7f/0x2,_0x1f01aa=_0x2adb32/0x2;if(_0x2db424['x']>=-_0x5e3079-0x5&&_0x2db424['x']<=_0x5e3079+0x5&&_0x2db424['y']>=-_0x1f01aa-0x5&&_0x2db424['y']<=_0x1f01aa+0x5)return{'shapeId':_0x183984,'shapeModel':_0x419ef6};}return null;}[_0x714ef0(0x176)](_0xe1e896,_0x488012){const _0x590e64=_0x714ef0;if(!this[_0x590e64(0x3ce)])return;let _0x5d2068=_0x562c30({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0xe1e896}),_0x256fb4=this[_0x590e64(0x3ce)][_0x590e64(0x252)](_0x5d2068);if(!_0x256fb4)return;let {left:_0x3749b7,top:_0x1a9f57,width:_0x2c85d2,height:_0x1d55de}=_0x256fb4[_0x590e64(0x27e)](),_0x197800=_0x3749b7+_0x2c85d2/0x2,_0x5b54d9=_0x1a9f57+_0x1d55de/0x2,_0x54e795=_0x256fb4['transform'][_0x590e64(0x231)](),_0x1a3a5b=new _0x5a3b07([_0x54e795[0x0],_0x54e795[0x1],_0x54e795[0x2],_0x54e795[0x3],_0x197800,_0x5b54d9]),_0x28a4ff=_0x256fb4['getParent'](),_0x276dad=_0x256fb4[_0x590e64(0x3eb)]&&(_0x28a4ff==null?void 0x0:_0x28a4ff[_0x590e64(0x3d6)])===_0x61e19a['GROUP']?_0x28a4ff['ancestorTransform']['multiply'](_0x1a3a5b):_0x1a3a5b;_0x488012[_0x590e64(0x2b8)]({'width':_0x2c85d2,'height':_0x1d55de});let _0x343171=_0x488012[_0x590e64(0x3e3)]();for(let _0x52e7e4 of _0x343171){let _0x29f2d7=_0x52e7e4['x']-_0x2c85d2/0x2,_0x617d57=_0x52e7e4['y']-_0x1d55de/0x2,_0x5358ca=_0x276dad[_0x590e64(0x171)]({'x':_0x29f2d7,'y':_0x617d57}),_0x2ced0d=_0x5358ca['x'],_0x5e407e=_0x5358ca['y'],_0xc74ef6=new ua(_0x590e64(0x418)+_0xe1e896+'-'+_0x52e7e4[_0x590e64(0x330)],{'left':_0x2ced0d-_0x4945a0[_0x590e64(0x389)],'top':_0x5e407e-_0x4945a0['cxnPointRadius'],'targetShapeId':_0xe1e896,'cxnIndex':_0x52e7e4['index'],'unitId':this['_unitId'],'subUnitId':this[_0x590e64(0x3af)],'width':_0x4945a0[_0x590e64(0x389)]*0x2,'height':_0x4945a0[_0x590e64(0x389)]*0x2,'zIndex':_0x4232ac+0x2,'evented':!0x1});this[_0x590e64(0x165)][_0x590e64(0x181)](_0xc74ef6),this[_0x590e64(0x3ce)][_0x590e64(0x213)](_0xc74ef6,_0x4232ac+0x2);}}[_0x714ef0(0x32f)](_0x2b2463){const _0x19999c=_0x714ef0;let _0x284adf=null,_0x6afb36=0x1/0x0,_0x676eb8=null;for(let _0x29b54c of this[_0x19999c(0x165)]){let _0x20e1be=_0x29b54c['left']+_0x4945a0[_0x19999c(0x389)],_0x284d62=_0x29b54c[_0x19999c(0x211)]+_0x4945a0[_0x19999c(0x389)],_0x2bd119=_0x2b2463['x']-_0x20e1be,_0x1ee6f9=_0x2b2463['y']-_0x284d62,_0x24ca2e=Math[_0x19999c(0x36e)](_0x2bd119*_0x2bd119+_0x1ee6f9*_0x1ee6f9);_0x24ca2e<_0x6afb36&&(_0x6afb36=_0x24ca2e,_0x284adf=_0x29b54c,_0x676eb8={'x':_0x20e1be,'y':_0x284d62});}let _0x3f4d2b=_0x6afb36<=0xa&&_0x284adf?_0x284adf[_0x19999c(0x337)]()[_0x19999c(0x1bc)]:-0x1;if(_0x3f4d2b!==this['_highlightedSiteIndex']){for(let _0x38d25d of this['_connectionSiteObjects']){let _0x2c35b5=_0x38d25d['getConnectionInfo']();_0x38d25d[_0x19999c(0x18b)](_0x2c35b5['cxnIndex']===_0x3f4d2b);}this[_0x19999c(0x188)]=_0x3f4d2b;}if(_0x6afb36<=0xa&&_0x284adf&&_0x676eb8){let _0x2be685=_0x284adf['getConnectionInfo'](),_0x47d55e=this[_0x19999c(0x3ea)](_0x2be685['shapeId'],_0x2be685[_0x19999c(0x1bc)]);return{'shapeId':_0x2be685[_0x19999c(0x21d)],'cxnIndex':_0x2be685['cxnIndex'],'unitId':_0x2be685[_0x19999c(0x277)],'subUnitId':_0x2be685[_0x19999c(0x3d0)],'worldPoint':_0x676eb8,'angle':_0x47d55e};}return null;}['_getConnectionSiteAngle'](_0x2b2307,_0x295f4c){const _0x4a7c6d=_0x714ef0;let _0x562a4b=this[_0x4a7c6d(0x251)][_0x4a7c6d(0x199)](this[_0x4a7c6d(0x180)],this['_subUnitId'],_0x2b2307);if(!_0x562a4b)return 0x0;let _0x45d2b3=this[_0x4a7c6d(0x20f)][_0x4a7c6d(0x2da)]({'unitId':this[_0x4a7c6d(0x180)],'subUnitId':this[_0x4a7c6d(0x3af)],'drawingId':_0x2b2307});if(!(_0x45d2b3!=null&&_0x45d2b3[_0x4a7c6d(0x29f)]))return 0x0;let {width:_0x4c5d38=0x0,height:_0x53b436=0x0,flipX:_0x9ca91f=!0x1,flipY:_0x16c1f1=!0x1}=_0x45d2b3['transform'];_0x562a4b[_0x4a7c6d(0x2b8)]({'width':_0x4c5d38,'height':_0x53b436});let _0x8c6fe5=_0x562a4b[_0x4a7c6d(0x3e3)]()[_0x4a7c6d(0x1f7)](_0x5d26c8=>_0x5d26c8[_0x4a7c6d(0x330)]===_0x295f4c);if(!_0x8c6fe5)return 0x0;let _0xecc740=_0x8c6fe5[_0x4a7c6d(0x34a)]/0xea60;return _0x9ca91f&&(_0xecc740=0xb4-_0xecc740),_0x16c1f1&&(_0xecc740=-_0xecc740),_0xecc740=(_0xecc740%0x168+0x168)%0x168,_0xecc740;}[_0x714ef0(0x342)](){const _0x289d6c=_0x714ef0;for(let _0x3e5429 of this[_0x289d6c(0x165)])_0x3e5429[_0x289d6c(0x232)]();this[_0x289d6c(0x165)]=[],this[_0x289d6c(0x188)]=-0x1;}[_0x714ef0(0x232)](){const _0x134a65=_0x714ef0;this[_0x134a65(0x342)](),super[_0x134a65(0x232)]();}};da=X([Y(0x1,_0x5c502f(_0x1e1faa)),Y(0x2,_0x5c502f(_0x19d008)),Y(0x3,_0x5c502f(_0x5b8f71))],da);let fa=class extends _0xe29064{constructor(_0x57e7d1,_0x671a93,_0x5e0f92,_0x82fed5,_0x557a04){const _0x5651fb=_0x714ef0;super(),this['_sheetSkeletonService']=_0x57e7d1,this[_0x5651fb(0x250)]=_0x671a93,this[_0x5651fb(0x404)]=_0x5e0f92,this[_0x5651fb(0x382)]=_0x82fed5,this[_0x5651fb(0x2f3)]=_0x557a04,q(this,_0x5651fb(0x1bf),void 0x0),this[_0x5651fb(0x22d)](),this[_0x5651fb(0x41d)]();}get[_0x714ef0(0x1a1)](){const _0x2a4965=_0x714ef0;return this[_0x2a4965(0x404)]['getFocusDrawings']();}['_registerGroupFeaturePasteHook'](){const _0x5e1f52=_0x714ef0;this[_0x5e1f52(0x2f3)][_0x5e1f52(0x24d)](({fromUnitId:_0x2ae3aa,fromSubUnitId:_0x3edeb5,toUnitId:_0x35b744,toSubUnitId:_0x6bef68,idMap:_0x5e79fa})=>{const _0x16d4f9=_0x5e1f52;let _0xa56f1f=[],_0x2693c9=[];for(let [_0x39ac27,_0x468a5e]of _0x5e79fa[_0x16d4f9(0x374)]()){let _0x56bd30=this['_shapeService'][_0x16d4f9(0x199)](_0x2ae3aa,_0x3edeb5,_0x39ac27);if(!_0x56bd30)continue;let _0x2aaa99=_0x56bd30[_0x16d4f9(0x2fc)](),_0x513b26=JSON[_0x16d4f9(0x33b)](JSON[_0x16d4f9(0x3cb)](_0x56bd30[_0x16d4f9(0x3c4)]()));if(_0x513b26[_0x16d4f9(0x3cf)]){var _0x4d4343,_0x3a186d;let _0x2d1fec=(_0x4d4343=_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)])==null?void 0x0:_0x4d4343[_0x16d4f9(0x21d)],_0x4ee913=(_0x3a186d=_0x513b26[_0x16d4f9(0x3cf)]['to'])==null?void 0x0:_0x3a186d[_0x16d4f9(0x21d)],_0x5e6d38=!_0x2d1fec||_0x5e79fa['has'](_0x2d1fec),_0x484cd4=!_0x4ee913||_0x5e79fa[_0x16d4f9(0x2c6)](_0x4ee913);_0x5e6d38&&_0x2d1fec&&_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]?_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]={..._0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)],'shapeId':_0x5e79fa[_0x16d4f9(0x2dd)](_0x2d1fec)}:_0x513b26[_0x16d4f9(0x3cf)][_0x16d4f9(0x248)]=void 0x0,_0x484cd4&&_0x4ee913&&_0x513b26[_0x16d4f9(0x3cf)]['to']?_0x513b26[_0x16d4f9(0x3cf)]['to']={..._0x513b26[_0x16d4f9(0x3cf)]['to'],'shapeId':_0x5e79fa[_0x16d4f9(0x2dd)](_0x4ee913)}:_0x513b26['relation']['to']=void 0x0;}_0xa56f1f[_0x16d4f9(0x181)]({'id':_0x269d0a['id'],'params':{'unitId':_0x35b744,'subUnitId':_0x6bef68,'shapeId':_0x468a5e,'shapeType':_0x2aaa99,'shapeData':_0x513b26}}),_0x2693c9[_0x16d4f9(0x181)]({'id':_0x2506a4['id'],'params':{'unitId':_0x35b744,'subUnitId':_0x6bef68,'shapeId':_0x468a5e}});}return{'redos':_0xa56f1f,'undos':_0x2693c9};});}[_0x714ef0(0x22d)](){const _0xf6066e=_0x714ef0;this[_0xf6066e(0x238)](this[_0xf6066e(0x250)][_0xf6066e(0x27f)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x42f87e,_0x1c19e1,_0x4efa4c)=>{const _0x1a2872=_0xf6066e;this[_0x1a2872(0x1bf)]=null;let _0x385fcf=this[_0x1a2872(0x1a1)][_0x1a2872(0x3c0)](_0x3bfa98=>_0x3bfa98['drawingType']===_0x544f7a[_0x1a2872(0x2c1)]);return _0x385fcf[_0x1a2872(0x1c3)]!==0x0&&(this[_0x1a2872(0x1bf)]={'unitId':_0x42f87e,'subUnitId':_0x1c19e1,'copyType':_0x4efa4c,'drawings':_0x385fcf},!0x0);},'onBeforeCopy':(_0x100bdb,_0x4fee5b,_0x3396b0,_0x391632)=>{const _0x25e2b4=_0xf6066e;this['_copyInfo']=null,this[_0x25e2b4(0x3df)](_0x100bdb,_0x4fee5b,_0x3396b0,_0x391632);},'onPasteCells':(_0x40f753,_0x4adcf1,_0x593341,_0x277cda)=>{const _0x5c0991=_0xf6066e;if(!_0x277cda[_0x5c0991(0x2d5)]||!_0x40f753||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x551911}=_0x277cda;return _0x551911===_0x205afc[_0x5c0991(0x194)]?this[_0x5c0991(0x30f)](_0x4adcf1,this['_copyInfo'][_0x5c0991(0x407)]===_0x22fdbb[_0x5c0991(0x359)]):{'redos':[],'undos':[]};}}));}[_0x714ef0(0x3df)](_0x20a1af,_0x5ab220,_0x724111,_0x1f544c){const _0x15b95f=_0x714ef0;let _0x4df965=this[_0x15b95f(0x1cc)][_0x15b95f(0x1f4)](_0x20a1af,_0x5ab220);if(!_0x4df965)return;let _0x4cc394=_0x50939b(_0x4df965,_0x724111);if(!_0x4cc394)return;let {startX:_0x4bb148,endX:_0x2510e8,startY:_0xa56980,endY:_0x2338ff}=_0x4cc394,_0x495581=this[_0x15b95f(0x404)]['getDrawingData'](_0x20a1af,_0x5ab220),_0x3308ff=[];for(let [_0x3598bf,_0x4e9e20]of Object[_0x15b95f(0x374)](_0x495581)){if(_0x4e9e20[_0x15b95f(0x198)]!==_0x544f7a[_0x15b95f(0x2c1)])continue;let {transform:_0x4694b0}=_0x4e9e20;if(!_0x4694b0)continue;let {left:_0x16f97f=0x0,top:_0x55bfeb=0x0,width:_0x250183=0x0,height:_0x181fc1=0x0}=_0x4694b0;_0x4bb148<=_0x16f97f&&_0x2510e8>=_0x16f97f+_0x250183&&_0xa56980<=_0x55bfeb&&_0x2338ff>=_0x55bfeb+_0x181fc1&&_0x3308ff[_0x15b95f(0x181)](_0x4e9e20);}_0x3308ff[_0x15b95f(0x1c3)]>0x0&&(this[_0x15b95f(0x1bf)]={'unitId':_0x20a1af,'subUnitId':_0x5ab220,'copyType':_0x1f544c,'copyRange':_0x724111,'drawings':_0x3308ff});}[_0x714ef0(0x30f)](_0xed7ca4,_0xdb6913){const _0x3c261f=_0x714ef0;let {unitId:_0x36f739,subUnitId:_0x3e0b0c,range:_0x592506}=_0xed7ca4,_0x188090=this[_0x3c261f(0x1cc)]['getSkeleton'](_0x36f739,_0x3e0b0c);if(!_0x188090)return{'redos':[],'undos':[]};let _0x5e62a3=_0x5de548(_0x592506),{unitId:_0x1d77cc,subUnitId:_0x3f8461,copyRange:_0xfc1406,drawings:_0x122404}=this['_copyInfo'],_0xc99ae4=this['_sheetSkeletonService'][_0x3c261f(0x1f4)](_0x1d77cc,_0x3f8461);if(!_0xc99ae4)return{'redos':[],'undos':[]};let _0x336704;if(!_0xfc1406){let _0x2aff55=0x1/0x0,_0x2595dd=0x1/0x0;for(let _0x183e3a of _0x122404){let {left:_0x2fef13=0x0,top:_0x31bc3a=0x0}=_0x183e3a[_0x3c261f(0x29f)]??{};_0x2fef13<_0x2aff55&&(_0x2aff55=_0x2fef13),_0x31bc3a<_0x2595dd&&(_0x2595dd=_0x31bc3a);}_0x2aff55!==0x1/0x0&&_0x2595dd!==0x1/0x0&&(_0x336704={'left':_0x2aff55,'top':_0x2595dd});}let _0x307df8=new Map();if(!_0xdb6913){for(let _0x49d8ae of _0x122404)_0x307df8[_0x3c261f(0x160)](_0x49d8ae['drawingId'],_0x2f2dbb());}let _0x69b3ac=[],_0x544fd8=[];for(let _0x5b8f9a of _0x122404){let {drawingId:_0x165a66,transform:_0x1334e2,sheetTransform:_0xf653e1}=_0x5b8f9a;if(!_0x1334e2||!_0xf653e1)continue;let _0x440699=this[_0x3c261f(0x30e)]({'transform':_0x1334e2,'sheetTransform':_0xf653e1},{'skeleton':_0xc99ae4,'range':_0xfc1406},{'skeleton':_0x188090,'range':_0x5e62a3},_0x336704);if(_0xdb6913){let {redos:_0x185c13,undos:_0xa5dbc9}=this[_0x3c261f(0x349)]({'fromUnitId':_0x1d77cc,'fromSubUnitId':_0x3f8461,'toUnitId':_0x36f739,'toSubUnitId':_0x3e0b0c,'drawing':_0x5b8f9a,'newTransforms':_0x440699});_0x69b3ac[_0x3c261f(0x181)](..._0x185c13),_0x544fd8[_0x3c261f(0x181)](..._0xa5dbc9);continue;}let {redos:_0x3f389b,undos:_0x19180d}=this[_0x3c261f(0x2eb)]({'toUnitId':_0x36f739,'toSubUnitId':_0x3e0b0c,'drawing':_0x5b8f9a,'newTransforms':_0x440699,'newDrawingId':_0x307df8[_0x3c261f(0x2dd)](_0x165a66),'idMap':_0x307df8});_0x69b3ac[_0x3c261f(0x181)](..._0x3f389b),_0x544fd8[_0x3c261f(0x181)](..._0x19180d);}return{'redos':_0x69b3ac,'undos':_0x544fd8};}[_0x714ef0(0x349)](_0x201935){const _0x1feb3d=_0x714ef0;let {fromUnitId:_0x2c5deb,fromSubUnitId:_0x2cb688,toUnitId:_0x6d3c25,toSubUnitId:_0x386578,drawing:_0x4c7513,newTransforms:_0x15e40e}=_0x201935,_0x5d3901={..._0x4c7513,'unitId':_0x6d3c25,'subUnitId':_0x386578,'transform':_0x15e40e[_0x1feb3d(0x29f)],'sheetTransform':_0x15e40e[_0x1feb3d(0x431)]};if(_0x6d3c25===_0x2c5deb&&_0x386578===_0x2cb688){let {redo:_0xafccb0,undo:_0x29b06f,objects:_0xe1dd33}=this['_sheetDrawingService'][_0x1feb3d(0x284)]([_0x5d3901]);return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x42d)],'op':_0xafccb0,'objects':_0xe1dd33}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x42d)],'op':_0x29b06f,'objects':_0xe1dd33}}]};}{let _0x165b18=this['_sheetDrawingService'][_0x1feb3d(0x3bc)]([_0x4c7513]),_0x4d18e6=this[_0x1feb3d(0x404)]['getBatchAddOp']([_0x5d3901]),_0x5ce36f=this['_shapeService'][_0x1feb3d(0x199)](_0x4c7513['unitId'],_0x4c7513[_0x1feb3d(0x3d0)],_0x4c7513[_0x1feb3d(0x290)]);if(!_0x5ce36f)return{'redos':[],'undos':[]};let _0x5e123f=_0x5ce36f[_0x1feb3d(0x2fc)](),_0x4cb204=JSON[_0x1feb3d(0x33b)](JSON['stringify'](_0x5ce36f[_0x1feb3d(0x3c4)]()));return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'type':_0x377ac1[_0x1feb3d(0x3ff)],'op':_0x165b18[_0x1feb3d(0x37a)],'objects':_0x165b18[_0x1feb3d(0x2b7)]}},{'id':_0x2506a4['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'shapeId':_0x4c7513[_0x1feb3d(0x290)]}},{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x31f)],'op':_0x4d18e6[_0x1feb3d(0x37a)],'objects':_0x4d18e6['objects']}},{'id':_0x269d0a['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'shapeId':_0x4c7513[_0x1feb3d(0x290)],'shapeType':_0x5e123f,'shapeData':_0x4cb204}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'type':_0x377ac1[_0x1feb3d(0x31f)],'op':_0x165b18[_0x1feb3d(0x3f7)],'objects':_0x165b18['objects']}},{'id':_0x269d0a['id'],'params':{'unitId':_0x2c5deb,'subUnitId':_0x2cb688,'shapeId':_0x4c7513[_0x1feb3d(0x290)],'shapeType':_0x5e123f,'shapeData':_0x4cb204}},{'id':_0x2221ab['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'type':_0x377ac1[_0x1feb3d(0x3ff)],'op':_0x4d18e6['undo'],'objects':_0x4d18e6[_0x1feb3d(0x2b7)]}},{'id':_0x2506a4['id'],'params':{'unitId':_0x6d3c25,'subUnitId':_0x386578,'shapeId':_0x4c7513[_0x1feb3d(0x290)]}}]};}}[_0x714ef0(0x2eb)](_0x3504de){const _0x3c83d2=_0x714ef0;let {toUnitId:_0x35c813,toSubUnitId:_0x46ae62,drawing:_0x17bca0,newTransforms:_0x101808,newDrawingId:_0x3565fc,idMap:_0x36bc3a}=_0x3504de,_0x52f5c8={..._0x17bca0,'unitId':_0x35c813,'subUnitId':_0x46ae62,'drawingId':_0x3565fc,'transform':_0x101808[_0x3c83d2(0x29f)],'sheetTransform':_0x101808[_0x3c83d2(0x431)]},{redo:_0x57980a,undo:_0x1172cb,objects:_0x3cce05}=this[_0x3c83d2(0x404)]['getBatchAddOp']([_0x52f5c8]),_0x2e3764=this[_0x3c83d2(0x382)][_0x3c83d2(0x199)](_0x17bca0[_0x3c83d2(0x277)],_0x17bca0[_0x3c83d2(0x3d0)],_0x17bca0[_0x3c83d2(0x290)]);if(!_0x2e3764)return{'redos':[],'undos':[]};let _0x4bf7ff=_0x2e3764[_0x3c83d2(0x2fc)](),_0xa07e0f=JSON[_0x3c83d2(0x33b)](JSON[_0x3c83d2(0x3cb)](_0x2e3764[_0x3c83d2(0x3c4)]()));if(_0xa07e0f['relation']){var _0x18838c,_0x4ac835;let _0x3c1987=(_0x18838c=_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)])==null?void 0x0:_0x18838c[_0x3c83d2(0x21d)],_0x371b57=(_0x4ac835=_0xa07e0f[_0x3c83d2(0x3cf)]['to'])==null?void 0x0:_0x4ac835['shapeId'],_0x10d6bd=!_0x3c1987||_0x36bc3a[_0x3c83d2(0x2c6)](_0x3c1987),_0x629665=!_0x371b57||_0x36bc3a[_0x3c83d2(0x2c6)](_0x371b57);_0x10d6bd&&_0x3c1987&&_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)]?_0xa07e0f['relation']['from']={..._0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)],'shapeId':_0x36bc3a[_0x3c83d2(0x2dd)](_0x3c1987)}:_0xa07e0f[_0x3c83d2(0x3cf)][_0x3c83d2(0x248)]=void 0x0,_0x629665&&_0x371b57&&_0xa07e0f[_0x3c83d2(0x3cf)]['to']?_0xa07e0f[_0x3c83d2(0x3cf)]['to']={..._0xa07e0f[_0x3c83d2(0x3cf)]['to'],'shapeId':_0x36bc3a['get'](_0x371b57)}:_0xa07e0f[_0x3c83d2(0x3cf)]['to']=void 0x0;}return{'redos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'type':_0x377ac1[_0x3c83d2(0x31f)],'op':_0x57980a,'objects':_0x3cce05}},{'id':_0x269d0a['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'shapeId':_0x3565fc,'shapeType':_0x4bf7ff,'shapeData':_0xa07e0f}}],'undos':[{'id':_0x2221ab['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'type':_0x377ac1[_0x3c83d2(0x3ff)],'op':_0x1172cb,'objects':_0x3cce05}},{'id':_0x2506a4['id'],'params':{'unitId':_0x35c813,'subUnitId':_0x46ae62,'shapeId':_0x3565fc}}]};}[_0x714ef0(0x30e)](_0x5be6ff,_0x3aaa6b,_0x4a3aaf,_0x28ab4f){const _0x508fc6=_0x714ef0;let {range:_0x1d6396,skeleton:_0x28ab1f}=_0x3aaa6b,{range:_0x105c3a,skeleton:_0x113bd1}=_0x4a3aaf,{transform:_0x41b643,sheetTransform:_0x517596}=_0x5be6ff,_0x173079={..._0x41b643};if(_0x1d6396){let _0x55e9d4=_0x50939b(_0x28ab1f,_0x1d6396),_0x52acc9=_0x50939b(_0x113bd1,_0x105c3a);if(_0x55e9d4&&_0x52acc9){let _0x28d3b6=_0x52acc9['startX']-_0x55e9d4[_0x508fc6(0x3a1)],_0x57a35b=_0x52acc9[_0x508fc6(0x399)]-_0x55e9d4[_0x508fc6(0x399)];_0x173079['left']=(_0x173079[_0x508fc6(0x201)]??0x0)+_0x28d3b6,_0x173079[_0x508fc6(0x211)]=(_0x173079['top']??0x0)+_0x57a35b;}}else{let _0x5dd39e=_0x50939b(_0x113bd1,_0x105c3a);if(_0x28ab4f&&_0x5dd39e){let _0x1930d5=(_0x173079[_0x508fc6(0x201)]??0x0)-_0x28ab4f[_0x508fc6(0x201)],_0x25c1aa=(_0x173079[_0x508fc6(0x211)]??0x0)-_0x28ab4f[_0x508fc6(0x211)];_0x173079[_0x508fc6(0x201)]=_0x5dd39e[_0x508fc6(0x3a1)]+_0x1930d5,_0x173079[_0x508fc6(0x211)]=_0x5dd39e[_0x508fc6(0x399)]+_0x25c1aa;}else _0x173079[_0x508fc6(0x201)]=_0x5dd39e==null?void 0x0:_0x5dd39e[_0x508fc6(0x3a1)],_0x173079[_0x508fc6(0x211)]=_0x5dd39e==null?void 0x0:_0x5dd39e[_0x508fc6(0x399)];}return{'transform':_0x173079,'sheetTransform':_0x33f6ee(_0x173079,_0x113bd1)??_0x517596};}};fa=X([Y(0x0,_0x5c502f(_0x48e7a4)),Y(0x1,_0x5c502f(_0x345ee2)),Y(0x2,_0x5c502f(_0x4ba6b3)),Y(0x3,_0x5c502f(_0x5b8f71)),Y(0x4,_0x5c502f(_0x5e793f))],fa);var pa=class extends _0x240da9{constructor(_0x2815b2,_0x22d599){const _0x4c3402=_0x714ef0;super(_0x2815b2,_0x22d599),q(this,_0x4c3402(0x295),null),q(this,_0x4c3402(0x2ea),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,_0x4c3402(0x3f4),!0x1),_0x22d599&&this[_0x4c3402(0x30a)](_0x22d599);}[_0x714ef0(0x423)](){const _0x3c520d=_0x714ef0;return{'unitId':this[_0x3c520d(0x180)],'subUnitId':this[_0x3c520d(0x3af)],'drawingId':this[_0x3c520d(0x295)]};}[_0x714ef0(0x30a)](_0x41f594){const _0x3aee28=_0x714ef0;_0x41f594[_0x3aee28(0x21d)]!==void 0x0&&(this[_0x3aee28(0x295)]=_0x41f594['shapeId']),_0x41f594[_0x3aee28(0x277)]!==void 0x0&&(this[_0x3aee28(0x180)]=_0x41f594[_0x3aee28(0x277)]),_0x41f594['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x41f594[_0x3aee28(0x3d0)]),_0x41f594[_0x3aee28(0x2d2)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x41f594[_0x3aee28(0x2d2)]),this['transformByState']({'width':_0x41f594[_0x3aee28(0x253)],'height':_0x41f594[_0x3aee28(0x2d4)]});}[_0x714ef0(0x24b)](_0x2af905){const _0x10a7eb=_0x714ef0;_0x540920['drawWith'](_0x2af905,{'radius':_0x4945a0['cxnPointRadius'],'fill':_0x4945a0[_0x10a7eb(0x34c)],'stroke':_0x4945a0[_0x10a7eb(0x280)],'strokeWidth':_0x4945a0[_0x10a7eb(0x2ba)],'evented':!0x0});}};let ma=class extends _0xe29064{constructor(_0x2359c9,_0xae59,_0x11b835,_0x232b67,_0x5eadc5,_0x3d82d0,_0x139029,_0x1db2cc){const _0x46380c=_0x714ef0;super(),this[_0x46380c(0x22a)]=_0x2359c9,this['_commandService']=_0xae59,this[_0x46380c(0x2cf)]=_0x11b835,this['_drawingManagerService']=_0x232b67,this[_0x46380c(0x2be)]=_0x5eadc5,this[_0x46380c(0x251)]=_0x3d82d0,this[_0x46380c(0x3ab)]=_0x139029,this[_0x46380c(0x3cd)]=_0x1db2cc,q(this,'_activeShapeId',void 0x0),q(this,_0x46380c(0x180),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x46380c(0x3a9),[]),q(this,_0x46380c(0x259),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x46380c(0x20d),void 0x0),q(this,_0x46380c(0x390),!0x1),q(this,_0x46380c(0x19e),!0x1),q(this,_0x46380c(0x1ec),!0x1),q(this,'_cxtHandlerPointerMove',void 0x0),q(this,'_cxtHandlerPointerUp',void 0x0),q(this,'_currentConnectionTarget',null),this[_0x46380c(0x1da)]();}[_0x714ef0(0x1da)](){const _0x53349f=_0x714ef0;this[_0x53349f(0x3ae)](),this['_registerDrawingMoveHandler']();}['_getDrawingRect'](){const _0x3a45ae=_0x714ef0;if(!this[_0x3a45ae(0x180)]||!this['_subUnitId']||!this['_activeShapeId'])return;let _0x1b1ed7={'unitId':this[_0x3a45ae(0x180)],'subUnitId':this[_0x3a45ae(0x3af)],'drawingId':this[_0x3a45ae(0x3de)]},{transform:_0x210093}=this['_drawingManagerService'][_0x3a45ae(0x2da)](_0x1b1ed7);if(_0x210093)return{'left':_0x210093['left']||0x0,'top':_0x210093[_0x3a45ae(0x211)]||0x0,'width':_0x210093['width']||0x0,'height':_0x210093[_0x3a45ae(0x2d4)]||0x0,'flipX':_0x210093[_0x3a45ae(0x18d)]||!0x1,'flipY':_0x210093[_0x3a45ae(0x300)]||!0x1,'angle':_0x210093['angle']};}[_0x714ef0(0x19d)](){const _0x5b4a56=_0x714ef0;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this[_0x5b4a56(0x3de)]===void 0x0)return;let _0x644ae=this[_0x5b4a56(0x2cf)][_0x5b4a56(0x2af)](this[_0x5b4a56(0x180)]);if(!_0x644ae||!_0x644ae[_0x5b4a56(0x3e6)](_0x44086e)[_0x5b4a56(0x161)]())return;let {scene:_0x50b6a8}=_0x644ae,_0xb91c4a=this[_0x5b4a56(0x2df)]();if(!_0xb91c4a)return;let _0x5736d4=this[_0x5b4a56(0x251)][_0x5b4a56(0x199)](this[_0x5b4a56(0x180)],this[_0x5b4a56(0x3af)],this[_0x5b4a56(0x3de)]);if(!_0x5736d4||!_0x4cb876(_0x5736d4[_0x5b4a56(0x2fc)]()))return;let _0x80ff5=_0x5736d4[_0x5b4a56(0x398)]();if(_0x80ff5['length']<0x2)return;let _0x4e5168=new _0x2610e3(_0xb91c4a),_0x319b42=_0x80ff5[0x0],_0x2022c8=_0x80ff5[_0x80ff5[_0x5b4a56(0x1c3)]-0x1],_0x4552c5=_0x4e5168[_0x5b4a56(0x396)](_0x319b42),_0x4c38d2=_0x4e5168['localToWorld'](_0x2022c8);this[_0x5b4a56(0x2a5)](_0x50b6a8,{..._0x4552c5},!0x0),this[_0x5b4a56(0x2a5)](_0x50b6a8,{..._0x4c38d2},!0x1);}[_0x714ef0(0x2a5)](_0x228aba,_0x17b6d9,_0x30366c){const _0x412431=_0x714ef0;if(this[_0x412431(0x3de)]===void 0x0||this[_0x412431(0x180)]===void 0x0||this[_0x412431(0x3af)]===void 0x0)return;let _0x1447d3=_0x412431(0x3aa)+this[_0x412431(0x180)]+'-'+this[_0x412431(0x3af)]+'-'+this[_0x412431(0x3de)]+'-'+(_0x30366c?_0x412431(0x1c8):'end'),_0x299505=_0x228aba['getObjectIncludeInGroup'](_0x1447d3);if(_0x299505){_0x299505[_0x412431(0x1b1)]({'left':_0x17b6d9['x']-_0x4945a0['cxnPointRadius'],'top':_0x17b6d9['y']-_0x4945a0['cxnPointRadius']});return;}let _0x300a5a=new pa(_0x1447d3,{'left':_0x17b6d9['x']-_0x4945a0[_0x412431(0x389)],'top':_0x17b6d9['y']-_0x4945a0[_0x412431(0x389)],'shapeId':this[_0x412431(0x3de)],'unitId':this[_0x412431(0x180)],'subUnitId':this[_0x412431(0x3af)],'isStartConnectorPoint':_0x30366c,'width':_0x4945a0['cxnPointRadius']*0x2,'height':_0x4945a0[_0x412431(0x389)]*0x2,'zIndex':_0x4232ac+0x1,'evented':!0x0});this[_0x412431(0x3a9)][_0x412431(0x181)](_0x300a5a),this[_0x412431(0x2b6)](_0x300a5a,_0x228aba,_0x30366c),_0x228aba[_0x412431(0x213)](_0x300a5a,_0x4232ac+0x1);}[_0x714ef0(0x315)](_0x4de05d,_0x83eb1c){const _0x4fd6c=_0x714ef0;var _0x3035b9;let _0x4b082d={'x':0x0,'y':0x0};if(!_0x4de05d||!_0x83eb1c)return _0x4b082d;let _0x59a8ba=this[_0x4fd6c(0x2cf)][_0x4fd6c(0x2af)](_0x4de05d);if(!_0x59a8ba||!_0x59a8ba['with'](_0x44086e)[_0x4fd6c(0x1f4)](_0x83eb1c))return _0x4b082d;let _0x66e2ac=_0x59a8ba[_0x4fd6c(0x3e6)](_0x4e89db),_0x565aad=_0x66e2ac==null?void 0x0:_0x66e2ac['getCurrentScrollState']();if(!_0x565aad)return _0x4b082d;let _0x538879=(_0x3035b9=this[_0x4fd6c(0x2be)][_0x4fd6c(0x2a6)](_0x4de05d))==null?void 0x0:_0x3035b9[_0x4fd6c(0x2f0)](_0x83eb1c);if(!_0x538879)return _0x4b082d;let _0x5f063b=_0xe31858(_0x565aad[_0x4fd6c(0x3d9)],_0x565aad[_0x4fd6c(0x3f2)],_0x59a8ba[_0x4fd6c(0x1d4)],_0x538879);return _0x5f063b?{'x':_0x5f063b[_0x4fd6c(0x388)],'y':_0x5f063b[_0x4fd6c(0x17a)]}:_0x4b082d;}[_0x714ef0(0x16a)](_0x279fdd,_0x3471c7){const _0x52bec1=_0x714ef0;var _0x8846c4;let _0x3ad12c=(_0x8846c4=this[_0x52bec1(0x2be)][_0x52bec1(0x2a6)](_0x279fdd))==null?void 0x0:_0x8846c4[_0x52bec1(0x2f0)](_0x3471c7);return(_0x3ad12c==null?void 0x0:_0x3ad12c[_0x52bec1(0x3fb)]())??0x1;}[_0x714ef0(0x2a0)](_0x430516,_0x1f3a29,_0x12a8e7,_0x2345cc,_0x1dc83d){const _0x16fb13=_0x714ef0;this[_0x16fb13(0x36b)]['unsubscribe'](),this[_0x16fb13(0x2d9)]['unsubscribe'](),this[_0x16fb13(0x3ab)]['refreshAdjustControls']();let _0x2c06f7=this[_0x16fb13(0x3c1)];this[_0x16fb13(0x3cd)]['endConnectionDetection']();let _0x286b32=this[_0x16fb13(0x315)](this[_0x16fb13(0x180)],this[_0x16fb13(0x3af)]),_0x5ac090=this[_0x16fb13(0x16a)](this[_0x16fb13(0x180)],this['_subUnitId']),_0x185a96={'x':_0x12a8e7[_0x16fb13(0x1bb)]/_0x5ac090+_0x286b32['x'],'y':_0x12a8e7[_0x16fb13(0x309)]/_0x5ac090+_0x286b32['y']},_0x21da1b=_0x2c06f7?_0x2c06f7[_0x16fb13(0x2b4)]:_0x185a96,_0x26038e=_0x2345cc?this[_0x16fb13(0x20d)][_0x16fb13(0x3e8)]():this[_0x16fb13(0x20d)]['getStartConnectInfo'](),_0x4b6635=this[_0x16fb13(0x20d)][_0x16fb13(0x2fc)]();_0x26038e?this[_0x16fb13(0x3fe)](_0x26038e,_0x21da1b,_0x2345cc,_0x2c06f7,_0x1dc83d):this[_0x16fb13(0x1c9)](_0x1f3a29,_0x21da1b,_0x2345cc,_0x2c06f7,_0x1dc83d,_0x4b6635),this['_isConnecting']=!0x1,this['_hasReset']=!0x1,this[_0x16fb13(0x3c1)]=null,_0x430516[_0x16fb13(0x173)]();}[_0x714ef0(0x1c9)](_0x1a8bb3,_0x8f9226,_0xc0a92c,_0x539e1e,_0x462cef,_0x2bfcc5){const _0x489ed4=_0x714ef0;let _0x500311=_0x2bfcc5===_0xf1eb19['Line']||_0x2bfcc5===_0xf1eb19[_0x489ed4(0x1e9)],_0x51c9ef=_0xc0a92c?_0x8f9226:_0x1a8bb3,_0x1d53d3=_0xc0a92c?_0x1a8bb3:_0x8f9226,_0x5ec0cc=this['_activeShapeModel'][_0x489ed4(0x398)](),_0x1a3a6=this[_0x489ed4(0x20d)]['getShapeType'](),_0x417360=_0x179376(_0x1a3a6),_0xde566c=_0x2610e3[_0x489ed4(0x241)](_0x5ec0cc,_0x417360),_0x98e86b=_0x500311?_0x2610e3[_0x489ed4(0x32d)](_0x51c9ef,_0x1d53d3):_0x2610e3[_0x489ed4(0x28d)](_0x1a8bb3,_0x8f9226,_0xc0a92c,_0xde566c);_0x539e1e?this['_executeConnectionCommand'](_0x98e86b,_0x539e1e,_0xc0a92c,_0x462cef):this[_0x489ed4(0x25a)](_0x98e86b,_0x462cef);}[_0x714ef0(0x3fe)](_0x4f2a8b,_0x4ac13a,_0x1b8dec,_0x5a08c8,_0x1f66d0){const _0x3a1a8c=_0x714ef0;let _0x44fb67=this['_getConnectPointInfo'](_0x4f2a8b);if(!_0x44fb67)return;let _0x4d5e84=_0x5a08c8?_0x5a08c8[_0x3a1a8c(0x2ae)]:this[_0x3a1a8c(0x29b)](_0x44fb67[_0x3a1a8c(0x184)],_0x4ac13a),_0x157998;if(_0x5a08c8){let _0x1aa9ab=this[_0x3a1a8c(0x20f)][_0x3a1a8c(0x2da)]({'unitId':_0x5a08c8[_0x3a1a8c(0x277)],'subUnitId':_0x5a08c8[_0x3a1a8c(0x3d0)],'drawingId':_0x5a08c8[_0x3a1a8c(0x21d)]});if(_0x1aa9ab!=null&&_0x1aa9ab[_0x3a1a8c(0x29f)]){let {left:_0x35ff28=0x0,top:_0x444958=0x0,width:_0x1fb421=0x0,height:_0x4b9b28=0x0,angle:_0xe7f338}=_0x1aa9ab[_0x3a1a8c(0x29f)];_0x157998=_0x4191f0({'left':_0x35ff28,'top':_0x444958,'width':_0x1fb421,'height':_0x4b9b28},_0xe7f338||0x0);}else _0x157998={'left':_0x4ac13a['x'],'top':_0x4ac13a['y'],'width':0x0,'height':0x0};}else _0x157998={'left':_0x4ac13a['x'],'top':_0x4ac13a['y'],'width':0x0,'height':0x0};let _0x1a819d={'point':_0x4ac13a,'angle':_0x4d5e84,'bounds':_0x157998},_0x97a6c8=_0x1b8dec?_0x1a819d:_0x44fb67,_0x3020a4=_0x1b8dec?_0x44fb67:_0x1a819d,_0x5c0b2d=this[_0x3a1a8c(0x20d)][_0x3a1a8c(0x2fc)](),_0x598a6c=_0x22d8a5(_0x97a6c8,_0x3020a4,_0x5c0b2d);this[_0x3a1a8c(0x20d)][_0x3a1a8c(0x197)]();let _0x14f414=_0x1469b5(_0x598a6c,_0x5c0b2d);_0x5a08c8?this[_0x3a1a8c(0x35a)](_0x14f414,_0x5a08c8,_0x4f2a8b,_0x1b8dec,_0x1f66d0):this['_executeConnectedRouteResizeCommand'](_0x14f414,_0x4f2a8b,_0x1b8dec,_0x1f66d0);}[_0x714ef0(0x1bd)](_0x27058b,_0x4424dc,_0x2f7e96,_0x33dede){const _0x308a0b=_0x714ef0;let _0x4b1233=this[_0x308a0b(0x20d)]['getShapeData']()[_0x308a0b(0x3cf)],_0x77c180={..._0x4b1233},_0x29645a={'shapeId':_0x4424dc[_0x308a0b(0x21d)],'cxnIndex':_0x4424dc['cxnIndex']};_0x2f7e96?_0x77c180[_0x308a0b(0x248)]=_0x29645a:_0x77c180['to']=_0x29645a;let _0x2cf27a=this[_0x308a0b(0x20d)][_0x308a0b(0x2fc)](),_0x759ed5=_0x1469b5(_0x27058b[_0x308a0b(0x348)],_0x2cf27a),_0x512dd6={'unitId':this[_0x308a0b(0x180)],'subUnitId':this[_0x308a0b(0x3af)],'connectorShapeId':this[_0x308a0b(0x3de)],'width':_0x27058b[_0x308a0b(0x23b)][_0x308a0b(0x253)],'height':_0x27058b['worldRect']['height'],'left':_0x27058b[_0x308a0b(0x23b)]['left'],'top':_0x27058b['worldRect'][_0x308a0b(0x211)],'flipX':_0x27058b['worldRect'][_0x308a0b(0x18d)]||!0x1,'flipY':_0x27058b[_0x308a0b(0x23b)][_0x308a0b(0x300)]||!0x1,'newAdjustValues':_0x759ed5[_0x308a0b(0x33c)],'oldAdjustValues':_0x33dede,'oldRelation':_0x4b1233,'newRelation':_0x77c180,'newLineType':_0x759ed5[_0x308a0b(0x414)],'oldLineType':_0x2cf27a};this['_commandService'][_0x308a0b(0x40b)](_0x128516['id'],_0x512dd6);}[_0x714ef0(0x25a)](_0x424197,_0x58a726){const _0x33215b=_0x714ef0;let _0x380acd=this[_0x33215b(0x20d)][_0x33215b(0x2fc)](),_0x4c74a5=_0x1469b5(_0x424197[_0x33215b(0x348)],_0x380acd),_0x59a9c9={'unitId':this[_0x33215b(0x180)],'subUnitId':this[_0x33215b(0x3af)],'shapeId':this['_activeShapeId'],'width':_0x424197[_0x33215b(0x23b)][_0x33215b(0x253)],'height':_0x424197['worldRect'][_0x33215b(0x2d4)],'left':_0x424197['worldRect']['left'],'top':_0x424197[_0x33215b(0x23b)][_0x33215b(0x211)],'flipX':_0x424197[_0x33215b(0x23b)][_0x33215b(0x18d)]||!0x1,'flipY':_0x424197[_0x33215b(0x23b)][_0x33215b(0x300)]||!0x1,'angle':_0x424197[_0x33215b(0x23b)][_0x33215b(0x2ae)]||0x0,'newAdjustValues':_0x4c74a5[_0x33215b(0x33c)],'oldAdjustValues':_0x58a726,'newLineType':_0x4c74a5[_0x33215b(0x414)],'oldLineType':_0x380acd};this['_commandService']['executeCommand'](_0x48cda4['id'],_0x59a9c9);}[_0x714ef0(0x35a)](_0x344bc2,_0x19b3ca,_0x596bf2,_0x506766,_0x762934){const _0x43508c=_0x714ef0;let _0x5db069=this[_0x43508c(0x20d)][_0x43508c(0x3c4)]()[_0x43508c(0x3cf)],_0x2a5be7={..._0x5db069},_0xfb6777={'shapeId':_0x19b3ca[_0x43508c(0x21d)],'cxnIndex':_0x19b3ca[_0x43508c(0x1bc)]};_0x506766?(_0x2a5be7[_0x43508c(0x248)]=_0xfb6777,_0x2a5be7['to']=_0x596bf2):(_0x2a5be7['from']=_0x596bf2,_0x2a5be7['to']=_0xfb6777);let _0x2c4a78={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x253)],'height':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x2d4)],'left':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x201)],'top':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x211)],'flipX':_0x344bc2['worldRect']['flipX']||!0x1,'flipY':_0x344bc2[_0x43508c(0x23b)][_0x43508c(0x300)]||!0x1,'oldAdjustValues':_0x762934,'newAdjustValues':_0x344bc2['adjustValues'],'newLineType':_0x344bc2['lineType'],'rotation':_0x344bc2[_0x43508c(0x410)],'oldRelation':_0x5db069,'newRelation':_0x2a5be7};this[_0x43508c(0x1a7)][_0x43508c(0x40b)](_0x128516['id'],_0x2c4a78);}[_0x714ef0(0x223)](_0x552204,_0x569fd8,_0x599258,_0x23a3af){const _0x1d66ff=_0x714ef0;let _0x2bea2d=this[_0x1d66ff(0x20d)][_0x1d66ff(0x3c4)]()[_0x1d66ff(0x3cf)],_0x4ab6b2={};_0x599258?(_0x4ab6b2['to']=_0x569fd8,_0x4ab6b2[_0x1d66ff(0x248)]=void 0x0):(_0x4ab6b2[_0x1d66ff(0x248)]=_0x569fd8,_0x4ab6b2['to']=void 0x0);let _0xf49188={'unitId':this[_0x1d66ff(0x180)],'subUnitId':this[_0x1d66ff(0x3af)],'connectorShapeId':this[_0x1d66ff(0x3de)],'width':_0x552204['worldRect'][_0x1d66ff(0x253)],'height':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x2d4)],'left':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x201)],'top':_0x552204[_0x1d66ff(0x23b)][_0x1d66ff(0x211)],'flipX':_0x552204[_0x1d66ff(0x23b)]['flipX']||!0x1,'flipY':_0x552204[_0x1d66ff(0x23b)]['flipY']||!0x1,'oldAdjustValues':_0x23a3af,'newAdjustValues':_0x552204['adjustValues'],'newLineType':_0x552204[_0x1d66ff(0x414)],'rotation':_0x552204[_0x1d66ff(0x410)],'oldRelation':_0x2bea2d,'newRelation':_0x4ab6b2};this[_0x1d66ff(0x1a7)][_0x1d66ff(0x40b)](_0x128516['id'],_0xf49188);}[_0x714ef0(0x2b6)](_0x559dbb,_0x39b8ed,_0x34feca){const _0xdb5c84=_0x714ef0;this[_0xdb5c84(0x238)](_0x128476(_0x559dbb[_0xdb5c84(0x18e)][_0xdb5c84(0x212)]((_0x160763,_0x4f5a08)=>{const _0x2d4e77=_0xdb5c84;let _0x38b949=_0x559dbb[_0x2d4e77(0x423)]();if(this[_0x2d4e77(0x20d)]=this[_0x2d4e77(0x251)][_0x2d4e77(0x199)](_0x38b949['unitId'],_0x38b949[_0x2d4e77(0x3d0)],_0x38b949[_0x2d4e77(0x290)]),!this[_0x2d4e77(0x20d)])return;let _0x33c94e={};this[_0x2d4e77(0x20d)][_0x2d4e77(0x26a)]()['forEach'](_0xca78c2=>{const _0x326d49=_0x2d4e77;let _0x461484=this[_0x326d49(0x20d)][_0x326d49(0x31b)](_0xca78c2);_0x461484!==void 0x0&&(_0x33c94e[_0xca78c2]=_0x461484);});let _0x5367b2=this[_0x2d4e77(0x2df)]();if(!_0x5367b2)return;this[_0x2d4e77(0x259)]={..._0x5367b2};let _0x5c35c7=new _0x2610e3(this[_0x2d4e77(0x259)]),_0x231aa2=_0x562c30({'unitId':this[_0x2d4e77(0x180)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x314919=_0x39b8ed['getObjectIncludeInGroup'](_0x231aa2);this[_0x2d4e77(0x390)]=!0x0,_0x39b8ed[_0x2d4e77(0x207)](),this[_0x2d4e77(0x3cd)][_0x2d4e77(0x228)](_0x39b8ed,this[_0x2d4e77(0x180)],this[_0x2d4e77(0x3af)],this[_0x2d4e77(0x3de)]),this[_0x2d4e77(0x3c1)]=null;let _0x4e6cf9=this[_0x2d4e77(0x20d)]['getConnectorLinePoints'](),_0xdf46ed=_0x4e6cf9[0x0],_0x1b4596=_0x4e6cf9[_0x4e6cf9['length']-0x1],_0xd7a76=_0x34feca?_0x5c35c7[_0x2d4e77(0x396)](_0x1b4596):_0x5c35c7[_0x2d4e77(0x396)](_0xdf46ed);this['_cxtHandlerPointerMove']=_0x39b8ed[_0x2d4e77(0x224)][_0x2d4e77(0x212)]((_0x7783af,_0x294586)=>{const _0x365c87=_0x2d4e77;if(!this[_0x365c87(0x390)]||!this[_0x365c87(0x20d)])return;this[_0x365c87(0x1ec)]||=(this[_0x365c87(0x3ab)][_0x365c87(0x260)](),this['_activeShapeModel'][_0x365c87(0x179)](),!0x0);let _0x1f5734=this[_0x365c87(0x315)](this[_0x365c87(0x180)],this[_0x365c87(0x3af)]),_0x4144bf=this[_0x365c87(0x16a)](this['_unitId'],this[_0x365c87(0x3af)]),_0x3589dd={'x':_0x7783af[_0x365c87(0x1bb)]/_0x4144bf+_0x1f5734['x'],'y':_0x7783af[_0x365c87(0x309)]/_0x4144bf+_0x1f5734['y']},_0x14af01=this[_0x365c87(0x3cd)]['updateConnectionDetection'](_0x3589dd);if(_0x14af01){let {shapeId:_0x86c418,unitId:_0x596162,subUnitId:_0x3a4537}=_0x14af01;if(_0x86c418&&_0x596162&&_0x3a4537){let _0x4bcd31=_0x562c30({'unitId':_0x596162,'subUnitId':_0x3a4537,'drawingId':_0x86c418});_0x14af01[_0x365c87(0x2ae)]=(_0x39b8ed[_0x365c87(0x252)](_0x4bcd31)[_0x365c87(0x2ae)]||0x0)+_0x14af01[_0x365c87(0x2ae)];}}this[_0x365c87(0x3c1)]=_0x14af01;let _0x470c89=_0x34feca?this[_0x365c87(0x20d)][_0x365c87(0x3e8)]():this['_activeShapeModel'][_0x365c87(0x318)]();_0x470c89?this[_0x365c87(0x23c)](_0x470c89,_0x3589dd,_0x34feca,_0x314919,_0x559dbb):this[_0x365c87(0x1b7)](_0x3589dd,_0xd7a76,_0x34feca,_0x314919,_0x559dbb);}),this[_0x2d4e77(0x2d9)]=_0x39b8ed[_0x2d4e77(0x367)][_0x2d4e77(0x212)]((_0x2c1b7e,_0x40b059)=>{const _0x41ce4c=_0x2d4e77;this[_0x41ce4c(0x2a0)](_0x39b8ed,_0xd7a76,_0x2c1b7e,_0x34feca,_0x33c94e);}),_0x4f5a08[_0x2d4e77(0x394)]();})));}[_0x714ef0(0x2c2)](_0xc24b38,_0x515a14,_0x5a99bd){const _0x56a0a6=_0x714ef0;let _0x4abcdc=this[_0x56a0a6(0x251)][_0x56a0a6(0x2f6)](_0xc24b38,_0x515a14,_0x5a99bd);if(!_0x4abcdc||_0x4abcdc[_0x56a0a6(0x1c3)]===0x0)return;let _0x2a4243=this['_renderManagerService']['getRenderUnitById'](_0xc24b38);if(!_0x2a4243)return;let {scene:_0x1ae310}=_0x2a4243;for(let _0x4dcc34 of _0x4abcdc){let _0x3ebeae=_0x4dcc34[_0x56a0a6(0x29d)],_0x34276e=this['_sheetsShapeService']['getShapeModel'](_0xc24b38,_0x515a14,_0x3ebeae);if(!_0x34276e)continue;let _0x22e89d=_0x34276e[_0x56a0a6(0x318)](),_0x4b304b=_0x34276e['getEndConnectInfo'](),_0x437774=(_0x22e89d==null?void 0x0:_0x22e89d[_0x56a0a6(0x21d)])===_0x5a99bd,_0x46ef5c=_0x562c30({'unitId':_0xc24b38,'subUnitId':_0x515a14,'drawingId':_0x3ebeae}),_0x258833=_0x1ae310[_0x56a0a6(0x252)](_0x46ef5c);if(!_0x258833)continue;let _0x2da1c8=this[_0x56a0a6(0x20f)][_0x56a0a6(0x2da)]({'unitId':_0xc24b38,'subUnitId':_0x515a14,'drawingId':_0x3ebeae});_0x2da1c8!=null&&_0x2da1c8[_0x56a0a6(0x29f)]&&(_0x22e89d&&_0x4b304b?this['_rerouteConnectorLine'](_0xc24b38,_0x515a14,_0x3ebeae,_0x34276e,_0x22e89d,_0x4b304b,_0x258833):this[_0x56a0a6(0x39d)](_0xc24b38,_0x515a14,_0x3ebeae,_0x34276e,_0x437774?_0x22e89d:_0x4b304b,_0x437774,_0x2da1c8,_0x258833));}}[_0x714ef0(0x1de)](_0x54fa1b,_0x2d593d,_0x252702,_0x17c75f,_0x5a75cb,_0x4eca11,_0x22c915){const _0x5e8c62=_0x714ef0;let _0x93e6c1=this[_0x5e8c62(0x180)],_0x27f783=this[_0x5e8c62(0x3af)];this[_0x5e8c62(0x180)]=_0x54fa1b,this[_0x5e8c62(0x3af)]=_0x2d593d;let _0x38f36c=this[_0x5e8c62(0x301)](_0x5a75cb),_0x2e597d=this['_getConnectPointInfo'](_0x4eca11);if(this[_0x5e8c62(0x180)]=_0x93e6c1,this[_0x5e8c62(0x3af)]=_0x27f783,!_0x38f36c||!_0x2e597d)return;let _0x50b651=_0x17c75f[_0x5e8c62(0x2fc)](),_0x2a00cb=_0x22d8a5(_0x38f36c,_0x2e597d,_0x50b651);_0x2a00cb&&_0x17c75f[_0x5e8c62(0x2b5)](_0x2a00cb);let _0x480e7c=_0x1469b5(_0x2a00cb,_0x50b651);_0x480e7c[_0x5e8c62(0x414)]!==_0x50b651&&_0x17c75f['changeShapeType'](_0x480e7c[_0x5e8c62(0x414)]),_0x17c75f[_0x5e8c62(0x179)]();for(let [_0x50747e,_0x209b97]of Object[_0x5e8c62(0x374)](_0x480e7c[_0x5e8c62(0x33c)]))_0x17c75f[_0x5e8c62(0x19c)](_0x50747e,_0x209b97);_0x17c75f[_0x5e8c62(0x2b8)]({'width':_0x480e7c['worldRect'][_0x5e8c62(0x253)],'height':_0x480e7c['worldRect'][_0x5e8c62(0x2d4)]}),_0x22c915[_0x5e8c62(0x1b1)]({'flipX':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x18d)],'flipY':_0x480e7c['worldRect'][_0x5e8c62(0x300)],'left':_0x480e7c[_0x5e8c62(0x23b)]['left'],'top':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x211)],'width':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x253)],'height':_0x480e7c[_0x5e8c62(0x23b)][_0x5e8c62(0x2d4)],'angle':_0x480e7c[_0x5e8c62(0x410)]}),_0x17c75f[_0x5e8c62(0x197)]();}[_0x714ef0(0x39d)](_0x1e0afb,_0x73876b,_0x44856c,_0x1097e1,_0x49bffa,_0x5c61b7,_0x28438c,_0x4813df){const _0x4f9962=_0x714ef0;let _0x866ea=this[_0x4f9962(0x180)],_0x301d9c=this[_0x4f9962(0x3af)];this[_0x4f9962(0x180)]=_0x1e0afb,this[_0x4f9962(0x3af)]=_0x73876b;let _0x4e7a7a=this[_0x4f9962(0x301)](_0x49bffa);if(this[_0x4f9962(0x180)]=_0x866ea,this[_0x4f9962(0x3af)]=_0x301d9c,!_0x4e7a7a)return;let {left:_0x17d65b=0x0,top:_0x4a2d0=0x0,width:_0x19f5a4=0x0,height:_0x9f9882=0x0,flipX:_0x248a5f=!0x1,flipY:_0x1ec632=!0x1}=_0x28438c[_0x4f9962(0x29f)],_0x87ecc=_0x1097e1[_0x4f9962(0x398)]();if(_0x87ecc[_0x4f9962(0x1c3)]<0x2)return;let _0xa5043e=new _0x2610e3({'left':_0x17d65b,'top':_0x4a2d0,'width':_0x19f5a4,'height':_0x9f9882,'flipX':_0x248a5f,'flipY':_0x1ec632}),_0x184398=_0x5c61b7?_0x87ecc[_0x87ecc[_0x4f9962(0x1c3)]-0x1]:_0x87ecc[0x0],_0xa21b61=_0xa5043e['localToWorld'](_0x184398),_0x524552=_0x2610e3[_0x4f9962(0x28d)](_0xa21b61,_0x4e7a7a['point'],!_0x5c61b7);_0x4813df['transformByState']({'flipX':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x18d)],'flipY':_0x524552[_0x4f9962(0x23b)]['flipY'],'left':_0x524552[_0x4f9962(0x23b)]['left'],'top':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x211)],'width':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x253)],'height':_0x524552['worldRect']['height'],'angle':_0x524552[_0x4f9962(0x23b)][_0x4f9962(0x2ae)]}),_0x4813df[_0x4f9962(0x226)](!0x0);}[_0x714ef0(0x3a3)](){const _0xef6781=_0x714ef0;this['_connectorObjects'][_0xef6781(0x1c3)]!==0x0&&(this[_0xef6781(0x3a9)][_0xef6781(0x185)](_0x4f0011=>{const _0x461bf2=_0xef6781;_0x4f0011[_0x461bf2(0x232)]();}),this[_0xef6781(0x3a9)]=[]);}[_0x714ef0(0x33f)](){const _0x3a629f=_0x714ef0;let _0x30b402=this[_0x3a629f(0x2be)]['getCurrentTypeOfUnit$'](_0x58aa7b[_0x3a629f(0x222)]);this[_0x3a629f(0x238)](_0x30b402[_0x3a629f(0x371)](_0x1e4916(_0x20010c=>_0x20010c?_0x20010c['activeSheet$'][_0x3a629f(0x371)](_0x1e4916(_0x1186e2=>{const _0x529e6c=_0x3a629f;if(!_0x1186e2)return _0x535914;let _0xae666f=_0x20010c['getUnitId'](),_0x193a2d=this[_0x529e6c(0x2cf)][_0x529e6c(0x2af)](_0xae666f),_0x2d16ac=_0x193a2d==null?void 0x0:_0x193a2d[_0x529e6c(0x1d4)];return _0x2d16ac?_0x12c65f(_0x2d16ac):_0x535914;})):_0x535914))[_0x3a629f(0x3e4)](_0x280a90=>{const _0x4711f9=_0x3a629f;let _0xc6380b=_0x280a90[_0x4711f9(0x218)]();this[_0x4711f9(0x238)](_0x280a90[_0x4711f9(0x224)][_0x4711f9(0x212)](_0x109ae4=>{const _0x1f0978=_0x4711f9;this[_0x1f0978(0x19e)]&&this[_0x1f0978(0x3de)]&&this[_0x1f0978(0x3a3)]();})),this['disposeWithMe'](_0xc6380b[_0x4711f9(0x320)][_0x4711f9(0x3e4)](_0x1e2707=>{const _0x260443=_0x4711f9;let {objects:_0x554b9c}=_0x1e2707;this['_clearShapeConnectorHandlerObjects'](),_0x554b9c!==null&&_0x554b9c['size']===0x1&&_0x554b9c[_0x260443(0x1f8)]()[_0x260443(0x3ee)]()[_0x260443(0x313)]instanceof J&&(this[_0x260443(0x19e)]=!0x0);})),this['disposeWithMe'](_0xc6380b[_0x4711f9(0x3fa)]['subscribe'](_0x4fb81a=>{const _0x46e331=_0x4711f9;this[_0x46e331(0x19e)]&&this[_0x46e331(0x3a3)]();})),this[_0x4711f9(0x238)](_0x280a90[_0x4711f9(0x367)][_0x4711f9(0x212)](()=>{const _0x4a1d4e=_0x4711f9;this['_isDrawingShapePointDown']&&(this[_0x4a1d4e(0x19e)]=!0x1,this[_0x4a1d4e(0x19d)]());})),this[_0x4711f9(0x238)](_0xc6380b[_0x4711f9(0x2d0)][_0x4711f9(0x3e4)](()=>{const _0x31648e=_0x4711f9;this[_0x31648e(0x180)]&&this[_0x31648e(0x3af)]&&this[_0x31648e(0x3de)]&&this[_0x31648e(0x20f)][_0x31648e(0x2da)]({'unitId':this[_0x31648e(0x180)],'subUnitId':this[_0x31648e(0x3af)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x31648e(0x19d)]());}));}));}[_0x714ef0(0x3ae)](){const _0x16499a=_0x714ef0;this[_0x16499a(0x238)](this[_0x16499a(0x20f)][_0x16499a(0x3f5)][_0x16499a(0x3e4)](_0x4b27f7=>{const _0x58e783=_0x16499a;if(_0x4b27f7[_0x58e783(0x1c3)]===0x1){let _0x58c06b=_0x4b27f7[0x0];if(_0x58c06b[_0x58e783(0x198)]===_0x544f7a[_0x58e783(0x2c1)]){let _0x18cf24=this['_sheetsShapeService'][_0x58e783(0x199)](_0x58c06b[_0x58e783(0x277)],_0x58c06b['subUnitId'],_0x58c06b[_0x58e783(0x290)]);if(_0x18cf24&&_0x4cb876(_0x18cf24['getShapeType']())){this['_activeShapeId']=_0x58c06b[_0x58e783(0x290)],this[_0x58e783(0x180)]=_0x58c06b[_0x58e783(0x277)],this['_subUnitId']=_0x58c06b['subUnitId'],this['_clearShapeConnectorHandlerObjects'](),this[_0x58e783(0x19d)]();return;}}}this[_0x58e783(0x3de)]=void 0x0,this['_unitId']=void 0x0,this[_0x58e783(0x3af)]=void 0x0,this[_0x58e783(0x3a3)]();})),this[_0x16499a(0x238)](this[_0x16499a(0x20f)][_0x16499a(0x22f)][_0x16499a(0x3e4)](_0x25f551=>{const _0x3f4802=_0x16499a;if(_0x25f551[_0x3f4802(0x1c3)]===0x1){var _0x38885e;let _0x5b27b8=_0x25f551[0x0],_0x4a14b3=(_0x38885e=this[_0x3f4802(0x20f)]['getDrawingByParam'](_0x5b27b8))==null?void 0x0:_0x38885e[_0x3f4802(0x198)];_0x4a14b3===_0x544f7a['DRAWING_SHAPE']&&_0x5b27b8['drawingId']===this[_0x3f4802(0x3de)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x3f4802(0x19d)]()):!this['_activeShapeId']&&_0x4a14b3===_0x544f7a[_0x3f4802(0x2c1)]&&this[_0x3f4802(0x2c2)](_0x5b27b8[_0x3f4802(0x277)],_0x5b27b8[_0x3f4802(0x3d0)],_0x5b27b8[_0x3f4802(0x290)]);}})),this['disposeWithMe'](this[_0x16499a(0x20f)][_0x16499a(0x3ba)]['subscribe'](_0x1ac6a3=>{const _0x2e4485=_0x16499a;for(let _0x4a2e47 of _0x1ac6a3){let {drawingId:_0x1fce44}=_0x4a2e47;if(this[_0x2e4485(0x3de)]===_0x1fce44){this[_0x2e4485(0x1b3)]();return;}}}));}[_0x714ef0(0x23c)](_0x384ed8,_0x3795d3,_0x5eeecb,_0x2d1cdf,_0x3d0e7f){const _0x33f611=_0x714ef0;var _0x462039;if(!this[_0x33f611(0x20d)])return;let _0x2688a7=this['_getConnectPointInfo'](_0x384ed8);if(!_0x2688a7)return;let _0x27158c=this[_0x33f611(0x3c1)]?this[_0x33f611(0x3c1)][_0x33f611(0x2b4)]:_0x3795d3,_0x2ae661=this['_currentConnectionTarget']?this[_0x33f611(0x3c1)][_0x33f611(0x2ae)]:this[_0x33f611(0x29b)](_0x2688a7['point'],_0x27158c),_0x4ec293;if(this['_currentConnectionTarget']){let _0x164e2a=this[_0x33f611(0x20f)][_0x33f611(0x2da)]({'unitId':this[_0x33f611(0x3c1)][_0x33f611(0x277)],'subUnitId':this[_0x33f611(0x3c1)]['subUnitId'],'drawingId':this[_0x33f611(0x3c1)]['shapeId']});if(_0x164e2a!=null&&_0x164e2a['transform']){let {left:_0x2fab41=0x0,top:_0x2ebdf6=0x0,width:_0x599fda=0x0,height:_0x20537e=0x0,angle:_0x43b80e}=_0x164e2a[_0x33f611(0x29f)];_0x4ec293=_0x4191f0({'left':_0x2fab41,'top':_0x2ebdf6,'width':_0x599fda,'height':_0x20537e},_0x43b80e||0x0);}else _0x4ec293={'left':_0x27158c['x'],'top':_0x27158c['y'],'width':0x0,'height':0x0};}else _0x4ec293={'left':_0x27158c['x'],'top':_0x27158c['y'],'width':0x0,'height':0x0};let _0x4bb4a4={'point':_0x27158c,'angle':_0x2ae661,'bounds':_0x4ec293},_0x3d4be2=_0x5eeecb?_0x4bb4a4:_0x2688a7,_0x33dc0c=_0x5eeecb?_0x2688a7:_0x4bb4a4,_0x401777=this[_0x33f611(0x20d)]['getShapeType'](),_0x5a989e=_0x22d8a5(_0x3d4be2,_0x33dc0c,_0x401777);_0x5a989e&&this[_0x33f611(0x20d)][_0x33f611(0x2b5)](_0x5a989e);let _0x1d11f9=_0x1469b5(_0x5a989e,_0x401777);_0x1d11f9[_0x33f611(0x414)]!==_0x401777&&this[_0x33f611(0x20d)][_0x33f611(0x175)](_0x1d11f9[_0x33f611(0x414)]);for(let [_0x4f82cc,_0x4a86b8]of Object['entries'](_0x1d11f9[_0x33f611(0x33c)]))this[_0x33f611(0x20d)][_0x33f611(0x19c)](_0x4f82cc,_0x4a86b8);this[_0x33f611(0x20d)][_0x33f611(0x2b8)]({'width':_0x1d11f9['worldRect'][_0x33f611(0x253)],'height':_0x1d11f9[_0x33f611(0x23b)]['height']}),_0x2d1cdf[_0x33f611(0x1b1)]({'flipX':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x18d)],'flipY':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x300)],'left':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x201)],'top':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x211)],'width':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x253)],'height':_0x1d11f9[_0x33f611(0x23b)][_0x33f611(0x2d4)],'angle':_0x1d11f9['rotation']}),_0x2d1cdf[_0x33f611(0x226)](!0x0);let _0x4a8739=((_0x462039=this[_0x33f611(0x3c1)])==null?void 0x0:_0x462039[_0x33f611(0x2b4)])??_0x3795d3;_0x3d0e7f[_0x33f611(0x1b1)]({'left':_0x4a8739['x']-_0x4945a0[_0x33f611(0x389)],'top':_0x4a8739['y']-_0x4945a0['cxnPointRadius']});}[_0x714ef0(0x1b7)](_0x52844c,_0x86ac44,_0x4494cd,_0x2c177a,_0x4b78a4){const _0x22211f=_0x714ef0;var _0x30afc0,_0x751a8c;let _0x4bc1be=((_0x30afc0=this[_0x22211f(0x3c1)])==null?void 0x0:_0x30afc0[_0x22211f(0x2b4)])??_0x52844c,_0x498065=_0x2610e3['computeConnectorResizeLayout'](_0x86ac44,_0x4bc1be,_0x4494cd);_0x2c177a['transformByState']({'flipX':_0x498065[_0x22211f(0x23b)][_0x22211f(0x18d)],'flipY':_0x498065[_0x22211f(0x23b)][_0x22211f(0x300)],'left':_0x498065['worldRect'][_0x22211f(0x201)],'top':_0x498065['worldRect'][_0x22211f(0x211)],'width':_0x498065[_0x22211f(0x23b)][_0x22211f(0x253)],'height':_0x498065[_0x22211f(0x23b)]['height'],'angle':_0x498065[_0x22211f(0x23b)][_0x22211f(0x2ae)]});let _0x5b891c=((_0x751a8c=this[_0x22211f(0x3c1)])==null?void 0x0:_0x751a8c[_0x22211f(0x2b4)])??_0x52844c;_0x4b78a4['transformByState']({'left':_0x5b891c['x']-_0x4945a0[_0x22211f(0x389)],'top':_0x5b891c['y']-_0x4945a0[_0x22211f(0x389)]});}['_getConnectPointInfo'](_0x537dcf){const _0x51988c=_0x714ef0;if(!this[_0x51988c(0x180)]||!this[_0x51988c(0x3af)])return null;let {shapeId:_0x5b7b47,cxnIndex:_0x32246b}=_0x537dcf,_0x4a1748=this[_0x51988c(0x251)][_0x51988c(0x199)](this[_0x51988c(0x180)],this['_subUnitId'],_0x5b7b47);if(!_0x4a1748)return null;let _0x509770=this[_0x51988c(0x20f)][_0x51988c(0x2da)]({'unitId':this['_unitId'],'subUnitId':this[_0x51988c(0x3af)],'drawingId':_0x5b7b47});if(!(_0x509770!=null&&_0x509770[_0x51988c(0x29f)]))return null;let {left:_0x53d3b9=0x0,top:_0x155500=0x0,width:_0x39af5a=0x0,height:_0x39376=0x0,flipX:_0x382886=!0x1,flipY:_0x441d57=!0x1,angle:_0x403ed8}=_0x509770[_0x51988c(0x29f)];_0x4a1748[_0x51988c(0x2b8)]({'width':_0x39af5a,'height':_0x39376});let _0x116ba6=_0x4a1748[_0x51988c(0x3e3)]()[_0x51988c(0x1f7)](_0xc55927=>_0xc55927[_0x51988c(0x330)]===_0x32246b);if(!_0x116ba6)return null;let _0x54caa2=_0x382886?_0x39af5a-_0x116ba6['x']:_0x116ba6['x'],_0x3fb971=_0x441d57?_0x39376-_0x116ba6['y']:_0x116ba6['y'];if(_0x403ed8!==0x0&&_0x403ed8!=null){let _0x1e25c9=_0x403ed8*Math['PI']/0xb4,_0x131e11=Math['cos'](_0x1e25c9),_0x4de130=Math[_0x51988c(0x267)](_0x1e25c9),_0x37b987=_0x39af5a/0x2,_0x4e37df=_0x39376/0x2,_0x4bcb82=_0x54caa2-_0x37b987,_0x4c2ce2=_0x3fb971-_0x4e37df;_0x54caa2=_0x37b987+_0x4bcb82*_0x131e11-_0x4c2ce2*_0x4de130,_0x3fb971=_0x4e37df+_0x4bcb82*_0x4de130+_0x4c2ce2*_0x131e11;}_0x54caa2+=_0x53d3b9,_0x3fb971+=_0x155500;let _0x34e020=_0x116ba6[_0x51988c(0x34a)]/0xea60;_0x382886&&(_0x34e020=0xb4-_0x34e020),_0x441d57&&(_0x34e020=-_0x34e020),_0x34e020+=_0x403ed8||0x0,_0x34e020=(_0x34e020%0x168+0x168)%0x168;let _0x2c1b4b=_0x4191f0({'left':_0x53d3b9,'top':_0x155500,'width':_0x39af5a,'height':_0x39376},_0x403ed8||0x0);return{'point':{'x':_0x54caa2,'y':_0x3fb971},'angle':_0x34e020,'bounds':_0x2c1b4b};}[_0x714ef0(0x29b)](_0x5e56d0,_0x198bfd){const _0x5b3937=_0x714ef0;let _0x522880=_0x198bfd['x']-_0x5e56d0['x'],_0x3bf3d8=_0x198bfd['y']-_0x5e56d0['y'];return Math[_0x5b3937(0x19a)](_0x522880)>=Math['abs'](_0x3bf3d8)?_0x522880>=0x0?0xb4:0x0:_0x3bf3d8>=0x0?0x10e:0x5a;}[_0x714ef0(0x1b3)](){const _0x360339=_0x714ef0;this[_0x360339(0x3de)]=void 0x0,this[_0x360339(0x180)]=void 0x0,this[_0x360339(0x3af)]=void 0x0,this[_0x360339(0x3a3)]();}['dispose'](){const _0xc9169b=_0x714ef0;this['_clearShapeConnectorHandlerObjects'](),super[_0xc9169b(0x232)]();}};ma=X([Y(0x1,_0x2b8a3e),Y(0x2,_0x1e1faa),Y(0x3,_0x19d008),Y(0x4,_0x1d15d2),Y(0x5,_0x5c502f(_0x5b8f71)),Y(0x6,_0x5c502f(Pr)),Y(0x7,_0x5c502f(da))],ma);let ha=class extends _0xe29064{constructor(_0x52fff1,_0x3099ef,_0x466b05){const _0x7d1bae=_0x714ef0;super(),this['_sheetPrintInterceptorService']=_0x52fff1,this[_0x7d1bae(0x20f)]=_0x3099ef,this['_shapeRenderController']=_0x466b05,this[_0x7d1bae(0x3ad)]();}[_0x714ef0(0x3ad)](){const _0x26ba8b=_0x714ef0;this['disposeWithMe'](this[_0x26ba8b(0x39e)][_0x26ba8b(0x1d9)][_0x26ba8b(0x204)](this[_0x26ba8b(0x39e)][_0x26ba8b(0x1d9)][_0x26ba8b(0x375)]()[_0x26ba8b(0x38b)],{'handler':(_0x2050dd,_0x812099,_0x10c3fd)=>{const _0x2ffaf3=_0x26ba8b;var _0x54cd46;let {unitId:_0x2c5c37,subUnitId:_0x2b4402,scene:_0x5c943e,resourceCollector:_0x4deb93}=_0x812099,_0x575b47=(_0x54cd46=this['_drawingManagerService'][_0x2ffaf3(0x38c)](_0x2c5c37))==null?void 0x0:_0x54cd46[_0x2b4402];return _0x575b47==null||_0x575b47['order'][_0x2ffaf3(0x185)](_0x49b5bf=>{const _0xd3293d=_0x2ffaf3;let _0x3b60aa=_0x575b47[_0xd3293d(0x307)][_0x49b5bf];_0x3b60aa['drawingType']===_0x544f7a[_0xd3293d(0x2c1)]&&!_0x3b60aa['hidden']&&this[_0xd3293d(0x20b)][_0xd3293d(0x258)](_0x3b60aa,_0x5c943e,{'resourceCollector':_0x4deb93});}),_0x10c3fd(_0x2050dd);}}));}};ha=X([Y(0x0,_0x5c502f(_0x39aad2)),Y(0x1,_0x19d008),Y(0x2,_0x5c502f(Z))],ha);let ga=class extends _0xe29064{constructor(_0x19a3c0,_0x16d241,_0x15aa45){const _0xd52ef0=_0x714ef0;super(),this[_0xd52ef0(0x1a7)]=_0x19a3c0,this['_localeService']=_0x16d241,this['_sheetPermissionCheckController']=_0x15aa45,this['_initPermission']();}[_0x714ef0(0x1ca)](){const _0x27acc8=_0x714ef0;this[_0x27acc8(0x238)](this[_0x27acc8(0x1a7)]['beforeCommandExecuted'](_0x18edf0=>{const _0x511fe2=_0x27acc8;let _0x15ceb6,_0x3bc3c3;if(_0x18edf0['id']===_0x166112['id']||_0x18edf0['id']===_0x2cc34c['id']||_0x18edf0['id']===_0x128516['id']){let _0xe5ca02=_0x18edf0[_0x511fe2(0x387)];_0x15ceb6=_0xe5ca02['unitId'],_0x3bc3c3=_0xe5ca02['subUnitId'];}_0x15ceb6&&_0x3bc3c3&&(this[_0x511fe2(0x28f)][_0x511fe2(0x2e2)]({'workbookTypes':[_0xe0fab9],'worksheetTypes':[_0x123e53]},_0x15ceb6,_0x3bc3c3)||this['_sheetPermissionCheckController'][_0x511fe2(0x35c)](this['_localeService']['t'](_0x511fe2(0x25c))));}));}};ga=X([Y(0x0,_0x5c502f(_0x2b8a3e)),Y(0x1,_0x5c502f(_0x30b59c)),Y(0x2,_0x5c502f(_0x33b80c))],ga);let _a=class{constructor(_0x56e322){const _0x11633f=_0x714ef0;this[_0x11633f(0x2cf)]=_0x56e322;}['updateShapeFillImage'](_0x15abf2,_0x1c0161){const _0x3f75d3=_0x714ef0;let _0x3b43cc=this[_0x3f75d3(0x2cf)][_0x3f75d3(0x2af)](_0x15abf2[_0x3f75d3(0x277)]),_0x44edd9=_0x3b43cc==null?void 0x0:_0x3b43cc['scene'];if(!_0x44edd9)return;let _0x276636=_0x562c30(_0x15abf2),_0x3c2bb8=_0x44edd9['getObjectIncludeInGroup'](_0x276636);_0x3c2bb8==null||_0x3c2bb8['setFillImage'](_0x1c0161);}};_a=X([Y(0x0,_0x1e1faa)],_a);let va=class extends _0x14d9ad{constructor(_0x6c11a1=Yi,_0x23cb0f,_0x4f58c6,_0x4590df,_0x1ffebb){const _0x4212d7=_0x714ef0;super(),this[_0x4212d7(0x1c6)]=_0x6c11a1,this[_0x4212d7(0x210)]=_0x23cb0f,this[_0x4212d7(0x1a7)]=_0x4f58c6,this[_0x4212d7(0x1ed)]=_0x4590df,this[_0x4212d7(0x2cf)]=_0x1ffebb;let {..._0x20402d}=_0x1a3e4c({},Yi,this[_0x4212d7(0x1c6)]);this[_0x4212d7(0x1ed)][_0x4212d7(0x215)](Ji,_0x20402d),this[_0x4212d7(0x2f5)]();}[_0x714ef0(0x3b5)](){const _0x138d7f=_0x714ef0;this[_0x138d7f(0x210)][_0x138d7f(0x25e)]([ta]),this[_0x138d7f(0x210)][_0x138d7f(0x2dd)](ta),_0x5ee9a9(this[_0x138d7f(0x210)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}['onReady'](){const _0x5d6d0f=_0x714ef0;_0x5ee9a9(this[_0x5d6d0f(0x210)],[[da],[Pr],[fa]]),_0x6cf6c(this[_0x5d6d0f(0x210)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]]['forEach'](_0x53064f=>{const _0x2b7c24=_0x5d6d0f;this['disposeWithMe'](this[_0x2b7c24(0x2cf)][_0x2b7c24(0x220)](_0x58aa7b[_0x2b7c24(0x222)],_0x53064f));});}[_0x714ef0(0x3bb)](){const _0x92c803=_0x714ef0;_0x6cf6c(this[_0x92c803(0x210)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x714ef0(0x26c)](){const _0x1c7bba=_0x714ef0;this[_0x1c7bba(0x210)]['get'](aa)[_0x1c7bba(0x177)]();}[_0x714ef0(0x2f5)](){const _0x3a606d=_0x714ef0;[Ir,K,Fr,qi][_0x3a606d(0x185)](_0x586992=>this[_0x3a606d(0x238)](this[_0x3a606d(0x1a7)][_0x3a606d(0x334)](_0x586992)));}};q(va,_0x714ef0(0x1f1),_0x58aa7b[_0x714ef0(0x222)]),q(va,'pluginName',_0x714ef0(0x289)),q(va,'packageName',Gi),q(va,_0x714ef0(0x3c6),Ki),va=X([_0x542984(_0x1b2df7,_0x3444ed,_0x3fbaa1,_0x262fbb,_0x1b9900,_0x4ebfbc,_0x28c2e2,_0x2d5783,_0x58b005,_0x178f75,_0x50669f,_0x16c905,_0xdc088c),Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x2b8a3e),Y(0x3,_0x5f4811),Y(0x4,_0x1e1faa)],va);const ya={'type':_0x4017c5['OPERATION'],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function ba(){const _0x101d30=_0x714ef0;let _0x4fbcaa=_0x3bcf4c(_0x19d008),_0x14d533=_0x54184f(()=>_0x4fbcaa[_0x101d30(0x3f5)],_0x4fbcaa[_0x101d30(0x3dc)](),!0x1,[_0x4fbcaa]);return _0x14d533[_0x101d30(0x1c3)]===0x0?null:_0x230828(_0x101d30(0x412),{'children':_0x55ce9a('div',{'className':_0x101d30(0x1f5),'children':[_0x230828(_0x5527d5,{'drawings':_0x14d533,'hasCropper':!0x1}),_0x230828(_0x522516,{'drawings':_0x14d533})]})});}function xa(_0x239813){let {unitId:_0x10f323,subUnitId:_0x564449,shapeId:_0x17575c}=_0x239813,_0x46ef74=_0x3bcf4c(_0x2b8a3e),_0x3794ff=_0x3bcf4c(_a);return _0x230828(_0x624b40,{..._0x239813,'positionEditor':_0x230828(ba,{}),'onUpdateShapeData':(_0x54f802,_0x5c26f7)=>{Dr(_0x46ef74,_0x10f323,_0x564449,_0x17575c,_0x54f802,_0x5c26f7);},'onUpdateLineShapeData':(_0x586015,_0x2c3b51)=>{Or(_0x46ef74,_0x10f323,_0x564449,_0x17575c,_0x586015,_0x2c3b51);},'onUpdateShapeFillImage':_0x5b87f4=>{_0x3794ff['updateShapeFillImage']({'unitId':_0x10f323,'subUnitId':_0x564449,'drawingId':_0x17575c},_0x5b87f4);}});}function Sa(_0x31a25f){const _0x9cdba7=_0x714ef0;let _0x42b985=_0x3bcf4c(_0x21f7f2),_0x29c827=_0x54184f(()=>_0x42b985[_0x9cdba7(0x33a)],_0x42b985[_0x9cdba7(0x225)](),!0x1,[_0x42b985]),_0xd54b46=_0x31a25f[_0x9cdba7(0x1cd)][_0x9cdba7(0x370)];return!_0xd54b46||!_0x29c827?null:_0x230828(Ca,{..._0xd54b46,'canvasElement':_0x31a25f[_0x9cdba7(0x1cd)][_0x9cdba7(0x42c)]});}function Ca(_0x35d955){const _0x393270=_0x714ef0;let _0x34b08c=_0x3bcf4c(_0x2b8a3e),_0x3b2b2b=_0x3bcf4c(_0x5b8f71),{unitId:_0x8f7fcb,subUnitId:_0x370c82,drawingId:_0x59c74c,drawingType:_0x14af29,shapeType:_0x1c8aa6}=_0x35d955,[_0x8c8e52,_0x5c8c36]=_0x2f8af9(_0x35d955[_0x393270(0x3be)]),_0x16a6d2=_0x23fcdc(()=>_0x4f4448(_0x8c8e52),[_0x8c8e52]),_0xd47344=_0x23fcdc(()=>_0x109803(_0x8c8e52),[_0x8c8e52]);_0x5c63a2(()=>{const _0x200784=_0x393270;let _0x58bedc=_0x34b08c[_0x200784(0x40f)](_0x12a124=>{const _0x556272=_0x200784;if(_0x12a124['id']!==_0x197dab['id'])return;let _0xd1add7=_0x3b2b2b[_0x556272(0x3a4)](_0x8f7fcb,_0x370c82,_0x59c74c);_0xd1add7&&_0x5c8c36(_0xd1add7);});return()=>_0x58bedc['dispose']();},[_0x34b08c,_0x59c74c,_0x3b2b2b,_0x370c82,_0x8f7fcb]);let _0x2fd58a=_0x456990=>{_0x5c8c36(_0x1cd989=>({..._0x1cd989,..._0x456990}));},_0x478da4=_0x35fb8c=>{const _0x36c0a5=_0x393270;let _0xa88880=_0x380e1e(_0x8c8e52,_0x35fb8c);Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,{'oldShapeData':{'shapeText':_0x8c8e52[_0x36c0a5(0x29a)]}},_0xa88880),_0x2fd58a(_0xa88880);},_0x56875a=_0x1f34d3({'hostType':_0x58aa7b['UNIVER_SHEET'],'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'shapeId':_0x59c74c,'shapeData':_0x8c8e52,'onUpdateBinding':_0x25a268=>{const _0x40c5fc=_0x393270;let _0x5a5f4a={'formulaBinding':_0x25a268};Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,{'oldShapeData':{'formulaBinding':_0x8c8e52[_0x40c5fc(0x317)]}},_0x5a5f4a),_0x2fd58a(_0x5a5f4a);}});return _0x55ce9a(_0x1956c4,{'children':[_0x230828(_0x40aecd,{'canvasElement':_0x35d955[_0x393270(0x42c)],'shapeData':_0x8c8e52,'shapeType':_0x1c8aa6,'textStyle':{'ff':_0x4945a0[_0x393270(0x29a)]['fontFamily'],'fs':_0x4945a0['shapeText'][_0x393270(0x1aa)],'cl':{'rgb':_0x4945a0[_0x393270(0x29a)][_0x393270(0x3b0)]},..._0x16a6d2},'textModel':_0xd47344?{'ha':_0xd47344['ha']??_0x5d9043[_0x393270(0x1b8)],'va':_0xd47344['va']??_0x4f4c88['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4945a0[_0x393270(0x3f6)],'defaultGradientEndColor':_0x4945a0[_0x393270(0x192)],'defaultStrokeColor':_0x4945a0['stroke'],'extensionGroups':_0x56875a[_0x393270(0x27c)],'floatingObjectToolbarPosition':_0x2b4dd0[_0x393270(0x1ba)],'onUpdateShapeData':(_0x5a1a06,_0x3a9964)=>{Dr(_0x34b08c,_0x8f7fcb,_0x370c82,_0x59c74c,_0x5a1a06,_0x3a9964),_0x3a9964&&_0x2fd58a(_0x3a9964);},'onUpdateText':_0x478da4,'onOpenPanel':()=>{const _0x1f9b1e=_0x393270;_0x34b08c[_0x1f9b1e(0x40b)](Wr['id'],{'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'drawingId':_0x59c74c});},'onDelete':()=>{const _0x2df693=_0x393270;_0x34b08c[_0x2df693(0x40b)](_0x3e89af['id'],{'unitId':_0x8f7fcb,'drawings':[{'unitId':_0x8f7fcb,'subUnitId':_0x370c82,'drawingId':_0x59c74c,'drawingType':_0x14af29}]});}}),_0x56875a[_0x393270(0x34f)]]});}function wa(_0x4993e7){const _0x2438d1=_0x714ef0;return!!_0x4993e7&&_0x2438d1(0x2b9)in _0x4993e7&&_0x2438d1(0x431)in _0x4993e7;}const Ta=_0x3aaaf3(()=>{const _0x2cca0a=_0x714ef0;let _0x5c91a9=_0x3bcf4c($),_0x2c5900=_0x3bcf4c(_0x5b8f71),_0x462e5b=_0x3bcf4c(_0x19d008),_0x178da5=_0x3bcf4c(_0x2b8a3e),_0x3801c2=_0x3bcf4c(_0x4605cf),_0x31ebbc=_0x3bcf4c(_0x1e1faa),_0x3c2239=_0x23fcdc(()=>({'getShapeModel':(_0x4c6252,_0x5893f2,_0x128514)=>_0x2c5900[_0x2cca0a(0x199)](_0x4c6252,_0x5893f2,_0x128514),'getShapeData':(_0x2d3e49,_0x4a2e7c,_0x263be2)=>_0x2c5900[_0x2cca0a(0x3a4)](_0x2d3e49,_0x4a2e7c,_0x263be2),'getDrawingTransform':(_0x256bc8,_0x50cd26,_0x55aaf8)=>{const _0x1bd8e5=_0x2cca0a;let _0xebcccd=_0x462e5b[_0x1bd8e5(0x2da)]({'unitId':_0x256bc8,'subUnitId':_0x50cd26,'drawingId':_0x55aaf8});return _0xebcccd==null?void 0x0:_0xebcccd[_0x1bd8e5(0x29f)];},'updateShapeText':({unitId:_0x3f57ee,subUnitId:_0x363789,shapeId:_0x37452a,shapeText:_0x4d341a,oldShapeText:_0x3bb813,hostSize:_0x477a18})=>{const _0x4b6d37=_0x2cca0a;_0x3801c2[_0x4b6d37(0x400)](_0x3f57ee,()=>{const _0x4cb08a=_0x4b6d37;var _0x57cf07;let _0x574bab=_0x178da5[_0x4cb08a(0x3ca)](K['id'],{'unitId':_0x3f57ee,'subUnitId':_0x363789,'shapeId':_0x37452a,'shapeData':{'shapeText':_0x4d341a},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3bb813}}});if(!_0x574bab||!_0x477a18)return _0x574bab;let _0x237f2e=_0x462e5b[_0x4cb08a(0x2da)]({'unitId':_0x3f57ee,'subUnitId':_0x363789,'drawingId':_0x37452a}),_0x18174b=_0x237f2e==null?void 0x0:_0x237f2e[_0x4cb08a(0x29f)];if(!wa(_0x237f2e)||!_0x18174b)return!0x1;let _0x1c4678={..._0x18174b,'width':_0x477a18[_0x4cb08a(0x253)],'height':_0x477a18[_0x4cb08a(0x2d4)]},_0x46dd79=(_0x57cf07=_0x31ebbc[_0x4cb08a(0x2af)](_0x3f57ee))==null||(_0x57cf07=_0x57cf07[_0x4cb08a(0x3e6)](_0x44086e)['getSkeletonParam'](_0x363789))==null?void 0x0:_0x57cf07[_0x4cb08a(0x425)];return _0x178da5[_0x4cb08a(0x3ca)](_0x297360['id'],{'unitId':_0x3f57ee,'drawings':[{..._0x237f2e,'transform':_0x1c4678,'sheetTransform':_0x46dd79?_0x33f6ee(_0x1c4678,_0x46dd79)??_0x237f2e[_0x4cb08a(0x431)]:_0x237f2e[_0x4cb08a(0x431)],'axisAlignSheetTransform':_0x46dd79?_0x5c977a(_0x1c4678,_0x46dd79)??_0x237f2e['axisAlignSheetTransform']:_0x237f2e[_0x4cb08a(0x2b9)]}]});});},'updateHostSize':({unitId:_0x50f2c0,subUnitId:_0x13ed9b,shapeId:_0x47eae8,width:_0x2d54ae,height:_0x45fb5e})=>{const _0x590aa3=_0x2cca0a;var _0x4e2d81;let _0x365ef8=_0x462e5b['getDrawingByParam']({'unitId':_0x50f2c0,'subUnitId':_0x13ed9b,'drawingId':_0x47eae8}),_0x557dc5=_0x365ef8==null?void 0x0:_0x365ef8[_0x590aa3(0x29f)];if(!wa(_0x365ef8)||!_0x557dc5)return;let _0x3212b3={..._0x557dc5,'width':_0x2d54ae,'height':_0x45fb5e},_0x20ea66=(_0x4e2d81=_0x31ebbc[_0x590aa3(0x2af)](_0x50f2c0))==null||(_0x4e2d81=_0x4e2d81[_0x590aa3(0x3e6)](_0x44086e)['getSkeletonParam'](_0x13ed9b))==null?void 0x0:_0x4e2d81['skeleton'],_0x516eab=_0x20ea66?_0x33f6ee(_0x3212b3,_0x20ea66)??_0x365ef8[_0x590aa3(0x431)]:_0x365ef8['sheetTransform'],_0x402937=_0x20ea66?_0x5c977a(_0x3212b3,_0x20ea66)??_0x365ef8[_0x590aa3(0x2b9)]:_0x365ef8[_0x590aa3(0x2b9)];_0x178da5[_0x590aa3(0x40b)](_0x297360['id'],{'unitId':_0x50f2c0,'drawings':[{..._0x365ef8,'transform':_0x3212b3,'sheetTransform':_0x516eab,'axisAlignSheetTransform':_0x402937}]});},'allowHostSizeShrink':({unitId:_0x305195,subUnitId:_0x20db2e,shapeId:_0x24bd8e})=>_0x248a4d(_0x2c5900['getShapeDataById'](_0x305195,_0x20db2e,_0x24bd8e)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x178da5,_0x462e5b,_0x31ebbc,_0x2c5900,_0x3801c2]),_0x3fd060=_0x23fcdc(()=>({'viewportKeys':{'main':_0x5b9251[_0x2cca0a(0x3b2)],'leftTop':_0x5b9251[_0x2cca0a(0x1ee)],'top':_0x5b9251[_0x2cca0a(0x234)],'left':_0x5b9251[_0x2cca0a(0x1df)]},'getSkeleton':(_0x77b6c6,_0x4e4c9b)=>{const _0x5e946f=_0x2cca0a;var _0x33e966;return((_0x33e966=_0x77b6c6[_0x5e946f(0x3e6)](_0x44086e)['getSkeletonParam'](_0x4e4c9b[_0x5e946f(0x3d0)]))==null?void 0x0:_0x33e966[_0x5e946f(0x425)])??null;}}),[]);return _0x230828(_0x430207,{'adapter':_0x3c2239,'editingService':_0x5c91a9,'editorUnitId':Vr,'positionOptions':_0x3fd060});});let Ea=class extends _0xe29064{constructor(_0x4eda1c,_0x495384){const _0x261d6a=_0x714ef0;super(),this['_componentManager']=_0x4eda1c,this[_0x261d6a(0x270)]=_0x495384,this['_registerIcons'](),this[_0x261d6a(0x1b6)]();}['_registerIcons'](){const _0x32c1d1=_0x714ef0;this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)](_0x32c1d1(0x3a6))||this[_0x32c1d1(0x238)](this['_iconManager'][_0x32c1d1(0x268)]({'ObjectLayersIcon':_0xe11253})),this[_0x32c1d1(0x270)]['has'](_0x32c1d1(0x376))||this[_0x32c1d1(0x238)](this['_iconManager'][_0x32c1d1(0x268)]({'FlipHorizontalIcon':_0x4b0f8a})),this['_iconManager'][_0x32c1d1(0x2c6)]('FlipVerticalIcon')||this['disposeWithMe'](this['_iconManager'][_0x32c1d1(0x268)]({'FlipVerticalIcon':_0x5e2243})),this['_iconManager'][_0x32c1d1(0x2c6)](_0x32c1d1(0x3fc))||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)][_0x32c1d1(0x268)]({'BottomIcon':_0x5d75f2})),this[_0x32c1d1(0x270)]['has']('MoveDownIcon')||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)]['register']({'MoveDownIcon':_0x178ad9})),this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)]('MoveUpIcon')||this[_0x32c1d1(0x238)](this['_iconManager']['register']({'MoveUpIcon':_0x1ab950})),this['_iconManager'][_0x32c1d1(0x2c6)](_0x32c1d1(0x424))||this[_0x32c1d1(0x238)](this['_iconManager']['register']({'ShapeFormatSettingIcon':_0x1496d5})),this[_0x32c1d1(0x270)][_0x32c1d1(0x2c6)](_0x32c1d1(0x279))||this[_0x32c1d1(0x238)](this[_0x32c1d1(0x270)][_0x32c1d1(0x268)]({'TopmostIcon':_0x215261}));}[_0x714ef0(0x1b6)](){const _0x19b635=_0x714ef0;this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Lr,xa)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Rr,$i)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Jr,ei)),this['disposeWithMe'](this['_componentManager'][_0x19b635(0x268)](Yr,Zr)),this[_0x19b635(0x21f)][_0x19b635(0x200)](_0x4fdf51)||this['disposeWithMe'](this['_componentManager']['register'](_0x4fdf51,$r)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)]['register'](zr,Sa)),this['disposeWithMe'](this['_componentManager'][_0x19b635(0x268)](di,hi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](ui,gi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](fi,_i)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](pi,vi)),this[_0x19b635(0x238)](this[_0x19b635(0x21f)][_0x19b635(0x268)](Hr,_0xca529a)),this[_0x19b635(0x238)](this['_componentManager'][_0x19b635(0x268)](_0x19b635(0x3a7),Ta));}};Ea=X([Y(0x0,_0x5c502f(_0x5a67d0)),Y(0x1,_0x5c502f(_0x1567a8))],Ea);let Da=class extends _0xe29064{constructor(_0x3af243,_0x44d1c7,_0x2480f6,_0x5a3741,_0x1ef198,_0x219aa8,_0x3c4848,_0x253023,_0x117c21){const _0x52c9fc=_0x714ef0;super();let _0x18a95b=_0x26d788=>{const _0x10d7d3=_0x5396;var _0x1ddf90,_0x19385b;return(((_0x1ddf90=_0x253023[_0x10d7d3(0x3d2)](new _0xe0fab9(_0x26d788['unitId'])['id']))==null?void 0x0:_0x1ddf90[_0x10d7d3(0x313)])??!0x0)&&(((_0x19385b=_0x253023[_0x10d7d3(0x3d2)](new _0x123e53(_0x26d788['unitId'],_0x26d788[_0x10d7d3(0x3d0)])['id']))==null?void 0x0:_0x19385b[_0x10d7d3(0x313)])??!0x0);},_0xf31427=_0x259060=>_0x259060[_0x52c9fc(0x21d)]&&_0x18a95b(_0x259060)?_0x2480f6[_0x52c9fc(0x3a4)](_0x259060[_0x52c9fc(0x277)],_0x259060['subUnitId'],_0x259060[_0x52c9fc(0x21d)])??null:null,_0xaf04d2=()=>{const _0xe1a568=_0x52c9fc;let _0x331605=_0x1ef198['getFocusDrawings'](),_0x38c548=_0x331605[_0xe1a568(0x1c3)]===0x1?_0x331605[0x0]:null;return(_0x38c548==null?void 0x0:_0x38c548['drawingType'])===_0x544f7a[_0xe1a568(0x2c1)]&&_0x38c548[_0xe1a568(0x277)]===_0x3af243[_0xe1a568(0x277)]?{'unitId':_0x38c548[_0xe1a568(0x277)],'subUnitId':_0x38c548[_0xe1a568(0x3d0)],'shapeId':_0x38c548[_0xe1a568(0x290)]}:null;};this[_0x52c9fc(0x238)](_0x3b4dfd(_0x3af243,_0x44d1c7,{'changes$':_0x252868(_0x1ef198[_0x52c9fc(0x3f5)],_0x5a3741['editingParams$'],_0x253023[_0x52c9fc(0x174)]),'isActive':()=>{const _0x2f21a1=_0x52c9fc;var _0x5c5e79;return((_0x5c5e79=_0x219aa8['getFocusedUnit']())==null?void 0x0:_0x5c5e79[_0x2f21a1(0x1b0)]())===_0x3af243[_0x2f21a1(0x277)]&&!_0x3c4848['getContextValue'](_0xd91ec1)&&_0x1ef198['getFocusDrawings']()[_0x2f21a1(0x162)](_0x2ea88d=>_0x2ea88d[_0x2f21a1(0x277)]===_0x3af243['unitId']);},'getSelectedTarget':_0xaf04d2,'getSource':()=>{let _0x4b7220=_0xaf04d2();return _0x4b7220?_0xf31427(_0x4b7220):null;},'getTarget':_0x3d70a1=>{const _0x3dfaf2=_0x52c9fc;let _0x12c5ef=_0x3af243[_0x3dfaf2(0x1d4)]['pick'](new _0x5be732(_0x3d70a1[_0x3dfaf2(0x1bb)],_0x3d70a1[_0x3dfaf2(0x309)]));if(!(_0x12c5ef instanceof J))return null;let _0x177a14={'unitId':_0x3af243[_0x3dfaf2(0x277)],'subUnitId':_0x12c5ef[_0x3dfaf2(0x3d0)],'shapeId':_0x12c5ef[_0x3dfaf2(0x21d)]};return _0x18a95b(_0x177a14)?_0x177a14:null;},'getShape':_0xf31427,'update':(_0x42bcc2,_0x566b82,_0x52ae6e)=>_0x117c21[_0x52c9fc(0x40b)](K['id'],{..._0x42bcc2,'shapeData':_0x52ae6e,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x566b82}})}));}};Da=X([Y(0x1,_0x5c502f(_0x43a96f)),Y(0x2,_0x5c502f(_0x5b8f71)),Y(0x3,_0x5c502f($)),Y(0x4,_0x19d008),Y(0x5,_0x1d15d2),Y(0x6,_0x3ae1e3),Y(0x7,_0x9a590e),Y(0x8,_0x2b8a3e)],Da);const Oa=_0x714ef0(0x167);let ka=class extends _0xe29064{constructor(_0x1fd4d0,_0x19c499,_0x4d4dde,_0x307c43,_0x503135,_0x5ac407){const _0x4e91c4=_0x714ef0;super(),this['_menuManagerService']=_0x1fd4d0,this['_ribbonService']=_0x19c499,this['_drawingManagerService']=_0x4d4dde,this[_0x4e91c4(0x2be)]=_0x307c43,this[_0x4e91c4(0x2cf)]=_0x503135,this['_shapeFloatingToolbarService']=_0x5ac407,q(this,_0x4e91c4(0x31d),!0x1),this['_menuManagerService'][_0x4e91c4(0x377)](Hi),this[_0x4e91c4(0x238)](_0x128476(this['_drawingManagerService']['focus$'][_0x4e91c4(0x3e4)](()=>this['_update']()))),this['_update']();}[_0x714ef0(0x232)](){const _0x4f4ac1=_0x714ef0;this[_0x4f4ac1(0x243)][_0x4f4ac1(0x16c)](!0x1,Oa),this[_0x4f4ac1(0x255)](),super[_0x4f4ac1(0x232)]();}[_0x714ef0(0x15e)](){const _0x43b650=_0x714ef0;var _0x32e311;let _0x2be239=this[_0x43b650(0x20f)][_0x43b650(0x3dc)](),_0x4a83a5=_0x2be239['length']===0x1?_0x2be239[0x0]:void 0x0;if((_0x4a83a5==null?void 0x0:_0x4a83a5['drawingType'])!==_0x544f7a[_0x43b650(0x2c1)]||this[_0x43b650(0x2be)]['getUnitType'](_0x4a83a5[_0x43b650(0x277)])!==_0x58aa7b['UNIVER_SHEET']){this[_0x43b650(0x243)][_0x43b650(0x16c)](!0x1,Oa),this[_0x43b650(0x255)]();return;}let _0xe48f26=(_0x32e311=this[_0x43b650(0x2cf)][_0x43b650(0x2af)](_0x4a83a5[_0x43b650(0x277)]))==null?void 0x0:_0x32e311[_0x43b650(0x299)][_0x43b650(0x1c1)](),_0x342d7d=_0x3bb4cc(_0xe48f26)==='isolated';this[_0x43b650(0x243)][_0x43b650(0x16c)](_0x342d7d,Oa),_0x342d7d?this[_0x43b650(0x255)]():this[_0x43b650(0x31d)]||(this[_0x43b650(0x31d)]=!0x0,this[_0x43b650(0x26e)][_0x43b650(0x1e2)](Br,{'activate':!0x0}));}[_0x714ef0(0x255)](){const _0xdd0517=_0x714ef0;this[_0xdd0517(0x31d)]&&(this[_0xdd0517(0x31d)]=!0x1,this[_0xdd0517(0x26e)][_0xdd0517(0x325)](Br),this[_0xdd0517(0x26e)][_0xdd0517(0x1fc)]([]));}};ka=X([Y(0x0,_0x308400),Y(0x1,_0x1dad42),Y(0x2,_0x19d008),Y(0x3,_0x1d15d2),Y(0x4,_0x1e1faa),Y(0x5,_0x5c502f(_0x21f7f2))],ka);let Aa=class extends _0x4a3283{constructor(_0x434080,_0x2b646b,_0x4fc6eb,_0x28cc23,_0x1f0e6a,_0x1c6d31,_0x465e75,_0x1f53a5,_0x422026,_0x3606f8){super(_0x434080,_0x2b646b,_0x4fc6eb,_0x28cc23,_0x1f0e6a,_0x1c6d31,_0x465e75,_0x1f53a5,_0x422026,_0x3606f8,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x5c502f(_0x50e1f3)),Y(0x2,_0x5c502f(_0x3b5158)),Y(0x3,_0x5c502f(_0x533da4)),Y(0x4,_0x2b8a3e),Y(0x5,_0x5c502f(_0x13e37b)),Y(0x6,_0x5c502f(_0x26baa8)),Y(0x7,_0x5c502f(_0x18dd84)),Y(0x8,_0x5c502f(_0x14fc5b)),Y(0x9,_0x5c502f($))],Aa);let ja=class extends _0x1a7486{constructor(_0x4a8efb,_0x4cd92c,_0x3923b1,_0x2a8aa9,_0x3ab342){const _0x5ac9d4=_0x714ef0;super(_0x4a8efb,_0x4cd92c,{'editing$':_0x3923b1['editingParams$'],'resolve':_0x20f8e6=>{const _0x27e755=_0x5396;var _0x5789d2,_0x470fba,_0x3b8df7;let _0x763e78=new _0x5be732(_0x20f8e6[_0x27e755(0x1bb)],_0x20f8e6[_0x27e755(0x309)]),_0xf76910=((_0x5789d2=_0x4a8efb[_0x27e755(0x1d4)][_0x27e755(0x2c3)](_0x763e78))==null?void 0x0:_0x5789d2[_0x27e755(0x393)](_0x763e78))??_0x763e78,_0x19195a=_0x296a42(_0x4a8efb[_0x27e755(0x1d4)]['pick'](_0x763e78)??null,_0xf76910);if(!(_0x19195a instanceof J))return null;let _0x7f9f44=_0x19195a[_0x27e755(0x24e)](_0xf76910);if(!_0x7f9f44)return null;let _0x8c634b=_0x19195a,_0x39d6d0={'componentKey':_0x2c3aaf[_0x27e755(0x433)],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0x4cd92c[_0x27e755(0x362)]()};return{'object':_0x19195a,'info':{..._0x7f9f44,'unitId':_0x19195a['unitId'],'subUnitId':_0x19195a[_0x27e755(0x3d0)],'shapeKey':_0x19195a['oKey'],'readonly':!0x0,'copyable':((_0x470fba=_0x3ab342[_0x27e755(0x3d2)](new _0x324600(_0x19195a[_0x27e755(0x277)])['id']))==null?void 0x0:_0x470fba[_0x27e755(0x313)])!==!0x1&&((_0x3b8df7=_0x3ab342[_0x27e755(0x3d2)](new _0x51eb20(_0x19195a[_0x27e755(0x277)],_0x19195a[_0x27e755(0x3d0)])['id']))==null?void 0x0:_0x3b8df7[_0x27e755(0x313)])!==!0x1},'attachPopup':()=>_0x2a8aa9[_0x27e755(0x1d2)](_0x8c634b,_0x39d6d0)};}}),this['disposeWithMe'](_0x4a8efb[_0x5ac9d4(0x3d1)][_0x5ac9d4(0x434)][_0x5ac9d4(0x3e4)](()=>this[_0x5ac9d4(0x1d6)]()));}};ja=X([Y(0x1,_0x5c502f(_0x26baa8)),Y(0x2,_0x5c502f($)),Y(0x3,_0x5c502f(_0x2373db)),Y(0x4,_0x9a590e)],ja);let Ma=class extends _0xe29064{constructor(_0xd62fac,_0x560981,_0x44c90e,_0x133d49,_0x163ce7,_0x44fc08,_0x52d935,_0x42da18,_0x58bfbd,_0x5a0f61,_0x49176f){const _0x3991ed=_0x714ef0;super(),this[_0x3991ed(0x2be)]=_0xd62fac,this[_0x3991ed(0x3c8)]=_0x560981,this['_menuManagerService']=_0x44c90e,this[_0x3991ed(0x251)]=_0x133d49,this[_0x3991ed(0x331)]=_0x163ce7,this[_0x3991ed(0x1a7)]=_0x44fc08,this[_0x3991ed(0x20f)]=_0x52d935,this[_0x3991ed(0x247)]=_0x42da18,this['_contextService']=_0x58bfbd,this['_renderManagerService']=_0x5a0f61,this[_0x3991ed(0x26b)]=_0x49176f,q(this,_0x3991ed(0x1dc),null),q(this,_0x3991ed(0x39f),null),q(this,_0x3991ed(0x2d7),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x3991ed(0x1af),null),q(this,_0x3991ed(0x275),[]),this[_0x3991ed(0x422)](),this[_0x3991ed(0x238)](this[_0x3991ed(0x2be)][_0x3991ed(0x30d)](_0x58aa7b[_0x3991ed(0x222)])[_0x3991ed(0x3e4)](_0x2f1b04=>{const _0x277d13=_0x3991ed;if(!_0x2f1b04){var _0x10293d;(_0x10293d=this[_0x277d13(0x1dc)])==null||_0x10293d['dispose']();}})),this[_0x3991ed(0x18f)](),this[_0x3991ed(0x177)](),this[_0x3991ed(0x238)](this['_shapeTextEditingService']['editingParams$'][_0x3991ed(0x3e4)](_0x117bf1=>{const _0x178220=_0x3991ed;_0x117bf1&&this[_0x178220(0x3a2)]();}));}[_0x714ef0(0x422)](){const _0x2d8462=_0x714ef0;this[_0x2d8462(0x369)]['mergeMenu'](Wi);}['initShapePopupMenu'](){const _0x12259c=_0x714ef0;this[_0x12259c(0x1af)]||=this[_0x12259c(0x238)](_0x2cfb50(this['_renderManagerService'],_0x58aa7b[_0x12259c(0x222)],_0x2d4054=>this[_0x12259c(0x305)](_0x2d4054)));}[_0x714ef0(0x417)](_0x3ef4c0,_0x2a7090,_0x3e4c95){const _0x4d0eaa=_0x714ef0;let _0x19f785=this['_sheetsShapeService']['getShapeTypeById'](_0x3ef4c0,_0x2a7090,_0x3e4c95),_0x51052c=this[_0x4d0eaa(0x251)][_0x4d0eaa(0x3a4)](_0x3ef4c0,_0x2a7090,_0x3e4c95);return _0x19f785!==void 0x0&&_0x51052c!==void 0x0?{'shapeData':_0x51052c,'shapeId':_0x3e4c95,'shapeType':_0x19f785,'unitId':_0x3ef4c0,'subUnitId':_0x2a7090,'version':this[_0x4d0eaa(0x2f4)],'disableShapeOption':!0x1}:null;}[_0x714ef0(0x3a2)](){const _0x560da7=_0x714ef0;this[_0x560da7(0x275)][_0x560da7(0x185)](_0x4bb67c=>_0x4bb67c[_0x560da7(0x232)]()),this[_0x560da7(0x275)]['length']=0x0;}[_0x714ef0(0x305)](_0x4c6a9c){const _0x38a3ed=_0x714ef0;let _0x5c439b=new _0x5941cd();return _0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x1c5)][_0x38a3ed(0x3e4)](()=>{const _0xd47fb2=_0x38a3ed;let _0x14ea7f=_0x4c6a9c[_0xd47fb2(0x319)]();if(this[_0xd47fb2(0x3a2)](),this[_0xd47fb2(0x2d7)]||_0x14ea7f[_0xd47fb2(0x296)]>0x1)return;let _0x571d60=_0x14ea7f['values']()[_0xd47fb2(0x3ee)]()[_0xd47fb2(0x313)];if(!_0x571d60)return;let _0x5a913e=this[_0xd47fb2(0x20f)][_0xd47fb2(0x208)](_0x571d60['oKey']);if(!_0x5a913e||_0x5a913e['drawingType']!==_0x544f7a[_0xd47fb2(0x2c1)])return;let {unitId:_0x49e3e1,subUnitId:_0x4418b0,drawingId:_0x5e72bd,drawingType:_0x34e64b}=_0x5a913e,_0xad6dd=this['_getShapeInfo'](_0x49e3e1,_0x4418b0,_0x5e72bd);if(!_0xad6dd)return;this[_0xd47fb2(0x1a2)][_0xd47fb2(0x237)](_0x435760,!0x0);let _0x375132=this[_0xd47fb2(0x2cf)][_0xd47fb2(0x2af)](_0x49e3e1),_0x4fba71=((_0x375132==null?void 0x0:_0x375132['isMainScene'])===!0x1?_0x375132['with'](_0x2373db):this[_0xd47fb2(0x247)])[_0xd47fb2(0x1d2)](_0x571d60,{'componentKey':zr,'direction':_0xd47fb2(0x245),'offset':[0x0,_0x571bee],'extraProps':{'unitId':_0x49e3e1,'subUnitId':_0x4418b0,'drawingId':_0x5e72bd,'drawingType':_0x34e64b,'shapeType':_0xad6dd[_0xd47fb2(0x3b7)],'shapeData':_0xad6dd['shapeData']}});this[_0xd47fb2(0x275)]['push'](this['disposeWithMe'](_0x4fba71)),this[_0xd47fb2(0x20f)][_0xd47fb2(0x3dc)]()[_0xd47fb2(0x1f7)](_0x97c6f=>_0x97c6f[_0xd47fb2(0x277)]===_0x49e3e1&&_0x97c6f[_0xd47fb2(0x3d0)]===_0x4418b0&&_0x97c6f[_0xd47fb2(0x290)]===_0x5e72bd)||this[_0xd47fb2(0x20f)][_0xd47fb2(0x36f)]([{'unitId':_0x49e3e1,'subUnitId':_0x4418b0,'drawingId':_0x5e72bd}]);})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x1e5)][_0x38a3ed(0x3e4)](()=>{const _0x42d8bc=_0x38a3ed;this[_0x42d8bc(0x3a2)](),this[_0x42d8bc(0x1a2)][_0x42d8bc(0x237)](_0x435760,!0x1),this[_0x42d8bc(0x20f)][_0x42d8bc(0x36f)](null);})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c['changing$'][_0x38a3ed(0x3e4)](()=>{const _0x21f931=_0x38a3ed;this[_0x21f931(0x3a2)]();})),_0x5c439b[_0x38a3ed(0x25e)](_0x4c6a9c[_0x38a3ed(0x320)]['subscribe'](()=>{const _0x31bfd5=_0x38a3ed;this[_0x31bfd5(0x3a2)]();})),_0x128476(()=>{const _0x10044b=_0x38a3ed;_0x5c439b[_0x10044b(0x232)](),this[_0x10044b(0x3a2)]();});}['_registerOperations'](){const _0x3af358=_0x714ef0;this[_0x3af358(0x238)](this[_0x3af358(0x1a7)][_0x3af358(0x40f)](_0x3cc638=>{const _0x23bd7d=_0x3af358;if(_0x3cc638['id']===Wr['id']){let {unitId:_0x22c0a3,subUnitId:_0x1a8a0a,drawingId:_0x18f77c}=_0x3cc638[_0x23bd7d(0x387)];this['_shapeEditPanelVersion']+=0x1,this[_0x23bd7d(0x39f)]=this[_0x23bd7d(0x417)](_0x22c0a3,_0x1a8a0a,_0x18f77c),this[_0x23bd7d(0x3a2)](),this[_0x23bd7d(0x30b)]();}if(_0x3cc638['id']===ya['id']&&(this[_0x23bd7d(0x39f)]=null,this[_0x23bd7d(0x353)]()),_0x3cc638['id']===_0x197dab['id']){let {unitId:_0x5d6445,subUnitId:_0xfdad42,shapeId:_0x2060c0}=_0x3cc638['params'];if(this[_0x23bd7d(0x39f)]&&this['_activeShapeInfo'][_0x23bd7d(0x21d)]===_0x2060c0){let _0x180ae2=this[_0x23bd7d(0x417)](_0x5d6445,_0xfdad42,_0x2060c0);_0x180ae2&&(this[_0x23bd7d(0x2f4)]+=0x1,_0x180ae2['version']=this[_0x23bd7d(0x2f4)],this[_0x23bd7d(0x39f)]=_0x180ae2,this[_0x23bd7d(0x2d7)]&&this[_0x23bd7d(0x30b)]());}}})),this[_0x3af358(0x238)](this[_0x3af358(0x20f)][_0x3af358(0x3f5)]['subscribe'](_0x277d21=>{const _0x567bf0=_0x3af358;if(this[_0x567bf0(0x2d7)]===!0x1)return;if(_0x277d21[_0x567bf0(0x1c3)]===0x0){this[_0x567bf0(0x39f)]=null,this[_0x567bf0(0x353)]();return;}if(_0x277d21[_0x567bf0(0x1c3)]===0x1&&_0x277d21[0x0][_0x567bf0(0x198)]===_0x544f7a['DRAWING_SHAPE']&&(this[_0x567bf0(0x2f4)]+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0][_0x567bf0(0x277)],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this[_0x567bf0(0x39f)])){this['_openShapeEditPanel']();return;}let _0x111efc=_0x277d21[_0x567bf0(0x3c0)](_0x4f989e=>_0x4f989e['drawingType']===_0x544f7a[_0x567bf0(0x2c1)]);if(_0x277d21[_0x567bf0(0x1c3)]>0x1&&_0x111efc[_0x567bf0(0x1c3)]===_0x277d21[_0x567bf0(0x1c3)]){if(this[_0x567bf0(0x2f4)]+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0]['unitId'],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this['_activeShapeInfo']){this[_0x567bf0(0x30b)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x567bf0(0x39f)]=this[_0x567bf0(0x417)](_0x277d21[0x0][_0x567bf0(0x277)],_0x277d21[0x0][_0x567bf0(0x3d0)],_0x277d21[0x0][_0x567bf0(0x290)]),this[_0x567bf0(0x39f)]){this[_0x567bf0(0x39f)]['disableShapeOption']=!0x0,this[_0x567bf0(0x30b)]();return;}}this[_0x567bf0(0x353)]();}));}['_openShapeEditPanel'](){const _0x25083d=_0x714ef0;this['_activeShapeInfo']&&(this[_0x25083d(0x1dc)]=this[_0x25083d(0x3c8)][_0x25083d(0x249)]({'id':Lr,'header':{'title':this[_0x25083d(0x331)]['t'](_0x25083d(0x35d))},'width':0x184,'children':{'label':Lr,...this[_0x25083d(0x39f)]},'onClose':()=>{const _0x55ce69=_0x25083d;this[_0x55ce69(0x20f)][_0x55ce69(0x36f)](null),this['_contextService'][_0x55ce69(0x237)](_0x435760,!0x1),this[_0x55ce69(0x1dc)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0xa5d0e9=_0x714ef0;this[_0xa5d0e9(0x2d7)]=!0x1,this[_0xa5d0e9(0x3c8)][_0xa5d0e9(0x2ef)](Lr),this[_0xa5d0e9(0x1dc)]=null,this[_0xa5d0e9(0x1a2)][_0xa5d0e9(0x237)](_0x435760,!0x1),this[_0xa5d0e9(0x20f)]['focusDrawing'](null);}};Ma=X([Y(0x0,_0x1d15d2),Y(0x1,_0x5c502f(_0x3d8cd5)),Y(0x2,_0x308400),Y(0x3,_0x5c502f(_0x5b8f71)),Y(0x4,_0x5c502f(_0x30b59c)),Y(0x5,_0x2b8a3e),Y(0x6,_0x19d008),Y(0x7,_0x5c502f(_0x2373db)),Y(0x8,_0x3ae1e3),Y(0x9,_0x1e1faa),Y(0xa,_0x5c502f($))],Ma);let Na=class extends _0x14d9ad{constructor(_0x3422c8=Yi,_0x378043,_0x706a40,_0x4bd741,_0x5b7d70){const _0x3f6bc2=_0x714ef0;super(),this[_0x3f6bc2(0x1c6)]=_0x3422c8,this[_0x3f6bc2(0x210)]=_0x378043,this[_0x3f6bc2(0x1a7)]=_0x706a40,this[_0x3f6bc2(0x1ed)]=_0x4bd741,this[_0x3f6bc2(0x2cf)]=_0x5b7d70;let {..._0x4a48c6}=_0x1a3e4c({},Yi,this['_config']);this[_0x3f6bc2(0x1ed)]['setConfig'](Ji,_0x4a48c6),this[_0x3f6bc2(0x2f5)]();}[_0x714ef0(0x3bb)](){const _0x44168c=_0x714ef0;this[_0x44168c(0x2cf)][_0x44168c(0x220)](_0x58aa7b[_0x44168c(0x2aa)],[Aa]),_0x6cf6c(this[_0x44168c(0x210)],[[Ma],[ca],[Z],[ha]]);}[_0x714ef0(0x26c)](){const _0x506ede=_0x714ef0;this[_0x506ede(0x210)][_0x506ede(0x2dd)](Ma)[_0x506ede(0x177)]();}[_0x714ef0(0x397)](){const _0x17e3a2=_0x714ef0;[[da],[Pr],[fa]][_0x17e3a2(0x185)](_0x2a140e=>this[_0x17e3a2(0x210)][_0x17e3a2(0x25e)](_0x2a140e)),_0x6cf6c(this[_0x17e3a2(0x210)],[[fa],[Pr]]),this[_0x17e3a2(0x2cf)][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[da]),this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[Xi]),this[_0x17e3a2(0x2cf)][_0x17e3a2(0x220)](_0x58aa7b['UNIVER_SHEET'],[ma]),this[_0x17e3a2(0x2cf)]['registerRenderModule'](_0x58aa7b['UNIVER_SHEET'],[na]),this[_0x17e3a2(0x238)](this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[ja])),this[_0x17e3a2(0x238)](this['_renderManagerService'][_0x17e3a2(0x220)](_0x58aa7b[_0x17e3a2(0x222)],[Da]));}[_0x714ef0(0x3b5)](){const _0x13e78a=_0x714ef0;this['_injector'][_0x13e78a(0x25e)]([Ea]),this[_0x13e78a(0x210)][_0x13e78a(0x2dd)](Ea);let _0x2c07a1=this['_injector'];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x13e78a(0x185)](_0x286bef=>_0x2c07a1[_0x13e78a(0x25e)](_0x286bef)),_0x6cf6c(this[_0x13e78a(0x210)],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x714ef0(0x2f5)](){const _0x4a75cf=_0x714ef0;[Ir,K,ya,Wr,Ur,Fr,Kr,qr]['forEach'](_0x3da684=>this[_0x4a75cf(0x238)](this[_0x4a75cf(0x1a7)][_0x4a75cf(0x334)](_0x3da684)));}};q(Na,_0x714ef0(0x1f1),_0x58aa7b[_0x714ef0(0x222)]),q(Na,_0x714ef0(0x27b),'SHEET_SHAPE_UI_PLUGIN'),q(Na,_0x714ef0(0x17c),Gi),q(Na,_0x714ef0(0x3c6),Ki),Na=X([_0x542984(_0x1b2df7,_0x3444ed,_0x3fbaa1,_0x2cd028,_0x262fbb,_0x1b9900,_0x4ebfbc,_0x28c2e2,_0x2d5783,_0x33abc1,_0x178f75,_0x1542ac,_0x28f3b2),Y(0x1,_0x5c502f(_0x25a967)),Y(0x2,_0x2b8a3e),Y(0x3,_0x5f4811),Y(0x4,_0x1e1faa)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
1
+ const _0x291e41=_0x7c09;(function(_0xa37de,_0x2ad923){const _0x50cf95=_0x7c09,_0x302b64=_0xa37de();while(!![]){try{const _0x5d7dc9=-parseInt(_0x50cf95(0x434))/0x1*(-parseInt(_0x50cf95(0x378))/0x2)+parseInt(_0x50cf95(0x36b))/0x3+-parseInt(_0x50cf95(0x231))/0x4*(-parseInt(_0x50cf95(0x3e2))/0x5)+-parseInt(_0x50cf95(0x40b))/0x6*(parseInt(_0x50cf95(0x3df))/0x7)+-parseInt(_0x50cf95(0x310))/0x8+-parseInt(_0x50cf95(0x2fc))/0x9+-parseInt(_0x50cf95(0x425))/0xa*(-parseInt(_0x50cf95(0x420))/0xb);if(_0x5d7dc9===_0x2ad923)break;else _0x302b64['push'](_0x302b64['shift']());}catch(_0x2612c1){_0x302b64['push'](_0x302b64['shift']());}}}(_0x5720,0x2b1d1));import{FormulaShapeAnimationController as _0x557362,MobileShapeEditorService as _0xdd7ac8,SHAPE_CHANGE_PICKER_COMPONENT as _0x527a50,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x806650,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xf7ed1d,ShapeEditPanel as _0x36eeae,ShapeFloatingToolbar as _0x46cdc2,ShapeFloatingToolbarService as _0x5014c7,ShapeFloatingToolbarToggleFactory as _0x219f54,ShapeFormulaRibbonControl as _0x423781,ShapeGroupEnum as _0x1888fe,ShapePickerDropdown as _0x908982,ShapePickerPanel as _0x278d3,ShapeQuickStyleGallery as _0x125dd1,ShapeStyleRibbonControl as _0xf453d4,ShapeTextEditorContainer as _0xde71ea,ShapeTextFloatMenuRenderControllerBase as _0x34370e,ShapeTextFloatToolbar as _0x39f31b,ShapeTextHyperLinkHoverController as _0x164e04,ShapeTextHyperLinkInfo as _0x499c50,ShapeTextHyperLinkPopupService as _0xaf604c,ShapeTextRibbonControl as _0x28730a,ToggleShapeFloatingToolbarOperation as _0x4895c1,UniverShapeEditorMobileUIPlugin as _0x321a7b,UniverShapeEditorUIPlugin as _0x4cb8bb,activateDrawingObject as _0x390dd1,bindRenderTransformerLifecycle as _0x5695f5,buildShapeTextDataUpdate as _0x7848a,clearActiveDrawingObjects as _0x333af8,createShapeTextHyperLinkRegions as _0x43e03f,drawFormulaShapeAnimationLayers as _0x5ef902,getDrawingTypeNameKey as _0x2dbe92,getTextModel as _0x191d9a,getTextStyle as _0x35bc62,normalizeShapeTextModel as _0xe7bcff,plainShapeTextToDocumentData as _0x5650b1,prepareShapeTextDocumentData as _0x9ecb98,registerShapeFormatPainter as _0x2f2687,resolveFormulaShapeAutoFitSize as _0x3c23c5,resolveShapeContextualRibbonHostMode as _0x3afe9f,resolveShapeTextDocumentPageHeight as _0x5c59a8,resolveShapeTextDocumentRenderLayout as _0x151902,resolveShapeTextEditorBehaviorShapeData as _0x1ea201,resolveShapeTextEditorWrapStrategy as _0x999a14,resolveShapeTextHyperLinkAt as _0x37d474,resolveShapeTextHyperLinkObject as _0x39a534,shouldAllowShapeTextEditorHostSizeShrink as _0x59f590,shouldClipShapeTextDocument as _0x41dfeb,useFormulaShapeToolbar as _0x3c9bbc}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x5a241f,ContextMenuGroup as _0x5580dd,ContextMenuPosition as _0x42929a,FloatingObjectToolbarPosition as _0x150ddc,FormatPainterSessionService as _0x495908,IMenuManagerService as _0x24215b,IRibbonService as _0x5b1e2e,ISidebarService as _0x31c5f5,IconManager as _0x3844d8,MenuItemType as _0x570be5,MenuManagerPosition as _0x388a30,RibbonInsertGroup as _0x412e51,UndoRedoGroupService as _0x2a1a7d,UniverMobileUIPlugin as _0x227d6b,getMenuHiddenObservable as _0x205c3b,useDependency as _0x42cc68,useObservable as _0x279878}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x57b6f7,ImageSourceTypeEnum as _0x54f00f,ShapeArrowSizeEnum as _0x672a93,ShapeArrowTypeEnum as _0x3aa73d,ShapeDefaultConfig as _0x179988,ShapeFillEnum as _0x2efc4e,ShapeLineTypeEnum as _0xdd541a,ShapeModel as _0xdd4745,ShapeRenderModeEnum as _0x49a3ec,ShapeTypeEnum as _0x206995,computeConnectorRouteLayout as _0x485b2f,getBasicShapeRotateBound as _0x1eb82f,isConnectorShape as _0x5184c7,isCurvedConnectorShape as _0x1105e7,routeConnectorLineShape as _0xf06aa3}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x42a3cf,UniverShapeEditorPlugin as _0x22a2d8,applyQuickStyleToShapeData as _0x28ac21,cloneShapeDataForType as _0x386d13,createShapeFormulaDocument as _0x13ffed,createShapeTextBoxShapeData as _0x412b4d,getShapeQuickStylePreset as _0x33963b,getShapeQuickStyleType as _0x5d10b7,resolveActiveShapeQuickStylePresetId as _0x12b5de}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x2b8b47,InsertSheetsShapeMutation as _0x456c13,RemoveSheetsShapeMutation as _0x5aa689,SetShapeDrawingDataCommand as _0x11a9aa,SheetsShapeService as _0x1e1f0c,ToggleSheetsShapeFlipCommand as _0x47976c,UniverSheetsShapePlugin as _0x50e887,UpdateConnectorRelationCommand as _0x54081a,UpdateLineShapeResizeCommand as _0x9d6709,UpdateSheetsShapeDataMutation as _0x172941}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x10dd10,CommandType as _0x303f65,DependentOn as _0x650ae5,Disposable as _0x557a26,DisposableCollection as _0x39a460,DocumentDataModel as _0x475565,DrawingTypeEnum as _0x40fd85,FOCUSING_COMMON_DRAWINGS as _0x317872,FOCUSING_SHAPE_TEXT_EDITOR as _0x2a4c27,HorizontalAlign as _0xc256c8,ICommandService as _0x54c16f,IConfigService as _0x3dbeab,IContextService as _0x4b3877,IImageIoService as _0x213f29,IPermissionService as _0x1d37e3,IURLImageService as _0x5f21c5,IUndoRedoService as _0x214c77,IUniverInstanceService as _0x44b74c,Inject as _0x5b79b4,Injector as _0x2882bc,LocaleService as _0x13738a,Plugin as _0x1f6119,UniverInstanceType as _0x3c82b9,VerticalAlign as _0x46a67d,createInternalEditorID as _0xe939c,generateRandomId as _0x2eff46,merge as _0x45bd5a,registerDependencies as _0x2cbcdc,toDisposable as _0x53ca46,touchDependencies as _0x125864}from'@univerjs/core';import{CopySheetCommand as _0x4f6b3a,RemoveSheetCommand as _0x20821a,SheetInterceptorService as _0x20504f,SheetPermissionCheckController as _0x277cdb,SheetSkeletonService as _0x4f7695,SheetsSelectionsService as _0x438b0b,UniverSheetsPlugin as _0x4d4740,WorkbookCopyPermission as _0x581335,WorkbookEditablePermission as _0x20b096,WorksheetCopyPermission as _0x499382,WorksheetEditPermission as _0x1ea295,attachRangeWithCoord as _0x170768,discreteRangeToRange as _0x4bd816,getSheetCommandTarget as _0x378f79}from'@univerjs/sheets';import{IDrawingManagerService as _0x28cffc,SetDrawingSelectedOperation as _0x5e3e35,UniverDrawingPlugin as _0x73a66f,getDrawingShapeKeyByDrawingSearch as _0x38d621,getOrCreateDrawingCopyPlan as _0x3e806a}from'@univerjs/drawing';import{CURSOR_TYPE as _0x15231c,Circle as _0x49536a,DRAWING_OBJECT_LAYER_INDEX as _0x10b13b,DocumentSkeleton as _0x41a7bc,DocumentViewModel as _0x114b7f,Documents as _0x231258,IRenderManagerService as _0x1158d5,Image as _0x3e5f8e,RENDER_CLASS_TYPE as _0x142f92,SHEET_VIEWPORT_KEY as _0x8831d0,Shape as _0x156eef,Transform as _0x36d9d2,UniverRenderEnginePlugin as _0x3d4438,Vector2 as _0x45d11b}from'@univerjs/engine-render';import{COPY_TYPE as _0x10a2b5,ISheetClipboardService as _0xa7e024,PREDEFINED_HOOK_NAME as _0x533c9a,SheetCanvasPopManagerService as _0x57fdbe,SheetPrintInterceptorService as _0x344f2a,SheetScrollManagerService as _0xbd2a68,SheetSkeletonManagerService as _0x5635f6,UniverSheetsMobileUIPlugin as _0x1c1c30,UniverSheetsUIPlugin as _0x34cd91,deriveStateFromActiveSheet$ as _0x4cade8,getCurrentRangeDisable$ as _0xa68a8d,getViewportByCell as _0x53677b}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x21d0c1,EMPTY as _0x257bb9,Observable as _0x1486bd,defer as _0x5ccdfe,distinctUntilChanged as _0xfbaf87,map as _0x415b6a,merge as _0x6a7021,of as _0x413c25,startWith as _0x1c299f,switchMap as _0x17931b}from'rxjs';function _0x7c09(_0x4f5958,_0x4e80fc){_0x4f5958=_0x4f5958-0x192;const _0x5720d2=_0x5720();let _0x7c0962=_0x5720d2[_0x4f5958];return _0x7c0962;}import{DrawingCommonPanel as _0x575d51,DrawingImageClipService as _0x252e29,DrawingRenderService as _0x5a0133,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1b086b,MobileObjectListPanel as _0x570c7a,OBJECT_LIST_FLOATING_SECTION_ID as _0x39a12f,ObjectListPanelBase as _0x43b8f7,UniverDrawingUIPlugin as _0x55e9c6,getCurrentUnitInfo as _0x286bfa,getObjectListPanelSectionIdForDrawingType as _0x4dc94f,insertGroupObject as _0x56c630}from'@univerjs/drawing-ui';import{MobileDropdown as _0xf665f2}from'@univerjs/design';import{Fragment as _0x50afb4,jsx as _0x183ba7,jsxs as _0x21f5b5}from'react/jsx-runtime';import{DrawingApplyType as _0x22a6fe,ISheetDrawingService as _0x17b29e,RemoveSheetDrawingCommand as _0x1c9438,SetDrawingApplyMutation as _0x2db9e2,SetDrawingArrangeCommand as _0x15f547,SetSheetDrawingCommand as _0xb1758f,UniverSheetsDrawingPlugin as _0x470190,transformToAxisAlignPosition as _0x5e3806,transformToDrawingPosition as _0x4f36ef}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x49fb5c}from'@univerjs-pro/license';import{DocInterceptorService as _0x1be28b,DocSelectionManagerService as _0x24fa05,UniverDocsPlugin as _0x5795a7}from'@univerjs/docs';import{DocCanvasPopManagerService as _0xbc2827,DocEventManagerService as _0x2a6447,DocRenderController as _0x2112e8,DocSelectionRenderService as _0x132ceb,UniverDocsUIPlugin as _0x3c117e}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0xf526c,SheetsDrawingGroupCopyPasteController as _0x2c59b9,UniverSheetsDrawingMobileUIPlugin as _0x40f5a7,UniverSheetsDrawingUIPlugin as _0x15f435}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x19c68f,FlipHorizontalIcon as _0x30529a,FlipVerticalIcon as _0xd6996,MoveDownIcon as _0x14ee72,MoveUpIcon as _0xb1af47,ObjectLayersIcon as _0x10ffc5,ShapeFormatSettingIcon as _0x21bdf2,TopmostIcon as _0x384eef}from'@univerjs/icons';import{memo as _0x130daa,useEffect as _0x3b96f0,useMemo as _0x283095,useReducer as _0x2c6db3,useState as _0x339b64}from'react';function Or(_0x53d994,_0x295010){const _0x32218c=_0x7c09;let _0x52f0fa={};for(let _0x1db8a0 of Object['keys'](_0x295010)){let _0x323774=_0x295010[_0x1db8a0],_0x531d61=_0x53d994[_0x1db8a0];_0x52f0fa[_0x1db8a0]=_0x531d61===void 0x0?void 0x0:typeof _0x323774==_0x32218c(0x3d1)&&_0x323774&&!Array['isArray'](_0x323774)&&typeof _0x531d61==_0x32218c(0x3d1)&&_0x531d61&&!Array[_0x32218c(0x382)](_0x531d61)?Or(_0x531d61,_0x323774):_0x531d61;}return _0x52f0fa;}const K={'type':_0x303f65[_0x291e41(0x287)],'id':_0x291e41(0x2d7),'handler':(_0x1c4bc1,_0xe2fc43)=>{const _0x280339=_0x291e41;let _0x4f93d4=_0x1c4bc1['get'](_0x1e1f0c),{unitId:_0x297bf9,subUnitId:_0x3fbcf5,shapeType:_0x9ac6db,shapeId:_0x319f71,shapeData:_0x3fa948,replaceShapeData:_0x9d1a6,oldShapeJSON:_0x512115}=_0xe2fc43;if(!_0x4f93d4[_0x280339(0x32d)](_0x297bf9,_0x3fbcf5,_0x319f71))return!0x1;let _0x207eb6=_0x1c4bc1[_0x280339(0x42c)](_0x54c16f),_0x10e65f=_0x1c4bc1[_0x280339(0x42c)](_0x214c77),{oldShapeType:_0x428c2c,oldShapeData:_0x48eb97={}}=_0x512115,_0x193635=_0x9d1a6?_0x48eb97:Or(_0x48eb97,_0x3fa948||{}),_0x5f27c4={'id':_0x172941['id'],'params':{'unitId':_0x297bf9,'subUnitId':_0x3fbcf5,'shapeId':_0x319f71,'shapeType':_0x9ac6db,'shapeData':_0x3fa948,'replace':_0x9d1a6}},_0x5dd78f={'id':_0x172941['id'],'params':{'unitId':_0x297bf9,'subUnitId':_0x3fbcf5,'shapeId':_0x319f71,'shapeType':_0x428c2c,'shapeData':_0x193635,'replace':_0x9d1a6}};return _0x207eb6['syncExecuteCommand'](_0x5f27c4['id'],_0x5f27c4[_0x280339(0x2b1)])?(_0x10e65f[_0x280339(0x45e)]({'unitID':_0x297bf9,'undoMutations':[_0x5dd78f],'redoMutations':[_0x5f27c4]}),!0x0):!0x1;}};function kr(_0x1abb82,_0x397082,_0x2301f7,_0x4b66a9,_0x35a736,_0x4f4eb4){const _0xc08ab0=_0x291e41;let _0x278c03={'unitId':_0x397082,'subUnitId':_0x2301f7,'shapeId':_0x4b66a9,'shapeData':_0x4f4eb4,'oldShapeJSON':_0x35a736};return _0x1abb82[_0xc08ab0(0x2e1)](K['id'],_0x278c03);}function Ar(_0x4ca433,_0x5f0bf7,_0x195aa8,_0x4f947d,_0x5cdd4b,_0x5f43a1){const _0x31a5d6=_0x291e41;let _0x577f22={'unitId':_0x5f0bf7,'subUnitId':_0x195aa8,'shapeId':_0x4f947d,'shapeData':_0x5f43a1,'oldShapeJSON':_0x5cdd4b};return _0x4ca433[_0x31a5d6(0x2e1)](K['id'],_0x577f22);}function jr(_0x100fdf){'@babel/helpers - typeof';const _0x158095=_0x291e41;return jr=typeof Symbol==_0x158095(0x196)&&typeof Symbol[_0x158095(0x24d)]==_0x158095(0x2e4)?function(_0xcf53a7){return typeof _0xcf53a7;}:function(_0x4358ec){const _0x12ed8f=_0x158095;return _0x4358ec&&typeof Symbol==_0x12ed8f(0x196)&&_0x4358ec['constructor']===Symbol&&_0x4358ec!==Symbol[_0x12ed8f(0x326)]?'symbol':typeof _0x4358ec;},jr(_0x100fdf);}function _0x5720(){const _0x2f6bbf=['shapeText','sheets-shape-ui.config','_sheetPermissionCheckController','unitId','setPrstGeomAdjValues','_handleConnectedEndpointMove','from','panel','isInGroup','rect','name','permissionPointUpdate$','DRAWING','addObject','UNIVER_SHEET','_clearCompletionFrame','sheet.operation.close-sheet-shape-format-panel','_hide','_getShapeInfo','_permissionService','reduce','DEFAULT_PASTE','shape-text-','extraProps','initShapePopupMenu','_updateSrcRectByTransform','clipByShape','_injector','setFallbackVisible','273888XxmTNz','changeStart$','_connectionSiteObjects','getAdjustNames','offsetX','_adjHandlerPointerMove','multiply','_activeShapeInfo','MoveDownIcon','TOP','cos','connection-site-','flatMap','144gKotyX','ShapeIcon','sheets-shape-ui.ribbon.shape-format.arrange-front','computeStraightConnectorLayout','_baseShapeTop','getActualSize','clearControl$','bottom','_cxtHandlerPointerUp','_handleBasicShapeUpdateConnectorLineShape','isArray','_sheetClipboardService','entries','sidebarOptions$','getEndConnectInfo','MEDIA','_imageShapeClipController','sheetTransform','drawWith','transformVector2SceneCoord','sheetViewStartRow','parse','getBentTypeFromPoints','refreshFormulaPresentation','_adjName','_focusedDrawings','ObjectLayersIcon','MoveUpIcon','_univerInstanceService','#1a73e8','SolidFill','default','changeEnd$','calcAdjValues','sheet.shape.floating-toolbar','sheet.operation.open-shape-object-list-panel','FromArray','getImageSourceCache','getTransformerByCreate','_draw','GROUP','setFillImage','getDrawingVisible','shape-editor-ui.arrange.front','_imageIoService','undo','_transform','getRenderUnitById','sheet.shape.object-list.panel','_baseShapeHeight','_transformCalculateSrcRect','getSkeletonParam','fontFamily','shapeData','sin','dataModel','refreshTransform','getShapeTextRect','ShapeFormatSettingIcon','highlighted','_baseTop','engine','doc.image-clip.shape-picker.component','_getSceneAndTransformerByDrawingSearch','_setTransForm','offsetY','_adjHandlerPointerUp','updateDocumentDataMargin','activeSheet$','drawing-ui.objectListPanel.details','_moveConnectorWithShape','fill','filter','startArrow','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','targetShapeId','setShapeData','clipTop','_drawSimpleText','_registerOperations','drawing-ui.objectListPanel.typeNames.','getInverseCoord','_handleConnectedEndpointPointerUp','end','map','_props','top','register','object','setOnSavingEditorData','_formulaKey','drawing-ui.objectListPanel.filterHidden','_insertShapes','_registerImageShapeClipDelegate','_isShouldShowDrawingShapeAdjust','editingParams$','setAdjustValueByName','getPermissionPoint','startConnectionDetection','asObservable','adjHandleSize','calculate','22652rjyKYk','isHitLine','shapeType','2395MbGxbB','drawing-ui.objectListPanel.noSelection','Arrow','point','OPERATION','front','getEditing','_clipService','viewportScrollY','getZoomRatio','value','_componentManager','_drawRichText','_sheetDrawingService','onTransformChange$','keys','registerFeatureMenu','values','_registerDrawingFocusChangeHandler','div','setFormulaPresentation','index','restore','unit','beforeCommandExecuted','setEditing','order','isRichText','drawing-ui.objectListPanel.moveForward','_clearConnectionSites','animationEnabled','with','endConnectionDetection','version','localToWorld','getMatrix','viewBound','drawing-ui.objectListPanel.collapse','_sheetsShapeService','setContextValue','sheet.shape.text.float-menu','120zSlPUq','_baseDrawingRect','_configService','getDrawingData','abs','registerRenderModule','getBatchUpdateOp','_handleFreeEndpointMove','objects','getConnectionRelation','close','shapeId','_sheetSkeletonService','isHighlighted','error','_isHighlighted','_getShapeAdjustPointListById','top-center','sheets-shape-ui.flipHorizontal','_activeShapeId','Rect','9295Tnbkpd','_commandExecutedListener','_shapeFormulaService','mergeMenu','disableObjectsEvent','1290PusXSp','_disposePopups','REMOVE','_updateAdjustControlPositions','_sheetBasicShapeConnectionPointController','_addShapeConnectorHandlerObject','presentationChanged$','get','visible','showContextualTab','getImage','_groupCopyPasteController','getSheetId','disposeWithMe','drawing-ui.objectListPanel.close','4690iMZKRY','UNIVER_DOC','_getScrollInfo','getAdjustInfoByName','src','clip','DRAWING_SHAPE','SheetShapeTextEditorContainer','onCommandExecuted','resourceCollector','ancestorTransform','_clearControls','getUnitId','applyPoint','color','adjName','strokeWidth','call','_initPermission','_initSheetChange','_registerComponents','_renderManagerService','rotation','forEach','changeShapeType','defineProperty','sheets-shape-ui.ribbon.shape-format.text-control','getDrawingPoints','getSelectedObjectMap','sheets-shape-ui.ribbon.shape-format.formula-control','contentVerticalOffset','getCurrentUnitOfType','stringify','_attachAdjustEvent','subscribe','sheetViewStartColumn','setConfig','isEditing','_isImagePointerDown','_resetState','clone','width','pushUndoRedo','worldPoints','_activeImageId','doc','_registerGroupFeaturePasteHook','setShouldShowAdjust','function','getVisible','CROSSHAIR','_commandService','drawing-ui.objectListPanel.filterAll','BUTTON','interceptCommand','_sheetPrintInterceptorService','_sheetCanvasPopManagerService','fillImageSource','getShapeDataById','shape-editor-ui.toolbar.quickStyles','_targetShapeId','drawing-ui.objectListPanel.moveBackward','getShapeTypeById','_shapes','_disposed','idMap','sheets-shape-ui.ribbon.shape-format','subscribeEvent','getDrawingOKey','drawing-ui.objectListPanel.showAll','#bcbcbc','_connectorObjects','VIEW_MAIN_LEFT','cxnPointStrokeWidth','_initCommands','cxnPointStroke','_registerMoveHandler','Path','_iconManager','setPresentation','setSrcRect','syncExecuteCommand','sheets-shape-ui.deleteShape','push','sheets-shape-ui.shape-format.text-ribbon-control','adjHandleStroke','sheets-shape-ui.ribbon.shape-format.arrange-back','sheet.operation.open-sheet-shape-format-panel','pluginName','drawing-ui.objectListPanel.lock','skeleton','setCanUseShapeClip','_createShapeAdjustControls','update$','next','#FFFFFF','_updateImageAdjValues','_executeConnectedRouteConnectionCommand','srcRect','getAdjustValueByName','buildClipPath','_initMenu','_drawingAddListener','SHAPE_TEXT','_baseShapeLeft','viewportScrollX','_registerDrawingMoveHandler','_baseHeight','flipY','animateFormulaPresentation','fillImageSourceType','prstGeomAdjValues','_isConnecting','@univerjs-pro/sheets-shape-ui','focus$','_createControls','custom','_shapeId','_shapeFloatingToolbarService','drawingId','_getImageDrawingInfo','_subUnitId','_editingParams$','onSavingEditorData$','FlipVerticalIcon','_sheetShapeAdjustController','find','drawing.operation.set-drawing-active','translate','onPointerDown$','LEFT','getCurrentSkeleton','RIBBON','sheets-shape-ui.objectListPanel.open','getActiveViewportByCoord','drawing-ui.objectListPanel.lockAll','_initPrinting','enableObjectsEvent','sheet.operation.update-shape-type','drawing-ui.objectListPanel.show','scene','_menuManagerService','getFocusDrawings','SELECTOR','sheets-shape-ui.title','sheet.menu.shape.flip-horizontal','vertical-center','getConnectionSiteList','_registerIcons','pick','getObject','_applyFormulaAutoFitSize','addImageSourceCache','completeEditing','isolated','_updateShapeAdjustControls','_localeService','getInterceptPoints','extensionGroups','_generateCopyPasteMutations','computeConnectorResizeLayout','resolveHyperLinkAt','getUnit','drawingType','_rerouteConnectorLine','getConnectorLinePoints','draw','dispose','_reset','_onSavingEditorData$','cancelEditing','_currentConnectionTarget','getCurrentScrollState','drawing-ui.objectListPanel.sectionFloating','permissionCheckWithoutRange','size','style','setPrstGeom','_closeShapeEditPanel','_openShapeEditPanel','canvas','subUnitId','transform','drawing-ui.objectListPanel.expand','visible$','UUID','transformByState','forward','_attachConnectorObjectEvent','stroke','_getConnectPointInfo','onReady','_showConnectionSites','onStarting','clearAdjustControls','_hasReset','axisAlignSheetTransform','PictureFill','drawing-ui.objectListPanel.description','preValue','_generateCutPasteMutations','_activeShapeModel','#4285f4','620WxJwXA','unregister','_shapeRenderController','getContextValue','description','_clearShapeAdjustControls','_init','OTHERS','cxnIndex','_activeShapeAdjustPointList','_sheetDrawingShapeRenderController','render','contentHeight','_activeAdjustInfo','getDrawingOrder','_insertingShapeKeys','text','complete','trim','_formulaShapes','_getZoomRatio','setHighlighted','updateLinePoints','drawing-ui.objectListPanel.lockHint','toPrimitive','_createCopyInfoByRange','delete','pipe','iterator','sheets-shape-ui.flipVertical','run','sheets-shape-ui.editText','getConnectionInfo','SHEET_SHAPE_UI_PLUGIN','includes','updateConnectionDetection','_addShapeAdjustControl','registerClipDelegate','height','getDrawingDataForUnit','BottomIcon','_initEditingParams','resize','_isStartAdjusting','shape-editor-ui.arrange.backward','_findShapeAtPoint','beginPath','_getOrCreateShapeModel','isHit','getCurrentTypeOfUnit$','_urlImageService','_isStartConnectorPoint','sectionFloating','startX','_baseWidth','oKey','open','VIEW_MAIN_TOP','flipX','Large','_getConnectionSiteAngle','composeMatrix','worldRect','_addShapeConnectorHandlerObjects','string','FlipHorizontalIcon','_loadShapePictureFill','onPointerUp$','_shapeEditPanelVersion','resetCursor','packageName','_clearPopups','univer-box-border\x20univer-px-4\x20univer-text-sm','save','sheets-shape-ui.ribbon.shape-format.style-control','_registerFeatureMenu','DRAWING_IMAGE','_calculateFreeEndpointAngle','_drawShapeText','clear','updateShapeFillImage','Medium','_activeTargetShapeId','getRealBound','image-clip-adjust-point-','shapeModel','COMMAND','_visible','_handleFreeEndpointPointerUp','set','popup','type','_config','getDrawingEditable','_findNearestConnectionSite','has','onerror','getObjectIncludeInGroup','makeDirty','sheets-shape-ui.ribbon.shape-format.arrange-backward','formulaBinding','sheets-shape-text-','sheets-shape-ui.objectListPanel.title','getParent','_baseLeft','sheets-shape-ui.editShape','image','_getImagePrstGeom','drawing-ui.objectListPanel.unlockAll','endArrow','_lastEditingShapeKey','angle','clip-adj-','sheets-shape-ui','_drawRichTextLayer','drawing-ui.objectListPanel.dragToReorder','stopPropagation','getFocusedUnit','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','sectionCanvas','clearAdjustValue','_initialize','horizontal','registerCommand','_baseShapeWidth','sheet.operation.open-mobile-shape-editor','sheet.operation.apply-shape-quick-style','refreshAdjustControls','params','removeLinePoints','_handleConnectorPointerUp','getDrawingSearch','_getShapeAdjustInfosById','_initEvents','fillType','localeService','SHEET','getShapeType','_formulaAnimation','_executeConnectionCommand','focusDrawing','startY','_loadAndSetImage','indexOf','_shapeUpdateListener','debounceRefreshControls','getBatchRemoveOp','SolidLine','selectable','componentKey','drawing-ui.objectListPanel.filterLocked','clipHeight','_sheetInterceptorService','_getDrawingRect','relation','sheets-shape-ui.quickStyles','_currentScene','attachTransformerTo','_completionFrame','getValue','getSheetBySheetId','drawing-ui.objectListPanel.locate','_releaseRenderCache','_contextService','translateWithPrecision','shape-editor-ui.arrange.forward','sheet.command.update-shape-data','getSkeleton','getShapeData','_shapePopupMenuDisposable','_ribbonService','createControl$','_activeAdjustPointList','onDblclick$','getPresentation','_executeResizeCommand','executeCommand','addClipboardHook','shapeKey','symbol','canvasElement','isLineShape','sheet.image-clip.shape-picker.component','None','hasDefault','_shapeService','_generatePasteMutations','getState','cxnPointRadius','sheet.shape.edit.panel','invert','backward','UPDATE','changing$','shape-adjust-point-','intercept','isRender','worldPoint','isMainScene','_sidebarService','_executeConnectedRouteResizeCommand','sheets-shape-ui.ribbon.shape-format.arrange-forward','currentAdjustValues','251118xAvfrS','classType','getActiveSheet','_drawingRenderService','_registerFocusChangeHandler','renderDrawingShape','_canEdit','_highlightedSiteIndex','_currentUniverService','data','sheet.menu.shape.flip-vertical','sheets-shape-ui.imagePanel.crop.shape','ang','getStartConnectInfo','fromChangeset','clip-','sheets-shape-format-font-family-menu','attachPopupToObject','_isDrawingShapePointDown','_copyInfo','2744088xaSqHy','getBatchAddOp','getDrawingByParam','getCanvasElement','hidden','vertical','_draggingConnectorId','sheets-shape-ui.permission.editErr','sheets-shape-ui.formatShape','shape-editor-ui.toolbar.changeShape','current','parent','remove$','some','updateContext','_clearShapeConnectorHandlerObjects','updateDocumentStyle','hideContextualTab','add','_sidebarDisposable','prstGeom','drawing-ui.objectListPanel.unlock','prototype','_cxnIndex','PRINTING_COMPONENT_COLLECT','setCursor','getScene','options','setShapeProps','getShapeModel','isHorizontal','_unitId','start','drawing-ui.objectListPanel.nameInput','_isOpenedShapeEditPanel','refreshShapeFillImage','_initSelection','getTransformer','_addControl','left','transformForAngle','drawing-ui.objectListPanel.search','getBasicShapeRelation','_update','cxnPointFill','_shapeTextEditingService','Image','back','getUnitType','shape-editor-ui.arrange.back','adjustValues','_context','_cxtHandlerPointerMove','lineType','_drawingManagerService','INSERT','StraightConnector1','onPointerMove$','_hyperLinkRegions','Line','unsubscribe','redo'];_0x5720=function(){return _0x2f6bbf;};return _0x5720();}function Mr(_0x32c950,_0x3db309){const _0x36587b=_0x291e41;if(jr(_0x32c950)!='object'||!_0x32c950)return _0x32c950;var _0x5a951c=_0x32c950[Symbol[_0x36587b(0x249)]];if(_0x5a951c!==void 0x0){var _0x2ecb60=_0x5a951c[_0x36587b(0x445)](_0x32c950,_0x3db309||_0x36587b(0x397));if(jr(_0x2ecb60)!='object')return _0x2ecb60;throw TypeError(_0x36587b(0x3c2));}return(_0x3db309===_0x36587b(0x271)?String:Number)(_0x32c950);}function Nr(_0x572974){const _0xf5171a=_0x291e41;var _0x4404a4=Mr(_0x572974,_0xf5171a(0x271));return jr(_0x4404a4)=='symbol'?_0x4404a4:_0x4404a4+'';}function q(_0x52a130,_0x57583d,_0x1cd15d){const _0x178820=_0x291e41;return(_0x57583d=Nr(_0x57583d))in _0x52a130?Object[_0x178820(0x44d)](_0x52a130,_0x57583d,{'value':_0x1cd15d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52a130[_0x57583d]=_0x1cd15d,_0x52a130;}function Pr(_0x446ce1,_0xa779ec,_0x6f4264){let _0x4ecb22={..._0xa779ec,'dataModel':{..._0xa779ec['dataModel']??{},..._0x6f4264?{'doc':_0x6f4264}:null}},_0x3a1885=_0x1ea201(_0x446ce1,_0x4ecb22),_0x2862d3=_0x999a14(_0x3a1885);return{'clip':_0x41dfeb(_0x3a1885,_0x2862d3),'wrapStrategy':_0x2862d3};}var J=class extends _0x156eef{constructor(_0x4cdef2,_0x3ae757){const _0xdb93a8=_0x291e41;super(_0x4cdef2,_0x3ae757),q(this,_0xdb93a8(0x34a),[]),q(this,_0xdb93a8(0x3ce),void 0x0),q(this,_0xdb93a8(0x2bb),new _0x557362(()=>this[_0xdb93a8(0x293)](!0x0),()=>this[_0xdb93a8(0x1fd)]())),q(this,'_transformCalculateSrcRect',!0x0),q(this,'_drawingType',_0x40fd85[_0xdb93a8(0x43a)]),q(this,'isDrawingObject',!0x0),this[_0xdb93a8(0x3ce)]={..._0x3ae757},this[_0xdb93a8(0x2bb)][_0xdb93a8(0x1b5)](_0x3ae757['formulaPresentation'],_0x3ae757[_0xdb93a8(0x1d3)]!==!0x1),this[_0xdb93a8(0x237)](),this[_0xdb93a8(0x1fd)]();}[_0x291e41(0x237)](){const _0x456e7=_0x291e41;this[_0x456e7(0x3f0)]['subscribeEvent'](_0x50f043=>{this['_updateSrcRectByTransform'](_0x50f043);});}[_0x291e41(0x217)](_0x2b925f){const _0x3a31a7=_0x291e41;this[_0x3a31a7(0x3ce)][_0x3a31a7(0x324)]=_0x2b925f;}[_0x291e41(0x207)](_0x2a41e4){const _0x4dffbb=_0x291e41;if(this[_0x4dffbb(0x3ce)][_0x4dffbb(0x459)])return null;let _0x4a281e=this[_0x4dffbb(0x3ca)](_0x2a41e4),{width:_0x22fadc,height:_0x16ea03}=this[_0x4dffbb(0x284)]();return _0x37d474(this[_0x4dffbb(0x34a)],{'x':(this[_0x4dffbb(0x26b)]?-_0x4a281e['x']:_0x4a281e['x'])+_0x22fadc/0x2,'y':_0x4a281e['y']+_0x16ea03/0x2});}[_0x291e41(0x3fb)](_0x113554){const _0x11398c=_0x291e41;this['_props'][_0x11398c(0x459)]=_0x113554,this[_0x11398c(0x293)](!0x0);}['setFormulaPresentation'](_0x20d8b1,_0x3aa9fc=!0x0){const _0x21ed05=_0x291e41;this[_0x21ed05(0x2bb)][_0x21ed05(0x1b5)](_0x20d8b1,_0x3aa9fc),this[_0x21ed05(0x3ce)]['formulaPresentation']=_0x20d8b1,this[_0x21ed05(0x1fd)](),this[_0x21ed05(0x293)](!0x0);}[_0x291e41(0x1fd)](){const _0x1578b3=_0x291e41;let _0x4bb40c=this[_0x1578b3(0x3ce)]['shapeModel'],_0x5e33c8=_0x4bb40c['getShapeTextData'](),_0x4c26d7=_0xe7bcff(_0x5e33c8==null?void 0x0:_0x5e33c8['dataModel']),_0x2029dd=_0x4c26d7==null?void 0x0:_0x4c26d7['doc'],_0x44452c=this[_0x1578b3(0x2bb)]['getAutoFitPresentations']();if(!_0x2029dd||_0x44452c[_0x1578b3(0x3c3)]===0x0)return;_0x4bb40c['updateContext']({'width':this[_0x1578b3(0x45d)],'height':this['height']});let _0x4556e4=_0x3c23c5({'documentData':_0x44452c[_0x1578b3(0x3cd)](_0x3a30e8=>_0x13ffed(_0x2029dd,_0x3a30e8)),'height':this['height'],'shapeData':_0x4bb40c[_0x1578b3(0x2d9)](),'textRect':_0x4bb40c[_0x1578b3(0x3b1)]({'left':0x0,'top':0x0,'width':this[_0x1578b3(0x45d)],'height':this['height']}),'width':this[_0x1578b3(0x45d)]});if(_0x4556e4){var _0x54937a;this['resize'](_0x4556e4[_0x1578b3(0x45d)],_0x4556e4[_0x1578b3(0x257)]),(_0x54937a=this[_0x1578b3(0x32a)]())==null||(_0x54937a=_0x54937a[_0x1578b3(0x335)]())==null||_0x54937a[_0x1578b3(0x2c2)]();}}get[_0x291e41(0x351)](){const _0x22373f=_0x291e41;return this[_0x22373f(0x3ce)][_0x22373f(0x351)];}get[_0x291e41(0x21b)](){const _0x30af47=_0x291e41;return this[_0x30af47(0x3ce)][_0x30af47(0x21b)];}[_0x291e41(0x367)](_0x55ff40){const _0xc5d992=_0x291e41;if(this[_0xc5d992(0x3ce)][_0xc5d992(0x1c8)]==null||!this[_0xc5d992(0x3aa)])return;let {width:_0x3914ed,height:_0x6b4f7b}=this,{width:_0x176d9c=0x0,height:_0x55d67c=0x0}=_0x55ff40[_0xc5d992(0x22d)],{left:_0x5e804d=0x0,top:_0x568138=0x0,right:_0x17a3e9=0x0,bottom:_0x4b149=0x0}=this[_0xc5d992(0x3ce)][_0xc5d992(0x1c8)],_0xa967eb=_0x5e804d,_0x54d8c6=_0x568138,_0xe2b005=_0x17a3e9,_0x22b4d8=_0x4b149,_0x39559c=!0x1;if(_0x176d9c!==0x0&&_0x176d9c!==_0x3914ed){let _0x2bc09d=_0x5e804d/_0x176d9c,_0x468b6f=_0x17a3e9/_0x176d9c;_0xa967eb=_0x3914ed*_0x2bc09d,_0xe2b005=_0x3914ed*_0x468b6f,_0x39559c=!0x0;}if(_0x55d67c!==0x0&&_0x55d67c!==_0x6b4f7b){let _0x3e8240=_0x568138/_0x55d67c,_0x393971=_0x4b149/_0x55d67c;_0x54d8c6=_0x6b4f7b*_0x3e8240,_0x22b4d8=_0x6b4f7b*_0x393971,_0x39559c=!0x0;}_0x39559c&&this['setSrcRect']({'left':_0xa967eb,'top':_0x54d8c6,'right':_0xe2b005,'bottom':_0x22b4d8});}[_0x291e41(0x1b6)](_0x4528a6){const _0x51c456=_0x291e41;this[_0x51c456(0x3ce)][_0x51c456(0x1c8)]=_0x4528a6,this[_0x51c456(0x293)](!0x0);}[_0x291e41(0x3a1)](_0x4e5528){const _0x3b2212=_0x291e41;this['_props'][_0x3b2212(0x29b)]=_0x4e5528,this['makeDirty'](!0x0);}set[_0x291e41(0x21c)](_0x3e58ec){const _0x24151a=_0x291e41;this[_0x24151a(0x3a6)]=_0x3e58ec;}get['transform'](){const _0xd68588=_0x291e41;this['_transform']||this[_0xd68588(0x3b8)]();let _0x1dc3c4=this[_0xd68588(0x3a6)][_0xd68588(0x45c)]();return this[_0xd68588(0x338)](_0x1dc3c4);}get['shapeModel'](){const _0x354706=_0x291e41;return this[_0x354706(0x3ce)][_0x354706(0x286)];}get[_0x291e41(0x416)](){const _0x3b1d7c=_0x291e41;return this[_0x3b1d7c(0x3ce)][_0x3b1d7c(0x416)];}get[_0x291e41(0x2fd)](){return _0x142f92['SHAPE'];}[_0x291e41(0x39f)](_0x145b98,_0x3c5cfb,_0x1f5a1f,_0x306879){const _0x384aeb=_0x291e41;let _0x1a5ba4=this[_0x384aeb(0x3ce)][_0x384aeb(0x286)];if(!_0x1a5ba4||!_0x3c5cfb)return;let _0x5104ef=_0x1f5a1f??this[_0x384aeb(0x45d)],_0x56d6be=_0x306879??this[_0x384aeb(0x257)],_0x30005d={'shapeType':_0x1a5ba4[_0x384aeb(0x2ba)](),'width':_0x5104ef,'height':_0x56d6be},_0x2d5c65={'renderMode':_0x49a3ec[_0x384aeb(0x1b3)],'oKey':this[_0x384aeb(0x268)],'image':this['_props']['image'],'angle':this[_0x384aeb(0x2a0)]};_0x1a5ba4[_0x384aeb(0x31e)](_0x30005d),_0x145b98[_0x384aeb(0x27a)]();let _0x5af6a0={'top':0x0,'left':0x0,'width':_0x5104ef,'height':_0x56d6be},_0xd54810=_0x1a5ba4['getDrawingEffectBounds'](_0x5af6a0);_0xd54810?this['_renderWithCache'](_0x145b98,_0xd54810,_0x273594=>{const _0x389865=_0x384aeb;_0x1a5ba4[_0x389865(0x23c)](_0x273594,_0x5af6a0,_0x2d5c65);}):(this[_0x384aeb(0x2d3)](),_0x1a5ba4[_0x384aeb(0x23c)](_0x145b98,_0x5af6a0,_0x2d5c65)),_0x145b98[_0x384aeb(0x3f8)]();let _0x5e3c30=_0x1a5ba4['getShapeTextData'](),_0x1c8c01=_0x1a5ba4[_0x384aeb(0x3b1)](_0x5af6a0),_0xe44692=_0x1a5ba4['isLineShape']();if(_0x5e3c30&&_0x1c8c01&&!_0xe44692){_0x145b98[_0x384aeb(0x27a)](),this[_0x384aeb(0x2ec)]()[_0x384aeb(0x26b)]&&_0x145b98['scale'](-0x1,0x1);let _0xdd9691=_0x5104ef/0x2,_0x20489c=_0x56d6be/0x2;_0x145b98[_0x384aeb(0x1e6)](-_0xdd9691,-_0x20489c),_0x145b98['beginPath'](),this[_0x384aeb(0x27f)](_0x145b98,_0x5e3c30,_0x1c8c01),_0x145b98[_0x384aeb(0x3f8)]();}}[_0x291e41(0x44f)](_0xaca5da){}[_0x291e41(0x27f)](_0x2b2bf3,_0x32f503,_0x210f65){const _0x627d2=_0x291e41;var _0x1785e7;this['_hyperLinkRegions']=[],this['_props']['isEditing']||(!((_0x1785e7=_0x32f503[_0x627d2(0x3af)])!=null&&_0x1785e7[_0x627d2(0x193)])&&_0x627d2(0x3fd)in _0x32f503&&_0x32f503[_0x627d2(0x3fd)]===!0x1?this[_0x627d2(0x3c7)](_0x2b2bf3,_0x32f503,_0x210f65):this[_0x627d2(0x3ee)](_0x2b2bf3,_0x32f503,_0x210f65));}[_0x291e41(0x3c7)](_0x51cea2,_0x2cc8af,_0x5d097a){const _0x329111=_0x291e41;this['_drawRichText'](_0x51cea2,{..._0x2cc8af,'text':_0x2cc8af[_0x329111(0x241)]??'','dataModel':{'doc':_0x5650b1(_0x2cc8af,_0x329111(0x296)+this[_0x329111(0x268)])}},_0x5d097a);}[_0x291e41(0x3ee)](_0x22aacd,_0x586d29,_0x189c93){const _0xa71d8a=_0x291e41;_0x5ef902(_0x22aacd,this[_0xa71d8a(0x2bb)],(_0x57d4b5,_0x887891,_0x29a9d9)=>{const _0xfc961d=_0xa71d8a;this[_0xfc961d(0x2a3)](_0x57d4b5,_0x586d29,_0x189c93,_0x887891,_0x29a9d9===_0xfc961d(0x31a));});}[_0x291e41(0x2a3)](_0x5dc7c5,_0x9575a,_0xe0810d,_0x895bab,_0x4d1692){const _0xb21489=_0x291e41;let _0x31bc8f=this[_0xb21489(0x3ce)][_0xb21489(0x2b8)];if(!_0x9575a['dataModel']||!_0x31bc8f)return;let _0x185c3f=_0xe7bcff(_0x9575a[_0xb21489(0x3af)]);if(!_0x185c3f)return;let _0x2065dc=_0x185c3f[_0xb21489(0x193)];if(!_0x2065dc)return;let _0x56cf4e=_0x13ffed(_0x2065dc,_0x895bab),_0x3e7969=_0x185c3f['va']??_0x46a67d['TOP'],_0x37484e=_0x185c3f['ha']??_0xc256c8[_0xb21489(0x1e8)],_0x2a7c73=Pr(this['_props'][_0xb21489(0x286)]['getShapeData'](),_0x9575a,_0x56cf4e),_0x4b6c78=_0x9575a[_0xb21489(0x32e)],_0x4ff3b2=_0x9ecb98(_0x56cf4e,{'isHorizontal':_0x4b6c78!==!0x1,'textRect':_0xe0810d,'verticalAlign':_0x3e7969,'horizontalAlign':_0x37484e,'wrapStrategy':_0x2a7c73['wrapStrategy']}),_0x42c4fd=new _0x475565(_0x4ff3b2),_0xdb347a=new _0x114b7f(_0x42c4fd),_0x534708=_0x41a7bc['create'](_0xdb347a,_0x31bc8f);_0x534708[_0xb21489(0x3de)]();let _0x247000=_0x534708[_0xb21489(0x37d)]()['actualHeight'],_0x52c0cd=_0x151902({'contentHeight':_0x247000,'verticalAlign':_0x3e7969,'viewportHeight':_0xe0810d[_0xb21489(0x257)]});_0x42c4fd[_0xb21489(0x320)]({'pageSize':{'width':_0x4b6c78===!0x1?_0xe0810d['height']:_0xe0810d[_0xb21489(0x45d)],'height':_0x5c59a8(_0x56cf4e,_0x52c0cd[_0xb21489(0x23d)])}}),_0x42c4fd[_0xb21489(0x3bb)]({'t':_0x52c0cd['marginTop']}),_0x534708['calculate']();let _0x48fda4=new _0x231258(_0xb21489(0x364)+this[_0xb21489(0x268)],_0x534708,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xb21489(0x293)](!0x0)});_0x48fda4[_0xb21489(0x25b)](_0xe0810d[_0xb21489(0x45d)],_0x52c0cd[_0xb21489(0x23d)]),_0x5dc7c5[_0xb21489(0x27a)](),_0x5dc7c5['translateWithPrecision'](_0xe0810d[_0xb21489(0x337)],_0xe0810d['top']),_0x2a7c73[_0xb21489(0x439)]&&(_0x5dc7c5[_0xb21489(0x25f)](),_0x5dc7c5[_0xb21489(0x357)](0x0,_0x52c0cd[_0xb21489(0x3c6)],_0xe0810d[_0xb21489(0x45d)],_0x52c0cd[_0xb21489(0x2c8)]),_0x5dc7c5['clip']()),_0x52c0cd[_0xb21489(0x452)]&&_0x5dc7c5[_0xb21489(0x2d5)](0x0,_0x52c0cd['contentVerticalOffset']),_0x48fda4[_0xb21489(0x20c)](_0x5dc7c5),_0x4d1692&&(this[_0xb21489(0x34a)]=_0x43e03f(_0x48fda4,{'left':_0xe0810d['left'],'top':_0xe0810d[_0xb21489(0x3cf)]+_0x52c0cd[_0xb21489(0x452)]},_0x2a7c73[_0xb21489(0x439)]?{'left':_0xe0810d[_0xb21489(0x337)],'right':_0xe0810d[_0xb21489(0x337)]+_0xe0810d[_0xb21489(0x45d)],'top':_0xe0810d[_0xb21489(0x3cf)]+_0x52c0cd[_0xb21489(0x3c6)],'bottom':_0xe0810d['top']+_0x52c0cd[_0xb21489(0x3c6)]+_0x52c0cd[_0xb21489(0x2c8)]}:void 0x0)),_0x5dc7c5['restore'](),_0x48fda4['dispose'](),_0x534708[_0xb21489(0x20d)](),_0xdb347a[_0xb21489(0x20d)](),_0x42c4fd[_0xb21489(0x20d)]();}[_0x291e41(0x23c)](_0x354e05,_0x5a62f5,_0x145911=!0x1){const _0x5f54c3=_0x291e41;if(!this[_0x5f54c3(0x42d)])return this[_0x5f54c3(0x293)](!0x1),this;let {width:_0x4bd5c9,height:_0xb438c9,left:_0x5f7fa2,top:_0x5c8f84}=this,_0x365a25=this[_0x5f54c3(0x284)]();if(_0x4bd5c9=_0x365a25[_0x5f54c3(0x45d)],_0xb438c9=_0x365a25[_0x5f54c3(0x257)],_0x5f7fa2=_0x365a25[_0x5f54c3(0x337)],_0x5c8f84=_0x365a25[_0x5f54c3(0x3cf)],this[_0x5f54c3(0x2f5)](_0x5a62f5)){let {top:_0x521593,left:_0x38fe4b,bottom:_0x41b682,right:_0x286de2}=_0x5a62f5[_0x5f54c3(0x406)];if(_0x4bd5c9+this[_0x5f54c3(0x444)]+_0x5f7fa2<_0x38fe4b||_0x286de2<_0x5f7fa2||_0xb438c9+this[_0x5f54c3(0x444)]+_0x5c8f84<_0x521593||_0x41b682<_0x5c8f84)return this;}let _0x229f85=_0x5f7fa2+_0x4bd5c9/0x2,_0x4f07e2=_0x5c8f84+_0xb438c9/0x2,_0x25c74f=this[_0x5f54c3(0x21c)][_0x5f54c3(0x405)]();if(this[_0x5f54c3(0x3ce)][_0x5f54c3(0x459)]){let _0x4c3512=this[_0x5f54c3(0x2ec)](),_0xcd50c3=new _0x36d9d2();_0xcd50c3[_0x5f54c3(0x26e)]({..._0x4c3512}),_0x25c74f=_0xcd50c3[_0x5f54c3(0x405)]();}return _0x354e05[_0x5f54c3(0x27a)](),this[_0x5f54c3(0x3ce)][_0x5f54c3(0x286)]['isRenderLinePointsMode']===!0x0||_0x354e05['transform'](_0x25c74f[0x0],_0x25c74f[0x1],_0x25c74f[0x2],_0x25c74f[0x3],_0x229f85,_0x4f07e2),this[_0x5f54c3(0x39f)](_0x354e05,_0x5a62f5,_0x4bd5c9,_0xb438c9),_0x354e05[_0x5f54c3(0x3f8)](),this[_0x5f54c3(0x293)](!0x1),this;}[_0x291e41(0x3ca)](_0x482d34){const _0x218359=_0x291e41;let {left:_0x29c54f,top:_0x40d377,width:_0x32fc5d,height:_0xa518cd}=this[_0x218359(0x284)](),_0x2f886f=this[_0x218359(0x21c)][_0x218359(0x405)](),_0x1b3819=_0x29c54f+_0x32fc5d/0x2,_0x1acf31=_0x40d377+_0xa518cd/0x2,_0x5b62fb=new _0x36d9d2([_0x2f886f[0x0],_0x2f886f[0x1],_0x2f886f[0x2],_0x2f886f[0x3],_0x1b3819,_0x1acf31]),_0x4526c5=this[_0x218359(0x298)]();return(this['isInGroup']&&(_0x4526c5==null?void 0x0:_0x4526c5[_0x218359(0x2fd)])===_0x142f92[_0x218359(0x3a0)]?_0x4526c5[_0x218359(0x43e)][_0x218359(0x371)](_0x5b62fb):_0x5b62fb)['invert']()[_0x218359(0x441)](_0x482d34);}[_0x291e41(0x261)](_0x14b630){const _0x58ce5a=_0x291e41;let {left:_0x225762,top:_0x4ca083,width:_0x4fc8b5,height:_0x4d9888}=this['getRealBound'](),_0x45368a=_0x225762+_0x4fc8b5/0x2,_0xe2761d=_0x4ca083+_0x4d9888/0x2,_0x5237d4=this[_0x58ce5a(0x21c)][_0x58ce5a(0x405)](),_0x275028=new _0x36d9d2([_0x5237d4[0x0],_0x5237d4[0x1],_0x5237d4[0x2],_0x5237d4[0x3],_0x45368a,_0xe2761d]),_0x11158d=this[_0x58ce5a(0x298)](),_0x49d927=(this[_0x58ce5a(0x356)]&&(_0x11158d==null?void 0x0:_0x11158d['classType'])===_0x142f92[_0x58ce5a(0x3a0)]?_0x11158d['ancestorTransform'][_0x58ce5a(0x371)](_0x275028):_0x275028)[_0x58ce5a(0x2ef)]()['applyPoint'](_0x14b630),_0x3b8876=_0x4fc8b5/0x2,_0x28edfa=_0x4d9888/0x2,_0x48c25f=this['_props']['shapeModel'];return _0x48c25f&&_0x48c25f[_0x58ce5a(0x2e6)]()?_0x48c25f[_0x58ce5a(0x3e0)](_0x49d927['x'],_0x49d927['y'],_0x4fc8b5,_0x4d9888):_0x49d927['x']>=-_0x3b8876-this[_0x58ce5a(0x444)]/0x2&&_0x49d927['x']<=_0x3b8876+this['strokeWidth']/0x2&&_0x49d927['y']>=-_0x28edfa-this[_0x58ce5a(0x444)]/0x2&&_0x49d927['y']<=_0x28edfa+this['strokeWidth']/0x2;}[_0x291e41(0x20d)](){const _0x54e137=_0x291e41;this[_0x54e137(0x2bb)][_0x54e137(0x20d)](),this[_0x54e137(0x3ce)][_0x54e137(0x286)]=null,super[_0x54e137(0x20d)]();}},Fr=class extends _0x156eef{constructor(_0x4af727,_0x8a9340){const _0x1f977e=_0x291e41;super(_0x4af727,_0x8a9340),q(this,_0x1f977e(0x1db),null),q(this,_0x1f977e(0x390),null),q(this,_0x1f977e(0x32f),null),q(this,'_subUnitId',null),_0x8a9340&&this['setShapeProps'](_0x8a9340);}['getDrawingSearch'](){const _0x89f6b5=_0x291e41;return{'unitId':this[_0x89f6b5(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}[_0x291e41(0x32c)](_0x241a41){const _0x543c9a=_0x291e41;_0x241a41[_0x543c9a(0x416)]!==void 0x0&&(this[_0x543c9a(0x1db)]=_0x241a41[_0x543c9a(0x416)]),_0x241a41[_0x543c9a(0x443)]!==void 0x0&&(this[_0x543c9a(0x390)]=_0x241a41['adjName']),_0x241a41['unitId']!==void 0x0&&(this[_0x543c9a(0x32f)]=_0x241a41[_0x543c9a(0x351)]),_0x241a41[_0x543c9a(0x21b)]!==void 0x0&&(this['_subUnitId']=_0x241a41[_0x543c9a(0x21b)]),this[_0x543c9a(0x220)]({'width':_0x241a41[_0x543c9a(0x45d)],'height':_0x241a41[_0x543c9a(0x257)]});}['_draw'](_0x1afcf9){const _0x3cb15f=_0x291e41;_0x49536a[_0x3cb15f(0x38a)](_0x1afcf9,{'radius':_0x179988[_0x3cb15f(0x3dd)],'fill':_0x179988['adjHandleFill'],'stroke':_0x179988[_0x3cb15f(0x1bb)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0xfa8d1d,_0x350e8b){return function(_0x51b760,_0x25b76f){_0x350e8b(_0x51b760,_0x25b76f,_0xfa8d1d);};}function X(_0x32914f,_0x2776a6,_0x2974c6,_0x1dcdc5){const _0x171410=_0x291e41;var _0x3dc134=arguments['length'],_0x1be6a3=_0x3dc134<0x3?_0x2776a6:_0x1dcdc5===null?_0x1dcdc5=Object['getOwnPropertyDescriptor'](_0x2776a6,_0x2974c6):_0x1dcdc5,_0x211b14;if(typeof Reflect==_0x171410(0x3d1)&&typeof Reflect['decorate']==_0x171410(0x196))_0x1be6a3=Reflect['decorate'](_0x32914f,_0x2776a6,_0x2974c6,_0x1dcdc5);else{for(var _0x813dfe=_0x32914f[_0x171410(0x3c3)]-0x1;_0x813dfe>=0x0;_0x813dfe--)(_0x211b14=_0x32914f[_0x813dfe])&&(_0x1be6a3=(_0x3dc134<0x3?_0x211b14(_0x1be6a3):_0x3dc134>0x3?_0x211b14(_0x2776a6,_0x2974c6,_0x1be6a3):_0x211b14(_0x2776a6,_0x2974c6))||_0x1be6a3);}return _0x3dc134>0x3&&_0x1be6a3&&Object[_0x171410(0x44d)](_0x2776a6,_0x2974c6,_0x1be6a3),_0x1be6a3;}let Z=class extends _0x557a26{constructor(_0x2e511a,_0x3a97f6,_0x24023e,_0x1afe95,_0x342df1,_0x1725cf){const _0x3004da=_0x291e41;super(),this[_0x3004da(0x346)]=_0x2e511a,this[_0x3004da(0x408)]=_0x3a97f6,this[_0x3004da(0x202)]=_0x24023e,this[_0x3004da(0x3a4)]=_0x1afe95,this[_0x3004da(0x263)]=_0x342df1,this[_0x3004da(0x422)]=_0x1725cf,q(this,_0x3004da(0x244),new Map()),this[_0x3004da(0x432)](this[_0x3004da(0x422)][_0x3004da(0x42b)][_0x3004da(0x456)](_0x3e6c66=>{const _0x4e97a7=_0x3004da;var _0xc65ac3;(_0xc65ac3=this[_0x4e97a7(0x244)][_0x4e97a7(0x42c)](this[_0x4e97a7(0x3d3)](_0x3e6c66[_0x4e97a7(0x351)],_0x3e6c66[_0x4e97a7(0x21b)],_0x3e6c66['shapeId'])))==null||_0xc65ac3[_0x4e97a7(0x44b)](_0x5aef32=>_0x5aef32['setFormulaPresentation'](_0x3e6c66['presentation'],_0x3e6c66['animationEnabled']));})),this[_0x3004da(0x432)](this['_drawingManagerService'][_0x3004da(0x31c)][_0x3004da(0x456)](_0x3c78dc=>{const _0x4def0b=_0x3004da;_0x3c78dc[_0x4def0b(0x44b)](_0x496ee9=>{const _0x3f86ae=_0x4def0b;this['_formulaShapes'][_0x3f86ae(0x24b)](this[_0x3f86ae(0x3d3)](_0x496ee9['unitId'],_0x496ee9[_0x3f86ae(0x21b)],_0x496ee9[_0x3f86ae(0x1dd)]));});}));}[_0x291e41(0x301)](_0x22acb5,_0x3b76a5,_0x2bd20b){const _0x46ecb6=_0x291e41;let {transform:_0x20bd5b,drawingType:_0x491036,srcRect:_0xb11520,prstGeom:_0xa77372,groupId:_0x152b0f,unitId:_0x1d6d57,subUnitId:_0x4d1acd,drawingId:_0x438f96,isMultiTransform:_0x1461e5,transforms:_0x2e0e68,hidden:_0x435662,selectable:_0x58aa6c}=_0x22acb5;if(_0x491036!==_0x40fd85[_0x46ecb6(0x43a)]||!this['_drawingManagerService'][_0x46ecb6(0x3a2)]()||_0x20bd5b==null)return;let _0x1bc3b0=this['_drawingManagerService'][_0x46ecb6(0x28e)](),_0x57c0fc=_0x1461e5&&_0x2e0e68?_0x2e0e68:[_0x20bd5b],_0x4290a8=[];for(let _0x2cf6d9 of _0x57c0fc){let {left:_0x6a5934,top:_0x50f17f,width:_0x26051d,height:_0x1ffaf0,angle:_0x273603,flipX:_0x52e0ed,flipY:_0x55bf1b,skewX:_0x4c37ee,skewY:_0x6e1920}=_0x2cf6d9,_0xfae3c=_0x57c0fc[_0x46ecb6(0x2c0)](_0x2cf6d9),_0x52f926=_0x38d621({'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'drawingId':_0x438f96},_0x1461e5?_0xfae3c:void 0x0),_0x4ac050=_0x3b76a5[_0x46ecb6(0x292)](_0x52f926);if(_0x4ac050!=null){let _0x2f4af2={'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'shapeId':_0x438f96};_0x4ac050 instanceof J&&this[_0x46ecb6(0x38f)](_0x4ac050,_0x2f4af2),_0x4ac050['transformByState']({'left':_0x6a5934,'top':_0x50f17f,'width':_0x26051d,'height':_0x1ffaf0,'angle':_0x273603,'flipX':_0x52e0ed,'flipY':_0x55bf1b,'skewX':_0x4c37ee,'skewY':_0x6e1920});continue;}let _0x30aecb=this['_drawingManagerService']['getDrawingOrder'](_0x1d6d57,_0x4d1acd),_0x27ee62=_0x30aecb[_0x46ecb6(0x2c0)](_0x438f96);if(_0x3b76a5['getObjectIncludeInGroup'](_0x52f926)||!this[_0x46ecb6(0x346)][_0x46ecb6(0x3a2)]())continue;let _0x52ce18=this[_0x46ecb6(0x408)]['getShapeModel'](_0x1d6d57,_0x4d1acd,_0x438f96);if(!_0x52ce18)continue;let _0x172e4a=_0x5184c7(_0x52ce18[_0x46ecb6(0x2ba)]())?{..._0x806650,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x806650,_0x2404ad=_0x52ce18[_0x46ecb6(0x2d9)]()['formulaBinding'],_0x4566f8={'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'shapeId':_0x438f96};_0x2404ad&&this['_shapeFormulaService'][_0x46ecb6(0x3d0)](_0x4566f8,_0x2404ad);let _0x7a3fb5=new J(_0x52f926,{..._0x2cf6d9,'zIndex':_0x27ee62===-0x1?_0x30aecb['length']-0x1:_0x27ee62,'shapeModel':_0x52ce18,'localeService':this[_0x46ecb6(0x202)],'shapeId':_0x438f96,'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'visible':_0x435662!==!0x0,'evented':_0x58aa6c!==!0x1,'formulaPresentation':_0x2404ad?this[_0x46ecb6(0x422)][_0x46ecb6(0x2df)](_0x4566f8):void 0x0,'animateFormulaPresentation':(_0x2404ad==null?void 0x0:_0x2404ad[_0x46ecb6(0x400)])!==!0x1,'transformerConfig':_0x172e4a});if(_0x2404ad){let _0x4afa7e=this[_0x46ecb6(0x3d3)](_0x1d6d57,_0x4d1acd,_0x438f96),_0xc0461a=this[_0x46ecb6(0x244)][_0x46ecb6(0x42c)](_0x4afa7e)??new Set();_0xc0461a['add'](_0x7a3fb5),this[_0x46ecb6(0x244)][_0x46ecb6(0x28a)](_0x4afa7e,_0xc0461a);}_0x3b76a5[_0x46ecb6(0x35b)](_0x7a3fb5,_0x10b13b),_0x1bc3b0&&_0x3b76a5[_0x46ecb6(0x2ce)](_0x7a3fb5),_0x152b0f&&_0x56c630({'drawingId':_0x152b0f,'unitId':_0x1d6d57,'subUnitId':_0x4d1acd},_0x7a3fb5,_0x3b76a5,this[_0x46ecb6(0x346)]),_0xa77372!=null&&_0x7a3fb5[_0x46ecb6(0x217)](_0xa77372),_0xb11520!=null&&_0x7a3fb5[_0x46ecb6(0x1b6)](_0xb11520);let _0x406173=this[_0x46ecb6(0x273)](_0x7a3fb5,_0x52ce18[_0x46ecb6(0x2d9)]());if(_0x406173){var _0x132ce6;_0x2bd20b==null||(_0x132ce6=_0x2bd20b[_0x46ecb6(0x43d)])==null||_0x132ce6[_0x46ecb6(0x322)](_0x406173);}_0x4290a8['push'](_0x7a3fb5);}return _0x4290a8;}[_0x291e41(0x3d3)](_0x48c9d1,_0x32806b,_0x5eeb0c){return _0x48c9d1+'\x00'+_0x32806b+'\x00'+_0x5eeb0c;}[_0x291e41(0x38f)](_0x582ae8,_0x33cb8e){const _0x522554=_0x291e41;let _0xb14b69=this[_0x522554(0x408)][_0x522554(0x32d)](_0x33cb8e[_0x522554(0x351)],_0x33cb8e['subUnitId'],_0x33cb8e[_0x522554(0x416)]),_0x4ecbbb=_0xb14b69==null?void 0x0:_0xb14b69[_0x522554(0x2d9)]()[_0x522554(0x295)],_0x1d87dd=this[_0x522554(0x3d3)](_0x33cb8e['unitId'],_0x33cb8e[_0x522554(0x21b)],_0x33cb8e[_0x522554(0x416)]);if(_0x4ecbbb){this[_0x522554(0x422)][_0x522554(0x3d0)](_0x33cb8e,_0x4ecbbb);let _0x2c22a9=this[_0x522554(0x244)][_0x522554(0x42c)](_0x1d87dd)??new Set();_0x2c22a9[_0x522554(0x322)](_0x582ae8),this[_0x522554(0x244)][_0x522554(0x28a)](_0x1d87dd,_0x2c22a9);}else{var _0x197a7d;this[_0x522554(0x422)][_0x522554(0x232)](_0x33cb8e),(_0x197a7d=this[_0x522554(0x244)][_0x522554(0x42c)](_0x1d87dd))==null||_0x197a7d['delete'](_0x582ae8);}_0x582ae8[_0x522554(0x3f6)](_0x4ecbbb?this[_0x522554(0x422)]['getPresentation'](_0x33cb8e):void 0x0,(_0x4ecbbb==null?void 0x0:_0x4ecbbb[_0x522554(0x400)])!==!0x1);}['refreshShapeFillImage'](_0x96eb8c){const _0x1affe5=_0x291e41;let _0x5c7f32=_0x96eb8c[_0x1affe5(0x286)][_0x1affe5(0x2d9)](),_0x24b245=_0x5c7f32[_0x1affe5(0x3bf)];!_0x24b245||_0x24b245[_0x1affe5(0x2b7)]!==_0x2efc4e[_0x1affe5(0x22b)]||!_0x24b245[_0x1affe5(0x19f)]?_0x96eb8c['setFillImage'](void 0x0):this[_0x1affe5(0x273)](_0x96eb8c,_0x5c7f32);}[_0x291e41(0x273)](_0x4caa0f,_0x3cf004){const _0x43dd7a=_0x291e41;let _0x4ddb89=_0x3cf004[_0x43dd7a(0x3bf)];if(!_0x4ddb89||_0x4ddb89[_0x43dd7a(0x2b7)]!==_0x2efc4e[_0x43dd7a(0x22b)]||!_0x4ddb89[_0x43dd7a(0x19f)])return;let _0x27ccab=_0x4ddb89[_0x43dd7a(0x19f)],_0x1e7ef9=_0x4ddb89[_0x43dd7a(0x1d4)]??_0x54f00f['URL'],_0x246dc8=this[_0x43dd7a(0x3a4)][_0x43dd7a(0x39d)](_0x27ccab,_0x1e7ef9);if(_0x246dc8)_0x4caa0f['setFillImage'](_0x246dc8);else return this[_0x43dd7a(0x2bf)](_0x4caa0f,_0x27ccab,_0x1e7ef9);}async[_0x291e41(0x2bf)](_0xd59e7c,_0x1cbc77,_0x371b43){const _0xfa2bf7=_0x291e41;let _0x138a36;try{if(_0x371b43===_0x54f00f[_0xfa2bf7(0x21f)])_0x138a36=await this['_imageIoService'][_0xfa2bf7(0x42f)](_0x1cbc77);else{if(_0x371b43===_0x54f00f['URL'])try{_0x138a36=await this[_0xfa2bf7(0x263)][_0xfa2bf7(0x42f)](_0x1cbc77);}catch{_0x138a36=_0x1cbc77;}else _0x138a36=_0x1cbc77;}}catch(_0x2b7218){console['error'](_0xfa2bf7(0x2a7),_0x2b7218);return;}await new Promise(_0x110c73=>{const _0x34715f=_0xfa2bf7;let _0x35d4c3=new window[(_0x34715f(0x33e))]();_0x35d4c3['onload']=()=>{const _0x58383b=_0x34715f;this[_0x58383b(0x3a4)][_0x58383b(0x1fe)](_0x1cbc77,_0x371b43,_0x35d4c3),_0xd59e7c[_0x58383b(0x3a1)](_0x35d4c3),_0x110c73();},_0x35d4c3[_0x34715f(0x291)]=()=>{const _0x5aaa79=_0x34715f;console[_0x5aaa79(0x419)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x1cbc77),_0x110c73();},_0x35d4c3[_0x34715f(0x438)]=_0x138a36;});}};Z=X([Y(0x0,_0x28cffc),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x5b79b4(_0x13738a)),Y(0x3,_0x213f29),Y(0x4,_0x5f21c5),Y(0x5,_0x5b79b4(_0x42a3cf))],Z);let Ir=class extends _0x557a26{constructor(_0x513ea0,_0x389010,_0x182c17,_0x49209f,_0xef8edf,_0x47015e){const _0x1bfc07=_0x291e41;super(),this[_0x1bfc07(0x346)]=_0x513ea0,this[_0x1bfc07(0x408)]=_0x389010,this[_0x1bfc07(0x449)]=_0x182c17,this[_0x1bfc07(0x23b)]=_0x49209f,this[_0x1bfc07(0x394)]=_0xef8edf,this[_0x1bfc07(0x199)]=_0x47015e,q(this,_0x1bfc07(0x41e),null),q(this,'_unitId',null),q(this,_0x1bfc07(0x1df),null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x1bfc07(0x1a5),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x1bfc07(0x37c),0x0),q(this,_0x1bfc07(0x2ad),0x0),q(this,_0x1bfc07(0x3a9),0x0),q(this,_0x1bfc07(0x25c),!0x1),q(this,_0x1bfc07(0x23e),void 0x0),q(this,_0x1bfc07(0x22f),void 0x0),q(this,_0x1bfc07(0x370),void 0x0),q(this,_0x1bfc07(0x3ba),void 0x0),q(this,_0x1bfc07(0x3d7),!0x1),this[_0x1bfc07(0x3f4)](),this[_0x1bfc07(0x1d0)]();}['_getShapeAdjustPointListById'](_0x1c68a9,_0x32c118,_0x504e46){const _0x1c00ff=_0x291e41;let _0x1ff114=this[_0x1c00ff(0x408)]['getShapeModel'](_0x1c68a9,_0x32c118,_0x504e46);if(_0x1ff114)return _0x1ff114[_0x1c00ff(0x44f)]();}[_0x291e41(0x228)](){const _0x45b621=_0x291e41;this[_0x45b621(0x236)]();}[_0x291e41(0x2b0)](){const _0x570cd7=_0x291e41;this[_0x570cd7(0x201)](!0x0);}[_0x291e41(0x195)](_0x184435){const _0x1de7f3=_0x291e41;this[_0x1de7f3(0x3d7)]=_0x184435;}[_0x291e41(0x2b5)](_0x21c8b3,_0x217ee5,_0x5234a2,_0x4b821b){const _0x19d613=_0x291e41;let _0x2b2465=this[_0x19d613(0x408)]['getShapeModel'](_0x21c8b3,_0x217ee5,_0x5234a2);if(_0x2b2465)return _0x2b2465[_0x19d613(0x437)](_0x4b821b);}[_0x291e41(0x1c2)](_0x55f395=!0x1){const _0x40e75d=_0x291e41;if(this[_0x40e75d(0x32f)]===null||this[_0x40e75d(0x1df)]===null||this[_0x40e75d(0x41e)]===null)return;let _0x50335a=this[_0x40e75d(0x449)][_0x40e75d(0x3a7)](this['_unitId']);if(!_0x50335a||!_0x50335a[_0x40e75d(0x401)](_0x5635f6)[_0x40e75d(0x1e9)]())return;let {scene:_0x3c6875}=_0x50335a,_0x197153={'unitId':this[_0x40e75d(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x40e75d(0x41e)]},_0x577f9d=this[_0x40e75d(0x346)]['getDrawingByParam'](_0x197153),{transform:_0xc1081}=_0x577f9d;if(!_0xc1081||_0x577f9d[_0x40e75d(0x209)]!==_0x40fd85[_0x40e75d(0x43a)])return;let {left:_0x5b0818,top:_0x328d46,width:_0x2ee7d2,height:_0x34ce61,flipX:_0x1ecd69,flipY:_0x336f39,angle:_0x1ac53d=0x0}=_0xc1081;if(_0x5b0818===void 0x0||_0x328d46===void 0x0)return;if(_0x55f395){let _0xe82181=this[_0x40e75d(0x408)][_0x40e75d(0x32d)](this['_unitId'],this[_0x40e75d(0x1df)],this[_0x40e75d(0x41e)]);_0xe82181==null||_0xe82181[_0x40e75d(0x31e)]({'width':_0x2ee7d2??0x0,'height':_0x34ce61??0x0}),this[_0x40e75d(0x23a)]=_0xe82181==null?void 0x0:_0xe82181[_0x40e75d(0x44f)]();}let _0x157b2b=this[_0x40e75d(0x23a)];for(let _0x5a19d9=0x0;_0x5a19d9<_0x157b2b[_0x40e75d(0x3c3)];_0x5a19d9++){let _0x186b33=_0x157b2b[_0x5a19d9],_0x4a982e=_0x186b33['x'],_0x3330df=_0x186b33['y'];if(_0x1ecd69&&(_0x4a982e=(_0x2ee7d2||0x0)-_0x4a982e),_0x336f39&&(_0x3330df=(_0x34ce61||0x0)-_0x3330df),_0x1ac53d!==0x0){let _0x3b30f5=(_0x2ee7d2||0x0)/0x2,_0x2e1907=(_0x34ce61||0x0)/0x2,_0x54dfb1=_0x1ac53d*Math['PI']/0xb4,_0x593378=Math['cos'](_0x54dfb1),_0x7292c=Math[_0x40e75d(0x3ae)](_0x54dfb1),_0x4e6cde=_0x4a982e-_0x3b30f5,_0x27569d=_0x3330df-_0x2e1907;_0x4a982e=_0x3b30f5+(_0x4e6cde*_0x593378-_0x27569d*_0x7292c),_0x3330df=_0x2e1907+(_0x4e6cde*_0x7292c+_0x27569d*_0x593378);}let _0x4d0aad={'x':_0x4a982e,'y':_0x3330df,'adjName':_0x186b33[_0x40e75d(0x443)]};this[_0x40e75d(0x255)](_0x3c6875,_0x4d0aad,_0x4d0aad['adjName'],_0x5b0818,_0x328d46,this[_0x40e75d(0x32f)],this[_0x40e75d(0x1df)]);}}['_updateShapeAdjustControls'](_0x11baf7=!0x1){const _0x55aead=_0x291e41;_0x11baf7&&(this[_0x55aead(0x236)](),this[_0x55aead(0x1c2)](_0x11baf7));}[_0x291e41(0x255)](_0x17d14b,_0x3dc728,_0xe9bf7c,_0x2e8139,_0x28c726,_0x20f293,_0x10f653){const _0x15bc23=_0x291e41;if(!this[_0x15bc23(0x41e)])return;let _0x30981a=_0x17d14b[_0x15bc23(0x292)](_0x15bc23(0x2f3)+this['_activeShapeId']+'-'+_0xe9bf7c);if(_0x30981a){_0x30981a['transformByState']({'left':_0x3dc728['x']+_0x2e8139-_0x179988[_0x15bc23(0x3dd)],'top':_0x3dc728['y']+_0x28c726-_0x179988[_0x15bc23(0x3dd)]});return;}let _0x50b5d5={'left':_0x3dc728['x']+_0x2e8139-_0x179988[_0x15bc23(0x3dd)],'top':_0x3dc728['y']+_0x28c726-_0x179988[_0x15bc23(0x3dd)],'adjName':_0xe9bf7c,'shapeId':this[_0x15bc23(0x41e)],'unitId':_0x20f293,'subUnitId':_0x10f653,'width':_0x179988[_0x15bc23(0x3dd)]+0x8,'height':_0x179988[_0x15bc23(0x3dd)]+0x8,'zIndex':_0x10b13b+0x1,'evented':!0x0},_0xa42e42=new Fr(_0x15bc23(0x2f3)+this[_0x15bc23(0x41e)]+'-'+_0xe9bf7c,_0x50b5d5);this[_0x15bc23(0x1a5)][_0x15bc23(0x1b9)](_0xa42e42),this['_attachAdjustEvent'](_0xa42e42,_0x17d14b,_0xe9bf7c),_0x17d14b['addObject'](_0xa42e42,_0x10b13b+0x1);}[_0x291e41(0x236)](){const _0x4080e8=_0x291e41;this[_0x4080e8(0x1a5)][_0x4080e8(0x3c3)]!==0x0&&(this[_0x4080e8(0x1a5)][_0x4080e8(0x44b)](_0x27d5b6=>{const _0x4f4bec=_0x4080e8;_0x27d5b6[_0x4f4bec(0x20d)]();}),this[_0x4080e8(0x1a5)]=[]);}[_0x291e41(0x428)](){this['_createShapeAdjustControls']();}[_0x291e41(0x436)](_0xe56715,_0x2dd4fb){const _0x6af2ab=_0x291e41;var _0x334ae4;let _0x4f4335={'x':0x0,'y':0x0};if(!_0xe56715||!_0x2dd4fb)return _0x4f4335;let _0x163502=this[_0x6af2ab(0x449)]['getRenderUnitById'](_0xe56715);if(!_0x163502||!_0x163502[_0x6af2ab(0x401)](_0x5635f6)[_0x6af2ab(0x2d8)](_0x2dd4fb))return _0x4f4335;let _0x1ac7bd=_0x163502[_0x6af2ab(0x401)](_0xbd2a68),_0x1f7635=_0x1ac7bd==null?void 0x0:_0x1ac7bd['getCurrentScrollState']();if(!_0x1f7635)return _0x4f4335;let _0x1861c2=(_0x334ae4=this[_0x6af2ab(0x394)]['getUnit'](_0xe56715))==null?void 0x0:_0x334ae4[_0x6af2ab(0x2d1)](_0x2dd4fb);if(!_0x1861c2)return _0x4f4335;let _0x444264=_0x53677b(_0x1f7635['sheetViewStartRow'],_0x1f7635[_0x6af2ab(0x457)],_0x163502[_0x6af2ab(0x1f2)],_0x1861c2);return _0x444264?{'x':_0x444264[_0x6af2ab(0x1cf)],'y':_0x444264[_0x6af2ab(0x3ea)]}:_0x4f4335;}[_0x291e41(0x245)](_0x40f5b3,_0x25819d){const _0xf20a5a=_0x291e41;var _0x51d871;let _0x44e9c1=(_0x51d871=this[_0xf20a5a(0x394)][_0xf20a5a(0x208)](_0x40f5b3))==null?void 0x0:_0x51d871['getSheetBySheetId'](_0x25819d);return(_0x44e9c1==null?void 0x0:_0x44e9c1[_0xf20a5a(0x3eb)]())??0x1;}[_0x291e41(0x455)](_0x187621,_0x464087,_0x450d24){const _0x336e78=_0x291e41;this['disposeWithMe'](_0x53ca46(_0x187621[_0x336e78(0x1e7)][_0x336e78(0x1a9)]((_0x1f6020,_0x1c05ed)=>{const _0x254a5a=_0x336e78;var _0x1dd142,_0x1293f7,_0x27994f,_0x51286f;let _0x2e1d32=_0x187621[_0x254a5a(0x2b4)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x2e1d32[_0x254a5a(0x351)],_0x2e1d32['subUnitId'],_0x2e1d32['drawingId'],_0x450d24),this['_activeShapeModel']=this[_0x254a5a(0x408)][_0x254a5a(0x32d)](_0x2e1d32['unitId'],_0x2e1d32[_0x254a5a(0x21b)],_0x2e1d32[_0x254a5a(0x1dd)]);let _0x28b7a2=this[_0x254a5a(0x346)][_0x254a5a(0x312)]({'unitId':this['_unitId'],'subUnitId':this[_0x254a5a(0x1df)],'drawingId':this[_0x254a5a(0x41e)]}),{transform:_0x40803e}=_0x28b7a2;if(_0x40803e){let {left:_0x15f9ab,top:_0x24e8c0,width:_0xb68a3e,height:_0x3b35dd}=_0x40803e;this['_baseShapeLeft']=_0x15f9ab||0x0,this[_0x254a5a(0x37c)]=_0x24e8c0||0x0,this[_0x254a5a(0x2ad)]=_0xb68a3e||0x0,this['_baseShapeHeight']=_0x3b35dd||0x0;}let _0x22be26=!!((_0x1dd142=_0x28b7a2[_0x254a5a(0x21c)])!=null&&_0x1dd142[_0x254a5a(0x26b)]),_0x440d80=!!((_0x1293f7=_0x28b7a2[_0x254a5a(0x21c)])!=null&&_0x1293f7[_0x254a5a(0x1d2)]),_0x5d8156=((_0x27994f=_0x28b7a2[_0x254a5a(0x21c)])==null?void 0x0:_0x27994f[_0x254a5a(0x2a0)])||0x0;this[_0x254a5a(0x25c)]=!0x0,_0x464087['disableObjectsEvent']();let _0x289a93={...((_0x51286f=this['_activeAdjustInfo'])==null?void 0x0:_0x51286f[_0x254a5a(0x2fb)])??{}};this['_adjHandlerPointerMove']=_0x464087['onPointerMove$']['subscribeEvent']((_0x1e6b2d,_0x3a8fc5)=>{const _0x129e52=_0x254a5a;if(!this[_0x129e52(0x25c)])return;let {offsetX:_0x2f9432,offsetY:_0x2d11c0}=_0x1e6b2d,_0x2da68f=this[_0x129e52(0x23e)];if(this[_0x129e52(0x22f)]&&_0x2da68f){_0x464087[_0x129e52(0x424)](),_0x464087['setCursor'](_0x15231c[_0x129e52(0x198)]);let _0x29922c={'left':0x0,'top':0x0,'width':this[_0x129e52(0x2ad)],'height':this['_baseShapeHeight']},_0x416759=this[_0x129e52(0x436)](this['_unitId'],this[_0x129e52(0x1df)]),_0x1cae4b=this[_0x129e52(0x245)](this[_0x129e52(0x32f)],this[_0x129e52(0x1df)]),_0x51f5df=_0x2f9432/_0x1cae4b+_0x416759['x']-this[_0x129e52(0x1ce)],_0x7bc51=_0x2d11c0/_0x1cae4b+_0x416759['y']-this['_baseShapeTop'];if(_0x5d8156!==0x0){let _0x309ad2=this[_0x129e52(0x2ad)]/0x2,_0x21fee5=this[_0x129e52(0x3a9)]/0x2,_0x5853c0=_0x5d8156*Math['PI']/0xb4,_0x255b18=Math[_0x129e52(0x375)](_0x5853c0),_0x23c9bd=Math[_0x129e52(0x3ae)](_0x5853c0),_0x4b65e0=_0x51f5df-_0x309ad2,_0xb668f=_0x7bc51-_0x21fee5;_0x51f5df=_0x309ad2+(_0x4b65e0*_0x255b18+_0xb668f*_0x23c9bd),_0x7bc51=_0x21fee5+(-_0x4b65e0*_0x23c9bd+_0xb668f*_0x255b18);}_0x22be26&&(_0x51f5df=this[_0x129e52(0x2ad)]-_0x51f5df),_0x440d80&&(_0x7bc51=this['_baseShapeHeight']-_0x7bc51);let _0x1e1cda={'x':_0x51f5df,'y':_0x7bc51},_0x534d66=this['_activeShapeModel'][_0x129e52(0x399)](_0x29922c,_0x1e1cda,_0x2da68f,_0x22be26,_0x440d80);if(Object[_0x129e52(0x3f1)](_0x534d66)[_0x129e52(0x3c3)]===0x0)return;for(let [_0x4123b5,_0x523b8e]of Object[_0x129e52(0x384)](_0x534d66))this[_0x129e52(0x22f)][_0x129e52(0x3d9)](_0x4123b5,_0x523b8e);this[_0x129e52(0x22f)][_0x129e52(0x31e)]({'width':this['_baseShapeWidth'],'height':this[_0x129e52(0x3a9)]});let _0x2eec32=this[_0x129e52(0x346)][_0x129e52(0x312)]({'unitId':_0x2e1d32[_0x129e52(0x351)],'subUnitId':_0x2e1d32[_0x129e52(0x21b)],'drawingId':_0x2e1d32[_0x129e52(0x1dd)]});_0x2eec32&&(this[_0x129e52(0x23b)]['renderDrawingShape'](_0x2eec32,_0x464087),this[_0x129e52(0x23a)]=this['_getShapeAdjustPointListById'](_0x2e1d32[_0x129e52(0x351)],_0x2e1d32[_0x129e52(0x21b)],_0x2e1d32[_0x129e52(0x1dd)]),this['_updateAdjustControlPositions']());}_0x3a8fc5[_0x129e52(0x2a5)]();}),this[_0x254a5a(0x3ba)]=_0x464087['onPointerUp$'][_0x254a5a(0x1a9)]((_0x2a6937,_0x3a877f)=>{const _0x33712e=_0x254a5a;this['_adjHandlerPointerMove'][_0x33712e(0x34c)](),this[_0x33712e(0x3ba)][_0x33712e(0x34c)](),_0x464087[_0x33712e(0x276)]();let _0x37b242=this['_activeAdjustInfo'];if(_0x37b242){let _0x2853cb=_0x2e1d32[_0x33712e(0x351)],_0x39c6f2=_0x2e1d32['subUnitId'],_0x34cb39=_0x2e1d32[_0x33712e(0x1dd)],_0x205622={};for(let _0x4a1917 of Object['keys'](_0x37b242[_0x33712e(0x2fb)])){var _0x4afdd2;let _0x361f22=(_0x4afdd2=this[_0x33712e(0x22f)])==null?void 0x0:_0x4afdd2[_0x33712e(0x1c9)](_0x4a1917);_0x361f22!==void 0x0&&(_0x205622[_0x4a1917]=_0x361f22);}Object[_0x33712e(0x3f1)](_0x205622)[_0x33712e(0x3c3)]>0x0&&kr(this[_0x33712e(0x199)],_0x2853cb,_0x39c6f2,_0x34cb39,{'oldShapeData':{'adjustValues':_0x289a93}},{'adjustValues':_0x205622});}this[_0x33712e(0x23e)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x33712e(0x25c)]=!0x1,_0x3a877f['stopPropagation'](),_0x464087[_0x33712e(0x1ef)]();}),_0x1c05ed[_0x254a5a(0x2a5)]();})));}[_0x291e41(0x1d0)](){const _0x33af73=_0x291e41;let _0xdfbdc2=this['_univerInstanceService'][_0x33af73(0x262)](_0x3c82b9[_0x33af73(0x35c)]);this['disposeWithMe'](_0xdfbdc2['pipe'](_0x17931b(_0xf08573=>_0xf08573?_0xf08573[_0x33af73(0x3bc)][_0x33af73(0x24c)](_0x17931b(_0x39acb0=>{const _0x2bdb9f=_0x33af73;if(!_0x39acb0)return _0x257bb9;let _0x53a4e8=_0xf08573[_0x2bdb9f(0x440)](),_0x10bb0b=this[_0x2bdb9f(0x449)][_0x2bdb9f(0x3a7)](_0x53a4e8),_0xa59417=_0x10bb0b==null?void 0x0:_0x10bb0b[_0x2bdb9f(0x1f2)];return _0xa59417?_0x413c25(_0xa59417):_0x257bb9;})):_0x257bb9))['subscribe'](_0x310f54=>{const _0x42b08c=_0x33af73;let _0x372e33=_0x310f54[_0x42b08c(0x39e)]();this['disposeWithMe'](_0x310f54[_0x42b08c(0x349)][_0x42b08c(0x1a9)](()=>{const _0xeb69cc=_0x42b08c;this[_0xeb69cc(0x3d7)];})),this[_0x42b08c(0x432)](_0x372e33['changeStart$'][_0x42b08c(0x456)](_0x2606d8=>{const _0x574ebd=_0x42b08c;let {objects:_0x349cb6}=_0x2606d8;this[_0x574ebd(0x1c2)](),_0x349cb6!==null&&_0x349cb6[_0x574ebd(0x215)]===0x1&&_0x349cb6['values']()['next']()[_0x574ebd(0x3ec)]instanceof J&&this[_0x574ebd(0x195)](!0x0);})),this[_0x42b08c(0x432)](_0x372e33[_0x42b08c(0x2f2)][_0x42b08c(0x456)](()=>{const _0x56d3a9=_0x42b08c;this[_0x56d3a9(0x3d7)]&&this[_0x56d3a9(0x236)]();})),this[_0x42b08c(0x432)](_0x310f54[_0x42b08c(0x274)][_0x42b08c(0x1a9)](()=>{const _0x4ff889=_0x42b08c;this[_0x4ff889(0x3d7)]&&(this[_0x4ff889(0x195)](!0x1),this[_0x4ff889(0x1c2)]());})),this[_0x42b08c(0x432)](_0x372e33[_0x42b08c(0x398)][_0x42b08c(0x456)](()=>{const _0x21a30c=_0x42b08c;this[_0x21a30c(0x32f)]&&this['_subUnitId']&&this[_0x21a30c(0x41e)]&&this[_0x21a30c(0x346)][_0x21a30c(0x312)]({'unitId':this[_0x21a30c(0x32f)],'subUnitId':this[_0x21a30c(0x1df)],'drawingId':this['_activeShapeId']})&&(this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](this[_0x21a30c(0x32f)],this['_subUnitId'],this['_activeShapeId']),this[_0x21a30c(0x428)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x2921a5=_0x291e41;this[_0x2921a5(0x432)](this[_0x2921a5(0x199)]['onCommandExecuted'](_0x15b34e=>{const _0x3ab017=_0x2921a5;if(_0x15b34e['id']!==_0x172941['id'])return;let {unitId:_0x38eaed,subUnitId:_0x7adffe,shapeId:_0x3f9b4a}=_0x15b34e['params'];_0x38eaed===this[_0x3ab017(0x32f)]&&_0x7adffe===this[_0x3ab017(0x1df)]&&_0x3f9b4a===this[_0x3ab017(0x41e)]&&this['refreshAdjustControls']();})),this[_0x2921a5(0x432)](this[_0x2921a5(0x346)][_0x2921a5(0x1d8)][_0x2921a5(0x456)](_0x4628af=>{const _0x5c6a9f=_0x2921a5;if(_0x4628af['length']===0x1){let _0x4b20be=_0x4628af[0x0];if(_0x4b20be[_0x5c6a9f(0x209)]===_0x40fd85[_0x5c6a9f(0x43a)]&&this['_univerInstanceService'][_0x5c6a9f(0x340)](_0x4b20be[_0x5c6a9f(0x351)])===_0x3c82b9[_0x5c6a9f(0x35c)]){this[_0x5c6a9f(0x41e)]=_0x4b20be[_0x5c6a9f(0x1dd)];let {unitId:_0x19d241,subUnitId:_0x54750d}=_0x4b20be;this[_0x5c6a9f(0x23a)]=this[_0x5c6a9f(0x41b)](_0x19d241,_0x54750d,this[_0x5c6a9f(0x41e)]),this[_0x5c6a9f(0x32f)]=_0x19d241,this[_0x5c6a9f(0x1df)]=_0x54750d,this[_0x5c6a9f(0x236)](),this['_createShapeAdjustControls']();return;}}this[_0x5c6a9f(0x41e)]=null,this[_0x5c6a9f(0x23a)]=void 0x0,this[_0x5c6a9f(0x32f)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();})),this[_0x2921a5(0x432)](this[_0x2921a5(0x346)]['update$'][_0x2921a5(0x456)](_0x3cdd86=>{const _0x2a58dd=_0x2921a5;if(_0x3cdd86['length']===0x1){var _0x278069;let _0x14136d=_0x3cdd86[0x0];((_0x278069=this[_0x2a58dd(0x346)][_0x2a58dd(0x312)](_0x14136d))==null?void 0x0:_0x278069[_0x2a58dd(0x209)])===_0x40fd85[_0x2a58dd(0x43a)]&&this[_0x2a58dd(0x201)](!0x0);}})),this['disposeWithMe'](this[_0x2921a5(0x346)][_0x2921a5(0x31c)][_0x2921a5(0x456)](_0x4c10b7=>{const _0x2c76e6=_0x2921a5;for(let _0x2457d5 of _0x4c10b7)this[_0x2c76e6(0x41e)]===_0x2457d5[_0x2c76e6(0x1dd)]&&(this[_0x2c76e6(0x41e)]=null,this[_0x2c76e6(0x23a)]=void 0x0,this[_0x2c76e6(0x32f)]=null,this[_0x2c76e6(0x1df)]=null,this[_0x2c76e6(0x236)]());}));}};Ir=X([Y(0x0,_0x28cffc),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x5b79b4(_0x1158d5)),Y(0x3,_0x5b79b4(Z)),Y(0x4,_0x44b74c),Y(0x5,_0x54c16f)],Ir);const Lr={'id':_0x291e41(0x1e5),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x4a4fdc,_0x59e339)=>{const _0x24c0c9=_0x291e41;let _0x39c530=_0x4a4fdc['get'](_0x28cffc),_0x284d6c=_0x4a4fdc[_0x24c0c9(0x42c)](_0x1158d5),_0x6bbf7=_0x4a4fdc[_0x24c0c9(0x42c)](Ir);if(_0x59e339==null)return!0x0;if(_0x59e339['length']>0x0){var _0x5736c0;let _0x36949a=(_0x5736c0=_0x284d6c[_0x24c0c9(0x3a7)](_0x59e339[0x0][_0x24c0c9(0x351)]))==null?void 0x0:_0x5736c0[_0x24c0c9(0x1f2)];if(_0x36949a){let {unitId:_0x3bcd09,subUnitId:_0x279f48,drawingId:_0x93869c}=_0x59e339[0x0],_0xc914a9=_0x38d621({'unitId':_0x3bcd09,'subUnitId':_0x279f48,'drawingId':_0x93869c},void 0x0),_0x45e088=_0x36949a[_0x24c0c9(0x292)](_0xc914a9);if(_0x45e088){var _0x1367be;(_0x1367be=_0x284d6c[_0x24c0c9(0x3a7)](_0x59e339[0x0][_0x24c0c9(0x351)]))==null||(_0x1367be=_0x1367be[_0x24c0c9(0x1f2)][_0x24c0c9(0x335)]())==null||_0x1367be['activeAnObject'](_0x45e088);}}_0x39c530[_0x24c0c9(0x2bd)](_0x59e339),_0x6bbf7['setShouldShowAdjust'](!0x1);}return!0x0;}},Rr={'type':_0x303f65[_0x291e41(0x287)],'id':'sheet.command.menu-insert-shape','handler':async(_0x80996d,_0x18de2c)=>{const _0x40e400=_0x291e41;let _0x1a3cb6=_0x378f79(_0x80996d[_0x40e400(0x42c)](_0x44b74c));if(!_0x1a3cb6)return!0x1;let _0x3d4637=_0x80996d[_0x40e400(0x42c)](_0x438b0b)['getCurrentLastSelection']();if(!_0x3d4637)return!0x1;let _0x1e9638=_0x80996d[_0x40e400(0x42c)](_0x54c16f),{unitId:_0x3b772,subUnitId:_0x130014}=_0x1a3cb6,{value:_0x38dcf6,enhanceParams:_0x1c0cda}=_0x18de2c,{range:_0x34635d}=_0x3d4637,_0x3bfe45={'unitId':_0x3b772,'subUnitId':_0x130014,'shapeType':_0x38dcf6,'range':_0x34635d,'shapeId':_0x2eff46()};if(_0x1c0cda){let _0x8e60dc=_0x5184c7(_0x38dcf6),_0x37e313=_0x38dcf6===_0x206995[_0x40e400(0x41f)];_0x8e60dc&&(_0x1c0cda[_0x40e400(0x3c1)]||_0x1c0cda[_0x40e400(0x29e)])&&(_0x3bfe45[_0x40e400(0x3ad)]={'ln':{'startArrow':_0x1c0cda[_0x40e400(0x3c1)]?{'type':_0x3aa73d[_0x40e400(0x3e4)],'size':_0x672a93[_0x40e400(0x282)]}:void 0x0,'endArrow':_0x1c0cda[_0x40e400(0x29e)]?{'type':_0x3aa73d[_0x40e400(0x3e4)],'size':_0x672a93[_0x40e400(0x26c)]}:void 0x0}}),_0x37e313&&(_0x1c0cda[_0x40e400(0x2ab)]||_0x1c0cda['vertical'])&&(_0x3bfe45[_0x40e400(0x3ad)]=_0x412b4d({'fill':{'fillType':_0x2efc4e[_0x40e400(0x396)],'color':_0x40e400(0x1c5)},'isHorizontal':!!_0x1c0cda[_0x40e400(0x2ab)],'stroke':{'lineStrokeType':_0xdd541a[_0x40e400(0x2c4)],'width':0x1,'color':_0x40e400(0x1ac)}}));}let _0x145c31=_0x1e9638['syncExecuteCommand'](_0x2b8b47['id'],_0x3bfe45);return setTimeout(()=>{const _0x1d5112=_0x40e400;_0x1e9638[_0x1d5112(0x2e1)](Lr['id'],[{'unitId':_0x3b772,'subUnitId':_0x130014,'drawingId':_0x3bfe45[_0x1d5112(0x416)]}]);},0xc8),_0x145c31;}},zr='sheet.shape.edit.panel',Br='sheet.shape.object-list.panel',Vr=_0x291e41(0x39a),Hr=_0x291e41(0x1a8),Ur=_0xe939c(_0x291e41(0x1cd)),Wr=_0x291e41(0x40a),Gr={'id':_0x291e41(0x39b),'type':_0x303f65[_0x291e41(0x287)],'handler':(_0x4c6e93,_0x555ccd)=>{const _0x32466b=_0x291e41;let _0x34c265=_0x4c6e93['get'](_0x31c5f5),_0x50271f=_0x4c6e93[_0x32466b(0x42c)](_0x13738a),_0x3e2d58=_0x4c6e93['get'](_0x44b74c),_0xd6255d=_0x4c6e93[_0x32466b(0x42c)](_0x54c16f);return _0x378f79(_0x3e2d58)?(_0x555ccd==null?void 0x0:_0x555ccd[_0x32466b(0x3ec)])==='close'?(_0x34c265[_0x32466b(0x415)](Br),!0x0):(_0x34c265[_0x32466b(0x269)]({'id':Br,'header':{'title':_0x50271f['t'](_0x32466b(0x297))},'children':{'label':Br},'onClose':()=>{const _0x3bb77f=_0x32466b;_0xd6255d[_0x3bb77f(0x1b7)](_0x5e3e35['id'],[]);},'width':0x168}),!0x0):!0x1;}},Kr={'type':_0x303f65[_0x291e41(0x3e6)],'id':_0x291e41(0x1bd),'handler'(){return!0x0;}};function qr(_0x38e7d0){const _0x5aeedc=_0x291e41;let _0x406b5f=_0x38e7d0['get'](_0x28cffc)['getFocusDrawings'](),_0x2e16c1=_0x406b5f[_0x5aeedc(0x3c3)]===0x1?_0x406b5f[0x0]:null;if(!_0x2e16c1||_0x2e16c1['drawingType']!==_0x40fd85['DRAWING_SHAPE'])return null;let _0x1626d3=_0x38e7d0['get'](_0x1e1f0c),_0x394f41=_0x1626d3[_0x5aeedc(0x1a4)](_0x2e16c1[_0x5aeedc(0x351)],_0x2e16c1[_0x5aeedc(0x21b)],_0x2e16c1[_0x5aeedc(0x1dd)]),_0x785649=_0x1626d3['getShapeDataById'](_0x2e16c1[_0x5aeedc(0x351)],_0x2e16c1[_0x5aeedc(0x21b)],_0x2e16c1[_0x5aeedc(0x1dd)]);return _0x394f41===void 0x0||!_0x785649?null:{'drawing':_0x2e16c1,'shapeData':_0x785649,'shapeType':_0x394f41};}const Jr={'id':_0x291e41(0x2af),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x3f3059,_0x300747)=>{const _0xc33717=_0x291e41;let _0x2226ac=qr(_0x3f3059),_0x179ac8=_0x33963b((_0x300747==null?void 0x0:_0x300747['presetId'])??(_0x300747==null?void 0x0:_0x300747[_0xc33717(0x3ec)])??'');if(!_0x2226ac||!_0x179ac8||_0x179ac8[_0xc33717(0x28c)]!==_0x5d10b7(_0x2226ac[_0xc33717(0x3ad)]))return!0x1;let _0x2d6051=_0x28ac21(_0x2226ac[_0xc33717(0x3ad)],_0x179ac8);if(!_0x2d6051)return!0x1;let {drawing:_0x118e7a}=_0x2226ac;return _0x3f3059[_0xc33717(0x42c)](_0x54c16f)['executeCommand'](K['id'],{'unitId':_0x118e7a[_0xc33717(0x351)],'subUnitId':_0x118e7a[_0xc33717(0x21b)],'shapeId':_0x118e7a[_0xc33717(0x1dd)],'shapeData':_0x2d6051,'oldShapeJSON':{'oldShapeData':_0x2226ac[_0xc33717(0x3ad)]}});}},Yr={'id':_0x291e41(0x1f0),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x250356,_0x53caed)=>{const _0x52b171=_0x291e41;let _0x358f1e=qr(_0x250356),_0x5e0e1b=(_0x53caed==null?void 0x0:_0x53caed[_0x52b171(0x3e1)])??(_0x53caed==null?void 0x0:_0x53caed[_0x52b171(0x3ec)]);if(!_0x358f1e||!_0x5e0e1b||_0x5184c7(_0x358f1e[_0x52b171(0x3e1)])||_0x5184c7(_0x5e0e1b))return!0x1;let _0x25f125=_0x386d13(_0x358f1e[_0x52b171(0x3ad)],_0x5e0e1b);if(!_0x25f125)return!0x1;let {drawing:_0x13394e}=_0x358f1e;return _0x250356[_0x52b171(0x42c)](_0x54c16f)['executeCommand'](K['id'],{'unitId':_0x13394e[_0x52b171(0x351)],'subUnitId':_0x13394e[_0x52b171(0x21b)],'shapeId':_0x13394e[_0x52b171(0x1dd)],'shapeType':_0x5e0e1b,'shapeData':_0x25f125,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x358f1e[_0x52b171(0x3e1)],'oldShapeData':_0x358f1e[_0x52b171(0x3ad)]}});}};let Q=class extends _0x557a26{constructor(_0x5e4464,_0x16f559){const _0x23395f=_0x291e41;super(),this[_0x23395f(0x3e9)]=_0x5e4464,this[_0x23395f(0x346)]=_0x16f559,this['_registerImageShapeClipDelegate'](),this[_0x23395f(0x3e9)][_0x23395f(0x1c1)](!0x0),this[_0x23395f(0x432)]({'dispose':()=>this['_clipService'][_0x23395f(0x1c1)](!0x1)});}[_0x291e41(0x3d6)](){const _0x1c385e=_0x291e41;let _0x2eca56=this[_0x1c385e(0x3e9)],_0x24429f=new Map(),_0x1a0f85=_0x2eca56[_0x1c385e(0x256)]((_0x2376b0,_0x405f8c,_0x1eb573,_0x335359,_0x228a91)=>{const _0x9a7bb8=_0x1c385e;let _0x45d21e=_0x405f8c;if(_0x45d21e===_0x206995[_0x9a7bb8(0x2e8)]||_0x405f8c===_0x9a7bb8(0x1da))return!0x1;try{let _0x475aed=_0x24429f[_0x9a7bb8(0x42c)](_0x405f8c);return _0x475aed||(_0x475aed=new _0xdd4745(_0x45d21e,_0x9a7bb8(0x30b)+_0x405f8c),_0x24429f[_0x9a7bb8(0x28a)](_0x405f8c,_0x475aed)),_0x475aed[_0x9a7bb8(0x2a9)](),_0x228a91&&Object[_0x9a7bb8(0x3f1)](_0x228a91)[_0x9a7bb8(0x3c3)]>0x0&&_0x475aed[_0x9a7bb8(0x3c5)]({'adjustValues':_0x228a91},!0x0),_0x475aed[_0x9a7bb8(0x31e)]({'width':_0x1eb573,'height':_0x335359}),_0x475aed[_0x9a7bb8(0x1ca)](_0x2376b0,{'left':0x0,'top':0x0,'width':_0x1eb573,'height':_0x335359});}catch{return!0x1;}});this[_0x1c385e(0x432)](_0x1a0f85),this[_0x1c385e(0x432)]({'dispose':()=>_0x24429f[_0x1c385e(0x280)]()});}[_0x291e41(0x368)](_0x134202,_0x550d0b,_0x1d4dff,_0x56104a,_0x1e20f3){const _0x44049f=_0x291e41;let _0x4861f6=this[_0x44049f(0x346)][_0x44049f(0x40e)](_0x134202,_0x550d0b);if(!_0x4861f6[_0x1d4dff])return;let _0x18540e={..._0x4861f6[_0x1d4dff],'prstGeom':_0x56104a,'adjustValues':_0x1e20f3};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x18540e]);}};Q=X([Y(0x0,_0x5b79b4(_0x252e29)),Y(0x1,_0x5b79b4(_0x28cffc))],Q);const Xr='sheet.shape.picker.component',Zr=_0x291e41(0x2e7);function Qr({onShapeClick:_0x967c2a,excludeGroups:_0x17a155}){const _0x20eaef=_0x291e41;return _0x183ba7(_0x278d3,{'excludeGroups':_0x17a155,'onShapeClick':_0x967c2a,'scrollContainer':_0x20eaef(0x31b)});}function $r(){const _0x34ad05=_0x291e41;let _0x392d28=_0x42cc68(_0x28cffc),_0x592471=_0x42cc68(Q);return _0x183ba7(_0x908982,{'buttonLabel':_0x34ad05(0x307),'excludeGroups':[_0x1888fe[_0x34ad05(0x34b)]],'onShapeClick':_0x1b9f0b=>{const _0x32bcc7=_0x34ad05;let _0x56273e=_0x392d28[_0x32bcc7(0x1f4)]()[_0x32bcc7(0x1e4)](_0x32491b=>_0x32491b[_0x32bcc7(0x209)]===_0x40fd85['DRAWING_IMAGE']);if(!_0x56273e)return;let {unitId:_0x411178,subUnitId:_0x22ea52,drawingId:_0x2cabc4}=_0x56273e;_0x592471[_0x32bcc7(0x368)](_0x411178,_0x22ea52,_0x2cabc4,_0x1b9f0b[_0x32bcc7(0x28c)]);}});}function ei(){const _0x3429d5=_0x291e41;let _0x51a7c6=_0x42cc68(_0x28cffc),_0x583e61=_0x42cc68(Q);return _0x183ba7(_0x908982,{'buttonLabel':_0x3429d5(0x307),'excludeGroups':[_0x1888fe[_0x3429d5(0x34b)]],'DropdownComponent':_0xf665f2,'onShapeClick':_0x1bb753=>{const _0x5f5166=_0x3429d5;let _0x2f50e2=_0x51a7c6['getFocusDrawings']()[_0x5f5166(0x1e4)](_0x4c606a=>_0x4c606a[_0x5f5166(0x209)]===_0x40fd85['DRAWING_IMAGE']);if(!_0x2f50e2)return;let {unitId:_0x54afb6,subUnitId:_0x2b6a09,drawingId:_0x5d43fc}=_0x2f50e2;_0x583e61[_0x5f5166(0x368)](_0x54afb6,_0x2b6a09,_0x5d43fc,_0x1bb753[_0x5f5166(0x28c)]);}});}function ti(){const _0x34fbd6=_0x291e41;let _0xb4790d=_0x42cc68(_0x5a241f),_0x21d82a=_0x42cc68(_0x28cffc),_0x5d3e6b=_0x42cc68(_0x44b74c),_0x50462f=_0x21d82a[_0x34fbd6(0x1f4)]()[0x0],_0x5a73ee=_0x50462f?_0x5d3e6b[_0x34fbd6(0x340)](_0x50462f['unitId']):void 0x0,_0x47f3a9=_0x5a73ee===_0x3c82b9[_0x34fbd6(0x435)]?_0x34fbd6(0x3b6):_0x5a73ee===_0x3c82b9[_0x34fbd6(0x35c)]?Zr:void 0x0,_0x593be1=_0x47f3a9?_0xb4790d['get'](_0x47f3a9):void 0x0;return _0x593be1?_0x183ba7(_0x593be1,{}):null;}function ni(){let _0xd66579=_0x42cc68(_0x54c16f);return _0x183ba7(Qr,{'onShapeClick':_0xb9e935=>{const _0x290dfe=_0x7c09;_0xd66579[_0x290dfe(0x2e1)](Rr['id'],{'value':_0xb9e935[_0x290dfe(0x28c)],'enhanceParams':{'endArrow':_0xb9e935[_0x290dfe(0x29e)],'startArrow':_0xb9e935[_0x290dfe(0x3c1)],'horizontal':_0xb9e935[_0x290dfe(0x2ab)],'vertical':_0xb9e935[_0x290dfe(0x315)]}});}});}function ri(){return _0x183ba7(ni,{});}function ii(_0x129eba){const _0x3681d4=_0x291e41;let _0x4dfb33=_0x129eba[_0x3681d4(0x42c)](_0x44b74c);return{'id':Rr['id'],'type':_0x570be5[_0x3681d4(0x1f5)],'selections':[{'label':{'name':Xr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Rr['id']}}}],'icon':'ShapeIcon','tooltip':'sheets-shape-ui.insertShape','activated$':_0x4cade8(_0x4dfb33,!0x1,()=>new _0x1486bd(_0x134482=>{_0x134482['next'](!0x1);})),'hidden$':_0x205c3b(_0x129eba,_0x3c82b9[_0x3681d4(0x35c)]),'disabled$':_0xa68a8d(_0x129eba)};}function ai(_0x21f406){const _0x3f2b9a=_0x291e41;let _0x291ed7=_0x21f406[_0x3f2b9a(0x42c)](_0x31c5f5);return{'id':Gr['id'],'type':_0x570be5[_0x3f2b9a(0x19b)],'icon':_0x3f2b9a(0x392),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x3f2b9a(0x1eb),'activated$':_0x5ccdfe(()=>_0x291ed7[_0x3f2b9a(0x385)]['pipe'](_0x1c299f(_0x291ed7[_0x3f2b9a(0x32b)]),_0x415b6a(_0x18c1d4=>_0x18c1d4['visible']===!0x0&&_0x18c1d4['id']===_0x3f2b9a(0x3a8)),_0xfbaf87())),'hidden$':_0x205c3b(_0x21f406,_0x3c82b9['UNIVER_SHEET']),'disabled$':_0xa68a8d(_0x21f406)};}const oi=_0x291e41(0x1f7),si=_0x291e41(0x306);function ci(_0x3eacb5){const _0x111d60=_0x291e41;let _0xae0bfc=_0x3eacb5[_0x111d60(0x42c)](_0x28cffc)['getFocusDrawings']();return _0xae0bfc[_0x111d60(0x3c3)]===0x1&&_0xae0bfc[0x0][_0x111d60(0x209)]===_0x40fd85[_0x111d60(0x43a)]?_0xae0bfc[0x0]:null;}function li(_0x5ae716){const _0x4c5447=_0x291e41;let _0x32391e=_0x5ae716[_0x4c5447(0x42c)](_0x28cffc);return _0x32391e[_0x4c5447(0x1d8)][_0x4c5447(0x24c)](_0x1c299f(_0x32391e[_0x4c5447(0x1f4)]()),_0x415b6a(_0x14a6ca=>_0x14a6ca[_0x4c5447(0x3c3)]!==0x1||_0x14a6ca[0x0][_0x4c5447(0x209)]!==_0x40fd85[_0x4c5447(0x43a)]));}function ui(_0xc73aaa){const _0x450d57=_0x291e41;return{'id':oi,'commandId':_0x47976c['id'],'type':_0x570be5[_0x450d57(0x19b)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x450d57(0x41d),'icon':_0x450d57(0x272),'hidden$':li(_0xc73aaa),'params':()=>{const _0x1d954f=_0x450d57;let _0x55f62c=ci(_0xc73aaa);return _0x55f62c?{'unitId':_0x55f62c[_0x1d954f(0x351)],'subUnitId':_0x55f62c[_0x1d954f(0x21b)],'shapeId':_0x55f62c[_0x1d954f(0x1dd)],'flipH':!0x0}:void 0x0;}};}function di(_0x6c82a2){const _0x578d27=_0x291e41;return{'id':si,'commandId':_0x47976c['id'],'type':_0x570be5['BUTTON'],'title':_0x578d27(0x24e),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x578d27(0x1e2),'hidden$':li(_0x6c82a2),'params':()=>{const _0x4f7717=_0x578d27;let _0x2f6e2c=ci(_0x6c82a2);return _0x2f6e2c?{'unitId':_0x2f6e2c['unitId'],'subUnitId':_0x2f6e2c[_0x4f7717(0x21b)],'shapeId':_0x2f6e2c[_0x4f7717(0x1dd)],'flipV':!0x0}:void 0x0;}};}const fi='sheets-shape-ui.shape-format.quick-style-gallery',pi='sheets-shape-ui.shape-format.style-ribbon-control',mi=_0x291e41(0x1ba),hi='sheets-shape-ui.shape-format.formula-ribbon-control';function gi(){let _0x6b2fde=_0x42cc68(_0x54c16f),_0x3b5b86=_0x42cc68(_0x28cffc),_0x54e6f5=_0x42cc68(_0x1e1f0c),_0x37396c=()=>{const _0x48ac91=_0x7c09;var _0x1e60bc;let _0x5e390b=_0x3b5b86[_0x48ac91(0x1f4)]();if(_0x5e390b['length']!==0x1||((_0x1e60bc=_0x5e390b[0x0])==null?void 0x0:_0x1e60bc['drawingType'])!==_0x40fd85['DRAWING_SHAPE'])return null;let {unitId:_0xd0b31f,subUnitId:_0x2942f3,drawingId:_0xcaae3c}=_0x5e390b[0x0],_0x560f6c=_0x54e6f5[_0x48ac91(0x1a4)](_0xd0b31f,_0x2942f3,_0xcaae3c),_0x54963f=_0x54e6f5[_0x48ac91(0x1a0)](_0xd0b31f,_0x2942f3,_0xcaae3c);return _0x560f6c===void 0x0||!_0x54963f?null:{'unitId':_0xd0b31f,'subUnitId':_0x2942f3,'drawingId':_0xcaae3c,'shapeType':_0x560f6c,'shapeData':_0x54963f};},_0x543094=_0x279878(()=>new _0x1486bd(_0x1fb63e=>{const _0x3de369=_0x7c09;let _0x4f791a=()=>_0x1fb63e[_0x3de369(0x1c4)](_0x37396c()),_0x4f8696=_0x3b5b86[_0x3de369(0x1d8)]['subscribe'](_0x4f791a),_0x243a5e=_0x6b2fde[_0x3de369(0x43c)](_0x88be1c=>{_0x88be1c['id']===_0x172941['id']&&_0x4f791a();});return _0x4f791a(),()=>{const _0x3078ba=_0x3de369;_0x4f8696[_0x3078ba(0x34c)](),_0x243a5e[_0x3078ba(0x20d)]();};}),_0x37396c(),!0x1,[_0x6b2fde,_0x3b5b86,_0x54e6f5]);return{'selection':_0x543094,'updateShapeData':_0x130deb=>{const _0x1899ed=_0x7c09;_0x543094&&kr(_0x6b2fde,_0x543094['unitId'],_0x543094['subUnitId'],_0x543094[_0x1899ed(0x1dd)],{'oldShapeData':_0x543094[_0x1899ed(0x3ad)]},_0x130deb);}};}function _i(){const _0x32c154=_0x291e41;let {selection:_0xac3076,updateShapeData:_0x252c79}=gi();return _0xac3076?_0x183ba7(_0xf453d4,{'shapeData':_0xac3076[_0x32c154(0x3ad)],'shapeType':_0xac3076[_0x32c154(0x3e1)],'onUpdateShapeData':_0x252c79}):null;}function vi(){const _0x301ca1=_0x291e41;let _0x3fd370=_0x42cc68(_0x54c16f),_0x5ec13e=_0x42cc68(_0x13738a),{selection:_0x4cf119}=gi();return _0x4cf119?_0x183ba7(_0x125dd1,{'type':_0x5d10b7(_0x4cf119['shapeData']),'ariaLabel':_0x5ec13e['t'](_0x301ca1(0x2cc)),'activePresetId':_0x12b5de(_0x4cf119['shapeData']),'onSelect':_0x2ff296=>_0x3fd370[_0x301ca1(0x2e1)](Jr['id'],{'presetId':_0x2ff296})}):null;}function yi(){const _0x5567b0=_0x291e41;let {selection:_0x282c68,updateShapeData:_0x4e9426}=gi();return _0x282c68?_0x183ba7(_0x28730a,{'fontFamilyPopupDataComponent':_0x5567b0(0x30c),'shapeData':_0x282c68['shapeData'],'onUpdateShapeData':_0x4e9426}):null;}function bi(){const _0x2e744e=_0x291e41;var _0x5032a5;let {selection:_0x1e377b,updateShapeData:_0x1c0793}=gi(),_0x1f3902=_0x3c9bbc({'hostType':_0x3c82b9['UNIVER_SHEET'],'unitId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x351)])??'','subUnitId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x21b)])??'','shapeId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x1dd)])??'','shapeData':_0x1e377b==null?void 0x0:_0x1e377b['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x2e744e(0x37f),'onUpdateBinding':_0x33bc88=>_0x1c0793({'formulaBinding':_0x33bc88})}),_0x81a607=((_0x5032a5=_0x1f3902[_0x2e744e(0x204)])==null?void 0x0:_0x5032a5[_0x2e744e(0x377)](_0x23774f=>_0x23774f['actions'])[_0x2e744e(0x3c0)](_0xdfc308=>_0xdfc308[_0x2e744e(0x42d)]!==!0x1))??[];return _0x1e377b!=null&&_0x1e377b[_0x2e744e(0x3ad)][_0x2e744e(0x295)]?_0x183ba7(_0x423781,{'actions':_0x81a607,'panel':_0x1f3902[_0x2e744e(0x355)]}):null;}const xi=_0x291e41(0x27b),Si=_0x291e41(0x44e),Ci=_0x291e41(0x451),wi=_0x291e41(0x2fa),Ti=_0x291e41(0x294),Ei=_0x291e41(0x37a),Di=_0x291e41(0x1bc);function Oi(_0x1fcb07){const _0x53022e=_0x291e41;let _0xac2f70=_0x1fcb07[_0x53022e(0x42c)](_0x54c16f),_0x53f6a4=_0x1fcb07[_0x53022e(0x42c)](_0x28cffc),_0x1180be=_0x1fcb07['get'](_0x1e1f0c);return new _0x1486bd(_0x27929b=>{const _0x5de58d=_0x53022e;let _0x53e8aa=()=>{const _0x17238a=_0x7c09;let _0x1552c9=ki(_0x1fcb07),_0x5c0bac=_0x1552c9?_0x1180be['getShapeDataById'](_0x1552c9[_0x17238a(0x351)],_0x1552c9[_0x17238a(0x21b)],_0x1552c9[_0x17238a(0x1dd)]):null;_0x27929b[_0x17238a(0x1c4)](_0x5c0bac?_0x12b5de(_0x5c0bac)??'':'');},_0x2cbf93=_0x53f6a4[_0x5de58d(0x1d8)][_0x5de58d(0x456)](_0x53e8aa),_0x3f7101=_0xac2f70[_0x5de58d(0x43c)](_0x3fe259=>{_0x3fe259['id']===_0x172941['id']&&_0x53e8aa();});return _0x53e8aa(),()=>{const _0x2cd60b=_0x5de58d;_0x2cbf93[_0x2cd60b(0x34c)](),_0x3f7101[_0x2cd60b(0x20d)]();};});}function ki(_0x14214b){const _0x5ecd8c=_0x291e41;var _0x247a62;let _0xc28fcc=_0x14214b[_0x5ecd8c(0x42c)](_0x28cffc)[_0x5ecd8c(0x1f4)]();return _0xc28fcc['length']===0x1&&((_0x247a62=_0xc28fcc[0x0])==null?void 0x0:_0x247a62[_0x5ecd8c(0x209)])===_0x40fd85[_0x5ecd8c(0x43a)]?_0xc28fcc[0x0]:null;}function Ai(_0x219532,_0x2203fc=!0x1){const _0x1e2434=_0x291e41;let _0x2803c7=_0x219532[_0x1e2434(0x42c)](_0x54c16f),_0x4de92b=_0x219532['get'](_0x28cffc),_0xe5702=_0x219532[_0x1e2434(0x42c)](_0x1e1f0c);return new _0x1486bd(_0x2c21b2=>{const _0x419196=_0x1e2434;let _0x22304a=()=>{const _0x133d12=_0x7c09;let _0x301844=ki(_0x219532);if(!_0x301844){_0x2c21b2[_0x133d12(0x1c4)](!0x0);return;}let _0x2f469b=_0xe5702['getShapeDataById'](_0x301844[_0x133d12(0x351)],_0x301844[_0x133d12(0x21b)],_0x301844[_0x133d12(0x1dd)]);_0x2c21b2[_0x133d12(0x1c4)](!_0x2f469b||_0x2203fc&&_0x2f469b['formulaBinding']==null);},_0x2c4521=_0x4de92b[_0x419196(0x1d8)][_0x419196(0x456)](_0x22304a),_0x1cf033=_0x2803c7[_0x419196(0x43c)](_0x427721=>{_0x427721['id']===_0x172941['id']&&_0x22304a();});return _0x22304a(),()=>{const _0x284d6f=_0x419196;_0x2c4521[_0x284d6f(0x34c)](),_0x1cf033[_0x284d6f(0x20d)]();};});}function ji(_0x2d0a83){const _0x37b455=_0x291e41;let _0x51642c=_0x2d0a83[_0x37b455(0x42c)](_0x28cffc),_0x1ecc68=_0x2d0a83['get'](_0x1e1f0c);return _0x51642c[_0x37b455(0x1d8)][_0x37b455(0x24c)](_0x1c299f(_0x51642c[_0x37b455(0x1f4)]()),_0x415b6a(()=>{const _0x48731b=_0x37b455;let _0x4e5465=ki(_0x2d0a83),_0x32523c=_0x4e5465?_0x1ecc68[_0x48731b(0x1a4)](_0x4e5465[_0x48731b(0x351)],_0x4e5465['subUnitId'],_0x4e5465['drawingId']):void 0x0;return _0x32523c===void 0x0||_0x5184c7(_0x32523c);}));}function Mi(_0x5e4953){const _0x1ff8e9=_0x291e41;return{'id':Jr['id'],'type':_0x570be5[_0x1ff8e9(0x1f5)],'icon':'PaintIcon','title':_0x1ff8e9(0x1a1),'tooltip':_0x1ff8e9(0x1a1),'selections':[{'label':{'name':fi,'hoverable':!0x1,'selectable':!0x1}}],'value$':Oi(_0x5e4953),'hidden$':Ai(_0x5e4953)};}function Ni(_0x1e220b){const _0xf763ab=_0x291e41;return{'id':Yr['id'],'type':_0x570be5[_0xf763ab(0x1f5)],'icon':_0xf763ab(0x379),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0xf763ab(0x319),'slot':!0x0,'selections':[{'label':{'name':_0x527a50,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ji(_0x1e220b)};}function Pi(_0x1b5fdd,_0x45c76c,_0x4afc65=!0x1){const _0x4c8ebb=_0x291e41;return _0x2c4eca=>({'id':_0x1b5fdd,'type':_0x570be5[_0x4c8ebb(0x19b)],'label':{'name':_0x45c76c,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ai(_0x2c4eca,_0x4afc65)});}const Fi=Pi(xi,pi),Ii=Pi(Si,mi),Li=Pi(Ci,hi,!0x0);function Ri(_0x48334a,_0x3d0e30,_0x11c8ed,_0x2c42ec){return _0x30e57e=>({'id':_0x48334a,'commandId':_0x15f547['id'],'type':_0x570be5['BUTTON'],'icon':_0x11c8ed,'title':_0x2c42ec,'tooltip':_0x2c42ec,'hidden$':Ai(_0x30e57e),'params':()=>{const _0x2c3c5a=_0x7c09;let _0x477f3a=ki(_0x30e57e);return _0x477f3a?{'unitId':_0x477f3a['unitId'],'subUnitId':_0x477f3a['subUnitId'],'drawingIds':[_0x477f3a[_0x2c3c5a(0x1dd)]],'arrangeType':_0x3d0e30}:void 0x0;}});}const zi=Ri(wi,_0x10dd10[_0x291e41(0x221)],_0x291e41(0x393),_0x291e41(0x2d6)),Bi=Ri(Ti,_0x10dd10[_0x291e41(0x2f0)],_0x291e41(0x373),_0x291e41(0x25d)),Vi=Ri(Ei,_0x10dd10[_0x291e41(0x3e7)],'TopmostIcon',_0x291e41(0x3a3)),Hi=Ri(Di,_0x10dd10[_0x291e41(0x33f)],_0x291e41(0x259),_0x291e41(0x341));function Ui(_0x5ee7e5){const _0x462aa8=_0x291e41;let _0x549550=_0x5ee7e5[_0x462aa8(0x42c)](_0x31c5f5);return{'activated$':_0x5ccdfe(()=>_0x549550['sidebarOptions$'][_0x462aa8(0x24c)](_0x1c299f(_0x549550[_0x462aa8(0x32b)]),_0x415b6a(_0x43a0c8=>_0x43a0c8[_0x462aa8(0x42d)]===!0x0&&_0x43a0c8['id']===_0x462aa8(0x2ee)),_0xfbaf87())),'id':Kr['id'],'type':_0x570be5[_0x462aa8(0x19b)],'icon':_0x462aa8(0x3b2),'title':_0x462aa8(0x318),'tooltip':_0x462aa8(0x318),'hidden$':Ai(_0x5ee7e5),'params':()=>{const _0x451111=_0x462aa8;let _0x4c95cd=ki(_0x5ee7e5);return _0x4c95cd?{'unitId':_0x4c95cd[_0x451111(0x351)],'subUnitId':_0x4c95cd[_0x451111(0x21b)],'drawingId':_0x4c95cd[_0x451111(0x1dd)]}:void 0x0;}};}const Wi={[_0x388a30[_0x291e41(0x1ea)]]:{[Hr]:{'order':0x64,'title':_0x291e41(0x318),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Jr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Mi},[Yr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Si]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ii}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[oi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ui},[si]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':di},[wi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':zi},[Ti]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Bi},[Ei]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Vi},[Di]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Hi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ci]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Li}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ui},[_0x4895c1['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x219f54}}}}},Gi={[_0x412e51[_0x291e41(0x387)]]:{[Rr['id']]:{'order':0x3,'menuItemFactory':ii}}},Ki={...Gi,[_0x412e51['OTHERS']]:{[Gr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ai}},[_0x42929a[_0x291e41(0x35a)]]:{[_0x5580dd[_0x291e41(0x238)]]:{[oi]:{'order':0x4,'menuItemFactory':ui},[si]:{'order':0x5,'menuItemFactory':di}}}};var qi=_0x291e41(0x1d7),Ji='1.4.0';const Yi={'id':_0x291e41(0x2ae),'type':_0x303f65[_0x291e41(0x3e6)],'handler'(_0x483b14,_0x2b52ad){const _0x318eef=_0x291e41;return _0x2b52ad?(_0x483b14[_0x318eef(0x42c)](_0xdd7ac8)[_0x318eef(0x269)](_0x2b52ad['mode'],{'hostType':_0x3c82b9[_0x318eef(0x35c)],'shapeId':_0x2b52ad[_0x318eef(0x1dd)],'subUnitId':_0x2b52ad[_0x318eef(0x21b)],'unitId':_0x2b52ad['unitId']}),!0x0):!0x1;}},Xi=_0x291e41(0x34f),Zi={};let Qi=class extends _0x557a26{constructor(_0x2431b1,_0x4f668b,_0x39cc98,_0x118314,_0x5b9c69){const _0x471f47=_0x291e41;super(),this[_0x471f47(0x343)]=_0x2431b1,this['_drawingManagerService']=_0x4f668b,this[_0x471f47(0x449)]=_0x39cc98,this[_0x471f47(0x394)]=_0x118314,this[_0x471f47(0x388)]=_0x5b9c69,q(this,'_activeImageId',null),q(this,_0x471f47(0x32f),null),q(this,_0x471f47(0x1df),null),q(this,'_activeAdjustPointList',void 0x0),q(this,_0x471f47(0x1a5),[]),q(this,_0x471f47(0x299),0x0),q(this,'_baseTop',0x0),q(this,_0x471f47(0x267),0x0),q(this,_0x471f47(0x1d1),0x0),q(this,_0x471f47(0x25c),!0x1),q(this,_0x471f47(0x23e),void 0x0),q(this,_0x471f47(0x22f),void 0x0),q(this,_0x471f47(0x370),void 0x0),q(this,_0x471f47(0x3ba),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x471f47(0x300)](),this[_0x471f47(0x1b2)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x291e41(0x2b0)](){const _0x3c3089=_0x291e41;this[_0x3c3089(0x43f)](),this['_createControls'](!0x0);}[_0x291e41(0x260)](_0x326e95,_0x17ea7e,_0x1d9220,_0x4d712e){const _0x55636d=_0x291e41;let _0x55ac39=_0x326e95;if(_0x55ac39!==_0x206995['None']&&_0x326e95!==_0x55636d(0x1da))try{let _0x33836b=new _0xdd4745(_0x55ac39,_0x55636d(0x2a1)+_0x326e95);return _0x4d712e&&_0x33836b[_0x55636d(0x3c5)]({'adjustValues':_0x4d712e},!0x0),_0x33836b[_0x55636d(0x31e)]({'width':_0x17ea7e,'height':_0x1d9220}),_0x33836b;}catch{return;}}[_0x291e41(0x1de)](_0x53c57c,_0x27d39c,_0x5ad50c){const _0x573913=_0x291e41;let _0x530f19={'unitId':_0x53c57c,'subUnitId':_0x27d39c,'drawingId':_0x5ad50c},_0x3d76a2=this[_0x573913(0x346)][_0x573913(0x312)](_0x530f19);if(_0x3d76a2&&_0x3d76a2[_0x573913(0x209)]===_0x40fd85['DRAWING_IMAGE'])return _0x3d76a2;}['_getImagePrstGeom'](_0x4f0379,_0x426c76,_0x2cb1c2){const _0x27adf9=_0x291e41;let _0x31a55f=this[_0x27adf9(0x449)][_0x27adf9(0x3a7)](_0x4f0379);if(!_0x31a55f)return;let {scene:_0x3f54c1}=_0x31a55f,_0x2eb53c=_0x38d621({'unitId':_0x4f0379,'subUnitId':_0x426c76,'drawingId':_0x2cb1c2}),_0x329ed=_0x3f54c1[_0x27adf9(0x1fc)](_0x2eb53c);if(_0x329ed instanceof _0x3e5f8e){let _0x434d7d=_0x329ed[_0x27adf9(0x324)];if(_0x434d7d)return{'prstGeom':_0x434d7d,'adjustValues':_0x329ed[_0x27adf9(0x1d5)]};}}[_0x291e41(0x1d9)](_0x55052e=!0x1){const _0x100221=_0x291e41;if(!this[_0x100221(0x32f)]||!this[_0x100221(0x1df)]||!this[_0x100221(0x192)])return;let _0x42eadd=this[_0x100221(0x449)][_0x100221(0x3a7)](this[_0x100221(0x32f)]);if(!_0x42eadd||!_0x42eadd[_0x100221(0x401)](_0x5635f6)['getCurrentSkeleton']())return;let {scene:_0x73a68f}=_0x42eadd,_0x13147a=this[_0x100221(0x1de)](this[_0x100221(0x32f)],this[_0x100221(0x1df)],this[_0x100221(0x192)]);if(!_0x13147a)return;let {transform:_0x20fd64}=_0x13147a;if(!_0x20fd64)return;let {left:_0x5190f8,top:_0x1b8d36,width:_0x1e6e3d,height:_0x516afd,flipX:_0x5bd96d,flipY:_0x4901dd,angle:_0x537638=0x0}=_0x20fd64;if(_0x5190f8===void 0x0||_0x1b8d36===void 0x0)return;let _0x2b54f8=this[_0x100221(0x29c)](this[_0x100221(0x32f)],this[_0x100221(0x1df)],this[_0x100221(0x192)]);if(!_0x2b54f8)return;if(_0x55052e){let _0x3c58f5=this['_getOrCreateShapeModel'](_0x2b54f8[_0x100221(0x324)],_0x1e6e3d||0x0,_0x516afd||0x0,_0x2b54f8[_0x100221(0x342)]);if(!_0x3c58f5)return;this['_activeAdjustPointList']=_0x3c58f5['getDrawingPoints']();}let _0x17d413=this[_0x100221(0x2dd)];if(_0x17d413&&_0x17d413[_0x100221(0x3c3)]!==0x0)for(let _0xe061d2=0x0;_0xe061d2<_0x17d413[_0x100221(0x3c3)];_0xe061d2++){let _0x5434f7=_0x17d413[_0xe061d2],_0x54e0c6=_0x5434f7['x'],_0x316e87=_0x5434f7['y'];if(_0x5bd96d&&(_0x54e0c6=(_0x1e6e3d||0x0)-_0x54e0c6),_0x4901dd&&(_0x316e87=(_0x516afd||0x0)-_0x316e87),_0x537638!==0x0){let _0x226139=(_0x1e6e3d||0x0)/0x2,_0x4b4821=(_0x516afd||0x0)/0x2,_0x4f6fd5=_0x537638*Math['PI']/0xb4,_0x25f3fc=Math[_0x100221(0x375)](_0x4f6fd5),_0x24b209=Math[_0x100221(0x3ae)](_0x4f6fd5),_0x2a7ee6=_0x54e0c6-_0x226139,_0x482ce2=_0x316e87-_0x4b4821;_0x54e0c6=_0x226139+(_0x2a7ee6*_0x25f3fc-_0x482ce2*_0x24b209),_0x316e87=_0x4b4821+(_0x2a7ee6*_0x24b209+_0x482ce2*_0x25f3fc);}let _0x43ca52={'x':_0x54e0c6,'y':_0x316e87,'adjName':_0x5434f7[_0x100221(0x443)]};this['_addControl'](_0x73a68f,_0x43ca52,_0x43ca52[_0x100221(0x443)],_0x5190f8,_0x1b8d36,this[_0x100221(0x32f)],this['_subUnitId']);}}[_0x291e41(0x336)](_0x3a4de7,_0x2c47a1,_0x20a81c,_0x22e16c,_0x39065b,_0x419d30,_0x18753e){const _0x3c84ff=_0x291e41;if(!this[_0x3c84ff(0x192)])return;let _0x3d9207=_0x3c84ff(0x285)+this['_activeImageId']+'-'+_0x20a81c,_0x3af53d=_0x3a4de7['getObjectIncludeInGroup'](_0x3d9207);if(_0x3af53d){_0x3af53d[_0x3c84ff(0x220)]({'left':_0x2c47a1['x']+_0x22e16c-_0x179988[_0x3c84ff(0x3dd)],'top':_0x2c47a1['y']+_0x39065b-_0x179988[_0x3c84ff(0x3dd)]});return;}let _0x25e885=new Fr(_0x3d9207,{'left':_0x2c47a1['x']+_0x22e16c-_0x179988[_0x3c84ff(0x3dd)],'top':_0x2c47a1['y']+_0x39065b-_0x179988[_0x3c84ff(0x3dd)],'adjName':_0x20a81c,'shapeId':this[_0x3c84ff(0x192)],'unitId':_0x419d30,'subUnitId':_0x18753e,'width':_0x179988[_0x3c84ff(0x3dd)]+0x8,'height':_0x179988[_0x3c84ff(0x3dd)]+0x8,'zIndex':_0x10b13b+0x1,'evented':!0x0});this[_0x3c84ff(0x1a5)]['push'](_0x25e885),this[_0x3c84ff(0x455)](_0x25e885,_0x3a4de7,_0x20a81c),_0x3a4de7['addObject'](_0x25e885,_0x10b13b+0x1);}[_0x291e41(0x43f)](){const _0x5b28f7=_0x291e41;this[_0x5b28f7(0x1a5)]['length']!==0x0&&(this['_shapes'][_0x5b28f7(0x44b)](_0x2f4691=>_0x2f4691['dispose']()),this[_0x5b28f7(0x1a5)]=[]);}[_0x291e41(0x436)](_0x28d2b0,_0x32bb8e){const _0x46d011=_0x291e41;var _0x49339c;let _0x1cecb5={'x':0x0,'y':0x0},_0x95f51b=this['_renderManagerService'][_0x46d011(0x3a7)](_0x28d2b0);if(!_0x95f51b||!_0x95f51b[_0x46d011(0x401)](_0x5635f6)[_0x46d011(0x2d8)](_0x32bb8e))return _0x1cecb5;let _0x2c7b56=_0x95f51b['with'](_0xbd2a68),_0x3e439d=_0x2c7b56==null?void 0x0:_0x2c7b56[_0x46d011(0x212)]();if(!_0x3e439d)return _0x1cecb5;let _0xf9fcaf=(_0x49339c=this[_0x46d011(0x394)][_0x46d011(0x208)](_0x28d2b0))==null?void 0x0:_0x49339c['getSheetBySheetId'](_0x32bb8e);if(!_0xf9fcaf)return _0x1cecb5;let _0x2b3426=_0x53677b(_0x3e439d[_0x46d011(0x38c)],_0x3e439d[_0x46d011(0x457)],_0x95f51b[_0x46d011(0x1f2)],_0xf9fcaf);return _0x2b3426?{'x':_0x2b3426['viewportScrollX'],'y':_0x2b3426['viewportScrollY']}:_0x1cecb5;}[_0x291e41(0x245)](_0x590280,_0x23d838){const _0x124a45=_0x291e41;var _0x5c94cc;let _0x4de9d3=(_0x5c94cc=this['_univerInstanceService'][_0x124a45(0x208)](_0x590280))==null?void 0x0:_0x5c94cc['getSheetBySheetId'](_0x23d838);return(_0x4de9d3==null?void 0x0:_0x4de9d3[_0x124a45(0x3eb)]())??0x1;}[_0x291e41(0x455)](_0x2f6ad5,_0x12dd84,_0x24456b){const _0x5a325c=_0x291e41;this[_0x5a325c(0x432)](_0x53ca46(_0x2f6ad5[_0x5a325c(0x1e7)][_0x5a325c(0x1a9)]((_0x181ae0,_0x38a24f)=>{const _0x5513e1=_0x5a325c;var _0x5db8e2,_0x43cbfb,_0x577084;let {unitId:_0x2c4eb2,subUnitId:_0x28d141,drawingId:_0x33d5a1}=_0x2f6ad5[_0x5513e1(0x2b4)](),_0x4cae81=this[_0x5513e1(0x1de)](_0x2c4eb2,_0x28d141,_0x33d5a1);if(!(_0x4cae81!=null&&_0x4cae81['transform']))return;let {left:_0xceb146,top:_0x27888f,width:_0xcb86bf,height:_0xccc101}=_0x4cae81[_0x5513e1(0x21c)];this[_0x5513e1(0x299)]=_0xceb146||0x0,this['_baseTop']=_0x27888f||0x0,this[_0x5513e1(0x267)]=_0xcb86bf||0x0,this[_0x5513e1(0x1d1)]=_0xccc101||0x0;let _0x5b020d=!!((_0x5db8e2=_0x4cae81['transform'])!=null&&_0x5db8e2[_0x5513e1(0x26b)]),_0x49bf33=!!((_0x43cbfb=_0x4cae81[_0x5513e1(0x21c)])!=null&&_0x43cbfb[_0x5513e1(0x1d2)]),_0x2c704c=((_0x577084=_0x4cae81[_0x5513e1(0x21c)])==null?void 0x0:_0x577084[_0x5513e1(0x2a0)])||0x0,_0x24d75f=this[_0x5513e1(0x29c)](_0x2c4eb2,_0x28d141,_0x33d5a1);if(!_0x24d75f)return;let _0x266dbf=this[_0x5513e1(0x260)](_0x24d75f[_0x5513e1(0x324)],this[_0x5513e1(0x267)],this[_0x5513e1(0x1d1)],_0x24d75f[_0x5513e1(0x342)]);if(!_0x266dbf||(this['_activeShapeModel']=_0x266dbf,this[_0x5513e1(0x23e)]=_0x266dbf[_0x5513e1(0x437)](_0x24456b),!this[_0x5513e1(0x23e)]))return;this[_0x5513e1(0x25c)]=!0x0,_0x12dd84[_0x5513e1(0x424)]();let _0x50eaca=_0x24d75f['prstGeom'];this[_0x5513e1(0x370)]=_0x12dd84[_0x5513e1(0x349)][_0x5513e1(0x1a9)]((_0x512478,_0x81b651)=>{const _0x4be003=_0x5513e1;if(!this['_isStartAdjusting'])return;let {offsetX:_0x147cd9,offsetY:_0x1d390b}=_0x512478,_0x4e66a6=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x4e66a6)return;_0x12dd84[_0x4be003(0x424)](),_0x12dd84[_0x4be003(0x329)](_0x15231c[_0x4be003(0x198)]);let _0x3c194a={'left':0x0,'top':0x0,'width':this[_0x4be003(0x267)],'height':this[_0x4be003(0x1d1)]},_0x4eaccb=this[_0x4be003(0x436)](_0x2c4eb2,_0x28d141),_0x461547=this[_0x4be003(0x245)](_0x2c4eb2,_0x28d141),_0x4f8673=_0x147cd9/_0x461547+_0x4eaccb['x']-this['_baseLeft'],_0x50da76=_0x1d390b/_0x461547+_0x4eaccb['y']-this[_0x4be003(0x3b4)];if(_0x2c704c!==0x0){let _0x5972c3=this[_0x4be003(0x267)]/0x2,_0x274b27=this[_0x4be003(0x1d1)]/0x2,_0x3599ad=_0x2c704c*Math['PI']/0xb4,_0x370dda=Math[_0x4be003(0x375)](_0x3599ad),_0x121b69=Math['sin'](_0x3599ad),_0xdfb4d7=_0x4f8673-_0x5972c3,_0x59f371=_0x50da76-_0x274b27;_0x4f8673=_0x5972c3+(_0xdfb4d7*_0x370dda+_0x59f371*_0x121b69),_0x50da76=_0x274b27+(-_0xdfb4d7*_0x121b69+_0x59f371*_0x370dda);}_0x5b020d&&(_0x4f8673=this[_0x4be003(0x267)]-_0x4f8673),_0x49bf33&&(_0x50da76=this[_0x4be003(0x1d1)]-_0x50da76);let _0x5d1d5b=this[_0x4be003(0x22f)][_0x4be003(0x399)](_0x3c194a,{'x':_0x4f8673,'y':_0x50da76},_0x4e66a6,_0x5b020d,_0x49bf33);if(Object[_0x4be003(0x3f1)](_0x5d1d5b)[_0x4be003(0x3c3)]!==0x0){for(let [_0x8da784,_0x1995ea]of Object[_0x4be003(0x384)](_0x5d1d5b))this[_0x4be003(0x22f)]['setAdjustValueByName'](_0x8da784,_0x1995ea);this[_0x4be003(0x22f)][_0x4be003(0x31e)]({'width':this[_0x4be003(0x267)],'height':this[_0x4be003(0x1d1)]}),this['_updateImageAdjValues'](_0x2c4eb2,_0x28d141,_0x33d5a1,_0x5d1d5b),this[_0x4be003(0x2dd)]=this[_0x4be003(0x22f)][_0x4be003(0x44f)](),this['_createControls'](),_0x81b651[_0x4be003(0x2a5)]();}}),this[_0x5513e1(0x3ba)]=_0x12dd84[_0x5513e1(0x274)][_0x5513e1(0x1a9)]((_0x6bfa22,_0x1ae70c)=>{const _0x26b0ea=_0x5513e1;if(this['_adjHandlerPointerMove'][_0x26b0ea(0x34c)](),this[_0x26b0ea(0x3ba)][_0x26b0ea(0x34c)](),_0x12dd84['resetCursor'](),this[_0x26b0ea(0x22f)]){let _0x18b2a8=this[_0x26b0ea(0x22f)][_0x26b0ea(0x36e)](),_0x29da56={};for(let _0x1e7911 of _0x18b2a8){let _0x50e714=this[_0x26b0ea(0x22f)]['getAdjustValueByName'](_0x1e7911);_0x50e714!==void 0x0&&(_0x29da56[_0x1e7911]=_0x50e714);}this[_0x26b0ea(0x388)][_0x26b0ea(0x368)](_0x2c4eb2,_0x28d141,_0x33d5a1,_0x50eaca,_0x29da56);}this[_0x26b0ea(0x23e)]=void 0x0,this[_0x26b0ea(0x22f)]=void 0x0,this[_0x26b0ea(0x25c)]=!0x1,_0x1ae70c[_0x26b0ea(0x2a5)](),_0x12dd84['enableObjectsEvent']();}),_0x38a24f[_0x5513e1(0x2a5)]();})));}[_0x291e41(0x1c6)](_0x4f8aeb,_0x4f7680,_0x17d755,_0x4ac6f3){const _0x209380=_0x291e41;let _0x223d31=this[_0x209380(0x449)][_0x209380(0x3a7)](_0x4f8aeb);if(!_0x223d31)return;let {scene:_0x226071}=_0x223d31,_0x39ba68=_0x38d621({'unitId':_0x4f8aeb,'subUnitId':_0x4f7680,'drawingId':_0x17d755}),_0x18eab7=_0x226071[_0x209380(0x1fc)](_0x39ba68);if(_0x18eab7 instanceof _0x3e5f8e){let _0x2e601d=_0x18eab7[_0x209380(0x1d5)]??{};_0x18eab7[_0x209380(0x352)]({..._0x2e601d,..._0x4ac6f3}),_0x18eab7[_0x209380(0x293)](!0x0);}}[_0x291e41(0x1b2)](){const _0x8b3e94=_0x291e41;let _0x5b9a98=this[_0x8b3e94(0x394)]['getCurrentTypeOfUnit$'](_0x3c82b9[_0x8b3e94(0x35c)]);this[_0x8b3e94(0x432)](_0x5b9a98['pipe'](_0x17931b(_0x1cfb82=>_0x1cfb82?_0x1cfb82[_0x8b3e94(0x3bc)]['pipe'](_0x17931b(_0xf79eba=>{const _0x33ffcb=_0x8b3e94;if(!_0xf79eba)return _0x257bb9;let _0x2a35fc=_0x1cfb82['getUnitId'](),_0x28b3a6=this[_0x33ffcb(0x449)]['getRenderUnitById'](_0x2a35fc),_0x3cd5d6=_0x28b3a6==null?void 0x0:_0x28b3a6['scene'];return _0x3cd5d6?_0x413c25(_0x3cd5d6):_0x257bb9;})):_0x257bb9))[_0x8b3e94(0x456)](_0x3494b1=>{const _0x47227d=_0x8b3e94;let _0x47f386=_0x3494b1[_0x47227d(0x39e)]();this[_0x47227d(0x432)](_0x3494b1[_0x47227d(0x349)][_0x47227d(0x1a9)](()=>{const _0x287769=_0x47227d;this[_0x287769(0x45a)]&&this['_clearControls']();})),this['disposeWithMe'](_0x47f386['changeStart$'][_0x47227d(0x456)](_0x232dd3=>{const _0x1e6bc1=_0x47227d;let {objects:_0x6737e4}=_0x232dd3;if(this[_0x1e6bc1(0x1d9)](),_0x6737e4!==null&&_0x6737e4[_0x1e6bc1(0x215)]===0x1){let _0x355b79=_0x6737e4['values']()[_0x1e6bc1(0x1c4)]()[_0x1e6bc1(0x3ec)];_0x355b79 instanceof _0x3e5f8e&&_0x355b79[_0x1e6bc1(0x324)]&&(this[_0x1e6bc1(0x45a)]=!0x0);}})),this[_0x47227d(0x432)](_0x47f386['changing$'][_0x47227d(0x456)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this['disposeWithMe'](_0x3494b1['onPointerUp$'][_0x47227d(0x1a9)](()=>{const _0x11bb0f=_0x47227d;this[_0x11bb0f(0x45a)]&&(this['_isImagePointerDown']=!0x1,this[_0x11bb0f(0x1d9)]());})),this[_0x47227d(0x432)](_0x47f386['changeEnd$'][_0x47227d(0x456)](()=>{const _0x4ca1d2=_0x47227d;if(this['_unitId']&&this[_0x4ca1d2(0x1df)]&&this[_0x4ca1d2(0x192)]){let _0x2fa743=this[_0x4ca1d2(0x29c)](this[_0x4ca1d2(0x32f)],this[_0x4ca1d2(0x1df)],this[_0x4ca1d2(0x192)]);if(_0x2fa743){var _0x448286,_0x6ac844;let _0x39a271=this[_0x4ca1d2(0x1de)](this[_0x4ca1d2(0x32f)],this[_0x4ca1d2(0x1df)],this['_activeImageId']),_0x2eca14=(_0x39a271==null||(_0x448286=_0x39a271[_0x4ca1d2(0x21c)])==null?void 0x0:_0x448286[_0x4ca1d2(0x45d)])||0x0,_0x61169d=(_0x39a271==null||(_0x6ac844=_0x39a271[_0x4ca1d2(0x21c)])==null?void 0x0:_0x6ac844['height'])||0x0,_0x4527e1=this[_0x4ca1d2(0x260)](_0x2fa743[_0x4ca1d2(0x324)],_0x2eca14,_0x61169d,_0x2fa743[_0x4ca1d2(0x342)]);_0x4527e1&&(this[_0x4ca1d2(0x2dd)]=_0x4527e1[_0x4ca1d2(0x44f)](),this[_0x4ca1d2(0x43f)](),this[_0x4ca1d2(0x1d9)](!0x0));}}}));}));}[_0x291e41(0x300)](){const _0x444b08=_0x291e41;this['disposeWithMe'](this[_0x444b08(0x346)]['focus$']['subscribe'](_0x330af5=>{const _0x56a2d8=_0x444b08;if(_0x330af5['length']===0x1){let _0x4c3dec=_0x330af5[0x0];if(_0x4c3dec[_0x56a2d8(0x209)]===_0x40fd85['DRAWING_IMAGE']){let {unitId:_0x1ed051,subUnitId:_0x44cd40,drawingId:_0x5cac55}=_0x4c3dec,_0x1108ec=this[_0x56a2d8(0x29c)](_0x1ed051,_0x44cd40,_0x5cac55);if(_0x1108ec){var _0x105aa7,_0x476d9d;this[_0x56a2d8(0x192)]=_0x5cac55,this[_0x56a2d8(0x32f)]=_0x1ed051,this[_0x56a2d8(0x1df)]=_0x44cd40;let _0x553cbe=this['_getImageDrawingInfo'](_0x1ed051,_0x44cd40,_0x5cac55),_0x3065d7=(_0x553cbe==null||(_0x105aa7=_0x553cbe[_0x56a2d8(0x21c)])==null?void 0x0:_0x105aa7[_0x56a2d8(0x45d)])||0x0,_0x1c2dfa=(_0x553cbe==null||(_0x476d9d=_0x553cbe[_0x56a2d8(0x21c)])==null?void 0x0:_0x476d9d[_0x56a2d8(0x257)])||0x0,_0x1ec52b=this[_0x56a2d8(0x260)](_0x1108ec['prstGeom'],_0x3065d7,_0x1c2dfa,_0x1108ec[_0x56a2d8(0x342)]);_0x1ec52b&&(this[_0x56a2d8(0x2dd)]=_0x1ec52b[_0x56a2d8(0x44f)]()),this[_0x56a2d8(0x43f)](),this['_createControls'](!0x0);}else this[_0x56a2d8(0x45b)]();}else this[_0x56a2d8(0x45b)]();}else this['_resetState']();})),this[_0x444b08(0x432)](this['_drawingManagerService']['update$'][_0x444b08(0x456)](_0x15f2d5=>{const _0x2023ed=_0x444b08;if(_0x15f2d5[_0x2023ed(0x3c3)]===0x1){let _0x5de0ca=_0x15f2d5[0x0],_0x485daf=this[_0x2023ed(0x346)][_0x2023ed(0x312)](_0x5de0ca);(_0x485daf==null?void 0x0:_0x485daf[_0x2023ed(0x209)])===_0x40fd85[_0x2023ed(0x27d)]&&this['_activeImageId']===_0x5de0ca[_0x2023ed(0x1dd)]&&(this[_0x2023ed(0x43f)](),this[_0x2023ed(0x1d9)](!0x0));}})),this['disposeWithMe'](this[_0x444b08(0x346)][_0x444b08(0x31c)][_0x444b08(0x456)](_0x1ea100=>{const _0x3f0321=_0x444b08;for(let _0x366e97 of _0x1ea100)this[_0x3f0321(0x192)]===_0x366e97[_0x3f0321(0x1dd)]&&this['_resetState']();}));}['_resetState'](){const _0x66523b=_0x291e41;this[_0x66523b(0x192)]=null,this['_unitId']=null,this[_0x66523b(0x1df)]=null,this[_0x66523b(0x2dd)]=void 0x0,this['_clearControls']();}};Qi=X([Y(0x1,_0x28cffc),Y(0x2,_0x5b79b4(_0x1158d5)),Y(0x3,_0x44b74c),Y(0x4,_0x5b79b4(Q))],Qi);function $i(_0x22e76f){return _0x22e76f['trim']()||void 0x0;}function ea(_0x3910e7,_0x3ce9ab,_0x8e2520){const _0x34046f=_0x291e41;var _0x40af29;return((_0x40af29=_0x3910e7[_0x34046f(0x358)])==null?void 0x0:_0x40af29[_0x34046f(0x243)]())||_0x8e2520['t'](_0x34046f(0x3c9)+_0x2dbe92(_0x3910e7[_0x34046f(0x209)]))+'\x20'+(_0x3ce9ab+0x1);}function ta({PanelComponent:_0x49f501=_0x43b8f7}){const _0x50c8b1=_0x291e41;var _0x4d6327;let _0x3ab862=_0x42cc68(_0x13738a),_0x5d0e22={'title':_0x3ab862['t']('drawing-ui.objectListPanel.title'),'empty':_0x3ab862['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x3ab862['t'](_0x50c8b1(0x1ab)),'hideAll':_0x3ab862['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x3ab862['t'](_0x50c8b1(0x1ed)),'unlockAll':_0x3ab862['t'](_0x50c8b1(0x29d)),'moveForward':_0x3ab862['t'](_0x50c8b1(0x3fe)),'moveBackward':_0x3ab862['t'](_0x50c8b1(0x1a3)),'close':_0x3ab862['t'](_0x50c8b1(0x433)),'show':_0x3ab862['t'](_0x50c8b1(0x1f1)),'hide':_0x3ab862['t']('drawing-ui.objectListPanel.hide'),'lock':_0x3ab862['t'](_0x50c8b1(0x1bf)),'unlock':_0x3ab862['t'](_0x50c8b1(0x325)),'lockHint':_0x3ab862['t'](_0x50c8b1(0x248)),'unlockHint':_0x3ab862['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x3ab862['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x3ab862['t'](_0x50c8b1(0x331)),'description':_0x3ab862['t'](_0x50c8b1(0x22c)),'descriptionPlaceholder':_0x3ab862['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x3ab862['t'](_0x50c8b1(0x3bd)),'noSelection':_0x3ab862['t'](_0x50c8b1(0x3e3)),'locate':_0x3ab862['t'](_0x50c8b1(0x2d2)),'expand':_0x3ab862['t'](_0x50c8b1(0x21d)),'collapse':_0x3ab862['t'](_0x50c8b1(0x407)),'dragToReorder':_0x3ab862['t'](_0x50c8b1(0x2a4)),'search':_0x3ab862['t'](_0x50c8b1(0x339)),'filterAll':_0x3ab862['t'](_0x50c8b1(0x19a)),'filterHidden':_0x3ab862['t'](_0x50c8b1(0x3d4)),'filterLocked':_0x3ab862['t'](_0x50c8b1(0x2c7)),'sectionCanvas':_0x3ab862['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x3ab862['t'](_0x50c8b1(0x213))},_0x365285=_0x42cc68(_0x54c16f),_0x964fb2=_0x42cc68(_0x44b74c),_0x28bc80=_0x42cc68(_0x17b29e),_0xbf1791=_0x42cc68(_0x28cffc),_0x4770df=_0x42cc68(_0x1158d5),[,_0x7543c9]=_0x2c6db3(_0x279070=>_0x279070+0x1,0x0),_0x59ccdc=_0x964fb2[_0x50c8b1(0x453)](_0x3c82b9[_0x50c8b1(0x35c)]),_0x2ff65f=(_0x59ccdc==null?void 0x0:_0x59ccdc[_0x50c8b1(0x440)]())??'',_0x245068=(_0x59ccdc==null||(_0x4d6327=_0x59ccdc[_0x50c8b1(0x2fe)]())==null?void 0x0:_0x4d6327[_0x50c8b1(0x431)]())??'',_0x2c2af4=_0x279878(()=>_0xbf1791[_0x50c8b1(0x1d8)],_0xbf1791[_0x50c8b1(0x1f4)](),!0x1,[_0xbf1791]);_0x3b96f0(()=>{const _0x30ac56=_0x50c8b1;let _0x76e315=_0x365285[_0x30ac56(0x43c)](()=>_0x7543c9());return()=>_0x76e315['dispose']();},[_0x365285]);let _0x337d55=_0x2ff65f&&_0x245068?_0x28bc80[_0x50c8b1(0x40e)](_0x2ff65f,_0x245068):{},_0x5a8c7a=(_0x2ff65f&&_0x245068?_0x28bc80[_0x50c8b1(0x23f)](_0x2ff65f,_0x245068):[])['map'](_0x5754ff=>_0x337d55[_0x5754ff])['filter'](_0x1a146b=>!!_0x1a146b)['reverse'](),_0x132dfc=_0x5a8c7a[_0x50c8b1(0x362)]((_0xb16701,_0x368925)=>(_0xb16701[_0x4dc94f(_0x368925[_0x50c8b1(0x209)])]+=0x1,_0xb16701),{'canvas':0x0,'floating':0x0}),_0x3678b2={'canvas':0x0,'floating':0x0},_0x2442ba=_0x5a8c7a[_0x50c8b1(0x3cd)]((_0x2527e6,_0x167971)=>{const _0x80b812=_0x50c8b1;let _0x58e79b=_0x4dc94f(_0x2527e6[_0x80b812(0x209)]),_0x512d36=_0x58e79b===_0x39a12f,_0x3d958f=_0x3678b2[_0x58e79b]++;return{'id':_0x2527e6[_0x80b812(0x1dd)],'name':ea(_0x2527e6,_0x167971,_0x3ab862),'description':_0x2527e6[_0x80b812(0x235)],'visible':_0x2527e6[_0x80b812(0x314)]!==!0x0,'selectable':_0x2527e6[_0x80b812(0x2c5)]!==!0x1,'sectionId':_0x58e79b,'sectionTitle':_0x512d36?_0x5d0e22[_0x80b812(0x265)]:_0x5d0e22[_0x80b812(0x2a8)],'capabilities':_0x512d36?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x512d36&&_0x3d958f>0x0,'canMoveBackward':!_0x512d36&&_0x3d958f<_0x132dfc[_0x80b812(0x21a)]-0x1,'canReorder':!_0x512d36};}),_0x54f5fb=_0x283095(()=>(_0x2c2af4??[])['filter'](_0x451f2e=>_0x451f2e[_0x50c8b1(0x351)]===_0x2ff65f&&_0x451f2e[_0x50c8b1(0x21b)]===_0x245068)['map'](_0x2937a1=>_0x2937a1[_0x50c8b1(0x1dd)]),[_0x2c2af4,_0x245068,_0x2ff65f]),_0x4df52f=_0x54f5fb[_0x54f5fb[_0x50c8b1(0x3c3)]-0x1]??null,_0x294261=_0x1a179d=>_0x28bc80[_0x50c8b1(0x312)]({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x1a179d})??null,_0x5da474=async _0x27122a=>{const _0x11d1a7=_0x50c8b1;_0x2ff65f&&_0x27122a[_0x11d1a7(0x3c3)]&&await _0x365285['executeCommand'](_0xb1758f['id'],{'unitId':_0x2ff65f,'drawings':_0x27122a});},_0x2dbc7a=async(_0x75e083,_0x4d1b45)=>{_0x294261(_0x75e083)&&await _0x5da474([{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x75e083,..._0x4d1b45}]);},_0x25a573=(_0x4b69fb,_0x1792ec)=>{const _0x3a5d3f=_0x50c8b1;if(!_0x2ff65f||!_0x245068)return;let _0xf9c626=_0x1792ec?_0x54f5fb[_0x3a5d3f(0x253)](_0x4b69fb)?_0x54f5fb[_0x3a5d3f(0x3c0)](_0x3d59ec=>_0x3d59ec!==_0x4b69fb):[..._0x54f5fb,_0x4b69fb]:[_0x4b69fb];_0x365285[_0x3a5d3f(0x1b7)](_0x5e3e35['id'],_0xf9c626[_0x3a5d3f(0x3cd)](_0x3a7778=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x3a7778})));let _0xcd3ef3=_0xf9c626[_0xf9c626['length']-0x1];_0xcd3ef3?_0x390dd1(_0x4770df,{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0xcd3ef3}):_0x333af8(_0x4770df,_0x2ff65f);},_0x33ac63=async(_0x2e2c7b,_0x2b5e55)=>{const _0x12144b=_0x50c8b1;await _0x5da474(_0x2e2c7b[_0x12144b(0x3cd)](_0x4e3c32=>_0x294261(_0x4e3c32))[_0x12144b(0x3c0)](_0x80135=>!!_0x80135)['filter'](_0x322687=>_0x322687['hidden']!==!0x0!==_0x2b5e55)[_0x12144b(0x3cd)](_0x1ba45c=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x1ba45c[_0x12144b(0x1dd)],'hidden':!_0x2b5e55})));},_0x5d6fbb=async(_0x4d4ae1,_0x5d7264)=>{const _0x347b8c=_0x50c8b1;await _0x5da474(_0x4d4ae1[_0x347b8c(0x3cd)](_0x2f6c1d=>_0x294261(_0x2f6c1d))[_0x347b8c(0x3c0)](_0x128f2a=>!!_0x128f2a)['filter'](_0x1f7063=>_0x1f7063[_0x347b8c(0x2c5)]!==!0x1!==_0x5d7264)[_0x347b8c(0x3cd)](_0x369d0d=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x369d0d[_0x347b8c(0x1dd)],'selectable':_0x5d7264})));},_0x5303bd=_0x218e0a=>{const _0x4c5d82=_0x50c8b1;let _0xf95eb6=_0x294261(_0x218e0a);if(_0xf95eb6)return _0x5d6fbb([_0x218e0a],_0xf95eb6[_0x4c5d82(0x2c5)]===!0x1);},_0x4b515d=async(_0x3e8ceb,_0x5c4427)=>{var _0x40933d;let _0x4a3037=$i(_0x5c4427);(((_0x40933d=_0x294261(_0x3e8ceb))==null?void 0x0:_0x40933d['name'])??void 0x0)!==_0x4a3037&&await _0x2dbc7a(_0x3e8ceb,{'name':_0x4a3037});},_0x35bf66=async(_0x1f38d5,_0x113697)=>{const _0x59f6a3=_0x50c8b1;var _0x5d9a59;let _0x5d52f3=$i(_0x113697);(((_0x5d9a59=_0x294261(_0x1f38d5))==null?void 0x0:_0x5d9a59[_0x59f6a3(0x235)])??void 0x0)!==_0x5d52f3&&await _0x2dbc7a(_0x1f38d5,{'description':_0x5d52f3});},_0x298caf=async(_0x533d52,_0x38dd08)=>{const _0x2f29df=_0x50c8b1;_0x2ff65f&&_0x245068&&await _0x365285[_0x2f29df(0x2e1)](_0x15f547['id'],{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingIds':[_0x533d52],'arrangeType':_0x38dd08});};return!_0x2ff65f||!_0x245068?_0x183ba7('div',{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x5d0e22['title']}):_0x183ba7(_0x49f501,{'labels':_0x5d0e22,'items':_0x2442ba,'selectedIds':_0x54f5fb,'focusedId':_0x4df52f,'showHeader':!0x1,'onSelect':_0x25a573,'onSetVisible':_0x33ac63,'onSetSelectable':_0x5d6fbb,'onCommitName':_0x4b515d,'onCommitDescription':_0x35bf66,'onMoveForward':async _0x5863f2=>_0x298caf(_0x5863f2,_0x10dd10[_0x50c8b1(0x221)]),'onMoveBackward':async _0x4e0bd6=>_0x298caf(_0x4e0bd6,_0x10dd10['backward']),'onToggleSelectable':_0x5303bd});}function na(){return _0x183ba7(ta,{'PanelComponent':_0x570c7a});}let ra=class extends _0x557a26{constructor(_0x32524b,_0x5b4a60){const _0x420508=_0x291e41;super(),this['disposeWithMe'](_0x32524b['register'](Br,na)),this[_0x420508(0x432)](_0x5b4a60[_0x420508(0x3d0)]({'BottomIcon':_0x19c68f,'FlipHorizontalIcon':_0x30529a,'FlipVerticalIcon':_0xd6996,'MoveDownIcon':_0x14ee72,'MoveUpIcon':_0xb1af47,'ObjectLayersIcon':_0x10ffc5,'ShapeFormatSettingIcon':_0x21bdf2,'TopmostIcon':_0x384eef})),this['disposeWithMe'](_0x32524b[_0x420508(0x3d0)](Xr,ri)),this[_0x420508(0x432)](_0x32524b['register'](Zr,ei)),_0x32524b[_0x420508(0x2e9)](_0x1b086b)||this[_0x420508(0x432)](_0x32524b['register'](_0x1b086b,ti));}};ra=X([Y(0x0,_0x5b79b4(_0x5a241f)),Y(0x1,_0x5b79b4(_0x3844d8))],ra);let $=class extends _0x557a26{constructor(_0x7646f5){const _0x53a535=_0x291e41;super(),this[_0x53a535(0x361)]=_0x7646f5,q(this,'_editingParams$',new _0x21d0c1(null)),q(this,'editingParams$',this[_0x53a535(0x1e0)][_0x53a535(0x3dc)]()),q(this,_0x53a535(0x20f),new _0x21d0c1(!0x1)),q(this,_0x53a535(0x1e1),this[_0x53a535(0x20f)]['asObservable']()),q(this,'_completionFrame',void 0x0),this['disposeWithMe'](this['_permissionService'][_0x53a535(0x359)][_0x53a535(0x456)](()=>{const _0x42807e=_0x53a535;let _0x10969d=this[_0x42807e(0x3e8)]();_0x10969d!=null&&_0x10969d[_0x42807e(0x42d)]&&!this[_0x42807e(0x302)](_0x10969d)&&this[_0x42807e(0x3fb)](null);}));}[_0x291e41(0x20d)](){const _0x33d1fe=_0x291e41;this['_clearCompletionFrame'](),this[_0x33d1fe(0x1e0)][_0x33d1fe(0x1c4)](null),this[_0x33d1fe(0x1e0)][_0x33d1fe(0x242)](),this[_0x33d1fe(0x20f)][_0x33d1fe(0x1c4)](!0x1),this['_onSavingEditorData$']['complete'](),super[_0x33d1fe(0x20d)]();}[_0x291e41(0x3fb)](_0x3ba1a6){const _0x1e9905=_0x291e41;(_0x3ba1a6==null||!_0x3ba1a6['visible']||this[_0x1e9905(0x302)](_0x3ba1a6))&&(this[_0x1e9905(0x35d)](),this[_0x1e9905(0x1e0)]['next'](_0x3ba1a6),(_0x3ba1a6==null||_0x3ba1a6[_0x1e9905(0x42d)]&&this[_0x1e9905(0x20f)][_0x1e9905(0x2d0)]())&&this['_onSavingEditorData$']['next'](!0x1));}[_0x291e41(0x3d2)](_0xe49d80){const _0x8bfe89=_0x291e41;this[_0x8bfe89(0x20f)][_0x8bfe89(0x1c4)](_0xe49d80);}['getEditing'](){const _0x2f3405=_0x291e41;return this['_editingParams$'][_0x2f3405(0x2d0)]();}['_canEdit'](_0x10ffc3){const _0x4ce072=_0x291e41;let _0x227563=this[_0x4ce072(0x361)][_0x4ce072(0x3da)](new _0x20b096(_0x10ffc3[_0x4ce072(0x351)])['id']),_0x405a31=this[_0x4ce072(0x361)][_0x4ce072(0x3da)](new _0x1ea295(_0x10ffc3[_0x4ce072(0x351)],_0x10ffc3['subUnitId'])['id']);return((_0x227563==null?void 0x0:_0x227563['value'])??!0x0)&&((_0x405a31==null?void 0x0:_0x405a31['value'])??!0x0);}['completeEditing'](_0x410e9e){const _0x31dae3=_0x291e41;let _0x3d272a=this[_0x31dae3(0x3e8)]();_0x3d272a&&this['_completionFrame']===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x31dae3(0x2cf)]=requestAnimationFrame(()=>{const _0x379c15=_0x31dae3;this['_completionFrame']=void 0x0,this[_0x379c15(0x3e8)]()===_0x3d272a&&this[_0x379c15(0x3fb)](null);}));}[_0x291e41(0x35d)](){const _0x29902f=_0x291e41;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x29902f(0x2cf)]),this[_0x29902f(0x2cf)]=void 0x0);}[_0x291e41(0x210)](){const _0x4d54b3=_0x291e41;this['getEditing']()&&this[_0x4d54b3(0x3fb)](null);}};$=X([Y(0x0,_0x1d37e3)],$);let ia=class extends _0x557a26{constructor(_0x496532,_0x1f75a8,_0x44f61a,_0x388e2c,_0x12d471,_0x18ecfa){const _0x39059f=_0x291e41;super(),this[_0x39059f(0x343)]=_0x496532,this[_0x39059f(0x369)]=_0x1f75a8,this[_0x39059f(0x33d)]=_0x44f61a,this['_drawingManagerService']=_0x388e2c,this['_contextService']=_0x12d471,this['_sheetsShapeService']=_0x18ecfa,q(this,'_lastEditingShapeKey',null),this[_0x39059f(0x2b6)](),this[_0x39059f(0x334)](),this[_0x39059f(0x25a)]();}[_0x291e41(0x2b6)](){const _0x4652f3=_0x291e41;let {scene:_0x46deb0}=this[_0x4652f3(0x343)];this[_0x4652f3(0x432)](_0x46deb0[_0x4652f3(0x2de)][_0x4652f3(0x1a9)](_0xf90bea=>{const _0x5374db=_0x4652f3;let {offsetX:_0x3c868f,offsetY:_0x21f2a7}=_0xf90bea,_0x40a746=_0x46deb0[_0x5374db(0x1fb)](_0x45d11b['FromArray']([_0x3c868f,_0x21f2a7]));if(_0x40a746 instanceof J){let _0xa1f10a=this[_0x5374db(0x408)][_0x5374db(0x32d)](_0x40a746['unitId'],_0x40a746[_0x5374db(0x21b)],_0x40a746['shapeId']);if(_0x5184c7(this['_sheetsShapeService'][_0x5374db(0x2ba)](_0x40a746['unitId'],_0x40a746['subUnitId'],_0x40a746['shapeId']))||_0xa1f10a!=null&&_0xa1f10a[_0x5374db(0x2d9)]()['formulaBinding'])return;this['_shapeTextEditingService'][_0x5374db(0x3fb)]({'visible':!0x0,'unitId':_0x40a746[_0x5374db(0x351)],'subUnitId':_0x40a746[_0x5374db(0x21b)],'shapeId':_0x40a746[_0x5374db(0x416)],'shapeKey':_0x40a746[_0x5374db(0x268)]});}}));}['_initSelection'](){const _0x70405d=_0x291e41;this['disposeWithMe'](this['_drawingManagerService'][_0x70405d(0x1d8)][_0x70405d(0x456)](_0x48c62d=>{const _0x28bff9=_0x70405d;if(_0x48c62d[_0x28bff9(0x3c3)]===0x1){let _0x41356e=_0x48c62d[0x0],_0x5e3009=this[_0x28bff9(0x346)]['getDrawingByParam'](_0x41356e);if((_0x5e3009==null?void 0x0:_0x5e3009[_0x28bff9(0x209)])===_0x40fd85[_0x28bff9(0x43a)]){var _0x1ad1e8;let _0x42661f=this['_shapeTextEditingService'][_0x28bff9(0x3e8)]();if((_0x42661f==null?void 0x0:_0x42661f[_0x28bff9(0x416)])===_0x41356e[_0x28bff9(0x1dd)]&&_0x42661f[_0x28bff9(0x42d)])return;let _0x22d39b=_0x5184c7(this[_0x28bff9(0x408)][_0x28bff9(0x2ba)](_0x41356e[_0x28bff9(0x351)],_0x41356e['subUnitId'],_0x41356e[_0x28bff9(0x1dd)])),_0x45412b=!!((_0x1ad1e8=this[_0x28bff9(0x408)][_0x28bff9(0x32d)](_0x41356e[_0x28bff9(0x351)],_0x41356e[_0x28bff9(0x21b)],_0x41356e[_0x28bff9(0x1dd)]))!=null&&_0x1ad1e8['getShapeData']()[_0x28bff9(0x295)]);(_0x22d39b||_0x45412b)&&this[_0x28bff9(0x33d)][_0x28bff9(0x3fb)](null);}else this['_shapeTextEditingService'][_0x28bff9(0x1ff)]();}else this[_0x28bff9(0x33d)]['completeEditing']();})),this[_0x70405d(0x432)](this[_0x70405d(0x346)][_0x70405d(0x31c)]['subscribe'](_0x57ff62=>{const _0xf806fe=_0x70405d;let _0x3465e9=this[_0xf806fe(0x33d)][_0xf806fe(0x3e8)]();_0x3465e9&&_0x57ff62[_0xf806fe(0x31d)](_0x5c9722=>_0x5c9722[_0xf806fe(0x1dd)]===_0x3465e9[_0xf806fe(0x416)])&&this[_0xf806fe(0x33d)][_0xf806fe(0x3fb)](null);}));}['_initEditingParams'](){const _0x287cd4=_0x291e41;this['disposeWithMe'](this['_shapeTextEditingService'][_0x287cd4(0x3d8)][_0x287cd4(0x456)](_0x59d743=>{const _0x87c09c=_0x287cd4;let {scene:_0x370e97}=this[_0x87c09c(0x343)];if(this['_lastEditingShapeKey']){let _0x11c753=_0x370e97[_0x87c09c(0x292)](this[_0x87c09c(0x29f)]);_0x11c753&&_0x11c753[_0x87c09c(0x3fb)](!0x1);}if(_0x59d743){let _0x25be40=!!_0x59d743[_0x87c09c(0x42d)],_0x5dab78=_0x370e97[_0x87c09c(0x292)](_0x59d743[_0x87c09c(0x2e3)]);_0x5dab78&&(_0x5dab78['setEditing'](_0x25be40),this[_0x87c09c(0x29f)]=_0x59d743['shapeKey']),this[_0x87c09c(0x2d4)][_0x87c09c(0x409)](_0x2a4c27,_0x25be40);}else this[_0x87c09c(0x29f)]=null,this[_0x87c09c(0x2d4)][_0x87c09c(0x409)](_0x2a4c27,!0x1);}));}};ia=X([Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x5b79b4($)),Y(0x3,_0x28cffc),Y(0x4,_0x4b3877),Y(0x5,_0x5b79b4(_0x1e1f0c))],ia);var aa=class extends ia{[_0x291e41(0x2b6)](){const _0x2c9b9b=_0x291e41;let {scene:_0x2b7edf}=this[_0x2c9b9b(0x343)],_0x45dca4=this[_0x2c9b9b(0x369)]['get'](_0xdd7ac8);this[_0x2c9b9b(0x432)](_0x2b7edf[_0x2c9b9b(0x2de)]['subscribeEvent'](_0x566b19=>{const _0x2f1e6c=_0x2c9b9b;let {offsetX:_0x147474,offsetY:_0x411656}=_0x566b19,_0x397114=_0x2b7edf['pick'](_0x45d11b[_0x2f1e6c(0x39c)]([_0x147474,_0x411656]));if(!(_0x397114 instanceof J))return;let _0x51aea3=this[_0x2f1e6c(0x408)][_0x2f1e6c(0x32d)](_0x397114[_0x2f1e6c(0x351)],_0x397114[_0x2f1e6c(0x21b)],_0x397114[_0x2f1e6c(0x416)]);_0x5184c7(this[_0x2f1e6c(0x408)][_0x2f1e6c(0x2ba)](_0x397114['unitId'],_0x397114[_0x2f1e6c(0x21b)],_0x397114['shapeId']))||_0x51aea3!=null&&_0x51aea3['getShapeData']()[_0x2f1e6c(0x295)]||_0x45dca4[_0x2f1e6c(0x269)](_0x2f1e6c(0x241),{'hostType':_0x3c82b9['UNIVER_SHEET'],'unitId':_0x397114['unitId'],'subUnitId':_0x397114[_0x2f1e6c(0x21b)],'shapeId':_0x397114[_0x2f1e6c(0x416)]});}));}};const oa={...Gi};let sa=class extends _0x557a26{constructor(_0xcd1af6,_0xe32ca0,_0x2c4057,_0x3262c6,_0x225628,_0x311726,_0xbf7453,_0x495f56){const _0x3591e2=_0x291e41;super(),this[_0x3591e2(0x1f3)]=_0xcd1af6,this[_0x3591e2(0x408)]=_0xe32ca0,this[_0x3591e2(0x199)]=_0x2c4057,this['_drawingManagerService']=_0x3262c6,this[_0x3591e2(0x19e)]=_0x225628,this['_contextService']=_0x311726,this[_0x3591e2(0x449)]=_0xbf7453,this[_0x3591e2(0x33d)]=_0x495f56,q(this,_0x3591e2(0x2da),null),this[_0x3591e2(0x1f3)]['mergeMenu'](oa),this[_0x3591e2(0x27c)](),this[_0x3591e2(0x432)](this[_0x3591e2(0x33d)][_0x3591e2(0x3d8)][_0x3591e2(0x456)](_0x546ac8=>{_0x546ac8&&this['_clearFocusedShape']();}));}[_0x291e41(0x366)](){const _0x2434c2=_0x291e41;this[_0x2434c2(0x2da)]||=this[_0x2434c2(0x432)](_0x5695f5(this['_renderManagerService'],_0x3c82b9['UNIVER_SHEET'],_0x53758f=>this['_popupMenuListener'](_0x53758f)));}[_0x291e41(0x27c)](){const _0x29491d=_0x291e41;this[_0x29491d(0x19e)][_0x29491d(0x3f2)](_0x40fd85[_0x29491d(0x43a)],(_0x63052c,_0xa6a1b6,_0x3d4a10,_0x551336)=>{const _0x177377=_0x29491d;let _0x64cc52=this[_0x177377(0x408)][_0x177377(0x1a4)](_0x63052c,_0xa6a1b6,_0x3d4a10),_0x1d61b0=this['_sheetsShapeService'][_0x177377(0x1a0)](_0x63052c,_0xa6a1b6,_0x3d4a10),_0x2ec8a8=_0x64cc52!==void 0x0&&!_0x5184c7(_0x64cc52)&&!(_0x1d61b0!=null&&_0x1d61b0['formulaBinding']);return[{'label':_0x177377(0x29a),'index':0x0,'commandId':Yi['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'mode':_0x177377(0x216)},'disable':!0x1},..._0x2ec8a8?[{'label':_0x177377(0x250),'index':0x1,'commandId':Yi['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'mode':_0x177377(0x241)},'disable':!0x1}]:[],{'label':_0x177377(0x1b8),'index':0x2,'commandId':_0x1c9438['id'],'commandParams':{'unitId':_0x63052c,'drawings':[{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'drawingType':_0x551336}]},'disable':!0x1},{'label':_0x177377(0x41d),'index':0x3,'commandId':_0x47976c['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'shapeId':_0x3d4a10,'flipH':!0x0},'disable':!0x1},{'label':_0x177377(0x24e),'index':0x4,'commandId':_0x47976c['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'shapeId':_0x3d4a10,'flipV':!0x0},'disable':!0x1}];},_0x29491d(0x1f6));}['_popupMenuListener'](_0x3db6f6){const _0x344b92=_0x291e41;let _0x103b89=new _0x39a460(),_0x4ab3dd=null,_0x2a0365=()=>{const _0x255381=_0x7c09;if(!_0x4ab3dd)return;let _0xff35f6=this[_0x255381(0x346)]['getFocusDrawings'](),_0xfc670=_0xff35f6[_0x255381(0x3c3)]===0x0||_0xff35f6[_0x255381(0x3c3)]===0x1&&_0xff35f6[_0x255381(0x31d)](_0x38175a=>_0x38175a[_0x255381(0x351)]===(_0x4ab3dd==null?void 0x0:_0x4ab3dd[_0x255381(0x351)])&&_0x38175a['subUnitId']===(_0x4ab3dd==null?void 0x0:_0x4ab3dd['subUnitId'])&&_0x38175a[_0x255381(0x1dd)]===(_0x4ab3dd==null?void 0x0:_0x4ab3dd[_0x255381(0x1dd)]));_0x4ab3dd=null,_0xfc670&&(this[_0x255381(0x2d4)][_0x255381(0x409)](_0x317872,!0x1),this[_0x255381(0x346)][_0x255381(0x2bd)](null));};return _0x103b89[_0x344b92(0x322)](_0x3db6f6['createControl$'][_0x344b92(0x456)](()=>{const _0x161546=_0x344b92;let _0x210cc2=_0x3db6f6[_0x161546(0x450)]();if(_0x210cc2['size']>0x1){_0x2a0365();return;}let _0x5f21ad=_0x210cc2[_0x161546(0x3f3)]()['next']()[_0x161546(0x3ec)];if(!_0x5f21ad){_0x2a0365();return;}let _0x537e20=this['_drawingManagerService']['getDrawingOKey'](_0x5f21ad[_0x161546(0x268)]);if(!_0x537e20||_0x537e20[_0x161546(0x209)]!==_0x40fd85[_0x161546(0x43a)]){_0x2a0365();return;}let {unitId:_0x4e3e38,subUnitId:_0x2aa032,drawingId:_0x120dc5}=_0x537e20;_0x4ab3dd={'unitId':_0x4e3e38,'subUnitId':_0x2aa032,'drawingId':_0x120dc5},this['_contextService'][_0x161546(0x409)](_0x317872,!0x0),this['_drawingManagerService'][_0x161546(0x1f4)]()[_0x161546(0x1e4)](_0x187d36=>_0x187d36[_0x161546(0x351)]===_0x4e3e38&&_0x187d36[_0x161546(0x21b)]===_0x2aa032&&_0x187d36['drawingId']===_0x120dc5)||this[_0x161546(0x346)][_0x161546(0x2bd)]([{'unitId':_0x4e3e38,'subUnitId':_0x2aa032,'drawingId':_0x120dc5}]);})),_0x103b89[_0x344b92(0x322)](_0x3db6f6['clearControl$'][_0x344b92(0x456)](()=>{_0x2a0365();})),_0x53ca46(()=>{const _0x4dd816=_0x344b92;_0x103b89[_0x4dd816(0x20d)](),_0x2a0365();});}['_clearFocusedShape'](){const _0x3d4f06=_0x291e41;this[_0x3d4f06(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x3d4f06(0x346)][_0x3d4f06(0x2bd)](null);}};sa=X([Y(0x0,_0x24215b),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x54c16f),Y(0x3,_0x28cffc),Y(0x4,_0x5b79b4(_0x57fdbe)),Y(0x5,_0x4b3877),Y(0x6,_0x1158d5),Y(0x7,_0x5b79b4($))],sa);function ca(_0x4ee991,_0x34b880,_0x19372a,_0x412ed6){const _0x4fe63b=_0x291e41;let _0x37a755=_0x3e806a(_0x4ee991,_0x34b880,_0x19372a),_0x5077ed=[];for(let _0x3031a8 of _0x34b880){let _0x565fff=_0x37a755[_0x4fe63b(0x1a7)][_0x4fe63b(0x42c)](_0x3031a8[_0x4fe63b(0x1dd)]),_0x461357=_0x412ed6(_0x3031a8);_0x565fff&&_0x461357&&_0x5077ed[_0x4fe63b(0x1b9)]({'targetShapeId':_0x565fff,'source':_0x461357});}return _0x5077ed;}let la=class extends _0x557a26{constructor(_0x1fcb98,_0x250895,_0x5567c7,_0x5646e4){const _0x57edb7=_0x291e41;super(),this[_0x57edb7(0x394)]=_0x1fcb98,this[_0x57edb7(0x2c9)]=_0x250895,this[_0x57edb7(0x3ef)]=_0x5567c7,this[_0x57edb7(0x408)]=_0x5646e4,this[_0x57edb7(0x447)]();}[_0x291e41(0x447)](){const _0x47a7c5=_0x291e41;this[_0x47a7c5(0x432)](this[_0x47a7c5(0x2c9)][_0x47a7c5(0x19c)]({'getMutations':_0x11d40e=>{const _0x2aa637=_0x47a7c5;if(_0x11d40e['id']===_0x20821a['id']){let _0x1b7b79=_0x378f79(this[_0x2aa637(0x394)],_0x11d40e[_0x2aa637(0x2b1)]);if(!_0x1b7b79)return{'redos':[],'undos':[]};let {unitId:_0x702632,subUnitId:_0x5490bc}=_0x1b7b79,_0x5b0f6f=this[_0x2aa637(0x3ef)]['getDrawingData'](_0x702632,_0x5490bc),_0x369c14=Object[_0x2aa637(0x3f3)](_0x5b0f6f)[_0x2aa637(0x3c0)](_0x117446=>_0x117446[_0x2aa637(0x209)]===_0x40fd85['DRAWING_SHAPE']);if(_0x369c14[_0x2aa637(0x3c3)]===0x0)return{'redos':[],'undos':[]};let _0x4fea84=[],_0x12bf2d=[];for(let _0x181f04=0x0;_0x181f04<_0x369c14[_0x2aa637(0x3c3)];_0x181f04++){let _0x1582e0=_0x369c14[_0x181f04],_0x4c44e0=this['_sheetsShapeService'][_0x2aa637(0x32d)](_0x1582e0['unitId'],_0x1582e0[_0x2aa637(0x21b)],_0x1582e0[_0x2aa637(0x1dd)]);_0x4c44e0&&(_0x4fea84[_0x2aa637(0x1b9)]({'id':_0x5aa689['id'],'params':{'unitId':_0x702632,'subUnitId':_0x5490bc,'shapeId':_0x1582e0['drawingId']}}),_0x12bf2d[_0x2aa637(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x702632,'subUnitId':_0x5490bc,'shapeId':_0x1582e0[_0x2aa637(0x1dd)],'shapeType':_0x4c44e0['getShapeType'](),'shapeData':JSON[_0x2aa637(0x38d)](JSON[_0x2aa637(0x454)](_0x4c44e0[_0x2aa637(0x2d9)]()))}}));}return{'redos':_0x4fea84,'undos':_0x12bf2d};}if(_0x11d40e['id']===_0x4f6b3a['id']){let {unitId:_0x46515a,subUnitId:_0x175906,targetSubUnitId:_0x195812,copyContext:_0x24b92d}=_0x11d40e[_0x2aa637(0x2b1)];if(!_0x46515a||!_0x175906||!_0x195812)return{'redos':[],'undos':[]};let _0x2c5d51=this[_0x2aa637(0x3ef)][_0x2aa637(0x40e)](_0x46515a,_0x175906),_0x4ef7e4=Object[_0x2aa637(0x3f3)](_0x2c5d51)['filter'](_0x3a9a36=>_0x3a9a36[_0x2aa637(0x209)]===_0x40fd85[_0x2aa637(0x43a)]);if(_0x4ef7e4[_0x2aa637(0x3c3)]===0x0)return{'redos':[],'undos':[]};let _0x4e417f=ca(_0x24b92d,_0x4ef7e4,{'unitId':_0x46515a,'sourceSubUnitId':_0x175906,'targetSubUnitId':_0x195812},_0x15401d=>{const _0x47bcf6=_0x2aa637;let _0xf25d2b=this[_0x47bcf6(0x408)][_0x47bcf6(0x32d)](_0x15401d[_0x47bcf6(0x351)],_0x15401d[_0x47bcf6(0x21b)],_0x15401d[_0x47bcf6(0x1dd)]);if(_0xf25d2b)return{'shapeType':_0xf25d2b[_0x47bcf6(0x2ba)](),'shapeData':JSON[_0x47bcf6(0x38d)](JSON[_0x47bcf6(0x454)](_0xf25d2b['getShapeData']()))};}),_0x5db167=[],_0x8faf80=[];for(let {targetShapeId:_0x3d3b96,source:_0xdeef6d}of _0x4e417f)_0x5db167[_0x2aa637(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x46515a,'subUnitId':_0x195812,'shapeId':_0x3d3b96,'shapeType':_0xdeef6d[_0x2aa637(0x3e1)],'shapeData':_0xdeef6d[_0x2aa637(0x3ad)]}}),_0x8faf80['push']({'id':_0x5aa689['id'],'params':{'unitId':_0x46515a,'subUnitId':_0x195812,'shapeId':_0x3d3b96}});return{'redos':_0x5db167,'undos':_0x8faf80};}return{'redos':[],'undos':[]};}}));}};la=X([Y(0x0,_0x5b79b4(_0x44b74c)),Y(0x1,_0x5b79b4(_0x20504f)),Y(0x2,_0x5b79b4(_0x17b29e)),Y(0x3,_0x5b79b4(_0x1e1f0c))],la);let ua=class extends _0x557a26{constructor(_0x5b9173,_0xf625b1,_0x4c409a,_0x1368ce,_0x551e9f,_0x5940ea){const _0x5a320f=_0x291e41;super(),this[_0x5a320f(0x199)]=_0x5b9173,this['_renderManagerService']=_0xf625b1,this[_0x5a320f(0x346)]=_0x4c409a,this[_0x5a320f(0x304)]=_0x1368ce,this[_0x5a320f(0x2ff)]=_0x551e9f,this[_0x5a320f(0x23b)]=_0x5940ea,q(this,'_insertingShapeKeys',new Set()),this[_0x5a320f(0x2aa)]();}[_0x291e41(0x2aa)](){const _0x430aff=_0x291e41;this[_0x430aff(0x1cc)](),this[_0x430aff(0x421)](),this[_0x430aff(0x2c1)]();}[_0x291e41(0x1cc)](){const _0x3ad51c=_0x291e41;this['disposeWithMe'](this[_0x3ad51c(0x346)]['add$'][_0x3ad51c(0x456)](_0x303f75=>{const _0x6ed2cc=_0x3ad51c;this[_0x6ed2cc(0x3d5)](_0x303f75);}));}[_0x291e41(0x421)](){const _0x4a8d48=_0x291e41;this['disposeWithMe'](this[_0x4a8d48(0x199)][_0x4a8d48(0x43c)]((_0x70ec0c,_0xcdd7cc)=>{const _0x2ca323=_0x4a8d48;if(_0x70ec0c['id']===_0x172941['id']){let {unitId:_0x55b1ee,subUnitId:_0x1461f6,shapeId:_0x4e61c8}=_0x70ec0c['params'],_0x144916=this[_0x2ca323(0x3b7)](_0x55b1ee),_0x115f49=_0x38d621({'unitId':_0x55b1ee,'subUnitId':_0x1461f6,'drawingId':_0x4e61c8}),_0xa8f97b=_0x144916==null?void 0x0:_0x144916[_0x2ca323(0x1f2)]['getObjectIncludeInGroup'](_0x115f49);_0xa8f97b&&(this[_0x2ca323(0x23b)][_0x2ca323(0x333)](_0xa8f97b),this[_0x2ca323(0x23b)][_0x2ca323(0x38f)](_0xa8f97b,{'unitId':_0x55b1ee,'subUnitId':_0x1461f6,'shapeId':_0x4e61c8}),_0xa8f97b['makeDirty'](!0x0));}else{if(_0x70ec0c['id']===_0x456c13['id']){var _0x9768a8;let {unitId:_0x4b180f,subUnitId:_0x6d50e3,shapeId:_0x31f369}=_0x70ec0c[_0x2ca323(0x2b1)],_0x495a94=this[_0x2ca323(0x3b7)](_0x4b180f);if(_0x495a94==null)return;let {scene:_0x56371c}=_0x495a94,_0x5cae35=_0x38d621({'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}),_0x349663=_0x56371c[_0x2ca323(0x292)](_0x5cae35);if(!((_0x9768a8=this[_0x2ca323(0x449)]['getRenderUnitById'](_0x4b180f))!=null&&_0x9768a8[_0x2ca323(0x401)](_0x5635f6)[_0x2ca323(0x2d8)](_0x6d50e3)))return!0x1;if(_0x349663)return;if(_0xcdd7cc!=null&&_0xcdd7cc[_0x2ca323(0x30a)]){queueMicrotask(()=>{const _0x2db3e5=_0x2ca323;this[_0x2db3e5(0x1a6)]||this['_insertShapes']([{'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}]);});return;}this[_0x2ca323(0x3d5)]([{'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}]);}}}));}[_0x291e41(0x2c1)](){const _0x5bcac5=_0x291e41;this['disposeWithMe'](this['_drawingManagerService'][_0x5bcac5(0x1c3)][_0x5bcac5(0x456)](_0x480c98=>{const _0x380bfe=_0x5bcac5;_0x480c98[_0x380bfe(0x44b)](_0x3f0d0a=>{const _0xc90488=_0x380bfe;let {unitId:_0x493980,subUnitId:_0x22404c,drawingId:_0x12470c}=_0x3f0d0a,_0x5b478f=this[_0xc90488(0x346)][_0xc90488(0x312)](_0x3f0d0a);if(_0x5b478f==null)return;let {transform:_0x43343a,drawingType:_0x2f22f3,srcRect:_0x241462,prstGeom:_0x4a4ac7}=_0x5b478f;if(_0x2f22f3!==_0x40fd85['DRAWING_SHAPE'])return;let _0x9a0483=this[_0xc90488(0x3b7)](_0x493980);if(_0x9a0483==null)return;let {scene:_0x52450f,transformer:_0x44b57b}=_0x9a0483;if(_0x43343a==null)return!0x0;let _0x232be9=_0x38d621({'unitId':_0x493980,'subUnitId':_0x22404c,'drawingId':_0x12470c}),_0x328b12=_0x52450f[_0xc90488(0x292)](_0x232be9);if(_0x328b12==null)return!0x0;_0x328b12[_0xc90488(0x1b6)](_0x241462),_0x328b12[_0xc90488(0x217)](_0x4a4ac7);});}));}[_0x291e41(0x3d5)](_0x4a5b21){const _0x36f98b=_0x291e41;for(let _0x1dddce of _0x4a5b21){var _0x43d547;let {unitId:_0xbb2302,subUnitId:_0x3d7f0c,drawingId:_0x13fa3d}=_0x1dddce,_0xdd8565=this[_0x36f98b(0x3b7)](_0xbb2302),_0x356213=(_0x43d547=_0x286bfa(this[_0x36f98b(0x304)],_0xbb2302))==null?void 0x0:_0x43d547['subUnitId'];if(_0xdd8565==null||_0x356213!==_0x3d7f0c)return;let _0x316007=_0x38d621({'unitId':_0xbb2302,'subUnitId':_0x3d7f0c,'drawingId':_0x13fa3d});if(this[_0x36f98b(0x240)][_0x36f98b(0x290)](_0x316007)||_0xdd8565['scene'][_0x36f98b(0x292)](_0x316007)!=null)return;let _0x3ace5e=this[_0x36f98b(0x346)]['getDrawingByParam'](_0x1dddce);if(_0x3ace5e==null||_0x3ace5e[_0x36f98b(0x209)]!==_0x40fd85[_0x36f98b(0x43a)])return;let _0x5f40c7=_0x3ace5e[_0x36f98b(0x305)]||{};if(_0x5184c7(_0x5f40c7[_0x36f98b(0x3e1)])){let _0x16e753=_0x3ace5e[_0x36f98b(0x21c)];_0x16e753&&(_0x3ace5e['transform']={..._0x16e753,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x36f98b(0x322)](_0x316007);try{this[_0x36f98b(0x23b)][_0x36f98b(0x301)](_0x3ace5e,_0xdd8565[_0x36f98b(0x1f2)]);}finally{this[_0x36f98b(0x240)][_0x36f98b(0x24b)](_0x316007);}queueMicrotask(()=>{const _0x498319=_0x36f98b;if(this['_disposed'])return;let _0xbb37dc=_0x38d621(_0x1dddce);if(!_0xdd8565['scene'][_0x498319(0x292)](_0xbb37dc))return;let _0x508d40=this[_0x498319(0x346)][_0x498319(0x312)](_0x1dddce);_0x508d40&&this['_drawingManagerService'][_0x498319(0x3b0)]([_0x508d40]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x33a8e8){const _0x2e204c=_0x291e41;if(_0x33a8e8==null)return;let _0x355600=this[_0x2e204c(0x449)][_0x2e204c(0x3a7)](_0x33a8e8),_0x31a4bb=_0x355600==null?void 0x0:_0x355600['scene'];return _0x31a4bb==null?null:{'scene':_0x31a4bb,'transformer':_0x31a4bb[_0x2e204c(0x39e)]()};}};ua=X([Y(0x0,_0x54c16f),Y(0x1,_0x1158d5),Y(0x2,_0x28cffc),Y(0x3,_0x44b74c),Y(0x4,_0x5b79b4(_0x5a0133)),Y(0x5,_0x5b79b4(Z))],ua);const da={'normal':{'fill':_0x179988['cxnPointFill'],'stroke':_0x179988[_0x291e41(0x1b1)],'strokeWidth':_0x179988[_0x291e41(0x1af)]},'highlighted':{'fill':_0x291e41(0x230),'stroke':_0x291e41(0x395),'strokeWidth':0x2}};var fa=class extends _0x156eef{constructor(_0x338ff4,_0x10807b){const _0x310bea=_0x291e41;super(_0x338ff4,_0x10807b),q(this,_0x310bea(0x1a2),''),q(this,_0x310bea(0x327),-0x1),q(this,_0x310bea(0x32f),''),q(this,_0x310bea(0x1df),''),q(this,_0x310bea(0x41a),!0x1),_0x10807b&&this[_0x310bea(0x32c)](_0x10807b);}[_0x291e41(0x251)](){const _0x21132d=_0x291e41;return{'unitId':this[_0x21132d(0x32f)],'subUnitId':this[_0x21132d(0x1df)],'shapeId':this[_0x21132d(0x1a2)],'cxnIndex':this[_0x21132d(0x327)]};}['setHighlighted'](_0x2feab1){const _0x537ab1=_0x291e41;this[_0x537ab1(0x41a)]!==_0x2feab1&&(this['_isHighlighted']=_0x2feab1,this[_0x537ab1(0x293)](!0x0));}[_0x291e41(0x418)](){const _0x588951=_0x291e41;return this[_0x588951(0x41a)];}[_0x291e41(0x32c)](_0x5c2c58){const _0x5b042d=_0x291e41;_0x5c2c58[_0x5b042d(0x3c4)]!==void 0x0&&(this[_0x5b042d(0x1a2)]=_0x5c2c58[_0x5b042d(0x3c4)]),_0x5c2c58[_0x5b042d(0x239)]!==void 0x0&&(this['_cxnIndex']=_0x5c2c58[_0x5b042d(0x239)]),_0x5c2c58[_0x5b042d(0x351)]!==void 0x0&&(this[_0x5b042d(0x32f)]=_0x5c2c58[_0x5b042d(0x351)]),_0x5c2c58[_0x5b042d(0x21b)]!==void 0x0&&(this[_0x5b042d(0x1df)]=_0x5c2c58[_0x5b042d(0x21b)]),_0x5c2c58[_0x5b042d(0x418)]!==void 0x0&&(this['_isHighlighted']=_0x5c2c58[_0x5b042d(0x418)]),this['transformByState']({'width':_0x5c2c58[_0x5b042d(0x45d)]??_0x179988['cxnPointRadius']*0x2,'height':_0x5c2c58[_0x5b042d(0x257)]??_0x179988[_0x5b042d(0x2ed)]*0x2});}[_0x291e41(0x39f)](_0x14ac6b){const _0x586d7f=_0x291e41;let _0x1fe759=this[_0x586d7f(0x41a)]?da[_0x586d7f(0x3b3)]:da['normal'];_0x49536a[_0x586d7f(0x38a)](_0x14ac6b,{'radius':_0x179988['cxnPointRadius'],'fill':_0x1fe759['fill'],'stroke':_0x1fe759['stroke'],'strokeWidth':_0x1fe759[_0x586d7f(0x444)],'evented':!0x0});}};let pa=class extends _0x557a26{constructor(_0x1fb911,_0x2c65f3,_0x3bac44,_0x170626){const _0x15f699=_0x291e41;super(),this[_0x15f699(0x343)]=_0x1fb911,this[_0x15f699(0x449)]=_0x2c65f3,this[_0x15f699(0x346)]=_0x3bac44,this[_0x15f699(0x408)]=_0x170626,q(this,'_connectionSiteObjects',[]),q(this,'_activeTargetShapeId',null),q(this,_0x15f699(0x303),-0x1),q(this,_0x15f699(0x2cd),null),q(this,_0x15f699(0x32f),''),q(this,_0x15f699(0x1df),''),q(this,_0x15f699(0x316),null);}[_0x291e41(0x3db)](_0x50838c,_0x419f66,_0x2e2073,_0x3fc00b){const _0x2a86e8=_0x291e41;this['_currentScene']=_0x50838c,this[_0x2a86e8(0x32f)]=_0x419f66,this[_0x2a86e8(0x1df)]=_0x2e2073,this[_0x2a86e8(0x316)]=_0x3fc00b;}[_0x291e41(0x254)](_0x58fdd9){const _0x1ed86f=_0x291e41;if(!this[_0x1ed86f(0x2cd)])return null;let _0x260d2c=this['_findShapeAtPoint'](_0x58fdd9);return _0x260d2c?(this[_0x1ed86f(0x283)]!==_0x260d2c['shapeId']&&(this[_0x1ed86f(0x3ff)](),this['_showConnectionSites'](_0x260d2c['shapeId'],_0x260d2c[_0x1ed86f(0x286)]),this[_0x1ed86f(0x283)]=_0x260d2c[_0x1ed86f(0x416)]),this[_0x1ed86f(0x28f)](_0x58fdd9)):(this[_0x1ed86f(0x283)]!==null&&(this['_clearConnectionSites'](),this[_0x1ed86f(0x283)]=null),null);}[_0x291e41(0x402)](){const _0x401c0e=_0x291e41;this['_clearConnectionSites'](),this[_0x401c0e(0x2cd)]=null,this[_0x401c0e(0x283)]=null,this[_0x401c0e(0x303)]=-0x1,this[_0x401c0e(0x316)]=null;}[_0x291e41(0x414)](){const _0x4ddfb1=_0x291e41;return this[_0x4ddfb1(0x283)]===null||this[_0x4ddfb1(0x303)]<0x0?null:{'shapeId':this[_0x4ddfb1(0x283)],'cxnIndex':this[_0x4ddfb1(0x303)]};}[_0x291e41(0x25e)](_0x542e6f){const _0x741a6b=_0x291e41;let _0x51c0e2=this['_drawingManagerService']['getDrawingData'](this['_unitId'],this[_0x741a6b(0x1df)]);for(let _0x1e7764 of Object[_0x741a6b(0x3f1)](_0x51c0e2)){if(_0x1e7764===this['_draggingConnectorId']||_0x51c0e2[_0x1e7764][_0x741a6b(0x209)]!==_0x40fd85['DRAWING_SHAPE'])continue;let _0x10dac7=this[_0x741a6b(0x408)]['getShapeModel'](this['_unitId'],this[_0x741a6b(0x1df)],_0x1e7764);if(!_0x10dac7||_0x5184c7(_0x10dac7[_0x741a6b(0x2ba)]())||_0x10dac7[_0x741a6b(0x1f9)]()[_0x741a6b(0x3c3)]===0x0||!this[_0x741a6b(0x2cd)])continue;let _0x345bf3=_0x38d621({'unitId':this[_0x741a6b(0x32f)],'subUnitId':this[_0x741a6b(0x1df)],'drawingId':_0x1e7764}),_0x497875=this[_0x741a6b(0x2cd)][_0x741a6b(0x292)](_0x345bf3);if(!_0x497875)continue;let {left:_0x4147cf,top:_0x2f4d1d,width:_0x3b9b9b,height:_0x3ff510}=_0x497875[_0x741a6b(0x284)](),_0x1a61ab=_0x4147cf+_0x3b9b9b/0x2,_0x1b897b=_0x2f4d1d+_0x3ff510/0x2,_0x2ac405=_0x497875['transform'][_0x741a6b(0x405)](),_0x10100e=new _0x36d9d2([_0x2ac405[0x0],_0x2ac405[0x1],_0x2ac405[0x2],_0x2ac405[0x3],_0x1a61ab,_0x1b897b]),_0x3b49b8=_0x497875[_0x741a6b(0x298)](),_0x3222e2=(_0x497875['isInGroup']&&(_0x3b49b8==null?void 0x0:_0x3b49b8[_0x741a6b(0x2fd)])===_0x142f92['GROUP']?_0x3b49b8[_0x741a6b(0x43e)][_0x741a6b(0x371)](_0x10100e):_0x10100e)[_0x741a6b(0x2ef)]()[_0x741a6b(0x441)](_0x542e6f),_0x28669f=_0x3b9b9b/0x2,_0x2f3bff=_0x3ff510/0x2;if(_0x3222e2['x']>=-_0x28669f-0x5&&_0x3222e2['x']<=_0x28669f+0x5&&_0x3222e2['y']>=-_0x2f3bff-0x5&&_0x3222e2['y']<=_0x2f3bff+0x5)return{'shapeId':_0x1e7764,'shapeModel':_0x10dac7};}return null;}[_0x291e41(0x226)](_0x587d1d,_0x1b5231){const _0x35a045=_0x291e41;if(!this['_currentScene'])return;let _0x44c9ed=_0x38d621({'unitId':this[_0x35a045(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':_0x587d1d}),_0x584cfb=this['_currentScene'][_0x35a045(0x292)](_0x44c9ed);if(!_0x584cfb)return;let {left:_0x242d31,top:_0x5eebd5,width:_0x431a75,height:_0x3b4389}=_0x584cfb[_0x35a045(0x284)](),_0x87aa8b=_0x242d31+_0x431a75/0x2,_0x22c1e4=_0x5eebd5+_0x3b4389/0x2,_0x30eb8a=_0x584cfb[_0x35a045(0x21c)]['getMatrix'](),_0x6af471=new _0x36d9d2([_0x30eb8a[0x0],_0x30eb8a[0x1],_0x30eb8a[0x2],_0x30eb8a[0x3],_0x87aa8b,_0x22c1e4]),_0x1ad58f=_0x584cfb['getParent'](),_0xa0b3f=_0x584cfb['isInGroup']&&(_0x1ad58f==null?void 0x0:_0x1ad58f['classType'])===_0x142f92['GROUP']?_0x1ad58f['ancestorTransform'][_0x35a045(0x371)](_0x6af471):_0x6af471;_0x1b5231[_0x35a045(0x31e)]({'width':_0x431a75,'height':_0x3b4389});let _0xdb0eab=_0x1b5231[_0x35a045(0x1f9)]();for(let _0x18bac7 of _0xdb0eab){let _0x33463e=_0x18bac7['x']-_0x431a75/0x2,_0x1d747f=_0x18bac7['y']-_0x3b4389/0x2,_0x4a349e=_0xa0b3f['applyPoint']({'x':_0x33463e,'y':_0x1d747f}),_0x35ee7a=_0x4a349e['x'],_0x112572=_0x4a349e['y'],_0x262b59=new fa(_0x35a045(0x376)+_0x587d1d+'-'+_0x18bac7[_0x35a045(0x3f7)],{'left':_0x35ee7a-_0x179988[_0x35a045(0x2ed)],'top':_0x112572-_0x179988['cxnPointRadius'],'targetShapeId':_0x587d1d,'cxnIndex':_0x18bac7[_0x35a045(0x3f7)],'unitId':this[_0x35a045(0x32f)],'subUnitId':this[_0x35a045(0x1df)],'width':_0x179988[_0x35a045(0x2ed)]*0x2,'height':_0x179988[_0x35a045(0x2ed)]*0x2,'zIndex':_0x10b13b+0x2,'evented':!0x1});this[_0x35a045(0x36d)]['push'](_0x262b59),this[_0x35a045(0x2cd)][_0x35a045(0x35b)](_0x262b59,_0x10b13b+0x2);}}[_0x291e41(0x28f)](_0x3f492f){const _0x4c9faa=_0x291e41;let _0x3667d8=null,_0xec5965=0x1/0x0,_0x51026c=null;for(let _0x15e233 of this[_0x4c9faa(0x36d)]){let _0x59f9af=_0x15e233[_0x4c9faa(0x337)]+_0x179988[_0x4c9faa(0x2ed)],_0x1a03f0=_0x15e233[_0x4c9faa(0x3cf)]+_0x179988[_0x4c9faa(0x2ed)],_0x298f83=_0x3f492f['x']-_0x59f9af,_0x33b4d7=_0x3f492f['y']-_0x1a03f0,_0x46b9cd=Math['sqrt'](_0x298f83*_0x298f83+_0x33b4d7*_0x33b4d7);_0x46b9cd<_0xec5965&&(_0xec5965=_0x46b9cd,_0x3667d8=_0x15e233,_0x51026c={'x':_0x59f9af,'y':_0x1a03f0});}let _0x3eca8c=_0xec5965<=0xa&&_0x3667d8?_0x3667d8['getConnectionInfo']()[_0x4c9faa(0x239)]:-0x1;if(_0x3eca8c!==this[_0x4c9faa(0x303)]){for(let _0x311b85 of this[_0x4c9faa(0x36d)]){let _0x5560f5=_0x311b85['getConnectionInfo']();_0x311b85[_0x4c9faa(0x246)](_0x5560f5[_0x4c9faa(0x239)]===_0x3eca8c);}this[_0x4c9faa(0x303)]=_0x3eca8c;}if(_0xec5965<=0xa&&_0x3667d8&&_0x51026c){let _0x4ecea5=_0x3667d8['getConnectionInfo'](),_0x328f5a=this[_0x4c9faa(0x26d)](_0x4ecea5[_0x4c9faa(0x416)],_0x4ecea5[_0x4c9faa(0x239)]);return{'shapeId':_0x4ecea5[_0x4c9faa(0x416)],'cxnIndex':_0x4ecea5[_0x4c9faa(0x239)],'unitId':_0x4ecea5[_0x4c9faa(0x351)],'subUnitId':_0x4ecea5[_0x4c9faa(0x21b)],'worldPoint':_0x51026c,'angle':_0x328f5a};}return null;}[_0x291e41(0x26d)](_0x595816,_0x1d8cde){const _0xbdbf6e=_0x291e41;let _0x52f334=this[_0xbdbf6e(0x408)][_0xbdbf6e(0x32d)](this['_unitId'],this[_0xbdbf6e(0x1df)],_0x595816);if(!_0x52f334)return 0x0;let _0x5541ec=this[_0xbdbf6e(0x346)][_0xbdbf6e(0x312)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x595816});if(!(_0x5541ec!=null&&_0x5541ec[_0xbdbf6e(0x21c)]))return 0x0;let {width:_0x270ffc=0x0,height:_0x4b7504=0x0,flipX:_0x509f28=!0x1,flipY:_0x5d99df=!0x1}=_0x5541ec[_0xbdbf6e(0x21c)];_0x52f334[_0xbdbf6e(0x31e)]({'width':_0x270ffc,'height':_0x4b7504});let _0x6b5b15=_0x52f334[_0xbdbf6e(0x1f9)]()[_0xbdbf6e(0x1e4)](_0x105d0d=>_0x105d0d[_0xbdbf6e(0x3f7)]===_0x1d8cde);if(!_0x6b5b15)return 0x0;let _0x351a26=_0x6b5b15['ang']/0xea60;return _0x509f28&&(_0x351a26=0xb4-_0x351a26),_0x5d99df&&(_0x351a26=-_0x351a26),_0x351a26=(_0x351a26%0x168+0x168)%0x168,_0x351a26;}[_0x291e41(0x3ff)](){const _0x872310=_0x291e41;for(let _0x283eff of this['_connectionSiteObjects'])_0x283eff[_0x872310(0x20d)]();this[_0x872310(0x36d)]=[],this[_0x872310(0x303)]=-0x1;}['dispose'](){const _0xe9cbc8=_0x291e41;this[_0xe9cbc8(0x3ff)](),super[_0xe9cbc8(0x20d)]();}};pa=X([Y(0x1,_0x5b79b4(_0x1158d5)),Y(0x2,_0x5b79b4(_0x28cffc)),Y(0x3,_0x5b79b4(_0x1e1f0c))],pa);let ma=class extends _0x557a26{constructor(_0x20fc4e,_0x4bd99d,_0x50a9f0,_0x56163b,_0x579278){const _0x2aecba=_0x291e41;super(),this[_0x2aecba(0x417)]=_0x20fc4e,this[_0x2aecba(0x383)]=_0x4bd99d,this[_0x2aecba(0x3ef)]=_0x50a9f0,this[_0x2aecba(0x2ea)]=_0x56163b,this[_0x2aecba(0x430)]=_0x579278,q(this,_0x2aecba(0x30f),void 0x0),this['_initCopyPaste'](),this[_0x2aecba(0x194)]();}get[_0x291e41(0x391)](){const _0x3743fb=_0x291e41;return this[_0x3743fb(0x3ef)][_0x3743fb(0x1f4)]();}[_0x291e41(0x194)](){const _0x12f3f9=_0x291e41;this[_0x12f3f9(0x430)]['registerFeaturePasteHook'](({fromUnitId:_0x2e3d95,fromSubUnitId:_0x3d76c2,toUnitId:_0x12d774,toSubUnitId:_0x40496f,idMap:_0x3b38de})=>{const _0x4a3abb=_0x12f3f9;let _0x36169c=[],_0x2321e1=[];for(let [_0x3361a1,_0x8606e8]of _0x3b38de[_0x4a3abb(0x384)]()){let _0xa2c221=this['_shapeService'][_0x4a3abb(0x32d)](_0x2e3d95,_0x3d76c2,_0x3361a1);if(!_0xa2c221)continue;let _0xf7ddcc=_0xa2c221[_0x4a3abb(0x2ba)](),_0x3bc1e5=JSON[_0x4a3abb(0x38d)](JSON[_0x4a3abb(0x454)](_0xa2c221['getShapeData']()));if(_0x3bc1e5[_0x4a3abb(0x2cb)]){var _0x33e7e9,_0x1587e0;let _0x4c4ca8=(_0x33e7e9=_0x3bc1e5[_0x4a3abb(0x2cb)]['from'])==null?void 0x0:_0x33e7e9[_0x4a3abb(0x416)],_0x1bd635=(_0x1587e0=_0x3bc1e5[_0x4a3abb(0x2cb)]['to'])==null?void 0x0:_0x1587e0[_0x4a3abb(0x416)],_0x528992=!_0x4c4ca8||_0x3b38de[_0x4a3abb(0x290)](_0x4c4ca8),_0x30aa23=!_0x1bd635||_0x3b38de[_0x4a3abb(0x290)](_0x1bd635);_0x528992&&_0x4c4ca8&&_0x3bc1e5[_0x4a3abb(0x2cb)][_0x4a3abb(0x354)]?_0x3bc1e5[_0x4a3abb(0x2cb)]['from']={..._0x3bc1e5['relation'][_0x4a3abb(0x354)],'shapeId':_0x3b38de['get'](_0x4c4ca8)}:_0x3bc1e5['relation'][_0x4a3abb(0x354)]=void 0x0,_0x30aa23&&_0x1bd635&&_0x3bc1e5[_0x4a3abb(0x2cb)]['to']?_0x3bc1e5[_0x4a3abb(0x2cb)]['to']={..._0x3bc1e5['relation']['to'],'shapeId':_0x3b38de[_0x4a3abb(0x42c)](_0x1bd635)}:_0x3bc1e5['relation']['to']=void 0x0;}_0x36169c[_0x4a3abb(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x12d774,'subUnitId':_0x40496f,'shapeId':_0x8606e8,'shapeType':_0xf7ddcc,'shapeData':_0x3bc1e5}}),_0x2321e1[_0x4a3abb(0x1b9)]({'id':_0x5aa689['id'],'params':{'unitId':_0x12d774,'subUnitId':_0x40496f,'shapeId':_0x8606e8}});}return{'redos':_0x36169c,'undos':_0x2321e1};});}['_initCopyPaste'](){const _0x21cef1=_0x291e41;this['disposeWithMe'](this['_sheetClipboardService'][_0x21cef1(0x2e2)]({'id':_0x21cef1(0x2a2),'onBeforeCopyFocusedObject':(_0x5c12c7,_0x5135d4,_0x2bce11)=>{const _0x1b91b8=_0x21cef1;this[_0x1b91b8(0x30f)]=null;let _0x2d14e2=this[_0x1b91b8(0x391)][_0x1b91b8(0x3c0)](_0x59c47b=>_0x59c47b['drawingType']===_0x40fd85[_0x1b91b8(0x43a)]);return _0x2d14e2['length']!==0x0&&(this[_0x1b91b8(0x30f)]={'unitId':_0x5c12c7,'subUnitId':_0x5135d4,'copyType':_0x2bce11,'drawings':_0x2d14e2},!0x0);},'onBeforeCopy':(_0x2727e6,_0x5e6c9a,_0xd1e43b,_0x306a58)=>{const _0x210115=_0x21cef1;this['_copyInfo']=null,this[_0x210115(0x24a)](_0x2727e6,_0x5e6c9a,_0xd1e43b,_0x306a58);},'onPasteCells':(_0x175805,_0x2db3c9,_0x674dde,_0x2f22c7)=>{const _0x3bf63e=_0x21cef1;if(!_0x2f22c7['copyId']||!_0x175805||!this[_0x3bf63e(0x30f)])return{'redos':[],'undos':[]};let {pasteType:_0xbe8c1f}=_0x2f22c7;return _0xbe8c1f===_0x533c9a[_0x3bf63e(0x363)]?this['_generatePasteMutations'](_0x2db3c9,this['_copyInfo']['copyType']===_0x10a2b5['CUT']):{'redos':[],'undos':[]};}}));}[_0x291e41(0x24a)](_0x1492c5,_0x80850b,_0x537096,_0x5b0551){const _0x410f5b=_0x291e41;let _0x1674ef=this[_0x410f5b(0x417)][_0x410f5b(0x2d8)](_0x1492c5,_0x80850b);if(!_0x1674ef)return;let _0x3144fb=_0x170768(_0x1674ef,_0x537096);if(!_0x3144fb)return;let {startX:_0x39a6a8,endX:_0x1f0ebf,startY:_0x58ab3f,endY:_0x29ec5b}=_0x3144fb,_0x215263=this['_sheetDrawingService']['getDrawingData'](_0x1492c5,_0x80850b),_0x41e320=[];for(let [_0x51065d,_0x2c9070]of Object[_0x410f5b(0x384)](_0x215263)){if(_0x2c9070[_0x410f5b(0x209)]!==_0x40fd85[_0x410f5b(0x43a)])continue;let {transform:_0x1b9882}=_0x2c9070;if(!_0x1b9882)continue;let {left:_0x3cbfc2=0x0,top:_0x45b1e2=0x0,width:_0xee9cd=0x0,height:_0x3b7a2e=0x0}=_0x1b9882;_0x39a6a8<=_0x3cbfc2&&_0x1f0ebf>=_0x3cbfc2+_0xee9cd&&_0x58ab3f<=_0x45b1e2&&_0x29ec5b>=_0x45b1e2+_0x3b7a2e&&_0x41e320[_0x410f5b(0x1b9)](_0x2c9070);}_0x41e320[_0x410f5b(0x3c3)]>0x0&&(this['_copyInfo']={'unitId':_0x1492c5,'subUnitId':_0x80850b,'copyType':_0x5b0551,'copyRange':_0x537096,'drawings':_0x41e320});}[_0x291e41(0x2eb)](_0x3971b9,_0x9fe549){const _0x2f1676=_0x291e41;let {unitId:_0xcc8a86,subUnitId:_0x28e51b,range:_0x195682}=_0x3971b9,_0x44f616=this[_0x2f1676(0x417)][_0x2f1676(0x2d8)](_0xcc8a86,_0x28e51b);if(!_0x44f616)return{'redos':[],'undos':[]};let _0x485d26=_0x4bd816(_0x195682),{unitId:_0x584824,subUnitId:_0x11d91d,copyRange:_0x1fedae,drawings:_0x2b5653}=this['_copyInfo'],_0x39060b=this[_0x2f1676(0x417)][_0x2f1676(0x2d8)](_0x584824,_0x11d91d);if(!_0x39060b)return{'redos':[],'undos':[]};let _0x48675c;if(!_0x1fedae){let _0x1924a5=0x1/0x0,_0x354285=0x1/0x0;for(let _0x4d596a of _0x2b5653){let {left:_0x1ed33f=0x0,top:_0x1fbbcd=0x0}=_0x4d596a[_0x2f1676(0x21c)]??{};_0x1ed33f<_0x1924a5&&(_0x1924a5=_0x1ed33f),_0x1fbbcd<_0x354285&&(_0x354285=_0x1fbbcd);}_0x1924a5!==0x1/0x0&&_0x354285!==0x1/0x0&&(_0x48675c={'left':_0x1924a5,'top':_0x354285});}let _0x2bd3b8=new Map();if(!_0x9fe549){for(let _0x3df64d of _0x2b5653)_0x2bd3b8[_0x2f1676(0x28a)](_0x3df64d[_0x2f1676(0x1dd)],_0x2eff46());}let _0x41a826=[],_0x4f9d45=[];for(let _0x4b1656 of _0x2b5653){let {drawingId:_0x19419f,transform:_0x28e049,sheetTransform:_0x4ce7e7}=_0x4b1656;if(!_0x28e049||!_0x4ce7e7)continue;let _0x142940=this['_updateTransform']({'transform':_0x28e049,'sheetTransform':_0x4ce7e7},{'skeleton':_0x39060b,'range':_0x1fedae},{'skeleton':_0x44f616,'range':_0x485d26},_0x48675c);if(_0x9fe549){let {redos:_0x41756d,undos:_0x2f5a57}=this[_0x2f1676(0x22e)]({'fromUnitId':_0x584824,'fromSubUnitId':_0x11d91d,'toUnitId':_0xcc8a86,'toSubUnitId':_0x28e51b,'drawing':_0x4b1656,'newTransforms':_0x142940});_0x41a826[_0x2f1676(0x1b9)](..._0x41756d),_0x4f9d45[_0x2f1676(0x1b9)](..._0x2f5a57);continue;}let {redos:_0x365650,undos:_0x3717d0}=this[_0x2f1676(0x205)]({'toUnitId':_0xcc8a86,'toSubUnitId':_0x28e51b,'drawing':_0x4b1656,'newTransforms':_0x142940,'newDrawingId':_0x2bd3b8[_0x2f1676(0x42c)](_0x19419f),'idMap':_0x2bd3b8});_0x41a826[_0x2f1676(0x1b9)](..._0x365650),_0x4f9d45[_0x2f1676(0x1b9)](..._0x3717d0);}return{'redos':_0x41a826,'undos':_0x4f9d45};}[_0x291e41(0x22e)](_0x4e77f3){const _0x617040=_0x291e41;let {fromUnitId:_0x5736cd,fromSubUnitId:_0x5509c6,toUnitId:_0x462f1f,toSubUnitId:_0x3bfc8f,drawing:_0x25af83,newTransforms:_0x333623}=_0x4e77f3,_0x64e9c9={..._0x25af83,'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'transform':_0x333623[_0x617040(0x21c)],'sheetTransform':_0x333623[_0x617040(0x389)]};if(_0x462f1f===_0x5736cd&&_0x3bfc8f===_0x5509c6){let {redo:_0x4fdae0,undo:_0x383908,objects:_0x5d9d1f}=this['_sheetDrawingService'][_0x617040(0x411)]([_0x64e9c9]);return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x2f1)],'op':_0x4fdae0,'objects':_0x5d9d1f}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x2f1)],'op':_0x383908,'objects':_0x5d9d1f}}]};}{let _0x24dd76=this['_sheetDrawingService'][_0x617040(0x2c3)]([_0x25af83]),_0x25c3ba=this['_sheetDrawingService'][_0x617040(0x311)]([_0x64e9c9]),_0x30212c=this['_shapeService']['getShapeModel'](_0x25af83[_0x617040(0x351)],_0x25af83['subUnitId'],_0x25af83[_0x617040(0x1dd)]);if(!_0x30212c)return{'redos':[],'undos':[]};let _0x2a5a4e=_0x30212c['getShapeType'](),_0x18775b=JSON[_0x617040(0x38d)](JSON[_0x617040(0x454)](_0x30212c[_0x617040(0x2d9)]()));return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'type':_0x22a6fe['REMOVE'],'op':_0x24dd76['redo'],'objects':_0x24dd76[_0x617040(0x413)]}},{'id':_0x5aa689['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'shapeId':_0x25af83['drawingId']}},{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x347)],'op':_0x25c3ba[_0x617040(0x34d)],'objects':_0x25c3ba[_0x617040(0x413)]}},{'id':_0x456c13['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'shapeId':_0x25af83[_0x617040(0x1dd)],'shapeType':_0x2a5a4e,'shapeData':_0x18775b}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'type':_0x22a6fe[_0x617040(0x347)],'op':_0x24dd76[_0x617040(0x3a5)],'objects':_0x24dd76[_0x617040(0x413)]}},{'id':_0x456c13['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'shapeId':_0x25af83[_0x617040(0x1dd)],'shapeType':_0x2a5a4e,'shapeData':_0x18775b}},{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe['REMOVE'],'op':_0x25c3ba['undo'],'objects':_0x25c3ba[_0x617040(0x413)]}},{'id':_0x5aa689['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'shapeId':_0x25af83['drawingId']}}]};}}[_0x291e41(0x205)](_0x10c2d1){const _0x5d43c9=_0x291e41;let {toUnitId:_0x5ad5f5,toSubUnitId:_0x77c7a1,drawing:_0x1720a0,newTransforms:_0xb665df,newDrawingId:_0x3cf21c,idMap:_0x14f86}=_0x10c2d1,_0xb1e77a={..._0x1720a0,'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'drawingId':_0x3cf21c,'transform':_0xb665df[_0x5d43c9(0x21c)],'sheetTransform':_0xb665df[_0x5d43c9(0x389)]},{redo:_0x2feb7e,undo:_0x31a34a,objects:_0x42df5c}=this[_0x5d43c9(0x3ef)][_0x5d43c9(0x311)]([_0xb1e77a]),_0x5360b5=this[_0x5d43c9(0x2ea)][_0x5d43c9(0x32d)](_0x1720a0[_0x5d43c9(0x351)],_0x1720a0[_0x5d43c9(0x21b)],_0x1720a0[_0x5d43c9(0x1dd)]);if(!_0x5360b5)return{'redos':[],'undos':[]};let _0x55b417=_0x5360b5[_0x5d43c9(0x2ba)](),_0x4250f2=JSON[_0x5d43c9(0x38d)](JSON['stringify'](_0x5360b5[_0x5d43c9(0x2d9)]()));if(_0x4250f2[_0x5d43c9(0x2cb)]){var _0x24aa5,_0x47bd45;let _0x5b5d5b=(_0x24aa5=_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)])==null?void 0x0:_0x24aa5['shapeId'],_0x1a2977=(_0x47bd45=_0x4250f2['relation']['to'])==null?void 0x0:_0x47bd45[_0x5d43c9(0x416)],_0x49697c=!_0x5b5d5b||_0x14f86[_0x5d43c9(0x290)](_0x5b5d5b),_0x337081=!_0x1a2977||_0x14f86[_0x5d43c9(0x290)](_0x1a2977);_0x49697c&&_0x5b5d5b&&_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)]?_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)]={..._0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)],'shapeId':_0x14f86[_0x5d43c9(0x42c)](_0x5b5d5b)}:_0x4250f2['relation'][_0x5d43c9(0x354)]=void 0x0,_0x337081&&_0x1a2977&&_0x4250f2['relation']['to']?_0x4250f2['relation']['to']={..._0x4250f2[_0x5d43c9(0x2cb)]['to'],'shapeId':_0x14f86[_0x5d43c9(0x42c)](_0x1a2977)}:_0x4250f2[_0x5d43c9(0x2cb)]['to']=void 0x0;}return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'type':_0x22a6fe[_0x5d43c9(0x347)],'op':_0x2feb7e,'objects':_0x42df5c}},{'id':_0x456c13['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'shapeId':_0x3cf21c,'shapeType':_0x55b417,'shapeData':_0x4250f2}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'type':_0x22a6fe[_0x5d43c9(0x427)],'op':_0x31a34a,'objects':_0x42df5c}},{'id':_0x5aa689['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'shapeId':_0x3cf21c}}]};}['_updateTransform'](_0x2c430d,_0x2075c7,_0x4b22e9,_0x249e95){const _0x136873=_0x291e41;let {range:_0x471379,skeleton:_0x44bc86}=_0x2075c7,{range:_0x22bf7b,skeleton:_0x221f30}=_0x4b22e9,{transform:_0x3cca53,sheetTransform:_0x2fd033}=_0x2c430d,_0x56005f={..._0x3cca53};if(_0x471379){let _0x5c0906=_0x170768(_0x44bc86,_0x471379),_0x40d77b=_0x170768(_0x221f30,_0x22bf7b);if(_0x5c0906&&_0x40d77b){let _0x2dc236=_0x40d77b[_0x136873(0x266)]-_0x5c0906[_0x136873(0x266)],_0x250ce9=_0x40d77b[_0x136873(0x2be)]-_0x5c0906['startY'];_0x56005f['left']=(_0x56005f[_0x136873(0x337)]??0x0)+_0x2dc236,_0x56005f['top']=(_0x56005f[_0x136873(0x3cf)]??0x0)+_0x250ce9;}}else{let _0x142cd4=_0x170768(_0x221f30,_0x22bf7b);if(_0x249e95&&_0x142cd4){let _0x403dc8=(_0x56005f[_0x136873(0x337)]??0x0)-_0x249e95[_0x136873(0x337)],_0x5c7fa4=(_0x56005f['top']??0x0)-_0x249e95[_0x136873(0x3cf)];_0x56005f['left']=_0x142cd4[_0x136873(0x266)]+_0x403dc8,_0x56005f[_0x136873(0x3cf)]=_0x142cd4[_0x136873(0x2be)]+_0x5c7fa4;}else _0x56005f[_0x136873(0x337)]=_0x142cd4==null?void 0x0:_0x142cd4[_0x136873(0x266)],_0x56005f[_0x136873(0x3cf)]=_0x142cd4==null?void 0x0:_0x142cd4[_0x136873(0x2be)];}return{'transform':_0x56005f,'sheetTransform':_0x4f36ef(_0x56005f,_0x221f30)??_0x2fd033};}};ma=X([Y(0x0,_0x5b79b4(_0x4f7695)),Y(0x1,_0x5b79b4(_0xa7e024)),Y(0x2,_0x5b79b4(_0x17b29e)),Y(0x3,_0x5b79b4(_0x1e1f0c)),Y(0x4,_0x5b79b4(_0x2c59b9))],ma);var ha=class extends _0x156eef{constructor(_0x36667f,_0x572b59){const _0x44ebcb=_0x291e41;super(_0x36667f,_0x572b59),q(this,'_shapeId',null),q(this,'_index',null),q(this,_0x44ebcb(0x32f),null),q(this,'_subUnitId',null),q(this,_0x44ebcb(0x264),!0x1),_0x572b59&&this[_0x44ebcb(0x32c)](_0x572b59);}['getDrawingSearch'](){const _0x3b36a5=_0x291e41;return{'unitId':this['_unitId'],'subUnitId':this[_0x3b36a5(0x1df)],'drawingId':this[_0x3b36a5(0x1db)]};}['setShapeProps'](_0x375ff2){const _0xe3936f=_0x291e41;_0x375ff2[_0xe3936f(0x416)]!==void 0x0&&(this[_0xe3936f(0x1db)]=_0x375ff2[_0xe3936f(0x416)]),_0x375ff2[_0xe3936f(0x351)]!==void 0x0&&(this['_unitId']=_0x375ff2[_0xe3936f(0x351)]),_0x375ff2['subUnitId']!==void 0x0&&(this[_0xe3936f(0x1df)]=_0x375ff2[_0xe3936f(0x21b)]),_0x375ff2['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x375ff2['isStartConnectorPoint']),this[_0xe3936f(0x220)]({'width':_0x375ff2[_0xe3936f(0x45d)],'height':_0x375ff2[_0xe3936f(0x257)]});}['_draw'](_0x3d17dd){const _0x73d205=_0x291e41;_0x49536a[_0x73d205(0x38a)](_0x3d17dd,{'radius':_0x179988[_0x73d205(0x2ed)],'fill':_0x179988[_0x73d205(0x33c)],'stroke':_0x179988['cxnPointStroke'],'strokeWidth':_0x179988['cxnPointStrokeWidth'],'evented':!0x0});}};let ga=class extends _0x557a26{constructor(_0x24dbd0,_0x929d93,_0x3ad399,_0x37ee2b,_0x38950a,_0x609f5b,_0x59b8c0,_0x14df85){const _0xcd28d4=_0x291e41;super(),this[_0xcd28d4(0x343)]=_0x24dbd0,this[_0xcd28d4(0x199)]=_0x929d93,this[_0xcd28d4(0x449)]=_0x3ad399,this[_0xcd28d4(0x346)]=_0x37ee2b,this['_univerInstanceService']=_0x38950a,this[_0xcd28d4(0x408)]=_0x609f5b,this[_0xcd28d4(0x1e3)]=_0x59b8c0,this['_sheetBasicShapeConnectionPointController']=_0x14df85,q(this,_0xcd28d4(0x41e),void 0x0),q(this,_0xcd28d4(0x32f),void 0x0),q(this,_0xcd28d4(0x1df),void 0x0),q(this,_0xcd28d4(0x1ad),[]),q(this,_0xcd28d4(0x40c),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0xcd28d4(0x22f),void 0x0),q(this,_0xcd28d4(0x1d6),!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0xcd28d4(0x229),!0x1),q(this,_0xcd28d4(0x344),void 0x0),q(this,_0xcd28d4(0x380),void 0x0),q(this,_0xcd28d4(0x211),null),this[_0xcd28d4(0x2aa)]();}[_0x291e41(0x2aa)](){const _0x24b371=_0x291e41;this[_0x24b371(0x3f4)](),this[_0x24b371(0x1d0)]();}[_0x291e41(0x2ca)](){const _0x33b8ef=_0x291e41;if(!this[_0x33b8ef(0x32f)]||!this[_0x33b8ef(0x1df)]||!this[_0x33b8ef(0x41e)])return;let _0x59f473={'unitId':this['_unitId'],'subUnitId':this[_0x33b8ef(0x1df)],'drawingId':this['_activeShapeId']},{transform:_0xc89295}=this['_drawingManagerService'][_0x33b8ef(0x312)](_0x59f473);if(_0xc89295)return{'left':_0xc89295['left']||0x0,'top':_0xc89295[_0x33b8ef(0x3cf)]||0x0,'width':_0xc89295[_0x33b8ef(0x45d)]||0x0,'height':_0xc89295[_0x33b8ef(0x257)]||0x0,'flipX':_0xc89295[_0x33b8ef(0x26b)]||!0x1,'flipY':_0xc89295[_0x33b8ef(0x1d2)]||!0x1,'angle':_0xc89295[_0x33b8ef(0x2a0)]};}['_addShapeConnectorHandlerObjects'](){const _0x47d8ed=_0x291e41;if(this[_0x47d8ed(0x32f)]===void 0x0||this[_0x47d8ed(0x1df)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x2c33b2=this[_0x47d8ed(0x449)]['getRenderUnitById'](this[_0x47d8ed(0x32f)]);if(!_0x2c33b2||!_0x2c33b2[_0x47d8ed(0x401)](_0x5635f6)[_0x47d8ed(0x1e9)]())return;let {scene:_0x11fafc}=_0x2c33b2,_0x24df73=this[_0x47d8ed(0x2ca)]();if(!_0x24df73)return;let _0x4681b7=this['_sheetsShapeService'][_0x47d8ed(0x32d)](this['_unitId'],this[_0x47d8ed(0x1df)],this[_0x47d8ed(0x41e)]);if(!_0x4681b7||!_0x5184c7(_0x4681b7[_0x47d8ed(0x2ba)]()))return;let _0x67e5bb=_0x4681b7[_0x47d8ed(0x20b)]();if(_0x67e5bb['length']<0x2)return;let _0x14385f=new _0x57b6f7(_0x24df73),_0x15d393=_0x67e5bb[0x0],_0x53ae05=_0x67e5bb[_0x67e5bb[_0x47d8ed(0x3c3)]-0x1],_0x53f026=_0x14385f[_0x47d8ed(0x404)](_0x15d393),_0x4f4997=_0x14385f[_0x47d8ed(0x404)](_0x53ae05);this[_0x47d8ed(0x42a)](_0x11fafc,{..._0x53f026},!0x0),this['_addShapeConnectorHandlerObject'](_0x11fafc,{..._0x4f4997},!0x1);}[_0x291e41(0x42a)](_0x3e6fa9,_0x363c65,_0x43e42c){const _0x3b4ad3=_0x291e41;if(this[_0x3b4ad3(0x41e)]===void 0x0||this[_0x3b4ad3(0x32f)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x783f32='connector-handler-'+this['_unitId']+'-'+this[_0x3b4ad3(0x1df)]+'-'+this[_0x3b4ad3(0x41e)]+'-'+(_0x43e42c?_0x3b4ad3(0x330):_0x3b4ad3(0x3cc)),_0x359236=_0x3e6fa9[_0x3b4ad3(0x292)](_0x783f32);if(_0x359236){_0x359236[_0x3b4ad3(0x220)]({'left':_0x363c65['x']-_0x179988[_0x3b4ad3(0x2ed)],'top':_0x363c65['y']-_0x179988['cxnPointRadius']});return;}let _0x5dfe41=new ha(_0x783f32,{'left':_0x363c65['x']-_0x179988[_0x3b4ad3(0x2ed)],'top':_0x363c65['y']-_0x179988['cxnPointRadius'],'shapeId':this[_0x3b4ad3(0x41e)],'unitId':this[_0x3b4ad3(0x32f)],'subUnitId':this[_0x3b4ad3(0x1df)],'isStartConnectorPoint':_0x43e42c,'width':_0x179988['cxnPointRadius']*0x2,'height':_0x179988['cxnPointRadius']*0x2,'zIndex':_0x10b13b+0x1,'evented':!0x0});this[_0x3b4ad3(0x1ad)][_0x3b4ad3(0x1b9)](_0x5dfe41),this[_0x3b4ad3(0x222)](_0x5dfe41,_0x3e6fa9,_0x43e42c),_0x3e6fa9[_0x3b4ad3(0x35b)](_0x5dfe41,_0x10b13b+0x1);}[_0x291e41(0x436)](_0xd4412d,_0x106b8a){const _0x57e5ed=_0x291e41;var _0x1c937b;let _0x1e2b2a={'x':0x0,'y':0x0};if(!_0xd4412d||!_0x106b8a)return _0x1e2b2a;let _0x2d2557=this[_0x57e5ed(0x449)][_0x57e5ed(0x3a7)](_0xd4412d);if(!_0x2d2557||!_0x2d2557[_0x57e5ed(0x401)](_0x5635f6)[_0x57e5ed(0x2d8)](_0x106b8a))return _0x1e2b2a;let _0x49254b=_0x2d2557['with'](_0xbd2a68),_0x88f8ca=_0x49254b==null?void 0x0:_0x49254b[_0x57e5ed(0x212)]();if(!_0x88f8ca)return _0x1e2b2a;let _0x51b281=(_0x1c937b=this['_univerInstanceService'][_0x57e5ed(0x208)](_0xd4412d))==null?void 0x0:_0x1c937b['getSheetBySheetId'](_0x106b8a);if(!_0x51b281)return _0x1e2b2a;let _0x5cf396=_0x53677b(_0x88f8ca[_0x57e5ed(0x38c)],_0x88f8ca[_0x57e5ed(0x457)],_0x2d2557[_0x57e5ed(0x1f2)],_0x51b281);return _0x5cf396?{'x':_0x5cf396[_0x57e5ed(0x1cf)],'y':_0x5cf396[_0x57e5ed(0x3ea)]}:_0x1e2b2a;}[_0x291e41(0x245)](_0x4393d0,_0x53db08){const _0x4b764a=_0x291e41;var _0x4d0ef;let _0x62e7e3=(_0x4d0ef=this[_0x4b764a(0x394)][_0x4b764a(0x208)](_0x4393d0))==null?void 0x0:_0x4d0ef[_0x4b764a(0x2d1)](_0x53db08);return(_0x62e7e3==null?void 0x0:_0x62e7e3[_0x4b764a(0x3eb)]())??0x1;}[_0x291e41(0x2b3)](_0x6feae3,_0x1aac06,_0xe250d2,_0x1b7ce9,_0x321904){const _0x33dbed=_0x291e41;this[_0x33dbed(0x344)][_0x33dbed(0x34c)](),this[_0x33dbed(0x380)]['unsubscribe'](),this[_0x33dbed(0x1e3)][_0x33dbed(0x2b0)]();let _0x275ed6=this['_currentConnectionTarget'];this['_sheetBasicShapeConnectionPointController'][_0x33dbed(0x402)]();let _0x15b65e=this[_0x33dbed(0x436)](this[_0x33dbed(0x32f)],this['_subUnitId']),_0x393de5=this[_0x33dbed(0x245)](this[_0x33dbed(0x32f)],this[_0x33dbed(0x1df)]),_0xb9be11={'x':_0xe250d2[_0x33dbed(0x36f)]/_0x393de5+_0x15b65e['x'],'y':_0xe250d2[_0x33dbed(0x3b9)]/_0x393de5+_0x15b65e['y']},_0x3f6b6c=_0x275ed6?_0x275ed6['worldPoint']:_0xb9be11,_0x3546af=_0x1b7ce9?this[_0x33dbed(0x22f)]['getEndConnectInfo']():this[_0x33dbed(0x22f)][_0x33dbed(0x309)](),_0x12f93f=this[_0x33dbed(0x22f)][_0x33dbed(0x2ba)]();_0x3546af?this[_0x33dbed(0x3cb)](_0x3546af,_0x3f6b6c,_0x1b7ce9,_0x275ed6,_0x321904):this[_0x33dbed(0x289)](_0x1aac06,_0x3f6b6c,_0x1b7ce9,_0x275ed6,_0x321904,_0x12f93f),this[_0x33dbed(0x1d6)]=!0x1,this['_hasReset']=!0x1,this[_0x33dbed(0x211)]=null,_0x6feae3[_0x33dbed(0x1ef)]();}[_0x291e41(0x289)](_0x32c717,_0x421434,_0x54cf8f,_0x481af2,_0x4ce6f8,_0x2d3018){const _0x52f272=_0x291e41;let _0xa1d7e3=_0x2d3018===_0x206995[_0x52f272(0x34b)]||_0x2d3018===_0x206995[_0x52f272(0x348)],_0x295a40=_0x54cf8f?_0x421434:_0x32c717,_0x1c0c2a=_0x54cf8f?_0x32c717:_0x421434,_0x20e0da=this[_0x52f272(0x22f)][_0x52f272(0x20b)](),_0x5459eb=this[_0x52f272(0x22f)][_0x52f272(0x2ba)](),_0x34658a=_0x1105e7(_0x5459eb),_0x1e4d7a=_0x57b6f7[_0x52f272(0x38e)](_0x20e0da,_0x34658a),_0x32204a=_0xa1d7e3?_0x57b6f7[_0x52f272(0x37b)](_0x295a40,_0x1c0c2a):_0x57b6f7['computeConnectorResizeLayout'](_0x32c717,_0x421434,_0x54cf8f,_0x1e4d7a);_0x481af2?this['_executeConnectionCommand'](_0x32204a,_0x481af2,_0x54cf8f,_0x4ce6f8):this[_0x52f272(0x2e0)](_0x32204a,_0x4ce6f8);}[_0x291e41(0x3cb)](_0x2830d2,_0x7d6b2b,_0x14f402,_0x47312d,_0x15b6f2){const _0x135152=_0x291e41;let _0x17c70d=this['_getConnectPointInfo'](_0x2830d2);if(!_0x17c70d)return;let _0x19288b=_0x47312d?_0x47312d[_0x135152(0x2a0)]:this['_calculateFreeEndpointAngle'](_0x17c70d['point'],_0x7d6b2b),_0x722bcd;if(_0x47312d){let _0x2c66da=this[_0x135152(0x346)]['getDrawingByParam']({'unitId':_0x47312d['unitId'],'subUnitId':_0x47312d[_0x135152(0x21b)],'drawingId':_0x47312d[_0x135152(0x416)]});if(_0x2c66da!=null&&_0x2c66da[_0x135152(0x21c)]){let {left:_0x3abaf7=0x0,top:_0x2013dd=0x0,width:_0x3e7da8=0x0,height:_0xae495a=0x0,angle:_0xc58e5a}=_0x2c66da[_0x135152(0x21c)];_0x722bcd=_0x1eb82f({'left':_0x3abaf7,'top':_0x2013dd,'width':_0x3e7da8,'height':_0xae495a},_0xc58e5a||0x0);}else _0x722bcd={'left':_0x7d6b2b['x'],'top':_0x7d6b2b['y'],'width':0x0,'height':0x0};}else _0x722bcd={'left':_0x7d6b2b['x'],'top':_0x7d6b2b['y'],'width':0x0,'height':0x0};let _0x5d95d3={'point':_0x7d6b2b,'angle':_0x19288b,'bounds':_0x722bcd},_0xc28a33=_0x14f402?_0x5d95d3:_0x17c70d,_0x4e19d8=_0x14f402?_0x17c70d:_0x5d95d3,_0x243eee=this[_0x135152(0x22f)][_0x135152(0x2ba)](),_0xb73a27=_0xf06aa3(_0xc28a33,_0x4e19d8,_0x243eee);this[_0x135152(0x22f)][_0x135152(0x2b2)]();let _0x3564fb=_0x485b2f(_0xb73a27,_0x243eee);_0x47312d?this[_0x135152(0x1c7)](_0x3564fb,_0x47312d,_0x2830d2,_0x14f402,_0x15b6f2):this['_executeConnectedRouteResizeCommand'](_0x3564fb,_0x2830d2,_0x14f402,_0x15b6f2);}[_0x291e41(0x2bc)](_0x3109e3,_0x3790cf,_0x4575ab,_0x3f7193){const _0x2581cd=_0x291e41;let _0x4613b2=this['_activeShapeModel'][_0x2581cd(0x2d9)]()[_0x2581cd(0x2cb)],_0x16d737={..._0x4613b2},_0x2bd669={'shapeId':_0x3790cf[_0x2581cd(0x416)],'cxnIndex':_0x3790cf[_0x2581cd(0x239)]};_0x4575ab?_0x16d737['from']=_0x2bd669:_0x16d737['to']=_0x2bd669;let _0x2395b0=this[_0x2581cd(0x22f)]['getShapeType'](),_0x42b817=_0x485b2f(_0x3109e3[_0x2581cd(0x45f)],_0x2395b0),_0x118a26={'unitId':this['_unitId'],'subUnitId':this[_0x2581cd(0x1df)],'connectorShapeId':this['_activeShapeId'],'width':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x45d)],'height':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x257)],'left':_0x3109e3[_0x2581cd(0x26f)]['left'],'top':_0x3109e3['worldRect'][_0x2581cd(0x3cf)],'flipX':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x26b)]||!0x1,'flipY':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x1d2)]||!0x1,'newAdjustValues':_0x42b817['adjustValues'],'oldAdjustValues':_0x3f7193,'oldRelation':_0x4613b2,'newRelation':_0x16d737,'newLineType':_0x42b817[_0x2581cd(0x345)],'oldLineType':_0x2395b0};this[_0x2581cd(0x199)][_0x2581cd(0x2e1)](_0x54081a['id'],_0x118a26);}['_executeResizeCommand'](_0x30c35b,_0x39d99a){const _0x204d2c=_0x291e41;let _0x1a3884=this[_0x204d2c(0x22f)]['getShapeType'](),_0x583863=_0x485b2f(_0x30c35b[_0x204d2c(0x45f)],_0x1a3884),_0x23acf0={'unitId':this[_0x204d2c(0x32f)],'subUnitId':this[_0x204d2c(0x1df)],'shapeId':this[_0x204d2c(0x41e)],'width':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x45d)],'height':_0x30c35b['worldRect'][_0x204d2c(0x257)],'left':_0x30c35b[_0x204d2c(0x26f)]['left'],'top':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x3cf)],'flipX':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x26b)]||!0x1,'flipY':_0x30c35b[_0x204d2c(0x26f)]['flipY']||!0x1,'angle':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x2a0)]||0x0,'newAdjustValues':_0x583863[_0x204d2c(0x342)],'oldAdjustValues':_0x39d99a,'newLineType':_0x583863[_0x204d2c(0x345)],'oldLineType':_0x1a3884};this[_0x204d2c(0x199)][_0x204d2c(0x2e1)](_0x9d6709['id'],_0x23acf0);}['_executeConnectedRouteConnectionCommand'](_0x4673f2,_0x54c525,_0x1a4992,_0x4d8ca8,_0x2696b6){const _0x817513=_0x291e41;let _0x393c68=this['_activeShapeModel'][_0x817513(0x2d9)]()[_0x817513(0x2cb)],_0x48272c={..._0x393c68},_0xff41b7={'shapeId':_0x54c525[_0x817513(0x416)],'cxnIndex':_0x54c525[_0x817513(0x239)]};_0x4d8ca8?(_0x48272c['from']=_0xff41b7,_0x48272c['to']=_0x1a4992):(_0x48272c[_0x817513(0x354)]=_0x1a4992,_0x48272c['to']=_0xff41b7);let _0x5ea7be={'unitId':this[_0x817513(0x32f)],'subUnitId':this[_0x817513(0x1df)],'connectorShapeId':this[_0x817513(0x41e)],'width':_0x4673f2['worldRect'][_0x817513(0x45d)],'height':_0x4673f2[_0x817513(0x26f)][_0x817513(0x257)],'left':_0x4673f2[_0x817513(0x26f)]['left'],'top':_0x4673f2['worldRect'][_0x817513(0x3cf)],'flipX':_0x4673f2[_0x817513(0x26f)][_0x817513(0x26b)]||!0x1,'flipY':_0x4673f2['worldRect'][_0x817513(0x1d2)]||!0x1,'oldAdjustValues':_0x2696b6,'newAdjustValues':_0x4673f2[_0x817513(0x342)],'newLineType':_0x4673f2[_0x817513(0x345)],'rotation':_0x4673f2['rotation'],'oldRelation':_0x393c68,'newRelation':_0x48272c};this['_commandService'][_0x817513(0x2e1)](_0x54081a['id'],_0x5ea7be);}[_0x291e41(0x2f9)](_0x301bdd,_0x134c22,_0x153b66,_0x595412){const _0x4c2fef=_0x291e41;let _0x170a6b=this[_0x4c2fef(0x22f)][_0x4c2fef(0x2d9)]()['relation'],_0x1bca1c={};_0x153b66?(_0x1bca1c['to']=_0x134c22,_0x1bca1c[_0x4c2fef(0x354)]=void 0x0):(_0x1bca1c[_0x4c2fef(0x354)]=_0x134c22,_0x1bca1c['to']=void 0x0);let _0x1345ef={'unitId':this[_0x4c2fef(0x32f)],'subUnitId':this[_0x4c2fef(0x1df)],'connectorShapeId':this[_0x4c2fef(0x41e)],'width':_0x301bdd['worldRect'][_0x4c2fef(0x45d)],'height':_0x301bdd['worldRect'][_0x4c2fef(0x257)],'left':_0x301bdd[_0x4c2fef(0x26f)]['left'],'top':_0x301bdd[_0x4c2fef(0x26f)][_0x4c2fef(0x3cf)],'flipX':_0x301bdd['worldRect']['flipX']||!0x1,'flipY':_0x301bdd[_0x4c2fef(0x26f)][_0x4c2fef(0x1d2)]||!0x1,'oldAdjustValues':_0x595412,'newAdjustValues':_0x301bdd['adjustValues'],'newLineType':_0x301bdd[_0x4c2fef(0x345)],'rotation':_0x301bdd[_0x4c2fef(0x44a)],'oldRelation':_0x170a6b,'newRelation':_0x1bca1c};this['_commandService'][_0x4c2fef(0x2e1)](_0x54081a['id'],_0x1345ef);}['_attachConnectorObjectEvent'](_0x3d41b9,_0x255770,_0x3cf8aa){const _0x45640d=_0x291e41;this[_0x45640d(0x432)](_0x53ca46(_0x3d41b9[_0x45640d(0x1e7)]['subscribeEvent']((_0x3dea8c,_0x5467ad)=>{const _0x462b13=_0x45640d;let _0xd4f949=_0x3d41b9['getDrawingSearch']();if(this['_activeShapeModel']=this[_0x462b13(0x408)][_0x462b13(0x32d)](_0xd4f949[_0x462b13(0x351)],_0xd4f949[_0x462b13(0x21b)],_0xd4f949[_0x462b13(0x1dd)]),!this['_activeShapeModel'])return;let _0x418caf={};this[_0x462b13(0x22f)][_0x462b13(0x36e)]()['forEach'](_0x3da3c1=>{const _0x3569a7=_0x462b13;let _0x126576=this['_activeShapeModel'][_0x3569a7(0x1c9)](_0x3da3c1);_0x126576!==void 0x0&&(_0x418caf[_0x3da3c1]=_0x126576);});let _0x33f132=this[_0x462b13(0x2ca)]();if(!_0x33f132)return;this[_0x462b13(0x40c)]={..._0x33f132};let _0x3ae506=new _0x57b6f7(this[_0x462b13(0x40c)]),_0x4af571=_0x38d621({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x462b13(0x41e)]}),_0x27c81a=_0x255770[_0x462b13(0x292)](_0x4af571);this[_0x462b13(0x1d6)]=!0x0,_0x255770['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController']['startConnectionDetection'](_0x255770,this['_unitId'],this[_0x462b13(0x1df)],this[_0x462b13(0x41e)]),this[_0x462b13(0x211)]=null;let _0x46d805=this[_0x462b13(0x22f)]['getConnectorLinePoints'](),_0x21904c=_0x46d805[0x0],_0x346f35=_0x46d805[_0x46d805[_0x462b13(0x3c3)]-0x1],_0x496529=_0x3cf8aa?_0x3ae506[_0x462b13(0x404)](_0x346f35):_0x3ae506[_0x462b13(0x404)](_0x21904c);this[_0x462b13(0x344)]=_0x255770[_0x462b13(0x349)][_0x462b13(0x1a9)]((_0x1328fc,_0x9527ff)=>{const _0x53040e=_0x462b13;if(!this[_0x53040e(0x1d6)]||!this[_0x53040e(0x22f)])return;this[_0x53040e(0x229)]||=(this['_sheetShapeAdjustController'][_0x53040e(0x228)](),this[_0x53040e(0x22f)][_0x53040e(0x2a9)](),!0x0);let _0x4d4e87=this[_0x53040e(0x436)](this[_0x53040e(0x32f)],this[_0x53040e(0x1df)]),_0x296967=this[_0x53040e(0x245)](this[_0x53040e(0x32f)],this['_subUnitId']),_0x11e29e={'x':_0x1328fc[_0x53040e(0x36f)]/_0x296967+_0x4d4e87['x'],'y':_0x1328fc[_0x53040e(0x3b9)]/_0x296967+_0x4d4e87['y']},_0x1dfeef=this[_0x53040e(0x429)]['updateConnectionDetection'](_0x11e29e);if(_0x1dfeef){let {shapeId:_0x11a11f,unitId:_0x5f570d,subUnitId:_0x56f292}=_0x1dfeef;if(_0x11a11f&&_0x5f570d&&_0x56f292){let _0x2687a5=_0x38d621({'unitId':_0x5f570d,'subUnitId':_0x56f292,'drawingId':_0x11a11f});_0x1dfeef[_0x53040e(0x2a0)]=(_0x255770['getObjectIncludeInGroup'](_0x2687a5)['angle']||0x0)+_0x1dfeef[_0x53040e(0x2a0)];}}this[_0x53040e(0x211)]=_0x1dfeef;let _0x146b77=_0x3cf8aa?this['_activeShapeModel'][_0x53040e(0x386)]():this[_0x53040e(0x22f)][_0x53040e(0x309)]();_0x146b77?this['_handleConnectedEndpointMove'](_0x146b77,_0x11e29e,_0x3cf8aa,_0x27c81a,_0x3d41b9):this['_handleFreeEndpointMove'](_0x11e29e,_0x496529,_0x3cf8aa,_0x27c81a,_0x3d41b9);}),this[_0x462b13(0x380)]=_0x255770[_0x462b13(0x274)][_0x462b13(0x1a9)]((_0x3983eb,_0x37099f)=>{const _0x47e477=_0x462b13;this[_0x47e477(0x2b3)](_0x255770,_0x496529,_0x3983eb,_0x3cf8aa,_0x418caf);}),_0x5467ad[_0x462b13(0x2a5)]();})));}[_0x291e41(0x381)](_0x5d4c80,_0x5dfd66,_0x243082){const _0x49907a=_0x291e41;let _0x218757=this['_sheetsShapeService'][_0x49907a(0x33a)](_0x5d4c80,_0x5dfd66,_0x243082);if(!_0x218757||_0x218757[_0x49907a(0x3c3)]===0x0)return;let _0x11ce84=this[_0x49907a(0x449)][_0x49907a(0x3a7)](_0x5d4c80);if(!_0x11ce84)return;let {scene:_0x285d7d}=_0x11ce84;for(let _0x3c9e6f of _0x218757){let _0x466cd0=_0x3c9e6f['lineShapeId'],_0x584aa7=this[_0x49907a(0x408)][_0x49907a(0x32d)](_0x5d4c80,_0x5dfd66,_0x466cd0);if(!_0x584aa7)continue;let _0x3a730c=_0x584aa7[_0x49907a(0x309)](),_0x58727e=_0x584aa7[_0x49907a(0x386)](),_0x45b7aa=(_0x3a730c==null?void 0x0:_0x3a730c['shapeId'])===_0x243082,_0x14d24c=_0x38d621({'unitId':_0x5d4c80,'subUnitId':_0x5dfd66,'drawingId':_0x466cd0}),_0x3fda81=_0x285d7d[_0x49907a(0x292)](_0x14d24c);if(!_0x3fda81)continue;let _0x104e35=this[_0x49907a(0x346)][_0x49907a(0x312)]({'unitId':_0x5d4c80,'subUnitId':_0x5dfd66,'drawingId':_0x466cd0});_0x104e35!=null&&_0x104e35[_0x49907a(0x21c)]&&(_0x3a730c&&_0x58727e?this[_0x49907a(0x20a)](_0x5d4c80,_0x5dfd66,_0x466cd0,_0x584aa7,_0x3a730c,_0x58727e,_0x3fda81):this[_0x49907a(0x3be)](_0x5d4c80,_0x5dfd66,_0x466cd0,_0x584aa7,_0x45b7aa?_0x3a730c:_0x58727e,_0x45b7aa,_0x104e35,_0x3fda81));}}['_rerouteConnectorLine'](_0x2098af,_0x1f47cd,_0x5ab562,_0x14404b,_0x144ef8,_0x2a9b6f,_0x33c214){const _0x488b8a=_0x291e41;let _0x1b30b1=this['_unitId'],_0x6d9824=this[_0x488b8a(0x1df)];this[_0x488b8a(0x32f)]=_0x2098af,this[_0x488b8a(0x1df)]=_0x1f47cd;let _0x601c4=this[_0x488b8a(0x224)](_0x144ef8),_0x2e32e9=this[_0x488b8a(0x224)](_0x2a9b6f);if(this[_0x488b8a(0x32f)]=_0x1b30b1,this[_0x488b8a(0x1df)]=_0x6d9824,!_0x601c4||!_0x2e32e9)return;let _0x255427=_0x14404b['getShapeType'](),_0x3b1f48=_0xf06aa3(_0x601c4,_0x2e32e9,_0x255427);_0x3b1f48&&_0x14404b[_0x488b8a(0x247)](_0x3b1f48);let _0x3af657=_0x485b2f(_0x3b1f48,_0x255427);_0x3af657[_0x488b8a(0x345)]!==_0x255427&&_0x14404b[_0x488b8a(0x44c)](_0x3af657[_0x488b8a(0x345)]),_0x14404b[_0x488b8a(0x2a9)]();for(let [_0x48388b,_0x20c301]of Object[_0x488b8a(0x384)](_0x3af657[_0x488b8a(0x342)]))_0x14404b['setAdjustValueByName'](_0x48388b,_0x20c301);_0x14404b['updateContext']({'width':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x45d)],'height':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x257)]}),_0x33c214[_0x488b8a(0x220)]({'flipX':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x26b)],'flipY':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x1d2)],'left':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x337)],'top':_0x3af657['worldRect']['top'],'width':_0x3af657[_0x488b8a(0x26f)]['width'],'height':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x257)],'angle':_0x3af657[_0x488b8a(0x44a)]}),_0x14404b[_0x488b8a(0x2b2)]();}[_0x291e41(0x3be)](_0x508731,_0x10cb50,_0x1a95f1,_0x20da4e,_0x590fd1,_0xa3978c,_0x1eba7d,_0x40223d){const _0x1fdd62=_0x291e41;let _0x28940a=this['_unitId'],_0x51e142=this[_0x1fdd62(0x1df)];this['_unitId']=_0x508731,this[_0x1fdd62(0x1df)]=_0x10cb50;let _0x5ed557=this[_0x1fdd62(0x224)](_0x590fd1);if(this[_0x1fdd62(0x32f)]=_0x28940a,this[_0x1fdd62(0x1df)]=_0x51e142,!_0x5ed557)return;let {left:_0x2d7775=0x0,top:_0x36cd15=0x0,width:_0x38c079=0x0,height:_0x5707e4=0x0,flipX:_0xa44c08=!0x1,flipY:_0x2e5064=!0x1}=_0x1eba7d[_0x1fdd62(0x21c)],_0x5165bb=_0x20da4e[_0x1fdd62(0x20b)]();if(_0x5165bb['length']<0x2)return;let _0x56dcd5=new _0x57b6f7({'left':_0x2d7775,'top':_0x36cd15,'width':_0x38c079,'height':_0x5707e4,'flipX':_0xa44c08,'flipY':_0x2e5064}),_0x3127ce=_0xa3978c?_0x5165bb[_0x5165bb[_0x1fdd62(0x3c3)]-0x1]:_0x5165bb[0x0],_0x411fdd=_0x56dcd5[_0x1fdd62(0x404)](_0x3127ce),_0x36c16c=_0x57b6f7[_0x1fdd62(0x206)](_0x411fdd,_0x5ed557[_0x1fdd62(0x3e5)],!_0xa3978c);_0x40223d[_0x1fdd62(0x220)]({'flipX':_0x36c16c[_0x1fdd62(0x26f)]['flipX'],'flipY':_0x36c16c[_0x1fdd62(0x26f)]['flipY'],'left':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x337)],'top':_0x36c16c[_0x1fdd62(0x26f)]['top'],'width':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x45d)],'height':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x257)],'angle':_0x36c16c[_0x1fdd62(0x26f)]['angle']}),_0x40223d[_0x1fdd62(0x293)](!0x0);}[_0x291e41(0x31f)](){const _0x9d7689=_0x291e41;this[_0x9d7689(0x1ad)]['length']!==0x0&&(this[_0x9d7689(0x1ad)][_0x9d7689(0x44b)](_0x294479=>{const _0x2845d7=_0x9d7689;_0x294479[_0x2845d7(0x20d)]();}),this[_0x9d7689(0x1ad)]=[]);}[_0x291e41(0x1d0)](){const _0x16971c=_0x291e41;let _0xf70b61=this[_0x16971c(0x394)][_0x16971c(0x262)](_0x3c82b9[_0x16971c(0x35c)]);this[_0x16971c(0x432)](_0xf70b61[_0x16971c(0x24c)](_0x17931b(_0x418d5e=>_0x418d5e?_0x418d5e[_0x16971c(0x3bc)][_0x16971c(0x24c)](_0x17931b(_0x1c6483=>{const _0x26ebe0=_0x16971c;if(!_0x1c6483)return _0x257bb9;let _0x5dcec5=_0x418d5e['getUnitId'](),_0x2f858a=this[_0x26ebe0(0x449)]['getRenderUnitById'](_0x5dcec5),_0x85567a=_0x2f858a==null?void 0x0:_0x2f858a[_0x26ebe0(0x1f2)];return _0x85567a?_0x413c25(_0x85567a):_0x257bb9;})):_0x257bb9))[_0x16971c(0x456)](_0x3cf5a4=>{const _0xdeb119=_0x16971c;let _0xe689ab=_0x3cf5a4[_0xdeb119(0x39e)]();this['disposeWithMe'](_0x3cf5a4[_0xdeb119(0x349)][_0xdeb119(0x1a9)](_0x9cffdc=>{const _0x2f94b0=_0xdeb119;this[_0x2f94b0(0x30e)]&&this[_0x2f94b0(0x41e)]&&this[_0x2f94b0(0x31f)]();})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x36c)][_0xdeb119(0x456)](_0x5a0e29=>{const _0xb7ddf8=_0xdeb119;let {objects:_0x314749}=_0x5a0e29;this[_0xb7ddf8(0x31f)](),_0x314749!==null&&_0x314749[_0xb7ddf8(0x215)]===0x1&&_0x314749[_0xb7ddf8(0x3f3)]()['next']()[_0xb7ddf8(0x3ec)]instanceof J&&(this[_0xb7ddf8(0x30e)]=!0x0);})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x2f2)][_0xdeb119(0x456)](_0x3f450f=>{const _0x4561f5=_0xdeb119;this[_0x4561f5(0x30e)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0xdeb119(0x432)](_0x3cf5a4['onPointerUp$'][_0xdeb119(0x1a9)](()=>{const _0x5edbde=_0xdeb119;this[_0x5edbde(0x30e)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x398)][_0xdeb119(0x456)](()=>{const _0x19c43e=_0xdeb119;this[_0x19c43e(0x32f)]&&this[_0x19c43e(0x1df)]&&this[_0x19c43e(0x41e)]&&this[_0x19c43e(0x346)][_0x19c43e(0x312)]({'unitId':this[_0x19c43e(0x32f)],'subUnitId':this[_0x19c43e(0x1df)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x291e41(0x3f4)](){const _0x5a9c64=_0x291e41;this['disposeWithMe'](this[_0x5a9c64(0x346)][_0x5a9c64(0x1d8)][_0x5a9c64(0x456)](_0x1cb1d9=>{const _0x298935=_0x5a9c64;if(_0x1cb1d9['length']===0x1){let _0x4b94c8=_0x1cb1d9[0x0];if(_0x4b94c8['drawingType']===_0x40fd85[_0x298935(0x43a)]){let _0x319a73=this['_sheetsShapeService'][_0x298935(0x32d)](_0x4b94c8[_0x298935(0x351)],_0x4b94c8[_0x298935(0x21b)],_0x4b94c8[_0x298935(0x1dd)]);if(_0x319a73&&_0x5184c7(_0x319a73['getShapeType']())){this[_0x298935(0x41e)]=_0x4b94c8['drawingId'],this[_0x298935(0x32f)]=_0x4b94c8[_0x298935(0x351)],this[_0x298935(0x1df)]=_0x4b94c8[_0x298935(0x21b)],this[_0x298935(0x31f)](),this[_0x298935(0x270)]();return;}}}this[_0x298935(0x41e)]=void 0x0,this[_0x298935(0x32f)]=void 0x0,this[_0x298935(0x1df)]=void 0x0,this[_0x298935(0x31f)]();})),this[_0x5a9c64(0x432)](this[_0x5a9c64(0x346)][_0x5a9c64(0x1c3)][_0x5a9c64(0x456)](_0x3b750d=>{const _0x139418=_0x5a9c64;if(_0x3b750d['length']===0x1){var _0x3edf05;let _0x176df7=_0x3b750d[0x0],_0x3b7e31=(_0x3edf05=this[_0x139418(0x346)][_0x139418(0x312)](_0x176df7))==null?void 0x0:_0x3edf05[_0x139418(0x209)];_0x3b7e31===_0x40fd85[_0x139418(0x43a)]&&_0x176df7[_0x139418(0x1dd)]===this[_0x139418(0x41e)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x139418(0x270)]()):!this[_0x139418(0x41e)]&&_0x3b7e31===_0x40fd85[_0x139418(0x43a)]&&this[_0x139418(0x381)](_0x176df7[_0x139418(0x351)],_0x176df7[_0x139418(0x21b)],_0x176df7[_0x139418(0x1dd)]);}})),this[_0x5a9c64(0x432)](this['_drawingManagerService'][_0x5a9c64(0x31c)][_0x5a9c64(0x456)](_0x5054b1=>{const _0x22fe74=_0x5a9c64;for(let _0x1c0504 of _0x5054b1){let {drawingId:_0x25df15}=_0x1c0504;if(this[_0x22fe74(0x41e)]===_0x25df15){this['_reset']();return;}}}));}[_0x291e41(0x353)](_0x3e3a0e,_0x16a105,_0x386a61,_0x51d867,_0x42b8f6){const _0x976b10=_0x291e41;var _0x3120f6;if(!this[_0x976b10(0x22f)])return;let _0x5a93f8=this['_getConnectPointInfo'](_0x3e3a0e);if(!_0x5a93f8)return;let _0x18e2c3=this[_0x976b10(0x211)]?this['_currentConnectionTarget'][_0x976b10(0x2f6)]:_0x16a105,_0x296453=this[_0x976b10(0x211)]?this[_0x976b10(0x211)]['angle']:this['_calculateFreeEndpointAngle'](_0x5a93f8[_0x976b10(0x3e5)],_0x18e2c3),_0x86f25b;if(this['_currentConnectionTarget']){let _0x1d84b3=this[_0x976b10(0x346)][_0x976b10(0x312)]({'unitId':this['_currentConnectionTarget'][_0x976b10(0x351)],'subUnitId':this[_0x976b10(0x211)][_0x976b10(0x21b)],'drawingId':this[_0x976b10(0x211)]['shapeId']});if(_0x1d84b3!=null&&_0x1d84b3['transform']){let {left:_0x15d3c3=0x0,top:_0x1b21f9=0x0,width:_0x2e0ba8=0x0,height:_0x3c10b8=0x0,angle:_0x1ebe31}=_0x1d84b3[_0x976b10(0x21c)];_0x86f25b=_0x1eb82f({'left':_0x15d3c3,'top':_0x1b21f9,'width':_0x2e0ba8,'height':_0x3c10b8},_0x1ebe31||0x0);}else _0x86f25b={'left':_0x18e2c3['x'],'top':_0x18e2c3['y'],'width':0x0,'height':0x0};}else _0x86f25b={'left':_0x18e2c3['x'],'top':_0x18e2c3['y'],'width':0x0,'height':0x0};let _0xaa98d9={'point':_0x18e2c3,'angle':_0x296453,'bounds':_0x86f25b},_0x354b7b=_0x386a61?_0xaa98d9:_0x5a93f8,_0x54781b=_0x386a61?_0x5a93f8:_0xaa98d9,_0xeea2a7=this['_activeShapeModel']['getShapeType'](),_0x4df63c=_0xf06aa3(_0x354b7b,_0x54781b,_0xeea2a7);_0x4df63c&&this['_activeShapeModel'][_0x976b10(0x247)](_0x4df63c);let _0x4483d1=_0x485b2f(_0x4df63c,_0xeea2a7);_0x4483d1['lineType']!==_0xeea2a7&&this[_0x976b10(0x22f)][_0x976b10(0x44c)](_0x4483d1[_0x976b10(0x345)]);for(let [_0x53b54f,_0x48eaa5]of Object[_0x976b10(0x384)](_0x4483d1['adjustValues']))this[_0x976b10(0x22f)][_0x976b10(0x3d9)](_0x53b54f,_0x48eaa5);this[_0x976b10(0x22f)][_0x976b10(0x31e)]({'width':_0x4483d1[_0x976b10(0x26f)]['width'],'height':_0x4483d1['worldRect'][_0x976b10(0x257)]}),_0x51d867[_0x976b10(0x220)]({'flipX':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x26b)],'flipY':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x1d2)],'left':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x337)],'top':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x3cf)],'width':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x45d)],'height':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x257)],'angle':_0x4483d1['rotation']}),_0x51d867[_0x976b10(0x293)](!0x0);let _0x2a8d63=((_0x3120f6=this[_0x976b10(0x211)])==null?void 0x0:_0x3120f6[_0x976b10(0x2f6)])??_0x16a105;_0x42b8f6[_0x976b10(0x220)]({'left':_0x2a8d63['x']-_0x179988[_0x976b10(0x2ed)],'top':_0x2a8d63['y']-_0x179988[_0x976b10(0x2ed)]});}[_0x291e41(0x412)](_0x2430e3,_0x415079,_0x2341c6,_0x321004,_0x49c1d6){const _0x4316d0=_0x291e41;var _0x6af495,_0x210dbb;let _0x2b9544=((_0x6af495=this['_currentConnectionTarget'])==null?void 0x0:_0x6af495[_0x4316d0(0x2f6)])??_0x2430e3,_0x2b8577=_0x57b6f7[_0x4316d0(0x206)](_0x415079,_0x2b9544,_0x2341c6);_0x321004[_0x4316d0(0x220)]({'flipX':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x26b)],'flipY':_0x2b8577['worldRect']['flipY'],'left':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x337)],'top':_0x2b8577[_0x4316d0(0x26f)]['top'],'width':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x45d)],'height':_0x2b8577['worldRect'][_0x4316d0(0x257)],'angle':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x2a0)]});let _0x427ee6=((_0x210dbb=this['_currentConnectionTarget'])==null?void 0x0:_0x210dbb['worldPoint'])??_0x2430e3;_0x49c1d6[_0x4316d0(0x220)]({'left':_0x427ee6['x']-_0x179988[_0x4316d0(0x2ed)],'top':_0x427ee6['y']-_0x179988['cxnPointRadius']});}['_getConnectPointInfo'](_0xe57cd9){const _0x11357b=_0x291e41;if(!this[_0x11357b(0x32f)]||!this[_0x11357b(0x1df)])return null;let {shapeId:_0x5b376d,cxnIndex:_0x55b783}=_0xe57cd9,_0x48dd25=this[_0x11357b(0x408)][_0x11357b(0x32d)](this[_0x11357b(0x32f)],this[_0x11357b(0x1df)],_0x5b376d);if(!_0x48dd25)return null;let _0x1f78d4=this[_0x11357b(0x346)][_0x11357b(0x312)]({'unitId':this[_0x11357b(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':_0x5b376d});if(!(_0x1f78d4!=null&&_0x1f78d4[_0x11357b(0x21c)]))return null;let {left:_0x5ea7c2=0x0,top:_0x591647=0x0,width:_0x260bb3=0x0,height:_0x1d9751=0x0,flipX:_0x4d863c=!0x1,flipY:_0x1e0d99=!0x1,angle:_0x254584}=_0x1f78d4[_0x11357b(0x21c)];_0x48dd25[_0x11357b(0x31e)]({'width':_0x260bb3,'height':_0x1d9751});let _0x4241e2=_0x48dd25['getConnectionSiteList']()[_0x11357b(0x1e4)](_0x139719=>_0x139719['index']===_0x55b783);if(!_0x4241e2)return null;let _0x49a656=_0x4d863c?_0x260bb3-_0x4241e2['x']:_0x4241e2['x'],_0x57643d=_0x1e0d99?_0x1d9751-_0x4241e2['y']:_0x4241e2['y'];if(_0x254584!==0x0&&_0x254584!=null){let _0x14cb84=_0x254584*Math['PI']/0xb4,_0x409a6f=Math[_0x11357b(0x375)](_0x14cb84),_0x4fbc33=Math[_0x11357b(0x3ae)](_0x14cb84),_0x298fbe=_0x260bb3/0x2,_0x5e21a6=_0x1d9751/0x2,_0x3ed78d=_0x49a656-_0x298fbe,_0x21e7e2=_0x57643d-_0x5e21a6;_0x49a656=_0x298fbe+_0x3ed78d*_0x409a6f-_0x21e7e2*_0x4fbc33,_0x57643d=_0x5e21a6+_0x3ed78d*_0x4fbc33+_0x21e7e2*_0x409a6f;}_0x49a656+=_0x5ea7c2,_0x57643d+=_0x591647;let _0x1fe4c7=_0x4241e2[_0x11357b(0x308)]/0xea60;_0x4d863c&&(_0x1fe4c7=0xb4-_0x1fe4c7),_0x1e0d99&&(_0x1fe4c7=-_0x1fe4c7),_0x1fe4c7+=_0x254584||0x0,_0x1fe4c7=(_0x1fe4c7%0x168+0x168)%0x168;let _0x1bf5f9=_0x1eb82f({'left':_0x5ea7c2,'top':_0x591647,'width':_0x260bb3,'height':_0x1d9751},_0x254584||0x0);return{'point':{'x':_0x49a656,'y':_0x57643d},'angle':_0x1fe4c7,'bounds':_0x1bf5f9};}[_0x291e41(0x27e)](_0x391e76,_0x5aba38){const _0x268cd5=_0x291e41;let _0x5a879d=_0x5aba38['x']-_0x391e76['x'],_0x122fb8=_0x5aba38['y']-_0x391e76['y'];return Math[_0x268cd5(0x40f)](_0x5a879d)>=Math['abs'](_0x122fb8)?_0x5a879d>=0x0?0xb4:0x0:_0x122fb8>=0x0?0x10e:0x5a;}[_0x291e41(0x20e)](){const _0x3501e7=_0x291e41;this[_0x3501e7(0x41e)]=void 0x0,this[_0x3501e7(0x32f)]=void 0x0,this[_0x3501e7(0x1df)]=void 0x0,this[_0x3501e7(0x31f)]();}[_0x291e41(0x20d)](){const _0x4994e5=_0x291e41;this[_0x4994e5(0x31f)](),super[_0x4994e5(0x20d)]();}};ga=X([Y(0x1,_0x54c16f),Y(0x2,_0x1158d5),Y(0x3,_0x28cffc),Y(0x4,_0x44b74c),Y(0x5,_0x5b79b4(_0x1e1f0c)),Y(0x6,_0x5b79b4(Ir)),Y(0x7,_0x5b79b4(pa))],ga);let _a=class extends _0x557a26{constructor(_0x4e0f87,_0x484f51,_0x2b28dc){const _0x319b86=_0x291e41;super(),this[_0x319b86(0x19d)]=_0x4e0f87,this[_0x319b86(0x346)]=_0x484f51,this[_0x319b86(0x233)]=_0x2b28dc,this[_0x319b86(0x1ee)]();}[_0x291e41(0x1ee)](){const _0x1b5a46=_0x291e41;this['disposeWithMe'](this[_0x1b5a46(0x19d)]['interceptor'][_0x1b5a46(0x2f4)](this[_0x1b5a46(0x19d)]['interceptor'][_0x1b5a46(0x203)]()[_0x1b5a46(0x328)],{'handler':(_0x74bedb,_0x43bf51,_0x249793)=>{const _0x5b2f75=_0x1b5a46;var _0x3cf56d;let {unitId:_0x27d91e,subUnitId:_0x377578,scene:_0x27ebe9,resourceCollector:_0x2c396d}=_0x43bf51,_0x58c122=(_0x3cf56d=this[_0x5b2f75(0x346)][_0x5b2f75(0x258)](_0x27d91e))==null?void 0x0:_0x3cf56d[_0x377578];return _0x58c122==null||_0x58c122[_0x5b2f75(0x3fc)][_0x5b2f75(0x44b)](_0x23dbef=>{const _0x1cf098=_0x5b2f75;let _0x3ca4ea=_0x58c122[_0x1cf098(0x305)][_0x23dbef];_0x3ca4ea[_0x1cf098(0x209)]===_0x40fd85['DRAWING_SHAPE']&&!_0x3ca4ea[_0x1cf098(0x314)]&&this[_0x1cf098(0x233)][_0x1cf098(0x301)](_0x3ca4ea,_0x27ebe9,{'resourceCollector':_0x2c396d});}),_0x249793(_0x74bedb);}}));}};_a=X([Y(0x0,_0x5b79b4(_0x344f2a)),Y(0x1,_0x28cffc),Y(0x2,_0x5b79b4(Z))],_a);let va=class extends _0x557a26{constructor(_0x540dfa,_0x29fedd,_0x3ff7b5){const _0x40209c=_0x291e41;super(),this[_0x40209c(0x199)]=_0x540dfa,this[_0x40209c(0x202)]=_0x29fedd,this[_0x40209c(0x350)]=_0x3ff7b5,this[_0x40209c(0x446)]();}[_0x291e41(0x446)](){const _0x3f9164=_0x291e41;this[_0x3f9164(0x432)](this[_0x3f9164(0x199)][_0x3f9164(0x3fa)](_0x34f2b1=>{const _0x4cbec1=_0x3f9164;let _0x279e7e,_0x3d1a2e;if(_0x34f2b1['id']===_0x2b8b47['id']||_0x34f2b1['id']===_0x11a9aa['id']||_0x34f2b1['id']===_0x54081a['id']){let _0x30457a=_0x34f2b1['params'];_0x279e7e=_0x30457a[_0x4cbec1(0x351)],_0x3d1a2e=_0x30457a['subUnitId'];}_0x279e7e&&_0x3d1a2e&&(this[_0x4cbec1(0x350)][_0x4cbec1(0x214)]({'workbookTypes':[_0x20b096],'worksheetTypes':[_0x1ea295]},_0x279e7e,_0x3d1a2e)||this[_0x4cbec1(0x350)]['blockExecuteWithoutPermission'](this[_0x4cbec1(0x202)]['t'](_0x4cbec1(0x317))));}));}};va=X([Y(0x0,_0x5b79b4(_0x54c16f)),Y(0x1,_0x5b79b4(_0x13738a)),Y(0x2,_0x5b79b4(_0x277cdb))],va);let ya=class{constructor(_0xda70f8){const _0x1bd2a2=_0x291e41;this[_0x1bd2a2(0x449)]=_0xda70f8;}[_0x291e41(0x281)](_0x3f26cf,_0x4dfe94){const _0x581bfa=_0x291e41;let _0x10e5c2=this['_renderManagerService'][_0x581bfa(0x3a7)](_0x3f26cf['unitId']),_0xbbdf7f=_0x10e5c2==null?void 0x0:_0x10e5c2[_0x581bfa(0x1f2)];if(!_0xbbdf7f)return;let _0x148faa=_0x38d621(_0x3f26cf),_0x5b9eb9=_0xbbdf7f[_0x581bfa(0x292)](_0x148faa);_0x5b9eb9==null||_0x5b9eb9[_0x581bfa(0x3a1)](_0x4dfe94);}};ya=X([Y(0x0,_0x1158d5)],ya);let ba=class extends _0x1f6119{constructor(_0x319cac=Zi,_0x410752,_0x9b2485,_0x2a74ec,_0x390b9b){const _0x354542=_0x291e41;super(),this['_config']=_0x319cac,this['_injector']=_0x410752,this[_0x354542(0x199)]=_0x9b2485,this['_configService']=_0x2a74ec,this['_renderManagerService']=_0x390b9b;let {..._0xc23633}=_0x45bd5a({},Zi,this[_0x354542(0x28d)]);this[_0x354542(0x40d)][_0x354542(0x458)](Xi,_0xc23633),this[_0x354542(0x1b0)]();}[_0x291e41(0x227)](){const _0x199d1a=_0x291e41;this[_0x199d1a(0x369)][_0x199d1a(0x322)]([ra]),this[_0x199d1a(0x369)]['get'](ra),_0x2cbcdc(this[_0x199d1a(0x369)],[[sa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va]]);}[_0x291e41(0x225)](){const _0x450f71=_0x291e41;_0x2cbcdc(this[_0x450f71(0x369)],[[pa],[Ir],[ma]]),_0x125864(this['_injector'],[[ma],[Ir]]),[[pa],[Qi],[ga],[aa]]['forEach'](_0x509b40=>{const _0x3a4eb8=_0x450f71;this[_0x3a4eb8(0x432)](this['_renderManagerService'][_0x3a4eb8(0x410)](_0x3c82b9[_0x3a4eb8(0x35c)],_0x509b40));});}['onRendered'](){const _0xc42f56=_0x291e41;_0x125864(this[_0xc42f56(0x369)],[[sa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va]]);}['onSteady'](){const _0x14b6b1=_0x291e41;this[_0x14b6b1(0x369)]['get'](sa)[_0x14b6b1(0x366)]();}['_initCommands'](){const _0xfcdd9d=_0x291e41;[Rr,K,Lr,Yi][_0xfcdd9d(0x44b)](_0x5168f2=>this[_0xfcdd9d(0x432)](this[_0xfcdd9d(0x199)][_0xfcdd9d(0x2ac)](_0x5168f2)));}};q(ba,_0x291e41(0x28c),_0x3c82b9[_0x291e41(0x35c)]),q(ba,_0x291e41(0x1be),_0x291e41(0x252)),q(ba,'packageName',qi),q(ba,_0x291e41(0x403),Ji),ba=X([_0x650ae5(_0x49fb5c,_0x5795a7,_0x73a66f,_0x3d4438,_0x4d4740,_0x3c117e,_0x470190,_0x22a2d8,_0x40f5a7,_0x50e887,_0x1c1c30,_0x321a7b,_0x227d6b),Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x54c16f),Y(0x3,_0x3dbeab),Y(0x4,_0x1158d5)],ba);const xa={'type':_0x303f65[_0x291e41(0x3e6)],'id':_0x291e41(0x35e),'handler'(){return!0x0;}};function Sa(){const _0x27545c=_0x291e41;let _0x4d2e2b=_0x42cc68(_0x28cffc),_0x347f70=_0x279878(()=>_0x4d2e2b[_0x27545c(0x1d8)],_0x4d2e2b[_0x27545c(0x1f4)](),!0x1,[_0x4d2e2b]);return _0x347f70[_0x27545c(0x3c3)]===0x0?null:_0x183ba7(_0x27545c(0x3f5),{'children':_0x21f5b5(_0x27545c(0x3f5),{'className':_0x27545c(0x279),'children':[_0x183ba7(_0x575d51,{'drawings':_0x347f70,'hasCropper':!0x1}),_0x183ba7(_0xf526c,{'drawings':_0x347f70})]})});}function Ca(_0x4f52de){let {unitId:_0x3883fc,subUnitId:_0x49f1ad,shapeId:_0x6867b0}=_0x4f52de,_0x10ea82=_0x42cc68(_0x54c16f),_0x18193c=_0x42cc68(ya);return _0x183ba7(_0x36eeae,{..._0x4f52de,'positionEditor':_0x183ba7(Sa,{}),'onUpdateShapeData':(_0x3d5cf6,_0x28c6e8)=>{kr(_0x10ea82,_0x3883fc,_0x49f1ad,_0x6867b0,_0x3d5cf6,_0x28c6e8);},'onUpdateLineShapeData':(_0x1f6410,_0x524475)=>{Ar(_0x10ea82,_0x3883fc,_0x49f1ad,_0x6867b0,_0x1f6410,_0x524475);},'onUpdateShapeFillImage':_0x5626ef=>{const _0x566825=_0x7c09;_0x18193c[_0x566825(0x281)]({'unitId':_0x3883fc,'subUnitId':_0x49f1ad,'drawingId':_0x6867b0},_0x5626ef);}});}function wa(_0x4109c4){const _0x17a147=_0x291e41;let _0x2ba5aa=_0x42cc68(_0x5014c7),_0x1b92ea=_0x279878(()=>_0x2ba5aa[_0x17a147(0x21e)],_0x2ba5aa[_0x17a147(0x197)](),!0x1,[_0x2ba5aa]),_0x120331=_0x4109c4[_0x17a147(0x28b)][_0x17a147(0x365)];return!_0x120331||!_0x1b92ea?null:_0x183ba7(Ta,{..._0x120331,'canvasElement':_0x4109c4[_0x17a147(0x28b)]['canvasElement']});}function Ta(_0x502830){const _0x27e53a=_0x291e41;let _0x3204b1=_0x42cc68(_0x54c16f),_0x500fe7=_0x42cc68(_0x1e1f0c),{unitId:_0x39d5c7,subUnitId:_0x5c1067,drawingId:_0xd8d250,drawingType:_0x1942fe,shapeType:_0x55d320}=_0x502830,[_0x3910c2,_0x400cd0]=_0x339b64(_0x502830[_0x27e53a(0x3ad)]),_0x4ab73=_0x283095(()=>_0x35bc62(_0x3910c2),[_0x3910c2]),_0x4b3056=_0x283095(()=>_0x191d9a(_0x3910c2),[_0x3910c2]);_0x3b96f0(()=>{const _0x1864be=_0x27e53a;let _0xbd988d=_0x3204b1['onCommandExecuted'](_0x5adcd6=>{if(_0x5adcd6['id']!==_0x172941['id'])return;let _0x5a5dce=_0x500fe7['getShapeDataById'](_0x39d5c7,_0x5c1067,_0xd8d250);_0x5a5dce&&_0x400cd0(_0x5a5dce);});return()=>_0xbd988d[_0x1864be(0x20d)]();},[_0x3204b1,_0xd8d250,_0x500fe7,_0x5c1067,_0x39d5c7]);let _0x39bc37=_0x49c918=>{_0x400cd0(_0xce9d77=>({..._0xce9d77,..._0x49c918}));},_0x335aed=_0x2e07a5=>{const _0x4320b=_0x27e53a;let _0x3a4166=_0x7848a(_0x3910c2,_0x2e07a5);kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,{'oldShapeData':{'shapeText':_0x3910c2[_0x4320b(0x34e)]}},_0x3a4166),_0x39bc37(_0x3a4166);},_0x6f88fd=_0x3c9bbc({'hostType':_0x3c82b9[_0x27e53a(0x35c)],'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'shapeId':_0xd8d250,'shapeData':_0x3910c2,'onUpdateBinding':_0x5aa078=>{let _0x144ee3={'formulaBinding':_0x5aa078};kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,{'oldShapeData':{'formulaBinding':_0x3910c2['formulaBinding']}},_0x144ee3),_0x39bc37(_0x144ee3);}});return _0x21f5b5(_0x50afb4,{'children':[_0x183ba7(_0x46cdc2,{'canvasElement':_0x502830[_0x27e53a(0x2e5)],'shapeData':_0x3910c2,'shapeType':_0x55d320,'textStyle':{'ff':_0x179988[_0x27e53a(0x34e)][_0x27e53a(0x3ac)],'fs':_0x179988[_0x27e53a(0x34e)]['fontSize'],'cl':{'rgb':_0x179988['shapeText'][_0x27e53a(0x442)]},..._0x4ab73},'textModel':_0x4b3056?{'ha':_0x4b3056['ha']??_0xc256c8[_0x27e53a(0x1e8)],'va':_0x4b3056['va']??_0x46a67d[_0x27e53a(0x374)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x179988[_0x27e53a(0x3bf)],'defaultGradientEndColor':_0x179988['gradientEndColor'],'defaultStrokeColor':_0x179988[_0x27e53a(0x223)],'extensionGroups':_0x6f88fd[_0x27e53a(0x204)],'floatingObjectToolbarPosition':_0x150ddc[_0x27e53a(0x2b9)],'onUpdateShapeData':(_0x1fcf4f,_0x472873)=>{kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,_0x1fcf4f,_0x472873),_0x472873&&_0x39bc37(_0x472873);},'onUpdateText':_0x335aed,'onOpenPanel':()=>{const _0x247117=_0x27e53a;_0x3204b1[_0x247117(0x2e1)](Kr['id'],{'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'drawingId':_0xd8d250});},'onDelete':()=>{const _0x1a69eb=_0x27e53a;_0x3204b1[_0x1a69eb(0x2e1)](_0x1c9438['id'],{'unitId':_0x39d5c7,'drawings':[{'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'drawingId':_0xd8d250,'drawingType':_0x1942fe}]});}}),_0x6f88fd[_0x27e53a(0x355)]]});}function Ea(_0x1f740f){const _0x5b5bfc=_0x291e41;return!!_0x1f740f&&_0x5b5bfc(0x22a)in _0x1f740f&&_0x5b5bfc(0x389)in _0x1f740f;}const Da=_0x130daa(()=>{const _0x5a6cf4=_0x291e41;let _0x33fcfe=_0x42cc68($),_0x250caa=_0x42cc68(_0x1e1f0c),_0x1e4234=_0x42cc68(_0x28cffc),_0x109bd3=_0x42cc68(_0x54c16f),_0x236ec0=_0x42cc68(_0x2a1a7d),_0x51e855=_0x42cc68(_0x1158d5),_0x22e1b1=_0x283095(()=>({'getShapeModel':(_0x39dbd0,_0x43ee85,_0x5f27bc)=>_0x250caa[_0x5a6cf4(0x32d)](_0x39dbd0,_0x43ee85,_0x5f27bc),'getShapeData':(_0x51acdf,_0x5d9a06,_0x144bd4)=>_0x250caa[_0x5a6cf4(0x1a0)](_0x51acdf,_0x5d9a06,_0x144bd4),'getDrawingTransform':(_0x5b9e0e,_0x310803,_0x255ae2)=>{const _0x2388c6=_0x5a6cf4;let _0x5775a4=_0x1e4234[_0x2388c6(0x312)]({'unitId':_0x5b9e0e,'subUnitId':_0x310803,'drawingId':_0x255ae2});return _0x5775a4==null?void 0x0:_0x5775a4['transform'];},'updateShapeText':({unitId:_0x4c0e69,subUnitId:_0x1bb0b1,shapeId:_0x19556d,shapeText:_0x4cc998,oldShapeText:_0x2fd4f5,hostSize:_0x3479eb})=>{const _0x4dfea5=_0x5a6cf4;_0x236ec0[_0x4dfea5(0x24f)](_0x4c0e69,()=>{const _0x3b494a=_0x4dfea5;var _0x24e9c7;let _0x342f1a=_0x109bd3[_0x3b494a(0x1b7)](K['id'],{'unitId':_0x4c0e69,'subUnitId':_0x1bb0b1,'shapeId':_0x19556d,'shapeData':{'shapeText':_0x4cc998},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x2fd4f5}}});if(!_0x342f1a||!_0x3479eb)return _0x342f1a;let _0x1a29b4=_0x1e4234[_0x3b494a(0x312)]({'unitId':_0x4c0e69,'subUnitId':_0x1bb0b1,'drawingId':_0x19556d}),_0x2a7d4c=_0x1a29b4==null?void 0x0:_0x1a29b4['transform'];if(!Ea(_0x1a29b4)||!_0x2a7d4c)return!0x1;let _0x7c97bc={..._0x2a7d4c,'width':_0x3479eb[_0x3b494a(0x45d)],'height':_0x3479eb[_0x3b494a(0x257)]},_0x25c2d2=(_0x24e9c7=_0x51e855[_0x3b494a(0x3a7)](_0x4c0e69))==null||(_0x24e9c7=_0x24e9c7[_0x3b494a(0x401)](_0x5635f6)[_0x3b494a(0x3ab)](_0x1bb0b1))==null?void 0x0:_0x24e9c7[_0x3b494a(0x1c0)];return _0x109bd3[_0x3b494a(0x1b7)](_0xb1758f['id'],{'unitId':_0x4c0e69,'drawings':[{..._0x1a29b4,'transform':_0x7c97bc,'sheetTransform':_0x25c2d2?_0x4f36ef(_0x7c97bc,_0x25c2d2)??_0x1a29b4['sheetTransform']:_0x1a29b4[_0x3b494a(0x389)],'axisAlignSheetTransform':_0x25c2d2?_0x5e3806(_0x7c97bc,_0x25c2d2)??_0x1a29b4[_0x3b494a(0x22a)]:_0x1a29b4[_0x3b494a(0x22a)]}]});});},'updateHostSize':({unitId:_0x26a70a,subUnitId:_0x39e874,shapeId:_0x7fde42,width:_0x451821,height:_0x150872})=>{const _0x2b2b49=_0x5a6cf4;var _0x51057c;let _0x49d205=_0x1e4234[_0x2b2b49(0x312)]({'unitId':_0x26a70a,'subUnitId':_0x39e874,'drawingId':_0x7fde42}),_0x371df4=_0x49d205==null?void 0x0:_0x49d205[_0x2b2b49(0x21c)];if(!Ea(_0x49d205)||!_0x371df4)return;let _0x3faa1c={..._0x371df4,'width':_0x451821,'height':_0x150872},_0xd3af5a=(_0x51057c=_0x51e855[_0x2b2b49(0x3a7)](_0x26a70a))==null||(_0x51057c=_0x51057c[_0x2b2b49(0x401)](_0x5635f6)[_0x2b2b49(0x3ab)](_0x39e874))==null?void 0x0:_0x51057c[_0x2b2b49(0x1c0)],_0x1999a7=_0xd3af5a?_0x4f36ef(_0x3faa1c,_0xd3af5a)??_0x49d205[_0x2b2b49(0x389)]:_0x49d205[_0x2b2b49(0x389)],_0x33de0c=_0xd3af5a?_0x5e3806(_0x3faa1c,_0xd3af5a)??_0x49d205[_0x2b2b49(0x22a)]:_0x49d205['axisAlignSheetTransform'];_0x109bd3['executeCommand'](_0xb1758f['id'],{'unitId':_0x26a70a,'drawings':[{..._0x49d205,'transform':_0x3faa1c,'sheetTransform':_0x1999a7,'axisAlignSheetTransform':_0x33de0c}]});},'allowHostSizeShrink':({unitId:_0x4e38f8,subUnitId:_0x4a9e32,shapeId:_0x54d9fd})=>_0x59f590(_0x250caa[_0x5a6cf4(0x1a0)](_0x4e38f8,_0x4a9e32,_0x54d9fd)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x109bd3,_0x1e4234,_0x51e855,_0x250caa,_0x236ec0]),_0x5502b=_0x283095(()=>({'viewportKeys':{'main':_0x8831d0['VIEW_MAIN'],'leftTop':_0x8831d0['VIEW_MAIN_LEFT_TOP'],'top':_0x8831d0[_0x5a6cf4(0x26a)],'left':_0x8831d0[_0x5a6cf4(0x1ae)]},'getSkeleton':(_0x226263,_0x364b33)=>{const _0x505267=_0x5a6cf4;var _0x139324;return((_0x139324=_0x226263[_0x505267(0x401)](_0x5635f6)['getSkeletonParam'](_0x364b33[_0x505267(0x21b)]))==null?void 0x0:_0x139324['skeleton'])??null;}}),[]);return _0x183ba7(_0xde71ea,{'adapter':_0x22e1b1,'editingService':_0x33fcfe,'editorUnitId':Ur,'positionOptions':_0x5502b});});let Oa=class extends _0x557a26{constructor(_0x804564,_0x18d427){const _0x2f41a4=_0x291e41;super(),this['_componentManager']=_0x804564,this['_iconManager']=_0x18d427,this[_0x2f41a4(0x1fa)](),this[_0x2f41a4(0x448)]();}[_0x291e41(0x1fa)](){const _0xfa097f=_0x291e41;this['_iconManager'][_0xfa097f(0x290)]('ObjectLayersIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'ObjectLayersIcon':_0x10ffc5})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('FlipHorizontalIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)]['register']({'FlipHorizontalIcon':_0x30529a})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)](_0xfa097f(0x1e2))||this[_0xfa097f(0x432)](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'FlipVerticalIcon':_0xd6996})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x259))||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'BottomIcon':_0x19c68f})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x373))||this[_0xfa097f(0x432)](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'MoveDownIcon':_0x14ee72})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x393))||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'MoveUpIcon':_0xb1af47})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('ShapeFormatSettingIcon')||this['disposeWithMe'](this['_iconManager'][_0xfa097f(0x3d0)]({'ShapeFormatSettingIcon':_0x21bdf2})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('TopmostIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)]['register']({'TopmostIcon':_0x384eef}));}['_registerComponents'](){const _0x4a17df=_0x291e41;this[_0x4a17df(0x432)](this['_componentManager'][_0x4a17df(0x3d0)](zr,Ca)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Br,ta)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Xr,ni)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Zr,$r)),this[_0x4a17df(0x3ed)][_0x4a17df(0x2e9)](_0x1b086b)||this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](_0x1b086b,ti)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Vr,wa)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](pi,_i)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](fi,vi)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](mi,yi)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](hi,bi)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Wr,_0x39f31b)),this['disposeWithMe'](this['_componentManager'][_0x4a17df(0x3d0)](_0x4a17df(0x43b),Da));}};Oa=X([Y(0x0,_0x5b79b4(_0x5a241f)),Y(0x1,_0x5b79b4(_0x3844d8))],Oa);let ka=class extends _0x557a26{constructor(_0x151efc,_0x4dd6dc,_0x51ba11,_0x1e4fe4,_0x5a6e3e,_0x4709b3,_0x4f084b,_0xcf85e9,_0x1af864){const _0x537125=_0x291e41;super();let _0x3c437a=_0x160d81=>{const _0x436424=_0x7c09;var _0x38d3c3,_0x75f441;return(((_0x38d3c3=_0xcf85e9[_0x436424(0x3da)](new _0x20b096(_0x160d81[_0x436424(0x351)])['id']))==null?void 0x0:_0x38d3c3[_0x436424(0x3ec)])??!0x0)&&(((_0x75f441=_0xcf85e9['getPermissionPoint'](new _0x1ea295(_0x160d81[_0x436424(0x351)],_0x160d81[_0x436424(0x21b)])['id']))==null?void 0x0:_0x75f441[_0x436424(0x3ec)])??!0x0);},_0x360433=_0x42da15=>_0x42da15['shapeId']&&_0x3c437a(_0x42da15)?_0x51ba11[_0x537125(0x1a0)](_0x42da15[_0x537125(0x351)],_0x42da15[_0x537125(0x21b)],_0x42da15[_0x537125(0x416)])??null:null,_0xd072e0=()=>{const _0x158558=_0x537125;let _0x4d2bb6=_0x5a6e3e[_0x158558(0x1f4)](),_0x234224=_0x4d2bb6['length']===0x1?_0x4d2bb6[0x0]:null;return(_0x234224==null?void 0x0:_0x234224['drawingType'])===_0x40fd85[_0x158558(0x43a)]&&_0x234224[_0x158558(0x351)]===_0x151efc[_0x158558(0x351)]?{'unitId':_0x234224[_0x158558(0x351)],'subUnitId':_0x234224[_0x158558(0x21b)],'shapeId':_0x234224['drawingId']}:null;};this[_0x537125(0x432)](_0x2f2687(_0x151efc,_0x4dd6dc,{'changes$':_0x6a7021(_0x5a6e3e[_0x537125(0x1d8)],_0x1e4fe4[_0x537125(0x3d8)],_0xcf85e9[_0x537125(0x359)]),'isActive':()=>{const _0x5ea719=_0x537125;var _0x290383;return((_0x290383=_0x4709b3[_0x5ea719(0x2a6)]())==null?void 0x0:_0x290383[_0x5ea719(0x440)]())===_0x151efc[_0x5ea719(0x351)]&&!_0x4f084b[_0x5ea719(0x234)](_0x2a4c27)&&_0x5a6e3e[_0x5ea719(0x1f4)]()[_0x5ea719(0x31d)](_0x7ef1f3=>_0x7ef1f3[_0x5ea719(0x351)]===_0x151efc['unitId']);},'getSelectedTarget':_0xd072e0,'getSource':()=>{let _0x4d18a6=_0xd072e0();return _0x4d18a6?_0x360433(_0x4d18a6):null;},'getTarget':_0x41a688=>{const _0x1015cb=_0x537125;let _0x32c531=_0x151efc['scene'][_0x1015cb(0x1fb)](new _0x45d11b(_0x41a688[_0x1015cb(0x36f)],_0x41a688[_0x1015cb(0x3b9)]));if(!(_0x32c531 instanceof J))return null;let _0x22c3fb={'unitId':_0x151efc[_0x1015cb(0x351)],'subUnitId':_0x32c531['subUnitId'],'shapeId':_0x32c531[_0x1015cb(0x416)]};return _0x3c437a(_0x22c3fb)?_0x22c3fb:null;},'getShape':_0x360433,'update':(_0x31d68a,_0x28e4ae,_0x76e7c0)=>_0x1af864[_0x537125(0x2e1)](K['id'],{..._0x31d68a,'shapeData':_0x76e7c0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x28e4ae}})}));}};ka=X([Y(0x1,_0x5b79b4(_0x495908)),Y(0x2,_0x5b79b4(_0x1e1f0c)),Y(0x3,_0x5b79b4($)),Y(0x4,_0x28cffc),Y(0x5,_0x44b74c),Y(0x6,_0x4b3877),Y(0x7,_0x1d37e3),Y(0x8,_0x54c16f)],ka);const Aa='sheets-shape-contextual-ribbon';let ja=class extends _0x557a26{constructor(_0x5e628f,_0x2c7cc3,_0x1e8bb6,_0x1c33fa,_0x4f674a,_0x88442d){const _0x3916d0=_0x291e41;super(),this['_menuManagerService']=_0x5e628f,this[_0x3916d0(0x2db)]=_0x2c7cc3,this[_0x3916d0(0x346)]=_0x1e8bb6,this[_0x3916d0(0x394)]=_0x1c33fa,this['_renderManagerService']=_0x4f674a,this[_0x3916d0(0x1dc)]=_0x88442d,q(this,_0x3916d0(0x288),!0x1),this[_0x3916d0(0x1f3)][_0x3916d0(0x423)](Wi),this[_0x3916d0(0x432)](_0x53ca46(this[_0x3916d0(0x346)][_0x3916d0(0x1d8)][_0x3916d0(0x456)](()=>this[_0x3916d0(0x33b)]()))),this['_update']();}[_0x291e41(0x20d)](){const _0x54c809=_0x291e41;this[_0x54c809(0x1dc)][_0x54c809(0x36a)](!0x1,Aa),this[_0x54c809(0x35f)](),super[_0x54c809(0x20d)]();}[_0x291e41(0x33b)](){const _0x451cd4=_0x291e41;var _0x54953c;let _0x1fe444=this[_0x451cd4(0x346)]['getFocusDrawings'](),_0x2b070a=_0x1fe444['length']===0x1?_0x1fe444[0x0]:void 0x0;if((_0x2b070a==null?void 0x0:_0x2b070a[_0x451cd4(0x209)])!==_0x40fd85[_0x451cd4(0x43a)]||this['_univerInstanceService'][_0x451cd4(0x340)](_0x2b070a[_0x451cd4(0x351)])!==_0x3c82b9[_0x451cd4(0x35c)]){this[_0x451cd4(0x1dc)][_0x451cd4(0x36a)](!0x1,Aa),this[_0x451cd4(0x35f)]();return;}let _0x1d517d=(_0x54953c=this['_renderManagerService'][_0x451cd4(0x3a7)](_0x2b070a[_0x451cd4(0x351)]))==null?void 0x0:_0x54953c[_0x451cd4(0x3b5)][_0x451cd4(0x313)](),_0x5f2bd7=_0x3afe9f(_0x1d517d)===_0x451cd4(0x200);this[_0x451cd4(0x1dc)][_0x451cd4(0x36a)](_0x5f2bd7,Aa),_0x5f2bd7?this['_hide']():this[_0x451cd4(0x288)]||(this[_0x451cd4(0x288)]=!0x0,this['_ribbonService'][_0x451cd4(0x42e)](Hr,{'activate':!0x0}));}['_hide'](){const _0xf0a32c=_0x291e41;this[_0xf0a32c(0x288)]&&(this[_0xf0a32c(0x288)]=!0x1,this['_ribbonService'][_0xf0a32c(0x321)](Hr),this['_ribbonService']['setCollapsedIds']([]));}};ja=X([Y(0x0,_0x24215b),Y(0x1,_0x5b1e2e),Y(0x2,_0x28cffc),Y(0x3,_0x44b74c),Y(0x4,_0x1158d5),Y(0x5,_0x5b79b4(_0x5014c7))],ja);let Ma=class extends _0x34370e{constructor(_0x30f9a9,_0x1f8bbc,_0x307a55,_0x1bde2e,_0x14d5a1,_0x14810e,_0x2e7129,_0x33ba2e,_0x35d5df,_0x318829){super(_0x30f9a9,_0x1f8bbc,_0x307a55,_0x1bde2e,_0x14d5a1,_0x14810e,_0x2e7129,_0x33ba2e,_0x35d5df,_0x318829,{'componentKey':Wr,'editorUnitId':Ur});}};Ma=X([Y(0x1,_0x5b79b4(_0x24fa05)),Y(0x2,_0x5b79b4(_0xbc2827)),Y(0x3,_0x5b79b4(_0x132ceb)),Y(0x4,_0x54c16f),Y(0x5,_0x5b79b4(_0x2a6447)),Y(0x6,_0x5b79b4(_0xaf604c)),Y(0x7,_0x5b79b4(_0x1be28b)),Y(0x8,_0x5b79b4(_0x2112e8)),Y(0x9,_0x5b79b4($))],Ma);let Na=class extends _0x164e04{constructor(_0x308dbc,_0x32ca34,_0x3b493f,_0x152020,_0x117747){const _0x56902e=_0x291e41;super(_0x308dbc,_0x32ca34,{'editing$':_0x3b493f[_0x56902e(0x3d8)],'resolve':_0x516592=>{const _0x1dc9d2=_0x56902e;var _0x3f5ea1,_0x391db4,_0x100589;let _0x4ca726=new _0x45d11b(_0x516592[_0x1dc9d2(0x36f)],_0x516592['offsetY']),_0x1fdc50=((_0x3f5ea1=_0x308dbc[_0x1dc9d2(0x1f2)][_0x1dc9d2(0x1ec)](_0x4ca726))==null?void 0x0:_0x3f5ea1[_0x1dc9d2(0x38b)](_0x4ca726))??_0x4ca726,_0xebab84=_0x39a534(_0x308dbc['scene'][_0x1dc9d2(0x1fb)](_0x4ca726)??null,_0x1fdc50);if(!(_0xebab84 instanceof J))return null;let _0x1176b5=_0xebab84[_0x1dc9d2(0x207)](_0x1fdc50);if(!_0x1176b5)return null;let _0x2a24ba=_0xebab84,_0x46ca89={'componentKey':_0x499c50[_0x1dc9d2(0x2c6)],'direction':_0x1dc9d2(0x41c),'offset':[0x0,0xa],'onClickOutside':()=>_0x32ca34['hideInfoPopup']()};return{'object':_0xebab84,'info':{..._0x1176b5,'unitId':_0xebab84['unitId'],'subUnitId':_0xebab84[_0x1dc9d2(0x21b)],'shapeKey':_0xebab84['oKey'],'readonly':!0x0,'copyable':((_0x391db4=_0x117747[_0x1dc9d2(0x3da)](new _0x581335(_0xebab84[_0x1dc9d2(0x351)])['id']))==null?void 0x0:_0x391db4['value'])!==!0x1&&((_0x100589=_0x117747[_0x1dc9d2(0x3da)](new _0x499382(_0xebab84[_0x1dc9d2(0x351)],_0xebab84[_0x1dc9d2(0x21b)])['id']))==null?void 0x0:_0x100589[_0x1dc9d2(0x3ec)])!==!0x1},'attachPopup':()=>_0x152020[_0x1dc9d2(0x30d)](_0x2a24ba,_0x46ca89)};}}),this['disposeWithMe'](_0x308dbc[_0x56902e(0x3f9)][_0x56902e(0x3bc)][_0x56902e(0x456)](()=>this[_0x56902e(0x280)]()));}};Na=X([Y(0x1,_0x5b79b4(_0xaf604c)),Y(0x2,_0x5b79b4($)),Y(0x3,_0x5b79b4(_0x57fdbe)),Y(0x4,_0x1d37e3)],Na);let Pa=class extends _0x557a26{constructor(_0x5c13df,_0xfb5c49,_0x45a3ea,_0x514791,_0x4a1509,_0x2e0e1f,_0x335dbe,_0x5de033,_0x51130e,_0x4fd72c,_0xfbd1c7){const _0x281c9c=_0x291e41;super(),this[_0x281c9c(0x394)]=_0x5c13df,this[_0x281c9c(0x2f8)]=_0xfb5c49,this[_0x281c9c(0x1f3)]=_0x45a3ea,this[_0x281c9c(0x408)]=_0x514791,this[_0x281c9c(0x202)]=_0x4a1509,this[_0x281c9c(0x199)]=_0x2e0e1f,this[_0x281c9c(0x346)]=_0x335dbe,this[_0x281c9c(0x19e)]=_0x5de033,this[_0x281c9c(0x2d4)]=_0x51130e,this[_0x281c9c(0x449)]=_0x4fd72c,this[_0x281c9c(0x33d)]=_0xfbd1c7,q(this,'_sidebarDisposable',null),q(this,_0x281c9c(0x372),null),q(this,_0x281c9c(0x332),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x281c9c(0x2da),null),q(this,_0x281c9c(0x426),[]),this[_0x281c9c(0x1cb)](),this[_0x281c9c(0x432)](this['_univerInstanceService'][_0x281c9c(0x262)](_0x3c82b9['UNIVER_SHEET'])[_0x281c9c(0x456)](_0x3de101=>{const _0x3c171e=_0x281c9c;if(!_0x3de101){var _0x3f1b5d;(_0x3f1b5d=this[_0x3c171e(0x323)])==null||_0x3f1b5d['dispose']();}})),this[_0x281c9c(0x3c8)](),this[_0x281c9c(0x366)](),this[_0x281c9c(0x432)](this[_0x281c9c(0x33d)][_0x281c9c(0x3d8)]['subscribe'](_0x3b27ae=>{const _0xb7c765=_0x281c9c;_0x3b27ae&&this[_0xb7c765(0x278)]();}));}[_0x291e41(0x1cb)](){const _0x30be80=_0x291e41;this[_0x30be80(0x1f3)][_0x30be80(0x423)](Ki);}[_0x291e41(0x366)](){const _0x5a1a45=_0x291e41;this[_0x5a1a45(0x2da)]||=this[_0x5a1a45(0x432)](_0x5695f5(this[_0x5a1a45(0x449)],_0x3c82b9[_0x5a1a45(0x35c)],_0x3bb01f=>this['_popupMenuListener'](_0x3bb01f)));}[_0x291e41(0x360)](_0xfb6a6f,_0x550b74,_0x346315){const _0x2a1061=_0x291e41;let _0x4b0954=this[_0x2a1061(0x408)][_0x2a1061(0x1a4)](_0xfb6a6f,_0x550b74,_0x346315),_0x3db7a0=this[_0x2a1061(0x408)][_0x2a1061(0x1a0)](_0xfb6a6f,_0x550b74,_0x346315);return _0x4b0954!==void 0x0&&_0x3db7a0!==void 0x0?{'shapeData':_0x3db7a0,'shapeId':_0x346315,'shapeType':_0x4b0954,'unitId':_0xfb6a6f,'subUnitId':_0x550b74,'version':this[_0x2a1061(0x275)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x3e6534=_0x291e41;this[_0x3e6534(0x426)]['forEach'](_0x403aec=>_0x403aec[_0x3e6534(0x20d)]()),this[_0x3e6534(0x426)][_0x3e6534(0x3c3)]=0x0;}['_popupMenuListener'](_0x593c4a){const _0x21e93c=_0x291e41;let _0x3a2a48=new _0x39a460();return _0x3a2a48['add'](_0x593c4a[_0x21e93c(0x2dc)][_0x21e93c(0x456)](()=>{const _0xfd2371=_0x21e93c;let _0xba936a=_0x593c4a[_0xfd2371(0x450)]();if(this[_0xfd2371(0x278)](),this['_isOpenedShapeEditPanel']||_0xba936a['size']>0x1)return;let _0x4900f4=_0xba936a[_0xfd2371(0x3f3)]()[_0xfd2371(0x1c4)]()[_0xfd2371(0x3ec)];if(!_0x4900f4)return;let _0x329220=this[_0xfd2371(0x346)][_0xfd2371(0x1aa)](_0x4900f4['oKey']);if(!_0x329220||_0x329220[_0xfd2371(0x209)]!==_0x40fd85[_0xfd2371(0x43a)])return;let {unitId:_0x5ab2a4,subUnitId:_0x3fb88d,drawingId:_0x35bde7,drawingType:_0x4c1098}=_0x329220,_0x2e454f=this[_0xfd2371(0x360)](_0x5ab2a4,_0x3fb88d,_0x35bde7);if(!_0x2e454f)return;this[_0xfd2371(0x2d4)]['setContextValue'](_0x317872,!0x0);let _0x5adb7f=this['_renderManagerService'][_0xfd2371(0x3a7)](_0x5ab2a4),_0x317fcc=((_0x5adb7f==null?void 0x0:_0x5adb7f[_0xfd2371(0x2f7)])===!0x1?_0x5adb7f['with'](_0x57fdbe):this['_sheetCanvasPopManagerService'])['attachPopupToObject'](_0x4900f4,{'componentKey':Vr,'direction':_0xfd2371(0x1f8),'offset':[0x0,_0xf7ed1d],'extraProps':{'unitId':_0x5ab2a4,'subUnitId':_0x3fb88d,'drawingId':_0x35bde7,'drawingType':_0x4c1098,'shapeType':_0x2e454f[_0xfd2371(0x3e1)],'shapeData':_0x2e454f[_0xfd2371(0x3ad)]}});this[_0xfd2371(0x426)][_0xfd2371(0x1b9)](this[_0xfd2371(0x432)](_0x317fcc)),this[_0xfd2371(0x346)]['getFocusDrawings']()[_0xfd2371(0x1e4)](_0x10c5c8=>_0x10c5c8[_0xfd2371(0x351)]===_0x5ab2a4&&_0x10c5c8[_0xfd2371(0x21b)]===_0x3fb88d&&_0x10c5c8['drawingId']===_0x35bde7)||this[_0xfd2371(0x346)]['focusDrawing']([{'unitId':_0x5ab2a4,'subUnitId':_0x3fb88d,'drawingId':_0x35bde7}]);})),_0x3a2a48['add'](_0x593c4a[_0x21e93c(0x37e)][_0x21e93c(0x456)](()=>{const _0x1c4085=_0x21e93c;this[_0x1c4085(0x278)](),this[_0x1c4085(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x1c4085(0x346)][_0x1c4085(0x2bd)](null);})),_0x3a2a48[_0x21e93c(0x322)](_0x593c4a['changing$'][_0x21e93c(0x456)](()=>{const _0x53b6a0=_0x21e93c;this[_0x53b6a0(0x278)]();})),_0x3a2a48[_0x21e93c(0x322)](_0x593c4a[_0x21e93c(0x36c)]['subscribe'](()=>{const _0x104b3b=_0x21e93c;this[_0x104b3b(0x278)]();})),_0x53ca46(()=>{const _0x26b9c7=_0x21e93c;_0x3a2a48['dispose'](),this[_0x26b9c7(0x278)]();});}[_0x291e41(0x3c8)](){const _0x1c9850=_0x291e41;this[_0x1c9850(0x432)](this['_commandService'][_0x1c9850(0x43c)](_0x35aeb6=>{const _0x524084=_0x1c9850;if(_0x35aeb6['id']===Kr['id']){let {unitId:_0x1167d3,subUnitId:_0x63ae4b,drawingId:_0x2dd40d}=_0x35aeb6[_0x524084(0x2b1)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x524084(0x360)](_0x1167d3,_0x63ae4b,_0x2dd40d),this[_0x524084(0x278)](),this['_openShapeEditPanel']();}if(_0x35aeb6['id']===xa['id']&&(this[_0x524084(0x372)]=null,this[_0x524084(0x218)]()),_0x35aeb6['id']===_0x172941['id']){let {unitId:_0x403eed,subUnitId:_0xb17036,shapeId:_0x7c868d}=_0x35aeb6[_0x524084(0x2b1)];if(this[_0x524084(0x372)]&&this[_0x524084(0x372)][_0x524084(0x416)]===_0x7c868d){let _0x41c919=this[_0x524084(0x360)](_0x403eed,_0xb17036,_0x7c868d);_0x41c919&&(this['_shapeEditPanelVersion']+=0x1,_0x41c919[_0x524084(0x403)]=this[_0x524084(0x275)],this[_0x524084(0x372)]=_0x41c919,this['_isOpenedShapeEditPanel']&&this[_0x524084(0x219)]());}}})),this[_0x1c9850(0x432)](this[_0x1c9850(0x346)][_0x1c9850(0x1d8)][_0x1c9850(0x456)](_0x3f1d26=>{const _0x51360f=_0x1c9850;if(this[_0x51360f(0x332)]===!0x1)return;if(_0x3f1d26[_0x51360f(0x3c3)]===0x0){this[_0x51360f(0x372)]=null,this['_closeShapeEditPanel']();return;}if(_0x3f1d26[_0x51360f(0x3c3)]===0x1&&_0x3f1d26[0x0][_0x51360f(0x209)]===_0x40fd85[_0x51360f(0x43a)]&&(this[_0x51360f(0x275)]+=0x1,this[_0x51360f(0x372)]=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0][_0x51360f(0x21b)],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)])){this[_0x51360f(0x219)]();return;}let _0x14071e=_0x3f1d26[_0x51360f(0x3c0)](_0x2a1b5b=>_0x2a1b5b[_0x51360f(0x209)]===_0x40fd85[_0x51360f(0x43a)]);if(_0x3f1d26[_0x51360f(0x3c3)]>0x1&&_0x14071e[_0x51360f(0x3c3)]===_0x3f1d26['length']){if(this[_0x51360f(0x275)]+=0x1,this['_activeShapeInfo']=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0]['subUnitId'],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)]){this[_0x51360f(0x219)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x51360f(0x372)]=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0][_0x51360f(0x21b)],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)]){this[_0x51360f(0x372)]['disableShapeOption']=!0x0,this[_0x51360f(0x219)]();return;}}this[_0x51360f(0x218)]();}));}[_0x291e41(0x219)](){const _0x2e31ab=_0x291e41;this[_0x2e31ab(0x372)]&&(this[_0x2e31ab(0x323)]=this[_0x2e31ab(0x2f8)][_0x2e31ab(0x269)]({'id':zr,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':zr,...this['_activeShapeInfo']},'onClose':()=>{const _0x220708=_0x2e31ab;this[_0x220708(0x346)]['focusDrawing'](null),this[_0x220708(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x220708(0x323)]=null;}}),this[_0x2e31ab(0x332)]=!0x0);}[_0x291e41(0x218)](){const _0x5d068a=_0x291e41;this[_0x5d068a(0x332)]=!0x1,this[_0x5d068a(0x2f8)][_0x5d068a(0x415)](zr),this['_sidebarDisposable']=null,this[_0x5d068a(0x2d4)][_0x5d068a(0x409)](_0x317872,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Pa=X([Y(0x0,_0x44b74c),Y(0x1,_0x5b79b4(_0x31c5f5)),Y(0x2,_0x24215b),Y(0x3,_0x5b79b4(_0x1e1f0c)),Y(0x4,_0x5b79b4(_0x13738a)),Y(0x5,_0x54c16f),Y(0x6,_0x28cffc),Y(0x7,_0x5b79b4(_0x57fdbe)),Y(0x8,_0x4b3877),Y(0x9,_0x1158d5),Y(0xa,_0x5b79b4($))],Pa);let Fa=class extends _0x1f6119{constructor(_0x29efcf=Zi,_0x203255,_0xac0c65,_0x5f3818,_0x49cfa5){const _0x5033d5=_0x291e41;super(),this['_config']=_0x29efcf,this[_0x5033d5(0x369)]=_0x203255,this[_0x5033d5(0x199)]=_0xac0c65,this[_0x5033d5(0x40d)]=_0x5f3818,this[_0x5033d5(0x449)]=_0x49cfa5;let {..._0x459207}=_0x45bd5a({},Zi,this[_0x5033d5(0x28d)]);this[_0x5033d5(0x40d)][_0x5033d5(0x458)](Xi,_0x459207),this[_0x5033d5(0x1b0)]();}['onRendered'](){const _0x1a78e0=_0x291e41;this[_0x1a78e0(0x449)][_0x1a78e0(0x410)](_0x3c82b9[_0x1a78e0(0x435)],[Ma]),_0x125864(this['_injector'],[[Pa],[ua],[Z],[_a]]);}['onSteady'](){const _0x32003a=_0x291e41;this[_0x32003a(0x369)][_0x32003a(0x42c)](Pa)[_0x32003a(0x366)]();}['onReady'](){const _0x170776=_0x291e41;[[pa],[Ir],[ma]][_0x170776(0x44b)](_0x4320de=>this['_injector'][_0x170776(0x322)](_0x4320de)),_0x125864(this['_injector'],[[ma],[Ir]]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[pa]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[Qi]),this['_renderManagerService'][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[ga]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[ia]),this['disposeWithMe'](this[_0x170776(0x449)]['registerRenderModule'](_0x3c82b9[_0x170776(0x35c)],[Na])),this[_0x170776(0x432)](this[_0x170776(0x449)]['registerRenderModule'](_0x3c82b9[_0x170776(0x35c)],[ka]));}[_0x291e41(0x227)](){const _0x2da02f=_0x291e41;this[_0x2da02f(0x369)][_0x2da02f(0x322)]([Oa]),this['_injector']['get'](Oa);let _0x1d6a45=this[_0x2da02f(0x369)];[[Pa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va],[ja]][_0x2da02f(0x44b)](_0x51d565=>_0x1d6a45[_0x2da02f(0x322)](_0x51d565)),_0x125864(this[_0x2da02f(0x369)],[[Pa],[ua],[Z],[ya],[$],[la],[Q],[va],[ja]]);}[_0x291e41(0x1b0)](){const _0x4ed0f7=_0x291e41;[Rr,K,xa,Kr,Gr,Lr,Jr,Yr][_0x4ed0f7(0x44b)](_0x402193=>this[_0x4ed0f7(0x432)](this['_commandService'][_0x4ed0f7(0x2ac)](_0x402193)));}};q(Fa,_0x291e41(0x28c),_0x3c82b9[_0x291e41(0x35c)]),q(Fa,_0x291e41(0x1be),_0x291e41(0x252)),q(Fa,_0x291e41(0x277),qi),q(Fa,_0x291e41(0x403),Ji),Fa=X([_0x650ae5(_0x49fb5c,_0x5795a7,_0x73a66f,_0x55e9c6,_0x3d4438,_0x4d4740,_0x3c117e,_0x470190,_0x22a2d8,_0x15f435,_0x50e887,_0x34cd91,_0x4cb8bb),Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x54c16f),Y(0x3,_0x3dbeab),Y(0x4,_0x1158d5)],Fa);export{Wi as SheetsShapeUIContextualRibbonSchema,Ki as SheetsShapeUIMenuSchema,ba as UniverSheetsShapeMobileUIPlugin,Fa as UniverSheetsShapeUIPlugin};