@univerjs-pro/sheets-shape-ui 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/commands/command/set-shape-text-align.command.d.ts +5 -0
  62. package/lib/types/commands/command/set-shape-text-style.command.d.ts +7 -0
  63. package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +5 -0
  64. package/lib/types/commands/command/shape-doc-align.command.d.ts +10 -0
  65. package/lib/types/commands/menu/menu-dependencies.d.ts +2 -0
  66. package/lib/types/commands/menu/object-list.menu.d.ts +4 -0
  67. package/lib/types/commands/menu/shape-doc-format.menu.d.ts +19 -0
  68. package/lib/types/commands/menu/shape-font-size.menu.d.ts +6 -0
  69. package/lib/types/commands/menu/shape-text-align.menu.d.ts +10 -0
  70. package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +10 -0
  71. package/lib/types/commands/operations/actvie-drawing-operation.d.ts +2 -0
  72. package/lib/types/controllers/shape-text-hyper-link.render-controller.d.ts +9 -0
  73. package/lib/types/view-model/drawing-shape.d.ts +2 -0
  74. package/lib/types/view-model/shape-data-model.d.ts +8 -0
  75. package/lib/types/views/ShapeOptions.d.ts +26 -0
  76. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +12 -0
  77. package/lib/types/views/shape-editor-panel/index.d.ts +1 -0
  78. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +2 -0
  79. package/lib/types/views/shapes.d.ts +58 -0
  80. package/lib/umd/index.js +1 -1
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/de-DE.js +1 -1
  84. package/lib/umd/locale/en-US.js +1 -1
  85. package/lib/umd/locale/es-ES.js +1 -1
  86. package/lib/umd/locale/fa-IR.js +1 -1
  87. package/lib/umd/locale/fr-FR.js +1 -1
  88. package/lib/umd/locale/id-ID.js +1 -1
  89. package/lib/umd/locale/it-IT.js +1 -1
  90. package/lib/umd/locale/ja-JP.js +1 -1
  91. package/lib/umd/locale/ko-KR.js +1 -1
  92. package/lib/umd/locale/pl-PL.js +1 -1
  93. package/lib/umd/locale/pt-BR.js +1 -1
  94. package/lib/umd/locale/ru-RU.js +1 -1
  95. package/lib/umd/locale/sk-SK.js +1 -1
  96. package/lib/umd/locale/vi-VN.js +1 -1
  97. package/lib/umd/locale/zh-CN.js +1 -1
  98. package/lib/umd/locale/zh-HK.js +1 -1
  99. package/lib/umd/locale/zh-TW.js +1 -1
  100. package/package.json +19 -19
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x244912=_0x4e9b;(function(_0x40a8fa,_0x51c51e){const _0x26dfdc=_0x4e9b,_0x2bca18=_0x40a8fa();while(!![]){try{const _0x4f959a=parseInt(_0x26dfdc(0x189))/0x1*(-parseInt(_0x26dfdc(0x1ab))/0x2)+parseInt(_0x26dfdc(0x152))/0x3*(parseInt(_0x26dfdc(0x1ad))/0x4)+parseInt(_0x26dfdc(0x2d5))/0x5+-parseInt(_0x26dfdc(0x3a6))/0x6*(parseInt(_0x26dfdc(0x367))/0x7)+-parseInt(_0x26dfdc(0x14e))/0x8*(-parseInt(_0x26dfdc(0x230))/0x9)+-parseInt(_0x26dfdc(0x2dd))/0xa+parseInt(_0x26dfdc(0x1e3))/0xb;if(_0x4f959a===_0x51c51e)break;else _0x2bca18['push'](_0x2bca18['shift']());}catch(_0x1efbc0){_0x2bca18['push'](_0x2bca18['shift']());}}}(_0x2c7e,0xc7e62));import{FormulaShapeAnimationController as _0x141052,MobileShapeEditorService as _0x349883,SHAPE_CHANGE_PICKER_COMPONENT as _0x39514a,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x31a8fe,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x574cac,ShapeEditPanel as _0x17d686,ShapeFloatingToolbar as _0x1a3d2a,ShapeFloatingToolbarService as _0x11b9ca,ShapeFloatingToolbarToggleFactory as _0x28f120,ShapeFormulaRibbonControl as _0x1e07ad,ShapeGroupEnum as _0x46a4b9,ShapePickerDropdown as _0xd97ad,ShapePickerPanel as _0x377851,ShapeQuickStyleGallery as _0x364599,ShapeStyleRibbonControl as _0x1535fe,ShapeTextEditorContainer as _0xa7fac2,ShapeTextFloatMenuRenderControllerBase as _0x2ed20c,ShapeTextFloatToolbar as _0x2689dd,ShapeTextHyperLinkPopupService as _0x56b244,ShapeTextRibbonControl as _0x361c7f,ToggleShapeFloatingToolbarOperation as _0x29b704,UniverShapeEditorMobileUIPlugin as _0x1803a2,UniverShapeEditorUIPlugin as _0x5cbd77,activateDrawingObject as _0x35675d,bindRenderTransformerLifecycle as _0x50a450,buildShapeTextDataUpdate as _0x410366,clearActiveDrawingObjects as _0x4c6b4,drawFormulaShapeAnimationLayers as _0x4dca42,getDrawingTypeNameKey as _0x58b895,getTextModel as _0x19f250,getTextStyle as _0x3c50f1,normalizeShapeTextModel as _0x10cd0f,plainShapeTextToDocumentData as _0x3f9894,prepareShapeTextDocumentData as _0x437d41,registerShapeFormatPainter as _0x3ed075,resolveFormulaShapeAutoFitSize as _0x17f889,resolveShapeContextualRibbonHostMode as _0x570759,resolveShapeTextDocumentPageHeight as _0x5ca9c1,resolveShapeTextDocumentRenderLayout as _0xe799eb,resolveShapeTextEditorBehaviorShapeData as _0x432dcd,resolveShapeTextEditorWrapStrategy as _0x338209,shouldAllowShapeTextEditorHostSizeShrink as _0x51130d,shouldClipShapeTextDocument as _0x48a615,useFormulaShapeToolbar as _0xaa2e40}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x56d3ac,ContextMenuGroup as _0x510854,ContextMenuPosition as _0x2af139,FloatingObjectToolbarPosition as _0x404cbd,FormatPainterSessionService as _0x131d68,IMenuManagerService as _0x2ed3c1,IRibbonService as _0x313322,ISidebarService as _0x26d1b3,IconManager as _0x40e0f9,MenuItemType as _0x4171da,MenuManagerPosition as _0x13bc74,RibbonInsertGroup as _0x3cd9aa,UndoRedoGroupService as _0x466c9e,UniverMobileUIPlugin as _0xe117d2,getMenuHiddenObservable as _0x4ff7fb,useDependency as _0x2c7ca5,useObservable as _0x297a75}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x3a7d90,ImageSourceTypeEnum as _0x4ef65b,ShapeArrowSizeEnum as _0x29f38e,ShapeArrowTypeEnum as _0x7556f9,ShapeDefaultConfig as _0x59f579,ShapeFillEnum as _0x31dedb,ShapeLineTypeEnum as _0xdf880d,ShapeModel as _0x2e34c6,ShapeRenderModeEnum as _0x4ba7f7,ShapeTypeEnum as _0x1ecf22,computeConnectorRouteLayout as _0x42d9b4,getBasicShapeRotateBound as _0x3e1f4f,isConnectorShape as _0x3c2fe3,isCurvedConnectorShape as _0x147030,routeConnectorLineShape as _0x349ecd}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x3d58ed,UniverShapeEditorPlugin as _0x26432c,applyQuickStyleToShapeData as _0xde63d9,cloneShapeDataForType as _0x5aef65,createShapeFormulaDocument as _0x4841cb,createShapeTextBoxShapeData as _0x52ce78,getShapeQuickStylePreset as _0x4ac0ae,getShapeQuickStyleType as _0x5e4bfe,resolveActiveShapeQuickStylePresetId as _0x54dddb}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x13dbe5,InsertSheetsShapeMutation as _0x220ec8,RemoveSheetsShapeMutation as _0xd0fb5f,SetShapeDrawingDataCommand as _0x168968,SheetsShapeService as _0x5594a6,ToggleSheetsShapeFlipCommand as _0x3cca56,UniverSheetsShapePlugin as _0x41a1bc,UpdateConnectorRelationCommand as _0xb35938,UpdateLineShapeResizeCommand as _0x54a28b,UpdateSheetsShapeDataMutation as _0x4fa39c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5de8db,CommandType as _0x1644dd,DependentOn as _0x247bab,Disposable as _0x2c7179,DisposableCollection as _0x4cf05e,DocumentDataModel as _0x579f00,DrawingTypeEnum as _0x54d53a,FOCUSING_COMMON_DRAWINGS as _0x15a415,FOCUSING_SHAPE_TEXT_EDITOR as _0x3e7b7b,HorizontalAlign as _0x324c7e,ICommandService as _0x4aa13b,IConfigService as _0x20789e,IContextService as _0x21e25a,IImageIoService as _0x52e3a0,IPermissionService as _0x10d99e,IURLImageService as _0x55093c,IUndoRedoService as _0x22695f,IUniverInstanceService as _0x595744,Inject as _0x318433,Injector as _0x54646c,LocaleService as _0x3f1353,Plugin as _0x3c4eb2,UniverInstanceType as _0x37e7a9,VerticalAlign as _0x42b23f,createInternalEditorID as _0x17c599,generateRandomId as _0x524ea6,merge as _0x845994,registerDependencies as _0x1446da,toDisposable as _0x21ce23,touchDependencies as _0x45a757}from'@univerjs/core';import{CopySheetCommand as _0x2b67e1,RemoveSheetCommand as _0x56b5fe,SheetInterceptorService as _0x5dcb53,SheetPermissionCheckController as _0x24fc12,SheetSkeletonService as _0x29e188,SheetsSelectionsService as _0x188788,UniverSheetsPlugin as _0x3d2d07,WorkbookEditablePermission as _0x59c9a1,WorksheetEditPermission as _0x5ec863,attachRangeWithCoord as _0x20495d,discreteRangeToRange as _0x17eb2d,getSheetCommandTarget as _0x4b1c62}from'@univerjs/sheets';import{IDrawingManagerService as _0x1f50fa,SetDrawingSelectedOperation as _0x4c2abf,UniverDrawingPlugin as _0x31be2a,getDrawingShapeKeyByDrawingSearch as _0x5cc8a7,getOrCreateDrawingCopyPlan as _0x48a662}from'@univerjs/drawing';import{CURSOR_TYPE as _0x48d0e8,Circle as _0x2e680e,DRAWING_OBJECT_LAYER_INDEX as _0x352374,DocumentSkeleton as _0x1caf05,DocumentViewModel as _0xe5b13a,Documents as _0x4d7bfb,IRenderManagerService as _0xc8f10c,Image as _0x2cf69c,RENDER_CLASS_TYPE as _0x511859,SHEET_VIEWPORT_KEY as _0x54edb1,Shape as _0x4546bd,Transform as _0x16a726,UniverRenderEnginePlugin as _0x48dbc2,Vector2 as _0x145e25}from'@univerjs/engine-render';import{COPY_TYPE as _0x40a630,ISheetClipboardService as _0x2730e,PREDEFINED_HOOK_NAME as _0x314886,SheetCanvasPopManagerService as _0xf74177,SheetPrintInterceptorService as _0x14d662,SheetScrollManagerService as _0x20a826,SheetSkeletonManagerService as _0x307dc0,UniverSheetsMobileUIPlugin as _0x49620b,UniverSheetsUIPlugin as _0x30d40e,deriveStateFromActiveSheet$ as _0x3baf69,getCurrentRangeDisable$ as _0x49adae,getViewportByCell as _0x2ead9}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x170955,EMPTY as _0x351d29,Observable as _0x1cfcc4,map as _0x3be804,merge as _0xa89b72,of as _0x1e0e82,startWith as _0x44274b,switchMap as _0x4ab26c}from'rxjs';import{DrawingCommonPanel as _0x3bb4b3,DrawingImageClipService as _0x1432e0,DrawingRenderService as _0x2346f6,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x184fa8,MobileObjectListPanel as _0x2083db,OBJECT_LIST_FLOATING_SECTION_ID as _0xdc906c,ObjectListPanelBase as _0xb2f346,UniverDrawingUIPlugin as _0x1df8f2,getCurrentUnitInfo as _0x23371e,getObjectListPanelSectionIdForDrawingType as _0x303f7a,insertGroupObject as _0x1e07bb}from'@univerjs/drawing-ui';import{MobileDropdown as _0x2f0a7d}from'@univerjs/design';import{Fragment as _0x4ca382,jsx as _0xcdc9dc,jsxs as _0x4537d2}from'react/jsx-runtime';import{DrawingApplyType as _0x3c81cc,ISheetDrawingService as _0x35f22e,RemoveSheetDrawingCommand as _0x4d296c,SetDrawingApplyMutation as _0x50f2f5,SetDrawingArrangeCommand as _0x4e0df7,SetSheetDrawingCommand as _0x480d38,UniverSheetsDrawingPlugin as _0x572c12,transformToAxisAlignPosition as _0x306e59,transformToDrawingPosition as _0x3dccba}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x5c2b4a}from'@univerjs-pro/license';import{DocInterceptorService as _0x59811b,DocSelectionManagerService as _0x2f74d4,UniverDocsPlugin as _0x21e271}from'@univerjs/docs';function _0x2c7e(){const _0x1f188b=['_executeConnectedRouteResizeCommand','save','viewportScrollY','getBatchUpdateOp','drawing-ui.objectListPanel.lockHint','_drawRichText','_hide','onCommandExecuted','MoveUpIcon','updateLinePoints','_imageShapeClipController','animationEnabled','getShapeModel','cancelEditing','sheets-shape-ui.editShape','drawing-ui.objectListPanel.close','_handleConnectedEndpointPointerUp','offsetY','_baseLeft','_createControls','TOP','color','lineShapeId','animateFormulaPresentation','7KcdsSr','startArrow','sheet.shape.object-list.panel','_createShapeAdjustControls','getAutoFitPresentations','extensionGroups','onPointerUp$','data','PRINTING_COMPONENT_COLLECT','canvas','fillType','_cxtHandlerPointerUp','_insertShapes','Image','reverse','_activeShapeModel','_drawSimpleText','UNIVER_DOC','rect','_shapeUpdateListener','setPrstGeom','_registerFocusChangeHandler','canvasElement','setFillImage','shape-editor-ui.arrange.front','adjustValues','_isConnecting','getShapeType','onPointerDown$','sheet.shape.edit.panel','VIEW_MAIN','_addShapeConnectorHandlerObjects','_getImageDrawingInfo','angle','getObject','_canEdit','getRealBound','_applyFormulaAutoFitSize','_adjHandlerPointerUp','startConnectionDetection','fill','mergeMenu','_injector','_isStartConnectorPoint','_disposePopups','setCanUseShapeClip','shapeModel','div','_handleFreeEndpointPointerUp','onDblclick$','push','shape-text-','sheets-shape-ui.quickStyles','_clearPopups','presentation','drawing-ui.objectListPanel.name','srcRect','drawing-ui.objectListPanel.description','selectable','getImageSourceCache','sheetTransform','calcAdjValues','getDrawingByParam','7111638WhydRC','drawing-ui.objectListPanel.expand','_renderWithCache','popup','drawing-ui.objectListPanel.moveForward','presentationChanged$','next','getDrawingPoints','_getOrCreateShapeModel','_sidebarDisposable','isStartConnectorPoint','SELECTOR','flipY','setAdjustValueByName','INSERT','gradientEndColor','_baseShapeTop','clipTop','_localeService','from','cxnPointStrokeWidth','onSteady','sheets-shape-ui.flipVertical','getImage','parse','_groupCopyPasteController','_shapeFloatingToolbarService','front','_shapeService','contentVerticalOffset','setSrcRect','adjHandleSize','stringify','MEDIA','error','map','setShouldShowAdjust','stroke','decorate','activeSheet$','sheets-shape-ui','LEFT','#bcbcbc','_drawingType','offsetX','_insertingShapeKeys','_handleConnectorPointerUp','getDrawingEditable','sheets-shape-ui.ribbon.shape-format.arrange-front','getDrawingDataForUnit','getState','object','keys','call','setPrstGeomAdjValues','ShapeFormatSettingIcon','value','vertical','_generateCutPasteMutations','isHighlighted','getZoomRatio','formulaPresentation','getShapeTypeById','_updateShapeAdjustControls','_registerDrawingMoveHandler','_clearFocusedShape','isRenderLinePointsMode','getScene','drawing-ui.objectListPanel.search','onerror','SheetShapeTextEditorContainer','getTransformerByCreate','resetCursor','sheets-shape-ui.ribbon.shape-format','custom','onTransformChange$','_shapeEditPanelVersion','isHorizontal','_reset','fontFamily','completeEditing','_menuManagerService','_config','drawing-ui.objectListPanel.unlock','_sheetShapeAdjustController','ShapeIcon','unsubscribe','_generateCopyPasteMutations','_shapeRenderController','packageName','_updateSrcRectByTransform','drawing-ui.objectListPanel.lockAll','formulaBinding','DRAWING','translateWithPrecision','getConnectionInfo','getCurrentScrollState','_baseDrawingRect','drawing-ui.objectListPanel.dragToReorder','worldPoint','registerFeatureMenu','disposeWithMe','_generatePasteMutations','idMap','sectionFloating','7096mVEIHG','_initialize','filter','sheet.shape.picker.component','3LfssqQ','mode','getInterceptPoints','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getConnectorLinePoints','drawing-ui.objectListPanel.show','getShapeTextData','disableShapeOption','VIEW_MAIN_LEFT_TOP','cxnPointRadius','_registerOperations','_context','_isDrawingShapePointDown','sheets-shape-text-','TopmostIcon','_registerMoveHandler','ancestorTransform','getSkeleton','_drawRichTextLayer','_clipService','flipX','FlipVerticalIcon','_formulaKey','_loadShapePictureFill','fontSize','_draw','computeConnectorResizeLayout','remove$','BottomIcon','DRAWING_IMAGE','open','drawing-ui.objectListPanel.unlockHint','top','_isOpenedShapeEditPanel','isEditing','vertical-center','getVisible','_urlImageService','VIEW_MAIN_TOP','_sheetInterceptorService','size','isHitLine','addClipboardHook','shapeData','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_sheetPermissionCheckController','_clearConnectionSites','currentAdjustValues','drawing-ui.objectListPanel.filterAll','SolidFill','getSheetBySheetId','drawingType','getUnitId','PictureFill','doc.image-clip.shape-picker.component','1yuxaRy','pipe','endConnectionDetection','_visible','_getScrollInfo','relation','copyId','refreshShapeFillImage','attachTransformerTo','sheets-shape-ui.ribbon.shape-format.style-control','_clearControls','composeMatrix','_activeShapeId','values','name','_initCopyPaste','isMainScene','_addControl','delete','shapeId','_sheetCanvasPopManagerService','prstGeom','PaintIcon','_copyInfo','abs','type','add','beginPath','_registerDrawingFocusChangeHandler','intercept','end','_moveConnectorWithShape','_handleFreeEndpointMove','presetId','2016414EMGFwY','executeCommand','1006004vESCpa','length','1.0.2','multiply','DRAWING_SHAPE','buildClipPath','connection-site-','image','_adjName','_formulaShapes','transform','_cxtHandlerPointerMove','shapeType','height','refreshFormulaPresentation','sheetViewStartRow','_activeAdjustPointList','drawing-ui.objectListPanel.filterLocked','OPERATION','run','_popupMenuListener','_isShouldShowDrawingShapeAdjust','setFallbackVisible','_activeImageId','subUnitId','onPointerMove$','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getDrawingData','bottom','setEditing','_completionFrame','image-clip-adjust-point-','update$','sheets-shape-ui.ribbon.shape-format.formula-control','#FFFFFF','sheet.menu.shape.flip-vertical','title','_registerFeatureMenu','@univerjs-pro/sheets-shape-ui','_initSheetChange','flatMap','_connectorObjects','order','transformByState','extraProps','renderDrawingShape','UPDATE','_cxnIndex','_getShapeInfo','sheet.operation.update-shape-type','BUTTON','get','prstGeomAdjValues','startY','16078612FLwEbd','_initEditingParams','initShapePopupMenu','_hasReset','_openShapeEditPanel','horizontal','_subUnitId','sheets-shape-ui.objectListPanel.title','sectionCanvas','description','_executeConnectionCommand','cos','getMatrix','sheets-shape-format-font-family-menu','CROSSHAIR','asObservable','focusDrawing','getBasicShapeRelation','_showConnectionSites','symbol','_sheetBasicShapeConnectionPointController','_connectionSiteObjects','pluginName','getShapeDataById','panel','connector-handler-','viewportScrollX','left','_update','_getSceneAndTransformerByDrawingSearch','_drawingAddListener','blockExecuteWithoutPermission','drawing-ui.objectListPanel.unlockAll','sheet.command.update-shape-data','sheets-shape-ui.insertShape','oKey','set','_closeShapeEditPanel','getEditing','_unitId','_calculateFreeEndpointAngle','sheets-shape-ui.title','drawing-ui.objectListPanel.sectionCanvas','startX','setHighlighted','_contextService','_props','Line','getCurrentUnitOfType','None','adjHandleFill','getConnectionRelation','isDrawingObject','_baseWidth','draw','render','_sheetDrawingService','_getImagePrstGeom','getAdjustInfoByName','getAdjustValueByName','unitId','getCurrentSkeleton','includes','isArray','_baseShapeHeight','redo','_initEvents','changing$','sheets-shape-ui.ribbon.shape-format.text-control','setFormulaPresentation','scene','restore','_editingParams$','create','_iconManager','some','_activeShapeInfo','14841eOJMwR','_index','text','_getShapeAdjustPointListById','setContextValue','ang','permissionPointUpdate$','drawingId','copyType','_drawingManagerService','makeDirty','univer-box-border\x20univer-px-4\x20univer-text-sm','sheets-shape-ui.config','getConnectionSiteList','MoveDownIcon','drawing-ui.objectListPanel.collapse','registerRenderModule','_highlightedSiteIndex','getSkeletonParam','unregister','_sheetDrawingShapeRenderController','_findShapeAtPoint','calculate','drawing.operation.set-drawing-active','default','resize','SHEET_SHAPE_UI_PLUGIN','contentHeight','changeStart$','hidden','getUnitType','getDrawingSearch','_initPermission','getObjectIncludeInGroup','drawing-ui.objectListPanel.hideAll','function','parent','getTransformer','editingParams$','_isImagePointerDown','GROUP','_updateAdjustControlPositions','setCollapsedIds','_targetShapeId','drawing-ui.objectListPanel.moveBackward','getCurrentTypeOfUnit$','_init','_getConnectionSiteAngle','_ribbonService','targetShapeId','_registerGroupFeaturePasteHook','shape-adjust-point-','interceptor','_permissionService','shape-editor-ui.toolbar.changeShape','_baseHeight','_findNearestConnectionSite','_clearShapeAdjustControls','drawing-ui.objectListPanel.noSelection','getStartConnectInfo','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.title','_draggingConnectorId','clearControl$','_isHighlighted','clip','SolidLine','_activeAdjustInfo','classType','_baseTop','getRenderUnitById','_registerComponents','worldRect','sheet.command.menu-insert-shape','getBatchAddOp','with','syncExecuteCommand','isInGroup','visible','changeEnd$','drawing-ui.objectListPanel.nameInput','isRichText','reduce','getEndConnectInfo','_resetState','forward','cxnIndex','getUnit','_sheetsShapeService','refreshAdjustControls','getDrawingOKey','_lastEditingShapeKey','rotation','shape-editor-ui.arrange.backward','_shapePopupMenuDisposable','isRender','skeleton','sheets-shape-ui.editText','cxnPointFill','registerCommand','_setTransForm','backward','_shapeFormulaService','_adjHandlerPointerMove','sheetViewStartColumn','sheets-shape-ui.formatShape','attachPopupToObject','hideContextualTab','_sheetPrintInterceptorService','_formulaAnimation','showContextualTab','_shapeTextEditingService','getFocusDrawings','_attachConnectorObjectEvent','_imageIoService','constructor','getParent','getShapeTextRect','shape-editor-ui.toolbar.quickStyles','strokeWidth','register','getAdjustNames','localToWorld','axisAlignSheetTransform','_rerouteConnectorLine','onStarting','_currentConnectionTarget','refreshTransform','_clearCompletionFrame','_activeTargetShapeId','SHAPE_TEXT','forEach','highlighted','sheets-shape-ui.permission.editErr','toPrimitive','getShapeData','_sidebarService','point','getSelectedObjectMap','REMOVE','_transform','clearAdjustValue','worldPoints','drawing-ui.objectListPanel.showAll','sheets-shape-ui.objectListPanel.open','sheet.shape.text.float-menu','iterator','addImageSourceCache','complete','sheets-shape-ui.shape-format.style-ribbon-control','drawing-ui.objectListPanel.hide','preValue','getContextValue','UNIVER_SHEET','invert','endArrow','sheets-shape-ui.imagePanel.crop.shape','_shapeId','localeService','translate','_commandService','_handleConnectedEndpointMove','getDrawingOrder','ObjectLayersIcon','setShapeProps','3407830RRwPEI','getPermissionPoint','lineType','getValue','getSheetId','addObject','_clearShapeConnectorHandlerObjects','Arrow','8451560CGRsed','index','_componentManager','shape-editor-ui.arrange.back','sin','getBatchRemoveOp','activeAnObject','clipByShape','fillImageSource','debounceRefreshControls','_initPrinting','_activeShapeAdjustPointList','_currentScene','setConfig','_configService','shapeText','sheet.operation.open-shape-object-list-panel','shapeKey','_createCopyInfoByRange','_renderManagerService','_focusedDrawings','updateShapeFillImage','sheets-shape-ui.ribbon.shape-format.arrange-backward','find','permissionCheckWithoutRange','setOnSavingEditorData','#4285f4','onRendered','_updateTransform','pick','FlipHorizontalIcon','focus$','getBentTypeFromPoints','_initCommands','sheets-shape-ui.flipHorizontal','string','isHit','normal','_getConnectPointInfo','visible$','subscribe','_handleBasicShapeUpdateConnectorLineShape','getActualSize','_shapes','clearAdjustControls','getActiveSheet','fromChangeset','defineProperty','objects','_executeResizeCommand','sheets-shape-ui.shape-format.quick-style-gallery','marginTop','OTHERS','getDrawingVisible','_onSavingEditorData$','URL','Large','style','COMMAND','subscribeEvent','undo','sheets-shape-ui.deleteShape','actions','getInverseCoord','sheet.operation.open-mobile-shape-editor','drawWith','sqrt','_addShapeConnectorHandlerObject','_univerInstanceService','drawing-ui.objectListPanel.filterHidden','setPresentation','entries','sheet.operation.close-sheet-shape-format-panel','width','_sheetClipboardService','dataModel','disableObjectsEvent','_baseShapeLeft','_getDrawingRect','src','_attachAdjustEvent','add$','_disposed','featurePluginUpdateNotification','_getZoomRatio','_isStartAdjusting','transformForAngle','_baseShapeWidth','onReady','updateConnectionDetection','_sheetSkeletonService','drawing-ui.objectListPanel.typeNames.','adjName','has','getOwnPropertyDescriptor','enableObjectsEvent','drawing-ui.objectListPanel.lock','_initMenu','_drawingRenderService','updateContext','engine','_releaseRenderCache','doc','clip-adj-','version','dispose','fillImageSourceType','params','_commandExecutedListener','stopPropagation','applyPoint','trim','setCursor','setShapeData'];_0x2c7e=function(){return _0x1f188b;};return _0x2c7e();}import{DocCanvasPopManagerService as _0x5908e1,DocEventManagerService as _0x181919,DocRenderController as _0x44ebf9,DocSelectionRenderService as _0x1706ef,UniverDocsUIPlugin as _0x99abe1}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x28ac02,SheetsDrawingGroupCopyPasteController as _0x38ae18,UniverSheetsDrawingMobileUIPlugin as _0x4a669e,UniverSheetsDrawingUIPlugin as _0x57b4f0}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0xe20eb,FlipHorizontalIcon as _0x183126,FlipVerticalIcon as _0x3dabc1,MoveDownIcon as _0x1bee1c,MoveUpIcon as _0x368783,ObjectLayersIcon as _0x4809c9,ShapeFormatSettingIcon as _0x1516df,TopmostIcon as _0x1f7182}from'@univerjs/icons';import{memo as _0x2a23cd,useEffect as _0x1ff107,useMemo as _0x3352e0,useReducer as _0x256536,useState as _0x1ccdce}from'react';function yr(_0x5a2e3a,_0x5a9f46){const _0x58c17d=_0x4e9b;let _0x44d09b={};for(let _0x3b1e11 of Object[_0x58c17d(0x3da)](_0x5a9f46)){let _0x2c30f8=_0x5a9f46[_0x3b1e11],_0x22f2b3=_0x5a2e3a[_0x3b1e11];if(_0x22f2b3===void 0x0){_0x44d09b[_0x3b1e11]=void 0x0;continue;}_0x44d09b[_0x3b1e11]=typeof _0x2c30f8=='object'&&_0x2c30f8&&!Array[_0x58c17d(0x222)](_0x2c30f8)&&typeof _0x22f2b3==_0x58c17d(0x3d9)&&_0x22f2b3&&!Array[_0x58c17d(0x222)](_0x22f2b3)?yr(_0x22f2b3,_0x2c30f8):_0x22f2b3;}return _0x44d09b;}const K={'type':_0x1644dd['COMMAND'],'id':_0x244912(0x204),'handler':(_0x13ad01,_0x595215)=>{const _0xb8724b=_0x244912;let _0x31fe87=_0x13ad01['get'](_0x5594a6),{unitId:_0x262a2f,subUnitId:_0x5388db,shapeType:_0x13a6cc,shapeId:_0x338951,shapeData:_0x2bda58,replaceShapeData:_0x8f8eb6,oldShapeJSON:_0x420932}=_0x595215;if(!_0x31fe87[_0xb8724b(0x35b)](_0x262a2f,_0x5388db,_0x338951))return!0x1;let _0x198f2a=_0x13ad01[_0xb8724b(0x1e0)](_0x4aa13b),_0x3e7f8d=_0x13ad01['get'](_0x22695f),{oldShapeType:_0x4914c3,oldShapeData:_0x193ce7={}}=_0x420932,_0x7fa4dc=_0x8f8eb6?_0x193ce7:yr(_0x193ce7,_0x2bda58||{}),_0x585fbd={'id':_0x4fa39c['id'],'params':{'unitId':_0x262a2f,'subUnitId':_0x5388db,'shapeId':_0x338951,'shapeType':_0x13a6cc,'shapeData':_0x2bda58,'replace':_0x8f8eb6}},_0x137288={'id':_0x4fa39c['id'],'params':{'unitId':_0x262a2f,'subUnitId':_0x5388db,'shapeId':_0x338951,'shapeType':_0x4914c3,'shapeData':_0x7fa4dc,'replace':_0x8f8eb6}};return _0x198f2a[_0xb8724b(0x27c)](_0x585fbd['id'],_0x585fbd[_0xb8724b(0x348)])?(_0x3e7f8d['pushUndoRedo']({'unitID':_0x262a2f,'undoMutations':[_0x137288],'redoMutations':[_0x585fbd]}),!0x0):!0x1;}};function br(_0x1200f2,_0x5348dd,_0xd5cbfa,_0x3f8120,_0x505e59,_0x4db269){const _0x3ddfa9=_0x244912;let _0x43675b={'unitId':_0x5348dd,'subUnitId':_0xd5cbfa,'shapeId':_0x3f8120,'shapeData':_0x4db269,'oldShapeJSON':_0x505e59};return _0x1200f2[_0x3ddfa9(0x1ac)](K['id'],_0x43675b);}function xr(_0x1bf49c,_0x2578f5,_0x28bf0c,_0x4bcd1f,_0x4c1ec8,_0x47998f){const _0x5b1a31=_0x244912;let _0x7b376c={'unitId':_0x2578f5,'subUnitId':_0x28bf0c,'shapeId':_0x4bcd1f,'shapeData':_0x47998f,'oldShapeJSON':_0x4c1ec8};return _0x1bf49c[_0x5b1a31(0x1ac)](K['id'],_0x7b376c);}function Sr(_0x5d9b0a){'@babel/helpers - typeof';const _0x57fa34=_0x244912;return Sr=typeof Symbol==_0x57fa34(0x253)&&typeof Symbol[_0x57fa34(0x2c2)]==_0x57fa34(0x1f6)?function(_0x345c20){return typeof _0x345c20;}:function(_0x65f977){const _0x267e29=_0x57fa34;return _0x65f977&&typeof Symbol=='function'&&_0x65f977[_0x267e29(0x2a3)]===Symbol&&_0x65f977!==Symbol['prototype']?_0x267e29(0x1f6):typeof _0x65f977;},Sr(_0x5d9b0a);}function Cr(_0x2285bb,_0x1ed628){const _0x14907d=_0x244912;if(Sr(_0x2285bb)!=_0x14907d(0x3d9)||!_0x2285bb)return _0x2285bb;var _0x411419=_0x2285bb[Symbol[_0x14907d(0x2b6)]];if(_0x411419!==void 0x0){var _0x180e2f=_0x411419[_0x14907d(0x3db)](_0x2285bb,_0x1ed628||_0x14907d(0x248));if(Sr(_0x180e2f)!=_0x14907d(0x3d9))return _0x180e2f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1ed628===_0x14907d(0x300)?String:Number)(_0x2285bb);}function wr(_0x542607){const _0x5bf2ce=_0x244912;var _0x5f1ffd=Cr(_0x542607,_0x5bf2ce(0x300));return Sr(_0x5f1ffd)=='symbol'?_0x5f1ffd:_0x5f1ffd+'';}function q(_0x1254eb,_0x490417,_0x43b5dc){const _0x5113e1=_0x244912;return(_0x490417=wr(_0x490417))in _0x1254eb?Object[_0x5113e1(0x30c)](_0x1254eb,_0x490417,{'value':_0x43b5dc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1254eb[_0x490417]=_0x43b5dc,_0x1254eb;}function Tr(_0x40d0fc,_0x2289e5,_0x2214c6){const _0xecb51b=_0x244912;let _0xf1599={..._0x2289e5,'dataModel':{..._0x2289e5[_0xecb51b(0x328)]??{},..._0x2214c6?{'doc':_0x2214c6}:null}},_0x44d915=_0x432dcd(_0x40d0fc,_0xf1599),_0x20531c=_0x338209(_0x44d915);return{'clip':_0x48a615(_0x44d915,_0x20531c),'wrapStrategy':_0x20531c};}var Er=class extends _0x4546bd{constructor(_0x58c15d,_0x29ac89){const _0x341125=_0x244912;super(_0x58c15d,_0x29ac89),q(this,_0x341125(0x211),void 0x0),q(this,'_formulaAnimation',new _0x141052(()=>this[_0x341125(0x23a)](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x341125(0x3d1),_0x54d53a[_0x341125(0x1b1)]),q(this,_0x341125(0x217),!0x0),this[_0x341125(0x211)]={..._0x29ac89},this[_0x341125(0x29d)]['setPresentation'](_0x29ac89[_0x341125(0x3e3)],_0x29ac89[_0x341125(0x366)]!==!0x1),this[_0x341125(0x25e)](),this[_0x341125(0x38c)]();}['_init'](){const _0x3a1b8b=_0x244912;this[_0x3a1b8b(0x3f1)][_0x3a1b8b(0x318)](_0x163f88=>{const _0x4b91a8=_0x3a1b8b;this[_0x4b91a8(0x13f)](_0x163f88);});}['setPrstGeom'](_0x426f13){const _0x32c1d1=_0x244912;this[_0x32c1d1(0x211)]['prstGeom']=_0x426f13;}[_0x244912(0x1ca)](_0x49b1e5){const _0x11ae88=_0x244912;this[_0x11ae88(0x211)][_0x11ae88(0x174)]=_0x49b1e5,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x20bd36,_0x28cd46=!0x0){const _0x54be33=_0x244912;this[_0x54be33(0x29d)][_0x54be33(0x323)](_0x20bd36,_0x28cd46),this[_0x54be33(0x211)]['formulaPresentation']=_0x20bd36,this[_0x54be33(0x38c)](),this[_0x54be33(0x23a)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x5d28a2=_0x244912;let _0x586c70=this[_0x5d28a2(0x211)]['shapeModel'],_0x5553c3=_0x586c70[_0x5d28a2(0x158)](),_0x298b92=_0x10cd0f(_0x5553c3==null?void 0x0:_0x5553c3[_0x5d28a2(0x328)]),_0x3359d5=_0x298b92==null?void 0x0:_0x298b92['doc'],_0x41c73e=this[_0x5d28a2(0x29d)][_0x5d28a2(0x36b)]();if(!_0x3359d5||_0x41c73e[_0x5d28a2(0x1ae)]===0x0)return;_0x586c70[_0x5d28a2(0x340)]({'width':this[_0x5d28a2(0x326)],'height':this[_0x5d28a2(0x1ba)]});let _0x94c6dd=_0x17f889({'documentData':_0x41c73e[_0x5d28a2(0x3c9)](_0x54a124=>_0x4841cb(_0x3359d5,_0x54a124)),'height':this['height'],'shapeData':_0x586c70[_0x5d28a2(0x2b7)](),'textRect':_0x586c70['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x5d28a2(0x326)],'height':this[_0x5d28a2(0x1ba)]}),'width':this[_0x5d28a2(0x326)]});if(_0x94c6dd){var _0x617d71;this[_0x5d28a2(0x249)](_0x94c6dd['width'],_0x94c6dd['height']),(_0x617d71=this[_0x5d28a2(0x3e9)]())==null||(_0x617d71=_0x617d71[_0x5d28a2(0x255)]())==null||_0x617d71[_0x5d28a2(0x2e6)]();}}get['unitId'](){const _0x224b00=_0x244912;return this[_0x224b00(0x211)][_0x224b00(0x21f)];}get['subUnitId'](){const _0x25027d=_0x244912;return this[_0x25027d(0x211)]['subUnitId'];}[_0x244912(0x13f)](_0x44b438){const _0x2b247c=_0x244912;if(this[_0x2b247c(0x211)][_0x2b247c(0x39f)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x4b99ea,height:_0x4c60a2}=this,{width:_0x4023da=0x0,height:_0x393f89=0x0}=_0x44b438[_0x2b247c(0x2c7)],{left:_0x49f185=0x0,top:_0x6e5c84=0x0,right:_0xef8de=0x0,bottom:_0x5856c3=0x0}=this[_0x2b247c(0x211)]['srcRect'],_0xd1c295=_0x49f185,_0x49dcb1=_0x6e5c84,_0x300326=_0xef8de,_0x4cb772=_0x5856c3,_0x1299a7=!0x1;if(_0x4023da!==0x0&&_0x4023da!==_0x4b99ea){let _0x34c0e3=_0x49f185/_0x4023da,_0x42faf0=_0xef8de/_0x4023da;_0xd1c295=_0x4b99ea*_0x34c0e3,_0x300326=_0x4b99ea*_0x42faf0,_0x1299a7=!0x0;}if(_0x393f89!==0x0&&_0x393f89!==_0x4c60a2){let _0x2c322c=_0x6e5c84/_0x393f89,_0x5f3a7b=_0x5856c3/_0x393f89;_0x49dcb1=_0x4c60a2*_0x2c322c,_0x4cb772=_0x4c60a2*_0x5f3a7b,_0x1299a7=!0x0;}_0x1299a7&&this[_0x2b247c(0x3c4)]({'left':_0xd1c295,'top':_0x49dcb1,'right':_0x300326,'bottom':_0x4cb772});}[_0x244912(0x3c4)](_0x7f0376){const _0x9ae493=_0x244912;this[_0x9ae493(0x211)][_0x9ae493(0x39f)]=_0x7f0376,this[_0x9ae493(0x23a)](!0x0);}[_0x244912(0x37e)](_0x4487a4){const _0x2eb7d1=_0x244912;this[_0x2eb7d1(0x211)][_0x2eb7d1(0x1b4)]=_0x4487a4,this['makeDirty'](!0x0);}set['transform'](_0x2c61b6){const _0x1b644=_0x244912;this[_0x1b644(0x2bc)]=_0x2c61b6;}get[_0x244912(0x1b7)](){const _0x16b4e8=_0x244912;this[_0x16b4e8(0x2bc)]||this[_0x16b4e8(0x294)]();let _0x5022b9=this[_0x16b4e8(0x2bc)]['clone']();return this[_0x16b4e8(0x333)](_0x5022b9);}get[_0x244912(0x395)](){const _0x29a3ff=_0x244912;return this[_0x29a3ff(0x211)]['shapeModel'];}get[_0x244912(0x19c)](){const _0x3e2ac1=_0x244912;return this[_0x3e2ac1(0x211)][_0x3e2ac1(0x19c)];}get[_0x244912(0x274)](){return _0x511859['SHAPE'];}['_draw'](_0x2ae495,_0x2de7ee,_0x3923c1,_0x4e5420){const _0x276c40=_0x244912;let _0x53aedf=this[_0x276c40(0x211)][_0x276c40(0x395)];if(!_0x53aedf||!_0x2de7ee)return;let _0x760c32=_0x3923c1??this[_0x276c40(0x326)],_0x716484=_0x4e5420??this[_0x276c40(0x1ba)],_0x2b43a2={'shapeType':_0x53aedf[_0x276c40(0x382)](),'width':_0x760c32,'height':_0x716484},_0x320c6d={'renderMode':_0x4ba7f7['Path'],'oKey':this[_0x276c40(0x206)],'image':this[_0x276c40(0x211)][_0x276c40(0x1b4)],'angle':this['angle']};_0x53aedf[_0x276c40(0x340)](_0x2b43a2),_0x2ae495[_0x276c40(0x350)]();let _0x353288={'top':0x0,'left':0x0,'width':_0x760c32,'height':_0x716484},_0x29a030=_0x53aedf['getDrawingEffectBounds'](_0x353288);_0x29a030?this[_0x276c40(0x3a8)](_0x2ae495,_0x29a030,_0x4d4034=>{const _0x1655ec=_0x276c40;_0x53aedf[_0x1655ec(0x21a)](_0x4d4034,_0x353288,_0x320c6d);}):(this[_0x276c40(0x342)](),_0x53aedf[_0x276c40(0x21a)](_0x2ae495,_0x353288,_0x320c6d)),_0x2ae495[_0x276c40(0x22a)]();let _0xe3617e=_0x53aedf['getShapeTextData'](),_0x505de7=_0x53aedf[_0x276c40(0x2a5)](_0x353288),_0x3b46ae=_0x53aedf['isLineShape']();if(_0xe3617e&&_0x505de7&&!_0x3b46ae){_0x2ae495[_0x276c40(0x350)](),this[_0x276c40(0x3d8)]()[_0x276c40(0x166)]&&_0x2ae495['scale'](-0x1,0x1);let _0x380483=_0x760c32/0x2,_0x557066=_0x716484/0x2;_0x2ae495[_0x276c40(0x2cf)](-_0x380483,-_0x557066),_0x2ae495[_0x276c40(0x1a4)](),this['_drawShapeText'](_0x2ae495,_0xe3617e,_0x505de7),_0x2ae495[_0x276c40(0x22a)]();}}[_0x244912(0x3ad)](_0x56b13c){}['_drawShapeText'](_0x369fec,_0x4ed1fd,_0x3ac218){const _0x412883=_0x244912;var _0x2cf7d8;this['_props']['isEditing']||(!((_0x2cf7d8=_0x4ed1fd['dataModel'])!=null&&_0x2cf7d8[_0x412883(0x343)])&&'isRichText'in _0x4ed1fd&&_0x4ed1fd[_0x412883(0x281)]===!0x1?this['_drawSimpleText'](_0x369fec,_0x4ed1fd,_0x3ac218):this[_0x412883(0x354)](_0x369fec,_0x4ed1fd,_0x3ac218));}[_0x244912(0x377)](_0x262b79,_0x3df5c3,_0x2ae611){const _0x575dee=_0x244912;this[_0x575dee(0x354)](_0x262b79,{..._0x3df5c3,'text':_0x3df5c3[_0x575dee(0x232)]??'','dataModel':{'doc':_0x3f9894(_0x3df5c3,_0x575dee(0x15f)+this[_0x575dee(0x206)])}},_0x2ae611);}[_0x244912(0x354)](_0xcba5e0,_0x343f5e,_0x12ce37){const _0x4ec8b6=_0x244912;_0x4dca42(_0xcba5e0,this[_0x4ec8b6(0x29d)],(_0x53ee7e,_0xb6c392)=>{this['_drawRichTextLayer'](_0x53ee7e,_0x343f5e,_0x12ce37,_0xb6c392);});}[_0x244912(0x164)](_0x14f38b,_0x3307c8,_0x19382e,_0x320c25){const _0x4f85d4=_0x244912;let _0x342807=this[_0x4f85d4(0x211)][_0x4f85d4(0x2ce)];if(!_0x3307c8[_0x4f85d4(0x328)]||!_0x342807)return;let _0x1f3f15=_0x10cd0f(_0x3307c8[_0x4f85d4(0x328)]);if(!_0x1f3f15)return;let _0x4edd41=_0x1f3f15[_0x4f85d4(0x343)];if(!_0x4edd41)return;let _0x34469c=_0x4841cb(_0x4edd41,_0x320c25),_0xd5962e=_0x1f3f15['va']??_0x42b23f[_0x4f85d4(0x363)],_0x141c6e=_0x1f3f15['ha']??_0x324c7e[_0x4f85d4(0x3cf)],_0xdb8dd8=Tr(this[_0x4f85d4(0x211)][_0x4f85d4(0x395)][_0x4f85d4(0x2b7)](),_0x3307c8,_0x34469c),_0x377171=_0x3307c8[_0x4f85d4(0x3f3)],_0x21efb9=_0x437d41(_0x34469c,{'isHorizontal':_0x377171!==!0x1,'textRect':_0x19382e,'verticalAlign':_0xd5962e,'horizontalAlign':_0x141c6e,'wrapStrategy':_0xdb8dd8['wrapStrategy']}),_0x1e1e9b=new _0x579f00(_0x21efb9),_0x33515a=new _0xe5b13a(_0x1e1e9b),_0x25d61c=_0x1caf05[_0x4f85d4(0x22c)](_0x33515a,_0x342807);_0x25d61c[_0x4f85d4(0x246)]();let _0x4d113e=_0x25d61c[_0x4f85d4(0x307)]()['actualHeight'],_0xccc59c=_0xe799eb({'contentHeight':_0x4d113e,'verticalAlign':_0xd5962e,'viewportHeight':_0x19382e[_0x4f85d4(0x1ba)]});_0x1e1e9b['updateDocumentStyle']({'pageSize':{'width':_0x377171===!0x1?_0x19382e[_0x4f85d4(0x1ba)]:_0x19382e[_0x4f85d4(0x326)],'height':_0x5ca9c1(_0x34469c,_0xccc59c[_0x4f85d4(0x24b)])}}),_0x1e1e9b['updateDocumentDataMargin']({'t':_0xccc59c[_0x4f85d4(0x310)]}),_0x25d61c[_0x4f85d4(0x246)]();let _0x22f0df=new _0x4d7bfb(_0x4f85d4(0x39a)+this['oKey'],_0x25d61c,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4f85d4(0x23a)](!0x0)});_0x22f0df[_0x4f85d4(0x249)](_0x19382e[_0x4f85d4(0x326)],_0xccc59c[_0x4f85d4(0x24b)]),_0x14f38b['save'](),_0x14f38b[_0x4f85d4(0x143)](_0x19382e[_0x4f85d4(0x1fe)],_0x19382e[_0x4f85d4(0x172)]),_0xdb8dd8[_0x4f85d4(0x271)]&&(_0x14f38b[_0x4f85d4(0x1a4)](),_0x14f38b[_0x4f85d4(0x379)](0x0,_0xccc59c[_0x4f85d4(0x3b7)],_0x19382e[_0x4f85d4(0x326)],_0xccc59c['clipHeight']),_0x14f38b[_0x4f85d4(0x271)]()),_0xccc59c[_0x4f85d4(0x3c3)]&&_0x14f38b[_0x4f85d4(0x143)](0x0,_0xccc59c[_0x4f85d4(0x3c3)]),_0x22f0df[_0x4f85d4(0x219)](_0x14f38b),_0x14f38b[_0x4f85d4(0x22a)](),_0x22f0df[_0x4f85d4(0x346)](),_0x25d61c[_0x4f85d4(0x346)](),_0x33515a[_0x4f85d4(0x346)](),_0x1e1e9b['dispose']();}[_0x244912(0x21a)](_0x27299e,_0x81ed65,_0x514305=!0x1){const _0x5822d7=_0x244912;if(!this[_0x5822d7(0x27e)])return this[_0x5822d7(0x23a)](!0x1),this;let {width:_0x2b19da,height:_0x1dae20,left:_0x45f934,top:_0x7bd85d}=this,_0x22d3b2=this['getRealBound']();if(_0x2b19da=_0x22d3b2[_0x5822d7(0x326)],_0x1dae20=_0x22d3b2[_0x5822d7(0x1ba)],_0x45f934=_0x22d3b2['left'],_0x7bd85d=_0x22d3b2[_0x5822d7(0x172)],this[_0x5822d7(0x28f)](_0x81ed65)){let {top:_0x19f389,left:_0x4a89fb,bottom:_0x2e5197,right:_0x3b7756}=_0x81ed65['viewBound'];if(_0x2b19da+this['strokeWidth']+_0x45f934<_0x4a89fb||_0x3b7756<_0x45f934||_0x1dae20+this[_0x5822d7(0x2a7)]+_0x7bd85d<_0x19f389||_0x2e5197<_0x7bd85d)return this;}let _0x262c27=_0x45f934+_0x2b19da/0x2,_0x5bd815=_0x7bd85d+_0x1dae20/0x2,_0x559d48=this[_0x5822d7(0x1b7)]['getMatrix']();if(this['_props'][_0x5822d7(0x174)]){let _0x4983c1=this[_0x5822d7(0x3d8)](),_0x2f5231=new _0x16a726();_0x2f5231[_0x5822d7(0x194)]({..._0x4983c1}),_0x559d48=_0x2f5231[_0x5822d7(0x1ef)]();}return _0x27299e['save'](),this[_0x5822d7(0x211)][_0x5822d7(0x395)][_0x5822d7(0x3e8)]===!0x0||_0x27299e[_0x5822d7(0x1b7)](_0x559d48[0x0],_0x559d48[0x1],_0x559d48[0x2],_0x559d48[0x3],_0x262c27,_0x5bd815),this['_draw'](_0x27299e,_0x81ed65,_0x2b19da,_0x1dae20),_0x27299e[_0x5822d7(0x22a)](),this[_0x5822d7(0x23a)](!0x1),this;}[_0x244912(0x31c)](_0x1191ea){const _0x2aff13=_0x244912;let {left:_0x2ef96a,top:_0x791bcc,width:_0xbc9f5,height:_0x24cf48}=this[_0x2aff13(0x38b)](),_0x120f0e=this['transform'][_0x2aff13(0x1ef)](),_0x5b653f=_0x2ef96a+_0xbc9f5/0x2,_0x3ec877=_0x791bcc+_0x24cf48/0x2,_0x4cf6a7=new _0x16a726([_0x120f0e[0x0],_0x120f0e[0x1],_0x120f0e[0x2],_0x120f0e[0x3],_0x5b653f,_0x3ec877]),_0x2ae7ee=this[_0x2aff13(0x2a4)]();return(this['isInGroup']&&(_0x2ae7ee==null?void 0x0:_0x2ae7ee['classType'])===_0x511859['GROUP']?_0x2ae7ee[_0x2aff13(0x162)][_0x2aff13(0x1b0)](_0x4cf6a7):_0x4cf6a7)[_0x2aff13(0x2ca)]()[_0x2aff13(0x34b)](_0x1191ea);}[_0x244912(0x301)](_0x5656f8){const _0x2a73a3=_0x244912;let {left:_0x2039c3,top:_0x6355c,width:_0x2c00a9,height:_0x515bdc}=this[_0x2a73a3(0x38b)](),_0xb82e9f=_0x2039c3+_0x2c00a9/0x2,_0x909c91=_0x6355c+_0x515bdc/0x2,_0x2b1dff=this[_0x2a73a3(0x1b7)][_0x2a73a3(0x1ef)](),_0x3be251=new _0x16a726([_0x2b1dff[0x0],_0x2b1dff[0x1],_0x2b1dff[0x2],_0x2b1dff[0x3],_0xb82e9f,_0x909c91]),_0x353a91=this[_0x2a73a3(0x2a4)](),_0x408df3=(this['isInGroup']&&(_0x353a91==null?void 0x0:_0x353a91[_0x2a73a3(0x274)])===_0x511859['GROUP']?_0x353a91[_0x2a73a3(0x162)][_0x2a73a3(0x1b0)](_0x3be251):_0x3be251)['invert']()[_0x2a73a3(0x34b)](_0x5656f8),_0x5b7831=_0x2c00a9/0x2,_0x36604e=_0x515bdc/0x2,_0x1a395=this['_props'][_0x2a73a3(0x395)];return _0x1a395&&_0x1a395['isLineShape']()?_0x1a395[_0x2a73a3(0x17b)](_0x408df3['x'],_0x408df3['y'],_0x2c00a9,_0x515bdc):_0x408df3['x']>=-_0x5b7831-this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['x']<=_0x5b7831+this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['y']>=-_0x36604e-this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['y']<=_0x36604e+this['strokeWidth']/0x2;}[_0x244912(0x346)](){const _0x33b70e=_0x244912;this['_formulaAnimation'][_0x33b70e(0x346)](),this[_0x33b70e(0x211)]['shapeModel']=null,super[_0x33b70e(0x346)]();}},Dr=class extends _0x4546bd{constructor(_0x3d00ac,_0x5858cd){const _0x73a06=_0x244912;super(_0x3d00ac,_0x5858cd),q(this,_0x73a06(0x2cd),null),q(this,_0x73a06(0x1b5),null),q(this,_0x73a06(0x20a),null),q(this,_0x73a06(0x1e9),null),_0x5858cd&&this[_0x73a06(0x2d4)](_0x5858cd);}[_0x244912(0x24f)](){const _0x454e31=_0x244912;return{'unitId':this[_0x454e31(0x20a)],'subUnitId':this[_0x454e31(0x1e9)],'drawingId':this['_shapeId']};}[_0x244912(0x2d4)](_0xde3ba7){const _0x25a2aa=_0x244912;_0xde3ba7[_0x25a2aa(0x19c)]!==void 0x0&&(this[_0x25a2aa(0x2cd)]=_0xde3ba7[_0x25a2aa(0x19c)]),_0xde3ba7['adjName']!==void 0x0&&(this['_adjName']=_0xde3ba7[_0x25a2aa(0x339)]),_0xde3ba7[_0x25a2aa(0x21f)]!==void 0x0&&(this[_0x25a2aa(0x20a)]=_0xde3ba7[_0x25a2aa(0x21f)]),_0xde3ba7[_0x25a2aa(0x1c5)]!==void 0x0&&(this[_0x25a2aa(0x1e9)]=_0xde3ba7['subUnitId']),this[_0x25a2aa(0x1d8)]({'width':_0xde3ba7[_0x25a2aa(0x326)],'height':_0xde3ba7[_0x25a2aa(0x1ba)]});}[_0x244912(0x16b)](_0x2c5505){const _0xed7c5=_0x244912;_0x2e680e[_0xed7c5(0x31e)](_0x2c5505,{'radius':_0x59f579[_0xed7c5(0x3c5)],'fill':_0x59f579[_0xed7c5(0x215)],'stroke':_0x59f579['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x545f47,_0x5ac016){return function(_0x5895dc,_0x33a3ef){_0x5ac016(_0x5895dc,_0x33a3ef,_0x545f47);};}function Y(_0x3438c3,_0x15d8d8,_0x3cac19,_0x2f4959){const _0x1cd034=_0x244912;var _0x4e3185=arguments[_0x1cd034(0x1ae)],_0x1f5412=_0x4e3185<0x3?_0x15d8d8:_0x2f4959===null?_0x2f4959=Object[_0x1cd034(0x33b)](_0x15d8d8,_0x3cac19):_0x2f4959,_0x37818a;if(typeof Reflect==_0x1cd034(0x3d9)&&typeof Reflect[_0x1cd034(0x3cc)]=='function')_0x1f5412=Reflect[_0x1cd034(0x3cc)](_0x3438c3,_0x15d8d8,_0x3cac19,_0x2f4959);else{for(var _0x218e96=_0x3438c3[_0x1cd034(0x1ae)]-0x1;_0x218e96>=0x0;_0x218e96--)(_0x37818a=_0x3438c3[_0x218e96])&&(_0x1f5412=(_0x4e3185<0x3?_0x37818a(_0x1f5412):_0x4e3185>0x3?_0x37818a(_0x15d8d8,_0x3cac19,_0x1f5412):_0x37818a(_0x15d8d8,_0x3cac19))||_0x1f5412);}return _0x4e3185>0x3&&_0x1f5412&&Object[_0x1cd034(0x30c)](_0x15d8d8,_0x3cac19,_0x1f5412),_0x1f5412;}let X=class extends _0x2c7179{constructor(_0x8ffbbd,_0x7b3275,_0x2d1e2f,_0xc3d79,_0x2b73ed,_0x284c84){const _0x50ef8d=_0x244912;super(),this[_0x50ef8d(0x239)]=_0x8ffbbd,this[_0x50ef8d(0x288)]=_0x7b3275,this[_0x50ef8d(0x3b8)]=_0x2d1e2f,this[_0x50ef8d(0x2a2)]=_0xc3d79,this[_0x50ef8d(0x177)]=_0x2b73ed,this[_0x50ef8d(0x296)]=_0x284c84,q(this,_0x50ef8d(0x1b6),new Map()),this[_0x50ef8d(0x14a)](this['_shapeFormulaService'][_0x50ef8d(0x3ab)][_0x50ef8d(0x305)](_0x44ff00=>{const _0x48d0e1=_0x50ef8d;var _0x1b3a07;(_0x1b3a07=this['_formulaShapes'][_0x48d0e1(0x1e0)](this[_0x48d0e1(0x168)](_0x44ff00['unitId'],_0x44ff00[_0x48d0e1(0x1c5)],_0x44ff00[_0x48d0e1(0x19c)])))==null||_0x1b3a07[_0x48d0e1(0x2b3)](_0x4005ec=>_0x4005ec[_0x48d0e1(0x228)](_0x44ff00[_0x48d0e1(0x39d)],_0x44ff00[_0x48d0e1(0x35a)]));})),this[_0x50ef8d(0x14a)](this[_0x50ef8d(0x239)][_0x50ef8d(0x16d)][_0x50ef8d(0x305)](_0x2ad799=>{const _0x569004=_0x50ef8d;_0x2ad799[_0x569004(0x2b3)](_0x14a229=>{const _0x2dcced=_0x569004;this[_0x2dcced(0x296)][_0x2dcced(0x243)]({'unitId':_0x14a229[_0x2dcced(0x21f)],'subUnitId':_0x14a229[_0x2dcced(0x1c5)],'shapeId':_0x14a229['drawingId']}),this[_0x2dcced(0x1b6)]['delete'](this[_0x2dcced(0x168)](_0x14a229[_0x2dcced(0x21f)],_0x14a229[_0x2dcced(0x1c5)],_0x14a229[_0x2dcced(0x237)]));});}));}[_0x244912(0x1da)](_0x468bc3,_0xba6425,_0x23ccc3){const _0x3d8fbd=_0x244912;let {transform:_0x573c92,drawingType:_0x2f90a2,srcRect:_0x261997,prstGeom:_0x53e6cd,groupId:_0x55f6b3,unitId:_0x4752f5,subUnitId:_0x478367,drawingId:_0x5b4834,isMultiTransform:_0x127e8a,transforms:_0x2975a5,hidden:_0x3eac5b,selectable:_0x4b1135}=_0x468bc3;if(_0x2f90a2!==_0x54d53a['DRAWING_SHAPE']||!this[_0x3d8fbd(0x239)]['getDrawingVisible']()||_0x573c92==null)return;let _0x4d8acc=this['_drawingManagerService'][_0x3d8fbd(0x3d5)](),_0x36415c=_0x127e8a&&_0x2975a5?_0x2975a5:[_0x573c92],_0x1c3872=[];for(let _0x445200 of _0x36415c){let {left:_0xd1166c,top:_0x5d056d,width:_0x1992ca,height:_0x2a5b94,angle:_0x137560,flipX:_0x51b435,flipY:_0x2e1b73,skewX:_0x4a5010,skewY:_0x4bdddb}=_0x445200,_0x4a1ac2=_0x36415c['indexOf'](_0x445200),_0x1a83b0=_0x5cc8a7({'unitId':_0x4752f5,'subUnitId':_0x478367,'drawingId':_0x5b4834},_0x127e8a?_0x4a1ac2:void 0x0),_0x1bd0e0=_0xba6425[_0x3d8fbd(0x251)](_0x1a83b0);if(_0x1bd0e0!=null){let _0x56d134={'unitId':_0x4752f5,'subUnitId':_0x478367,'shapeId':_0x5b4834};_0x1bd0e0 instanceof Er&&this[_0x3d8fbd(0x1bb)](_0x1bd0e0,_0x56d134),_0x1bd0e0[_0x3d8fbd(0x1d8)]({'left':_0xd1166c,'top':_0x5d056d,'width':_0x1992ca,'height':_0x2a5b94,'angle':_0x137560,'flipX':_0x51b435,'flipY':_0x2e1b73,'skewX':_0x4a5010,'skewY':_0x4bdddb});continue;}let _0x1ffb06=this[_0x3d8fbd(0x239)][_0x3d8fbd(0x2d2)](_0x4752f5,_0x478367),_0x2ca096=_0x1ffb06['indexOf'](_0x5b4834);if(_0xba6425['getObjectIncludeInGroup'](_0x1a83b0)||!this['_drawingManagerService'][_0x3d8fbd(0x312)]())continue;let _0x864e4c=this[_0x3d8fbd(0x288)]['getShapeModel'](_0x4752f5,_0x478367,_0x5b4834);if(!_0x864e4c)continue;let _0x4da4de=_0x3c2fe3(_0x864e4c[_0x3d8fbd(0x382)]())?{..._0x31a8fe,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x31a8fe,_0x346944=_0x864e4c[_0x3d8fbd(0x2b7)]()[_0x3d8fbd(0x141)],_0x2bb6b6={'unitId':_0x4752f5,'subUnitId':_0x478367,'shapeId':_0x5b4834};_0x346944&&this[_0x3d8fbd(0x296)][_0x3d8fbd(0x2a8)](_0x2bb6b6,_0x346944);let _0x3dcbc5=new Er(_0x1a83b0,{..._0x445200,'zIndex':_0x2ca096===-0x1?_0x1ffb06[_0x3d8fbd(0x1ae)]-0x1:_0x2ca096,'shapeModel':_0x864e4c,'localeService':this[_0x3d8fbd(0x3b8)],'shapeId':_0x5b4834,'unitId':_0x4752f5,'subUnitId':_0x478367,'visible':_0x3eac5b!==!0x0,'evented':_0x4b1135!==!0x1,'formulaPresentation':_0x346944?this['_shapeFormulaService']['getPresentation'](_0x2bb6b6):void 0x0,'animateFormulaPresentation':(_0x346944==null?void 0x0:_0x346944[_0x3d8fbd(0x35a)])!==!0x1,'transformerConfig':_0x4da4de});if(_0x346944){let _0x7553d2=this[_0x3d8fbd(0x168)](_0x4752f5,_0x478367,_0x5b4834),_0x53b1ce=this['_formulaShapes'][_0x3d8fbd(0x1e0)](_0x7553d2)??new Set();_0x53b1ce['add'](_0x3dcbc5),this[_0x3d8fbd(0x1b6)][_0x3d8fbd(0x207)](_0x7553d2,_0x53b1ce);}_0xba6425['addObject'](_0x3dcbc5,_0x352374),_0x4d8acc&&_0xba6425[_0x3d8fbd(0x191)](_0x3dcbc5),_0x55f6b3&&_0x1e07bb({'drawingId':_0x55f6b3,'unitId':_0x4752f5,'subUnitId':_0x478367},_0x3dcbc5,_0xba6425,this[_0x3d8fbd(0x239)]),_0x53e6cd!=null&&_0x3dcbc5[_0x3d8fbd(0x37b)](_0x53e6cd),_0x261997!=null&&_0x3dcbc5['setSrcRect'](_0x261997);let _0x4b570c=this[_0x3d8fbd(0x169)](_0x3dcbc5,_0x864e4c[_0x3d8fbd(0x2b7)]());if(_0x4b570c){var _0x3b441f;_0x23ccc3==null||(_0x3b441f=_0x23ccc3['resourceCollector'])==null||_0x3b441f[_0x3d8fbd(0x1a3)](_0x4b570c);}_0x1c3872[_0x3d8fbd(0x399)](_0x3dcbc5);}return _0x1c3872;}[_0x244912(0x168)](_0x86d034,_0x36b0ca,_0x5f1159){return _0x86d034+'\x00'+_0x36b0ca+'\x00'+_0x5f1159;}[_0x244912(0x1bb)](_0x51671c,_0x195067){const _0x25c5a6=_0x244912;let _0x9bddd9=this['_sheetsShapeService'][_0x25c5a6(0x35b)](_0x195067[_0x25c5a6(0x21f)],_0x195067['subUnitId'],_0x195067[_0x25c5a6(0x19c)]),_0x5c68e4=_0x9bddd9==null?void 0x0:_0x9bddd9[_0x25c5a6(0x2b7)]()[_0x25c5a6(0x141)],_0xc2308b=this[_0x25c5a6(0x168)](_0x195067[_0x25c5a6(0x21f)],_0x195067[_0x25c5a6(0x1c5)],_0x195067[_0x25c5a6(0x19c)]);if(_0x5c68e4){this[_0x25c5a6(0x296)][_0x25c5a6(0x2a8)](_0x195067,_0x5c68e4);let _0x414719=this['_formulaShapes'][_0x25c5a6(0x1e0)](_0xc2308b)??new Set();_0x414719[_0x25c5a6(0x1a3)](_0x51671c),this[_0x25c5a6(0x1b6)][_0x25c5a6(0x207)](_0xc2308b,_0x414719);}else{var _0x205a6c;this[_0x25c5a6(0x296)]['unregister'](_0x195067),(_0x205a6c=this[_0x25c5a6(0x1b6)]['get'](_0xc2308b))==null||_0x205a6c[_0x25c5a6(0x19b)](_0x51671c);}_0x51671c[_0x25c5a6(0x228)](_0x5c68e4?this[_0x25c5a6(0x296)]['getPresentation'](_0x195067):void 0x0,(_0x5c68e4==null?void 0x0:_0x5c68e4['animationEnabled'])!==!0x1);}['refreshShapeFillImage'](_0x4275e3){const _0x392b24=_0x244912;let _0x1e131d=_0x4275e3[_0x392b24(0x395)]['getShapeData'](),_0x2a7fd7=_0x1e131d[_0x392b24(0x38f)];if(!_0x2a7fd7||_0x2a7fd7[_0x392b24(0x371)]!==_0x31dedb[_0x392b24(0x187)]||!_0x2a7fd7['fillImageSource']){_0x4275e3[_0x392b24(0x37e)](void 0x0);return;}this[_0x392b24(0x169)](_0x4275e3,_0x1e131d);}[_0x244912(0x169)](_0x3666e2,_0x1341f2){const _0x2b564c=_0x244912;let _0x1b2cda=_0x1341f2[_0x2b564c(0x38f)];if(!_0x1b2cda||_0x1b2cda[_0x2b564c(0x371)]!==_0x31dedb[_0x2b564c(0x187)]||!_0x1b2cda['fillImageSource'])return;let _0x27c7a3=_0x1b2cda[_0x2b564c(0x2e5)],_0x4b8e60=_0x1b2cda[_0x2b564c(0x347)]??_0x4ef65b[_0x2b564c(0x314)],_0x215a3a=this['_imageIoService'][_0x2b564c(0x3a2)](_0x27c7a3,_0x4b8e60);if(_0x215a3a){_0x3666e2[_0x2b564c(0x37e)](_0x215a3a);return;}return this['_loadAndSetImage'](_0x3666e2,_0x27c7a3,_0x4b8e60);}async['_loadAndSetImage'](_0x4b562e,_0x3bc792,_0x2381e7){const _0xa6d1e5=_0x244912;let _0x95c19f;try{if(_0x2381e7===_0x4ef65b['UUID'])_0x95c19f=await this['_imageIoService'][_0xa6d1e5(0x3bd)](_0x3bc792);else{if(_0x2381e7===_0x4ef65b[_0xa6d1e5(0x314)])try{_0x95c19f=await this[_0xa6d1e5(0x177)][_0xa6d1e5(0x3bd)](_0x3bc792);}catch{_0x95c19f=_0x3bc792;}else _0x95c19f=_0x3bc792;}}catch(_0x25b3ba){console['error'](_0xa6d1e5(0x17e),_0x25b3ba);return;}await new Promise(_0x1aee48=>{const _0x42a68f=_0xa6d1e5;let _0x48b8c2=new window[(_0x42a68f(0x374))]();_0x48b8c2['onload']=()=>{const _0x3ebcc3=_0x42a68f;this[_0x3ebcc3(0x2a2)][_0x3ebcc3(0x2c3)](_0x3bc792,_0x2381e7,_0x48b8c2),_0x4b562e[_0x3ebcc3(0x37e)](_0x48b8c2),_0x1aee48();},_0x48b8c2[_0x42a68f(0x3eb)]=()=>{const _0xd4f5fa=_0x42a68f;console[_0xd4f5fa(0x3c8)](_0xd4f5fa(0x155),_0x3bc792),_0x1aee48();},_0x48b8c2[_0x42a68f(0x32c)]=_0x95c19f;});}};X=Y([J(0x0,_0x1f50fa),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x318433(_0x3f1353)),J(0x3,_0x52e3a0),J(0x4,_0x55093c),J(0x5,_0x318433(_0x3d58ed))],X);let Z=class extends _0x2c7179{constructor(_0x4da913,_0x3ce703,_0x22f6b9,_0x43833c,_0x19d509,_0x56337){const _0x330ffd=_0x244912;super(),this['_drawingManagerService']=_0x4da913,this[_0x330ffd(0x288)]=_0x3ce703,this[_0x330ffd(0x2f0)]=_0x22f6b9,this['_sheetDrawingShapeRenderController']=_0x43833c,this['_univerInstanceService']=_0x19d509,this[_0x330ffd(0x2d0)]=_0x56337,q(this,_0x330ffd(0x195),null),q(this,_0x330ffd(0x20a),null),q(this,_0x330ffd(0x1e9),null),q(this,_0x330ffd(0x2e8),void 0x0),q(this,'_shapes',[]),q(this,'_baseShapeLeft',0x0),q(this,_0x330ffd(0x3b6),0x0),q(this,_0x330ffd(0x334),0x0),q(this,_0x330ffd(0x223),0x0),q(this,_0x330ffd(0x332),!0x1),q(this,_0x330ffd(0x273),void 0x0),q(this,_0x330ffd(0x376),void 0x0),q(this,_0x330ffd(0x297),void 0x0),q(this,_0x330ffd(0x38d),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x330ffd(0x1a5)](),this[_0x330ffd(0x3e6)]();}[_0x244912(0x233)](_0x3f60d7,_0xea94e1,_0x28b775){const _0x25b901=_0x244912;let _0x5fa7ec=this['_sheetsShapeService'][_0x25b901(0x35b)](_0x3f60d7,_0xea94e1,_0x28b775);if(_0x5fa7ec)return _0x5fa7ec[_0x25b901(0x3ad)]();}[_0x244912(0x309)](){const _0x2acd39=_0x244912;this[_0x2acd39(0x269)]();}[_0x244912(0x289)](){const _0x8b3c16=_0x244912;this[_0x8b3c16(0x3e5)](!0x0);}[_0x244912(0x3ca)](_0x2344f3){const _0x40d584=_0x244912;this[_0x40d584(0x1c2)]=_0x2344f3;}['_getShapeAdjustInfosById'](_0x32c798,_0xf63c38,_0x311d66,_0x415cfc){const _0x31e3db=_0x244912;let _0x3aee8e=this[_0x31e3db(0x288)]['getShapeModel'](_0x32c798,_0xf63c38,_0x311d66);if(_0x3aee8e)return _0x3aee8e[_0x31e3db(0x21d)](_0x415cfc);}['_createShapeAdjustControls'](_0xe48bac=!0x1){const _0x240a6c=_0x244912;if(this[_0x240a6c(0x20a)]===null||this[_0x240a6c(0x1e9)]===null||this['_activeShapeId']===null)return;let _0x534f35=this[_0x240a6c(0x2f0)][_0x240a6c(0x276)](this[_0x240a6c(0x20a)]);if(!_0x534f35||!_0x534f35['with'](_0x307dc0)[_0x240a6c(0x220)]())return;let {scene:_0xd7beee}=_0x534f35,_0x1c5348={'unitId':this[_0x240a6c(0x20a)],'subUnitId':this[_0x240a6c(0x1e9)],'drawingId':this[_0x240a6c(0x195)]},_0x2089f2=this[_0x240a6c(0x239)][_0x240a6c(0x3a5)](_0x1c5348),{transform:_0xd1b8e1}=_0x2089f2;if(!_0xd1b8e1||_0x2089f2[_0x240a6c(0x185)]!==_0x54d53a[_0x240a6c(0x1b1)])return;let {left:_0x40ec58,top:_0x585c76,width:_0x5c06fa,height:_0x2c3ea6,flipX:_0x49b605,flipY:_0x228d6a,angle:_0x2216a5=0x0}=_0xd1b8e1;if(_0x40ec58===void 0x0||_0x585c76===void 0x0)return;if(_0xe48bac){let _0x3c414e=this['_sheetsShapeService'][_0x240a6c(0x35b)](this[_0x240a6c(0x20a)],this[_0x240a6c(0x1e9)],this[_0x240a6c(0x195)]);_0x3c414e==null||_0x3c414e['updateContext']({'width':_0x5c06fa??0x0,'height':_0x2c3ea6??0x0}),this[_0x240a6c(0x2e8)]=_0x3c414e==null?void 0x0:_0x3c414e[_0x240a6c(0x3ad)]();}let _0x21006b=this[_0x240a6c(0x2e8)];for(let _0x171fd2=0x0;_0x171fd2<_0x21006b[_0x240a6c(0x1ae)];_0x171fd2++){let _0x4b475f=_0x21006b[_0x171fd2],_0x20559b=_0x4b475f['x'],_0x53008b=_0x4b475f['y'];if(_0x49b605&&(_0x20559b=(_0x5c06fa||0x0)-_0x20559b),_0x228d6a&&(_0x53008b=(_0x2c3ea6||0x0)-_0x53008b),_0x2216a5!==0x0){let _0x78cdad=(_0x5c06fa||0x0)/0x2,_0x238da0=(_0x2c3ea6||0x0)/0x2,_0x2ad710=_0x2216a5*Math['PI']/0xb4,_0x32fa0a=Math['cos'](_0x2ad710),_0x29a50f=Math[_0x240a6c(0x2e1)](_0x2ad710),_0x444d88=_0x20559b-_0x78cdad,_0x5bedce=_0x53008b-_0x238da0;_0x20559b=_0x78cdad+(_0x444d88*_0x32fa0a-_0x5bedce*_0x29a50f),_0x53008b=_0x238da0+(_0x444d88*_0x29a50f+_0x5bedce*_0x32fa0a);}let _0x29c9ca={'x':_0x20559b,'y':_0x53008b,'adjName':_0x4b475f[_0x240a6c(0x339)]};this['_addShapeAdjustControl'](_0xd7beee,_0x29c9ca,_0x29c9ca[_0x240a6c(0x339)],_0x40ec58,_0x585c76,this['_unitId'],this[_0x240a6c(0x1e9)]);}}[_0x244912(0x3e5)](_0x1e18e4=!0x1){const _0x9dbedd=_0x244912;_0x1e18e4&&(this['_clearShapeAdjustControls'](),this[_0x9dbedd(0x36a)](_0x1e18e4));}['_addShapeAdjustControl'](_0xfd1c36,_0x19432a,_0x3cc982,_0x2ad3fd,_0x39bd7f,_0x1fddaf,_0x10b610){const _0x4c9e38=_0x244912;if(!this[_0x4c9e38(0x195)])return;let _0x505038=_0xfd1c36[_0x4c9e38(0x251)](_0x4c9e38(0x263)+this[_0x4c9e38(0x195)]+'-'+_0x3cc982);if(_0x505038){_0x505038[_0x4c9e38(0x1d8)]({'left':_0x19432a['x']+_0x2ad3fd-_0x59f579[_0x4c9e38(0x3c5)],'top':_0x19432a['y']+_0x39bd7f-_0x59f579[_0x4c9e38(0x3c5)]});return;}let _0x426eb4={'left':_0x19432a['x']+_0x2ad3fd-_0x59f579[_0x4c9e38(0x3c5)],'top':_0x19432a['y']+_0x39bd7f-_0x59f579['adjHandleSize'],'adjName':_0x3cc982,'shapeId':this['_activeShapeId'],'unitId':_0x1fddaf,'subUnitId':_0x10b610,'width':_0x59f579[_0x4c9e38(0x3c5)]+0x8,'height':_0x59f579[_0x4c9e38(0x3c5)]+0x8,'zIndex':_0x352374+0x1,'evented':!0x0},_0x290501=new Dr(_0x4c9e38(0x263)+this[_0x4c9e38(0x195)]+'-'+_0x3cc982,_0x426eb4);this['_shapes']['push'](_0x290501),this[_0x4c9e38(0x32d)](_0x290501,_0xfd1c36,_0x3cc982),_0xfd1c36['addObject'](_0x290501,_0x352374+0x1);}[_0x244912(0x269)](){const _0x4887fe=_0x244912;this[_0x4887fe(0x308)][_0x4887fe(0x1ae)]!==0x0&&(this[_0x4887fe(0x308)][_0x4887fe(0x2b3)](_0x17f788=>{_0x17f788['dispose']();}),this[_0x4887fe(0x308)]=[]);}[_0x244912(0x259)](){this['_createShapeAdjustControls']();}[_0x244912(0x18d)](_0x17db28,_0x1e84a5){const _0x30a35c=_0x244912;var _0x206b68;let _0x43685c={'x':0x0,'y':0x0};if(!_0x17db28||!_0x1e84a5)return _0x43685c;let _0x46c198=this[_0x30a35c(0x2f0)]['getRenderUnitById'](_0x17db28);if(!_0x46c198||!_0x46c198[_0x30a35c(0x27b)](_0x307dc0)[_0x30a35c(0x163)](_0x1e84a5))return _0x43685c;let _0x50eccd=_0x46c198[_0x30a35c(0x27b)](_0x20a826),_0x47de93=_0x50eccd==null?void 0x0:_0x50eccd['getCurrentScrollState']();if(!_0x47de93)return _0x43685c;let _0x28491c=(_0x206b68=this[_0x30a35c(0x321)][_0x30a35c(0x287)](_0x17db28))==null?void 0x0:_0x206b68[_0x30a35c(0x184)](_0x1e84a5);if(!_0x28491c)return _0x43685c;let _0x5062bd=_0x2ead9(_0x47de93['sheetViewStartRow'],_0x47de93[_0x30a35c(0x298)],_0x46c198[_0x30a35c(0x229)],_0x28491c);return _0x5062bd?{'x':_0x5062bd[_0x30a35c(0x1fd)],'y':_0x5062bd[_0x30a35c(0x351)]}:_0x43685c;}[_0x244912(0x331)](_0x364558,_0x12309b){const _0x5419e6=_0x244912;var _0x322a9c;let _0x5e8827=(_0x322a9c=this['_univerInstanceService']['getUnit'](_0x364558))==null?void 0x0:_0x322a9c[_0x5419e6(0x184)](_0x12309b);return(_0x5e8827==null?void 0x0:_0x5e8827[_0x5419e6(0x3e2)]())??0x1;}['_attachAdjustEvent'](_0x3a5fe6,_0x2b405a,_0x197773){const _0x2a08ff=_0x244912;this[_0x2a08ff(0x14a)](_0x21ce23(_0x3a5fe6['onPointerDown$'][_0x2a08ff(0x318)]((_0x4a8cdb,_0x3a37d9)=>{const _0x1b7bad=_0x2a08ff;var _0x146430,_0x20f4d8,_0x32f43e,_0x1fa901;let _0x50ae58=_0x3a5fe6[_0x1b7bad(0x24f)]();this[_0x1b7bad(0x273)]=this['_getShapeAdjustInfosById'](_0x50ae58[_0x1b7bad(0x21f)],_0x50ae58[_0x1b7bad(0x1c5)],_0x50ae58['drawingId'],_0x197773),this[_0x1b7bad(0x376)]=this[_0x1b7bad(0x288)][_0x1b7bad(0x35b)](_0x50ae58['unitId'],_0x50ae58[_0x1b7bad(0x1c5)],_0x50ae58[_0x1b7bad(0x237)]);let _0x5095a7=this['_drawingManagerService'][_0x1b7bad(0x3a5)]({'unitId':this[_0x1b7bad(0x20a)],'subUnitId':this[_0x1b7bad(0x1e9)],'drawingId':this['_activeShapeId']}),{transform:_0x580844}=_0x5095a7;if(_0x580844){let {left:_0x44fedd,top:_0x55d482,width:_0x2d2367,height:_0x48053e}=_0x580844;this[_0x1b7bad(0x32a)]=_0x44fedd||0x0,this['_baseShapeTop']=_0x55d482||0x0,this[_0x1b7bad(0x334)]=_0x2d2367||0x0,this['_baseShapeHeight']=_0x48053e||0x0;}let _0x3860eb=!!((_0x146430=_0x5095a7[_0x1b7bad(0x1b7)])!=null&&_0x146430['flipX']),_0x5c7fd7=!!((_0x20f4d8=_0x5095a7[_0x1b7bad(0x1b7)])!=null&&_0x20f4d8[_0x1b7bad(0x3b2)]),_0x5a7cdf=((_0x32f43e=_0x5095a7[_0x1b7bad(0x1b7)])==null?void 0x0:_0x32f43e[_0x1b7bad(0x388)])||0x0;this[_0x1b7bad(0x332)]=!0x0,_0x2b405a[_0x1b7bad(0x329)]();let _0x15bb80={...((_0x1fa901=this[_0x1b7bad(0x273)])==null?void 0x0:_0x1fa901[_0x1b7bad(0x181)])??{}};this[_0x1b7bad(0x297)]=_0x2b405a[_0x1b7bad(0x1c6)][_0x1b7bad(0x318)]((_0x2f2726,_0x5160bd)=>{const _0x32a05b=_0x1b7bad;if(!this[_0x32a05b(0x332)])return;let {offsetX:_0x87e3f9,offsetY:_0x546aa0}=_0x2f2726,_0x4d5965=this[_0x32a05b(0x273)];if(this[_0x32a05b(0x376)]&&_0x4d5965){_0x2b405a[_0x32a05b(0x329)](),_0x2b405a[_0x32a05b(0x34d)](_0x48d0e8[_0x32a05b(0x1f1)]);let _0x189b90={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x32a05b(0x223)]},_0x367b89=this['_getScrollInfo'](this['_unitId'],this[_0x32a05b(0x1e9)]),_0x2a6f60=this[_0x32a05b(0x331)](this[_0x32a05b(0x20a)],this['_subUnitId']),_0x51a595=_0x87e3f9/_0x2a6f60+_0x367b89['x']-this[_0x32a05b(0x32a)],_0x142f4b=_0x546aa0/_0x2a6f60+_0x367b89['y']-this[_0x32a05b(0x3b6)];if(_0x5a7cdf!==0x0){let _0x11031a=this[_0x32a05b(0x334)]/0x2,_0x3e484b=this[_0x32a05b(0x223)]/0x2,_0x1f9ece=_0x5a7cdf*Math['PI']/0xb4,_0x55417d=Math[_0x32a05b(0x1ee)](_0x1f9ece),_0x125559=Math[_0x32a05b(0x2e1)](_0x1f9ece),_0x250b18=_0x51a595-_0x11031a,_0x43f1c6=_0x142f4b-_0x3e484b;_0x51a595=_0x11031a+(_0x250b18*_0x55417d+_0x43f1c6*_0x125559),_0x142f4b=_0x3e484b+(-_0x250b18*_0x125559+_0x43f1c6*_0x55417d);}_0x3860eb&&(_0x51a595=this[_0x32a05b(0x334)]-_0x51a595),_0x5c7fd7&&(_0x142f4b=this[_0x32a05b(0x223)]-_0x142f4b);let _0x58f255={'x':_0x51a595,'y':_0x142f4b},_0x24dbcf=this[_0x32a05b(0x376)][_0x32a05b(0x3a4)](_0x189b90,_0x58f255,_0x4d5965,_0x3860eb,_0x5c7fd7);if(Object['keys'](_0x24dbcf)[_0x32a05b(0x1ae)]===0x0)return;for(let [_0x5c552,_0x47f983]of Object['entries'](_0x24dbcf))this[_0x32a05b(0x376)]['setAdjustValueByName'](_0x5c552,_0x47f983);this[_0x32a05b(0x376)][_0x32a05b(0x340)]({'width':this[_0x32a05b(0x334)],'height':this[_0x32a05b(0x223)]});let _0x311eb2=this[_0x32a05b(0x239)][_0x32a05b(0x3a5)]({'unitId':_0x50ae58['unitId'],'subUnitId':_0x50ae58['subUnitId'],'drawingId':_0x50ae58[_0x32a05b(0x237)]});_0x311eb2&&(this['_sheetDrawingShapeRenderController'][_0x32a05b(0x1da)](_0x311eb2,_0x2b405a),this['_activeShapeAdjustPointList']=this[_0x32a05b(0x233)](_0x50ae58[_0x32a05b(0x21f)],_0x50ae58[_0x32a05b(0x1c5)],_0x50ae58[_0x32a05b(0x237)]),this['_updateAdjustControlPositions']());}_0x5160bd[_0x32a05b(0x34a)]();}),this[_0x1b7bad(0x38d)]=_0x2b405a[_0x1b7bad(0x36d)][_0x1b7bad(0x318)]((_0x24ce86,_0x264baa)=>{const _0x3782b3=_0x1b7bad;this[_0x3782b3(0x297)][_0x3782b3(0x3fc)](),this[_0x3782b3(0x38d)][_0x3782b3(0x3fc)](),_0x2b405a[_0x3782b3(0x3ee)]();let _0x3069d0=this[_0x3782b3(0x273)];if(_0x3069d0){let _0x37eb2d=_0x50ae58[_0x3782b3(0x21f)],_0x30461e=_0x50ae58[_0x3782b3(0x1c5)],_0x533018=_0x50ae58[_0x3782b3(0x237)],_0x425727={};for(let _0x56b784 of Object[_0x3782b3(0x3da)](_0x3069d0['currentAdjustValues'])){var _0x516a9c;let _0x3f1601=(_0x516a9c=this[_0x3782b3(0x376)])==null?void 0x0:_0x516a9c['getAdjustValueByName'](_0x56b784);_0x3f1601!==void 0x0&&(_0x425727[_0x56b784]=_0x3f1601);}Object[_0x3782b3(0x3da)](_0x425727)[_0x3782b3(0x1ae)]>0x0&&br(this[_0x3782b3(0x2d0)],_0x37eb2d,_0x30461e,_0x533018,{'oldShapeData':{'adjustValues':_0x15bb80}},{'adjustValues':_0x425727});}this[_0x3782b3(0x273)]=void 0x0,this[_0x3782b3(0x376)]=void 0x0,this[_0x3782b3(0x332)]=!0x1,_0x264baa['stopPropagation'](),_0x2b405a[_0x3782b3(0x33c)]();}),_0x3a37d9[_0x1b7bad(0x34a)]();})));}[_0x244912(0x3e6)](){const _0x187959=_0x244912;let _0x990274=this['_univerInstanceService'][_0x187959(0x25d)](_0x37e7a9['UNIVER_SHEET']);this['disposeWithMe'](_0x990274[_0x187959(0x18a)](_0x4ab26c(_0x50c74f=>_0x50c74f?_0x50c74f['activeSheet$'][_0x187959(0x18a)](_0x4ab26c(_0x44ef32=>{const _0x3caf42=_0x187959;if(!_0x44ef32)return _0x351d29;let _0xd131b4=_0x50c74f['getUnitId'](),_0xdc3f00=this['_renderManagerService']['getRenderUnitById'](_0xd131b4),_0x4751c5=_0xdc3f00==null?void 0x0:_0xdc3f00[_0x3caf42(0x229)];return _0x4751c5?_0x1e0e82(_0x4751c5):_0x351d29;})):_0x351d29))[_0x187959(0x305)](_0x5c7ea8=>{const _0x5951fe=_0x187959;let _0x28fc15=_0x5c7ea8[_0x5951fe(0x3ed)]();this['disposeWithMe'](_0x5c7ea8['onPointerMove$'][_0x5951fe(0x318)](()=>{const _0x3ee0cd=_0x5951fe;this[_0x3ee0cd(0x1c2)];})),this[_0x5951fe(0x14a)](_0x28fc15[_0x5951fe(0x24c)][_0x5951fe(0x305)](_0xf0ed26=>{const _0x2fe531=_0x5951fe;let {objects:_0x3c82cb}=_0xf0ed26;this[_0x2fe531(0x36a)](),_0x3c82cb!==null&&_0x3c82cb[_0x2fe531(0x17a)]===0x1&&_0x3c82cb['values']()[_0x2fe531(0x3ac)]()[_0x2fe531(0x3de)]instanceof Er&&this[_0x2fe531(0x3ca)](!0x0);})),this[_0x5951fe(0x14a)](_0x28fc15[_0x5951fe(0x226)][_0x5951fe(0x305)](()=>{const _0x1819a9=_0x5951fe;this[_0x1819a9(0x1c2)]&&this[_0x1819a9(0x269)]();})),this[_0x5951fe(0x14a)](_0x5c7ea8[_0x5951fe(0x36d)][_0x5951fe(0x318)](()=>{const _0x2cb102=_0x5951fe;this[_0x2cb102(0x1c2)]&&(this[_0x2cb102(0x3ca)](!0x1),this[_0x2cb102(0x36a)]());})),this[_0x5951fe(0x14a)](_0x28fc15['changeEnd$'][_0x5951fe(0x305)](()=>{const _0x1678c9=_0x5951fe;this[_0x1678c9(0x20a)]&&this[_0x1678c9(0x1e9)]&&this[_0x1678c9(0x195)]&&this[_0x1678c9(0x239)][_0x1678c9(0x3a5)]({'unitId':this[_0x1678c9(0x20a)],'subUnitId':this[_0x1678c9(0x1e9)],'drawingId':this[_0x1678c9(0x195)]})&&(this[_0x1678c9(0x2e8)]=this['_getShapeAdjustPointListById'](this['_unitId'],this[_0x1678c9(0x1e9)],this[_0x1678c9(0x195)]),this[_0x1678c9(0x259)]());}));}));}[_0x244912(0x1a5)](){const _0x7b4652=_0x244912;this['disposeWithMe'](this['_commandService'][_0x7b4652(0x356)](_0x3ed4a4=>{const _0x4a610c=_0x7b4652;if(_0x3ed4a4['id']!==_0x4fa39c['id'])return;let {unitId:_0x305e1c,subUnitId:_0x5b3fa3,shapeId:_0x420d9c}=_0x3ed4a4[_0x4a610c(0x348)];_0x305e1c===this[_0x4a610c(0x20a)]&&_0x5b3fa3===this[_0x4a610c(0x1e9)]&&_0x420d9c===this[_0x4a610c(0x195)]&&this['refreshAdjustControls']();})),this[_0x7b4652(0x14a)](this[_0x7b4652(0x239)]['focus$']['subscribe'](_0x3d4ec8=>{const _0x1caca9=_0x7b4652;if(_0x3d4ec8[_0x1caca9(0x1ae)]===0x1){let _0x46ca82=_0x3d4ec8[0x0];if(_0x46ca82['drawingType']===_0x54d53a['DRAWING_SHAPE']&&this[_0x1caca9(0x321)]['getUnitType'](_0x46ca82['unitId'])===_0x37e7a9['UNIVER_SHEET']){this[_0x1caca9(0x195)]=_0x46ca82[_0x1caca9(0x237)];let {unitId:_0x1d7463,subUnitId:_0x420c85}=_0x46ca82;this['_activeShapeAdjustPointList']=this[_0x1caca9(0x233)](_0x1d7463,_0x420c85,this[_0x1caca9(0x195)]),this['_unitId']=_0x1d7463,this[_0x1caca9(0x1e9)]=_0x420c85,this[_0x1caca9(0x269)](),this[_0x1caca9(0x36a)]();return;}}this[_0x1caca9(0x195)]=null,this[_0x1caca9(0x2e8)]=void 0x0,this[_0x1caca9(0x20a)]=null,this['_subUnitId']=null,this[_0x1caca9(0x269)]();})),this['disposeWithMe'](this[_0x7b4652(0x239)][_0x7b4652(0x1cd)]['subscribe'](_0x540a67=>{const _0x4aa0b9=_0x7b4652;if(_0x540a67[_0x4aa0b9(0x1ae)]===0x1){var _0x201526;let _0xc52e8f=_0x540a67[0x0];((_0x201526=this[_0x4aa0b9(0x239)]['getDrawingByParam'](_0xc52e8f))==null?void 0x0:_0x201526[_0x4aa0b9(0x185)])===_0x54d53a[_0x4aa0b9(0x1b1)]&&this[_0x4aa0b9(0x3e5)](!0x0);}})),this['disposeWithMe'](this[_0x7b4652(0x239)][_0x7b4652(0x16d)][_0x7b4652(0x305)](_0x4e0265=>{const _0x3b132a=_0x7b4652;for(let _0x50d6d2 of _0x4e0265)this[_0x3b132a(0x195)]===_0x50d6d2[_0x3b132a(0x237)]&&(this['_activeShapeId']=null,this[_0x3b132a(0x2e8)]=void 0x0,this['_unitId']=null,this[_0x3b132a(0x1e9)]=null,this[_0x3b132a(0x269)]());}));}};Z=Y([J(0x0,_0x1f50fa),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x318433(_0xc8f10c)),J(0x3,_0x318433(X)),J(0x4,_0x595744),J(0x5,_0x4aa13b)],Z);const Or={'id':_0x244912(0x247),'type':_0x1644dd['OPERATION'],'handler':(_0x1e0e52,_0x20556c)=>{const _0x231e25=_0x244912;let _0x3082b4=_0x1e0e52[_0x231e25(0x1e0)](_0x1f50fa),_0x450419=_0x1e0e52[_0x231e25(0x1e0)](_0xc8f10c),_0x495441=_0x1e0e52[_0x231e25(0x1e0)](Z);if(_0x20556c==null)return!0x0;if(_0x20556c[_0x231e25(0x1ae)]>0x0){var _0x52b9c4;let _0x3811d5=(_0x52b9c4=_0x450419[_0x231e25(0x276)](_0x20556c[0x0][_0x231e25(0x21f)]))==null?void 0x0:_0x52b9c4[_0x231e25(0x229)];if(_0x3811d5){let {unitId:_0x49531e,subUnitId:_0xf9f016,drawingId:_0x21c103}=_0x20556c[0x0],_0x2a2f29=_0x5cc8a7({'unitId':_0x49531e,'subUnitId':_0xf9f016,'drawingId':_0x21c103},void 0x0),_0x3278b3=_0x3811d5[_0x231e25(0x251)](_0x2a2f29);if(_0x3278b3){var _0x2e2a03;(_0x2e2a03=_0x450419[_0x231e25(0x276)](_0x20556c[0x0][_0x231e25(0x21f)]))==null||(_0x2e2a03=_0x2e2a03[_0x231e25(0x229)][_0x231e25(0x255)]())==null||_0x2e2a03[_0x231e25(0x2e3)](_0x3278b3);}}_0x3082b4['focusDrawing'](_0x20556c),_0x495441[_0x231e25(0x3ca)](!0x1);}return!0x0;}},kr={'type':_0x1644dd[_0x244912(0x317)],'id':_0x244912(0x279),'handler':async(_0x51db68,_0x2e520e)=>{const _0x2d5fc1=_0x244912;let _0xa1c397=_0x4b1c62(_0x51db68['get'](_0x595744));if(!_0xa1c397)return!0x1;let _0x588b1e=_0x51db68['get'](_0x188788)['getCurrentLastSelection']();if(!_0x588b1e)return!0x1;let _0x47c1b9=_0x51db68['get'](_0x4aa13b),{unitId:_0x1f93f3,subUnitId:_0x563ce8}=_0xa1c397,{value:_0x1f63f8,enhanceParams:_0x51d3bb}=_0x2e520e,{range:_0x172f71}=_0x588b1e,_0xea9087={'unitId':_0x1f93f3,'subUnitId':_0x563ce8,'shapeType':_0x1f63f8,'range':_0x172f71,'shapeId':_0x524ea6()};if(_0x51d3bb){let _0x31451f=_0x3c2fe3(_0x1f63f8),_0x55b66e=_0x1f63f8===_0x1ecf22['Rect'];_0x31451f&&(_0x51d3bb['startArrow']||_0x51d3bb[_0x2d5fc1(0x2cb)])&&(_0xea9087[_0x2d5fc1(0x17d)]={'ln':{'startArrow':_0x51d3bb['startArrow']?{'type':_0x7556f9['Arrow'],'size':_0x29f38e['Medium']}:void 0x0,'endArrow':_0x51d3bb[_0x2d5fc1(0x2cb)]?{'type':_0x7556f9[_0x2d5fc1(0x2dc)],'size':_0x29f38e[_0x2d5fc1(0x315)]}:void 0x0}}),_0x55b66e&&(_0x51d3bb[_0x2d5fc1(0x1e8)]||_0x51d3bb[_0x2d5fc1(0x3df)])&&(_0xea9087['shapeData']=_0x52ce78({'fill':{'fillType':_0x31dedb[_0x2d5fc1(0x183)],'color':_0x2d5fc1(0x1cf)},'isHorizontal':!!_0x51d3bb[_0x2d5fc1(0x1e8)],'stroke':{'lineStrokeType':_0xdf880d[_0x2d5fc1(0x272)],'width':0x1,'color':_0x2d5fc1(0x3d0)}}));}let _0x140072=_0x47c1b9['syncExecuteCommand'](_0x13dbe5['id'],_0xea9087);return setTimeout(()=>{const _0x8ee3ca=_0x2d5fc1;_0x47c1b9[_0x8ee3ca(0x1ac)](Or['id'],[{'unitId':_0x1f93f3,'subUnitId':_0x563ce8,'drawingId':_0xea9087[_0x8ee3ca(0x19c)]}]);},0xc8),_0x140072;}},Ar=_0x244912(0x384),jr=_0x244912(0x369),Mr='sheet.shape.floating-toolbar',Nr=_0x244912(0x3ef),Pr=_0x17c599(_0x244912(0x2b2)),Fr=_0x244912(0x2c1),Ir={'id':_0x244912(0x2ed),'type':_0x1644dd[_0x244912(0x317)],'handler':(_0x27e6cc,_0x368d1f)=>{const _0xe9efa9=_0x244912;let _0x2832bc=_0x27e6cc[_0xe9efa9(0x1e0)](_0x26d1b3),_0x4f8a36=_0x27e6cc['get'](_0x3f1353),_0x52e1a3=_0x27e6cc['get'](_0x595744),_0x53f654=_0x27e6cc['get'](_0x4aa13b);return _0x4b1c62(_0x52e1a3)?(_0x368d1f==null?void 0x0:_0x368d1f[_0xe9efa9(0x3de)])==='close'?(_0x2832bc['close'](jr),!0x0):(_0x2832bc[_0xe9efa9(0x170)]({'id':jr,'header':{'title':_0x4f8a36['t'](_0xe9efa9(0x1ea))},'children':{'label':jr},'onClose':()=>{const _0x245bbc=_0xe9efa9;_0x53f654[_0x245bbc(0x27c)](_0x4c2abf['id'],[]);},'width':0x168}),!0x0):!0x1;}},Lr={'type':_0x1644dd[_0x244912(0x1bf)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function Rr(_0x5532c3){const _0x1eaeb9=_0x244912;let _0x1c74a3=_0x5532c3[_0x1eaeb9(0x1e0)](_0x1f50fa)[_0x1eaeb9(0x2a0)](),_0x2ae793=_0x1c74a3['length']===0x1?_0x1c74a3[0x0]:null;if(!_0x2ae793||_0x2ae793['drawingType']!==_0x54d53a[_0x1eaeb9(0x1b1)])return null;let _0x2ad79e=_0x5532c3[_0x1eaeb9(0x1e0)](_0x5594a6),_0x158272=_0x2ad79e['getShapeTypeById'](_0x2ae793[_0x1eaeb9(0x21f)],_0x2ae793['subUnitId'],_0x2ae793[_0x1eaeb9(0x237)]),_0x21856f=_0x2ad79e['getShapeDataById'](_0x2ae793[_0x1eaeb9(0x21f)],_0x2ae793[_0x1eaeb9(0x1c5)],_0x2ae793[_0x1eaeb9(0x237)]);return _0x158272===void 0x0||!_0x21856f?null:{'drawing':_0x2ae793,'shapeData':_0x21856f,'shapeType':_0x158272};}const zr={'id':'sheet.operation.apply-shape-quick-style','type':_0x1644dd[_0x244912(0x1bf)],'handler':(_0x4cd436,_0xff0ecc)=>{const _0x2cbda8=_0x244912;let _0x5a4235=Rr(_0x4cd436),_0x561132=_0x4ac0ae((_0xff0ecc==null?void 0x0:_0xff0ecc[_0x2cbda8(0x1aa)])??(_0xff0ecc==null?void 0x0:_0xff0ecc[_0x2cbda8(0x3de)])??'');if(!_0x5a4235||!_0x561132||_0x561132[_0x2cbda8(0x1a2)]!==_0x5e4bfe(_0x5a4235[_0x2cbda8(0x17d)]))return!0x1;let _0x3c49ab=_0xde63d9(_0x5a4235[_0x2cbda8(0x17d)],_0x561132);if(!_0x3c49ab)return!0x1;let {drawing:_0x4c30a1}=_0x5a4235;return _0x4cd436[_0x2cbda8(0x1e0)](_0x4aa13b)[_0x2cbda8(0x1ac)](K['id'],{'unitId':_0x4c30a1[_0x2cbda8(0x21f)],'subUnitId':_0x4c30a1[_0x2cbda8(0x1c5)],'shapeId':_0x4c30a1['drawingId'],'shapeData':_0x3c49ab,'oldShapeJSON':{'oldShapeData':_0x5a4235['shapeData']}});}},Br={'id':_0x244912(0x1de),'type':_0x1644dd[_0x244912(0x1bf)],'handler':(_0x1b8b7f,_0x1cd317)=>{const _0x22863f=_0x244912;let _0x29bf22=Rr(_0x1b8b7f),_0x1256b5=(_0x1cd317==null?void 0x0:_0x1cd317[_0x22863f(0x1b9)])??(_0x1cd317==null?void 0x0:_0x1cd317[_0x22863f(0x3de)]);if(!_0x29bf22||!_0x1256b5||_0x3c2fe3(_0x29bf22[_0x22863f(0x1b9)])||_0x3c2fe3(_0x1256b5))return!0x1;let _0x4c57ca=_0x5aef65(_0x29bf22[_0x22863f(0x17d)],_0x1256b5);if(!_0x4c57ca)return!0x1;let {drawing:_0x227fd6}=_0x29bf22;return _0x1b8b7f['get'](_0x4aa13b)[_0x22863f(0x1ac)](K['id'],{'unitId':_0x227fd6['unitId'],'subUnitId':_0x227fd6[_0x22863f(0x1c5)],'shapeId':_0x227fd6[_0x22863f(0x237)],'shapeType':_0x1256b5,'shapeData':_0x4c57ca,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x29bf22[_0x22863f(0x1b9)],'oldShapeData':_0x29bf22[_0x22863f(0x17d)]}});}};let Q=class extends _0x2c7179{constructor(_0x5e56bd,_0xf023bc){const _0x320c0c=_0x244912;super(),this[_0x320c0c(0x165)]=_0x5e56bd,this[_0x320c0c(0x239)]=_0xf023bc,this['_registerImageShapeClipDelegate'](),this[_0x320c0c(0x165)]['setCanUseShapeClip'](!0x0),this[_0x320c0c(0x14a)]({'dispose':()=>this[_0x320c0c(0x165)][_0x320c0c(0x394)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x8e01b=_0x244912;let _0x5e2a7e=this[_0x8e01b(0x165)],_0x55e730=new Map(),_0x2267ea=_0x5e2a7e['registerClipDelegate']((_0x5d4c44,_0x41dc37,_0x121a09,_0x5c9067,_0xb884b7)=>{const _0x328c1a=_0x8e01b;let _0x2dc048=_0x41dc37;if(_0x2dc048===_0x1ecf22[_0x328c1a(0x214)]||_0x41dc37===_0x328c1a(0x3f0))return!0x1;try{let _0xf7234b=_0x55e730['get'](_0x41dc37);return _0xf7234b||(_0xf7234b=new _0x2e34c6(_0x2dc048,'clip-'+_0x41dc37),_0x55e730['set'](_0x41dc37,_0xf7234b)),_0xf7234b[_0x328c1a(0x2bd)](),_0xb884b7&&Object[_0x328c1a(0x3da)](_0xb884b7)['length']>0x0&&_0xf7234b[_0x328c1a(0x34e)]({'adjustValues':_0xb884b7},!0x0),_0xf7234b[_0x328c1a(0x340)]({'width':_0x121a09,'height':_0x5c9067}),_0xf7234b[_0x328c1a(0x1b2)](_0x5d4c44,{'left':0x0,'top':0x0,'width':_0x121a09,'height':_0x5c9067});}catch{return!0x1;}});this[_0x8e01b(0x14a)](_0x2267ea),this['disposeWithMe']({'dispose':()=>_0x55e730['clear']()});}['clipByShape'](_0x9b6688,_0x8f452d,_0x266ff9,_0x27098a,_0x2d7907){const _0x481450=_0x244912;let _0x267f88=this['_drawingManagerService']['getDrawingData'](_0x9b6688,_0x8f452d);if(!_0x267f88[_0x266ff9])return;let _0x3bda08={..._0x267f88[_0x266ff9],'prstGeom':_0x27098a,'adjustValues':_0x2d7907};this[_0x481450(0x239)][_0x481450(0x330)]([_0x3bda08]);}};Q=Y([J(0x0,_0x318433(_0x1432e0)),J(0x1,_0x318433(_0x1f50fa))],Q);const Vr=_0x244912(0x151),Hr='sheet.image-clip.shape-picker.component';function Ur({onShapeClick:_0x121612,excludeGroups:_0x3a6362}){const _0x7ffdea=_0x244912;return _0xcdc9dc(_0x377851,{'excludeGroups':_0x3a6362,'onShapeClick':_0x121612,'scrollContainer':_0x7ffdea(0x254)});}function Wr(){const _0x32d3d8=_0x244912;let _0x144f6b=_0x2c7ca5(_0x1f50fa),_0x40a87b=_0x2c7ca5(Q);return _0xcdc9dc(_0xd97ad,{'buttonLabel':_0x32d3d8(0x2cc),'excludeGroups':[_0x46a4b9[_0x32d3d8(0x212)]],'onShapeClick':_0x9dbeeb=>{const _0x5b6550=_0x32d3d8;let _0x4f7af8=_0x144f6b[_0x5b6550(0x2a0)]()[_0x5b6550(0x2f4)](_0x4bc966=>_0x4bc966[_0x5b6550(0x185)]===_0x54d53a[_0x5b6550(0x16f)]);if(!_0x4f7af8)return;let {unitId:_0x5596d8,subUnitId:_0x5b068d,drawingId:_0x166475}=_0x4f7af8;_0x40a87b[_0x5b6550(0x2e4)](_0x5596d8,_0x5b068d,_0x166475,_0x9dbeeb['type']);}});}function Gr(){const _0x4e47ab=_0x244912;let _0x22d331=_0x2c7ca5(_0x1f50fa),_0x233083=_0x2c7ca5(Q);return _0xcdc9dc(_0xd97ad,{'buttonLabel':_0x4e47ab(0x2cc),'excludeGroups':[_0x46a4b9[_0x4e47ab(0x212)]],'DropdownComponent':_0x2f0a7d,'onShapeClick':_0x1c3996=>{const _0xcb01f4=_0x4e47ab;let _0x142029=_0x22d331[_0xcb01f4(0x2a0)]()['find'](_0x3c9a57=>_0x3c9a57[_0xcb01f4(0x185)]===_0x54d53a[_0xcb01f4(0x16f)]);if(!_0x142029)return;let {unitId:_0x45e4e5,subUnitId:_0x52cff3,drawingId:_0x464ca1}=_0x142029;_0x233083['clipByShape'](_0x45e4e5,_0x52cff3,_0x464ca1,_0x1c3996[_0xcb01f4(0x1a2)]);}});}function Kr(){const _0x1ae7f5=_0x244912;let _0x5e4e1c=_0x2c7ca5(_0x56d3ac),_0x2d1d04=_0x2c7ca5(_0x1f50fa),_0x3e8385=_0x2c7ca5(_0x595744),_0xc64af7=_0x2d1d04[_0x1ae7f5(0x2a0)]()[0x0],_0x7bcf02=_0xc64af7?_0x3e8385[_0x1ae7f5(0x24e)](_0xc64af7[_0x1ae7f5(0x21f)]):void 0x0,_0x1394e0=_0x7bcf02===_0x37e7a9[_0x1ae7f5(0x378)]?_0x1ae7f5(0x188):_0x7bcf02===_0x37e7a9[_0x1ae7f5(0x2c9)]?Hr:void 0x0,_0x51fcfb=_0x1394e0?_0x5e4e1c['get'](_0x1394e0):void 0x0;return _0x51fcfb?_0xcdc9dc(_0x51fcfb,{}):null;}function qr(){let _0x49acc6=_0x2c7ca5(_0x4aa13b);return _0xcdc9dc(Ur,{'onShapeClick':_0x33e4ce=>{const _0x4a6696=_0x4e9b;_0x49acc6[_0x4a6696(0x1ac)](kr['id'],{'value':_0x33e4ce[_0x4a6696(0x1a2)],'enhanceParams':{'endArrow':_0x33e4ce[_0x4a6696(0x2cb)],'startArrow':_0x33e4ce[_0x4a6696(0x368)],'horizontal':_0x33e4ce[_0x4a6696(0x1e8)],'vertical':_0x33e4ce[_0x4a6696(0x3df)]}});}});}function Jr(){return _0xcdc9dc(qr,{});}function Yr(_0x274dfd){const _0x38c2c3=_0x244912;let _0x1644ca=_0x274dfd['get'](_0x595744);return{'id':kr['id'],'type':_0x4171da['SELECTOR'],'selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':kr['id']}}}],'icon':_0x38c2c3(0x3fb),'tooltip':_0x38c2c3(0x205),'activated$':_0x3baf69(_0x1644ca,!0x1,()=>new _0x1cfcc4(_0x5899a8=>{const _0x593474=_0x38c2c3;_0x5899a8[_0x593474(0x3ac)](!0x1);})),'hidden$':_0x4ff7fb(_0x274dfd,_0x37e7a9[_0x38c2c3(0x2c9)]),'disabled$':_0x49adae(_0x274dfd)};}function Xr(_0x1d0823){const _0x574363=_0x244912;let _0x2864a4=_0x1d0823[_0x574363(0x1e0)](_0x595744);return{'id':Ir['id'],'type':_0x4171da[_0x574363(0x1df)],'icon':_0x574363(0x2d3),'title':_0x574363(0x2c0),'tooltip':_0x574363(0x2c0),'activated$':_0x3baf69(_0x2864a4,!0x1,()=>new _0x1cfcc4(_0x12684e=>{const _0x1ecf9d=_0x574363;_0x12684e[_0x1ecf9d(0x3ac)](!0x1);})),'hidden$':_0x4ff7fb(_0x1d0823,_0x37e7a9['UNIVER_SHEET']),'disabled$':_0x49adae(_0x1d0823)};}const Zr='sheet.menu.shape.flip-horizontal',Qr=_0x244912(0x1d0);function $r(_0x17baa2){const _0x48aa34=_0x244912;let _0x529804=_0x17baa2['get'](_0x1f50fa)[_0x48aa34(0x2a0)]();return _0x529804['length']===0x1&&_0x529804[0x0][_0x48aa34(0x185)]===_0x54d53a[_0x48aa34(0x1b1)]?_0x529804[0x0]:null;}function ei(_0x35ff64){const _0x5a41d2=_0x244912;let _0x2b6ed1=_0x35ff64['get'](_0x1f50fa);return _0x2b6ed1['focus$'][_0x5a41d2(0x18a)](_0x44274b(_0x2b6ed1[_0x5a41d2(0x2a0)]()),_0x3be804(_0x51963a=>_0x51963a[_0x5a41d2(0x1ae)]!==0x1||_0x51963a[0x0][_0x5a41d2(0x185)]!==_0x54d53a[_0x5a41d2(0x1b1)]));}function ti(_0xb74110){const _0x31985b=_0x244912;return{'id':Zr,'commandId':_0x3cca56['id'],'type':_0x4171da[_0x31985b(0x1df)],'title':_0x31985b(0x2ff),'tooltip':_0x31985b(0x2ff),'icon':_0x31985b(0x2fb),'hidden$':ei(_0xb74110),'params':()=>{const _0x21314e=_0x31985b;let _0x1c5269=$r(_0xb74110);return _0x1c5269?{'unitId':_0x1c5269['unitId'],'subUnitId':_0x1c5269[_0x21314e(0x1c5)],'shapeId':_0x1c5269[_0x21314e(0x237)],'flipH':!0x0}:void 0x0;}};}function ni(_0x3a1dd8){const _0x520ca5=_0x244912;return{'id':Qr,'commandId':_0x3cca56['id'],'type':_0x4171da['BUTTON'],'title':_0x520ca5(0x3bc),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x520ca5(0x167),'hidden$':ei(_0x3a1dd8),'params':()=>{const _0x4157ac=_0x520ca5;let _0x1a0dbf=$r(_0x3a1dd8);return _0x1a0dbf?{'unitId':_0x1a0dbf[_0x4157ac(0x21f)],'subUnitId':_0x1a0dbf[_0x4157ac(0x1c5)],'shapeId':_0x1a0dbf[_0x4157ac(0x237)],'flipV':!0x0}:void 0x0;}};}const ri=_0x244912(0x30f),ii=_0x244912(0x2c5),ai='sheets-shape-ui.shape-format.text-ribbon-control',oi='sheets-shape-ui.shape-format.formula-ribbon-control';function si(){let _0x1c7ee1=_0x2c7ca5(_0x4aa13b),_0x31d029=_0x2c7ca5(_0x1f50fa),_0x504a23=_0x2c7ca5(_0x5594a6),_0x1aa19b=()=>{const _0x23625f=_0x4e9b;var _0x398ab5;let _0x5f34ac=_0x31d029[_0x23625f(0x2a0)]();if(_0x5f34ac[_0x23625f(0x1ae)]!==0x1||((_0x398ab5=_0x5f34ac[0x0])==null?void 0x0:_0x398ab5[_0x23625f(0x185)])!==_0x54d53a[_0x23625f(0x1b1)])return null;let {unitId:_0x6a7d47,subUnitId:_0x29fd60,drawingId:_0x364f6d}=_0x5f34ac[0x0],_0x39cc7a=_0x504a23[_0x23625f(0x3e4)](_0x6a7d47,_0x29fd60,_0x364f6d),_0x52d22f=_0x504a23[_0x23625f(0x1fa)](_0x6a7d47,_0x29fd60,_0x364f6d);return _0x39cc7a===void 0x0||!_0x52d22f?null:{'unitId':_0x6a7d47,'subUnitId':_0x29fd60,'drawingId':_0x364f6d,'shapeType':_0x39cc7a,'shapeData':_0x52d22f};},_0x16c0a9=_0x297a75(()=>new _0x1cfcc4(_0x110931=>{const _0x390e9f=_0x4e9b;let _0x1b08cd=()=>_0x110931[_0x390e9f(0x3ac)](_0x1aa19b()),_0x54d300=_0x31d029[_0x390e9f(0x2fc)][_0x390e9f(0x305)](_0x1b08cd),_0x3c90fa=_0x1c7ee1['onCommandExecuted'](_0xf8f428=>{_0xf8f428['id']===_0x4fa39c['id']&&_0x1b08cd();});return _0x1b08cd(),()=>{const _0x203eba=_0x390e9f;_0x54d300[_0x203eba(0x3fc)](),_0x3c90fa[_0x203eba(0x346)]();};}),_0x1aa19b(),!0x1,[_0x1c7ee1,_0x31d029,_0x504a23]);return{'selection':_0x16c0a9,'updateShapeData':_0x221b9f=>{const _0x5d4bf3=_0x4e9b;_0x16c0a9&&br(_0x1c7ee1,_0x16c0a9[_0x5d4bf3(0x21f)],_0x16c0a9[_0x5d4bf3(0x1c5)],_0x16c0a9[_0x5d4bf3(0x237)],{'oldShapeData':_0x16c0a9['shapeData']},_0x221b9f);}};}function ci(){const _0x26afd7=_0x244912;let {selection:_0x594e40,updateShapeData:_0x486077}=si();return _0x594e40?_0xcdc9dc(_0x1535fe,{'shapeData':_0x594e40[_0x26afd7(0x17d)],'shapeType':_0x594e40[_0x26afd7(0x1b9)],'onUpdateShapeData':_0x486077}):null;}function li(){const _0x51b874=_0x244912;let _0x4214a4=_0x2c7ca5(_0x4aa13b),_0x1dab7d=_0x2c7ca5(_0x3f1353),{selection:_0x5dfaa4}=si();return _0x5dfaa4?_0xcdc9dc(_0x364599,{'type':_0x5e4bfe(_0x5dfaa4['shapeData']),'ariaLabel':_0x1dab7d['t'](_0x51b874(0x39b)),'activePresetId':_0x54dddb(_0x5dfaa4[_0x51b874(0x17d)]),'onSelect':_0x279c49=>_0x4214a4[_0x51b874(0x1ac)](zr['id'],{'presetId':_0x279c49})}):null;}function ui(){const _0x502493=_0x244912;let {selection:_0x21d027,updateShapeData:_0x1267c3}=si();return _0x21d027?_0xcdc9dc(_0x361c7f,{'fontFamilyPopupDataComponent':_0x502493(0x1f0),'shapeData':_0x21d027[_0x502493(0x17d)],'onUpdateShapeData':_0x1267c3}):null;}function di(){const _0x1348f5=_0x244912;var _0x2746ad;let {selection:_0x51f10c,updateShapeData:_0x3ba2c8}=si(),_0x5bb1a4=_0xaa2e40({'hostType':_0x37e7a9[_0x1348f5(0x2c9)],'unitId':(_0x51f10c==null?void 0x0:_0x51f10c['unitId'])??'','subUnitId':(_0x51f10c==null?void 0x0:_0x51f10c[_0x1348f5(0x1c5)])??'','shapeId':(_0x51f10c==null?void 0x0:_0x51f10c[_0x1348f5(0x237)])??'','shapeData':_0x51f10c==null?void 0x0:_0x51f10c['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x1348f5(0x1c9),'onUpdateBinding':_0x220dd5=>_0x3ba2c8({'formulaBinding':_0x220dd5})}),_0x21fe3d=((_0x2746ad=_0x5bb1a4[_0x1348f5(0x36c)])==null?void 0x0:_0x2746ad[_0x1348f5(0x1d5)](_0x373c4a=>_0x373c4a[_0x1348f5(0x31b)])[_0x1348f5(0x150)](_0x141fd5=>_0x141fd5[_0x1348f5(0x27e)]!==!0x1))??[];return _0x51f10c!=null&&_0x51f10c[_0x1348f5(0x17d)][_0x1348f5(0x141)]?_0xcdc9dc(_0x1e07ad,{'actions':_0x21fe3d,'panel':_0x5bb1a4['panel']}):null;}const fi=_0x244912(0x192),pi=_0x244912(0x227),mi=_0x244912(0x1ce),hi='sheets-shape-ui.ribbon.shape-format.arrange-forward',gi=_0x244912(0x2f3),_i=_0x244912(0x3d6),vi='sheets-shape-ui.ribbon.shape-format.arrange-back';function yi(_0x584638){const _0x20e297=_0x244912;let _0xc1fae1=_0x584638[_0x20e297(0x1e0)](_0x4aa13b),_0x3fb139=_0x584638[_0x20e297(0x1e0)](_0x1f50fa),_0x419133=_0x584638[_0x20e297(0x1e0)](_0x5594a6);return new _0x1cfcc4(_0x164ca0=>{const _0x171d8e=_0x20e297;let _0x41ed2c=()=>{const _0x11e3f2=_0x4e9b;let _0x310d55=bi(_0x584638),_0x270363=_0x310d55?_0x419133[_0x11e3f2(0x1fa)](_0x310d55['unitId'],_0x310d55['subUnitId'],_0x310d55[_0x11e3f2(0x237)]):null;_0x164ca0[_0x11e3f2(0x3ac)](_0x270363?_0x54dddb(_0x270363)??'':'');},_0x200ecf=_0x3fb139[_0x171d8e(0x2fc)][_0x171d8e(0x305)](_0x41ed2c),_0x2c0c1e=_0xc1fae1[_0x171d8e(0x356)](_0x5707a6=>{_0x5707a6['id']===_0x4fa39c['id']&&_0x41ed2c();});return _0x41ed2c(),()=>{const _0x2cd42d=_0x171d8e;_0x200ecf[_0x2cd42d(0x3fc)](),_0x2c0c1e['dispose']();};});}function bi(_0x5a3a3a){const _0x4cc5ad=_0x244912;var _0x51e683;let _0x18b022=_0x5a3a3a[_0x4cc5ad(0x1e0)](_0x1f50fa)[_0x4cc5ad(0x2a0)]();return _0x18b022['length']===0x1&&((_0x51e683=_0x18b022[0x0])==null?void 0x0:_0x51e683[_0x4cc5ad(0x185)])===_0x54d53a['DRAWING_SHAPE']?_0x18b022[0x0]:null;}function xi(_0x3f68e5,_0xe0e20b=!0x1){const _0x317a43=_0x244912;let _0x42c844=_0x3f68e5[_0x317a43(0x1e0)](_0x4aa13b),_0x55a73d=_0x3f68e5['get'](_0x1f50fa),_0x4e809d=_0x3f68e5[_0x317a43(0x1e0)](_0x5594a6);return new _0x1cfcc4(_0x183b43=>{const _0x1ccdb=_0x317a43;let _0x3933d5=()=>{const _0x12aa71=_0x4e9b;let _0x587690=bi(_0x3f68e5);if(!_0x587690){_0x183b43[_0x12aa71(0x3ac)](!0x0);return;}let _0x56cdb9=_0x4e809d[_0x12aa71(0x1fa)](_0x587690['unitId'],_0x587690[_0x12aa71(0x1c5)],_0x587690[_0x12aa71(0x237)]);_0x183b43['next'](!_0x56cdb9||_0xe0e20b&&_0x56cdb9[_0x12aa71(0x141)]==null);},_0x3ead84=_0x55a73d[_0x1ccdb(0x2fc)][_0x1ccdb(0x305)](_0x3933d5),_0x454cd3=_0x42c844[_0x1ccdb(0x356)](_0x5a60c3=>{_0x5a60c3['id']===_0x4fa39c['id']&&_0x3933d5();});return _0x3933d5(),()=>{const _0x16c201=_0x1ccdb;_0x3ead84[_0x16c201(0x3fc)](),_0x454cd3[_0x16c201(0x346)]();};});}function Si(_0x412a0b){const _0xe6c2c2=_0x244912;let _0xe1eb2=_0x412a0b[_0xe6c2c2(0x1e0)](_0x1f50fa),_0x3f0562=_0x412a0b[_0xe6c2c2(0x1e0)](_0x5594a6);return _0xe1eb2[_0xe6c2c2(0x2fc)][_0xe6c2c2(0x18a)](_0x44274b(_0xe1eb2['getFocusDrawings']()),_0x3be804(()=>{const _0x1bd963=_0xe6c2c2;let _0x468fff=bi(_0x412a0b),_0x4dc685=_0x468fff?_0x3f0562[_0x1bd963(0x3e4)](_0x468fff['unitId'],_0x468fff['subUnitId'],_0x468fff[_0x1bd963(0x237)]):void 0x0;return _0x4dc685===void 0x0||_0x3c2fe3(_0x4dc685);}));}function Ci(_0xf6f117){const _0x11c26d=_0x244912;return{'id':zr['id'],'type':_0x4171da['SELECTOR'],'icon':_0x11c26d(0x19f),'title':_0x11c26d(0x2a6),'tooltip':_0x11c26d(0x2a6),'selections':[{'label':{'name':ri,'hoverable':!0x1,'selectable':!0x1}}],'value$':yi(_0xf6f117),'hidden$':xi(_0xf6f117)};}function wi(_0x1a453e){const _0x1bcd1b=_0x244912;return{'id':Br['id'],'type':_0x4171da[_0x1bcd1b(0x3b1)],'icon':_0x1bcd1b(0x3fb),'title':_0x1bcd1b(0x266),'tooltip':_0x1bcd1b(0x266),'slot':!0x0,'selections':[{'label':{'name':_0x39514a,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x1a453e)};}function Ti(_0xad6096,_0x145d73,_0x23bcfc=!0x1){const _0x4d8db4=_0x244912;return _0x7dbb65=>({'id':_0xad6096,'type':_0x4171da[_0x4d8db4(0x1df)],'label':{'name':_0x145d73,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x7dbb65,_0x23bcfc)});}const Ei=Ti(fi,ii),Di=Ti(pi,ai),Oi=Ti(mi,oi,!0x0);function ki(_0x58c6cd,_0x23497b,_0x29ceef,_0x3c86a0){const _0x12aceb=_0x244912;return _0x563a16=>({'id':_0x58c6cd,'commandId':_0x4e0df7['id'],'type':_0x4171da[_0x12aceb(0x1df)],'icon':_0x29ceef,'title':_0x3c86a0,'tooltip':_0x3c86a0,'hidden$':xi(_0x563a16),'params':()=>{const _0x502fc8=_0x12aceb;let _0x1bb686=bi(_0x563a16);return _0x1bb686?{'unitId':_0x1bb686['unitId'],'subUnitId':_0x1bb686[_0x502fc8(0x1c5)],'drawingIds':[_0x1bb686[_0x502fc8(0x237)]],'arrangeType':_0x23497b}:void 0x0;}});}const Ai=ki(hi,_0x5de8db[_0x244912(0x285)],_0x244912(0x357),'shape-editor-ui.arrange.forward'),ji=ki(gi,_0x5de8db[_0x244912(0x295)],_0x244912(0x23e),_0x244912(0x28d)),Mi=ki(_i,_0x5de8db[_0x244912(0x3c1)],_0x244912(0x160),_0x244912(0x37f)),Ni=ki(vi,_0x5de8db['back'],'BottomIcon',_0x244912(0x2e0));function Pi(_0x41edc0){const _0x3b556a=_0x244912;return{'id':Lr['id'],'type':_0x4171da[_0x3b556a(0x1df)],'icon':_0x3b556a(0x3dd),'title':_0x3b556a(0x299),'tooltip':'sheets-shape-ui.formatShape','hidden$':xi(_0x41edc0),'params':()=>{const _0x9e3920=_0x3b556a;let _0x5edf36=bi(_0x41edc0);return _0x5edf36?{'unitId':_0x5edf36[_0x9e3920(0x21f)],'subUnitId':_0x5edf36[_0x9e3920(0x1c5)],'drawingId':_0x5edf36[_0x9e3920(0x237)]}:void 0x0;}};}const Fi={[_0x13bc74['RIBBON']]:{[Nr]:{'order':0x64,'title':_0x244912(0x299),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[zr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Br['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[fi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[pi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Zr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ti},[Qr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':ni},[hi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ai},[gi]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ji},[_i]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Mi},[vi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[mi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Lr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Pi},[_0x29b704['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x28f120}}}}},Ii={[_0x3cd9aa[_0x244912(0x3c7)]]:{[kr['id']]:{'order':0x4,'menuItemFactory':Yr}}},Li={...Ii,[_0x3cd9aa['OTHERS']]:{[Ir['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Xr}},[_0x2af139[_0x244912(0x142)]]:{[_0x510854[_0x244912(0x311)]]:{[Zr]:{'order':0x4,'menuItemFactory':ti},[Qr]:{'order':0x5,'menuItemFactory':ni}}}};var Ri=_0x244912(0x1d3),zi=_0x244912(0x1af);const Bi={'id':_0x244912(0x31d),'type':_0x1644dd[_0x244912(0x1bf)],'handler'(_0x56a07a,_0x47a608){const _0x47f022=_0x244912;return _0x47a608?(_0x56a07a[_0x47f022(0x1e0)](_0x349883)['open'](_0x47a608[_0x47f022(0x153)],{'hostType':_0x37e7a9[_0x47f022(0x2c9)],'shapeId':_0x47a608['drawingId'],'subUnitId':_0x47a608[_0x47f022(0x1c5)],'unitId':_0x47a608['unitId']}),!0x0):!0x1;}},Vi=_0x244912(0x23c),Hi={};let Ui=class extends _0x2c7179{constructor(_0x3f4b59,_0x50b121,_0x1d71b1,_0x21c224,_0xa86903){const _0x41a983=_0x244912;super(),this[_0x41a983(0x15d)]=_0x3f4b59,this['_drawingManagerService']=_0x50b121,this['_renderManagerService']=_0x1d71b1,this[_0x41a983(0x321)]=_0x21c224,this[_0x41a983(0x359)]=_0xa86903,q(this,_0x41a983(0x1c4),null),q(this,_0x41a983(0x20a),null),q(this,_0x41a983(0x1e9),null),q(this,_0x41a983(0x1bd),void 0x0),q(this,_0x41a983(0x308),[]),q(this,_0x41a983(0x361),0x0),q(this,'_baseTop',0x0),q(this,'_baseWidth',0x0),q(this,_0x41a983(0x267),0x0),q(this,_0x41a983(0x332),!0x1),q(this,_0x41a983(0x273),void 0x0),q(this,_0x41a983(0x376),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x41a983(0x38d),void 0x0),q(this,_0x41a983(0x257),!0x1),this['_registerFocusChangeHandler'](),this[_0x41a983(0x161)]();}[_0x244912(0x309)](){const _0xbd4a1f=_0x244912;this[_0xbd4a1f(0x193)]();}[_0x244912(0x289)](){const _0x8079e9=_0x244912;this[_0x8079e9(0x193)](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x1c9c82,_0x4701ce,_0xd5f7f7,_0x4f0028){const _0x40651b=_0x244912;let _0x12ead4=_0x1c9c82;if(_0x12ead4!==_0x1ecf22[_0x40651b(0x214)]&&_0x1c9c82!=='custom')try{let _0x4ad599=new _0x2e34c6(_0x12ead4,_0x40651b(0x344)+_0x1c9c82);return _0x4f0028&&_0x4ad599['setShapeData']({'adjustValues':_0x4f0028},!0x0),_0x4ad599[_0x40651b(0x340)]({'width':_0x4701ce,'height':_0xd5f7f7}),_0x4ad599;}catch{return;}}[_0x244912(0x387)](_0x479042,_0x3e75db,_0x715a38){const _0x1d5517=_0x244912;let _0x883c82={'unitId':_0x479042,'subUnitId':_0x3e75db,'drawingId':_0x715a38},_0x13d014=this[_0x1d5517(0x239)][_0x1d5517(0x3a5)](_0x883c82);if(_0x13d014&&_0x13d014[_0x1d5517(0x185)]===_0x54d53a[_0x1d5517(0x16f)])return _0x13d014;}[_0x244912(0x21c)](_0x268668,_0x408c9d,_0x556276){const _0x2faa9f=_0x244912;let _0x144c7a=this['_renderManagerService'][_0x2faa9f(0x276)](_0x268668);if(!_0x144c7a)return;let {scene:_0xfbd99c}=_0x144c7a,_0x5ce2c2=_0x5cc8a7({'unitId':_0x268668,'subUnitId':_0x408c9d,'drawingId':_0x556276}),_0x5b8d33=_0xfbd99c[_0x2faa9f(0x389)](_0x5ce2c2);if(_0x5b8d33 instanceof _0x2cf69c){let _0x3c3d6f=_0x5b8d33[_0x2faa9f(0x19e)];if(_0x3c3d6f)return{'prstGeom':_0x3c3d6f,'adjustValues':_0x5b8d33[_0x2faa9f(0x1e1)]};}}[_0x244912(0x362)](_0x7339aa=!0x1){const _0x137b62=_0x244912;if(!this[_0x137b62(0x20a)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x1f0f09=this[_0x137b62(0x2f0)]['getRenderUnitById'](this[_0x137b62(0x20a)]);if(!_0x1f0f09||!_0x1f0f09[_0x137b62(0x27b)](_0x307dc0)['getCurrentSkeleton']())return;let {scene:_0x4e8521}=_0x1f0f09,_0x36582e=this[_0x137b62(0x387)](this['_unitId'],this[_0x137b62(0x1e9)],this['_activeImageId']);if(!_0x36582e)return;let {transform:_0x1fdf77}=_0x36582e;if(!_0x1fdf77)return;let {left:_0x3a37ea,top:_0x363fdd,width:_0x4160fa,height:_0x390851,flipX:_0x3ae07,flipY:_0xf5630e,angle:_0x4d00ad=0x0}=_0x1fdf77;if(_0x3a37ea===void 0x0||_0x363fdd===void 0x0)return;let _0xf1fbe1=this[_0x137b62(0x21c)](this[_0x137b62(0x20a)],this[_0x137b62(0x1e9)],this[_0x137b62(0x1c4)]);if(!_0xf1fbe1)return;if(_0x7339aa){let _0x3963e4=this[_0x137b62(0x3ae)](_0xf1fbe1['prstGeom'],_0x4160fa||0x0,_0x390851||0x0,_0xf1fbe1[_0x137b62(0x380)]);if(!_0x3963e4)return;this[_0x137b62(0x1bd)]=_0x3963e4[_0x137b62(0x3ad)]();}let _0x350ead=this[_0x137b62(0x1bd)];if(_0x350ead&&_0x350ead[_0x137b62(0x1ae)]!==0x0)for(let _0x1dcd46=0x0;_0x1dcd46<_0x350ead[_0x137b62(0x1ae)];_0x1dcd46++){let _0xd3933f=_0x350ead[_0x1dcd46],_0x2ff2c4=_0xd3933f['x'],_0x1a0e2d=_0xd3933f['y'];if(_0x3ae07&&(_0x2ff2c4=(_0x4160fa||0x0)-_0x2ff2c4),_0xf5630e&&(_0x1a0e2d=(_0x390851||0x0)-_0x1a0e2d),_0x4d00ad!==0x0){let _0x495665=(_0x4160fa||0x0)/0x2,_0x13fd2f=(_0x390851||0x0)/0x2,_0x2afe3=_0x4d00ad*Math['PI']/0xb4,_0x533459=Math['cos'](_0x2afe3),_0x38fbea=Math['sin'](_0x2afe3),_0x53a56d=_0x2ff2c4-_0x495665,_0x3b4e4c=_0x1a0e2d-_0x13fd2f;_0x2ff2c4=_0x495665+(_0x53a56d*_0x533459-_0x3b4e4c*_0x38fbea),_0x1a0e2d=_0x13fd2f+(_0x53a56d*_0x38fbea+_0x3b4e4c*_0x533459);}let _0x3eb431={'x':_0x2ff2c4,'y':_0x1a0e2d,'adjName':_0xd3933f['adjName']};this[_0x137b62(0x19a)](_0x4e8521,_0x3eb431,_0x3eb431['adjName'],_0x3a37ea,_0x363fdd,this['_unitId'],this[_0x137b62(0x1e9)]);}}['_addControl'](_0x2701f9,_0x3eec72,_0x3ab7eb,_0x1715a3,_0x4028a6,_0x753624,_0x6f66b1){const _0x3d9d98=_0x244912;if(!this[_0x3d9d98(0x1c4)])return;let _0x5d68c8=_0x3d9d98(0x1cc)+this[_0x3d9d98(0x1c4)]+'-'+_0x3ab7eb,_0x56820b=_0x2701f9[_0x3d9d98(0x251)](_0x5d68c8);if(_0x56820b){_0x56820b[_0x3d9d98(0x1d8)]({'left':_0x3eec72['x']+_0x1715a3-_0x59f579[_0x3d9d98(0x3c5)],'top':_0x3eec72['y']+_0x4028a6-_0x59f579[_0x3d9d98(0x3c5)]});return;}let _0x5e3679=new Dr(_0x5d68c8,{'left':_0x3eec72['x']+_0x1715a3-_0x59f579['adjHandleSize'],'top':_0x3eec72['y']+_0x4028a6-_0x59f579['adjHandleSize'],'adjName':_0x3ab7eb,'shapeId':this[_0x3d9d98(0x1c4)],'unitId':_0x753624,'subUnitId':_0x6f66b1,'width':_0x59f579[_0x3d9d98(0x3c5)]+0x8,'height':_0x59f579[_0x3d9d98(0x3c5)]+0x8,'zIndex':_0x352374+0x1,'evented':!0x0});this[_0x3d9d98(0x308)][_0x3d9d98(0x399)](_0x5e3679),this[_0x3d9d98(0x32d)](_0x5e3679,_0x2701f9,_0x3ab7eb),_0x2701f9[_0x3d9d98(0x2da)](_0x5e3679,_0x352374+0x1);}['_clearControls'](){const _0x48bf57=_0x244912;this[_0x48bf57(0x308)][_0x48bf57(0x1ae)]!==0x0&&(this['_shapes']['forEach'](_0x3990ed=>_0x3990ed[_0x48bf57(0x346)]()),this[_0x48bf57(0x308)]=[]);}['_getScrollInfo'](_0x2f9ea8,_0xb2a6f4){const _0x12f20e=_0x244912;var _0x48007a;let _0x17de34={'x':0x0,'y':0x0},_0x138831=this[_0x12f20e(0x2f0)][_0x12f20e(0x276)](_0x2f9ea8);if(!_0x138831||!_0x138831[_0x12f20e(0x27b)](_0x307dc0)['getSkeleton'](_0xb2a6f4))return _0x17de34;let _0x6870f9=_0x138831[_0x12f20e(0x27b)](_0x20a826),_0x58dfe6=_0x6870f9==null?void 0x0:_0x6870f9[_0x12f20e(0x145)]();if(!_0x58dfe6)return _0x17de34;let _0x3f702f=(_0x48007a=this[_0x12f20e(0x321)][_0x12f20e(0x287)](_0x2f9ea8))==null?void 0x0:_0x48007a[_0x12f20e(0x184)](_0xb2a6f4);if(!_0x3f702f)return _0x17de34;let _0x254f52=_0x2ead9(_0x58dfe6[_0x12f20e(0x1bc)],_0x58dfe6[_0x12f20e(0x298)],_0x138831[_0x12f20e(0x229)],_0x3f702f);return _0x254f52?{'x':_0x254f52['viewportScrollX'],'y':_0x254f52[_0x12f20e(0x351)]}:_0x17de34;}[_0x244912(0x331)](_0x43e819,_0x282edc){const _0x1204e2=_0x244912;var _0x4ebf66;let _0x2e9b64=(_0x4ebf66=this['_univerInstanceService']['getUnit'](_0x43e819))==null?void 0x0:_0x4ebf66[_0x1204e2(0x184)](_0x282edc);return(_0x2e9b64==null?void 0x0:_0x2e9b64[_0x1204e2(0x3e2)]())??0x1;}[_0x244912(0x32d)](_0x1503db,_0x591a88,_0xfbf031){const _0x1731e0=_0x244912;this[_0x1731e0(0x14a)](_0x21ce23(_0x1503db[_0x1731e0(0x383)]['subscribeEvent']((_0x26b496,_0x42c1fe)=>{const _0x407f41=_0x1731e0;var _0x239f3d,_0x5d4319,_0x1020d3;let {unitId:_0x35d574,subUnitId:_0xf41294,drawingId:_0x123f76}=_0x1503db['getDrawingSearch'](),_0x2817f4=this[_0x407f41(0x387)](_0x35d574,_0xf41294,_0x123f76);if(!(_0x2817f4!=null&&_0x2817f4[_0x407f41(0x1b7)]))return;let {left:_0x950c8b,top:_0x1c7da8,width:_0x239e49,height:_0x4b79fa}=_0x2817f4[_0x407f41(0x1b7)];this['_baseLeft']=_0x950c8b||0x0,this['_baseTop']=_0x1c7da8||0x0,this[_0x407f41(0x218)]=_0x239e49||0x0,this[_0x407f41(0x267)]=_0x4b79fa||0x0;let _0x94539=!!((_0x239f3d=_0x2817f4['transform'])!=null&&_0x239f3d[_0x407f41(0x166)]),_0x2e8d0a=!!((_0x5d4319=_0x2817f4[_0x407f41(0x1b7)])!=null&&_0x5d4319[_0x407f41(0x3b2)]),_0x5b4916=((_0x1020d3=_0x2817f4[_0x407f41(0x1b7)])==null?void 0x0:_0x1020d3[_0x407f41(0x388)])||0x0,_0x4d2ed3=this[_0x407f41(0x21c)](_0x35d574,_0xf41294,_0x123f76);if(!_0x4d2ed3)return;let _0xde94e8=this[_0x407f41(0x3ae)](_0x4d2ed3['prstGeom'],this[_0x407f41(0x218)],this['_baseHeight'],_0x4d2ed3[_0x407f41(0x380)]);if(!_0xde94e8||(this['_activeShapeModel']=_0xde94e8,this[_0x407f41(0x273)]=_0xde94e8[_0x407f41(0x21d)](_0xfbf031),!this[_0x407f41(0x273)]))return;this[_0x407f41(0x332)]=!0x0,_0x591a88[_0x407f41(0x329)]();let _0xe071f6=_0x4d2ed3['prstGeom'];this['_adjHandlerPointerMove']=_0x591a88['onPointerMove$']['subscribeEvent']((_0x228b32,_0x317d77)=>{const _0x500db8=_0x407f41;if(!this[_0x500db8(0x332)])return;let {offsetX:_0x407d35,offsetY:_0xa0e823}=_0x228b32,_0x1f4400=this[_0x500db8(0x273)];if(!this['_activeShapeModel']||!_0x1f4400)return;_0x591a88[_0x500db8(0x329)](),_0x591a88[_0x500db8(0x34d)](_0x48d0e8[_0x500db8(0x1f1)]);let _0x1bdc2c={'left':0x0,'top':0x0,'width':this[_0x500db8(0x218)],'height':this[_0x500db8(0x267)]},_0x121463=this[_0x500db8(0x18d)](_0x35d574,_0xf41294),_0x4822df=this[_0x500db8(0x331)](_0x35d574,_0xf41294),_0x1cf1ce=_0x407d35/_0x4822df+_0x121463['x']-this[_0x500db8(0x361)],_0x5f28fd=_0xa0e823/_0x4822df+_0x121463['y']-this[_0x500db8(0x275)];if(_0x5b4916!==0x0){let _0x22f4a2=this[_0x500db8(0x218)]/0x2,_0x5c3fe8=this[_0x500db8(0x267)]/0x2,_0x5eed2c=_0x5b4916*Math['PI']/0xb4,_0x1f6e97=Math[_0x500db8(0x1ee)](_0x5eed2c),_0x26608d=Math['sin'](_0x5eed2c),_0xe1cc97=_0x1cf1ce-_0x22f4a2,_0x2cd732=_0x5f28fd-_0x5c3fe8;_0x1cf1ce=_0x22f4a2+(_0xe1cc97*_0x1f6e97+_0x2cd732*_0x26608d),_0x5f28fd=_0x5c3fe8+(-_0xe1cc97*_0x26608d+_0x2cd732*_0x1f6e97);}_0x94539&&(_0x1cf1ce=this['_baseWidth']-_0x1cf1ce),_0x2e8d0a&&(_0x5f28fd=this['_baseHeight']-_0x5f28fd);let _0x5e7d01=this[_0x500db8(0x376)][_0x500db8(0x3a4)](_0x1bdc2c,{'x':_0x1cf1ce,'y':_0x5f28fd},_0x1f4400,_0x94539,_0x2e8d0a);if(Object[_0x500db8(0x3da)](_0x5e7d01)['length']!==0x0){for(let [_0x4da03e,_0x3ea1ff]of Object[_0x500db8(0x324)](_0x5e7d01))this[_0x500db8(0x376)][_0x500db8(0x3b3)](_0x4da03e,_0x3ea1ff);this[_0x500db8(0x376)]['updateContext']({'width':this[_0x500db8(0x218)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x35d574,_0xf41294,_0x123f76,_0x5e7d01),this['_activeAdjustPointList']=this['_activeShapeModel']['getDrawingPoints'](),this['_createControls'](),_0x317d77[_0x500db8(0x34a)]();}}),this[_0x407f41(0x38d)]=_0x591a88['onPointerUp$'][_0x407f41(0x318)]((_0x3f230a,_0x1e1920)=>{const _0xe50912=_0x407f41;if(this[_0xe50912(0x297)][_0xe50912(0x3fc)](),this[_0xe50912(0x38d)][_0xe50912(0x3fc)](),_0x591a88[_0xe50912(0x3ee)](),this[_0xe50912(0x376)]){let _0x1db046=this[_0xe50912(0x376)][_0xe50912(0x2a9)](),_0x1e1d5e={};for(let _0x9e75ca of _0x1db046){let _0x53aec=this[_0xe50912(0x376)][_0xe50912(0x21e)](_0x9e75ca);_0x53aec!==void 0x0&&(_0x1e1d5e[_0x9e75ca]=_0x53aec);}this[_0xe50912(0x359)][_0xe50912(0x2e4)](_0x35d574,_0xf41294,_0x123f76,_0xe071f6,_0x1e1d5e);}this[_0xe50912(0x273)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0xe50912(0x332)]=!0x1,_0x1e1920[_0xe50912(0x34a)](),_0x591a88[_0xe50912(0x33c)]();}),_0x42c1fe[_0x407f41(0x34a)]();})));}['_updateImageAdjValues'](_0x589b46,_0x481b52,_0x1e430b,_0x35aa2c){const _0x43c437=_0x244912;let _0x7e6182=this[_0x43c437(0x2f0)][_0x43c437(0x276)](_0x589b46);if(!_0x7e6182)return;let {scene:_0x9f4cb}=_0x7e6182,_0x56f0a6=_0x5cc8a7({'unitId':_0x589b46,'subUnitId':_0x481b52,'drawingId':_0x1e430b}),_0x4b8b9a=_0x9f4cb['getObject'](_0x56f0a6);if(_0x4b8b9a instanceof _0x2cf69c){let _0x1b1a97=_0x4b8b9a[_0x43c437(0x1e1)]??{};_0x4b8b9a[_0x43c437(0x3dc)]({..._0x1b1a97,..._0x35aa2c}),_0x4b8b9a[_0x43c437(0x23a)](!0x0);}}[_0x244912(0x161)](){const _0xde867c=_0x244912;let _0x31ed1c=this['_univerInstanceService'][_0xde867c(0x25d)](_0x37e7a9[_0xde867c(0x2c9)]);this[_0xde867c(0x14a)](_0x31ed1c[_0xde867c(0x18a)](_0x4ab26c(_0x53387a=>_0x53387a?_0x53387a['activeSheet$'][_0xde867c(0x18a)](_0x4ab26c(_0x37b905=>{const _0x2f315e=_0xde867c;if(!_0x37b905)return _0x351d29;let _0x1f9ba8=_0x53387a[_0x2f315e(0x186)](),_0xe93758=this[_0x2f315e(0x2f0)]['getRenderUnitById'](_0x1f9ba8),_0x584154=_0xe93758==null?void 0x0:_0xe93758[_0x2f315e(0x229)];return _0x584154?_0x1e0e82(_0x584154):_0x351d29;})):_0x351d29))[_0xde867c(0x305)](_0x308928=>{const _0x4e90f0=_0xde867c;let _0x1afead=_0x308928[_0x4e90f0(0x3ed)]();this[_0x4e90f0(0x14a)](_0x308928['onPointerMove$'][_0x4e90f0(0x318)](()=>{const _0x38af5e=_0x4e90f0;this[_0x38af5e(0x257)]&&this[_0x38af5e(0x193)]();})),this[_0x4e90f0(0x14a)](_0x1afead[_0x4e90f0(0x24c)][_0x4e90f0(0x305)](_0x150cc5=>{const _0x44ca1=_0x4e90f0;let {objects:_0x4885b9}=_0x150cc5;if(this[_0x44ca1(0x362)](),_0x4885b9!==null&&_0x4885b9['size']===0x1){let _0x2f7915=_0x4885b9[_0x44ca1(0x196)]()[_0x44ca1(0x3ac)]()[_0x44ca1(0x3de)];_0x2f7915 instanceof _0x2cf69c&&_0x2f7915[_0x44ca1(0x19e)]&&(this[_0x44ca1(0x257)]=!0x0);}})),this[_0x4e90f0(0x14a)](_0x1afead['changing$'][_0x4e90f0(0x305)](()=>{const _0xc2dac3=_0x4e90f0;this[_0xc2dac3(0x257)]&&this[_0xc2dac3(0x193)]();})),this[_0x4e90f0(0x14a)](_0x308928[_0x4e90f0(0x36d)][_0x4e90f0(0x318)](()=>{const _0x14037e=_0x4e90f0;this['_isImagePointerDown']&&(this[_0x14037e(0x257)]=!0x1,this[_0x14037e(0x362)]());})),this[_0x4e90f0(0x14a)](_0x1afead[_0x4e90f0(0x27f)][_0x4e90f0(0x305)](()=>{const _0xa56a1=_0x4e90f0;if(this[_0xa56a1(0x20a)]&&this[_0xa56a1(0x1e9)]&&this['_activeImageId']){let _0x25d36d=this[_0xa56a1(0x21c)](this[_0xa56a1(0x20a)],this[_0xa56a1(0x1e9)],this[_0xa56a1(0x1c4)]);if(_0x25d36d){var _0x52e6b9,_0x540082;let _0x1a8a02=this[_0xa56a1(0x387)](this[_0xa56a1(0x20a)],this[_0xa56a1(0x1e9)],this[_0xa56a1(0x1c4)]),_0x180915=(_0x1a8a02==null||(_0x52e6b9=_0x1a8a02['transform'])==null?void 0x0:_0x52e6b9[_0xa56a1(0x326)])||0x0,_0x2b4dc6=(_0x1a8a02==null||(_0x540082=_0x1a8a02[_0xa56a1(0x1b7)])==null?void 0x0:_0x540082[_0xa56a1(0x1ba)])||0x0,_0x39f271=this['_getOrCreateShapeModel'](_0x25d36d['prstGeom'],_0x180915,_0x2b4dc6,_0x25d36d[_0xa56a1(0x380)]);_0x39f271&&(this['_activeAdjustPointList']=_0x39f271[_0xa56a1(0x3ad)](),this[_0xa56a1(0x193)](),this['_createControls'](!0x0));}}}));}));}[_0x244912(0x37c)](){const _0x4b5def=_0x244912;this[_0x4b5def(0x14a)](this['_drawingManagerService'][_0x4b5def(0x2fc)][_0x4b5def(0x305)](_0x24d33b=>{const _0x4e869a=_0x4b5def;if(_0x24d33b[_0x4e869a(0x1ae)]===0x1){let _0x352b51=_0x24d33b[0x0];if(_0x352b51[_0x4e869a(0x185)]===_0x54d53a[_0x4e869a(0x16f)]){let {unitId:_0x14491b,subUnitId:_0x705972,drawingId:_0x4d4e10}=_0x352b51,_0x2b4449=this[_0x4e869a(0x21c)](_0x14491b,_0x705972,_0x4d4e10);if(_0x2b4449){var _0x1ce8b5,_0x3b4240;this[_0x4e869a(0x1c4)]=_0x4d4e10,this[_0x4e869a(0x20a)]=_0x14491b,this[_0x4e869a(0x1e9)]=_0x705972;let _0x15cfcd=this['_getImageDrawingInfo'](_0x14491b,_0x705972,_0x4d4e10),_0x12cde9=(_0x15cfcd==null||(_0x1ce8b5=_0x15cfcd[_0x4e869a(0x1b7)])==null?void 0x0:_0x1ce8b5['width'])||0x0,_0xd2b6c0=(_0x15cfcd==null||(_0x3b4240=_0x15cfcd[_0x4e869a(0x1b7)])==null?void 0x0:_0x3b4240[_0x4e869a(0x1ba)])||0x0,_0x5edcdb=this[_0x4e869a(0x3ae)](_0x2b4449[_0x4e869a(0x19e)],_0x12cde9,_0xd2b6c0,_0x2b4449[_0x4e869a(0x380)]);_0x5edcdb&&(this[_0x4e869a(0x1bd)]=_0x5edcdb[_0x4e869a(0x3ad)]()),this[_0x4e869a(0x193)](),this[_0x4e869a(0x362)](!0x0);}else this['_resetState']();}else this[_0x4e869a(0x284)]();}else this[_0x4e869a(0x284)]();})),this['disposeWithMe'](this[_0x4b5def(0x239)][_0x4b5def(0x1cd)]['subscribe'](_0x48ac81=>{const _0x4937d2=_0x4b5def;if(_0x48ac81[_0x4937d2(0x1ae)]===0x1){let _0x25f13e=_0x48ac81[0x0],_0x173fa9=this['_drawingManagerService'][_0x4937d2(0x3a5)](_0x25f13e);(_0x173fa9==null?void 0x0:_0x173fa9[_0x4937d2(0x185)])===_0x54d53a[_0x4937d2(0x16f)]&&this['_activeImageId']===_0x25f13e[_0x4937d2(0x237)]&&(this[_0x4937d2(0x193)](),this[_0x4937d2(0x362)](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x4b5def(0x305)](_0x51ac86=>{const _0x21e4eb=_0x4b5def;for(let _0x38ddc2 of _0x51ac86)this[_0x21e4eb(0x1c4)]===_0x38ddc2[_0x21e4eb(0x237)]&&this['_resetState']();}));}[_0x244912(0x284)](){const _0x5c1a4b=_0x244912;this['_activeImageId']=null,this['_unitId']=null,this[_0x5c1a4b(0x1e9)]=null,this[_0x5c1a4b(0x1bd)]=void 0x0,this[_0x5c1a4b(0x193)]();}};Ui=Y([J(0x1,_0x1f50fa),J(0x2,_0x318433(_0xc8f10c)),J(0x3,_0x595744),J(0x4,_0x318433(Q))],Ui);function Wi(_0x480778){const _0x17429f=_0x244912;return _0x480778[_0x17429f(0x34c)]()||void 0x0;}function Gi(_0xb21ae9,_0x5ef6a0,_0x494e83){const _0xaa197e=_0x244912;var _0x48b3e4;return((_0x48b3e4=_0xb21ae9[_0xaa197e(0x197)])==null?void 0x0:_0x48b3e4[_0xaa197e(0x34c)]())||_0x494e83['t'](_0xaa197e(0x338)+_0x58b895(_0xb21ae9[_0xaa197e(0x185)]))+'\x20'+(_0x5ef6a0+0x1);}function Ki({PanelComponent:_0xc50bb8=_0xb2f346}){const _0x1b6ff0=_0x244912;var _0x3f2eb7;let _0x1e435f=_0x2c7ca5(_0x3f1353),_0x48002f={'title':_0x1e435f['t'](_0x1b6ff0(0x26d)),'empty':_0x1e435f['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x1e435f['t'](_0x1b6ff0(0x2bf)),'hideAll':_0x1e435f['t'](_0x1b6ff0(0x252)),'lockAll':_0x1e435f['t'](_0x1b6ff0(0x140)),'unlockAll':_0x1e435f['t'](_0x1b6ff0(0x203)),'moveForward':_0x1e435f['t'](_0x1b6ff0(0x3aa)),'moveBackward':_0x1e435f['t'](_0x1b6ff0(0x25c)),'close':_0x1e435f['t'](_0x1b6ff0(0x35e)),'show':_0x1e435f['t'](_0x1b6ff0(0x157)),'hide':_0x1e435f['t'](_0x1b6ff0(0x2c6)),'lock':_0x1e435f['t'](_0x1b6ff0(0x33d)),'unlock':_0x1e435f['t'](_0x1b6ff0(0x3f9)),'lockHint':_0x1e435f['t'](_0x1b6ff0(0x353)),'unlockHint':_0x1e435f['t'](_0x1b6ff0(0x171)),'name':_0x1e435f['t'](_0x1b6ff0(0x39e)),'nameInput':_0x1e435f['t'](_0x1b6ff0(0x280)),'description':_0x1e435f['t'](_0x1b6ff0(0x3a0)),'descriptionPlaceholder':_0x1e435f['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x1e435f['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x1e435f['t'](_0x1b6ff0(0x26a)),'locate':_0x1e435f['t']('drawing-ui.objectListPanel.locate'),'expand':_0x1e435f['t'](_0x1b6ff0(0x3a7)),'collapse':_0x1e435f['t'](_0x1b6ff0(0x23f)),'dragToReorder':_0x1e435f['t'](_0x1b6ff0(0x147)),'search':_0x1e435f['t'](_0x1b6ff0(0x3ea)),'filterAll':_0x1e435f['t'](_0x1b6ff0(0x182)),'filterHidden':_0x1e435f['t'](_0x1b6ff0(0x322)),'filterLocked':_0x1e435f['t'](_0x1b6ff0(0x1be)),'sectionCanvas':_0x1e435f['t'](_0x1b6ff0(0x20d)),'sectionFloating':_0x1e435f['t']('drawing-ui.objectListPanel.sectionFloating')},_0x44a32d=_0x2c7ca5(_0x4aa13b),_0x5f538a=_0x2c7ca5(_0x595744),_0x426475=_0x2c7ca5(_0x35f22e),_0x40f1b0=_0x2c7ca5(_0x1f50fa),_0x585243=_0x2c7ca5(_0xc8f10c),[,_0x1c4b77]=_0x256536(_0x598685=>_0x598685+0x1,0x0),_0x412860=_0x5f538a[_0x1b6ff0(0x213)](_0x37e7a9[_0x1b6ff0(0x2c9)]),_0x518689=(_0x412860==null?void 0x0:_0x412860['getUnitId']())??'',_0x2e7731=(_0x412860==null||(_0x3f2eb7=_0x412860[_0x1b6ff0(0x30a)]())==null?void 0x0:_0x3f2eb7[_0x1b6ff0(0x2d9)]())??'',_0x40db54=_0x297a75(()=>_0x40f1b0[_0x1b6ff0(0x2fc)],_0x40f1b0[_0x1b6ff0(0x2a0)](),!0x1,[_0x40f1b0]);_0x1ff107(()=>{const _0x330832=_0x1b6ff0;let _0x509aeb=_0x44a32d[_0x330832(0x356)](()=>_0x1c4b77());return()=>_0x509aeb[_0x330832(0x346)]();},[_0x44a32d]);let _0x572c94=_0x518689&&_0x2e7731?_0x426475[_0x1b6ff0(0x1c8)](_0x518689,_0x2e7731):{},_0x3fd21e=(_0x518689&&_0x2e7731?_0x426475[_0x1b6ff0(0x2d2)](_0x518689,_0x2e7731):[])['map'](_0x561b7a=>_0x572c94[_0x561b7a])[_0x1b6ff0(0x150)](_0x33b987=>!!_0x33b987)[_0x1b6ff0(0x375)](),_0x23a1d9=_0x3fd21e[_0x1b6ff0(0x282)]((_0x4fe22b,_0x1f52b8)=>(_0x4fe22b[_0x303f7a(_0x1f52b8[_0x1b6ff0(0x185)])]+=0x1,_0x4fe22b),{'canvas':0x0,'floating':0x0}),_0x3bb872={'canvas':0x0,'floating':0x0},_0x2d481d=_0x3fd21e[_0x1b6ff0(0x3c9)]((_0x52f488,_0x3a42b1)=>{const _0x3ebf7d=_0x1b6ff0;let _0x527213=_0x303f7a(_0x52f488[_0x3ebf7d(0x185)]),_0x22cec1=_0x527213===_0xdc906c,_0x1bbc4c=_0x3bb872[_0x527213]++;return{'id':_0x52f488['drawingId'],'name':Gi(_0x52f488,_0x3a42b1,_0x1e435f),'description':_0x52f488[_0x3ebf7d(0x1ec)],'visible':_0x52f488[_0x3ebf7d(0x24d)]!==!0x0,'selectable':_0x52f488['selectable']!==!0x1,'sectionId':_0x527213,'sectionTitle':_0x22cec1?_0x48002f[_0x3ebf7d(0x14d)]:_0x48002f[_0x3ebf7d(0x1eb)],'capabilities':_0x22cec1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x22cec1&&_0x1bbc4c>0x0,'canMoveBackward':!_0x22cec1&&_0x1bbc4c<_0x23a1d9[_0x3ebf7d(0x370)]-0x1,'canReorder':!_0x22cec1};}),_0x3e7f87=_0x3352e0(()=>(_0x40db54??[])[_0x1b6ff0(0x150)](_0x5ad116=>_0x5ad116[_0x1b6ff0(0x21f)]===_0x518689&&_0x5ad116['subUnitId']===_0x2e7731)[_0x1b6ff0(0x3c9)](_0x1665cd=>_0x1665cd['drawingId']),[_0x40db54,_0x2e7731,_0x518689]),_0x1f4c5e=_0x3e7f87[_0x3e7f87[_0x1b6ff0(0x1ae)]-0x1]??null,_0x5918c4=_0x252c94=>_0x426475[_0x1b6ff0(0x3a5)]({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x252c94})??null,_0x37c39f=async _0x54fe47=>{const _0x490227=_0x1b6ff0;_0x518689&&_0x54fe47[_0x490227(0x1ae)]&&await _0x44a32d[_0x490227(0x1ac)](_0x480d38['id'],{'unitId':_0x518689,'drawings':_0x54fe47});},_0x3dced5=async(_0x2a2286,_0x1d5e75)=>{_0x5918c4(_0x2a2286)&&await _0x37c39f([{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x2a2286,..._0x1d5e75}]);},_0x34186c=(_0x50ddcf,_0x592f66)=>{const _0x585067=_0x1b6ff0;if(!_0x518689||!_0x2e7731)return;let _0x192c16=_0x592f66?_0x3e7f87[_0x585067(0x221)](_0x50ddcf)?_0x3e7f87[_0x585067(0x150)](_0x126759=>_0x126759!==_0x50ddcf):[..._0x3e7f87,_0x50ddcf]:[_0x50ddcf];_0x44a32d[_0x585067(0x27c)](_0x4c2abf['id'],_0x192c16[_0x585067(0x3c9)](_0x384312=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x384312})));let _0x38d3b2=_0x192c16[_0x192c16[_0x585067(0x1ae)]-0x1];_0x38d3b2?_0x35675d(_0x585243,{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x38d3b2}):_0x4c6b4(_0x585243,_0x518689);},_0x58a5af=async(_0x29f387,_0x1d4a68)=>{const _0x38ea1d=_0x1b6ff0;await _0x37c39f(_0x29f387[_0x38ea1d(0x3c9)](_0x34b2f4=>_0x5918c4(_0x34b2f4))[_0x38ea1d(0x150)](_0x4c2994=>!!_0x4c2994)[_0x38ea1d(0x150)](_0x5f42e4=>_0x5f42e4[_0x38ea1d(0x24d)]!==!0x0!==_0x1d4a68)[_0x38ea1d(0x3c9)](_0x186e5a=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x186e5a[_0x38ea1d(0x237)],'hidden':!_0x1d4a68})));},_0x33036c=async(_0x41f3ee,_0x54e0d7)=>{const _0x553291=_0x1b6ff0;await _0x37c39f(_0x41f3ee[_0x553291(0x3c9)](_0x426cf1=>_0x5918c4(_0x426cf1))[_0x553291(0x150)](_0x5a0c06=>!!_0x5a0c06)[_0x553291(0x150)](_0x1e3738=>_0x1e3738[_0x553291(0x3a1)]!==!0x1!==_0x54e0d7)[_0x553291(0x3c9)](_0x15128a=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x15128a[_0x553291(0x237)],'selectable':_0x54e0d7})));},_0x25c998=_0x4d1429=>{const _0x587b16=_0x1b6ff0;let _0x4ca49b=_0x5918c4(_0x4d1429);if(_0x4ca49b)return _0x33036c([_0x4d1429],_0x4ca49b[_0x587b16(0x3a1)]===!0x1);},_0x5ec528=async(_0x430b2b,_0x551952)=>{const _0x1f1503=_0x1b6ff0;var _0x2fabbc;let _0x3944cc=Wi(_0x551952);(((_0x2fabbc=_0x5918c4(_0x430b2b))==null?void 0x0:_0x2fabbc[_0x1f1503(0x197)])??void 0x0)!==_0x3944cc&&await _0x3dced5(_0x430b2b,{'name':_0x3944cc});},_0x1c45c9=async(_0xfc435f,_0x40be81)=>{const _0x1a4376=_0x1b6ff0;var _0x22bc99;let _0x14658f=Wi(_0x40be81);(((_0x22bc99=_0x5918c4(_0xfc435f))==null?void 0x0:_0x22bc99[_0x1a4376(0x1ec)])??void 0x0)!==_0x14658f&&await _0x3dced5(_0xfc435f,{'description':_0x14658f});},_0xe0991b=async(_0x33b16b,_0x4847d6)=>{_0x518689&&_0x2e7731&&await _0x44a32d['executeCommand'](_0x4e0df7['id'],{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingIds':[_0x33b16b],'arrangeType':_0x4847d6});};return!_0x518689||!_0x2e7731?_0xcdc9dc('div',{'className':_0x1b6ff0(0x1c7),'children':_0x48002f[_0x1b6ff0(0x1d1)]}):_0xcdc9dc(_0xc50bb8,{'labels':_0x48002f,'items':_0x2d481d,'selectedIds':_0x3e7f87,'focusedId':_0x1f4c5e,'showHeader':!0x1,'onSelect':_0x34186c,'onSetVisible':_0x58a5af,'onSetSelectable':_0x33036c,'onCommitName':_0x5ec528,'onCommitDescription':_0x1c45c9,'onMoveForward':async _0x5f3f1a=>_0xe0991b(_0x5f3f1a,_0x5de8db[_0x1b6ff0(0x285)]),'onMoveBackward':async _0x1f4f28=>_0xe0991b(_0x1f4f28,_0x5de8db[_0x1b6ff0(0x295)]),'onToggleSelectable':_0x25c998});}function qi(){return _0xcdc9dc(Ki,{'PanelComponent':_0x2083db});}let Ji=class extends _0x2c7179{constructor(_0x378de9,_0x25e3e0){const _0x36edd5=_0x244912;super(),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](jr,qi)),this[_0x36edd5(0x14a)](_0x25e3e0[_0x36edd5(0x2a8)]({'BottomIcon':_0xe20eb,'FlipHorizontalIcon':_0x183126,'FlipVerticalIcon':_0x3dabc1,'MoveDownIcon':_0x1bee1c,'MoveUpIcon':_0x368783,'ObjectLayersIcon':_0x4809c9,'ShapeFormatSettingIcon':_0x1516df,'TopmostIcon':_0x1f7182})),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](Vr,Jr)),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](Hr,Gr)),_0x378de9['get'](_0x184fa8)||this[_0x36edd5(0x14a)](_0x378de9['register'](_0x184fa8,Kr));}};function _0x4e9b(_0x1f63ca,_0x522d12){_0x1f63ca=_0x1f63ca-0x13f;const _0x2c7e0f=_0x2c7e();let _0x4e9b7c=_0x2c7e0f[_0x1f63ca];return _0x4e9b7c;}Ji=Y([J(0x0,_0x318433(_0x56d3ac)),J(0x1,_0x318433(_0x40e0f9))],Ji);let $=class extends _0x2c7179{constructor(_0x2d3024){const _0x273d69=_0x244912;super(),this[_0x273d69(0x265)]=_0x2d3024,q(this,_0x273d69(0x22b),new _0x170955(null)),q(this,_0x273d69(0x256),this[_0x273d69(0x22b)]['asObservable']()),q(this,_0x273d69(0x313),new _0x170955(!0x1)),q(this,'onSavingEditorData$',this[_0x273d69(0x313)][_0x273d69(0x1f2)]()),q(this,_0x273d69(0x1cb),void 0x0),this[_0x273d69(0x14a)](this['_permissionService'][_0x273d69(0x236)]['subscribe'](()=>{const _0x304414=_0x273d69;let _0x5b0cdc=this[_0x304414(0x209)]();_0x5b0cdc!=null&&_0x5b0cdc['visible']&&!this[_0x304414(0x38a)](_0x5b0cdc)&&this['setEditing'](null);}));}[_0x244912(0x346)](){const _0x24d639=_0x244912;this['_clearCompletionFrame'](),this[_0x24d639(0x22b)][_0x24d639(0x3ac)](null),this[_0x24d639(0x22b)]['complete'](),this[_0x24d639(0x313)]['next'](!0x1),this[_0x24d639(0x313)][_0x24d639(0x2c4)](),super[_0x24d639(0x346)]();}[_0x244912(0x1ca)](_0x2e3b01){const _0x3a9236=_0x244912;(_0x2e3b01==null||!_0x2e3b01[_0x3a9236(0x27e)]||this[_0x3a9236(0x38a)](_0x2e3b01))&&(this[_0x3a9236(0x2b0)](),this[_0x3a9236(0x22b)][_0x3a9236(0x3ac)](_0x2e3b01),(_0x2e3b01==null||_0x2e3b01['visible']&&this['_onSavingEditorData$'][_0x3a9236(0x2d8)]())&&this['_onSavingEditorData$'][_0x3a9236(0x3ac)](!0x1));}[_0x244912(0x2f6)](_0xb768e9){const _0x45e506=_0x244912;this['_onSavingEditorData$'][_0x45e506(0x3ac)](_0xb768e9);}[_0x244912(0x209)](){const _0x548965=_0x244912;return this['_editingParams$'][_0x548965(0x2d8)]();}[_0x244912(0x38a)](_0x3b7023){const _0x475b25=_0x244912;let _0x39bf22=this[_0x475b25(0x265)][_0x475b25(0x2d6)](new _0x59c9a1(_0x3b7023['unitId'])['id']),_0x3a82be=this['_permissionService'][_0x475b25(0x2d6)](new _0x5ec863(_0x3b7023[_0x475b25(0x21f)],_0x3b7023[_0x475b25(0x1c5)])['id']);return((_0x39bf22==null?void 0x0:_0x39bf22['value'])??!0x0)&&((_0x3a82be==null?void 0x0:_0x3a82be[_0x475b25(0x3de)])??!0x0);}['completeEditing'](_0x3c8fad){const _0x36b6f9=_0x244912;let _0x4738a9=this[_0x36b6f9(0x209)]();_0x4738a9&&this[_0x36b6f9(0x1cb)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x36b6f9(0x1cb)]=requestAnimationFrame(()=>{const _0x228f7c=_0x36b6f9;this[_0x228f7c(0x1cb)]=void 0x0,this[_0x228f7c(0x209)]()===_0x4738a9&&this[_0x228f7c(0x1ca)](null);}));}[_0x244912(0x2b0)](){const _0x157f49=_0x244912;this[_0x157f49(0x1cb)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x157f49(0x1cb)]=void 0x0);}[_0x244912(0x35c)](){const _0x4f2534=_0x244912;this[_0x4f2534(0x209)]()&&this[_0x4f2534(0x1ca)](null);}};$=Y([J(0x0,_0x10d99e)],$);let Yi=class extends _0x2c7179{constructor(_0x261758,_0x56f6e8,_0x2a9866,_0x103625,_0x158e11,_0x3e6193){const _0x2b121e=_0x244912;super(),this['_context']=_0x261758,this[_0x2b121e(0x391)]=_0x56f6e8,this[_0x2b121e(0x29f)]=_0x2a9866,this['_drawingManagerService']=_0x103625,this[_0x2b121e(0x210)]=_0x158e11,this[_0x2b121e(0x288)]=_0x3e6193,q(this,'_lastEditingShapeKey',null),this[_0x2b121e(0x225)](),this['_initSelection'](),this[_0x2b121e(0x1e4)]();}[_0x244912(0x225)](){const _0x4aef0b=_0x244912;let {scene:_0x2591d2}=this['_context'];this[_0x4aef0b(0x14a)](_0x2591d2[_0x4aef0b(0x398)][_0x4aef0b(0x318)](_0x571b97=>{const _0x5c7489=_0x4aef0b;let {offsetX:_0x230b6a,offsetY:_0x43c2fc}=_0x571b97,_0x5cdcc7=_0x2591d2[_0x5c7489(0x2fa)](_0x145e25['FromArray']([_0x230b6a,_0x43c2fc]));if(_0x5cdcc7 instanceof Er){let _0x13ef6a=this[_0x5c7489(0x288)][_0x5c7489(0x35b)](_0x5cdcc7[_0x5c7489(0x21f)],_0x5cdcc7[_0x5c7489(0x1c5)],_0x5cdcc7[_0x5c7489(0x19c)]);if(_0x3c2fe3(this['_sheetsShapeService']['getShapeType'](_0x5cdcc7['unitId'],_0x5cdcc7[_0x5c7489(0x1c5)],_0x5cdcc7[_0x5c7489(0x19c)]))||_0x13ef6a!=null&&_0x13ef6a['getShapeData']()[_0x5c7489(0x141)])return;this['_shapeTextEditingService'][_0x5c7489(0x1ca)]({'visible':!0x0,'unitId':_0x5cdcc7[_0x5c7489(0x21f)],'subUnitId':_0x5cdcc7[_0x5c7489(0x1c5)],'shapeId':_0x5cdcc7[_0x5c7489(0x19c)],'shapeKey':_0x5cdcc7[_0x5c7489(0x206)]});}}));}['_initSelection'](){const _0x47b7cd=_0x244912;this[_0x47b7cd(0x14a)](this['_drawingManagerService'][_0x47b7cd(0x2fc)][_0x47b7cd(0x305)](_0x3ce9c4=>{const _0x4c8b7d=_0x47b7cd;if(_0x3ce9c4[_0x4c8b7d(0x1ae)]===0x1){let _0x240dfd=_0x3ce9c4[0x0],_0xfdaaff=this[_0x4c8b7d(0x239)][_0x4c8b7d(0x3a5)](_0x240dfd);if((_0xfdaaff==null?void 0x0:_0xfdaaff[_0x4c8b7d(0x185)])===_0x54d53a[_0x4c8b7d(0x1b1)]){var _0x5841a8;let _0x37e654=this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x209)]();if((_0x37e654==null?void 0x0:_0x37e654[_0x4c8b7d(0x19c)])===_0x240dfd[_0x4c8b7d(0x237)]&&_0x37e654[_0x4c8b7d(0x27e)])return;let _0x1d46da=_0x3c2fe3(this['_sheetsShapeService'][_0x4c8b7d(0x382)](_0x240dfd['unitId'],_0x240dfd[_0x4c8b7d(0x1c5)],_0x240dfd[_0x4c8b7d(0x237)])),_0x299022=!!((_0x5841a8=this[_0x4c8b7d(0x288)][_0x4c8b7d(0x35b)](_0x240dfd[_0x4c8b7d(0x21f)],_0x240dfd['subUnitId'],_0x240dfd[_0x4c8b7d(0x237)]))!=null&&_0x5841a8['getShapeData']()[_0x4c8b7d(0x141)]);(_0x1d46da||_0x299022)&&this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x1ca)](null);}else this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x3f6)]();}else this['_shapeTextEditingService'][_0x4c8b7d(0x3f6)]();})),this[_0x47b7cd(0x14a)](this[_0x47b7cd(0x239)][_0x47b7cd(0x16d)][_0x47b7cd(0x305)](_0x337839=>{const _0x218f18=_0x47b7cd;let _0x2dbdfd=this[_0x218f18(0x29f)]['getEditing']();_0x2dbdfd&&_0x337839[_0x218f18(0x22e)](_0x2c63c0=>_0x2c63c0[_0x218f18(0x237)]===_0x2dbdfd[_0x218f18(0x19c)])&&this[_0x218f18(0x29f)][_0x218f18(0x1ca)](null);}));}[_0x244912(0x1e4)](){const _0x5e87af=_0x244912;this['disposeWithMe'](this['_shapeTextEditingService'][_0x5e87af(0x256)][_0x5e87af(0x305)](_0xb4bbce=>{const _0xc92173=_0x5e87af;let {scene:_0x399f4a}=this[_0xc92173(0x15d)];if(this[_0xc92173(0x28b)]){let _0x50aa1f=_0x399f4a[_0xc92173(0x251)](this[_0xc92173(0x28b)]);_0x50aa1f&&_0x50aa1f[_0xc92173(0x1ca)](!0x1);}if(_0xb4bbce){let _0x3c76e4=!!_0xb4bbce['visible'],_0x259509=_0x399f4a[_0xc92173(0x251)](_0xb4bbce[_0xc92173(0x2ee)]);_0x259509&&(_0x259509[_0xc92173(0x1ca)](_0x3c76e4),this['_lastEditingShapeKey']=_0xb4bbce[_0xc92173(0x2ee)]),this[_0xc92173(0x210)][_0xc92173(0x234)](_0x3e7b7b,_0x3c76e4);}else this[_0xc92173(0x28b)]=null,this[_0xc92173(0x210)][_0xc92173(0x234)](_0x3e7b7b,!0x1);}));}};Yi=Y([J(0x1,_0x318433(_0x54646c)),J(0x2,_0x318433($)),J(0x3,_0x1f50fa),J(0x4,_0x21e25a),J(0x5,_0x318433(_0x5594a6))],Yi);var Xi=class extends Yi{[_0x244912(0x225)](){const _0x2a038a=_0x244912;let {scene:_0x552859}=this['_context'],_0x542877=this['_injector'][_0x2a038a(0x1e0)](_0x349883);this[_0x2a038a(0x14a)](_0x552859[_0x2a038a(0x398)][_0x2a038a(0x318)](_0x35f52c=>{const _0x28ef02=_0x2a038a;let {offsetX:_0x43aa2f,offsetY:_0x69ca88}=_0x35f52c,_0x22cdcd=_0x552859['pick'](_0x145e25['FromArray']([_0x43aa2f,_0x69ca88]));if(!(_0x22cdcd instanceof Er))return;let _0x843641=this[_0x28ef02(0x288)]['getShapeModel'](_0x22cdcd[_0x28ef02(0x21f)],_0x22cdcd[_0x28ef02(0x1c5)],_0x22cdcd[_0x28ef02(0x19c)]);_0x3c2fe3(this[_0x28ef02(0x288)][_0x28ef02(0x382)](_0x22cdcd[_0x28ef02(0x21f)],_0x22cdcd[_0x28ef02(0x1c5)],_0x22cdcd[_0x28ef02(0x19c)]))||_0x843641!=null&&_0x843641[_0x28ef02(0x2b7)]()[_0x28ef02(0x141)]||_0x542877[_0x28ef02(0x170)]('text',{'hostType':_0x37e7a9['UNIVER_SHEET'],'unitId':_0x22cdcd[_0x28ef02(0x21f)],'subUnitId':_0x22cdcd[_0x28ef02(0x1c5)],'shapeId':_0x22cdcd[_0x28ef02(0x19c)]});}));}};const Zi={...Ii};let Qi=class extends _0x2c7179{constructor(_0x5a4fa8,_0x4b6148,_0x45e743,_0x2a3b7e,_0x2f78ec,_0x3539ff,_0x29c894,_0x230357){const _0x57abb9=_0x244912;super(),this[_0x57abb9(0x3f7)]=_0x5a4fa8,this['_sheetsShapeService']=_0x4b6148,this['_commandService']=_0x45e743,this[_0x57abb9(0x239)]=_0x2a3b7e,this[_0x57abb9(0x19d)]=_0x2f78ec,this[_0x57abb9(0x210)]=_0x3539ff,this['_renderManagerService']=_0x29c894,this[_0x57abb9(0x29f)]=_0x230357,q(this,_0x57abb9(0x28e),null),this[_0x57abb9(0x3f7)][_0x57abb9(0x390)](Zi),this[_0x57abb9(0x1d2)](),this[_0x57abb9(0x14a)](this[_0x57abb9(0x29f)][_0x57abb9(0x256)]['subscribe'](_0x5ef871=>{_0x5ef871&&this['_clearFocusedShape']();}));}[_0x244912(0x1e5)](){const _0x5eb5ad=_0x244912;this[_0x5eb5ad(0x28e)]||=this[_0x5eb5ad(0x14a)](_0x50a450(this[_0x5eb5ad(0x2f0)],_0x37e7a9[_0x5eb5ad(0x2c9)],_0x5f19b3=>this['_popupMenuListener'](_0x5f19b3)));}[_0x244912(0x1d2)](){const _0x30374e=_0x244912;this[_0x30374e(0x19d)][_0x30374e(0x149)](_0x54d53a['DRAWING_SHAPE'],(_0x412f7d,_0x2a260d,_0x4d8b77,_0x410342)=>{const _0x534c3e=_0x30374e;let _0x3a7971=this[_0x534c3e(0x288)][_0x534c3e(0x3e4)](_0x412f7d,_0x2a260d,_0x4d8b77),_0x2b9b5f=this[_0x534c3e(0x288)][_0x534c3e(0x1fa)](_0x412f7d,_0x2a260d,_0x4d8b77),_0x2cb279=_0x3a7971!==void 0x0&&!_0x3c2fe3(_0x3a7971)&&!(_0x2b9b5f!=null&&_0x2b9b5f['formulaBinding']);return[{'label':_0x534c3e(0x35d),'index':0x0,'commandId':Bi['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'mode':_0x534c3e(0x316)},'disable':!0x1},..._0x2cb279?[{'label':_0x534c3e(0x291),'index':0x1,'commandId':Bi['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'mode':'text'},'disable':!0x1}]:[],{'label':_0x534c3e(0x31a),'index':0x2,'commandId':_0x4d296c['id'],'commandParams':{'unitId':_0x412f7d,'drawings':[{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'drawingType':_0x410342}]},'disable':!0x1},{'label':_0x534c3e(0x2ff),'index':0x3,'commandId':_0x3cca56['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'shapeId':_0x4d8b77,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x3cca56['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'shapeId':_0x4d8b77,'flipV':!0x0},'disable':!0x1}];},_0x30374e(0x20c));}[_0x244912(0x1c1)](_0x1ec957){const _0x45de13=_0x244912;let _0x321eda=new _0x4cf05e(),_0x531dfe=null,_0x584d80=()=>{const _0x1de4be=_0x4e9b;if(!_0x531dfe)return;let _0x550715=this[_0x1de4be(0x239)][_0x1de4be(0x2a0)](),_0x52f52d=_0x550715[_0x1de4be(0x1ae)]===0x0||_0x550715[_0x1de4be(0x1ae)]===0x1&&_0x550715[_0x1de4be(0x22e)](_0x1824f1=>_0x1824f1[_0x1de4be(0x21f)]===(_0x531dfe==null?void 0x0:_0x531dfe['unitId'])&&_0x1824f1['subUnitId']===(_0x531dfe==null?void 0x0:_0x531dfe['subUnitId'])&&_0x1824f1[_0x1de4be(0x237)]===(_0x531dfe==null?void 0x0:_0x531dfe['drawingId']));_0x531dfe=null,_0x52f52d&&(this['_contextService']['setContextValue'](_0x15a415,!0x1),this[_0x1de4be(0x239)][_0x1de4be(0x1f3)](null));};return _0x321eda[_0x45de13(0x1a3)](_0x1ec957['createControl$'][_0x45de13(0x305)](()=>{const _0x445d23=_0x45de13;let _0x1e1bc0=_0x1ec957[_0x445d23(0x2ba)]();if(_0x1e1bc0[_0x445d23(0x17a)]>0x1){_0x584d80();return;}let _0x2e9e4b=_0x1e1bc0[_0x445d23(0x196)]()[_0x445d23(0x3ac)]()[_0x445d23(0x3de)];if(!_0x2e9e4b){_0x584d80();return;}let _0x964512=this[_0x445d23(0x239)][_0x445d23(0x28a)](_0x2e9e4b[_0x445d23(0x206)]);if(!_0x964512||_0x964512[_0x445d23(0x185)]!==_0x54d53a[_0x445d23(0x1b1)]){_0x584d80();return;}let {unitId:_0x335da1,subUnitId:_0x543b43,drawingId:_0x4bdc69}=_0x964512;_0x531dfe={'unitId':_0x335da1,'subUnitId':_0x543b43,'drawingId':_0x4bdc69},this[_0x445d23(0x210)][_0x445d23(0x234)](_0x15a415,!0x0),this['_drawingManagerService']['getFocusDrawings']()[_0x445d23(0x2f4)](_0xfbd86b=>_0xfbd86b[_0x445d23(0x21f)]===_0x335da1&&_0xfbd86b[_0x445d23(0x1c5)]===_0x543b43&&_0xfbd86b[_0x445d23(0x237)]===_0x4bdc69)||this[_0x445d23(0x239)][_0x445d23(0x1f3)]([{'unitId':_0x335da1,'subUnitId':_0x543b43,'drawingId':_0x4bdc69}]);})),_0x321eda[_0x45de13(0x1a3)](_0x1ec957[_0x45de13(0x26f)]['subscribe'](()=>{_0x584d80();})),_0x21ce23(()=>{_0x321eda['dispose'](),_0x584d80();});}[_0x244912(0x3e7)](){const _0x5b3638=_0x244912;this[_0x5b3638(0x210)]['setContextValue'](_0x15a415,!0x1),this[_0x5b3638(0x239)][_0x5b3638(0x1f3)](null);}};Qi=Y([J(0x0,_0x2ed3c1),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x4aa13b),J(0x3,_0x1f50fa),J(0x4,_0x318433(_0xf74177)),J(0x5,_0x21e25a),J(0x6,_0xc8f10c),J(0x7,_0x318433($))],Qi);function $i(_0x373b12,_0x4f2fbc,_0x42f951,_0x2f1325){const _0x55bcb5=_0x244912;let _0xb3c3c0=_0x48a662(_0x373b12,_0x4f2fbc,_0x42f951),_0x30228a=[];for(let _0x836a18 of _0x4f2fbc){let _0x2c0829=_0xb3c3c0[_0x55bcb5(0x14c)][_0x55bcb5(0x1e0)](_0x836a18['drawingId']),_0x59916d=_0x2f1325(_0x836a18);_0x2c0829&&_0x59916d&&_0x30228a['push']({'targetShapeId':_0x2c0829,'source':_0x59916d});}return _0x30228a;}let ea=class extends _0x2c7179{constructor(_0x374a61,_0x107711,_0x11f91c,_0x1402f4){const _0x4daddf=_0x244912;super(),this['_univerInstanceService']=_0x374a61,this['_sheetInterceptorService']=_0x107711,this[_0x4daddf(0x21b)]=_0x11f91c,this[_0x4daddf(0x288)]=_0x1402f4,this[_0x4daddf(0x1d4)]();}[_0x244912(0x1d4)](){const _0x2f80a5=_0x244912;this[_0x2f80a5(0x14a)](this[_0x2f80a5(0x179)]['interceptCommand']({'getMutations':_0x4375a1=>{const _0x1104c2=_0x2f80a5;if(_0x4375a1['id']===_0x56b5fe['id']){let _0x3323e3=_0x4b1c62(this['_univerInstanceService'],_0x4375a1['params']);if(!_0x3323e3)return{'redos':[],'undos':[]};let {unitId:_0x2bae71,subUnitId:_0x13a759}=_0x3323e3,_0xf7f2aa=this[_0x1104c2(0x21b)][_0x1104c2(0x1c8)](_0x2bae71,_0x13a759),_0x520e60=Object['values'](_0xf7f2aa)[_0x1104c2(0x150)](_0x143646=>_0x143646[_0x1104c2(0x185)]===_0x54d53a[_0x1104c2(0x1b1)]);if(_0x520e60[_0x1104c2(0x1ae)]===0x0)return{'redos':[],'undos':[]};let _0x33b072=[],_0x205952=[];for(let _0x1b0a2d=0x0;_0x1b0a2d<_0x520e60[_0x1104c2(0x1ae)];_0x1b0a2d++){let _0x51cd55=_0x520e60[_0x1b0a2d],_0x187084=this['_sheetsShapeService'][_0x1104c2(0x35b)](_0x51cd55[_0x1104c2(0x21f)],_0x51cd55[_0x1104c2(0x1c5)],_0x51cd55[_0x1104c2(0x237)]);_0x187084&&(_0x33b072[_0x1104c2(0x399)]({'id':_0xd0fb5f['id'],'params':{'unitId':_0x2bae71,'subUnitId':_0x13a759,'shapeId':_0x51cd55[_0x1104c2(0x237)]}}),_0x205952[_0x1104c2(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x2bae71,'subUnitId':_0x13a759,'shapeId':_0x51cd55[_0x1104c2(0x237)],'shapeType':_0x187084[_0x1104c2(0x382)](),'shapeData':JSON[_0x1104c2(0x3be)](JSON['stringify'](_0x187084[_0x1104c2(0x2b7)]()))}}));}return{'redos':_0x33b072,'undos':_0x205952};}if(_0x4375a1['id']===_0x2b67e1['id']){let {unitId:_0x4238f8,subUnitId:_0x2b8083,targetSubUnitId:_0x1b667b,copyContext:_0x364b4a}=_0x4375a1[_0x1104c2(0x348)];if(!_0x4238f8||!_0x2b8083||!_0x1b667b)return{'redos':[],'undos':[]};let _0x194555=this[_0x1104c2(0x21b)][_0x1104c2(0x1c8)](_0x4238f8,_0x2b8083),_0x41f920=Object['values'](_0x194555)[_0x1104c2(0x150)](_0x4d9791=>_0x4d9791['drawingType']===_0x54d53a[_0x1104c2(0x1b1)]);if(_0x41f920['length']===0x0)return{'redos':[],'undos':[]};let _0x1afe92=$i(_0x364b4a,_0x41f920,{'unitId':_0x4238f8,'sourceSubUnitId':_0x2b8083,'targetSubUnitId':_0x1b667b},_0x1635ed=>{const _0x5a4279=_0x1104c2;let _0x3b5daf=this[_0x5a4279(0x288)][_0x5a4279(0x35b)](_0x1635ed[_0x5a4279(0x21f)],_0x1635ed['subUnitId'],_0x1635ed['drawingId']);if(_0x3b5daf)return{'shapeType':_0x3b5daf[_0x5a4279(0x382)](),'shapeData':JSON[_0x5a4279(0x3be)](JSON[_0x5a4279(0x3c6)](_0x3b5daf[_0x5a4279(0x2b7)]()))};}),_0x546656=[],_0x4e59d0=[];for(let {targetShapeId:_0x597f45,source:_0x16daec}of _0x1afe92)_0x546656[_0x1104c2(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x4238f8,'subUnitId':_0x1b667b,'shapeId':_0x597f45,'shapeType':_0x16daec[_0x1104c2(0x1b9)],'shapeData':_0x16daec[_0x1104c2(0x17d)]}}),_0x4e59d0[_0x1104c2(0x399)]({'id':_0xd0fb5f['id'],'params':{'unitId':_0x4238f8,'subUnitId':_0x1b667b,'shapeId':_0x597f45}});return{'redos':_0x546656,'undos':_0x4e59d0};}return{'redos':[],'undos':[]};}}));}};ea=Y([J(0x0,_0x318433(_0x595744)),J(0x1,_0x318433(_0x5dcb53)),J(0x2,_0x318433(_0x35f22e)),J(0x3,_0x318433(_0x5594a6))],ea);let ta=class extends _0x2c7179{constructor(_0x243040,_0x4b69b5,_0x1ff86b,_0x57c88f,_0x55204f,_0x116ebc){const _0x28522f=_0x244912;super(),this[_0x28522f(0x2d0)]=_0x243040,this[_0x28522f(0x2f0)]=_0x4b69b5,this[_0x28522f(0x239)]=_0x1ff86b,this['_currentUniverService']=_0x57c88f,this[_0x28522f(0x33f)]=_0x55204f,this['_sheetDrawingShapeRenderController']=_0x116ebc,q(this,_0x28522f(0x3d3),new Set()),this['_initialize']();}['_initialize'](){const _0x149dd4=_0x244912;this[_0x149dd4(0x201)](),this[_0x149dd4(0x349)](),this[_0x149dd4(0x37a)]();}['_drawingAddListener'](){const _0x40a11c=_0x244912;this[_0x40a11c(0x14a)](this[_0x40a11c(0x239)][_0x40a11c(0x32e)]['subscribe'](_0x2b46d0=>{this['_insertShapes'](_0x2b46d0);}));}[_0x244912(0x349)](){const _0x19485b=_0x244912;this['disposeWithMe'](this[_0x19485b(0x2d0)][_0x19485b(0x356)]((_0x148af8,_0x37d574)=>{const _0x311d54=_0x19485b;if(_0x148af8['id']===_0x4fa39c['id']){let {unitId:_0x5365f1,subUnitId:_0x5efea4,shapeId:_0x54030b}=_0x148af8['params'],_0x207356=this[_0x311d54(0x200)](_0x5365f1),_0x4d9af2=_0x5cc8a7({'unitId':_0x5365f1,'subUnitId':_0x5efea4,'drawingId':_0x54030b}),_0x3a7ce7=_0x207356==null?void 0x0:_0x207356[_0x311d54(0x229)][_0x311d54(0x251)](_0x4d9af2);_0x3a7ce7&&(this[_0x311d54(0x244)][_0x311d54(0x190)](_0x3a7ce7),this[_0x311d54(0x244)][_0x311d54(0x1bb)](_0x3a7ce7,{'unitId':_0x5365f1,'subUnitId':_0x5efea4,'shapeId':_0x54030b}),_0x3a7ce7[_0x311d54(0x23a)](!0x0));return;}if(_0x148af8['id']===_0x220ec8['id']){var _0x527f2a;let {unitId:_0xc40f45,subUnitId:_0x1e9ba7,shapeId:_0x434c85}=_0x148af8[_0x311d54(0x348)],_0x5abc48=this[_0x311d54(0x200)](_0xc40f45);if(_0x5abc48==null)return;let {scene:_0x48ca2b}=_0x5abc48,_0x3399f8=_0x5cc8a7({'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}),_0x31e740=_0x48ca2b[_0x311d54(0x251)](_0x3399f8);if(!((_0x527f2a=this[_0x311d54(0x2f0)][_0x311d54(0x276)](_0xc40f45))!=null&&_0x527f2a[_0x311d54(0x27b)](_0x307dc0)['getSkeleton'](_0x1e9ba7)))return!0x1;if(_0x31e740)return;if(_0x37d574!=null&&_0x37d574[_0x311d54(0x30b)]){queueMicrotask(()=>{const _0x1bd3a7=_0x311d54;this['_disposed']||this[_0x1bd3a7(0x373)]([{'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}]);});return;}this[_0x311d54(0x373)]([{'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}]);}}));}[_0x244912(0x37a)](){const _0x21e7eb=_0x244912;this[_0x21e7eb(0x14a)](this[_0x21e7eb(0x239)][_0x21e7eb(0x1cd)][_0x21e7eb(0x305)](_0x39a966=>{const _0x21d94a=_0x21e7eb;_0x39a966[_0x21d94a(0x2b3)](_0x39bb0a=>{const _0x2def31=_0x21d94a;let {unitId:_0x322577,subUnitId:_0x322a47,drawingId:_0x218950}=_0x39bb0a,_0x2c1b24=this['_drawingManagerService']['getDrawingByParam'](_0x39bb0a);if(_0x2c1b24==null)return;let {transform:_0xebbf5d,drawingType:_0x432e34,srcRect:_0x49fb21,prstGeom:_0x2a568c}=_0x2c1b24;if(_0x432e34!==_0x54d53a[_0x2def31(0x1b1)])return;let _0x3030fb=this[_0x2def31(0x200)](_0x322577);if(_0x3030fb==null)return;let {scene:_0x952cbd,transformer:_0x5e07a8}=_0x3030fb;if(_0xebbf5d==null)return!0x0;let _0x425d0e=_0x5cc8a7({'unitId':_0x322577,'subUnitId':_0x322a47,'drawingId':_0x218950}),_0x532ea4=_0x952cbd[_0x2def31(0x251)](_0x425d0e);if(_0x532ea4==null)return!0x0;_0x532ea4['setSrcRect'](_0x49fb21),_0x532ea4[_0x2def31(0x37b)](_0x2a568c);});}));}['_insertShapes'](_0x45c5d5){const _0x410fd6=_0x244912;for(let _0x45b0b2 of _0x45c5d5){var _0x40056b;let {unitId:_0x1a3a14,subUnitId:_0x5773dd,drawingId:_0x88eec2}=_0x45b0b2,_0x4ed283=this[_0x410fd6(0x200)](_0x1a3a14),_0x2a76dc=(_0x40056b=_0x23371e(this['_currentUniverService'],_0x1a3a14))==null?void 0x0:_0x40056b['subUnitId'];if(_0x4ed283==null||_0x2a76dc!==_0x5773dd)return;let _0x38163e=_0x5cc8a7({'unitId':_0x1a3a14,'subUnitId':_0x5773dd,'drawingId':_0x88eec2});if(this['_insertingShapeKeys'][_0x410fd6(0x33a)](_0x38163e)||_0x4ed283[_0x410fd6(0x229)][_0x410fd6(0x251)](_0x38163e)!=null)return;let _0x104aa2=this[_0x410fd6(0x239)]['getDrawingByParam'](_0x45b0b2);if(_0x104aa2==null||_0x104aa2[_0x410fd6(0x185)]!==_0x54d53a[_0x410fd6(0x1b1)])return;let _0x512bb7=_0x104aa2[_0x410fd6(0x36e)]||{};if(_0x3c2fe3(_0x512bb7[_0x410fd6(0x1b9)])){let _0x5c213f=_0x104aa2[_0x410fd6(0x1b7)];_0x5c213f&&(_0x104aa2[_0x410fd6(0x1b7)]={..._0x5c213f,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x410fd6(0x1a3)](_0x38163e);try{this[_0x410fd6(0x244)][_0x410fd6(0x1da)](_0x104aa2,_0x4ed283[_0x410fd6(0x229)]);}finally{this['_insertingShapeKeys']['delete'](_0x38163e);}queueMicrotask(()=>{const _0x42a40f=_0x410fd6;if(this[_0x42a40f(0x32f)])return;let _0x1676c2=_0x5cc8a7(_0x45b0b2);if(!_0x4ed283[_0x42a40f(0x229)]['getObjectIncludeInGroup'](_0x1676c2))return;let _0x14bfeb=this['_drawingManagerService'][_0x42a40f(0x3a5)](_0x45b0b2);_0x14bfeb&&this[_0x42a40f(0x239)][_0x42a40f(0x2af)]([_0x14bfeb]);});}}[_0x244912(0x200)](_0x3ba5da){const _0x2ce5fd=_0x244912;if(_0x3ba5da==null)return;let _0x97c32c=this[_0x2ce5fd(0x2f0)][_0x2ce5fd(0x276)](_0x3ba5da),_0x43e995=_0x97c32c==null?void 0x0:_0x97c32c[_0x2ce5fd(0x229)];return _0x43e995==null?null:{'scene':_0x43e995,'transformer':_0x43e995['getTransformerByCreate']()};}};ta=Y([J(0x0,_0x4aa13b),J(0x1,_0xc8f10c),J(0x2,_0x1f50fa),J(0x3,_0x595744),J(0x4,_0x318433(_0x2346f6)),J(0x5,_0x318433(X))],ta);const na={'normal':{'fill':_0x59f579[_0x244912(0x292)],'stroke':_0x59f579['cxnPointStroke'],'strokeWidth':_0x59f579[_0x244912(0x3ba)]},'highlighted':{'fill':_0x244912(0x2f7),'stroke':'#1a73e8','strokeWidth':0x2}};var ra=class extends _0x4546bd{constructor(_0xcf14b4,_0x4ce6d8){const _0x3e2d13=_0x244912;super(_0xcf14b4,_0x4ce6d8),q(this,_0x3e2d13(0x25b),''),q(this,_0x3e2d13(0x1dc),-0x1),q(this,_0x3e2d13(0x20a),''),q(this,'_subUnitId',''),q(this,'_isHighlighted',!0x1),_0x4ce6d8&&this[_0x3e2d13(0x2d4)](_0x4ce6d8);}[_0x244912(0x144)](){const _0x154982=_0x244912;return{'unitId':this[_0x154982(0x20a)],'subUnitId':this[_0x154982(0x1e9)],'shapeId':this[_0x154982(0x25b)],'cxnIndex':this[_0x154982(0x1dc)]};}[_0x244912(0x20f)](_0x52fefe){const _0x59d8df=_0x244912;this[_0x59d8df(0x270)]!==_0x52fefe&&(this[_0x59d8df(0x270)]=_0x52fefe,this[_0x59d8df(0x23a)](!0x0));}[_0x244912(0x3e1)](){const _0x2b11fc=_0x244912;return this[_0x2b11fc(0x270)];}[_0x244912(0x2d4)](_0x204417){const _0x3c5eec=_0x244912;_0x204417[_0x3c5eec(0x261)]!==void 0x0&&(this['_targetShapeId']=_0x204417[_0x3c5eec(0x261)]),_0x204417['cxnIndex']!==void 0x0&&(this[_0x3c5eec(0x1dc)]=_0x204417['cxnIndex']),_0x204417['unitId']!==void 0x0&&(this[_0x3c5eec(0x20a)]=_0x204417[_0x3c5eec(0x21f)]),_0x204417['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x204417[_0x3c5eec(0x1c5)]),_0x204417[_0x3c5eec(0x3e1)]!==void 0x0&&(this['_isHighlighted']=_0x204417[_0x3c5eec(0x3e1)]),this['transformByState']({'width':_0x204417[_0x3c5eec(0x326)]??_0x59f579[_0x3c5eec(0x15b)]*0x2,'height':_0x204417[_0x3c5eec(0x1ba)]??_0x59f579[_0x3c5eec(0x15b)]*0x2});}[_0x244912(0x16b)](_0xd8c0d6){const _0x33ef29=_0x244912;let _0x1a30bc=this[_0x33ef29(0x270)]?na[_0x33ef29(0x2b4)]:na[_0x33ef29(0x302)];_0x2e680e[_0x33ef29(0x31e)](_0xd8c0d6,{'radius':_0x59f579[_0x33ef29(0x15b)],'fill':_0x1a30bc['fill'],'stroke':_0x1a30bc[_0x33ef29(0x3cb)],'strokeWidth':_0x1a30bc['strokeWidth'],'evented':!0x0});}};let ia=class extends _0x2c7179{constructor(_0x426e88,_0x52cad0,_0x35ccba,_0x5d6247){const _0x179e66=_0x244912;super(),this[_0x179e66(0x15d)]=_0x426e88,this[_0x179e66(0x2f0)]=_0x52cad0,this[_0x179e66(0x239)]=_0x35ccba,this['_sheetsShapeService']=_0x5d6247,q(this,_0x179e66(0x1f8),[]),q(this,_0x179e66(0x2b1),null),q(this,_0x179e66(0x241),-0x1),q(this,'_currentScene',null),q(this,'_unitId',''),q(this,_0x179e66(0x1e9),''),q(this,_0x179e66(0x26e),null);}['startConnectionDetection'](_0x2e5aec,_0x13fc6e,_0x6da088,_0x54259a){const _0x43928a=_0x244912;this[_0x43928a(0x2e9)]=_0x2e5aec,this['_unitId']=_0x13fc6e,this[_0x43928a(0x1e9)]=_0x6da088,this[_0x43928a(0x26e)]=_0x54259a;}[_0x244912(0x336)](_0x167675){const _0x10f8a9=_0x244912;if(!this[_0x10f8a9(0x2e9)])return null;let _0x4244d1=this[_0x10f8a9(0x245)](_0x167675);return _0x4244d1?(this[_0x10f8a9(0x2b1)]!==_0x4244d1[_0x10f8a9(0x19c)]&&(this[_0x10f8a9(0x180)](),this[_0x10f8a9(0x1f5)](_0x4244d1['shapeId'],_0x4244d1[_0x10f8a9(0x395)]),this[_0x10f8a9(0x2b1)]=_0x4244d1[_0x10f8a9(0x19c)]),this[_0x10f8a9(0x268)](_0x167675)):(this[_0x10f8a9(0x2b1)]!==null&&(this[_0x10f8a9(0x180)](),this['_activeTargetShapeId']=null),null);}[_0x244912(0x18b)](){const _0x337231=_0x244912;this['_clearConnectionSites'](),this['_currentScene']=null,this[_0x337231(0x2b1)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x337231(0x26e)]=null;}[_0x244912(0x216)](){const _0xa98235=_0x244912;return this[_0xa98235(0x2b1)]===null||this[_0xa98235(0x241)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0xa98235(0x241)]};}[_0x244912(0x245)](_0x2917cd){const _0x4a72fc=_0x244912;let _0x4d893f=this[_0x4a72fc(0x239)][_0x4a72fc(0x1c8)](this[_0x4a72fc(0x20a)],this[_0x4a72fc(0x1e9)]);for(let _0xc1dd3e of Object['keys'](_0x4d893f)){if(_0xc1dd3e===this[_0x4a72fc(0x26e)]||_0x4d893f[_0xc1dd3e][_0x4a72fc(0x185)]!==_0x54d53a['DRAWING_SHAPE'])continue;let _0x3af02b=this['_sheetsShapeService'][_0x4a72fc(0x35b)](this['_unitId'],this['_subUnitId'],_0xc1dd3e);if(!_0x3af02b||_0x3c2fe3(_0x3af02b[_0x4a72fc(0x382)]())||_0x3af02b['getConnectionSiteList']()[_0x4a72fc(0x1ae)]===0x0||!this[_0x4a72fc(0x2e9)])continue;let _0x50f949=_0x5cc8a7({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0xc1dd3e}),_0x5ba7fe=this['_currentScene'][_0x4a72fc(0x251)](_0x50f949);if(!_0x5ba7fe)continue;let {left:_0x362d99,top:_0x3d5709,width:_0x5078c5,height:_0x1cf461}=_0x5ba7fe['getRealBound'](),_0xe459d2=_0x362d99+_0x5078c5/0x2,_0xa3d554=_0x3d5709+_0x1cf461/0x2,_0x59dd03=_0x5ba7fe[_0x4a72fc(0x1b7)][_0x4a72fc(0x1ef)](),_0x4a7747=new _0x16a726([_0x59dd03[0x0],_0x59dd03[0x1],_0x59dd03[0x2],_0x59dd03[0x3],_0xe459d2,_0xa3d554]),_0x2a59fc=_0x5ba7fe['getParent'](),_0x5356de=(_0x5ba7fe[_0x4a72fc(0x27d)]&&(_0x2a59fc==null?void 0x0:_0x2a59fc[_0x4a72fc(0x274)])===_0x511859['GROUP']?_0x2a59fc[_0x4a72fc(0x162)]['multiply'](_0x4a7747):_0x4a7747)[_0x4a72fc(0x2ca)]()[_0x4a72fc(0x34b)](_0x2917cd),_0x1ca6a6=_0x5078c5/0x2,_0x5aa783=_0x1cf461/0x2;if(_0x5356de['x']>=-_0x1ca6a6-0x5&&_0x5356de['x']<=_0x1ca6a6+0x5&&_0x5356de['y']>=-_0x5aa783-0x5&&_0x5356de['y']<=_0x5aa783+0x5)return{'shapeId':_0xc1dd3e,'shapeModel':_0x3af02b};}return null;}['_showConnectionSites'](_0x223667,_0x1c51db){const _0x564cf1=_0x244912;if(!this[_0x564cf1(0x2e9)])return;let _0x82e591=_0x5cc8a7({'unitId':this[_0x564cf1(0x20a)],'subUnitId':this[_0x564cf1(0x1e9)],'drawingId':_0x223667}),_0x5e285c=this[_0x564cf1(0x2e9)]['getObjectIncludeInGroup'](_0x82e591);if(!_0x5e285c)return;let {left:_0x365866,top:_0x4b9e85,width:_0x188a0b,height:_0x3ccbd0}=_0x5e285c[_0x564cf1(0x38b)](),_0x256c29=_0x365866+_0x188a0b/0x2,_0x2445fe=_0x4b9e85+_0x3ccbd0/0x2,_0x46cbc4=_0x5e285c[_0x564cf1(0x1b7)][_0x564cf1(0x1ef)](),_0x8046e=new _0x16a726([_0x46cbc4[0x0],_0x46cbc4[0x1],_0x46cbc4[0x2],_0x46cbc4[0x3],_0x256c29,_0x2445fe]),_0x330b8a=_0x5e285c['getParent'](),_0x2f8a67=_0x5e285c[_0x564cf1(0x27d)]&&(_0x330b8a==null?void 0x0:_0x330b8a[_0x564cf1(0x274)])===_0x511859[_0x564cf1(0x258)]?_0x330b8a[_0x564cf1(0x162)]['multiply'](_0x8046e):_0x8046e;_0x1c51db['updateContext']({'width':_0x188a0b,'height':_0x3ccbd0});let _0x13897e=_0x1c51db[_0x564cf1(0x23d)]();for(let _0x34bb4f of _0x13897e){let _0x5d9481=_0x34bb4f['x']-_0x188a0b/0x2,_0x4fcfab=_0x34bb4f['y']-_0x3ccbd0/0x2,_0x1a8f0a=_0x2f8a67[_0x564cf1(0x34b)]({'x':_0x5d9481,'y':_0x4fcfab}),_0x349e3f=_0x1a8f0a['x'],_0x12346b=_0x1a8f0a['y'],_0x4622e0=new ra(_0x564cf1(0x1b3)+_0x223667+'-'+_0x34bb4f['index'],{'left':_0x349e3f-_0x59f579[_0x564cf1(0x15b)],'top':_0x12346b-_0x59f579[_0x564cf1(0x15b)],'targetShapeId':_0x223667,'cxnIndex':_0x34bb4f[_0x564cf1(0x2de)],'unitId':this[_0x564cf1(0x20a)],'subUnitId':this[_0x564cf1(0x1e9)],'width':_0x59f579[_0x564cf1(0x15b)]*0x2,'height':_0x59f579[_0x564cf1(0x15b)]*0x2,'zIndex':_0x352374+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x564cf1(0x399)](_0x4622e0),this['_currentScene']['addObject'](_0x4622e0,_0x352374+0x2);}}['_findNearestConnectionSite'](_0xe9fa29){const _0x1781e6=_0x244912;let _0x545442=null,_0xc55192=0x1/0x0,_0x3282ab=null;for(let _0x3b29dd of this[_0x1781e6(0x1f8)]){let _0x4e5e5e=_0x3b29dd['left']+_0x59f579[_0x1781e6(0x15b)],_0x4e2bce=_0x3b29dd[_0x1781e6(0x172)]+_0x59f579[_0x1781e6(0x15b)],_0x31ad6e=_0xe9fa29['x']-_0x4e5e5e,_0x5fe281=_0xe9fa29['y']-_0x4e2bce,_0x26166f=Math[_0x1781e6(0x31f)](_0x31ad6e*_0x31ad6e+_0x5fe281*_0x5fe281);_0x26166f<_0xc55192&&(_0xc55192=_0x26166f,_0x545442=_0x3b29dd,_0x3282ab={'x':_0x4e5e5e,'y':_0x4e2bce});}let _0x51d462=_0xc55192<=0xa&&_0x545442?_0x545442[_0x1781e6(0x144)]()[_0x1781e6(0x286)]:-0x1;if(_0x51d462!==this['_highlightedSiteIndex']){for(let _0x5970b4 of this['_connectionSiteObjects']){let _0x23a988=_0x5970b4[_0x1781e6(0x144)]();_0x5970b4['setHighlighted'](_0x23a988[_0x1781e6(0x286)]===_0x51d462);}this[_0x1781e6(0x241)]=_0x51d462;}if(_0xc55192<=0xa&&_0x545442&&_0x3282ab){let _0x1b2081=_0x545442['getConnectionInfo'](),_0x66e80e=this['_getConnectionSiteAngle'](_0x1b2081[_0x1781e6(0x19c)],_0x1b2081[_0x1781e6(0x286)]);return{'shapeId':_0x1b2081[_0x1781e6(0x19c)],'cxnIndex':_0x1b2081[_0x1781e6(0x286)],'unitId':_0x1b2081['unitId'],'subUnitId':_0x1b2081[_0x1781e6(0x1c5)],'worldPoint':_0x3282ab,'angle':_0x66e80e};}return null;}[_0x244912(0x25f)](_0x4ece78,_0x592844){const _0x1df286=_0x244912;let _0x4c01c3=this['_sheetsShapeService'][_0x1df286(0x35b)](this['_unitId'],this['_subUnitId'],_0x4ece78);if(!_0x4c01c3)return 0x0;let _0x5d3898=this[_0x1df286(0x239)]['getDrawingByParam']({'unitId':this[_0x1df286(0x20a)],'subUnitId':this[_0x1df286(0x1e9)],'drawingId':_0x4ece78});if(!(_0x5d3898!=null&&_0x5d3898['transform']))return 0x0;let {width:_0x32ff1e=0x0,height:_0x4f3401=0x0,flipX:_0xdaa813=!0x1,flipY:_0x162090=!0x1}=_0x5d3898['transform'];_0x4c01c3[_0x1df286(0x340)]({'width':_0x32ff1e,'height':_0x4f3401});let _0x3eb0d1=_0x4c01c3[_0x1df286(0x23d)]()[_0x1df286(0x2f4)](_0x20140a=>_0x20140a['index']===_0x592844);if(!_0x3eb0d1)return 0x0;let _0x3e4e54=_0x3eb0d1['ang']/0xea60;return _0xdaa813&&(_0x3e4e54=0xb4-_0x3e4e54),_0x162090&&(_0x3e4e54=-_0x3e4e54),_0x3e4e54=(_0x3e4e54%0x168+0x168)%0x168,_0x3e4e54;}[_0x244912(0x180)](){const _0x4f48a4=_0x244912;for(let _0xe800ec of this[_0x4f48a4(0x1f8)])_0xe800ec[_0x4f48a4(0x346)]();this[_0x4f48a4(0x1f8)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x244912(0x346)](){const _0x70e932=_0x244912;this[_0x70e932(0x180)](),super[_0x70e932(0x346)]();}};ia=Y([J(0x1,_0x318433(_0xc8f10c)),J(0x2,_0x318433(_0x1f50fa)),J(0x3,_0x318433(_0x5594a6))],ia);let aa=class extends _0x2c7179{constructor(_0x5027b4,_0x57a776,_0x58ddc3,_0x3c27aa,_0x348e6a){const _0x510a19=_0x244912;super(),this[_0x510a19(0x337)]=_0x5027b4,this[_0x510a19(0x327)]=_0x57a776,this[_0x510a19(0x21b)]=_0x58ddc3,this[_0x510a19(0x3c2)]=_0x3c27aa,this[_0x510a19(0x3bf)]=_0x348e6a,q(this,_0x510a19(0x1a0),void 0x0),this[_0x510a19(0x198)](),this[_0x510a19(0x262)]();}get[_0x244912(0x2f1)](){const _0x263671=_0x244912;return this[_0x263671(0x21b)][_0x263671(0x2a0)]();}[_0x244912(0x262)](){const _0x1d097b=_0x244912;this[_0x1d097b(0x3bf)]['registerFeaturePasteHook'](({fromUnitId:_0x85d4ff,fromSubUnitId:_0x5f60e4,toUnitId:_0x54ad20,toSubUnitId:_0x255058,idMap:_0x21afbb})=>{const _0x5ba2ff=_0x1d097b;let _0x2d13d9=[],_0x3013b3=[];for(let [_0x45f30f,_0x29b2f6]of _0x21afbb[_0x5ba2ff(0x324)]()){let _0x70c830=this[_0x5ba2ff(0x3c2)][_0x5ba2ff(0x35b)](_0x85d4ff,_0x5f60e4,_0x45f30f);if(!_0x70c830)continue;let _0x21553f=_0x70c830[_0x5ba2ff(0x382)](),_0x39d4af=JSON[_0x5ba2ff(0x3be)](JSON[_0x5ba2ff(0x3c6)](_0x70c830[_0x5ba2ff(0x2b7)]()));if(_0x39d4af[_0x5ba2ff(0x18e)]){var _0x13d4ee,_0x38c17c;let _0x5a8f97=(_0x13d4ee=_0x39d4af['relation'][_0x5ba2ff(0x3b9)])==null?void 0x0:_0x13d4ee[_0x5ba2ff(0x19c)],_0x2c7c67=(_0x38c17c=_0x39d4af[_0x5ba2ff(0x18e)]['to'])==null?void 0x0:_0x38c17c[_0x5ba2ff(0x19c)],_0x112017=!_0x5a8f97||_0x21afbb['has'](_0x5a8f97),_0x31b9d1=!_0x2c7c67||_0x21afbb['has'](_0x2c7c67);_0x112017&&_0x5a8f97&&_0x39d4af[_0x5ba2ff(0x18e)][_0x5ba2ff(0x3b9)]?_0x39d4af['relation'][_0x5ba2ff(0x3b9)]={..._0x39d4af[_0x5ba2ff(0x18e)][_0x5ba2ff(0x3b9)],'shapeId':_0x21afbb[_0x5ba2ff(0x1e0)](_0x5a8f97)}:_0x39d4af[_0x5ba2ff(0x18e)]['from']=void 0x0,_0x31b9d1&&_0x2c7c67&&_0x39d4af[_0x5ba2ff(0x18e)]['to']?_0x39d4af[_0x5ba2ff(0x18e)]['to']={..._0x39d4af[_0x5ba2ff(0x18e)]['to'],'shapeId':_0x21afbb[_0x5ba2ff(0x1e0)](_0x2c7c67)}:_0x39d4af['relation']['to']=void 0x0;}_0x2d13d9[_0x5ba2ff(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x54ad20,'subUnitId':_0x255058,'shapeId':_0x29b2f6,'shapeType':_0x21553f,'shapeData':_0x39d4af}}),_0x3013b3['push']({'id':_0xd0fb5f['id'],'params':{'unitId':_0x54ad20,'subUnitId':_0x255058,'shapeId':_0x29b2f6}});}return{'redos':_0x2d13d9,'undos':_0x3013b3};});}['_initCopyPaste'](){const _0x423fc1=_0x244912;this[_0x423fc1(0x14a)](this['_sheetClipboardService'][_0x423fc1(0x17c)]({'id':_0x423fc1(0x3ce),'onBeforeCopyFocusedObject':(_0x1f735a,_0x312ea0,_0x35d8df)=>{const _0x3d7ff7=_0x423fc1;this[_0x3d7ff7(0x1a0)]=null;let _0x5231f9=this[_0x3d7ff7(0x2f1)][_0x3d7ff7(0x150)](_0x447e3b=>_0x447e3b[_0x3d7ff7(0x185)]===_0x54d53a['DRAWING_SHAPE']);return _0x5231f9[_0x3d7ff7(0x1ae)]!==0x0&&(this[_0x3d7ff7(0x1a0)]={'unitId':_0x1f735a,'subUnitId':_0x312ea0,'copyType':_0x35d8df,'drawings':_0x5231f9},!0x0);},'onBeforeCopy':(_0x25e1eb,_0x4b5c4c,_0x3c8b53,_0x4876a8)=>{const _0x5c7adb=_0x423fc1;this[_0x5c7adb(0x1a0)]=null,this['_createCopyInfoByRange'](_0x25e1eb,_0x4b5c4c,_0x3c8b53,_0x4876a8);},'onPasteCells':(_0x3162be,_0x3417e4,_0x331c56,_0x156160)=>{const _0x213a94=_0x423fc1;if(!_0x156160[_0x213a94(0x18f)]||!_0x3162be||!this[_0x213a94(0x1a0)])return{'redos':[],'undos':[]};let {pasteType:_0x12df3a}=_0x156160;return _0x12df3a===_0x314886['DEFAULT_PASTE']?this[_0x213a94(0x14b)](_0x3417e4,this['_copyInfo'][_0x213a94(0x238)]===_0x40a630['CUT']):{'redos':[],'undos':[]};}}));}[_0x244912(0x2ef)](_0x17c9f1,_0xe730f3,_0xd945ef,_0x26efe5){const _0x1cea57=_0x244912;let _0xe0baa2=this[_0x1cea57(0x337)][_0x1cea57(0x163)](_0x17c9f1,_0xe730f3);if(!_0xe0baa2)return;let _0x4ffa5f=_0x20495d(_0xe0baa2,_0xd945ef);if(!_0x4ffa5f)return;let {startX:_0x35357f,endX:_0x43b588,startY:_0x3d6d84,endY:_0xf309e7}=_0x4ffa5f,_0x5be954=this[_0x1cea57(0x21b)][_0x1cea57(0x1c8)](_0x17c9f1,_0xe730f3),_0x4ede9b=[];for(let [_0x4e3971,_0x719316]of Object[_0x1cea57(0x324)](_0x5be954)){if(_0x719316[_0x1cea57(0x185)]!==_0x54d53a['DRAWING_SHAPE'])continue;let {transform:_0x37e5a8}=_0x719316;if(!_0x37e5a8)continue;let {left:_0x27eab0=0x0,top:_0xd65926=0x0,width:_0x44d6b8=0x0,height:_0x49b1cd=0x0}=_0x37e5a8;_0x35357f<=_0x27eab0&&_0x43b588>=_0x27eab0+_0x44d6b8&&_0x3d6d84<=_0xd65926&&_0xf309e7>=_0xd65926+_0x49b1cd&&_0x4ede9b[_0x1cea57(0x399)](_0x719316);}_0x4ede9b[_0x1cea57(0x1ae)]>0x0&&(this[_0x1cea57(0x1a0)]={'unitId':_0x17c9f1,'subUnitId':_0xe730f3,'copyType':_0x26efe5,'copyRange':_0xd945ef,'drawings':_0x4ede9b});}[_0x244912(0x14b)](_0x4fdf3c,_0x1b570f){const _0x561179=_0x244912;let {unitId:_0x23020b,subUnitId:_0x4b96f6,range:_0x3c14f0}=_0x4fdf3c,_0x40fd1e=this[_0x561179(0x337)]['getSkeleton'](_0x23020b,_0x4b96f6);if(!_0x40fd1e)return{'redos':[],'undos':[]};let _0x49d5f4=_0x17eb2d(_0x3c14f0),{unitId:_0x5186c6,subUnitId:_0x31f6e1,copyRange:_0x56c0e4,drawings:_0x27d8e8}=this[_0x561179(0x1a0)],_0x3006b4=this['_sheetSkeletonService'][_0x561179(0x163)](_0x5186c6,_0x31f6e1);if(!_0x3006b4)return{'redos':[],'undos':[]};let _0x3b9686;if(!_0x56c0e4){let _0x4c99ad=0x1/0x0,_0x26e332=0x1/0x0;for(let _0x47c4ce of _0x27d8e8){let {left:_0x52ae64=0x0,top:_0x11d17e=0x0}=_0x47c4ce[_0x561179(0x1b7)]??{};_0x52ae64<_0x4c99ad&&(_0x4c99ad=_0x52ae64),_0x11d17e<_0x26e332&&(_0x26e332=_0x11d17e);}_0x4c99ad!==0x1/0x0&&_0x26e332!==0x1/0x0&&(_0x3b9686={'left':_0x4c99ad,'top':_0x26e332});}let _0x438fea=new Map();if(!_0x1b570f){for(let _0x3355c6 of _0x27d8e8)_0x438fea['set'](_0x3355c6[_0x561179(0x237)],_0x524ea6());}let _0x15797c=[],_0x11a491=[];for(let _0x9604ba of _0x27d8e8){let {drawingId:_0x40b3b6,transform:_0x13c61a,sheetTransform:_0x47ede9}=_0x9604ba;if(!_0x13c61a||!_0x47ede9)continue;let _0x3bae7f=this[_0x561179(0x2f9)]({'transform':_0x13c61a,'sheetTransform':_0x47ede9},{'skeleton':_0x3006b4,'range':_0x56c0e4},{'skeleton':_0x40fd1e,'range':_0x49d5f4},_0x3b9686);if(_0x1b570f){let {redos:_0x4851b7,undos:_0x2a3808}=this[_0x561179(0x3e0)]({'fromUnitId':_0x5186c6,'fromSubUnitId':_0x31f6e1,'toUnitId':_0x23020b,'toSubUnitId':_0x4b96f6,'drawing':_0x9604ba,'newTransforms':_0x3bae7f});_0x15797c[_0x561179(0x399)](..._0x4851b7),_0x11a491[_0x561179(0x399)](..._0x2a3808);continue;}let {redos:_0x166857,undos:_0x3fa039}=this[_0x561179(0x3fd)]({'toUnitId':_0x23020b,'toSubUnitId':_0x4b96f6,'drawing':_0x9604ba,'newTransforms':_0x3bae7f,'newDrawingId':_0x438fea[_0x561179(0x1e0)](_0x40b3b6),'idMap':_0x438fea});_0x15797c[_0x561179(0x399)](..._0x166857),_0x11a491['push'](..._0x3fa039);}return{'redos':_0x15797c,'undos':_0x11a491};}[_0x244912(0x3e0)](_0x3deae8){const _0x408b7d=_0x244912;let {fromUnitId:_0x2de529,fromSubUnitId:_0x403adf,toUnitId:_0x2b650b,toSubUnitId:_0x52a7c8,drawing:_0x3b364f,newTransforms:_0x1ad2b7}=_0x3deae8,_0x14bcbc={..._0x3b364f,'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'transform':_0x1ad2b7['transform'],'sheetTransform':_0x1ad2b7[_0x408b7d(0x3a3)]};if(_0x2b650b===_0x2de529&&_0x52a7c8===_0x403adf){let {redo:_0x54ee89,undo:_0x4d2922,objects:_0x5e8630}=this['_sheetDrawingService'][_0x408b7d(0x352)]([_0x14bcbc]);return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x1db)],'op':_0x54ee89,'objects':_0x5e8630}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x1db)],'op':_0x4d2922,'objects':_0x5e8630}}]};}{let _0x4999c7=this[_0x408b7d(0x21b)][_0x408b7d(0x2e2)]([_0x3b364f]),_0x454582=this[_0x408b7d(0x21b)][_0x408b7d(0x27a)]([_0x14bcbc]),_0x2b221a=this[_0x408b7d(0x3c2)]['getShapeModel'](_0x3b364f[_0x408b7d(0x21f)],_0x3b364f[_0x408b7d(0x1c5)],_0x3b364f['drawingId']);if(!_0x2b221a)return{'redos':[],'undos':[]};let _0x3d0335=_0x2b221a[_0x408b7d(0x382)](),_0x2013b5=JSON[_0x408b7d(0x3be)](JSON[_0x408b7d(0x3c6)](_0x2b221a['getShapeData']()));return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'type':_0x3c81cc[_0x408b7d(0x2bb)],'op':_0x4999c7[_0x408b7d(0x224)],'objects':_0x4999c7[_0x408b7d(0x30d)]}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'shapeId':_0x3b364f[_0x408b7d(0x237)]}},{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x3b4)],'op':_0x454582['redo'],'objects':_0x454582[_0x408b7d(0x30d)]}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'shapeId':_0x3b364f[_0x408b7d(0x237)],'shapeType':_0x3d0335,'shapeData':_0x2013b5}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'type':_0x3c81cc[_0x408b7d(0x3b4)],'op':_0x4999c7[_0x408b7d(0x319)],'objects':_0x4999c7[_0x408b7d(0x30d)]}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'shapeId':_0x3b364f['drawingId'],'shapeType':_0x3d0335,'shapeData':_0x2013b5}},{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x2bb)],'op':_0x454582[_0x408b7d(0x319)],'objects':_0x454582[_0x408b7d(0x30d)]}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'shapeId':_0x3b364f[_0x408b7d(0x237)]}}]};}}[_0x244912(0x3fd)](_0x1c0695){const _0x3792f0=_0x244912;let {toUnitId:_0x2cfd3f,toSubUnitId:_0x431800,drawing:_0x566f75,newTransforms:_0x392c0c,newDrawingId:_0x441d7c,idMap:_0x4df9ef}=_0x1c0695,_0x1baea6={..._0x566f75,'unitId':_0x2cfd3f,'subUnitId':_0x431800,'drawingId':_0x441d7c,'transform':_0x392c0c['transform'],'sheetTransform':_0x392c0c[_0x3792f0(0x3a3)]},{redo:_0x584b7c,undo:_0x596521,objects:_0x4aa9a3}=this[_0x3792f0(0x21b)]['getBatchAddOp']([_0x1baea6]),_0x5487c5=this['_shapeService'][_0x3792f0(0x35b)](_0x566f75[_0x3792f0(0x21f)],_0x566f75[_0x3792f0(0x1c5)],_0x566f75[_0x3792f0(0x237)]);if(!_0x5487c5)return{'redos':[],'undos':[]};let _0xfbb29f=_0x5487c5['getShapeType'](),_0x4d1ebc=JSON['parse'](JSON['stringify'](_0x5487c5['getShapeData']()));if(_0x4d1ebc[_0x3792f0(0x18e)]){var _0xc96609,_0x59f340;let _0x5136e3=(_0xc96609=_0x4d1ebc[_0x3792f0(0x18e)]['from'])==null?void 0x0:_0xc96609[_0x3792f0(0x19c)],_0x1ff06b=(_0x59f340=_0x4d1ebc[_0x3792f0(0x18e)]['to'])==null?void 0x0:_0x59f340[_0x3792f0(0x19c)],_0x29207f=!_0x5136e3||_0x4df9ef[_0x3792f0(0x33a)](_0x5136e3),_0x4a7916=!_0x1ff06b||_0x4df9ef['has'](_0x1ff06b);_0x29207f&&_0x5136e3&&_0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)]?_0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)]={..._0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)],'shapeId':_0x4df9ef['get'](_0x5136e3)}:_0x4d1ebc[_0x3792f0(0x18e)]['from']=void 0x0,_0x4a7916&&_0x1ff06b&&_0x4d1ebc[_0x3792f0(0x18e)]['to']?_0x4d1ebc[_0x3792f0(0x18e)]['to']={..._0x4d1ebc[_0x3792f0(0x18e)]['to'],'shapeId':_0x4df9ef[_0x3792f0(0x1e0)](_0x1ff06b)}:_0x4d1ebc[_0x3792f0(0x18e)]['to']=void 0x0;}return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'type':_0x3c81cc[_0x3792f0(0x3b4)],'op':_0x584b7c,'objects':_0x4aa9a3}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'shapeId':_0x441d7c,'shapeType':_0xfbb29f,'shapeData':_0x4d1ebc}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'type':_0x3c81cc['REMOVE'],'op':_0x596521,'objects':_0x4aa9a3}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'shapeId':_0x441d7c}}]};}['_updateTransform'](_0x1f4ab3,_0x172952,_0x5bec8c,_0x52e177){const _0x3fbf69=_0x244912;let {range:_0x20e07e,skeleton:_0x47ee82}=_0x172952,{range:_0x2b558e,skeleton:_0x418006}=_0x5bec8c,{transform:_0x17890a,sheetTransform:_0x44cb2c}=_0x1f4ab3,_0x4069bc={..._0x17890a};if(_0x20e07e){let _0x43ea9c=_0x20495d(_0x47ee82,_0x20e07e),_0x2128ed=_0x20495d(_0x418006,_0x2b558e);if(_0x43ea9c&&_0x2128ed){let _0x733ff1=_0x2128ed['startX']-_0x43ea9c['startX'],_0x593ad9=_0x2128ed[_0x3fbf69(0x1e2)]-_0x43ea9c[_0x3fbf69(0x1e2)];_0x4069bc[_0x3fbf69(0x1fe)]=(_0x4069bc[_0x3fbf69(0x1fe)]??0x0)+_0x733ff1,_0x4069bc[_0x3fbf69(0x172)]=(_0x4069bc['top']??0x0)+_0x593ad9;}}else{let _0x46e78e=_0x20495d(_0x418006,_0x2b558e);if(_0x52e177&&_0x46e78e){let _0x62b0a8=(_0x4069bc[_0x3fbf69(0x1fe)]??0x0)-_0x52e177[_0x3fbf69(0x1fe)],_0x48167e=(_0x4069bc[_0x3fbf69(0x172)]??0x0)-_0x52e177[_0x3fbf69(0x172)];_0x4069bc[_0x3fbf69(0x1fe)]=_0x46e78e['startX']+_0x62b0a8,_0x4069bc[_0x3fbf69(0x172)]=_0x46e78e[_0x3fbf69(0x1e2)]+_0x48167e;}else _0x4069bc[_0x3fbf69(0x1fe)]=_0x46e78e==null?void 0x0:_0x46e78e[_0x3fbf69(0x20e)],_0x4069bc['top']=_0x46e78e==null?void 0x0:_0x46e78e[_0x3fbf69(0x1e2)];}return{'transform':_0x4069bc,'sheetTransform':_0x3dccba(_0x4069bc,_0x418006)??_0x44cb2c};}};aa=Y([J(0x0,_0x318433(_0x29e188)),J(0x1,_0x318433(_0x2730e)),J(0x2,_0x318433(_0x35f22e)),J(0x3,_0x318433(_0x5594a6)),J(0x4,_0x318433(_0x38ae18))],aa);var oa=class extends _0x4546bd{constructor(_0x34914a,_0x5579c2){const _0x50abe9=_0x244912;super(_0x34914a,_0x5579c2),q(this,'_shapeId',null),q(this,_0x50abe9(0x231),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,_0x50abe9(0x392),!0x1),_0x5579c2&&this[_0x50abe9(0x2d4)](_0x5579c2);}['getDrawingSearch'](){const _0x338734=_0x244912;return{'unitId':this[_0x338734(0x20a)],'subUnitId':this[_0x338734(0x1e9)],'drawingId':this[_0x338734(0x2cd)]};}[_0x244912(0x2d4)](_0x4e699a){const _0x3eb779=_0x244912;_0x4e699a[_0x3eb779(0x19c)]!==void 0x0&&(this[_0x3eb779(0x2cd)]=_0x4e699a[_0x3eb779(0x19c)]),_0x4e699a[_0x3eb779(0x21f)]!==void 0x0&&(this['_unitId']=_0x4e699a[_0x3eb779(0x21f)]),_0x4e699a[_0x3eb779(0x1c5)]!==void 0x0&&(this[_0x3eb779(0x1e9)]=_0x4e699a['subUnitId']),_0x4e699a[_0x3eb779(0x3b0)]!==void 0x0&&(this[_0x3eb779(0x392)]=_0x4e699a[_0x3eb779(0x3b0)]),this[_0x3eb779(0x1d8)]({'width':_0x4e699a[_0x3eb779(0x326)],'height':_0x4e699a[_0x3eb779(0x1ba)]});}[_0x244912(0x16b)](_0x244961){const _0x4a96c6=_0x244912;_0x2e680e[_0x4a96c6(0x31e)](_0x244961,{'radius':_0x59f579[_0x4a96c6(0x15b)],'fill':_0x59f579[_0x4a96c6(0x292)],'stroke':_0x59f579['cxnPointStroke'],'strokeWidth':_0x59f579[_0x4a96c6(0x3ba)],'evented':!0x0});}};let sa=class extends _0x2c7179{constructor(_0x231d9c,_0x3c742e,_0x4421d5,_0x3c9af3,_0x1c38c7,_0x1307f5,_0x8c2342,_0x3549d2){const _0x3ed2c3=_0x244912;super(),this[_0x3ed2c3(0x15d)]=_0x231d9c,this['_commandService']=_0x3c742e,this[_0x3ed2c3(0x2f0)]=_0x4421d5,this[_0x3ed2c3(0x239)]=_0x3c9af3,this[_0x3ed2c3(0x321)]=_0x1c38c7,this[_0x3ed2c3(0x288)]=_0x1307f5,this[_0x3ed2c3(0x3fa)]=_0x8c2342,this[_0x3ed2c3(0x1f7)]=_0x3549d2,q(this,_0x3ed2c3(0x195),void 0x0),q(this,_0x3ed2c3(0x20a),void 0x0),q(this,_0x3ed2c3(0x1e9),void 0x0),q(this,_0x3ed2c3(0x1d6),[]),q(this,_0x3ed2c3(0x146),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x3ed2c3(0x376),void 0x0),q(this,_0x3ed2c3(0x381),!0x1),q(this,_0x3ed2c3(0x15e),!0x1),q(this,_0x3ed2c3(0x1e6),!0x1),q(this,_0x3ed2c3(0x1b8),void 0x0),q(this,_0x3ed2c3(0x372),void 0x0),q(this,_0x3ed2c3(0x2ae),null),this[_0x3ed2c3(0x14f)]();}[_0x244912(0x14f)](){const _0x3bd19c=_0x244912;this[_0x3bd19c(0x1a5)](),this[_0x3bd19c(0x3e6)]();}[_0x244912(0x32b)](){const _0x552dd9=_0x244912;if(!this[_0x552dd9(0x20a)]||!this['_subUnitId']||!this[_0x552dd9(0x195)])return;let _0x497dc9={'unitId':this[_0x552dd9(0x20a)],'subUnitId':this[_0x552dd9(0x1e9)],'drawingId':this[_0x552dd9(0x195)]},{transform:_0x2ccca2}=this['_drawingManagerService']['getDrawingByParam'](_0x497dc9);if(_0x2ccca2)return{'left':_0x2ccca2[_0x552dd9(0x1fe)]||0x0,'top':_0x2ccca2[_0x552dd9(0x172)]||0x0,'width':_0x2ccca2['width']||0x0,'height':_0x2ccca2['height']||0x0,'flipX':_0x2ccca2[_0x552dd9(0x166)]||!0x1,'flipY':_0x2ccca2[_0x552dd9(0x3b2)]||!0x1,'angle':_0x2ccca2[_0x552dd9(0x388)]};}[_0x244912(0x386)](){const _0x41a540=_0x244912;if(this['_unitId']===void 0x0||this[_0x41a540(0x1e9)]===void 0x0||this[_0x41a540(0x195)]===void 0x0)return;let _0x2f691a=this['_renderManagerService'][_0x41a540(0x276)](this['_unitId']);if(!_0x2f691a||!_0x2f691a[_0x41a540(0x27b)](_0x307dc0)['getCurrentSkeleton']())return;let {scene:_0x2c5650}=_0x2f691a,_0x2c719a=this[_0x41a540(0x32b)]();if(!_0x2c719a)return;let _0x4cde9c=this[_0x41a540(0x288)][_0x41a540(0x35b)](this[_0x41a540(0x20a)],this[_0x41a540(0x1e9)],this[_0x41a540(0x195)]);if(!_0x4cde9c||!_0x3c2fe3(_0x4cde9c[_0x41a540(0x382)]()))return;let _0x20cba6=_0x4cde9c['getConnectorLinePoints']();if(_0x20cba6['length']<0x2)return;let _0x223c70=new _0x3a7d90(_0x2c719a),_0x15c47c=_0x20cba6[0x0],_0x3c1b5d=_0x20cba6[_0x20cba6['length']-0x1],_0x369d91=_0x223c70[_0x41a540(0x2aa)](_0x15c47c),_0x24bf4f=_0x223c70['localToWorld'](_0x3c1b5d);this[_0x41a540(0x320)](_0x2c5650,{..._0x369d91},!0x0),this['_addShapeConnectorHandlerObject'](_0x2c5650,{..._0x24bf4f},!0x1);}[_0x244912(0x320)](_0x2fc87b,_0x20f6c6,_0x2b7b25){const _0x2e053f=_0x244912;if(this[_0x2e053f(0x195)]===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;let _0x2f8fc3=_0x2e053f(0x1fc)+this[_0x2e053f(0x20a)]+'-'+this[_0x2e053f(0x1e9)]+'-'+this[_0x2e053f(0x195)]+'-'+(_0x2b7b25?'start':_0x2e053f(0x1a7)),_0x5216f3=_0x2fc87b[_0x2e053f(0x251)](_0x2f8fc3);if(_0x5216f3){_0x5216f3['transformByState']({'left':_0x20f6c6['x']-_0x59f579['cxnPointRadius'],'top':_0x20f6c6['y']-_0x59f579[_0x2e053f(0x15b)]});return;}let _0x2afe77=new oa(_0x2f8fc3,{'left':_0x20f6c6['x']-_0x59f579[_0x2e053f(0x15b)],'top':_0x20f6c6['y']-_0x59f579['cxnPointRadius'],'shapeId':this[_0x2e053f(0x195)],'unitId':this[_0x2e053f(0x20a)],'subUnitId':this[_0x2e053f(0x1e9)],'isStartConnectorPoint':_0x2b7b25,'width':_0x59f579[_0x2e053f(0x15b)]*0x2,'height':_0x59f579[_0x2e053f(0x15b)]*0x2,'zIndex':_0x352374+0x1,'evented':!0x0});this[_0x2e053f(0x1d6)]['push'](_0x2afe77),this['_attachConnectorObjectEvent'](_0x2afe77,_0x2fc87b,_0x2b7b25),_0x2fc87b[_0x2e053f(0x2da)](_0x2afe77,_0x352374+0x1);}[_0x244912(0x18d)](_0x494ab9,_0x543fe0){const _0x35b21a=_0x244912;var _0x5d4456;let _0x4c7122={'x':0x0,'y':0x0};if(!_0x494ab9||!_0x543fe0)return _0x4c7122;let _0x5ab8c3=this[_0x35b21a(0x2f0)]['getRenderUnitById'](_0x494ab9);if(!_0x5ab8c3||!_0x5ab8c3[_0x35b21a(0x27b)](_0x307dc0)[_0x35b21a(0x163)](_0x543fe0))return _0x4c7122;let _0x52812b=_0x5ab8c3['with'](_0x20a826),_0x1ac94e=_0x52812b==null?void 0x0:_0x52812b[_0x35b21a(0x145)]();if(!_0x1ac94e)return _0x4c7122;let _0x4781df=(_0x5d4456=this['_univerInstanceService'][_0x35b21a(0x287)](_0x494ab9))==null?void 0x0:_0x5d4456[_0x35b21a(0x184)](_0x543fe0);if(!_0x4781df)return _0x4c7122;let _0x2a83f0=_0x2ead9(_0x1ac94e[_0x35b21a(0x1bc)],_0x1ac94e[_0x35b21a(0x298)],_0x5ab8c3[_0x35b21a(0x229)],_0x4781df);return _0x2a83f0?{'x':_0x2a83f0[_0x35b21a(0x1fd)],'y':_0x2a83f0[_0x35b21a(0x351)]}:_0x4c7122;}['_getZoomRatio'](_0x3ccbe8,_0x3e8511){const _0x5ce866=_0x244912;var _0x4e890a;let _0x4def37=(_0x4e890a=this[_0x5ce866(0x321)][_0x5ce866(0x287)](_0x3ccbe8))==null?void 0x0:_0x4e890a['getSheetBySheetId'](_0x3e8511);return(_0x4def37==null?void 0x0:_0x4def37['getZoomRatio']())??0x1;}[_0x244912(0x3d4)](_0xb7879d,_0x9daa60,_0x9be380,_0x5a3ff5,_0x3ee3ad){const _0x3a6990=_0x244912;this[_0x3a6990(0x1b8)][_0x3a6990(0x3fc)](),this[_0x3a6990(0x372)][_0x3a6990(0x3fc)](),this['_sheetShapeAdjustController'][_0x3a6990(0x289)]();let _0x5c51c6=this[_0x3a6990(0x2ae)];this[_0x3a6990(0x1f7)]['endConnectionDetection']();let _0x178623=this[_0x3a6990(0x18d)](this[_0x3a6990(0x20a)],this[_0x3a6990(0x1e9)]),_0x5a2995=this[_0x3a6990(0x331)](this[_0x3a6990(0x20a)],this[_0x3a6990(0x1e9)]),_0x4445e8={'x':_0x9be380[_0x3a6990(0x3d2)]/_0x5a2995+_0x178623['x'],'y':_0x9be380[_0x3a6990(0x360)]/_0x5a2995+_0x178623['y']},_0x1b596f=_0x5c51c6?_0x5c51c6[_0x3a6990(0x148)]:_0x4445e8,_0x4c269f=_0x5a3ff5?this[_0x3a6990(0x376)][_0x3a6990(0x283)]():this[_0x3a6990(0x376)][_0x3a6990(0x26b)](),_0x84a48b=this[_0x3a6990(0x376)][_0x3a6990(0x382)]();_0x4c269f?this[_0x3a6990(0x35f)](_0x4c269f,_0x1b596f,_0x5a3ff5,_0x5c51c6,_0x3ee3ad):this[_0x3a6990(0x397)](_0x9daa60,_0x1b596f,_0x5a3ff5,_0x5c51c6,_0x3ee3ad,_0x84a48b),this[_0x3a6990(0x381)]=!0x1,this[_0x3a6990(0x1e6)]=!0x1,this['_currentConnectionTarget']=null,_0xb7879d['enableObjectsEvent']();}[_0x244912(0x397)](_0x55ebcf,_0x5c172e,_0x428401,_0x41b54a,_0x400418,_0x111e5f){const _0x214f24=_0x244912;let _0x4f32b8=_0x111e5f===_0x1ecf22[_0x214f24(0x212)]||_0x111e5f===_0x1ecf22['StraightConnector1'],_0xb7a4c2=_0x428401?_0x5c172e:_0x55ebcf,_0x149458=_0x428401?_0x55ebcf:_0x5c172e,_0x10809e=this[_0x214f24(0x376)][_0x214f24(0x156)](),_0x2ca233=this['_activeShapeModel']['getShapeType'](),_0x26dd0a=_0x147030(_0x2ca233),_0x416734=_0x3a7d90[_0x214f24(0x2fd)](_0x10809e,_0x26dd0a),_0x98d084=_0x4f32b8?_0x3a7d90['computeStraightConnectorLayout'](_0xb7a4c2,_0x149458):_0x3a7d90[_0x214f24(0x16c)](_0x55ebcf,_0x5c172e,_0x428401,_0x416734);_0x41b54a?this[_0x214f24(0x1ed)](_0x98d084,_0x41b54a,_0x428401,_0x400418):this['_executeResizeCommand'](_0x98d084,_0x400418);}[_0x244912(0x35f)](_0x1e0d84,_0x2c9721,_0x38b38b,_0x58eab5,_0x354a8e){const _0x2c99ef=_0x244912;let _0x1e5a43=this[_0x2c99ef(0x303)](_0x1e0d84);if(!_0x1e5a43)return;let _0x180255=_0x58eab5?_0x58eab5[_0x2c99ef(0x388)]:this[_0x2c99ef(0x20b)](_0x1e5a43['point'],_0x2c9721),_0x4c407e;if(_0x58eab5){let _0x629ad0=this[_0x2c99ef(0x239)]['getDrawingByParam']({'unitId':_0x58eab5[_0x2c99ef(0x21f)],'subUnitId':_0x58eab5[_0x2c99ef(0x1c5)],'drawingId':_0x58eab5['shapeId']});if(_0x629ad0!=null&&_0x629ad0[_0x2c99ef(0x1b7)]){let {left:_0x344ba5=0x0,top:_0x1bbf02=0x0,width:_0x8d654b=0x0,height:_0x3781d9=0x0,angle:_0x147cce}=_0x629ad0['transform'];_0x4c407e=_0x3e1f4f({'left':_0x344ba5,'top':_0x1bbf02,'width':_0x8d654b,'height':_0x3781d9},_0x147cce||0x0);}else _0x4c407e={'left':_0x2c9721['x'],'top':_0x2c9721['y'],'width':0x0,'height':0x0};}else _0x4c407e={'left':_0x2c9721['x'],'top':_0x2c9721['y'],'width':0x0,'height':0x0};let _0x4227e7={'point':_0x2c9721,'angle':_0x180255,'bounds':_0x4c407e},_0x7ddafa=_0x38b38b?_0x4227e7:_0x1e5a43,_0x44ecd4=_0x38b38b?_0x1e5a43:_0x4227e7,_0x582ed7=this[_0x2c99ef(0x376)][_0x2c99ef(0x382)](),_0x25219a=_0x349ecd(_0x7ddafa,_0x44ecd4,_0x582ed7);this[_0x2c99ef(0x376)]['removeLinePoints']();let _0x2d0de7=_0x42d9b4(_0x25219a,_0x582ed7);_0x58eab5?this['_executeConnectedRouteConnectionCommand'](_0x2d0de7,_0x58eab5,_0x1e0d84,_0x38b38b,_0x354a8e):this[_0x2c99ef(0x34f)](_0x2d0de7,_0x1e0d84,_0x38b38b,_0x354a8e);}[_0x244912(0x1ed)](_0x30caf5,_0x89cf3b,_0x4e6947,_0x1a8329){const _0x47faaa=_0x244912;let _0x17168f=this[_0x47faaa(0x376)][_0x47faaa(0x2b7)]()['relation'],_0x1aa901={..._0x17168f},_0x559f6={'shapeId':_0x89cf3b[_0x47faaa(0x19c)],'cxnIndex':_0x89cf3b[_0x47faaa(0x286)]};_0x4e6947?_0x1aa901['from']=_0x559f6:_0x1aa901['to']=_0x559f6;let _0x213011=this[_0x47faaa(0x376)][_0x47faaa(0x382)](),_0x141ae2=_0x42d9b4(_0x30caf5[_0x47faaa(0x2be)],_0x213011),_0x347a62={'unitId':this[_0x47faaa(0x20a)],'subUnitId':this[_0x47faaa(0x1e9)],'connectorShapeId':this[_0x47faaa(0x195)],'width':_0x30caf5[_0x47faaa(0x278)]['width'],'height':_0x30caf5[_0x47faaa(0x278)]['height'],'left':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x1fe)],'top':_0x30caf5['worldRect']['top'],'flipX':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x166)]||!0x1,'flipY':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x3b2)]||!0x1,'newAdjustValues':_0x141ae2[_0x47faaa(0x380)],'oldAdjustValues':_0x1a8329,'oldRelation':_0x17168f,'newRelation':_0x1aa901,'newLineType':_0x141ae2[_0x47faaa(0x2d7)],'oldLineType':_0x213011};this['_commandService'][_0x47faaa(0x1ac)](_0xb35938['id'],_0x347a62);}[_0x244912(0x30e)](_0x49c26d,_0x2048bf){const _0x107f79=_0x244912;let _0xc6105b=this[_0x107f79(0x376)][_0x107f79(0x382)](),_0x379066=_0x42d9b4(_0x49c26d[_0x107f79(0x2be)],_0xc6105b),_0x16e4e1={'unitId':this[_0x107f79(0x20a)],'subUnitId':this[_0x107f79(0x1e9)],'shapeId':this['_activeShapeId'],'width':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x326)],'height':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x1ba)],'left':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x1fe)],'top':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x172)],'flipX':_0x49c26d['worldRect'][_0x107f79(0x166)]||!0x1,'flipY':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x3b2)]||!0x1,'angle':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x388)]||0x0,'newAdjustValues':_0x379066[_0x107f79(0x380)],'oldAdjustValues':_0x2048bf,'newLineType':_0x379066[_0x107f79(0x2d7)],'oldLineType':_0xc6105b};this['_commandService'][_0x107f79(0x1ac)](_0x54a28b['id'],_0x16e4e1);}[_0x244912(0x26c)](_0x1c563f,_0xbf9a6f,_0x4ec075,_0x474e0e,_0xe027fc){const _0x141674=_0x244912;let _0x44fa22=this[_0x141674(0x376)][_0x141674(0x2b7)]()['relation'],_0x469822={..._0x44fa22},_0x59d52b={'shapeId':_0xbf9a6f[_0x141674(0x19c)],'cxnIndex':_0xbf9a6f['cxnIndex']};_0x474e0e?(_0x469822[_0x141674(0x3b9)]=_0x59d52b,_0x469822['to']=_0x4ec075):(_0x469822[_0x141674(0x3b9)]=_0x4ec075,_0x469822['to']=_0x59d52b);let _0x397229={'unitId':this[_0x141674(0x20a)],'subUnitId':this[_0x141674(0x1e9)],'connectorShapeId':this[_0x141674(0x195)],'width':_0x1c563f[_0x141674(0x278)][_0x141674(0x326)],'height':_0x1c563f[_0x141674(0x278)]['height'],'left':_0x1c563f[_0x141674(0x278)][_0x141674(0x1fe)],'top':_0x1c563f[_0x141674(0x278)][_0x141674(0x172)],'flipX':_0x1c563f[_0x141674(0x278)]['flipX']||!0x1,'flipY':_0x1c563f[_0x141674(0x278)][_0x141674(0x3b2)]||!0x1,'oldAdjustValues':_0xe027fc,'newAdjustValues':_0x1c563f[_0x141674(0x380)],'newLineType':_0x1c563f[_0x141674(0x2d7)],'rotation':_0x1c563f[_0x141674(0x28c)],'oldRelation':_0x44fa22,'newRelation':_0x469822};this[_0x141674(0x2d0)][_0x141674(0x1ac)](_0xb35938['id'],_0x397229);}['_executeConnectedRouteResizeCommand'](_0xad3a19,_0x388755,_0x43e521,_0x168bdb){const _0x5152a6=_0x244912;let _0x344fd1=this[_0x5152a6(0x376)][_0x5152a6(0x2b7)]()['relation'],_0x329be1={};_0x43e521?(_0x329be1['to']=_0x388755,_0x329be1[_0x5152a6(0x3b9)]=void 0x0):(_0x329be1[_0x5152a6(0x3b9)]=_0x388755,_0x329be1['to']=void 0x0);let _0x4c2bd5={'unitId':this[_0x5152a6(0x20a)],'subUnitId':this[_0x5152a6(0x1e9)],'connectorShapeId':this[_0x5152a6(0x195)],'width':_0xad3a19['worldRect'][_0x5152a6(0x326)],'height':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x1ba)],'left':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x1fe)],'top':_0xad3a19[_0x5152a6(0x278)]['top'],'flipX':_0xad3a19['worldRect']['flipX']||!0x1,'flipY':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x3b2)]||!0x1,'oldAdjustValues':_0x168bdb,'newAdjustValues':_0xad3a19[_0x5152a6(0x380)],'newLineType':_0xad3a19[_0x5152a6(0x2d7)],'rotation':_0xad3a19[_0x5152a6(0x28c)],'oldRelation':_0x344fd1,'newRelation':_0x329be1};this[_0x5152a6(0x2d0)][_0x5152a6(0x1ac)](_0xb35938['id'],_0x4c2bd5);}[_0x244912(0x2a1)](_0x56b0af,_0x14c5ab,_0x571b90){const _0x47cc7b=_0x244912;this[_0x47cc7b(0x14a)](_0x21ce23(_0x56b0af[_0x47cc7b(0x383)][_0x47cc7b(0x318)]((_0x133e0f,_0x6555ac)=>{const _0x378849=_0x47cc7b;let _0xdf83fe=_0x56b0af[_0x378849(0x24f)]();if(this[_0x378849(0x376)]=this['_sheetsShapeService'][_0x378849(0x35b)](_0xdf83fe[_0x378849(0x21f)],_0xdf83fe['subUnitId'],_0xdf83fe[_0x378849(0x237)]),!this[_0x378849(0x376)])return;let _0x50a740={};this['_activeShapeModel']['getAdjustNames']()['forEach'](_0xfdb40e=>{const _0x456dc8=_0x378849;let _0x1d2fea=this[_0x456dc8(0x376)]['getAdjustValueByName'](_0xfdb40e);_0x1d2fea!==void 0x0&&(_0x50a740[_0xfdb40e]=_0x1d2fea);});let _0x2e4465=this[_0x378849(0x32b)]();if(!_0x2e4465)return;this[_0x378849(0x146)]={..._0x2e4465};let _0x27c472=new _0x3a7d90(this[_0x378849(0x146)]),_0x3e4aa2=_0x5cc8a7({'unitId':this[_0x378849(0x20a)],'subUnitId':this[_0x378849(0x1e9)],'drawingId':this[_0x378849(0x195)]}),_0x3abbbf=_0x14c5ab[_0x378849(0x251)](_0x3e4aa2);this[_0x378849(0x381)]=!0x0,_0x14c5ab['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController'][_0x378849(0x38e)](_0x14c5ab,this['_unitId'],this[_0x378849(0x1e9)],this[_0x378849(0x195)]),this[_0x378849(0x2ae)]=null;let _0x43bcfb=this[_0x378849(0x376)][_0x378849(0x156)](),_0x5f070d=_0x43bcfb[0x0],_0x3be12d=_0x43bcfb[_0x43bcfb[_0x378849(0x1ae)]-0x1],_0x310e83=_0x571b90?_0x27c472['localToWorld'](_0x3be12d):_0x27c472[_0x378849(0x2aa)](_0x5f070d);this[_0x378849(0x1b8)]=_0x14c5ab['onPointerMove$'][_0x378849(0x318)]((_0x5e2f9f,_0x4ecb57)=>{const _0x3be57a=_0x378849;if(!this[_0x3be57a(0x381)]||!this[_0x3be57a(0x376)])return;this[_0x3be57a(0x1e6)]||=(this['_sheetShapeAdjustController'][_0x3be57a(0x309)](),this[_0x3be57a(0x376)][_0x3be57a(0x2bd)](),!0x0);let _0x18e25e=this[_0x3be57a(0x18d)](this[_0x3be57a(0x20a)],this[_0x3be57a(0x1e9)]),_0x48c84c=this['_getZoomRatio'](this['_unitId'],this[_0x3be57a(0x1e9)]),_0x3fcea8={'x':_0x5e2f9f[_0x3be57a(0x3d2)]/_0x48c84c+_0x18e25e['x'],'y':_0x5e2f9f[_0x3be57a(0x360)]/_0x48c84c+_0x18e25e['y']},_0x4aab67=this[_0x3be57a(0x1f7)][_0x3be57a(0x336)](_0x3fcea8);if(_0x4aab67){let {shapeId:_0x4c30eb,unitId:_0xe69a73,subUnitId:_0xf789ce}=_0x4aab67;if(_0x4c30eb&&_0xe69a73&&_0xf789ce){let _0x5cc082=_0x5cc8a7({'unitId':_0xe69a73,'subUnitId':_0xf789ce,'drawingId':_0x4c30eb});_0x4aab67[_0x3be57a(0x388)]=(_0x14c5ab[_0x3be57a(0x251)](_0x5cc082)['angle']||0x0)+_0x4aab67[_0x3be57a(0x388)];}}this['_currentConnectionTarget']=_0x4aab67;let _0x420570=_0x571b90?this[_0x3be57a(0x376)][_0x3be57a(0x283)]():this[_0x3be57a(0x376)]['getStartConnectInfo']();if(_0x420570){this[_0x3be57a(0x2d1)](_0x420570,_0x3fcea8,_0x571b90,_0x3abbbf,_0x56b0af);return;}this[_0x3be57a(0x1a9)](_0x3fcea8,_0x310e83,_0x571b90,_0x3abbbf,_0x56b0af);}),this[_0x378849(0x372)]=_0x14c5ab[_0x378849(0x36d)][_0x378849(0x318)]((_0x57f57a,_0x1eede6)=>{const _0x36630a=_0x378849;this[_0x36630a(0x3d4)](_0x14c5ab,_0x310e83,_0x57f57a,_0x571b90,_0x50a740);}),_0x6555ac[_0x378849(0x34a)]();})));}[_0x244912(0x306)](_0xb99396,_0x34e237,_0x2fc17a){const _0x8b8113=_0x244912;let _0x330ef8=this[_0x8b8113(0x288)][_0x8b8113(0x1f4)](_0xb99396,_0x34e237,_0x2fc17a);if(!_0x330ef8||_0x330ef8[_0x8b8113(0x1ae)]===0x0)return;let _0x24ea1a=this[_0x8b8113(0x2f0)][_0x8b8113(0x276)](_0xb99396);if(!_0x24ea1a)return;let {scene:_0x33651f}=_0x24ea1a;for(let _0x34b66e of _0x330ef8){let _0x2ef41b=_0x34b66e[_0x8b8113(0x365)],_0x4c3779=this['_sheetsShapeService'][_0x8b8113(0x35b)](_0xb99396,_0x34e237,_0x2ef41b);if(!_0x4c3779)continue;let _0x52fa09=_0x4c3779[_0x8b8113(0x26b)](),_0x58d708=_0x4c3779[_0x8b8113(0x283)](),_0xeeccc5=(_0x52fa09==null?void 0x0:_0x52fa09[_0x8b8113(0x19c)])===_0x2fc17a,_0x226743=_0x5cc8a7({'unitId':_0xb99396,'subUnitId':_0x34e237,'drawingId':_0x2ef41b}),_0x1389bb=_0x33651f['getObjectIncludeInGroup'](_0x226743);if(!_0x1389bb)continue;let _0x58202f=this[_0x8b8113(0x239)][_0x8b8113(0x3a5)]({'unitId':_0xb99396,'subUnitId':_0x34e237,'drawingId':_0x2ef41b});_0x58202f!=null&&_0x58202f[_0x8b8113(0x1b7)]&&(_0x52fa09&&_0x58d708?this[_0x8b8113(0x2ac)](_0xb99396,_0x34e237,_0x2ef41b,_0x4c3779,_0x52fa09,_0x58d708,_0x1389bb):this[_0x8b8113(0x1a8)](_0xb99396,_0x34e237,_0x2ef41b,_0x4c3779,_0xeeccc5?_0x52fa09:_0x58d708,_0xeeccc5,_0x58202f,_0x1389bb));}}['_rerouteConnectorLine'](_0x1bade5,_0x35b98c,_0x4229cf,_0x26bfa1,_0x263bdc,_0x2bf191,_0x4f26a3){const _0xea0df=_0x244912;let _0x23aebd=this[_0xea0df(0x20a)],_0x6587a8=this[_0xea0df(0x1e9)];this['_unitId']=_0x1bade5,this[_0xea0df(0x1e9)]=_0x35b98c;let _0x43c4a1=this[_0xea0df(0x303)](_0x263bdc),_0x5a9fb8=this['_getConnectPointInfo'](_0x2bf191);if(this[_0xea0df(0x20a)]=_0x23aebd,this[_0xea0df(0x1e9)]=_0x6587a8,!_0x43c4a1||!_0x5a9fb8)return;let _0x14f2f2=_0x26bfa1[_0xea0df(0x382)](),_0x4712d4=_0x349ecd(_0x43c4a1,_0x5a9fb8,_0x14f2f2);_0x4712d4&&_0x26bfa1['updateLinePoints'](_0x4712d4);let _0x1bd6c1=_0x42d9b4(_0x4712d4,_0x14f2f2);_0x1bd6c1[_0xea0df(0x2d7)]!==_0x14f2f2&&_0x26bfa1['changeShapeType'](_0x1bd6c1[_0xea0df(0x2d7)]),_0x26bfa1['clearAdjustValue']();for(let [_0x4479d1,_0x149351]of Object[_0xea0df(0x324)](_0x1bd6c1[_0xea0df(0x380)]))_0x26bfa1[_0xea0df(0x3b3)](_0x4479d1,_0x149351);_0x26bfa1[_0xea0df(0x340)]({'width':_0x1bd6c1['worldRect'][_0xea0df(0x326)],'height':_0x1bd6c1['worldRect']['height']}),_0x4f26a3[_0xea0df(0x1d8)]({'flipX':_0x1bd6c1[_0xea0df(0x278)]['flipX'],'flipY':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x3b2)],'left':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x1fe)],'top':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x172)],'width':_0x1bd6c1[_0xea0df(0x278)]['width'],'height':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x1ba)],'angle':_0x1bd6c1[_0xea0df(0x28c)]}),_0x26bfa1['removeLinePoints']();}[_0x244912(0x1a8)](_0x31cc2a,_0x347855,_0x132014,_0x5640db,_0x40b972,_0x18e330,_0x25cdaf,_0x2c42fb){const _0x5b2288=_0x244912;let _0x3808af=this[_0x5b2288(0x20a)],_0x4e7058=this[_0x5b2288(0x1e9)];this['_unitId']=_0x31cc2a,this[_0x5b2288(0x1e9)]=_0x347855;let _0xbe0b8f=this['_getConnectPointInfo'](_0x40b972);if(this[_0x5b2288(0x20a)]=_0x3808af,this['_subUnitId']=_0x4e7058,!_0xbe0b8f)return;let {left:_0x22e5d5=0x0,top:_0x373759=0x0,width:_0x1e7a13=0x0,height:_0x28be11=0x0,flipX:_0x430599=!0x1,flipY:_0x5af273=!0x1}=_0x25cdaf[_0x5b2288(0x1b7)],_0x321d8a=_0x5640db['getConnectorLinePoints']();if(_0x321d8a[_0x5b2288(0x1ae)]<0x2)return;let _0x18639b=new _0x3a7d90({'left':_0x22e5d5,'top':_0x373759,'width':_0x1e7a13,'height':_0x28be11,'flipX':_0x430599,'flipY':_0x5af273}),_0x5be4aa=_0x18e330?_0x321d8a[_0x321d8a[_0x5b2288(0x1ae)]-0x1]:_0x321d8a[0x0],_0x15879a=_0x18639b[_0x5b2288(0x2aa)](_0x5be4aa),_0x5cec49=_0x3a7d90[_0x5b2288(0x16c)](_0x15879a,_0xbe0b8f[_0x5b2288(0x2b9)],!_0x18e330);_0x2c42fb[_0x5b2288(0x1d8)]({'flipX':_0x5cec49['worldRect'][_0x5b2288(0x166)],'flipY':_0x5cec49['worldRect']['flipY'],'left':_0x5cec49[_0x5b2288(0x278)]['left'],'top':_0x5cec49['worldRect']['top'],'width':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x326)],'height':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x1ba)],'angle':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x388)]}),_0x2c42fb[_0x5b2288(0x23a)](!0x0);}[_0x244912(0x2db)](){const _0x1b3b7d=_0x244912;this[_0x1b3b7d(0x1d6)][_0x1b3b7d(0x1ae)]!==0x0&&(this[_0x1b3b7d(0x1d6)][_0x1b3b7d(0x2b3)](_0x3738c8=>{const _0x1f6f2b=_0x1b3b7d;_0x3738c8[_0x1f6f2b(0x346)]();}),this[_0x1b3b7d(0x1d6)]=[]);}[_0x244912(0x3e6)](){const _0x28598a=_0x244912;let _0x556671=this[_0x28598a(0x321)][_0x28598a(0x25d)](_0x37e7a9[_0x28598a(0x2c9)]);this[_0x28598a(0x14a)](_0x556671[_0x28598a(0x18a)](_0x4ab26c(_0x313151=>_0x313151?_0x313151[_0x28598a(0x3cd)][_0x28598a(0x18a)](_0x4ab26c(_0x436ea1=>{const _0x997b12=_0x28598a;if(!_0x436ea1)return _0x351d29;let _0x4ed300=_0x313151[_0x997b12(0x186)](),_0x10b19f=this[_0x997b12(0x2f0)][_0x997b12(0x276)](_0x4ed300),_0x3624bc=_0x10b19f==null?void 0x0:_0x10b19f[_0x997b12(0x229)];return _0x3624bc?_0x1e0e82(_0x3624bc):_0x351d29;})):_0x351d29))[_0x28598a(0x305)](_0x44337d=>{const _0x482a2f=_0x28598a;let _0x4daf0d=_0x44337d[_0x482a2f(0x3ed)]();this[_0x482a2f(0x14a)](_0x44337d[_0x482a2f(0x1c6)][_0x482a2f(0x318)](_0x2f9a02=>{const _0x4da4ba=_0x482a2f;this[_0x4da4ba(0x15e)]&&this[_0x4da4ba(0x195)]&&this[_0x4da4ba(0x2db)]();})),this['disposeWithMe'](_0x4daf0d[_0x482a2f(0x24c)]['subscribe'](_0x11c96=>{const _0x36f6d7=_0x482a2f;let {objects:_0x18340f}=_0x11c96;this['_clearShapeConnectorHandlerObjects'](),_0x18340f!==null&&_0x18340f[_0x36f6d7(0x17a)]===0x1&&_0x18340f[_0x36f6d7(0x196)]()[_0x36f6d7(0x3ac)]()[_0x36f6d7(0x3de)]instanceof Er&&(this[_0x36f6d7(0x15e)]=!0x0);})),this[_0x482a2f(0x14a)](_0x4daf0d[_0x482a2f(0x226)]['subscribe'](_0x2915d8=>{this['_isDrawingShapePointDown']&&this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x44337d['onPointerUp$']['subscribeEvent'](()=>{const _0x50c7be=_0x482a2f;this[_0x50c7be(0x15e)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x50c7be(0x386)]());})),this['disposeWithMe'](_0x4daf0d[_0x482a2f(0x27f)][_0x482a2f(0x305)](()=>{const _0x6008a7=_0x482a2f;this[_0x6008a7(0x20a)]&&this[_0x6008a7(0x1e9)]&&this[_0x6008a7(0x195)]&&this[_0x6008a7(0x239)][_0x6008a7(0x3a5)]({'unitId':this['_unitId'],'subUnitId':this[_0x6008a7(0x1e9)],'drawingId':this[_0x6008a7(0x195)]})&&(this[_0x6008a7(0x2db)](),this[_0x6008a7(0x386)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x14f44e=_0x244912;this[_0x14f44e(0x14a)](this[_0x14f44e(0x239)]['focus$']['subscribe'](_0x47e9fb=>{const _0x3d28e6=_0x14f44e;if(_0x47e9fb[_0x3d28e6(0x1ae)]===0x1){let _0xd412fd=_0x47e9fb[0x0];if(_0xd412fd[_0x3d28e6(0x185)]===_0x54d53a['DRAWING_SHAPE']){let _0x5c1f01=this[_0x3d28e6(0x288)]['getShapeModel'](_0xd412fd['unitId'],_0xd412fd[_0x3d28e6(0x1c5)],_0xd412fd[_0x3d28e6(0x237)]);if(_0x5c1f01&&_0x3c2fe3(_0x5c1f01[_0x3d28e6(0x382)]())){this[_0x3d28e6(0x195)]=_0xd412fd[_0x3d28e6(0x237)],this[_0x3d28e6(0x20a)]=_0xd412fd[_0x3d28e6(0x21f)],this[_0x3d28e6(0x1e9)]=_0xd412fd['subUnitId'],this[_0x3d28e6(0x2db)](),this[_0x3d28e6(0x386)]();return;}}}this[_0x3d28e6(0x195)]=void 0x0,this[_0x3d28e6(0x20a)]=void 0x0,this[_0x3d28e6(0x1e9)]=void 0x0,this[_0x3d28e6(0x2db)]();})),this['disposeWithMe'](this[_0x14f44e(0x239)][_0x14f44e(0x1cd)][_0x14f44e(0x305)](_0x4cf11e=>{const _0x567509=_0x14f44e;if(_0x4cf11e[_0x567509(0x1ae)]===0x1){var _0x52c8fe;let _0x27fc11=_0x4cf11e[0x0],_0x3645e9=(_0x52c8fe=this[_0x567509(0x239)][_0x567509(0x3a5)](_0x27fc11))==null?void 0x0:_0x52c8fe['drawingType'];_0x3645e9===_0x54d53a['DRAWING_SHAPE']&&_0x27fc11[_0x567509(0x237)]===this[_0x567509(0x195)]?(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']()):!this[_0x567509(0x195)]&&_0x3645e9===_0x54d53a[_0x567509(0x1b1)]&&this[_0x567509(0x306)](_0x27fc11['unitId'],_0x27fc11[_0x567509(0x1c5)],_0x27fc11[_0x567509(0x237)]);}})),this[_0x14f44e(0x14a)](this[_0x14f44e(0x239)][_0x14f44e(0x16d)][_0x14f44e(0x305)](_0x4379b5=>{const _0x23356f=_0x14f44e;for(let _0x40945b of _0x4379b5){let {drawingId:_0x1955c2}=_0x40945b;if(this[_0x23356f(0x195)]===_0x1955c2){this['_reset']();return;}}}));}[_0x244912(0x2d1)](_0x4057f2,_0x2595c4,_0x4cddaf,_0x347a78,_0x1fcc15){const _0x8df13a=_0x244912;var _0x365ea0;if(!this[_0x8df13a(0x376)])return;let _0x29a7c2=this[_0x8df13a(0x303)](_0x4057f2);if(!_0x29a7c2)return;let _0x1f63b9=this['_currentConnectionTarget']?this['_currentConnectionTarget'][_0x8df13a(0x148)]:_0x2595c4,_0x110a41=this['_currentConnectionTarget']?this[_0x8df13a(0x2ae)][_0x8df13a(0x388)]:this[_0x8df13a(0x20b)](_0x29a7c2[_0x8df13a(0x2b9)],_0x1f63b9),_0xa45365;if(this[_0x8df13a(0x2ae)]){let _0x3a319a=this[_0x8df13a(0x239)]['getDrawingByParam']({'unitId':this[_0x8df13a(0x2ae)][_0x8df13a(0x21f)],'subUnitId':this[_0x8df13a(0x2ae)][_0x8df13a(0x1c5)],'drawingId':this[_0x8df13a(0x2ae)][_0x8df13a(0x19c)]});if(_0x3a319a!=null&&_0x3a319a[_0x8df13a(0x1b7)]){let {left:_0x53b044=0x0,top:_0x242812=0x0,width:_0x2251ab=0x0,height:_0x37f990=0x0,angle:_0x2b0095}=_0x3a319a[_0x8df13a(0x1b7)];_0xa45365=_0x3e1f4f({'left':_0x53b044,'top':_0x242812,'width':_0x2251ab,'height':_0x37f990},_0x2b0095||0x0);}else _0xa45365={'left':_0x1f63b9['x'],'top':_0x1f63b9['y'],'width':0x0,'height':0x0};}else _0xa45365={'left':_0x1f63b9['x'],'top':_0x1f63b9['y'],'width':0x0,'height':0x0};let _0x5ca500={'point':_0x1f63b9,'angle':_0x110a41,'bounds':_0xa45365},_0x419e6a=_0x4cddaf?_0x5ca500:_0x29a7c2,_0x44b966=_0x4cddaf?_0x29a7c2:_0x5ca500,_0x27cc7f=this['_activeShapeModel']['getShapeType'](),_0x1ef5d5=_0x349ecd(_0x419e6a,_0x44b966,_0x27cc7f);_0x1ef5d5&&this['_activeShapeModel'][_0x8df13a(0x358)](_0x1ef5d5);let _0xd9dedb=_0x42d9b4(_0x1ef5d5,_0x27cc7f);_0xd9dedb[_0x8df13a(0x2d7)]!==_0x27cc7f&&this[_0x8df13a(0x376)]['changeShapeType'](_0xd9dedb[_0x8df13a(0x2d7)]);for(let [_0x765c31,_0x58c8b2]of Object[_0x8df13a(0x324)](_0xd9dedb[_0x8df13a(0x380)]))this[_0x8df13a(0x376)][_0x8df13a(0x3b3)](_0x765c31,_0x58c8b2);this['_activeShapeModel']['updateContext']({'width':_0xd9dedb[_0x8df13a(0x278)]['width'],'height':_0xd9dedb['worldRect'][_0x8df13a(0x1ba)]}),_0x347a78[_0x8df13a(0x1d8)]({'flipX':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x166)],'flipY':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x3b2)],'left':_0xd9dedb[_0x8df13a(0x278)]['left'],'top':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x172)],'width':_0xd9dedb[_0x8df13a(0x278)]['width'],'height':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x1ba)],'angle':_0xd9dedb[_0x8df13a(0x28c)]}),_0x347a78[_0x8df13a(0x23a)](!0x0);let _0x515be5=((_0x365ea0=this[_0x8df13a(0x2ae)])==null?void 0x0:_0x365ea0[_0x8df13a(0x148)])??_0x2595c4;_0x1fcc15[_0x8df13a(0x1d8)]({'left':_0x515be5['x']-_0x59f579[_0x8df13a(0x15b)],'top':_0x515be5['y']-_0x59f579[_0x8df13a(0x15b)]});}[_0x244912(0x1a9)](_0x3c4b21,_0x3b2d24,_0x4d5438,_0x5d85c1,_0x425101){const _0x58de26=_0x244912;var _0x4340c8,_0xbbc684;let _0x555abd=((_0x4340c8=this['_currentConnectionTarget'])==null?void 0x0:_0x4340c8['worldPoint'])??_0x3c4b21,_0x2ab77c=_0x3a7d90['computeConnectorResizeLayout'](_0x3b2d24,_0x555abd,_0x4d5438);_0x5d85c1[_0x58de26(0x1d8)]({'flipX':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x166)],'flipY':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x3b2)],'left':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x1fe)],'top':_0x2ab77c['worldRect'][_0x58de26(0x172)],'width':_0x2ab77c[_0x58de26(0x278)]['width'],'height':_0x2ab77c[_0x58de26(0x278)]['height'],'angle':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x388)]});let _0x1fda6a=((_0xbbc684=this[_0x58de26(0x2ae)])==null?void 0x0:_0xbbc684['worldPoint'])??_0x3c4b21;_0x425101['transformByState']({'left':_0x1fda6a['x']-_0x59f579[_0x58de26(0x15b)],'top':_0x1fda6a['y']-_0x59f579[_0x58de26(0x15b)]});}[_0x244912(0x303)](_0x519fab){const _0x1f1833=_0x244912;if(!this['_unitId']||!this[_0x1f1833(0x1e9)])return null;let {shapeId:_0x18c2cc,cxnIndex:_0x4d44b9}=_0x519fab,_0x2e7cd4=this[_0x1f1833(0x288)][_0x1f1833(0x35b)](this['_unitId'],this[_0x1f1833(0x1e9)],_0x18c2cc);if(!_0x2e7cd4)return null;let _0x31bca5=this['_drawingManagerService'][_0x1f1833(0x3a5)]({'unitId':this[_0x1f1833(0x20a)],'subUnitId':this[_0x1f1833(0x1e9)],'drawingId':_0x18c2cc});if(!(_0x31bca5!=null&&_0x31bca5[_0x1f1833(0x1b7)]))return null;let {left:_0x11f8a4=0x0,top:_0x18137b=0x0,width:_0x29f170=0x0,height:_0x220728=0x0,flipX:_0x38090e=!0x1,flipY:_0x641fa6=!0x1,angle:_0xebb8}=_0x31bca5[_0x1f1833(0x1b7)];_0x2e7cd4['updateContext']({'width':_0x29f170,'height':_0x220728});let _0x2c8074=_0x2e7cd4[_0x1f1833(0x23d)]()[_0x1f1833(0x2f4)](_0x25ed5d=>_0x25ed5d[_0x1f1833(0x2de)]===_0x4d44b9);if(!_0x2c8074)return null;let _0x4850bf=_0x38090e?_0x29f170-_0x2c8074['x']:_0x2c8074['x'],_0x1815ba=_0x641fa6?_0x220728-_0x2c8074['y']:_0x2c8074['y'];if(_0xebb8!==0x0&&_0xebb8!=null){let _0x3bd796=_0xebb8*Math['PI']/0xb4,_0x15fa1c=Math['cos'](_0x3bd796),_0x170d11=Math[_0x1f1833(0x2e1)](_0x3bd796),_0x161233=_0x29f170/0x2,_0xf23d2b=_0x220728/0x2,_0x1cebcc=_0x4850bf-_0x161233,_0x14051e=_0x1815ba-_0xf23d2b;_0x4850bf=_0x161233+_0x1cebcc*_0x15fa1c-_0x14051e*_0x170d11,_0x1815ba=_0xf23d2b+_0x1cebcc*_0x170d11+_0x14051e*_0x15fa1c;}_0x4850bf+=_0x11f8a4,_0x1815ba+=_0x18137b;let _0x50fb5e=_0x2c8074[_0x1f1833(0x235)]/0xea60;_0x38090e&&(_0x50fb5e=0xb4-_0x50fb5e),_0x641fa6&&(_0x50fb5e=-_0x50fb5e),_0x50fb5e+=_0xebb8||0x0,_0x50fb5e=(_0x50fb5e%0x168+0x168)%0x168;let _0x139b36=_0x3e1f4f({'left':_0x11f8a4,'top':_0x18137b,'width':_0x29f170,'height':_0x220728},_0xebb8||0x0);return{'point':{'x':_0x4850bf,'y':_0x1815ba},'angle':_0x50fb5e,'bounds':_0x139b36};}[_0x244912(0x20b)](_0x5a764,_0x4eb2d2){const _0x543f4f=_0x244912;let _0x87c34f=_0x4eb2d2['x']-_0x5a764['x'],_0x44a5cf=_0x4eb2d2['y']-_0x5a764['y'];return Math[_0x543f4f(0x1a1)](_0x87c34f)>=Math['abs'](_0x44a5cf)?_0x87c34f>=0x0?0xb4:0x0:_0x44a5cf>=0x0?0x10e:0x5a;}[_0x244912(0x3f4)](){const _0x484aec=_0x244912;this[_0x484aec(0x195)]=void 0x0,this[_0x484aec(0x20a)]=void 0x0,this[_0x484aec(0x1e9)]=void 0x0,this[_0x484aec(0x2db)]();}['dispose'](){const _0x52d7e9=_0x244912;this[_0x52d7e9(0x2db)](),super[_0x52d7e9(0x346)]();}};sa=Y([J(0x1,_0x4aa13b),J(0x2,_0xc8f10c),J(0x3,_0x1f50fa),J(0x4,_0x595744),J(0x5,_0x318433(_0x5594a6)),J(0x6,_0x318433(Z)),J(0x7,_0x318433(ia))],sa);let ca=class extends _0x2c7179{constructor(_0x264616,_0xe614ed,_0x434498){const _0x485da9=_0x244912;super(),this[_0x485da9(0x29c)]=_0x264616,this['_drawingManagerService']=_0xe614ed,this[_0x485da9(0x3fe)]=_0x434498,this[_0x485da9(0x2e7)]();}[_0x244912(0x2e7)](){const _0x8a3ac=_0x244912;this[_0x8a3ac(0x14a)](this[_0x8a3ac(0x29c)][_0x8a3ac(0x264)][_0x8a3ac(0x1a6)](this['_sheetPrintInterceptorService'][_0x8a3ac(0x264)][_0x8a3ac(0x154)]()[_0x8a3ac(0x36f)],{'handler':(_0x3f0bb6,_0x3310b6,_0x479dfb)=>{const _0x5d985e=_0x8a3ac;var _0x1bb72a;let {unitId:_0x46fd0f,subUnitId:_0x344333,scene:_0x43efb9,resourceCollector:_0x678588}=_0x3310b6,_0x36b390=(_0x1bb72a=this[_0x5d985e(0x239)][_0x5d985e(0x3d7)](_0x46fd0f))==null?void 0x0:_0x1bb72a[_0x344333];return _0x36b390==null||_0x36b390[_0x5d985e(0x1d7)][_0x5d985e(0x2b3)](_0x427910=>{const _0x1f2982=_0x5d985e;let _0x3a02f3=_0x36b390['data'][_0x427910];_0x3a02f3[_0x1f2982(0x185)]===_0x54d53a[_0x1f2982(0x1b1)]&&!_0x3a02f3[_0x1f2982(0x24d)]&&this[_0x1f2982(0x3fe)][_0x1f2982(0x1da)](_0x3a02f3,_0x43efb9,{'resourceCollector':_0x678588});}),_0x479dfb(_0x3f0bb6);}}));}};ca=Y([J(0x0,_0x318433(_0x14d662)),J(0x1,_0x1f50fa),J(0x2,_0x318433(X))],ca);let la=class extends _0x2c7179{constructor(_0x5ab216,_0xcd4997,_0x352fca){const _0x727128=_0x244912;super(),this['_commandService']=_0x5ab216,this['_localeService']=_0xcd4997,this[_0x727128(0x17f)]=_0x352fca,this[_0x727128(0x250)]();}[_0x244912(0x250)](){const _0x458775=_0x244912;this[_0x458775(0x14a)](this['_commandService']['beforeCommandExecuted'](_0x416654=>{const _0x15bb5d=_0x458775;let _0x1042dc,_0x544bd2;if(_0x416654['id']===_0x13dbe5['id']||_0x416654['id']===_0x168968['id']||_0x416654['id']===_0xb35938['id']){let _0xe2164a=_0x416654[_0x15bb5d(0x348)];_0x1042dc=_0xe2164a[_0x15bb5d(0x21f)],_0x544bd2=_0xe2164a[_0x15bb5d(0x1c5)];}_0x1042dc&&_0x544bd2&&(this[_0x15bb5d(0x17f)][_0x15bb5d(0x2f5)]({'workbookTypes':[_0x59c9a1],'worksheetTypes':[_0x5ec863]},_0x1042dc,_0x544bd2)||this[_0x15bb5d(0x17f)][_0x15bb5d(0x202)](this[_0x15bb5d(0x3b8)]['t'](_0x15bb5d(0x2b5))));}));}};la=Y([J(0x0,_0x318433(_0x4aa13b)),J(0x1,_0x318433(_0x3f1353)),J(0x2,_0x318433(_0x24fc12))],la);let ua=class{constructor(_0x41b228){const _0x32ff6f=_0x244912;this[_0x32ff6f(0x2f0)]=_0x41b228;}[_0x244912(0x2f2)](_0x5a43f6,_0x1d87ca){const _0x373a21=_0x244912;let _0x22ca9e=this[_0x373a21(0x2f0)][_0x373a21(0x276)](_0x5a43f6[_0x373a21(0x21f)]),_0x505410=_0x22ca9e==null?void 0x0:_0x22ca9e[_0x373a21(0x229)];if(!_0x505410)return;let _0x2612b3=_0x5cc8a7(_0x5a43f6),_0x1665e3=_0x505410[_0x373a21(0x251)](_0x2612b3);_0x1665e3==null||_0x1665e3['setFillImage'](_0x1d87ca);}};ua=Y([J(0x0,_0xc8f10c)],ua);let da=class extends _0x3c4eb2{constructor(_0x2935c8=Hi,_0x242458,_0x288ecf,_0x598955,_0x26c19f){const _0x9c1e40=_0x244912;super(),this[_0x9c1e40(0x3f8)]=_0x2935c8,this[_0x9c1e40(0x391)]=_0x242458,this[_0x9c1e40(0x2d0)]=_0x288ecf,this[_0x9c1e40(0x2eb)]=_0x598955,this['_renderManagerService']=_0x26c19f;let {..._0x53a542}=_0x845994({},Hi,this[_0x9c1e40(0x3f8)]);this['_configService']['setConfig'](Vi,_0x53a542),this['_initCommands']();}[_0x244912(0x2ad)](){const _0x3288bb=_0x244912;this['_injector'][_0x3288bb(0x1a3)]([Ji]),this[_0x3288bb(0x391)][_0x3288bb(0x1e0)](Ji),_0x1446da(this[_0x3288bb(0x391)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}[_0x244912(0x335)](){const _0xd76dc4=_0x244912;_0x1446da(this[_0xd76dc4(0x391)],[[ia],[Z],[aa]]),_0x45a757(this['_injector'],[[aa],[Z]]),[[ia],[Ui],[sa],[Xi]][_0xd76dc4(0x2b3)](_0x43ba98=>{const _0x4eb270=_0xd76dc4;this[_0x4eb270(0x14a)](this[_0x4eb270(0x2f0)][_0x4eb270(0x240)](_0x37e7a9[_0x4eb270(0x2c9)],_0x43ba98));});}['onRendered'](){const _0x650072=_0x244912;_0x45a757(this[_0x650072(0x391)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}['onSteady'](){const _0x1be495=_0x244912;this[_0x1be495(0x391)][_0x1be495(0x1e0)](Qi)['initShapePopupMenu']();}[_0x244912(0x2fe)](){const _0x297f62=_0x244912;[kr,K,Or,Bi][_0x297f62(0x2b3)](_0x221f8c=>this[_0x297f62(0x14a)](this[_0x297f62(0x2d0)][_0x297f62(0x293)](_0x221f8c)));}};q(da,_0x244912(0x1a2),_0x37e7a9[_0x244912(0x2c9)]),q(da,_0x244912(0x1f9),'SHEET_SHAPE_UI_PLUGIN'),q(da,_0x244912(0x3ff),Ri),q(da,_0x244912(0x345),zi),da=Y([_0x247bab(_0x5c2b4a,_0x21e271,_0x31be2a,_0x48dbc2,_0x3d2d07,_0x99abe1,_0x572c12,_0x26432c,_0x4a669e,_0x41a1bc,_0x49620b,_0x1803a2,_0xe117d2),J(0x1,_0x318433(_0x54646c)),J(0x2,_0x4aa13b),J(0x3,_0x20789e),J(0x4,_0xc8f10c)],da);const fa={'type':_0x1644dd[_0x244912(0x1bf)],'id':_0x244912(0x325),'handler'(){return!0x0;}};function pa(){const _0x197d59=_0x244912;let _0x92a0c4=_0x2c7ca5(_0x1f50fa),_0x321715=_0x297a75(()=>_0x92a0c4[_0x197d59(0x2fc)],_0x92a0c4[_0x197d59(0x2a0)](),!0x1,[_0x92a0c4]);return _0x321715['length']===0x0?null:_0xcdc9dc(_0x197d59(0x396),{'children':_0x4537d2(_0x197d59(0x396),{'className':_0x197d59(0x23b),'children':[_0xcdc9dc(_0x3bb4b3,{'drawings':_0x321715,'hasCropper':!0x1}),_0xcdc9dc(_0x28ac02,{'drawings':_0x321715})]})});}function ma(_0xc0b6b9){let {unitId:_0x1c7d1f,subUnitId:_0x5ed9a4,shapeId:_0x3e745a}=_0xc0b6b9,_0xede998=_0x2c7ca5(_0x4aa13b),_0x2e6d8e=_0x2c7ca5(ua);return _0xcdc9dc(_0x17d686,{..._0xc0b6b9,'positionEditor':_0xcdc9dc(pa,{}),'onUpdateShapeData':(_0x8704c0,_0x6d877f)=>{br(_0xede998,_0x1c7d1f,_0x5ed9a4,_0x3e745a,_0x8704c0,_0x6d877f);},'onUpdateLineShapeData':(_0x200b1a,_0x395ad2)=>{xr(_0xede998,_0x1c7d1f,_0x5ed9a4,_0x3e745a,_0x200b1a,_0x395ad2);},'onUpdateShapeFillImage':_0x84426e=>{const _0x1d91d0=_0x4e9b;_0x2e6d8e[_0x1d91d0(0x2f2)]({'unitId':_0x1c7d1f,'subUnitId':_0x5ed9a4,'drawingId':_0x3e745a},_0x84426e);}});}function ha(_0x5ec4db){const _0x41d7ff=_0x244912;let _0x19bdf5=_0x2c7ca5(_0x11b9ca),_0x5add63=_0x297a75(()=>_0x19bdf5[_0x41d7ff(0x304)],_0x19bdf5[_0x41d7ff(0x176)](),!0x1,[_0x19bdf5]),_0x112c3e=_0x5ec4db[_0x41d7ff(0x3a9)][_0x41d7ff(0x1d9)];return!_0x112c3e||!_0x5add63?null:_0xcdc9dc(ga,{..._0x112c3e,'canvasElement':_0x5ec4db[_0x41d7ff(0x3a9)][_0x41d7ff(0x37d)]});}function ga(_0x2119bc){const _0x3bf8e4=_0x244912;let _0xfe33b7=_0x2c7ca5(_0x4aa13b),_0x3e5518=_0x2c7ca5(_0x5594a6),{unitId:_0x4edefc,subUnitId:_0x2e18ba,drawingId:_0x1ce0f2,drawingType:_0x49d64d,shapeType:_0x1c9fa5}=_0x2119bc,[_0x100981,_0x4a19a9]=_0x1ccdce(_0x2119bc[_0x3bf8e4(0x17d)]),_0x27ef82=_0x3352e0(()=>_0x3c50f1(_0x100981),[_0x100981]),_0x2ad698=_0x3352e0(()=>_0x19f250(_0x100981),[_0x100981]);_0x1ff107(()=>{const _0x32d949=_0x3bf8e4;let _0x5856e3=_0xfe33b7['onCommandExecuted'](_0x5c8744=>{const _0x48b8a7=_0x4e9b;if(_0x5c8744['id']!==_0x4fa39c['id'])return;let _0x334eb5=_0x3e5518[_0x48b8a7(0x1fa)](_0x4edefc,_0x2e18ba,_0x1ce0f2);_0x334eb5&&_0x4a19a9(_0x334eb5);});return()=>_0x5856e3[_0x32d949(0x346)]();},[_0xfe33b7,_0x1ce0f2,_0x3e5518,_0x2e18ba,_0x4edefc]);let _0x3387f1=_0x443b32=>{_0x4a19a9(_0x3c28f9=>({..._0x3c28f9,..._0x443b32}));},_0x34f2bf=_0xdb3df2=>{const _0x26edd4=_0x3bf8e4;let _0x52c4bb=_0x410366(_0x100981,_0xdb3df2);br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,{'oldShapeData':{'shapeText':_0x100981[_0x26edd4(0x2ec)]}},_0x52c4bb),_0x3387f1(_0x52c4bb);},_0x4cd718=_0xaa2e40({'hostType':_0x37e7a9[_0x3bf8e4(0x2c9)],'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'shapeId':_0x1ce0f2,'shapeData':_0x100981,'onUpdateBinding':_0x584573=>{let _0x43b325={'formulaBinding':_0x584573};br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,{'oldShapeData':{'formulaBinding':_0x100981['formulaBinding']}},_0x43b325),_0x3387f1(_0x43b325);}});return _0x4537d2(_0x4ca382,{'children':[_0xcdc9dc(_0x1a3d2a,{'canvasElement':_0x2119bc[_0x3bf8e4(0x37d)],'shapeData':_0x100981,'shapeType':_0x1c9fa5,'textStyle':{'ff':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x3f5)],'fs':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x16a)],'cl':{'rgb':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x364)]},..._0x27ef82},'textModel':_0x2ad698?{'ha':_0x2ad698['ha']??_0x324c7e['LEFT'],'va':_0x2ad698['va']??_0x42b23f[_0x3bf8e4(0x363)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x59f579[_0x3bf8e4(0x38f)],'defaultGradientEndColor':_0x59f579[_0x3bf8e4(0x3b5)],'defaultStrokeColor':_0x59f579[_0x3bf8e4(0x3cb)],'extensionGroups':_0x4cd718[_0x3bf8e4(0x36c)],'floatingObjectToolbarPosition':_0x404cbd['SHEET'],'onUpdateShapeData':(_0x3b22bb,_0x3ae36a)=>{br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,_0x3b22bb,_0x3ae36a),_0x3ae36a&&_0x3387f1(_0x3ae36a);},'onUpdateText':_0x34f2bf,'onOpenPanel':()=>{const _0x22b0c7=_0x3bf8e4;_0xfe33b7[_0x22b0c7(0x1ac)](Lr['id'],{'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'drawingId':_0x1ce0f2});},'onDelete':()=>{const _0x4209a8=_0x3bf8e4;_0xfe33b7[_0x4209a8(0x1ac)](_0x4d296c['id'],{'unitId':_0x4edefc,'drawings':[{'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'drawingId':_0x1ce0f2,'drawingType':_0x49d64d}]});}}),_0x4cd718[_0x3bf8e4(0x1fb)]]});}function _a(_0x13a020){const _0x4a8279=_0x244912;return!!_0x13a020&&_0x4a8279(0x2ab)in _0x13a020&&_0x4a8279(0x3a3)in _0x13a020;}const va=_0x2a23cd(()=>{const _0x20896a=_0x244912;let _0xbcefdf=_0x2c7ca5($),_0x5aec0b=_0x2c7ca5(_0x5594a6),_0x45508d=_0x2c7ca5(_0x1f50fa),_0x27ed79=_0x2c7ca5(_0x4aa13b),_0x164f7f=_0x2c7ca5(_0x466c9e),_0x4e767e=_0x2c7ca5(_0xc8f10c),_0x328c73=_0x3352e0(()=>({'getShapeModel':(_0x5a7d28,_0x496597,_0x3e4b95)=>_0x5aec0b[_0x20896a(0x35b)](_0x5a7d28,_0x496597,_0x3e4b95),'getShapeData':(_0x49858b,_0x59861a,_0x5c4916)=>_0x5aec0b[_0x20896a(0x1fa)](_0x49858b,_0x59861a,_0x5c4916),'getDrawingTransform':(_0x152159,_0x232e52,_0x4e3a83)=>{const _0x23425f=_0x20896a;let _0x111eab=_0x45508d['getDrawingByParam']({'unitId':_0x152159,'subUnitId':_0x232e52,'drawingId':_0x4e3a83});return _0x111eab==null?void 0x0:_0x111eab[_0x23425f(0x1b7)];},'updateShapeText':({unitId:_0xb35182,subUnitId:_0x4577a0,shapeId:_0x241244,shapeText:_0x1a0a73,oldShapeText:_0x495929,hostSize:_0x3955e0})=>{const _0xa80806=_0x20896a;_0x164f7f[_0xa80806(0x1c0)](_0xb35182,()=>{const _0x5f3f9d=_0xa80806;var _0x3c102a;let _0x441558=_0x27ed79[_0x5f3f9d(0x27c)](K['id'],{'unitId':_0xb35182,'subUnitId':_0x4577a0,'shapeId':_0x241244,'shapeData':{'shapeText':_0x1a0a73},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x495929}}});if(!_0x441558||!_0x3955e0)return _0x441558;let _0x405d41=_0x45508d['getDrawingByParam']({'unitId':_0xb35182,'subUnitId':_0x4577a0,'drawingId':_0x241244}),_0x53ebd8=_0x405d41==null?void 0x0:_0x405d41[_0x5f3f9d(0x1b7)];if(!_a(_0x405d41)||!_0x53ebd8)return!0x1;let _0x55cbad={..._0x53ebd8,'width':_0x3955e0[_0x5f3f9d(0x326)],'height':_0x3955e0[_0x5f3f9d(0x1ba)]},_0x5fdad=(_0x3c102a=_0x4e767e[_0x5f3f9d(0x276)](_0xb35182))==null||(_0x3c102a=_0x3c102a[_0x5f3f9d(0x27b)](_0x307dc0)[_0x5f3f9d(0x242)](_0x4577a0))==null?void 0x0:_0x3c102a[_0x5f3f9d(0x290)];return _0x27ed79[_0x5f3f9d(0x27c)](_0x480d38['id'],{'unitId':_0xb35182,'drawings':[{..._0x405d41,'transform':_0x55cbad,'sheetTransform':_0x5fdad?_0x3dccba(_0x55cbad,_0x5fdad)??_0x405d41[_0x5f3f9d(0x3a3)]:_0x405d41[_0x5f3f9d(0x3a3)],'axisAlignSheetTransform':_0x5fdad?_0x306e59(_0x55cbad,_0x5fdad)??_0x405d41[_0x5f3f9d(0x2ab)]:_0x405d41['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x446cde,subUnitId:_0x226dfa,shapeId:_0x127e55,width:_0x4b482e,height:_0x1bf144})=>{const _0x28414b=_0x20896a;var _0x149644;let _0x4292a7=_0x45508d[_0x28414b(0x3a5)]({'unitId':_0x446cde,'subUnitId':_0x226dfa,'drawingId':_0x127e55}),_0x5b0c88=_0x4292a7==null?void 0x0:_0x4292a7[_0x28414b(0x1b7)];if(!_a(_0x4292a7)||!_0x5b0c88)return;let _0x1c3f2a={..._0x5b0c88,'width':_0x4b482e,'height':_0x1bf144},_0x40c8c3=(_0x149644=_0x4e767e['getRenderUnitById'](_0x446cde))==null||(_0x149644=_0x149644[_0x28414b(0x27b)](_0x307dc0)[_0x28414b(0x242)](_0x226dfa))==null?void 0x0:_0x149644['skeleton'],_0x2eb327=_0x40c8c3?_0x3dccba(_0x1c3f2a,_0x40c8c3)??_0x4292a7[_0x28414b(0x3a3)]:_0x4292a7['sheetTransform'],_0x2696e3=_0x40c8c3?_0x306e59(_0x1c3f2a,_0x40c8c3)??_0x4292a7[_0x28414b(0x2ab)]:_0x4292a7[_0x28414b(0x2ab)];_0x27ed79[_0x28414b(0x1ac)](_0x480d38['id'],{'unitId':_0x446cde,'drawings':[{..._0x4292a7,'transform':_0x1c3f2a,'sheetTransform':_0x2eb327,'axisAlignSheetTransform':_0x2696e3}]});},'allowHostSizeShrink':({unitId:_0x3d5148,subUnitId:_0x4b6077,shapeId:_0x3244f7})=>_0x51130d(_0x5aec0b[_0x20896a(0x1fa)](_0x3d5148,_0x4b6077,_0x3244f7)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x27ed79,_0x45508d,_0x4e767e,_0x5aec0b,_0x164f7f]),_0xa0a270=_0x3352e0(()=>({'viewportKeys':{'main':_0x54edb1[_0x20896a(0x385)],'leftTop':_0x54edb1[_0x20896a(0x15a)],'top':_0x54edb1[_0x20896a(0x178)],'left':_0x54edb1['VIEW_MAIN_LEFT']},'getSkeleton':(_0x368cb2,_0x101270)=>{const _0xcb8745=_0x20896a;var _0x5944c6;return((_0x5944c6=_0x368cb2[_0xcb8745(0x27b)](_0x307dc0)['getSkeletonParam'](_0x101270[_0xcb8745(0x1c5)]))==null?void 0x0:_0x5944c6[_0xcb8745(0x290)])??null;}}),[]);return _0xcdc9dc(_0xa7fac2,{'adapter':_0x328c73,'editingService':_0xbcefdf,'editorUnitId':Pr,'positionOptions':_0xa0a270});});let ya=class extends _0x2c7179{constructor(_0x33afa7,_0x5918b5){const _0x92d486=_0x244912;super(),this[_0x92d486(0x2df)]=_0x33afa7,this[_0x92d486(0x22d)]=_0x5918b5,this['_registerIcons'](),this[_0x92d486(0x277)]();}['_registerIcons'](){const _0x19bedb=_0x244912;this[_0x19bedb(0x22d)]['has'](_0x19bedb(0x2d3))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'ObjectLayersIcon':_0x4809c9})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x2fb))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'FlipHorizontalIcon':_0x183126})),this['_iconManager'][_0x19bedb(0x33a)](_0x19bedb(0x167))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)]['register']({'FlipVerticalIcon':_0x3dabc1})),this['_iconManager']['has'](_0x19bedb(0x16e))||this[_0x19bedb(0x14a)](this['_iconManager'][_0x19bedb(0x2a8)]({'BottomIcon':_0xe20eb})),this[_0x19bedb(0x22d)]['has'](_0x19bedb(0x23e))||this[_0x19bedb(0x14a)](this['_iconManager'][_0x19bedb(0x2a8)]({'MoveDownIcon':_0x1bee1c})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x357))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'MoveUpIcon':_0x368783})),this['_iconManager']['has']('ShapeFormatSettingIcon')||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'ShapeFormatSettingIcon':_0x1516df})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x160))||this[_0x19bedb(0x14a)](this['_iconManager']['register']({'TopmostIcon':_0x1f7182}));}[_0x244912(0x277)](){const _0x2bf7ec=_0x244912;this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Ar,ma)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](jr,Ki)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Vr,qr)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Hr,Wr)),this[_0x2bf7ec(0x2df)]['get'](_0x184fa8)||this[_0x2bf7ec(0x14a)](this['_componentManager'][_0x2bf7ec(0x2a8)](_0x184fa8,Kr)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Mr,ha)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](ii,ci)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)]['register'](ri,li)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)]['register'](ai,ui)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)]['register'](oi,di)),this['disposeWithMe'](this['_componentManager']['register'](Fr,_0x2689dd)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)]['register'](_0x2bf7ec(0x3ec),va));}};ya=Y([J(0x0,_0x318433(_0x56d3ac)),J(0x1,_0x318433(_0x40e0f9))],ya);let ba=class extends _0x2c7179{constructor(_0x40c7bc,_0x44ddb6,_0x3dd584,_0x5c1976,_0x9aac40,_0x5ef861,_0x3a2e6d,_0xa8efdc,_0x3796e8){const _0x80b810=_0x244912;super();let _0x572665=_0x4e2887=>{const _0x3b3374=_0x4e9b;var _0x37588e,_0x181452;return(((_0x37588e=_0xa8efdc[_0x3b3374(0x2d6)](new _0x59c9a1(_0x4e2887[_0x3b3374(0x21f)])['id']))==null?void 0x0:_0x37588e[_0x3b3374(0x3de)])??!0x0)&&(((_0x181452=_0xa8efdc[_0x3b3374(0x2d6)](new _0x5ec863(_0x4e2887['unitId'],_0x4e2887['subUnitId'])['id']))==null?void 0x0:_0x181452[_0x3b3374(0x3de)])??!0x0);},_0x14ef50=_0xa0ada1=>_0xa0ada1['shapeId']&&_0x572665(_0xa0ada1)?_0x3dd584['getShapeDataById'](_0xa0ada1[_0x80b810(0x21f)],_0xa0ada1[_0x80b810(0x1c5)],_0xa0ada1[_0x80b810(0x19c)])??null:null,_0x12e8cd=()=>{const _0xc650b3=_0x80b810;let _0x1b10d4=_0x9aac40[_0xc650b3(0x2a0)](),_0x309b91=_0x1b10d4[_0xc650b3(0x1ae)]===0x1?_0x1b10d4[0x0]:null;return(_0x309b91==null?void 0x0:_0x309b91[_0xc650b3(0x185)])===_0x54d53a[_0xc650b3(0x1b1)]&&_0x309b91[_0xc650b3(0x21f)]===_0x40c7bc[_0xc650b3(0x21f)]?{'unitId':_0x309b91[_0xc650b3(0x21f)],'subUnitId':_0x309b91[_0xc650b3(0x1c5)],'shapeId':_0x309b91[_0xc650b3(0x237)]}:null;};this[_0x80b810(0x14a)](_0x3ed075(_0x40c7bc,_0x44ddb6,{'changes$':_0xa89b72(_0x9aac40[_0x80b810(0x2fc)],_0x5c1976[_0x80b810(0x256)],_0xa8efdc[_0x80b810(0x236)]),'isActive':()=>{const _0x185998=_0x80b810;var _0x2437c7;return((_0x2437c7=_0x5ef861['getFocusedUnit']())==null?void 0x0:_0x2437c7['getUnitId']())===_0x40c7bc[_0x185998(0x21f)]&&!_0x3a2e6d[_0x185998(0x2c8)](_0x3e7b7b)&&_0x9aac40[_0x185998(0x2a0)]()[_0x185998(0x22e)](_0x5a6ae2=>_0x5a6ae2['unitId']===_0x40c7bc['unitId']);},'getSelectedTarget':_0x12e8cd,'getSource':()=>{let _0xea436f=_0x12e8cd();return _0xea436f?_0x14ef50(_0xea436f):null;},'getTarget':_0x44c761=>{const _0x5dc66b=_0x80b810;let _0x24d12b=_0x40c7bc[_0x5dc66b(0x229)][_0x5dc66b(0x2fa)](new _0x145e25(_0x44c761[_0x5dc66b(0x3d2)],_0x44c761['offsetY']));if(!(_0x24d12b instanceof Er))return null;let _0xd5c66c={'unitId':_0x40c7bc[_0x5dc66b(0x21f)],'subUnitId':_0x24d12b[_0x5dc66b(0x1c5)],'shapeId':_0x24d12b[_0x5dc66b(0x19c)]};return _0x572665(_0xd5c66c)?_0xd5c66c:null;},'getShape':_0x14ef50,'update':(_0x529e3b,_0x1da10f,_0x17e842)=>_0x3796e8[_0x80b810(0x1ac)](K['id'],{..._0x529e3b,'shapeData':_0x17e842,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x1da10f}})}));}};ba=Y([J(0x1,_0x318433(_0x131d68)),J(0x2,_0x318433(_0x5594a6)),J(0x3,_0x318433($)),J(0x4,_0x1f50fa),J(0x5,_0x595744),J(0x6,_0x21e25a),J(0x7,_0x10d99e),J(0x8,_0x4aa13b)],ba);const xa='sheets-shape-contextual-ribbon';let Sa=class extends _0x2c7179{constructor(_0xeebf04,_0x248079,_0x80f52a,_0x5252ad,_0x5b3e8e,_0x562ae6){const _0x5537a1=_0x244912;super(),this[_0x5537a1(0x3f7)]=_0xeebf04,this[_0x5537a1(0x260)]=_0x248079,this[_0x5537a1(0x239)]=_0x80f52a,this['_univerInstanceService']=_0x5252ad,this[_0x5537a1(0x2f0)]=_0x5b3e8e,this[_0x5537a1(0x3c0)]=_0x562ae6,q(this,_0x5537a1(0x18c),!0x1),this[_0x5537a1(0x3f7)][_0x5537a1(0x390)](Fi),this[_0x5537a1(0x14a)](_0x21ce23(this['_drawingManagerService']['focus$'][_0x5537a1(0x305)](()=>this[_0x5537a1(0x1ff)]()))),this[_0x5537a1(0x1ff)]();}[_0x244912(0x346)](){const _0x2410f4=_0x244912;this[_0x2410f4(0x3c0)][_0x2410f4(0x1c3)](!0x1,xa),this[_0x2410f4(0x355)](),super['dispose']();}[_0x244912(0x1ff)](){const _0x3c25d8=_0x244912;var _0x8b4c8b;let _0x581f6d=this['_drawingManagerService'][_0x3c25d8(0x2a0)](),_0x35d3f7=_0x581f6d[_0x3c25d8(0x1ae)]===0x1?_0x581f6d[0x0]:void 0x0;if((_0x35d3f7==null?void 0x0:_0x35d3f7[_0x3c25d8(0x185)])!==_0x54d53a['DRAWING_SHAPE']||this[_0x3c25d8(0x321)]['getUnitType'](_0x35d3f7[_0x3c25d8(0x21f)])!==_0x37e7a9['UNIVER_SHEET']){this[_0x3c25d8(0x3c0)]['setFallbackVisible'](!0x1,xa),this[_0x3c25d8(0x355)]();return;}let _0x3bf827=(_0x8b4c8b=this[_0x3c25d8(0x2f0)][_0x3c25d8(0x276)](_0x35d3f7['unitId']))==null?void 0x0:_0x8b4c8b[_0x3c25d8(0x341)]['getCanvasElement'](),_0x21c693=_0x570759(_0x3bf827)==='isolated';if(this[_0x3c25d8(0x3c0)]['setFallbackVisible'](_0x21c693,xa),_0x21c693){this[_0x3c25d8(0x355)]();return;}this[_0x3c25d8(0x18c)]||(this['_visible']=!0x0,this[_0x3c25d8(0x260)][_0x3c25d8(0x29e)](Nr,{'activate':!0x0}));}[_0x244912(0x355)](){const _0x184a8b=_0x244912;this['_visible']&&(this[_0x184a8b(0x18c)]=!0x1,this[_0x184a8b(0x260)][_0x184a8b(0x29b)](Nr),this['_ribbonService'][_0x184a8b(0x25a)]([]));}};Sa=Y([J(0x0,_0x2ed3c1),J(0x1,_0x313322),J(0x2,_0x1f50fa),J(0x3,_0x595744),J(0x4,_0xc8f10c),J(0x5,_0x318433(_0x11b9ca))],Sa);let Ca=class extends _0x2ed20c{constructor(_0x112954,_0x107550,_0x162349,_0x2bd615,_0x2efe43,_0x4c728e,_0x31f22f,_0x164ef4,_0x579346,_0x39c1ae){super(_0x112954,_0x107550,_0x162349,_0x2bd615,_0x2efe43,_0x4c728e,_0x31f22f,_0x164ef4,_0x579346,_0x39c1ae,{'componentKey':Fr,'editorUnitId':Pr});}};Ca=Y([J(0x1,_0x318433(_0x2f74d4)),J(0x2,_0x318433(_0x5908e1)),J(0x3,_0x318433(_0x1706ef)),J(0x4,_0x4aa13b),J(0x5,_0x318433(_0x181919)),J(0x6,_0x318433(_0x56b244)),J(0x7,_0x318433(_0x59811b)),J(0x8,_0x318433(_0x44ebf9)),J(0x9,_0x318433($))],Ca);let wa=class extends _0x2c7179{constructor(_0x145d88,_0x4deab1,_0x77944b,_0x177dec,_0x6ae884,_0x4261f7,_0x103cc9,_0xa91718,_0x490a3c,_0x5d0542,_0x2b66ce){const _0x423970=_0x244912;super(),this[_0x423970(0x321)]=_0x145d88,this['_sidebarService']=_0x4deab1,this[_0x423970(0x3f7)]=_0x77944b,this[_0x423970(0x288)]=_0x177dec,this[_0x423970(0x3b8)]=_0x6ae884,this[_0x423970(0x2d0)]=_0x4261f7,this[_0x423970(0x239)]=_0x103cc9,this[_0x423970(0x19d)]=_0xa91718,this[_0x423970(0x210)]=_0x490a3c,this[_0x423970(0x2f0)]=_0x5d0542,this[_0x423970(0x29f)]=_0x2b66ce,q(this,_0x423970(0x3af),null),q(this,_0x423970(0x22f),null),q(this,_0x423970(0x173),!0x1),q(this,_0x423970(0x3f2),0x0),q(this,_0x423970(0x28e),null),q(this,_0x423970(0x393),[]),this['_initMenu'](),this[_0x423970(0x14a)](this['_univerInstanceService'][_0x423970(0x25d)](_0x37e7a9[_0x423970(0x2c9)])[_0x423970(0x305)](_0x2d6442=>{const _0x482d17=_0x423970;if(!_0x2d6442){var _0x2eb705;(_0x2eb705=this[_0x482d17(0x3af)])==null||_0x2eb705[_0x482d17(0x346)]();}})),this[_0x423970(0x15c)](),this[_0x423970(0x1e5)](),this[_0x423970(0x14a)](this[_0x423970(0x29f)][_0x423970(0x256)][_0x423970(0x305)](_0x7f46fc=>{const _0x4ce7a1=_0x423970;_0x7f46fc&&this[_0x4ce7a1(0x39c)]();}));}[_0x244912(0x33e)](){const _0x16ca2b=_0x244912;this['_menuManagerService'][_0x16ca2b(0x390)](Li);}[_0x244912(0x1e5)](){const _0xf0e86b=_0x244912;this[_0xf0e86b(0x28e)]||=this[_0xf0e86b(0x14a)](_0x50a450(this[_0xf0e86b(0x2f0)],_0x37e7a9[_0xf0e86b(0x2c9)],_0x342b45=>this[_0xf0e86b(0x1c1)](_0x342b45)));}[_0x244912(0x1dd)](_0x457fd8,_0x1e78c2,_0xa4919f){const _0x596349=_0x244912;let _0x2c1393=this[_0x596349(0x288)][_0x596349(0x3e4)](_0x457fd8,_0x1e78c2,_0xa4919f),_0x30a1ef=this[_0x596349(0x288)][_0x596349(0x1fa)](_0x457fd8,_0x1e78c2,_0xa4919f);return _0x2c1393!==void 0x0&&_0x30a1ef!==void 0x0?{'shapeData':_0x30a1ef,'shapeId':_0xa4919f,'shapeType':_0x2c1393,'unitId':_0x457fd8,'subUnitId':_0x1e78c2,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x244912(0x39c)](){const _0x3cf0e2=_0x244912;this['_disposePopups'][_0x3cf0e2(0x2b3)](_0x132818=>_0x132818[_0x3cf0e2(0x346)]()),this[_0x3cf0e2(0x393)][_0x3cf0e2(0x1ae)]=0x0;}[_0x244912(0x1c1)](_0x318ab8){const _0x3c9117=_0x244912;let _0x363d3e=new _0x4cf05e();return _0x363d3e[_0x3c9117(0x1a3)](_0x318ab8['createControl$'][_0x3c9117(0x305)](()=>{const _0x726cdb=_0x3c9117;let _0x455ef1=_0x318ab8[_0x726cdb(0x2ba)]();if(this[_0x726cdb(0x39c)](),this[_0x726cdb(0x173)]||_0x455ef1[_0x726cdb(0x17a)]>0x1)return;let _0x5f1f90=_0x455ef1[_0x726cdb(0x196)]()[_0x726cdb(0x3ac)]()[_0x726cdb(0x3de)];if(!_0x5f1f90)return;let _0x272aa0=this[_0x726cdb(0x239)][_0x726cdb(0x28a)](_0x5f1f90[_0x726cdb(0x206)]);if(!_0x272aa0||_0x272aa0[_0x726cdb(0x185)]!==_0x54d53a[_0x726cdb(0x1b1)])return;let {unitId:_0x1ab823,subUnitId:_0x1ccc1c,drawingId:_0x884449,drawingType:_0x10e5be}=_0x272aa0,_0x3dd3fa=this[_0x726cdb(0x1dd)](_0x1ab823,_0x1ccc1c,_0x884449);if(!_0x3dd3fa)return;this[_0x726cdb(0x210)][_0x726cdb(0x234)](_0x15a415,!0x0);let _0x14a856=this['_renderManagerService']['getRenderUnitById'](_0x1ab823),_0x1035b5=((_0x14a856==null?void 0x0:_0x14a856[_0x726cdb(0x199)])===!0x1?_0x14a856['with'](_0xf74177):this[_0x726cdb(0x19d)])[_0x726cdb(0x29a)](_0x5f1f90,{'componentKey':Mr,'direction':_0x726cdb(0x175),'offset':[0x0,_0x574cac],'extraProps':{'unitId':_0x1ab823,'subUnitId':_0x1ccc1c,'drawingId':_0x884449,'drawingType':_0x10e5be,'shapeType':_0x3dd3fa['shapeType'],'shapeData':_0x3dd3fa[_0x726cdb(0x17d)]}});this[_0x726cdb(0x393)][_0x726cdb(0x399)](this[_0x726cdb(0x14a)](_0x1035b5)),this[_0x726cdb(0x239)][_0x726cdb(0x2a0)]()[_0x726cdb(0x2f4)](_0x581203=>_0x581203[_0x726cdb(0x21f)]===_0x1ab823&&_0x581203[_0x726cdb(0x1c5)]===_0x1ccc1c&&_0x581203[_0x726cdb(0x237)]===_0x884449)||this[_0x726cdb(0x239)]['focusDrawing']([{'unitId':_0x1ab823,'subUnitId':_0x1ccc1c,'drawingId':_0x884449}]);})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x26f)][_0x3c9117(0x305)](()=>{const _0x4c8ccd=_0x3c9117;this['_clearPopups'](),this[_0x4c8ccd(0x210)][_0x4c8ccd(0x234)](_0x15a415,!0x1),this[_0x4c8ccd(0x239)][_0x4c8ccd(0x1f3)](null);})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x226)][_0x3c9117(0x305)](()=>{const _0x5eeccf=_0x3c9117;this[_0x5eeccf(0x39c)]();})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x24c)][_0x3c9117(0x305)](()=>{const _0x2d996c=_0x3c9117;this[_0x2d996c(0x39c)]();})),_0x21ce23(()=>{const _0x216eea=_0x3c9117;_0x363d3e[_0x216eea(0x346)](),this[_0x216eea(0x39c)]();});}[_0x244912(0x15c)](){const _0x5addae=_0x244912;this[_0x5addae(0x14a)](this['_commandService'][_0x5addae(0x356)](_0x429436=>{const _0x5b811d=_0x5addae;if(_0x429436['id']===Lr['id']){let {unitId:_0x271089,subUnitId:_0x268c77,drawingId:_0x338793}=_0x429436[_0x5b811d(0x348)];this[_0x5b811d(0x3f2)]+=0x1,this[_0x5b811d(0x22f)]=this[_0x5b811d(0x1dd)](_0x271089,_0x268c77,_0x338793),this[_0x5b811d(0x39c)](),this[_0x5b811d(0x1e7)]();}if(_0x429436['id']===fa['id']&&(this['_activeShapeInfo']=null,this[_0x5b811d(0x208)]()),_0x429436['id']===_0x4fa39c['id']){let {unitId:_0x2277e3,subUnitId:_0x45bda2,shapeId:_0x635e5e}=_0x429436[_0x5b811d(0x348)];if(this[_0x5b811d(0x22f)]&&this[_0x5b811d(0x22f)][_0x5b811d(0x19c)]===_0x635e5e){let _0x22b2cf=this[_0x5b811d(0x1dd)](_0x2277e3,_0x45bda2,_0x635e5e);_0x22b2cf&&(this[_0x5b811d(0x3f2)]+=0x1,_0x22b2cf[_0x5b811d(0x345)]=this[_0x5b811d(0x3f2)],this[_0x5b811d(0x22f)]=_0x22b2cf,this[_0x5b811d(0x173)]&&this[_0x5b811d(0x1e7)]());}}})),this[_0x5addae(0x14a)](this[_0x5addae(0x239)][_0x5addae(0x2fc)][_0x5addae(0x305)](_0x5a16c0=>{const _0x3784ca=_0x5addae;if(this[_0x3784ca(0x173)]===!0x1)return;if(_0x5a16c0[_0x3784ca(0x1ae)]===0x0){this[_0x3784ca(0x22f)]=null,this[_0x3784ca(0x208)]();return;}if(_0x5a16c0[_0x3784ca(0x1ae)]===0x1&&_0x5a16c0[0x0][_0x3784ca(0x185)]===_0x54d53a[_0x3784ca(0x1b1)]&&(this[_0x3784ca(0x3f2)]+=0x1,this[_0x3784ca(0x22f)]=this['_getShapeInfo'](_0x5a16c0[0x0]['unitId'],_0x5a16c0[0x0][_0x3784ca(0x1c5)],_0x5a16c0[0x0]['drawingId']),this[_0x3784ca(0x22f)])){this['_openShapeEditPanel']();return;}let _0x2bf8be=_0x5a16c0[_0x3784ca(0x150)](_0x5287fb=>_0x5287fb['drawingType']===_0x54d53a[_0x3784ca(0x1b1)]);if(_0x5a16c0[_0x3784ca(0x1ae)]>0x1&&_0x2bf8be[_0x3784ca(0x1ae)]===_0x5a16c0['length']){if(this[_0x3784ca(0x3f2)]+=0x1,this[_0x3784ca(0x22f)]=this[_0x3784ca(0x1dd)](_0x5a16c0[0x0][_0x3784ca(0x21f)],_0x5a16c0[0x0][_0x3784ca(0x1c5)],_0x5a16c0[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x3784ca(0x1e7)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x3784ca(0x22f)]=this[_0x3784ca(0x1dd)](_0x5a16c0[0x0][_0x3784ca(0x21f)],_0x5a16c0[0x0]['subUnitId'],_0x5a16c0[0x0][_0x3784ca(0x237)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x3784ca(0x159)]=!0x0,this[_0x3784ca(0x1e7)]();return;}}this[_0x3784ca(0x208)]();}));}['_openShapeEditPanel'](){const _0x428dd5=_0x244912;this[_0x428dd5(0x22f)]&&(this['_sidebarDisposable']=this[_0x428dd5(0x2b8)][_0x428dd5(0x170)]({'id':Ar,'header':{'title':this[_0x428dd5(0x3b8)]['t'](_0x428dd5(0x299))},'width':0x184,'children':{'label':Ar,...this['_activeShapeInfo']},'onClose':()=>{const _0x2fcca0=_0x428dd5;this[_0x2fcca0(0x239)]['focusDrawing'](null),this[_0x2fcca0(0x210)][_0x2fcca0(0x234)](_0x15a415,!0x1),this[_0x2fcca0(0x3af)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x1a2bfd=_0x244912;this['_isOpenedShapeEditPanel']=!0x1,this['_sidebarService']['close'](Ar),this[_0x1a2bfd(0x3af)]=null,this[_0x1a2bfd(0x210)][_0x1a2bfd(0x234)](_0x15a415,!0x1),this[_0x1a2bfd(0x239)]['focusDrawing'](null);}};wa=Y([J(0x0,_0x595744),J(0x1,_0x318433(_0x26d1b3)),J(0x2,_0x2ed3c1),J(0x3,_0x318433(_0x5594a6)),J(0x4,_0x318433(_0x3f1353)),J(0x5,_0x4aa13b),J(0x6,_0x1f50fa),J(0x7,_0x318433(_0xf74177)),J(0x8,_0x21e25a),J(0x9,_0xc8f10c),J(0xa,_0x318433($))],wa);let Ta=class extends _0x3c4eb2{constructor(_0x46e6a4=Hi,_0x7d01f4,_0x512d32,_0xff2025,_0x21ba60){const _0x324342=_0x244912;super(),this[_0x324342(0x3f8)]=_0x46e6a4,this[_0x324342(0x391)]=_0x7d01f4,this[_0x324342(0x2d0)]=_0x512d32,this[_0x324342(0x2eb)]=_0xff2025,this[_0x324342(0x2f0)]=_0x21ba60;let {..._0x1fd5d8}=_0x845994({},Hi,this[_0x324342(0x3f8)]);this[_0x324342(0x2eb)][_0x324342(0x2ea)](Vi,_0x1fd5d8),this[_0x324342(0x2fe)]();}[_0x244912(0x2f8)](){const _0x35fdb7=_0x244912;this[_0x35fdb7(0x2f0)]['registerRenderModule'](_0x37e7a9['UNIVER_DOC'],[Ca]),_0x45a757(this[_0x35fdb7(0x391)],[[wa],[ta],[X],[ca]]);}[_0x244912(0x3bb)](){const _0x253d39=_0x244912;this[_0x253d39(0x391)][_0x253d39(0x1e0)](wa)[_0x253d39(0x1e5)]();}['onReady'](){const _0x57d1b5=_0x244912;[[ia],[Z],[aa]][_0x57d1b5(0x2b3)](_0x5d6fcc=>this[_0x57d1b5(0x391)][_0x57d1b5(0x1a3)](_0x5d6fcc)),_0x45a757(this[_0x57d1b5(0x391)],[[aa],[Z]]),this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[ia]),this[_0x57d1b5(0x2f0)]['registerRenderModule'](_0x37e7a9[_0x57d1b5(0x2c9)],[Ui]),this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[sa]),this['_renderManagerService'][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[Yi]),this['disposeWithMe'](this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[ba]));}[_0x244912(0x2ad)](){const _0x5859ce=_0x244912;this[_0x5859ce(0x391)][_0x5859ce(0x1a3)]([ya]),this['_injector'][_0x5859ce(0x1e0)](ya);let _0x43a425=this['_injector'];[[wa],[ta],[X],[ca],[ua],[$],[ea],[Q],[la],[Sa]][_0x5859ce(0x2b3)](_0x5d8f7f=>_0x43a425[_0x5859ce(0x1a3)](_0x5d8f7f)),_0x45a757(this[_0x5859ce(0x391)],[[wa],[ta],[X],[ua],[$],[ea],[Q],[la],[Sa]]);}[_0x244912(0x2fe)](){const _0xe0ebd9=_0x244912;[kr,K,fa,Lr,Ir,Or,zr,Br][_0xe0ebd9(0x2b3)](_0x33b696=>this['disposeWithMe'](this[_0xe0ebd9(0x2d0)][_0xe0ebd9(0x293)](_0x33b696)));}};q(Ta,_0x244912(0x1a2),_0x37e7a9['UNIVER_SHEET']),q(Ta,_0x244912(0x1f9),_0x244912(0x24a)),q(Ta,_0x244912(0x3ff),Ri),q(Ta,_0x244912(0x345),zi),Ta=Y([_0x247bab(_0x5c2b4a,_0x21e271,_0x31be2a,_0x1df8f2,_0x48dbc2,_0x3d2d07,_0x99abe1,_0x572c12,_0x26432c,_0x57b4f0,_0x41a1bc,_0x30d40e,_0x5cbd77),J(0x1,_0x318433(_0x54646c)),J(0x2,_0x4aa13b),J(0x3,_0x20789e),J(0x4,_0xc8f10c)],Ta);export{Fi as SheetsShapeUIContextualRibbonSchema,Li as SheetsShapeUIMenuSchema,da as UniverSheetsShapeMobileUIPlugin,Ta as UniverSheetsShapeUIPlugin};
1
+ const _0x196d4a=_0x165f;(function(_0xecfdf6,_0x233a24){const _0x2918db=_0x165f,_0x2a4a20=_0xecfdf6();while(!![]){try{const _0x4172fa=parseInt(_0x2918db(0x1a4))/0x1+-parseInt(_0x2918db(0x270))/0x2*(parseInt(_0x2918db(0x34b))/0x3)+-parseInt(_0x2918db(0x1e4))/0x4*(parseInt(_0x2918db(0x1a8))/0x5)+-parseInt(_0x2918db(0x225))/0x6*(-parseInt(_0x2918db(0x244))/0x7)+-parseInt(_0x2918db(0x296))/0x8+-parseInt(_0x2918db(0x22e))/0x9*(-parseInt(_0x2918db(0x161))/0xa)+parseInt(_0x2918db(0xd2))/0xb;if(_0x4172fa===_0x233a24)break;else _0x2a4a20['push'](_0x2a4a20['shift']());}catch(_0x50c10e){_0x2a4a20['push'](_0x2a4a20['shift']());}}}(_0x376e,0x8fa22));import{FormulaShapeAnimationController as _0x2168d8,MobileShapeEditorService as _0x456574,SHAPE_CHANGE_PICKER_COMPONENT as _0x167ae2,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x3cfe88,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x1e40bd,ShapeEditPanel as _0x33339d,ShapeFloatingToolbar as _0x593a17,ShapeFloatingToolbarService as _0x3c5765,ShapeFloatingToolbarToggleFactory as _0xbc1b39,ShapeFormulaRibbonControl as _0x71cd10,ShapeGroupEnum as _0x1c44ee,ShapePickerDropdown as _0x1f8e20,ShapePickerPanel as _0x582181,ShapeQuickStyleGallery as _0x1f258e,ShapeStyleRibbonControl as _0x3da966,ShapeTextEditorContainer as _0x3d22ef,ShapeTextFloatMenuRenderControllerBase as _0x2a6fb9,ShapeTextFloatToolbar as _0x376b8a,ShapeTextHyperLinkHoverController as _0x581d74,ShapeTextHyperLinkInfo as _0x260c61,ShapeTextHyperLinkPopupService as _0x4a87e8,ShapeTextRibbonControl as _0x1d4f6a,ToggleShapeFloatingToolbarOperation as _0xb7e748,UniverShapeEditorMobileUIPlugin as _0x36ca49,UniverShapeEditorUIPlugin as _0x2d9bfc,activateDrawingObject as _0x526d99,bindRenderTransformerLifecycle as _0x37fb80,buildShapeTextDataUpdate as _0x5a6892,clearActiveDrawingObjects as _0x23bd6c,createShapeTextHyperLinkRegions as _0xd426f0,drawFormulaShapeAnimationLayers as _0x508912,getDrawingTypeNameKey as _0x1c437a,getTextModel as _0x41ef0e,getTextStyle as _0x543814,normalizeShapeTextModel as _0x26ff51,plainShapeTextToDocumentData as _0x701120,prepareShapeTextDocumentData as _0xda5bea,registerShapeFormatPainter as _0x1deb41,resolveFormulaShapeAutoFitSize as _0x3eabcd,resolveShapeContextualRibbonHostMode as _0x2d319f,resolveShapeTextDocumentPageHeight as _0x378f58,resolveShapeTextDocumentRenderLayout as _0x42cb9f,resolveShapeTextEditorBehaviorShapeData as _0x57e264,resolveShapeTextEditorWrapStrategy as _0x2d8965,resolveShapeTextHyperLinkAt as _0x1cd5fe,resolveShapeTextHyperLinkObject as _0x4807f9,shouldAllowShapeTextEditorHostSizeShrink as _0x2662f6,shouldClipShapeTextDocument as _0x1e5d0c,useFormulaShapeToolbar as _0x223293}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x1db2df,ContextMenuGroup as _0x2e5a9f,ContextMenuPosition as _0x3e837e,FloatingObjectToolbarPosition as _0x5d07c3,FormatPainterSessionService as _0x2a6051,IMenuManagerService as _0x866cac,IRibbonService as _0x2b125b,ISidebarService as _0x6f2b47,IconManager as _0x4f5c3f,MenuItemType as _0x1e3d30,MenuManagerPosition as _0x28d937,RibbonInsertGroup as _0x445b4b,UndoRedoGroupService as _0x41ccec,UniverMobileUIPlugin as _0x455a57,getMenuHiddenObservable as _0x2f5a15,useDependency as _0x508bbd,useObservable as _0x49d454}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x178dd8,ImageSourceTypeEnum as _0x5497a9,ShapeArrowSizeEnum as _0x2f917e,ShapeArrowTypeEnum as _0x3f977e,ShapeDefaultConfig as _0x1a4d77,ShapeFillEnum as _0xcb9b68,ShapeLineTypeEnum as _0x291db2,ShapeModel as _0x2d7016,ShapeRenderModeEnum as _0x306e25,ShapeTypeEnum as _0xc016ca,computeConnectorRouteLayout as _0x2c4018,getBasicShapeRotateBound as _0x5c6439,isConnectorShape as _0x22e615,isCurvedConnectorShape as _0x18c946,routeConnectorLineShape as _0x527e88}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x1a5fdd,UniverShapeEditorPlugin as _0x5aafc6,applyQuickStyleToShapeData as _0x5725f8,cloneShapeDataForType as _0x1bfbb7,createShapeFormulaDocument as _0x34e483,createShapeTextBoxShapeData as _0x474a1d,getShapeQuickStylePreset as _0x321892,getShapeQuickStyleType as _0x50f87c,resolveActiveShapeQuickStylePresetId as _0x311965}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x258890,InsertSheetsShapeMutation as _0x14a389,RemoveSheetsShapeMutation as _0x39b912,SetShapeDrawingDataCommand as _0x1b5825,SheetsShapeService as _0x13b053,ToggleSheetsShapeFlipCommand as _0x3e0bbc,UniverSheetsShapePlugin as _0x147e49,UpdateConnectorRelationCommand as _0x31e366,UpdateLineShapeResizeCommand as _0x402c2c,UpdateSheetsShapeDataMutation as _0x3ebd56}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x3190c7,CommandType as _0x36ba27,DependentOn as _0x392549,Disposable as _0x116f11,DisposableCollection as _0x5afd59,DocumentDataModel as _0x124ef9,DrawingTypeEnum as _0x123aa0,FOCUSING_COMMON_DRAWINGS as _0x2edc38,FOCUSING_SHAPE_TEXT_EDITOR as _0x578359,HorizontalAlign as _0x3a8480,ICommandService as _0x153d8f,IConfigService as _0x389518,IContextService as _0x9bf8bb,IImageIoService as _0x530352,IPermissionService as _0x51e1fb,IURLImageService as _0x1e7e45,IUndoRedoService as _0x2e44ea,IUniverInstanceService as _0x46c185,Inject as _0x14bfc1,Injector as _0x14ee4a,LocaleService as _0x407e83,Plugin as _0x1aacd5,UniverInstanceType as _0x204504,VerticalAlign as _0x1b272d,createInternalEditorID as _0x36e2be,generateRandomId as _0xc50b92,merge as _0x30830d,registerDependencies as _0x4a2ba7,toDisposable as _0x46ac89,touchDependencies as _0x1fd115}from'@univerjs/core';import{CopySheetCommand as _0x3a4496,RemoveSheetCommand as _0x2c4408,SheetInterceptorService as _0x2d67e2,SheetPermissionCheckController as _0x124f6a,SheetSkeletonService as _0x2c5708,SheetsSelectionsService as _0xf5394,UniverSheetsPlugin as _0x3474e2,WorkbookCopyPermission as _0xba4e61,WorkbookEditablePermission as _0x126772,WorksheetCopyPermission as _0x5cfb67,WorksheetEditPermission as _0x4b3b52,attachRangeWithCoord as _0x14fc19,discreteRangeToRange as _0xf91a3d,getSheetCommandTarget as _0x3e1b5c}from'@univerjs/sheets';import{IDrawingManagerService as _0x446eb2,SetDrawingSelectedOperation as _0x4ec468,UniverDrawingPlugin as _0x3f0c63,getDrawingShapeKeyByDrawingSearch as _0x934411,getOrCreateDrawingCopyPlan as _0x71372e}from'@univerjs/drawing';import{CURSOR_TYPE as _0x35998d,Circle as _0x37d975,DRAWING_OBJECT_LAYER_INDEX as _0x22b3ea,DocumentSkeleton as _0x33ff77,DocumentViewModel as _0x25c560,Documents as _0x2d00cc,IRenderManagerService as _0x4dadf2,Image as _0x47dbec,RENDER_CLASS_TYPE as _0x57820c,SHEET_VIEWPORT_KEY as _0x220776,Shape as _0x35d449,Transform as _0x29b58e,UniverRenderEnginePlugin as _0x2196c4,Vector2 as _0x2163b6}from'@univerjs/engine-render';import{COPY_TYPE as _0x35c24e,ISheetClipboardService as _0x4c557e,PREDEFINED_HOOK_NAME as _0x225c7f,SheetCanvasPopManagerService as _0x5aaa90,SheetPrintInterceptorService as _0x4ffadc,SheetScrollManagerService as _0x538622,SheetSkeletonManagerService as _0x7b1452,UniverSheetsMobileUIPlugin as _0x58390f,UniverSheetsUIPlugin as _0x5d29eb,deriveStateFromActiveSheet$ as _0x548ef1,getCurrentRangeDisable$ as _0x5fe679,getViewportByCell as _0x2e8aa3}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x494d52,EMPTY as _0x929a31,Observable as _0x4bb236,map as _0x4fdaa9,merge as _0x370b6b,of as _0x322e8d,startWith as _0x2cd3b2,switchMap as _0x111568}from'rxjs';import{DrawingCommonPanel as _0x12c81c,DrawingImageClipService as _0x264f1f,DrawingRenderService as _0x8b8e3,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x5c8b25,MobileObjectListPanel as _0x3af157,OBJECT_LIST_FLOATING_SECTION_ID as _0x481a1b,ObjectListPanelBase as _0x481011,UniverDrawingUIPlugin as _0x2c6b9e,getCurrentUnitInfo as _0x4f2817,getObjectListPanelSectionIdForDrawingType as _0x32c6c6,insertGroupObject as _0x197759}from'@univerjs/drawing-ui';import{MobileDropdown as _0x400434}from'@univerjs/design';import{Fragment as _0x1ba972,jsx as _0x39d578,jsxs as _0x13ab6}from'react/jsx-runtime';import{DrawingApplyType as _0x5e0f69,ISheetDrawingService as _0x5e26dc,RemoveSheetDrawingCommand as _0x3b039,SetDrawingApplyMutation as _0x164c96,SetDrawingArrangeCommand as _0x4b43eb,SetSheetDrawingCommand as _0x24e472,UniverSheetsDrawingPlugin as _0x44c72a,transformToAxisAlignPosition as _0x3a2b93,transformToDrawingPosition as _0x15205d}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x263fcc}from'@univerjs-pro/license';import{DocInterceptorService as _0x306ef4,DocSelectionManagerService as _0x307326,UniverDocsPlugin as _0x589f6d}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x372923,DocEventManagerService as _0x1248a7,DocRenderController as _0x300e24,DocSelectionRenderService as _0x338572,UniverDocsUIPlugin as _0x3eedd5}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x169b3e,SheetsDrawingGroupCopyPasteController as _0x1b88b8,UniverSheetsDrawingMobileUIPlugin as _0x1dd5e1,UniverSheetsDrawingUIPlugin as _0x20ed6b}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x498df7,FlipHorizontalIcon as _0x654af8,FlipVerticalIcon as _0x2d018e,MoveDownIcon as _0x158b87,MoveUpIcon as _0x1d98f5,ObjectLayersIcon as _0x4dbc57,ShapeFormatSettingIcon as _0x163347,TopmostIcon as _0x172d21}from'@univerjs/icons';import{memo as _0x4c612b,useEffect as _0x5902a2,useMemo as _0xe812e8,useReducer as _0xb0efb1,useState as _0x2d8807}from'react';function Er(_0x3a9fc5,_0x7a923d){const _0x563c90=_0x165f;let _0x136800={};for(let _0x4e367f of Object[_0x563c90(0x12c)](_0x7a923d)){let _0x1a506c=_0x7a923d[_0x4e367f],_0x20503a=_0x3a9fc5[_0x4e367f];if(_0x20503a===void 0x0){_0x136800[_0x4e367f]=void 0x0;continue;}_0x136800[_0x4e367f]=typeof _0x1a506c=='object'&&_0x1a506c&&!Array[_0x563c90(0x318)](_0x1a506c)&&typeof _0x20503a=='object'&&_0x20503a&&!Array[_0x563c90(0x318)](_0x20503a)?Er(_0x20503a,_0x1a506c):_0x20503a;}return _0x136800;}const K={'type':_0x36ba27['COMMAND'],'id':_0x196d4a(0x389),'handler':(_0x597911,_0x155f8b)=>{const _0x5d4bae=_0x196d4a;let _0x35ca82=_0x597911['get'](_0x13b053),{unitId:_0x3dcd04,subUnitId:_0x21dc77,shapeType:_0x503960,shapeId:_0x160f51,shapeData:_0x4906a4,replaceShapeData:_0x99e09b,oldShapeJSON:_0x48af13}=_0x155f8b;if(!_0x35ca82[_0x5d4bae(0xe6)](_0x3dcd04,_0x21dc77,_0x160f51))return!0x1;let _0x2e5fa6=_0x597911[_0x5d4bae(0x100)](_0x153d8f),_0x5adc63=_0x597911['get'](_0x2e44ea),{oldShapeType:_0x3d9b29,oldShapeData:_0x4d4a1d={}}=_0x48af13,_0x3f218e=_0x99e09b?_0x4d4a1d:Er(_0x4d4a1d,_0x4906a4||{}),_0x7f31a={'id':_0x3ebd56['id'],'params':{'unitId':_0x3dcd04,'subUnitId':_0x21dc77,'shapeId':_0x160f51,'shapeType':_0x503960,'shapeData':_0x4906a4,'replace':_0x99e09b}},_0x1b95c2={'id':_0x3ebd56['id'],'params':{'unitId':_0x3dcd04,'subUnitId':_0x21dc77,'shapeId':_0x160f51,'shapeType':_0x3d9b29,'shapeData':_0x3f218e,'replace':_0x99e09b}};return _0x2e5fa6['syncExecuteCommand'](_0x7f31a['id'],_0x7f31a[_0x5d4bae(0x1a9)])?(_0x5adc63[_0x5d4bae(0x319)]({'unitID':_0x3dcd04,'undoMutations':[_0x1b95c2],'redoMutations':[_0x7f31a]}),!0x0):!0x1;}};function Dr(_0x22bc28,_0x79c400,_0x12c600,_0x601944,_0x270560,_0x40f0e2){let _0x3e9c6d={'unitId':_0x79c400,'subUnitId':_0x12c600,'shapeId':_0x601944,'shapeData':_0x40f0e2,'oldShapeJSON':_0x270560};return _0x22bc28['executeCommand'](K['id'],_0x3e9c6d);}function Or(_0x5ca83d,_0x199340,_0x23c6c0,_0x562590,_0x36408b,_0xdeb612){let _0x61b63c={'unitId':_0x199340,'subUnitId':_0x23c6c0,'shapeId':_0x562590,'shapeData':_0xdeb612,'oldShapeJSON':_0x36408b};return _0x5ca83d['executeCommand'](K['id'],_0x61b63c);}function kr(_0x466869){'@babel/helpers - typeof';const _0x102716=_0x196d4a;return kr=typeof Symbol==_0x102716(0x1d1)&&typeof Symbol[_0x102716(0x338)]==_0x102716(0x1ce)?function(_0x472c24){return typeof _0x472c24;}:function(_0x33db06){const _0x4e8947=_0x102716;return _0x33db06&&typeof Symbol==_0x4e8947(0x1d1)&&_0x33db06[_0x4e8947(0x1f6)]===Symbol&&_0x33db06!==Symbol[_0x4e8947(0x23b)]?'symbol':typeof _0x33db06;},kr(_0x466869);}function Ar(_0x28774b,_0x229917){const _0x10aafb=_0x196d4a;if(kr(_0x28774b)!=_0x10aafb(0x1dd)||!_0x28774b)return _0x28774b;var _0x2fc052=_0x28774b[Symbol[_0x10aafb(0x29b)]];if(_0x2fc052!==void 0x0){var _0x5d8e58=_0x2fc052[_0x10aafb(0x370)](_0x28774b,_0x229917||'default');if(kr(_0x5d8e58)!=_0x10aafb(0x1dd))return _0x5d8e58;throw TypeError(_0x10aafb(0x28d));}return(_0x229917==='string'?String:Number)(_0x28774b);}function jr(_0x2f6fa8){const _0x44cebe=_0x196d4a;var _0x14283b=Ar(_0x2f6fa8,'string');return kr(_0x14283b)==_0x44cebe(0x1ce)?_0x14283b:_0x14283b+'';}function q(_0x545c5a,_0x3fae1e,_0x26ff97){const _0x16d628=_0x196d4a;return(_0x3fae1e=jr(_0x3fae1e))in _0x545c5a?Object[_0x16d628(0x15c)](_0x545c5a,_0x3fae1e,{'value':_0x26ff97,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x545c5a[_0x3fae1e]=_0x26ff97,_0x545c5a;}function Mr(_0xb474a3,_0x35a9e0,_0x14e513){const _0x3ed018=_0x196d4a;let _0x2d42d2={..._0x35a9e0,'dataModel':{..._0x35a9e0[_0x3ed018(0xce)]??{},..._0x14e513?{'doc':_0x14e513}:null}},_0x1a1d74=_0x57e264(_0xb474a3,_0x2d42d2),_0x2a0f87=_0x2d8965(_0x1a1d74);return{'clip':_0x1e5d0c(_0x1a1d74,_0x2a0f87),'wrapStrategy':_0x2a0f87};}var J=class extends _0x35d449{constructor(_0x105451,_0x29128d){const _0x53e79d=_0x196d4a;super(_0x105451,_0x29128d),q(this,_0x53e79d(0x13e),[]),q(this,'_props',void 0x0),q(this,_0x53e79d(0x1f5),new _0x2168d8(()=>this[_0x53e79d(0xe5)](!0x0),()=>this[_0x53e79d(0x1a5)]())),q(this,_0x53e79d(0x360),!0x0),q(this,_0x53e79d(0x2e5),_0x123aa0['DRAWING_SHAPE']),q(this,_0x53e79d(0x27e),!0x0),this[_0x53e79d(0x22b)]={..._0x29128d},this[_0x53e79d(0x1f5)][_0x53e79d(0x320)](_0x29128d[_0x53e79d(0x332)],_0x29128d[_0x53e79d(0x36e)]!==!0x1),this['_init'](),this[_0x53e79d(0x1a5)]();}[_0x196d4a(0x293)](){const _0x1fd58b=_0x196d4a;this['onTransformChange$'][_0x1fd58b(0xcf)](_0x5bfa42=>{this['_updateSrcRectByTransform'](_0x5bfa42);});}[_0x196d4a(0x2d9)](_0x3eaec4){const _0x1685c2=_0x196d4a;this[_0x1685c2(0x22b)][_0x1685c2(0x278)]=_0x3eaec4;}['resolveHyperLinkAt'](_0x344b1c){const _0x88830f=_0x196d4a;if(this[_0x88830f(0x22b)]['isEditing'])return null;let _0x31ded1=this[_0x88830f(0x2fd)](_0x344b1c),{width:_0x323786,height:_0x2fbffa}=this[_0x88830f(0x294)]();return _0x1cd5fe(this['_hyperLinkRegions'],{'x':(this[_0x88830f(0x362)]?-_0x31ded1['x']:_0x31ded1['x'])+_0x323786/0x2,'y':_0x31ded1['y']+_0x2fbffa/0x2});}[_0x196d4a(0x321)](_0x4f4f05){const _0x4cb971=_0x196d4a;this[_0x4cb971(0x22b)][_0x4cb971(0x146)]=_0x4f4f05,this[_0x4cb971(0xe5)](!0x0);}[_0x196d4a(0x379)](_0x6841ea,_0x30cd3d=!0x0){const _0x1233f0=_0x196d4a;this[_0x1233f0(0x1f5)][_0x1233f0(0x320)](_0x6841ea,_0x30cd3d),this[_0x1233f0(0x22b)][_0x1233f0(0x332)]=_0x6841ea,this[_0x1233f0(0x1a5)](),this[_0x1233f0(0xe5)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x5374bc=_0x196d4a;let _0x5a21d6=this[_0x5374bc(0x22b)][_0x5374bc(0x1aa)],_0x2d7d68=_0x5a21d6[_0x5374bc(0x23f)](),_0x5bd4dc=_0x26ff51(_0x2d7d68==null?void 0x0:_0x2d7d68[_0x5374bc(0xce)]),_0x588b03=_0x5bd4dc==null?void 0x0:_0x5bd4dc[_0x5374bc(0xeb)],_0x2e03e2=this[_0x5374bc(0x1f5)][_0x5374bc(0x224)]();if(!_0x588b03||_0x2e03e2[_0x5374bc(0x1bc)]===0x0)return;_0x5a21d6['updateContext']({'width':this[_0x5374bc(0x2df)],'height':this[_0x5374bc(0x2b9)]});let _0xe25ff=_0x3eabcd({'documentData':_0x2e03e2[_0x5374bc(0x2f0)](_0x2ed33a=>_0x34e483(_0x588b03,_0x2ed33a)),'height':this[_0x5374bc(0x2b9)],'shapeData':_0x5a21d6[_0x5374bc(0x1db)](),'textRect':_0x5a21d6[_0x5374bc(0x274)]({'left':0x0,'top':0x0,'width':this[_0x5374bc(0x2df)],'height':this[_0x5374bc(0x2b9)]}),'width':this[_0x5374bc(0x2df)]});if(_0xe25ff){var _0x23d213;this['resize'](_0xe25ff[_0x5374bc(0x2df)],_0xe25ff[_0x5374bc(0x2b9)]),(_0x23d213=this[_0x5374bc(0x1a0)]())==null||(_0x23d213=_0x23d213[_0x5374bc(0x19f)]())==null||_0x23d213[_0x5374bc(0x226)]();}}get[_0x196d4a(0x263)](){const _0x200e38=_0x196d4a;return this[_0x200e38(0x22b)][_0x200e38(0x263)];}get['subUnitId'](){const _0x4a5ba4=_0x196d4a;return this[_0x4a5ba4(0x22b)][_0x4a5ba4(0x2f3)];}[_0x196d4a(0x2ea)](_0x18780f){const _0x33e6a5=_0x196d4a;if(this[_0x33e6a5(0x22b)][_0x33e6a5(0x18c)]==null||!this[_0x33e6a5(0x360)])return;let {width:_0x87ee0,height:_0x24c264}=this,{width:_0x44bdac=0x0,height:_0x38ac7a=0x0}=_0x18780f['preValue'],{left:_0x21f00e=0x0,top:_0x1e02e4=0x0,right:_0x52e275=0x0,bottom:_0x257f07=0x0}=this['_props']['srcRect'],_0x31cc0c=_0x21f00e,_0x376d62=_0x1e02e4,_0x3a14c6=_0x52e275,_0x2869fb=_0x257f07,_0x50ee32=!0x1;if(_0x44bdac!==0x0&&_0x44bdac!==_0x87ee0){let _0x1f2afd=_0x21f00e/_0x44bdac,_0xd3a4eb=_0x52e275/_0x44bdac;_0x31cc0c=_0x87ee0*_0x1f2afd,_0x3a14c6=_0x87ee0*_0xd3a4eb,_0x50ee32=!0x0;}if(_0x38ac7a!==0x0&&_0x38ac7a!==_0x24c264){let _0x5a9520=_0x1e02e4/_0x38ac7a,_0x12db96=_0x257f07/_0x38ac7a;_0x376d62=_0x24c264*_0x5a9520,_0x2869fb=_0x24c264*_0x12db96,_0x50ee32=!0x0;}_0x50ee32&&this[_0x33e6a5(0x19b)]({'left':_0x31cc0c,'top':_0x376d62,'right':_0x3a14c6,'bottom':_0x2869fb});}[_0x196d4a(0x19b)](_0x52a1ba){const _0xfa50c3=_0x196d4a;this[_0xfa50c3(0x22b)][_0xfa50c3(0x18c)]=_0x52a1ba,this['makeDirty'](!0x0);}[_0x196d4a(0x268)](_0x1873d0){const _0x427aee=_0x196d4a;this['_props'][_0x427aee(0x342)]=_0x1873d0,this[_0x427aee(0xe5)](!0x0);}set[_0x196d4a(0x311)](_0x4fd16d){const _0x2ff8fc=_0x196d4a;this[_0x2ff8fc(0xf7)]=_0x4fd16d;}get[_0x196d4a(0x311)](){const _0x30fca8=_0x196d4a;this[_0x30fca8(0xf7)]||this[_0x30fca8(0x1ec)]();let _0x219967=this[_0x30fca8(0xf7)][_0x30fca8(0x2e2)]();return this['transformForAngle'](_0x219967);}get[_0x196d4a(0x1aa)](){const _0x486896=_0x196d4a;return this[_0x486896(0x22b)][_0x486896(0x1aa)];}get[_0x196d4a(0x26c)](){const _0x4ca7a9=_0x196d4a;return this['_props'][_0x4ca7a9(0x26c)];}get[_0x196d4a(0x2d4)](){const _0xa5daeb=_0x196d4a;return _0x57820c[_0xa5daeb(0x24c)];}[_0x196d4a(0x236)](_0x2e9089,_0x575dc0,_0x33fd21,_0x461b38){const _0xc6ce0e=_0x196d4a;let _0x2c3e4c=this[_0xc6ce0e(0x22b)][_0xc6ce0e(0x1aa)];if(!_0x2c3e4c||!_0x575dc0)return;let _0x253966=_0x33fd21??this[_0xc6ce0e(0x2df)],_0x8521ea=_0x461b38??this[_0xc6ce0e(0x2b9)],_0x3191b0={'shapeType':_0x2c3e4c[_0xc6ce0e(0x197)](),'width':_0x253966,'height':_0x8521ea},_0xe7814f={'renderMode':_0x306e25[_0xc6ce0e(0x1d4)],'oKey':this['oKey'],'image':this[_0xc6ce0e(0x22b)][_0xc6ce0e(0x342)],'angle':this[_0xc6ce0e(0x237)]};_0x2c3e4c[_0xc6ce0e(0x385)](_0x3191b0),_0x2e9089['save']();let _0x34e0ff={'top':0x0,'left':0x0,'width':_0x253966,'height':_0x8521ea},_0x4a2d1e=_0x2c3e4c[_0xc6ce0e(0x2bb)](_0x34e0ff);_0x4a2d1e?this[_0xc6ce0e(0x1c2)](_0x2e9089,_0x4a2d1e,_0x1c1a8b=>{const _0x22eaf2=_0xc6ce0e;_0x2c3e4c[_0x22eaf2(0x174)](_0x1c1a8b,_0x34e0ff,_0xe7814f);}):(this[_0xc6ce0e(0x176)](),_0x2c3e4c[_0xc6ce0e(0x174)](_0x2e9089,_0x34e0ff,_0xe7814f)),_0x2e9089[_0xc6ce0e(0x2ce)]();let _0x2ccb48=_0x2c3e4c['getShapeTextData'](),_0x271e8b=_0x2c3e4c[_0xc6ce0e(0x274)](_0x34e0ff),_0x2aad82=_0x2c3e4c[_0xc6ce0e(0x109)]();if(_0x2ccb48&&_0x271e8b&&!_0x2aad82){_0x2e9089['save'](),this[_0xc6ce0e(0x267)]()[_0xc6ce0e(0x362)]&&_0x2e9089['scale'](-0x1,0x1);let _0x3dc78d=_0x253966/0x2,_0x8ef7b9=_0x8521ea/0x2;_0x2e9089['translate'](-_0x3dc78d,-_0x8ef7b9),_0x2e9089['beginPath'](),this[_0xc6ce0e(0x2d0)](_0x2e9089,_0x2ccb48,_0x271e8b),_0x2e9089[_0xc6ce0e(0x2ce)]();}}['getDrawingPoints'](_0x44eaff){}['_drawShapeText'](_0xec3979,_0x3e0bb6,_0x4d82e1){const _0x27ecbd=_0x196d4a;var _0x1c56a4;this[_0x27ecbd(0x13e)]=[],!this['_props'][_0x27ecbd(0x146)]&&(!((_0x1c56a4=_0x3e0bb6[_0x27ecbd(0xce)])!=null&&_0x1c56a4[_0x27ecbd(0xeb)])&&_0x27ecbd(0x1b5)in _0x3e0bb6&&_0x3e0bb6[_0x27ecbd(0x1b5)]===!0x1?this[_0x27ecbd(0x28e)](_0xec3979,_0x3e0bb6,_0x4d82e1):this[_0x27ecbd(0x17e)](_0xec3979,_0x3e0bb6,_0x4d82e1));}['_drawSimpleText'](_0x2accb0,_0x1f4722,_0x3cb367){const _0x2dbc4e=_0x196d4a;this[_0x2dbc4e(0x17e)](_0x2accb0,{..._0x1f4722,'text':_0x1f4722['text']??'','dataModel':{'doc':_0x701120(_0x1f4722,'sheets-shape-text-'+this['oKey'])}},_0x3cb367);}[_0x196d4a(0x17e)](_0x521797,_0x50444c,_0x29f176){const _0x2423cc=_0x196d4a;_0x508912(_0x521797,this[_0x2423cc(0x1f5)],(_0x35fffd,_0x285867,_0x5113c1)=>{const _0xab761c=_0x2423cc;this[_0xab761c(0x38b)](_0x35fffd,_0x50444c,_0x29f176,_0x285867,_0x5113c1===_0xab761c(0x2ad));});}[_0x196d4a(0x38b)](_0x443e40,_0x40c08e,_0x5351bf,_0x398728,_0x5c2406){const _0x3df85b=_0x196d4a;let _0x2650b4=this[_0x3df85b(0x22b)]['localeService'];if(!_0x40c08e['dataModel']||!_0x2650b4)return;let _0x3242a1=_0x26ff51(_0x40c08e['dataModel']);if(!_0x3242a1)return;let _0x537c3f=_0x3242a1[_0x3df85b(0xeb)];if(!_0x537c3f)return;let _0x4881d9=_0x34e483(_0x537c3f,_0x398728),_0x231b04=_0x3242a1['va']??_0x1b272d[_0x3df85b(0x187)],_0x80a9a2=_0x3242a1['ha']??_0x3a8480['LEFT'],_0x19ef8b=Mr(this[_0x3df85b(0x22b)][_0x3df85b(0x1aa)][_0x3df85b(0x1db)](),_0x40c08e,_0x4881d9),_0x42b7fc=_0x40c08e['isHorizontal'],_0x4ef2ff=_0xda5bea(_0x4881d9,{'isHorizontal':_0x42b7fc!==!0x1,'textRect':_0x5351bf,'verticalAlign':_0x231b04,'horizontalAlign':_0x80a9a2,'wrapStrategy':_0x19ef8b['wrapStrategy']}),_0x401eb8=new _0x124ef9(_0x4ef2ff),_0x4aa4f9=new _0x25c560(_0x401eb8),_0x272837=_0x33ff77[_0x3df85b(0x166)](_0x4aa4f9,_0x2650b4);_0x272837[_0x3df85b(0x2dd)]();let _0x23f71f=_0x272837[_0x3df85b(0xcb)]()[_0x3df85b(0xc6)],_0xc7d919=_0x42cb9f({'contentHeight':_0x23f71f,'verticalAlign':_0x231b04,'viewportHeight':_0x5351bf[_0x3df85b(0x2b9)]});_0x401eb8[_0x3df85b(0x1c0)]({'pageSize':{'width':_0x42b7fc===!0x1?_0x5351bf[_0x3df85b(0x2b9)]:_0x5351bf[_0x3df85b(0x2df)],'height':_0x378f58(_0x4881d9,_0xc7d919['contentHeight'])}}),_0x401eb8[_0x3df85b(0x188)]({'t':_0xc7d919[_0x3df85b(0x2e6)]}),_0x272837['calculate']();let _0xe504b1=new _0x2d00cc(_0x3df85b(0x299)+this[_0x3df85b(0x313)],_0x272837,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0xe504b1['resize'](_0x5351bf[_0x3df85b(0x2df)],_0xc7d919[_0x3df85b(0x1d7)]),_0x443e40[_0x3df85b(0x1fb)](),_0x443e40[_0x3df85b(0x111)](_0x5351bf['left'],_0x5351bf['top']),_0x19ef8b[_0x3df85b(0x218)]&&(_0x443e40[_0x3df85b(0x1a7)](),_0x443e40[_0x3df85b(0x173)](0x0,_0xc7d919[_0x3df85b(0xdf)],_0x5351bf[_0x3df85b(0x2df)],_0xc7d919[_0x3df85b(0x37b)]),_0x443e40[_0x3df85b(0x218)]()),_0xc7d919[_0x3df85b(0x317)]&&_0x443e40[_0x3df85b(0x111)](0x0,_0xc7d919[_0x3df85b(0x317)]),_0xe504b1[_0x3df85b(0x228)](_0x443e40),_0x5c2406&&(this['_hyperLinkRegions']=_0xd426f0(_0xe504b1,{'left':_0x5351bf[_0x3df85b(0x158)],'top':_0x5351bf[_0x3df85b(0x324)]+_0xc7d919[_0x3df85b(0x317)]},_0x19ef8b['clip']?{'left':_0x5351bf[_0x3df85b(0x158)],'right':_0x5351bf[_0x3df85b(0x158)]+_0x5351bf[_0x3df85b(0x2df)],'top':_0x5351bf[_0x3df85b(0x324)]+_0xc7d919[_0x3df85b(0xdf)],'bottom':_0x5351bf[_0x3df85b(0x324)]+_0xc7d919[_0x3df85b(0xdf)]+_0xc7d919[_0x3df85b(0x37b)]}:void 0x0)),_0x443e40[_0x3df85b(0x2ce)](),_0xe504b1[_0x3df85b(0x1cc)](),_0x272837[_0x3df85b(0x1cc)](),_0x4aa4f9[_0x3df85b(0x1cc)](),_0x401eb8[_0x3df85b(0x1cc)]();}[_0x196d4a(0x174)](_0x4c3017,_0x1b583e,_0x2fa7de=!0x1){const _0x4911b2=_0x196d4a;if(!this['visible'])return this[_0x4911b2(0xe5)](!0x1),this;let {width:_0x5149e1,height:_0x48223c,left:_0x2709d3,top:_0x12b960}=this,_0x1b29fb=this[_0x4911b2(0x294)]();if(_0x5149e1=_0x1b29fb[_0x4911b2(0x2df)],_0x48223c=_0x1b29fb[_0x4911b2(0x2b9)],_0x2709d3=_0x1b29fb[_0x4911b2(0x158)],_0x12b960=_0x1b29fb[_0x4911b2(0x324)],this[_0x4911b2(0x150)](_0x1b583e)){let {top:_0x32da9a,left:_0x1daf52,bottom:_0x6aea7b,right:_0x2b53a6}=_0x1b583e[_0x4911b2(0x120)];if(_0x5149e1+this[_0x4911b2(0x252)]+_0x2709d3<_0x1daf52||_0x2b53a6<_0x2709d3||_0x48223c+this['strokeWidth']+_0x12b960<_0x32da9a||_0x6aea7b<_0x12b960)return this;}let _0x445897=_0x2709d3+_0x5149e1/0x2,_0x37521f=_0x12b960+_0x48223c/0x2,_0x30d4dd=this[_0x4911b2(0x311)]['getMatrix']();if(this[_0x4911b2(0x22b)]['isEditing']){let _0xb56ed7=this[_0x4911b2(0x267)](),_0x56f5b6=new _0x29b58e();_0x56f5b6['composeMatrix']({..._0xb56ed7}),_0x30d4dd=_0x56f5b6[_0x4911b2(0x1a6)]();}return _0x4c3017['save'](),this['_props'][_0x4911b2(0x1aa)][_0x4911b2(0x36c)]===!0x0||_0x4c3017['transform'](_0x30d4dd[0x0],_0x30d4dd[0x1],_0x30d4dd[0x2],_0x30d4dd[0x3],_0x445897,_0x37521f),this[_0x4911b2(0x236)](_0x4c3017,_0x1b583e,_0x5149e1,_0x48223c),_0x4c3017[_0x4911b2(0x2ce)](),this['makeDirty'](!0x1),this;}['getInverseCoord'](_0x3748b6){const _0x4712ad=_0x196d4a;let {left:_0x2c6b44,top:_0x23a7f3,width:_0x3cc3f5,height:_0x1a8196}=this[_0x4712ad(0x294)](),_0x4341f3=this['transform'][_0x4712ad(0x1a6)](),_0x5dd8f5=_0x2c6b44+_0x3cc3f5/0x2,_0x15fc13=_0x23a7f3+_0x1a8196/0x2,_0x3cc857=new _0x29b58e([_0x4341f3[0x0],_0x4341f3[0x1],_0x4341f3[0x2],_0x4341f3[0x3],_0x5dd8f5,_0x15fc13]),_0x335321=this[_0x4712ad(0x135)]();return(this['isInGroup']&&(_0x335321==null?void 0x0:_0x335321[_0x4712ad(0x2d4)])===_0x57820c[_0x4712ad(0x162)]?_0x335321['ancestorTransform'][_0x4712ad(0x247)](_0x3cc857):_0x3cc857)[_0x4712ad(0x180)]()[_0x4712ad(0x1e8)](_0x3748b6);}['isHit'](_0x4a82f7){const _0x364e4a=_0x196d4a;let {left:_0x538569,top:_0x47e0ee,width:_0x2d28ad,height:_0x12bc73}=this[_0x364e4a(0x294)](),_0x5dbf38=_0x538569+_0x2d28ad/0x2,_0xe91b58=_0x47e0ee+_0x12bc73/0x2,_0x29d413=this[_0x364e4a(0x311)][_0x364e4a(0x1a6)](),_0x2e3da4=new _0x29b58e([_0x29d413[0x0],_0x29d413[0x1],_0x29d413[0x2],_0x29d413[0x3],_0x5dbf38,_0xe91b58]),_0x31a40f=this[_0x364e4a(0x135)](),_0x8e0346=(this[_0x364e4a(0x2bf)]&&(_0x31a40f==null?void 0x0:_0x31a40f['classType'])===_0x57820c[_0x364e4a(0x162)]?_0x31a40f[_0x364e4a(0x25b)]['multiply'](_0x2e3da4):_0x2e3da4)[_0x364e4a(0x180)]()[_0x364e4a(0x1e8)](_0x4a82f7),_0x61bcec=_0x2d28ad/0x2,_0x2bba2a=_0x12bc73/0x2,_0x59c023=this[_0x364e4a(0x22b)]['shapeModel'];return _0x59c023&&_0x59c023[_0x364e4a(0x109)]()?_0x59c023[_0x364e4a(0x207)](_0x8e0346['x'],_0x8e0346['y'],_0x2d28ad,_0x12bc73):_0x8e0346['x']>=-_0x61bcec-this[_0x364e4a(0x252)]/0x2&&_0x8e0346['x']<=_0x61bcec+this[_0x364e4a(0x252)]/0x2&&_0x8e0346['y']>=-_0x2bba2a-this[_0x364e4a(0x252)]/0x2&&_0x8e0346['y']<=_0x2bba2a+this[_0x364e4a(0x252)]/0x2;}[_0x196d4a(0x1cc)](){const _0x25afaf=_0x196d4a;this[_0x25afaf(0x1f5)][_0x25afaf(0x1cc)](),this['_props']['shapeModel']=null,super['dispose']();}},Nr=class extends _0x35d449{constructor(_0x5adb30,_0x5bcc6){const _0x39792e=_0x196d4a;super(_0x5adb30,_0x5bcc6),q(this,_0x39792e(0x306),null),q(this,'_adjName',null),q(this,_0x39792e(0x204),null),q(this,_0x39792e(0x19d),null),_0x5bcc6&&this[_0x39792e(0x2c3)](_0x5bcc6);}['getDrawingSearch'](){const _0x206e7c=_0x196d4a;return{'unitId':this[_0x206e7c(0x204)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x206e7c(0x306)]};}[_0x196d4a(0x2c3)](_0xe70933){const _0x4c5f87=_0x196d4a;_0xe70933[_0x4c5f87(0x26c)]!==void 0x0&&(this[_0x4c5f87(0x306)]=_0xe70933['shapeId']),_0xe70933[_0x4c5f87(0x1d9)]!==void 0x0&&(this[_0x4c5f87(0x2f2)]=_0xe70933[_0x4c5f87(0x1d9)]),_0xe70933[_0x4c5f87(0x263)]!==void 0x0&&(this[_0x4c5f87(0x204)]=_0xe70933[_0x4c5f87(0x263)]),_0xe70933[_0x4c5f87(0x2f3)]!==void 0x0&&(this[_0x4c5f87(0x19d)]=_0xe70933[_0x4c5f87(0x2f3)]),this[_0x4c5f87(0x2a2)]({'width':_0xe70933[_0x4c5f87(0x2df)],'height':_0xe70933[_0x4c5f87(0x2b9)]});}[_0x196d4a(0x236)](_0x232b50){const _0x29765f=_0x196d4a;_0x37d975[_0x29765f(0xd6)](_0x232b50,{'radius':_0x1a4d77['adjHandleSize'],'fill':_0x1a4d77['adjHandleFill'],'stroke':_0x1a4d77[_0x29765f(0x14b)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x3aa3b9,_0x49b09f){return function(_0x2df7a1,_0x210fff){_0x49b09f(_0x2df7a1,_0x210fff,_0x3aa3b9);};}function X(_0x25b60b,_0x1aea44,_0x3f78c4,_0x1ce806){const _0x28d62e=_0x196d4a;var _0x440119=arguments[_0x28d62e(0x1bc)],_0x573897=_0x440119<0x3?_0x1aea44:_0x1ce806===null?_0x1ce806=Object[_0x28d62e(0x16b)](_0x1aea44,_0x3f78c4):_0x1ce806,_0x2cdfb6;if(typeof Reflect==_0x28d62e(0x1dd)&&typeof Reflect[_0x28d62e(0x27f)]=='function')_0x573897=Reflect[_0x28d62e(0x27f)](_0x25b60b,_0x1aea44,_0x3f78c4,_0x1ce806);else{for(var _0x559f1b=_0x25b60b['length']-0x1;_0x559f1b>=0x0;_0x559f1b--)(_0x2cdfb6=_0x25b60b[_0x559f1b])&&(_0x573897=(_0x440119<0x3?_0x2cdfb6(_0x573897):_0x440119>0x3?_0x2cdfb6(_0x1aea44,_0x3f78c4,_0x573897):_0x2cdfb6(_0x1aea44,_0x3f78c4))||_0x573897);}return _0x440119>0x3&&_0x573897&&Object[_0x28d62e(0x15c)](_0x1aea44,_0x3f78c4,_0x573897),_0x573897;}let Z=class extends _0x116f11{constructor(_0x214a68,_0x5197a1,_0x10a19a,_0x53d2bb,_0x1adac3,_0x5c0dee){const _0x4c20ce=_0x196d4a;super(),this[_0x4c20ce(0x23e)]=_0x214a68,this[_0x4c20ce(0x309)]=_0x5197a1,this[_0x4c20ce(0x185)]=_0x10a19a,this[_0x4c20ce(0x200)]=_0x53d2bb,this[_0x4c20ce(0x34f)]=_0x1adac3,this[_0x4c20ce(0x262)]=_0x5c0dee,q(this,'_formulaShapes',new Map()),this['disposeWithMe'](this[_0x4c20ce(0x262)][_0x4c20ce(0x254)][_0x4c20ce(0x1ab)](_0x16520e=>{const _0x52b40d=_0x4c20ce;var _0x4d43ee;(_0x4d43ee=this[_0x52b40d(0x36f)][_0x52b40d(0x100)](this[_0x52b40d(0x356)](_0x16520e[_0x52b40d(0x263)],_0x16520e['subUnitId'],_0x16520e['shapeId'])))==null||_0x4d43ee[_0x52b40d(0x326)](_0x1bd147=>_0x1bd147['setFormulaPresentation'](_0x16520e[_0x52b40d(0x2c5)],_0x16520e[_0x52b40d(0x202)]));})),this['disposeWithMe'](this[_0x4c20ce(0x23e)]['remove$'][_0x4c20ce(0x1ab)](_0x394ae8=>{const _0x365e70=_0x4c20ce;_0x394ae8[_0x365e70(0x326)](_0x72675a=>{const _0x3c0d2d=_0x365e70;this['_shapeFormulaService'][_0x3c0d2d(0x259)]({'unitId':_0x72675a[_0x3c0d2d(0x263)],'subUnitId':_0x72675a[_0x3c0d2d(0x2f3)],'shapeId':_0x72675a[_0x3c0d2d(0x14c)]}),this[_0x3c0d2d(0x36f)][_0x3c0d2d(0xfd)](this[_0x3c0d2d(0x356)](_0x72675a[_0x3c0d2d(0x263)],_0x72675a[_0x3c0d2d(0x2f3)],_0x72675a[_0x3c0d2d(0x14c)]));});}));}[_0x196d4a(0x133)](_0x4d68d3,_0x356f5a,_0xbcdf98){const _0x2e1438=_0x196d4a;let {transform:_0x547271,drawingType:_0x1e4f98,srcRect:_0x3573b9,prstGeom:_0x126d2,groupId:_0x4e889a,unitId:_0x39f337,subUnitId:_0x1eadd5,drawingId:_0x384819,isMultiTransform:_0x1c8edb,transforms:_0x7f76ec,hidden:_0x1e75c8,selectable:_0x3ef59f}=_0x4d68d3;if(_0x1e4f98!==_0x123aa0['DRAWING_SHAPE']||!this[_0x2e1438(0x23e)][_0x2e1438(0x1be)]()||_0x547271==null)return;let _0x1b11b7=this[_0x2e1438(0x23e)][_0x2e1438(0x114)](),_0x501d6d=_0x1c8edb&&_0x7f76ec?_0x7f76ec:[_0x547271],_0x51a2d9=[];for(let _0x3c9391 of _0x501d6d){let {left:_0x32e802,top:_0x3c5a4b,width:_0x32aa0c,height:_0xe3c436,angle:_0x573a17,flipX:_0x473847,flipY:_0x1d945f,skewX:_0x4b74b4,skewY:_0x3e81c8}=_0x3c9391,_0x2704d5=_0x501d6d[_0x2e1438(0x378)](_0x3c9391),_0x45eb46=_0x934411({'unitId':_0x39f337,'subUnitId':_0x1eadd5,'drawingId':_0x384819},_0x1c8edb?_0x2704d5:void 0x0),_0x3af8ff=_0x356f5a[_0x2e1438(0x2b5)](_0x45eb46);if(_0x3af8ff!=null){let _0x513df0={'unitId':_0x39f337,'subUnitId':_0x1eadd5,'shapeId':_0x384819};_0x3af8ff instanceof J&&this[_0x2e1438(0xf4)](_0x3af8ff,_0x513df0),_0x3af8ff[_0x2e1438(0x2a2)]({'left':_0x32e802,'top':_0x3c5a4b,'width':_0x32aa0c,'height':_0xe3c436,'angle':_0x573a17,'flipX':_0x473847,'flipY':_0x1d945f,'skewX':_0x4b74b4,'skewY':_0x3e81c8});continue;}let _0x3ad306=this[_0x2e1438(0x23e)][_0x2e1438(0x2dc)](_0x39f337,_0x1eadd5),_0x10c11f=_0x3ad306['indexOf'](_0x384819);if(_0x356f5a[_0x2e1438(0x2b5)](_0x45eb46)||!this['_drawingManagerService'][_0x2e1438(0x1be)]())continue;let _0x2fbb92=this['_sheetsShapeService'][_0x2e1438(0xe6)](_0x39f337,_0x1eadd5,_0x384819);if(!_0x2fbb92)continue;let _0x683957=_0x22e615(_0x2fbb92[_0x2e1438(0x197)]())?{..._0x3cfe88,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x3cfe88,_0x47898b=_0x2fbb92[_0x2e1438(0x1db)]()[_0x2e1438(0x175)],_0x553189={'unitId':_0x39f337,'subUnitId':_0x1eadd5,'shapeId':_0x384819};_0x47898b&&this['_shapeFormulaService'][_0x2e1438(0x157)](_0x553189,_0x47898b);let _0x105671=new J(_0x45eb46,{..._0x3c9391,'zIndex':_0x10c11f===-0x1?_0x3ad306['length']-0x1:_0x10c11f,'shapeModel':_0x2fbb92,'localeService':this[_0x2e1438(0x185)],'shapeId':_0x384819,'unitId':_0x39f337,'subUnitId':_0x1eadd5,'visible':_0x1e75c8!==!0x0,'evented':_0x3ef59f!==!0x1,'formulaPresentation':_0x47898b?this[_0x2e1438(0x262)]['getPresentation'](_0x553189):void 0x0,'animateFormulaPresentation':(_0x47898b==null?void 0x0:_0x47898b[_0x2e1438(0x202)])!==!0x1,'transformerConfig':_0x683957});if(_0x47898b){let _0x57f182=this[_0x2e1438(0x356)](_0x39f337,_0x1eadd5,_0x384819),_0x3922c8=this['_formulaShapes']['get'](_0x57f182)??new Set();_0x3922c8['add'](_0x105671),this[_0x2e1438(0x36f)][_0x2e1438(0x127)](_0x57f182,_0x3922c8);}_0x356f5a['addObject'](_0x105671,_0x22b3ea),_0x1b11b7&&_0x356f5a['attachTransformerTo'](_0x105671),_0x4e889a&&_0x197759({'drawingId':_0x4e889a,'unitId':_0x39f337,'subUnitId':_0x1eadd5},_0x105671,_0x356f5a,this[_0x2e1438(0x23e)]),_0x126d2!=null&&_0x105671[_0x2e1438(0x2d9)](_0x126d2),_0x3573b9!=null&&_0x105671[_0x2e1438(0x19b)](_0x3573b9);let _0x103e98=this[_0x2e1438(0x2ca)](_0x105671,_0x2fbb92[_0x2e1438(0x1db)]());if(_0x103e98){var _0x4270ca;_0xbcdf98==null||(_0x4270ca=_0xbcdf98[_0x2e1438(0x32e)])==null||_0x4270ca['add'](_0x103e98);}_0x51a2d9['push'](_0x105671);}return _0x51a2d9;}[_0x196d4a(0x356)](_0x445a4f,_0x1fedb0,_0x9cf0f3){return _0x445a4f+'\x00'+_0x1fedb0+'\x00'+_0x9cf0f3;}['refreshFormulaPresentation'](_0x40736c,_0x8bd5ce){const _0x3c4c37=_0x196d4a;let _0x1ed635=this[_0x3c4c37(0x309)]['getShapeModel'](_0x8bd5ce['unitId'],_0x8bd5ce[_0x3c4c37(0x2f3)],_0x8bd5ce[_0x3c4c37(0x26c)]),_0x1400f3=_0x1ed635==null?void 0x0:_0x1ed635['getShapeData']()[_0x3c4c37(0x175)],_0x398e8c=this[_0x3c4c37(0x356)](_0x8bd5ce[_0x3c4c37(0x263)],_0x8bd5ce['subUnitId'],_0x8bd5ce[_0x3c4c37(0x26c)]);if(_0x1400f3){this[_0x3c4c37(0x262)]['register'](_0x8bd5ce,_0x1400f3);let _0x2c4c15=this[_0x3c4c37(0x36f)][_0x3c4c37(0x100)](_0x398e8c)??new Set();_0x2c4c15['add'](_0x40736c),this[_0x3c4c37(0x36f)][_0x3c4c37(0x127)](_0x398e8c,_0x2c4c15);}else{var _0x44dc73;this[_0x3c4c37(0x262)][_0x3c4c37(0x259)](_0x8bd5ce),(_0x44dc73=this[_0x3c4c37(0x36f)]['get'](_0x398e8c))==null||_0x44dc73[_0x3c4c37(0xfd)](_0x40736c);}_0x40736c[_0x3c4c37(0x379)](_0x1400f3?this['_shapeFormulaService'][_0x3c4c37(0x1fa)](_0x8bd5ce):void 0x0,(_0x1400f3==null?void 0x0:_0x1400f3[_0x3c4c37(0x202)])!==!0x1);}[_0x196d4a(0xdb)](_0x5ab6fc){const _0x2c5604=_0x196d4a;let _0x223205=_0x5ab6fc[_0x2c5604(0x1aa)][_0x2c5604(0x1db)](),_0x57f399=_0x223205[_0x2c5604(0x32f)];if(!_0x57f399||_0x57f399[_0x2c5604(0x15f)]!==_0xcb9b68[_0x2c5604(0x2b1)]||!_0x57f399[_0x2c5604(0x29f)]){_0x5ab6fc[_0x2c5604(0x268)](void 0x0);return;}this['_loadShapePictureFill'](_0x5ab6fc,_0x223205);}[_0x196d4a(0x2ca)](_0x548bd8,_0x34a4f9){const _0x2269f9=_0x196d4a;let _0x536eb8=_0x34a4f9[_0x2269f9(0x32f)];if(!_0x536eb8||_0x536eb8[_0x2269f9(0x15f)]!==_0xcb9b68['PictureFill']||!_0x536eb8[_0x2269f9(0x29f)])return;let _0x39a31b=_0x536eb8[_0x2269f9(0x29f)],_0xd4cd37=_0x536eb8[_0x2269f9(0x1e5)]??_0x5497a9[_0x2269f9(0x257)],_0x38f213=this['_imageIoService'][_0x2269f9(0x2d1)](_0x39a31b,_0xd4cd37);if(_0x38f213){_0x548bd8[_0x2269f9(0x268)](_0x38f213);return;}return this[_0x2269f9(0x38c)](_0x548bd8,_0x39a31b,_0xd4cd37);}async[_0x196d4a(0x38c)](_0x28b88c,_0x1e9a66,_0x315902){const _0x175371=_0x196d4a;let _0x33e1f2;try{if(_0x315902===_0x5497a9['UUID'])_0x33e1f2=await this['_imageIoService'][_0x175371(0x2b4)](_0x1e9a66);else{if(_0x315902===_0x5497a9['URL'])try{_0x33e1f2=await this[_0x175371(0x34f)][_0x175371(0x2b4)](_0x1e9a66);}catch{_0x33e1f2=_0x1e9a66;}else _0x33e1f2=_0x1e9a66;}}catch(_0xc027a7){console[_0x175371(0x35b)](_0x175371(0x30a),_0xc027a7);return;}await new Promise(_0x548af1=>{const _0x38ce48=_0x175371;let _0x28953a=new window[(_0x38ce48(0x110))]();_0x28953a[_0x38ce48(0x15e)]=()=>{const _0xb388d5=_0x38ce48;this[_0xb388d5(0x200)][_0xb388d5(0xda)](_0x1e9a66,_0x315902,_0x28953a),_0x28b88c[_0xb388d5(0x268)](_0x28953a),_0x548af1();},_0x28953a[_0x38ce48(0x377)]=()=>{const _0xf904b0=_0x38ce48;console[_0xf904b0(0x35b)](_0xf904b0(0x153),_0x1e9a66),_0x548af1();},_0x28953a[_0x38ce48(0x275)]=_0x33e1f2;});}};Z=X([Y(0x0,_0x446eb2),Y(0x1,_0x14bfc1(_0x13b053)),Y(0x2,_0x14bfc1(_0x407e83)),Y(0x3,_0x530352),Y(0x4,_0x1e7e45),Y(0x5,_0x14bfc1(_0x1a5fdd))],Z);let Pr=class extends _0x116f11{constructor(_0x1ebc36,_0x51ff2e,_0x229626,_0x3446e4,_0x491261,_0x561a9b){const _0x4f2d0d=_0x196d4a;super(),this[_0x4f2d0d(0x23e)]=_0x1ebc36,this[_0x4f2d0d(0x309)]=_0x51ff2e,this[_0x4f2d0d(0x1b7)]=_0x229626,this[_0x4f2d0d(0x132)]=_0x3446e4,this[_0x4f2d0d(0x17a)]=_0x491261,this['_commandService']=_0x561a9b,q(this,_0x4f2d0d(0x2fb),null),q(this,_0x4f2d0d(0x204),null),q(this,_0x4f2d0d(0x19d),null),q(this,_0x4f2d0d(0x2aa),void 0x0),q(this,_0x4f2d0d(0x198),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x4f2d0d(0x1f7),0x0),q(this,_0x4f2d0d(0x220),0x0),q(this,'_baseShapeHeight',0x0),q(this,'_isStartAdjusting',!0x1),q(this,_0x4f2d0d(0x15a),void 0x0),q(this,_0x4f2d0d(0x1ef),void 0x0),q(this,_0x4f2d0d(0x330),void 0x0),q(this,_0x4f2d0d(0x12a),void 0x0),q(this,_0x4f2d0d(0xdc),!0x1),this[_0x4f2d0d(0x183)](),this[_0x4f2d0d(0x1a2)]();}[_0x196d4a(0x251)](_0x4aab28,_0x2da5dc,_0x1b1b14){const _0x4f52f5=_0x196d4a;let _0x47e651=this['_sheetsShapeService'][_0x4f52f5(0xe6)](_0x4aab28,_0x2da5dc,_0x1b1b14);if(_0x47e651)return _0x47e651[_0x4f52f5(0x19e)]();}[_0x196d4a(0xca)](){this['_clearShapeAdjustControls']();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!0x0);}[_0x196d4a(0x1e0)](_0x1fcd60){const _0x30ff23=_0x196d4a;this[_0x30ff23(0xdc)]=_0x1fcd60;}[_0x196d4a(0x2a6)](_0x50f9ae,_0x1b1193,_0x115e30,_0x3f6bdf){const _0x54f9b6=_0x196d4a;let _0x520ccd=this[_0x54f9b6(0x309)][_0x54f9b6(0xe6)](_0x50f9ae,_0x1b1193,_0x115e30);if(_0x520ccd)return _0x520ccd[_0x54f9b6(0x2d7)](_0x3f6bdf);}[_0x196d4a(0x2ae)](_0x148412=!0x1){const _0x151d3b=_0x196d4a;if(this['_unitId']===null||this[_0x151d3b(0x19d)]===null||this[_0x151d3b(0x2fb)]===null)return;let _0x4e72e0=this[_0x151d3b(0x1b7)][_0x151d3b(0xd7)](this['_unitId']);if(!_0x4e72e0||!_0x4e72e0[_0x151d3b(0x2a0)](_0x7b1452)[_0x151d3b(0x260)]())return;let {scene:_0xd48f1e}=_0x4e72e0,_0x1550bc={'unitId':this['_unitId'],'subUnitId':this[_0x151d3b(0x19d)],'drawingId':this['_activeShapeId']},_0x514d1d=this[_0x151d3b(0x23e)][_0x151d3b(0xc7)](_0x1550bc),{transform:_0x3f8e58}=_0x514d1d;if(!_0x3f8e58||_0x514d1d[_0x151d3b(0x27b)]!==_0x123aa0[_0x151d3b(0x323)])return;let {left:_0x535182,top:_0x238e1b,width:_0x53158f,height:_0x2336ab,flipX:_0x58d70d,flipY:_0x12982f,angle:_0x168d8e=0x0}=_0x3f8e58;if(_0x535182===void 0x0||_0x238e1b===void 0x0)return;if(_0x148412){let _0x4a2879=this[_0x151d3b(0x309)][_0x151d3b(0xe6)](this[_0x151d3b(0x204)],this[_0x151d3b(0x19d)],this[_0x151d3b(0x2fb)]);_0x4a2879==null||_0x4a2879[_0x151d3b(0x385)]({'width':_0x53158f??0x0,'height':_0x2336ab??0x0}),this[_0x151d3b(0x2aa)]=_0x4a2879==null?void 0x0:_0x4a2879[_0x151d3b(0x19e)]();}let _0x4393ab=this[_0x151d3b(0x2aa)];for(let _0x3ebd0b=0x0;_0x3ebd0b<_0x4393ab[_0x151d3b(0x1bc)];_0x3ebd0b++){let _0x212a87=_0x4393ab[_0x3ebd0b],_0x1fa090=_0x212a87['x'],_0x4df864=_0x212a87['y'];if(_0x58d70d&&(_0x1fa090=(_0x53158f||0x0)-_0x1fa090),_0x12982f&&(_0x4df864=(_0x2336ab||0x0)-_0x4df864),_0x168d8e!==0x0){let _0x168fb4=(_0x53158f||0x0)/0x2,_0x53e1de=(_0x2336ab||0x0)/0x2,_0x306990=_0x168d8e*Math['PI']/0xb4,_0xfd6644=Math[_0x151d3b(0x17b)](_0x306990),_0x229ed2=Math['sin'](_0x306990),_0x4e9dbc=_0x1fa090-_0x168fb4,_0xeb2963=_0x4df864-_0x53e1de;_0x1fa090=_0x168fb4+(_0x4e9dbc*_0xfd6644-_0xeb2963*_0x229ed2),_0x4df864=_0x53e1de+(_0x4e9dbc*_0x229ed2+_0xeb2963*_0xfd6644);}let _0x29d6ce={'x':_0x1fa090,'y':_0x4df864,'adjName':_0x212a87[_0x151d3b(0x1d9)]};this[_0x151d3b(0x22f)](_0xd48f1e,_0x29d6ce,_0x29d6ce[_0x151d3b(0x1d9)],_0x535182,_0x238e1b,this['_unitId'],this['_subUnitId']);}}['_updateShapeAdjustControls'](_0x546421=!0x1){const _0x4659c6=_0x196d4a;_0x546421&&(this[_0x4659c6(0x128)](),this[_0x4659c6(0x2ae)](_0x546421));}['_addShapeAdjustControl'](_0x163bbf,_0x5bb0e1,_0x3a5f49,_0x35baef,_0x13d3e2,_0x33f774,_0xc3c96d){const _0x3b46eb=_0x196d4a;if(!this[_0x3b46eb(0x2fb)])return;let _0x1bbc7a=_0x163bbf[_0x3b46eb(0x2b5)](_0x3b46eb(0x11c)+this[_0x3b46eb(0x2fb)]+'-'+_0x3a5f49);if(_0x1bbc7a){_0x1bbc7a['transformByState']({'left':_0x5bb0e1['x']+_0x35baef-_0x1a4d77['adjHandleSize'],'top':_0x5bb0e1['y']+_0x13d3e2-_0x1a4d77[_0x3b46eb(0x1ba)]});return;}let _0x24d7da={'left':_0x5bb0e1['x']+_0x35baef-_0x1a4d77['adjHandleSize'],'top':_0x5bb0e1['y']+_0x13d3e2-_0x1a4d77[_0x3b46eb(0x1ba)],'adjName':_0x3a5f49,'shapeId':this[_0x3b46eb(0x2fb)],'unitId':_0x33f774,'subUnitId':_0xc3c96d,'width':_0x1a4d77[_0x3b46eb(0x1ba)]+0x8,'height':_0x1a4d77[_0x3b46eb(0x1ba)]+0x8,'zIndex':_0x22b3ea+0x1,'evented':!0x0},_0x117946=new Nr(_0x3b46eb(0x11c)+this[_0x3b46eb(0x2fb)]+'-'+_0x3a5f49,_0x24d7da);this['_shapes'][_0x3b46eb(0x2b7)](_0x117946),this[_0x3b46eb(0x27c)](_0x117946,_0x163bbf,_0x3a5f49),_0x163bbf[_0x3b46eb(0xea)](_0x117946,_0x22b3ea+0x1);}['_clearShapeAdjustControls'](){const _0x1e1e0e=_0x196d4a;this[_0x1e1e0e(0x198)]['length']!==0x0&&(this[_0x1e1e0e(0x198)]['forEach'](_0x444c4e=>{const _0x34e1aa=_0x1e1e0e;_0x444c4e[_0x34e1aa(0x1cc)]();}),this[_0x1e1e0e(0x198)]=[]);}['_updateAdjustControlPositions'](){const _0x58349e=_0x196d4a;this[_0x58349e(0x2ae)]();}[_0x196d4a(0xc5)](_0x41e007,_0x304072){const _0x497121=_0x196d4a;var _0x3ebd95;let _0x5f0c7f={'x':0x0,'y':0x0};if(!_0x41e007||!_0x304072)return _0x5f0c7f;let _0x4740cf=this['_renderManagerService'][_0x497121(0xd7)](_0x41e007);if(!_0x4740cf||!_0x4740cf[_0x497121(0x2a0)](_0x7b1452)['getSkeleton'](_0x304072))return _0x5f0c7f;let _0x2f4c1e=_0x4740cf[_0x497121(0x2a0)](_0x538622),_0x31085a=_0x2f4c1e==null?void 0x0:_0x2f4c1e[_0x497121(0xd8)]();if(!_0x31085a)return _0x5f0c7f;let _0x29c44a=(_0x3ebd95=this[_0x497121(0x17a)][_0x497121(0x2da)](_0x41e007))==null?void 0x0:_0x3ebd95[_0x497121(0x1f0)](_0x304072);if(!_0x29c44a)return _0x5f0c7f;let _0x3175a5=_0x2e8aa3(_0x31085a['sheetViewStartRow'],_0x31085a[_0x497121(0x10c)],_0x4740cf['scene'],_0x29c44a);return _0x3175a5?{'x':_0x3175a5['viewportScrollX'],'y':_0x3175a5['viewportScrollY']}:_0x5f0c7f;}[_0x196d4a(0x20c)](_0x26b2c1,_0xaf9044){const _0x365aed=_0x196d4a;var _0x9ecc14;let _0x3298eb=(_0x9ecc14=this[_0x365aed(0x17a)][_0x365aed(0x2da)](_0x26b2c1))==null?void 0x0:_0x9ecc14[_0x365aed(0x1f0)](_0xaf9044);return(_0x3298eb==null?void 0x0:_0x3298eb[_0x365aed(0x2fa)]())??0x1;}[_0x196d4a(0x27c)](_0x35c8c7,_0x1c37d5,_0x15e90d){const _0xda7ed6=_0x196d4a;this[_0xda7ed6(0x335)](_0x46ac89(_0x35c8c7['onPointerDown$']['subscribeEvent']((_0x378704,_0x41fe33)=>{const _0x53289a=_0xda7ed6;var _0x3d3cea,_0x5d489f,_0x8ae67b,_0x1d9c9d;let _0x2ac4f2=_0x35c8c7[_0x53289a(0x35c)]();this[_0x53289a(0x15a)]=this['_getShapeAdjustInfosById'](_0x2ac4f2[_0x53289a(0x263)],_0x2ac4f2[_0x53289a(0x2f3)],_0x2ac4f2['drawingId'],_0x15e90d),this[_0x53289a(0x1ef)]=this[_0x53289a(0x309)][_0x53289a(0xe6)](_0x2ac4f2[_0x53289a(0x263)],_0x2ac4f2[_0x53289a(0x2f3)],_0x2ac4f2[_0x53289a(0x14c)]);let _0x143db7=this[_0x53289a(0x23e)][_0x53289a(0xc7)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x53289a(0x2fb)]}),{transform:_0x5d0882}=_0x143db7;if(_0x5d0882){let {left:_0x470a6c,top:_0x2d2254,width:_0x13b0ec,height:_0x57e4c4}=_0x5d0882;this[_0x53289a(0x307)]=_0x470a6c||0x0,this[_0x53289a(0x1f7)]=_0x2d2254||0x0,this[_0x53289a(0x220)]=_0x13b0ec||0x0,this['_baseShapeHeight']=_0x57e4c4||0x0;}let _0x1b939c=!!((_0x3d3cea=_0x143db7['transform'])!=null&&_0x3d3cea[_0x53289a(0x362)]),_0x251161=!!((_0x5d489f=_0x143db7[_0x53289a(0x311)])!=null&&_0x5d489f[_0x53289a(0x1ac)]),_0x147279=((_0x8ae67b=_0x143db7[_0x53289a(0x311)])==null?void 0x0:_0x8ae67b[_0x53289a(0x237)])||0x0;this[_0x53289a(0x1df)]=!0x0,_0x1c37d5['disableObjectsEvent']();let _0x4e5be3={...((_0x1d9c9d=this[_0x53289a(0x15a)])==null?void 0x0:_0x1d9c9d[_0x53289a(0x17f)])??{}};this[_0x53289a(0x330)]=_0x1c37d5[_0x53289a(0x2cd)][_0x53289a(0xcf)]((_0x599220,_0x16143b)=>{const _0xfb46ed=_0x53289a;if(!this[_0xfb46ed(0x1df)])return;let {offsetX:_0xcb5df8,offsetY:_0x1e7089}=_0x599220,_0x10e486=this[_0xfb46ed(0x15a)];if(this[_0xfb46ed(0x1ef)]&&_0x10e486){_0x1c37d5['disableObjectsEvent'](),_0x1c37d5[_0xfb46ed(0x373)](_0x35998d['CROSSHAIR']);let _0x1bd3a3={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0xfb46ed(0x266)]},_0x66fede=this[_0xfb46ed(0xc5)](this[_0xfb46ed(0x204)],this[_0xfb46ed(0x19d)]),_0x4401bd=this[_0xfb46ed(0x20c)](this[_0xfb46ed(0x204)],this['_subUnitId']),_0x5101a2=_0xcb5df8/_0x4401bd+_0x66fede['x']-this[_0xfb46ed(0x307)],_0x53e969=_0x1e7089/_0x4401bd+_0x66fede['y']-this[_0xfb46ed(0x1f7)];if(_0x147279!==0x0){let _0x213ff8=this[_0xfb46ed(0x220)]/0x2,_0x3d4264=this[_0xfb46ed(0x266)]/0x2,_0x2e09fb=_0x147279*Math['PI']/0xb4,_0x3c4352=Math['cos'](_0x2e09fb),_0x356052=Math[_0xfb46ed(0x1dc)](_0x2e09fb),_0x326e6f=_0x5101a2-_0x213ff8,_0x1d8968=_0x53e969-_0x3d4264;_0x5101a2=_0x213ff8+(_0x326e6f*_0x3c4352+_0x1d8968*_0x356052),_0x53e969=_0x3d4264+(-_0x326e6f*_0x356052+_0x1d8968*_0x3c4352);}_0x1b939c&&(_0x5101a2=this[_0xfb46ed(0x220)]-_0x5101a2),_0x251161&&(_0x53e969=this[_0xfb46ed(0x266)]-_0x53e969);let _0x3f6c46={'x':_0x5101a2,'y':_0x53e969},_0x598c56=this[_0xfb46ed(0x1ef)][_0xfb46ed(0x105)](_0x1bd3a3,_0x3f6c46,_0x10e486,_0x1b939c,_0x251161);if(Object[_0xfb46ed(0x12c)](_0x598c56)[_0xfb46ed(0x1bc)]===0x0)return;for(let [_0x39386e,_0x2526b5]of Object[_0xfb46ed(0x383)](_0x598c56))this[_0xfb46ed(0x1ef)][_0xfb46ed(0x1b0)](_0x39386e,_0x2526b5);this[_0xfb46ed(0x1ef)][_0xfb46ed(0x385)]({'width':this['_baseShapeWidth'],'height':this[_0xfb46ed(0x266)]});let _0x36f13e=this[_0xfb46ed(0x23e)][_0xfb46ed(0xc7)]({'unitId':_0x2ac4f2[_0xfb46ed(0x263)],'subUnitId':_0x2ac4f2[_0xfb46ed(0x2f3)],'drawingId':_0x2ac4f2[_0xfb46ed(0x14c)]});_0x36f13e&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x36f13e,_0x1c37d5),this[_0xfb46ed(0x2aa)]=this[_0xfb46ed(0x251)](_0x2ac4f2[_0xfb46ed(0x263)],_0x2ac4f2[_0xfb46ed(0x2f3)],_0x2ac4f2[_0xfb46ed(0x14c)]),this[_0xfb46ed(0x2f4)]());}_0x16143b['stopPropagation']();}),this[_0x53289a(0x12a)]=_0x1c37d5[_0x53289a(0x2a1)]['subscribeEvent']((_0x333e8d,_0x22f526)=>{const _0x272c61=_0x53289a;this[_0x272c61(0x330)]['unsubscribe'](),this[_0x272c61(0x12a)][_0x272c61(0x33c)](),_0x1c37d5[_0x272c61(0x130)]();let _0x1b63aa=this[_0x272c61(0x15a)];if(_0x1b63aa){let _0x3a274e=_0x2ac4f2['unitId'],_0x3e843b=_0x2ac4f2[_0x272c61(0x2f3)],_0x1a3a4a=_0x2ac4f2['drawingId'],_0x226e68={};for(let _0x11c47e of Object['keys'](_0x1b63aa[_0x272c61(0x17f)])){var _0x3383b6;let _0x417af8=(_0x3383b6=this[_0x272c61(0x1ef)])==null?void 0x0:_0x3383b6[_0x272c61(0x134)](_0x11c47e);_0x417af8!==void 0x0&&(_0x226e68[_0x11c47e]=_0x417af8);}Object[_0x272c61(0x12c)](_0x226e68)[_0x272c61(0x1bc)]>0x0&&Dr(this['_commandService'],_0x3a274e,_0x3e843b,_0x1a3a4a,{'oldShapeData':{'adjustValues':_0x4e5be3}},{'adjustValues':_0x226e68});}this['_activeAdjustInfo']=void 0x0,this[_0x272c61(0x1ef)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x22f526[_0x272c61(0x2fc)](),_0x1c37d5['enableObjectsEvent']();}),_0x41fe33['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x1fe560=_0x196d4a;let _0x4b2286=this[_0x1fe560(0x17a)][_0x1fe560(0x206)](_0x204504[_0x1fe560(0x205)]);this[_0x1fe560(0x335)](_0x4b2286['pipe'](_0x111568(_0x4e3bcc=>_0x4e3bcc?_0x4e3bcc[_0x1fe560(0xe2)][_0x1fe560(0xf5)](_0x111568(_0x43089d=>{const _0x37435c=_0x1fe560;if(!_0x43089d)return _0x929a31;let _0x59a757=_0x4e3bcc['getUnitId'](),_0x498458=this['_renderManagerService'][_0x37435c(0xd7)](_0x59a757),_0x475602=_0x498458==null?void 0x0:_0x498458[_0x37435c(0x142)];return _0x475602?_0x322e8d(_0x475602):_0x929a31;})):_0x929a31))[_0x1fe560(0x1ab)](_0x4b8564=>{const _0x45dd3d=_0x1fe560;let _0x528924=_0x4b8564[_0x45dd3d(0x384)]();this[_0x45dd3d(0x335)](_0x4b8564[_0x45dd3d(0x2cd)][_0x45dd3d(0xcf)](()=>{const _0x5f3737=_0x45dd3d;this[_0x5f3737(0xdc)];})),this[_0x45dd3d(0x335)](_0x528924[_0x45dd3d(0x115)]['subscribe'](_0x4f9c81=>{const _0x2330f1=_0x45dd3d;let {objects:_0x37255c}=_0x4f9c81;this[_0x2330f1(0x2ae)](),_0x37255c!==null&&_0x37255c[_0x2330f1(0x358)]===0x1&&_0x37255c[_0x2330f1(0x126)]()[_0x2330f1(0x116)]()[_0x2330f1(0x1b9)]instanceof J&&this[_0x2330f1(0x1e0)](!0x0);})),this[_0x45dd3d(0x335)](_0x528924['changing$']['subscribe'](()=>{const _0x2dd6ab=_0x45dd3d;this[_0x2dd6ab(0xdc)]&&this[_0x2dd6ab(0x128)]();})),this[_0x45dd3d(0x335)](_0x4b8564[_0x45dd3d(0x2a1)][_0x45dd3d(0xcf)](()=>{const _0x25828b=_0x45dd3d;this[_0x25828b(0xdc)]&&(this[_0x25828b(0x1e0)](!0x1),this['_createShapeAdjustControls']());})),this[_0x45dd3d(0x335)](_0x528924[_0x45dd3d(0xe4)][_0x45dd3d(0x1ab)](()=>{const _0x124e29=_0x45dd3d;this[_0x124e29(0x204)]&&this['_subUnitId']&&this['_activeShapeId']&&this[_0x124e29(0x23e)][_0x124e29(0xc7)]({'unitId':this[_0x124e29(0x204)],'subUnitId':this[_0x124e29(0x19d)],'drawingId':this[_0x124e29(0x2fb)]})&&(this['_activeShapeAdjustPointList']=this[_0x124e29(0x251)](this['_unitId'],this[_0x124e29(0x19d)],this[_0x124e29(0x2fb)]),this[_0x124e29(0x2f4)]());}));}));}[_0x196d4a(0x183)](){const _0x10667b=_0x196d4a;this[_0x10667b(0x335)](this[_0x10667b(0x232)][_0x10667b(0x33a)](_0x52af43=>{const _0x42e84f=_0x10667b;if(_0x52af43['id']!==_0x3ebd56['id'])return;let {unitId:_0x25dc5f,subUnitId:_0x5ceb3a,shapeId:_0x48841b}=_0x52af43[_0x42e84f(0x1a9)];_0x25dc5f===this['_unitId']&&_0x5ceb3a===this[_0x42e84f(0x19d)]&&_0x48841b===this['_activeShapeId']&&this[_0x42e84f(0x269)]();})),this[_0x10667b(0x335)](this[_0x10667b(0x23e)][_0x10667b(0x107)][_0x10667b(0x1ab)](_0x8b368=>{const _0x3fa7b5=_0x10667b;if(_0x8b368[_0x3fa7b5(0x1bc)]===0x1){let _0x71ba43=_0x8b368[0x0];if(_0x71ba43[_0x3fa7b5(0x27b)]===_0x123aa0[_0x3fa7b5(0x323)]&&this[_0x3fa7b5(0x17a)]['getUnitType'](_0x71ba43[_0x3fa7b5(0x263)])===_0x204504[_0x3fa7b5(0x205)]){this[_0x3fa7b5(0x2fb)]=_0x71ba43[_0x3fa7b5(0x14c)];let {unitId:_0x2e19e6,subUnitId:_0x1e35fc}=_0x71ba43;this[_0x3fa7b5(0x2aa)]=this['_getShapeAdjustPointListById'](_0x2e19e6,_0x1e35fc,this['_activeShapeId']),this[_0x3fa7b5(0x204)]=_0x2e19e6,this[_0x3fa7b5(0x19d)]=_0x1e35fc,this[_0x3fa7b5(0x128)](),this[_0x3fa7b5(0x2ae)]();return;}}this[_0x3fa7b5(0x2fb)]=null,this[_0x3fa7b5(0x2aa)]=void 0x0,this[_0x3fa7b5(0x204)]=null,this['_subUnitId']=null,this[_0x3fa7b5(0x128)]();})),this[_0x10667b(0x335)](this[_0x10667b(0x23e)][_0x10667b(0x131)][_0x10667b(0x1ab)](_0xb55056=>{const _0x1d0bdb=_0x10667b;if(_0xb55056[_0x1d0bdb(0x1bc)]===0x1){var _0x1fc96e;let _0x26e655=_0xb55056[0x0];((_0x1fc96e=this['_drawingManagerService'][_0x1d0bdb(0xc7)](_0x26e655))==null?void 0x0:_0x1fc96e[_0x1d0bdb(0x27b)])===_0x123aa0['DRAWING_SHAPE']&&this[_0x1d0bdb(0x210)](!0x0);}})),this[_0x10667b(0x335)](this[_0x10667b(0x23e)][_0x10667b(0x10d)][_0x10667b(0x1ab)](_0x28c644=>{const _0x44021e=_0x10667b;for(let _0x5f2bda of _0x28c644)this[_0x44021e(0x2fb)]===_0x5f2bda[_0x44021e(0x14c)]&&(this[_0x44021e(0x2fb)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x44021e(0x19d)]=null,this['_clearShapeAdjustControls']());}));}};Pr=X([Y(0x0,_0x446eb2),Y(0x1,_0x14bfc1(_0x13b053)),Y(0x2,_0x14bfc1(_0x4dadf2)),Y(0x3,_0x14bfc1(Z)),Y(0x4,_0x46c185),Y(0x5,_0x153d8f)],Pr);const Fr={'id':_0x196d4a(0xf9),'type':_0x36ba27[_0x196d4a(0x22a)],'handler':(_0x2b8355,_0x1d0480)=>{const _0x4e5013=_0x196d4a;let _0x2f792d=_0x2b8355[_0x4e5013(0x100)](_0x446eb2),_0x709e17=_0x2b8355[_0x4e5013(0x100)](_0x4dadf2),_0xc8737d=_0x2b8355[_0x4e5013(0x100)](Pr);if(_0x1d0480==null)return!0x0;if(_0x1d0480[_0x4e5013(0x1bc)]>0x0){var _0x4f101c;let _0x26f8c7=(_0x4f101c=_0x709e17[_0x4e5013(0xd7)](_0x1d0480[0x0][_0x4e5013(0x263)]))==null?void 0x0:_0x4f101c[_0x4e5013(0x142)];if(_0x26f8c7){let {unitId:_0x2b9473,subUnitId:_0x2c893c,drawingId:_0x9e8c}=_0x1d0480[0x0],_0x33bee4=_0x934411({'unitId':_0x2b9473,'subUnitId':_0x2c893c,'drawingId':_0x9e8c},void 0x0),_0xb7e5fd=_0x26f8c7[_0x4e5013(0x2b5)](_0x33bee4);if(_0xb7e5fd){var _0x199801;(_0x199801=_0x709e17[_0x4e5013(0xd7)](_0x1d0480[0x0][_0x4e5013(0x263)]))==null||(_0x199801=_0x199801[_0x4e5013(0x142)]['getTransformer']())==null||_0x199801[_0x4e5013(0xdd)](_0xb7e5fd);}}_0x2f792d['focusDrawing'](_0x1d0480),_0xc8737d[_0x4e5013(0x1e0)](!0x1);}return!0x0;}},Ir={'type':_0x36ba27[_0x196d4a(0x215)],'id':_0x196d4a(0x124),'handler':async(_0x4659f7,_0x509e35)=>{const _0x415372=_0x196d4a;let _0x1fea76=_0x3e1b5c(_0x4659f7[_0x415372(0x100)](_0x46c185));if(!_0x1fea76)return!0x1;let _0x385a77=_0x4659f7['get'](_0xf5394)[_0x415372(0x300)]();if(!_0x385a77)return!0x1;let _0x304367=_0x4659f7[_0x415372(0x100)](_0x153d8f),{unitId:_0x5576bf,subUnitId:_0x401db5}=_0x1fea76,{value:_0x44e6c8,enhanceParams:_0x68c083}=_0x509e35,{range:_0x122123}=_0x385a77,_0x426b58={'unitId':_0x5576bf,'subUnitId':_0x401db5,'shapeType':_0x44e6c8,'range':_0x122123,'shapeId':_0xc50b92()};if(_0x68c083){let _0x5511f4=_0x22e615(_0x44e6c8),_0x5a2783=_0x44e6c8===_0xc016ca[_0x415372(0x29c)];_0x5511f4&&(_0x68c083[_0x415372(0x334)]||_0x68c083[_0x415372(0x113)])&&(_0x426b58[_0x415372(0x2cf)]={'ln':{'startArrow':_0x68c083[_0x415372(0x334)]?{'type':_0x3f977e['Arrow'],'size':_0x2f917e[_0x415372(0x164)]}:void 0x0,'endArrow':_0x68c083[_0x415372(0x113)]?{'type':_0x3f977e[_0x415372(0x272)],'size':_0x2f917e[_0x415372(0xe1)]}:void 0x0}}),_0x5a2783&&(_0x68c083['horizontal']||_0x68c083[_0x415372(0x1ad)])&&(_0x426b58['shapeData']=_0x474a1d({'fill':{'fillType':_0xcb9b68[_0x415372(0x11a)],'color':_0x415372(0x25a)},'isHorizontal':!!_0x68c083[_0x415372(0x2a8)],'stroke':{'lineStrokeType':_0x291db2['SolidLine'],'width':0x1,'color':'#bcbcbc'}}));}let _0x4b2348=_0x304367[_0x415372(0x227)](_0x258890['id'],_0x426b58);return setTimeout(()=>{const _0x5c7f5a=_0x415372;_0x304367[_0x5c7f5a(0x152)](Fr['id'],[{'unitId':_0x5576bf,'subUnitId':_0x401db5,'drawingId':_0x426b58[_0x5c7f5a(0x26c)]}]);},0xc8),_0x4b2348;}},Lr=_0x196d4a(0x138),Rr=_0x196d4a(0x2e8),zr=_0x196d4a(0x1a1),Br=_0x196d4a(0x137),Vr=_0x36e2be(_0x196d4a(0x21e)),Hr=_0x196d4a(0x1ed),Ur={'id':'sheet.operation.open-shape-object-list-panel','type':_0x36ba27['COMMAND'],'handler':(_0x13af98,_0x1d70b8)=>{const _0x40012a=_0x196d4a;let _0xaf2cba=_0x13af98[_0x40012a(0x100)](_0x6f2b47),_0x1db037=_0x13af98['get'](_0x407e83),_0x42c762=_0x13af98[_0x40012a(0x100)](_0x46c185),_0x15241d=_0x13af98[_0x40012a(0x100)](_0x153d8f);return _0x3e1b5c(_0x42c762)?(_0x1d70b8==null?void 0x0:_0x1d70b8[_0x40012a(0x1b9)])===_0x40012a(0x29a)?(_0xaf2cba['close'](Rr),!0x0):(_0xaf2cba['open']({'id':Rr,'header':{'title':_0x1db037['t'](_0x40012a(0x28c))},'children':{'label':Rr},'onClose':()=>{_0x15241d['syncExecuteCommand'](_0x4ec468['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x36ba27['OPERATION'],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function Gr(_0x4c853e){const _0x32e2f1=_0x196d4a;let _0x301da2=_0x4c853e[_0x32e2f1(0x100)](_0x446eb2)['getFocusDrawings'](),_0x1503ae=_0x301da2[_0x32e2f1(0x1bc)]===0x1?_0x301da2[0x0]:null;if(!_0x1503ae||_0x1503ae[_0x32e2f1(0x27b)]!==_0x123aa0['DRAWING_SHAPE'])return null;let _0x486828=_0x4c853e['get'](_0x13b053),_0x3569ed=_0x486828[_0x32e2f1(0x16a)](_0x1503ae['unitId'],_0x1503ae['subUnitId'],_0x1503ae['drawingId']),_0x489360=_0x486828[_0x32e2f1(0xf0)](_0x1503ae['unitId'],_0x1503ae[_0x32e2f1(0x2f3)],_0x1503ae['drawingId']);return _0x3569ed===void 0x0||!_0x489360?null:{'drawing':_0x1503ae,'shapeData':_0x489360,'shapeType':_0x3569ed};}const Kr={'id':_0x196d4a(0x1f4),'type':_0x36ba27[_0x196d4a(0x22a)],'handler':(_0x8048fe,_0x5aaa36)=>{const _0x4865b7=_0x196d4a;let _0x55e0f5=Gr(_0x8048fe),_0x3b2480=_0x321892((_0x5aaa36==null?void 0x0:_0x5aaa36[_0x4865b7(0x33d)])??(_0x5aaa36==null?void 0x0:_0x5aaa36[_0x4865b7(0x1b9)])??'');if(!_0x55e0f5||!_0x3b2480||_0x3b2480[_0x4865b7(0x104)]!==_0x50f87c(_0x55e0f5[_0x4865b7(0x2cf)]))return!0x1;let _0x231e18=_0x5725f8(_0x55e0f5[_0x4865b7(0x2cf)],_0x3b2480);if(!_0x231e18)return!0x1;let {drawing:_0x36d969}=_0x55e0f5;return _0x8048fe[_0x4865b7(0x100)](_0x153d8f)[_0x4865b7(0x152)](K['id'],{'unitId':_0x36d969[_0x4865b7(0x263)],'subUnitId':_0x36d969[_0x4865b7(0x2f3)],'shapeId':_0x36d969[_0x4865b7(0x14c)],'shapeData':_0x231e18,'oldShapeJSON':{'oldShapeData':_0x55e0f5[_0x4865b7(0x2cf)]}});}},qr={'id':_0x196d4a(0x139),'type':_0x36ba27[_0x196d4a(0x22a)],'handler':(_0x92482c,_0x270fd1)=>{const _0x39b8df=_0x196d4a;let _0x1a08e0=Gr(_0x92482c),_0x40c898=(_0x270fd1==null?void 0x0:_0x270fd1['shapeType'])??(_0x270fd1==null?void 0x0:_0x270fd1[_0x39b8df(0x1b9)]);if(!_0x1a08e0||!_0x40c898||_0x22e615(_0x1a08e0[_0x39b8df(0x327)])||_0x22e615(_0x40c898))return!0x1;let _0x23ae9d=_0x1bfbb7(_0x1a08e0[_0x39b8df(0x2cf)],_0x40c898);if(!_0x23ae9d)return!0x1;let {drawing:_0xb7e39a}=_0x1a08e0;return _0x92482c['get'](_0x153d8f)[_0x39b8df(0x152)](K['id'],{'unitId':_0xb7e39a[_0x39b8df(0x263)],'subUnitId':_0xb7e39a[_0x39b8df(0x2f3)],'shapeId':_0xb7e39a[_0x39b8df(0x14c)],'shapeType':_0x40c898,'shapeData':_0x23ae9d,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x1a08e0[_0x39b8df(0x327)],'oldShapeData':_0x1a08e0[_0x39b8df(0x2cf)]}});}};let Q=class extends _0x116f11{constructor(_0x29c921,_0x402d5c){const _0x509961=_0x196d4a;super(),this[_0x509961(0xf6)]=_0x29c921,this['_drawingManagerService']=_0x402d5c,this[_0x509961(0x277)](),this[_0x509961(0xf6)]['setCanUseShapeClip'](!0x0),this[_0x509961(0x335)]({'dispose':()=>this['_clipService'][_0x509961(0x108)](!0x1)});}[_0x196d4a(0x277)](){const _0x2877f5=_0x196d4a;let _0x9e521d=this['_clipService'],_0x2e4949=new Map(),_0x39f820=_0x9e521d[_0x2877f5(0x301)]((_0x5db9b2,_0x4274a4,_0x1bdf54,_0x3b0c95,_0x1b0736)=>{const _0x200979=_0x2877f5;let _0x1203d5=_0x4274a4;if(_0x1203d5===_0xc016ca[_0x200979(0x167)]||_0x4274a4===_0x200979(0x1bf))return!0x1;try{let _0x588291=_0x2e4949[_0x200979(0x100)](_0x4274a4);return _0x588291||(_0x588291=new _0x2d7016(_0x1203d5,'clip-'+_0x4274a4),_0x2e4949[_0x200979(0x127)](_0x4274a4,_0x588291)),_0x588291[_0x200979(0x2ac)](),_0x1b0736&&Object[_0x200979(0x12c)](_0x1b0736)[_0x200979(0x1bc)]>0x0&&_0x588291[_0x200979(0x336)]({'adjustValues':_0x1b0736},!0x0),_0x588291[_0x200979(0x385)]({'width':_0x1bdf54,'height':_0x3b0c95}),_0x588291['buildClipPath'](_0x5db9b2,{'left':0x0,'top':0x0,'width':_0x1bdf54,'height':_0x3b0c95});}catch{return!0x1;}});this['disposeWithMe'](_0x39f820),this[_0x2877f5(0x335)]({'dispose':()=>_0x2e4949[_0x2877f5(0x1b6)]()});}[_0x196d4a(0x2c4)](_0x10e5d3,_0x2ea073,_0x2bfda7,_0x201c58,_0x355b64){const _0x183415=_0x196d4a;let _0x4d8a51=this['_drawingManagerService'][_0x183415(0x37c)](_0x10e5d3,_0x2ea073);if(!_0x4d8a51[_0x2bfda7])return;let _0x1d0a89={..._0x4d8a51[_0x2bfda7],'prstGeom':_0x201c58,'adjustValues':_0x355b64};this[_0x183415(0x23e)]['featurePluginUpdateNotification']([_0x1d0a89]);}};Q=X([Y(0x0,_0x14bfc1(_0x264f1f)),Y(0x1,_0x14bfc1(_0x446eb2))],Q);const Jr=_0x196d4a(0x149),Yr=_0x196d4a(0x231);function Xr({onShapeClick:_0x6bc1dd,excludeGroups:_0x42ef69}){return _0x39d578(_0x582181,{'excludeGroups':_0x42ef69,'onShapeClick':_0x6bc1dd,'scrollContainer':'parent'});}function Zr(){const _0x15a17f=_0x196d4a;let _0x538745=_0x508bbd(_0x446eb2),_0x214ad1=_0x508bbd(Q);return _0x39d578(_0x1f8e20,{'buttonLabel':_0x15a17f(0x1e7),'excludeGroups':[_0x1c44ee['Line']],'onShapeClick':_0x13630=>{const _0x50b853=_0x15a17f;let _0x2c1bf7=_0x538745[_0x50b853(0x31a)]()[_0x50b853(0x10a)](_0x37de56=>_0x37de56[_0x50b853(0x27b)]===_0x123aa0['DRAWING_IMAGE']);if(!_0x2c1bf7)return;let {unitId:_0x35678c,subUnitId:_0x39b622,drawingId:_0x345044}=_0x2c1bf7;_0x214ad1['clipByShape'](_0x35678c,_0x39b622,_0x345044,_0x13630[_0x50b853(0x104)]);}});}function Qr(){const _0x57a1a2=_0x196d4a;let _0x1c448a=_0x508bbd(_0x446eb2),_0x254892=_0x508bbd(Q);return _0x39d578(_0x1f8e20,{'buttonLabel':_0x57a1a2(0x1e7),'excludeGroups':[_0x1c44ee[_0x57a1a2(0x265)]],'DropdownComponent':_0x400434,'onShapeClick':_0x4504cf=>{const _0x1fdb89=_0x57a1a2;let _0x5ae62d=_0x1c448a[_0x1fdb89(0x31a)]()['find'](_0x582185=>_0x582185[_0x1fdb89(0x27b)]===_0x123aa0[_0x1fdb89(0x258)]);if(!_0x5ae62d)return;let {unitId:_0x585dda,subUnitId:_0x556cc2,drawingId:_0x248c06}=_0x5ae62d;_0x254892[_0x1fdb89(0x2c4)](_0x585dda,_0x556cc2,_0x248c06,_0x4504cf[_0x1fdb89(0x104)]);}});}function $r(){const _0x22e00e=_0x196d4a;let _0x5ed371=_0x508bbd(_0x1db2df),_0x2e196f=_0x508bbd(_0x446eb2),_0x3d93a1=_0x508bbd(_0x46c185),_0x300941=_0x2e196f[_0x22e00e(0x31a)]()[0x0],_0x190195=_0x300941?_0x3d93a1[_0x22e00e(0x256)](_0x300941[_0x22e00e(0x263)]):void 0x0,_0x3ce7b9=_0x190195===_0x204504[_0x22e00e(0x189)]?_0x22e00e(0x2ab):_0x190195===_0x204504[_0x22e00e(0x205)]?Yr:void 0x0,_0x5552f3=_0x3ce7b9?_0x5ed371[_0x22e00e(0x100)](_0x3ce7b9):void 0x0;return _0x5552f3?_0x39d578(_0x5552f3,{}):null;}function ei(){let _0x55b6b4=_0x508bbd(_0x153d8f);return _0x39d578(Xr,{'onShapeClick':_0xaf16b3=>{const _0xa3d737=_0x165f;_0x55b6b4['executeCommand'](Ir['id'],{'value':_0xaf16b3[_0xa3d737(0x104)],'enhanceParams':{'endArrow':_0xaf16b3['endArrow'],'startArrow':_0xaf16b3['startArrow'],'horizontal':_0xaf16b3['horizontal'],'vertical':_0xaf16b3[_0xa3d737(0x1ad)]}});}});}function ti(){return _0x39d578(ei,{});}function ni(_0x54ff20){const _0x273cfd=_0x196d4a;let _0x119855=_0x54ff20[_0x273cfd(0x100)](_0x46c185);return{'id':Ir['id'],'type':_0x1e3d30[_0x273cfd(0x2c0)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x273cfd(0x14a),'tooltip':_0x273cfd(0x369),'activated$':_0x548ef1(_0x119855,!0x1,()=>new _0x4bb236(_0x420330=>{const _0x4bd272=_0x273cfd;_0x420330[_0x4bd272(0x116)](!0x1);})),'hidden$':_0x2f5a15(_0x54ff20,_0x204504[_0x273cfd(0x205)]),'disabled$':_0x5fe679(_0x54ff20)};}function ri(_0x56cd54){const _0x28d00f=_0x196d4a;let _0x24d95d=_0x56cd54[_0x28d00f(0x100)](_0x46c185);return{'id':Ur['id'],'type':_0x1e3d30[_0x28d00f(0x287)],'icon':_0x28d00f(0x38d),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x28d00f(0x26d),'activated$':_0x548ef1(_0x24d95d,!0x1,()=>new _0x4bb236(_0x51b1ad=>{_0x51b1ad['next'](!0x1);})),'hidden$':_0x2f5a15(_0x56cd54,_0x204504[_0x28d00f(0x205)]),'disabled$':_0x5fe679(_0x56cd54)};}const ii='sheet.menu.shape.flip-horizontal',ai='sheet.menu.shape.flip-vertical';function oi(_0x59b0ba){const _0x376118=_0x196d4a;let _0x2acc25=_0x59b0ba['get'](_0x446eb2)[_0x376118(0x31a)]();return _0x2acc25[_0x376118(0x1bc)]===0x1&&_0x2acc25[0x0]['drawingType']===_0x123aa0['DRAWING_SHAPE']?_0x2acc25[0x0]:null;}function si(_0x22dbbd){const _0x4a6475=_0x196d4a;let _0x51d5b9=_0x22dbbd[_0x4a6475(0x100)](_0x446eb2);return _0x51d5b9[_0x4a6475(0x107)][_0x4a6475(0xf5)](_0x2cd3b2(_0x51d5b9[_0x4a6475(0x31a)]()),_0x4fdaa9(_0x424c12=>_0x424c12[_0x4a6475(0x1bc)]!==0x1||_0x424c12[0x0]['drawingType']!==_0x123aa0[_0x4a6475(0x323)]));}function ci(_0x187b2d){const _0x32044a=_0x196d4a;return{'id':ii,'commandId':_0x3e0bbc['id'],'type':_0x1e3d30['BUTTON'],'title':_0x32044a(0x143),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x32044a(0x136),'hidden$':si(_0x187b2d),'params':()=>{const _0x31accc=_0x32044a;let _0x5dbf50=oi(_0x187b2d);return _0x5dbf50?{'unitId':_0x5dbf50[_0x31accc(0x263)],'subUnitId':_0x5dbf50[_0x31accc(0x2f3)],'shapeId':_0x5dbf50[_0x31accc(0x14c)],'flipH':!0x0}:void 0x0;}};}function li(_0x11489b){const _0x19078=_0x196d4a;return{'id':ai,'commandId':_0x3e0bbc['id'],'type':_0x1e3d30['BUTTON'],'title':_0x19078(0xcc),'tooltip':_0x19078(0xcc),'icon':_0x19078(0x12b),'hidden$':si(_0x11489b),'params':()=>{const _0x31b189=_0x19078;let _0x979f76=oi(_0x11489b);return _0x979f76?{'unitId':_0x979f76[_0x31b189(0x263)],'subUnitId':_0x979f76['subUnitId'],'shapeId':_0x979f76[_0x31b189(0x14c)],'flipV':!0x0}:void 0x0;}};}const ui=_0x196d4a(0x1a3),di=_0x196d4a(0x118),fi=_0x196d4a(0x32d),pi=_0x196d4a(0x199);function mi(){let _0x5d1e3a=_0x508bbd(_0x153d8f),_0x242e81=_0x508bbd(_0x446eb2),_0x1a59e9=_0x508bbd(_0x13b053),_0x49110a=()=>{const _0x7a7f73=_0x165f;var _0x1b3d8e;let _0x2b39bc=_0x242e81[_0x7a7f73(0x31a)]();if(_0x2b39bc[_0x7a7f73(0x1bc)]!==0x1||((_0x1b3d8e=_0x2b39bc[0x0])==null?void 0x0:_0x1b3d8e[_0x7a7f73(0x27b)])!==_0x123aa0[_0x7a7f73(0x323)])return null;let {unitId:_0x23a6a7,subUnitId:_0x4ef802,drawingId:_0x129b93}=_0x2b39bc[0x0],_0x337909=_0x1a59e9[_0x7a7f73(0x16a)](_0x23a6a7,_0x4ef802,_0x129b93),_0x2e2bdb=_0x1a59e9[_0x7a7f73(0xf0)](_0x23a6a7,_0x4ef802,_0x129b93);return _0x337909===void 0x0||!_0x2e2bdb?null:{'unitId':_0x23a6a7,'subUnitId':_0x4ef802,'drawingId':_0x129b93,'shapeType':_0x337909,'shapeData':_0x2e2bdb};},_0x216c5c=_0x49d454(()=>new _0x4bb236(_0x513a8e=>{const _0x275208=_0x165f;let _0x486998=()=>_0x513a8e[_0x275208(0x116)](_0x49110a()),_0x146043=_0x242e81[_0x275208(0x107)]['subscribe'](_0x486998),_0x233cea=_0x5d1e3a[_0x275208(0x33a)](_0x26555c=>{_0x26555c['id']===_0x3ebd56['id']&&_0x486998();});return _0x486998(),()=>{const _0x2fc291=_0x275208;_0x146043[_0x2fc291(0x33c)](),_0x233cea[_0x2fc291(0x1cc)]();};}),_0x49110a(),!0x1,[_0x5d1e3a,_0x242e81,_0x1a59e9]);return{'selection':_0x216c5c,'updateShapeData':_0x381aaa=>{const _0x1206e8=_0x165f;_0x216c5c&&Dr(_0x5d1e3a,_0x216c5c[_0x1206e8(0x263)],_0x216c5c['subUnitId'],_0x216c5c[_0x1206e8(0x14c)],{'oldShapeData':_0x216c5c[_0x1206e8(0x2cf)]},_0x381aaa);}};}function hi(){const _0x4f7b49=_0x196d4a;let {selection:_0x4f8e16,updateShapeData:_0x3c6146}=mi();return _0x4f8e16?_0x39d578(_0x3da966,{'shapeData':_0x4f8e16[_0x4f7b49(0x2cf)],'shapeType':_0x4f8e16['shapeType'],'onUpdateShapeData':_0x3c6146}):null;}function gi(){const _0x2476c0=_0x196d4a;let _0x51c7f7=_0x508bbd(_0x153d8f),_0x5f4660=_0x508bbd(_0x407e83),{selection:_0x3f66d7}=mi();return _0x3f66d7?_0x39d578(_0x1f258e,{'type':_0x50f87c(_0x3f66d7[_0x2476c0(0x2cf)]),'ariaLabel':_0x5f4660['t']('sheets-shape-ui.quickStyles'),'activePresetId':_0x311965(_0x3f66d7[_0x2476c0(0x2cf)]),'onSelect':_0x521d02=>_0x51c7f7['executeCommand'](Kr['id'],{'presetId':_0x521d02})}):null;}function _i(){const _0x381b2f=_0x196d4a;let {selection:_0x677e45,updateShapeData:_0x4e63f5}=mi();return _0x677e45?_0x39d578(_0x1d4f6a,{'fontFamilyPopupDataComponent':_0x381b2f(0x352),'shapeData':_0x677e45['shapeData'],'onUpdateShapeData':_0x4e63f5}):null;}function vi(){const _0xcc9c3d=_0x196d4a;var _0x6b1860;let {selection:_0x2176a8,updateShapeData:_0x4955ac}=mi(),_0x5d4d81=_0x223293({'hostType':_0x204504[_0xcc9c3d(0x205)],'unitId':(_0x2176a8==null?void 0x0:_0x2176a8[_0xcc9c3d(0x263)])??'','subUnitId':(_0x2176a8==null?void 0x0:_0x2176a8[_0xcc9c3d(0x2f3)])??'','shapeId':(_0x2176a8==null?void 0x0:_0x2176a8[_0xcc9c3d(0x14c)])??'','shapeData':_0x2176a8==null?void 0x0:_0x2176a8['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0xcc9c3d(0x106),'onUpdateBinding':_0x44d635=>_0x4955ac({'formulaBinding':_0x44d635})}),_0x3f8f8b=((_0x6b1860=_0x5d4d81['extensionGroups'])==null?void 0x0:_0x6b1860[_0xcc9c3d(0x2b6)](_0x170142=>_0x170142[_0xcc9c3d(0x304)])['filter'](_0x50912d=>_0x50912d[_0xcc9c3d(0x339)]!==!0x1))??[];return _0x2176a8!=null&&_0x2176a8[_0xcc9c3d(0x2cf)][_0xcc9c3d(0x175)]?_0x39d578(_0x71cd10,{'actions':_0x3f8f8b,'panel':_0x5d4d81[_0xcc9c3d(0x357)]}):null;}const yi=_0x196d4a(0x344),bi=_0x196d4a(0x1c6),xi=_0x196d4a(0x201),Si=_0x196d4a(0x125),Ci=_0x196d4a(0x2bc),wi='sheets-shape-ui.ribbon.shape-format.arrange-front',Ti=_0x196d4a(0xfc);function Ei(_0x1d7c00){const _0x1c9634=_0x196d4a;let _0xabddb2=_0x1d7c00[_0x1c9634(0x100)](_0x153d8f),_0x6dd406=_0x1d7c00[_0x1c9634(0x100)](_0x446eb2),_0x572cd3=_0x1d7c00[_0x1c9634(0x100)](_0x13b053);return new _0x4bb236(_0x2d4751=>{const _0x3ac92c=_0x1c9634;let _0x189857=()=>{const _0x3328d4=_0x165f;let _0x5ea93b=Di(_0x1d7c00),_0x33b59c=_0x5ea93b?_0x572cd3['getShapeDataById'](_0x5ea93b['unitId'],_0x5ea93b['subUnitId'],_0x5ea93b[_0x3328d4(0x14c)]):null;_0x2d4751[_0x3328d4(0x116)](_0x33b59c?_0x311965(_0x33b59c)??'':'');},_0x3f9622=_0x6dd406[_0x3ac92c(0x107)][_0x3ac92c(0x1ab)](_0x189857),_0x39ab70=_0xabddb2[_0x3ac92c(0x33a)](_0x4479f3=>{_0x4479f3['id']===_0x3ebd56['id']&&_0x189857();});return _0x189857(),()=>{const _0x1dfb38=_0x3ac92c;_0x3f9622[_0x1dfb38(0x33c)](),_0x39ab70[_0x1dfb38(0x1cc)]();};});}function Di(_0x58ef9b){const _0x2c6da8=_0x196d4a;var _0x4e1d9d;let _0x586e94=_0x58ef9b[_0x2c6da8(0x100)](_0x446eb2)[_0x2c6da8(0x31a)]();return _0x586e94[_0x2c6da8(0x1bc)]===0x1&&((_0x4e1d9d=_0x586e94[0x0])==null?void 0x0:_0x4e1d9d[_0x2c6da8(0x27b)])===_0x123aa0[_0x2c6da8(0x323)]?_0x586e94[0x0]:null;}function Oi(_0x58a556,_0x946700=!0x1){const _0x1c00f7=_0x196d4a;let _0x25eb43=_0x58a556[_0x1c00f7(0x100)](_0x153d8f),_0x3f55ba=_0x58a556[_0x1c00f7(0x100)](_0x446eb2),_0x3d3f76=_0x58a556['get'](_0x13b053);return new _0x4bb236(_0x2de255=>{const _0x26ac12=_0x1c00f7;let _0x1caf5f=()=>{const _0x472877=_0x165f;let _0x9cb340=Di(_0x58a556);if(!_0x9cb340){_0x2de255[_0x472877(0x116)](!0x0);return;}let _0x388a23=_0x3d3f76[_0x472877(0xf0)](_0x9cb340[_0x472877(0x263)],_0x9cb340[_0x472877(0x2f3)],_0x9cb340[_0x472877(0x14c)]);_0x2de255['next'](!_0x388a23||_0x946700&&_0x388a23[_0x472877(0x175)]==null);},_0x2df15b=_0x3f55ba[_0x26ac12(0x107)]['subscribe'](_0x1caf5f),_0x3dfdcc=_0x25eb43['onCommandExecuted'](_0xea89d4=>{_0xea89d4['id']===_0x3ebd56['id']&&_0x1caf5f();});return _0x1caf5f(),()=>{const _0x336b61=_0x26ac12;_0x2df15b['unsubscribe'](),_0x3dfdcc[_0x336b61(0x1cc)]();};});}function ki(_0x517376){const _0x21c3cc=_0x196d4a;let _0x173462=_0x517376[_0x21c3cc(0x100)](_0x446eb2),_0x38b65f=_0x517376[_0x21c3cc(0x100)](_0x13b053);return _0x173462[_0x21c3cc(0x107)]['pipe'](_0x2cd3b2(_0x173462[_0x21c3cc(0x31a)]()),_0x4fdaa9(()=>{const _0x2749fb=_0x21c3cc;let _0x49d7c0=Di(_0x517376),_0x5e6cc5=_0x49d7c0?_0x38b65f[_0x2749fb(0x16a)](_0x49d7c0[_0x2749fb(0x263)],_0x49d7c0[_0x2749fb(0x2f3)],_0x49d7c0[_0x2749fb(0x14c)]):void 0x0;return _0x5e6cc5===void 0x0||_0x22e615(_0x5e6cc5);}));}function Ai(_0x2a9a51){const _0x1a22ee=_0x196d4a;return{'id':Kr['id'],'type':_0x1e3d30[_0x1a22ee(0x2c0)],'icon':'PaintIcon','title':_0x1a22ee(0x25d),'tooltip':_0x1a22ee(0x25d),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x2a9a51),'hidden$':Oi(_0x2a9a51)};}function ji(_0x5eaec3){const _0x20f5da=_0x196d4a;return{'id':qr['id'],'type':_0x1e3d30[_0x20f5da(0x2c0)],'icon':'ShapeIcon','title':_0x20f5da(0x35a),'tooltip':_0x20f5da(0x35a),'slot':!0x0,'selections':[{'label':{'name':_0x167ae2,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x5eaec3)};}function _0x376e(){const _0x3a3b21=['sheetTransform','forEach','shapeType','INSERT','unit','_initMenu','stringify','_cxnIndex','sheets-shape-ui.shape-format.text-ribbon-control','resourceCollector','fill','_adjHandlerPointerMove','cancelEditing','formulaPresentation','_openShapeEditPanel','startArrow','disposeWithMe','setShapeData','getEndConnectInfo','iterator','visible','onCommandExecuted','forward','unsubscribe','presetId','_sheetShapeAdjustController','getBatchUpdateOp','_handleConnectorPointerUp','_visible','image','isStartConnectorPoint','sheets-shape-ui.ribbon.shape-format.style-control','drawing-ui.objectListPanel.close','drawing-ui.objectListPanel.hide','startConnectionDetection','lineShapeId','drawing-ui.objectListPanel.unlockAll','shapeText','13365WCubPi','intercept','sheets-shape-ui','_menuManagerService','_urlImageService','front','back','sheets-shape-format-font-family-menu','CROSSHAIR','_handleBasicShapeUpdateConnectorLineShape','attachPopupToObject','_formulaKey','panel','size','_editingParams$','shape-editor-ui.toolbar.changeShape','error','getDrawingSearch','objects','ang','_shapeTextEditingService','_transformCalculateSrcRect','registerCommand','flipX','_getConnectPointInfo','focusDrawing','drawing-ui.objectListPanel.descriptionPlaceholder','_shapeUpdateListener','pluginName','onStarting','sheets-shape-ui.insertShape','drawing-ui.objectListPanel.hideAll','setContextValue','isRenderLinePointsMode','localToWorld','animateFormulaPresentation','_formulaShapes','call','_sheetBasicShapeConnectionPointController','abs','setCursor','permissionCheckWithoutRange','extraProps','sheet.operation.close-sheet-shape-format-panel','onerror','indexOf','setFormulaPresentation','name','clipHeight','getDrawingData','_connectionSiteObjects','registerFeaturePasteHook','getBasicShapeRelation','_clearShapeConnectorHandlerObjects','drawing-ui.objectListPanel.filterLocked','_activeAdjustPointList','entries','getTransformerByCreate','updateContext','#4285f4','_addShapeConnectorHandlerObjects','_shapeEditPanelVersion','sheet.command.update-shape-data','enableObjectsEvent','_drawRichTextLayer','_loadAndSetImage','ObjectLayersIcon','_getScrollInfo','actualHeight','getDrawingByParam','_sheetSkeletonService','getStartConnectInfo','clearAdjustControls','getActualSize','sheets-shape-ui.flipVertical','idMap','dataModel','subscribeEvent','getBentTypeFromPoints','SHEET','15166151JvHaMq','drawing-ui.objectListPanel.nameInput','_registerFocusChangeHandler','adjustValues','drawWith','getRenderUnitById','getCurrentScrollState','VIEW_MAIN_LEFT_TOP','addImageSourceCache','refreshShapeFillImage','_isShouldShowDrawingShapeAdjust','activeAnObject','_registerMoveHandler','clipTop','SHEET_SHAPE_UI_PLUGIN','Large','activeSheet$','_iconManager','changeEnd$','makeDirty','getShapeModel','setCollapsedIds','_sheetDrawingService','getEditing','addObject','doc','interceptCommand','sheetViewStartRow','_disposePopups','onReady','getShapeDataById','onSavingEditorData$','cxnPointFill','selectable','refreshFormulaPresentation','pipe','_clipService','_transform','_getShapeInfo','drawing.operation.set-drawing-active','_rerouteConnectorLine','color','sheets-shape-ui.ribbon.shape-format.arrange-back','delete','_permissionService','redo','get','pick','_baseWidth','showContextualTab','type','calcAdjValues','bottom','focus$','setCanUseShapeClip','isLineShape','find','_currentConnectionTarget','sheetViewStartColumn','remove$','_isDrawingShapePointDown','transformVector2SceneCoord','Image','translateWithPrecision','getConnectionInfo','endArrow','getDrawingEditable','changeStart$','next','drawing-ui.objectListPanel.name','sheets-shape-ui.shape-format.style-ribbon-control','_sheetInterceptorService','SolidFill','_activeTargetShapeId','shape-adjust-point-','_ribbonService','includes','axisAlignSheetTransform','viewBound','DRAWING','trim','_createCopyInfoByRange','sheet.command.menu-insert-shape','sheets-shape-ui.ribbon.shape-format.arrange-forward','values','set','_clearShapeAdjustControls','_sidebarService','_adjHandlerPointerUp','FlipVerticalIcon','keys','_closeShapeEditPanel','_sheetCanvasPopManagerService','description','resetCursor','update$','_sheetDrawingShapeRenderController','renderDrawingShape','getAdjustValueByName','getParent','FlipHorizontalIcon','sheets-shape-ui.ribbon.shape-format','sheet.shape.edit.panel','sheet.operation.update-shape-type','prstGeomAdjValues','connection-site-','_initCommands','shape-editor-ui.arrange.forward','_hyperLinkRegions','sheets-shape-ui.config','_index','_drawingRenderService','scene','sheets-shape-ui.flipHorizontal','_connectorObjects','version','isEditing','getConnectionSiteList','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','sheet.shape.picker.component','ShapeIcon','adjHandleStroke','drawingId','extensionGroups','_executeConnectedRouteConnectionCommand','_generateCutPasteMutations','isRender','onRendered','executeCommand','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_update','_executeResizeCommand','drawing-ui.objectListPanel.lockHint','register','left','updateLinePoints','_activeAdjustInfo','reverse','defineProperty','drawing-ui.objectListPanel.unlockHint','onload','fillType','_shapePopupMenuDisposable','20MKxCsJ','GROUP','mode','Medium','computeConnectorResizeLayout','create','None','_baseTop','getPermissionPoint','getShapeTypeById','getOwnPropertyDescriptor','_addShapeConnectorHandlerObject','_reset','shape-editor-ui.arrange.back','registerFeatureMenu','_initPermission','_registerIcons','#1a73e8','rect','render','formulaBinding','_releaseRenderCache','RIBBON','_sheetPrintInterceptorService','asObservable','_univerInstanceService','cos','UPDATE','_generatePasteMutations','_drawRichText','currentAdjustValues','invert','editingParams$','LEFT','_registerDrawingFocusChangeHandler','blockExecuteWithoutPermission','_localeService','_copyInfo','TOP','updateDocumentDataMargin','UNIVER_DOC','getValue','sheets-shape-contextual-ribbon','srcRect','clearControl$','_groupCopyPasteController','lineType','canvas','filter','getAdjustNames','stroke','_insertingShapeKeys','_moveConnectorWithShape','cxnIndex','getShapeType','_shapes','sheets-shape-ui.shape-format.formula-ribbon-control','_getImagePrstGeom','setSrcRect','copyType','_subUnitId','getDrawingPoints','getTransformer','getScene','sheet.shape.floating-toolbar','_registerDrawingMoveHandler','sheets-shape-ui.shape-format.quick-style-gallery','540212RItCrO','_applyFormulaAutoFitSize','getMatrix','beginPath','105tufaWy','params','shapeModel','subscribe','flipY','vertical','viewportScrollX','sheets-shape-ui.deleteShape','setAdjustValueByName','getSkeleton','_clearFocusedShape','_getOrCreateShapeModel','getSheetId','isRichText','clear','_renderManagerService','MEDIA','value','adjHandleSize','drawing-ui.objectListPanel.details','length','_getConnectionSiteAngle','getDrawingVisible','custom','updateDocumentStyle','add','_renderWithCache','initShapePopupMenu','_registerFeatureMenu','undo','sheets-shape-ui.ribbon.shape-format.text-control','_hasReset','_executeConnectionCommand','_isImagePointerDown','_attachConnectorObjectEvent','fromChangeset','dispose','_commandExecutedListener','symbol','_handleFreeEndpointPointerUp','_createControls','function','_handleConnectedEndpointMove','canvasElement','Path','viewportScrollY','computeStraightConnectorLayout','contentHeight','_canEdit','adjName','point','getShapeData','sin','object','div','_isStartAdjusting','setShouldShowAdjust','hideInfoPopup','sectionCanvas','getCurrentUnitOfType','135276uxaOSa','fillImageSourceType','from','sheets-shape-ui.imagePanel.crop.shape','applyPoint','parse','_clearConnectionSites','_completionFrame','_setTransForm','sheet.shape.text.float-menu','getConnectorLinePoints','_activeShapeModel','getSheetBySheetId','startX','_initPrinting','OTHERS','sheet.operation.apply-shape-quick-style','_formulaAnimation','constructor','_baseShapeTop','getDrawingDataForUnit','onSteady','getPresentation','save','shape-editor-ui.arrange.front','resolveHyperLinkAt','univer-box-border\x20univer-px-4\x20univer-text-sm','_isConnecting','_imageIoService','sheets-shape-ui.ribbon.shape-format.formula-control','animationEnabled','offsetX','_unitId','UNIVER_SHEET','getCurrentTypeOfUnit$','isHitLine','_popupMenuListener','_sheetPermissionCheckController','_clearPopups','worldPoints','_getZoomRatio','_shapeFloatingToolbarService','_componentManager','VIEW_MAIN_TOP','_updateShapeAdjustControls','drawing-ui.objectListPanel.sectionCanvas','getActiveSheet','_onSavingEditorData$','_injector','COMMAND','_registerComponents','_context','clip','shapeKey','drawing-ui.objectListPanel.description','changeShapeType','_config','_initEvents','SHAPE_TEXT','end','_baseShapeWidth','drawing-ui.objectListPanel.noSelection','getContextValue','getSkeletonParam','getAutoFitPresentations','36xrhSdg','debounceRefreshControls','syncExecuteCommand','draw','FromArray','OPERATION','_props','_hide','REMOVE','4654134skPTvx','_addShapeAdjustControl','permissionPointUpdate$','sheet.image-clip.shape-picker.component','_commandService','drawing-ui.objectListPanel.search','_showConnectionSites','getObject','_draw','angle','has','updateConnectionDetection','getDrawingOKey','prototype','PRINTING_COMPONENT_COLLECT','drawing-ui.objectListPanel.showAll','_drawingManagerService','getShapeTextData','DEFAULT_PASTE','skeleton','MoveUpIcon','cxnPointRadius','19439ZLTTgb','worldPoint','_shapeService','multiply','sheets-shape-ui.formatShape','rotation','_initCopyPaste','mergeMenu','SHAPE','_calculateFreeEndpointAngle','addClipboardHook','sheets-shape-ui.title','_sidebarDisposable','_getShapeAdjustPointListById','strokeWidth','onDblclick$','presentationChanged$','beforeCommandExecuted','getUnitType','URL','DRAWING_IMAGE','unregister','#FFFFFF','ancestorTransform','popup','shape-editor-ui.toolbar.quickStyles','_updateImageAdjValues','_findNearestConnectionSite','getCurrentSkeleton','_activeImageId','_shapeFormulaService','unitId','componentKey','Line','_baseShapeHeight','getState','setFillImage','refreshAdjustControls','_initSheetChange','setConfig','shapeId','sheets-shape-ui.objectListPanel.open','_drawingAddListener','_handleFreeEndpointMove','236LbIPlo','_executeConnectedRouteResizeCommand','Arrow','_shapeRenderController','getShapeTextRect','src','_baseLeft','_registerImageShapeClipDelegate','prstGeom','setHighlighted','relation','drawingType','_attachAdjustEvent','_isHighlighted','isDrawingObject','decorate','_initSelection','cxnPointStroke','_initialize','worldRect','setFallbackVisible','drawing-ui.objectListPanel.typeNames.','sheets-shape-ui.editText','BUTTON','_registerGroupFeaturePasteHook','TopmostIcon','_cxtHandlerPointerMove','_configService','sheets-shape-ui.objectListPanel.title','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_drawSimpleText','cxnPointStrokeWidth','_contextService','_getImageDrawingInfo','_resetState','_init','getRealBound','packageName','9165248paCKzL','_findShapeAtPoint','_lastEditingShapeKey','shape-text-','close','toPrimitive','Rect','startY','isolated','fillImageSource','with','onPointerUp$','transformByState','BottomIcon','_cxtHandlerPointerUp','_clearControls','_getShapeAdjustInfosById','_currentUniverService','horizontal','_getDrawingRect','_activeShapeAdjustPointList','doc.image-clip.shape-picker.component','clearAdjustValue','current','_createShapeAdjustControls','_clearCompletionFrame','MoveDownIcon','PictureFill','_getSceneAndTransformerByDrawingSearch','open','getImage','getObjectIncludeInGroup','flatMap','push','interceptor','height','_sheetClipboardService','getDrawingEffectBounds','sheets-shape-ui.ribbon.shape-format.arrange-backward','_activeShapeInfo','sheets-shape-ui.editShape','isInGroup','SELECTOR','isHighlighted','vertical-center','setShapeProps','clipByShape','presentation','some','SheetShapeTextEditorContainer','setPrstGeomAdjValues','top-center','_loadShapePictureFill','hideContextualTab','getSelectedObjectMap','onPointerMove$','restore','shapeData','_drawShapeText','getImageSourceCache','endConnectionDetection','getUnitId','classType','completeEditing','drawing-ui.objectListPanel.title','getAdjustInfoByName','VIEW_MAIN','setPrstGeom','getUnit','index','getDrawingOrder','calculate','disableObjectsEvent','width','_currentScene','_focusedDrawings','clone','sheet.operation.open-mobile-shape-editor','_baseHeight','_drawingType','marginTop','setOnSavingEditorData','sheet.shape.object-list.panel','_targetShapeId','_updateSrcRectByTransform','changing$','drawing-ui.objectListPanel.lock','engine','_insertShapes','_draggingConnectorId','map','text','_adjName','subUnitId','_updateAdjustControlPositions','getInterceptPoints','_highlightedSiteIndex','getVisible','complete','_disposed','getZoomRatio','_activeShapeId','stopPropagation','getInverseCoord','targetShapeId','onPointerDown$','getCurrentLastSelection','registerClipDelegate','offsetY','registerRenderModule','actions','fontFamily','_shapeId','_baseShapeLeft','drawing-ui.objectListPanel.lockAll','_sheetsShapeService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_updateTransform','visible$','_initEditingParams','_registerOperations','drawing-ui.objectListPanel.empty','getCanvasElement','transform','_isStartConnectorPoint','oKey','run','_baseDrawingRect','CUT','contentVerticalOffset','isArray','pushUndoRedo','getFocusDrawings','sectionFloating','drawing-ui.objectListPanel.show','hidden','_isOpenedShapeEditPanel','updateShapeFillImage','setPresentation','setEditing','ShapeFormatSettingIcon','DRAWING_SHAPE','top'];_0x376e=function(){return _0x3a3b21;};return _0x376e();}function Mi(_0x41fde7,_0x358605,_0x392cb2=!0x1){return _0x4a4e10=>({'id':_0x41fde7,'type':_0x1e3d30['BUTTON'],'label':{'name':_0x358605,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x4a4e10,_0x392cb2)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x31781f,_0x1fade3,_0x2aa765,_0x204540){const _0x2e2790=_0x196d4a;return _0x2b16e9=>({'id':_0x31781f,'commandId':_0x4b43eb['id'],'type':_0x1e3d30[_0x2e2790(0x287)],'icon':_0x2aa765,'title':_0x204540,'tooltip':_0x204540,'hidden$':Oi(_0x2b16e9),'params':()=>{const _0x16dfa5=_0x2e2790;let _0x1b0075=Di(_0x2b16e9);return _0x1b0075?{'unitId':_0x1b0075[_0x16dfa5(0x263)],'subUnitId':_0x1b0075[_0x16dfa5(0x2f3)],'drawingIds':[_0x1b0075[_0x16dfa5(0x14c)]],'arrangeType':_0x1fade3}:void 0x0;}});}const Li=Ii(Si,_0x3190c7['forward'],'MoveUpIcon',_0x196d4a(0x13d)),Ri=Ii(Ci,_0x3190c7['backward'],_0x196d4a(0x2b0),'shape-editor-ui.arrange.backward'),zi=Ii(wi,_0x3190c7[_0x196d4a(0x350)],_0x196d4a(0x289),_0x196d4a(0x1fc)),Bi=Ii(Ti,_0x3190c7[_0x196d4a(0x351)],'BottomIcon',_0x196d4a(0x16e));function Vi(_0x310f1a){const _0x26cb7d=_0x196d4a;return{'id':Wr['id'],'type':_0x1e3d30['BUTTON'],'icon':_0x26cb7d(0x322),'title':'sheets-shape-ui.formatShape','tooltip':'sheets-shape-ui.formatShape','hidden$':Oi(_0x310f1a),'params':()=>{const _0x56592b=_0x26cb7d;let _0x365118=Di(_0x310f1a);return _0x365118?{'unitId':_0x365118[_0x56592b(0x263)],'subUnitId':_0x365118[_0x56592b(0x2f3)],'drawingId':_0x365118[_0x56592b(0x14c)]}:void 0x0;}};}const Hi={[_0x28d937[_0x196d4a(0x177)]]:{[Br]:{'order':0x64,'title':_0x196d4a(0x248),'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},[_0xb7e748['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0xbc1b39}}}}},Ui={[_0x445b4b[_0x196d4a(0x1b8)]]:{[Ir['id']]:{'order':0x4,'menuItemFactory':ni}}},Wi={...Ui,[_0x445b4b['OTHERS']]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x3e837e[_0x196d4a(0x121)]]:{[_0x2e5a9f[_0x196d4a(0x1f3)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi='@univerjs-pro/sheets-shape-ui',Ki='1.0.3';const qi={'id':_0x196d4a(0x2e3),'type':_0x36ba27[_0x196d4a(0x22a)],'handler'(_0x5cce16,_0x5d0b37){const _0xc39584=_0x196d4a;return _0x5d0b37?(_0x5cce16[_0xc39584(0x100)](_0x456574)[_0xc39584(0x2b3)](_0x5d0b37[_0xc39584(0x163)],{'hostType':_0x204504[_0xc39584(0x205)],'shapeId':_0x5d0b37['drawingId'],'subUnitId':_0x5d0b37[_0xc39584(0x2f3)],'unitId':_0x5d0b37[_0xc39584(0x263)]}),!0x0):!0x1;}},Ji=_0x196d4a(0x13f),Yi={};let Xi=class extends _0x116f11{constructor(_0x5c6e87,_0x40bdc8,_0x28e171,_0x2cebf3,_0x2ac47f){const _0x371fc3=_0x196d4a;super(),this[_0x371fc3(0x217)]=_0x5c6e87,this['_drawingManagerService']=_0x40bdc8,this[_0x371fc3(0x1b7)]=_0x28e171,this[_0x371fc3(0x17a)]=_0x2cebf3,this['_imageShapeClipController']=_0x2ac47f,q(this,'_activeImageId',null),q(this,_0x371fc3(0x204),null),q(this,_0x371fc3(0x19d),null),q(this,'_activeAdjustPointList',void 0x0),q(this,_0x371fc3(0x198),[]),q(this,_0x371fc3(0x276),0x0),q(this,_0x371fc3(0x168),0x0),q(this,_0x371fc3(0x102),0x0),q(this,'_baseHeight',0x0),q(this,_0x371fc3(0x1df),!0x1),q(this,_0x371fc3(0x15a),void 0x0),q(this,_0x371fc3(0x1ef),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x371fc3(0x12a),void 0x0),q(this,_0x371fc3(0x1c9),!0x1),this[_0x371fc3(0xd4)](),this[_0x371fc3(0xde)]();}[_0x196d4a(0xca)](){const _0x3842ac=_0x196d4a;this[_0x3842ac(0x2a5)]();}[_0x196d4a(0x269)](){this['_clearControls'](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x2da058,_0x48e5a4,_0x15e9d9,_0x165c16){const _0x2c2ff1=_0x196d4a;let _0x1d2165=_0x2da058;if(_0x1d2165!==_0xc016ca['None']&&_0x2da058!=='custom')try{let _0x23081d=new _0x2d7016(_0x1d2165,'clip-adj-'+_0x2da058);return _0x165c16&&_0x23081d['setShapeData']({'adjustValues':_0x165c16},!0x0),_0x23081d[_0x2c2ff1(0x385)]({'width':_0x48e5a4,'height':_0x15e9d9}),_0x23081d;}catch{return;}}['_getImageDrawingInfo'](_0x5c80da,_0x8be1e4,_0x218ba7){const _0x5d96ff=_0x196d4a;let _0xdf409f={'unitId':_0x5c80da,'subUnitId':_0x8be1e4,'drawingId':_0x218ba7},_0x554cdc=this[_0x5d96ff(0x23e)][_0x5d96ff(0xc7)](_0xdf409f);if(_0x554cdc&&_0x554cdc['drawingType']===_0x123aa0['DRAWING_IMAGE'])return _0x554cdc;}[_0x196d4a(0x19a)](_0x4b4830,_0x45d35b,_0x4e89bb){const _0x55f198=_0x196d4a;let _0x1c9d42=this['_renderManagerService'][_0x55f198(0xd7)](_0x4b4830);if(!_0x1c9d42)return;let {scene:_0x29b41e}=_0x1c9d42,_0x179baa=_0x934411({'unitId':_0x4b4830,'subUnitId':_0x45d35b,'drawingId':_0x4e89bb}),_0x4495c1=_0x29b41e['getObject'](_0x179baa);if(_0x4495c1 instanceof _0x47dbec){let _0x223746=_0x4495c1[_0x55f198(0x278)];if(_0x223746)return{'prstGeom':_0x223746,'adjustValues':_0x4495c1[_0x55f198(0x13a)]};}}['_createControls'](_0x484e00=!0x1){const _0x199421=_0x196d4a;if(!this[_0x199421(0x204)]||!this[_0x199421(0x19d)]||!this[_0x199421(0x261)])return;let _0x103237=this[_0x199421(0x1b7)][_0x199421(0xd7)](this['_unitId']);if(!_0x103237||!_0x103237[_0x199421(0x2a0)](_0x7b1452)[_0x199421(0x260)]())return;let {scene:_0x434ab5}=_0x103237,_0x2de368=this[_0x199421(0x291)](this[_0x199421(0x204)],this[_0x199421(0x19d)],this[_0x199421(0x261)]);if(!_0x2de368)return;let {transform:_0x1bddaa}=_0x2de368;if(!_0x1bddaa)return;let {left:_0x78988,top:_0x5c496a,width:_0x3610e9,height:_0x38cf86,flipX:_0x187f20,flipY:_0x3374d0,angle:_0x44ed39=0x0}=_0x1bddaa;if(_0x78988===void 0x0||_0x5c496a===void 0x0)return;let _0x24f654=this[_0x199421(0x19a)](this['_unitId'],this[_0x199421(0x19d)],this[_0x199421(0x261)]);if(!_0x24f654)return;if(_0x484e00){let _0x237f5a=this[_0x199421(0x1b3)](_0x24f654[_0x199421(0x278)],_0x3610e9||0x0,_0x38cf86||0x0,_0x24f654['adjustValues']);if(!_0x237f5a)return;this[_0x199421(0x382)]=_0x237f5a[_0x199421(0x19e)]();}let _0x47729a=this[_0x199421(0x382)];if(_0x47729a&&_0x47729a[_0x199421(0x1bc)]!==0x0)for(let _0x5b08d2=0x0;_0x5b08d2<_0x47729a['length'];_0x5b08d2++){let _0x38560e=_0x47729a[_0x5b08d2],_0x36cc57=_0x38560e['x'],_0x2a9a65=_0x38560e['y'];if(_0x187f20&&(_0x36cc57=(_0x3610e9||0x0)-_0x36cc57),_0x3374d0&&(_0x2a9a65=(_0x38cf86||0x0)-_0x2a9a65),_0x44ed39!==0x0){let _0x394e64=(_0x3610e9||0x0)/0x2,_0x3c2558=(_0x38cf86||0x0)/0x2,_0x262fb4=_0x44ed39*Math['PI']/0xb4,_0x588715=Math[_0x199421(0x17b)](_0x262fb4),_0x2f2ecd=Math[_0x199421(0x1dc)](_0x262fb4),_0x26a265=_0x36cc57-_0x394e64,_0x2ac85a=_0x2a9a65-_0x3c2558;_0x36cc57=_0x394e64+(_0x26a265*_0x588715-_0x2ac85a*_0x2f2ecd),_0x2a9a65=_0x3c2558+(_0x26a265*_0x2f2ecd+_0x2ac85a*_0x588715);}let _0x33cd49={'x':_0x36cc57,'y':_0x2a9a65,'adjName':_0x38560e[_0x199421(0x1d9)]};this['_addControl'](_0x434ab5,_0x33cd49,_0x33cd49[_0x199421(0x1d9)],_0x78988,_0x5c496a,this['_unitId'],this[_0x199421(0x19d)]);}}['_addControl'](_0x2e68ee,_0x39941c,_0x3deee2,_0x6cfc30,_0x5ac14b,_0x4395d9,_0x744830){const _0x45f91b=_0x196d4a;if(!this['_activeImageId'])return;let _0x682a8f='image-clip-adjust-point-'+this[_0x45f91b(0x261)]+'-'+_0x3deee2,_0x16d4f3=_0x2e68ee[_0x45f91b(0x2b5)](_0x682a8f);if(_0x16d4f3){_0x16d4f3[_0x45f91b(0x2a2)]({'left':_0x39941c['x']+_0x6cfc30-_0x1a4d77[_0x45f91b(0x1ba)],'top':_0x39941c['y']+_0x5ac14b-_0x1a4d77['adjHandleSize']});return;}let _0xfc0b7d=new Nr(_0x682a8f,{'left':_0x39941c['x']+_0x6cfc30-_0x1a4d77[_0x45f91b(0x1ba)],'top':_0x39941c['y']+_0x5ac14b-_0x1a4d77[_0x45f91b(0x1ba)],'adjName':_0x3deee2,'shapeId':this['_activeImageId'],'unitId':_0x4395d9,'subUnitId':_0x744830,'width':_0x1a4d77[_0x45f91b(0x1ba)]+0x8,'height':_0x1a4d77[_0x45f91b(0x1ba)]+0x8,'zIndex':_0x22b3ea+0x1,'evented':!0x0});this[_0x45f91b(0x198)]['push'](_0xfc0b7d),this[_0x45f91b(0x27c)](_0xfc0b7d,_0x2e68ee,_0x3deee2),_0x2e68ee[_0x45f91b(0xea)](_0xfc0b7d,_0x22b3ea+0x1);}[_0x196d4a(0x2a5)](){const _0x496bbd=_0x196d4a;this[_0x496bbd(0x198)][_0x496bbd(0x1bc)]!==0x0&&(this[_0x496bbd(0x198)][_0x496bbd(0x326)](_0x292f1a=>_0x292f1a[_0x496bbd(0x1cc)]()),this[_0x496bbd(0x198)]=[]);}['_getScrollInfo'](_0x533e75,_0x4aa512){const _0x2f93c9=_0x196d4a;var _0x486b4a;let _0x51dfc1={'x':0x0,'y':0x0},_0x5e37aa=this[_0x2f93c9(0x1b7)][_0x2f93c9(0xd7)](_0x533e75);if(!_0x5e37aa||!_0x5e37aa[_0x2f93c9(0x2a0)](_0x7b1452)[_0x2f93c9(0x1b1)](_0x4aa512))return _0x51dfc1;let _0x8dc122=_0x5e37aa['with'](_0x538622),_0x33ef97=_0x8dc122==null?void 0x0:_0x8dc122[_0x2f93c9(0xd8)]();if(!_0x33ef97)return _0x51dfc1;let _0x3e3524=(_0x486b4a=this[_0x2f93c9(0x17a)][_0x2f93c9(0x2da)](_0x533e75))==null?void 0x0:_0x486b4a[_0x2f93c9(0x1f0)](_0x4aa512);if(!_0x3e3524)return _0x51dfc1;let _0x1dba18=_0x2e8aa3(_0x33ef97['sheetViewStartRow'],_0x33ef97['sheetViewStartColumn'],_0x5e37aa['scene'],_0x3e3524);return _0x1dba18?{'x':_0x1dba18[_0x2f93c9(0x1ae)],'y':_0x1dba18[_0x2f93c9(0x1d5)]}:_0x51dfc1;}[_0x196d4a(0x20c)](_0x3ad63b,_0x59e4af){const _0x277384=_0x196d4a;var _0x3e76ef;let _0xb55e84=(_0x3e76ef=this[_0x277384(0x17a)][_0x277384(0x2da)](_0x3ad63b))==null?void 0x0:_0x3e76ef[_0x277384(0x1f0)](_0x59e4af);return(_0xb55e84==null?void 0x0:_0xb55e84['getZoomRatio']())??0x1;}[_0x196d4a(0x27c)](_0x2e073a,_0x3d5138,_0x4b50cd){const _0x1c1aad=_0x196d4a;this[_0x1c1aad(0x335)](_0x46ac89(_0x2e073a[_0x1c1aad(0x2ff)][_0x1c1aad(0xcf)]((_0x1e8dc2,_0x32986a)=>{const _0x1f85a6=_0x1c1aad;var _0x509329,_0x3db90a,_0x21c2d4;let {unitId:_0x19a74f,subUnitId:_0x418cd5,drawingId:_0x2350c6}=_0x2e073a[_0x1f85a6(0x35c)](),_0x305f3c=this[_0x1f85a6(0x291)](_0x19a74f,_0x418cd5,_0x2350c6);if(!(_0x305f3c!=null&&_0x305f3c[_0x1f85a6(0x311)]))return;let {left:_0x478f98,top:_0x2a601f,width:_0x2eb608,height:_0x1200f4}=_0x305f3c[_0x1f85a6(0x311)];this['_baseLeft']=_0x478f98||0x0,this[_0x1f85a6(0x168)]=_0x2a601f||0x0,this[_0x1f85a6(0x102)]=_0x2eb608||0x0,this[_0x1f85a6(0x2e4)]=_0x1200f4||0x0;let _0x4b86df=!!((_0x509329=_0x305f3c[_0x1f85a6(0x311)])!=null&&_0x509329[_0x1f85a6(0x362)]),_0x449b4b=!!((_0x3db90a=_0x305f3c[_0x1f85a6(0x311)])!=null&&_0x3db90a[_0x1f85a6(0x1ac)]),_0x20bbb2=((_0x21c2d4=_0x305f3c[_0x1f85a6(0x311)])==null?void 0x0:_0x21c2d4[_0x1f85a6(0x237)])||0x0,_0x331e67=this['_getImagePrstGeom'](_0x19a74f,_0x418cd5,_0x2350c6);if(!_0x331e67)return;let _0x3534eb=this['_getOrCreateShapeModel'](_0x331e67['prstGeom'],this[_0x1f85a6(0x102)],this[_0x1f85a6(0x2e4)],_0x331e67[_0x1f85a6(0xd5)]);if(!_0x3534eb||(this[_0x1f85a6(0x1ef)]=_0x3534eb,this[_0x1f85a6(0x15a)]=_0x3534eb[_0x1f85a6(0x2d7)](_0x4b50cd),!this[_0x1f85a6(0x15a)]))return;this['_isStartAdjusting']=!0x0,_0x3d5138['disableObjectsEvent']();let _0x56b3f0=_0x331e67[_0x1f85a6(0x278)];this[_0x1f85a6(0x330)]=_0x3d5138[_0x1f85a6(0x2cd)]['subscribeEvent']((_0x373b4e,_0x22ef8c)=>{const _0x23baea=_0x1f85a6;if(!this[_0x23baea(0x1df)])return;let {offsetX:_0x3ab243,offsetY:_0x5d78ae}=_0x373b4e,_0x1e949c=this[_0x23baea(0x15a)];if(!this[_0x23baea(0x1ef)]||!_0x1e949c)return;_0x3d5138[_0x23baea(0x2de)](),_0x3d5138[_0x23baea(0x373)](_0x35998d[_0x23baea(0x353)]);let _0x4c441c={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x23baea(0x2e4)]},_0xbdf0d0=this['_getScrollInfo'](_0x19a74f,_0x418cd5),_0x318977=this[_0x23baea(0x20c)](_0x19a74f,_0x418cd5),_0x28174e=_0x3ab243/_0x318977+_0xbdf0d0['x']-this[_0x23baea(0x276)],_0x4ad3a7=_0x5d78ae/_0x318977+_0xbdf0d0['y']-this[_0x23baea(0x168)];if(_0x20bbb2!==0x0){let _0x1d9e46=this['_baseWidth']/0x2,_0x41ab0d=this[_0x23baea(0x2e4)]/0x2,_0x19ceb7=_0x20bbb2*Math['PI']/0xb4,_0xfb71fe=Math[_0x23baea(0x17b)](_0x19ceb7),_0x20c00b=Math['sin'](_0x19ceb7),_0x5e1bd6=_0x28174e-_0x1d9e46,_0x5c427c=_0x4ad3a7-_0x41ab0d;_0x28174e=_0x1d9e46+(_0x5e1bd6*_0xfb71fe+_0x5c427c*_0x20c00b),_0x4ad3a7=_0x41ab0d+(-_0x5e1bd6*_0x20c00b+_0x5c427c*_0xfb71fe);}_0x4b86df&&(_0x28174e=this[_0x23baea(0x102)]-_0x28174e),_0x449b4b&&(_0x4ad3a7=this[_0x23baea(0x2e4)]-_0x4ad3a7);let _0x563b16=this['_activeShapeModel'][_0x23baea(0x105)](_0x4c441c,{'x':_0x28174e,'y':_0x4ad3a7},_0x1e949c,_0x4b86df,_0x449b4b);if(Object[_0x23baea(0x12c)](_0x563b16)[_0x23baea(0x1bc)]!==0x0){for(let [_0x36644a,_0x23a452]of Object[_0x23baea(0x383)](_0x563b16))this['_activeShapeModel']['setAdjustValueByName'](_0x36644a,_0x23a452);this[_0x23baea(0x1ef)][_0x23baea(0x385)]({'width':this[_0x23baea(0x102)],'height':this[_0x23baea(0x2e4)]}),this[_0x23baea(0x25e)](_0x19a74f,_0x418cd5,_0x2350c6,_0x563b16),this[_0x23baea(0x382)]=this[_0x23baea(0x1ef)][_0x23baea(0x19e)](),this[_0x23baea(0x1d0)](),_0x22ef8c[_0x23baea(0x2fc)]();}}),this[_0x1f85a6(0x12a)]=_0x3d5138[_0x1f85a6(0x2a1)][_0x1f85a6(0xcf)]((_0x40c022,_0x11726e)=>{const _0x2c4e43=_0x1f85a6;if(this[_0x2c4e43(0x330)][_0x2c4e43(0x33c)](),this[_0x2c4e43(0x12a)][_0x2c4e43(0x33c)](),_0x3d5138[_0x2c4e43(0x130)](),this[_0x2c4e43(0x1ef)]){let _0x592a64=this['_activeShapeModel'][_0x2c4e43(0x192)](),_0x12028a={};for(let _0x51bac3 of _0x592a64){let _0x39a636=this[_0x2c4e43(0x1ef)][_0x2c4e43(0x134)](_0x51bac3);_0x39a636!==void 0x0&&(_0x12028a[_0x51bac3]=_0x39a636);}this['_imageShapeClipController'][_0x2c4e43(0x2c4)](_0x19a74f,_0x418cd5,_0x2350c6,_0x56b3f0,_0x12028a);}this[_0x2c4e43(0x15a)]=void 0x0,this[_0x2c4e43(0x1ef)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x11726e['stopPropagation'](),_0x3d5138[_0x2c4e43(0x38a)]();}),_0x32986a[_0x1f85a6(0x2fc)]();})));}[_0x196d4a(0x25e)](_0x4956ae,_0x54b8c5,_0x33b9d8,_0x280673){const _0x4af46d=_0x196d4a;let _0x4d91b8=this['_renderManagerService'][_0x4af46d(0xd7)](_0x4956ae);if(!_0x4d91b8)return;let {scene:_0x45d6d6}=_0x4d91b8,_0x1e225f=_0x934411({'unitId':_0x4956ae,'subUnitId':_0x54b8c5,'drawingId':_0x33b9d8}),_0x10fc42=_0x45d6d6[_0x4af46d(0x235)](_0x1e225f);if(_0x10fc42 instanceof _0x47dbec){let _0x482171=_0x10fc42[_0x4af46d(0x13a)]??{};_0x10fc42[_0x4af46d(0x2c8)]({..._0x482171,..._0x280673}),_0x10fc42[_0x4af46d(0xe5)](!0x0);}}[_0x196d4a(0xde)](){const _0x2ed94e=_0x196d4a;let _0x242456=this[_0x2ed94e(0x17a)][_0x2ed94e(0x206)](_0x204504[_0x2ed94e(0x205)]);this[_0x2ed94e(0x335)](_0x242456['pipe'](_0x111568(_0x58270c=>_0x58270c?_0x58270c[_0x2ed94e(0xe2)]['pipe'](_0x111568(_0x447b5a=>{const _0x16025d=_0x2ed94e;if(!_0x447b5a)return _0x929a31;let _0x45d1e5=_0x58270c[_0x16025d(0x2d3)](),_0x2cc8a3=this[_0x16025d(0x1b7)]['getRenderUnitById'](_0x45d1e5),_0x38311d=_0x2cc8a3==null?void 0x0:_0x2cc8a3[_0x16025d(0x142)];return _0x38311d?_0x322e8d(_0x38311d):_0x929a31;})):_0x929a31))[_0x2ed94e(0x1ab)](_0x16a4ac=>{const _0x4c53c9=_0x2ed94e;let _0x3b5348=_0x16a4ac['getTransformerByCreate']();this[_0x4c53c9(0x335)](_0x16a4ac[_0x4c53c9(0x2cd)][_0x4c53c9(0xcf)](()=>{const _0x10dccf=_0x4c53c9;this['_isImagePointerDown']&&this[_0x10dccf(0x2a5)]();})),this[_0x4c53c9(0x335)](_0x3b5348['changeStart$'][_0x4c53c9(0x1ab)](_0x3bb2c7=>{const _0xf5e13f=_0x4c53c9;let {objects:_0x2ef247}=_0x3bb2c7;if(this[_0xf5e13f(0x1d0)](),_0x2ef247!==null&&_0x2ef247[_0xf5e13f(0x358)]===0x1){let _0x226a3b=_0x2ef247[_0xf5e13f(0x126)]()['next']()[_0xf5e13f(0x1b9)];_0x226a3b instanceof _0x47dbec&&_0x226a3b[_0xf5e13f(0x278)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x4c53c9(0x335)](_0x3b5348[_0x4c53c9(0x2eb)][_0x4c53c9(0x1ab)](()=>{const _0x3e00e0=_0x4c53c9;this[_0x3e00e0(0x1c9)]&&this[_0x3e00e0(0x2a5)]();})),this[_0x4c53c9(0x335)](_0x16a4ac['onPointerUp$'][_0x4c53c9(0xcf)](()=>{const _0x190629=_0x4c53c9;this[_0x190629(0x1c9)]&&(this[_0x190629(0x1c9)]=!0x1,this[_0x190629(0x1d0)]());})),this[_0x4c53c9(0x335)](_0x3b5348[_0x4c53c9(0xe4)][_0x4c53c9(0x1ab)](()=>{const _0xace4a7=_0x4c53c9;if(this[_0xace4a7(0x204)]&&this[_0xace4a7(0x19d)]&&this[_0xace4a7(0x261)]){let _0x468e91=this[_0xace4a7(0x19a)](this[_0xace4a7(0x204)],this[_0xace4a7(0x19d)],this[_0xace4a7(0x261)]);if(_0x468e91){var _0x1c0401,_0x1c3b03;let _0x3f3570=this[_0xace4a7(0x291)](this[_0xace4a7(0x204)],this[_0xace4a7(0x19d)],this[_0xace4a7(0x261)]),_0x297d3b=(_0x3f3570==null||(_0x1c0401=_0x3f3570[_0xace4a7(0x311)])==null?void 0x0:_0x1c0401[_0xace4a7(0x2df)])||0x0,_0xc826ae=(_0x3f3570==null||(_0x1c3b03=_0x3f3570[_0xace4a7(0x311)])==null?void 0x0:_0x1c3b03[_0xace4a7(0x2b9)])||0x0,_0x26232c=this[_0xace4a7(0x1b3)](_0x468e91[_0xace4a7(0x278)],_0x297d3b,_0xc826ae,_0x468e91['adjustValues']);_0x26232c&&(this[_0xace4a7(0x382)]=_0x26232c['getDrawingPoints'](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}[_0x196d4a(0xd4)](){const _0x123e1c=_0x196d4a;this['disposeWithMe'](this['_drawingManagerService'][_0x123e1c(0x107)][_0x123e1c(0x1ab)](_0x40ec2a=>{const _0x3a4902=_0x123e1c;if(_0x40ec2a[_0x3a4902(0x1bc)]===0x1){let _0x136d54=_0x40ec2a[0x0];if(_0x136d54[_0x3a4902(0x27b)]===_0x123aa0['DRAWING_IMAGE']){let {unitId:_0x780418,subUnitId:_0x262ed3,drawingId:_0x104325}=_0x136d54,_0x32fdc0=this[_0x3a4902(0x19a)](_0x780418,_0x262ed3,_0x104325);if(_0x32fdc0){var _0x1f0ed6,_0x4c1427;this[_0x3a4902(0x261)]=_0x104325,this[_0x3a4902(0x204)]=_0x780418,this[_0x3a4902(0x19d)]=_0x262ed3;let _0x5d8a69=this[_0x3a4902(0x291)](_0x780418,_0x262ed3,_0x104325),_0x5934f1=(_0x5d8a69==null||(_0x1f0ed6=_0x5d8a69[_0x3a4902(0x311)])==null?void 0x0:_0x1f0ed6[_0x3a4902(0x2df)])||0x0,_0x276ffd=(_0x5d8a69==null||(_0x4c1427=_0x5d8a69[_0x3a4902(0x311)])==null?void 0x0:_0x4c1427[_0x3a4902(0x2b9)])||0x0,_0x2b4ade=this['_getOrCreateShapeModel'](_0x32fdc0[_0x3a4902(0x278)],_0x5934f1,_0x276ffd,_0x32fdc0[_0x3a4902(0xd5)]);_0x2b4ade&&(this[_0x3a4902(0x382)]=_0x2b4ade[_0x3a4902(0x19e)]()),this['_clearControls'](),this[_0x3a4902(0x1d0)](!0x0);}else this[_0x3a4902(0x292)]();}else this['_resetState']();}else this['_resetState']();})),this[_0x123e1c(0x335)](this[_0x123e1c(0x23e)]['update$'][_0x123e1c(0x1ab)](_0x54e991=>{const _0x1c4aca=_0x123e1c;if(_0x54e991[_0x1c4aca(0x1bc)]===0x1){let _0x31b9d2=_0x54e991[0x0],_0x595326=this[_0x1c4aca(0x23e)]['getDrawingByParam'](_0x31b9d2);(_0x595326==null?void 0x0:_0x595326[_0x1c4aca(0x27b)])===_0x123aa0[_0x1c4aca(0x258)]&&this['_activeImageId']===_0x31b9d2['drawingId']&&(this[_0x1c4aca(0x2a5)](),this['_createControls'](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService'][_0x123e1c(0x10d)]['subscribe'](_0x3423cc=>{const _0x585ad=_0x123e1c;for(let _0x5dfa09 of _0x3423cc)this[_0x585ad(0x261)]===_0x5dfa09['drawingId']&&this[_0x585ad(0x292)]();}));}['_resetState'](){const _0x465d8d=_0x196d4a;this[_0x465d8d(0x261)]=null,this[_0x465d8d(0x204)]=null,this[_0x465d8d(0x19d)]=null,this['_activeAdjustPointList']=void 0x0,this['_clearControls']();}};Xi=X([Y(0x1,_0x446eb2),Y(0x2,_0x14bfc1(_0x4dadf2)),Y(0x3,_0x46c185),Y(0x4,_0x14bfc1(Q))],Xi);function Zi(_0xc2dc67){const _0x3a57ac=_0x196d4a;return _0xc2dc67[_0x3a57ac(0x122)]()||void 0x0;}function Qi(_0x37e46a,_0x237da4,_0x2cd819){const _0x560f08=_0x196d4a;var _0x3ea003;return((_0x3ea003=_0x37e46a[_0x560f08(0x37a)])==null?void 0x0:_0x3ea003[_0x560f08(0x122)]())||_0x2cd819['t'](_0x560f08(0x285)+_0x1c437a(_0x37e46a[_0x560f08(0x27b)]))+'\x20'+(_0x237da4+0x1);}function $i({PanelComponent:_0x5db76c=_0x481011}){const _0x64000a=_0x196d4a;var _0x43bdf4;let _0x2a6419=_0x508bbd(_0x407e83),_0x2b01b7={'title':_0x2a6419['t'](_0x64000a(0x2d6)),'empty':_0x2a6419['t'](_0x64000a(0x30f)),'showAll':_0x2a6419['t'](_0x64000a(0x23d)),'hideAll':_0x2a6419['t'](_0x64000a(0x36a)),'lockAll':_0x2a6419['t'](_0x64000a(0x308)),'unlockAll':_0x2a6419['t'](_0x64000a(0x349)),'moveForward':_0x2a6419['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0x2a6419['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x2a6419['t'](_0x64000a(0x345)),'show':_0x2a6419['t'](_0x64000a(0x31c)),'hide':_0x2a6419['t'](_0x64000a(0x346)),'lock':_0x2a6419['t'](_0x64000a(0x2ec)),'unlock':_0x2a6419['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0x2a6419['t'](_0x64000a(0x156)),'unlockHint':_0x2a6419['t'](_0x64000a(0x15d)),'name':_0x2a6419['t'](_0x64000a(0x117)),'nameInput':_0x2a6419['t'](_0x64000a(0xd3)),'description':_0x2a6419['t'](_0x64000a(0x21a)),'descriptionPlaceholder':_0x2a6419['t'](_0x64000a(0x365)),'details':_0x2a6419['t'](_0x64000a(0x1bb)),'noSelection':_0x2a6419['t'](_0x64000a(0x221)),'locate':_0x2a6419['t']('drawing-ui.objectListPanel.locate'),'expand':_0x2a6419['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x2a6419['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x2a6419['t']('drawing-ui.objectListPanel.dragToReorder'),'search':_0x2a6419['t'](_0x64000a(0x233)),'filterAll':_0x2a6419['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x2a6419['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x2a6419['t'](_0x64000a(0x381)),'sectionCanvas':_0x2a6419['t'](_0x64000a(0x211)),'sectionFloating':_0x2a6419['t']('drawing-ui.objectListPanel.sectionFloating')},_0x2eb324=_0x508bbd(_0x153d8f),_0x32b117=_0x508bbd(_0x46c185),_0x273fa7=_0x508bbd(_0x5e26dc),_0x10f683=_0x508bbd(_0x446eb2),_0x4b37f0=_0x508bbd(_0x4dadf2),[,_0x3fbf1f]=_0xb0efb1(_0x5f3111=>_0x5f3111+0x1,0x0),_0x5c2979=_0x32b117[_0x64000a(0x1e3)](_0x204504[_0x64000a(0x205)]),_0x4c2325=(_0x5c2979==null?void 0x0:_0x5c2979['getUnitId']())??'',_0x4a7e1e=(_0x5c2979==null||(_0x43bdf4=_0x5c2979[_0x64000a(0x212)]())==null?void 0x0:_0x43bdf4[_0x64000a(0x1b4)]())??'',_0x280f1e=_0x49d454(()=>_0x10f683['focus$'],_0x10f683[_0x64000a(0x31a)](),!0x1,[_0x10f683]);_0x5902a2(()=>{const _0x20dbdf=_0x64000a;let _0xcae8a8=_0x2eb324[_0x20dbdf(0x33a)](()=>_0x3fbf1f());return()=>_0xcae8a8['dispose']();},[_0x2eb324]);let _0x1f575b=_0x4c2325&&_0x4a7e1e?_0x273fa7[_0x64000a(0x37c)](_0x4c2325,_0x4a7e1e):{},_0x4def41=(_0x4c2325&&_0x4a7e1e?_0x273fa7['getDrawingOrder'](_0x4c2325,_0x4a7e1e):[])['map'](_0x3af977=>_0x1f575b[_0x3af977])[_0x64000a(0x191)](_0x44cd5e=>!!_0x44cd5e)[_0x64000a(0x15b)](),_0x103dbf=_0x4def41['reduce']((_0x41a2d1,_0x196b62)=>(_0x41a2d1[_0x32c6c6(_0x196b62[_0x64000a(0x27b)])]+=0x1,_0x41a2d1),{'canvas':0x0,'floating':0x0}),_0x3c068b={'canvas':0x0,'floating':0x0},_0x1fc771=_0x4def41[_0x64000a(0x2f0)]((_0x28ce5b,_0x4547f2)=>{const _0x372f86=_0x64000a;let _0xeef2f0=_0x32c6c6(_0x28ce5b[_0x372f86(0x27b)]),_0x3a9f73=_0xeef2f0===_0x481a1b,_0x1737cd=_0x3c068b[_0xeef2f0]++;return{'id':_0x28ce5b['drawingId'],'name':Qi(_0x28ce5b,_0x4547f2,_0x2a6419),'description':_0x28ce5b[_0x372f86(0x12f)],'visible':_0x28ce5b[_0x372f86(0x31d)]!==!0x0,'selectable':_0x28ce5b[_0x372f86(0xf3)]!==!0x1,'sectionId':_0xeef2f0,'sectionTitle':_0x3a9f73?_0x2b01b7[_0x372f86(0x31b)]:_0x2b01b7[_0x372f86(0x1e2)],'capabilities':_0x3a9f73?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x3a9f73&&_0x1737cd>0x0,'canMoveBackward':!_0x3a9f73&&_0x1737cd<_0x103dbf[_0x372f86(0x190)]-0x1,'canReorder':!_0x3a9f73};}),_0x5981dd=_0xe812e8(()=>(_0x280f1e??[])[_0x64000a(0x191)](_0x2aa7e2=>_0x2aa7e2['unitId']===_0x4c2325&&_0x2aa7e2['subUnitId']===_0x4a7e1e)[_0x64000a(0x2f0)](_0x37f6ad=>_0x37f6ad[_0x64000a(0x14c)]),[_0x280f1e,_0x4a7e1e,_0x4c2325]),_0x539420=_0x5981dd[_0x5981dd[_0x64000a(0x1bc)]-0x1]??null,_0x4891ed=_0x4adb47=>_0x273fa7['getDrawingByParam']({'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x4adb47})??null,_0xb92089=async _0x376cdb=>{const _0x3f196b=_0x64000a;_0x4c2325&&_0x376cdb[_0x3f196b(0x1bc)]&&await _0x2eb324[_0x3f196b(0x152)](_0x24e472['id'],{'unitId':_0x4c2325,'drawings':_0x376cdb});},_0x271f29=async(_0x450b1c,_0x5125c6)=>{_0x4891ed(_0x450b1c)&&await _0xb92089([{'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x450b1c,..._0x5125c6}]);},_0xbe0500=(_0x57f971,_0x1c7c22)=>{const _0x230e75=_0x64000a;if(!_0x4c2325||!_0x4a7e1e)return;let _0x3c7c41=_0x1c7c22?_0x5981dd[_0x230e75(0x11e)](_0x57f971)?_0x5981dd[_0x230e75(0x191)](_0x1c28eb=>_0x1c28eb!==_0x57f971):[..._0x5981dd,_0x57f971]:[_0x57f971];_0x2eb324[_0x230e75(0x227)](_0x4ec468['id'],_0x3c7c41[_0x230e75(0x2f0)](_0x101dbb=>({'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x101dbb})));let _0xdd8264=_0x3c7c41[_0x3c7c41[_0x230e75(0x1bc)]-0x1];_0xdd8264?_0x526d99(_0x4b37f0,{'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0xdd8264}):_0x23bd6c(_0x4b37f0,_0x4c2325);},_0x518e89=async(_0x1e5494,_0x3c7ce7)=>{const _0x244969=_0x64000a;await _0xb92089(_0x1e5494[_0x244969(0x2f0)](_0x1d624a=>_0x4891ed(_0x1d624a))[_0x244969(0x191)](_0x4df80b=>!!_0x4df80b)[_0x244969(0x191)](_0x1b2f60=>_0x1b2f60[_0x244969(0x31d)]!==!0x0!==_0x3c7ce7)['map'](_0x3d4d1d=>({'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x3d4d1d[_0x244969(0x14c)],'hidden':!_0x3c7ce7})));},_0x13e049=async(_0x2523cd,_0x31933b)=>{const _0x4ebbb4=_0x64000a;await _0xb92089(_0x2523cd[_0x4ebbb4(0x2f0)](_0x2fcdbe=>_0x4891ed(_0x2fcdbe))[_0x4ebbb4(0x191)](_0x2e31a3=>!!_0x2e31a3)['filter'](_0x576c42=>_0x576c42[_0x4ebbb4(0xf3)]!==!0x1!==_0x31933b)[_0x4ebbb4(0x2f0)](_0x28eac1=>({'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingId':_0x28eac1[_0x4ebbb4(0x14c)],'selectable':_0x31933b})));},_0x30203c=_0x3c8588=>{const _0x5ac414=_0x64000a;let _0x23e552=_0x4891ed(_0x3c8588);if(_0x23e552)return _0x13e049([_0x3c8588],_0x23e552[_0x5ac414(0xf3)]===!0x1);},_0x3960ce=async(_0x25ad5b,_0x5d49e2)=>{const _0x49e433=_0x64000a;var _0x144650;let _0x1ae1a8=Zi(_0x5d49e2);(((_0x144650=_0x4891ed(_0x25ad5b))==null?void 0x0:_0x144650[_0x49e433(0x37a)])??void 0x0)!==_0x1ae1a8&&await _0x271f29(_0x25ad5b,{'name':_0x1ae1a8});},_0x19783a=async(_0x264e02,_0x4df2b0)=>{const _0x55518f=_0x64000a;var _0x552124;let _0x21b057=Zi(_0x4df2b0);(((_0x552124=_0x4891ed(_0x264e02))==null?void 0x0:_0x552124[_0x55518f(0x12f)])??void 0x0)!==_0x21b057&&await _0x271f29(_0x264e02,{'description':_0x21b057});},_0x4634b3=async(_0x3c6792,_0x33e6af)=>{_0x4c2325&&_0x4a7e1e&&await _0x2eb324['executeCommand'](_0x4b43eb['id'],{'unitId':_0x4c2325,'subUnitId':_0x4a7e1e,'drawingIds':[_0x3c6792],'arrangeType':_0x33e6af});};return!_0x4c2325||!_0x4a7e1e?_0x39d578(_0x64000a(0x1de),{'className':_0x64000a(0x148),'children':_0x2b01b7['title']}):_0x39d578(_0x5db76c,{'labels':_0x2b01b7,'items':_0x1fc771,'selectedIds':_0x5981dd,'focusedId':_0x539420,'showHeader':!0x1,'onSelect':_0xbe0500,'onSetVisible':_0x518e89,'onSetSelectable':_0x13e049,'onCommitName':_0x3960ce,'onCommitDescription':_0x19783a,'onMoveForward':async _0x4c54b3=>_0x4634b3(_0x4c54b3,_0x3190c7[_0x64000a(0x33b)]),'onMoveBackward':async _0x28eed5=>_0x4634b3(_0x28eed5,_0x3190c7['backward']),'onToggleSelectable':_0x30203c});}function ea(){return _0x39d578($i,{'PanelComponent':_0x3af157});}let ta=class extends _0x116f11{constructor(_0x4f3b96,_0x45c0bd){const _0x11b213=_0x196d4a;super(),this[_0x11b213(0x335)](_0x4f3b96[_0x11b213(0x157)](Rr,ea)),this[_0x11b213(0x335)](_0x45c0bd[_0x11b213(0x157)]({'BottomIcon':_0x498df7,'FlipHorizontalIcon':_0x654af8,'FlipVerticalIcon':_0x2d018e,'MoveDownIcon':_0x158b87,'MoveUpIcon':_0x1d98f5,'ObjectLayersIcon':_0x4dbc57,'ShapeFormatSettingIcon':_0x163347,'TopmostIcon':_0x172d21})),this[_0x11b213(0x335)](_0x4f3b96[_0x11b213(0x157)](Jr,ti)),this[_0x11b213(0x335)](_0x4f3b96[_0x11b213(0x157)](Yr,Qr)),_0x4f3b96[_0x11b213(0x100)](_0x5c8b25)||this[_0x11b213(0x335)](_0x4f3b96[_0x11b213(0x157)](_0x5c8b25,$r));}};ta=X([Y(0x0,_0x14bfc1(_0x1db2df)),Y(0x1,_0x14bfc1(_0x4f5c3f))],ta);let $=class extends _0x116f11{constructor(_0x80a240){const _0x225a02=_0x196d4a;super(),this[_0x225a02(0xfe)]=_0x80a240,q(this,'_editingParams$',new _0x494d52(null)),q(this,_0x225a02(0x181),this['_editingParams$'][_0x225a02(0x179)]()),q(this,'_onSavingEditorData$',new _0x494d52(!0x1)),q(this,_0x225a02(0xf1),this[_0x225a02(0x213)][_0x225a02(0x179)]()),q(this,_0x225a02(0x1eb),void 0x0),this[_0x225a02(0x335)](this[_0x225a02(0xfe)][_0x225a02(0x230)]['subscribe'](()=>{const _0x4fc58a=_0x225a02;let _0x5c8591=this[_0x4fc58a(0xe9)]();_0x5c8591!=null&&_0x5c8591['visible']&&!this['_canEdit'](_0x5c8591)&&this[_0x4fc58a(0x321)](null);}));}['dispose'](){const _0x9a88a0=_0x196d4a;this[_0x9a88a0(0x2af)](),this['_editingParams$'][_0x9a88a0(0x116)](null),this['_editingParams$'][_0x9a88a0(0x2f8)](),this['_onSavingEditorData$']['next'](!0x1),this[_0x9a88a0(0x213)][_0x9a88a0(0x2f8)](),super['dispose']();}[_0x196d4a(0x321)](_0x31ee64){const _0x17316f=_0x196d4a;(_0x31ee64==null||!_0x31ee64[_0x17316f(0x339)]||this[_0x17316f(0x1d8)](_0x31ee64))&&(this[_0x17316f(0x2af)](),this[_0x17316f(0x359)][_0x17316f(0x116)](_0x31ee64),(_0x31ee64==null||_0x31ee64[_0x17316f(0x339)]&&this[_0x17316f(0x213)][_0x17316f(0x18a)]())&&this[_0x17316f(0x213)][_0x17316f(0x116)](!0x1));}[_0x196d4a(0x2e7)](_0x399104){const _0x415600=_0x196d4a;this[_0x415600(0x213)][_0x415600(0x116)](_0x399104);}[_0x196d4a(0xe9)](){const _0x3d45bb=_0x196d4a;return this[_0x3d45bb(0x359)][_0x3d45bb(0x18a)]();}['_canEdit'](_0x576d19){const _0x4fe66f=_0x196d4a;let _0x3fb2db=this[_0x4fe66f(0xfe)]['getPermissionPoint'](new _0x126772(_0x576d19[_0x4fe66f(0x263)])['id']),_0x11fdc5=this[_0x4fe66f(0xfe)]['getPermissionPoint'](new _0x4b3b52(_0x576d19[_0x4fe66f(0x263)],_0x576d19[_0x4fe66f(0x2f3)])['id']);return((_0x3fb2db==null?void 0x0:_0x3fb2db['value'])??!0x0)&&((_0x11fdc5==null?void 0x0:_0x11fdc5[_0x4fe66f(0x1b9)])??!0x0);}[_0x196d4a(0x2d5)](_0x5f4af7){const _0x5710e1=_0x196d4a;let _0x1460ab=this[_0x5710e1(0xe9)]();_0x1460ab&&this[_0x5710e1(0x1eb)]===void 0x0&&(this[_0x5710e1(0x2e7)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x59a54e=_0x5710e1;this[_0x59a54e(0x1eb)]=void 0x0,this[_0x59a54e(0xe9)]()===_0x1460ab&&this[_0x59a54e(0x321)](null);}));}[_0x196d4a(0x2af)](){const _0x29c8e7=_0x196d4a;this[_0x29c8e7(0x1eb)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x29c8e7(0x1eb)]=void 0x0);}[_0x196d4a(0x331)](){const _0x51535=_0x196d4a;this[_0x51535(0xe9)]()&&this['setEditing'](null);}};$=X([Y(0x0,_0x51e1fb)],$);let na=class extends _0x116f11{constructor(_0x38383e,_0x5b7910,_0x2e08ee,_0x4c6ead,_0x338dff,_0x574449){const _0x40eb50=_0x196d4a;super(),this[_0x40eb50(0x217)]=_0x38383e,this['_injector']=_0x5b7910,this['_shapeTextEditingService']=_0x2e08ee,this[_0x40eb50(0x23e)]=_0x4c6ead,this[_0x40eb50(0x290)]=_0x338dff,this['_sheetsShapeService']=_0x574449,q(this,_0x40eb50(0x298),null),this[_0x40eb50(0x21d)](),this['_initSelection'](),this[_0x40eb50(0x30d)]();}[_0x196d4a(0x21d)](){const _0xa131fe=_0x196d4a;let {scene:_0x5b3fcf}=this['_context'];this[_0xa131fe(0x335)](_0x5b3fcf[_0xa131fe(0x253)][_0xa131fe(0xcf)](_0x2e220d=>{const _0x2fd251=_0xa131fe;let {offsetX:_0x429855,offsetY:_0x1ff7ff}=_0x2e220d,_0xbdc078=_0x5b3fcf[_0x2fd251(0x101)](_0x2163b6['FromArray']([_0x429855,_0x1ff7ff]));if(_0xbdc078 instanceof J){let _0x4aa495=this['_sheetsShapeService'][_0x2fd251(0xe6)](_0xbdc078['unitId'],_0xbdc078[_0x2fd251(0x2f3)],_0xbdc078[_0x2fd251(0x26c)]);if(_0x22e615(this[_0x2fd251(0x309)][_0x2fd251(0x197)](_0xbdc078['unitId'],_0xbdc078[_0x2fd251(0x2f3)],_0xbdc078[_0x2fd251(0x26c)]))||_0x4aa495!=null&&_0x4aa495['getShapeData']()['formulaBinding'])return;this[_0x2fd251(0x35f)][_0x2fd251(0x321)]({'visible':!0x0,'unitId':_0xbdc078[_0x2fd251(0x263)],'subUnitId':_0xbdc078[_0x2fd251(0x2f3)],'shapeId':_0xbdc078[_0x2fd251(0x26c)],'shapeKey':_0xbdc078[_0x2fd251(0x313)]});}}));}[_0x196d4a(0x280)](){const _0xe192ef=_0x196d4a;this['disposeWithMe'](this[_0xe192ef(0x23e)][_0xe192ef(0x107)][_0xe192ef(0x1ab)](_0x34ad07=>{const _0x39b5b0=_0xe192ef;if(_0x34ad07[_0x39b5b0(0x1bc)]===0x1){let _0x3b7887=_0x34ad07[0x0],_0x38432c=this['_drawingManagerService'][_0x39b5b0(0xc7)](_0x3b7887);if((_0x38432c==null?void 0x0:_0x38432c[_0x39b5b0(0x27b)])===_0x123aa0[_0x39b5b0(0x323)]){var _0x2624a6;let _0xc78958=this['_shapeTextEditingService'][_0x39b5b0(0xe9)]();if((_0xc78958==null?void 0x0:_0xc78958[_0x39b5b0(0x26c)])===_0x3b7887[_0x39b5b0(0x14c)]&&_0xc78958[_0x39b5b0(0x339)])return;let _0x401a5f=_0x22e615(this['_sheetsShapeService'][_0x39b5b0(0x197)](_0x3b7887[_0x39b5b0(0x263)],_0x3b7887['subUnitId'],_0x3b7887[_0x39b5b0(0x14c)])),_0x414582=!!((_0x2624a6=this[_0x39b5b0(0x309)][_0x39b5b0(0xe6)](_0x3b7887[_0x39b5b0(0x263)],_0x3b7887[_0x39b5b0(0x2f3)],_0x3b7887['drawingId']))!=null&&_0x2624a6[_0x39b5b0(0x1db)]()[_0x39b5b0(0x175)]);(_0x401a5f||_0x414582)&&this[_0x39b5b0(0x35f)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x39b5b0(0x2d5)]();}else this[_0x39b5b0(0x35f)][_0x39b5b0(0x2d5)]();})),this['disposeWithMe'](this[_0xe192ef(0x23e)][_0xe192ef(0x10d)][_0xe192ef(0x1ab)](_0x16583b=>{const _0x3f26a0=_0xe192ef;let _0x546838=this[_0x3f26a0(0x35f)]['getEditing']();_0x546838&&_0x16583b[_0x3f26a0(0x2c6)](_0x2c10db=>_0x2c10db[_0x3f26a0(0x14c)]===_0x546838[_0x3f26a0(0x26c)])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x196d4a(0x30d)](){const _0x2eaef9=_0x196d4a;this['disposeWithMe'](this[_0x2eaef9(0x35f)]['editingParams$'][_0x2eaef9(0x1ab)](_0x3361c5=>{const _0x413b7f=_0x2eaef9;let {scene:_0x2e694b}=this[_0x413b7f(0x217)];if(this[_0x413b7f(0x298)]){let _0x50f39c=_0x2e694b['getObjectIncludeInGroup'](this[_0x413b7f(0x298)]);_0x50f39c&&_0x50f39c['setEditing'](!0x1);}if(_0x3361c5){let _0x122b23=!!_0x3361c5[_0x413b7f(0x339)],_0x100be3=_0x2e694b[_0x413b7f(0x2b5)](_0x3361c5['shapeKey']);_0x100be3&&(_0x100be3[_0x413b7f(0x321)](_0x122b23),this['_lastEditingShapeKey']=_0x3361c5[_0x413b7f(0x219)]),this[_0x413b7f(0x290)][_0x413b7f(0x36b)](_0x578359,_0x122b23);}else this[_0x413b7f(0x298)]=null,this[_0x413b7f(0x290)][_0x413b7f(0x36b)](_0x578359,!0x1);}));}};na=X([Y(0x1,_0x14bfc1(_0x14ee4a)),Y(0x2,_0x14bfc1($)),Y(0x3,_0x446eb2),Y(0x4,_0x9bf8bb),Y(0x5,_0x14bfc1(_0x13b053))],na);var ra=class extends na{['_initEvents'](){const _0x419551=_0x196d4a;let {scene:_0x98f3d}=this[_0x419551(0x217)],_0x4353de=this[_0x419551(0x214)][_0x419551(0x100)](_0x456574);this['disposeWithMe'](_0x98f3d[_0x419551(0x253)]['subscribeEvent'](_0x14d899=>{const _0x2d6e32=_0x419551;let {offsetX:_0x21a763,offsetY:_0x9e8de9}=_0x14d899,_0x40821d=_0x98f3d[_0x2d6e32(0x101)](_0x2163b6[_0x2d6e32(0x229)]([_0x21a763,_0x9e8de9]));if(!(_0x40821d instanceof J))return;let _0x29d23b=this[_0x2d6e32(0x309)][_0x2d6e32(0xe6)](_0x40821d[_0x2d6e32(0x263)],_0x40821d[_0x2d6e32(0x2f3)],_0x40821d[_0x2d6e32(0x26c)]);_0x22e615(this[_0x2d6e32(0x309)][_0x2d6e32(0x197)](_0x40821d[_0x2d6e32(0x263)],_0x40821d['subUnitId'],_0x40821d['shapeId']))||_0x29d23b!=null&&_0x29d23b[_0x2d6e32(0x1db)]()[_0x2d6e32(0x175)]||_0x4353de[_0x2d6e32(0x2b3)](_0x2d6e32(0x2f1),{'hostType':_0x204504[_0x2d6e32(0x205)],'unitId':_0x40821d[_0x2d6e32(0x263)],'subUnitId':_0x40821d[_0x2d6e32(0x2f3)],'shapeId':_0x40821d[_0x2d6e32(0x26c)]});}));}};const ia={...Ui};let aa=class extends _0x116f11{constructor(_0x3cb53d,_0x5eb0b5,_0x2aaa33,_0x36c214,_0x33e208,_0x1a1c61,_0x1f991e,_0x407ad4){const _0x52a1b1=_0x196d4a;super(),this[_0x52a1b1(0x34e)]=_0x3cb53d,this[_0x52a1b1(0x309)]=_0x5eb0b5,this['_commandService']=_0x2aaa33,this['_drawingManagerService']=_0x36c214,this['_sheetCanvasPopManagerService']=_0x33e208,this['_contextService']=_0x1a1c61,this['_renderManagerService']=_0x1f991e,this[_0x52a1b1(0x35f)]=_0x407ad4,q(this,_0x52a1b1(0x160),null),this[_0x52a1b1(0x34e)][_0x52a1b1(0x24b)](ia),this[_0x52a1b1(0x1c4)](),this[_0x52a1b1(0x335)](this[_0x52a1b1(0x35f)][_0x52a1b1(0x181)][_0x52a1b1(0x1ab)](_0x5d6584=>{_0x5d6584&&this['_clearFocusedShape']();}));}[_0x196d4a(0x1c3)](){const _0x4ebcae=_0x196d4a;this['_shapePopupMenuDisposable']||=this[_0x4ebcae(0x335)](_0x37fb80(this[_0x4ebcae(0x1b7)],_0x204504[_0x4ebcae(0x205)],_0x18cfd1=>this[_0x4ebcae(0x208)](_0x18cfd1)));}[_0x196d4a(0x1c4)](){const _0x11b8b7=_0x196d4a;this[_0x11b8b7(0x12e)][_0x11b8b7(0x16f)](_0x123aa0['DRAWING_SHAPE'],(_0x28a611,_0x22fede,_0x4f2c86,_0x148b51)=>{const _0x686ecf=_0x11b8b7;let _0x22b968=this[_0x686ecf(0x309)][_0x686ecf(0x16a)](_0x28a611,_0x22fede,_0x4f2c86),_0x446121=this['_sheetsShapeService'][_0x686ecf(0xf0)](_0x28a611,_0x22fede,_0x4f2c86),_0x4cdf9e=_0x22b968!==void 0x0&&!_0x22e615(_0x22b968)&&!(_0x446121!=null&&_0x446121[_0x686ecf(0x175)]);return[{'label':_0x686ecf(0x2be),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x28a611,'subUnitId':_0x22fede,'drawingId':_0x4f2c86,'mode':'style'},'disable':!0x1},..._0x4cdf9e?[{'label':_0x686ecf(0x286),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x28a611,'subUnitId':_0x22fede,'drawingId':_0x4f2c86,'mode':'text'},'disable':!0x1}]:[],{'label':_0x686ecf(0x1af),'index':0x2,'commandId':_0x3b039['id'],'commandParams':{'unitId':_0x28a611,'drawings':[{'unitId':_0x28a611,'subUnitId':_0x22fede,'drawingId':_0x4f2c86,'drawingType':_0x148b51}]},'disable':!0x1},{'label':_0x686ecf(0x143),'index':0x3,'commandId':_0x3e0bbc['id'],'commandParams':{'unitId':_0x28a611,'subUnitId':_0x22fede,'shapeId':_0x4f2c86,'flipH':!0x0},'disable':!0x1},{'label':_0x686ecf(0xcc),'index':0x4,'commandId':_0x3e0bbc['id'],'commandParams':{'unitId':_0x28a611,'subUnitId':_0x22fede,'shapeId':_0x4f2c86,'flipV':!0x0},'disable':!0x1}];},_0x11b8b7(0x24f));}['_popupMenuListener'](_0x312d9a){const _0x2fef9e=_0x196d4a;let _0x16411c=new _0x5afd59(),_0x1be253=null,_0x2d270b=()=>{const _0x3c7532=_0x165f;if(!_0x1be253)return;let _0x5dfde4=this[_0x3c7532(0x23e)]['getFocusDrawings'](),_0x2a1cc4=_0x5dfde4[_0x3c7532(0x1bc)]===0x0||_0x5dfde4[_0x3c7532(0x1bc)]===0x1&&_0x5dfde4[_0x3c7532(0x2c6)](_0x3b565c=>_0x3b565c['unitId']===(_0x1be253==null?void 0x0:_0x1be253[_0x3c7532(0x263)])&&_0x3b565c[_0x3c7532(0x2f3)]===(_0x1be253==null?void 0x0:_0x1be253[_0x3c7532(0x2f3)])&&_0x3b565c[_0x3c7532(0x14c)]===(_0x1be253==null?void 0x0:_0x1be253[_0x3c7532(0x14c)]));_0x1be253=null,_0x2a1cc4&&(this['_contextService'][_0x3c7532(0x36b)](_0x2edc38,!0x1),this[_0x3c7532(0x23e)][_0x3c7532(0x364)](null));};return _0x16411c[_0x2fef9e(0x1c1)](_0x312d9a['createControl$'][_0x2fef9e(0x1ab)](()=>{const _0x29c2a0=_0x2fef9e;let _0x19983b=_0x312d9a[_0x29c2a0(0x2cc)]();if(_0x19983b[_0x29c2a0(0x358)]>0x1){_0x2d270b();return;}let _0x3bb24f=_0x19983b[_0x29c2a0(0x126)]()[_0x29c2a0(0x116)]()[_0x29c2a0(0x1b9)];if(!_0x3bb24f){_0x2d270b();return;}let _0x56d785=this[_0x29c2a0(0x23e)][_0x29c2a0(0x23a)](_0x3bb24f[_0x29c2a0(0x313)]);if(!_0x56d785||_0x56d785[_0x29c2a0(0x27b)]!==_0x123aa0[_0x29c2a0(0x323)]){_0x2d270b();return;}let {unitId:_0x43641f,subUnitId:_0x45de80,drawingId:_0x45fe83}=_0x56d785;_0x1be253={'unitId':_0x43641f,'subUnitId':_0x45de80,'drawingId':_0x45fe83},this[_0x29c2a0(0x290)]['setContextValue'](_0x2edc38,!0x0),this[_0x29c2a0(0x23e)][_0x29c2a0(0x31a)]()[_0x29c2a0(0x10a)](_0x26c7cb=>_0x26c7cb[_0x29c2a0(0x263)]===_0x43641f&&_0x26c7cb[_0x29c2a0(0x2f3)]===_0x45de80&&_0x26c7cb['drawingId']===_0x45fe83)||this[_0x29c2a0(0x23e)][_0x29c2a0(0x364)]([{'unitId':_0x43641f,'subUnitId':_0x45de80,'drawingId':_0x45fe83}]);})),_0x16411c[_0x2fef9e(0x1c1)](_0x312d9a[_0x2fef9e(0x18d)][_0x2fef9e(0x1ab)](()=>{_0x2d270b();})),_0x46ac89(()=>{const _0x8d46f=_0x2fef9e;_0x16411c[_0x8d46f(0x1cc)](),_0x2d270b();});}[_0x196d4a(0x1b2)](){const _0x4b1dab=_0x196d4a;this['_contextService'][_0x4b1dab(0x36b)](_0x2edc38,!0x1),this['_drawingManagerService'][_0x4b1dab(0x364)](null);}};aa=X([Y(0x0,_0x866cac),Y(0x1,_0x14bfc1(_0x13b053)),Y(0x2,_0x153d8f),Y(0x3,_0x446eb2),Y(0x4,_0x14bfc1(_0x5aaa90)),Y(0x5,_0x9bf8bb),Y(0x6,_0x4dadf2),Y(0x7,_0x14bfc1($))],aa);function oa(_0x5af674,_0x978932,_0x48e922,_0x2d941e){const _0x4b1591=_0x196d4a;let _0x36cda1=_0x71372e(_0x5af674,_0x978932,_0x48e922),_0x364a3d=[];for(let _0x3cdca1 of _0x978932){let _0x28b50e=_0x36cda1[_0x4b1591(0xcd)]['get'](_0x3cdca1[_0x4b1591(0x14c)]),_0x4ece9f=_0x2d941e(_0x3cdca1);_0x28b50e&&_0x4ece9f&&_0x364a3d['push']({'targetShapeId':_0x28b50e,'source':_0x4ece9f});}return _0x364a3d;}let sa=class extends _0x116f11{constructor(_0x3c84b6,_0x1f9098,_0x332a2c,_0x13a073){const _0x3c0ac4=_0x196d4a;super(),this[_0x3c0ac4(0x17a)]=_0x3c84b6,this['_sheetInterceptorService']=_0x1f9098,this[_0x3c0ac4(0xe8)]=_0x332a2c,this['_sheetsShapeService']=_0x13a073,this[_0x3c0ac4(0x26a)]();}['_initSheetChange'](){const _0x19e44a=_0x196d4a;this[_0x19e44a(0x335)](this[_0x19e44a(0x119)][_0x19e44a(0xec)]({'getMutations':_0x453077=>{const _0x3c5c09=_0x19e44a;if(_0x453077['id']===_0x2c4408['id']){let _0x8fd932=_0x3e1b5c(this[_0x3c5c09(0x17a)],_0x453077['params']);if(!_0x8fd932)return{'redos':[],'undos':[]};let {unitId:_0x345599,subUnitId:_0x55bb5f}=_0x8fd932,_0x1420db=this[_0x3c5c09(0xe8)][_0x3c5c09(0x37c)](_0x345599,_0x55bb5f),_0x293686=Object['values'](_0x1420db)[_0x3c5c09(0x191)](_0x36f684=>_0x36f684[_0x3c5c09(0x27b)]===_0x123aa0[_0x3c5c09(0x323)]);if(_0x293686[_0x3c5c09(0x1bc)]===0x0)return{'redos':[],'undos':[]};let _0x161bf5=[],_0x5e736a=[];for(let _0x31f93f=0x0;_0x31f93f<_0x293686['length'];_0x31f93f++){let _0x334a95=_0x293686[_0x31f93f],_0x29b2a8=this['_sheetsShapeService']['getShapeModel'](_0x334a95['unitId'],_0x334a95['subUnitId'],_0x334a95['drawingId']);_0x29b2a8&&(_0x161bf5[_0x3c5c09(0x2b7)]({'id':_0x39b912['id'],'params':{'unitId':_0x345599,'subUnitId':_0x55bb5f,'shapeId':_0x334a95['drawingId']}}),_0x5e736a[_0x3c5c09(0x2b7)]({'id':_0x14a389['id'],'params':{'unitId':_0x345599,'subUnitId':_0x55bb5f,'shapeId':_0x334a95[_0x3c5c09(0x14c)],'shapeType':_0x29b2a8['getShapeType'](),'shapeData':JSON[_0x3c5c09(0x1e9)](JSON['stringify'](_0x29b2a8['getShapeData']()))}}));}return{'redos':_0x161bf5,'undos':_0x5e736a};}if(_0x453077['id']===_0x3a4496['id']){let {unitId:_0x36211e,subUnitId:_0x3e96fb,targetSubUnitId:_0xb24c65,copyContext:_0x1464a0}=_0x453077[_0x3c5c09(0x1a9)];if(!_0x36211e||!_0x3e96fb||!_0xb24c65)return{'redos':[],'undos':[]};let _0x3fd279=this['_sheetDrawingService']['getDrawingData'](_0x36211e,_0x3e96fb),_0x490d2b=Object['values'](_0x3fd279)[_0x3c5c09(0x191)](_0x5b261f=>_0x5b261f[_0x3c5c09(0x27b)]===_0x123aa0[_0x3c5c09(0x323)]);if(_0x490d2b['length']===0x0)return{'redos':[],'undos':[]};let _0x39eea8=oa(_0x1464a0,_0x490d2b,{'unitId':_0x36211e,'sourceSubUnitId':_0x3e96fb,'targetSubUnitId':_0xb24c65},_0x3c228d=>{const _0x2686d4=_0x3c5c09;let _0x220a66=this[_0x2686d4(0x309)][_0x2686d4(0xe6)](_0x3c228d[_0x2686d4(0x263)],_0x3c228d['subUnitId'],_0x3c228d[_0x2686d4(0x14c)]);if(_0x220a66)return{'shapeType':_0x220a66['getShapeType'](),'shapeData':JSON[_0x2686d4(0x1e9)](JSON['stringify'](_0x220a66[_0x2686d4(0x1db)]()))};}),_0x472d5b=[],_0x3cb35a=[];for(let {targetShapeId:_0x38cee4,source:_0x69d12e}of _0x39eea8)_0x472d5b[_0x3c5c09(0x2b7)]({'id':_0x14a389['id'],'params':{'unitId':_0x36211e,'subUnitId':_0xb24c65,'shapeId':_0x38cee4,'shapeType':_0x69d12e[_0x3c5c09(0x327)],'shapeData':_0x69d12e[_0x3c5c09(0x2cf)]}}),_0x3cb35a['push']({'id':_0x39b912['id'],'params':{'unitId':_0x36211e,'subUnitId':_0xb24c65,'shapeId':_0x38cee4}});return{'redos':_0x472d5b,'undos':_0x3cb35a};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x14bfc1(_0x46c185)),Y(0x1,_0x14bfc1(_0x2d67e2)),Y(0x2,_0x14bfc1(_0x5e26dc)),Y(0x3,_0x14bfc1(_0x13b053))],sa);let ca=class extends _0x116f11{constructor(_0x128546,_0x6b4eb9,_0x446c8e,_0x40e39d,_0x32ad81,_0x4486a9){const _0x8ea0f8=_0x196d4a;super(),this['_commandService']=_0x128546,this['_renderManagerService']=_0x6b4eb9,this[_0x8ea0f8(0x23e)]=_0x446c8e,this[_0x8ea0f8(0x2a7)]=_0x40e39d,this[_0x8ea0f8(0x141)]=_0x32ad81,this[_0x8ea0f8(0x132)]=_0x4486a9,q(this,_0x8ea0f8(0x194),new Set()),this[_0x8ea0f8(0x282)]();}[_0x196d4a(0x282)](){const _0x12851b=_0x196d4a;this[_0x12851b(0x26e)](),this[_0x12851b(0x1cd)](),this[_0x12851b(0x366)]();}[_0x196d4a(0x26e)](){const _0x428826=_0x196d4a;this[_0x428826(0x335)](this['_drawingManagerService']['add$'][_0x428826(0x1ab)](_0x5a409a=>{const _0x59e630=_0x428826;this[_0x59e630(0x2ee)](_0x5a409a);}));}[_0x196d4a(0x1cd)](){this['disposeWithMe'](this['_commandService']['onCommandExecuted']((_0x106920,_0x146f6f)=>{const _0x272c9b=_0x165f;if(_0x106920['id']===_0x3ebd56['id']){let {unitId:_0x13cb3a,subUnitId:_0x524df4,shapeId:_0xeb2c44}=_0x106920[_0x272c9b(0x1a9)],_0x418d90=this[_0x272c9b(0x2b2)](_0x13cb3a),_0x2fd992=_0x934411({'unitId':_0x13cb3a,'subUnitId':_0x524df4,'drawingId':_0xeb2c44}),_0x49cc61=_0x418d90==null?void 0x0:_0x418d90[_0x272c9b(0x142)][_0x272c9b(0x2b5)](_0x2fd992);_0x49cc61&&(this[_0x272c9b(0x132)]['refreshShapeFillImage'](_0x49cc61),this[_0x272c9b(0x132)][_0x272c9b(0xf4)](_0x49cc61,{'unitId':_0x13cb3a,'subUnitId':_0x524df4,'shapeId':_0xeb2c44}),_0x49cc61[_0x272c9b(0xe5)](!0x0));return;}if(_0x106920['id']===_0x14a389['id']){var _0x3b4a40;let {unitId:_0x4cbaba,subUnitId:_0x1fd1fe,shapeId:_0x4cf2f0}=_0x106920[_0x272c9b(0x1a9)],_0x2b19fa=this[_0x272c9b(0x2b2)](_0x4cbaba);if(_0x2b19fa==null)return;let {scene:_0x4a6df5}=_0x2b19fa,_0xd208da=_0x934411({'unitId':_0x4cbaba,'subUnitId':_0x1fd1fe,'drawingId':_0x4cf2f0}),_0x42e247=_0x4a6df5[_0x272c9b(0x2b5)](_0xd208da);if(!((_0x3b4a40=this[_0x272c9b(0x1b7)][_0x272c9b(0xd7)](_0x4cbaba))!=null&&_0x3b4a40[_0x272c9b(0x2a0)](_0x7b1452)[_0x272c9b(0x1b1)](_0x1fd1fe)))return!0x1;if(_0x42e247)return;if(_0x146f6f!=null&&_0x146f6f[_0x272c9b(0x1cb)]){queueMicrotask(()=>{const _0x3df8a5=_0x272c9b;this[_0x3df8a5(0x2f9)]||this[_0x3df8a5(0x2ee)]([{'unitId':_0x4cbaba,'subUnitId':_0x1fd1fe,'drawingId':_0x4cf2f0}]);});return;}this[_0x272c9b(0x2ee)]([{'unitId':_0x4cbaba,'subUnitId':_0x1fd1fe,'drawingId':_0x4cf2f0}]);}}));}[_0x196d4a(0x366)](){const _0x51bed0=_0x196d4a;this[_0x51bed0(0x335)](this[_0x51bed0(0x23e)][_0x51bed0(0x131)]['subscribe'](_0x286269=>{const _0x1483fc=_0x51bed0;_0x286269[_0x1483fc(0x326)](_0x1a8223=>{const _0x53eabe=_0x1483fc;let {unitId:_0x52b98f,subUnitId:_0x3b6cb9,drawingId:_0x1c4481}=_0x1a8223,_0x1776d8=this[_0x53eabe(0x23e)][_0x53eabe(0xc7)](_0x1a8223);if(_0x1776d8==null)return;let {transform:_0x219b8c,drawingType:_0x98f329,srcRect:_0x2733af,prstGeom:_0xa875a2}=_0x1776d8;if(_0x98f329!==_0x123aa0[_0x53eabe(0x323)])return;let _0x2ab7a8=this[_0x53eabe(0x2b2)](_0x52b98f);if(_0x2ab7a8==null)return;let {scene:_0x4e208f,transformer:_0x50033b}=_0x2ab7a8;if(_0x219b8c==null)return!0x0;let _0x1ccf72=_0x934411({'unitId':_0x52b98f,'subUnitId':_0x3b6cb9,'drawingId':_0x1c4481}),_0x5e8d6d=_0x4e208f[_0x53eabe(0x2b5)](_0x1ccf72);if(_0x5e8d6d==null)return!0x0;_0x5e8d6d[_0x53eabe(0x19b)](_0x2733af),_0x5e8d6d['setPrstGeom'](_0xa875a2);});}));}['_insertShapes'](_0x991ff8){const _0x157943=_0x196d4a;for(let _0x4280f2 of _0x991ff8){var _0x4045c1;let {unitId:_0x26a86b,subUnitId:_0x350c81,drawingId:_0x182951}=_0x4280f2,_0x17de9c=this[_0x157943(0x2b2)](_0x26a86b),_0x21f399=(_0x4045c1=_0x4f2817(this[_0x157943(0x2a7)],_0x26a86b))==null?void 0x0:_0x4045c1[_0x157943(0x2f3)];if(_0x17de9c==null||_0x21f399!==_0x350c81)return;let _0x3fae02=_0x934411({'unitId':_0x26a86b,'subUnitId':_0x350c81,'drawingId':_0x182951});if(this[_0x157943(0x194)][_0x157943(0x238)](_0x3fae02)||_0x17de9c[_0x157943(0x142)][_0x157943(0x2b5)](_0x3fae02)!=null)return;let _0x272d37=this[_0x157943(0x23e)][_0x157943(0xc7)](_0x4280f2);if(_0x272d37==null||_0x272d37[_0x157943(0x27b)]!==_0x123aa0[_0x157943(0x323)])return;let _0x786d72=_0x272d37['data']||{};if(_0x22e615(_0x786d72['shapeType'])){let _0x4d8fa4=_0x272d37[_0x157943(0x311)];_0x4d8fa4&&(_0x272d37[_0x157943(0x311)]={..._0x4d8fa4,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x157943(0x194)][_0x157943(0x1c1)](_0x3fae02);try{this[_0x157943(0x132)][_0x157943(0x133)](_0x272d37,_0x17de9c[_0x157943(0x142)]);}finally{this[_0x157943(0x194)][_0x157943(0xfd)](_0x3fae02);}queueMicrotask(()=>{const _0xa95d6e=_0x157943;if(this[_0xa95d6e(0x2f9)])return;let _0x2e5b04=_0x934411(_0x4280f2);if(!_0x17de9c[_0xa95d6e(0x142)][_0xa95d6e(0x2b5)](_0x2e5b04))return;let _0x536324=this[_0xa95d6e(0x23e)]['getDrawingByParam'](_0x4280f2);_0x536324&&this['_drawingManagerService']['refreshTransform']([_0x536324]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x1bb284){const _0x5e90c0=_0x196d4a;if(_0x1bb284==null)return;let _0x34826c=this[_0x5e90c0(0x1b7)]['getRenderUnitById'](_0x1bb284),_0x337ddd=_0x34826c==null?void 0x0:_0x34826c[_0x5e90c0(0x142)];return _0x337ddd==null?null:{'scene':_0x337ddd,'transformer':_0x337ddd[_0x5e90c0(0x384)]()};}};ca=X([Y(0x0,_0x153d8f),Y(0x1,_0x4dadf2),Y(0x2,_0x446eb2),Y(0x3,_0x46c185),Y(0x4,_0x14bfc1(_0x8b8e3)),Y(0x5,_0x14bfc1(Z))],ca);const la={'normal':{'fill':_0x1a4d77[_0x196d4a(0xf2)],'stroke':_0x1a4d77[_0x196d4a(0x281)],'strokeWidth':_0x1a4d77[_0x196d4a(0x28f)]},'highlighted':{'fill':_0x196d4a(0x386),'stroke':_0x196d4a(0x172),'strokeWidth':0x2}};var ua=class extends _0x35d449{constructor(_0x27ba40,_0x500612){const _0x4d0fec=_0x196d4a;super(_0x27ba40,_0x500612),q(this,'_targetShapeId',''),q(this,'_cxnIndex',-0x1),q(this,_0x4d0fec(0x204),''),q(this,_0x4d0fec(0x19d),''),q(this,_0x4d0fec(0x27d),!0x1),_0x500612&&this[_0x4d0fec(0x2c3)](_0x500612);}[_0x196d4a(0x112)](){const _0x5a4ff0=_0x196d4a;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x5a4ff0(0x32c)]};}[_0x196d4a(0x279)](_0x2b7223){const _0x5e8499=_0x196d4a;this[_0x5e8499(0x27d)]!==_0x2b7223&&(this[_0x5e8499(0x27d)]=_0x2b7223,this[_0x5e8499(0xe5)](!0x0));}[_0x196d4a(0x2c1)](){const _0x21c6cc=_0x196d4a;return this[_0x21c6cc(0x27d)];}[_0x196d4a(0x2c3)](_0x39cae9){const _0x405a9c=_0x196d4a;_0x39cae9[_0x405a9c(0x2fe)]!==void 0x0&&(this[_0x405a9c(0x2e9)]=_0x39cae9[_0x405a9c(0x2fe)]),_0x39cae9[_0x405a9c(0x196)]!==void 0x0&&(this['_cxnIndex']=_0x39cae9[_0x405a9c(0x196)]),_0x39cae9['unitId']!==void 0x0&&(this[_0x405a9c(0x204)]=_0x39cae9[_0x405a9c(0x263)]),_0x39cae9['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x39cae9['subUnitId']),_0x39cae9[_0x405a9c(0x2c1)]!==void 0x0&&(this['_isHighlighted']=_0x39cae9[_0x405a9c(0x2c1)]),this[_0x405a9c(0x2a2)]({'width':_0x39cae9[_0x405a9c(0x2df)]??_0x1a4d77[_0x405a9c(0x243)]*0x2,'height':_0x39cae9[_0x405a9c(0x2b9)]??_0x1a4d77[_0x405a9c(0x243)]*0x2});}['_draw'](_0x1ac8a1){const _0x1cde50=_0x196d4a;let _0x1171de=this['_isHighlighted']?la['highlighted']:la['normal'];_0x37d975[_0x1cde50(0xd6)](_0x1ac8a1,{'radius':_0x1a4d77[_0x1cde50(0x243)],'fill':_0x1171de[_0x1cde50(0x32f)],'stroke':_0x1171de[_0x1cde50(0x193)],'strokeWidth':_0x1171de[_0x1cde50(0x252)],'evented':!0x0});}};function _0x165f(_0x136481,_0x2894d0){_0x136481=_0x136481-0xc5;const _0x376e73=_0x376e();let _0x165fa4=_0x376e73[_0x136481];return _0x165fa4;}let da=class extends _0x116f11{constructor(_0x100158,_0x56c59c,_0x3f40bd,_0x47bd95){const _0x5a684a=_0x196d4a;super(),this[_0x5a684a(0x217)]=_0x100158,this[_0x5a684a(0x1b7)]=_0x56c59c,this[_0x5a684a(0x23e)]=_0x3f40bd,this[_0x5a684a(0x309)]=_0x47bd95,q(this,_0x5a684a(0x37d),[]),q(this,_0x5a684a(0x11b),null),q(this,_0x5a684a(0x2f6),-0x1),q(this,_0x5a684a(0x2e0),null),q(this,'_unitId',''),q(this,_0x5a684a(0x19d),''),q(this,'_draggingConnectorId',null);}[_0x196d4a(0x347)](_0x58620b,_0x5e4f42,_0x388c8c,_0x177fc0){const _0x8943b5=_0x196d4a;this[_0x8943b5(0x2e0)]=_0x58620b,this[_0x8943b5(0x204)]=_0x5e4f42,this[_0x8943b5(0x19d)]=_0x388c8c,this[_0x8943b5(0x2ef)]=_0x177fc0;}[_0x196d4a(0x239)](_0x215027){const _0x5546dd=_0x196d4a;if(!this[_0x5546dd(0x2e0)])return null;let _0x351212=this[_0x5546dd(0x297)](_0x215027);return _0x351212?(this[_0x5546dd(0x11b)]!==_0x351212['shapeId']&&(this[_0x5546dd(0x1ea)](),this[_0x5546dd(0x234)](_0x351212['shapeId'],_0x351212['shapeModel']),this['_activeTargetShapeId']=_0x351212[_0x5546dd(0x26c)]),this[_0x5546dd(0x25f)](_0x215027)):(this['_activeTargetShapeId']!==null&&(this[_0x5546dd(0x1ea)](),this['_activeTargetShapeId']=null),null);}[_0x196d4a(0x2d2)](){const _0x5c6fe9=_0x196d4a;this[_0x5c6fe9(0x1ea)](),this[_0x5c6fe9(0x2e0)]=null,this['_activeTargetShapeId']=null,this[_0x5c6fe9(0x2f6)]=-0x1,this[_0x5c6fe9(0x2ef)]=null;}['getConnectionRelation'](){const _0x53b1af=_0x196d4a;return this[_0x53b1af(0x11b)]===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x53b1af(0x11b)],'cxnIndex':this[_0x53b1af(0x2f6)]};}[_0x196d4a(0x297)](_0x11d914){const _0x2f18f1=_0x196d4a;let _0x194eff=this['_drawingManagerService'][_0x2f18f1(0x37c)](this['_unitId'],this[_0x2f18f1(0x19d)]);for(let _0x351d2a of Object[_0x2f18f1(0x12c)](_0x194eff)){if(_0x351d2a===this[_0x2f18f1(0x2ef)]||_0x194eff[_0x351d2a][_0x2f18f1(0x27b)]!==_0x123aa0[_0x2f18f1(0x323)])continue;let _0xcc1da7=this[_0x2f18f1(0x309)][_0x2f18f1(0xe6)](this['_unitId'],this['_subUnitId'],_0x351d2a);if(!_0xcc1da7||_0x22e615(_0xcc1da7[_0x2f18f1(0x197)]())||_0xcc1da7[_0x2f18f1(0x147)]()['length']===0x0||!this['_currentScene'])continue;let _0x410035=_0x934411({'unitId':this[_0x2f18f1(0x204)],'subUnitId':this[_0x2f18f1(0x19d)],'drawingId':_0x351d2a}),_0x4f0721=this[_0x2f18f1(0x2e0)][_0x2f18f1(0x2b5)](_0x410035);if(!_0x4f0721)continue;let {left:_0x4f711c,top:_0x2c20f7,width:_0x62bd25,height:_0x565cc1}=_0x4f0721['getRealBound'](),_0x215c2f=_0x4f711c+_0x62bd25/0x2,_0x4d8990=_0x2c20f7+_0x565cc1/0x2,_0x52fa52=_0x4f0721[_0x2f18f1(0x311)]['getMatrix'](),_0x4db242=new _0x29b58e([_0x52fa52[0x0],_0x52fa52[0x1],_0x52fa52[0x2],_0x52fa52[0x3],_0x215c2f,_0x4d8990]),_0x18965b=_0x4f0721[_0x2f18f1(0x135)](),_0x267868=(_0x4f0721[_0x2f18f1(0x2bf)]&&(_0x18965b==null?void 0x0:_0x18965b[_0x2f18f1(0x2d4)])===_0x57820c[_0x2f18f1(0x162)]?_0x18965b[_0x2f18f1(0x25b)][_0x2f18f1(0x247)](_0x4db242):_0x4db242)[_0x2f18f1(0x180)]()[_0x2f18f1(0x1e8)](_0x11d914),_0xf1de82=_0x62bd25/0x2,_0x3d4c1c=_0x565cc1/0x2;if(_0x267868['x']>=-_0xf1de82-0x5&&_0x267868['x']<=_0xf1de82+0x5&&_0x267868['y']>=-_0x3d4c1c-0x5&&_0x267868['y']<=_0x3d4c1c+0x5)return{'shapeId':_0x351d2a,'shapeModel':_0xcc1da7};}return null;}[_0x196d4a(0x234)](_0x5d337c,_0x45bfed){const _0x458b14=_0x196d4a;if(!this[_0x458b14(0x2e0)])return;let _0x5c377a=_0x934411({'unitId':this['_unitId'],'subUnitId':this[_0x458b14(0x19d)],'drawingId':_0x5d337c}),_0x1012f1=this[_0x458b14(0x2e0)][_0x458b14(0x2b5)](_0x5c377a);if(!_0x1012f1)return;let {left:_0x2a3d23,top:_0x5b35f3,width:_0x5e235c,height:_0x68d67c}=_0x1012f1[_0x458b14(0x294)](),_0x4dddee=_0x2a3d23+_0x5e235c/0x2,_0x3a7760=_0x5b35f3+_0x68d67c/0x2,_0x336783=_0x1012f1[_0x458b14(0x311)][_0x458b14(0x1a6)](),_0x47bbfd=new _0x29b58e([_0x336783[0x0],_0x336783[0x1],_0x336783[0x2],_0x336783[0x3],_0x4dddee,_0x3a7760]),_0x563135=_0x1012f1[_0x458b14(0x135)](),_0x5aab30=_0x1012f1['isInGroup']&&(_0x563135==null?void 0x0:_0x563135[_0x458b14(0x2d4)])===_0x57820c['GROUP']?_0x563135[_0x458b14(0x25b)][_0x458b14(0x247)](_0x47bbfd):_0x47bbfd;_0x45bfed[_0x458b14(0x385)]({'width':_0x5e235c,'height':_0x68d67c});let _0x2af1c4=_0x45bfed[_0x458b14(0x147)]();for(let _0x5137ce of _0x2af1c4){let _0x5e50fc=_0x5137ce['x']-_0x5e235c/0x2,_0x4cd67e=_0x5137ce['y']-_0x68d67c/0x2,_0x144a96=_0x5aab30[_0x458b14(0x1e8)]({'x':_0x5e50fc,'y':_0x4cd67e}),_0x59ab32=_0x144a96['x'],_0x320b1a=_0x144a96['y'],_0x9464a0=new ua(_0x458b14(0x13b)+_0x5d337c+'-'+_0x5137ce[_0x458b14(0x2db)],{'left':_0x59ab32-_0x1a4d77[_0x458b14(0x243)],'top':_0x320b1a-_0x1a4d77[_0x458b14(0x243)],'targetShapeId':_0x5d337c,'cxnIndex':_0x5137ce[_0x458b14(0x2db)],'unitId':this[_0x458b14(0x204)],'subUnitId':this[_0x458b14(0x19d)],'width':_0x1a4d77[_0x458b14(0x243)]*0x2,'height':_0x1a4d77[_0x458b14(0x243)]*0x2,'zIndex':_0x22b3ea+0x2,'evented':!0x1});this[_0x458b14(0x37d)][_0x458b14(0x2b7)](_0x9464a0),this['_currentScene'][_0x458b14(0xea)](_0x9464a0,_0x22b3ea+0x2);}}['_findNearestConnectionSite'](_0x256c14){const _0x4e4728=_0x196d4a;let _0x452b8b=null,_0xd4c453=0x1/0x0,_0x3f597c=null;for(let _0x57f312 of this['_connectionSiteObjects']){let _0x540321=_0x57f312['left']+_0x1a4d77[_0x4e4728(0x243)],_0x144b91=_0x57f312[_0x4e4728(0x324)]+_0x1a4d77[_0x4e4728(0x243)],_0x807dfb=_0x256c14['x']-_0x540321,_0xb7fac7=_0x256c14['y']-_0x144b91,_0x1e4394=Math['sqrt'](_0x807dfb*_0x807dfb+_0xb7fac7*_0xb7fac7);_0x1e4394<_0xd4c453&&(_0xd4c453=_0x1e4394,_0x452b8b=_0x57f312,_0x3f597c={'x':_0x540321,'y':_0x144b91});}let _0x140eeb=_0xd4c453<=0xa&&_0x452b8b?_0x452b8b[_0x4e4728(0x112)]()[_0x4e4728(0x196)]:-0x1;if(_0x140eeb!==this[_0x4e4728(0x2f6)]){for(let _0x291ec9 of this[_0x4e4728(0x37d)]){let _0x1651f6=_0x291ec9[_0x4e4728(0x112)]();_0x291ec9[_0x4e4728(0x279)](_0x1651f6[_0x4e4728(0x196)]===_0x140eeb);}this['_highlightedSiteIndex']=_0x140eeb;}if(_0xd4c453<=0xa&&_0x452b8b&&_0x3f597c){let _0x444670=_0x452b8b[_0x4e4728(0x112)](),_0x520f71=this[_0x4e4728(0x1bd)](_0x444670['shapeId'],_0x444670[_0x4e4728(0x196)]);return{'shapeId':_0x444670['shapeId'],'cxnIndex':_0x444670[_0x4e4728(0x196)],'unitId':_0x444670[_0x4e4728(0x263)],'subUnitId':_0x444670[_0x4e4728(0x2f3)],'worldPoint':_0x3f597c,'angle':_0x520f71};}return null;}['_getConnectionSiteAngle'](_0x43b091,_0x8ee7e3){const _0x827438=_0x196d4a;let _0x33b394=this[_0x827438(0x309)][_0x827438(0xe6)](this[_0x827438(0x204)],this['_subUnitId'],_0x43b091);if(!_0x33b394)return 0x0;let _0x2a7050=this[_0x827438(0x23e)][_0x827438(0xc7)]({'unitId':this[_0x827438(0x204)],'subUnitId':this[_0x827438(0x19d)],'drawingId':_0x43b091});if(!(_0x2a7050!=null&&_0x2a7050[_0x827438(0x311)]))return 0x0;let {width:_0xc5a988=0x0,height:_0x12b49f=0x0,flipX:_0x40d2ab=!0x1,flipY:_0x674461=!0x1}=_0x2a7050[_0x827438(0x311)];_0x33b394[_0x827438(0x385)]({'width':_0xc5a988,'height':_0x12b49f});let _0x29077c=_0x33b394['getConnectionSiteList']()['find'](_0x445503=>_0x445503[_0x827438(0x2db)]===_0x8ee7e3);if(!_0x29077c)return 0x0;let _0x2ec36e=_0x29077c[_0x827438(0x35e)]/0xea60;return _0x40d2ab&&(_0x2ec36e=0xb4-_0x2ec36e),_0x674461&&(_0x2ec36e=-_0x2ec36e),_0x2ec36e=(_0x2ec36e%0x168+0x168)%0x168,_0x2ec36e;}[_0x196d4a(0x1ea)](){const _0x544888=_0x196d4a;for(let _0x1abb56 of this['_connectionSiteObjects'])_0x1abb56[_0x544888(0x1cc)]();this[_0x544888(0x37d)]=[],this[_0x544888(0x2f6)]=-0x1;}['dispose'](){const _0x19dd23=_0x196d4a;this['_clearConnectionSites'](),super[_0x19dd23(0x1cc)]();}};da=X([Y(0x1,_0x14bfc1(_0x4dadf2)),Y(0x2,_0x14bfc1(_0x446eb2)),Y(0x3,_0x14bfc1(_0x13b053))],da);let fa=class extends _0x116f11{constructor(_0x431f28,_0x3d8bcd,_0x5f29bb,_0x15bde5,_0x8584a7){const _0x1a3bdd=_0x196d4a;super(),this[_0x1a3bdd(0xc8)]=_0x431f28,this[_0x1a3bdd(0x2ba)]=_0x3d8bcd,this[_0x1a3bdd(0xe8)]=_0x5f29bb,this[_0x1a3bdd(0x246)]=_0x15bde5,this[_0x1a3bdd(0x18e)]=_0x8584a7,q(this,_0x1a3bdd(0x186),void 0x0),this['_initCopyPaste'](),this[_0x1a3bdd(0x288)]();}get[_0x196d4a(0x2e1)](){return this['_sheetDrawingService']['getFocusDrawings']();}[_0x196d4a(0x288)](){const _0x247cc6=_0x196d4a;this['_groupCopyPasteController'][_0x247cc6(0x37e)](({fromUnitId:_0x4cfe4c,fromSubUnitId:_0x41168e,toUnitId:_0x56b200,toSubUnitId:_0x5e5f6f,idMap:_0x502bd8})=>{const _0x1ec992=_0x247cc6;let _0x3cf2c7=[],_0x98d97c=[];for(let [_0x2a476a,_0x75a513]of _0x502bd8['entries']()){let _0x3c8597=this[_0x1ec992(0x246)]['getShapeModel'](_0x4cfe4c,_0x41168e,_0x2a476a);if(!_0x3c8597)continue;let _0x11da9d=_0x3c8597[_0x1ec992(0x197)](),_0x4a9e14=JSON[_0x1ec992(0x1e9)](JSON[_0x1ec992(0x32b)](_0x3c8597[_0x1ec992(0x1db)]()));if(_0x4a9e14[_0x1ec992(0x27a)]){var _0x35460f,_0x26cf41;let _0x4d6d22=(_0x35460f=_0x4a9e14['relation'][_0x1ec992(0x1e6)])==null?void 0x0:_0x35460f[_0x1ec992(0x26c)],_0x41b790=(_0x26cf41=_0x4a9e14[_0x1ec992(0x27a)]['to'])==null?void 0x0:_0x26cf41[_0x1ec992(0x26c)],_0x1de2ae=!_0x4d6d22||_0x502bd8['has'](_0x4d6d22),_0x11ee15=!_0x41b790||_0x502bd8['has'](_0x41b790);_0x1de2ae&&_0x4d6d22&&_0x4a9e14[_0x1ec992(0x27a)][_0x1ec992(0x1e6)]?_0x4a9e14[_0x1ec992(0x27a)][_0x1ec992(0x1e6)]={..._0x4a9e14['relation']['from'],'shapeId':_0x502bd8[_0x1ec992(0x100)](_0x4d6d22)}:_0x4a9e14[_0x1ec992(0x27a)][_0x1ec992(0x1e6)]=void 0x0,_0x11ee15&&_0x41b790&&_0x4a9e14['relation']['to']?_0x4a9e14[_0x1ec992(0x27a)]['to']={..._0x4a9e14[_0x1ec992(0x27a)]['to'],'shapeId':_0x502bd8[_0x1ec992(0x100)](_0x41b790)}:_0x4a9e14[_0x1ec992(0x27a)]['to']=void 0x0;}_0x3cf2c7['push']({'id':_0x14a389['id'],'params':{'unitId':_0x56b200,'subUnitId':_0x5e5f6f,'shapeId':_0x75a513,'shapeType':_0x11da9d,'shapeData':_0x4a9e14}}),_0x98d97c[_0x1ec992(0x2b7)]({'id':_0x39b912['id'],'params':{'unitId':_0x56b200,'subUnitId':_0x5e5f6f,'shapeId':_0x75a513}});}return{'redos':_0x3cf2c7,'undos':_0x98d97c};});}[_0x196d4a(0x24a)](){const _0x514e9d=_0x196d4a;this['disposeWithMe'](this['_sheetClipboardService'][_0x514e9d(0x24e)]({'id':_0x514e9d(0x34d),'onBeforeCopyFocusedObject':(_0xd173df,_0xb347d2,_0x1ae405)=>{const _0x2e6a65=_0x514e9d;this[_0x2e6a65(0x186)]=null;let _0x88b8de=this[_0x2e6a65(0x2e1)][_0x2e6a65(0x191)](_0x6d067c=>_0x6d067c[_0x2e6a65(0x27b)]===_0x123aa0['DRAWING_SHAPE']);return _0x88b8de[_0x2e6a65(0x1bc)]!==0x0&&(this[_0x2e6a65(0x186)]={'unitId':_0xd173df,'subUnitId':_0xb347d2,'copyType':_0x1ae405,'drawings':_0x88b8de},!0x0);},'onBeforeCopy':(_0x178d9e,_0x4e0f42,_0x478d37,_0x19d78a)=>{const _0x4c3dfe=_0x514e9d;this[_0x4c3dfe(0x186)]=null,this[_0x4c3dfe(0x123)](_0x178d9e,_0x4e0f42,_0x478d37,_0x19d78a);},'onPasteCells':(_0x33118b,_0x4af71f,_0xb45d68,_0x8239e3)=>{const _0x3ca766=_0x514e9d;if(!_0x8239e3['copyId']||!_0x33118b||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x339c07}=_0x8239e3;return _0x339c07===_0x225c7f[_0x3ca766(0x240)]?this['_generatePasteMutations'](_0x4af71f,this['_copyInfo'][_0x3ca766(0x19c)]===_0x35c24e[_0x3ca766(0x316)]):{'redos':[],'undos':[]};}}));}[_0x196d4a(0x123)](_0x5b7ba1,_0x1a34d1,_0x50ca09,_0x5125f0){const _0x9a3523=_0x196d4a;let _0x248881=this['_sheetSkeletonService'][_0x9a3523(0x1b1)](_0x5b7ba1,_0x1a34d1);if(!_0x248881)return;let _0x3d4d55=_0x14fc19(_0x248881,_0x50ca09);if(!_0x3d4d55)return;let {startX:_0x2567f3,endX:_0x3058d0,startY:_0x1a4d88,endY:_0x1d9d4b}=_0x3d4d55,_0x53e6a9=this['_sheetDrawingService'][_0x9a3523(0x37c)](_0x5b7ba1,_0x1a34d1),_0x4c229e=[];for(let [_0x546004,_0x400179]of Object['entries'](_0x53e6a9)){if(_0x400179[_0x9a3523(0x27b)]!==_0x123aa0[_0x9a3523(0x323)])continue;let {transform:_0xeafecb}=_0x400179;if(!_0xeafecb)continue;let {left:_0x1544ea=0x0,top:_0x3078b0=0x0,width:_0xdc4ba4=0x0,height:_0x1dbf33=0x0}=_0xeafecb;_0x2567f3<=_0x1544ea&&_0x3058d0>=_0x1544ea+_0xdc4ba4&&_0x1a4d88<=_0x3078b0&&_0x1d9d4b>=_0x3078b0+_0x1dbf33&&_0x4c229e[_0x9a3523(0x2b7)](_0x400179);}_0x4c229e[_0x9a3523(0x1bc)]>0x0&&(this[_0x9a3523(0x186)]={'unitId':_0x5b7ba1,'subUnitId':_0x1a34d1,'copyType':_0x5125f0,'copyRange':_0x50ca09,'drawings':_0x4c229e});}[_0x196d4a(0x17d)](_0x3fdeca,_0x32d72f){const _0x1b6c26=_0x196d4a;let {unitId:_0x2cd18c,subUnitId:_0x1384af,range:_0x53071f}=_0x3fdeca,_0x2f43b5=this[_0x1b6c26(0xc8)][_0x1b6c26(0x1b1)](_0x2cd18c,_0x1384af);if(!_0x2f43b5)return{'redos':[],'undos':[]};let _0x118916=_0xf91a3d(_0x53071f),{unitId:_0x25cb08,subUnitId:_0x463170,copyRange:_0x37152a,drawings:_0x2aa4df}=this[_0x1b6c26(0x186)],_0x2eb39d=this[_0x1b6c26(0xc8)][_0x1b6c26(0x1b1)](_0x25cb08,_0x463170);if(!_0x2eb39d)return{'redos':[],'undos':[]};let _0x10129d;if(!_0x37152a){let _0x5687a8=0x1/0x0,_0x25178d=0x1/0x0;for(let _0x367c5b of _0x2aa4df){let {left:_0x342e2c=0x0,top:_0x87aaba=0x0}=_0x367c5b[_0x1b6c26(0x311)]??{};_0x342e2c<_0x5687a8&&(_0x5687a8=_0x342e2c),_0x87aaba<_0x25178d&&(_0x25178d=_0x87aaba);}_0x5687a8!==0x1/0x0&&_0x25178d!==0x1/0x0&&(_0x10129d={'left':_0x5687a8,'top':_0x25178d});}let _0x320a2b=new Map();if(!_0x32d72f){for(let _0x3fa48e of _0x2aa4df)_0x320a2b['set'](_0x3fa48e['drawingId'],_0xc50b92());}let _0x149864=[],_0x529904=[];for(let _0x4fd44 of _0x2aa4df){let {drawingId:_0x274b8f,transform:_0x260a5a,sheetTransform:_0x58e0c2}=_0x4fd44;if(!_0x260a5a||!_0x58e0c2)continue;let _0x32bf6b=this[_0x1b6c26(0x30b)]({'transform':_0x260a5a,'sheetTransform':_0x58e0c2},{'skeleton':_0x2eb39d,'range':_0x37152a},{'skeleton':_0x2f43b5,'range':_0x118916},_0x10129d);if(_0x32d72f){let {redos:_0x22979c,undos:_0x36ade4}=this[_0x1b6c26(0x14f)]({'fromUnitId':_0x25cb08,'fromSubUnitId':_0x463170,'toUnitId':_0x2cd18c,'toSubUnitId':_0x1384af,'drawing':_0x4fd44,'newTransforms':_0x32bf6b});_0x149864[_0x1b6c26(0x2b7)](..._0x22979c),_0x529904[_0x1b6c26(0x2b7)](..._0x36ade4);continue;}let {redos:_0x6d84a0,undos:_0x663616}=this['_generateCopyPasteMutations']({'toUnitId':_0x2cd18c,'toSubUnitId':_0x1384af,'drawing':_0x4fd44,'newTransforms':_0x32bf6b,'newDrawingId':_0x320a2b[_0x1b6c26(0x100)](_0x274b8f),'idMap':_0x320a2b});_0x149864[_0x1b6c26(0x2b7)](..._0x6d84a0),_0x529904[_0x1b6c26(0x2b7)](..._0x663616);}return{'redos':_0x149864,'undos':_0x529904};}[_0x196d4a(0x14f)](_0x4c6918){const _0x191724=_0x196d4a;let {fromUnitId:_0xd48107,fromSubUnitId:_0x22ec2f,toUnitId:_0x306913,toSubUnitId:_0x96fda6,drawing:_0x56383e,newTransforms:_0x298009}=_0x4c6918,_0x2f7dc2={..._0x56383e,'unitId':_0x306913,'subUnitId':_0x96fda6,'transform':_0x298009['transform'],'sheetTransform':_0x298009[_0x191724(0x325)]};if(_0x306913===_0xd48107&&_0x96fda6===_0x22ec2f){let {redo:_0x3ca295,undo:_0xd3c3da,objects:_0x4b8f2b}=this[_0x191724(0xe8)][_0x191724(0x33f)]([_0x2f7dc2]);return{'redos':[{'id':_0x164c96['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'type':_0x5e0f69[_0x191724(0x17c)],'op':_0x3ca295,'objects':_0x4b8f2b}}],'undos':[{'id':_0x164c96['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'type':_0x5e0f69[_0x191724(0x17c)],'op':_0xd3c3da,'objects':_0x4b8f2b}}]};}{let _0xd3c6d3=this[_0x191724(0xe8)]['getBatchRemoveOp']([_0x56383e]),_0x33ef6f=this[_0x191724(0xe8)]['getBatchAddOp']([_0x2f7dc2]),_0x826d6e=this[_0x191724(0x246)][_0x191724(0xe6)](_0x56383e[_0x191724(0x263)],_0x56383e[_0x191724(0x2f3)],_0x56383e[_0x191724(0x14c)]);if(!_0x826d6e)return{'redos':[],'undos':[]};let _0x385e70=_0x826d6e[_0x191724(0x197)](),_0xeda7f2=JSON[_0x191724(0x1e9)](JSON[_0x191724(0x32b)](_0x826d6e[_0x191724(0x1db)]()));return{'redos':[{'id':_0x164c96['id'],'params':{'unitId':_0xd48107,'subUnitId':_0x22ec2f,'type':_0x5e0f69['REMOVE'],'op':_0xd3c6d3[_0x191724(0xff)],'objects':_0xd3c6d3['objects']}},{'id':_0x39b912['id'],'params':{'unitId':_0xd48107,'subUnitId':_0x22ec2f,'shapeId':_0x56383e[_0x191724(0x14c)]}},{'id':_0x164c96['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'type':_0x5e0f69[_0x191724(0x328)],'op':_0x33ef6f['redo'],'objects':_0x33ef6f[_0x191724(0x35d)]}},{'id':_0x14a389['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'shapeId':_0x56383e['drawingId'],'shapeType':_0x385e70,'shapeData':_0xeda7f2}}],'undos':[{'id':_0x164c96['id'],'params':{'unitId':_0xd48107,'subUnitId':_0x22ec2f,'type':_0x5e0f69[_0x191724(0x328)],'op':_0xd3c6d3[_0x191724(0x1c5)],'objects':_0xd3c6d3[_0x191724(0x35d)]}},{'id':_0x14a389['id'],'params':{'unitId':_0xd48107,'subUnitId':_0x22ec2f,'shapeId':_0x56383e[_0x191724(0x14c)],'shapeType':_0x385e70,'shapeData':_0xeda7f2}},{'id':_0x164c96['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'type':_0x5e0f69[_0x191724(0x22d)],'op':_0x33ef6f[_0x191724(0x1c5)],'objects':_0x33ef6f[_0x191724(0x35d)]}},{'id':_0x39b912['id'],'params':{'unitId':_0x306913,'subUnitId':_0x96fda6,'shapeId':_0x56383e[_0x191724(0x14c)]}}]};}}['_generateCopyPasteMutations'](_0x2e98a2){const _0x35166d=_0x196d4a;let {toUnitId:_0x45602c,toSubUnitId:_0x533ba1,drawing:_0x44945b,newTransforms:_0x3d3fc9,newDrawingId:_0x58a406,idMap:_0x10ef8a}=_0x2e98a2,_0x53bcb5={..._0x44945b,'unitId':_0x45602c,'subUnitId':_0x533ba1,'drawingId':_0x58a406,'transform':_0x3d3fc9[_0x35166d(0x311)],'sheetTransform':_0x3d3fc9[_0x35166d(0x325)]},{redo:_0x472081,undo:_0x4c3cca,objects:_0x2d25ad}=this[_0x35166d(0xe8)]['getBatchAddOp']([_0x53bcb5]),_0x475481=this[_0x35166d(0x246)][_0x35166d(0xe6)](_0x44945b[_0x35166d(0x263)],_0x44945b[_0x35166d(0x2f3)],_0x44945b[_0x35166d(0x14c)]);if(!_0x475481)return{'redos':[],'undos':[]};let _0x1a3c3a=_0x475481[_0x35166d(0x197)](),_0x111f4b=JSON['parse'](JSON['stringify'](_0x475481[_0x35166d(0x1db)]()));if(_0x111f4b[_0x35166d(0x27a)]){var _0x105e8a,_0x2e6220;let _0x131159=(_0x105e8a=_0x111f4b['relation'][_0x35166d(0x1e6)])==null?void 0x0:_0x105e8a['shapeId'],_0x545f26=(_0x2e6220=_0x111f4b[_0x35166d(0x27a)]['to'])==null?void 0x0:_0x2e6220['shapeId'],_0x442fd9=!_0x131159||_0x10ef8a[_0x35166d(0x238)](_0x131159),_0x35180f=!_0x545f26||_0x10ef8a['has'](_0x545f26);_0x442fd9&&_0x131159&&_0x111f4b[_0x35166d(0x27a)][_0x35166d(0x1e6)]?_0x111f4b[_0x35166d(0x27a)]['from']={..._0x111f4b[_0x35166d(0x27a)]['from'],'shapeId':_0x10ef8a[_0x35166d(0x100)](_0x131159)}:_0x111f4b[_0x35166d(0x27a)][_0x35166d(0x1e6)]=void 0x0,_0x35180f&&_0x545f26&&_0x111f4b[_0x35166d(0x27a)]['to']?_0x111f4b['relation']['to']={..._0x111f4b[_0x35166d(0x27a)]['to'],'shapeId':_0x10ef8a[_0x35166d(0x100)](_0x545f26)}:_0x111f4b['relation']['to']=void 0x0;}return{'redos':[{'id':_0x164c96['id'],'params':{'unitId':_0x45602c,'subUnitId':_0x533ba1,'type':_0x5e0f69[_0x35166d(0x328)],'op':_0x472081,'objects':_0x2d25ad}},{'id':_0x14a389['id'],'params':{'unitId':_0x45602c,'subUnitId':_0x533ba1,'shapeId':_0x58a406,'shapeType':_0x1a3c3a,'shapeData':_0x111f4b}}],'undos':[{'id':_0x164c96['id'],'params':{'unitId':_0x45602c,'subUnitId':_0x533ba1,'type':_0x5e0f69[_0x35166d(0x22d)],'op':_0x4c3cca,'objects':_0x2d25ad}},{'id':_0x39b912['id'],'params':{'unitId':_0x45602c,'subUnitId':_0x533ba1,'shapeId':_0x58a406}}]};}[_0x196d4a(0x30b)](_0x82f028,_0x8b29cd,_0x429187,_0x31f207){const _0x237006=_0x196d4a;let {range:_0x3a5229,skeleton:_0x3b6abb}=_0x8b29cd,{range:_0x2ba24d,skeleton:_0x18dafc}=_0x429187,{transform:_0x3ead32,sheetTransform:_0x722bc4}=_0x82f028,_0x30b998={..._0x3ead32};if(_0x3a5229){let _0x9e681e=_0x14fc19(_0x3b6abb,_0x3a5229),_0x58964b=_0x14fc19(_0x18dafc,_0x2ba24d);if(_0x9e681e&&_0x58964b){let _0x3378ba=_0x58964b[_0x237006(0x1f1)]-_0x9e681e[_0x237006(0x1f1)],_0x4e239a=_0x58964b[_0x237006(0x29d)]-_0x9e681e['startY'];_0x30b998[_0x237006(0x158)]=(_0x30b998[_0x237006(0x158)]??0x0)+_0x3378ba,_0x30b998['top']=(_0x30b998[_0x237006(0x324)]??0x0)+_0x4e239a;}}else{let _0x543d45=_0x14fc19(_0x18dafc,_0x2ba24d);if(_0x31f207&&_0x543d45){let _0x99bc56=(_0x30b998[_0x237006(0x158)]??0x0)-_0x31f207[_0x237006(0x158)],_0x510e90=(_0x30b998[_0x237006(0x324)]??0x0)-_0x31f207[_0x237006(0x324)];_0x30b998[_0x237006(0x158)]=_0x543d45[_0x237006(0x1f1)]+_0x99bc56,_0x30b998[_0x237006(0x324)]=_0x543d45['startY']+_0x510e90;}else _0x30b998[_0x237006(0x158)]=_0x543d45==null?void 0x0:_0x543d45[_0x237006(0x1f1)],_0x30b998[_0x237006(0x324)]=_0x543d45==null?void 0x0:_0x543d45[_0x237006(0x29d)];}return{'transform':_0x30b998,'sheetTransform':_0x15205d(_0x30b998,_0x18dafc)??_0x722bc4};}};fa=X([Y(0x0,_0x14bfc1(_0x2c5708)),Y(0x1,_0x14bfc1(_0x4c557e)),Y(0x2,_0x14bfc1(_0x5e26dc)),Y(0x3,_0x14bfc1(_0x13b053)),Y(0x4,_0x14bfc1(_0x1b88b8))],fa);var pa=class extends _0x35d449{constructor(_0x41aa74,_0x266533){const _0x34e328=_0x196d4a;super(_0x41aa74,_0x266533),q(this,_0x34e328(0x306),null),q(this,_0x34e328(0x140),null),q(this,_0x34e328(0x204),null),q(this,_0x34e328(0x19d),null),q(this,'_isStartConnectorPoint',!0x1),_0x266533&&this[_0x34e328(0x2c3)](_0x266533);}['getDrawingSearch'](){const _0x1ed2e1=_0x196d4a;return{'unitId':this[_0x1ed2e1(0x204)],'subUnitId':this[_0x1ed2e1(0x19d)],'drawingId':this['_shapeId']};}[_0x196d4a(0x2c3)](_0x5f2408){const _0x5a3fe1=_0x196d4a;_0x5f2408[_0x5a3fe1(0x26c)]!==void 0x0&&(this[_0x5a3fe1(0x306)]=_0x5f2408[_0x5a3fe1(0x26c)]),_0x5f2408[_0x5a3fe1(0x263)]!==void 0x0&&(this[_0x5a3fe1(0x204)]=_0x5f2408[_0x5a3fe1(0x263)]),_0x5f2408['subUnitId']!==void 0x0&&(this[_0x5a3fe1(0x19d)]=_0x5f2408[_0x5a3fe1(0x2f3)]),_0x5f2408[_0x5a3fe1(0x343)]!==void 0x0&&(this[_0x5a3fe1(0x312)]=_0x5f2408[_0x5a3fe1(0x343)]),this['transformByState']({'width':_0x5f2408[_0x5a3fe1(0x2df)],'height':_0x5f2408[_0x5a3fe1(0x2b9)]});}[_0x196d4a(0x236)](_0x9803c0){const _0x5dd68d=_0x196d4a;_0x37d975['drawWith'](_0x9803c0,{'radius':_0x1a4d77[_0x5dd68d(0x243)],'fill':_0x1a4d77['cxnPointFill'],'stroke':_0x1a4d77['cxnPointStroke'],'strokeWidth':_0x1a4d77['cxnPointStrokeWidth'],'evented':!0x0});}};let ma=class extends _0x116f11{constructor(_0x549cfc,_0x499726,_0x42ac1d,_0x3a1495,_0x12de68,_0x2c4e85,_0x269b38,_0xbb69f5){const _0x47e3a4=_0x196d4a;super(),this['_context']=_0x549cfc,this[_0x47e3a4(0x232)]=_0x499726,this['_renderManagerService']=_0x42ac1d,this[_0x47e3a4(0x23e)]=_0x3a1495,this[_0x47e3a4(0x17a)]=_0x12de68,this['_sheetsShapeService']=_0x2c4e85,this[_0x47e3a4(0x33e)]=_0x269b38,this['_sheetBasicShapeConnectionPointController']=_0xbb69f5,q(this,'_activeShapeId',void 0x0),q(this,_0x47e3a4(0x204),void 0x0),q(this,_0x47e3a4(0x19d),void 0x0),q(this,'_connectorObjects',[]),q(this,_0x47e3a4(0x315),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x47e3a4(0x1ef),void 0x0),q(this,'_isConnecting',!0x1),q(this,_0x47e3a4(0x10e),!0x1),q(this,_0x47e3a4(0x1c7),!0x1),q(this,_0x47e3a4(0x28a),void 0x0),q(this,_0x47e3a4(0x2a4),void 0x0),q(this,_0x47e3a4(0x10b),null),this[_0x47e3a4(0x282)]();}[_0x196d4a(0x282)](){const _0x649924=_0x196d4a;this['_registerDrawingFocusChangeHandler'](),this[_0x649924(0x1a2)]();}['_getDrawingRect'](){const _0x193553=_0x196d4a;if(!this[_0x193553(0x204)]||!this[_0x193553(0x19d)]||!this[_0x193553(0x2fb)])return;let _0x2afe71={'unitId':this['_unitId'],'subUnitId':this[_0x193553(0x19d)],'drawingId':this[_0x193553(0x2fb)]},{transform:_0x382102}=this[_0x193553(0x23e)][_0x193553(0xc7)](_0x2afe71);if(_0x382102)return{'left':_0x382102[_0x193553(0x158)]||0x0,'top':_0x382102[_0x193553(0x324)]||0x0,'width':_0x382102[_0x193553(0x2df)]||0x0,'height':_0x382102[_0x193553(0x2b9)]||0x0,'flipX':_0x382102[_0x193553(0x362)]||!0x1,'flipY':_0x382102['flipY']||!0x1,'angle':_0x382102[_0x193553(0x237)]};}['_addShapeConnectorHandlerObjects'](){const _0x414873=_0x196d4a;if(this[_0x414873(0x204)]===void 0x0||this[_0x414873(0x19d)]===void 0x0||this[_0x414873(0x2fb)]===void 0x0)return;let _0xe8944e=this[_0x414873(0x1b7)][_0x414873(0xd7)](this[_0x414873(0x204)]);if(!_0xe8944e||!_0xe8944e[_0x414873(0x2a0)](_0x7b1452)[_0x414873(0x260)]())return;let {scene:_0x5146dc}=_0xe8944e,_0x737052=this[_0x414873(0x2a9)]();if(!_0x737052)return;let _0x13ce11=this['_sheetsShapeService'][_0x414873(0xe6)](this[_0x414873(0x204)],this[_0x414873(0x19d)],this['_activeShapeId']);if(!_0x13ce11||!_0x22e615(_0x13ce11[_0x414873(0x197)]()))return;let _0x58ff5b=_0x13ce11[_0x414873(0x1ee)]();if(_0x58ff5b[_0x414873(0x1bc)]<0x2)return;let _0x5a0366=new _0x178dd8(_0x737052),_0x5321b0=_0x58ff5b[0x0],_0x34057c=_0x58ff5b[_0x58ff5b[_0x414873(0x1bc)]-0x1],_0x52017a=_0x5a0366[_0x414873(0x36d)](_0x5321b0),_0x2b3c40=_0x5a0366['localToWorld'](_0x34057c);this['_addShapeConnectorHandlerObject'](_0x5146dc,{..._0x52017a},!0x0),this[_0x414873(0x16c)](_0x5146dc,{..._0x2b3c40},!0x1);}[_0x196d4a(0x16c)](_0x5b0a90,_0x5c160a,_0x12898c){const _0x599af5=_0x196d4a;if(this[_0x599af5(0x2fb)]===void 0x0||this[_0x599af5(0x204)]===void 0x0||this[_0x599af5(0x19d)]===void 0x0)return;let _0x504f7a='connector-handler-'+this['_unitId']+'-'+this[_0x599af5(0x19d)]+'-'+this[_0x599af5(0x2fb)]+'-'+(_0x12898c?'start':_0x599af5(0x21f)),_0x297143=_0x5b0a90[_0x599af5(0x2b5)](_0x504f7a);if(_0x297143){_0x297143[_0x599af5(0x2a2)]({'left':_0x5c160a['x']-_0x1a4d77[_0x599af5(0x243)],'top':_0x5c160a['y']-_0x1a4d77['cxnPointRadius']});return;}let _0x49211b=new pa(_0x504f7a,{'left':_0x5c160a['x']-_0x1a4d77[_0x599af5(0x243)],'top':_0x5c160a['y']-_0x1a4d77[_0x599af5(0x243)],'shapeId':this[_0x599af5(0x2fb)],'unitId':this[_0x599af5(0x204)],'subUnitId':this[_0x599af5(0x19d)],'isStartConnectorPoint':_0x12898c,'width':_0x1a4d77[_0x599af5(0x243)]*0x2,'height':_0x1a4d77[_0x599af5(0x243)]*0x2,'zIndex':_0x22b3ea+0x1,'evented':!0x0});this[_0x599af5(0x144)][_0x599af5(0x2b7)](_0x49211b),this['_attachConnectorObjectEvent'](_0x49211b,_0x5b0a90,_0x12898c),_0x5b0a90[_0x599af5(0xea)](_0x49211b,_0x22b3ea+0x1);}[_0x196d4a(0xc5)](_0x4105cf,_0x5cd41f){const _0x1b99ba=_0x196d4a;var _0x2a152d;let _0x5cf04a={'x':0x0,'y':0x0};if(!_0x4105cf||!_0x5cd41f)return _0x5cf04a;let _0x3bda6c=this[_0x1b99ba(0x1b7)]['getRenderUnitById'](_0x4105cf);if(!_0x3bda6c||!_0x3bda6c['with'](_0x7b1452)[_0x1b99ba(0x1b1)](_0x5cd41f))return _0x5cf04a;let _0x1a79bf=_0x3bda6c[_0x1b99ba(0x2a0)](_0x538622),_0x5cc4fe=_0x1a79bf==null?void 0x0:_0x1a79bf[_0x1b99ba(0xd8)]();if(!_0x5cc4fe)return _0x5cf04a;let _0x320cdb=(_0x2a152d=this['_univerInstanceService']['getUnit'](_0x4105cf))==null?void 0x0:_0x2a152d[_0x1b99ba(0x1f0)](_0x5cd41f);if(!_0x320cdb)return _0x5cf04a;let _0x2315cd=_0x2e8aa3(_0x5cc4fe[_0x1b99ba(0xed)],_0x5cc4fe[_0x1b99ba(0x10c)],_0x3bda6c['scene'],_0x320cdb);return _0x2315cd?{'x':_0x2315cd[_0x1b99ba(0x1ae)],'y':_0x2315cd[_0x1b99ba(0x1d5)]}:_0x5cf04a;}['_getZoomRatio'](_0x4dc968,_0x2ae9e3){const _0x2660ec=_0x196d4a;var _0x22ef63;let _0x1fa5ab=(_0x22ef63=this[_0x2660ec(0x17a)][_0x2660ec(0x2da)](_0x4dc968))==null?void 0x0:_0x22ef63[_0x2660ec(0x1f0)](_0x2ae9e3);return(_0x1fa5ab==null?void 0x0:_0x1fa5ab[_0x2660ec(0x2fa)]())??0x1;}[_0x196d4a(0x340)](_0x18094f,_0x28d08a,_0x3afb2d,_0x255d9a,_0x5f422b){const _0x20c80c=_0x196d4a;this[_0x20c80c(0x28a)][_0x20c80c(0x33c)](),this[_0x20c80c(0x2a4)]['unsubscribe'](),this[_0x20c80c(0x33e)][_0x20c80c(0x269)]();let _0x262b6b=this[_0x20c80c(0x10b)];this['_sheetBasicShapeConnectionPointController'][_0x20c80c(0x2d2)]();let _0x386a42=this[_0x20c80c(0xc5)](this[_0x20c80c(0x204)],this[_0x20c80c(0x19d)]),_0x222506=this[_0x20c80c(0x20c)](this['_unitId'],this[_0x20c80c(0x19d)]),_0x3b00fd={'x':_0x3afb2d[_0x20c80c(0x203)]/_0x222506+_0x386a42['x'],'y':_0x3afb2d[_0x20c80c(0x302)]/_0x222506+_0x386a42['y']},_0x191631=_0x262b6b?_0x262b6b[_0x20c80c(0x245)]:_0x3b00fd,_0x1d7a6f=_0x255d9a?this[_0x20c80c(0x1ef)]['getEndConnectInfo']():this[_0x20c80c(0x1ef)][_0x20c80c(0xc9)](),_0x288e44=this['_activeShapeModel']['getShapeType']();_0x1d7a6f?this['_handleConnectedEndpointPointerUp'](_0x1d7a6f,_0x191631,_0x255d9a,_0x262b6b,_0x5f422b):this[_0x20c80c(0x1cf)](_0x28d08a,_0x191631,_0x255d9a,_0x262b6b,_0x5f422b,_0x288e44),this[_0x20c80c(0x1ff)]=!0x1,this[_0x20c80c(0x1c7)]=!0x1,this[_0x20c80c(0x10b)]=null,_0x18094f[_0x20c80c(0x38a)]();}['_handleFreeEndpointPointerUp'](_0x59dd7b,_0x2d3961,_0xf3a06f,_0x25b6fa,_0x3d88ea,_0x11600d){const _0x2a7d9c=_0x196d4a;let _0x32082b=_0x11600d===_0xc016ca[_0x2a7d9c(0x265)]||_0x11600d===_0xc016ca['StraightConnector1'],_0x59e7e6=_0xf3a06f?_0x2d3961:_0x59dd7b,_0x44e707=_0xf3a06f?_0x59dd7b:_0x2d3961,_0x1209ba=this[_0x2a7d9c(0x1ef)]['getConnectorLinePoints'](),_0x313ba=this[_0x2a7d9c(0x1ef)][_0x2a7d9c(0x197)](),_0x32a07a=_0x18c946(_0x313ba),_0x1d1023=_0x178dd8[_0x2a7d9c(0xd0)](_0x1209ba,_0x32a07a),_0x498bbe=_0x32082b?_0x178dd8[_0x2a7d9c(0x1d6)](_0x59e7e6,_0x44e707):_0x178dd8[_0x2a7d9c(0x165)](_0x59dd7b,_0x2d3961,_0xf3a06f,_0x1d1023);_0x25b6fa?this[_0x2a7d9c(0x1c8)](_0x498bbe,_0x25b6fa,_0xf3a06f,_0x3d88ea):this[_0x2a7d9c(0x155)](_0x498bbe,_0x3d88ea);}['_handleConnectedEndpointPointerUp'](_0x46b27d,_0xb2944d,_0x6fa78a,_0x5cb16b,_0x55ce72){const _0x55d89d=_0x196d4a;let _0x5cc5bb=this[_0x55d89d(0x363)](_0x46b27d);if(!_0x5cc5bb)return;let _0x5c7433=_0x5cb16b?_0x5cb16b[_0x55d89d(0x237)]:this[_0x55d89d(0x24d)](_0x5cc5bb[_0x55d89d(0x1da)],_0xb2944d),_0x3daaa0;if(_0x5cb16b){let _0x1367b0=this[_0x55d89d(0x23e)][_0x55d89d(0xc7)]({'unitId':_0x5cb16b[_0x55d89d(0x263)],'subUnitId':_0x5cb16b[_0x55d89d(0x2f3)],'drawingId':_0x5cb16b[_0x55d89d(0x26c)]});if(_0x1367b0!=null&&_0x1367b0[_0x55d89d(0x311)]){let {left:_0xd332c1=0x0,top:_0x75da09=0x0,width:_0x2caac2=0x0,height:_0x3d10=0x0,angle:_0x3cfbf4}=_0x1367b0[_0x55d89d(0x311)];_0x3daaa0=_0x5c6439({'left':_0xd332c1,'top':_0x75da09,'width':_0x2caac2,'height':_0x3d10},_0x3cfbf4||0x0);}else _0x3daaa0={'left':_0xb2944d['x'],'top':_0xb2944d['y'],'width':0x0,'height':0x0};}else _0x3daaa0={'left':_0xb2944d['x'],'top':_0xb2944d['y'],'width':0x0,'height':0x0};let _0x1048cd={'point':_0xb2944d,'angle':_0x5c7433,'bounds':_0x3daaa0},_0x46ed0f=_0x6fa78a?_0x1048cd:_0x5cc5bb,_0x18877c=_0x6fa78a?_0x5cc5bb:_0x1048cd,_0x3af8c5=this[_0x55d89d(0x1ef)][_0x55d89d(0x197)](),_0x29c3c5=_0x527e88(_0x46ed0f,_0x18877c,_0x3af8c5);this[_0x55d89d(0x1ef)]['removeLinePoints']();let _0x51116f=_0x2c4018(_0x29c3c5,_0x3af8c5);_0x5cb16b?this[_0x55d89d(0x14e)](_0x51116f,_0x5cb16b,_0x46b27d,_0x6fa78a,_0x55ce72):this[_0x55d89d(0x271)](_0x51116f,_0x46b27d,_0x6fa78a,_0x55ce72);}['_executeConnectionCommand'](_0x46be16,_0x4e49c8,_0x168720,_0x4aa1ea){const _0x486c02=_0x196d4a;let _0x2c3688=this[_0x486c02(0x1ef)][_0x486c02(0x1db)]()[_0x486c02(0x27a)],_0x526315={..._0x2c3688},_0x1b2667={'shapeId':_0x4e49c8['shapeId'],'cxnIndex':_0x4e49c8[_0x486c02(0x196)]};_0x168720?_0x526315[_0x486c02(0x1e6)]=_0x1b2667:_0x526315['to']=_0x1b2667;let _0x110901=this[_0x486c02(0x1ef)]['getShapeType'](),_0x42a19e=_0x2c4018(_0x46be16[_0x486c02(0x20b)],_0x110901),_0x4f8362={'unitId':this[_0x486c02(0x204)],'subUnitId':this[_0x486c02(0x19d)],'connectorShapeId':this[_0x486c02(0x2fb)],'width':_0x46be16[_0x486c02(0x283)][_0x486c02(0x2df)],'height':_0x46be16[_0x486c02(0x283)][_0x486c02(0x2b9)],'left':_0x46be16[_0x486c02(0x283)][_0x486c02(0x158)],'top':_0x46be16[_0x486c02(0x283)][_0x486c02(0x324)],'flipX':_0x46be16[_0x486c02(0x283)][_0x486c02(0x362)]||!0x1,'flipY':_0x46be16[_0x486c02(0x283)][_0x486c02(0x1ac)]||!0x1,'newAdjustValues':_0x42a19e[_0x486c02(0xd5)],'oldAdjustValues':_0x4aa1ea,'oldRelation':_0x2c3688,'newRelation':_0x526315,'newLineType':_0x42a19e[_0x486c02(0x18f)],'oldLineType':_0x110901};this['_commandService'][_0x486c02(0x152)](_0x31e366['id'],_0x4f8362);}['_executeResizeCommand'](_0x20c949,_0x45ed69){const _0x208506=_0x196d4a;let _0x402981=this[_0x208506(0x1ef)][_0x208506(0x197)](),_0x24ff39=_0x2c4018(_0x20c949[_0x208506(0x20b)],_0x402981),_0x517c07={'unitId':this[_0x208506(0x204)],'subUnitId':this[_0x208506(0x19d)],'shapeId':this[_0x208506(0x2fb)],'width':_0x20c949[_0x208506(0x283)][_0x208506(0x2df)],'height':_0x20c949['worldRect'][_0x208506(0x2b9)],'left':_0x20c949['worldRect'][_0x208506(0x158)],'top':_0x20c949[_0x208506(0x283)]['top'],'flipX':_0x20c949['worldRect'][_0x208506(0x362)]||!0x1,'flipY':_0x20c949[_0x208506(0x283)][_0x208506(0x1ac)]||!0x1,'angle':_0x20c949['worldRect']['angle']||0x0,'newAdjustValues':_0x24ff39[_0x208506(0xd5)],'oldAdjustValues':_0x45ed69,'newLineType':_0x24ff39[_0x208506(0x18f)],'oldLineType':_0x402981};this['_commandService']['executeCommand'](_0x402c2c['id'],_0x517c07);}[_0x196d4a(0x14e)](_0x33fc37,_0x2fabed,_0x4f49e9,_0x198193,_0x473084){const _0xce492d=_0x196d4a;let _0x110fc2=this['_activeShapeModel'][_0xce492d(0x1db)]()['relation'],_0x3c3310={..._0x110fc2},_0x44291a={'shapeId':_0x2fabed[_0xce492d(0x26c)],'cxnIndex':_0x2fabed[_0xce492d(0x196)]};_0x198193?(_0x3c3310[_0xce492d(0x1e6)]=_0x44291a,_0x3c3310['to']=_0x4f49e9):(_0x3c3310[_0xce492d(0x1e6)]=_0x4f49e9,_0x3c3310['to']=_0x44291a);let _0x3604b4={'unitId':this['_unitId'],'subUnitId':this[_0xce492d(0x19d)],'connectorShapeId':this[_0xce492d(0x2fb)],'width':_0x33fc37[_0xce492d(0x283)][_0xce492d(0x2df)],'height':_0x33fc37[_0xce492d(0x283)]['height'],'left':_0x33fc37[_0xce492d(0x283)][_0xce492d(0x158)],'top':_0x33fc37['worldRect'][_0xce492d(0x324)],'flipX':_0x33fc37[_0xce492d(0x283)]['flipX']||!0x1,'flipY':_0x33fc37[_0xce492d(0x283)][_0xce492d(0x1ac)]||!0x1,'oldAdjustValues':_0x473084,'newAdjustValues':_0x33fc37[_0xce492d(0xd5)],'newLineType':_0x33fc37[_0xce492d(0x18f)],'rotation':_0x33fc37[_0xce492d(0x249)],'oldRelation':_0x110fc2,'newRelation':_0x3c3310};this['_commandService'][_0xce492d(0x152)](_0x31e366['id'],_0x3604b4);}[_0x196d4a(0x271)](_0x5f5135,_0x26555b,_0x1b4b33,_0x5db25f){const _0x456fef=_0x196d4a;let _0x2c5aed=this[_0x456fef(0x1ef)][_0x456fef(0x1db)]()[_0x456fef(0x27a)],_0x545636={};_0x1b4b33?(_0x545636['to']=_0x26555b,_0x545636[_0x456fef(0x1e6)]=void 0x0):(_0x545636['from']=_0x26555b,_0x545636['to']=void 0x0);let _0x4e51e8={'unitId':this[_0x456fef(0x204)],'subUnitId':this[_0x456fef(0x19d)],'connectorShapeId':this[_0x456fef(0x2fb)],'width':_0x5f5135['worldRect'][_0x456fef(0x2df)],'height':_0x5f5135[_0x456fef(0x283)]['height'],'left':_0x5f5135[_0x456fef(0x283)][_0x456fef(0x158)],'top':_0x5f5135[_0x456fef(0x283)][_0x456fef(0x324)],'flipX':_0x5f5135[_0x456fef(0x283)][_0x456fef(0x362)]||!0x1,'flipY':_0x5f5135[_0x456fef(0x283)][_0x456fef(0x1ac)]||!0x1,'oldAdjustValues':_0x5db25f,'newAdjustValues':_0x5f5135[_0x456fef(0xd5)],'newLineType':_0x5f5135[_0x456fef(0x18f)],'rotation':_0x5f5135['rotation'],'oldRelation':_0x2c5aed,'newRelation':_0x545636};this[_0x456fef(0x232)][_0x456fef(0x152)](_0x31e366['id'],_0x4e51e8);}[_0x196d4a(0x1ca)](_0x12e187,_0xdf7628,_0x140dfd){const _0x8f70f=_0x196d4a;this[_0x8f70f(0x335)](_0x46ac89(_0x12e187[_0x8f70f(0x2ff)][_0x8f70f(0xcf)]((_0x4809d6,_0x480263)=>{const _0x59ed30=_0x8f70f;let _0x1e69e2=_0x12e187[_0x59ed30(0x35c)]();if(this[_0x59ed30(0x1ef)]=this[_0x59ed30(0x309)]['getShapeModel'](_0x1e69e2[_0x59ed30(0x263)],_0x1e69e2[_0x59ed30(0x2f3)],_0x1e69e2['drawingId']),!this[_0x59ed30(0x1ef)])return;let _0x31e5ef={};this[_0x59ed30(0x1ef)][_0x59ed30(0x192)]()[_0x59ed30(0x326)](_0x140c4a=>{const _0x16f7aa=_0x59ed30;let _0x1d6f82=this[_0x16f7aa(0x1ef)][_0x16f7aa(0x134)](_0x140c4a);_0x1d6f82!==void 0x0&&(_0x31e5ef[_0x140c4a]=_0x1d6f82);});let _0xb6a45b=this[_0x59ed30(0x2a9)]();if(!_0xb6a45b)return;this[_0x59ed30(0x315)]={..._0xb6a45b};let _0x29e7c4=new _0x178dd8(this[_0x59ed30(0x315)]),_0x508503=_0x934411({'unitId':this[_0x59ed30(0x204)],'subUnitId':this[_0x59ed30(0x19d)],'drawingId':this[_0x59ed30(0x2fb)]}),_0x13c80f=_0xdf7628[_0x59ed30(0x2b5)](_0x508503);this[_0x59ed30(0x1ff)]=!0x0,_0xdf7628[_0x59ed30(0x2de)](),this[_0x59ed30(0x371)][_0x59ed30(0x347)](_0xdf7628,this[_0x59ed30(0x204)],this[_0x59ed30(0x19d)],this[_0x59ed30(0x2fb)]),this['_currentConnectionTarget']=null;let _0x1e0459=this[_0x59ed30(0x1ef)][_0x59ed30(0x1ee)](),_0x59e5a4=_0x1e0459[0x0],_0x700823=_0x1e0459[_0x1e0459['length']-0x1],_0x45f38f=_0x140dfd?_0x29e7c4[_0x59ed30(0x36d)](_0x700823):_0x29e7c4['localToWorld'](_0x59e5a4);this['_cxtHandlerPointerMove']=_0xdf7628['onPointerMove$'][_0x59ed30(0xcf)]((_0x537959,_0x2f46d2)=>{const _0x451e80=_0x59ed30;if(!this['_isConnecting']||!this[_0x451e80(0x1ef)])return;this['_hasReset']||=(this[_0x451e80(0x33e)][_0x451e80(0xca)](),this[_0x451e80(0x1ef)][_0x451e80(0x2ac)](),!0x0);let _0x413b29=this['_getScrollInfo'](this[_0x451e80(0x204)],this[_0x451e80(0x19d)]),_0x34b842=this[_0x451e80(0x20c)](this[_0x451e80(0x204)],this[_0x451e80(0x19d)]),_0x3d1147={'x':_0x537959[_0x451e80(0x203)]/_0x34b842+_0x413b29['x'],'y':_0x537959['offsetY']/_0x34b842+_0x413b29['y']},_0x51a513=this[_0x451e80(0x371)][_0x451e80(0x239)](_0x3d1147);if(_0x51a513){let {shapeId:_0xd865e9,unitId:_0x15ede5,subUnitId:_0x57afb4}=_0x51a513;if(_0xd865e9&&_0x15ede5&&_0x57afb4){let _0xf3133c=_0x934411({'unitId':_0x15ede5,'subUnitId':_0x57afb4,'drawingId':_0xd865e9});_0x51a513[_0x451e80(0x237)]=(_0xdf7628[_0x451e80(0x2b5)](_0xf3133c)['angle']||0x0)+_0x51a513[_0x451e80(0x237)];}}this[_0x451e80(0x10b)]=_0x51a513;let _0x23e561=_0x140dfd?this['_activeShapeModel'][_0x451e80(0x337)]():this[_0x451e80(0x1ef)][_0x451e80(0xc9)]();if(_0x23e561){this[_0x451e80(0x1d2)](_0x23e561,_0x3d1147,_0x140dfd,_0x13c80f,_0x12e187);return;}this['_handleFreeEndpointMove'](_0x3d1147,_0x45f38f,_0x140dfd,_0x13c80f,_0x12e187);}),this['_cxtHandlerPointerUp']=_0xdf7628['onPointerUp$'][_0x59ed30(0xcf)]((_0x4ac662,_0x3ab0a6)=>{const _0x5779e6=_0x59ed30;this[_0x5779e6(0x340)](_0xdf7628,_0x45f38f,_0x4ac662,_0x140dfd,_0x31e5ef);}),_0x480263[_0x59ed30(0x2fc)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x2072b2,_0x344e5b,_0x76311){const _0x6b89b1=_0x196d4a;let _0x1d904b=this[_0x6b89b1(0x309)][_0x6b89b1(0x37f)](_0x2072b2,_0x344e5b,_0x76311);if(!_0x1d904b||_0x1d904b[_0x6b89b1(0x1bc)]===0x0)return;let _0x1e1678=this['_renderManagerService'][_0x6b89b1(0xd7)](_0x2072b2);if(!_0x1e1678)return;let {scene:_0x1a734c}=_0x1e1678;for(let _0x404862 of _0x1d904b){let _0xaea259=_0x404862[_0x6b89b1(0x348)],_0x17b1fa=this[_0x6b89b1(0x309)][_0x6b89b1(0xe6)](_0x2072b2,_0x344e5b,_0xaea259);if(!_0x17b1fa)continue;let _0x4a6d48=_0x17b1fa[_0x6b89b1(0xc9)](),_0x455944=_0x17b1fa[_0x6b89b1(0x337)](),_0xb1c064=(_0x4a6d48==null?void 0x0:_0x4a6d48[_0x6b89b1(0x26c)])===_0x76311,_0x31cb5b=_0x934411({'unitId':_0x2072b2,'subUnitId':_0x344e5b,'drawingId':_0xaea259}),_0x380c83=_0x1a734c[_0x6b89b1(0x2b5)](_0x31cb5b);if(!_0x380c83)continue;let _0x3e93d3=this[_0x6b89b1(0x23e)]['getDrawingByParam']({'unitId':_0x2072b2,'subUnitId':_0x344e5b,'drawingId':_0xaea259});_0x3e93d3!=null&&_0x3e93d3[_0x6b89b1(0x311)]&&(_0x4a6d48&&_0x455944?this[_0x6b89b1(0xfa)](_0x2072b2,_0x344e5b,_0xaea259,_0x17b1fa,_0x4a6d48,_0x455944,_0x380c83):this[_0x6b89b1(0x195)](_0x2072b2,_0x344e5b,_0xaea259,_0x17b1fa,_0xb1c064?_0x4a6d48:_0x455944,_0xb1c064,_0x3e93d3,_0x380c83));}}[_0x196d4a(0xfa)](_0x29f82f,_0x10b619,_0x5d23bb,_0x58b0d1,_0x4aa152,_0x228c5e,_0x2a2594){const _0x578b9f=_0x196d4a;let _0x215f09=this[_0x578b9f(0x204)],_0x57a248=this[_0x578b9f(0x19d)];this[_0x578b9f(0x204)]=_0x29f82f,this[_0x578b9f(0x19d)]=_0x10b619;let _0x2ecdac=this['_getConnectPointInfo'](_0x4aa152),_0x427fbf=this[_0x578b9f(0x363)](_0x228c5e);if(this[_0x578b9f(0x204)]=_0x215f09,this[_0x578b9f(0x19d)]=_0x57a248,!_0x2ecdac||!_0x427fbf)return;let _0x5bc914=_0x58b0d1[_0x578b9f(0x197)](),_0x19655d=_0x527e88(_0x2ecdac,_0x427fbf,_0x5bc914);_0x19655d&&_0x58b0d1[_0x578b9f(0x159)](_0x19655d);let _0x3aa009=_0x2c4018(_0x19655d,_0x5bc914);_0x3aa009[_0x578b9f(0x18f)]!==_0x5bc914&&_0x58b0d1[_0x578b9f(0x21b)](_0x3aa009[_0x578b9f(0x18f)]),_0x58b0d1['clearAdjustValue']();for(let [_0x1da102,_0xc5b3d9]of Object[_0x578b9f(0x383)](_0x3aa009[_0x578b9f(0xd5)]))_0x58b0d1[_0x578b9f(0x1b0)](_0x1da102,_0xc5b3d9);_0x58b0d1[_0x578b9f(0x385)]({'width':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x2df)],'height':_0x3aa009[_0x578b9f(0x283)]['height']}),_0x2a2594[_0x578b9f(0x2a2)]({'flipX':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x362)],'flipY':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x1ac)],'left':_0x3aa009[_0x578b9f(0x283)]['left'],'top':_0x3aa009[_0x578b9f(0x283)]['top'],'width':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x2df)],'height':_0x3aa009[_0x578b9f(0x283)][_0x578b9f(0x2b9)],'angle':_0x3aa009[_0x578b9f(0x249)]}),_0x58b0d1['removeLinePoints']();}[_0x196d4a(0x195)](_0x5e68d1,_0x5d55ed,_0x1d3289,_0x54fb05,_0x2dc97d,_0x50019f,_0x21d42f,_0x4c7405){const _0xdb845f=_0x196d4a;let _0x3473c5=this[_0xdb845f(0x204)],_0x560e33=this[_0xdb845f(0x19d)];this[_0xdb845f(0x204)]=_0x5e68d1,this['_subUnitId']=_0x5d55ed;let _0x4209b2=this[_0xdb845f(0x363)](_0x2dc97d);if(this[_0xdb845f(0x204)]=_0x3473c5,this[_0xdb845f(0x19d)]=_0x560e33,!_0x4209b2)return;let {left:_0x56eb9c=0x0,top:_0x2c5087=0x0,width:_0x58c9f0=0x0,height:_0x3dcf8e=0x0,flipX:_0x19246d=!0x1,flipY:_0x347622=!0x1}=_0x21d42f[_0xdb845f(0x311)],_0x3c5add=_0x54fb05[_0xdb845f(0x1ee)]();if(_0x3c5add['length']<0x2)return;let _0x56eadc=new _0x178dd8({'left':_0x56eb9c,'top':_0x2c5087,'width':_0x58c9f0,'height':_0x3dcf8e,'flipX':_0x19246d,'flipY':_0x347622}),_0x35df27=_0x50019f?_0x3c5add[_0x3c5add[_0xdb845f(0x1bc)]-0x1]:_0x3c5add[0x0],_0x5a784b=_0x56eadc[_0xdb845f(0x36d)](_0x35df27),_0x513d36=_0x178dd8['computeConnectorResizeLayout'](_0x5a784b,_0x4209b2['point'],!_0x50019f);_0x4c7405[_0xdb845f(0x2a2)]({'flipX':_0x513d36['worldRect'][_0xdb845f(0x362)],'flipY':_0x513d36['worldRect']['flipY'],'left':_0x513d36[_0xdb845f(0x283)][_0xdb845f(0x158)],'top':_0x513d36['worldRect'][_0xdb845f(0x324)],'width':_0x513d36[_0xdb845f(0x283)][_0xdb845f(0x2df)],'height':_0x513d36[_0xdb845f(0x283)][_0xdb845f(0x2b9)],'angle':_0x513d36[_0xdb845f(0x283)]['angle']}),_0x4c7405['makeDirty'](!0x0);}[_0x196d4a(0x380)](){const _0x17424b=_0x196d4a;this[_0x17424b(0x144)]['length']!==0x0&&(this['_connectorObjects'][_0x17424b(0x326)](_0x13b842=>{_0x13b842['dispose']();}),this['_connectorObjects']=[]);}[_0x196d4a(0x1a2)](){const _0x1930b4=_0x196d4a;let _0x4252dc=this['_univerInstanceService'][_0x1930b4(0x206)](_0x204504['UNIVER_SHEET']);this[_0x1930b4(0x335)](_0x4252dc[_0x1930b4(0xf5)](_0x111568(_0x40bdc1=>_0x40bdc1?_0x40bdc1[_0x1930b4(0xe2)][_0x1930b4(0xf5)](_0x111568(_0x12ed13=>{const _0x3f4786=_0x1930b4;if(!_0x12ed13)return _0x929a31;let _0x1dbf78=_0x40bdc1['getUnitId'](),_0xe8a686=this[_0x3f4786(0x1b7)][_0x3f4786(0xd7)](_0x1dbf78),_0x440cdb=_0xe8a686==null?void 0x0:_0xe8a686[_0x3f4786(0x142)];return _0x440cdb?_0x322e8d(_0x440cdb):_0x929a31;})):_0x929a31))[_0x1930b4(0x1ab)](_0x3e5f51=>{const _0x43b007=_0x1930b4;let _0x3c3b61=_0x3e5f51['getTransformerByCreate']();this[_0x43b007(0x335)](_0x3e5f51['onPointerMove$'][_0x43b007(0xcf)](_0x5d2e22=>{const _0x12e37d=_0x43b007;this['_isDrawingShapePointDown']&&this[_0x12e37d(0x2fb)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x43b007(0x335)](_0x3c3b61[_0x43b007(0x115)][_0x43b007(0x1ab)](_0x498963=>{const _0x960c46=_0x43b007;let {objects:_0x5bfa2b}=_0x498963;this[_0x960c46(0x380)](),_0x5bfa2b!==null&&_0x5bfa2b['size']===0x1&&_0x5bfa2b[_0x960c46(0x126)]()[_0x960c46(0x116)]()['value']instanceof J&&(this[_0x960c46(0x10e)]=!0x0);})),this[_0x43b007(0x335)](_0x3c3b61[_0x43b007(0x2eb)]['subscribe'](_0x528a34=>{const _0x45a773=_0x43b007;this[_0x45a773(0x10e)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x43b007(0x335)](_0x3e5f51[_0x43b007(0x2a1)][_0x43b007(0xcf)](()=>{const _0x42d879=_0x43b007;this[_0x42d879(0x10e)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x42d879(0x387)]());})),this[_0x43b007(0x335)](_0x3c3b61['changeEnd$']['subscribe'](()=>{const _0x2823bd=_0x43b007;this[_0x2823bd(0x204)]&&this[_0x2823bd(0x19d)]&&this[_0x2823bd(0x2fb)]&&this['_drawingManagerService'][_0x2823bd(0xc7)]({'unitId':this[_0x2823bd(0x204)],'subUnitId':this[_0x2823bd(0x19d)],'drawingId':this['_activeShapeId']})&&(this[_0x2823bd(0x380)](),this[_0x2823bd(0x387)]());}));}));}[_0x196d4a(0x183)](){const _0x30f60f=_0x196d4a;this[_0x30f60f(0x335)](this['_drawingManagerService'][_0x30f60f(0x107)]['subscribe'](_0x4a3681=>{const _0x3ae892=_0x30f60f;if(_0x4a3681[_0x3ae892(0x1bc)]===0x1){let _0x464b36=_0x4a3681[0x0];if(_0x464b36[_0x3ae892(0x27b)]===_0x123aa0[_0x3ae892(0x323)]){let _0x3ee8f1=this['_sheetsShapeService'][_0x3ae892(0xe6)](_0x464b36['unitId'],_0x464b36[_0x3ae892(0x2f3)],_0x464b36[_0x3ae892(0x14c)]);if(_0x3ee8f1&&_0x22e615(_0x3ee8f1[_0x3ae892(0x197)]())){this[_0x3ae892(0x2fb)]=_0x464b36[_0x3ae892(0x14c)],this[_0x3ae892(0x204)]=_0x464b36['unitId'],this[_0x3ae892(0x19d)]=_0x464b36[_0x3ae892(0x2f3)],this['_clearShapeConnectorHandlerObjects'](),this[_0x3ae892(0x387)]();return;}}}this[_0x3ae892(0x2fb)]=void 0x0,this['_unitId']=void 0x0,this[_0x3ae892(0x19d)]=void 0x0,this[_0x3ae892(0x380)]();})),this[_0x30f60f(0x335)](this[_0x30f60f(0x23e)][_0x30f60f(0x131)]['subscribe'](_0x6ab38=>{const _0x2a466e=_0x30f60f;if(_0x6ab38['length']===0x1){var _0x5c979b;let _0x378ac4=_0x6ab38[0x0],_0x57d7d6=(_0x5c979b=this['_drawingManagerService'][_0x2a466e(0xc7)](_0x378ac4))==null?void 0x0:_0x5c979b[_0x2a466e(0x27b)];_0x57d7d6===_0x123aa0[_0x2a466e(0x323)]&&_0x378ac4[_0x2a466e(0x14c)]===this[_0x2a466e(0x2fb)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x2a466e(0x387)]()):!this[_0x2a466e(0x2fb)]&&_0x57d7d6===_0x123aa0[_0x2a466e(0x323)]&&this[_0x2a466e(0x354)](_0x378ac4['unitId'],_0x378ac4[_0x2a466e(0x2f3)],_0x378ac4['drawingId']);}})),this['disposeWithMe'](this[_0x30f60f(0x23e)][_0x30f60f(0x10d)][_0x30f60f(0x1ab)](_0x4e9ad7=>{const _0x4b69f8=_0x30f60f;for(let _0x58bc22 of _0x4e9ad7){let {drawingId:_0x438959}=_0x58bc22;if(this[_0x4b69f8(0x2fb)]===_0x438959){this[_0x4b69f8(0x16d)]();return;}}}));}[_0x196d4a(0x1d2)](_0xe4215a,_0x3da9e9,_0x1e5891,_0x54dbdd,_0x2ebb81){const _0x57142e=_0x196d4a;var _0x4691d0;if(!this[_0x57142e(0x1ef)])return;let _0x4730b6=this[_0x57142e(0x363)](_0xe4215a);if(!_0x4730b6)return;let _0x2d3ecf=this[_0x57142e(0x10b)]?this[_0x57142e(0x10b)][_0x57142e(0x245)]:_0x3da9e9,_0x351c09=this['_currentConnectionTarget']?this[_0x57142e(0x10b)][_0x57142e(0x237)]:this[_0x57142e(0x24d)](_0x4730b6[_0x57142e(0x1da)],_0x2d3ecf),_0x30d64c;if(this[_0x57142e(0x10b)]){let _0x3e1eaa=this[_0x57142e(0x23e)]['getDrawingByParam']({'unitId':this[_0x57142e(0x10b)][_0x57142e(0x263)],'subUnitId':this['_currentConnectionTarget']['subUnitId'],'drawingId':this[_0x57142e(0x10b)][_0x57142e(0x26c)]});if(_0x3e1eaa!=null&&_0x3e1eaa[_0x57142e(0x311)]){let {left:_0x1d570c=0x0,top:_0x63fc92=0x0,width:_0x30371d=0x0,height:_0x2f46df=0x0,angle:_0x38f932}=_0x3e1eaa[_0x57142e(0x311)];_0x30d64c=_0x5c6439({'left':_0x1d570c,'top':_0x63fc92,'width':_0x30371d,'height':_0x2f46df},_0x38f932||0x0);}else _0x30d64c={'left':_0x2d3ecf['x'],'top':_0x2d3ecf['y'],'width':0x0,'height':0x0};}else _0x30d64c={'left':_0x2d3ecf['x'],'top':_0x2d3ecf['y'],'width':0x0,'height':0x0};let _0x54403={'point':_0x2d3ecf,'angle':_0x351c09,'bounds':_0x30d64c},_0x2bb59f=_0x1e5891?_0x54403:_0x4730b6,_0x389a4a=_0x1e5891?_0x4730b6:_0x54403,_0x468446=this[_0x57142e(0x1ef)][_0x57142e(0x197)](),_0xe45fc4=_0x527e88(_0x2bb59f,_0x389a4a,_0x468446);_0xe45fc4&&this[_0x57142e(0x1ef)]['updateLinePoints'](_0xe45fc4);let _0x20e141=_0x2c4018(_0xe45fc4,_0x468446);_0x20e141[_0x57142e(0x18f)]!==_0x468446&&this[_0x57142e(0x1ef)][_0x57142e(0x21b)](_0x20e141[_0x57142e(0x18f)]);for(let [_0xbc3976,_0xb6107f]of Object[_0x57142e(0x383)](_0x20e141[_0x57142e(0xd5)]))this['_activeShapeModel']['setAdjustValueByName'](_0xbc3976,_0xb6107f);this['_activeShapeModel'][_0x57142e(0x385)]({'width':_0x20e141[_0x57142e(0x283)][_0x57142e(0x2df)],'height':_0x20e141[_0x57142e(0x283)]['height']}),_0x54dbdd[_0x57142e(0x2a2)]({'flipX':_0x20e141[_0x57142e(0x283)]['flipX'],'flipY':_0x20e141['worldRect']['flipY'],'left':_0x20e141[_0x57142e(0x283)]['left'],'top':_0x20e141['worldRect'][_0x57142e(0x324)],'width':_0x20e141[_0x57142e(0x283)][_0x57142e(0x2df)],'height':_0x20e141['worldRect'][_0x57142e(0x2b9)],'angle':_0x20e141['rotation']}),_0x54dbdd[_0x57142e(0xe5)](!0x0);let _0x42fa2c=((_0x4691d0=this[_0x57142e(0x10b)])==null?void 0x0:_0x4691d0['worldPoint'])??_0x3da9e9;_0x2ebb81[_0x57142e(0x2a2)]({'left':_0x42fa2c['x']-_0x1a4d77[_0x57142e(0x243)],'top':_0x42fa2c['y']-_0x1a4d77[_0x57142e(0x243)]});}[_0x196d4a(0x26f)](_0x42dece,_0x2871cf,_0x366d7b,_0x32a140,_0x188480){const _0x2f3e50=_0x196d4a;var _0x403c04,_0x1d89f4;let _0x51cbf9=((_0x403c04=this[_0x2f3e50(0x10b)])==null?void 0x0:_0x403c04[_0x2f3e50(0x245)])??_0x42dece,_0x239d04=_0x178dd8[_0x2f3e50(0x165)](_0x2871cf,_0x51cbf9,_0x366d7b);_0x32a140[_0x2f3e50(0x2a2)]({'flipX':_0x239d04[_0x2f3e50(0x283)][_0x2f3e50(0x362)],'flipY':_0x239d04[_0x2f3e50(0x283)][_0x2f3e50(0x1ac)],'left':_0x239d04['worldRect'][_0x2f3e50(0x158)],'top':_0x239d04[_0x2f3e50(0x283)][_0x2f3e50(0x324)],'width':_0x239d04['worldRect']['width'],'height':_0x239d04['worldRect'][_0x2f3e50(0x2b9)],'angle':_0x239d04[_0x2f3e50(0x283)]['angle']});let _0xef7f98=((_0x1d89f4=this['_currentConnectionTarget'])==null?void 0x0:_0x1d89f4[_0x2f3e50(0x245)])??_0x42dece;_0x188480[_0x2f3e50(0x2a2)]({'left':_0xef7f98['x']-_0x1a4d77[_0x2f3e50(0x243)],'top':_0xef7f98['y']-_0x1a4d77[_0x2f3e50(0x243)]});}[_0x196d4a(0x363)](_0x21de64){const _0x3ad111=_0x196d4a;if(!this[_0x3ad111(0x204)]||!this['_subUnitId'])return null;let {shapeId:_0x1973ac,cxnIndex:_0x3cc75e}=_0x21de64,_0x1f7b51=this[_0x3ad111(0x309)]['getShapeModel'](this[_0x3ad111(0x204)],this[_0x3ad111(0x19d)],_0x1973ac);if(!_0x1f7b51)return null;let _0x4eb74e=this[_0x3ad111(0x23e)][_0x3ad111(0xc7)]({'unitId':this[_0x3ad111(0x204)],'subUnitId':this[_0x3ad111(0x19d)],'drawingId':_0x1973ac});if(!(_0x4eb74e!=null&&_0x4eb74e[_0x3ad111(0x311)]))return null;let {left:_0x275703=0x0,top:_0x230b82=0x0,width:_0x4df241=0x0,height:_0x48d18c=0x0,flipX:_0x1716ee=!0x1,flipY:_0x503c52=!0x1,angle:_0x17eb2f}=_0x4eb74e[_0x3ad111(0x311)];_0x1f7b51[_0x3ad111(0x385)]({'width':_0x4df241,'height':_0x48d18c});let _0x3f8a24=_0x1f7b51['getConnectionSiteList']()[_0x3ad111(0x10a)](_0x1fb526=>_0x1fb526[_0x3ad111(0x2db)]===_0x3cc75e);if(!_0x3f8a24)return null;let _0x15a78b=_0x1716ee?_0x4df241-_0x3f8a24['x']:_0x3f8a24['x'],_0x301a8d=_0x503c52?_0x48d18c-_0x3f8a24['y']:_0x3f8a24['y'];if(_0x17eb2f!==0x0&&_0x17eb2f!=null){let _0x41a76a=_0x17eb2f*Math['PI']/0xb4,_0x487020=Math[_0x3ad111(0x17b)](_0x41a76a),_0x3c0e57=Math[_0x3ad111(0x1dc)](_0x41a76a),_0x522f15=_0x4df241/0x2,_0x4726d6=_0x48d18c/0x2,_0x3f85b9=_0x15a78b-_0x522f15,_0x1e753b=_0x301a8d-_0x4726d6;_0x15a78b=_0x522f15+_0x3f85b9*_0x487020-_0x1e753b*_0x3c0e57,_0x301a8d=_0x4726d6+_0x3f85b9*_0x3c0e57+_0x1e753b*_0x487020;}_0x15a78b+=_0x275703,_0x301a8d+=_0x230b82;let _0x2ccd5e=_0x3f8a24[_0x3ad111(0x35e)]/0xea60;_0x1716ee&&(_0x2ccd5e=0xb4-_0x2ccd5e),_0x503c52&&(_0x2ccd5e=-_0x2ccd5e),_0x2ccd5e+=_0x17eb2f||0x0,_0x2ccd5e=(_0x2ccd5e%0x168+0x168)%0x168;let _0x44f00b=_0x5c6439({'left':_0x275703,'top':_0x230b82,'width':_0x4df241,'height':_0x48d18c},_0x17eb2f||0x0);return{'point':{'x':_0x15a78b,'y':_0x301a8d},'angle':_0x2ccd5e,'bounds':_0x44f00b};}['_calculateFreeEndpointAngle'](_0x348d78,_0x5e8905){const _0x3039f5=_0x196d4a;let _0x15b36c=_0x5e8905['x']-_0x348d78['x'],_0x30822d=_0x5e8905['y']-_0x348d78['y'];return Math['abs'](_0x15b36c)>=Math[_0x3039f5(0x372)](_0x30822d)?_0x15b36c>=0x0?0xb4:0x0:_0x30822d>=0x0?0x10e:0x5a;}['_reset'](){const _0x52d696=_0x196d4a;this[_0x52d696(0x2fb)]=void 0x0,this[_0x52d696(0x204)]=void 0x0,this[_0x52d696(0x19d)]=void 0x0,this[_0x52d696(0x380)]();}[_0x196d4a(0x1cc)](){const _0x40732e=_0x196d4a;this[_0x40732e(0x380)](),super[_0x40732e(0x1cc)]();}};ma=X([Y(0x1,_0x153d8f),Y(0x2,_0x4dadf2),Y(0x3,_0x446eb2),Y(0x4,_0x46c185),Y(0x5,_0x14bfc1(_0x13b053)),Y(0x6,_0x14bfc1(Pr)),Y(0x7,_0x14bfc1(da))],ma);let ha=class extends _0x116f11{constructor(_0x4d9627,_0x25861d,_0x292c26){const _0x4bd750=_0x196d4a;super(),this[_0x4bd750(0x178)]=_0x4d9627,this[_0x4bd750(0x23e)]=_0x25861d,this[_0x4bd750(0x273)]=_0x292c26,this[_0x4bd750(0x1f2)]();}['_initPrinting'](){const _0x14314e=_0x196d4a;this[_0x14314e(0x335)](this[_0x14314e(0x178)][_0x14314e(0x2b8)][_0x14314e(0x34c)](this['_sheetPrintInterceptorService'][_0x14314e(0x2b8)][_0x14314e(0x2f5)]()[_0x14314e(0x23c)],{'handler':(_0x438c43,_0x3eb690,_0x70806c)=>{const _0x50f9a1=_0x14314e;var _0x46d943;let {unitId:_0x357366,subUnitId:_0xefa244,scene:_0x3dd578,resourceCollector:_0x1f4f19}=_0x3eb690,_0x2aff9e=(_0x46d943=this['_drawingManagerService'][_0x50f9a1(0x1f8)](_0x357366))==null?void 0x0:_0x46d943[_0xefa244];return _0x2aff9e==null||_0x2aff9e['order'][_0x50f9a1(0x326)](_0x177b33=>{const _0x18bd6d=_0x50f9a1;let _0x24cda2=_0x2aff9e['data'][_0x177b33];_0x24cda2[_0x18bd6d(0x27b)]===_0x123aa0[_0x18bd6d(0x323)]&&!_0x24cda2[_0x18bd6d(0x31d)]&&this[_0x18bd6d(0x273)]['renderDrawingShape'](_0x24cda2,_0x3dd578,{'resourceCollector':_0x1f4f19});}),_0x70806c(_0x438c43);}}));}};ha=X([Y(0x0,_0x14bfc1(_0x4ffadc)),Y(0x1,_0x446eb2),Y(0x2,_0x14bfc1(Z))],ha);let ga=class extends _0x116f11{constructor(_0x1ae75c,_0x4658ef,_0x58a8b2){const _0x53d328=_0x196d4a;super(),this[_0x53d328(0x232)]=_0x1ae75c,this['_localeService']=_0x4658ef,this[_0x53d328(0x209)]=_0x58a8b2,this[_0x53d328(0x170)]();}[_0x196d4a(0x170)](){const _0x11cabf=_0x196d4a;this[_0x11cabf(0x335)](this['_commandService'][_0x11cabf(0x255)](_0x2f9504=>{const _0x59672e=_0x11cabf;let _0x1be752,_0x50fbc1;if(_0x2f9504['id']===_0x258890['id']||_0x2f9504['id']===_0x1b5825['id']||_0x2f9504['id']===_0x31e366['id']){let _0x1c46c1=_0x2f9504[_0x59672e(0x1a9)];_0x1be752=_0x1c46c1[_0x59672e(0x263)],_0x50fbc1=_0x1c46c1[_0x59672e(0x2f3)];}_0x1be752&&_0x50fbc1&&(this[_0x59672e(0x209)][_0x59672e(0x374)]({'workbookTypes':[_0x126772],'worksheetTypes':[_0x4b3b52]},_0x1be752,_0x50fbc1)||this[_0x59672e(0x209)][_0x59672e(0x184)](this[_0x59672e(0x185)]['t']('sheets-shape-ui.permission.editErr')));}));}};ga=X([Y(0x0,_0x14bfc1(_0x153d8f)),Y(0x1,_0x14bfc1(_0x407e83)),Y(0x2,_0x14bfc1(_0x124f6a))],ga);let _a=class{constructor(_0x269f3b){const _0x415da8=_0x196d4a;this[_0x415da8(0x1b7)]=_0x269f3b;}[_0x196d4a(0x31f)](_0x243d92,_0x23e04a){const _0x120952=_0x196d4a;let _0x445eb3=this['_renderManagerService'][_0x120952(0xd7)](_0x243d92[_0x120952(0x263)]),_0x125b09=_0x445eb3==null?void 0x0:_0x445eb3['scene'];if(!_0x125b09)return;let _0x114172=_0x934411(_0x243d92),_0x108215=_0x125b09['getObjectIncludeInGroup'](_0x114172);_0x108215==null||_0x108215[_0x120952(0x268)](_0x23e04a);}};_a=X([Y(0x0,_0x4dadf2)],_a);let va=class extends _0x1aacd5{constructor(_0x1413f4=Yi,_0x253aaf,_0x5816bc,_0x34b800,_0x49e766){const _0x113654=_0x196d4a;super(),this[_0x113654(0x21c)]=_0x1413f4,this[_0x113654(0x214)]=_0x253aaf,this[_0x113654(0x232)]=_0x5816bc,this[_0x113654(0x28b)]=_0x34b800,this[_0x113654(0x1b7)]=_0x49e766;let {..._0x54e92f}=_0x30830d({},Yi,this[_0x113654(0x21c)]);this[_0x113654(0x28b)]['setConfig'](Ji,_0x54e92f),this[_0x113654(0x13c)]();}[_0x196d4a(0x368)](){const _0x1a6b68=_0x196d4a;this[_0x1a6b68(0x214)][_0x1a6b68(0x1c1)]([ta]),this[_0x1a6b68(0x214)][_0x1a6b68(0x100)](ta),_0x4a2ba7(this[_0x1a6b68(0x214)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}['onReady'](){const _0x2e0b6f=_0x196d4a;_0x4a2ba7(this[_0x2e0b6f(0x214)],[[da],[Pr],[fa]]),_0x1fd115(this['_injector'],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x2e0b6f(0x326)](_0x43cd39=>{const _0xed36c4=_0x2e0b6f;this[_0xed36c4(0x335)](this[_0xed36c4(0x1b7)][_0xed36c4(0x303)](_0x204504[_0xed36c4(0x205)],_0x43cd39));});}[_0x196d4a(0x151)](){_0x1fd115(this['_injector'],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x196d4a(0x1f9)](){const _0x370ab2=_0x196d4a;this[_0x370ab2(0x214)][_0x370ab2(0x100)](aa)[_0x370ab2(0x1c3)]();}[_0x196d4a(0x13c)](){const _0x3352c9=_0x196d4a;[Ir,K,Fr,qi]['forEach'](_0x5a9fb5=>this[_0x3352c9(0x335)](this[_0x3352c9(0x232)][_0x3352c9(0x361)](_0x5a9fb5)));}};q(va,_0x196d4a(0x104),_0x204504['UNIVER_SHEET']),q(va,_0x196d4a(0x367),_0x196d4a(0xe0)),q(va,'packageName',Gi),q(va,_0x196d4a(0x145),Ki),va=X([_0x392549(_0x263fcc,_0x589f6d,_0x3f0c63,_0x2196c4,_0x3474e2,_0x3eedd5,_0x44c72a,_0x5aafc6,_0x1dd5e1,_0x147e49,_0x58390f,_0x36ca49,_0x455a57),Y(0x1,_0x14bfc1(_0x14ee4a)),Y(0x2,_0x153d8f),Y(0x3,_0x389518),Y(0x4,_0x4dadf2)],va);const ya={'type':_0x36ba27[_0x196d4a(0x22a)],'id':_0x196d4a(0x376),'handler'(){return!0x0;}};function ba(){const _0x37ce47=_0x196d4a;let _0x3b7493=_0x508bbd(_0x446eb2),_0x46bf3e=_0x49d454(()=>_0x3b7493['focus$'],_0x3b7493[_0x37ce47(0x31a)](),!0x1,[_0x3b7493]);return _0x46bf3e[_0x37ce47(0x1bc)]===0x0?null:_0x39d578(_0x37ce47(0x1de),{'children':_0x13ab6(_0x37ce47(0x1de),{'className':_0x37ce47(0x1fe),'children':[_0x39d578(_0x12c81c,{'drawings':_0x46bf3e,'hasCropper':!0x1}),_0x39d578(_0x169b3e,{'drawings':_0x46bf3e})]})});}function xa(_0xa868f1){let {unitId:_0x2dd919,subUnitId:_0x3f3299,shapeId:_0x51a4a2}=_0xa868f1,_0x32b1dd=_0x508bbd(_0x153d8f),_0x52d29e=_0x508bbd(_a);return _0x39d578(_0x33339d,{..._0xa868f1,'positionEditor':_0x39d578(ba,{}),'onUpdateShapeData':(_0x1f2a28,_0x396ef8)=>{Dr(_0x32b1dd,_0x2dd919,_0x3f3299,_0x51a4a2,_0x1f2a28,_0x396ef8);},'onUpdateLineShapeData':(_0x239242,_0x376b72)=>{Or(_0x32b1dd,_0x2dd919,_0x3f3299,_0x51a4a2,_0x239242,_0x376b72);},'onUpdateShapeFillImage':_0xd4d29e=>{const _0xadb370=_0x165f;_0x52d29e[_0xadb370(0x31f)]({'unitId':_0x2dd919,'subUnitId':_0x3f3299,'drawingId':_0x51a4a2},_0xd4d29e);}});}function Sa(_0x32edc6){const _0x139260=_0x196d4a;let _0x5584ce=_0x508bbd(_0x3c5765),_0x234feb=_0x49d454(()=>_0x5584ce[_0x139260(0x30c)],_0x5584ce[_0x139260(0x2f7)](),!0x1,[_0x5584ce]),_0x14625e=_0x32edc6[_0x139260(0x25c)][_0x139260(0x375)];return!_0x14625e||!_0x234feb?null:_0x39d578(Ca,{..._0x14625e,'canvasElement':_0x32edc6['popup']['canvasElement']});}function Ca(_0x3ce00a){const _0x28ca55=_0x196d4a;let _0x3f9d2c=_0x508bbd(_0x153d8f),_0x3ddde9=_0x508bbd(_0x13b053),{unitId:_0x59c543,subUnitId:_0xbfd67e,drawingId:_0xad85fa,drawingType:_0x45d535,shapeType:_0x269d16}=_0x3ce00a,[_0x2405cc,_0x4a8e4d]=_0x2d8807(_0x3ce00a[_0x28ca55(0x2cf)]),_0x100b75=_0xe812e8(()=>_0x543814(_0x2405cc),[_0x2405cc]),_0x1294d6=_0xe812e8(()=>_0x41ef0e(_0x2405cc),[_0x2405cc]);_0x5902a2(()=>{const _0x323592=_0x28ca55;let _0x2120ab=_0x3f9d2c['onCommandExecuted'](_0x4380ef=>{if(_0x4380ef['id']!==_0x3ebd56['id'])return;let _0xdd23db=_0x3ddde9['getShapeDataById'](_0x59c543,_0xbfd67e,_0xad85fa);_0xdd23db&&_0x4a8e4d(_0xdd23db);});return()=>_0x2120ab[_0x323592(0x1cc)]();},[_0x3f9d2c,_0xad85fa,_0x3ddde9,_0xbfd67e,_0x59c543]);let _0x20194a=_0x217ec1=>{_0x4a8e4d(_0x2c3705=>({..._0x2c3705,..._0x217ec1}));},_0x56dac7=_0x3ffc0f=>{let _0xc43893=_0x5a6892(_0x2405cc,_0x3ffc0f);Dr(_0x3f9d2c,_0x59c543,_0xbfd67e,_0xad85fa,{'oldShapeData':{'shapeText':_0x2405cc['shapeText']}},_0xc43893),_0x20194a(_0xc43893);},_0x1c11c4=_0x223293({'hostType':_0x204504[_0x28ca55(0x205)],'unitId':_0x59c543,'subUnitId':_0xbfd67e,'shapeId':_0xad85fa,'shapeData':_0x2405cc,'onUpdateBinding':_0x27f10d=>{let _0x7da5fa={'formulaBinding':_0x27f10d};Dr(_0x3f9d2c,_0x59c543,_0xbfd67e,_0xad85fa,{'oldShapeData':{'formulaBinding':_0x2405cc['formulaBinding']}},_0x7da5fa),_0x20194a(_0x7da5fa);}});return _0x13ab6(_0x1ba972,{'children':[_0x39d578(_0x593a17,{'canvasElement':_0x3ce00a[_0x28ca55(0x1d3)],'shapeData':_0x2405cc,'shapeType':_0x269d16,'textStyle':{'ff':_0x1a4d77['shapeText'][_0x28ca55(0x305)],'fs':_0x1a4d77[_0x28ca55(0x34a)]['fontSize'],'cl':{'rgb':_0x1a4d77['shapeText'][_0x28ca55(0xfb)]},..._0x100b75},'textModel':_0x1294d6?{'ha':_0x1294d6['ha']??_0x3a8480[_0x28ca55(0x182)],'va':_0x1294d6['va']??_0x1b272d[_0x28ca55(0x187)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x1a4d77['fill'],'defaultGradientEndColor':_0x1a4d77['gradientEndColor'],'defaultStrokeColor':_0x1a4d77[_0x28ca55(0x193)],'extensionGroups':_0x1c11c4[_0x28ca55(0x14d)],'floatingObjectToolbarPosition':_0x5d07c3[_0x28ca55(0xd1)],'onUpdateShapeData':(_0x74bb4b,_0xef5bf1)=>{Dr(_0x3f9d2c,_0x59c543,_0xbfd67e,_0xad85fa,_0x74bb4b,_0xef5bf1),_0xef5bf1&&_0x20194a(_0xef5bf1);},'onUpdateText':_0x56dac7,'onOpenPanel':()=>{const _0x484512=_0x28ca55;_0x3f9d2c[_0x484512(0x152)](Wr['id'],{'unitId':_0x59c543,'subUnitId':_0xbfd67e,'drawingId':_0xad85fa});},'onDelete':()=>{_0x3f9d2c['executeCommand'](_0x3b039['id'],{'unitId':_0x59c543,'drawings':[{'unitId':_0x59c543,'subUnitId':_0xbfd67e,'drawingId':_0xad85fa,'drawingType':_0x45d535}]});}}),_0x1c11c4[_0x28ca55(0x357)]]});}function wa(_0x266e14){const _0x204fae=_0x196d4a;return!!_0x266e14&&'axisAlignSheetTransform'in _0x266e14&&_0x204fae(0x325)in _0x266e14;}const Ta=_0x4c612b(()=>{const _0x2174be=_0x196d4a;let _0xc717a0=_0x508bbd($),_0x114207=_0x508bbd(_0x13b053),_0x432d8e=_0x508bbd(_0x446eb2),_0x3ecbe8=_0x508bbd(_0x153d8f),_0x3de97f=_0x508bbd(_0x41ccec),_0x6a51da=_0x508bbd(_0x4dadf2),_0x48f271=_0xe812e8(()=>({'getShapeModel':(_0x4f8682,_0x4e2450,_0xb681f8)=>_0x114207[_0x2174be(0xe6)](_0x4f8682,_0x4e2450,_0xb681f8),'getShapeData':(_0x58fc91,_0x3d9af1,_0x7dd23f)=>_0x114207['getShapeDataById'](_0x58fc91,_0x3d9af1,_0x7dd23f),'getDrawingTransform':(_0x5721c8,_0x2f8e76,_0x473bb6)=>{const _0x57ff99=_0x2174be;let _0x3c433b=_0x432d8e[_0x57ff99(0xc7)]({'unitId':_0x5721c8,'subUnitId':_0x2f8e76,'drawingId':_0x473bb6});return _0x3c433b==null?void 0x0:_0x3c433b[_0x57ff99(0x311)];},'updateShapeText':({unitId:_0x3fc1f2,subUnitId:_0x4f33ea,shapeId:_0x3bdbf6,shapeText:_0x420a98,oldShapeText:_0x274d69,hostSize:_0x297f96})=>{const _0x526568=_0x2174be;_0x3de97f[_0x526568(0x314)](_0x3fc1f2,()=>{const _0x496a07=_0x526568;var _0x54064b;let _0x2a1c29=_0x3ecbe8[_0x496a07(0x227)](K['id'],{'unitId':_0x3fc1f2,'subUnitId':_0x4f33ea,'shapeId':_0x3bdbf6,'shapeData':{'shapeText':_0x420a98},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x274d69}}});if(!_0x2a1c29||!_0x297f96)return _0x2a1c29;let _0x150c1a=_0x432d8e['getDrawingByParam']({'unitId':_0x3fc1f2,'subUnitId':_0x4f33ea,'drawingId':_0x3bdbf6}),_0x560db5=_0x150c1a==null?void 0x0:_0x150c1a['transform'];if(!wa(_0x150c1a)||!_0x560db5)return!0x1;let _0x576e71={..._0x560db5,'width':_0x297f96['width'],'height':_0x297f96[_0x496a07(0x2b9)]},_0x4392ea=(_0x54064b=_0x6a51da['getRenderUnitById'](_0x3fc1f2))==null||(_0x54064b=_0x54064b[_0x496a07(0x2a0)](_0x7b1452)[_0x496a07(0x223)](_0x4f33ea))==null?void 0x0:_0x54064b[_0x496a07(0x241)];return _0x3ecbe8[_0x496a07(0x227)](_0x24e472['id'],{'unitId':_0x3fc1f2,'drawings':[{..._0x150c1a,'transform':_0x576e71,'sheetTransform':_0x4392ea?_0x15205d(_0x576e71,_0x4392ea)??_0x150c1a[_0x496a07(0x325)]:_0x150c1a['sheetTransform'],'axisAlignSheetTransform':_0x4392ea?_0x3a2b93(_0x576e71,_0x4392ea)??_0x150c1a[_0x496a07(0x11f)]:_0x150c1a[_0x496a07(0x11f)]}]});});},'updateHostSize':({unitId:_0xa5c46,subUnitId:_0x88d27a,shapeId:_0x3c2377,width:_0x2908aa,height:_0xb46fb9})=>{const _0x51e965=_0x2174be;var _0x23abfb;let _0x5222cf=_0x432d8e['getDrawingByParam']({'unitId':_0xa5c46,'subUnitId':_0x88d27a,'drawingId':_0x3c2377}),_0x4c1097=_0x5222cf==null?void 0x0:_0x5222cf[_0x51e965(0x311)];if(!wa(_0x5222cf)||!_0x4c1097)return;let _0x530fcc={..._0x4c1097,'width':_0x2908aa,'height':_0xb46fb9},_0x3b40cd=(_0x23abfb=_0x6a51da[_0x51e965(0xd7)](_0xa5c46))==null||(_0x23abfb=_0x23abfb['with'](_0x7b1452)[_0x51e965(0x223)](_0x88d27a))==null?void 0x0:_0x23abfb[_0x51e965(0x241)],_0x2f2023=_0x3b40cd?_0x15205d(_0x530fcc,_0x3b40cd)??_0x5222cf['sheetTransform']:_0x5222cf[_0x51e965(0x325)],_0x4b1eca=_0x3b40cd?_0x3a2b93(_0x530fcc,_0x3b40cd)??_0x5222cf[_0x51e965(0x11f)]:_0x5222cf[_0x51e965(0x11f)];_0x3ecbe8[_0x51e965(0x152)](_0x24e472['id'],{'unitId':_0xa5c46,'drawings':[{..._0x5222cf,'transform':_0x530fcc,'sheetTransform':_0x2f2023,'axisAlignSheetTransform':_0x4b1eca}]});},'allowHostSizeShrink':({unitId:_0x75af0,subUnitId:_0x260af2,shapeId:_0x593e65})=>_0x2662f6(_0x114207[_0x2174be(0xf0)](_0x75af0,_0x260af2,_0x593e65)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3ecbe8,_0x432d8e,_0x6a51da,_0x114207,_0x3de97f]),_0x369a6d=_0xe812e8(()=>({'viewportKeys':{'main':_0x220776[_0x2174be(0x2d8)],'leftTop':_0x220776[_0x2174be(0xd9)],'top':_0x220776[_0x2174be(0x20f)],'left':_0x220776['VIEW_MAIN_LEFT']},'getSkeleton':(_0x1a02bb,_0x8dad1d)=>{const _0x2a7e5c=_0x2174be;var _0x2c36b9;return((_0x2c36b9=_0x1a02bb[_0x2a7e5c(0x2a0)](_0x7b1452)[_0x2a7e5c(0x223)](_0x8dad1d['subUnitId']))==null?void 0x0:_0x2c36b9[_0x2a7e5c(0x241)])??null;}}),[]);return _0x39d578(_0x3d22ef,{'adapter':_0x48f271,'editingService':_0xc717a0,'editorUnitId':Vr,'positionOptions':_0x369a6d});});let Ea=class extends _0x116f11{constructor(_0x497706,_0x255c62){const _0x2738f8=_0x196d4a;super(),this['_componentManager']=_0x497706,this['_iconManager']=_0x255c62,this['_registerIcons'](),this[_0x2738f8(0x216)]();}[_0x196d4a(0x171)](){const _0x5712fd=_0x196d4a;this[_0x5712fd(0xe3)][_0x5712fd(0x238)](_0x5712fd(0x38d))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'ObjectLayersIcon':_0x4dbc57})),this['_iconManager'][_0x5712fd(0x238)](_0x5712fd(0x136))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'FlipHorizontalIcon':_0x654af8})),this[_0x5712fd(0xe3)]['has'](_0x5712fd(0x12b))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'FlipVerticalIcon':_0x2d018e})),this[_0x5712fd(0xe3)][_0x5712fd(0x238)](_0x5712fd(0x2a3))||this[_0x5712fd(0x335)](this['_iconManager'][_0x5712fd(0x157)]({'BottomIcon':_0x498df7})),this[_0x5712fd(0xe3)][_0x5712fd(0x238)]('MoveDownIcon')||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)]['register']({'MoveDownIcon':_0x158b87})),this[_0x5712fd(0xe3)]['has'](_0x5712fd(0x242))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'MoveUpIcon':_0x1d98f5})),this[_0x5712fd(0xe3)]['has'](_0x5712fd(0x322))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)][_0x5712fd(0x157)]({'ShapeFormatSettingIcon':_0x163347})),this[_0x5712fd(0xe3)][_0x5712fd(0x238)](_0x5712fd(0x289))||this[_0x5712fd(0x335)](this[_0x5712fd(0xe3)]['register']({'TopmostIcon':_0x172d21}));}[_0x196d4a(0x216)](){const _0x48fb62=_0x196d4a;this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)]['register'](Lr,xa)),this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)]['register'](Rr,$i)),this[_0x48fb62(0x335)](this['_componentManager'][_0x48fb62(0x157)](Jr,ei)),this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](Yr,Zr)),this['_componentManager'][_0x48fb62(0x100)](_0x5c8b25)||this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](_0x5c8b25,$r)),this[_0x48fb62(0x335)](this['_componentManager']['register'](zr,Sa)),this[_0x48fb62(0x335)](this['_componentManager'][_0x48fb62(0x157)](di,hi)),this['disposeWithMe'](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](ui,gi)),this[_0x48fb62(0x335)](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](fi,_i)),this['disposeWithMe'](this[_0x48fb62(0x20e)][_0x48fb62(0x157)](pi,vi)),this[_0x48fb62(0x335)](this['_componentManager'][_0x48fb62(0x157)](Hr,_0x376b8a)),this['disposeWithMe'](this[_0x48fb62(0x20e)]['register'](_0x48fb62(0x2c7),Ta));}};Ea=X([Y(0x0,_0x14bfc1(_0x1db2df)),Y(0x1,_0x14bfc1(_0x4f5c3f))],Ea);let Da=class extends _0x116f11{constructor(_0x1d944e,_0xec8792,_0x182ff0,_0x498abe,_0x1c90cd,_0x541360,_0x22b137,_0x417220,_0x4717ee){const _0x591056=_0x196d4a;super();let _0x441c90=_0x1414f0=>{const _0x8f5df8=_0x165f;var _0x10cde2,_0x4741c3;return(((_0x10cde2=_0x417220[_0x8f5df8(0x169)](new _0x126772(_0x1414f0[_0x8f5df8(0x263)])['id']))==null?void 0x0:_0x10cde2[_0x8f5df8(0x1b9)])??!0x0)&&(((_0x4741c3=_0x417220[_0x8f5df8(0x169)](new _0x4b3b52(_0x1414f0['unitId'],_0x1414f0[_0x8f5df8(0x2f3)])['id']))==null?void 0x0:_0x4741c3['value'])??!0x0);},_0x166740=_0x3583e4=>_0x3583e4['shapeId']&&_0x441c90(_0x3583e4)?_0x182ff0['getShapeDataById'](_0x3583e4[_0x591056(0x263)],_0x3583e4[_0x591056(0x2f3)],_0x3583e4['shapeId'])??null:null,_0x4e1086=()=>{const _0x362abf=_0x591056;let _0x47db69=_0x1c90cd[_0x362abf(0x31a)](),_0x230b9f=_0x47db69[_0x362abf(0x1bc)]===0x1?_0x47db69[0x0]:null;return(_0x230b9f==null?void 0x0:_0x230b9f['drawingType'])===_0x123aa0[_0x362abf(0x323)]&&_0x230b9f['unitId']===_0x1d944e[_0x362abf(0x263)]?{'unitId':_0x230b9f[_0x362abf(0x263)],'subUnitId':_0x230b9f[_0x362abf(0x2f3)],'shapeId':_0x230b9f[_0x362abf(0x14c)]}:null;};this[_0x591056(0x335)](_0x1deb41(_0x1d944e,_0xec8792,{'changes$':_0x370b6b(_0x1c90cd['focus$'],_0x498abe[_0x591056(0x181)],_0x417220['permissionPointUpdate$']),'isActive':()=>{const _0xe75bb0=_0x591056;var _0x35c42e;return((_0x35c42e=_0x541360['getFocusedUnit']())==null?void 0x0:_0x35c42e[_0xe75bb0(0x2d3)]())===_0x1d944e[_0xe75bb0(0x263)]&&!_0x22b137[_0xe75bb0(0x222)](_0x578359)&&_0x1c90cd['getFocusDrawings']()['some'](_0x3eec4a=>_0x3eec4a[_0xe75bb0(0x263)]===_0x1d944e[_0xe75bb0(0x263)]);},'getSelectedTarget':_0x4e1086,'getSource':()=>{let _0x16b2f9=_0x4e1086();return _0x16b2f9?_0x166740(_0x16b2f9):null;},'getTarget':_0x568202=>{const _0x4e1695=_0x591056;let _0x345e3a=_0x1d944e[_0x4e1695(0x142)][_0x4e1695(0x101)](new _0x2163b6(_0x568202[_0x4e1695(0x203)],_0x568202[_0x4e1695(0x302)]));if(!(_0x345e3a instanceof J))return null;let _0x426286={'unitId':_0x1d944e['unitId'],'subUnitId':_0x345e3a[_0x4e1695(0x2f3)],'shapeId':_0x345e3a[_0x4e1695(0x26c)]};return _0x441c90(_0x426286)?_0x426286:null;},'getShape':_0x166740,'update':(_0x531b6d,_0x584659,_0x5e6b17)=>_0x4717ee[_0x591056(0x152)](K['id'],{..._0x531b6d,'shapeData':_0x5e6b17,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x584659}})}));}};Da=X([Y(0x1,_0x14bfc1(_0x2a6051)),Y(0x2,_0x14bfc1(_0x13b053)),Y(0x3,_0x14bfc1($)),Y(0x4,_0x446eb2),Y(0x5,_0x46c185),Y(0x6,_0x9bf8bb),Y(0x7,_0x51e1fb),Y(0x8,_0x153d8f)],Da);const Oa=_0x196d4a(0x18b);let ka=class extends _0x116f11{constructor(_0x1dfef9,_0x30da67,_0x1e15a0,_0x5926a3,_0x17d955,_0x46907f){const _0x42aa22=_0x196d4a;super(),this['_menuManagerService']=_0x1dfef9,this[_0x42aa22(0x11d)]=_0x30da67,this['_drawingManagerService']=_0x1e15a0,this[_0x42aa22(0x17a)]=_0x5926a3,this[_0x42aa22(0x1b7)]=_0x17d955,this[_0x42aa22(0x20d)]=_0x46907f,q(this,_0x42aa22(0x341),!0x1),this[_0x42aa22(0x34e)][_0x42aa22(0x24b)](Hi),this['disposeWithMe'](_0x46ac89(this[_0x42aa22(0x23e)][_0x42aa22(0x107)]['subscribe'](()=>this[_0x42aa22(0x154)]()))),this[_0x42aa22(0x154)]();}[_0x196d4a(0x1cc)](){const _0x4c7939=_0x196d4a;this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,Oa),this['_hide'](),super[_0x4c7939(0x1cc)]();}[_0x196d4a(0x154)](){const _0x1d9013=_0x196d4a;var _0x1dfbe5;let _0x40e8b9=this[_0x1d9013(0x23e)]['getFocusDrawings'](),_0x3f3401=_0x40e8b9[_0x1d9013(0x1bc)]===0x1?_0x40e8b9[0x0]:void 0x0;if((_0x3f3401==null?void 0x0:_0x3f3401[_0x1d9013(0x27b)])!==_0x123aa0['DRAWING_SHAPE']||this[_0x1d9013(0x17a)]['getUnitType'](_0x3f3401[_0x1d9013(0x263)])!==_0x204504[_0x1d9013(0x205)]){this[_0x1d9013(0x20d)][_0x1d9013(0x284)](!0x1,Oa),this['_hide']();return;}let _0x587c9f=(_0x1dfbe5=this['_renderManagerService'][_0x1d9013(0xd7)](_0x3f3401[_0x1d9013(0x263)]))==null?void 0x0:_0x1dfbe5[_0x1d9013(0x2ed)][_0x1d9013(0x310)](),_0x3ca472=_0x2d319f(_0x587c9f)===_0x1d9013(0x29e);if(this[_0x1d9013(0x20d)][_0x1d9013(0x284)](_0x3ca472,Oa),_0x3ca472){this['_hide']();return;}this['_visible']||(this['_visible']=!0x0,this[_0x1d9013(0x11d)][_0x1d9013(0x103)](Br,{'activate':!0x0}));}[_0x196d4a(0x22c)](){const _0x54ca7d=_0x196d4a;this[_0x54ca7d(0x341)]&&(this['_visible']=!0x1,this['_ribbonService'][_0x54ca7d(0x2cb)](Br),this['_ribbonService'][_0x54ca7d(0xe7)]([]));}};ka=X([Y(0x0,_0x866cac),Y(0x1,_0x2b125b),Y(0x2,_0x446eb2),Y(0x3,_0x46c185),Y(0x4,_0x4dadf2),Y(0x5,_0x14bfc1(_0x3c5765))],ka);let Aa=class extends _0x2a6fb9{constructor(_0x5ee7e7,_0x5db51d,_0x1cfd9a,_0x211acb,_0x24657f,_0x42ae77,_0x587960,_0x2d5e5b,_0x766878,_0xf82c87){super(_0x5ee7e7,_0x5db51d,_0x1cfd9a,_0x211acb,_0x24657f,_0x42ae77,_0x587960,_0x2d5e5b,_0x766878,_0xf82c87,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x14bfc1(_0x307326)),Y(0x2,_0x14bfc1(_0x372923)),Y(0x3,_0x14bfc1(_0x338572)),Y(0x4,_0x153d8f),Y(0x5,_0x14bfc1(_0x1248a7)),Y(0x6,_0x14bfc1(_0x4a87e8)),Y(0x7,_0x14bfc1(_0x306ef4)),Y(0x8,_0x14bfc1(_0x300e24)),Y(0x9,_0x14bfc1($))],Aa);let ja=class extends _0x581d74{constructor(_0x37038f,_0x526a89,_0x5441f9,_0x58c284,_0x4ac89f){const _0x1ad5d6=_0x196d4a;super(_0x37038f,_0x526a89,{'editing$':_0x5441f9[_0x1ad5d6(0x181)],'resolve':_0x3f239c=>{const _0x198588=_0x1ad5d6;var _0x7a4408,_0x20a06a,_0x39c0c9;let _0x5aff26=new _0x2163b6(_0x3f239c[_0x198588(0x203)],_0x3f239c['offsetY']),_0x220561=((_0x7a4408=_0x37038f[_0x198588(0x142)]['getActiveViewportByCoord'](_0x5aff26))==null?void 0x0:_0x7a4408[_0x198588(0x10f)](_0x5aff26))??_0x5aff26,_0x1cbf02=_0x4807f9(_0x37038f[_0x198588(0x142)][_0x198588(0x101)](_0x5aff26)??null,_0x220561);if(!(_0x1cbf02 instanceof J))return null;let _0x3a9a12=_0x1cbf02[_0x198588(0x1fd)](_0x220561);if(!_0x3a9a12)return null;let _0x408253=_0x1cbf02,_0x55aa6f={'componentKey':_0x260c61[_0x198588(0x264)],'direction':_0x198588(0x2c9),'offset':[0x0,0xa],'onClickOutside':()=>_0x526a89[_0x198588(0x1e1)]()};return{'object':_0x1cbf02,'info':{..._0x3a9a12,'unitId':_0x1cbf02[_0x198588(0x263)],'subUnitId':_0x1cbf02['subUnitId'],'shapeKey':_0x1cbf02[_0x198588(0x313)],'readonly':!0x0,'copyable':((_0x20a06a=_0x4ac89f[_0x198588(0x169)](new _0xba4e61(_0x1cbf02[_0x198588(0x263)])['id']))==null?void 0x0:_0x20a06a[_0x198588(0x1b9)])!==!0x1&&((_0x39c0c9=_0x4ac89f[_0x198588(0x169)](new _0x5cfb67(_0x1cbf02[_0x198588(0x263)],_0x1cbf02[_0x198588(0x2f3)])['id']))==null?void 0x0:_0x39c0c9['value'])!==!0x1},'attachPopup':()=>_0x58c284['attachPopupToObject'](_0x408253,_0x55aa6f)};}}),this[_0x1ad5d6(0x335)](_0x37038f[_0x1ad5d6(0x329)]['activeSheet$']['subscribe'](()=>this[_0x1ad5d6(0x1b6)]()));}};ja=X([Y(0x1,_0x14bfc1(_0x4a87e8)),Y(0x2,_0x14bfc1($)),Y(0x3,_0x14bfc1(_0x5aaa90)),Y(0x4,_0x51e1fb)],ja);let Ma=class extends _0x116f11{constructor(_0x1c13c8,_0x55ae79,_0x2f785f,_0x4d8448,_0x6af2c6,_0x4a5290,_0x527a06,_0x2425ec,_0x591b9d,_0x293458,_0x2871ab){const _0x353ff5=_0x196d4a;super(),this[_0x353ff5(0x17a)]=_0x1c13c8,this[_0x353ff5(0x129)]=_0x55ae79,this[_0x353ff5(0x34e)]=_0x2f785f,this[_0x353ff5(0x309)]=_0x4d8448,this[_0x353ff5(0x185)]=_0x6af2c6,this[_0x353ff5(0x232)]=_0x4a5290,this[_0x353ff5(0x23e)]=_0x527a06,this[_0x353ff5(0x12e)]=_0x2425ec,this[_0x353ff5(0x290)]=_0x591b9d,this['_renderManagerService']=_0x293458,this[_0x353ff5(0x35f)]=_0x2871ab,q(this,_0x353ff5(0x250),null),q(this,'_activeShapeInfo',null),q(this,_0x353ff5(0x31e),!0x1),q(this,_0x353ff5(0x388),0x0),q(this,_0x353ff5(0x160),null),q(this,_0x353ff5(0xee),[]),this['_initMenu'](),this[_0x353ff5(0x335)](this[_0x353ff5(0x17a)][_0x353ff5(0x206)](_0x204504[_0x353ff5(0x205)])[_0x353ff5(0x1ab)](_0x4ccdfc=>{const _0x2c89d4=_0x353ff5;if(!_0x4ccdfc){var _0x165a97;(_0x165a97=this['_sidebarDisposable'])==null||_0x165a97[_0x2c89d4(0x1cc)]();}})),this[_0x353ff5(0x30e)](),this['initShapePopupMenu'](),this[_0x353ff5(0x335)](this[_0x353ff5(0x35f)][_0x353ff5(0x181)][_0x353ff5(0x1ab)](_0x184098=>{_0x184098&&this['_clearPopups']();}));}[_0x196d4a(0x32a)](){const _0x1c22c0=_0x196d4a;this[_0x1c22c0(0x34e)]['mergeMenu'](Wi);}[_0x196d4a(0x1c3)](){const _0x1dada5=_0x196d4a;this[_0x1dada5(0x160)]||=this[_0x1dada5(0x335)](_0x37fb80(this[_0x1dada5(0x1b7)],_0x204504['UNIVER_SHEET'],_0x1ac55f=>this['_popupMenuListener'](_0x1ac55f)));}[_0x196d4a(0xf8)](_0x2e63f2,_0x4ecc50,_0x26f532){const _0x111c00=_0x196d4a;let _0x489485=this[_0x111c00(0x309)][_0x111c00(0x16a)](_0x2e63f2,_0x4ecc50,_0x26f532),_0x4c87b8=this[_0x111c00(0x309)][_0x111c00(0xf0)](_0x2e63f2,_0x4ecc50,_0x26f532);return _0x489485!==void 0x0&&_0x4c87b8!==void 0x0?{'shapeData':_0x4c87b8,'shapeId':_0x26f532,'shapeType':_0x489485,'unitId':_0x2e63f2,'subUnitId':_0x4ecc50,'version':this[_0x111c00(0x388)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x2b9c0c=_0x196d4a;this[_0x2b9c0c(0xee)][_0x2b9c0c(0x326)](_0x53061f=>_0x53061f[_0x2b9c0c(0x1cc)]()),this['_disposePopups'][_0x2b9c0c(0x1bc)]=0x0;}[_0x196d4a(0x208)](_0x172f11){const _0xd4c3da=_0x196d4a;let _0xc3c241=new _0x5afd59();return _0xc3c241[_0xd4c3da(0x1c1)](_0x172f11['createControl$']['subscribe'](()=>{const _0x4ab99a=_0xd4c3da;let _0xcecb70=_0x172f11[_0x4ab99a(0x2cc)]();if(this['_clearPopups'](),this['_isOpenedShapeEditPanel']||_0xcecb70[_0x4ab99a(0x358)]>0x1)return;let _0x366d85=_0xcecb70[_0x4ab99a(0x126)]()[_0x4ab99a(0x116)]()[_0x4ab99a(0x1b9)];if(!_0x366d85)return;let _0x4456c6=this[_0x4ab99a(0x23e)][_0x4ab99a(0x23a)](_0x366d85[_0x4ab99a(0x313)]);if(!_0x4456c6||_0x4456c6['drawingType']!==_0x123aa0[_0x4ab99a(0x323)])return;let {unitId:_0x22865f,subUnitId:_0x528e9c,drawingId:_0x301973,drawingType:_0x58fac4}=_0x4456c6,_0x2c88b7=this[_0x4ab99a(0xf8)](_0x22865f,_0x528e9c,_0x301973);if(!_0x2c88b7)return;this['_contextService'][_0x4ab99a(0x36b)](_0x2edc38,!0x0);let _0x462fb5=this['_renderManagerService'][_0x4ab99a(0xd7)](_0x22865f),_0x3f50ff=((_0x462fb5==null?void 0x0:_0x462fb5['isMainScene'])===!0x1?_0x462fb5[_0x4ab99a(0x2a0)](_0x5aaa90):this['_sheetCanvasPopManagerService'])[_0x4ab99a(0x355)](_0x366d85,{'componentKey':zr,'direction':_0x4ab99a(0x2c2),'offset':[0x0,_0x1e40bd],'extraProps':{'unitId':_0x22865f,'subUnitId':_0x528e9c,'drawingId':_0x301973,'drawingType':_0x58fac4,'shapeType':_0x2c88b7['shapeType'],'shapeData':_0x2c88b7[_0x4ab99a(0x2cf)]}});this['_disposePopups'][_0x4ab99a(0x2b7)](this['disposeWithMe'](_0x3f50ff)),this['_drawingManagerService'][_0x4ab99a(0x31a)]()['find'](_0x2e192a=>_0x2e192a['unitId']===_0x22865f&&_0x2e192a[_0x4ab99a(0x2f3)]===_0x528e9c&&_0x2e192a['drawingId']===_0x301973)||this[_0x4ab99a(0x23e)][_0x4ab99a(0x364)]([{'unitId':_0x22865f,'subUnitId':_0x528e9c,'drawingId':_0x301973}]);})),_0xc3c241['add'](_0x172f11['clearControl$'][_0xd4c3da(0x1ab)](()=>{const _0x2c2958=_0xd4c3da;this[_0x2c2958(0x20a)](),this['_contextService']['setContextValue'](_0x2edc38,!0x1),this[_0x2c2958(0x23e)][_0x2c2958(0x364)](null);})),_0xc3c241[_0xd4c3da(0x1c1)](_0x172f11[_0xd4c3da(0x2eb)][_0xd4c3da(0x1ab)](()=>{const _0x2e5765=_0xd4c3da;this[_0x2e5765(0x20a)]();})),_0xc3c241[_0xd4c3da(0x1c1)](_0x172f11['changeStart$'][_0xd4c3da(0x1ab)](()=>{this['_clearPopups']();})),_0x46ac89(()=>{const _0x1d748f=_0xd4c3da;_0xc3c241[_0x1d748f(0x1cc)](),this[_0x1d748f(0x20a)]();});}[_0x196d4a(0x30e)](){const _0x289072=_0x196d4a;this[_0x289072(0x335)](this[_0x289072(0x232)][_0x289072(0x33a)](_0x4c4b6f=>{const _0x5226c0=_0x289072;if(_0x4c4b6f['id']===Wr['id']){let {unitId:_0x3c2373,subUnitId:_0x35e489,drawingId:_0x832250}=_0x4c4b6f['params'];this['_shapeEditPanelVersion']+=0x1,this[_0x5226c0(0x2bd)]=this[_0x5226c0(0xf8)](_0x3c2373,_0x35e489,_0x832250),this[_0x5226c0(0x20a)](),this[_0x5226c0(0x333)]();}if(_0x4c4b6f['id']===ya['id']&&(this[_0x5226c0(0x2bd)]=null,this[_0x5226c0(0x12d)]()),_0x4c4b6f['id']===_0x3ebd56['id']){let {unitId:_0x3c3a8a,subUnitId:_0x31bcd4,shapeId:_0x52855d}=_0x4c4b6f[_0x5226c0(0x1a9)];if(this['_activeShapeInfo']&&this['_activeShapeInfo']['shapeId']===_0x52855d){let _0x2fd990=this[_0x5226c0(0xf8)](_0x3c3a8a,_0x31bcd4,_0x52855d);_0x2fd990&&(this[_0x5226c0(0x388)]+=0x1,_0x2fd990[_0x5226c0(0x145)]=this['_shapeEditPanelVersion'],this[_0x5226c0(0x2bd)]=_0x2fd990,this[_0x5226c0(0x31e)]&&this['_openShapeEditPanel']());}}})),this[_0x289072(0x335)](this['_drawingManagerService'][_0x289072(0x107)][_0x289072(0x1ab)](_0x24f29c=>{const _0x333da6=_0x289072;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x24f29c[_0x333da6(0x1bc)]===0x0){this['_activeShapeInfo']=null,this[_0x333da6(0x12d)]();return;}if(_0x24f29c[_0x333da6(0x1bc)]===0x1&&_0x24f29c[0x0][_0x333da6(0x27b)]===_0x123aa0[_0x333da6(0x323)]&&(this[_0x333da6(0x388)]+=0x1,this[_0x333da6(0x2bd)]=this[_0x333da6(0xf8)](_0x24f29c[0x0][_0x333da6(0x263)],_0x24f29c[0x0]['subUnitId'],_0x24f29c[0x0]['drawingId']),this[_0x333da6(0x2bd)])){this[_0x333da6(0x333)]();return;}let _0x306ffb=_0x24f29c[_0x333da6(0x191)](_0x56459c=>_0x56459c[_0x333da6(0x27b)]===_0x123aa0[_0x333da6(0x323)]);if(_0x24f29c['length']>0x1&&_0x306ffb[_0x333da6(0x1bc)]===_0x24f29c[_0x333da6(0x1bc)]){if(this[_0x333da6(0x388)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x24f29c[0x0][_0x333da6(0x263)],_0x24f29c[0x0][_0x333da6(0x2f3)],_0x24f29c[0x0]['drawingId']),this[_0x333da6(0x2bd)]){this[_0x333da6(0x333)]();return;}}else{if(this[_0x333da6(0x388)]+=0x1,this[_0x333da6(0x2bd)]=this[_0x333da6(0xf8)](_0x24f29c[0x0][_0x333da6(0x263)],_0x24f29c[0x0][_0x333da6(0x2f3)],_0x24f29c[0x0][_0x333da6(0x14c)]),this[_0x333da6(0x2bd)]){this[_0x333da6(0x2bd)]['disableShapeOption']=!0x0,this[_0x333da6(0x333)]();return;}}this[_0x333da6(0x12d)]();}));}[_0x196d4a(0x333)](){const _0x30d28c=_0x196d4a;this[_0x30d28c(0x2bd)]&&(this[_0x30d28c(0x250)]=this[_0x30d28c(0x129)][_0x30d28c(0x2b3)]({'id':Lr,'header':{'title':this[_0x30d28c(0x185)]['t'](_0x30d28c(0x248))},'width':0x184,'children':{'label':Lr,...this['_activeShapeInfo']},'onClose':()=>{const _0x36e776=_0x30d28c;this[_0x36e776(0x23e)][_0x36e776(0x364)](null),this['_contextService'][_0x36e776(0x36b)](_0x2edc38,!0x1),this[_0x36e776(0x250)]=null;}}),this[_0x30d28c(0x31e)]=!0x0);}[_0x196d4a(0x12d)](){const _0x384345=_0x196d4a;this[_0x384345(0x31e)]=!0x1,this[_0x384345(0x129)][_0x384345(0x29a)](Lr),this[_0x384345(0x250)]=null,this[_0x384345(0x290)][_0x384345(0x36b)](_0x2edc38,!0x1),this[_0x384345(0x23e)][_0x384345(0x364)](null);}};Ma=X([Y(0x0,_0x46c185),Y(0x1,_0x14bfc1(_0x6f2b47)),Y(0x2,_0x866cac),Y(0x3,_0x14bfc1(_0x13b053)),Y(0x4,_0x14bfc1(_0x407e83)),Y(0x5,_0x153d8f),Y(0x6,_0x446eb2),Y(0x7,_0x14bfc1(_0x5aaa90)),Y(0x8,_0x9bf8bb),Y(0x9,_0x4dadf2),Y(0xa,_0x14bfc1($))],Ma);let Na=class extends _0x1aacd5{constructor(_0x76b4ec=Yi,_0x2608bb,_0xec0945,_0x2a7b17,_0x3087bc){const _0xb3f569=_0x196d4a;super(),this[_0xb3f569(0x21c)]=_0x76b4ec,this[_0xb3f569(0x214)]=_0x2608bb,this[_0xb3f569(0x232)]=_0xec0945,this[_0xb3f569(0x28b)]=_0x2a7b17,this[_0xb3f569(0x1b7)]=_0x3087bc;let {..._0x502983}=_0x30830d({},Yi,this['_config']);this[_0xb3f569(0x28b)][_0xb3f569(0x26b)](Ji,_0x502983),this[_0xb3f569(0x13c)]();}[_0x196d4a(0x151)](){const _0x3000b2=_0x196d4a;this[_0x3000b2(0x1b7)][_0x3000b2(0x303)](_0x204504[_0x3000b2(0x189)],[Aa]),_0x1fd115(this[_0x3000b2(0x214)],[[Ma],[ca],[Z],[ha]]);}[_0x196d4a(0x1f9)](){const _0x159008=_0x196d4a;this[_0x159008(0x214)][_0x159008(0x100)](Ma)[_0x159008(0x1c3)]();}[_0x196d4a(0xef)](){const _0x5b34cc=_0x196d4a;[[da],[Pr],[fa]]['forEach'](_0x4acc90=>this['_injector']['add'](_0x4acc90)),_0x1fd115(this[_0x5b34cc(0x214)],[[fa],[Pr]]),this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504['UNIVER_SHEET'],[da]),this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504[_0x5b34cc(0x205)],[Xi]),this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504[_0x5b34cc(0x205)],[ma]),this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504['UNIVER_SHEET'],[na]),this[_0x5b34cc(0x335)](this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504['UNIVER_SHEET'],[ja])),this['disposeWithMe'](this[_0x5b34cc(0x1b7)][_0x5b34cc(0x303)](_0x204504['UNIVER_SHEET'],[Da]));}[_0x196d4a(0x368)](){const _0x5b81c5=_0x196d4a;this[_0x5b81c5(0x214)][_0x5b81c5(0x1c1)]([Ea]),this[_0x5b81c5(0x214)][_0x5b81c5(0x100)](Ea);let _0x1d3ab5=this[_0x5b81c5(0x214)];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x5b81c5(0x326)](_0x58d368=>_0x1d3ab5[_0x5b81c5(0x1c1)](_0x58d368)),_0x1fd115(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}['_initCommands'](){const _0x59debd=_0x196d4a;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x59debd(0x326)](_0x475a68=>this['disposeWithMe'](this[_0x59debd(0x232)]['registerCommand'](_0x475a68)));}};q(Na,'type',_0x204504[_0x196d4a(0x205)]),q(Na,_0x196d4a(0x367),_0x196d4a(0xe0)),q(Na,_0x196d4a(0x295),Gi),q(Na,'version',Ki),Na=X([_0x392549(_0x263fcc,_0x589f6d,_0x3f0c63,_0x2c6b9e,_0x2196c4,_0x3474e2,_0x3eedd5,_0x44c72a,_0x5aafc6,_0x20ed6b,_0x147e49,_0x5d29eb,_0x2d9bfc),Y(0x1,_0x14bfc1(_0x14ee4a)),Y(0x2,_0x153d8f),Y(0x3,_0x389518),Y(0x4,_0x4dadf2)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};