@univerjs-pro/sheets-shape-ui 1.0.0-alpha.8 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
- package/lib/types/views/ShapeOptions.d.ts +0 -26
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -11
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x19bc(){const _0x1d9f57=['getObjectIncludeInGroup','classType','onReady','horizontal','clone','dataModel','ObjectListPanelBase','_baseHeight','getImageSourceCache','setHighlighted','computeConnectorRouteLayout','useObservable','#4285f4','render','_executeResizeCommand','function','getCurrentTypeOfUnit$','getDrawingOKey','startArrow','calculate','defs','isInGroup','_formulaAnimation','sheet.command.update-shape-data','params','DocumentSkeleton','getRenderUnitById','ShapeTypeEnum','_draw','REMOVE','CURSOR_TYPE','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','ArrangeTypeEnum','getObjectListPanelLabels','_getShapeAdjustInfosById','custom','isRender','Vector2','_adjName','translateWithPrecision','sheet.menu.shape.flip-vertical','_baseShapeHeight','_sheetDrawingShapeRenderController','_showConnectionSites','permissionCheckWithoutRange','_onSavingEditorData$','_executeConnectionCommand','_drawRichTextLayer','useMemo','_shapeService','_drawRichText','onerror','UniverIcon','_handleConnectedEndpointPointerUp','DRAWING_VIDEO','setAdjustValueByName','_commandService','attrs','_generatePasteMutations','sheets-shape-ui.objectListPanel.title','_shapeTextEditingService','mask','SHAPE','delete','setFormulaPresentation','_createCopyInfoByRange','_sheetClipboardService','ContextMenuPosition','_imageShapeClipController','offsetY','_drawingType','updateLinePoints','cxnPointFill','_rerouteConnectorLine','getDrawingShapeKeyByDrawingSearch','getConnectorLinePoints','FlipHorizontalIcon','generateRandomId','setPrstGeom','onTransformChange$','startX','M8\x2014V14.2','_registerDrawingFocusChangeHandler','DocSelectionRenderService','getUnit','@univerjs/docs-ui','_addShapeConnectorHandlerObjects','axisAlignSheetTransform','_disposed','196382AJfFMQ','merge','prstGeomAdjValues','_clearShapeConnectorHandlerObjects','VIEW_MAIN_LEFT','ShapeIcon','2230020DDThTe','isHitLine','popup','getBasicShapeRotateBound','onPointerMove$','SHEET_VIEWPORT_KEY','close','memo','removeLinePoints','resolveFormulaShapeAutoFitSize','onRendered','forEach','clip-adj-','set','defIds','completeEditing','SolidFill','drawWith','_formulaKey','registerClipDelegate','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','UniverUi','M2.6\x203.3L6.2\x208L2.6\x2012.7V3.3Z','Rect','Large','changeEnd$','transform','_releaseRenderCache','getMatrix','intercept','setShouldShowAdjust','getUnitId','isHorizontal','worldPoints','sheets-shape-ui.objectListPanel.open','WorksheetEditPermission','UniverSheetsPlugin','setConfig','shapeId','doc','prototype','ComponentManager','getConnectionSiteList','jsx','get','_calculateFreeEndpointAngle','formulaBinding','_transform','addObject','_handleFreeEndpointMove','sheet.shape.object-list.panel','UniverSheetsUi','length','createElement','visible','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','ShapeModel','canvas','@univerjs-pro/shape-editor-ui','_props','registerFeaturePasteHook','URL','EMPTY','setOnSavingEditorData','FOCUSING_SHAPE_TEXT_EDITOR','MenuItemType','_highlightedSiteIndex','data','UniverDrawingPlugin','colorChannel1','gradientEndColor','computeStraightConnectorLayout','drawingType','image','_baseShapeTop','ImageSourceTypeEnum','localToWorld','updateShapeFillImage','toDisposable','replace','UniverShapeEditorPlugin','_activeImageId','getSheetCommandTarget','ShapeDefaultConfig','IImageIoService','getSheetId','isLineShape','DrawingApplyType','_shapeUpdateListener','getActiveSheet','ISheetClipboardService','_setTransForm','update$','_isConnecting','6GKVJQu','point','@univerjs/sheets-ui','UniverSheetsShapePlugin','_lastEditingShapeKey','clipHeight','getSkeleton','SetDrawingArrangeCommand','unsubscribe','DrawingImageClipService','getSelectedObjectMap','VerticalAlign','_sheetsShapeService','calcAdjValues','_initCopyPaste','url(#$1','_sheetCanvasPopManagerService','_isHighlighted','sheet.operation.open-sheet-shape-format-panel','getZoomRatio','useState','0\x200\x2016\x2016','useReducer','create','@univerjs/ui','RemoveSheetsShapeMutation','_urlImageService','parent','adjustValues','switchMap','_applyFormulaAutoFitSize','sheetViewStartColumn','getTransformerByCreate','_baseWidth','ToggleSheetsShapeFlipCommand','fillImageSourceType','M14\x208H14.2','isHit','unitId','SELECTOR','useRef','sheet.shape.edit.panel','_initPrinting','extensionGroups','_getShapeAdjustPointListById','current','UniverProLicense','svg','keys','getEndConnectInfo','undo','focus$','SolidLine','refreshTransform','prepareShapeTextDocumentData','getBentTypeFromPoints','Shape','Observable','OBJECT_LIST_FLOATING_SECTION_ID','PictureFill','decorate','INSERT','xlink:href','setContextValue','_config','getParent','_registerComponents','@univerjs/engine-render','offsetX','_injector','copyType','_clearConnectionSites','_getOrCreateShapeModel','getUnitType','objects','getOwnPropertyDescriptor','SheetsShapeService','sheets-shape-ui.flipHorizontal','isRichText','plainShapeTextToDocumentData','worldPoint','getCurrentScrollState','_activeTargetShapeId','SetDrawingSelectedOperation','240823dJnXYN','UniverDocs','clearActiveDrawingObjects','UniverProSheetsShapeUi','getShapeDataById','_renderManagerService','clearAdjustValue','complete','attachRangeWithCoord','changing$','error','onStarting','ShapeTextEditorContainer','includes','Image','filter','SetSheetDrawingCommand','_generateCopyPasteMutations','getDrawingEditable','fillType','transformToDrawingPosition','_handleBasicShapeUpdateConnectorLineShape','setCursor','useEffect','ShapeRenderModeEnum','Injector','VIEW_MAIN_LEFT_TOP','_isOpenedShapeEditPanel','viewportScrollX','debounceRefreshControls','_initPermission','getDrawingByParam','entries','RibbonInsertGroup','iterator','fontFamily','getValue','UpdateSheetsShapeDataMutation','BUTTON','image-clip-adjust-point-','_sidebarService','_baseTop','useFormulaShapeToolbar','DRAWING_OBJECT_LAYER_INDEX','IConfigService','substring','shape-adjust-point-','_createControls','routeConnectorLineShape','dom','applyPoint','_drawingAddListener','strokeWidth','@univerjs/drawing','currentColor','marginTop','stroke','SheetScrollManagerService','OPERATION','SetDrawingApplyMutation','_attachAdjustEvent','M8\x206.2V7.8','index','_initEvents','createShapeFormulaDocument','displayName','UniverEngineRender','trim','UniverDrawingUIPlugin','remove$','endArrow','doc.image-clip.shape-picker.component','SheetsSelectionsService','srcRect','getTransformer','SheetPermissionCheckController','_isShouldShowDrawingShapeAdjust','getAdjustInfoByName','WorkbookEditablePermission','resolveShapeTextEditorWrapStrategy','_initCommands','FlipVerticalIcon','flip-horizontal-icon','default','DRAWING_TABLE','_addShapeAdjustControl','contentVerticalOffset','getFocusDrawings','_transformCalculateSrcRect','getMenuHiddenObservable','isDrawingObject','_cxtHandlerPointerUp','_initSheetChange','_localeService','renderDrawingShape','clearAdjustControls','disableObjectsEvent','none','getSkeletonParam','sheet.operation.close-sheet-shape-format-panel','size','isStartConnectorPoint','_formulaShapes','blockExecuteWithoutPermission','getPresentation','SheetCanvasPopManagerService','_registerGroupFeaturePasteHook','_activeAdjustInfo','_updateAdjustControlPositions','TOP','focusDrawing','724779bFSUyR','shapeModel','_baseLeft','_getZoomRatio','_sheetPrintInterceptorService','drawFormulaShapeAnimationLayers','Disposable','IRenderManagerService','add','Circle','getTextModel','UniverDrawing','resolveShapeTextEditorBehaviorShapeData','has','object','wrapStrategy','refreshAdjustControls','Documents','shapeType','ConnectorCoordinateTransform','assign','_clearShapeAdjustControls','_drawingRenderService','DrawingTypeEnum','_isDrawingShapePointDown','_disposePopups','ShapePickerDropdown','map','_activeAdjustPointList','_connectorObjects','_clearControls','DRAWING_CHART','PREDEFINED_HOOK_NAME','activeSheet$','viewportScrollY','subscribeEvent','getScene','getConnectionInfo','_createShapeAdjustControls','_currentUniverService','UniverSheetsDrawingPlugin','_baseDrawingRect','_unitId','left','setFillImage','slice','_attachConnectorObjectEvent','_getConnectionSiteAngle','name','getShapeTextData','Inject','sheets-shape-ui.flipVertical','version','ShapePickerPanel','LEFT','getBasicShapeRelation','from','updateConnectionDetection','_isImagePointerDown','DRAWING','_executeConnectedRouteResizeCommand','table','_generateCutPasteMutations','DocumentViewModel','_addControl','draw','DEFAULT_PASTE','UniverProEngineShape','useDependency','reverse','_connectionSiteObjects','unregister','resize','_loadShapePictureFill','lineShapeId','value','composeMatrix','Line','_updateSrcRectByTransform','160924eIlKwh','resetCursor','CommandType','setEditing','redo','ISheetDrawingService','_currentScene','cancelEditing','CUT','sheets-shape-ui.formatShape','isEditing','forwardRef','_contextService','getShapeModel','UUID','sectionCanvas','pluginName','IContextService','translate','_focusedDrawings','_registerMoveHandler','type','IUndoRedoService','_loadAndSetImage','sheet.command.menu-insert-shape','_initEditingParams','SheetShapeTextEditorContainer','symbol','getShapeTypeById','string','SheetInterceptorService','UniverLicensePlugin','worldRect','InsertSheetsShapeMutation','jsxs','scene','@univerjs/sheets-drawing-ui','preValue','_iconManager','_imageIoService','rotation','_getConnectPointInfo','touchDependencies','sheets-shape-ui.insertShape','_adjHandlerPointerUp','SheetSkeletonService','round','ShapeArrowTypeEnum','_shapeRenderController','values','_updateImageAdjValues','FormulaShapeAnimationController','20485RpPkIr','_openShapeEditPanel','ancestorTransform','_createShapePopupMenu','_updateShapeAdjustControls','shapeText','_adjHandlerPointerMove','getShapeType','packageName','UpdateConnectorRelationCommand','sheet.image-clip.shape-picker.component','_activeShapeId','COPY_TYPE','ShapeEditPanel','call','80ynMxJw','setSrcRect','_closeShapeEditPanel','getInterceptPoints','_hasReset','InsertShapeCommand','shape','_getImagePrstGeom','fill','getDrawingData','None','dispose','parse','start','IUniverInstanceService','getAdjustValueByName','onCommandExecuted','subscribe','1.0.0-alpha.8','adjHandleSize','_activeShapeInfo','M2.2\x208H3.8','beginPath','lineType','buildShapeTextDataUpdate','UniverDocsUi','_registerFocusChangeHandler','shouldClipShapeTextDocument','setShapeProps','attachTransformerTo','@univerjs/sheets-drawing','resourceCollector','_subUnitId','animationEnabled','IDrawingManagerService','UPDATE','prstGeom','_univerInstanceService','_activeShapeModel','getCurrentLastSelection','selectable','getDrawingVisible','getBatchRemoveOp','getDrawingEffectBounds','height','contentHeight','M13.4\x203.3L9.8\x208L13.4\x2012.7V3.3Z','getObjectListPanelTypeName','_handleConnectorPointerUp','adjName','onPointerDown$','stopPropagation','_currentConnectionTarget','@univerjs-pro/shape-editor','getBatchAddOp','DocSelectionManagerService','_drawingManagerService','_initMenu','_getImageDrawingInfo','_resetState','adjHandleStroke','DRAWING_GROUP','getObject','normal','_shapes','_sheetSkeletonService','flipY','DrawingCommonPanel','SheetSkeletonManagerService','@univerjs-pro/sheets-shape','refreshShapeFillImage','push','ICommandService','_insertingShapeKeys','_registerImageShapeClipDelegate','sin','IconManager','getEditing','Fragment','updateContext','getViewportByCell','insertGroupObject','open','_isStartAdjusting','1em','angle','group','mergeMenu','startWith','_getScrollInfo','_registerDrawingMoveHandler','idSuffix','_targetShapeId','transformByState','HorizontalAlign','use','_draggingConnectorId','shapeKey','_sheetInterceptorService','SheetsShapeUIMenuSchema','enableObjectsEvent','restore','_init','interceptor','_initializedShapePopupMenu','UniverRenderEnginePlugin','getImage','ISidebarService','react','1329342MDkjGp','DRAWING_DOM','text','_baseShapeWidth','ShapeLineTypeEnum','with','indexOf','Plugin','fillImageSource','getShapeData','410MIpYXe','_handleFreeEndpointPointerUp','_context','_shapeFormulaService','_cxnIndex','_registerIcons','register','@univerjs/drawing-ui','ShapeTextFloatToolbar','DocumentDataModel','IMenuManagerService','_cxtHandlerPointerMove','transformForAngle','onSavingEditorData$','_getDrawingRect','width','vertical','hidden','getObjectListPanelSectionIdForDrawingType','getState','presentation','_activeShapeAdjustPointList','ObjectLayersIcon','isRenderLinePointsMode','UNIVER_DOC','syncExecuteCommand','cos','UniverSheetsUIPlugin','stringify','next','getShapeTextRect','getStartConnectInfo','connection-site-','discreteRangeToRange','_baseShapeLeft','subUnitId','cxnPointRadius','_handleConnectedEndpointMove','featurePluginUpdateNotification','_findNearestConnectionSite','COMMAND','_reset','_addShapeConnectorHandlerObject','_clearPopups','RemoveSheetDrawingCommand','UpdateLineShapeResizeCommand','_drawSimpleText','shouldAllowShapeTextEditorHostSizeShrink','#1a73e8','_copyInfo','_clipService','getRealBound','drawing.operation.set-drawing-active','executeCommand','updateDocumentStyle','clip-','resolveShapeTextDocumentRenderLayout','cxnIndex','cxnPointStroke','invert','UniverDocsPlugin','_getSceneAndTransformerByDrawingSearch','Path','_registerOperations','formulaPresentation','refreshFormulaPresentation','beforeCommandExecuted','univer-box-border\x20univer-px-4\x20univer-text-sm','VIEW_MAIN_TOP','CROSSHAIR','isHighlighted','_initialize','_sheetPermissionCheckController','drawingId','registerCommand','DRAWING_IMAGE','_editingParams$','getDrawingPoints','makeDirty','getCurrentRangeDisable$','SHEET_SHAPE_UI_PLUGIN','M8\x2010.2V11.8','UniverUIPlugin','_findShapeAtPoint','object-layers-icon','sheet.operation.open-shape-object-list-panel','_shapeId','adjHandleFill','pipe','oKey','_moveConnectorWithShape','some','flipX','skeleton','_configService','setPresentation','getInverseCoord','description','_updateTransform','unit','isArray','connector-handler-','relation','DRAWING_SMART_ART','shape-text-','CopySheetCommand','find','changeStart$','LocaleService','_menuManagerService','Arrow','ShapeTextFloatMenuRenderControllerBase','_isStartConnectorPoint','_sheetBasicShapeConnectionPointController','BehaviorSubject','fontSize','@univerjs-pro/engine-shape','disposeWithMe','getDrawingOrder','order','changeShapeType','setShapeData','startConnectionDetection','div','top-center','save','_componentManager','M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','registerRenderModule','_sheetDrawingService','startY','_sheetShapeAdjustController','IURLImageService','_popupMenuListener','_renderWithCache','#FFFFFF','getSheetBySheetId','Transform','_insertShapes','endConnectionDetection','getCurrentSkeleton','getDrawingSearch','sectionFloating','http://www.w3.org/2000/svg','sheets-shape-ui.config','GROUP','children','editingParams$','isConnectorShape','_sidebarDisposable','UniverSheetsDrawingUIPlugin','top','ShapeGroupEnum','sheetTransform','getBatchUpdateOp','clearControl$','toStringTag','FOCUSING_COMMON_DRAWINGS','getAdjustNames','normalizeShapeTextModel','RENDER_CLASS_TYPE','animateFormulaPresentation','cxnPointStrokeWidth','OTHERS','DRAWING_SHAPE','multiply','asObservable','transformToAxisAlignPosition','@univerjs/docs','shapeData','initShapePopupMenu','SheetDrawingAnchor','_commandExecutedListener','UniverProSheetsShape','path','UniverDocsUIPlugin','tag','onPointerUp$','UNIVER_SHEET','UniverSheetsDrawingUi','onSteady','UniverInstanceType','_getShapeInfo','deriveStateFromActiveSheet$','localeService','smartArt','constructor','sheet.shape.picker.component','UniverSheets','@univerjs/sheets','defineProperty','clipByShape','628swCgtR','targetShapeId','_shapeEditPanelVersion'];_0x19bc=function(){return _0x1d9f57;};return _0x19bc();}function _0x93c9(_0x453bb0,_0x5a236e){_0x453bb0=_0x453bb0-0x10b;const _0x19bcd9=_0x19bc();let _0x93c90d=_0x19bcd9[_0x453bb0];return _0x93c90d;}(function(_0x2586f0,_0x376f2f){const _0x41a4a6=_0x93c9,_0x144b5d=_0x2586f0();while(!![]){try{const _0x36c275=-parseInt(_0x41a4a6(0x127))/0x1+-parseInt(_0x41a4a6(0x2fd))/0x2*(-parseInt(_0x41a4a6(0x361))/0x3)+parseInt(_0x41a4a6(0x2a1))/0x4*(parseInt(_0x41a4a6(0x15b))/0x5)+-parseInt(_0x41a4a6(0x303))/0x6+parseInt(_0x41a4a6(0x1d7))/0x7+-parseInt(_0x41a4a6(0x16a))/0x8*(parseInt(_0x41a4a6(0x424))/0x9)+-parseInt(_0x41a4a6(0x1e1))/0xa*(-parseInt(_0x41a4a6(0x3b5))/0xb);if(_0x36c275===_0x376f2f)break;else _0x144b5d['push'](_0x144b5d['shift']());}catch(_0x13021e){_0x144b5d['push'](_0x144b5d['shift']());}}}(_0x19bc,0x8fdaa),function(_0xb75d89,_0x3558e6){const _0x502680=_0x93c9;typeof exports==_0x502680(0x432)&&typeof module<'u'?_0x3558e6(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=='function'&&define['amd']?define(['exports',_0x502680(0x379),_0x502680(0x255),_0x502680(0x19f),_0x502680(0x1af),'@univerjs/core',_0x502680(0x29e),_0x502680(0x3ea),_0x502680(0x3a4),_0x502680(0x363),'rxjs',_0x502680(0x33d),_0x502680(0x1e8),'react/jsx-runtime','@univerjs-pro/license',_0x502680(0x289),_0x502680(0x2f9),_0x502680(0x188),_0x502680(0x14b),_0x502680(0x1d6)],_0x3558e6):(_0xb75d89=typeof globalThis<'u'?globalThis:_0xb75d89||self,_0x3558e6(_0xb75d89[_0x502680(0x3b8)]={},_0xb75d89[_0x502680(0x318)],_0xb75d89[_0x502680(0x11b)],_0xb75d89['UniverProShapeEditor'],_0xb75d89[_0x502680(0x28e)],_0xb75d89['UniverCore'],_0xb75d89[_0x502680(0x29d)],_0xb75d89[_0x502680(0x42f)],_0xb75d89[_0x502680(0x3f7)],_0xb75d89[_0x502680(0x336)],_0xb75d89['rxjs'],_0xb75d89['UniverProShapeEditorUi'],_0xb75d89['UniverDrawingUi'],_0xb75d89['React'],_0xb75d89[_0x502680(0x38f)],_0xb75d89[_0x502680(0x3b6)],_0xb75d89[_0x502680(0x183)],_0xb75d89['UniverSheetsDrawing'],_0xb75d89[_0x502680(0x294)],_0xb75d89['React']));}(this,function(_0x962624,_0x4b5551,_0x3d21cd,_0x32598e,_0x1b87be,_0x2eccf5,_0x2554f2,_0x215a9,_0x114b3e,_0x3c12d8,_0x124e3f,_0x25b599,_0x34fb64,_0x2dcc44,_0x3fe551,_0x4f7558,_0x2a24ec,_0x2a2650,_0x101b82,_0x33f0ff){const _0x1e3977=_0x93c9;Object[_0x1e3977(0x29f)](_0x962624,Symbol[_0x1e3977(0x27d)],{'value':'Module'});function _0x13b692(_0x3b58d1,_0x58c250){const _0x14d7cb=_0x1e3977;let _0x15cec3={};for(let _0x3eb233 of Object[_0x14d7cb(0x391)](_0x58c250)){let _0xa00a01=_0x58c250[_0x3eb233],_0x2160ae=_0x3b58d1[_0x3eb233];if(_0xa00a01!==void 0x0){if(_0x2160ae===void 0x0){_0x15cec3[_0x3eb233]=void 0x0;continue;}typeof _0xa00a01=='object'&&_0xa00a01&&!Array[_0x14d7cb(0x245)](_0xa00a01)&&typeof _0x2160ae==_0x14d7cb(0x432)&&_0x2160ae&&!Array[_0x14d7cb(0x245)](_0x2160ae)?_0x15cec3[_0x3eb233]=_0x13b692(_0x2160ae,_0xa00a01):_0x15cec3[_0x3eb233]=_0x2160ae;}}return _0x15cec3;}let _0x5a577b={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x209)],'id':_0x1e3977(0x2bb),'handler':(_0x5a682d,_0x198b6e)=>{const _0x250e67=_0x1e3977;let _0x3449ab=_0x5a682d['get'](_0x1b87be['SheetsShapeService']),{unitId:_0x35e749,subUnitId:_0x43e097,shapeType:_0x49f9d8,shapeId:_0x29da79,shapeData:_0x564355,oldShapeJSON:_0x25a992}=_0x198b6e;if(!_0x3449ab[_0x250e67(0x134)](_0x35e749,_0x43e097,_0x29da79))return!0x1;let _0x5093d4=_0x5a682d[_0x250e67(0x32f)](_0x2eccf5[_0x250e67(0x1b2)]),_0x54534b=_0x5a682d['get'](_0x2eccf5[_0x250e67(0x13d)]),{oldShapeType:_0x5b9716,oldShapeData:_0x52f8d6={}}=_0x25a992,_0x8b37f1=_0x13b692(_0x52f8d6,_0x564355||{}),_0x112d47={'id':_0x1b87be['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x35e749,'subUnitId':_0x43e097,'shapeId':_0x29da79,'shapeType':_0x49f9d8,'shapeData':_0x564355}},_0x121117={'id':_0x1b87be[_0x250e67(0x3da)]['id'],'params':{'unitId':_0x35e749,'subUnitId':_0x43e097,'shapeId':_0x29da79,'shapeType':_0x5b9716,'shapeData':_0x8b37f1}};return _0x5093d4[_0x250e67(0x1fa)](_0x112d47['id'],_0x112d47['params'])?(_0x54534b['pushUndoRedo']({'unitID':_0x35e749,'undoMutations':[_0x121117],'redoMutations':[_0x112d47]}),!0x0):!0x1;}};function _0x3cdd2e(_0x456e8b,_0x4febf5,_0x136584,_0x396730,_0x5048c9,_0x267cfa){const _0x5c984d=_0x1e3977;let _0x344e56={'unitId':_0x4febf5,'subUnitId':_0x136584,'shapeId':_0x396730,'shapeData':_0x267cfa,'oldShapeJSON':_0x5048c9};return _0x456e8b[_0x5c984d(0x216)](_0x5a577b['id'],_0x344e56);}function _0x43c867(_0x1a6124,_0x2041e8,_0x289e41,_0x387471,_0x30a7be,_0x5061b2){const _0x17265b=_0x1e3977;let _0x1dc160={'unitId':_0x2041e8,'subUnitId':_0x289e41,'shapeId':_0x387471,'shapeData':_0x5061b2,'oldShapeJSON':_0x30a7be};return _0x1a6124[_0x17265b(0x216)](_0x5a577b['id'],_0x1dc160);}function _0x630d7d(_0x393f44){'@babel/helpers - typeof';const _0x11392f=_0x1e3977;return _0x630d7d=typeof Symbol==_0x11392f(0x2b3)&&typeof Symbol[_0x11392f(0x3d7)]==_0x11392f(0x142)?function(_0x46193f){return typeof _0x46193f;}:function(_0x410de8){const _0x4a822f=_0x11392f;return _0x410de8&&typeof Symbol==_0x4a822f(0x2b3)&&_0x410de8[_0x4a822f(0x29b)]===Symbol&&_0x410de8!==Symbol[_0x4a822f(0x32b)]?_0x4a822f(0x142):typeof _0x410de8;},_0x630d7d(_0x393f44);}function _0x5172cd(_0x49b5f8,_0x2de7a4){const _0x5a30fb=_0x1e3977;if(_0x630d7d(_0x49b5f8)!='object'||!_0x49b5f8)return _0x49b5f8;var _0x18f4f8=_0x49b5f8[Symbol['toPrimitive']];if(_0x18f4f8!==void 0x0){var _0xdb346=_0x18f4f8[_0x5a30fb(0x169)](_0x49b5f8,_0x2de7a4||_0x5a30fb(0x408));if(_0x630d7d(_0xdb346)!=_0x5a30fb(0x432))return _0xdb346;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2de7a4===_0x5a30fb(0x144)?String:Number)(_0x49b5f8);}function _0x1f9ce2(_0x35daec){const _0x136a6c=_0x1e3977;var _0x55c94f=_0x5172cd(_0x35daec,_0x136a6c(0x144));return _0x630d7d(_0x55c94f)==_0x136a6c(0x142)?_0x55c94f:_0x55c94f+'';}function _0x163ed0(_0x5381a3,_0x5b002f,_0x53187c){return(_0x5b002f=_0x1f9ce2(_0x5b002f))in _0x5381a3?Object['defineProperty'](_0x5381a3,_0x5b002f,{'value':_0x53187c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5381a3[_0x5b002f]=_0x53187c,_0x5381a3;}function _0x5c230c(_0x4b87ca,_0x17d0e1,_0x4b8c26){const _0x4123bd=_0x1e3977;var _0x480892;let _0xc7c029=(0x0,_0x25b599[_0x4123bd(0x430)])(_0x4b87ca,{..._0x17d0e1,'dataModel':{...(_0x480892=_0x17d0e1['dataModel'])==null?{}:_0x480892,..._0x4b8c26?{'doc':_0x4b8c26}:null}}),_0x25cd00=(0x0,_0x25b599[_0x4123bd(0x404)])(_0xc7c029);return{'clip':(0x0,_0x25b599[_0x4123bd(0x185)])(_0xc7c029,_0x25cd00),'wrapStrategy':_0x25cd00};}var _0x34cbbf=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x3f21c2,_0x52e889){const _0x8bf63d=_0x1e3977;super(_0x3f21c2,_0x52e889),_0x163ed0(this,_0x8bf63d(0x33e),void 0x0),_0x163ed0(this,_0x8bf63d(0x2ba),new _0x25b599[(_0x8bf63d(0x15a))](()=>this[_0x8bf63d(0x22f)](!0x0),()=>this['_applyFormulaAutoFitSize']())),_0x163ed0(this,_0x8bf63d(0x40d),!0x0),_0x163ed0(this,_0x8bf63d(0x2ea),_0x2eccf5['DrawingTypeEnum'][_0x8bf63d(0x285)]),_0x163ed0(this,_0x8bf63d(0x40f),!0x0),this[_0x8bf63d(0x33e)]={..._0x52e889},this[_0x8bf63d(0x2ba)]['setPresentation'](_0x52e889[_0x8bf63d(0x221)],_0x52e889[_0x8bf63d(0x282)]!==!0x1),this[_0x8bf63d(0x1d0)](),this[_0x8bf63d(0x37f)]();}[_0x1e3977(0x1d0)](){const _0x2835a3=_0x1e3977;this[_0x2835a3(0x2f3)]['subscribeEvent'](_0x5dc869=>{const _0x35a531=_0x2835a3;this[_0x35a531(0x126)](_0x5dc869);});}[_0x1e3977(0x2f2)](_0xe10f1){const _0x148f58=_0x1e3977;this[_0x148f58(0x33e)][_0x148f58(0x18e)]=_0xe10f1;}[_0x1e3977(0x12a)](_0x38108d){const _0x17ad46=_0x1e3977;this[_0x17ad46(0x33e)][_0x17ad46(0x131)]=_0x38108d,this[_0x17ad46(0x22f)](!0x0);}['setFormulaPresentation'](_0x111fa2,_0x12bbb7=!0x0){const _0x28e164=_0x1e3977;this[_0x28e164(0x2ba)][_0x28e164(0x240)](_0x111fa2,_0x12bbb7),this['_props'][_0x28e164(0x221)]=_0x111fa2,this[_0x28e164(0x37f)](),this['makeDirty'](!0x0);}['_applyFormulaAutoFitSize'](){const _0x4ca803=_0x1e3977;let _0x10b1c0=this[_0x4ca803(0x33e)][_0x4ca803(0x425)],_0x59a2db=_0x10b1c0[_0x4ca803(0x455)](),_0x37b0b3=(0x0,_0x25b599[_0x4ca803(0x280)])(_0x59a2db==null?void 0x0:_0x59a2db[_0x4ca803(0x2a9)]),_0x10ad4e=_0x37b0b3==null?void 0x0:_0x37b0b3['doc'],_0x16b94f=this[_0x4ca803(0x2ba)]['getAutoFitPresentations']();if(!_0x10ad4e||_0x16b94f[_0x4ca803(0x337)]===0x0)return;_0x10b1c0[_0x4ca803(0x1b9)]({'width':this[_0x4ca803(0x1f0)],'height':this[_0x4ca803(0x196)]});let _0x30340b=(0x0,_0x25b599[_0x4ca803(0x30c)])({'documentData':_0x16b94f[_0x4ca803(0x43f)](_0x28d796=>(0x0,_0x32598e[_0x4ca803(0x3f5)])(_0x10ad4e,_0x28d796)),'height':this['height'],'shapeData':_0x10b1c0[_0x4ca803(0x1e0)](),'textRect':_0x10b1c0['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x4ca803(0x1f0)],'height':this[_0x4ca803(0x196)]}),'width':this[_0x4ca803(0x1f0)]});if(_0x30340b){var _0x80f6cf;this[_0x4ca803(0x120)](_0x30340b[_0x4ca803(0x1f0)],_0x30340b['height']),(_0x80f6cf=this[_0x4ca803(0x448)]())==null||(_0x80f6cf=_0x80f6cf['getTransformer']())==null||_0x80f6cf[_0x4ca803(0x3d2)]();}}get[_0x1e3977(0x387)](){const _0x6cf21=_0x1e3977;return this[_0x6cf21(0x33e)][_0x6cf21(0x387)];}get[_0x1e3977(0x204)](){const _0x7e93fc=_0x1e3977;return this['_props'][_0x7e93fc(0x204)];}[_0x1e3977(0x126)](_0x5a758f){const _0x408f39=_0x1e3977;if(this[_0x408f39(0x33e)]['srcRect']==null||!this[_0x408f39(0x40d)])return;let {width:_0x56674d,height:_0xbb6240}=this,{width:_0x4c436b=0x0,height:_0x3fe4f6=0x0}=_0x5a758f[_0x408f39(0x14c)],{left:_0x917e21=0x0,top:_0x5df631=0x0,right:_0x49987d=0x0,bottom:_0x2f3d2e=0x0}=this[_0x408f39(0x33e)][_0x408f39(0x3fe)],_0x72b40=_0x917e21,_0x530109=_0x5df631,_0x59697f=_0x49987d,_0x16996d=_0x2f3d2e,_0x4ef9f4=!0x1;if(_0x4c436b!==0x0&&_0x4c436b!==_0x56674d){let _0x3d58cf=_0x917e21/_0x4c436b,_0x4cab22=_0x49987d/_0x4c436b;_0x72b40=_0x56674d*_0x3d58cf,_0x59697f=_0x56674d*_0x4cab22,_0x4ef9f4=!0x0;}if(_0x3fe4f6!==0x0&&_0x3fe4f6!==_0xbb6240){let _0x1fb4c2=_0x5df631/_0x3fe4f6,_0x196b0b=_0x2f3d2e/_0x3fe4f6;_0x530109=_0xbb6240*_0x1fb4c2,_0x16996d=_0xbb6240*_0x196b0b,_0x4ef9f4=!0x0;}_0x4ef9f4&&this['setSrcRect']({'left':_0x72b40,'top':_0x530109,'right':_0x59697f,'bottom':_0x16996d});}[_0x1e3977(0x16b)](_0x467426){const _0x5ed86d=_0x1e3977;this[_0x5ed86d(0x33e)][_0x5ed86d(0x3fe)]=_0x467426,this[_0x5ed86d(0x22f)](!0x0);}[_0x1e3977(0x450)](_0x5c8b9e){const _0x1d181e=_0x1e3977;this['_props']['image']=_0x5c8b9e,this[_0x1d181e(0x22f)](!0x0);}set[_0x1e3977(0x31d)](_0x2f6715){const _0xa48227=_0x1e3977;this[_0xa48227(0x332)]=_0x2f6715;}get[_0x1e3977(0x31d)](){const _0x1d88b1=_0x1e3977;this[_0x1d88b1(0x332)]||this[_0x1d88b1(0x35e)]();let _0x246b96=this[_0x1d88b1(0x332)][_0x1d88b1(0x2a8)]();return this[_0x1d88b1(0x1ed)](_0x246b96);}get[_0x1e3977(0x425)](){const _0x4ab39a=_0x1e3977;return this[_0x4ab39a(0x33e)][_0x4ab39a(0x425)];}get[_0x1e3977(0x329)](){const _0xca36fc=_0x1e3977;return this[_0xca36fc(0x33e)][_0xca36fc(0x329)];}get[_0x1e3977(0x2a5)](){const _0x34c3d8=_0x1e3977;return _0x114b3e[_0x34c3d8(0x281)][_0x34c3d8(0x2e2)];}['_draw'](_0x1f2a75,_0x4b6867,_0x34e7e0,_0x5465ea){const _0x54b602=_0x1e3977;let _0x3d14cc=this[_0x54b602(0x33e)]['shapeModel'];if(!_0x3d14cc||!_0x4b6867)return;let _0x1705d0=_0x34e7e0==null?this[_0x54b602(0x1f0)]:_0x34e7e0,_0x45dce8=_0x5465ea==null?this[_0x54b602(0x196)]:_0x5465ea,_0x5cbc8e={'shapeType':_0x3d14cc[_0x54b602(0x162)](),'width':_0x1705d0,'height':_0x45dce8},_0x4003a8={'renderMode':_0x3d21cd[_0x54b602(0x3cd)][_0x54b602(0x21f)],'oKey':this[_0x54b602(0x23a)],'image':this[_0x54b602(0x33e)][_0x54b602(0x34c)],'angle':this[_0x54b602(0x1bf)]};_0x3d14cc[_0x54b602(0x1b9)](_0x5cbc8e),_0x1f2a75[_0x54b602(0x25e)]();let _0x48f5ba={'top':0x0,'left':0x0,'width':_0x1705d0,'height':_0x45dce8},_0x43def7=_0x3d14cc[_0x54b602(0x195)](_0x48f5ba);_0x43def7?this[_0x54b602(0x267)](_0x1f2a75,_0x43def7,_0x28edb0=>{_0x3d14cc['render'](_0x28edb0,_0x48f5ba,_0x4003a8);}):(this[_0x54b602(0x31e)](),_0x3d14cc['render'](_0x1f2a75,_0x48f5ba,_0x4003a8)),_0x1f2a75[_0x54b602(0x1cf)]();let _0x12b189=_0x3d14cc[_0x54b602(0x455)](),_0x43ecc5=_0x3d14cc[_0x54b602(0x1ff)](_0x48f5ba),_0x1252a4=_0x3d14cc[_0x54b602(0x359)]();if(_0x12b189&&_0x43ecc5&&!_0x1252a4){_0x1f2a75[_0x54b602(0x25e)](),this[_0x54b602(0x1f4)]()[_0x54b602(0x23d)]&&_0x1f2a75['scale'](-0x1,0x1);let _0x4c6a4a=_0x1705d0/0x2,_0x142d4a=_0x45dce8/0x2;_0x1f2a75[_0x54b602(0x139)](-_0x4c6a4a,-_0x142d4a),_0x1f2a75[_0x54b602(0x180)](),this['_drawShapeText'](_0x1f2a75,_0x12b189,_0x43ecc5),_0x1f2a75[_0x54b602(0x1cf)]();}}[_0x1e3977(0x22e)](_0x268803){}['_drawShapeText'](_0x2ddbbe,_0x20f9b4,_0x2a9c6d){const _0x87d6c6=_0x1e3977;var _0x3b1efb;this[_0x87d6c6(0x33e)][_0x87d6c6(0x131)]||(!((_0x3b1efb=_0x20f9b4[_0x87d6c6(0x2a9)])!=null&&_0x3b1efb[_0x87d6c6(0x32a)])&&_0x87d6c6(0x3af)in _0x20f9b4&&_0x20f9b4[_0x87d6c6(0x3af)]===!0x1?this[_0x87d6c6(0x20f)](_0x2ddbbe,_0x20f9b4,_0x2a9c6d):this[_0x87d6c6(0x2d6)](_0x2ddbbe,_0x20f9b4,_0x2a9c6d));}[_0x1e3977(0x20f)](_0x2ce6c9,_0x207f66,_0x5968d8){const _0x5632d1=_0x1e3977;var _0x322315;this[_0x5632d1(0x2d6)](_0x2ce6c9,{..._0x207f66,'text':(_0x322315=_0x207f66[_0x5632d1(0x1d9)])==null?'':_0x322315,'dataModel':{'doc':(0x0,_0x25b599[_0x5632d1(0x3b0)])(_0x207f66,'sheets-shape-text-'+this['oKey'])}},_0x5968d8);}['_drawRichText'](_0x1430f7,_0x40729f,_0x39a12c){const _0x46e0ed=_0x1e3977;(0x0,_0x25b599[_0x46e0ed(0x429)])(_0x1430f7,this[_0x46e0ed(0x2ba)],(_0x728913,_0x22a978)=>{const _0x1e5f87=_0x46e0ed;this[_0x1e5f87(0x2d3)](_0x728913,_0x40729f,_0x39a12c,_0x22a978);});}[_0x1e3977(0x2d3)](_0x133d91,_0x51c1fd,_0x45fb01,_0x201ece){const _0x9c7989=_0x1e3977;var _0x2ea188,_0x1ccd3c;let _0x1d94ad=this['_props'][_0x9c7989(0x299)];if(!_0x51c1fd['dataModel']||!_0x1d94ad)return;let _0x498eb4=(0x0,_0x25b599[_0x9c7989(0x280)])(_0x51c1fd['dataModel']);if(!_0x498eb4)return;let _0x1e64e1=_0x498eb4[_0x9c7989(0x32a)];if(!_0x1e64e1)return;let _0x5a9c43=(0x0,_0x32598e[_0x9c7989(0x3f5)])(_0x1e64e1,_0x201ece),_0x512f48=(_0x2ea188=_0x498eb4['va'])==null?_0x2eccf5[_0x9c7989(0x36c)][_0x9c7989(0x422)]:_0x2ea188,_0x21bdcb=(_0x1ccd3c=_0x498eb4['ha'])==null?_0x2eccf5[_0x9c7989(0x1c8)][_0x9c7989(0x10e)]:_0x1ccd3c,_0x1680db=_0x5c230c(this[_0x9c7989(0x33e)][_0x9c7989(0x425)]['getShapeData'](),_0x51c1fd,_0x5a9c43),_0x2d0257=_0x51c1fd[_0x9c7989(0x323)],_0x459d62=new _0x2eccf5[(_0x9c7989(0x1ea))]((0x0,_0x25b599[_0x9c7989(0x397)])(_0x5a9c43,{'isHorizontal':_0x2d0257!==!0x1,'textRect':_0x45fb01,'verticalAlign':_0x512f48,'horizontalAlign':_0x21bdcb,'wrapStrategy':_0x1680db[_0x9c7989(0x433)]})),_0x3d846b=new _0x114b3e[(_0x9c7989(0x117))](_0x459d62),_0x3461fd=_0x114b3e[_0x9c7989(0x2bd)][_0x9c7989(0x378)](_0x3d846b,_0x1d94ad);_0x3461fd[_0x9c7989(0x2b7)]();let _0x1496b1=_0x3461fd['getActualSize']()['actualHeight'],_0xf2d1bf=(0x0,_0x25b599[_0x9c7989(0x219)])({'contentHeight':_0x1496b1,'verticalAlign':_0x512f48,'viewportHeight':_0x45fb01['height']});_0x459d62[_0x9c7989(0x217)]({'pageSize':{'width':_0x2d0257===!0x1?_0x45fb01[_0x9c7989(0x196)]:_0x45fb01[_0x9c7989(0x1f0)],'height':_0xf2d1bf[_0x9c7989(0x197)]}}),_0x459d62['updateDocumentDataMargin']({'t':_0xf2d1bf[_0x9c7989(0x3ec)]}),_0x3461fd[_0x9c7989(0x2b7)]();let _0x13942f=new _0x114b3e[(_0x9c7989(0x435))](_0x9c7989(0x249)+this[_0x9c7989(0x23a)],_0x3461fd,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x9c7989(0x22f)](!0x0)});_0x13942f[_0x9c7989(0x120)](_0x45fb01[_0x9c7989(0x1f0)],_0xf2d1bf[_0x9c7989(0x197)]),_0x133d91[_0x9c7989(0x25e)](),_0x133d91[_0x9c7989(0x2cb)](_0x45fb01[_0x9c7989(0x44f)],_0x45fb01[_0x9c7989(0x278)]),_0x1680db['clip']&&(_0x133d91[_0x9c7989(0x180)](),_0x133d91['rect'](0x0,_0xf2d1bf['clipTop'],_0x45fb01['width'],_0xf2d1bf[_0x9c7989(0x366)]),_0x133d91['clip']()),_0xf2d1bf[_0x9c7989(0x40b)]&&_0x133d91[_0x9c7989(0x2cb)](0x0,_0xf2d1bf[_0x9c7989(0x40b)]),_0x13942f[_0x9c7989(0x119)](_0x133d91),_0x133d91['restore'](),_0x13942f[_0x9c7989(0x175)](),_0x3461fd[_0x9c7989(0x175)](),_0x3d846b[_0x9c7989(0x175)](),_0x459d62[_0x9c7989(0x175)]();}[_0x1e3977(0x2b1)](_0x5a5b7b,_0x1c0dee,_0x4a57bd=!0x1){const _0x4c6ebc=_0x1e3977;if(!this[_0x4c6ebc(0x339)])return this[_0x4c6ebc(0x22f)](!0x1),this;let {width:_0x1541fe,height:_0x11a170,left:_0x14ee96,top:_0x523b8c}=this,_0x5e3381=this[_0x4c6ebc(0x214)]();if(_0x1541fe=_0x5e3381[_0x4c6ebc(0x1f0)],_0x11a170=_0x5e3381[_0x4c6ebc(0x196)],_0x14ee96=_0x5e3381['left'],_0x523b8c=_0x5e3381[_0x4c6ebc(0x278)],this[_0x4c6ebc(0x2c8)](_0x1c0dee)){let {top:_0x5b6b64,left:_0x11e09f,bottom:_0x5eeb25,right:_0x4e8a03}=_0x1c0dee['viewBound'];if(_0x1541fe+this['strokeWidth']+_0x14ee96<_0x11e09f||_0x4e8a03<_0x14ee96||_0x11a170+this[_0x4c6ebc(0x3e9)]+_0x523b8c<_0x5b6b64||_0x5eeb25<_0x523b8c)return this;}let _0x3a93d5=_0x14ee96+_0x1541fe/0x2,_0x44a101=_0x523b8c+_0x11a170/0x2,_0x2a20a4=this[_0x4c6ebc(0x31d)][_0x4c6ebc(0x31f)]();if(this[_0x4c6ebc(0x33e)]['isEditing']){let _0x4db7b5=this['getState'](),_0x1c1b8b=new _0x114b3e[(_0x4c6ebc(0x26a))]();_0x1c1b8b[_0x4c6ebc(0x124)]({..._0x4db7b5}),_0x2a20a4=_0x1c1b8b['getMatrix']();}return _0x5a5b7b[_0x4c6ebc(0x25e)](),this[_0x4c6ebc(0x33e)]['shapeModel'][_0x4c6ebc(0x1f8)]===!0x0||_0x5a5b7b[_0x4c6ebc(0x31d)](_0x2a20a4[0x0],_0x2a20a4[0x1],_0x2a20a4[0x2],_0x2a20a4[0x3],_0x3a93d5,_0x44a101),this[_0x4c6ebc(0x2c0)](_0x5a5b7b,_0x1c0dee,_0x1541fe,_0x11a170),_0x5a5b7b['restore'](),this[_0x4c6ebc(0x22f)](!0x1),this;}[_0x1e3977(0x241)](_0x23c898){const _0xbcb4d6=_0x1e3977;let {left:_0x39434b,top:_0x436684,width:_0x338579,height:_0x2782ec}=this[_0xbcb4d6(0x214)](),_0x576653=this[_0xbcb4d6(0x31d)][_0xbcb4d6(0x31f)](),_0x318e92=_0x39434b+_0x338579/0x2,_0x142fd4=_0x436684+_0x2782ec/0x2,_0x3e20ff=new _0x114b3e['Transform']([_0x576653[0x0],_0x576653[0x1],_0x576653[0x2],_0x576653[0x3],_0x318e92,_0x142fd4]),_0x189154=this[_0xbcb4d6(0x3a2)]();return(this[_0xbcb4d6(0x2b9)]&&(_0x189154==null?void 0x0:_0x189154[_0xbcb4d6(0x2a5)])===_0x114b3e[_0xbcb4d6(0x281)][_0xbcb4d6(0x272)]?_0x189154[_0xbcb4d6(0x15d)][_0xbcb4d6(0x286)](_0x3e20ff):_0x3e20ff)[_0xbcb4d6(0x21c)]()['applyPoint'](_0x23c898);}[_0x1e3977(0x386)](_0x31f9ee){const _0x3a7501=_0x1e3977;let {left:_0x3654fd,top:_0x57303c,width:_0x596a64,height:_0x3788e2}=this[_0x3a7501(0x214)](),_0x189811=_0x3654fd+_0x596a64/0x2,_0x24a1cb=_0x57303c+_0x3788e2/0x2,_0x3cfb21=this['transform']['getMatrix'](),_0x3e720e=new _0x114b3e[(_0x3a7501(0x26a))]([_0x3cfb21[0x0],_0x3cfb21[0x1],_0x3cfb21[0x2],_0x3cfb21[0x3],_0x189811,_0x24a1cb]),_0x190f21=this[_0x3a7501(0x3a2)](),_0x2d4cbb=(this[_0x3a7501(0x2b9)]&&(_0x190f21==null?void 0x0:_0x190f21[_0x3a7501(0x2a5)])===_0x114b3e['RENDER_CLASS_TYPE'][_0x3a7501(0x272)]?_0x190f21[_0x3a7501(0x15d)][_0x3a7501(0x286)](_0x3e720e):_0x3e720e)[_0x3a7501(0x21c)]()[_0x3a7501(0x3e7)](_0x31f9ee),_0x42ad5=_0x596a64/0x2,_0x4055bb=_0x3788e2/0x2,_0x454115=this[_0x3a7501(0x33e)][_0x3a7501(0x425)];return _0x454115&&_0x454115[_0x3a7501(0x359)]()?_0x454115[_0x3a7501(0x304)](_0x2d4cbb['x'],_0x2d4cbb['y'],_0x596a64,_0x3788e2):_0x2d4cbb['x']>=-_0x42ad5-this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['x']<=_0x42ad5+this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['y']>=-_0x4055bb-this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['y']<=_0x4055bb+this[_0x3a7501(0x3e9)]/0x2;}[_0x1e3977(0x175)](){const _0x44b3f6=_0x1e3977;this[_0x44b3f6(0x2ba)][_0x44b3f6(0x175)](),this[_0x44b3f6(0x33e)][_0x44b3f6(0x425)]=null,super['dispose']();}},_0x372832=class extends _0x114b3e['Shape']{constructor(_0x4d80c3,_0x169158){const _0x450226=_0x1e3977;super(_0x4d80c3,_0x169158),_0x163ed0(this,'_shapeId',null),_0x163ed0(this,_0x450226(0x2ca),null),_0x163ed0(this,'_unitId',null),_0x163ed0(this,_0x450226(0x18a),null),_0x169158&&this[_0x450226(0x186)](_0x169158);}[_0x1e3977(0x26e)](){const _0x3494e6=_0x1e3977;return{'unitId':this[_0x3494e6(0x44e)],'subUnitId':this[_0x3494e6(0x18a)],'drawingId':this[_0x3494e6(0x237)]};}['setShapeProps'](_0x3a981f){const _0x529e6c=_0x1e3977;_0x3a981f[_0x529e6c(0x329)]!==void 0x0&&(this['_shapeId']=_0x3a981f['shapeId']),_0x3a981f['adjName']!==void 0x0&&(this[_0x529e6c(0x2ca)]=_0x3a981f[_0x529e6c(0x19b)]),_0x3a981f['unitId']!==void 0x0&&(this[_0x529e6c(0x44e)]=_0x3a981f[_0x529e6c(0x387)]),_0x3a981f[_0x529e6c(0x204)]!==void 0x0&&(this[_0x529e6c(0x18a)]=_0x3a981f['subUnitId']),this[_0x529e6c(0x1c7)]({'width':_0x3a981f[_0x529e6c(0x1f0)],'height':_0x3a981f[_0x529e6c(0x196)]});}[_0x1e3977(0x2c0)](_0x387495){const _0xf9e943=_0x1e3977;_0x114b3e['Circle'][_0xf9e943(0x314)](_0x387495,{'radius':_0x3d21cd[_0xf9e943(0x356)][_0xf9e943(0x17d)],'fill':_0x3d21cd[_0xf9e943(0x356)][_0xf9e943(0x238)],'stroke':_0x3d21cd['ShapeDefaultConfig'][_0xf9e943(0x1a6)],'strokeWidth':0x1,'evented':!0x0});}};function _0x5a8c13(_0x17813e,_0x431ff6){return function(_0x569b0c,_0x11b964){_0x431ff6(_0x569b0c,_0x11b964,_0x17813e);};}function _0xba323d(_0x3a5abe,_0x3aacfa,_0x293857,_0x1d17c6){const _0x502669=_0x1e3977;var _0x1256c3=arguments[_0x502669(0x337)],_0x58810b=_0x1256c3<0x3?_0x3aacfa:_0x1d17c6===null?_0x1d17c6=Object[_0x502669(0x3ac)](_0x3aacfa,_0x293857):_0x1d17c6,_0x2ffa42;if(typeof Reflect=='object'&&typeof Reflect[_0x502669(0x39d)]==_0x502669(0x2b3))_0x58810b=Reflect[_0x502669(0x39d)](_0x3a5abe,_0x3aacfa,_0x293857,_0x1d17c6);else{for(var _0x978540=_0x3a5abe['length']-0x1;_0x978540>=0x0;_0x978540--)(_0x2ffa42=_0x3a5abe[_0x978540])&&(_0x58810b=(_0x1256c3<0x3?_0x2ffa42(_0x58810b):_0x1256c3>0x3?_0x2ffa42(_0x3aacfa,_0x293857,_0x58810b):_0x2ffa42(_0x3aacfa,_0x293857))||_0x58810b);}return _0x1256c3>0x3&&_0x58810b&&Object[_0x502669(0x29f)](_0x3aacfa,_0x293857,_0x58810b),_0x58810b;}let _0x1f5133=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x7cc7a3,_0x1176fd,_0x388e04,_0x58eaad,_0x266637,_0x4169df){const _0x24a093=_0x1e3977;super(),this['_drawingManagerService']=_0x7cc7a3,this['_sheetsShapeService']=_0x1176fd,this['_localeService']=_0x388e04,this[_0x24a093(0x14e)]=_0x58eaad,this[_0x24a093(0x37b)]=_0x266637,this['_shapeFormulaService']=_0x4169df,_0x163ed0(this,'_formulaShapes',new Map()),this[_0x24a093(0x256)](this['_shapeFormulaService']['presentationChanged$']['subscribe'](_0x306625=>{const _0x3b3272=_0x24a093;var _0x38c099;(_0x38c099=this['_formulaShapes']['get'](this[_0x3b3272(0x315)](_0x306625[_0x3b3272(0x387)],_0x306625['subUnitId'],_0x306625[_0x3b3272(0x329)])))==null||_0x38c099['forEach'](_0x38594f=>_0x38594f['setFormulaPresentation'](_0x306625[_0x3b3272(0x1f5)],_0x306625[_0x3b3272(0x18b)]));})),this[_0x24a093(0x256)](this[_0x24a093(0x1a2)][_0x24a093(0x3fa)][_0x24a093(0x17b)](_0x4832d4=>{const _0x1b93c0=_0x24a093;_0x4832d4[_0x1b93c0(0x30e)](_0x29ee60=>{const _0x389cf1=_0x1b93c0;this['_shapeFormulaService'][_0x389cf1(0x11f)]({'unitId':_0x29ee60[_0x389cf1(0x387)],'subUnitId':_0x29ee60[_0x389cf1(0x204)],'shapeId':_0x29ee60[_0x389cf1(0x22a)]}),this[_0x389cf1(0x41b)][_0x389cf1(0x2e3)](this[_0x389cf1(0x315)](_0x29ee60[_0x389cf1(0x387)],_0x29ee60[_0x389cf1(0x204)],_0x29ee60[_0x389cf1(0x22a)]));});}));}[_0x1e3977(0x413)](_0x3f5ce9,_0x49b9c9,_0x22a47b){const _0x1facd8=_0x1e3977;let {transform:_0x17c211,drawingType:_0x4f594e,srcRect:_0x5c3b7e,prstGeom:_0x248394,groupId:_0x1ec179,unitId:_0x237bdf,subUnitId:_0x337415,drawingId:_0x1a49bb,isMultiTransform:_0xe3f488,transforms:_0xc7816,hidden:_0x464bc9,selectable:_0x44b560}=_0x3f5ce9;if(_0x4f594e!==_0x2eccf5[_0x1facd8(0x43b)][_0x1facd8(0x285)]||!this[_0x1facd8(0x1a2)][_0x1facd8(0x193)]()||_0x17c211==null)return;let _0x10a8cf=this[_0x1facd8(0x1a2)][_0x1facd8(0x3c7)]();_0x10a8cf&&_0x49b9c9['initTransformer'](_0x25b599['SHAPE_EDITOR_TRANSFORMER_CONFIG']);let _0x1a022f=_0xe3f488&&_0xc7816?_0xc7816:[_0x17c211],_0xd43528=[];for(let _0x5adaf1 of _0x1a022f){let {left:_0x5eb6b1,top:_0x10d36a,width:_0x1b14c5,height:_0x2c5012,angle:_0x1bbf40,flipX:_0x499b1c,flipY:_0x57d23b,skewX:_0x350df6,skewY:_0x45ed67}=_0x5adaf1,_0x2edc58=_0x1a022f[_0x1facd8(0x1dd)](_0x5adaf1),_0x5e5c3c=(0x0,_0x215a9[_0x1facd8(0x2ee)])({'unitId':_0x237bdf,'subUnitId':_0x337415,'drawingId':_0x1a49bb},_0xe3f488?_0x2edc58:void 0x0),_0x5ab780=_0x49b9c9[_0x1facd8(0x2a4)](_0x5e5c3c);if(_0x5ab780!=null){let _0x598ea8={'unitId':_0x237bdf,'subUnitId':_0x337415,'shapeId':_0x1a49bb};_0x5ab780 instanceof _0x34cbbf&&this[_0x1facd8(0x222)](_0x5ab780,_0x598ea8),_0x5ab780[_0x1facd8(0x1c7)]({'left':_0x5eb6b1,'top':_0x10d36a,'width':_0x1b14c5,'height':_0x2c5012,'angle':_0x1bbf40,'flipX':_0x499b1c,'flipY':_0x57d23b,'skewX':_0x350df6,'skewY':_0x45ed67});continue;}let _0x13302d=this[_0x1facd8(0x1a2)][_0x1facd8(0x257)](_0x237bdf,_0x337415),_0x136862=_0x13302d[_0x1facd8(0x1dd)](_0x1a49bb);if(_0x49b9c9['getObjectIncludeInGroup'](_0x5e5c3c)||!this[_0x1facd8(0x1a2)][_0x1facd8(0x193)]())continue;let _0x10575f=this['_sheetsShapeService'][_0x1facd8(0x134)](_0x237bdf,_0x337415,_0x1a49bb);if(!_0x10575f)continue;let _0x4838ce=(0x0,_0x3d21cd[_0x1facd8(0x275)])(_0x10575f[_0x1facd8(0x162)]()),_0x2b76f3=_0x10575f[_0x1facd8(0x1e0)]()[_0x1facd8(0x331)],_0x39fea5={'unitId':_0x237bdf,'subUnitId':_0x337415,'shapeId':_0x1a49bb};_0x2b76f3&&this[_0x1facd8(0x1e4)][_0x1facd8(0x1e7)](_0x39fea5,_0x2b76f3);let _0x295e5f=new _0x34cbbf(_0x5e5c3c,{..._0x4838ce?{..._0x5adaf1,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5adaf1},'zIndex':_0x136862===-0x1?_0x13302d['length']-0x1:_0x136862,'shapeModel':_0x10575f,'localeService':this[_0x1facd8(0x412)],'shapeId':_0x1a49bb,'unitId':_0x237bdf,'subUnitId':_0x337415,'visible':_0x464bc9!==!0x0,'evented':_0x44b560!==!0x1,'formulaPresentation':_0x2b76f3?this[_0x1facd8(0x1e4)]['getPresentation'](_0x39fea5):void 0x0,'animateFormulaPresentation':(_0x2b76f3==null?void 0x0:_0x2b76f3[_0x1facd8(0x18b)])!==!0x1});if(_0x2b76f3){var _0x288df8;let _0x52203e=this[_0x1facd8(0x315)](_0x237bdf,_0x337415,_0x1a49bb),_0x18aa22=(_0x288df8=this['_formulaShapes'][_0x1facd8(0x32f)](_0x52203e))==null?new Set():_0x288df8;_0x18aa22[_0x1facd8(0x42c)](_0x295e5f),this[_0x1facd8(0x41b)]['set'](_0x52203e,_0x18aa22);}_0x49b9c9['addObject'](_0x295e5f,_0x114b3e[_0x1facd8(0x3e0)]),_0x10a8cf&&_0x49b9c9[_0x1facd8(0x187)](_0x295e5f),_0x1ec179&&(0x0,_0x34fb64[_0x1facd8(0x1bb)])({'drawingId':_0x1ec179,'unitId':_0x237bdf,'subUnitId':_0x337415},_0x295e5f,_0x49b9c9,this[_0x1facd8(0x1a2)]),_0x248394!=null&&_0x295e5f[_0x1facd8(0x2f2)](_0x248394),_0x5c3b7e!=null&&_0x295e5f[_0x1facd8(0x16b)](_0x5c3b7e);let _0x77c1a5=this[_0x1facd8(0x121)](_0x295e5f,_0x10575f[_0x1facd8(0x1e0)]());if(_0x77c1a5){var _0xb3943d;_0x22a47b==null||(_0xb3943d=_0x22a47b[_0x1facd8(0x189)])==null||_0xb3943d['add'](_0x77c1a5);}_0xd43528[_0x1facd8(0x1b1)](_0x295e5f);}return _0xd43528;}[_0x1e3977(0x315)](_0x3f3c0e,_0x508d57,_0x486d62){return _0x3f3c0e+'\x00'+_0x508d57+'\x00'+_0x486d62;}[_0x1e3977(0x222)](_0x213a8b,_0xd01215){const _0x9ddbf4=_0x1e3977;let _0x3da541=this[_0x9ddbf4(0x36d)]['getShapeModel'](_0xd01215[_0x9ddbf4(0x387)],_0xd01215[_0x9ddbf4(0x204)],_0xd01215[_0x9ddbf4(0x329)]),_0xcfac7d=_0x3da541==null?void 0x0:_0x3da541[_0x9ddbf4(0x1e0)]()[_0x9ddbf4(0x331)],_0x5a736c=this['_formulaKey'](_0xd01215[_0x9ddbf4(0x387)],_0xd01215[_0x9ddbf4(0x204)],_0xd01215['shapeId']);if(_0xcfac7d){var _0x42188c;this[_0x9ddbf4(0x1e4)]['register'](_0xd01215,_0xcfac7d);let _0x2a8038=(_0x42188c=this[_0x9ddbf4(0x41b)][_0x9ddbf4(0x32f)](_0x5a736c))==null?new Set():_0x42188c;_0x2a8038[_0x9ddbf4(0x42c)](_0x213a8b),this[_0x9ddbf4(0x41b)]['set'](_0x5a736c,_0x2a8038);}else{var _0x6325e3;this['_shapeFormulaService'][_0x9ddbf4(0x11f)](_0xd01215),(_0x6325e3=this['_formulaShapes']['get'](_0x5a736c))==null||_0x6325e3['delete'](_0x213a8b);}_0x213a8b[_0x9ddbf4(0x2e4)](_0xcfac7d?this[_0x9ddbf4(0x1e4)][_0x9ddbf4(0x41d)](_0xd01215):void 0x0,(_0xcfac7d==null?void 0x0:_0xcfac7d[_0x9ddbf4(0x18b)])!==!0x1);}[_0x1e3977(0x1b0)](_0x41e5f0){const _0x52796e=_0x1e3977;let _0x269078=_0x41e5f0[_0x52796e(0x425)]['getShapeData'](),_0x1620b4=_0x269078[_0x52796e(0x172)];if(!_0x1620b4||_0x1620b4['fillType']!==_0x3d21cd['ShapeFillEnum'][_0x52796e(0x39c)]||!_0x1620b4[_0x52796e(0x1df)]){_0x41e5f0['setFillImage'](void 0x0);return;}this[_0x52796e(0x121)](_0x41e5f0,_0x269078);}[_0x1e3977(0x121)](_0x1aa9a6,_0x7660cf){const _0xd585db=_0x1e3977;var _0x499816;let _0x92f818=_0x7660cf['fill'];if(!_0x92f818||_0x92f818[_0xd585db(0x3c8)]!==_0x3d21cd['ShapeFillEnum']['PictureFill']||!_0x92f818[_0xd585db(0x1df)])return;let _0x22875b=_0x92f818['fillImageSource'],_0x4c60ea=(_0x499816=_0x92f818[_0xd585db(0x384)])==null?_0x3d21cd[_0xd585db(0x34e)][_0xd585db(0x340)]:_0x499816,_0x50ed12=this['_imageIoService'][_0xd585db(0x2ac)](_0x22875b,_0x4c60ea);if(_0x50ed12){_0x1aa9a6[_0xd585db(0x450)](_0x50ed12);return;}return this[_0xd585db(0x13e)](_0x1aa9a6,_0x22875b,_0x4c60ea);}async[_0x1e3977(0x13e)](_0x5aea33,_0x5ab6db,_0x88be6d){const _0x4b0562=_0x1e3977;let _0x1a1e47;try{if(_0x88be6d===_0x3d21cd[_0x4b0562(0x34e)][_0x4b0562(0x135)])_0x1a1e47=await this['_imageIoService'][_0x4b0562(0x1d4)](_0x5ab6db);else{if(_0x88be6d===_0x3d21cd[_0x4b0562(0x34e)][_0x4b0562(0x340)])try{_0x1a1e47=await this[_0x4b0562(0x37b)]['getImage'](_0x5ab6db);}catch{_0x1a1e47=_0x5ab6db;}else _0x1a1e47=_0x5ab6db;}}catch(_0x2b0b43){console[_0x4b0562(0x3bf)](_0x4b0562(0x33a),_0x2b0b43);return;}await new Promise(_0x5b6968=>{const _0x493ad9=_0x4b0562;let _0x5387a7=new window[(_0x493ad9(0x3c3))]();_0x5387a7['onload']=()=>{this['_imageIoService']['addImageSourceCache'](_0x5ab6db,_0x88be6d,_0x5387a7),_0x5aea33['setFillImage'](_0x5387a7),_0x5b6968();},_0x5387a7[_0x493ad9(0x2d7)]=()=>{const _0x38a65d=_0x493ad9;console[_0x38a65d(0x3bf)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x5ab6db),_0x5b6968();},_0x5387a7['src']=_0x1a1e47;});}};_0x1f5133=_0xba323d([_0x5a8c13(0x0,_0x215a9['IDrawingManagerService']),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be['SheetsShapeService'])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5['LocaleService'])),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x357)]),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x265)]),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x32598e['ShapeFormulaService']))],_0x1f5133);let _0x34fe5c=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2793c6,_0x30ff20,_0x16c642,_0x4f2b27,_0xc170d2,_0x6227e3){const _0x3df55f=_0x1e3977;super(),this[_0x3df55f(0x1a2)]=_0x2793c6,this['_sheetsShapeService']=_0x30ff20,this[_0x3df55f(0x3ba)]=_0x16c642,this['_sheetDrawingShapeRenderController']=_0x4f2b27,this[_0x3df55f(0x18f)]=_0xc170d2,this[_0x3df55f(0x2dc)]=_0x6227e3,_0x163ed0(this,'_activeShapeId',null),_0x163ed0(this,_0x3df55f(0x44e),null),_0x163ed0(this,_0x3df55f(0x18a),null),_0x163ed0(this,_0x3df55f(0x1f6),void 0x0),_0x163ed0(this,_0x3df55f(0x1aa),[]),_0x163ed0(this,_0x3df55f(0x203),0x0),_0x163ed0(this,_0x3df55f(0x34d),0x0),_0x163ed0(this,'_baseShapeWidth',0x0),_0x163ed0(this,'_baseShapeHeight',0x0),_0x163ed0(this,'_isStartAdjusting',!0x1),_0x163ed0(this,_0x3df55f(0x420),void 0x0),_0x163ed0(this,_0x3df55f(0x190),void 0x0),_0x163ed0(this,'_adjHandlerPointerMove',void 0x0),_0x163ed0(this,_0x3df55f(0x153),void 0x0),_0x163ed0(this,_0x3df55f(0x401),!0x1),this[_0x3df55f(0x2f6)](),this[_0x3df55f(0x1c4)]();}['_getShapeAdjustPointListById'](_0x74bd0c,_0x305b5b,_0x1f33fc){const _0xfdde03=_0x1e3977;let _0x22b00f=this[_0xfdde03(0x36d)][_0xfdde03(0x134)](_0x74bd0c,_0x305b5b,_0x1f33fc);if(_0x22b00f)return _0x22b00f['getDrawingPoints']();}[_0x1e3977(0x414)](){const _0x9adce5=_0x1e3977;this[_0x9adce5(0x439)]();}[_0x1e3977(0x434)](){const _0x4acf64=_0x1e3977;this[_0x4acf64(0x15f)](!0x0);}['setShouldShowAdjust'](_0x28914b){const _0x276344=_0x1e3977;this[_0x276344(0x401)]=_0x28914b;}[_0x1e3977(0x2c6)](_0x30c886,_0x1da24d,_0x211e12,_0x5a9255){let _0x342997=this['_sheetsShapeService']['getShapeModel'](_0x30c886,_0x1da24d,_0x211e12);if(_0x342997)return _0x342997['getAdjustInfoByName'](_0x5a9255);}[_0x1e3977(0x44a)](_0x2a3067=!0x1){const _0x5203b3=_0x1e3977;if(this[_0x5203b3(0x44e)]===null||this[_0x5203b3(0x18a)]===null||this[_0x5203b3(0x166)]===null)return;let _0x5528dc=this[_0x5203b3(0x3ba)][_0x5203b3(0x2be)](this['_unitId']);if(!_0x5528dc||!_0x5528dc[_0x5203b3(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x5203b3(0x26d)]())return;let {scene:_0x310db4}=_0x5528dc,_0xad02ce={'unitId':this[_0x5203b3(0x44e)],'subUnitId':this[_0x5203b3(0x18a)],'drawingId':this[_0x5203b3(0x166)]},_0x51ddfa=this[_0x5203b3(0x1a2)][_0x5203b3(0x3d4)](_0xad02ce),{transform:_0x307b5b}=_0x51ddfa;if(!_0x307b5b||_0x51ddfa['drawingType']!==_0x2eccf5[_0x5203b3(0x43b)]['DRAWING_SHAPE'])return;let {left:_0x105aad,top:_0x2196e5,width:_0x32ca17,height:_0x17a22d,flipX:_0x405ece,flipY:_0x5507f2,angle:_0x406133=0x0}=_0x307b5b;if(_0x105aad===void 0x0||_0x2196e5===void 0x0)return;if(_0x2a3067){let _0x581dd5=this['_sheetsShapeService']['getShapeModel'](this[_0x5203b3(0x44e)],this[_0x5203b3(0x18a)],this[_0x5203b3(0x166)]);_0x581dd5==null||_0x581dd5[_0x5203b3(0x1b9)]({'width':_0x32ca17==null?0x0:_0x32ca17,'height':_0x17a22d==null?0x0:_0x17a22d}),this[_0x5203b3(0x1f6)]=_0x581dd5==null?void 0x0:_0x581dd5[_0x5203b3(0x22e)]();}let _0x297557=this[_0x5203b3(0x1f6)];for(let _0x4c7b38=0x0;_0x4c7b38<_0x297557['length'];_0x4c7b38++){let _0x5f2b46=_0x297557[_0x4c7b38],_0x110da8=_0x5f2b46['x'],_0x1f11b8=_0x5f2b46['y'];if(_0x405ece&&(_0x110da8=(_0x32ca17||0x0)-_0x110da8),_0x5507f2&&(_0x1f11b8=(_0x17a22d||0x0)-_0x1f11b8),_0x406133!==0x0){let _0x533c9f=(_0x32ca17||0x0)/0x2,_0x40f04a=(_0x17a22d||0x0)/0x2,_0x1c1df6=_0x406133*Math['PI']/0xb4,_0x1934f9=Math[_0x5203b3(0x1fb)](_0x1c1df6),_0x2a3d90=Math['sin'](_0x1c1df6),_0x53a019=_0x110da8-_0x533c9f,_0x328ff2=_0x1f11b8-_0x40f04a;_0x110da8=_0x533c9f+(_0x53a019*_0x1934f9-_0x328ff2*_0x2a3d90),_0x1f11b8=_0x40f04a+(_0x53a019*_0x2a3d90+_0x328ff2*_0x1934f9);}let _0x2de920={'x':_0x110da8,'y':_0x1f11b8,'adjName':_0x5f2b46[_0x5203b3(0x19b)]};this[_0x5203b3(0x40a)](_0x310db4,_0x2de920,_0x2de920[_0x5203b3(0x19b)],_0x105aad,_0x2196e5,this[_0x5203b3(0x44e)],this[_0x5203b3(0x18a)]);}}[_0x1e3977(0x15f)](_0x26e31e=!0x1){const _0xd424ac=_0x1e3977;_0x26e31e&&(this['_clearShapeAdjustControls'](),this[_0xd424ac(0x44a)](_0x26e31e));}[_0x1e3977(0x40a)](_0x5b9d3a,_0x26c5ad,_0x219dab,_0x6c0b6d,_0x2b9f66,_0x33f97c,_0xd9aea9){const _0xc050ee=_0x1e3977;if(!this[_0xc050ee(0x166)])return;let _0x41d2ec=_0x5b9d3a['getObjectIncludeInGroup'](_0xc050ee(0x3e3)+this[_0xc050ee(0x166)]+'-'+_0x219dab);if(_0x41d2ec){_0x41d2ec[_0xc050ee(0x1c7)]({'left':_0x26c5ad['x']+_0x6c0b6d-_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)],'top':_0x26c5ad['y']+_0x2b9f66-_0x3d21cd['ShapeDefaultConfig'][_0xc050ee(0x17d)]});return;}let _0x43319b={'left':_0x26c5ad['x']+_0x6c0b6d-_0x3d21cd['ShapeDefaultConfig'][_0xc050ee(0x17d)],'top':_0x26c5ad['y']+_0x2b9f66-_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)],'adjName':_0x219dab,'shapeId':this[_0xc050ee(0x166)],'unitId':_0x33f97c,'subUnitId':_0xd9aea9,'width':_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)]+0x8,'height':_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)]+0x8,'zIndex':_0x114b3e[_0xc050ee(0x3e0)]+0x1,'evented':!0x0},_0x305cdc=new _0x372832(_0xc050ee(0x3e3)+this[_0xc050ee(0x166)]+'-'+_0x219dab,_0x43319b);this[_0xc050ee(0x1aa)][_0xc050ee(0x1b1)](_0x305cdc),this[_0xc050ee(0x3f1)](_0x305cdc,_0x5b9d3a,_0x219dab),_0x5b9d3a[_0xc050ee(0x333)](_0x305cdc,_0x114b3e['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x1e3977(0x439)](){const _0x2267e6=_0x1e3977;this[_0x2267e6(0x1aa)]['length']!==0x0&&(this[_0x2267e6(0x1aa)][_0x2267e6(0x30e)](_0x1d5908=>{const _0xaa6563=_0x2267e6;_0x1d5908[_0xaa6563(0x175)]();}),this['_shapes']=[]);}[_0x1e3977(0x421)](){const _0x441fc8=_0x1e3977;this[_0x441fc8(0x44a)]();}['_getScrollInfo'](_0x53b908,_0x3e6b1c){const _0x5bfecc=_0x1e3977;var _0x361dc7;let _0x356eb9={'x':0x0,'y':0x0};if(!_0x53b908||!_0x3e6b1c)return _0x356eb9;let _0x482c33=this[_0x5bfecc(0x3ba)][_0x5bfecc(0x2be)](_0x53b908);if(!_0x482c33||!_0x482c33[_0x5bfecc(0x1dc)](_0x3c12d8[_0x5bfecc(0x1ae)])[_0x5bfecc(0x367)](_0x3e6b1c))return _0x356eb9;let _0x592dfd=_0x482c33[_0x5bfecc(0x1dc)](_0x3c12d8[_0x5bfecc(0x3ee)]),_0x276833=_0x592dfd==null?void 0x0:_0x592dfd['getCurrentScrollState']();if(!_0x276833)return _0x356eb9;let _0x131f6d=(_0x361dc7=this[_0x5bfecc(0x18f)][_0x5bfecc(0x2f8)](_0x53b908))==null?void 0x0:_0x361dc7[_0x5bfecc(0x269)](_0x3e6b1c);if(!_0x131f6d)return _0x356eb9;let _0x337b57=(0x0,_0x3c12d8[_0x5bfecc(0x1ba)])(_0x276833['sheetViewStartRow'],_0x276833[_0x5bfecc(0x380)],_0x482c33['scene'],_0x131f6d);return _0x337b57?{'x':_0x337b57[_0x5bfecc(0x3d1)],'y':_0x337b57[_0x5bfecc(0x446)]}:_0x356eb9;}[_0x1e3977(0x427)](_0x2cb34e,_0x4fd24e){const _0x238fe9=_0x1e3977;var _0x4c7ca3,_0x35e6ed;let _0x2faecd=(_0x4c7ca3=this['_univerInstanceService'][_0x238fe9(0x2f8)](_0x2cb34e))==null?void 0x0:_0x4c7ca3[_0x238fe9(0x269)](_0x4fd24e);return(_0x35e6ed=_0x2faecd==null?void 0x0:_0x2faecd[_0x238fe9(0x374)]())==null?0x1:_0x35e6ed;}[_0x1e3977(0x3f1)](_0xced445,_0x9f3b33,_0x42102f){const _0x2dfe75=_0x1e3977;this[_0x2dfe75(0x256)]((0x0,_0x2eccf5['toDisposable'])(_0xced445[_0x2dfe75(0x19c)][_0x2dfe75(0x447)]((_0x105c61,_0xe7af46)=>{const _0x414260=_0x2dfe75;var _0x375d6,_0x4d9b4d,_0x4d4d93,_0x1288c8,_0x6990cc;let _0x19582a=_0xced445[_0x414260(0x26e)]();this[_0x414260(0x420)]=this['_getShapeAdjustInfosById'](_0x19582a[_0x414260(0x387)],_0x19582a[_0x414260(0x204)],_0x19582a[_0x414260(0x22a)],_0x42102f),this[_0x414260(0x190)]=this[_0x414260(0x36d)][_0x414260(0x134)](_0x19582a[_0x414260(0x387)],_0x19582a[_0x414260(0x204)],_0x19582a[_0x414260(0x22a)]);let _0x8da3f2=this[_0x414260(0x1a2)][_0x414260(0x3d4)]({'unitId':this[_0x414260(0x44e)],'subUnitId':this[_0x414260(0x18a)],'drawingId':this['_activeShapeId']}),{transform:_0x4f1a46}=_0x8da3f2;if(_0x4f1a46){let {left:_0x312d77,top:_0x243d56,width:_0x2399b6,height:_0x8f7753}=_0x4f1a46;this['_baseShapeLeft']=_0x312d77||0x0,this[_0x414260(0x34d)]=_0x243d56||0x0,this['_baseShapeWidth']=_0x2399b6||0x0,this[_0x414260(0x2cd)]=_0x8f7753||0x0;}let _0x1be396=!!((_0x375d6=_0x8da3f2[_0x414260(0x31d)])!=null&&_0x375d6[_0x414260(0x23d)]),_0x3565d3=!!((_0x4d9b4d=_0x8da3f2['transform'])!=null&&_0x4d9b4d[_0x414260(0x1ac)]),_0x1d74d3=((_0x4d4d93=_0x8da3f2[_0x414260(0x31d)])==null?void 0x0:_0x4d4d93[_0x414260(0x1bf)])||0x0;this['_isStartAdjusting']=!0x0,_0x9f3b33['disableObjectsEvent']();let _0x4ec960={...(_0x1288c8=(_0x6990cc=this[_0x414260(0x420)])==null?void 0x0:_0x6990cc['currentAdjustValues'])==null?{}:_0x1288c8};this[_0x414260(0x161)]=_0x9f3b33[_0x414260(0x307)]['subscribeEvent']((_0x9bd5bf,_0x26707d)=>{const _0x3490f2=_0x414260;if(!this[_0x3490f2(0x1bd)])return;let {offsetX:_0xdca601,offsetY:_0x63cbcc}=_0x9bd5bf,_0x3bf5e6=this[_0x3490f2(0x420)];if(this[_0x3490f2(0x190)]&&_0x3bf5e6){_0x9f3b33[_0x3490f2(0x415)](),_0x9f3b33[_0x3490f2(0x3cb)](_0x114b3e[_0x3490f2(0x2c2)][_0x3490f2(0x226)]);let _0x96eaae={'left':0x0,'top':0x0,'width':this[_0x3490f2(0x1da)],'height':this[_0x3490f2(0x2cd)]},_0x4fe392=this[_0x3490f2(0x1c3)](this['_unitId'],this['_subUnitId']),_0x53a14e=this['_getZoomRatio'](this[_0x3490f2(0x44e)],this[_0x3490f2(0x18a)]),_0x59dc85=_0xdca601/_0x53a14e+_0x4fe392['x']-this['_baseShapeLeft'],_0x1a8da8=_0x63cbcc/_0x53a14e+_0x4fe392['y']-this[_0x3490f2(0x34d)];if(_0x1d74d3!==0x0){let _0x33ab50=this[_0x3490f2(0x1da)]/0x2,_0x563370=this['_baseShapeHeight']/0x2,_0x437a23=_0x1d74d3*Math['PI']/0xb4,_0x2071ae=Math[_0x3490f2(0x1fb)](_0x437a23),_0x36888b=Math[_0x3490f2(0x1b5)](_0x437a23),_0x10d6a2=_0x59dc85-_0x33ab50,_0x239ddc=_0x1a8da8-_0x563370;_0x59dc85=_0x33ab50+(_0x10d6a2*_0x2071ae+_0x239ddc*_0x36888b),_0x1a8da8=_0x563370+(-_0x10d6a2*_0x36888b+_0x239ddc*_0x2071ae);}_0x1be396&&(_0x59dc85=this[_0x3490f2(0x1da)]-_0x59dc85),_0x3565d3&&(_0x1a8da8=this['_baseShapeHeight']-_0x1a8da8);let _0x453e93={'x':_0x59dc85,'y':_0x1a8da8},_0x4d264c=this['_activeShapeModel'][_0x3490f2(0x36e)](_0x96eaae,_0x453e93,_0x3bf5e6,_0x1be396,_0x3565d3);if(Object[_0x3490f2(0x391)](_0x4d264c)[_0x3490f2(0x337)]===0x0)return;for(let [_0x18efdb,_0x140fbf]of Object[_0x3490f2(0x3d5)](_0x4d264c))this['_activeShapeModel']['setAdjustValueByName'](_0x18efdb,_0x140fbf);this[_0x3490f2(0x190)][_0x3490f2(0x1b9)]({'width':this[_0x3490f2(0x1da)],'height':this[_0x3490f2(0x2cd)]});let _0x6dd4c9=this['_drawingManagerService'][_0x3490f2(0x3d4)]({'unitId':_0x19582a[_0x3490f2(0x387)],'subUnitId':_0x19582a['subUnitId'],'drawingId':_0x19582a[_0x3490f2(0x22a)]});_0x6dd4c9&&(this[_0x3490f2(0x2ce)][_0x3490f2(0x413)](_0x6dd4c9,_0x9f3b33),this[_0x3490f2(0x1f6)]=this[_0x3490f2(0x38d)](_0x19582a[_0x3490f2(0x387)],_0x19582a['subUnitId'],_0x19582a[_0x3490f2(0x22a)]),this[_0x3490f2(0x421)]());}_0x26707d[_0x3490f2(0x19d)]();}),this[_0x414260(0x153)]=_0x9f3b33['onPointerUp$'][_0x414260(0x447)]((_0x1295c5,_0xe3b75d)=>{const _0x524664=_0x414260;this['_adjHandlerPointerMove'][_0x524664(0x369)](),this[_0x524664(0x153)][_0x524664(0x369)](),_0x9f3b33[_0x524664(0x128)]();let _0x11881d=this['_activeAdjustInfo'];if(_0x11881d){let _0x4da3c8=_0x19582a[_0x524664(0x387)],_0x3b123f=_0x19582a['subUnitId'],_0x7c53e8=_0x19582a['drawingId'],_0x4780be={};for(let _0x3aa24f of Object[_0x524664(0x391)](_0x11881d['currentAdjustValues'])){var _0x141162;let _0x1db343=(_0x141162=this['_activeShapeModel'])==null?void 0x0:_0x141162[_0x524664(0x179)](_0x3aa24f);_0x1db343!==void 0x0&&(_0x4780be[_0x3aa24f]=_0x1db343);}Object[_0x524664(0x391)](_0x4780be)['length']>0x0&&_0x3cdd2e(this[_0x524664(0x2dc)],_0x4da3c8,_0x3b123f,_0x7c53e8,{'oldShapeData':{'adjustValues':_0x4ec960}},{'adjustValues':_0x4780be});}this[_0x524664(0x420)]=void 0x0,this[_0x524664(0x190)]=void 0x0,this['_isStartAdjusting']=!0x1,_0xe3b75d[_0x524664(0x19d)](),_0x9f3b33[_0x524664(0x1ce)]();}),_0xe7af46['stopPropagation']();})));}[_0x1e3977(0x1c4)](){const _0x53dfbc=_0x1e3977;let _0x276994=this[_0x53dfbc(0x18f)][_0x53dfbc(0x2b4)](_0x2eccf5[_0x53dfbc(0x296)]['UNIVER_SHEET']);this[_0x53dfbc(0x256)](_0x276994[_0x53dfbc(0x239)]((0x0,_0x124e3f[_0x53dfbc(0x37e)])(_0x36a86b=>_0x36a86b?_0x36a86b[_0x53dfbc(0x445)]['pipe']((0x0,_0x124e3f[_0x53dfbc(0x37e)])(_0x4df35b=>{const _0xb0ef8e=_0x53dfbc;if(!_0x4df35b)return _0x124e3f[_0xb0ef8e(0x341)];let _0x250df3=_0x36a86b[_0xb0ef8e(0x322)](),_0x2f4e4a=this[_0xb0ef8e(0x3ba)][_0xb0ef8e(0x2be)](_0x250df3),_0x239390=_0x2f4e4a==null?void 0x0:_0x2f4e4a[_0xb0ef8e(0x14a)];return _0x239390?(0x0,_0x124e3f['of'])(_0x239390):_0x124e3f[_0xb0ef8e(0x341)];})):_0x124e3f[_0x53dfbc(0x341)]))[_0x53dfbc(0x17b)](_0x40eb2d=>{const _0x454302=_0x53dfbc;let _0x11e5a1=_0x40eb2d['getTransformerByCreate']();this[_0x454302(0x256)](_0x40eb2d['onPointerMove$'][_0x454302(0x447)](()=>{const _0xff0bad=_0x454302;this[_0xff0bad(0x401)];})),this[_0x454302(0x256)](_0x11e5a1['changeStart$']['subscribe'](_0x37939b=>{const _0x3501c9=_0x454302;let {objects:_0x9530aa}=_0x37939b;this[_0x3501c9(0x44a)](),_0x9530aa!==null&&_0x9530aa[_0x3501c9(0x419)]===0x1&&_0x9530aa[_0x3501c9(0x158)]()[_0x3501c9(0x1fe)]()[_0x3501c9(0x123)]instanceof _0x34cbbf&&this[_0x3501c9(0x321)](!0x0);})),this[_0x454302(0x256)](_0x11e5a1[_0x454302(0x3be)]['subscribe'](()=>{const _0x250487=_0x454302;this[_0x250487(0x401)]&&this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x40eb2d[_0x454302(0x292)][_0x454302(0x447)](()=>{const _0x26106b=_0x454302;this[_0x26106b(0x401)]&&(this[_0x26106b(0x321)](!0x1),this['_createShapeAdjustControls']());})),this['disposeWithMe'](_0x11e5a1[_0x454302(0x31c)][_0x454302(0x17b)](()=>{const _0x575b2f=_0x454302;this['_unitId']&&this[_0x575b2f(0x18a)]&&this[_0x575b2f(0x166)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x575b2f(0x44e)],'subUnitId':this[_0x575b2f(0x18a)],'drawingId':this['_activeShapeId']})&&(this[_0x575b2f(0x1f6)]=this[_0x575b2f(0x38d)](this[_0x575b2f(0x44e)],this[_0x575b2f(0x18a)],this[_0x575b2f(0x166)]),this['_updateAdjustControlPositions']());}));}));}[_0x1e3977(0x2f6)](){const _0x2470b5=_0x1e3977;this[_0x2470b5(0x256)](this[_0x2470b5(0x2dc)][_0x2470b5(0x17a)](_0x6366dd=>{const _0xd9070d=_0x2470b5;if(_0x6366dd['id']!==_0x1b87be[_0xd9070d(0x3da)]['id'])return;let {unitId:_0x11caa1,subUnitId:_0xe516ef,shapeId:_0x4e9e1c}=_0x6366dd[_0xd9070d(0x2bc)];_0x11caa1===this[_0xd9070d(0x44e)]&&_0xe516ef===this[_0xd9070d(0x18a)]&&_0x4e9e1c===this[_0xd9070d(0x166)]&&this[_0xd9070d(0x434)]();})),this['disposeWithMe'](this[_0x2470b5(0x1a2)][_0x2470b5(0x394)]['subscribe'](_0x2d40a2=>{const _0x447ff0=_0x2470b5;if(_0x2d40a2[_0x447ff0(0x337)]===0x1){let _0x5f4b2b=_0x2d40a2[0x0];if(_0x5f4b2b[_0x447ff0(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x447ff0(0x285)]){this['_activeShapeId']=_0x5f4b2b['drawingId'];let {unitId:_0x21290c,subUnitId:_0x25a2c9}=_0x5f4b2b;this[_0x447ff0(0x1f6)]=this[_0x447ff0(0x38d)](_0x21290c,_0x25a2c9,this[_0x447ff0(0x166)]),this[_0x447ff0(0x44e)]=_0x21290c,this[_0x447ff0(0x18a)]=_0x25a2c9,this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls']();}else this[_0x447ff0(0x166)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x447ff0(0x44e)]=null,this[_0x447ff0(0x18a)]=null,this['_clearShapeAdjustControls']();}(_0x2d40a2[_0x447ff0(0x337)]>0x1||_0x2d40a2[_0x447ff0(0x337)]===0x0)&&(this[_0x447ff0(0x166)]=null,this[_0x447ff0(0x1f6)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x2470b5(0x1a2)]['update$'][_0x2470b5(0x17b)](_0x5e39cf=>{const _0x76ad00=_0x2470b5;if(_0x5e39cf[_0x76ad00(0x337)]===0x1){var _0x4dd6d8;let _0x26e8b6=_0x5e39cf[0x0];((_0x4dd6d8=this['_drawingManagerService'][_0x76ad00(0x3d4)](_0x26e8b6))==null?void 0x0:_0x4dd6d8[_0x76ad00(0x34b)])===_0x2eccf5[_0x76ad00(0x43b)][_0x76ad00(0x285)]&&this[_0x76ad00(0x15f)](!0x0);}})),this[_0x2470b5(0x256)](this['_drawingManagerService'][_0x2470b5(0x3fa)][_0x2470b5(0x17b)](_0x31fa78=>{const _0x183c2c=_0x2470b5;for(let _0x356c8a of _0x31fa78)this[_0x183c2c(0x166)]===_0x356c8a[_0x183c2c(0x22a)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x183c2c(0x44e)]=null,this[_0x183c2c(0x18a)]=null,this[_0x183c2c(0x439)]());}));}};_0x34fe5c=_0xba323d([_0x5a8c13(0x0,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x114b3e['IRenderManagerService'])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133)),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x5,_0x2eccf5[_0x1e3977(0x1b2)])],_0x34fe5c);let _0x4162f6={'id':_0x1e3977(0x215),'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'handler':(_0x537f2d,_0x3a1bfc)=>{const _0x318215=_0x1e3977;let _0x504c70=_0x537f2d[_0x318215(0x32f)](_0x215a9[_0x318215(0x18c)]),_0x57fba5=_0x537f2d[_0x318215(0x32f)](_0x114b3e[_0x318215(0x42b)]),_0x727ffc=_0x537f2d[_0x318215(0x32f)](_0x34fe5c);if(_0x3a1bfc==null)return!0x0;if(_0x3a1bfc[_0x318215(0x337)]>0x0){var _0x392461;let _0x3f3193=(_0x392461=_0x57fba5[_0x318215(0x2be)](_0x3a1bfc[0x0]['unitId']))==null?void 0x0:_0x392461[_0x318215(0x14a)];if(_0x3f3193){let {unitId:_0x489cf6,subUnitId:_0x400008,drawingId:_0x208d26}=_0x3a1bfc[0x0],_0x4b8363=(0x0,_0x215a9[_0x318215(0x2ee)])({'unitId':_0x489cf6,'subUnitId':_0x400008,'drawingId':_0x208d26},void 0x0),_0x12dfcd=_0x3f3193['getObjectIncludeInGroup'](_0x4b8363);if(_0x12dfcd){var _0x137baf;(_0x137baf=_0x57fba5[_0x318215(0x2be)](_0x3a1bfc[0x0][_0x318215(0x387)]))==null||(_0x137baf=_0x137baf[_0x318215(0x14a)][_0x318215(0x3ff)]())==null||_0x137baf['activeAnObject'](_0x12dfcd);}}_0x504c70[_0x318215(0x423)](_0x3a1bfc),_0x727ffc['setShouldShowAdjust'](!0x1);}return!0x0;}},_0x29cd9f={'type':_0x2eccf5['CommandType'][_0x1e3977(0x209)],'id':_0x1e3977(0x13f),'handler':async(_0x53a7f8,_0xc5d2a9)=>{const _0x1d3bc6=_0x1e3977;let _0x12fddb=(0x0,_0x2554f2[_0x1d3bc6(0x355)])(_0x53a7f8['get'](_0x2eccf5[_0x1d3bc6(0x178)]));if(!_0x12fddb)return!0x1;let _0x196094=_0x53a7f8[_0x1d3bc6(0x32f)](_0x2554f2[_0x1d3bc6(0x3fd)])[_0x1d3bc6(0x191)]();if(!_0x196094)return!0x1;let _0x56402c=_0x53a7f8[_0x1d3bc6(0x32f)](_0x2eccf5['ICommandService']),{unitId:_0x2a0919,subUnitId:_0x5a6aec}=_0x12fddb,{value:_0x58d8b0,enhanceParams:_0x555a22}=_0xc5d2a9,{range:_0x2d82a8}=_0x196094,_0x24ab20={'unitId':_0x2a0919,'subUnitId':_0x5a6aec,'shapeType':_0x58d8b0,'range':_0x2d82a8,'shapeId':(0x0,_0x2eccf5[_0x1d3bc6(0x2f1)])()};if(_0x555a22){let _0x460b84=(0x0,_0x3d21cd[_0x1d3bc6(0x275)])(_0x58d8b0),_0x2e1b5f=_0x58d8b0===_0x3d21cd[_0x1d3bc6(0x2bf)][_0x1d3bc6(0x31a)];_0x460b84&&(_0x555a22[_0x1d3bc6(0x2b6)]||_0x555a22[_0x1d3bc6(0x3fb)])&&(_0x24ab20[_0x1d3bc6(0x28a)]={'ln':{'startArrow':_0x555a22['startArrow']?{'type':_0x3d21cd[_0x1d3bc6(0x156)]['Arrow'],'size':_0x3d21cd['ShapeArrowSizeEnum']['Medium']}:void 0x0,'endArrow':_0x555a22['endArrow']?{'type':_0x3d21cd[_0x1d3bc6(0x156)][_0x1d3bc6(0x24f)],'size':_0x3d21cd['ShapeArrowSizeEnum'][_0x1d3bc6(0x31b)]}:void 0x0}}),_0x2e1b5f&&(_0x555a22[_0x1d3bc6(0x2a7)]||_0x555a22[_0x1d3bc6(0x1f1)])&&(_0x24ab20['shapeData']=(0x0,_0x32598e['createShapeTextBoxShapeData'])({'fill':{'fillType':_0x3d21cd['ShapeFillEnum'][_0x1d3bc6(0x313)],'color':_0x1d3bc6(0x268)},'isHorizontal':!!_0x555a22['horizontal'],'stroke':{'lineStrokeType':_0x3d21cd[_0x1d3bc6(0x1db)][_0x1d3bc6(0x395)],'width':0x1,'color':'#bcbcbc'}}));}let _0x3b9b50=_0x56402c[_0x1d3bc6(0x1fa)](_0x1b87be['InsertShapeCommand']['id'],_0x24ab20);return setTimeout(()=>{const _0x15d30e=_0x1d3bc6;_0x56402c[_0x15d30e(0x216)](_0x4162f6['id'],[{'unitId':_0x2a0919,'subUnitId':_0x5a6aec,'drawingId':_0x24ab20['shapeId']}]);},0xc8),_0x3b9b50;}},_0xb9db8d=_0x1e3977(0x38a),_0x19a922=_0x1e3977(0x335),_0x1f1d2c='sheet.shape.floating-toolbar',_0x39b4a9=(0x0,_0x2eccf5['createInternalEditorID'])('SHAPE_TEXT'),_0x9609bf='sheet.shape.text.float-menu',_0x393ac4={'id':_0x1e3977(0x236),'type':_0x2eccf5['CommandType']['COMMAND'],'handler':(_0x357534,_0x2bd638)=>{const _0x9207d1=_0x1e3977;let _0x5d1952=_0x357534[_0x9207d1(0x32f)](_0x4b5551['ISidebarService']),_0x39aed8=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x24d)]),_0x5c11b8=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x178)]),_0x5bf9b5=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x1b2)]);return(0x0,_0x2554f2[_0x9207d1(0x355)])(_0x5c11b8)?(_0x2bd638==null?void 0x0:_0x2bd638[_0x9207d1(0x123)])===_0x9207d1(0x309)?(_0x5d1952[_0x9207d1(0x309)](_0x19a922),!0x0):(_0x5d1952[_0x9207d1(0x1bc)]({'id':_0x19a922,'header':{'title':_0x39aed8['t'](_0x9207d1(0x2df))},'children':{'label':_0x19a922},'onClose':()=>{const _0x2fa475=_0x9207d1;_0x5bf9b5[_0x2fa475(0x1fa)](_0x215a9[_0x2fa475(0x3b4)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x432d68=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2f0735,_0x4bebf6){const _0x4944aa=_0x1e3977;super(),this[_0x4944aa(0x213)]=_0x2f0735,this[_0x4944aa(0x1a2)]=_0x4bebf6,this[_0x4944aa(0x1b4)](),this['_clipService']['setCanUseShapeClip'](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x4944aa(0x213)]['setCanUseShapeClip'](!0x1)});}[_0x1e3977(0x1b4)](){const _0x4375c7=_0x1e3977;let _0x280a91=this[_0x4375c7(0x213)],_0x8fc27=new Map(),_0x126867=_0x280a91[_0x4375c7(0x316)]((_0x58bd3d,_0x288eaa,_0x2459d3,_0x13309f,_0x4c473c)=>{const _0x368bfc=_0x4375c7;let _0x42771c=_0x288eaa;if(_0x42771c===_0x3d21cd['ShapeTypeEnum'][_0x368bfc(0x174)]||_0x288eaa==='custom')return!0x1;try{let _0x5e6128=_0x8fc27['get'](_0x288eaa);return _0x5e6128||(_0x5e6128=new _0x3d21cd['ShapeModel'](_0x42771c,_0x368bfc(0x218)+_0x288eaa),_0x8fc27[_0x368bfc(0x310)](_0x288eaa,_0x5e6128)),_0x5e6128[_0x368bfc(0x3bb)](),_0x4c473c&&Object[_0x368bfc(0x391)](_0x4c473c)['length']>0x0&&_0x5e6128[_0x368bfc(0x25a)]({'adjustValues':_0x4c473c},!0x0),_0x5e6128[_0x368bfc(0x1b9)]({'width':_0x2459d3,'height':_0x13309f}),_0x5e6128['buildClipPath'](_0x58bd3d,{'left':0x0,'top':0x0,'width':_0x2459d3,'height':_0x13309f});}catch{return!0x1;}});this[_0x4375c7(0x256)](_0x126867),this[_0x4375c7(0x256)]({'dispose':()=>_0x8fc27['clear']()});}[_0x1e3977(0x2a0)](_0x37ac98,_0x2da1e7,_0x57b435,_0x52b1ce,_0x5a0bf6){const _0x1f0925=_0x1e3977;let _0x3971bd=this['_drawingManagerService'][_0x1f0925(0x173)](_0x37ac98,_0x2da1e7);if(!_0x3971bd[_0x57b435])return;let _0x1afec2={..._0x3971bd[_0x57b435],'prstGeom':_0x52b1ce,'adjustValues':_0x5a0bf6};this[_0x1f0925(0x1a2)][_0x1f0925(0x207)]([_0x1afec2]);}};_0x432d68=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x34fb64[_0x1e3977(0x36a)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x215a9[_0x1e3977(0x18c)]))],_0x432d68);let _0x1ed21a=_0x1e3977(0x29c),_0x456ca6=_0x1e3977(0x165);function _0x17973b({onShapeClick:_0x55471e,excludeGroups:_0xabe569}){const _0x8f636=_0x1e3977;return(0x0,_0x2dcc44['jsx'])(_0x25b599[_0x8f636(0x10d)],{'excludeGroups':_0xabe569,'onShapeClick':_0x55471e,'scrollContainer':_0x8f636(0x37c)});}function _0x5968f5(){const _0x2e9eaf=_0x1e3977;let _0x3e5142=(0x0,_0x4b5551['useDependency'])(_0x215a9[_0x2e9eaf(0x18c)]),_0x516b8e=(0x0,_0x4b5551[_0x2e9eaf(0x11c)])(_0x432d68);return(0x0,_0x2dcc44[_0x2e9eaf(0x32e)])(_0x25b599[_0x2e9eaf(0x43e)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x25b599[_0x2e9eaf(0x279)][_0x2e9eaf(0x125)]],'onShapeClick':_0x3a9590=>{const _0x3ca35c=_0x2e9eaf;let _0x22f012=_0x3e5142[_0x3ca35c(0x40c)]()[_0x3ca35c(0x24b)](_0x572588=>_0x572588[_0x3ca35c(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x3ca35c(0x22c)]);if(!_0x22f012)return;let {unitId:_0x2b279a,subUnitId:_0x3f0827,drawingId:_0x57a3d9}=_0x22f012;_0x516b8e[_0x3ca35c(0x2a0)](_0x2b279a,_0x3f0827,_0x57a3d9,_0x3a9590['type']);}});}function _0x49666e(){const _0x91670f=_0x1e3977;let _0x380d26=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x4b5551[_0x91670f(0x32c)]),_0x7fb1f1=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x215a9['IDrawingManagerService']),_0x57bbe6=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x2eccf5['IUniverInstanceService']),_0x4665d7=_0x7fb1f1[_0x91670f(0x40c)]()[0x0],_0x581df4=_0x4665d7?_0x57bbe6[_0x91670f(0x3aa)](_0x4665d7[_0x91670f(0x387)]):void 0x0,_0x3beb59=_0x581df4===_0x2eccf5[_0x91670f(0x296)][_0x91670f(0x1f9)]?_0x91670f(0x3fc):_0x581df4===_0x2eccf5[_0x91670f(0x296)][_0x91670f(0x293)]?_0x456ca6:void 0x0,_0x2f362a=_0x3beb59?_0x380d26[_0x91670f(0x32f)](_0x3beb59):void 0x0;return _0x2f362a?(0x0,_0x2dcc44[_0x91670f(0x32e)])(_0x2f362a,{}):null;}function _0x46b9a0(){let _0xf41edd=(0x0,_0x4b5551['useDependency'])(_0x2eccf5['ICommandService']);return(0x0,_0x2dcc44['jsx'])(_0x17973b,{'onShapeClick':_0x56a378=>{const _0x3d3fb4=_0x93c9;_0xf41edd['executeCommand'](_0x29cd9f['id'],{'value':_0x56a378[_0x3d3fb4(0x13c)],'enhanceParams':{'endArrow':_0x56a378['endArrow'],'startArrow':_0x56a378['startArrow'],'horizontal':_0x56a378[_0x3d3fb4(0x2a7)],'vertical':_0x56a378[_0x3d3fb4(0x1f1)]}});}});}function _0x488c8b(_0x27c005){const _0x1c1309=_0x1e3977;let _0x55a959=_0x27c005[_0x1c1309(0x32f)](_0x2eccf5[_0x1c1309(0x178)]);return{'id':_0x29cd9f['id'],'type':_0x4b5551[_0x1c1309(0x344)][_0x1c1309(0x388)],'selections':[{'label':{'name':_0x1ed21a,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x29cd9f['id']}}}],'icon':_0x1c1309(0x302),'tooltip':_0x1c1309(0x152),'activated$':(0x0,_0x3c12d8['deriveStateFromActiveSheet$'])(_0x55a959,!0x1,()=>new _0x124e3f['Observable'](_0x1f8e51=>{const _0x1f2cbb=_0x1c1309;_0x1f8e51[_0x1f2cbb(0x1fe)](!0x1);})),'hidden$':(0x0,_0x4b5551[_0x1c1309(0x40e)])(_0x27c005,_0x2eccf5[_0x1c1309(0x296)][_0x1c1309(0x293)]),'disabled$':(0x0,_0x3c12d8['getCurrentRangeDisable$'])(_0x27c005)};}function _0x436454(_0x286b62){const _0xfaddc8=_0x1e3977;let _0x20fb94=_0x286b62[_0xfaddc8(0x32f)](_0x2eccf5[_0xfaddc8(0x178)]);return{'id':_0x393ac4['id'],'type':_0x4b5551['MenuItemType'][_0xfaddc8(0x3db)],'icon':_0xfaddc8(0x1f7),'title':_0xfaddc8(0x325),'tooltip':_0xfaddc8(0x325),'activated$':(0x0,_0x3c12d8[_0xfaddc8(0x298)])(_0x20fb94,!0x1,()=>new _0x124e3f[(_0xfaddc8(0x39a))](_0x30c544=>{const _0x2df28c=_0xfaddc8;_0x30c544[_0x2df28c(0x1fe)](!0x1);})),'hidden$':(0x0,_0x4b5551['getMenuHiddenObservable'])(_0x286b62,_0x2eccf5[_0xfaddc8(0x296)]['UNIVER_SHEET']),'disabled$':(0x0,_0x3c12d8[_0xfaddc8(0x230)])(_0x286b62)};}let _0x2f7d0f='sheet.menu.shape.flip-horizontal',_0x4dfc59=_0x1e3977(0x2cc);function _0x34faa1(_0x485aa7){const _0x3bde45=_0x1e3977;let _0x4769dd=_0x485aa7[_0x3bde45(0x32f)](_0x215a9[_0x3bde45(0x18c)])[_0x3bde45(0x40c)]();return _0x4769dd[_0x3bde45(0x337)]===0x1&&_0x4769dd[0x0][_0x3bde45(0x34b)]===_0x2eccf5[_0x3bde45(0x43b)][_0x3bde45(0x285)]?_0x4769dd[0x0]:null;}function _0x4e4fbf(_0x3c2214){const _0x8832e0=_0x1e3977;let _0x2e87de=_0x3c2214['get'](_0x215a9[_0x8832e0(0x18c)]);return _0x2e87de[_0x8832e0(0x394)][_0x8832e0(0x239)]((0x0,_0x124e3f[_0x8832e0(0x1c2)])(_0x2e87de['getFocusDrawings']()),(0x0,_0x124e3f[_0x8832e0(0x43f)])(_0x250d80=>_0x250d80[_0x8832e0(0x337)]!==0x1||_0x250d80[0x0]['drawingType']!==_0x2eccf5[_0x8832e0(0x43b)][_0x8832e0(0x285)]));}function _0x36a234(_0x344a31){const _0x3d0d44=_0x1e3977;return{'id':_0x2f7d0f,'commandId':_0x1b87be[_0x3d0d44(0x383)]['id'],'type':_0x4b5551[_0x3d0d44(0x344)][_0x3d0d44(0x3db)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x3d0d44(0x3ae),'icon':_0x3d0d44(0x2f0),'hidden$':_0x4e4fbf(_0x344a31),'params':()=>{const _0x40d47d=_0x3d0d44;let _0x4b7333=_0x34faa1(_0x344a31);return _0x4b7333?{'unitId':_0x4b7333[_0x40d47d(0x387)],'subUnitId':_0x4b7333[_0x40d47d(0x204)],'shapeId':_0x4b7333[_0x40d47d(0x22a)],'flipH':!0x0}:void 0x0;}};}function _0x1d3c90(_0x129ece){const _0x22a168=_0x1e3977;return{'id':_0x4dfc59,'commandId':_0x1b87be['ToggleSheetsShapeFlipCommand']['id'],'type':_0x4b5551[_0x22a168(0x344)][_0x22a168(0x3db)],'title':_0x22a168(0x10b),'tooltip':_0x22a168(0x10b),'icon':_0x22a168(0x406),'hidden$':_0x4e4fbf(_0x129ece),'params':()=>{const _0x5da263=_0x22a168;let _0x276f6c=_0x34faa1(_0x129ece);return _0x276f6c?{'unitId':_0x276f6c['unitId'],'subUnitId':_0x276f6c[_0x5da263(0x204)],'shapeId':_0x276f6c[_0x5da263(0x22a)],'flipV':!0x0}:void 0x0;}};}let _0x3b310c={[_0x4b5551['RibbonInsertGroup']['MEDIA']]:{[_0x29cd9f['id']]:{'order':0x4,'menuItemFactory':_0x488c8b}},[_0x4b5551[_0x1e3977(0x3d6)][_0x1e3977(0x284)]]:{[_0x393ac4['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x436454}},[_0x4b5551[_0x1e3977(0x2e7)][_0x1e3977(0x113)]]:{[_0x4b5551['ContextMenuGroup'][_0x1e3977(0x284)]]:{[_0x2f7d0f]:{'order':0x4,'menuItemFactory':_0x36a234},[_0x4dfc59]:{'order':0x5,'menuItemFactory':_0x1d3c90}}}};var _0xa08251='@univerjs-pro/sheets-shape-ui',_0x3fe8c1=_0x1e3977(0x17c);let _0x157efe={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'id':_0x1e3977(0x418),'handler'(){return!0x0;}},_0x148656={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'id':_0x1e3977(0x373),'handler'(){return!0x0;}},_0x4f4787={};function _0x4b8678({ref:_0x1df250,..._0xf7ec53}){const _0xa60854=_0x1e3977;let {icon:_0x11d6d3,id:_0x19b5d5,className:_0x3dfa18,extend:_0x52e6e6,..._0x135d44}=_0xf7ec53,_0x388146=('univerjs-icon\x20univerjs-icon-'+_0x19b5d5+'\x20'+(_0x3dfa18||''))[_0xa60854(0x3f8)](),_0x56e976=(0x0,_0x33f0ff[_0xa60854(0x389)])('_'+_0x4c1645());return _0x32b6df(_0x11d6d3,''+_0x19b5d5,{'defIds':_0x11d6d3[_0xa60854(0x311)],'idSuffix':_0x56e976[_0xa60854(0x38e)]},{'ref':_0x1df250,'className':_0x388146,..._0x135d44},_0x52e6e6);}function _0x32b6df(_0x2cd28b,_0x54fd21,_0x51735d,_0x1fa9d7,_0x4a6d79){const _0x1676aa=_0x1e3977;return(0x0,_0x33f0ff[_0x1676aa(0x338)])(_0x2cd28b['tag'],{'key':_0x54fd21,..._0x384154(_0x2cd28b,_0x51735d,_0x4a6d79),..._0x1fa9d7},(_0x2b9ebc(_0x2cd28b,_0x51735d)[_0x1676aa(0x273)]||[])[_0x1676aa(0x43f)]((_0x123158,_0x51ff65)=>_0x32b6df(_0x123158,_0x54fd21+'-'+_0x2cd28b['tag']+'-'+_0x51ff65,_0x51735d,void 0x0,_0x4a6d79)));}function _0x384154(_0x137561,_0x16eb1d,_0x5e0a33){const _0x2fc0b7=_0x1e3977;let _0x4b6d23={..._0x137561[_0x2fc0b7(0x2dd)]};_0x5e0a33!=null&&_0x5e0a33['colorChannel1']&&_0x4b6d23[_0x2fc0b7(0x172)]===_0x2fc0b7(0x348)&&(_0x4b6d23[_0x2fc0b7(0x172)]=_0x5e0a33['colorChannel1']),_0x5e0a33!=null&&_0x5e0a33['colorChannel1']&&_0x4b6d23[_0x2fc0b7(0x3ed)]==='colorChannel1'&&(_0x4b6d23['stroke']=_0x5e0a33['colorChannel1']),_0x137561[_0x2fc0b7(0x291)]===_0x2fc0b7(0x2e1)&&_0x4b6d23['id']&&(_0x4b6d23['id']+=_0x16eb1d['idSuffix']),Object[_0x2fc0b7(0x3d5)](_0x4b6d23)['forEach'](([_0x555f8c,_0x12606c])=>{const _0x458155=_0x2fc0b7;_0x555f8c===_0x458155(0x2e1)&&typeof _0x12606c==_0x458155(0x144)&&(_0x4b6d23[_0x555f8c]=_0x12606c[_0x458155(0x352)](/url\(#(.*)\)/,_0x458155(0x370)+_0x16eb1d[_0x458155(0x1c5)]+')'));});let {defIds:_0x35e84e}=_0x16eb1d;return!_0x35e84e||_0x35e84e[_0x2fc0b7(0x337)]===0x0?_0x4b6d23:(_0x137561['tag']===_0x2fc0b7(0x1c9)&&_0x4b6d23[_0x2fc0b7(0x39f)]&&(_0x4b6d23[_0x2fc0b7(0x39f)]+=_0x16eb1d[_0x2fc0b7(0x1c5)]),Object[_0x2fc0b7(0x3d5)](_0x4b6d23)[_0x2fc0b7(0x30e)](([_0x309cca,_0x4f4c4f])=>{const _0x5ade92=_0x2fc0b7;typeof _0x4f4c4f==_0x5ade92(0x144)&&(_0x4b6d23[_0x309cca]=_0x4f4c4f[_0x5ade92(0x352)](/url\(#(.*)\)/,_0x5ade92(0x370)+_0x16eb1d['idSuffix']+')'));}),_0x4b6d23);}function _0x2b9ebc(_0x5700d1,_0x296b1f){const _0x3f05ae=_0x1e3977;var _0x2a4d45;let {defIds:_0x5123b1}=_0x296b1f;return!_0x5123b1||_0x5123b1[_0x3f05ae(0x337)]===0x0?_0x5700d1:_0x5700d1[_0x3f05ae(0x291)]===_0x3f05ae(0x2b8)&&(_0x2a4d45=_0x5700d1['children'])!=null&&_0x2a4d45[_0x3f05ae(0x337)]?{..._0x5700d1,'children':_0x5700d1[_0x3f05ae(0x273)]['map'](_0x311dc1=>typeof _0x311dc1[_0x3f05ae(0x2dd)]['id']==_0x3f05ae(0x144)&&_0x5123b1&&_0x5123b1[_0x3f05ae(0x3c2)](_0x311dc1[_0x3f05ae(0x2dd)]['id'])?{..._0x311dc1,'attrs':{..._0x311dc1[_0x3f05ae(0x2dd)],'id':_0x311dc1['attrs']['id']+_0x296b1f['idSuffix']}}:_0x311dc1)}:_0x5700d1;}function _0x4c1645(){const _0x3bb7e5=_0x1e3977;return Math['random']()['toString'](0x24)[_0x3bb7e5(0x3e2)](0x2,0x8);}_0x4b8678[_0x1e3977(0x3f6)]=_0x1e3977(0x2d8);let _0x5dc691={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':_0x1e3977(0x416),'viewBox':_0x1e3977(0x376),'width':_0x1e3977(0x1be),'height':'1em'},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x319),'strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x198),'strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M8\x202.2V3.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':'currentColor','d':_0x1e3977(0x3f2),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x232),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x2f5),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}}]},_0x194a17=(0x0,_0x33f0ff[_0x1e3977(0x132)])(function(_0x14e816,_0x17215b){const _0x54258a=_0x1e3977;return(0x0,_0x33f0ff[_0x54258a(0x338)])(_0x4b8678,Object[_0x54258a(0x438)]({},_0x14e816,{'id':_0x54258a(0x407),'ref':_0x17215b,'icon':_0x5dc691}));});_0x194a17[_0x1e3977(0x3f6)]=_0x1e3977(0x2f0);let _0x14e41a={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':'none','viewBox':_0x1e3977(0x376),'width':_0x1e3977(0x1be),'height':_0x1e3977(0x1be)},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M3.3\x202.6L8\x206.2L12.7\x202.6H3.3Z','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M3.3\x2013.4L8\x209.8L12.7\x2013.4H3.3Z','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':'round','strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1e3977(0x17f),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M6.2\x208H7.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M10.2\x208H11.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x385),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}}]},_0x1e6e5=(0x0,_0x33f0ff['forwardRef'])(function(_0x484882,_0x271ecc){const _0x9387e4=_0x1e3977;return(0x0,_0x33f0ff[_0x9387e4(0x338)])(_0x4b8678,Object['assign']({},_0x484882,{'id':'flip-vertical-icon','ref':_0x271ecc,'icon':_0x14e41a}));});_0x1e6e5[_0x1e3977(0x3f6)]=_0x1e3977(0x406);let _0x2b29ce={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':_0x1e3977(0x416),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1e3977(0x1be)},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x260),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}}]},_0x2f353d=(0x0,_0x33f0ff[_0x1e3977(0x132)])(function(_0x38532b,_0x2bbfbf){const _0x1a7444=_0x1e3977;return(0x0,_0x33f0ff['createElement'])(_0x4b8678,Object[_0x1a7444(0x438)]({},_0x38532b,{'id':_0x1a7444(0x235),'ref':_0x2bbfbf,'icon':_0x2b29ce}));});_0x2f353d[_0x1e3977(0x3f6)]=_0x1e3977(0x1f7);function _0x32de57(_0x44d846){return _0x44d846['trim']()||void 0x0;}function _0x5d6260(_0x4f3705){const _0x2d8e31=_0x1e3977;switch(_0x4f3705[_0x2d8e31(0x34b)]){case _0x2eccf5['DrawingTypeEnum']['DRAWING_IMAGE']:return _0x2d8e31(0x34c);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x443)]:return'chart';case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x409)]:return _0x2d8e31(0x115);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x248)]:return _0x2d8e31(0x29a);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x2da)]:return'video';case _0x2eccf5['DrawingTypeEnum'][_0x2d8e31(0x1a7)]:return _0x2d8e31(0x1c0);case _0x2eccf5[_0x2d8e31(0x43b)]['DRAWING_UNIT']:return _0x2d8e31(0x244);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x1d8)]:return _0x2d8e31(0x3e6);case _0x2eccf5['DrawingTypeEnum'][_0x2d8e31(0x285)]:return _0x2d8e31(0x170);default:return _0x2d8e31(0x432);}}function _0x245041(_0x1e224a,_0x1966a4,_0x1020ca){const _0x5afdcb=_0x1e3977;var _0x4b2e6d;return((_0x4b2e6d=_0x1e224a[_0x5afdcb(0x454)])==null?void 0x0:_0x4b2e6d['trim']())||(0x0,_0x34fb64[_0x5afdcb(0x199)])(_0x1020ca,_0x5d6260(_0x1e224a))+'\x20'+(_0x1966a4+0x1);}function _0x45565c(){const _0xde20f9=_0x1e3977;var _0x171cb6,_0x50ca38,_0x4278bd,_0x2e5bac;let _0x4d8540=(0x0,_0x4b5551['useDependency'])(_0x2eccf5[_0xde20f9(0x24d)]),_0x3208e6=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2eccf5[_0xde20f9(0x1b2)]),_0x1ea424=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2eccf5[_0xde20f9(0x178)]),_0x397819=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2a2650['ISheetDrawingService']),_0xc93c0d=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x215a9[_0xde20f9(0x18c)]),_0x39cfbf=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x114b3e['IRenderManagerService']),[,_0x365b1f]=(0x0,_0x33f0ff[_0xde20f9(0x377)])(_0x415480=>_0x415480+0x1,0x0),_0x3b4915=_0x1ea424['getCurrentUnitOfType'](_0x2eccf5[_0xde20f9(0x296)]['UNIVER_SHEET']),_0x59e8b8=(_0x171cb6=_0x3b4915==null?void 0x0:_0x3b4915[_0xde20f9(0x322)]())==null?'':_0x171cb6,_0x4c4377=(_0x50ca38=_0x3b4915==null||(_0x4278bd=_0x3b4915[_0xde20f9(0x35c)]())==null?void 0x0:_0x4278bd[_0xde20f9(0x358)]())==null?'':_0x50ca38,_0x5c32ed=(0x0,_0x4b5551[_0xde20f9(0x2af)])(()=>_0xc93c0d[_0xde20f9(0x394)],_0xc93c0d['getFocusDrawings'](),!0x1,[_0xc93c0d]);(0x0,_0x33f0ff['useEffect'])(()=>{const _0x15463d=_0xde20f9;let _0x3f443a=_0x3208e6[_0x15463d(0x17a)](()=>_0x365b1f());return()=>_0x3f443a['dispose']();},[_0x3208e6]);let _0xc7a6c2=_0x59e8b8&&_0x4c4377?_0x397819[_0xde20f9(0x173)](_0x59e8b8,_0x4c4377):{},_0x1e77a1=_0x59e8b8&&_0x4c4377?_0x397819[_0xde20f9(0x257)](_0x59e8b8,_0x4c4377):[],_0x2c3747=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>(0x0,_0x34fb64[_0xde20f9(0x2c5)])(_0x4d8540),[_0x4d8540]),_0x497080=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>{const _0x5c2eba=_0xde20f9;let _0x36df50=_0x1e77a1[_0x5c2eba(0x43f)](_0xbdf73c=>_0xc7a6c2[_0xbdf73c])[_0x5c2eba(0x3c4)](_0x4a88c6=>!!_0x4a88c6)[_0x5c2eba(0x11d)](),_0x3d69e9=_0x36df50['reduce']((_0x3aa7f8,_0x3d8ec6)=>(_0x3aa7f8[(0x0,_0x34fb64[_0x5c2eba(0x1f3)])(_0x3d8ec6[_0x5c2eba(0x34b)])]+=0x1,_0x3aa7f8),{'canvas':0x0,'floating':0x0}),_0x1f8552={'canvas':0x0,'floating':0x0};return _0x36df50[_0x5c2eba(0x43f)]((_0x1f10e1,_0x436827)=>{const _0x3340a1=_0x5c2eba;let _0x2dcc5b=(0x0,_0x34fb64['getObjectListPanelSectionIdForDrawingType'])(_0x1f10e1['drawingType']),_0x49f185=_0x2dcc5b===_0x34fb64[_0x3340a1(0x39b)],_0x1ba1ac=_0x1f8552[_0x2dcc5b]++;return{'id':_0x1f10e1[_0x3340a1(0x22a)],'name':_0x245041(_0x1f10e1,_0x436827,_0x4d8540),'description':_0x1f10e1['description'],'visible':_0x1f10e1[_0x3340a1(0x1f2)]!==!0x0,'selectable':_0x1f10e1[_0x3340a1(0x192)]!==!0x1,'sectionId':_0x2dcc5b,'sectionTitle':_0x49f185?_0x2c3747[_0x3340a1(0x26f)]:_0x2c3747[_0x3340a1(0x136)],'capabilities':_0x49f185?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x49f185&&_0x1ba1ac>0x0,'canMoveBackward':!_0x49f185&&_0x1ba1ac<_0x3d69e9[_0x3340a1(0x33c)]-0x1,'canReorder':!_0x49f185};});},[_0xc7a6c2,_0x1e77a1,_0x2c3747[_0xde20f9(0x136)],_0x2c3747['sectionFloating'],_0x4d8540]),_0x2f3461=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>(_0x5c32ed==null?[]:_0x5c32ed)[_0xde20f9(0x3c4)](_0x2d817d=>_0x2d817d['unitId']===_0x59e8b8&&_0x2d817d[_0xde20f9(0x204)]===_0x4c4377)[_0xde20f9(0x43f)](_0x369862=>_0x369862[_0xde20f9(0x22a)]),[_0x5c32ed,_0x4c4377,_0x59e8b8]),_0x3a17dc=(_0x2e5bac=_0x2f3461[_0x2f3461[_0xde20f9(0x337)]-0x1])==null?null:_0x2e5bac,_0x8628fc=_0xcbf2ba=>{var _0x2d0183;return(_0x2d0183=_0x397819['getDrawingByParam']({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0xcbf2ba}))==null?null:_0x2d0183;},_0x36bb11=_0x42a18b=>{const _0xbaf2f2=_0xde20f9;!_0x59e8b8||!_0x42a18b[_0xbaf2f2(0x337)]||_0x3208e6[_0xbaf2f2(0x216)](_0x2a2650[_0xbaf2f2(0x3c5)]['id'],{'unitId':_0x59e8b8,'drawings':_0x42a18b});},_0x359762=(_0x33fbf8,_0x4245c3)=>{_0x8628fc(_0x33fbf8)&&_0x36bb11([{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x33fbf8,..._0x4245c3}]);},_0x3b013e=(_0x5472f5,_0x17dfdc)=>{const _0x4c24e3=_0xde20f9;if(!_0x59e8b8||!_0x4c4377)return;let _0x27e9b9=_0x17dfdc?_0x2f3461[_0x4c24e3(0x3c2)](_0x5472f5)?_0x2f3461['filter'](_0x51f807=>_0x51f807!==_0x5472f5):[..._0x2f3461,_0x5472f5]:[_0x5472f5];_0x3208e6[_0x4c24e3(0x1fa)](_0x215a9[_0x4c24e3(0x3b4)]['id'],_0x27e9b9[_0x4c24e3(0x43f)](_0x3eb2de=>({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x3eb2de})));let _0x2ba1e7=_0x27e9b9[_0x27e9b9[_0x4c24e3(0x337)]-0x1];_0x2ba1e7?(0x0,_0x25b599['activateDrawingObject'])(_0x39cfbf,{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x2ba1e7}):(0x0,_0x25b599[_0x4c24e3(0x3b7)])(_0x39cfbf,_0x59e8b8);},_0x2894e2=(_0x33cb6e,_0x1e3864)=>{const _0x19e818=_0xde20f9;_0x36bb11(_0x33cb6e[_0x19e818(0x43f)](_0x19500d=>_0x8628fc(_0x19500d))[_0x19e818(0x3c4)](_0x40b6b8=>!!_0x40b6b8)['filter'](_0x5abcc8=>_0x5abcc8[_0x19e818(0x1f2)]!==!0x0!==_0x1e3864)[_0x19e818(0x43f)](_0x508cc7=>({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x508cc7['drawingId'],'hidden':!_0x1e3864})));},_0x49b1d8=_0x279c94=>{const _0xf6e29d=_0xde20f9;let _0x2d1538=_0x8628fc(_0x279c94);_0x2d1538&&_0x359762(_0x279c94,{'selectable':_0x2d1538[_0xf6e29d(0x192)]===!0x1&&void 0x0});},_0x541679=(_0x102e06,_0x159aae)=>{const _0x183daa=_0xde20f9;var _0x490660,_0x5ad4bd;let _0x326474=_0x32de57(_0x159aae);((_0x490660=(_0x5ad4bd=_0x8628fc(_0x102e06))==null?void 0x0:_0x5ad4bd[_0x183daa(0x454)])==null?void 0x0:_0x490660)!==_0x326474&&_0x359762(_0x102e06,{'name':_0x326474});},_0x14e4f4=(_0x44b12b,_0x10a2fa)=>{const _0x3ddb11=_0xde20f9;var _0x47fcf1,_0x1952db;let _0x39e949=_0x32de57(_0x10a2fa);((_0x47fcf1=(_0x1952db=_0x8628fc(_0x44b12b))==null?void 0x0:_0x1952db[_0x3ddb11(0x242)])==null?void 0x0:_0x47fcf1)!==_0x39e949&&_0x359762(_0x44b12b,{'description':_0x39e949});},_0x2d1a87=(_0x216f2b,_0x2fdd86)=>{const _0x97295b=_0xde20f9;!_0x59e8b8||!_0x4c4377||_0x3208e6[_0x97295b(0x216)](_0x2a2650[_0x97295b(0x368)]['id'],{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingIds':[_0x216f2b],'arrangeType':_0x2fdd86});};return!_0x59e8b8||!_0x4c4377?(0x0,_0x2dcc44[_0xde20f9(0x32e)])(_0xde20f9(0x25c),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x2c3747['title']}):(0x0,_0x2dcc44[_0xde20f9(0x32e)])(_0x34fb64[_0xde20f9(0x2aa)],{'items':_0x497080,'selectedIds':_0x2f3461,'focusedId':_0x3a17dc,'labels':_0x2c3747,'onSelect':_0x3b013e,'onSetVisible':_0x2894e2,'onCommitName':_0x541679,'onCommitDescription':_0x14e4f4,'onMoveForward':_0x419892=>_0x2d1a87(_0x419892,_0x2eccf5[_0xde20f9(0x2c4)]['forward']),'onMoveBackward':_0x1a3797=>_0x2d1a87(_0x1a3797,_0x2eccf5[_0xde20f9(0x2c4)]['backward']),'onToggleSelectable':_0x49b1d8});}let _0x2950cd=class{constructor(_0x5f04e1){const _0x43dcd6=_0x1e3977;this[_0x43dcd6(0x3ba)]=_0x5f04e1;}[_0x1e3977(0x350)](_0x4017c9,_0x1b007a){const _0x2841bd=_0x1e3977;let _0x459063=this['_renderManagerService'][_0x2841bd(0x2be)](_0x4017c9[_0x2841bd(0x387)]),_0x4a0c99=_0x459063==null?void 0x0:_0x459063[_0x2841bd(0x14a)];if(!_0x4a0c99)return;let _0x34a44f=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])(_0x4017c9),_0x421216=_0x4a0c99['getObjectIncludeInGroup'](_0x34a44f);_0x421216==null||_0x421216[_0x2841bd(0x450)](_0x1b007a);}};_0x2950cd=_0xba323d([_0x5a8c13(0x0,_0x114b3e[_0x1e3977(0x42b)])],_0x2950cd);function _0x22e8ac(){const _0x13a17a=_0x1e3977;let _0x1543d2=(0x0,_0x4b5551[_0x13a17a(0x11c)])(_0x215a9[_0x13a17a(0x18c)]),_0x2a8a1f=(0x0,_0x4b5551[_0x13a17a(0x2af)])(()=>_0x1543d2['focus$'],_0x1543d2['getFocusDrawings'](),!0x1,[_0x1543d2]);return _0x2a8a1f[_0x13a17a(0x337)]===0x0?null:(0x0,_0x2dcc44[_0x13a17a(0x32e)])(_0x13a17a(0x25c),{'children':(0x0,_0x2dcc44[_0x13a17a(0x149)])('div',{'className':_0x13a17a(0x224),'children':[(0x0,_0x2dcc44['jsx'])(_0x34fb64[_0x13a17a(0x1ad)],{'drawings':_0x2a8a1f,'hasCropper':!0x1}),(0x0,_0x2dcc44[_0x13a17a(0x32e)])(_0x101b82[_0x13a17a(0x28c)],{'drawings':_0x2a8a1f})]})});}function _0x1d45ee(_0x1c1493){const _0xccb28e=_0x1e3977;let {unitId:_0x45b560,subUnitId:_0x1bc2aa,shapeId:_0x491624}=_0x1c1493,_0x32f731=(0x0,_0x4b5551[_0xccb28e(0x11c)])(_0x2eccf5[_0xccb28e(0x1b2)]),_0x16e1e8=(0x0,_0x4b5551[_0xccb28e(0x11c)])(_0x2950cd);return(0x0,_0x2dcc44['jsx'])(_0x25b599[_0xccb28e(0x168)],{..._0x1c1493,'positionEditor':(0x0,_0x2dcc44[_0xccb28e(0x32e)])(_0x22e8ac,{}),'onUpdateShapeData':(_0x2eddf8,_0x519e3c)=>{_0x3cdd2e(_0x32f731,_0x45b560,_0x1bc2aa,_0x491624,_0x2eddf8,_0x519e3c);},'onUpdateLineShapeData':(_0x5f2c00,_0x12195a)=>{_0x43c867(_0x32f731,_0x45b560,_0x1bc2aa,_0x491624,_0x5f2c00,_0x12195a);},'onUpdateShapeFillImage':_0x26bce4=>{_0x16e1e8['updateShapeFillImage']({'unitId':_0x45b560,'subUnitId':_0x1bc2aa,'drawingId':_0x491624},_0x26bce4);}});}function _0x11b3b1(_0x1b1b3c){const _0x2805c3=_0x1e3977;let _0x5511d9=_0x1b1b3c[_0x2805c3(0x305)]['extraProps'];return _0x5511d9?(0x0,_0x2dcc44[_0x2805c3(0x32e)])(_0x4dcbaf,{..._0x5511d9}):null;}function _0x4dcbaf(_0x240d01){const _0x27019a=_0x1e3977;var _0x409270,_0xdc311d;let _0x21ca2=(0x0,_0x4b5551[_0x27019a(0x11c)])(_0x2eccf5[_0x27019a(0x1b2)]),_0x2c3bec=(0x0,_0x4b5551[_0x27019a(0x11c)])(_0x1b87be['SheetsShapeService']),{unitId:_0x4d4597,subUnitId:_0x2e40c7,drawingId:_0x5e3126,drawingType:_0xc8f1b6,shapeType:_0xca6746}=_0x240d01,[_0x4e87e3,_0x1e5c2d]=(0x0,_0x33f0ff[_0x27019a(0x375)])(_0x240d01['shapeData']),_0x413f72=(0x0,_0x33f0ff[_0x27019a(0x2d4)])(()=>(0x0,_0x25b599['getTextStyle'])(_0x4e87e3),[_0x4e87e3]),_0x4e621c=(0x0,_0x33f0ff[_0x27019a(0x2d4)])(()=>(0x0,_0x25b599[_0x27019a(0x42e)])(_0x4e87e3),[_0x4e87e3]);(0x0,_0x33f0ff[_0x27019a(0x3cc)])(()=>{const _0x2edb8f=_0x27019a;let _0x3d388a=_0x21ca2[_0x2edb8f(0x17a)](_0x2b6ce5=>{const _0x2c7ccc=_0x2edb8f;if(_0x2b6ce5['id']!==_0x1b87be[_0x2c7ccc(0x3da)]['id'])return;let _0x1b1be0=_0x2c3bec['getShapeDataById'](_0x4d4597,_0x2e40c7,_0x5e3126);_0x1b1be0&&_0x1e5c2d(_0x1b1be0);});return()=>_0x3d388a[_0x2edb8f(0x175)]();},[_0x21ca2,_0x5e3126,_0x2c3bec,_0x2e40c7,_0x4d4597]);let _0x24bfc7=_0x5e5a53=>{_0x1e5c2d(_0x3cf710=>({..._0x3cf710,..._0x5e5a53}));},_0x3bfd0f=_0x3e3d27=>{const _0x157c54=_0x27019a;let _0x310e6b=(0x0,_0x25b599[_0x157c54(0x182)])(_0x4e87e3,_0x3e3d27);_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,{'oldShapeData':{'shapeText':_0x4e87e3[_0x157c54(0x160)]}},_0x310e6b),_0x24bfc7(_0x310e6b);},_0x22c66e=(0x0,_0x25b599[_0x27019a(0x3df)])({'hostType':_0x2eccf5['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'shapeId':_0x5e3126,'shapeData':_0x4e87e3,'onUpdateBinding':_0x28eb60=>{const _0x95a8ec=_0x27019a;let _0xe10f34={'formulaBinding':_0x28eb60};_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,{'oldShapeData':{'formulaBinding':_0x4e87e3[_0x95a8ec(0x331)]}},_0xe10f34),_0x24bfc7(_0xe10f34);}});return(0x0,_0x2dcc44['jsxs'])(_0x2dcc44[_0x27019a(0x1b8)],{'children':[(0x0,_0x2dcc44['jsx'])(_0x25b599['ShapeFloatingToolbar'],{'shapeData':_0x4e87e3,'shapeType':_0xca6746,'textStyle':{'ff':_0x3d21cd[_0x27019a(0x356)]['shapeText'][_0x27019a(0x3d8)],'fs':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x160)][_0x27019a(0x254)],'cl':{'rgb':_0x3d21cd['ShapeDefaultConfig'][_0x27019a(0x160)]['color']},..._0x413f72},'textModel':_0x4e621c?{'ha':(_0x409270=_0x4e621c['ha'])==null?_0x2eccf5['HorizontalAlign']['LEFT']:_0x409270,'va':(_0xdc311d=_0x4e621c['va'])==null?_0x2eccf5['VerticalAlign'][_0x27019a(0x422)]:_0xdc311d}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x172)],'defaultGradientEndColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x349)],'defaultStrokeColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x3ed)],'extensionGroups':_0x22c66e[_0x27019a(0x38c)],'onUpdateShapeData':(_0x360bc9,_0x727d3f)=>{_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,_0x360bc9,_0x727d3f),_0x727d3f&&_0x24bfc7(_0x727d3f);},'onUpdateText':_0x3bfd0f,'onOpenPanel':()=>{_0x21ca2['executeCommand'](_0x148656['id'],{'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'drawingId':_0x5e3126});},'onDelete':()=>{const _0x9fc523=_0x27019a;_0x21ca2[_0x9fc523(0x216)](_0x2a2650[_0x9fc523(0x20d)]['id'],{'unitId':_0x4d4597,'drawings':[{'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'drawingId':_0x5e3126,'drawingType':_0xc8f1b6}]});}}),_0x22c66e['panel']]});}var _0x31cbef=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(..._0x633089){const _0x118621=_0x1e3977;super(..._0x633089),_0x163ed0(this,_0x118621(0x22d),new _0x124e3f['BehaviorSubject'](null)),_0x163ed0(this,'editingParams$',this[_0x118621(0x22d)]['asObservable']()),_0x163ed0(this,_0x118621(0x2d1),new _0x124e3f[(_0x118621(0x253))](!0x1)),_0x163ed0(this,_0x118621(0x1ee),this[_0x118621(0x2d1)][_0x118621(0x287)]());}['dispose'](){const _0x48f6f2=_0x1e3977;this[_0x48f6f2(0x22d)]['next'](null),this['_editingParams$']['complete'](),this[_0x48f6f2(0x2d1)][_0x48f6f2(0x1fe)](!0x1),this[_0x48f6f2(0x2d1)][_0x48f6f2(0x3bc)](),super[_0x48f6f2(0x175)]();}[_0x1e3977(0x12a)](_0xa8e3fe){const _0x12c931=_0x1e3977;this['_editingParams$'][_0x12c931(0x1fe)](_0xa8e3fe),_0xa8e3fe==null&&this[_0x12c931(0x2d1)][_0x12c931(0x1fe)](!0x1);}[_0x1e3977(0x342)](_0x5d10f0){const _0x16408f=_0x1e3977;this[_0x16408f(0x2d1)][_0x16408f(0x1fe)](_0x5d10f0);}[_0x1e3977(0x1b7)](){const _0xfe1622=_0x1e3977;return this[_0xfe1622(0x22d)][_0xfe1622(0x3d9)]();}[_0x1e3977(0x312)](_0x5afe7d){const _0x38d7b2=_0x1e3977;this[_0x38d7b2(0x1b7)]()&&(this['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x46aa16=_0x38d7b2;this[_0x46aa16(0x12a)](null);}));}[_0x1e3977(0x12e)](){const _0x328486=_0x1e3977;this[_0x328486(0x1b7)]()&&this[_0x328486(0x12a)](null);}};let _0x289f1a=(0x0,_0x33f0ff[_0x1e3977(0x30a)])(()=>{const _0x478c19=_0x1e3977;let _0x25a70e=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x31cbef),_0x3228ba=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x1b87be['SheetsShapeService']),_0x562b74=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x215a9[_0x478c19(0x18c)]),_0x23f9fb=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x2eccf5[_0x478c19(0x1b2)]),_0x1b049a=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x114b3e['IRenderManagerService']);return(0x0,_0x2dcc44[_0x478c19(0x32e)])(_0x25b599[_0x478c19(0x3c1)],{'adapter':(0x0,_0x33f0ff[_0x478c19(0x2d4)])(()=>({'getShapeModel':(_0x2631fd,_0x1b7243,_0x39d035)=>_0x3228ba[_0x478c19(0x134)](_0x2631fd,_0x1b7243,_0x39d035),'getShapeData':(_0x281d53,_0xf578f6,_0x1c32dc)=>_0x3228ba[_0x478c19(0x3b9)](_0x281d53,_0xf578f6,_0x1c32dc),'getDrawingTransform':(_0x28526e,_0x5c3986,_0x86a3b5)=>{const _0x5bd0a1=_0x478c19;let _0x520c88=_0x562b74[_0x5bd0a1(0x3d4)]({'unitId':_0x28526e,'subUnitId':_0x5c3986,'drawingId':_0x86a3b5});return _0x520c88==null?void 0x0:_0x520c88['transform'];},'updateShapeText':({unitId:_0x3c0e44,subUnitId:_0x4a152c,shapeId:_0x471c56,shapeText:_0x42c5b1,oldShapeText:_0x3ca308})=>{const _0xde68a4=_0x478c19;_0x23f9fb[_0xde68a4(0x216)](_0x5a577b['id'],{'unitId':_0x3c0e44,'subUnitId':_0x4a152c,'shapeId':_0x471c56,'shapeData':{'shapeText':_0x42c5b1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3ca308}}});},'updateHostSize':({unitId:_0x5b948f,subUnitId:_0x2117e2,shapeId:_0x1065fa,width:_0x363472,height:_0x2d8901})=>{const _0x1926fd=_0x478c19;var _0x2340cf,_0x54f2ec,_0x4f261c;let _0x2196ba=_0x562b74['getDrawingByParam']({'unitId':_0x5b948f,'subUnitId':_0x2117e2,'drawingId':_0x1065fa}),_0x2085a4=_0x2196ba==null?void 0x0:_0x2196ba[_0x1926fd(0x31d)];if(!_0x2196ba||!_0x2085a4)return;let _0x3569d4={..._0x2085a4,'width':_0x363472,'height':_0x2d8901},_0x27c7ba=(_0x2340cf=_0x1b049a['getRenderUnitById'](_0x5b948f))==null||(_0x2340cf=_0x2340cf['with'](_0x3c12d8[_0x1926fd(0x1ae)])['getSkeletonParam'](_0x2117e2))==null?void 0x0:_0x2340cf[_0x1926fd(0x23e)],_0x28a7b8=_0x27c7ba?(_0x54f2ec=(0x0,_0x2a2650[_0x1926fd(0x3c9)])(_0x3569d4,_0x27c7ba))==null?_0x2196ba[_0x1926fd(0x27a)]:_0x54f2ec:_0x2196ba[_0x1926fd(0x27a)],_0x404c8d=_0x27c7ba?(_0x4f261c=(0x0,_0x2a2650[_0x1926fd(0x288)])(_0x3569d4,_0x27c7ba))==null?_0x2196ba[_0x1926fd(0x2fb)]:_0x4f261c:_0x2196ba[_0x1926fd(0x2fb)];_0x23f9fb[_0x1926fd(0x216)](_0x2a2650[_0x1926fd(0x3c5)]['id'],{'unitId':_0x5b948f,'drawings':[{..._0x2196ba,'transform':_0x3569d4,'sheetTransform':_0x28a7b8,'axisAlignSheetTransform':_0x404c8d}]});},'allowHostSizeShrink':({unitId:_0x54713a,subUnitId:_0x587fca,shapeId:_0x7490ed})=>(0x0,_0x25b599[_0x478c19(0x210)])(_0x3228ba['getShapeDataById'](_0x54713a,_0x587fca,_0x7490ed))}),[_0x23f9fb,_0x562b74,_0x1b049a,_0x3228ba]),'editingService':_0x25a70e,'editorUnitId':_0x39b4a9,'positionOptions':(0x0,_0x33f0ff[_0x478c19(0x2d4)])(()=>({'viewportKeys':{'main':_0x114b3e['SHEET_VIEWPORT_KEY']['VIEW_MAIN'],'leftTop':_0x114b3e['SHEET_VIEWPORT_KEY'][_0x478c19(0x3cf)],'top':_0x114b3e[_0x478c19(0x308)][_0x478c19(0x225)],'left':_0x114b3e[_0x478c19(0x308)][_0x478c19(0x301)]},'getSkeleton':(_0x480de6,_0x26f00)=>{const _0x1169bd=_0x478c19;var _0x475b1e,_0x46a2a3;return(_0x475b1e=(_0x46a2a3=_0x480de6[_0x1169bd(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x1169bd(0x417)](_0x26f00[_0x1169bd(0x204)]))==null?void 0x0:_0x46a2a3[_0x1169bd(0x23e)])==null?null:_0x475b1e;}}),[])});}),_0x1ef4c8=class extends _0x2eccf5['Disposable']{constructor(_0xec0a48,_0x143d46){const _0x323b80=_0x1e3977;super(),this[_0x323b80(0x25f)]=_0xec0a48,this[_0x323b80(0x14d)]=_0x143d46,this['_registerIcons'](),this[_0x323b80(0x3a3)]();}[_0x1e3977(0x1e6)](){const _0x473dae=_0x1e3977;this[_0x473dae(0x14d)][_0x473dae(0x431)](_0x473dae(0x1f7))||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'ObjectLayersIcon':_0x2f353d})),this[_0x473dae(0x14d)][_0x473dae(0x431)](_0x473dae(0x2f0))||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'FlipHorizontalIcon':_0x194a17})),this[_0x473dae(0x14d)][_0x473dae(0x431)]('FlipVerticalIcon')||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'FlipVerticalIcon':_0x1e6e5}));}[_0x1e3977(0x3a3)](){const _0x1b228c=_0x1e3977;this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0xb9db8d,_0x1d45ee)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x19a922,_0x45565c)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)]['register'](_0x1ed21a,_0x46b9a0)),this['disposeWithMe'](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x456ca6,_0x5968f5)),this[_0x1b228c(0x25f)][_0x1b228c(0x32f)](_0x34fb64[_0x1b228c(0x2c3)])||this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x34fb64[_0x1b228c(0x2c3)],_0x49666e)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x1f1d2c,_0x11b3b1)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)]['register'](_0x9609bf,_0x25b599[_0x1b228c(0x1e9)])),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x1b228c(0x141),_0x289f1a));}};_0x1ef4c8=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551['ComponentManager'])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551[_0x1e3977(0x1b6)]))],_0x1ef4c8);let _0x1970f0=class extends _0x2eccf5['Disposable']{constructor(_0x3fa445,_0x4013a3,_0x2b43db,_0x2c0d7a,_0x53bb8){const _0x3c861e=_0x1e3977;super(),this['_context']=_0x3fa445,this['_drawingManagerService']=_0x4013a3,this[_0x3c861e(0x3ba)]=_0x2b43db,this[_0x3c861e(0x18f)]=_0x2c0d7a,this['_imageShapeClipController']=_0x53bb8,_0x163ed0(this,_0x3c861e(0x354),null),_0x163ed0(this,'_unitId',null),_0x163ed0(this,_0x3c861e(0x18a),null),_0x163ed0(this,_0x3c861e(0x440),void 0x0),_0x163ed0(this,'_shapes',[]),_0x163ed0(this,_0x3c861e(0x426),0x0),_0x163ed0(this,_0x3c861e(0x3de),0x0),_0x163ed0(this,_0x3c861e(0x382),0x0),_0x163ed0(this,_0x3c861e(0x2ab),0x0),_0x163ed0(this,_0x3c861e(0x1bd),!0x1),_0x163ed0(this,_0x3c861e(0x420),void 0x0),_0x163ed0(this,_0x3c861e(0x190),void 0x0),_0x163ed0(this,_0x3c861e(0x161),void 0x0),_0x163ed0(this,_0x3c861e(0x153),void 0x0),_0x163ed0(this,_0x3c861e(0x112),!0x1),this[_0x3c861e(0x184)](),this[_0x3c861e(0x13b)]();}[_0x1e3977(0x414)](){this['_clearControls']();}['refreshAdjustControls'](){const _0x15196a=_0x1e3977;this[_0x15196a(0x442)](),this[_0x15196a(0x3e4)](!0x0);}[_0x1e3977(0x3a9)](_0x46b908,_0x28c158,_0x3de600,_0x3eb49d){const _0x5074a9=_0x1e3977;let _0x165224=_0x46b908;if(_0x165224!==_0x3d21cd['ShapeTypeEnum'][_0x5074a9(0x174)]&&_0x46b908!==_0x5074a9(0x2c7))try{let _0x12e4b2=new _0x3d21cd[(_0x5074a9(0x33b))](_0x165224,_0x5074a9(0x30f)+_0x46b908);return _0x3eb49d&&_0x12e4b2[_0x5074a9(0x25a)]({'adjustValues':_0x3eb49d},!0x0),_0x12e4b2['updateContext']({'width':_0x28c158,'height':_0x3de600}),_0x12e4b2;}catch{return;}}[_0x1e3977(0x1a4)](_0x836a82,_0x133dc4,_0x9513c9){const _0x2aec9d=_0x1e3977;let _0x3c31f2={'unitId':_0x836a82,'subUnitId':_0x133dc4,'drawingId':_0x9513c9},_0x221c98=this[_0x2aec9d(0x1a2)][_0x2aec9d(0x3d4)](_0x3c31f2);if(!(!_0x221c98||_0x221c98[_0x2aec9d(0x34b)]!==_0x2eccf5[_0x2aec9d(0x43b)][_0x2aec9d(0x22c)]))return _0x221c98;}[_0x1e3977(0x171)](_0x31ed43,_0x2155a3,_0x34c318){const _0x3357a0=_0x1e3977;let _0x16b673=this['_renderManagerService'][_0x3357a0(0x2be)](_0x31ed43);if(!_0x16b673)return;let {scene:_0x32008c}=_0x16b673,_0x5ca56a=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x31ed43,'subUnitId':_0x2155a3,'drawingId':_0x34c318}),_0x17eea4=_0x32008c[_0x3357a0(0x1a8)](_0x5ca56a);if(_0x17eea4 instanceof _0x114b3e[_0x3357a0(0x3c3)]){let _0x5b8eb2=_0x17eea4[_0x3357a0(0x18e)];if(_0x5b8eb2)return{'prstGeom':_0x5b8eb2,'adjustValues':_0x17eea4[_0x3357a0(0x2ff)]};}}[_0x1e3977(0x3e4)](_0x552f19=!0x1){const _0x5cf6c5=_0x1e3977;if(!this[_0x5cf6c5(0x44e)]||!this[_0x5cf6c5(0x18a)]||!this[_0x5cf6c5(0x354)])return;let _0x474644=this['_renderManagerService'][_0x5cf6c5(0x2be)](this['_unitId']);if(!_0x474644||!_0x474644[_0x5cf6c5(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x5cf6c5(0x26d)]())return;let {scene:_0x50844b}=_0x474644,_0x1bfe4d=this[_0x5cf6c5(0x1a4)](this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)],this[_0x5cf6c5(0x354)]);if(!_0x1bfe4d)return;let {transform:_0x42c56f}=_0x1bfe4d;if(!_0x42c56f)return;let {left:_0x173cff,top:_0x638cb9,width:_0x234acd,height:_0x543965,flipX:_0x64708e,flipY:_0x80a2da,angle:_0x3ced37=0x0}=_0x42c56f;if(_0x173cff===void 0x0||_0x638cb9===void 0x0)return;let _0x405c23=this[_0x5cf6c5(0x171)](this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)],this[_0x5cf6c5(0x354)]);if(!_0x405c23)return;if(_0x552f19){let _0x313c7c=this[_0x5cf6c5(0x3a9)](_0x405c23[_0x5cf6c5(0x18e)],_0x234acd||0x0,_0x543965||0x0,_0x405c23[_0x5cf6c5(0x37d)]);if(!_0x313c7c)return;this[_0x5cf6c5(0x440)]=_0x313c7c[_0x5cf6c5(0x22e)]();}let _0x3f492a=this[_0x5cf6c5(0x440)];if(!(!_0x3f492a||_0x3f492a['length']===0x0))for(let _0x280291=0x0;_0x280291<_0x3f492a[_0x5cf6c5(0x337)];_0x280291++){let _0x4e5758=_0x3f492a[_0x280291],_0x3530c1=_0x4e5758['x'],_0x18c428=_0x4e5758['y'];if(_0x64708e&&(_0x3530c1=(_0x234acd||0x0)-_0x3530c1),_0x80a2da&&(_0x18c428=(_0x543965||0x0)-_0x18c428),_0x3ced37!==0x0){let _0x2cbc6b=(_0x234acd||0x0)/0x2,_0x154c7b=(_0x543965||0x0)/0x2,_0x4f65da=_0x3ced37*Math['PI']/0xb4,_0x343ec1=Math[_0x5cf6c5(0x1fb)](_0x4f65da),_0x3affaf=Math['sin'](_0x4f65da),_0x544aa8=_0x3530c1-_0x2cbc6b,_0x410d08=_0x18c428-_0x154c7b;_0x3530c1=_0x2cbc6b+(_0x544aa8*_0x343ec1-_0x410d08*_0x3affaf),_0x18c428=_0x154c7b+(_0x544aa8*_0x3affaf+_0x410d08*_0x343ec1);}let _0x1dd7b6={'x':_0x3530c1,'y':_0x18c428,'adjName':_0x4e5758[_0x5cf6c5(0x19b)]};this[_0x5cf6c5(0x118)](_0x50844b,_0x1dd7b6,_0x1dd7b6[_0x5cf6c5(0x19b)],_0x173cff,_0x638cb9,this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)]);}}['_addControl'](_0x59af6f,_0x5edca9,_0x35ff01,_0xdf88c1,_0x4ba137,_0x135d65,_0x5580ad){const _0x38fec5=_0x1e3977;if(!this[_0x38fec5(0x354)])return;let _0x26387d=_0x38fec5(0x3dc)+this[_0x38fec5(0x354)]+'-'+_0x35ff01,_0x2d89ae=_0x59af6f[_0x38fec5(0x2a4)](_0x26387d);if(_0x2d89ae){_0x2d89ae[_0x38fec5(0x1c7)]({'left':_0x5edca9['x']+_0xdf88c1-_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)],'top':_0x5edca9['y']+_0x4ba137-_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)]});return;}let _0x1280c4=new _0x372832(_0x26387d,{'left':_0x5edca9['x']+_0xdf88c1-_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)],'top':_0x5edca9['y']+_0x4ba137-_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)],'adjName':_0x35ff01,'shapeId':this[_0x38fec5(0x354)],'unitId':_0x135d65,'subUnitId':_0x5580ad,'width':_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)]+0x8,'height':_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)]+0x8,'zIndex':_0x114b3e['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x38fec5(0x1aa)][_0x38fec5(0x1b1)](_0x1280c4),this[_0x38fec5(0x3f1)](_0x1280c4,_0x59af6f,_0x35ff01),_0x59af6f['addObject'](_0x1280c4,_0x114b3e[_0x38fec5(0x3e0)]+0x1);}[_0x1e3977(0x442)](){const _0x2e446b=_0x1e3977;this[_0x2e446b(0x1aa)]['length']!==0x0&&(this['_shapes'][_0x2e446b(0x30e)](_0x223121=>_0x223121[_0x2e446b(0x175)]()),this[_0x2e446b(0x1aa)]=[]);}[_0x1e3977(0x1c3)](_0x26342e,_0x1ea9d7){const _0x37dbb1=_0x1e3977;var _0x4d370c;let _0x318a20={'x':0x0,'y':0x0},_0x89e971=this['_renderManagerService'][_0x37dbb1(0x2be)](_0x26342e);if(!_0x89e971||!_0x89e971['with'](_0x3c12d8[_0x37dbb1(0x1ae)])[_0x37dbb1(0x367)](_0x1ea9d7))return _0x318a20;let _0x51bc21=_0x89e971[_0x37dbb1(0x1dc)](_0x3c12d8[_0x37dbb1(0x3ee)]),_0x200589=_0x51bc21==null?void 0x0:_0x51bc21[_0x37dbb1(0x3b2)]();if(!_0x200589)return _0x318a20;let _0x3980de=(_0x4d370c=this[_0x37dbb1(0x18f)][_0x37dbb1(0x2f8)](_0x26342e))==null?void 0x0:_0x4d370c['getSheetBySheetId'](_0x1ea9d7);if(!_0x3980de)return _0x318a20;let _0x214aff=(0x0,_0x3c12d8[_0x37dbb1(0x1ba)])(_0x200589['sheetViewStartRow'],_0x200589['sheetViewStartColumn'],_0x89e971['scene'],_0x3980de);return _0x214aff?{'x':_0x214aff[_0x37dbb1(0x3d1)],'y':_0x214aff[_0x37dbb1(0x446)]}:_0x318a20;}[_0x1e3977(0x427)](_0x12c5dd,_0x27567b){const _0x254048=_0x1e3977;var _0x1b4292,_0x2e94d9;let _0x2485a9=(_0x1b4292=this[_0x254048(0x18f)][_0x254048(0x2f8)](_0x12c5dd))==null?void 0x0:_0x1b4292[_0x254048(0x269)](_0x27567b);return(_0x2e94d9=_0x2485a9==null?void 0x0:_0x2485a9[_0x254048(0x374)]())==null?0x1:_0x2e94d9;}['_attachAdjustEvent'](_0x3cc853,_0x2731cb,_0x1e98fd){const _0x925634=_0x1e3977;this['disposeWithMe']((0x0,_0x2eccf5[_0x925634(0x351)])(_0x3cc853['onPointerDown$'][_0x925634(0x447)]((_0xe77460,_0x2d8c0a)=>{const _0x59e9d5=_0x925634;var _0x377704,_0x2693e1,_0x39095b;let {unitId:_0x2c93a8,subUnitId:_0x228c4f,drawingId:_0x8fa038}=_0x3cc853[_0x59e9d5(0x26e)](),_0x5e4cc9=this[_0x59e9d5(0x1a4)](_0x2c93a8,_0x228c4f,_0x8fa038);if(!(_0x5e4cc9!=null&&_0x5e4cc9[_0x59e9d5(0x31d)]))return;let {left:_0x21c60b,top:_0x2c3998,width:_0x262392,height:_0x1783f1}=_0x5e4cc9[_0x59e9d5(0x31d)];this[_0x59e9d5(0x426)]=_0x21c60b||0x0,this[_0x59e9d5(0x3de)]=_0x2c3998||0x0,this[_0x59e9d5(0x382)]=_0x262392||0x0,this[_0x59e9d5(0x2ab)]=_0x1783f1||0x0;let _0x224a5e=!!((_0x377704=_0x5e4cc9[_0x59e9d5(0x31d)])!=null&&_0x377704[_0x59e9d5(0x23d)]),_0x1e35e2=!!((_0x2693e1=_0x5e4cc9[_0x59e9d5(0x31d)])!=null&&_0x2693e1[_0x59e9d5(0x1ac)]),_0x4cd614=((_0x39095b=_0x5e4cc9[_0x59e9d5(0x31d)])==null?void 0x0:_0x39095b[_0x59e9d5(0x1bf)])||0x0,_0x3ae807=this[_0x59e9d5(0x171)](_0x2c93a8,_0x228c4f,_0x8fa038);if(!_0x3ae807)return;let _0x4dab28=this['_getOrCreateShapeModel'](_0x3ae807[_0x59e9d5(0x18e)],this[_0x59e9d5(0x382)],this[_0x59e9d5(0x2ab)],_0x3ae807['adjustValues']);if(!_0x4dab28||(this[_0x59e9d5(0x190)]=_0x4dab28,this[_0x59e9d5(0x420)]=_0x4dab28[_0x59e9d5(0x402)](_0x1e98fd),!this[_0x59e9d5(0x420)]))return;this['_isStartAdjusting']=!0x0,_0x2731cb['disableObjectsEvent']();let _0x434ad4=_0x3ae807[_0x59e9d5(0x18e)];this[_0x59e9d5(0x161)]=_0x2731cb[_0x59e9d5(0x307)][_0x59e9d5(0x447)]((_0x3ea717,_0x24a3e0)=>{const _0x22aa3e=_0x59e9d5;if(!this[_0x22aa3e(0x1bd)])return;let {offsetX:_0x227133,offsetY:_0x4149d6}=_0x3ea717,_0x5e50fc=this[_0x22aa3e(0x420)];if(!this[_0x22aa3e(0x190)]||!_0x5e50fc)return;_0x2731cb[_0x22aa3e(0x415)](),_0x2731cb['setCursor'](_0x114b3e[_0x22aa3e(0x2c2)][_0x22aa3e(0x226)]);let _0x419542={'left':0x0,'top':0x0,'width':this[_0x22aa3e(0x382)],'height':this[_0x22aa3e(0x2ab)]},_0x5f3a53=this['_getScrollInfo'](_0x2c93a8,_0x228c4f),_0x53a3c8=this[_0x22aa3e(0x427)](_0x2c93a8,_0x228c4f),_0x522856=_0x227133/_0x53a3c8+_0x5f3a53['x']-this['_baseLeft'],_0x40eee4=_0x4149d6/_0x53a3c8+_0x5f3a53['y']-this[_0x22aa3e(0x3de)];if(_0x4cd614!==0x0){let _0x14cc2b=this['_baseWidth']/0x2,_0x4ede70=this['_baseHeight']/0x2,_0x26c906=_0x4cd614*Math['PI']/0xb4,_0x48a983=Math[_0x22aa3e(0x1fb)](_0x26c906),_0x55dc67=Math[_0x22aa3e(0x1b5)](_0x26c906),_0x137bbf=_0x522856-_0x14cc2b,_0x5523f9=_0x40eee4-_0x4ede70;_0x522856=_0x14cc2b+(_0x137bbf*_0x48a983+_0x5523f9*_0x55dc67),_0x40eee4=_0x4ede70+(-_0x137bbf*_0x55dc67+_0x5523f9*_0x48a983);}_0x224a5e&&(_0x522856=this[_0x22aa3e(0x382)]-_0x522856),_0x1e35e2&&(_0x40eee4=this['_baseHeight']-_0x40eee4);let _0x26d13f=this[_0x22aa3e(0x190)][_0x22aa3e(0x36e)](_0x419542,{'x':_0x522856,'y':_0x40eee4},_0x5e50fc,_0x224a5e,_0x1e35e2);if(Object[_0x22aa3e(0x391)](_0x26d13f)['length']!==0x0){for(let [_0x321c70,_0x192243]of Object['entries'](_0x26d13f))this[_0x22aa3e(0x190)][_0x22aa3e(0x2db)](_0x321c70,_0x192243);this['_activeShapeModel']['updateContext']({'width':this[_0x22aa3e(0x382)],'height':this[_0x22aa3e(0x2ab)]}),this[_0x22aa3e(0x159)](_0x2c93a8,_0x228c4f,_0x8fa038,_0x26d13f),this[_0x22aa3e(0x440)]=this['_activeShapeModel']['getDrawingPoints'](),this[_0x22aa3e(0x3e4)](),_0x24a3e0[_0x22aa3e(0x19d)]();}}),this[_0x59e9d5(0x153)]=_0x2731cb[_0x59e9d5(0x292)]['subscribeEvent']((_0x5be1da,_0x38c21a)=>{const _0x49b6d2=_0x59e9d5;if(this[_0x49b6d2(0x161)][_0x49b6d2(0x369)](),this[_0x49b6d2(0x153)][_0x49b6d2(0x369)](),_0x2731cb[_0x49b6d2(0x128)](),this[_0x49b6d2(0x190)]){let _0x499cfa=this['_activeShapeModel'][_0x49b6d2(0x27f)](),_0x2a351e={};for(let _0x5d756f of _0x499cfa){let _0x5d4ad6=this[_0x49b6d2(0x190)][_0x49b6d2(0x179)](_0x5d756f);_0x5d4ad6!==void 0x0&&(_0x2a351e[_0x5d756f]=_0x5d4ad6);}this[_0x49b6d2(0x2e8)][_0x49b6d2(0x2a0)](_0x2c93a8,_0x228c4f,_0x8fa038,_0x434ad4,_0x2a351e);}this[_0x49b6d2(0x420)]=void 0x0,this[_0x49b6d2(0x190)]=void 0x0,this[_0x49b6d2(0x1bd)]=!0x1,_0x38c21a[_0x49b6d2(0x19d)](),_0x2731cb[_0x49b6d2(0x1ce)]();}),_0x2d8c0a['stopPropagation']();})));}[_0x1e3977(0x159)](_0x5229dc,_0x2cbc37,_0x239cb0,_0x48eaad){const _0x4442a0=_0x1e3977;let _0x144848=this[_0x4442a0(0x3ba)]['getRenderUnitById'](_0x5229dc);if(!_0x144848)return;let {scene:_0x40bbd3}=_0x144848,_0x27d618=(0x0,_0x215a9[_0x4442a0(0x2ee)])({'unitId':_0x5229dc,'subUnitId':_0x2cbc37,'drawingId':_0x239cb0}),_0x3604fb=_0x40bbd3[_0x4442a0(0x1a8)](_0x27d618);if(_0x3604fb instanceof _0x114b3e['Image']){var _0x3c4ff4;let _0x152830=(_0x3c4ff4=_0x3604fb[_0x4442a0(0x2ff)])==null?{}:_0x3c4ff4;_0x3604fb['setPrstGeomAdjValues']({..._0x152830,..._0x48eaad}),_0x3604fb['makeDirty'](!0x0);}}['_registerMoveHandler'](){const _0x44dfda=_0x1e3977;let _0x54d250=this[_0x44dfda(0x18f)][_0x44dfda(0x2b4)](_0x2eccf5[_0x44dfda(0x296)][_0x44dfda(0x293)]);this['disposeWithMe'](_0x54d250['pipe']((0x0,_0x124e3f['switchMap'])(_0x346c5f=>_0x346c5f?_0x346c5f[_0x44dfda(0x445)][_0x44dfda(0x239)]((0x0,_0x124e3f[_0x44dfda(0x37e)])(_0x1f7da1=>{const _0x57cdbb=_0x44dfda;if(!_0x1f7da1)return _0x124e3f[_0x57cdbb(0x341)];let _0x1abce7=_0x346c5f[_0x57cdbb(0x322)](),_0x528082=this[_0x57cdbb(0x3ba)][_0x57cdbb(0x2be)](_0x1abce7),_0x48557d=_0x528082==null?void 0x0:_0x528082[_0x57cdbb(0x14a)];return _0x48557d?(0x0,_0x124e3f['of'])(_0x48557d):_0x124e3f[_0x57cdbb(0x341)];})):_0x124e3f[_0x44dfda(0x341)]))[_0x44dfda(0x17b)](_0x37fe87=>{const _0xfa4761=_0x44dfda;let _0x3b6d07=_0x37fe87['getTransformerByCreate']();this['disposeWithMe'](_0x37fe87[_0xfa4761(0x307)][_0xfa4761(0x447)](()=>{const _0xfde7a8=_0xfa4761;this[_0xfde7a8(0x112)]&&this['_clearControls']();})),this[_0xfa4761(0x256)](_0x3b6d07[_0xfa4761(0x24c)]['subscribe'](_0x314cdf=>{const _0x410e5a=_0xfa4761;let {objects:_0x1b5a62}=_0x314cdf;if(this[_0x410e5a(0x3e4)](),_0x1b5a62!==null&&_0x1b5a62[_0x410e5a(0x419)]===0x1){let _0x274121=_0x1b5a62[_0x410e5a(0x158)]()[_0x410e5a(0x1fe)]()[_0x410e5a(0x123)];_0x274121 instanceof _0x114b3e[_0x410e5a(0x3c3)]&&_0x274121[_0x410e5a(0x18e)]&&(this[_0x410e5a(0x112)]=!0x0);}})),this[_0xfa4761(0x256)](_0x3b6d07[_0xfa4761(0x3be)][_0xfa4761(0x17b)](()=>{const _0x1b3109=_0xfa4761;this[_0x1b3109(0x112)]&&this[_0x1b3109(0x442)]();})),this[_0xfa4761(0x256)](_0x37fe87['onPointerUp$'][_0xfa4761(0x447)](()=>{const _0x2753c0=_0xfa4761;this[_0x2753c0(0x112)]&&(this[_0x2753c0(0x112)]=!0x1,this[_0x2753c0(0x3e4)]());})),this[_0xfa4761(0x256)](_0x3b6d07['changeEnd$'][_0xfa4761(0x17b)](()=>{const _0x2e8c97=_0xfa4761;if(this[_0x2e8c97(0x44e)]&&this['_subUnitId']&&this[_0x2e8c97(0x354)]){let _0x28fe79=this[_0x2e8c97(0x171)](this[_0x2e8c97(0x44e)],this[_0x2e8c97(0x18a)],this['_activeImageId']);if(_0x28fe79){var _0x3217de,_0x2b6d30;let _0x38e383=this[_0x2e8c97(0x1a4)](this[_0x2e8c97(0x44e)],this[_0x2e8c97(0x18a)],this[_0x2e8c97(0x354)]),_0x149c5b=(_0x38e383==null||(_0x3217de=_0x38e383[_0x2e8c97(0x31d)])==null?void 0x0:_0x3217de['width'])||0x0,_0x49f310=(_0x38e383==null||(_0x2b6d30=_0x38e383[_0x2e8c97(0x31d)])==null?void 0x0:_0x2b6d30[_0x2e8c97(0x196)])||0x0,_0xed0dd2=this[_0x2e8c97(0x3a9)](_0x28fe79['prstGeom'],_0x149c5b,_0x49f310,_0x28fe79[_0x2e8c97(0x37d)]);_0xed0dd2&&(this[_0x2e8c97(0x440)]=_0xed0dd2[_0x2e8c97(0x22e)](),this[_0x2e8c97(0x442)](),this[_0x2e8c97(0x3e4)](!0x0));}}}));}));}[_0x1e3977(0x184)](){const _0x1d599f=_0x1e3977;this[_0x1d599f(0x256)](this[_0x1d599f(0x1a2)]['focus$']['subscribe'](_0xbbe5a8=>{const _0x424aaf=_0x1d599f;if(_0xbbe5a8['length']===0x1){let _0x3d6e03=_0xbbe5a8[0x0];if(_0x3d6e03['drawingType']===_0x2eccf5['DrawingTypeEnum']['DRAWING_IMAGE']){let {unitId:_0x189343,subUnitId:_0x43d86e,drawingId:_0x415e0c}=_0x3d6e03,_0x400487=this[_0x424aaf(0x171)](_0x189343,_0x43d86e,_0x415e0c);if(_0x400487){var _0x2fc4ba,_0x30c360;this[_0x424aaf(0x354)]=_0x415e0c,this[_0x424aaf(0x44e)]=_0x189343,this['_subUnitId']=_0x43d86e;let _0x8df1c6=this['_getImageDrawingInfo'](_0x189343,_0x43d86e,_0x415e0c),_0x2b3ae3=(_0x8df1c6==null||(_0x2fc4ba=_0x8df1c6[_0x424aaf(0x31d)])==null?void 0x0:_0x2fc4ba[_0x424aaf(0x1f0)])||0x0,_0x31e454=(_0x8df1c6==null||(_0x30c360=_0x8df1c6[_0x424aaf(0x31d)])==null?void 0x0:_0x30c360[_0x424aaf(0x196)])||0x0,_0x457109=this['_getOrCreateShapeModel'](_0x400487[_0x424aaf(0x18e)],_0x2b3ae3,_0x31e454,_0x400487['adjustValues']);_0x457109&&(this['_activeAdjustPointList']=_0x457109[_0x424aaf(0x22e)]()),this['_clearControls'](),this[_0x424aaf(0x3e4)](!0x0);}else this[_0x424aaf(0x1a5)]();}else this['_resetState']();}else this[_0x424aaf(0x1a5)]();})),this[_0x1d599f(0x256)](this[_0x1d599f(0x1a2)][_0x1d599f(0x35f)][_0x1d599f(0x17b)](_0x207dd6=>{const _0x4bc26e=_0x1d599f;if(_0x207dd6[_0x4bc26e(0x337)]===0x1){let _0x582b40=_0x207dd6[0x0],_0x34a918=this[_0x4bc26e(0x1a2)][_0x4bc26e(0x3d4)](_0x582b40);(_0x34a918==null?void 0x0:_0x34a918[_0x4bc26e(0x34b)])===_0x2eccf5[_0x4bc26e(0x43b)]['DRAWING_IMAGE']&&this['_activeImageId']===_0x582b40['drawingId']&&(this[_0x4bc26e(0x442)](),this[_0x4bc26e(0x3e4)](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService'][_0x1d599f(0x3fa)][_0x1d599f(0x17b)](_0x21734b=>{const _0x1c3bfe=_0x1d599f;for(let _0x4fc74e of _0x21734b)this['_activeImageId']===_0x4fc74e[_0x1c3bfe(0x22a)]&&this[_0x1c3bfe(0x1a5)]();}));}[_0x1e3977(0x1a5)](){const _0x51cfd9=_0x1e3977;this[_0x51cfd9(0x354)]=null,this[_0x51cfd9(0x44e)]=null,this[_0x51cfd9(0x18a)]=null,this[_0x51cfd9(0x440)]=void 0x0,this[_0x51cfd9(0x442)]();}};_0x1970f0=_0xba323d([_0x5a8c13(0x1,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x114b3e[_0x1e3977(0x42b)])),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x432d68))],_0x1970f0);let _0x3f5298=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x5b129f,_0x3ef977,_0x4f56e1,_0x266337){const _0x550ba3=_0x1e3977;super(),this['_univerInstanceService']=_0x5b129f,this['_sheetInterceptorService']=_0x3ef977,this[_0x550ba3(0x262)]=_0x4f56e1,this[_0x550ba3(0x36d)]=_0x266337,this[_0x550ba3(0x411)]();}[_0x1e3977(0x411)](){const _0x4f9bfd=_0x1e3977;this[_0x4f9bfd(0x256)](this[_0x4f9bfd(0x1cc)]['interceptCommand']({'getMutations':_0x469dfa=>{const _0x8f6157=_0x4f9bfd;if(_0x469dfa['id']===_0x2554f2['RemoveSheetCommand']['id']){let _0x3c9e6e=(0x0,_0x2554f2[_0x8f6157(0x355)])(this['_univerInstanceService'],_0x469dfa['params']);if(!_0x3c9e6e)return{'redos':[],'undos':[]};let {unitId:_0x40c8f0,subUnitId:_0x2545b1}=_0x3c9e6e,_0x38e178=this[_0x8f6157(0x262)]['getDrawingData'](_0x40c8f0,_0x2545b1),_0x5b3108=Object[_0x8f6157(0x158)](_0x38e178)[_0x8f6157(0x3c4)](_0x207e74=>_0x207e74[_0x8f6157(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x8f6157(0x285)]);if(_0x5b3108[_0x8f6157(0x337)]===0x0)return{'redos':[],'undos':[]};let _0x587bcf=[],_0x97b796=[];for(let _0x500ab8=0x0;_0x500ab8<_0x5b3108[_0x8f6157(0x337)];_0x500ab8++){let _0x36eb60=_0x5b3108[_0x500ab8],_0x1f97f1=this[_0x8f6157(0x36d)]['getShapeModel'](_0x36eb60['unitId'],_0x36eb60[_0x8f6157(0x204)],_0x36eb60[_0x8f6157(0x22a)]);if(!_0x1f97f1)continue;let {redo:_0x434bcb,undo:_0x3c3b7c,objects:_0x4688ae}=this[_0x8f6157(0x262)]['getBatchRemoveOp']([_0x36eb60]);_0x587bcf[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x37a)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'shapeId':_0x36eb60[_0x8f6157(0x22a)]}}),_0x587bcf[_0x8f6157(0x1b1)]({'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'type':_0x2a2650[_0x8f6157(0x35a)][_0x8f6157(0x2c1)],'op':_0x434bcb,'objects':_0x4688ae}}),_0x97b796[_0x8f6157(0x1b1)]({'id':_0x2a2650[_0x8f6157(0x3f0)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x39e)],'op':_0x3c3b7c,'objects':_0x4688ae}}),_0x97b796[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x148)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'shapeId':_0x36eb60[_0x8f6157(0x22a)],'shapeType':_0x1f97f1[_0x8f6157(0x162)](),'shapeData':JSON[_0x8f6157(0x176)](JSON[_0x8f6157(0x1fd)](_0x1f97f1['getShapeData']()))}});}return{'redos':_0x587bcf,'undos':_0x97b796};}else{if(_0x469dfa['id']===_0x2554f2[_0x8f6157(0x24a)]['id']){let {unitId:_0x385ed0,subUnitId:_0x34456d,targetSubUnitId:_0x136dfb}=_0x469dfa[_0x8f6157(0x2bc)];if(!_0x385ed0||!_0x34456d||!_0x136dfb)return{'redos':[],'undos':[]};let _0xb01b3a=this[_0x8f6157(0x262)]['getDrawingData'](_0x385ed0,_0x34456d),_0xbf6df9=Object['values'](_0xb01b3a)[_0x8f6157(0x3c4)](_0x463896=>_0x463896[_0x8f6157(0x34b)]===_0x2eccf5[_0x8f6157(0x43b)][_0x8f6157(0x285)]);if(_0xbf6df9['length']===0x0)return{'redos':[],'undos':[]};let _0x1ea3bc=[],_0x238f7e=[];for(let _0x402f9c=0x0;_0x402f9c<_0xbf6df9[_0x8f6157(0x337)];_0x402f9c++){let _0x47bf2a=_0xbf6df9[_0x402f9c],_0x3f0d4f=this[_0x8f6157(0x36d)][_0x8f6157(0x134)](_0x47bf2a[_0x8f6157(0x387)],_0x47bf2a[_0x8f6157(0x204)],_0x47bf2a[_0x8f6157(0x22a)]);if(!_0x3f0d4f)continue;let _0x5736c8=(0x0,_0x2eccf5[_0x8f6157(0x2f1)])(),_0x2f9a94={..._0x47bf2a,'unitId':_0x385ed0,'subUnitId':_0x136dfb,'drawingId':_0x5736c8},{redo:_0x419014,undo:_0x3dc5ae,objects:_0x5565d3}=this[_0x8f6157(0x262)]['getBatchAddOp']([_0x2f9a94]);_0x1ea3bc[_0x8f6157(0x1b1)]({'id':_0x2a2650[_0x8f6157(0x3f0)]['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x39e)],'op':_0x419014,'objects':_0x5565d3}}),_0x1ea3bc[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x148)]['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'shapeId':_0x5736c8,'shapeType':_0x3f0d4f[_0x8f6157(0x162)](),'shapeData':JSON['parse'](JSON[_0x8f6157(0x1fd)](_0x3f0d4f[_0x8f6157(0x1e0)]()))}}),_0x238f7e[_0x8f6157(0x1b1)]({'id':_0x1b87be['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'shapeId':_0x5736c8}}),_0x238f7e[_0x8f6157(0x1b1)]({'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x2c1)],'op':_0x3dc5ae,'objects':_0x5565d3}});}return{'redos':_0x1ea3bc,'undos':_0x238f7e};}}return{'redos':[],'undos':[]};}}));}};_0x3f5298=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5['IUniverInstanceService'])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2554f2[_0x1e3977(0x145)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x2a2650[_0x1e3977(0x12c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x3f5298);let _0x3ec7c3=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2a47da,_0x568c88,_0x2dd82c,_0x1be518,_0x5deef1){const _0x4d8fe9=_0x1e3977;super(),this['_context']=_0x2a47da,this[_0x4d8fe9(0x2e0)]=_0x568c88,this[_0x4d8fe9(0x1a2)]=_0x2dd82c,this[_0x4d8fe9(0x133)]=_0x1be518,this[_0x4d8fe9(0x36d)]=_0x5deef1,_0x163ed0(this,_0x4d8fe9(0x365),null),this[_0x4d8fe9(0x3f4)](),this['_initSelection'](),this[_0x4d8fe9(0x140)]();}[_0x1e3977(0x3f4)](){const _0x44f537=_0x1e3977;let {scene:_0x575292}=this['_context'];this[_0x44f537(0x256)](_0x575292['onDblclick$'][_0x44f537(0x447)](_0x4048=>{const _0x35a6dd=_0x44f537;let {offsetX:_0xa533fe,offsetY:_0x4a7ec2}=_0x4048,_0x1d66d2=_0x575292['pick'](_0x114b3e[_0x35a6dd(0x2c9)]['FromArray']([_0xa533fe,_0x4a7ec2]));if(_0x1d66d2 instanceof _0x34cbbf){let _0x1ac9fd=this[_0x35a6dd(0x36d)][_0x35a6dd(0x134)](_0x1d66d2[_0x35a6dd(0x387)],_0x1d66d2[_0x35a6dd(0x204)],_0x1d66d2[_0x35a6dd(0x329)]);if(_0x1ac9fd!=null&&_0x1ac9fd[_0x35a6dd(0x1e0)]()[_0x35a6dd(0x331)]||(0x0,_0x3d21cd['isConnectorShape'])(this[_0x35a6dd(0x36d)][_0x35a6dd(0x162)](_0x1d66d2[_0x35a6dd(0x387)],_0x1d66d2[_0x35a6dd(0x204)],_0x1d66d2['shapeId'])))return;this[_0x35a6dd(0x2e0)]['setEditing']({'visible':!0x0,'unitId':_0x1d66d2[_0x35a6dd(0x387)],'subUnitId':_0x1d66d2[_0x35a6dd(0x204)],'shapeId':_0x1d66d2['shapeId'],'shapeKey':_0x1d66d2['oKey']});}}));}['_initSelection'](){const _0x59ff2a=_0x1e3977;this['disposeWithMe'](this[_0x59ff2a(0x1a2)]['focus$'][_0x59ff2a(0x17b)](_0x4d41a0=>{const _0x3c03f3=_0x59ff2a;if(_0x4d41a0['length']===0x1){let _0x557a46=_0x4d41a0[0x0],_0x1537eb=this['_drawingManagerService'][_0x3c03f3(0x3d4)](_0x557a46);if((_0x1537eb==null?void 0x0:_0x1537eb[_0x3c03f3(0x34b)])===_0x2eccf5[_0x3c03f3(0x43b)]['DRAWING_SHAPE']){var _0x4313a5;let _0x4035af=this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]();if((_0x4035af==null?void 0x0:_0x4035af[_0x3c03f3(0x329)])===_0x557a46[_0x3c03f3(0x22a)]&&_0x4035af[_0x3c03f3(0x339)])return;let _0x11604a=(0x0,_0x3d21cd[_0x3c03f3(0x275)])(this[_0x3c03f3(0x36d)][_0x3c03f3(0x162)](_0x557a46[_0x3c03f3(0x387)],_0x557a46[_0x3c03f3(0x204)],_0x557a46[_0x3c03f3(0x22a)])),_0x4cac84=!!((_0x4313a5=this[_0x3c03f3(0x36d)][_0x3c03f3(0x134)](_0x557a46[_0x3c03f3(0x387)],_0x557a46['subUnitId'],_0x557a46[_0x3c03f3(0x22a)]))!=null&&_0x4313a5[_0x3c03f3(0x1e0)]()[_0x3c03f3(0x331)]);(_0x11604a||_0x4cac84)&&this['_shapeTextEditingService'][_0x3c03f3(0x12a)](null);}else this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]()&&(this[_0x3c03f3(0x2e0)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x448a6e=_0x3c03f3;this[_0x448a6e(0x2e0)][_0x448a6e(0x12a)](null);}));}else this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]()&&(this[_0x3c03f3(0x2e0)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x1ab7c5=_0x3c03f3;this['_shapeTextEditingService'][_0x1ab7c5(0x12a)](null);}));})),this['disposeWithMe'](this[_0x59ff2a(0x1a2)][_0x59ff2a(0x3fa)][_0x59ff2a(0x17b)](_0x2d3fd3=>{const _0x331ebe=_0x59ff2a;let _0x5d6f9b=this[_0x331ebe(0x2e0)]['getEditing']();_0x5d6f9b&&_0x2d3fd3[_0x331ebe(0x23c)](_0x1f10ac=>_0x1f10ac[_0x331ebe(0x22a)]===_0x5d6f9b[_0x331ebe(0x329)])&&this[_0x331ebe(0x2e0)][_0x331ebe(0x12a)](null);}));}['_initEditingParams'](){const _0x1f6c7b=_0x1e3977;this[_0x1f6c7b(0x256)](this['_shapeTextEditingService'][_0x1f6c7b(0x274)][_0x1f6c7b(0x17b)](_0x44e4f3=>{const _0x5a7d85=_0x1f6c7b;let {scene:_0x404b27}=this[_0x5a7d85(0x1e3)];if(this[_0x5a7d85(0x365)]){let _0x41e4b6=_0x404b27[_0x5a7d85(0x2a4)](this[_0x5a7d85(0x365)]);_0x41e4b6&&_0x41e4b6[_0x5a7d85(0x12a)](!0x1);}if(_0x44e4f3){let _0x545fce=!!_0x44e4f3['visible'],_0x13e66c=_0x404b27[_0x5a7d85(0x2a4)](_0x44e4f3['shapeKey']);_0x13e66c&&(_0x13e66c[_0x5a7d85(0x12a)](_0x545fce),this['_lastEditingShapeKey']=_0x44e4f3[_0x5a7d85(0x1cb)]),this[_0x5a7d85(0x133)][_0x5a7d85(0x3a0)](_0x2eccf5[_0x5a7d85(0x343)],_0x545fce);}else this['_lastEditingShapeKey']=null,this['_contextService'][_0x5a7d85(0x3a0)](_0x2eccf5[_0x5a7d85(0x343)],!0x1);}));}};_0x3ec7c3=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x31cbef)),_0x5a8c13(0x2,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x3,_0x2eccf5['IContextService']),_0x5a8c13(0x4,(0x0,_0x2eccf5['Inject'])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x3ec7c3);let _0x298514=class extends _0x25b599[_0x1e3977(0x250)]{constructor(_0x54ed25,_0xe3da6f,_0x376272,_0xd36b6c){super(_0x54ed25,_0xe3da6f,_0x376272,_0xd36b6c,{'componentKey':_0x9609bf,'editorUnitId':_0x39b4a9});}};_0x298514=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4f7558[_0x1e3977(0x1a1)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x2a24ec['DocCanvasPopManagerService'])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2a24ec[_0x1e3977(0x2f7)]))],_0x298514);let _0x262dc4=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2fe8cd,_0x565ac4,_0x428a42,_0x1d71ed,_0x3b1f1e,_0x10d110){const _0x4169bb=_0x1e3977;super(),this[_0x4169bb(0x2dc)]=_0x2fe8cd,this[_0x4169bb(0x3ba)]=_0x565ac4,this[_0x4169bb(0x1a2)]=_0x428a42,this['_currentUniverService']=_0x1d71ed,this[_0x4169bb(0x43a)]=_0x3b1f1e,this[_0x4169bb(0x2ce)]=_0x10d110,_0x163ed0(this,_0x4169bb(0x1b3),new Set()),this[_0x4169bb(0x228)]();}[_0x1e3977(0x228)](){const _0xd3b0fe=_0x1e3977;this['_drawingAddListener'](),this[_0xd3b0fe(0x28d)](),this['_shapeUpdateListener']();}[_0x1e3977(0x3e8)](){const _0x53d1e7=_0x1e3977;this[_0x53d1e7(0x256)](this[_0x53d1e7(0x1a2)]['add$'][_0x53d1e7(0x17b)](_0xfe8cf0=>{const _0x406cb8=_0x53d1e7;this[_0x406cb8(0x26b)](_0xfe8cf0);}));}[_0x1e3977(0x28d)](){const _0x45d1c4=_0x1e3977;this['disposeWithMe'](this[_0x45d1c4(0x2dc)][_0x45d1c4(0x17a)](_0x2a94f9=>{const _0x55be22=_0x45d1c4;if(_0x2a94f9['id']===_0x1b87be[_0x55be22(0x3da)]['id']){let {unitId:_0x362b96,subUnitId:_0x8ce8de,shapeId:_0x24a18a}=_0x2a94f9[_0x55be22(0x2bc)],_0x568ef1=this['_getSceneAndTransformerByDrawingSearch'](_0x362b96),_0x39aa73=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x362b96,'subUnitId':_0x8ce8de,'drawingId':_0x24a18a}),_0x13d838=_0x568ef1==null?void 0x0:_0x568ef1[_0x55be22(0x14a)][_0x55be22(0x2a4)](_0x39aa73);_0x13d838&&(this[_0x55be22(0x2ce)][_0x55be22(0x1b0)](_0x13d838),this[_0x55be22(0x2ce)][_0x55be22(0x222)](_0x13d838,{'unitId':_0x362b96,'subUnitId':_0x8ce8de,'shapeId':_0x24a18a}),_0x13d838[_0x55be22(0x22f)](!0x0));return;}if(_0x2a94f9['id']===_0x1b87be[_0x55be22(0x148)]['id']){var _0x42eac5;let {unitId:_0x3d8455,subUnitId:_0x34b010,shapeId:_0x4baaf4}=_0x2a94f9[_0x55be22(0x2bc)],_0xe918bb=this[_0x55be22(0x21e)](_0x3d8455);if(_0xe918bb==null)return;let {scene:_0x53929e}=_0xe918bb,_0x2bf094=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3d8455,'subUnitId':_0x34b010,'drawingId':_0x4baaf4}),_0x1a8ddb=_0x53929e[_0x55be22(0x2a4)](_0x2bf094);if(!((_0x42eac5=this['_renderManagerService']['getRenderUnitById'](_0x3d8455))!=null&&_0x42eac5[_0x55be22(0x1dc)](_0x3c12d8[_0x55be22(0x1ae)])[_0x55be22(0x367)](_0x34b010)))return!0x1;if(_0x1a8ddb)return;this[_0x55be22(0x26b)]([{'unitId':_0x3d8455,'subUnitId':_0x34b010,'drawingId':_0x4baaf4}]);}}));}[_0x1e3977(0x35b)](){const _0xb39b20=_0x1e3977;this['disposeWithMe'](this[_0xb39b20(0x1a2)][_0xb39b20(0x35f)][_0xb39b20(0x17b)](_0x29cec0=>{_0x29cec0['forEach'](_0x48b6ad=>{const _0x3db831=_0x93c9;let {unitId:_0x35e56e,subUnitId:_0x5c2850,drawingId:_0x5da25e}=_0x48b6ad,_0xb1e2eb=this[_0x3db831(0x1a2)][_0x3db831(0x3d4)](_0x48b6ad);if(_0xb1e2eb==null)return;let {transform:_0x271018,drawingType:_0x2ab470,srcRect:_0x3c16f1,prstGeom:_0x495792}=_0xb1e2eb;if(_0x2ab470!==_0x2eccf5['DrawingTypeEnum']['DRAWING_SHAPE'])return;let _0x4373bc=this[_0x3db831(0x21e)](_0x35e56e);if(_0x4373bc==null)return;let {scene:_0x32e404,transformer:_0x357ff1}=_0x4373bc;if(_0x271018==null)return!0x0;let _0x7ca34b=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x35e56e,'subUnitId':_0x5c2850,'drawingId':_0x5da25e}),_0x29b851=_0x32e404['getObjectIncludeInGroup'](_0x7ca34b);if(_0x29b851==null)return!0x0;_0x29b851[_0x3db831(0x16b)](_0x3c16f1),_0x29b851[_0x3db831(0x2f2)](_0x495792);});}));}['_insertShapes'](_0x1247e1){const _0x5a1298=_0x1e3977;for(let _0x56f20b of _0x1247e1){var _0x12cad0;let {unitId:_0x5d5eac,subUnitId:_0x54cf09,drawingId:_0x364381}=_0x56f20b,_0x5e15e0=this[_0x5a1298(0x21e)](_0x5d5eac),_0x268693=(_0x12cad0=(0x0,_0x34fb64['getCurrentUnitInfo'])(this[_0x5a1298(0x44b)],_0x5d5eac))==null?void 0x0:_0x12cad0[_0x5a1298(0x204)];if(_0x5e15e0==null||_0x268693!==_0x54cf09)return;let _0x18cd70=(0x0,_0x215a9[_0x5a1298(0x2ee)])({'unitId':_0x5d5eac,'subUnitId':_0x54cf09,'drawingId':_0x364381});if(this[_0x5a1298(0x1b3)][_0x5a1298(0x431)](_0x18cd70)||_0x5e15e0['scene'][_0x5a1298(0x2a4)](_0x18cd70)!=null)return;let _0x546f72=this[_0x5a1298(0x1a2)][_0x5a1298(0x3d4)](_0x56f20b);if(_0x546f72==null||_0x546f72['drawingType']!==_0x2eccf5[_0x5a1298(0x43b)][_0x5a1298(0x285)])return;if((0x0,_0x3d21cd[_0x5a1298(0x275)])((_0x546f72['data']||{})[_0x5a1298(0x436)])){let _0x4c3217=_0x546f72['transform'];_0x4c3217&&(_0x546f72['transform']={..._0x4c3217,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x5a1298(0x1b3)][_0x5a1298(0x42c)](_0x18cd70);try{this[_0x5a1298(0x2ce)][_0x5a1298(0x413)](_0x546f72,_0x5e15e0[_0x5a1298(0x14a)]);}finally{this['_insertingShapeKeys'][_0x5a1298(0x2e3)](_0x18cd70);}queueMicrotask(()=>{const _0x394697=_0x5a1298;if(this[_0x394697(0x2fc)])return;let _0x43212d=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])(_0x56f20b);if(!_0x5e15e0['scene'][_0x394697(0x2a4)](_0x43212d))return;let _0x36327e=this['_drawingManagerService'][_0x394697(0x3d4)](_0x56f20b);_0x36327e&&this[_0x394697(0x1a2)][_0x394697(0x396)]([_0x36327e]);});}}[_0x1e3977(0x21e)](_0x5e588e){const _0x6651b0=_0x1e3977;if(_0x5e588e==null)return;let _0x4f0589=this['_renderManagerService']['getRenderUnitById'](_0x5e588e),_0x2c8b71=_0x4f0589==null?void 0x0:_0x4f0589[_0x6651b0(0x14a)];return _0x2c8b71==null?null:{'scene':_0x2c8b71,'transformer':_0x2c8b71[_0x6651b0(0x381)]()};}};_0x262dc4=_0xba323d([_0x5a8c13(0x0,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x1,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0x2,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x34fb64['DrawingRenderService'])),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133))],_0x262dc4);let _0x3ef74e={'normal':{'fill':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x2ec)],'stroke':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x21b)],'strokeWidth':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x283)]},'highlighted':{'fill':_0x1e3977(0x2b0),'stroke':_0x1e3977(0x211),'strokeWidth':0x2}};var _0x1a9cae=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x119669,_0x5a6fc3){const _0x324b06=_0x1e3977;super(_0x119669,_0x5a6fc3),_0x163ed0(this,_0x324b06(0x1c6),''),_0x163ed0(this,_0x324b06(0x1e5),-0x1),_0x163ed0(this,'_unitId',''),_0x163ed0(this,_0x324b06(0x18a),''),_0x163ed0(this,_0x324b06(0x372),!0x1),_0x5a6fc3&&this[_0x324b06(0x186)](_0x5a6fc3);}['getConnectionInfo'](){const _0x43655d=_0x1e3977;return{'unitId':this[_0x43655d(0x44e)],'subUnitId':this[_0x43655d(0x18a)],'shapeId':this[_0x43655d(0x1c6)],'cxnIndex':this[_0x43655d(0x1e5)]};}[_0x1e3977(0x2ad)](_0xcce30e){const _0x578b95=_0x1e3977;this[_0x578b95(0x372)]!==_0xcce30e&&(this['_isHighlighted']=_0xcce30e,this['makeDirty'](!0x0));}[_0x1e3977(0x227)](){const _0x29aaa9=_0x1e3977;return this[_0x29aaa9(0x372)];}[_0x1e3977(0x186)](_0xe21051){const _0x1ac69e=_0x1e3977;var _0xed605f,_0x1d6dcd;_0xe21051['targetShapeId']!==void 0x0&&(this[_0x1ac69e(0x1c6)]=_0xe21051[_0x1ac69e(0x2a2)]),_0xe21051[_0x1ac69e(0x21a)]!==void 0x0&&(this[_0x1ac69e(0x1e5)]=_0xe21051['cxnIndex']),_0xe21051[_0x1ac69e(0x387)]!==void 0x0&&(this['_unitId']=_0xe21051[_0x1ac69e(0x387)]),_0xe21051[_0x1ac69e(0x204)]!==void 0x0&&(this[_0x1ac69e(0x18a)]=_0xe21051[_0x1ac69e(0x204)]),_0xe21051[_0x1ac69e(0x227)]!==void 0x0&&(this[_0x1ac69e(0x372)]=_0xe21051[_0x1ac69e(0x227)]),this['transformByState']({'width':(_0xed605f=_0xe21051[_0x1ac69e(0x1f0)])==null?_0x3d21cd[_0x1ac69e(0x356)][_0x1ac69e(0x205)]*0x2:_0xed605f,'height':(_0x1d6dcd=_0xe21051['height'])==null?_0x3d21cd[_0x1ac69e(0x356)][_0x1ac69e(0x205)]*0x2:_0x1d6dcd});}['_draw'](_0x1e50f4){const _0x2ca607=_0x1e3977;let _0x543de1=this[_0x2ca607(0x372)]?_0x3ef74e['highlighted']:_0x3ef74e[_0x2ca607(0x1a9)];_0x114b3e[_0x2ca607(0x42d)][_0x2ca607(0x314)](_0x1e50f4,{'radius':_0x3d21cd['ShapeDefaultConfig'][_0x2ca607(0x205)],'fill':_0x543de1[_0x2ca607(0x172)],'stroke':_0x543de1[_0x2ca607(0x3ed)],'strokeWidth':_0x543de1[_0x2ca607(0x3e9)],'evented':!0x0});}};let _0x4bf73b=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x1b2386,_0x34d121,_0x1a2c11,_0x417c1a){const _0x4fe62=_0x1e3977;super(),this[_0x4fe62(0x1e3)]=_0x1b2386,this[_0x4fe62(0x3ba)]=_0x34d121,this['_drawingManagerService']=_0x1a2c11,this[_0x4fe62(0x36d)]=_0x417c1a,_0x163ed0(this,'_connectionSiteObjects',[]),_0x163ed0(this,_0x4fe62(0x3b3),null),_0x163ed0(this,_0x4fe62(0x345),-0x1),_0x163ed0(this,_0x4fe62(0x12d),null),_0x163ed0(this,_0x4fe62(0x44e),''),_0x163ed0(this,_0x4fe62(0x18a),''),_0x163ed0(this,_0x4fe62(0x1ca),null);}[_0x1e3977(0x25b)](_0x32bb67,_0x43467b,_0xf1f540,_0x2a2c31){const _0x58c694=_0x1e3977;this[_0x58c694(0x12d)]=_0x32bb67,this[_0x58c694(0x44e)]=_0x43467b,this[_0x58c694(0x18a)]=_0xf1f540,this[_0x58c694(0x1ca)]=_0x2a2c31;}['updateConnectionDetection'](_0x72f301){const _0x10dced=_0x1e3977;if(!this['_currentScene'])return null;let _0x3987fc=this[_0x10dced(0x234)](_0x72f301);return _0x3987fc?(this[_0x10dced(0x3b3)]!==_0x3987fc['shapeId']&&(this[_0x10dced(0x3a8)](),this[_0x10dced(0x2cf)](_0x3987fc[_0x10dced(0x329)],_0x3987fc[_0x10dced(0x425)]),this[_0x10dced(0x3b3)]=_0x3987fc['shapeId']),this[_0x10dced(0x208)](_0x72f301)):(this[_0x10dced(0x3b3)]!==null&&(this[_0x10dced(0x3a8)](),this[_0x10dced(0x3b3)]=null),null);}[_0x1e3977(0x26c)](){const _0x1a244d=_0x1e3977;this[_0x1a244d(0x3a8)](),this[_0x1a244d(0x12d)]=null,this[_0x1a244d(0x3b3)]=null,this[_0x1a244d(0x345)]=-0x1,this[_0x1a244d(0x1ca)]=null;}['getConnectionRelation'](){const _0x51b7ed=_0x1e3977;return this['_activeTargetShapeId']===null||this[_0x51b7ed(0x345)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x51b7ed(0x345)]};}['_findShapeAtPoint'](_0x58074a){const _0x369b5d=_0x1e3977;let _0x5326dd=this[_0x369b5d(0x1a2)][_0x369b5d(0x173)](this[_0x369b5d(0x44e)],this[_0x369b5d(0x18a)]);for(let _0x472813 of Object['keys'](_0x5326dd)){if(_0x472813===this[_0x369b5d(0x1ca)]||_0x5326dd[_0x472813]['drawingType']!==_0x2eccf5['DrawingTypeEnum'][_0x369b5d(0x285)])continue;let _0x2659ee=this[_0x369b5d(0x36d)][_0x369b5d(0x134)](this['_unitId'],this[_0x369b5d(0x18a)],_0x472813);if(!_0x2659ee||(0x0,_0x3d21cd[_0x369b5d(0x275)])(_0x2659ee[_0x369b5d(0x162)]())||_0x2659ee[_0x369b5d(0x32d)]()[_0x369b5d(0x337)]===0x0||!this['_currentScene'])continue;let _0x3af84a=(0x0,_0x215a9[_0x369b5d(0x2ee)])({'unitId':this[_0x369b5d(0x44e)],'subUnitId':this[_0x369b5d(0x18a)],'drawingId':_0x472813}),_0x39b963=this[_0x369b5d(0x12d)][_0x369b5d(0x2a4)](_0x3af84a);if(!_0x39b963)continue;let {left:_0x46a339,top:_0x396227,width:_0x4a41b5,height:_0x5ba09d}=_0x39b963[_0x369b5d(0x214)](),_0x5f47ba=_0x46a339+_0x4a41b5/0x2,_0x34aff8=_0x396227+_0x5ba09d/0x2,_0x592c6d=_0x39b963[_0x369b5d(0x31d)]['getMatrix'](),_0x18f3b9=new _0x114b3e[(_0x369b5d(0x26a))]([_0x592c6d[0x0],_0x592c6d[0x1],_0x592c6d[0x2],_0x592c6d[0x3],_0x5f47ba,_0x34aff8]),_0x4688bc=_0x39b963['getParent'](),_0x909dfe=(_0x39b963[_0x369b5d(0x2b9)]&&(_0x4688bc==null?void 0x0:_0x4688bc[_0x369b5d(0x2a5)])===_0x114b3e[_0x369b5d(0x281)]['GROUP']?_0x4688bc['ancestorTransform'][_0x369b5d(0x286)](_0x18f3b9):_0x18f3b9)[_0x369b5d(0x21c)]()[_0x369b5d(0x3e7)](_0x58074a),_0x38c178=_0x4a41b5/0x2,_0x17669c=_0x5ba09d/0x2;if(_0x909dfe['x']>=-_0x38c178-0x5&&_0x909dfe['x']<=_0x38c178+0x5&&_0x909dfe['y']>=-_0x17669c-0x5&&_0x909dfe['y']<=_0x17669c+0x5)return{'shapeId':_0x472813,'shapeModel':_0x2659ee};}return null;}['_showConnectionSites'](_0x331ffc,_0x27171e){const _0x2b1aff=_0x1e3977;if(!this[_0x2b1aff(0x12d)])return;let _0x384eb4=(0x0,_0x215a9[_0x2b1aff(0x2ee)])({'unitId':this['_unitId'],'subUnitId':this[_0x2b1aff(0x18a)],'drawingId':_0x331ffc}),_0x4aec95=this['_currentScene'][_0x2b1aff(0x2a4)](_0x384eb4);if(!_0x4aec95)return;let {left:_0x1146b3,top:_0x130201,width:_0x440c0c,height:_0x4dc719}=_0x4aec95[_0x2b1aff(0x214)](),_0x19948f=_0x1146b3+_0x440c0c/0x2,_0x429b8e=_0x130201+_0x4dc719/0x2,_0x213da3=_0x4aec95['transform'][_0x2b1aff(0x31f)](),_0x3f1505=new _0x114b3e[(_0x2b1aff(0x26a))]([_0x213da3[0x0],_0x213da3[0x1],_0x213da3[0x2],_0x213da3[0x3],_0x19948f,_0x429b8e]),_0x3335df=_0x4aec95[_0x2b1aff(0x3a2)](),_0x44d4cf=_0x4aec95[_0x2b1aff(0x2b9)]&&(_0x3335df==null?void 0x0:_0x3335df['classType'])===_0x114b3e[_0x2b1aff(0x281)][_0x2b1aff(0x272)]?_0x3335df[_0x2b1aff(0x15d)][_0x2b1aff(0x286)](_0x3f1505):_0x3f1505;_0x27171e[_0x2b1aff(0x1b9)]({'width':_0x440c0c,'height':_0x4dc719});let _0x4b8cf8=_0x27171e['getConnectionSiteList']();for(let _0x55339d of _0x4b8cf8){let _0x1b6939=_0x55339d['x']-_0x440c0c/0x2,_0x2a2337=_0x55339d['y']-_0x4dc719/0x2,_0x46403e=_0x44d4cf[_0x2b1aff(0x3e7)]({'x':_0x1b6939,'y':_0x2a2337}),_0x3032cd=_0x46403e['x'],_0x27cfe2=_0x46403e['y'],_0x3acf7d=new _0x1a9cae(_0x2b1aff(0x201)+_0x331ffc+'-'+_0x55339d[_0x2b1aff(0x3f3)],{'left':_0x3032cd-_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x27cfe2-_0x3d21cd[_0x2b1aff(0x356)]['cxnPointRadius'],'targetShapeId':_0x331ffc,'cxnIndex':_0x55339d['index'],'unitId':this[_0x2b1aff(0x44e)],'subUnitId':this[_0x2b1aff(0x18a)],'width':_0x3d21cd['ShapeDefaultConfig'][_0x2b1aff(0x205)]*0x2,'height':_0x3d21cd['ShapeDefaultConfig'][_0x2b1aff(0x205)]*0x2,'zIndex':_0x114b3e[_0x2b1aff(0x3e0)]+0x2,'evented':!0x1});this[_0x2b1aff(0x11e)]['push'](_0x3acf7d),this[_0x2b1aff(0x12d)][_0x2b1aff(0x333)](_0x3acf7d,_0x114b3e[_0x2b1aff(0x3e0)]+0x2);}}[_0x1e3977(0x208)](_0x2a7f3e){const _0x180b04=_0x1e3977;let _0x59d4cb=null,_0x5a27e5=0x1/0x0,_0x40892a=null;for(let _0x4dfe81 of this[_0x180b04(0x11e)]){let _0x2f4765=_0x4dfe81['left']+_0x3d21cd['ShapeDefaultConfig'][_0x180b04(0x205)],_0x4e6047=_0x4dfe81['top']+_0x3d21cd[_0x180b04(0x356)]['cxnPointRadius'],_0x396779=_0x2a7f3e['x']-_0x2f4765,_0x179313=_0x2a7f3e['y']-_0x4e6047,_0x1033aa=Math['sqrt'](_0x396779*_0x396779+_0x179313*_0x179313);_0x1033aa<_0x5a27e5&&(_0x5a27e5=_0x1033aa,_0x59d4cb=_0x4dfe81,_0x40892a={'x':_0x2f4765,'y':_0x4e6047});}let _0x3848ce=_0x5a27e5<=0xa&&_0x59d4cb?_0x59d4cb[_0x180b04(0x449)]()[_0x180b04(0x21a)]:-0x1;if(_0x3848ce!==this['_highlightedSiteIndex']){for(let _0x306a46 of this[_0x180b04(0x11e)]){let _0x1b2e0c=_0x306a46[_0x180b04(0x449)]();_0x306a46[_0x180b04(0x2ad)](_0x1b2e0c[_0x180b04(0x21a)]===_0x3848ce);}this[_0x180b04(0x345)]=_0x3848ce;}if(_0x5a27e5<=0xa&&_0x59d4cb&&_0x40892a){let _0x54cb27=_0x59d4cb[_0x180b04(0x449)](),_0x228137=this[_0x180b04(0x453)](_0x54cb27[_0x180b04(0x329)],_0x54cb27[_0x180b04(0x21a)]);return{'shapeId':_0x54cb27['shapeId'],'cxnIndex':_0x54cb27['cxnIndex'],'unitId':_0x54cb27[_0x180b04(0x387)],'subUnitId':_0x54cb27[_0x180b04(0x204)],'worldPoint':_0x40892a,'angle':_0x228137};}return null;}['_getConnectionSiteAngle'](_0x237d09,_0x55d3e7){const _0x287405=_0x1e3977;let _0xccaaf5=this[_0x287405(0x36d)][_0x287405(0x134)](this[_0x287405(0x44e)],this[_0x287405(0x18a)],_0x237d09);if(!_0xccaaf5)return 0x0;let _0x126deb=this[_0x287405(0x1a2)][_0x287405(0x3d4)]({'unitId':this[_0x287405(0x44e)],'subUnitId':this[_0x287405(0x18a)],'drawingId':_0x237d09});if(!(_0x126deb!=null&&_0x126deb[_0x287405(0x31d)]))return 0x0;let {width:_0xb269ba=0x0,height:_0x3a7cb4=0x0,flipX:_0x42fc08=!0x1,flipY:_0x560c3a=!0x1}=_0x126deb[_0x287405(0x31d)];_0xccaaf5[_0x287405(0x1b9)]({'width':_0xb269ba,'height':_0x3a7cb4});let _0x533d48=_0xccaaf5[_0x287405(0x32d)]()[_0x287405(0x24b)](_0x47c9ee=>_0x47c9ee['index']===_0x55d3e7);if(!_0x533d48)return 0x0;let _0x13522c=_0x533d48['ang']/0xea60;return _0x42fc08&&(_0x13522c=0xb4-_0x13522c),_0x560c3a&&(_0x13522c=-_0x13522c),_0x13522c=(_0x13522c%0x168+0x168)%0x168,_0x13522c;}[_0x1e3977(0x3a8)](){const _0x41adbc=_0x1e3977;for(let _0x52d15a of this[_0x41adbc(0x11e)])_0x52d15a['dispose']();this['_connectionSiteObjects']=[],this[_0x41adbc(0x345)]=-0x1;}[_0x1e3977(0x175)](){this['_clearConnectionSites'](),super['dispose']();}};_0x4bf73b=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x114b3e[_0x1e3977(0x42b)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x215a9[_0x1e3977(0x18c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x4bf73b);let _0x13cfb8=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x10b042,_0x1d8d9e,_0x5929fa,_0x497746,_0x239146){const _0x41086a=_0x1e3977;super(),this[_0x41086a(0x1ab)]=_0x10b042,this[_0x41086a(0x2e6)]=_0x1d8d9e,this[_0x41086a(0x262)]=_0x5929fa,this[_0x41086a(0x2d5)]=_0x497746,this['_groupCopyPasteController']=_0x239146,_0x163ed0(this,_0x41086a(0x212),void 0x0),this['_initCopyPaste'](),this[_0x41086a(0x41f)]();}get[_0x1e3977(0x13a)](){const _0x2aa7bb=_0x1e3977;return this['_sheetDrawingService'][_0x2aa7bb(0x40c)]();}[_0x1e3977(0x41f)](){const _0x294616=_0x1e3977;this['_groupCopyPasteController'][_0x294616(0x33f)](({fromUnitId:_0x1d3e59,fromSubUnitId:_0x5f37c4,toUnitId:_0x3735db,toSubUnitId:_0x4cc226,idMap:_0x3297f7})=>{const _0x2c6d40=_0x294616;let _0x4e988f=[],_0x37767b=[];for(let [_0x32ceed,_0x33bf63]of _0x3297f7['entries']()){let _0x5c9417=this['_shapeService'][_0x2c6d40(0x134)](_0x1d3e59,_0x5f37c4,_0x32ceed);if(!_0x5c9417)continue;let _0x14bf46=_0x5c9417[_0x2c6d40(0x162)](),_0x4cea82=JSON['parse'](JSON[_0x2c6d40(0x1fd)](_0x5c9417[_0x2c6d40(0x1e0)]()));if(_0x4cea82[_0x2c6d40(0x247)]){var _0x22584f,_0x413aeb;let _0x35a7d0=(_0x22584f=_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)])==null?void 0x0:_0x22584f[_0x2c6d40(0x329)],_0x2e8ea=(_0x413aeb=_0x4cea82[_0x2c6d40(0x247)]['to'])==null?void 0x0:_0x413aeb[_0x2c6d40(0x329)],_0x5f43aa=!_0x35a7d0||_0x3297f7[_0x2c6d40(0x431)](_0x35a7d0),_0x381981=!_0x2e8ea||_0x3297f7[_0x2c6d40(0x431)](_0x2e8ea);_0x5f43aa&&_0x35a7d0&&_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]?_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]={..._0x4cea82['relation'][_0x2c6d40(0x110)],'shapeId':_0x3297f7[_0x2c6d40(0x32f)](_0x35a7d0)}:_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]=void 0x0,_0x381981&&_0x2e8ea&&_0x4cea82[_0x2c6d40(0x247)]['to']?_0x4cea82['relation']['to']={..._0x4cea82['relation']['to'],'shapeId':_0x3297f7['get'](_0x2e8ea)}:_0x4cea82[_0x2c6d40(0x247)]['to']=void 0x0;}_0x4e988f[_0x2c6d40(0x1b1)]({'id':_0x1b87be[_0x2c6d40(0x148)]['id'],'params':{'unitId':_0x3735db,'subUnitId':_0x4cc226,'shapeId':_0x33bf63,'shapeType':_0x14bf46,'shapeData':_0x4cea82}}),_0x37767b[_0x2c6d40(0x1b1)]({'id':_0x1b87be[_0x2c6d40(0x37a)]['id'],'params':{'unitId':_0x3735db,'subUnitId':_0x4cc226,'shapeId':_0x33bf63}});}return{'redos':_0x4e988f,'undos':_0x37767b};});}[_0x1e3977(0x36f)](){const _0x28b23d=_0x1e3977;this['disposeWithMe'](this[_0x28b23d(0x2e6)]['addClipboardHook']({'id':'sheets-shape-ui','onBeforeCopy':(_0x5c7db4,_0x24ab24,_0x4ab1d7,_0x391447)=>{const _0x397452=_0x28b23d;this[_0x397452(0x212)]=null;let _0x5ec5a4=this[_0x397452(0x13a)];if(_0x5ec5a4['length']){let _0x36ad3e=_0x5ec5a4[_0x397452(0x3c4)](_0x55564f=>_0x55564f['drawingType']===_0x2eccf5[_0x397452(0x43b)][_0x397452(0x285)]);if(_0x36ad3e[_0x397452(0x337)]===0x0)return;this['_copyInfo']={'unitId':_0x5c7db4,'subUnitId':_0x24ab24,'copyType':_0x391447,'drawings':_0x36ad3e};}else this['_createCopyInfoByRange'](_0x5c7db4,_0x24ab24,_0x4ab1d7,_0x391447);},'onPasteCells':(_0x150428,_0x1b2f0e,_0x168dfb,_0x299bd0)=>{const _0x3595e4=_0x28b23d;if(!this[_0x3595e4(0x212)])return{'redos':[],'undos':[]};let {pasteType:_0x2826e6}=_0x299bd0;return _0x2826e6===_0x3c12d8[_0x3595e4(0x444)][_0x3595e4(0x11a)]?this[_0x3595e4(0x2de)](_0x1b2f0e,this[_0x3595e4(0x212)][_0x3595e4(0x3a7)]===_0x3c12d8[_0x3595e4(0x167)][_0x3595e4(0x12f)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x7d50a5=>this[_0x28b23d(0x212)]?this[_0x28b23d(0x2de)](_0x7d50a5,this[_0x28b23d(0x212)][_0x28b23d(0x3a7)]===_0x3c12d8[_0x28b23d(0x167)][_0x28b23d(0x12f)]):{'redos':[],'undos':[]}}));}[_0x1e3977(0x2e5)](_0x3553b3,_0x239325,_0x1e1b7a,_0x1ed5fe){const _0x5ead1b=_0x1e3977;let _0x2b0d89=this[_0x5ead1b(0x1ab)][_0x5ead1b(0x367)](_0x3553b3,_0x239325);if(!_0x2b0d89)return;let _0x5cb659=(0x0,_0x2554f2['attachRangeWithCoord'])(_0x2b0d89,_0x1e1b7a);if(!_0x5cb659)return;let {startX:_0x54e5dc,endX:_0x8e7ab6,startY:_0x4d5fef,endY:_0x501450}=_0x5cb659,_0x244d01=this['_sheetDrawingService'][_0x5ead1b(0x173)](_0x3553b3,_0x239325),_0x201a95=this[_0x5ead1b(0x13a)][_0x5ead1b(0x451)]();for(let [_0x45fe85,_0x5da171]of Object[_0x5ead1b(0x3d5)](_0x244d01)){if(_0x5da171[_0x5ead1b(0x34b)]!==_0x2eccf5[_0x5ead1b(0x43b)][_0x5ead1b(0x285)])continue;let {transform:_0x7592c7}=_0x5da171;if(!_0x7592c7)continue;let {left:_0x40c60e=0x0,top:_0x1bf872=0x0,width:_0x4f80de=0x0,height:_0xe16e46=0x0}=_0x7592c7;_0x54e5dc<=_0x40c60e&&_0x8e7ab6>=_0x40c60e+_0x4f80de&&_0x4d5fef<=_0x1bf872&&_0x501450>=_0x1bf872+_0xe16e46&&_0x201a95[_0x5ead1b(0x1b1)](_0x5da171);}_0x201a95[_0x5ead1b(0x337)]>0x0&&(this[_0x5ead1b(0x212)]={'unitId':_0x3553b3,'subUnitId':_0x239325,'copyType':_0x1ed5fe,'copyRange':_0x1e1b7a,'drawings':_0x201a95});}[_0x1e3977(0x2de)](_0x1c1f8c,_0xee6fe){const _0x1cd5a8=_0x1e3977;let {unitId:_0x180e47,subUnitId:_0x3ffdbd,range:_0x216ab2}=_0x1c1f8c,_0x168805=this[_0x1cd5a8(0x1ab)][_0x1cd5a8(0x367)](_0x180e47,_0x3ffdbd);if(!_0x168805)return{'redos':[],'undos':[]};let _0x16a710=(0x0,_0x2554f2[_0x1cd5a8(0x202)])(_0x216ab2),{unitId:_0x285b03,subUnitId:_0x388514,copyRange:_0x26f384,drawings:_0xc5b0fa}=this[_0x1cd5a8(0x212)],_0x1625ee=this[_0x1cd5a8(0x1ab)]['getSkeleton'](_0x285b03,_0x388514);if(!_0x1625ee)return{'redos':[],'undos':[]};let _0x53181e;if(!_0x26f384){let _0x50b433=0x1/0x0,_0x17b0ea=0x1/0x0;for(let _0x572e8e of _0xc5b0fa){var _0x3956f9;let {left:_0x492bd5=0x0,top:_0x595cdb=0x0}=(_0x3956f9=_0x572e8e[_0x1cd5a8(0x31d)])==null?{}:_0x3956f9;_0x492bd5<_0x50b433&&(_0x50b433=_0x492bd5),_0x595cdb<_0x17b0ea&&(_0x17b0ea=_0x595cdb);}_0x50b433!==0x1/0x0&&_0x17b0ea!==0x1/0x0&&(_0x53181e={'left':_0x50b433,'top':_0x17b0ea});}let _0x4ea646=new Map();if(!_0xee6fe){for(let _0x4c0b95 of _0xc5b0fa)_0x4ea646['set'](_0x4c0b95['drawingId'],(0x0,_0x2eccf5[_0x1cd5a8(0x2f1)])());}let _0x242a2b=[],_0x34780e=[];for(let _0x30cdbc of _0xc5b0fa){let {drawingId:_0x1868c8,transform:_0x5c189d,sheetTransform:_0xe5b00e}=_0x30cdbc;if(!_0x5c189d||!_0xe5b00e)continue;let _0x157761=this[_0x1cd5a8(0x243)]({'transform':_0x5c189d,'sheetTransform':_0xe5b00e},{'skeleton':_0x1625ee,'range':_0x26f384},{'skeleton':_0x168805,'range':_0x16a710},_0x53181e);if(_0xee6fe){let {redos:_0x389dfb,undos:_0x7d6cfd}=this['_generateCutPasteMutations']({'fromUnitId':_0x285b03,'fromSubUnitId':_0x388514,'toUnitId':_0x180e47,'toSubUnitId':_0x3ffdbd,'drawing':_0x30cdbc,'newTransforms':_0x157761});_0x242a2b[_0x1cd5a8(0x1b1)](..._0x389dfb),_0x34780e['push'](..._0x7d6cfd);continue;}let {redos:_0x5ab811,undos:_0x2e98f6}=this['_generateCopyPasteMutations']({'toUnitId':_0x180e47,'toSubUnitId':_0x3ffdbd,'drawing':_0x30cdbc,'newTransforms':_0x157761,'newDrawingId':_0x4ea646[_0x1cd5a8(0x32f)](_0x1868c8),'idMap':_0x4ea646});_0x242a2b[_0x1cd5a8(0x1b1)](..._0x5ab811),_0x34780e[_0x1cd5a8(0x1b1)](..._0x2e98f6);}return{'redos':_0x242a2b,'undos':_0x34780e};}[_0x1e3977(0x116)](_0xf0719b){const _0x44d169=_0x1e3977;let {fromUnitId:_0x1522a6,fromSubUnitId:_0x325b5,toUnitId:_0x5e64ab,toSubUnitId:_0x1163bb,drawing:_0x1bf8b3,newTransforms:_0x5cc48e}=_0xf0719b,_0x2c794c={..._0x1bf8b3,'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'transform':_0x5cc48e[_0x44d169(0x31d)],'sheetTransform':_0x5cc48e['sheetTransform']};if(_0x5e64ab===_0x1522a6&&_0x1163bb===_0x325b5){let {redo:_0x429cee,undo:_0x22e6b1,objects:_0x47434d}=this[_0x44d169(0x262)][_0x44d169(0x27b)]([_0x2c794c]);return{'redos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x18d)],'op':_0x429cee,'objects':_0x47434d}}],'undos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x18d)],'op':_0x22e6b1,'objects':_0x47434d}}]};}else{let _0x25a6b9=this['_sheetDrawingService'][_0x44d169(0x194)]([_0x1bf8b3]),_0x3c7ea8=this[_0x44d169(0x262)][_0x44d169(0x1a0)]([_0x2c794c]),_0x4f1750=this['_shapeService'][_0x44d169(0x134)](_0x1bf8b3[_0x44d169(0x387)],_0x1bf8b3[_0x44d169(0x204)],_0x1bf8b3[_0x44d169(0x22a)]);if(!_0x4f1750)return{'redos':[],'undos':[]};let _0x5c6608=_0x4f1750[_0x44d169(0x162)](),_0x1c3c41=JSON[_0x44d169(0x176)](JSON[_0x44d169(0x1fd)](_0x4f1750['getShapeData']()));return{'redos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x2c1)],'op':_0x25a6b9[_0x44d169(0x12b)],'objects':_0x25a6b9[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x37a)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'shapeId':_0x1bf8b3[_0x44d169(0x22a)]}},{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650['DrawingApplyType'][_0x44d169(0x39e)],'op':_0x3c7ea8['redo'],'objects':_0x3c7ea8[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x148)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'shapeId':_0x1bf8b3[_0x44d169(0x22a)],'shapeType':_0x5c6608,'shapeData':_0x1c3c41}}],'undos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x39e)],'op':_0x25a6b9[_0x44d169(0x393)],'objects':_0x25a6b9['objects']}},{'id':_0x1b87be[_0x44d169(0x148)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'shapeId':_0x1bf8b3[_0x44d169(0x22a)],'shapeType':_0x5c6608,'shapeData':_0x1c3c41}},{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x2c1)],'op':_0x3c7ea8['undo'],'objects':_0x3c7ea8[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x37a)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'shapeId':_0x1bf8b3[_0x44d169(0x22a)]}}]};}}[_0x1e3977(0x3c6)](_0x3468ce){const _0x3ad00a=_0x1e3977;let {toUnitId:_0x281b2d,toSubUnitId:_0x128c3f,drawing:_0x2f7464,newTransforms:_0x1c7b30,newDrawingId:_0x103ec3,idMap:_0x138b91}=_0x3468ce,_0x498a08={..._0x2f7464,'unitId':_0x281b2d,'subUnitId':_0x128c3f,'drawingId':_0x103ec3,'transform':_0x1c7b30[_0x3ad00a(0x31d)],'sheetTransform':_0x1c7b30[_0x3ad00a(0x27a)]},{redo:_0x42d960,undo:_0x52afd4,objects:_0x405a4f}=this[_0x3ad00a(0x262)][_0x3ad00a(0x1a0)]([_0x498a08]),_0x18fdd4=this[_0x3ad00a(0x2d5)][_0x3ad00a(0x134)](_0x2f7464[_0x3ad00a(0x387)],_0x2f7464[_0x3ad00a(0x204)],_0x2f7464['drawingId']);if(!_0x18fdd4)return{'redos':[],'undos':[]};let _0xde84c3=_0x18fdd4[_0x3ad00a(0x162)](),_0x54db3f=JSON[_0x3ad00a(0x176)](JSON[_0x3ad00a(0x1fd)](_0x18fdd4[_0x3ad00a(0x1e0)]()));if(_0x54db3f[_0x3ad00a(0x247)]){var _0x550788,_0x89fadd;let _0x40cb12=(_0x550788=_0x54db3f[_0x3ad00a(0x247)]['from'])==null?void 0x0:_0x550788[_0x3ad00a(0x329)],_0x4afa96=(_0x89fadd=_0x54db3f[_0x3ad00a(0x247)]['to'])==null?void 0x0:_0x89fadd['shapeId'],_0x25a7fe=!_0x40cb12||_0x138b91[_0x3ad00a(0x431)](_0x40cb12),_0x5ec238=!_0x4afa96||_0x138b91[_0x3ad00a(0x431)](_0x4afa96);_0x25a7fe&&_0x40cb12&&_0x54db3f[_0x3ad00a(0x247)]['from']?_0x54db3f[_0x3ad00a(0x247)][_0x3ad00a(0x110)]={..._0x54db3f['relation'][_0x3ad00a(0x110)],'shapeId':_0x138b91[_0x3ad00a(0x32f)](_0x40cb12)}:_0x54db3f['relation']['from']=void 0x0,_0x5ec238&&_0x4afa96&&_0x54db3f['relation']['to']?_0x54db3f['relation']['to']={..._0x54db3f['relation']['to'],'shapeId':_0x138b91['get'](_0x4afa96)}:_0x54db3f[_0x3ad00a(0x247)]['to']=void 0x0;}return{'redos':[{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'type':_0x2a2650['DrawingApplyType'][_0x3ad00a(0x39e)],'op':_0x42d960,'objects':_0x405a4f}},{'id':_0x1b87be['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'shapeId':_0x103ec3,'shapeType':_0xde84c3,'shapeData':_0x54db3f}}],'undos':[{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'type':_0x2a2650[_0x3ad00a(0x35a)][_0x3ad00a(0x2c1)],'op':_0x52afd4,'objects':_0x405a4f}},{'id':_0x1b87be['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'shapeId':_0x103ec3}}]};}[_0x1e3977(0x243)](_0x4b83cc,_0x5babbb,_0x58675d,_0x2e6456){const _0x1efc6b=_0x1e3977;var _0xf4143d;let {range:_0x3a65c6,skeleton:_0x54786f}=_0x5babbb,{range:_0x5ec6ca,skeleton:_0x14e270}=_0x58675d,{transform:_0x1507f9,sheetTransform:_0x17a565}=_0x4b83cc,_0x3cfe61={..._0x1507f9};if(_0x3a65c6){let _0x30c3ac=(0x0,_0x2554f2['attachRangeWithCoord'])(_0x54786f,_0x3a65c6),_0x1214c5=(0x0,_0x2554f2[_0x1efc6b(0x3bd)])(_0x14e270,_0x5ec6ca);if(_0x30c3ac&&_0x1214c5){var _0x26589e,_0x415e6c;let _0x47726d=_0x1214c5['startX']-_0x30c3ac['startX'],_0x24addf=_0x1214c5[_0x1efc6b(0x263)]-_0x30c3ac[_0x1efc6b(0x263)];_0x3cfe61[_0x1efc6b(0x44f)]=((_0x26589e=_0x3cfe61[_0x1efc6b(0x44f)])==null?0x0:_0x26589e)+_0x47726d,_0x3cfe61[_0x1efc6b(0x278)]=((_0x415e6c=_0x3cfe61[_0x1efc6b(0x278)])==null?0x0:_0x415e6c)+_0x24addf;}}else{let _0x5e7272=(0x0,_0x2554f2[_0x1efc6b(0x3bd)])(_0x14e270,_0x5ec6ca);if(_0x2e6456&&_0x5e7272){var _0x262c51,_0x43cb0f;let _0x2b90e1=((_0x262c51=_0x3cfe61[_0x1efc6b(0x44f)])==null?0x0:_0x262c51)-_0x2e6456['left'],_0x403550=((_0x43cb0f=_0x3cfe61['top'])==null?0x0:_0x43cb0f)-_0x2e6456[_0x1efc6b(0x278)];_0x3cfe61[_0x1efc6b(0x44f)]=_0x5e7272[_0x1efc6b(0x2f4)]+_0x2b90e1,_0x3cfe61[_0x1efc6b(0x278)]=_0x5e7272[_0x1efc6b(0x263)]+_0x403550;}else _0x3cfe61[_0x1efc6b(0x44f)]=_0x5e7272==null?void 0x0:_0x5e7272['startX'],_0x3cfe61[_0x1efc6b(0x278)]=_0x5e7272==null?void 0x0:_0x5e7272[_0x1efc6b(0x263)];}return{'transform':_0x3cfe61,'sheetTransform':(_0xf4143d=(0x0,_0x2a2650[_0x1efc6b(0x3c9)])(_0x3cfe61,_0x14e270))==null?_0x17a565:_0xf4143d};}};_0x13cfb8=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5['Inject'])(_0x2554f2[_0x1e3977(0x154)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8[_0x1e3977(0x35d)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2a2650[_0x1e3977(0x12c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x101b82['SheetsDrawingGroupCopyPasteController']))],_0x13cfb8);var _0x1bacbd=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x4ed6d9,_0x21c575){const _0x16c815=_0x1e3977;super(_0x4ed6d9,_0x21c575),_0x163ed0(this,_0x16c815(0x237),null),_0x163ed0(this,'_index',null),_0x163ed0(this,_0x16c815(0x44e),null),_0x163ed0(this,'_subUnitId',null),_0x163ed0(this,_0x16c815(0x251),!0x1),_0x21c575&&this[_0x16c815(0x186)](_0x21c575);}[_0x1e3977(0x26e)](){const _0x39ab12=_0x1e3977;return{'unitId':this[_0x39ab12(0x44e)],'subUnitId':this[_0x39ab12(0x18a)],'drawingId':this[_0x39ab12(0x237)]};}[_0x1e3977(0x186)](_0x1d152b){const _0x1437c9=_0x1e3977;_0x1d152b[_0x1437c9(0x329)]!==void 0x0&&(this[_0x1437c9(0x237)]=_0x1d152b[_0x1437c9(0x329)]),_0x1d152b['unitId']!==void 0x0&&(this['_unitId']=_0x1d152b[_0x1437c9(0x387)]),_0x1d152b[_0x1437c9(0x204)]!==void 0x0&&(this[_0x1437c9(0x18a)]=_0x1d152b[_0x1437c9(0x204)]),_0x1d152b[_0x1437c9(0x41a)]!==void 0x0&&(this[_0x1437c9(0x251)]=_0x1d152b['isStartConnectorPoint']),this[_0x1437c9(0x1c7)]({'width':_0x1d152b[_0x1437c9(0x1f0)],'height':_0x1d152b[_0x1437c9(0x196)]});}[_0x1e3977(0x2c0)](_0x293d7e){const _0x2c63d8=_0x1e3977;_0x114b3e[_0x2c63d8(0x42d)][_0x2c63d8(0x314)](_0x293d7e,{'radius':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x205)],'fill':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x2ec)],'stroke':_0x3d21cd[_0x2c63d8(0x356)]['cxnPointStroke'],'strokeWidth':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x283)],'evented':!0x0});}};let _0x511a6f=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2c7996,_0x2156a9,_0x1c205d,_0x3f1fc5,_0x3ef33f,_0xafb160,_0xe18e6,_0x5197a4){const _0x1efbc1=_0x1e3977;super(),this[_0x1efbc1(0x1e3)]=_0x2c7996,this[_0x1efbc1(0x2dc)]=_0x2156a9,this[_0x1efbc1(0x3ba)]=_0x1c205d,this[_0x1efbc1(0x1a2)]=_0x3f1fc5,this[_0x1efbc1(0x18f)]=_0x3ef33f,this[_0x1efbc1(0x36d)]=_0xafb160,this[_0x1efbc1(0x264)]=_0xe18e6,this[_0x1efbc1(0x252)]=_0x5197a4,_0x163ed0(this,_0x1efbc1(0x166),void 0x0),_0x163ed0(this,_0x1efbc1(0x44e),void 0x0),_0x163ed0(this,'_subUnitId',void 0x0),_0x163ed0(this,_0x1efbc1(0x441),[]),_0x163ed0(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x163ed0(this,_0x1efbc1(0x190),void 0x0),_0x163ed0(this,'_isConnecting',!0x1),_0x163ed0(this,_0x1efbc1(0x43c),!0x1),_0x163ed0(this,_0x1efbc1(0x16e),!0x1),_0x163ed0(this,_0x1efbc1(0x1ec),void 0x0),_0x163ed0(this,_0x1efbc1(0x410),void 0x0),_0x163ed0(this,'_currentConnectionTarget',null),this['_initialize']();}['_initialize'](){const _0x345b62=_0x1e3977;this[_0x345b62(0x2f6)](),this[_0x345b62(0x1c4)]();}[_0x1e3977(0x1ef)](){const _0x23beaa=_0x1e3977;if(!this['_unitId']||!this['_subUnitId']||!this[_0x23beaa(0x166)])return;let _0x5affad={'unitId':this[_0x23beaa(0x44e)],'subUnitId':this[_0x23beaa(0x18a)],'drawingId':this[_0x23beaa(0x166)]},{transform:_0x9d67cd}=this[_0x23beaa(0x1a2)][_0x23beaa(0x3d4)](_0x5affad);if(_0x9d67cd)return{'left':_0x9d67cd[_0x23beaa(0x44f)]||0x0,'top':_0x9d67cd[_0x23beaa(0x278)]||0x0,'width':_0x9d67cd[_0x23beaa(0x1f0)]||0x0,'height':_0x9d67cd['height']||0x0,'flipX':_0x9d67cd['flipX']||!0x1,'flipY':_0x9d67cd[_0x23beaa(0x1ac)]||!0x1,'angle':_0x9d67cd[_0x23beaa(0x1bf)]};}['_addShapeConnectorHandlerObjects'](){const _0x17fc2a=_0x1e3977;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x109052=this[_0x17fc2a(0x3ba)][_0x17fc2a(0x2be)](this['_unitId']);if(!_0x109052||!_0x109052[_0x17fc2a(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x17fc2a(0x26d)]())return;let {scene:_0x39f945}=_0x109052,_0xd392bf=this['_getDrawingRect']();if(!_0xd392bf)return;let _0x5693c0=this[_0x17fc2a(0x36d)][_0x17fc2a(0x134)](this[_0x17fc2a(0x44e)],this[_0x17fc2a(0x18a)],this[_0x17fc2a(0x166)]);if(!_0x5693c0||!(0x0,_0x3d21cd[_0x17fc2a(0x275)])(_0x5693c0[_0x17fc2a(0x162)]()))return;let _0x28f454=_0x5693c0[_0x17fc2a(0x2ef)]();if(_0x28f454[_0x17fc2a(0x337)]<0x2)return;let _0x3f3e34=new _0x3d21cd[(_0x17fc2a(0x437))](_0xd392bf),_0x1030df=_0x28f454[0x0],_0x411c22=_0x28f454[_0x28f454[_0x17fc2a(0x337)]-0x1],_0x17f6a2=_0x3f3e34[_0x17fc2a(0x34f)](_0x1030df),_0x38604e=_0x3f3e34[_0x17fc2a(0x34f)](_0x411c22);this[_0x17fc2a(0x20b)](_0x39f945,{..._0x17f6a2},!0x0),this[_0x17fc2a(0x20b)](_0x39f945,{..._0x38604e},!0x1);}[_0x1e3977(0x20b)](_0x16c70f,_0x279b68,_0x5a02bd){const _0x25a541=_0x1e3977;if(this[_0x25a541(0x166)]===void 0x0||this[_0x25a541(0x44e)]===void 0x0||this[_0x25a541(0x18a)]===void 0x0)return;let _0x186156=_0x25a541(0x246)+this[_0x25a541(0x44e)]+'-'+this[_0x25a541(0x18a)]+'-'+this[_0x25a541(0x166)]+'-'+(_0x5a02bd?_0x25a541(0x177):'end'),_0x2c1250=_0x16c70f[_0x25a541(0x2a4)](_0x186156);if(_0x2c1250){_0x2c1250[_0x25a541(0x1c7)]({'left':_0x279b68['x']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'top':_0x279b68['y']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)]});return;}let _0x239666=new _0x1bacbd(_0x186156,{'left':_0x279b68['x']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'top':_0x279b68['y']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'shapeId':this[_0x25a541(0x166)],'unitId':this['_unitId'],'subUnitId':this[_0x25a541(0x18a)],'isStartConnectorPoint':_0x5a02bd,'width':_0x3d21cd[_0x25a541(0x356)]['cxnPointRadius']*0x2,'height':_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius']*0x2,'zIndex':_0x114b3e[_0x25a541(0x3e0)]+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x239666),this[_0x25a541(0x452)](_0x239666,_0x16c70f,_0x5a02bd),_0x16c70f['addObject'](_0x239666,_0x114b3e[_0x25a541(0x3e0)]+0x1);}[_0x1e3977(0x1c3)](_0x3713a0,_0x51279e){const _0x13f5fb=_0x1e3977;var _0xa3c60;let _0x552d21={'x':0x0,'y':0x0};if(!_0x3713a0||!_0x51279e)return _0x552d21;let _0x54c546=this['_renderManagerService'][_0x13f5fb(0x2be)](_0x3713a0);if(!_0x54c546||!_0x54c546[_0x13f5fb(0x1dc)](_0x3c12d8[_0x13f5fb(0x1ae)])[_0x13f5fb(0x367)](_0x51279e))return _0x552d21;let _0xd4032=_0x54c546[_0x13f5fb(0x1dc)](_0x3c12d8[_0x13f5fb(0x3ee)]),_0x416c80=_0xd4032==null?void 0x0:_0xd4032[_0x13f5fb(0x3b2)]();if(!_0x416c80)return _0x552d21;let _0xea94c1=(_0xa3c60=this[_0x13f5fb(0x18f)][_0x13f5fb(0x2f8)](_0x3713a0))==null?void 0x0:_0xa3c60['getSheetBySheetId'](_0x51279e);if(!_0xea94c1)return _0x552d21;let _0x16f6f7=(0x0,_0x3c12d8[_0x13f5fb(0x1ba)])(_0x416c80['sheetViewStartRow'],_0x416c80[_0x13f5fb(0x380)],_0x54c546[_0x13f5fb(0x14a)],_0xea94c1);return _0x16f6f7?{'x':_0x16f6f7[_0x13f5fb(0x3d1)],'y':_0x16f6f7['viewportScrollY']}:_0x552d21;}[_0x1e3977(0x427)](_0x158d1e,_0x30ca89){const _0x4e4921=_0x1e3977;var _0x117d5c,_0x424590;let _0x35250e=(_0x117d5c=this[_0x4e4921(0x18f)][_0x4e4921(0x2f8)](_0x158d1e))==null?void 0x0:_0x117d5c[_0x4e4921(0x269)](_0x30ca89);return(_0x424590=_0x35250e==null?void 0x0:_0x35250e[_0x4e4921(0x374)]())==null?0x1:_0x424590;}[_0x1e3977(0x19a)](_0x4a07ab,_0x46d342,_0x484901,_0x449d03,_0xe7760b){const _0x582b07=_0x1e3977;this[_0x582b07(0x1ec)][_0x582b07(0x369)](),this[_0x582b07(0x410)][_0x582b07(0x369)](),this[_0x582b07(0x264)][_0x582b07(0x434)]();let _0x2f0804=this[_0x582b07(0x19e)];this['_sheetBasicShapeConnectionPointController'][_0x582b07(0x26c)]();let _0x5f5662=this[_0x582b07(0x1c3)](this[_0x582b07(0x44e)],this['_subUnitId']),_0x424e0c=this['_getZoomRatio'](this[_0x582b07(0x44e)],this['_subUnitId']),_0x229731={'x':_0x484901[_0x582b07(0x3a5)]/_0x424e0c+_0x5f5662['x'],'y':_0x484901['offsetY']/_0x424e0c+_0x5f5662['y']},_0x7304b5=_0x2f0804?_0x2f0804[_0x582b07(0x3b1)]:_0x229731,_0x1ec210=_0x449d03?this[_0x582b07(0x190)]['getEndConnectInfo']():this[_0x582b07(0x190)][_0x582b07(0x200)](),_0x49cfd7=this[_0x582b07(0x190)][_0x582b07(0x162)]();_0x1ec210?this['_handleConnectedEndpointPointerUp'](_0x1ec210,_0x7304b5,_0x449d03,_0x2f0804,_0xe7760b):this['_handleFreeEndpointPointerUp'](_0x46d342,_0x7304b5,_0x449d03,_0x2f0804,_0xe7760b,_0x49cfd7),this[_0x582b07(0x360)]=!0x1,this['_hasReset']=!0x1,this[_0x582b07(0x19e)]=null,_0x4a07ab['enableObjectsEvent']();}[_0x1e3977(0x1e2)](_0x5caaac,_0x38e0e4,_0x4e8888,_0x16e790,_0x3edf88,_0x4dd7f7){const _0x2662f8=_0x1e3977;let _0x1df11f=_0x4dd7f7===_0x3d21cd[_0x2662f8(0x2bf)][_0x2662f8(0x125)]||_0x4dd7f7===_0x3d21cd[_0x2662f8(0x2bf)]['StraightConnector1'],_0x5a6379=_0x4e8888?_0x38e0e4:_0x5caaac,_0x1fd48d=_0x4e8888?_0x5caaac:_0x38e0e4,_0x5a3011=this[_0x2662f8(0x190)][_0x2662f8(0x2ef)](),_0x25a18c=(0x0,_0x3d21cd['isCurvedConnectorShape'])(this[_0x2662f8(0x190)]['getShapeType']()),_0x5a3c75=_0x3d21cd['ConnectorCoordinateTransform'][_0x2662f8(0x398)](_0x5a3011,_0x25a18c),_0x3b76bb=_0x1df11f?_0x3d21cd[_0x2662f8(0x437)][_0x2662f8(0x34a)](_0x5a6379,_0x1fd48d):_0x3d21cd[_0x2662f8(0x437)]['computeConnectorResizeLayout'](_0x5caaac,_0x38e0e4,_0x4e8888,_0x5a3c75);_0x16e790?this[_0x2662f8(0x2d2)](_0x3b76bb,_0x16e790,_0x4e8888,_0x3edf88):this[_0x2662f8(0x2b2)](_0x3b76bb,_0x3edf88);}[_0x1e3977(0x2d9)](_0x1b4351,_0x2af3b2,_0x309316,_0x34c49d,_0x50348d){const _0x414a8a=_0x1e3977;let _0x3c2971=this[_0x414a8a(0x150)](_0x1b4351);if(!_0x3c2971)return;let _0x533164=_0x34c49d?_0x34c49d[_0x414a8a(0x1bf)]:this[_0x414a8a(0x330)](_0x3c2971[_0x414a8a(0x362)],_0x2af3b2),_0x247a00;if(_0x34c49d){let _0x49f1e8=this['_drawingManagerService'][_0x414a8a(0x3d4)]({'unitId':_0x34c49d[_0x414a8a(0x387)],'subUnitId':_0x34c49d['subUnitId'],'drawingId':_0x34c49d[_0x414a8a(0x329)]});if(_0x49f1e8!=null&&_0x49f1e8['transform']){let {left:_0x55257e=0x0,top:_0xe570ff=0x0,width:_0x35611c=0x0,height:_0x2f384b=0x0,angle:_0x264fb7}=_0x49f1e8[_0x414a8a(0x31d)];_0x247a00=(0x0,_0x3d21cd[_0x414a8a(0x306)])({'left':_0x55257e,'top':_0xe570ff,'width':_0x35611c,'height':_0x2f384b},_0x264fb7||0x0);}else _0x247a00={'left':_0x2af3b2['x'],'top':_0x2af3b2['y'],'width':0x0,'height':0x0};}else _0x247a00={'left':_0x2af3b2['x'],'top':_0x2af3b2['y'],'width':0x0,'height':0x0};let _0x1451fd={'point':_0x2af3b2,'angle':_0x533164,'bounds':_0x247a00},_0x4a557f=_0x309316?_0x1451fd:_0x3c2971,_0x3126f=_0x309316?_0x3c2971:_0x1451fd,_0x4ef7c0=this[_0x414a8a(0x190)][_0x414a8a(0x162)](),_0x4c4774=(0x0,_0x3d21cd[_0x414a8a(0x3e5)])(_0x4a557f,_0x3126f,_0x4ef7c0);this[_0x414a8a(0x190)]['removeLinePoints']();let _0x49b8a9=(0x0,_0x3d21cd[_0x414a8a(0x2ae)])(_0x4c4774,_0x4ef7c0);_0x34c49d?this['_executeConnectedRouteConnectionCommand'](_0x49b8a9,_0x34c49d,_0x1b4351,_0x309316,_0x50348d):this[_0x414a8a(0x114)](_0x49b8a9,_0x1b4351,_0x309316,_0x50348d);}[_0x1e3977(0x2d2)](_0x180341,_0x44acb0,_0x1bdd21,_0x4dd3d6){const _0x3334c5=_0x1e3977;let _0x1e0df0=this[_0x3334c5(0x190)][_0x3334c5(0x1e0)]()[_0x3334c5(0x247)],_0xd175d4={..._0x1e0df0},_0x3a8177={'shapeId':_0x44acb0['shapeId'],'cxnIndex':_0x44acb0['cxnIndex']};_0x1bdd21?_0xd175d4['from']=_0x3a8177:_0xd175d4['to']=_0x3a8177;let _0x136898=this[_0x3334c5(0x190)]['getShapeType'](),_0x477adc=(0x0,_0x3d21cd[_0x3334c5(0x2ae)])(_0x180341[_0x3334c5(0x324)],_0x136898),_0x34140d={'unitId':this['_unitId'],'subUnitId':this[_0x3334c5(0x18a)],'connectorShapeId':this[_0x3334c5(0x166)],'width':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x1f0)],'height':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x196)],'left':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x44f)],'top':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x278)],'flipX':_0x180341['worldRect']['flipX']||!0x1,'flipY':_0x180341['worldRect'][_0x3334c5(0x1ac)]||!0x1,'newAdjustValues':_0x477adc['adjustValues'],'oldAdjustValues':_0x4dd3d6,'oldRelation':_0x1e0df0,'newRelation':_0xd175d4,'newLineType':_0x477adc[_0x3334c5(0x181)],'oldLineType':_0x136898};this[_0x3334c5(0x2dc)][_0x3334c5(0x216)](_0x1b87be[_0x3334c5(0x164)]['id'],_0x34140d);}[_0x1e3977(0x2b2)](_0x2b99af,_0x13a04d){const _0x35921a=_0x1e3977;let _0x95af50=this[_0x35921a(0x190)][_0x35921a(0x162)](),_0x1f9923=(0x0,_0x3d21cd[_0x35921a(0x2ae)])(_0x2b99af[_0x35921a(0x324)],_0x95af50),_0x1d44e1={'unitId':this[_0x35921a(0x44e)],'subUnitId':this[_0x35921a(0x18a)],'shapeId':this[_0x35921a(0x166)],'width':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1f0)],'height':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x196)],'left':_0x2b99af[_0x35921a(0x147)]['left'],'top':_0x2b99af[_0x35921a(0x147)]['top'],'flipX':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x23d)]||!0x1,'flipY':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1ac)]||!0x1,'angle':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1bf)]||0x0,'newAdjustValues':_0x1f9923[_0x35921a(0x37d)],'oldAdjustValues':_0x13a04d,'newLineType':_0x1f9923[_0x35921a(0x181)],'oldLineType':_0x95af50};this[_0x35921a(0x2dc)]['executeCommand'](_0x1b87be[_0x35921a(0x20e)]['id'],_0x1d44e1);}['_executeConnectedRouteConnectionCommand'](_0x5dfcfc,_0x10c228,_0x15c99c,_0x4df22a,_0x4e965f){const _0xa853ce=_0x1e3977;let _0x5edd99=this[_0xa853ce(0x190)][_0xa853ce(0x1e0)]()[_0xa853ce(0x247)],_0x4760f9={..._0x5edd99},_0x2dd541={'shapeId':_0x10c228[_0xa853ce(0x329)],'cxnIndex':_0x10c228['cxnIndex']};_0x4df22a?(_0x4760f9[_0xa853ce(0x110)]=_0x2dd541,_0x4760f9['to']=_0x15c99c):(_0x4760f9['from']=_0x15c99c,_0x4760f9['to']=_0x2dd541);let _0x28c113={'unitId':this[_0xa853ce(0x44e)],'subUnitId':this[_0xa853ce(0x18a)],'connectorShapeId':this[_0xa853ce(0x166)],'width':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x1f0)],'height':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x196)],'left':_0x5dfcfc[_0xa853ce(0x147)]['left'],'top':_0x5dfcfc['worldRect'][_0xa853ce(0x278)],'flipX':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x23d)]||!0x1,'flipY':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x1ac)]||!0x1,'oldAdjustValues':_0x4e965f,'newAdjustValues':_0x5dfcfc[_0xa853ce(0x37d)],'newLineType':_0x5dfcfc[_0xa853ce(0x181)],'rotation':_0x5dfcfc[_0xa853ce(0x14f)],'oldRelation':_0x5edd99,'newRelation':_0x4760f9};this[_0xa853ce(0x2dc)]['executeCommand'](_0x1b87be[_0xa853ce(0x164)]['id'],_0x28c113);}[_0x1e3977(0x114)](_0x36b4f5,_0x2d8090,_0x56e3ab,_0x3f064d){const _0x4dd0ab=_0x1e3977;let _0x35d205=this['_activeShapeModel'][_0x4dd0ab(0x1e0)]()[_0x4dd0ab(0x247)],_0xd06732={};_0x56e3ab?(_0xd06732['to']=_0x2d8090,_0xd06732[_0x4dd0ab(0x110)]=void 0x0):(_0xd06732['from']=_0x2d8090,_0xd06732['to']=void 0x0);let _0x445c08={'unitId':this[_0x4dd0ab(0x44e)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x4dd0ab(0x166)],'width':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x1f0)],'height':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x196)],'left':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x44f)],'top':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x278)],'flipX':_0x36b4f5[_0x4dd0ab(0x147)]['flipX']||!0x1,'flipY':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x1ac)]||!0x1,'oldAdjustValues':_0x3f064d,'newAdjustValues':_0x36b4f5[_0x4dd0ab(0x37d)],'newLineType':_0x36b4f5[_0x4dd0ab(0x181)],'rotation':_0x36b4f5['rotation'],'oldRelation':_0x35d205,'newRelation':_0xd06732};this[_0x4dd0ab(0x2dc)][_0x4dd0ab(0x216)](_0x1b87be[_0x4dd0ab(0x164)]['id'],_0x445c08);}['_attachConnectorObjectEvent'](_0x2eaef3,_0x242b50,_0x55c71a){const _0x289e94=_0x1e3977;this[_0x289e94(0x256)]((0x0,_0x2eccf5[_0x289e94(0x351)])(_0x2eaef3[_0x289e94(0x19c)][_0x289e94(0x447)]((_0x54d3a8,_0x54c420)=>{const _0x391ee0=_0x289e94;let _0x182a2d=_0x2eaef3[_0x391ee0(0x26e)]();if(this[_0x391ee0(0x190)]=this[_0x391ee0(0x36d)][_0x391ee0(0x134)](_0x182a2d[_0x391ee0(0x387)],_0x182a2d[_0x391ee0(0x204)],_0x182a2d[_0x391ee0(0x22a)]),!this[_0x391ee0(0x190)])return;let _0x32eaaa={};this[_0x391ee0(0x190)][_0x391ee0(0x27f)]()[_0x391ee0(0x30e)](_0x289c2d=>{const _0x5360a4=_0x391ee0;let _0x261e92=this[_0x5360a4(0x190)]['getAdjustValueByName'](_0x289c2d);_0x261e92!==void 0x0&&(_0x32eaaa[_0x289c2d]=_0x261e92);});let _0x3f25e4=this[_0x391ee0(0x1ef)]();if(!_0x3f25e4)return;this['_baseDrawingRect']={..._0x3f25e4};let _0x12e147=new _0x3d21cd[(_0x391ee0(0x437))](this[_0x391ee0(0x44d)]),_0x22bf9d=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x391ee0(0x44e)],'subUnitId':this[_0x391ee0(0x18a)],'drawingId':this[_0x391ee0(0x166)]}),_0x3be8b3=_0x242b50[_0x391ee0(0x2a4)](_0x22bf9d);this[_0x391ee0(0x360)]=!0x0,_0x242b50[_0x391ee0(0x415)](),this[_0x391ee0(0x252)][_0x391ee0(0x25b)](_0x242b50,this[_0x391ee0(0x44e)],this[_0x391ee0(0x18a)],this[_0x391ee0(0x166)]),this[_0x391ee0(0x19e)]=null;let _0x2997ab=this[_0x391ee0(0x190)]['getConnectorLinePoints'](),_0x4273b7=_0x2997ab[0x0],_0x38390c=_0x2997ab[_0x2997ab[_0x391ee0(0x337)]-0x1],_0x48c36c=_0x55c71a?_0x12e147['localToWorld'](_0x38390c):_0x12e147[_0x391ee0(0x34f)](_0x4273b7);this[_0x391ee0(0x1ec)]=_0x242b50[_0x391ee0(0x307)][_0x391ee0(0x447)]((_0x422003,_0xa711f7)=>{const _0x334797=_0x391ee0;if(!this[_0x334797(0x360)]||!this[_0x334797(0x190)])return;this[_0x334797(0x16e)]||(this[_0x334797(0x264)][_0x334797(0x414)](),this[_0x334797(0x190)][_0x334797(0x3bb)](),this[_0x334797(0x16e)]=!0x0);let _0x1c4390=this[_0x334797(0x1c3)](this[_0x334797(0x44e)],this[_0x334797(0x18a)]),_0x41cbdc=this[_0x334797(0x427)](this['_unitId'],this[_0x334797(0x18a)]),_0x40b910={'x':_0x422003[_0x334797(0x3a5)]/_0x41cbdc+_0x1c4390['x'],'y':_0x422003[_0x334797(0x2e9)]/_0x41cbdc+_0x1c4390['y']},_0x48a420=this[_0x334797(0x252)][_0x334797(0x111)](_0x40b910);if(_0x48a420){let {shapeId:_0x4bbe40,unitId:_0x3682e9,subUnitId:_0x18a03a}=_0x48a420;if(_0x4bbe40&&_0x3682e9&&_0x18a03a){let _0x4680de=(0x0,_0x215a9[_0x334797(0x2ee)])({'unitId':_0x3682e9,'subUnitId':_0x18a03a,'drawingId':_0x4bbe40});_0x48a420[_0x334797(0x1bf)]=(_0x242b50[_0x334797(0x2a4)](_0x4680de)['angle']||0x0)+_0x48a420['angle'];}}this['_currentConnectionTarget']=_0x48a420;let _0x3de31c=_0x55c71a?this[_0x334797(0x190)][_0x334797(0x392)]():this[_0x334797(0x190)][_0x334797(0x200)]();if(_0x3de31c){this[_0x334797(0x206)](_0x3de31c,_0x40b910,_0x55c71a,_0x3be8b3,_0x2eaef3);return;}this[_0x334797(0x334)](_0x40b910,_0x48c36c,_0x55c71a,_0x3be8b3,_0x2eaef3);}),this[_0x391ee0(0x410)]=_0x242b50[_0x391ee0(0x292)][_0x391ee0(0x447)]((_0x4fa3be,_0xad0d99)=>{this['_handleConnectorPointerUp'](_0x242b50,_0x48c36c,_0x4fa3be,_0x55c71a,_0x32eaaa);}),_0x54c420['stopPropagation']();})));}[_0x1e3977(0x3ca)](_0x32e32b,_0x2401f5,_0x267528){const _0x565b1a=_0x1e3977;let _0x441146=this['_sheetsShapeService'][_0x565b1a(0x10f)](_0x32e32b,_0x2401f5,_0x267528);if(!_0x441146||_0x441146[_0x565b1a(0x337)]===0x0)return;let _0x1cea82=this[_0x565b1a(0x3ba)][_0x565b1a(0x2be)](_0x32e32b);if(!_0x1cea82)return;let {scene:_0x3e373f}=_0x1cea82;for(let _0x4bc905 of _0x441146){let _0x297db4=_0x4bc905[_0x565b1a(0x122)],_0x100730=this[_0x565b1a(0x36d)][_0x565b1a(0x134)](_0x32e32b,_0x2401f5,_0x297db4);if(!_0x100730)continue;let _0x37fc4b=_0x100730[_0x565b1a(0x200)](),_0x325887=_0x100730[_0x565b1a(0x392)](),_0x11174b=(_0x37fc4b==null?void 0x0:_0x37fc4b[_0x565b1a(0x329)])===_0x267528,_0x342698=(0x0,_0x215a9[_0x565b1a(0x2ee)])({'unitId':_0x32e32b,'subUnitId':_0x2401f5,'drawingId':_0x297db4}),_0x527f1b=_0x3e373f[_0x565b1a(0x2a4)](_0x342698);if(!_0x527f1b)continue;let _0x35c18d=this[_0x565b1a(0x1a2)][_0x565b1a(0x3d4)]({'unitId':_0x32e32b,'subUnitId':_0x2401f5,'drawingId':_0x297db4});_0x35c18d!=null&&_0x35c18d[_0x565b1a(0x31d)]&&(_0x37fc4b&&_0x325887?this[_0x565b1a(0x2ed)](_0x32e32b,_0x2401f5,_0x297db4,_0x100730,_0x37fc4b,_0x325887,_0x527f1b):this[_0x565b1a(0x23b)](_0x32e32b,_0x2401f5,_0x297db4,_0x100730,_0x11174b?_0x37fc4b:_0x325887,_0x11174b,_0x35c18d,_0x527f1b));}}[_0x1e3977(0x2ed)](_0x12e0e0,_0x58cf63,_0xfd81af,_0x3aa4d9,_0x365e62,_0x5a847e,_0x2fccef){const _0x765f64=_0x1e3977;let _0x7ccb=this[_0x765f64(0x44e)],_0x1935b6=this[_0x765f64(0x18a)];this['_unitId']=_0x12e0e0,this['_subUnitId']=_0x58cf63;let _0x7ffa76=this[_0x765f64(0x150)](_0x365e62),_0x22f679=this[_0x765f64(0x150)](_0x5a847e);if(this[_0x765f64(0x44e)]=_0x7ccb,this[_0x765f64(0x18a)]=_0x1935b6,!_0x7ffa76||!_0x22f679)return;let _0x9b928e=_0x3aa4d9[_0x765f64(0x162)](),_0x4f75d1=(0x0,_0x3d21cd[_0x765f64(0x3e5)])(_0x7ffa76,_0x22f679,_0x9b928e);_0x4f75d1&&_0x3aa4d9[_0x765f64(0x2eb)](_0x4f75d1);let _0x3b9a2a=(0x0,_0x3d21cd[_0x765f64(0x2ae)])(_0x4f75d1,_0x9b928e);_0x3b9a2a[_0x765f64(0x181)]!==_0x9b928e&&_0x3aa4d9[_0x765f64(0x259)](_0x3b9a2a[_0x765f64(0x181)]),_0x3aa4d9[_0x765f64(0x3bb)]();for(let [_0x383d17,_0x2397bf]of Object['entries'](_0x3b9a2a['adjustValues']))_0x3aa4d9[_0x765f64(0x2db)](_0x383d17,_0x2397bf);_0x3aa4d9['updateContext']({'width':_0x3b9a2a['worldRect'][_0x765f64(0x1f0)],'height':_0x3b9a2a['worldRect'][_0x765f64(0x196)]}),_0x2fccef[_0x765f64(0x1c7)]({'flipX':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x23d)],'flipY':_0x3b9a2a['worldRect'][_0x765f64(0x1ac)],'left':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x44f)],'top':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x278)],'width':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x1f0)],'height':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x196)],'angle':_0x3b9a2a[_0x765f64(0x14f)]}),_0x3aa4d9[_0x765f64(0x30b)]();}[_0x1e3977(0x23b)](_0x3ad051,_0x22c9a1,_0x1ca777,_0x52be86,_0x4ed50d,_0x5e9e0e,_0x1360eb,_0x15f66d){const _0xd4c487=_0x1e3977;let _0x28effc=this[_0xd4c487(0x44e)],_0x3524c6=this['_subUnitId'];this[_0xd4c487(0x44e)]=_0x3ad051,this[_0xd4c487(0x18a)]=_0x22c9a1;let _0x231074=this[_0xd4c487(0x150)](_0x4ed50d);if(this[_0xd4c487(0x44e)]=_0x28effc,this[_0xd4c487(0x18a)]=_0x3524c6,!_0x231074)return;let {left:_0x32d9f3=0x0,top:_0x378ac9=0x0,width:_0x30a121=0x0,height:_0x5c5b4e=0x0,flipX:_0x4febb3=!0x1,flipY:_0x857269=!0x1}=_0x1360eb['transform'],_0x2f2ab1=_0x52be86[_0xd4c487(0x2ef)]();if(_0x2f2ab1['length']<0x2)return;let _0x586b1e=new _0x3d21cd[(_0xd4c487(0x437))]({'left':_0x32d9f3,'top':_0x378ac9,'width':_0x30a121,'height':_0x5c5b4e,'flipX':_0x4febb3,'flipY':_0x857269}),_0x3ccbb7=_0x5e9e0e?_0x2f2ab1[_0x2f2ab1[_0xd4c487(0x337)]-0x1]:_0x2f2ab1[0x0],_0x4821d4=_0x586b1e[_0xd4c487(0x34f)](_0x3ccbb7),_0x175da4=_0x3d21cd[_0xd4c487(0x437)]['computeConnectorResizeLayout'](_0x4821d4,_0x231074[_0xd4c487(0x362)],!_0x5e9e0e);_0x15f66d[_0xd4c487(0x1c7)]({'flipX':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x23d)],'flipY':_0x175da4['worldRect']['flipY'],'left':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x44f)],'top':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x278)],'width':_0x175da4['worldRect'][_0xd4c487(0x1f0)],'height':_0x175da4['worldRect'][_0xd4c487(0x196)],'angle':_0x175da4['worldRect'][_0xd4c487(0x1bf)]}),_0x15f66d['makeDirty'](!0x0);}[_0x1e3977(0x300)](){const _0x58f5ad=_0x1e3977;this['_connectorObjects'][_0x58f5ad(0x337)]!==0x0&&(this[_0x58f5ad(0x441)][_0x58f5ad(0x30e)](_0x4cd543=>{const _0x18eaf1=_0x58f5ad;_0x4cd543[_0x18eaf1(0x175)]();}),this[_0x58f5ad(0x441)]=[]);}[_0x1e3977(0x1c4)](){const _0x3d9023=_0x1e3977;let _0x5547e2=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2eccf5['UniverInstanceType'][_0x3d9023(0x293)]);this['disposeWithMe'](_0x5547e2[_0x3d9023(0x239)]((0x0,_0x124e3f[_0x3d9023(0x37e)])(_0x3ffc05=>_0x3ffc05?_0x3ffc05[_0x3d9023(0x445)][_0x3d9023(0x239)]((0x0,_0x124e3f[_0x3d9023(0x37e)])(_0x26f50a=>{const _0x4d144b=_0x3d9023;if(!_0x26f50a)return _0x124e3f[_0x4d144b(0x341)];let _0x4acefa=_0x3ffc05[_0x4d144b(0x322)](),_0x5c6b40=this[_0x4d144b(0x3ba)][_0x4d144b(0x2be)](_0x4acefa),_0x2a3c7b=_0x5c6b40==null?void 0x0:_0x5c6b40[_0x4d144b(0x14a)];return _0x2a3c7b?(0x0,_0x124e3f['of'])(_0x2a3c7b):_0x124e3f[_0x4d144b(0x341)];})):_0x124e3f['EMPTY']))[_0x3d9023(0x17b)](_0x37e6c2=>{const _0x7550f6=_0x3d9023;let _0x115e79=_0x37e6c2[_0x7550f6(0x381)]();this['disposeWithMe'](_0x37e6c2[_0x7550f6(0x307)][_0x7550f6(0x447)](_0x26a1e5=>{const _0x4fde35=_0x7550f6;this[_0x4fde35(0x43c)]&&this['_activeShapeId']&&this[_0x4fde35(0x300)]();})),this[_0x7550f6(0x256)](_0x115e79['changeStart$'][_0x7550f6(0x17b)](_0x36af2c=>{const _0x1c44d4=_0x7550f6;let {objects:_0x3dc268}=_0x36af2c;this[_0x1c44d4(0x300)](),_0x3dc268!==null&&_0x3dc268[_0x1c44d4(0x419)]===0x1&&_0x3dc268[_0x1c44d4(0x158)]()[_0x1c44d4(0x1fe)]()[_0x1c44d4(0x123)]instanceof _0x34cbbf&&(this[_0x1c44d4(0x43c)]=!0x0);})),this[_0x7550f6(0x256)](_0x115e79[_0x7550f6(0x3be)]['subscribe'](_0x27d190=>{const _0x4e7cab=_0x7550f6;this[_0x4e7cab(0x43c)]&&this[_0x4e7cab(0x300)]();})),this[_0x7550f6(0x256)](_0x37e6c2[_0x7550f6(0x292)][_0x7550f6(0x447)](()=>{const _0x4d5b03=_0x7550f6;this['_isDrawingShapePointDown']&&(this[_0x4d5b03(0x43c)]=!0x1,this[_0x4d5b03(0x2fa)]());})),this[_0x7550f6(0x256)](_0x115e79['changeEnd$'][_0x7550f6(0x17b)](()=>{const _0x24c07e=_0x7550f6;this[_0x24c07e(0x44e)]&&this[_0x24c07e(0x18a)]&&this[_0x24c07e(0x166)]&&this[_0x24c07e(0x1a2)]['getDrawingByParam']({'unitId':this[_0x24c07e(0x44e)],'subUnitId':this[_0x24c07e(0x18a)],'drawingId':this['_activeShapeId']})&&(this[_0x24c07e(0x300)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x1e3977(0x2f6)](){const _0x485fe0=_0x1e3977;this[_0x485fe0(0x256)](this[_0x485fe0(0x1a2)]['focus$'][_0x485fe0(0x17b)](_0x47a928=>{const _0x32ce7f=_0x485fe0;if(_0x47a928['length']===0x1){let _0xe6c74e=_0x47a928[0x0];if(_0xe6c74e['drawingType']===_0x2eccf5[_0x32ce7f(0x43b)]['DRAWING_SHAPE']){let _0x4b825f=this[_0x32ce7f(0x36d)]['getShapeModel'](_0xe6c74e[_0x32ce7f(0x387)],_0xe6c74e[_0x32ce7f(0x204)],_0xe6c74e[_0x32ce7f(0x22a)]);if(_0x4b825f&&(0x0,_0x3d21cd[_0x32ce7f(0x275)])(_0x4b825f['getShapeType']())){this[_0x32ce7f(0x166)]=_0xe6c74e[_0x32ce7f(0x22a)],this[_0x32ce7f(0x44e)]=_0xe6c74e[_0x32ce7f(0x387)],this['_subUnitId']=_0xe6c74e[_0x32ce7f(0x204)],this[_0x32ce7f(0x300)](),this[_0x32ce7f(0x2fa)]();return;}}}this[_0x32ce7f(0x166)]=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x32ce7f(0x300)]();})),this[_0x485fe0(0x256)](this[_0x485fe0(0x1a2)][_0x485fe0(0x35f)][_0x485fe0(0x17b)](_0x1105bf=>{const _0x39e188=_0x485fe0;if(_0x1105bf['length']===0x1){var _0x1d5dd9;let _0x3cbf74=_0x1105bf[0x0],_0x2e685e=(_0x1d5dd9=this[_0x39e188(0x1a2)][_0x39e188(0x3d4)](_0x3cbf74))==null?void 0x0:_0x1d5dd9[_0x39e188(0x34b)];_0x2e685e===_0x2eccf5[_0x39e188(0x43b)][_0x39e188(0x285)]&&_0x3cbf74['drawingId']===this[_0x39e188(0x166)]?(this[_0x39e188(0x300)](),this[_0x39e188(0x2fa)]()):!this[_0x39e188(0x166)]&&_0x2e685e===_0x2eccf5[_0x39e188(0x43b)][_0x39e188(0x285)]&&this[_0x39e188(0x3ca)](_0x3cbf74[_0x39e188(0x387)],_0x3cbf74['subUnitId'],_0x3cbf74['drawingId']);}})),this['disposeWithMe'](this[_0x485fe0(0x1a2)]['remove$'][_0x485fe0(0x17b)](_0x3cd353=>{const _0x170807=_0x485fe0;for(let _0x52081 of _0x3cd353){let {drawingId:_0x5773a2}=_0x52081;if(this[_0x170807(0x166)]===_0x5773a2){this[_0x170807(0x20a)]();return;}}}));}[_0x1e3977(0x206)](_0x3cd745,_0x2d6165,_0x199899,_0x32419a,_0x28c86a){const _0x218af3=_0x1e3977;var _0x3be649,_0x5c0a7e;if(!this[_0x218af3(0x190)])return;let _0x4fcf00=this[_0x218af3(0x150)](_0x3cd745);if(!_0x4fcf00)return;let _0x2d5156=this[_0x218af3(0x19e)]?this[_0x218af3(0x19e)][_0x218af3(0x3b1)]:_0x2d6165,_0x474300=this[_0x218af3(0x19e)]?this[_0x218af3(0x19e)][_0x218af3(0x1bf)]:this[_0x218af3(0x330)](_0x4fcf00['point'],_0x2d5156),_0x2ad999;if(this[_0x218af3(0x19e)]){let _0x42b75c=this['_drawingManagerService'][_0x218af3(0x3d4)]({'unitId':this[_0x218af3(0x19e)]['unitId'],'subUnitId':this[_0x218af3(0x19e)][_0x218af3(0x204)],'drawingId':this[_0x218af3(0x19e)][_0x218af3(0x329)]});if(_0x42b75c!=null&&_0x42b75c['transform']){let {left:_0x22fc49=0x0,top:_0x44be56=0x0,width:_0x4085d4=0x0,height:_0x2df5f4=0x0,angle:_0x394c10}=_0x42b75c['transform'];_0x2ad999=(0x0,_0x3d21cd[_0x218af3(0x306)])({'left':_0x22fc49,'top':_0x44be56,'width':_0x4085d4,'height':_0x2df5f4},_0x394c10||0x0);}else _0x2ad999={'left':_0x2d5156['x'],'top':_0x2d5156['y'],'width':0x0,'height':0x0};}else _0x2ad999={'left':_0x2d5156['x'],'top':_0x2d5156['y'],'width':0x0,'height':0x0};let _0x425944={'point':_0x2d5156,'angle':_0x474300,'bounds':_0x2ad999},_0x41a2bd=_0x199899?_0x425944:_0x4fcf00,_0x339a7d=_0x199899?_0x4fcf00:_0x425944,_0x1b020e=this[_0x218af3(0x190)][_0x218af3(0x162)](),_0x6a3de2=(0x0,_0x3d21cd[_0x218af3(0x3e5)])(_0x41a2bd,_0x339a7d,_0x1b020e);_0x6a3de2&&this['_activeShapeModel'][_0x218af3(0x2eb)](_0x6a3de2);let _0x4c3b68=(0x0,_0x3d21cd['computeConnectorRouteLayout'])(_0x6a3de2,_0x1b020e);_0x4c3b68[_0x218af3(0x181)]!==_0x1b020e&&this[_0x218af3(0x190)][_0x218af3(0x259)](_0x4c3b68[_0x218af3(0x181)]);for(let [_0x24c751,_0x37e4d6]of Object[_0x218af3(0x3d5)](_0x4c3b68[_0x218af3(0x37d)]))this['_activeShapeModel'][_0x218af3(0x2db)](_0x24c751,_0x37e4d6);this[_0x218af3(0x190)]['updateContext']({'width':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1f0)],'height':_0x4c3b68['worldRect']['height']}),_0x32419a[_0x218af3(0x1c7)]({'flipX':_0x4c3b68['worldRect'][_0x218af3(0x23d)],'flipY':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1ac)],'left':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x44f)],'top':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x278)],'width':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1f0)],'height':_0x4c3b68[_0x218af3(0x147)]['height'],'angle':_0x4c3b68[_0x218af3(0x14f)]}),_0x32419a['makeDirty'](!0x0);let _0x4ec62c=(_0x3be649=(_0x5c0a7e=this[_0x218af3(0x19e)])==null?void 0x0:_0x5c0a7e[_0x218af3(0x3b1)])==null?_0x2d6165:_0x3be649;_0x28c86a['transformByState']({'left':_0x4ec62c['x']-_0x3d21cd[_0x218af3(0x356)]['cxnPointRadius'],'top':_0x4ec62c['y']-_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius']});}[_0x1e3977(0x334)](_0x1ad03e,_0x18e237,_0x8f5a85,_0x107486,_0x17b8e3){const _0x4c277b=_0x1e3977;var _0x37364e,_0x5ea96a,_0x4c023b,_0x12b853;let _0x47fb69=(_0x37364e=(_0x5ea96a=this[_0x4c277b(0x19e)])==null?void 0x0:_0x5ea96a[_0x4c277b(0x3b1)])==null?_0x1ad03e:_0x37364e,_0x5169bb=_0x3d21cd['ConnectorCoordinateTransform']['computeConnectorResizeLayout'](_0x18e237,_0x47fb69,_0x8f5a85);_0x107486[_0x4c277b(0x1c7)]({'flipX':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x23d)],'flipY':_0x5169bb[_0x4c277b(0x147)]['flipY'],'left':_0x5169bb['worldRect']['left'],'top':_0x5169bb[_0x4c277b(0x147)]['top'],'width':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x1f0)],'height':_0x5169bb[_0x4c277b(0x147)]['height'],'angle':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x1bf)]});let _0x14cee4=(_0x4c023b=(_0x12b853=this[_0x4c277b(0x19e)])==null?void 0x0:_0x12b853['worldPoint'])==null?_0x1ad03e:_0x4c023b;_0x17b8e3['transformByState']({'left':_0x14cee4['x']-_0x3d21cd[_0x4c277b(0x356)][_0x4c277b(0x205)],'top':_0x14cee4['y']-_0x3d21cd[_0x4c277b(0x356)][_0x4c277b(0x205)]});}[_0x1e3977(0x150)](_0x121b84){const _0x362d8d=_0x1e3977;if(!this[_0x362d8d(0x44e)]||!this[_0x362d8d(0x18a)])return null;let {shapeId:_0x3ef477,cxnIndex:_0x5530d3}=_0x121b84,_0x3c45c7=this[_0x362d8d(0x36d)][_0x362d8d(0x134)](this['_unitId'],this[_0x362d8d(0x18a)],_0x3ef477);if(!_0x3c45c7)return null;let _0x51e629=this['_drawingManagerService'][_0x362d8d(0x3d4)]({'unitId':this[_0x362d8d(0x44e)],'subUnitId':this[_0x362d8d(0x18a)],'drawingId':_0x3ef477});if(!(_0x51e629!=null&&_0x51e629['transform']))return null;let {left:_0x1cf372=0x0,top:_0x5c916f=0x0,width:_0x16a2fa=0x0,height:_0x44a130=0x0,flipX:_0x255f3c=!0x1,flipY:_0x4becf9=!0x1,angle:_0xf6ae71}=_0x51e629['transform'];_0x3c45c7[_0x362d8d(0x1b9)]({'width':_0x16a2fa,'height':_0x44a130});let _0x33bccb=_0x3c45c7[_0x362d8d(0x32d)]()[_0x362d8d(0x24b)](_0x2da086=>_0x2da086['index']===_0x5530d3);if(!_0x33bccb)return null;let _0x36aeb1=_0x255f3c?_0x16a2fa-_0x33bccb['x']:_0x33bccb['x'],_0x3de879=_0x4becf9?_0x44a130-_0x33bccb['y']:_0x33bccb['y'];if(_0xf6ae71!==0x0&&_0xf6ae71!=null){let _0x5ec9e1=_0xf6ae71*Math['PI']/0xb4,_0x4bc547=Math['cos'](_0x5ec9e1),_0x3b7e89=Math['sin'](_0x5ec9e1),_0x14f9d9=_0x16a2fa/0x2,_0x3e9855=_0x44a130/0x2,_0x25362b=_0x36aeb1-_0x14f9d9,_0x25271f=_0x3de879-_0x3e9855;_0x36aeb1=_0x14f9d9+_0x25362b*_0x4bc547-_0x25271f*_0x3b7e89,_0x3de879=_0x3e9855+_0x25362b*_0x3b7e89+_0x25271f*_0x4bc547;}_0x36aeb1+=_0x1cf372,_0x3de879+=_0x5c916f;let _0x245a1c=_0x33bccb['ang']/0xea60;_0x255f3c&&(_0x245a1c=0xb4-_0x245a1c),_0x4becf9&&(_0x245a1c=-_0x245a1c),_0x245a1c+=_0xf6ae71||0x0,_0x245a1c=(_0x245a1c%0x168+0x168)%0x168;let _0x191e08=(0x0,_0x3d21cd[_0x362d8d(0x306)])({'left':_0x1cf372,'top':_0x5c916f,'width':_0x16a2fa,'height':_0x44a130},_0xf6ae71||0x0);return{'point':{'x':_0x36aeb1,'y':_0x3de879},'angle':_0x245a1c,'bounds':_0x191e08};}[_0x1e3977(0x330)](_0x1d2174,_0x46b539){let _0x1518ac=_0x46b539['x']-_0x1d2174['x'],_0x535beb=_0x46b539['y']-_0x1d2174['y'];return Math['abs'](_0x1518ac)>=Math['abs'](_0x535beb)?_0x1518ac>=0x0?0xb4:0x0:_0x535beb>=0x0?0x10e:0x5a;}['_reset'](){const _0x58dbce=_0x1e3977;this[_0x58dbce(0x166)]=void 0x0,this[_0x58dbce(0x44e)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x58dbce(0x300)]();}[_0x1e3977(0x175)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};_0x511a6f=_0xba323d([_0x5a8c13(0x1,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x2,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0x3,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x6,(0x0,_0x2eccf5['Inject'])(_0x34fe5c)),_0x5a8c13(0x7,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4bf73b))],_0x511a6f);let _0x186612=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x49b2de,_0x3709cf,_0x32d15f){const _0x5acee5=_0x1e3977;super(),this[_0x5acee5(0x428)]=_0x49b2de,this['_drawingManagerService']=_0x3709cf,this[_0x5acee5(0x157)]=_0x32d15f,this[_0x5acee5(0x38b)]();}['_initPrinting'](){const _0x54e093=_0x1e3977;this[_0x54e093(0x256)](this[_0x54e093(0x428)][_0x54e093(0x1d1)][_0x54e093(0x320)](this[_0x54e093(0x428)][_0x54e093(0x1d1)][_0x54e093(0x16d)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2f782b,_0x5b75fe,_0x195539)=>{const _0x4c720e=_0x54e093;var _0x55425e;let {unitId:_0x93cbf8,subUnitId:_0x35769d,scene:_0x39bc35,resourceCollector:_0x5e35fc}=_0x5b75fe,_0x1764f2=(_0x55425e=this[_0x4c720e(0x1a2)]['getDrawingDataForUnit'](_0x93cbf8))==null?void 0x0:_0x55425e[_0x35769d];return _0x1764f2==null||_0x1764f2[_0x4c720e(0x258)]['forEach'](_0x5d4466=>{const _0x4dcaee=_0x4c720e;let _0x2c40e3=_0x1764f2[_0x4dcaee(0x346)][_0x5d4466];_0x2c40e3[_0x4dcaee(0x34b)]===_0x2eccf5[_0x4dcaee(0x43b)]['DRAWING_SHAPE']&&!_0x2c40e3[_0x4dcaee(0x1f2)]&&this[_0x4dcaee(0x157)][_0x4dcaee(0x413)](_0x2c40e3,_0x39bc35,{'resourceCollector':_0x5e35fc});}),_0x195539(_0x2f782b);}}));}};_0x186612=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8['SheetPrintInterceptorService'])),_0x5a8c13(0x1,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133))],_0x186612);let _0x1361b3=class extends _0x2eccf5['Disposable']{constructor(_0x15e8c3,_0x53802f,_0xde8ffc){const _0x3c9b0a=_0x1e3977;super(),this[_0x3c9b0a(0x2dc)]=_0x15e8c3,this['_localeService']=_0x53802f,this[_0x3c9b0a(0x229)]=_0xde8ffc,this[_0x3c9b0a(0x3d3)]();}[_0x1e3977(0x3d3)](){const _0x5eab34=_0x1e3977;this[_0x5eab34(0x256)](this['_commandService'][_0x5eab34(0x223)](_0x3e3c0d=>{const _0x38977b=_0x5eab34;let _0x5f38c3,_0x5af7f9;if(_0x3e3c0d['id']===_0x1b87be[_0x38977b(0x16f)]['id']||_0x3e3c0d['id']===_0x1b87be['SetShapeDrawingDataCommand']['id']||_0x3e3c0d['id']===_0x1b87be[_0x38977b(0x164)]['id']){let _0x41f39b=_0x3e3c0d[_0x38977b(0x2bc)];_0x5f38c3=_0x41f39b[_0x38977b(0x387)],_0x5af7f9=_0x41f39b[_0x38977b(0x204)];}!_0x5f38c3||!_0x5af7f9||this[_0x38977b(0x229)][_0x38977b(0x2d0)]({'workbookTypes':[_0x2554f2[_0x38977b(0x403)]],'worksheetTypes':[_0x2554f2[_0x38977b(0x326)]]},_0x5f38c3,_0x5af7f9)||this['_sheetPermissionCheckController'][_0x38977b(0x41c)](this[_0x38977b(0x412)]['t']('sheets-shape-ui.permission.editErr'));}));}};_0x1361b3=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5['Inject'])(_0x2eccf5[_0x1e3977(0x1b2)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5[_0x1e3977(0x24d)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2554f2[_0x1e3977(0x400)]))],_0x1361b3);let _0x23f73b=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2c7613,_0x2e3386,_0x12e26c,_0x327bb8,_0x4cc101,_0x1f5266,_0x136fda,_0x3e47e3,_0x85c063,_0x5164ac,_0xbec7da){const _0x388667=_0x1e3977;super(),this[_0x388667(0x18f)]=_0x2c7613,this[_0x388667(0x3dd)]=_0x2e3386,this[_0x388667(0x24e)]=_0x12e26c,this[_0x388667(0x36d)]=_0x327bb8,this[_0x388667(0x412)]=_0x4cc101,this['_commandService']=_0x1f5266,this[_0x388667(0x1a2)]=_0x136fda,this[_0x388667(0x371)]=_0x3e47e3,this[_0x388667(0x133)]=_0x85c063,this[_0x388667(0x3ba)]=_0x5164ac,this[_0x388667(0x2e0)]=_0xbec7da,_0x163ed0(this,_0x388667(0x276),null),_0x163ed0(this,_0x388667(0x17e),null),_0x163ed0(this,_0x388667(0x3d0),!0x1),_0x163ed0(this,_0x388667(0x2a3),0x0),_0x163ed0(this,_0x388667(0x1d2),new Set()),_0x163ed0(this,_0x388667(0x43d),[]),this[_0x388667(0x1a3)](),this[_0x388667(0x256)](this[_0x388667(0x18f)][_0x388667(0x2b4)](_0x2eccf5[_0x388667(0x296)]['UNIVER_SHEET'])[_0x388667(0x17b)](_0x22d4b1=>{const _0x73333a=_0x388667;if(!_0x22d4b1){var _0x3199e5;(_0x3199e5=this['_sidebarDisposable'])==null||_0x3199e5[_0x73333a(0x175)]();return;}this['_createShapePopupMenu'](_0x22d4b1);})),this[_0x388667(0x220)](),this[_0x388667(0x28b)](),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x388667(0x17b)](_0x52a9e0=>{const _0x5d666f=_0x388667;_0x52a9e0&&this[_0x5d666f(0x20c)]();}));}[_0x1e3977(0x1a3)](){const _0x47a12f=_0x1e3977;this['_menuManagerService'][_0x47a12f(0x1c1)](_0x3b310c);}['initShapePopupMenu'](){const _0x188818=_0x1e3977;this[_0x188818(0x18f)]['getAllUnitsForType'](_0x2eccf5[_0x188818(0x296)]['UNIVER_SHEET'])[_0x188818(0x30e)](_0x47b56a=>this['_createShapePopupMenu'](_0x47b56a));}[_0x1e3977(0x297)](_0x332bae,_0x5d26d5,_0x909dc5){const _0x42bfb2=_0x1e3977;let _0x3336f0=this[_0x42bfb2(0x36d)][_0x42bfb2(0x143)](_0x332bae,_0x5d26d5,_0x909dc5),_0x165276=this['_sheetsShapeService'][_0x42bfb2(0x3b9)](_0x332bae,_0x5d26d5,_0x909dc5);return _0x3336f0!==void 0x0&&_0x165276!==void 0x0?{'shapeData':_0x165276,'shapeId':_0x909dc5,'shapeType':_0x3336f0,'unitId':_0x332bae,'subUnitId':_0x5d26d5,'version':this[_0x42bfb2(0x2a3)],'disableShapeOption':!0x1}:null;}[_0x1e3977(0x15e)](_0x1d609d){const _0x3a1478=_0x1e3977;if(!_0x1d609d)return;let _0x466334=_0x1d609d[_0x3a1478(0x322)]();this[_0x3a1478(0x3ba)][_0x3a1478(0x431)](_0x466334)&&!this[_0x3a1478(0x1d2)][_0x3a1478(0x431)](_0x466334)&&(this[_0x3a1478(0x266)](_0x466334),this[_0x3a1478(0x1d2)][_0x3a1478(0x42c)](_0x466334));}[_0x1e3977(0x20c)](){const _0x4a4804=_0x1e3977;this[_0x4a4804(0x43d)]['forEach'](_0x206dc8=>_0x206dc8[_0x4a4804(0x175)]()),this[_0x4a4804(0x43d)][_0x4a4804(0x337)]=0x0;}[_0x1e3977(0x266)](_0xe349b6){const _0x169ebf=_0x1e3977;var _0x1d8c02;let _0x4d21e7=(_0x1d8c02=this[_0x169ebf(0x3ba)][_0x169ebf(0x2be)](_0xe349b6))==null?void 0x0:_0x1d8c02[_0x169ebf(0x14a)],_0x5cfd71=_0x4d21e7==null?void 0x0:_0x4d21e7['getTransformerByCreate']();!_0x4d21e7||!_0x5cfd71||(this['disposeWithMe'](_0x5cfd71['createControl$'][_0x169ebf(0x17b)](()=>{const _0x1ebd5c=_0x169ebf;let _0x582491=_0x5cfd71[_0x1ebd5c(0x36b)]();if(this[_0x1ebd5c(0x20c)](),this[_0x1ebd5c(0x3d0)]||_0x582491[_0x1ebd5c(0x419)]>0x1)return;let _0x80dd98=_0x582491['values']()[_0x1ebd5c(0x1fe)]()[_0x1ebd5c(0x123)];if(!_0x80dd98)return;let _0x3e99ee=this[_0x1ebd5c(0x1a2)][_0x1ebd5c(0x2b5)](_0x80dd98[_0x1ebd5c(0x23a)]);if(!_0x3e99ee||_0x3e99ee[_0x1ebd5c(0x34b)]!==_0x2eccf5['DrawingTypeEnum']['DRAWING_SHAPE'])return;let {unitId:_0x3a1667,subUnitId:_0x55187e,drawingId:_0x19c611,drawingType:_0x21527d}=_0x3e99ee,_0x4821ee=this[_0x1ebd5c(0x297)](_0x3a1667,_0x55187e,_0x19c611);if(!_0x4821ee)return;this[_0x1ebd5c(0x133)]['setContextValue'](_0x2eccf5['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x4340c1=this[_0x1ebd5c(0x371)]['attachPopupToObject'](_0x80dd98,{'componentKey':_0x1f1d2c,'direction':_0x1ebd5c(0x25d),'offset':[0x0,_0x25b599[_0x1ebd5c(0x317)]],'extraProps':{'unitId':_0x3a1667,'subUnitId':_0x55187e,'drawingId':_0x19c611,'drawingType':_0x21527d,'shapeType':_0x4821ee[_0x1ebd5c(0x436)],'shapeData':_0x4821ee[_0x1ebd5c(0x28a)]}});this['_disposePopups'][_0x1ebd5c(0x1b1)](this[_0x1ebd5c(0x256)](_0x4340c1)),this[_0x1ebd5c(0x1a2)][_0x1ebd5c(0x40c)]()[_0x1ebd5c(0x24b)](_0xaa4701=>_0xaa4701[_0x1ebd5c(0x387)]===_0x3a1667&&_0xaa4701[_0x1ebd5c(0x204)]===_0x55187e&&_0xaa4701['drawingId']===_0x19c611)||this[_0x1ebd5c(0x1a2)]['focusDrawing']([{'unitId':_0x3a1667,'subUnitId':_0x55187e,'drawingId':_0x19c611}]);})),this[_0x169ebf(0x256)](_0x5cfd71[_0x169ebf(0x27c)]['subscribe'](()=>{const _0x2b6dcd=_0x169ebf;this[_0x2b6dcd(0x20c)](),this[_0x2b6dcd(0x133)][_0x2b6dcd(0x3a0)](_0x2eccf5[_0x2b6dcd(0x27e)],!0x1),this[_0x2b6dcd(0x1a2)][_0x2b6dcd(0x423)](null);})),this['disposeWithMe'](_0x5cfd71[_0x169ebf(0x3be)][_0x169ebf(0x17b)](()=>{const _0x4c7d3c=_0x169ebf;this[_0x4c7d3c(0x20c)]();})),this['disposeWithMe'](_0x5cfd71['changeStart$'][_0x169ebf(0x17b)](()=>{this['_clearPopups']();})));}[_0x1e3977(0x220)](){const _0x4a7640=_0x1e3977;this[_0x4a7640(0x256)](this[_0x4a7640(0x2dc)][_0x4a7640(0x17a)](_0x44fc21=>{const _0x43e5cb=_0x4a7640;if(_0x44fc21['id']===_0x148656['id']){let {unitId:_0x206763,subUnitId:_0x5dfe46,drawingId:_0x944b5e}=_0x44fc21[_0x43e5cb(0x2bc)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x43e5cb(0x297)](_0x206763,_0x5dfe46,_0x944b5e),this[_0x43e5cb(0x20c)](),this['_openShapeEditPanel']();}if(_0x44fc21['id']===_0x157efe['id']&&(this[_0x43e5cb(0x17e)]=null,this[_0x43e5cb(0x16c)]()),_0x44fc21['id']===_0x1b87be[_0x43e5cb(0x3da)]['id']){let {unitId:_0x553cd2,subUnitId:_0x209eba,shapeId:_0x2f4c5f}=_0x44fc21[_0x43e5cb(0x2bc)];if(this[_0x43e5cb(0x17e)]&&this[_0x43e5cb(0x17e)][_0x43e5cb(0x329)]===_0x2f4c5f){let _0x16c0ff=this[_0x43e5cb(0x297)](_0x553cd2,_0x209eba,_0x2f4c5f);_0x16c0ff&&(this['_shapeEditPanelVersion']+=0x1,_0x16c0ff[_0x43e5cb(0x10c)]=this[_0x43e5cb(0x2a3)],this[_0x43e5cb(0x17e)]=_0x16c0ff,this[_0x43e5cb(0x3d0)]&&this[_0x43e5cb(0x15c)]());}}})),this['disposeWithMe'](this[_0x4a7640(0x1a2)][_0x4a7640(0x394)]['subscribe'](_0x1fa47d=>{const _0x22dd65=_0x4a7640;if(this[_0x22dd65(0x3d0)]===!0x1)return;if(_0x1fa47d[_0x22dd65(0x337)]===0x0){this[_0x22dd65(0x17e)]=null,this[_0x22dd65(0x16c)]();return;}if(_0x1fa47d['length']===0x1&&_0x1fa47d[0x0][_0x22dd65(0x34b)]===_0x2eccf5[_0x22dd65(0x43b)]['DRAWING_SHAPE']&&(this[_0x22dd65(0x2a3)]+=0x1,this[_0x22dd65(0x17e)]=this[_0x22dd65(0x297)](_0x1fa47d[0x0]['unitId'],_0x1fa47d[0x0]['subUnitId'],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this['_activeShapeInfo'])){this[_0x22dd65(0x15c)]();return;}let _0x32d712=_0x1fa47d['filter'](_0xfd4cfc=>_0xfd4cfc[_0x22dd65(0x34b)]===_0x2eccf5[_0x22dd65(0x43b)]['DRAWING_SHAPE']);if(_0x1fa47d[_0x22dd65(0x337)]>0x1&&_0x32d712[_0x22dd65(0x337)]===_0x1fa47d[_0x22dd65(0x337)]){if(this[_0x22dd65(0x2a3)]+=0x1,this[_0x22dd65(0x17e)]=this['_getShapeInfo'](_0x1fa47d[0x0][_0x22dd65(0x387)],_0x1fa47d[0x0][_0x22dd65(0x204)],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this[_0x22dd65(0x17e)]){this[_0x22dd65(0x15c)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x22dd65(0x297)](_0x1fa47d[0x0]['unitId'],_0x1fa47d[0x0][_0x22dd65(0x204)],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this[_0x22dd65(0x17e)]){this[_0x22dd65(0x17e)]['disableShapeOption']=!0x0,this[_0x22dd65(0x15c)]();return;}}this['_closeShapeEditPanel']();}));}[_0x1e3977(0x15c)](){const _0x54fee2=_0x1e3977;this['_activeShapeInfo']&&(this[_0x54fee2(0x276)]=this[_0x54fee2(0x3dd)][_0x54fee2(0x1bc)]({'id':_0xb9db8d,'header':{'title':this[_0x54fee2(0x412)]['t'](_0x54fee2(0x130))},'width':0x184,'children':{'label':_0xb9db8d,...this[_0x54fee2(0x17e)]},'onClose':()=>{const _0x57eae2=_0x54fee2;this[_0x57eae2(0x1a2)]['focusDrawing'](null),this[_0x57eae2(0x133)][_0x57eae2(0x3a0)](_0x2eccf5[_0x57eae2(0x27e)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x54fee2(0x3d0)]=!0x0);}['_closeShapeEditPanel'](){const _0x24b7f0=_0x1e3977;this[_0x24b7f0(0x3d0)]=!0x1,this[_0x24b7f0(0x3dd)][_0x24b7f0(0x309)](_0xb9db8d),this[_0x24b7f0(0x276)]=null,this['_contextService']['setContextValue'](_0x2eccf5['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService'][_0x24b7f0(0x423)](null);}};_0x23f73b=_0xba323d([_0x5a8c13(0x0,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551[_0x1e3977(0x1d5)])),_0x5a8c13(0x2,_0x4b5551[_0x1e3977(0x1eb)]),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5[_0x1e3977(0x24d)])),_0x5a8c13(0x5,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x6,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x7,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8[_0x1e3977(0x41e)])),_0x5a8c13(0x8,_0x2eccf5[_0x1e3977(0x138)]),_0x5a8c13(0x9,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0xa,(0x0,_0x2eccf5['Inject'])(_0x31cbef))],_0x23f73b);let _0x2ba9f7=class extends _0x2eccf5[_0x1e3977(0x1de)]{constructor(_0x1b3284=_0x4f4787,_0x2f6512,_0x45b222,_0x2c96b3,_0x3ba019){const _0x34e61a=_0x1e3977;super(),this[_0x34e61a(0x3a1)]=_0x1b3284,this[_0x34e61a(0x3a6)]=_0x2f6512,this[_0x34e61a(0x2dc)]=_0x45b222,this[_0x34e61a(0x23f)]=_0x2c96b3,this[_0x34e61a(0x3ba)]=_0x3ba019;let {..._0x53b7db}=(0x0,_0x2eccf5[_0x34e61a(0x2fe)])({},_0x4f4787,this[_0x34e61a(0x3a1)]);this['_configService'][_0x34e61a(0x328)](_0x34e61a(0x271),_0x53b7db),this['_initCommands']();}[_0x1e3977(0x30d)](){const _0x4db71c=_0x1e3977;(0x0,_0x2eccf5[_0x4db71c(0x151)])(this[_0x4db71c(0x3a6)],[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x186612]]);}[_0x1e3977(0x295)](){const _0xd1447b=_0x1e3977;this[_0xd1447b(0x3a6)][_0xd1447b(0x32f)](_0x23f73b)['initShapePopupMenu']();}[_0x1e3977(0x2a6)](){const _0x43aa97=_0x1e3977;[[_0x4bf73b],[_0x34fe5c],[_0x13cfb8]][_0x43aa97(0x30e)](_0x1607fb=>this[_0x43aa97(0x3a6)][_0x43aa97(0x42c)](_0x1607fb)),(0x0,_0x2eccf5['touchDependencies'])(this[_0x43aa97(0x3a6)],[[_0x13cfb8],[_0x34fe5c]]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5['UniverInstanceType'][_0x43aa97(0x293)],[_0x4bf73b]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5[_0x43aa97(0x296)][_0x43aa97(0x293)],[_0x1970f0]),this['_renderManagerService']['registerRenderModule'](_0x2eccf5[_0x43aa97(0x296)]['UNIVER_SHEET'],[_0x511a6f]),this['_renderManagerService'][_0x43aa97(0x261)](_0x2eccf5[_0x43aa97(0x296)][_0x43aa97(0x293)],[_0x3ec7c3]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5['UniverInstanceType']['UNIVER_DOC'],[_0x298514]);}[_0x1e3977(0x3c0)](){const _0x2bd449=_0x1e3977;this['_injector'][_0x2bd449(0x42c)]([_0x1ef4c8]),this['_injector']['get'](_0x1ef4c8);let _0x55c1ff=this['_injector'];[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x186612],[_0x2950cd],[_0x31cbef],[_0x3f5298],[_0x432d68],[_0x1361b3]]['forEach'](_0x4a15c8=>_0x55c1ff[_0x2bd449(0x42c)](_0x4a15c8)),(0x0,_0x2eccf5[_0x2bd449(0x151)])(this[_0x2bd449(0x3a6)],[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x2950cd],[_0x31cbef],[_0x3f5298],[_0x432d68],[_0x1361b3]]);}[_0x1e3977(0x405)](){const _0x528249=_0x1e3977;[_0x29cd9f,_0x5a577b,_0x157efe,_0x148656,_0x393ac4,_0x4162f6][_0x528249(0x30e)](_0x4f377c=>this['disposeWithMe'](this[_0x528249(0x2dc)][_0x528249(0x22b)](_0x4f377c)));}};_0x163ed0(_0x2ba9f7,'type',_0x2eccf5[_0x1e3977(0x296)][_0x1e3977(0x293)]),_0x163ed0(_0x2ba9f7,_0x1e3977(0x137),_0x1e3977(0x231)),_0x163ed0(_0x2ba9f7,_0x1e3977(0x163),_0xa08251),_0x163ed0(_0x2ba9f7,_0x1e3977(0x10c),_0x3fe8c1),_0x2ba9f7=_0xba323d([(0x0,_0x2eccf5['DependentOn'])(_0x3fe551[_0x1e3977(0x146)],_0x4f7558[_0x1e3977(0x21d)],_0x215a9[_0x1e3977(0x347)],_0x34fb64[_0x1e3977(0x3f9)],_0x114b3e[_0x1e3977(0x1d3)],_0x2554f2[_0x1e3977(0x327)],_0x2a24ec[_0x1e3977(0x290)],_0x2a2650[_0x1e3977(0x44c)],_0x4b5551[_0x1e3977(0x233)],_0x32598e[_0x1e3977(0x353)],_0x101b82[_0x1e3977(0x277)],_0x1b87be[_0x1e3977(0x364)],_0x3c12d8[_0x1e3977(0x1fc)],_0x25b599['UniverShapeEditorUIPlugin']),_0x5a8c13(0x1,(0x0,_0x2eccf5['Inject'])(_0x2eccf5[_0x1e3977(0x3ce)])),_0x5a8c13(0x2,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x3e1)]),_0x5a8c13(0x4,_0x114b3e['IRenderManagerService'])],_0x2ba9f7),_0x962624[_0x1e3977(0x1cd)]=_0x3b310c,Object[_0x1e3977(0x29f)](_0x962624,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return _0x2ba9f7;}});}));
|
|
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;}});}));
|