@univerjs-pro/sheets-shape-ui 1.0.0-beta.0 → 1.0.0-beta.2

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 (94) 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/update-shape-data.command.d.ts +1 -0
  62. package/lib/types/commands/operations/shape-ribbon.operation.d.ts +13 -0
  63. package/lib/types/const.d.ts +7 -0
  64. package/lib/types/controllers/shape-contextual-ribbon.controller.d.ts +18 -0
  65. package/lib/types/controllers/shape-sheet-copy-plan.d.ts +16 -0
  66. package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +5 -4
  67. package/lib/types/controllers/ui.controller.d.ts +1 -2
  68. package/lib/types/index.d.ts +1 -1
  69. package/lib/types/locale/en-US.d.ts +1 -0
  70. package/lib/types/menu/schema.d.ts +1 -0
  71. package/lib/types/menu/shape-format-ribbon.menu.d.ts +20 -0
  72. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +2 -3
  73. package/lib/types/views/shape-format-ribbon/SheetsShapeFormatRibbonControls.d.ts +8 -0
  74. package/lib/umd/index.js +1 -1
  75. package/lib/umd/locale/ar-SA.js +1 -1
  76. package/lib/umd/locale/ca-ES.js +1 -1
  77. package/lib/umd/locale/de-DE.js +1 -1
  78. package/lib/umd/locale/en-US.js +1 -1
  79. package/lib/umd/locale/es-ES.js +1 -1
  80. package/lib/umd/locale/fa-IR.js +1 -1
  81. package/lib/umd/locale/fr-FR.js +1 -1
  82. package/lib/umd/locale/id-ID.js +1 -1
  83. package/lib/umd/locale/it-IT.js +1 -1
  84. package/lib/umd/locale/ja-JP.js +1 -1
  85. package/lib/umd/locale/ko-KR.js +1 -1
  86. package/lib/umd/locale/pl-PL.js +1 -1
  87. package/lib/umd/locale/pt-BR.js +1 -1
  88. package/lib/umd/locale/ru-RU.js +1 -1
  89. package/lib/umd/locale/sk-SK.js +1 -1
  90. package/lib/umd/locale/vi-VN.js +1 -1
  91. package/lib/umd/locale/zh-CN.js +1 -1
  92. package/lib/umd/locale/zh-HK.js +1 -1
  93. package/lib/umd/locale/zh-TW.js +1 -1
  94. package/package.json +20 -20
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3a43(){const _0x5ed54d=['VerticalAlign','pushUndoRedo','SheetPermissionCheckController','fillImageSource','PRINTING_COMPONENT_COLLECT','sheet.operation.open-sheet-shape-format-panel','getAdjustNames','ShapeLineTypeEnum','adjName','clip','setAdjustValueByName','38hiGVmU','ISheetDrawingService','_activeAdjustPointList','onSteady','getState','dispose','_findNearestConnectionSite','_currentConnectionTarget','asObservable','setContextValue','selectable','UniverProSheetsShapeUi','updateDocumentStyle','DRAWING_IMAGE','toStringTag','copyType','isLineShape','getUnitId','prstGeom','SHAPE','_getShapeInfo','refreshShapeFillImage','_drawingAddListener','getConnectionInfo','_editingParams$','clear','sectionCanvas','intercept','VIEW_MAIN_LEFT','UniverLicensePlugin','sheets-shape-ui.permission.editErr','ShapeModel','@univerjs/sheets-drawing','_renderManagerService','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isHighlighted','_imageShapeClipController','_addShapeConnectorHandlerObject','clip-','touchDependencies','abs','add','_clearShapeConnectorHandlerObjects','fontFamily','rect','UPDATE','_currentUniverService','substring','fillType','deriveStateFromActiveSheet$','SHEET_SHAPE_UI_PLUGIN','forwardRef','presentationChanged$','_getImageDrawingInfo','cxnPointStroke','includes','_updateSrcRectByTransform','lineShapeId','3572044ZzKeSh','UniverDrawingUi','displayName','useState','disposeWithMe','FlipVerticalIcon','toPrimitive','formulaPresentation','extraProps','univerjs-icon\x20univerjs-icon-','ContextMenuGroup','_createCopyInfoByRange','_sidebarService','clip-adj-','sheet.command.menu-insert-shape','mask','symbol','onCommandExecuted','updateDocumentDataMargin','getUnit','string','_getConnectPointInfo','getCurrentTypeOfUnit$','stroke','_shapeUpdateListener','onTransformChange$','src','ShapePickerDropdown','xlink:href','#bcbcbc','ShapeRenderModeEnum','drawWith','_registerImageShapeClipDelegate','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','VIEW_MAIN_TOP','_drawSimpleText','skeleton','_findShapeAtPoint','classType','title','highlighted','SHEET_VIEWPORT_KEY','_attachAdjustEvent','_shapeId','createElement','_sheetClipboardService','_createControls','_onSavingEditorData$','SELECTOR','executeCommand','_initCopyPaste','scene','enableObjectsEvent','shapeText','transform','_initializedShapePopupMenu','_menuManagerService','_baseTop','getRenderUnitById','_loadAndSetImage','URL','worldPoint','value','version','computeConnectorRouteLayout','isStartConnectorPoint','_registerDrawingMoveHandler','sheets-shape-text-','applyPoint','open','buildShapeTextDataUpdate','_isConnecting','registerFeaturePasteHook','onStarting','FOCUSING_COMMON_DRAWINGS','_createShapeAdjustControls','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','transformForAngle','_activeShapeId','getDrawingVisible','UniverSheetsPlugin','useReducer','getShapeDataById','forEach','SetDrawingArrangeCommand','disableObjectsEvent','connector-handler-','getDrawingSearch','UniverDrawing','IconManager','3724488InxMgK','resolveShapeTextEditorWrapStrategy','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','isArray','computeConnectorResizeLayout','_generatePasteMutations','OPERATION','896283XzbCFZ','setShapeProps','_isStartConnectorPoint','current','offsetX','formulaBinding','_cxnIndex','_baseLeft','_generateCutPasteMutations','setShapeData','width','@univerjs-pro/sheets-shape-ui','_renderWithCache','beginPath','_unitId','onDblclick$','refreshFormulaPresentation','delete','MenuItemType','_univerInstanceService','activeSheet$','setPresentation','initTransformer','refreshAdjustControls','SheetSkeletonManagerService','_insertShapes','getPresentation','_groupCopyPasteController','indexOf','UpdateLineShapeResizeCommand','_configService','COMMAND','_generateCopyPasteMutations','clearActiveDrawingObjects','GROUP','adjustValues','drawing.operation.set-drawing-active','div','color','clipHeight','onPointerDown$','resolveShapeTextEditorBehaviorShapeData','setCursor','shapeModel','_isShouldShowDrawingShapeAdjust','UNIVER_SHEET','UpdateSheetsShapeDataMutation','SheetsShapeUIMenuSchema','keys','getSheetBySheetId','ImageSourceTypeEnum','EMPTY','sectionFloating','create','ShapeFillEnum','amd','sheetTransform','useEffect','SHAPE_EDITOR_TRANSFORMER_CONFIG','top-center','flip-horizontal-icon','_attachConnectorObjectEvent','jsxs','_sheetPermissionCheckController','getSkeleton','registerRenderModule','vertical','SetShapeDrawingDataCommand','SheetsShapeService','UniverCore','isRenderLinePointsMode','setPrstGeom','_getShapeAdjustPointListById','sheets-shape-ui.objectListPanel.open','ShapeArrowSizeEnum','_sheetPrintInterceptorService','UniverSheetsDrawingUi','_clipService','computeStraightConnectorLayout','panel','ShapeDefaultConfig','attachPopupToObject','setEditing','getObject','strokeWidth','currentColor','_currentScene','_applyFormulaAutoFitSize','_commandService','_injector','registerCommand','_handleFreeEndpointPointerUp','_context','useDependency','_initSelection','find','getDrawingTypeNameKey','Disposable','905952wPHodq','_sheetDrawingShapeRenderController','relation','name','startArrow','memo','remove$','resetCursor','scale','getRealBound','random','ShapeFormulaService','clone','_isHighlighted','getBasicShapeRelation','update$','BehaviorSubject','React','SheetsDrawingGroupCopyPasteController','targetShapeId','VIEW_MAIN_LEFT_TOP','_clearControls','undo','_localeService','RENDER_CLASS_TYPE','ShapeGroupEnum','shouldClipShapeTextDocument','@univerjs-pro/shape-editor-ui','@univerjs/core','sheetViewStartColumn','Vector2','getTransformer','slice','UniverDocsUIPlugin','_executeConnectionCommand','restore','FOCUSING_SHAPE_TEXT_EDITOR','length','SheetScrollManagerService','generateRandomId','parse','_showConnectionSites','_baseDrawingRect','sin','getObjectListPanelTypeName','SolidFill','drawingType','start','unsubscribe','getBatchAddOp','_disposePopups','RemoveSheetsShapeMutation','getOwnPropertyDescriptor','hidden','#FFFFFF','_index','VIEW_MAIN','getDrawingPoints','_closeShapeEditPanel','UniverEngineRender','getStartConnectInfo','@univerjs-pro/license','calcAdjValues','LEFT','_openShapeEditPanel','rotation','text','@univerjs-pro/sheets-shape','clearControl$','from','pipe','translate','getEndConnectInfo','getObjectListPanelSectionIdForDrawingType','_rerouteConnectorLine','updateContext','@univerjs/engine-render','InsertSheetsShapeMutation','getUnitType','wrapStrategy','_popupMenuListener','_loadShapePictureFill','shapeData','sheets-shape-ui.insertShape','@univerjs/docs','getActiveSheet','_resetState','_baseShapeHeight','activateDrawingObject','createInternalEditorID','getConnectorLinePoints','sheets-shape-ui.objectListPanel.title','CopySheetCommand','useObservable','_imageIoService','_isImagePointerDown','@univerjs/sheets-ui','useFormulaShapeToolbar','_drawShapeText','url(#$1','useMemo','RibbonInsertGroup','MEDIA','shape-adjust-point-','_addControl','_registerDrawingFocusChangeHandler','_handleFreeEndpointMove','M13.4\x203.3L9.8\x208L13.4\x2012.7V3.3Z','DocSelectionManagerService','tag','attrs','resourceCollector','startX','custom','getDrawingByParam','assign','getCurrentScrollState','SHAPE_TEXT','next','ArrangeTypeEnum','_clearPopups','isEditing','_sheetShapeAdjustController','_formulaAnimation','_activeShapeModel','REMOVE','_sheetBasicShapeConnectionPointController','viewportScrollY','isHitLine','getTransformerByCreate','plainShapeTextToDocumentData','oKey','CURSOR_TYPE','top','useRef','_connectorObjects','addClipboardHook','M2.2\x208H3.8','_highlightedSiteIndex','_shapeService','M8\x202.2V3.8','values','@univerjs/ui','cxnPointFill','reduce','stringify','getShapeTextRect','onSavingEditorData$','removeLinePoints','offsetY','angle','IMenuManagerService','setOnSavingEditorData','FormulaShapeAnimationController','horizontal','end','getAdjustValueByName','Image','_clearConnectionSites','_reset','viewportScrollX','_formulaShapes','UniverProLicense','_contextService','changeEnd$','sheets-shape-ui.flipHorizontal','parent','drawingId','_componentManager','IUniverInstanceService','1em','COPY_TYPE','_registerMoveHandler','lineType','makeDirty','function','sheets-shape-ui.flipVertical','ShapeArrowTypeEnum','_copyInfo','image-clip-adjust-point-','isInGroup','getTextStyle','@univerjs/drawing-ui','_handleConnectedEndpointMove','refreshTransform','addObject','_props','cos','ConnectorCoordinateTransform','insertGroupObject','changing$','getBentTypeFromPoints','default','unitId','getObjectListPanelLabels','use','SetSheetDrawingCommand','getConnectionRelation','UniverInstanceType','shapeId','subscribe','draw','UniverDocs','getShapeType','_getDrawingRect','_cxtHandlerPointerMove','round','0\x200\x2016\x2016','getDrawingShapeKeyByDrawingSearch','_initEvents','subscribeEvent','onPointerUp$','getSheetCommandTarget','interceptor','fill','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_drawingManagerService','push','201988kWeMuW','SheetSkeletonService','getSkeletonParam','getDrawingData','getObjectIncludeInGroup','_createShapePopupMenu','_isDrawingShapePointDown','_updateShapeAdjustControls','UniverSheetsUi','M14\x208H14.2','_shapeTextEditingService','unregister','point','#4285f4','transformByState','setSrcRect','getZoomRatio','with','SetDrawingSelectedOperation','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','setShouldShowAdjust','_getSceneAndTransformerByDrawingSearch','ObjectLayersIcon','BUTTON','getActualSize','path','_baseHeight','onRendered','SheetsSelectionsService','ancestorTransform','entries','_initSheetChange','_executeResizeCommand','1661850DGzCMP','shouldAllowShapeTextEditorHostSizeShrink','M8\x2010.2V11.8','26198xIgOiC','getFocusDrawings','_sheetDrawingService','toDisposable','None','onPointerMove$','_activeTargetShapeId','actualHeight','replace','_registerOperations','sheet.shape.edit.panel','WorksheetEditPermission','merge','isDrawingObject','focusDrawing','CROSSHAIR','SheetDrawingAnchor','isHit','ShapeIcon','setFillImage','_targetShapeId','cxnIndex','_iconManager','RemoveSheetDrawingCommand','getDrawingOrder','left','gradientEndColor','cancelEditing','SheetInterceptorService','DocumentViewModel','_getShapeAdjustInfosById','Path','currentAdjustValues','data','sheet.menu.shape.flip-horizontal','params','composeMatrix','clearAdjustControls','save','DocSelectionRenderService','OBJECT_LIST_FLOATING_SECTION_ID','contentHeight','_insertingShapeKeys','adjHandleFill','colorChannel1','_draw','LocaleService','some','jsx','visible','reverse','onerror','getBasicShapeRotateBound','_registerFocusChangeHandler','pick','ToggleSheetsShapeFlipCommand','_sheetsShapeService','setFormulaPresentation','createShapeFormulaDocument','shape-text-','IContextService','getDrawingOKey','initShapePopupMenu','_drawingType','_baseWidth','trim','getSelectedObjectMap','UniverUi','Shape','startWith','renderDrawingShape','M8\x2014V14.2','flipX','getCurrentUnitOfType','isConnectorShape','onload','FlipHorizontalIcon','univer-box-border\x20univer-px-4\x20univer-text-sm','_calculateFreeEndpointAngle','TOP','IDrawingManagerService','size','getCurrentRangeDisable$','_isOpenedShapeEditPanel','decorate','normalizeShapeTextModel','ShapeTextFloatToolbar','Plugin','clearAdjustValue','_clearShapeAdjustControls','transformToDrawingPosition','_config','completeEditing','height','M2.6\x203.3L6.2\x208L2.6\x2012.7V3.3Z','isCurvedConnectorShape','CommandType','_baseShapeWidth','Line','sheet.menu.shape.flip-vertical','adjHandleSize','_initMenu','object','_shapeEditPanelVersion','extensionGroups','sheet.shape.text.float-menu','UniverProEngineShape','register','ICommandService','description','UniverRenderEnginePlugin','calculate','_focusedDrawings','UniverSheetsDrawingPlugin','getValue','setHighlighted','shapeKey','getShapeTextData','UUID','IImageIoService','idSuffix','UNIVER_DOC','updateLinePoints','_initCommands','@univerjs-pro/engine-shape','InsertShapeCommand','getImage','sheet.operation.close-sheet-shape-format-panel','pluginName','DrawingImageClipService','Large','getParent','translateWithPrecision','isHorizontal','normal','_shapeFormulaService','UniverSheetsUIPlugin','prototype','updateShapeFillImage','ShapeTypeEnum','cxnPointStrokeWidth','multiply','map','_initPrinting','_draggingConnectorId','CUT','getShapeModel','DocumentDataModel','SheetShapeTextEditorContainer','DRAWING_OBJECT_LAYER_INDEX','getCurrentSkeleton','dataModel','isRichText','image','IRenderManagerService','doc','srcRect','UniverIcon','getInterceptPoints','sheet.image-clip.shape-picker.component','endConnectionDetection','UniverSheetsShapeUIPlugin','DRAWING_SHAPE','setCanUseShapeClip','_updateAdjustControlPositions','getMatrix','_getZoomRatio','editingParams$','localToWorld','_formulaKey','get','FromArray','cxnPointRadius','_updateImageAdjValues','DrawingTypeEnum','UniverProShapeEditor','defineProperty','ComponentManager','fillImageSourceType','_cxtHandlerPointerUp','HorizontalAlign','resolveShapeTextDocumentRenderLayout','stopPropagation','StraightConnector1','order','setConfig','Module','INSERT','getDrawingDataForUnit','animationEnabled','getDrawingEditable','render','SolidLine','getBatchRemoveOp','_getImagePrstGeom','_executeConnectedRouteResizeCommand','_subUnitId','clipByShape','switchMap','_addShapeAdjustControl','_adjHandlerPointerMove','worldPoints','getTextModel','blockExecuteWithoutPermission','getConnectionSiteList','Inject','_activeShapeInfo','_sheetCanvasPopManagerService','sheets-shape-ui.formatShape','ShapeFloatingToolbar','_getScrollInfo','changeShapeType','defs','react/jsx-runtime','_isStartAdjusting','5WugJiv','contentVerticalOffset','index','getAutoFitPresentations','_baseShapeTop','ISidebarService','getAllUnitsForType','_activeAdjustInfo','fontSize','worldRect','changeStart$','startY','_getOrCreateShapeModel','focus$','invert','complete','children','objects','_connectionSiteObjects','_drawRichText','flip-vertical-icon','_initPermission','rxjs','http://www.w3.org/2000/svg','_handleConnectorPointerUp','_adjHandlerPointerUp','syncExecuteCommand','SetDrawingApplyMutation','_transform','getImageSourceCache','getShapeData','error','_sheetSkeletonService','getViewportByCell','_registerComponents','_shapes','close','resize','DrawingApplyType','_drawRichTextLayer','has','_sidebarDisposable','packageName','_initialize','routeConnectorLineShape','_lastEditingShapeKey','_initEditingParams','filter','flipY','setPrstGeomAdjValues','getMenuHiddenObservable','_urlImageService','attachTransformerTo','UpdateConnectorRelationCommand','UniverSheets','IUndoRedoService','attachRangeWithCoord','endArrow','_baseShapeLeft','_hasReset','_activeShapeAdjustPointList','_init','OTHERS','popup','subUnitId','set','getCurrentUnitInfo','getEditing','PictureFill','toString','sheetViewStartRow','_transformCalculateSrcRect','object-layers-icon','_executeConnectedRouteConnectionCommand','_addShapeConnectorHandlerObjects','_sheetInterceptorService','Transform','_commandExecutedListener','doc.image-clip.shape-picker.component','_activeImageId','_handleConnectedEndpointPointerUp','sheet.shape.picker.component','_registerIcons','none','UniverProShapeEditorUi','viewBound','_adjName','_moveConnectorWithShape','_getConnectionSiteAngle'];_0x3a43=function(){return _0x5ed54d;};return _0x3a43();}function _0x3419(_0xe5bb33,_0x4d1b86){_0xe5bb33=_0xe5bb33-0x1e5;const _0x3a43d9=_0x3a43();let _0x34198c=_0x3a43d9[_0xe5bb33];return _0x34198c;}(function(_0x5544a2,_0x2a970d){const _0x509618=_0x3419,_0xd744c7=_0x5544a2();while(!![]){try{const _0x3dc392=-parseInt(_0x509618(0x203))/0x1*(-parseInt(_0x509618(0x33e))/0x2)+-parseInt(_0x509618(0x3da))/0x3+parseInt(_0x509618(0x516))/0x4*(parseInt(_0x509618(0x2da))/0x5)+parseInt(_0x509618(0x200))/0x6+-parseInt(_0x509618(0x379))/0x7+-parseInt(_0x509618(0x43c))/0x8+parseInt(_0x509618(0x3d3))/0x9;if(_0x3dc392===_0x2a970d)break;else _0xd744c7['push'](_0xd744c7['shift']());}catch(_0x202833){_0xd744c7['push'](_0xd744c7['shift']());}}}(_0x3a43,0x4d561),function(_0x5b1f19,_0x520572){const _0x360c07=_0x3419;typeof exports=='object'&&typeof module<'u'?_0x520572(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('react')):typeof define==_0x360c07(0x4eb)&&define[_0x360c07(0x411)]?define(['exports',_0x360c07(0x4ca),_0x360c07(0x27f),'@univerjs-pro/shape-editor',_0x360c07(0x47f),_0x360c07(0x458),'@univerjs/sheets','@univerjs/drawing',_0x360c07(0x488),_0x360c07(0x49c),_0x360c07(0x2f0),_0x360c07(0x457),_0x360c07(0x4f2),_0x360c07(0x2d8),_0x360c07(0x479),_0x360c07(0x490),'@univerjs/docs-ui',_0x360c07(0x35e),'@univerjs/sheets-drawing-ui','react'],_0x520572):(_0x5b1f19=typeof globalThis<'u'?globalThis:_0x5b1f19||self,_0x520572(_0x5b1f19[_0x360c07(0x349)]={},_0x5b1f19[_0x360c07(0x246)],_0x5b1f19[_0x360c07(0x26d)],_0x5b1f19[_0x360c07(0x2b2)],_0x5b1f19['UniverProSheetsShape'],_0x5b1f19[_0x360c07(0x41f)],_0x5b1f19[_0x360c07(0x310)],_0x5b1f19[_0x360c07(0x3d1)],_0x5b1f19[_0x360c07(0x477)],_0x5b1f19[_0x360c07(0x1e7)],_0x5b1f19[_0x360c07(0x2f0)],_0x5b1f19[_0x360c07(0x32e)],_0x5b1f19[_0x360c07(0x37a)],_0x5b1f19[_0x360c07(0x44d)],_0x5b1f19[_0x360c07(0x4de)],_0x5b1f19[_0x360c07(0x506)],_0x5b1f19['UniverDocsUi'],_0x5b1f19['UniverSheetsDrawing'],_0x5b1f19[_0x360c07(0x426)],_0x5b1f19[_0x360c07(0x44d)]));}(this,function(_0x25c657,_0xa79fa1,_0x42b1e0,_0x1a0005,_0x308292,_0x5ee564,_0x417e5f,_0xba406a,_0x1dacf6,_0x17a3f5,_0xee79c5,_0x16d6cd,_0x5d451e,_0x202144,_0x54ca2b,_0xfaa137,_0x5dc0ea,_0x2c2d11,_0x253ecd,_0x3b23e2){const _0x3f4941=_0x3419;Object[_0x3f4941(0x2b3)](_0x25c657,Symbol[_0x3f4941(0x34c)],{'value':_0x3f4941(0x2bd)});function _0x48fc27(_0x4cae09,_0x20b5eb){const _0x35690d=_0x3f4941;let _0x349168={};for(let _0x4b1a96 of Object[_0x35690d(0x40a)](_0x20b5eb)){let _0x2e056b=_0x20b5eb[_0x4b1a96],_0x37e703=_0x4cae09[_0x4b1a96];if(_0x2e056b!==void 0x0){if(_0x37e703===void 0x0){_0x349168[_0x4b1a96]=void 0x0;continue;}typeof _0x2e056b==_0x35690d(0x269)&&_0x2e056b&&!Array[_0x35690d(0x3d6)](_0x2e056b)&&typeof _0x37e703=='object'&&_0x37e703&&!Array[_0x35690d(0x3d6)](_0x37e703)?_0x349168[_0x4b1a96]=_0x48fc27(_0x37e703,_0x2e056b):_0x349168[_0x4b1a96]=_0x37e703;}}return _0x349168;}let _0x3fa252={'type':_0x5ee564[_0x3f4941(0x263)][_0x3f4941(0x3f9)],'id':'sheet.command.update-shape-data','handler':(_0xd7287e,_0x44f0d9)=>{const _0x4dc609=_0x3f4941;let _0x17077e=_0xd7287e['get'](_0x308292[_0x4dc609(0x41e)]),{unitId:_0xabd054,subUnitId:_0x240382,shapeType:_0x84aa64,shapeId:_0x6e726f,shapeData:_0x36cee3,oldShapeJSON:_0x290b25}=_0x44f0d9;if(!_0x17077e['getShapeModel'](_0xabd054,_0x240382,_0x6e726f))return!0x1;let _0x519c11=_0xd7287e[_0x4dc609(0x2ad)](_0x5ee564[_0x4dc609(0x26f)]),_0x2d051b=_0xd7287e[_0x4dc609(0x2ad)](_0x5ee564[_0x4dc609(0x311)]),{oldShapeType:_0x5f3f71,oldShapeData:_0x97a72b={}}=_0x290b25,_0x26be19=_0x48fc27(_0x97a72b,_0x36cee3||{}),_0x396944={'id':_0x308292['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0xabd054,'subUnitId':_0x240382,'shapeId':_0x6e726f,'shapeType':_0x84aa64,'shapeData':_0x36cee3}},_0x2015a6={'id':_0x308292[_0x4dc609(0x408)]['id'],'params':{'unitId':_0xabd054,'subUnitId':_0x240382,'shapeId':_0x6e726f,'shapeType':_0x5f3f71,'shapeData':_0x26be19}};return _0x519c11[_0x4dc609(0x2f4)](_0x396944['id'],_0x396944[_0x4dc609(0x226)])?(_0x2d051b[_0x4dc609(0x334)]({'unitID':_0xabd054,'undoMutations':[_0x2015a6],'redoMutations':[_0x396944]}),!0x0):!0x1;}};function _0x5920b8(_0x40db29,_0x1b7e43,_0x239407,_0x4210dc,_0x343bdd,_0x120706){const _0x336110=_0x3f4941;let _0x4cc03f={'unitId':_0x1b7e43,'subUnitId':_0x239407,'shapeId':_0x4210dc,'shapeData':_0x120706,'oldShapeJSON':_0x343bdd};return _0x40db29[_0x336110(0x3aa)](_0x3fa252['id'],_0x4cc03f);}function _0x5b2127(_0x3c6865,_0x30e582,_0x42a85d,_0x30c03f,_0x28fd38,_0x4ece1d){let _0x11e4d2={'unitId':_0x30e582,'subUnitId':_0x42a85d,'shapeId':_0x30c03f,'shapeData':_0x4ece1d,'oldShapeJSON':_0x28fd38};return _0x3c6865['executeCommand'](_0x3fa252['id'],_0x11e4d2);}function _0x201368(_0x1fdbf4){'@babel/helpers - typeof';const _0x1fd919=_0x3f4941;return _0x201368=typeof Symbol==_0x1fd919(0x4eb)&&typeof Symbol['iterator']==_0x1fd919(0x389)?function(_0x56f503){return typeof _0x56f503;}:function(_0x199b65){const _0x55dea1=_0x1fd919;return _0x199b65&&typeof Symbol==_0x55dea1(0x4eb)&&_0x199b65['constructor']===Symbol&&_0x199b65!==Symbol[_0x55dea1(0x28c)]?'symbol':typeof _0x199b65;},_0x201368(_0x1fdbf4);}function _0x5525f1(_0x38c79e,_0x37eb25){const _0x4924c9=_0x3f4941;if(_0x201368(_0x38c79e)!=_0x4924c9(0x269)||!_0x38c79e)return _0x38c79e;var _0x4ac974=_0x38c79e[Symbol[_0x4924c9(0x37f)]];if(_0x4ac974!==void 0x0){var _0x53ecbe=_0x4ac974['call'](_0x38c79e,_0x37eb25||_0x4924c9(0x4fc));if(_0x201368(_0x53ecbe)!=_0x4924c9(0x269))return _0x53ecbe;throw TypeError(_0x4924c9(0x361));}return(_0x37eb25===_0x4924c9(0x38d)?String:Number)(_0x38c79e);}function _0x1271cf(_0x341cad){const _0x3eb9a3=_0x3f4941;var _0x25886e=_0x5525f1(_0x341cad,_0x3eb9a3(0x38d));return _0x201368(_0x25886e)==_0x3eb9a3(0x389)?_0x25886e:_0x25886e+'';}function _0xaf91f4(_0x36d4db,_0x2c1392,_0x4db34f){const _0x584453=_0x3f4941;return(_0x2c1392=_0x1271cf(_0x2c1392))in _0x36d4db?Object[_0x584453(0x2b3)](_0x36d4db,_0x2c1392,{'value':_0x4db34f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36d4db[_0x2c1392]=_0x4db34f,_0x36d4db;}function _0x49c229(_0x3c92e2,_0x146d2b,_0x556832){const _0x12ccbc=_0x3f4941;let _0x17c8d0=(0x0,_0x16d6cd[_0x12ccbc(0x403)])(_0x3c92e2,{..._0x146d2b,'dataModel':{..._0x146d2b[_0x12ccbc(0x29a)]??{},..._0x556832?{'doc':_0x556832}:null}}),_0x307ee1=(0x0,_0x16d6cd[_0x12ccbc(0x3d4)])(_0x17c8d0);return{'clip':(0x0,_0x16d6cd[_0x12ccbc(0x456)])(_0x17c8d0,_0x307ee1),'wrapStrategy':_0x307ee1};}var _0x264c5f=class extends _0x1dacf6[_0x3f4941(0x247)]{constructor(_0x65f535,_0x192520){const _0x54018b=_0x3f4941;super(_0x65f535,_0x192520),_0xaf91f4(this,_0x54018b(0x4f6),void 0x0),_0xaf91f4(this,_0x54018b(0x4b7),new _0x16d6cd[(_0x54018b(0x4d5))](()=>this[_0x54018b(0x4ea)](!0x0),()=>this[_0x54018b(0x431)]())),_0xaf91f4(this,_0x54018b(0x321),!0x0),_0xaf91f4(this,_0x54018b(0x242),_0x5ee564[_0x54018b(0x2b1)][_0x54018b(0x2a5)]),_0xaf91f4(this,_0x54018b(0x210),!0x0),this[_0x54018b(0x4f6)]={..._0x192520},this[_0x54018b(0x4b7)][_0x54018b(0x3ef)](_0x192520['formulaPresentation'],_0x192520['animateFormulaPresentation']!==!0x1),this[_0x54018b(0x317)](),this['_applyFormulaAutoFitSize']();}[_0x3f4941(0x317)](){const _0x2bece1=_0x3f4941;this[_0x2bece1(0x392)][_0x2bece1(0x50e)](_0xa3149b=>{const _0x24262b=_0x2bece1;this[_0x24262b(0x377)](_0xa3149b);});}[_0x3f4941(0x421)](_0x31d36f){const _0x5912ec=_0x3f4941;this[_0x5912ec(0x4f6)][_0x5912ec(0x350)]=_0x31d36f;}[_0x3f4941(0x42c)](_0x4e157a){const _0x5c79bf=_0x3f4941;this[_0x5c79bf(0x4f6)][_0x5c79bf(0x4b5)]=_0x4e157a,this[_0x5c79bf(0x4ea)](!0x0);}[_0x3f4941(0x23c)](_0x3f3e72,_0x5d17f=!0x0){const _0x2fff29=_0x3f4941;this[_0x2fff29(0x4b7)]['setPresentation'](_0x3f3e72,_0x5d17f),this['_props'][_0x2fff29(0x380)]=_0x3f3e72,this[_0x2fff29(0x431)](),this[_0x2fff29(0x4ea)](!0x0);}[_0x3f4941(0x431)](){const _0x3007eb=_0x3f4941;let _0xd0af89=this[_0x3007eb(0x4f6)]['shapeModel'],_0x55ded8=_0xd0af89[_0x3007eb(0x278)](),_0x119d9d=(0x0,_0x16d6cd[_0x3007eb(0x258)])(_0x55ded8==null?void 0x0:_0x55ded8['dataModel']),_0x2d9499=_0x119d9d==null?void 0x0:_0x119d9d[_0x3007eb(0x29e)],_0x2b93ec=this['_formulaAnimation'][_0x3007eb(0x2dd)]();if(!_0x2d9499||_0x2b93ec[_0x3007eb(0x461)]===0x0)return;_0xd0af89[_0x3007eb(0x487)]({'width':this[_0x3007eb(0x3e4)],'height':this['height']});let _0x281df3=(0x0,_0x16d6cd['resolveFormulaShapeAutoFitSize'])({'documentData':_0x2b93ec[_0x3007eb(0x291)](_0x3665ea=>(0x0,_0x1a0005[_0x3007eb(0x23d)])(_0x2d9499,_0x3665ea)),'height':this[_0x3007eb(0x260)],'shapeData':_0xd0af89[_0x3007eb(0x2f8)](),'textRect':_0xd0af89[_0x3007eb(0x4ce)]({'left':0x0,'top':0x0,'width':this['width'],'height':this[_0x3007eb(0x260)]}),'width':this[_0x3007eb(0x3e4)]});if(_0x281df3){var _0x347232;this[_0x3007eb(0x2ff)](_0x281df3[_0x3007eb(0x3e4)],_0x281df3['height']),(_0x347232=this['getScene']())==null||(_0x347232=_0x347232[_0x3007eb(0x45b)]())==null||_0x347232['debounceRefreshControls']();}}get[_0x3f4941(0x4fd)](){return this['_props']['unitId'];}get[_0x3f4941(0x31a)](){const _0x13032f=_0x3f4941;return this[_0x13032f(0x4f6)][_0x13032f(0x31a)];}[_0x3f4941(0x377)](_0x5b3825){const _0x3db327=_0x3f4941;if(this[_0x3db327(0x4f6)][_0x3db327(0x29f)]==null||!this[_0x3db327(0x321)])return;let {width:_0x615b90,height:_0x4dcec9}=this,{width:_0x49cc54=0x0,height:_0x21fcba=0x0}=_0x5b3825['preValue'],{left:_0x153269=0x0,top:_0x49eefb=0x0,right:_0x4ff4b1=0x0,bottom:_0x140368=0x0}=this[_0x3db327(0x4f6)][_0x3db327(0x29f)],_0x3b0f9c=_0x153269,_0x5d1a12=_0x49eefb,_0x57b5f8=_0x4ff4b1,_0x1968c4=_0x140368,_0x4da58a=!0x1;if(_0x49cc54!==0x0&&_0x49cc54!==_0x615b90){let _0x1edcf9=_0x153269/_0x49cc54,_0x58ad20=_0x4ff4b1/_0x49cc54;_0x3b0f9c=_0x615b90*_0x1edcf9,_0x57b5f8=_0x615b90*_0x58ad20,_0x4da58a=!0x0;}if(_0x21fcba!==0x0&&_0x21fcba!==_0x4dcec9){let _0x41c4cf=_0x49eefb/_0x21fcba,_0x1fe71f=_0x140368/_0x21fcba;_0x5d1a12=_0x4dcec9*_0x41c4cf,_0x1968c4=_0x4dcec9*_0x1fe71f,_0x4da58a=!0x0;}_0x4da58a&&this['setSrcRect']({'left':_0x3b0f9c,'top':_0x5d1a12,'right':_0x57b5f8,'bottom':_0x1968c4});}[_0x3f4941(0x1ee)](_0x2d04cf){const _0x18121d=_0x3f4941;this[_0x18121d(0x4f6)]['srcRect']=_0x2d04cf,this[_0x18121d(0x4ea)](!0x0);}[_0x3f4941(0x216)](_0x145c5b){const _0x4dc000=_0x3f4941;this[_0x4dc000(0x4f6)][_0x4dc000(0x29c)]=_0x145c5b,this[_0x4dc000(0x4ea)](!0x0);}set[_0x3f4941(0x3af)](_0x994fea){const _0x29b08d=_0x3f4941;this[_0x29b08d(0x2f6)]=_0x994fea;}get['transform'](){const _0x31e98b=_0x3f4941;this[_0x31e98b(0x2f6)]||this['_setTransForm']();let _0x5be335=this['_transform'][_0x31e98b(0x448)]();return this[_0x31e98b(0x3c6)](_0x5be335);}get[_0x3f4941(0x405)](){const _0x414748=_0x3f4941;return this[_0x414748(0x4f6)][_0x414748(0x405)];}get[_0x3f4941(0x503)](){return this['_props']['shapeId'];}get[_0x3f4941(0x39f)](){const _0x3738e5=_0x3f4941;return _0x1dacf6[_0x3738e5(0x454)][_0x3738e5(0x351)];}['_draw'](_0x1e2525,_0x45f0b0,_0x6b4d6e,_0x5b4bdb){const _0x31b58d=_0x3f4941;let _0x2ae840=this['_props']['shapeModel'];if(!_0x2ae840||!_0x45f0b0)return;let _0x410cb2=_0x6b4d6e??this[_0x31b58d(0x3e4)],_0x1c791d=_0x5b4bdb??this[_0x31b58d(0x260)],_0xc27159={'shapeType':_0x2ae840[_0x31b58d(0x507)](),'width':_0x410cb2,'height':_0x1c791d},_0x39015a={'renderMode':_0x42b1e0[_0x31b58d(0x397)][_0x31b58d(0x222)],'oKey':this[_0x31b58d(0x4bf)],'image':this[_0x31b58d(0x4f6)][_0x31b58d(0x29c)],'angle':this[_0x31b58d(0x4d2)]};_0x2ae840[_0x31b58d(0x487)](_0xc27159),_0x1e2525[_0x31b58d(0x229)]();let _0x58e8c6={'top':0x0,'left':0x0,'width':_0x410cb2,'height':_0x1c791d},_0x236168=_0x2ae840['getDrawingEffectBounds'](_0x58e8c6);_0x236168?this[_0x31b58d(0x3e6)](_0x1e2525,_0x236168,_0x379b73=>{const _0x38e514=_0x31b58d;_0x2ae840[_0x38e514(0x2c2)](_0x379b73,_0x58e8c6,_0x39015a);}):(this['_releaseRenderCache'](),_0x2ae840['render'](_0x1e2525,_0x58e8c6,_0x39015a)),_0x1e2525[_0x31b58d(0x45f)]();let _0x4a0602=_0x2ae840[_0x31b58d(0x278)](),_0x26143c=_0x2ae840[_0x31b58d(0x4ce)](_0x58e8c6),_0x2be8bd=_0x2ae840[_0x31b58d(0x34e)]();if(_0x4a0602&&_0x26143c&&!_0x2be8bd){_0x1e2525[_0x31b58d(0x229)](),this[_0x31b58d(0x342)]()[_0x31b58d(0x24b)]&&_0x1e2525[_0x31b58d(0x444)](-0x1,0x1);let _0xed03e1=_0x410cb2/0x2,_0x35b238=_0x1c791d/0x2;_0x1e2525[_0x31b58d(0x483)](-_0xed03e1,-_0x35b238),_0x1e2525[_0x31b58d(0x3e7)](),this[_0x31b58d(0x49e)](_0x1e2525,_0x4a0602,_0x26143c),_0x1e2525[_0x31b58d(0x45f)]();}}[_0x3f4941(0x475)](_0x48260d){}[_0x3f4941(0x49e)](_0x5af4f5,_0x3e4763,_0x35476e){const _0x4b76f0=_0x3f4941;var _0xe781e6;this[_0x4b76f0(0x4f6)][_0x4b76f0(0x4b5)]||(!((_0xe781e6=_0x3e4763[_0x4b76f0(0x29a)])!=null&&_0xe781e6[_0x4b76f0(0x29e)])&&_0x4b76f0(0x29b)in _0x3e4763&&_0x3e4763[_0x4b76f0(0x29b)]===!0x1?this['_drawSimpleText'](_0x5af4f5,_0x3e4763,_0x35476e):this[_0x4b76f0(0x2ed)](_0x5af4f5,_0x3e4763,_0x35476e));}[_0x3f4941(0x39c)](_0x54636c,_0x23f002,_0xb376d4){const _0x279c68=_0x3f4941;this['_drawRichText'](_0x54636c,{..._0x23f002,'text':_0x23f002[_0x279c68(0x47e)]??'','dataModel':{'doc':(0x0,_0x16d6cd[_0x279c68(0x4be)])(_0x23f002,_0x279c68(0x3bc)+this[_0x279c68(0x4bf)])}},_0xb376d4);}[_0x3f4941(0x2ed)](_0x637118,_0x144251,_0x2e1f3c){(0x0,_0x16d6cd['drawFormulaShapeAnimationLayers'])(_0x637118,this['_formulaAnimation'],(_0x569f98,_0x9eb3f0)=>{const _0x313890=_0x3419;this[_0x313890(0x301)](_0x569f98,_0x144251,_0x2e1f3c,_0x9eb3f0);});}[_0x3f4941(0x301)](_0x3d8dfb,_0x442d40,_0x3dbc95,_0x104f6b){const _0x4e35b3=_0x3f4941;let _0x51aace=this[_0x4e35b3(0x4f6)]['localeService'];if(!_0x442d40[_0x4e35b3(0x29a)]||!_0x51aace)return;let _0x4c7f40=(0x0,_0x16d6cd[_0x4e35b3(0x258)])(_0x442d40[_0x4e35b3(0x29a)]);if(!_0x4c7f40)return;let _0x4d75f6=_0x4c7f40[_0x4e35b3(0x29e)];if(!_0x4d75f6)return;let _0x129d5d=(0x0,_0x1a0005[_0x4e35b3(0x23d)])(_0x4d75f6,_0x104f6b),_0x12a7e2=_0x4c7f40['va']??_0x5ee564[_0x4e35b3(0x333)][_0x4e35b3(0x252)],_0x4e6f08=_0x4c7f40['ha']??_0x5ee564[_0x4e35b3(0x2b7)]['LEFT'],_0x25ed4f=_0x49c229(this[_0x4e35b3(0x4f6)][_0x4e35b3(0x405)][_0x4e35b3(0x2f8)](),_0x442d40,_0x129d5d),_0x2fe24=_0x442d40[_0x4e35b3(0x288)],_0x59d0b9=new _0x5ee564[(_0x4e35b3(0x296))]((0x0,_0x16d6cd['prepareShapeTextDocumentData'])(_0x129d5d,{'isHorizontal':_0x2fe24!==!0x1,'textRect':_0x3dbc95,'verticalAlign':_0x12a7e2,'horizontalAlign':_0x4e6f08,'wrapStrategy':_0x25ed4f[_0x4e35b3(0x48b)]})),_0x2a4475=new _0x1dacf6[(_0x4e35b3(0x220))](_0x59d0b9),_0xd10fd1=_0x1dacf6['DocumentSkeleton'][_0x4e35b3(0x40f)](_0x2a4475,_0x51aace);_0xd10fd1[_0x4e35b3(0x272)]();let _0x83f493=_0xd10fd1[_0x4e35b3(0x1f7)]()[_0x4e35b3(0x20a)],_0x384124=(0x0,_0x16d6cd[_0x4e35b3(0x2b8)])({'contentHeight':_0x83f493,'verticalAlign':_0x12a7e2,'viewportHeight':_0x3dbc95[_0x4e35b3(0x260)]});_0x59d0b9[_0x4e35b3(0x34a)]({'pageSize':{'width':_0x2fe24===!0x1?_0x3dbc95[_0x4e35b3(0x260)]:_0x3dbc95['width'],'height':_0x384124[_0x4e35b3(0x22c)]}}),_0x59d0b9[_0x4e35b3(0x38b)]({'t':_0x384124['marginTop']}),_0xd10fd1['calculate']();let _0x40e21f=new _0x1dacf6['Documents'](_0x4e35b3(0x23e)+this[_0x4e35b3(0x4bf)],_0xd10fd1,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4e35b3(0x4ea)](!0x0)});_0x40e21f[_0x4e35b3(0x2ff)](_0x3dbc95[_0x4e35b3(0x3e4)],_0x384124[_0x4e35b3(0x22c)]),_0x3d8dfb['save'](),_0x3d8dfb[_0x4e35b3(0x287)](_0x3dbc95[_0x4e35b3(0x21c)],_0x3dbc95[_0x4e35b3(0x4c1)]),_0x25ed4f[_0x4e35b3(0x33c)]&&(_0x3d8dfb[_0x4e35b3(0x3e7)](),_0x3d8dfb[_0x4e35b3(0x36b)](0x0,_0x384124['clipTop'],_0x3dbc95[_0x4e35b3(0x3e4)],_0x384124[_0x4e35b3(0x401)]),_0x3d8dfb[_0x4e35b3(0x33c)]()),_0x384124[_0x4e35b3(0x2db)]&&_0x3d8dfb[_0x4e35b3(0x287)](0x0,_0x384124['contentVerticalOffset']),_0x40e21f[_0x4e35b3(0x505)](_0x3d8dfb),_0x3d8dfb[_0x4e35b3(0x45f)](),_0x40e21f['dispose'](),_0xd10fd1['dispose'](),_0x2a4475[_0x4e35b3(0x343)](),_0x59d0b9[_0x4e35b3(0x343)]();}[_0x3f4941(0x2c2)](_0x31a6f7,_0x28f86b,_0x5bfa07=!0x1){const _0x5f33fe=_0x3f4941;if(!this[_0x5f33fe(0x234)])return this['makeDirty'](!0x1),this;let {width:_0x2b185f,height:_0x1cb73b,left:_0x4a1d31,top:_0x8f9ea5}=this,_0x4e6e1e=this['getRealBound']();if(_0x2b185f=_0x4e6e1e['width'],_0x1cb73b=_0x4e6e1e[_0x5f33fe(0x260)],_0x4a1d31=_0x4e6e1e[_0x5f33fe(0x21c)],_0x8f9ea5=_0x4e6e1e[_0x5f33fe(0x4c1)],this['isRender'](_0x28f86b)){let {top:_0x121f8a,left:_0x286b4c,bottom:_0x50c9b2,right:_0x44b4a3}=_0x28f86b[_0x5f33fe(0x32f)];if(_0x2b185f+this[_0x5f33fe(0x42e)]+_0x4a1d31<_0x286b4c||_0x44b4a3<_0x4a1d31||_0x1cb73b+this[_0x5f33fe(0x42e)]+_0x8f9ea5<_0x121f8a||_0x50c9b2<_0x8f9ea5)return this;}let _0x7e2262=_0x4a1d31+_0x2b185f/0x2,_0x1e5752=_0x8f9ea5+_0x1cb73b/0x2,_0x505887=this[_0x5f33fe(0x3af)][_0x5f33fe(0x2a8)]();if(this['_props'][_0x5f33fe(0x4b5)]){let _0x5122b0=this['getState'](),_0x1f9122=new _0x1dacf6[(_0x5f33fe(0x326))]();_0x1f9122[_0x5f33fe(0x227)]({..._0x5122b0}),_0x505887=_0x1f9122[_0x5f33fe(0x2a8)]();}return _0x31a6f7[_0x5f33fe(0x229)](),this[_0x5f33fe(0x4f6)][_0x5f33fe(0x405)][_0x5f33fe(0x420)]===!0x0||_0x31a6f7['transform'](_0x505887[0x0],_0x505887[0x1],_0x505887[0x2],_0x505887[0x3],_0x7e2262,_0x1e5752),this['_draw'](_0x31a6f7,_0x28f86b,_0x2b185f,_0x1cb73b),_0x31a6f7[_0x5f33fe(0x45f)](),this[_0x5f33fe(0x4ea)](!0x1),this;}['getInverseCoord'](_0x4bb0d6){const _0x340295=_0x3f4941;let {left:_0x476695,top:_0x31581b,width:_0x3f93c0,height:_0x737009}=this['getRealBound'](),_0x201b0d=this['transform'][_0x340295(0x2a8)](),_0x4217e1=_0x476695+_0x3f93c0/0x2,_0x255c86=_0x31581b+_0x737009/0x2,_0x61bdac=new _0x1dacf6[(_0x340295(0x326))]([_0x201b0d[0x0],_0x201b0d[0x1],_0x201b0d[0x2],_0x201b0d[0x3],_0x4217e1,_0x255c86]),_0x2bcdfd=this[_0x340295(0x286)]();return(this[_0x340295(0x4f0)]&&(_0x2bcdfd==null?void 0x0:_0x2bcdfd[_0x340295(0x39f)])===_0x1dacf6[_0x340295(0x454)][_0x340295(0x3fc)]?_0x2bcdfd[_0x340295(0x1fc)][_0x340295(0x290)](_0x61bdac):_0x61bdac)[_0x340295(0x2e8)]()['applyPoint'](_0x4bb0d6);}[_0x3f4941(0x214)](_0x5253e8){const _0x1708e2=_0x3f4941;let {left:_0x24d6a9,top:_0x51fae6,width:_0xdc23dd,height:_0x56bed7}=this[_0x1708e2(0x445)](),_0x1f0c1a=_0x24d6a9+_0xdc23dd/0x2,_0x50973a=_0x51fae6+_0x56bed7/0x2,_0x5d026c=this[_0x1708e2(0x3af)][_0x1708e2(0x2a8)](),_0x320de0=new _0x1dacf6[(_0x1708e2(0x326))]([_0x5d026c[0x0],_0x5d026c[0x1],_0x5d026c[0x2],_0x5d026c[0x3],_0x1f0c1a,_0x50973a]),_0x4e18dd=this[_0x1708e2(0x286)](),_0x5a07e4=(this['isInGroup']&&(_0x4e18dd==null?void 0x0:_0x4e18dd['classType'])===_0x1dacf6[_0x1708e2(0x454)][_0x1708e2(0x3fc)]?_0x4e18dd[_0x1708e2(0x1fc)][_0x1708e2(0x290)](_0x320de0):_0x320de0)[_0x1708e2(0x2e8)]()[_0x1708e2(0x3bd)](_0x5253e8),_0x38ba0f=_0xdc23dd/0x2,_0x536197=_0x56bed7/0x2,_0x4b6eaf=this['_props']['shapeModel'];return _0x4b6eaf&&_0x4b6eaf[_0x1708e2(0x34e)]()?_0x4b6eaf[_0x1708e2(0x4bc)](_0x5a07e4['x'],_0x5a07e4['y'],_0xdc23dd,_0x56bed7):_0x5a07e4['x']>=-_0x38ba0f-this[_0x1708e2(0x42e)]/0x2&&_0x5a07e4['x']<=_0x38ba0f+this['strokeWidth']/0x2&&_0x5a07e4['y']>=-_0x536197-this[_0x1708e2(0x42e)]/0x2&&_0x5a07e4['y']<=_0x536197+this['strokeWidth']/0x2;}[_0x3f4941(0x343)](){const _0x125b54=_0x3f4941;this[_0x125b54(0x4b7)][_0x125b54(0x343)](),this['_props'][_0x125b54(0x405)]=null,super[_0x125b54(0x343)]();}},_0x535df0=class extends _0x1dacf6[_0x3f4941(0x247)]{constructor(_0x3edbd8,_0x1bd71a){const _0x20f8bb=_0x3f4941;super(_0x3edbd8,_0x1bd71a),_0xaf91f4(this,_0x20f8bb(0x3a4),null),_0xaf91f4(this,_0x20f8bb(0x330),null),_0xaf91f4(this,_0x20f8bb(0x3e8),null),_0xaf91f4(this,_0x20f8bb(0x2c7),null),_0x1bd71a&&this[_0x20f8bb(0x3db)](_0x1bd71a);}[_0x3f4941(0x3d0)](){const _0x77ea05=_0x3f4941;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x77ea05(0x3a4)]};}[_0x3f4941(0x3db)](_0xa0508a){const _0x4c580d=_0x3f4941;_0xa0508a[_0x4c580d(0x503)]!==void 0x0&&(this[_0x4c580d(0x3a4)]=_0xa0508a[_0x4c580d(0x503)]),_0xa0508a['adjName']!==void 0x0&&(this[_0x4c580d(0x330)]=_0xa0508a[_0x4c580d(0x33b)]),_0xa0508a[_0x4c580d(0x4fd)]!==void 0x0&&(this[_0x4c580d(0x3e8)]=_0xa0508a[_0x4c580d(0x4fd)]),_0xa0508a[_0x4c580d(0x31a)]!==void 0x0&&(this['_subUnitId']=_0xa0508a[_0x4c580d(0x31a)]),this[_0x4c580d(0x1ed)]({'width':_0xa0508a[_0x4c580d(0x3e4)],'height':_0xa0508a['height']});}[_0x3f4941(0x230)](_0x57a4af){const _0x33bd11=_0x3f4941;_0x1dacf6['Circle'][_0x33bd11(0x398)](_0x57a4af,{'radius':_0x42b1e0['ShapeDefaultConfig'][_0x33bd11(0x267)],'fill':_0x42b1e0['ShapeDefaultConfig'][_0x33bd11(0x22e)],'stroke':_0x42b1e0[_0x33bd11(0x42a)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function _0x2dfb17(_0x5f36f5,_0x2133bc){return function(_0x2ed456,_0x111c71){_0x2133bc(_0x2ed456,_0x111c71,_0x5f36f5);};}function _0x2cf515(_0x18e0e2,_0x241b1d,_0x4ac14d,_0x5e5d4b){const _0x5209eb=_0x3f4941;var _0x1b2c74=arguments[_0x5209eb(0x461)],_0x3cbe93=_0x1b2c74<0x3?_0x241b1d:_0x5e5d4b===null?_0x5e5d4b=Object[_0x5209eb(0x470)](_0x241b1d,_0x4ac14d):_0x5e5d4b,_0x127f8b;if(typeof Reflect==_0x5209eb(0x269)&&typeof Reflect[_0x5209eb(0x257)]=='function')_0x3cbe93=Reflect['decorate'](_0x18e0e2,_0x241b1d,_0x4ac14d,_0x5e5d4b);else{for(var _0x9ea37=_0x18e0e2[_0x5209eb(0x461)]-0x1;_0x9ea37>=0x0;_0x9ea37--)(_0x127f8b=_0x18e0e2[_0x9ea37])&&(_0x3cbe93=(_0x1b2c74<0x3?_0x127f8b(_0x3cbe93):_0x1b2c74>0x3?_0x127f8b(_0x241b1d,_0x4ac14d,_0x3cbe93):_0x127f8b(_0x241b1d,_0x4ac14d))||_0x3cbe93);}return _0x1b2c74>0x3&&_0x3cbe93&&Object[_0x5209eb(0x2b3)](_0x241b1d,_0x4ac14d,_0x3cbe93),_0x3cbe93;}let _0x1a428d=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x2101a3,_0x49e93f,_0x399722,_0x2dd5b2,_0x9cde2d,_0x351658){const _0x15a815=_0x3f4941;super(),this[_0x15a815(0x514)]=_0x2101a3,this['_sheetsShapeService']=_0x49e93f,this[_0x15a815(0x453)]=_0x399722,this[_0x15a815(0x49a)]=_0x2dd5b2,this[_0x15a815(0x30d)]=_0x9cde2d,this[_0x15a815(0x28a)]=_0x351658,_0xaf91f4(this,_0x15a815(0x4dd),new Map()),this[_0x15a815(0x37d)](this[_0x15a815(0x28a)][_0x15a815(0x373)][_0x15a815(0x504)](_0x58b5d7=>{const _0x2f703f=_0x15a815;var _0x5cf276;(_0x5cf276=this[_0x2f703f(0x4dd)]['get'](this[_0x2f703f(0x2ac)](_0x58b5d7[_0x2f703f(0x4fd)],_0x58b5d7[_0x2f703f(0x31a)],_0x58b5d7[_0x2f703f(0x503)])))==null||_0x5cf276[_0x2f703f(0x3cc)](_0x586418=>_0x586418[_0x2f703f(0x23c)](_0x58b5d7['presentation'],_0x58b5d7[_0x2f703f(0x2c0)]));})),this['disposeWithMe'](this[_0x15a815(0x514)][_0x15a815(0x442)][_0x15a815(0x504)](_0x51487e=>{const _0x463a8d=_0x15a815;_0x51487e[_0x463a8d(0x3cc)](_0xf845b4=>{const _0x27bfd0=_0x463a8d;this['_shapeFormulaService'][_0x27bfd0(0x1ea)]({'unitId':_0xf845b4[_0x27bfd0(0x4fd)],'subUnitId':_0xf845b4[_0x27bfd0(0x31a)],'shapeId':_0xf845b4[_0x27bfd0(0x4e3)]}),this['_formulaShapes'][_0x27bfd0(0x3eb)](this[_0x27bfd0(0x2ac)](_0xf845b4[_0x27bfd0(0x4fd)],_0xf845b4[_0x27bfd0(0x31a)],_0xf845b4[_0x27bfd0(0x4e3)]));});}));}[_0x3f4941(0x249)](_0x9e6021,_0x16aca9,_0x1b2b18){const _0x4145fc=_0x3f4941;let {transform:_0x36a17b,drawingType:_0x5a6ab6,srcRect:_0x2801a8,prstGeom:_0x4470ca,groupId:_0x510706,unitId:_0x58b8a2,subUnitId:_0x178e95,drawingId:_0x399ac4,isMultiTransform:_0x2a8e3b,transforms:_0x514efb,hidden:_0x2ff6ab,selectable:_0xa38f89}=_0x9e6021;if(_0x5a6ab6!==_0x5ee564['DrawingTypeEnum'][_0x4145fc(0x2a5)]||!this[_0x4145fc(0x514)][_0x4145fc(0x3c8)]()||_0x36a17b==null)return;let _0x1e0006=this[_0x4145fc(0x514)][_0x4145fc(0x2c1)]();_0x1e0006&&_0x16aca9[_0x4145fc(0x3f0)](_0x16d6cd[_0x4145fc(0x414)]);let _0x25f3da=_0x2a8e3b&&_0x514efb?_0x514efb:[_0x36a17b],_0x323316=[];for(let _0x2733bd of _0x25f3da){let {left:_0x472192,top:_0x3078f5,width:_0x49c842,height:_0x12a925,angle:_0x68913c,flipX:_0x4c4a80,flipY:_0x18e45f,skewX:_0x4ed524,skewY:_0x1eb1de}=_0x2733bd,_0x3475df=_0x25f3da[_0x4145fc(0x3f6)](_0x2733bd),_0x298b69=(0x0,_0xba406a[_0x4145fc(0x50c)])({'unitId':_0x58b8a2,'subUnitId':_0x178e95,'drawingId':_0x399ac4},_0x2a8e3b?_0x3475df:void 0x0),_0x229408=_0x16aca9[_0x4145fc(0x51a)](_0x298b69);if(_0x229408!=null){let _0x4edd9c={'unitId':_0x58b8a2,'subUnitId':_0x178e95,'shapeId':_0x399ac4};_0x229408 instanceof _0x264c5f&&this['refreshFormulaPresentation'](_0x229408,_0x4edd9c),_0x229408[_0x4145fc(0x1ed)]({'left':_0x472192,'top':_0x3078f5,'width':_0x49c842,'height':_0x12a925,'angle':_0x68913c,'flipX':_0x4c4a80,'flipY':_0x18e45f,'skewX':_0x4ed524,'skewY':_0x1eb1de});continue;}let _0x3bda01=this[_0x4145fc(0x514)][_0x4145fc(0x21b)](_0x58b8a2,_0x178e95),_0xe6b796=_0x3bda01[_0x4145fc(0x3f6)](_0x399ac4);if(_0x16aca9[_0x4145fc(0x51a)](_0x298b69)||!this[_0x4145fc(0x514)][_0x4145fc(0x3c8)]())continue;let _0x5e5986=this[_0x4145fc(0x23b)]['getShapeModel'](_0x58b8a2,_0x178e95,_0x399ac4);if(!_0x5e5986)continue;let _0x2bf2e7=(0x0,_0x42b1e0[_0x4145fc(0x24d)])(_0x5e5986[_0x4145fc(0x507)]()),_0x320218=_0x5e5986[_0x4145fc(0x2f8)]()['formulaBinding'],_0x5997cd={'unitId':_0x58b8a2,'subUnitId':_0x178e95,'shapeId':_0x399ac4};_0x320218&&this[_0x4145fc(0x28a)]['register'](_0x5997cd,_0x320218);let _0x413003=new _0x264c5f(_0x298b69,{..._0x2bf2e7?{..._0x2733bd,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x2733bd},'zIndex':_0xe6b796===-0x1?_0x3bda01[_0x4145fc(0x461)]-0x1:_0xe6b796,'shapeModel':_0x5e5986,'localeService':this[_0x4145fc(0x453)],'shapeId':_0x399ac4,'unitId':_0x58b8a2,'subUnitId':_0x178e95,'visible':_0x2ff6ab!==!0x0,'evented':_0xa38f89!==!0x1,'formulaPresentation':_0x320218?this[_0x4145fc(0x28a)][_0x4145fc(0x3f4)](_0x5997cd):void 0x0,'animateFormulaPresentation':(_0x320218==null?void 0x0:_0x320218['animationEnabled'])!==!0x1});if(_0x320218){let _0x502352=this['_formulaKey'](_0x58b8a2,_0x178e95,_0x399ac4),_0x24e0d6=this[_0x4145fc(0x4dd)][_0x4145fc(0x2ad)](_0x502352)??new Set();_0x24e0d6[_0x4145fc(0x368)](_0x413003),this[_0x4145fc(0x4dd)][_0x4145fc(0x31b)](_0x502352,_0x24e0d6);}_0x16aca9[_0x4145fc(0x4f5)](_0x413003,_0x1dacf6['DRAWING_OBJECT_LAYER_INDEX']),_0x1e0006&&_0x16aca9[_0x4145fc(0x30e)](_0x413003),_0x510706&&(0x0,_0x5d451e[_0x4145fc(0x4f9)])({'drawingId':_0x510706,'unitId':_0x58b8a2,'subUnitId':_0x178e95},_0x413003,_0x16aca9,this[_0x4145fc(0x514)]),_0x4470ca!=null&&_0x413003['setPrstGeom'](_0x4470ca),_0x2801a8!=null&&_0x413003['setSrcRect'](_0x2801a8);let _0x67ffea=this[_0x4145fc(0x48d)](_0x413003,_0x5e5986['getShapeData']());if(_0x67ffea){var _0x3f8afa;_0x1b2b18==null||(_0x3f8afa=_0x1b2b18[_0x4145fc(0x4ab)])==null||_0x3f8afa[_0x4145fc(0x368)](_0x67ffea);}_0x323316['push'](_0x413003);}return _0x323316;}[_0x3f4941(0x2ac)](_0x4276a8,_0x133f8b,_0x5e9472){return _0x4276a8+'\x00'+_0x133f8b+'\x00'+_0x5e9472;}[_0x3f4941(0x3ea)](_0x4757b7,_0x4e4ff4){const _0x4a5da2=_0x3f4941;let _0x422018=this['_sheetsShapeService'][_0x4a5da2(0x295)](_0x4e4ff4[_0x4a5da2(0x4fd)],_0x4e4ff4[_0x4a5da2(0x31a)],_0x4e4ff4['shapeId']),_0x5acf3a=_0x422018==null?void 0x0:_0x422018[_0x4a5da2(0x2f8)]()[_0x4a5da2(0x3df)],_0x1dcb2f=this[_0x4a5da2(0x2ac)](_0x4e4ff4[_0x4a5da2(0x4fd)],_0x4e4ff4['subUnitId'],_0x4e4ff4[_0x4a5da2(0x503)]);if(_0x5acf3a){this[_0x4a5da2(0x28a)]['register'](_0x4e4ff4,_0x5acf3a);let _0x1e27ec=this[_0x4a5da2(0x4dd)][_0x4a5da2(0x2ad)](_0x1dcb2f)??new Set();_0x1e27ec[_0x4a5da2(0x368)](_0x4757b7),this['_formulaShapes']['set'](_0x1dcb2f,_0x1e27ec);}else{var _0x7dd0b4;this[_0x4a5da2(0x28a)][_0x4a5da2(0x1ea)](_0x4e4ff4),(_0x7dd0b4=this[_0x4a5da2(0x4dd)][_0x4a5da2(0x2ad)](_0x1dcb2f))==null||_0x7dd0b4[_0x4a5da2(0x3eb)](_0x4757b7);}_0x4757b7[_0x4a5da2(0x23c)](_0x5acf3a?this['_shapeFormulaService'][_0x4a5da2(0x3f4)](_0x4e4ff4):void 0x0,(_0x5acf3a==null?void 0x0:_0x5acf3a[_0x4a5da2(0x2c0)])!==!0x1);}[_0x3f4941(0x353)](_0x4657f5){const _0x295c2e=_0x3f4941;let _0x3fc95f=_0x4657f5[_0x295c2e(0x405)][_0x295c2e(0x2f8)](),_0xb865de=_0x3fc95f[_0x295c2e(0x512)];if(!_0xb865de||_0xb865de['fillType']!==_0x42b1e0[_0x295c2e(0x410)][_0x295c2e(0x31e)]||!_0xb865de[_0x295c2e(0x336)]){_0x4657f5[_0x295c2e(0x216)](void 0x0);return;}this[_0x295c2e(0x48d)](_0x4657f5,_0x3fc95f);}[_0x3f4941(0x48d)](_0x2a883f,_0x20fd22){const _0x1b0f5c=_0x3f4941;let _0x5d8c5a=_0x20fd22[_0x1b0f5c(0x512)];if(!_0x5d8c5a||_0x5d8c5a[_0x1b0f5c(0x36f)]!==_0x42b1e0[_0x1b0f5c(0x410)][_0x1b0f5c(0x31e)]||!_0x5d8c5a['fillImageSource'])return;let _0x444081=_0x5d8c5a[_0x1b0f5c(0x336)],_0x1a6621=_0x5d8c5a[_0x1b0f5c(0x2b5)]??_0x42b1e0[_0x1b0f5c(0x40c)][_0x1b0f5c(0x3b5)],_0x3a3366=this[_0x1b0f5c(0x49a)][_0x1b0f5c(0x2f7)](_0x444081,_0x1a6621);if(_0x3a3366){_0x2a883f['setFillImage'](_0x3a3366);return;}return this[_0x1b0f5c(0x3b4)](_0x2a883f,_0x444081,_0x1a6621);}async['_loadAndSetImage'](_0x2a9a7d,_0x968b52,_0x3b57b9){const _0x2f692d=_0x3f4941;let _0x47433e;try{if(_0x3b57b9===_0x42b1e0[_0x2f692d(0x40c)][_0x2f692d(0x279)])_0x47433e=await this['_imageIoService'][_0x2f692d(0x281)](_0x968b52);else{if(_0x3b57b9===_0x42b1e0['ImageSourceTypeEnum'][_0x2f692d(0x3b5)])try{_0x47433e=await this[_0x2f692d(0x30d)][_0x2f692d(0x281)](_0x968b52);}catch{_0x47433e=_0x968b52;}else _0x47433e=_0x968b52;}}catch(_0x17d6a5){console[_0x2f692d(0x2f9)](_0x2f692d(0x39a),_0x17d6a5);return;}await new Promise(_0x3e4c3b=>{const _0x3dca7a=_0x2f692d;let _0x42ccd2=new window[(_0x3dca7a(0x4d9))]();_0x42ccd2[_0x3dca7a(0x24e)]=()=>{const _0x2ca85b=_0x3dca7a;this[_0x2ca85b(0x49a)]['addImageSourceCache'](_0x968b52,_0x3b57b9,_0x42ccd2),_0x2a9a7d['setFillImage'](_0x42ccd2),_0x3e4c3b();},_0x42ccd2[_0x3dca7a(0x236)]=()=>{const _0x317b86=_0x3dca7a;console[_0x317b86(0x2f9)](_0x317b86(0x3c5),_0x968b52),_0x3e4c3b();},_0x42ccd2[_0x3dca7a(0x393)]=_0x47433e;});}};_0x1a428d=_0x2cf515([_0x2dfb17(0x0,_0xba406a[_0x3f4941(0x253)]),_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x308292['SheetsShapeService'])),_0x2dfb17(0x2,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x5ee564[_0x3f4941(0x231)])),_0x2dfb17(0x3,_0x5ee564[_0x3f4941(0x27a)]),_0x2dfb17(0x4,_0x5ee564['IURLImageService']),_0x2dfb17(0x5,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x1a0005[_0x3f4941(0x447)]))],_0x1a428d);let _0x341b27=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x82870c,_0x5c5956,_0x51217b,_0x502489,_0x48f638,_0x518bee){const _0x363531=_0x3f4941;super(),this[_0x363531(0x514)]=_0x82870c,this[_0x363531(0x23b)]=_0x5c5956,this[_0x363531(0x35f)]=_0x51217b,this[_0x363531(0x43d)]=_0x502489,this[_0x363531(0x3ed)]=_0x48f638,this[_0x363531(0x432)]=_0x518bee,_0xaf91f4(this,_0x363531(0x3c7),null),_0xaf91f4(this,_0x363531(0x3e8),null),_0xaf91f4(this,_0x363531(0x2c7),null),_0xaf91f4(this,'_activeShapeAdjustPointList',void 0x0),_0xaf91f4(this,_0x363531(0x2fd),[]),_0xaf91f4(this,_0x363531(0x314),0x0),_0xaf91f4(this,_0x363531(0x2de),0x0),_0xaf91f4(this,'_baseShapeWidth',0x0),_0xaf91f4(this,_0x363531(0x493),0x0),_0xaf91f4(this,_0x363531(0x2d9),!0x1),_0xaf91f4(this,'_activeAdjustInfo',void 0x0),_0xaf91f4(this,'_activeShapeModel',void 0x0),_0xaf91f4(this,_0x363531(0x2cb),void 0x0),_0xaf91f4(this,_0x363531(0x2f3),void 0x0),_0xaf91f4(this,_0x363531(0x406),!0x1),this[_0x363531(0x4a5)](),this[_0x363531(0x3bb)]();}[_0x3f4941(0x422)](_0x217375,_0x2c1289,_0x161bff){const _0x37d565=_0x3f4941;let _0x4ea9bd=this[_0x37d565(0x23b)]['getShapeModel'](_0x217375,_0x2c1289,_0x161bff);if(_0x4ea9bd)return _0x4ea9bd[_0x37d565(0x475)]();}[_0x3f4941(0x228)](){const _0x20e85c=_0x3f4941;this[_0x20e85c(0x25c)]();}[_0x3f4941(0x3f1)](){const _0x49a0fd=_0x3f4941;this[_0x49a0fd(0x1e6)](!0x0);}[_0x3f4941(0x1f3)](_0x286d2d){const _0x51964f=_0x3f4941;this[_0x51964f(0x406)]=_0x286d2d;}[_0x3f4941(0x221)](_0xdbd7ec,_0x5e9a90,_0x14e340,_0x4106dd){let _0x5e899d=this['_sheetsShapeService']['getShapeModel'](_0xdbd7ec,_0x5e9a90,_0x14e340);if(_0x5e899d)return _0x5e899d['getAdjustInfoByName'](_0x4106dd);}[_0x3f4941(0x3c4)](_0x3be7ae=!0x1){const _0xbd3983=_0x3f4941;if(this['_unitId']===null||this[_0xbd3983(0x2c7)]===null||this[_0xbd3983(0x3c7)]===null)return;let _0x2e5dd2=this[_0xbd3983(0x35f)][_0xbd3983(0x3b3)](this[_0xbd3983(0x3e8)]);if(!_0x2e5dd2||!_0x2e5dd2['with'](_0x17a3f5['SheetSkeletonManagerService'])[_0xbd3983(0x299)]())return;let {scene:_0x3c0d05}=_0x2e5dd2,_0x3c74be={'unitId':this[_0xbd3983(0x3e8)],'subUnitId':this[_0xbd3983(0x2c7)],'drawingId':this[_0xbd3983(0x3c7)]},_0x896dbc=this[_0xbd3983(0x514)]['getDrawingByParam'](_0x3c74be),{transform:_0x5695fa}=_0x896dbc;if(!_0x5695fa||_0x896dbc['drawingType']!==_0x5ee564[_0xbd3983(0x2b1)]['DRAWING_SHAPE'])return;let {left:_0x4ae25e,top:_0x1006e4,width:_0x358577,height:_0x1b8e32,flipX:_0x57a38b,flipY:_0x46f4b9,angle:_0x4bd73e=0x0}=_0x5695fa;if(_0x4ae25e===void 0x0||_0x1006e4===void 0x0)return;if(_0x3be7ae){let _0x4e0dd1=this['_sheetsShapeService']['getShapeModel'](this[_0xbd3983(0x3e8)],this[_0xbd3983(0x2c7)],this[_0xbd3983(0x3c7)]);_0x4e0dd1==null||_0x4e0dd1[_0xbd3983(0x487)]({'width':_0x358577??0x0,'height':_0x1b8e32??0x0}),this['_activeShapeAdjustPointList']=_0x4e0dd1==null?void 0x0:_0x4e0dd1[_0xbd3983(0x475)]();}let _0x47c081=this[_0xbd3983(0x316)];for(let _0x5226a2=0x0;_0x5226a2<_0x47c081[_0xbd3983(0x461)];_0x5226a2++){let _0x3be286=_0x47c081[_0x5226a2],_0x3ce0ae=_0x3be286['x'],_0x2d504a=_0x3be286['y'];if(_0x57a38b&&(_0x3ce0ae=(_0x358577||0x0)-_0x3ce0ae),_0x46f4b9&&(_0x2d504a=(_0x1b8e32||0x0)-_0x2d504a),_0x4bd73e!==0x0){let _0xb37fd=(_0x358577||0x0)/0x2,_0x377cdb=(_0x1b8e32||0x0)/0x2,_0x52fba7=_0x4bd73e*Math['PI']/0xb4,_0x2f89b1=Math[_0xbd3983(0x4f7)](_0x52fba7),_0x1e0ad0=Math[_0xbd3983(0x467)](_0x52fba7),_0x39e1e9=_0x3ce0ae-_0xb37fd,_0x27239a=_0x2d504a-_0x377cdb;_0x3ce0ae=_0xb37fd+(_0x39e1e9*_0x2f89b1-_0x27239a*_0x1e0ad0),_0x2d504a=_0x377cdb+(_0x39e1e9*_0x1e0ad0+_0x27239a*_0x2f89b1);}let _0x1f6bdc={'x':_0x3ce0ae,'y':_0x2d504a,'adjName':_0x3be286['adjName']};this[_0xbd3983(0x2ca)](_0x3c0d05,_0x1f6bdc,_0x1f6bdc[_0xbd3983(0x33b)],_0x4ae25e,_0x1006e4,this[_0xbd3983(0x3e8)],this[_0xbd3983(0x2c7)]);}}['_updateShapeAdjustControls'](_0x39cc8b=!0x1){const _0x39c84b=_0x3f4941;_0x39cc8b&&(this['_clearShapeAdjustControls'](),this[_0x39c84b(0x3c4)](_0x39cc8b));}[_0x3f4941(0x2ca)](_0x550dac,_0x4221ae,_0x17b718,_0x4ff156,_0x333be4,_0x3268d9,_0xead4ad){const _0x1fd059=_0x3f4941;if(!this[_0x1fd059(0x3c7)])return;let _0xcb827a=_0x550dac[_0x1fd059(0x51a)](_0x1fd059(0x4a3)+this[_0x1fd059(0x3c7)]+'-'+_0x17b718);if(_0xcb827a){_0xcb827a[_0x1fd059(0x1ed)]({'left':_0x4221ae['x']+_0x4ff156-_0x42b1e0[_0x1fd059(0x42a)][_0x1fd059(0x267)],'top':_0x4221ae['y']+_0x333be4-_0x42b1e0[_0x1fd059(0x42a)][_0x1fd059(0x267)]});return;}let _0x420d91={'left':_0x4221ae['x']+_0x4ff156-_0x42b1e0[_0x1fd059(0x42a)][_0x1fd059(0x267)],'top':_0x4221ae['y']+_0x333be4-_0x42b1e0[_0x1fd059(0x42a)]['adjHandleSize'],'adjName':_0x17b718,'shapeId':this[_0x1fd059(0x3c7)],'unitId':_0x3268d9,'subUnitId':_0xead4ad,'width':_0x42b1e0['ShapeDefaultConfig'][_0x1fd059(0x267)]+0x8,'height':_0x42b1e0[_0x1fd059(0x42a)][_0x1fd059(0x267)]+0x8,'zIndex':_0x1dacf6[_0x1fd059(0x298)]+0x1,'evented':!0x0},_0x2a1641=new _0x535df0(_0x1fd059(0x4a3)+this[_0x1fd059(0x3c7)]+'-'+_0x17b718,_0x420d91);this[_0x1fd059(0x2fd)][_0x1fd059(0x515)](_0x2a1641),this[_0x1fd059(0x3a3)](_0x2a1641,_0x550dac,_0x17b718),_0x550dac[_0x1fd059(0x4f5)](_0x2a1641,_0x1dacf6[_0x1fd059(0x298)]+0x1);}['_clearShapeAdjustControls'](){const _0x405c7a=_0x3f4941;this[_0x405c7a(0x2fd)]['length']!==0x0&&(this[_0x405c7a(0x2fd)][_0x405c7a(0x3cc)](_0x2273f5=>{const _0x5c08d6=_0x405c7a;_0x2273f5[_0x5c08d6(0x343)]();}),this['_shapes']=[]);}[_0x3f4941(0x2a7)](){const _0x41ba6a=_0x3f4941;this[_0x41ba6a(0x3c4)]();}['_getScrollInfo'](_0x32198c,_0x53290d){const _0x5c7e37=_0x3f4941;var _0x5331d4;let _0x26342b={'x':0x0,'y':0x0};if(!_0x32198c||!_0x53290d)return _0x26342b;let _0x52de4f=this[_0x5c7e37(0x35f)][_0x5c7e37(0x3b3)](_0x32198c);if(!_0x52de4f||!_0x52de4f[_0x5c7e37(0x1f0)](_0x17a3f5[_0x5c7e37(0x3f2)])[_0x5c7e37(0x41a)](_0x53290d))return _0x26342b;let _0x12850b=_0x52de4f[_0x5c7e37(0x1f0)](_0x17a3f5[_0x5c7e37(0x462)]),_0x35b625=_0x12850b==null?void 0x0:_0x12850b[_0x5c7e37(0x4b0)]();if(!_0x35b625)return _0x26342b;let _0x1c21c1=(_0x5331d4=this[_0x5c7e37(0x3ed)][_0x5c7e37(0x38c)](_0x32198c))==null?void 0x0:_0x5331d4['getSheetBySheetId'](_0x53290d);if(!_0x1c21c1)return _0x26342b;let _0x2ac121=(0x0,_0x17a3f5['getViewportByCell'])(_0x35b625[_0x5c7e37(0x320)],_0x35b625[_0x5c7e37(0x459)],_0x52de4f[_0x5c7e37(0x3ac)],_0x1c21c1);return _0x2ac121?{'x':_0x2ac121['viewportScrollX'],'y':_0x2ac121[_0x5c7e37(0x4bb)]}:_0x26342b;}[_0x3f4941(0x2a9)](_0x3a01a4,_0x2d4c8c){const _0x3badcb=_0x3f4941;var _0x3c660f;let _0x3cb4a3=(_0x3c660f=this[_0x3badcb(0x3ed)][_0x3badcb(0x38c)](_0x3a01a4))==null?void 0x0:_0x3c660f[_0x3badcb(0x40b)](_0x2d4c8c);return(_0x3cb4a3==null?void 0x0:_0x3cb4a3[_0x3badcb(0x1ef)]())??0x1;}[_0x3f4941(0x3a3)](_0x2b96e6,_0x5ac1c7,_0x236de2){const _0x41589d=_0x3f4941;this[_0x41589d(0x37d)]((0x0,_0x5ee564[_0x41589d(0x206)])(_0x2b96e6[_0x41589d(0x402)][_0x41589d(0x50e)]((_0x1428a8,_0x506946)=>{const _0x39838e=_0x41589d;var _0x41a70c,_0x136f8f,_0x31ab19,_0x29451f;let _0x4d996b=_0x2b96e6['getDrawingSearch']();this[_0x39838e(0x2e1)]=this['_getShapeAdjustInfosById'](_0x4d996b[_0x39838e(0x4fd)],_0x4d996b[_0x39838e(0x31a)],_0x4d996b['drawingId'],_0x236de2),this['_activeShapeModel']=this[_0x39838e(0x23b)][_0x39838e(0x295)](_0x4d996b['unitId'],_0x4d996b[_0x39838e(0x31a)],_0x4d996b[_0x39838e(0x4e3)]);let _0x4139e6=this[_0x39838e(0x514)][_0x39838e(0x4ae)]({'unitId':this[_0x39838e(0x3e8)],'subUnitId':this[_0x39838e(0x2c7)],'drawingId':this[_0x39838e(0x3c7)]}),{transform:_0x20de3e}=_0x4139e6;if(_0x20de3e){let {left:_0x39252e,top:_0x1f2578,width:_0xb00622,height:_0x1e65f7}=_0x20de3e;this[_0x39838e(0x314)]=_0x39252e||0x0,this[_0x39838e(0x2de)]=_0x1f2578||0x0,this[_0x39838e(0x264)]=_0xb00622||0x0,this['_baseShapeHeight']=_0x1e65f7||0x0;}let _0x53fb73=!!((_0x41a70c=_0x4139e6[_0x39838e(0x3af)])!=null&&_0x41a70c[_0x39838e(0x24b)]),_0x51f6c5=!!((_0x136f8f=_0x4139e6[_0x39838e(0x3af)])!=null&&_0x136f8f['flipY']),_0x31693e=((_0x31ab19=_0x4139e6['transform'])==null?void 0x0:_0x31ab19[_0x39838e(0x4d2)])||0x0;this['_isStartAdjusting']=!0x0,_0x5ac1c7[_0x39838e(0x3ce)]();let _0x317e52={...((_0x29451f=this['_activeAdjustInfo'])==null?void 0x0:_0x29451f[_0x39838e(0x223)])??{}};this[_0x39838e(0x2cb)]=_0x5ac1c7[_0x39838e(0x208)][_0x39838e(0x50e)]((_0x39a0bd,_0x43d7c4)=>{const _0x14f7f4=_0x39838e;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2f13aa,offsetY:_0x4b4e82}=_0x39a0bd,_0x461f86=this[_0x14f7f4(0x2e1)];if(this[_0x14f7f4(0x4b8)]&&_0x461f86){_0x5ac1c7[_0x14f7f4(0x3ce)](),_0x5ac1c7[_0x14f7f4(0x404)](_0x1dacf6[_0x14f7f4(0x4c0)]['CROSSHAIR']);let _0x77d5a0={'left':0x0,'top':0x0,'width':this[_0x14f7f4(0x264)],'height':this['_baseShapeHeight']},_0xfd8740=this['_getScrollInfo'](this['_unitId'],this[_0x14f7f4(0x2c7)]),_0x32a7dd=this[_0x14f7f4(0x2a9)](this['_unitId'],this['_subUnitId']),_0x2a6c24=_0x2f13aa/_0x32a7dd+_0xfd8740['x']-this[_0x14f7f4(0x314)],_0x587b54=_0x4b4e82/_0x32a7dd+_0xfd8740['y']-this['_baseShapeTop'];if(_0x31693e!==0x0){let _0x597639=this[_0x14f7f4(0x264)]/0x2,_0x56d88d=this[_0x14f7f4(0x493)]/0x2,_0x1f160a=_0x31693e*Math['PI']/0xb4,_0x4cd07f=Math[_0x14f7f4(0x4f7)](_0x1f160a),_0x1e5a2f=Math[_0x14f7f4(0x467)](_0x1f160a),_0x29a7a7=_0x2a6c24-_0x597639,_0x560907=_0x587b54-_0x56d88d;_0x2a6c24=_0x597639+(_0x29a7a7*_0x4cd07f+_0x560907*_0x1e5a2f),_0x587b54=_0x56d88d+(-_0x29a7a7*_0x1e5a2f+_0x560907*_0x4cd07f);}_0x53fb73&&(_0x2a6c24=this[_0x14f7f4(0x264)]-_0x2a6c24),_0x51f6c5&&(_0x587b54=this[_0x14f7f4(0x493)]-_0x587b54);let _0x4e12c4={'x':_0x2a6c24,'y':_0x587b54},_0x54f17e=this[_0x14f7f4(0x4b8)][_0x14f7f4(0x47a)](_0x77d5a0,_0x4e12c4,_0x461f86,_0x53fb73,_0x51f6c5);if(Object['keys'](_0x54f17e)['length']===0x0)return;for(let [_0x990066,_0x532853]of Object['entries'](_0x54f17e))this[_0x14f7f4(0x4b8)][_0x14f7f4(0x33d)](_0x990066,_0x532853);this[_0x14f7f4(0x4b8)][_0x14f7f4(0x487)]({'width':this['_baseShapeWidth'],'height':this[_0x14f7f4(0x493)]});let _0x1e28de=this[_0x14f7f4(0x514)][_0x14f7f4(0x4ae)]({'unitId':_0x4d996b[_0x14f7f4(0x4fd)],'subUnitId':_0x4d996b[_0x14f7f4(0x31a)],'drawingId':_0x4d996b[_0x14f7f4(0x4e3)]});_0x1e28de&&(this[_0x14f7f4(0x43d)]['renderDrawingShape'](_0x1e28de,_0x5ac1c7),this[_0x14f7f4(0x316)]=this[_0x14f7f4(0x422)](_0x4d996b['unitId'],_0x4d996b[_0x14f7f4(0x31a)],_0x4d996b['drawingId']),this[_0x14f7f4(0x2a7)]());}_0x43d7c4[_0x14f7f4(0x2b9)]();}),this[_0x39838e(0x2f3)]=_0x5ac1c7['onPointerUp$'][_0x39838e(0x50e)]((_0x29e920,_0x251b3b)=>{const _0x48f350=_0x39838e;this[_0x48f350(0x2cb)]['unsubscribe'](),this[_0x48f350(0x2f3)][_0x48f350(0x46c)](),_0x5ac1c7[_0x48f350(0x443)]();let _0x397a1e=this['_activeAdjustInfo'];if(_0x397a1e){let _0x39529b=_0x4d996b['unitId'],_0x3d71cd=_0x4d996b[_0x48f350(0x31a)],_0x53cb87=_0x4d996b[_0x48f350(0x4e3)],_0x28540a={};for(let _0x2f45ec of Object['keys'](_0x397a1e[_0x48f350(0x223)])){var _0x17eea5;let _0x4adf93=(_0x17eea5=this[_0x48f350(0x4b8)])==null?void 0x0:_0x17eea5[_0x48f350(0x4d8)](_0x2f45ec);_0x4adf93!==void 0x0&&(_0x28540a[_0x2f45ec]=_0x4adf93);}Object[_0x48f350(0x40a)](_0x28540a)['length']>0x0&&_0x5920b8(this[_0x48f350(0x432)],_0x39529b,_0x3d71cd,_0x53cb87,{'oldShapeData':{'adjustValues':_0x317e52}},{'adjustValues':_0x28540a});}this[_0x48f350(0x2e1)]=void 0x0,this['_activeShapeModel']=void 0x0,this['_isStartAdjusting']=!0x1,_0x251b3b['stopPropagation'](),_0x5ac1c7[_0x48f350(0x3ad)]();}),_0x506946[_0x39838e(0x2b9)]();})));}[_0x3f4941(0x3bb)](){const _0x2eb39d=_0x3f4941;let _0xf696a9=this[_0x2eb39d(0x3ed)]['getCurrentTypeOfUnit$'](_0x5ee564[_0x2eb39d(0x502)][_0x2eb39d(0x407)]);this[_0x2eb39d(0x37d)](_0xf696a9[_0x2eb39d(0x482)]((0x0,_0xee79c5['switchMap'])(_0x3592a1=>_0x3592a1?_0x3592a1[_0x2eb39d(0x3ee)]['pipe']((0x0,_0xee79c5[_0x2eb39d(0x2c9)])(_0x136001=>{const _0x51696f=_0x2eb39d;if(!_0x136001)return _0xee79c5[_0x51696f(0x40d)];let _0x26803a=_0x3592a1[_0x51696f(0x34f)](),_0x17aad8=this[_0x51696f(0x35f)][_0x51696f(0x3b3)](_0x26803a),_0x566442=_0x17aad8==null?void 0x0:_0x17aad8[_0x51696f(0x3ac)];return _0x566442?(0x0,_0xee79c5['of'])(_0x566442):_0xee79c5[_0x51696f(0x40d)];})):_0xee79c5[_0x2eb39d(0x40d)]))['subscribe'](_0x16b3f8=>{const _0x1ecce8=_0x2eb39d;let _0x22e0d0=_0x16b3f8['getTransformerByCreate']();this[_0x1ecce8(0x37d)](_0x16b3f8[_0x1ecce8(0x208)]['subscribeEvent'](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x1ecce8(0x37d)](_0x22e0d0[_0x1ecce8(0x2e4)][_0x1ecce8(0x504)](_0x4a2dc9=>{const _0xf7a89b=_0x1ecce8;let {objects:_0x3ae9db}=_0x4a2dc9;this[_0xf7a89b(0x3c4)](),_0x3ae9db!==null&&_0x3ae9db[_0xf7a89b(0x254)]===0x1&&_0x3ae9db[_0xf7a89b(0x4c9)]()[_0xf7a89b(0x4b2)]()[_0xf7a89b(0x3b7)]instanceof _0x264c5f&&this[_0xf7a89b(0x1f3)](!0x0);})),this[_0x1ecce8(0x37d)](_0x22e0d0[_0x1ecce8(0x4fa)]['subscribe'](()=>{const _0x3d7fb6=_0x1ecce8;this['_isShouldShowDrawingShapeAdjust']&&this[_0x3d7fb6(0x25c)]();})),this['disposeWithMe'](_0x16b3f8[_0x1ecce8(0x50f)]['subscribeEvent'](()=>{const _0x33f7f3=_0x1ecce8;this[_0x33f7f3(0x406)]&&(this[_0x33f7f3(0x1f3)](!0x1),this[_0x33f7f3(0x3c4)]());})),this['disposeWithMe'](_0x22e0d0[_0x1ecce8(0x4e0)]['subscribe'](()=>{const _0x54b828=_0x1ecce8;this[_0x54b828(0x3e8)]&&this['_subUnitId']&&this[_0x54b828(0x3c7)]&&this[_0x54b828(0x514)]['getDrawingByParam']({'unitId':this[_0x54b828(0x3e8)],'subUnitId':this[_0x54b828(0x2c7)],'drawingId':this['_activeShapeId']})&&(this[_0x54b828(0x316)]=this[_0x54b828(0x422)](this[_0x54b828(0x3e8)],this[_0x54b828(0x2c7)],this[_0x54b828(0x3c7)]),this[_0x54b828(0x2a7)]());}));}));}[_0x3f4941(0x4a5)](){const _0x4c04ab=_0x3f4941;this['disposeWithMe'](this[_0x4c04ab(0x432)]['onCommandExecuted'](_0x121145=>{const _0x170542=_0x4c04ab;if(_0x121145['id']!==_0x308292[_0x170542(0x408)]['id'])return;let {unitId:_0x880f52,subUnitId:_0x2e243f,shapeId:_0x261534}=_0x121145[_0x170542(0x226)];_0x880f52===this[_0x170542(0x3e8)]&&_0x2e243f===this[_0x170542(0x2c7)]&&_0x261534===this[_0x170542(0x3c7)]&&this[_0x170542(0x3f1)]();})),this[_0x4c04ab(0x37d)](this[_0x4c04ab(0x514)][_0x4c04ab(0x2e7)][_0x4c04ab(0x504)](_0x364d47=>{const _0x2de019=_0x4c04ab;if(_0x364d47['length']===0x1){let _0x4b6820=_0x364d47[0x0];if(_0x4b6820['drawingType']===_0x5ee564[_0x2de019(0x2b1)][_0x2de019(0x2a5)]&&this[_0x2de019(0x3ed)][_0x2de019(0x48a)](_0x4b6820[_0x2de019(0x4fd)])===_0x5ee564[_0x2de019(0x502)][_0x2de019(0x407)]){this[_0x2de019(0x3c7)]=_0x4b6820[_0x2de019(0x4e3)];let {unitId:_0x402abb,subUnitId:_0x1b0e58}=_0x4b6820;this[_0x2de019(0x316)]=this[_0x2de019(0x422)](_0x402abb,_0x1b0e58,this[_0x2de019(0x3c7)]),this[_0x2de019(0x3e8)]=_0x402abb,this[_0x2de019(0x2c7)]=_0x1b0e58,this[_0x2de019(0x25c)](),this[_0x2de019(0x3c4)]();return;}}this[_0x2de019(0x3c7)]=null,this[_0x2de019(0x316)]=void 0x0,this[_0x2de019(0x3e8)]=null,this[_0x2de019(0x2c7)]=null,this[_0x2de019(0x25c)]();})),this[_0x4c04ab(0x37d)](this[_0x4c04ab(0x514)][_0x4c04ab(0x44b)][_0x4c04ab(0x504)](_0x5618c8=>{const _0x4da9dc=_0x4c04ab;if(_0x5618c8['length']===0x1){var _0x37b7f0;let _0x413c2a=_0x5618c8[0x0];((_0x37b7f0=this[_0x4da9dc(0x514)][_0x4da9dc(0x4ae)](_0x413c2a))==null?void 0x0:_0x37b7f0[_0x4da9dc(0x46a)])===_0x5ee564[_0x4da9dc(0x2b1)][_0x4da9dc(0x2a5)]&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x4c04ab(0x37d)](this['_drawingManagerService'][_0x4c04ab(0x442)]['subscribe'](_0x519197=>{const _0x29d2a3=_0x4c04ab;for(let _0x5bb8c2 of _0x519197)this['_activeShapeId']===_0x5bb8c2[_0x29d2a3(0x4e3)]&&(this['_activeShapeId']=null,this[_0x29d2a3(0x316)]=void 0x0,this[_0x29d2a3(0x3e8)]=null,this[_0x29d2a3(0x2c7)]=null,this[_0x29d2a3(0x25c)]());}));}};_0x341b27=_0x2cf515([_0x2dfb17(0x0,_0xba406a[_0x3f4941(0x253)]),_0x2dfb17(0x1,(0x0,_0x5ee564['Inject'])(_0x308292[_0x3f4941(0x41e)])),_0x2dfb17(0x2,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x1dacf6[_0x3f4941(0x29d)])),_0x2dfb17(0x3,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x1a428d)),_0x2dfb17(0x4,_0x5ee564[_0x3f4941(0x4e5)]),_0x2dfb17(0x5,_0x5ee564[_0x3f4941(0x26f)])],_0x341b27);let _0x3c9065={'id':_0x3f4941(0x3fe),'type':_0x5ee564[_0x3f4941(0x263)][_0x3f4941(0x3d9)],'handler':(_0x209e72,_0x270adf)=>{const _0x20bb9e=_0x3f4941;let _0x5c87a8=_0x209e72[_0x20bb9e(0x2ad)](_0xba406a[_0x20bb9e(0x253)]),_0x18c306=_0x209e72[_0x20bb9e(0x2ad)](_0x1dacf6[_0x20bb9e(0x29d)]),_0x131fd2=_0x209e72[_0x20bb9e(0x2ad)](_0x341b27);if(_0x270adf==null)return!0x0;if(_0x270adf[_0x20bb9e(0x461)]>0x0){var _0x1de8fb;let _0x2ed535=(_0x1de8fb=_0x18c306['getRenderUnitById'](_0x270adf[0x0][_0x20bb9e(0x4fd)]))==null?void 0x0:_0x1de8fb[_0x20bb9e(0x3ac)];if(_0x2ed535){let {unitId:_0x4fcd0f,subUnitId:_0x3fed04,drawingId:_0x2052fc}=_0x270adf[0x0],_0x67af3e=(0x0,_0xba406a[_0x20bb9e(0x50c)])({'unitId':_0x4fcd0f,'subUnitId':_0x3fed04,'drawingId':_0x2052fc},void 0x0),_0x42e7d0=_0x2ed535[_0x20bb9e(0x51a)](_0x67af3e);if(_0x42e7d0){var _0x407e91;(_0x407e91=_0x18c306[_0x20bb9e(0x3b3)](_0x270adf[0x0]['unitId']))==null||(_0x407e91=_0x407e91[_0x20bb9e(0x3ac)][_0x20bb9e(0x45b)]())==null||_0x407e91['activeAnObject'](_0x42e7d0);}}_0x5c87a8['focusDrawing'](_0x270adf),_0x131fd2[_0x20bb9e(0x1f3)](!0x1);}return!0x0;}},_0x5241d5={'type':_0x5ee564[_0x3f4941(0x263)]['COMMAND'],'id':_0x3f4941(0x387),'handler':async(_0x13fe40,_0x510d7d)=>{const _0x6127ab=_0x3f4941;let _0x1c47b6=(0x0,_0x417e5f[_0x6127ab(0x510)])(_0x13fe40[_0x6127ab(0x2ad)](_0x5ee564['IUniverInstanceService']));if(!_0x1c47b6)return!0x1;let _0x33bcae=_0x13fe40[_0x6127ab(0x2ad)](_0x417e5f[_0x6127ab(0x1fb)])['getCurrentLastSelection']();if(!_0x33bcae)return!0x1;let _0x56e1df=_0x13fe40[_0x6127ab(0x2ad)](_0x5ee564[_0x6127ab(0x26f)]),{unitId:_0x4f89ae,subUnitId:_0x4f6b8f}=_0x1c47b6,{value:_0x3ffd70,enhanceParams:_0x12ae4b}=_0x510d7d,{range:_0x32f813}=_0x33bcae,_0x1f0469={'unitId':_0x4f89ae,'subUnitId':_0x4f6b8f,'shapeType':_0x3ffd70,'range':_0x32f813,'shapeId':(0x0,_0x5ee564[_0x6127ab(0x463)])()};if(_0x12ae4b){let _0xa8a0dc=(0x0,_0x42b1e0['isConnectorShape'])(_0x3ffd70),_0x515eec=_0x3ffd70===_0x42b1e0[_0x6127ab(0x28e)]['Rect'];_0xa8a0dc&&(_0x12ae4b[_0x6127ab(0x440)]||_0x12ae4b[_0x6127ab(0x313)])&&(_0x1f0469[_0x6127ab(0x48e)]={'ln':{'startArrow':_0x12ae4b[_0x6127ab(0x440)]?{'type':_0x42b1e0[_0x6127ab(0x4ed)]['Arrow'],'size':_0x42b1e0[_0x6127ab(0x424)]['Medium']}:void 0x0,'endArrow':_0x12ae4b[_0x6127ab(0x313)]?{'type':_0x42b1e0[_0x6127ab(0x4ed)]['Arrow'],'size':_0x42b1e0['ShapeArrowSizeEnum'][_0x6127ab(0x285)]}:void 0x0}}),_0x515eec&&(_0x12ae4b[_0x6127ab(0x4d6)]||_0x12ae4b['vertical'])&&(_0x1f0469['shapeData']=(0x0,_0x1a0005['createShapeTextBoxShapeData'])({'fill':{'fillType':_0x42b1e0[_0x6127ab(0x410)][_0x6127ab(0x469)],'color':_0x6127ab(0x472)},'isHorizontal':!!_0x12ae4b[_0x6127ab(0x4d6)],'stroke':{'lineStrokeType':_0x42b1e0[_0x6127ab(0x33a)][_0x6127ab(0x2c3)],'width':0x1,'color':_0x6127ab(0x396)}}));}let _0x44506e=_0x56e1df[_0x6127ab(0x2f4)](_0x308292['InsertShapeCommand']['id'],_0x1f0469);return setTimeout(()=>{const _0x43e938=_0x6127ab;_0x56e1df[_0x43e938(0x3aa)](_0x3c9065['id'],[{'unitId':_0x4f89ae,'subUnitId':_0x4f6b8f,'drawingId':_0x1f0469[_0x43e938(0x503)]}]);},0xc8),_0x44506e;}},_0x5d3717=_0x3f4941(0x20d),_0xb8b2e1='sheet.shape.object-list.panel',_0x2348ee='sheet.shape.floating-toolbar',_0x10cd9a=(0x0,_0x5ee564[_0x3f4941(0x495)])(_0x3f4941(0x4b1)),_0x168c6b=_0x3f4941(0x26c),_0x23579a={'id':'sheet.operation.open-shape-object-list-panel','type':_0x5ee564[_0x3f4941(0x263)][_0x3f4941(0x3f9)],'handler':(_0x5325a7,_0x593313)=>{const _0x47a27f=_0x3f4941;let _0x59ab3f=_0x5325a7[_0x47a27f(0x2ad)](_0xa79fa1[_0x47a27f(0x2df)]),_0xa66c0b=_0x5325a7[_0x47a27f(0x2ad)](_0x5ee564[_0x47a27f(0x231)]),_0x283135=_0x5325a7[_0x47a27f(0x2ad)](_0x5ee564[_0x47a27f(0x4e5)]),_0x1957b9=_0x5325a7[_0x47a27f(0x2ad)](_0x5ee564[_0x47a27f(0x26f)]);return(0x0,_0x417e5f[_0x47a27f(0x510)])(_0x283135)?(_0x593313==null?void 0x0:_0x593313[_0x47a27f(0x3b7)])===_0x47a27f(0x2fe)?(_0x59ab3f['close'](_0xb8b2e1),!0x0):(_0x59ab3f['open']({'id':_0xb8b2e1,'header':{'title':_0xa66c0b['t'](_0x47a27f(0x497))},'children':{'label':_0xb8b2e1},'onClose':()=>{const _0x56fae3=_0x47a27f;_0x1957b9[_0x56fae3(0x2f4)](_0xba406a[_0x56fae3(0x1f1)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x12c69b=class extends _0x5ee564['Disposable']{constructor(_0x3989cf,_0xaa26f3){const _0x2f0ce2=_0x3f4941;super(),this[_0x2f0ce2(0x427)]=_0x3989cf,this[_0x2f0ce2(0x514)]=_0xaa26f3,this['_registerImageShapeClipDelegate'](),this['_clipService']['setCanUseShapeClip'](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x2f0ce2(0x427)][_0x2f0ce2(0x2a6)](!0x1)});}[_0x3f4941(0x399)](){const _0x37e905=_0x3f4941;let _0x106ef1=this['_clipService'],_0x4f7f73=new Map(),_0x4ca474=_0x106ef1['registerClipDelegate']((_0x1f6820,_0x19d7fb,_0x3dafcd,_0x3fc10b,_0x58124e)=>{const _0x52cad2=_0x3419;let _0x288534=_0x19d7fb;if(_0x288534===_0x42b1e0[_0x52cad2(0x28e)]['None']||_0x19d7fb===_0x52cad2(0x4ad))return!0x1;try{let _0x2c53c6=_0x4f7f73['get'](_0x19d7fb);return _0x2c53c6||(_0x2c53c6=new _0x42b1e0[(_0x52cad2(0x35d))](_0x288534,_0x52cad2(0x365)+_0x19d7fb),_0x4f7f73[_0x52cad2(0x31b)](_0x19d7fb,_0x2c53c6)),_0x2c53c6[_0x52cad2(0x25b)](),_0x58124e&&Object['keys'](_0x58124e)['length']>0x0&&_0x2c53c6[_0x52cad2(0x3e3)]({'adjustValues':_0x58124e},!0x0),_0x2c53c6['updateContext']({'width':_0x3dafcd,'height':_0x3fc10b}),_0x2c53c6['buildClipPath'](_0x1f6820,{'left':0x0,'top':0x0,'width':_0x3dafcd,'height':_0x3fc10b});}catch{return!0x1;}});this[_0x37e905(0x37d)](_0x4ca474),this[_0x37e905(0x37d)]({'dispose':()=>_0x4f7f73[_0x37e905(0x357)]()});}[_0x3f4941(0x2c8)](_0x4ea94e,_0x35e8c2,_0x226eeb,_0x2f8a47,_0x195e0d){const _0x2ff495=_0x3f4941;let _0x35c415=this['_drawingManagerService'][_0x2ff495(0x519)](_0x4ea94e,_0x35e8c2);if(!_0x35c415[_0x226eeb])return;let _0x1cd2e6={..._0x35c415[_0x226eeb],'prstGeom':_0x2f8a47,'adjustValues':_0x195e0d};this[_0x2ff495(0x514)]['featurePluginUpdateNotification']([_0x1cd2e6]);}};_0x12c69b=_0x2cf515([_0x2dfb17(0x0,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x5d451e[_0x3f4941(0x284)])),_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0xba406a[_0x3f4941(0x253)]))],_0x12c69b);let _0x11e5cc=_0x3f4941(0x32b),_0x7d960a=_0x3f4941(0x2a2);function _0x5cfffc({onShapeClick:_0x5348e0,excludeGroups:_0x5cf36f}){const _0x2d3e74=_0x3f4941;return(0x0,_0x202144[_0x2d3e74(0x233)])(_0x16d6cd['ShapePickerPanel'],{'excludeGroups':_0x5cf36f,'onShapeClick':_0x5348e0,'scrollContainer':_0x2d3e74(0x4e2)});}function _0x1e42cd(){const _0x185d67=_0x3f4941;let _0x2fc92e=(0x0,_0xa79fa1['useDependency'])(_0xba406a[_0x185d67(0x253)]),_0x183f18=(0x0,_0xa79fa1[_0x185d67(0x437)])(_0x12c69b);return(0x0,_0x202144[_0x185d67(0x233)])(_0x16d6cd[_0x185d67(0x394)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x16d6cd[_0x185d67(0x455)][_0x185d67(0x265)]],'onShapeClick':_0x2195ea=>{const _0x52075a=_0x185d67;let _0x2987e2=_0x2fc92e[_0x52075a(0x204)]()[_0x52075a(0x439)](_0x245b4b=>_0x245b4b[_0x52075a(0x46a)]===_0x5ee564['DrawingTypeEnum']['DRAWING_IMAGE']);if(!_0x2987e2)return;let {unitId:_0x1b5893,subUnitId:_0x40f632,drawingId:_0xdb0eb}=_0x2987e2;_0x183f18['clipByShape'](_0x1b5893,_0x40f632,_0xdb0eb,_0x2195ea[_0x52075a(0x360)]);}});}function _0x1d3556(){const _0x57c3d2=_0x3f4941;let _0x4e1a33=(0x0,_0xa79fa1[_0x57c3d2(0x437)])(_0xa79fa1[_0x57c3d2(0x2b4)]),_0x25692d=(0x0,_0xa79fa1[_0x57c3d2(0x437)])(_0xba406a[_0x57c3d2(0x253)]),_0x31f7b8=(0x0,_0xa79fa1[_0x57c3d2(0x437)])(_0x5ee564[_0x57c3d2(0x4e5)]),_0xf86ce=_0x25692d[_0x57c3d2(0x204)]()[0x0],_0xfc115d=_0xf86ce?_0x31f7b8[_0x57c3d2(0x48a)](_0xf86ce[_0x57c3d2(0x4fd)]):void 0x0,_0x865c00=_0xfc115d===_0x5ee564[_0x57c3d2(0x502)]['UNIVER_DOC']?_0x57c3d2(0x328):_0xfc115d===_0x5ee564[_0x57c3d2(0x502)][_0x57c3d2(0x407)]?_0x7d960a:void 0x0,_0x47ec6d=_0x865c00?_0x4e1a33['get'](_0x865c00):void 0x0;return _0x47ec6d?(0x0,_0x202144['jsx'])(_0x47ec6d,{}):null;}function _0x54481e(){const _0x1eaca8=_0x3f4941;let _0x484cad=(0x0,_0xa79fa1[_0x1eaca8(0x437)])(_0x5ee564[_0x1eaca8(0x26f)]);return(0x0,_0x202144[_0x1eaca8(0x233)])(_0x5cfffc,{'onShapeClick':_0x12bbe0=>{const _0xa955b5=_0x1eaca8;_0x484cad[_0xa955b5(0x3aa)](_0x5241d5['id'],{'value':_0x12bbe0['type'],'enhanceParams':{'endArrow':_0x12bbe0[_0xa955b5(0x313)],'startArrow':_0x12bbe0[_0xa955b5(0x440)],'horizontal':_0x12bbe0['horizontal'],'vertical':_0x12bbe0[_0xa955b5(0x41c)]}});}});}function _0x3070e1(_0x3b45e0){const _0xb7dadf=_0x3f4941;let _0x1e4828=_0x3b45e0[_0xb7dadf(0x2ad)](_0x5ee564[_0xb7dadf(0x4e5)]);return{'id':_0x5241d5['id'],'type':_0xa79fa1[_0xb7dadf(0x3ec)][_0xb7dadf(0x3a9)],'selections':[{'label':{'name':_0x11e5cc,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x5241d5['id']}}}],'icon':_0xb7dadf(0x215),'tooltip':_0xb7dadf(0x48f),'activated$':(0x0,_0x17a3f5[_0xb7dadf(0x370)])(_0x1e4828,!0x1,()=>new _0xee79c5['Observable'](_0x4b30d4=>{const _0x21fbd8=_0xb7dadf;_0x4b30d4[_0x21fbd8(0x4b2)](!0x1);})),'hidden$':(0x0,_0xa79fa1[_0xb7dadf(0x30c)])(_0x3b45e0,_0x5ee564[_0xb7dadf(0x502)][_0xb7dadf(0x407)]),'disabled$':(0x0,_0x17a3f5[_0xb7dadf(0x255)])(_0x3b45e0)};}function _0x2e500d(_0x353504){const _0x2e4c3e=_0x3f4941;let _0x14a045=_0x353504['get'](_0x5ee564[_0x2e4c3e(0x4e5)]);return{'id':_0x23579a['id'],'type':_0xa79fa1[_0x2e4c3e(0x3ec)]['BUTTON'],'icon':_0x2e4c3e(0x1f5),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x2e4c3e(0x423),'activated$':(0x0,_0x17a3f5['deriveStateFromActiveSheet$'])(_0x14a045,!0x1,()=>new _0xee79c5['Observable'](_0x32da25=>{const _0x25d9cd=_0x2e4c3e;_0x32da25[_0x25d9cd(0x4b2)](!0x1);})),'hidden$':(0x0,_0xa79fa1[_0x2e4c3e(0x30c)])(_0x353504,_0x5ee564['UniverInstanceType'][_0x2e4c3e(0x407)]),'disabled$':(0x0,_0x17a3f5[_0x2e4c3e(0x255)])(_0x353504)};}let _0x47c5f2=_0x3f4941(0x225),_0x19d09b=_0x3f4941(0x266);function _0x39a199(_0xa35dce){const _0x1c4a2d=_0x3f4941;let _0x156394=_0xa35dce[_0x1c4a2d(0x2ad)](_0xba406a[_0x1c4a2d(0x253)])[_0x1c4a2d(0x204)]();return _0x156394['length']===0x1&&_0x156394[0x0][_0x1c4a2d(0x46a)]===_0x5ee564[_0x1c4a2d(0x2b1)][_0x1c4a2d(0x2a5)]?_0x156394[0x0]:null;}function _0x499b8f(_0x5ae0f8){const _0x3799b9=_0x3f4941;let _0x3d6b9f=_0x5ae0f8[_0x3799b9(0x2ad)](_0xba406a[_0x3799b9(0x253)]);return _0x3d6b9f['focus$'][_0x3799b9(0x482)]((0x0,_0xee79c5[_0x3799b9(0x248)])(_0x3d6b9f['getFocusDrawings']()),(0x0,_0xee79c5[_0x3799b9(0x291)])(_0xc28728=>_0xc28728[_0x3799b9(0x461)]!==0x1||_0xc28728[0x0]['drawingType']!==_0x5ee564[_0x3799b9(0x2b1)][_0x3799b9(0x2a5)]));}function _0x19c973(_0x3585cc){const _0x43d671=_0x3f4941;return{'id':_0x47c5f2,'commandId':_0x308292[_0x43d671(0x23a)]['id'],'type':_0xa79fa1['MenuItemType'][_0x43d671(0x1f6)],'title':_0x43d671(0x4e1),'tooltip':_0x43d671(0x4e1),'icon':'FlipHorizontalIcon','hidden$':_0x499b8f(_0x3585cc),'params':()=>{const _0x2dbad2=_0x43d671;let _0x81faa=_0x39a199(_0x3585cc);return _0x81faa?{'unitId':_0x81faa[_0x2dbad2(0x4fd)],'subUnitId':_0x81faa['subUnitId'],'shapeId':_0x81faa[_0x2dbad2(0x4e3)],'flipH':!0x0}:void 0x0;}};}function _0x2bce5e(_0x4cd93b){const _0x2b4c74=_0x3f4941;return{'id':_0x19d09b,'commandId':_0x308292[_0x2b4c74(0x23a)]['id'],'type':_0xa79fa1['MenuItemType'][_0x2b4c74(0x1f6)],'title':'sheets-shape-ui.flipVertical','tooltip':_0x2b4c74(0x4ec),'icon':_0x2b4c74(0x37e),'hidden$':_0x499b8f(_0x4cd93b),'params':()=>{const _0x533465=_0x2b4c74;let _0x2e047a=_0x39a199(_0x4cd93b);return _0x2e047a?{'unitId':_0x2e047a[_0x533465(0x4fd)],'subUnitId':_0x2e047a[_0x533465(0x31a)],'shapeId':_0x2e047a['drawingId'],'flipV':!0x0}:void 0x0;}};}let _0x1174a0={[_0xa79fa1[_0x3f4941(0x4a1)][_0x3f4941(0x4a2)]]:{[_0x5241d5['id']]:{'order':0x4,'menuItemFactory':_0x3070e1}},[_0xa79fa1['RibbonInsertGroup'][_0x3f4941(0x318)]]:{[_0x23579a['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x2e500d}},[_0xa79fa1['ContextMenuPosition']['DRAWING']]:{[_0xa79fa1[_0x3f4941(0x383)][_0x3f4941(0x318)]]:{[_0x47c5f2]:{'order':0x4,'menuItemFactory':_0x19c973},[_0x19d09b]:{'order':0x5,'menuItemFactory':_0x2bce5e}}}};var _0x57e791=_0x3f4941(0x3e5),_0x400ee0='1.0.0-beta.0';let _0x9092cb={'type':_0x5ee564[_0x3f4941(0x263)]['OPERATION'],'id':_0x3f4941(0x282),'handler'(){return!0x0;}},_0x1ab9c0={'type':_0x5ee564['CommandType'][_0x3f4941(0x3d9)],'id':_0x3f4941(0x338),'handler'(){return!0x0;}},_0x5cd296={};function _0x123d84({ref:_0x4dbd5d,..._0x41fa8e}){const _0x9c526b=_0x3f4941;let {icon:_0x250fcf,id:_0x1c08e4,className:_0x342a9f,extend:_0x3b44a5,..._0xe0608e}=_0x41fa8e,_0x2ea30e=(_0x9c526b(0x382)+_0x1c08e4+'\x20'+(_0x342a9f||''))['trim'](),_0x1a8b75=(0x0,_0x3b23e2[_0x9c526b(0x4c2)])('_'+_0x98641f());return _0x58239e(_0x250fcf,''+_0x1c08e4,{'defIds':_0x250fcf['defIds'],'idSuffix':_0x1a8b75[_0x9c526b(0x3dd)]},{'ref':_0x4dbd5d,'className':_0x2ea30e,..._0xe0608e},_0x3b44a5);}function _0x58239e(_0x14f4cc,_0xad8e04,_0x5c2a06,_0x2220dc,_0x20c874){const _0xf42e00=_0x3f4941;return(0x0,_0x3b23e2[_0xf42e00(0x3a5)])(_0x14f4cc[_0xf42e00(0x4a9)],{'key':_0xad8e04,..._0x4570fe(_0x14f4cc,_0x5c2a06,_0x20c874),..._0x2220dc},(_0x41eff0(_0x14f4cc,_0x5c2a06)[_0xf42e00(0x2ea)]||[])[_0xf42e00(0x291)]((_0x27b17f,_0x51a5b7)=>_0x58239e(_0x27b17f,_0xad8e04+'-'+_0x14f4cc[_0xf42e00(0x4a9)]+'-'+_0x51a5b7,_0x5c2a06,void 0x0,_0x20c874)));}function _0x4570fe(_0x1c480f,_0x2ac131,_0x3f0703){const _0x18b5e9=_0x3f4941;let _0xd09453={..._0x1c480f[_0x18b5e9(0x4aa)]};_0x3f0703!=null&&_0x3f0703[_0x18b5e9(0x22f)]&&_0xd09453[_0x18b5e9(0x512)]===_0x18b5e9(0x22f)&&(_0xd09453[_0x18b5e9(0x512)]=_0x3f0703[_0x18b5e9(0x22f)]),_0x3f0703!=null&&_0x3f0703[_0x18b5e9(0x22f)]&&_0xd09453[_0x18b5e9(0x390)]===_0x18b5e9(0x22f)&&(_0xd09453[_0x18b5e9(0x390)]=_0x3f0703[_0x18b5e9(0x22f)]),_0x1c480f[_0x18b5e9(0x4a9)]===_0x18b5e9(0x388)&&_0xd09453['id']&&(_0xd09453['id']+=_0x2ac131[_0x18b5e9(0x27b)]),Object[_0x18b5e9(0x1fd)](_0xd09453)[_0x18b5e9(0x3cc)](([_0xbf2955,_0x3bc8c8])=>{const _0x5635a4=_0x18b5e9;_0xbf2955===_0x5635a4(0x388)&&typeof _0x3bc8c8==_0x5635a4(0x38d)&&(_0xd09453[_0xbf2955]=_0x3bc8c8[_0x5635a4(0x20b)](/url\(#(.*)\)/,_0x5635a4(0x49f)+_0x2ac131['idSuffix']+')'));});let {defIds:_0x2272d5}=_0x2ac131;return!_0x2272d5||_0x2272d5[_0x18b5e9(0x461)]===0x0?_0xd09453:(_0x1c480f[_0x18b5e9(0x4a9)]===_0x18b5e9(0x4ff)&&_0xd09453[_0x18b5e9(0x395)]&&(_0xd09453[_0x18b5e9(0x395)]+=_0x2ac131[_0x18b5e9(0x27b)]),Object[_0x18b5e9(0x1fd)](_0xd09453)[_0x18b5e9(0x3cc)](([_0x24574b,_0x526a78])=>{const _0xfcbab2=_0x18b5e9;typeof _0x526a78==_0xfcbab2(0x38d)&&(_0xd09453[_0x24574b]=_0x526a78[_0xfcbab2(0x20b)](/url\(#(.*)\)/,_0xfcbab2(0x49f)+_0x2ac131[_0xfcbab2(0x27b)]+')'));}),_0xd09453);}function _0x41eff0(_0x3cf7ad,_0x65c871){const _0x4723da=_0x3f4941;var _0x26bf62;let {defIds:_0x43e094}=_0x65c871;return!_0x43e094||_0x43e094[_0x4723da(0x461)]===0x0?_0x3cf7ad:_0x3cf7ad[_0x4723da(0x4a9)]===_0x4723da(0x2d7)&&(_0x26bf62=_0x3cf7ad[_0x4723da(0x2ea)])!=null&&_0x26bf62[_0x4723da(0x461)]?{..._0x3cf7ad,'children':_0x3cf7ad['children'][_0x4723da(0x291)](_0x42e86d=>typeof _0x42e86d[_0x4723da(0x4aa)]['id']==_0x4723da(0x38d)&&_0x43e094&&_0x43e094[_0x4723da(0x376)](_0x42e86d[_0x4723da(0x4aa)]['id'])?{..._0x42e86d,'attrs':{..._0x42e86d['attrs'],'id':_0x42e86d[_0x4723da(0x4aa)]['id']+_0x65c871[_0x4723da(0x27b)]}}:_0x42e86d)}:_0x3cf7ad;}function _0x98641f(){const _0x4d5e62=_0x3f4941;return Math[_0x4d5e62(0x446)]()[_0x4d5e62(0x31f)](0x24)[_0x4d5e62(0x36e)](0x2,0x8);}_0x123d84[_0x3f4941(0x37b)]=_0x3f4941(0x2a0);let _0x43dd52={'tag':'svg','attrs':{'xmlns':_0x3f4941(0x2f1),'fill':_0x3f4941(0x32d),'viewBox':_0x3f4941(0x50b),'width':_0x3f4941(0x4e6),'height':_0x3f4941(0x4e6)},'children':[{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':_0x3f4941(0x42f),'d':_0x3f4941(0x261),'strokeLinecap':_0x3f4941(0x50a),'strokeLinejoin':_0x3f4941(0x50a),'strokeWidth':1.3}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':_0x3f4941(0x42f),'d':_0x3f4941(0x4a7),'strokeLinecap':_0x3f4941(0x50a),'strokeLinejoin':_0x3f4941(0x50a),'strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3f4941(0x4c8),'strokeLinecap':_0x3f4941(0x50a),'strokeWidth':1.2}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':_0x3f4941(0x42f),'d':'M8\x206.2V7.8','strokeLinecap':_0x3f4941(0x50a),'strokeWidth':1.2}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':_0x3f4941(0x42f),'d':_0x3f4941(0x202),'strokeLinecap':'round','strokeWidth':1.2}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':'currentColor','d':_0x3f4941(0x24a),'strokeLinecap':_0x3f4941(0x50a),'strokeWidth':1.2}}]},_0x1b3f51=(0x0,_0x3b23e2['forwardRef'])(function(_0xe056cd,_0x53d8b4){const _0x82efd1=_0x3f4941;return(0x0,_0x3b23e2[_0x82efd1(0x3a5)])(_0x123d84,Object[_0x82efd1(0x4af)]({},_0xe056cd,{'id':_0x82efd1(0x416),'ref':_0x53d8b4,'icon':_0x43dd52}));});_0x1b3f51[_0x3f4941(0x37b)]='FlipHorizontalIcon';let _0x12b1b5={'tag':'svg','attrs':{'xmlns':_0x3f4941(0x2f1),'fill':_0x3f4941(0x32d),'viewBox':_0x3f4941(0x50b),'width':_0x3f4941(0x4e6),'height':_0x3f4941(0x4e6)},'children':[{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':'currentColor','d':'M3.3\x202.6L8\x206.2L12.7\x202.6H3.3Z','strokeLinecap':_0x3f4941(0x50a),'strokeLinejoin':_0x3f4941(0x50a),'strokeWidth':1.3}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':'currentColor','d':'M3.3\x2013.4L8\x209.8L12.7\x2013.4H3.3Z','strokeLinecap':_0x3f4941(0x50a),'strokeLinejoin':_0x3f4941(0x50a),'strokeWidth':1.3}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':'currentColor','d':_0x3f4941(0x4c5),'strokeLinecap':_0x3f4941(0x50a),'strokeWidth':1.2}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':'currentColor','d':'M6.2\x208H7.8','strokeLinecap':'round','strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x3f4941(0x42f),'d':'M10.2\x208H11.8','strokeLinecap':'round','strokeWidth':1.2}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':'currentColor','d':_0x3f4941(0x1e8),'strokeLinecap':'round','strokeWidth':1.2}}]},_0x52693d=(0x0,_0x3b23e2[_0x3f4941(0x372)])(function(_0x2d66ea,_0x1e6c60){const _0x6487de=_0x3f4941;return(0x0,_0x3b23e2[_0x6487de(0x3a5)])(_0x123d84,Object[_0x6487de(0x4af)]({},_0x2d66ea,{'id':_0x6487de(0x2ee),'ref':_0x1e6c60,'icon':_0x12b1b5}));});_0x52693d['displayName']='FlipVerticalIcon';let _0xb0ffac={'tag':'svg','attrs':{'xmlns':_0x3f4941(0x2f1),'fill':'none','viewBox':_0x3f4941(0x50b),'width':_0x3f4941(0x4e6),'height':_0x3f4941(0x4e6)},'children':[{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':_0x3f4941(0x42f),'d':'M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','strokeLinecap':_0x3f4941(0x50a),'strokeLinejoin':_0x3f4941(0x50a),'strokeWidth':1.3}},{'tag':_0x3f4941(0x1f8),'attrs':{'stroke':_0x3f4941(0x42f),'d':'m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','strokeLinecap':'round','strokeLinejoin':_0x3f4941(0x50a),'strokeWidth':1.3}}]},_0x46fffb=(0x0,_0x3b23e2[_0x3f4941(0x372)])(function(_0x12b647,_0x115d63){const _0xf3d739=_0x3f4941;return(0x0,_0x3b23e2[_0xf3d739(0x3a5)])(_0x123d84,Object[_0xf3d739(0x4af)]({},_0x12b647,{'id':_0xf3d739(0x322),'ref':_0x115d63,'icon':_0xb0ffac}));});_0x46fffb[_0x3f4941(0x37b)]='ObjectLayersIcon';function _0x779c53(_0x3f83f8){const _0x41b9cb=_0x3f4941;return _0x3f83f8[_0x41b9cb(0x244)]()||void 0x0;}function _0x2a3a08(_0x267ef8,_0xbca31a,_0x59e36f){const _0x4f4f52=_0x3f4941;var _0x49cc39;return((_0x49cc39=_0x267ef8[_0x4f4f52(0x43f)])==null?void 0x0:_0x49cc39[_0x4f4f52(0x244)]())||(0x0,_0x5d451e[_0x4f4f52(0x468)])(_0x59e36f,(0x0,_0x16d6cd[_0x4f4f52(0x43a)])(_0x267ef8['drawingType']))+'\x20'+(_0xbca31a+0x1);}function _0x32a7c4(){const _0x2db4f1=_0x3f4941;var _0x71fe91;let _0x453240=(0x0,_0xa79fa1['useDependency'])(_0x5ee564[_0x2db4f1(0x231)]),_0x35f7fc=(0x0,_0xa79fa1[_0x2db4f1(0x437)])(_0x5ee564[_0x2db4f1(0x26f)]),_0x584e48=(0x0,_0xa79fa1[_0x2db4f1(0x437)])(_0x5ee564[_0x2db4f1(0x4e5)]),_0x55505f=(0x0,_0xa79fa1[_0x2db4f1(0x437)])(_0x2c2d11['ISheetDrawingService']),_0x16e256=(0x0,_0xa79fa1[_0x2db4f1(0x437)])(_0xba406a[_0x2db4f1(0x253)]),_0xf84b9e=(0x0,_0xa79fa1['useDependency'])(_0x1dacf6[_0x2db4f1(0x29d)]),[,_0x10fe59]=(0x0,_0x3b23e2[_0x2db4f1(0x3ca)])(_0x2c7df0=>_0x2c7df0+0x1,0x0),_0x4fb8cb=_0x584e48[_0x2db4f1(0x24c)](_0x5ee564[_0x2db4f1(0x502)][_0x2db4f1(0x407)]),_0x36c8c2=(_0x4fb8cb==null?void 0x0:_0x4fb8cb[_0x2db4f1(0x34f)]())??'',_0x9c58d6=(_0x4fb8cb==null||(_0x71fe91=_0x4fb8cb[_0x2db4f1(0x491)]())==null?void 0x0:_0x71fe91['getSheetId']())??'',_0x2e3be1=(0x0,_0xa79fa1[_0x2db4f1(0x499)])(()=>_0x16e256['focus$'],_0x16e256[_0x2db4f1(0x204)](),!0x1,[_0x16e256]);(0x0,_0x3b23e2[_0x2db4f1(0x413)])(()=>{const _0xc1c0b9=_0x2db4f1;let _0x102259=_0x35f7fc['onCommandExecuted'](()=>_0x10fe59());return()=>_0x102259[_0xc1c0b9(0x343)]();},[_0x35f7fc]);let _0x3016de=(0x0,_0x3b23e2['useMemo'])(()=>(0x0,_0x5d451e[_0x2db4f1(0x4fe)])(_0x453240),[_0x453240]),_0x3d9617=_0x36c8c2&&_0x9c58d6?_0x55505f[_0x2db4f1(0x519)](_0x36c8c2,_0x9c58d6):{},_0x460a1c=(_0x36c8c2&&_0x9c58d6?_0x55505f[_0x2db4f1(0x21b)](_0x36c8c2,_0x9c58d6):[])[_0x2db4f1(0x291)](_0x52fae7=>_0x3d9617[_0x52fae7])[_0x2db4f1(0x309)](_0x4cad7e=>!!_0x4cad7e)[_0x2db4f1(0x235)](),_0x3186c2=_0x460a1c[_0x2db4f1(0x4cc)]((_0x261327,_0x1c5ce1)=>(_0x261327[(0x0,_0x5d451e[_0x2db4f1(0x485)])(_0x1c5ce1['drawingType'])]+=0x1,_0x261327),{'canvas':0x0,'floating':0x0}),_0x38ee52={'canvas':0x0,'floating':0x0},_0x12176c=_0x460a1c['map']((_0x2a2fb2,_0x28162b)=>{const _0x2a20be=_0x2db4f1;let _0x248ff1=(0x0,_0x5d451e[_0x2a20be(0x485)])(_0x2a2fb2['drawingType']),_0xeb0f86=_0x248ff1===_0x5d451e[_0x2a20be(0x22b)],_0x57805f=_0x38ee52[_0x248ff1]++;return{'id':_0x2a2fb2[_0x2a20be(0x4e3)],'name':_0x2a3a08(_0x2a2fb2,_0x28162b,_0x453240),'description':_0x2a2fb2['description'],'visible':_0x2a2fb2[_0x2a20be(0x471)]!==!0x0,'selectable':_0x2a2fb2[_0x2a20be(0x348)]!==!0x1,'sectionId':_0x248ff1,'sectionTitle':_0xeb0f86?_0x3016de[_0x2a20be(0x40e)]:_0x3016de[_0x2a20be(0x358)],'capabilities':_0xeb0f86?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xeb0f86&&_0x57805f>0x0,'canMoveBackward':!_0xeb0f86&&_0x57805f<_0x3186c2['canvas']-0x1,'canReorder':!_0xeb0f86};}),_0x5f4a0a=(0x0,_0x3b23e2[_0x2db4f1(0x4a0)])(()=>(_0x2e3be1??[])[_0x2db4f1(0x309)](_0x2f1632=>_0x2f1632[_0x2db4f1(0x4fd)]===_0x36c8c2&&_0x2f1632[_0x2db4f1(0x31a)]===_0x9c58d6)[_0x2db4f1(0x291)](_0x271567=>_0x271567['drawingId']),[_0x2e3be1,_0x9c58d6,_0x36c8c2]),_0x4a62e8=_0x5f4a0a[_0x5f4a0a['length']-0x1]??null,_0x58fe5c=_0x4be63b=>_0x55505f[_0x2db4f1(0x4ae)]({'unitId':_0x36c8c2,'subUnitId':_0x9c58d6,'drawingId':_0x4be63b})??null,_0x307205=async _0x77455a=>{const _0x5383cf=_0x2db4f1;!_0x36c8c2||!_0x77455a[_0x5383cf(0x461)]||await _0x35f7fc[_0x5383cf(0x3aa)](_0x2c2d11[_0x5383cf(0x500)]['id'],{'unitId':_0x36c8c2,'drawings':_0x77455a});},_0x34f1f9=async(_0x479fd5,_0xcfc059)=>{_0x58fe5c(_0x479fd5)&&await _0x307205([{'unitId':_0x36c8c2,'subUnitId':_0x9c58d6,'drawingId':_0x479fd5,..._0xcfc059}]);},_0x53f547=(_0x5947a9,_0x34ffb8)=>{const _0x4288e5=_0x2db4f1;if(!_0x36c8c2||!_0x9c58d6)return;let _0x39c43e=_0x34ffb8?_0x5f4a0a['includes'](_0x5947a9)?_0x5f4a0a['filter'](_0x2b1177=>_0x2b1177!==_0x5947a9):[..._0x5f4a0a,_0x5947a9]:[_0x5947a9];_0x35f7fc['syncExecuteCommand'](_0xba406a['SetDrawingSelectedOperation']['id'],_0x39c43e[_0x4288e5(0x291)](_0x498110=>({'unitId':_0x36c8c2,'subUnitId':_0x9c58d6,'drawingId':_0x498110})));let _0xc168d7=_0x39c43e[_0x39c43e[_0x4288e5(0x461)]-0x1];_0xc168d7?(0x0,_0x16d6cd[_0x4288e5(0x494)])(_0xf84b9e,{'unitId':_0x36c8c2,'subUnitId':_0x9c58d6,'drawingId':_0xc168d7}):(0x0,_0x16d6cd[_0x4288e5(0x3fb)])(_0xf84b9e,_0x36c8c2);},_0x4c86f4=async(_0x5aa6a3,_0x54fad8)=>{const _0x1acdc8=_0x2db4f1;await _0x307205(_0x5aa6a3[_0x1acdc8(0x291)](_0x2e6016=>_0x58fe5c(_0x2e6016))['filter'](_0x5e8af9=>!!_0x5e8af9)['filter'](_0xd3e5fa=>_0xd3e5fa[_0x1acdc8(0x471)]!==!0x0!==_0x54fad8)[_0x1acdc8(0x291)](_0x5444ab=>({'unitId':_0x36c8c2,'subUnitId':_0x9c58d6,'drawingId':_0x5444ab[_0x1acdc8(0x4e3)],'hidden':!_0x54fad8})));},_0x32ec0e=async _0x4be38d=>{const _0x53e36c=_0x2db4f1;let _0x2da741=_0x58fe5c(_0x4be38d);_0x2da741&&await _0x34f1f9(_0x4be38d,{'selectable':_0x2da741[_0x53e36c(0x348)]===!0x1&&void 0x0});},_0x4f006f=async(_0x5188f7,_0x40905e)=>{const _0x1e5bf1=_0x2db4f1;var _0x322df4;let _0x4fc490=_0x779c53(_0x40905e);(((_0x322df4=_0x58fe5c(_0x5188f7))==null?void 0x0:_0x322df4[_0x1e5bf1(0x43f)])??void 0x0)!==_0x4fc490&&await _0x34f1f9(_0x5188f7,{'name':_0x4fc490});},_0x1f9263=async(_0x20c31b,_0x357188)=>{const _0x2be56e=_0x2db4f1;var _0x5bb63c;let _0x3845e3=_0x779c53(_0x357188);(((_0x5bb63c=_0x58fe5c(_0x20c31b))==null?void 0x0:_0x5bb63c[_0x2be56e(0x270)])??void 0x0)!==_0x3845e3&&await _0x34f1f9(_0x20c31b,{'description':_0x3845e3});},_0x4949dc=async(_0x1a9ed0,_0x3d2902)=>{const _0x4207c6=_0x2db4f1;!_0x36c8c2||!_0x9c58d6||await _0x35f7fc['executeCommand'](_0x2c2d11[_0x4207c6(0x3cd)]['id'],{'unitId':_0x36c8c2,'subUnitId':_0x9c58d6,'drawingIds':[_0x1a9ed0],'arrangeType':_0x3d2902});};return!_0x36c8c2||!_0x9c58d6?(0x0,_0x202144['jsx'])(_0x2db4f1(0x3ff),{'className':_0x2db4f1(0x3d5),'children':_0x3016de[_0x2db4f1(0x3a0)]}):(0x0,_0x202144[_0x2db4f1(0x233)])(_0x5d451e['ObjectListPanelBase'],{'items':_0x12176c,'selectedIds':_0x5f4a0a,'focusedId':_0x4a62e8,'labels':_0x3016de,'onSelect':_0x53f547,'onSetVisible':_0x4c86f4,'onCommitName':_0x4f006f,'onCommitDescription':_0x1f9263,'onMoveForward':async _0x4e53ee=>_0x4949dc(_0x4e53ee,_0x5ee564[_0x2db4f1(0x4b3)]['forward']),'onMoveBackward':async _0x3112ca=>_0x4949dc(_0x3112ca,_0x5ee564[_0x2db4f1(0x4b3)]['backward']),'onToggleSelectable':_0x32ec0e});}let _0x391f15=class{constructor(_0x18fec0){const _0x4f3503=_0x3f4941;this[_0x4f3503(0x35f)]=_0x18fec0;}['updateShapeFillImage'](_0x5a0dfa,_0xa38ea5){const _0x3139df=_0x3f4941;let _0x48b5a0=this['_renderManagerService']['getRenderUnitById'](_0x5a0dfa[_0x3139df(0x4fd)]),_0x3ce5e0=_0x48b5a0==null?void 0x0:_0x48b5a0[_0x3139df(0x3ac)];if(!_0x3ce5e0)return;let _0x3f5c18=(0x0,_0xba406a[_0x3139df(0x50c)])(_0x5a0dfa),_0x4e96ac=_0x3ce5e0['getObjectIncludeInGroup'](_0x3f5c18);_0x4e96ac==null||_0x4e96ac[_0x3139df(0x216)](_0xa38ea5);}};_0x391f15=_0x2cf515([_0x2dfb17(0x0,_0x1dacf6[_0x3f4941(0x29d)])],_0x391f15);function _0x370e0a(){const _0x49fec0=_0x3f4941;let _0x423fdc=(0x0,_0xa79fa1[_0x49fec0(0x437)])(_0xba406a[_0x49fec0(0x253)]),_0x45195b=(0x0,_0xa79fa1[_0x49fec0(0x499)])(()=>_0x423fdc[_0x49fec0(0x2e7)],_0x423fdc[_0x49fec0(0x204)](),!0x1,[_0x423fdc]);return _0x45195b['length']===0x0?null:(0x0,_0x202144['jsx'])('div',{'children':(0x0,_0x202144[_0x49fec0(0x418)])(_0x49fec0(0x3ff),{'className':_0x49fec0(0x250),'children':[(0x0,_0x202144[_0x49fec0(0x233)])(_0x5d451e['DrawingCommonPanel'],{'drawings':_0x45195b,'hasCropper':!0x1}),(0x0,_0x202144[_0x49fec0(0x233)])(_0x253ecd[_0x49fec0(0x213)],{'drawings':_0x45195b})]})});}function _0x37b5ee(_0x5841c5){const _0x4ea810=_0x3f4941;let {unitId:_0x3d2a84,subUnitId:_0x4c9cc6,shapeId:_0x30237a}=_0x5841c5,_0x208060=(0x0,_0xa79fa1[_0x4ea810(0x437)])(_0x5ee564[_0x4ea810(0x26f)]),_0x4d81e5=(0x0,_0xa79fa1[_0x4ea810(0x437)])(_0x391f15);return(0x0,_0x202144['jsx'])(_0x16d6cd['ShapeEditPanel'],{..._0x5841c5,'positionEditor':(0x0,_0x202144[_0x4ea810(0x233)])(_0x370e0a,{}),'onUpdateShapeData':(_0x16bf9d,_0x56e70c)=>{_0x5920b8(_0x208060,_0x3d2a84,_0x4c9cc6,_0x30237a,_0x16bf9d,_0x56e70c);},'onUpdateLineShapeData':(_0x591f67,_0x3edb2f)=>{_0x5b2127(_0x208060,_0x3d2a84,_0x4c9cc6,_0x30237a,_0x591f67,_0x3edb2f);},'onUpdateShapeFillImage':_0x6f5ed0=>{const _0x3d439a=_0x4ea810;_0x4d81e5[_0x3d439a(0x28d)]({'unitId':_0x3d2a84,'subUnitId':_0x4c9cc6,'drawingId':_0x30237a},_0x6f5ed0);}});}function _0x4ecd9(_0x14d09c){const _0xfbead8=_0x3f4941;let _0x418890=_0x14d09c[_0xfbead8(0x319)][_0xfbead8(0x381)];return _0x418890?(0x0,_0x202144[_0xfbead8(0x233)])(_0x557afa,{..._0x418890}):null;}function _0x557afa(_0x169ffa){const _0x56d4ad=_0x3f4941;let _0x135178=(0x0,_0xa79fa1[_0x56d4ad(0x437)])(_0x5ee564[_0x56d4ad(0x26f)]),_0x57c31c=(0x0,_0xa79fa1[_0x56d4ad(0x437)])(_0x308292[_0x56d4ad(0x41e)]),{unitId:_0x54a5d5,subUnitId:_0x8cbfe3,drawingId:_0x4286bc,drawingType:_0x198c4b,shapeType:_0x13a4fd}=_0x169ffa,[_0xa1462f,_0x42196e]=(0x0,_0x3b23e2[_0x56d4ad(0x37c)])(_0x169ffa[_0x56d4ad(0x48e)]),_0x35ff57=(0x0,_0x3b23e2[_0x56d4ad(0x4a0)])(()=>(0x0,_0x16d6cd[_0x56d4ad(0x4f1)])(_0xa1462f),[_0xa1462f]),_0x564e1c=(0x0,_0x3b23e2[_0x56d4ad(0x4a0)])(()=>(0x0,_0x16d6cd[_0x56d4ad(0x2cd)])(_0xa1462f),[_0xa1462f]);(0x0,_0x3b23e2[_0x56d4ad(0x413)])(()=>{const _0x4692fe=_0x56d4ad;let _0xca7cff=_0x135178[_0x4692fe(0x38a)](_0x1489df=>{const _0x3d0834=_0x4692fe;if(_0x1489df['id']!==_0x308292[_0x3d0834(0x408)]['id'])return;let _0x244803=_0x57c31c['getShapeDataById'](_0x54a5d5,_0x8cbfe3,_0x4286bc);_0x244803&&_0x42196e(_0x244803);});return()=>_0xca7cff[_0x4692fe(0x343)]();},[_0x135178,_0x4286bc,_0x57c31c,_0x8cbfe3,_0x54a5d5]);let _0xe63cb3=_0x5bcac5=>{_0x42196e(_0x44eca4=>({..._0x44eca4,..._0x5bcac5}));},_0x5cc1e5=_0xbfb825=>{const _0x1c70d6=_0x56d4ad;let _0x10ef6b=(0x0,_0x16d6cd[_0x1c70d6(0x3bf)])(_0xa1462f,_0xbfb825);_0x5920b8(_0x135178,_0x54a5d5,_0x8cbfe3,_0x4286bc,{'oldShapeData':{'shapeText':_0xa1462f[_0x1c70d6(0x3ae)]}},_0x10ef6b),_0xe63cb3(_0x10ef6b);},_0x1e64f4=(0x0,_0x16d6cd[_0x56d4ad(0x49d)])({'hostType':_0x5ee564[_0x56d4ad(0x502)][_0x56d4ad(0x407)],'unitId':_0x54a5d5,'subUnitId':_0x8cbfe3,'shapeId':_0x4286bc,'shapeData':_0xa1462f,'onUpdateBinding':_0x2ecbdd=>{let _0x51b053={'formulaBinding':_0x2ecbdd};_0x5920b8(_0x135178,_0x54a5d5,_0x8cbfe3,_0x4286bc,{'oldShapeData':{'formulaBinding':_0xa1462f['formulaBinding']}},_0x51b053),_0xe63cb3(_0x51b053);}});return(0x0,_0x202144[_0x56d4ad(0x418)])(_0x202144['Fragment'],{'children':[(0x0,_0x202144[_0x56d4ad(0x233)])(_0x16d6cd[_0x56d4ad(0x2d4)],{'shapeData':_0xa1462f,'shapeType':_0x13a4fd,'textStyle':{'ff':_0x42b1e0[_0x56d4ad(0x42a)]['shapeText'][_0x56d4ad(0x36a)],'fs':_0x42b1e0[_0x56d4ad(0x42a)]['shapeText'][_0x56d4ad(0x2e2)],'cl':{'rgb':_0x42b1e0['ShapeDefaultConfig'][_0x56d4ad(0x3ae)][_0x56d4ad(0x400)]},..._0x35ff57},'textModel':_0x564e1c?{'ha':_0x564e1c['ha']??_0x5ee564[_0x56d4ad(0x2b7)][_0x56d4ad(0x47b)],'va':_0x564e1c['va']??_0x5ee564[_0x56d4ad(0x333)][_0x56d4ad(0x252)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x42b1e0[_0x56d4ad(0x42a)][_0x56d4ad(0x512)],'defaultGradientEndColor':_0x42b1e0[_0x56d4ad(0x42a)][_0x56d4ad(0x21d)],'defaultStrokeColor':_0x42b1e0[_0x56d4ad(0x42a)][_0x56d4ad(0x390)],'extensionGroups':_0x1e64f4[_0x56d4ad(0x26b)],'onUpdateShapeData':(_0x5bdb17,_0x5be8fe)=>{_0x5920b8(_0x135178,_0x54a5d5,_0x8cbfe3,_0x4286bc,_0x5bdb17,_0x5be8fe),_0x5be8fe&&_0xe63cb3(_0x5be8fe);},'onUpdateText':_0x5cc1e5,'onOpenPanel':()=>{const _0x12e086=_0x56d4ad;_0x135178[_0x12e086(0x3aa)](_0x1ab9c0['id'],{'unitId':_0x54a5d5,'subUnitId':_0x8cbfe3,'drawingId':_0x4286bc});},'onDelete':()=>{const _0x195854=_0x56d4ad;_0x135178[_0x195854(0x3aa)](_0x2c2d11[_0x195854(0x21a)]['id'],{'unitId':_0x54a5d5,'drawings':[{'unitId':_0x54a5d5,'subUnitId':_0x8cbfe3,'drawingId':_0x4286bc,'drawingType':_0x198c4b}]});}}),_0x1e64f4[_0x56d4ad(0x429)]]});}var _0xd6156e=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(..._0x43be9f){const _0x222a16=_0x3f4941;super(..._0x43be9f),_0xaf91f4(this,_0x222a16(0x356),new _0xee79c5[(_0x222a16(0x44c))](null)),_0xaf91f4(this,_0x222a16(0x2aa),this['_editingParams$'][_0x222a16(0x346)]()),_0xaf91f4(this,'_onSavingEditorData$',new _0xee79c5[(_0x222a16(0x44c))](!0x1)),_0xaf91f4(this,_0x222a16(0x4cf),this[_0x222a16(0x3a8)][_0x222a16(0x346)]());}[_0x3f4941(0x343)](){const _0x404979=_0x3f4941;this[_0x404979(0x356)][_0x404979(0x4b2)](null),this['_editingParams$'][_0x404979(0x2e9)](),this[_0x404979(0x3a8)]['next'](!0x1),this[_0x404979(0x3a8)][_0x404979(0x2e9)](),super[_0x404979(0x343)]();}[_0x3f4941(0x42c)](_0x4ef178){const _0x4a1738=_0x3f4941;this[_0x4a1738(0x356)][_0x4a1738(0x4b2)](_0x4ef178),_0x4ef178??this[_0x4a1738(0x3a8)][_0x4a1738(0x4b2)](!0x1);}[_0x3f4941(0x4d4)](_0x1c7cf1){const _0x55a995=_0x3f4941;this[_0x55a995(0x3a8)]['next'](_0x1c7cf1);}[_0x3f4941(0x31d)](){const _0x3d9462=_0x3f4941;return this[_0x3d9462(0x356)][_0x3d9462(0x275)]();}[_0x3f4941(0x25f)](_0x594120){const _0x460ea3=_0x3f4941;this[_0x460ea3(0x31d)]()&&(this[_0x460ea3(0x4d4)](!0x0),requestAnimationFrame(()=>{const _0x50e8d7=_0x460ea3;this[_0x50e8d7(0x42c)](null);}));}[_0x3f4941(0x21e)](){const _0x163fb7=_0x3f4941;this[_0x163fb7(0x31d)]()&&this['setEditing'](null);}};let _0x4a0ede=(0x0,_0x3b23e2[_0x3f4941(0x441)])(()=>{const _0x171882=_0x3f4941;let _0x51916e=(0x0,_0xa79fa1[_0x171882(0x437)])(_0xd6156e),_0x4c05ec=(0x0,_0xa79fa1[_0x171882(0x437)])(_0x308292[_0x171882(0x41e)]),_0x1d26d5=(0x0,_0xa79fa1[_0x171882(0x437)])(_0xba406a[_0x171882(0x253)]),_0x200171=(0x0,_0xa79fa1['useDependency'])(_0x5ee564['ICommandService']),_0x37e156=(0x0,_0xa79fa1[_0x171882(0x437)])(_0x1dacf6[_0x171882(0x29d)]);return(0x0,_0x202144[_0x171882(0x233)])(_0x16d6cd['ShapeTextEditorContainer'],{'adapter':(0x0,_0x3b23e2['useMemo'])(()=>({'getShapeModel':(_0x3f9aff,_0x18d1cd,_0x23a90e)=>_0x4c05ec[_0x171882(0x295)](_0x3f9aff,_0x18d1cd,_0x23a90e),'getShapeData':(_0x3a23af,_0x5c83e2,_0x5b63af)=>_0x4c05ec[_0x171882(0x3cb)](_0x3a23af,_0x5c83e2,_0x5b63af),'getDrawingTransform':(_0x451248,_0x516b33,_0x4c5eca)=>{const _0x3dda6f=_0x171882;let _0x2a93fb=_0x1d26d5[_0x3dda6f(0x4ae)]({'unitId':_0x451248,'subUnitId':_0x516b33,'drawingId':_0x4c5eca});return _0x2a93fb==null?void 0x0:_0x2a93fb[_0x3dda6f(0x3af)];},'updateShapeText':({unitId:_0x1d9a92,subUnitId:_0x3ad5c8,shapeId:_0x55ea3d,shapeText:_0x1dd15d,oldShapeText:_0x1692d0})=>{const _0x382362=_0x171882;_0x200171[_0x382362(0x3aa)](_0x3fa252['id'],{'unitId':_0x1d9a92,'subUnitId':_0x3ad5c8,'shapeId':_0x55ea3d,'shapeData':{'shapeText':_0x1dd15d},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1692d0}}});},'updateHostSize':({unitId:_0x4a68d4,subUnitId:_0x4e76d5,shapeId:_0x3d609b,width:_0x1147b1,height:_0x4ea67b})=>{const _0x3fecb8=_0x171882;var _0x81ed5f;let _0x112a93=_0x1d26d5[_0x3fecb8(0x4ae)]({'unitId':_0x4a68d4,'subUnitId':_0x4e76d5,'drawingId':_0x3d609b}),_0x5712ab=_0x112a93==null?void 0x0:_0x112a93[_0x3fecb8(0x3af)];if(!_0x112a93||!_0x5712ab)return;let _0x4aafb1={..._0x5712ab,'width':_0x1147b1,'height':_0x4ea67b},_0x42d92d=(_0x81ed5f=_0x37e156[_0x3fecb8(0x3b3)](_0x4a68d4))==null||(_0x81ed5f=_0x81ed5f[_0x3fecb8(0x1f0)](_0x17a3f5[_0x3fecb8(0x3f2)])['getSkeletonParam'](_0x4e76d5))==null?void 0x0:_0x81ed5f[_0x3fecb8(0x39d)],_0x212271=_0x42d92d?(0x0,_0x2c2d11[_0x3fecb8(0x25d)])(_0x4aafb1,_0x42d92d)??_0x112a93[_0x3fecb8(0x412)]:_0x112a93[_0x3fecb8(0x412)],_0x501268=_0x42d92d?(0x0,_0x2c2d11['transformToAxisAlignPosition'])(_0x4aafb1,_0x42d92d)??_0x112a93['axisAlignSheetTransform']:_0x112a93['axisAlignSheetTransform'];_0x200171[_0x3fecb8(0x3aa)](_0x2c2d11[_0x3fecb8(0x500)]['id'],{'unitId':_0x4a68d4,'drawings':[{..._0x112a93,'transform':_0x4aafb1,'sheetTransform':_0x212271,'axisAlignSheetTransform':_0x501268}]});},'allowHostSizeShrink':({unitId:_0xc39408,subUnitId:_0xd35b5a,shapeId:_0x39e8b1})=>(0x0,_0x16d6cd[_0x171882(0x201)])(_0x4c05ec[_0x171882(0x3cb)](_0xc39408,_0xd35b5a,_0x39e8b1))}),[_0x200171,_0x1d26d5,_0x37e156,_0x4c05ec]),'editingService':_0x51916e,'editorUnitId':_0x10cd9a,'positionOptions':(0x0,_0x3b23e2[_0x171882(0x4a0)])(()=>({'viewportKeys':{'main':_0x1dacf6['SHEET_VIEWPORT_KEY'][_0x171882(0x474)],'leftTop':_0x1dacf6[_0x171882(0x3a2)][_0x171882(0x450)],'top':_0x1dacf6[_0x171882(0x3a2)][_0x171882(0x39b)],'left':_0x1dacf6[_0x171882(0x3a2)][_0x171882(0x35a)]},'getSkeleton':(_0x34cdb0,_0x525084)=>{const _0x115bd5=_0x171882;var _0x366583;return((_0x366583=_0x34cdb0[_0x115bd5(0x1f0)](_0x17a3f5[_0x115bd5(0x3f2)])[_0x115bd5(0x518)](_0x525084[_0x115bd5(0x31a)]))==null?void 0x0:_0x366583[_0x115bd5(0x39d)])??null;}}),[])});}),_0x12ef7b=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x38b731,_0x21857e){const _0x97b810=_0x3f4941;super(),this[_0x97b810(0x4e4)]=_0x38b731,this[_0x97b810(0x219)]=_0x21857e,this[_0x97b810(0x32c)](),this[_0x97b810(0x2fc)]();}['_registerIcons'](){const _0x143ba0=_0x3f4941;this['_iconManager'][_0x143ba0(0x302)](_0x143ba0(0x1f5))||this['disposeWithMe'](this[_0x143ba0(0x219)][_0x143ba0(0x26e)]({'ObjectLayersIcon':_0x46fffb})),this[_0x143ba0(0x219)][_0x143ba0(0x302)](_0x143ba0(0x24f))||this[_0x143ba0(0x37d)](this['_iconManager'][_0x143ba0(0x26e)]({'FlipHorizontalIcon':_0x1b3f51})),this[_0x143ba0(0x219)][_0x143ba0(0x302)](_0x143ba0(0x37e))||this[_0x143ba0(0x37d)](this[_0x143ba0(0x219)]['register']({'FlipVerticalIcon':_0x52693d}));}[_0x3f4941(0x2fc)](){const _0x51da4e=_0x3f4941;this[_0x51da4e(0x37d)](this[_0x51da4e(0x4e4)]['register'](_0x5d3717,_0x37b5ee)),this[_0x51da4e(0x37d)](this[_0x51da4e(0x4e4)][_0x51da4e(0x26e)](_0xb8b2e1,_0x32a7c4)),this['disposeWithMe'](this[_0x51da4e(0x4e4)][_0x51da4e(0x26e)](_0x11e5cc,_0x54481e)),this[_0x51da4e(0x37d)](this[_0x51da4e(0x4e4)][_0x51da4e(0x26e)](_0x7d960a,_0x1e42cd)),this[_0x51da4e(0x4e4)]['get'](_0x5d451e['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this['disposeWithMe'](this[_0x51da4e(0x4e4)][_0x51da4e(0x26e)](_0x5d451e[_0x51da4e(0x513)],_0x1d3556)),this[_0x51da4e(0x37d)](this[_0x51da4e(0x4e4)]['register'](_0x2348ee,_0x4ecd9)),this['disposeWithMe'](this[_0x51da4e(0x4e4)][_0x51da4e(0x26e)](_0x168c6b,_0x16d6cd[_0x51da4e(0x259)])),this[_0x51da4e(0x37d)](this[_0x51da4e(0x4e4)][_0x51da4e(0x26e)](_0x51da4e(0x297),_0x4a0ede));}};_0x12ef7b=_0x2cf515([_0x2dfb17(0x0,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0xa79fa1[_0x3f4941(0x2b4)])),_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0xa79fa1[_0x3f4941(0x3d2)]))],_0x12ef7b);let _0x2ebc59=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x4dfc85,_0x375466,_0x2bcc55,_0x5473dc,_0x22bfea){const _0x528024=_0x3f4941;super(),this[_0x528024(0x436)]=_0x4dfc85,this[_0x528024(0x514)]=_0x375466,this[_0x528024(0x35f)]=_0x2bcc55,this[_0x528024(0x3ed)]=_0x5473dc,this[_0x528024(0x363)]=_0x22bfea,_0xaf91f4(this,_0x528024(0x329),null),_0xaf91f4(this,'_unitId',null),_0xaf91f4(this,'_subUnitId',null),_0xaf91f4(this,_0x528024(0x340),void 0x0),_0xaf91f4(this,_0x528024(0x2fd),[]),_0xaf91f4(this,_0x528024(0x3e1),0x0),_0xaf91f4(this,_0x528024(0x3b2),0x0),_0xaf91f4(this,_0x528024(0x243),0x0),_0xaf91f4(this,'_baseHeight',0x0),_0xaf91f4(this,_0x528024(0x2d9),!0x1),_0xaf91f4(this,_0x528024(0x2e1),void 0x0),_0xaf91f4(this,_0x528024(0x4b8),void 0x0),_0xaf91f4(this,_0x528024(0x2cb),void 0x0),_0xaf91f4(this,_0x528024(0x2f3),void 0x0),_0xaf91f4(this,_0x528024(0x49b),!0x1),this[_0x528024(0x238)](),this[_0x528024(0x4e8)]();}[_0x3f4941(0x228)](){const _0x2b42ff=_0x3f4941;this[_0x2b42ff(0x451)]();}[_0x3f4941(0x3f1)](){const _0x216f77=_0x3f4941;this[_0x216f77(0x451)](),this[_0x216f77(0x3a7)](!0x0);}[_0x3f4941(0x2e6)](_0x543c4a,_0x4904d1,_0x3bee8f,_0x51de11){const _0x342bef=_0x3f4941;let _0x4cdc28=_0x543c4a;if(_0x4cdc28!==_0x42b1e0[_0x342bef(0x28e)][_0x342bef(0x207)]&&_0x543c4a!==_0x342bef(0x4ad))try{let _0x4e2190=new _0x42b1e0[(_0x342bef(0x35d))](_0x4cdc28,_0x342bef(0x386)+_0x543c4a);return _0x51de11&&_0x4e2190[_0x342bef(0x3e3)]({'adjustValues':_0x51de11},!0x0),_0x4e2190[_0x342bef(0x487)]({'width':_0x4904d1,'height':_0x3bee8f}),_0x4e2190;}catch{return;}}[_0x3f4941(0x374)](_0x5ce0c1,_0x49113e,_0x1c70a6){const _0x5d9884=_0x3f4941;let _0xac5b86={'unitId':_0x5ce0c1,'subUnitId':_0x49113e,'drawingId':_0x1c70a6},_0xc8c4fd=this['_drawingManagerService'][_0x5d9884(0x4ae)](_0xac5b86);if(!(!_0xc8c4fd||_0xc8c4fd[_0x5d9884(0x46a)]!==_0x5ee564['DrawingTypeEnum']['DRAWING_IMAGE']))return _0xc8c4fd;}[_0x3f4941(0x2c5)](_0x232900,_0x32bb72,_0x42a3e8){const _0x3147c1=_0x3f4941;let _0x24b8a2=this['_renderManagerService'][_0x3147c1(0x3b3)](_0x232900);if(!_0x24b8a2)return;let {scene:_0x3c793b}=_0x24b8a2,_0x2d97a9=(0x0,_0xba406a['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x232900,'subUnitId':_0x32bb72,'drawingId':_0x42a3e8}),_0x3360f5=_0x3c793b[_0x3147c1(0x42d)](_0x2d97a9);if(_0x3360f5 instanceof _0x1dacf6[_0x3147c1(0x4d9)]){let _0x22c781=_0x3360f5['prstGeom'];if(_0x22c781)return{'prstGeom':_0x22c781,'adjustValues':_0x3360f5['prstGeomAdjValues']};}}['_createControls'](_0x1c39f7=!0x1){const _0x3890bb=_0x3f4941;if(!this[_0x3890bb(0x3e8)]||!this[_0x3890bb(0x2c7)]||!this[_0x3890bb(0x329)])return;let _0x56229d=this['_renderManagerService']['getRenderUnitById'](this[_0x3890bb(0x3e8)]);if(!_0x56229d||!_0x56229d[_0x3890bb(0x1f0)](_0x17a3f5[_0x3890bb(0x3f2)])[_0x3890bb(0x299)]())return;let {scene:_0x462c69}=_0x56229d,_0x142ff4=this[_0x3890bb(0x374)](this[_0x3890bb(0x3e8)],this['_subUnitId'],this[_0x3890bb(0x329)]);if(!_0x142ff4)return;let {transform:_0x1b2e9a}=_0x142ff4;if(!_0x1b2e9a)return;let {left:_0x483701,top:_0x93ceec,width:_0x57f4f8,height:_0x7c2d7,flipX:_0x8c82a1,flipY:_0x5c6d4a,angle:_0x278a5e=0x0}=_0x1b2e9a;if(_0x483701===void 0x0||_0x93ceec===void 0x0)return;let _0x361c04=this[_0x3890bb(0x2c5)](this[_0x3890bb(0x3e8)],this[_0x3890bb(0x2c7)],this[_0x3890bb(0x329)]);if(!_0x361c04)return;if(_0x1c39f7){let _0x1788ad=this[_0x3890bb(0x2e6)](_0x361c04[_0x3890bb(0x350)],_0x57f4f8||0x0,_0x7c2d7||0x0,_0x361c04[_0x3890bb(0x3fd)]);if(!_0x1788ad)return;this['_activeAdjustPointList']=_0x1788ad[_0x3890bb(0x475)]();}let _0xb31b1=this[_0x3890bb(0x340)];if(!(!_0xb31b1||_0xb31b1['length']===0x0))for(let _0x4d5ad4=0x0;_0x4d5ad4<_0xb31b1['length'];_0x4d5ad4++){let _0x3a5a0b=_0xb31b1[_0x4d5ad4],_0x12edcb=_0x3a5a0b['x'],_0x320d07=_0x3a5a0b['y'];if(_0x8c82a1&&(_0x12edcb=(_0x57f4f8||0x0)-_0x12edcb),_0x5c6d4a&&(_0x320d07=(_0x7c2d7||0x0)-_0x320d07),_0x278a5e!==0x0){let _0x51db8b=(_0x57f4f8||0x0)/0x2,_0x3319e3=(_0x7c2d7||0x0)/0x2,_0x2e2542=_0x278a5e*Math['PI']/0xb4,_0x54d67c=Math[_0x3890bb(0x4f7)](_0x2e2542),_0x38193a=Math[_0x3890bb(0x467)](_0x2e2542),_0x5d02e8=_0x12edcb-_0x51db8b,_0x818b00=_0x320d07-_0x3319e3;_0x12edcb=_0x51db8b+(_0x5d02e8*_0x54d67c-_0x818b00*_0x38193a),_0x320d07=_0x3319e3+(_0x5d02e8*_0x38193a+_0x818b00*_0x54d67c);}let _0x1a3eea={'x':_0x12edcb,'y':_0x320d07,'adjName':_0x3a5a0b['adjName']};this['_addControl'](_0x462c69,_0x1a3eea,_0x1a3eea[_0x3890bb(0x33b)],_0x483701,_0x93ceec,this['_unitId'],this[_0x3890bb(0x2c7)]);}}[_0x3f4941(0x4a4)](_0x4c0ad7,_0xb12b38,_0x7ba78c,_0x156ac5,_0x1609b6,_0xf2a364,_0xe7e64f){const _0x506354=_0x3f4941;if(!this[_0x506354(0x329)])return;let _0x4c3a54=_0x506354(0x4ef)+this[_0x506354(0x329)]+'-'+_0x7ba78c,_0x379042=_0x4c0ad7[_0x506354(0x51a)](_0x4c3a54);if(_0x379042){_0x379042['transformByState']({'left':_0xb12b38['x']+_0x156ac5-_0x42b1e0[_0x506354(0x42a)]['adjHandleSize'],'top':_0xb12b38['y']+_0x1609b6-_0x42b1e0[_0x506354(0x42a)][_0x506354(0x267)]});return;}let _0x3692f1=new _0x535df0(_0x4c3a54,{'left':_0xb12b38['x']+_0x156ac5-_0x42b1e0[_0x506354(0x42a)][_0x506354(0x267)],'top':_0xb12b38['y']+_0x1609b6-_0x42b1e0[_0x506354(0x42a)]['adjHandleSize'],'adjName':_0x7ba78c,'shapeId':this['_activeImageId'],'unitId':_0xf2a364,'subUnitId':_0xe7e64f,'width':_0x42b1e0[_0x506354(0x42a)][_0x506354(0x267)]+0x8,'height':_0x42b1e0[_0x506354(0x42a)][_0x506354(0x267)]+0x8,'zIndex':_0x1dacf6[_0x506354(0x298)]+0x1,'evented':!0x0});this[_0x506354(0x2fd)][_0x506354(0x515)](_0x3692f1),this[_0x506354(0x3a3)](_0x3692f1,_0x4c0ad7,_0x7ba78c),_0x4c0ad7[_0x506354(0x4f5)](_0x3692f1,_0x1dacf6[_0x506354(0x298)]+0x1);}[_0x3f4941(0x451)](){const _0x52bc4f=_0x3f4941;this[_0x52bc4f(0x2fd)][_0x52bc4f(0x461)]!==0x0&&(this[_0x52bc4f(0x2fd)]['forEach'](_0x40b83c=>_0x40b83c[_0x52bc4f(0x343)]()),this[_0x52bc4f(0x2fd)]=[]);}[_0x3f4941(0x2d5)](_0x4d65ad,_0xb44a14){const _0x455943=_0x3f4941;var _0x418ceb;let _0x3ed34d={'x':0x0,'y':0x0},_0x421ad3=this[_0x455943(0x35f)][_0x455943(0x3b3)](_0x4d65ad);if(!_0x421ad3||!_0x421ad3[_0x455943(0x1f0)](_0x17a3f5[_0x455943(0x3f2)])[_0x455943(0x41a)](_0xb44a14))return _0x3ed34d;let _0x512a4d=_0x421ad3[_0x455943(0x1f0)](_0x17a3f5[_0x455943(0x462)]),_0x36edbc=_0x512a4d==null?void 0x0:_0x512a4d['getCurrentScrollState']();if(!_0x36edbc)return _0x3ed34d;let _0x2e888d=(_0x418ceb=this[_0x455943(0x3ed)][_0x455943(0x38c)](_0x4d65ad))==null?void 0x0:_0x418ceb['getSheetBySheetId'](_0xb44a14);if(!_0x2e888d)return _0x3ed34d;let _0x5c50cf=(0x0,_0x17a3f5[_0x455943(0x2fb)])(_0x36edbc[_0x455943(0x320)],_0x36edbc[_0x455943(0x459)],_0x421ad3[_0x455943(0x3ac)],_0x2e888d);return _0x5c50cf?{'x':_0x5c50cf[_0x455943(0x4dc)],'y':_0x5c50cf['viewportScrollY']}:_0x3ed34d;}['_getZoomRatio'](_0x25fa9c,_0x1021e3){const _0x123152=_0x3f4941;var _0x377407;let _0x3dc206=(_0x377407=this[_0x123152(0x3ed)][_0x123152(0x38c)](_0x25fa9c))==null?void 0x0:_0x377407[_0x123152(0x40b)](_0x1021e3);return(_0x3dc206==null?void 0x0:_0x3dc206[_0x123152(0x1ef)]())??0x1;}[_0x3f4941(0x3a3)](_0x4176be,_0x8f5230,_0x5e19f6){const _0x13a663=_0x3f4941;this[_0x13a663(0x37d)]((0x0,_0x5ee564[_0x13a663(0x206)])(_0x4176be[_0x13a663(0x402)]['subscribeEvent']((_0xace025,_0x82560b)=>{const _0x3a5fd1=_0x13a663;var _0x4e84a1,_0x7fb85c,_0x4239a0;let {unitId:_0x462968,subUnitId:_0x562a54,drawingId:_0x2cd303}=_0x4176be[_0x3a5fd1(0x3d0)](),_0x57440c=this['_getImageDrawingInfo'](_0x462968,_0x562a54,_0x2cd303);if(!(_0x57440c!=null&&_0x57440c['transform']))return;let {left:_0x148067,top:_0x27edc6,width:_0x36ee60,height:_0x38216f}=_0x57440c['transform'];this[_0x3a5fd1(0x3e1)]=_0x148067||0x0,this[_0x3a5fd1(0x3b2)]=_0x27edc6||0x0,this[_0x3a5fd1(0x243)]=_0x36ee60||0x0,this[_0x3a5fd1(0x1f9)]=_0x38216f||0x0;let _0x4aa5dc=!!((_0x4e84a1=_0x57440c[_0x3a5fd1(0x3af)])!=null&&_0x4e84a1[_0x3a5fd1(0x24b)]),_0x23462b=!!((_0x7fb85c=_0x57440c[_0x3a5fd1(0x3af)])!=null&&_0x7fb85c[_0x3a5fd1(0x30a)]),_0x3a7dc5=((_0x4239a0=_0x57440c[_0x3a5fd1(0x3af)])==null?void 0x0:_0x4239a0[_0x3a5fd1(0x4d2)])||0x0,_0x2d8b44=this[_0x3a5fd1(0x2c5)](_0x462968,_0x562a54,_0x2cd303);if(!_0x2d8b44)return;let _0x2fad55=this[_0x3a5fd1(0x2e6)](_0x2d8b44[_0x3a5fd1(0x350)],this[_0x3a5fd1(0x243)],this[_0x3a5fd1(0x1f9)],_0x2d8b44[_0x3a5fd1(0x3fd)]);if(!_0x2fad55||(this[_0x3a5fd1(0x4b8)]=_0x2fad55,this['_activeAdjustInfo']=_0x2fad55['getAdjustInfoByName'](_0x5e19f6),!this[_0x3a5fd1(0x2e1)]))return;this[_0x3a5fd1(0x2d9)]=!0x0,_0x8f5230[_0x3a5fd1(0x3ce)]();let _0x43d6ec=_0x2d8b44[_0x3a5fd1(0x350)];this['_adjHandlerPointerMove']=_0x8f5230[_0x3a5fd1(0x208)]['subscribeEvent']((_0x5cdafa,_0x3c21f4)=>{const _0x1b47c2=_0x3a5fd1;if(!this[_0x1b47c2(0x2d9)])return;let {offsetX:_0x1a7910,offsetY:_0x52475f}=_0x5cdafa,_0x1faa4d=this[_0x1b47c2(0x2e1)];if(!this[_0x1b47c2(0x4b8)]||!_0x1faa4d)return;_0x8f5230[_0x1b47c2(0x3ce)](),_0x8f5230[_0x1b47c2(0x404)](_0x1dacf6[_0x1b47c2(0x4c0)][_0x1b47c2(0x212)]);let _0x2b31b6={'left':0x0,'top':0x0,'width':this[_0x1b47c2(0x243)],'height':this[_0x1b47c2(0x1f9)]},_0x3a2e30=this['_getScrollInfo'](_0x462968,_0x562a54),_0x2ce31a=this['_getZoomRatio'](_0x462968,_0x562a54),_0x37eedd=_0x1a7910/_0x2ce31a+_0x3a2e30['x']-this[_0x1b47c2(0x3e1)],_0x5874f0=_0x52475f/_0x2ce31a+_0x3a2e30['y']-this[_0x1b47c2(0x3b2)];if(_0x3a7dc5!==0x0){let _0x4d8ffd=this[_0x1b47c2(0x243)]/0x2,_0x12adb0=this[_0x1b47c2(0x1f9)]/0x2,_0x5aada0=_0x3a7dc5*Math['PI']/0xb4,_0x3ad674=Math['cos'](_0x5aada0),_0x43bcc2=Math[_0x1b47c2(0x467)](_0x5aada0),_0x271dd3=_0x37eedd-_0x4d8ffd,_0x23b7cd=_0x5874f0-_0x12adb0;_0x37eedd=_0x4d8ffd+(_0x271dd3*_0x3ad674+_0x23b7cd*_0x43bcc2),_0x5874f0=_0x12adb0+(-_0x271dd3*_0x43bcc2+_0x23b7cd*_0x3ad674);}_0x4aa5dc&&(_0x37eedd=this['_baseWidth']-_0x37eedd),_0x23462b&&(_0x5874f0=this[_0x1b47c2(0x1f9)]-_0x5874f0);let _0x5cf8e9=this[_0x1b47c2(0x4b8)][_0x1b47c2(0x47a)](_0x2b31b6,{'x':_0x37eedd,'y':_0x5874f0},_0x1faa4d,_0x4aa5dc,_0x23462b);if(Object[_0x1b47c2(0x40a)](_0x5cf8e9)[_0x1b47c2(0x461)]!==0x0){for(let [_0x2e6d61,_0x15fb28]of Object[_0x1b47c2(0x1fd)](_0x5cf8e9))this[_0x1b47c2(0x4b8)][_0x1b47c2(0x33d)](_0x2e6d61,_0x15fb28);this[_0x1b47c2(0x4b8)][_0x1b47c2(0x487)]({'width':this[_0x1b47c2(0x243)],'height':this[_0x1b47c2(0x1f9)]}),this[_0x1b47c2(0x2b0)](_0x462968,_0x562a54,_0x2cd303,_0x5cf8e9),this[_0x1b47c2(0x340)]=this[_0x1b47c2(0x4b8)][_0x1b47c2(0x475)](),this[_0x1b47c2(0x3a7)](),_0x3c21f4[_0x1b47c2(0x2b9)]();}}),this['_adjHandlerPointerUp']=_0x8f5230[_0x3a5fd1(0x50f)][_0x3a5fd1(0x50e)]((_0x490a02,_0x544765)=>{const _0xbc61f3=_0x3a5fd1;if(this['_adjHandlerPointerMove'][_0xbc61f3(0x46c)](),this[_0xbc61f3(0x2f3)][_0xbc61f3(0x46c)](),_0x8f5230[_0xbc61f3(0x443)](),this['_activeShapeModel']){let _0x139a1e=this[_0xbc61f3(0x4b8)][_0xbc61f3(0x339)](),_0x46bb2b={};for(let _0xb241fe of _0x139a1e){let _0x40ba6a=this[_0xbc61f3(0x4b8)][_0xbc61f3(0x4d8)](_0xb241fe);_0x40ba6a!==void 0x0&&(_0x46bb2b[_0xb241fe]=_0x40ba6a);}this[_0xbc61f3(0x363)][_0xbc61f3(0x2c8)](_0x462968,_0x562a54,_0x2cd303,_0x43d6ec,_0x46bb2b);}this[_0xbc61f3(0x2e1)]=void 0x0,this[_0xbc61f3(0x4b8)]=void 0x0,this[_0xbc61f3(0x2d9)]=!0x1,_0x544765[_0xbc61f3(0x2b9)](),_0x8f5230[_0xbc61f3(0x3ad)]();}),_0x82560b['stopPropagation']();})));}[_0x3f4941(0x2b0)](_0x294c1c,_0x59775e,_0x7b25ab,_0x25e2d6){const _0x4dd62d=_0x3f4941;let _0x48cc2f=this['_renderManagerService']['getRenderUnitById'](_0x294c1c);if(!_0x48cc2f)return;let {scene:_0x4cc6b7}=_0x48cc2f,_0x550cc4=(0x0,_0xba406a[_0x4dd62d(0x50c)])({'unitId':_0x294c1c,'subUnitId':_0x59775e,'drawingId':_0x7b25ab}),_0x1d91a8=_0x4cc6b7[_0x4dd62d(0x42d)](_0x550cc4);if(_0x1d91a8 instanceof _0x1dacf6['Image']){let _0x1d00dc=_0x1d91a8['prstGeomAdjValues']??{};_0x1d91a8[_0x4dd62d(0x30b)]({..._0x1d00dc,..._0x25e2d6}),_0x1d91a8[_0x4dd62d(0x4ea)](!0x0);}}[_0x3f4941(0x4e8)](){const _0x100759=_0x3f4941;let _0x4c0e16=this[_0x100759(0x3ed)][_0x100759(0x38f)](_0x5ee564['UniverInstanceType']['UNIVER_SHEET']);this[_0x100759(0x37d)](_0x4c0e16['pipe']((0x0,_0xee79c5[_0x100759(0x2c9)])(_0x4f38a5=>_0x4f38a5?_0x4f38a5[_0x100759(0x3ee)][_0x100759(0x482)]((0x0,_0xee79c5[_0x100759(0x2c9)])(_0x40337d=>{const _0x668faf=_0x100759;if(!_0x40337d)return _0xee79c5[_0x668faf(0x40d)];let _0x1d33a9=_0x4f38a5[_0x668faf(0x34f)](),_0x4fdc69=this[_0x668faf(0x35f)][_0x668faf(0x3b3)](_0x1d33a9),_0x5a10a1=_0x4fdc69==null?void 0x0:_0x4fdc69[_0x668faf(0x3ac)];return _0x5a10a1?(0x0,_0xee79c5['of'])(_0x5a10a1):_0xee79c5[_0x668faf(0x40d)];})):_0xee79c5[_0x100759(0x40d)]))[_0x100759(0x504)](_0x4a4441=>{const _0x2a7c46=_0x100759;let _0x2bd84f=_0x4a4441[_0x2a7c46(0x4bd)]();this[_0x2a7c46(0x37d)](_0x4a4441['onPointerMove$']['subscribeEvent'](()=>{const _0x4dcd10=_0x2a7c46;this[_0x4dcd10(0x49b)]&&this[_0x4dcd10(0x451)]();})),this[_0x2a7c46(0x37d)](_0x2bd84f[_0x2a7c46(0x2e4)]['subscribe'](_0xe02d82=>{const _0x48e737=_0x2a7c46;let {objects:_0x57eb8e}=_0xe02d82;if(this[_0x48e737(0x3a7)](),_0x57eb8e!==null&&_0x57eb8e[_0x48e737(0x254)]===0x1){let _0x5c4a15=_0x57eb8e[_0x48e737(0x4c9)]()[_0x48e737(0x4b2)]()[_0x48e737(0x3b7)];_0x5c4a15 instanceof _0x1dacf6[_0x48e737(0x4d9)]&&_0x5c4a15[_0x48e737(0x350)]&&(this['_isImagePointerDown']=!0x0);}})),this['disposeWithMe'](_0x2bd84f[_0x2a7c46(0x4fa)][_0x2a7c46(0x504)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this[_0x2a7c46(0x37d)](_0x4a4441[_0x2a7c46(0x50f)]['subscribeEvent'](()=>{const _0x38ab72=_0x2a7c46;this[_0x38ab72(0x49b)]&&(this[_0x38ab72(0x49b)]=!0x1,this[_0x38ab72(0x3a7)]());})),this[_0x2a7c46(0x37d)](_0x2bd84f[_0x2a7c46(0x4e0)][_0x2a7c46(0x504)](()=>{const _0x1b94f7=_0x2a7c46;if(this[_0x1b94f7(0x3e8)]&&this[_0x1b94f7(0x2c7)]&&this[_0x1b94f7(0x329)]){let _0x1011cf=this['_getImagePrstGeom'](this[_0x1b94f7(0x3e8)],this[_0x1b94f7(0x2c7)],this[_0x1b94f7(0x329)]);if(_0x1011cf){var _0x56241d,_0x14d59c;let _0x352e2d=this['_getImageDrawingInfo'](this['_unitId'],this[_0x1b94f7(0x2c7)],this[_0x1b94f7(0x329)]),_0x106482=(_0x352e2d==null||(_0x56241d=_0x352e2d[_0x1b94f7(0x3af)])==null?void 0x0:_0x56241d[_0x1b94f7(0x3e4)])||0x0,_0xc0c98=(_0x352e2d==null||(_0x14d59c=_0x352e2d[_0x1b94f7(0x3af)])==null?void 0x0:_0x14d59c['height'])||0x0,_0x5bac1c=this['_getOrCreateShapeModel'](_0x1011cf[_0x1b94f7(0x350)],_0x106482,_0xc0c98,_0x1011cf[_0x1b94f7(0x3fd)]);_0x5bac1c&&(this[_0x1b94f7(0x340)]=_0x5bac1c[_0x1b94f7(0x475)](),this[_0x1b94f7(0x451)](),this['_createControls'](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x267be2=_0x3f4941;this[_0x267be2(0x37d)](this[_0x267be2(0x514)][_0x267be2(0x2e7)][_0x267be2(0x504)](_0x34cbf3=>{const _0x2f039c=_0x267be2;if(_0x34cbf3[_0x2f039c(0x461)]===0x1){let _0x2bb4ac=_0x34cbf3[0x0];if(_0x2bb4ac[_0x2f039c(0x46a)]===_0x5ee564[_0x2f039c(0x2b1)][_0x2f039c(0x34b)]){let {unitId:_0x34e186,subUnitId:_0x1c2ac7,drawingId:_0x3d40a0}=_0x2bb4ac,_0xa37e48=this[_0x2f039c(0x2c5)](_0x34e186,_0x1c2ac7,_0x3d40a0);if(_0xa37e48){var _0x55e024,_0x10a25a;this[_0x2f039c(0x329)]=_0x3d40a0,this[_0x2f039c(0x3e8)]=_0x34e186,this[_0x2f039c(0x2c7)]=_0x1c2ac7;let _0x5d8925=this[_0x2f039c(0x374)](_0x34e186,_0x1c2ac7,_0x3d40a0),_0x36047d=(_0x5d8925==null||(_0x55e024=_0x5d8925[_0x2f039c(0x3af)])==null?void 0x0:_0x55e024[_0x2f039c(0x3e4)])||0x0,_0x352228=(_0x5d8925==null||(_0x10a25a=_0x5d8925[_0x2f039c(0x3af)])==null?void 0x0:_0x10a25a[_0x2f039c(0x260)])||0x0,_0x5e8d86=this[_0x2f039c(0x2e6)](_0xa37e48[_0x2f039c(0x350)],_0x36047d,_0x352228,_0xa37e48['adjustValues']);_0x5e8d86&&(this['_activeAdjustPointList']=_0x5e8d86['getDrawingPoints']()),this[_0x2f039c(0x451)](),this[_0x2f039c(0x3a7)](!0x0);}else this[_0x2f039c(0x492)]();}else this[_0x2f039c(0x492)]();}else this['_resetState']();})),this[_0x267be2(0x37d)](this[_0x267be2(0x514)]['update$']['subscribe'](_0x15f9aa=>{const _0x5edbd5=_0x267be2;if(_0x15f9aa[_0x5edbd5(0x461)]===0x1){let _0x10a402=_0x15f9aa[0x0],_0x4f0797=this['_drawingManagerService'][_0x5edbd5(0x4ae)](_0x10a402);(_0x4f0797==null?void 0x0:_0x4f0797[_0x5edbd5(0x46a)])===_0x5ee564[_0x5edbd5(0x2b1)][_0x5edbd5(0x34b)]&&this[_0x5edbd5(0x329)]===_0x10a402[_0x5edbd5(0x4e3)]&&(this[_0x5edbd5(0x451)](),this[_0x5edbd5(0x3a7)](!0x0));}})),this[_0x267be2(0x37d)](this[_0x267be2(0x514)]['remove$'][_0x267be2(0x504)](_0x210960=>{const _0x349ad8=_0x267be2;for(let _0x1b24f1 of _0x210960)this['_activeImageId']===_0x1b24f1[_0x349ad8(0x4e3)]&&this[_0x349ad8(0x492)]();}));}[_0x3f4941(0x492)](){const _0x4fd2ed=_0x3f4941;this['_activeImageId']=null,this[_0x4fd2ed(0x3e8)]=null,this[_0x4fd2ed(0x2c7)]=null,this['_activeAdjustPointList']=void 0x0,this['_clearControls']();}};_0x2ebc59=_0x2cf515([_0x2dfb17(0x1,_0xba406a[_0x3f4941(0x253)]),_0x2dfb17(0x2,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x1dacf6['IRenderManagerService'])),_0x2dfb17(0x3,_0x5ee564[_0x3f4941(0x4e5)]),_0x2dfb17(0x4,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x12c69b))],_0x2ebc59);let _0x513d78=class extends _0x5ee564['Disposable']{constructor(_0x1fbfbf,_0x3b84d0,_0x4cb223,_0x3741e4){const _0x3b9d39=_0x3f4941;super(),this[_0x3b9d39(0x3ed)]=_0x1fbfbf,this[_0x3b9d39(0x325)]=_0x3b84d0,this[_0x3b9d39(0x205)]=_0x4cb223,this[_0x3b9d39(0x23b)]=_0x3741e4,this['_initSheetChange']();}[_0x3f4941(0x1fe)](){const _0x44344d=_0x3f4941;this['disposeWithMe'](this[_0x44344d(0x325)]['interceptCommand']({'getMutations':_0x314f0a=>{const _0x9af441=_0x44344d;if(_0x314f0a['id']===_0x417e5f['RemoveSheetCommand']['id']){let _0x13f350=(0x0,_0x417e5f['getSheetCommandTarget'])(this[_0x9af441(0x3ed)],_0x314f0a[_0x9af441(0x226)]);if(!_0x13f350)return{'redos':[],'undos':[]};let {unitId:_0x2d4860,subUnitId:_0x41e909}=_0x13f350,_0x4f7604=this['_sheetDrawingService']['getDrawingData'](_0x2d4860,_0x41e909),_0x472a5a=Object[_0x9af441(0x4c9)](_0x4f7604)[_0x9af441(0x309)](_0x49ae33=>_0x49ae33[_0x9af441(0x46a)]===_0x5ee564[_0x9af441(0x2b1)][_0x9af441(0x2a5)]);if(_0x472a5a[_0x9af441(0x461)]===0x0)return{'redos':[],'undos':[]};let _0x2da2d5=[],_0x11f5fa=[];for(let _0x25c450=0x0;_0x25c450<_0x472a5a[_0x9af441(0x461)];_0x25c450++){let _0x16fb28=_0x472a5a[_0x25c450],_0x3d4da9=this[_0x9af441(0x23b)][_0x9af441(0x295)](_0x16fb28[_0x9af441(0x4fd)],_0x16fb28[_0x9af441(0x31a)],_0x16fb28[_0x9af441(0x4e3)]);if(!_0x3d4da9)continue;let {redo:_0x126c87,undo:_0x196e31,objects:_0x3bb5f3}=this[_0x9af441(0x205)]['getBatchRemoveOp']([_0x16fb28]);_0x2da2d5[_0x9af441(0x515)]({'id':_0x308292['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x2d4860,'subUnitId':_0x41e909,'shapeId':_0x16fb28['drawingId']}}),_0x2da2d5[_0x9af441(0x515)]({'id':_0x2c2d11[_0x9af441(0x2f5)]['id'],'params':{'unitId':_0x2d4860,'subUnitId':_0x41e909,'type':_0x2c2d11[_0x9af441(0x300)]['REMOVE'],'op':_0x126c87,'objects':_0x3bb5f3}}),_0x11f5fa[_0x9af441(0x515)]({'id':_0x2c2d11[_0x9af441(0x2f5)]['id'],'params':{'unitId':_0x2d4860,'subUnitId':_0x41e909,'type':_0x2c2d11['DrawingApplyType']['INSERT'],'op':_0x196e31,'objects':_0x3bb5f3}}),_0x11f5fa[_0x9af441(0x515)]({'id':_0x308292[_0x9af441(0x489)]['id'],'params':{'unitId':_0x2d4860,'subUnitId':_0x41e909,'shapeId':_0x16fb28['drawingId'],'shapeType':_0x3d4da9[_0x9af441(0x507)](),'shapeData':JSON[_0x9af441(0x464)](JSON[_0x9af441(0x4cd)](_0x3d4da9[_0x9af441(0x2f8)]()))}});}return{'redos':_0x2da2d5,'undos':_0x11f5fa};}else{if(_0x314f0a['id']===_0x417e5f[_0x9af441(0x498)]['id']){let {unitId:_0x21c2c6,subUnitId:_0x4c5fff,targetSubUnitId:_0x20072d}=_0x314f0a[_0x9af441(0x226)];if(!_0x21c2c6||!_0x4c5fff||!_0x20072d)return{'redos':[],'undos':[]};let _0x3c5f73=this[_0x9af441(0x205)][_0x9af441(0x519)](_0x21c2c6,_0x4c5fff),_0x22ff3d=Object[_0x9af441(0x4c9)](_0x3c5f73)['filter'](_0x35312d=>_0x35312d[_0x9af441(0x46a)]===_0x5ee564[_0x9af441(0x2b1)]['DRAWING_SHAPE']);if(_0x22ff3d[_0x9af441(0x461)]===0x0)return{'redos':[],'undos':[]};let _0x50ea6a=[],_0x26be05=[];for(let _0x308b94=0x0;_0x308b94<_0x22ff3d[_0x9af441(0x461)];_0x308b94++){let _0x427555=_0x22ff3d[_0x308b94],_0x322353=this[_0x9af441(0x23b)][_0x9af441(0x295)](_0x427555['unitId'],_0x427555['subUnitId'],_0x427555[_0x9af441(0x4e3)]);if(!_0x322353)continue;let _0x2b0119=(0x0,_0x5ee564['generateRandomId'])(),_0x22be9e={..._0x427555,'unitId':_0x21c2c6,'subUnitId':_0x20072d,'drawingId':_0x2b0119},{redo:_0x19853,undo:_0x1178ac,objects:_0x566e98}=this[_0x9af441(0x205)][_0x9af441(0x46d)]([_0x22be9e]);_0x50ea6a[_0x9af441(0x515)]({'id':_0x2c2d11['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x21c2c6,'subUnitId':_0x20072d,'type':_0x2c2d11[_0x9af441(0x300)][_0x9af441(0x2be)],'op':_0x19853,'objects':_0x566e98}}),_0x50ea6a[_0x9af441(0x515)]({'id':_0x308292[_0x9af441(0x489)]['id'],'params':{'unitId':_0x21c2c6,'subUnitId':_0x20072d,'shapeId':_0x2b0119,'shapeType':_0x322353[_0x9af441(0x507)](),'shapeData':JSON[_0x9af441(0x464)](JSON[_0x9af441(0x4cd)](_0x322353[_0x9af441(0x2f8)]()))}}),_0x26be05[_0x9af441(0x515)]({'id':_0x308292[_0x9af441(0x46f)]['id'],'params':{'unitId':_0x21c2c6,'subUnitId':_0x20072d,'shapeId':_0x2b0119}}),_0x26be05[_0x9af441(0x515)]({'id':_0x2c2d11[_0x9af441(0x2f5)]['id'],'params':{'unitId':_0x21c2c6,'subUnitId':_0x20072d,'type':_0x2c2d11[_0x9af441(0x300)][_0x9af441(0x4b9)],'op':_0x1178ac,'objects':_0x566e98}});}return{'redos':_0x50ea6a,'undos':_0x26be05};}}return{'redos':[],'undos':[]};}}));}};_0x513d78=_0x2cf515([_0x2dfb17(0x0,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x5ee564['IUniverInstanceService'])),_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x417e5f[_0x3f4941(0x21f)])),_0x2dfb17(0x2,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x2c2d11[_0x3f4941(0x33f)])),_0x2dfb17(0x3,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x308292[_0x3f4941(0x41e)]))],_0x513d78);let _0x1763f2=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x28a160,_0x367c3f,_0x4d7687,_0x14c147,_0x994dd9){const _0x9e7cc1=_0x3f4941;super(),this[_0x9e7cc1(0x436)]=_0x28a160,this[_0x9e7cc1(0x1e9)]=_0x367c3f,this['_drawingManagerService']=_0x4d7687,this[_0x9e7cc1(0x4df)]=_0x14c147,this[_0x9e7cc1(0x23b)]=_0x994dd9,_0xaf91f4(this,_0x9e7cc1(0x307),null),this['_initEvents'](),this[_0x9e7cc1(0x438)](),this['_initEditingParams']();}[_0x3f4941(0x50d)](){const _0x4fc4fc=_0x3f4941;let {scene:_0x38333c}=this[_0x4fc4fc(0x436)];this['disposeWithMe'](_0x38333c[_0x4fc4fc(0x3e9)][_0x4fc4fc(0x50e)](_0x198ae4=>{const _0x22e5dd=_0x4fc4fc;let {offsetX:_0x5d4769,offsetY:_0x344788}=_0x198ae4,_0x205872=_0x38333c[_0x22e5dd(0x239)](_0x1dacf6[_0x22e5dd(0x45a)][_0x22e5dd(0x2ae)]([_0x5d4769,_0x344788]));if(_0x205872 instanceof _0x264c5f){let _0x388c49=this[_0x22e5dd(0x23b)][_0x22e5dd(0x295)](_0x205872['unitId'],_0x205872['subUnitId'],_0x205872[_0x22e5dd(0x503)]);if(_0x388c49!=null&&_0x388c49[_0x22e5dd(0x2f8)]()[_0x22e5dd(0x3df)]||(0x0,_0x42b1e0[_0x22e5dd(0x24d)])(this[_0x22e5dd(0x23b)][_0x22e5dd(0x507)](_0x205872[_0x22e5dd(0x4fd)],_0x205872['subUnitId'],_0x205872[_0x22e5dd(0x503)])))return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x205872[_0x22e5dd(0x4fd)],'subUnitId':_0x205872[_0x22e5dd(0x31a)],'shapeId':_0x205872[_0x22e5dd(0x503)],'shapeKey':_0x205872[_0x22e5dd(0x4bf)]});}}));}['_initSelection'](){const _0x2b33b8=_0x3f4941;this[_0x2b33b8(0x37d)](this['_drawingManagerService'][_0x2b33b8(0x2e7)][_0x2b33b8(0x504)](_0x5849a1=>{const _0x37c69d=_0x2b33b8;if(_0x5849a1['length']===0x1){let _0x97c972=_0x5849a1[0x0],_0x2b7657=this['_drawingManagerService'][_0x37c69d(0x4ae)](_0x97c972);if((_0x2b7657==null?void 0x0:_0x2b7657[_0x37c69d(0x46a)])===_0x5ee564[_0x37c69d(0x2b1)][_0x37c69d(0x2a5)]){var _0x188b5e;let _0x25735=this['_shapeTextEditingService']['getEditing']();if((_0x25735==null?void 0x0:_0x25735[_0x37c69d(0x503)])===_0x97c972[_0x37c69d(0x4e3)]&&_0x25735['visible'])return;let _0x2e7a05=(0x0,_0x42b1e0[_0x37c69d(0x24d)])(this['_sheetsShapeService'][_0x37c69d(0x507)](_0x97c972[_0x37c69d(0x4fd)],_0x97c972[_0x37c69d(0x31a)],_0x97c972[_0x37c69d(0x4e3)])),_0x32a1ec=!!((_0x188b5e=this[_0x37c69d(0x23b)]['getShapeModel'](_0x97c972[_0x37c69d(0x4fd)],_0x97c972[_0x37c69d(0x31a)],_0x97c972[_0x37c69d(0x4e3)]))!=null&&_0x188b5e['getShapeData']()[_0x37c69d(0x3df)]);(_0x2e7a05||_0x32a1ec)&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x37c69d(0x1e9)][_0x37c69d(0x31d)]()&&(this[_0x37c69d(0x1e9)][_0x37c69d(0x4d4)](!0x0),requestAnimationFrame(()=>{const _0x3c0e7c=_0x37c69d;this[_0x3c0e7c(0x1e9)][_0x3c0e7c(0x42c)](null);}));}else this[_0x37c69d(0x1e9)][_0x37c69d(0x31d)]()&&(this[_0x37c69d(0x1e9)][_0x37c69d(0x4d4)](!0x0),requestAnimationFrame(()=>{const _0x1ccce0=_0x37c69d;this[_0x1ccce0(0x1e9)]['setEditing'](null);}));})),this['disposeWithMe'](this[_0x2b33b8(0x514)][_0x2b33b8(0x442)]['subscribe'](_0x1379b8=>{const _0x375c08=_0x2b33b8;let _0x2dabc9=this['_shapeTextEditingService'][_0x375c08(0x31d)]();_0x2dabc9&&_0x1379b8[_0x375c08(0x232)](_0x4493d3=>_0x4493d3[_0x375c08(0x4e3)]===_0x2dabc9[_0x375c08(0x503)])&&this['_shapeTextEditingService'][_0x375c08(0x42c)](null);}));}[_0x3f4941(0x308)](){const _0xe9f877=_0x3f4941;this[_0xe9f877(0x37d)](this[_0xe9f877(0x1e9)][_0xe9f877(0x2aa)][_0xe9f877(0x504)](_0x43dca3=>{const _0x326ae5=_0xe9f877;let {scene:_0x5380d8}=this[_0x326ae5(0x436)];if(this[_0x326ae5(0x307)]){let _0xc049c0=_0x5380d8[_0x326ae5(0x51a)](this[_0x326ae5(0x307)]);_0xc049c0&&_0xc049c0[_0x326ae5(0x42c)](!0x1);}if(_0x43dca3){let _0x1664f6=!!_0x43dca3['visible'],_0xce850f=_0x5380d8[_0x326ae5(0x51a)](_0x43dca3['shapeKey']);_0xce850f&&(_0xce850f['setEditing'](_0x1664f6),this[_0x326ae5(0x307)]=_0x43dca3[_0x326ae5(0x277)]),this['_contextService']['setContextValue'](_0x5ee564[_0x326ae5(0x460)],_0x1664f6);}else this[_0x326ae5(0x307)]=null,this[_0x326ae5(0x4df)]['setContextValue'](_0x5ee564[_0x326ae5(0x460)],!0x1);}));}};_0x1763f2=_0x2cf515([_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0xd6156e)),_0x2dfb17(0x2,_0xba406a[_0x3f4941(0x253)]),_0x2dfb17(0x3,_0x5ee564[_0x3f4941(0x23f)]),_0x2dfb17(0x4,(0x0,_0x5ee564['Inject'])(_0x308292['SheetsShapeService']))],_0x1763f2);let _0x49eb4d=class extends _0x16d6cd['ShapeTextFloatMenuRenderControllerBase']{constructor(_0x1f3232,_0x435511,_0x2b9eeb,_0x7eab17){super(_0x1f3232,_0x435511,_0x2b9eeb,_0x7eab17,{'componentKey':_0x168c6b,'editorUnitId':_0x10cd9a});}};_0x49eb4d=_0x2cf515([_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0xfaa137[_0x3f4941(0x4a8)])),_0x2dfb17(0x2,(0x0,_0x5ee564['Inject'])(_0x5dc0ea['DocCanvasPopManagerService'])),_0x2dfb17(0x3,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x5dc0ea[_0x3f4941(0x22a)]))],_0x49eb4d);let _0x4ea23e=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x24d8b0,_0x26889f,_0x342916,_0x129559,_0x3c68cd,_0x315da8){const _0x423700=_0x3f4941;super(),this[_0x423700(0x432)]=_0x24d8b0,this[_0x423700(0x35f)]=_0x26889f,this[_0x423700(0x514)]=_0x342916,this[_0x423700(0x36d)]=_0x129559,this['_drawingRenderService']=_0x3c68cd,this[_0x423700(0x43d)]=_0x315da8,_0xaf91f4(this,_0x423700(0x22d),new Set()),this[_0x423700(0x305)]();}['_initialize'](){const _0x1de5d5=_0x3f4941;this[_0x1de5d5(0x354)](),this[_0x1de5d5(0x327)](),this[_0x1de5d5(0x391)]();}[_0x3f4941(0x354)](){const _0x25c276=_0x3f4941;this[_0x25c276(0x37d)](this[_0x25c276(0x514)]['add$']['subscribe'](_0x1299ef=>{const _0x3133cc=_0x25c276;this[_0x3133cc(0x3f3)](_0x1299ef);}));}[_0x3f4941(0x327)](){const _0x4465ec=_0x3f4941;this[_0x4465ec(0x37d)](this[_0x4465ec(0x432)][_0x4465ec(0x38a)](_0x82792f=>{const _0x3448ab=_0x4465ec;if(_0x82792f['id']===_0x308292[_0x3448ab(0x408)]['id']){let {unitId:_0x1bef46,subUnitId:_0x5b4da3,shapeId:_0x34c158}=_0x82792f[_0x3448ab(0x226)],_0x452ad4=this['_getSceneAndTransformerByDrawingSearch'](_0x1bef46),_0x3c0548=(0x0,_0xba406a[_0x3448ab(0x50c)])({'unitId':_0x1bef46,'subUnitId':_0x5b4da3,'drawingId':_0x34c158}),_0x1b083d=_0x452ad4==null?void 0x0:_0x452ad4[_0x3448ab(0x3ac)][_0x3448ab(0x51a)](_0x3c0548);_0x1b083d&&(this[_0x3448ab(0x43d)][_0x3448ab(0x353)](_0x1b083d),this[_0x3448ab(0x43d)][_0x3448ab(0x3ea)](_0x1b083d,{'unitId':_0x1bef46,'subUnitId':_0x5b4da3,'shapeId':_0x34c158}),_0x1b083d[_0x3448ab(0x4ea)](!0x0));return;}if(_0x82792f['id']===_0x308292[_0x3448ab(0x489)]['id']){var _0x1819e4;let {unitId:_0x48fd1a,subUnitId:_0x11aa25,shapeId:_0x2982a0}=_0x82792f[_0x3448ab(0x226)],_0xb98385=this[_0x3448ab(0x1f4)](_0x48fd1a);if(_0xb98385==null)return;let {scene:_0x51bf9b}=_0xb98385,_0x4ee567=(0x0,_0xba406a[_0x3448ab(0x50c)])({'unitId':_0x48fd1a,'subUnitId':_0x11aa25,'drawingId':_0x2982a0}),_0x2cb787=_0x51bf9b['getObjectIncludeInGroup'](_0x4ee567);if(!((_0x1819e4=this[_0x3448ab(0x35f)]['getRenderUnitById'](_0x48fd1a))!=null&&_0x1819e4[_0x3448ab(0x1f0)](_0x17a3f5[_0x3448ab(0x3f2)])[_0x3448ab(0x41a)](_0x11aa25)))return!0x1;if(_0x2cb787)return;this[_0x3448ab(0x3f3)]([{'unitId':_0x48fd1a,'subUnitId':_0x11aa25,'drawingId':_0x2982a0}]);}}));}[_0x3f4941(0x391)](){const _0xb495ad=_0x3f4941;this[_0xb495ad(0x37d)](this['_drawingManagerService'][_0xb495ad(0x44b)]['subscribe'](_0x83be2=>{const _0x437c93=_0xb495ad;_0x83be2[_0x437c93(0x3cc)](_0x3beb04=>{const _0x5d3b24=_0x437c93;let {unitId:_0x49a135,subUnitId:_0x344626,drawingId:_0x18ffdd}=_0x3beb04,_0x2a81b5=this[_0x5d3b24(0x514)][_0x5d3b24(0x4ae)](_0x3beb04);if(_0x2a81b5==null)return;let {transform:_0x12cd4c,drawingType:_0x51dab2,srcRect:_0x167e01,prstGeom:_0x36924a}=_0x2a81b5;if(_0x51dab2!==_0x5ee564[_0x5d3b24(0x2b1)][_0x5d3b24(0x2a5)])return;let _0x9b4120=this[_0x5d3b24(0x1f4)](_0x49a135);if(_0x9b4120==null)return;let {scene:_0x34fd4a,transformer:_0x513746}=_0x9b4120;if(_0x12cd4c==null)return!0x0;let _0x213293=(0x0,_0xba406a[_0x5d3b24(0x50c)])({'unitId':_0x49a135,'subUnitId':_0x344626,'drawingId':_0x18ffdd}),_0x2e44e6=_0x34fd4a[_0x5d3b24(0x51a)](_0x213293);if(_0x2e44e6==null)return!0x0;_0x2e44e6['setSrcRect'](_0x167e01),_0x2e44e6[_0x5d3b24(0x421)](_0x36924a);});}));}['_insertShapes'](_0x35fdf8){const _0x585e35=_0x3f4941;for(let _0x3c5c19 of _0x35fdf8){var _0x1692e7;let {unitId:_0x2524a1,subUnitId:_0x56a693,drawingId:_0x31298a}=_0x3c5c19,_0xf13470=this['_getSceneAndTransformerByDrawingSearch'](_0x2524a1),_0x1841be=(_0x1692e7=(0x0,_0x5d451e[_0x585e35(0x31c)])(this[_0x585e35(0x36d)],_0x2524a1))==null?void 0x0:_0x1692e7[_0x585e35(0x31a)];if(_0xf13470==null||_0x1841be!==_0x56a693)return;let _0x54cd88=(0x0,_0xba406a['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x2524a1,'subUnitId':_0x56a693,'drawingId':_0x31298a});if(this[_0x585e35(0x22d)][_0x585e35(0x302)](_0x54cd88)||_0xf13470[_0x585e35(0x3ac)][_0x585e35(0x51a)](_0x54cd88)!=null)return;let _0x321fde=this[_0x585e35(0x514)][_0x585e35(0x4ae)](_0x3c5c19);if(_0x321fde==null||_0x321fde[_0x585e35(0x46a)]!==_0x5ee564['DrawingTypeEnum'][_0x585e35(0x2a5)])return;if((0x0,_0x42b1e0[_0x585e35(0x24d)])((_0x321fde['data']||{})['shapeType'])){let _0x1ec0f9=_0x321fde[_0x585e35(0x3af)];_0x1ec0f9&&(_0x321fde[_0x585e35(0x3af)]={..._0x1ec0f9,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x585e35(0x368)](_0x54cd88);try{this[_0x585e35(0x43d)][_0x585e35(0x249)](_0x321fde,_0xf13470[_0x585e35(0x3ac)]);}finally{this[_0x585e35(0x22d)][_0x585e35(0x3eb)](_0x54cd88);}queueMicrotask(()=>{const _0xc9fc0c=_0x585e35;if(this['_disposed'])return;let _0x5ba54c=(0x0,_0xba406a[_0xc9fc0c(0x50c)])(_0x3c5c19);if(!_0xf13470[_0xc9fc0c(0x3ac)][_0xc9fc0c(0x51a)](_0x5ba54c))return;let _0x29ab3d=this[_0xc9fc0c(0x514)]['getDrawingByParam'](_0x3c5c19);_0x29ab3d&&this['_drawingManagerService'][_0xc9fc0c(0x4f4)]([_0x29ab3d]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x4a7662){const _0x12c471=_0x3f4941;if(_0x4a7662==null)return;let _0x481c79=this[_0x12c471(0x35f)][_0x12c471(0x3b3)](_0x4a7662),_0x4470ab=_0x481c79==null?void 0x0:_0x481c79[_0x12c471(0x3ac)];return _0x4470ab==null?null:{'scene':_0x4470ab,'transformer':_0x4470ab[_0x12c471(0x4bd)]()};}};_0x4ea23e=_0x2cf515([_0x2dfb17(0x0,_0x5ee564[_0x3f4941(0x26f)]),_0x2dfb17(0x1,_0x1dacf6[_0x3f4941(0x29d)]),_0x2dfb17(0x2,_0xba406a[_0x3f4941(0x253)]),_0x2dfb17(0x3,_0x5ee564[_0x3f4941(0x4e5)]),_0x2dfb17(0x4,(0x0,_0x5ee564['Inject'])(_0x5d451e['DrawingRenderService'])),_0x2dfb17(0x5,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x1a428d))],_0x4ea23e);let _0xb86568={'normal':{'fill':_0x42b1e0[_0x3f4941(0x42a)][_0x3f4941(0x4cb)],'stroke':_0x42b1e0[_0x3f4941(0x42a)][_0x3f4941(0x375)],'strokeWidth':_0x42b1e0[_0x3f4941(0x42a)][_0x3f4941(0x28f)]},'highlighted':{'fill':_0x3f4941(0x1ec),'stroke':'#1a73e8','strokeWidth':0x2}};var _0x6ab184=class extends _0x1dacf6['Shape']{constructor(_0x3210f6,_0xfa99fa){const _0x4b4e34=_0x3f4941;super(_0x3210f6,_0xfa99fa),_0xaf91f4(this,'_targetShapeId',''),_0xaf91f4(this,_0x4b4e34(0x3e0),-0x1),_0xaf91f4(this,_0x4b4e34(0x3e8),''),_0xaf91f4(this,'_subUnitId',''),_0xaf91f4(this,'_isHighlighted',!0x1),_0xfa99fa&&this[_0x4b4e34(0x3db)](_0xfa99fa);}[_0x3f4941(0x355)](){const _0x31e710=_0x3f4941;return{'unitId':this[_0x31e710(0x3e8)],'subUnitId':this[_0x31e710(0x2c7)],'shapeId':this[_0x31e710(0x217)],'cxnIndex':this['_cxnIndex']};}['setHighlighted'](_0x3fe8aa){const _0x5a46a6=_0x3f4941;this[_0x5a46a6(0x449)]!==_0x3fe8aa&&(this[_0x5a46a6(0x449)]=_0x3fe8aa,this[_0x5a46a6(0x4ea)](!0x0));}[_0x3f4941(0x362)](){const _0x47f20b=_0x3f4941;return this[_0x47f20b(0x449)];}['setShapeProps'](_0x465c59){const _0x33966f=_0x3f4941;_0x465c59[_0x33966f(0x44f)]!==void 0x0&&(this[_0x33966f(0x217)]=_0x465c59[_0x33966f(0x44f)]),_0x465c59[_0x33966f(0x218)]!==void 0x0&&(this[_0x33966f(0x3e0)]=_0x465c59['cxnIndex']),_0x465c59[_0x33966f(0x4fd)]!==void 0x0&&(this['_unitId']=_0x465c59[_0x33966f(0x4fd)]),_0x465c59['subUnitId']!==void 0x0&&(this[_0x33966f(0x2c7)]=_0x465c59[_0x33966f(0x31a)]),_0x465c59[_0x33966f(0x362)]!==void 0x0&&(this[_0x33966f(0x449)]=_0x465c59[_0x33966f(0x362)]),this[_0x33966f(0x1ed)]({'width':_0x465c59[_0x33966f(0x3e4)]??_0x42b1e0[_0x33966f(0x42a)][_0x33966f(0x2af)]*0x2,'height':_0x465c59['height']??_0x42b1e0[_0x33966f(0x42a)][_0x33966f(0x2af)]*0x2});}[_0x3f4941(0x230)](_0x33fd78){const _0xcf91a9=_0x3f4941;let _0x248ebf=this['_isHighlighted']?_0xb86568[_0xcf91a9(0x3a1)]:_0xb86568[_0xcf91a9(0x289)];_0x1dacf6['Circle'][_0xcf91a9(0x398)](_0x33fd78,{'radius':_0x42b1e0[_0xcf91a9(0x42a)]['cxnPointRadius'],'fill':_0x248ebf[_0xcf91a9(0x512)],'stroke':_0x248ebf[_0xcf91a9(0x390)],'strokeWidth':_0x248ebf[_0xcf91a9(0x42e)],'evented':!0x0});}};let _0x59a212=class extends _0x5ee564['Disposable']{constructor(_0x30638a,_0x50928a,_0x406b67,_0x2434c0){const _0x37a5b0=_0x3f4941;super(),this['_context']=_0x30638a,this[_0x37a5b0(0x35f)]=_0x50928a,this[_0x37a5b0(0x514)]=_0x406b67,this[_0x37a5b0(0x23b)]=_0x2434c0,_0xaf91f4(this,_0x37a5b0(0x2ec),[]),_0xaf91f4(this,_0x37a5b0(0x209),null),_0xaf91f4(this,_0x37a5b0(0x4c6),-0x1),_0xaf91f4(this,_0x37a5b0(0x430),null),_0xaf91f4(this,'_unitId',''),_0xaf91f4(this,_0x37a5b0(0x2c7),''),_0xaf91f4(this,_0x37a5b0(0x293),null);}['startConnectionDetection'](_0x3bae4a,_0x246667,_0x25c02a,_0x5c51d5){const _0x4201c6=_0x3f4941;this['_currentScene']=_0x3bae4a,this[_0x4201c6(0x3e8)]=_0x246667,this['_subUnitId']=_0x25c02a,this[_0x4201c6(0x293)]=_0x5c51d5;}['updateConnectionDetection'](_0x585716){const _0x3c8dcb=_0x3f4941;if(!this['_currentScene'])return null;let _0x1ccd39=this[_0x3c8dcb(0x39e)](_0x585716);return _0x1ccd39?(this[_0x3c8dcb(0x209)]!==_0x1ccd39[_0x3c8dcb(0x503)]&&(this[_0x3c8dcb(0x4da)](),this['_showConnectionSites'](_0x1ccd39['shapeId'],_0x1ccd39[_0x3c8dcb(0x405)]),this[_0x3c8dcb(0x209)]=_0x1ccd39[_0x3c8dcb(0x503)]),this['_findNearestConnectionSite'](_0x585716)):(this[_0x3c8dcb(0x209)]!==null&&(this[_0x3c8dcb(0x4da)](),this[_0x3c8dcb(0x209)]=null),null);}[_0x3f4941(0x2a3)](){const _0x5a9985=_0x3f4941;this[_0x5a9985(0x4da)](),this[_0x5a9985(0x430)]=null,this[_0x5a9985(0x209)]=null,this[_0x5a9985(0x4c6)]=-0x1,this[_0x5a9985(0x293)]=null;}[_0x3f4941(0x501)](){const _0x5c14e1=_0x3f4941;return this[_0x5c14e1(0x209)]===null||this[_0x5c14e1(0x4c6)]<0x0?null:{'shapeId':this[_0x5c14e1(0x209)],'cxnIndex':this[_0x5c14e1(0x4c6)]};}[_0x3f4941(0x39e)](_0x4314cc){const _0x497d4e=_0x3f4941;let _0x417504=this[_0x497d4e(0x514)][_0x497d4e(0x519)](this[_0x497d4e(0x3e8)],this[_0x497d4e(0x2c7)]);for(let _0x960c24 of Object[_0x497d4e(0x40a)](_0x417504)){if(_0x960c24===this[_0x497d4e(0x293)]||_0x417504[_0x960c24][_0x497d4e(0x46a)]!==_0x5ee564[_0x497d4e(0x2b1)][_0x497d4e(0x2a5)])continue;let _0x265bf5=this[_0x497d4e(0x23b)]['getShapeModel'](this[_0x497d4e(0x3e8)],this[_0x497d4e(0x2c7)],_0x960c24);if(!_0x265bf5||(0x0,_0x42b1e0[_0x497d4e(0x24d)])(_0x265bf5[_0x497d4e(0x507)]())||_0x265bf5[_0x497d4e(0x2cf)]()[_0x497d4e(0x461)]===0x0||!this[_0x497d4e(0x430)])continue;let _0x15d1a5=(0x0,_0xba406a[_0x497d4e(0x50c)])({'unitId':this[_0x497d4e(0x3e8)],'subUnitId':this[_0x497d4e(0x2c7)],'drawingId':_0x960c24}),_0x19d261=this[_0x497d4e(0x430)]['getObjectIncludeInGroup'](_0x15d1a5);if(!_0x19d261)continue;let {left:_0x52aa6a,top:_0xe00b57,width:_0x2fe6ec,height:_0x31d392}=_0x19d261[_0x497d4e(0x445)](),_0x4289f7=_0x52aa6a+_0x2fe6ec/0x2,_0x567285=_0xe00b57+_0x31d392/0x2,_0xd3357a=_0x19d261[_0x497d4e(0x3af)][_0x497d4e(0x2a8)](),_0x3760fc=new _0x1dacf6[(_0x497d4e(0x326))]([_0xd3357a[0x0],_0xd3357a[0x1],_0xd3357a[0x2],_0xd3357a[0x3],_0x4289f7,_0x567285]),_0x2a5a84=_0x19d261[_0x497d4e(0x286)](),_0x515eb7=(_0x19d261[_0x497d4e(0x4f0)]&&(_0x2a5a84==null?void 0x0:_0x2a5a84[_0x497d4e(0x39f)])===_0x1dacf6[_0x497d4e(0x454)][_0x497d4e(0x3fc)]?_0x2a5a84['ancestorTransform'][_0x497d4e(0x290)](_0x3760fc):_0x3760fc)[_0x497d4e(0x2e8)]()['applyPoint'](_0x4314cc),_0x1cf22f=_0x2fe6ec/0x2,_0x5cb46d=_0x31d392/0x2;if(_0x515eb7['x']>=-_0x1cf22f-0x5&&_0x515eb7['x']<=_0x1cf22f+0x5&&_0x515eb7['y']>=-_0x5cb46d-0x5&&_0x515eb7['y']<=_0x5cb46d+0x5)return{'shapeId':_0x960c24,'shapeModel':_0x265bf5};}return null;}[_0x3f4941(0x465)](_0x22fc80,_0x779f4f){const _0x20e30b=_0x3f4941;if(!this[_0x20e30b(0x430)])return;let _0x4e6bce=(0x0,_0xba406a[_0x20e30b(0x50c)])({'unitId':this[_0x20e30b(0x3e8)],'subUnitId':this['_subUnitId'],'drawingId':_0x22fc80}),_0x8a302a=this['_currentScene'][_0x20e30b(0x51a)](_0x4e6bce);if(!_0x8a302a)return;let {left:_0x5165e3,top:_0x38625e,width:_0x1aef46,height:_0x4e018d}=_0x8a302a['getRealBound'](),_0x6ad32e=_0x5165e3+_0x1aef46/0x2,_0x39e2c3=_0x38625e+_0x4e018d/0x2,_0x5e6112=_0x8a302a[_0x20e30b(0x3af)][_0x20e30b(0x2a8)](),_0x544260=new _0x1dacf6[(_0x20e30b(0x326))]([_0x5e6112[0x0],_0x5e6112[0x1],_0x5e6112[0x2],_0x5e6112[0x3],_0x6ad32e,_0x39e2c3]),_0x1e15b1=_0x8a302a[_0x20e30b(0x286)](),_0x355653=_0x8a302a[_0x20e30b(0x4f0)]&&(_0x1e15b1==null?void 0x0:_0x1e15b1['classType'])===_0x1dacf6['RENDER_CLASS_TYPE'][_0x20e30b(0x3fc)]?_0x1e15b1[_0x20e30b(0x1fc)][_0x20e30b(0x290)](_0x544260):_0x544260;_0x779f4f['updateContext']({'width':_0x1aef46,'height':_0x4e018d});let _0x1048f7=_0x779f4f['getConnectionSiteList']();for(let _0x2325f6 of _0x1048f7){let _0x394c04=_0x2325f6['x']-_0x1aef46/0x2,_0xebc106=_0x2325f6['y']-_0x4e018d/0x2,_0x460ee2=_0x355653[_0x20e30b(0x3bd)]({'x':_0x394c04,'y':_0xebc106}),_0x56770a=_0x460ee2['x'],_0xc172b9=_0x460ee2['y'],_0x3a483a=new _0x6ab184('connection-site-'+_0x22fc80+'-'+_0x2325f6[_0x20e30b(0x2dc)],{'left':_0x56770a-_0x42b1e0[_0x20e30b(0x42a)][_0x20e30b(0x2af)],'top':_0xc172b9-_0x42b1e0[_0x20e30b(0x42a)]['cxnPointRadius'],'targetShapeId':_0x22fc80,'cxnIndex':_0x2325f6['index'],'unitId':this['_unitId'],'subUnitId':this[_0x20e30b(0x2c7)],'width':_0x42b1e0[_0x20e30b(0x42a)][_0x20e30b(0x2af)]*0x2,'height':_0x42b1e0[_0x20e30b(0x42a)][_0x20e30b(0x2af)]*0x2,'zIndex':_0x1dacf6[_0x20e30b(0x298)]+0x2,'evented':!0x1});this[_0x20e30b(0x2ec)][_0x20e30b(0x515)](_0x3a483a),this[_0x20e30b(0x430)][_0x20e30b(0x4f5)](_0x3a483a,_0x1dacf6[_0x20e30b(0x298)]+0x2);}}[_0x3f4941(0x344)](_0x2ea2b3){const _0x2384a5=_0x3f4941;let _0x5ae211=null,_0x5015b4=0x1/0x0,_0xed4ed2=null;for(let _0xdb0032 of this['_connectionSiteObjects']){let _0x24e747=_0xdb0032[_0x2384a5(0x21c)]+_0x42b1e0[_0x2384a5(0x42a)][_0x2384a5(0x2af)],_0x322aa6=_0xdb0032[_0x2384a5(0x4c1)]+_0x42b1e0[_0x2384a5(0x42a)][_0x2384a5(0x2af)],_0xc6fe02=_0x2ea2b3['x']-_0x24e747,_0x2137ca=_0x2ea2b3['y']-_0x322aa6,_0x251e3f=Math['sqrt'](_0xc6fe02*_0xc6fe02+_0x2137ca*_0x2137ca);_0x251e3f<_0x5015b4&&(_0x5015b4=_0x251e3f,_0x5ae211=_0xdb0032,_0xed4ed2={'x':_0x24e747,'y':_0x322aa6});}let _0x3acecb=_0x5015b4<=0xa&&_0x5ae211?_0x5ae211[_0x2384a5(0x355)]()[_0x2384a5(0x218)]:-0x1;if(_0x3acecb!==this[_0x2384a5(0x4c6)]){for(let _0x110ff7 of this[_0x2384a5(0x2ec)]){let _0x12e80d=_0x110ff7[_0x2384a5(0x355)]();_0x110ff7[_0x2384a5(0x276)](_0x12e80d[_0x2384a5(0x218)]===_0x3acecb);}this[_0x2384a5(0x4c6)]=_0x3acecb;}if(_0x5015b4<=0xa&&_0x5ae211&&_0xed4ed2){let _0x20e301=_0x5ae211[_0x2384a5(0x355)](),_0x41479d=this['_getConnectionSiteAngle'](_0x20e301['shapeId'],_0x20e301['cxnIndex']);return{'shapeId':_0x20e301[_0x2384a5(0x503)],'cxnIndex':_0x20e301[_0x2384a5(0x218)],'unitId':_0x20e301[_0x2384a5(0x4fd)],'subUnitId':_0x20e301[_0x2384a5(0x31a)],'worldPoint':_0xed4ed2,'angle':_0x41479d};}return null;}[_0x3f4941(0x332)](_0x3e3d04,_0x4721ab){const _0x4a5810=_0x3f4941;let _0x442f47=this[_0x4a5810(0x23b)][_0x4a5810(0x295)](this[_0x4a5810(0x3e8)],this[_0x4a5810(0x2c7)],_0x3e3d04);if(!_0x442f47)return 0x0;let _0x10b813=this['_drawingManagerService'][_0x4a5810(0x4ae)]({'unitId':this[_0x4a5810(0x3e8)],'subUnitId':this[_0x4a5810(0x2c7)],'drawingId':_0x3e3d04});if(!(_0x10b813!=null&&_0x10b813[_0x4a5810(0x3af)]))return 0x0;let {width:_0x591e7e=0x0,height:_0x5ba3bf=0x0,flipX:_0x4ad4c1=!0x1,flipY:_0x2fc165=!0x1}=_0x10b813[_0x4a5810(0x3af)];_0x442f47[_0x4a5810(0x487)]({'width':_0x591e7e,'height':_0x5ba3bf});let _0x4d3bf6=_0x442f47[_0x4a5810(0x2cf)]()[_0x4a5810(0x439)](_0x1e7863=>_0x1e7863[_0x4a5810(0x2dc)]===_0x4721ab);if(!_0x4d3bf6)return 0x0;let _0x2db97d=_0x4d3bf6['ang']/0xea60;return _0x4ad4c1&&(_0x2db97d=0xb4-_0x2db97d),_0x2fc165&&(_0x2db97d=-_0x2db97d),_0x2db97d=(_0x2db97d%0x168+0x168)%0x168,_0x2db97d;}[_0x3f4941(0x4da)](){const _0x11c859=_0x3f4941;for(let _0xc20c6 of this[_0x11c859(0x2ec)])_0xc20c6[_0x11c859(0x343)]();this[_0x11c859(0x2ec)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x3f4941(0x343)](){const _0x44073f=_0x3f4941;this[_0x44073f(0x4da)](),super[_0x44073f(0x343)]();}};_0x59a212=_0x2cf515([_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x1dacf6[_0x3f4941(0x29d)])),_0x2dfb17(0x2,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0xba406a[_0x3f4941(0x253)])),_0x2dfb17(0x3,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x308292[_0x3f4941(0x41e)]))],_0x59a212);let _0x196222=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x5ccf8e,_0x5e397a,_0x56299c,_0x573fc3,_0x933e0c){const _0x3387c3=_0x3f4941;super(),this[_0x3387c3(0x2fa)]=_0x5ccf8e,this[_0x3387c3(0x3a6)]=_0x5e397a,this[_0x3387c3(0x205)]=_0x56299c,this[_0x3387c3(0x4c7)]=_0x573fc3,this[_0x3387c3(0x3f5)]=_0x933e0c,_0xaf91f4(this,'_copyInfo',void 0x0),this['_initCopyPaste'](),this['_registerGroupFeaturePasteHook']();}get['_focusedDrawings'](){const _0xed91ce=_0x3f4941;return this[_0xed91ce(0x205)][_0xed91ce(0x204)]();}['_registerGroupFeaturePasteHook'](){const _0x2b61ae=_0x3f4941;this[_0x2b61ae(0x3f5)][_0x2b61ae(0x3c1)](({fromUnitId:_0x4e1f72,fromSubUnitId:_0x230974,toUnitId:_0x3f78ce,toSubUnitId:_0x1ec3cf,idMap:_0x4f7722})=>{const _0x1d2401=_0x2b61ae;let _0x55df61=[],_0x5a6bb5=[];for(let [_0xb2a4d4,_0x481daf]of _0x4f7722[_0x1d2401(0x1fd)]()){let _0x1e1e7f=this['_shapeService'][_0x1d2401(0x295)](_0x4e1f72,_0x230974,_0xb2a4d4);if(!_0x1e1e7f)continue;let _0x246a45=_0x1e1e7f['getShapeType'](),_0x37a916=JSON[_0x1d2401(0x464)](JSON['stringify'](_0x1e1e7f['getShapeData']()));if(_0x37a916[_0x1d2401(0x43e)]){var _0x2b636a,_0x5c8d68;let _0x348845=(_0x2b636a=_0x37a916[_0x1d2401(0x43e)][_0x1d2401(0x481)])==null?void 0x0:_0x2b636a[_0x1d2401(0x503)],_0x4a1e58=(_0x5c8d68=_0x37a916[_0x1d2401(0x43e)]['to'])==null?void 0x0:_0x5c8d68[_0x1d2401(0x503)],_0x8b1dd6=!_0x348845||_0x4f7722['has'](_0x348845),_0x7186f9=!_0x4a1e58||_0x4f7722[_0x1d2401(0x302)](_0x4a1e58);_0x8b1dd6&&_0x348845&&_0x37a916[_0x1d2401(0x43e)][_0x1d2401(0x481)]?_0x37a916['relation'][_0x1d2401(0x481)]={..._0x37a916[_0x1d2401(0x43e)][_0x1d2401(0x481)],'shapeId':_0x4f7722['get'](_0x348845)}:_0x37a916['relation'][_0x1d2401(0x481)]=void 0x0,_0x7186f9&&_0x4a1e58&&_0x37a916[_0x1d2401(0x43e)]['to']?_0x37a916['relation']['to']={..._0x37a916[_0x1d2401(0x43e)]['to'],'shapeId':_0x4f7722['get'](_0x4a1e58)}:_0x37a916[_0x1d2401(0x43e)]['to']=void 0x0;}_0x55df61['push']({'id':_0x308292['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3f78ce,'subUnitId':_0x1ec3cf,'shapeId':_0x481daf,'shapeType':_0x246a45,'shapeData':_0x37a916}}),_0x5a6bb5[_0x1d2401(0x515)]({'id':_0x308292[_0x1d2401(0x46f)]['id'],'params':{'unitId':_0x3f78ce,'subUnitId':_0x1ec3cf,'shapeId':_0x481daf}});}return{'redos':_0x55df61,'undos':_0x5a6bb5};});}[_0x3f4941(0x3ab)](){const _0x3b3aee=_0x3f4941;this[_0x3b3aee(0x37d)](this['_sheetClipboardService'][_0x3b3aee(0x4c4)]({'id':'sheets-shape-ui','onBeforeCopy':(_0x34176b,_0x70431a,_0x4dde0f,_0x236f81)=>{const _0x13a220=_0x3b3aee;this[_0x13a220(0x4ee)]=null;let _0x4c5f3a=this[_0x13a220(0x273)];if(_0x4c5f3a['length']){let _0x476448=_0x4c5f3a[_0x13a220(0x309)](_0x5053c3=>_0x5053c3[_0x13a220(0x46a)]===_0x5ee564['DrawingTypeEnum'][_0x13a220(0x2a5)]);if(_0x476448[_0x13a220(0x461)]===0x0)return;this[_0x13a220(0x4ee)]={'unitId':_0x34176b,'subUnitId':_0x70431a,'copyType':_0x236f81,'drawings':_0x476448};}else this[_0x13a220(0x384)](_0x34176b,_0x70431a,_0x4dde0f,_0x236f81);},'onPasteCells':(_0x33761a,_0x222979,_0x1eddac,_0x309b55)=>{const _0x180656=_0x3b3aee;if(!this[_0x180656(0x4ee)])return{'redos':[],'undos':[]};let {pasteType:_0x331af7}=_0x309b55;return _0x331af7===_0x17a3f5['PREDEFINED_HOOK_NAME']['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x222979,this[_0x180656(0x4ee)][_0x180656(0x34d)]===_0x17a3f5[_0x180656(0x4e7)][_0x180656(0x294)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x5a3f82=>this['_copyInfo']?this[_0x3b3aee(0x3d8)](_0x5a3f82,this['_copyInfo'][_0x3b3aee(0x34d)]===_0x17a3f5[_0x3b3aee(0x4e7)][_0x3b3aee(0x294)]):{'redos':[],'undos':[]}}));}[_0x3f4941(0x384)](_0x18e0a2,_0x1f202d,_0x5496a2,_0x32492f){const _0x566649=_0x3f4941;let _0x2bb033=this['_sheetSkeletonService']['getSkeleton'](_0x18e0a2,_0x1f202d);if(!_0x2bb033)return;let _0x2cedcc=(0x0,_0x417e5f[_0x566649(0x312)])(_0x2bb033,_0x5496a2);if(!_0x2cedcc)return;let {startX:_0x3c84f3,endX:_0x143470,startY:_0x35bd49,endY:_0x32bb38}=_0x2cedcc,_0x3df4fc=this[_0x566649(0x205)][_0x566649(0x519)](_0x18e0a2,_0x1f202d),_0x15e389=this[_0x566649(0x273)][_0x566649(0x45c)]();for(let [_0x3e6f7a,_0x5bc5ee]of Object[_0x566649(0x1fd)](_0x3df4fc)){if(_0x5bc5ee[_0x566649(0x46a)]!==_0x5ee564['DrawingTypeEnum'][_0x566649(0x2a5)])continue;let {transform:_0x56c729}=_0x5bc5ee;if(!_0x56c729)continue;let {left:_0x333d6b=0x0,top:_0x19b619=0x0,width:_0xa067=0x0,height:_0x5916ca=0x0}=_0x56c729;_0x3c84f3<=_0x333d6b&&_0x143470>=_0x333d6b+_0xa067&&_0x35bd49<=_0x19b619&&_0x32bb38>=_0x19b619+_0x5916ca&&_0x15e389[_0x566649(0x515)](_0x5bc5ee);}_0x15e389['length']>0x0&&(this[_0x566649(0x4ee)]={'unitId':_0x18e0a2,'subUnitId':_0x1f202d,'copyType':_0x32492f,'copyRange':_0x5496a2,'drawings':_0x15e389});}[_0x3f4941(0x3d8)](_0x421885,_0xe2ef03){const _0x3d1c2f=_0x3f4941;let {unitId:_0x5b9587,subUnitId:_0x4aaacd,range:_0x51038a}=_0x421885,_0x59467c=this['_sheetSkeletonService'][_0x3d1c2f(0x41a)](_0x5b9587,_0x4aaacd);if(!_0x59467c)return{'redos':[],'undos':[]};let _0x326e22=(0x0,_0x417e5f['discreteRangeToRange'])(_0x51038a),{unitId:_0xb04699,subUnitId:_0x3adf12,copyRange:_0x47a763,drawings:_0x12d9df}=this[_0x3d1c2f(0x4ee)],_0x4797fe=this[_0x3d1c2f(0x2fa)]['getSkeleton'](_0xb04699,_0x3adf12);if(!_0x4797fe)return{'redos':[],'undos':[]};let _0x447fc9;if(!_0x47a763){let _0x51253a=0x1/0x0,_0x4ce795=0x1/0x0;for(let _0x4077f8 of _0x12d9df){let {left:_0x1a5b18=0x0,top:_0x1daa8c=0x0}=_0x4077f8[_0x3d1c2f(0x3af)]??{};_0x1a5b18<_0x51253a&&(_0x51253a=_0x1a5b18),_0x1daa8c<_0x4ce795&&(_0x4ce795=_0x1daa8c);}_0x51253a!==0x1/0x0&&_0x4ce795!==0x1/0x0&&(_0x447fc9={'left':_0x51253a,'top':_0x4ce795});}let _0x142bf7=new Map();if(!_0xe2ef03){for(let _0x1e5993 of _0x12d9df)_0x142bf7[_0x3d1c2f(0x31b)](_0x1e5993[_0x3d1c2f(0x4e3)],(0x0,_0x5ee564[_0x3d1c2f(0x463)])());}let _0x2ef164=[],_0x84eb67=[];for(let _0x35adcf of _0x12d9df){let {drawingId:_0x51cad1,transform:_0x633d0b,sheetTransform:_0x56a0e8}=_0x35adcf;if(!_0x633d0b||!_0x56a0e8)continue;let _0x4eac81=this['_updateTransform']({'transform':_0x633d0b,'sheetTransform':_0x56a0e8},{'skeleton':_0x4797fe,'range':_0x47a763},{'skeleton':_0x59467c,'range':_0x326e22},_0x447fc9);if(_0xe2ef03){let {redos:_0x1c9aef,undos:_0x1bf802}=this[_0x3d1c2f(0x3e2)]({'fromUnitId':_0xb04699,'fromSubUnitId':_0x3adf12,'toUnitId':_0x5b9587,'toSubUnitId':_0x4aaacd,'drawing':_0x35adcf,'newTransforms':_0x4eac81});_0x2ef164[_0x3d1c2f(0x515)](..._0x1c9aef),_0x84eb67[_0x3d1c2f(0x515)](..._0x1bf802);continue;}let {redos:_0x268ec6,undos:_0x2aaf95}=this[_0x3d1c2f(0x3fa)]({'toUnitId':_0x5b9587,'toSubUnitId':_0x4aaacd,'drawing':_0x35adcf,'newTransforms':_0x4eac81,'newDrawingId':_0x142bf7[_0x3d1c2f(0x2ad)](_0x51cad1),'idMap':_0x142bf7});_0x2ef164[_0x3d1c2f(0x515)](..._0x268ec6),_0x84eb67['push'](..._0x2aaf95);}return{'redos':_0x2ef164,'undos':_0x84eb67};}[_0x3f4941(0x3e2)](_0x3bf14d){const _0x167bb9=_0x3f4941;let {fromUnitId:_0x53804e,fromSubUnitId:_0xcf34de,toUnitId:_0x177859,toSubUnitId:_0x3abb04,drawing:_0x14de72,newTransforms:_0x22151e}=_0x3bf14d,_0x18f16c={..._0x14de72,'unitId':_0x177859,'subUnitId':_0x3abb04,'transform':_0x22151e[_0x167bb9(0x3af)],'sheetTransform':_0x22151e[_0x167bb9(0x412)]};if(_0x177859===_0x53804e&&_0x3abb04===_0xcf34de){let {redo:_0x184917,undo:_0x14185b,objects:_0x5c80fa}=this[_0x167bb9(0x205)]['getBatchUpdateOp']([_0x18f16c]);return{'redos':[{'id':_0x2c2d11[_0x167bb9(0x2f5)]['id'],'params':{'unitId':_0x177859,'subUnitId':_0x3abb04,'type':_0x2c2d11[_0x167bb9(0x300)][_0x167bb9(0x36c)],'op':_0x184917,'objects':_0x5c80fa}}],'undos':[{'id':_0x2c2d11[_0x167bb9(0x2f5)]['id'],'params':{'unitId':_0x177859,'subUnitId':_0x3abb04,'type':_0x2c2d11[_0x167bb9(0x300)]['UPDATE'],'op':_0x14185b,'objects':_0x5c80fa}}]};}else{let _0xfcb7b1=this['_sheetDrawingService'][_0x167bb9(0x2c4)]([_0x14de72]),_0x1a399c=this[_0x167bb9(0x205)][_0x167bb9(0x46d)]([_0x18f16c]),_0x4acd4b=this[_0x167bb9(0x4c7)]['getShapeModel'](_0x14de72[_0x167bb9(0x4fd)],_0x14de72[_0x167bb9(0x31a)],_0x14de72[_0x167bb9(0x4e3)]);if(!_0x4acd4b)return{'redos':[],'undos':[]};let _0x4fbc74=_0x4acd4b[_0x167bb9(0x507)](),_0x404ce7=JSON[_0x167bb9(0x464)](JSON[_0x167bb9(0x4cd)](_0x4acd4b[_0x167bb9(0x2f8)]()));return{'redos':[{'id':_0x2c2d11[_0x167bb9(0x2f5)]['id'],'params':{'unitId':_0x53804e,'subUnitId':_0xcf34de,'type':_0x2c2d11['DrawingApplyType'][_0x167bb9(0x4b9)],'op':_0xfcb7b1['redo'],'objects':_0xfcb7b1['objects']}},{'id':_0x308292['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x53804e,'subUnitId':_0xcf34de,'shapeId':_0x14de72[_0x167bb9(0x4e3)]}},{'id':_0x2c2d11[_0x167bb9(0x2f5)]['id'],'params':{'unitId':_0x177859,'subUnitId':_0x3abb04,'type':_0x2c2d11[_0x167bb9(0x300)]['INSERT'],'op':_0x1a399c['redo'],'objects':_0x1a399c[_0x167bb9(0x2eb)]}},{'id':_0x308292[_0x167bb9(0x489)]['id'],'params':{'unitId':_0x177859,'subUnitId':_0x3abb04,'shapeId':_0x14de72[_0x167bb9(0x4e3)],'shapeType':_0x4fbc74,'shapeData':_0x404ce7}}],'undos':[{'id':_0x2c2d11[_0x167bb9(0x2f5)]['id'],'params':{'unitId':_0x53804e,'subUnitId':_0xcf34de,'type':_0x2c2d11['DrawingApplyType'][_0x167bb9(0x2be)],'op':_0xfcb7b1[_0x167bb9(0x452)],'objects':_0xfcb7b1[_0x167bb9(0x2eb)]}},{'id':_0x308292[_0x167bb9(0x489)]['id'],'params':{'unitId':_0x53804e,'subUnitId':_0xcf34de,'shapeId':_0x14de72[_0x167bb9(0x4e3)],'shapeType':_0x4fbc74,'shapeData':_0x404ce7}},{'id':_0x2c2d11['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x177859,'subUnitId':_0x3abb04,'type':_0x2c2d11[_0x167bb9(0x300)][_0x167bb9(0x4b9)],'op':_0x1a399c['undo'],'objects':_0x1a399c['objects']}},{'id':_0x308292[_0x167bb9(0x46f)]['id'],'params':{'unitId':_0x177859,'subUnitId':_0x3abb04,'shapeId':_0x14de72[_0x167bb9(0x4e3)]}}]};}}['_generateCopyPasteMutations'](_0x226942){const _0x277d11=_0x3f4941;let {toUnitId:_0x55af63,toSubUnitId:_0x540dbc,drawing:_0x45953f,newTransforms:_0x44a604,newDrawingId:_0x493201,idMap:_0x5d2d06}=_0x226942,_0x21bc21={..._0x45953f,'unitId':_0x55af63,'subUnitId':_0x540dbc,'drawingId':_0x493201,'transform':_0x44a604['transform'],'sheetTransform':_0x44a604[_0x277d11(0x412)]},{redo:_0x2d4476,undo:_0x29333a,objects:_0x549ea8}=this[_0x277d11(0x205)][_0x277d11(0x46d)]([_0x21bc21]),_0x137175=this[_0x277d11(0x4c7)][_0x277d11(0x295)](_0x45953f[_0x277d11(0x4fd)],_0x45953f[_0x277d11(0x31a)],_0x45953f[_0x277d11(0x4e3)]);if(!_0x137175)return{'redos':[],'undos':[]};let _0xdc79f7=_0x137175[_0x277d11(0x507)](),_0x1c587f=JSON[_0x277d11(0x464)](JSON[_0x277d11(0x4cd)](_0x137175[_0x277d11(0x2f8)]()));if(_0x1c587f[_0x277d11(0x43e)]){var _0x209461,_0x18c69c;let _0x3a6357=(_0x209461=_0x1c587f[_0x277d11(0x43e)]['from'])==null?void 0x0:_0x209461[_0x277d11(0x503)],_0xb60073=(_0x18c69c=_0x1c587f['relation']['to'])==null?void 0x0:_0x18c69c[_0x277d11(0x503)],_0x196496=!_0x3a6357||_0x5d2d06[_0x277d11(0x302)](_0x3a6357),_0xd1e96d=!_0xb60073||_0x5d2d06[_0x277d11(0x302)](_0xb60073);_0x196496&&_0x3a6357&&_0x1c587f[_0x277d11(0x43e)][_0x277d11(0x481)]?_0x1c587f[_0x277d11(0x43e)]['from']={..._0x1c587f[_0x277d11(0x43e)][_0x277d11(0x481)],'shapeId':_0x5d2d06[_0x277d11(0x2ad)](_0x3a6357)}:_0x1c587f['relation'][_0x277d11(0x481)]=void 0x0,_0xd1e96d&&_0xb60073&&_0x1c587f[_0x277d11(0x43e)]['to']?_0x1c587f[_0x277d11(0x43e)]['to']={..._0x1c587f[_0x277d11(0x43e)]['to'],'shapeId':_0x5d2d06[_0x277d11(0x2ad)](_0xb60073)}:_0x1c587f['relation']['to']=void 0x0;}return{'redos':[{'id':_0x2c2d11[_0x277d11(0x2f5)]['id'],'params':{'unitId':_0x55af63,'subUnitId':_0x540dbc,'type':_0x2c2d11[_0x277d11(0x300)][_0x277d11(0x2be)],'op':_0x2d4476,'objects':_0x549ea8}},{'id':_0x308292['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x55af63,'subUnitId':_0x540dbc,'shapeId':_0x493201,'shapeType':_0xdc79f7,'shapeData':_0x1c587f}}],'undos':[{'id':_0x2c2d11['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x55af63,'subUnitId':_0x540dbc,'type':_0x2c2d11[_0x277d11(0x300)][_0x277d11(0x4b9)],'op':_0x29333a,'objects':_0x549ea8}},{'id':_0x308292['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x55af63,'subUnitId':_0x540dbc,'shapeId':_0x493201}}]};}['_updateTransform'](_0x961439,_0x2342e9,_0x3aa5ed,_0x5b494c){const _0x234645=_0x3f4941;let {range:_0x4a1091,skeleton:_0x5e2d99}=_0x2342e9,{range:_0x11c549,skeleton:_0x4ce9df}=_0x3aa5ed,{transform:_0x50b1b0,sheetTransform:_0x35c169}=_0x961439,_0x167c5a={..._0x50b1b0};if(_0x4a1091){let _0x5aac66=(0x0,_0x417e5f[_0x234645(0x312)])(_0x5e2d99,_0x4a1091),_0x5c4527=(0x0,_0x417e5f[_0x234645(0x312)])(_0x4ce9df,_0x11c549);if(_0x5aac66&&_0x5c4527){let _0x11df42=_0x5c4527[_0x234645(0x4ac)]-_0x5aac66['startX'],_0x9b6a08=_0x5c4527[_0x234645(0x2e5)]-_0x5aac66[_0x234645(0x2e5)];_0x167c5a['left']=(_0x167c5a[_0x234645(0x21c)]??0x0)+_0x11df42,_0x167c5a[_0x234645(0x4c1)]=(_0x167c5a['top']??0x0)+_0x9b6a08;}}else{let _0x1ede3e=(0x0,_0x417e5f['attachRangeWithCoord'])(_0x4ce9df,_0x11c549);if(_0x5b494c&&_0x1ede3e){let _0x37d906=(_0x167c5a[_0x234645(0x21c)]??0x0)-_0x5b494c[_0x234645(0x21c)],_0x4d7321=(_0x167c5a[_0x234645(0x4c1)]??0x0)-_0x5b494c['top'];_0x167c5a[_0x234645(0x21c)]=_0x1ede3e[_0x234645(0x4ac)]+_0x37d906,_0x167c5a[_0x234645(0x4c1)]=_0x1ede3e[_0x234645(0x2e5)]+_0x4d7321;}else _0x167c5a[_0x234645(0x21c)]=_0x1ede3e==null?void 0x0:_0x1ede3e[_0x234645(0x4ac)],_0x167c5a[_0x234645(0x4c1)]=_0x1ede3e==null?void 0x0:_0x1ede3e[_0x234645(0x2e5)];}return{'transform':_0x167c5a,'sheetTransform':(0x0,_0x2c2d11[_0x234645(0x25d)])(_0x167c5a,_0x4ce9df)??_0x35c169};}};_0x196222=_0x2cf515([_0x2dfb17(0x0,(0x0,_0x5ee564['Inject'])(_0x417e5f[_0x3f4941(0x517)])),_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x17a3f5['ISheetClipboardService'])),_0x2dfb17(0x2,(0x0,_0x5ee564['Inject'])(_0x2c2d11[_0x3f4941(0x33f)])),_0x2dfb17(0x3,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x308292[_0x3f4941(0x41e)])),_0x2dfb17(0x4,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x253ecd[_0x3f4941(0x44e)]))],_0x196222);var _0x5359cf=class extends _0x1dacf6[_0x3f4941(0x247)]{constructor(_0x31e43e,_0x38f9aa){const _0x30a76d=_0x3f4941;super(_0x31e43e,_0x38f9aa),_0xaf91f4(this,'_shapeId',null),_0xaf91f4(this,_0x30a76d(0x473),null),_0xaf91f4(this,_0x30a76d(0x3e8),null),_0xaf91f4(this,_0x30a76d(0x2c7),null),_0xaf91f4(this,'_isStartConnectorPoint',!0x1),_0x38f9aa&&this[_0x30a76d(0x3db)](_0x38f9aa);}[_0x3f4941(0x3d0)](){const _0x27a6af=_0x3f4941;return{'unitId':this[_0x27a6af(0x3e8)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x27a6af(0x3a4)]};}[_0x3f4941(0x3db)](_0x58c085){const _0x322a24=_0x3f4941;_0x58c085[_0x322a24(0x503)]!==void 0x0&&(this[_0x322a24(0x3a4)]=_0x58c085[_0x322a24(0x503)]),_0x58c085[_0x322a24(0x4fd)]!==void 0x0&&(this[_0x322a24(0x3e8)]=_0x58c085[_0x322a24(0x4fd)]),_0x58c085[_0x322a24(0x31a)]!==void 0x0&&(this['_subUnitId']=_0x58c085['subUnitId']),_0x58c085['isStartConnectorPoint']!==void 0x0&&(this[_0x322a24(0x3dc)]=_0x58c085[_0x322a24(0x3ba)]),this[_0x322a24(0x1ed)]({'width':_0x58c085[_0x322a24(0x3e4)],'height':_0x58c085[_0x322a24(0x260)]});}[_0x3f4941(0x230)](_0x458fde){const _0x4d14b5=_0x3f4941;_0x1dacf6['Circle'][_0x4d14b5(0x398)](_0x458fde,{'radius':_0x42b1e0[_0x4d14b5(0x42a)]['cxnPointRadius'],'fill':_0x42b1e0[_0x4d14b5(0x42a)][_0x4d14b5(0x4cb)],'stroke':_0x42b1e0[_0x4d14b5(0x42a)][_0x4d14b5(0x375)],'strokeWidth':_0x42b1e0['ShapeDefaultConfig'][_0x4d14b5(0x28f)],'evented':!0x0});}};let _0x4b38c3=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x4265f0,_0x5bee04,_0x2f3c5c,_0x3a48fd,_0x1017d0,_0x5d43c1,_0x215b75,_0x168b5e){const _0x45125f=_0x3f4941;super(),this[_0x45125f(0x436)]=_0x4265f0,this[_0x45125f(0x432)]=_0x5bee04,this[_0x45125f(0x35f)]=_0x2f3c5c,this[_0x45125f(0x514)]=_0x3a48fd,this[_0x45125f(0x3ed)]=_0x1017d0,this['_sheetsShapeService']=_0x5d43c1,this[_0x45125f(0x4b6)]=_0x215b75,this[_0x45125f(0x4ba)]=_0x168b5e,_0xaf91f4(this,_0x45125f(0x3c7),void 0x0),_0xaf91f4(this,_0x45125f(0x3e8),void 0x0),_0xaf91f4(this,_0x45125f(0x2c7),void 0x0),_0xaf91f4(this,'_connectorObjects',[]),_0xaf91f4(this,_0x45125f(0x466),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0xaf91f4(this,_0x45125f(0x4b8),void 0x0),_0xaf91f4(this,'_isConnecting',!0x1),_0xaf91f4(this,'_isDrawingShapePointDown',!0x1),_0xaf91f4(this,_0x45125f(0x315),!0x1),_0xaf91f4(this,_0x45125f(0x509),void 0x0),_0xaf91f4(this,_0x45125f(0x2b6),void 0x0),_0xaf91f4(this,_0x45125f(0x345),null),this[_0x45125f(0x305)]();}[_0x3f4941(0x305)](){const _0x171bb1=_0x3f4941;this[_0x171bb1(0x4a5)](),this['_registerDrawingMoveHandler']();}[_0x3f4941(0x508)](){const _0x189676=_0x3f4941;if(!this[_0x189676(0x3e8)]||!this[_0x189676(0x2c7)]||!this['_activeShapeId'])return;let _0x13af38={'unitId':this[_0x189676(0x3e8)],'subUnitId':this[_0x189676(0x2c7)],'drawingId':this[_0x189676(0x3c7)]},{transform:_0x2ffe37}=this[_0x189676(0x514)]['getDrawingByParam'](_0x13af38);if(_0x2ffe37)return{'left':_0x2ffe37[_0x189676(0x21c)]||0x0,'top':_0x2ffe37['top']||0x0,'width':_0x2ffe37['width']||0x0,'height':_0x2ffe37[_0x189676(0x260)]||0x0,'flipX':_0x2ffe37[_0x189676(0x24b)]||!0x1,'flipY':_0x2ffe37['flipY']||!0x1,'angle':_0x2ffe37[_0x189676(0x4d2)]};}[_0x3f4941(0x324)](){const _0x5e0000=_0x3f4941;if(this[_0x5e0000(0x3e8)]===void 0x0||this[_0x5e0000(0x2c7)]===void 0x0||this[_0x5e0000(0x3c7)]===void 0x0)return;let _0x574432=this['_renderManagerService'][_0x5e0000(0x3b3)](this[_0x5e0000(0x3e8)]);if(!_0x574432||!_0x574432[_0x5e0000(0x1f0)](_0x17a3f5['SheetSkeletonManagerService'])[_0x5e0000(0x299)]())return;let {scene:_0x5d8d60}=_0x574432,_0x1c487d=this[_0x5e0000(0x508)]();if(!_0x1c487d)return;let _0x3d4948=this['_sheetsShapeService'][_0x5e0000(0x295)](this[_0x5e0000(0x3e8)],this['_subUnitId'],this[_0x5e0000(0x3c7)]);if(!_0x3d4948||!(0x0,_0x42b1e0['isConnectorShape'])(_0x3d4948[_0x5e0000(0x507)]()))return;let _0x12e44f=_0x3d4948[_0x5e0000(0x496)]();if(_0x12e44f[_0x5e0000(0x461)]<0x2)return;let _0x5ecff8=new _0x42b1e0[(_0x5e0000(0x4f8))](_0x1c487d),_0x5cb62b=_0x12e44f[0x0],_0x142618=_0x12e44f[_0x12e44f['length']-0x1],_0x18dcf3=_0x5ecff8[_0x5e0000(0x2ab)](_0x5cb62b),_0x5b4a27=_0x5ecff8['localToWorld'](_0x142618);this[_0x5e0000(0x364)](_0x5d8d60,{..._0x18dcf3},!0x0),this[_0x5e0000(0x364)](_0x5d8d60,{..._0x5b4a27},!0x1);}[_0x3f4941(0x364)](_0x370074,_0x32b210,_0x2c8e51){const _0x22d14a=_0x3f4941;if(this[_0x22d14a(0x3c7)]===void 0x0||this[_0x22d14a(0x3e8)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x38fabb=_0x22d14a(0x3cf)+this[_0x22d14a(0x3e8)]+'-'+this[_0x22d14a(0x2c7)]+'-'+this[_0x22d14a(0x3c7)]+'-'+(_0x2c8e51?_0x22d14a(0x46b):_0x22d14a(0x4d7)),_0x5d9309=_0x370074[_0x22d14a(0x51a)](_0x38fabb);if(_0x5d9309){_0x5d9309['transformByState']({'left':_0x32b210['x']-_0x42b1e0[_0x22d14a(0x42a)]['cxnPointRadius'],'top':_0x32b210['y']-_0x42b1e0[_0x22d14a(0x42a)][_0x22d14a(0x2af)]});return;}let _0x40abad=new _0x5359cf(_0x38fabb,{'left':_0x32b210['x']-_0x42b1e0[_0x22d14a(0x42a)][_0x22d14a(0x2af)],'top':_0x32b210['y']-_0x42b1e0[_0x22d14a(0x42a)][_0x22d14a(0x2af)],'shapeId':this[_0x22d14a(0x3c7)],'unitId':this[_0x22d14a(0x3e8)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x2c8e51,'width':_0x42b1e0[_0x22d14a(0x42a)][_0x22d14a(0x2af)]*0x2,'height':_0x42b1e0['ShapeDefaultConfig'][_0x22d14a(0x2af)]*0x2,'zIndex':_0x1dacf6['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x22d14a(0x4c3)][_0x22d14a(0x515)](_0x40abad),this[_0x22d14a(0x417)](_0x40abad,_0x370074,_0x2c8e51),_0x370074[_0x22d14a(0x4f5)](_0x40abad,_0x1dacf6[_0x22d14a(0x298)]+0x1);}[_0x3f4941(0x2d5)](_0x3c44b2,_0x86e75a){const _0x4e570e=_0x3f4941;var _0x25e848;let _0x549c5b={'x':0x0,'y':0x0};if(!_0x3c44b2||!_0x86e75a)return _0x549c5b;let _0x308f0b=this[_0x4e570e(0x35f)][_0x4e570e(0x3b3)](_0x3c44b2);if(!_0x308f0b||!_0x308f0b[_0x4e570e(0x1f0)](_0x17a3f5['SheetSkeletonManagerService'])['getSkeleton'](_0x86e75a))return _0x549c5b;let _0x4239cb=_0x308f0b[_0x4e570e(0x1f0)](_0x17a3f5[_0x4e570e(0x462)]),_0xe65808=_0x4239cb==null?void 0x0:_0x4239cb[_0x4e570e(0x4b0)]();if(!_0xe65808)return _0x549c5b;let _0x332d7d=(_0x25e848=this[_0x4e570e(0x3ed)]['getUnit'](_0x3c44b2))==null?void 0x0:_0x25e848[_0x4e570e(0x40b)](_0x86e75a);if(!_0x332d7d)return _0x549c5b;let _0x453d5c=(0x0,_0x17a3f5[_0x4e570e(0x2fb)])(_0xe65808['sheetViewStartRow'],_0xe65808[_0x4e570e(0x459)],_0x308f0b['scene'],_0x332d7d);return _0x453d5c?{'x':_0x453d5c[_0x4e570e(0x4dc)],'y':_0x453d5c[_0x4e570e(0x4bb)]}:_0x549c5b;}['_getZoomRatio'](_0x236182,_0x2b0dc7){const _0x20c9e3=_0x3f4941;var _0x18bf95;let _0x1b896c=(_0x18bf95=this[_0x20c9e3(0x3ed)][_0x20c9e3(0x38c)](_0x236182))==null?void 0x0:_0x18bf95['getSheetBySheetId'](_0x2b0dc7);return(_0x1b896c==null?void 0x0:_0x1b896c[_0x20c9e3(0x1ef)]())??0x1;}['_handleConnectorPointerUp'](_0xe08822,_0x4659be,_0x2b1dec,_0x25886b,_0x45ce87){const _0x37efde=_0x3f4941;this[_0x37efde(0x509)][_0x37efde(0x46c)](),this[_0x37efde(0x2b6)][_0x37efde(0x46c)](),this[_0x37efde(0x4b6)][_0x37efde(0x3f1)]();let _0x6b29e3=this[_0x37efde(0x345)];this['_sheetBasicShapeConnectionPointController'][_0x37efde(0x2a3)]();let _0x2fa49f=this[_0x37efde(0x2d5)](this[_0x37efde(0x3e8)],this[_0x37efde(0x2c7)]),_0x5e8e9b=this[_0x37efde(0x2a9)](this[_0x37efde(0x3e8)],this[_0x37efde(0x2c7)]),_0x734728={'x':_0x2b1dec[_0x37efde(0x3de)]/_0x5e8e9b+_0x2fa49f['x'],'y':_0x2b1dec[_0x37efde(0x4d1)]/_0x5e8e9b+_0x2fa49f['y']},_0x31b41c=_0x6b29e3?_0x6b29e3['worldPoint']:_0x734728,_0x417503=_0x25886b?this['_activeShapeModel']['getEndConnectInfo']():this[_0x37efde(0x4b8)][_0x37efde(0x478)](),_0x5a151d=this[_0x37efde(0x4b8)]['getShapeType']();_0x417503?this[_0x37efde(0x32a)](_0x417503,_0x31b41c,_0x25886b,_0x6b29e3,_0x45ce87):this[_0x37efde(0x435)](_0x4659be,_0x31b41c,_0x25886b,_0x6b29e3,_0x45ce87,_0x5a151d),this[_0x37efde(0x3c0)]=!0x1,this[_0x37efde(0x315)]=!0x1,this[_0x37efde(0x345)]=null,_0xe08822[_0x37efde(0x3ad)]();}['_handleFreeEndpointPointerUp'](_0x35494d,_0x3b0d2c,_0x8a7011,_0x313a87,_0x42a4c0,_0x28c56c){const _0x275259=_0x3f4941;let _0x2fe55f=_0x28c56c===_0x42b1e0[_0x275259(0x28e)]['Line']||_0x28c56c===_0x42b1e0['ShapeTypeEnum'][_0x275259(0x2ba)],_0x537e1f=_0x8a7011?_0x3b0d2c:_0x35494d,_0x2d58b8=_0x8a7011?_0x35494d:_0x3b0d2c,_0x3ab802=this[_0x275259(0x4b8)][_0x275259(0x496)](),_0x2859f9=(0x0,_0x42b1e0[_0x275259(0x262)])(this[_0x275259(0x4b8)][_0x275259(0x507)]()),_0x1e11fb=_0x42b1e0[_0x275259(0x4f8)][_0x275259(0x4fb)](_0x3ab802,_0x2859f9),_0x43d5c0=_0x2fe55f?_0x42b1e0[_0x275259(0x4f8)][_0x275259(0x428)](_0x537e1f,_0x2d58b8):_0x42b1e0['ConnectorCoordinateTransform'][_0x275259(0x3d7)](_0x35494d,_0x3b0d2c,_0x8a7011,_0x1e11fb);_0x313a87?this[_0x275259(0x45e)](_0x43d5c0,_0x313a87,_0x8a7011,_0x42a4c0):this[_0x275259(0x1ff)](_0x43d5c0,_0x42a4c0);}['_handleConnectedEndpointPointerUp'](_0x29cc11,_0x263f9b,_0x404097,_0x220cda,_0x1a99c7){const _0x389c73=_0x3f4941;let _0x25fc78=this[_0x389c73(0x38e)](_0x29cc11);if(!_0x25fc78)return;let _0x5897e3=_0x220cda?_0x220cda['angle']:this['_calculateFreeEndpointAngle'](_0x25fc78[_0x389c73(0x1eb)],_0x263f9b),_0x55f3d6;if(_0x220cda){let _0x8ed597=this[_0x389c73(0x514)]['getDrawingByParam']({'unitId':_0x220cda['unitId'],'subUnitId':_0x220cda[_0x389c73(0x31a)],'drawingId':_0x220cda['shapeId']});if(_0x8ed597!=null&&_0x8ed597[_0x389c73(0x3af)]){let {left:_0x45e001=0x0,top:_0x38d5a1=0x0,width:_0x1d3a8c=0x0,height:_0x6e19cb=0x0,angle:_0x42a97b}=_0x8ed597[_0x389c73(0x3af)];_0x55f3d6=(0x0,_0x42b1e0[_0x389c73(0x237)])({'left':_0x45e001,'top':_0x38d5a1,'width':_0x1d3a8c,'height':_0x6e19cb},_0x42a97b||0x0);}else _0x55f3d6={'left':_0x263f9b['x'],'top':_0x263f9b['y'],'width':0x0,'height':0x0};}else _0x55f3d6={'left':_0x263f9b['x'],'top':_0x263f9b['y'],'width':0x0,'height':0x0};let _0x144fff={'point':_0x263f9b,'angle':_0x5897e3,'bounds':_0x55f3d6},_0x40ef19=_0x404097?_0x144fff:_0x25fc78,_0x2956d5=_0x404097?_0x25fc78:_0x144fff,_0x21b011=this[_0x389c73(0x4b8)][_0x389c73(0x507)](),_0x9f06fd=(0x0,_0x42b1e0['routeConnectorLineShape'])(_0x40ef19,_0x2956d5,_0x21b011);this[_0x389c73(0x4b8)][_0x389c73(0x4d0)]();let _0x3f775e=(0x0,_0x42b1e0[_0x389c73(0x3b9)])(_0x9f06fd,_0x21b011);_0x220cda?this[_0x389c73(0x323)](_0x3f775e,_0x220cda,_0x29cc11,_0x404097,_0x1a99c7):this[_0x389c73(0x2c6)](_0x3f775e,_0x29cc11,_0x404097,_0x1a99c7);}['_executeConnectionCommand'](_0x59968f,_0x388e9c,_0x460d92,_0x1c303f){const _0x21ac9b=_0x3f4941;let _0xbc0eaf=this['_activeShapeModel'][_0x21ac9b(0x2f8)]()[_0x21ac9b(0x43e)],_0x1ba8ef={..._0xbc0eaf},_0x1b2c19={'shapeId':_0x388e9c[_0x21ac9b(0x503)],'cxnIndex':_0x388e9c[_0x21ac9b(0x218)]};_0x460d92?_0x1ba8ef['from']=_0x1b2c19:_0x1ba8ef['to']=_0x1b2c19;let _0x4f071f=this[_0x21ac9b(0x4b8)][_0x21ac9b(0x507)](),_0x50f3ba=(0x0,_0x42b1e0[_0x21ac9b(0x3b9)])(_0x59968f['worldPoints'],_0x4f071f),_0x176ec2={'unitId':this[_0x21ac9b(0x3e8)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x21ac9b(0x3c7)],'width':_0x59968f[_0x21ac9b(0x2e3)][_0x21ac9b(0x3e4)],'height':_0x59968f[_0x21ac9b(0x2e3)]['height'],'left':_0x59968f[_0x21ac9b(0x2e3)][_0x21ac9b(0x21c)],'top':_0x59968f['worldRect'][_0x21ac9b(0x4c1)],'flipX':_0x59968f['worldRect'][_0x21ac9b(0x24b)]||!0x1,'flipY':_0x59968f[_0x21ac9b(0x2e3)]['flipY']||!0x1,'newAdjustValues':_0x50f3ba[_0x21ac9b(0x3fd)],'oldAdjustValues':_0x1c303f,'oldRelation':_0xbc0eaf,'newRelation':_0x1ba8ef,'newLineType':_0x50f3ba[_0x21ac9b(0x4e9)],'oldLineType':_0x4f071f};this['_commandService'][_0x21ac9b(0x3aa)](_0x308292[_0x21ac9b(0x30f)]['id'],_0x176ec2);}[_0x3f4941(0x1ff)](_0x5a0f9c,_0x52bb01){const _0x4864ca=_0x3f4941;let _0x935feb=this[_0x4864ca(0x4b8)][_0x4864ca(0x507)](),_0x427090=(0x0,_0x42b1e0['computeConnectorRouteLayout'])(_0x5a0f9c[_0x4864ca(0x2cc)],_0x935feb),_0x2376a0={'unitId':this[_0x4864ca(0x3e8)],'subUnitId':this[_0x4864ca(0x2c7)],'shapeId':this[_0x4864ca(0x3c7)],'width':_0x5a0f9c[_0x4864ca(0x2e3)][_0x4864ca(0x3e4)],'height':_0x5a0f9c[_0x4864ca(0x2e3)]['height'],'left':_0x5a0f9c[_0x4864ca(0x2e3)][_0x4864ca(0x21c)],'top':_0x5a0f9c['worldRect']['top'],'flipX':_0x5a0f9c[_0x4864ca(0x2e3)][_0x4864ca(0x24b)]||!0x1,'flipY':_0x5a0f9c['worldRect'][_0x4864ca(0x30a)]||!0x1,'angle':_0x5a0f9c[_0x4864ca(0x2e3)][_0x4864ca(0x4d2)]||0x0,'newAdjustValues':_0x427090[_0x4864ca(0x3fd)],'oldAdjustValues':_0x52bb01,'newLineType':_0x427090[_0x4864ca(0x4e9)],'oldLineType':_0x935feb};this[_0x4864ca(0x432)][_0x4864ca(0x3aa)](_0x308292[_0x4864ca(0x3f7)]['id'],_0x2376a0);}[_0x3f4941(0x323)](_0x4c9705,_0x3398e2,_0x5822db,_0x42adde,_0x1a1df){const _0x507cda=_0x3f4941;let _0x5b9507=this['_activeShapeModel'][_0x507cda(0x2f8)]()[_0x507cda(0x43e)],_0x31f036={..._0x5b9507},_0x3f9263={'shapeId':_0x3398e2[_0x507cda(0x503)],'cxnIndex':_0x3398e2[_0x507cda(0x218)]};_0x42adde?(_0x31f036[_0x507cda(0x481)]=_0x3f9263,_0x31f036['to']=_0x5822db):(_0x31f036[_0x507cda(0x481)]=_0x5822db,_0x31f036['to']=_0x3f9263);let _0x50fd31={'unitId':this[_0x507cda(0x3e8)],'subUnitId':this[_0x507cda(0x2c7)],'connectorShapeId':this['_activeShapeId'],'width':_0x4c9705['worldRect'][_0x507cda(0x3e4)],'height':_0x4c9705['worldRect']['height'],'left':_0x4c9705['worldRect'][_0x507cda(0x21c)],'top':_0x4c9705[_0x507cda(0x2e3)][_0x507cda(0x4c1)],'flipX':_0x4c9705[_0x507cda(0x2e3)][_0x507cda(0x24b)]||!0x1,'flipY':_0x4c9705['worldRect']['flipY']||!0x1,'oldAdjustValues':_0x1a1df,'newAdjustValues':_0x4c9705[_0x507cda(0x3fd)],'newLineType':_0x4c9705[_0x507cda(0x4e9)],'rotation':_0x4c9705[_0x507cda(0x47d)],'oldRelation':_0x5b9507,'newRelation':_0x31f036};this[_0x507cda(0x432)][_0x507cda(0x3aa)](_0x308292[_0x507cda(0x30f)]['id'],_0x50fd31);}['_executeConnectedRouteResizeCommand'](_0x313d0b,_0x4c6cc4,_0x4d7224,_0x15b31e){const _0x26f228=_0x3f4941;let _0x2e96ee=this[_0x26f228(0x4b8)][_0x26f228(0x2f8)]()[_0x26f228(0x43e)],_0x60ceb9={};_0x4d7224?(_0x60ceb9['to']=_0x4c6cc4,_0x60ceb9[_0x26f228(0x481)]=void 0x0):(_0x60ceb9[_0x26f228(0x481)]=_0x4c6cc4,_0x60ceb9['to']=void 0x0);let _0x192677={'unitId':this[_0x26f228(0x3e8)],'subUnitId':this[_0x26f228(0x2c7)],'connectorShapeId':this[_0x26f228(0x3c7)],'width':_0x313d0b[_0x26f228(0x2e3)][_0x26f228(0x3e4)],'height':_0x313d0b[_0x26f228(0x2e3)][_0x26f228(0x260)],'left':_0x313d0b['worldRect'][_0x26f228(0x21c)],'top':_0x313d0b[_0x26f228(0x2e3)][_0x26f228(0x4c1)],'flipX':_0x313d0b[_0x26f228(0x2e3)][_0x26f228(0x24b)]||!0x1,'flipY':_0x313d0b[_0x26f228(0x2e3)][_0x26f228(0x30a)]||!0x1,'oldAdjustValues':_0x15b31e,'newAdjustValues':_0x313d0b[_0x26f228(0x3fd)],'newLineType':_0x313d0b['lineType'],'rotation':_0x313d0b[_0x26f228(0x47d)],'oldRelation':_0x2e96ee,'newRelation':_0x60ceb9};this[_0x26f228(0x432)][_0x26f228(0x3aa)](_0x308292[_0x26f228(0x30f)]['id'],_0x192677);}[_0x3f4941(0x417)](_0x232aac,_0x118f73,_0x4bfbc3){const _0x44769a=_0x3f4941;this[_0x44769a(0x37d)]((0x0,_0x5ee564[_0x44769a(0x206)])(_0x232aac[_0x44769a(0x402)][_0x44769a(0x50e)]((_0x38d24c,_0x280b3e)=>{const _0x19702a=_0x44769a;let _0x4ee65b=_0x232aac[_0x19702a(0x3d0)]();if(this['_activeShapeModel']=this[_0x19702a(0x23b)][_0x19702a(0x295)](_0x4ee65b[_0x19702a(0x4fd)],_0x4ee65b[_0x19702a(0x31a)],_0x4ee65b[_0x19702a(0x4e3)]),!this['_activeShapeModel'])return;let _0x50b081={};this[_0x19702a(0x4b8)][_0x19702a(0x339)]()[_0x19702a(0x3cc)](_0x41a13d=>{const _0x168982=_0x19702a;let _0x3b3d3f=this['_activeShapeModel'][_0x168982(0x4d8)](_0x41a13d);_0x3b3d3f!==void 0x0&&(_0x50b081[_0x41a13d]=_0x3b3d3f);});let _0x23ee9f=this[_0x19702a(0x508)]();if(!_0x23ee9f)return;this['_baseDrawingRect']={..._0x23ee9f};let _0x7d15ad=new _0x42b1e0[(_0x19702a(0x4f8))](this[_0x19702a(0x466)]),_0x20826f=(0x0,_0xba406a['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this[_0x19702a(0x2c7)],'drawingId':this[_0x19702a(0x3c7)]}),_0x54c766=_0x118f73['getObjectIncludeInGroup'](_0x20826f);this[_0x19702a(0x3c0)]=!0x0,_0x118f73[_0x19702a(0x3ce)](),this[_0x19702a(0x4ba)]['startConnectionDetection'](_0x118f73,this['_unitId'],this[_0x19702a(0x2c7)],this[_0x19702a(0x3c7)]),this[_0x19702a(0x345)]=null;let _0x563912=this[_0x19702a(0x4b8)][_0x19702a(0x496)](),_0x5b7477=_0x563912[0x0],_0x3203ef=_0x563912[_0x563912[_0x19702a(0x461)]-0x1],_0x45e19d=_0x4bfbc3?_0x7d15ad[_0x19702a(0x2ab)](_0x3203ef):_0x7d15ad[_0x19702a(0x2ab)](_0x5b7477);this[_0x19702a(0x509)]=_0x118f73[_0x19702a(0x208)]['subscribeEvent']((_0x349517,_0x472366)=>{const _0x3edc59=_0x19702a;if(!this['_isConnecting']||!this[_0x3edc59(0x4b8)])return;this[_0x3edc59(0x315)]||=(this[_0x3edc59(0x4b6)]['clearAdjustControls'](),this[_0x3edc59(0x4b8)][_0x3edc59(0x25b)](),!0x0);let _0x222502=this[_0x3edc59(0x2d5)](this[_0x3edc59(0x3e8)],this['_subUnitId']),_0x3db075=this[_0x3edc59(0x2a9)](this[_0x3edc59(0x3e8)],this[_0x3edc59(0x2c7)]),_0x2b8585={'x':_0x349517[_0x3edc59(0x3de)]/_0x3db075+_0x222502['x'],'y':_0x349517[_0x3edc59(0x4d1)]/_0x3db075+_0x222502['y']},_0x5956eb=this[_0x3edc59(0x4ba)]['updateConnectionDetection'](_0x2b8585);if(_0x5956eb){let {shapeId:_0x3de028,unitId:_0x59a999,subUnitId:_0x3e3b0b}=_0x5956eb;if(_0x3de028&&_0x59a999&&_0x3e3b0b){let _0x3011bf=(0x0,_0xba406a[_0x3edc59(0x50c)])({'unitId':_0x59a999,'subUnitId':_0x3e3b0b,'drawingId':_0x3de028});_0x5956eb['angle']=(_0x118f73['getObjectIncludeInGroup'](_0x3011bf)[_0x3edc59(0x4d2)]||0x0)+_0x5956eb[_0x3edc59(0x4d2)];}}this[_0x3edc59(0x345)]=_0x5956eb;let _0x163661=_0x4bfbc3?this[_0x3edc59(0x4b8)][_0x3edc59(0x484)]():this[_0x3edc59(0x4b8)][_0x3edc59(0x478)]();if(_0x163661){this[_0x3edc59(0x4f3)](_0x163661,_0x2b8585,_0x4bfbc3,_0x54c766,_0x232aac);return;}this[_0x3edc59(0x4a6)](_0x2b8585,_0x45e19d,_0x4bfbc3,_0x54c766,_0x232aac);}),this[_0x19702a(0x2b6)]=_0x118f73[_0x19702a(0x50f)][_0x19702a(0x50e)]((_0x3164d9,_0x57d081)=>{const _0x5a8a02=_0x19702a;this[_0x5a8a02(0x2f2)](_0x118f73,_0x45e19d,_0x3164d9,_0x4bfbc3,_0x50b081);}),_0x280b3e[_0x19702a(0x2b9)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x1d7a7e,_0x6807ab,_0x2534d6){const _0x4a059e=_0x3f4941;let _0x2eaff6=this[_0x4a059e(0x23b)][_0x4a059e(0x44a)](_0x1d7a7e,_0x6807ab,_0x2534d6);if(!_0x2eaff6||_0x2eaff6[_0x4a059e(0x461)]===0x0)return;let _0x1a56f3=this[_0x4a059e(0x35f)][_0x4a059e(0x3b3)](_0x1d7a7e);if(!_0x1a56f3)return;let {scene:_0x9ab0d7}=_0x1a56f3;for(let _0x2844d1 of _0x2eaff6){let _0x177e57=_0x2844d1[_0x4a059e(0x378)],_0x3f696b=this[_0x4a059e(0x23b)]['getShapeModel'](_0x1d7a7e,_0x6807ab,_0x177e57);if(!_0x3f696b)continue;let _0x1d1e82=_0x3f696b[_0x4a059e(0x478)](),_0x285aa5=_0x3f696b[_0x4a059e(0x484)](),_0x28e70c=(_0x1d1e82==null?void 0x0:_0x1d1e82[_0x4a059e(0x503)])===_0x2534d6,_0x4aa906=(0x0,_0xba406a[_0x4a059e(0x50c)])({'unitId':_0x1d7a7e,'subUnitId':_0x6807ab,'drawingId':_0x177e57}),_0x402bc2=_0x9ab0d7[_0x4a059e(0x51a)](_0x4aa906);if(!_0x402bc2)continue;let _0x1825c1=this[_0x4a059e(0x514)][_0x4a059e(0x4ae)]({'unitId':_0x1d7a7e,'subUnitId':_0x6807ab,'drawingId':_0x177e57});_0x1825c1!=null&&_0x1825c1[_0x4a059e(0x3af)]&&(_0x1d1e82&&_0x285aa5?this[_0x4a059e(0x486)](_0x1d7a7e,_0x6807ab,_0x177e57,_0x3f696b,_0x1d1e82,_0x285aa5,_0x402bc2):this['_moveConnectorWithShape'](_0x1d7a7e,_0x6807ab,_0x177e57,_0x3f696b,_0x28e70c?_0x1d1e82:_0x285aa5,_0x28e70c,_0x1825c1,_0x402bc2));}}[_0x3f4941(0x486)](_0x1cd11a,_0x1618ac,_0x1f9798,_0x418794,_0x41ca9d,_0x5202d6,_0x326c3a){const _0x5842d7=_0x3f4941;let _0x18bd3d=this[_0x5842d7(0x3e8)],_0x3d6290=this['_subUnitId'];this[_0x5842d7(0x3e8)]=_0x1cd11a,this[_0x5842d7(0x2c7)]=_0x1618ac;let _0x4bb050=this[_0x5842d7(0x38e)](_0x41ca9d),_0xb7bbb7=this[_0x5842d7(0x38e)](_0x5202d6);if(this[_0x5842d7(0x3e8)]=_0x18bd3d,this['_subUnitId']=_0x3d6290,!_0x4bb050||!_0xb7bbb7)return;let _0x317b35=_0x418794[_0x5842d7(0x507)](),_0x2c4ca=(0x0,_0x42b1e0[_0x5842d7(0x306)])(_0x4bb050,_0xb7bbb7,_0x317b35);_0x2c4ca&&_0x418794[_0x5842d7(0x27d)](_0x2c4ca);let _0x58c512=(0x0,_0x42b1e0[_0x5842d7(0x3b9)])(_0x2c4ca,_0x317b35);_0x58c512['lineType']!==_0x317b35&&_0x418794[_0x5842d7(0x2d6)](_0x58c512[_0x5842d7(0x4e9)]),_0x418794['clearAdjustValue']();for(let [_0x618ed2,_0x496031]of Object[_0x5842d7(0x1fd)](_0x58c512['adjustValues']))_0x418794[_0x5842d7(0x33d)](_0x618ed2,_0x496031);_0x418794[_0x5842d7(0x487)]({'width':_0x58c512[_0x5842d7(0x2e3)]['width'],'height':_0x58c512[_0x5842d7(0x2e3)]['height']}),_0x326c3a[_0x5842d7(0x1ed)]({'flipX':_0x58c512[_0x5842d7(0x2e3)][_0x5842d7(0x24b)],'flipY':_0x58c512[_0x5842d7(0x2e3)][_0x5842d7(0x30a)],'left':_0x58c512[_0x5842d7(0x2e3)][_0x5842d7(0x21c)],'top':_0x58c512['worldRect'][_0x5842d7(0x4c1)],'width':_0x58c512[_0x5842d7(0x2e3)][_0x5842d7(0x3e4)],'height':_0x58c512[_0x5842d7(0x2e3)]['height'],'angle':_0x58c512[_0x5842d7(0x47d)]}),_0x418794[_0x5842d7(0x4d0)]();}[_0x3f4941(0x331)](_0x288d2c,_0x57f21f,_0x2eecf1,_0x19e725,_0x5440cb,_0x3ef36a,_0x5d6a3d,_0x10a635){const _0x3a483c=_0x3f4941;let _0x374a76=this[_0x3a483c(0x3e8)],_0x1f4f3c=this[_0x3a483c(0x2c7)];this[_0x3a483c(0x3e8)]=_0x288d2c,this[_0x3a483c(0x2c7)]=_0x57f21f;let _0x11e70b=this[_0x3a483c(0x38e)](_0x5440cb);if(this['_unitId']=_0x374a76,this['_subUnitId']=_0x1f4f3c,!_0x11e70b)return;let {left:_0x134624=0x0,top:_0x39ceb1=0x0,width:_0x63e730=0x0,height:_0x33db5f=0x0,flipX:_0x5efb2d=!0x1,flipY:_0x1960dd=!0x1}=_0x5d6a3d[_0x3a483c(0x3af)],_0xb1824a=_0x19e725[_0x3a483c(0x496)]();if(_0xb1824a[_0x3a483c(0x461)]<0x2)return;let _0x29fd14=new _0x42b1e0[(_0x3a483c(0x4f8))]({'left':_0x134624,'top':_0x39ceb1,'width':_0x63e730,'height':_0x33db5f,'flipX':_0x5efb2d,'flipY':_0x1960dd}),_0x570021=_0x3ef36a?_0xb1824a[_0xb1824a[_0x3a483c(0x461)]-0x1]:_0xb1824a[0x0],_0x4797b7=_0x29fd14[_0x3a483c(0x2ab)](_0x570021),_0x269c53=_0x42b1e0[_0x3a483c(0x4f8)][_0x3a483c(0x3d7)](_0x4797b7,_0x11e70b[_0x3a483c(0x1eb)],!_0x3ef36a);_0x10a635[_0x3a483c(0x1ed)]({'flipX':_0x269c53[_0x3a483c(0x2e3)][_0x3a483c(0x24b)],'flipY':_0x269c53[_0x3a483c(0x2e3)]['flipY'],'left':_0x269c53['worldRect']['left'],'top':_0x269c53[_0x3a483c(0x2e3)]['top'],'width':_0x269c53['worldRect'][_0x3a483c(0x3e4)],'height':_0x269c53[_0x3a483c(0x2e3)][_0x3a483c(0x260)],'angle':_0x269c53[_0x3a483c(0x2e3)][_0x3a483c(0x4d2)]}),_0x10a635[_0x3a483c(0x4ea)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x95307d=_0x3f4941;this['_connectorObjects'][_0x95307d(0x461)]!==0x0&&(this['_connectorObjects'][_0x95307d(0x3cc)](_0x587014=>{const _0x2b487e=_0x95307d;_0x587014[_0x2b487e(0x343)]();}),this[_0x95307d(0x4c3)]=[]);}[_0x3f4941(0x3bb)](){const _0x2c5ead=_0x3f4941;let _0x38a99c=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x5ee564['UniverInstanceType'][_0x2c5ead(0x407)]);this['disposeWithMe'](_0x38a99c[_0x2c5ead(0x482)]((0x0,_0xee79c5[_0x2c5ead(0x2c9)])(_0x49d8ff=>_0x49d8ff?_0x49d8ff[_0x2c5ead(0x3ee)][_0x2c5ead(0x482)]((0x0,_0xee79c5[_0x2c5ead(0x2c9)])(_0x1b8adc=>{const _0xffba97=_0x2c5ead;if(!_0x1b8adc)return _0xee79c5[_0xffba97(0x40d)];let _0x4687dc=_0x49d8ff[_0xffba97(0x34f)](),_0x42f218=this[_0xffba97(0x35f)]['getRenderUnitById'](_0x4687dc),_0x369111=_0x42f218==null?void 0x0:_0x42f218['scene'];return _0x369111?(0x0,_0xee79c5['of'])(_0x369111):_0xee79c5[_0xffba97(0x40d)];})):_0xee79c5['EMPTY']))[_0x2c5ead(0x504)](_0x5f5281=>{const _0x2e5e0c=_0x2c5ead;let _0x5be696=_0x5f5281['getTransformerByCreate']();this['disposeWithMe'](_0x5f5281[_0x2e5e0c(0x208)][_0x2e5e0c(0x50e)](_0x4bbff0=>{const _0x295b0c=_0x2e5e0c;this['_isDrawingShapePointDown']&&this[_0x295b0c(0x3c7)]&&this[_0x295b0c(0x369)]();})),this['disposeWithMe'](_0x5be696[_0x2e5e0c(0x2e4)][_0x2e5e0c(0x504)](_0x3306a8=>{const _0x344d62=_0x2e5e0c;let {objects:_0x344ec3}=_0x3306a8;this[_0x344d62(0x369)](),_0x344ec3!==null&&_0x344ec3[_0x344d62(0x254)]===0x1&&_0x344ec3[_0x344d62(0x4c9)]()['next']()[_0x344d62(0x3b7)]instanceof _0x264c5f&&(this[_0x344d62(0x1e5)]=!0x0);})),this['disposeWithMe'](_0x5be696['changing$']['subscribe'](_0x139f79=>{const _0x57a7dc=_0x2e5e0c;this[_0x57a7dc(0x1e5)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x2e5e0c(0x37d)](_0x5f5281['onPointerUp$'][_0x2e5e0c(0x50e)](()=>{const _0x96da1=_0x2e5e0c;this[_0x96da1(0x1e5)]&&(this[_0x96da1(0x1e5)]=!0x1,this[_0x96da1(0x324)]());})),this[_0x2e5e0c(0x37d)](_0x5be696[_0x2e5e0c(0x4e0)][_0x2e5e0c(0x504)](()=>{const _0x52ad3c=_0x2e5e0c;this['_unitId']&&this[_0x52ad3c(0x2c7)]&&this['_activeShapeId']&&this[_0x52ad3c(0x514)][_0x52ad3c(0x4ae)]({'unitId':this[_0x52ad3c(0x3e8)],'subUnitId':this[_0x52ad3c(0x2c7)],'drawingId':this[_0x52ad3c(0x3c7)]})&&(this[_0x52ad3c(0x369)](),this[_0x52ad3c(0x324)]());}));}));}[_0x3f4941(0x4a5)](){const _0x57994e=_0x3f4941;this[_0x57994e(0x37d)](this[_0x57994e(0x514)][_0x57994e(0x2e7)][_0x57994e(0x504)](_0x15ed1f=>{const _0x160f7d=_0x57994e;if(_0x15ed1f['length']===0x1){let _0x20c88f=_0x15ed1f[0x0];if(_0x20c88f[_0x160f7d(0x46a)]===_0x5ee564[_0x160f7d(0x2b1)][_0x160f7d(0x2a5)]){let _0x1699fe=this[_0x160f7d(0x23b)]['getShapeModel'](_0x20c88f[_0x160f7d(0x4fd)],_0x20c88f[_0x160f7d(0x31a)],_0x20c88f[_0x160f7d(0x4e3)]);if(_0x1699fe&&(0x0,_0x42b1e0[_0x160f7d(0x24d)])(_0x1699fe[_0x160f7d(0x507)]())){this[_0x160f7d(0x3c7)]=_0x20c88f[_0x160f7d(0x4e3)],this['_unitId']=_0x20c88f['unitId'],this['_subUnitId']=_0x20c88f[_0x160f7d(0x31a)],this[_0x160f7d(0x369)](),this[_0x160f7d(0x324)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x160f7d(0x3e8)]=void 0x0,this[_0x160f7d(0x2c7)]=void 0x0,this[_0x160f7d(0x369)]();})),this[_0x57994e(0x37d)](this['_drawingManagerService']['update$'][_0x57994e(0x504)](_0x363443=>{const _0x5414c8=_0x57994e;if(_0x363443['length']===0x1){var _0x125609;let _0x167ac7=_0x363443[0x0],_0x1e0f77=(_0x125609=this['_drawingManagerService']['getDrawingByParam'](_0x167ac7))==null?void 0x0:_0x125609['drawingType'];_0x1e0f77===_0x5ee564['DrawingTypeEnum'][_0x5414c8(0x2a5)]&&_0x167ac7['drawingId']===this[_0x5414c8(0x3c7)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x5414c8(0x324)]()):!this[_0x5414c8(0x3c7)]&&_0x1e0f77===_0x5ee564['DrawingTypeEnum'][_0x5414c8(0x2a5)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x167ac7[_0x5414c8(0x4fd)],_0x167ac7[_0x5414c8(0x31a)],_0x167ac7[_0x5414c8(0x4e3)]);}})),this['disposeWithMe'](this[_0x57994e(0x514)][_0x57994e(0x442)][_0x57994e(0x504)](_0x1739f9=>{const _0x5c0ca3=_0x57994e;for(let _0x5c4033 of _0x1739f9){let {drawingId:_0x1cf74f}=_0x5c4033;if(this[_0x5c0ca3(0x3c7)]===_0x1cf74f){this[_0x5c0ca3(0x4db)]();return;}}}));}[_0x3f4941(0x4f3)](_0x2d7a15,_0x524cd1,_0x51e7eb,_0x25bfd1,_0x4dc907){const _0x1426ba=_0x3f4941;var _0x5016a3;if(!this[_0x1426ba(0x4b8)])return;let _0x9e8b26=this['_getConnectPointInfo'](_0x2d7a15);if(!_0x9e8b26)return;let _0x59f647=this[_0x1426ba(0x345)]?this[_0x1426ba(0x345)][_0x1426ba(0x3b6)]:_0x524cd1,_0x33fbbd=this[_0x1426ba(0x345)]?this['_currentConnectionTarget']['angle']:this[_0x1426ba(0x251)](_0x9e8b26['point'],_0x59f647),_0x5338a0;if(this[_0x1426ba(0x345)]){let _0x1c6879=this[_0x1426ba(0x514)][_0x1426ba(0x4ae)]({'unitId':this['_currentConnectionTarget'][_0x1426ba(0x4fd)],'subUnitId':this['_currentConnectionTarget'][_0x1426ba(0x31a)],'drawingId':this[_0x1426ba(0x345)][_0x1426ba(0x503)]});if(_0x1c6879!=null&&_0x1c6879[_0x1426ba(0x3af)]){let {left:_0x270404=0x0,top:_0x41030e=0x0,width:_0x1861b6=0x0,height:_0x25f5bd=0x0,angle:_0x5f45e9}=_0x1c6879[_0x1426ba(0x3af)];_0x5338a0=(0x0,_0x42b1e0[_0x1426ba(0x237)])({'left':_0x270404,'top':_0x41030e,'width':_0x1861b6,'height':_0x25f5bd},_0x5f45e9||0x0);}else _0x5338a0={'left':_0x59f647['x'],'top':_0x59f647['y'],'width':0x0,'height':0x0};}else _0x5338a0={'left':_0x59f647['x'],'top':_0x59f647['y'],'width':0x0,'height':0x0};let _0x194bd5={'point':_0x59f647,'angle':_0x33fbbd,'bounds':_0x5338a0},_0x3d1214=_0x51e7eb?_0x194bd5:_0x9e8b26,_0xd822f4=_0x51e7eb?_0x9e8b26:_0x194bd5,_0x21641d=this[_0x1426ba(0x4b8)][_0x1426ba(0x507)](),_0x1ad043=(0x0,_0x42b1e0['routeConnectorLineShape'])(_0x3d1214,_0xd822f4,_0x21641d);_0x1ad043&&this[_0x1426ba(0x4b8)][_0x1426ba(0x27d)](_0x1ad043);let _0x1cc5cb=(0x0,_0x42b1e0[_0x1426ba(0x3b9)])(_0x1ad043,_0x21641d);_0x1cc5cb['lineType']!==_0x21641d&&this[_0x1426ba(0x4b8)][_0x1426ba(0x2d6)](_0x1cc5cb[_0x1426ba(0x4e9)]);for(let [_0x287b37,_0x469e84]of Object['entries'](_0x1cc5cb[_0x1426ba(0x3fd)]))this[_0x1426ba(0x4b8)][_0x1426ba(0x33d)](_0x287b37,_0x469e84);this[_0x1426ba(0x4b8)][_0x1426ba(0x487)]({'width':_0x1cc5cb['worldRect'][_0x1426ba(0x3e4)],'height':_0x1cc5cb[_0x1426ba(0x2e3)]['height']}),_0x25bfd1['transformByState']({'flipX':_0x1cc5cb[_0x1426ba(0x2e3)]['flipX'],'flipY':_0x1cc5cb['worldRect'][_0x1426ba(0x30a)],'left':_0x1cc5cb['worldRect'][_0x1426ba(0x21c)],'top':_0x1cc5cb[_0x1426ba(0x2e3)][_0x1426ba(0x4c1)],'width':_0x1cc5cb[_0x1426ba(0x2e3)][_0x1426ba(0x3e4)],'height':_0x1cc5cb['worldRect'][_0x1426ba(0x260)],'angle':_0x1cc5cb[_0x1426ba(0x47d)]}),_0x25bfd1[_0x1426ba(0x4ea)](!0x0);let _0x576b47=((_0x5016a3=this[_0x1426ba(0x345)])==null?void 0x0:_0x5016a3[_0x1426ba(0x3b6)])??_0x524cd1;_0x4dc907[_0x1426ba(0x1ed)]({'left':_0x576b47['x']-_0x42b1e0[_0x1426ba(0x42a)]['cxnPointRadius'],'top':_0x576b47['y']-_0x42b1e0['ShapeDefaultConfig'][_0x1426ba(0x2af)]});}[_0x3f4941(0x4a6)](_0x9dc430,_0x5e81d7,_0x31f792,_0x51b8b0,_0x91e9a){const _0x1dd757=_0x3f4941;var _0x48f6ca,_0x3b108e;let _0x43e98b=((_0x48f6ca=this[_0x1dd757(0x345)])==null?void 0x0:_0x48f6ca[_0x1dd757(0x3b6)])??_0x9dc430,_0x2ebc3e=_0x42b1e0[_0x1dd757(0x4f8)][_0x1dd757(0x3d7)](_0x5e81d7,_0x43e98b,_0x31f792);_0x51b8b0[_0x1dd757(0x1ed)]({'flipX':_0x2ebc3e[_0x1dd757(0x2e3)][_0x1dd757(0x24b)],'flipY':_0x2ebc3e[_0x1dd757(0x2e3)][_0x1dd757(0x30a)],'left':_0x2ebc3e[_0x1dd757(0x2e3)][_0x1dd757(0x21c)],'top':_0x2ebc3e[_0x1dd757(0x2e3)][_0x1dd757(0x4c1)],'width':_0x2ebc3e[_0x1dd757(0x2e3)][_0x1dd757(0x3e4)],'height':_0x2ebc3e[_0x1dd757(0x2e3)][_0x1dd757(0x260)],'angle':_0x2ebc3e[_0x1dd757(0x2e3)][_0x1dd757(0x4d2)]});let _0x1f6886=((_0x3b108e=this[_0x1dd757(0x345)])==null?void 0x0:_0x3b108e['worldPoint'])??_0x9dc430;_0x91e9a['transformByState']({'left':_0x1f6886['x']-_0x42b1e0[_0x1dd757(0x42a)]['cxnPointRadius'],'top':_0x1f6886['y']-_0x42b1e0[_0x1dd757(0x42a)]['cxnPointRadius']});}[_0x3f4941(0x38e)](_0x508f71){const _0x10ef8b=_0x3f4941;if(!this[_0x10ef8b(0x3e8)]||!this[_0x10ef8b(0x2c7)])return null;let {shapeId:_0xcb7674,cxnIndex:_0x2fff5d}=_0x508f71,_0x2dfa93=this[_0x10ef8b(0x23b)][_0x10ef8b(0x295)](this[_0x10ef8b(0x3e8)],this[_0x10ef8b(0x2c7)],_0xcb7674);if(!_0x2dfa93)return null;let _0x2e9d3a=this[_0x10ef8b(0x514)][_0x10ef8b(0x4ae)]({'unitId':this[_0x10ef8b(0x3e8)],'subUnitId':this[_0x10ef8b(0x2c7)],'drawingId':_0xcb7674});if(!(_0x2e9d3a!=null&&_0x2e9d3a['transform']))return null;let {left:_0x3717a7=0x0,top:_0x4bba86=0x0,width:_0x55336f=0x0,height:_0x4cc487=0x0,flipX:_0x7946bc=!0x1,flipY:_0x40ef55=!0x1,angle:_0x1293a6}=_0x2e9d3a[_0x10ef8b(0x3af)];_0x2dfa93['updateContext']({'width':_0x55336f,'height':_0x4cc487});let _0x56d1ec=_0x2dfa93[_0x10ef8b(0x2cf)]()[_0x10ef8b(0x439)](_0x3614f5=>_0x3614f5[_0x10ef8b(0x2dc)]===_0x2fff5d);if(!_0x56d1ec)return null;let _0x1f578d=_0x7946bc?_0x55336f-_0x56d1ec['x']:_0x56d1ec['x'],_0x1818b6=_0x40ef55?_0x4cc487-_0x56d1ec['y']:_0x56d1ec['y'];if(_0x1293a6!==0x0&&_0x1293a6!=null){let _0x4293a3=_0x1293a6*Math['PI']/0xb4,_0x221885=Math[_0x10ef8b(0x4f7)](_0x4293a3),_0xf123d2=Math[_0x10ef8b(0x467)](_0x4293a3),_0x53c7bd=_0x55336f/0x2,_0x4367a7=_0x4cc487/0x2,_0x2f6a3e=_0x1f578d-_0x53c7bd,_0x1e22f4=_0x1818b6-_0x4367a7;_0x1f578d=_0x53c7bd+_0x2f6a3e*_0x221885-_0x1e22f4*_0xf123d2,_0x1818b6=_0x4367a7+_0x2f6a3e*_0xf123d2+_0x1e22f4*_0x221885;}_0x1f578d+=_0x3717a7,_0x1818b6+=_0x4bba86;let _0x557f75=_0x56d1ec['ang']/0xea60;_0x7946bc&&(_0x557f75=0xb4-_0x557f75),_0x40ef55&&(_0x557f75=-_0x557f75),_0x557f75+=_0x1293a6||0x0,_0x557f75=(_0x557f75%0x168+0x168)%0x168;let _0x414903=(0x0,_0x42b1e0[_0x10ef8b(0x237)])({'left':_0x3717a7,'top':_0x4bba86,'width':_0x55336f,'height':_0x4cc487},_0x1293a6||0x0);return{'point':{'x':_0x1f578d,'y':_0x1818b6},'angle':_0x557f75,'bounds':_0x414903};}[_0x3f4941(0x251)](_0x1a8f62,_0x3eec14){const _0x4bc507=_0x3f4941;let _0x247d6d=_0x3eec14['x']-_0x1a8f62['x'],_0x44171c=_0x3eec14['y']-_0x1a8f62['y'];return Math['abs'](_0x247d6d)>=Math[_0x4bc507(0x367)](_0x44171c)?_0x247d6d>=0x0?0xb4:0x0:_0x44171c>=0x0?0x10e:0x5a;}[_0x3f4941(0x4db)](){const _0x50404e=_0x3f4941;this[_0x50404e(0x3c7)]=void 0x0,this['_unitId']=void 0x0,this[_0x50404e(0x2c7)]=void 0x0,this[_0x50404e(0x369)]();}[_0x3f4941(0x343)](){const _0x50a88d=_0x3f4941;this[_0x50a88d(0x369)](),super[_0x50a88d(0x343)]();}};_0x4b38c3=_0x2cf515([_0x2dfb17(0x1,_0x5ee564[_0x3f4941(0x26f)]),_0x2dfb17(0x2,_0x1dacf6['IRenderManagerService']),_0x2dfb17(0x3,_0xba406a['IDrawingManagerService']),_0x2dfb17(0x4,_0x5ee564['IUniverInstanceService']),_0x2dfb17(0x5,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x308292[_0x3f4941(0x41e)])),_0x2dfb17(0x6,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x341b27)),_0x2dfb17(0x7,(0x0,_0x5ee564['Inject'])(_0x59a212))],_0x4b38c3);let _0x572e0a=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x13ceae,_0x102df4,_0x332727){const _0xcfc89d=_0x3f4941;super(),this[_0xcfc89d(0x425)]=_0x13ceae,this[_0xcfc89d(0x514)]=_0x102df4,this['_shapeRenderController']=_0x332727,this[_0xcfc89d(0x292)]();}[_0x3f4941(0x292)](){const _0x4e83e5=_0x3f4941;this['disposeWithMe'](this['_sheetPrintInterceptorService'][_0x4e83e5(0x511)][_0x4e83e5(0x359)](this['_sheetPrintInterceptorService']['interceptor'][_0x4e83e5(0x2a1)]()[_0x4e83e5(0x337)],{'handler':(_0x278062,_0x1219e8,_0x195173)=>{const _0x39b2d0=_0x4e83e5;var _0x1f5606;let {unitId:_0x9f2cd,subUnitId:_0x34680f,scene:_0x2a68a3,resourceCollector:_0x49f4df}=_0x1219e8,_0x57b4c8=(_0x1f5606=this[_0x39b2d0(0x514)][_0x39b2d0(0x2bf)](_0x9f2cd))==null?void 0x0:_0x1f5606[_0x34680f];return _0x57b4c8==null||_0x57b4c8[_0x39b2d0(0x2bb)][_0x39b2d0(0x3cc)](_0x2fbbe6=>{const _0x40a274=_0x39b2d0;let _0x1fea71=_0x57b4c8[_0x40a274(0x224)][_0x2fbbe6];_0x1fea71['drawingType']===_0x5ee564[_0x40a274(0x2b1)][_0x40a274(0x2a5)]&&!_0x1fea71[_0x40a274(0x471)]&&this['_shapeRenderController'][_0x40a274(0x249)](_0x1fea71,_0x2a68a3,{'resourceCollector':_0x49f4df});}),_0x195173(_0x278062);}}));}};_0x572e0a=_0x2cf515([_0x2dfb17(0x0,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x17a3f5['SheetPrintInterceptorService'])),_0x2dfb17(0x1,_0xba406a[_0x3f4941(0x253)]),_0x2dfb17(0x2,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x1a428d))],_0x572e0a);let _0x476170=class extends _0x5ee564['Disposable']{constructor(_0x4b4bbd,_0x1dfba9,_0x350953){const _0x4d8618=_0x3f4941;super(),this['_commandService']=_0x4b4bbd,this[_0x4d8618(0x453)]=_0x1dfba9,this[_0x4d8618(0x419)]=_0x350953,this[_0x4d8618(0x2ef)]();}[_0x3f4941(0x2ef)](){const _0x4d7638=_0x3f4941;this['disposeWithMe'](this[_0x4d7638(0x432)]['beforeCommandExecuted'](_0x263bfe=>{const _0x44407d=_0x4d7638;let _0x41b719,_0x40df0f;if(_0x263bfe['id']===_0x308292[_0x44407d(0x280)]['id']||_0x263bfe['id']===_0x308292[_0x44407d(0x41d)]['id']||_0x263bfe['id']===_0x308292['UpdateConnectorRelationCommand']['id']){let _0x477ad7=_0x263bfe[_0x44407d(0x226)];_0x41b719=_0x477ad7[_0x44407d(0x4fd)],_0x40df0f=_0x477ad7[_0x44407d(0x31a)];}!_0x41b719||!_0x40df0f||this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_0x417e5f['WorkbookEditablePermission']],'worksheetTypes':[_0x417e5f[_0x44407d(0x20e)]]},_0x41b719,_0x40df0f)||this[_0x44407d(0x419)][_0x44407d(0x2ce)](this[_0x44407d(0x453)]['t'](_0x44407d(0x35c)));}));}};_0x476170=_0x2cf515([_0x2dfb17(0x0,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x5ee564[_0x3f4941(0x26f)])),_0x2dfb17(0x1,(0x0,_0x5ee564['Inject'])(_0x5ee564[_0x3f4941(0x231)])),_0x2dfb17(0x2,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x417e5f[_0x3f4941(0x335)]))],_0x476170);let _0x482382=class extends _0x5ee564[_0x3f4941(0x43b)]{constructor(_0x26696a,_0x478d74,_0x4e8ff1,_0x47bb74,_0x27f076,_0x22332f,_0x198d79,_0x3eb770,_0x514ddd,_0x16b5db,_0x438272){const _0x2c7f04=_0x3f4941;super(),this[_0x2c7f04(0x3ed)]=_0x26696a,this[_0x2c7f04(0x385)]=_0x478d74,this[_0x2c7f04(0x3b1)]=_0x4e8ff1,this[_0x2c7f04(0x23b)]=_0x47bb74,this[_0x2c7f04(0x453)]=_0x27f076,this['_commandService']=_0x22332f,this['_drawingManagerService']=_0x198d79,this[_0x2c7f04(0x2d2)]=_0x3eb770,this[_0x2c7f04(0x4df)]=_0x514ddd,this[_0x2c7f04(0x35f)]=_0x16b5db,this[_0x2c7f04(0x1e9)]=_0x438272,_0xaf91f4(this,_0x2c7f04(0x303),null),_0xaf91f4(this,_0x2c7f04(0x2d1),null),_0xaf91f4(this,_0x2c7f04(0x256),!0x1),_0xaf91f4(this,_0x2c7f04(0x26a),0x0),_0xaf91f4(this,'_initializedShapePopupMenu',new Set()),_0xaf91f4(this,_0x2c7f04(0x46e),[]),this[_0x2c7f04(0x268)](),this[_0x2c7f04(0x37d)](this[_0x2c7f04(0x3ed)][_0x2c7f04(0x38f)](_0x5ee564['UniverInstanceType']['UNIVER_SHEET'])['subscribe'](_0x25a246=>{if(!_0x25a246){var _0x35c5ce;(_0x35c5ce=this['_sidebarDisposable'])==null||_0x35c5ce['dispose']();return;}this['_createShapePopupMenu'](_0x25a246);})),this[_0x2c7f04(0x20c)](),this['initShapePopupMenu'](),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x2c7f04(0x504)](_0x354b2=>{const _0x48b239=_0x2c7f04;_0x354b2&&this[_0x48b239(0x4b4)]();}));}[_0x3f4941(0x268)](){const _0x2eb0d6=_0x3f4941;this[_0x2eb0d6(0x3b1)]['mergeMenu'](_0x1174a0);}[_0x3f4941(0x241)](){const _0x5af982=_0x3f4941;this[_0x5af982(0x3ed)][_0x5af982(0x2e0)](_0x5ee564[_0x5af982(0x502)][_0x5af982(0x407)])[_0x5af982(0x3cc)](_0x29c8cc=>this[_0x5af982(0x51b)](_0x29c8cc));}[_0x3f4941(0x352)](_0x3b2493,_0x311591,_0x25b9b7){const _0x24a145=_0x3f4941;let _0x5689ca=this[_0x24a145(0x23b)]['getShapeTypeById'](_0x3b2493,_0x311591,_0x25b9b7),_0x1f716e=this[_0x24a145(0x23b)]['getShapeDataById'](_0x3b2493,_0x311591,_0x25b9b7);return _0x5689ca!==void 0x0&&_0x1f716e!==void 0x0?{'shapeData':_0x1f716e,'shapeId':_0x25b9b7,'shapeType':_0x5689ca,'unitId':_0x3b2493,'subUnitId':_0x311591,'version':this[_0x24a145(0x26a)],'disableShapeOption':!0x1}:null;}[_0x3f4941(0x51b)](_0x3b9878){const _0x145b6c=_0x3f4941;if(!_0x3b9878)return;let _0x1341ec=_0x3b9878[_0x145b6c(0x34f)]();this['_renderManagerService'][_0x145b6c(0x302)](_0x1341ec)&&!this[_0x145b6c(0x3b0)][_0x145b6c(0x302)](_0x1341ec)&&(this[_0x145b6c(0x48c)](_0x1341ec),this['_initializedShapePopupMenu'][_0x145b6c(0x368)](_0x1341ec));}[_0x3f4941(0x4b4)](){const _0x472e3b=_0x3f4941;this['_disposePopups'][_0x472e3b(0x3cc)](_0x37ea85=>_0x37ea85['dispose']()),this[_0x472e3b(0x46e)][_0x472e3b(0x461)]=0x0;}[_0x3f4941(0x48c)](_0x3b6132){const _0x1fa751=_0x3f4941;var _0x411ea0;let _0x356443=(_0x411ea0=this[_0x1fa751(0x35f)][_0x1fa751(0x3b3)](_0x3b6132))==null?void 0x0:_0x411ea0['scene'],_0x2e2c76=_0x356443==null?void 0x0:_0x356443['getTransformerByCreate']();!_0x356443||!_0x2e2c76||(this[_0x1fa751(0x37d)](_0x2e2c76['createControl$'][_0x1fa751(0x504)](()=>{const _0x38df62=_0x1fa751;let _0x3eb439=_0x2e2c76[_0x38df62(0x245)]();if(this[_0x38df62(0x4b4)](),this[_0x38df62(0x256)]||_0x3eb439[_0x38df62(0x254)]>0x1)return;let _0x59fba2=_0x3eb439['values']()[_0x38df62(0x4b2)]()['value'];if(!_0x59fba2)return;let _0x117e13=this[_0x38df62(0x514)][_0x38df62(0x240)](_0x59fba2[_0x38df62(0x4bf)]);if(!_0x117e13||_0x117e13[_0x38df62(0x46a)]!==_0x5ee564[_0x38df62(0x2b1)][_0x38df62(0x2a5)])return;let {unitId:_0x132572,subUnitId:_0x22da8e,drawingId:_0x586a32,drawingType:_0xf79c31}=_0x117e13,_0x3ffccc=this[_0x38df62(0x352)](_0x132572,_0x22da8e,_0x586a32);if(!_0x3ffccc)return;this[_0x38df62(0x4df)][_0x38df62(0x347)](_0x5ee564[_0x38df62(0x3c3)],!0x0);let _0xb831a=this[_0x38df62(0x2d2)][_0x38df62(0x42b)](_0x59fba2,{'componentKey':_0x2348ee,'direction':_0x38df62(0x415),'offset':[0x0,_0x16d6cd[_0x38df62(0x1f2)]],'extraProps':{'unitId':_0x132572,'subUnitId':_0x22da8e,'drawingId':_0x586a32,'drawingType':_0xf79c31,'shapeType':_0x3ffccc['shapeType'],'shapeData':_0x3ffccc[_0x38df62(0x48e)]}});this['_disposePopups']['push'](this[_0x38df62(0x37d)](_0xb831a)),this['_drawingManagerService'][_0x38df62(0x204)]()['find'](_0x2ded35=>_0x2ded35['unitId']===_0x132572&&_0x2ded35[_0x38df62(0x31a)]===_0x22da8e&&_0x2ded35['drawingId']===_0x586a32)||this['_drawingManagerService'][_0x38df62(0x211)]([{'unitId':_0x132572,'subUnitId':_0x22da8e,'drawingId':_0x586a32}]);})),this[_0x1fa751(0x37d)](_0x2e2c76[_0x1fa751(0x480)][_0x1fa751(0x504)](()=>{const _0x19196e=_0x1fa751;this[_0x19196e(0x4b4)](),this[_0x19196e(0x4df)]['setContextValue'](_0x5ee564[_0x19196e(0x3c3)],!0x1),this[_0x19196e(0x514)][_0x19196e(0x211)](null);})),this[_0x1fa751(0x37d)](_0x2e2c76[_0x1fa751(0x4fa)][_0x1fa751(0x504)](()=>{const _0x2226b6=_0x1fa751;this[_0x2226b6(0x4b4)]();})),this[_0x1fa751(0x37d)](_0x2e2c76[_0x1fa751(0x2e4)][_0x1fa751(0x504)](()=>{this['_clearPopups']();})));}[_0x3f4941(0x20c)](){const _0x16b61c=_0x3f4941;this[_0x16b61c(0x37d)](this[_0x16b61c(0x432)]['onCommandExecuted'](_0x1a1de4=>{const _0x9186d=_0x16b61c;if(_0x1a1de4['id']===_0x1ab9c0['id']){let {unitId:_0x11b853,subUnitId:_0x227b10,drawingId:_0x504879}=_0x1a1de4[_0x9186d(0x226)];this[_0x9186d(0x26a)]+=0x1,this[_0x9186d(0x2d1)]=this[_0x9186d(0x352)](_0x11b853,_0x227b10,_0x504879),this[_0x9186d(0x4b4)](),this[_0x9186d(0x47c)]();}if(_0x1a1de4['id']===_0x9092cb['id']&&(this[_0x9186d(0x2d1)]=null,this[_0x9186d(0x476)]()),_0x1a1de4['id']===_0x308292['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x7fa1cc,subUnitId:_0x5ba1ef,shapeId:_0x421162}=_0x1a1de4[_0x9186d(0x226)];if(this[_0x9186d(0x2d1)]&&this[_0x9186d(0x2d1)][_0x9186d(0x503)]===_0x421162){let _0x55b59e=this[_0x9186d(0x352)](_0x7fa1cc,_0x5ba1ef,_0x421162);_0x55b59e&&(this[_0x9186d(0x26a)]+=0x1,_0x55b59e[_0x9186d(0x3b8)]=this[_0x9186d(0x26a)],this[_0x9186d(0x2d1)]=_0x55b59e,this[_0x9186d(0x256)]&&this[_0x9186d(0x47c)]());}}})),this[_0x16b61c(0x37d)](this[_0x16b61c(0x514)][_0x16b61c(0x2e7)]['subscribe'](_0xde3658=>{const _0x43676a=_0x16b61c;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0xde3658[_0x43676a(0x461)]===0x0){this[_0x43676a(0x2d1)]=null,this['_closeShapeEditPanel']();return;}if(_0xde3658['length']===0x1&&_0xde3658[0x0][_0x43676a(0x46a)]===_0x5ee564['DrawingTypeEnum']['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this[_0x43676a(0x2d1)]=this[_0x43676a(0x352)](_0xde3658[0x0][_0x43676a(0x4fd)],_0xde3658[0x0][_0x43676a(0x31a)],_0xde3658[0x0]['drawingId']),this[_0x43676a(0x2d1)])){this['_openShapeEditPanel']();return;}let _0xbc2f53=_0xde3658[_0x43676a(0x309)](_0x383d44=>_0x383d44[_0x43676a(0x46a)]===_0x5ee564[_0x43676a(0x2b1)][_0x43676a(0x2a5)]);if(_0xde3658[_0x43676a(0x461)]>0x1&&_0xbc2f53[_0x43676a(0x461)]===_0xde3658['length']){if(this[_0x43676a(0x26a)]+=0x1,this[_0x43676a(0x2d1)]=this[_0x43676a(0x352)](_0xde3658[0x0][_0x43676a(0x4fd)],_0xde3658[0x0][_0x43676a(0x31a)],_0xde3658[0x0][_0x43676a(0x4e3)]),this[_0x43676a(0x2d1)]){this[_0x43676a(0x47c)]();return;}}else{if(this[_0x43676a(0x26a)]+=0x1,this[_0x43676a(0x2d1)]=this['_getShapeInfo'](_0xde3658[0x0][_0x43676a(0x4fd)],_0xde3658[0x0][_0x43676a(0x31a)],_0xde3658[0x0]['drawingId']),this[_0x43676a(0x2d1)]){this[_0x43676a(0x2d1)]['disableShapeOption']=!0x0,this[_0x43676a(0x47c)]();return;}}this[_0x43676a(0x476)]();}));}[_0x3f4941(0x47c)](){const _0x2e0796=_0x3f4941;this['_activeShapeInfo']&&(this[_0x2e0796(0x303)]=this[_0x2e0796(0x385)][_0x2e0796(0x3be)]({'id':_0x5d3717,'header':{'title':this['_localeService']['t'](_0x2e0796(0x2d3))},'width':0x184,'children':{'label':_0x5d3717,...this[_0x2e0796(0x2d1)]},'onClose':()=>{const _0x3e381f=_0x2e0796;this['_drawingManagerService']['focusDrawing'](null),this[_0x3e381f(0x4df)][_0x3e381f(0x347)](_0x5ee564['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x3e381f(0x303)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x3f4941(0x476)](){const _0x14ad28=_0x3f4941;this[_0x14ad28(0x256)]=!0x1,this['_sidebarService'][_0x14ad28(0x2fe)](_0x5d3717),this['_sidebarDisposable']=null,this[_0x14ad28(0x4df)][_0x14ad28(0x347)](_0x5ee564['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x14ad28(0x514)][_0x14ad28(0x211)](null);}};_0x482382=_0x2cf515([_0x2dfb17(0x0,_0x5ee564[_0x3f4941(0x4e5)]),_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0xa79fa1[_0x3f4941(0x2df)])),_0x2dfb17(0x2,_0xa79fa1[_0x3f4941(0x4d3)]),_0x2dfb17(0x3,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x308292[_0x3f4941(0x41e)])),_0x2dfb17(0x4,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x5ee564[_0x3f4941(0x231)])),_0x2dfb17(0x5,_0x5ee564[_0x3f4941(0x26f)]),_0x2dfb17(0x6,_0xba406a[_0x3f4941(0x253)]),_0x2dfb17(0x7,(0x0,_0x5ee564['Inject'])(_0x17a3f5['SheetCanvasPopManagerService'])),_0x2dfb17(0x8,_0x5ee564[_0x3f4941(0x23f)]),_0x2dfb17(0x9,_0x1dacf6['IRenderManagerService']),_0x2dfb17(0xa,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0xd6156e))],_0x482382);let _0x568b88=class extends _0x5ee564[_0x3f4941(0x25a)]{constructor(_0x3375cd=_0x5cd296,_0xcd6489,_0xa1ec0,_0x423b0f,_0x32ab04){const _0x5de6fe=_0x3f4941;super(),this[_0x5de6fe(0x25e)]=_0x3375cd,this[_0x5de6fe(0x433)]=_0xcd6489,this[_0x5de6fe(0x432)]=_0xa1ec0,this[_0x5de6fe(0x3f8)]=_0x423b0f,this['_renderManagerService']=_0x32ab04;let {..._0x24d1e7}=(0x0,_0x5ee564[_0x5de6fe(0x20f)])({},_0x5cd296,this[_0x5de6fe(0x25e)]);this[_0x5de6fe(0x3f8)][_0x5de6fe(0x2bc)]('sheets-shape-ui.config',_0x24d1e7),this[_0x5de6fe(0x27e)]();}[_0x3f4941(0x1fa)](){const _0x5f2cb5=_0x3f4941;(0x0,_0x5ee564['touchDependencies'])(this[_0x5f2cb5(0x433)],[[_0x482382],[_0x4ea23e],[_0x1a428d],[_0x572e0a]]);}[_0x3f4941(0x341)](){const _0x195aea=_0x3f4941;this[_0x195aea(0x433)][_0x195aea(0x2ad)](_0x482382)[_0x195aea(0x241)]();}['onReady'](){const _0x3ea327=_0x3f4941;[[_0x59a212],[_0x341b27],[_0x196222]]['forEach'](_0x19390a=>this[_0x3ea327(0x433)][_0x3ea327(0x368)](_0x19390a)),(0x0,_0x5ee564[_0x3ea327(0x366)])(this['_injector'],[[_0x196222],[_0x341b27]]),this[_0x3ea327(0x35f)][_0x3ea327(0x41b)](_0x5ee564[_0x3ea327(0x502)][_0x3ea327(0x407)],[_0x59a212]),this[_0x3ea327(0x35f)]['registerRenderModule'](_0x5ee564[_0x3ea327(0x502)]['UNIVER_SHEET'],[_0x2ebc59]),this[_0x3ea327(0x35f)][_0x3ea327(0x41b)](_0x5ee564[_0x3ea327(0x502)][_0x3ea327(0x407)],[_0x4b38c3]),this[_0x3ea327(0x35f)][_0x3ea327(0x41b)](_0x5ee564[_0x3ea327(0x502)][_0x3ea327(0x407)],[_0x1763f2]),this['_renderManagerService'][_0x3ea327(0x41b)](_0x5ee564[_0x3ea327(0x502)][_0x3ea327(0x27c)],[_0x49eb4d]);}[_0x3f4941(0x3c2)](){const _0x1a5dc1=_0x3f4941;this[_0x1a5dc1(0x433)]['add']([_0x12ef7b]),this[_0x1a5dc1(0x433)]['get'](_0x12ef7b);let _0x24f7d1=this['_injector'];[[_0x482382],[_0x4ea23e],[_0x1a428d],[_0x572e0a],[_0x391f15],[_0xd6156e],[_0x513d78],[_0x12c69b],[_0x476170]][_0x1a5dc1(0x3cc)](_0xce1bd2=>_0x24f7d1['add'](_0xce1bd2)),(0x0,_0x5ee564['touchDependencies'])(this[_0x1a5dc1(0x433)],[[_0x482382],[_0x4ea23e],[_0x1a428d],[_0x391f15],[_0xd6156e],[_0x513d78],[_0x12c69b],[_0x476170]]);}[_0x3f4941(0x27e)](){const _0x118cd7=_0x3f4941;[_0x5241d5,_0x3fa252,_0x9092cb,_0x1ab9c0,_0x23579a,_0x3c9065]['forEach'](_0x542e2a=>this[_0x118cd7(0x37d)](this[_0x118cd7(0x432)][_0x118cd7(0x434)](_0x542e2a)));}};_0xaf91f4(_0x568b88,_0x3f4941(0x360),_0x5ee564[_0x3f4941(0x502)]['UNIVER_SHEET']),_0xaf91f4(_0x568b88,_0x3f4941(0x283),_0x3f4941(0x371)),_0xaf91f4(_0x568b88,_0x3f4941(0x304),_0x57e791),_0xaf91f4(_0x568b88,_0x3f4941(0x3b8),_0x400ee0),_0x568b88=_0x2cf515([(0x0,_0x5ee564['DependentOn'])(_0x54ca2b[_0x3f4941(0x35b)],_0xfaa137['UniverDocsPlugin'],_0xba406a['UniverDrawingPlugin'],_0x5d451e['UniverDrawingUIPlugin'],_0x1dacf6[_0x3f4941(0x271)],_0x417e5f[_0x3f4941(0x3c9)],_0x5dc0ea[_0x3f4941(0x45d)],_0x2c2d11[_0x3f4941(0x274)],_0x1a0005['UniverShapeEditorPlugin'],_0x253ecd['UniverSheetsDrawingUIPlugin'],_0x308292['UniverSheetsShapePlugin'],_0x17a3f5[_0x3f4941(0x28b)],_0x16d6cd['UniverShapeEditorUIPlugin']),_0x2dfb17(0x1,(0x0,_0x5ee564[_0x3f4941(0x2d0)])(_0x5ee564['Injector'])),_0x2dfb17(0x2,_0x5ee564[_0x3f4941(0x26f)]),_0x2dfb17(0x3,_0x5ee564['IConfigService']),_0x2dfb17(0x4,_0x1dacf6['IRenderManagerService'])],_0x568b88),_0x25c657[_0x3f4941(0x409)]=_0x1174a0,Object[_0x3f4941(0x2b3)](_0x25c657,_0x3f4941(0x2a4),{'enumerable':!0x0,'get':function(){return _0x568b88;}});}));
1
+ function _0x50be(_0x513589,_0x85e9dc){_0x513589=_0x513589-0x71;const _0x46ad11=_0x46ad();let _0x50bec7=_0x46ad11[_0x513589];return _0x50bec7;}function _0x46ad(){const _0x104580=['sheets-shape-ui.ribbon.shape-format.arrange-backward','UniverSheetsUIPlugin','getBatchUpdateOp','CommandType','setPresentation','sheet.operation.apply-shape-quick-style','adjHandleFill','getShapeType','register','shapeText','10494380cqdIMY','size','setShouldShowAdjust','createInternalEditorID','SHAPE_CHANGE_PICKER_COMPONENT','_handleConnectorPointerUp','localToWorld','clearAdjustValue','setAdjustValueByName','getObjectListPanelLabels','DocSelectionRenderService','activeSheet$','children','enableObjectsEvent','_baseShapeWidth','@univerjs-pro/license','1em','transformByState','height','@univerjs/sheets-ui','getBatchAddOp','sheets-shape-ui.permission.editErr','Observable','_generatePasteMutations','refreshAdjustControls','connection-site-','M3.3\x2013.4L8\x209.8L12.7\x2013.4H3.3Z','isEditing','_imageShapeClipController','prototype','Shape','INSERT','shape-editor-ui.arrange.front','get','pipe','getConnectionSiteList','cos','VIEW_MAIN_LEFT','localName','values','BUTTON','_registerFocusChangeHandler','showContextualTab','blockExecuteWithoutPermission','packageName','useReducer','_shapeFloatingToolbarService','UniverSheetsShapePlugin','sheets-shape-ui','amd','type','image-clip-adjust-point-','getPresentation','generateRandomId','_props','getBasicShapeRotateBound','_sheetShapeAdjustController','getPropertyValue','tag','shouldClipShapeTextDocument','_clearControls','focusDrawing','title','FlipHorizontalIcon','shape-format-setting-icon','sheets-shape-ui.shape-format.style-ribbon-control','_getConnectPointInfo','setConfig','sheets-shape-ui.shape-format.quick-style-gallery','svg','getConnectorLinePoints','_lastEditingShapeKey','resourceCollector','getOrCreateDrawingCopyPlan','M8.57975\x2014.5902C8.58121\x2014.5917\x208.58268\x2014.5931\x208.58416\x2014.5946C8.64077\x2014.6502\x208.70566\x2014.6923\x208.77482\x2014.7209C8.84557\x2014.7502\x208.92314\x2014.7664\x209.00449\x2014.7664C9.08585\x2014.7664\x209.16342\x2014.7502\x209.23416\x2014.7209C9.30332\x2014.6923\x209.36821\x2014.6502\x209.42482\x2014.5946','back','useObservable','getDrawingShapeKeyByDrawingSearch','fill','_registerImageShapeClipDelegate','_getConnectionSiteAngle','debounceRefreshControls','contentHeight','_sheetDrawingShapeRenderController','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','getRealBound','sheets-shape-ui.insertShape','M7.82994\x201.40913C7.88746\x201.35161\x207.95376\x201.30821\x208.02453\x201.27893C8.09527\x201.24959\x208.17285\x201.2334\x208.2542\x201.2334C8.33555\x201.2334\x208.41313\x201.24959\x208.48387\x201.27893C8.55464\x201.30821\x208.62094\x201.35161\x208.67846\x201.40913L10.6785\x203.40913C10.9128\x203.64345\x2010.9128\x204.02335\x2010.6785\x204.25766C10.4441\x204.49198\x2010.0642\x204.49198\x209.82994\x204.25766L8.8542\x203.28193V5.8334C8.8542\x206.16477\x208.58557\x206.4334\x208.2542\x206.4334C7.92283\x206.4334\x207.6542\x206.16477\x207.6542\x205.8334V3.28193L6.67846\x204.25766C6.44415\x204.49198\x206.06425\x204.49198\x205.82994\x204.25766C5.59562\x204.02335\x205.59562\x203.64345\x205.82994\x203.40913L7.82994\x201.40913Z','fillImageSourceType','_currentScene','CUT','flip-horizontal-icon','48576YlmCDk','_registerDrawingFocusChangeHandler','MEDIA','M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','adjName','sheets-shape-ui.imagePanel.crop.shape','Large','_sheetSkeletonService','setProperty','_formulaShapes','getShapeTypeById','skeleton','slice','_shapeTextEditingService','toPrimitive','isConnectorShape','transformToDrawingPosition','_sheetClipboardService','lineType','startX','_isImagePointerDown','idSuffix','startArrow','isLineShape','_renderWithCache','#FFFFFF','UniverDocsUi','topmost-icon','_cxtHandlerPointerMove','renderDrawingShape','add','_focusedDrawings','clipTop','Plugin','_closeShapeEditPanel','presentationChanged$','_baseShapeHeight','UUID','_iconManager','_copyInfo','sheets-shape-ui.ribbon.shape-format.formula-control','@univerjs/ui','InsertSheetsShapeMutation','doc.image-clip.shape-picker.component','getEditing','sheets-shape-ui.ribbon.shape-format.arrange-back','touchDependencies','M1.6543\x2013.1665C1.6543\x2012.2828\x202.37064\x2011.5665\x203.2543\x2011.5665H13.5543C14.438\x2011.5665\x2015.1543\x2012.2828\x2015.1543\x2013.1665C15.1543\x2014.0502\x2014.438\x2014.7665\x2013.5543\x2014.7665H3.2543C2.37064\x2014.7665\x201.6543\x2014.0502\x201.6543\x2013.1665ZM3.2543\x2012.7665C3.03338\x2012.7665\x202.8543\x2012.9456\x202.8543\x2013.1665C2.8543\x2013.3874\x203.03338\x2013.5665\x203.2543\x2013.5665H13.5543C13.7752\x2013.5665\x2013.9543\x2013.3874\x2013.9543\x2013.1665C13.9543\x2012.9456\x2013.7752\x2012.7665\x2013.5543\x2012.7665H3.2543Z','M10.2\x208H11.8','Injector','bindRenderTransformerLifecycle','changing$','M14\x208H14.2','PictureFill','flipY','defs','URL','fontFamily','subscribe','div','_sheetInterceptorService','_localeService','shape-editor-ui.toolbar.quickStyles','isMainScene','M12.05\x2012.1C12.6299\x2012.1\x2013.1\x2011.6299\x2013.1\x2011.05C13.1\x2010.4701\x2012.6299\x2010\x2012.05\x2010C11.4701\x2010\x2011\x2010.4701\x2011\x2011.05C11\x2011.6299\x2011.4701\x2012.1\x2012.05\x2012.1Z','updateShapeFillImage','ShapeLineTypeEnum','Path','RemoveSheetsShapeMutation','getCurrentScrollState','onload','_currentUniverService','UniverSheetsPlugin','params','M1.50439\x209C1.50439\x208.11634\x202.22074\x207.4\x203.10439\x207.4H13.4044C14.288\x207.4\x2015.0044\x208.11634\x2015.0044\x209C15.0044\x209.88366\x2014.2881\x2010.6\x2013.4044\x2010.6H3.1044C2.22074\x2010.6\x201.50439\x209.88366\x201.50439\x209ZM3.10439\x208.6C2.88348\x208.6\x202.70439\x208.77909\x202.70439\x209C2.70439\x209.22091\x202.88348\x209.4\x203.1044\x209.4H13.4044C13.6253\x209.4\x2013.8044\x209.22091\x2013.8044\x209C13.8044\x208.77909\x2013.6253\x208.6\x2013.4044\x208.6H3.10439Z','element','copyType','onPointerUp$','getCurrentRangeDisable$','close','getUnit','sheet.command.menu-insert-shape','_shapeFormulaService','_imageIoService','useDependency','_sheetsShapeService','target','_getImageDrawingInfo','_addShapeAdjustControl','SHAPE_TEXT','454076AnVtfc','_transform','_updateShapeAdjustControls','selectable','shapeId','makeDirty','extraProps','getAdjustInfoByName','UniverSheetsDrawingUi','None','srcRect','none','SHAPE_EDITOR_TRANSFORMER_CONFIG','deriveStateFromActiveSheet$','viewBox','priority','SheetSkeletonService','beforeCommandExecuted','_initCopyPaste','OTHERS','Disposable','_activeAdjustInfo','shapeModel','_reset','updateDocumentDataMargin','indexOf','mask','_sheetPrintInterceptorService','updateLinePoints','getShapeModel','ShapeTextFloatToolbar','DrawingApplyType','custom','disableObjectsEvent','@univerjs/sheets-drawing','ComponentManager','onerror','getInverseCoord','ShapeArrowTypeEnum','sheets-shape-ui.ribbon.shape-format.style-control','setHighlighted','_activeShapeId','_currentConnectionTarget','_drawingRenderService','sheets-shape-ui.objectListPanel.title','sheets-shape-ui.flipHorizontal','getCurrentLastSelection','index','_contextService','isFinite','onDblclick$','getSheetId','open','_editingParams$','_drawingManagerService','_openShapeEditPanel','actions','_insertingShapeKeys','next','src','MoveUpIcon','registerCommand','UniverSheetsDrawingPlugin','_isConnecting','objects','VIEW_MAIN_TOP','toDisposable','EMPTY','_activeImageId','isReleased','setShapeProps','0\x200\x2017\x2016','_univerInstanceService','reverse','DocumentViewModel','length','isArray','redo','shapeType','PaintIcon','transformToAxisAlignPosition','changeShapeType','_index','_urlImageService','registerRenderModule','IUndoRedoService','_componentManager','sheetViewStartRow','_attachConnectorObjectEvent','getRenderUnitById','getDrawingEditable','createElement','onStarting','wrapStrategy','M1.25\x202.96401C1.25\x203.84767\x201.96634\x204.56401\x202.85\x204.56401H13.15C14.0337\x204.56401\x2014.75\x203.84767\x2014.75\x202.96401C14.75\x202.08036\x2014.0337\x201.36401\x2013.15\x201.36401H2.85C1.96635\x201.36401\x201.25\x202.08036\x201.25\x202.96401ZM2.85\x203.36401C2.62909\x203.36401\x202.45\x203.18493\x202.45\x202.96401C2.45\x202.7431\x202.62909\x202.56401\x202.85\x202.56401H13.15C13.3709\x202.56401\x2013.55\x202.7431\x2013.55\x202.96401C13.55\x203.18493\x2013.3709\x203.36401\x2013.15\x203.36401H2.85Z','refreshFormulaPresentation','_sheetPermissionCheckController','SetDrawingSelectedOperation','_commandService','clipByShape','applyQuickStyleToShapeData','min','start','hasAttribute','getCurrentTypeOfUnit$','getMenuHiddenObservable','getDrawingData','sheet.menu.shape.flip-horizontal','forEach','SheetPrintInterceptorService','DocRenderController','clone','onReady','doc','REMOVE','_loadAndSetImage','_registerComponents','UniverSheetsShapeUIPlugin','univer-box-border\x20univer-px-4\x20univer-text-sm','_resetState','adjustValues','_drawingAddListener','SELECTOR','engine','Line','getPropertyPriority','getTransformer','evenodd','remove$','removeProperty','_initEditingParams','_updateSrcRectByTransform','unitId','_createCopyInfoByRange','getSkeletonParam','onSteady','_cxnIndex','_getDrawingRect','MoveDownIcon','hideContextualTab','_connectorObjects','addClipboardHook','strokeOpacity','OPERATION','_adjHandlerPointerUp','useState','unsubscribe','getObjectListPanelSectionIdForDrawingType','getSkeleton','_updateTransform','sheet.operation.update-shape-type','IContextService','UNIVER_DOC','mergeMenu','StraightConnector1','112iuJWIM','M8\x2010.2V11.8','transformForAngle','M8\x202.2V3.8','getViewportByCell','drawing.operation.set-drawing-active','save','getDrawingOKey','@univerjs/drawing','applyPoint','_init','scene','ShapeTextRibbonControl','ShapeFloatingToolbar','setPrstGeom','useMemo','ShapeEditPanel','version','resolveShapeTextDocumentRenderLayout','useEffect','drawWith','UniverDrawingUIPlugin','cxnIndex','interceptor','isHighlighted','sheet.menu.shape.flip-vertical','getBasicShapeRelation','getImageSourceCache','getObject','disconnect','worldPoints','getSheetCommandTarget','_sidebarService','TOP','isRender','addObject','_drawShapeText','ShapeGroupEnum','_shapeRenderController','160RgQwGq','Fragment','computeConnectorResizeLayout','getDrawingVisible','_showConnectionSites','sin','WorkbookEditablePermission','currentColor','_releaseRenderCache','formulaBinding','ObjectListPanelBase','FlipVerticalIcon','set','univerjs-icon\x20univerjs-icon-','getVisible','object','ShapeRenderModeEnum','create','ancestorTransform','clip-','UniverSheets','Rect','clear','_isHighlighted','cancelEditing','getDrawingSearch','CURSOR_TYPE','UniverSheetsUi','sheets-shape-ui.config','vertical','_registerIcons','front','registerFeaturePasteHook','routeConnectorLineShape','_generateCopyPasteMutations','COMMAND','extensionGroups','includes','_clearConnectionSites','_drawSimpleText','attachTransformerTo','_baseShapeLeft','react','_isShouldShowDrawingShapeAdjust','_disposed','non-scaling-stroke','delete','_sheetBasicShapeConnectionPointController','drawingType','sheetTransform','_applyFormulaAutoFitSize','getParent','createShapeFormulaDocument','_handleFreeEndpointMove','UniverProShapeEditorUi','_subUnitId','run','SetSheetDrawingCommand','onPointerMove$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DocInterceptorService','visible$','setFillImage','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','IURLImageService','sheets-shape-ui.ribbon.shape-format.arrange-forward','preValue','stopPropagation','changeStart$','defineProperty','url(#$1','editingParams$','SolidFill','_calculateFreeEndpointAngle','string','_shapeEditPanelVersion','onSavingEditorData$','sheets-shape-ui.ribbon.shape-format.arrange-front','path','IUniverInstanceService','LEFT','isDrawingObject','_draw','M14.0045\x204.4334C14.8881\x204.4334\x2015.6045\x203.71705\x2015.6045\x202.8334C15.6045\x201.94974\x2014.8881\x201.2334\x2014.0045\x201.2334H3.70449C2.82084\x201.2334\x202.10449\x201.94974\x202.10449\x202.8334C2.10449\x203.71705\x202.82084\x204.4334\x203.70449\x204.4334H14.0045ZM14.4045\x202.8334C14.4045\x203.05431\x2014.2254\x203.2334\x2014.0045\x203.2334H3.70449C3.48358\x203.2334\x203.30449\x203.05431\x203.30449\x202.8334C3.30449\x202.61248\x203.48358\x202.4334\x203.70449\x202.4334H14.0045C14.2254\x202.4334\x2014.4045\x202.61249\x2014.4045\x202.8334Z','iterator','Arrow','toFixed','switchMap','image','IConfigService','getTextModel','setSrcRect','error','_clearShapeAdjustControls','UniverDrawingUi','_activeShapeModel','_activeShapeAdjustPointList','isStartConnectorPoint','unregister','ang','getEndConnectInfo','getStartConnectInfo','worldPoint','undo','_getShapeAdjustPointListById','animationEnabled','activateDrawingObject','width','ContextMenuGroup','clearControl$','sheets-shape-ui.flipVertical','M8\x2014V14.2','ConnectorCoordinateTransform','SheetScrollManagerService','currentAdjustValues','getState','updateContext','_popupMenuListener','UNIVER_SHEET','permissionCheckWithoutRange','@univerjs/engine-render','move-up-icon','_registerDrawingMoveHandler','_insertShapes','rxjs','SHEET_VIEWPORT_KEY','_sheetDrawingService','gradientEndColor','value','contentVerticalOffset','getZoomRatio','getDrawingEffectBounds','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','data','entries','_clearShapeConnectorHandlerObjects','abs','formulaPresentation','createShapeTextBoxShapeData','sheets-shape-ui.objectListPanel.open','setCanUseShapeClip','description','DocumentDataModel','backward','setContextValue','fontSize','from','_sidebarDisposable','vectorEffect','ShapeArrowSizeEnum','DocumentSkeleton','classType','Medium','getInterceptPoints','offsetY','UPDATE','filter','sheet.shape.object-list.panel','_formulaAnimation','getConnectionRelation','_clearPopups','restore','onPointerDown$','getShapeQuickStyleType','Inject','VIEW_MAIN','SetDrawingApplyMutation','parse','top','M8\x206.2V7.8','removeLinePoints','color','ShapeFillEnum','getDrawingTypeNameKey','sheetViewStartColumn','canvasElement','RibbonInsertGroup','horizontal','_unitId','_rerouteConnectorLine','viewportScrollX','beginPath','_createShapeAdjustControls','calcAdjValues','_onSavingEditorData$','_baseHeight','setFormulaPresentation','getCurrentSkeleton','decorate','VIEW_MAIN_LEFT_TOP','translate','cxnPointFill','flipX','SheetsDrawingGroupCopyPasteController','asObservable','_handleFreeEndpointPointerUp','ISheetClipboardService','RIBBON','xlink:href','_targetShapeId','_moveConnectorWithShape','_menuManagerService','sheet.shape.floating-toolbar','M14.1544\x208.5999C15.038\x208.5999\x2015.7544\x207.88356\x2015.7544\x206.9999C15.7544\x206.11625\x2015.038\x205.3999\x2014.1544\x205.3999H3.85439C2.97074\x205.3999\x202.25439\x206.11625\x202.25439\x206.9999C2.25439\x207.88356\x202.97074\x208.5999\x203.85439\x208.5999H14.1544ZM14.5544\x206.9999C14.5544\x207.22082\x2014.3753\x207.3999\x2014.1544\x207.3999H3.85439C3.63348\x207.3999\x203.45439\x207.22082\x203.45439\x206.9999C3.45439\x206.77899\x203.63348\x206.5999\x203.85439\x206.5999H14.1544C14.3753\x206.5999\x2014.5544\x206.77899\x2014.5544\x206.9999Z','CROSSHAIR','SheetSkeletonManagerService','completeEditing','colorChannel1','_findShapeAtPoint','Vector2','Circle','LocaleService','onTransformChange$','defIds','_adjName','angle','clip','UniverUi','plainShapeTextToDocumentData','setEditing','_registerGroupFeaturePasteHook','_handleConnectedEndpointMove','panel','IDrawingManagerService','SolidLine','@univerjs/core','isCurvedConnectorShape','_drawRichText','appliedStrokeWidth','viewportScrollY','DocCanvasPopManagerService','_registerMoveHandler','getAutoFitPresentations','_initEvents','@univerjs/sheets','end','drawingId','PREDEFINED_HOOK_NAME','getScene','UpdateConnectorRelationCommand','idMap','SheetsShapeService','draw','toStringTag','jsx','_getShapeInfo','_isOpenedShapeEditPanel','presentation','prstGeom','current','use','function','ImageSourceTypeEnum','symbol','DocEventManagerService','ShapeStyleRibbonControl','_ribbonService','setFallbackVisible','ShapeFormatSettingIcon','0\x200\x2016\x2016','updateDocumentStyle','clearAdjustControls','oKey','displayName','name','trim','_visible','getTransformerByCreate','_executeConnectionCommand','drawFormulaShapeAnimationLayers','initShapePopupMenu','_hide','sheets-shape-ui.shape-format.formula-ribbon-control','ObjectLayersIcon','ShapeDefaultConfig','translateWithPrecision','rect','getBatchRemoveOp','map','_activeTargetShapeId','normalizeShapeTextModel','UniverProLicense','COPY_TYPE','ShapePickerPanel','memo','_baseWidth','Module','_attachAdjustEvent','DocSelectionManagerService','subscribeEvent','ArrangeTypeEnum','resolveActiveShapeQuickStylePresetId','ToggleShapeFloatingToolbarOperation','_getShapeAdjustInfosById','_addControl','@univerjs-pro/shape-editor-ui','style','_adjHandlerPointerMove','parseFloat','relation','sheet.command.update-shape-data','strokeWidth','UniverEngineRender','_draggingConnectorId','stringify','_initMenu','_loadShapePictureFill','sheets-shape-contextual-ribbon','executeCommand','cloneShapeDataForType','RemoveSheetDrawingCommand','SheetInterceptorService','clipHeight','_sheetCanvasPopManagerService','getUnitType','jsxs','getFocusDrawings','getShapeTextRect','setCollapsedIds','isHit','offsetX','_baseTop','_handleBasicShapeUpdateConnectorLineShape','intercept','isRichText','ShapeModel','_getSceneAndTransformerByDrawingSearch','fillImageSource','_initSelection','_setTransForm','getConnectionInfo','DRAWING_OBJECT_LAYER_INDEX','_activeShapeInfo','IImageIoService','interceptCommand','startY','SHAPE','createControl$','normal','shape-editor-ui.toolbar.changeShape','M2.6\x203.3L6.2\x208L2.6\x2012.7V3.3Z','rotation','UniverProSheetsShapeUi','_transformCalculateSrcRect','InsertShapeCommand','SheetCanvasPopManagerService','DrawingTypeEnum','DependentOn','_drawRichTextLayer','IRenderManagerService','canvas','getValue','animateFormulaPresentation','replace','shape-editor-ui.arrange.forward','_shapePopupMenuDisposable','ContextMenuPosition','_connectionSiteObjects','ToggleSheetsShapeFlipCommand','getBoundingClientRect','_initPermission','cxnPointStrokeWidth','update$','stroke-width','localeService','UniverCore','updateConnectionDetection','sectionFloating','round','BottomIcon','onCommandExecuted','render','IconManager','order','M2.2\x208H3.8','_groupCopyPasteController','getDrawingOrder','sheet.shape.text.float-menu','_createControls','getUnitId','UniverShapeEditorUIPlugin','DrawingCommonPanel','_isDrawingShapePointDown','isolated','RENDER_CLASS_TYPE','focus$','SheetsShapeUIMenuSchema','GROUP','_isStartAdjusting','VerticalAlign','shapeData','Transform','some','marginTop','@univerjs-pro/sheets-shape','http://www.w3.org/2000/svg','startConnectionDetection','_update','sheets-shape-ui.ribbon.shape-format','PRINTING_COMPONENT_COLLECT','ShapeTextHyperLinkPopupService','ShapeFloatingToolbarService','attrs','reduce','getShapeTextData','ISidebarService','_highlightedSiteIndex','getMatrix','_shapeId','FOCUSING_COMMON_DRAWINGS','setCursor','UniverLicensePlugin','M6.2\x208H7.8','SetShapeDrawingDataCommand','_updateImageAdjValues','_initialize','getActualSize','_clipService','subUnitId','_formulaKey','UniverSheetsDrawingUIPlugin','axisAlignSheetTransform','left','_updateAdjustControlPositions','prstGeomAdjValues','_disposePopups','_hasReset','1311327vaWcid','#bcbcbc','invert','getCanvasElement','resize','React','@univerjs/drawing-ui','endArrow','setOnSavingEditorData','flatMap','hidden','observe','ICommandService','removeAttribute','sheets-shape-ui.formatShape','useFormulaShapeToolbar','multiply','_executeConnectedRouteResizeCommand','computeConnectorRouteLayout','ShapeQuickStyleGallery','setPrstGeomAdjValues','_shapeUpdateListener','visible','_getImagePrstGeom','_context','_commandExecutedListener','resolveShapeTextEditorBehaviorShapeData','_activeAdjustPointList','getSelectedObjectMap','push','syncExecuteCommand','originalStrokeWidth','_isStartConnectorPoint','OBJECT_LIST_FLOATING_SECTION_ID','transform','activeAnObject','8277nIzRIx','ShapeIcon','DRAWING_SHAPE','_generateCutPasteMutations','hadStyleAttribute','useRef','SheetPermissionCheckController','targetShapeId','assign','#1a73e8','getSheetBySheetId','stroke','_cxtHandlerPointerUp','worldRect','getImage','forwardRef','279780MopcwZ','UpdateSheetsShapeDataMutation','shouldAllowShapeTextEditorHostSizeShrink','dispose','_getOrCreateShapeModel','IRibbonService','_initPrinting','useLayoutEffect','getObjectIncludeInGroup','getAdjustNames','getShapeData','_config','_shapeService','_baseDrawingRect','sheets-shape-ui.quickStyles','ShapeFormulaRibbonControl','IMenuManagerService','@univerjs/sheets-drawing-ui','_renderManagerService','shape-editor-ui.arrange.back','lineShapeId','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_initCommands','UniverDrawingPlugin','addImageSourceCache','adjHandleSize','UndoRedoGroupService','UniverInstanceType','UniverSheetsDrawing','shapeKey','206hSUzFR','disposeWithMe','has','calculate','getShapeDataById','_addShapeConnectorHandlerObjects','getDrawingByParam','HorizontalAlign','cxnPointStroke','getDrawingPoints','find','complete','getAdjustValueByName','isInGroup','M5.57564\x2011.6118C5.80995\x2011.3774\x206.18985\x2011.3774\x206.42417\x2011.6118L7.3999\x2012.5875V6.36951C7.3999\x206.03814\x207.66853\x205.76951\x207.9999\x205.76951C8.33127\x205.76951\x208.5999\x206.03814\x208.5999\x206.36951V12.5875L9.57564\x2011.6118C9.80995\x2011.3774\x2010.1899\x2011.3774\x2010.4242\x2011.6118C10.6585\x2011.8461\x2010.6585\x2012.226\x2010.4242\x2012.4603L8.4324\x2014.452C8.32324\x2014.5655\x208.16982\x2014.6362\x207.9999\x2014.6362C7.82998\x2014.6362\x207.67655\x2014.5655\x207.56739\x2014.452L5.57564\x2012.4603C5.34132\x2012.226\x205.34132\x2011.8461\x205.57564\x2011.6118Z','M1.25\x2013.036C1.25\x2012.1523\x201.96634\x2011.436\x202.85\x2011.436H13.15C14.0337\x2011.436\x2014.75\x2012.1523\x2014.75\x2013.036C14.75\x2013.9196\x2014.0337\x2014.636\x2013.15\x2014.636H2.85C1.96635\x2014.636\x201.25\x2013.9196\x201.25\x2013.036ZM2.85\x2012.636C2.62909\x2012.636\x202.45\x2012.8151\x202.45\x2013.036C2.45\x2013.2569\x202.62909\x2013.436\x202.85\x2013.436H13.15C13.3709\x2013.436\x2013.55\x2013.2569\x2013.55\x2013.036C13.55\x2012.8151\x2013.3709\x2012.636\x2013.15\x2012.636H2.85Z','ShapeTypeEnum','constructor','vertical-center','@univerjs/docs-ui','resetCursor','point','DRAWING_IMAGE','attachPopupToObject','_drawingType','RemoveSheetCommand','_injector','resolveShapeTextEditorWrapStrategy','BehaviorSubject','M13.4\x203.3L9.8\x208L13.4\x2012.7V3.3Z','isRenderLinePointsMode','attachRangeWithCoord','154861hephfS','TopmostIcon','ISheetDrawingService','buildShapeTextDataUpdate','popup','default','UniverRenderEnginePlugin','cxnPointRadius','text','discreteRangeToRange','_addShapeConnectorHandlerObject','_shapes','actualHeight','pluginName','Image','SetDrawingArrangeCommand','_handleConnectedEndpointPointerUp','_initSheetChange','dataModel','presetId','MenuItemType','setShapeData','max','isHitLine','_getZoomRatio','_getScrollInfo','with','keys','changeEnd$','_baseLeft','endConnectionDetection'];_0x46ad=function(){return _0x104580;};return _0x46ad();}(function(_0x4c5d9e,_0x26f49c){const _0x3beb5f=_0x50be,_0x99b7be=_0x4c5d9e();while(!![]){try{const _0xef21cd=-parseInt(_0x3beb5f(0x355))/0x1+-parseInt(_0x3beb5f(0x373))/0x2*(parseInt(_0x3beb5f(0x345))/0x3)+parseInt(_0x3beb5f(0xb4))/0x4+-parseInt(_0x3beb5f(0x176))/0x5*(parseInt(_0x3beb5f(0x418))/0x6)+-parseInt(_0x3beb5f(0x393))/0x7*(parseInt(_0x3beb5f(0x14f))/0x8)+parseInt(_0x3beb5f(0x321))/0x9+parseInt(_0x3beb5f(0x3bc))/0xa;if(_0xef21cd===_0x26f49c)break;else _0x99b7be['push'](_0x99b7be['shift']());}catch(_0x20a7b5){_0x99b7be['push'](_0x99b7be['shift']());}}}(_0x46ad,0x2af25),function(_0x5c700f,_0x50bbd0){const _0xe029eb=_0x50be;typeof exports=='object'&&typeof module<'u'?_0x50bbd0(exports,require('@univerjs-pro/shape-editor-ui'),require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/sheets-drawing-ui'),require('react')):typeof define==_0xe029eb(0x271)&&define[_0xe029eb(0x3ed)]?define(['exports',_0xe029eb(0x29d),_0xe029eb(0x83),'@univerjs-pro/engine-shape','@univerjs-pro/shape-editor',_0xe029eb(0x300),_0xe029eb(0x257),_0xe029eb(0x260),_0xe029eb(0x157),_0xe029eb(0x1ee),_0xe029eb(0x3cf),_0xe029eb(0x1f2),_0xe029eb(0x327),'react/jsx-runtime',_0xe029eb(0xd6),_0xe029eb(0x3cb),'@univerjs/docs',_0xe029eb(0x386),_0xe029eb(0x366),_0xe029eb(0x1a0)],_0x50bbd0):(_0x5c700f=typeof globalThis<'u'?globalThis:_0x5c700f||self,_0x50bbd0(_0x5c700f[_0xe029eb(0x2cc)]={},_0x5c700f[_0xe029eb(0x1ac)],_0x5c700f[_0xe029eb(0x24f)],_0x5c700f['UniverProEngineShape'],_0x5c700f['UniverProShapeEditor'],_0x5c700f['UniverProSheetsShape'],_0x5c700f[_0xe029eb(0x2e3)],_0x5c700f[_0xe029eb(0x18a)],_0x5c700f['UniverDrawing'],_0x5c700f[_0xe029eb(0x2a4)],_0x5c700f[_0xe029eb(0x191)],_0x5c700f['rxjs'],_0x5c700f[_0xe029eb(0x1d4)],_0x5c700f[_0xe029eb(0x326)],_0x5c700f[_0xe029eb(0x371)],_0x5c700f[_0xe029eb(0x28f)],_0x5c700f['UniverDocs'],_0x5c700f[_0xe029eb(0x74)],_0x5c700f[_0xe029eb(0xbc)],_0x5c700f[_0xe029eb(0x326)]));}(this,function(_0x392a1a,_0x52eb00,_0x321ff0,_0x136056,_0x14e0a7,_0x1d059b,_0x233421,_0x58820c,_0x511ed7,_0x1877f7,_0x2e7926,_0x17772c,_0x22c8d6,_0x741200,_0x5c75db,_0x412539,_0xfd9a62,_0x271c4d,_0x50c10c,_0xfbce25){const _0x3f2902=_0x50be;Object[_0x3f2902(0x1bb)](_0x392a1a,Symbol[_0x3f2902(0x269)],{'value':_0x3f2902(0x294)});function _0x5f0aca(_0x50bea5,_0x580d25){const _0x421232=_0x3f2902;let _0xbbea90={};for(let _0x47a18b of Object[_0x421232(0x3ae)](_0x580d25)){let _0x5a2aea=_0x580d25[_0x47a18b],_0x454896=_0x50bea5[_0x47a18b];if(_0x5a2aea!==void 0x0){if(_0x454896===void 0x0){_0xbbea90[_0x47a18b]=void 0x0;continue;}typeof _0x5a2aea==_0x421232(0x185)&&_0x5a2aea&&!Array[_0x421232(0x100)](_0x5a2aea)&&typeof _0x454896==_0x421232(0x185)&&_0x454896&&!Array[_0x421232(0x100)](_0x454896)?_0xbbea90[_0x47a18b]=_0x5f0aca(_0x454896,_0x5a2aea):_0xbbea90[_0x47a18b]=_0x454896;}}return _0xbbea90;}let _0xacbd3={'type':_0x233421['CommandType'][_0x3f2902(0x199)],'id':_0x3f2902(0x2a2),'handler':(_0x4ef95b,_0x5ca47f)=>{const _0x16e1b6=_0x3f2902;let _0x28eb3c=_0x4ef95b[_0x16e1b6(0x3dd)](_0x1d059b[_0x16e1b6(0x267)]),{unitId:_0x27227a,subUnitId:_0x3e5f18,shapeType:_0x7f42c2,shapeId:_0x553dc8,shapeData:_0x3db9b4,replaceShapeData:_0x3749ae,oldShapeJSON:_0x1b25a3}=_0x5ca47f;if(!_0x28eb3c['getShapeModel'](_0x27227a,_0x3e5f18,_0x553dc8))return!0x1;let _0x2c7817=_0x4ef95b[_0x16e1b6(0x3dd)](_0x233421['ICommandService']),_0xbb99fb=_0x4ef95b[_0x16e1b6(0x3dd)](_0x233421[_0x16e1b6(0x109)]),{oldShapeType:_0x5cac95,oldShapeData:_0x28cd58={}}=_0x1b25a3,_0x11f797=_0x3749ae?_0x28cd58:_0x5f0aca(_0x28cd58,_0x3db9b4||{}),_0x29f593={'id':_0x1d059b[_0x16e1b6(0x356)]['id'],'params':{'unitId':_0x27227a,'subUnitId':_0x3e5f18,'shapeId':_0x553dc8,'shapeType':_0x7f42c2,'shapeData':_0x3db9b4,'replace':_0x3749ae}},_0x40b1c5={'id':_0x1d059b[_0x16e1b6(0x356)]['id'],'params':{'unitId':_0x27227a,'subUnitId':_0x3e5f18,'shapeId':_0x553dc8,'shapeType':_0x5cac95,'shapeData':_0x11f797,'replace':_0x3749ae}};return _0x2c7817[_0x16e1b6(0x33f)](_0x29f593['id'],_0x29f593['params'])?(_0xbb99fb['pushUndoRedo']({'unitID':_0x27227a,'undoMutations':[_0x40b1c5],'redoMutations':[_0x29f593]}),!0x0):!0x1;}};function _0x387292(_0x37687e,_0x426850,_0x3e83fb,_0x10611e,_0x4e0228,_0x1e0570){const _0x57107b=_0x3f2902;let _0x5f268e={'unitId':_0x426850,'subUnitId':_0x3e83fb,'shapeId':_0x10611e,'shapeData':_0x1e0570,'oldShapeJSON':_0x4e0228};return _0x37687e[_0x57107b(0x2aa)](_0xacbd3['id'],_0x5f268e);}function _0x57bd40(_0x7de04,_0x3b8198,_0x2374f0,_0x41095f,_0x37a672,_0x3995e9){let _0x2c1f09={'unitId':_0x3b8198,'subUnitId':_0x2374f0,'shapeId':_0x41095f,'shapeData':_0x3995e9,'oldShapeJSON':_0x37a672};return _0x7de04['executeCommand'](_0xacbd3['id'],_0x2c1f09);}function _0x3bd287(_0x2b1d4d){'@babel/helpers - typeof';const _0x489f57=_0x3f2902;return _0x3bd287=typeof Symbol=='function'&&typeof Symbol[_0x489f57(0x1ca)]==_0x489f57(0x273)?function(_0x27b8f5){return typeof _0x27b8f5;}:function(_0x553edc){const _0x2956b5=_0x489f57;return _0x553edc&&typeof Symbol==_0x2956b5(0x271)&&_0x553edc[_0x2956b5(0x384)]===Symbol&&_0x553edc!==Symbol[_0x2956b5(0x3d9)]?_0x2956b5(0x273):typeof _0x553edc;},_0x3bd287(_0x2b1d4d);}function _0x1f3245(_0x4b813c,_0x5ab2f2){const _0xbd22b4=_0x3f2902;if(_0x3bd287(_0x4b813c)!='object'||!_0x4b813c)return _0x4b813c;var _0x525f1b=_0x4b813c[Symbol[_0xbd22b4(0x426)]];if(_0x525f1b!==void 0x0){var _0x2475f0=_0x525f1b['call'](_0x4b813c,_0x5ab2f2||_0xbd22b4(0x398));if(_0x3bd287(_0x2475f0)!='object')return _0x2475f0;throw TypeError(_0xbd22b4(0x1b1));}return(_0x5ab2f2==='string'?String:Number)(_0x4b813c);}function _0x3ef690(_0x4f3551){const _0x16b59f=_0x3f2902;var _0x11f22d=_0x1f3245(_0x4f3551,'string');return _0x3bd287(_0x11f22d)==_0x16b59f(0x273)?_0x11f22d:_0x11f22d+'';}function _0xdc22ec(_0x5b04a0,_0x4745c3,_0x3d69d7){const _0x27ef4d=_0x3f2902;return(_0x4745c3=_0x3ef690(_0x4745c3))in _0x5b04a0?Object[_0x27ef4d(0x1bb)](_0x5b04a0,_0x4745c3,{'value':_0x3d69d7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b04a0[_0x4745c3]=_0x3d69d7,_0x5b04a0;}function _0x36356d(_0x316d9c,_0xc8d632,_0x6b2e3a){const _0x29c733=_0x3f2902;let _0xa93ccd=(0x0,_0x52eb00[_0x29c733(0x33b)])(_0x316d9c,{..._0xc8d632,'dataModel':{..._0xc8d632[_0x29c733(0x3a5)]??{},..._0x6b2e3a?{'doc':_0x6b2e3a}:null}}),_0x3b9ea9=(0x0,_0x52eb00[_0x29c733(0x38e)])(_0xa93ccd);return{'clip':(0x0,_0x52eb00[_0x29c733(0x3f7)])(_0xa93ccd,_0x3b9ea9),'wrapStrategy':_0x3b9ea9};}var _0x12c822=class extends _0x1877f7[_0x3f2902(0x3da)]{constructor(_0x3b1e86,_0x356576){const _0x439cf2=_0x3f2902;super(_0x3b1e86,_0x356576),_0xdc22ec(this,_0x439cf2(0x3f2),void 0x0),_0xdc22ec(this,_0x439cf2(0x214),new _0x52eb00['FormulaShapeAnimationController'](()=>this[_0x439cf2(0xb9)](!0x0),()=>this['_applyFormulaAutoFitSize']())),_0xdc22ec(this,_0x439cf2(0x2cd),!0x0),_0xdc22ec(this,_0x439cf2(0x38b),_0x233421['DrawingTypeEnum'][_0x439cf2(0x347)]),_0xdc22ec(this,_0x439cf2(0x1c7),!0x0),this['_props']={..._0x356576},this['_formulaAnimation'][_0x439cf2(0x3b6)](_0x356576[_0x439cf2(0x1ff)],_0x356576[_0x439cf2(0x2d6)]!==!0x1),this['_init'](),this['_applyFormulaAutoFitSize']();}[_0x3f2902(0x159)](){const _0x50a84e=_0x3f2902;this[_0x50a84e(0x24a)][_0x50a84e(0x297)](_0x502b8d=>{const _0x202a3d=_0x50a84e;this[_0x202a3d(0x137)](_0x502b8d);});}['setPrstGeom'](_0x43d20d){const _0x30ec64=_0x3f2902;this[_0x30ec64(0x3f2)][_0x30ec64(0x26e)]=_0x43d20d;}[_0x3f2902(0x251)](_0x128331){const _0x530cb9=_0x3f2902;this[_0x530cb9(0x3f2)]['isEditing']=_0x128331,this['makeDirty'](!0x0);}[_0x3f2902(0x230)](_0x511dd9,_0xa623e9=!0x0){const _0x1ef3ad=_0x3f2902;this[_0x1ef3ad(0x214)][_0x1ef3ad(0x3b6)](_0x511dd9,_0xa623e9),this['_props'][_0x1ef3ad(0x1ff)]=_0x511dd9,this['_applyFormulaAutoFitSize'](),this['makeDirty'](!0x0);}[_0x3f2902(0x1a8)](){const _0x43e825=_0x3f2902;let _0x23ca2e=this[_0x43e825(0x3f2)][_0x43e825(0xca)],_0xd3fd7=_0x23ca2e[_0x43e825(0x30a)](),_0x55cadd=(0x0,_0x52eb00[_0x43e825(0x28e)])(_0xd3fd7==null?void 0x0:_0xd3fd7['dataModel']),_0x58200b=_0x55cadd==null?void 0x0:_0x55cadd['doc'],_0x45cf2f=this[_0x43e825(0x214)][_0x43e825(0x25e)]();if(!_0x58200b||_0x45cf2f['length']===0x0)return;_0x23ca2e[_0x43e825(0x1ea)]({'width':this[_0x43e825(0x1e1)],'height':this[_0x43e825(0x3ce)]});let _0x2020a0=(0x0,_0x52eb00['resolveFormulaShapeAutoFitSize'])({'documentData':_0x45cf2f['map'](_0x2b8d3c=>(0x0,_0x14e0a7[_0x43e825(0x1aa)])(_0x58200b,_0x2b8d3c)),'height':this[_0x43e825(0x3ce)],'shapeData':_0x23ca2e['getShapeData'](),'textRect':_0x23ca2e[_0x43e825(0x2b3)]({'left':0x0,'top':0x0,'width':this[_0x43e825(0x1e1)],'height':this['height']}),'width':this[_0x43e825(0x1e1)]});if(_0x2020a0){var _0x5d4b64;this[_0x43e825(0x325)](_0x2020a0['width'],_0x2020a0[_0x43e825(0x3ce)]),(_0x5d4b64=this[_0x43e825(0x264)]())==null||(_0x5d4b64=_0x5d4b64[_0x43e825(0x132)]())==null||_0x5d4b64[_0x43e825(0x40d)]();}}get['unitId'](){const _0x3f82ef=_0x3f2902;return this[_0x3f82ef(0x3f2)][_0x3f82ef(0x138)];}get[_0x3f2902(0x318)](){return this['_props']['subUnitId'];}[_0x3f2902(0x137)](_0x13df1d){const _0x10b0da=_0x3f2902;if(this[_0x10b0da(0x3f2)][_0x10b0da(0xbe)]==null||!this[_0x10b0da(0x2cd)])return;let {width:_0x46cfd8,height:_0x232309}=this,{width:_0x5f118c=0x0,height:_0x5f2cc5=0x0}=_0x13df1d[_0x10b0da(0x1b8)],{left:_0x225c6a=0x0,top:_0x584165=0x0,right:_0x1ba5cf=0x0,bottom:_0x2fcae8=0x0}=this[_0x10b0da(0x3f2)]['srcRect'],_0x3fe22a=_0x225c6a,_0x57b60a=_0x584165,_0x6411f3=_0x1ba5cf,_0x242ba5=_0x2fcae8,_0x3ca40d=!0x1;if(_0x5f118c!==0x0&&_0x5f118c!==_0x46cfd8){let _0x3ba548=_0x225c6a/_0x5f118c,_0x2a6ceb=_0x1ba5cf/_0x5f118c;_0x3fe22a=_0x46cfd8*_0x3ba548,_0x6411f3=_0x46cfd8*_0x2a6ceb,_0x3ca40d=!0x0;}if(_0x5f2cc5!==0x0&&_0x5f2cc5!==_0x232309){let _0x7fb188=_0x584165/_0x5f2cc5,_0x373164=_0x2fcae8/_0x5f2cc5;_0x57b60a=_0x232309*_0x7fb188,_0x242ba5=_0x232309*_0x373164,_0x3ca40d=!0x0;}_0x3ca40d&&this[_0x10b0da(0x1d1)]({'left':_0x3fe22a,'top':_0x57b60a,'right':_0x6411f3,'bottom':_0x242ba5});}[_0x3f2902(0x1d1)](_0x5af835){const _0x403217=_0x3f2902;this[_0x403217(0x3f2)][_0x403217(0xbe)]=_0x5af835,this['makeDirty'](!0x0);}[_0x3f2902(0x1b4)](_0x36336d){const _0x59daab=_0x3f2902;this[_0x59daab(0x3f2)][_0x59daab(0x1ce)]=_0x36336d,this['makeDirty'](!0x0);}set['transform'](_0x408e66){const _0x48e850=_0x3f2902;this[_0x48e850(0xb5)]=_0x408e66;}get[_0x3f2902(0x343)](){const _0x24fe48=_0x3f2902;this[_0x24fe48(0xb5)]||this[_0x24fe48(0x2bf)]();let _0xa0eae8=this[_0x24fe48(0xb5)][_0x24fe48(0x123)]();return this[_0x24fe48(0x151)](_0xa0eae8);}get[_0x3f2902(0xca)](){const _0x3ceb6e=_0x3f2902;return this[_0x3ceb6e(0x3f2)][_0x3ceb6e(0xca)];}get[_0x3f2902(0xb8)](){const _0xcc5a9b=_0x3f2902;return this['_props'][_0xcc5a9b(0xb8)];}get['classType'](){const _0x55a0e9=_0x3f2902;return _0x1877f7[_0x55a0e9(0x2f6)][_0x55a0e9(0x2c6)];}[_0x3f2902(0x1c8)](_0x20e5bf,_0x1b8869,_0x362807,_0x305818){const _0x3e847b=_0x3f2902;let _0xef64ab=this[_0x3e847b(0x3f2)]['shapeModel'];if(!_0xef64ab||!_0x1b8869)return;let _0x24f24d=_0x362807??this['width'],_0x84aebf=_0x305818??this[_0x3e847b(0x3ce)],_0x2f5967={'shapeType':_0xef64ab[_0x3e847b(0x3b9)](),'width':_0x24f24d,'height':_0x84aebf},_0x253750={'renderMode':_0x136056[_0x3e847b(0x186)][_0x3e847b(0x9d)],'oKey':this['oKey'],'image':this['_props'][_0x3e847b(0x1ce)],'angle':this[_0x3e847b(0x24d)]};_0xef64ab[_0x3e847b(0x1ea)](_0x2f5967),_0x20e5bf['save']();let _0x59f5e5={'top':0x0,'left':0x0,'width':_0x24f24d,'height':_0x84aebf},_0xeb7003=_0xef64ab[_0x3e847b(0x1f9)](_0x59f5e5);_0xeb7003?this[_0x3e847b(0x72)](_0x20e5bf,_0xeb7003,_0x552bd2=>{const _0x5db558=_0x3e847b;_0xef64ab[_0x5db558(0x2e9)](_0x552bd2,_0x59f5e5,_0x253750);}):(this[_0x3e847b(0x17e)](),_0xef64ab[_0x3e847b(0x2e9)](_0x20e5bf,_0x59f5e5,_0x253750)),_0x20e5bf[_0x3e847b(0x217)]();let _0x21e3ab=_0xef64ab[_0x3e847b(0x30a)](),_0x50cf46=_0xef64ab[_0x3e847b(0x2b3)](_0x59f5e5),_0x48e928=_0xef64ab[_0x3e847b(0x71)]();if(_0x21e3ab&&_0x50cf46&&!_0x48e928){_0x20e5bf[_0x3e847b(0x155)](),this[_0x3e847b(0x1e9)]()[_0x3e847b(0x236)]&&_0x20e5bf['scale'](-0x1,0x1);let _0x188dec=_0x24f24d/0x2,_0x44e456=_0x84aebf/0x2;_0x20e5bf[_0x3e847b(0x234)](-_0x188dec,-_0x44e456),_0x20e5bf[_0x3e847b(0x22b)](),this['_drawShapeText'](_0x20e5bf,_0x21e3ab,_0x50cf46),_0x20e5bf[_0x3e847b(0x217)]();}}['getDrawingPoints'](_0x169b2f){}[_0x3f2902(0x173)](_0x5dbfa7,_0x37412c,_0x5469d2){const _0x2949ad=_0x3f2902;var _0x32f2d4;this[_0x2949ad(0x3f2)][_0x2949ad(0x3d7)]||(!((_0x32f2d4=_0x37412c[_0x2949ad(0x3a5)])!=null&&_0x32f2d4[_0x2949ad(0x125)])&&_0x2949ad(0x2ba)in _0x37412c&&_0x37412c[_0x2949ad(0x2ba)]===!0x1?this[_0x2949ad(0x19d)](_0x5dbfa7,_0x37412c,_0x5469d2):this['_drawRichText'](_0x5dbfa7,_0x37412c,_0x5469d2));}[_0x3f2902(0x19d)](_0x3f83da,_0x549b51,_0x47a3a0){const _0x40596f=_0x3f2902;this[_0x40596f(0x259)](_0x3f83da,{..._0x549b51,'text':_0x549b51[_0x40596f(0x39b)]??'','dataModel':{'doc':(0x0,_0x52eb00[_0x40596f(0x250)])(_0x549b51,'sheets-shape-text-'+this[_0x40596f(0x27c)])}},_0x47a3a0);}[_0x3f2902(0x259)](_0x44f2a3,_0x4e5a4e,_0x343982){const _0xa4114=_0x3f2902;(0x0,_0x52eb00[_0xa4114(0x283)])(_0x44f2a3,this[_0xa4114(0x214)],(_0x2e46f8,_0x4f976b)=>{const _0x1e4d46=_0xa4114;this[_0x1e4d46(0x2d2)](_0x2e46f8,_0x4e5a4e,_0x343982,_0x4f976b);});}[_0x3f2902(0x2d2)](_0x367923,_0x28966e,_0x1597d8,_0x157168){const _0x5c89ce=_0x3f2902;let _0x349fe4=this[_0x5c89ce(0x3f2)][_0x5c89ce(0x2e2)];if(!_0x28966e[_0x5c89ce(0x3a5)]||!_0x349fe4)return;let _0xca7426=(0x0,_0x52eb00['normalizeShapeTextModel'])(_0x28966e[_0x5c89ce(0x3a5)]);if(!_0xca7426)return;let _0x251891=_0xca7426[_0x5c89ce(0x125)];if(!_0x251891)return;let _0x29c24b=(0x0,_0x14e0a7[_0x5c89ce(0x1aa)])(_0x251891,_0x157168),_0x8a44e6=_0xca7426['va']??_0x233421[_0x5c89ce(0x2fb)][_0x5c89ce(0x170)],_0x561f58=_0xca7426['ha']??_0x233421[_0x5c89ce(0x37a)][_0x5c89ce(0x1c6)],_0x26777f=_0x36356d(this[_0x5c89ce(0x3f2)][_0x5c89ce(0xca)][_0x5c89ce(0x35f)](),_0x28966e,_0x29c24b),_0x3b2b5d=_0x28966e['isHorizontal'],_0x2b2244=new _0x233421[(_0x5c89ce(0x204))]((0x0,_0x52eb00['prepareShapeTextDocumentData'])(_0x29c24b,{'isHorizontal':_0x3b2b5d!==!0x1,'textRect':_0x1597d8,'verticalAlign':_0x8a44e6,'horizontalAlign':_0x561f58,'wrapStrategy':_0x26777f[_0x5c89ce(0x111)]})),_0x3da078=new _0x1877f7[(_0x5c89ce(0xfe))](_0x2b2244),_0x2b0f29=_0x1877f7[_0x5c89ce(0x20c)][_0x5c89ce(0x187)](_0x3da078,_0x349fe4);_0x2b0f29[_0x5c89ce(0x376)]();let _0xd74970=_0x2b0f29[_0x5c89ce(0x316)]()[_0x5c89ce(0x39f)],_0x55c994=(0x0,_0x52eb00[_0x5c89ce(0x161)])({'contentHeight':_0xd74970,'verticalAlign':_0x8a44e6,'viewportHeight':_0x1597d8['height']});_0x2b2244[_0x5c89ce(0x27a)]({'pageSize':{'width':_0x3b2b5d===!0x1?_0x1597d8[_0x5c89ce(0x3ce)]:_0x1597d8['width'],'height':_0x55c994[_0x5c89ce(0x40e)]}}),_0x2b2244[_0x5c89ce(0xcc)]({'t':_0x55c994[_0x5c89ce(0x2ff)]}),_0x2b0f29[_0x5c89ce(0x376)]();let _0x4804a3=new _0x1877f7['Documents']('shape-text-'+this[_0x5c89ce(0x27c)],_0x2b0f29,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5c89ce(0xb9)](!0x0)});_0x4804a3[_0x5c89ce(0x325)](_0x1597d8[_0x5c89ce(0x1e1)],_0x55c994[_0x5c89ce(0x40e)]),_0x367923[_0x5c89ce(0x155)](),_0x367923[_0x5c89ce(0x289)](_0x1597d8[_0x5c89ce(0x31c)],_0x1597d8[_0x5c89ce(0x21e)]),_0x26777f[_0x5c89ce(0x24e)]&&(_0x367923['beginPath'](),_0x367923[_0x5c89ce(0x28a)](0x0,_0x55c994[_0x5c89ce(0x7a)],_0x1597d8[_0x5c89ce(0x1e1)],_0x55c994[_0x5c89ce(0x2ae)]),_0x367923[_0x5c89ce(0x24e)]()),_0x55c994[_0x5c89ce(0x1f7)]&&_0x367923['translateWithPrecision'](0x0,_0x55c994[_0x5c89ce(0x1f7)]),_0x4804a3[_0x5c89ce(0x268)](_0x367923),_0x367923[_0x5c89ce(0x217)](),_0x4804a3['dispose'](),_0x2b0f29['dispose'](),_0x3da078[_0x5c89ce(0x358)](),_0x2b2244[_0x5c89ce(0x358)]();}['render'](_0x2341aa,_0x4eaf82,_0x2cc1d7=!0x1){const _0x38b028=_0x3f2902;if(!this['visible'])return this[_0x38b028(0xb9)](!0x1),this;let {width:_0x50ccef,height:_0x5e00c4,left:_0x17e665,top:_0x176ad2}=this,_0x37fcce=this[_0x38b028(0x411)]();if(_0x50ccef=_0x37fcce[_0x38b028(0x1e1)],_0x5e00c4=_0x37fcce[_0x38b028(0x3ce)],_0x17e665=_0x37fcce[_0x38b028(0x31c)],_0x176ad2=_0x37fcce[_0x38b028(0x21e)],this[_0x38b028(0x171)](_0x4eaf82)){let {top:_0x5eadce,left:_0x1d6e44,bottom:_0x4986ca,right:_0x3032c9}=_0x4eaf82['viewBound'];if(_0x50ccef+this[_0x38b028(0x2a3)]+_0x17e665<_0x1d6e44||_0x3032c9<_0x17e665||_0x5e00c4+this['strokeWidth']+_0x176ad2<_0x5eadce||_0x4986ca<_0x176ad2)return this;}let _0x39d303=_0x17e665+_0x50ccef/0x2,_0x4eaf69=_0x176ad2+_0x5e00c4/0x2,_0x2df6e7=this[_0x38b028(0x343)]['getMatrix']();if(this['_props']['isEditing']){let _0x1be742=this[_0x38b028(0x1e9)](),_0x210213=new _0x1877f7[(_0x38b028(0x2fd))]();_0x210213['composeMatrix']({..._0x1be742}),_0x2df6e7=_0x210213['getMatrix']();}return _0x2341aa[_0x38b028(0x155)](),this[_0x38b028(0x3f2)][_0x38b028(0xca)][_0x38b028(0x391)]===!0x0||_0x2341aa['transform'](_0x2df6e7[0x0],_0x2df6e7[0x1],_0x2df6e7[0x2],_0x2df6e7[0x3],_0x39d303,_0x4eaf69),this[_0x38b028(0x1c8)](_0x2341aa,_0x4eaf82,_0x50ccef,_0x5e00c4),_0x2341aa[_0x38b028(0x217)](),this[_0x38b028(0xb9)](!0x1),this;}[_0x3f2902(0xd9)](_0x59ddd8){const _0xbbd8a8=_0x3f2902;let {left:_0x3022a4,top:_0x3cd02f,width:_0x2ff575,height:_0x19bb58}=this['getRealBound'](),_0x324275=this['transform'][_0xbbd8a8(0x30d)](),_0x2e843d=_0x3022a4+_0x2ff575/0x2,_0x2b3514=_0x3cd02f+_0x19bb58/0x2,_0x48f741=new _0x1877f7[(_0xbbd8a8(0x2fd))]([_0x324275[0x0],_0x324275[0x1],_0x324275[0x2],_0x324275[0x3],_0x2e843d,_0x2b3514]),_0x7d6e21=this[_0xbbd8a8(0x1a9)]();return(this[_0xbbd8a8(0x380)]&&(_0x7d6e21==null?void 0x0:_0x7d6e21[_0xbbd8a8(0x20d)])===_0x1877f7[_0xbbd8a8(0x2f6)]['GROUP']?_0x7d6e21['ancestorTransform']['multiply'](_0x48f741):_0x48f741)[_0xbbd8a8(0x323)]()['applyPoint'](_0x59ddd8);}[_0x3f2902(0x2b5)](_0x3ccad3){const _0x1333cb=_0x3f2902;let {left:_0x320605,top:_0x47f0fa,width:_0x4e9647,height:_0x4a8575}=this[_0x1333cb(0x411)](),_0x11e2bb=_0x320605+_0x4e9647/0x2,_0x51f519=_0x47f0fa+_0x4a8575/0x2,_0x57e3d5=this['transform'][_0x1333cb(0x30d)](),_0x144a97=new _0x1877f7[(_0x1333cb(0x2fd))]([_0x57e3d5[0x0],_0x57e3d5[0x1],_0x57e3d5[0x2],_0x57e3d5[0x3],_0x11e2bb,_0x51f519]),_0x225152=this['getParent'](),_0x98ccb4=(this[_0x1333cb(0x380)]&&(_0x225152==null?void 0x0:_0x225152[_0x1333cb(0x20d)])===_0x1877f7[_0x1333cb(0x2f6)]['GROUP']?_0x225152[_0x1333cb(0x188)][_0x1333cb(0x331)](_0x144a97):_0x144a97)[_0x1333cb(0x323)]()[_0x1333cb(0x158)](_0x3ccad3),_0x544448=_0x4e9647/0x2,_0x5cc654=_0x4a8575/0x2,_0x58a340=this[_0x1333cb(0x3f2)][_0x1333cb(0xca)];return _0x58a340&&_0x58a340[_0x1333cb(0x71)]()?_0x58a340[_0x1333cb(0x3aa)](_0x98ccb4['x'],_0x98ccb4['y'],_0x4e9647,_0x4a8575):_0x98ccb4['x']>=-_0x544448-this[_0x1333cb(0x2a3)]/0x2&&_0x98ccb4['x']<=_0x544448+this[_0x1333cb(0x2a3)]/0x2&&_0x98ccb4['y']>=-_0x5cc654-this[_0x1333cb(0x2a3)]/0x2&&_0x98ccb4['y']<=_0x5cc654+this[_0x1333cb(0x2a3)]/0x2;}[_0x3f2902(0x358)](){const _0x222014=_0x3f2902;this['_formulaAnimation']['dispose'](),this['_props']['shapeModel']=null,super[_0x222014(0x358)]();}},_0x1f156b=class extends _0x1877f7[_0x3f2902(0x3da)]{constructor(_0x22bc7c,_0x4f78cf){const _0xbbf522=_0x3f2902;super(_0x22bc7c,_0x4f78cf),_0xdc22ec(this,'_shapeId',null),_0xdc22ec(this,_0xbbf522(0x24c),null),_0xdc22ec(this,'_unitId',null),_0xdc22ec(this,_0xbbf522(0x1ad),null),_0x4f78cf&&this['setShapeProps'](_0x4f78cf);}[_0x3f2902(0x18f)](){const _0xac6255=_0x3f2902;return{'unitId':this['_unitId'],'subUnitId':this[_0xac6255(0x1ad)],'drawingId':this[_0xac6255(0x30e)]};}[_0x3f2902(0xfa)](_0x1841a8){const _0x2a318f=_0x3f2902;_0x1841a8[_0x2a318f(0xb8)]!==void 0x0&&(this[_0x2a318f(0x30e)]=_0x1841a8['shapeId']),_0x1841a8[_0x2a318f(0x41c)]!==void 0x0&&(this[_0x2a318f(0x24c)]=_0x1841a8[_0x2a318f(0x41c)]),_0x1841a8[_0x2a318f(0x138)]!==void 0x0&&(this[_0x2a318f(0x228)]=_0x1841a8[_0x2a318f(0x138)]),_0x1841a8['subUnitId']!==void 0x0&&(this[_0x2a318f(0x1ad)]=_0x1841a8[_0x2a318f(0x318)]),this['transformByState']({'width':_0x1841a8[_0x2a318f(0x1e1)],'height':_0x1841a8[_0x2a318f(0x3ce)]});}['_draw'](_0x59b9e8){const _0x11255b=_0x3f2902;_0x1877f7[_0x11255b(0x248)]['drawWith'](_0x59b9e8,{'radius':_0x136056[_0x11255b(0x288)][_0x11255b(0x36e)],'fill':_0x136056[_0x11255b(0x288)][_0x11255b(0x3b8)],'stroke':_0x136056[_0x11255b(0x288)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function _0x3eb327(_0x2262b9,_0x2594f8){return function(_0x2e32f7,_0x31d26c){_0x2594f8(_0x2e32f7,_0x31d26c,_0x2262b9);};}function _0x56683a(_0x5a336c,_0x411b7c,_0x489f46,_0x569532){const _0x1754da=_0x3f2902;var _0x40cf1c=arguments[_0x1754da(0xff)],_0x3c8f43=_0x40cf1c<0x3?_0x411b7c:_0x569532===null?_0x569532=Object['getOwnPropertyDescriptor'](_0x411b7c,_0x489f46):_0x569532,_0x34a409;if(typeof Reflect=='object'&&typeof Reflect[_0x1754da(0x232)]==_0x1754da(0x271))_0x3c8f43=Reflect['decorate'](_0x5a336c,_0x411b7c,_0x489f46,_0x569532);else{for(var _0x28e289=_0x5a336c[_0x1754da(0xff)]-0x1;_0x28e289>=0x0;_0x28e289--)(_0x34a409=_0x5a336c[_0x28e289])&&(_0x3c8f43=(_0x40cf1c<0x3?_0x34a409(_0x3c8f43):_0x40cf1c>0x3?_0x34a409(_0x411b7c,_0x489f46,_0x3c8f43):_0x34a409(_0x411b7c,_0x489f46))||_0x3c8f43);}return _0x40cf1c>0x3&&_0x3c8f43&&Object['defineProperty'](_0x411b7c,_0x489f46,_0x3c8f43),_0x3c8f43;}let _0x24bf88=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0xf186ca,_0x4824e2,_0x4d2c7f,_0x54bd27,_0x20ed8a,_0x5c24b0){const _0x128ab4=_0x3f2902;super(),this[_0x128ab4(0xea)]=_0xf186ca,this[_0x128ab4(0xaf)]=_0x4824e2,this[_0x128ab4(0x97)]=_0x4d2c7f,this['_imageIoService']=_0x54bd27,this['_urlImageService']=_0x20ed8a,this[_0x128ab4(0xac)]=_0x5c24b0,_0xdc22ec(this,_0x128ab4(0x421),new Map()),this['disposeWithMe'](this[_0x128ab4(0xac)][_0x128ab4(0x7d)][_0x128ab4(0x94)](_0xef1b7a=>{const _0x4f5c57=_0x128ab4;var _0xa63be6;(_0xa63be6=this[_0x4f5c57(0x421)][_0x4f5c57(0x3dd)](this[_0x4f5c57(0x319)](_0xef1b7a[_0x4f5c57(0x138)],_0xef1b7a[_0x4f5c57(0x318)],_0xef1b7a['shapeId'])))==null||_0xa63be6[_0x4f5c57(0x120)](_0x3f14ac=>_0x3f14ac['setFormulaPresentation'](_0xef1b7a[_0x4f5c57(0x26d)],_0xef1b7a[_0x4f5c57(0x1df)]));})),this[_0x128ab4(0x374)](this[_0x128ab4(0xea)][_0x128ab4(0x134)]['subscribe'](_0x4d8294=>{const _0x174542=_0x128ab4;_0x4d8294[_0x174542(0x120)](_0xe743b9=>{const _0x16a107=_0x174542;this['_shapeFormulaService']['unregister']({'unitId':_0xe743b9[_0x16a107(0x138)],'subUnitId':_0xe743b9[_0x16a107(0x318)],'shapeId':_0xe743b9['drawingId']}),this[_0x16a107(0x421)][_0x16a107(0x1a4)](this['_formulaKey'](_0xe743b9[_0x16a107(0x138)],_0xe743b9[_0x16a107(0x318)],_0xe743b9[_0x16a107(0x262)]));});}));}[_0x3f2902(0x77)](_0x3d2b35,_0x5727e7,_0xa6dcdf){const _0x8981cb=_0x3f2902;let {transform:_0x1b0712,drawingType:_0x258c56,srcRect:_0x34f9f6,prstGeom:_0x31e771,groupId:_0x3661e6,unitId:_0x49bf70,subUnitId:_0x15f1e8,drawingId:_0x2eb213,isMultiTransform:_0x3b393,transforms:_0x4d6d9d,hidden:_0x286b84,selectable:_0x55cdc8}=_0x3d2b35;if(_0x258c56!==_0x233421[_0x8981cb(0x2d0)]['DRAWING_SHAPE']||!this[_0x8981cb(0xea)][_0x8981cb(0x179)]()||_0x1b0712==null)return;let _0x53d860=this['_drawingManagerService'][_0x8981cb(0x10e)](),_0x5cb480=_0x3b393&&_0x4d6d9d?_0x4d6d9d:[_0x1b0712],_0x22b02d=[];for(let _0x409651 of _0x5cb480){let {left:_0x3b2a73,top:_0x1faf49,width:_0x298b50,height:_0xc138cf,angle:_0x1aa98b,flipX:_0xbdfdfb,flipY:_0x83b106,skewX:_0x121b4e,skewY:_0x454f29}=_0x409651,_0x3d0c7c=_0x5cb480[_0x8981cb(0xcd)](_0x409651),_0x3df140=(0x0,_0x511ed7[_0x8981cb(0x409)])({'unitId':_0x49bf70,'subUnitId':_0x15f1e8,'drawingId':_0x2eb213},_0x3b393?_0x3d0c7c:void 0x0),_0x42a85c=_0x5727e7[_0x8981cb(0x35d)](_0x3df140);if(_0x42a85c!=null){let _0x979d23={'unitId':_0x49bf70,'subUnitId':_0x15f1e8,'shapeId':_0x2eb213};_0x42a85c instanceof _0x12c822&&this[_0x8981cb(0x113)](_0x42a85c,_0x979d23),_0x42a85c[_0x8981cb(0x3cd)]({'left':_0x3b2a73,'top':_0x1faf49,'width':_0x298b50,'height':_0xc138cf,'angle':_0x1aa98b,'flipX':_0xbdfdfb,'flipY':_0x83b106,'skewX':_0x121b4e,'skewY':_0x454f29});continue;}let _0x493459=this[_0x8981cb(0xea)][_0x8981cb(0x2ee)](_0x49bf70,_0x15f1e8),_0x56fc80=_0x493459[_0x8981cb(0xcd)](_0x2eb213);if(_0x5727e7[_0x8981cb(0x35d)](_0x3df140)||!this['_drawingManagerService'][_0x8981cb(0x179)]())continue;let _0x1fc5e1=this[_0x8981cb(0xaf)][_0x8981cb(0xd1)](_0x49bf70,_0x15f1e8,_0x2eb213);if(!_0x1fc5e1)continue;let _0x50557a=(0x0,_0x136056[_0x8981cb(0x427)])(_0x1fc5e1[_0x8981cb(0x3b9)]())?{..._0x52eb00[_0x8981cb(0xc0)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x52eb00[_0x8981cb(0xc0)],_0x4a5d58=_0x1fc5e1[_0x8981cb(0x35f)]()['formulaBinding'],_0x3dc490={'unitId':_0x49bf70,'subUnitId':_0x15f1e8,'shapeId':_0x2eb213};_0x4a5d58&&this[_0x8981cb(0xac)]['register'](_0x3dc490,_0x4a5d58);let _0x1844b2=new _0x12c822(_0x3df140,{..._0x409651,'zIndex':_0x56fc80===-0x1?_0x493459[_0x8981cb(0xff)]-0x1:_0x56fc80,'shapeModel':_0x1fc5e1,'localeService':this[_0x8981cb(0x97)],'shapeId':_0x2eb213,'unitId':_0x49bf70,'subUnitId':_0x15f1e8,'visible':_0x286b84!==!0x0,'evented':_0x55cdc8!==!0x1,'formulaPresentation':_0x4a5d58?this[_0x8981cb(0xac)][_0x8981cb(0x3f0)](_0x3dc490):void 0x0,'animateFormulaPresentation':(_0x4a5d58==null?void 0x0:_0x4a5d58[_0x8981cb(0x1df)])!==!0x1,'transformerConfig':_0x50557a});if(_0x4a5d58){let _0x5635bf=this['_formulaKey'](_0x49bf70,_0x15f1e8,_0x2eb213),_0x2aab49=this[_0x8981cb(0x421)][_0x8981cb(0x3dd)](_0x5635bf)??new Set();_0x2aab49['add'](_0x1844b2),this[_0x8981cb(0x421)][_0x8981cb(0x182)](_0x5635bf,_0x2aab49);}_0x5727e7['addObject'](_0x1844b2,_0x1877f7[_0x8981cb(0x2c1)]),_0x53d860&&_0x5727e7[_0x8981cb(0x19e)](_0x1844b2),_0x3661e6&&(0x0,_0x22c8d6['insertGroupObject'])({'drawingId':_0x3661e6,'unitId':_0x49bf70,'subUnitId':_0x15f1e8},_0x1844b2,_0x5727e7,this[_0x8981cb(0xea)]),_0x31e771!=null&&_0x1844b2['setPrstGeom'](_0x31e771),_0x34f9f6!=null&&_0x1844b2['setSrcRect'](_0x34f9f6);let _0x463eea=this[_0x8981cb(0x2a8)](_0x1844b2,_0x1fc5e1[_0x8981cb(0x35f)]());if(_0x463eea){var _0x51a722;_0xa6dcdf==null||(_0x51a722=_0xa6dcdf[_0x8981cb(0x404)])==null||_0x51a722[_0x8981cb(0x78)](_0x463eea);}_0x22b02d['push'](_0x1844b2);}return _0x22b02d;}[_0x3f2902(0x319)](_0x251309,_0x5dc058,_0x1258da){return _0x251309+'\x00'+_0x5dc058+'\x00'+_0x1258da;}[_0x3f2902(0x113)](_0xd030bf,_0x3280e8){const _0x32ea51=_0x3f2902;let _0x47811e=this['_sheetsShapeService'][_0x32ea51(0xd1)](_0x3280e8[_0x32ea51(0x138)],_0x3280e8[_0x32ea51(0x318)],_0x3280e8[_0x32ea51(0xb8)]),_0x451164=_0x47811e==null?void 0x0:_0x47811e['getShapeData']()[_0x32ea51(0x17f)],_0x1fb90c=this[_0x32ea51(0x319)](_0x3280e8[_0x32ea51(0x138)],_0x3280e8[_0x32ea51(0x318)],_0x3280e8[_0x32ea51(0xb8)]);if(_0x451164){this[_0x32ea51(0xac)][_0x32ea51(0x3ba)](_0x3280e8,_0x451164);let _0x161a46=this[_0x32ea51(0x421)][_0x32ea51(0x3dd)](_0x1fb90c)??new Set();_0x161a46[_0x32ea51(0x78)](_0xd030bf),this[_0x32ea51(0x421)][_0x32ea51(0x182)](_0x1fb90c,_0x161a46);}else{var _0x4a1048;this['_shapeFormulaService'][_0x32ea51(0x1d8)](_0x3280e8),(_0x4a1048=this[_0x32ea51(0x421)][_0x32ea51(0x3dd)](_0x1fb90c))==null||_0x4a1048['delete'](_0xd030bf);}_0xd030bf[_0x32ea51(0x230)](_0x451164?this[_0x32ea51(0xac)][_0x32ea51(0x3f0)](_0x3280e8):void 0x0,(_0x451164==null?void 0x0:_0x451164[_0x32ea51(0x1df)])!==!0x1);}['refreshShapeFillImage'](_0x575ee7){const _0x33249d=_0x3f2902;let _0x3602c5=_0x575ee7[_0x33249d(0xca)][_0x33249d(0x35f)](),_0x221dcc=_0x3602c5[_0x33249d(0x40a)];if(!_0x221dcc||_0x221dcc['fillType']!==_0x136056[_0x33249d(0x222)]['PictureFill']||!_0x221dcc[_0x33249d(0x2bd)]){_0x575ee7[_0x33249d(0x1b4)](void 0x0);return;}this[_0x33249d(0x2a8)](_0x575ee7,_0x3602c5);}[_0x3f2902(0x2a8)](_0x9d9df8,_0xd54feb){const _0x44124f=_0x3f2902;let _0x4b5122=_0xd54feb[_0x44124f(0x40a)];if(!_0x4b5122||_0x4b5122['fillType']!==_0x136056[_0x44124f(0x222)][_0x44124f(0x8f)]||!_0x4b5122[_0x44124f(0x2bd)])return;let _0x5c255a=_0x4b5122[_0x44124f(0x2bd)],_0x4fc2a1=_0x4b5122[_0x44124f(0x414)]??_0x136056[_0x44124f(0x272)][_0x44124f(0x92)],_0x345480=this[_0x44124f(0xad)][_0x44124f(0x16a)](_0x5c255a,_0x4fc2a1);if(_0x345480){_0x9d9df8[_0x44124f(0x1b4)](_0x345480);return;}return this[_0x44124f(0x127)](_0x9d9df8,_0x5c255a,_0x4fc2a1);}async['_loadAndSetImage'](_0x2326d5,_0x19cbd6,_0x489aa5){const _0x1d2c24=_0x3f2902;let _0xf3baef;try{if(_0x489aa5===_0x136056[_0x1d2c24(0x272)][_0x1d2c24(0x7f)])_0xf3baef=await this[_0x1d2c24(0xad)][_0x1d2c24(0x353)](_0x19cbd6);else{if(_0x489aa5===_0x136056[_0x1d2c24(0x272)][_0x1d2c24(0x92)])try{_0xf3baef=await this[_0x1d2c24(0x107)][_0x1d2c24(0x353)](_0x19cbd6);}catch{_0xf3baef=_0x19cbd6;}else _0xf3baef=_0x19cbd6;}}catch(_0xc64d9d){console[_0x1d2c24(0x1d2)](_0x1d2c24(0x36a),_0xc64d9d);return;}await new Promise(_0x4459d2=>{const _0x2802e1=_0x1d2c24;let _0x569db2=new window[(_0x2802e1(0x3a1))]();_0x569db2[_0x2802e1(0xa0)]=()=>{const _0x5472a5=_0x2802e1;this[_0x5472a5(0xad)][_0x5472a5(0x36d)](_0x19cbd6,_0x489aa5,_0x569db2),_0x2326d5[_0x5472a5(0x1b4)](_0x569db2),_0x4459d2();},_0x569db2[_0x2802e1(0xd8)]=()=>{const _0x1cc9af=_0x2802e1;console[_0x1cc9af(0x1d2)](_0x1cc9af(0x1b5),_0x19cbd6),_0x4459d2();},_0x569db2[_0x2802e1(0xef)]=_0xf3baef;});}};_0x24bf88=_0x56683a([_0x3eb327(0x0,_0x511ed7[_0x3f2902(0x255)]),_0x3eb327(0x1,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1d059b[_0x3f2902(0x267)])),_0x3eb327(0x2,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x233421['LocaleService'])),_0x3eb327(0x3,_0x233421[_0x3f2902(0x2c3)]),_0x3eb327(0x4,_0x233421[_0x3f2902(0x1b6)]),_0x3eb327(0x5,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x14e0a7['ShapeFormulaService']))],_0x24bf88);let _0x598700=class extends _0x233421['Disposable']{constructor(_0x2f0597,_0x18a417,_0x1f3fea,_0x3a1379,_0xe03087,_0x489226){const _0x376c08=_0x3f2902;super(),this['_drawingManagerService']=_0x2f0597,this[_0x376c08(0xaf)]=_0x18a417,this['_renderManagerService']=_0x1f3fea,this[_0x376c08(0x40f)]=_0x3a1379,this[_0x376c08(0xfc)]=_0xe03087,this[_0x376c08(0x116)]=_0x489226,_0xdc22ec(this,_0x376c08(0xdd),null),_0xdc22ec(this,_0x376c08(0x228),null),_0xdc22ec(this,'_subUnitId',null),_0xdc22ec(this,_0x376c08(0x1d6),void 0x0),_0xdc22ec(this,'_shapes',[]),_0xdc22ec(this,_0x376c08(0x19f),0x0),_0xdc22ec(this,'_baseShapeTop',0x0),_0xdc22ec(this,'_baseShapeWidth',0x0),_0xdc22ec(this,_0x376c08(0x7e),0x0),_0xdc22ec(this,_0x376c08(0x2fa),!0x1),_0xdc22ec(this,_0x376c08(0xc9),void 0x0),_0xdc22ec(this,_0x376c08(0x1d5),void 0x0),_0xdc22ec(this,'_adjHandlerPointerMove',void 0x0),_0xdc22ec(this,_0x376c08(0x144),void 0x0),_0xdc22ec(this,_0x376c08(0x1a1),!0x1),this[_0x376c08(0x419)](),this[_0x376c08(0x1f0)]();}[_0x3f2902(0x1de)](_0x2e8236,_0x1fe05c,_0x5f3f0a){const _0xe16ff8=_0x3f2902;let _0x2e90b8=this[_0xe16ff8(0xaf)]['getShapeModel'](_0x2e8236,_0x1fe05c,_0x5f3f0a);if(_0x2e90b8)return _0x2e90b8['getDrawingPoints']();}[_0x3f2902(0x27b)](){const _0x339a63=_0x3f2902;this[_0x339a63(0x1d3)]();}[_0x3f2902(0x3d4)](){const _0x2780b4=_0x3f2902;this[_0x2780b4(0xb6)](!0x0);}['setShouldShowAdjust'](_0x53a9ce){const _0x204d07=_0x3f2902;this[_0x204d07(0x1a1)]=_0x53a9ce;}[_0x3f2902(0x29b)](_0x1b9397,_0x4ad1df,_0x327ebe,_0x137e16){const _0x3fc5cf=_0x3f2902;let _0x7d5893=this[_0x3fc5cf(0xaf)][_0x3fc5cf(0xd1)](_0x1b9397,_0x4ad1df,_0x327ebe);if(_0x7d5893)return _0x7d5893['getAdjustInfoByName'](_0x137e16);}[_0x3f2902(0x22c)](_0x260c31=!0x1){const _0x330dca=_0x3f2902;if(this[_0x330dca(0x228)]===null||this[_0x330dca(0x1ad)]===null||this['_activeShapeId']===null)return;let _0x5b64d3=this['_renderManagerService'][_0x330dca(0x10d)](this[_0x330dca(0x228)]);if(!_0x5b64d3||!_0x5b64d3[_0x330dca(0x3ad)](_0x2e7926[_0x330dca(0x243)])['getCurrentSkeleton']())return;let {scene:_0x4fc11b}=_0x5b64d3,_0x57047f={'unitId':this[_0x330dca(0x228)],'subUnitId':this[_0x330dca(0x1ad)],'drawingId':this[_0x330dca(0xdd)]},_0xecc0b8=this[_0x330dca(0xea)][_0x330dca(0x379)](_0x57047f),{transform:_0x1a575a}=_0xecc0b8;if(!_0x1a575a||_0xecc0b8[_0x330dca(0x1a6)]!==_0x233421[_0x330dca(0x2d0)][_0x330dca(0x347)])return;let {left:_0x406ed0,top:_0x13ef02,width:_0x18ca83,height:_0x31ddd9,flipX:_0x20f060,flipY:_0x16d614,angle:_0x540cf9=0x0}=_0x1a575a;if(_0x406ed0===void 0x0||_0x13ef02===void 0x0)return;if(_0x260c31){let _0x406ac3=this[_0x330dca(0xaf)][_0x330dca(0xd1)](this[_0x330dca(0x228)],this[_0x330dca(0x1ad)],this[_0x330dca(0xdd)]);_0x406ac3==null||_0x406ac3[_0x330dca(0x1ea)]({'width':_0x18ca83??0x0,'height':_0x31ddd9??0x0}),this[_0x330dca(0x1d6)]=_0x406ac3==null?void 0x0:_0x406ac3['getDrawingPoints']();}let _0x53b255=this[_0x330dca(0x1d6)];for(let _0x4e7290=0x0;_0x4e7290<_0x53b255[_0x330dca(0xff)];_0x4e7290++){let _0x49bba6=_0x53b255[_0x4e7290],_0x1ee220=_0x49bba6['x'],_0x5e4426=_0x49bba6['y'];if(_0x20f060&&(_0x1ee220=(_0x18ca83||0x0)-_0x1ee220),_0x16d614&&(_0x5e4426=(_0x31ddd9||0x0)-_0x5e4426),_0x540cf9!==0x0){let _0x176050=(_0x18ca83||0x0)/0x2,_0x4ff972=(_0x31ddd9||0x0)/0x2,_0x3eedda=_0x540cf9*Math['PI']/0xb4,_0x2a310=Math[_0x330dca(0x3e0)](_0x3eedda),_0x8799f1=Math[_0x330dca(0x17b)](_0x3eedda),_0x13b618=_0x1ee220-_0x176050,_0xa645cc=_0x5e4426-_0x4ff972;_0x1ee220=_0x176050+(_0x13b618*_0x2a310-_0xa645cc*_0x8799f1),_0x5e4426=_0x4ff972+(_0x13b618*_0x8799f1+_0xa645cc*_0x2a310);}let _0x1d22b1={'x':_0x1ee220,'y':_0x5e4426,'adjName':_0x49bba6[_0x330dca(0x41c)]};this[_0x330dca(0xb2)](_0x4fc11b,_0x1d22b1,_0x1d22b1[_0x330dca(0x41c)],_0x406ed0,_0x13ef02,this[_0x330dca(0x228)],this['_subUnitId']);}}[_0x3f2902(0xb6)](_0x59bc4f=!0x1){const _0x436fa8=_0x3f2902;_0x59bc4f&&(this[_0x436fa8(0x1d3)](),this[_0x436fa8(0x22c)](_0x59bc4f));}[_0x3f2902(0xb2)](_0x58fb46,_0x30c08d,_0x240942,_0x38a0ec,_0x5cfcfa,_0x2483c3,_0x45faf6){const _0x3ecaf8=_0x3f2902;if(!this[_0x3ecaf8(0xdd)])return;let _0x4c85f9=_0x58fb46[_0x3ecaf8(0x35d)]('shape-adjust-point-'+this[_0x3ecaf8(0xdd)]+'-'+_0x240942);if(_0x4c85f9){_0x4c85f9[_0x3ecaf8(0x3cd)]({'left':_0x30c08d['x']+_0x38a0ec-_0x136056[_0x3ecaf8(0x288)]['adjHandleSize'],'top':_0x30c08d['y']+_0x5cfcfa-_0x136056[_0x3ecaf8(0x288)][_0x3ecaf8(0x36e)]});return;}let _0xb81d38={'left':_0x30c08d['x']+_0x38a0ec-_0x136056['ShapeDefaultConfig'][_0x3ecaf8(0x36e)],'top':_0x30c08d['y']+_0x5cfcfa-_0x136056['ShapeDefaultConfig'][_0x3ecaf8(0x36e)],'adjName':_0x240942,'shapeId':this[_0x3ecaf8(0xdd)],'unitId':_0x2483c3,'subUnitId':_0x45faf6,'width':_0x136056['ShapeDefaultConfig'][_0x3ecaf8(0x36e)]+0x8,'height':_0x136056[_0x3ecaf8(0x288)][_0x3ecaf8(0x36e)]+0x8,'zIndex':_0x1877f7['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0},_0x16f1b5=new _0x1f156b('shape-adjust-point-'+this[_0x3ecaf8(0xdd)]+'-'+_0x240942,_0xb81d38);this[_0x3ecaf8(0x39e)][_0x3ecaf8(0x33e)](_0x16f1b5),this['_attachAdjustEvent'](_0x16f1b5,_0x58fb46,_0x240942),_0x58fb46[_0x3ecaf8(0x172)](_0x16f1b5,_0x1877f7[_0x3ecaf8(0x2c1)]+0x1);}[_0x3f2902(0x1d3)](){const _0x2b5c75=_0x3f2902;this['_shapes'][_0x2b5c75(0xff)]!==0x0&&(this[_0x2b5c75(0x39e)]['forEach'](_0x230926=>{const _0x33e2f2=_0x2b5c75;_0x230926[_0x33e2f2(0x358)]();}),this[_0x2b5c75(0x39e)]=[]);}[_0x3f2902(0x31d)](){this['_createShapeAdjustControls']();}[_0x3f2902(0x3ac)](_0xcc5238,_0x121a92){const _0x2b817b=_0x3f2902;var _0x28937f;let _0x42dba0={'x':0x0,'y':0x0};if(!_0xcc5238||!_0x121a92)return _0x42dba0;let _0x38362a=this['_renderManagerService'][_0x2b817b(0x10d)](_0xcc5238);if(!_0x38362a||!_0x38362a[_0x2b817b(0x3ad)](_0x2e7926[_0x2b817b(0x243)])[_0x2b817b(0x148)](_0x121a92))return _0x42dba0;let _0x51413f=_0x38362a[_0x2b817b(0x3ad)](_0x2e7926[_0x2b817b(0x1e7)]),_0x62c99=_0x51413f==null?void 0x0:_0x51413f['getCurrentScrollState']();if(!_0x62c99)return _0x42dba0;let _0x535ccf=(_0x28937f=this['_univerInstanceService'][_0x2b817b(0xaa)](_0xcc5238))==null?void 0x0:_0x28937f[_0x2b817b(0x34f)](_0x121a92);if(!_0x535ccf)return _0x42dba0;let _0x495784=(0x0,_0x2e7926[_0x2b817b(0x153)])(_0x62c99[_0x2b817b(0x10b)],_0x62c99['sheetViewStartColumn'],_0x38362a[_0x2b817b(0x15a)],_0x535ccf);return _0x495784?{'x':_0x495784[_0x2b817b(0x22a)],'y':_0x495784[_0x2b817b(0x25b)]}:_0x42dba0;}[_0x3f2902(0x3ab)](_0x2834e2,_0x74fa74){const _0x4f1ed6=_0x3f2902;var _0x5a13aa;let _0x326043=(_0x5a13aa=this[_0x4f1ed6(0xfc)][_0x4f1ed6(0xaa)](_0x2834e2))==null?void 0x0:_0x5a13aa['getSheetBySheetId'](_0x74fa74);return(_0x326043==null?void 0x0:_0x326043[_0x4f1ed6(0x1f8)]())??0x1;}['_attachAdjustEvent'](_0x5e05eb,_0x408934,_0x494b2f){this['disposeWithMe']((0x0,_0x233421['toDisposable'])(_0x5e05eb['onPointerDown$']['subscribeEvent']((_0x5dc211,_0x14ed56)=>{const _0x1dc63a=_0x50be;var _0x7ff2f9,_0x4a275b,_0x45867d,_0x265846;let _0x3c944e=_0x5e05eb['getDrawingSearch']();this['_activeAdjustInfo']=this[_0x1dc63a(0x29b)](_0x3c944e[_0x1dc63a(0x138)],_0x3c944e[_0x1dc63a(0x318)],_0x3c944e['drawingId'],_0x494b2f),this['_activeShapeModel']=this[_0x1dc63a(0xaf)]['getShapeModel'](_0x3c944e[_0x1dc63a(0x138)],_0x3c944e[_0x1dc63a(0x318)],_0x3c944e[_0x1dc63a(0x262)]);let _0x36b8f1=this[_0x1dc63a(0xea)]['getDrawingByParam']({'unitId':this[_0x1dc63a(0x228)],'subUnitId':this[_0x1dc63a(0x1ad)],'drawingId':this[_0x1dc63a(0xdd)]}),{transform:_0x580709}=_0x36b8f1;if(_0x580709){let {left:_0x3f8ba6,top:_0x55bdf8,width:_0x2e7dc6,height:_0x19d1bc}=_0x580709;this[_0x1dc63a(0x19f)]=_0x3f8ba6||0x0,this['_baseShapeTop']=_0x55bdf8||0x0,this[_0x1dc63a(0x3ca)]=_0x2e7dc6||0x0,this[_0x1dc63a(0x7e)]=_0x19d1bc||0x0;}let _0x44ff1d=!!((_0x7ff2f9=_0x36b8f1['transform'])!=null&&_0x7ff2f9[_0x1dc63a(0x236)]),_0x1b994c=!!((_0x4a275b=_0x36b8f1[_0x1dc63a(0x343)])!=null&&_0x4a275b['flipY']),_0x5d6192=((_0x45867d=_0x36b8f1['transform'])==null?void 0x0:_0x45867d[_0x1dc63a(0x24d)])||0x0;this[_0x1dc63a(0x2fa)]=!0x0,_0x408934['disableObjectsEvent']();let _0x5dbce0={...((_0x265846=this[_0x1dc63a(0xc9)])==null?void 0x0:_0x265846[_0x1dc63a(0x1e8)])??{}};this[_0x1dc63a(0x29f)]=_0x408934[_0x1dc63a(0x1b0)]['subscribeEvent']((_0x388f46,_0x9f8f56)=>{const _0x5c3605=_0x1dc63a;if(!this['_isStartAdjusting'])return;let {offsetX:_0x453190,offsetY:_0x2680c1}=_0x388f46,_0x27be81=this[_0x5c3605(0xc9)];if(this[_0x5c3605(0x1d5)]&&_0x27be81){_0x408934['disableObjectsEvent'](),_0x408934[_0x5c3605(0x310)](_0x1877f7[_0x5c3605(0x190)][_0x5c3605(0x242)]);let _0x3cd6d3={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x5c3605(0x7e)]},_0x1a8738=this['_getScrollInfo'](this[_0x5c3605(0x228)],this['_subUnitId']),_0x554174=this[_0x5c3605(0x3ab)](this['_unitId'],this[_0x5c3605(0x1ad)]),_0x3b1d35=_0x453190/_0x554174+_0x1a8738['x']-this[_0x5c3605(0x19f)],_0x2f5f75=_0x2680c1/_0x554174+_0x1a8738['y']-this['_baseShapeTop'];if(_0x5d6192!==0x0){let _0x1c706e=this['_baseShapeWidth']/0x2,_0x324775=this[_0x5c3605(0x7e)]/0x2,_0x5c1dee=_0x5d6192*Math['PI']/0xb4,_0x434194=Math['cos'](_0x5c1dee),_0x487060=Math['sin'](_0x5c1dee),_0x2f6623=_0x3b1d35-_0x1c706e,_0x315cfb=_0x2f5f75-_0x324775;_0x3b1d35=_0x1c706e+(_0x2f6623*_0x434194+_0x315cfb*_0x487060),_0x2f5f75=_0x324775+(-_0x2f6623*_0x487060+_0x315cfb*_0x434194);}_0x44ff1d&&(_0x3b1d35=this[_0x5c3605(0x3ca)]-_0x3b1d35),_0x1b994c&&(_0x2f5f75=this[_0x5c3605(0x7e)]-_0x2f5f75);let _0x535d35={'x':_0x3b1d35,'y':_0x2f5f75},_0x2e3176=this[_0x5c3605(0x1d5)][_0x5c3605(0x22d)](_0x3cd6d3,_0x535d35,_0x27be81,_0x44ff1d,_0x1b994c);if(Object[_0x5c3605(0x3ae)](_0x2e3176)['length']===0x0)return;for(let [_0x3edf9e,_0x1e5bfe]of Object[_0x5c3605(0x1fc)](_0x2e3176))this[_0x5c3605(0x1d5)]['setAdjustValueByName'](_0x3edf9e,_0x1e5bfe);this[_0x5c3605(0x1d5)]['updateContext']({'width':this[_0x5c3605(0x3ca)],'height':this[_0x5c3605(0x7e)]});let _0x360715=this[_0x5c3605(0xea)][_0x5c3605(0x379)]({'unitId':_0x3c944e[_0x5c3605(0x138)],'subUnitId':_0x3c944e[_0x5c3605(0x318)],'drawingId':_0x3c944e['drawingId']});_0x360715&&(this[_0x5c3605(0x40f)][_0x5c3605(0x77)](_0x360715,_0x408934),this[_0x5c3605(0x1d6)]=this[_0x5c3605(0x1de)](_0x3c944e[_0x5c3605(0x138)],_0x3c944e['subUnitId'],_0x3c944e['drawingId']),this[_0x5c3605(0x31d)]());}_0x9f8f56[_0x5c3605(0x1b9)]();}),this[_0x1dc63a(0x144)]=_0x408934[_0x1dc63a(0xa7)][_0x1dc63a(0x297)]((_0x526a36,_0x6d61c8)=>{const _0x402451=_0x1dc63a;this[_0x402451(0x29f)][_0x402451(0x146)](),this[_0x402451(0x144)]['unsubscribe'](),_0x408934[_0x402451(0x387)]();let _0x5d52d3=this[_0x402451(0xc9)];if(_0x5d52d3){let _0xdb27c1=_0x3c944e[_0x402451(0x138)],_0x9aa027=_0x3c944e[_0x402451(0x318)],_0x554b30=_0x3c944e[_0x402451(0x262)],_0x3a7619={};for(let _0x4e04d1 of Object[_0x402451(0x3ae)](_0x5d52d3[_0x402451(0x1e8)])){var _0x4d8c9c;let _0x12ec05=(_0x4d8c9c=this[_0x402451(0x1d5)])==null?void 0x0:_0x4d8c9c[_0x402451(0x37f)](_0x4e04d1);_0x12ec05!==void 0x0&&(_0x3a7619[_0x4e04d1]=_0x12ec05);}Object[_0x402451(0x3ae)](_0x3a7619)[_0x402451(0xff)]>0x0&&_0x387292(this[_0x402451(0x116)],_0xdb27c1,_0x9aa027,_0x554b30,{'oldShapeData':{'adjustValues':_0x5dbce0}},{'adjustValues':_0x3a7619});}this[_0x402451(0xc9)]=void 0x0,this[_0x402451(0x1d5)]=void 0x0,this[_0x402451(0x2fa)]=!0x1,_0x6d61c8[_0x402451(0x1b9)](),_0x408934[_0x402451(0x3c9)]();}),_0x14ed56[_0x1dc63a(0x1b9)]();})));}['_registerDrawingMoveHandler'](){const _0x215775=_0x3f2902;let _0x5143e8=this['_univerInstanceService'][_0x215775(0x11c)](_0x233421['UniverInstanceType']['UNIVER_SHEET']);this[_0x215775(0x374)](_0x5143e8[_0x215775(0x3de)]((0x0,_0x17772c[_0x215775(0x1cd)])(_0x215efa=>_0x215efa?_0x215efa[_0x215775(0x3c7)]['pipe']((0x0,_0x17772c[_0x215775(0x1cd)])(_0x513796=>{const _0x1c9818=_0x215775;if(!_0x513796)return _0x17772c[_0x1c9818(0xf7)];let _0x5f55ee=_0x215efa[_0x1c9818(0x2f1)](),_0x42778c=this[_0x1c9818(0x367)][_0x1c9818(0x10d)](_0x5f55ee),_0x376b62=_0x42778c==null?void 0x0:_0x42778c[_0x1c9818(0x15a)];return _0x376b62?(0x0,_0x17772c['of'])(_0x376b62):_0x17772c[_0x1c9818(0xf7)];})):_0x17772c['EMPTY']))[_0x215775(0x94)](_0x184528=>{const _0x484492=_0x215775;let _0x42e8b7=_0x184528['getTransformerByCreate']();this[_0x484492(0x374)](_0x184528[_0x484492(0x1b0)][_0x484492(0x297)](()=>{const _0x1a4de7=_0x484492;this[_0x1a4de7(0x1a1)];})),this['disposeWithMe'](_0x42e8b7['changeStart$'][_0x484492(0x94)](_0x959d0b=>{const _0x32816e=_0x484492;let {objects:_0x2e639c}=_0x959d0b;this[_0x32816e(0x22c)](),_0x2e639c!==null&&_0x2e639c[_0x32816e(0x3bd)]===0x1&&_0x2e639c[_0x32816e(0x3e3)]()[_0x32816e(0xee)]()[_0x32816e(0x1f6)]instanceof _0x12c822&&this[_0x32816e(0x3be)](!0x0);})),this[_0x484492(0x374)](_0x42e8b7[_0x484492(0x8d)][_0x484492(0x94)](()=>{const _0x534db5=_0x484492;this[_0x534db5(0x1a1)]&&this['_clearShapeAdjustControls']();})),this[_0x484492(0x374)](_0x184528['onPointerUp$'][_0x484492(0x297)](()=>{const _0x41c330=_0x484492;this[_0x41c330(0x1a1)]&&(this[_0x41c330(0x3be)](!0x1),this[_0x41c330(0x22c)]());})),this[_0x484492(0x374)](_0x42e8b7[_0x484492(0x3af)][_0x484492(0x94)](()=>{const _0x26205a=_0x484492;this[_0x26205a(0x228)]&&this['_subUnitId']&&this['_activeShapeId']&&this[_0x26205a(0xea)][_0x26205a(0x379)]({'unitId':this[_0x26205a(0x228)],'subUnitId':this[_0x26205a(0x1ad)],'drawingId':this['_activeShapeId']})&&(this[_0x26205a(0x1d6)]=this[_0x26205a(0x1de)](this[_0x26205a(0x228)],this['_subUnitId'],this[_0x26205a(0xdd)]),this[_0x26205a(0x31d)]());}));}));}[_0x3f2902(0x419)](){const _0x5910c7=_0x3f2902;this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x541590=>{const _0x23a0a3=_0x50be;if(_0x541590['id']!==_0x1d059b[_0x23a0a3(0x356)]['id'])return;let {unitId:_0x1d1e97,subUnitId:_0x246812,shapeId:_0x4b5ce6}=_0x541590[_0x23a0a3(0xa3)];_0x1d1e97===this['_unitId']&&_0x246812===this['_subUnitId']&&_0x4b5ce6===this['_activeShapeId']&&this[_0x23a0a3(0x3d4)]();})),this[_0x5910c7(0x374)](this['_drawingManagerService'][_0x5910c7(0x2f7)][_0x5910c7(0x94)](_0x50e374=>{const _0x580842=_0x5910c7;if(_0x50e374[_0x580842(0xff)]===0x1){let _0x564f7e=_0x50e374[0x0];if(_0x564f7e[_0x580842(0x1a6)]===_0x233421[_0x580842(0x2d0)][_0x580842(0x347)]&&this[_0x580842(0xfc)]['getUnitType'](_0x564f7e[_0x580842(0x138)])===_0x233421[_0x580842(0x370)][_0x580842(0x1ec)]){this[_0x580842(0xdd)]=_0x564f7e[_0x580842(0x262)];let {unitId:_0x5c9a0d,subUnitId:_0x17915b}=_0x564f7e;this[_0x580842(0x1d6)]=this[_0x580842(0x1de)](_0x5c9a0d,_0x17915b,this[_0x580842(0xdd)]),this[_0x580842(0x228)]=_0x5c9a0d,this['_subUnitId']=_0x17915b,this['_clearShapeAdjustControls'](),this[_0x580842(0x22c)]();return;}}this[_0x580842(0xdd)]=null,this[_0x580842(0x1d6)]=void 0x0,this['_unitId']=null,this[_0x580842(0x1ad)]=null,this['_clearShapeAdjustControls']();})),this[_0x5910c7(0x374)](this[_0x5910c7(0xea)][_0x5910c7(0x2e0)]['subscribe'](_0x65f1ba=>{const _0x122472=_0x5910c7;if(_0x65f1ba[_0x122472(0xff)]===0x1){var _0x579989;let _0x1857be=_0x65f1ba[0x0];((_0x579989=this[_0x122472(0xea)][_0x122472(0x379)](_0x1857be))==null?void 0x0:_0x579989[_0x122472(0x1a6)])===_0x233421[_0x122472(0x2d0)]['DRAWING_SHAPE']&&this[_0x122472(0xb6)](!0x0);}})),this['disposeWithMe'](this[_0x5910c7(0xea)][_0x5910c7(0x134)][_0x5910c7(0x94)](_0x5a0d3a=>{const _0x173001=_0x5910c7;for(let _0x21e975 of _0x5a0d3a)this[_0x173001(0xdd)]===_0x21e975[_0x173001(0x262)]&&(this[_0x173001(0xdd)]=null,this[_0x173001(0x1d6)]=void 0x0,this[_0x173001(0x228)]=null,this[_0x173001(0x1ad)]=null,this[_0x173001(0x1d3)]());}));}};_0x598700=_0x56683a([_0x3eb327(0x0,_0x511ed7[_0x3f2902(0x255)]),_0x3eb327(0x1,(0x0,_0x233421['Inject'])(_0x1d059b[_0x3f2902(0x267)])),_0x3eb327(0x2,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1877f7['IRenderManagerService'])),_0x3eb327(0x3,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x24bf88)),_0x3eb327(0x4,_0x233421[_0x3f2902(0x1c5)]),_0x3eb327(0x5,_0x233421['ICommandService'])],_0x598700);let _0x3c2410={'id':_0x3f2902(0x154),'type':_0x233421[_0x3f2902(0x3b5)]['OPERATION'],'handler':(_0x56648d,_0x246dd9)=>{const _0x1ce571=_0x3f2902;let _0x22fd08=_0x56648d['get'](_0x511ed7['IDrawingManagerService']),_0x5f307f=_0x56648d[_0x1ce571(0x3dd)](_0x1877f7[_0x1ce571(0x2d3)]),_0x2badf3=_0x56648d[_0x1ce571(0x3dd)](_0x598700);if(_0x246dd9==null)return!0x0;if(_0x246dd9['length']>0x0){var _0x3829d0;let _0x5d0f37=(_0x3829d0=_0x5f307f['getRenderUnitById'](_0x246dd9[0x0][_0x1ce571(0x138)]))==null?void 0x0:_0x3829d0['scene'];if(_0x5d0f37){let {unitId:_0x392922,subUnitId:_0x3bfb58,drawingId:_0x87de5}=_0x246dd9[0x0],_0x37650b=(0x0,_0x511ed7[_0x1ce571(0x409)])({'unitId':_0x392922,'subUnitId':_0x3bfb58,'drawingId':_0x87de5},void 0x0),_0x37754d=_0x5d0f37[_0x1ce571(0x35d)](_0x37650b);if(_0x37754d){var _0x310ca1;(_0x310ca1=_0x5f307f[_0x1ce571(0x10d)](_0x246dd9[0x0][_0x1ce571(0x138)]))==null||(_0x310ca1=_0x310ca1['scene'][_0x1ce571(0x132)]())==null||_0x310ca1[_0x1ce571(0x344)](_0x37754d);}}_0x22fd08[_0x1ce571(0x3f9)](_0x246dd9),_0x2badf3['setShouldShowAdjust'](!0x1);}return!0x0;}},_0x211bbb={'type':_0x233421[_0x3f2902(0x3b5)][_0x3f2902(0x199)],'id':_0x3f2902(0xab),'handler':async(_0x57a37c,_0xca2088)=>{const _0x58becf=_0x3f2902;let _0x5306e0=(0x0,_0x58820c[_0x58becf(0x16e)])(_0x57a37c[_0x58becf(0x3dd)](_0x233421[_0x58becf(0x1c5)]));if(!_0x5306e0)return!0x1;let _0x212a95=_0x57a37c[_0x58becf(0x3dd)](_0x58820c['SheetsSelectionsService'])[_0x58becf(0xe2)]();if(!_0x212a95)return!0x1;let _0x15eceb=_0x57a37c[_0x58becf(0x3dd)](_0x233421[_0x58becf(0x32d)]),{unitId:_0x5cbfcb,subUnitId:_0x20b222}=_0x5306e0,{value:_0x2f628e,enhanceParams:_0x4b1f2a}=_0xca2088,{range:_0x57ae26}=_0x212a95,_0x37bc50={'unitId':_0x5cbfcb,'subUnitId':_0x20b222,'shapeType':_0x2f628e,'range':_0x57ae26,'shapeId':(0x0,_0x233421[_0x58becf(0x3f1)])()};if(_0x4b1f2a){let _0x544d97=(0x0,_0x136056[_0x58becf(0x427)])(_0x2f628e),_0x3f6e28=_0x2f628e===_0x136056[_0x58becf(0x383)][_0x58becf(0x18b)];_0x544d97&&(_0x4b1f2a[_0x58becf(0x42e)]||_0x4b1f2a[_0x58becf(0x328)])&&(_0x37bc50['shapeData']={'ln':{'startArrow':_0x4b1f2a[_0x58becf(0x42e)]?{'type':_0x136056[_0x58becf(0xda)]['Arrow'],'size':_0x136056['ShapeArrowSizeEnum'][_0x58becf(0x20e)]}:void 0x0,'endArrow':_0x4b1f2a['endArrow']?{'type':_0x136056[_0x58becf(0xda)][_0x58becf(0x1cb)],'size':_0x136056[_0x58becf(0x20b)][_0x58becf(0x41e)]}:void 0x0}}),_0x3f6e28&&(_0x4b1f2a[_0x58becf(0x227)]||_0x4b1f2a['vertical'])&&(_0x37bc50['shapeData']=(0x0,_0x14e0a7[_0x58becf(0x200)])({'fill':{'fillType':_0x136056[_0x58becf(0x222)][_0x58becf(0x1be)],'color':_0x58becf(0x73)},'isHorizontal':!!_0x4b1f2a[_0x58becf(0x227)],'stroke':{'lineStrokeType':_0x136056[_0x58becf(0x9c)][_0x58becf(0x256)],'width':0x1,'color':_0x58becf(0x322)}}));}let _0x2e2782=_0x15eceb[_0x58becf(0x33f)](_0x1d059b[_0x58becf(0x2ce)]['id'],_0x37bc50);return setTimeout(()=>{const _0x306f67=_0x58becf;_0x15eceb[_0x306f67(0x2aa)](_0x3c2410['id'],[{'unitId':_0x5cbfcb,'subUnitId':_0x20b222,'drawingId':_0x37bc50[_0x306f67(0xb8)]}]);},0xc8),_0x2e2782;}},_0x37b2e5='sheet.shape.edit.panel',_0x87f5e4=_0x3f2902(0x213),_0x35f04f=_0x3f2902(0x240),_0x115e2d=_0x3f2902(0x304),_0x595c7f=(0x0,_0x233421[_0x3f2902(0x3bf)])(_0x3f2902(0xb3)),_0x305587=_0x3f2902(0x2ef),_0x5d57af={'id':'sheet.operation.open-shape-object-list-panel','type':_0x233421[_0x3f2902(0x3b5)][_0x3f2902(0x199)],'handler':(_0x5bdffc,_0x548aef)=>{const _0x4d5cd4=_0x3f2902;let _0x55a550=_0x5bdffc[_0x4d5cd4(0x3dd)](_0x321ff0[_0x4d5cd4(0x30b)]),_0x4dc33b=_0x5bdffc[_0x4d5cd4(0x3dd)](_0x233421[_0x4d5cd4(0x249)]),_0x1aa7ef=_0x5bdffc[_0x4d5cd4(0x3dd)](_0x233421['IUniverInstanceService']),_0x156dc4=_0x5bdffc[_0x4d5cd4(0x3dd)](_0x233421[_0x4d5cd4(0x32d)]);return(0x0,_0x58820c[_0x4d5cd4(0x16e)])(_0x1aa7ef)?(_0x548aef==null?void 0x0:_0x548aef[_0x4d5cd4(0x1f6)])==='close'?(_0x55a550['close'](_0x87f5e4),!0x0):(_0x55a550[_0x4d5cd4(0xe8)]({'id':_0x87f5e4,'header':{'title':_0x4dc33b['t'](_0x4d5cd4(0xe0))},'children':{'label':_0x87f5e4},'onClose':()=>{const _0x138b10=_0x4d5cd4;_0x156dc4[_0x138b10(0x33f)](_0x511ed7[_0x138b10(0x115)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x3aa2f1={'type':_0x233421[_0x3f2902(0x3b5)][_0x3f2902(0x143)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function _0x450d47(_0xb8dec3){const _0x3666fb=_0x3f2902;let _0xa79dc7=_0xb8dec3[_0x3666fb(0x3dd)](_0x511ed7[_0x3666fb(0x255)])[_0x3666fb(0x2b2)](),_0x265463=_0xa79dc7[_0x3666fb(0xff)]===0x1?_0xa79dc7[0x0]:null;if(!_0x265463||_0x265463[_0x3666fb(0x1a6)]!==_0x233421[_0x3666fb(0x2d0)][_0x3666fb(0x347)])return null;let _0x1e9e23=_0xb8dec3[_0x3666fb(0x3dd)](_0x1d059b[_0x3666fb(0x267)]),_0x52ad51=_0x1e9e23[_0x3666fb(0x422)](_0x265463[_0x3666fb(0x138)],_0x265463[_0x3666fb(0x318)],_0x265463[_0x3666fb(0x262)]),_0x88c318=_0x1e9e23[_0x3666fb(0x377)](_0x265463[_0x3666fb(0x138)],_0x265463['subUnitId'],_0x265463[_0x3666fb(0x262)]);return _0x52ad51===void 0x0||!_0x88c318?null:{'drawing':_0x265463,'shapeData':_0x88c318,'shapeType':_0x52ad51};}let _0x15063d={'id':_0x3f2902(0x3b7),'type':_0x233421[_0x3f2902(0x3b5)]['OPERATION'],'handler':(_0x4ded60,_0x28e366)=>{const _0x54b6b2=_0x3f2902;let _0xf9c295=_0x450d47(_0x4ded60),_0x28fbfb=(0x0,_0x14e0a7['getShapeQuickStylePreset'])((_0x28e366==null?void 0x0:_0x28e366[_0x54b6b2(0x3a6)])??(_0x28e366==null?void 0x0:_0x28e366[_0x54b6b2(0x1f6)])??'');if(!_0xf9c295||!_0x28fbfb||_0x28fbfb[_0x54b6b2(0x3ee)]!==(0x0,_0x14e0a7['getShapeQuickStyleType'])(_0xf9c295[_0x54b6b2(0x2fc)]))return!0x1;let _0x27c992=(0x0,_0x14e0a7[_0x54b6b2(0x118)])(_0xf9c295[_0x54b6b2(0x2fc)],_0x28fbfb);if(!_0x27c992)return!0x1;let {drawing:_0x37f123}=_0xf9c295;return _0x4ded60[_0x54b6b2(0x3dd)](_0x233421[_0x54b6b2(0x32d)])[_0x54b6b2(0x2aa)](_0xacbd3['id'],{'unitId':_0x37f123[_0x54b6b2(0x138)],'subUnitId':_0x37f123[_0x54b6b2(0x318)],'shapeId':_0x37f123[_0x54b6b2(0x262)],'shapeData':_0x27c992,'oldShapeJSON':{'oldShapeData':_0xf9c295[_0x54b6b2(0x2fc)]}});}},_0x56fccc={'id':_0x3f2902(0x14a),'type':_0x233421['CommandType']['OPERATION'],'handler':(_0x3bb050,_0x198e63)=>{const _0x440f80=_0x3f2902;let _0x492937=_0x450d47(_0x3bb050),_0x17b47d=(_0x198e63==null?void 0x0:_0x198e63[_0x440f80(0x102)])??(_0x198e63==null?void 0x0:_0x198e63['value']);if(!_0x492937||!_0x17b47d||(0x0,_0x136056['isConnectorShape'])(_0x492937[_0x440f80(0x102)])||(0x0,_0x136056[_0x440f80(0x427)])(_0x17b47d))return!0x1;let _0x538130=(0x0,_0x14e0a7[_0x440f80(0x2ab)])(_0x492937['shapeData'],_0x17b47d);if(!_0x538130)return!0x1;let {drawing:_0x333bdd}=_0x492937;return _0x3bb050['get'](_0x233421[_0x440f80(0x32d)])[_0x440f80(0x2aa)](_0xacbd3['id'],{'unitId':_0x333bdd[_0x440f80(0x138)],'subUnitId':_0x333bdd[_0x440f80(0x318)],'shapeId':_0x333bdd['drawingId'],'shapeType':_0x17b47d,'shapeData':_0x538130,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x492937[_0x440f80(0x102)],'oldShapeData':_0x492937[_0x440f80(0x2fc)]}});}},_0x30cb49=class extends _0x233421['Disposable']{constructor(_0x2de3f6,_0x130abf){const _0x2a68d0=_0x3f2902;super(),this[_0x2a68d0(0x317)]=_0x2de3f6,this['_drawingManagerService']=_0x130abf,this[_0x2a68d0(0x40b)](),this[_0x2a68d0(0x317)][_0x2a68d0(0x202)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x2a68d0(0x317)]['setCanUseShapeClip'](!0x1)});}[_0x3f2902(0x40b)](){const _0x5ac08c=_0x3f2902;let _0x495ef7=this['_clipService'],_0x44a4c3=new Map(),_0x1ed821=_0x495ef7['registerClipDelegate']((_0xd1ec06,_0x490a6f,_0x49d6b6,_0x3d5a13,_0x165844)=>{const _0x2d667f=_0x50be;let _0x35cef3=_0x490a6f;if(_0x35cef3===_0x136056[_0x2d667f(0x383)][_0x2d667f(0xbd)]||_0x490a6f===_0x2d667f(0xd4))return!0x1;try{let _0x2bc32f=_0x44a4c3[_0x2d667f(0x3dd)](_0x490a6f);return _0x2bc32f||(_0x2bc32f=new _0x136056['ShapeModel'](_0x35cef3,_0x2d667f(0x189)+_0x490a6f),_0x44a4c3[_0x2d667f(0x182)](_0x490a6f,_0x2bc32f)),_0x2bc32f[_0x2d667f(0x3c3)](),_0x165844&&Object['keys'](_0x165844)[_0x2d667f(0xff)]>0x0&&_0x2bc32f[_0x2d667f(0x3a8)]({'adjustValues':_0x165844},!0x0),_0x2bc32f['updateContext']({'width':_0x49d6b6,'height':_0x3d5a13}),_0x2bc32f['buildClipPath'](_0xd1ec06,{'left':0x0,'top':0x0,'width':_0x49d6b6,'height':_0x3d5a13});}catch{return!0x1;}});this[_0x5ac08c(0x374)](_0x1ed821),this['disposeWithMe']({'dispose':()=>_0x44a4c3[_0x5ac08c(0x18c)]()});}[_0x3f2902(0x117)](_0x464819,_0x1efdde,_0x4281d9,_0x5a7794,_0x4c99b4){const _0x116a06=_0x3f2902;let _0x57d96c=this[_0x116a06(0xea)][_0x116a06(0x11e)](_0x464819,_0x1efdde);if(!_0x57d96c[_0x4281d9])return;let _0x67afd4={..._0x57d96c[_0x4281d9],'prstGeom':_0x5a7794,'adjustValues':_0x4c99b4};this[_0x116a06(0xea)]['featurePluginUpdateNotification']([_0x67afd4]);}};_0x30cb49=_0x56683a([_0x3eb327(0x0,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x22c8d6['DrawingImageClipService'])),_0x3eb327(0x1,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x511ed7[_0x3f2902(0x255)]))],_0x30cb49);let _0xd8fd4a='sheet.shape.picker.component',_0x1ed003='sheet.image-clip.shape-picker.component';function _0x406af3({onShapeClick:_0x139ff3,excludeGroups:_0x50dcf2}){const _0x30f145=_0x3f2902;return(0x0,_0x741200[_0x30f145(0x26a)])(_0x52eb00[_0x30f145(0x291)],{'excludeGroups':_0x50dcf2,'onShapeClick':_0x139ff3,'scrollContainer':'parent'});}function _0x10697a(){const _0x50d926=_0x3f2902;let _0x4b74c6=(0x0,_0x321ff0[_0x50d926(0xae)])(_0x511ed7[_0x50d926(0x255)]),_0x3ff254=(0x0,_0x321ff0['useDependency'])(_0x30cb49);return(0x0,_0x741200[_0x50d926(0x26a)])(_0x52eb00['ShapePickerDropdown'],{'buttonLabel':_0x50d926(0x41d),'excludeGroups':[_0x52eb00[_0x50d926(0x174)][_0x50d926(0x130)]],'onShapeClick':_0x18ac5=>{const _0x362953=_0x50d926;let _0x21a600=_0x4b74c6['getFocusDrawings']()[_0x362953(0x37d)](_0xcce753=>_0xcce753['drawingType']===_0x233421['DrawingTypeEnum']['DRAWING_IMAGE']);if(!_0x21a600)return;let {unitId:_0x4962f3,subUnitId:_0x356731,drawingId:_0x2a02b0}=_0x21a600;_0x3ff254[_0x362953(0x117)](_0x4962f3,_0x356731,_0x2a02b0,_0x18ac5['type']);}});}function _0x3f2edc(){const _0x212a8=_0x3f2902;let _0xc842c4=(0x0,_0x321ff0['useDependency'])(_0x321ff0[_0x212a8(0xd7)]),_0x5d9c82=(0x0,_0x321ff0[_0x212a8(0xae)])(_0x511ed7[_0x212a8(0x255)]),_0x538ecf=(0x0,_0x321ff0[_0x212a8(0xae)])(_0x233421['IUniverInstanceService']),_0x1eb67f=_0x5d9c82['getFocusDrawings']()[0x0],_0x5cb971=_0x1eb67f?_0x538ecf[_0x212a8(0x2b0)](_0x1eb67f['unitId']):void 0x0,_0xbc9b7a=_0x5cb971===_0x233421[_0x212a8(0x370)][_0x212a8(0x14c)]?_0x212a8(0x85):_0x5cb971===_0x233421[_0x212a8(0x370)]['UNIVER_SHEET']?_0x1ed003:void 0x0,_0x49babd=_0xbc9b7a?_0xc842c4[_0x212a8(0x3dd)](_0xbc9b7a):void 0x0;return _0x49babd?(0x0,_0x741200['jsx'])(_0x49babd,{}):null;}function _0x222dde(){const _0x5ea005=_0x3f2902;let _0x1e5e23=(0x0,_0x321ff0[_0x5ea005(0xae)])(_0x233421['ICommandService']);return(0x0,_0x741200['jsx'])(_0x406af3,{'onShapeClick':_0x4a3bab=>{const _0x50bd4e=_0x5ea005;_0x1e5e23[_0x50bd4e(0x2aa)](_0x211bbb['id'],{'value':_0x4a3bab[_0x50bd4e(0x3ee)],'enhanceParams':{'endArrow':_0x4a3bab['endArrow'],'startArrow':_0x4a3bab[_0x50bd4e(0x42e)],'horizontal':_0x4a3bab[_0x50bd4e(0x227)],'vertical':_0x4a3bab[_0x50bd4e(0x193)]}});}});}function _0x49f412(_0x379d97){const _0x546121=_0x3f2902;let _0x3dea43=_0x379d97[_0x546121(0x3dd)](_0x233421['IUniverInstanceService']);return{'id':_0x211bbb['id'],'type':_0x321ff0[_0x546121(0x3a7)][_0x546121(0x12e)],'selections':[{'label':{'name':_0xd8fd4a,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x211bbb['id']}}}],'icon':_0x546121(0x346),'tooltip':_0x546121(0x412),'activated$':(0x0,_0x2e7926[_0x546121(0xc1)])(_0x3dea43,!0x1,()=>new _0x17772c['Observable'](_0x41139f=>{const _0x6d391b=_0x546121;_0x41139f[_0x6d391b(0xee)](!0x1);})),'hidden$':(0x0,_0x321ff0[_0x546121(0x11d)])(_0x379d97,_0x233421[_0x546121(0x370)][_0x546121(0x1ec)]),'disabled$':(0x0,_0x2e7926['getCurrentRangeDisable$'])(_0x379d97)};}function _0x5b5bc7(_0x55d0f0){const _0x5a372b=_0x3f2902;let _0x1cbddb=_0x55d0f0[_0x5a372b(0x3dd)](_0x233421['IUniverInstanceService']);return{'id':_0x5d57af['id'],'type':_0x321ff0[_0x5a372b(0x3a7)]['BUTTON'],'icon':_0x5a372b(0x287),'title':_0x5a372b(0x201),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,_0x2e7926['deriveStateFromActiveSheet$'])(_0x1cbddb,!0x1,()=>new _0x17772c[(_0x5a372b(0x3d2))](_0xd04042=>{const _0x2254fc=_0x5a372b;_0xd04042[_0x2254fc(0xee)](!0x1);})),'hidden$':(0x0,_0x321ff0[_0x5a372b(0x11d)])(_0x55d0f0,_0x233421[_0x5a372b(0x370)]['UNIVER_SHEET']),'disabled$':(0x0,_0x2e7926[_0x5a372b(0xa8)])(_0x55d0f0)};}let _0x321415=_0x3f2902(0x11f),_0x3460b1=_0x3f2902(0x168);function _0x50ea4a(_0x10277e){const _0x13f201=_0x3f2902;let _0x40f634=_0x10277e[_0x13f201(0x3dd)](_0x511ed7[_0x13f201(0x255)])[_0x13f201(0x2b2)]();return _0x40f634[_0x13f201(0xff)]===0x1&&_0x40f634[0x0][_0x13f201(0x1a6)]===_0x233421[_0x13f201(0x2d0)][_0x13f201(0x347)]?_0x40f634[0x0]:null;}function _0x433c81(_0x39a022){const _0x11c22a=_0x3f2902;let _0x11463f=_0x39a022['get'](_0x511ed7[_0x11c22a(0x255)]);return _0x11463f['focus$']['pipe']((0x0,_0x17772c['startWith'])(_0x11463f[_0x11c22a(0x2b2)]()),(0x0,_0x17772c[_0x11c22a(0x28c)])(_0x22c96f=>_0x22c96f[_0x11c22a(0xff)]!==0x1||_0x22c96f[0x0]['drawingType']!==_0x233421[_0x11c22a(0x2d0)][_0x11c22a(0x347)]));}function _0x3a5ca5(_0x440172){const _0x3d435c=_0x3f2902;return{'id':_0x321415,'commandId':_0x1d059b['ToggleSheetsShapeFlipCommand']['id'],'type':_0x321ff0[_0x3d435c(0x3a7)][_0x3d435c(0x3e4)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x3d435c(0xe1),'icon':'FlipHorizontalIcon','hidden$':_0x433c81(_0x440172),'params':()=>{const _0x39f1ca=_0x3d435c;let _0x516481=_0x50ea4a(_0x440172);return _0x516481?{'unitId':_0x516481[_0x39f1ca(0x138)],'subUnitId':_0x516481[_0x39f1ca(0x318)],'shapeId':_0x516481[_0x39f1ca(0x262)],'flipH':!0x0}:void 0x0;}};}function _0x5e44b2(_0x4241a8){const _0x2b861e=_0x3f2902;return{'id':_0x3460b1,'commandId':_0x1d059b[_0x2b861e(0x2dc)]['id'],'type':_0x321ff0['MenuItemType']['BUTTON'],'title':_0x2b861e(0x1e4),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x2b861e(0x181),'hidden$':_0x433c81(_0x4241a8),'params':()=>{const _0x4a46ce=_0x2b861e;let _0x11a993=_0x50ea4a(_0x4241a8);return _0x11a993?{'unitId':_0x11a993[_0x4a46ce(0x138)],'subUnitId':_0x11a993['subUnitId'],'shapeId':_0x11a993[_0x4a46ce(0x262)],'flipV':!0x0}:void 0x0;}};}let _0x25b2b4=_0x3f2902(0x400),_0x496703=_0x3f2902(0x3fd),_0x82455a='sheets-shape-ui.shape-format.text-ribbon-control',_0x25c378=_0x3f2902(0x286);function _0x364c97(){const _0x45aedc=_0x3f2902;let _0x2453d0=(0x0,_0x321ff0['useDependency'])(_0x233421['ICommandService']),_0x2695bb=(0x0,_0x321ff0['useDependency'])(_0x511ed7[_0x45aedc(0x255)]),_0x5bc94d=(0x0,_0x321ff0[_0x45aedc(0xae)])(_0x1d059b[_0x45aedc(0x267)]),_0x2b0d99=()=>{const _0x28d497=_0x45aedc;var _0x4c9c6e;let _0x5c1f3f=_0x2695bb[_0x28d497(0x2b2)]();if(_0x5c1f3f[_0x28d497(0xff)]!==0x1||((_0x4c9c6e=_0x5c1f3f[0x0])==null?void 0x0:_0x4c9c6e[_0x28d497(0x1a6)])!==_0x233421[_0x28d497(0x2d0)][_0x28d497(0x347)])return null;let {unitId:_0x1306ce,subUnitId:_0x2edcf7,drawingId:_0x16aaeb}=_0x5c1f3f[0x0],_0x2d7b14=_0x5bc94d[_0x28d497(0x422)](_0x1306ce,_0x2edcf7,_0x16aaeb),_0x5e865d=_0x5bc94d[_0x28d497(0x377)](_0x1306ce,_0x2edcf7,_0x16aaeb);return _0x2d7b14===void 0x0||!_0x5e865d?null:{'unitId':_0x1306ce,'subUnitId':_0x2edcf7,'drawingId':_0x16aaeb,'shapeType':_0x2d7b14,'shapeData':_0x5e865d};},_0x15e3f4=(0x0,_0x321ff0[_0x45aedc(0x408)])(()=>new _0x17772c[(_0x45aedc(0x3d2))](_0x28ea5b=>{const _0x36fc0a=_0x45aedc;let _0x27d90e=()=>_0x28ea5b[_0x36fc0a(0xee)](_0x2b0d99()),_0x3b1f1c=_0x2695bb['focus$']['subscribe'](_0x27d90e),_0x2cf2a8=_0x2453d0['onCommandExecuted'](_0x5a945b=>{const _0x5579dd=_0x36fc0a;_0x5a945b['id']===_0x1d059b[_0x5579dd(0x356)]['id']&&_0x27d90e();});return _0x27d90e(),()=>{const _0x477b19=_0x36fc0a;_0x3b1f1c['unsubscribe'](),_0x2cf2a8[_0x477b19(0x358)]();};}),_0x2b0d99(),!0x1,[_0x2453d0,_0x2695bb,_0x5bc94d]);return{'selection':_0x15e3f4,'updateShapeData':_0x29223f=>{const _0x56c377=_0x45aedc;_0x15e3f4&&_0x387292(_0x2453d0,_0x15e3f4[_0x56c377(0x138)],_0x15e3f4[_0x56c377(0x318)],_0x15e3f4[_0x56c377(0x262)],{'oldShapeData':_0x15e3f4[_0x56c377(0x2fc)]},_0x29223f);}};}function _0x5564dd(){const _0x22e09e=_0x3f2902;let {selection:_0x1760f8,updateShapeData:_0x51b42a}=_0x364c97();return _0x1760f8?(0x0,_0x741200[_0x22e09e(0x26a)])(_0x52eb00[_0x22e09e(0x275)],{'shapeData':_0x1760f8[_0x22e09e(0x2fc)],'shapeType':_0x1760f8[_0x22e09e(0x102)],'onUpdateShapeData':_0x51b42a}):null;}function _0x265578(){const _0x110d96=_0x3f2902;let _0x15358c=(0x0,_0x321ff0[_0x110d96(0xae)])(_0x233421[_0x110d96(0x32d)]),_0x3b8a21=(0x0,_0x321ff0['useDependency'])(_0x233421[_0x110d96(0x249)]),{selection:_0xf1c3f}=_0x364c97();return _0xf1c3f?(0x0,_0x741200[_0x110d96(0x26a)])(_0x52eb00[_0x110d96(0x334)],{'type':(0x0,_0x14e0a7[_0x110d96(0x219)])(_0xf1c3f['shapeData']),'ariaLabel':_0x3b8a21['t'](_0x110d96(0x363)),'activePresetId':(0x0,_0x14e0a7[_0x110d96(0x299)])(_0xf1c3f[_0x110d96(0x2fc)]),'onSelect':_0x564a19=>_0x15358c[_0x110d96(0x2aa)](_0x15063d['id'],{'presetId':_0x564a19})}):null;}function _0x19b102(){const _0x5cf4d4=_0x3f2902;let {selection:_0x26ac1b,updateShapeData:_0x2fda6f}=_0x364c97();return _0x26ac1b?(0x0,_0x741200[_0x5cf4d4(0x26a)])(_0x52eb00[_0x5cf4d4(0x15b)],{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x26ac1b[_0x5cf4d4(0x2fc)],'onUpdateShapeData':_0x2fda6f}):null;}function _0x5a3295(){const _0x555f11=_0x3f2902;var _0x354384;let {selection:_0x16dccb,updateShapeData:_0x92b664}=_0x364c97(),_0xf64dbb=(0x0,_0x52eb00['useFormulaShapeToolbar'])({'hostType':_0x233421[_0x555f11(0x370)][_0x555f11(0x1ec)],'unitId':(_0x16dccb==null?void 0x0:_0x16dccb['unitId'])??'','subUnitId':(_0x16dccb==null?void 0x0:_0x16dccb['subUnitId'])??'','shapeId':(_0x16dccb==null?void 0x0:_0x16dccb[_0x555f11(0x262)])??'','shapeData':_0x16dccb==null?void 0x0:_0x16dccb[_0x555f11(0x2fc)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':'bottom','onUpdateBinding':_0x5de195=>_0x92b664({'formulaBinding':_0x5de195})}),_0x3df8ac=((_0x354384=_0xf64dbb[_0x555f11(0x19a)])==null?void 0x0:_0x354384[_0x555f11(0x32a)](_0x4ba66e=>_0x4ba66e[_0x555f11(0xec)])['filter'](_0x120263=>_0x120263[_0x555f11(0x337)]!==!0x1))??[];return _0x16dccb!=null&&_0x16dccb[_0x555f11(0x2fc)][_0x555f11(0x17f)]?(0x0,_0x741200[_0x555f11(0x26a)])(_0x52eb00[_0x555f11(0x364)],{'actions':_0x3df8ac,'panel':_0xf64dbb[_0x555f11(0x254)]}):null;}let _0x4865cb=_0x3f2902(0xdb),_0x2f3144='sheets-shape-ui.ribbon.shape-format.text-control',_0xd52587=_0x3f2902(0x82),_0x4b1e8c=_0x3f2902(0x1b7),_0x27a480=_0x3f2902(0x3b2),_0x900b11=_0x3f2902(0x1c3),_0x1ccfb5=_0x3f2902(0x87);function _0x5dddee(_0x2ff69f){const _0x166e43=_0x3f2902;let _0x1b126b=_0x2ff69f[_0x166e43(0x3dd)](_0x233421[_0x166e43(0x32d)]),_0x35b1ae=_0x2ff69f['get'](_0x511ed7[_0x166e43(0x255)]),_0x2d1d63=_0x2ff69f['get'](_0x1d059b[_0x166e43(0x267)]);return new _0x17772c[(_0x166e43(0x3d2))](_0x260fa6=>{const _0x312f2d=_0x166e43;let _0x33d483=()=>{const _0x582280=_0x50be;let _0x2280b0=_0x330e46(_0x2ff69f),_0x2863a3=_0x2280b0?_0x2d1d63[_0x582280(0x377)](_0x2280b0['unitId'],_0x2280b0[_0x582280(0x318)],_0x2280b0['drawingId']):null;_0x260fa6[_0x582280(0xee)](_0x2863a3?(0x0,_0x14e0a7[_0x582280(0x299)])(_0x2863a3)??'':'');},_0x1035c0=_0x35b1ae[_0x312f2d(0x2f7)][_0x312f2d(0x94)](_0x33d483),_0x14c6de=_0x1b126b[_0x312f2d(0x2e8)](_0x29b3b3=>{const _0x591fa0=_0x312f2d;_0x29b3b3['id']===_0x1d059b[_0x591fa0(0x356)]['id']&&_0x33d483();});return _0x33d483(),()=>{const _0x26495e=_0x312f2d;_0x1035c0[_0x26495e(0x146)](),_0x14c6de[_0x26495e(0x358)]();};});}function _0x330e46(_0x5ee394){const _0x24076b=_0x3f2902;var _0x420c19;let _0x52cf16=_0x5ee394[_0x24076b(0x3dd)](_0x511ed7['IDrawingManagerService'])[_0x24076b(0x2b2)]();return _0x52cf16[_0x24076b(0xff)]===0x1&&((_0x420c19=_0x52cf16[0x0])==null?void 0x0:_0x420c19['drawingType'])===_0x233421[_0x24076b(0x2d0)][_0x24076b(0x347)]?_0x52cf16[0x0]:null;}function _0x1b76e0(_0x3bd784,_0x18014e=!0x1){const _0x51fcc2=_0x3f2902;let _0xce8be2=_0x3bd784['get'](_0x233421[_0x51fcc2(0x32d)]),_0x34f8bc=_0x3bd784[_0x51fcc2(0x3dd)](_0x511ed7['IDrawingManagerService']),_0x273bc2=_0x3bd784[_0x51fcc2(0x3dd)](_0x1d059b['SheetsShapeService']);return new _0x17772c['Observable'](_0x6c0f1e=>{const _0x394c6f=_0x51fcc2;let _0x577812=()=>{const _0xeafdc4=_0x50be;let _0x212551=_0x330e46(_0x3bd784);if(!_0x212551){_0x6c0f1e[_0xeafdc4(0xee)](!0x0);return;}let _0x21a091=_0x273bc2['getShapeDataById'](_0x212551['unitId'],_0x212551['subUnitId'],_0x212551[_0xeafdc4(0x262)]);_0x6c0f1e[_0xeafdc4(0xee)](!_0x21a091||_0x18014e&&_0x21a091[_0xeafdc4(0x17f)]==null);},_0x87f525=_0x34f8bc[_0x394c6f(0x2f7)][_0x394c6f(0x94)](_0x577812),_0x280315=_0xce8be2[_0x394c6f(0x2e8)](_0x5bebf2=>{const _0x31cca8=_0x394c6f;_0x5bebf2['id']===_0x1d059b[_0x31cca8(0x356)]['id']&&_0x577812();});return _0x577812(),()=>{const _0x1af1af=_0x394c6f;_0x87f525[_0x1af1af(0x146)](),_0x280315[_0x1af1af(0x358)]();};});}function _0x2e8fb2(_0xe02240){const _0x9832cf=_0x3f2902;let _0x56f89b=_0xe02240['get'](_0x511ed7[_0x9832cf(0x255)]),_0x4d6f6d=_0xe02240[_0x9832cf(0x3dd)](_0x1d059b[_0x9832cf(0x267)]);return _0x56f89b[_0x9832cf(0x2f7)]['pipe']((0x0,_0x17772c['startWith'])(_0x56f89b['getFocusDrawings']()),(0x0,_0x17772c[_0x9832cf(0x28c)])(()=>{const _0x2c33ae=_0x9832cf;let _0x1b07b0=_0x330e46(_0xe02240),_0x262280=_0x1b07b0?_0x4d6f6d[_0x2c33ae(0x422)](_0x1b07b0[_0x2c33ae(0x138)],_0x1b07b0[_0x2c33ae(0x318)],_0x1b07b0[_0x2c33ae(0x262)]):void 0x0;return _0x262280===void 0x0||(0x0,_0x136056[_0x2c33ae(0x427)])(_0x262280);}));}function _0x54726f(_0x22d869){const _0x3583fc=_0x3f2902;return{'id':_0x15063d['id'],'type':_0x321ff0[_0x3583fc(0x3a7)][_0x3583fc(0x12e)],'icon':_0x3583fc(0x103),'title':_0x3583fc(0x98),'tooltip':_0x3583fc(0x98),'selections':[{'label':{'name':_0x25b2b4,'hoverable':!0x1,'selectable':!0x1}}],'value$':_0x5dddee(_0x22d869),'hidden$':_0x1b76e0(_0x22d869)};}function _0x451d21(_0x44bc1e){const _0x3b3feb=_0x3f2902;return{'id':_0x56fccc['id'],'type':_0x321ff0['MenuItemType'][_0x3b3feb(0x12e)],'icon':_0x3b3feb(0x346),'title':_0x3b3feb(0x2c9),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x52eb00[_0x3b3feb(0x3c0)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':_0x2e8fb2(_0x44bc1e)};}function _0x53b920(_0x1f95b0,_0x8c12da,_0x395328=!0x1){const _0x578142=_0x3f2902;return _0x4915da=>({'id':_0x1f95b0,'type':_0x321ff0[_0x578142(0x3a7)][_0x578142(0x3e4)],'label':{'name':_0x8c12da,'hoverable':!0x1,'selectable':!0x1},'hidden$':_0x1b76e0(_0x4915da,_0x395328)});}let _0x373716=_0x53b920(_0x4865cb,_0x496703),_0x4c36ca=_0x53b920(_0x2f3144,_0x82455a),_0x236504=_0x53b920(_0xd52587,_0x25c378,!0x0);function _0x44a155(_0x289f99,_0x514832,_0x16c334,_0x5a5e83){const _0xef081e=_0x3f2902;return _0x2e4cd0=>({'id':_0x289f99,'commandId':_0x5c75db[_0xef081e(0x3a2)]['id'],'type':_0x321ff0[_0xef081e(0x3a7)][_0xef081e(0x3e4)],'icon':_0x16c334,'title':_0x5a5e83,'tooltip':_0x5a5e83,'hidden$':_0x1b76e0(_0x2e4cd0),'params':()=>{const _0x2a16b3=_0xef081e;let _0x49b52c=_0x330e46(_0x2e4cd0);return _0x49b52c?{'unitId':_0x49b52c[_0x2a16b3(0x138)],'subUnitId':_0x49b52c[_0x2a16b3(0x318)],'drawingIds':[_0x49b52c[_0x2a16b3(0x262)]],'arrangeType':_0x514832}:void 0x0;}});}let _0x25469a=_0x44a155(_0x4b1e8c,_0x233421['ArrangeTypeEnum']['forward'],'MoveUpIcon',_0x3f2902(0x2d8)),_0x334b41=_0x44a155(_0x27a480,_0x233421[_0x3f2902(0x298)][_0x3f2902(0x205)],_0x3f2902(0x13e),'shape-editor-ui.arrange.backward'),_0x140283=_0x44a155(_0x900b11,_0x233421[_0x3f2902(0x298)][_0x3f2902(0x195)],_0x3f2902(0x394),_0x3f2902(0x3dc)),_0x3edcee=_0x44a155(_0x1ccfb5,_0x233421[_0x3f2902(0x298)][_0x3f2902(0x407)],_0x3f2902(0x2e7),_0x3f2902(0x368));function _0x5e6910(_0x7af911){const _0x4d4386=_0x3f2902;return{'id':_0x3aa2f1['id'],'type':_0x321ff0[_0x4d4386(0x3a7)][_0x4d4386(0x3e4)],'icon':'ShapeFormatSettingIcon','title':'sheets-shape-ui.formatShape','tooltip':'sheets-shape-ui.formatShape','hidden$':_0x1b76e0(_0x7af911),'params':()=>{const _0x55d56a=_0x4d4386;let _0x170deb=_0x330e46(_0x7af911);return _0x170deb?{'unitId':_0x170deb[_0x55d56a(0x138)],'subUnitId':_0x170deb[_0x55d56a(0x318)],'drawingId':_0x170deb['drawingId']}:void 0x0;}};}let _0x5b2064={[_0x321ff0['MenuManagerPosition'][_0x3f2902(0x23b)]]:{[_0x115e2d]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[_0x15063d['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x54726f},[_0x56fccc['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x451d21}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[_0x4865cb]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':_0x373716}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[_0x2f3144]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':_0x4c36ca}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[_0x321415]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':_0x3a5ca5},[_0x3460b1]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':_0x5e44b2},[_0x4b1e8c]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':_0x25469a},[_0x27a480]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x334b41},[_0x900b11]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':_0x140283},[_0x1ccfb5]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':_0x3edcee}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[_0xd52587]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':_0x236504}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[_0x3aa2f1['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5e6910},[_0x52eb00[_0x3f2902(0x29a)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x52eb00['ShapeFloatingToolbarToggleFactory']}}}}},_0x460a47={[_0x321ff0[_0x3f2902(0x226)][_0x3f2902(0x41a)]]:{[_0x211bbb['id']]:{'order':0x4,'menuItemFactory':_0x49f412}},[_0x321ff0[_0x3f2902(0x226)][_0x3f2902(0xc7)]]:{[_0x5d57af['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x5b5bc7}},[_0x321ff0[_0x3f2902(0x2da)]['DRAWING']]:{[_0x321ff0[_0x3f2902(0x1e2)][_0x3f2902(0xc7)]]:{[_0x321415]:{'order':0x4,'menuItemFactory':_0x3a5ca5},[_0x3460b1]:{'order':0x5,'menuItemFactory':_0x5e44b2}}}};var _0x539433='@univerjs-pro/sheets-shape-ui',_0x156255='1.0.0-beta.2';let _0x35279b={'type':_0x233421[_0x3f2902(0x3b5)][_0x3f2902(0x143)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},_0x519452={};function _0x332f0f({ref:_0x22ed4a,..._0x577069}){const _0x3054be=_0x3f2902;let {preserveStrokeWidth:_0x435de5,icon:_0x322dff,id:_0x3782d1,className:_0x5adab3,extend:_0x16128f,..._0x55abfb}=_0x577069,_0x3895b0=(_0x3054be(0x183)+_0x3782d1+'\x20'+(_0x5adab3||''))['trim'](),_0x2c2582='_'+(0x0,_0xfbce25['useId'])(),_0x57e52f=(0x0,_0xfbce25[_0x3054be(0x34a)])(null);return(0x0,_0xfbce25['useImperativeHandle'])(_0x22ed4a,()=>_0x57e52f[_0x3054be(0x26f)]),(0x0,_0xfbce25[_0x3054be(0x35c)])(()=>{const _0x5b7084=_0x3054be;if(!(!_0x435de5||!_0x57e52f[_0x5b7084(0x26f)]||_0x57e52f[_0x5b7084(0x26f)][_0x5b7084(0x3e2)]!==_0x322dff[_0x5b7084(0x3f6)]))return _0x18ce94(_0x57e52f[_0x5b7084(0x26f)]);},[_0x435de5,_0x322dff]),_0x4b7ed2(_0x322dff,''+_0x3782d1,{'defIds':_0x322dff[_0x3054be(0x24b)],'idSuffix':_0x2c2582},{'ref':_0x57e52f,'className':_0x3895b0,..._0x55abfb},_0x16128f);}function _0x4b7ed2(_0x32697b,_0x34337f,_0x40a1d3,_0x23dc3f,_0xa42ccb){const _0x5ceb09=_0x3f2902;return(0x0,_0xfbce25[_0x5ceb09(0x10f)])(_0x32697b[_0x5ceb09(0x3f6)],{'key':_0x34337f,..._0x1e0a50(_0x32697b,_0x40a1d3,_0xa42ccb),..._0x23dc3f},(_0x4e6c47(_0x32697b,_0x40a1d3)[_0x5ceb09(0x3c8)]||[])[_0x5ceb09(0x28c)]((_0xcf8ff0,_0x2fa6b2)=>_0x4b7ed2(_0xcf8ff0,_0x34337f+'-'+_0x32697b[_0x5ceb09(0x3f6)]+'-'+_0x2fa6b2,_0x40a1d3,void 0x0,_0xa42ccb)));}function _0x1e0a50(_0x43d7ab,_0x12a1ea,_0x486818){const _0x181212=_0x3f2902;let _0x1fd1d8={..._0x43d7ab[_0x181212(0x308)]};_0x486818!=null&&_0x486818['colorChannel1']&&_0x1fd1d8[_0x181212(0x40a)]===_0x181212(0x245)&&(_0x1fd1d8[_0x181212(0x40a)]=_0x486818[_0x181212(0x245)]),_0x486818!=null&&_0x486818[_0x181212(0x245)]&&_0x1fd1d8['stroke']===_0x181212(0x245)&&(_0x1fd1d8[_0x181212(0x350)]=_0x486818[_0x181212(0x245)]),_0x43d7ab['tag']===_0x181212(0xce)&&_0x1fd1d8['id']&&(_0x1fd1d8['id']+=_0x12a1ea[_0x181212(0x42d)]),Object[_0x181212(0x1fc)](_0x1fd1d8)['forEach'](([_0x558c68,_0x1005ee])=>{const _0x5e5ae0=_0x181212;_0x558c68===_0x5e5ae0(0xce)&&typeof _0x1005ee==_0x5e5ae0(0x1c0)&&(_0x1fd1d8[_0x558c68]=_0x1005ee[_0x5e5ae0(0x2d7)](/url\(#(.*)\)/,_0x5e5ae0(0x1bc)+_0x12a1ea[_0x5e5ae0(0x42d)]+')'));});let {defIds:_0x42421f}=_0x12a1ea;return!_0x42421f||_0x42421f[_0x181212(0xff)]===0x0?_0x1fd1d8:(_0x43d7ab[_0x181212(0x3f6)]===_0x181212(0x270)&&_0x1fd1d8[_0x181212(0x23c)]&&(_0x1fd1d8['xlink:href']+=_0x12a1ea[_0x181212(0x42d)]),Object['entries'](_0x1fd1d8)[_0x181212(0x120)](([_0x33145c,_0x16dae1])=>{const _0x415833=_0x181212;typeof _0x16dae1=='string'&&(_0x1fd1d8[_0x33145c]=_0x16dae1['replace'](/url\(#(.*)\)/,_0x415833(0x1bc)+_0x12a1ea[_0x415833(0x42d)]+')'));}),_0x1fd1d8);}function _0x4e6c47(_0x21e8cd,_0x3a3d48){const _0x10c578=_0x3f2902;var _0x2cfb3d;let {defIds:_0x491c36}=_0x3a3d48;return!_0x491c36||_0x491c36['length']===0x0?_0x21e8cd:_0x21e8cd[_0x10c578(0x3f6)]===_0x10c578(0x91)&&(_0x2cfb3d=_0x21e8cd['children'])!=null&&_0x2cfb3d[_0x10c578(0xff)]?{..._0x21e8cd,'children':_0x21e8cd[_0x10c578(0x3c8)][_0x10c578(0x28c)](_0x4a319a=>typeof _0x4a319a[_0x10c578(0x308)]['id']=='string'&&_0x491c36&&_0x491c36[_0x10c578(0x19b)](_0x4a319a[_0x10c578(0x308)]['id'])?{..._0x4a319a,'attrs':{..._0x4a319a[_0x10c578(0x308)],'id':_0x4a319a[_0x10c578(0x308)]['id']+_0x3a3d48['idSuffix']}}:_0x4a319a)}:_0x21e8cd;}function _0x18ce94(_0x2abd1c){const _0x4c2896=_0x3f2902;let _0x340c07=_0x2abd1c[_0x4c2896(0xc2)]['baseVal'],_0x4743e3=Math[_0x4c2896(0x3a9)](_0x340c07[_0x4c2896(0x1e1)],_0x340c07[_0x4c2896(0x3ce)]);if(!Number[_0x4c2896(0xe5)](_0x4743e3)||_0x4743e3<=0x0||_0x340c07[_0x4c2896(0x1e1)]<=0x0||_0x340c07['height']<=0x0)return()=>void 0x0;let _0x2c088b=0x10/_0x4743e3,_0x295fe7=Array[_0x4c2896(0x208)](_0x2abd1c['querySelectorAll']('circle,\x20ellipse,\x20line,\x20path,\x20polygon,\x20polyline,\x20rect,\x20text,\x20textPath,\x20tspan,\x20use'))[_0x4c2896(0x32a)](_0x23f4c5=>{const _0x35e0a8=_0x4c2896;let _0x7face7=getComputedStyle(_0x23f4c5),_0x495b2e=Number[_0x35e0a8(0x2a0)](_0x7face7['strokeWidth']);return _0x7face7[_0x35e0a8(0x350)]==='none'||Number[_0x35e0a8(0x2a0)](_0x7face7[_0x35e0a8(0x142)])===0x0||_0x7face7[_0x35e0a8(0x20a)]===_0x35e0a8(0x1a3)||!Number[_0x35e0a8(0xe5)](_0x495b2e)||_0x495b2e<=0x0?[]:[{'element':_0x23f4c5,'hadStyleAttribute':_0x23f4c5[_0x35e0a8(0x11b)](_0x35e0a8(0x29e)),'originalStrokeWidth':_0x495b2e,'strokeWidth':_0x5a8aa0(_0x23f4c5['style'],_0x35e0a8(0x2e1))}];})['map'](_0x426fec=>({'appliedStrokeWidth':null,'element':_0x426fec[_0x4c2896(0xa5)],'hadStyleAttribute':_0x426fec[_0x4c2896(0x349)],'isReleased':!0x1,'originalStrokeWidth':_0x426fec[_0x4c2896(0x340)],'strokeWidth':_0x426fec[_0x4c2896(0x2a3)]}));if(_0x295fe7['length']===0x0)return()=>void 0x0;let _0x2419eb=(_0x2fbffd,_0x4f48d2)=>{const _0x2ee190=_0x4c2896;if(_0x340c07[_0x2ee190(0x1e1)]<=0x0||_0x340c07[_0x2ee190(0x3ce)]<=0x0||_0x2fbffd<=0x0||_0x4f48d2<=0x0)return;let _0x47843c=Math[_0x2ee190(0x119)](_0x2fbffd/_0x340c07['width'],_0x4f48d2/_0x340c07[_0x2ee190(0x3ce)]);!Number[_0x2ee190(0xe5)](_0x47843c)||_0x47843c<=0x0||_0x295fe7[_0x2ee190(0x120)](_0x1efe07=>{const _0x236f21=_0x2ee190;if(_0x1efe07['isReleased'])return;if(_0x1efe07[_0x236f21(0x25a)]!==null&&(_0x1efe07[_0x236f21(0xa5)][_0x236f21(0x29e)]['getPropertyValue'](_0x236f21(0x2e1))!==_0x1efe07[_0x236f21(0x25a)]||_0x1efe07['element'][_0x236f21(0x29e)]['getPropertyPriority']('stroke-width')!==_0x1efe07[_0x236f21(0x2a3)][_0x236f21(0xc3)])){_0x1efe07[_0x236f21(0x25a)]=null,_0x1efe07[_0x236f21(0xf9)]=!0x0;return;}let _0x44e74d=_0x1efe07['originalStrokeWidth']*_0x2c088b/_0x47843c,_0x547616=Number(_0x44e74d[_0x236f21(0x1cc)](0xc))+'px';_0x1efe07[_0x236f21(0xa5)][_0x236f21(0x29e)][_0x236f21(0x420)](_0x236f21(0x2e1),_0x547616,_0x1efe07[_0x236f21(0x2a3)][_0x236f21(0xc3)]),_0x1efe07[_0x236f21(0x25a)]=_0x547616;});},_0x2dcd71=_0x2abd1c[_0x4c2896(0x2dd)]();_0x2419eb(_0x2dcd71[_0x4c2896(0x1e1)],_0x2dcd71['height']);let _0x56520a=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x3d2b47=>{const _0x301b35=_0x4c2896;if(_0x3d2b47[_0x301b35(0x2fe)](_0x5d6273=>_0x5d6273[_0x301b35(0xb0)]===_0x2abd1c)){let _0x37ac77=_0x2abd1c[_0x301b35(0x2dd)]();_0x2419eb(_0x37ac77[_0x301b35(0x1e1)],_0x37ac77[_0x301b35(0x3ce)]);}});return _0x56520a==null||_0x56520a[_0x4c2896(0x32c)](_0x2abd1c),()=>{const _0xe7eb6=_0x4c2896;_0x56520a==null||_0x56520a[_0xe7eb6(0x16c)](),_0x295fe7[_0xe7eb6(0x120)](_0x461a66=>{const _0x3b7bcb=_0xe7eb6;_0x461a66[_0x3b7bcb(0x25a)]!==null&&(_0x2a6f55(_0x461a66['element'][_0x3b7bcb(0x29e)],_0x3b7bcb(0x2e1),_0x461a66[_0x3b7bcb(0x25a)],_0x461a66[_0x3b7bcb(0x2a3)][_0x3b7bcb(0xc3)],_0x461a66[_0x3b7bcb(0x2a3)]),!_0x461a66[_0x3b7bcb(0x349)]&&_0x461a66['element'][_0x3b7bcb(0x29e)][_0x3b7bcb(0xff)]===0x0&&_0x461a66[_0x3b7bcb(0xa5)][_0x3b7bcb(0x32e)](_0x3b7bcb(0x29e)));});};}function _0x5a8aa0(_0x6695c,_0x3e0c92){const _0x57dc33=_0x3f2902;return{'priority':_0x6695c[_0x57dc33(0x131)](_0x3e0c92),'value':_0x6695c[_0x57dc33(0x3f5)](_0x3e0c92)};}function _0x2a6f55(_0x54d43a,_0x2b049a,_0x15e8a5,_0x33e8bc,_0x205b99){const _0x12353f=_0x3f2902;_0x54d43a[_0x12353f(0x3f5)](_0x2b049a)===_0x15e8a5&&_0x54d43a['getPropertyPriority'](_0x2b049a)===_0x33e8bc&&(_0x205b99['value']?_0x54d43a[_0x12353f(0x420)](_0x2b049a,_0x205b99['value'],_0x205b99[_0x12353f(0xc3)]):_0x54d43a[_0x12353f(0x135)](_0x2b049a));}_0x332f0f[_0x3f2902(0x27d)]='UniverIcon';let _0x3a0f47={'tag':_0x3f2902(0x401),'attrs':{'xmlns':_0x3f2902(0x301),'fill':_0x3f2902(0xbf),'viewBox':'0\x200\x2017\x2016','width':_0x3f2902(0x3cc),'height':_0x3f2902(0x3cc)},'children':[{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0x1c9),'fillRule':'evenodd','clipRule':'evenodd'}},{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0x241),'fillRule':_0x3f2902(0x133),'clipRule':_0x3f2902(0x133)}},{'tag':'path','attrs':{'fill':_0x3f2902(0x17d),'d':'M8.57975\x2014.5902L6.58023\x2012.5907C6.34591\x2012.3564\x206.34591\x2011.9765\x206.58023\x2011.7421C6.81454\x2011.5078\x207.19444\x2011.5078\x207.42876\x2011.7421L8.40449\x2012.7179V10.1664C8.40449\x209.83504\x208.67312\x209.56641\x209.00449\x209.56641C9.33586\x209.56641\x209.60449\x209.83504\x209.60449\x2010.1664V12.7179L10.5802\x2011.7421C10.8145\x2011.5078\x2011.1944\x2011.5078\x2011.4288\x2011.7421C11.6631\x2011.9765\x2011.6631\x2012.3564\x2011.4288\x2012.5907L9.42923\x2014.5902'}},{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0x406)}}]},_0x33b9b8=(0x0,_0xfbce25[_0x3f2902(0x354)])(function(_0x3dce2a,_0x2343b4){const _0x19d04a=_0x3f2902;return(0x0,_0xfbce25[_0x19d04a(0x10f)])(_0x332f0f,Object[_0x19d04a(0x34d)]({},_0x3dce2a,{'id':'bottom-icon','ref':_0x2343b4,'icon':_0x3a0f47}));});_0x33b9b8[_0x3f2902(0x27d)]='BottomIcon';let _0x4b71de={'tag':_0x3f2902(0x401),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3f2902(0xbf),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3f2902(0x3cc)},'children':[{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x2ca),'strokeLinecap':'round','strokeLinejoin':_0x3f2902(0x2e6),'strokeWidth':1.3}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':'currentColor','d':_0x3f2902(0x390),'strokeLinecap':'round','strokeLinejoin':_0x3f2902(0x2e6),'strokeWidth':1.3}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x152),'strokeLinecap':'round','strokeWidth':1.2}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x21f),'strokeLinecap':'round','strokeWidth':1.2}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x150),'strokeLinecap':_0x3f2902(0x2e6),'strokeWidth':1.2}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x1e5),'strokeLinecap':_0x3f2902(0x2e6),'strokeWidth':1.2}}]},_0x77be06=(0x0,_0xfbce25[_0x3f2902(0x354)])(function(_0x4b4a89,_0xd754fd){const _0x3c4a9c=_0x3f2902;return(0x0,_0xfbce25[_0x3c4a9c(0x10f)])(_0x332f0f,Object[_0x3c4a9c(0x34d)]({},_0x4b4a89,{'id':_0x3c4a9c(0x417),'ref':_0xd754fd,'icon':_0x4b71de}));});_0x77be06[_0x3f2902(0x27d)]=_0x3f2902(0x3fb);let _0x2e76e8={'tag':_0x3f2902(0x401),'attrs':{'xmlns':_0x3f2902(0x301),'fill':_0x3f2902(0xbf),'viewBox':_0x3f2902(0x279),'width':'1em','height':'1em'},'children':[{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':'M3.3\x202.6L8\x206.2L12.7\x202.6H3.3Z','strokeLinecap':_0x3f2902(0x2e6),'strokeLinejoin':_0x3f2902(0x2e6),'strokeWidth':1.3}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x3d6),'strokeLinecap':_0x3f2902(0x2e6),'strokeLinejoin':'round','strokeWidth':1.3}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x2ec),'strokeLinecap':_0x3f2902(0x2e6),'strokeWidth':1.2}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':'currentColor','d':_0x3f2902(0x312),'strokeLinecap':_0x3f2902(0x2e6),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x8a),'strokeLinecap':_0x3f2902(0x2e6),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x8e),'strokeLinecap':'round','strokeWidth':1.2}}]},_0x563eec=(0x0,_0xfbce25[_0x3f2902(0x354)])(function(_0x24dd02,_0x2668c7){const _0x4fd97a=_0x3f2902;return(0x0,_0xfbce25[_0x4fd97a(0x10f)])(_0x332f0f,Object[_0x4fd97a(0x34d)]({},_0x24dd02,{'id':'flip-vertical-icon','ref':_0x2668c7,'icon':_0x2e76e8}));});_0x563eec['displayName']=_0x3f2902(0x181);let _0x59cb4b={'tag':_0x3f2902(0x401),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3f2902(0x279),'width':'1em','height':_0x3f2902(0x3cc)},'children':[{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0x112),'fillRule':_0x3f2902(0x133),'clipRule':_0x3f2902(0x133)}},{'tag':'path','attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0x381)}}]},_0x127a4e=(0x0,_0xfbce25['forwardRef'])(function(_0x387c3e,_0x348ef2){const _0x4f4061=_0x3f2902;return(0x0,_0xfbce25[_0x4f4061(0x10f)])(_0x332f0f,Object[_0x4f4061(0x34d)]({},_0x387c3e,{'id':'move-down-icon','ref':_0x348ef2,'icon':_0x59cb4b}));});_0x127a4e['displayName']=_0x3f2902(0x13e);let _0x40d5aa={'tag':'svg','attrs':{'xmlns':_0x3f2902(0x301),'fill':_0x3f2902(0xbf),'viewBox':_0x3f2902(0x279),'width':'1em','height':_0x3f2902(0x3cc)},'children':[{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0x382),'fillRule':_0x3f2902(0x133),'clipRule':'evenodd'}},{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':'M5.57564\x204.38825C5.80995\x204.62256\x206.18985\x204.62256\x206.42417\x204.38825L7.3999\x203.41251V9.63049C7.3999\x209.96186\x207.66853\x2010.2305\x207.9999\x2010.2305C8.33127\x2010.2305\x208.5999\x209.96186\x208.5999\x209.63049V3.41251L9.57564\x204.38825C9.80995\x204.62256\x2010.1899\x204.62256\x2010.4242\x204.38825C10.6585\x204.15393\x2010.6585\x203.77403\x2010.4242\x203.53972L8.4324\x201.54796C8.32324\x201.43445\x208.16982\x201.36382\x207.9999\x201.36382C7.82998\x201.36382\x207.67655\x201.43446\x207.56739\x201.54797L5.57564\x203.53972C5.34132\x203.77403\x205.34132\x204.15393\x205.57564\x204.38825Z'}}]},_0x5d8224=(0x0,_0xfbce25['forwardRef'])(function(_0x3e7ab4,_0x504d12){const _0x13da80=_0x3f2902;return(0x0,_0xfbce25[_0x13da80(0x10f)])(_0x332f0f,Object['assign']({},_0x3e7ab4,{'id':_0x13da80(0x1ef),'ref':_0x504d12,'icon':_0x40d5aa}));});_0x5d8224['displayName']=_0x3f2902(0xf0);let _0x23f5b7={'tag':_0x3f2902(0x401),'attrs':{'xmlns':_0x3f2902(0x301),'fill':_0x3f2902(0xbf),'viewBox':'0\x200\x2016\x2016','width':_0x3f2902(0x3cc),'height':'1em'},'children':[{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':_0x3f2902(0x41b),'strokeLinecap':_0x3f2902(0x2e6),'strokeLinejoin':_0x3f2902(0x2e6),'strokeWidth':1.3}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':'currentColor','d':'m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','strokeLinecap':_0x3f2902(0x2e6),'strokeLinejoin':_0x3f2902(0x2e6),'strokeWidth':1.3}}]},_0x1c5f31=(0x0,_0xfbce25[_0x3f2902(0x354)])(function(_0x50fcb2,_0x1aca71){const _0x5ec5ff=_0x3f2902;return(0x0,_0xfbce25[_0x5ec5ff(0x10f)])(_0x332f0f,Object[_0x5ec5ff(0x34d)]({},_0x50fcb2,{'id':'object-layers-icon','ref':_0x1aca71,'icon':_0x23f5b7}));});_0x1c5f31[_0x3f2902(0x27d)]=_0x3f2902(0x287);let _0x10b39c={'tag':_0x3f2902(0x401),'attrs':{'xmlns':_0x3f2902(0x301),'fill':_0x3f2902(0xbf),'viewBox':_0x3f2902(0x279),'width':_0x3f2902(0x3cc),'height':'1em'},'children':[{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':'currentColor','d':'M13.5\x207V4.29412C13.5\x203.5794\x2012.8679\x203\x2012\x203H2.57143C1.70356\x203\x201.5\x203.5794\x201.5\x204.29412V7V10C1.5\x2010.7147\x201.70356\x2011\x202.57143\x2011H7.71429','strokeLinecap':_0x3f2902(0x2e6),'strokeLinejoin':'round','strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x3f2902(0x17d),'d':'M4.2\x205.5H10.5','strokeLinecap':_0x3f2902(0x2e6),'strokeWidth':1.2}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':_0x3f2902(0x17d),'d':'M4.2\x208.3H6.8','strokeLinecap':_0x3f2902(0x2e6),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x3f2902(0x17d),'d':'M11.5565\x208H12.4435L12.913\x208.78261L13.8\x208.57391L14.4261\x209.2L14.2174\x2010.087L15\x2010.5565V11.4435L14.2174\x2011.913L14.4261\x2012.8L13.8\x2013.4261L12.913\x2013.2174L12.4435\x2014H11.5565L11.087\x2013.2174L10.2\x2013.4261L9.57391\x2012.8L9.78261\x2011.913L9\x2011.4435V10.5565L9.78261\x2010.087L9.57391\x209.2L10.2\x208.57391L11.087\x208.78261L11.5565\x208Z','strokeLinejoin':_0x3f2902(0x2e6)}},{'tag':_0x3f2902(0x1c4),'attrs':{'stroke':'currentColor','d':_0x3f2902(0x9a)}}]},_0x4bbaa0=(0x0,_0xfbce25[_0x3f2902(0x354)])(function(_0x5d073e,_0x38ffba){const _0x431390=_0x3f2902;return(0x0,_0xfbce25['createElement'])(_0x332f0f,Object[_0x431390(0x34d)]({},_0x5d073e,{'id':_0x431390(0x3fc),'ref':_0x38ffba,'icon':_0x10b39c}));});_0x4bbaa0[_0x3f2902(0x27d)]=_0x3f2902(0x278);let _0x200c7e={'tag':_0x3f2902(0x401),'attrs':{'xmlns':_0x3f2902(0x301),'fill':_0x3f2902(0xbf),'viewBox':_0x3f2902(0xfb),'width':'1em','height':_0x3f2902(0x3cc)},'children':[{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0x413)}},{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0xa4),'fillRule':'evenodd','clipRule':_0x3f2902(0x133)}},{'tag':_0x3f2902(0x1c4),'attrs':{'fill':_0x3f2902(0x17d),'d':_0x3f2902(0x89),'fillRule':_0x3f2902(0x133),'clipRule':_0x3f2902(0x133)}}]},_0x5a6959=(0x0,_0xfbce25[_0x3f2902(0x354)])(function(_0x273ca3,_0x320c1a){const _0x449c53=_0x3f2902;return(0x0,_0xfbce25[_0x449c53(0x10f)])(_0x332f0f,Object[_0x449c53(0x34d)]({},_0x273ca3,{'id':_0x449c53(0x75),'ref':_0x320c1a,'icon':_0x200c7e}));});_0x5a6959[_0x3f2902(0x27d)]=_0x3f2902(0x394);function _0x1a0c1f(_0x31e947){const _0x12d593=_0x3f2902;return _0x31e947[_0x12d593(0x27f)]()||void 0x0;}function _0x22f07a(_0xaa17e2,_0x288d0c,_0x2ba079){const _0x1817db=_0x3f2902;var _0x17da5b;return((_0x17da5b=_0xaa17e2[_0x1817db(0x27e)])==null?void 0x0:_0x17da5b[_0x1817db(0x27f)]())||(0x0,_0x22c8d6['getObjectListPanelTypeName'])(_0x2ba079,(0x0,_0x52eb00[_0x1817db(0x223)])(_0xaa17e2['drawingType']))+'\x20'+(_0x288d0c+0x1);}function _0x223477(){const _0x24ef3c=_0x3f2902;var _0x3eeba9;let _0x21978c=(0x0,_0x321ff0[_0x24ef3c(0xae)])(_0x233421['LocaleService']),_0x5e5b73=(0x0,_0x321ff0[_0x24ef3c(0xae)])(_0x233421[_0x24ef3c(0x32d)]),_0x36b8f8=(0x0,_0x321ff0[_0x24ef3c(0xae)])(_0x233421[_0x24ef3c(0x1c5)]),_0x3b5696=(0x0,_0x321ff0['useDependency'])(_0x5c75db[_0x24ef3c(0x395)]),_0x2d2611=(0x0,_0x321ff0[_0x24ef3c(0xae)])(_0x511ed7[_0x24ef3c(0x255)]),_0x4fb87d=(0x0,_0x321ff0[_0x24ef3c(0xae)])(_0x1877f7[_0x24ef3c(0x2d3)]),[,_0x5dcee4]=(0x0,_0xfbce25[_0x24ef3c(0x3e9)])(_0x16e764=>_0x16e764+0x1,0x0),_0x4e1f74=_0x36b8f8['getCurrentUnitOfType'](_0x233421[_0x24ef3c(0x370)][_0x24ef3c(0x1ec)]),_0x3835c8=(_0x4e1f74==null?void 0x0:_0x4e1f74[_0x24ef3c(0x2f1)]())??'',_0x169e0e=(_0x4e1f74==null||(_0x3eeba9=_0x4e1f74['getActiveSheet']())==null?void 0x0:_0x3eeba9[_0x24ef3c(0xe7)]())??'',_0x50b8e2=(0x0,_0x321ff0[_0x24ef3c(0x408)])(()=>_0x2d2611['focus$'],_0x2d2611[_0x24ef3c(0x2b2)](),!0x1,[_0x2d2611]);(0x0,_0xfbce25[_0x24ef3c(0x162)])(()=>{const _0x56a76e=_0x24ef3c;let _0x55c5e4=_0x5e5b73[_0x56a76e(0x2e8)](()=>_0x5dcee4());return()=>_0x55c5e4[_0x56a76e(0x358)]();},[_0x5e5b73]);let _0x214497=(0x0,_0xfbce25[_0x24ef3c(0x15e)])(()=>(0x0,_0x22c8d6[_0x24ef3c(0x3c5)])(_0x21978c),[_0x21978c]),_0x525f0a=_0x3835c8&&_0x169e0e?_0x3b5696[_0x24ef3c(0x11e)](_0x3835c8,_0x169e0e):{},_0x5a53e8=(_0x3835c8&&_0x169e0e?_0x3b5696[_0x24ef3c(0x2ee)](_0x3835c8,_0x169e0e):[])['map'](_0x579be2=>_0x525f0a[_0x579be2])[_0x24ef3c(0x212)](_0xdc6df9=>!!_0xdc6df9)[_0x24ef3c(0xfd)](),_0x2fc978=_0x5a53e8[_0x24ef3c(0x309)]((_0x174d99,_0x508b64)=>(_0x174d99[(0x0,_0x22c8d6[_0x24ef3c(0x147)])(_0x508b64[_0x24ef3c(0x1a6)])]+=0x1,_0x174d99),{'canvas':0x0,'floating':0x0}),_0x3f0964={'canvas':0x0,'floating':0x0},_0x513ea9=_0x5a53e8['map']((_0x2d2d12,_0x3b0d93)=>{const _0x4df6d3=_0x24ef3c;let _0xc92939=(0x0,_0x22c8d6[_0x4df6d3(0x147)])(_0x2d2d12[_0x4df6d3(0x1a6)]),_0x44d910=_0xc92939===_0x22c8d6[_0x4df6d3(0x342)],_0x1e5af4=_0x3f0964[_0xc92939]++;return{'id':_0x2d2d12[_0x4df6d3(0x262)],'name':_0x22f07a(_0x2d2d12,_0x3b0d93,_0x21978c),'description':_0x2d2d12[_0x4df6d3(0x203)],'visible':_0x2d2d12[_0x4df6d3(0x32b)]!==!0x0,'selectable':_0x2d2d12[_0x4df6d3(0xb7)]!==!0x1,'sectionId':_0xc92939,'sectionTitle':_0x44d910?_0x214497[_0x4df6d3(0x2e5)]:_0x214497['sectionCanvas'],'capabilities':_0x44d910?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x44d910&&_0x1e5af4>0x0,'canMoveBackward':!_0x44d910&&_0x1e5af4<_0x2fc978[_0x4df6d3(0x2d4)]-0x1,'canReorder':!_0x44d910};}),_0x28dd78=(0x0,_0xfbce25['useMemo'])(()=>(_0x50b8e2??[])[_0x24ef3c(0x212)](_0x51cbbf=>_0x51cbbf[_0x24ef3c(0x138)]===_0x3835c8&&_0x51cbbf[_0x24ef3c(0x318)]===_0x169e0e)[_0x24ef3c(0x28c)](_0x540b07=>_0x540b07[_0x24ef3c(0x262)]),[_0x50b8e2,_0x169e0e,_0x3835c8]),_0x204d4c=_0x28dd78[_0x28dd78[_0x24ef3c(0xff)]-0x1]??null,_0x4326af=_0x44dfac=>_0x3b5696[_0x24ef3c(0x379)]({'unitId':_0x3835c8,'subUnitId':_0x169e0e,'drawingId':_0x44dfac})??null,_0x58908e=async _0x50eddb=>{const _0x1cdc5b=_0x24ef3c;!_0x3835c8||!_0x50eddb[_0x1cdc5b(0xff)]||await _0x5e5b73['executeCommand'](_0x5c75db[_0x1cdc5b(0x1af)]['id'],{'unitId':_0x3835c8,'drawings':_0x50eddb});},_0x3331fe=async(_0x435689,_0x1f65c0)=>{_0x4326af(_0x435689)&&await _0x58908e([{'unitId':_0x3835c8,'subUnitId':_0x169e0e,'drawingId':_0x435689,..._0x1f65c0}]);},_0x4ace1f=(_0x798bdb,_0x5ca786)=>{const _0x316385=_0x24ef3c;if(!_0x3835c8||!_0x169e0e)return;let _0x301491=_0x5ca786?_0x28dd78[_0x316385(0x19b)](_0x798bdb)?_0x28dd78[_0x316385(0x212)](_0x2b9d0e=>_0x2b9d0e!==_0x798bdb):[..._0x28dd78,_0x798bdb]:[_0x798bdb];_0x5e5b73[_0x316385(0x33f)](_0x511ed7[_0x316385(0x115)]['id'],_0x301491[_0x316385(0x28c)](_0x2c87cc=>({'unitId':_0x3835c8,'subUnitId':_0x169e0e,'drawingId':_0x2c87cc})));let _0x59e3df=_0x301491[_0x301491[_0x316385(0xff)]-0x1];_0x59e3df?(0x0,_0x52eb00[_0x316385(0x1e0)])(_0x4fb87d,{'unitId':_0x3835c8,'subUnitId':_0x169e0e,'drawingId':_0x59e3df}):(0x0,_0x52eb00['clearActiveDrawingObjects'])(_0x4fb87d,_0x3835c8);},_0x5b020d=async(_0x53ed84,_0x256afe)=>{const _0x3adf04=_0x24ef3c;await _0x58908e(_0x53ed84[_0x3adf04(0x28c)](_0x3f63af=>_0x4326af(_0x3f63af))[_0x3adf04(0x212)](_0x255d9f=>!!_0x255d9f)[_0x3adf04(0x212)](_0x5618e4=>_0x5618e4[_0x3adf04(0x32b)]!==!0x0!==_0x256afe)[_0x3adf04(0x28c)](_0xe0406b=>({'unitId':_0x3835c8,'subUnitId':_0x169e0e,'drawingId':_0xe0406b[_0x3adf04(0x262)],'hidden':!_0x256afe})));},_0x14a4c7=async _0x2c08cf=>{let _0x1c6c08=_0x4326af(_0x2c08cf);_0x1c6c08&&await _0x3331fe(_0x2c08cf,{'selectable':_0x1c6c08['selectable']===!0x1&&void 0x0});},_0x406927=async(_0x442c7d,_0x3339ce)=>{var _0x5c4941;let _0x12d13e=_0x1a0c1f(_0x3339ce);(((_0x5c4941=_0x4326af(_0x442c7d))==null?void 0x0:_0x5c4941['name'])??void 0x0)!==_0x12d13e&&await _0x3331fe(_0x442c7d,{'name':_0x12d13e});},_0x7550d=async(_0x516eb4,_0x1397cd)=>{var _0x196572;let _0x15add9=_0x1a0c1f(_0x1397cd);(((_0x196572=_0x4326af(_0x516eb4))==null?void 0x0:_0x196572['description'])??void 0x0)!==_0x15add9&&await _0x3331fe(_0x516eb4,{'description':_0x15add9});},_0x475253=async(_0xa3baee,_0x1adc64)=>{const _0x3e39a4=_0x24ef3c;!_0x3835c8||!_0x169e0e||await _0x5e5b73['executeCommand'](_0x5c75db[_0x3e39a4(0x3a2)]['id'],{'unitId':_0x3835c8,'subUnitId':_0x169e0e,'drawingIds':[_0xa3baee],'arrangeType':_0x1adc64});};return!_0x3835c8||!_0x169e0e?(0x0,_0x741200[_0x24ef3c(0x26a)])(_0x24ef3c(0x95),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x214497[_0x24ef3c(0x3fa)]}):(0x0,_0x741200[_0x24ef3c(0x26a)])(_0x22c8d6[_0x24ef3c(0x180)],{'items':_0x513ea9,'selectedIds':_0x28dd78,'focusedId':_0x204d4c,'labels':_0x214497,'onSelect':_0x4ace1f,'onSetVisible':_0x5b020d,'onCommitName':_0x406927,'onCommitDescription':_0x7550d,'onMoveForward':async _0x2d0914=>_0x475253(_0x2d0914,_0x233421[_0x24ef3c(0x298)]['forward']),'onMoveBackward':async _0x1bd7c6=>_0x475253(_0x1bd7c6,_0x233421[_0x24ef3c(0x298)][_0x24ef3c(0x205)]),'onToggleSelectable':_0x14a4c7});}let _0x11468c=class{constructor(_0x3e4d07){const _0x413dbf=_0x3f2902;this[_0x413dbf(0x367)]=_0x3e4d07;}[_0x3f2902(0x9b)](_0x3272f5,_0x51861d){const _0x147030=_0x3f2902;let _0x5e9800=this['_renderManagerService'][_0x147030(0x10d)](_0x3272f5[_0x147030(0x138)]),_0x33894f=_0x5e9800==null?void 0x0:_0x5e9800[_0x147030(0x15a)];if(!_0x33894f)return;let _0x27eadd=(0x0,_0x511ed7['getDrawingShapeKeyByDrawingSearch'])(_0x3272f5),_0x1d061b=_0x33894f[_0x147030(0x35d)](_0x27eadd);_0x1d061b==null||_0x1d061b[_0x147030(0x1b4)](_0x51861d);}};_0x11468c=_0x56683a([_0x3eb327(0x0,_0x1877f7[_0x3f2902(0x2d3)])],_0x11468c);function _0x237c51(){const _0x209f0e=_0x3f2902;let _0x1a92d5=(0x0,_0x321ff0[_0x209f0e(0xae)])(_0x511ed7[_0x209f0e(0x255)]),_0x58c45f=(0x0,_0x321ff0['useObservable'])(()=>_0x1a92d5[_0x209f0e(0x2f7)],_0x1a92d5[_0x209f0e(0x2b2)](),!0x1,[_0x1a92d5]);return _0x58c45f['length']===0x0?null:(0x0,_0x741200[_0x209f0e(0x26a)])(_0x209f0e(0x95),{'children':(0x0,_0x741200[_0x209f0e(0x2b1)])(_0x209f0e(0x95),{'className':_0x209f0e(0x12a),'children':[(0x0,_0x741200['jsx'])(_0x22c8d6[_0x209f0e(0x2f3)],{'drawings':_0x58c45f,'hasCropper':!0x1}),(0x0,_0x741200[_0x209f0e(0x26a)])(_0x50c10c['SheetDrawingAnchor'],{'drawings':_0x58c45f})]})});}function _0xccb8ad(_0x114075){const _0x9b2539=_0x3f2902;let {unitId:_0x4f7be5,subUnitId:_0x3dcdcb,shapeId:_0x19d4b0}=_0x114075,_0x2af090=(0x0,_0x321ff0[_0x9b2539(0xae)])(_0x233421[_0x9b2539(0x32d)]),_0x2fedf2=(0x0,_0x321ff0[_0x9b2539(0xae)])(_0x11468c);return(0x0,_0x741200[_0x9b2539(0x26a)])(_0x52eb00[_0x9b2539(0x15f)],{..._0x114075,'positionEditor':(0x0,_0x741200[_0x9b2539(0x26a)])(_0x237c51,{}),'onUpdateShapeData':(_0x3fabe6,_0x1d66a2)=>{_0x387292(_0x2af090,_0x4f7be5,_0x3dcdcb,_0x19d4b0,_0x3fabe6,_0x1d66a2);},'onUpdateLineShapeData':(_0x573287,_0xc4148f)=>{_0x57bd40(_0x2af090,_0x4f7be5,_0x3dcdcb,_0x19d4b0,_0x573287,_0xc4148f);},'onUpdateShapeFillImage':_0x425bd5=>{const _0x3b6fa9=_0x9b2539;_0x2fedf2[_0x3b6fa9(0x9b)]({'unitId':_0x4f7be5,'subUnitId':_0x3dcdcb,'drawingId':_0x19d4b0},_0x425bd5);}});}function _0x3f530a(_0x23fa69){const _0xf2cdaf=_0x3f2902;let _0x1f4c11=(0x0,_0x321ff0[_0xf2cdaf(0xae)])(_0x52eb00['ShapeFloatingToolbarService']),_0x265eb2=(0x0,_0x321ff0[_0xf2cdaf(0x408)])(()=>_0x1f4c11[_0xf2cdaf(0x1b3)],_0x1f4c11[_0xf2cdaf(0x184)](),!0x1,[_0x1f4c11]),_0x516a3f=_0x23fa69['popup'][_0xf2cdaf(0xba)];return!_0x516a3f||!_0x265eb2?null:(0x0,_0x741200[_0xf2cdaf(0x26a)])(_0x58d8ef,{..._0x516a3f,'canvasElement':_0x23fa69[_0xf2cdaf(0x397)][_0xf2cdaf(0x225)]});}function _0x58d8ef(_0x503cce){const _0x1be9a6=_0x3f2902;let _0x278f34=(0x0,_0x321ff0['useDependency'])(_0x233421[_0x1be9a6(0x32d)]),_0xd49101=(0x0,_0x321ff0['useDependency'])(_0x1d059b['SheetsShapeService']),{unitId:_0x4057da,subUnitId:_0x250827,drawingId:_0x1c5f76,drawingType:_0x45c1cf,shapeType:_0x314af6}=_0x503cce,[_0x4718db,_0x9e5ba9]=(0x0,_0xfbce25[_0x1be9a6(0x145)])(_0x503cce[_0x1be9a6(0x2fc)]),_0x21c821=(0x0,_0xfbce25[_0x1be9a6(0x15e)])(()=>(0x0,_0x52eb00['getTextStyle'])(_0x4718db),[_0x4718db]),_0x244dcd=(0x0,_0xfbce25[_0x1be9a6(0x15e)])(()=>(0x0,_0x52eb00[_0x1be9a6(0x1d0)])(_0x4718db),[_0x4718db]);(0x0,_0xfbce25[_0x1be9a6(0x162)])(()=>{const _0x163158=_0x1be9a6;let _0x5c7188=_0x278f34[_0x163158(0x2e8)](_0x5f407d=>{const _0x17aed8=_0x163158;if(_0x5f407d['id']!==_0x1d059b[_0x17aed8(0x356)]['id'])return;let _0x5b3e78=_0xd49101[_0x17aed8(0x377)](_0x4057da,_0x250827,_0x1c5f76);_0x5b3e78&&_0x9e5ba9(_0x5b3e78);});return()=>_0x5c7188[_0x163158(0x358)]();},[_0x278f34,_0x1c5f76,_0xd49101,_0x250827,_0x4057da]);let _0x1dc8f6=_0x2aa548=>{_0x9e5ba9(_0x3f2757=>({..._0x3f2757,..._0x2aa548}));},_0x256d8d=_0x23e67d=>{const _0x4774fb=_0x1be9a6;let _0x44de08=(0x0,_0x52eb00[_0x4774fb(0x396)])(_0x4718db,_0x23e67d);_0x387292(_0x278f34,_0x4057da,_0x250827,_0x1c5f76,{'oldShapeData':{'shapeText':_0x4718db['shapeText']}},_0x44de08),_0x1dc8f6(_0x44de08);},_0x49e7e2=(0x0,_0x52eb00[_0x1be9a6(0x330)])({'hostType':_0x233421[_0x1be9a6(0x370)]['UNIVER_SHEET'],'unitId':_0x4057da,'subUnitId':_0x250827,'shapeId':_0x1c5f76,'shapeData':_0x4718db,'onUpdateBinding':_0x143a9b=>{const _0x5106f2=_0x1be9a6;let _0x3e73c5={'formulaBinding':_0x143a9b};_0x387292(_0x278f34,_0x4057da,_0x250827,_0x1c5f76,{'oldShapeData':{'formulaBinding':_0x4718db[_0x5106f2(0x17f)]}},_0x3e73c5),_0x1dc8f6(_0x3e73c5);}});return(0x0,_0x741200['jsxs'])(_0x741200[_0x1be9a6(0x177)],{'children':[(0x0,_0x741200['jsx'])(_0x52eb00[_0x1be9a6(0x15c)],{'canvasElement':_0x503cce[_0x1be9a6(0x225)],'shapeData':_0x4718db,'shapeType':_0x314af6,'textStyle':{'ff':_0x136056['ShapeDefaultConfig'][_0x1be9a6(0x3bb)][_0x1be9a6(0x93)],'fs':_0x136056['ShapeDefaultConfig'][_0x1be9a6(0x3bb)][_0x1be9a6(0x207)],'cl':{'rgb':_0x136056['ShapeDefaultConfig']['shapeText'][_0x1be9a6(0x221)]},..._0x21c821},'textModel':_0x244dcd?{'ha':_0x244dcd['ha']??_0x233421[_0x1be9a6(0x37a)]['LEFT'],'va':_0x244dcd['va']??_0x233421[_0x1be9a6(0x2fb)][_0x1be9a6(0x170)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x136056[_0x1be9a6(0x288)][_0x1be9a6(0x40a)],'defaultGradientEndColor':_0x136056[_0x1be9a6(0x288)][_0x1be9a6(0x1f5)],'defaultStrokeColor':_0x136056['ShapeDefaultConfig'][_0x1be9a6(0x350)],'extensionGroups':_0x49e7e2[_0x1be9a6(0x19a)],'onUpdateShapeData':(_0x42e3b7,_0x360d91)=>{_0x387292(_0x278f34,_0x4057da,_0x250827,_0x1c5f76,_0x42e3b7,_0x360d91),_0x360d91&&_0x1dc8f6(_0x360d91);},'onUpdateText':_0x256d8d,'onOpenPanel':()=>{_0x278f34['executeCommand'](_0x3aa2f1['id'],{'unitId':_0x4057da,'subUnitId':_0x250827,'drawingId':_0x1c5f76});},'onDelete':()=>{const _0x45b51c=_0x1be9a6;_0x278f34[_0x45b51c(0x2aa)](_0x5c75db[_0x45b51c(0x2ac)]['id'],{'unitId':_0x4057da,'drawings':[{'unitId':_0x4057da,'subUnitId':_0x250827,'drawingId':_0x1c5f76,'drawingType':_0x45c1cf}]});}}),_0x49e7e2[_0x1be9a6(0x254)]]});}var _0x5b9f77=class extends _0x233421[_0x3f2902(0xc8)]{constructor(..._0x22e6d2){const _0x570c56=_0x3f2902;super(..._0x22e6d2),_0xdc22ec(this,_0x570c56(0xe9),new _0x17772c[(_0x570c56(0x38f))](null)),_0xdc22ec(this,_0x570c56(0x1bd),this[_0x570c56(0xe9)][_0x570c56(0x238)]()),_0xdc22ec(this,_0x570c56(0x22e),new _0x17772c[(_0x570c56(0x38f))](!0x1)),_0xdc22ec(this,_0x570c56(0x1c2),this['_onSavingEditorData$']['asObservable']());}[_0x3f2902(0x358)](){const _0x433eec=_0x3f2902;this[_0x433eec(0xe9)][_0x433eec(0xee)](null),this[_0x433eec(0xe9)][_0x433eec(0x37e)](),this[_0x433eec(0x22e)]['next'](!0x1),this['_onSavingEditorData$'][_0x433eec(0x37e)](),super[_0x433eec(0x358)]();}[_0x3f2902(0x251)](_0x139878){const _0x5accfa=_0x3f2902;this[_0x5accfa(0xe9)][_0x5accfa(0xee)](_0x139878),_0x139878??this[_0x5accfa(0x22e)][_0x5accfa(0xee)](!0x1);}[_0x3f2902(0x329)](_0xa51508){const _0x1e69dd=_0x3f2902;this[_0x1e69dd(0x22e)][_0x1e69dd(0xee)](_0xa51508);}['getEditing'](){const _0x18fcad=_0x3f2902;return this[_0x18fcad(0xe9)][_0x18fcad(0x2d5)]();}[_0x3f2902(0x244)](_0x855f50){const _0x1703ac=_0x3f2902;this[_0x1703ac(0x86)]()&&(this[_0x1703ac(0x329)](!0x0),requestAnimationFrame(()=>{const _0x6a620=_0x1703ac;this[_0x6a620(0x251)](null);}));}[_0x3f2902(0x18e)](){const _0x363abd=_0x3f2902;this[_0x363abd(0x86)]()&&this[_0x363abd(0x251)](null);}};function _0x1921ca(_0x11a7d2){return!!_0x11a7d2&&'axisAlignSheetTransform'in _0x11a7d2&&'sheetTransform'in _0x11a7d2;}let _0x15abef=(0x0,_0xfbce25[_0x3f2902(0x292)])(()=>{const _0x26deae=_0x3f2902;let _0x337099=(0x0,_0x321ff0[_0x26deae(0xae)])(_0x5b9f77),_0x144bbb=(0x0,_0x321ff0[_0x26deae(0xae)])(_0x1d059b['SheetsShapeService']),_0x43cf4a=(0x0,_0x321ff0[_0x26deae(0xae)])(_0x511ed7[_0x26deae(0x255)]),_0x4103f7=(0x0,_0x321ff0[_0x26deae(0xae)])(_0x233421[_0x26deae(0x32d)]),_0x1b7123=(0x0,_0x321ff0[_0x26deae(0xae)])(_0x321ff0[_0x26deae(0x36f)]),_0x50001a=(0x0,_0x321ff0[_0x26deae(0xae)])(_0x1877f7[_0x26deae(0x2d3)]);return(0x0,_0x741200[_0x26deae(0x26a)])(_0x52eb00['ShapeTextEditorContainer'],{'adapter':(0x0,_0xfbce25[_0x26deae(0x15e)])(()=>({'getShapeModel':(_0x110057,_0xc84669,_0x2ea65b)=>_0x144bbb[_0x26deae(0xd1)](_0x110057,_0xc84669,_0x2ea65b),'getShapeData':(_0x6eab81,_0x2c6046,_0xb5f905)=>_0x144bbb[_0x26deae(0x377)](_0x6eab81,_0x2c6046,_0xb5f905),'getDrawingTransform':(_0x5872a5,_0x57c6d2,_0x384ab0)=>{const _0x207b53=_0x26deae;let _0x4f7d3c=_0x43cf4a[_0x207b53(0x379)]({'unitId':_0x5872a5,'subUnitId':_0x57c6d2,'drawingId':_0x384ab0});return _0x4f7d3c==null?void 0x0:_0x4f7d3c[_0x207b53(0x343)];},'updateShapeText':({unitId:_0x396d1e,subUnitId:_0x17dee4,shapeId:_0x1b311f,shapeText:_0x178d49,oldShapeText:_0x37fb21,hostSize:_0x5e0412})=>{const _0x353342=_0x26deae;_0x1b7123[_0x353342(0x1ae)](_0x396d1e,()=>{const _0x572b22=_0x353342;var _0xf3b1d5;let _0x38aa95=_0x4103f7[_0x572b22(0x33f)](_0xacbd3['id'],{'unitId':_0x396d1e,'subUnitId':_0x17dee4,'shapeId':_0x1b311f,'shapeData':{'shapeText':_0x178d49},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x37fb21}}});if(!_0x38aa95||!_0x5e0412)return _0x38aa95;let _0x3ea5af=_0x43cf4a[_0x572b22(0x379)]({'unitId':_0x396d1e,'subUnitId':_0x17dee4,'drawingId':_0x1b311f}),_0x493eee=_0x3ea5af==null?void 0x0:_0x3ea5af[_0x572b22(0x343)];if(!_0x1921ca(_0x3ea5af)||!_0x493eee)return!0x1;let _0xc79dcf={..._0x493eee,'width':_0x5e0412['width'],'height':_0x5e0412[_0x572b22(0x3ce)]},_0x373710=(_0xf3b1d5=_0x50001a[_0x572b22(0x10d)](_0x396d1e))==null||(_0xf3b1d5=_0xf3b1d5['with'](_0x2e7926['SheetSkeletonManagerService'])[_0x572b22(0x13a)](_0x17dee4))==null?void 0x0:_0xf3b1d5[_0x572b22(0x423)];return _0x4103f7[_0x572b22(0x33f)](_0x5c75db[_0x572b22(0x1af)]['id'],{'unitId':_0x396d1e,'drawings':[{..._0x3ea5af,'transform':_0xc79dcf,'sheetTransform':_0x373710?(0x0,_0x5c75db[_0x572b22(0x428)])(_0xc79dcf,_0x373710)??_0x3ea5af[_0x572b22(0x1a7)]:_0x3ea5af[_0x572b22(0x1a7)],'axisAlignSheetTransform':_0x373710?(0x0,_0x5c75db[_0x572b22(0x104)])(_0xc79dcf,_0x373710)??_0x3ea5af['axisAlignSheetTransform']:_0x3ea5af['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0xb70b31,subUnitId:_0x147760,shapeId:_0x3e0be8,width:_0x3fdb25,height:_0x5382f0})=>{const _0x1a513f=_0x26deae;var _0x4ccd62;let _0x53e95c=_0x43cf4a[_0x1a513f(0x379)]({'unitId':_0xb70b31,'subUnitId':_0x147760,'drawingId':_0x3e0be8}),_0x3b08b0=_0x53e95c==null?void 0x0:_0x53e95c[_0x1a513f(0x343)];if(!_0x1921ca(_0x53e95c)||!_0x3b08b0)return;let _0x27f4ee={..._0x3b08b0,'width':_0x3fdb25,'height':_0x5382f0},_0x31c9ba=(_0x4ccd62=_0x50001a['getRenderUnitById'](_0xb70b31))==null||(_0x4ccd62=_0x4ccd62[_0x1a513f(0x3ad)](_0x2e7926[_0x1a513f(0x243)])[_0x1a513f(0x13a)](_0x147760))==null?void 0x0:_0x4ccd62[_0x1a513f(0x423)],_0x23551c=_0x31c9ba?(0x0,_0x5c75db[_0x1a513f(0x428)])(_0x27f4ee,_0x31c9ba)??_0x53e95c['sheetTransform']:_0x53e95c['sheetTransform'],_0x218bdc=_0x31c9ba?(0x0,_0x5c75db[_0x1a513f(0x104)])(_0x27f4ee,_0x31c9ba)??_0x53e95c[_0x1a513f(0x31b)]:_0x53e95c[_0x1a513f(0x31b)];_0x4103f7[_0x1a513f(0x2aa)](_0x5c75db[_0x1a513f(0x1af)]['id'],{'unitId':_0xb70b31,'drawings':[{..._0x53e95c,'transform':_0x27f4ee,'sheetTransform':_0x23551c,'axisAlignSheetTransform':_0x218bdc}]});},'allowHostSizeShrink':({unitId:_0x12c595,subUnitId:_0x1c2364,shapeId:_0xef8aa1})=>(0x0,_0x52eb00[_0x26deae(0x357)])(_0x144bbb[_0x26deae(0x377)](_0x12c595,_0x1c2364,_0xef8aa1)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x4103f7,_0x43cf4a,_0x50001a,_0x144bbb,_0x1b7123]),'editingService':_0x337099,'editorUnitId':_0x595c7f,'positionOptions':(0x0,_0xfbce25[_0x26deae(0x15e)])(()=>({'viewportKeys':{'main':_0x1877f7[_0x26deae(0x1f3)][_0x26deae(0x21b)],'leftTop':_0x1877f7[_0x26deae(0x1f3)][_0x26deae(0x233)],'top':_0x1877f7['SHEET_VIEWPORT_KEY'][_0x26deae(0xf5)],'left':_0x1877f7[_0x26deae(0x1f3)][_0x26deae(0x3e1)]},'getSkeleton':(_0x3f57b7,_0x2edea8)=>{const _0x56ff2d=_0x26deae;var _0x380fcc;return((_0x380fcc=_0x3f57b7[_0x56ff2d(0x3ad)](_0x2e7926[_0x56ff2d(0x243)])[_0x56ff2d(0x13a)](_0x2edea8[_0x56ff2d(0x318)]))==null?void 0x0:_0x380fcc['skeleton'])??null;}}),[])});}),_0xcee1d7=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x370552,_0x5ba4e1){const _0x30a6a1=_0x3f2902;super(),this['_componentManager']=_0x370552,this[_0x30a6a1(0x80)]=_0x5ba4e1,this[_0x30a6a1(0x194)](),this[_0x30a6a1(0x128)]();}['_registerIcons'](){const _0x4516eb=_0x3f2902;this[_0x4516eb(0x80)][_0x4516eb(0x375)]('ObjectLayersIcon')||this[_0x4516eb(0x374)](this['_iconManager'][_0x4516eb(0x3ba)]({'ObjectLayersIcon':_0x1c5f31})),this[_0x4516eb(0x80)][_0x4516eb(0x375)](_0x4516eb(0x3fb))||this['disposeWithMe'](this[_0x4516eb(0x80)][_0x4516eb(0x3ba)]({'FlipHorizontalIcon':_0x77be06})),this[_0x4516eb(0x80)][_0x4516eb(0x375)]('FlipVerticalIcon')||this[_0x4516eb(0x374)](this[_0x4516eb(0x80)][_0x4516eb(0x3ba)]({'FlipVerticalIcon':_0x563eec})),this[_0x4516eb(0x80)][_0x4516eb(0x375)](_0x4516eb(0x2e7))||this[_0x4516eb(0x374)](this[_0x4516eb(0x80)][_0x4516eb(0x3ba)]({'BottomIcon':_0x33b9b8})),this[_0x4516eb(0x80)][_0x4516eb(0x375)](_0x4516eb(0x13e))||this[_0x4516eb(0x374)](this[_0x4516eb(0x80)][_0x4516eb(0x3ba)]({'MoveDownIcon':_0x127a4e})),this[_0x4516eb(0x80)][_0x4516eb(0x375)](_0x4516eb(0xf0))||this[_0x4516eb(0x374)](this['_iconManager'][_0x4516eb(0x3ba)]({'MoveUpIcon':_0x5d8224})),this[_0x4516eb(0x80)][_0x4516eb(0x375)](_0x4516eb(0x278))||this[_0x4516eb(0x374)](this[_0x4516eb(0x80)][_0x4516eb(0x3ba)]({'ShapeFormatSettingIcon':_0x4bbaa0})),this[_0x4516eb(0x80)]['has']('TopmostIcon')||this[_0x4516eb(0x374)](this[_0x4516eb(0x80)]['register']({'TopmostIcon':_0x5a6959}));}['_registerComponents'](){const _0x20dfcb=_0x3f2902;this[_0x20dfcb(0x374)](this['_componentManager'][_0x20dfcb(0x3ba)](_0x37b2e5,_0xccb8ad)),this['disposeWithMe'](this[_0x20dfcb(0x10a)]['register'](_0x87f5e4,_0x223477)),this[_0x20dfcb(0x374)](this[_0x20dfcb(0x10a)][_0x20dfcb(0x3ba)](_0xd8fd4a,_0x222dde)),this[_0x20dfcb(0x374)](this[_0x20dfcb(0x10a)][_0x20dfcb(0x3ba)](_0x1ed003,_0x10697a)),this['_componentManager'][_0x20dfcb(0x3dd)](_0x22c8d6[_0x20dfcb(0x1fa)])||this['disposeWithMe'](this[_0x20dfcb(0x10a)][_0x20dfcb(0x3ba)](_0x22c8d6[_0x20dfcb(0x1fa)],_0x3f2edc)),this[_0x20dfcb(0x374)](this[_0x20dfcb(0x10a)][_0x20dfcb(0x3ba)](_0x35f04f,_0x3f530a)),this[_0x20dfcb(0x374)](this['_componentManager'][_0x20dfcb(0x3ba)](_0x496703,_0x5564dd)),this[_0x20dfcb(0x374)](this['_componentManager']['register'](_0x25b2b4,_0x265578)),this[_0x20dfcb(0x374)](this[_0x20dfcb(0x10a)][_0x20dfcb(0x3ba)](_0x82455a,_0x19b102)),this[_0x20dfcb(0x374)](this[_0x20dfcb(0x10a)][_0x20dfcb(0x3ba)](_0x25c378,_0x5a3295)),this['disposeWithMe'](this[_0x20dfcb(0x10a)][_0x20dfcb(0x3ba)](_0x305587,_0x52eb00[_0x20dfcb(0xd2)])),this[_0x20dfcb(0x374)](this[_0x20dfcb(0x10a)][_0x20dfcb(0x3ba)]('SheetShapeTextEditorContainer',_0x15abef));}};_0xcee1d7=_0x56683a([_0x3eb327(0x0,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x321ff0[_0x3f2902(0xd7)])),_0x3eb327(0x1,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x321ff0[_0x3f2902(0x2ea)]))],_0xcee1d7);let _0x1868e3=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x45342a,_0x330c5e,_0x5ed647,_0x50e686,_0x4aef27){const _0xda1862=_0x3f2902;super(),this[_0xda1862(0x339)]=_0x45342a,this[_0xda1862(0xea)]=_0x330c5e,this[_0xda1862(0x367)]=_0x5ed647,this[_0xda1862(0xfc)]=_0x50e686,this[_0xda1862(0x3d8)]=_0x4aef27,_0xdc22ec(this,'_activeImageId',null),_0xdc22ec(this,_0xda1862(0x228),null),_0xdc22ec(this,'_subUnitId',null),_0xdc22ec(this,_0xda1862(0x33c),void 0x0),_0xdc22ec(this,_0xda1862(0x39e),[]),_0xdc22ec(this,_0xda1862(0x3b0),0x0),_0xdc22ec(this,_0xda1862(0x2b7),0x0),_0xdc22ec(this,_0xda1862(0x293),0x0),_0xdc22ec(this,'_baseHeight',0x0),_0xdc22ec(this,_0xda1862(0x2fa),!0x1),_0xdc22ec(this,'_activeAdjustInfo',void 0x0),_0xdc22ec(this,_0xda1862(0x1d5),void 0x0),_0xdc22ec(this,_0xda1862(0x29f),void 0x0),_0xdc22ec(this,_0xda1862(0x144),void 0x0),_0xdc22ec(this,_0xda1862(0x42c),!0x1),this[_0xda1862(0x3e5)](),this[_0xda1862(0x25d)]();}[_0x3f2902(0x27b)](){const _0x12e929=_0x3f2902;this[_0x12e929(0x3f8)]();}[_0x3f2902(0x3d4)](){const _0x498f1b=_0x3f2902;this['_clearControls'](),this[_0x498f1b(0x2f0)](!0x0);}[_0x3f2902(0x359)](_0x184f49,_0x409f1b,_0xa6e3,_0x539e1a){const _0x3e0ff4=_0x3f2902;let _0x313bf1=_0x184f49;if(_0x313bf1!==_0x136056[_0x3e0ff4(0x383)][_0x3e0ff4(0xbd)]&&_0x184f49!==_0x3e0ff4(0xd4))try{let _0x216d3d=new _0x136056[(_0x3e0ff4(0x2bb))](_0x313bf1,'clip-adj-'+_0x184f49);return _0x539e1a&&_0x216d3d[_0x3e0ff4(0x3a8)]({'adjustValues':_0x539e1a},!0x0),_0x216d3d[_0x3e0ff4(0x1ea)]({'width':_0x409f1b,'height':_0xa6e3}),_0x216d3d;}catch{return;}}[_0x3f2902(0xb1)](_0x399f03,_0x1f96b4,_0x55eb86){const _0xb3c64=_0x3f2902;let _0x2f056e={'unitId':_0x399f03,'subUnitId':_0x1f96b4,'drawingId':_0x55eb86},_0x2bd5d4=this[_0xb3c64(0xea)][_0xb3c64(0x379)](_0x2f056e);if(!(!_0x2bd5d4||_0x2bd5d4[_0xb3c64(0x1a6)]!==_0x233421[_0xb3c64(0x2d0)][_0xb3c64(0x389)]))return _0x2bd5d4;}[_0x3f2902(0x338)](_0x43e9d0,_0x222800,_0x2b2382){const _0x35c9e9=_0x3f2902;let _0x4b4fe9=this[_0x35c9e9(0x367)]['getRenderUnitById'](_0x43e9d0);if(!_0x4b4fe9)return;let {scene:_0x191645}=_0x4b4fe9,_0x2ae551=(0x0,_0x511ed7[_0x35c9e9(0x409)])({'unitId':_0x43e9d0,'subUnitId':_0x222800,'drawingId':_0x2b2382}),_0x27d1b4=_0x191645[_0x35c9e9(0x16b)](_0x2ae551);if(_0x27d1b4 instanceof _0x1877f7[_0x35c9e9(0x3a1)]){let _0x37e771=_0x27d1b4[_0x35c9e9(0x26e)];if(_0x37e771)return{'prstGeom':_0x37e771,'adjustValues':_0x27d1b4[_0x35c9e9(0x31e)]};}}['_createControls'](_0x17f0b0=!0x1){const _0x5af80b=_0x3f2902;if(!this[_0x5af80b(0x228)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x4488f8=this[_0x5af80b(0x367)][_0x5af80b(0x10d)](this[_0x5af80b(0x228)]);if(!_0x4488f8||!_0x4488f8[_0x5af80b(0x3ad)](_0x2e7926['SheetSkeletonManagerService'])[_0x5af80b(0x231)]())return;let {scene:_0x42fc72}=_0x4488f8,_0x3bb4cd=this[_0x5af80b(0xb1)](this[_0x5af80b(0x228)],this[_0x5af80b(0x1ad)],this[_0x5af80b(0xf8)]);if(!_0x3bb4cd)return;let {transform:_0x1aba3a}=_0x3bb4cd;if(!_0x1aba3a)return;let {left:_0x29af07,top:_0x4b0190,width:_0x4f4acd,height:_0x53a33f,flipX:_0x1b4002,flipY:_0x4af7a5,angle:_0x42035c=0x0}=_0x1aba3a;if(_0x29af07===void 0x0||_0x4b0190===void 0x0)return;let _0x418560=this[_0x5af80b(0x338)](this[_0x5af80b(0x228)],this['_subUnitId'],this[_0x5af80b(0xf8)]);if(!_0x418560)return;if(_0x17f0b0){let _0xf7cf34=this[_0x5af80b(0x359)](_0x418560['prstGeom'],_0x4f4acd||0x0,_0x53a33f||0x0,_0x418560[_0x5af80b(0x12c)]);if(!_0xf7cf34)return;this[_0x5af80b(0x33c)]=_0xf7cf34[_0x5af80b(0x37c)]();}let _0x43e186=this[_0x5af80b(0x33c)];if(!(!_0x43e186||_0x43e186[_0x5af80b(0xff)]===0x0))for(let _0x1531d7=0x0;_0x1531d7<_0x43e186[_0x5af80b(0xff)];_0x1531d7++){let _0x436883=_0x43e186[_0x1531d7],_0xb724ea=_0x436883['x'],_0xdd3bd0=_0x436883['y'];if(_0x1b4002&&(_0xb724ea=(_0x4f4acd||0x0)-_0xb724ea),_0x4af7a5&&(_0xdd3bd0=(_0x53a33f||0x0)-_0xdd3bd0),_0x42035c!==0x0){let _0x288e65=(_0x4f4acd||0x0)/0x2,_0x4a79f5=(_0x53a33f||0x0)/0x2,_0x202dd9=_0x42035c*Math['PI']/0xb4,_0x2451f4=Math[_0x5af80b(0x3e0)](_0x202dd9),_0x1dd726=Math[_0x5af80b(0x17b)](_0x202dd9),_0x5a9456=_0xb724ea-_0x288e65,_0x32a6a9=_0xdd3bd0-_0x4a79f5;_0xb724ea=_0x288e65+(_0x5a9456*_0x2451f4-_0x32a6a9*_0x1dd726),_0xdd3bd0=_0x4a79f5+(_0x5a9456*_0x1dd726+_0x32a6a9*_0x2451f4);}let _0x13e26e={'x':_0xb724ea,'y':_0xdd3bd0,'adjName':_0x436883[_0x5af80b(0x41c)]};this[_0x5af80b(0x29c)](_0x42fc72,_0x13e26e,_0x13e26e[_0x5af80b(0x41c)],_0x29af07,_0x4b0190,this[_0x5af80b(0x228)],this[_0x5af80b(0x1ad)]);}}[_0x3f2902(0x29c)](_0x5d52ac,_0x39295b,_0x51f09c,_0x25e72e,_0x5b3ffc,_0x5ae288,_0x4d399b){const _0x1c5922=_0x3f2902;if(!this['_activeImageId'])return;let _0x238af0=_0x1c5922(0x3ef)+this[_0x1c5922(0xf8)]+'-'+_0x51f09c,_0x75e46=_0x5d52ac[_0x1c5922(0x35d)](_0x238af0);if(_0x75e46){_0x75e46[_0x1c5922(0x3cd)]({'left':_0x39295b['x']+_0x25e72e-_0x136056['ShapeDefaultConfig'][_0x1c5922(0x36e)],'top':_0x39295b['y']+_0x5b3ffc-_0x136056[_0x1c5922(0x288)][_0x1c5922(0x36e)]});return;}let _0x32462f=new _0x1f156b(_0x238af0,{'left':_0x39295b['x']+_0x25e72e-_0x136056[_0x1c5922(0x288)][_0x1c5922(0x36e)],'top':_0x39295b['y']+_0x5b3ffc-_0x136056['ShapeDefaultConfig']['adjHandleSize'],'adjName':_0x51f09c,'shapeId':this['_activeImageId'],'unitId':_0x5ae288,'subUnitId':_0x4d399b,'width':_0x136056[_0x1c5922(0x288)][_0x1c5922(0x36e)]+0x8,'height':_0x136056[_0x1c5922(0x288)][_0x1c5922(0x36e)]+0x8,'zIndex':_0x1877f7[_0x1c5922(0x2c1)]+0x1,'evented':!0x0});this[_0x1c5922(0x39e)]['push'](_0x32462f),this[_0x1c5922(0x295)](_0x32462f,_0x5d52ac,_0x51f09c),_0x5d52ac[_0x1c5922(0x172)](_0x32462f,_0x1877f7[_0x1c5922(0x2c1)]+0x1);}['_clearControls'](){const _0x5cacf5=_0x3f2902;this[_0x5cacf5(0x39e)][_0x5cacf5(0xff)]!==0x0&&(this[_0x5cacf5(0x39e)][_0x5cacf5(0x120)](_0x113bbc=>_0x113bbc[_0x5cacf5(0x358)]()),this[_0x5cacf5(0x39e)]=[]);}[_0x3f2902(0x3ac)](_0x1c83ce,_0x416796){const _0x471342=_0x3f2902;var _0x50defb;let _0x5f346b={'x':0x0,'y':0x0},_0x44cf2f=this['_renderManagerService']['getRenderUnitById'](_0x1c83ce);if(!_0x44cf2f||!_0x44cf2f[_0x471342(0x3ad)](_0x2e7926[_0x471342(0x243)])[_0x471342(0x148)](_0x416796))return _0x5f346b;let _0x231765=_0x44cf2f['with'](_0x2e7926[_0x471342(0x1e7)]),_0x589b7b=_0x231765==null?void 0x0:_0x231765[_0x471342(0x9f)]();if(!_0x589b7b)return _0x5f346b;let _0x3cf007=(_0x50defb=this['_univerInstanceService']['getUnit'](_0x1c83ce))==null?void 0x0:_0x50defb[_0x471342(0x34f)](_0x416796);if(!_0x3cf007)return _0x5f346b;let _0x1ae684=(0x0,_0x2e7926['getViewportByCell'])(_0x589b7b['sheetViewStartRow'],_0x589b7b[_0x471342(0x224)],_0x44cf2f[_0x471342(0x15a)],_0x3cf007);return _0x1ae684?{'x':_0x1ae684[_0x471342(0x22a)],'y':_0x1ae684[_0x471342(0x25b)]}:_0x5f346b;}[_0x3f2902(0x3ab)](_0x5580fa,_0x1d2cac){const _0xa63ed8=_0x3f2902;var _0x5a28c8;let _0x3c7516=(_0x5a28c8=this[_0xa63ed8(0xfc)][_0xa63ed8(0xaa)](_0x5580fa))==null?void 0x0:_0x5a28c8[_0xa63ed8(0x34f)](_0x1d2cac);return(_0x3c7516==null?void 0x0:_0x3c7516[_0xa63ed8(0x1f8)]())??0x1;}[_0x3f2902(0x295)](_0x32f87b,_0x515427,_0x5e78c9){const _0x5d1f26=_0x3f2902;this[_0x5d1f26(0x374)]((0x0,_0x233421['toDisposable'])(_0x32f87b['onPointerDown$']['subscribeEvent']((_0x345a37,_0x5f0a2a)=>{const _0x142ce3=_0x5d1f26;var _0x1c09a9,_0x59625c,_0x55cbc7;let {unitId:_0x114d8a,subUnitId:_0x134a94,drawingId:_0x548bd}=_0x32f87b[_0x142ce3(0x18f)](),_0x2cd835=this['_getImageDrawingInfo'](_0x114d8a,_0x134a94,_0x548bd);if(!(_0x2cd835!=null&&_0x2cd835[_0x142ce3(0x343)]))return;let {left:_0x45a3f5,top:_0x1b37c3,width:_0x4464e6,height:_0x1075e2}=_0x2cd835[_0x142ce3(0x343)];this['_baseLeft']=_0x45a3f5||0x0,this[_0x142ce3(0x2b7)]=_0x1b37c3||0x0,this[_0x142ce3(0x293)]=_0x4464e6||0x0,this[_0x142ce3(0x22f)]=_0x1075e2||0x0;let _0x3942fb=!!((_0x1c09a9=_0x2cd835['transform'])!=null&&_0x1c09a9[_0x142ce3(0x236)]),_0x4c207e=!!((_0x59625c=_0x2cd835[_0x142ce3(0x343)])!=null&&_0x59625c[_0x142ce3(0x90)]),_0x2eb804=((_0x55cbc7=_0x2cd835['transform'])==null?void 0x0:_0x55cbc7[_0x142ce3(0x24d)])||0x0,_0x5eb808=this[_0x142ce3(0x338)](_0x114d8a,_0x134a94,_0x548bd);if(!_0x5eb808)return;let _0x3c88d2=this[_0x142ce3(0x359)](_0x5eb808[_0x142ce3(0x26e)],this['_baseWidth'],this[_0x142ce3(0x22f)],_0x5eb808[_0x142ce3(0x12c)]);if(!_0x3c88d2||(this[_0x142ce3(0x1d5)]=_0x3c88d2,this['_activeAdjustInfo']=_0x3c88d2[_0x142ce3(0xbb)](_0x5e78c9),!this[_0x142ce3(0xc9)]))return;this[_0x142ce3(0x2fa)]=!0x0,_0x515427['disableObjectsEvent']();let _0x190c3e=_0x5eb808['prstGeom'];this['_adjHandlerPointerMove']=_0x515427[_0x142ce3(0x1b0)][_0x142ce3(0x297)]((_0x4dbe2d,_0x2a97df)=>{const _0x4102fe=_0x142ce3;if(!this[_0x4102fe(0x2fa)])return;let {offsetX:_0xcc5a46,offsetY:_0x57e589}=_0x4dbe2d,_0x4fca69=this['_activeAdjustInfo'];if(!this[_0x4102fe(0x1d5)]||!_0x4fca69)return;_0x515427[_0x4102fe(0xd5)](),_0x515427[_0x4102fe(0x310)](_0x1877f7[_0x4102fe(0x190)][_0x4102fe(0x242)]);let _0x59411a={'left':0x0,'top':0x0,'width':this[_0x4102fe(0x293)],'height':this[_0x4102fe(0x22f)]},_0x1b3afd=this[_0x4102fe(0x3ac)](_0x114d8a,_0x134a94),_0xd0dbd7=this[_0x4102fe(0x3ab)](_0x114d8a,_0x134a94),_0x595609=_0xcc5a46/_0xd0dbd7+_0x1b3afd['x']-this['_baseLeft'],_0x138dcf=_0x57e589/_0xd0dbd7+_0x1b3afd['y']-this[_0x4102fe(0x2b7)];if(_0x2eb804!==0x0){let _0x40a2e5=this[_0x4102fe(0x293)]/0x2,_0x3826a5=this['_baseHeight']/0x2,_0xdf11e8=_0x2eb804*Math['PI']/0xb4,_0x233025=Math[_0x4102fe(0x3e0)](_0xdf11e8),_0x389723=Math['sin'](_0xdf11e8),_0x57c665=_0x595609-_0x40a2e5,_0x313f40=_0x138dcf-_0x3826a5;_0x595609=_0x40a2e5+(_0x57c665*_0x233025+_0x313f40*_0x389723),_0x138dcf=_0x3826a5+(-_0x57c665*_0x389723+_0x313f40*_0x233025);}_0x3942fb&&(_0x595609=this['_baseWidth']-_0x595609),_0x4c207e&&(_0x138dcf=this[_0x4102fe(0x22f)]-_0x138dcf);let _0xcc4e9f=this[_0x4102fe(0x1d5)][_0x4102fe(0x22d)](_0x59411a,{'x':_0x595609,'y':_0x138dcf},_0x4fca69,_0x3942fb,_0x4c207e);if(Object['keys'](_0xcc4e9f)[_0x4102fe(0xff)]!==0x0){for(let [_0x218696,_0x54b95d]of Object['entries'](_0xcc4e9f))this[_0x4102fe(0x1d5)][_0x4102fe(0x3c4)](_0x218696,_0x54b95d);this[_0x4102fe(0x1d5)][_0x4102fe(0x1ea)]({'width':this[_0x4102fe(0x293)],'height':this['_baseHeight']}),this[_0x4102fe(0x314)](_0x114d8a,_0x134a94,_0x548bd,_0xcc4e9f),this['_activeAdjustPointList']=this[_0x4102fe(0x1d5)][_0x4102fe(0x37c)](),this['_createControls'](),_0x2a97df[_0x4102fe(0x1b9)]();}}),this[_0x142ce3(0x144)]=_0x515427[_0x142ce3(0xa7)][_0x142ce3(0x297)]((_0x323cbd,_0x1cb7ff)=>{const _0x39a7ef=_0x142ce3;if(this[_0x39a7ef(0x29f)][_0x39a7ef(0x146)](),this[_0x39a7ef(0x144)][_0x39a7ef(0x146)](),_0x515427[_0x39a7ef(0x387)](),this[_0x39a7ef(0x1d5)]){let _0x5ea410=this[_0x39a7ef(0x1d5)][_0x39a7ef(0x35e)](),_0x364650={};for(let _0x196f61 of _0x5ea410){let _0x521588=this[_0x39a7ef(0x1d5)][_0x39a7ef(0x37f)](_0x196f61);_0x521588!==void 0x0&&(_0x364650[_0x196f61]=_0x521588);}this[_0x39a7ef(0x3d8)][_0x39a7ef(0x117)](_0x114d8a,_0x134a94,_0x548bd,_0x190c3e,_0x364650);}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x39a7ef(0x2fa)]=!0x1,_0x1cb7ff[_0x39a7ef(0x1b9)](),_0x515427[_0x39a7ef(0x3c9)]();}),_0x5f0a2a[_0x142ce3(0x1b9)]();})));}[_0x3f2902(0x314)](_0x2c6a7f,_0xe6fa36,_0x45e228,_0x1618dd){const _0x1eb52d=_0x3f2902;let _0x2a23d6=this[_0x1eb52d(0x367)]['getRenderUnitById'](_0x2c6a7f);if(!_0x2a23d6)return;let {scene:_0x4b91db}=_0x2a23d6,_0x2eb192=(0x0,_0x511ed7[_0x1eb52d(0x409)])({'unitId':_0x2c6a7f,'subUnitId':_0xe6fa36,'drawingId':_0x45e228}),_0x40cc5e=_0x4b91db[_0x1eb52d(0x16b)](_0x2eb192);if(_0x40cc5e instanceof _0x1877f7['Image']){let _0x5a6326=_0x40cc5e[_0x1eb52d(0x31e)]??{};_0x40cc5e[_0x1eb52d(0x335)]({..._0x5a6326,..._0x1618dd}),_0x40cc5e[_0x1eb52d(0xb9)](!0x0);}}['_registerMoveHandler'](){const _0x2d601b=_0x3f2902;let _0x3ea3d8=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x233421[_0x2d601b(0x370)]['UNIVER_SHEET']);this[_0x2d601b(0x374)](_0x3ea3d8[_0x2d601b(0x3de)]((0x0,_0x17772c[_0x2d601b(0x1cd)])(_0x59fca1=>_0x59fca1?_0x59fca1[_0x2d601b(0x3c7)][_0x2d601b(0x3de)]((0x0,_0x17772c['switchMap'])(_0x17d4a9=>{const _0x21f32e=_0x2d601b;if(!_0x17d4a9)return _0x17772c[_0x21f32e(0xf7)];let _0x453c5d=_0x59fca1['getUnitId'](),_0x59a919=this[_0x21f32e(0x367)]['getRenderUnitById'](_0x453c5d),_0x138bbb=_0x59a919==null?void 0x0:_0x59a919[_0x21f32e(0x15a)];return _0x138bbb?(0x0,_0x17772c['of'])(_0x138bbb):_0x17772c['EMPTY'];})):_0x17772c[_0x2d601b(0xf7)]))[_0x2d601b(0x94)](_0x93943=>{const _0x3bf177=_0x2d601b;let _0x2453d3=_0x93943[_0x3bf177(0x281)]();this[_0x3bf177(0x374)](_0x93943[_0x3bf177(0x1b0)]['subscribeEvent'](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this['disposeWithMe'](_0x2453d3[_0x3bf177(0x1ba)]['subscribe'](_0x3302cd=>{const _0x5ba7de=_0x3bf177;let {objects:_0x1a9477}=_0x3302cd;if(this[_0x5ba7de(0x2f0)](),_0x1a9477!==null&&_0x1a9477[_0x5ba7de(0x3bd)]===0x1){let _0x496b92=_0x1a9477['values']()['next']()[_0x5ba7de(0x1f6)];_0x496b92 instanceof _0x1877f7['Image']&&_0x496b92[_0x5ba7de(0x26e)]&&(this[_0x5ba7de(0x42c)]=!0x0);}})),this['disposeWithMe'](_0x2453d3[_0x3bf177(0x8d)][_0x3bf177(0x94)](()=>{const _0x2af967=_0x3bf177;this[_0x2af967(0x42c)]&&this[_0x2af967(0x3f8)]();})),this['disposeWithMe'](_0x93943[_0x3bf177(0xa7)]['subscribeEvent'](()=>{const _0x1b60a2=_0x3bf177;this[_0x1b60a2(0x42c)]&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this['disposeWithMe'](_0x2453d3['changeEnd$']['subscribe'](()=>{const _0x3f2cbd=_0x3bf177;if(this[_0x3f2cbd(0x228)]&&this[_0x3f2cbd(0x1ad)]&&this[_0x3f2cbd(0xf8)]){let _0x5ad1c6=this['_getImagePrstGeom'](this['_unitId'],this['_subUnitId'],this[_0x3f2cbd(0xf8)]);if(_0x5ad1c6){var _0x5c3658,_0x73b801;let _0x2095d2=this['_getImageDrawingInfo'](this[_0x3f2cbd(0x228)],this[_0x3f2cbd(0x1ad)],this[_0x3f2cbd(0xf8)]),_0x3c0b24=(_0x2095d2==null||(_0x5c3658=_0x2095d2[_0x3f2cbd(0x343)])==null?void 0x0:_0x5c3658['width'])||0x0,_0xe3fba7=(_0x2095d2==null||(_0x73b801=_0x2095d2[_0x3f2cbd(0x343)])==null?void 0x0:_0x73b801[_0x3f2cbd(0x3ce)])||0x0,_0x30351f=this[_0x3f2cbd(0x359)](_0x5ad1c6[_0x3f2cbd(0x26e)],_0x3c0b24,_0xe3fba7,_0x5ad1c6[_0x3f2cbd(0x12c)]);_0x30351f&&(this[_0x3f2cbd(0x33c)]=_0x30351f[_0x3f2cbd(0x37c)](),this[_0x3f2cbd(0x3f8)](),this['_createControls'](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x51fb38=_0x3f2902;this[_0x51fb38(0x374)](this[_0x51fb38(0xea)][_0x51fb38(0x2f7)][_0x51fb38(0x94)](_0x53cda4=>{const _0x4bb536=_0x51fb38;if(_0x53cda4['length']===0x1){let _0x386770=_0x53cda4[0x0];if(_0x386770[_0x4bb536(0x1a6)]===_0x233421[_0x4bb536(0x2d0)][_0x4bb536(0x389)]){let {unitId:_0x68120d,subUnitId:_0x3dce45,drawingId:_0x2ea141}=_0x386770,_0xbed251=this['_getImagePrstGeom'](_0x68120d,_0x3dce45,_0x2ea141);if(_0xbed251){var _0x1c0699,_0x489f76;this[_0x4bb536(0xf8)]=_0x2ea141,this[_0x4bb536(0x228)]=_0x68120d,this[_0x4bb536(0x1ad)]=_0x3dce45;let _0x2b8236=this[_0x4bb536(0xb1)](_0x68120d,_0x3dce45,_0x2ea141),_0x3fd7ad=(_0x2b8236==null||(_0x1c0699=_0x2b8236[_0x4bb536(0x343)])==null?void 0x0:_0x1c0699[_0x4bb536(0x1e1)])||0x0,_0x19ca9a=(_0x2b8236==null||(_0x489f76=_0x2b8236[_0x4bb536(0x343)])==null?void 0x0:_0x489f76[_0x4bb536(0x3ce)])||0x0,_0x457d53=this[_0x4bb536(0x359)](_0xbed251[_0x4bb536(0x26e)],_0x3fd7ad,_0x19ca9a,_0xbed251[_0x4bb536(0x12c)]);_0x457d53&&(this[_0x4bb536(0x33c)]=_0x457d53[_0x4bb536(0x37c)]()),this[_0x4bb536(0x3f8)](),this[_0x4bb536(0x2f0)](!0x0);}else this['_resetState']();}else this['_resetState']();}else this[_0x4bb536(0x12b)]();})),this[_0x51fb38(0x374)](this[_0x51fb38(0xea)][_0x51fb38(0x2e0)][_0x51fb38(0x94)](_0xe073e2=>{const _0x39dec6=_0x51fb38;if(_0xe073e2[_0x39dec6(0xff)]===0x1){let _0x36fc8c=_0xe073e2[0x0],_0x1f6f6f=this[_0x39dec6(0xea)][_0x39dec6(0x379)](_0x36fc8c);(_0x1f6f6f==null?void 0x0:_0x1f6f6f[_0x39dec6(0x1a6)])===_0x233421[_0x39dec6(0x2d0)]['DRAWING_IMAGE']&&this[_0x39dec6(0xf8)]===_0x36fc8c[_0x39dec6(0x262)]&&(this[_0x39dec6(0x3f8)](),this[_0x39dec6(0x2f0)](!0x0));}})),this['disposeWithMe'](this[_0x51fb38(0xea)][_0x51fb38(0x134)]['subscribe'](_0x3b32a8=>{const _0x38270b=_0x51fb38;for(let _0x166d8a of _0x3b32a8)this['_activeImageId']===_0x166d8a[_0x38270b(0x262)]&&this[_0x38270b(0x12b)]();}));}['_resetState'](){const _0x42547f=_0x3f2902;this[_0x42547f(0xf8)]=null,this['_unitId']=null,this[_0x42547f(0x1ad)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x42547f(0x3f8)]();}};_0x1868e3=_0x56683a([_0x3eb327(0x1,_0x511ed7[_0x3f2902(0x255)]),_0x3eb327(0x2,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1877f7[_0x3f2902(0x2d3)])),_0x3eb327(0x3,_0x233421[_0x3f2902(0x1c5)]),_0x3eb327(0x4,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x30cb49))],_0x1868e3);let _0x81dfc3=_0x3f2902(0x2a9),_0x5b212a=class extends _0x233421['Disposable']{constructor(_0x1c2f3c,_0x2d9936,_0x27d69a,_0x5d4634,_0x4cad36,_0x3acd0e){const _0x48cd6e=_0x3f2902;super(),this[_0x48cd6e(0x23f)]=_0x1c2f3c,this[_0x48cd6e(0x276)]=_0x2d9936,this[_0x48cd6e(0xea)]=_0x27d69a,this['_univerInstanceService']=_0x5d4634,this[_0x48cd6e(0x367)]=_0x4cad36,this[_0x48cd6e(0x3ea)]=_0x3acd0e,_0xdc22ec(this,'_visible',!0x1),this[_0x48cd6e(0x23f)][_0x48cd6e(0x14d)](_0x5b2064),this['disposeWithMe']((0x0,_0x233421[_0x48cd6e(0xf6)])(this[_0x48cd6e(0xea)]['focus$']['subscribe'](()=>this[_0x48cd6e(0x303)]()))),this['_update']();}['dispose'](){const _0x4fef58=_0x3f2902;this[_0x4fef58(0x3ea)][_0x4fef58(0x277)](!0x1,_0x81dfc3),this[_0x4fef58(0x285)](),super[_0x4fef58(0x358)]();}[_0x3f2902(0x303)](){const _0x560bf3=_0x3f2902;var _0x28d74a;let _0x554c17=this[_0x560bf3(0xea)][_0x560bf3(0x2b2)](),_0x595e8f=_0x554c17[_0x560bf3(0xff)]===0x1?_0x554c17[0x0]:void 0x0;if((_0x595e8f==null?void 0x0:_0x595e8f[_0x560bf3(0x1a6)])!==_0x233421[_0x560bf3(0x2d0)][_0x560bf3(0x347)]||this[_0x560bf3(0xfc)][_0x560bf3(0x2b0)](_0x595e8f['unitId'])!==_0x233421[_0x560bf3(0x370)][_0x560bf3(0x1ec)]){this[_0x560bf3(0x3ea)][_0x560bf3(0x277)](!0x1,_0x81dfc3),this[_0x560bf3(0x285)]();return;}let _0x2ec3d2=(0x0,_0x52eb00['resolveShapeContextualRibbonHostMode'])((_0x28d74a=this[_0x560bf3(0x367)][_0x560bf3(0x10d)](_0x595e8f[_0x560bf3(0x138)]))==null?void 0x0:_0x28d74a[_0x560bf3(0x12f)][_0x560bf3(0x324)]())===_0x560bf3(0x2f5);if(this[_0x560bf3(0x3ea)]['setFallbackVisible'](_0x2ec3d2,_0x81dfc3),_0x2ec3d2){this[_0x560bf3(0x285)]();return;}this['_visible']||(this[_0x560bf3(0x280)]=!0x0,this[_0x560bf3(0x276)][_0x560bf3(0x3e6)](_0x115e2d,{'activate':!0x0}));}[_0x3f2902(0x285)](){const _0x3bc582=_0x3f2902;this['_visible']&&(this[_0x3bc582(0x280)]=!0x1,this[_0x3bc582(0x276)][_0x3bc582(0x13f)](_0x115e2d),this['_ribbonService'][_0x3bc582(0x2b4)]([]));}};_0x5b212a=_0x56683a([_0x3eb327(0x0,_0x321ff0[_0x3f2902(0x365)]),_0x3eb327(0x1,_0x321ff0[_0x3f2902(0x35a)]),_0x3eb327(0x2,_0x511ed7[_0x3f2902(0x255)]),_0x3eb327(0x3,_0x233421[_0x3f2902(0x1c5)]),_0x3eb327(0x4,_0x1877f7['IRenderManagerService']),_0x3eb327(0x5,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x52eb00[_0x3f2902(0x307)]))],_0x5b212a);function _0x482bf6(_0x5a0634,_0xc56803,_0x548034,_0x1c9f8a){const _0x1c1252=_0x3f2902;let _0x415f5c=(0x0,_0x511ed7[_0x1c1252(0x405)])(_0x5a0634,_0xc56803,_0x548034),_0x2949ed=[];for(let _0xee94d6 of _0xc56803){let _0x5e80a6=_0x415f5c[_0x1c1252(0x266)]['get'](_0xee94d6[_0x1c1252(0x262)]),_0x594bc7=_0x1c9f8a(_0xee94d6);!_0x5e80a6||!_0x594bc7||_0x2949ed[_0x1c1252(0x33e)]({'targetShapeId':_0x5e80a6,'source':_0x594bc7});}return _0x2949ed;}let _0x50eb13=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x44dcc6,_0x5e4f87,_0x5fb5ee,_0xb6934e){const _0x3774e8=_0x3f2902;super(),this[_0x3774e8(0xfc)]=_0x44dcc6,this[_0x3774e8(0x96)]=_0x5e4f87,this[_0x3774e8(0x1f4)]=_0x5fb5ee,this[_0x3774e8(0xaf)]=_0xb6934e,this[_0x3774e8(0x3a4)]();}[_0x3f2902(0x3a4)](){const _0x4e697d=_0x3f2902;this['disposeWithMe'](this[_0x4e697d(0x96)][_0x4e697d(0x2c4)]({'getMutations':_0x4bb8c7=>{const _0x3a5e5f=_0x4e697d;if(_0x4bb8c7['id']===_0x58820c[_0x3a5e5f(0x38c)]['id']){let _0x166e39=(0x0,_0x58820c[_0x3a5e5f(0x16e)])(this['_univerInstanceService'],_0x4bb8c7[_0x3a5e5f(0xa3)]);if(!_0x166e39)return{'redos':[],'undos':[]};let {unitId:_0x25b518,subUnitId:_0x12653c}=_0x166e39,_0x42e52a=this[_0x3a5e5f(0x1f4)][_0x3a5e5f(0x11e)](_0x25b518,_0x12653c),_0x109e6b=Object[_0x3a5e5f(0x3e3)](_0x42e52a)[_0x3a5e5f(0x212)](_0x3864e9=>_0x3864e9[_0x3a5e5f(0x1a6)]===_0x233421[_0x3a5e5f(0x2d0)][_0x3a5e5f(0x347)]);if(_0x109e6b[_0x3a5e5f(0xff)]===0x0)return{'redos':[],'undos':[]};let _0x28c08e=[],_0x11cf6b=[];for(let _0x7507c3=0x0;_0x7507c3<_0x109e6b[_0x3a5e5f(0xff)];_0x7507c3++){let _0x36cbce=_0x109e6b[_0x7507c3],_0x2f0e7a=this['_sheetsShapeService'][_0x3a5e5f(0xd1)](_0x36cbce[_0x3a5e5f(0x138)],_0x36cbce['subUnitId'],_0x36cbce[_0x3a5e5f(0x262)]);_0x2f0e7a&&(_0x28c08e[_0x3a5e5f(0x33e)]({'id':_0x1d059b[_0x3a5e5f(0x9e)]['id'],'params':{'unitId':_0x25b518,'subUnitId':_0x12653c,'shapeId':_0x36cbce['drawingId']}}),_0x11cf6b['push']({'id':_0x1d059b[_0x3a5e5f(0x84)]['id'],'params':{'unitId':_0x25b518,'subUnitId':_0x12653c,'shapeId':_0x36cbce[_0x3a5e5f(0x262)],'shapeType':_0x2f0e7a['getShapeType'](),'shapeData':JSON[_0x3a5e5f(0x21d)](JSON[_0x3a5e5f(0x2a6)](_0x2f0e7a[_0x3a5e5f(0x35f)]()))}}));}return{'redos':_0x28c08e,'undos':_0x11cf6b};}else{if(_0x4bb8c7['id']===_0x58820c['CopySheetCommand']['id']){let {unitId:_0x5104d7,subUnitId:_0x163a5b,targetSubUnitId:_0x156a54,copyContext:_0x144aa4}=_0x4bb8c7[_0x3a5e5f(0xa3)];if(!_0x5104d7||!_0x163a5b||!_0x156a54)return{'redos':[],'undos':[]};let _0x14e8c9=this['_sheetDrawingService'][_0x3a5e5f(0x11e)](_0x5104d7,_0x163a5b),_0x61bab=Object[_0x3a5e5f(0x3e3)](_0x14e8c9)[_0x3a5e5f(0x212)](_0x4607ac=>_0x4607ac['drawingType']===_0x233421[_0x3a5e5f(0x2d0)]['DRAWING_SHAPE']);if(_0x61bab[_0x3a5e5f(0xff)]===0x0)return{'redos':[],'undos':[]};let _0x2cfac1=_0x482bf6(_0x144aa4,_0x61bab,{'unitId':_0x5104d7,'sourceSubUnitId':_0x163a5b,'targetSubUnitId':_0x156a54},_0x9f7201=>{const _0x2a63e0=_0x3a5e5f;let _0x46a954=this['_sheetsShapeService'][_0x2a63e0(0xd1)](_0x9f7201['unitId'],_0x9f7201['subUnitId'],_0x9f7201['drawingId']);if(_0x46a954)return{'shapeType':_0x46a954[_0x2a63e0(0x3b9)](),'shapeData':JSON['parse'](JSON[_0x2a63e0(0x2a6)](_0x46a954[_0x2a63e0(0x35f)]()))};}),_0xc24653=[],_0x32fec3=[];for(let {targetShapeId:_0x2e7696,source:_0x435d29}of _0x2cfac1)_0xc24653[_0x3a5e5f(0x33e)]({'id':_0x1d059b[_0x3a5e5f(0x84)]['id'],'params':{'unitId':_0x5104d7,'subUnitId':_0x156a54,'shapeId':_0x2e7696,'shapeType':_0x435d29[_0x3a5e5f(0x102)],'shapeData':_0x435d29[_0x3a5e5f(0x2fc)]}}),_0x32fec3[_0x3a5e5f(0x33e)]({'id':_0x1d059b[_0x3a5e5f(0x9e)]['id'],'params':{'unitId':_0x5104d7,'subUnitId':_0x156a54,'shapeId':_0x2e7696}});return{'redos':_0xc24653,'undos':_0x32fec3};}}return{'redos':[],'undos':[]};}}));}};_0x50eb13=_0x56683a([_0x3eb327(0x0,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x233421[_0x3f2902(0x1c5)])),_0x3eb327(0x1,(0x0,_0x233421['Inject'])(_0x58820c[_0x3f2902(0x2ad)])),_0x3eb327(0x2,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x5c75db[_0x3f2902(0x395)])),_0x3eb327(0x3,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1d059b[_0x3f2902(0x267)]))],_0x50eb13);let _0x150877=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x34de78,_0x101f30,_0x18de9e,_0x300c0c,_0x16ed8b){const _0x240e31=_0x3f2902;super(),this[_0x240e31(0x339)]=_0x34de78,this[_0x240e31(0x425)]=_0x101f30,this[_0x240e31(0xea)]=_0x18de9e,this[_0x240e31(0xe4)]=_0x300c0c,this[_0x240e31(0xaf)]=_0x16ed8b,_0xdc22ec(this,_0x240e31(0x403),null),this[_0x240e31(0x25f)](),this[_0x240e31(0x2be)](),this[_0x240e31(0x136)]();}[_0x3f2902(0x25f)](){const _0x18cb04=_0x3f2902;let {scene:_0x367370}=this['_context'];this[_0x18cb04(0x374)](_0x367370[_0x18cb04(0xe6)][_0x18cb04(0x297)](_0x29578e=>{const _0x36200b=_0x18cb04;let {offsetX:_0x17ac54,offsetY:_0xef5ffc}=_0x29578e,_0x17e7d7=_0x367370['pick'](_0x1877f7[_0x36200b(0x247)]['FromArray']([_0x17ac54,_0xef5ffc]));if(_0x17e7d7 instanceof _0x12c822){let _0x431b5d=this[_0x36200b(0xaf)][_0x36200b(0xd1)](_0x17e7d7[_0x36200b(0x138)],_0x17e7d7['subUnitId'],_0x17e7d7[_0x36200b(0xb8)]);if(_0x431b5d!=null&&_0x431b5d[_0x36200b(0x35f)]()[_0x36200b(0x17f)]||(0x0,_0x136056[_0x36200b(0x427)])(this[_0x36200b(0xaf)][_0x36200b(0x3b9)](_0x17e7d7['unitId'],_0x17e7d7[_0x36200b(0x318)],_0x17e7d7[_0x36200b(0xb8)])))return;this[_0x36200b(0x425)][_0x36200b(0x251)]({'visible':!0x0,'unitId':_0x17e7d7[_0x36200b(0x138)],'subUnitId':_0x17e7d7[_0x36200b(0x318)],'shapeId':_0x17e7d7[_0x36200b(0xb8)],'shapeKey':_0x17e7d7[_0x36200b(0x27c)]});}}));}[_0x3f2902(0x2be)](){const _0x7798cd=_0x3f2902;this[_0x7798cd(0x374)](this[_0x7798cd(0xea)][_0x7798cd(0x2f7)][_0x7798cd(0x94)](_0x598a44=>{const _0x36886f=_0x7798cd;if(_0x598a44[_0x36886f(0xff)]===0x1){let _0xda24e0=_0x598a44[0x0],_0x12f04c=this[_0x36886f(0xea)][_0x36886f(0x379)](_0xda24e0);if((_0x12f04c==null?void 0x0:_0x12f04c['drawingType'])===_0x233421['DrawingTypeEnum'][_0x36886f(0x347)]){var _0x41465a;let _0x84f773=this[_0x36886f(0x425)]['getEditing']();if((_0x84f773==null?void 0x0:_0x84f773['shapeId'])===_0xda24e0['drawingId']&&_0x84f773[_0x36886f(0x337)])return;let _0x26f84f=(0x0,_0x136056[_0x36886f(0x427)])(this[_0x36886f(0xaf)][_0x36886f(0x3b9)](_0xda24e0[_0x36886f(0x138)],_0xda24e0['subUnitId'],_0xda24e0['drawingId'])),_0x276995=!!((_0x41465a=this[_0x36886f(0xaf)][_0x36886f(0xd1)](_0xda24e0['unitId'],_0xda24e0['subUnitId'],_0xda24e0[_0x36886f(0x262)]))!=null&&_0x41465a[_0x36886f(0x35f)]()[_0x36886f(0x17f)]);(_0x26f84f||_0x276995)&&this['_shapeTextEditingService'][_0x36886f(0x251)](null);}else this[_0x36886f(0x425)][_0x36886f(0x86)]()&&(this['_shapeTextEditingService'][_0x36886f(0x329)](!0x0),requestAnimationFrame(()=>{const _0x154836=_0x36886f;this[_0x154836(0x425)][_0x154836(0x251)](null);}));}else this['_shapeTextEditingService'][_0x36886f(0x86)]()&&(this[_0x36886f(0x425)][_0x36886f(0x329)](!0x0),requestAnimationFrame(()=>{const _0x11627a=_0x36886f;this[_0x11627a(0x425)]['setEditing'](null);}));})),this['disposeWithMe'](this[_0x7798cd(0xea)][_0x7798cd(0x134)][_0x7798cd(0x94)](_0x119af8=>{const _0x43c1e4=_0x7798cd;let _0x275e49=this[_0x43c1e4(0x425)]['getEditing']();_0x275e49&&_0x119af8['some'](_0x43ea14=>_0x43ea14[_0x43c1e4(0x262)]===_0x275e49[_0x43c1e4(0xb8)])&&this[_0x43c1e4(0x425)][_0x43c1e4(0x251)](null);}));}['_initEditingParams'](){const _0x77f2b2=_0x3f2902;this[_0x77f2b2(0x374)](this[_0x77f2b2(0x425)][_0x77f2b2(0x1bd)][_0x77f2b2(0x94)](_0x48d3d0=>{const _0x42cf66=_0x77f2b2;let {scene:_0x236c16}=this['_context'];if(this[_0x42cf66(0x403)]){let _0x1eb6aa=_0x236c16['getObjectIncludeInGroup'](this[_0x42cf66(0x403)]);_0x1eb6aa&&_0x1eb6aa[_0x42cf66(0x251)](!0x1);}if(_0x48d3d0){let _0x30eb60=!!_0x48d3d0[_0x42cf66(0x337)],_0x4e32b1=_0x236c16[_0x42cf66(0x35d)](_0x48d3d0[_0x42cf66(0x372)]);_0x4e32b1&&(_0x4e32b1[_0x42cf66(0x251)](_0x30eb60),this[_0x42cf66(0x403)]=_0x48d3d0[_0x42cf66(0x372)]),this['_contextService']['setContextValue'](_0x233421['FOCUSING_SHAPE_TEXT_EDITOR'],_0x30eb60);}else this[_0x42cf66(0x403)]=null,this[_0x42cf66(0xe4)]['setContextValue'](_0x233421['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};_0x150877=_0x56683a([_0x3eb327(0x1,(0x0,_0x233421['Inject'])(_0x5b9f77)),_0x3eb327(0x2,_0x511ed7['IDrawingManagerService']),_0x3eb327(0x3,_0x233421[_0x3f2902(0x14b)]),_0x3eb327(0x4,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1d059b[_0x3f2902(0x267)]))],_0x150877);let _0x287bb0=class extends _0x52eb00['ShapeTextFloatMenuRenderControllerBase']{constructor(_0x4e6b2f,_0x625e1f,_0x1d392c,_0x5005e9,_0x1a1a4d,_0x1c7f97,_0x74606c,_0x501541,_0x468b25){super(_0x4e6b2f,_0x625e1f,_0x1d392c,_0x5005e9,_0x1a1a4d,_0x1c7f97,_0x74606c,_0x501541,_0x468b25,{'componentKey':_0x305587,'editorUnitId':_0x595c7f});}};_0x287bb0=_0x56683a([_0x3eb327(0x1,(0x0,_0x233421['Inject'])(_0xfd9a62[_0x3f2902(0x296)])),_0x3eb327(0x2,(0x0,_0x233421['Inject'])(_0x271c4d[_0x3f2902(0x25c)])),_0x3eb327(0x3,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x271c4d[_0x3f2902(0x3c6)])),_0x3eb327(0x4,_0x233421[_0x3f2902(0x32d)]),_0x3eb327(0x5,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x271c4d[_0x3f2902(0x274)])),_0x3eb327(0x6,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x52eb00[_0x3f2902(0x306)])),_0x3eb327(0x7,(0x0,_0x233421[_0x3f2902(0x21a)])(_0xfd9a62[_0x3f2902(0x1b2)])),_0x3eb327(0x8,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x271c4d[_0x3f2902(0x122)]))],_0x287bb0);let _0x546573=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x11d3ab,_0x4c0c99,_0x26423,_0x497a1f,_0x299a78,_0x2471c3){const _0x3bffd4=_0x3f2902;super(),this[_0x3bffd4(0x116)]=_0x11d3ab,this[_0x3bffd4(0x367)]=_0x4c0c99,this[_0x3bffd4(0xea)]=_0x26423,this[_0x3bffd4(0xa1)]=_0x497a1f,this[_0x3bffd4(0xdf)]=_0x299a78,this['_sheetDrawingShapeRenderController']=_0x2471c3,_0xdc22ec(this,'_insertingShapeKeys',new Set()),this[_0x3bffd4(0x315)]();}[_0x3f2902(0x315)](){const _0x32d86a=_0x3f2902;this[_0x32d86a(0x12d)](),this[_0x32d86a(0x33a)](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x51db01=_0x3f2902;this['disposeWithMe'](this[_0x51db01(0xea)]['add$']['subscribe'](_0x9ddbc0=>{this['_insertShapes'](_0x9ddbc0);}));}[_0x3f2902(0x33a)](){const _0x50cd30=_0x3f2902;this[_0x50cd30(0x374)](this[_0x50cd30(0x116)][_0x50cd30(0x2e8)]((_0x1882b4,_0x1d934a)=>{const _0x19e5c6=_0x50cd30;if(_0x1882b4['id']===_0x1d059b[_0x19e5c6(0x356)]['id']){let {unitId:_0x284d23,subUnitId:_0x520cd3,shapeId:_0x44343d}=_0x1882b4[_0x19e5c6(0xa3)],_0x3872b9=this['_getSceneAndTransformerByDrawingSearch'](_0x284d23),_0x33c241=(0x0,_0x511ed7[_0x19e5c6(0x409)])({'unitId':_0x284d23,'subUnitId':_0x520cd3,'drawingId':_0x44343d}),_0x32bd5b=_0x3872b9==null?void 0x0:_0x3872b9['scene'][_0x19e5c6(0x35d)](_0x33c241);_0x32bd5b&&(this[_0x19e5c6(0x40f)]['refreshShapeFillImage'](_0x32bd5b),this['_sheetDrawingShapeRenderController'][_0x19e5c6(0x113)](_0x32bd5b,{'unitId':_0x284d23,'subUnitId':_0x520cd3,'shapeId':_0x44343d}),_0x32bd5b[_0x19e5c6(0xb9)](!0x0));return;}if(_0x1882b4['id']===_0x1d059b[_0x19e5c6(0x84)]['id']){var _0x1c55b6;let {unitId:_0x26a38e,subUnitId:_0x37056b,shapeId:_0x3f2f20}=_0x1882b4['params'],_0x57bdf9=this[_0x19e5c6(0x2bc)](_0x26a38e);if(_0x57bdf9==null)return;let {scene:_0x72e8fd}=_0x57bdf9,_0x1cf30d=(0x0,_0x511ed7['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x26a38e,'subUnitId':_0x37056b,'drawingId':_0x3f2f20}),_0x47460e=_0x72e8fd[_0x19e5c6(0x35d)](_0x1cf30d);if(!((_0x1c55b6=this[_0x19e5c6(0x367)][_0x19e5c6(0x10d)](_0x26a38e))!=null&&_0x1c55b6[_0x19e5c6(0x3ad)](_0x2e7926['SheetSkeletonManagerService'])[_0x19e5c6(0x148)](_0x37056b)))return!0x1;if(_0x47460e)return;if(_0x1d934a!=null&&_0x1d934a['fromChangeset']){queueMicrotask(()=>{const _0x3b194b=_0x19e5c6;this[_0x3b194b(0x1a2)]||this[_0x3b194b(0x1f1)]([{'unitId':_0x26a38e,'subUnitId':_0x37056b,'drawingId':_0x3f2f20}]);});return;}this[_0x19e5c6(0x1f1)]([{'unitId':_0x26a38e,'subUnitId':_0x37056b,'drawingId':_0x3f2f20}]);}}));}[_0x3f2902(0x336)](){const _0x189798=_0x3f2902;this['disposeWithMe'](this[_0x189798(0xea)][_0x189798(0x2e0)][_0x189798(0x94)](_0x4e6dba=>{const _0x295faa=_0x189798;_0x4e6dba[_0x295faa(0x120)](_0x3ecdaa=>{const _0x514a0b=_0x295faa;let {unitId:_0x12a250,subUnitId:_0x5e3fc2,drawingId:_0x48a261}=_0x3ecdaa,_0x4bd9bf=this['_drawingManagerService'][_0x514a0b(0x379)](_0x3ecdaa);if(_0x4bd9bf==null)return;let {transform:_0xe08fe6,drawingType:_0x3dfb71,srcRect:_0x41bc42,prstGeom:_0x3d2d8e}=_0x4bd9bf;if(_0x3dfb71!==_0x233421[_0x514a0b(0x2d0)]['DRAWING_SHAPE'])return;let _0x352e01=this[_0x514a0b(0x2bc)](_0x12a250);if(_0x352e01==null)return;let {scene:_0x9455bd,transformer:_0x5a8469}=_0x352e01;if(_0xe08fe6==null)return!0x0;let _0x34bd05=(0x0,_0x511ed7[_0x514a0b(0x409)])({'unitId':_0x12a250,'subUnitId':_0x5e3fc2,'drawingId':_0x48a261}),_0xe22a0d=_0x9455bd['getObjectIncludeInGroup'](_0x34bd05);if(_0xe22a0d==null)return!0x0;_0xe22a0d[_0x514a0b(0x1d1)](_0x41bc42),_0xe22a0d[_0x514a0b(0x15d)](_0x3d2d8e);});}));}[_0x3f2902(0x1f1)](_0x6039bf){const _0x279035=_0x3f2902;for(let _0x2116d7 of _0x6039bf){var _0x1ee777;let {unitId:_0x4402f7,subUnitId:_0x1b5189,drawingId:_0x4940d4}=_0x2116d7,_0x1b5e31=this[_0x279035(0x2bc)](_0x4402f7),_0x5abcab=(_0x1ee777=(0x0,_0x22c8d6['getCurrentUnitInfo'])(this[_0x279035(0xa1)],_0x4402f7))==null?void 0x0:_0x1ee777[_0x279035(0x318)];if(_0x1b5e31==null||_0x5abcab!==_0x1b5189)return;let _0x302e6b=(0x0,_0x511ed7[_0x279035(0x409)])({'unitId':_0x4402f7,'subUnitId':_0x1b5189,'drawingId':_0x4940d4});if(this['_insertingShapeKeys'][_0x279035(0x375)](_0x302e6b)||_0x1b5e31[_0x279035(0x15a)][_0x279035(0x35d)](_0x302e6b)!=null)return;let _0x3ec84d=this[_0x279035(0xea)]['getDrawingByParam'](_0x2116d7);if(_0x3ec84d==null||_0x3ec84d[_0x279035(0x1a6)]!==_0x233421[_0x279035(0x2d0)][_0x279035(0x347)])return;if((0x0,_0x136056[_0x279035(0x427)])((_0x3ec84d['data']||{})[_0x279035(0x102)])){let _0x3b6039=_0x3ec84d[_0x279035(0x343)];_0x3b6039&&(_0x3ec84d[_0x279035(0x343)]={..._0x3b6039,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x279035(0xed)][_0x279035(0x78)](_0x302e6b);try{this[_0x279035(0x40f)][_0x279035(0x77)](_0x3ec84d,_0x1b5e31[_0x279035(0x15a)]);}finally{this[_0x279035(0xed)]['delete'](_0x302e6b);}queueMicrotask(()=>{const _0x9b77d8=_0x279035;if(this['_disposed'])return;let _0x4787c6=(0x0,_0x511ed7['getDrawingShapeKeyByDrawingSearch'])(_0x2116d7);if(!_0x1b5e31['scene']['getObjectIncludeInGroup'](_0x4787c6))return;let _0x5c86c1=this[_0x9b77d8(0xea)][_0x9b77d8(0x379)](_0x2116d7);_0x5c86c1&&this[_0x9b77d8(0xea)]['refreshTransform']([_0x5c86c1]);});}}[_0x3f2902(0x2bc)](_0x543e0e){const _0x11805c=_0x3f2902;if(_0x543e0e==null)return;let _0x3a6d0a=this[_0x11805c(0x367)][_0x11805c(0x10d)](_0x543e0e),_0xca1843=_0x3a6d0a==null?void 0x0:_0x3a6d0a[_0x11805c(0x15a)];return _0xca1843==null?null:{'scene':_0xca1843,'transformer':_0xca1843[_0x11805c(0x281)]()};}};_0x546573=_0x56683a([_0x3eb327(0x0,_0x233421[_0x3f2902(0x32d)]),_0x3eb327(0x1,_0x1877f7[_0x3f2902(0x2d3)]),_0x3eb327(0x2,_0x511ed7[_0x3f2902(0x255)]),_0x3eb327(0x3,_0x233421[_0x3f2902(0x1c5)]),_0x3eb327(0x4,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x22c8d6['DrawingRenderService'])),_0x3eb327(0x5,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x24bf88))],_0x546573);let _0x14a7b8={'normal':{'fill':_0x136056['ShapeDefaultConfig'][_0x3f2902(0x235)],'stroke':_0x136056[_0x3f2902(0x288)][_0x3f2902(0x37b)],'strokeWidth':_0x136056[_0x3f2902(0x288)][_0x3f2902(0x2df)]},'highlighted':{'fill':'#4285f4','stroke':_0x3f2902(0x34e),'strokeWidth':0x2}};var _0x187137=class extends _0x1877f7[_0x3f2902(0x3da)]{constructor(_0x14abc4,_0x4d8689){const _0x381992=_0x3f2902;super(_0x14abc4,_0x4d8689),_0xdc22ec(this,_0x381992(0x23d),''),_0xdc22ec(this,'_cxnIndex',-0x1),_0xdc22ec(this,_0x381992(0x228),''),_0xdc22ec(this,'_subUnitId',''),_0xdc22ec(this,_0x381992(0x18d),!0x1),_0x4d8689&&this['setShapeProps'](_0x4d8689);}[_0x3f2902(0x2c0)](){const _0x2d7e98=_0x3f2902;return{'unitId':this[_0x2d7e98(0x228)],'subUnitId':this[_0x2d7e98(0x1ad)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x2d7e98(0x13c)]};}[_0x3f2902(0xdc)](_0x545dc3){const _0x4d5fd3=_0x3f2902;this['_isHighlighted']!==_0x545dc3&&(this[_0x4d5fd3(0x18d)]=_0x545dc3,this['makeDirty'](!0x0));}['isHighlighted'](){const _0x43e101=_0x3f2902;return this[_0x43e101(0x18d)];}[_0x3f2902(0xfa)](_0x24b4c5){const _0x47a98d=_0x3f2902;_0x24b4c5[_0x47a98d(0x34c)]!==void 0x0&&(this[_0x47a98d(0x23d)]=_0x24b4c5[_0x47a98d(0x34c)]),_0x24b4c5['cxnIndex']!==void 0x0&&(this['_cxnIndex']=_0x24b4c5[_0x47a98d(0x165)]),_0x24b4c5[_0x47a98d(0x138)]!==void 0x0&&(this['_unitId']=_0x24b4c5[_0x47a98d(0x138)]),_0x24b4c5[_0x47a98d(0x318)]!==void 0x0&&(this[_0x47a98d(0x1ad)]=_0x24b4c5[_0x47a98d(0x318)]),_0x24b4c5['isHighlighted']!==void 0x0&&(this[_0x47a98d(0x18d)]=_0x24b4c5[_0x47a98d(0x167)]),this[_0x47a98d(0x3cd)]({'width':_0x24b4c5['width']??_0x136056[_0x47a98d(0x288)][_0x47a98d(0x39a)]*0x2,'height':_0x24b4c5[_0x47a98d(0x3ce)]??_0x136056[_0x47a98d(0x288)]['cxnPointRadius']*0x2});}[_0x3f2902(0x1c8)](_0x2b8d9e){const _0x596ab2=_0x3f2902;let _0x81b2f6=this[_0x596ab2(0x18d)]?_0x14a7b8['highlighted']:_0x14a7b8[_0x596ab2(0x2c8)];_0x1877f7[_0x596ab2(0x248)]['drawWith'](_0x2b8d9e,{'radius':_0x136056[_0x596ab2(0x288)][_0x596ab2(0x39a)],'fill':_0x81b2f6[_0x596ab2(0x40a)],'stroke':_0x81b2f6['stroke'],'strokeWidth':_0x81b2f6['strokeWidth'],'evented':!0x0});}};let _0x577ddc=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x900004,_0xfb847f,_0x47ba1b,_0x4bc7ae){const _0x4013fb=_0x3f2902;super(),this[_0x4013fb(0x339)]=_0x900004,this[_0x4013fb(0x367)]=_0xfb847f,this['_drawingManagerService']=_0x47ba1b,this[_0x4013fb(0xaf)]=_0x4bc7ae,_0xdc22ec(this,'_connectionSiteObjects',[]),_0xdc22ec(this,_0x4013fb(0x28d),null),_0xdc22ec(this,_0x4013fb(0x30c),-0x1),_0xdc22ec(this,_0x4013fb(0x415),null),_0xdc22ec(this,'_unitId',''),_0xdc22ec(this,_0x4013fb(0x1ad),''),_0xdc22ec(this,_0x4013fb(0x2a5),null);}[_0x3f2902(0x302)](_0x568d96,_0x2bbbb2,_0x52c713,_0x56b2a3){const _0x38bd7d=_0x3f2902;this[_0x38bd7d(0x415)]=_0x568d96,this[_0x38bd7d(0x228)]=_0x2bbbb2,this['_subUnitId']=_0x52c713,this[_0x38bd7d(0x2a5)]=_0x56b2a3;}[_0x3f2902(0x2e4)](_0x416c9d){const _0x1ca542=_0x3f2902;if(!this[_0x1ca542(0x415)])return null;let _0x2636f1=this['_findShapeAtPoint'](_0x416c9d);return _0x2636f1?(this[_0x1ca542(0x28d)]!==_0x2636f1[_0x1ca542(0xb8)]&&(this['_clearConnectionSites'](),this[_0x1ca542(0x17a)](_0x2636f1['shapeId'],_0x2636f1['shapeModel']),this[_0x1ca542(0x28d)]=_0x2636f1[_0x1ca542(0xb8)]),this['_findNearestConnectionSite'](_0x416c9d)):(this[_0x1ca542(0x28d)]!==null&&(this[_0x1ca542(0x19c)](),this[_0x1ca542(0x28d)]=null),null);}[_0x3f2902(0x3b1)](){const _0x27cd57=_0x3f2902;this[_0x27cd57(0x19c)](),this['_currentScene']=null,this[_0x27cd57(0x28d)]=null,this[_0x27cd57(0x30c)]=-0x1,this[_0x27cd57(0x2a5)]=null;}[_0x3f2902(0x215)](){const _0xe219c3=_0x3f2902;return this[_0xe219c3(0x28d)]===null||this[_0xe219c3(0x30c)]<0x0?null:{'shapeId':this[_0xe219c3(0x28d)],'cxnIndex':this[_0xe219c3(0x30c)]};}[_0x3f2902(0x246)](_0x571f05){const _0x182b35=_0x3f2902;let _0x39339d=this[_0x182b35(0xea)][_0x182b35(0x11e)](this[_0x182b35(0x228)],this[_0x182b35(0x1ad)]);for(let _0x4fb86a of Object[_0x182b35(0x3ae)](_0x39339d)){if(_0x4fb86a===this[_0x182b35(0x2a5)]||_0x39339d[_0x4fb86a][_0x182b35(0x1a6)]!==_0x233421[_0x182b35(0x2d0)][_0x182b35(0x347)])continue;let _0xf5315e=this[_0x182b35(0xaf)][_0x182b35(0xd1)](this[_0x182b35(0x228)],this[_0x182b35(0x1ad)],_0x4fb86a);if(!_0xf5315e||(0x0,_0x136056[_0x182b35(0x427)])(_0xf5315e[_0x182b35(0x3b9)]())||_0xf5315e[_0x182b35(0x3df)]()[_0x182b35(0xff)]===0x0||!this[_0x182b35(0x415)])continue;let _0x5f4e03=(0x0,_0x511ed7[_0x182b35(0x409)])({'unitId':this[_0x182b35(0x228)],'subUnitId':this[_0x182b35(0x1ad)],'drawingId':_0x4fb86a}),_0x19a734=this[_0x182b35(0x415)][_0x182b35(0x35d)](_0x5f4e03);if(!_0x19a734)continue;let {left:_0x8cecb5,top:_0x678c7a,width:_0x47642a,height:_0x370623}=_0x19a734[_0x182b35(0x411)](),_0x50b8f2=_0x8cecb5+_0x47642a/0x2,_0x4ef0e0=_0x678c7a+_0x370623/0x2,_0x5cc592=_0x19a734[_0x182b35(0x343)][_0x182b35(0x30d)](),_0x5910c6=new _0x1877f7['Transform']([_0x5cc592[0x0],_0x5cc592[0x1],_0x5cc592[0x2],_0x5cc592[0x3],_0x50b8f2,_0x4ef0e0]),_0x515c48=_0x19a734['getParent'](),_0x233665=(_0x19a734[_0x182b35(0x380)]&&(_0x515c48==null?void 0x0:_0x515c48[_0x182b35(0x20d)])===_0x1877f7[_0x182b35(0x2f6)]['GROUP']?_0x515c48[_0x182b35(0x188)][_0x182b35(0x331)](_0x5910c6):_0x5910c6)[_0x182b35(0x323)]()['applyPoint'](_0x571f05),_0x3b406e=_0x47642a/0x2,_0x4b51ef=_0x370623/0x2;if(_0x233665['x']>=-_0x3b406e-0x5&&_0x233665['x']<=_0x3b406e+0x5&&_0x233665['y']>=-_0x4b51ef-0x5&&_0x233665['y']<=_0x4b51ef+0x5)return{'shapeId':_0x4fb86a,'shapeModel':_0xf5315e};}return null;}[_0x3f2902(0x17a)](_0x388109,_0x20a2b7){const _0x3aac8e=_0x3f2902;if(!this['_currentScene'])return;let _0x2fb7c4=(0x0,_0x511ed7[_0x3aac8e(0x409)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x388109}),_0x45102f=this[_0x3aac8e(0x415)][_0x3aac8e(0x35d)](_0x2fb7c4);if(!_0x45102f)return;let {left:_0x4be757,top:_0x1c8db6,width:_0x1b740a,height:_0x18251e}=_0x45102f[_0x3aac8e(0x411)](),_0x169b39=_0x4be757+_0x1b740a/0x2,_0x1ac525=_0x1c8db6+_0x18251e/0x2,_0x99738c=_0x45102f['transform'][_0x3aac8e(0x30d)](),_0x4871a2=new _0x1877f7[(_0x3aac8e(0x2fd))]([_0x99738c[0x0],_0x99738c[0x1],_0x99738c[0x2],_0x99738c[0x3],_0x169b39,_0x1ac525]),_0x2fa3aa=_0x45102f[_0x3aac8e(0x1a9)](),_0x148bca=_0x45102f[_0x3aac8e(0x380)]&&(_0x2fa3aa==null?void 0x0:_0x2fa3aa[_0x3aac8e(0x20d)])===_0x1877f7[_0x3aac8e(0x2f6)][_0x3aac8e(0x2f9)]?_0x2fa3aa['ancestorTransform']['multiply'](_0x4871a2):_0x4871a2;_0x20a2b7[_0x3aac8e(0x1ea)]({'width':_0x1b740a,'height':_0x18251e});let _0x4c32f1=_0x20a2b7[_0x3aac8e(0x3df)]();for(let _0xfe5147 of _0x4c32f1){let _0x5659ed=_0xfe5147['x']-_0x1b740a/0x2,_0x146f2a=_0xfe5147['y']-_0x18251e/0x2,_0x31b063=_0x148bca[_0x3aac8e(0x158)]({'x':_0x5659ed,'y':_0x146f2a}),_0x33e543=_0x31b063['x'],_0x3352df=_0x31b063['y'],_0x27126d=new _0x187137(_0x3aac8e(0x3d5)+_0x388109+'-'+_0xfe5147['index'],{'left':_0x33e543-_0x136056['ShapeDefaultConfig'][_0x3aac8e(0x39a)],'top':_0x3352df-_0x136056[_0x3aac8e(0x288)]['cxnPointRadius'],'targetShapeId':_0x388109,'cxnIndex':_0xfe5147[_0x3aac8e(0xe3)],'unitId':this[_0x3aac8e(0x228)],'subUnitId':this['_subUnitId'],'width':_0x136056[_0x3aac8e(0x288)][_0x3aac8e(0x39a)]*0x2,'height':_0x136056[_0x3aac8e(0x288)][_0x3aac8e(0x39a)]*0x2,'zIndex':_0x1877f7[_0x3aac8e(0x2c1)]+0x2,'evented':!0x1});this[_0x3aac8e(0x2db)]['push'](_0x27126d),this[_0x3aac8e(0x415)]['addObject'](_0x27126d,_0x1877f7[_0x3aac8e(0x2c1)]+0x2);}}['_findNearestConnectionSite'](_0x3c346a){const _0x3625cc=_0x3f2902;let _0x2ec7ab=null,_0x154a2c=0x1/0x0,_0x5e05da=null;for(let _0x25d8ba of this[_0x3625cc(0x2db)]){let _0x3bdad5=_0x25d8ba['left']+_0x136056[_0x3625cc(0x288)][_0x3625cc(0x39a)],_0x21c75d=_0x25d8ba[_0x3625cc(0x21e)]+_0x136056['ShapeDefaultConfig'][_0x3625cc(0x39a)],_0x2f61c7=_0x3c346a['x']-_0x3bdad5,_0x3c9294=_0x3c346a['y']-_0x21c75d,_0x3c9d4f=Math['sqrt'](_0x2f61c7*_0x2f61c7+_0x3c9294*_0x3c9294);_0x3c9d4f<_0x154a2c&&(_0x154a2c=_0x3c9d4f,_0x2ec7ab=_0x25d8ba,_0x5e05da={'x':_0x3bdad5,'y':_0x21c75d});}let _0x4ea5e7=_0x154a2c<=0xa&&_0x2ec7ab?_0x2ec7ab['getConnectionInfo']()[_0x3625cc(0x165)]:-0x1;if(_0x4ea5e7!==this[_0x3625cc(0x30c)]){for(let _0x33b60e of this['_connectionSiteObjects']){let _0x47b1e3=_0x33b60e['getConnectionInfo']();_0x33b60e[_0x3625cc(0xdc)](_0x47b1e3[_0x3625cc(0x165)]===_0x4ea5e7);}this[_0x3625cc(0x30c)]=_0x4ea5e7;}if(_0x154a2c<=0xa&&_0x2ec7ab&&_0x5e05da){let _0x2dd9d5=_0x2ec7ab['getConnectionInfo'](),_0x5409dd=this[_0x3625cc(0x40c)](_0x2dd9d5[_0x3625cc(0xb8)],_0x2dd9d5[_0x3625cc(0x165)]);return{'shapeId':_0x2dd9d5['shapeId'],'cxnIndex':_0x2dd9d5[_0x3625cc(0x165)],'unitId':_0x2dd9d5['unitId'],'subUnitId':_0x2dd9d5['subUnitId'],'worldPoint':_0x5e05da,'angle':_0x5409dd};}return null;}[_0x3f2902(0x40c)](_0x53de99,_0x576c78){const _0x7542a8=_0x3f2902;let _0x4a3d84=this[_0x7542a8(0xaf)]['getShapeModel'](this['_unitId'],this[_0x7542a8(0x1ad)],_0x53de99);if(!_0x4a3d84)return 0x0;let _0x89c2d7=this[_0x7542a8(0xea)]['getDrawingByParam']({'unitId':this[_0x7542a8(0x228)],'subUnitId':this['_subUnitId'],'drawingId':_0x53de99});if(!(_0x89c2d7!=null&&_0x89c2d7[_0x7542a8(0x343)]))return 0x0;let {width:_0x1d98fd=0x0,height:_0x2894c6=0x0,flipX:_0x501341=!0x1,flipY:_0x74c29b=!0x1}=_0x89c2d7[_0x7542a8(0x343)];_0x4a3d84[_0x7542a8(0x1ea)]({'width':_0x1d98fd,'height':_0x2894c6});let _0x33f133=_0x4a3d84[_0x7542a8(0x3df)]()[_0x7542a8(0x37d)](_0x218ce4=>_0x218ce4[_0x7542a8(0xe3)]===_0x576c78);if(!_0x33f133)return 0x0;let _0x28538c=_0x33f133[_0x7542a8(0x1d9)]/0xea60;return _0x501341&&(_0x28538c=0xb4-_0x28538c),_0x74c29b&&(_0x28538c=-_0x28538c),_0x28538c=(_0x28538c%0x168+0x168)%0x168,_0x28538c;}['_clearConnectionSites'](){const _0x46d773=_0x3f2902;for(let _0x4355e9 of this[_0x46d773(0x2db)])_0x4355e9['dispose']();this[_0x46d773(0x2db)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x3f2902(0x358)](){const _0xcb692b=_0x3f2902;this[_0xcb692b(0x19c)](),super[_0xcb692b(0x358)]();}};_0x577ddc=_0x56683a([_0x3eb327(0x1,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1877f7[_0x3f2902(0x2d3)])),_0x3eb327(0x2,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x511ed7[_0x3f2902(0x255)])),_0x3eb327(0x3,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1d059b['SheetsShapeService']))],_0x577ddc);let _0x4db5c2=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x122f4f,_0x5c076d,_0x2486c3,_0x3f594e,_0x226506){const _0x2e3056=_0x3f2902;super(),this[_0x2e3056(0x41f)]=_0x122f4f,this['_sheetClipboardService']=_0x5c076d,this[_0x2e3056(0x1f4)]=_0x2486c3,this[_0x2e3056(0x361)]=_0x3f594e,this['_groupCopyPasteController']=_0x226506,_0xdc22ec(this,'_copyInfo',void 0x0),this[_0x2e3056(0xc6)](),this[_0x2e3056(0x252)]();}get[_0x3f2902(0x79)](){const _0x52624d=_0x3f2902;return this[_0x52624d(0x1f4)][_0x52624d(0x2b2)]();}[_0x3f2902(0x252)](){const _0x168b04=_0x3f2902;this[_0x168b04(0x2ed)][_0x168b04(0x196)](({fromUnitId:_0x3ac9e9,fromSubUnitId:_0x263208,toUnitId:_0x8980e8,toSubUnitId:_0x1df8e6,idMap:_0x22019f})=>{const _0x4b9f2c=_0x168b04;let _0x5253bf=[],_0x21adf2=[];for(let [_0x4d6958,_0x20e1a6]of _0x22019f[_0x4b9f2c(0x1fc)]()){let _0x23baff=this[_0x4b9f2c(0x361)][_0x4b9f2c(0xd1)](_0x3ac9e9,_0x263208,_0x4d6958);if(!_0x23baff)continue;let _0x2bd3ba=_0x23baff['getShapeType'](),_0x4ba3f1=JSON['parse'](JSON[_0x4b9f2c(0x2a6)](_0x23baff[_0x4b9f2c(0x35f)]()));if(_0x4ba3f1[_0x4b9f2c(0x2a1)]){var _0xb2e245,_0x3bbe9b;let _0x131a2d=(_0xb2e245=_0x4ba3f1['relation'][_0x4b9f2c(0x208)])==null?void 0x0:_0xb2e245[_0x4b9f2c(0xb8)],_0x1dadf1=(_0x3bbe9b=_0x4ba3f1[_0x4b9f2c(0x2a1)]['to'])==null?void 0x0:_0x3bbe9b['shapeId'],_0x5e3ca5=!_0x131a2d||_0x22019f[_0x4b9f2c(0x375)](_0x131a2d),_0x23987b=!_0x1dadf1||_0x22019f[_0x4b9f2c(0x375)](_0x1dadf1);_0x5e3ca5&&_0x131a2d&&_0x4ba3f1[_0x4b9f2c(0x2a1)][_0x4b9f2c(0x208)]?_0x4ba3f1[_0x4b9f2c(0x2a1)][_0x4b9f2c(0x208)]={..._0x4ba3f1[_0x4b9f2c(0x2a1)][_0x4b9f2c(0x208)],'shapeId':_0x22019f[_0x4b9f2c(0x3dd)](_0x131a2d)}:_0x4ba3f1[_0x4b9f2c(0x2a1)][_0x4b9f2c(0x208)]=void 0x0,_0x23987b&&_0x1dadf1&&_0x4ba3f1[_0x4b9f2c(0x2a1)]['to']?_0x4ba3f1['relation']['to']={..._0x4ba3f1[_0x4b9f2c(0x2a1)]['to'],'shapeId':_0x22019f[_0x4b9f2c(0x3dd)](_0x1dadf1)}:_0x4ba3f1[_0x4b9f2c(0x2a1)]['to']=void 0x0;}_0x5253bf['push']({'id':_0x1d059b[_0x4b9f2c(0x84)]['id'],'params':{'unitId':_0x8980e8,'subUnitId':_0x1df8e6,'shapeId':_0x20e1a6,'shapeType':_0x2bd3ba,'shapeData':_0x4ba3f1}}),_0x21adf2['push']({'id':_0x1d059b[_0x4b9f2c(0x9e)]['id'],'params':{'unitId':_0x8980e8,'subUnitId':_0x1df8e6,'shapeId':_0x20e1a6}});}return{'redos':_0x5253bf,'undos':_0x21adf2};});}[_0x3f2902(0xc6)](){const _0x44e80b=_0x3f2902;this[_0x44e80b(0x374)](this[_0x44e80b(0x429)][_0x44e80b(0x141)]({'id':_0x44e80b(0x3ec),'onBeforeCopy':(_0x5c4c2e,_0x5931b7,_0x11a4fc,_0xca34e0)=>{const _0x1e0f25=_0x44e80b;this[_0x1e0f25(0x81)]=null;let _0x52bd19=this['_focusedDrawings'];if(_0x52bd19['length']){let _0x5ed5ae=_0x52bd19[_0x1e0f25(0x212)](_0x5c330f=>_0x5c330f[_0x1e0f25(0x1a6)]===_0x233421[_0x1e0f25(0x2d0)][_0x1e0f25(0x347)]);if(_0x5ed5ae['length']===0x0)return;this[_0x1e0f25(0x81)]={'unitId':_0x5c4c2e,'subUnitId':_0x5931b7,'copyType':_0xca34e0,'drawings':_0x5ed5ae};}else this['_createCopyInfoByRange'](_0x5c4c2e,_0x5931b7,_0x11a4fc,_0xca34e0);},'onPasteCells':(_0x4b1d67,_0x2058a7,_0x4b84d6,_0x3d6868)=>{const _0x3ba48d=_0x44e80b;if(!this[_0x3ba48d(0x81)])return{'redos':[],'undos':[]};let {pasteType:_0x118515}=_0x3d6868;return _0x118515===_0x2e7926[_0x3ba48d(0x263)]['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x2058a7,this['_copyInfo'][_0x3ba48d(0xa6)]===_0x2e7926[_0x3ba48d(0x290)][_0x3ba48d(0x416)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x2d0521=>this[_0x44e80b(0x81)]?this[_0x44e80b(0x3d3)](_0x2d0521,this['_copyInfo']['copyType']===_0x2e7926['COPY_TYPE'][_0x44e80b(0x416)]):{'redos':[],'undos':[]}}));}[_0x3f2902(0x139)](_0x21fbb7,_0x4af5b9,_0x3f7c9b,_0x3259d1){const _0x506412=_0x3f2902;let _0x37ae5d=this[_0x506412(0x41f)][_0x506412(0x148)](_0x21fbb7,_0x4af5b9);if(!_0x37ae5d)return;let _0x24daff=(0x0,_0x58820c['attachRangeWithCoord'])(_0x37ae5d,_0x3f7c9b);if(!_0x24daff)return;let {startX:_0x16650b,endX:_0x132fe8,startY:_0x326404,endY:_0x701c37}=_0x24daff,_0x4138ea=this[_0x506412(0x1f4)][_0x506412(0x11e)](_0x21fbb7,_0x4af5b9),_0x5aa830=this[_0x506412(0x79)][_0x506412(0x424)]();for(let [_0x478435,_0x41e911]of Object[_0x506412(0x1fc)](_0x4138ea)){if(_0x41e911[_0x506412(0x1a6)]!==_0x233421[_0x506412(0x2d0)]['DRAWING_SHAPE'])continue;let {transform:_0x14b190}=_0x41e911;if(!_0x14b190)continue;let {left:_0x2136b5=0x0,top:_0x21ef96=0x0,width:_0x161bca=0x0,height:_0x56d748=0x0}=_0x14b190;_0x16650b<=_0x2136b5&&_0x132fe8>=_0x2136b5+_0x161bca&&_0x326404<=_0x21ef96&&_0x701c37>=_0x21ef96+_0x56d748&&_0x5aa830[_0x506412(0x33e)](_0x41e911);}_0x5aa830[_0x506412(0xff)]>0x0&&(this[_0x506412(0x81)]={'unitId':_0x21fbb7,'subUnitId':_0x4af5b9,'copyType':_0x3259d1,'copyRange':_0x3f7c9b,'drawings':_0x5aa830});}[_0x3f2902(0x3d3)](_0x50b9f4,_0x38e90d){const _0x11fd66=_0x3f2902;let {unitId:_0x3b3ad4,subUnitId:_0x28e846,range:_0x10249f}=_0x50b9f4,_0x495ce3=this['_sheetSkeletonService']['getSkeleton'](_0x3b3ad4,_0x28e846);if(!_0x495ce3)return{'redos':[],'undos':[]};let _0x5d3ada=(0x0,_0x58820c[_0x11fd66(0x39c)])(_0x10249f),{unitId:_0x2cbdc5,subUnitId:_0x166d56,copyRange:_0xfc2922,drawings:_0x1f38ee}=this[_0x11fd66(0x81)],_0x20b265=this[_0x11fd66(0x41f)][_0x11fd66(0x148)](_0x2cbdc5,_0x166d56);if(!_0x20b265)return{'redos':[],'undos':[]};let _0x490b38;if(!_0xfc2922){let _0x293df2=0x1/0x0,_0x2faad4=0x1/0x0;for(let _0xd74adc of _0x1f38ee){let {left:_0x3c6430=0x0,top:_0x3537cc=0x0}=_0xd74adc[_0x11fd66(0x343)]??{};_0x3c6430<_0x293df2&&(_0x293df2=_0x3c6430),_0x3537cc<_0x2faad4&&(_0x2faad4=_0x3537cc);}_0x293df2!==0x1/0x0&&_0x2faad4!==0x1/0x0&&(_0x490b38={'left':_0x293df2,'top':_0x2faad4});}let _0x48dc12=new Map();if(!_0x38e90d){for(let _0x32dbed of _0x1f38ee)_0x48dc12['set'](_0x32dbed['drawingId'],(0x0,_0x233421[_0x11fd66(0x3f1)])());}let _0x2875cc=[],_0x5173c3=[];for(let _0x16cdb3 of _0x1f38ee){let {drawingId:_0x2aed13,transform:_0xe98d06,sheetTransform:_0x5d2440}=_0x16cdb3;if(!_0xe98d06||!_0x5d2440)continue;let _0x69eec6=this['_updateTransform']({'transform':_0xe98d06,'sheetTransform':_0x5d2440},{'skeleton':_0x20b265,'range':_0xfc2922},{'skeleton':_0x495ce3,'range':_0x5d3ada},_0x490b38);if(_0x38e90d){let {redos:_0x17b4df,undos:_0x16edb5}=this[_0x11fd66(0x348)]({'fromUnitId':_0x2cbdc5,'fromSubUnitId':_0x166d56,'toUnitId':_0x3b3ad4,'toSubUnitId':_0x28e846,'drawing':_0x16cdb3,'newTransforms':_0x69eec6});_0x2875cc[_0x11fd66(0x33e)](..._0x17b4df),_0x5173c3['push'](..._0x16edb5);continue;}let {redos:_0x5d6f31,undos:_0x455d72}=this[_0x11fd66(0x198)]({'toUnitId':_0x3b3ad4,'toSubUnitId':_0x28e846,'drawing':_0x16cdb3,'newTransforms':_0x69eec6,'newDrawingId':_0x48dc12[_0x11fd66(0x3dd)](_0x2aed13),'idMap':_0x48dc12});_0x2875cc['push'](..._0x5d6f31),_0x5173c3['push'](..._0x455d72);}return{'redos':_0x2875cc,'undos':_0x5173c3};}[_0x3f2902(0x348)](_0x5757e7){const _0x5dd3d1=_0x3f2902;let {fromUnitId:_0x53ae7c,fromSubUnitId:_0x5e7a13,toUnitId:_0x41464c,toSubUnitId:_0x32f45c,drawing:_0x219a14,newTransforms:_0x25fab4}=_0x5757e7,_0x29ba51={..._0x219a14,'unitId':_0x41464c,'subUnitId':_0x32f45c,'transform':_0x25fab4['transform'],'sheetTransform':_0x25fab4[_0x5dd3d1(0x1a7)]};if(_0x41464c===_0x53ae7c&&_0x32f45c===_0x5e7a13){let {redo:_0x291200,undo:_0x11c820,objects:_0x3fc01a}=this[_0x5dd3d1(0x1f4)][_0x5dd3d1(0x3b4)]([_0x29ba51]);return{'redos':[{'id':_0x5c75db[_0x5dd3d1(0x21c)]['id'],'params':{'unitId':_0x41464c,'subUnitId':_0x32f45c,'type':_0x5c75db[_0x5dd3d1(0xd3)]['UPDATE'],'op':_0x291200,'objects':_0x3fc01a}}],'undos':[{'id':_0x5c75db['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x41464c,'subUnitId':_0x32f45c,'type':_0x5c75db[_0x5dd3d1(0xd3)][_0x5dd3d1(0x211)],'op':_0x11c820,'objects':_0x3fc01a}}]};}else{let _0x106e1d=this[_0x5dd3d1(0x1f4)][_0x5dd3d1(0x28b)]([_0x219a14]),_0x5084dd=this[_0x5dd3d1(0x1f4)][_0x5dd3d1(0x3d0)]([_0x29ba51]),_0x51581c=this['_shapeService']['getShapeModel'](_0x219a14[_0x5dd3d1(0x138)],_0x219a14[_0x5dd3d1(0x318)],_0x219a14[_0x5dd3d1(0x262)]);if(!_0x51581c)return{'redos':[],'undos':[]};let _0x4ed4d1=_0x51581c[_0x5dd3d1(0x3b9)](),_0x400bb8=JSON[_0x5dd3d1(0x21d)](JSON[_0x5dd3d1(0x2a6)](_0x51581c['getShapeData']()));return{'redos':[{'id':_0x5c75db[_0x5dd3d1(0x21c)]['id'],'params':{'unitId':_0x53ae7c,'subUnitId':_0x5e7a13,'type':_0x5c75db['DrawingApplyType'][_0x5dd3d1(0x126)],'op':_0x106e1d[_0x5dd3d1(0x101)],'objects':_0x106e1d[_0x5dd3d1(0xf4)]}},{'id':_0x1d059b[_0x5dd3d1(0x9e)]['id'],'params':{'unitId':_0x53ae7c,'subUnitId':_0x5e7a13,'shapeId':_0x219a14[_0x5dd3d1(0x262)]}},{'id':_0x5c75db[_0x5dd3d1(0x21c)]['id'],'params':{'unitId':_0x41464c,'subUnitId':_0x32f45c,'type':_0x5c75db[_0x5dd3d1(0xd3)][_0x5dd3d1(0x3db)],'op':_0x5084dd[_0x5dd3d1(0x101)],'objects':_0x5084dd[_0x5dd3d1(0xf4)]}},{'id':_0x1d059b[_0x5dd3d1(0x84)]['id'],'params':{'unitId':_0x41464c,'subUnitId':_0x32f45c,'shapeId':_0x219a14[_0x5dd3d1(0x262)],'shapeType':_0x4ed4d1,'shapeData':_0x400bb8}}],'undos':[{'id':_0x5c75db[_0x5dd3d1(0x21c)]['id'],'params':{'unitId':_0x53ae7c,'subUnitId':_0x5e7a13,'type':_0x5c75db['DrawingApplyType']['INSERT'],'op':_0x106e1d[_0x5dd3d1(0x1dd)],'objects':_0x106e1d['objects']}},{'id':_0x1d059b['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x53ae7c,'subUnitId':_0x5e7a13,'shapeId':_0x219a14[_0x5dd3d1(0x262)],'shapeType':_0x4ed4d1,'shapeData':_0x400bb8}},{'id':_0x5c75db[_0x5dd3d1(0x21c)]['id'],'params':{'unitId':_0x41464c,'subUnitId':_0x32f45c,'type':_0x5c75db[_0x5dd3d1(0xd3)][_0x5dd3d1(0x126)],'op':_0x5084dd[_0x5dd3d1(0x1dd)],'objects':_0x5084dd[_0x5dd3d1(0xf4)]}},{'id':_0x1d059b[_0x5dd3d1(0x9e)]['id'],'params':{'unitId':_0x41464c,'subUnitId':_0x32f45c,'shapeId':_0x219a14[_0x5dd3d1(0x262)]}}]};}}[_0x3f2902(0x198)](_0x40053b){const _0x5d9747=_0x3f2902;let {toUnitId:_0xd59df1,toSubUnitId:_0x538cd7,drawing:_0x36f7f5,newTransforms:_0x2ea680,newDrawingId:_0x21d0ec,idMap:_0x2e8d88}=_0x40053b,_0x24eb1f={..._0x36f7f5,'unitId':_0xd59df1,'subUnitId':_0x538cd7,'drawingId':_0x21d0ec,'transform':_0x2ea680[_0x5d9747(0x343)],'sheetTransform':_0x2ea680['sheetTransform']},{redo:_0x3628ee,undo:_0x582e8f,objects:_0x389a70}=this[_0x5d9747(0x1f4)][_0x5d9747(0x3d0)]([_0x24eb1f]),_0x1af781=this['_shapeService'][_0x5d9747(0xd1)](_0x36f7f5[_0x5d9747(0x138)],_0x36f7f5[_0x5d9747(0x318)],_0x36f7f5[_0x5d9747(0x262)]);if(!_0x1af781)return{'redos':[],'undos':[]};let _0x265cdb=_0x1af781[_0x5d9747(0x3b9)](),_0x45aaa9=JSON[_0x5d9747(0x21d)](JSON['stringify'](_0x1af781[_0x5d9747(0x35f)]()));if(_0x45aaa9[_0x5d9747(0x2a1)]){var _0x202a7f,_0x1fc21d;let _0xf814e7=(_0x202a7f=_0x45aaa9[_0x5d9747(0x2a1)][_0x5d9747(0x208)])==null?void 0x0:_0x202a7f[_0x5d9747(0xb8)],_0x23250c=(_0x1fc21d=_0x45aaa9[_0x5d9747(0x2a1)]['to'])==null?void 0x0:_0x1fc21d[_0x5d9747(0xb8)],_0x583ea5=!_0xf814e7||_0x2e8d88[_0x5d9747(0x375)](_0xf814e7),_0x1d3313=!_0x23250c||_0x2e8d88[_0x5d9747(0x375)](_0x23250c);_0x583ea5&&_0xf814e7&&_0x45aaa9[_0x5d9747(0x2a1)][_0x5d9747(0x208)]?_0x45aaa9['relation'][_0x5d9747(0x208)]={..._0x45aaa9[_0x5d9747(0x2a1)][_0x5d9747(0x208)],'shapeId':_0x2e8d88['get'](_0xf814e7)}:_0x45aaa9[_0x5d9747(0x2a1)][_0x5d9747(0x208)]=void 0x0,_0x1d3313&&_0x23250c&&_0x45aaa9[_0x5d9747(0x2a1)]['to']?_0x45aaa9[_0x5d9747(0x2a1)]['to']={..._0x45aaa9[_0x5d9747(0x2a1)]['to'],'shapeId':_0x2e8d88[_0x5d9747(0x3dd)](_0x23250c)}:_0x45aaa9['relation']['to']=void 0x0;}return{'redos':[{'id':_0x5c75db[_0x5d9747(0x21c)]['id'],'params':{'unitId':_0xd59df1,'subUnitId':_0x538cd7,'type':_0x5c75db[_0x5d9747(0xd3)]['INSERT'],'op':_0x3628ee,'objects':_0x389a70}},{'id':_0x1d059b[_0x5d9747(0x84)]['id'],'params':{'unitId':_0xd59df1,'subUnitId':_0x538cd7,'shapeId':_0x21d0ec,'shapeType':_0x265cdb,'shapeData':_0x45aaa9}}],'undos':[{'id':_0x5c75db[_0x5d9747(0x21c)]['id'],'params':{'unitId':_0xd59df1,'subUnitId':_0x538cd7,'type':_0x5c75db[_0x5d9747(0xd3)]['REMOVE'],'op':_0x582e8f,'objects':_0x389a70}},{'id':_0x1d059b[_0x5d9747(0x9e)]['id'],'params':{'unitId':_0xd59df1,'subUnitId':_0x538cd7,'shapeId':_0x21d0ec}}]};}[_0x3f2902(0x149)](_0x1d9c57,_0xc7e26b,_0x48f40a,_0x377747){const _0x2d80b1=_0x3f2902;let {range:_0x26337e,skeleton:_0x5887d4}=_0xc7e26b,{range:_0x1f79ce,skeleton:_0x3280b4}=_0x48f40a,{transform:_0x3ed4dc,sheetTransform:_0x1a0bcf}=_0x1d9c57,_0xe03e={..._0x3ed4dc};if(_0x26337e){let _0x509123=(0x0,_0x58820c[_0x2d80b1(0x392)])(_0x5887d4,_0x26337e),_0x25cbf3=(0x0,_0x58820c[_0x2d80b1(0x392)])(_0x3280b4,_0x1f79ce);if(_0x509123&&_0x25cbf3){let _0x1aa4fc=_0x25cbf3[_0x2d80b1(0x42b)]-_0x509123[_0x2d80b1(0x42b)],_0x3fc120=_0x25cbf3['startY']-_0x509123[_0x2d80b1(0x2c5)];_0xe03e[_0x2d80b1(0x31c)]=(_0xe03e[_0x2d80b1(0x31c)]??0x0)+_0x1aa4fc,_0xe03e['top']=(_0xe03e[_0x2d80b1(0x21e)]??0x0)+_0x3fc120;}}else{let _0x2288da=(0x0,_0x58820c[_0x2d80b1(0x392)])(_0x3280b4,_0x1f79ce);if(_0x377747&&_0x2288da){let _0x27e050=(_0xe03e[_0x2d80b1(0x31c)]??0x0)-_0x377747['left'],_0x5c7588=(_0xe03e['top']??0x0)-_0x377747['top'];_0xe03e[_0x2d80b1(0x31c)]=_0x2288da['startX']+_0x27e050,_0xe03e['top']=_0x2288da[_0x2d80b1(0x2c5)]+_0x5c7588;}else _0xe03e[_0x2d80b1(0x31c)]=_0x2288da==null?void 0x0:_0x2288da[_0x2d80b1(0x42b)],_0xe03e[_0x2d80b1(0x21e)]=_0x2288da==null?void 0x0:_0x2288da[_0x2d80b1(0x2c5)];}return{'transform':_0xe03e,'sheetTransform':(0x0,_0x5c75db[_0x2d80b1(0x428)])(_0xe03e,_0x3280b4)??_0x1a0bcf};}};_0x4db5c2=_0x56683a([_0x3eb327(0x0,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x58820c[_0x3f2902(0xc4)])),_0x3eb327(0x1,(0x0,_0x233421['Inject'])(_0x2e7926[_0x3f2902(0x23a)])),_0x3eb327(0x2,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x5c75db[_0x3f2902(0x395)])),_0x3eb327(0x3,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1d059b[_0x3f2902(0x267)])),_0x3eb327(0x4,(0x0,_0x233421['Inject'])(_0x50c10c[_0x3f2902(0x237)]))],_0x4db5c2);var _0x5aa3af=class extends _0x1877f7['Shape']{constructor(_0x5d5e95,_0xa43d44){const _0x5827ba=_0x3f2902;super(_0x5d5e95,_0xa43d44),_0xdc22ec(this,_0x5827ba(0x30e),null),_0xdc22ec(this,_0x5827ba(0x106),null),_0xdc22ec(this,_0x5827ba(0x228),null),_0xdc22ec(this,_0x5827ba(0x1ad),null),_0xdc22ec(this,_0x5827ba(0x341),!0x1),_0xa43d44&&this[_0x5827ba(0xfa)](_0xa43d44);}[_0x3f2902(0x18f)](){const _0x1b8ab6=_0x3f2902;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1b8ab6(0x30e)]};}[_0x3f2902(0xfa)](_0x4716e8){const _0x3a512c=_0x3f2902;_0x4716e8[_0x3a512c(0xb8)]!==void 0x0&&(this[_0x3a512c(0x30e)]=_0x4716e8[_0x3a512c(0xb8)]),_0x4716e8[_0x3a512c(0x138)]!==void 0x0&&(this[_0x3a512c(0x228)]=_0x4716e8[_0x3a512c(0x138)]),_0x4716e8['subUnitId']!==void 0x0&&(this[_0x3a512c(0x1ad)]=_0x4716e8['subUnitId']),_0x4716e8[_0x3a512c(0x1d7)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x4716e8[_0x3a512c(0x1d7)]),this[_0x3a512c(0x3cd)]({'width':_0x4716e8['width'],'height':_0x4716e8[_0x3a512c(0x3ce)]});}['_draw'](_0x217b15){const _0x16e123=_0x3f2902;_0x1877f7[_0x16e123(0x248)][_0x16e123(0x163)](_0x217b15,{'radius':_0x136056[_0x16e123(0x288)]['cxnPointRadius'],'fill':_0x136056[_0x16e123(0x288)][_0x16e123(0x235)],'stroke':_0x136056[_0x16e123(0x288)][_0x16e123(0x37b)],'strokeWidth':_0x136056[_0x16e123(0x288)][_0x16e123(0x2df)],'evented':!0x0});}};let _0x14f389=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x201838,_0x3c7565,_0x289b68,_0x4ebdf3,_0x2115c7,_0x37cb80,_0xded2d,_0x44423d){const _0x578301=_0x3f2902;super(),this[_0x578301(0x339)]=_0x201838,this['_commandService']=_0x3c7565,this[_0x578301(0x367)]=_0x289b68,this[_0x578301(0xea)]=_0x4ebdf3,this[_0x578301(0xfc)]=_0x2115c7,this[_0x578301(0xaf)]=_0x37cb80,this[_0x578301(0x3f4)]=_0xded2d,this[_0x578301(0x1a5)]=_0x44423d,_0xdc22ec(this,_0x578301(0xdd),void 0x0),_0xdc22ec(this,'_unitId',void 0x0),_0xdc22ec(this,_0x578301(0x1ad),void 0x0),_0xdc22ec(this,_0x578301(0x140),[]),_0xdc22ec(this,_0x578301(0x362),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0xdc22ec(this,'_activeShapeModel',void 0x0),_0xdc22ec(this,_0x578301(0xf3),!0x1),_0xdc22ec(this,_0x578301(0x2f4),!0x1),_0xdc22ec(this,_0x578301(0x320),!0x1),_0xdc22ec(this,_0x578301(0x76),void 0x0),_0xdc22ec(this,_0x578301(0x351),void 0x0),_0xdc22ec(this,_0x578301(0xde),null),this[_0x578301(0x315)]();}[_0x3f2902(0x315)](){const _0x28ab2d=_0x3f2902;this['_registerDrawingFocusChangeHandler'](),this[_0x28ab2d(0x1f0)]();}['_getDrawingRect'](){const _0x1495f3=_0x3f2902;if(!this[_0x1495f3(0x228)]||!this['_subUnitId']||!this[_0x1495f3(0xdd)])return;let _0x2d5695={'unitId':this['_unitId'],'subUnitId':this[_0x1495f3(0x1ad)],'drawingId':this[_0x1495f3(0xdd)]},{transform:_0x5b4b76}=this[_0x1495f3(0xea)][_0x1495f3(0x379)](_0x2d5695);if(_0x5b4b76)return{'left':_0x5b4b76[_0x1495f3(0x31c)]||0x0,'top':_0x5b4b76['top']||0x0,'width':_0x5b4b76['width']||0x0,'height':_0x5b4b76[_0x1495f3(0x3ce)]||0x0,'flipX':_0x5b4b76[_0x1495f3(0x236)]||!0x1,'flipY':_0x5b4b76[_0x1495f3(0x90)]||!0x1,'angle':_0x5b4b76['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x5bc7e1=_0x3f2902;if(this['_unitId']===void 0x0||this[_0x5bc7e1(0x1ad)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x1465b2=this['_renderManagerService'][_0x5bc7e1(0x10d)](this[_0x5bc7e1(0x228)]);if(!_0x1465b2||!_0x1465b2[_0x5bc7e1(0x3ad)](_0x2e7926['SheetSkeletonManagerService'])[_0x5bc7e1(0x231)]())return;let {scene:_0x30f374}=_0x1465b2,_0x1ae4be=this[_0x5bc7e1(0x13d)]();if(!_0x1ae4be)return;let _0x4bb10d=this['_sheetsShapeService'][_0x5bc7e1(0xd1)](this['_unitId'],this[_0x5bc7e1(0x1ad)],this['_activeShapeId']);if(!_0x4bb10d||!(0x0,_0x136056[_0x5bc7e1(0x427)])(_0x4bb10d[_0x5bc7e1(0x3b9)]()))return;let _0x58c063=_0x4bb10d['getConnectorLinePoints']();if(_0x58c063[_0x5bc7e1(0xff)]<0x2)return;let _0x4025d3=new _0x136056[(_0x5bc7e1(0x1e6))](_0x1ae4be),_0x5dda0a=_0x58c063[0x0],_0x3e2f46=_0x58c063[_0x58c063[_0x5bc7e1(0xff)]-0x1],_0x57368e=_0x4025d3['localToWorld'](_0x5dda0a),_0x15756f=_0x4025d3[_0x5bc7e1(0x3c2)](_0x3e2f46);this[_0x5bc7e1(0x39d)](_0x30f374,{..._0x57368e},!0x0),this[_0x5bc7e1(0x39d)](_0x30f374,{..._0x15756f},!0x1);}[_0x3f2902(0x39d)](_0x473832,_0xf0fa28,_0x14af8c){const _0x336562=_0x3f2902;if(this[_0x336562(0xdd)]===void 0x0||this['_unitId']===void 0x0||this[_0x336562(0x1ad)]===void 0x0)return;let _0x3071e7='connector-handler-'+this[_0x336562(0x228)]+'-'+this[_0x336562(0x1ad)]+'-'+this[_0x336562(0xdd)]+'-'+(_0x14af8c?_0x336562(0x11a):_0x336562(0x261)),_0x181a15=_0x473832[_0x336562(0x35d)](_0x3071e7);if(_0x181a15){_0x181a15[_0x336562(0x3cd)]({'left':_0xf0fa28['x']-_0x136056[_0x336562(0x288)][_0x336562(0x39a)],'top':_0xf0fa28['y']-_0x136056['ShapeDefaultConfig'][_0x336562(0x39a)]});return;}let _0x3e4668=new _0x5aa3af(_0x3071e7,{'left':_0xf0fa28['x']-_0x136056[_0x336562(0x288)][_0x336562(0x39a)],'top':_0xf0fa28['y']-_0x136056[_0x336562(0x288)]['cxnPointRadius'],'shapeId':this[_0x336562(0xdd)],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x14af8c,'width':_0x136056[_0x336562(0x288)]['cxnPointRadius']*0x2,'height':_0x136056['ShapeDefaultConfig'][_0x336562(0x39a)]*0x2,'zIndex':_0x1877f7['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x336562(0x140)][_0x336562(0x33e)](_0x3e4668),this['_attachConnectorObjectEvent'](_0x3e4668,_0x473832,_0x14af8c),_0x473832[_0x336562(0x172)](_0x3e4668,_0x1877f7['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x3f2902(0x3ac)](_0x56a9a2,_0x508fe8){const _0x3af9c5=_0x3f2902;var _0x5127ab;let _0x1b131a={'x':0x0,'y':0x0};if(!_0x56a9a2||!_0x508fe8)return _0x1b131a;let _0xcec886=this[_0x3af9c5(0x367)][_0x3af9c5(0x10d)](_0x56a9a2);if(!_0xcec886||!_0xcec886['with'](_0x2e7926[_0x3af9c5(0x243)])[_0x3af9c5(0x148)](_0x508fe8))return _0x1b131a;let _0x4ce5f6=_0xcec886[_0x3af9c5(0x3ad)](_0x2e7926[_0x3af9c5(0x1e7)]),_0x6d5ad=_0x4ce5f6==null?void 0x0:_0x4ce5f6[_0x3af9c5(0x9f)]();if(!_0x6d5ad)return _0x1b131a;let _0x1a6f22=(_0x5127ab=this[_0x3af9c5(0xfc)][_0x3af9c5(0xaa)](_0x56a9a2))==null?void 0x0:_0x5127ab[_0x3af9c5(0x34f)](_0x508fe8);if(!_0x1a6f22)return _0x1b131a;let _0x120efd=(0x0,_0x2e7926[_0x3af9c5(0x153)])(_0x6d5ad[_0x3af9c5(0x10b)],_0x6d5ad['sheetViewStartColumn'],_0xcec886['scene'],_0x1a6f22);return _0x120efd?{'x':_0x120efd[_0x3af9c5(0x22a)],'y':_0x120efd[_0x3af9c5(0x25b)]}:_0x1b131a;}[_0x3f2902(0x3ab)](_0x2ec981,_0x15b0eb){const _0x321177=_0x3f2902;var _0x45fb66;let _0x9535b4=(_0x45fb66=this[_0x321177(0xfc)][_0x321177(0xaa)](_0x2ec981))==null?void 0x0:_0x45fb66['getSheetBySheetId'](_0x15b0eb);return(_0x9535b4==null?void 0x0:_0x9535b4[_0x321177(0x1f8)]())??0x1;}[_0x3f2902(0x3c1)](_0x2e6eea,_0x21b8e4,_0x547d97,_0x588485,_0x459995){const _0x497f16=_0x3f2902;this[_0x497f16(0x76)][_0x497f16(0x146)](),this['_cxtHandlerPointerUp'][_0x497f16(0x146)](),this[_0x497f16(0x3f4)][_0x497f16(0x3d4)]();let _0x550345=this[_0x497f16(0xde)];this['_sheetBasicShapeConnectionPointController'][_0x497f16(0x3b1)]();let _0x23ff3c=this[_0x497f16(0x3ac)](this['_unitId'],this[_0x497f16(0x1ad)]),_0x115df3=this[_0x497f16(0x3ab)](this[_0x497f16(0x228)],this[_0x497f16(0x1ad)]),_0x59952c={'x':_0x547d97[_0x497f16(0x2b6)]/_0x115df3+_0x23ff3c['x'],'y':_0x547d97[_0x497f16(0x210)]/_0x115df3+_0x23ff3c['y']},_0x5cf202=_0x550345?_0x550345[_0x497f16(0x1dc)]:_0x59952c,_0x53dd60=_0x588485?this[_0x497f16(0x1d5)][_0x497f16(0x1da)]():this['_activeShapeModel'][_0x497f16(0x1db)](),_0x4424d0=this[_0x497f16(0x1d5)]['getShapeType']();_0x53dd60?this['_handleConnectedEndpointPointerUp'](_0x53dd60,_0x5cf202,_0x588485,_0x550345,_0x459995):this['_handleFreeEndpointPointerUp'](_0x21b8e4,_0x5cf202,_0x588485,_0x550345,_0x459995,_0x4424d0),this[_0x497f16(0xf3)]=!0x1,this['_hasReset']=!0x1,this[_0x497f16(0xde)]=null,_0x2e6eea['enableObjectsEvent']();}[_0x3f2902(0x239)](_0x1d5d88,_0x4563d8,_0x9e9c74,_0x536f85,_0x4dc5c6,_0x582985){const _0x247b73=_0x3f2902;let _0x5c5535=_0x582985===_0x136056[_0x247b73(0x383)][_0x247b73(0x130)]||_0x582985===_0x136056[_0x247b73(0x383)][_0x247b73(0x14e)],_0x24bd00=_0x9e9c74?_0x4563d8:_0x1d5d88,_0x5d1df0=_0x9e9c74?_0x1d5d88:_0x4563d8,_0x40a0ea=this[_0x247b73(0x1d5)][_0x247b73(0x402)](),_0xca273e=(0x0,_0x136056[_0x247b73(0x258)])(this[_0x247b73(0x1d5)][_0x247b73(0x3b9)]()),_0x575948=_0x136056[_0x247b73(0x1e6)]['getBentTypeFromPoints'](_0x40a0ea,_0xca273e),_0x27da05=_0x5c5535?_0x136056[_0x247b73(0x1e6)]['computeStraightConnectorLayout'](_0x24bd00,_0x5d1df0):_0x136056['ConnectorCoordinateTransform'][_0x247b73(0x178)](_0x1d5d88,_0x4563d8,_0x9e9c74,_0x575948);_0x536f85?this[_0x247b73(0x282)](_0x27da05,_0x536f85,_0x9e9c74,_0x4dc5c6):this['_executeResizeCommand'](_0x27da05,_0x4dc5c6);}[_0x3f2902(0x3a3)](_0x5caaf6,_0x3109f9,_0x798f41,_0x30a190,_0xa487a){const _0x108204=_0x3f2902;let _0x3ffb8f=this['_getConnectPointInfo'](_0x5caaf6);if(!_0x3ffb8f)return;let _0x370730=_0x30a190?_0x30a190[_0x108204(0x24d)]:this[_0x108204(0x1bf)](_0x3ffb8f[_0x108204(0x388)],_0x3109f9),_0x4b3725;if(_0x30a190){let _0x432bc2=this[_0x108204(0xea)]['getDrawingByParam']({'unitId':_0x30a190[_0x108204(0x138)],'subUnitId':_0x30a190[_0x108204(0x318)],'drawingId':_0x30a190[_0x108204(0xb8)]});if(_0x432bc2!=null&&_0x432bc2[_0x108204(0x343)]){let {left:_0x16b8a2=0x0,top:_0x1fae98=0x0,width:_0x530c0e=0x0,height:_0x2b0b87=0x0,angle:_0x5f1a61}=_0x432bc2[_0x108204(0x343)];_0x4b3725=(0x0,_0x136056[_0x108204(0x3f3)])({'left':_0x16b8a2,'top':_0x1fae98,'width':_0x530c0e,'height':_0x2b0b87},_0x5f1a61||0x0);}else _0x4b3725={'left':_0x3109f9['x'],'top':_0x3109f9['y'],'width':0x0,'height':0x0};}else _0x4b3725={'left':_0x3109f9['x'],'top':_0x3109f9['y'],'width':0x0,'height':0x0};let _0x484f66={'point':_0x3109f9,'angle':_0x370730,'bounds':_0x4b3725},_0x3cc7fb=_0x798f41?_0x484f66:_0x3ffb8f,_0x111283=_0x798f41?_0x3ffb8f:_0x484f66,_0x463e18=this[_0x108204(0x1d5)]['getShapeType'](),_0x5c9c4c=(0x0,_0x136056[_0x108204(0x197)])(_0x3cc7fb,_0x111283,_0x463e18);this[_0x108204(0x1d5)][_0x108204(0x220)]();let _0x884d7d=(0x0,_0x136056[_0x108204(0x333)])(_0x5c9c4c,_0x463e18);_0x30a190?this['_executeConnectedRouteConnectionCommand'](_0x884d7d,_0x30a190,_0x5caaf6,_0x798f41,_0xa487a):this[_0x108204(0x332)](_0x884d7d,_0x5caaf6,_0x798f41,_0xa487a);}['_executeConnectionCommand'](_0x89042b,_0x2a10e3,_0x519719,_0x23e74a){const _0x2c4de5=_0x3f2902;let _0x1ab66f=this[_0x2c4de5(0x1d5)][_0x2c4de5(0x35f)]()['relation'],_0x4e7c71={..._0x1ab66f},_0x562bb3={'shapeId':_0x2a10e3['shapeId'],'cxnIndex':_0x2a10e3[_0x2c4de5(0x165)]};_0x519719?_0x4e7c71['from']=_0x562bb3:_0x4e7c71['to']=_0x562bb3;let _0x18ef72=this['_activeShapeModel'][_0x2c4de5(0x3b9)](),_0x423c4=(0x0,_0x136056[_0x2c4de5(0x333)])(_0x89042b[_0x2c4de5(0x16d)],_0x18ef72),_0x455a61={'unitId':this[_0x2c4de5(0x228)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x2c4de5(0xdd)],'width':_0x89042b[_0x2c4de5(0x352)][_0x2c4de5(0x1e1)],'height':_0x89042b[_0x2c4de5(0x352)][_0x2c4de5(0x3ce)],'left':_0x89042b[_0x2c4de5(0x352)][_0x2c4de5(0x31c)],'top':_0x89042b[_0x2c4de5(0x352)]['top'],'flipX':_0x89042b['worldRect'][_0x2c4de5(0x236)]||!0x1,'flipY':_0x89042b[_0x2c4de5(0x352)][_0x2c4de5(0x90)]||!0x1,'newAdjustValues':_0x423c4[_0x2c4de5(0x12c)],'oldAdjustValues':_0x23e74a,'oldRelation':_0x1ab66f,'newRelation':_0x4e7c71,'newLineType':_0x423c4[_0x2c4de5(0x42a)],'oldLineType':_0x18ef72};this[_0x2c4de5(0x116)]['executeCommand'](_0x1d059b[_0x2c4de5(0x265)]['id'],_0x455a61);}['_executeResizeCommand'](_0x445359,_0x32a20e){const _0xd1c739=_0x3f2902;let _0x394aa9=this[_0xd1c739(0x1d5)]['getShapeType'](),_0x3124ee=(0x0,_0x136056[_0xd1c739(0x333)])(_0x445359[_0xd1c739(0x16d)],_0x394aa9),_0x593e2c={'unitId':this[_0xd1c739(0x228)],'subUnitId':this[_0xd1c739(0x1ad)],'shapeId':this[_0xd1c739(0xdd)],'width':_0x445359[_0xd1c739(0x352)][_0xd1c739(0x1e1)],'height':_0x445359[_0xd1c739(0x352)][_0xd1c739(0x3ce)],'left':_0x445359[_0xd1c739(0x352)]['left'],'top':_0x445359['worldRect'][_0xd1c739(0x21e)],'flipX':_0x445359[_0xd1c739(0x352)][_0xd1c739(0x236)]||!0x1,'flipY':_0x445359[_0xd1c739(0x352)][_0xd1c739(0x90)]||!0x1,'angle':_0x445359['worldRect']['angle']||0x0,'newAdjustValues':_0x3124ee[_0xd1c739(0x12c)],'oldAdjustValues':_0x32a20e,'newLineType':_0x3124ee['lineType'],'oldLineType':_0x394aa9};this['_commandService'][_0xd1c739(0x2aa)](_0x1d059b['UpdateLineShapeResizeCommand']['id'],_0x593e2c);}['_executeConnectedRouteConnectionCommand'](_0x330d18,_0x4bb819,_0x2f8912,_0xf1460a,_0x618317){const _0x2a706b=_0x3f2902;let _0x3dc730=this[_0x2a706b(0x1d5)]['getShapeData']()[_0x2a706b(0x2a1)],_0x2a4aee={..._0x3dc730},_0x4bb514={'shapeId':_0x4bb819[_0x2a706b(0xb8)],'cxnIndex':_0x4bb819['cxnIndex']};_0xf1460a?(_0x2a4aee[_0x2a706b(0x208)]=_0x4bb514,_0x2a4aee['to']=_0x2f8912):(_0x2a4aee[_0x2a706b(0x208)]=_0x2f8912,_0x2a4aee['to']=_0x4bb514);let _0x240928={'unitId':this[_0x2a706b(0x228)],'subUnitId':this[_0x2a706b(0x1ad)],'connectorShapeId':this[_0x2a706b(0xdd)],'width':_0x330d18['worldRect'][_0x2a706b(0x1e1)],'height':_0x330d18[_0x2a706b(0x352)][_0x2a706b(0x3ce)],'left':_0x330d18['worldRect'][_0x2a706b(0x31c)],'top':_0x330d18['worldRect'][_0x2a706b(0x21e)],'flipX':_0x330d18[_0x2a706b(0x352)][_0x2a706b(0x236)]||!0x1,'flipY':_0x330d18[_0x2a706b(0x352)]['flipY']||!0x1,'oldAdjustValues':_0x618317,'newAdjustValues':_0x330d18[_0x2a706b(0x12c)],'newLineType':_0x330d18[_0x2a706b(0x42a)],'rotation':_0x330d18[_0x2a706b(0x2cb)],'oldRelation':_0x3dc730,'newRelation':_0x2a4aee};this[_0x2a706b(0x116)][_0x2a706b(0x2aa)](_0x1d059b[_0x2a706b(0x265)]['id'],_0x240928);}[_0x3f2902(0x332)](_0x413cfc,_0x2470a4,_0x3690df,_0x320f80){const _0x286ca8=_0x3f2902;let _0x3c4b2a=this[_0x286ca8(0x1d5)][_0x286ca8(0x35f)]()[_0x286ca8(0x2a1)],_0x4dbc02={};_0x3690df?(_0x4dbc02['to']=_0x2470a4,_0x4dbc02[_0x286ca8(0x208)]=void 0x0):(_0x4dbc02[_0x286ca8(0x208)]=_0x2470a4,_0x4dbc02['to']=void 0x0);let _0x5786b9={'unitId':this[_0x286ca8(0x228)],'subUnitId':this[_0x286ca8(0x1ad)],'connectorShapeId':this[_0x286ca8(0xdd)],'width':_0x413cfc[_0x286ca8(0x352)][_0x286ca8(0x1e1)],'height':_0x413cfc[_0x286ca8(0x352)][_0x286ca8(0x3ce)],'left':_0x413cfc[_0x286ca8(0x352)]['left'],'top':_0x413cfc[_0x286ca8(0x352)][_0x286ca8(0x21e)],'flipX':_0x413cfc[_0x286ca8(0x352)][_0x286ca8(0x236)]||!0x1,'flipY':_0x413cfc[_0x286ca8(0x352)][_0x286ca8(0x90)]||!0x1,'oldAdjustValues':_0x320f80,'newAdjustValues':_0x413cfc[_0x286ca8(0x12c)],'newLineType':_0x413cfc[_0x286ca8(0x42a)],'rotation':_0x413cfc[_0x286ca8(0x2cb)],'oldRelation':_0x3c4b2a,'newRelation':_0x4dbc02};this[_0x286ca8(0x116)][_0x286ca8(0x2aa)](_0x1d059b[_0x286ca8(0x265)]['id'],_0x5786b9);}[_0x3f2902(0x10c)](_0x5e3120,_0x4fc46a,_0x25449b){const _0x437cb2=_0x3f2902;this[_0x437cb2(0x374)]((0x0,_0x233421[_0x437cb2(0xf6)])(_0x5e3120[_0x437cb2(0x218)][_0x437cb2(0x297)]((_0x57bdea,_0x519c05)=>{const _0x24e768=_0x437cb2;let _0x251ba3=_0x5e3120[_0x24e768(0x18f)]();if(this[_0x24e768(0x1d5)]=this[_0x24e768(0xaf)][_0x24e768(0xd1)](_0x251ba3['unitId'],_0x251ba3[_0x24e768(0x318)],_0x251ba3['drawingId']),!this['_activeShapeModel'])return;let _0x534a05={};this[_0x24e768(0x1d5)][_0x24e768(0x35e)]()[_0x24e768(0x120)](_0x78103e=>{const _0x591127=_0x24e768;let _0x5818a8=this[_0x591127(0x1d5)][_0x591127(0x37f)](_0x78103e);_0x5818a8!==void 0x0&&(_0x534a05[_0x78103e]=_0x5818a8);});let _0x4dd8b2=this[_0x24e768(0x13d)]();if(!_0x4dd8b2)return;this['_baseDrawingRect']={..._0x4dd8b2};let _0x296be5=new _0x136056[(_0x24e768(0x1e6))](this[_0x24e768(0x362)]),_0x55ef16=(0x0,_0x511ed7[_0x24e768(0x409)])({'unitId':this[_0x24e768(0x228)],'subUnitId':this[_0x24e768(0x1ad)],'drawingId':this[_0x24e768(0xdd)]}),_0x5dbd77=_0x4fc46a[_0x24e768(0x35d)](_0x55ef16);this[_0x24e768(0xf3)]=!0x0,_0x4fc46a[_0x24e768(0xd5)](),this[_0x24e768(0x1a5)]['startConnectionDetection'](_0x4fc46a,this[_0x24e768(0x228)],this[_0x24e768(0x1ad)],this['_activeShapeId']),this[_0x24e768(0xde)]=null;let _0x101221=this[_0x24e768(0x1d5)][_0x24e768(0x402)](),_0x44bcc3=_0x101221[0x0],_0x19d595=_0x101221[_0x101221['length']-0x1],_0x512a75=_0x25449b?_0x296be5[_0x24e768(0x3c2)](_0x19d595):_0x296be5[_0x24e768(0x3c2)](_0x44bcc3);this[_0x24e768(0x76)]=_0x4fc46a[_0x24e768(0x1b0)][_0x24e768(0x297)]((_0x5600d1,_0x5da057)=>{const _0x35bc6c=_0x24e768;if(!this['_isConnecting']||!this[_0x35bc6c(0x1d5)])return;this[_0x35bc6c(0x320)]||=(this['_sheetShapeAdjustController'][_0x35bc6c(0x27b)](),this['_activeShapeModel']['clearAdjustValue'](),!0x0);let _0x5772c3=this['_getScrollInfo'](this[_0x35bc6c(0x228)],this[_0x35bc6c(0x1ad)]),_0xde335c=this[_0x35bc6c(0x3ab)](this['_unitId'],this[_0x35bc6c(0x1ad)]),_0x44daf9={'x':_0x5600d1[_0x35bc6c(0x2b6)]/_0xde335c+_0x5772c3['x'],'y':_0x5600d1['offsetY']/_0xde335c+_0x5772c3['y']},_0x3a3008=this[_0x35bc6c(0x1a5)][_0x35bc6c(0x2e4)](_0x44daf9);if(_0x3a3008){let {shapeId:_0x1e92ec,unitId:_0x3e2d72,subUnitId:_0x332c5c}=_0x3a3008;if(_0x1e92ec&&_0x3e2d72&&_0x332c5c){let _0x3a8db4=(0x0,_0x511ed7['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3e2d72,'subUnitId':_0x332c5c,'drawingId':_0x1e92ec});_0x3a3008[_0x35bc6c(0x24d)]=(_0x4fc46a['getObjectIncludeInGroup'](_0x3a8db4)['angle']||0x0)+_0x3a3008['angle'];}}this[_0x35bc6c(0xde)]=_0x3a3008;let _0x2b897e=_0x25449b?this[_0x35bc6c(0x1d5)]['getEndConnectInfo']():this['_activeShapeModel'][_0x35bc6c(0x1db)]();if(_0x2b897e){this[_0x35bc6c(0x253)](_0x2b897e,_0x44daf9,_0x25449b,_0x5dbd77,_0x5e3120);return;}this[_0x35bc6c(0x1ab)](_0x44daf9,_0x512a75,_0x25449b,_0x5dbd77,_0x5e3120);}),this[_0x24e768(0x351)]=_0x4fc46a[_0x24e768(0xa7)][_0x24e768(0x297)]((_0x2010b1,_0x39372c)=>{this['_handleConnectorPointerUp'](_0x4fc46a,_0x512a75,_0x2010b1,_0x25449b,_0x534a05);}),_0x519c05['stopPropagation']();})));}[_0x3f2902(0x2b8)](_0x503dff,_0x11dcb0,_0x4d3a16){const _0xe2000f=_0x3f2902;let _0x43ab3d=this[_0xe2000f(0xaf)][_0xe2000f(0x169)](_0x503dff,_0x11dcb0,_0x4d3a16);if(!_0x43ab3d||_0x43ab3d['length']===0x0)return;let _0xc6fb8a=this[_0xe2000f(0x367)][_0xe2000f(0x10d)](_0x503dff);if(!_0xc6fb8a)return;let {scene:_0x5b2b91}=_0xc6fb8a;for(let _0x249530 of _0x43ab3d){let _0x3202e1=_0x249530[_0xe2000f(0x369)],_0x53894c=this[_0xe2000f(0xaf)][_0xe2000f(0xd1)](_0x503dff,_0x11dcb0,_0x3202e1);if(!_0x53894c)continue;let _0x375d34=_0x53894c['getStartConnectInfo'](),_0x2c2346=_0x53894c['getEndConnectInfo'](),_0x598c74=(_0x375d34==null?void 0x0:_0x375d34[_0xe2000f(0xb8)])===_0x4d3a16,_0x2bf27c=(0x0,_0x511ed7[_0xe2000f(0x409)])({'unitId':_0x503dff,'subUnitId':_0x11dcb0,'drawingId':_0x3202e1}),_0x5b14c5=_0x5b2b91[_0xe2000f(0x35d)](_0x2bf27c);if(!_0x5b14c5)continue;let _0x169f7c=this[_0xe2000f(0xea)][_0xe2000f(0x379)]({'unitId':_0x503dff,'subUnitId':_0x11dcb0,'drawingId':_0x3202e1});_0x169f7c!=null&&_0x169f7c[_0xe2000f(0x343)]&&(_0x375d34&&_0x2c2346?this['_rerouteConnectorLine'](_0x503dff,_0x11dcb0,_0x3202e1,_0x53894c,_0x375d34,_0x2c2346,_0x5b14c5):this['_moveConnectorWithShape'](_0x503dff,_0x11dcb0,_0x3202e1,_0x53894c,_0x598c74?_0x375d34:_0x2c2346,_0x598c74,_0x169f7c,_0x5b14c5));}}[_0x3f2902(0x229)](_0x4caac1,_0x594651,_0x494d2a,_0x4d328a,_0x21c539,_0x450c9e,_0x457bbf){const _0xfbabe4=_0x3f2902;let _0x4bf5f3=this[_0xfbabe4(0x228)],_0x43ef2b=this['_subUnitId'];this[_0xfbabe4(0x228)]=_0x4caac1,this[_0xfbabe4(0x1ad)]=_0x594651;let _0x45b8da=this[_0xfbabe4(0x3fe)](_0x21c539),_0x543fdb=this['_getConnectPointInfo'](_0x450c9e);if(this[_0xfbabe4(0x228)]=_0x4bf5f3,this['_subUnitId']=_0x43ef2b,!_0x45b8da||!_0x543fdb)return;let _0xe24ce2=_0x4d328a[_0xfbabe4(0x3b9)](),_0x373ac3=(0x0,_0x136056[_0xfbabe4(0x197)])(_0x45b8da,_0x543fdb,_0xe24ce2);_0x373ac3&&_0x4d328a[_0xfbabe4(0xd0)](_0x373ac3);let _0x59b41c=(0x0,_0x136056[_0xfbabe4(0x333)])(_0x373ac3,_0xe24ce2);_0x59b41c[_0xfbabe4(0x42a)]!==_0xe24ce2&&_0x4d328a[_0xfbabe4(0x105)](_0x59b41c[_0xfbabe4(0x42a)]),_0x4d328a['clearAdjustValue']();for(let [_0x357fed,_0x4c5cd7]of Object['entries'](_0x59b41c[_0xfbabe4(0x12c)]))_0x4d328a[_0xfbabe4(0x3c4)](_0x357fed,_0x4c5cd7);_0x4d328a[_0xfbabe4(0x1ea)]({'width':_0x59b41c[_0xfbabe4(0x352)][_0xfbabe4(0x1e1)],'height':_0x59b41c[_0xfbabe4(0x352)][_0xfbabe4(0x3ce)]}),_0x457bbf[_0xfbabe4(0x3cd)]({'flipX':_0x59b41c[_0xfbabe4(0x352)][_0xfbabe4(0x236)],'flipY':_0x59b41c[_0xfbabe4(0x352)][_0xfbabe4(0x90)],'left':_0x59b41c[_0xfbabe4(0x352)][_0xfbabe4(0x31c)],'top':_0x59b41c[_0xfbabe4(0x352)][_0xfbabe4(0x21e)],'width':_0x59b41c[_0xfbabe4(0x352)][_0xfbabe4(0x1e1)],'height':_0x59b41c['worldRect'][_0xfbabe4(0x3ce)],'angle':_0x59b41c[_0xfbabe4(0x2cb)]}),_0x4d328a[_0xfbabe4(0x220)]();}[_0x3f2902(0x23e)](_0x413fc3,_0x1afdef,_0x2da7ca,_0x17d283,_0xcd72dd,_0x5324a8,_0x1d8963,_0xfb701e){const _0x66b871=_0x3f2902;let _0x4a13ab=this['_unitId'],_0x4cfd6f=this[_0x66b871(0x1ad)];this[_0x66b871(0x228)]=_0x413fc3,this[_0x66b871(0x1ad)]=_0x1afdef;let _0x58953f=this[_0x66b871(0x3fe)](_0xcd72dd);if(this[_0x66b871(0x228)]=_0x4a13ab,this[_0x66b871(0x1ad)]=_0x4cfd6f,!_0x58953f)return;let {left:_0x20b633=0x0,top:_0x3de352=0x0,width:_0x3df2da=0x0,height:_0x15ec8e=0x0,flipX:_0x3e3746=!0x1,flipY:_0x413b99=!0x1}=_0x1d8963[_0x66b871(0x343)],_0xa0c491=_0x17d283['getConnectorLinePoints']();if(_0xa0c491['length']<0x2)return;let _0x189356=new _0x136056['ConnectorCoordinateTransform']({'left':_0x20b633,'top':_0x3de352,'width':_0x3df2da,'height':_0x15ec8e,'flipX':_0x3e3746,'flipY':_0x413b99}),_0x4b0aea=_0x5324a8?_0xa0c491[_0xa0c491[_0x66b871(0xff)]-0x1]:_0xa0c491[0x0],_0x3ccb1c=_0x189356[_0x66b871(0x3c2)](_0x4b0aea),_0x1bc1aa=_0x136056['ConnectorCoordinateTransform'][_0x66b871(0x178)](_0x3ccb1c,_0x58953f[_0x66b871(0x388)],!_0x5324a8);_0xfb701e[_0x66b871(0x3cd)]({'flipX':_0x1bc1aa[_0x66b871(0x352)][_0x66b871(0x236)],'flipY':_0x1bc1aa[_0x66b871(0x352)]['flipY'],'left':_0x1bc1aa[_0x66b871(0x352)]['left'],'top':_0x1bc1aa[_0x66b871(0x352)][_0x66b871(0x21e)],'width':_0x1bc1aa[_0x66b871(0x352)][_0x66b871(0x1e1)],'height':_0x1bc1aa['worldRect'][_0x66b871(0x3ce)],'angle':_0x1bc1aa[_0x66b871(0x352)][_0x66b871(0x24d)]}),_0xfb701e[_0x66b871(0xb9)](!0x0);}[_0x3f2902(0x1fd)](){const _0x18e749=_0x3f2902;this[_0x18e749(0x140)][_0x18e749(0xff)]!==0x0&&(this['_connectorObjects'][_0x18e749(0x120)](_0x440447=>{_0x440447['dispose']();}),this[_0x18e749(0x140)]=[]);}[_0x3f2902(0x1f0)](){const _0x2d9f8d=_0x3f2902;let _0x4c11c3=this[_0x2d9f8d(0xfc)][_0x2d9f8d(0x11c)](_0x233421['UniverInstanceType'][_0x2d9f8d(0x1ec)]);this[_0x2d9f8d(0x374)](_0x4c11c3[_0x2d9f8d(0x3de)]((0x0,_0x17772c[_0x2d9f8d(0x1cd)])(_0x2813c6=>_0x2813c6?_0x2813c6[_0x2d9f8d(0x3c7)][_0x2d9f8d(0x3de)]((0x0,_0x17772c[_0x2d9f8d(0x1cd)])(_0x21b42d=>{const _0xad518e=_0x2d9f8d;if(!_0x21b42d)return _0x17772c['EMPTY'];let _0x49b556=_0x2813c6[_0xad518e(0x2f1)](),_0x58e3fb=this[_0xad518e(0x367)][_0xad518e(0x10d)](_0x49b556),_0x57c9be=_0x58e3fb==null?void 0x0:_0x58e3fb[_0xad518e(0x15a)];return _0x57c9be?(0x0,_0x17772c['of'])(_0x57c9be):_0x17772c[_0xad518e(0xf7)];})):_0x17772c[_0x2d9f8d(0xf7)]))[_0x2d9f8d(0x94)](_0x149311=>{const _0x12fe31=_0x2d9f8d;let _0x314ec7=_0x149311[_0x12fe31(0x281)]();this[_0x12fe31(0x374)](_0x149311[_0x12fe31(0x1b0)][_0x12fe31(0x297)](_0x5ad484=>{const _0x4fdc73=_0x12fe31;this[_0x4fdc73(0x2f4)]&&this[_0x4fdc73(0xdd)]&&this[_0x4fdc73(0x1fd)]();})),this[_0x12fe31(0x374)](_0x314ec7[_0x12fe31(0x1ba)]['subscribe'](_0x32e3e7=>{const _0x3561d3=_0x12fe31;let {objects:_0x5d7a05}=_0x32e3e7;this['_clearShapeConnectorHandlerObjects'](),_0x5d7a05!==null&&_0x5d7a05[_0x3561d3(0x3bd)]===0x1&&_0x5d7a05['values']()[_0x3561d3(0xee)]()[_0x3561d3(0x1f6)]instanceof _0x12c822&&(this[_0x3561d3(0x2f4)]=!0x0);})),this[_0x12fe31(0x374)](_0x314ec7[_0x12fe31(0x8d)][_0x12fe31(0x94)](_0x4d739b=>{const _0x555184=_0x12fe31;this[_0x555184(0x2f4)]&&this[_0x555184(0x1fd)]();})),this[_0x12fe31(0x374)](_0x149311[_0x12fe31(0xa7)]['subscribeEvent'](()=>{const _0x3a26b0=_0x12fe31;this[_0x3a26b0(0x2f4)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x3a26b0(0x378)]());})),this[_0x12fe31(0x374)](_0x314ec7[_0x12fe31(0x3af)][_0x12fe31(0x94)](()=>{const _0xab41d5=_0x12fe31;this[_0xab41d5(0x228)]&&this[_0xab41d5(0x1ad)]&&this['_activeShapeId']&&this[_0xab41d5(0xea)][_0xab41d5(0x379)]({'unitId':this[_0xab41d5(0x228)],'subUnitId':this[_0xab41d5(0x1ad)],'drawingId':this[_0xab41d5(0xdd)]})&&(this[_0xab41d5(0x1fd)](),this[_0xab41d5(0x378)]());}));}));}[_0x3f2902(0x419)](){const _0x2a84f3=_0x3f2902;this['disposeWithMe'](this['_drawingManagerService'][_0x2a84f3(0x2f7)][_0x2a84f3(0x94)](_0x16db68=>{const _0x10f143=_0x2a84f3;if(_0x16db68['length']===0x1){let _0x1cedb0=_0x16db68[0x0];if(_0x1cedb0[_0x10f143(0x1a6)]===_0x233421['DrawingTypeEnum'][_0x10f143(0x347)]){let _0x44e5f1=this[_0x10f143(0xaf)][_0x10f143(0xd1)](_0x1cedb0[_0x10f143(0x138)],_0x1cedb0[_0x10f143(0x318)],_0x1cedb0[_0x10f143(0x262)]);if(_0x44e5f1&&(0x0,_0x136056[_0x10f143(0x427)])(_0x44e5f1[_0x10f143(0x3b9)]())){this['_activeShapeId']=_0x1cedb0[_0x10f143(0x262)],this[_0x10f143(0x228)]=_0x1cedb0['unitId'],this[_0x10f143(0x1ad)]=_0x1cedb0[_0x10f143(0x318)],this[_0x10f143(0x1fd)](),this[_0x10f143(0x378)]();return;}}}this[_0x10f143(0xdd)]=void 0x0,this[_0x10f143(0x228)]=void 0x0,this[_0x10f143(0x1ad)]=void 0x0,this[_0x10f143(0x1fd)]();})),this[_0x2a84f3(0x374)](this[_0x2a84f3(0xea)][_0x2a84f3(0x2e0)][_0x2a84f3(0x94)](_0x1922e5=>{const _0x3fe323=_0x2a84f3;if(_0x1922e5['length']===0x1){var _0x2172cf;let _0x48b739=_0x1922e5[0x0],_0x86295d=(_0x2172cf=this[_0x3fe323(0xea)][_0x3fe323(0x379)](_0x48b739))==null?void 0x0:_0x2172cf[_0x3fe323(0x1a6)];_0x86295d===_0x233421['DrawingTypeEnum']['DRAWING_SHAPE']&&_0x48b739[_0x3fe323(0x262)]===this[_0x3fe323(0xdd)]?(this[_0x3fe323(0x1fd)](),this[_0x3fe323(0x378)]()):!this[_0x3fe323(0xdd)]&&_0x86295d===_0x233421[_0x3fe323(0x2d0)][_0x3fe323(0x347)]&&this[_0x3fe323(0x2b8)](_0x48b739[_0x3fe323(0x138)],_0x48b739[_0x3fe323(0x318)],_0x48b739[_0x3fe323(0x262)]);}})),this['disposeWithMe'](this[_0x2a84f3(0xea)][_0x2a84f3(0x134)]['subscribe'](_0x114cad=>{const _0x4da947=_0x2a84f3;for(let _0x415930 of _0x114cad){let {drawingId:_0x4743ee}=_0x415930;if(this[_0x4da947(0xdd)]===_0x4743ee){this[_0x4da947(0xcb)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5fb0df,_0xd4fddd,_0x3d6f0a,_0x4c3059,_0x3e7815){const _0x590f9e=_0x3f2902;var _0x3d02d9;if(!this[_0x590f9e(0x1d5)])return;let _0x107223=this[_0x590f9e(0x3fe)](_0x5fb0df);if(!_0x107223)return;let _0x589d07=this[_0x590f9e(0xde)]?this['_currentConnectionTarget']['worldPoint']:_0xd4fddd,_0x2467ad=this[_0x590f9e(0xde)]?this[_0x590f9e(0xde)][_0x590f9e(0x24d)]:this[_0x590f9e(0x1bf)](_0x107223[_0x590f9e(0x388)],_0x589d07),_0x17e2ba;if(this['_currentConnectionTarget']){let _0x3f1800=this['_drawingManagerService'][_0x590f9e(0x379)]({'unitId':this['_currentConnectionTarget'][_0x590f9e(0x138)],'subUnitId':this[_0x590f9e(0xde)][_0x590f9e(0x318)],'drawingId':this[_0x590f9e(0xde)][_0x590f9e(0xb8)]});if(_0x3f1800!=null&&_0x3f1800[_0x590f9e(0x343)]){let {left:_0x34535d=0x0,top:_0x2aba8f=0x0,width:_0x103226=0x0,height:_0x566e8c=0x0,angle:_0x465584}=_0x3f1800[_0x590f9e(0x343)];_0x17e2ba=(0x0,_0x136056[_0x590f9e(0x3f3)])({'left':_0x34535d,'top':_0x2aba8f,'width':_0x103226,'height':_0x566e8c},_0x465584||0x0);}else _0x17e2ba={'left':_0x589d07['x'],'top':_0x589d07['y'],'width':0x0,'height':0x0};}else _0x17e2ba={'left':_0x589d07['x'],'top':_0x589d07['y'],'width':0x0,'height':0x0};let _0x3f5f80={'point':_0x589d07,'angle':_0x2467ad,'bounds':_0x17e2ba},_0x4ef688=_0x3d6f0a?_0x3f5f80:_0x107223,_0x122664=_0x3d6f0a?_0x107223:_0x3f5f80,_0x5060d2=this['_activeShapeModel'][_0x590f9e(0x3b9)](),_0x4dcbfb=(0x0,_0x136056[_0x590f9e(0x197)])(_0x4ef688,_0x122664,_0x5060d2);_0x4dcbfb&&this[_0x590f9e(0x1d5)]['updateLinePoints'](_0x4dcbfb);let _0x2f48ac=(0x0,_0x136056[_0x590f9e(0x333)])(_0x4dcbfb,_0x5060d2);_0x2f48ac[_0x590f9e(0x42a)]!==_0x5060d2&&this['_activeShapeModel'][_0x590f9e(0x105)](_0x2f48ac['lineType']);for(let [_0x5a6a0d,_0x1c2dd8]of Object[_0x590f9e(0x1fc)](_0x2f48ac[_0x590f9e(0x12c)]))this['_activeShapeModel'][_0x590f9e(0x3c4)](_0x5a6a0d,_0x1c2dd8);this['_activeShapeModel'][_0x590f9e(0x1ea)]({'width':_0x2f48ac['worldRect']['width'],'height':_0x2f48ac['worldRect']['height']}),_0x4c3059['transformByState']({'flipX':_0x2f48ac['worldRect'][_0x590f9e(0x236)],'flipY':_0x2f48ac[_0x590f9e(0x352)][_0x590f9e(0x90)],'left':_0x2f48ac['worldRect']['left'],'top':_0x2f48ac['worldRect'][_0x590f9e(0x21e)],'width':_0x2f48ac[_0x590f9e(0x352)][_0x590f9e(0x1e1)],'height':_0x2f48ac[_0x590f9e(0x352)][_0x590f9e(0x3ce)],'angle':_0x2f48ac[_0x590f9e(0x2cb)]}),_0x4c3059[_0x590f9e(0xb9)](!0x0);let _0x1e59de=((_0x3d02d9=this[_0x590f9e(0xde)])==null?void 0x0:_0x3d02d9['worldPoint'])??_0xd4fddd;_0x3e7815[_0x590f9e(0x3cd)]({'left':_0x1e59de['x']-_0x136056[_0x590f9e(0x288)]['cxnPointRadius'],'top':_0x1e59de['y']-_0x136056[_0x590f9e(0x288)]['cxnPointRadius']});}[_0x3f2902(0x1ab)](_0x23b728,_0x5d85a8,_0x4c7794,_0x395847,_0xd408cb){const _0x27b141=_0x3f2902;var _0xe05402,_0x2bdbf4;let _0x278360=((_0xe05402=this[_0x27b141(0xde)])==null?void 0x0:_0xe05402[_0x27b141(0x1dc)])??_0x23b728,_0x13d2c1=_0x136056['ConnectorCoordinateTransform'][_0x27b141(0x178)](_0x5d85a8,_0x278360,_0x4c7794);_0x395847[_0x27b141(0x3cd)]({'flipX':_0x13d2c1[_0x27b141(0x352)][_0x27b141(0x236)],'flipY':_0x13d2c1['worldRect'][_0x27b141(0x90)],'left':_0x13d2c1[_0x27b141(0x352)][_0x27b141(0x31c)],'top':_0x13d2c1[_0x27b141(0x352)][_0x27b141(0x21e)],'width':_0x13d2c1[_0x27b141(0x352)][_0x27b141(0x1e1)],'height':_0x13d2c1[_0x27b141(0x352)][_0x27b141(0x3ce)],'angle':_0x13d2c1[_0x27b141(0x352)]['angle']});let _0x488b73=((_0x2bdbf4=this[_0x27b141(0xde)])==null?void 0x0:_0x2bdbf4[_0x27b141(0x1dc)])??_0x23b728;_0xd408cb[_0x27b141(0x3cd)]({'left':_0x488b73['x']-_0x136056[_0x27b141(0x288)]['cxnPointRadius'],'top':_0x488b73['y']-_0x136056[_0x27b141(0x288)][_0x27b141(0x39a)]});}[_0x3f2902(0x3fe)](_0x1f7198){const _0x219a98=_0x3f2902;if(!this[_0x219a98(0x228)]||!this[_0x219a98(0x1ad)])return null;let {shapeId:_0x4ddb70,cxnIndex:_0x1169a6}=_0x1f7198,_0x4f9c8d=this['_sheetsShapeService']['getShapeModel'](this[_0x219a98(0x228)],this[_0x219a98(0x1ad)],_0x4ddb70);if(!_0x4f9c8d)return null;let _0x64ffb4=this['_drawingManagerService'][_0x219a98(0x379)]({'unitId':this[_0x219a98(0x228)],'subUnitId':this[_0x219a98(0x1ad)],'drawingId':_0x4ddb70});if(!(_0x64ffb4!=null&&_0x64ffb4['transform']))return null;let {left:_0x590c30=0x0,top:_0x526d97=0x0,width:_0x34fba7=0x0,height:_0x2c2f20=0x0,flipX:_0x372776=!0x1,flipY:_0x43c345=!0x1,angle:_0x1a9d8e}=_0x64ffb4[_0x219a98(0x343)];_0x4f9c8d['updateContext']({'width':_0x34fba7,'height':_0x2c2f20});let _0x312b42=_0x4f9c8d['getConnectionSiteList']()['find'](_0x5d42c8=>_0x5d42c8[_0x219a98(0xe3)]===_0x1169a6);if(!_0x312b42)return null;let _0x4e1e7c=_0x372776?_0x34fba7-_0x312b42['x']:_0x312b42['x'],_0x39e933=_0x43c345?_0x2c2f20-_0x312b42['y']:_0x312b42['y'];if(_0x1a9d8e!==0x0&&_0x1a9d8e!=null){let _0x708d67=_0x1a9d8e*Math['PI']/0xb4,_0x1e91f0=Math[_0x219a98(0x3e0)](_0x708d67),_0x2856ef=Math['sin'](_0x708d67),_0x4df175=_0x34fba7/0x2,_0x57e578=_0x2c2f20/0x2,_0xdadb92=_0x4e1e7c-_0x4df175,_0x3d8f7e=_0x39e933-_0x57e578;_0x4e1e7c=_0x4df175+_0xdadb92*_0x1e91f0-_0x3d8f7e*_0x2856ef,_0x39e933=_0x57e578+_0xdadb92*_0x2856ef+_0x3d8f7e*_0x1e91f0;}_0x4e1e7c+=_0x590c30,_0x39e933+=_0x526d97;let _0x5a2b54=_0x312b42[_0x219a98(0x1d9)]/0xea60;_0x372776&&(_0x5a2b54=0xb4-_0x5a2b54),_0x43c345&&(_0x5a2b54=-_0x5a2b54),_0x5a2b54+=_0x1a9d8e||0x0,_0x5a2b54=(_0x5a2b54%0x168+0x168)%0x168;let _0x3808a1=(0x0,_0x136056[_0x219a98(0x3f3)])({'left':_0x590c30,'top':_0x526d97,'width':_0x34fba7,'height':_0x2c2f20},_0x1a9d8e||0x0);return{'point':{'x':_0x4e1e7c,'y':_0x39e933},'angle':_0x5a2b54,'bounds':_0x3808a1};}['_calculateFreeEndpointAngle'](_0x4131f3,_0x264c5e){const _0x184f8c=_0x3f2902;let _0x1aa646=_0x264c5e['x']-_0x4131f3['x'],_0x2c9887=_0x264c5e['y']-_0x4131f3['y'];return Math[_0x184f8c(0x1fe)](_0x1aa646)>=Math[_0x184f8c(0x1fe)](_0x2c9887)?_0x1aa646>=0x0?0xb4:0x0:_0x2c9887>=0x0?0x10e:0x5a;}['_reset'](){const _0x49fbc0=_0x3f2902;this[_0x49fbc0(0xdd)]=void 0x0,this[_0x49fbc0(0x228)]=void 0x0,this[_0x49fbc0(0x1ad)]=void 0x0,this[_0x49fbc0(0x1fd)]();}[_0x3f2902(0x358)](){const _0xf8f1ec=_0x3f2902;this[_0xf8f1ec(0x1fd)](),super[_0xf8f1ec(0x358)]();}};_0x14f389=_0x56683a([_0x3eb327(0x1,_0x233421[_0x3f2902(0x32d)]),_0x3eb327(0x2,_0x1877f7[_0x3f2902(0x2d3)]),_0x3eb327(0x3,_0x511ed7[_0x3f2902(0x255)]),_0x3eb327(0x4,_0x233421[_0x3f2902(0x1c5)]),_0x3eb327(0x5,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1d059b[_0x3f2902(0x267)])),_0x3eb327(0x6,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x598700)),_0x3eb327(0x7,(0x0,_0x233421['Inject'])(_0x577ddc))],_0x14f389);let _0x2b0b65=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x469782,_0x4f1b35,_0x42cc8b){const _0x3fb4e3=_0x3f2902;super(),this[_0x3fb4e3(0xcf)]=_0x469782,this[_0x3fb4e3(0xea)]=_0x4f1b35,this[_0x3fb4e3(0x175)]=_0x42cc8b,this['_initPrinting']();}[_0x3f2902(0x35b)](){const _0x38a414=_0x3f2902;this['disposeWithMe'](this[_0x38a414(0xcf)][_0x38a414(0x166)][_0x38a414(0x2b9)](this['_sheetPrintInterceptorService']['interceptor'][_0x38a414(0x20f)]()[_0x38a414(0x305)],{'handler':(_0x3425c5,_0x2f5b99,_0x131634)=>{const _0x3fbe1a=_0x38a414;var _0x1597b8;let {unitId:_0x5048b2,subUnitId:_0x141dff,scene:_0x379e04,resourceCollector:_0x33003f}=_0x2f5b99,_0x1c3c7f=(_0x1597b8=this[_0x3fbe1a(0xea)]['getDrawingDataForUnit'](_0x5048b2))==null?void 0x0:_0x1597b8[_0x141dff];return _0x1c3c7f==null||_0x1c3c7f[_0x3fbe1a(0x2eb)][_0x3fbe1a(0x120)](_0x43489b=>{const _0x586010=_0x3fbe1a;let _0x526285=_0x1c3c7f[_0x586010(0x1fb)][_0x43489b];_0x526285[_0x586010(0x1a6)]===_0x233421['DrawingTypeEnum'][_0x586010(0x347)]&&!_0x526285[_0x586010(0x32b)]&&this[_0x586010(0x175)]['renderDrawingShape'](_0x526285,_0x379e04,{'resourceCollector':_0x33003f});}),_0x131634(_0x3425c5);}}));}};_0x2b0b65=_0x56683a([_0x3eb327(0x0,(0x0,_0x233421['Inject'])(_0x2e7926[_0x3f2902(0x121)])),_0x3eb327(0x1,_0x511ed7['IDrawingManagerService']),_0x3eb327(0x2,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x24bf88))],_0x2b0b65);let _0x45bee7=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x3629bb,_0x162e1f,_0x21db3b){const _0x4d9699=_0x3f2902;super(),this[_0x4d9699(0x116)]=_0x3629bb,this['_localeService']=_0x162e1f,this['_sheetPermissionCheckController']=_0x21db3b,this[_0x4d9699(0x2de)]();}['_initPermission'](){const _0x5231ee=_0x3f2902;this[_0x5231ee(0x374)](this['_commandService'][_0x5231ee(0xc5)](_0x4bf9b3=>{const _0x41392c=_0x5231ee;let _0x96741e,_0x50737b;if(_0x4bf9b3['id']===_0x1d059b[_0x41392c(0x2ce)]['id']||_0x4bf9b3['id']===_0x1d059b[_0x41392c(0x313)]['id']||_0x4bf9b3['id']===_0x1d059b[_0x41392c(0x265)]['id']){let _0x10e125=_0x4bf9b3[_0x41392c(0xa3)];_0x96741e=_0x10e125[_0x41392c(0x138)],_0x50737b=_0x10e125[_0x41392c(0x318)];}!_0x96741e||!_0x50737b||this[_0x41392c(0x114)][_0x41392c(0x1ed)]({'workbookTypes':[_0x58820c[_0x41392c(0x17c)]],'worksheetTypes':[_0x58820c['WorksheetEditPermission']]},_0x96741e,_0x50737b)||this['_sheetPermissionCheckController'][_0x41392c(0x3e7)](this[_0x41392c(0x97)]['t'](_0x41392c(0x3d1)));}));}};_0x45bee7=_0x56683a([_0x3eb327(0x0,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x233421[_0x3f2902(0x32d)])),_0x3eb327(0x1,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x233421[_0x3f2902(0x249)])),_0x3eb327(0x2,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x58820c[_0x3f2902(0x34b)]))],_0x45bee7);let _0x3dfac6=class extends _0x233421[_0x3f2902(0xc8)]{constructor(_0x52be25,_0x1b0ab0,_0xc6bfb4,_0x1d3fdd,_0x1034f6,_0x1bd56a,_0x445313,_0x5c3372,_0xd9f542,_0x31b124,_0x17d774){const _0x271518=_0x3f2902;super(),this['_univerInstanceService']=_0x52be25,this[_0x271518(0x16f)]=_0x1b0ab0,this['_menuManagerService']=_0xc6bfb4,this[_0x271518(0xaf)]=_0x1d3fdd,this[_0x271518(0x97)]=_0x1034f6,this[_0x271518(0x116)]=_0x1bd56a,this[_0x271518(0xea)]=_0x445313,this['_sheetCanvasPopManagerService']=_0x5c3372,this['_contextService']=_0xd9f542,this[_0x271518(0x367)]=_0x31b124,this[_0x271518(0x425)]=_0x17d774,_0xdc22ec(this,_0x271518(0x209),null),_0xdc22ec(this,_0x271518(0x2c2),null),_0xdc22ec(this,_0x271518(0x26c),!0x1),_0xdc22ec(this,'_shapeEditPanelVersion',0x0),_0xdc22ec(this,_0x271518(0x2d9),null),_0xdc22ec(this,_0x271518(0x31f),[]),this[_0x271518(0x2a7)](),this[_0x271518(0x374)](this[_0x271518(0xfc)]['getCurrentTypeOfUnit$'](_0x233421[_0x271518(0x370)][_0x271518(0x1ec)])[_0x271518(0x94)](_0x508571=>{const _0x56e6bd=_0x271518;if(!_0x508571){var _0x23169b;(_0x23169b=this[_0x56e6bd(0x209)])==null||_0x23169b[_0x56e6bd(0x358)]();}})),this['_registerOperations'](),this[_0x271518(0x284)](),this['disposeWithMe'](this[_0x271518(0x425)][_0x271518(0x1bd)][_0x271518(0x94)](_0x510f7f=>{const _0x143190=_0x271518;_0x510f7f&&this[_0x143190(0x216)]();}));}[_0x3f2902(0x2a7)](){const _0x26b7b4=_0x3f2902;this[_0x26b7b4(0x23f)]['mergeMenu'](_0x460a47);}[_0x3f2902(0x284)](){const _0x4a2d41=_0x3f2902;this['_shapePopupMenuDisposable']||=this[_0x4a2d41(0x374)]((0x0,_0x52eb00[_0x4a2d41(0x8c)])(this[_0x4a2d41(0x367)],_0x233421[_0x4a2d41(0x370)][_0x4a2d41(0x1ec)],_0x1fc608=>this[_0x4a2d41(0x1eb)](_0x1fc608)));}[_0x3f2902(0x26b)](_0x4514d7,_0x14eeee,_0x33f710){const _0x476786=_0x3f2902;let _0x2c2399=this[_0x476786(0xaf)][_0x476786(0x422)](_0x4514d7,_0x14eeee,_0x33f710),_0x2438eb=this[_0x476786(0xaf)][_0x476786(0x377)](_0x4514d7,_0x14eeee,_0x33f710);return _0x2c2399!==void 0x0&&_0x2438eb!==void 0x0?{'shapeData':_0x2438eb,'shapeId':_0x33f710,'shapeType':_0x2c2399,'unitId':_0x4514d7,'subUnitId':_0x14eeee,'version':this[_0x476786(0x1c1)],'disableShapeOption':!0x1}:null;}[_0x3f2902(0x216)](){const _0x43d12e=_0x3f2902;this[_0x43d12e(0x31f)][_0x43d12e(0x120)](_0x27f5be=>_0x27f5be[_0x43d12e(0x358)]()),this[_0x43d12e(0x31f)][_0x43d12e(0xff)]=0x0;}['_popupMenuListener'](_0x46ee3d){const _0x10e8a1=_0x3f2902;let _0x49f524=new _0x233421['DisposableCollection']();return _0x49f524[_0x10e8a1(0x78)](_0x46ee3d[_0x10e8a1(0x2c7)][_0x10e8a1(0x94)](()=>{const _0x224a40=_0x10e8a1;let _0x4ca471=_0x46ee3d[_0x224a40(0x33d)]();if(this[_0x224a40(0x216)](),this['_isOpenedShapeEditPanel']||_0x4ca471['size']>0x1)return;let _0x2f566a=_0x4ca471[_0x224a40(0x3e3)]()[_0x224a40(0xee)]()[_0x224a40(0x1f6)];if(!_0x2f566a)return;let _0x562bce=this['_drawingManagerService'][_0x224a40(0x156)](_0x2f566a[_0x224a40(0x27c)]);if(!_0x562bce||_0x562bce['drawingType']!==_0x233421[_0x224a40(0x2d0)][_0x224a40(0x347)])return;let {unitId:_0x2f9aad,subUnitId:_0x5d9d45,drawingId:_0x4d15b9,drawingType:_0x30f7e6}=_0x562bce,_0x134fcc=this[_0x224a40(0x26b)](_0x2f9aad,_0x5d9d45,_0x4d15b9);if(!_0x134fcc)return;this[_0x224a40(0xe4)][_0x224a40(0x206)](_0x233421[_0x224a40(0x30f)],!0x0);let _0x549a6b=this[_0x224a40(0x367)][_0x224a40(0x10d)](_0x2f9aad),_0x21fc3d=((_0x549a6b==null?void 0x0:_0x549a6b[_0x224a40(0x99)])===!0x1?_0x549a6b[_0x224a40(0x3ad)](_0x2e7926[_0x224a40(0x2cf)]):this[_0x224a40(0x2af)])[_0x224a40(0x38a)](_0x2f566a,{'componentKey':_0x35f04f,'direction':_0x224a40(0x385),'offset':[0x0,_0x52eb00[_0x224a40(0x410)]],'extraProps':{'unitId':_0x2f9aad,'subUnitId':_0x5d9d45,'drawingId':_0x4d15b9,'drawingType':_0x30f7e6,'shapeType':_0x134fcc[_0x224a40(0x102)],'shapeData':_0x134fcc[_0x224a40(0x2fc)]}});this[_0x224a40(0x31f)]['push'](this[_0x224a40(0x374)](_0x21fc3d)),this[_0x224a40(0xea)][_0x224a40(0x2b2)]()[_0x224a40(0x37d)](_0x5ce242=>_0x5ce242['unitId']===_0x2f9aad&&_0x5ce242[_0x224a40(0x318)]===_0x5d9d45&&_0x5ce242['drawingId']===_0x4d15b9)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x2f9aad,'subUnitId':_0x5d9d45,'drawingId':_0x4d15b9}]);})),_0x49f524[_0x10e8a1(0x78)](_0x46ee3d[_0x10e8a1(0x1e3)][_0x10e8a1(0x94)](()=>{const _0x2b5d52=_0x10e8a1;this[_0x2b5d52(0x216)](),this[_0x2b5d52(0xe4)][_0x2b5d52(0x206)](_0x233421[_0x2b5d52(0x30f)],!0x1),this['_drawingManagerService'][_0x2b5d52(0x3f9)](null);})),_0x49f524['add'](_0x46ee3d['changing$']['subscribe'](()=>{this['_clearPopups']();})),_0x49f524['add'](_0x46ee3d[_0x10e8a1(0x1ba)]['subscribe'](()=>{const _0x2e833b=_0x10e8a1;this[_0x2e833b(0x216)]();})),(0x0,_0x233421['toDisposable'])(()=>{const _0x3fbacc=_0x10e8a1;_0x49f524['dispose'](),this[_0x3fbacc(0x216)]();});}['_registerOperations'](){const _0x4210f3=_0x3f2902;this[_0x4210f3(0x374)](this[_0x4210f3(0x116)][_0x4210f3(0x2e8)](_0x36a4ee=>{const _0x41cf79=_0x4210f3;if(_0x36a4ee['id']===_0x3aa2f1['id']){let {unitId:_0x42d703,subUnitId:_0x410fce,drawingId:_0x32db4d}=_0x36a4ee[_0x41cf79(0xa3)];this[_0x41cf79(0x1c1)]+=0x1,this[_0x41cf79(0x2c2)]=this[_0x41cf79(0x26b)](_0x42d703,_0x410fce,_0x32db4d),this['_clearPopups'](),this[_0x41cf79(0xeb)]();}if(_0x36a4ee['id']===_0x35279b['id']&&(this['_activeShapeInfo']=null,this[_0x41cf79(0x7c)]()),_0x36a4ee['id']===_0x1d059b[_0x41cf79(0x356)]['id']){let {unitId:_0x49c596,subUnitId:_0x19f50f,shapeId:_0xbc4f54}=_0x36a4ee[_0x41cf79(0xa3)];if(this[_0x41cf79(0x2c2)]&&this[_0x41cf79(0x2c2)][_0x41cf79(0xb8)]===_0xbc4f54){let _0x1add51=this['_getShapeInfo'](_0x49c596,_0x19f50f,_0xbc4f54);_0x1add51&&(this[_0x41cf79(0x1c1)]+=0x1,_0x1add51[_0x41cf79(0x160)]=this['_shapeEditPanelVersion'],this['_activeShapeInfo']=_0x1add51,this[_0x41cf79(0x26c)]&&this[_0x41cf79(0xeb)]());}}})),this[_0x4210f3(0x374)](this['_drawingManagerService']['focus$'][_0x4210f3(0x94)](_0x444de2=>{const _0x581002=_0x4210f3;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x444de2[_0x581002(0xff)]===0x0){this[_0x581002(0x2c2)]=null,this[_0x581002(0x7c)]();return;}if(_0x444de2[_0x581002(0xff)]===0x1&&_0x444de2[0x0]['drawingType']===_0x233421[_0x581002(0x2d0)][_0x581002(0x347)]&&(this[_0x581002(0x1c1)]+=0x1,this[_0x581002(0x2c2)]=this[_0x581002(0x26b)](_0x444de2[0x0][_0x581002(0x138)],_0x444de2[0x0]['subUnitId'],_0x444de2[0x0][_0x581002(0x262)]),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x4c6808=_0x444de2[_0x581002(0x212)](_0x282440=>_0x282440[_0x581002(0x1a6)]===_0x233421['DrawingTypeEnum'][_0x581002(0x347)]);if(_0x444de2[_0x581002(0xff)]>0x1&&_0x4c6808[_0x581002(0xff)]===_0x444de2[_0x581002(0xff)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x581002(0x2c2)]=this['_getShapeInfo'](_0x444de2[0x0]['unitId'],_0x444de2[0x0][_0x581002(0x318)],_0x444de2[0x0][_0x581002(0x262)]),this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{if(this[_0x581002(0x1c1)]+=0x1,this['_activeShapeInfo']=this[_0x581002(0x26b)](_0x444de2[0x0][_0x581002(0x138)],_0x444de2[0x0]['subUnitId'],_0x444de2[0x0]['drawingId']),this[_0x581002(0x2c2)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0x581002(0xeb)]();return;}}this[_0x581002(0x7c)]();}));}[_0x3f2902(0xeb)](){const _0x3fa0ba=_0x3f2902;this['_activeShapeInfo']&&(this[_0x3fa0ba(0x209)]=this[_0x3fa0ba(0x16f)]['open']({'id':_0x37b2e5,'header':{'title':this[_0x3fa0ba(0x97)]['t'](_0x3fa0ba(0x32f))},'width':0x184,'children':{'label':_0x37b2e5,...this[_0x3fa0ba(0x2c2)]},'onClose':()=>{const _0x21ab6b=_0x3fa0ba;this['_drawingManagerService'][_0x21ab6b(0x3f9)](null),this['_contextService'][_0x21ab6b(0x206)](_0x233421[_0x21ab6b(0x30f)],!0x1),this[_0x21ab6b(0x209)]=null;}}),this[_0x3fa0ba(0x26c)]=!0x0);}[_0x3f2902(0x7c)](){const _0x252083=_0x3f2902;this[_0x252083(0x26c)]=!0x1,this[_0x252083(0x16f)][_0x252083(0xa9)](_0x37b2e5),this['_sidebarDisposable']=null,this[_0x252083(0xe4)][_0x252083(0x206)](_0x233421[_0x252083(0x30f)],!0x1),this[_0x252083(0xea)][_0x252083(0x3f9)](null);}};_0x3dfac6=_0x56683a([_0x3eb327(0x0,_0x233421[_0x3f2902(0x1c5)]),_0x3eb327(0x1,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x321ff0[_0x3f2902(0x30b)])),_0x3eb327(0x2,_0x321ff0[_0x3f2902(0x365)]),_0x3eb327(0x3,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x1d059b[_0x3f2902(0x267)])),_0x3eb327(0x4,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x233421['LocaleService'])),_0x3eb327(0x5,_0x233421[_0x3f2902(0x32d)]),_0x3eb327(0x6,_0x511ed7[_0x3f2902(0x255)]),_0x3eb327(0x7,(0x0,_0x233421['Inject'])(_0x2e7926[_0x3f2902(0x2cf)])),_0x3eb327(0x8,_0x233421[_0x3f2902(0x14b)]),_0x3eb327(0x9,_0x1877f7[_0x3f2902(0x2d3)]),_0x3eb327(0xa,(0x0,_0x233421[_0x3f2902(0x21a)])(_0x5b9f77))],_0x3dfac6);let _0x140060=class extends _0x233421[_0x3f2902(0x7b)]{constructor(_0x420a00=_0x519452,_0x345bc5,_0x302aeb,_0x2841b3,_0x3da2d2){const _0x3c6f79=_0x3f2902;super(),this[_0x3c6f79(0x360)]=_0x420a00,this[_0x3c6f79(0x38d)]=_0x345bc5,this['_commandService']=_0x302aeb,this['_configService']=_0x2841b3,this[_0x3c6f79(0x367)]=_0x3da2d2;let {..._0x332eb0}=(0x0,_0x233421['merge'])({},_0x519452,this['_config']);this['_configService'][_0x3c6f79(0x3ff)](_0x3c6f79(0x192),_0x332eb0),this['_initCommands']();}['onRendered'](){const _0xca28c=_0x3f2902;this['_renderManagerService'][_0xca28c(0x108)](_0x233421['UniverInstanceType'][_0xca28c(0x14c)],[_0x287bb0]),(0x0,_0x233421['touchDependencies'])(this[_0xca28c(0x38d)],[[_0x3dfac6],[_0x546573],[_0x24bf88],[_0x2b0b65]]);}[_0x3f2902(0x13b)](){const _0xe0aa6f=_0x3f2902;this[_0xe0aa6f(0x38d)]['get'](_0x3dfac6)[_0xe0aa6f(0x284)]();}[_0x3f2902(0x124)](){const _0x166672=_0x3f2902;[[_0x577ddc],[_0x598700],[_0x4db5c2]]['forEach'](_0x2228ee=>this['_injector'][_0x166672(0x78)](_0x2228ee)),(0x0,_0x233421[_0x166672(0x88)])(this[_0x166672(0x38d)],[[_0x4db5c2],[_0x598700]]),this[_0x166672(0x367)][_0x166672(0x108)](_0x233421[_0x166672(0x370)][_0x166672(0x1ec)],[_0x577ddc]),this[_0x166672(0x367)][_0x166672(0x108)](_0x233421[_0x166672(0x370)][_0x166672(0x1ec)],[_0x1868e3]),this[_0x166672(0x367)][_0x166672(0x108)](_0x233421[_0x166672(0x370)][_0x166672(0x1ec)],[_0x14f389]),this[_0x166672(0x367)]['registerRenderModule'](_0x233421[_0x166672(0x370)][_0x166672(0x1ec)],[_0x150877]);}[_0x3f2902(0x110)](){const _0x431fcf=_0x3f2902;this['_injector']['add']([_0xcee1d7]),this[_0x431fcf(0x38d)][_0x431fcf(0x3dd)](_0xcee1d7);let _0x4a9f29=this['_injector'];[[_0x3dfac6],[_0x546573],[_0x24bf88],[_0x2b0b65],[_0x11468c],[_0x5b9f77],[_0x50eb13],[_0x30cb49],[_0x45bee7],[_0x5b212a]]['forEach'](_0x544b95=>_0x4a9f29[_0x431fcf(0x78)](_0x544b95)),(0x0,_0x233421[_0x431fcf(0x88)])(this[_0x431fcf(0x38d)],[[_0x3dfac6],[_0x546573],[_0x24bf88],[_0x11468c],[_0x5b9f77],[_0x50eb13],[_0x30cb49],[_0x45bee7],[_0x5b212a]]);}[_0x3f2902(0x36b)](){const _0xc9a224=_0x3f2902;[_0x211bbb,_0xacbd3,_0x35279b,_0x3aa2f1,_0x5d57af,_0x3c2410,_0x15063d,_0x56fccc][_0xc9a224(0x120)](_0x48e5fd=>this['disposeWithMe'](this[_0xc9a224(0x116)][_0xc9a224(0xf1)](_0x48e5fd)));}};_0xdc22ec(_0x140060,_0x3f2902(0x3ee),_0x233421['UniverInstanceType'][_0x3f2902(0x1ec)]),_0xdc22ec(_0x140060,_0x3f2902(0x3a0),'SHEET_SHAPE_UI_PLUGIN'),_0xdc22ec(_0x140060,_0x3f2902(0x3e8),_0x539433),_0xdc22ec(_0x140060,_0x3f2902(0x160),_0x156255),_0x140060=_0x56683a([(0x0,_0x233421[_0x3f2902(0x2d1)])(_0x412539[_0x3f2902(0x311)],_0xfd9a62['UniverDocsPlugin'],_0x511ed7[_0x3f2902(0x36c)],_0x22c8d6[_0x3f2902(0x164)],_0x1877f7[_0x3f2902(0x399)],_0x58820c[_0x3f2902(0xa2)],_0x271c4d['UniverDocsUIPlugin'],_0x5c75db[_0x3f2902(0xf2)],_0x14e0a7['UniverShapeEditorPlugin'],_0x50c10c[_0x3f2902(0x31a)],_0x1d059b[_0x3f2902(0x3eb)],_0x2e7926[_0x3f2902(0x3b3)],_0x52eb00[_0x3f2902(0x2f2)]),_0x3eb327(0x1,(0x0,_0x233421['Inject'])(_0x233421[_0x3f2902(0x8b)])),_0x3eb327(0x2,_0x233421['ICommandService']),_0x3eb327(0x3,_0x233421[_0x3f2902(0x1cf)]),_0x3eb327(0x4,_0x1877f7['IRenderManagerService'])],_0x140060),_0x392a1a['SheetsShapeUIContextualRibbonSchema']=_0x5b2064,_0x392a1a[_0x3f2902(0x2f8)]=_0x460a47,Object[_0x3f2902(0x1bb)](_0x392a1a,_0x3f2902(0x129),{'enumerable':!0x0,'get':function(){return _0x140060;}});}));