@univerjs-pro/boards-mind-ui 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +13 -13
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2d31a4=_0x4547;(function(_0x59389b,_0x44ea24){const _0x1c19a3=_0x4547,_0x31ca50=_0x59389b();while(!![]){try{const _0x3429a8=parseInt(_0x1c19a3(0x1d1))/0x1*(parseInt(_0x1c19a3(0x1f8))/0x2)+parseInt(_0x1c19a3(0x39b))/0x3+parseInt(_0x1c19a3(0x4ce))/0x4*(parseInt(_0x1c19a3(0x242))/0x5)+parseInt(_0x1c19a3(0x2b1))/0x6+parseInt(_0x1c19a3(0x1c5))/0x7*(parseInt(_0x1c19a3(0x2e1))/0x8)+-parseInt(_0x1c19a3(0x44d))/0x9+-parseInt(_0x1c19a3(0x3f2))/0xa;if(_0x3429a8===_0x44ea24)break;else _0x31ca50['push'](_0x31ca50['shift']());}catch(_0x1583d9){_0x31ca50['push'](_0x31ca50['shift']());}}}(_0x3b8f,0x2e412));import{BoardElementType as _0x2cde10,BoardToolType as _0x1210f4,IBoardElementService as _0x495947,IBoardMindMapAdapterService as _0x38e800,UniverBoardsPlugin as _0x39db0c,documentTextStyleToBoardShapeTextStyle as _0x3b60e2,offsetBoardConnectorGeometry as _0xb199be,resolveBoardElementWorldBounds as _0x59b50d}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x3808d0,AddMindMapSiblingOperation as _0x2947b9,ChangeMindMapBranchLineTypeOperation as _0x1982fa,ChangeMindMapLayoutOperation as _0x577e6f,CopyMindMapNodeOperation as _0x5b75b6,DeleteMindMapNodeOperation as _0x1eea2c,DetachMindMapNodeOperation as _0x3b4729,ExportMindMapOpmlOperation as _0x40d1d1,IMindMapClipboardService as _0x44df25,ImportMindMapOpmlOperation as _0x1f6a3b,InsertBoardMindMapOperation as _0x2bec0c,LayoutMindMapOperation as _0x59d4d9,MIND_MAP_DEFAULT_LAYOUT as _0x5242c3,MIND_MAP_DEFAULT_NODE_SIZE as _0x1b9954,MIND_MAP_DEFAULT_NODE_TEXT as _0x355d17,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x16a7d3,PasteMindMapAsNewMindMapOperation as _0xfe8103,PasteMindMapNodeOperation as _0x1dcd5d,PromoteMindMapNodeOperation as _0x25e9ed,ReparentMindMapNodeOperation as _0x48a61f,ToggleMindMapNodeCollapseOperation as _0x16fafb,TranslateMindMapOperation as _0x2c4dd1,UniverBoardsMindPlugin as _0x577257,UpdateMindMapIncomingConnectorOperation as _0x34f5dc,UpdateMindMapNodeOperation as _0x3a4e24,compareMindMapOrderKey as _0x28a7e2,getMindMapConnectorMeta as _0x1b1ea2,getMindMapContainerMeta as _0x3a557b,getMindMapDefaultChildOrderKey as _0x5a5595,getMindMapNodeMeta as _0xd8e37e,isMindMapPlainStructureKind as _0x540733,resolveMindMapBranchLineTypeForStructure as _0x498b4a,resolveMindMapLayoutPreview as _0x278ec5,resolveMindMapNodeHostSize as _0x824281}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x451d89,BOARD_RENDER_LAYER_INDEX as _0x19c79d,BOARD_RENDER_OBJECT_Z_INDEX as _0x4ea4f2,BOARD_SHORTCUT_BINDINGS as _0x1a695f,BoardCanvasPopManagerService as _0x45c11c,BoardInteractionSurfaceService as _0x17676c,BoardShapeIntrinsicSizeService as _0x11420d,BoardTextEditingService as _0x16b84e,IBoardElementStateService as _0x452a90,IBoardUIStateService as _0x18a088,UniverBoardsMobileUIPlugin as _0x3c9575,UniverBoardsUIPlugin as _0x302504,areBoardShapeTextValuesEquivalent as _0x216b42,getBoardElementRenderObjectKey as _0x1b247d,isBoardShortcutAvailable as _0x3745cb,parseBoardElementRenderObjectKey as _0x2913da,resolveBoardFloatingToolbarSelection as _0x4483a0,syncBoardElementRenderObject as _0x239c11}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0xc6ab10}from'@univerjs-pro/license';import{BooleanNumber as _0x8d9210,CommandType as _0x1162ea,DEFAULT_STYLES as _0x4d3453,DependentOn as _0x42b603,Disposable as _0x13ec99,DisposableCollection as _0xec2352,HorizontalAlign as _0x5d5258,ICommandService as _0x2a0a40,IConfigService as _0x22928b,IContextService as _0x2a095c,IUniverInstanceService as _0x28c364,Inject as _0x4a13c4,Injector as _0x159d73,LocaleService as _0x3ff2da,Plugin as _0x1119d2,RxDisposable as _0x9932d8,UniverInstanceType as _0x4468f4,VerticalAlign as _0xc5d8a5,generateRandomId as _0x75cb4,merge as _0x341d8c,toDisposable as _0x5a6bc0}from'@univerjs/core';import{BaseObject as _0x3866b7,Control as _0x4e627c,DeviceType as _0x4ace31,IRenderManagerService as _0xa5c56c,UniverRenderEnginePlugin as _0x49dfad}from'@univerjs/engine-render';import{Subject as _0x93fc85,merge as _0x38bf41,takeUntil as _0x35dd5f}from'rxjs';import{ComponentManager as _0x48f5c4,IDialogService as _0x807b05,IFontService as _0x5eb3ad,IShortcutService as _0x23e2ca,ISidebarService as _0x2f236d,KeyCode as _0x28bc7e,MetaKeys as _0x341e94,UndoRedoGroupService as _0x352e0c,useDependency as _0x1b73d0,useObservable as _0x49d992}from'@univerjs/ui';import{MobileShapeMenu as _0x4e880f,SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x78d89c,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x19667e,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x429bd2,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x34a41c,ShapeFillButton as _0x2a02bb,ShapeFloatingToolbarContent as _0x469f68,ShapeFloatingToolbarDropdownTrigger as _0x538e8d,ShapeFloatingToolbarFontSizeSelect as _0x27a669,ShapeFloatingToolbarIcon as _0x4f8372,ShapeFloatingToolbarMenuItem as _0x4cd972,ShapeFloatingToolbarMenuPanel as _0x291659,ShapeStrokePanelButton as _0x5cba12,ShapeStrokePanelContent as _0x345fac,TextFillButton as _0x5efd9f,TypographyPanelButton as _0x427b5f,buildShapeTextDataUpdate as _0x3b39f1,getTextStyle as _0x22040a}from'@univerjs-pro/shape-editor-ui';import{ShapeDefaultConfig as _0x17912c,ShapeLineDashEnum as _0x6d9141,ShapeLineTypeEnum as _0x586b2d}from'@univerjs-pro/engine-shape';import{Button as _0x52c5ff,Dropdown as _0x51a529,Input as _0x12c1c2,InputNumber as _0x49c357,MobileColorPresets as _0x1865a5,Segmented as _0x4d6766,Separator as _0x6d5a9d,Textarea as _0x3b1bc9,borderClassName as _0x54a2dc,clsx as _0x1f61d6}from'@univerjs/design';import{AlignBottomIcon as _0x5097e6,AlignTextBothIcon as _0x5ad6e9,AlignTopIcon as _0x575e02,BoldIcon as _0x36b5ff,HorizontallyIcon as _0x56184a,ItalicIcon as _0x828192,LeftJustifyingIcon as _0x41ed09,MoreHorizontalIcon as _0x160c3e,RightJustifyingIcon as _0x1be74c,SearchIcon as _0x395528,ShapeLineIcon as _0x41e0b5,StrikethroughIcon as _0x1008c5,UnderlineIcon as _0x51461a,VerticalCenterIcon as _0xd7454b}from'@univerjs/icons';function _0x3b8f(){const _0x121b05=['_shortcutService','_getBoardPointFromEvent','liveRootBounds','onPointerCancel$','univer-space-y-3','boards-mind-ui.toolbar.action.paste','description','renderContext','lineTo','_dragStart','6\x207','_nodeSizeByKey','MindMap','_createTopologyBoundsByElementId','focusedId','boards-mind-ui.toolbar.action.fontColor','_previewRefreshService','boards-mind-ui.panel.spacing.parentGap','M20\x2025h13M20\x2035h13M20\x2045h13','createControl$','_cancelPointerChildDrag','_configService','timeline-horizontal','italic','_updateHostSize','univer-space-y-1','branch-rounded-orthogonal','_createQuoteShortcut','surfaceColor','elementAdd$','dirtyPaddingScreen','tree-left','getElementDataForUnit','vertical','_handlePointerMove','_insertMindMap','_dragPreviewObject','add-child-top','createRunner','Escape','boards-mind-ui.panel.structureKind.timelineHorizontal','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-4','univer-text-xs','univer-flex\x20univer-h-12\x20univer-min-w-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-900\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-0','M21\x2028h38M40\x2011v34M28\x2016c7\x204\x2010\x208\x2012\x2012\x202-4\x205-8\x2012-12M28\x2040c7-4\x2010-8\x2012-12\x202\x204\x205\x208\x2012\x2012','max','_copySelectedNode','_componentManager','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','before','some','_openSelectedTextEditing','clearPendingInsert','transform','_countDescendants','_capturePointerChildDragStart','set','success','siblingGlyphSize','width','scaleX','pluginName','collapseAllNodes','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','localeCompare','_state','paste-as-new','branchLineType','univer-mb-4','object','horizontalAlign','_getMindMapChildren','M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7','BACKSPACE','close','_isControlEvent','mind-map-layout-dropdown','timelineAxisGap','glyphWidth','setActiveTool','dropdown','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','univer-space-y-2','rootWidth','span','mindmap','values','_isChildDragPastActivationThreshold','scene','documentStyle','arrow-up','_objectPointerDisposables','boards-mind-ui.description','requestRender','_interactionSurfaceService','svg','boards-mind-ui.panel.nodeStyle.fontFamily','side','registerRenderModule','child','changeStart$','univer-min-h-12\x20univer-px-3','_resolvePreviewTextStyle','allowRootReparent','executeCommand','_createKeyboardShortcutOperation','entries','isInteractionSurfaceActive','_attachObjectPointerScheduled','textPaddingScreen','orthogonal','moveTo','rootNodeId','bottom','_boardTextEditingService','onPointerMove$','getElementData','text/plain','univer-size-5','setData','679584MMwClC','[&_input]:univer-h-12\x20[&_input]:univer-text-base','_stateService','_resolvePreviewSourceBounds','_getZoomRatio','ARROW_RIGHT','open','key','reparent','siblingGap','_initEditingRestore','_attachObjectPointerListeners','univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','toggle-collapse','ghostRadius','connector','setEditing','deviceType','boards-mind-ui.panel.nodeStyle.fontSize','univer-size-6\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200','primary','univer-h-9\x20univer-w-12','_instanceService','constructor','_getPointerScreenPoint','rgb','setTemplate','currentColor','removeEventListener','_removeObject','boards-mind-ui.toolbar.panel.more','_seedExistingNodeSizes','ArrowUp','_resolveChildSide','collapsed','UNIVER_BOARD','fontFamily','hoveredControl','sourceHighlightFillColor','Touch','_popupDisposable','_applyDragTopologyAction','_pointerDragStart','px\x20','_resolveCompleteSelectedScope','line','shapeId','rootChildSides','_buildPopupSelectionKey','dropEffect','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','Solid','extraProps','_syncPreviewObject','_previewObject','univer-h-auto\x20univer-min-h-12\x20univer-whitespace-normal\x20univer-px-2\x20univer-py-2','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','boards-mind-ui.panel.tab.layout','gap','middle','_executeAndLayout','_instanceSrv','doc','_getPointerLiveBounds','detach','newParentNodeId','string','_clearPopupIfSelectionChanged','_activeNodeId','_pasteAsNewMindMap','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','_resolveControlSide','isHit','kind','boards-mind-ui.cancel','parentNodeId','boards-mind-ui.toolbar.action.delete','add','boards-mind-ui.panel.searchNodes','FOCUSING_MIND_MAP_BLANK_BOARD','FOCUSING_MIND_MAP_TEXT_EDITOR','boards-mind-ui.panel.nodeStyle.style','hasCommand','boards-mind-ui.panel.branchLineType.orthogonal','pointercancel','_restoreObjectToDragStart','addSibling','2389080kRxFVb','_isActive',',\x20minmax(0,\x201fr))','restore','univer-h-12\x20univer-text-base','_getBoardsUIConfig','_resolveSelectedMindMapEntryFromState','selectedIds','_removeDragPreviewObject','registerShortcut','addChildRadius','mind-map','rgba(','toolbar','both','ARROW_DOWN','collapsedDescendantCount','_resolveHostSize','_queueLayout','_disposeActivePointerDragListeners','textEditingService','structure','currentTarget','_executeCreateAndEdit','toLowerCase','_collapseAll','structured','dataModel','add-sibling-before','_ensureObject','textAlign','version','circle','univer-flex\x20univer-flex-col\x20univer-gap-2','open-description','TOP','beginPath','_refresh$','_resolveRootChildControlSides','boards-mind-ui.panel.structureKind.treeLeft','_queuedLayouts','getState','activeTool','Shape','height','RoundDot','makeDirtyNoDebounce','elementId','_objectEventDisposables','divider-','beginMindMapMode','register','_getElementKey','layout-panel-divider','_normalizeChildren','_getLiveObjectBounds','0\x200\x2024\x2024','viewportPanOffset','clientY','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','_previewHostSize','disposeWithMe','_init','_object','removeObjects','mindmap-vertical','referenceNodeId','scopeId','hypot','_injector','_attachActivePointerDragListeners','zoomRatio','small','board.mind-map.floating-toolbar','round','function','elementData','boards-mind-ui.toolbar.action.addSibling','boards-mind-ui.config','_enableMindMapToolbarTool','fallbackNodeHeight','boards-mind-ui.alignTop','univer-text-base','color','_syncContext','_isPopupSelectionStillActive','boards-mind-ui.alignMiddle','addSiblingNode','_applyPointerChildDrag','verticalAlign','onCommandExecuted','3163968bUlNtw','setPendingInsert','paste','Mind\x20map','typography','subUnitId','tree-alternate','hideRootControls','parseInt','_applyScopeTranslation','_activeScopeId','buttons','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-p-4','_restoreActivePreview','subscribe','hasChildren','tree-right','nodeWidth','notify','textStyle','map','interactionMode','point','dash','getCanvasElement','add-sibling-or-child','_consumePointerEvent','nodeHeight','iterator','univer-mb-0','branchGap','univer-border-b\x20univer-border-gray-200\x20univer-p-3','structureKind','complete','boards-mind-ui.panel.tab.','strikethrough','slice','_resolveSelectedEntry','M31\x2013c9\x208\x209\x2022\x2018\x2030M49\x2013c-9\x208-9\x2022-18\x2030M31\x2013c-7\x204-9\x209-9\x2015s2\x2011\x209\x2015M49\x2013c7\x204\x209\x209\x209\x2015s-2\x2011-9\x2015','ghostTextColor','unshift','_uiStateService','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-gap-2','bold','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','univer-flex\x20univer-flex-col\x20univer-gap-1','importExport','DELETE','root','textBaseline','boundsByElementId','setShapeSidebarOpen','scope','boards-mind-ui.panel.emptyNodes','getAncestorScale','_resolveCreateChildSide','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','arrow-left','primaryColor','rootTextColor','packageName','resolve','add-child-right','horizontalGap','type','makeDirty','rootRadius','_resolveCurrentBoardContext','_syncRootReparentPreview','offsetY','boards-mind-ui.descriptionPlaceholder','promote','clipboard','save','_handlePointerDown','clipboardService','unitId','action','UNIVER_BOARDS_MIND_UI_PLUGIN','activated$','params','_provider','univer-h-28\x20univer-resize-none','connectorAffordance','_captureDragStart','_getSceneObject','add-child-bottom','center','_drawSourceHighlight','boards-mind-ui.alignJustify','dashType','transientControl','getActivePageId','offsetX','1.8','getTransformerByCreate','boards-mind-ui.panel.addText','rootFontSize','M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9','ArrowDown','pipe','_textEditingService','_note','element','globalAlpha','bounds','style-divider','top-center','_syncControls','getObjectIncludeInGroup','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','edit-text','registerCommand','arrow-right','show','textColor','foldChildNodes','FOCUSING_MIND_MAP_NODE','_ensureDragPreviewObject','textFill','all','ghostFillColor','localeService','getElementById','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','fill','subscribeEvent','symbol','_hideSelectionForChildDrag','4inwFjc','reduce','icon','length','left','boards-mind-ui.toolbar.action.stroke','_consumeControlEvent','dialogService','meta','_createShortcutItems','registerAdapter','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','boards-mind-ui.alignLeft','getFonts','univer-h-12\x20univer-w-32\x20univer-text-base','badgeFontSize','state$','onPointerDown$','addEventListener','LEFT','Tree\x20diagram','_localeService','M47\x2025h13M47\x2035h13M47\x2045h13','_sidebarService','visible','incomingConnectorStyle','trim','dispose$','stopPropagation','969815pLJNDm','boards-mind-ui.panel.spacing.siblingGap','elementStateService','_childDragActivated','getRenderUnitById','_template','_findChildNodeAtPoint','univer-border-b\x20univer-border-gray-200\x20univer-p-4','setContextValue','_resetContext','elementRemove$','opacity','5937VNcUry','collapse-all','boards-mind-ui.panel.pasteOPML','blueprint','keys','tree-diagram','then','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','pointerStartY','unit','changing$','siblingDotGap','add-child','BOTTOM','_lastChildDragAction','_sidebarDisposable','getUnit','snapDistance','fallbackNodeWidth','addChildNode','_resolveDirtyBounds','uiStateService','objects','getObject','siblingDotRadius','_cloneBlueprintNode','boards-mind-ui.panel.cancel','has','_isPointInBounds','titleKey','dataTransfer','boards-mind-ui.panel.nodeStyle.','_activePreview','boards-mind-ui.panel.tab.structure','univer-min-h-12\x20univer-w-full','elementService','rootHeight','labelKey','connectorData','6mdDbDL','univer-w-full\x20univer-text-xs','_openDescriptionDialog','_mindMapClipboardService','M56\x2011h11M56\x2051h11','transformByState','boards-mind-ui.panel.structureKind.mindmapHorizontal','onReady','0\x200\x2080\x2056','branch-orthogonal','_executeRootAnchoredLayout','enabled','branch','forEach','copy','_drawConnectorPreview','lineCap','univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent','objectAlpha','badgeFontWeight','children','boards-mind-ui.panel.branchLineType.curve','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','pendingInsert','getPayload','defineProperty','curve','_config','timeline','onStarting','path','addChild','effectAllowed','boards-mind-ui.panel.structureKind.treeAlternate','_resolveNodeSize','clearControl$','borderWidth','rootStartBounds','univer-min-h-12\x20univer-w-full\x20univer-justify-between','_removePreviewObject','setHoveredControl','SolidLine','sort','refresh$','OPERATION','sourceBounds','addObject','sourceDashScreen','push','_addSiblingOrChild','boards-mind-ui.toolbar.panel.typography','_handleElementUpdate','_popupSelectionKey','defaultValue','M12\x2026h11M58\x2036h11M12\x2045h11','_disposed','ghostBounds','mind-map-font-size','univer-items-center','context','right','_boardElementService','_pasteUnderSelectedNode','_ensurePreviewObject','fillText','univer-w-32','isTransforming','lineWidthScreen','move','_attachObjectEvents','_addChild','items','findIndex','getSelectedObjectMap','1239205yJrhDj','boards-mind-ui.toolbar.action.layout','evented','univer-grid-cols-3','univer-min-h-12\x20univer-text-xl','_renderManagerService','call','clear','boards-mind-ui.panel.layout.left','univer-mb-3\x20univer-w-full','getUnitId','editingParams$','_syncRootScopePreview','strokeWidth','next','_resolveControlBounds','_getPointFromEvent','boards-mind-ui.panel.spacing.branchGap','childNodeId','collapsePlusMinDistance','placement','TRUE','top','attachPopupToObject','univer-flex-wrap','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','@univerjs-pro/boards-mind-ui','radius','handleShortcut','timeline-vertical','prototype','find','dispose','_contextService','boards-mind-ui.panel.title','getShortcutDisplay','mind-map-stroke','get','panel','renderGhostNode','shapeData','boards-mind-ui.toolbar.action.copy','_syncPointerChildDragPreview','nodeId','changeEnd$','_registerComponents','toPrimitive','MIDDLE','decorate','SHIFT','pointerup','univer-flex\x20univer-gap-2','getSnapshot','ghostFontWeight','getTouchHitDistance','popup','getHitControl','activeEditingId','add-child-left','elementUpdate$','font','delete','scaleY','pointermove','fontSize','ignoreExternalFocusChanges','isRoot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_syncLayoutPreview','M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','univer-text-gray-500','after','ENTER','add-sibling-after','default','_getRenderModules','min','title','boards-mind-ui.toolbar.action.fill','controls','depth','panOffset','focus','exec','data','getInjector','unsubscribe','univer-min-h-12\x20univer-flex-1','viewing','_toFiniteBounds','owner','shapeText','boards-mind-ui.panel.layout.both','button','large','board-mind-map-drag-preview-object','_executeNodeOperation','_commandService','style','_syncChildDragPreviewObject','updateState','focusUnit','underline','glyphSize','commandService','_rememberNodeSize','stroke','transientPreview','univer-w-24','getContextValue','selectElements','895158GVwPue','clientX','_lastPoint','targetNodeId','_syncElementDataToScene','boards-mind-ui.panel.branchLineType.roundedOrthogonal','_executeChildDragAction','dot','boards-mind-ui.toolbar.primary.line','_scheduleAttachObjectPointerListeners','mindmap-horizontal','ArrowRight','_resolveIncomingConnectorStyle','text','_childDragSelectionHidden','hide','setLineDash','fontColor','onDblclick$','custom','filter','_cloneBlueprint','RIGHT','boards-mind-ui.panel.importOPML','M56\x2039h11M13\x2050h11','canvas','zIndex','univer-h-32\x20univer-resize-none\x20univer-text-sm','detachWhenNoSnap','univer-grid\x20univer-w-full\x20univer-gap-2','navigator','interactionSurfaceActive$','boards-mind-ui.alignBottom','closePath','_insertStateService','_navigateByTopology','badgeCount','tools','repeat(','orderKey','_renderContext','rootFontWeight','fillStyle','setConfig','render','div','lineWidth','quadraticCurveTo','8HYkNJu','lineJoin','number','label','Enter','syncExecuteCommand','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','hostSize','onPointerUp$','getEditing','item','parentBounds','updateElement','_getBlankBoardContext','mind-map-fill','foreignAttributes','fonts$','preventDefault','solid','getTemplate','strokeStyle','_layoutFlushScheduled','run','structureScopeId','boards-mind-ui.panel.structureKind.timelineVertical','abs','more','boards-mind-ui.alignRight','boards-mind-ui.toolbar.action.addChild','value','_resolveChildDragTopologyAction','clearSelection','board.operation.mind-map.keyboard-shortcut','univer-flex-1\x20univer-text-sm','_getSelectedMindMapContext','includes','rounded-orthogonal','_undoRedoGroupService','boards-mind-ui.toolbar.primary.fontColor','sourceHaloScreen','_resolveArrowNavigationTarget','true','oldShapeText','size','_intrinsicSizeService','sourceHighlightStrokeColor','boards-mind-ui.panel.tab.importExport','_clearPopup','_resolveRootTopLeft','arrow-down','_boardCanvasPopManagerService','none','visualRadius','boards-mind-ui.panel.rename','registerRuntimeScopedDependencies','_elementStateService','join','layout','_syncChildDragPreview','#d8dce3','isFinite','boards-mind-ui.panel.layout.right','_activePointerDragDisposables','_showPopupForSelection','_applyRootTranslation'];_0x3b8f=function(){return _0x121b05;};return _0x3b8f();}import{useEffect as _0x416c76,useReducer as _0xf932c1,useState as _0x45ab05}from'react';import{Fragment as _0x2f0da1,jsx as _0x1d0d1f,jsxs as _0xf895cc}from'react/jsx-runtime';var Zt=_0x2d31a4(0x25c),Qt='1.0.0';const $t=_0x2d31a4(0x440),en={};function tn(_0x21efed){'@babel/helpers - typeof';const _0x1947e5=_0x2d31a4;return tn=typeof Symbol=='function'&&typeof Symbol[_0x1947e5(0x469)]==_0x1947e5(0x4cc)?function(_0x53d919){return typeof _0x53d919;}:function(_0x8d7069){const _0x20090c=_0x1947e5;return _0x8d7069&&typeof Symbol==_0x20090c(0x43d)&&_0x8d7069[_0x20090c(0x3b2)]===Symbol&&_0x8d7069!==Symbol[_0x20090c(0x260)]?_0x20090c(0x4cc):typeof _0x8d7069;},tn(_0x21efed);}function nn(_0x4a7993,_0x24942f){const _0x1fc49f=_0x2d31a4;if(tn(_0x4a7993)!='object'||!_0x4a7993)return _0x4a7993;var _0xe50a14=_0x4a7993[Symbol[_0x1fc49f(0x270)]];if(_0xe50a14!==void 0x0){var _0x7b6fa5=_0xe50a14[_0x1fc49f(0x248)](_0x4a7993,_0x24942f||_0x1fc49f(0x28c));if(tn(_0x7b6fa5)!='object')return _0x7b6fa5;throw TypeError(_0x1fc49f(0x285));}return(_0x24942f==='string'?String:Number)(_0x4a7993);}function rn(_0x1ca30c){const _0x234022=_0x2d31a4;var _0x28c493=nn(_0x1ca30c,_0x234022(0x3dd));return tn(_0x28c493)=='symbol'?_0x28c493:_0x28c493+'';}function K(_0x2de83d,_0x1db3cf,_0x3aedac){const _0x59a022=_0x2d31a4;return(_0x1db3cf=rn(_0x1db3cf))in _0x2de83d?Object[_0x59a022(0x211)](_0x2de83d,_0x1db3cf,{'value':_0x3aedac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2de83d[_0x1db3cf]=_0x3aedac,_0x2de83d;}function q(_0x3a4f02,_0x3f9cc5){return function(_0x5d9e6c,_0x2ec3b6){_0x3f9cc5(_0x5d9e6c,_0x2ec3b6,_0x3a4f02);};}function J(_0x184aa3,_0x5ef15a,_0x135c6c,_0x3309e0){const _0x4deff1=_0x2d31a4;var _0x3b6a69=arguments[_0x4deff1(0x1ab)],_0x4d2b8c=_0x3b6a69<0x3?_0x5ef15a:_0x3309e0===null?_0x3309e0=Object['getOwnPropertyDescriptor'](_0x5ef15a,_0x135c6c):_0x3309e0,_0x4f2dd2;if(typeof Reflect=='object'&&typeof Reflect[_0x4deff1(0x272)]==_0x4deff1(0x43d))_0x4d2b8c=Reflect['decorate'](_0x184aa3,_0x5ef15a,_0x135c6c,_0x3309e0);else{for(var _0x1a0b23=_0x184aa3[_0x4deff1(0x1ab)]-0x1;_0x1a0b23>=0x0;_0x1a0b23--)(_0x4f2dd2=_0x184aa3[_0x1a0b23])&&(_0x4d2b8c=(_0x3b6a69<0x3?_0x4f2dd2(_0x4d2b8c):_0x3b6a69>0x3?_0x4f2dd2(_0x5ef15a,_0x135c6c,_0x4d2b8c):_0x4f2dd2(_0x5ef15a,_0x135c6c))||_0x4d2b8c);}return _0x3b6a69>0x3&&_0x4d2b8c&&Object['defineProperty'](_0x5ef15a,_0x135c6c,_0x4d2b8c),_0x4d2b8c;}let an=class extends _0x9932d8{constructor(_0x2d80e7,_0x434a21,_0x202d5f){const _0x4ded81=_0x2d31a4;super(),this[_0x4ded81(0x2d9)]=_0x2d80e7,this['_boardElementService']=_0x434a21,this['_commandService']=_0x202d5f,K(this,_0x4ded81(0x32d),new Map()),K(this,_0x4ded81(0x41a),new Map()),K(this,_0x4ded81(0x2f6),!0x1),this['_init']();}[_0x2d31a4(0x430)](){const _0x54b2ec=_0x2d31a4;this[_0x54b2ec(0x3ba)](),this[_0x54b2ec(0x42f)](_0x5a6bc0(this[_0x54b2ec(0x235)][_0x54b2ec(0x33f)]['pipe'](_0x35dd5f(this['dispose$']))['subscribe'](_0x8dc087=>{_0x8dc087['forEach'](_0xcf0659=>{const _0x2d7643=_0x4547;let _0x2b1697=this[_0x2d7643(0x235)][_0x2d7643(0x4c8)](_0xcf0659['unitId'],_0xcf0659['subUnitId'],_0xcf0659[_0x2d7643(0x421)]);this[_0x2d7643(0x2ab)](_0xcf0659,_0x2b1697);});}))),this[_0x54b2ec(0x42f)](_0x5a6bc0(this['_boardElementService']['elementUpdate$'][_0x54b2ec(0x4b1)](_0x35dd5f(this[_0x54b2ec(0x1c3)]))[_0x54b2ec(0x45b)](_0x46a0a2=>{const _0x2ca3db=_0x54b2ec;_0x46a0a2['forEach'](_0x5cd312=>this[_0x2ca3db(0x22b)](_0x5cd312));})));}[_0x2d31a4(0x3ba)](){const _0x8d89cf=_0x2d31a4;let _0x17dd12=this[_0x8d89cf(0x2d9)][_0x8d89cf(0x499)],_0x407886=this[_0x8d89cf(0x235)][_0x8d89cf(0x342)](_0x17dd12);Object[_0x8d89cf(0x38d)](_0x407886)[_0x8d89cf(0x205)](([_0x5046a3,_0xa112d1])=>{const _0x1d5593=_0x8d89cf;Object['values'](_0xa112d1[_0x1d5593(0x296)])[_0x1d5593(0x205)](_0x38e874=>{this['_rememberNodeSize']({'unitId':_0x17dd12,'subUnitId':_0x5046a3,'elementId':_0x38e874['elementId']},_0x38e874);});});}['_handleElementUpdate'](_0x2f6f94){const _0xbf7ac=_0x2d31a4;if(_0x2f6f94[_0xbf7ac(0x499)]!==this[_0xbf7ac(0x2d9)][_0xbf7ac(0x499)])return;let _0x2b0b90=this[_0xbf7ac(0x235)][_0xbf7ac(0x4c8)](_0x2f6f94[_0xbf7ac(0x499)],_0x2f6f94[_0xbf7ac(0x452)],_0x2f6f94[_0xbf7ac(0x421)]),_0x20ce85=_0xd8e37e(_0x2b0b90==null?void 0x0:_0x2b0b90[_0xbf7ac(0x4b4)]),_0x7b3ef4=this[_0xbf7ac(0x21a)](_0x2b0b90);if(!_0x20ce85||!_0x7b3ef4){this['_nodeSizeByKey'][_0xbf7ac(0x27f)](this[_0xbf7ac(0x426)](_0x2f6f94));return;}let _0x2cd67c=this['_getElementKey'](_0x2f6f94),_0x31c600=this['_nodeSizeByKey']['get'](_0x2cd67c);this[_0xbf7ac(0x32d)]['set'](_0x2cd67c,_0x7b3ef4),!(_0x31c600&&_0x31c600[_0xbf7ac(0x35d)]===_0x7b3ef4[_0xbf7ac(0x35d)]&&_0x31c600[_0xbf7ac(0x41e)]===_0x7b3ef4[_0xbf7ac(0x41e)])&&this['_queueLayout']({'unitId':_0x2f6f94[_0xbf7ac(0x499)],'subUnitId':_0x2f6f94[_0xbf7ac(0x452)],'scopeId':_0x20ce85['structureScopeId']});}[_0x2d31a4(0x2ab)](_0x5caf25,_0x3f4710){const _0x433d22=_0x2d31a4;if(_0x5caf25[_0x433d22(0x499)]!==this['_renderContext'][_0x433d22(0x499)])return;let _0x5a07d3=_0xd8e37e(_0x3f4710==null?void 0x0:_0x3f4710[_0x433d22(0x4b4)]),_0x5a128f=this[_0x433d22(0x21a)](_0x3f4710);_0x5a07d3&&_0x5a128f&&this[_0x433d22(0x32d)]['set'](this[_0x433d22(0x426)](_0x5caf25),_0x5a128f);}[_0x2d31a4(0x21a)](_0x20b22c){const _0x39a987=_0x2d31a4;let _0x546747=(_0x20b22c==null?void 0x0:_0x20b22c[_0x39a987(0x357)])??(_0x20b22c==null?void 0x0:_0x20b22c[_0x39a987(0x4b4)][_0x39a987(0x357)]),_0x5b3916=_0x546747==null?void 0x0:_0x546747[_0x39a987(0x35d)],_0x4c43ff=_0x546747==null?void 0x0:_0x546747[_0x39a987(0x41e)];return!Number[_0x39a987(0x31d)](_0x5b3916)||!Number[_0x39a987(0x31d)](_0x4c43ff)?null:{'width':_0x5b3916,'height':_0x4c43ff};}[_0x2d31a4(0x404)](_0x16ba0a){const _0x55c6ee=_0x2d31a4;this[_0x55c6ee(0x41a)][_0x55c6ee(0x35a)](_0x16ba0a[_0x55c6ee(0x499)]+':'+_0x16ba0a[_0x55c6ee(0x452)]+':'+_0x16ba0a[_0x55c6ee(0x435)],_0x16ba0a),!this[_0x55c6ee(0x2f6)]&&(this[_0x55c6ee(0x2f6)]=!0x0,Promise[_0x55c6ee(0x48a)]()[_0x55c6ee(0x1d7)](()=>{const _0x692f5d=_0x55c6ee;this[_0x692f5d(0x2f6)]=!0x1;let _0x28622d=Array['from'](this[_0x692f5d(0x41a)]['values']());this['_queuedLayouts'][_0x692f5d(0x249)](),_0x28622d['forEach'](_0x5738f2=>{const _0x554de3=_0x692f5d;this[_0x554de3(0x202)](_0x5738f2);});}));}['_executeRootAnchoredLayout'](_0x63ce28){const _0x292f6d=_0x2d31a4;var _0x25c932;let _0xdf19a8=this['_boardElementService'][_0x292f6d(0x4c8)](_0x63ce28[_0x292f6d(0x499)],_0x63ce28[_0x292f6d(0x452)],_0x63ce28['scopeId']),_0x37e9b0=(_0x25c932=_0x3a557b(_0xdf19a8==null?void 0x0:_0xdf19a8[_0x292f6d(0x4b4)]))==null?void 0x0:_0x25c932[_0x292f6d(0x393)];this[_0x292f6d(0x2a3)][_0x292f6d(0x38b)](_0x59d4d9['id'],{..._0x63ce28,'skipUndo':!0x0,..._0x37e9b0?{'anchorNodeId':_0x37e9b0}:null});}['_getElementKey'](_0x580b01){const _0x148df4=_0x2d31a4;return _0x580b01[_0x148df4(0x499)]+':'+_0x580b01[_0x148df4(0x452)]+':'+_0x580b01[_0x148df4(0x421)];}};an=J([q(0x1,_0x4a13c4(_0x495947)),q(0x2,_0x2a0a40)],an);const Y={'primaryColor':_0x78d89c,'surfaceColor':_0x19667e,'textColor':_0x429bd2,'fontFamily':_0x4d3453['ff']};function on(_0x1de14c,_0xb4ddf1){const _0x1ff7b2=_0x2d31a4;let _0x56894b=Math[_0x1ff7b2(0x28e)](0x1,Math['max'](0x0,Number[_0x1ff7b2(0x31d)](_0xb4ddf1)?_0xb4ddf1:0x1)),_0x229bba=_0x1de14c['trim'](),_0x3b3ef7=/^#([0-9a-fA-F]{6})$/[_0x1ff7b2(0x295)](_0x229bba);if(!_0x3b3ef7)return _0x1de14c;let _0x33884d=_0x3b3ef7[0x1];return _0x1ff7b2(0x3fe)+Number[_0x1ff7b2(0x455)](_0x33884d['slice'](0x0,0x2),0x10)+',\x20'+Number['parseInt'](_0x33884d[_0x1ff7b2(0x471)](0x2,0x4),0x10)+',\x20'+Number[_0x1ff7b2(0x455)](_0x33884d[_0x1ff7b2(0x471)](0x4,0x6),0x10)+',\x20'+_0x56894b+')';}const X={'primaryColor':Y[_0x2d31a4(0x487)],'ghostFillColor':on(Y['surfaceColor'],0.72),'ghostTextColor':on(Y[_0x2d31a4(0x4c0)],0.62),'rootTextColor':on(Y['surfaceColor'],0.86),'sourceHighlightFillColor':on(Y[_0x2d31a4(0x487)],0.12),'sourceHighlightStrokeColor':on(Y[_0x2d31a4(0x487)],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x1b9954[_0x2d31a4(0x45e)],'fallbackNodeHeight':_0x1b9954[_0x2d31a4(0x468)],'branchGap':_0x5242c3[_0x2d31a4(0x46b)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':Y[_0x2d31a4(0x3bf)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function Z(_0x2d37c2,_0x5b47be,_0x34e0b9,_0x4dffc5,_0x18d59f,_0x1906e5){const _0x8a67=_0x2d31a4;let _0x65aa80=Math[_0x8a67(0x28e)](_0x1906e5,_0x4dffc5/0x2,_0x18d59f/0x2);_0x2d37c2[_0x8a67(0x416)](),_0x2d37c2[_0x8a67(0x392)](_0x5b47be+_0x65aa80,_0x34e0b9),_0x2d37c2[_0x8a67(0x32a)](_0x5b47be+_0x4dffc5-_0x65aa80,_0x34e0b9),_0x2d37c2[_0x8a67(0x2e0)](_0x5b47be+_0x4dffc5,_0x34e0b9,_0x5b47be+_0x4dffc5,_0x34e0b9+_0x65aa80),_0x2d37c2[_0x8a67(0x32a)](_0x5b47be+_0x4dffc5,_0x34e0b9+_0x18d59f-_0x65aa80),_0x2d37c2[_0x8a67(0x2e0)](_0x5b47be+_0x4dffc5,_0x34e0b9+_0x18d59f,_0x5b47be+_0x4dffc5-_0x65aa80,_0x34e0b9+_0x18d59f),_0x2d37c2['lineTo'](_0x5b47be+_0x65aa80,_0x34e0b9+_0x18d59f),_0x2d37c2[_0x8a67(0x2e0)](_0x5b47be,_0x34e0b9+_0x18d59f,_0x5b47be,_0x34e0b9+_0x18d59f-_0x65aa80),_0x2d37c2[_0x8a67(0x32a)](_0x5b47be,_0x34e0b9+_0x65aa80),_0x2d37c2['quadraticCurveTo'](_0x5b47be,_0x34e0b9,_0x5b47be+_0x65aa80,_0x34e0b9),_0x2d37c2[_0x8a67(0x2d2)]();}function sn(_0x145e8a,_0x1d1245,_0x39ae24){const _0x5031fc=_0x2d31a4;return _0x145e8a+'\x20'+_0x1d1245/_0x39ae24+_0x5031fc(0x3c6)+X[_0x5031fc(0x3bf)];}const cn=_0x2d31a4(0x2a1),ln=_0x19c79d['preview'];function Q(_0x4288d4,_0x5b3bfb){const _0x373e5f=_0x2d31a4;return Number[_0x373e5f(0x31d)](_0x4288d4)?_0x4288d4:_0x5b3bfb;}function un(){const _0x1105c6=_0x2d31a4;return X[_0x1105c6(0x1e3)];}function dn(){const _0x567372=_0x2d31a4;return X[_0x567372(0x442)];}function fn(_0xf6c824){const _0x1586e3=_0x2d31a4;return _0xf6c824===0x1?_0x1586e3(0x1ac):_0xf6c824===0x3?_0x1586e3(0x234):_0x1586e3(0x4a4);}function pn(_0x1161cf,_0x22f3cd,_0x2e8a16,_0x3ea973){return _0x2e8a16===0x1?_0x1161cf+_0x3ea973:_0x2e8a16===0x3?_0x1161cf+_0x22f3cd-_0x3ea973:_0x1161cf+_0x22f3cd/0x2;}var mn=class extends _0x3866b7{constructor(_0x16b1b9=cn,_0x5cbd8e){const _0x20966e=_0x2d31a4;super(_0x16b1b9),K(this,'_state',{'ghostBounds':null,'parentBounds':null,'side':_0x20966e(0x234),'zoomRatio':0x1}),this['evented']=!0x1,this[_0x20966e(0x2cb)]=_0x4ea4f2['transientPreviewForeground'],this[_0x20966e(0x2a6)](_0x5cbd8e);}[_0x2d31a4(0x2a6)](_0x126559){const _0x55c1c0=_0x2d31a4;if(this[_0x55c1c0(0x363)]={...this[_0x55c1c0(0x363)],..._0x126559},this[_0x55c1c0(0x363)][_0x55c1c0(0x230)]){let _0x524a49=this[_0x55c1c0(0x1e5)]();this['transformByState'](_0x524a49),this[_0x55c1c0(0x4bf)]();}else this[_0x55c1c0(0x2c0)]();let _0x4c0ca6=this;typeof _0x4c0ca6[_0x55c1c0(0x420)]==_0x55c1c0(0x43d)?_0x4c0ca6['makeDirtyNoDebounce'](!0x0):this['makeDirty'](!0x0);}['isHit'](_0x3f9126){return!0x1;}[_0x2d31a4(0x2dd)](_0x435649,_0x436b29){const _0x184f4e=_0x2d31a4;let _0x1deccc=this[_0x184f4e(0x363)][_0x184f4e(0x230)];if(!_0x1deccc||!this[_0x184f4e(0x1c0)])return this[_0x184f4e(0x48e)](!0x1),this;let _0x3efe40=Number[_0x184f4e(0x31d)](this['_state']['zoomRatio'])&&(this[_0x184f4e(0x363)][_0x184f4e(0x439)]??0x0)>0x0?this[_0x184f4e(0x363)][_0x184f4e(0x439)]:0x1,_0xc0931d=Q(_0x1deccc[_0x184f4e(0x1ac)],0x0),_0x44b59a=Q(_0x1deccc[_0x184f4e(0x258)],0x0),_0x54f18c=Math[_0x184f4e(0x34f)](0x1,Q(_0x1deccc[_0x184f4e(0x35d)],un())),_0x3d3b65=Math['max'](0x1,Q(_0x1deccc['height'],dn()));if(_0x435649[_0x184f4e(0x496)](),_0x435649[_0x184f4e(0x4b5)]=X['dragObjectAlpha'],_0x435649[_0x184f4e(0x2df)]=X['lineWidthScreen']/_0x3efe40,_0x435649[_0x184f4e(0x2f5)]=X[_0x184f4e(0x487)],_0x435649[_0x184f4e(0x2db)]=X[_0x184f4e(0x4c6)],this[_0x184f4e(0x207)](_0x435649,{'left':_0xc0931d,'top':_0x44b59a,'width':_0x54f18c,'height':_0x3d3b65},_0x3efe40),this[_0x184f4e(0x4a5)](_0x435649,_0x3efe40),this[_0x184f4e(0x363)][_0x184f4e(0x269)]===!0x1)return _0x435649[_0x184f4e(0x3f5)](),this['makeDirty'](!0x1),this;Z(_0x435649,_0xc0931d,_0x44b59a,_0x54f18c,_0x3d3b65,X['ghostRadius']),_0x435649[_0x184f4e(0x4ca)](),_0x435649['stroke']();let _0x5e674b=this[_0x184f4e(0x363)][_0x184f4e(0x460)],_0x3d125d=Number['isFinite'](_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x282)])&&((_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x282)])??0x0)>0x0?_0x5e674b['fontSize']:0x10,_0x243437=X[_0x184f4e(0x390)]/_0x3efe40;return _0x435649[_0x184f4e(0x2db)]=(_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x445)])??X[_0x184f4e(0x474)],_0x435649[_0x184f4e(0x27e)]=sn(X[_0x184f4e(0x277)],_0x3d125d,_0x3efe40),_0x435649[_0x184f4e(0x410)]=fn(_0x5e674b==null?void 0x0:_0x5e674b['horizontalAlign']),_0x435649[_0x184f4e(0x47e)]=_0x184f4e(0x3d6),_0x435649[_0x184f4e(0x238)]((_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x2be)])||_0x355d17,pn(_0xc0931d,_0x54f18c,_0x5e674b==null?void 0x0:_0x5e674b[_0x184f4e(0x368)],_0x243437),_0x44b59a+_0x3d3b65/0x2,Math[_0x184f4e(0x34f)](0x1,_0x54f18c-_0x243437*0x2)),_0x435649[_0x184f4e(0x3f5)](),this[_0x184f4e(0x48e)](!0x1),this;}['_resolveDirtyBounds'](){const _0x253784=_0x2d31a4;let _0x395407=this[_0x253784(0x363)][_0x253784(0x230)],_0x565658=Number['isFinite'](this[_0x253784(0x363)][_0x253784(0x439)])&&(this[_0x253784(0x363)][_0x253784(0x439)]??0x0)>0x0?this[_0x253784(0x363)][_0x253784(0x439)]:0x1,_0x10ab0f=X[_0x253784(0x340)]/_0x565658;if(!_0x395407)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xc29251=Q(_0x395407[_0x253784(0x1ac)],0x0),_0x490857=Q(_0x395407[_0x253784(0x258)],0x0),_0x23f690=Math[_0x253784(0x34f)](0x1,Q(_0x395407['width'],un())),_0x2fec02=Math[_0x253784(0x34f)](0x1,Q(_0x395407[_0x253784(0x41e)],dn())),_0x11cf42=this[_0x253784(0x363)][_0x253784(0x225)],_0x5bd264=this['_state']['parentBounds'],_0x81aeb8=Q(_0x11cf42==null?void 0x0:_0x11cf42['left'],_0xc29251),_0x595bd5=Q(_0x11cf42==null?void 0x0:_0x11cf42[_0x253784(0x258)],_0x490857),_0x342b8f=Math[_0x253784(0x34f)](0x1,Q(_0x11cf42==null?void 0x0:_0x11cf42[_0x253784(0x35d)],_0x23f690)),_0xfaace4=Math[_0x253784(0x34f)](0x1,Q(_0x11cf42==null?void 0x0:_0x11cf42[_0x253784(0x41e)],_0x2fec02));if(!_0x5bd264){let _0x574b0a=Math[_0x253784(0x28e)](_0xc29251,_0x81aeb8)-_0x10ab0f,_0x108fcb=Math['min'](_0x490857,_0x595bd5)-_0x10ab0f,_0x29b4ba=Math[_0x253784(0x34f)](_0xc29251+_0x23f690,_0x81aeb8+_0x342b8f)+_0x10ab0f,_0x335c45=Math[_0x253784(0x34f)](_0x490857+_0x2fec02,_0x595bd5+_0xfaace4)+_0x10ab0f;return{'left':_0x574b0a,'top':_0x108fcb,'width':_0x29b4ba-_0x574b0a,'height':_0x335c45-_0x108fcb};}let _0x1e4fa0=Q(_0x5bd264[_0x253784(0x1ac)],_0xc29251),_0x3c0d88=Q(_0x5bd264[_0x253784(0x258)],_0x490857),_0x30925a=Math[_0x253784(0x34f)](0x1,Q(_0x5bd264[_0x253784(0x35d)],un())),_0x5741d2=Math['max'](0x1,Q(_0x5bd264[_0x253784(0x41e)],dn())),_0x41ce6d=Math[_0x253784(0x28e)](_0xc29251,_0x1e4fa0,_0x81aeb8)-_0x10ab0f,_0x2816d9=Math[_0x253784(0x28e)](_0x490857,_0x3c0d88,_0x595bd5)-_0x10ab0f,_0x145b32=Math[_0x253784(0x34f)](_0xc29251+_0x23f690,_0x1e4fa0+_0x30925a,_0x81aeb8+_0x342b8f)+_0x10ab0f,_0x539fa5=Math['max'](_0x490857+_0x2fec02,_0x3c0d88+_0x5741d2,_0x595bd5+_0xfaace4)+_0x10ab0f;return{'left':_0x41ce6d,'top':_0x2816d9,'width':_0x145b32-_0x41ce6d,'height':_0x539fa5-_0x2816d9};}[_0x2d31a4(0x4a5)](_0x33d846,_0x9cc06e){const _0x2c7457=_0x2d31a4;var _0xfdc190;let _0x413f61=this[_0x2c7457(0x363)][_0x2c7457(0x225)];if(!_0x413f61)return;let _0x5e70ed=X[_0x2c7457(0x308)]/_0x9cc06e,_0x4d5dcb=Q(_0x413f61[_0x2c7457(0x1ac)],0x0)-_0x5e70ed,_0xc2d9b4=Q(_0x413f61[_0x2c7457(0x258)],0x0)-_0x5e70ed,_0x1e2f09=Math[_0x2c7457(0x34f)](0x1,Q(_0x413f61[_0x2c7457(0x35d)],un()))+_0x5e70ed*0x2,_0x380f93=Math['max'](0x1,Q(_0x413f61[_0x2c7457(0x41e)],dn()))+_0x5e70ed*0x2;_0x33d846[_0x2c7457(0x496)](),_0x33d846['globalAlpha']=0x1,_0x33d846[_0x2c7457(0x2df)]=X[_0x2c7457(0x23b)]/_0x9cc06e,_0x33d846[_0x2c7457(0x2f5)]=X[_0x2c7457(0x30e)],_0x33d846[_0x2c7457(0x2db)]=X[_0x2c7457(0x3c1)],(_0xfdc190=_0x33d846[_0x2c7457(0x2c1)])==null||_0xfdc190[_0x2c7457(0x248)](_0x33d846,X[_0x2c7457(0x227)][_0x2c7457(0x461)](_0x17860c=>_0x17860c/_0x9cc06e)),Z(_0x33d846,_0x4d5dcb,_0xc2d9b4,_0x1e2f09,_0x380f93,X[_0x2c7457(0x48f)]),_0x33d846['fill'](),_0x33d846['stroke'](),_0x33d846['restore']();}[_0x2d31a4(0x207)](_0x360cff,_0x2a06a9,_0x38a861){const _0x8d2e8d=_0x2d31a4;let _0x1a0aff=this[_0x8d2e8d(0x363)][_0x8d2e8d(0x2ec)];if(!_0x1a0aff)return;let _0x1c335a=Q(_0x1a0aff['left'],0x0),_0x447e71=Q(_0x1a0aff[_0x8d2e8d(0x258)],0x0),_0x6613b5=Math[_0x8d2e8d(0x34f)](0x1,Q(_0x1a0aff['width'],un())),_0x13dcb8=Math[_0x8d2e8d(0x34f)](0x1,Q(_0x1a0aff[_0x8d2e8d(0x41e)],dn())),_0x1d23cc=X[_0x8d2e8d(0x46b)],_0x1b8688=this[_0x8d2e8d(0x363)][_0x8d2e8d(0x384)]??'right';if(_0x360cff[_0x8d2e8d(0x496)](),_0x360cff[_0x8d2e8d(0x4b5)]=X['connectorAlpha'],_0x360cff[_0x8d2e8d(0x2f5)]=X[_0x8d2e8d(0x487)],_0x360cff[_0x8d2e8d(0x2df)]=X['lineWidthScreen']/_0x38a861,_0x360cff[_0x8d2e8d(0x208)]=_0x8d2e8d(0x43c),_0x360cff[_0x8d2e8d(0x2e2)]='round',_0x360cff['beginPath'](),_0x1b8688==='top'||_0x1b8688===_0x8d2e8d(0x394)){let _0x10daae=_0x1c335a+_0x6613b5/0x2,_0x19a898=_0x2a06a9[_0x8d2e8d(0x1ac)]+_0x2a06a9[_0x8d2e8d(0x35d)]/0x2,_0x4b4bb9=_0x1b8688===_0x8d2e8d(0x394)?_0x447e71+_0x13dcb8:_0x447e71,_0x425434=_0x1b8688===_0x8d2e8d(0x394)?_0x2a06a9[_0x8d2e8d(0x258)]:_0x2a06a9[_0x8d2e8d(0x258)]+_0x2a06a9[_0x8d2e8d(0x41e)],_0x1f8e1a=_0x1b8688==='bottom'?Math[_0x8d2e8d(0x28e)](_0x4b4bb9+_0x1d23cc,(_0x4b4bb9+_0x425434)/0x2):Math['max'](_0x4b4bb9-_0x1d23cc,(_0x4b4bb9+_0x425434)/0x2);_0x360cff[_0x8d2e8d(0x392)](_0x10daae,_0x4b4bb9),_0x360cff['lineTo'](_0x10daae,_0x1f8e1a),_0x360cff[_0x8d2e8d(0x32a)](_0x19a898,_0x1f8e1a),_0x360cff[_0x8d2e8d(0x32a)](_0x19a898,_0x425434);}else{let _0x2b4086=_0x447e71+_0x13dcb8/0x2,_0x1ca401=_0x2a06a9[_0x8d2e8d(0x258)]+_0x2a06a9['height']/0x2,_0x34d63a=_0x1b8688===_0x8d2e8d(0x234)?_0x1c335a+_0x6613b5:_0x1c335a,_0x2e62bd=_0x1b8688==='right'?_0x2a06a9[_0x8d2e8d(0x1ac)]:_0x2a06a9['left']+_0x2a06a9[_0x8d2e8d(0x35d)],_0x4cb858=_0x1b8688===_0x8d2e8d(0x234)?Math[_0x8d2e8d(0x28e)](_0x34d63a+_0x1d23cc,(_0x34d63a+_0x2e62bd)/0x2):Math[_0x8d2e8d(0x34f)](_0x34d63a-_0x1d23cc,(_0x34d63a+_0x2e62bd)/0x2);_0x360cff[_0x8d2e8d(0x392)](_0x34d63a,_0x2b4086),_0x360cff[_0x8d2e8d(0x32a)](_0x4cb858,_0x2b4086),_0x360cff[_0x8d2e8d(0x32a)](_0x4cb858,_0x1ca401),_0x360cff['lineTo'](_0x2e62bd,_0x1ca401);}_0x360cff[_0x8d2e8d(0x2ac)](),_0x360cff['restore']();}};function hn(_0x215f7a,_0x12c2fb){const _0x4d66ca=_0x2d31a4;return(_0x12c2fb==null?void 0x0:_0x12c2fb[_0x215f7a[_0x4d66ca(0x421)]])??_0x215f7a[_0x4d66ca(0x4b4)][_0x4d66ca(0x357)];}function gn(_0x423dbb,_0x4573ba){const _0x1dc568=_0x2d31a4;let _0x506bea=hn(_0x423dbb,_0x4573ba);return{'x':(_0x506bea[_0x1dc568(0x1ac)]??0x0)+(_0x506bea[_0x1dc568(0x35d)]??0x0)/0x2,'y':(_0x506bea[_0x1dc568(0x258)]??0x0)+(_0x506bea[_0x1dc568(0x41e)]??0x0)/0x2};}function _n(_0x473a5a,_0x276d76){const _0x19d82a=_0x2d31a4;return Math[_0x19d82a(0x436)](_0x473a5a['x']-_0x276d76['x'],_0x473a5a['y']-_0x276d76['y']);}function vn(_0x1f22d6,_0x3b70e7){const _0x5446fa=_0x2d31a4;let _0xce236e=_0x1f22d6[_0x5446fa(0x1ac)]??0x0,_0x23b939=_0x1f22d6['top']??0x0,_0x28e7c1=_0xce236e+(_0x1f22d6[_0x5446fa(0x35d)]??0x0),_0x586bd4=_0x23b939+(_0x1f22d6[_0x5446fa(0x41e)]??0x0),_0x2e634a=_0x3b70e7[_0x5446fa(0x1ac)]??0x0,_0x5d0ec4=_0x3b70e7[_0x5446fa(0x258)]??0x0,_0x1b05fa=_0x2e634a+(_0x3b70e7['width']??0x0),_0x1270cf=_0x5d0ec4+(_0x3b70e7['height']??0x0),_0x594ed1=Math[_0x5446fa(0x34f)](_0x2e634a-_0x28e7c1,_0xce236e-_0x1b05fa,0x0),_0x330391=Math[_0x5446fa(0x34f)](_0x5d0ec4-_0x586bd4,_0x23b939-_0x1270cf,0x0);return Math[_0x5446fa(0x436)](_0x594ed1,_0x330391);}function yn(_0x5a9334,_0x1c61ea,_0x1ce862){const _0x14425b=_0x2d31a4;var _0x583adf;let _0x131548=_0xd8e37e((_0x583adf=_0x5a9334[_0x1c61ea])==null?void 0x0:_0x583adf[_0x14425b(0x4b4)]);for(;_0x131548!=null&&_0x131548[_0x14425b(0x3e6)];){var _0x54325b;if(_0x131548[_0x14425b(0x3e6)]===_0x1ce862)return!0x0;_0x131548=_0xd8e37e((_0x54325b=_0x5a9334[_0x131548['parentNodeId']])==null?void 0x0:_0x54325b[_0x14425b(0x4b4)]);}return!0x1;}function bn(_0x1adb9a,_0x438b73,_0x594bcf){const _0x5e3c0c=_0x2d31a4;let _0x24b001=hn(_0x1adb9a,_0x594bcf),_0xde351b=_0x24b001['top']??0x0,_0x503e52=_0x24b001[_0x5e3c0c(0x41e)]??0x0;return _0x503e52<=0x0?null:_0x438b73['y']<=_0xde351b+_0x503e52/0x3?_0x5e3c0c(0x353):_0x438b73['y']>=_0xde351b+_0x503e52*0x2/0x3?_0x5e3c0c(0x289):null;}function xn(_0x5cb67b,_0x42c5ba){const _0x20a9d3=_0x2d31a4;let _0x21acb1=_0x42c5ba==null?void 0x0:_0x42c5ba[_0x5cb67b];return Number[_0x20a9d3(0x31d)](_0x21acb1==null?void 0x0:_0x21acb1[_0x20a9d3(0x1ac)])&&Number[_0x20a9d3(0x31d)](_0x21acb1==null?void 0x0:_0x21acb1[_0x20a9d3(0x258)])?{'kind':_0x20a9d3(0x3db),'left':_0x21acb1[_0x20a9d3(0x1ac)],'top':_0x21acb1[_0x20a9d3(0x258)]}:{'kind':_0x20a9d3(0x3db)};}function Sn(_0x4ddc82,_0x4c3630,_0x3919b5){const _0x483583=_0x2d31a4;let _0x4e5e1c=_0x4ddc82[_0x4c3630],_0x8614e2=_0xd8e37e(_0x4e5e1c==null?void 0x0:_0x4e5e1c['element']);if(!_0x4e5e1c||!_0x8614e2||!_0x8614e2[_0x483583(0x3e6)]&&!(_0x3919b5!=null&&_0x3919b5[_0x483583(0x38a)]))return{'kind':_0x483583(0x314)};let _0x825e69=_0x3919b5==null?void 0x0:_0x3919b5[_0x483583(0x47f)],_0xf0931f=hn(_0x4e5e1c,_0x825e69),_0x41d57d=gn(_0x4e5e1c,_0x825e69),_0x21d1f3=Object['values'](_0x4ddc82)[_0x483583(0x461)](_0x4ee9ab=>{const _0x5d63da=_0x483583;let _0x47c6ea=_0xd8e37e(_0x4ee9ab[_0x5d63da(0x4b4)]);return!_0x47c6ea||_0x4ee9ab[_0x5d63da(0x421)]===_0x4c3630||_0x4ee9ab[_0x5d63da(0x421)]===_0x8614e2[_0x5d63da(0x3e6)]||_0x3919b5!=null&&_0x3919b5[_0x5d63da(0x38a)]&&!_0x8614e2[_0x5d63da(0x3e6)]&&_0x47c6ea[_0x5d63da(0x2f8)]===_0x8614e2[_0x5d63da(0x2f8)]||yn(_0x4ddc82,_0x4ee9ab['elementId'],_0x4c3630)?null:{'item':_0x4ee9ab,'snapDistance':vn(_0xf0931f,hn(_0x4ee9ab,_0x825e69)),'center':gn(_0x4ee9ab,_0x825e69)};})['filter'](_0x29985b=>!!_0x29985b)[_0x483583(0x222)]((_0x3f0b58,_0x3750f4)=>_0x3f0b58[_0x483583(0x1e2)]-_0x3750f4['snapDistance']||_n(_0x41d57d,_0x3f0b58['center'])-_n(_0x41d57d,_0x3750f4[_0x483583(0x4a4)]))[0x0];if(_0x21d1f3&&_0x21d1f3['snapDistance']<=0x64){let _0x50f768=_0xd8e37e(_0x21d1f3[_0x483583(0x2eb)][_0x483583(0x4b4)]),_0x35f7fc=_0x50f768!=null&&_0x50f768[_0x483583(0x3e6)]?bn(_0x21d1f3['item'],_0x41d57d,_0x825e69):null;return _0x50f768!=null&&_0x50f768[_0x483583(0x3e6)]&&_0x35f7fc?{'kind':'reparent','newParentNodeId':_0x50f768[_0x483583(0x3e6)],'side':_0x50f768[_0x483583(0x384)]??_0x483583(0x234),'referenceNodeId':_0x21d1f3['item'][_0x483583(0x421)],'placement':_0x35f7fc}:{'kind':_0x483583(0x3a3),'newParentNodeId':_0x21d1f3['item'][_0x483583(0x421)],'side':_0x41d57d['x']<_0x21d1f3[_0x483583(0x4a4)]['x']?_0x483583(0x1ac):_0x483583(0x234)};}if(_0x3919b5!=null&&_0x3919b5[_0x483583(0x2cd)])return xn(_0x4c3630,_0x825e69);if(!_0x8614e2[_0x483583(0x3e6)])return{'kind':_0x483583(0x314)};let _0x3adee7=_0x4ddc82[_0x8614e2['parentNodeId']];return _0x3adee7&&_n(_0x41d57d,gn(_0x3adee7,_0x825e69))>0x230?xn(_0x4c3630,_0x825e69):{'kind':'none'};}function Cn(_0x47059c,_0x58c043){const _0x579677=_0x2d31a4;var _0x3a419f,_0x6929e1;return _0x47059c[_0x579677(0x421)]===_0x58c043||((_0x3a419f=_0xd8e37e(_0x47059c['element']))==null?void 0x0:_0x3a419f[_0x579677(0x2f8)])===_0x58c043||((_0x6929e1=_0x1b1ea2(_0x47059c[_0x579677(0x4b4)]))==null?void 0x0:_0x6929e1['structureScopeId'])===_0x58c043;}function wn(_0x205b8a,_0x5dc10e,_0x243ebf,_0x298576){const _0x5361b0=_0x2d31a4;let _0x291a26=_0x205b8a[_0x5dc10e];if(!_0x291a26)return _0x205b8a;let _0x2b482a=_0x291a26['transform']??_0x291a26[_0x5361b0(0x4b4)][_0x5361b0(0x357)]??{};return{..._0x205b8a,[_0x5dc10e]:{..._0x291a26,'transform':{..._0x2b482a,'left':(_0x2b482a[_0x5361b0(0x1ac)]??0x0)+_0x243ebf,'top':(_0x2b482a['top']??0x0)+_0x298576},'element':{..._0x291a26[_0x5361b0(0x4b4)],'transform':{..._0x291a26[_0x5361b0(0x4b4)][_0x5361b0(0x357)],'left':(_0x291a26[_0x5361b0(0x4b4)][_0x5361b0(0x357)]['left']??0x0)+_0x243ebf,'top':(_0x291a26[_0x5361b0(0x4b4)]['transform'][_0x5361b0(0x258)]??0x0)+_0x298576}}}};}function Tn(_0x5375db){const _0xcef07c=_0x2d31a4;if(!Number[_0xcef07c(0x31d)](_0x5375db[_0xcef07c(0x324)][_0xcef07c(0x1ac)])||!Number['isFinite'](_0x5375db['liveRootBounds']['top'])||!Number[_0xcef07c(0x31d)](_0x5375db['rootStartBounds'][_0xcef07c(0x1ac)])||!Number[_0xcef07c(0x31d)](_0x5375db[_0xcef07c(0x21d)][_0xcef07c(0x258)]))return null;let _0x45dbca=_0x5375db['liveRootBounds'][_0xcef07c(0x1ac)]-_0x5375db['rootStartBounds'][_0xcef07c(0x1ac)],_0x305445=_0x5375db['liveRootBounds']['top']-_0x5375db[_0xcef07c(0x21d)][_0xcef07c(0x258)],_0x45a381=wn(_0x5375db[_0xcef07c(0x43e)],_0x5375db[_0xcef07c(0x435)],_0x45dbca,_0x305445),_0x5a33ed=[];return Object[_0xcef07c(0x379)](_0x45a381)[_0xcef07c(0x205)](_0x5460a1=>{const _0x395e19=_0xcef07c;if(_0x5460a1['elementId']===_0x5375db[_0x395e19(0x393)]||_0x5460a1[_0x395e19(0x421)]===_0x5375db['scopeId']||!Cn(_0x5460a1,_0x5375db['scopeId']))return;if('connectorData'in _0x5460a1[_0x395e19(0x4b4)]){var _0x8eb34f;let _0xb81b9c=(_0x8eb34f=_0x5375db[_0x395e19(0x43e)][_0x5460a1[_0x395e19(0x421)]])==null?void 0x0:_0x8eb34f[_0x395e19(0x4b4)];_0xb81b9c&&_0x395e19(0x1f7)in _0xb81b9c&&_0x5a33ed[_0x395e19(0x228)]({'kind':_0x395e19(0x3aa),'elementId':_0x5460a1['elementId'],'element':_0xb199be(_0xb81b9c,{'x':_0x45dbca,'y':_0x305445})});return;}let _0x4293be=_0x59b50d(_0x45a381,_0x5460a1[_0x395e19(0x421)]);_0x4293be&&_0x5a33ed[_0x395e19(0x228)]({'kind':_0x395e19(0x4b6),'elementId':_0x5460a1[_0x395e19(0x421)],'bounds':_0x4293be});}),{'deltaX':_0x45dbca,'deltaY':_0x305445,'elementData':_0x45a381,'items':_0x5a33ed};}let En=class extends _0x9932d8{constructor(_0x53277d,_0x207485,_0x5b09a3,_0x52b0ae,_0x323b13,_0x27c4f7,_0xa79591){const _0x97110a=_0x2d31a4;super(),this[_0x97110a(0x2d9)]=_0x53277d,this[_0x97110a(0x235)]=_0x207485,this[_0x97110a(0x318)]=_0x5b09a3,this['_commandService']=_0x52b0ae,this['_uiStateService']=_0x323b13,this[_0x97110a(0x3b1)]=_0x27c4f7,this[_0x97110a(0x306)]=_0xa79591,K(this,_0x97110a(0x32b),null),K(this,'_pointerDragStart',null),K(this,_0x97110a(0x346),null),K(this,'_childDragActivated',!0x1),K(this,_0x97110a(0x1df),null),K(this,'_objectPointerDisposables',null),K(this,'_attachObjectPointerScheduled',!0x1),K(this,_0x97110a(0x31f),null),K(this,_0x97110a(0x2bf),!0x1),this['_init']();}[_0x2d31a4(0x430)](){const _0x7bb0be=_0x2d31a4;var _0x5fb97f,_0x44fa40,_0x3a4273,_0x12433f,_0x503620;let _0x338986=this[_0x7bb0be(0x2d9)]['scene']['getTransformerByCreate']();this['disposeWithMe'](_0x5a6bc0(_0x338986[_0x7bb0be(0x387)][_0x7bb0be(0x4b1)](_0x35dd5f(this['dispose$']))[_0x7bb0be(0x45b)](()=>{const _0x1c70cc=_0x7bb0be;this[_0x1c70cc(0x4a1)]();}))),this[_0x7bb0be(0x42f)](_0x5a6bc0(((_0x5fb97f=_0x338986[_0x7bb0be(0x1db)])==null?void 0x0:_0x5fb97f['pipe'](_0x35dd5f(this[_0x7bb0be(0x1c3)]))[_0x7bb0be(0x45b)](_0x41a074=>{const _0x505e36=_0x7bb0be;this['_syncDragPreview'](_0x41a074==null?void 0x0:_0x41a074[_0x505e36(0x1e7)]);}))??{'dispose':()=>{}})),this[_0x7bb0be(0x42f)](_0x5a6bc0(_0x338986['changeEnd$']['pipe'](_0x35dd5f(this[_0x7bb0be(0x1c3)]))[_0x7bb0be(0x45b)](_0x336010=>{const _0x3517a8=_0x7bb0be;setTimeout(()=>this['_applyDragTopologyAction'](_0x336010==null?void 0x0:_0x336010[_0x3517a8(0x1e7)]),0x0);}))),this[_0x7bb0be(0x42f)](_0x5a6bc0(((_0x44fa40=this[_0x7bb0be(0x2d9)]['scene'][_0x7bb0be(0x1b9)])==null?void 0x0:_0x44fa40[_0x7bb0be(0x4cb)]({'priority':0x3,'next':([_0x37f131])=>this[_0x7bb0be(0x359)](_0x37f131)}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x5a6bc0(((_0x3a4273=this[_0x7bb0be(0x2d9)][_0x7bb0be(0x37b)][_0x7bb0be(0x396)])==null?void 0x0:_0x3a4273['subscribeEvent']({'priority':0x3,'next':([_0x4bd720,_0x2cb0c6])=>this['_syncPointerChildDragPreview'](_0x4bd720,_0x2cb0c6)}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x5a6bc0(((_0x12433f=this['_renderContext'][_0x7bb0be(0x37b)][_0x7bb0be(0x2e9)])==null?void 0x0:_0x12433f[_0x7bb0be(0x4cb)]({'priority':0x3,'next':([_0x1b36b2,_0x1beecf])=>this[_0x7bb0be(0x44a)](_0x1b36b2,_0x1beecf)}))??{'dispose':()=>{}})),this[_0x7bb0be(0x42f)](_0x5a6bc0(((_0x503620=this['_renderContext']['scene'][_0x7bb0be(0x325)])==null?void 0x0:_0x503620['subscribeEvent']({'priority':0x3,'next':([,_0x5493cd])=>this[_0x7bb0be(0x336)](_0x5493cd)}))??{'dispose':()=>{}})),this[_0x7bb0be(0x42f)](_0x5a6bc0(()=>{const _0xc4f24e=_0x7bb0be;var _0x3907c2;return(_0x3907c2=this['_objectPointerDisposables'])==null?void 0x0:_0x3907c2[_0xc4f24e(0x262)]();})),this[_0x7bb0be(0x42f)](_0x5a6bc0(()=>this[_0x7bb0be(0x405)]())),this['_subscribeElementDataChanges'](),this[_0x7bb0be(0x2ba)](),this['disposeWithMe'](_0x5a6bc0(()=>this[_0x7bb0be(0x3fa)]()));}['_subscribeElementDataChanges'](){const _0x327580=_0x2d31a4;[this[_0x327580(0x235)][_0x327580(0x33f)],this[_0x327580(0x235)][_0x327580(0x27d)],this[_0x327580(0x235)]['elementRemove$']]['forEach'](_0x1ab2a5=>{const _0x3d6dbb=_0x327580;this[_0x3d6dbb(0x42f)](_0x5a6bc0(_0x1ab2a5[_0x3d6dbb(0x4b1)](_0x35dd5f(this[_0x3d6dbb(0x1c3)]))['subscribe'](()=>{const _0x192dbc=_0x3d6dbb;this[_0x192dbc(0x2ba)]();})));}),this[_0x327580(0x318)][_0x327580(0x1b8)]&&this[_0x327580(0x42f)](_0x5a6bc0(this[_0x327580(0x318)][_0x327580(0x1b8)][_0x327580(0x4b1)](_0x35dd5f(this[_0x327580(0x1c3)]))[_0x327580(0x45b)](()=>{this['_scheduleAttachObjectPointerListeners']();})));}[_0x2d31a4(0x2ba)](){const _0xa115ff=_0x2d31a4;this[_0xa115ff(0x38f)]||(this[_0xa115ff(0x38f)]=!0x0,Promise[_0xa115ff(0x48a)]()[_0xa115ff(0x1d7)](()=>this[_0xa115ff(0x3a6)]()));}['_attachObjectPointerListeners'](){const _0x2a19df=_0x2d31a4;var _0x82e308;this['_attachObjectPointerScheduled']=!0x1;let _0x468cbf=this['_resolveCurrentBoardContext'](),_0x394c57=this[_0x2a19df(0x2d9)][_0x2a19df(0x37b)];if(!_0x468cbf||typeof _0x394c57[_0x2a19df(0x1e8)]!='function')return;let _0x37c7ce=this[_0x2a19df(0x235)][_0x2a19df(0x397)](_0x468cbf[_0x2a19df(0x499)],_0x468cbf['subUnitId']),_0x2358ed=new _0xec2352();(_0x82e308=this[_0x2a19df(0x37e)])==null||_0x82e308[_0x2a19df(0x262)](),this[_0x2a19df(0x37e)]=_0x2358ed,Object[_0x2a19df(0x379)](_0x37c7ce)['forEach'](_0x124c2f=>{const _0x27ebfd=_0x2a19df;var _0x517a35,_0x29a0b0;let _0xfbe81c=_0xd8e37e(_0x124c2f[_0x27ebfd(0x4b4)]);if(!(_0xfbe81c!=null&&_0xfbe81c[_0x27ebfd(0x3e6)]))return;let _0x432906=_0x1b247d(_0x468cbf[_0x27ebfd(0x499)],_0x124c2f[_0x27ebfd(0x421)]),_0x4f023c=((_0x517a35=_0x394c57[_0x27ebfd(0x4ba)])==null?void 0x0:_0x517a35[_0x27ebfd(0x248)](_0x394c57,_0x432906))??((_0x29a0b0=_0x394c57['getObject'])==null?void 0x0:_0x29a0b0[_0x27ebfd(0x248)](_0x394c57,_0x432906));_0x4f023c!=null&&_0x4f023c[_0x27ebfd(0x1b9)]&&_0x2358ed['add'](_0x4f023c[_0x27ebfd(0x1b9)][_0x27ebfd(0x4cb)]({'priority':-0xa,'next':([_0x1d43d2,_0xde1ee1])=>this[_0x27ebfd(0x359)](_0x1d43d2,{'unitId':_0x468cbf[_0x27ebfd(0x499)],'subUnitId':_0x468cbf[_0x27ebfd(0x452)],'nodeId':_0x124c2f[_0x27ebfd(0x421)]},_0xde1ee1)}));});}['_resolveCurrentBoardContext'](){const _0x57945d=_0x2d31a4;let _0x3c3f56=this[_0x57945d(0x318)][_0x57945d(0x276)]()[_0x57945d(0x233)];if(_0x3c3f56)return _0x3c3f56;let _0x669c40=this[_0x57945d(0x2d9)][_0x57945d(0x499)],_0x73ab72=_0x669c40?this[_0x57945d(0x3b1)][_0x57945d(0x1e1)](_0x669c40,_0x4468f4['UNIVER_BOARD']):null,_0xeda3ba=_0x73ab72==null?void 0x0:_0x73ab72[_0x57945d(0x4a9)]();return!_0x73ab72||!_0xeda3ba?null:{'unitId':_0x73ab72[_0x57945d(0x24c)](),'subUnitId':_0xeda3ba};}[_0x2d31a4(0x4a1)](){const _0x202eb4=_0x2d31a4;let _0x283be5=this[_0x202eb4(0x318)]['getSnapshot']();this[_0x202eb4(0x1c8)]=!0x1,this[_0x202eb4(0x2bf)]=!0x1,this['_lastChildDragAction']=null;let _0x365f95=_0x283be5[_0x202eb4(0x233)],_0x95da36=_0x283be5['focusedId']??_0x283be5['selectedIds'][0x0];if(!_0x365f95||!_0x95da36){this[_0x202eb4(0x32b)]=null,this[_0x202eb4(0x3fa)]();return;}let _0x3d7c0c=this[_0x202eb4(0x235)]['getElementData'](_0x365f95[_0x202eb4(0x499)],_0x365f95[_0x202eb4(0x452)]);if(_0x283be5[_0x202eb4(0x3f9)][_0x202eb4(0x1ab)]>0x1){let _0x206486=this[_0x202eb4(0x3c7)](_0x3d7c0c,_0x283be5[_0x202eb4(0x3f9)]);if(!_0x206486){this[_0x202eb4(0x32b)]=null,this[_0x202eb4(0x3fa)]();return;}let _0x1ae3a8=_0x3d7c0c[_0x206486['rootNodeId']],_0x3121ff=_0x59b50d(_0x3d7c0c,_0x206486['rootNodeId']),_0x2804c4=_0x1ae3a8[_0x202eb4(0x4b4)][_0x202eb4(0x357)];this['_dragStart']={'kind':_0x202eb4(0x481),'unitId':_0x365f95[_0x202eb4(0x499)],'subUnitId':_0x365f95[_0x202eb4(0x452)],'nodeId':_0x206486[_0x202eb4(0x393)],'scopeId':_0x206486[_0x202eb4(0x435)],'left':(_0x3121ff==null?void 0x0:_0x3121ff['left'])??_0x2804c4['left']??0x0,'top':(_0x3121ff==null?void 0x0:_0x3121ff[_0x202eb4(0x258)])??_0x2804c4[_0x202eb4(0x258)]??0x0,'width':(_0x3121ff==null?void 0x0:_0x3121ff[_0x202eb4(0x35d)])??_0x2804c4['width']??0x0,'height':(_0x3121ff==null?void 0x0:_0x3121ff[_0x202eb4(0x41e)])??_0x2804c4['height']??0x0,'elementData':_0x3d7c0c};return;}let _0x3408cf=_0x3d7c0c[_0x95da36],_0x2f177d=_0xd8e37e(_0x3408cf==null?void 0x0:_0x3408cf['element']);if(!_0x3408cf||!_0x2f177d){this[_0x202eb4(0x32b)]=null,this['_removeDragPreviewObject']();return;}let _0x518fde=_0x59b50d(_0x3d7c0c,_0x95da36),_0x15ef61=_0x3408cf['element'][_0x202eb4(0x357)];this[_0x202eb4(0x32b)]={'kind':_0x2f177d[_0x202eb4(0x3e6)]===null?_0x202eb4(0x47d):_0x202eb4(0x386),'unitId':_0x365f95[_0x202eb4(0x499)],'subUnitId':_0x365f95[_0x202eb4(0x452)],'nodeId':_0x95da36,'scopeId':_0x2f177d[_0x202eb4(0x2f8)],'left':(_0x518fde==null?void 0x0:_0x518fde[_0x202eb4(0x1ac)])??_0x15ef61[_0x202eb4(0x1ac)]??0x0,'top':(_0x518fde==null?void 0x0:_0x518fde[_0x202eb4(0x258)])??_0x15ef61['top']??0x0,'width':(_0x518fde==null?void 0x0:_0x518fde[_0x202eb4(0x35d)])??_0x15ef61[_0x202eb4(0x35d)]??0x0,'height':(_0x518fde==null?void 0x0:_0x518fde[_0x202eb4(0x41e)])??_0x15ef61[_0x202eb4(0x41e)]??0x0,'elementData':_0x3d7c0c};}['_resolveCompleteSelectedScope'](_0xcc1cc,_0xadd8dc){const _0x1ae7e5=_0x2d31a4;let _0x587769=new Set(_0xadd8dc),_0x13f607=_0xadd8dc[_0x1ae7e5(0x461)](_0x11df0e=>{const _0x26033a=_0x1ae7e5;var _0x4dfc29,_0x2208dd,_0x298ee4,_0xf65980;let _0x4a6b83=(_0x4dfc29=_0xcc1cc[_0x11df0e])==null?void 0x0:_0x4dfc29['element'];return((_0x2208dd=_0xd8e37e(_0x4a6b83))==null?void 0x0:_0x2208dd[_0x26033a(0x2f8)])??((_0x298ee4=_0x1b1ea2(_0x4a6b83))==null?void 0x0:_0x298ee4[_0x26033a(0x2f8)])??((_0xf65980=_0x3a557b(_0x4a6b83))==null?void 0x0:_0xf65980['structureScopeId'])??null;});if(_0x13f607['some'](_0x190fef=>_0x190fef===null)||new Set(_0x13f607)[_0x1ae7e5(0x30c)]!==0x1)return null;let _0x23a778=_0x13f607[0x0];if(!_0x23a778)return null;let _0x16ad6d=Object[_0x1ae7e5(0x379)](_0xcc1cc)[_0x1ae7e5(0x2c5)](_0x3a9eec=>{const _0x5120e8=_0x1ae7e5;var _0x96b767;return _0x3a9eec[_0x5120e8(0x4b4)][_0x5120e8(0x1c0)]!==!0x1&&((_0x96b767=_0xd8e37e(_0x3a9eec[_0x5120e8(0x4b4)]))==null?void 0x0:_0x96b767[_0x5120e8(0x2f8)])===_0x23a778;});if(_0x16ad6d[_0x1ae7e5(0x1ab)]===0x0||_0x16ad6d['some'](_0x3c83e2=>!_0x587769[_0x1ae7e5(0x1ec)](_0x3c83e2[_0x1ae7e5(0x421)])))return null;let _0x3bb874=_0x16ad6d[_0x1ae7e5(0x2c5)](_0x33f40b=>{const _0x50b52c=_0x1ae7e5;var _0x1e0d4a;return((_0x1e0d4a=_0xd8e37e(_0x33f40b[_0x50b52c(0x4b4)]))==null?void 0x0:_0x1e0d4a[_0x50b52c(0x3e6)])===null;});return _0x3bb874[_0x1ae7e5(0x1ab)]===0x1?{'rootNodeId':_0x3bb874[0x0][_0x1ae7e5(0x421)],'scopeId':_0x23a778}:null;}[_0x2d31a4(0x359)](_0x5925ef,_0x149a16,_0x5f2892){const _0x4e50bc=_0x2d31a4;var _0x13df87,_0x477d33,_0x299bf4,_0x425cae,_0x24ea7a;if(this[_0x4e50bc(0x476)][_0x4e50bc(0x41b)]()[_0x4e50bc(0x462)]===_0x4e50bc(0x29a)||(_0x5925ef[_0x4e50bc(0x29f)]??0x0)!==0x0)return;let _0x5caa33=this['_elementStateService'][_0x4e50bc(0x276)]();if(_0x5caa33[_0x4e50bc(0x27b)]){this[_0x4e50bc(0x3c5)]=null;return;}let _0x243371=_0x149a16?{'unitId':_0x149a16['unitId'],'subUnitId':_0x149a16[_0x4e50bc(0x452)]}:_0x5caa33[_0x4e50bc(0x233)]??this[_0x4e50bc(0x490)](),_0x2418bc=(_0x149a16==null?void 0x0:_0x149a16[_0x4e50bc(0x26d)])??(_0x5caa33[_0x4e50bc(0x3f9)][_0x4e50bc(0x1ab)]===0x1?_0x5caa33['focusedId']??_0x5caa33['selectedIds'][0x0]:void 0x0);if(!_0x243371){this['_pointerDragStart']=null;return;}let _0x5df236=this[_0x4e50bc(0x235)][_0x4e50bc(0x397)](_0x243371[_0x4e50bc(0x499)],_0x243371[_0x4e50bc(0x452)]),_0x4ee2ad=this[_0x4e50bc(0x323)](_0x5925ef);if(!_0x149a16){let _0x2639f9=_0x2418bc?_0x5df236[_0x2418bc]:null,_0x3e5d15=_0xd8e37e(_0x2639f9==null?void 0x0:_0x2639f9[_0x4e50bc(0x4b4)]),_0x3c2d82=_0x2418bc?_0x59b50d(_0x5df236,_0x2418bc)??(_0x2639f9==null?void 0x0:_0x2639f9['element'][_0x4e50bc(0x357)]):null;(!(_0x3e5d15!=null&&_0x3e5d15[_0x4e50bc(0x3e6)])||!_0x3c2d82||!this[_0x4e50bc(0x1ed)](_0x4ee2ad,{'left':_0x3c2d82[_0x4e50bc(0x1ac)]??0x0,'top':_0x3c2d82['top']??0x0,'width':_0x3c2d82[_0x4e50bc(0x35d)]??0x0,'height':_0x3c2d82[_0x4e50bc(0x41e)]??0x0}))&&(_0x2418bc=this[_0x4e50bc(0x1cb)](_0x5df236,_0x4ee2ad));}if(!_0x2418bc){this[_0x4e50bc(0x3c5)]=null;return;}let _0x42e3bc=_0x5df236[_0x2418bc],_0x3af9e7=_0xd8e37e(_0x42e3bc==null?void 0x0:_0x42e3bc[_0x4e50bc(0x4b4)]);if(!_0x42e3bc||!(_0x3af9e7!=null&&_0x3af9e7[_0x4e50bc(0x3e6)])){this[_0x4e50bc(0x3c5)]=null;return;}this[_0x4e50bc(0x3b1)][_0x4e50bc(0x2a7)](_0x243371[_0x4e50bc(0x499)]),(_0x13df87=this['_renderContext']['engine'])==null||(_0x477d33=_0x13df87[_0x4e50bc(0x465)])==null||(_0x477d33=_0x477d33['call'](_0x13df87))==null||(_0x299bf4=_0x477d33[_0x4e50bc(0x294)])==null||_0x299bf4[_0x4e50bc(0x248)](_0x477d33,{'preventScroll':!0x0}),(_0x425cae=(_0x24ea7a=this[_0x4e50bc(0x318)])[_0x4e50bc(0x2b0)])==null||_0x425cae[_0x4e50bc(0x248)](_0x24ea7a,_0x243371,[_0x2418bc],_0x2418bc),_0x5f2892==null||_0x5f2892['stopPropagation']();let _0x1ad0bc=_0x59b50d(_0x5df236,_0x2418bc),_0x35ef9a=_0x42e3bc['element']['transform'],_0x129304={'left':(_0x1ad0bc==null?void 0x0:_0x1ad0bc[_0x4e50bc(0x1ac)])??_0x35ef9a[_0x4e50bc(0x1ac)]??0x0,'top':(_0x1ad0bc==null?void 0x0:_0x1ad0bc[_0x4e50bc(0x258)])??_0x35ef9a[_0x4e50bc(0x258)]??0x0,'width':(_0x1ad0bc==null?void 0x0:_0x1ad0bc['width'])??_0x35ef9a[_0x4e50bc(0x35d)]??0x0,'height':(_0x1ad0bc==null?void 0x0:_0x1ad0bc['height'])??_0x35ef9a['height']??0x0};if(!_0x149a16&&!this[_0x4e50bc(0x1ed)](_0x4ee2ad,_0x129304)){this[_0x4e50bc(0x3c5)]=null;return;}let _0x1ccdd4=this[_0x4e50bc(0x3b3)](_0x5925ef);this[_0x4e50bc(0x1c8)]=!0x1,this[_0x4e50bc(0x2bf)]=!0x1,this[_0x4e50bc(0x1df)]=null,this[_0x4e50bc(0x3c5)]={'kind':_0x4e50bc(0x386),'unitId':_0x243371['unitId'],'subUnitId':_0x243371[_0x4e50bc(0x452)],'nodeId':_0x2418bc,'scopeId':_0x3af9e7[_0x4e50bc(0x2f8)],..._0x129304,'pointerStartX':_0x1ccdd4['x'],'pointerStartY':_0x1ccdd4['y'],'elementData':_0x5df236},this['_attachActivePointerDragListeners'](),this['_consumePointerEvent'](_0x5925ef,_0x5f2892);}[_0x2d31a4(0x26c)](_0x4497f9,_0x1b9998){const _0x280f57=_0x2d31a4;var _0x1674ec,_0x322a7c;let _0x52443b=this[_0x280f57(0x3c5)];if(!_0x52443b||_0x4497f9[_0x280f57(0x458)]!==void 0x0&&_0x4497f9[_0x280f57(0x458)]!==0x1)return;let _0x1e9df6=this[_0x280f57(0x3da)](_0x4497f9,_0x52443b);if(!this[_0x280f57(0x37a)](_0x52443b,_0x1e9df6))return;this[_0x280f57(0x1c8)]||this[_0x280f57(0x4cd)](),this['_childDragActivated']=!0x0;let _0xfff015=this[_0x280f57(0x32f)](_0x52443b[_0x280f57(0x43e)],_0x52443b[_0x280f57(0x26d)],_0x1e9df6),_0x27130f=Sn(_0x52443b[_0x280f57(0x43e)],_0x52443b[_0x280f57(0x26d)],{'boundsByElementId':_0xfff015,'detachWhenNoSnap':!0x0});this[_0x280f57(0x1df)]=_0x27130f,this[_0x280f57(0x2a5)](_0x1e9df6,_0x27130f,_0xfff015),this[_0x280f57(0x467)](_0x4497f9,_0x1b9998),this['_renderContext'][_0x280f57(0x37b)][_0x280f57(0x48e)](!0x0),(_0x1674ec=(_0x322a7c=this['_renderContext']['scene'])['requestRender'])==null||_0x1674ec['call'](_0x322a7c);}['_applyPointerChildDrag'](_0x21930e,_0x481e73){const _0x1abaec=_0x2d31a4;let _0x2ba455=this[_0x1abaec(0x3c5)];if(!_0x2ba455)return;if(this['_pointerDragStart']=null,this[_0x1abaec(0x405)](),this[_0x1abaec(0x3fa)](),!this[_0x1abaec(0x1c8)]){this['_lastChildDragAction']=null;return;}let _0x329bce=this[_0x1abaec(0x235)][_0x1abaec(0x397)](_0x2ba455[_0x1abaec(0x499)],_0x2ba455[_0x1abaec(0x452)]),_0x151434=this[_0x1abaec(0x3da)](_0x21930e,_0x2ba455),_0x305ab9=this[_0x1abaec(0x32f)](_0x329bce,_0x2ba455['nodeId'],_0x151434),_0xc24e51=Sn(_0x329bce,_0x2ba455[_0x1abaec(0x26d)],{'boundsByElementId':_0x305ab9,'detachWhenNoSnap':!0x0});this[_0x1abaec(0x1df)]=null,this[_0x1abaec(0x2b7)](_0x2ba455[_0x1abaec(0x499)],_0x2ba455['subUnitId'],_0x2ba455[_0x1abaec(0x26d)],_0x329bce,_0xc24e51),this[_0x1abaec(0x2bf)]=!0x1,this['_consumePointerEvent'](_0x21930e,_0x481e73);}['_cancelPointerChildDrag'](_0x2497e3){const _0x22c0d9=_0x2d31a4;let _0x54f8f4=this['_pointerDragStart'];if(_0x54f8f4){if(this[_0x22c0d9(0x3c5)]=null,this[_0x22c0d9(0x405)](),this[_0x22c0d9(0x1c8)]=!0x1,this[_0x22c0d9(0x1df)]=null,this[_0x22c0d9(0x3fa)](),this['_childDragSelectionHidden']){var _0x4c9f59,_0x311d37;(_0x4c9f59=(_0x311d37=this[_0x22c0d9(0x318)])[_0x22c0d9(0x2b0)])==null||_0x4c9f59[_0x22c0d9(0x248)](_0x311d37,{'unitId':_0x54f8f4[_0x22c0d9(0x499)],'subUnitId':_0x54f8f4['subUnitId']},[_0x54f8f4[_0x22c0d9(0x26d)]],_0x54f8f4['nodeId']),this[_0x22c0d9(0x2bf)]=!0x1;}_0x2497e3==null||_0x2497e3[_0x22c0d9(0x1c4)]();}}[_0x2d31a4(0x438)](){const _0x1f863a=_0x2d31a4;this[_0x1f863a(0x405)]();let _0x5aba62=typeof window>'u'?null:window;if(!(_0x5aba62!=null&&_0x5aba62[_0x1f863a(0x1ba)]))return;let _0x424a17=new _0xec2352(),_0x4d1365=_0x521ab3=>this[_0x1f863a(0x26c)](_0x521ab3),_0x5f47a0=_0x42ad1f=>this[_0x1f863a(0x44a)](_0x42ad1f),_0x4b02c8=()=>this['_cancelPointerChildDrag']();_0x5aba62[_0x1f863a(0x1ba)]('pointermove',_0x4d1365,{'capture':!0x0}),_0x5aba62[_0x1f863a(0x1ba)]('pointerup',_0x5f47a0,{'capture':!0x0}),_0x5aba62[_0x1f863a(0x1ba)](_0x1f863a(0x3ef),_0x4b02c8,{'capture':!0x0}),_0x424a17['add'](_0x5a6bc0(()=>{const _0x140f00=_0x1f863a;_0x5aba62[_0x140f00(0x3b7)](_0x140f00(0x281),_0x4d1365,{'capture':!0x0}),_0x5aba62[_0x140f00(0x3b7)](_0x140f00(0x274),_0x5f47a0,{'capture':!0x0}),_0x5aba62[_0x140f00(0x3b7)]('pointercancel',_0x4b02c8,{'capture':!0x0});})),this[_0x1f863a(0x31f)]=_0x424a17;}[_0x2d31a4(0x1cb)](_0x39b6fe,_0x5304e6){const _0x80d26b=_0x2d31a4;let _0x2b711c=Object['values'](_0x39b6fe);for(let _0x2977e8=_0x2b711c['length']-0x1;_0x2977e8>=0x0;--_0x2977e8){let _0x1a8521=_0x2b711c[_0x2977e8],_0x164b1d=_0xd8e37e(_0x1a8521[_0x80d26b(0x4b4)]);if(!(_0x164b1d!=null&&_0x164b1d['parentNodeId']))continue;let _0x2f68d6=_0x59b50d(_0x39b6fe,_0x1a8521[_0x80d26b(0x421)])??_0x1a8521[_0x80d26b(0x4b4)][_0x80d26b(0x357)];if(this['_isPointInBounds'](_0x5304e6,{'left':_0x2f68d6[_0x80d26b(0x1ac)]??0x0,'top':_0x2f68d6[_0x80d26b(0x258)]??0x0,'width':_0x2f68d6['width']??0x0,'height':_0x2f68d6[_0x80d26b(0x41e)]??0x0}))return _0x1a8521[_0x80d26b(0x421)];}}[_0x2d31a4(0x405)](){const _0x542918=_0x2d31a4;var _0x2a914b;(_0x2a914b=this[_0x542918(0x31f)])==null||_0x2a914b[_0x542918(0x262)](),this[_0x542918(0x31f)]=null;}['_syncDragPreview'](_0x2d3d73){const _0x2bb7=_0x2d31a4;let _0x5a667b=this[_0x2bb7(0x32b)];if(_0x5a667b){if((_0x5a667b[_0x2bb7(0x3e4)]===_0x2bb7(0x47d)||_0x5a667b[_0x2bb7(0x3e4)]===_0x2bb7(0x481))&&this[_0x2bb7(0x24e)](_0x2d3d73),_0x5a667b['kind']===_0x2bb7(0x47d)){this[_0x2bb7(0x491)](_0x2d3d73);return;}this['_syncChildDragPreview'](_0x2d3d73);}}[_0x2d31a4(0x24e)](_0x30b5c3){const _0x30aab6=_0x2d31a4;let _0x29a9d5=this[_0x30aab6(0x32b)];if(!_0x29a9d5||_0x29a9d5['kind']!==_0x30aab6(0x47d)&&_0x29a9d5[_0x30aab6(0x3e4)]!=='scope')return;let _0x2237cb=_0x30b5c3==null?void 0x0:_0x30b5c3[_0x30aab6(0x267)](_0x1b247d(_0x29a9d5['unitId'],_0x29a9d5['nodeId']));if(!_0x2237cb||!Number[_0x30aab6(0x31d)](_0x2237cb['left'])||!Number[_0x30aab6(0x31d)](_0x2237cb[_0x30aab6(0x258)]))return;let _0x3e2cd9=Tn({'elementData':_0x29a9d5['elementData'],'rootNodeId':_0x29a9d5['nodeId'],'scopeId':_0x29a9d5[_0x30aab6(0x435)],'rootStartBounds':{'left':_0x29a9d5[_0x30aab6(0x1ac)],'top':_0x29a9d5[_0x30aab6(0x258)]},'liveRootBounds':{'left':_0x2237cb[_0x30aab6(0x1ac)],'top':_0x2237cb['top']}});if(!_0x3e2cd9)return;let _0x14ef56=this[_0x30aab6(0x2d9)][_0x30aab6(0x37b)],_0x1a0540=_0x14ef56,_0x4afe8c=!0x1;_0x3e2cd9[_0x30aab6(0x23f)][_0x30aab6(0x205)](_0x171719=>{const _0x26c7a8=_0x30aab6;var _0x92d0db;let _0x2886d3=_0x1b247d(_0x29a9d5[_0x26c7a8(0x499)],_0x171719[_0x26c7a8(0x421)]),_0x13fcee=((_0x92d0db=_0x1a0540['getObjectIncludeInGroup'])==null?void 0x0:_0x92d0db[_0x26c7a8(0x248)](_0x1a0540,_0x2886d3))??_0x14ef56[_0x26c7a8(0x1e8)](_0x2886d3);if(_0x13fcee){if(_0x171719[_0x26c7a8(0x3e4)]===_0x26c7a8(0x3aa)&&typeof _0x13fcee[_0x26c7a8(0x2ed)]=='function'){_0x13fcee[_0x26c7a8(0x2ed)](_0x171719['element'],_0x3e2cd9['elementData']),_0x4afe8c=!0x0;return;}_0x171719['kind']===_0x26c7a8(0x4b6)&&(_0x13fcee['transformByState'](_0x171719[_0x26c7a8(0x4b6)]),typeof _0x13fcee[_0x26c7a8(0x420)]=='function'?_0x13fcee[_0x26c7a8(0x420)](!0x0):_0x13fcee[_0x26c7a8(0x48e)](!0x0),_0x4afe8c=!0x0);}}),_0x4afe8c&&_0x14ef56['makeDirty'](!0x0);}['_syncRootReparentPreview'](_0x5cb8d8){const _0x41a793=_0x2d31a4;var _0x2fdb23,_0x4be9e5;let _0x44a026=this[_0x41a793(0x32b)];if(!_0x44a026||_0x44a026['kind']!==_0x41a793(0x47d))return;let _0x39352f=_0x5cb8d8==null?void 0x0:_0x5cb8d8[_0x41a793(0x267)](_0x1b247d(_0x44a026['unitId'],_0x44a026[_0x41a793(0x26d)]));if(!_0x39352f||!Number[_0x41a793(0x31d)](_0x39352f['left'])||!Number[_0x41a793(0x31d)](_0x39352f[_0x41a793(0x258)])){this[_0x41a793(0x3fa)]();return;}let _0x1cf15e=this['_getLiveObjectBounds'](_0x39352f,_0x44a026),_0x221943=this[_0x41a793(0x32f)](_0x44a026[_0x41a793(0x43e)],_0x44a026[_0x41a793(0x26d)],_0x1cf15e),_0x320815=Sn(_0x44a026[_0x41a793(0x43e)],_0x44a026['nodeId'],{'boundsByElementId':_0x221943,'allowRootReparent':!0x0});if(_0x320815['kind']!=='reparent'){this[_0x41a793(0x3fa)]();return;}let _0x47d1a1=this[_0x41a793(0x4c3)]();_0x47d1a1&&(_0x47d1a1[_0x41a793(0x2a6)]({'ghostBounds':_0x1cf15e,'sourceBounds':null,'parentBounds':_0x221943[_0x320815[_0x41a793(0x3dc)]],'side':_0x320815['side'],'textStyle':void 0x0,'renderGhostNode':!0x1}),this['_renderContext'][_0x41a793(0x37b)]['makeDirty'](!0x0),(_0x2fdb23=(_0x4be9e5=this[_0x41a793(0x2d9)]['scene'])[_0x41a793(0x380)])==null||_0x2fdb23['call'](_0x4be9e5));}[_0x2d31a4(0x31b)](_0x4dad63){const _0x33f205=_0x2d31a4;var _0x42fc17,_0x9d2cde;let _0x3b2d8b=this[_0x33f205(0x32b)];if(!_0x3b2d8b||_0x3b2d8b[_0x33f205(0x3e4)]!=='child')return;let _0x1e14f4=_0x4dad63==null?void 0x0:_0x4dad63[_0x33f205(0x267)](_0x1b247d(_0x3b2d8b[_0x33f205(0x499)],_0x3b2d8b[_0x33f205(0x26d)]));if(!_0x1e14f4){this[_0x33f205(0x3fa)]();return;}let _0x514497=this[_0x33f205(0x429)](_0x1e14f4,_0x3b2d8b);if(!this['_isChildDragPastActivationThreshold'](_0x3b2d8b,_0x514497)){this[_0x33f205(0x1df)]=null,this[_0x33f205(0x3fa)](),this[_0x33f205(0x3f0)](_0x1e14f4,_0x3b2d8b),this[_0x33f205(0x2d9)]['scene'][_0x33f205(0x48e)](!0x0);return;}this['_childDragActivated']||this[_0x33f205(0x4cd)](),this['_childDragActivated']=!0x0;let _0x54b772=this[_0x33f205(0x32f)](_0x3b2d8b[_0x33f205(0x43e)],_0x3b2d8b['nodeId'],_0x514497),_0x1dd5e1=Sn(_0x3b2d8b[_0x33f205(0x43e)],_0x3b2d8b['nodeId'],{'boundsByElementId':_0x54b772,'detachWhenNoSnap':!0x0});this[_0x33f205(0x1df)]=_0x1dd5e1,this[_0x33f205(0x2a5)](_0x514497,_0x1dd5e1,_0x54b772),this['_restoreObjectToDragStart'](_0x1e14f4,_0x3b2d8b),this[_0x33f205(0x2d9)][_0x33f205(0x37b)][_0x33f205(0x48e)](!0x0),(_0x42fc17=(_0x9d2cde=this[_0x33f205(0x2d9)][_0x33f205(0x37b)])[_0x33f205(0x380)])==null||_0x42fc17[_0x33f205(0x248)](_0x9d2cde);}[_0x2d31a4(0x3c4)](_0x32754b){const _0x2f308c=_0x2d31a4;var _0x4c7420;let _0x4cadcf=this['_elementStateService'][_0x2f308c(0x276)](),_0x4625da=_0x4cadcf[_0x2f308c(0x233)],_0x3b7866=_0x4cadcf['focusedId']??_0x4cadcf[_0x2f308c(0x3f9)][0x0];if(_0x4625da&&((_0x4c7420=this[_0x2f308c(0x32b)])==null?void 0x0:_0x4c7420[_0x2f308c(0x3e4)])===_0x2f308c(0x481)){this['_removeDragPreviewObject'](),this['_applyScopeTranslation'](_0x4625da[_0x2f308c(0x499)],_0x4625da['subUnitId'],_0x32754b);return;}if(!_0x4625da||!_0x3b7866||_0x4cadcf[_0x2f308c(0x3f9)][_0x2f308c(0x1ab)]!==0x1){this[_0x2f308c(0x3fa)](),this['_dragStart']=null;return;}this[_0x2f308c(0x3fa)]();let _0x40821e=this[_0x2f308c(0x235)][_0x2f308c(0x397)](_0x4625da[_0x2f308c(0x499)],_0x4625da['subUnitId']);if(this[_0x2f308c(0x321)](_0x4625da[_0x2f308c(0x499)],_0x4625da[_0x2f308c(0x452)],_0x3b7866,_0x40821e,_0x32754b))return;let _0x4e9d3d=this[_0x2f308c(0x2ff)](_0x4625da[_0x2f308c(0x499)],_0x4625da[_0x2f308c(0x452)],_0x3b7866,_0x40821e,_0x32754b);this[_0x2f308c(0x2b7)](_0x4625da[_0x2f308c(0x499)],_0x4625da[_0x2f308c(0x452)],_0x3b7866,_0x40821e,_0x4e9d3d);}[_0x2d31a4(0x456)](_0xc351f6,_0x29c96a,_0x45e7c0){const _0x5db7e=_0x2d31a4;let _0x2a2f44=this[_0x5db7e(0x32b)];if(this['_dragStart']=null,!_0x2a2f44||_0x2a2f44[_0x5db7e(0x3e4)]!==_0x5db7e(0x481)||_0x2a2f44[_0x5db7e(0x499)]!==_0xc351f6||_0x2a2f44[_0x5db7e(0x452)]!==_0x29c96a)return;let _0x3433d1=_0x45e7c0==null?void 0x0:_0x45e7c0[_0x5db7e(0x267)](_0x1b247d(_0xc351f6,_0x2a2f44[_0x5db7e(0x26d)])),_0x22e33e=_0x3433d1&&Number[_0x5db7e(0x31d)](_0x3433d1[_0x5db7e(0x1ac)])?_0x3433d1[_0x5db7e(0x1ac)]??_0x2a2f44[_0x5db7e(0x1ac)]:_0x2a2f44[_0x5db7e(0x1ac)],_0x306c50=_0x3433d1&&Number['isFinite'](_0x3433d1[_0x5db7e(0x258)])?_0x3433d1[_0x5db7e(0x258)]??_0x2a2f44['top']:_0x2a2f44[_0x5db7e(0x258)],_0x207f92=_0x22e33e-_0x2a2f44['left'],_0x5d6234=_0x306c50-_0x2a2f44[_0x5db7e(0x258)];(_0x207f92!==0x0||_0x5d6234!==0x0)&&this[_0x5db7e(0x2a3)]['executeCommand'](_0x2c4dd1['id'],{'unitId':_0xc351f6,'subUnitId':_0x29c96a,'scopeId':_0x2a2f44[_0x5db7e(0x435)],'deltaX':_0x207f92,'deltaY':_0x5d6234});}[_0x2d31a4(0x2b7)](_0x1cedcf,_0x52d083,_0x56ab47,_0xd0529d,_0x394fc2){const _0x5ca625=_0x2d31a4;if(_0x394fc2['kind']===_0x5ca625(0x3a3)){var _0x80b854,_0x5cbeb7;let _0x5debb2=_0xd8e37e((_0x80b854=_0xd0529d[_0x56ab47])==null?void 0x0:_0x80b854[_0x5ca625(0x4b4)]),_0x4c6d62=_0xd8e37e((_0x5cbeb7=_0xd0529d[_0x394fc2[_0x5ca625(0x3dc)]])==null?void 0x0:_0x5cbeb7['element']);this['_executeAndLayout'](_0x48a61f['id'],{'unitId':_0x1cedcf,'subUnitId':_0x52d083,'nodeId':_0x56ab47,'newParentNodeId':_0x394fc2['newParentNodeId'],'side':_0x394fc2[_0x5ca625(0x384)],..._0x394fc2[_0x5ca625(0x434)]?{'referenceNodeId':_0x394fc2[_0x5ca625(0x434)]}:null,..._0x394fc2[_0x5ca625(0x256)]?{'placement':_0x394fc2[_0x5ca625(0x256)]}:null},[_0x5debb2==null?void 0x0:_0x5debb2[_0x5ca625(0x2f8)],_0x4c6d62==null?void 0x0:_0x4c6d62[_0x5ca625(0x2f8)]],_0x56ab47);return;}if(_0x394fc2['kind']==='detach'){var _0xa3b17e;let _0x4c36e0=_0xd8e37e((_0xa3b17e=_0xd0529d[_0x56ab47])==null?void 0x0:_0xa3b17e[_0x5ca625(0x4b4)]);this[_0x5ca625(0x3d7)](_0x3b4729['id'],{'unitId':_0x1cedcf,'subUnitId':_0x52d083,'nodeId':_0x56ab47,...Number[_0x5ca625(0x31d)](_0x394fc2[_0x5ca625(0x1ac)])?{'left':_0x394fc2[_0x5ca625(0x1ac)]}:null,...Number[_0x5ca625(0x31d)](_0x394fc2[_0x5ca625(0x258)])?{'top':_0x394fc2['top']}:null},[_0x4c36e0==null?void 0x0:_0x4c36e0['structureScopeId']],_0x56ab47);}}[_0x2d31a4(0x321)](_0x210ec6,_0x286cbb,_0x5207d5,_0x5bd57d,_0x2962e7){const _0x4abf5a=_0x2d31a4;let _0x41e5d7=this['_dragStart'];if((_0x41e5d7==null?void 0x0:_0x41e5d7['kind'])===_0x4abf5a(0x47d)&&(this[_0x4abf5a(0x32b)]=null),!_0x41e5d7||_0x41e5d7[_0x4abf5a(0x499)]!==_0x210ec6||_0x41e5d7[_0x4abf5a(0x452)]!==_0x286cbb||_0x41e5d7[_0x4abf5a(0x26d)]!==_0x5207d5)return!0x1;let _0x5e2d8f=_0x5bd57d[_0x5207d5],_0xb26172=_0xd8e37e(_0x5e2d8f==null?void 0x0:_0x5e2d8f['element']);if(!_0x5e2d8f||!_0xb26172||_0xb26172[_0x4abf5a(0x3e6)]!==null)return!0x1;let _0x26647f=_0x2962e7==null?void 0x0:_0x2962e7[_0x4abf5a(0x267)](_0x1b247d(_0x210ec6,_0x5207d5)),_0x305c06=_0x59b50d(_0x5bd57d,_0x5207d5),_0x406951=Number['isFinite'](_0x26647f==null?void 0x0:_0x26647f[_0x4abf5a(0x1ac)])?_0x26647f[_0x4abf5a(0x1ac)]:(_0x305c06==null?void 0x0:_0x305c06[_0x4abf5a(0x1ac)])??_0x5e2d8f['element'][_0x4abf5a(0x357)][_0x4abf5a(0x1ac)]??0x0,_0x129dbb=Number[_0x4abf5a(0x31d)](_0x26647f==null?void 0x0:_0x26647f['top'])?_0x26647f[_0x4abf5a(0x258)]:(_0x305c06==null?void 0x0:_0x305c06[_0x4abf5a(0x258)])??_0x5e2d8f['element']['transform'][_0x4abf5a(0x258)]??0x0,_0x519508=_0x406951-_0x41e5d7[_0x4abf5a(0x1ac)],_0x2ac889=_0x129dbb-_0x41e5d7[_0x4abf5a(0x258)];if(_0x519508===0x0&&_0x2ac889===0x0)return!0x0;let _0x5b7e5b={'left':_0x406951,'top':_0x129dbb,'width':Number[_0x4abf5a(0x31d)](_0x26647f==null?void 0x0:_0x26647f[_0x4abf5a(0x35d)])?_0x26647f['width']:_0x41e5d7['width'],'height':Number['isFinite'](_0x26647f==null?void 0x0:_0x26647f[_0x4abf5a(0x41e)])?_0x26647f[_0x4abf5a(0x41e)]:_0x41e5d7[_0x4abf5a(0x41e)]},_0x344d5b=Sn(_0x5bd57d,_0x5207d5,{'boundsByElementId':this[_0x4abf5a(0x32f)](_0x5bd57d,_0x5207d5,_0x5b7e5b),'allowRootReparent':!0x0});if(_0x344d5b[_0x4abf5a(0x3e4)]===_0x4abf5a(0x3a3))return this['_executeChildDragAction'](_0x210ec6,_0x286cbb,_0x5207d5,_0x5bd57d,_0x344d5b),!0x0;let _0x138455=!!_0x305c06&&Math[_0x4abf5a(0x2fa)](_0x305c06['left']-_0x406951)<0.001&&Math[_0x4abf5a(0x2fa)](_0x305c06[_0x4abf5a(0x258)]-_0x129dbb)<0.001;return this[_0x4abf5a(0x2a3)][_0x4abf5a(0x38b)](_0x2c4dd1['id'],{'unitId':_0x210ec6,'subUnitId':_0x286cbb,'scopeId':_0x41e5d7['scopeId'],'deltaX':_0x519508,'deltaY':_0x2ac889,..._0x138455?{'excludeElementIds':[_0x5207d5],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x2d31a4(0x2ff)](_0x325469,_0x3c9ae1,_0x552bf7,_0x12bc02,_0x2db040){const _0x12f2aa=_0x2d31a4;let _0x25694e=this[_0x12f2aa(0x32b)];if(!_0x25694e||_0x25694e[_0x12f2aa(0x3e4)]!==_0x12f2aa(0x386)||_0x25694e[_0x12f2aa(0x499)]!==_0x325469||_0x25694e[_0x12f2aa(0x452)]!==_0x3c9ae1||_0x25694e[_0x12f2aa(0x26d)]!==_0x552bf7)return{'kind':_0x12f2aa(0x314)};this['_dragStart']=null;let _0x387aa6=_0x2db040==null?void 0x0:_0x2db040[_0x12f2aa(0x267)](_0x1b247d(_0x325469,_0x552bf7));if(!this['_childDragActivated'])return _0x387aa6&&this[_0x12f2aa(0x3f0)](_0x387aa6,_0x25694e),this[_0x12f2aa(0x1df)]=null,{'kind':_0x12f2aa(0x314)};if(!_0x387aa6){let _0x39db85=this[_0x12f2aa(0x1df)]??{'kind':'none'};return this[_0x12f2aa(0x1df)]=null,_0x39db85;}let _0x1d5766=this[_0x12f2aa(0x429)](_0x387aa6,_0x25694e);if(this[_0x12f2aa(0x3f0)](_0x387aa6,_0x25694e),!this[_0x12f2aa(0x37a)](_0x25694e,_0x1d5766))return this[_0x12f2aa(0x1df)]=null,{'kind':_0x12f2aa(0x314)};let _0xe92c81=Sn(_0x12bc02,_0x552bf7,{'boundsByElementId':this[_0x12f2aa(0x32f)](_0x12bc02,_0x552bf7,_0x1d5766),'detachWhenNoSnap':!0x0});return this['_lastChildDragAction']=null,_0xe92c81;}[_0x2d31a4(0x37a)](_0x20a97c,_0x388c78){const _0x3c94f8=_0x2d31a4;let _0x462758=(_0x388c78[_0x3c94f8(0x1ac)]??_0x20a97c['left'])-_0x20a97c[_0x3c94f8(0x1ac)],_0x2ab5c3=(_0x388c78[_0x3c94f8(0x258)]??_0x20a97c[_0x3c94f8(0x258)])-_0x20a97c['top'];return Math[_0x3c94f8(0x436)](_0x462758,_0x2ab5c3)>=0x12;}[_0x2d31a4(0x3da)](_0xaf7f71,_0x18e6f2){const _0x2b3dc7=_0x2d31a4;let _0x469b3e=this[_0x2b3dc7(0x3b3)](_0xaf7f71),_0x1d98d7=this[_0x2b3dc7(0x39f)]();return{'left':_0x18e6f2[_0x2b3dc7(0x1ac)]+(_0x469b3e['x']-_0x18e6f2['pointerStartX'])/_0x1d98d7,'top':_0x18e6f2[_0x2b3dc7(0x258)]+(_0x469b3e['y']-_0x18e6f2[_0x2b3dc7(0x1d9)])/_0x1d98d7,'width':_0x18e6f2[_0x2b3dc7(0x35d)],'height':_0x18e6f2['height']};}[_0x2d31a4(0x323)](_0x528b48){const _0x18b3a7=_0x2d31a4;let _0x408c27=this[_0x18b3a7(0x476)][_0x18b3a7(0x41b)](),_0x1a5931=(_0x408c27==null?void 0x0:_0x408c27[_0x18b3a7(0x42b)])??{'x':0x0,'y':0x0},_0x147211=this['_getZoomRatio']();return{'x':Math['round'](((_0x528b48[_0x18b3a7(0x4aa)]??0x0)-_0x1a5931['x'])/_0x147211),'y':Math[_0x18b3a7(0x43c)](((_0x528b48[_0x18b3a7(0x492)]??0x0)-_0x1a5931['y'])/_0x147211)};}['_getPointerScreenPoint'](_0x54bb2a){const _0x121523=_0x2d31a4;return{'x':Number[_0x121523(0x31d)](_0x54bb2a[_0x121523(0x2b2)])?_0x54bb2a['clientX']:_0x54bb2a[_0x121523(0x4aa)]??0x0,'y':Number[_0x121523(0x31d)](_0x54bb2a[_0x121523(0x42c)])?_0x54bb2a[_0x121523(0x42c)]:_0x54bb2a[_0x121523(0x492)]??0x0};}['_getZoomRatio'](){const _0x203295=_0x2d31a4;let _0x572b7d=this[_0x203295(0x476)][_0x203295(0x41b)]()[_0x203295(0x439)];return Number[_0x203295(0x31d)](_0x572b7d)&&(_0x572b7d??0x0)>0x0?_0x572b7d:0x1;}[_0x2d31a4(0x1ed)](_0x35757e,_0x49e800){const _0x4e16d3=_0x2d31a4;return _0x35757e['x']>=_0x49e800[_0x4e16d3(0x1ac)]&&_0x35757e['x']<=_0x49e800[_0x4e16d3(0x1ac)]+_0x49e800[_0x4e16d3(0x35d)]&&_0x35757e['y']>=_0x49e800['top']&&_0x35757e['y']<=_0x49e800[_0x4e16d3(0x258)]+_0x49e800[_0x4e16d3(0x41e)];}['_consumePointerEvent'](_0x96a396,_0x301bc2){const _0x1a830e=_0x2d31a4;var _0x154c46,_0x3307d9;_0x301bc2==null||_0x301bc2[_0x1a830e(0x1c4)](),_0x301bc2&&(_0x301bc2['skipNextObservers']=!0x0),(_0x154c46=_0x96a396[_0x1a830e(0x2f2)])==null||_0x154c46[_0x1a830e(0x248)](_0x96a396),(_0x3307d9=_0x96a396[_0x1a830e(0x1c4)])==null||_0x3307d9['call'](_0x96a396);}[_0x2d31a4(0x4cd)](){const _0x30bd9a=_0x2d31a4;var _0x268599,_0x2e3ef2;this[_0x30bd9a(0x2bf)]||=((_0x268599=(_0x2e3ef2=this['_elementStateService'])[_0x30bd9a(0x300)])==null||_0x268599['call'](_0x2e3ef2),!0x0);}['_getLiveObjectBounds'](_0x5b3c2f,_0x376cff){const _0x5ba966=_0x2d31a4;return{'left':Number[_0x5ba966(0x31d)](_0x5b3c2f[_0x5ba966(0x1ac)])?_0x5b3c2f[_0x5ba966(0x1ac)]:_0x376cff[_0x5ba966(0x1ac)],'top':Number['isFinite'](_0x5b3c2f[_0x5ba966(0x258)])?_0x5b3c2f['top']:_0x376cff[_0x5ba966(0x258)],'width':Number[_0x5ba966(0x31d)](_0x5b3c2f[_0x5ba966(0x35d)])?_0x5b3c2f[_0x5ba966(0x35d)]:_0x376cff[_0x5ba966(0x35d)],'height':Number[_0x5ba966(0x31d)](_0x5b3c2f[_0x5ba966(0x41e)])?_0x5b3c2f[_0x5ba966(0x41e)]:_0x376cff['height']};}[_0x2d31a4(0x3f0)](_0x3d0810,_0x53145f){const _0x5c7647=_0x2d31a4;typeof _0x3d0810['transformByState']=='function'&&_0x3d0810[_0x5c7647(0x1fd)]({'left':_0x53145f[_0x5c7647(0x1ac)],'top':_0x53145f[_0x5c7647(0x258)],'width':_0x53145f[_0x5c7647(0x35d)],'height':_0x53145f[_0x5c7647(0x41e)]}),typeof _0x3d0810['makeDirtyNoDebounce']==_0x5c7647(0x43d)?_0x3d0810[_0x5c7647(0x420)](!0x0):typeof _0x3d0810[_0x5c7647(0x48e)]==_0x5c7647(0x43d)&&_0x3d0810[_0x5c7647(0x48e)](!0x0);}[_0x2d31a4(0x32f)](_0x2c19fd,_0xc46e81,_0x1ad9de){const _0xde62a6=_0x2d31a4;return Object['fromEntries'](Object[_0xde62a6(0x1d5)](_0x2c19fd)[_0xde62a6(0x461)](_0x2a5ea6=>_0x2a5ea6===_0xc46e81?[_0x2a5ea6,_0x1ad9de]:[_0x2a5ea6,_0x59b50d(_0x2c19fd,_0x2a5ea6)??_0x2c19fd[_0x2a5ea6]['element'][_0xde62a6(0x357)]]));}['_ensureDragPreviewObject'](){const _0x5b6417=_0x2d31a4;if(this['_dragPreviewObject'])return this['_dragPreviewObject'];let _0x21f787=this['_renderContext']['scene'];return typeof _0x21f787[_0x5b6417(0x226)]==_0x5b6417(0x43d)?(this[_0x5b6417(0x346)]=new mn(cn),_0x21f787[_0x5b6417(0x226)](this['_dragPreviewObject'],ln),this[_0x5b6417(0x346)]):null;}[_0x2d31a4(0x2a5)](_0x414cb9,_0x4825e2,_0x548d37){const _0x1c6407=_0x2d31a4;let _0x356d24=this[_0x1c6407(0x4c3)]();_0x356d24&&_0x356d24[_0x1c6407(0x2a6)]({'ghostBounds':_0x414cb9,'sourceBounds':this[_0x1c6407(0x39e)](),'parentBounds':_0x4825e2[_0x1c6407(0x3e4)]===_0x1c6407(0x3a3)?_0x548d37[_0x4825e2[_0x1c6407(0x3dc)]]:null,'side':_0x4825e2[_0x1c6407(0x3e4)]==='reparent'?_0x4825e2[_0x1c6407(0x384)]:_0x1c6407(0x234),'textStyle':this[_0x1c6407(0x389)](),'renderGhostNode':!0x0});}[_0x2d31a4(0x39e)](){const _0x49da96=_0x2d31a4;let _0x228182=this[_0x49da96(0x3c5)]??this[_0x49da96(0x32b)];return _0x228182?{'left':_0x228182[_0x49da96(0x1ac)],'top':_0x228182[_0x49da96(0x258)],'width':_0x228182[_0x49da96(0x35d)],'height':_0x228182[_0x49da96(0x41e)]}:null;}[_0x2d31a4(0x389)](){const _0x3d0228=_0x2d31a4;var _0x41649e,_0x1b4d25;let _0x4ae903=this[_0x3d0228(0x3c5)]??this[_0x3d0228(0x32b)],_0x13b6ec=_0x4ae903==null||(_0x41649e=_0x4ae903['elementData'][_0x4ae903[_0x3d0228(0x26d)]])==null?void 0x0:_0x41649e[_0x3d0228(0x4b4)],_0x3c0445=_0x13b6ec==null||(_0x1b4d25=_0x13b6ec[_0x3d0228(0x26a)])==null?void 0x0:_0x1b4d25[_0x3d0228(0x29d)];if(_0x3c0445)return{'text':typeof _0x3c0445[_0x3d0228(0x2be)]=='string'?_0x3c0445[_0x3d0228(0x2be)]:void 0x0,'fontSize':Number[_0x3d0228(0x31d)](_0x3c0445['fontSize'])?_0x3c0445['fontSize']:void 0x0,'color':typeof _0x3c0445[_0x3d0228(0x445)]=='string'?_0x3c0445[_0x3d0228(0x445)]:void 0x0,'horizontalAlign':Number[_0x3d0228(0x31d)](_0x3c0445['horizontalAlign'])?_0x3c0445['horizontalAlign']:void 0x0};}[_0x2d31a4(0x3fa)](){const _0x229026=_0x2d31a4;var _0x3dedf9,_0x46747a,_0x3aef35;if(!this[_0x229026(0x346)])return;let _0x373450=this[_0x229026(0x2d9)]['scene'];(_0x3dedf9=_0x373450['removeObjects'])==null||_0x3dedf9[_0x229026(0x248)](_0x373450,[this[_0x229026(0x346)]]),this['_dragPreviewObject']=null,(_0x46747a=(_0x3aef35=this[_0x229026(0x2d9)][_0x229026(0x37b)])['makeDirty'])==null||_0x46747a[_0x229026(0x248)](_0x3aef35,!0x0);}[_0x2d31a4(0x3d7)](_0x137d96,_0x1d8e67,_0x37d670,_0x531f57){const _0x2cb8d9=_0x2d31a4;let _0x124d32=[...new Set(_0x37d670[_0x2cb8d9(0x2c5)](_0x1761ad=>!!_0x1761ad))],_0x499484=typeof _0x1d8e67[_0x2cb8d9(0x499)]==_0x2cb8d9(0x3dd)?_0x1d8e67[_0x2cb8d9(0x499)]:this[_0x2cb8d9(0x2d9)]['unitId'],_0x2b6d24=this[_0x2cb8d9(0x306)][_0x2cb8d9(0x348)](_0x499484),_0xed92e9=_0x2b6d24(()=>this[_0x2cb8d9(0x2a3)]['executeCommand'](_0x137d96,_0x1d8e67));Promise[_0x2cb8d9(0x48a)](_0xed92e9)[_0x2cb8d9(0x1d7)](_0x5d6805=>{const _0x370a7d=_0x2cb8d9;var _0x828a0b,_0x797b3a,_0xe2f9b5,_0x33a124;if(_0x5d6805){if(_0x124d32[_0x370a7d(0x205)](_0x11f784=>{const _0x57e124=_0x370a7d;_0x2b6d24(()=>this['_commandService'][_0x57e124(0x38b)](_0x59d4d9['id'],{'unitId':_0x1d8e67[_0x57e124(0x499)],'subUnitId':_0x1d8e67[_0x57e124(0x452)],'scopeId':_0x11f784}));}),_0x531f57&&typeof _0x1d8e67['unitId']=='string'&&typeof _0x1d8e67[_0x370a7d(0x452)]==_0x370a7d(0x3dd)){var _0x18ec8e,_0x4b5cad;(_0x18ec8e=(_0x4b5cad=this[_0x370a7d(0x318)])[_0x370a7d(0x2b0)])==null||_0x18ec8e[_0x370a7d(0x248)](_0x4b5cad,{'unitId':_0x1d8e67[_0x370a7d(0x499)],'subUnitId':_0x1d8e67['subUnitId']},[_0x531f57],_0x531f57);}(_0x828a0b=(_0x797b3a=this[_0x370a7d(0x2d9)][_0x370a7d(0x37b)])['makeDirty'])==null||_0x828a0b[_0x370a7d(0x248)](_0x797b3a,!0x0),(_0xe2f9b5=(_0x33a124=this[_0x370a7d(0x2d9)][_0x370a7d(0x37b)])['requestRender'])==null||_0xe2f9b5[_0x370a7d(0x248)](_0x33a124);}});}};En=J([q(0x1,_0x4a13c4(_0x495947)),q(0x2,_0x4a13c4(_0x452a90)),q(0x3,_0x2a0a40),q(0x4,_0x18a088),q(0x5,_0x28c364),q(0x6,_0x4a13c4(_0x352e0c))],En);let Dn=class extends _0x13ec99{constructor(_0x1dce9d,_0x69b81e,_0x45bf60,_0x150b74,_0x4d515b,_0x22b170,_0x2a6e56,_0x3329e6,_0x3fc270){const _0x17d678=_0x2d31a4;super(),this[_0x17d678(0x329)]=_0x1dce9d,this[_0x17d678(0x2aa)]=_0x69b81e,this[_0x17d678(0x1f4)]=_0x45bf60,this['elementStateService']=_0x150b74,this[_0x17d678(0x1e6)]=_0x4d515b,this['clipboardService']=_0x22b170,this[_0x17d678(0x1af)]=_0x2a6e56,this[_0x17d678(0x4c7)]=_0x3329e6,this[_0x17d678(0x406)]=_0x3fc270;}};Dn=J([q(0x1,_0x2a0a40),q(0x2,_0x495947),q(0x3,_0x452a90),q(0x4,_0x18a088),q(0x5,_0x44df25),q(0x6,_0x807b05),q(0x7,_0x4a13c4(_0x3ff2da)),q(0x8,_0x4a13c4(_0x16b84e))],Dn);const On='board.mind-map.description-dialog',kn='board-mind-map-description-dialog';function An(_0x230e4d){const _0x4f107c=_0x2d31a4;let {unitId:_0x5ebf97,subUnitId:_0x456829,nodeId:_0x50ece6,initialDescription:_0x40437d=''}=_0x230e4d,_0x4af1f9=_0x1b73d0(_0x2a0a40),_0x51c2b0=_0x1b73d0(_0x807b05),_0x17d07c=_0x1b73d0(_0x3ff2da),[_0x1034b1,_0xfd4aa9]=_0x45ab05(_0x40437d),_0x1c4290=()=>_0x51c2b0[_0x4f107c(0x36c)](kn);return _0xf895cc(_0x4f107c(0x2de),{'className':_0x4f107c(0x3e1),'data-board-mind-map-description-dialog':_0x4f107c(0x30a),'children':[_0xf895cc(_0x4f107c(0x2e4),{'className':_0x4f107c(0x413),'children':[_0x1d0d1f(_0x4f107c(0x377),{'className':_0x4f107c(0x3cd),'children':_0x17d07c['t'](_0x4f107c(0x37f))}),_0x1d0d1f(_0x3b1bc9,{'autoFocus':!0x0,'className':_0x4f107c(0x2cc),'placeholder':_0x17d07c['t'](_0x4f107c(0x493)),'value':_0x1034b1,'onValueChange':_0xfd4aa9})]}),_0xf895cc(_0x4f107c(0x2de),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[_0x1d0d1f(_0x52c5ff,{'size':_0x4f107c(0x43a),'variant':'default','onClick':_0x1c4290,'children':_0x17d07c['t'](_0x4f107c(0x3e5))}),_0x1d0d1f(_0x52c5ff,{'size':_0x4f107c(0x43a),'variant':_0x4f107c(0x3af),'onClick':()=>{const _0x4b0e99=_0x4f107c;_0x4af1f9[_0x4b0e99(0x38b)](_0x3a4e24['id'],{'unitId':_0x5ebf97,'subUnitId':_0x456829,'nodeId':_0x50ece6,'foreignAttributes':{'_note':_0x1034b1[_0x4b0e99(0x1c2)]()?_0x1034b1:null}}),_0x1c4290();},'children':_0x17d07c['t']('boards-mind-ui.saveDescription')})]})]});}const jn='board.operation.mind-map.keyboard-shortcut',Mn=_0x2d31a4(0x4c2),Nn=_0x2d31a4(0x3ea),Pn={'copy':_0x1a695f[_0x2d31a4(0x206)],'paste':_0x1a695f[_0x2d31a4(0x44f)],'paste-as-new':_0x1a695f[_0x2d31a4(0x44f)],'add-child':_0x1a695f[_0x2d31a4(0x1e4)],'add-sibling-or-child':_0x1a695f[_0x2d31a4(0x449)],'promote':_0x1a695f['addParentNode'],'toggle-collapse':_0x1a695f[_0x2d31a4(0x4c1)],'collapse-all':_0x1a695f[_0x2d31a4(0x360)],'edit-text':_0x1a695f['editCurrentNode'],'open-description':_0x1a695f['addDescription'],'delete':_0x28bc7e[_0x2d31a4(0x47c)],'arrow-left':_0x28bc7e['ARROW_LEFT'],'arrow-right':_0x28bc7e[_0x2d31a4(0x3a0)],'arrow-up':_0x28bc7e['ARROW_UP'],'arrow-down':_0x28bc7e[_0x2d31a4(0x401)]},Fn={'delete':[_0x28bc7e[_0x2d31a4(0x36b)]]};function In(_0x5a87d5){return[Pn[_0x5a87d5],...Fn[_0x5a87d5]??[]];}let Ln=class extends _0x9932d8{constructor(_0x5efc5c,_0x2faede,_0x5d842f,_0x12edb9){const _0xda8f46=_0x2d31a4;super(),this['_mindMapClipboardService']=_0x5efc5c,this['_commandService']=_0x2faede,this[_0xda8f46(0x322)]=_0x5d842f,this[_0xda8f46(0x306)]=_0x12edb9,this[_0xda8f46(0x430)]();}[_0x2d31a4(0x430)](){const _0x310680=_0x2d31a4;this[_0x310680(0x42f)](this[_0x310680(0x2a3)][_0x310680(0x4bd)](this[_0x310680(0x38c)]())),this[_0x310680(0x1b1)]()[_0x310680(0x205)](_0x21fb6d=>{const _0x2e012d=_0x310680;this[_0x2e012d(0x42f)](this[_0x2e012d(0x322)][_0x2e012d(0x3fb)](_0x21fb6d));});}[_0x2d31a4(0x38c)](){const _0x3daea9=_0x2d31a4;return{'id':jn,'type':_0x1162ea[_0x3daea9(0x224)],'handler':(_0x878df3,_0x3beb3d,_0x173d20)=>{const _0x1bbd2e=_0x3daea9;let _0x15f9be=Rn(_0x878df3,_0x173d20);return _0x15f9be?this[_0x1bbd2e(0x25e)](_0x15f9be,_0x3beb3d==null?void 0x0:_0x3beb3d[_0x1bbd2e(0x49a)]):!0x1;}};}[_0x2d31a4(0x1b1)](){const _0x57e409=_0x2d31a4;let _0x3d205d=(_0x324f30,_0x3cb866)=>({'id':jn,'binding':_0x324f30,'priority':0xa0,'preconditions':_0x1365cb=>_0x3745cb(_0x1365cb)&&!!_0x1365cb[_0x57e409(0x2af)](_0x57e409(0x4c2)),'staticParameters':{'action':_0x3cb866}}),_0x14e928=_0x2b95cf=>In(_0x2b95cf)[_0x57e409(0x461)](_0x486a7f=>_0x3d205d(_0x486a7f,_0x2b95cf));return[..._0x14e928(_0x57e409(0x206)),{'id':jn,'binding':Pn[_0x57e409(0x44f)],'priority':0xa0,'preconditions':_0x1db257=>_0x3745cb(_0x1db257)&&!!this[_0x57e409(0x1fb)][_0x57e409(0x210)]()&&!!_0x1db257[_0x57e409(0x2af)](_0x57e409(0x4c2)),'staticParameters':{'action':_0x57e409(0x44f)}},{'id':jn,'binding':Pn[_0x57e409(0x364)],'priority':0x96,'preconditions':_0x29c1e3=>_0x3745cb(_0x29c1e3)&&!!this[_0x57e409(0x1fb)][_0x57e409(0x210)]()&&!!_0x29c1e3[_0x57e409(0x2af)](_0x57e409(0x3ea)),'staticParameters':{'action':_0x57e409(0x364)}},..._0x14e928(_0x57e409(0x1dd)),..._0x14e928(_0x57e409(0x466)),..._0x14e928('promote'),..._0x14e928(_0x57e409(0x3a8)),..._0x14e928(_0x57e409(0x1d2)),..._0x14e928(_0x57e409(0x4bc)),..._0x14e928(_0x57e409(0x414)),..._0x14e928(_0x57e409(0x27f)),..._0x14e928(_0x57e409(0x486)),..._0x14e928(_0x57e409(0x4be)),..._0x14e928(_0x57e409(0x37d)),..._0x14e928('arrow-down')];}[_0x2d31a4(0x25e)](_0x49a8e2,_0x49c4f6){const _0xaadeea=_0x2d31a4;return _0x49a8e2[_0xaadeea(0x1e6)][_0xaadeea(0x41b)]()[_0xaadeea(0x462)]===_0xaadeea(0x29a)&&_0x49c4f6!==_0xaadeea(0x206)?!0x1:_0x49c4f6===_0xaadeea(0x206)?this[_0xaadeea(0x350)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x44f)?this[_0xaadeea(0x236)](_0x49a8e2):_0x49c4f6==='paste-as-new'?this[_0xaadeea(0x3e0)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x1dd)?this['_addChild'](_0x49a8e2):_0x49c4f6===_0xaadeea(0x466)?this[_0xaadeea(0x229)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x494)?this[_0xaadeea(0x2a2)](_0x49a8e2,_0x25e9ed['id']):_0x49c4f6===_0xaadeea(0x3a8)?this[_0xaadeea(0x2a2)](_0x49a8e2,_0x16fafb['id']):_0x49c4f6===_0xaadeea(0x1d2)?this[_0xaadeea(0x40b)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x4bc)?this['_openSelectedTextEditing'](_0x49a8e2):_0x49c4f6==='open-description'?this[_0xaadeea(0x1fa)](_0x49a8e2):_0x49c4f6===_0xaadeea(0x27f)?this['_deleteSelectedNode'](_0x49a8e2):_0x49c4f6&&zn(_0x49c4f6)?this[_0xaadeea(0x2d4)](_0x49a8e2,_0x49c4f6):!0x1;}[_0x2d31a4(0x350)](_0x5d8ca3){const _0x368c10=_0x2d31a4;let _0x11632c=this['_getSelectedMindMapContext'](_0x5d8ca3);return _0x11632c?(_0x5d8ca3[_0x368c10(0x2aa)]['executeCommand'](_0x5b75b6['id'],{'unitId':_0x11632c['unitId'],'subUnitId':_0x11632c[_0x368c10(0x452)],'nodeId':_0x11632c['nodeId']}),!0x0):!0x1;}[_0x2d31a4(0x236)](_0x252548){const _0x24fd3e=_0x2d31a4;let _0x4815ee=this[_0x24fd3e(0x303)](_0x252548);return!_0x4815ee||!_0x252548[_0x24fd3e(0x498)][_0x24fd3e(0x210)]()?!0x1:(this[_0x24fd3e(0x3d7)](_0x252548,_0x1dcd5d['id'],{'unitId':_0x4815ee[_0x24fd3e(0x499)],'subUnitId':_0x4815ee[_0x24fd3e(0x452)],'targetNodeId':_0x4815ee['nodeId']},_0x4815ee[_0x24fd3e(0x435)]),!0x0);}['_pasteAsNewMindMap'](_0x23add6){const _0x4b9f79=_0x2d31a4;let _0x51c61f=this[_0x4b9f79(0x2ee)](_0x23add6);if(!_0x51c61f||!_0x23add6[_0x4b9f79(0x498)]['getPayload']())return!0x1;let _0x15a152=_0x23add6[_0x4b9f79(0x1e6)][_0x4b9f79(0x41b)](),_0x5c2f57=Number[_0x4b9f79(0x31d)](_0x15a152['zoomRatio'])&&_0x15a152[_0x4b9f79(0x439)]>0x0?_0x15a152[_0x4b9f79(0x439)]:0x1,_0x3133a0=Math[_0x4b9f79(0x43c)]((0x40-_0x15a152[_0x4b9f79(0x42b)]['x'])/_0x5c2f57),_0x1c3f41=Math['round']((0x40-_0x15a152[_0x4b9f79(0x42b)]['y'])/_0x5c2f57);return _0x23add6[_0x4b9f79(0x2aa)][_0x4b9f79(0x38b)](_0xfe8103['id'],{'unitId':_0x51c61f[_0x4b9f79(0x499)],'subUnitId':_0x51c61f['subUnitId'],'left':_0x3133a0,'top':_0x1c3f41}),!0x0;}[_0x2d31a4(0x23e)](_0x990c5c){const _0x499cf0=_0x2d31a4;let _0x445fd8=this[_0x499cf0(0x303)](_0x990c5c);if(!_0x445fd8)return!0x1;let _0x7fefa0=_0x75cb4(0x6);return this[_0x499cf0(0x409)](_0x990c5c,_0x3808d0['id'],{'unitId':_0x445fd8[_0x499cf0(0x499)],'subUnitId':_0x445fd8[_0x499cf0(0x452)],'parentNodeId':_0x445fd8[_0x499cf0(0x26d)],'nodeId':_0x7fefa0,'connectorId':_0x75cb4(0x6),'text':_0x990c5c[_0x499cf0(0x4c7)]['t'](_0x499cf0(0x4ad))},_0x445fd8[_0x499cf0(0x435)],_0x7fefa0),!0x0;}[_0x2d31a4(0x229)](_0xa196cc){const _0x57c7eb=_0x2d31a4;let _0x3430bc=this[_0x57c7eb(0x303)](_0xa196cc);if(!_0x3430bc)return!0x1;let _0x2699be=_0x75cb4(0x6);return this[_0x57c7eb(0x409)](_0xa196cc,_0x3430bc[_0x57c7eb(0x284)]?_0x3808d0['id']:_0x2947b9['id'],{'unitId':_0x3430bc[_0x57c7eb(0x499)],'subUnitId':_0x3430bc[_0x57c7eb(0x452)],..._0x3430bc['isRoot']?{'parentNodeId':_0x3430bc['nodeId'],'nodeId':_0x2699be}:{'nodeId':_0x3430bc['nodeId'],'siblingNodeId':_0x2699be},'connectorId':_0x75cb4(0x6),'text':_0xa196cc[_0x57c7eb(0x4c7)]['t'](_0x57c7eb(0x4ad))},_0x3430bc[_0x57c7eb(0x435)],_0x2699be),!0x0;}[_0x2d31a4(0x2a2)](_0x28e196,_0x4e6f9f){const _0x2cfd52=_0x2d31a4;let _0x1c79bd=this['_getSelectedMindMapContext'](_0x28e196);return _0x1c79bd?(this[_0x2cfd52(0x3d7)](_0x28e196,_0x4e6f9f,{'unitId':_0x1c79bd['unitId'],'subUnitId':_0x1c79bd[_0x2cfd52(0x452)],'nodeId':_0x1c79bd[_0x2cfd52(0x26d)]},_0x1c79bd[_0x2cfd52(0x435)]),!0x0):!0x1;}['_deleteSelectedNode'](_0x3d98ed){const _0x402b2f=_0x2d31a4;let _0x5adb29=this['_getSelectedMindMapContext'](_0x3d98ed);if(!_0x5adb29)return!0x1;let _0x596532=_0x3d98ed[_0x402b2f(0x2aa)][_0x402b2f(0x2e6)](_0x1eea2c['id'],{'unitId':_0x5adb29['unitId'],'subUnitId':_0x5adb29['subUnitId'],'nodeId':_0x5adb29[_0x402b2f(0x26d)]});return _0x596532&&_0x3d98ed[_0x402b2f(0x1c7)]['clearSelection'](),_0x596532;}[_0x2d31a4(0x40b)](_0x7ef2c9){const _0x7416b7=_0x2d31a4;let _0x123979=this[_0x7416b7(0x303)](_0x7ef2c9);if(!_0x123979)return!0x1;let _0x45df06=_0x7ef2c9[_0x7416b7(0x1f4)][_0x7416b7(0x397)](_0x123979[_0x7416b7(0x499)],_0x123979['subUnitId']),_0x524a41=Object[_0x7416b7(0x379)](_0x45df06)['map'](_0x2b4316=>{const _0x6acf5f=_0x7416b7;let _0x41501c=_0xd8e37e(_0x2b4316[_0x6acf5f(0x4b4)]);return(_0x41501c==null?void 0x0:_0x41501c[_0x6acf5f(0x2f8)])===_0x123979['scopeId']&&this[_0x6acf5f(0x369)](_0x45df06,_0x123979['scopeId'],_0x2b4316[_0x6acf5f(0x421)])[_0x6acf5f(0x1ab)]>0x0?{'nodeId':_0x2b4316[_0x6acf5f(0x421)],'collapsed':_0x41501c['collapsed']}:null;})[_0x7416b7(0x2c5)](_0x390cff=>!!_0x390cff);if(_0x524a41['length']===0x0)return!0x1;let _0x26d8de=_0x524a41[_0x7416b7(0x354)](_0x2c61d7=>!_0x2c61d7[_0x7416b7(0x3bd)]),_0x43255c=_0x7ef2c9[_0x7416b7(0x2aa)],_0x4be8c1=this[_0x7416b7(0x306)][_0x7416b7(0x348)](_0x123979[_0x7416b7(0x499)]),_0x140622=_0x524a41['map'](_0x14e511=>_0x4be8c1(()=>_0x43255c[_0x7416b7(0x38b)](_0x16fafb['id'],{'unitId':_0x123979[_0x7416b7(0x499)],'subUnitId':_0x123979[_0x7416b7(0x452)],'nodeId':_0x14e511[_0x7416b7(0x26d)],'collapsed':_0x26d8de})));return Promise[_0x7416b7(0x4c5)](_0x140622[_0x7416b7(0x461)](_0x5c5845=>Promise[_0x7416b7(0x48a)](_0x5c5845)))[_0x7416b7(0x1d7)](_0x4d46c1=>{const _0x1f92c6=_0x7416b7;_0x4d46c1['some'](Boolean)&&_0x4be8c1(()=>_0x43255c[_0x1f92c6(0x38b)](_0x59d4d9['id'],{'unitId':_0x123979[_0x1f92c6(0x499)],'subUnitId':_0x123979[_0x1f92c6(0x452)],'scopeId':_0x123979['scopeId']}));}),!0x0;}[_0x2d31a4(0x355)](_0x58c439){const _0x27a5a6=_0x2d31a4;let _0x1d6868=this[_0x27a5a6(0x303)](_0x58c439);if(!_0x1d6868)return!0x1;_0x58c439[_0x27a5a6(0x1c7)][_0x27a5a6(0x2b0)]({'unitId':_0x1d6868[_0x27a5a6(0x499)],'subUnitId':_0x1d6868['subUnitId']},[_0x1d6868[_0x27a5a6(0x26d)]],_0x1d6868[_0x27a5a6(0x26d)]);let _0x12c1b5=_0x58c439['textEditingService'];return _0x12c1b5[_0x27a5a6(0x283)](),_0x12c1b5[_0x27a5a6(0x3ab)]({'unitId':_0x1d6868[_0x27a5a6(0x499)],'subUnitId':_0x1d6868['subUnitId'],'shapeId':_0x1d6868['nodeId'],'shapeKey':_0x1b247d(_0x1d6868['unitId'],_0x1d6868['nodeId']),'visible':!0x0}),!0x0;}[_0x2d31a4(0x1fa)](_0x195a48){const _0x16664b=_0x2d31a4;let _0x2004fd=this[_0x16664b(0x303)](_0x195a48);return _0x2004fd?(_0x195a48[_0x16664b(0x1af)]['open']({'id':kn,'title':{'title':_0x16664b(0x37f)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':On,'unitId':_0x2004fd[_0x16664b(0x499)],'subUnitId':_0x2004fd['subUnitId'],'nodeId':_0x2004fd[_0x16664b(0x26d)],'initialDescription':_0x2004fd[_0x16664b(0x328)]}}),!0x0):!0x1;}['_navigateByTopology'](_0x460b0d,_0x2b7149){const _0x2f9288=_0x2d31a4;let _0x3c7adc=this[_0x2f9288(0x303)](_0x460b0d);if(!_0x3c7adc)return!0x1;let _0x5c26c6=_0x460b0d[_0x2f9288(0x1f4)]['getElementData'](_0x3c7adc['unitId'],_0x3c7adc[_0x2f9288(0x452)]),_0x30df5d=_0x5c26c6[_0x3c7adc[_0x2f9288(0x26d)]],_0x3bf844=_0xd8e37e(_0x30df5d==null?void 0x0:_0x30df5d[_0x2f9288(0x4b4)]);if(!_0x30df5d||!_0x3bf844)return!0x1;let _0x1cbefe={'arrow-left':'ArrowLeft','arrow-right':_0x2f9288(0x2bc),'arrow-up':'ArrowUp','arrow-down':'ArrowDown'}[_0x2b7149];if(!_0x1cbefe)return!0x1;let _0x1a7cf9=this[_0x2f9288(0x309)](_0x5c26c6,_0x3c7adc['nodeId'],_0x3bf844,_0x1cbefe);return _0x1a7cf9?(_0x460b0d[_0x2f9288(0x1c7)]['selectElements']({'unitId':_0x3c7adc[_0x2f9288(0x499)],'subUnitId':_0x3c7adc[_0x2f9288(0x452)]},[_0x1a7cf9],_0x1a7cf9),!0x0):!0x1;}[_0x2d31a4(0x309)](_0x27a693,_0x23ad7e,_0x1ab6da,_0x29a29e){const _0x2a424c=_0x2d31a4;let _0x354194=this[_0x2a424c(0x369)](_0x27a693,_0x1ab6da[_0x2a424c(0x2f8)],_0x23ad7e);if(_0x1ab6da[_0x2a424c(0x3e6)]===null){if(_0x29a29e==='ArrowLeft'){var _0x2ce59c;return((_0x2ce59c=_0x354194[_0x2a424c(0x261)](_0x461591=>{const _0x359f90=_0x2a424c;var _0x25d97a;return((_0x25d97a=_0xd8e37e(_0x461591[_0x359f90(0x4b4)]))==null?void 0x0:_0x25d97a[_0x359f90(0x384)])===_0x359f90(0x1ac);}))==null?void 0x0:_0x2ce59c['elementId'])??null;}if(_0x29a29e==='ArrowRight'){var _0x4c4278;return((_0x4c4278=_0x354194[_0x2a424c(0x261)](_0x11da01=>{const _0x3268f2=_0x2a424c;var _0x5437b9;return(((_0x5437b9=_0xd8e37e(_0x11da01['element']))==null?void 0x0:_0x5437b9[_0x3268f2(0x384)])??_0x3268f2(0x234))==='right';}))==null?void 0x0:_0x4c4278[_0x2a424c(0x421)])??null;}return null;}let _0x36afd0=_0x1ab6da[_0x2a424c(0x384)]??'right',_0x418e00=_0x36afd0==='right'?'ArrowLeft':_0x2a424c(0x2bc),_0x73a669=_0x36afd0===_0x2a424c(0x234)?'ArrowRight':'ArrowLeft';if(_0x29a29e===_0x418e00)return _0x1ab6da[_0x2a424c(0x3e6)];if(_0x29a29e===_0x73a669){var _0x10f6a3;return((_0x10f6a3=_0x354194[0x0])==null?void 0x0:_0x10f6a3[_0x2a424c(0x421)])??null;}if(_0x29a29e===_0x2a424c(0x3bb)||_0x29a29e===_0x2a424c(0x4b0)){let _0x2e0964=this['_getMindMapChildren'](_0x27a693,_0x1ab6da['structureScopeId'],_0x1ab6da[_0x2a424c(0x3e6)]),_0x32d1c4=_0x2e0964[_0x2a424c(0x240)](_0x5b24bb=>_0x5b24bb['elementId']===_0x23ad7e),_0x3dda82=_0x29a29e==='ArrowUp'?_0x2e0964[_0x32d1c4-0x1]:_0x2e0964[_0x32d1c4+0x1];return(_0x3dda82==null?void 0x0:_0x3dda82[_0x2a424c(0x421)])??null;}return null;}[_0x2d31a4(0x369)](_0x36ca47,_0x19e1b9,_0x422552){const _0x12fe5e=_0x2d31a4;return Object[_0x12fe5e(0x379)](_0x36ca47)[_0x12fe5e(0x2c5)](_0x5553bd=>{const _0x280fca=_0x12fe5e;let _0x1365fb=_0xd8e37e(_0x5553bd[_0x280fca(0x4b4)]);return(_0x1365fb==null?void 0x0:_0x1365fb[_0x280fca(0x2f8)])===_0x19e1b9&&_0x1365fb[_0x280fca(0x3e6)]===_0x422552&&_0x5553bd[_0x280fca(0x4b4)][_0x280fca(0x1c0)]!==!0x1;})[_0x12fe5e(0x222)]((_0x1d6830,_0x928b37)=>{const _0x535c9f=_0x12fe5e;let _0x4aba1e=_0xd8e37e(_0x1d6830[_0x535c9f(0x4b4)]),_0x25f9c4=_0xd8e37e(_0x928b37[_0x535c9f(0x4b4)]);return _0x28a7e2(_0x4aba1e==null?void 0x0:_0x4aba1e[_0x535c9f(0x2d8)],_0x25f9c4==null?void 0x0:_0x25f9c4['orderKey'])||_0x1d6830[_0x535c9f(0x421)][_0x535c9f(0x362)](_0x928b37[_0x535c9f(0x421)]);});}['_getSelectedMindMapContext'](_0x24b190){const _0x4c8885=_0x2d31a4;var _0x59a815;let _0x2e1964=_0x24b190[_0x4c8885(0x1c7)]['getSnapshot'](),_0x4fcbbc=_0x2e1964['focusedId']??_0x2e1964[_0x4c8885(0x3f9)][0x0];if(!_0x4fcbbc||_0x2e1964['selectedIds'][_0x4c8885(0x1ab)]!==0x1||_0x2e1964['activeEditingId']||_0x2e1964[_0x4c8885(0x23a)])return null;let _0x1f16c1=_0x2e1964[_0x4c8885(0x233)]??{'unitId':_0x24b190[_0x4c8885(0x329)][_0x4c8885(0x499)],'subUnitId':_0x24b190[_0x4c8885(0x329)][_0x4c8885(0x1da)]['getActivePageId']()},_0x5869b3=_0x24b190[_0x4c8885(0x1f4)]['getElementData'](_0x1f16c1['unitId'],_0x1f16c1[_0x4c8885(0x452)])[_0x4fcbbc],_0x20405a=_0xd8e37e(_0x5869b3==null?void 0x0:_0x5869b3[_0x4c8885(0x4b4)]);return!_0x5869b3||!_0x20405a?null:{'unitId':_0x1f16c1[_0x4c8885(0x499)],'subUnitId':_0x1f16c1['subUnitId'],'nodeId':_0x4fcbbc,'scopeId':_0x20405a[_0x4c8885(0x2f8)],'isRoot':_0x20405a[_0x4c8885(0x3e6)]===null,'description':((_0x59a815=_0x20405a['foreignAttributes'])==null?void 0x0:_0x59a815[_0x4c8885(0x4b3)])??''};}['_getBlankBoardContext'](_0x2c53c9){const _0x84ab74=_0x2d31a4;var _0x5f43e6,_0xaa5f29;let _0x37df05=_0x2c53c9[_0x84ab74(0x1c7)][_0x84ab74(0x276)]();return _0x37df05['activeEditingId']||_0x37df05[_0x84ab74(0x23a)]||_0x37df05[_0x84ab74(0x3f9)][_0x84ab74(0x1ab)]>0x0||_0x37df05[_0x84ab74(0x330)]?null:{'unitId':((_0x5f43e6=_0x37df05[_0x84ab74(0x233)])==null?void 0x0:_0x5f43e6[_0x84ab74(0x499)])??_0x2c53c9[_0x84ab74(0x329)]['unitId'],'subUnitId':((_0xaa5f29=_0x37df05[_0x84ab74(0x233)])==null?void 0x0:_0xaa5f29[_0x84ab74(0x452)])??_0x2c53c9[_0x84ab74(0x329)][_0x84ab74(0x1da)][_0x84ab74(0x4a9)]()};}[_0x2d31a4(0x3d7)](_0x33346b,_0x18d16c,_0x58f278,_0x37c5ef){const _0x25d920=_0x2d31a4;let _0x5c9630=_0x33346b[_0x25d920(0x2aa)],_0x642a1b=this['_undoRedoGroupService']['createRunner'](_0x58f278[_0x25d920(0x499)]),_0x276fd1=_0x642a1b(()=>_0x5c9630[_0x25d920(0x38b)](_0x18d16c,_0x58f278));Promise[_0x25d920(0x48a)](_0x276fd1)[_0x25d920(0x1d7)](_0x3c2e06=>{const _0x5851ca=_0x25d920;_0x3c2e06&&_0x642a1b(()=>_0x5c9630[_0x5851ca(0x38b)](_0x59d4d9['id'],{'unitId':_0x58f278[_0x5851ca(0x499)],'subUnitId':_0x58f278[_0x5851ca(0x452)],'scopeId':_0x37c5ef}));});}['_executeCreateAndEdit'](_0x3eb870,_0x4991b2,_0x26b75a,_0x1e7d2e,_0x448e91){const _0x420705=_0x2d31a4;let _0x440806={'unitId':_0x26b75a[_0x420705(0x499)],'subUnitId':_0x26b75a[_0x420705(0x452)]},_0x5dcb4=_0x3eb870[_0x420705(0x2aa)],_0x552b63=this[_0x420705(0x306)]['createRunner'](_0x26b75a[_0x420705(0x499)]),_0x4cb19a=_0x552b63(()=>_0x5dcb4[_0x420705(0x38b)](_0x4991b2,_0x26b75a));Promise['resolve'](_0x4cb19a)[_0x420705(0x1d7)](_0x505ed0=>{const _0x3f4860=_0x420705;if(!_0x505ed0)return;_0x552b63(()=>_0x5dcb4[_0x3f4860(0x38b)](_0x59d4d9['id'],{..._0x440806,'scopeId':_0x1e7d2e})),_0x3eb870[_0x3f4860(0x1c7)]['selectElements'](_0x440806,[_0x448e91],_0x448e91);let _0x62ec9d=_0x3eb870[_0x3f4860(0x406)];_0x62ec9d[_0x3f4860(0x283)](),_0x62ec9d[_0x3f4860(0x3ab)]({..._0x440806,'shapeId':_0x448e91,'shapeKey':_0x1b247d(_0x440806[_0x3f4860(0x499)],_0x448e91),'visible':!0x0});});}};Ln=J([q(0x0,_0x44df25),q(0x1,_0x2a0a40),q(0x2,_0x23e2ca),q(0x3,_0x4a13c4(_0x352e0c))],Ln);function Rn(_0x4ff2cf,_0x3e9306){const _0x431160=_0x2d31a4;var _0x1691df,_0x5678b4;let _0x599183=typeof(_0x3e9306==null?void 0x0:_0x3e9306[_0x431160(0x499)])=='string'?_0x3e9306[_0x431160(0x499)]:(_0x1691df=_0x4ff2cf['get'](_0x28c364)['getCurrentUnitOfType'](_0x4468f4[_0x431160(0x3be)]))==null?void 0x0:_0x1691df['getUnitId']();return _0x599183?((_0x5678b4=_0x4ff2cf[_0x431160(0x267)](_0xa5c56c)[_0x431160(0x1c9)](_0x599183))==null?void 0x0:_0x5678b4['with'](Dn))??null:null;}function zn(_0x238f92){const _0x5507ee=_0x2d31a4;return _0x238f92===_0x5507ee(0x486)||_0x238f92===_0x5507ee(0x4be)||_0x238f92==='arrow-up'||_0x238f92===_0x5507ee(0x312);}const Bn={'min':0x1,'max':0x5,'defaultValue':0x3},Vn={'min':0x0,'max':0x64,'defaultValue':0x64},Hn=[{'kind':'dropdown','titleKey':_0x2d31a4(0x2b9),'panel':_0x2d31a4(0x3c8)},{'kind':_0x2d31a4(0x2c2),'titleKey':_0x2d31a4(0x307)},{'kind':'typography','titleKey':'boards-mind-ui.toolbar.primary.typography'},{'kind':_0x2d31a4(0x372),'titleKey':'boards-mind-ui.toolbar.primary.more','panel':_0x2d31a4(0x2fb),'dividerBefore':!0x0}],Un={'addSibling':_0x2d31a4(0x466),'addChild':_0x2d31a4(0x1dd),'copy':'copy','paste':_0x2d31a4(0x44f),'delete':_0x2d31a4(0x27f)},Wn=[{'key':_0x2d31a4(0x3fd),'title':_0x2d31a4(0x450),'items':[{'value':_0x2d31a4(0x2bb),'icon':_0x2d31a4(0x2bb),'labelKey':_0x2d31a4(0x1fe)},{'value':_0x2d31a4(0x433),'icon':_0x2d31a4(0x433),'labelKey':'boards-mind-ui.panel.structureKind.mindmapVertical'}]},{'key':_0x2d31a4(0x1d6),'title':_0x2d31a4(0x1bc),'items':[{'value':'tree-right','icon':_0x2d31a4(0x45d),'labelKey':'boards-mind-ui.panel.structureKind.treeRight'},{'value':_0x2d31a4(0x341),'icon':_0x2d31a4(0x341),'labelKey':_0x2d31a4(0x419)},{'value':_0x2d31a4(0x453),'icon':_0x2d31a4(0x453),'labelKey':_0x2d31a4(0x219)}]},{'key':_0x2d31a4(0x214),'title':'Timeline','items':[{'value':_0x2d31a4(0x338),'icon':'timeline-horizontal','labelKey':_0x2d31a4(0x34a)},{'value':_0x2d31a4(0x25f),'icon':'timeline-vertical','labelKey':_0x2d31a4(0x2f9)}]}],Gn={'key':_0x2d31a4(0x204),'title':'Branch','items':[{'value':_0x2d31a4(0x212),'icon':'branch-curve','labelKey':_0x2d31a4(0x20d)},{'value':_0x2d31a4(0x305),'icon':_0x2d31a4(0x33c),'labelKey':_0x2d31a4(0x2b6)},{'value':_0x2d31a4(0x391),'icon':_0x2d31a4(0x201),'labelKey':_0x2d31a4(0x3ee)}]},Kn=_0x2d31a4(0x43b);function qn(_0x30b31a,_0x7b0ffb){_0x30b31a['executeCommand'](jn,{'action':_0x7b0ffb});}const Jn={'line':_0x41e0b5,'more':_0x160c3e};function Yn(_0xb3c238){const _0x25fa4c=_0x2d31a4;_0xb3c238[_0x25fa4c(0x1c4)](),_0xb3c238['preventDefault']();}function Xn(_0x21b03d,_0x2c5e6c=_0x2d31a4(0x399),_0x2a937a){return _0x1d0d1f(_0x4f8372,{'children':_0x1d0d1f(_0x21b03d,{'className':_0x2c5e6c,'extend':_0x2a937a})});}function Zn(_0x3649cd){const _0x16fe17=_0x2d31a4;var _0x20148e,_0x489e01;let _0x579a84=(_0x3649cd==null?void 0x0:_0x3649cd['shapeText'])??{},_0x12b098=_0x579a84[_0x16fe17(0x40d)]&&typeof _0x579a84[_0x16fe17(0x40d)]==_0x16fe17(0x367)?_0x579a84[_0x16fe17(0x40d)]:{},_0x4d0516=(_0x20148e=_0x12b098[_0x16fe17(0x3d9)])==null||(_0x20148e=_0x20148e[_0x16fe17(0x37c)])==null?void 0x0:_0x20148e[_0x16fe17(0x460)];return{'color':typeof _0x579a84[_0x16fe17(0x445)]=='string'?_0x579a84[_0x16fe17(0x445)]:(_0x4d0516==null||(_0x489e01=_0x4d0516['cl'])==null?void 0x0:_0x489e01[_0x16fe17(0x3b4)])??_0x429bd2,'fontFamily':typeof _0x579a84[_0x16fe17(0x3bf)]=='string'?_0x579a84[_0x16fe17(0x3bf)]:(_0x4d0516==null?void 0x0:_0x4d0516['ff'])??_0x4d3453['ff'],'fontSize':typeof _0x579a84[_0x16fe17(0x282)]==_0x16fe17(0x2e3)?_0x579a84[_0x16fe17(0x282)]:typeof(_0x4d0516==null?void 0x0:_0x4d0516['fs'])==_0x16fe17(0x2e3)?_0x4d0516['fs']:_0x4d3453['fs'],'horizontalAlign':_0x579a84['horizontalAlign']??_0x12b098['ha']??_0x5d5258['LEFT'],'textFill':_0x579a84['textFill']&&typeof _0x579a84[_0x16fe17(0x4c4)]==_0x16fe17(0x367)?_0x579a84['textFill']:_0x4d0516==null?void 0x0:_0x4d0516[_0x16fe17(0x4c4)],'verticalAlign':_0x579a84['verticalAlign']??_0x12b098['va']??_0xc5d8a5[_0x16fe17(0x271)]};}function Qn(_0x2de7d0,_0x478aa2){const _0x423d94=_0x2d31a4;if(!_0x478aa2)return;let _0x303da7=In(_0x478aa2);if(!_0x303da7[_0x423d94(0x1ab)])return;let _0x23f582=_0x303da7[_0x423d94(0x461)](_0x23b3b6=>_0x2de7d0[_0x423d94(0x265)]({'id':_0x423d94(0x301),'binding':_0x23b3b6,'staticParameters':{'action':_0x478aa2}})??void 0x0)['filter'](_0x2b8dae=>!!_0x2b8dae);return _0x23f582[_0x423d94(0x1ab)]?[...new Set(_0x23f582)][_0x423d94(0x319)]('/'):void 0x0;}async function $n(_0x286fdd,_0x357737,_0x32dc7b){const _0x4175fe=_0x2d31a4;return await Promise['resolve'](_0x357737(()=>_0x286fdd[_0x4175fe(0x38b)](_0x577e6f['id'],_0x32dc7b)))?(await Promise[_0x4175fe(0x48a)](_0x357737(()=>_0x286fdd['executeCommand'](_0x59d4d9['id'],{'unitId':_0x32dc7b[_0x4175fe(0x499)],'subUnitId':_0x32dc7b['subUnitId'],'scopeId':_0x32dc7b['scopeId']}))),!0x0):!0x1;}async function er(_0x4d22e8,_0x1654c9,_0x573f64){const _0x45e540=_0x2d31a4;return await Promise[_0x45e540(0x48a)](_0x1654c9(()=>_0x4d22e8[_0x45e540(0x38b)](_0x1982fa['id'],_0x573f64)))?(await Promise[_0x45e540(0x48a)](_0x1654c9(()=>_0x4d22e8[_0x45e540(0x38b)](_0x59d4d9['id'],{'unitId':_0x573f64[_0x45e540(0x499)],'subUnitId':_0x573f64[_0x45e540(0x452)],'scopeId':_0x573f64[_0x45e540(0x435)]}))),!0x0):!0x1;}function tr({className:_0x2c0f62=_0x2d31a4(0x399)}){const _0x581801=_0x2d31a4;return _0x1d0d1f(_0x4f8372,{'children':_0xf895cc(_0x581801(0x382),{'className':_0x2c0f62,'viewBox':_0x581801(0x42a),'fill':_0x581801(0x314),'aria-hidden':_0x581801(0x30a),'children':[_0x1d0d1f(_0x581801(0x216),{'d':'M4.5\x207.5h4.2c1.9\x200\x203.3\x201.5\x203.3\x203.3v2.4c0\x201.8\x201.4\x203.3\x203.3\x203.3h4.2','stroke':_0x581801(0x3b6),'strokeWidth':'1.8','strokeLinecap':_0x581801(0x43c)}),_0x1d0d1f(_0x581801(0x216),{'d':_0x581801(0x4c9),'stroke':_0x581801(0x3b6),'strokeWidth':_0x581801(0x4ab),'strokeLinecap':_0x581801(0x43c)}),_0x1d0d1f(_0x581801(0x216),{'d':_0x581801(0x361),'stroke':_0x581801(0x3b6),'strokeWidth':_0x581801(0x4ab),'strokeLinecap':_0x581801(0x43c)})]})});}function nr({icon:_0x37c357}){const _0x1f7602=_0x2d31a4;let _0x27fbd6=_0x1f7602(0x31c),_0x4701b8={'stroke':_0x1f7602(0x3b6),'strokeWidth':2.6,'strokeLinecap':'round','strokeLinejoin':_0x1f7602(0x43c)},_0x5248c9={'stroke':_0x27fbd6,'strokeWidth':3.2,'strokeLinecap':_0x1f7602(0x43c)};return _0xf895cc('svg',{'className':_0x1f7602(0x3b0),'viewBox':_0x1f7602(0x200),'fill':_0x1f7602(0x314),'aria-hidden':_0x1f7602(0x30a),'children':[_0x37c357===_0x1f7602(0x2bb)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x473),..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x4af),..._0x5248c9})]}),_0x37c357===_0x1f7602(0x433)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x34e),..._0x4701b8}),_0x1d0d1f('path',{'d':_0x1f7602(0x287),'stroke':_0x27fbd6,'strokeWidth':2.6,'strokeLinecap':_0x1f7602(0x43c),'strokeDasharray':_0x1f7602(0x32c)})]}),_0x37c357===_0x1f7602(0x45d)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':'M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7',..._0x4701b8}),_0x1d0d1f('path',{'d':_0x1f7602(0x1be),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'24','cy':'12','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357===_0x1f7602(0x341)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':'M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7',..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x334),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'56','cy':'12','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357===_0x1f7602(0x453)&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f('path',{'d':_0x1f7602(0x36a),..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x22e),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'42','cy':'12','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357==='timeline-horizontal'&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x42d),..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x1fc),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'17','cy':'31','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357==='timeline-vertical'&&_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x4bb),..._0x4701b8}),_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x2c9),..._0x5248c9}),_0x1d0d1f(_0x1f7602(0x412),{'cx':'40','cy':'9','r':'3','fill':_0x1f7602(0x3b6)})]}),_0x37c357==='branch-curve'&&_0x1d0d1f(_0x2f0da1,{'children':_0x1d0d1f(_0x1f7602(0x216),{'d':'M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013',..._0x4701b8})}),_0x37c357==='branch-rounded-orthogonal'&&_0x1d0d1f(_0x2f0da1,{'children':_0x1d0d1f(_0x1f7602(0x216),{'d':_0x1f7602(0x485),..._0x4701b8})}),_0x37c357===_0x1f7602(0x201)&&_0x1d0d1f(_0x2f0da1,{'children':_0x1d0d1f(_0x1f7602(0x216),{'d':'M17\x2033h21M38\x2017v30M38\x2017h24',..._0x4701b8})})]});}function rr(_0x2052c3,_0x26d254){const _0xb5f06b=_0x2d31a4;let _0x154aee=_0x2052c3[_0xb5f06b(0x460)],_0x4d8b23=_0x3b60e2(_0x154aee),_0x4ae577={..._0x4d8b23[_0xb5f06b(0x445)]===void 0x0?null:{'color':_0x4d8b23[_0xb5f06b(0x445)]},..._0x4d8b23['fontFamily']===void 0x0?null:{'fontFamily':_0x4d8b23[_0xb5f06b(0x3bf)]},..._0x4d8b23[_0xb5f06b(0x282)]===void 0x0?null:{'fontSize':_0x4d8b23[_0xb5f06b(0x282)]},..._0x4d8b23['bold']===void 0x0?null:{'bold':_0x4d8b23['bold']},..._0x4d8b23[_0xb5f06b(0x339)]===void 0x0?null:{'italic':_0x4d8b23['italic']},..._0x4d8b23[_0xb5f06b(0x2a8)]===void 0x0?null:{'underline':_0x4d8b23[_0xb5f06b(0x2a8)]},..._0x4d8b23[_0xb5f06b(0x470)]===void 0x0?null:{'strikethrough':_0x4d8b23['strikethrough']},..._0x4d8b23[_0xb5f06b(0x4c4)]===void 0x0?null:{'textFill':_0x4d8b23[_0xb5f06b(0x4c4)]}};_0x2052c3['horizontalAlign']!==void 0x0&&(_0x4ae577[_0xb5f06b(0x368)]=_0x2052c3['horizontalAlign']),_0x2052c3['verticalAlign']!==void 0x0&&(_0x4ae577[_0xb5f06b(0x44b)]=_0x2052c3[_0xb5f06b(0x44b)]),Object['keys'](_0x4ae577)['length']>0x0&&_0x26d254({'textStyle':_0x4ae577});}function ir(_0x5200dd,_0x521825,_0x1642b6){const _0x1457f6=_0x2d31a4;let _0x378554=_0x5200dd??{},_0xc296ef=_0x3b39f1(_0x378554,_0x521825),_0x9ecfbd=_0xc296ef[_0x1457f6(0x29d)]??_0x378554[_0x1457f6(0x29d)]??{};return{..._0x378554,..._0xc296ef,'shapeText':{..._0x9ecfbd,..._0x1642b6[_0x1457f6(0x445)]===void 0x0?null:{'color':_0x1642b6[_0x1457f6(0x445)]},..._0x1642b6[_0x1457f6(0x282)]===void 0x0?null:{'fontSize':_0x1642b6[_0x1457f6(0x282)]},..._0x1642b6[_0x1457f6(0x478)]===void 0x0?null:{'bold':_0x1642b6[_0x1457f6(0x478)]},..._0x1642b6[_0x1457f6(0x339)]===void 0x0?null:{'italic':_0x1642b6['italic']},..._0x1642b6['underline']===void 0x0?null:{'underline':_0x1642b6[_0x1457f6(0x2a8)]},..._0x1642b6[_0x1457f6(0x470)]===void 0x0?null:{'strikethrough':_0x1642b6['strikethrough']},..._0x1642b6[_0x1457f6(0x368)]===void 0x0?null:{'horizontalAlign':_0x1642b6['horizontalAlign']},..._0x1642b6['verticalAlign']===void 0x0?null:{'verticalAlign':_0x1642b6[_0x1457f6(0x44b)]},..._0x1642b6[_0x1457f6(0x4c4)]===void 0x0?null:{'textFill':_0x1642b6[_0x1457f6(0x4c4)]}}};}function ar(_0x501b2a,_0x530b8b){const _0x13a91b=_0x2d31a4;let _0x56d3a6=_0x501b2a==null?void 0x0:_0x501b2a[_0x13a91b(0x2ac)];_0x56d3a6&&_0x530b8b({'lineType':_0x56d3a6[_0x13a91b(0x4a7)]===_0x6d9141[_0x13a91b(0x41f)]||_0x56d3a6[_0x13a91b(0x4a7)]===_0x6d9141['SquareDot']?_0x13a91b(0x2b8):_0x56d3a6[_0x13a91b(0x4a7)]===_0x6d9141['Dash']?'dash':'solid',...typeof _0x56d3a6[_0x13a91b(0x35d)]=='number'?{'strokeWidth':_0x56d3a6[_0x13a91b(0x35d)]}:null,...typeof _0x56d3a6['color']=='string'?{'stroke':_0x56d3a6[_0x13a91b(0x445)]}:null,...typeof _0x56d3a6[_0x13a91b(0x1d0)]=='number'?{'opacity':_0x56d3a6[_0x13a91b(0x1d0)]}:null});}function or(_0xb4647d){const _0x148ab1=_0x2d31a4;return _0xb4647d!=null&&_0xb4647d['length']?_0xb4647d[0x0]<=0x2?_0x6d9141[_0x148ab1(0x41f)]:_0x6d9141['Dash']:_0x6d9141[_0x148ab1(0x3ce)];}function sr(_0x3d256c){const _0xdb668c=_0x2d31a4;return{'stroke':{'lineStrokeType':_0x586b2d[_0xdb668c(0x221)],'dashType':or(_0x3d256c==null?void 0x0:_0x3d256c[_0xdb668c(0x464)]),'color':(_0x3d256c==null?void 0x0:_0x3d256c[_0xdb668c(0x2ac)])??_0x78d89c,'width':(_0x3d256c==null?void 0x0:_0x3d256c[_0xdb668c(0x24f)])??Bn['defaultValue'],'opacity':(_0x3d256c==null?void 0x0:_0x3d256c[_0xdb668c(0x1d0)])??Vn[_0xdb668c(0x22d)]/0x64}};}function cr(_0x579b93){const _0x9b90d5=_0x2d31a4;var _0x2e66d1,_0x21697b,_0x5afe16;let _0x4f42d5=_0x1b73d0(_0x2a0a40),_0x480204=_0x1b73d0(_0x23e2ca),_0x2f075e=_0x1b73d0(_0x3ff2da),_0x1768cb=_0x1b73d0(_0x352e0c),[_0x399763,_0x3780b5]=_0x45ab05(null),[_0x4718db,_0x496b3e]=_0x45ab05((_0x2e66d1=_0x579b93[_0x9b90d5(0x279)][_0x9b90d5(0x3cf)])==null?void 0x0:_0x2e66d1['shapeData']),_0x43fef5=_0x579b93[_0x9b90d5(0x279)][_0x9b90d5(0x3cf)];if(!_0x43fef5)return null;let _0x2b4b6f={'unitId':_0x43fef5[_0x9b90d5(0x499)],'subUnitId':_0x43fef5[_0x9b90d5(0x452)]},_0x52b2=_0x49eff1=>{const _0x6e42f5=_0x9b90d5;_0x4f42d5[_0x6e42f5(0x38b)](_0x3a4e24['id'],{..._0x2b4b6f,'nodeId':_0x43fef5[_0x6e42f5(0x421)],..._0x49eff1});},_0x46cf22=(_0x9a57a8,_0x1112de)=>{const _0x3d0797=_0x9b90d5;let _0x525acf=_0x1112de??{};_0x496b3e(_0x394ca5=>({..._0x394ca5??{},..._0x525acf})),_0x52b2({..._0x525acf['fill']===void 0x0?null:{'fill':_0x525acf[_0x3d0797(0x4ca)]},..._0x525acf[_0x3d0797(0x2ac)]===void 0x0?null:{'stroke':_0x525acf['stroke']}});},_0x5ca873=_0x505a9b=>{const _0x42151a=_0x9b90d5;_0x4f42d5[_0x42151a(0x38b)](_0x34f5dc['id'],{..._0x2b4b6f,'nodeId':_0x43fef5[_0x42151a(0x421)],'style':_0x505a9b});},_0x56b285=sr(_0x43fef5[_0x9b90d5(0x1c1)]),_0x2c3d88=_0x46db90=>Qn(_0x480204,_0x46db90),_0x1e5126=_0x28351f=>{qn(_0x4f42d5,_0x28351f);},_0x3a5087=(_0x4718db==null?void 0x0:_0x4718db[_0x9b90d5(0x29d)])??{},_0x531981=Zn(_0x4718db),_0x5802b3=_0x4f4d82=>{rr(_0x4f4d82,_0x1896f3=>{const _0x3271ed=_0x4547;_0x496b3e(_0x193b86=>ir(_0x193b86,_0x4f4d82,_0x1896f3[_0x3271ed(0x460)])),_0x52b2(_0x1896f3);});},_0x5d8ae3=[{'label':_0x2f075e['t'](_0x9b90d5(0x1b4)),'value':_0x5d5258[_0x9b90d5(0x1bb)],'icon':_0x1d0d1f(_0x41ed09,{})},{'label':_0x2f075e['t']('boards-mind-ui.alignCenter'),'value':_0x5d5258['CENTER'],'icon':_0x1d0d1f(_0x56184a,{})},{'label':_0x2f075e['t'](_0x9b90d5(0x2fc)),'value':_0x5d5258[_0x9b90d5(0x2c7)],'icon':_0x1d0d1f(_0x1be74c,{})},{'label':_0x2f075e['t'](_0x9b90d5(0x4a6)),'value':_0x5d5258['JUSTIFIED'],'icon':_0x1d0d1f(_0x5ad6e9,{})}],_0x1d2755=[{'label':_0x2f075e['t'](_0x9b90d5(0x443)),'value':_0xc5d8a5[_0x9b90d5(0x415)],'icon':_0x1d0d1f(_0x575e02,{})},{'label':_0x2f075e['t'](_0x9b90d5(0x448)),'value':_0xc5d8a5[_0x9b90d5(0x271)],'icon':_0x1d0d1f(_0xd7454b,{})},{'label':_0x2f075e['t'](_0x9b90d5(0x2d1)),'value':_0xc5d8a5[_0x9b90d5(0x1de)],'icon':_0x1d0d1f(_0x5097e6,{})}],_0xdf9bee=()=>{const _0x25d14c=_0x9b90d5;_0x1e5126(_0x25d14c(0x466));},_0x156ce4=()=>{const _0x4e4bc4=_0x9b90d5;_0x1e5126(_0x4e4bc4(0x1dd));},_0x33b496=()=>{const _0x48bfeb=_0x9b90d5;_0x1e5126(_0x48bfeb(0x206));},_0x22e401=()=>{_0x1e5126('paste');},_0x16ffd1=()=>{_0x1e5126('delete');},_0x47542b=((_0x21697b=_0x43fef5[_0x9b90d5(0x31a)])==null?void 0x0:_0x21697b[_0x9b90d5(0x46d)])??_0x5242c3['structureKind'],_0x338a19=_0x498b4a(_0x47542b,((_0x5afe16=_0x43fef5[_0x9b90d5(0x31a)])==null?void 0x0:_0x5afe16[_0x9b90d5(0x365)])??_0x5242c3['branchLineType']),_0x1f1f3a=_0x5238cf=>{const _0x1d39f7=_0x9b90d5;let _0x32c54c=_0x498b4a(_0x5238cf,_0x338a19);$n(_0x4f42d5,_0x1768cb[_0x1d39f7(0x348)](_0x43fef5[_0x1d39f7(0x499)]),{..._0x2b4b6f,'scopeId':_0x43fef5[_0x1d39f7(0x435)],'structureKind':_0x5238cf,..._0x32c54c===_0x338a19?null:{'branchLineType':_0x32c54c}}),_0x3780b5(null);},_0x4c3c65=_0x28ba97=>{const _0x512f80=_0x9b90d5;er(_0x4f42d5,_0x1768cb[_0x512f80(0x348)](_0x43fef5['unitId']),{..._0x2b4b6f,'scopeId':_0x43fef5[_0x512f80(0x435)],'branchLineType':_0x28ba97}),_0x3780b5(null);},_0x252b59=(_0x5738de,_0x245f8a,_0x5bd417,_0x494713=!0x1)=>_0x1d0d1f(_0x9b90d5(0x29f),{'type':_0x9b90d5(0x29f),'aria-label':_0x2f075e['t'](_0x5738de[_0x9b90d5(0x1f6)]),'disabled':_0x494713,'className':_0x1f61d6(_0x9b90d5(0x34d),_0x245f8a&&_0x9b90d5(0x2e7),_0x494713&&_0x9b90d5(0x209)),'onMouseDown':Yn,'onPointerDown':Yn,'onClick':_0x2ec239=>{const _0x184209=_0x9b90d5;_0x2ec239[_0x184209(0x1c4)](),!_0x494713&&_0x5bd417();},'children':_0x1d0d1f(nr,{'icon':_0x5738de[_0x9b90d5(0x1aa)]})},_0x5738de[_0x9b90d5(0x2fe)]),_0x1138be=()=>_0xf895cc(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x3a7),'onMouseDown':_0x447c87=>_0x447c87[_0x9b90d5(0x1c4)](),'onPointerDown':_0x11aaf1=>_0x11aaf1['stopPropagation'](),'children':[Wn[_0x9b90d5(0x461)](_0x421bab=>_0xf895cc(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x366),'children':[_0x1d0d1f(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x1d8),'children':_0x421bab[_0x9b90d5(0x28f)]}),_0x1d0d1f(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x3d3),'style':{'gridTemplateColumns':_0x9b90d5(0x2d7)+_0x421bab[_0x9b90d5(0x23f)][_0x9b90d5(0x1ab)]+_0x9b90d5(0x3f4)},'children':_0x421bab['items']['map'](_0x39475e=>_0x252b59(_0x39475e,_0x39475e[_0x9b90d5(0x2fe)]===_0x47542b,()=>_0x1f1f3a(_0x39475e[_0x9b90d5(0x2fe)])))})]},_0x421bab[_0x9b90d5(0x3a2)])),_0x1d0d1f(_0x6d5a9d,{}),_0xf895cc(_0x9b90d5(0x2de),{'className':_0x9b90d5(0x46a),'children':[_0x1d0d1f(_0x9b90d5(0x2de),{'className':'univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','children':Gn[_0x9b90d5(0x28f)]}),_0x1d0d1f(_0x9b90d5(0x2de),{'className':'univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','style':{'gridTemplateColumns':_0x9b90d5(0x2d7)+Gn[_0x9b90d5(0x23f)][_0x9b90d5(0x1ab)]+',\x20minmax(0,\x201fr))'},'children':Gn[_0x9b90d5(0x23f)][_0x9b90d5(0x461)](_0xa73e05=>_0x252b59(_0xa73e05,_0xa73e05[_0x9b90d5(0x2fe)]===_0x338a19,()=>_0x4c3c65(_0xa73e05[_0x9b90d5(0x2fe)]),_0xa73e05['value']===_0x9b90d5(0x212)&&!_0x540733(_0x47542b)))})]})]}),_0x3f6c85=_0x75cbd4=>{const _0x31f8d9=_0x9b90d5;switch(_0x75cbd4){case _0x31f8d9(0x3c8):return _0x1d0d1f(_0x345fac,{'title':_0x2f075e['t']('boards-mind-ui.toolbar.panel.line'),'shapeData':_0x56b285,'modeOptions':[_0x31f8d9(0x2f3),_0x31f8d9(0x464),_0x31f8d9(0x2b8)],'showDashDropdown':!0x1,'widthRange':{'min':Bn[_0x31f8d9(0x28e)],'max':Bn[_0x31f8d9(0x34f)],'step':0x1},'onUpdateShapeData':(_0x1e7292,_0x44c46c)=>{ar(_0x44c46c,_0x5ca873);}});case _0x31f8d9(0x2fb):return _0x1d0d1f(_0x291659,{'title':_0x2f075e['t'](_0x31f8d9(0x3b9)),'minWidthClassName':'univer-min-w-[240px]','children':_0xf895cc(_0x31f8d9(0x2de),{'className':_0x31f8d9(0x47a),'children':[_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x43f)),'shortcut':_0x2c3d88(Un[_0x31f8d9(0x3f1)]),'onClick':_0xdf9bee}),_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x2fd)),'shortcut':_0x2c3d88(Un[_0x31f8d9(0x217)]),'onClick':_0x156ce4}),_0x1d0d1f(_0x6d5a9d,{}),_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x26b)),'shortcut':_0x2c3d88(Un[_0x31f8d9(0x206)]),'onClick':_0x33b496}),_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x327)),'shortcut':_0x2c3d88(Un[_0x31f8d9(0x44f)]),'onClick':_0x22e401}),_0x1d0d1f(_0x4cd972,{'label':_0x2f075e['t'](_0x31f8d9(0x3e7)),'shortcut':_0x2c3d88(Un['delete']),'onClick':_0x16ffd1})]})});default:return null;}},_0x3bbaf0=Hn['flatMap'](_0x3fb846=>{const _0x43e609=_0x9b90d5;let _0x422ec1=[];if(_0x3fb846['dividerBefore']&&_0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x6d5a9d,{'orientation':_0x43e609(0x343)},_0x43e609(0x423)+_0x3fb846[_0x43e609(0x3e4)])),_0x3fb846[_0x43e609(0x3e4)]===_0x43e609(0x451))return _0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x427b5f,{'title':_0x2f075e['t'](_0x43e609(0x22a)),'fontFamily':_0x531981[_0x43e609(0x3bf)],'textStyle':{'isBold':_0x3a5087[_0x43e609(0x478)]===!0x0,'isItalic':_0x3a5087['italic']===!0x0,'isUnderline':_0x3a5087[_0x43e609(0x2a8)]===!0x0,'isStrike':_0x3a5087[_0x43e609(0x470)]===!0x0},'horizontalAlign':_0x531981['horizontalAlign'],'verticalAlign':_0x531981[_0x43e609(0x44b)],'horizontalAlignOptions':_0x5d8ae3,'verticalAlignOptions':_0x1d2755,'onUpdateText':_0x5802b3},_0x3fb846[_0x43e609(0x3e4)])),_0x422ec1;if(_0x3fb846[_0x43e609(0x3e4)]===_0x43e609(0x2c2)){let _0x21a0bf={'fs':_0x531981[_0x43e609(0x282)],'cl':{'rgb':_0x531981['color']},..._0x531981[_0x43e609(0x4c4)]===void 0x0?null:{'textFill':_0x531981[_0x43e609(0x4c4)]}};return _0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x5efd9f,{'title':_0x2f075e['t'](_0x43e609(0x331)),'textStyle':_0x21a0bf,'fallbackColor':_0x531981[_0x43e609(0x445)],'onChange':_0x52abd1=>_0x5802b3({'textStyle':_0x52abd1})},_0x3fb846[_0x43e609(0x3e4)])),_0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x27a669,{'value':String(_0x531981[_0x43e609(0x282)]),'onChange':_0x191f64=>{_0x5802b3({'textStyle':{'fs':_0x191f64}});}},_0x43e609(0x231))),_0x422ec1;}return _0x422ec1[_0x43e609(0x228)](_0x1d0d1f(_0x51a529,{'open':_0x399763===_0x3fb846[_0x43e609(0x268)],'overlay':_0x3f6c85(_0x3fb846[_0x43e609(0x268)]),'onOpenChange':_0x46e1c6=>_0x3780b5(_0x46e1c6?_0x3fb846[_0x43e609(0x268)]:null),'children':_0x1d0d1f(_0x43e609(0x377),{'children':_0x1d0d1f(_0x538e8d,{'title':_0x2f075e['t'](_0x3fb846[_0x43e609(0x1ee)]),'active':_0x399763===_0x3fb846[_0x43e609(0x268)],'icon':Xn(Jn[_0x3fb846[_0x43e609(0x268)]]),'sizeClassName':_0x43e609(0x25b),'onMouseDown':Yn,'onPointerDown':Yn})})},_0x3fb846[_0x43e609(0x268)])),_0x422ec1;}),_0x521e4b=[..._0x43fef5['isRootNode']?[_0x1d0d1f(_0x51a529,{'open':_0x399763==='layout','overlay':_0x1138be(),'onOpenChange':_0x24498c=>_0x3780b5(_0x24498c?_0x9b90d5(0x31a):null),'children':_0x1d0d1f(_0x9b90d5(0x377),{'children':_0x1d0d1f(_0x538e8d,{'title':_0x2f075e['t'](_0x9b90d5(0x243)),'active':_0x399763===_0x9b90d5(0x31a),'icon':_0x1d0d1f(tr,{}),'sizeClassName':_0x9b90d5(0x25b),'onMouseDown':Yn,'onPointerDown':Yn})})},_0x9b90d5(0x36e)),_0x1d0d1f(_0x6d5a9d,{'orientation':_0x9b90d5(0x343)},_0x9b90d5(0x427))]:[],_0x1d0d1f(_0x2a02bb,{'title':_0x2f075e['t'](_0x9b90d5(0x290)),'shapeData':_0x4718db??{},'onUpdateShapeData':_0x46cf22},_0x9b90d5(0x2ef)),_0x1d0d1f(_0x5cba12,{'title':_0x2f075e['t'](_0x9b90d5(0x1ad)),'shapeData':_0x4718db??{},'onUpdateShapeData':_0x46cf22},_0x9b90d5(0x266)),_0x1d0d1f(_0x6d5a9d,{'orientation':_0x9b90d5(0x343)},_0x9b90d5(0x4b7))];return _0xf895cc(_0x469f68,{'maxWidthClassName':'univer-max-w-[min(760px,calc(100vw-32px))]','onMouseDown':_0x31929e=>_0x31929e[_0x9b90d5(0x1c4)](),'children':[_0x521e4b,_0x3bbaf0]});}function lr(_0x3fc405){let {left:_0x2cc353,top:_0xd102f3,width:_0x4335bf,height:_0x5f1d79}=_0x3fc405;return{'left':_0x2cc353,'right':_0x2cc353+_0x4335bf,'top':_0xd102f3-0x38,'bottom':_0xd102f3+_0x5f1d79};}let ur=class extends _0x9932d8{constructor(_0x4281d9,_0x2fcaf6,_0x29f194,_0xd8ccd3,_0xe1c1be,_0x3e4610){const _0x2b2aa5=_0x2d31a4;super(),this[_0x2b2aa5(0x2d9)]=_0x4281d9,this[_0x2b2aa5(0x313)]=_0x2fcaf6,this['_boardElementService']=_0x29f194,this[_0x2b2aa5(0x318)]=_0xd8ccd3,this[_0x2b2aa5(0x395)]=_0xe1c1be,this[_0x2b2aa5(0x381)]=_0x3e4610,K(this,_0x2b2aa5(0x3c3),null),K(this,'_popupSelectionKey',null),this['_init']();}[_0x2d31a4(0x262)](){const _0x1acb41=_0x2d31a4;this[_0x1acb41(0x310)](),super['dispose']();}['_init'](){const _0x460af8=_0x2d31a4;let _0x132b6e=this['_renderContext'][_0x460af8(0x37b)][_0x460af8(0x4ac)]();this[_0x460af8(0x42f)](_0x5a6bc0(_0x132b6e[_0x460af8(0x335)]['pipe'](_0x35dd5f(this[_0x460af8(0x1c3)]))[_0x460af8(0x45b)](()=>this[_0x460af8(0x320)]()))),this[_0x460af8(0x42f)](_0x5a6bc0(_0x132b6e[_0x460af8(0x21b)][_0x460af8(0x4b1)](_0x35dd5f(this['dispose$']))[_0x460af8(0x45b)](()=>this['_clearPopupIfSelectionChanged']()))),this[_0x460af8(0x42f)](_0x5a6bc0(_0x132b6e[_0x460af8(0x387)][_0x460af8(0x4b1)](_0x35dd5f(this[_0x460af8(0x1c3)]))[_0x460af8(0x45b)](()=>this[_0x460af8(0x310)]()))),this[_0x460af8(0x42f)](_0x5a6bc0(_0x132b6e[_0x460af8(0x26e)][_0x460af8(0x4b1)](_0x35dd5f(this[_0x460af8(0x1c3)]))['subscribe'](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this['disposeWithMe'](_0x5a6bc0(this[_0x460af8(0x318)][_0x460af8(0x1b8)][_0x460af8(0x4b1)](_0x35dd5f(this['dispose$']))[_0x460af8(0x45b)](()=>setTimeout(()=>this[_0x460af8(0x320)](),0x0)))),this[_0x460af8(0x42f)](_0x5a6bc0(this[_0x460af8(0x381)][_0x460af8(0x2d0)][_0x460af8(0x4b1)](_0x35dd5f(this[_0x460af8(0x1c3)]))[_0x460af8(0x45b)](_0x330cf7=>{const _0x34d73f=_0x460af8;if(_0x330cf7){this[_0x34d73f(0x310)]();return;}setTimeout(()=>this[_0x34d73f(0x320)](),0x0);}))),this[_0x460af8(0x42f)](_0x5a6bc0(this[_0x460af8(0x395)][_0x460af8(0x24d)][_0x460af8(0x4b1)](_0x35dd5f(this[_0x460af8(0x1c3)]))[_0x460af8(0x45b)](_0x3039f1=>{const _0x3ec04e=_0x460af8;if((_0x3039f1==null?void 0x0:_0x3039f1['unitId'])===this[_0x3ec04e(0x2d9)]['unitId']){if(_0x3039f1[_0x3ec04e(0x1c0)]){this['_clearPopup']();return;}setTimeout(()=>this[_0x3ec04e(0x320)](),0x0);}})));}[_0x2d31a4(0x310)](){const _0x3dcc63=_0x2d31a4;var _0x1d707e;(_0x1d707e=this[_0x3dcc63(0x3c3)])==null||_0x1d707e[_0x3dcc63(0x262)](),this[_0x3dcc63(0x3c3)]=null,this['_popupSelectionKey']=null;}[_0x2d31a4(0x3de)](){setTimeout(()=>{const _0x4bdac8=_0x4547;this[_0x4bdac8(0x447)]()||this[_0x4bdac8(0x310)]();},0x0);}[_0x2d31a4(0x447)](){const _0xd82cd9=_0x2d31a4;let _0x5d4754=this[_0xd82cd9(0x318)][_0xd82cd9(0x276)]();return!!_0x5d4754[_0xd82cd9(0x233)]&&_0x5d4754[_0xd82cd9(0x3f9)][_0xd82cd9(0x1ab)]>0x0&&this['_popupSelectionKey']===this[_0xd82cd9(0x3cb)](_0x5d4754['context'][_0xd82cd9(0x499)],_0x5d4754[_0xd82cd9(0x233)][_0xd82cd9(0x452)],_0x5d4754['selectedIds']);}[_0x2d31a4(0x3cb)](_0x4c00e1,_0x4d7b32,_0x37a315){const _0x5d4334=_0x2d31a4;return _0x4c00e1+':'+_0x4d7b32+':'+_0x37a315[_0x5d4334(0x319)](',');}[_0x2d31a4(0x2bd)](_0xe7487d,_0x3fe3f5,_0x22c1c8,_0x2a8a2c){const _0x41c5b8=_0x2d31a4;let _0x1ca4e5=this[_0x41c5b8(0x235)]['getElementData'](_0xe7487d,_0x3fe3f5),_0x1a567f=Object['values'](_0x1ca4e5)[_0x41c5b8(0x261)](_0x3cb635=>{const _0x105531=_0x41c5b8;let _0x270412=_0x1b1ea2(_0x3cb635[_0x105531(0x4b4)]);return(_0x270412==null?void 0x0:_0x270412[_0x105531(0x2f8)])===_0x22c1c8&&_0x270412[_0x105531(0x254)]===_0x2a8a2c;});if(_0x1a567f&&'connectorData'in _0x1a567f[_0x41c5b8(0x4b4)])return _0x1a567f[_0x41c5b8(0x4b4)][_0x41c5b8(0x1f7)][_0x41c5b8(0x2a4)];}[_0x2d31a4(0x320)](){const _0x50fbed=_0x2d31a4;var _0x2632b0,_0x47a157,_0x4f4a4e;if(this[_0x50fbed(0x381)][_0x50fbed(0x38e)]){this[_0x50fbed(0x310)]();return;}let _0x336457=this[_0x50fbed(0x395)][_0x50fbed(0x2ea)]();if((_0x336457==null?void 0x0:_0x336457['visible'])===!0x0&&_0x336457[_0x50fbed(0x499)]===this[_0x50fbed(0x2d9)][_0x50fbed(0x499)]){this[_0x50fbed(0x310)]();return;}let _0x567a9e=this[_0x50fbed(0x318)][_0x50fbed(0x276)]();if(_0x567a9e[_0x50fbed(0x23a)]){this[_0x50fbed(0x310)]();return;}if(_0x4483a0({'context':_0x567a9e['context'],'selectedIds':_0x567a9e[_0x50fbed(0x3f9)],'getElementById':(_0xf7bf35,_0x4baa21,_0x34cda6)=>this['_boardElementService'][_0x50fbed(0x4c8)](_0xf7bf35,_0x4baa21,_0x34cda6)})[_0x50fbed(0x29c)]!==_0x50fbed(0x3fd)){this[_0x50fbed(0x310)]();return;}let _0x1aee39=this[_0x50fbed(0x2d9)]['scene']['getTransformerByCreate']()[_0x50fbed(0x241)](),_0x3001dd=Array['from'](_0x1aee39[_0x50fbed(0x379)]())[_0x50fbed(0x461)](_0x59e8c8=>this[_0x50fbed(0x472)](_0x59e8c8))['filter'](_0x5db336=>!!_0x5db336)[_0x50fbed(0x2c5)](_0x483b48=>!!_0xd8e37e(_0x483b48[_0x50fbed(0x43e)][_0x50fbed(0x4b4)])),_0x4a32b0=_0x3001dd[_0x50fbed(0x261)](_0x3ccb43=>_0x3ccb43[_0x50fbed(0x43e)][_0x50fbed(0x421)]===_0x567a9e['focusedId'])??_0x3001dd[0x0]??this[_0x50fbed(0x3f8)]();if(!_0x4a32b0){this[_0x50fbed(0x310)]();return;}let _0x1f1d4f=_0xd8e37e(_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x4b4)]);if(!_0x1f1d4f){this[_0x50fbed(0x310)]();return;}let _0x1db4ce=(_0x2632b0=this['_boardElementService'][_0x50fbed(0x397)](_0x4a32b0['elementData'][_0x50fbed(0x499)],_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x452)])[_0x1f1d4f[_0x50fbed(0x2f8)]])==null?void 0x0:_0x2632b0[_0x50fbed(0x4b4)],_0x3fe2f6=_0x3a557b(_0x1db4ce),_0x5410e0=_0x1db4ce==null||(_0x47a157=_0x1db4ce['custom'])==null||(_0x47a157=_0x47a157[_0x50fbed(0x378)])==null||(_0x47a157=_0x47a157[_0x50fbed(0x31a)])==null?void 0x0:_0x47a157[_0x50fbed(0x46d)],_0x2c72b4=((_0x3fe2f6==null?void 0x0:_0x3fe2f6[_0x50fbed(0x31a)][_0x50fbed(0x46d)])??_0x5410e0)===_0x50fbed(0x433)&&(_0x1f1d4f['parentNodeId']===null||_0x1f1d4f[_0x50fbed(0x384)]==='top'),_0x351f5c=_0x1f1d4f[_0x50fbed(0x3e6)]!==null&&_0x1f1d4f['side']!=='top'&&_0x1f1d4f[_0x50fbed(0x384)]!=='bottom',_0xb2492e=_0x2c72b4||_0x351f5c,_0x410d82=((_0x4f4a4e=_0x567a9e[_0x50fbed(0x233)])==null?void 0x0:_0x4f4a4e[_0x50fbed(0x499)])===_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x499)]&&_0x567a9e[_0x50fbed(0x233)][_0x50fbed(0x452)]===_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x452)]&&_0x567a9e[_0x50fbed(0x3f9)][_0x50fbed(0x1ab)]?_0x567a9e[_0x50fbed(0x3f9)]:[_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x421)]],_0x370ca8=this[_0x50fbed(0x3cb)](_0x4a32b0['elementData'][_0x50fbed(0x499)],_0x4a32b0['elementData'][_0x50fbed(0x452)],_0x410d82);this['_popupDisposable']&&this[_0x50fbed(0x22c)]===_0x370ca8||(this['_clearPopup'](),this[_0x50fbed(0x3c3)]=this['disposeWithMe'](this[_0x50fbed(0x313)][_0x50fbed(0x259)](_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x499)],_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x452)],_0x4a32b0[_0x50fbed(0x367)],{'componentKey':Kn,'direction':_0x50fbed(0x4b8),'offset':[0x0,0x8],..._0xb2492e?{'anchorBoundResolver':lr}:null,'extraProps':{'unitId':_0x4a32b0['elementData'][_0x50fbed(0x499)],'subUnitId':_0x4a32b0[_0x50fbed(0x43e)]['subUnitId'],'elementId':_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x421)],'scopeId':_0x1f1d4f[_0x50fbed(0x2f8)],'isRootNode':_0x1f1d4f[_0x50fbed(0x3e6)]===null,'left':_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x4b4)][_0x50fbed(0x357)][_0x50fbed(0x1ac)]??0x0,'top':_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x4b4)][_0x50fbed(0x357)][_0x50fbed(0x258)]??0x0,'shapeData':_0x4a32b0['elementData'][_0x50fbed(0x4b4)][_0x50fbed(0x48d)]===_0x2cde10['Shape']?_0x4a32b0[_0x50fbed(0x43e)][_0x50fbed(0x4b4)][_0x50fbed(0x26a)]:void 0x0,'layout':_0x3fe2f6==null?void 0x0:_0x3fe2f6[_0x50fbed(0x31a)],'incomingConnectorStyle':this[_0x50fbed(0x2bd)](_0x4a32b0[_0x50fbed(0x43e)]['unitId'],_0x4a32b0['elementData']['subUnitId'],_0x1f1d4f['structureScopeId'],_0x4a32b0['elementData'][_0x50fbed(0x421)])}})),this['_popupSelectionKey']=_0x370ca8);}[_0x2d31a4(0x3f8)](){const _0x366460=_0x2d31a4;var _0x40474d;let _0x2512f1=this[_0x366460(0x318)][_0x366460(0x276)](),_0x4dbdfc=_0x2512f1[_0x366460(0x233)],_0x54a6a8=_0x2512f1[_0x366460(0x330)]??_0x2512f1[_0x366460(0x3f9)][0x0];if(!_0x4dbdfc||!_0x54a6a8)return null;let _0x2d62b3=this[_0x366460(0x235)][_0x366460(0x4c8)](_0x4dbdfc[_0x366460(0x499)],_0x4dbdfc[_0x366460(0x452)],_0x54a6a8);if(!_0x2d62b3||!_0xd8e37e(_0x2d62b3[_0x366460(0x4b4)]))return null;let _0x524f7a=_0x1b247d(_0x4dbdfc[_0x366460(0x499)],_0x54a6a8),_0x593978=this[_0x366460(0x2d9)][_0x366460(0x37b)],_0x1034b2=((_0x40474d=_0x593978[_0x366460(0x4ba)])==null?void 0x0:_0x40474d[_0x366460(0x248)](_0x593978,_0x524f7a))??this[_0x366460(0x2d9)][_0x366460(0x37b)][_0x366460(0x1e8)](_0x524f7a);return _0x1034b2?{'object':_0x1034b2,'elementData':_0x2d62b3}:null;}[_0x2d31a4(0x472)](_0x9f376e){const _0x32e3c6=_0x2d31a4;var _0x2c1e25;if(!_0x9f376e)return null;let _0x66a447=_0x2913da(_0x9f376e['oKey']);if(!_0x66a447)return null;let _0x51fa17=this[_0x32e3c6(0x318)][_0x32e3c6(0x276)](),_0x4e7884=((_0x2c1e25=_0x51fa17[_0x32e3c6(0x233)])==null?void 0x0:_0x2c1e25['unitId'])===_0x66a447[_0x32e3c6(0x499)]?_0x51fa17['context'][_0x32e3c6(0x452)]:void 0x0;if(!_0x4e7884)return null;let _0x468051=this[_0x32e3c6(0x235)][_0x32e3c6(0x4c8)](_0x66a447[_0x32e3c6(0x499)],_0x4e7884,_0x66a447[_0x32e3c6(0x421)]);return _0x468051?{'object':_0x9f376e,'elementData':_0x468051}:null;}};ur=J([q(0x1,_0x4a13c4(_0x45c11c)),q(0x2,_0x4a13c4(_0x495947)),q(0x3,_0x4a13c4(_0x452a90)),q(0x4,_0x4a13c4(_0x16b84e)),q(0x5,_0x4a13c4(_0x17676c))],ur);const dr='board-mind-map-pending-insert-object',fr=_0x19c79d['preview'];function pr(_0x1b3b13,_0x211ef4){const _0x4b0342=_0x2d31a4;return(_0x1b3b13??[])['reduce']((_0x22596a,_0x430fda)=>(_0x22596a[_0x430fda['side']??_0x211ef4][_0x4b0342(0x228)](_0x430fda),_0x22596a),{'left':[],'right':[],'top':[],'bottom':[]});}function mr(_0x1dfabe){const _0x22d233=_0x2d31a4;return _0x1dfabe===_0x22d233(0x341)||_0x1dfabe===_0x22d233(0x45d)||_0x1dfabe===_0x22d233(0x453);}function hr(_0x1e8744){const _0x4a6e16=_0x2d31a4;return _0x1e8744===_0x4a6e16(0x338)||_0x1e8744===_0x4a6e16(0x25f);}function gr(_0x26aadd,_0x5e7bcf,_0x40e13d){const _0xd5b464=_0x2d31a4;return _0x40e13d===_0xd5b464(0x341)?'left':_0x40e13d===_0xd5b464(0x45d)?_0xd5b464(0x234):_0x26aadd[_0xd5b464(0x384)]===_0xd5b464(0x1ac)||_0x26aadd[_0xd5b464(0x384)]===_0xd5b464(0x234)?_0x26aadd[_0xd5b464(0x384)]:_0x5e7bcf%0x2==0x0?_0xd5b464(0x1ac):_0xd5b464(0x234);}function _r(_0x5081bb,_0x153b4d){const _0x3a5845=_0x2d31a4;return(_0x153b4d==null?void 0x0:_0x153b4d[_0x3a5845(0x47d)][_0x3a5845(0x20c)])??_0x5081bb??[];}var vr=class extends _0x3866b7{constructor(_0xeaf3d3=dr,_0x2c07bd){const _0x3ea436=_0x2d31a4;super(_0xeaf3d3),K(this,_0x3ea436(0x363),{'point':null,'children':[]}),this[_0x3ea436(0x244)]=!0x1,this[_0x3ea436(0x2cb)]=_0x4ea4f2[_0x3ea436(0x2ad)],this[_0x3ea436(0x2a6)](_0x2c07bd);}[_0x2d31a4(0x2a6)](_0x1092ce){const _0x32a91b=_0x2d31a4;this['_state']={...this[_0x32a91b(0x363)],..._0x1092ce},this[_0x32a91b(0x363)]['point']?this['show']():this[_0x32a91b(0x2c0)](),this['makeDirty'](!0x0);}[_0x2d31a4(0x3e3)](_0x5d444a){return!0x1;}[_0x2d31a4(0x2dd)](_0x8403d2,_0x546fa5){const _0x20a539=_0x2d31a4;let _0x3a8634=this[_0x20a539(0x363)][_0x20a539(0x463)];if(!_0x3a8634||!this[_0x20a539(0x1c0)])return this['makeDirty'](!0x1),this;let _0x1946ee=Number[_0x20a539(0x31d)](this['_state'][_0x20a539(0x439)])&&(this[_0x20a539(0x363)][_0x20a539(0x439)]??0x0)>0x0?this[_0x20a539(0x363)][_0x20a539(0x439)]:0x1,_0x4f12d9=_0x1b9954[_0x20a539(0x376)],_0x3a075f=_0x1b9954['rootHeight'],_0x453d95=_0x1b9954[_0x20a539(0x45e)],_0x3c5c9a=_0x1b9954[_0x20a539(0x468)],_0x4cc52a=_0x5242c3['horizontalGap'],_0x424723=_0x5242c3['siblingGap'],_0x101f10=this[_0x20a539(0x363)][_0x20a539(0x46d)]==='mindmap-vertical',_0x4aae8a=pr(this[_0x20a539(0x363)][_0x20a539(0x20c)],_0x101f10?_0x20a539(0x394):_0x20a539(0x234)),_0x32c320=_0x3a8634['x']-_0x4f12d9/0x2,_0x5e08b4=_0x3a8634['y']-_0x3a075f/0x2;if(_0x8403d2[_0x20a539(0x496)](),_0x8403d2[_0x20a539(0x4b5)]=X[_0x20a539(0x20a)],_0x8403d2[_0x20a539(0x2df)]=X['lineWidthScreen']/_0x1946ee,_0x8403d2[_0x20a539(0x2f5)]=X[_0x20a539(0x487)],hr(this[_0x20a539(0x363)]['structureKind'])){let _0x1380eb=_r(this[_0x20a539(0x363)]['children'],this[_0x20a539(0x363)]['blueprint']),_0x2385c6=this['_state']['structureKind']==='timeline-horizontal';if(_0x1380eb[_0x20a539(0x1ab)]>0x0){if(_0x8403d2[_0x20a539(0x416)](),_0x2385c6){let _0x4fb52d=_0x453d95,_0x580ae8=_0x3c5c9a,_0x324d52=_0x5242c3[_0x20a539(0x36f)],_0x42a7f3=_0x3a8634['y'],_0x22b3f9=_0x32c320+_0x4f12d9,_0x29e840=_0x3a8634['y']-_0x580ae8/0x2,_0x629fdf=_0x32c320+_0x4f12d9+_0x324d52;_0x8403d2[_0x20a539(0x392)](_0x22b3f9,_0x42a7f3),_0x8403d2['lineTo'](_0x629fdf,_0x42a7f3),_0x1380eb[_0x20a539(0x205)]((_0xc7e71d,_0x1eeba2)=>{const _0x3c1e96=_0x20a539;let _0x3a504b=_0x629fdf+_0x1eeba2*(_0x4fb52d+_0x324d52);if(_0x1eeba2>0x0){let _0x498809=_0x629fdf+(_0x1eeba2-0x1)*(_0x4fb52d+_0x324d52)+_0x4fb52d;_0x8403d2[_0x3c1e96(0x392)](_0x498809,_0x42a7f3),_0x8403d2[_0x3c1e96(0x32a)](_0x3a504b,_0x42a7f3);}_0x8403d2['moveTo'](_0x3a504b,_0x42a7f3),_0x8403d2[_0x3c1e96(0x32a)](_0x3a504b+_0x4fb52d,_0x42a7f3);}),_0x8403d2[_0x20a539(0x2ac)](),_0x1380eb[_0x20a539(0x205)]((_0x529cf8,_0x49f4bb)=>{const _0x2a2dda=_0x20a539;Z(_0x8403d2,_0x629fdf+_0x49f4bb*(_0x4fb52d+_0x324d52),_0x29e840,_0x4fb52d,_0x580ae8,X[_0x2a2dda(0x3a9)]),_0x8403d2[_0x2a2dda(0x2db)]=X['ghostFillColor'],_0x8403d2[_0x2a2dda(0x4ca)](),_0x8403d2[_0x2a2dda(0x2ac)]();}),_0x1380eb[_0x20a539(0x205)]((_0x3687cc,_0x102337)=>{const _0xa4fdec=_0x20a539;if(!(_0xa4fdec(0x20c)in _0x3687cc)||_0x3687cc[_0xa4fdec(0x20c)]['length']===0x0)return;let _0x712d1d=_0x629fdf+_0x102337*(_0x4fb52d+_0x324d52),_0x554333=_0x712d1d+_0x4fb52d/0x2,_0x3c0608=_0x3687cc[_0xa4fdec(0x384)]===_0xa4fdec(0x394)?_0xa4fdec(0x394):_0xa4fdec(0x258),_0x10f26e=_0x3687cc[_0xa4fdec(0x20c)]['slice'](0x0,0x2),_0x278866=_0x10f26e[_0xa4fdec(0x1ab)]*_0x580ae8+Math['max'](0x0,_0x10f26e[_0xa4fdec(0x1ab)]-0x1)*_0x424723,_0x6e2997=_0x712d1d+_0x4fb52d+_0x5242c3[_0xa4fdec(0x46b)],_0x27d7c3=_0x3c0608===_0xa4fdec(0x258)?_0x29e840-_0x4cc52a-_0x278866:_0x29e840+_0x580ae8+_0x4cc52a,_0x7bc0e6=_0x27d7c3+_0x278866/0x2;_0x8403d2['beginPath'](),_0x8403d2['moveTo'](_0x554333,_0x3c0608===_0xa4fdec(0x258)?_0x29e840:_0x29e840+_0x580ae8),_0x8403d2[_0xa4fdec(0x32a)](_0x554333,_0x7bc0e6),_0x8403d2[_0xa4fdec(0x32a)](_0x6e2997,_0x7bc0e6),_0x10f26e[_0xa4fdec(0x205)]((_0x4fe5f5,_0x2922c6)=>{const _0x553dc0=_0xa4fdec;let _0x462887=_0x27d7c3+_0x2922c6*(_0x580ae8+_0x424723)+_0x580ae8/0x2;_0x8403d2['moveTo'](_0x6e2997,_0x462887),_0x8403d2[_0x553dc0(0x32a)](_0x6e2997+_0x4fb52d,_0x462887);}),_0x8403d2[_0xa4fdec(0x2ac)](),_0x10f26e['forEach']((_0x5e9fe4,_0x3f8638)=>{const _0x49568a=_0xa4fdec;let _0x253e19=_0x27d7c3+_0x3f8638*(_0x580ae8+_0x424723);Z(_0x8403d2,_0x6e2997,_0x253e19,_0x4fb52d,_0x580ae8,X[_0x49568a(0x3a9)]),_0x8403d2['fillStyle']=X[_0x49568a(0x4c6)],_0x8403d2[_0x49568a(0x4ca)](),_0x8403d2[_0x49568a(0x2ac)]();});});}else{let _0x3ee79f=_0x3a8634['x'],_0x298a1b=_0x5e08b4+_0x3a075f,_0x540f86=_0x5242c3[_0x20a539(0x36f)],_0x5fec17=_0x5e08b4+_0x3a075f+_0x540f86,_0x4ad2c7=_0x5fec17+(_0x1380eb[_0x20a539(0x1ab)]-0x1)*(_0x3c5c9a+_0x540f86)+_0x3c5c9a/0x2;_0x8403d2[_0x20a539(0x392)](_0x3ee79f,_0x298a1b),_0x8403d2[_0x20a539(0x32a)](_0x3ee79f,_0x4ad2c7),_0x1380eb[_0x20a539(0x205)]((_0xc96c5,_0x5c003c)=>{const _0x168e07=_0x20a539;let _0x11effe=_0x5fec17+_0x5c003c*(_0x3c5c9a+_0x540f86)+_0x3c5c9a/0x2,_0x2c4f42=_0xc96c5['side']===_0x168e07(0x234)?_0x168e07(0x234):_0x168e07(0x1ac),_0x477d9d=_0x2c4f42===_0x168e07(0x234)?_0x3ee79f+_0x5242c3[_0x168e07(0x46b)]:_0x3ee79f-_0x5242c3['branchGap']-_0x453d95,_0x5ce621=_0x2c4f42===_0x168e07(0x234)?_0x477d9d:_0x477d9d+_0x453d95;_0x8403d2[_0x168e07(0x392)](_0x3ee79f,_0x11effe),_0x8403d2[_0x168e07(0x32a)](_0x5ce621,_0x11effe);}),_0x8403d2['stroke'](),_0x1380eb[_0x20a539(0x205)]((_0x56451e,_0x506397)=>{const _0x32e31a=_0x20a539;let _0x4ce2fa=_0x5fec17+_0x506397*(_0x3c5c9a+_0x540f86);Z(_0x8403d2,(_0x56451e[_0x32e31a(0x384)]==='right'?_0x32e31a(0x234):_0x32e31a(0x1ac))==_0x32e31a(0x234)?_0x3ee79f+_0x5242c3['branchGap']:_0x3ee79f-_0x5242c3[_0x32e31a(0x46b)]-_0x453d95,_0x4ce2fa,_0x453d95,_0x3c5c9a,X[_0x32e31a(0x3a9)]),_0x8403d2[_0x32e31a(0x2db)]=X[_0x32e31a(0x4c6)],_0x8403d2[_0x32e31a(0x4ca)](),_0x8403d2['stroke']();}),_0x1380eb['forEach']((_0x5ea9a9,_0x42a9aa)=>{const _0x13d3fd=_0x20a539;if(!(_0x13d3fd(0x20c)in _0x5ea9a9)||_0x5ea9a9['children']['length']===0x0)return;let _0x1c23bf=_0x5fec17+_0x42a9aa*(_0x3c5c9a+_0x540f86)+_0x3c5c9a/0x2,_0x2823a9=_0x5ea9a9['side']==='right'?_0x13d3fd(0x234):_0x13d3fd(0x1ac),_0x4fe473=_0x5ea9a9['children'][_0x13d3fd(0x471)](0x0,0x2),_0x18c247=_0x4fe473[_0x13d3fd(0x1ab)]*_0x3c5c9a+Math[_0x13d3fd(0x34f)](0x0,_0x4fe473[_0x13d3fd(0x1ab)]-0x1)*_0x424723,_0x5a330d=_0x2823a9===_0x13d3fd(0x234)?_0x3ee79f+_0x5242c3[_0x13d3fd(0x46b)]:_0x3ee79f-_0x5242c3['branchGap']-_0x453d95,_0x2cf23a=_0x2823a9===_0x13d3fd(0x234)?_0x5a330d+_0x453d95+_0x4cc52a:_0x5a330d-_0x4cc52a-_0x453d95,_0x22dc8a=_0x1c23bf-_0x18c247/0x2,_0x46eddd=_0x2823a9===_0x13d3fd(0x234)?_0x5a330d+_0x453d95:_0x5a330d,_0x3480ec=_0x2823a9==='right'?_0x2cf23a:_0x2cf23a+_0x453d95;_0x8403d2[_0x13d3fd(0x416)](),_0x8403d2[_0x13d3fd(0x392)](_0x46eddd,_0x1c23bf),_0x8403d2[_0x13d3fd(0x32a)](_0x3480ec,_0x1c23bf),_0x4fe473[_0x13d3fd(0x205)]((_0x40aa0b,_0x5c7b65)=>{const _0x37d602=_0x13d3fd;let _0x3667ef=_0x22dc8a+_0x5c7b65*(_0x3c5c9a+_0x424723)+_0x3c5c9a/0x2;_0x8403d2[_0x37d602(0x392)](_0x3480ec,_0x3667ef),_0x8403d2[_0x37d602(0x32a)](_0x2823a9===_0x37d602(0x234)?_0x2cf23a+_0x453d95:_0x2cf23a,_0x3667ef);}),_0x8403d2[_0x13d3fd(0x2ac)](),_0x4fe473[_0x13d3fd(0x205)]((_0x40bc19,_0x5ed58f)=>{const _0x320134=_0x13d3fd;let _0xf3af1f=_0x22dc8a+_0x5ed58f*(_0x3c5c9a+_0x424723);Z(_0x8403d2,_0x2cf23a,_0xf3af1f,_0x453d95,_0x3c5c9a,X[_0x320134(0x3a9)]),_0x8403d2['fillStyle']=X['ghostFillColor'],_0x8403d2[_0x320134(0x4ca)](),_0x8403d2[_0x320134(0x2ac)]();});});}}}else{if(mr(this[_0x20a539(0x363)]['structureKind'])){let _0x10c97e=this['_state'][_0x20a539(0x20c)]??[],_0x5a96b8=_0x5e08b4+_0x3a075f,_0x170173=_0x5a96b8+_0x4cc52a,_0x1b3287=_0x3a8634['x'];if(_0x10c97e['length']>0x0){let _0x96be1=_0x170173+(_0x10c97e['length']-0x1)*(_0x3c5c9a+_0x424723)+_0x3c5c9a/0x2;_0x8403d2[_0x20a539(0x416)](),_0x8403d2[_0x20a539(0x392)](_0x1b3287,_0x5a96b8),_0x8403d2['lineTo'](_0x1b3287,_0x96be1),_0x10c97e['forEach']((_0x5d4a5d,_0x2a1693)=>{const _0x5b4616=_0x20a539;let _0x2a74f5=gr(_0x5d4a5d,_0x2a1693,this['_state'][_0x5b4616(0x46d)]),_0x373079=_0x170173+_0x2a1693*(_0x3c5c9a+_0x424723),_0x38b844=_0x2a74f5===_0x5b4616(0x234)?_0x1b3287+_0x4cc52a:_0x1b3287-_0x4cc52a-_0x453d95,_0x1f2c57=_0x373079+_0x3c5c9a/0x2;_0x8403d2[_0x5b4616(0x392)](_0x1b3287,_0x1f2c57),_0x8403d2[_0x5b4616(0x32a)](_0x2a74f5===_0x5b4616(0x234)?_0x38b844:_0x38b844+_0x453d95,_0x1f2c57);}),_0x8403d2['stroke'](),_0x10c97e['forEach']((_0xf8b4,_0x1277cd)=>{const _0x4f4488=_0x20a539;let _0x406152=gr(_0xf8b4,_0x1277cd,this[_0x4f4488(0x363)][_0x4f4488(0x46d)]),_0xc01e7a=_0x170173+_0x1277cd*(_0x3c5c9a+_0x424723);Z(_0x8403d2,_0x406152==='right'?_0x1b3287+_0x4cc52a:_0x1b3287-_0x4cc52a-_0x453d95,_0xc01e7a,_0x453d95,_0x3c5c9a,X[_0x4f4488(0x3a9)]),_0x8403d2['fillStyle']=X[_0x4f4488(0x4c6)],_0x8403d2[_0x4f4488(0x4ca)](),_0x8403d2[_0x4f4488(0x2ac)]();});}}else _0x101f10&&['top','bottom'][_0x20a539(0x205)](_0x5ee3f1=>{const _0x5222b6=_0x20a539;let _0x35f1d7=_0x4aae8a[_0x5ee3f1];if(_0x35f1d7['length']===0x0)return;let _0x34d327=_0x35f1d7['length']*_0x453d95+Math[_0x5222b6(0x34f)](0x0,_0x35f1d7[_0x5222b6(0x1ab)]-0x1)*_0x424723,_0xf6eefd=_0x3a8634['x']-_0x34d327/0x2,_0x301df5=_0x5ee3f1===_0x5222b6(0x394)?_0x5e08b4+_0x3a075f:_0x5e08b4,_0x1dd14f=_0x5ee3f1===_0x5222b6(0x394)?_0x301df5+_0x5242c3[_0x5222b6(0x46b)]:_0x301df5-_0x5242c3['branchGap'],_0x454c25=_0x5ee3f1===_0x5222b6(0x394)?_0x5e08b4+_0x3a075f+_0x4cc52a:_0x5e08b4-_0x4cc52a-_0x3c5c9a;_0x8403d2['beginPath'](),_0x8403d2[_0x5222b6(0x392)](_0x3a8634['x'],_0x301df5),_0x8403d2[_0x5222b6(0x32a)](_0x3a8634['x'],_0x1dd14f),_0x35f1d7[_0x5222b6(0x1ab)]>0x1&&(_0x8403d2['moveTo'](_0xf6eefd+_0x453d95/0x2,_0x1dd14f),_0x8403d2[_0x5222b6(0x32a)](_0xf6eefd+_0x34d327-_0x453d95/0x2,_0x1dd14f)),_0x35f1d7['forEach']((_0x51ef13,_0x5f5320)=>{const _0x524f01=_0x5222b6;let _0x306351=_0xf6eefd+_0x5f5320*(_0x453d95+_0x424723)+_0x453d95/0x2;_0x8403d2[_0x524f01(0x392)](_0x306351,_0x1dd14f),_0x8403d2[_0x524f01(0x32a)](_0x306351,_0x5ee3f1===_0x524f01(0x394)?_0x454c25:_0x454c25+_0x3c5c9a);}),_0x8403d2[_0x5222b6(0x2ac)](),_0x35f1d7['forEach']((_0x37251d,_0xa796df)=>{const _0x4a20cc=_0x5222b6;Z(_0x8403d2,_0xf6eefd+_0xa796df*(_0x453d95+_0x424723),_0x454c25,_0x453d95,_0x3c5c9a,X[_0x4a20cc(0x3a9)]),_0x8403d2['fillStyle']=X['ghostFillColor'],_0x8403d2['fill'](),_0x8403d2[_0x4a20cc(0x2ac)]();});});}(_0x101f10||mr(this[_0x20a539(0x363)][_0x20a539(0x46d)])||hr(this[_0x20a539(0x363)][_0x20a539(0x46d)])?[]:[_0x20a539(0x1ac),_0x20a539(0x234)])[_0x20a539(0x205)](_0x481d8c=>{const _0x467328=_0x20a539;let _0x4cddce=_0x4aae8a[_0x481d8c];if(_0x4cddce['length']===0x0)return;let _0x20b330=_0x4cddce[_0x467328(0x1ab)]*_0x3c5c9a+Math[_0x467328(0x34f)](0x0,_0x4cddce[_0x467328(0x1ab)]-0x1)*_0x424723,_0x5a850e=_0x3a8634['y']-_0x20b330/0x2,_0x5c6794=_0x481d8c===_0x467328(0x234)?_0x32c320+_0x4f12d9:_0x32c320,_0x15dfeb=_0x481d8c==='right'?_0x5c6794+_0x5242c3[_0x467328(0x46b)]:_0x5c6794-_0x5242c3[_0x467328(0x46b)],_0x405608=_0x481d8c===_0x467328(0x234)?_0x32c320+_0x4f12d9+_0x4cc52a:_0x32c320-_0x4cc52a-_0x453d95;_0x8403d2['beginPath'](),_0x8403d2[_0x467328(0x392)](_0x5c6794,_0x3a8634['y']),_0x8403d2['lineTo'](_0x15dfeb,_0x3a8634['y']),_0x4cddce['length']>0x1&&(_0x8403d2['moveTo'](_0x15dfeb,_0x5a850e+_0x3c5c9a/0x2),_0x8403d2[_0x467328(0x32a)](_0x15dfeb,_0x5a850e+_0x20b330-_0x3c5c9a/0x2)),_0x4cddce[_0x467328(0x205)]((_0x4edee6,_0x4976ec)=>{const _0x47cd95=_0x467328;let _0x581e7d=_0x5a850e+_0x4976ec*(_0x3c5c9a+_0x424723)+_0x3c5c9a/0x2;_0x8403d2['moveTo'](_0x15dfeb,_0x581e7d),_0x8403d2[_0x47cd95(0x32a)](_0x481d8c===_0x47cd95(0x234)?_0x405608:_0x405608+_0x453d95,_0x581e7d);}),_0x8403d2[_0x467328(0x2ac)](),_0x4cddce[_0x467328(0x205)]((_0x15dd09,_0x526f6b)=>{const _0x24e52=_0x467328;let _0x2cc465=_0x5a850e+_0x526f6b*(_0x3c5c9a+_0x424723);Z(_0x8403d2,_0x405608,_0x2cc465,_0x453d95,_0x3c5c9a,X['ghostRadius']),_0x8403d2[_0x24e52(0x2db)]=X['ghostFillColor'],_0x8403d2[_0x24e52(0x4ca)](),_0x8403d2[_0x24e52(0x2ac)]();});}),Z(_0x8403d2,_0x32c320,_0x5e08b4,_0x4f12d9,_0x3a075f,X[_0x20a539(0x48f)]),_0x8403d2[_0x20a539(0x2db)]=X[_0x20a539(0x487)],_0x8403d2[_0x20a539(0x4ca)](),_0x8403d2[_0x20a539(0x2ac)](),_0x8403d2[_0x20a539(0x2db)]=X[_0x20a539(0x488)],_0x8403d2[_0x20a539(0x27e)]=sn(X[_0x20a539(0x2da)],X[_0x20a539(0x4ae)],_0x1946ee),_0x8403d2[_0x20a539(0x410)]='center',_0x8403d2['textBaseline']=_0x20a539(0x3d6);let _0x902b2d=X[_0x20a539(0x390)]/_0x1946ee;return _0x8403d2[_0x20a539(0x238)](_0x355d17,_0x3a8634['x'],_0x3a8634['y'],Math['max'](0x1,_0x4f12d9-_0x902b2d*0x2)),_0x8403d2['restore'](),this[_0x20a539(0x48e)](!0x1),this;}};const yr={'children':[{'text':_0x355d17,'orderKey':_0x5a5595(0x0),'side':_0x2d31a4(0x234)},{'text':_0x355d17,'orderKey':_0x5a5595(0x1),'side':_0x2d31a4(0x234)},{'text':_0x355d17,'orderKey':_0x5a5595(0x2),'side':_0x2d31a4(0x234)}]};var br=class extends _0x13ec99{constructor(..._0x1423d1){super(..._0x1423d1),K(this,'_template',yr);}[_0x2d31a4(0x3b5)](_0x4216ce){const _0x39670e=_0x2d31a4;var _0x36a37f;let _0x507a31=(_0x4216ce==null?void 0x0:_0x4216ce[_0x39670e(0x20c)])??(_0x4216ce==null||(_0x36a37f=_0x4216ce['blueprint'])==null?void 0x0:_0x36a37f[_0x39670e(0x47d)][_0x39670e(0x20c)]);this[_0x39670e(0x1ca)]={'rootText':_0x4216ce==null?void 0x0:_0x4216ce['rootText'],'structureKind':_0x4216ce==null?void 0x0:_0x4216ce[_0x39670e(0x46d)],'branchLineType':_0x4216ce==null?void 0x0:_0x4216ce[_0x39670e(0x365)],'children':this[_0x39670e(0x428)](_0x507a31,_0x4216ce==null?void 0x0:_0x4216ce[_0x39670e(0x46d)]),'blueprint':_0x4216ce!=null&&_0x4216ce['blueprint']?this[_0x39670e(0x2c6)](_0x4216ce[_0x39670e(0x1d4)]):void 0x0};}[_0x2d31a4(0x2f4)](){const _0x390876=_0x2d31a4;var _0x4f1847;return{'rootText':this[_0x390876(0x1ca)]['rootText'],'structureKind':this[_0x390876(0x1ca)][_0x390876(0x46d)],'branchLineType':this[_0x390876(0x1ca)]['branchLineType'],'children':(_0x4f1847=this[_0x390876(0x1ca)][_0x390876(0x20c)])==null?void 0x0:_0x4f1847[_0x390876(0x461)](_0x55d47e=>({..._0x55d47e})),'blueprint':this[_0x390876(0x1ca)][_0x390876(0x1d4)]?this['_cloneBlueprint'](this[_0x390876(0x1ca)][_0x390876(0x1d4)]):void 0x0};}[_0x2d31a4(0x2c6)](_0x197631){const _0x24bf0b=_0x2d31a4;return{'title':_0x197631[_0x24bf0b(0x28f)],'root':this['_cloneBlueprintNode'](_0x197631[_0x24bf0b(0x47d)])};}['_cloneBlueprintNode'](_0x30f3c5){const _0x59353a=_0x2d31a4;return{..._0x30f3c5,'foreignAttributes':_0x30f3c5['foreignAttributes']?{..._0x30f3c5[_0x59353a(0x2f0)]}:void 0x0,'children':_0x30f3c5[_0x59353a(0x20c)]['map'](_0x44ab59=>this[_0x59353a(0x1ea)](_0x44ab59))};}[_0x2d31a4(0x428)](_0x33116f,_0x1a6911){const _0x3a510d=_0x2d31a4;let _0x36671f=!_0x33116f,_0x4c7011=_0x33116f??yr[_0x3a510d(0x20c)];return _0x4c7011==null?void 0x0:_0x4c7011[_0x3a510d(0x461)]((_0x1a1871,_0x59e36f)=>({..._0x1a1871,'text':_0x1a1871[_0x3a510d(0x2be)]??_0x355d17,'side':this[_0x3a510d(0x3bc)](_0x1a1871[_0x3a510d(0x384)],_0x59e36f,_0x1a6911,_0x36671f)}));}[_0x2d31a4(0x3bc)](_0x3bc31c,_0x2b761a,_0x334a6f,_0x5a1c91){const _0x4ccb5d=_0x2d31a4;return _0x334a6f===_0x4ccb5d(0x433)?_0x5a1c91?'bottom':_0x3bc31c??'bottom':_0x334a6f==='tree-left'?_0x5a1c91?'left':_0x3bc31c??_0x4ccb5d(0x1ac):_0x334a6f===_0x4ccb5d(0x45d)?_0x5a1c91?_0x4ccb5d(0x234):_0x3bc31c??_0x4ccb5d(0x234):_0x334a6f===_0x4ccb5d(0x453)?_0x5a1c91?_0x2b761a%0x2==0x0?'left':_0x4ccb5d(0x234):_0x3bc31c??(_0x2b761a%0x2==0x0?_0x4ccb5d(0x1ac):_0x4ccb5d(0x234)):_0x334a6f===_0x4ccb5d(0x338)?_0x5a1c91?_0x2b761a%0x2==0x0?'top':_0x4ccb5d(0x394):_0x3bc31c??(_0x2b761a%0x2==0x0?_0x4ccb5d(0x258):_0x4ccb5d(0x394)):_0x334a6f===_0x4ccb5d(0x25f)?_0x5a1c91?_0x2b761a%0x2==0x0?_0x4ccb5d(0x1ac):'right':_0x3bc31c??(_0x2b761a%0x2==0x0?'left':'right'):_0x3bc31c;}};function xr(_0x29e7f9,_0x19d7c3){const _0x578982=_0x2d31a4;let _0x24bf75=Number[_0x578982(0x31d)](_0x19d7c3[_0x578982(0x439)])&&_0x19d7c3[_0x578982(0x439)]>0x0?_0x19d7c3['zoomRatio']:0x1;return{'x':Math['round']((_0x29e7f9[_0x578982(0x4aa)]-_0x19d7c3[_0x578982(0x293)]['x'])/_0x24bf75),'y':Math['round']((_0x29e7f9[_0x578982(0x492)]-_0x19d7c3['panOffset']['y'])/_0x24bf75)};}function Sr(_0x832e90){const _0x5bf42d=_0x2d31a4;var _0x8fe179;if(_0x832e90!=null&&_0x832e90['dispose']){_0x832e90[_0x5bf42d(0x262)]();return;}_0x832e90==null||(_0x8fe179=_0x832e90['unsubscribe'])==null||_0x8fe179['call'](_0x832e90);}function _0x4547(_0x42fea9,_0x46e477){_0x42fea9=_0x42fea9-0x1aa;const _0x3b8f0a=_0x3b8f();let _0x4547e7=_0x3b8f0a[_0x42fea9];return _0x4547e7;}function Cr(_0x1b896e){const _0xb86f6c=_0x2d31a4;var _0x2c21a3;return _0x1b896e[_0xb86f6c(0x41c)]===_0x1210f4[_0xb86f6c(0x32e)]&&((_0x2c21a3=_0x1b896e[_0xb86f6c(0x20f)])==null?void 0x0:_0x2c21a3['type'])===_0x1210f4[_0xb86f6c(0x32e)];}let wr=class extends _0x9932d8{constructor(_0x44f0b1,_0x387532,_0x263e1f,_0x37a489,_0x189adb,_0x19c6f6,_0x2db467){const _0x32b63b=_0x2d31a4;super(),this[_0x32b63b(0x2d9)]=_0x44f0b1,this['_instanceSrv']=_0x387532,this[_0x32b63b(0x39d)]=_0x263e1f,this['_commandService']=_0x37a489,this['_insertStateService']=_0x189adb,this[_0x32b63b(0x318)]=_0x19c6f6,this[_0x32b63b(0x395)]=_0x2db467,K(this,_0x32b63b(0x3d1),null),K(this,'_lastPoint',null),this[_0x32b63b(0x430)]();}[_0x2d31a4(0x430)](){const _0x1237be=_0x2d31a4;var _0x205c78;let {scene:_0x1f503e,unitId:_0x486724}=this['_renderContext'],_0x1bc705=this[_0x1237be(0x3d8)]['getUnit'](_0x486724,_0x4468f4[_0x1237be(0x3be)]);if(!_0x1bc705)return;let _0x545b0f=(_0x205c78=_0x1f503e[_0x1237be(0x396)])==null?void 0x0:_0x205c78[_0x1237be(0x4cb)]({'priority':0x4,'next':([_0x52c2ad,_0x528e52])=>this[_0x1237be(0x344)](_0x52c2ad,_0x528e52)}),_0x36bb0f=_0x1f503e[_0x1237be(0x1b9)]['subscribeEvent']({'priority':0x4,'next':([_0x8a4c16,_0x2ef1de])=>this[_0x1237be(0x497)](_0x1bc705,_0x8a4c16,_0x2ef1de)});this[_0x1237be(0x42f)](_0x5a6bc0(()=>Sr(_0x545b0f))),this[_0x1237be(0x42f)](_0x5a6bc0(()=>Sr(_0x36bb0f)));let _0x1551b6=this[_0x1237be(0x39d)][_0x1237be(0x1b8)]['subscribe'](()=>this[_0x1237be(0x3d0)]());this[_0x1237be(0x42f)](_0x5a6bc0(()=>Sr(_0x1551b6))),this['disposeWithMe'](_0x5a6bc0(()=>{const _0x5c38da=_0x1237be;this[_0x5c38da(0x21f)]();})),this['_syncPreviewObject']();}[_0x2d31a4(0x3d0)](){const _0x3a8fd1=_0x2d31a4;var _0x4e90c6,_0x2f3a3c;let _0x4b783d=this['_stateService'][_0x3a8fd1(0x41b)]();if(!Cr(_0x4b783d)){this[_0x3a8fd1(0x21f)]();return;}let _0x13e43d=this[_0x3a8fd1(0x237)](),_0x1ed78c=this['_insertStateService'][_0x3a8fd1(0x2f4)]();_0x13e43d['updateState']({'point':this[_0x3a8fd1(0x2b3)],'structureKind':_0x1ed78c['structureKind'],'children':_0x1ed78c[_0x3a8fd1(0x20c)],'blueprint':_0x1ed78c[_0x3a8fd1(0x1d4)],'zoomRatio':_0x4b783d[_0x3a8fd1(0x439)]}),(_0x4e90c6=(_0x2f3a3c=this[_0x3a8fd1(0x2d9)][_0x3a8fd1(0x37b)])[_0x3a8fd1(0x48e)])==null||_0x4e90c6[_0x3a8fd1(0x248)](_0x2f3a3c,!0x0);}[_0x2d31a4(0x237)](){const _0x310fcd=_0x2d31a4;var _0x5262af,_0x5e9802;if(this[_0x310fcd(0x3d1)])return this[_0x310fcd(0x3d1)];let _0x122380=this[_0x310fcd(0x2d3)][_0x310fcd(0x2f4)](),_0x695e40=new vr(dr,{'point':this['_lastPoint'],'structureKind':_0x122380['structureKind'],'children':_0x122380[_0x310fcd(0x20c)],'blueprint':_0x122380[_0x310fcd(0x1d4)],'zoomRatio':this['_stateService'][_0x310fcd(0x41b)]()[_0x310fcd(0x439)]});return this[_0x310fcd(0x3d1)]=_0x695e40,(_0x5262af=(_0x5e9802=this[_0x310fcd(0x2d9)]['scene'])['addObject'])==null||_0x5262af[_0x310fcd(0x248)](_0x5e9802,_0x695e40,fr),_0x695e40;}[_0x2d31a4(0x21f)](){const _0x4bfa0b=_0x2d31a4;var _0x559f12,_0x12f94a,_0x439d92,_0x188d7e;if(!this[_0x4bfa0b(0x3d1)]){this[_0x4bfa0b(0x2b3)]=null;return;}(_0x559f12=(_0x12f94a=this[_0x4bfa0b(0x2d9)][_0x4bfa0b(0x37b)])[_0x4bfa0b(0x432)])==null||_0x559f12[_0x4bfa0b(0x248)](_0x12f94a,[this[_0x4bfa0b(0x3d1)]]),this[_0x4bfa0b(0x3d1)]=null,this[_0x4bfa0b(0x2b3)]=null,(_0x439d92=(_0x188d7e=this[_0x4bfa0b(0x2d9)][_0x4bfa0b(0x37b)])[_0x4bfa0b(0x48e)])==null||_0x439d92[_0x4bfa0b(0x248)](_0x188d7e,!0x0);}[_0x2d31a4(0x252)](_0x5b762f){const _0x19827a=_0x2d31a4;let _0x2b709e=this[_0x19827a(0x39d)][_0x19827a(0x41b)]();return xr(_0x5b762f,{'panOffset':_0x2b709e[_0x19827a(0x42b)],'zoomRatio':_0x2b709e[_0x19827a(0x439)]});}[_0x2d31a4(0x311)](_0x5bb0b9){const _0x5a4445=_0x2d31a4;return{'left':Math[_0x5a4445(0x43c)](_0x5bb0b9['x']-_0x1b9954[_0x5a4445(0x376)]/0x2),'top':Math[_0x5a4445(0x43c)](_0x5bb0b9['y']-_0x1b9954[_0x5a4445(0x1f5)]/0x2)};}[_0x2d31a4(0x344)](_0x4e0fa4,_0x357286){const _0x4ce414=_0x2d31a4;Cr(this[_0x4ce414(0x39d)][_0x4ce414(0x41b)]())&&(this['_lastPoint']=this[_0x4ce414(0x252)](_0x4e0fa4),this[_0x4ce414(0x3d0)](),_0x357286[_0x4ce414(0x1c4)]());}async[_0x2d31a4(0x497)](_0x46b632,_0x4f394e,_0x123c95){const _0xe5d376=_0x2d31a4;let _0x1cdb1b=await this[_0xe5d376(0x345)](_0x46b632,_0x4f394e,_0x123c95);if(!_0x1cdb1b)return;let _0x28cf88={'unitId':this['_renderContext']['unitId'],'subUnitId':_0x1cdb1b['subUnitId']};this['_boardTextEditingService'][_0xe5d376(0x283)](),this[_0xe5d376(0x395)]['setEditing']({..._0x28cf88,'shapeId':_0x1cdb1b['rootNodeId'],'shapeKey':_0x1b247d(_0x28cf88['unitId'],_0x1cdb1b['rootNodeId']),'visible':!0x0});}async[_0x2d31a4(0x345)](_0x3dead1,_0x24cdaa,_0x24a0ac){const _0x4cf9d8=_0x2d31a4;var _0x1d913;let _0x327d77=this[_0x4cf9d8(0x39d)][_0x4cf9d8(0x41b)](),_0x45d206=_0x24cdaa['button']??0x0;if(!Cr(_0x327d77)||_0x45d206!==0x0)return null;let _0xf4ec8e=this['_getPointFromEvent'](_0x24cdaa),_0x1a669a=this[_0x4cf9d8(0x311)](_0xf4ec8e),_0x1ca803=this[_0x4cf9d8(0x2d3)][_0x4cf9d8(0x2f4)](),_0x133e38=_0x75cb4(0x6),_0x16c7e9=_0x3dead1[_0x4cf9d8(0x4a9)](),_0x2ad7c6=this[_0x4cf9d8(0x2a3)][_0x4cf9d8(0x38b)](_0x2bec0c['id'],{'unitId':this['_renderContext'][_0x4cf9d8(0x499)],'subUnitId':_0x16c7e9,'left':_0x1a669a[_0x4cf9d8(0x1ac)],'top':_0x1a669a[_0x4cf9d8(0x258)],'rootNodeId':_0x133e38,'rootText':_0x1ca803['rootText'],'structureKind':_0x1ca803['structureKind'],'branchLineType':_0x1ca803[_0x4cf9d8(0x365)],'children':_0x1ca803['children'],'blueprint':_0x1ca803[_0x4cf9d8(0x1d4)]});if(this[_0x4cf9d8(0x39d)][_0x4cf9d8(0x371)](_0x1210f4['Select']),_0x24a0ac[_0x4cf9d8(0x1c4)](),(_0x1d913=_0x24cdaa[_0x4cf9d8(0x2f2)])==null||_0x1d913['call'](_0x24cdaa),!await _0x2ad7c6||this[_0x4cf9d8(0x22f)])return null;let _0x5e985a={'unitId':this[_0x4cf9d8(0x2d9)]['unitId'],'subUnitId':_0x16c7e9};return this[_0x4cf9d8(0x318)]['selectElements'](_0x5e985a,[_0x133e38],_0x133e38),{'rootNodeId':_0x133e38,'subUnitId':_0x16c7e9};}};wr=J([q(0x1,_0x28c364),q(0x2,_0x18a088),q(0x3,_0x2a0a40),q(0x4,_0x4a13c4(br)),q(0x5,_0x452a90),q(0x6,_0x4a13c4(_0x16b84e))],wr);var Tr=class extends _0x13ec99{constructor(..._0x4f0402){const _0x583ae1=_0x2d31a4;super(..._0x4f0402),K(this,_0x583ae1(0x417),new _0x93fc85()),K(this,'refresh$',this[_0x583ae1(0x417)]['asObservable']());}[_0x2d31a4(0x45f)](_0x342856){const _0x4a56fc=_0x2d31a4;this[_0x4a56fc(0x417)][_0x4a56fc(0x250)](_0x342856);}['dispose'](){const _0x447791=_0x2d31a4;this[_0x447791(0x417)][_0x447791(0x46e)](),super[_0x447791(0x262)]();}};function Er(_0x245485){const _0x2bb8ab=_0x2d31a4;return typeof _0x245485=='number'&&Number[_0x2bb8ab(0x31d)](_0x245485)&&_0x245485>0x0;}function Dr(_0x39cd29,_0x483751,_0x3180c5){const _0x1c0d8d=_0x2d31a4;let _0x29261e=_0x39cd29[_0x483751],_0x57b1ed=_0xd8e37e(_0x29261e==null?void 0x0:_0x29261e['element']);if(!_0x29261e||!_0x57b1ed)return null;let _0x4bd37a=_0x824281(_0x29261e,_0x3180c5);if(!_0x4bd37a)return null;let _0x215a54=_0x29261e[_0x1c0d8d(0x357)]??_0x29261e['element'][_0x1c0d8d(0x357)],_0x453f6f={..._0x39cd29,[_0x483751]:{..._0x29261e,'transform':{..._0x215a54,'width':_0x4bd37a['width'],'height':_0x4bd37a['height']},'element':{..._0x29261e[_0x1c0d8d(0x4b4)],'transform':{..._0x29261e['element'][_0x1c0d8d(0x357)],'width':_0x4bd37a[_0x1c0d8d(0x35d)],'height':_0x4bd37a[_0x1c0d8d(0x41e)]}}}};return _0x278ec5(_0x453f6f,_0x57b1ed[_0x1c0d8d(0x2f8)]);}let Or=class extends _0x9932d8{constructor(_0x3fb011,_0xf9bc67,_0x36f8ac,_0x521e7c,_0x47b68c,_0x4208dd){const _0x9e2638=_0x2d31a4;super(),this['_renderContext']=_0x3fb011,this[_0x9e2638(0x30d)]=_0xf9bc67,this[_0x9e2638(0x235)]=_0x36f8ac,this[_0x9e2638(0x4b2)]=_0x521e7c,this['_previewRefreshService']=_0x47b68c,this['_commandService']=_0x4208dd,K(this,_0x9e2638(0x1f1),null),K(this,_0x9e2638(0x49e),{'match':_0x16b3ad=>_0x16b3ad[_0x9e2638(0x499)]===this[_0x9e2638(0x2d9)][_0x9e2638(0x499)]&&!!_0xd8e37e(_0x16b3ad['element']),'resolveHostSize':_0x204c9e=>this[_0x9e2638(0x403)](_0x204c9e),'previewHostSize':_0x401f38=>this[_0x9e2638(0x42e)](_0x401f38),'updateHostSize':_0x15ac31=>this[_0x9e2638(0x33a)](_0x15ac31),'updateShapeText':_0x3d5faf=>this['_updateShapeText'](_0x3d5faf)}),this[_0x9e2638(0x42f)](this[_0x9e2638(0x30d)]['registerProvider'](this[_0x9e2638(0x49e)])),this['_initEditingRestore'](),this[_0x9e2638(0x42f)](_0x5a6bc0(()=>this[_0x9e2638(0x45a)]()));}[_0x2d31a4(0x33a)](_0x328c15){const _0x511da8=_0x2d31a4;return this[_0x511da8(0x42e)](_0x328c15);}['_updateShapeText'](_0x2f40f0){const _0x2fc1cd=_0x2d31a4;let _0x2ba175=_0x2f40f0['params'][_0x2fc1cd(0x2e8)]?this[_0x2fc1cd(0x403)]({'elementData':_0x2f40f0[_0x2fc1cd(0x43e)],'params':_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x2e8)]}):null,_0x950dea=_0x2f40f0[_0x2fc1cd(0x43e)][_0x2fc1cd(0x357)]??_0x2f40f0[_0x2fc1cd(0x43e)]['element'][_0x2fc1cd(0x357)];return(!_0x2ba175||_0x2ba175[_0x2fc1cd(0x35d)]===_0x950dea[_0x2fc1cd(0x35d)]&&_0x2ba175[_0x2fc1cd(0x41e)]===_0x950dea[_0x2fc1cd(0x41e)])&&_0x216b42(_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x29d)],_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x30b)])?!0x0:this['_commandService'][_0x2fc1cd(0x2e6)](_0x3a4e24['id'],{'unitId':_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x499)],'subUnitId':_0x2f40f0['params'][_0x2fc1cd(0x452)],'nodeId':_0x2f40f0[_0x2fc1cd(0x49d)][_0x2fc1cd(0x3c9)],'shapeText':_0x2f40f0['params'][_0x2fc1cd(0x29d)],..._0x2ba175?{'hostSize':{'width':_0x2ba175[_0x2fc1cd(0x35d)],'height':_0x2ba175[_0x2fc1cd(0x41e)]}}:null});}[_0x2d31a4(0x42e)](_0x3ee996){const _0x2e6982=_0x2d31a4;let _0xd63630=this[_0x2e6982(0x403)](_0x3ee996);if(!_0xd63630)return!0x1;let _0x3036b2=_0x3ee996[_0x2e6982(0x43e)][_0x2e6982(0x357)]??_0x3ee996[_0x2e6982(0x43e)]['element'][_0x2e6982(0x357)];return!this[_0x2e6982(0x1f1)]&&_0x3036b2['width']===_0xd63630[_0x2e6982(0x35d)]&&_0x3036b2['height']===_0xd63630[_0x2e6982(0x41e)]||this[_0x2e6982(0x286)](_0x3ee996,_0xd63630),!0x0;}[_0x2d31a4(0x403)](_0x1342b6){const _0x1585a8=_0x2d31a4;return!Er(_0x1342b6[_0x1585a8(0x49d)]['width'])||!Er(_0x1342b6[_0x1585a8(0x49d)][_0x1585a8(0x41e)])?null:_0x824281(_0x1342b6[_0x1585a8(0x43e)],{'width':_0x1342b6[_0x1585a8(0x49d)]['width'],'height':_0x1342b6[_0x1585a8(0x49d)]['height']});}[_0x2d31a4(0x3a5)](){const _0x2892e9=_0x2d31a4;this[_0x2892e9(0x42f)](_0x5a6bc0(this[_0x2892e9(0x4b2)][_0x2892e9(0x24d)][_0x2892e9(0x4b1)](_0x35dd5f(this[_0x2892e9(0x1c3)]))['subscribe'](_0x2b6ced=>{const _0x5d1c7b=_0x2892e9;_0x2b6ced||this[_0x5d1c7b(0x45a)]();})));}[_0x2d31a4(0x286)](_0x14ada3,_0x471571){const _0x416804=_0x2d31a4;var _0xdd65c4;let _0x47feb6=this[_0x416804(0x235)]['getElementData'](_0x14ada3['params'][_0x416804(0x499)],_0x14ada3[_0x416804(0x49d)][_0x416804(0x452)]),_0x521ac4=Dr(_0x47feb6,_0x14ada3['params'][_0x416804(0x3c9)],_0x471571),_0x547835=_0xd8e37e((_0xdd65c4=_0x47feb6[_0x14ada3[_0x416804(0x49d)][_0x416804(0x3c9)]])==null?void 0x0:_0xdd65c4[_0x416804(0x4b4)]);_0x521ac4&&_0x547835&&(this[_0x416804(0x1f1)]={'unitId':_0x14ada3[_0x416804(0x49d)][_0x416804(0x499)],'subUnitId':_0x14ada3[_0x416804(0x49d)][_0x416804(0x452)],'scopeId':_0x547835[_0x416804(0x2f8)]},this['_syncElementDataToScene'](_0x521ac4,_0x547835[_0x416804(0x2f8)])&&this[_0x416804(0x332)][_0x416804(0x45f)]({'unitId':_0x14ada3[_0x416804(0x49d)][_0x416804(0x499)],'subUnitId':_0x14ada3[_0x416804(0x49d)][_0x416804(0x452)],'nodeId':_0x14ada3['params']['shapeId'],'scopeId':_0x547835[_0x416804(0x2f8)]}));}[_0x2d31a4(0x45a)](){const _0x5d47e4=_0x2d31a4;let _0x3c5fae=this[_0x5d47e4(0x1f1)];if(!_0x3c5fae)return;this[_0x5d47e4(0x1f1)]=null;let _0x4dd64e=this[_0x5d47e4(0x235)][_0x5d47e4(0x397)](_0x3c5fae['unitId'],_0x3c5fae['subUnitId']);this[_0x5d47e4(0x2b5)](_0x4dd64e,_0x3c5fae[_0x5d47e4(0x435)])&&this[_0x5d47e4(0x332)][_0x5d47e4(0x45f)]({'unitId':_0x3c5fae[_0x5d47e4(0x499)],'subUnitId':_0x3c5fae['subUnitId'],'nodeId':_0x3c5fae[_0x5d47e4(0x435)],'scopeId':_0x3c5fae[_0x5d47e4(0x435)]});}[_0x2d31a4(0x2b5)](_0x5f365d,_0x574417){const _0x4534c0=_0x2d31a4;let _0x7d68d8=!0x1;if(Object[_0x4534c0(0x379)](_0x5f365d)['forEach'](_0xcf61f0=>{const _0x4a80ac=_0x4534c0;var _0x17d861;let _0x2382ea=_0xd8e37e(_0xcf61f0[_0x4a80ac(0x4b4)]),_0x106540=(_0x17d861=_0xcf61f0[_0x4a80ac(0x4b4)]['custom'])==null?void 0x0:_0x17d861[_0x4a80ac(0x40c)];if(_0xcf61f0[_0x4a80ac(0x421)]!==_0x574417&&(_0x2382ea==null?void 0x0:_0x2382ea['structureScopeId'])!==_0x574417&&(_0x106540==null?void 0x0:_0x106540[_0x4a80ac(0x2f8)])!==_0x574417)return;let _0x20215e=this[_0x4a80ac(0x4a2)](_0xcf61f0[_0x4a80ac(0x421)]);_0x20215e&&(_0x7d68d8=_0x239c11(_0x20215e,_0xcf61f0,{'elementData':_0x5f365d,'unitId':this[_0x4a80ac(0x2d9)][_0x4a80ac(0x499)]})||_0x7d68d8);}),_0x7d68d8){var _0x2c0a8b,_0x5bc6ce;this['_renderContext'][_0x4534c0(0x37b)][_0x4534c0(0x48e)](!0x0),(_0x2c0a8b=(_0x5bc6ce=this[_0x4534c0(0x2d9)][_0x4534c0(0x37b)])['requestRender'])==null||_0x2c0a8b[_0x4534c0(0x248)](_0x5bc6ce);}return _0x7d68d8;}[_0x2d31a4(0x4a2)](_0x55df97){const _0x9bc593=_0x2d31a4;var _0x4ec7d8;let _0x2779d4=_0x1b247d(this[_0x9bc593(0x2d9)][_0x9bc593(0x499)],_0x55df97),_0x3e1d22=this[_0x9bc593(0x2d9)][_0x9bc593(0x37b)];return((_0x4ec7d8=_0x3e1d22[_0x9bc593(0x4ba)])==null?void 0x0:_0x4ec7d8[_0x9bc593(0x248)](_0x3e1d22,_0x2779d4))??this[_0x9bc593(0x2d9)]['scene'][_0x9bc593(0x1e8)](_0x2779d4)??null;}};Or=J([q(0x1,_0x4a13c4(_0x11420d)),q(0x2,_0x4a13c4(_0x495947)),q(0x3,_0x4a13c4(_0x16b84e)),q(0x4,_0x4a13c4(Tr)),q(0x5,_0x2a0a40)],Or);const $={'touchHitRadius':0x16,'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':Y[_0x2d31a4(0x487)],'surfaceColor':Y[_0x2d31a4(0x33e)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':Y['fontFamily']};function kr(_0x42e938){const _0x4a86bc=_0x2d31a4;let _0x5d6d5d=$[_0x4a86bc(0x25d)],_0x5032d7=$[_0x4a86bc(0x3fc)],_0x5753aa=$['siblingHoverRadius'],_0x697d66=$[_0x4a86bc(0x3d5)],_0x4789cb=$[_0x4a86bc(0x1e9)],_0x38fd3a=_0x4789cb+$[_0x4a86bc(0x1dc)],_0x39d05f=$[_0x4a86bc(0x255)],_0x401857=_0x42e938['bounds']['top']+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x41e)]/0x2,_0x1fe057=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x1ac)]+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x35d)]/0x2,_0x4222f3=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x1ac)]-_0x5d6d5d-_0x697d66,_0xcfb649=_0x42e938['bounds'][_0x4a86bc(0x1ac)]+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x35d)]+_0x5d6d5d+_0x697d66,_0x3843b5=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x258)]-_0x5d6d5d-_0x697d66,_0x158fd6=_0x42e938['bounds'][_0x4a86bc(0x258)]+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x41e)]+_0x5d6d5d+_0x697d66,_0x2b12d1=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x1ac)]-_0x5032d7-_0x697d66,_0x18a8d7=_0x42e938['bounds'][_0x4a86bc(0x1ac)]+_0x42e938[_0x4a86bc(0x4b6)]['width']+_0x5032d7+_0x697d66,_0x5bd9bb=_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x258)]-_0x5032d7-_0x697d66,_0x2746c1=_0x42e938['bounds']['top']+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x41e)]+_0x5032d7+_0x697d66,_0x5f00f0=[],_0x4b72c0=_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)||_0x42e938['side']===_0x4a86bc(0x394),_0xa34df3=_0x4b72c0?_0x1fe057:_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x1ac)?_0x4222f3:_0xcfb649,_0x176995=_0x4b72c0?_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)?_0x3843b5:_0x158fd6:_0x401857;if(_0x42e938[_0x4a86bc(0x45c)]&&_0x42e938[_0x4a86bc(0x402)]>0x0)return _0x5f00f0[_0x4a86bc(0x228)]({'kind':_0x4a86bc(0x3a8),'x':_0xa34df3,'y':_0x176995,'radius':_0x5d6d5d,'badgeCount':_0x42e938[_0x4a86bc(0x402)]}),_0x5f00f0;if(_0x42e938[_0x4a86bc(0x284)]?(_0x42e938[_0x4a86bc(0x3ca)]??(_0x4b72c0?[_0x4a86bc(0x258),_0x4a86bc(0x394)]:['left',_0x4a86bc(0x234)]))[_0x4a86bc(0x205)](_0x23029=>{const _0x1828bb=_0x4a86bc;_0x23029==='top'?_0x5f00f0[_0x1828bb(0x228)]({'kind':_0x1828bb(0x347),'x':_0x1fe057,'y':_0x5bd9bb,'radius':_0x5032d7}):_0x23029===_0x1828bb(0x394)?_0x5f00f0[_0x1828bb(0x228)]({'kind':_0x1828bb(0x4a3),'x':_0x1fe057,'y':_0x2746c1,'radius':_0x5032d7}):_0x23029==='left'?_0x5f00f0[_0x1828bb(0x228)]({'kind':'add-child-left','x':_0x2b12d1,'y':_0x401857,'radius':_0x5032d7}):_0x5f00f0['push']({'kind':_0x1828bb(0x48b),'x':_0x18a8d7,'y':_0x401857,'radius':_0x5032d7});}):(_0x5f00f0[_0x4a86bc(0x228)]({'kind':_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x1ac)?_0x4a86bc(0x27c):_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)?_0x4a86bc(0x347):_0x42e938['side']===_0x4a86bc(0x394)?'add-child-bottom':_0x4a86bc(0x48b),'x':_0x4b72c0?_0x1fe057:_0x42e938[_0x4a86bc(0x384)]==='left'?_0x2b12d1:_0x18a8d7,'y':_0x4b72c0?_0x42e938['side']===_0x4a86bc(0x258)?_0x5bd9bb:_0x2746c1:_0x401857,'radius':_0x5032d7}),_0x4b72c0?(_0x5f00f0[_0x4a86bc(0x228)]({'kind':'add-sibling-before','placement':'before','x':_0x42e938['bounds']['left']-_0x38fd3a,'y':_0x401857,'radius':_0x5753aa,'visualRadius':_0x4789cb}),_0x5f00f0[_0x4a86bc(0x228)]({'kind':_0x4a86bc(0x28b),'placement':_0x4a86bc(0x289),'x':_0x42e938['bounds'][_0x4a86bc(0x1ac)]+_0x42e938['bounds'][_0x4a86bc(0x35d)]+_0x38fd3a,'y':_0x401857,'radius':_0x5753aa,'visualRadius':_0x4789cb})):(_0x5f00f0[_0x4a86bc(0x228)]({'kind':'add-sibling-before','placement':'before','x':_0x1fe057,'y':_0x42e938['bounds']['top']-_0x38fd3a,'radius':_0x5753aa,'visualRadius':_0x4789cb}),_0x5f00f0[_0x4a86bc(0x228)]({'kind':'add-sibling-after','placement':_0x4a86bc(0x289),'x':_0x1fe057,'y':_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x258)]+_0x42e938[_0x4a86bc(0x4b6)][_0x4a86bc(0x41e)]+_0x38fd3a,'radius':_0x5753aa,'visualRadius':_0x4789cb}))),_0x42e938['hasChildren']){let _0x21e39a={'kind':_0x4a86bc(0x3a8),'x':_0xa34df3,'y':_0x176995,'radius':_0x5d6d5d};_0x5f00f0[_0x4a86bc(0x228)](_0x21e39a);let _0x4f6b27=_0x5f00f0[_0x4a86bc(0x261)](_0x4986f0=>_0x4986f0[_0x4a86bc(0x3e4)]===(_0x42e938['side']===_0x4a86bc(0x1ac)?'add-child-left':_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)?_0x4a86bc(0x347):_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x394)?_0x4a86bc(0x4a3):_0x4a86bc(0x48b)));_0x4f6b27&&Math[_0x4a86bc(0x436)](_0x4f6b27['x']-_0x21e39a['x'],_0x4f6b27['y']-_0x21e39a['y'])<_0x39d05f&&(_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)||_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x394)?_0x4f6b27['y']=_0x21e39a['y']+(_0x42e938[_0x4a86bc(0x384)]===_0x4a86bc(0x258)?-_0x39d05f:_0x39d05f):_0x4f6b27['x']=_0x21e39a['x']+(_0x42e938[_0x4a86bc(0x384)]==='left'?-_0x39d05f:_0x39d05f));}return _0x5f00f0;}const Ar='board-mind-map-node-controls-object',jr=_0x19c79d[_0x2d31a4(0x4a0)];function Mr(_0x18f5a3,_0x430ffa){const _0x5cc216=_0x2d31a4;return!!_0x18f5a3&&_0x18f5a3[_0x5cc216(0x3e4)]===_0x430ffa[_0x5cc216(0x3e4)]&&_0x18f5a3['x']===_0x430ffa['x']&&_0x18f5a3['y']===_0x430ffa['y'];}var Nr=class extends _0x4e627c{constructor(_0x4ce956=Ar,_0x1387a2){const _0x2c052f=_0x2d31a4;super(_0x4ce956),K(this,_0x2c052f(0x363),{'controls':[]}),this[_0x2c052f(0x244)]=!0x0,this[_0x2c052f(0x2cb)]=_0x4ea4f2[_0x2c052f(0x4a8)],this['updateState'](_0x1387a2);}[_0x2d31a4(0x2a6)](_0x2a7828){const _0x5657ed=_0x2d31a4;this[_0x5657ed(0x363)]={...this['_state'],..._0x2a7828},this[_0x5657ed(0x363)][_0x5657ed(0x291)][_0x5657ed(0x1ab)]>0x0?this[_0x5657ed(0x4bf)]():this[_0x5657ed(0x2c0)](),this[_0x5657ed(0x48e)](!0x0);}['setHoveredControl'](_0x537cc4){const _0x4f8b96=_0x2d31a4;!_0x537cc4&&!this[_0x4f8b96(0x363)][_0x4f8b96(0x3c0)]||_0x537cc4&&Mr(this[_0x4f8b96(0x363)]['hoveredControl'],_0x537cc4)||(this[_0x4f8b96(0x363)]={...this[_0x4f8b96(0x363)],'hoveredControl':_0x537cc4},this[_0x4f8b96(0x48e)](!0x0));}[_0x2d31a4(0x27a)](_0x32a9e7,_0x55dcfd){const _0x46a6aa=_0x2d31a4;var _0x297ff9;let _0x2f9ecd=(_0x297ff9=this['getScene']())==null?void 0x0:_0x297ff9[_0x46a6aa(0x483)](),_0x48623d=null,_0x15fc64=0x1/0x0;for(let _0x415664=this[_0x46a6aa(0x363)]['controls']['length']-0x1;_0x415664>=0x0;--_0x415664){let _0x54943c=this[_0x46a6aa(0x363)][_0x46a6aa(0x291)][_0x415664],_0x584d1c=Math[_0x46a6aa(0x436)](_0x32a9e7['x']-_0x54943c['x'],_0x32a9e7['y']-_0x54943c['y']);if(_0x55dcfd!==_0x4ace31[_0x46a6aa(0x3c2)]){if(_0x584d1c<=_0x54943c['radius'])return _0x54943c;continue;}let _0xbab551=Math[_0x46a6aa(0x436)]((_0x32a9e7['x']-_0x54943c['x'])*((_0x2f9ecd==null?void 0x0:_0x2f9ecd['scaleX'])??0x1),(_0x32a9e7['y']-_0x54943c['y'])*((_0x2f9ecd==null?void 0x0:_0x2f9ecd['scaleY'])??0x1));(_0x584d1c<=_0x54943c[_0x46a6aa(0x25d)]||_0xbab551<=$['touchHitRadius'])&&_0xbab551<_0x15fc64&&(_0x48623d=_0x54943c,_0x15fc64=_0xbab551);}return _0x48623d;}[_0x2d31a4(0x278)](_0x3676ee){const _0x407c55=_0x2d31a4;var _0x23868a;let _0x5b7bba=this[_0x407c55(0x27a)](_0x3676ee,_0x4ace31[_0x407c55(0x3c2)]),_0x4ba955=(_0x23868a=this['getScene']())==null?void 0x0:_0x23868a[_0x407c55(0x483)]();return _0x5b7bba?Math[_0x407c55(0x436)]((_0x3676ee['x']-_0x5b7bba['x'])*((_0x4ba955==null?void 0x0:_0x4ba955[_0x407c55(0x35e)])??0x1),(_0x3676ee['y']-_0x5b7bba['y'])*((_0x4ba955==null?void 0x0:_0x4ba955[_0x407c55(0x280)])??0x1)):0x1/0x0;}[_0x2d31a4(0x3e3)](_0x407401){const _0x61f720=_0x2d31a4;return!!this[_0x61f720(0x27a)]({'x':_0x407401['x'],'y':_0x407401['y']});}['render'](_0x1611c6,_0x59386d){const _0x106c3d=_0x2d31a4;return!this[_0x106c3d(0x1c0)]||this[_0x106c3d(0x363)][_0x106c3d(0x291)]['length']===0x0?(this[_0x106c3d(0x48e)](!0x1),this):(_0x1611c6[_0x106c3d(0x496)](),this['_state'][_0x106c3d(0x291)]['forEach'](_0x476203=>{const _0x4499bb=_0x106c3d;let _0x235e25=Mr(this['_state'][_0x4499bb(0x3c0)],_0x476203),_0xb7fb24=_0x476203[_0x4499bb(0x2d5)]!==void 0x0,_0x42f9d2=_0x476203['kind']===_0x4499bb(0x27c)||_0x476203['kind']===_0x4499bb(0x48b)||_0x476203['kind']===_0x4499bb(0x347)||_0x476203[_0x4499bb(0x3e4)]===_0x4499bb(0x4a3),_0x4b8f28=_0x476203['kind']===_0x4499bb(0x40e)||_0x476203[_0x4499bb(0x3e4)]===_0x4499bb(0x28b),_0x2ea08e=_0x4b8f28&&!_0x235e25?_0x476203[_0x4499bb(0x315)]??_0x476203[_0x4499bb(0x25d)]:_0x476203[_0x4499bb(0x25d)];if(_0x1611c6[_0x4499bb(0x416)](),_0x1611c6[_0x4499bb(0x2db)]=_0x476203[_0x4499bb(0x3e4)]===_0x4499bb(0x3a8)?$['surfaceColor']:$['primaryColor'],_0x1611c6[_0x4499bb(0x2f5)]=$[_0x4499bb(0x487)],_0x1611c6[_0x4499bb(0x2df)]=$[_0x4499bb(0x21c)],_0x1611c6['arc'](_0x476203['x'],_0x476203['y'],_0x2ea08e,0x0,Math['PI']*0x2),_0x1611c6[_0x4499bb(0x4ca)](),(!_0x4b8f28||_0x235e25)&&_0x1611c6['stroke'](),!_0xb7fb24&&(!_0x4b8f28||_0x235e25)){if(_0x1611c6[_0x4499bb(0x416)](),_0x1611c6['strokeStyle']=_0x476203['kind']===_0x4499bb(0x3a8)?$[_0x4499bb(0x487)]:$[_0x4499bb(0x33e)],_0x1611c6[_0x4499bb(0x2df)]=_0x4b8f28?$['glyphWidth']:_0x235e25?$['glyphHoverWidth']:$[_0x4499bb(0x370)],_0x1611c6[_0x4499bb(0x208)]=_0x4499bb(0x43c),_0x476203[_0x4499bb(0x3e4)]===_0x4499bb(0x3a8)){let _0x229653=$[_0x4499bb(0x2a9)];_0x1611c6[_0x4499bb(0x392)](_0x476203['x']+_0x229653/0x2,_0x476203['y']-_0x229653),_0x1611c6[_0x4499bb(0x32a)](_0x476203['x']-_0x229653/0x2,_0x476203['y']),_0x1611c6[_0x4499bb(0x32a)](_0x476203['x']+_0x229653/0x2,_0x476203['y']+_0x229653);}else{let _0x231fa2=_0x4b8f28?$[_0x4499bb(0x35c)]:_0x42f9d2?$['addChildGlyphSize']:$[_0x4499bb(0x2a9)];_0x1611c6[_0x4499bb(0x392)](_0x476203['x']-_0x231fa2,_0x476203['y']),_0x1611c6[_0x4499bb(0x32a)](_0x476203['x']+_0x231fa2,_0x476203['y']),_0x1611c6[_0x4499bb(0x392)](_0x476203['x'],_0x476203['y']-_0x231fa2),_0x1611c6[_0x4499bb(0x32a)](_0x476203['x'],_0x476203['y']+_0x231fa2);}_0x1611c6[_0x4499bb(0x2ac)]();}_0xb7fb24&&(_0x1611c6['fillStyle']=$[_0x4499bb(0x487)],_0x1611c6['font']=$[_0x4499bb(0x20b)]+'\x20'+$[_0x4499bb(0x1b7)]+_0x4499bb(0x3c6)+$[_0x4499bb(0x3bf)],_0x1611c6['textAlign']=_0x4499bb(0x4a4),_0x1611c6[_0x4499bb(0x47e)]=_0x4499bb(0x3d6),_0x1611c6['fillText'](String(_0x476203[_0x4499bb(0x2d5)]),_0x476203['x'],_0x476203['y']));}),_0x1611c6[_0x106c3d(0x3f5)](),this['makeDirty'](!0x1),this);}};function Pr(_0x5f4faf){const _0x5124a9=_0x2d31a4;return _0x5f4faf===_0x5124a9(0x341)||_0x5f4faf===_0x5124a9(0x45d)||_0x5f4faf==='tree-alternate';}function Fr(_0x19526f){const _0x5c989d=_0x2d31a4;return _0x19526f===_0x5c989d(0x338)||_0x19526f===_0x5c989d(0x25f);}function Ir(_0xbd1a50,_0x349153){const _0x249ebb=_0x2d31a4;let _0x5fddf9=Number[_0x249ebb(0x31d)](_0x349153[_0x249ebb(0x439)])&&_0x349153[_0x249ebb(0x439)]>0x0?_0x349153[_0x249ebb(0x439)]:0x1;return{'x':Math['round']((_0xbd1a50[_0x249ebb(0x4aa)]-_0x349153['panOffset']['x'])/_0x5fddf9),'y':Math[_0x249ebb(0x43c)]((_0xbd1a50[_0x249ebb(0x492)]-_0x349153[_0x249ebb(0x293)]['y'])/_0x5fddf9)};}let Lr=class extends _0x9932d8{constructor(_0x2834ca,_0x5a9862,_0x48076d,_0x2afc21,_0x340b04,_0xa6cd90,_0xea197c,_0x49ffc9,_0x124ca5){const _0x54e3e8=_0x2d31a4;super(),this[_0x54e3e8(0x2d9)]=_0x2834ca,this[_0x54e3e8(0x235)]=_0x5a9862,this['_elementStateService']=_0x48076d,this['_stateService']=_0x2afc21,this[_0x54e3e8(0x2a3)]=_0x340b04,this[_0x54e3e8(0x395)]=_0xa6cd90,this[_0x54e3e8(0x1bd)]=_0xea197c,this[_0x54e3e8(0x332)]=_0x49ffc9,this[_0x54e3e8(0x306)]=_0x124ca5,K(this,_0x54e3e8(0x431),null),K(this,'_objectEventDisposables',null),K(this,_0x54e3e8(0x3df),null),K(this,_0x54e3e8(0x457),null),this[_0x54e3e8(0x430)]();}['_init'](){const _0x3f8a1=_0x2d31a4;var _0x231464,_0x5ce6fd,_0x3551ac;let {scene:_0x22f6ce}=this[_0x3f8a1(0x2d9)],_0x43b0c7=(_0x231464=_0x22f6ce['getTransformerByCreate'])==null?void 0x0:_0x231464['call'](_0x22f6ce);_0x43b0c7&&(this[_0x3f8a1(0x42f)](_0x5a6bc0(_0x43b0c7['changing$']['pipe'](_0x35dd5f(this[_0x3f8a1(0x1c3)]))['subscribe'](({objects:_0x338a3e})=>{this['_syncControls'](_0x338a3e,{'hideRootControls':!0x0});}))),this[_0x3f8a1(0x42f)](_0x5a6bc0(_0x43b0c7[_0x3f8a1(0x26e)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))[_0x3f8a1(0x45b)](_0x2b7dd1=>{const _0x2d2555=_0x3f8a1;let _0x2cff74=_0x2b7dd1==null?void 0x0:_0x2b7dd1[_0x2d2555(0x1e7)];this[_0x2d2555(0x4b9)](_0x2cff74),setTimeout(()=>this[_0x2d2555(0x4b9)](_0x2cff74),0x0);})))),this[_0x3f8a1(0x42f)](_0x5a6bc0(this[_0x3f8a1(0x318)][_0x3f8a1(0x1b8)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))[_0x3f8a1(0x45b)](()=>this[_0x3f8a1(0x4b9)]()))),this[_0x3f8a1(0x42f)](_0x5a6bc0(this[_0x3f8a1(0x39d)][_0x3f8a1(0x1b8)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))['subscribe'](()=>this[_0x3f8a1(0x4b9)]()))),this[_0x3f8a1(0x42f)](_0x5a6bc0(this[_0x3f8a1(0x235)][_0x3f8a1(0x27d)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))[_0x3f8a1(0x45b)](_0x19112c=>{const _0x47a066=_0x3f8a1;let _0x5c124c=this[_0x47a066(0x318)][_0x47a066(0x276)]()[_0x47a066(0x233)];_0x5c124c&&_0x19112c[_0x47a066(0x354)](_0x4a31c8=>_0x4a31c8[_0x47a066(0x499)]===_0x5c124c[_0x47a066(0x499)]&&_0x4a31c8[_0x47a066(0x452)]===_0x5c124c[_0x47a066(0x452)]&&(_0x4a31c8['elementId']===this[_0x47a066(0x3df)]||_0x4a31c8[_0x47a066(0x421)]===this[_0x47a066(0x457)]))&&this['_syncControls']();}))),this[_0x3f8a1(0x42f)](_0x5a6bc0(this[_0x3f8a1(0x332)][_0x3f8a1(0x223)][_0x3f8a1(0x4b1)](_0x35dd5f(this[_0x3f8a1(0x1c3)]))[_0x3f8a1(0x45b)](_0x3b5d15=>{const _0x59fa51=_0x3f8a1;let _0x12fc7d=this[_0x59fa51(0x318)][_0x59fa51(0x276)]()[_0x59fa51(0x233)];_0x12fc7d&&_0x12fc7d['unitId']===_0x3b5d15[_0x59fa51(0x499)]&&_0x12fc7d[_0x59fa51(0x452)]===_0x3b5d15[_0x59fa51(0x452)]&&(this[_0x59fa51(0x457)]&&this[_0x59fa51(0x457)]!==_0x3b5d15[_0x59fa51(0x435)]||this[_0x59fa51(0x4b9)]());}))),this['disposeWithMe'](_0x5a6bc0(_0x22f6ce[_0x3f8a1(0x396)][_0x3f8a1(0x4cb)](_0x2a26d8=>this['_handlePointerMove'](_0x2a26d8)))),this[_0x3f8a1(0x42f)](_0x5a6bc0(_0x22f6ce['onPointerDown$']['subscribeEvent']({'priority':0x4,'next':([_0x28e341,_0xeee9fa])=>{const _0x53b3d9=_0x3f8a1;this[_0x53b3d9(0x497)](_0x28e341)&&this[_0x53b3d9(0x1ae)](_0x28e341,_0xeee9fa);}}))),this['disposeWithMe'](_0x5a6bc0(((_0x5ce6fd=_0x22f6ce[_0x3f8a1(0x2e9)])==null?void 0x0:_0x5ce6fd[_0x3f8a1(0x4cb)]({'priority':0x4,'next':([_0x53ee19,_0x2001ca])=>{const _0x471d1e=_0x3f8a1;this[_0x471d1e(0x36d)](_0x53ee19)&&this['_consumeControlEvent'](_0x53ee19,_0x2001ca);}}))??{'dispose':()=>{}})),this[_0x3f8a1(0x42f)](_0x5a6bc0(((_0x3551ac=_0x22f6ce[_0x3f8a1(0x2c3)])==null?void 0x0:_0x3551ac[_0x3f8a1(0x4cb)]({'priority':0x4,'next':([_0x564b64,_0x47a341])=>{const _0x17c765=_0x3f8a1;this[_0x17c765(0x36d)](_0x564b64)&&this[_0x17c765(0x1ae)](_0x564b64,_0x47a341);}}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x5a6bc0(()=>this[_0x3f8a1(0x3b8)]())),this[_0x3f8a1(0x4b9)]();}['_ensureObject'](){const _0x1e2f43=_0x2d31a4;return this[_0x1e2f43(0x431)]?this[_0x1e2f43(0x431)]:(this[_0x1e2f43(0x431)]=new Nr(Ar),this[_0x1e2f43(0x23d)](this[_0x1e2f43(0x431)]),this[_0x1e2f43(0x2d9)][_0x1e2f43(0x37b)][_0x1e2f43(0x226)](this[_0x1e2f43(0x431)],jr),this[_0x1e2f43(0x431)]);}['_attachObjectEvents'](_0x57cb23){const _0x8a17ca=_0x2d31a4;var _0x3a3156;(_0x3a3156=this[_0x8a17ca(0x422)])==null||_0x3a3156[_0x8a17ca(0x262)]();let _0x4bed3a=new _0xec2352();_0x4bed3a[_0x8a17ca(0x3e8)](_0x57cb23[_0x8a17ca(0x1b9)][_0x8a17ca(0x4cb)]({'priority':0x4,'next':([_0x3bd4c2,_0x32449c])=>{const _0x3e503c=_0x8a17ca;this[_0x3e503c(0x497)](_0x3bd4c2)&&this[_0x3e503c(0x1ae)](_0x3bd4c2,_0x32449c);}})),_0x4bed3a[_0x8a17ca(0x3e8)](_0x57cb23['onPointerUp$'][_0x8a17ca(0x4cb)]({'priority':0x4,'next':([_0x5b07b6,_0x2c2ae2])=>{const _0x2efade=_0x8a17ca;this[_0x2efade(0x36d)](_0x5b07b6)&&this[_0x2efade(0x1ae)](_0x5b07b6,_0x2c2ae2);}})),_0x4bed3a[_0x8a17ca(0x3e8)](_0x57cb23[_0x8a17ca(0x2c3)][_0x8a17ca(0x4cb)]({'priority':0x4,'next':([_0x10a51f,_0x538322])=>{const _0x47a2cd=_0x8a17ca;this[_0x47a2cd(0x36d)](_0x10a51f)&&this[_0x47a2cd(0x1ae)](_0x10a51f,_0x538322);}})),this[_0x8a17ca(0x422)]=_0x4bed3a;}[_0x2d31a4(0x3b8)](){const _0x152a70=_0x2d31a4;var _0x4f197e;this[_0x152a70(0x431)]&&(this[_0x152a70(0x2d9)][_0x152a70(0x37b)]['removeObjects']([this[_0x152a70(0x431)]]),(_0x4f197e=this[_0x152a70(0x422)])==null||_0x4f197e[_0x152a70(0x262)](),this[_0x152a70(0x422)]=null,this[_0x152a70(0x431)]=null,this[_0x152a70(0x3df)]=null,this[_0x152a70(0x457)]=null,this['_renderContext'][_0x152a70(0x37b)][_0x152a70(0x48e)](!0x0));}['_syncControls'](_0x231dbb,_0x237426){const _0x27fa1f=_0x2d31a4;var _0x2eade8,_0x3a57b4;if(this[_0x27fa1f(0x39d)][_0x27fa1f(0x41b)]()[_0x27fa1f(0x462)]==='viewing'){this[_0x27fa1f(0x3b8)]();return;}let _0x2a5601=this[_0x27fa1f(0x318)]['getSnapshot'](),_0x37c25d=_0x2a5601[_0x27fa1f(0x233)],_0x3111ed=_0x2a5601[_0x27fa1f(0x330)]??_0x2a5601[_0x27fa1f(0x3f9)][0x0];if(!_0x37c25d||!_0x3111ed||_0x2a5601[_0x27fa1f(0x3f9)][_0x27fa1f(0x1ab)]!==0x1){this[_0x27fa1f(0x3b8)]();return;}let _0x22e8db=this['_boardElementService'][_0x27fa1f(0x397)](_0x37c25d['unitId'],_0x37c25d[_0x27fa1f(0x452)]),_0x43388e=_0x22e8db[_0x3111ed],_0x1fcad0=_0xd8e37e(_0x43388e==null?void 0x0:_0x43388e[_0x27fa1f(0x4b4)]);if(!_0x43388e||!_0x1fcad0){this[_0x27fa1f(0x3b8)]();return;}let _0x1c109f=_0x1b247d(_0x37c25d[_0x27fa1f(0x499)],_0x3111ed);if(_0x237426!=null&&_0x237426[_0x27fa1f(0x454)]&&_0x1fcad0['parentNodeId']==null&&_0x231dbb!=null&&_0x231dbb[_0x27fa1f(0x1ec)](_0x1c109f)){this['_removeObject']();return;}let _0x15b047=this[_0x27fa1f(0x251)](_0x22e8db,_0x37c25d[_0x27fa1f(0x499)],_0x3111ed,_0x231dbb);if(!_0x15b047){this['_removeObject']();return;}let _0x346843=Object['values'](_0x22e8db)[_0x27fa1f(0x2c5)](_0x29e7ba=>{const _0x2ccc7b=_0x27fa1f;var _0x315685;return((_0x315685=_0xd8e37e(_0x29e7ba[_0x2ccc7b(0x4b4)]))==null?void 0x0:_0x315685[_0x2ccc7b(0x3e6)])===_0x3111ed;}),_0x3e3aca=_0x1fcad0['collapsed']?this[_0x27fa1f(0x358)](_0x22e8db,_0x3111ed):0x0;this[_0x27fa1f(0x3df)]=_0x3111ed,this[_0x27fa1f(0x457)]=_0x1fcad0['structureScopeId'];let _0x1e1a7f=(_0x2eade8=_0x22e8db[_0x1fcad0['structureScopeId']])==null?void 0x0:_0x2eade8[_0x27fa1f(0x4b4)],_0x34a111=_0x3a557b(_0x1e1a7f),_0x3311a8=_0x1e1a7f==null||(_0x3a57b4=_0x1e1a7f[_0x27fa1f(0x2c4)])==null||(_0x3a57b4=_0x3a57b4['mindmap'])==null||(_0x3a57b4=_0x3a57b4[_0x27fa1f(0x31a)])==null?void 0x0:_0x3a57b4[_0x27fa1f(0x46d)],_0x67636b=(_0x34a111==null?void 0x0:_0x34a111['layout'][_0x27fa1f(0x46d)])??_0x3311a8,_0x1fcb89=_0x1fcad0[_0x27fa1f(0x3e6)]==null,_0x4b61f8=this[_0x27fa1f(0x3e2)](_0x1fcad0['side'],_0x1fcb89,_0x67636b);this[_0x27fa1f(0x40f)]()[_0x27fa1f(0x2a6)]({'controls':kr({'bounds':_0x15b047,'isRoot':_0x1fcb89,'side':_0x4b61f8,'rootChildSides':this[_0x27fa1f(0x418)](_0x1fcb89,_0x67636b),'hasChildren':_0x346843['length']>0x0,'collapsedDescendantCount':_0x3e3aca})}),this[_0x27fa1f(0x2d9)][_0x27fa1f(0x37b)]['makeDirty'](!0x0);}[_0x2d31a4(0x3e2)](_0x7e7764,_0x155ba2,_0x3dec42){const _0x44084f=_0x2d31a4;return _0x3dec42==='timeline-vertical'?!_0x155ba2&&(_0x7e7764===_0x44084f(0x1ac)||_0x7e7764===_0x44084f(0x234))?_0x7e7764:_0x44084f(0x394):_0x3dec42==='mindmap-vertical'?!_0x155ba2&&(_0x7e7764===_0x44084f(0x258)||_0x7e7764===_0x44084f(0x394))?_0x7e7764:_0x44084f(0x394):_0x7e7764===_0x44084f(0x1ac)?_0x44084f(0x1ac):_0x44084f(0x234);}[_0x2d31a4(0x418)](_0xd5b83d,_0x5904dd){const _0x53c27b=_0x2d31a4;if(_0xd5b83d){if(Pr(_0x5904dd))return[_0x53c27b(0x394)];if(_0x5904dd===_0x53c27b(0x338))return[_0x53c27b(0x234)];if(_0x5904dd===_0x53c27b(0x25f))return[_0x53c27b(0x394)];}}[_0x2d31a4(0x484)](_0x405714){const _0x2d2554=_0x2d31a4;var _0x54503b,_0x4282c9;let _0x2f97e8=this[_0x2d2554(0x318)][_0x2d2554(0x276)]()[_0x2d2554(0x233)];if(!_0x2f97e8||!this[_0x2d2554(0x3df)])return;let _0x230ffe=this[_0x2d2554(0x235)][_0x2d2554(0x397)](_0x2f97e8[_0x2d2554(0x499)],_0x2f97e8['subUnitId']),_0xdbdd00=_0xd8e37e((_0x54503b=_0x230ffe[this[_0x2d2554(0x3df)]])==null?void 0x0:_0x54503b['element']),_0xc7d55a=_0xdbdd00?_0x3a557b((_0x4282c9=_0x230ffe[_0xdbdd00[_0x2d2554(0x2f8)]])==null?void 0x0:_0x4282c9[_0x2d2554(0x4b4)]):null;if((_0xdbdd00==null?void 0x0:_0xdbdd00['parentNodeId'])!=null||!Pr(_0xc7d55a==null?void 0x0:_0xc7d55a['layout'][_0x2d2554(0x46d)])&&!Fr(_0xc7d55a==null?void 0x0:_0xc7d55a[_0x2d2554(0x31a)][_0x2d2554(0x46d)]))return _0x405714===_0x2d2554(0x27c)?'left':_0x405714===_0x2d2554(0x347)?_0x2d2554(0x258):_0x405714==='add-child-bottom'?_0x2d2554(0x394):_0x2d2554(0x234);}[_0x2d31a4(0x251)](_0xa858ee,_0x16e919,_0x5eaeb9,_0x2f1d9b){const _0x17ecef=_0x2d31a4;var _0x43b996,_0x4f754b;let _0x199157=_0x1b247d(_0x16e919,_0x5eaeb9),_0x198b34=_0x2f1d9b==null?void 0x0:_0x2f1d9b['get'](_0x199157),_0x531124=this[_0x17ecef(0x29b)](_0x198b34);if(_0x531124)return _0x531124;let _0x43524a=this[_0x17ecef(0x2d9)]['scene'],_0x2c4a18=((_0x43b996=_0x43524a[_0x17ecef(0x4ba)])==null?void 0x0:_0x43b996[_0x17ecef(0x248)](_0x43524a,_0x199157))??((_0x4f754b=_0x43524a[_0x17ecef(0x1e8)])==null?void 0x0:_0x4f754b[_0x17ecef(0x248)](_0x43524a,_0x199157));return this[_0x17ecef(0x29b)](_0x2c4a18)||_0x59b50d(_0xa858ee,_0x5eaeb9);}[_0x2d31a4(0x29b)](_0x5a4689){const _0x161540=_0x2d31a4;return _0x5a4689&&Number[_0x161540(0x31d)](_0x5a4689[_0x161540(0x1ac)])&&Number['isFinite'](_0x5a4689[_0x161540(0x258)])&&Number[_0x161540(0x31d)](_0x5a4689['width'])&&Number['isFinite'](_0x5a4689[_0x161540(0x41e)])?{'left':_0x5a4689[_0x161540(0x1ac)],'top':_0x5a4689['top'],'width':_0x5a4689[_0x161540(0x35d)],'height':_0x5a4689[_0x161540(0x41e)]}:null;}[_0x2d31a4(0x358)](_0x5e9b74,_0x43c46e){const _0x1b1587=_0x2d31a4;return Object['values'](_0x5e9b74)[_0x1b1587(0x2c5)](_0x431e9e=>{const _0x19f46b=_0x1b1587;var _0x56718f;return((_0x56718f=_0xd8e37e(_0x431e9e[_0x19f46b(0x4b4)]))==null?void 0x0:_0x56718f['parentNodeId'])===_0x43c46e;})[_0x1b1587(0x4cf)]((_0x384228,_0x4c45d6)=>_0x384228+0x1+this[_0x1b1587(0x358)](_0x5e9b74,_0x4c45d6['elementId']),0x0);}[_0x2d31a4(0x344)](_0x59a5f5){const _0x4ea094=_0x2d31a4;if(!this[_0x4ea094(0x431)])return;let _0x3e6f6f=this['_stateService'][_0x4ea094(0x41b)](),_0x6bf30e=Ir(_0x59a5f5,{'panOffset':_0x3e6f6f[_0x4ea094(0x42b)],'zoomRatio':_0x3e6f6f[_0x4ea094(0x439)]});this[_0x4ea094(0x431)][_0x4ea094(0x220)](this[_0x4ea094(0x431)]['getHitControl'](_0x6bf30e,_0x59a5f5[_0x4ea094(0x3ac)]));}[_0x2d31a4(0x497)](_0x214ea2){const _0x53b749=_0x2d31a4;if(!this[_0x53b749(0x431)]||!this[_0x53b749(0x3df)]||(_0x214ea2[_0x53b749(0x29f)]??0x0)!==0x0)return!0x1;let _0x4cabdf=this[_0x53b749(0x318)][_0x53b749(0x276)]()[_0x53b749(0x233)];if(!_0x4cabdf)return!0x1;let _0xed96c6=this[_0x53b749(0x39d)][_0x53b749(0x41b)](),_0x2e67ff=Ir(_0x214ea2,{'panOffset':_0xed96c6[_0x53b749(0x42b)],'zoomRatio':_0xed96c6[_0x53b749(0x439)]}),_0x2c46ac=this['_object'][_0x53b749(0x27a)](_0x2e67ff,_0x214ea2[_0x53b749(0x3ac)]);if(!_0x2c46ac)return!0x1;if(_0x2c46ac['kind']===_0x53b749(0x3a8))return this[_0x53b749(0x3d7)](_0x16fafb['id'],{'unitId':_0x4cabdf[_0x53b749(0x499)],'subUnitId':_0x4cabdf[_0x53b749(0x452)],'nodeId':this[_0x53b749(0x3df)]}),!0x0;if(_0x2c46ac[_0x53b749(0x3e4)]===_0x53b749(0x27c)||_0x2c46ac[_0x53b749(0x3e4)]==='add-child-right'||_0x2c46ac[_0x53b749(0x3e4)]===_0x53b749(0x347)||_0x2c46ac[_0x53b749(0x3e4)]===_0x53b749(0x4a3)){let _0x21348b=_0x75cb4(0x6);return this[_0x53b749(0x409)](_0x3808d0['id'],{'unitId':_0x4cabdf['unitId'],'subUnitId':_0x4cabdf[_0x53b749(0x452)],'parentNodeId':this[_0x53b749(0x3df)],'side':this[_0x53b749(0x484)](_0x2c46ac[_0x53b749(0x3e4)]),'nodeId':_0x21348b,'connectorId':_0x75cb4(0x6),'text':this[_0x53b749(0x1bd)]['t'](_0x53b749(0x4ad))},_0x21348b),!0x0;}if(_0x2c46ac[_0x53b749(0x3e4)]==='add-sibling-before'||_0x2c46ac['kind']===_0x53b749(0x28b)){let _0x293847=_0x75cb4(0x6);return this[_0x53b749(0x409)](_0x2947b9['id'],{'unitId':_0x4cabdf[_0x53b749(0x499)],'subUnitId':_0x4cabdf[_0x53b749(0x452)],'nodeId':this[_0x53b749(0x3df)],'placement':_0x2c46ac['placement']??(_0x2c46ac[_0x53b749(0x3e4)]==='add-sibling-before'?_0x53b749(0x353):_0x53b749(0x289)),'siblingNodeId':_0x293847,'connectorId':_0x75cb4(0x6),'text':this[_0x53b749(0x1bd)]['t'](_0x53b749(0x4ad))},_0x293847),!0x0;}return!0x0;}[_0x2d31a4(0x36d)](_0x504316){const _0x70df37=_0x2d31a4;if(!this[_0x70df37(0x431)]||(_0x504316['button']??0x0)!==0x0)return!0x1;let _0x897aa1=this[_0x70df37(0x39d)][_0x70df37(0x41b)](),_0x5d45ff=Ir(_0x504316,{'panOffset':_0x897aa1[_0x70df37(0x42b)],'zoomRatio':_0x897aa1[_0x70df37(0x439)]});return!!this['_object'][_0x70df37(0x27a)](_0x5d45ff,_0x504316[_0x70df37(0x3ac)]);}[_0x2d31a4(0x1ae)](_0x277013,_0x1bb60b){const _0x1fcded=_0x2d31a4;var _0x117b93,_0x185c38;_0x1bb60b[_0x1fcded(0x1c4)](),(_0x117b93=_0x277013[_0x1fcded(0x2f2)])==null||_0x117b93[_0x1fcded(0x248)](_0x277013),(_0x185c38=_0x277013['stopPropagation'])==null||_0x185c38['call'](_0x277013);}['_executeAndLayout'](_0x48885a,_0x41c7b8){const _0x2a50e5=_0x2d31a4;let _0xc6d9cc=this[_0x2a50e5(0x457)];this[_0x2a50e5(0x306)][_0x2a50e5(0x2f7)](_0x41c7b8[_0x2a50e5(0x499)],()=>{const _0x255b92=_0x2a50e5;this[_0x255b92(0x2a3)][_0x255b92(0x2e6)](_0x48885a,_0x41c7b8)&&_0xc6d9cc&&(this['_commandService'][_0x255b92(0x2e6)](_0x59d4d9['id'],{'unitId':_0x41c7b8[_0x255b92(0x499)],'subUnitId':_0x41c7b8['subUnitId'],'scopeId':_0xc6d9cc}),this[_0x255b92(0x4b9)]());});}[_0x2d31a4(0x409)](_0x17e4bf,_0x4676bc,_0x3d0fe7){const _0x181cf9=_0x2d31a4;let _0x1ac23b={'unitId':_0x4676bc['unitId'],'subUnitId':_0x4676bc[_0x181cf9(0x452)]},_0x3e17f2=this[_0x181cf9(0x2a3)]['executeCommand'](_0x17e4bf,_0x4676bc);Promise[_0x181cf9(0x48a)](_0x3e17f2)[_0x181cf9(0x1d7)](_0x20d1eb=>{const _0x57382b=_0x181cf9;_0x20d1eb&&(this['_syncControls'](),this['_elementStateService']['selectElements'](_0x1ac23b,[_0x3d0fe7],_0x3d0fe7),this['_boardTextEditingService']['ignoreExternalFocusChanges'](),this[_0x57382b(0x395)][_0x57382b(0x3ab)]({..._0x1ac23b,'shapeId':_0x3d0fe7,'shapeKey':_0x1b247d(_0x1ac23b['unitId'],_0x3d0fe7),'visible':!0x0}));});}};Lr=J([q(0x1,_0x4a13c4(_0x495947)),q(0x2,_0x4a13c4(_0x452a90)),q(0x3,_0x4a13c4(_0x18a088)),q(0x4,_0x2a0a40),q(0x5,_0x4a13c4(_0x16b84e)),q(0x6,_0x4a13c4(_0x3ff2da)),q(0x7,_0x4a13c4(Tr)),q(0x8,_0x4a13c4(_0x352e0c))],Lr);const Rr='FOCUSING_MIND_MAP_TEXT_EDITOR';let zr=class extends _0x9932d8{constructor(_0x4febc3,_0x3cc8d2){const _0x2388e9=_0x2d31a4;super(),this['_commandService']=_0x4febc3,this[_0x2388e9(0x322)]=_0x3cc8d2,this['_init']();}['_init'](){const _0x4a63d1=_0x2d31a4;this['disposeWithMe'](this[_0x4a63d1(0x322)][_0x4a63d1(0x3fb)](this[_0x4a63d1(0x33d)]()));}['_createQuoteShortcut'](){const _0x59a8db=_0x2d31a4;return{'id':_0x34a41c,'binding':_0x28bc7e[_0x59a8db(0x28a)]|_0x341e94[_0x59a8db(0x273)],'priority':0x3e8,'preconditions':_0xb859ac=>_0xb859ac[_0x59a8db(0x2af)](_0x59a8db(0x3eb))&&this['_commandService'][_0x59a8db(0x3ed)](_0x34a41c)};}};zr=J([q(0x0,_0x2a0a40),q(0x1,_0x23e2ca)],zr);const Br=[Mn,Nn,Rr];let Vr=class extends _0x9932d8{constructor(_0x1e596c,_0x5a7916,_0x27d8ab,_0x4a7d44,_0x3d799e){const _0x2f6701=_0x2d31a4;super(),this[_0x2f6701(0x2d9)]=_0x1e596c,this[_0x2f6701(0x235)]=_0x5a7916,this[_0x2f6701(0x318)]=_0x27d8ab,this[_0x2f6701(0x4b2)]=_0x4a7d44,this[_0x2f6701(0x263)]=_0x3d799e,K(this,_0x2f6701(0x3f3),!0x1),this['disposeWithMe'](_0x5a6bc0(this[_0x2f6701(0x2d9)][_0x2f6701(0x49c)]['pipe'](_0x35dd5f(this['dispose$']))[_0x2f6701(0x45b)](_0x458fe7=>{const _0x237a32=_0x2f6701;this[_0x237a32(0x3f3)]=_0x458fe7,this[_0x237a32(0x446)]();}))),this['disposeWithMe'](_0x5a6bc0(this[_0x2f6701(0x318)][_0x2f6701(0x1b8)][_0x2f6701(0x4b1)](_0x35dd5f(this[_0x2f6701(0x1c3)]))['subscribe'](()=>{this['_syncContext']();}))),this[_0x2f6701(0x42f)](_0x5a6bc0(this[_0x2f6701(0x4b2)][_0x2f6701(0x24d)]['pipe'](_0x35dd5f(this['dispose$']))['subscribe'](()=>{const _0x1ea4e2=_0x2f6701;this[_0x1ea4e2(0x446)]();}))),this[_0x2f6701(0x446)]();}[_0x2d31a4(0x446)](){const _0x41d9ec=_0x2d31a4;var _0x1b25aa,_0x5a68c8;let _0x5ea71e=this[_0x41d9ec(0x318)]['getSnapshot'](),_0x1f0fb8=this[_0x41d9ec(0x4b2)][_0x41d9ec(0x2ea)](),_0x5ddd16=_0x1f0fb8!=null&&_0x1f0fb8['visible']?_0x1f0fb8[_0x41d9ec(0x3c9)]:_0x5ea71e[_0x41d9ec(0x27b)],_0x12be48=_0x5ea71e[_0x41d9ec(0x330)]??_0x5ea71e[_0x41d9ec(0x3f9)][0x0],_0x7dc6a1=_0x5ea71e['context']??{'unitId':this[_0x41d9ec(0x2d9)]['unitId'],'subUnitId':this['_renderContext'][_0x41d9ec(0x1da)][_0x41d9ec(0x4a9)]()},_0x3898bd=this[_0x41d9ec(0x3f3)]&&!!_0x12be48&&_0x5ea71e[_0x41d9ec(0x3f9)][_0x41d9ec(0x1ab)]===0x1&&!_0x5ddd16&&!_0x5ea71e[_0x41d9ec(0x23a)],_0x32b28c=this[_0x41d9ec(0x3f3)]?this[_0x41d9ec(0x235)][_0x41d9ec(0x397)](_0x7dc6a1[_0x41d9ec(0x499)],_0x7dc6a1[_0x41d9ec(0x452)]):{};this['_contextService'][_0x41d9ec(0x1cd)](Mn,_0x3898bd&&!!_0xd8e37e((_0x1b25aa=_0x32b28c[_0x12be48])==null?void 0x0:_0x1b25aa['element'])),this['_contextService'][_0x41d9ec(0x1cd)](Nn,this['_isActive']&&_0x5ea71e['selectedIds'][_0x41d9ec(0x1ab)]===0x0&&!_0x5ea71e[_0x41d9ec(0x330)]&&!_0x5ddd16&&!_0x5ea71e[_0x41d9ec(0x23a)]),this[_0x41d9ec(0x263)][_0x41d9ec(0x1cd)](Rr,!!_0x5ddd16&&!!_0xd8e37e((_0x5a68c8=_0x32b28c[_0x5ddd16])==null?void 0x0:_0x5a68c8[_0x41d9ec(0x4b4)]));}[_0x2d31a4(0x262)](){const _0x179876=_0x2d31a4;this[_0x179876(0x1ce)](),super['dispose']();}[_0x2d31a4(0x1ce)](){const _0x12980b=_0x2d31a4;Br['forEach'](_0x49e8de=>this[_0x12980b(0x263)]['setContextValue'](_0x49e8de,!0x1));}};Vr=J([q(0x1,_0x4a13c4(_0x495947)),q(0x2,_0x4a13c4(_0x452a90)),q(0x3,_0x4a13c4(_0x16b84e)),q(0x4,_0x2a095c)],Vr);var Hr=class extends wr{async['_handlePointerDown'](_0x1a0571,_0x55fb98,_0x206980){await this['_insertMindMap'](_0x1a0571,_0x55fb98,_0x206980);}};const Ur={'id':'board.operation.mind-map.open-panel','type':_0x1162ea[_0x2d31a4(0x224)],'handler':(_0x2e3441,_0x3506c9)=>!!(_0x3506c9!=null&&_0x3506c9['unitId'])&&!!_0x3506c9[_0x2d31a4(0x452)]&&!!_0x3506c9['scopeId']},Wr='board.mind-map.panel',Gr=[_0x2d31a4(0x407),'layout','importExport'];_0x5242c3['horizontalGap'],_0x5242c3[_0x2d31a4(0x3a4)],_0x5242c3[_0x2d31a4(0x46b)];const Kr=[{'labelKey':_0x2d31a4(0x333),'key':_0x2d31a4(0x48c),..._0x16a7d3[_0x2d31a4(0x48c)]},{'labelKey':_0x2d31a4(0x1c6),'key':'siblingGap',..._0x16a7d3[_0x2d31a4(0x3a4)]},{'labelKey':_0x2d31a4(0x253),'key':_0x2d31a4(0x46b),..._0x16a7d3['branchGap']}],qr=[{'labelKey':_0x2d31a4(0x31e),'value':'right'},{'labelKey':_0x2d31a4(0x24a),'value':_0x2d31a4(0x1ac)},{'labelKey':_0x2d31a4(0x29e),'value':_0x2d31a4(0x400)}],Jr=[{'labelKey':_0x2d31a4(0x1fe),'value':_0x2d31a4(0x2bb)},{'labelKey':'boards-mind-ui.panel.structureKind.mindmapVertical','value':_0x2d31a4(0x433)},{'labelKey':'boards-mind-ui.panel.structureKind.treeRight','value':'tree-right'},{'labelKey':_0x2d31a4(0x419),'value':_0x2d31a4(0x341)},{'labelKey':'boards-mind-ui.panel.structureKind.treeAlternate','value':_0x2d31a4(0x453)},{'labelKey':_0x2d31a4(0x34a),'value':_0x2d31a4(0x338)},{'labelKey':_0x2d31a4(0x2f9),'value':_0x2d31a4(0x25f)}],Yr=[{'labelKey':'boards-mind-ui.panel.branchLineType.curve','value':_0x2d31a4(0x212)},{'labelKey':_0x2d31a4(0x2b6),'value':_0x2d31a4(0x305)},{'labelKey':_0x2d31a4(0x3ee),'value':_0x2d31a4(0x391)}];function Xr(_0x1e88d2){const _0x22d01a=_0x2d31a4;let _0x1b3c31=(_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x46d)])??_0x5242c3[_0x22d01a(0x46d)];return{'spacing':{'horizontalGap':(_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x48c)])??_0x5242c3['horizontalGap'],'siblingGap':(_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x3a4)])??_0x5242c3['siblingGap'],'branchGap':(_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x46b)])??_0x5242c3['branchGap']},'direction':(_0x1e88d2==null?void 0x0:_0x1e88d2['direction'])??_0x5242c3['direction'],'structureKind':_0x1b3c31,'branchLineType':_0x498b4a(_0x1b3c31,_0x1e88d2==null?void 0x0:_0x1e88d2[_0x22d01a(0x365)])};}async function Zr(_0x5876b0,_0x2e08db){const _0x570bfc=_0x2d31a4;return await Promise[_0x570bfc(0x48a)](_0x5876b0['executeCommand'](_0x577e6f['id'],_0x2e08db))?(await Promise[_0x570bfc(0x48a)](_0x5876b0['executeCommand'](_0x59d4d9['id'],{'unitId':_0x2e08db['unitId'],'subUnitId':_0x2e08db[_0x570bfc(0x452)],'scopeId':_0x2e08db[_0x570bfc(0x435)]})),!0x0):!0x1;}async function Qr(_0x422a75,_0x667d00){const _0x2da652=_0x2d31a4;return await Promise[_0x2da652(0x48a)](_0x422a75[_0x2da652(0x38b)](_0x1982fa['id'],_0x667d00))?(await Promise[_0x2da652(0x48a)](_0x422a75['executeCommand'](_0x59d4d9['id'],{'unitId':_0x667d00[_0x2da652(0x499)],'subUnitId':_0x667d00[_0x2da652(0x452)],'scopeId':_0x667d00[_0x2da652(0x435)]})),!0x0):!0x1;}async function $r(_0x4631a1,_0x2fe9cd){const _0x19e2c9=_0x2d31a4;return await Promise[_0x19e2c9(0x48a)](_0x4631a1[_0x19e2c9(0x38b)](_0x577e6f['id'],{'unitId':_0x2fe9cd[_0x19e2c9(0x499)],'subUnitId':_0x2fe9cd[_0x19e2c9(0x452)],'scopeId':_0x2fe9cd[_0x19e2c9(0x435)],..._0x2fe9cd[_0x19e2c9(0x48c)]===void 0x0?{}:{'horizontalGap':_0x2fe9cd[_0x19e2c9(0x48c)]},..._0x2fe9cd['siblingGap']===void 0x0?{}:{'siblingGap':_0x2fe9cd['siblingGap']},..._0x2fe9cd['branchGap']===void 0x0?{}:{'branchGap':_0x2fe9cd[_0x19e2c9(0x46b)]}}))?(await Promise[_0x19e2c9(0x48a)](_0x4631a1['executeCommand'](_0x59d4d9['id'],{'unitId':_0x2fe9cd[_0x19e2c9(0x499)],'subUnitId':_0x2fe9cd[_0x19e2c9(0x452)],'scopeId':_0x2fe9cd[_0x19e2c9(0x435)]})),!0x0):!0x1;}async function ei(_0x312907,_0x44aab1){const _0x503473=_0x2d31a4;return _0x44aab1[_0x503473(0x26d)]===_0x44aab1[_0x503473(0x2b4)]||!await Promise[_0x503473(0x48a)](_0x312907[_0x503473(0x38b)](_0x48a61f['id'],{'unitId':_0x44aab1[_0x503473(0x499)],'subUnitId':_0x44aab1[_0x503473(0x452)],'nodeId':_0x44aab1[_0x503473(0x26d)],'targetNodeId':_0x44aab1['targetNodeId'],'referenceNodeId':_0x44aab1[_0x503473(0x2b4)],'placement':_0x44aab1['placement']}))?!0x1:(await Promise['resolve'](_0x312907[_0x503473(0x38b)](_0x59d4d9['id'],{'unitId':_0x44aab1[_0x503473(0x499)],'subUnitId':_0x44aab1[_0x503473(0x452)],'scopeId':_0x44aab1[_0x503473(0x435)]})),!0x0);}async function ti(_0x400532,_0x714c8f){const _0x2a200a=_0x2d31a4;let _0x161e3c=_0x714c8f[_0x2a200a(0x2be)][_0x2a200a(0x1c2)]();return!_0x161e3c||!await Promise['resolve'](_0x400532[_0x2a200a(0x38b)](_0x3a4e24['id'],{'unitId':_0x714c8f['unitId'],'subUnitId':_0x714c8f['subUnitId'],'nodeId':_0x714c8f['nodeId'],'text':_0x161e3c}))?!0x1:(await Promise[_0x2a200a(0x48a)](_0x400532['executeCommand'](_0x59d4d9['id'],{'unitId':_0x714c8f[_0x2a200a(0x499)],'subUnitId':_0x714c8f['subUnitId'],'scopeId':_0x714c8f[_0x2a200a(0x435)]})),!0x0);}async function ni(_0x34093f){const _0x5b8f67=_0x2d31a4;var _0xe7fbbc;let _0xfc0430=(_0xe7fbbc=globalThis[_0x5b8f67(0x2cf)])==null?void 0x0:_0xe7fbbc[_0x5b8f67(0x495)];return _0xfc0430!=null&&_0xfc0430['writeText']?(await _0xfc0430['writeText'](_0x34093f),!0x0):!0x1;}async function ri(_0x17ab69,_0x542bb2,_0x1a70b5=ni){const _0x1ce472=_0x2d31a4;let _0x19d7e4=await Promise['resolve'](_0x17ab69[_0x1ce472(0x38b)](_0x40d1d1['id'],_0x542bb2));if(typeof _0x19d7e4!=_0x1ce472(0x3dd)||!_0x19d7e4)return!0x1;try{return await _0x1a70b5(_0x19d7e4)!==!0x1;}catch{return!0x1;}}async function ii(_0x8d5f8e,_0x347669){const _0x58e0d5=_0x2d31a4;return _0x347669['opml']['trim']()?(await _0x8d5f8e[_0x58e0d5(0x38b)](_0x1f6a3b['id'],_0x347669))[_0x58e0d5(0x35b)]:!0x1;}function ai(_0x42d663,_0x3a05e3){const _0x9ad97a=_0x2d31a4;let _0x84321d=_0x9ad97a(0x26a)in _0x42d663['element']?_0x42d663[_0x9ad97a(0x4b4)]['shapeData'][_0x9ad97a(0x29d)]:void 0x0;return(_0x84321d==null?void 0x0:_0x84321d['text'])||_0x3a05e3;}function oi(_0x3b2a31,_0x1a07a9,_0x1ff9c3=_0x355d17){const _0x22e9e7=_0x2d31a4;let _0x4181ab=Object[_0x22e9e7(0x379)](_0x3b2a31)[_0x22e9e7(0x461)](_0x1da485=>{const _0x7fa8d2=_0x22e9e7;let _0xe05f1c=_0xd8e37e(_0x1da485['element']);return(_0xe05f1c==null?void 0x0:_0xe05f1c[_0x7fa8d2(0x2f8)])===_0x1a07a9?{'data':_0x1da485,'meta':_0xe05f1c}:null;})[_0x22e9e7(0x2c5)](_0xfa442f=>!!_0xfa442f),_0x644249=new Map();_0x4181ab[_0x22e9e7(0x205)](_0x61de0e=>{const _0x5dacc7=_0x22e9e7;let _0xf65b4d=_0x61de0e['meta'][_0x5dacc7(0x3e6)];_0x644249['set'](_0xf65b4d,[..._0x644249[_0x5dacc7(0x267)](_0xf65b4d)??[],_0x61de0e]);}),_0x644249['forEach'](_0x5017a3=>{const _0x57a552=_0x22e9e7;_0x5017a3[_0x57a552(0x222)]((_0x489bee,_0x5d43f8)=>_0x28a7e2(_0x489bee[_0x57a552(0x1b0)][_0x57a552(0x2d8)],_0x5d43f8[_0x57a552(0x1b0)][_0x57a552(0x2d8)])||_0x489bee['data'][_0x57a552(0x421)][_0x57a552(0x362)](_0x5d43f8['data'][_0x57a552(0x421)]));});let _0x17b916=[],_0x2e1828=(_0x6f3a98,_0x38646c)=>{const _0x3344d8=_0x22e9e7;(_0x644249[_0x3344d8(0x267)](_0x6f3a98)??[])[_0x3344d8(0x205)](_0xe1275e=>{const _0x534c34=_0x3344d8;_0x17b916[_0x534c34(0x228)]({'nodeId':_0xe1275e['data'][_0x534c34(0x421)],'depth':_0x38646c,'text':ai(_0xe1275e[_0x534c34(0x296)],_0x1ff9c3)}),_0x2e1828(_0xe1275e[_0x534c34(0x296)]['elementId'],_0x38646c+0x1);});};return _0x2e1828(null,0x0),_0x17b916;}function si(_0x5b6f89,_0x315028){const _0x56abcb=_0x2d31a4;let _0x1377b7=_0x315028[_0x56abcb(0x1c2)]()[_0x56abcb(0x40a)]();return _0x1377b7?_0x5b6f89[_0x56abcb(0x2c5)](_0x2e3a7d=>_0x2e3a7d[_0x56abcb(0x2be)]['toLowerCase']()[_0x56abcb(0x304)](_0x1377b7)):_0x5b6f89;}function ci(_0x56df16){const _0x18c677=_0x2d31a4;return{'paddingInlineStart':0x8+(Number[_0x18c677(0x31d)](_0x56df16)&&_0x56df16>0x0?_0x56df16:0x0)*0x10};}function li(_0x12873f){const _0x29b48c=_0x2d31a4;return _0x1d0d1f(_0x4d6766,{'className':_0x29b48c(0x1f9),..._0x12873f});}function ui(_0x10243d){const _0x51a6c4=_0x2d31a4;return _0xf895cc('section',{'className':_0x1f61d6(_0x51a6c4(0x1cc),_0x54a2dc),'data-board-mind-map-panel-section':_0x51a6c4(0x30a),'children':[_0x1d0d1f('h3',{'className':_0x51a6c4(0x352),'children':_0x10243d[_0x51a6c4(0x28f)]}),_0x10243d[_0x51a6c4(0x20c)]]});}function di(_0x5b587b,_0x4d885f=_0x2d31a4(0x407)){const _0x1d90b0=_0x2d31a4;var _0x4615ab,_0x267d53,_0x31d822;let _0x1051a9=_0x1b73d0(_0x2a0a40),_0x49b88b=_0x1b73d0(_0x452a90),_0x37eba2=_0x1b73d0(_0x495947),_0x2edbdd=_0x1b73d0(_0x3ff2da),[,_0x48f3fb]=_0xf932c1(_0x1d7aa1=>_0x1d7aa1+0x1,0x0);_0x416c76(()=>{const _0x1a8534=_0x4547;let _0xf769ec=_0x38bf41(_0x37eba2[_0x1a8534(0x33f)],_0x37eba2[_0x1a8534(0x27d)],_0x37eba2[_0x1a8534(0x1cf)])[_0x1a8534(0x45b)](_0x23859c=>{const _0x1cf56e=_0x1a8534;_0x23859c[_0x1cf56e(0x354)](_0x27d84a=>_0x27d84a[_0x1cf56e(0x499)]===_0x5b587b[_0x1cf56e(0x499)]&&_0x27d84a[_0x1cf56e(0x452)]===_0x5b587b[_0x1cf56e(0x452)])&&_0x48f3fb();});return()=>_0xf769ec[_0x1a8534(0x298)]();},[_0x37eba2,_0x5b587b[_0x1d90b0(0x499)],_0x5b587b[_0x1d90b0(0x452)]]);let _0x24ab1f=_0x37eba2[_0x1d90b0(0x397)](_0x5b587b[_0x1d90b0(0x499)],_0x5b587b['subUnitId']),_0x334a7c=oi(_0x24ab1f,_0x5b587b[_0x1d90b0(0x435)],_0x2edbdd['t'](_0x1d90b0(0x4ad))),_0x2fd759=(_0x4615ab=_0x3a557b((_0x267d53=_0x24ab1f[_0x5b587b[_0x1d90b0(0x435)]])==null?void 0x0:_0x267d53[_0x1d90b0(0x4b4)]))==null?void 0x0:_0x4615ab['layout'],[_0x203d36,_0x3f3df4]=_0x45ab05(''),[_0x357b1b,_0x50db59]=_0x45ab05(null),[_0x150905,_0x5d579c]=_0x45ab05(''),{spacing:_0x1d2d69,direction:_0xa4b6d1,structureKind:_0x14b660,branchLineType:_0x9cf869}=Xr(_0x2fd759),[_0x1767b7,_0x55891e]=_0x45ab05(null),[_0x343914,_0x186c37]=_0x45ab05(_0x4d885f),_0x2167f6=si(_0x334a7c,_0x203d36),_0x25e5f8={'unitId':_0x5b587b[_0x1d90b0(0x499)],'subUnitId':_0x5b587b[_0x1d90b0(0x452)],'scopeId':_0x5b587b[_0x1d90b0(0x435)]};return{'commandService':_0x1051a9,'elementStateService':_0x49b88b,'localeService':_0x2edbdd,'query':_0x203d36,'setQuery':_0x3f3df4,'editingOutlineNode':_0x357b1b,'setEditingOutlineNode':_0x50db59,'opmlText':_0x150905,'setOpmlText':_0x5d579c,'spacing':_0x1d2d69,'layoutDirection':_0xa4b6d1,'structureKind':_0x14b660,'branchLineType':_0x9cf869,'setDraggedOutlineNodeId':_0x55891e,'activeTab':_0x343914,'setActiveTab':_0x186c37,'visibleOutlineItems':_0x2167f6,'baseParams':_0x25e5f8,'tabItems':Gr[_0x1d90b0(0x461)](_0x2cf9aa=>({'label':_0x2edbdd['t'](_0x1d90b0(0x46f)+_0x2cf9aa),'value':_0x2cf9aa})),'selectedNode':_0x5b587b[_0x1d90b0(0x26d)]?(_0x31d822=_0x24ab1f[_0x5b587b[_0x1d90b0(0x26d)]])==null?void 0x0:_0x31d822[_0x1d90b0(0x4b4)]:void 0x0,'branchLineItems':Yr[_0x1d90b0(0x2c5)](_0x2f17b8=>_0x2f17b8[_0x1d90b0(0x2fe)]!=='curve'||_0x540733(_0x14b660)),'changeLayout':_0x2b27f0=>Zr(_0x1051a9,{..._0x25e5f8,'direction':_0x2b27f0}),'changeStructureKind':_0x410644=>{let _0x1d8681=_0x498b4a(_0x410644,_0x9cf869);return Zr(_0x1051a9,{..._0x25e5f8,'structureKind':_0x410644,..._0x1d8681===_0x9cf869?null:{'branchLineType':_0x1d8681}});},'changeBranchLineType':_0xb95df2=>{let _0x41ef8f=_0x498b4a(_0x14b660,_0xb95df2);return Qr(_0x1051a9,{..._0x25e5f8,'branchLineType':_0x41ef8f});},'changeSpacing':(_0x570103,_0x1d8733)=>{let _0x160e37={..._0x1d2d69,[_0x570103]:_0x1d8733};return $r(_0x1051a9,{..._0x25e5f8,..._0x160e37});},'importOpml':()=>{const _0x5a2845=_0x1d90b0;ii(_0x1051a9,{'unitId':_0x5b587b[_0x5a2845(0x499)],'subUnitId':_0x5b587b[_0x5a2845(0x452)],'left':0x78,'top':0x78,'opml':_0x150905})[_0x5a2845(0x1d7)](_0x489def=>{_0x489def&&_0x5d579c('');});},'exportOpml':()=>ri(_0x1051a9,_0x25e5f8),'startRenameNode':(_0x4704e8,_0x1f3edf)=>{_0x50db59({'nodeId':_0x4704e8,'text':_0x1f3edf});},'commitRenameNode':()=>{const _0x50f060=_0x1d90b0;_0x357b1b&&ti(_0x1051a9,{..._0x25e5f8,'nodeId':_0x357b1b[_0x50f060(0x26d)],'text':_0x357b1b[_0x50f060(0x2be)]})[_0x50f060(0x1d7)](_0x314d46=>{_0x314d46&&_0x50db59(null);});},'reorderNode':(_0x509fda,_0x1ba85e)=>{const _0x8f4543=_0x1d90b0;if(_0x509fda[_0x8f4543(0x2f2)](),!_0x1767b7||_0x1767b7===_0x1ba85e)return;let _0x41ffb6=_0x509fda[_0x8f4543(0x408)]['getBoundingClientRect'](),_0x591757=_0x509fda['clientY']<_0x41ffb6['top']+_0x41ffb6[_0x8f4543(0x41e)]/0x2?'before':_0x8f4543(0x289);_0x55891e(null),ei(_0x1051a9,{..._0x25e5f8,'nodeId':_0x1767b7,'targetNodeId':_0x1ba85e,'placement':_0x591757});}};}function fi(_0x569b7e){const _0x5cb714=_0x2d31a4;let {elementStateService:_0x810dc7,localeService:_0x37aabe,query:_0x403273,setQuery:_0x18251c,editingOutlineNode:_0x7c165d,setEditingOutlineNode:_0x3cb717,opmlText:_0x47dfef,setOpmlText:_0x4bfa45,spacing:_0xa09434,layoutDirection:_0x2de9ef,structureKind:_0x10341e,branchLineType:_0x2f1de7,setDraggedOutlineNodeId:_0x2a09de,activeTab:_0x29adef,setActiveTab:_0x20511c,visibleOutlineItems:_0x587eba,tabItems:_0x115a1d,branchLineItems:_0x2aaf28,changeLayout:_0x1c9a39,changeStructureKind:_0x3a82b8,changeBranchLineType:_0x197232,changeSpacing:_0xd9775a,importOpml:_0x43e699,exportOpml:_0x193db9,startRenameNode:_0x155569,commitRenameNode:_0x189288,reorderNode:_0x951f4b}=di(_0x569b7e);return _0xf895cc(_0x5cb714(0x2de),{'className':'univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','data-board-mind-map-panel':_0x5cb714(0x30a),'children':[_0x1d0d1f('div',{'className':_0x1f61d6(_0x5cb714(0x46c),_0x54a2dc),'data-board-mind-map-panel-tabs':_0x5cb714(0x30a),'children':_0x1d0d1f(li,{'items':_0x115a1d,'value':_0x29adef,'onChange':_0x42a866=>_0x20511c(_0x42a866)})}),_0x29adef===_0x5cb714(0x407)&&_0x1d0d1f(ui,{'title':_0x37aabe['t'](_0x5cb714(0x1f2)),'children':_0xf895cc(_0x5cb714(0x2de),{'children':[_0x1d0d1f(_0x12c1c2,{'slot':_0x1d0d1f(_0x395528,{}),'value':_0x403273,'placeholder':_0x37aabe['t'](_0x5cb714(0x3e9)),'className':_0x1f61d6(_0x5cb714(0x24b),!0x1),'onChange':_0x18251c}),_0x587eba[_0x5cb714(0x1ab)]?_0x1d0d1f('ol',{'className':'univer-space-y-1','children':_0x587eba[_0x5cb714(0x461)](_0x1aaf0e=>_0x1d0d1f('li',{'draggable':!0x0,'className':_0x5cb714(0x20e),'style':ci(_0x1aaf0e[_0x5cb714(0x292)]),'onDragStart':_0x5a1c3e=>{const _0x50d18b=_0x5cb714;var _0x45eeb5;_0x2a09de(_0x1aaf0e[_0x50d18b(0x26d)]),(_0x45eeb5=_0x5a1c3e[_0x50d18b(0x1ef)])==null||_0x45eeb5[_0x50d18b(0x39a)](_0x50d18b(0x398),_0x1aaf0e[_0x50d18b(0x26d)]),_0x5a1c3e[_0x50d18b(0x1ef)]&&(_0x5a1c3e['dataTransfer'][_0x50d18b(0x218)]=_0x50d18b(0x23c));},'onDragOver':_0x5b30cf=>{const _0x17a943=_0x5cb714;_0x5b30cf[_0x17a943(0x2f2)](),_0x5b30cf[_0x17a943(0x1ef)]&&(_0x5b30cf[_0x17a943(0x1ef)][_0x17a943(0x3cc)]=_0x17a943(0x23c));},'onDrop':_0x4058ac=>_0x951f4b(_0x4058ac,_0x1aaf0e[_0x5cb714(0x26d)]),'onDragEnd':()=>_0x2a09de(null),'children':(_0x7c165d==null?void 0x0:_0x7c165d[_0x5cb714(0x26d)])===_0x1aaf0e[_0x5cb714(0x26d)]?_0xf895cc(_0x5cb714(0x2de),{'className':_0x1f61d6(_0x5cb714(0x477),_0x5cb714(0x232)),'children':[_0x1d0d1f(_0x12c1c2,{'autoFocus':!0x0,'size':_0x5cb714(0x43a),'className':void 0x0,'value':_0x7c165d['text'],'onChange':_0x45b6b8=>_0x3cb717({'nodeId':_0x1aaf0e[_0x5cb714(0x26d)],'text':_0x45b6b8}),'onKeyDown':_0x447b88=>{const _0x426817=_0x5cb714;_0x447b88[_0x426817(0x3a2)]==='Enter'&&_0x189288(),_0x447b88[_0x426817(0x3a2)]===_0x426817(0x349)&&_0x3cb717(null);}}),_0x1d0d1f(_0x52c5ff,{'className':void 0x0,'size':'small','variant':_0x5cb714(0x3af),'disabled':!_0x7c165d[_0x5cb714(0x2be)]['trim'](),'onClick':_0x189288,'children':_0x37aabe['t']('boards-mind-ui.panel.rename')}),_0x1d0d1f(_0x52c5ff,{'className':void 0x0,'size':_0x5cb714(0x43a),'variant':'default','onClick':()=>_0x3cb717(null),'children':_0x37aabe['t'](_0x5cb714(0x1eb))})]}):_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x52c5ff,{'size':_0x5cb714(0x43a),'variant':'ghost','className':_0x1f61d6('univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left',!0x1),'onClick':()=>_0x810dc7[_0x5cb714(0x2b0)]({'unitId':_0x569b7e[_0x5cb714(0x499)],'subUnitId':_0x569b7e[_0x5cb714(0x452)]},[_0x1aaf0e['nodeId']],_0x1aaf0e[_0x5cb714(0x26d)]),'children':_0x1aaf0e[_0x5cb714(0x2be)]}),_0x1d0d1f(_0x52c5ff,{'className':_0x1f61d6(_0x5cb714(0x288),_0x5cb714(0x34c)),'size':_0x5cb714(0x43a),'variant':_0x5cb714(0x28c),'onClick':()=>_0x155569(_0x1aaf0e[_0x5cb714(0x26d)],_0x1aaf0e[_0x5cb714(0x2be)]),'children':_0x37aabe['t']('boards-mind-ui.panel.rename')})]})},_0x1aaf0e[_0x5cb714(0x26d)]))}):_0x1d0d1f(_0x5cb714(0x2de),{'className':_0x5cb714(0x479),'data-board-mind-map-panel-empty-state':_0x5cb714(0x30a),'children':_0x37aabe['t'](_0x5cb714(0x482))})]})}),_0x29adef==='layout'&&_0x1d0d1f(ui,{'title':_0x37aabe['t']('boards-mind-ui.panel.tab.layout'),'children':_0xf895cc(_0x5cb714(0x2de),{'className':_0x5cb714(0x326),'children':[_0x1d0d1f(_0x5cb714(0x2de),{'className':'univer-flex\x20univer-gap-2','children':_0x1d0d1f(li,{'items':Jr[_0x5cb714(0x461)](_0x545127=>({'label':_0x37aabe['t'](_0x545127[_0x5cb714(0x1f6)]),'value':_0x545127[_0x5cb714(0x2fe)]})),'value':_0x10341e,'onChange':_0x1eeafe=>_0x3a82b8(_0x1eeafe)})}),_0x1d0d1f(_0x5cb714(0x2de),{'className':'univer-flex\x20univer-gap-2','children':_0x1d0d1f(li,{'items':qr[_0x5cb714(0x461)](_0x3cc615=>({'label':_0x37aabe['t'](_0x3cc615[_0x5cb714(0x1f6)]),'value':_0x3cc615[_0x5cb714(0x2fe)]})),'value':_0x2de9ef,'onChange':_0x1a4524=>_0x1c9a39(_0x1a4524)})}),_0x1d0d1f(_0x5cb714(0x2de),{'className':_0x5cb714(0x275),'children':_0x1d0d1f(li,{'items':_0x2aaf28[_0x5cb714(0x461)](_0x1cbc71=>({'label':_0x37aabe['t'](_0x1cbc71[_0x5cb714(0x1f6)]),'value':_0x1cbc71[_0x5cb714(0x2fe)]})),'value':_0x2f1de7,'onChange':_0x2984fd=>_0x197232(_0x2984fd)})}),_0x1d0d1f(_0x5cb714(0x2de),{'className':_0x5cb714(0x375),'children':Kr['map'](({labelKey:_0x152d42,key:_0x4eb924,min:_0x197f7d,max:_0x4e7cb1})=>_0xf895cc(_0x5cb714(0x2e4),{'className':_0x5cb714(0x373),'children':[_0x1d0d1f(_0x5cb714(0x377),{'className':'univer-w-20\x20univer-shrink-0','children':_0x37aabe['t'](_0x152d42)}),_0x1d0d1f(_0x49c357,{'controls':!0x0,'inputClassName':void 0x0,'min':_0x197f7d,'max':_0x4e7cb1,'step':0x4,'value':_0xa09434[_0x4eb924],'precision':0x0,'className':_0x5cb714(0x2ae),'onChange':_0x52aed3=>_0xd9775a(_0x4eb924,Number(_0x52aed3??_0x197f7d))})]},_0x4eb924))})]})}),_0x29adef===_0x5cb714(0x47b)&&_0x1d0d1f(ui,{'title':_0x37aabe['t']('boards-mind-ui.panel.tab.importExport'),'children':_0xf895cc(_0x5cb714(0x2de),{'className':_0x5cb714(0x413),'children':[_0x1d0d1f(_0x3b1bc9,{'className':_0x1f61d6(_0x5cb714(0x49f),_0x5cb714(0x34c)),'placeholder':_0x37aabe['t'](_0x5cb714(0x1d3)),'value':_0x47dfef,'onValueChange':_0x4bfa45}),_0xf895cc(_0x5cb714(0x2de),{'className':_0x5cb714(0x275),'children':[_0x1d0d1f(_0x52c5ff,{'className':void 0x0,'size':_0x5cb714(0x43a),'variant':'primary','disabled':!_0x47dfef[_0x5cb714(0x1c2)](),'onClick':_0x43e699,'children':_0x37aabe['t'](_0x5cb714(0x2c8))}),_0x1d0d1f(_0x52c5ff,{'className':void 0x0,'size':_0x5cb714(0x43a),'variant':_0x5cb714(0x28c),'onClick':_0x193db9,'children':_0x37aabe['t']('boards-mind-ui.panel.exportOPML')})]})]})})]});}let pi=class extends _0x13ec99{constructor(_0xc34f76,_0x59fba0,_0x2f65b7){const _0x196824=_0x2d31a4;super(),this['_commandService']=_0xc34f76,this['_localeService']=_0x59fba0,this[_0x196824(0x1bf)]=_0x2f65b7,K(this,_0x196824(0x1e0),null),this['disposeWithMe'](this[_0x196824(0x2a3)][_0x196824(0x4bd)](Ur)),this['disposeWithMe'](this[_0x196824(0x2a3)]['onCommandExecuted'](_0x1bc715=>{const _0x2e755e=_0x196824;if(_0x1bc715['id']!==Ur['id'])return;let _0x2f4496=_0x1bc715[_0x2e755e(0x49d)];_0x2f4496&&_0x2e755e(0x499)in _0x2f4496&&typeof _0x2f4496['unitId']=='string'&&'subUnitId'in _0x2f4496&&typeof _0x2f4496[_0x2e755e(0x452)]==_0x2e755e(0x3dd)&&_0x2e755e(0x435)in _0x2f4496&&typeof _0x2f4496[_0x2e755e(0x435)]==_0x2e755e(0x3dd)&&this[_0x2e755e(0x3a1)]({'unitId':_0x2f4496[_0x2e755e(0x499)],'subUnitId':_0x2f4496[_0x2e755e(0x452)],'scopeId':_0x2f4496[_0x2e755e(0x435)],'nodeId':'nodeId'in _0x2f4496&&typeof _0x2f4496[_0x2e755e(0x26d)]==_0x2e755e(0x3dd)?_0x2f4496[_0x2e755e(0x26d)]:void 0x0});}));}[_0x2d31a4(0x262)](){const _0x4e90f8=_0x2d31a4;var _0x4f346f;(_0x4f346f=this['_sidebarDisposable'])==null||_0x4f346f['dispose'](),this[_0x4e90f8(0x1e0)]=null,super[_0x4e90f8(0x262)]();}[_0x2d31a4(0x3a1)](_0x16107a){const _0x217369=_0x2d31a4;var _0x43a2d9;let _0x4bc550={'label':Wr,..._0x16107a},_0x3f9b62={'id':Wr,'layout':_0x217369(0x2ca),'header':{'title':this[_0x217369(0x1bd)]['t'](_0x217369(0x264))},'width':0x184,'children':_0x4bc550,'onClose':()=>{const _0x5e033c=_0x217369;this[_0x5e033c(0x1e0)]=null;}};(_0x43a2d9=this[_0x217369(0x1e0)])==null||_0x43a2d9[_0x217369(0x262)](),this[_0x217369(0x1e0)]=this[_0x217369(0x1bf)]['open'](_0x3f9b62);}};pi=J([q(0x0,_0x2a0a40),q(0x1,_0x4a13c4(_0x3ff2da)),q(0x2,_0x4a13c4(_0x2f236d))],pi);function mi(_0x24195a){const _0x5c2de5=_0x2d31a4;let _0x310b61=_0x1b73d0(_0x2a0a40),_0x485885=_0x24195a[_0x5c2de5(0x279)]['extraProps'];return _0x485885?_0x1d0d1f(_0x4e880f,{'shapeRef':{'hostType':_0x4468f4[_0x5c2de5(0x3be)],'unitId':_0x485885[_0x5c2de5(0x499)],'subUnitId':_0x485885[_0x5c2de5(0x452)],'shapeId':_0x485885[_0x5c2de5(0x421)]},'onText':()=>qn(_0x310b61,_0x5c2de5(0x4bc)),'onStyle':()=>_0x310b61[_0x5c2de5(0x38b)](Ur['id'],{'unitId':_0x485885[_0x5c2de5(0x499)],'subUnitId':_0x485885[_0x5c2de5(0x452)],'scopeId':_0x485885[_0x5c2de5(0x435)],'nodeId':_0x485885[_0x5c2de5(0x421)]}),'onDelete':()=>qn(_0x310b61,_0x5c2de5(0x27f))}):null;}function hi(_0xf8e8c0){const _0x2f5884=_0x2d31a4;var _0x15fd4a,_0x50fe04,_0x509df0,_0x46a20c,_0x2d4b52;let _0x1dc49c=_0x1b73d0(_0x2a0a40),_0x53e24b=_0x1b73d0(_0x3ff2da),_0x2765b2=_0x1b73d0(_0x5eb3ad),_0x1ea65c=_0x49d992(_0x2765b2[_0x2f5884(0x2f1)],_0x2765b2[_0x2f5884(0x1b5)]()),[_0xdde74,_0x24117b]=_0x45ab05(null),_0x295dcc=_0x22040a(_0xf8e8c0[_0x2f5884(0x26a)]),_0x2dda11=_0x295dcc['ff']??_0x17912c[_0x2f5884(0x29d)][_0x2f5884(0x3bf)],_0x51aaf4=_0x295dcc['fs']??_0x17912c[_0x2f5884(0x29d)][_0x2f5884(0x282)];function _0x5ac5df(_0x5ad618){const _0x935a23=_0x2f5884;return _0x1dc49c['executeCommand'](_0x3a4e24['id'],{'unitId':_0xf8e8c0[_0x935a23(0x499)],'subUnitId':_0xf8e8c0[_0x935a23(0x452)],'nodeId':_0xf8e8c0[_0x935a23(0x26d)],..._0x5ad618});}let _0x21fcfc=[{'key':_0x2f5884(0x4ca),'value':((_0x15fd4a=_0xf8e8c0[_0x2f5884(0x26a)][_0x2f5884(0x4ca)])==null?void 0x0:_0x15fd4a[_0x2f5884(0x445)])??_0x17912c[_0x2f5884(0x4ca)]},{'key':_0x2f5884(0x2ac),'value':((_0x50fe04=_0xf8e8c0['shapeData'][_0x2f5884(0x2ac)])==null?void 0x0:_0x50fe04['color'])??_0x17912c['stroke']},{'key':_0x2f5884(0x2c2),'value':((_0x509df0=_0x295dcc['cl'])==null?void 0x0:_0x509df0[_0x2f5884(0x3b4)])??_0x17912c[_0x2f5884(0x29d)][_0x2f5884(0x445)]}];if(_0xdde74){var _0xb5919f;return _0xf895cc('div',{'className':_0x2f5884(0x459),'children':[_0x1d0d1f(_0x52c5ff,{'className':_0x2f5884(0x1f3),'onClick':()=>_0x24117b(null),'children':_0x53e24b['t'](_0x2f5884(0x1eb))}),_0xdde74===_0x2f5884(0x3bf)?_0x1ea65c==null?void 0x0:_0x1ea65c[_0x2f5884(0x461)](_0x5c1d92=>_0x1d0d1f(_0x52c5ff,{'className':'univer-min-h-12\x20univer-w-full','aria-pressed':_0x2dda11===_0x5c1d92[_0x2f5884(0x2fe)],'variant':_0x2dda11===_0x5c1d92[_0x2f5884(0x2fe)]?_0x2f5884(0x3af):_0x2f5884(0x28c),'onClick':async()=>{const _0x57a87d=_0x2f5884;await _0x5ac5df({'textStyle':{'fontFamily':_0x5c1d92[_0x57a87d(0x2fe)]}}),_0x24117b(null);},'children':_0x5c1d92[_0x2f5884(0x2e4)]},_0x5c1d92[_0x2f5884(0x2fe)])):_0x1d0d1f(_0x1865a5,{'value':(_0xb5919f=_0x21fcfc[_0x2f5884(0x261)](({key:_0x2906c8})=>_0x2906c8===_0xdde74))==null?void 0x0:_0xb5919f[_0x2f5884(0x2fe)],'onSelect':async _0x316920=>{_0xdde74==='fill'?await _0x5ac5df({'fillColor':_0x316920}):_0xdde74==='stroke'?await _0x5ac5df({'strokeColor':_0x316920}):await _0x5ac5df({'textStyle':{'color':_0x316920}}),_0x24117b(null);}})]});}let _0x4f6dfa=[{'key':_0x2f5884(0x478),'active':_0x295dcc['bl']===_0x8d9210[_0x2f5884(0x257)],'icon':_0x1d0d1f(_0x36b5ff,{})},{'key':_0x2f5884(0x339),'active':_0x295dcc['it']===_0x8d9210['TRUE'],'icon':_0x1d0d1f(_0x828192,{})},{'key':_0x2f5884(0x2a8),'active':((_0x46a20c=_0x295dcc['ul'])==null?void 0x0:_0x46a20c['s'])===_0x8d9210['TRUE'],'icon':_0x1d0d1f(_0x51461a,{})},{'key':_0x2f5884(0x470),'active':((_0x2d4b52=_0x295dcc['st'])==null?void 0x0:_0x2d4b52['s'])===_0x8d9210[_0x2f5884(0x257)],'icon':_0x1d0d1f(_0x1008c5,{})}];return _0xf895cc('div',{'className':_0x2f5884(0x459),'children':[_0x1d0d1f(_0x2f5884(0x2de),{'className':'univer-grid\x20univer-grid-cols-4\x20univer-gap-2','children':_0x4f6dfa[_0x2f5884(0x461)](({key:_0x1a27a3,active:_0x21e172,icon:_0x53db41})=>_0x1d0d1f(_0x52c5ff,{'className':_0x2f5884(0x246),'aria-label':_0x53e24b['t'](_0x2f5884(0x1f0)+_0x1a27a3),'aria-pressed':_0x21e172,'variant':_0x21e172?_0x2f5884(0x3af):_0x2f5884(0x28c),'onClick':()=>_0x5ac5df({'textStyle':{[_0x1a27a3]:!_0x21e172}}),'children':_0x53db41},_0x1a27a3))}),_0xf895cc(_0x52c5ff,{'className':_0x2f5884(0x21e),'onClick':()=>_0x24117b(_0x2f5884(0x3bf)),'children':[_0x1d0d1f('span',{'children':_0x53e24b['t'](_0x2f5884(0x383))}),_0x1d0d1f(_0x2f5884(0x377),{'children':_0x2dda11})]}),_0xf895cc(_0x2f5884(0x2e4),{'className':_0x2f5884(0x34b),'children':[_0x1d0d1f(_0x2f5884(0x377),{'children':_0x53e24b['t'](_0x2f5884(0x3ad))}),_0x1d0d1f(_0x49c357,{'className':_0x2f5884(0x239),'inputClassName':_0x2f5884(0x39c),'controls':!0x1,'min':0x1,'value':_0x51aaf4,'onChange':_0x13c3b6=>{if(_0x13c3b6!=null)return _0x5ac5df({'textStyle':{'fontSize':_0x13c3b6}});}})]}),_0x21fcfc[_0x2f5884(0x461)](({key:_0x1ef922,value:_0x1a037f})=>_0xf895cc(_0x52c5ff,{'className':_0x2f5884(0x21e),'onClick':()=>_0x24117b(_0x1ef922),'children':[_0x1d0d1f(_0x2f5884(0x377),{'children':_0x53e24b['t']('boards-mind-ui.toolbar.action.'+_0x1ef922)}),_0x1d0d1f(_0x2f5884(0x377),{'className':_0x2f5884(0x3ae),'style':{'backgroundColor':_0x1a037f}})]},_0x1ef922))]});}function gi(_0x2d8801){const _0x3e086e=_0x2d31a4;return _0x1d0d1f(_0x3e086e(0x2de),{'className':_0x1f61d6(_0x3e086e(0x2ce),_0x2d8801[_0x3e086e(0x23f)][_0x3e086e(0x1ab)]===0x4?'univer-grid-cols-4':_0x3e086e(0x245)),'children':_0x2d8801['items']['map'](_0x5be015=>_0x1d0d1f(_0x52c5ff,{'className':_0x3e086e(0x3d2),'variant':_0x2d8801[_0x3e086e(0x2fe)]===_0x5be015[_0x3e086e(0x2fe)]?_0x3e086e(0x3af):'default','aria-pressed':_0x2d8801['value']===_0x5be015['value'],'onClick':()=>_0x2d8801['onChange'](_0x5be015[_0x3e086e(0x2fe)]),'children':_0x5be015[_0x3e086e(0x2e4)]},_0x5be015[_0x3e086e(0x2fe)]))});}function _i(_0x4d0341){const _0x37e872=_0x2d31a4;let {commandService:_0x4b42cf,elementStateService:_0x105f55,localeService:_0x1b65d2,query:_0x233d1a,setQuery:_0x142345,editingOutlineNode:_0x47ba9a,setEditingOutlineNode:_0x5a62b4,opmlText:_0x3ef754,setOpmlText:_0x44161c,spacing:_0x5c1017,layoutDirection:_0x1faa1e,structureKind:_0x41a18f,branchLineType:_0x453ba7,activeTab:_0x8bac33,setActiveTab:_0x552ab7,visibleOutlineItems:_0x144c05,baseParams:_0x3d7a2f,tabItems:_0x132171,selectedNode:_0x487544,branchLineItems:_0x375b76,changeLayout:_0x28248e,changeStructureKind:_0x528e4d,changeBranchLineType:_0x24121f,changeSpacing:_0x2eb696,importOpml:_0x24a58a,startRenameNode:_0x39e864,commitRenameNode:_0x37378c}=di(_0x4d0341,_0x4d0341[_0x37e872(0x26d)]?'style':'structure');return(_0x487544==null?void 0x0:_0x487544['type'])===_0x2cde10[_0x37e872(0x41d)]&&_0x132171[_0x37e872(0x475)]({'label':_0x1b65d2['t'](_0x37e872(0x3ec)),'value':'style'}),_0xf895cc('div',{'className':_0x37e872(0x374),'data-board-mind-map-panel':_0x37e872(0x30a),'children':[_0x1d0d1f(_0x37e872(0x2de),{'className':_0x1f61d6(_0x37e872(0x46c),_0x54a2dc),'data-board-mind-map-panel-tabs':_0x37e872(0x30a),'children':_0x1d0d1f(gi,{'items':_0x132171,'value':_0x8bac33,'onChange':_0xabdb29=>_0x552ab7(_0xabdb29)})}),_0x8bac33===_0x37e872(0x2a4)&&(_0x487544==null?void 0x0:_0x487544[_0x37e872(0x48d)])===_0x2cde10[_0x37e872(0x41d)]&&_0x1d0d1f(hi,{'unitId':_0x4d0341[_0x37e872(0x499)],'subUnitId':_0x4d0341[_0x37e872(0x452)],'nodeId':_0x487544['id'],'shapeData':_0x487544['shapeData']}),_0x8bac33===_0x37e872(0x407)&&_0x1d0d1f(ui,{'title':_0x1b65d2['t'](_0x37e872(0x1f2)),'children':_0xf895cc(_0x37e872(0x2de),{'children':[_0x1d0d1f(_0x12c1c2,{'slot':_0x1d0d1f(_0x395528,{}),'value':_0x233d1a,'placeholder':_0x1b65d2['t']('boards-mind-ui.panel.searchNodes'),'className':_0x1f61d6('univer-mb-3\x20univer-w-full',_0x37e872(0x3f6)),'onChange':_0x142345}),_0x144c05[_0x37e872(0x1ab)]?_0x1d0d1f('ol',{'className':_0x37e872(0x33b),'children':_0x144c05[_0x37e872(0x461)](_0x16e386=>_0x1d0d1f('li',{'className':_0x37e872(0x20e),'style':ci(_0x16e386[_0x37e872(0x292)]),'children':(_0x47ba9a==null?void 0x0:_0x47ba9a[_0x37e872(0x26d)])===_0x16e386[_0x37e872(0x26d)]?_0xf895cc('div',{'className':_0x1f61d6(_0x37e872(0x477),_0x37e872(0x25a)),'children':[_0x1d0d1f(_0x12c1c2,{'autoFocus':!0x1,'size':_0x37e872(0x2a0),'className':'univer-w-full\x20univer-text-base','value':_0x47ba9a[_0x37e872(0x2be)],'onChange':_0x1c8d25=>_0x5a62b4({'nodeId':_0x16e386[_0x37e872(0x26d)],'text':_0x1c8d25}),'onKeyDown':_0x361920=>{const _0xe6eca4=_0x37e872;_0x361920[_0xe6eca4(0x3a2)]===_0xe6eca4(0x2e5)&&_0x37378c(),_0x361920[_0xe6eca4(0x3a2)]===_0xe6eca4(0x349)&&_0x5a62b4(null);}}),_0x1d0d1f(_0x52c5ff,{'className':_0x37e872(0x299),'size':'small','variant':_0x37e872(0x3af),'disabled':!_0x47ba9a[_0x37e872(0x2be)][_0x37e872(0x1c2)](),'onClick':_0x37378c,'children':_0x1b65d2['t']('boards-mind-ui.panel.rename')}),_0x1d0d1f(_0x52c5ff,{'className':_0x37e872(0x299),'size':_0x37e872(0x43a),'variant':_0x37e872(0x28c),'onClick':()=>_0x5a62b4(null),'children':_0x1b65d2['t'](_0x37e872(0x1eb))})]}):_0xf895cc(_0x2f0da1,{'children':[_0x1d0d1f(_0x52c5ff,{'size':_0x37e872(0x43a),'variant':'ghost','className':_0x1f61d6(_0x37e872(0x1b3),'univer-min-h-12\x20univer-text-base'),'onClick':()=>_0x105f55['selectElements']({'unitId':_0x4d0341[_0x37e872(0x499)],'subUnitId':_0x4d0341[_0x37e872(0x452)]},[_0x16e386[_0x37e872(0x26d)]],_0x16e386[_0x37e872(0x26d)]),'children':_0x16e386['text']}),_0x1d0d1f(_0x52c5ff,{'className':_0x1f61d6(_0x37e872(0x288),_0x37e872(0x388)),'size':_0x37e872(0x43a),'variant':'default','onClick':()=>_0x39e864(_0x16e386[_0x37e872(0x26d)],_0x16e386[_0x37e872(0x2be)]),'children':_0x1b65d2['t'](_0x37e872(0x316))})]})},_0x16e386[_0x37e872(0x26d)]))}):_0x1d0d1f(_0x37e872(0x2de),{'className':_0x37e872(0x479),'data-board-mind-map-panel-empty-state':_0x37e872(0x30a),'children':_0x1b65d2['t']('boards-mind-ui.panel.emptyNodes')})]})}),_0x8bac33==='layout'&&_0x1d0d1f(ui,{'title':_0x1b65d2['t'](_0x37e872(0x3d4)),'children':_0xf895cc('div',{'className':_0x37e872(0x326),'children':[_0x1d0d1f(_0x37e872(0x2de),{'className':_0x37e872(0x275),'children':_0x1d0d1f(gi,{'items':Jr['map'](_0x18da3d=>({'label':_0x1b65d2['t'](_0x18da3d[_0x37e872(0x1f6)]),'value':_0x18da3d[_0x37e872(0x2fe)]})),'value':_0x41a18f,'onChange':_0x4957e8=>_0x528e4d(_0x4957e8)})}),_0x1d0d1f(_0x37e872(0x2de),{'className':'univer-flex\x20univer-gap-2','children':_0x1d0d1f(gi,{'items':qr[_0x37e872(0x461)](_0x153189=>({'label':_0x1b65d2['t'](_0x153189[_0x37e872(0x1f6)]),'value':_0x153189[_0x37e872(0x2fe)]})),'value':_0x1faa1e,'onChange':_0x402934=>_0x28248e(_0x402934)})}),_0x1d0d1f(_0x37e872(0x2de),{'className':_0x37e872(0x275),'children':_0x1d0d1f(gi,{'items':_0x375b76['map'](_0xd7ed57=>({'label':_0x1b65d2['t'](_0xd7ed57['labelKey']),'value':_0xd7ed57[_0x37e872(0x2fe)]})),'value':_0x453ba7,'onChange':_0x5a4ca6=>_0x24121f(_0x5a4ca6)})}),_0x1d0d1f('div',{'className':_0x37e872(0x375),'children':Kr['map'](({labelKey:_0x432fed,key:_0x31de00,min:_0x5576a6,max:_0x4eadea})=>_0xf895cc('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','children':[_0x1d0d1f(_0x37e872(0x377),{'className':_0x37e872(0x302),'children':_0x1b65d2['t'](_0x432fed)}),_0x1d0d1f(_0x49c357,{'controls':!0x1,'inputClassName':_0x37e872(0x39c),'min':_0x5576a6,'max':_0x4eadea,'step':0x4,'value':_0x5c1017[_0x31de00],'precision':0x0,'className':_0x37e872(0x1b6),'onChange':_0x45c18e=>_0x2eb696(_0x31de00,Number(_0x45c18e??_0x5576a6))})]},_0x31de00))})]})}),_0x8bac33===_0x37e872(0x47b)&&_0x1d0d1f(ui,{'title':_0x1b65d2['t'](_0x37e872(0x30f)),'children':_0xf895cc(_0x37e872(0x2de),{'className':_0x37e872(0x413),'children':[_0x1d0d1f(_0x3b1bc9,{'className':_0x1f61d6(_0x37e872(0x49f),_0x37e872(0x444)),'placeholder':_0x1b65d2['t'](_0x37e872(0x1d3)),'value':_0x3ef754,'onValueChange':_0x44161c}),_0xf895cc('div',{'className':_0x37e872(0x275),'children':[_0x1d0d1f(_0x52c5ff,{'className':_0x37e872(0x299),'size':'small','variant':_0x37e872(0x3af),'disabled':!_0x3ef754[_0x37e872(0x1c2)](),'onClick':_0x24a58a,'children':_0x1b65d2['t'](_0x37e872(0x2c8))}),_0x1d0d1f(_0x52c5ff,{'className':_0x37e872(0x299),'size':_0x37e872(0x43a),'variant':_0x37e872(0x28c),'onClick':async()=>{const _0x1f4655=_0x37e872;let _0x422d83=await _0x4b42cf[_0x1f4655(0x38b)](_0x40d1d1['id'],_0x3d7a2f);_0x422d83!==!0x1&&_0x44161c(_0x422d83);},'children':_0x1b65d2['t']('boards-mind-ui.panel.exportOPML')})]})]})})]});}let vi=class extends _0x13ec99{constructor(_0x2b133b){const _0x1570e0=_0x2d31a4;super(),this['_componentManager']=_0x2b133b,this[_0x1570e0(0x26f)]();}[_0x2d31a4(0x26f)](){const _0x4ca410=_0x2d31a4;this[_0x4ca410(0x42f)](this[_0x4ca410(0x351)][_0x4ca410(0x425)](On,An)),this[_0x4ca410(0x42f)](this[_0x4ca410(0x351)][_0x4ca410(0x425)](Kn,mi)),this[_0x4ca410(0x42f)](this[_0x4ca410(0x351)][_0x4ca410(0x425)](Wr,_i));}};vi=J([q(0x0,_0x4a13c4(_0x48f5c4))],vi);let yi=class extends _0x13ec99{constructor(_0x456fba,_0x3921e8,_0x4b16e4){const _0x3ce9ef=_0x2d31a4;super(),this['_commandService']=_0x456fba,this[_0x3ce9ef(0x1bd)]=_0x3921e8,this['_sidebarService']=_0x4b16e4,K(this,_0x3ce9ef(0x1e0),null),this['disposeWithMe'](this[_0x3ce9ef(0x2a3)][_0x3ce9ef(0x4bd)](Ur)),this[_0x3ce9ef(0x42f)](this[_0x3ce9ef(0x2a3)][_0x3ce9ef(0x44c)](_0x3ea9c8=>{const _0x41a096=_0x3ce9ef;if(_0x3ea9c8['id']!==Ur['id'])return;let _0x1223cc=_0x3ea9c8[_0x41a096(0x49d)];_0x1223cc&&_0x41a096(0x499)in _0x1223cc&&typeof _0x1223cc['unitId']=='string'&&_0x41a096(0x452)in _0x1223cc&&typeof _0x1223cc[_0x41a096(0x452)]==_0x41a096(0x3dd)&&_0x41a096(0x435)in _0x1223cc&&typeof _0x1223cc[_0x41a096(0x435)]==_0x41a096(0x3dd)&&this[_0x41a096(0x3a1)]({'unitId':_0x1223cc[_0x41a096(0x499)],'subUnitId':_0x1223cc[_0x41a096(0x452)],'scopeId':_0x1223cc[_0x41a096(0x435)],'nodeId':_0x41a096(0x26d)in _0x1223cc&&typeof _0x1223cc[_0x41a096(0x26d)]=='string'?_0x1223cc[_0x41a096(0x26d)]:void 0x0});}));}['dispose'](){const _0x51ccce=_0x2d31a4;var _0x18ad46;(_0x18ad46=this[_0x51ccce(0x1e0)])==null||_0x18ad46['dispose'](),this[_0x51ccce(0x1e0)]=null,super[_0x51ccce(0x262)]();}[_0x2d31a4(0x3a1)](_0x272ec6){const _0x5e2911=_0x2d31a4;var _0x58faf5;let _0x325626={'label':Wr,..._0x272ec6};(_0x58faf5=this[_0x5e2911(0x1e0)])==null||_0x58faf5[_0x5e2911(0x262)](),this['_sidebarDisposable']=this[_0x5e2911(0x1bf)][_0x5e2911(0x3a1)]({'id':Wr,'header':{'title':this[_0x5e2911(0x1bd)]['t'](_0x5e2911(0x264))},'width':0x184,'children':_0x325626,'onClose':()=>{const _0x20bce9=_0x5e2911;this[_0x20bce9(0x1e0)]=null;}});}};yi=J([q(0x0,_0x2a0a40),q(0x1,_0x4a13c4(_0x3ff2da)),q(0x2,_0x4a13c4(_0x2f236d))],yi);let bi=class extends _0x13ec99{constructor(_0x21a078){const _0x556cc3=_0x2d31a4;super(),this[_0x556cc3(0x351)]=_0x21a078,this[_0x556cc3(0x26f)]();}[_0x2d31a4(0x26f)](){const _0x11d44c=_0x2d31a4;this[_0x11d44c(0x42f)](this['_componentManager'][_0x11d44c(0x425)](On,An)),this['disposeWithMe'](this[_0x11d44c(0x351)][_0x11d44c(0x425)](Kn,cr)),this['disposeWithMe'](this['_componentManager'][_0x11d44c(0x425)](Wr,fi));}};bi=J([q(0x0,_0x4a13c4(_0x48f5c4))],bi);let xi=class{constructor(_0x3bd4a2,_0x297e52,_0x30871){const _0x1a6d9f=_0x2d31a4;this[_0x1a6d9f(0x39d)]=_0x3bd4a2,this[_0x1a6d9f(0x2d3)]=_0x297e52,this[_0x1a6d9f(0x247)]=_0x30871;}[_0x2d31a4(0x424)](_0x581a6f){const _0x255eba=_0x2d31a4;var _0x3f4ba1,_0x33a774;let _0x1b8679=(_0x3f4ba1=this[_0x255eba(0x247)][_0x255eba(0x1c9)](_0x581a6f[_0x255eba(0x499)]))==null||(_0x33a774=_0x3f4ba1[_0x255eba(0x297)])==null?void 0x0:_0x33a774[_0x255eba(0x248)](_0x3f4ba1),_0x3036b9=(_0x1b8679==null?void 0x0:_0x1b8679[_0x255eba(0x267)](_0x18a088))??this['_stateService'];return((_0x1b8679==null?void 0x0:_0x1b8679[_0x255eba(0x267)](br))??this[_0x255eba(0x2d3)])[_0x255eba(0x3b5)]({'rootText':_0x581a6f['rootText'],'structureKind':_0x581a6f[_0x255eba(0x46d)],'branchLineType':_0x581a6f[_0x255eba(0x365)],'children':_0x581a6f[_0x255eba(0x20c)],'blueprint':_0x581a6f[_0x255eba(0x1d4)]}),_0x3036b9[_0x255eba(0x480)](!0x1),_0x3036b9[_0x255eba(0x356)](),_0x3036b9['setActiveTool'](_0x1210f4['MindMap']),_0x3036b9[_0x255eba(0x44e)]({'type':_0x1210f4[_0x255eba(0x32e)]}),!0x0;}};xi=J([q(0x0,_0x18a088),q(0x1,_0x4a13c4(br)),q(0x2,_0xa5c56c)],xi);const Si=_0x2d31a4(0x49b),Ci=[Dn],wi=[Vr];let Ti=class extends _0x1119d2{constructor(_0x2b6905=en,_0x405a48,_0x2308e1,_0x3f17cc){const _0x1377fb=_0x2d31a4;super(),this[_0x1377fb(0x213)]=_0x2b6905,this[_0x1377fb(0x437)]=_0x405a48,this[_0x1377fb(0x337)]=_0x2308e1,this['_renderManagerService']=_0x3f17cc;let {..._0x18a874}=_0x341d8c({},en,this[_0x1377fb(0x213)]);this[_0x1377fb(0x337)][_0x1377fb(0x2dc)]($t,_0x18a874);}[_0x2d31a4(0x215)](){const _0x1b3f6c=_0x2d31a4;_0x302504[_0x1b3f6c(0x317)](this[_0x1b3f6c(0x437)],[[br],[Tr]]),this['_getDependencies']()['forEach'](_0x4adc42=>this[_0x1b3f6c(0x437)][_0x1b3f6c(0x3e8)](_0x4adc42));let _0x467c6a=this['_injector'][_0x1b3f6c(0x267)](xi),_0x515b24=this['_injector']['get'](_0x38e800);this[_0x1b3f6c(0x42f)](_0x515b24['registerAdapter'](_0x467c6a)),this['disposeWithMe'](this[_0x1b3f6c(0x437)][_0x1b3f6c(0x267)](Ln)),this[_0x1b3f6c(0x42f)](this[_0x1b3f6c(0x437)][_0x1b3f6c(0x267)](zr)),this['disposeWithMe'](this['_injector'][_0x1b3f6c(0x267)](yi)),this['disposeWithMe'](this['_injector']['get'](bi)),this[_0x1b3f6c(0x441)]();}['_getDependencies'](){return[[br],[Tr],[xi],[Ln],[zr],[yi],[bi]];}[_0x2d31a4(0x28d)](){return[Ci,wi,[wr],[Lr],[ur],[En],[an],[Or]];}[_0x2d31a4(0x1ff)](){const _0x46e3d8=_0x2d31a4;this[_0x46e3d8(0x28d)]()[_0x46e3d8(0x205)](_0x54a9b1=>{const _0x1f0c9f=_0x46e3d8;this[_0x1f0c9f(0x42f)](this[_0x1f0c9f(0x247)][_0x1f0c9f(0x385)](_0x4468f4[_0x1f0c9f(0x3be)],_0x54a9b1));});}['_enableMindMapToolbarTool'](){const _0x677358=_0x2d31a4;var _0x55f7fe,_0x3dce1d;let _0x4b96b5=this[_0x677358(0x3f7)]();this['_configService'][_0x677358(0x2dc)](_0x451d89,{..._0x4b96b5,'toolbar':{..._0x4b96b5[_0x677358(0x3ff)],'tools':{...(_0x55f7fe=_0x4b96b5['toolbar'])==null?void 0x0:_0x55f7fe[_0x677358(0x2d6)],[_0x1210f4[_0x677358(0x32e)]]:Ei((_0x3dce1d=_0x4b96b5[_0x677358(0x3ff)])==null||(_0x3dce1d=_0x3dce1d['tools'])==null?void 0x0:_0x3dce1d[_0x1210f4['MindMap']])}}});}[_0x2d31a4(0x3f7)](){const _0x1339f3=_0x2d31a4;return this[_0x1339f3(0x337)]['getConfig'](_0x451d89)??{};}};K(Ti,_0x2d31a4(0x35f),Si),K(Ti,_0x2d31a4(0x489),Zt),K(Ti,'version',Qt),K(Ti,_0x2d31a4(0x48d),_0x4468f4[_0x2d31a4(0x3be)]),Ti=J([_0x42b603(_0xc6ab10,_0x49dfad,_0x39db0c,_0x577257,_0x302504),q(0x1,_0x4a13c4(_0x159d73)),q(0x2,_0x22928b),q(0x3,_0xa5c56c)],Ti);function Ei(_0x1bb126){const _0x4e8058=_0x2d31a4;return _0x1bb126===!0x1?!0x1:typeof _0x1bb126!=_0x4e8058(0x367)||{..._0x1bb126,'enabled':_0x1bb126['enabled']??!0x0};}let Di=class extends _0x1119d2{constructor(_0x713ced=en,_0x54552b,_0x46b539,_0x3086f7){const _0x2a1cfa=_0x2d31a4;super(),this[_0x2a1cfa(0x213)]=_0x713ced,this[_0x2a1cfa(0x437)]=_0x54552b,this[_0x2a1cfa(0x337)]=_0x46b539,this[_0x2a1cfa(0x247)]=_0x3086f7;let {..._0x34fa3f}=_0x341d8c({},en,this[_0x2a1cfa(0x213)]);this['_configService'][_0x2a1cfa(0x2dc)]($t,_0x34fa3f);}[_0x2d31a4(0x215)](){const _0x128e74=_0x2d31a4;let _0x1d8244=[[br],[Tr]];_0x3c9575[_0x128e74(0x317)](this['_injector'],_0x1d8244),[..._0x1d8244,[xi],[Ln],[zr],[pi],[vi]][_0x128e74(0x205)](_0x56cf4f=>this[_0x128e74(0x437)][_0x128e74(0x3e8)](_0x56cf4f)),this[_0x128e74(0x42f)](this['_injector'][_0x128e74(0x267)](_0x38e800)[_0x128e74(0x1b2)](this[_0x128e74(0x437)][_0x128e74(0x267)](xi))),this['disposeWithMe'](this[_0x128e74(0x437)][_0x128e74(0x267)](Ln)),this['disposeWithMe'](this['_injector'][_0x128e74(0x267)](zr)),this[_0x128e74(0x42f)](this[_0x128e74(0x437)][_0x128e74(0x267)](pi)),this[_0x128e74(0x42f)](this[_0x128e74(0x437)][_0x128e74(0x267)](vi)),this['_enableMindMapToolbarTool']();}[_0x2d31a4(0x1ff)](){const _0x1de046=_0x2d31a4;[[Dn],[Vr],[wr,{'useClass':Hr}],[Lr],[ur],[En],[an],[Or]][_0x1de046(0x205)](_0x38e036=>{const _0x29dd62=_0x1de046;this[_0x29dd62(0x42f)](this[_0x29dd62(0x247)][_0x29dd62(0x385)](_0x4468f4[_0x29dd62(0x3be)],_0x38e036));});}[_0x2d31a4(0x441)](){const _0x9303e=_0x2d31a4;var _0x24de2e,_0x5f0c60;let _0x545de7=this[_0x9303e(0x3f7)]();this[_0x9303e(0x337)][_0x9303e(0x2dc)](_0x451d89,{..._0x545de7,'toolbar':{..._0x545de7[_0x9303e(0x3ff)],'tools':{...(_0x24de2e=_0x545de7[_0x9303e(0x3ff)])==null?void 0x0:_0x24de2e[_0x9303e(0x2d6)],[_0x1210f4[_0x9303e(0x32e)]]:Oi((_0x5f0c60=_0x545de7['toolbar'])==null||(_0x5f0c60=_0x5f0c60[_0x9303e(0x2d6)])==null?void 0x0:_0x5f0c60[_0x1210f4[_0x9303e(0x32e)]])}}});}[_0x2d31a4(0x3f7)](){const _0x44d021=_0x2d31a4;return this[_0x44d021(0x337)]['getConfig'](_0x451d89)??{};}};K(Di,_0x2d31a4(0x35f),Si),K(Di,_0x2d31a4(0x489),Zt),K(Di,_0x2d31a4(0x411),Qt),K(Di,'type',_0x4468f4[_0x2d31a4(0x3be)]),Di=J([_0x42b603(_0xc6ab10,_0x49dfad,_0x39db0c,_0x577257,_0x3c9575),q(0x1,_0x4a13c4(_0x159d73)),q(0x2,_0x22928b),q(0x3,_0xa5c56c)],Di);function Oi(_0x554cfc){const _0x25e2ea=_0x2d31a4;return _0x554cfc===!0x1?!0x1:typeof _0x554cfc!=_0x25e2ea(0x367)||{..._0x554cfc,'enabled':_0x554cfc[_0x25e2ea(0x203)]??!0x0};}export{Di as UniverBoardsMindMobileUIPlugin,Ti as UniverBoardsMindUIPlugin};
|
|
1
|
+
const _0x1f10c6=_0x1bd6;(function(_0x15eb05,_0x4f3cce){const _0x613c50=_0x1bd6,_0x543ba0=_0x15eb05();while(!![]){try{const _0x3c0417=parseInt(_0x613c50(0x141))/0x1+parseInt(_0x613c50(0x375))/0x2+-parseInt(_0x613c50(0x169))/0x3+-parseInt(_0x613c50(0x33c))/0x4*(parseInt(_0x613c50(0x1e7))/0x5)+-parseInt(_0x613c50(0x2b9))/0x6*(parseInt(_0x613c50(0x17b))/0x7)+parseInt(_0x613c50(0x38d))/0x8*(parseInt(_0x613c50(0x1f1))/0x9)+parseInt(_0x613c50(0x37f))/0xa*(parseInt(_0x613c50(0x3fa))/0xb);if(_0x3c0417===_0x4f3cce)break;else _0x543ba0['push'](_0x543ba0['shift']());}catch(_0x4336a0){_0x543ba0['push'](_0x543ba0['shift']());}}}(_0x1ae0,0xa5a4b));import{BoardElementType as _0x3a0cfb,BoardToolType as _0x529842,IBoardElementService as _0x52d74d,IBoardMindMapAdapterService as _0x29fd82,UniverBoardsPlugin as _0x14526b,documentTextStyleToBoardShapeTextStyle as _0xac270a,offsetBoardConnectorGeometry as _0x1e48b9,resolveBoardElementWorldBounds as _0x401f4b}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x47eba7,AddMindMapSiblingOperation as _0x5d96a8,ChangeMindMapBranchLineTypeOperation as _0x4bb9b4,ChangeMindMapLayoutOperation as _0x24f826,CopyMindMapNodeOperation as _0x324033,DeleteMindMapNodeOperation as _0x3862d0,DetachMindMapNodeOperation as _0x4315a8,ExportMindMapOpmlOperation as _0x1c72f4,IMindMapClipboardService as _0x7e4b74,ImportMindMapOpmlOperation as _0x4975f4,InsertBoardMindMapOperation as _0x1e1a00,LayoutMindMapOperation as _0x4a8bdc,MIND_MAP_DEFAULT_LAYOUT as _0x258b6f,MIND_MAP_DEFAULT_NODE_SIZE as _0x4c0c6a,MIND_MAP_DEFAULT_NODE_TEXT as _0x35edc8,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x1e39ab,PasteMindMapAsNewMindMapOperation as _0x5b8033,PasteMindMapNodeOperation as _0x8b217d,PromoteMindMapNodeOperation as _0x3a6c62,ReparentMindMapNodeOperation as _0x1b0b1e,ToggleMindMapNodeCollapseOperation as _0x86163e,TranslateMindMapOperation as _0x34c5bd,UniverBoardsMindPlugin as _0x4e9553,UpdateMindMapIncomingConnectorOperation as _0x229f83,UpdateMindMapNodeOperation as _0x1c2b74,compareMindMapOrderKey as _0x3ac29b,getMindMapConnectorMeta as _0x2139e0,getMindMapContainerMeta as _0x195a16,getMindMapDefaultChildOrderKey as _0x1d4a72,getMindMapNodeMeta as _0x51f94c,isMindMapPlainStructureKind as _0x2052ed,resolveMindMapBranchLineTypeForStructure as _0x557da1,resolveMindMapLayoutPreview as _0x384f9e,resolveMindMapNodeHostSize as _0x2fe75a}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x5a2905,BOARD_RENDER_LAYER_INDEX as _0x2a0926,BOARD_RENDER_OBJECT_Z_INDEX as _0x3d308f,BOARD_SHORTCUT_BINDINGS as _0x1e6cfc,BoardCanvasPopManagerService as _0x1b3bdf,BoardInteractionSurfaceService as _0x3304c1,BoardShapeIntrinsicSizeService as _0x5c4bcf,BoardTextEditingService as _0x157676,IBoardElementStateService as _0x10fb2b,IBoardUIStateService as _0x50e115,UniverBoardsMobileUIPlugin as _0x29e7e1,UniverBoardsUIPlugin as _0x5a6c40,areBoardShapeTextValuesEquivalent as _0x1f8885,getBoardElementRenderObjectKey as _0x10c90a,isBoardShortcutAvailable as _0x4ef334,parseBoardElementRenderObjectKey as _0x638279,resolveBoardFloatingToolbarSelection as _0x39e4fd,syncBoardElementRenderObject as _0x3e7b6d}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x3b2992}from'@univerjs-pro/license';import{BooleanNumber as _0x3f7dc4,CommandType as _0x266447,DEFAULT_STYLES as _0xbb156e,DependentOn as _0x3653bf,Disposable as _0x494558,DisposableCollection as _0x308d99,HorizontalAlign as _0xbace98,ICommandService as _0x56aea3,IConfigService as _0x77a9ff,IContextService as _0x244b35,IUniverInstanceService as _0x1d8bf1,Inject as _0x2e0f98,Injector as _0x5007c9,LocaleService as _0x588054,Plugin as _0x5c3776,RxDisposable as _0x9852b5,UniverInstanceType as _0x25af0d,VerticalAlign as _0x3de0d7,generateRandomId as _0x4e853d,merge as _0x4a118c,toDisposable as _0x50821e}from'@univerjs/core';import{BaseObject as _0x48d510,Control as _0xf647d4,DeviceType as _0xf8d86,IRenderManagerService as _0x2411d0,UniverRenderEnginePlugin as _0x5abc2b}from'@univerjs/engine-render';import{Subject as _0x3731e6,merge as _0x4faf04,takeUntil as _0x2c3b45}from'rxjs';import{ComponentManager as _0x583274,IDialogService as _0x51a5ab,IFontService as _0x23931d,IShortcutService as _0x1247c4,ISidebarService as _0x56009b,KeyCode as _0x438e5f,MetaKeys as _0x379149,UndoRedoGroupService as _0x56a505,useDependency as _0x44103d,useObservable as _0x376a49}from'@univerjs/ui';import{MobileShapeMenu as _0x3a615f,SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x140b36,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x5c5253,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x5402c0,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x518561,ShapeFillButton as _0x463ee2,ShapeFloatingToolbarContent as _0xa7d80a,ShapeFloatingToolbarDropdownTrigger as _0x53a097,ShapeFloatingToolbarFontSizeSelect as _0x1fb5f7,ShapeFloatingToolbarIcon as _0x1816c6,ShapeFloatingToolbarMenuItem as _0x4f4086,ShapeFloatingToolbarMenuPanel as _0x412185,ShapeStrokePanelButton as _0x3bc7f5,ShapeStrokePanelContent as _0x1d45c4,TextFillButton as _0x44d485,TypographyPanelButton as _0x2fd74b,buildShapeTextDataUpdate as _0x51fd3e,getTextStyle as _0x3a3968}from'@univerjs-pro/shape-editor-ui';import{ShapeDefaultConfig as _0x3ef48a,ShapeLineDashEnum as _0x4d9387,ShapeLineTypeEnum as _0x5cbb11}from'@univerjs-pro/engine-shape';import{Button as _0x4ef5c6,Dropdown as _0x1440b5,Input as _0x2cac2e,InputNumber as _0x5d147a,MobileColorPresets as _0x4001ce,Segmented as _0x2b2f23,Separator as _0x33c873,Textarea as _0x5163c9,borderClassName as _0x1e4058,clsx as _0x3e6ef4}from'@univerjs/design';import{AlignBottomIcon as _0x12a095,AlignTextBothIcon as _0xfce763,AlignTopIcon as _0x392721,BoldIcon as _0x39f22d,HorizontallyIcon as _0x272dbc,ItalicIcon as _0x175b66,LeftJustifyingIcon as _0x1f1280,MoreHorizontalIcon as _0x5169d6,RightJustifyingIcon as _0x34fdee,SearchIcon as _0x33044b,ShapeLineIcon as _0x44b731,StrikethroughIcon as _0x325ccb,UnderlineIcon as _0x5c18a9,VerticalCenterIcon as _0x12c870}from'@univerjs/icons';import{useEffect as _0x3733e5,useReducer as _0x22c633,useState as _0x63f429}from'react';import{Fragment as _0x3a937c,jsx as _0x4a7fc2,jsxs as _0x2bca5a}from'react/jsx-runtime';var Zt=_0x1f10c6(0x398),Qt='1.0.2';const $t='boards-mind-ui.config',en={};function tn(_0x27022c){'@babel/helpers - typeof';const _0x493607=_0x1f10c6;return tn=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x493607(0x2a9)?function(_0x1ce7bd){return typeof _0x1ce7bd;}:function(_0x378d89){const _0x248b1d=_0x493607;return _0x378d89&&typeof Symbol==_0x248b1d(0x22e)&&_0x378d89[_0x248b1d(0x324)]===Symbol&&_0x378d89!==Symbol['prototype']?_0x248b1d(0x2a9):typeof _0x378d89;},tn(_0x27022c);}function nn(_0x18c8d4,_0x2b9498){const _0x16bc83=_0x1f10c6;if(tn(_0x18c8d4)!=_0x16bc83(0x25a)||!_0x18c8d4)return _0x18c8d4;var _0x35c95c=_0x18c8d4[Symbol[_0x16bc83(0x3d8)]];if(_0x35c95c!==void 0x0){var _0x6373d5=_0x35c95c[_0x16bc83(0x266)](_0x18c8d4,_0x2b9498||_0x16bc83(0x3bb));if(tn(_0x6373d5)!='object')return _0x6373d5;throw TypeError(_0x16bc83(0x395));}return(_0x2b9498===_0x16bc83(0x185)?String:Number)(_0x18c8d4);}function rn(_0x486c50){const _0x91d3bc=_0x1f10c6;var _0x1da1d7=nn(_0x486c50,_0x91d3bc(0x185));return tn(_0x1da1d7)==_0x91d3bc(0x2a9)?_0x1da1d7:_0x1da1d7+'';}function K(_0x2b0c40,_0x4b9119,_0x545aff){const _0xbb41a1=_0x1f10c6;return(_0x4b9119=rn(_0x4b9119))in _0x2b0c40?Object[_0xbb41a1(0x3c7)](_0x2b0c40,_0x4b9119,{'value':_0x545aff,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b0c40[_0x4b9119]=_0x545aff,_0x2b0c40;}function q(_0x22cbf2,_0x249266){return function(_0xf86c2e,_0x50533f){_0x249266(_0xf86c2e,_0x50533f,_0x22cbf2);};}function J(_0x671efd,_0x42bf15,_0x56d478,_0x2620d9){const _0xa3c9bf=_0x1f10c6;var _0xdbfbe7=arguments[_0xa3c9bf(0x1f3)],_0x58d06d=_0xdbfbe7<0x3?_0x42bf15:_0x2620d9===null?_0x2620d9=Object['getOwnPropertyDescriptor'](_0x42bf15,_0x56d478):_0x2620d9,_0x20fad1;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0xa3c9bf(0x22e))_0x58d06d=Reflect[_0xa3c9bf(0x13d)](_0x671efd,_0x42bf15,_0x56d478,_0x2620d9);else{for(var _0x40cb41=_0x671efd[_0xa3c9bf(0x1f3)]-0x1;_0x40cb41>=0x0;_0x40cb41--)(_0x20fad1=_0x671efd[_0x40cb41])&&(_0x58d06d=(_0xdbfbe7<0x3?_0x20fad1(_0x58d06d):_0xdbfbe7>0x3?_0x20fad1(_0x42bf15,_0x56d478,_0x58d06d):_0x20fad1(_0x42bf15,_0x56d478))||_0x58d06d);}return _0xdbfbe7>0x3&&_0x58d06d&&Object[_0xa3c9bf(0x3c7)](_0x42bf15,_0x56d478,_0x58d06d),_0x58d06d;}let an=class extends _0x9852b5{constructor(_0x308433,_0x5dbf18,_0x635916){const _0x54ae40=_0x1f10c6;super(),this['_renderContext']=_0x308433,this['_boardElementService']=_0x5dbf18,this['_commandService']=_0x635916,K(this,_0x54ae40(0x332),new Map()),K(this,_0x54ae40(0x31c),new Map()),K(this,'_layoutFlushScheduled',!0x1),this[_0x54ae40(0x347)]();}[_0x1f10c6(0x347)](){const _0x2b995a=_0x1f10c6;this['_seedExistingNodeSizes'](),this[_0x2b995a(0x1c8)](_0x50821e(this[_0x2b995a(0x384)][_0x2b995a(0x289)][_0x2b995a(0x36e)](_0x2c3b45(this[_0x2b995a(0x273)]))['subscribe'](_0x39389e=>{const _0x3c34ab=_0x2b995a;_0x39389e[_0x3c34ab(0x35f)](_0x210c9a=>{const _0x20eb65=_0x3c34ab;let _0x33667c=this[_0x20eb65(0x384)][_0x20eb65(0x362)](_0x210c9a[_0x20eb65(0x147)],_0x210c9a[_0x20eb65(0x3cd)],_0x210c9a[_0x20eb65(0x142)]);this[_0x20eb65(0x27f)](_0x210c9a,_0x33667c);});}))),this[_0x2b995a(0x1c8)](_0x50821e(this[_0x2b995a(0x384)][_0x2b995a(0x162)][_0x2b995a(0x36e)](_0x2c3b45(this[_0x2b995a(0x273)]))['subscribe'](_0x35c858=>{const _0x1b51ff=_0x2b995a;_0x35c858[_0x1b51ff(0x35f)](_0x1b564d=>this[_0x1b51ff(0x22f)](_0x1b564d));})));}[_0x1f10c6(0x1af)](){const _0x4c1897=_0x1f10c6;let _0x53cfe7=this['_renderContext'][_0x4c1897(0x147)],_0x576b52=this[_0x4c1897(0x384)][_0x4c1897(0x37a)](_0x53cfe7);Object[_0x4c1897(0x255)](_0x576b52)[_0x4c1897(0x35f)](([_0x542ae4,_0x272685])=>{const _0xaaf14c=_0x4c1897;Object[_0xaaf14c(0x361)](_0x272685['data'])['forEach'](_0x186b45=>{const _0x39a562=_0xaaf14c;this[_0x39a562(0x27f)]({'unitId':_0x53cfe7,'subUnitId':_0x542ae4,'elementId':_0x186b45[_0x39a562(0x142)]},_0x186b45);});});}['_handleElementUpdate'](_0x48db45){const _0x2c93bf=_0x1f10c6;if(_0x48db45[_0x2c93bf(0x147)]!==this[_0x2c93bf(0x3e1)][_0x2c93bf(0x147)])return;let _0x402eb3=this[_0x2c93bf(0x384)][_0x2c93bf(0x362)](_0x48db45[_0x2c93bf(0x147)],_0x48db45[_0x2c93bf(0x3cd)],_0x48db45[_0x2c93bf(0x142)]),_0x38e69c=_0x51f94c(_0x402eb3==null?void 0x0:_0x402eb3[_0x2c93bf(0x333)]),_0x411504=this[_0x2c93bf(0x22d)](_0x402eb3);if(!_0x38e69c||!_0x411504){this[_0x2c93bf(0x332)]['delete'](this['_getElementKey'](_0x48db45));return;}let _0x15e982=this[_0x2c93bf(0x424)](_0x48db45),_0x1dbf6e=this[_0x2c93bf(0x332)]['get'](_0x15e982);this['_nodeSizeByKey'][_0x2c93bf(0x27e)](_0x15e982,_0x411504),!(_0x1dbf6e&&_0x1dbf6e['width']===_0x411504['width']&&_0x1dbf6e[_0x2c93bf(0x26c)]===_0x411504[_0x2c93bf(0x26c)])&&this[_0x2c93bf(0x2c8)]({'unitId':_0x48db45[_0x2c93bf(0x147)],'subUnitId':_0x48db45[_0x2c93bf(0x3cd)],'scopeId':_0x38e69c[_0x2c93bf(0x3f1)]});}[_0x1f10c6(0x27f)](_0x37cf7c,_0x4d5cb0){const _0x33f0ab=_0x1f10c6;if(_0x37cf7c[_0x33f0ab(0x147)]!==this[_0x33f0ab(0x3e1)][_0x33f0ab(0x147)])return;let _0x27a050=_0x51f94c(_0x4d5cb0==null?void 0x0:_0x4d5cb0[_0x33f0ab(0x333)]),_0x13c121=this['_resolveNodeSize'](_0x4d5cb0);_0x27a050&&_0x13c121&&this['_nodeSizeByKey'][_0x33f0ab(0x27e)](this[_0x33f0ab(0x424)](_0x37cf7c),_0x13c121);}[_0x1f10c6(0x22d)](_0x52eda2){const _0x4c52e5=_0x1f10c6;let _0x1a0006=(_0x52eda2==null?void 0x0:_0x52eda2[_0x4c52e5(0x184)])??(_0x52eda2==null?void 0x0:_0x52eda2[_0x4c52e5(0x333)][_0x4c52e5(0x184)]),_0x3b5a6e=_0x1a0006==null?void 0x0:_0x1a0006['width'],_0x475424=_0x1a0006==null?void 0x0:_0x1a0006[_0x4c52e5(0x26c)];return!Number[_0x4c52e5(0x180)](_0x3b5a6e)||!Number[_0x4c52e5(0x180)](_0x475424)?null:{'width':_0x3b5a6e,'height':_0x475424};}[_0x1f10c6(0x2c8)](_0x275a0a){const _0x53598e=_0x1f10c6;this[_0x53598e(0x31c)][_0x53598e(0x27e)](_0x275a0a[_0x53598e(0x147)]+':'+_0x275a0a[_0x53598e(0x3cd)]+':'+_0x275a0a['scopeId'],_0x275a0a),!this[_0x53598e(0x2a6)]&&(this['_layoutFlushScheduled']=!0x0,Promise[_0x53598e(0x434)]()[_0x53598e(0x161)](()=>{const _0x573524=_0x53598e;this[_0x573524(0x2a6)]=!0x1;let _0x1f00a1=Array[_0x573524(0x1c0)](this[_0x573524(0x31c)][_0x573524(0x361)]());this[_0x573524(0x31c)][_0x573524(0x3c6)](),_0x1f00a1[_0x573524(0x35f)](_0x5a3d72=>{const _0x45e62f=_0x573524;this[_0x45e62f(0x17a)](_0x5a3d72);});}));}[_0x1f10c6(0x17a)](_0x100b0b){const _0x343747=_0x1f10c6;var _0x4e207e;let _0x5cfee4=this[_0x343747(0x384)]['getElementById'](_0x100b0b['unitId'],_0x100b0b[_0x343747(0x3cd)],_0x100b0b[_0x343747(0x3d1)]),_0x4334ae=(_0x4e207e=_0x195a16(_0x5cfee4==null?void 0x0:_0x5cfee4[_0x343747(0x333)]))==null?void 0x0:_0x4e207e[_0x343747(0x254)];this[_0x343747(0x210)][_0x343747(0x189)](_0x4a8bdc['id'],{..._0x100b0b,'skipUndo':!0x0,..._0x4334ae?{'anchorNodeId':_0x4334ae}:null});}[_0x1f10c6(0x424)](_0x309f8f){const _0x27b961=_0x1f10c6;return _0x309f8f['unitId']+':'+_0x309f8f['subUnitId']+':'+_0x309f8f[_0x27b961(0x142)];}};an=J([q(0x1,_0x2e0f98(_0x52d74d)),q(0x2,_0x56aea3)],an);const Y={'primaryColor':_0x140b36,'surfaceColor':_0x5c5253,'textColor':_0x5402c0,'fontFamily':_0xbb156e['ff']};function on(_0x59d474,_0x35f1c2){const _0x4445f1=_0x1f10c6;let _0x48d0d1=Math[_0x4445f1(0x167)](0x1,Math[_0x4445f1(0x3b7)](0x0,Number[_0x4445f1(0x180)](_0x35f1c2)?_0x35f1c2:0x1)),_0x1f20cd=_0x59d474['trim'](),_0x91b1a8=/^#([0-9a-fA-F]{6})$/[_0x4445f1(0x40f)](_0x1f20cd);if(!_0x91b1a8)return _0x59d474;let _0x33f01d=_0x91b1a8[0x1];return _0x4445f1(0x15c)+Number['parseInt'](_0x33f01d[_0x4445f1(0x3f9)](0x0,0x2),0x10)+',\x20'+Number[_0x4445f1(0x197)](_0x33f01d[_0x4445f1(0x3f9)](0x2,0x4),0x10)+',\x20'+Number[_0x4445f1(0x197)](_0x33f01d['slice'](0x4,0x6),0x10)+',\x20'+_0x48d0d1+')';}const X={'primaryColor':Y[_0x1f10c6(0x3b2)],'ghostFillColor':on(Y[_0x1f10c6(0x448)],0.72),'ghostTextColor':on(Y[_0x1f10c6(0x16e)],0.62),'rootTextColor':on(Y['surfaceColor'],0.86),'sourceHighlightFillColor':on(Y['primaryColor'],0.12),'sourceHighlightStrokeColor':on(Y['primaryColor'],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x4c0c6a['nodeWidth'],'fallbackNodeHeight':_0x4c0c6a['nodeHeight'],'branchGap':_0x258b6f[_0x1f10c6(0x2cc)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':Y[_0x1f10c6(0x2ed)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function Z(_0x5734ac,_0x2b08e,_0x4ced9a,_0x18bec0,_0x379ec9,_0x2f1337){const _0x22a1fc=_0x1f10c6;let _0x54cfa5=Math['min'](_0x2f1337,_0x18bec0/0x2,_0x379ec9/0x2);_0x5734ac[_0x22a1fc(0x18a)](),_0x5734ac[_0x22a1fc(0x2fd)](_0x2b08e+_0x54cfa5,_0x4ced9a),_0x5734ac[_0x22a1fc(0x309)](_0x2b08e+_0x18bec0-_0x54cfa5,_0x4ced9a),_0x5734ac['quadraticCurveTo'](_0x2b08e+_0x18bec0,_0x4ced9a,_0x2b08e+_0x18bec0,_0x4ced9a+_0x54cfa5),_0x5734ac[_0x22a1fc(0x309)](_0x2b08e+_0x18bec0,_0x4ced9a+_0x379ec9-_0x54cfa5),_0x5734ac[_0x22a1fc(0x166)](_0x2b08e+_0x18bec0,_0x4ced9a+_0x379ec9,_0x2b08e+_0x18bec0-_0x54cfa5,_0x4ced9a+_0x379ec9),_0x5734ac[_0x22a1fc(0x309)](_0x2b08e+_0x54cfa5,_0x4ced9a+_0x379ec9),_0x5734ac['quadraticCurveTo'](_0x2b08e,_0x4ced9a+_0x379ec9,_0x2b08e,_0x4ced9a+_0x379ec9-_0x54cfa5),_0x5734ac['lineTo'](_0x2b08e,_0x4ced9a+_0x54cfa5),_0x5734ac[_0x22a1fc(0x166)](_0x2b08e,_0x4ced9a,_0x2b08e+_0x54cfa5,_0x4ced9a),_0x5734ac[_0x22a1fc(0x2b0)]();}function sn(_0x274ca1,_0x44310a,_0x58e57f){const _0x533019=_0x1f10c6;return _0x274ca1+'\x20'+_0x44310a/_0x58e57f+_0x533019(0x431)+X[_0x533019(0x2ed)];}const cn=_0x1f10c6(0x3c3),ln=_0x2a0926[_0x1f10c6(0x3c9)];function Q(_0x1a0c41,_0x1b44e0){const _0x399963=_0x1f10c6;return Number[_0x399963(0x180)](_0x1a0c41)?_0x1a0c41:_0x1b44e0;}function un(){return X['fallbackNodeWidth'];}function dn(){const _0x51206a=_0x1f10c6;return X[_0x51206a(0x29e)];}function fn(_0x53e3b9){const _0x4735a8=_0x1f10c6;return _0x53e3b9===0x1?_0x4735a8(0x233):_0x53e3b9===0x3?_0x4735a8(0x171):'center';}function pn(_0x1341ca,_0xbc75e9,_0x477b9b,_0x278678){return _0x477b9b===0x1?_0x1341ca+_0x278678:_0x477b9b===0x3?_0x1341ca+_0xbc75e9-_0x278678:_0x1341ca+_0xbc75e9/0x2;}var mn=class extends _0x48d510{constructor(_0x28dbdf=cn,_0xc37dbd){const _0x3e3dad=_0x1f10c6;super(_0x28dbdf),K(this,_0x3e3dad(0x2c7),{'ghostBounds':null,'parentBounds':null,'side':_0x3e3dad(0x171),'zoomRatio':0x1}),this[_0x3e3dad(0x14b)]=!0x1,this[_0x3e3dad(0x1bf)]=_0x3d308f[_0x3e3dad(0x1b6)],this[_0x3e3dad(0x3c5)](_0xc37dbd);}[_0x1f10c6(0x3c5)](_0x41e32d){const _0x1e8801=_0x1f10c6;if(this[_0x1e8801(0x2c7)]={...this[_0x1e8801(0x2c7)],..._0x41e32d},this['_state'][_0x1e8801(0x2fe)]){let _0x27e9da=this[_0x1e8801(0x400)]();this[_0x1e8801(0x33b)](_0x27e9da),this[_0x1e8801(0x417)]();}else this[_0x1e8801(0x140)]();let _0x50c66c=this;typeof _0x50c66c[_0x1e8801(0x459)]==_0x1e8801(0x22e)?_0x50c66c[_0x1e8801(0x459)](!0x0):this[_0x1e8801(0x359)](!0x0);}[_0x1f10c6(0x203)](_0x48d073){return!0x1;}[_0x1f10c6(0x18f)](_0x2b968a,_0x589ef8){const _0x3923b8=_0x1f10c6;let _0x4d046c=this[_0x3923b8(0x2c7)]['ghostBounds'];if(!_0x4d046c||!this[_0x3923b8(0x2df)])return this[_0x3923b8(0x359)](!0x1),this;let _0x3b1148=Number[_0x3923b8(0x180)](this[_0x3923b8(0x2c7)][_0x3923b8(0x368)])&&(this[_0x3923b8(0x2c7)][_0x3923b8(0x368)]??0x0)>0x0?this['_state']['zoomRatio']:0x1,_0x325d99=Q(_0x4d046c['left'],0x0),_0x2e053a=Q(_0x4d046c['top'],0x0),_0x3d404b=Math[_0x3923b8(0x3b7)](0x1,Q(_0x4d046c[_0x3923b8(0x246)],un())),_0x2e8d17=Math[_0x3923b8(0x3b7)](0x1,Q(_0x4d046c[_0x3923b8(0x26c)],dn()));if(_0x2b968a[_0x3923b8(0x38e)](),_0x2b968a[_0x3923b8(0x422)]=X[_0x3923b8(0x18c)],_0x2b968a['lineWidth']=X[_0x3923b8(0x259)]/_0x3b1148,_0x2b968a['strokeStyle']=X[_0x3923b8(0x3b2)],_0x2b968a[_0x3923b8(0x285)]=X['ghostFillColor'],this[_0x3923b8(0x263)](_0x2b968a,{'left':_0x325d99,'top':_0x2e053a,'width':_0x3d404b,'height':_0x2e8d17},_0x3b1148),this['_drawSourceHighlight'](_0x2b968a,_0x3b1148),this['_state']['renderGhostNode']===!0x1)return _0x2b968a[_0x3923b8(0x251)](),this[_0x3923b8(0x359)](!0x1),this;Z(_0x2b968a,_0x325d99,_0x2e053a,_0x3d404b,_0x2e8d17,X[_0x3923b8(0x295)]),_0x2b968a['fill'](),_0x2b968a[_0x3923b8(0x45a)]();let _0xd4da58=this[_0x3923b8(0x2c7)][_0x3923b8(0x436)],_0x1c26ec=Number[_0x3923b8(0x180)](_0xd4da58==null?void 0x0:_0xd4da58[_0x3923b8(0x1b9)])&&((_0xd4da58==null?void 0x0:_0xd4da58['fontSize'])??0x0)>0x0?_0xd4da58[_0x3923b8(0x1b9)]:0x10,_0x4197a4=X[_0x3923b8(0x45f)]/_0x3b1148;return _0x2b968a[_0x3923b8(0x285)]=(_0xd4da58==null?void 0x0:_0xd4da58[_0x3923b8(0x143)])??X[_0x3923b8(0x2aa)],_0x2b968a[_0x3923b8(0x44b)]=sn(X[_0x3923b8(0x319)],_0x1c26ec,_0x3b1148),_0x2b968a[_0x3923b8(0x247)]=fn(_0xd4da58==null?void 0x0:_0xd4da58[_0x3923b8(0x378)]),_0x2b968a[_0x3923b8(0x25d)]='middle',_0x2b968a[_0x3923b8(0x2ab)]((_0xd4da58==null?void 0x0:_0xd4da58['text'])||_0x35edc8,pn(_0x325d99,_0x3d404b,_0xd4da58==null?void 0x0:_0xd4da58[_0x3923b8(0x378)],_0x4197a4),_0x2e053a+_0x2e8d17/0x2,Math['max'](0x1,_0x3d404b-_0x4197a4*0x2)),_0x2b968a['restore'](),this[_0x3923b8(0x359)](!0x1),this;}[_0x1f10c6(0x400)](){const _0x6e3dc1=_0x1f10c6;let _0x532673=this[_0x6e3dc1(0x2c7)][_0x6e3dc1(0x2fe)],_0x4b8a1e=Number['isFinite'](this['_state'][_0x6e3dc1(0x368)])&&(this[_0x6e3dc1(0x2c7)][_0x6e3dc1(0x368)]??0x0)>0x0?this['_state'][_0x6e3dc1(0x368)]:0x1,_0x17cf33=X[_0x6e3dc1(0x2bb)]/_0x4b8a1e;if(!_0x532673)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x10b96e=Q(_0x532673[_0x6e3dc1(0x233)],0x0),_0x31224e=Q(_0x532673[_0x6e3dc1(0x41d)],0x0),_0xc28058=Math['max'](0x1,Q(_0x532673[_0x6e3dc1(0x246)],un())),_0xdc284e=Math['max'](0x1,Q(_0x532673[_0x6e3dc1(0x26c)],dn())),_0x208b3a=this[_0x6e3dc1(0x2c7)][_0x6e3dc1(0x2d1)],_0x16b217=this['_state'][_0x6e3dc1(0x37e)],_0x2f88fd=Q(_0x208b3a==null?void 0x0:_0x208b3a[_0x6e3dc1(0x233)],_0x10b96e),_0x42d12c=Q(_0x208b3a==null?void 0x0:_0x208b3a['top'],_0x31224e),_0x3df701=Math[_0x6e3dc1(0x3b7)](0x1,Q(_0x208b3a==null?void 0x0:_0x208b3a[_0x6e3dc1(0x246)],_0xc28058)),_0x3f5beb=Math['max'](0x1,Q(_0x208b3a==null?void 0x0:_0x208b3a[_0x6e3dc1(0x26c)],_0xdc284e));if(!_0x16b217){let _0x40abe6=Math[_0x6e3dc1(0x167)](_0x10b96e,_0x2f88fd)-_0x17cf33,_0xb91242=Math['min'](_0x31224e,_0x42d12c)-_0x17cf33,_0x3e10cf=Math['max'](_0x10b96e+_0xc28058,_0x2f88fd+_0x3df701)+_0x17cf33,_0x15a6a6=Math['max'](_0x31224e+_0xdc284e,_0x42d12c+_0x3f5beb)+_0x17cf33;return{'left':_0x40abe6,'top':_0xb91242,'width':_0x3e10cf-_0x40abe6,'height':_0x15a6a6-_0xb91242};}let _0x385811=Q(_0x16b217['left'],_0x10b96e),_0x438ed0=Q(_0x16b217[_0x6e3dc1(0x41d)],_0x31224e),_0x4cd721=Math[_0x6e3dc1(0x3b7)](0x1,Q(_0x16b217[_0x6e3dc1(0x246)],un())),_0x204fe0=Math[_0x6e3dc1(0x3b7)](0x1,Q(_0x16b217[_0x6e3dc1(0x26c)],dn())),_0x594cbb=Math[_0x6e3dc1(0x167)](_0x10b96e,_0x385811,_0x2f88fd)-_0x17cf33,_0x946954=Math[_0x6e3dc1(0x167)](_0x31224e,_0x438ed0,_0x42d12c)-_0x17cf33,_0x3d792e=Math[_0x6e3dc1(0x3b7)](_0x10b96e+_0xc28058,_0x385811+_0x4cd721,_0x2f88fd+_0x3df701)+_0x17cf33,_0x1524c8=Math[_0x6e3dc1(0x3b7)](_0x31224e+_0xdc284e,_0x438ed0+_0x204fe0,_0x42d12c+_0x3f5beb)+_0x17cf33;return{'left':_0x594cbb,'top':_0x946954,'width':_0x3d792e-_0x594cbb,'height':_0x1524c8-_0x946954};}[_0x1f10c6(0x2e8)](_0x3f939c,_0x15630b){const _0x2fbf0c=_0x1f10c6;var _0x3ca552;let _0x5c9a95=this[_0x2fbf0c(0x2c7)]['sourceBounds'];if(!_0x5c9a95)return;let _0x402493=X['sourceHaloScreen']/_0x15630b,_0x57c48c=Q(_0x5c9a95[_0x2fbf0c(0x233)],0x0)-_0x402493,_0x457d98=Q(_0x5c9a95[_0x2fbf0c(0x41d)],0x0)-_0x402493,_0x405b92=Math[_0x2fbf0c(0x3b7)](0x1,Q(_0x5c9a95[_0x2fbf0c(0x246)],un()))+_0x402493*0x2,_0x1cc7a8=Math[_0x2fbf0c(0x3b7)](0x1,Q(_0x5c9a95[_0x2fbf0c(0x26c)],dn()))+_0x402493*0x2;_0x3f939c[_0x2fbf0c(0x38e)](),_0x3f939c['globalAlpha']=0x1,_0x3f939c[_0x2fbf0c(0x33f)]=X[_0x2fbf0c(0x259)]/_0x15630b,_0x3f939c[_0x2fbf0c(0x16a)]=X['sourceHighlightStrokeColor'],_0x3f939c[_0x2fbf0c(0x285)]=X[_0x2fbf0c(0x2af)],(_0x3ca552=_0x3f939c[_0x2fbf0c(0x3e3)])==null||_0x3ca552[_0x2fbf0c(0x266)](_0x3f939c,X[_0x2fbf0c(0x43b)]['map'](_0x75acb0=>_0x75acb0/_0x15630b)),Z(_0x3f939c,_0x57c48c,_0x457d98,_0x405b92,_0x1cc7a8,X[_0x2fbf0c(0x3eb)]),_0x3f939c[_0x2fbf0c(0x31a)](),_0x3f939c[_0x2fbf0c(0x45a)](),_0x3f939c[_0x2fbf0c(0x251)]();}[_0x1f10c6(0x263)](_0x4ce208,_0x514003,_0x270e98){const _0x351318=_0x1f10c6;let _0x1efde3=this['_state'][_0x351318(0x37e)];if(!_0x1efde3)return;let _0x2f5759=Q(_0x1efde3[_0x351318(0x233)],0x0),_0x16e9e8=Q(_0x1efde3[_0x351318(0x41d)],0x0),_0x4f55f9=Math[_0x351318(0x3b7)](0x1,Q(_0x1efde3[_0x351318(0x246)],un())),_0x172177=Math[_0x351318(0x3b7)](0x1,Q(_0x1efde3['height'],dn())),_0x2f003e=X['branchGap'],_0x34a5dd=this[_0x351318(0x2c7)][_0x351318(0x2a3)]??_0x351318(0x171);if(_0x4ce208[_0x351318(0x38e)](),_0x4ce208[_0x351318(0x422)]=X[_0x351318(0x221)],_0x4ce208[_0x351318(0x16a)]=X['primaryColor'],_0x4ce208[_0x351318(0x33f)]=X[_0x351318(0x259)]/_0x270e98,_0x4ce208['lineCap']=_0x351318(0x272),_0x4ce208[_0x351318(0x3da)]=_0x351318(0x272),_0x4ce208[_0x351318(0x18a)](),_0x34a5dd==='top'||_0x34a5dd==='bottom'){let _0x446494=_0x2f5759+_0x4f55f9/0x2,_0x3858ce=_0x514003[_0x351318(0x233)]+_0x514003[_0x351318(0x246)]/0x2,_0x4ba0d2=_0x34a5dd===_0x351318(0x392)?_0x16e9e8+_0x172177:_0x16e9e8,_0x24bd71=_0x34a5dd===_0x351318(0x392)?_0x514003['top']:_0x514003['top']+_0x514003['height'],_0x1b9058=_0x34a5dd===_0x351318(0x392)?Math[_0x351318(0x167)](_0x4ba0d2+_0x2f003e,(_0x4ba0d2+_0x24bd71)/0x2):Math[_0x351318(0x3b7)](_0x4ba0d2-_0x2f003e,(_0x4ba0d2+_0x24bd71)/0x2);_0x4ce208['moveTo'](_0x446494,_0x4ba0d2),_0x4ce208[_0x351318(0x309)](_0x446494,_0x1b9058),_0x4ce208[_0x351318(0x309)](_0x3858ce,_0x1b9058),_0x4ce208[_0x351318(0x309)](_0x3858ce,_0x24bd71);}else{let _0x11c038=_0x16e9e8+_0x172177/0x2,_0x4b068b=_0x514003[_0x351318(0x41d)]+_0x514003[_0x351318(0x26c)]/0x2,_0x1842c4=_0x34a5dd===_0x351318(0x171)?_0x2f5759+_0x4f55f9:_0x2f5759,_0x5aa31f=_0x34a5dd==='right'?_0x514003[_0x351318(0x233)]:_0x514003[_0x351318(0x233)]+_0x514003['width'],_0xb990a7=_0x34a5dd===_0x351318(0x171)?Math[_0x351318(0x167)](_0x1842c4+_0x2f003e,(_0x1842c4+_0x5aa31f)/0x2):Math[_0x351318(0x3b7)](_0x1842c4-_0x2f003e,(_0x1842c4+_0x5aa31f)/0x2);_0x4ce208[_0x351318(0x2fd)](_0x1842c4,_0x11c038),_0x4ce208[_0x351318(0x309)](_0xb990a7,_0x11c038),_0x4ce208[_0x351318(0x309)](_0xb990a7,_0x4b068b),_0x4ce208['lineTo'](_0x5aa31f,_0x4b068b);}_0x4ce208[_0x351318(0x45a)](),_0x4ce208['restore']();}};function hn(_0x57630d,_0x1184a9){const _0x3268cc=_0x1f10c6;return(_0x1184a9==null?void 0x0:_0x1184a9[_0x57630d[_0x3268cc(0x142)]])??_0x57630d[_0x3268cc(0x333)][_0x3268cc(0x184)];}function gn(_0x557b7c,_0x29e159){const _0x155e79=_0x1f10c6;let _0x45a81c=hn(_0x557b7c,_0x29e159);return{'x':(_0x45a81c[_0x155e79(0x233)]??0x0)+(_0x45a81c['width']??0x0)/0x2,'y':(_0x45a81c[_0x155e79(0x41d)]??0x0)+(_0x45a81c[_0x155e79(0x26c)]??0x0)/0x2};}function _n(_0x266aea,_0x5a6cb1){const _0x505344=_0x1f10c6;return Math[_0x505344(0x234)](_0x266aea['x']-_0x5a6cb1['x'],_0x266aea['y']-_0x5a6cb1['y']);}function vn(_0x5441dc,_0x5c2c7c){const _0x23e8eb=_0x1f10c6;let _0x251f57=_0x5441dc[_0x23e8eb(0x233)]??0x0,_0x1283b1=_0x5441dc['top']??0x0,_0x528328=_0x251f57+(_0x5441dc[_0x23e8eb(0x246)]??0x0),_0x13750c=_0x1283b1+(_0x5441dc['height']??0x0),_0x5bd6a0=_0x5c2c7c['left']??0x0,_0x4d3449=_0x5c2c7c['top']??0x0,_0x2debcd=_0x5bd6a0+(_0x5c2c7c[_0x23e8eb(0x246)]??0x0),_0x2bbda2=_0x4d3449+(_0x5c2c7c[_0x23e8eb(0x26c)]??0x0),_0x2df2a2=Math['max'](_0x5bd6a0-_0x528328,_0x251f57-_0x2debcd,0x0),_0x2416e1=Math[_0x23e8eb(0x3b7)](_0x4d3449-_0x13750c,_0x1283b1-_0x2bbda2,0x0);return Math[_0x23e8eb(0x234)](_0x2df2a2,_0x2416e1);}function yn(_0x1147db,_0x54136d,_0x2ef04b){const _0x496764=_0x1f10c6;var _0x37733c;let _0x3f8c77=_0x51f94c((_0x37733c=_0x1147db[_0x54136d])==null?void 0x0:_0x37733c[_0x496764(0x333)]);for(;_0x3f8c77!=null&&_0x3f8c77['parentNodeId'];){var _0x456bad;if(_0x3f8c77[_0x496764(0x2d9)]===_0x2ef04b)return!0x0;_0x3f8c77=_0x51f94c((_0x456bad=_0x1147db[_0x3f8c77['parentNodeId']])==null?void 0x0:_0x456bad['element']);}return!0x1;}function bn(_0x53b879,_0x25dcce,_0x16368e){const _0x474e7d=_0x1f10c6;let _0x329c9c=hn(_0x53b879,_0x16368e),_0x2ed0f2=_0x329c9c['top']??0x0,_0x2ec993=_0x329c9c[_0x474e7d(0x26c)]??0x0;return _0x2ec993<=0x0?null:_0x25dcce['y']<=_0x2ed0f2+_0x2ec993/0x3?'before':_0x25dcce['y']>=_0x2ed0f2+_0x2ec993*0x2/0x3?_0x474e7d(0x250):null;}function xn(_0x3caddb,_0x31fcd5){const _0x3c396e=_0x1f10c6;let _0x3e1399=_0x31fcd5==null?void 0x0:_0x31fcd5[_0x3caddb];return Number[_0x3c396e(0x180)](_0x3e1399==null?void 0x0:_0x3e1399[_0x3c396e(0x233)])&&Number[_0x3c396e(0x180)](_0x3e1399==null?void 0x0:_0x3e1399['top'])?{'kind':_0x3c396e(0x2a7),'left':_0x3e1399[_0x3c396e(0x233)],'top':_0x3e1399[_0x3c396e(0x41d)]}:{'kind':_0x3c396e(0x2a7)};}function Sn(_0x271431,_0x14faff,_0x58a07f){const _0x57c129=_0x1f10c6;let _0x4efcc9=_0x271431[_0x14faff],_0x236839=_0x51f94c(_0x4efcc9==null?void 0x0:_0x4efcc9[_0x57c129(0x333)]);if(!_0x4efcc9||!_0x236839||!_0x236839[_0x57c129(0x2d9)]&&!(_0x58a07f!=null&&_0x58a07f[_0x57c129(0x1ab)]))return{'kind':_0x57c129(0x3e6)};let _0x5e2017=_0x58a07f==null?void 0x0:_0x58a07f[_0x57c129(0x1b3)],_0x323ee0=hn(_0x4efcc9,_0x5e2017),_0x24dd3a=gn(_0x4efcc9,_0x5e2017),_0x5c82a6=Object[_0x57c129(0x361)](_0x271431)[_0x57c129(0x28f)](_0x54111f=>{const _0x7f29d4=_0x57c129;let _0x1bb837=_0x51f94c(_0x54111f[_0x7f29d4(0x333)]);return!_0x1bb837||_0x54111f[_0x7f29d4(0x142)]===_0x14faff||_0x54111f[_0x7f29d4(0x142)]===_0x236839[_0x7f29d4(0x2d9)]||_0x58a07f!=null&&_0x58a07f['allowRootReparent']&&!_0x236839[_0x7f29d4(0x2d9)]&&_0x1bb837[_0x7f29d4(0x3f1)]===_0x236839[_0x7f29d4(0x3f1)]||yn(_0x271431,_0x54111f['elementId'],_0x14faff)?null:{'item':_0x54111f,'snapDistance':vn(_0x323ee0,hn(_0x54111f,_0x5e2017)),'center':gn(_0x54111f,_0x5e2017)};})[_0x57c129(0x3f7)](_0x51d583=>!!_0x51d583)[_0x57c129(0x194)]((_0x3aef17,_0x303ae0)=>_0x3aef17[_0x57c129(0x1e5)]-_0x303ae0[_0x57c129(0x1e5)]||_n(_0x24dd3a,_0x3aef17[_0x57c129(0x346)])-_n(_0x24dd3a,_0x303ae0[_0x57c129(0x346)]))[0x0];if(_0x5c82a6&&_0x5c82a6[_0x57c129(0x1e5)]<=0x64){let _0xbf991=_0x51f94c(_0x5c82a6[_0x57c129(0x2f1)]['element']),_0x336154=_0xbf991!=null&&_0xbf991['parentNodeId']?bn(_0x5c82a6['item'],_0x24dd3a,_0x5e2017):null;return _0xbf991!=null&&_0xbf991[_0x57c129(0x2d9)]&&_0x336154?{'kind':'reparent','newParentNodeId':_0xbf991[_0x57c129(0x2d9)],'side':_0xbf991['side']??'right','referenceNodeId':_0x5c82a6[_0x57c129(0x2f1)][_0x57c129(0x142)],'placement':_0x336154}:{'kind':_0x57c129(0x14c),'newParentNodeId':_0x5c82a6[_0x57c129(0x2f1)][_0x57c129(0x142)],'side':_0x24dd3a['x']<_0x5c82a6[_0x57c129(0x346)]['x']?_0x57c129(0x233):_0x57c129(0x171)};}if(_0x58a07f!=null&&_0x58a07f[_0x57c129(0x317)])return xn(_0x14faff,_0x5e2017);if(!_0x236839[_0x57c129(0x2d9)])return{'kind':'none'};let _0x3ff708=_0x271431[_0x236839[_0x57c129(0x2d9)]];return _0x3ff708&&_n(_0x24dd3a,gn(_0x3ff708,_0x5e2017))>0x230?xn(_0x14faff,_0x5e2017):{'kind':_0x57c129(0x3e6)};}function Cn(_0x4e19df,_0x345d40){const _0x4b3744=_0x1f10c6;var _0x47730b,_0x25c68a;return _0x4e19df['elementId']===_0x345d40||((_0x47730b=_0x51f94c(_0x4e19df['element']))==null?void 0x0:_0x47730b[_0x4b3744(0x3f1)])===_0x345d40||((_0x25c68a=_0x2139e0(_0x4e19df[_0x4b3744(0x333)]))==null?void 0x0:_0x25c68a[_0x4b3744(0x3f1)])===_0x345d40;}function wn(_0x106a3,_0x4b630f,_0x16589d,_0xa33236){const _0xb63a12=_0x1f10c6;let _0x48ddfa=_0x106a3[_0x4b630f];if(!_0x48ddfa)return _0x106a3;let _0x5f510b=_0x48ddfa[_0xb63a12(0x184)]??_0x48ddfa[_0xb63a12(0x333)][_0xb63a12(0x184)]??{};return{..._0x106a3,[_0x4b630f]:{..._0x48ddfa,'transform':{..._0x5f510b,'left':(_0x5f510b[_0xb63a12(0x233)]??0x0)+_0x16589d,'top':(_0x5f510b[_0xb63a12(0x41d)]??0x0)+_0xa33236},'element':{..._0x48ddfa['element'],'transform':{..._0x48ddfa[_0xb63a12(0x333)][_0xb63a12(0x184)],'left':(_0x48ddfa['element']['transform'][_0xb63a12(0x233)]??0x0)+_0x16589d,'top':(_0x48ddfa[_0xb63a12(0x333)][_0xb63a12(0x184)][_0xb63a12(0x41d)]??0x0)+_0xa33236}}}};}function Tn(_0x4e0988){const _0x377ccf=_0x1f10c6;if(!Number[_0x377ccf(0x180)](_0x4e0988['liveRootBounds'][_0x377ccf(0x233)])||!Number[_0x377ccf(0x180)](_0x4e0988[_0x377ccf(0x34c)][_0x377ccf(0x41d)])||!Number[_0x377ccf(0x180)](_0x4e0988[_0x377ccf(0x34f)][_0x377ccf(0x233)])||!Number['isFinite'](_0x4e0988[_0x377ccf(0x34f)][_0x377ccf(0x41d)]))return null;let _0x3bf676=_0x4e0988[_0x377ccf(0x34c)][_0x377ccf(0x233)]-_0x4e0988['rootStartBounds'][_0x377ccf(0x233)],_0x59d1af=_0x4e0988['liveRootBounds'][_0x377ccf(0x41d)]-_0x4e0988[_0x377ccf(0x34f)][_0x377ccf(0x41d)],_0x402609=wn(_0x4e0988['elementData'],_0x4e0988['scopeId'],_0x3bf676,_0x59d1af),_0x4b378c=[];return Object['values'](_0x402609)[_0x377ccf(0x35f)](_0x795678=>{const _0x710ef7=_0x377ccf;if(_0x795678['elementId']===_0x4e0988[_0x710ef7(0x254)]||_0x795678[_0x710ef7(0x142)]===_0x4e0988[_0x710ef7(0x3d1)]||!Cn(_0x795678,_0x4e0988[_0x710ef7(0x3d1)]))return;if(_0x710ef7(0x212)in _0x795678['element']){var _0x116d9b;let _0x406f4c=(_0x116d9b=_0x4e0988[_0x710ef7(0x19b)][_0x795678[_0x710ef7(0x142)]])==null?void 0x0:_0x116d9b[_0x710ef7(0x333)];_0x406f4c&&'connectorData'in _0x406f4c&&_0x4b378c['push']({'kind':_0x710ef7(0x43c),'elementId':_0x795678['elementId'],'element':_0x1e48b9(_0x406f4c,{'x':_0x3bf676,'y':_0x59d1af})});return;}let _0x4e2926=_0x401f4b(_0x402609,_0x795678[_0x710ef7(0x142)]);_0x4e2926&&_0x4b378c[_0x710ef7(0x292)]({'kind':_0x710ef7(0x24d),'elementId':_0x795678[_0x710ef7(0x142)],'bounds':_0x4e2926});}),{'deltaX':_0x3bf676,'deltaY':_0x59d1af,'elementData':_0x402609,'items':_0x4b378c};}let En=class extends _0x9852b5{constructor(_0x36d802,_0x55d70c,_0x15bbeb,_0x22bd82,_0x50e73d,_0x1be101,_0x1393a3){const _0x103286=_0x1f10c6;super(),this['_renderContext']=_0x36d802,this[_0x103286(0x384)]=_0x55d70c,this['_elementStateService']=_0x15bbeb,this[_0x103286(0x210)]=_0x22bd82,this[_0x103286(0x452)]=_0x50e73d,this[_0x103286(0x26a)]=_0x1be101,this['_undoRedoGroupService']=_0x1393a3,K(this,_0x103286(0x164),null),K(this,_0x103286(0x294),null),K(this,_0x103286(0x1a5),null),K(this,_0x103286(0x144),!0x1),K(this,_0x103286(0x25b),null),K(this,_0x103286(0x3b9),null),K(this,_0x103286(0x1cc),!0x1),K(this,'_activePointerDragDisposables',null),K(this,_0x103286(0x13f),!0x1),this[_0x103286(0x347)]();}[_0x1f10c6(0x347)](){const _0x2ca065=_0x1f10c6;var _0x2828e2,_0x32ec4d,_0x5c0bf8,_0x3a5619,_0x5744d4;let _0x4d8933=this[_0x2ca065(0x3e1)][_0x2ca065(0x156)][_0x2ca065(0x165)]();this[_0x2ca065(0x1c8)](_0x50821e(_0x4d8933[_0x2ca065(0x16b)][_0x2ca065(0x36e)](_0x2c3b45(this['dispose$']))[_0x2ca065(0x3c8)](()=>{this['_captureDragStart']();}))),this[_0x2ca065(0x1c8)](_0x50821e(((_0x2828e2=_0x4d8933[_0x2ca065(0x328)])==null?void 0x0:_0x2828e2['pipe'](_0x2c3b45(this[_0x2ca065(0x273)]))[_0x2ca065(0x3c8)](_0x4147fb=>{const _0x11b42b=_0x2ca065;this[_0x11b42b(0x372)](_0x4147fb==null?void 0x0:_0x4147fb[_0x11b42b(0x427)]);}))??{'dispose':()=>{}})),this[_0x2ca065(0x1c8)](_0x50821e(_0x4d8933[_0x2ca065(0x45b)][_0x2ca065(0x36e)](_0x2c3b45(this[_0x2ca065(0x273)]))[_0x2ca065(0x3c8)](_0x1eacdf=>{const _0x4e6a76=_0x2ca065;setTimeout(()=>this[_0x4e6a76(0x1d9)](_0x1eacdf==null?void 0x0:_0x1eacdf[_0x4e6a76(0x427)]),0x0);}))),this['disposeWithMe'](_0x50821e(((_0x32ec4d=this[_0x2ca065(0x3e1)][_0x2ca065(0x156)]['onPointerDown$'])==null?void 0x0:_0x32ec4d[_0x2ca065(0x3f4)]({'priority':0x3,'next':([_0x131538])=>this[_0x2ca065(0x176)](_0x131538)}))??{'dispose':()=>{}})),this[_0x2ca065(0x1c8)](_0x50821e(((_0x5c0bf8=this['_renderContext'][_0x2ca065(0x156)][_0x2ca065(0x1ef)])==null?void 0x0:_0x5c0bf8[_0x2ca065(0x3f4)]({'priority':0x3,'next':([_0x149070,_0x1c9b26])=>this[_0x2ca065(0x3ed)](_0x149070,_0x1c9b26)}))??{'dispose':()=>{}})),this[_0x2ca065(0x1c8)](_0x50821e(((_0x3a5619=this[_0x2ca065(0x3e1)][_0x2ca065(0x156)]['onPointerUp$'])==null?void 0x0:_0x3a5619[_0x2ca065(0x3f4)]({'priority':0x3,'next':([_0x40f34d,_0x468dc2])=>this[_0x2ca065(0x3a8)](_0x40f34d,_0x468dc2)}))??{'dispose':()=>{}})),this[_0x2ca065(0x1c8)](_0x50821e(((_0x5744d4=this[_0x2ca065(0x3e1)][_0x2ca065(0x156)][_0x2ca065(0x3a1)])==null?void 0x0:_0x5744d4[_0x2ca065(0x3f4)]({'priority':0x3,'next':([,_0x1239c1])=>this['_cancelPointerChildDrag'](_0x1239c1)}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x50821e(()=>{const _0x4f71d9=_0x2ca065;var _0x1541ce;return(_0x1541ce=this[_0x4f71d9(0x3b9)])==null?void 0x0:_0x1541ce[_0x4f71d9(0x3c0)]();})),this[_0x2ca065(0x1c8)](_0x50821e(()=>this[_0x2ca065(0x32e)]())),this[_0x2ca065(0x22a)](),this[_0x2ca065(0x310)](),this[_0x2ca065(0x1c8)](_0x50821e(()=>this[_0x2ca065(0x1e6)]()));}[_0x1f10c6(0x22a)](){const _0x5e1620=_0x1f10c6;[this[_0x5e1620(0x384)][_0x5e1620(0x289)],this[_0x5e1620(0x384)][_0x5e1620(0x162)],this[_0x5e1620(0x384)][_0x5e1620(0x429)]][_0x5e1620(0x35f)](_0xec5850=>{const _0x336b97=_0x5e1620;this[_0x336b97(0x1c8)](_0x50821e(_0xec5850[_0x336b97(0x36e)](_0x2c3b45(this[_0x336b97(0x273)]))[_0x336b97(0x3c8)](()=>{const _0x4d262a=_0x336b97;this[_0x4d262a(0x310)]();})));}),this[_0x5e1620(0x2cf)]['state$']&&this[_0x5e1620(0x1c8)](_0x50821e(this[_0x5e1620(0x2cf)][_0x5e1620(0x313)]['pipe'](_0x2c3b45(this[_0x5e1620(0x273)]))[_0x5e1620(0x3c8)](()=>{const _0x2bd51b=_0x5e1620;this[_0x2bd51b(0x310)]();})));}[_0x1f10c6(0x310)](){const _0x15d9a6=_0x1f10c6;this[_0x15d9a6(0x1cc)]||(this[_0x15d9a6(0x1cc)]=!0x0,Promise[_0x15d9a6(0x434)]()[_0x15d9a6(0x161)](()=>this[_0x15d9a6(0x3ce)]()));}[_0x1f10c6(0x3ce)](){const _0x29ba5d=_0x1f10c6;var _0x3c7be7;this[_0x29ba5d(0x1cc)]=!0x1;let _0x1a1028=this[_0x29ba5d(0x209)](),_0x6afe5=this[_0x29ba5d(0x3e1)]['scene'];if(!_0x1a1028||typeof _0x6afe5[_0x29ba5d(0x301)]!=_0x29ba5d(0x22e))return;let _0x363bad=this[_0x29ba5d(0x384)]['getElementData'](_0x1a1028[_0x29ba5d(0x147)],_0x1a1028[_0x29ba5d(0x3cd)]),_0x6203b5=new _0x308d99();(_0x3c7be7=this[_0x29ba5d(0x3b9)])==null||_0x3c7be7[_0x29ba5d(0x3c0)](),this['_objectPointerDisposables']=_0x6203b5,Object['values'](_0x363bad)[_0x29ba5d(0x35f)](_0x485a2b=>{const _0x8e4f7e=_0x29ba5d;var _0x466c8b,_0x3504a8;let _0x45691b=_0x51f94c(_0x485a2b[_0x8e4f7e(0x333)]);if(!(_0x45691b!=null&&_0x45691b[_0x8e4f7e(0x2d9)]))return;let _0x644423=_0x10c90a(_0x1a1028[_0x8e4f7e(0x147)],_0x485a2b[_0x8e4f7e(0x142)]),_0x1e7771=((_0x466c8b=_0x6afe5[_0x8e4f7e(0x19f)])==null?void 0x0:_0x466c8b['call'](_0x6afe5,_0x644423))??((_0x3504a8=_0x6afe5[_0x8e4f7e(0x301)])==null?void 0x0:_0x3504a8[_0x8e4f7e(0x266)](_0x6afe5,_0x644423));_0x1e7771!=null&&_0x1e7771['onPointerDown$']&&_0x6203b5[_0x8e4f7e(0x2c0)](_0x1e7771[_0x8e4f7e(0x38f)][_0x8e4f7e(0x3f4)]({'priority':-0xa,'next':([_0x23050e,_0x37ebc5])=>this[_0x8e4f7e(0x176)](_0x23050e,{'unitId':_0x1a1028[_0x8e4f7e(0x147)],'subUnitId':_0x1a1028[_0x8e4f7e(0x3cd)],'nodeId':_0x485a2b[_0x8e4f7e(0x142)]},_0x37ebc5)}));});}[_0x1f10c6(0x209)](){const _0x762b7f=_0x1f10c6;let _0x2ede87=this[_0x762b7f(0x2cf)][_0x762b7f(0x226)]()['context'];if(_0x2ede87)return _0x2ede87;let _0x894e6d=this[_0x762b7f(0x3e1)][_0x762b7f(0x147)],_0x382247=_0x894e6d?this[_0x762b7f(0x26a)][_0x762b7f(0x2b6)](_0x894e6d,_0x25af0d['UNIVER_BOARD']):null,_0x214316=_0x382247==null?void 0x0:_0x382247['getActivePageId']();return!_0x382247||!_0x214316?null:{'unitId':_0x382247[_0x762b7f(0x163)](),'subUnitId':_0x214316};}['_captureDragStart'](){const _0x34a28f=_0x1f10c6;let _0x317169=this[_0x34a28f(0x2cf)][_0x34a28f(0x226)]();this[_0x34a28f(0x144)]=!0x1,this[_0x34a28f(0x13f)]=!0x1,this[_0x34a28f(0x25b)]=null;let _0x339be4=_0x317169[_0x34a28f(0x27a)],_0x107ecc=_0x317169[_0x34a28f(0x1d7)]??_0x317169[_0x34a28f(0x235)][0x0];if(!_0x339be4||!_0x107ecc){this[_0x34a28f(0x164)]=null,this[_0x34a28f(0x1e6)]();return;}let _0x3c6496=this[_0x34a28f(0x384)][_0x34a28f(0x258)](_0x339be4[_0x34a28f(0x147)],_0x339be4['subUnitId']);if(_0x317169[_0x34a28f(0x235)][_0x34a28f(0x1f3)]>0x1){let _0x2d70de=this[_0x34a28f(0x28a)](_0x3c6496,_0x317169[_0x34a28f(0x235)]);if(!_0x2d70de){this['_dragStart']=null,this[_0x34a28f(0x1e6)]();return;}let _0x37419f=_0x3c6496[_0x2d70de[_0x34a28f(0x254)]],_0x525ab9=_0x401f4b(_0x3c6496,_0x2d70de[_0x34a28f(0x254)]),_0x1bea16=_0x37419f[_0x34a28f(0x333)]['transform'];this['_dragStart']={'kind':_0x34a28f(0x32d),'unitId':_0x339be4[_0x34a28f(0x147)],'subUnitId':_0x339be4[_0x34a28f(0x3cd)],'nodeId':_0x2d70de[_0x34a28f(0x254)],'scopeId':_0x2d70de['scopeId'],'left':(_0x525ab9==null?void 0x0:_0x525ab9[_0x34a28f(0x233)])??_0x1bea16[_0x34a28f(0x233)]??0x0,'top':(_0x525ab9==null?void 0x0:_0x525ab9[_0x34a28f(0x41d)])??_0x1bea16[_0x34a28f(0x41d)]??0x0,'width':(_0x525ab9==null?void 0x0:_0x525ab9['width'])??_0x1bea16[_0x34a28f(0x246)]??0x0,'height':(_0x525ab9==null?void 0x0:_0x525ab9[_0x34a28f(0x26c)])??_0x1bea16[_0x34a28f(0x26c)]??0x0,'elementData':_0x3c6496};return;}let _0x36652b=_0x3c6496[_0x107ecc],_0x49affe=_0x51f94c(_0x36652b==null?void 0x0:_0x36652b[_0x34a28f(0x333)]);if(!_0x36652b||!_0x49affe){this[_0x34a28f(0x164)]=null,this[_0x34a28f(0x1e6)]();return;}let _0xe8c16d=_0x401f4b(_0x3c6496,_0x107ecc),_0xa95a83=_0x36652b[_0x34a28f(0x333)][_0x34a28f(0x184)];this[_0x34a28f(0x164)]={'kind':_0x49affe['parentNodeId']===null?_0x34a28f(0x278):_0x34a28f(0x1b0),'unitId':_0x339be4[_0x34a28f(0x147)],'subUnitId':_0x339be4[_0x34a28f(0x3cd)],'nodeId':_0x107ecc,'scopeId':_0x49affe[_0x34a28f(0x3f1)],'left':(_0xe8c16d==null?void 0x0:_0xe8c16d[_0x34a28f(0x233)])??_0xa95a83[_0x34a28f(0x233)]??0x0,'top':(_0xe8c16d==null?void 0x0:_0xe8c16d[_0x34a28f(0x41d)])??_0xa95a83[_0x34a28f(0x41d)]??0x0,'width':(_0xe8c16d==null?void 0x0:_0xe8c16d[_0x34a28f(0x246)])??_0xa95a83[_0x34a28f(0x246)]??0x0,'height':(_0xe8c16d==null?void 0x0:_0xe8c16d[_0x34a28f(0x26c)])??_0xa95a83[_0x34a28f(0x26c)]??0x0,'elementData':_0x3c6496};}[_0x1f10c6(0x28a)](_0x43c676,_0x4db9f0){const _0x4461a8=_0x1f10c6;let _0x5da3f6=new Set(_0x4db9f0),_0x5c234c=_0x4db9f0[_0x4461a8(0x28f)](_0x4a2ffe=>{const _0x3f9ee8=_0x4461a8;var _0x219ea8,_0x4e4725,_0x22f130,_0x1fecf9;let _0x3e96df=(_0x219ea8=_0x43c676[_0x4a2ffe])==null?void 0x0:_0x219ea8['element'];return((_0x4e4725=_0x51f94c(_0x3e96df))==null?void 0x0:_0x4e4725[_0x3f9ee8(0x3f1)])??((_0x22f130=_0x2139e0(_0x3e96df))==null?void 0x0:_0x22f130[_0x3f9ee8(0x3f1)])??((_0x1fecf9=_0x195a16(_0x3e96df))==null?void 0x0:_0x1fecf9[_0x3f9ee8(0x3f1)])??null;});if(_0x5c234c['some'](_0x421588=>_0x421588===null)||new Set(_0x5c234c)[_0x4461a8(0x35c)]!==0x1)return null;let _0x2dbd1e=_0x5c234c[0x0];if(!_0x2dbd1e)return null;let _0x59546d=Object[_0x4461a8(0x361)](_0x43c676)[_0x4461a8(0x3f7)](_0xb155a2=>{const _0x2cb25e=_0x4461a8;var _0x59238e;return _0xb155a2[_0x2cb25e(0x333)][_0x2cb25e(0x2df)]!==!0x1&&((_0x59238e=_0x51f94c(_0xb155a2[_0x2cb25e(0x333)]))==null?void 0x0:_0x59238e[_0x2cb25e(0x3f1)])===_0x2dbd1e;});if(_0x59546d[_0x4461a8(0x1f3)]===0x0||_0x59546d[_0x4461a8(0x442)](_0x295a98=>!_0x5da3f6[_0x4461a8(0x3a5)](_0x295a98[_0x4461a8(0x142)])))return null;let _0x3f5914=_0x59546d[_0x4461a8(0x3f7)](_0x52ee3a=>{const _0x3d6ed0=_0x4461a8;var _0x4e03e9;return((_0x4e03e9=_0x51f94c(_0x52ee3a[_0x3d6ed0(0x333)]))==null?void 0x0:_0x4e03e9[_0x3d6ed0(0x2d9)])===null;});return _0x3f5914[_0x4461a8(0x1f3)]===0x1?{'rootNodeId':_0x3f5914[0x0][_0x4461a8(0x142)],'scopeId':_0x2dbd1e}:null;}['_capturePointerChildDragStart'](_0x57d064,_0x5b5fe4,_0xb2c334){const _0x120785=_0x1f10c6;var _0x29f1bd,_0x3d8e68,_0x5209c5,_0x50b94a,_0x45de5c;if(this[_0x120785(0x452)][_0x120785(0x193)]()['interactionMode']===_0x120785(0x439)||(_0x57d064[_0x120785(0x2d3)]??0x0)!==0x0)return;let _0x4ca2ee=this[_0x120785(0x2cf)]['getSnapshot']();if(_0x4ca2ee['activeEditingId']){this[_0x120785(0x294)]=null;return;}let _0x1b3186=_0x5b5fe4?{'unitId':_0x5b5fe4[_0x120785(0x147)],'subUnitId':_0x5b5fe4['subUnitId']}:_0x4ca2ee['context']??this[_0x120785(0x209)](),_0x2eb77c=(_0x5b5fe4==null?void 0x0:_0x5b5fe4[_0x120785(0x227)])??(_0x4ca2ee[_0x120785(0x235)][_0x120785(0x1f3)]===0x1?_0x4ca2ee['focusedId']??_0x4ca2ee[_0x120785(0x235)][0x0]:void 0x0);if(!_0x1b3186){this[_0x120785(0x294)]=null;return;}let _0x4e6a10=this[_0x120785(0x384)][_0x120785(0x258)](_0x1b3186['unitId'],_0x1b3186['subUnitId']),_0x5a4ffb=this[_0x120785(0x1aa)](_0x57d064);if(!_0x5b5fe4){let _0x20fa71=_0x2eb77c?_0x4e6a10[_0x2eb77c]:null,_0x1c2404=_0x51f94c(_0x20fa71==null?void 0x0:_0x20fa71[_0x120785(0x333)]),_0x581e92=_0x2eb77c?_0x401f4b(_0x4e6a10,_0x2eb77c)??(_0x20fa71==null?void 0x0:_0x20fa71[_0x120785(0x333)][_0x120785(0x184)]):null;(!(_0x1c2404!=null&&_0x1c2404[_0x120785(0x2d9)])||!_0x581e92||!this[_0x120785(0x404)](_0x5a4ffb,{'left':_0x581e92[_0x120785(0x233)]??0x0,'top':_0x581e92[_0x120785(0x41d)]??0x0,'width':_0x581e92[_0x120785(0x246)]??0x0,'height':_0x581e92['height']??0x0}))&&(_0x2eb77c=this['_findChildNodeAtPoint'](_0x4e6a10,_0x5a4ffb));}if(!_0x2eb77c){this[_0x120785(0x294)]=null;return;}let _0x16c3cd=_0x4e6a10[_0x2eb77c],_0x4a65b8=_0x51f94c(_0x16c3cd==null?void 0x0:_0x16c3cd[_0x120785(0x333)]);if(!_0x16c3cd||!(_0x4a65b8!=null&&_0x4a65b8[_0x120785(0x2d9)])){this[_0x120785(0x294)]=null;return;}this[_0x120785(0x26a)][_0x120785(0x248)](_0x1b3186[_0x120785(0x147)]),(_0x29f1bd=this[_0x120785(0x3e1)][_0x120785(0x214)])==null||(_0x3d8e68=_0x29f1bd[_0x120785(0x2a2)])==null||(_0x3d8e68=_0x3d8e68[_0x120785(0x266)](_0x29f1bd))==null||(_0x5209c5=_0x3d8e68[_0x120785(0x275)])==null||_0x5209c5[_0x120785(0x266)](_0x3d8e68,{'preventScroll':!0x0}),(_0x50b94a=(_0x45de5c=this['_elementStateService'])[_0x120785(0x29f)])==null||_0x50b94a[_0x120785(0x266)](_0x45de5c,_0x1b3186,[_0x2eb77c],_0x2eb77c),_0xb2c334==null||_0xb2c334['stopPropagation']();let _0x3a148d=_0x401f4b(_0x4e6a10,_0x2eb77c),_0x532121=_0x16c3cd[_0x120785(0x333)][_0x120785(0x184)],_0x144e0c={'left':(_0x3a148d==null?void 0x0:_0x3a148d[_0x120785(0x233)])??_0x532121[_0x120785(0x233)]??0x0,'top':(_0x3a148d==null?void 0x0:_0x3a148d[_0x120785(0x41d)])??_0x532121[_0x120785(0x41d)]??0x0,'width':(_0x3a148d==null?void 0x0:_0x3a148d[_0x120785(0x246)])??_0x532121[_0x120785(0x246)]??0x0,'height':(_0x3a148d==null?void 0x0:_0x3a148d['height'])??_0x532121[_0x120785(0x26c)]??0x0};if(!_0x5b5fe4&&!this[_0x120785(0x404)](_0x5a4ffb,_0x144e0c)){this['_pointerDragStart']=null;return;}let _0x2dab55=this[_0x120785(0x42e)](_0x57d064);this[_0x120785(0x144)]=!0x1,this[_0x120785(0x13f)]=!0x1,this['_lastChildDragAction']=null,this[_0x120785(0x294)]={'kind':_0x120785(0x1b0),'unitId':_0x1b3186[_0x120785(0x147)],'subUnitId':_0x1b3186[_0x120785(0x3cd)],'nodeId':_0x2eb77c,'scopeId':_0x4a65b8[_0x120785(0x3f1)],..._0x144e0c,'pointerStartX':_0x2dab55['x'],'pointerStartY':_0x2dab55['y'],'elementData':_0x4e6a10},this[_0x120785(0x35b)](),this['_consumePointerEvent'](_0x57d064,_0xb2c334);}['_syncPointerChildDragPreview'](_0x59eaa7,_0x271c7d){const _0x15f198=_0x1f10c6;var _0x2d5eb9,_0x35bd27;let _0x214190=this[_0x15f198(0x294)];if(!_0x214190||_0x59eaa7['buttons']!==void 0x0&&_0x59eaa7['buttons']!==0x1)return;let _0x3032a0=this[_0x15f198(0x45c)](_0x59eaa7,_0x214190);if(!this[_0x15f198(0x20b)](_0x214190,_0x3032a0))return;this[_0x15f198(0x144)]||this[_0x15f198(0x1c4)](),this[_0x15f198(0x144)]=!0x0;let _0x334118=this[_0x15f198(0x3be)](_0x214190['elementData'],_0x214190[_0x15f198(0x227)],_0x3032a0),_0x353a2c=Sn(_0x214190[_0x15f198(0x19b)],_0x214190[_0x15f198(0x227)],{'boundsByElementId':_0x334118,'detachWhenNoSnap':!0x0});this[_0x15f198(0x25b)]=_0x353a2c,this[_0x15f198(0x249)](_0x3032a0,_0x353a2c,_0x334118),this[_0x15f198(0x1ba)](_0x59eaa7,_0x271c7d),this['_renderContext'][_0x15f198(0x156)][_0x15f198(0x359)](!0x0),(_0x2d5eb9=(_0x35bd27=this['_renderContext'][_0x15f198(0x156)])[_0x15f198(0x279)])==null||_0x2d5eb9['call'](_0x35bd27);}[_0x1f10c6(0x3a8)](_0x248fdc,_0x10d589){const _0x4010d8=_0x1f10c6;let _0x4b979c=this[_0x4010d8(0x294)];if(!_0x4b979c)return;if(this[_0x4010d8(0x294)]=null,this[_0x4010d8(0x32e)](),this[_0x4010d8(0x1e6)](),!this[_0x4010d8(0x144)]){this['_lastChildDragAction']=null;return;}let _0x460c0d=this[_0x4010d8(0x384)][_0x4010d8(0x258)](_0x4b979c['unitId'],_0x4b979c[_0x4010d8(0x3cd)]),_0x41bc38=this['_getPointerLiveBounds'](_0x248fdc,_0x4b979c),_0x1176c0=this[_0x4010d8(0x3be)](_0x460c0d,_0x4b979c[_0x4010d8(0x227)],_0x41bc38),_0x10c783=Sn(_0x460c0d,_0x4b979c['nodeId'],{'boundsByElementId':_0x1176c0,'detachWhenNoSnap':!0x0});this[_0x4010d8(0x25b)]=null,this[_0x4010d8(0x27b)](_0x4b979c[_0x4010d8(0x147)],_0x4b979c[_0x4010d8(0x3cd)],_0x4b979c['nodeId'],_0x460c0d,_0x10c783),this[_0x4010d8(0x13f)]=!0x1,this[_0x4010d8(0x1ba)](_0x248fdc,_0x10d589);}[_0x1f10c6(0x2dc)](_0x46796e){const _0x2bcf00=_0x1f10c6;let _0x38c8d7=this[_0x2bcf00(0x294)];if(_0x38c8d7){if(this[_0x2bcf00(0x294)]=null,this[_0x2bcf00(0x32e)](),this['_childDragActivated']=!0x1,this[_0x2bcf00(0x25b)]=null,this[_0x2bcf00(0x1e6)](),this[_0x2bcf00(0x13f)]){var _0x50e50d,_0x39cb03;(_0x50e50d=(_0x39cb03=this[_0x2bcf00(0x2cf)])[_0x2bcf00(0x29f)])==null||_0x50e50d[_0x2bcf00(0x266)](_0x39cb03,{'unitId':_0x38c8d7['unitId'],'subUnitId':_0x38c8d7[_0x2bcf00(0x3cd)]},[_0x38c8d7[_0x2bcf00(0x227)]],_0x38c8d7[_0x2bcf00(0x227)]),this[_0x2bcf00(0x13f)]=!0x1;}_0x46796e==null||_0x46796e['stopPropagation']();}}['_attachActivePointerDragListeners'](){const _0x220fe6=_0x1f10c6;this[_0x220fe6(0x32e)]();let _0x31a634=typeof window>'u'?null:window;if(!(_0x31a634!=null&&_0x31a634[_0x220fe6(0x3f0)]))return;let _0x1dda0f=new _0x308d99(),_0x100d59=_0x50b808=>this[_0x220fe6(0x3ed)](_0x50b808),_0x4c575a=_0x545b8d=>this['_applyPointerChildDrag'](_0x545b8d),_0x58e3ef=()=>this[_0x220fe6(0x2dc)]();_0x31a634[_0x220fe6(0x3f0)](_0x220fe6(0x2bc),_0x100d59,{'capture':!0x0}),_0x31a634[_0x220fe6(0x3f0)](_0x220fe6(0x343),_0x4c575a,{'capture':!0x0}),_0x31a634[_0x220fe6(0x3f0)](_0x220fe6(0x3e2),_0x58e3ef,{'capture':!0x0}),_0x1dda0f['add'](_0x50821e(()=>{const _0x6cf7ca=_0x220fe6;_0x31a634[_0x6cf7ca(0x355)](_0x6cf7ca(0x2bc),_0x100d59,{'capture':!0x0}),_0x31a634['removeEventListener']('pointerup',_0x4c575a,{'capture':!0x0}),_0x31a634[_0x6cf7ca(0x355)](_0x6cf7ca(0x3e2),_0x58e3ef,{'capture':!0x0});})),this[_0x220fe6(0x270)]=_0x1dda0f;}[_0x1f10c6(0x1a2)](_0x4f58ab,_0x31565f){const _0x1329fd=_0x1f10c6;let _0x408f05=Object[_0x1329fd(0x361)](_0x4f58ab);for(let _0x31a530=_0x408f05['length']-0x1;_0x31a530>=0x0;--_0x31a530){let _0x476fd6=_0x408f05[_0x31a530],_0x61e0c0=_0x51f94c(_0x476fd6[_0x1329fd(0x333)]);if(!(_0x61e0c0!=null&&_0x61e0c0[_0x1329fd(0x2d9)]))continue;let _0x12981c=_0x401f4b(_0x4f58ab,_0x476fd6['elementId'])??_0x476fd6[_0x1329fd(0x333)][_0x1329fd(0x184)];if(this['_isPointInBounds'](_0x31565f,{'left':_0x12981c['left']??0x0,'top':_0x12981c[_0x1329fd(0x41d)]??0x0,'width':_0x12981c[_0x1329fd(0x246)]??0x0,'height':_0x12981c['height']??0x0}))return _0x476fd6['elementId'];}}[_0x1f10c6(0x32e)](){const _0x3d2781=_0x1f10c6;var _0x2b0f0d;(_0x2b0f0d=this['_activePointerDragDisposables'])==null||_0x2b0f0d[_0x3d2781(0x3c0)](),this[_0x3d2781(0x270)]=null;}[_0x1f10c6(0x372)](_0x36e491){const _0x4b43dc=_0x1f10c6;let _0x407185=this[_0x4b43dc(0x164)];if(_0x407185){if((_0x407185[_0x4b43dc(0x420)]===_0x4b43dc(0x278)||_0x407185[_0x4b43dc(0x420)]===_0x4b43dc(0x32d))&&this[_0x4b43dc(0x228)](_0x36e491),_0x407185[_0x4b43dc(0x420)]===_0x4b43dc(0x278)){this[_0x4b43dc(0x363)](_0x36e491);return;}this[_0x4b43dc(0x3df)](_0x36e491);}}[_0x1f10c6(0x228)](_0x5c67af){const _0x46dee4=_0x1f10c6;let _0x193255=this['_dragStart'];if(!_0x193255||_0x193255['kind']!=='root'&&_0x193255[_0x46dee4(0x420)]!==_0x46dee4(0x32d))return;let _0x4c844d=_0x5c67af==null?void 0x0:_0x5c67af[_0x46dee4(0x1a4)](_0x10c90a(_0x193255[_0x46dee4(0x147)],_0x193255[_0x46dee4(0x227)]));if(!_0x4c844d||!Number['isFinite'](_0x4c844d['left'])||!Number['isFinite'](_0x4c844d['top']))return;let _0x2cb091=Tn({'elementData':_0x193255[_0x46dee4(0x19b)],'rootNodeId':_0x193255[_0x46dee4(0x227)],'scopeId':_0x193255[_0x46dee4(0x3d1)],'rootStartBounds':{'left':_0x193255[_0x46dee4(0x233)],'top':_0x193255[_0x46dee4(0x41d)]},'liveRootBounds':{'left':_0x4c844d[_0x46dee4(0x233)],'top':_0x4c844d[_0x46dee4(0x41d)]}});if(!_0x2cb091)return;let _0x2fb72a=this[_0x46dee4(0x3e1)][_0x46dee4(0x156)],_0x5ed2f4=_0x2fb72a,_0x1f18b0=!0x1;_0x2cb091['items'][_0x46dee4(0x35f)](_0x3d7484=>{const _0x467132=_0x46dee4;var _0x5791be;let _0x4a7c20=_0x10c90a(_0x193255['unitId'],_0x3d7484[_0x467132(0x142)]),_0xad7485=((_0x5791be=_0x5ed2f4['getObjectIncludeInGroup'])==null?void 0x0:_0x5791be['call'](_0x5ed2f4,_0x4a7c20))??_0x2fb72a[_0x467132(0x301)](_0x4a7c20);if(_0xad7485){if(_0x3d7484[_0x467132(0x420)]===_0x467132(0x43c)&&typeof _0xad7485[_0x467132(0x414)]==_0x467132(0x22e)){_0xad7485[_0x467132(0x414)](_0x3d7484[_0x467132(0x333)],_0x2cb091[_0x467132(0x19b)]),_0x1f18b0=!0x0;return;}_0x3d7484[_0x467132(0x420)]===_0x467132(0x24d)&&(_0xad7485[_0x467132(0x33b)](_0x3d7484[_0x467132(0x24d)]),typeof _0xad7485[_0x467132(0x459)]==_0x467132(0x22e)?_0xad7485[_0x467132(0x459)](!0x0):_0xad7485[_0x467132(0x359)](!0x0),_0x1f18b0=!0x0);}}),_0x1f18b0&&_0x2fb72a['makeDirty'](!0x0);}['_syncRootReparentPreview'](_0x297a85){const _0x1f64bd=_0x1f10c6;var _0x8e6945,_0x589636;let _0x23ea37=this['_dragStart'];if(!_0x23ea37||_0x23ea37[_0x1f64bd(0x420)]!=='root')return;let _0x4fe5c7=_0x297a85==null?void 0x0:_0x297a85[_0x1f64bd(0x1a4)](_0x10c90a(_0x23ea37['unitId'],_0x23ea37[_0x1f64bd(0x227)]));if(!_0x4fe5c7||!Number[_0x1f64bd(0x180)](_0x4fe5c7['left'])||!Number[_0x1f64bd(0x180)](_0x4fe5c7[_0x1f64bd(0x41d)])){this[_0x1f64bd(0x1e6)]();return;}let _0x2712d4=this[_0x1f64bd(0x20d)](_0x4fe5c7,_0x23ea37),_0x17b3f9=this[_0x1f64bd(0x3be)](_0x23ea37[_0x1f64bd(0x19b)],_0x23ea37[_0x1f64bd(0x227)],_0x2712d4),_0x1e6e60=Sn(_0x23ea37[_0x1f64bd(0x19b)],_0x23ea37[_0x1f64bd(0x227)],{'boundsByElementId':_0x17b3f9,'allowRootReparent':!0x0});if(_0x1e6e60[_0x1f64bd(0x420)]!==_0x1f64bd(0x14c)){this[_0x1f64bd(0x1e6)]();return;}let _0x46a1f6=this['_ensureDragPreviewObject']();_0x46a1f6&&(_0x46a1f6[_0x1f64bd(0x3c5)]({'ghostBounds':_0x2712d4,'sourceBounds':null,'parentBounds':_0x17b3f9[_0x1e6e60[_0x1f64bd(0x409)]],'side':_0x1e6e60['side'],'textStyle':void 0x0,'renderGhostNode':!0x1}),this[_0x1f64bd(0x3e1)][_0x1f64bd(0x156)][_0x1f64bd(0x359)](!0x0),(_0x8e6945=(_0x589636=this[_0x1f64bd(0x3e1)][_0x1f64bd(0x156)])[_0x1f64bd(0x279)])==null||_0x8e6945[_0x1f64bd(0x266)](_0x589636));}[_0x1f10c6(0x3df)](_0x467ee8){const _0x3e2265=_0x1f10c6;var _0x2be8af,_0x5e1196;let _0x6b257a=this[_0x3e2265(0x164)];if(!_0x6b257a||_0x6b257a[_0x3e2265(0x420)]!==_0x3e2265(0x1b0))return;let _0x245231=_0x467ee8==null?void 0x0:_0x467ee8[_0x3e2265(0x1a4)](_0x10c90a(_0x6b257a['unitId'],_0x6b257a[_0x3e2265(0x227)]));if(!_0x245231){this[_0x3e2265(0x1e6)]();return;}let _0x3465f0=this['_getLiveObjectBounds'](_0x245231,_0x6b257a);if(!this[_0x3e2265(0x20b)](_0x6b257a,_0x3465f0)){this[_0x3e2265(0x25b)]=null,this[_0x3e2265(0x1e6)](),this[_0x3e2265(0x277)](_0x245231,_0x6b257a),this[_0x3e2265(0x3e1)][_0x3e2265(0x156)][_0x3e2265(0x359)](!0x0);return;}this[_0x3e2265(0x144)]||this[_0x3e2265(0x1c4)](),this[_0x3e2265(0x144)]=!0x0;let _0x15833a=this[_0x3e2265(0x3be)](_0x6b257a[_0x3e2265(0x19b)],_0x6b257a['nodeId'],_0x3465f0),_0x3eadf6=Sn(_0x6b257a[_0x3e2265(0x19b)],_0x6b257a['nodeId'],{'boundsByElementId':_0x15833a,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=_0x3eadf6,this[_0x3e2265(0x249)](_0x3465f0,_0x3eadf6,_0x15833a),this[_0x3e2265(0x277)](_0x245231,_0x6b257a),this[_0x3e2265(0x3e1)][_0x3e2265(0x156)]['makeDirty'](!0x0),(_0x2be8af=(_0x5e1196=this[_0x3e2265(0x3e1)][_0x3e2265(0x156)])[_0x3e2265(0x279)])==null||_0x2be8af[_0x3e2265(0x266)](_0x5e1196);}[_0x1f10c6(0x1d9)](_0x48cb8c){const _0x56af30=_0x1f10c6;var _0x1ed441;let _0x418762=this[_0x56af30(0x2cf)][_0x56af30(0x226)](),_0x42bfef=_0x418762[_0x56af30(0x27a)],_0x119660=_0x418762[_0x56af30(0x1d7)]??_0x418762[_0x56af30(0x235)][0x0];if(_0x42bfef&&((_0x1ed441=this[_0x56af30(0x164)])==null?void 0x0:_0x1ed441[_0x56af30(0x420)])===_0x56af30(0x32d)){this[_0x56af30(0x1e6)](),this[_0x56af30(0x30b)](_0x42bfef['unitId'],_0x42bfef[_0x56af30(0x3cd)],_0x48cb8c);return;}if(!_0x42bfef||!_0x119660||_0x418762['selectedIds'][_0x56af30(0x1f3)]!==0x1){this[_0x56af30(0x1e6)](),this[_0x56af30(0x164)]=null;return;}this['_removeDragPreviewObject']();let _0x52ddcc=this[_0x56af30(0x384)][_0x56af30(0x258)](_0x42bfef[_0x56af30(0x147)],_0x42bfef[_0x56af30(0x3cd)]);if(this[_0x56af30(0x26d)](_0x42bfef[_0x56af30(0x147)],_0x42bfef[_0x56af30(0x3cd)],_0x119660,_0x52ddcc,_0x48cb8c))return;let _0x4dbddb=this[_0x56af30(0x20a)](_0x42bfef[_0x56af30(0x147)],_0x42bfef[_0x56af30(0x3cd)],_0x119660,_0x52ddcc,_0x48cb8c);this[_0x56af30(0x27b)](_0x42bfef['unitId'],_0x42bfef[_0x56af30(0x3cd)],_0x119660,_0x52ddcc,_0x4dbddb);}['_applyScopeTranslation'](_0xc6d054,_0x49712e,_0x54bfbd){const _0x33876b=_0x1f10c6;let _0x2aa208=this['_dragStart'];if(this[_0x33876b(0x164)]=null,!_0x2aa208||_0x2aa208[_0x33876b(0x420)]!=='scope'||_0x2aa208[_0x33876b(0x147)]!==_0xc6d054||_0x2aa208[_0x33876b(0x3cd)]!==_0x49712e)return;let _0x42618c=_0x54bfbd==null?void 0x0:_0x54bfbd[_0x33876b(0x1a4)](_0x10c90a(_0xc6d054,_0x2aa208[_0x33876b(0x227)])),_0x377210=_0x42618c&&Number['isFinite'](_0x42618c[_0x33876b(0x233)])?_0x42618c[_0x33876b(0x233)]??_0x2aa208['left']:_0x2aa208[_0x33876b(0x233)],_0x3b0529=_0x42618c&&Number[_0x33876b(0x180)](_0x42618c[_0x33876b(0x41d)])?_0x42618c[_0x33876b(0x41d)]??_0x2aa208[_0x33876b(0x41d)]:_0x2aa208[_0x33876b(0x41d)],_0x265275=_0x377210-_0x2aa208[_0x33876b(0x233)],_0x100dc9=_0x3b0529-_0x2aa208[_0x33876b(0x41d)];(_0x265275!==0x0||_0x100dc9!==0x0)&&this[_0x33876b(0x210)][_0x33876b(0x189)](_0x34c5bd['id'],{'unitId':_0xc6d054,'subUnitId':_0x49712e,'scopeId':_0x2aa208['scopeId'],'deltaX':_0x265275,'deltaY':_0x100dc9});}[_0x1f10c6(0x27b)](_0x4cbcde,_0x327550,_0x96c4c8,_0xf5abc9,_0x42ca76){const _0x2abab2=_0x1f10c6;if(_0x42ca76[_0x2abab2(0x420)]===_0x2abab2(0x14c)){var _0x4faea0,_0x311364;let _0x152666=_0x51f94c((_0x4faea0=_0xf5abc9[_0x96c4c8])==null?void 0x0:_0x4faea0['element']),_0x1a8918=_0x51f94c((_0x311364=_0xf5abc9[_0x42ca76[_0x2abab2(0x409)]])==null?void 0x0:_0x311364[_0x2abab2(0x333)]);this[_0x2abab2(0x394)](_0x1b0b1e['id'],{'unitId':_0x4cbcde,'subUnitId':_0x327550,'nodeId':_0x96c4c8,'newParentNodeId':_0x42ca76[_0x2abab2(0x409)],'side':_0x42ca76[_0x2abab2(0x2a3)],..._0x42ca76['referenceNodeId']?{'referenceNodeId':_0x42ca76['referenceNodeId']}:null,..._0x42ca76[_0x2abab2(0x369)]?{'placement':_0x42ca76[_0x2abab2(0x369)]}:null},[_0x152666==null?void 0x0:_0x152666[_0x2abab2(0x3f1)],_0x1a8918==null?void 0x0:_0x1a8918[_0x2abab2(0x3f1)]],_0x96c4c8);return;}if(_0x42ca76[_0x2abab2(0x420)]===_0x2abab2(0x2a7)){var _0x2db9ba;let _0xe73d32=_0x51f94c((_0x2db9ba=_0xf5abc9[_0x96c4c8])==null?void 0x0:_0x2db9ba[_0x2abab2(0x333)]);this['_executeAndLayout'](_0x4315a8['id'],{'unitId':_0x4cbcde,'subUnitId':_0x327550,'nodeId':_0x96c4c8,...Number[_0x2abab2(0x180)](_0x42ca76[_0x2abab2(0x233)])?{'left':_0x42ca76[_0x2abab2(0x233)]}:null,...Number[_0x2abab2(0x180)](_0x42ca76['top'])?{'top':_0x42ca76[_0x2abab2(0x41d)]}:null},[_0xe73d32==null?void 0x0:_0xe73d32[_0x2abab2(0x3f1)]],_0x96c4c8);}}[_0x1f10c6(0x26d)](_0x51127a,_0x20c2de,_0x4a28d5,_0x1250e0,_0x46ce9e){const _0x1f382d=_0x1f10c6;let _0x47ae84=this[_0x1f382d(0x164)];if((_0x47ae84==null?void 0x0:_0x47ae84[_0x1f382d(0x420)])==='root'&&(this['_dragStart']=null),!_0x47ae84||_0x47ae84[_0x1f382d(0x147)]!==_0x51127a||_0x47ae84[_0x1f382d(0x3cd)]!==_0x20c2de||_0x47ae84['nodeId']!==_0x4a28d5)return!0x1;let _0x5efbab=_0x1250e0[_0x4a28d5],_0x266b21=_0x51f94c(_0x5efbab==null?void 0x0:_0x5efbab['element']);if(!_0x5efbab||!_0x266b21||_0x266b21[_0x1f382d(0x2d9)]!==null)return!0x1;let _0x18438a=_0x46ce9e==null?void 0x0:_0x46ce9e[_0x1f382d(0x1a4)](_0x10c90a(_0x51127a,_0x4a28d5)),_0x27f54c=_0x401f4b(_0x1250e0,_0x4a28d5),_0x1ad528=Number[_0x1f382d(0x180)](_0x18438a==null?void 0x0:_0x18438a[_0x1f382d(0x233)])?_0x18438a[_0x1f382d(0x233)]:(_0x27f54c==null?void 0x0:_0x27f54c[_0x1f382d(0x233)])??_0x5efbab[_0x1f382d(0x333)]['transform']['left']??0x0,_0x529322=Number['isFinite'](_0x18438a==null?void 0x0:_0x18438a[_0x1f382d(0x41d)])?_0x18438a[_0x1f382d(0x41d)]:(_0x27f54c==null?void 0x0:_0x27f54c[_0x1f382d(0x41d)])??_0x5efbab[_0x1f382d(0x333)][_0x1f382d(0x184)][_0x1f382d(0x41d)]??0x0,_0x9a4558=_0x1ad528-_0x47ae84['left'],_0x29cc73=_0x529322-_0x47ae84[_0x1f382d(0x41d)];if(_0x9a4558===0x0&&_0x29cc73===0x0)return!0x0;let _0x320e1c={'left':_0x1ad528,'top':_0x529322,'width':Number[_0x1f382d(0x180)](_0x18438a==null?void 0x0:_0x18438a[_0x1f382d(0x246)])?_0x18438a[_0x1f382d(0x246)]:_0x47ae84[_0x1f382d(0x246)],'height':Number['isFinite'](_0x18438a==null?void 0x0:_0x18438a[_0x1f382d(0x26c)])?_0x18438a[_0x1f382d(0x26c)]:_0x47ae84['height']},_0x537a4a=Sn(_0x1250e0,_0x4a28d5,{'boundsByElementId':this[_0x1f382d(0x3be)](_0x1250e0,_0x4a28d5,_0x320e1c),'allowRootReparent':!0x0});if(_0x537a4a[_0x1f382d(0x420)]===_0x1f382d(0x14c))return this[_0x1f382d(0x27b)](_0x51127a,_0x20c2de,_0x4a28d5,_0x1250e0,_0x537a4a),!0x0;let _0xb56c3f=!!_0x27f54c&&Math[_0x1f382d(0x1b1)](_0x27f54c['left']-_0x1ad528)<0.001&&Math[_0x1f382d(0x1b1)](_0x27f54c[_0x1f382d(0x41d)]-_0x529322)<0.001;return this[_0x1f382d(0x210)]['executeCommand'](_0x34c5bd['id'],{'unitId':_0x51127a,'subUnitId':_0x20c2de,'scopeId':_0x47ae84[_0x1f382d(0x3d1)],'deltaX':_0x9a4558,'deltaY':_0x29cc73,..._0xb56c3f?{'excludeElementIds':[_0x4a28d5],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}['_resolveChildDragTopologyAction'](_0x1469a1,_0x325cd1,_0x3811d5,_0x533130,_0x247d6c){const _0x203f0d=_0x1f10c6;let _0x39f3b2=this[_0x203f0d(0x164)];if(!_0x39f3b2||_0x39f3b2[_0x203f0d(0x420)]!==_0x203f0d(0x1b0)||_0x39f3b2[_0x203f0d(0x147)]!==_0x1469a1||_0x39f3b2['subUnitId']!==_0x325cd1||_0x39f3b2['nodeId']!==_0x3811d5)return{'kind':_0x203f0d(0x3e6)};this['_dragStart']=null;let _0x2e1190=_0x247d6c==null?void 0x0:_0x247d6c[_0x203f0d(0x1a4)](_0x10c90a(_0x1469a1,_0x3811d5));if(!this['_childDragActivated'])return _0x2e1190&&this[_0x203f0d(0x277)](_0x2e1190,_0x39f3b2),this[_0x203f0d(0x25b)]=null,{'kind':_0x203f0d(0x3e6)};if(!_0x2e1190){let _0x196aad=this['_lastChildDragAction']??{'kind':_0x203f0d(0x3e6)};return this['_lastChildDragAction']=null,_0x196aad;}let _0x313264=this[_0x203f0d(0x20d)](_0x2e1190,_0x39f3b2);if(this['_restoreObjectToDragStart'](_0x2e1190,_0x39f3b2),!this[_0x203f0d(0x20b)](_0x39f3b2,_0x313264))return this[_0x203f0d(0x25b)]=null,{'kind':_0x203f0d(0x3e6)};let _0x3e58c7=Sn(_0x533130,_0x3811d5,{'boundsByElementId':this[_0x203f0d(0x3be)](_0x533130,_0x3811d5,_0x313264),'detachWhenNoSnap':!0x0});return this[_0x203f0d(0x25b)]=null,_0x3e58c7;}[_0x1f10c6(0x20b)](_0x335dc9,_0xcae824){const _0x14f177=_0x1f10c6;let _0x547bdf=(_0xcae824[_0x14f177(0x233)]??_0x335dc9[_0x14f177(0x233)])-_0x335dc9['left'],_0x5c8fb1=(_0xcae824[_0x14f177(0x41d)]??_0x335dc9['top'])-_0x335dc9[_0x14f177(0x41d)];return Math[_0x14f177(0x234)](_0x547bdf,_0x5c8fb1)>=0x12;}[_0x1f10c6(0x45c)](_0xdf9d24,_0x303b2c){const _0x5f21cf=_0x1f10c6;let _0x299eb4=this['_getPointerScreenPoint'](_0xdf9d24),_0x385784=this[_0x5f21cf(0x42c)]();return{'left':_0x303b2c[_0x5f21cf(0x233)]+(_0x299eb4['x']-_0x303b2c[_0x5f21cf(0x1da)])/_0x385784,'top':_0x303b2c[_0x5f21cf(0x41d)]+(_0x299eb4['y']-_0x303b2c[_0x5f21cf(0x3bc)])/_0x385784,'width':_0x303b2c[_0x5f21cf(0x246)],'height':_0x303b2c[_0x5f21cf(0x26c)]};}[_0x1f10c6(0x1aa)](_0x7ff34f){const _0x563c13=_0x1f10c6;let _0x302fe3=this[_0x563c13(0x452)]['getState'](),_0x198199=(_0x302fe3==null?void 0x0:_0x302fe3[_0x563c13(0x360)])??{'x':0x0,'y':0x0},_0x155c22=this[_0x563c13(0x42c)]();return{'x':Math[_0x563c13(0x272)](((_0x7ff34f[_0x563c13(0x3ff)]??0x0)-_0x198199['x'])/_0x155c22),'y':Math[_0x563c13(0x272)](((_0x7ff34f[_0x563c13(0x2e0)]??0x0)-_0x198199['y'])/_0x155c22)};}[_0x1f10c6(0x42e)](_0x2728e3){const _0x33c221=_0x1f10c6;return{'x':Number[_0x33c221(0x180)](_0x2728e3[_0x33c221(0x300)])?_0x2728e3['clientX']:_0x2728e3[_0x33c221(0x3ff)]??0x0,'y':Number['isFinite'](_0x2728e3[_0x33c221(0x3ec)])?_0x2728e3['clientY']:_0x2728e3[_0x33c221(0x2e0)]??0x0};}[_0x1f10c6(0x42c)](){const _0x4c7266=_0x1f10c6;let _0xe00c39=this['_uiStateService'][_0x4c7266(0x193)]()[_0x4c7266(0x368)];return Number[_0x4c7266(0x180)](_0xe00c39)&&(_0xe00c39??0x0)>0x0?_0xe00c39:0x1;}['_isPointInBounds'](_0x4d07a5,_0xdb162b){const _0x10201b=_0x1f10c6;return _0x4d07a5['x']>=_0xdb162b['left']&&_0x4d07a5['x']<=_0xdb162b[_0x10201b(0x233)]+_0xdb162b['width']&&_0x4d07a5['y']>=_0xdb162b[_0x10201b(0x41d)]&&_0x4d07a5['y']<=_0xdb162b['top']+_0xdb162b['height'];}[_0x1f10c6(0x1ba)](_0x4d8dd1,_0x293959){const _0x2b175e=_0x1f10c6;var _0x39039c,_0x519b7b;_0x293959==null||_0x293959[_0x2b175e(0x435)](),_0x293959&&(_0x293959[_0x2b175e(0x3b4)]=!0x0),(_0x39039c=_0x4d8dd1[_0x2b175e(0x188)])==null||_0x39039c[_0x2b175e(0x266)](_0x4d8dd1),(_0x519b7b=_0x4d8dd1['stopPropagation'])==null||_0x519b7b['call'](_0x4d8dd1);}[_0x1f10c6(0x1c4)](){const _0x4b42ad=_0x1f10c6;var _0x27964e,_0x5d756d;this[_0x4b42ad(0x13f)]||=((_0x27964e=(_0x5d756d=this[_0x4b42ad(0x2cf)])[_0x4b42ad(0x253)])==null||_0x27964e[_0x4b42ad(0x266)](_0x5d756d),!0x0);}['_getLiveObjectBounds'](_0x1d2665,_0xcb5960){const _0x51a2b4=_0x1f10c6;return{'left':Number[_0x51a2b4(0x180)](_0x1d2665['left'])?_0x1d2665[_0x51a2b4(0x233)]:_0xcb5960[_0x51a2b4(0x233)],'top':Number[_0x51a2b4(0x180)](_0x1d2665[_0x51a2b4(0x41d)])?_0x1d2665[_0x51a2b4(0x41d)]:_0xcb5960[_0x51a2b4(0x41d)],'width':Number[_0x51a2b4(0x180)](_0x1d2665[_0x51a2b4(0x246)])?_0x1d2665[_0x51a2b4(0x246)]:_0xcb5960[_0x51a2b4(0x246)],'height':Number['isFinite'](_0x1d2665['height'])?_0x1d2665[_0x51a2b4(0x26c)]:_0xcb5960[_0x51a2b4(0x26c)]};}[_0x1f10c6(0x277)](_0xee5c16,_0x433504){const _0xc1f899=_0x1f10c6;typeof _0xee5c16['transformByState']=='function'&&_0xee5c16[_0xc1f899(0x33b)]({'left':_0x433504['left'],'top':_0x433504['top'],'width':_0x433504[_0xc1f899(0x246)],'height':_0x433504[_0xc1f899(0x26c)]}),typeof _0xee5c16[_0xc1f899(0x459)]==_0xc1f899(0x22e)?_0xee5c16['makeDirtyNoDebounce'](!0x0):typeof _0xee5c16[_0xc1f899(0x359)]==_0xc1f899(0x22e)&&_0xee5c16['makeDirty'](!0x0);}['_createTopologyBoundsByElementId'](_0x36b493,_0x527bc6,_0x1cb5be){const _0x3a879c=_0x1f10c6;return Object['fromEntries'](Object[_0x3a879c(0x322)](_0x36b493)['map'](_0xdd2e2d=>_0xdd2e2d===_0x527bc6?[_0xdd2e2d,_0x1cb5be]:[_0xdd2e2d,_0x401f4b(_0x36b493,_0xdd2e2d)??_0x36b493[_0xdd2e2d][_0x3a879c(0x333)]['transform']]));}['_ensureDragPreviewObject'](){const _0x3aae05=_0x1f10c6;if(this[_0x3aae05(0x1a5)])return this[_0x3aae05(0x1a5)];let _0x588bb2=this[_0x3aae05(0x3e1)]['scene'];return typeof _0x588bb2[_0x3aae05(0x416)]==_0x3aae05(0x22e)?(this[_0x3aae05(0x1a5)]=new mn(cn),_0x588bb2[_0x3aae05(0x416)](this['_dragPreviewObject'],ln),this[_0x3aae05(0x1a5)]):null;}[_0x1f10c6(0x249)](_0x18020e,_0x53a494,_0x5ee6e6){const _0x23faac=_0x1f10c6;let _0x2725cd=this[_0x23faac(0x327)]();_0x2725cd&&_0x2725cd[_0x23faac(0x3c5)]({'ghostBounds':_0x18020e,'sourceBounds':this[_0x23faac(0x3c2)](),'parentBounds':_0x53a494[_0x23faac(0x420)]===_0x23faac(0x14c)?_0x5ee6e6[_0x53a494[_0x23faac(0x409)]]:null,'side':_0x53a494[_0x23faac(0x420)]===_0x23faac(0x14c)?_0x53a494['side']:'right','textStyle':this[_0x23faac(0x1d2)](),'renderGhostNode':!0x0});}[_0x1f10c6(0x3c2)](){const _0x2b4c02=_0x1f10c6;let _0x33e0f9=this[_0x2b4c02(0x294)]??this['_dragStart'];return _0x33e0f9?{'left':_0x33e0f9[_0x2b4c02(0x233)],'top':_0x33e0f9[_0x2b4c02(0x41d)],'width':_0x33e0f9[_0x2b4c02(0x246)],'height':_0x33e0f9[_0x2b4c02(0x26c)]}:null;}[_0x1f10c6(0x1d2)](){const _0x533ea8=_0x1f10c6;var _0x69c164,_0x420ee0;let _0x51922d=this[_0x533ea8(0x294)]??this[_0x533ea8(0x164)],_0x710c59=_0x51922d==null||(_0x69c164=_0x51922d[_0x533ea8(0x19b)][_0x51922d['nodeId']])==null?void 0x0:_0x69c164[_0x533ea8(0x333)],_0x55a390=_0x710c59==null||(_0x420ee0=_0x710c59[_0x533ea8(0x1c5)])==null?void 0x0:_0x420ee0['shapeText'];if(_0x55a390)return{'text':typeof _0x55a390[_0x533ea8(0x2e1)]=='string'?_0x55a390[_0x533ea8(0x2e1)]:void 0x0,'fontSize':Number[_0x533ea8(0x180)](_0x55a390[_0x533ea8(0x1b9)])?_0x55a390[_0x533ea8(0x1b9)]:void 0x0,'color':typeof _0x55a390[_0x533ea8(0x143)]=='string'?_0x55a390['color']:void 0x0,'horizontalAlign':Number[_0x533ea8(0x180)](_0x55a390[_0x533ea8(0x378)])?_0x55a390[_0x533ea8(0x378)]:void 0x0};}[_0x1f10c6(0x1e6)](){const _0x1a1651=_0x1f10c6;var _0x177d00,_0x3f93ae,_0x5b0855;if(!this['_dragPreviewObject'])return;let _0x18573a=this['_renderContext'][_0x1a1651(0x156)];(_0x177d00=_0x18573a['removeObjects'])==null||_0x177d00[_0x1a1651(0x266)](_0x18573a,[this[_0x1a1651(0x1a5)]]),this[_0x1a1651(0x1a5)]=null,(_0x3f93ae=(_0x5b0855=this[_0x1a1651(0x3e1)]['scene'])['makeDirty'])==null||_0x3f93ae[_0x1a1651(0x266)](_0x5b0855,!0x0);}[_0x1f10c6(0x394)](_0x4b41f1,_0x5456ee,_0x4ff475,_0x15af67){const _0x11313d=_0x1f10c6;let _0x220f70=[...new Set(_0x4ff475['filter'](_0x2046c8=>!!_0x2046c8))],_0x7f118d=typeof _0x5456ee[_0x11313d(0x147)]==_0x11313d(0x185)?_0x5456ee[_0x11313d(0x147)]:this[_0x11313d(0x3e1)]['unitId'],_0x1d368e=this[_0x11313d(0x3d4)][_0x11313d(0x1f2)](_0x7f118d),_0xe1c4cc=_0x1d368e(()=>this['_commandService'][_0x11313d(0x189)](_0x4b41f1,_0x5456ee));Promise[_0x11313d(0x434)](_0xe1c4cc)['then'](_0x4c719a=>{const _0x5ebaf3=_0x11313d;var _0x397dba,_0x40b6f0,_0x329491,_0x4b56a3;if(_0x4c719a){if(_0x220f70[_0x5ebaf3(0x35f)](_0x5a67e7=>{const _0x55dbb0=_0x5ebaf3;_0x1d368e(()=>this[_0x55dbb0(0x210)]['executeCommand'](_0x4a8bdc['id'],{'unitId':_0x5456ee[_0x55dbb0(0x147)],'subUnitId':_0x5456ee[_0x55dbb0(0x3cd)],'scopeId':_0x5a67e7}));}),_0x15af67&&typeof _0x5456ee[_0x5ebaf3(0x147)]==_0x5ebaf3(0x185)&&typeof _0x5456ee['subUnitId']==_0x5ebaf3(0x185)){var _0x4d0075,_0x794eae;(_0x4d0075=(_0x794eae=this[_0x5ebaf3(0x2cf)])[_0x5ebaf3(0x29f)])==null||_0x4d0075[_0x5ebaf3(0x266)](_0x794eae,{'unitId':_0x5456ee['unitId'],'subUnitId':_0x5456ee[_0x5ebaf3(0x3cd)]},[_0x15af67],_0x15af67);}(_0x397dba=(_0x40b6f0=this[_0x5ebaf3(0x3e1)]['scene'])['makeDirty'])==null||_0x397dba[_0x5ebaf3(0x266)](_0x40b6f0,!0x0),(_0x329491=(_0x4b56a3=this[_0x5ebaf3(0x3e1)][_0x5ebaf3(0x156)])[_0x5ebaf3(0x279)])==null||_0x329491[_0x5ebaf3(0x266)](_0x4b56a3);}});}};En=J([q(0x1,_0x2e0f98(_0x52d74d)),q(0x2,_0x2e0f98(_0x10fb2b)),q(0x3,_0x56aea3),q(0x4,_0x50e115),q(0x5,_0x1d8bf1),q(0x6,_0x2e0f98(_0x56a505))],En);let Dn=class extends _0x494558{constructor(_0x9fb658,_0x20e403,_0x1909f9,_0x1b0aa5,_0x2028e2,_0x3fbb44,_0xc8bd3a,_0x39033d,_0x560d93){const _0x1b8ae3=_0x1f10c6;super(),this['renderContext']=_0x9fb658,this[_0x1b8ae3(0x34a)]=_0x20e403,this[_0x1b8ae3(0x1b5)]=_0x1909f9,this[_0x1b8ae3(0x168)]=_0x1b0aa5,this[_0x1b8ae3(0x405)]=_0x2028e2,this[_0x1b8ae3(0x325)]=_0x3fbb44,this[_0x1b8ae3(0x320)]=_0xc8bd3a,this[_0x1b8ae3(0x2bf)]=_0x39033d,this[_0x1b8ae3(0x155)]=_0x560d93;}};Dn=J([q(0x1,_0x56aea3),q(0x2,_0x52d74d),q(0x3,_0x10fb2b),q(0x4,_0x50e115),q(0x5,_0x7e4b74),q(0x6,_0x51a5ab),q(0x7,_0x2e0f98(_0x588054)),q(0x8,_0x2e0f98(_0x157676))],Dn);const On=_0x1f10c6(0x35e),kn=_0x1f10c6(0x252);function An(_0x4ac6da){const _0x4bb3d4=_0x1f10c6;let {unitId:_0x3b2b27,subUnitId:_0x1d0db5,nodeId:_0x32a1d7,initialDescription:_0x12dc7d=''}=_0x4ac6da,_0x266bb0=_0x44103d(_0x56aea3),_0x3004d4=_0x44103d(_0x51a5ab),_0x4aef2c=_0x44103d(_0x588054),[_0x14c3ce,_0x3dd12e]=_0x63f429(_0x12dc7d),_0x5e30ac=()=>_0x3004d4[_0x4bb3d4(0x341)](kn);return _0x2bca5a(_0x4bb3d4(0x2fa),{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','data-board-mind-map-description-dialog':_0x4bb3d4(0x2ac),'children':[_0x2bca5a(_0x4bb3d4(0x215),{'className':_0x4bb3d4(0x3e5),'children':[_0x4a7fc2('span',{'className':_0x4bb3d4(0x181),'children':_0x4aef2c['t'](_0x4bb3d4(0x17d))}),_0x4a7fc2(_0x5163c9,{'autoFocus':!0x0,'className':_0x4bb3d4(0x1ad),'placeholder':_0x4aef2c['t'](_0x4bb3d4(0x3b5)),'value':_0x14c3ce,'onValueChange':_0x3dd12e})]}),_0x2bca5a('div',{'className':_0x4bb3d4(0x2d0),'children':[_0x4a7fc2(_0x4ef5c6,{'size':_0x4bb3d4(0x33d),'variant':_0x4bb3d4(0x3bb),'onClick':_0x5e30ac,'children':_0x4aef2c['t'](_0x4bb3d4(0x222))}),_0x4a7fc2(_0x4ef5c6,{'size':'small','variant':_0x4bb3d4(0x24a),'onClick':()=>{const _0x5df40d=_0x4bb3d4;_0x266bb0[_0x5df40d(0x189)](_0x1c2b74['id'],{'unitId':_0x3b2b27,'subUnitId':_0x1d0db5,'nodeId':_0x32a1d7,'foreignAttributes':{'_note':_0x14c3ce[_0x5df40d(0x282)]()?_0x14c3ce:null}}),_0x5e30ac();},'children':_0x4aef2c['t'](_0x4bb3d4(0x264))})]})]});}const jn=_0x1f10c6(0x15f),Mn=_0x1f10c6(0x17f),Nn='FOCUSING_MIND_MAP_BLANK_BOARD',Pn={'copy':_0x1e6cfc[_0x1f10c6(0x43f)],'paste':_0x1e6cfc[_0x1f10c6(0x265)],'paste-as-new':_0x1e6cfc['paste'],'add-child':_0x1e6cfc[_0x1f10c6(0x408)],'add-sibling-or-child':_0x1e6cfc[_0x1f10c6(0x2e4)],'promote':_0x1e6cfc[_0x1f10c6(0x2f7)],'toggle-collapse':_0x1e6cfc[_0x1f10c6(0x30f)],'collapse-all':_0x1e6cfc[_0x1f10c6(0x24b)],'edit-text':_0x1e6cfc[_0x1f10c6(0x2ad)],'open-description':_0x1e6cfc[_0x1f10c6(0x205)],'delete':_0x438e5f[_0x1f10c6(0x1f6)],'arrow-left':_0x438e5f['ARROW_LEFT'],'arrow-right':_0x438e5f['ARROW_RIGHT'],'arrow-up':_0x438e5f[_0x1f10c6(0x2d4)],'arrow-down':_0x438e5f[_0x1f10c6(0x32f)]},Fn={'delete':[_0x438e5f['BACKSPACE']]};function In(_0x397eae){return[Pn[_0x397eae],...Fn[_0x397eae]??[]];}let Ln=class extends _0x9852b5{constructor(_0x470a57,_0x5f065d,_0x53412e,_0x4926d2){const _0x39ae23=_0x1f10c6;super(),this[_0x39ae23(0x2dd)]=_0x470a57,this[_0x39ae23(0x210)]=_0x5f065d,this['_shortcutService']=_0x53412e,this['_undoRedoGroupService']=_0x4926d2,this['_init']();}[_0x1f10c6(0x347)](){const _0x56f0cd=_0x1f10c6;this[_0x56f0cd(0x1c8)](this[_0x56f0cd(0x210)][_0x56f0cd(0x2d2)](this[_0x56f0cd(0x460)]())),this[_0x56f0cd(0x2c1)]()[_0x56f0cd(0x35f)](_0x4f1e08=>{const _0x3ad1e0=_0x56f0cd;this[_0x3ad1e0(0x1c8)](this['_shortcutService'][_0x3ad1e0(0x2d8)](_0x4f1e08));});}[_0x1f10c6(0x460)](){const _0x2413fe=_0x1f10c6;return{'id':jn,'type':_0x266447[_0x2413fe(0x1dc)],'handler':(_0x5c4352,_0x566891,_0x496177)=>{const _0xd7d037=_0x2413fe;let _0x5d2c68=Rn(_0x5c4352,_0x496177);return _0x5d2c68?this[_0xd7d037(0x45d)](_0x5d2c68,_0x566891==null?void 0x0:_0x566891[_0xd7d037(0x1ed)]):!0x1;}};}[_0x1f10c6(0x2c1)](){const _0x18e34e=_0x1f10c6;let _0x8f0636=(_0xad38c5,_0x25c024)=>({'id':jn,'binding':_0xad38c5,'priority':0xa0,'preconditions':_0x29fe80=>_0x4ef334(_0x29fe80)&&!!_0x29fe80[_0x18e34e(0x3f5)](_0x18e34e(0x17f)),'staticParameters':{'action':_0x25c024}}),_0x3bd7ba=_0x1e9105=>In(_0x1e9105)[_0x18e34e(0x28f)](_0x2d063a=>_0x8f0636(_0x2d063a,_0x1e9105));return[..._0x3bd7ba(_0x18e34e(0x43f)),{'id':jn,'binding':Pn[_0x18e34e(0x265)],'priority':0xa0,'preconditions':_0x4db0a9=>_0x4ef334(_0x4db0a9)&&!!this[_0x18e34e(0x2dd)]['getPayload']()&&!!_0x4db0a9['getContextValue']('FOCUSING_MIND_MAP_NODE'),'staticParameters':{'action':_0x18e34e(0x265)}},{'id':jn,'binding':Pn[_0x18e34e(0x1be)],'priority':0x96,'preconditions':_0x257621=>_0x4ef334(_0x257621)&&!!this[_0x18e34e(0x2dd)][_0x18e34e(0x377)]()&&!!_0x257621['getContextValue']('FOCUSING_MIND_MAP_BLANK_BOARD'),'staticParameters':{'action':_0x18e34e(0x1be)}},..._0x3bd7ba('add-child'),..._0x3bd7ba(_0x18e34e(0x450)),..._0x3bd7ba(_0x18e34e(0x39c)),..._0x3bd7ba('toggle-collapse'),..._0x3bd7ba(_0x18e34e(0x192)),..._0x3bd7ba(_0x18e34e(0x433)),..._0x3bd7ba(_0x18e34e(0x26f)),..._0x3bd7ba(_0x18e34e(0x3fe)),..._0x3bd7ba(_0x18e34e(0x2ce)),..._0x3bd7ba(_0x18e34e(0x13b)),..._0x3bd7ba(_0x18e34e(0x29d)),..._0x3bd7ba('arrow-down')];}[_0x1f10c6(0x45d)](_0x15e5a6,_0x2a8031){const _0x279973=_0x1f10c6;return _0x15e5a6['uiStateService'][_0x279973(0x193)]()[_0x279973(0x2d5)]===_0x279973(0x439)&&_0x2a8031!==_0x279973(0x43f)?!0x1:_0x2a8031===_0x279973(0x43f)?this['_copySelectedNode'](_0x15e5a6):_0x2a8031==='paste'?this[_0x279973(0x2a5)](_0x15e5a6):_0x2a8031===_0x279973(0x1be)?this[_0x279973(0x330)](_0x15e5a6):_0x2a8031==='add-child'?this[_0x279973(0x174)](_0x15e5a6):_0x2a8031===_0x279973(0x450)?this['_addSiblingOrChild'](_0x15e5a6):_0x2a8031===_0x279973(0x39c)?this['_executeNodeOperation'](_0x15e5a6,_0x3a6c62['id']):_0x2a8031==='toggle-collapse'?this[_0x279973(0x229)](_0x15e5a6,_0x86163e['id']):_0x2a8031==='collapse-all'?this[_0x279973(0x303)](_0x15e5a6):_0x2a8031===_0x279973(0x433)?this['_openSelectedTextEditing'](_0x15e5a6):_0x2a8031===_0x279973(0x26f)?this[_0x279973(0x1bb)](_0x15e5a6):_0x2a8031===_0x279973(0x3fe)?this[_0x279973(0x2e2)](_0x15e5a6):_0x2a8031&&zn(_0x2a8031)?this[_0x279973(0x42d)](_0x15e5a6,_0x2a8031):!0x1;}['_copySelectedNode'](_0x5edd34){const _0x5499f3=_0x1f10c6;let _0x3a54fd=this[_0x5499f3(0x1fc)](_0x5edd34);return _0x3a54fd?(_0x5edd34[_0x5499f3(0x34a)][_0x5499f3(0x189)](_0x324033['id'],{'unitId':_0x3a54fd[_0x5499f3(0x147)],'subUnitId':_0x3a54fd[_0x5499f3(0x3cd)],'nodeId':_0x3a54fd[_0x5499f3(0x227)]}),!0x0):!0x1;}[_0x1f10c6(0x2a5)](_0x4b22c1){const _0x4e77c9=_0x1f10c6;let _0x57997b=this[_0x4e77c9(0x1fc)](_0x4b22c1);return!_0x57997b||!_0x4b22c1['clipboardService'][_0x4e77c9(0x377)]()?!0x1:(this[_0x4e77c9(0x394)](_0x4b22c1,_0x8b217d['id'],{'unitId':_0x57997b[_0x4e77c9(0x147)],'subUnitId':_0x57997b['subUnitId'],'targetNodeId':_0x57997b['nodeId']},_0x57997b['scopeId']),!0x0);}[_0x1f10c6(0x330)](_0x1af563){const _0x4b45ea=_0x1f10c6;let _0x344e5f=this['_getBlankBoardContext'](_0x1af563);if(!_0x344e5f||!_0x1af563[_0x4b45ea(0x325)][_0x4b45ea(0x377)]())return!0x1;let _0x567464=_0x1af563[_0x4b45ea(0x405)][_0x4b45ea(0x193)](),_0x46da4f=Number['isFinite'](_0x567464[_0x4b45ea(0x368)])&&_0x567464[_0x4b45ea(0x368)]>0x0?_0x567464[_0x4b45ea(0x368)]:0x1,_0x490f08=Math[_0x4b45ea(0x272)]((0x40-_0x567464['viewportPanOffset']['x'])/_0x46da4f),_0x20edc3=Math[_0x4b45ea(0x272)]((0x40-_0x567464[_0x4b45ea(0x360)]['y'])/_0x46da4f);return _0x1af563[_0x4b45ea(0x34a)][_0x4b45ea(0x189)](_0x5b8033['id'],{'unitId':_0x344e5f['unitId'],'subUnitId':_0x344e5f[_0x4b45ea(0x3cd)],'left':_0x490f08,'top':_0x20edc3}),!0x0;}[_0x1f10c6(0x174)](_0x1583f8){const _0x27b973=_0x1f10c6;let _0x363dbc=this[_0x27b973(0x1fc)](_0x1583f8);if(!_0x363dbc)return!0x1;let _0x1eb24c=_0x4e853d(0x6);return this[_0x27b973(0x2ba)](_0x1583f8,_0x47eba7['id'],{'unitId':_0x363dbc[_0x27b973(0x147)],'subUnitId':_0x363dbc[_0x27b973(0x3cd)],'parentNodeId':_0x363dbc[_0x27b973(0x227)],'nodeId':_0x1eb24c,'connectorId':_0x4e853d(0x6),'text':_0x1583f8['localeService']['t']('boards-mind-ui.panel.addText')},_0x363dbc['scopeId'],_0x1eb24c),!0x0;}[_0x1f10c6(0x3b6)](_0x384426){const _0x207d49=_0x1f10c6;let _0x4ba355=this[_0x207d49(0x1fc)](_0x384426);if(!_0x4ba355)return!0x1;let _0x156308=_0x4e853d(0x6);return this['_executeCreateAndEdit'](_0x384426,_0x4ba355[_0x207d49(0x3bd)]?_0x47eba7['id']:_0x5d96a8['id'],{'unitId':_0x4ba355[_0x207d49(0x147)],'subUnitId':_0x4ba355[_0x207d49(0x3cd)],..._0x4ba355[_0x207d49(0x3bd)]?{'parentNodeId':_0x4ba355[_0x207d49(0x227)],'nodeId':_0x156308}:{'nodeId':_0x4ba355[_0x207d49(0x227)],'siblingNodeId':_0x156308},'connectorId':_0x4e853d(0x6),'text':_0x384426[_0x207d49(0x2bf)]['t'](_0x207d49(0x150))},_0x4ba355[_0x207d49(0x3d1)],_0x156308),!0x0;}[_0x1f10c6(0x229)](_0x4a5ee9,_0x54d1d2){const _0x3dde06=_0x1f10c6;let _0x40fe51=this[_0x3dde06(0x1fc)](_0x4a5ee9);return _0x40fe51?(this[_0x3dde06(0x394)](_0x4a5ee9,_0x54d1d2,{'unitId':_0x40fe51[_0x3dde06(0x147)],'subUnitId':_0x40fe51['subUnitId'],'nodeId':_0x40fe51[_0x3dde06(0x227)]},_0x40fe51[_0x3dde06(0x3d1)]),!0x0):!0x1;}['_deleteSelectedNode'](_0x4099a1){const _0x3511b5=_0x1f10c6;let _0x4a581c=this['_getSelectedMindMapContext'](_0x4099a1);if(!_0x4a581c)return!0x1;let _0x5b1471=_0x4099a1[_0x3511b5(0x34a)]['syncExecuteCommand'](_0x3862d0['id'],{'unitId':_0x4a581c['unitId'],'subUnitId':_0x4a581c[_0x3511b5(0x3cd)],'nodeId':_0x4a581c[_0x3511b5(0x227)]});return _0x5b1471&&_0x4099a1[_0x3511b5(0x168)]['clearSelection'](),_0x5b1471;}[_0x1f10c6(0x303)](_0xd471b3){const _0x3b08e7=_0x1f10c6;let _0x49d71e=this['_getSelectedMindMapContext'](_0xd471b3);if(!_0x49d71e)return!0x1;let _0x530ae0=_0xd471b3[_0x3b08e7(0x1b5)][_0x3b08e7(0x258)](_0x49d71e[_0x3b08e7(0x147)],_0x49d71e[_0x3b08e7(0x3cd)]),_0x49f6b8=Object[_0x3b08e7(0x361)](_0x530ae0)[_0x3b08e7(0x28f)](_0x1c1cda=>{const _0x40cab5=_0x3b08e7;let _0x3d7a9b=_0x51f94c(_0x1c1cda[_0x40cab5(0x333)]);return(_0x3d7a9b==null?void 0x0:_0x3d7a9b['structureScopeId'])===_0x49d71e[_0x40cab5(0x3d1)]&&this['_getMindMapChildren'](_0x530ae0,_0x49d71e['scopeId'],_0x1c1cda[_0x40cab5(0x142)])[_0x40cab5(0x1f3)]>0x0?{'nodeId':_0x1c1cda[_0x40cab5(0x142)],'collapsed':_0x3d7a9b['collapsed']}:null;})['filter'](_0x1f412d=>!!_0x1f412d);if(_0x49f6b8[_0x3b08e7(0x1f3)]===0x0)return!0x1;let _0x5976e2=_0x49f6b8['some'](_0x3787d9=>!_0x3787d9[_0x3b08e7(0x38a)]),_0x116619=_0xd471b3['commandService'],_0x53368=this[_0x3b08e7(0x3d4)][_0x3b08e7(0x1f2)](_0x49d71e['unitId']),_0x12a32a=_0x49f6b8[_0x3b08e7(0x28f)](_0x29e5e7=>_0x53368(()=>_0x116619[_0x3b08e7(0x189)](_0x86163e['id'],{'unitId':_0x49d71e[_0x3b08e7(0x147)],'subUnitId':_0x49d71e[_0x3b08e7(0x3cd)],'nodeId':_0x29e5e7[_0x3b08e7(0x227)],'collapsed':_0x5976e2})));return Promise[_0x3b08e7(0x290)](_0x12a32a['map'](_0x3760ad=>Promise[_0x3b08e7(0x434)](_0x3760ad)))[_0x3b08e7(0x161)](_0x497acb=>{const _0x33005a=_0x3b08e7;_0x497acb[_0x33005a(0x442)](Boolean)&&_0x53368(()=>_0x116619[_0x33005a(0x189)](_0x4a8bdc['id'],{'unitId':_0x49d71e[_0x33005a(0x147)],'subUnitId':_0x49d71e[_0x33005a(0x3cd)],'scopeId':_0x49d71e[_0x33005a(0x3d1)]}));}),!0x0;}[_0x1f10c6(0x397)](_0x4fbbd8){const _0x2f52bd=_0x1f10c6;let _0xb46cce=this[_0x2f52bd(0x1fc)](_0x4fbbd8);if(!_0xb46cce)return!0x1;_0x4fbbd8[_0x2f52bd(0x168)][_0x2f52bd(0x29f)]({'unitId':_0xb46cce['unitId'],'subUnitId':_0xb46cce[_0x2f52bd(0x3cd)]},[_0xb46cce[_0x2f52bd(0x227)]],_0xb46cce[_0x2f52bd(0x227)]);let _0x585a6e=_0x4fbbd8[_0x2f52bd(0x155)];return _0x585a6e[_0x2f52bd(0x200)](),_0x585a6e['setEditing']({'unitId':_0xb46cce[_0x2f52bd(0x147)],'subUnitId':_0xb46cce[_0x2f52bd(0x3cd)],'shapeId':_0xb46cce[_0x2f52bd(0x227)],'shapeKey':_0x10c90a(_0xb46cce['unitId'],_0xb46cce[_0x2f52bd(0x227)]),'visible':!0x0}),!0x0;}[_0x1f10c6(0x1bb)](_0x459673){const _0x5b7991=_0x1f10c6;let _0x30bf12=this[_0x5b7991(0x1fc)](_0x459673);return _0x30bf12?(_0x459673[_0x5b7991(0x320)]['open']({'id':kn,'title':{'title':_0x5b7991(0x17d)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':On,'unitId':_0x30bf12[_0x5b7991(0x147)],'subUnitId':_0x30bf12[_0x5b7991(0x3cd)],'nodeId':_0x30bf12[_0x5b7991(0x227)],'initialDescription':_0x30bf12[_0x5b7991(0x455)]}}),!0x0):!0x1;}[_0x1f10c6(0x42d)](_0x3fc2b8,_0x389790){const _0x164add=_0x1f10c6;let _0x2703e8=this['_getSelectedMindMapContext'](_0x3fc2b8);if(!_0x2703e8)return!0x1;let _0x2ecbb7=_0x3fc2b8[_0x164add(0x1b5)][_0x164add(0x258)](_0x2703e8[_0x164add(0x147)],_0x2703e8[_0x164add(0x3cd)]),_0x3aeba8=_0x2ecbb7[_0x2703e8['nodeId']],_0x32eda0=_0x51f94c(_0x3aeba8==null?void 0x0:_0x3aeba8[_0x164add(0x333)]);if(!_0x3aeba8||!_0x32eda0)return!0x1;let _0xf290c={'arrow-left':'ArrowLeft','arrow-right':_0x164add(0x315),'arrow-up':_0x164add(0x14d),'arrow-down':'ArrowDown'}[_0x389790];if(!_0xf290c)return!0x1;let _0x3023a1=this[_0x164add(0x1e3)](_0x2ecbb7,_0x2703e8[_0x164add(0x227)],_0x32eda0,_0xf290c);return _0x3023a1?(_0x3fc2b8[_0x164add(0x168)][_0x164add(0x29f)]({'unitId':_0x2703e8[_0x164add(0x147)],'subUnitId':_0x2703e8[_0x164add(0x3cd)]},[_0x3023a1],_0x3023a1),!0x0):!0x1;}['_resolveArrowNavigationTarget'](_0x4c9172,_0x2f6eb0,_0x3f8396,_0x3a1b52){const _0x3c6918=_0x1f10c6;let _0x3e9390=this[_0x3c6918(0x2f9)](_0x4c9172,_0x3f8396['structureScopeId'],_0x2f6eb0);if(_0x3f8396['parentNodeId']===null){if(_0x3a1b52===_0x3c6918(0x364)){var _0x519407;return((_0x519407=_0x3e9390[_0x3c6918(0x339)](_0x5179a9=>{const _0x593760=_0x3c6918;var _0x5be173;return((_0x5be173=_0x51f94c(_0x5179a9[_0x593760(0x333)]))==null?void 0x0:_0x5be173[_0x593760(0x2a3)])==='left';}))==null?void 0x0:_0x519407[_0x3c6918(0x142)])??null;}if(_0x3a1b52===_0x3c6918(0x315)){var _0x5a263b;return((_0x5a263b=_0x3e9390[_0x3c6918(0x339)](_0x188086=>{const _0x18b346=_0x3c6918;var _0x9abeaf;return(((_0x9abeaf=_0x51f94c(_0x188086[_0x18b346(0x333)]))==null?void 0x0:_0x9abeaf[_0x18b346(0x2a3)])??'right')===_0x18b346(0x171);}))==null?void 0x0:_0x5a263b['elementId'])??null;}return null;}let _0x3b19c5=_0x3f8396['side']??_0x3c6918(0x171),_0x2ea797=_0x3b19c5===_0x3c6918(0x171)?_0x3c6918(0x364):_0x3c6918(0x315),_0x3b7ebe=_0x3b19c5===_0x3c6918(0x171)?'ArrowRight':_0x3c6918(0x364);if(_0x3a1b52===_0x2ea797)return _0x3f8396[_0x3c6918(0x2d9)];if(_0x3a1b52===_0x3b7ebe){var _0x38d5dc;return((_0x38d5dc=_0x3e9390[0x0])==null?void 0x0:_0x38d5dc[_0x3c6918(0x142)])??null;}if(_0x3a1b52==='ArrowUp'||_0x3a1b52===_0x3c6918(0x356)){let _0x146206=this['_getMindMapChildren'](_0x4c9172,_0x3f8396[_0x3c6918(0x3f1)],_0x3f8396[_0x3c6918(0x2d9)]),_0x48da25=_0x146206[_0x3c6918(0x2c5)](_0x3dfbce=>_0x3dfbce[_0x3c6918(0x142)]===_0x2f6eb0),_0x55cbc5=_0x3a1b52==='ArrowUp'?_0x146206[_0x48da25-0x1]:_0x146206[_0x48da25+0x1];return(_0x55cbc5==null?void 0x0:_0x55cbc5['elementId'])??null;}return null;}[_0x1f10c6(0x2f9)](_0x1871f2,_0x36b56d,_0x55e1a8){const _0x2a8393=_0x1f10c6;return Object[_0x2a8393(0x361)](_0x1871f2)[_0x2a8393(0x3f7)](_0x15c2d8=>{const _0x5397fb=_0x2a8393;let _0x8009e4=_0x51f94c(_0x15c2d8[_0x5397fb(0x333)]);return(_0x8009e4==null?void 0x0:_0x8009e4[_0x5397fb(0x3f1)])===_0x36b56d&&_0x8009e4[_0x5397fb(0x2d9)]===_0x55e1a8&&_0x15c2d8[_0x5397fb(0x333)]['visible']!==!0x1;})[_0x2a8393(0x194)]((_0x59d36e,_0x1de4cd)=>{const _0x516511=_0x2a8393;let _0x454d88=_0x51f94c(_0x59d36e[_0x516511(0x333)]),_0x420dd2=_0x51f94c(_0x1de4cd[_0x516511(0x333)]);return _0x3ac29b(_0x454d88==null?void 0x0:_0x454d88[_0x516511(0x312)],_0x420dd2==null?void 0x0:_0x420dd2['orderKey'])||_0x59d36e[_0x516511(0x142)]['localeCompare'](_0x1de4cd[_0x516511(0x142)]);});}[_0x1f10c6(0x1fc)](_0x526a90){const _0x5f4ea8=_0x1f10c6;var _0x3c55e6;let _0x37a955=_0x526a90[_0x5f4ea8(0x168)][_0x5f4ea8(0x226)](),_0x4cda86=_0x37a955[_0x5f4ea8(0x1d7)]??_0x37a955['selectedIds'][0x0];if(!_0x4cda86||_0x37a955[_0x5f4ea8(0x235)][_0x5f4ea8(0x1f3)]!==0x1||_0x37a955[_0x5f4ea8(0x338)]||_0x37a955[_0x5f4ea8(0x426)])return null;let _0x18e731=_0x37a955[_0x5f4ea8(0x27a)]??{'unitId':_0x526a90[_0x5f4ea8(0x224)][_0x5f4ea8(0x147)],'subUnitId':_0x526a90['renderContext']['unit'][_0x5f4ea8(0x3cc)]()},_0x50b7e6=_0x526a90[_0x5f4ea8(0x1b5)][_0x5f4ea8(0x258)](_0x18e731['unitId'],_0x18e731[_0x5f4ea8(0x3cd)])[_0x4cda86],_0x323564=_0x51f94c(_0x50b7e6==null?void 0x0:_0x50b7e6[_0x5f4ea8(0x333)]);return!_0x50b7e6||!_0x323564?null:{'unitId':_0x18e731['unitId'],'subUnitId':_0x18e731[_0x5f4ea8(0x3cd)],'nodeId':_0x4cda86,'scopeId':_0x323564[_0x5f4ea8(0x3f1)],'isRoot':_0x323564[_0x5f4ea8(0x2d9)]===null,'description':((_0x3c55e6=_0x323564['foreignAttributes'])==null?void 0x0:_0x3c55e6[_0x5f4ea8(0x3b3)])??''};}[_0x1f10c6(0x399)](_0xb11adb){const _0x21d501=_0x1f10c6;var _0x57a61b,_0x19bb19;let _0x29b12a=_0xb11adb[_0x21d501(0x168)]['getSnapshot']();return _0x29b12a[_0x21d501(0x338)]||_0x29b12a[_0x21d501(0x426)]||_0x29b12a['selectedIds']['length']>0x0||_0x29b12a['focusedId']?null:{'unitId':((_0x57a61b=_0x29b12a[_0x21d501(0x27a)])==null?void 0x0:_0x57a61b['unitId'])??_0xb11adb[_0x21d501(0x224)][_0x21d501(0x147)],'subUnitId':((_0x19bb19=_0x29b12a[_0x21d501(0x27a)])==null?void 0x0:_0x19bb19[_0x21d501(0x3cd)])??_0xb11adb['renderContext'][_0x21d501(0x223)][_0x21d501(0x3cc)]()};}[_0x1f10c6(0x394)](_0x159e49,_0x4f251b,_0x1042ba,_0x256e8a){const _0xdcd2fd=_0x1f10c6;let _0x2501e9=_0x159e49[_0xdcd2fd(0x34a)],_0x2e4020=this[_0xdcd2fd(0x3d4)][_0xdcd2fd(0x1f2)](_0x1042ba[_0xdcd2fd(0x147)]),_0x47c142=_0x2e4020(()=>_0x2501e9[_0xdcd2fd(0x189)](_0x4f251b,_0x1042ba));Promise['resolve'](_0x47c142)[_0xdcd2fd(0x161)](_0x2a1152=>{const _0x24b17c=_0xdcd2fd;_0x2a1152&&_0x2e4020(()=>_0x2501e9[_0x24b17c(0x189)](_0x4a8bdc['id'],{'unitId':_0x1042ba['unitId'],'subUnitId':_0x1042ba[_0x24b17c(0x3cd)],'scopeId':_0x256e8a}));});}[_0x1f10c6(0x2ba)](_0x33c6df,_0x47fb9b,_0x4616ed,_0x32e6ff,_0x5213f0){const _0x3c58b6=_0x1f10c6;let _0x21340d={'unitId':_0x4616ed[_0x3c58b6(0x147)],'subUnitId':_0x4616ed[_0x3c58b6(0x3cd)]},_0x445525=_0x33c6df[_0x3c58b6(0x34a)],_0x314eca=this[_0x3c58b6(0x3d4)][_0x3c58b6(0x1f2)](_0x4616ed[_0x3c58b6(0x147)]),_0x211e9b=_0x314eca(()=>_0x445525[_0x3c58b6(0x189)](_0x47fb9b,_0x4616ed));Promise[_0x3c58b6(0x434)](_0x211e9b)[_0x3c58b6(0x161)](_0x3a5445=>{const _0xa8fdb6=_0x3c58b6;if(!_0x3a5445)return;_0x314eca(()=>_0x445525['executeCommand'](_0x4a8bdc['id'],{..._0x21340d,'scopeId':_0x32e6ff})),_0x33c6df[_0xa8fdb6(0x168)][_0xa8fdb6(0x29f)](_0x21340d,[_0x5213f0],_0x5213f0);let _0x1031de=_0x33c6df['textEditingService'];_0x1031de[_0xa8fdb6(0x200)](),_0x1031de[_0xa8fdb6(0x354)]({..._0x21340d,'shapeId':_0x5213f0,'shapeKey':_0x10c90a(_0x21340d[_0xa8fdb6(0x147)],_0x5213f0),'visible':!0x0});});}};Ln=J([q(0x0,_0x7e4b74),q(0x1,_0x56aea3),q(0x2,_0x1247c4),q(0x3,_0x2e0f98(_0x56a505))],Ln);function Rn(_0xdb1f5f,_0x19503f){const _0x2d8b0a=_0x1f10c6;var _0x520141,_0x520a68;let _0x5d9ced=typeof(_0x19503f==null?void 0x0:_0x19503f[_0x2d8b0a(0x147)])==_0x2d8b0a(0x185)?_0x19503f[_0x2d8b0a(0x147)]:(_0x520141=_0xdb1f5f[_0x2d8b0a(0x1a4)](_0x1d8bf1)['getCurrentUnitOfType'](_0x25af0d['UNIVER_BOARD']))==null?void 0x0:_0x520141[_0x2d8b0a(0x163)]();return _0x5d9ced?((_0x520a68=_0xdb1f5f[_0x2d8b0a(0x1a4)](_0x2411d0)[_0x2d8b0a(0x3de)](_0x5d9ced))==null?void 0x0:_0x520a68['with'](Dn))??null:null;}function zn(_0x414665){const _0x4aff7c=_0x1f10c6;return _0x414665===_0x4aff7c(0x2ce)||_0x414665===_0x4aff7c(0x13b)||_0x414665===_0x4aff7c(0x29d)||_0x414665===_0x4aff7c(0x340);}const Bn={'min':0x1,'max':0x5,'defaultValue':0x3},Vn={'min':0x0,'max':0x64,'defaultValue':0x64},Hn=[{'kind':_0x1f10c6(0x326),'titleKey':_0x1f10c6(0x445),'panel':_0x1f10c6(0x2b3)},{'kind':_0x1f10c6(0x299),'titleKey':_0x1f10c6(0x276)},{'kind':_0x1f10c6(0x318),'titleKey':_0x1f10c6(0x3b0)},{'kind':'dropdown','titleKey':_0x1f10c6(0x3f8),'panel':'more','dividerBefore':!0x0}],Un={'addSibling':_0x1f10c6(0x450),'addChild':_0x1f10c6(0x198),'copy':_0x1f10c6(0x43f),'paste':_0x1f10c6(0x265),'delete':'delete'},Wn=[{'key':_0x1f10c6(0x1a3),'title':_0x1f10c6(0x40c),'items':[{'value':'mindmap-horizontal','icon':'mindmap-horizontal','labelKey':'boards-mind-ui.panel.structureKind.mindmapHorizontal'},{'value':'mindmap-vertical','icon':'mindmap-vertical','labelKey':_0x1f10c6(0x41c)}]},{'key':_0x1f10c6(0x1c7),'title':'Tree\x20diagram','items':[{'value':_0x1f10c6(0x423),'icon':_0x1f10c6(0x423),'labelKey':_0x1f10c6(0x3dc)},{'value':_0x1f10c6(0x3f2),'icon':_0x1f10c6(0x3f2),'labelKey':_0x1f10c6(0x1db)},{'value':_0x1f10c6(0x2d6),'icon':_0x1f10c6(0x2d6),'labelKey':_0x1f10c6(0x28d)}]},{'key':_0x1f10c6(0x1c1),'title':_0x1f10c6(0x438),'items':[{'value':_0x1f10c6(0x213),'icon':_0x1f10c6(0x213),'labelKey':'boards-mind-ui.panel.structureKind.timelineHorizontal'},{'value':'timeline-vertical','icon':'timeline-vertical','labelKey':'boards-mind-ui.panel.structureKind.timelineVertical'}]}],Gn={'key':_0x1f10c6(0x1a6),'title':_0x1f10c6(0x199),'items':[{'value':_0x1f10c6(0x411),'icon':'branch-curve','labelKey':_0x1f10c6(0x2b2)},{'value':'rounded-orthogonal','icon':_0x1f10c6(0x23a),'labelKey':'boards-mind-ui.panel.branchLineType.roundedOrthogonal'},{'value':'orthogonal','icon':_0x1f10c6(0x23d),'labelKey':_0x1f10c6(0x32a)}]},Kn=_0x1f10c6(0x37c);function qn(_0x1ff6ff,_0x2d82e5){const _0x1af417=_0x1f10c6;_0x1ff6ff[_0x1af417(0x189)](jn,{'action':_0x2d82e5});}const Jn={'line':_0x44b731,'more':_0x5169d6};function Yn(_0x44e0e7){const _0x4558e1=_0x1f10c6;_0x44e0e7[_0x4558e1(0x435)](),_0x44e0e7[_0x4558e1(0x188)]();}function Xn(_0x5a75c6,_0x3dd829=_0x1f10c6(0x36f),_0x43b725){return _0x4a7fc2(_0x1816c6,{'children':_0x4a7fc2(_0x5a75c6,{'className':_0x3dd829,'extend':_0x43b725})});}function Zn(_0x2b1eca){const _0x3c81ce=_0x1f10c6;var _0x47f1b8,_0x576344;let _0x35b3ca=(_0x2b1eca==null?void 0x0:_0x2b1eca[_0x3c81ce(0x3f6)])??{},_0x2fbe18=_0x35b3ca[_0x3c81ce(0x243)]&&typeof _0x35b3ca['dataModel']==_0x3c81ce(0x25a)?_0x35b3ca[_0x3c81ce(0x243)]:{},_0x2ae4b9=(_0x47f1b8=_0x2fbe18[_0x3c81ce(0x385)])==null||(_0x47f1b8=_0x47f1b8[_0x3c81ce(0x2a0)])==null?void 0x0:_0x47f1b8['textStyle'];return{'color':typeof _0x35b3ca[_0x3c81ce(0x143)]==_0x3c81ce(0x185)?_0x35b3ca[_0x3c81ce(0x143)]:(_0x2ae4b9==null||(_0x576344=_0x2ae4b9['cl'])==null?void 0x0:_0x576344[_0x3c81ce(0x44a)])??_0x5402c0,'fontFamily':typeof _0x35b3ca[_0x3c81ce(0x2ed)]==_0x3c81ce(0x185)?_0x35b3ca['fontFamily']:(_0x2ae4b9==null?void 0x0:_0x2ae4b9['ff'])??_0xbb156e['ff'],'fontSize':typeof _0x35b3ca['fontSize']==_0x3c81ce(0x419)?_0x35b3ca[_0x3c81ce(0x1b9)]:typeof(_0x2ae4b9==null?void 0x0:_0x2ae4b9['fs'])==_0x3c81ce(0x419)?_0x2ae4b9['fs']:_0xbb156e['fs'],'horizontalAlign':_0x35b3ca[_0x3c81ce(0x378)]??_0x2fbe18['ha']??_0xbace98[_0x3c81ce(0x314)],'textFill':_0x35b3ca[_0x3c81ce(0x2ec)]&&typeof _0x35b3ca[_0x3c81ce(0x2ec)]==_0x3c81ce(0x25a)?_0x35b3ca[_0x3c81ce(0x2ec)]:_0x2ae4b9==null?void 0x0:_0x2ae4b9[_0x3c81ce(0x2ec)],'verticalAlign':_0x35b3ca[_0x3c81ce(0x19d)]??_0x2fbe18['va']??_0x3de0d7[_0x3c81ce(0x3db)]};}function _0x1ae0(){const _0x34864c=['horizontalAlign','_localeService','getElementDataForUnit','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-p-4','board.mind-map.floating-toolbar','mindmap-vertical','parentBounds','20lYOWNz','univer-min-h-12\x20univer-text-base','structureKind','getTemplate','activated$','_boardElementService','doc','add-child-right','ghostFillColor','univer-h-auto\x20univer-min-h-12\x20univer-whitespace-normal\x20univer-px-2\x20univer-py-2','opacity','collapsed','_object','boards-mind-ui.toolbar.action.delete','23296PGFIXp','save','onPointerDown$','_resolveHostSize','univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent','bottom','targetNodeId','_executeAndLayout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','key','_openSelectedTextEditing','@univerjs-pro/boards-mind-ui','_getBlankBoardContext','M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9',',\x20minmax(0,\x201fr))','promote','children','clipboard','boards-mind-ui.panel.structureKind.mindmapHorizontal','scaleX','onPointerCancel$','path','#d8dce3','_activeScopeId','has','isInteractionSurfaceActive','titleKey','_applyPointerChildDrag','getTouchHitDistance','_syncControls','join','top-center','notify','_getPointFromEvent','univer-text-xs','boards-mind-ui.toolbar.primary.typography','repeat(','primaryColor','_note','skipNextObservers','boards-mind-ui.descriptionPlaceholder','_addSiblingOrChild','max','getHitControl','_objectPointerDisposables','mind-map-layout-dropdown','default','pointerStartY','isRoot','_createTopologyBoundsByElementId','siblingDotRadius','dispose','_clearPopup','_resolvePreviewSourceBounds','board-mind-map-drag-preview-object','meta','updateState','clear','defineProperty','subscribe','preview','_getBoardsUIConfig','orthogonal','getActivePageId','subUnitId','_attachObjectPointerListeners','univer-flex\x20univer-h-12\x20univer-min-w-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-900\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-0','M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013','scopeId','dashType','rootTextColor','_undoRedoGroupService','_syncLayoutPreview','_disposed','shapeId','toPrimitive','_handlePointerMove','lineJoin','MIDDLE','boards-mind-ui.panel.structureKind.treeRight','_componentManager','getRenderUnitById','_syncChildDragPreview','ENTER','_renderContext','pointercancel','setLineDash','structure','univer-flex\x20univer-flex-col\x20univer-gap-2','none','boards-mind-ui.alignTop','_showPopupForSelection','hostSize','M56\x2039h11M13\x2050h11','rootRadius','clientY','_syncPointerChildDragPreview','_popupSelectionKey','navigator','addEventListener','structureScopeId','tree-left','TRUE','subscribeEvent','getContextValue','shapeText','filter','boards-mind-ui.toolbar.primary.more','slice','6477207bhgZOW','activeTool','boards-mind-ui.panel.rename','_activeNodeId','delete','offsetX','_resolveDirtyBounds','panel','boards-mind-ui.toolbar.panel.typography','timelineAxisGap','_isPointInBounds','uiStateService','_getDependencies','_resolveSelectedMindMapEntryFromState','addChildNode','newParentNodeId','dataTransfer','univer-grid\x20univer-grid-cols-4\x20univer-gap-2','Mind\x20map','add-child-top','_template','exec','canvas','curve','univer-mb-0','FOCUSING_MIND_MAP_TEXT_EDITOR','updateElement','interactionSurfaceActive$','addObject','show','_initEditingRestore','number','labelKey','localeCompare','boards-mind-ui.panel.structureKind.mindmapVertical','top','items','_clearPopupIfSelectionChanged','kind','univer-border-b\x20univer-border-gray-200\x20univer-p-4','globalAlpha','tree-right','_getElementKey','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','isTransforming','objects','boards-mind-ui.panel.tab.structure','elementRemove$','_resolveCreateChildSide','branchLineType','_getZoomRatio','_navigateByTopology','_getPointerScreenPoint','_registerComponents','foreignAttributes','px\x20','_resolveRootChildControlSides','edit-text','resolve','stopPropagation','textStyle','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-4','Timeline','viewing','currentColor','sourceDashScreen','connector','circle','removeObjects','copy','solid','6\x207','some','_sidebarDisposable','boards-mind-ui.panel.structureKind.timelineHorizontal','boards-mind-ui.toolbar.primary.line','univer-space-y-2','boards-mind-ui.panel.layout.right','surfaceColor','underline','rgb','font','M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','univer-min-h-12\x20univer-w-full','setContextValue','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-gap-2','add-sibling-or-child','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','_uiStateService','setActiveTool','point','description','_insertMindMap','setTemplate','_syncPreviewObject','makeDirtyNoDebounce','stroke','changeEnd$','_getPointerLiveBounds','handleShortcut','_previewRefreshService','textPaddingScreen','_createKeyboardShortcutOperation','_intrinsicSizeService','SquareDot','arrow-right','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','decorate','univer-h-12\x20univer-w-32\x20univer-text-base','_childDragSelectionHidden','hide','994314FSiXkd','elementId','color','_childDragActivated','glyphSize','flatMap','unitId','_removePreviewObject','_ensurePreviewObject','boards-mind-ui.alignJustify','evented','reparent','ArrowUp','boards-mind-ui.alignRight','siblingGlyphSize','boards-mind-ui.panel.addText','both','tools','unshift','univer-flex-wrap','textEditingService','scene','setPendingInsert','_updateHostSize','boards-mind-ui.panel.spacing.branchGap','M20\x2025h13M20\x2035h13M20\x2045h13','Dash','rgba(','_isPopupSelectionStillActive','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','board.operation.mind-map.keyboard-shortcut','M31\x2013c9\x208\x209\x2022\x2018\x2030M49\x2013c-9\x208-9\x2022-18\x2030M31\x2013c-7\x204-9\x209-9\x2015s2\x2011\x209\x2015M49\x2013c7\x204\x209\x209\x209\x2015s-2\x2011-9\x2015','then','elementUpdate$','getUnitId','_dragStart','getTransformerByCreate','quadraticCurveTo','min','elementStateService','3648534rwtGSc','strokeStyle','changeStart$','boards-mind-ui.alignBottom','boards-mind-ui.panel.importOPML','textColor','rootWidth','_popupDisposable','right','univer-flex\x20univer-flex-col\x20univer-gap-1','mind-map-stroke','_addChild','title','_capturePointerChildDragStart','rootFontSize','_countDescendants','univer-min-h-12\x20univer-px-3','_executeRootAnchoredLayout','5109713pEXreH','_removeObject','boards-mind-ui.description','board-mind-map-pending-insert-object','FOCUSING_MIND_MAP_NODE','isFinite','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','setHoveredControl','includes','transform','string','_normalizeChildren','open','preventDefault','executeCommand','beginPath','syncExecuteCommand','dragObjectAlpha','rootFontWeight','_cloneBlueprint','render','_resolveRootTopLeft','editingParams$','collapse-all','getState','sort','_updateShapeText','board.operation.mind-map.open-panel','parseInt','add-child','Branch','univer-flex\x20univer-gap-2','elementData','_shortcutService','verticalAlign','_resolveControlBounds','getObjectIncludeInGroup','_buildPopupSelectionKey','_createQuoteShortcut','_findChildNodeAtPoint','mind-map','get','_dragPreviewObject','branch','transientControl','univer-space-y-3','_sidebarService','_getBoardPointFromEvent','allowRootReparent','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','univer-h-32\x20univer-resize-none\x20univer-text-sm','strikethrough','_seedExistingNodeSizes','child','abs','board.mind-map.panel','boundsByElementId','boards-mind-ui.panel.layout.both','elementService','transientPreviewForeground','hideRootControls','univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','fontSize','_consumePointerEvent','_openDescriptionDialog','lineCap','controls','paste-as-new','zIndex','from','timeline','TOP','Shape','_hideSelectionForChildDrag','shapeData','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','tree-diagram','disposeWithMe','more','_resolveIncomingConnectorStyle','defaultValue','_attachObjectPointerScheduled','boards-mind-ui.panel.cancel','type','univer-min-h-12\x20univer-text-xl','univer-h-28\x20univer-resize-none','_consumeControlEvent','_resolvePreviewTextStyle','timeline-vertical','layout','icon','add-child-bottom','focusedId','Enter','_applyDragTopologyAction','pointerStartX','boards-mind-ui.panel.structureKind.treeLeft','OPERATION','onStarting','move','glyphHoverWidth','_textEditingService','toolbar','depth','_resolveArrowNavigationTarget','mind-map-fill','snapDistance','_removeDragPreviewObject','922665rRAffM','onChange','dot','Solid','univer-space-y-1','onCommandExecuted','action','mind-map-font-size','onPointerMove$','svg','54MgXSdM','createRunner','length','_previewHostSize','packageName','DELETE','toggle-collapse','_syncContext','value','hoveredControl','fonts$','_getSelectedMindMapContext','getAncestorScale','unsubscribe','_insertStateService','ignoreExternalFocusChanges','setShapeSidebarOpen','siblingGap','isHit','_provider','addDescription','getBoundingClientRect','_resolveControlSide','univer-w-full\x20univer-text-xs','_resolveCurrentBoardContext','_resolveChildDragTopologyAction','_isChildDragPastActivationThreshold','onDblclick$','_getLiveObjectBounds','collapsedDescendantCount','getEditing','_commandService','getSelectedObjectMap','connectorData','timeline-horizontal','engine','label','boards-mind-ui.panel.nodeStyle.fontSize','add-sibling-before','importExport','boards-mind-ui.panel.spacing.parentGap','0\x200\x2024\x2024','_getSceneObject','_resetContext','badgeCount','univer-h-12\x20univer-text-base','M56\x2011h11M56\x2051h11','M12\x2026h11M58\x2036h11M12\x2045h11','connectorAlpha','boards-mind-ui.cancel','unit','renderContext','univer-h-9\x20univer-w-12','getSnapshot','nodeId','_syncRootScopePreview','_executeNodeOperation','_subscribeElementDataChanges','univer-border-b\x20univer-border-gray-200\x20univer-p-3','deviceType','_resolveNodeSize','function','_handleElementUpdate','register','pluginName','addChildGlyphSize','left','hypot','selectedIds','dividerBefore','rootText','univer-max-w-[min(760px,calc(100vw-32px))]','registerRenderModule','branch-rounded-orthogonal','rounded-orthogonal','refresh$','branch-orthogonal','layout-panel-divider','univer-size-6\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200','_refresh$','boards-mind-ui.panel.tab.','_attachObjectEvents','dataModel','writeText','1.8','width','textAlign','focusUnit','_syncChildDragPreviewObject','primary','collapseAllNodes','_enableMindMapToolbarTool','bounds','_restoreActivePreview','setConfig','after','restore','board-mind-map-description-dialog','clearSelection','rootNodeId','entries','childNodeId','middle','getElementData','lineWidthScreen','object','_lastChildDragAction','univer-w-32','textBaseline','_resolveChildSide','registerAdapter','_toFiniteBounds','badgeFontWeight','Escape','_drawConnectorPreview','boards-mind-ui.saveDescription','paste','call','hasCommand','[&_input]:univer-h-12\x20[&_input]:univer-text-base','univer-mb-3\x20univer-w-full','_instanceService','ghost','height','_applyRootTranslation','getFonts','open-description','_activePointerDragDisposables','boards-mind-ui.toolbar.panel.line','round','dispose$','boards-mind-ui.panel.tab.importExport','focus','boards-mind-ui.toolbar.primary.fontColor','_restoreObjectToDragStart','root','requestRender','context','_executeChildDragAction','data','_configService','set','_rememberNodeSize','_lastPoint','extraProps','trim','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','radius','fillStyle','boards-mind-ui.panel.nodeStyle.style','boards-mind-ui.alignLeft','_isActive','elementAdd$','_resolveCompleteSelectedScope','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','boards-mind-ui.panel.structureKind.treeAlternate','vertical','map','all','borderWidth','push','boards-mind-ui.panel.exportOPML','_pointerDragStart','ghostRadius','univer-w-20\x20univer-shrink-0','_contextService','visualRadius','fontColor','_cloneBlueprintNode','univer-text-gray-500','UNIVER_BOARD','arrow-up','fallbackNodeHeight','selectElements','documentStyle','boards-mind-ui.panel.branchLineType.roundedOrthogonal','getCanvasElement','side','univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','_pasteUnderSelectedNode','_layoutFlushScheduled','detach','italic','symbol','ghostTextColor','fillText','true','editCurrentNode','_isControlEvent','sourceHighlightFillColor','closePath','_instanceSrv','boards-mind-ui.panel.branchLineType.curve','line','style-divider','add-child-left','getUnit','rootHeight','glyphWidth','6YsOEtk','_executeCreateAndEdit','dirtyPaddingScreen','pointermove','addChildRadius','_resolveSelectedEntry','localeService','add','_createShortcutItems','_injector','RoundDot','mindmap','findIndex','pendingInsert','_state','_queueLayout','boards-mind-ui.toolbar.action.copy','addChild','owner','branchGap','clearControl$','arrow-left','_elementStateService','univer-flex\x20univer-justify-end\x20univer-gap-2','sourceBounds','registerCommand','button','ARROW_UP','interactionMode','tree-alternate','board-mind-map-node-controls-object','registerShortcut','parentNodeId','_handlePointerDown','_activePreview','_cancelPointerChildDrag','_mindMapClipboardService','univer-min-h-12\x20univer-w-full\x20univer-justify-between','visible','offsetY','text','_deleteSelectedNode','MindMap','addSiblingNode','univer-min-h-12\x20univer-flex-1','univer-w-full\x20univer-text-base','getShortcutDisplay','_drawSourceHighlight','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','transientPreview','nodeHeight','textFill','fontFamily','_interactionSurfaceService','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','univer-grid-cols-3','item','dash','SolidLine','univer-mb-4','boards-mind-ui.panel.emptyNodes','next','addParentNode','boards-mind-ui.toolbar.action.','_getMindMapChildren','div','horizontalGap','hasChildren','moveTo','ghostBounds','univer-grid\x20univer-w-full\x20univer-gap-2','clientX','getObject','boards-mind-ui.panel.searchNodes','_collapseAll','mindmap-horizontal','before','_ensureObject','direction','touchHitRadius','lineTo','enabled','_applyScopeTranslation','registerRuntimeScopedDependencies','scaleY','blueprint','foldChildNodes','_scheduleAttachObjectPointerListeners','_renderManagerService','orderKey','state$','LEFT','ArrowRight','params','detachWhenNoSnap','typography','ghostFontWeight','fill','attachPopupToObject','_queuedLayouts','_config','gap','_boardTextEditingService','dialogService','onPointerUp$','keys','divider-','constructor','clipboardService','dropdown','_ensureDragPreviewObject','changing$','nodeWidth','boards-mind-ui.panel.branchLineType.orthogonal','univer-items-center','incomingConnectorStyle','scope','_disposeActivePointerDragListeners','ARROW_DOWN','_pasteAsNewMindMap','getScene','_nodeSizeByKey','element','createControl$','M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7','collapsePlusMinDistance','style','activeEditingId','find','BOTTOM','transformByState','12HUAOfx','small','_objectEventDisposables','lineWidth','arrow-down','close','M47\x2025h13M47\x2035h13M47\x2045h13','pointerup','getInjector','bold','center','_init','addSibling','onReady','commandService','boards-mind-ui.panel.title','liveRootBounds','boards-mind-ui.toolbar.action.addChild','panOffset','rootStartBounds','branch-curve','_getRenderModules','popup','setData','setEditing','removeEventListener','ArrowDown','boards-mind-ui.panel.pasteOPML','_syncElementDataToScene','makeDirty','M17\x2033h21M38\x2017v30M38\x2017h24','_attachActivePointerDragListeners','size','section','board.mind-map.description-dialog','forEach','viewportPanOffset','values','getElementById','_syncRootReparentPreview','ArrowLeft','success','toLowerCase','Touch','zoomRatio','placement','large','SHIFT','custom','add-sibling-after','pipe','univer-size-5','version','span','_syncDragPreview','boards-mind-ui.toolbar.action.layout','_previewObject','1977502QZwyVp','_stateService','getPayload'];_0x1ae0=function(){return _0x34864c;};return _0x1ae0();}function Qn(_0x79bd2e,_0x2df734){const _0x4a257c=_0x1f10c6;if(!_0x2df734)return;let _0x512689=In(_0x2df734);if(!_0x512689[_0x4a257c(0x1f3)])return;let _0xf8fa7f=_0x512689[_0x4a257c(0x28f)](_0x5961b6=>_0x79bd2e[_0x4a257c(0x2e7)]({'id':'board.operation.mind-map.keyboard-shortcut','binding':_0x5961b6,'staticParameters':{'action':_0x2df734}})??void 0x0)[_0x4a257c(0x3f7)](_0x46d4c9=>!!_0x46d4c9);return _0xf8fa7f[_0x4a257c(0x1f3)]?[...new Set(_0xf8fa7f)][_0x4a257c(0x3ab)]('/'):void 0x0;}async function $n(_0x1338eb,_0x3450b8,_0xe5002e){const _0x478d5e=_0x1f10c6;return await Promise[_0x478d5e(0x434)](_0x3450b8(()=>_0x1338eb[_0x478d5e(0x189)](_0x24f826['id'],_0xe5002e)))?(await Promise[_0x478d5e(0x434)](_0x3450b8(()=>_0x1338eb[_0x478d5e(0x189)](_0x4a8bdc['id'],{'unitId':_0xe5002e[_0x478d5e(0x147)],'subUnitId':_0xe5002e[_0x478d5e(0x3cd)],'scopeId':_0xe5002e[_0x478d5e(0x3d1)]}))),!0x0):!0x1;}async function er(_0xfe980b,_0x3995e8,_0x175e66){const _0x25ff4c=_0x1f10c6;return await Promise['resolve'](_0x3995e8(()=>_0xfe980b[_0x25ff4c(0x189)](_0x4bb9b4['id'],_0x175e66)))?(await Promise[_0x25ff4c(0x434)](_0x3995e8(()=>_0xfe980b[_0x25ff4c(0x189)](_0x4a8bdc['id'],{'unitId':_0x175e66[_0x25ff4c(0x147)],'subUnitId':_0x175e66['subUnitId'],'scopeId':_0x175e66[_0x25ff4c(0x3d1)]}))),!0x0):!0x1;}function tr({className:_0x5d13e4=_0x1f10c6(0x36f)}){const _0x585538=_0x1f10c6;return _0x4a7fc2(_0x1816c6,{'children':_0x2bca5a(_0x585538(0x1f0),{'className':_0x5d13e4,'viewBox':_0x585538(0x21a),'fill':'none','aria-hidden':_0x585538(0x2ac),'children':[_0x4a7fc2(_0x585538(0x3a2),{'d':'M4.5\x207.5h4.2c1.9\x200\x203.3\x201.5\x203.3\x203.3v2.4c0\x201.8\x201.4\x203.3\x203.3\x203.3h4.2','stroke':'currentColor','strokeWidth':_0x585538(0x245),'strokeLinecap':_0x585538(0x272)}),_0x4a7fc2(_0x585538(0x3a2),{'d':_0x585538(0x1c6),'stroke':_0x585538(0x43a),'strokeWidth':_0x585538(0x245),'strokeLinecap':_0x585538(0x272)}),_0x4a7fc2('path',{'d':'M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','stroke':'currentColor','strokeWidth':_0x585538(0x245),'strokeLinecap':_0x585538(0x272)})]})});}function nr({icon:_0x26640a}){const _0x398d30=_0x1f10c6;let _0x2ba80b=_0x398d30(0x3a3),_0x4bbb2c={'stroke':_0x398d30(0x43a),'strokeWidth':2.6,'strokeLinecap':_0x398d30(0x272),'strokeLinejoin':_0x398d30(0x272)},_0x5c55e4={'stroke':_0x2ba80b,'strokeWidth':3.2,'strokeLinecap':'round'};return _0x2bca5a(_0x398d30(0x1f0),{'className':_0x398d30(0x225),'viewBox':'0\x200\x2080\x2056','fill':_0x398d30(0x3e6),'aria-hidden':_0x398d30(0x2ac),'children':[_0x26640a===_0x398d30(0x304)&&_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x160),..._0x4bbb2c}),_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x39a),..._0x5c55e4})]}),_0x26640a===_0x398d30(0x37d)&&_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2('path',{'d':'M21\x2028h38M40\x2011v34M28\x2016c7\x204\x2010\x208\x2012\x2012\x202-4\x205-8\x2012-12M28\x2040c7-4\x2010-8\x2012-12\x202\x204\x205\x208\x2012\x2012',..._0x4bbb2c}),_0x4a7fc2('path',{'d':_0x398d30(0x44c),'stroke':_0x2ba80b,'strokeWidth':2.6,'strokeLinecap':_0x398d30(0x272),'strokeDasharray':_0x398d30(0x441)})]}),_0x26640a===_0x398d30(0x423)&&_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x335),..._0x4bbb2c}),_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x342),..._0x5c55e4}),_0x4a7fc2('circle',{'cx':'24','cy':'12','r':'3','fill':_0x398d30(0x43a)})]}),_0x26640a===_0x398d30(0x3f2)&&_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2(_0x398d30(0x3a2),{'d':'M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7',..._0x4bbb2c}),_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x15a),..._0x5c55e4}),_0x4a7fc2('circle',{'cx':'56','cy':'12','r':'3','fill':_0x398d30(0x43a)})]}),_0x26640a===_0x398d30(0x2d6)&&_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2(_0x398d30(0x3a2),{'d':'M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7',..._0x4bbb2c}),_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x220),..._0x5c55e4}),_0x4a7fc2(_0x398d30(0x43d),{'cx':'42','cy':'12','r':'3','fill':'currentColor'})]}),_0x26640a==='timeline-horizontal'&&_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x28b),..._0x4bbb2c}),_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x21f),..._0x5c55e4}),_0x4a7fc2('circle',{'cx':'17','cy':'31','r':'3','fill':_0x398d30(0x43a)})]}),_0x26640a===_0x398d30(0x1d3)&&_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2('path',{'d':_0x398d30(0x1ac),..._0x4bbb2c}),_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x3ea),..._0x5c55e4}),_0x4a7fc2('circle',{'cx':'40','cy':'9','r':'3','fill':'currentColor'})]}),_0x26640a===_0x398d30(0x350)&&_0x4a7fc2(_0x3a937c,{'children':_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x3d0),..._0x4bbb2c})}),_0x26640a===_0x398d30(0x23a)&&_0x4a7fc2(_0x3a937c,{'children':_0x4a7fc2('path',{'d':_0x398d30(0x15e),..._0x4bbb2c})}),_0x26640a==='branch-orthogonal'&&_0x4a7fc2(_0x3a937c,{'children':_0x4a7fc2(_0x398d30(0x3a2),{'d':_0x398d30(0x35a),..._0x4bbb2c})})]});}function rr(_0x31bb81,_0x3be213){const _0x2f6e4f=_0x1f10c6;let _0x41f16a=_0x31bb81[_0x2f6e4f(0x436)],_0x10c1aa=_0xac270a(_0x41f16a),_0x109674={..._0x10c1aa['color']===void 0x0?null:{'color':_0x10c1aa[_0x2f6e4f(0x143)]},..._0x10c1aa[_0x2f6e4f(0x2ed)]===void 0x0?null:{'fontFamily':_0x10c1aa[_0x2f6e4f(0x2ed)]},..._0x10c1aa[_0x2f6e4f(0x1b9)]===void 0x0?null:{'fontSize':_0x10c1aa[_0x2f6e4f(0x1b9)]},..._0x10c1aa[_0x2f6e4f(0x345)]===void 0x0?null:{'bold':_0x10c1aa[_0x2f6e4f(0x345)]},..._0x10c1aa['italic']===void 0x0?null:{'italic':_0x10c1aa['italic']},..._0x10c1aa['underline']===void 0x0?null:{'underline':_0x10c1aa[_0x2f6e4f(0x449)]},..._0x10c1aa[_0x2f6e4f(0x1ae)]===void 0x0?null:{'strikethrough':_0x10c1aa[_0x2f6e4f(0x1ae)]},..._0x10c1aa[_0x2f6e4f(0x2ec)]===void 0x0?null:{'textFill':_0x10c1aa['textFill']}};_0x31bb81[_0x2f6e4f(0x378)]!==void 0x0&&(_0x109674['horizontalAlign']=_0x31bb81[_0x2f6e4f(0x378)]),_0x31bb81[_0x2f6e4f(0x19d)]!==void 0x0&&(_0x109674['verticalAlign']=_0x31bb81[_0x2f6e4f(0x19d)]),Object['keys'](_0x109674)[_0x2f6e4f(0x1f3)]>0x0&&_0x3be213({'textStyle':_0x109674});}function ir(_0x3efe36,_0x3b63d1,_0x459d28){const _0x3a8980=_0x1f10c6;let _0xd4d266=_0x3efe36??{},_0x554804=_0x51fd3e(_0xd4d266,_0x3b63d1),_0xff774c=_0x554804['shapeText']??_0xd4d266[_0x3a8980(0x3f6)]??{};return{..._0xd4d266,..._0x554804,'shapeText':{..._0xff774c,..._0x459d28[_0x3a8980(0x143)]===void 0x0?null:{'color':_0x459d28[_0x3a8980(0x143)]},..._0x459d28[_0x3a8980(0x1b9)]===void 0x0?null:{'fontSize':_0x459d28[_0x3a8980(0x1b9)]},..._0x459d28[_0x3a8980(0x345)]===void 0x0?null:{'bold':_0x459d28[_0x3a8980(0x345)]},..._0x459d28[_0x3a8980(0x2a8)]===void 0x0?null:{'italic':_0x459d28['italic']},..._0x459d28[_0x3a8980(0x449)]===void 0x0?null:{'underline':_0x459d28[_0x3a8980(0x449)]},..._0x459d28['strikethrough']===void 0x0?null:{'strikethrough':_0x459d28['strikethrough']},..._0x459d28[_0x3a8980(0x378)]===void 0x0?null:{'horizontalAlign':_0x459d28['horizontalAlign']},..._0x459d28[_0x3a8980(0x19d)]===void 0x0?null:{'verticalAlign':_0x459d28['verticalAlign']},..._0x459d28[_0x3a8980(0x2ec)]===void 0x0?null:{'textFill':_0x459d28[_0x3a8980(0x2ec)]}}};}function ar(_0x5cf3cd,_0x1dc623){const _0x48bf34=_0x1f10c6;let _0x16bbfd=_0x5cf3cd==null?void 0x0:_0x5cf3cd[_0x48bf34(0x45a)];_0x16bbfd&&_0x1dc623({'lineType':_0x16bbfd['dashType']===_0x4d9387[_0x48bf34(0x2c3)]||_0x16bbfd[_0x48bf34(0x3d2)]===_0x4d9387[_0x48bf34(0x462)]?_0x48bf34(0x1e9):_0x16bbfd['dashType']===_0x4d9387[_0x48bf34(0x15b)]?_0x48bf34(0x2f2):_0x48bf34(0x440),...typeof _0x16bbfd[_0x48bf34(0x246)]==_0x48bf34(0x419)?{'strokeWidth':_0x16bbfd['width']}:null,...typeof _0x16bbfd['color']==_0x48bf34(0x185)?{'stroke':_0x16bbfd[_0x48bf34(0x143)]}:null,...typeof _0x16bbfd[_0x48bf34(0x389)]==_0x48bf34(0x419)?{'opacity':_0x16bbfd[_0x48bf34(0x389)]}:null});}function or(_0x5ceb18){const _0x57b90f=_0x1f10c6;return _0x5ceb18!=null&&_0x5ceb18[_0x57b90f(0x1f3)]?_0x5ceb18[0x0]<=0x2?_0x4d9387['RoundDot']:_0x4d9387['Dash']:_0x4d9387[_0x57b90f(0x1ea)];}function sr(_0x149c04){const _0x46dfb0=_0x1f10c6;return{'stroke':{'lineStrokeType':_0x5cbb11[_0x46dfb0(0x2f3)],'dashType':or(_0x149c04==null?void 0x0:_0x149c04[_0x46dfb0(0x2f2)]),'color':(_0x149c04==null?void 0x0:_0x149c04['stroke'])??_0x140b36,'width':(_0x149c04==null?void 0x0:_0x149c04['strokeWidth'])??Bn[_0x46dfb0(0x1cb)],'opacity':(_0x149c04==null?void 0x0:_0x149c04[_0x46dfb0(0x389)])??Vn['defaultValue']/0x64}};}function cr(_0x251415){const _0x53ca8e=_0x1f10c6;var _0x1e96de,_0x3bffbd,_0x3ffc80;let _0x31119c=_0x44103d(_0x56aea3),_0x21d412=_0x44103d(_0x1247c4),_0x4cc66c=_0x44103d(_0x588054),_0x3c5ceb=_0x44103d(_0x56a505),[_0x5dfb4a,_0xda622a]=_0x63f429(null),[_0x23d78f,_0xdb9d8b]=_0x63f429((_0x1e96de=_0x251415[_0x53ca8e(0x352)][_0x53ca8e(0x281)])==null?void 0x0:_0x1e96de[_0x53ca8e(0x1c5)]),_0x26f932=_0x251415[_0x53ca8e(0x352)]['extraProps'];if(!_0x26f932)return null;let _0x9bc4e0={'unitId':_0x26f932[_0x53ca8e(0x147)],'subUnitId':_0x26f932[_0x53ca8e(0x3cd)]},_0x3d2eca=_0x55346d=>{const _0x59a762=_0x53ca8e;_0x31119c[_0x59a762(0x189)](_0x1c2b74['id'],{..._0x9bc4e0,'nodeId':_0x26f932[_0x59a762(0x142)],..._0x55346d});},_0x40bb5f=(_0x4e3bdf,_0x5e94d8)=>{const _0x37df86=_0x53ca8e;let _0xafd82c=_0x5e94d8??{};_0xdb9d8b(_0x3be441=>({..._0x3be441??{},..._0xafd82c})),_0x3d2eca({..._0xafd82c[_0x37df86(0x31a)]===void 0x0?null:{'fill':_0xafd82c[_0x37df86(0x31a)]},..._0xafd82c[_0x37df86(0x45a)]===void 0x0?null:{'stroke':_0xafd82c[_0x37df86(0x45a)]}});},_0x461716=_0x25d691=>{const _0x2a52cd=_0x53ca8e;_0x31119c[_0x2a52cd(0x189)](_0x229f83['id'],{..._0x9bc4e0,'nodeId':_0x26f932[_0x2a52cd(0x142)],'style':_0x25d691});},_0x2bca6b=sr(_0x26f932[_0x53ca8e(0x32c)]),_0x4b3c59=_0x533939=>Qn(_0x21d412,_0x533939),_0x3ffbf9=_0x2e127b=>{qn(_0x31119c,_0x2e127b);},_0x189fb1=(_0x23d78f==null?void 0x0:_0x23d78f[_0x53ca8e(0x3f6)])??{},_0x10f818=Zn(_0x23d78f),_0x2ca65a=_0x179aa9=>{rr(_0x179aa9,_0x1b6f84=>{const _0x72ed40=_0x1bd6;_0xdb9d8b(_0x215d0f=>ir(_0x215d0f,_0x179aa9,_0x1b6f84[_0x72ed40(0x436)])),_0x3d2eca(_0x1b6f84);});},_0x3d88ce=[{'label':_0x4cc66c['t'](_0x53ca8e(0x287)),'value':_0xbace98[_0x53ca8e(0x314)],'icon':_0x4a7fc2(_0x1f1280,{})},{'label':_0x4cc66c['t']('boards-mind-ui.alignCenter'),'value':_0xbace98['CENTER'],'icon':_0x4a7fc2(_0x272dbc,{})},{'label':_0x4cc66c['t'](_0x53ca8e(0x14e)),'value':_0xbace98['RIGHT'],'icon':_0x4a7fc2(_0x34fdee,{})},{'label':_0x4cc66c['t'](_0x53ca8e(0x14a)),'value':_0xbace98['JUSTIFIED'],'icon':_0x4a7fc2(_0xfce763,{})}],_0x3cb8fc=[{'label':_0x4cc66c['t'](_0x53ca8e(0x3e7)),'value':_0x3de0d7[_0x53ca8e(0x1c2)],'icon':_0x4a7fc2(_0x392721,{})},{'label':_0x4cc66c['t']('boards-mind-ui.alignMiddle'),'value':_0x3de0d7[_0x53ca8e(0x3db)],'icon':_0x4a7fc2(_0x12c870,{})},{'label':_0x4cc66c['t'](_0x53ca8e(0x16c)),'value':_0x3de0d7[_0x53ca8e(0x33a)],'icon':_0x4a7fc2(_0x12a095,{})}],_0x25fe19=()=>{const _0x30f20d=_0x53ca8e;_0x3ffbf9(_0x30f20d(0x450));},_0x9ae001=()=>{const _0x2aef19=_0x53ca8e;_0x3ffbf9(_0x2aef19(0x198));},_0x30c3a9=()=>{const _0x41c68b=_0x53ca8e;_0x3ffbf9(_0x41c68b(0x43f));},_0x47f0a2=()=>{const _0x11f04c=_0x53ca8e;_0x3ffbf9(_0x11f04c(0x265));},_0x55827f=()=>{const _0xe005d=_0x53ca8e;_0x3ffbf9(_0xe005d(0x3fe));},_0x455f7d=((_0x3bffbd=_0x26f932[_0x53ca8e(0x1d4)])==null?void 0x0:_0x3bffbd[_0x53ca8e(0x381)])??_0x258b6f['structureKind'],_0x6564b1=_0x557da1(_0x455f7d,((_0x3ffc80=_0x26f932['layout'])==null?void 0x0:_0x3ffc80[_0x53ca8e(0x42b)])??_0x258b6f[_0x53ca8e(0x42b)]),_0x2d5584=_0x29a885=>{const _0x73a60=_0x53ca8e;let _0xd988ba=_0x557da1(_0x29a885,_0x6564b1);$n(_0x31119c,_0x3c5ceb['createRunner'](_0x26f932['unitId']),{..._0x9bc4e0,'scopeId':_0x26f932[_0x73a60(0x3d1)],'structureKind':_0x29a885,..._0xd988ba===_0x6564b1?null:{'branchLineType':_0xd988ba}}),_0xda622a(null);},_0x56207c=_0x435f2b=>{const _0x3ec834=_0x53ca8e;er(_0x31119c,_0x3c5ceb[_0x3ec834(0x1f2)](_0x26f932[_0x3ec834(0x147)]),{..._0x9bc4e0,'scopeId':_0x26f932[_0x3ec834(0x3d1)],'branchLineType':_0x435f2b}),_0xda622a(null);},_0x487a3c=(_0x57b8f6,_0x156c7e,_0xb9fe42,_0x35fc3f=!0x1)=>_0x4a7fc2(_0x53ca8e(0x2d3),{'type':_0x53ca8e(0x2d3),'aria-label':_0x4cc66c['t'](_0x57b8f6[_0x53ca8e(0x41a)]),'disabled':_0x35fc3f,'className':_0x3e6ef4(_0x53ca8e(0x3cf),_0x156c7e&&_0x53ca8e(0x2ef),_0x35fc3f&&_0x53ca8e(0x391)),'onMouseDown':Yn,'onPointerDown':Yn,'onClick':_0x140f40=>{_0x140f40['stopPropagation'](),!_0x35fc3f&&_0xb9fe42();},'children':_0x4a7fc2(nr,{'icon':_0x57b8f6[_0x53ca8e(0x1d5)]})},_0x57b8f6[_0x53ca8e(0x1f9)]),_0x471218=()=>_0x2bca5a(_0x53ca8e(0x2fa),{'className':_0x53ca8e(0x1b8),'onMouseDown':_0x5f1a46=>_0x5f1a46['stopPropagation'](),'onPointerDown':_0x7856ee=>_0x7856ee[_0x53ca8e(0x435)](),'children':[Wn[_0x53ca8e(0x28f)](_0x30a71b=>_0x2bca5a(_0x53ca8e(0x2fa),{'className':_0x53ca8e(0x2f4),'children':[_0x4a7fc2(_0x53ca8e(0x2fa),{'className':'univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','children':_0x30a71b[_0x53ca8e(0x175)]}),_0x4a7fc2('div',{'className':_0x53ca8e(0x283),'style':{'gridTemplateColumns':_0x53ca8e(0x3b1)+_0x30a71b['items']['length']+_0x53ca8e(0x39b)},'children':_0x30a71b[_0x53ca8e(0x41e)][_0x53ca8e(0x28f)](_0x56c1ff=>_0x487a3c(_0x56c1ff,_0x56c1ff[_0x53ca8e(0x1f9)]===_0x455f7d,()=>_0x2d5584(_0x56c1ff[_0x53ca8e(0x1f9)])))})]},_0x30a71b[_0x53ca8e(0x396)])),_0x4a7fc2(_0x33c873,{}),_0x2bca5a(_0x53ca8e(0x2fa),{'className':_0x53ca8e(0x412),'children':[_0x4a7fc2(_0x53ca8e(0x2fa),{'className':'univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','children':Gn['title']}),_0x4a7fc2(_0x53ca8e(0x2fa),{'className':_0x53ca8e(0x283),'style':{'gridTemplateColumns':_0x53ca8e(0x3b1)+Gn[_0x53ca8e(0x41e)][_0x53ca8e(0x1f3)]+',\x20minmax(0,\x201fr))'},'children':Gn[_0x53ca8e(0x41e)][_0x53ca8e(0x28f)](_0x11ff81=>_0x487a3c(_0x11ff81,_0x11ff81[_0x53ca8e(0x1f9)]===_0x6564b1,()=>_0x56207c(_0x11ff81['value']),_0x11ff81[_0x53ca8e(0x1f9)]===_0x53ca8e(0x411)&&!_0x2052ed(_0x455f7d)))})]})]}),_0x2f9b83=_0x178597=>{const _0x4c45ec=_0x53ca8e;switch(_0x178597){case _0x4c45ec(0x2b3):return _0x4a7fc2(_0x1d45c4,{'title':_0x4cc66c['t'](_0x4c45ec(0x271)),'shapeData':_0x2bca6b,'modeOptions':[_0x4c45ec(0x440),_0x4c45ec(0x2f2),_0x4c45ec(0x1e9)],'showDashDropdown':!0x1,'widthRange':{'min':Bn['min'],'max':Bn[_0x4c45ec(0x3b7)],'step':0x1},'onUpdateShapeData':(_0x7d8a7f,_0x49d807)=>{ar(_0x49d807,_0x461716);}});case _0x4c45ec(0x1c9):return _0x4a7fc2(_0x412185,{'title':_0x4cc66c['t']('boards-mind-ui.toolbar.panel.more'),'minWidthClassName':'univer-min-w-[240px]','children':_0x2bca5a(_0x4c45ec(0x2fa),{'className':_0x4c45ec(0x172),'children':[_0x4a7fc2(_0x4f4086,{'label':_0x4cc66c['t']('boards-mind-ui.toolbar.action.addSibling'),'shortcut':_0x4b3c59(Un[_0x4c45ec(0x348)]),'onClick':_0x25fe19}),_0x4a7fc2(_0x4f4086,{'label':_0x4cc66c['t'](_0x4c45ec(0x34d)),'shortcut':_0x4b3c59(Un[_0x4c45ec(0x2ca)]),'onClick':_0x9ae001}),_0x4a7fc2(_0x33c873,{}),_0x4a7fc2(_0x4f4086,{'label':_0x4cc66c['t'](_0x4c45ec(0x2c9)),'shortcut':_0x4b3c59(Un['copy']),'onClick':_0x30c3a9}),_0x4a7fc2(_0x4f4086,{'label':_0x4cc66c['t']('boards-mind-ui.toolbar.action.paste'),'shortcut':_0x4b3c59(Un['paste']),'onClick':_0x47f0a2}),_0x4a7fc2(_0x4f4086,{'label':_0x4cc66c['t'](_0x4c45ec(0x38c)),'shortcut':_0x4b3c59(Un[_0x4c45ec(0x3fe)]),'onClick':_0x55827f})]})});default:return null;}},_0x146298=Hn[_0x53ca8e(0x146)](_0x5cb908=>{const _0x434934=_0x53ca8e;let _0x1e8590=[];if(_0x5cb908[_0x434934(0x236)]&&_0x1e8590[_0x434934(0x292)](_0x4a7fc2(_0x33c873,{'orientation':_0x434934(0x28e)},_0x434934(0x323)+_0x5cb908[_0x434934(0x420)])),_0x5cb908[_0x434934(0x420)]===_0x434934(0x318))return _0x1e8590[_0x434934(0x292)](_0x4a7fc2(_0x2fd74b,{'title':_0x4cc66c['t'](_0x434934(0x402)),'fontFamily':_0x10f818[_0x434934(0x2ed)],'textStyle':{'isBold':_0x189fb1[_0x434934(0x345)]===!0x0,'isItalic':_0x189fb1[_0x434934(0x2a8)]===!0x0,'isUnderline':_0x189fb1['underline']===!0x0,'isStrike':_0x189fb1[_0x434934(0x1ae)]===!0x0},'horizontalAlign':_0x10f818[_0x434934(0x378)],'verticalAlign':_0x10f818[_0x434934(0x19d)],'horizontalAlignOptions':_0x3d88ce,'verticalAlignOptions':_0x3cb8fc,'onUpdateText':_0x2ca65a},_0x5cb908[_0x434934(0x420)])),_0x1e8590;if(_0x5cb908[_0x434934(0x420)]==='fontColor'){let _0x59486f={'fs':_0x10f818[_0x434934(0x1b9)],'cl':{'rgb':_0x10f818[_0x434934(0x143)]},..._0x10f818[_0x434934(0x2ec)]===void 0x0?null:{'textFill':_0x10f818[_0x434934(0x2ec)]}};return _0x1e8590[_0x434934(0x292)](_0x4a7fc2(_0x44d485,{'title':_0x4cc66c['t']('boards-mind-ui.toolbar.action.fontColor'),'textStyle':_0x59486f,'fallbackColor':_0x10f818[_0x434934(0x143)],'onChange':_0x1a6b48=>_0x2ca65a({'textStyle':_0x1a6b48})},_0x5cb908[_0x434934(0x420)])),_0x1e8590[_0x434934(0x292)](_0x4a7fc2(_0x1fb5f7,{'value':String(_0x10f818[_0x434934(0x1b9)]),'onChange':_0x321e35=>{_0x2ca65a({'textStyle':{'fs':_0x321e35}});}},_0x434934(0x1ee))),_0x1e8590;}return _0x1e8590[_0x434934(0x292)](_0x4a7fc2(_0x1440b5,{'open':_0x5dfb4a===_0x5cb908['panel'],'overlay':_0x2f9b83(_0x5cb908[_0x434934(0x401)]),'onOpenChange':_0x45b7c9=>_0xda622a(_0x45b7c9?_0x5cb908[_0x434934(0x401)]:null),'children':_0x4a7fc2(_0x434934(0x371),{'children':_0x4a7fc2(_0x53a097,{'title':_0x4cc66c['t'](_0x5cb908[_0x434934(0x3a7)]),'active':_0x5dfb4a===_0x5cb908['panel'],'icon':Xn(Jn[_0x5cb908['panel']]),'sizeClassName':_0x434934(0x13c),'onMouseDown':Yn,'onPointerDown':Yn})})},_0x5cb908[_0x434934(0x401)])),_0x1e8590;}),_0xd27e6e=[..._0x26f932['isRootNode']?[_0x4a7fc2(_0x1440b5,{'open':_0x5dfb4a==='layout','overlay':_0x471218(),'onOpenChange':_0x11ac36=>_0xda622a(_0x11ac36?_0x53ca8e(0x1d4):null),'children':_0x4a7fc2(_0x53ca8e(0x371),{'children':_0x4a7fc2(_0x53a097,{'title':_0x4cc66c['t'](_0x53ca8e(0x373)),'active':_0x5dfb4a===_0x53ca8e(0x1d4),'icon':_0x4a7fc2(tr,{}),'sizeClassName':_0x53ca8e(0x13c),'onMouseDown':Yn,'onPointerDown':Yn})})},_0x53ca8e(0x3ba)),_0x4a7fc2(_0x33c873,{'orientation':_0x53ca8e(0x28e)},_0x53ca8e(0x23e))]:[],_0x4a7fc2(_0x463ee2,{'title':_0x4cc66c['t']('boards-mind-ui.toolbar.action.fill'),'shapeData':_0x23d78f??{},'onUpdateShapeData':_0x40bb5f},_0x53ca8e(0x1e4)),_0x4a7fc2(_0x3bc7f5,{'title':_0x4cc66c['t']('boards-mind-ui.toolbar.action.stroke'),'shapeData':_0x23d78f??{},'onUpdateShapeData':_0x40bb5f},_0x53ca8e(0x173)),_0x4a7fc2(_0x33c873,{'orientation':_0x53ca8e(0x28e)},_0x53ca8e(0x2b4))];return _0x2bca5a(_0xa7d80a,{'maxWidthClassName':_0x53ca8e(0x238),'onMouseDown':_0x25acb9=>_0x25acb9[_0x53ca8e(0x435)](),'children':[_0xd27e6e,_0x146298]});}function lr(_0x3f0b71){let {left:_0x49bf8e,top:_0xf28326,width:_0x583f23,height:_0x2cb09f}=_0x3f0b71;return{'left':_0x49bf8e,'right':_0x49bf8e+_0x583f23,'top':_0xf28326-0x38,'bottom':_0xf28326+_0x2cb09f};}let ur=class extends _0x9852b5{constructor(_0x20d47d,_0x146430,_0x303b9f,_0x22173f,_0xfb8dc7,_0x3700d2){const _0x3ec609=_0x1f10c6;super(),this[_0x3ec609(0x3e1)]=_0x20d47d,this['_boardCanvasPopManagerService']=_0x146430,this[_0x3ec609(0x384)]=_0x303b9f,this[_0x3ec609(0x2cf)]=_0x22173f,this['_boardTextEditingService']=_0xfb8dc7,this[_0x3ec609(0x2ee)]=_0x3700d2,K(this,_0x3ec609(0x170),null),K(this,_0x3ec609(0x3ee),null),this[_0x3ec609(0x347)]();}[_0x1f10c6(0x3c0)](){const _0x185e8f=_0x1f10c6;this[_0x185e8f(0x3c1)](),super[_0x185e8f(0x3c0)]();}[_0x1f10c6(0x347)](){const _0x21672f=_0x1f10c6;let _0x58214c=this[_0x21672f(0x3e1)][_0x21672f(0x156)][_0x21672f(0x165)]();this[_0x21672f(0x1c8)](_0x50821e(_0x58214c[_0x21672f(0x334)][_0x21672f(0x36e)](_0x2c3b45(this[_0x21672f(0x273)]))[_0x21672f(0x3c8)](()=>this[_0x21672f(0x3e8)]()))),this[_0x21672f(0x1c8)](_0x50821e(_0x58214c[_0x21672f(0x2cd)]['pipe'](_0x2c3b45(this['dispose$']))['subscribe'](()=>this[_0x21672f(0x41f)]()))),this['disposeWithMe'](_0x50821e(_0x58214c[_0x21672f(0x16b)][_0x21672f(0x36e)](_0x2c3b45(this[_0x21672f(0x273)]))[_0x21672f(0x3c8)](()=>this[_0x21672f(0x3c1)]()))),this[_0x21672f(0x1c8)](_0x50821e(_0x58214c[_0x21672f(0x45b)]['pipe'](_0x2c3b45(this[_0x21672f(0x273)]))[_0x21672f(0x3c8)](()=>setTimeout(()=>this[_0x21672f(0x3e8)](),0x0)))),this[_0x21672f(0x1c8)](_0x50821e(this[_0x21672f(0x2cf)][_0x21672f(0x313)]['pipe'](_0x2c3b45(this[_0x21672f(0x273)]))[_0x21672f(0x3c8)](()=>setTimeout(()=>this[_0x21672f(0x3e8)](),0x0)))),this['disposeWithMe'](_0x50821e(this[_0x21672f(0x2ee)][_0x21672f(0x415)][_0x21672f(0x36e)](_0x2c3b45(this[_0x21672f(0x273)]))[_0x21672f(0x3c8)](_0x35341e=>{const _0x189a3e=_0x21672f;if(_0x35341e){this['_clearPopup']();return;}setTimeout(()=>this[_0x189a3e(0x3e8)](),0x0);}))),this[_0x21672f(0x1c8)](_0x50821e(this[_0x21672f(0x31f)][_0x21672f(0x191)]['pipe'](_0x2c3b45(this['dispose$']))[_0x21672f(0x3c8)](_0x7f4153=>{const _0x1ac97f=_0x21672f;if((_0x7f4153==null?void 0x0:_0x7f4153[_0x1ac97f(0x147)])===this[_0x1ac97f(0x3e1)][_0x1ac97f(0x147)]){if(_0x7f4153[_0x1ac97f(0x2df)]){this[_0x1ac97f(0x3c1)]();return;}setTimeout(()=>this['_showPopupForSelection'](),0x0);}})));}['_clearPopup'](){const _0x158edf=_0x1f10c6;var _0x5f5608;(_0x5f5608=this['_popupDisposable'])==null||_0x5f5608[_0x158edf(0x3c0)](),this[_0x158edf(0x170)]=null,this[_0x158edf(0x3ee)]=null;}[_0x1f10c6(0x41f)](){setTimeout(()=>{const _0x428fa5=_0x1bd6;this['_isPopupSelectionStillActive']()||this[_0x428fa5(0x3c1)]();},0x0);}[_0x1f10c6(0x15d)](){const _0x459dcc=_0x1f10c6;let _0xe44324=this[_0x459dcc(0x2cf)][_0x459dcc(0x226)]();return!!_0xe44324[_0x459dcc(0x27a)]&&_0xe44324[_0x459dcc(0x235)][_0x459dcc(0x1f3)]>0x0&&this[_0x459dcc(0x3ee)]===this[_0x459dcc(0x1a0)](_0xe44324[_0x459dcc(0x27a)][_0x459dcc(0x147)],_0xe44324[_0x459dcc(0x27a)][_0x459dcc(0x3cd)],_0xe44324[_0x459dcc(0x235)]);}['_buildPopupSelectionKey'](_0x2b43e2,_0x5a4e8c,_0xf91803){const _0x5a916a=_0x1f10c6;return _0x2b43e2+':'+_0x5a4e8c+':'+_0xf91803[_0x5a916a(0x3ab)](',');}[_0x1f10c6(0x1ca)](_0x21fbf9,_0x3a17ce,_0xbfe31a,_0x1dce4d){const _0x41d733=_0x1f10c6;let _0x2911fe=this[_0x41d733(0x384)][_0x41d733(0x258)](_0x21fbf9,_0x3a17ce),_0x505e45=Object[_0x41d733(0x361)](_0x2911fe)[_0x41d733(0x339)](_0x54b6c3=>{const _0x5a5287=_0x41d733;let _0x424e6c=_0x2139e0(_0x54b6c3[_0x5a5287(0x333)]);return(_0x424e6c==null?void 0x0:_0x424e6c['structureScopeId'])===_0xbfe31a&&_0x424e6c[_0x5a5287(0x256)]===_0x1dce4d;});if(_0x505e45&&_0x41d733(0x212)in _0x505e45['element'])return _0x505e45[_0x41d733(0x333)]['connectorData'][_0x41d733(0x337)];}[_0x1f10c6(0x3e8)](){const _0x4a867e=_0x1f10c6;var _0x5725cb,_0x4b4211,_0x127105;if(this[_0x4a867e(0x2ee)][_0x4a867e(0x3a6)]){this[_0x4a867e(0x3c1)]();return;}let _0x262723=this[_0x4a867e(0x31f)]['getEditing']();if((_0x262723==null?void 0x0:_0x262723['visible'])===!0x0&&_0x262723[_0x4a867e(0x147)]===this['_renderContext'][_0x4a867e(0x147)]){this[_0x4a867e(0x3c1)]();return;}let _0x4cbbf8=this['_elementStateService'][_0x4a867e(0x226)]();if(_0x4cbbf8[_0x4a867e(0x426)]){this[_0x4a867e(0x3c1)]();return;}if(_0x39e4fd({'context':_0x4cbbf8[_0x4a867e(0x27a)],'selectedIds':_0x4cbbf8[_0x4a867e(0x235)],'getElementById':(_0x534718,_0x3dd166,_0x176a6f)=>this['_boardElementService'][_0x4a867e(0x362)](_0x534718,_0x3dd166,_0x176a6f)})[_0x4a867e(0x2cb)]!==_0x4a867e(0x1a3)){this[_0x4a867e(0x3c1)]();return;}let _0x56ba6b=this['_renderContext'][_0x4a867e(0x156)][_0x4a867e(0x165)]()[_0x4a867e(0x211)](),_0xa789f8=Array['from'](_0x56ba6b[_0x4a867e(0x361)]())[_0x4a867e(0x28f)](_0x3126a1=>this[_0x4a867e(0x2be)](_0x3126a1))[_0x4a867e(0x3f7)](_0x354f4a=>!!_0x354f4a)[_0x4a867e(0x3f7)](_0x5eeb24=>!!_0x51f94c(_0x5eeb24[_0x4a867e(0x19b)]['element'])),_0x265026=_0xa789f8['find'](_0x4afdb8=>_0x4afdb8['elementData'][_0x4a867e(0x142)]===_0x4cbbf8[_0x4a867e(0x1d7)])??_0xa789f8[0x0]??this[_0x4a867e(0x407)]();if(!_0x265026){this[_0x4a867e(0x3c1)]();return;}let _0x49a96c=_0x51f94c(_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x333)]);if(!_0x49a96c){this[_0x4a867e(0x3c1)]();return;}let _0x2c3fac=(_0x5725cb=this[_0x4a867e(0x384)]['getElementData'](_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x147)],_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x3cd)])[_0x49a96c[_0x4a867e(0x3f1)]])==null?void 0x0:_0x5725cb[_0x4a867e(0x333)],_0x30370b=_0x195a16(_0x2c3fac),_0x4190bd=_0x2c3fac==null||(_0x4b4211=_0x2c3fac['custom'])==null||(_0x4b4211=_0x4b4211[_0x4a867e(0x2c4)])==null||(_0x4b4211=_0x4b4211[_0x4a867e(0x1d4)])==null?void 0x0:_0x4b4211[_0x4a867e(0x381)],_0x150fce=((_0x30370b==null?void 0x0:_0x30370b['layout'][_0x4a867e(0x381)])??_0x4190bd)===_0x4a867e(0x37d)&&(_0x49a96c[_0x4a867e(0x2d9)]===null||_0x49a96c[_0x4a867e(0x2a3)]===_0x4a867e(0x41d)),_0x3ff880=_0x49a96c[_0x4a867e(0x2d9)]!==null&&_0x49a96c[_0x4a867e(0x2a3)]!==_0x4a867e(0x41d)&&_0x49a96c[_0x4a867e(0x2a3)]!==_0x4a867e(0x392),_0x379288=_0x150fce||_0x3ff880,_0x1429be=((_0x127105=_0x4cbbf8[_0x4a867e(0x27a)])==null?void 0x0:_0x127105[_0x4a867e(0x147)])===_0x265026['elementData'][_0x4a867e(0x147)]&&_0x4cbbf8[_0x4a867e(0x27a)][_0x4a867e(0x3cd)]===_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x3cd)]&&_0x4cbbf8[_0x4a867e(0x235)][_0x4a867e(0x1f3)]?_0x4cbbf8[_0x4a867e(0x235)]:[_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x142)]],_0x3b3a60=this[_0x4a867e(0x1a0)](_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x147)],_0x265026['elementData'][_0x4a867e(0x3cd)],_0x1429be);this['_popupDisposable']&&this[_0x4a867e(0x3ee)]===_0x3b3a60||(this[_0x4a867e(0x3c1)](),this['_popupDisposable']=this[_0x4a867e(0x1c8)](this['_boardCanvasPopManagerService'][_0x4a867e(0x31b)](_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x147)],_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x3cd)],_0x265026[_0x4a867e(0x25a)],{'componentKey':Kn,'direction':_0x4a867e(0x3ac),'offset':[0x0,0x8],..._0x379288?{'anchorBoundResolver':lr}:null,'extraProps':{'unitId':_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x147)],'subUnitId':_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x3cd)],'elementId':_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x142)],'scopeId':_0x49a96c['structureScopeId'],'isRootNode':_0x49a96c['parentNodeId']===null,'left':_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x333)][_0x4a867e(0x184)][_0x4a867e(0x233)]??0x0,'top':_0x265026[_0x4a867e(0x19b)]['element'][_0x4a867e(0x184)][_0x4a867e(0x41d)]??0x0,'shapeData':_0x265026['elementData']['element'][_0x4a867e(0x1ce)]===_0x3a0cfb[_0x4a867e(0x1c3)]?_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x333)][_0x4a867e(0x1c5)]:void 0x0,'layout':_0x30370b==null?void 0x0:_0x30370b[_0x4a867e(0x1d4)],'incomingConnectorStyle':this[_0x4a867e(0x1ca)](_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x147)],_0x265026[_0x4a867e(0x19b)][_0x4a867e(0x3cd)],_0x49a96c[_0x4a867e(0x3f1)],_0x265026[_0x4a867e(0x19b)]['elementId'])}})),this['_popupSelectionKey']=_0x3b3a60);}[_0x1f10c6(0x407)](){const _0x1a984b=_0x1f10c6;var _0x451e03;let _0x5610da=this[_0x1a984b(0x2cf)][_0x1a984b(0x226)](),_0x55d1b2=_0x5610da[_0x1a984b(0x27a)],_0x5ee59d=_0x5610da[_0x1a984b(0x1d7)]??_0x5610da[_0x1a984b(0x235)][0x0];if(!_0x55d1b2||!_0x5ee59d)return null;let _0x3d4238=this[_0x1a984b(0x384)]['getElementById'](_0x55d1b2['unitId'],_0x55d1b2[_0x1a984b(0x3cd)],_0x5ee59d);if(!_0x3d4238||!_0x51f94c(_0x3d4238[_0x1a984b(0x333)]))return null;let _0x5d3856=_0x10c90a(_0x55d1b2[_0x1a984b(0x147)],_0x5ee59d),_0x426c31=this[_0x1a984b(0x3e1)]['scene'],_0x23cbf7=((_0x451e03=_0x426c31['getObjectIncludeInGroup'])==null?void 0x0:_0x451e03[_0x1a984b(0x266)](_0x426c31,_0x5d3856))??this[_0x1a984b(0x3e1)][_0x1a984b(0x156)][_0x1a984b(0x301)](_0x5d3856);return _0x23cbf7?{'object':_0x23cbf7,'elementData':_0x3d4238}:null;}[_0x1f10c6(0x2be)](_0x54ae55){const _0x199284=_0x1f10c6;var _0x75a0bc;if(!_0x54ae55)return null;let _0x26f88a=_0x638279(_0x54ae55['oKey']);if(!_0x26f88a)return null;let _0xe58236=this[_0x199284(0x2cf)][_0x199284(0x226)](),_0x46533d=((_0x75a0bc=_0xe58236[_0x199284(0x27a)])==null?void 0x0:_0x75a0bc['unitId'])===_0x26f88a[_0x199284(0x147)]?_0xe58236[_0x199284(0x27a)]['subUnitId']:void 0x0;if(!_0x46533d)return null;let _0x2f09aa=this[_0x199284(0x384)][_0x199284(0x362)](_0x26f88a[_0x199284(0x147)],_0x46533d,_0x26f88a[_0x199284(0x142)]);return _0x2f09aa?{'object':_0x54ae55,'elementData':_0x2f09aa}:null;}};ur=J([q(0x1,_0x2e0f98(_0x1b3bdf)),q(0x2,_0x2e0f98(_0x52d74d)),q(0x3,_0x2e0f98(_0x10fb2b)),q(0x4,_0x2e0f98(_0x157676)),q(0x5,_0x2e0f98(_0x3304c1))],ur);const dr=_0x1f10c6(0x17e),fr=_0x2a0926[_0x1f10c6(0x3c9)];function pr(_0x4f5602,_0x2ca616){const _0x272ad5=_0x1f10c6;return(_0x4f5602??[])['reduce']((_0x1ffb6a,_0x242593)=>(_0x1ffb6a[_0x242593[_0x272ad5(0x2a3)]??_0x2ca616][_0x272ad5(0x292)](_0x242593),_0x1ffb6a),{'left':[],'right':[],'top':[],'bottom':[]});}function mr(_0x2001ef){const _0x14430e=_0x1f10c6;return _0x2001ef===_0x14430e(0x3f2)||_0x2001ef===_0x14430e(0x423)||_0x2001ef===_0x14430e(0x2d6);}function hr(_0x1b5920){const _0x3e184f=_0x1f10c6;return _0x1b5920==='timeline-horizontal'||_0x1b5920===_0x3e184f(0x1d3);}function gr(_0x4b609f,_0x37673c,_0x11c035){const _0x56010e=_0x1f10c6;return _0x11c035===_0x56010e(0x3f2)?_0x56010e(0x233):_0x11c035===_0x56010e(0x423)?_0x56010e(0x171):_0x4b609f[_0x56010e(0x2a3)]==='left'||_0x4b609f[_0x56010e(0x2a3)]===_0x56010e(0x171)?_0x4b609f[_0x56010e(0x2a3)]:_0x37673c%0x2==0x0?_0x56010e(0x233):'right';}function _r(_0x53831a,_0x1b1a4a){const _0x1a55ad=_0x1f10c6;return(_0x1b1a4a==null?void 0x0:_0x1b1a4a[_0x1a55ad(0x278)][_0x1a55ad(0x39d)])??_0x53831a??[];}var vr=class extends _0x48d510{constructor(_0x5be044=dr,_0x42393d){const _0x27e5f7=_0x1f10c6;super(_0x5be044),K(this,_0x27e5f7(0x2c7),{'point':null,'children':[]}),this[_0x27e5f7(0x14b)]=!0x1,this[_0x27e5f7(0x1bf)]=_0x3d308f[_0x27e5f7(0x2ea)],this[_0x27e5f7(0x3c5)](_0x42393d);}['updateState'](_0x3b4e38){const _0x744c07=_0x1f10c6;this[_0x744c07(0x2c7)]={...this[_0x744c07(0x2c7)],..._0x3b4e38},this['_state'][_0x744c07(0x454)]?this[_0x744c07(0x417)]():this['hide'](),this[_0x744c07(0x359)](!0x0);}[_0x1f10c6(0x203)](_0x3372cf){return!0x1;}['render'](_0x23a312,_0x3fff2d){const _0xf61154=_0x1f10c6;let _0x3efc49=this['_state'][_0xf61154(0x454)];if(!_0x3efc49||!this[_0xf61154(0x2df)])return this[_0xf61154(0x359)](!0x1),this;let _0x572904=Number[_0xf61154(0x180)](this[_0xf61154(0x2c7)][_0xf61154(0x368)])&&(this[_0xf61154(0x2c7)][_0xf61154(0x368)]??0x0)>0x0?this[_0xf61154(0x2c7)]['zoomRatio']:0x1,_0xbfb338=_0x4c0c6a['rootWidth'],_0x48c081=_0x4c0c6a[_0xf61154(0x2b7)],_0x452cda=_0x4c0c6a[_0xf61154(0x329)],_0x1c1485=_0x4c0c6a[_0xf61154(0x2eb)],_0x258895=_0x258b6f['horizontalGap'],_0x3df20a=_0x258b6f[_0xf61154(0x202)],_0x4ad199=this[_0xf61154(0x2c7)][_0xf61154(0x381)]==='mindmap-vertical',_0x540921=pr(this[_0xf61154(0x2c7)]['children'],_0x4ad199?'bottom':_0xf61154(0x171)),_0x2362d5=_0x3efc49['x']-_0xbfb338/0x2,_0x26762b=_0x3efc49['y']-_0x48c081/0x2;if(_0x23a312[_0xf61154(0x38e)](),_0x23a312['globalAlpha']=X['objectAlpha'],_0x23a312['lineWidth']=X['lineWidthScreen']/_0x572904,_0x23a312[_0xf61154(0x16a)]=X[_0xf61154(0x3b2)],hr(this['_state'][_0xf61154(0x381)])){let _0x33dcd3=_r(this[_0xf61154(0x2c7)][_0xf61154(0x39d)],this[_0xf61154(0x2c7)][_0xf61154(0x30e)]),_0x29a96d=this[_0xf61154(0x2c7)][_0xf61154(0x381)]===_0xf61154(0x213);if(_0x33dcd3[_0xf61154(0x1f3)]>0x0){if(_0x23a312[_0xf61154(0x18a)](),_0x29a96d){let _0x26c758=_0x452cda,_0x3d0394=_0x1c1485,_0xc58ea4=_0x258b6f[_0xf61154(0x403)],_0x5a7225=_0x3efc49['y'],_0x4bc805=_0x2362d5+_0xbfb338,_0x51d2c2=_0x3efc49['y']-_0x3d0394/0x2,_0x4bab1f=_0x2362d5+_0xbfb338+_0xc58ea4;_0x23a312[_0xf61154(0x2fd)](_0x4bc805,_0x5a7225),_0x23a312[_0xf61154(0x309)](_0x4bab1f,_0x5a7225),_0x33dcd3[_0xf61154(0x35f)]((_0x597cc5,_0x1ae129)=>{const _0x74343=_0xf61154;let _0x4eec8d=_0x4bab1f+_0x1ae129*(_0x26c758+_0xc58ea4);if(_0x1ae129>0x0){let _0x1e1f8b=_0x4bab1f+(_0x1ae129-0x1)*(_0x26c758+_0xc58ea4)+_0x26c758;_0x23a312[_0x74343(0x2fd)](_0x1e1f8b,_0x5a7225),_0x23a312[_0x74343(0x309)](_0x4eec8d,_0x5a7225);}_0x23a312[_0x74343(0x2fd)](_0x4eec8d,_0x5a7225),_0x23a312[_0x74343(0x309)](_0x4eec8d+_0x26c758,_0x5a7225);}),_0x23a312[_0xf61154(0x45a)](),_0x33dcd3[_0xf61154(0x35f)]((_0x5c06f6,_0x19844f)=>{const _0x5eaf94=_0xf61154;Z(_0x23a312,_0x4bab1f+_0x19844f*(_0x26c758+_0xc58ea4),_0x51d2c2,_0x26c758,_0x3d0394,X[_0x5eaf94(0x295)]),_0x23a312[_0x5eaf94(0x285)]=X['ghostFillColor'],_0x23a312['fill'](),_0x23a312['stroke']();}),_0x33dcd3[_0xf61154(0x35f)]((_0x1c735a,_0x4be144)=>{const _0x296de0=_0xf61154;if(!(_0x296de0(0x39d)in _0x1c735a)||_0x1c735a[_0x296de0(0x39d)][_0x296de0(0x1f3)]===0x0)return;let _0x5b8e12=_0x4bab1f+_0x4be144*(_0x26c758+_0xc58ea4),_0x16c128=_0x5b8e12+_0x26c758/0x2,_0x36c2ff=_0x1c735a[_0x296de0(0x2a3)]===_0x296de0(0x392)?_0x296de0(0x392):'top',_0x5c4ace=_0x1c735a[_0x296de0(0x39d)][_0x296de0(0x3f9)](0x0,0x2),_0x94e684=_0x5c4ace[_0x296de0(0x1f3)]*_0x3d0394+Math[_0x296de0(0x3b7)](0x0,_0x5c4ace[_0x296de0(0x1f3)]-0x1)*_0x3df20a,_0x39b130=_0x5b8e12+_0x26c758+_0x258b6f[_0x296de0(0x2cc)],_0x5fb668=_0x36c2ff===_0x296de0(0x41d)?_0x51d2c2-_0x258895-_0x94e684:_0x51d2c2+_0x3d0394+_0x258895,_0xe0066d=_0x5fb668+_0x94e684/0x2;_0x23a312['beginPath'](),_0x23a312[_0x296de0(0x2fd)](_0x16c128,_0x36c2ff===_0x296de0(0x41d)?_0x51d2c2:_0x51d2c2+_0x3d0394),_0x23a312[_0x296de0(0x309)](_0x16c128,_0xe0066d),_0x23a312['lineTo'](_0x39b130,_0xe0066d),_0x5c4ace[_0x296de0(0x35f)]((_0x1e5066,_0x4a5558)=>{const _0x3d1703=_0x296de0;let _0x11606a=_0x5fb668+_0x4a5558*(_0x3d0394+_0x3df20a)+_0x3d0394/0x2;_0x23a312['moveTo'](_0x39b130,_0x11606a),_0x23a312[_0x3d1703(0x309)](_0x39b130+_0x26c758,_0x11606a);}),_0x23a312[_0x296de0(0x45a)](),_0x5c4ace['forEach']((_0x4e64cc,_0x50ad35)=>{const _0x344cab=_0x296de0;let _0x134946=_0x5fb668+_0x50ad35*(_0x3d0394+_0x3df20a);Z(_0x23a312,_0x39b130,_0x134946,_0x26c758,_0x3d0394,X[_0x344cab(0x295)]),_0x23a312['fillStyle']=X[_0x344cab(0x387)],_0x23a312[_0x344cab(0x31a)](),_0x23a312[_0x344cab(0x45a)]();});});}else{let _0x135a1e=_0x3efc49['x'],_0x63b62=_0x26762b+_0x48c081,_0x2d18eb=_0x258b6f[_0xf61154(0x403)],_0xe36feb=_0x26762b+_0x48c081+_0x2d18eb,_0x289795=_0xe36feb+(_0x33dcd3['length']-0x1)*(_0x1c1485+_0x2d18eb)+_0x1c1485/0x2;_0x23a312[_0xf61154(0x2fd)](_0x135a1e,_0x63b62),_0x23a312[_0xf61154(0x309)](_0x135a1e,_0x289795),_0x33dcd3[_0xf61154(0x35f)]((_0x4e3b46,_0xa32345)=>{const _0xc7b3b4=_0xf61154;let _0x2548fb=_0xe36feb+_0xa32345*(_0x1c1485+_0x2d18eb)+_0x1c1485/0x2,_0x18164d=_0x4e3b46['side']==='right'?_0xc7b3b4(0x171):'left',_0x573370=_0x18164d==='right'?_0x135a1e+_0x258b6f[_0xc7b3b4(0x2cc)]:_0x135a1e-_0x258b6f[_0xc7b3b4(0x2cc)]-_0x452cda,_0x4df466=_0x18164d===_0xc7b3b4(0x171)?_0x573370:_0x573370+_0x452cda;_0x23a312['moveTo'](_0x135a1e,_0x2548fb),_0x23a312['lineTo'](_0x4df466,_0x2548fb);}),_0x23a312[_0xf61154(0x45a)](),_0x33dcd3['forEach']((_0x1840e4,_0x3a8f63)=>{const _0x2558d9=_0xf61154;let _0x591ff6=_0xe36feb+_0x3a8f63*(_0x1c1485+_0x2d18eb);Z(_0x23a312,(_0x1840e4[_0x2558d9(0x2a3)]===_0x2558d9(0x171)?_0x2558d9(0x171):'left')==_0x2558d9(0x171)?_0x135a1e+_0x258b6f['branchGap']:_0x135a1e-_0x258b6f['branchGap']-_0x452cda,_0x591ff6,_0x452cda,_0x1c1485,X['ghostRadius']),_0x23a312[_0x2558d9(0x285)]=X[_0x2558d9(0x387)],_0x23a312[_0x2558d9(0x31a)](),_0x23a312[_0x2558d9(0x45a)]();}),_0x33dcd3[_0xf61154(0x35f)]((_0xcfb7f1,_0x2faeb5)=>{const _0x3a3b05=_0xf61154;if(!(_0x3a3b05(0x39d)in _0xcfb7f1)||_0xcfb7f1['children'][_0x3a3b05(0x1f3)]===0x0)return;let _0xbaf616=_0xe36feb+_0x2faeb5*(_0x1c1485+_0x2d18eb)+_0x1c1485/0x2,_0x5999cf=_0xcfb7f1[_0x3a3b05(0x2a3)]==='right'?_0x3a3b05(0x171):_0x3a3b05(0x233),_0xda3c0d=_0xcfb7f1[_0x3a3b05(0x39d)][_0x3a3b05(0x3f9)](0x0,0x2),_0x4cd00d=_0xda3c0d[_0x3a3b05(0x1f3)]*_0x1c1485+Math[_0x3a3b05(0x3b7)](0x0,_0xda3c0d[_0x3a3b05(0x1f3)]-0x1)*_0x3df20a,_0x4c844c=_0x5999cf===_0x3a3b05(0x171)?_0x135a1e+_0x258b6f[_0x3a3b05(0x2cc)]:_0x135a1e-_0x258b6f[_0x3a3b05(0x2cc)]-_0x452cda,_0x47415b=_0x5999cf==='right'?_0x4c844c+_0x452cda+_0x258895:_0x4c844c-_0x258895-_0x452cda,_0x3236dd=_0xbaf616-_0x4cd00d/0x2,_0x36c712=_0x5999cf===_0x3a3b05(0x171)?_0x4c844c+_0x452cda:_0x4c844c,_0x32c6fb=_0x5999cf===_0x3a3b05(0x171)?_0x47415b:_0x47415b+_0x452cda;_0x23a312[_0x3a3b05(0x18a)](),_0x23a312[_0x3a3b05(0x2fd)](_0x36c712,_0xbaf616),_0x23a312['lineTo'](_0x32c6fb,_0xbaf616),_0xda3c0d['forEach']((_0x595865,_0xddf2a7)=>{const _0x58a5aa=_0x3a3b05;let _0x5bcc89=_0x3236dd+_0xddf2a7*(_0x1c1485+_0x3df20a)+_0x1c1485/0x2;_0x23a312[_0x58a5aa(0x2fd)](_0x32c6fb,_0x5bcc89),_0x23a312['lineTo'](_0x5999cf===_0x58a5aa(0x171)?_0x47415b+_0x452cda:_0x47415b,_0x5bcc89);}),_0x23a312['stroke'](),_0xda3c0d[_0x3a3b05(0x35f)]((_0x428a96,_0x3efb67)=>{const _0x1c3aec=_0x3a3b05;let _0x39ffca=_0x3236dd+_0x3efb67*(_0x1c1485+_0x3df20a);Z(_0x23a312,_0x47415b,_0x39ffca,_0x452cda,_0x1c1485,X[_0x1c3aec(0x295)]),_0x23a312[_0x1c3aec(0x285)]=X[_0x1c3aec(0x387)],_0x23a312[_0x1c3aec(0x31a)](),_0x23a312[_0x1c3aec(0x45a)]();});});}}}else{if(mr(this[_0xf61154(0x2c7)][_0xf61154(0x381)])){let _0x4fb45b=this[_0xf61154(0x2c7)][_0xf61154(0x39d)]??[],_0x327a45=_0x26762b+_0x48c081,_0x165ae5=_0x327a45+_0x258895,_0x385ec7=_0x3efc49['x'];if(_0x4fb45b['length']>0x0){let _0x538a16=_0x165ae5+(_0x4fb45b[_0xf61154(0x1f3)]-0x1)*(_0x1c1485+_0x3df20a)+_0x1c1485/0x2;_0x23a312[_0xf61154(0x18a)](),_0x23a312['moveTo'](_0x385ec7,_0x327a45),_0x23a312[_0xf61154(0x309)](_0x385ec7,_0x538a16),_0x4fb45b[_0xf61154(0x35f)]((_0x253afb,_0x378e7d)=>{const _0x246180=_0xf61154;let _0x48e0a8=gr(_0x253afb,_0x378e7d,this['_state']['structureKind']),_0x37096f=_0x165ae5+_0x378e7d*(_0x1c1485+_0x3df20a),_0x1a79e4=_0x48e0a8===_0x246180(0x171)?_0x385ec7+_0x258895:_0x385ec7-_0x258895-_0x452cda,_0x5470b9=_0x37096f+_0x1c1485/0x2;_0x23a312[_0x246180(0x2fd)](_0x385ec7,_0x5470b9),_0x23a312[_0x246180(0x309)](_0x48e0a8===_0x246180(0x171)?_0x1a79e4:_0x1a79e4+_0x452cda,_0x5470b9);}),_0x23a312[_0xf61154(0x45a)](),_0x4fb45b[_0xf61154(0x35f)]((_0x5396b9,_0x121555)=>{const _0x2eb262=_0xf61154;let _0x1f938b=gr(_0x5396b9,_0x121555,this[_0x2eb262(0x2c7)][_0x2eb262(0x381)]),_0x4f1eb4=_0x165ae5+_0x121555*(_0x1c1485+_0x3df20a);Z(_0x23a312,_0x1f938b===_0x2eb262(0x171)?_0x385ec7+_0x258895:_0x385ec7-_0x258895-_0x452cda,_0x4f1eb4,_0x452cda,_0x1c1485,X[_0x2eb262(0x295)]),_0x23a312['fillStyle']=X[_0x2eb262(0x387)],_0x23a312['fill'](),_0x23a312['stroke']();});}}else _0x4ad199&&['top',_0xf61154(0x392)]['forEach'](_0x4ced08=>{const _0x56b9b3=_0xf61154;let _0x25d18e=_0x540921[_0x4ced08];if(_0x25d18e['length']===0x0)return;let _0x4b0eec=_0x25d18e[_0x56b9b3(0x1f3)]*_0x452cda+Math[_0x56b9b3(0x3b7)](0x0,_0x25d18e[_0x56b9b3(0x1f3)]-0x1)*_0x3df20a,_0x4b1bd0=_0x3efc49['x']-_0x4b0eec/0x2,_0x13baa3=_0x4ced08==='bottom'?_0x26762b+_0x48c081:_0x26762b,_0x3538f4=_0x4ced08===_0x56b9b3(0x392)?_0x13baa3+_0x258b6f[_0x56b9b3(0x2cc)]:_0x13baa3-_0x258b6f['branchGap'],_0x1be0ea=_0x4ced08==='bottom'?_0x26762b+_0x48c081+_0x258895:_0x26762b-_0x258895-_0x1c1485;_0x23a312[_0x56b9b3(0x18a)](),_0x23a312[_0x56b9b3(0x2fd)](_0x3efc49['x'],_0x13baa3),_0x23a312[_0x56b9b3(0x309)](_0x3efc49['x'],_0x3538f4),_0x25d18e[_0x56b9b3(0x1f3)]>0x1&&(_0x23a312[_0x56b9b3(0x2fd)](_0x4b1bd0+_0x452cda/0x2,_0x3538f4),_0x23a312['lineTo'](_0x4b1bd0+_0x4b0eec-_0x452cda/0x2,_0x3538f4)),_0x25d18e['forEach']((_0x5a1c60,_0x4b66fd)=>{const _0x15e9e1=_0x56b9b3;let _0x35cbe2=_0x4b1bd0+_0x4b66fd*(_0x452cda+_0x3df20a)+_0x452cda/0x2;_0x23a312['moveTo'](_0x35cbe2,_0x3538f4),_0x23a312['lineTo'](_0x35cbe2,_0x4ced08===_0x15e9e1(0x392)?_0x1be0ea:_0x1be0ea+_0x1c1485);}),_0x23a312['stroke'](),_0x25d18e[_0x56b9b3(0x35f)]((_0x22bdb4,_0x357653)=>{const _0x5f0bce=_0x56b9b3;Z(_0x23a312,_0x4b1bd0+_0x357653*(_0x452cda+_0x3df20a),_0x1be0ea,_0x452cda,_0x1c1485,X[_0x5f0bce(0x295)]),_0x23a312[_0x5f0bce(0x285)]=X[_0x5f0bce(0x387)],_0x23a312[_0x5f0bce(0x31a)](),_0x23a312[_0x5f0bce(0x45a)]();});});}(_0x4ad199||mr(this['_state'][_0xf61154(0x381)])||hr(this[_0xf61154(0x2c7)][_0xf61154(0x381)])?[]:['left',_0xf61154(0x171)])['forEach'](_0x238cd9=>{const _0x3d6f5f=_0xf61154;let _0x32fe0e=_0x540921[_0x238cd9];if(_0x32fe0e[_0x3d6f5f(0x1f3)]===0x0)return;let _0x33f480=_0x32fe0e['length']*_0x1c1485+Math[_0x3d6f5f(0x3b7)](0x0,_0x32fe0e[_0x3d6f5f(0x1f3)]-0x1)*_0x3df20a,_0x2123bd=_0x3efc49['y']-_0x33f480/0x2,_0x557ffe=_0x238cd9==='right'?_0x2362d5+_0xbfb338:_0x2362d5,_0x731f50=_0x238cd9==='right'?_0x557ffe+_0x258b6f[_0x3d6f5f(0x2cc)]:_0x557ffe-_0x258b6f[_0x3d6f5f(0x2cc)],_0x31af64=_0x238cd9===_0x3d6f5f(0x171)?_0x2362d5+_0xbfb338+_0x258895:_0x2362d5-_0x258895-_0x452cda;_0x23a312[_0x3d6f5f(0x18a)](),_0x23a312[_0x3d6f5f(0x2fd)](_0x557ffe,_0x3efc49['y']),_0x23a312[_0x3d6f5f(0x309)](_0x731f50,_0x3efc49['y']),_0x32fe0e[_0x3d6f5f(0x1f3)]>0x1&&(_0x23a312[_0x3d6f5f(0x2fd)](_0x731f50,_0x2123bd+_0x1c1485/0x2),_0x23a312['lineTo'](_0x731f50,_0x2123bd+_0x33f480-_0x1c1485/0x2)),_0x32fe0e[_0x3d6f5f(0x35f)]((_0x36b103,_0x11c37d)=>{const _0x233648=_0x3d6f5f;let _0x2ea9f5=_0x2123bd+_0x11c37d*(_0x1c1485+_0x3df20a)+_0x1c1485/0x2;_0x23a312[_0x233648(0x2fd)](_0x731f50,_0x2ea9f5),_0x23a312['lineTo'](_0x238cd9===_0x233648(0x171)?_0x31af64:_0x31af64+_0x452cda,_0x2ea9f5);}),_0x23a312[_0x3d6f5f(0x45a)](),_0x32fe0e['forEach']((_0x50cd03,_0x391f47)=>{const _0x5a8e70=_0x3d6f5f;let _0x599323=_0x2123bd+_0x391f47*(_0x1c1485+_0x3df20a);Z(_0x23a312,_0x31af64,_0x599323,_0x452cda,_0x1c1485,X[_0x5a8e70(0x295)]),_0x23a312[_0x5a8e70(0x285)]=X[_0x5a8e70(0x387)],_0x23a312[_0x5a8e70(0x31a)](),_0x23a312[_0x5a8e70(0x45a)]();});}),Z(_0x23a312,_0x2362d5,_0x26762b,_0xbfb338,_0x48c081,X[_0xf61154(0x3eb)]),_0x23a312['fillStyle']=X['primaryColor'],_0x23a312[_0xf61154(0x31a)](),_0x23a312['stroke'](),_0x23a312['fillStyle']=X[_0xf61154(0x3d3)],_0x23a312[_0xf61154(0x44b)]=sn(X[_0xf61154(0x18d)],X[_0xf61154(0x177)],_0x572904),_0x23a312[_0xf61154(0x247)]='center',_0x23a312[_0xf61154(0x25d)]=_0xf61154(0x257);let _0x2751e4=X[_0xf61154(0x45f)]/_0x572904;return _0x23a312[_0xf61154(0x2ab)](_0x35edc8,_0x3efc49['x'],_0x3efc49['y'],Math[_0xf61154(0x3b7)](0x1,_0xbfb338-_0x2751e4*0x2)),_0x23a312[_0xf61154(0x251)](),this[_0xf61154(0x359)](!0x1),this;}};const yr={'children':[{'text':_0x35edc8,'orderKey':_0x1d4a72(0x0),'side':'right'},{'text':_0x35edc8,'orderKey':_0x1d4a72(0x1),'side':'right'},{'text':_0x35edc8,'orderKey':_0x1d4a72(0x2),'side':_0x1f10c6(0x171)}]};var br=class extends _0x494558{constructor(..._0x113b24){const _0x5d8349=_0x1f10c6;super(..._0x113b24),K(this,_0x5d8349(0x40e),yr);}[_0x1f10c6(0x457)](_0x3ff024){const _0x48d460=_0x1f10c6;var _0x573507;let _0x14cdb7=(_0x3ff024==null?void 0x0:_0x3ff024['children'])??(_0x3ff024==null||(_0x573507=_0x3ff024[_0x48d460(0x30e)])==null?void 0x0:_0x573507[_0x48d460(0x278)]['children']);this[_0x48d460(0x40e)]={'rootText':_0x3ff024==null?void 0x0:_0x3ff024['rootText'],'structureKind':_0x3ff024==null?void 0x0:_0x3ff024[_0x48d460(0x381)],'branchLineType':_0x3ff024==null?void 0x0:_0x3ff024[_0x48d460(0x42b)],'children':this[_0x48d460(0x186)](_0x14cdb7,_0x3ff024==null?void 0x0:_0x3ff024[_0x48d460(0x381)]),'blueprint':_0x3ff024!=null&&_0x3ff024[_0x48d460(0x30e)]?this[_0x48d460(0x18e)](_0x3ff024[_0x48d460(0x30e)]):void 0x0};}[_0x1f10c6(0x382)](){const _0x3fd9ae=_0x1f10c6;var _0xcf824;return{'rootText':this['_template'][_0x3fd9ae(0x237)],'structureKind':this[_0x3fd9ae(0x40e)][_0x3fd9ae(0x381)],'branchLineType':this['_template'][_0x3fd9ae(0x42b)],'children':(_0xcf824=this[_0x3fd9ae(0x40e)]['children'])==null?void 0x0:_0xcf824[_0x3fd9ae(0x28f)](_0x40bd6d=>({..._0x40bd6d})),'blueprint':this['_template']['blueprint']?this[_0x3fd9ae(0x18e)](this[_0x3fd9ae(0x40e)][_0x3fd9ae(0x30e)]):void 0x0};}['_cloneBlueprint'](_0x3529b8){const _0x31d769=_0x1f10c6;return{'title':_0x3529b8[_0x31d769(0x175)],'root':this[_0x31d769(0x29a)](_0x3529b8[_0x31d769(0x278)])};}[_0x1f10c6(0x29a)](_0x3162c7){const _0x328352=_0x1f10c6;return{..._0x3162c7,'foreignAttributes':_0x3162c7[_0x328352(0x430)]?{..._0x3162c7['foreignAttributes']}:void 0x0,'children':_0x3162c7[_0x328352(0x39d)][_0x328352(0x28f)](_0x5d8011=>this['_cloneBlueprintNode'](_0x5d8011))};}['_normalizeChildren'](_0x3ebc0a,_0x176a63){const _0x46dde9=_0x1f10c6;let _0x1fa217=!_0x3ebc0a,_0x1a8651=_0x3ebc0a??yr[_0x46dde9(0x39d)];return _0x1a8651==null?void 0x0:_0x1a8651[_0x46dde9(0x28f)]((_0x5ef8d5,_0x3a2d9c)=>({..._0x5ef8d5,'text':_0x5ef8d5[_0x46dde9(0x2e1)]??_0x35edc8,'side':this[_0x46dde9(0x25e)](_0x5ef8d5[_0x46dde9(0x2a3)],_0x3a2d9c,_0x176a63,_0x1fa217)}));}['_resolveChildSide'](_0x2714e3,_0x3a2ac1,_0x7f7e35,_0x536626){const _0x51df53=_0x1f10c6;return _0x7f7e35===_0x51df53(0x37d)?_0x536626?_0x51df53(0x392):_0x2714e3??_0x51df53(0x392):_0x7f7e35===_0x51df53(0x3f2)?_0x536626?_0x51df53(0x233):_0x2714e3??_0x51df53(0x233):_0x7f7e35==='tree-right'?_0x536626?_0x51df53(0x171):_0x2714e3??_0x51df53(0x171):_0x7f7e35===_0x51df53(0x2d6)?_0x536626?_0x3a2ac1%0x2==0x0?_0x51df53(0x233):_0x51df53(0x171):_0x2714e3??(_0x3a2ac1%0x2==0x0?_0x51df53(0x233):'right'):_0x7f7e35===_0x51df53(0x213)?_0x536626?_0x3a2ac1%0x2==0x0?_0x51df53(0x41d):'bottom':_0x2714e3??(_0x3a2ac1%0x2==0x0?_0x51df53(0x41d):_0x51df53(0x392)):_0x7f7e35===_0x51df53(0x1d3)?_0x536626?_0x3a2ac1%0x2==0x0?'left':_0x51df53(0x171):_0x2714e3??(_0x3a2ac1%0x2==0x0?_0x51df53(0x233):_0x51df53(0x171)):_0x2714e3;}};function xr(_0x2ef2a1,_0xb07639){const _0x3602de=_0x1f10c6;let _0x42f821=Number['isFinite'](_0xb07639[_0x3602de(0x368)])&&_0xb07639['zoomRatio']>0x0?_0xb07639[_0x3602de(0x368)]:0x1;return{'x':Math[_0x3602de(0x272)]((_0x2ef2a1['offsetX']-_0xb07639[_0x3602de(0x34e)]['x'])/_0x42f821),'y':Math[_0x3602de(0x272)]((_0x2ef2a1[_0x3602de(0x2e0)]-_0xb07639[_0x3602de(0x34e)]['y'])/_0x42f821)};}function Sr(_0x18484a){const _0x3bac3e=_0x1f10c6;var _0x5270a2;if(_0x18484a!=null&&_0x18484a[_0x3bac3e(0x3c0)]){_0x18484a[_0x3bac3e(0x3c0)]();return;}_0x18484a==null||(_0x5270a2=_0x18484a[_0x3bac3e(0x1fe)])==null||_0x5270a2['call'](_0x18484a);}function Cr(_0x11bcf3){const _0x23c712=_0x1f10c6;var _0x249e81;return _0x11bcf3[_0x23c712(0x3fb)]===_0x529842['MindMap']&&((_0x249e81=_0x11bcf3[_0x23c712(0x2c6)])==null?void 0x0:_0x249e81['type'])===_0x529842['MindMap'];}let wr=class extends _0x9852b5{constructor(_0x497f05,_0x35c5d8,_0x45abe1,_0x7e4e6a,_0x2e5c08,_0xb45ba9,_0x1a7efa){const _0x4bf576=_0x1f10c6;super(),this[_0x4bf576(0x3e1)]=_0x497f05,this['_instanceSrv']=_0x35c5d8,this[_0x4bf576(0x376)]=_0x45abe1,this[_0x4bf576(0x210)]=_0x7e4e6a,this[_0x4bf576(0x1ff)]=_0x2e5c08,this[_0x4bf576(0x2cf)]=_0xb45ba9,this[_0x4bf576(0x31f)]=_0x1a7efa,K(this,_0x4bf576(0x374),null),K(this,_0x4bf576(0x280),null),this[_0x4bf576(0x347)]();}[_0x1f10c6(0x347)](){const _0x16645e=_0x1f10c6;var _0x2172bd;let {scene:_0x50815f,unitId:_0x448a31}=this[_0x16645e(0x3e1)],_0x52512a=this[_0x16645e(0x2b1)][_0x16645e(0x2b6)](_0x448a31,_0x25af0d['UNIVER_BOARD']);if(!_0x52512a)return;let _0xd37301=(_0x2172bd=_0x50815f[_0x16645e(0x1ef)])==null?void 0x0:_0x2172bd[_0x16645e(0x3f4)]({'priority':0x4,'next':([_0x1a0dfc,_0x56304a])=>this[_0x16645e(0x3d9)](_0x1a0dfc,_0x56304a)}),_0x497607=_0x50815f[_0x16645e(0x38f)][_0x16645e(0x3f4)]({'priority':0x4,'next':([_0x1641c1,_0x22d644])=>this[_0x16645e(0x2da)](_0x52512a,_0x1641c1,_0x22d644)});this[_0x16645e(0x1c8)](_0x50821e(()=>Sr(_0xd37301))),this[_0x16645e(0x1c8)](_0x50821e(()=>Sr(_0x497607)));let _0x32e28f=this[_0x16645e(0x376)]['state$'][_0x16645e(0x3c8)](()=>this['_syncPreviewObject']());this[_0x16645e(0x1c8)](_0x50821e(()=>Sr(_0x32e28f))),this[_0x16645e(0x1c8)](_0x50821e(()=>{const _0x1d4a84=_0x16645e;this[_0x1d4a84(0x148)]();})),this[_0x16645e(0x458)]();}['_syncPreviewObject'](){const _0x3c62c9=_0x1f10c6;var _0x49a858,_0x1f5da3;let _0x18df04=this[_0x3c62c9(0x376)][_0x3c62c9(0x193)]();if(!Cr(_0x18df04)){this['_removePreviewObject']();return;}let _0x12fc44=this[_0x3c62c9(0x149)](),_0x580bae=this[_0x3c62c9(0x1ff)][_0x3c62c9(0x382)]();_0x12fc44[_0x3c62c9(0x3c5)]({'point':this[_0x3c62c9(0x280)],'structureKind':_0x580bae[_0x3c62c9(0x381)],'children':_0x580bae[_0x3c62c9(0x39d)],'blueprint':_0x580bae[_0x3c62c9(0x30e)],'zoomRatio':_0x18df04[_0x3c62c9(0x368)]}),(_0x49a858=(_0x1f5da3=this[_0x3c62c9(0x3e1)]['scene'])[_0x3c62c9(0x359)])==null||_0x49a858[_0x3c62c9(0x266)](_0x1f5da3,!0x0);}[_0x1f10c6(0x149)](){const _0x2aa50d=_0x1f10c6;var _0x4eceb4,_0x36c06a;if(this[_0x2aa50d(0x374)])return this[_0x2aa50d(0x374)];let _0x2a93e6=this[_0x2aa50d(0x1ff)][_0x2aa50d(0x382)](),_0x1f1c64=new vr(dr,{'point':this[_0x2aa50d(0x280)],'structureKind':_0x2a93e6[_0x2aa50d(0x381)],'children':_0x2a93e6[_0x2aa50d(0x39d)],'blueprint':_0x2a93e6[_0x2aa50d(0x30e)],'zoomRatio':this[_0x2aa50d(0x376)][_0x2aa50d(0x193)]()[_0x2aa50d(0x368)]});return this[_0x2aa50d(0x374)]=_0x1f1c64,(_0x4eceb4=(_0x36c06a=this[_0x2aa50d(0x3e1)][_0x2aa50d(0x156)])[_0x2aa50d(0x416)])==null||_0x4eceb4[_0x2aa50d(0x266)](_0x36c06a,_0x1f1c64,fr),_0x1f1c64;}[_0x1f10c6(0x148)](){const _0x19a842=_0x1f10c6;var _0x1142de,_0x3c706c,_0x54f9c1,_0x5e04e1;if(!this[_0x19a842(0x374)]){this[_0x19a842(0x280)]=null;return;}(_0x1142de=(_0x3c706c=this[_0x19a842(0x3e1)][_0x19a842(0x156)])['removeObjects'])==null||_0x1142de['call'](_0x3c706c,[this['_previewObject']]),this[_0x19a842(0x374)]=null,this[_0x19a842(0x280)]=null,(_0x54f9c1=(_0x5e04e1=this['_renderContext'][_0x19a842(0x156)])[_0x19a842(0x359)])==null||_0x54f9c1[_0x19a842(0x266)](_0x5e04e1,!0x0);}['_getPointFromEvent'](_0x260d16){const _0x577c39=_0x1f10c6;let _0x3e3161=this[_0x577c39(0x376)][_0x577c39(0x193)]();return xr(_0x260d16,{'panOffset':_0x3e3161['viewportPanOffset'],'zoomRatio':_0x3e3161[_0x577c39(0x368)]});}[_0x1f10c6(0x190)](_0xba5615){const _0x387978=_0x1f10c6;return{'left':Math[_0x387978(0x272)](_0xba5615['x']-_0x4c0c6a[_0x387978(0x16f)]/0x2),'top':Math['round'](_0xba5615['y']-_0x4c0c6a[_0x387978(0x2b7)]/0x2)};}[_0x1f10c6(0x3d9)](_0x32e7c8,_0x5a3f7f){const _0x10bf2c=_0x1f10c6;Cr(this[_0x10bf2c(0x376)][_0x10bf2c(0x193)]())&&(this[_0x10bf2c(0x280)]=this['_getPointFromEvent'](_0x32e7c8),this[_0x10bf2c(0x458)](),_0x5a3f7f[_0x10bf2c(0x435)]());}async[_0x1f10c6(0x2da)](_0x34ae2f,_0x30085c,_0x7a0712){const _0x16f0ea=_0x1f10c6;let _0x5911da=await this['_insertMindMap'](_0x34ae2f,_0x30085c,_0x7a0712);if(!_0x5911da)return;let _0x4f1532={'unitId':this[_0x16f0ea(0x3e1)][_0x16f0ea(0x147)],'subUnitId':_0x5911da[_0x16f0ea(0x3cd)]};this[_0x16f0ea(0x31f)][_0x16f0ea(0x200)](),this[_0x16f0ea(0x31f)][_0x16f0ea(0x354)]({..._0x4f1532,'shapeId':_0x5911da[_0x16f0ea(0x254)],'shapeKey':_0x10c90a(_0x4f1532[_0x16f0ea(0x147)],_0x5911da[_0x16f0ea(0x254)]),'visible':!0x0});}async[_0x1f10c6(0x456)](_0x15022c,_0x5009b5,_0x326dda){const _0x246faf=_0x1f10c6;var _0x4f0907;let _0x4b6bf8=this[_0x246faf(0x376)]['getState'](),_0x5953ae=_0x5009b5[_0x246faf(0x2d3)]??0x0;if(!Cr(_0x4b6bf8)||_0x5953ae!==0x0)return null;let _0x3ebdfd=this[_0x246faf(0x3ae)](_0x5009b5),_0x4366a9=this[_0x246faf(0x190)](_0x3ebdfd),_0x201e68=this[_0x246faf(0x1ff)]['getTemplate'](),_0x82231a=_0x4e853d(0x6),_0x5e1736=_0x15022c['getActivePageId'](),_0x1109e8=this[_0x246faf(0x210)][_0x246faf(0x189)](_0x1e1a00['id'],{'unitId':this[_0x246faf(0x3e1)][_0x246faf(0x147)],'subUnitId':_0x5e1736,'left':_0x4366a9[_0x246faf(0x233)],'top':_0x4366a9[_0x246faf(0x41d)],'rootNodeId':_0x82231a,'rootText':_0x201e68[_0x246faf(0x237)],'structureKind':_0x201e68[_0x246faf(0x381)],'branchLineType':_0x201e68['branchLineType'],'children':_0x201e68[_0x246faf(0x39d)],'blueprint':_0x201e68['blueprint']});if(this[_0x246faf(0x376)][_0x246faf(0x453)](_0x529842['Select']),_0x326dda['stopPropagation'](),(_0x4f0907=_0x5009b5[_0x246faf(0x188)])==null||_0x4f0907[_0x246faf(0x266)](_0x5009b5),!await _0x1109e8||this[_0x246faf(0x3d6)])return null;let _0x53cc52={'unitId':this[_0x246faf(0x3e1)][_0x246faf(0x147)],'subUnitId':_0x5e1736};return this[_0x246faf(0x2cf)][_0x246faf(0x29f)](_0x53cc52,[_0x82231a],_0x82231a),{'rootNodeId':_0x82231a,'subUnitId':_0x5e1736};}};wr=J([q(0x1,_0x1d8bf1),q(0x2,_0x50e115),q(0x3,_0x56aea3),q(0x4,_0x2e0f98(br)),q(0x5,_0x10fb2b),q(0x6,_0x2e0f98(_0x157676))],wr);var Tr=class extends _0x494558{constructor(..._0x349710){const _0x356072=_0x1f10c6;super(..._0x349710),K(this,'_refresh$',new _0x3731e6()),K(this,_0x356072(0x23c),this[_0x356072(0x240)]['asObservable']());}[_0x1f10c6(0x3ad)](_0x439fe6){const _0x3d44cf=_0x1f10c6;this[_0x3d44cf(0x240)][_0x3d44cf(0x2f6)](_0x439fe6);}[_0x1f10c6(0x3c0)](){const _0x129f3e=_0x1f10c6;this[_0x129f3e(0x240)]['complete'](),super[_0x129f3e(0x3c0)]();}};function Er(_0x14a8a4){const _0x5aeafa=_0x1f10c6;return typeof _0x14a8a4==_0x5aeafa(0x419)&&Number['isFinite'](_0x14a8a4)&&_0x14a8a4>0x0;}function Dr(_0xe92c01,_0x5b4676,_0x3de910){const _0x33710a=_0x1f10c6;let _0x463c9a=_0xe92c01[_0x5b4676],_0x5b68ed=_0x51f94c(_0x463c9a==null?void 0x0:_0x463c9a[_0x33710a(0x333)]);if(!_0x463c9a||!_0x5b68ed)return null;let _0xd3c438=_0x2fe75a(_0x463c9a,_0x3de910);if(!_0xd3c438)return null;let _0x54e002=_0x463c9a[_0x33710a(0x184)]??_0x463c9a['element'][_0x33710a(0x184)],_0x1dd493={..._0xe92c01,[_0x5b4676]:{..._0x463c9a,'transform':{..._0x54e002,'width':_0xd3c438[_0x33710a(0x246)],'height':_0xd3c438[_0x33710a(0x26c)]},'element':{..._0x463c9a['element'],'transform':{..._0x463c9a['element'][_0x33710a(0x184)],'width':_0xd3c438[_0x33710a(0x246)],'height':_0xd3c438['height']}}}};return _0x384f9e(_0x1dd493,_0x5b68ed[_0x33710a(0x3f1)]);}let Or=class extends _0x9852b5{constructor(_0x42c1a8,_0x669b12,_0x34af5d,_0x719324,_0x1a9144,_0x4a0e21){const _0x2ac104=_0x1f10c6;super(),this[_0x2ac104(0x3e1)]=_0x42c1a8,this['_intrinsicSizeService']=_0x669b12,this[_0x2ac104(0x384)]=_0x34af5d,this[_0x2ac104(0x1e0)]=_0x719324,this['_previewRefreshService']=_0x1a9144,this[_0x2ac104(0x210)]=_0x4a0e21,K(this,_0x2ac104(0x2db),null),K(this,_0x2ac104(0x204),{'match':_0x12eb7b=>_0x12eb7b[_0x2ac104(0x147)]===this[_0x2ac104(0x3e1)][_0x2ac104(0x147)]&&!!_0x51f94c(_0x12eb7b[_0x2ac104(0x333)]),'resolveHostSize':_0x517dfd=>this[_0x2ac104(0x390)](_0x517dfd),'previewHostSize':_0x4da0f6=>this[_0x2ac104(0x1f4)](_0x4da0f6),'updateHostSize':_0x5c39b8=>this[_0x2ac104(0x158)](_0x5c39b8),'updateShapeText':_0x64f59d=>this[_0x2ac104(0x195)](_0x64f59d)}),this['disposeWithMe'](this[_0x2ac104(0x461)]['registerProvider'](this[_0x2ac104(0x204)])),this['_initEditingRestore'](),this[_0x2ac104(0x1c8)](_0x50821e(()=>this[_0x2ac104(0x24e)]()));}[_0x1f10c6(0x158)](_0x583520){const _0xd15b1d=_0x1f10c6;return this[_0xd15b1d(0x1f4)](_0x583520);}[_0x1f10c6(0x195)](_0x74a3e1){const _0x4b870a=_0x1f10c6;let _0x5ccf71=_0x74a3e1['params']['hostSize']?this['_resolveHostSize']({'elementData':_0x74a3e1[_0x4b870a(0x19b)],'params':_0x74a3e1['params'][_0x4b870a(0x3e9)]}):null,_0x3ac0c8=_0x74a3e1['elementData'][_0x4b870a(0x184)]??_0x74a3e1[_0x4b870a(0x19b)]['element']['transform'];return(!_0x5ccf71||_0x5ccf71[_0x4b870a(0x246)]===_0x3ac0c8[_0x4b870a(0x246)]&&_0x5ccf71[_0x4b870a(0x26c)]===_0x3ac0c8[_0x4b870a(0x26c)])&&_0x1f8885(_0x74a3e1['params'][_0x4b870a(0x3f6)],_0x74a3e1[_0x4b870a(0x316)]['oldShapeText'])?!0x0:this[_0x4b870a(0x210)][_0x4b870a(0x18b)](_0x1c2b74['id'],{'unitId':_0x74a3e1['params'][_0x4b870a(0x147)],'subUnitId':_0x74a3e1[_0x4b870a(0x316)][_0x4b870a(0x3cd)],'nodeId':_0x74a3e1['params'][_0x4b870a(0x3d7)],'shapeText':_0x74a3e1[_0x4b870a(0x316)][_0x4b870a(0x3f6)],..._0x5ccf71?{'hostSize':{'width':_0x5ccf71['width'],'height':_0x5ccf71[_0x4b870a(0x26c)]}}:null});}[_0x1f10c6(0x1f4)](_0xb54e93){const _0x1bbe23=_0x1f10c6;let _0x401a0a=this[_0x1bbe23(0x390)](_0xb54e93);if(!_0x401a0a)return!0x1;let _0xc784dd=_0xb54e93['elementData'][_0x1bbe23(0x184)]??_0xb54e93['elementData']['element']['transform'];return!this['_activePreview']&&_0xc784dd[_0x1bbe23(0x246)]===_0x401a0a[_0x1bbe23(0x246)]&&_0xc784dd[_0x1bbe23(0x26c)]===_0x401a0a[_0x1bbe23(0x26c)]||this[_0x1bbe23(0x3d5)](_0xb54e93,_0x401a0a),!0x0;}[_0x1f10c6(0x390)](_0x5c515e){const _0x38b6df=_0x1f10c6;return!Er(_0x5c515e['params'][_0x38b6df(0x246)])||!Er(_0x5c515e[_0x38b6df(0x316)]['height'])?null:_0x2fe75a(_0x5c515e[_0x38b6df(0x19b)],{'width':_0x5c515e[_0x38b6df(0x316)][_0x38b6df(0x246)],'height':_0x5c515e['params'][_0x38b6df(0x26c)]});}[_0x1f10c6(0x418)](){const _0x3d812b=_0x1f10c6;this[_0x3d812b(0x1c8)](_0x50821e(this[_0x3d812b(0x1e0)][_0x3d812b(0x191)][_0x3d812b(0x36e)](_0x2c3b45(this['dispose$']))[_0x3d812b(0x3c8)](_0x78bd53=>{const _0x2d3db1=_0x3d812b;_0x78bd53||this[_0x2d3db1(0x24e)]();})));}[_0x1f10c6(0x3d5)](_0x631fd6,_0x1ab851){const _0x27ce86=_0x1f10c6;var _0x2b7f38;let _0x226ee3=this[_0x27ce86(0x384)]['getElementData'](_0x631fd6['params'][_0x27ce86(0x147)],_0x631fd6['params']['subUnitId']),_0x3180d3=Dr(_0x226ee3,_0x631fd6[_0x27ce86(0x316)][_0x27ce86(0x3d7)],_0x1ab851),_0x1d3b7b=_0x51f94c((_0x2b7f38=_0x226ee3[_0x631fd6[_0x27ce86(0x316)][_0x27ce86(0x3d7)]])==null?void 0x0:_0x2b7f38[_0x27ce86(0x333)]);_0x3180d3&&_0x1d3b7b&&(this[_0x27ce86(0x2db)]={'unitId':_0x631fd6[_0x27ce86(0x316)]['unitId'],'subUnitId':_0x631fd6[_0x27ce86(0x316)][_0x27ce86(0x3cd)],'scopeId':_0x1d3b7b['structureScopeId']},this[_0x27ce86(0x358)](_0x3180d3,_0x1d3b7b[_0x27ce86(0x3f1)])&&this['_previewRefreshService'][_0x27ce86(0x3ad)]({'unitId':_0x631fd6[_0x27ce86(0x316)][_0x27ce86(0x147)],'subUnitId':_0x631fd6[_0x27ce86(0x316)][_0x27ce86(0x3cd)],'nodeId':_0x631fd6[_0x27ce86(0x316)][_0x27ce86(0x3d7)],'scopeId':_0x1d3b7b[_0x27ce86(0x3f1)]}));}[_0x1f10c6(0x24e)](){const _0x3de297=_0x1f10c6;let _0x45c9ff=this[_0x3de297(0x2db)];if(!_0x45c9ff)return;this[_0x3de297(0x2db)]=null;let _0x2570bd=this['_boardElementService']['getElementData'](_0x45c9ff['unitId'],_0x45c9ff['subUnitId']);this['_syncElementDataToScene'](_0x2570bd,_0x45c9ff[_0x3de297(0x3d1)])&&this[_0x3de297(0x45e)][_0x3de297(0x3ad)]({'unitId':_0x45c9ff['unitId'],'subUnitId':_0x45c9ff[_0x3de297(0x3cd)],'nodeId':_0x45c9ff[_0x3de297(0x3d1)],'scopeId':_0x45c9ff[_0x3de297(0x3d1)]});}['_syncElementDataToScene'](_0x2ba29f,_0x5e8681){const _0x39a8c1=_0x1f10c6;let _0x5b94b7=!0x1;if(Object['values'](_0x2ba29f)[_0x39a8c1(0x35f)](_0x4961eb=>{const _0x5d6179=_0x39a8c1;var _0x3fea1e;let _0x85fad5=_0x51f94c(_0x4961eb[_0x5d6179(0x333)]),_0x13cdfc=(_0x3fea1e=_0x4961eb[_0x5d6179(0x333)][_0x5d6179(0x36c)])==null?void 0x0:_0x3fea1e['structured'];if(_0x4961eb[_0x5d6179(0x142)]!==_0x5e8681&&(_0x85fad5==null?void 0x0:_0x85fad5[_0x5d6179(0x3f1)])!==_0x5e8681&&(_0x13cdfc==null?void 0x0:_0x13cdfc[_0x5d6179(0x3f1)])!==_0x5e8681)return;let _0x2c47d9=this[_0x5d6179(0x21b)](_0x4961eb['elementId']);_0x2c47d9&&(_0x5b94b7=_0x3e7b6d(_0x2c47d9,_0x4961eb,{'elementData':_0x2ba29f,'unitId':this[_0x5d6179(0x3e1)][_0x5d6179(0x147)]})||_0x5b94b7);}),_0x5b94b7){var _0x2d0cbf,_0x6e436d;this[_0x39a8c1(0x3e1)][_0x39a8c1(0x156)][_0x39a8c1(0x359)](!0x0),(_0x2d0cbf=(_0x6e436d=this[_0x39a8c1(0x3e1)][_0x39a8c1(0x156)])[_0x39a8c1(0x279)])==null||_0x2d0cbf[_0x39a8c1(0x266)](_0x6e436d);}return _0x5b94b7;}['_getSceneObject'](_0x21a4cf){const _0xd21ae4=_0x1f10c6;var _0x3992e9;let _0x38c7f9=_0x10c90a(this['_renderContext'][_0xd21ae4(0x147)],_0x21a4cf),_0x39d144=this[_0xd21ae4(0x3e1)][_0xd21ae4(0x156)];return((_0x3992e9=_0x39d144[_0xd21ae4(0x19f)])==null?void 0x0:_0x3992e9[_0xd21ae4(0x266)](_0x39d144,_0x38c7f9))??this['_renderContext'][_0xd21ae4(0x156)]['getObject'](_0x38c7f9)??null;}};Or=J([q(0x1,_0x2e0f98(_0x5c4bcf)),q(0x2,_0x2e0f98(_0x52d74d)),q(0x3,_0x2e0f98(_0x157676)),q(0x4,_0x2e0f98(Tr)),q(0x5,_0x56aea3)],Or);const $={'touchHitRadius':0x16,'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':Y[_0x1f10c6(0x3b2)],'surfaceColor':Y[_0x1f10c6(0x448)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':Y[_0x1f10c6(0x2ed)]};function kr(_0x2d13b9){const _0x2da7c6=_0x1f10c6;let _0x333476=$['radius'],_0x5dcf3a=$[_0x2da7c6(0x2bd)],_0x15e294=$['siblingHoverRadius'],_0x3d58fd=$[_0x2da7c6(0x31e)],_0x390c9d=$[_0x2da7c6(0x3bf)],_0x1f9ea6=_0x390c9d+$['siblingDotGap'],_0x4ea589=$[_0x2da7c6(0x336)],_0x320fc7=_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x41d)]+_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x26c)]/0x2,_0x3a9c04=_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x233)]+_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x246)]/0x2,_0x78a1=_0x2d13b9[_0x2da7c6(0x24d)]['left']-_0x333476-_0x3d58fd,_0x6aa01b=_0x2d13b9['bounds']['left']+_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x246)]+_0x333476+_0x3d58fd,_0x1d98c1=_0x2d13b9['bounds']['top']-_0x333476-_0x3d58fd,_0x4ba8fa=_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x41d)]+_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x26c)]+_0x333476+_0x3d58fd,_0x7d2f0c=_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x233)]-_0x5dcf3a-_0x3d58fd,_0x5712c4=_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x233)]+_0x2d13b9['bounds']['width']+_0x5dcf3a+_0x3d58fd,_0x2734b7=_0x2d13b9['bounds'][_0x2da7c6(0x41d)]-_0x5dcf3a-_0x3d58fd,_0x6d1ba8=_0x2d13b9[_0x2da7c6(0x24d)]['top']+_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x26c)]+_0x5dcf3a+_0x3d58fd,_0x3ad518=[],_0x4a8cbc=_0x2d13b9[_0x2da7c6(0x2a3)]==='top'||_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x392),_0x19bd79=_0x4a8cbc?_0x3a9c04:_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x233)?_0x78a1:_0x6aa01b,_0x436e30=_0x4a8cbc?_0x2d13b9[_0x2da7c6(0x2a3)]==='top'?_0x1d98c1:_0x4ba8fa:_0x320fc7;if(_0x2d13b9[_0x2da7c6(0x2fc)]&&_0x2d13b9[_0x2da7c6(0x20e)]>0x0)return _0x3ad518['push']({'kind':'toggle-collapse','x':_0x19bd79,'y':_0x436e30,'radius':_0x333476,'badgeCount':_0x2d13b9['collapsedDescendantCount']}),_0x3ad518;if(_0x2d13b9[_0x2da7c6(0x3bd)]?(_0x2d13b9['rootChildSides']??(_0x4a8cbc?[_0x2da7c6(0x41d),'bottom']:[_0x2da7c6(0x233),_0x2da7c6(0x171)]))[_0x2da7c6(0x35f)](_0x1b2181=>{const _0x1e9ff=_0x2da7c6;_0x1b2181==='top'?_0x3ad518[_0x1e9ff(0x292)]({'kind':_0x1e9ff(0x40d),'x':_0x3a9c04,'y':_0x2734b7,'radius':_0x5dcf3a}):_0x1b2181==='bottom'?_0x3ad518[_0x1e9ff(0x292)]({'kind':'add-child-bottom','x':_0x3a9c04,'y':_0x6d1ba8,'radius':_0x5dcf3a}):_0x1b2181===_0x1e9ff(0x233)?_0x3ad518['push']({'kind':_0x1e9ff(0x2b5),'x':_0x7d2f0c,'y':_0x320fc7,'radius':_0x5dcf3a}):_0x3ad518['push']({'kind':_0x1e9ff(0x386),'x':_0x5712c4,'y':_0x320fc7,'radius':_0x5dcf3a});}):(_0x3ad518[_0x2da7c6(0x292)]({'kind':_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x233)?'add-child-left':_0x2d13b9['side']===_0x2da7c6(0x41d)?_0x2da7c6(0x40d):_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x392)?'add-child-bottom':_0x2da7c6(0x386),'x':_0x4a8cbc?_0x3a9c04:_0x2d13b9['side']===_0x2da7c6(0x233)?_0x7d2f0c:_0x5712c4,'y':_0x4a8cbc?_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x41d)?_0x2734b7:_0x6d1ba8:_0x320fc7,'radius':_0x5dcf3a}),_0x4a8cbc?(_0x3ad518['push']({'kind':_0x2da7c6(0x217),'placement':_0x2da7c6(0x305),'x':_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x233)]-_0x1f9ea6,'y':_0x320fc7,'radius':_0x15e294,'visualRadius':_0x390c9d}),_0x3ad518[_0x2da7c6(0x292)]({'kind':_0x2da7c6(0x36d),'placement':_0x2da7c6(0x250),'x':_0x2d13b9[_0x2da7c6(0x24d)]['left']+_0x2d13b9['bounds'][_0x2da7c6(0x246)]+_0x1f9ea6,'y':_0x320fc7,'radius':_0x15e294,'visualRadius':_0x390c9d})):(_0x3ad518[_0x2da7c6(0x292)]({'kind':'add-sibling-before','placement':_0x2da7c6(0x305),'x':_0x3a9c04,'y':_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x41d)]-_0x1f9ea6,'radius':_0x15e294,'visualRadius':_0x390c9d}),_0x3ad518[_0x2da7c6(0x292)]({'kind':'add-sibling-after','placement':_0x2da7c6(0x250),'x':_0x3a9c04,'y':_0x2d13b9[_0x2da7c6(0x24d)][_0x2da7c6(0x41d)]+_0x2d13b9[_0x2da7c6(0x24d)]['height']+_0x1f9ea6,'radius':_0x15e294,'visualRadius':_0x390c9d}))),_0x2d13b9[_0x2da7c6(0x2fc)]){let _0x41f7db={'kind':_0x2da7c6(0x1f7),'x':_0x19bd79,'y':_0x436e30,'radius':_0x333476};_0x3ad518[_0x2da7c6(0x292)](_0x41f7db);let _0x375b3f=_0x3ad518[_0x2da7c6(0x339)](_0x2018d4=>_0x2018d4[_0x2da7c6(0x420)]===(_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x233)?_0x2da7c6(0x2b5):_0x2d13b9[_0x2da7c6(0x2a3)]==='top'?_0x2da7c6(0x40d):_0x2d13b9[_0x2da7c6(0x2a3)]==='bottom'?'add-child-bottom':'add-child-right'));_0x375b3f&&Math['hypot'](_0x375b3f['x']-_0x41f7db['x'],_0x375b3f['y']-_0x41f7db['y'])<_0x4ea589&&(_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x41d)||_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x392)?_0x375b3f['y']=_0x41f7db['y']+(_0x2d13b9[_0x2da7c6(0x2a3)]==='top'?-_0x4ea589:_0x4ea589):_0x375b3f['x']=_0x41f7db['x']+(_0x2d13b9[_0x2da7c6(0x2a3)]===_0x2da7c6(0x233)?-_0x4ea589:_0x4ea589));}return _0x3ad518;}const Ar=_0x1f10c6(0x2d7),jr=_0x2a0926['connectorAffordance'];function Mr(_0x33113c,_0x38aa6d){const _0x22624f=_0x1f10c6;return!!_0x33113c&&_0x33113c[_0x22624f(0x420)]===_0x38aa6d[_0x22624f(0x420)]&&_0x33113c['x']===_0x38aa6d['x']&&_0x33113c['y']===_0x38aa6d['y'];}var Nr=class extends _0xf647d4{constructor(_0x255cc7=Ar,_0x23d31b){const _0x4e7b0f=_0x1f10c6;super(_0x255cc7),K(this,'_state',{'controls':[]}),this[_0x4e7b0f(0x14b)]=!0x0,this['zIndex']=_0x3d308f[_0x4e7b0f(0x1a7)],this[_0x4e7b0f(0x3c5)](_0x23d31b);}[_0x1f10c6(0x3c5)](_0x2ce8d9){const _0x1ddc8f=_0x1f10c6;this['_state']={...this[_0x1ddc8f(0x2c7)],..._0x2ce8d9},this[_0x1ddc8f(0x2c7)][_0x1ddc8f(0x1bd)][_0x1ddc8f(0x1f3)]>0x0?this[_0x1ddc8f(0x417)]():this[_0x1ddc8f(0x140)](),this[_0x1ddc8f(0x359)](!0x0);}[_0x1f10c6(0x182)](_0x5787f4){const _0x20215b=_0x1f10c6;!_0x5787f4&&!this[_0x20215b(0x2c7)][_0x20215b(0x1fa)]||_0x5787f4&&Mr(this['_state'][_0x20215b(0x1fa)],_0x5787f4)||(this['_state']={...this[_0x20215b(0x2c7)],'hoveredControl':_0x5787f4},this['makeDirty'](!0x0));}[_0x1f10c6(0x3b8)](_0x5798ae,_0x5b030a){const _0x5317f5=_0x1f10c6;var _0x69c891;let _0x5e205e=(_0x69c891=this[_0x5317f5(0x331)]())==null?void 0x0:_0x69c891[_0x5317f5(0x1fd)](),_0xf26cf3=null,_0x25c0a0=0x1/0x0;for(let _0x897a6f=this[_0x5317f5(0x2c7)][_0x5317f5(0x1bd)]['length']-0x1;_0x897a6f>=0x0;--_0x897a6f){let _0x460fc4=this[_0x5317f5(0x2c7)][_0x5317f5(0x1bd)][_0x897a6f],_0x169b0f=Math[_0x5317f5(0x234)](_0x5798ae['x']-_0x460fc4['x'],_0x5798ae['y']-_0x460fc4['y']);if(_0x5b030a!==_0xf8d86[_0x5317f5(0x367)]){if(_0x169b0f<=_0x460fc4[_0x5317f5(0x284)])return _0x460fc4;continue;}let _0x2b5e73=Math[_0x5317f5(0x234)]((_0x5798ae['x']-_0x460fc4['x'])*((_0x5e205e==null?void 0x0:_0x5e205e[_0x5317f5(0x3a0)])??0x1),(_0x5798ae['y']-_0x460fc4['y'])*((_0x5e205e==null?void 0x0:_0x5e205e['scaleY'])??0x1));(_0x169b0f<=_0x460fc4[_0x5317f5(0x284)]||_0x2b5e73<=$[_0x5317f5(0x308)])&&_0x2b5e73<_0x25c0a0&&(_0xf26cf3=_0x460fc4,_0x25c0a0=_0x2b5e73);}return _0xf26cf3;}[_0x1f10c6(0x3a9)](_0x1338e7){const _0x1c2b52=_0x1f10c6;var _0x3c1dab;let _0x5f2618=this[_0x1c2b52(0x3b8)](_0x1338e7,_0xf8d86[_0x1c2b52(0x367)]),_0x2ed3b7=(_0x3c1dab=this[_0x1c2b52(0x331)]())==null?void 0x0:_0x3c1dab[_0x1c2b52(0x1fd)]();return _0x5f2618?Math['hypot']((_0x1338e7['x']-_0x5f2618['x'])*((_0x2ed3b7==null?void 0x0:_0x2ed3b7[_0x1c2b52(0x3a0)])??0x1),(_0x1338e7['y']-_0x5f2618['y'])*((_0x2ed3b7==null?void 0x0:_0x2ed3b7[_0x1c2b52(0x30d)])??0x1)):0x1/0x0;}[_0x1f10c6(0x203)](_0x2ac475){const _0x3f533c=_0x1f10c6;return!!this[_0x3f533c(0x3b8)]({'x':_0x2ac475['x'],'y':_0x2ac475['y']});}[_0x1f10c6(0x18f)](_0x4ea509,_0x3c1c80){const _0x1c0d0c=_0x1f10c6;return!this[_0x1c0d0c(0x2df)]||this[_0x1c0d0c(0x2c7)][_0x1c0d0c(0x1bd)][_0x1c0d0c(0x1f3)]===0x0?(this['makeDirty'](!0x1),this):(_0x4ea509[_0x1c0d0c(0x38e)](),this[_0x1c0d0c(0x2c7)]['controls'][_0x1c0d0c(0x35f)](_0x50a023=>{const _0x610817=_0x1c0d0c;let _0x129c44=Mr(this[_0x610817(0x2c7)]['hoveredControl'],_0x50a023),_0x28070a=_0x50a023[_0x610817(0x21d)]!==void 0x0,_0x59bd02=_0x50a023[_0x610817(0x420)]===_0x610817(0x2b5)||_0x50a023['kind']==='add-child-right'||_0x50a023[_0x610817(0x420)]==='add-child-top'||_0x50a023['kind']==='add-child-bottom',_0x19f4a7=_0x50a023[_0x610817(0x420)]===_0x610817(0x217)||_0x50a023[_0x610817(0x420)]==='add-sibling-after',_0x496686=_0x19f4a7&&!_0x129c44?_0x50a023[_0x610817(0x298)]??_0x50a023[_0x610817(0x284)]:_0x50a023[_0x610817(0x284)];if(_0x4ea509[_0x610817(0x18a)](),_0x4ea509[_0x610817(0x285)]=_0x50a023[_0x610817(0x420)]===_0x610817(0x1f7)?$[_0x610817(0x448)]:$[_0x610817(0x3b2)],_0x4ea509[_0x610817(0x16a)]=$[_0x610817(0x3b2)],_0x4ea509['lineWidth']=$[_0x610817(0x291)],_0x4ea509['arc'](_0x50a023['x'],_0x50a023['y'],_0x496686,0x0,Math['PI']*0x2),_0x4ea509[_0x610817(0x31a)](),(!_0x19f4a7||_0x129c44)&&_0x4ea509[_0x610817(0x45a)](),!_0x28070a&&(!_0x19f4a7||_0x129c44)){if(_0x4ea509['beginPath'](),_0x4ea509['strokeStyle']=_0x50a023[_0x610817(0x420)]===_0x610817(0x1f7)?$[_0x610817(0x3b2)]:$[_0x610817(0x448)],_0x4ea509[_0x610817(0x33f)]=_0x19f4a7?$['glyphWidth']:_0x129c44?$[_0x610817(0x1df)]:$[_0x610817(0x2b8)],_0x4ea509[_0x610817(0x1bc)]=_0x610817(0x272),_0x50a023[_0x610817(0x420)]==='toggle-collapse'){let _0x231a9a=$[_0x610817(0x145)];_0x4ea509[_0x610817(0x2fd)](_0x50a023['x']+_0x231a9a/0x2,_0x50a023['y']-_0x231a9a),_0x4ea509[_0x610817(0x309)](_0x50a023['x']-_0x231a9a/0x2,_0x50a023['y']),_0x4ea509[_0x610817(0x309)](_0x50a023['x']+_0x231a9a/0x2,_0x50a023['y']+_0x231a9a);}else{let _0x14d1de=_0x19f4a7?$[_0x610817(0x14f)]:_0x59bd02?$[_0x610817(0x232)]:$[_0x610817(0x145)];_0x4ea509[_0x610817(0x2fd)](_0x50a023['x']-_0x14d1de,_0x50a023['y']),_0x4ea509['lineTo'](_0x50a023['x']+_0x14d1de,_0x50a023['y']),_0x4ea509['moveTo'](_0x50a023['x'],_0x50a023['y']-_0x14d1de),_0x4ea509[_0x610817(0x309)](_0x50a023['x'],_0x50a023['y']+_0x14d1de);}_0x4ea509[_0x610817(0x45a)]();}_0x28070a&&(_0x4ea509['fillStyle']=$[_0x610817(0x3b2)],_0x4ea509[_0x610817(0x44b)]=$[_0x610817(0x261)]+'\x20'+$['badgeFontSize']+'px\x20'+$[_0x610817(0x2ed)],_0x4ea509[_0x610817(0x247)]=_0x610817(0x346),_0x4ea509['textBaseline']=_0x610817(0x257),_0x4ea509[_0x610817(0x2ab)](String(_0x50a023['badgeCount']),_0x50a023['x'],_0x50a023['y']));}),_0x4ea509[_0x1c0d0c(0x251)](),this['makeDirty'](!0x1),this);}};function Pr(_0xec7fef){const _0x204b13=_0x1f10c6;return _0xec7fef===_0x204b13(0x3f2)||_0xec7fef==='tree-right'||_0xec7fef===_0x204b13(0x2d6);}function Fr(_0x53f13c){const _0x51b987=_0x1f10c6;return _0x53f13c===_0x51b987(0x213)||_0x53f13c==='timeline-vertical';}function Ir(_0x22031f,_0xf33c3a){const _0x252006=_0x1f10c6;let _0x5ed089=Number[_0x252006(0x180)](_0xf33c3a['zoomRatio'])&&_0xf33c3a[_0x252006(0x368)]>0x0?_0xf33c3a[_0x252006(0x368)]:0x1;return{'x':Math[_0x252006(0x272)]((_0x22031f['offsetX']-_0xf33c3a[_0x252006(0x34e)]['x'])/_0x5ed089),'y':Math['round']((_0x22031f[_0x252006(0x2e0)]-_0xf33c3a[_0x252006(0x34e)]['y'])/_0x5ed089)};}let Lr=class extends _0x9852b5{constructor(_0x2eb891,_0x1498ab,_0x4526d0,_0x4b0132,_0x28d2d3,_0x5d06f0,_0x47ca03,_0x102baf,_0x5a5f6c){const _0xe62429=_0x1f10c6;super(),this[_0xe62429(0x3e1)]=_0x2eb891,this[_0xe62429(0x384)]=_0x1498ab,this[_0xe62429(0x2cf)]=_0x4526d0,this[_0xe62429(0x376)]=_0x4b0132,this['_commandService']=_0x28d2d3,this[_0xe62429(0x31f)]=_0x5d06f0,this[_0xe62429(0x379)]=_0x47ca03,this[_0xe62429(0x45e)]=_0x102baf,this[_0xe62429(0x3d4)]=_0x5a5f6c,K(this,'_object',null),K(this,_0xe62429(0x33e),null),K(this,_0xe62429(0x3fd),null),K(this,'_activeScopeId',null),this['_init']();}[_0x1f10c6(0x347)](){const _0x5a7688=_0x1f10c6;var _0x1731f9,_0x3a0ce3,_0x440e0e;let {scene:_0x269804}=this['_renderContext'],_0x4abfb3=(_0x1731f9=_0x269804[_0x5a7688(0x165)])==null?void 0x0:_0x1731f9[_0x5a7688(0x266)](_0x269804);_0x4abfb3&&(this[_0x5a7688(0x1c8)](_0x50821e(_0x4abfb3['changing$'][_0x5a7688(0x36e)](_0x2c3b45(this[_0x5a7688(0x273)]))[_0x5a7688(0x3c8)](({objects:_0x538d0b})=>{const _0x3296e6=_0x5a7688;this[_0x3296e6(0x3aa)](_0x538d0b,{'hideRootControls':!0x0});}))),this['disposeWithMe'](_0x50821e(_0x4abfb3[_0x5a7688(0x45b)][_0x5a7688(0x36e)](_0x2c3b45(this[_0x5a7688(0x273)]))[_0x5a7688(0x3c8)](_0x4acceb=>{const _0x3007f3=_0x5a7688;let _0x294390=_0x4acceb==null?void 0x0:_0x4acceb[_0x3007f3(0x427)];this[_0x3007f3(0x3aa)](_0x294390),setTimeout(()=>this[_0x3007f3(0x3aa)](_0x294390),0x0);})))),this[_0x5a7688(0x1c8)](_0x50821e(this[_0x5a7688(0x2cf)]['state$']['pipe'](_0x2c3b45(this[_0x5a7688(0x273)]))[_0x5a7688(0x3c8)](()=>this[_0x5a7688(0x3aa)]()))),this[_0x5a7688(0x1c8)](_0x50821e(this[_0x5a7688(0x376)][_0x5a7688(0x313)]['pipe'](_0x2c3b45(this[_0x5a7688(0x273)]))['subscribe'](()=>this['_syncControls']()))),this[_0x5a7688(0x1c8)](_0x50821e(this['_boardElementService'][_0x5a7688(0x162)][_0x5a7688(0x36e)](_0x2c3b45(this['dispose$']))[_0x5a7688(0x3c8)](_0x4eed5f=>{const _0x5b095b=_0x5a7688;let _0x58c240=this[_0x5b095b(0x2cf)][_0x5b095b(0x226)]()[_0x5b095b(0x27a)];_0x58c240&&_0x4eed5f[_0x5b095b(0x442)](_0x2ff20a=>_0x2ff20a['unitId']===_0x58c240[_0x5b095b(0x147)]&&_0x2ff20a[_0x5b095b(0x3cd)]===_0x58c240['subUnitId']&&(_0x2ff20a[_0x5b095b(0x142)]===this[_0x5b095b(0x3fd)]||_0x2ff20a[_0x5b095b(0x142)]===this[_0x5b095b(0x3a4)]))&&this[_0x5b095b(0x3aa)]();}))),this[_0x5a7688(0x1c8)](_0x50821e(this['_previewRefreshService']['refresh$'][_0x5a7688(0x36e)](_0x2c3b45(this[_0x5a7688(0x273)]))[_0x5a7688(0x3c8)](_0x1fc0dc=>{const _0xc69711=_0x5a7688;let _0x1306ad=this[_0xc69711(0x2cf)][_0xc69711(0x226)]()[_0xc69711(0x27a)];_0x1306ad&&_0x1306ad[_0xc69711(0x147)]===_0x1fc0dc['unitId']&&_0x1306ad[_0xc69711(0x3cd)]===_0x1fc0dc[_0xc69711(0x3cd)]&&(this['_activeScopeId']&&this[_0xc69711(0x3a4)]!==_0x1fc0dc[_0xc69711(0x3d1)]||this[_0xc69711(0x3aa)]());}))),this[_0x5a7688(0x1c8)](_0x50821e(_0x269804[_0x5a7688(0x1ef)]['subscribeEvent'](_0x4eebff=>this[_0x5a7688(0x3d9)](_0x4eebff)))),this['disposeWithMe'](_0x50821e(_0x269804['onPointerDown$'][_0x5a7688(0x3f4)]({'priority':0x4,'next':([_0x29b0b9,_0x18730f])=>{const _0x47c43f=_0x5a7688;this[_0x47c43f(0x2da)](_0x29b0b9)&&this[_0x47c43f(0x1d1)](_0x29b0b9,_0x18730f);}}))),this[_0x5a7688(0x1c8)](_0x50821e(((_0x3a0ce3=_0x269804[_0x5a7688(0x321)])==null?void 0x0:_0x3a0ce3['subscribeEvent']({'priority':0x4,'next':([_0x1f70de,_0x511759])=>{const _0x45af2b=_0x5a7688;this[_0x45af2b(0x2ae)](_0x1f70de)&&this[_0x45af2b(0x1d1)](_0x1f70de,_0x511759);}}))??{'dispose':()=>{}})),this[_0x5a7688(0x1c8)](_0x50821e(((_0x440e0e=_0x269804[_0x5a7688(0x20c)])==null?void 0x0:_0x440e0e[_0x5a7688(0x3f4)]({'priority':0x4,'next':([_0x4db1ed,_0x9d15de])=>{const _0x29f1c4=_0x5a7688;this[_0x29f1c4(0x2ae)](_0x4db1ed)&&this[_0x29f1c4(0x1d1)](_0x4db1ed,_0x9d15de);}}))??{'dispose':()=>{}})),this[_0x5a7688(0x1c8)](_0x50821e(()=>this[_0x5a7688(0x17c)]())),this[_0x5a7688(0x3aa)]();}[_0x1f10c6(0x306)](){const _0x1d06f2=_0x1f10c6;return this['_object']?this[_0x1d06f2(0x38b)]:(this[_0x1d06f2(0x38b)]=new Nr(Ar),this[_0x1d06f2(0x242)](this[_0x1d06f2(0x38b)]),this[_0x1d06f2(0x3e1)][_0x1d06f2(0x156)]['addObject'](this[_0x1d06f2(0x38b)],jr),this[_0x1d06f2(0x38b)]);}[_0x1f10c6(0x242)](_0x21af07){const _0x1fb3cf=_0x1f10c6;var _0x5b62fc;(_0x5b62fc=this['_objectEventDisposables'])==null||_0x5b62fc[_0x1fb3cf(0x3c0)]();let _0x494651=new _0x308d99();_0x494651['add'](_0x21af07[_0x1fb3cf(0x38f)][_0x1fb3cf(0x3f4)]({'priority':0x4,'next':([_0xb14c90,_0x6c4d8a])=>{const _0x6e9d10=_0x1fb3cf;this[_0x6e9d10(0x2da)](_0xb14c90)&&this[_0x6e9d10(0x1d1)](_0xb14c90,_0x6c4d8a);}})),_0x494651[_0x1fb3cf(0x2c0)](_0x21af07[_0x1fb3cf(0x321)][_0x1fb3cf(0x3f4)]({'priority':0x4,'next':([_0x565893,_0x4078be])=>{const _0x1d5b96=_0x1fb3cf;this[_0x1d5b96(0x2ae)](_0x565893)&&this[_0x1d5b96(0x1d1)](_0x565893,_0x4078be);}})),_0x494651[_0x1fb3cf(0x2c0)](_0x21af07[_0x1fb3cf(0x20c)][_0x1fb3cf(0x3f4)]({'priority':0x4,'next':([_0x129d3e,_0x448428])=>{const _0x3df455=_0x1fb3cf;this['_isControlEvent'](_0x129d3e)&&this[_0x3df455(0x1d1)](_0x129d3e,_0x448428);}})),this[_0x1fb3cf(0x33e)]=_0x494651;}[_0x1f10c6(0x17c)](){const _0x4c7c58=_0x1f10c6;var _0x4a5b20;this['_object']&&(this['_renderContext'][_0x4c7c58(0x156)][_0x4c7c58(0x43e)]([this[_0x4c7c58(0x38b)]]),(_0x4a5b20=this['_objectEventDisposables'])==null||_0x4a5b20[_0x4c7c58(0x3c0)](),this[_0x4c7c58(0x33e)]=null,this['_object']=null,this['_activeNodeId']=null,this['_activeScopeId']=null,this[_0x4c7c58(0x3e1)][_0x4c7c58(0x156)][_0x4c7c58(0x359)](!0x0));}['_syncControls'](_0x554117,_0x119690){const _0xcd707e=_0x1f10c6;var _0x296293,_0x50d1b6;if(this['_stateService'][_0xcd707e(0x193)]()[_0xcd707e(0x2d5)]===_0xcd707e(0x439)){this[_0xcd707e(0x17c)]();return;}let _0xa4e52d=this['_elementStateService']['getSnapshot'](),_0x1dbb96=_0xa4e52d[_0xcd707e(0x27a)],_0x5da14c=_0xa4e52d[_0xcd707e(0x1d7)]??_0xa4e52d[_0xcd707e(0x235)][0x0];if(!_0x1dbb96||!_0x5da14c||_0xa4e52d[_0xcd707e(0x235)][_0xcd707e(0x1f3)]!==0x1){this[_0xcd707e(0x17c)]();return;}let _0x5bd52d=this[_0xcd707e(0x384)][_0xcd707e(0x258)](_0x1dbb96[_0xcd707e(0x147)],_0x1dbb96[_0xcd707e(0x3cd)]),_0x259ef1=_0x5bd52d[_0x5da14c],_0x4da7de=_0x51f94c(_0x259ef1==null?void 0x0:_0x259ef1[_0xcd707e(0x333)]);if(!_0x259ef1||!_0x4da7de){this[_0xcd707e(0x17c)]();return;}let _0x3563c3=_0x10c90a(_0x1dbb96[_0xcd707e(0x147)],_0x5da14c);if(_0x119690!=null&&_0x119690[_0xcd707e(0x1b7)]&&_0x4da7de[_0xcd707e(0x2d9)]==null&&_0x554117!=null&&_0x554117[_0xcd707e(0x3a5)](_0x3563c3)){this[_0xcd707e(0x17c)]();return;}let _0x2580bf=this[_0xcd707e(0x19e)](_0x5bd52d,_0x1dbb96[_0xcd707e(0x147)],_0x5da14c,_0x554117);if(!_0x2580bf){this[_0xcd707e(0x17c)]();return;}let _0x46e352=Object[_0xcd707e(0x361)](_0x5bd52d)[_0xcd707e(0x3f7)](_0x284f9a=>{const _0x36470f=_0xcd707e;var _0x329c81;return((_0x329c81=_0x51f94c(_0x284f9a[_0x36470f(0x333)]))==null?void 0x0:_0x329c81[_0x36470f(0x2d9)])===_0x5da14c;}),_0x4ce446=_0x4da7de['collapsed']?this['_countDescendants'](_0x5bd52d,_0x5da14c):0x0;this['_activeNodeId']=_0x5da14c,this[_0xcd707e(0x3a4)]=_0x4da7de['structureScopeId'];let _0x5e2483=(_0x296293=_0x5bd52d[_0x4da7de['structureScopeId']])==null?void 0x0:_0x296293[_0xcd707e(0x333)],_0x38d54b=_0x195a16(_0x5e2483),_0x1b536f=_0x5e2483==null||(_0x50d1b6=_0x5e2483['custom'])==null||(_0x50d1b6=_0x50d1b6[_0xcd707e(0x2c4)])==null||(_0x50d1b6=_0x50d1b6[_0xcd707e(0x1d4)])==null?void 0x0:_0x50d1b6[_0xcd707e(0x381)],_0x179665=(_0x38d54b==null?void 0x0:_0x38d54b[_0xcd707e(0x1d4)][_0xcd707e(0x381)])??_0x1b536f,_0x543a69=_0x4da7de[_0xcd707e(0x2d9)]==null,_0x16c8ea=this[_0xcd707e(0x207)](_0x4da7de[_0xcd707e(0x2a3)],_0x543a69,_0x179665);this[_0xcd707e(0x306)]()[_0xcd707e(0x3c5)]({'controls':kr({'bounds':_0x2580bf,'isRoot':_0x543a69,'side':_0x16c8ea,'rootChildSides':this[_0xcd707e(0x432)](_0x543a69,_0x179665),'hasChildren':_0x46e352['length']>0x0,'collapsedDescendantCount':_0x4ce446})}),this[_0xcd707e(0x3e1)][_0xcd707e(0x156)][_0xcd707e(0x359)](!0x0);}[_0x1f10c6(0x207)](_0x2ce5ab,_0x593501,_0x3fd7d9){const _0x511855=_0x1f10c6;return _0x3fd7d9===_0x511855(0x1d3)?!_0x593501&&(_0x2ce5ab==='left'||_0x2ce5ab===_0x511855(0x171))?_0x2ce5ab:_0x511855(0x392):_0x3fd7d9===_0x511855(0x37d)?!_0x593501&&(_0x2ce5ab===_0x511855(0x41d)||_0x2ce5ab===_0x511855(0x392))?_0x2ce5ab:_0x511855(0x392):_0x2ce5ab===_0x511855(0x233)?'left':_0x511855(0x171);}[_0x1f10c6(0x432)](_0x1e51e5,_0x5e1e45){const _0x32730e=_0x1f10c6;if(_0x1e51e5){if(Pr(_0x5e1e45))return[_0x32730e(0x392)];if(_0x5e1e45==='timeline-horizontal')return[_0x32730e(0x171)];if(_0x5e1e45==='timeline-vertical')return[_0x32730e(0x392)];}}[_0x1f10c6(0x42a)](_0x5e7cd4){const _0x27c636=_0x1f10c6;var _0x2760dd,_0x94846c;let _0x9d430e=this[_0x27c636(0x2cf)][_0x27c636(0x226)]()[_0x27c636(0x27a)];if(!_0x9d430e||!this['_activeNodeId'])return;let _0xcd0056=this[_0x27c636(0x384)][_0x27c636(0x258)](_0x9d430e[_0x27c636(0x147)],_0x9d430e['subUnitId']),_0x2d4327=_0x51f94c((_0x2760dd=_0xcd0056[this['_activeNodeId']])==null?void 0x0:_0x2760dd[_0x27c636(0x333)]),_0x432120=_0x2d4327?_0x195a16((_0x94846c=_0xcd0056[_0x2d4327['structureScopeId']])==null?void 0x0:_0x94846c['element']):null;if((_0x2d4327==null?void 0x0:_0x2d4327[_0x27c636(0x2d9)])!=null||!Pr(_0x432120==null?void 0x0:_0x432120[_0x27c636(0x1d4)][_0x27c636(0x381)])&&!Fr(_0x432120==null?void 0x0:_0x432120['layout']['structureKind']))return _0x5e7cd4===_0x27c636(0x2b5)?_0x27c636(0x233):_0x5e7cd4===_0x27c636(0x40d)?'top':_0x5e7cd4===_0x27c636(0x1d6)?'bottom':_0x27c636(0x171);}[_0x1f10c6(0x19e)](_0x77ed28,_0xcb157e,_0x54e673,_0x587fec){const _0x5f0174=_0x1f10c6;var _0x456108,_0x537290;let _0x33b69b=_0x10c90a(_0xcb157e,_0x54e673),_0x568fad=_0x587fec==null?void 0x0:_0x587fec[_0x5f0174(0x1a4)](_0x33b69b),_0x5e6c34=this[_0x5f0174(0x260)](_0x568fad);if(_0x5e6c34)return _0x5e6c34;let _0x3078b1=this[_0x5f0174(0x3e1)][_0x5f0174(0x156)],_0xfc860c=((_0x456108=_0x3078b1[_0x5f0174(0x19f)])==null?void 0x0:_0x456108[_0x5f0174(0x266)](_0x3078b1,_0x33b69b))??((_0x537290=_0x3078b1[_0x5f0174(0x301)])==null?void 0x0:_0x537290[_0x5f0174(0x266)](_0x3078b1,_0x33b69b));return this[_0x5f0174(0x260)](_0xfc860c)||_0x401f4b(_0x77ed28,_0x54e673);}[_0x1f10c6(0x260)](_0x5a4cb4){const _0x150b13=_0x1f10c6;return _0x5a4cb4&&Number[_0x150b13(0x180)](_0x5a4cb4[_0x150b13(0x233)])&&Number[_0x150b13(0x180)](_0x5a4cb4[_0x150b13(0x41d)])&&Number[_0x150b13(0x180)](_0x5a4cb4[_0x150b13(0x246)])&&Number[_0x150b13(0x180)](_0x5a4cb4['height'])?{'left':_0x5a4cb4[_0x150b13(0x233)],'top':_0x5a4cb4[_0x150b13(0x41d)],'width':_0x5a4cb4[_0x150b13(0x246)],'height':_0x5a4cb4[_0x150b13(0x26c)]}:null;}[_0x1f10c6(0x178)](_0x453607,_0x45a3d3){const _0x3c5016=_0x1f10c6;return Object[_0x3c5016(0x361)](_0x453607)[_0x3c5016(0x3f7)](_0xe7c83b=>{const _0x11d2dc=_0x3c5016;var _0xf92f68;return((_0xf92f68=_0x51f94c(_0xe7c83b[_0x11d2dc(0x333)]))==null?void 0x0:_0xf92f68[_0x11d2dc(0x2d9)])===_0x45a3d3;})['reduce']((_0x1a1380,_0x16859e)=>_0x1a1380+0x1+this[_0x3c5016(0x178)](_0x453607,_0x16859e[_0x3c5016(0x142)]),0x0);}[_0x1f10c6(0x3d9)](_0x39fe8a){const _0x562bfb=_0x1f10c6;if(!this[_0x562bfb(0x38b)])return;let _0x43fe72=this['_stateService'][_0x562bfb(0x193)](),_0x2f2897=Ir(_0x39fe8a,{'panOffset':_0x43fe72[_0x562bfb(0x360)],'zoomRatio':_0x43fe72[_0x562bfb(0x368)]});this[_0x562bfb(0x38b)][_0x562bfb(0x182)](this[_0x562bfb(0x38b)][_0x562bfb(0x3b8)](_0x2f2897,_0x39fe8a['deviceType']));}[_0x1f10c6(0x2da)](_0x376c30){const _0x16af31=_0x1f10c6;if(!this['_object']||!this[_0x16af31(0x3fd)]||(_0x376c30[_0x16af31(0x2d3)]??0x0)!==0x0)return!0x1;let _0x133712=this[_0x16af31(0x2cf)][_0x16af31(0x226)]()[_0x16af31(0x27a)];if(!_0x133712)return!0x1;let _0x36a1ca=this[_0x16af31(0x376)][_0x16af31(0x193)](),_0x480ed7=Ir(_0x376c30,{'panOffset':_0x36a1ca['viewportPanOffset'],'zoomRatio':_0x36a1ca['zoomRatio']}),_0x36c421=this[_0x16af31(0x38b)][_0x16af31(0x3b8)](_0x480ed7,_0x376c30['deviceType']);if(!_0x36c421)return!0x1;if(_0x36c421[_0x16af31(0x420)]===_0x16af31(0x1f7))return this[_0x16af31(0x394)](_0x86163e['id'],{'unitId':_0x133712[_0x16af31(0x147)],'subUnitId':_0x133712['subUnitId'],'nodeId':this['_activeNodeId']}),!0x0;if(_0x36c421['kind']==='add-child-left'||_0x36c421[_0x16af31(0x420)]===_0x16af31(0x386)||_0x36c421[_0x16af31(0x420)]===_0x16af31(0x40d)||_0x36c421[_0x16af31(0x420)]===_0x16af31(0x1d6)){let _0x4a4362=_0x4e853d(0x6);return this[_0x16af31(0x2ba)](_0x47eba7['id'],{'unitId':_0x133712[_0x16af31(0x147)],'subUnitId':_0x133712[_0x16af31(0x3cd)],'parentNodeId':this[_0x16af31(0x3fd)],'side':this[_0x16af31(0x42a)](_0x36c421['kind']),'nodeId':_0x4a4362,'connectorId':_0x4e853d(0x6),'text':this['_localeService']['t'](_0x16af31(0x150))},_0x4a4362),!0x0;}if(_0x36c421[_0x16af31(0x420)]===_0x16af31(0x217)||_0x36c421['kind']==='add-sibling-after'){let _0x4b0ea1=_0x4e853d(0x6);return this[_0x16af31(0x2ba)](_0x5d96a8['id'],{'unitId':_0x133712[_0x16af31(0x147)],'subUnitId':_0x133712[_0x16af31(0x3cd)],'nodeId':this[_0x16af31(0x3fd)],'placement':_0x36c421[_0x16af31(0x369)]??(_0x36c421[_0x16af31(0x420)]===_0x16af31(0x217)?_0x16af31(0x305):_0x16af31(0x250)),'siblingNodeId':_0x4b0ea1,'connectorId':_0x4e853d(0x6),'text':this[_0x16af31(0x379)]['t']('boards-mind-ui.panel.addText')},_0x4b0ea1),!0x0;}return!0x0;}[_0x1f10c6(0x2ae)](_0x28b6c9){const _0x468326=_0x1f10c6;if(!this[_0x468326(0x38b)]||(_0x28b6c9[_0x468326(0x2d3)]??0x0)!==0x0)return!0x1;let _0x4a5969=this[_0x468326(0x376)][_0x468326(0x193)](),_0x3416ec=Ir(_0x28b6c9,{'panOffset':_0x4a5969['viewportPanOffset'],'zoomRatio':_0x4a5969[_0x468326(0x368)]});return!!this['_object'][_0x468326(0x3b8)](_0x3416ec,_0x28b6c9[_0x468326(0x22c)]);}[_0x1f10c6(0x1d1)](_0x2fbdce,_0x3821dd){const _0x16d3e3=_0x1f10c6;var _0x4bd7c7,_0xda40bf;_0x3821dd[_0x16d3e3(0x435)](),(_0x4bd7c7=_0x2fbdce['preventDefault'])==null||_0x4bd7c7[_0x16d3e3(0x266)](_0x2fbdce),(_0xda40bf=_0x2fbdce[_0x16d3e3(0x435)])==null||_0xda40bf['call'](_0x2fbdce);}[_0x1f10c6(0x394)](_0x2b886c,_0x494d70){const _0x2af384=_0x1f10c6;let _0x5c2eb6=this[_0x2af384(0x3a4)];this['_undoRedoGroupService']['run'](_0x494d70[_0x2af384(0x147)],()=>{const _0x104f98=_0x2af384;this[_0x104f98(0x210)][_0x104f98(0x18b)](_0x2b886c,_0x494d70)&&_0x5c2eb6&&(this[_0x104f98(0x210)][_0x104f98(0x18b)](_0x4a8bdc['id'],{'unitId':_0x494d70['unitId'],'subUnitId':_0x494d70[_0x104f98(0x3cd)],'scopeId':_0x5c2eb6}),this[_0x104f98(0x3aa)]());});}[_0x1f10c6(0x2ba)](_0x442b91,_0x55bb0b,_0x33ab9a){const _0x2173cd=_0x1f10c6;let _0x3c1245={'unitId':_0x55bb0b[_0x2173cd(0x147)],'subUnitId':_0x55bb0b['subUnitId']},_0x46528a=this[_0x2173cd(0x210)][_0x2173cd(0x189)](_0x442b91,_0x55bb0b);Promise[_0x2173cd(0x434)](_0x46528a)[_0x2173cd(0x161)](_0x34ed1c=>{const _0x2c4dd1=_0x2173cd;_0x34ed1c&&(this[_0x2c4dd1(0x3aa)](),this['_elementStateService'][_0x2c4dd1(0x29f)](_0x3c1245,[_0x33ab9a],_0x33ab9a),this[_0x2c4dd1(0x31f)][_0x2c4dd1(0x200)](),this[_0x2c4dd1(0x31f)][_0x2c4dd1(0x354)]({..._0x3c1245,'shapeId':_0x33ab9a,'shapeKey':_0x10c90a(_0x3c1245[_0x2c4dd1(0x147)],_0x33ab9a),'visible':!0x0}));});}};Lr=J([q(0x1,_0x2e0f98(_0x52d74d)),q(0x2,_0x2e0f98(_0x10fb2b)),q(0x3,_0x2e0f98(_0x50e115)),q(0x4,_0x56aea3),q(0x5,_0x2e0f98(_0x157676)),q(0x6,_0x2e0f98(_0x588054)),q(0x7,_0x2e0f98(Tr)),q(0x8,_0x2e0f98(_0x56a505))],Lr);const Rr=_0x1f10c6(0x413);let zr=class extends _0x9852b5{constructor(_0x90ecbd,_0x2fec76){const _0x3c3ed5=_0x1f10c6;super(),this[_0x3c3ed5(0x210)]=_0x90ecbd,this[_0x3c3ed5(0x19c)]=_0x2fec76,this[_0x3c3ed5(0x347)]();}[_0x1f10c6(0x347)](){const _0xd30286=_0x1f10c6;this[_0xd30286(0x1c8)](this[_0xd30286(0x19c)][_0xd30286(0x2d8)](this[_0xd30286(0x1a1)]()));}[_0x1f10c6(0x1a1)](){const _0x3a9140=_0x1f10c6;return{'id':_0x518561,'binding':_0x438e5f[_0x3a9140(0x3e0)]|_0x379149[_0x3a9140(0x36b)],'priority':0x3e8,'preconditions':_0x878d2e=>_0x878d2e['getContextValue'](_0x3a9140(0x413))&&this[_0x3a9140(0x210)][_0x3a9140(0x267)](_0x518561)};}};zr=J([q(0x0,_0x56aea3),q(0x1,_0x1247c4)],zr);const Br=[Mn,Nn,Rr];let Vr=class extends _0x9852b5{constructor(_0x3b3612,_0x60bd4c,_0x4038e7,_0x96218d,_0x8d9994){const _0x1dde38=_0x1f10c6;super(),this[_0x1dde38(0x3e1)]=_0x3b3612,this[_0x1dde38(0x384)]=_0x60bd4c,this['_elementStateService']=_0x4038e7,this[_0x1dde38(0x1e0)]=_0x96218d,this['_contextService']=_0x8d9994,K(this,'_isActive',!0x1),this['disposeWithMe'](_0x50821e(this[_0x1dde38(0x3e1)][_0x1dde38(0x383)][_0x1dde38(0x36e)](_0x2c3b45(this[_0x1dde38(0x273)]))[_0x1dde38(0x3c8)](_0x4d16dc=>{const _0x41d977=_0x1dde38;this[_0x41d977(0x288)]=_0x4d16dc,this[_0x41d977(0x1f8)]();}))),this[_0x1dde38(0x1c8)](_0x50821e(this[_0x1dde38(0x2cf)]['state$']['pipe'](_0x2c3b45(this[_0x1dde38(0x273)]))[_0x1dde38(0x3c8)](()=>{this['_syncContext']();}))),this['disposeWithMe'](_0x50821e(this[_0x1dde38(0x1e0)][_0x1dde38(0x191)][_0x1dde38(0x36e)](_0x2c3b45(this[_0x1dde38(0x273)]))[_0x1dde38(0x3c8)](()=>{this['_syncContext']();}))),this[_0x1dde38(0x1f8)]();}[_0x1f10c6(0x1f8)](){const _0x4884df=_0x1f10c6;var _0x252956,_0x34edfa;let _0xc23823=this[_0x4884df(0x2cf)][_0x4884df(0x226)](),_0xe0c2a1=this[_0x4884df(0x1e0)][_0x4884df(0x20f)](),_0x8ecb5a=_0xe0c2a1!=null&&_0xe0c2a1[_0x4884df(0x2df)]?_0xe0c2a1[_0x4884df(0x3d7)]:_0xc23823[_0x4884df(0x338)],_0x1b5af3=_0xc23823[_0x4884df(0x1d7)]??_0xc23823[_0x4884df(0x235)][0x0],_0x1f5461=_0xc23823['context']??{'unitId':this[_0x4884df(0x3e1)][_0x4884df(0x147)],'subUnitId':this['_renderContext']['unit'][_0x4884df(0x3cc)]()},_0x4e9f14=this[_0x4884df(0x288)]&&!!_0x1b5af3&&_0xc23823[_0x4884df(0x235)][_0x4884df(0x1f3)]===0x1&&!_0x8ecb5a&&!_0xc23823['isTransforming'],_0x405346=this[_0x4884df(0x288)]?this[_0x4884df(0x384)][_0x4884df(0x258)](_0x1f5461['unitId'],_0x1f5461[_0x4884df(0x3cd)]):{};this['_contextService'][_0x4884df(0x44e)](Mn,_0x4e9f14&&!!_0x51f94c((_0x252956=_0x405346[_0x1b5af3])==null?void 0x0:_0x252956[_0x4884df(0x333)])),this[_0x4884df(0x297)][_0x4884df(0x44e)](Nn,this['_isActive']&&_0xc23823['selectedIds']['length']===0x0&&!_0xc23823[_0x4884df(0x1d7)]&&!_0x8ecb5a&&!_0xc23823[_0x4884df(0x426)]),this['_contextService'][_0x4884df(0x44e)](Rr,!!_0x8ecb5a&&!!_0x51f94c((_0x34edfa=_0x405346[_0x8ecb5a])==null?void 0x0:_0x34edfa['element']));}[_0x1f10c6(0x3c0)](){const _0x1ea31d=_0x1f10c6;this[_0x1ea31d(0x21c)](),super[_0x1ea31d(0x3c0)]();}['_resetContext'](){const _0x3fbf87=_0x1f10c6;Br[_0x3fbf87(0x35f)](_0x2f195b=>this[_0x3fbf87(0x297)][_0x3fbf87(0x44e)](_0x2f195b,!0x1));}};Vr=J([q(0x1,_0x2e0f98(_0x52d74d)),q(0x2,_0x2e0f98(_0x10fb2b)),q(0x3,_0x2e0f98(_0x157676)),q(0x4,_0x244b35)],Vr);var Hr=class extends wr{async[_0x1f10c6(0x2da)](_0x21d5e9,_0x5af256,_0x3aed5e){const _0x3caa9a=_0x1f10c6;await this[_0x3caa9a(0x456)](_0x21d5e9,_0x5af256,_0x3aed5e);}};const Ur={'id':_0x1f10c6(0x196),'type':_0x266447[_0x1f10c6(0x1dc)],'handler':(_0x1ad733,_0x18ef77)=>!!(_0x18ef77!=null&&_0x18ef77[_0x1f10c6(0x147)])&&!!_0x18ef77[_0x1f10c6(0x3cd)]&&!!_0x18ef77[_0x1f10c6(0x3d1)]},Wr=_0x1f10c6(0x1b2),Gr=[_0x1f10c6(0x3e4),_0x1f10c6(0x1d4),_0x1f10c6(0x218)];_0x258b6f[_0x1f10c6(0x2fb)],_0x258b6f['siblingGap'],_0x258b6f['branchGap'];const Kr=[{'labelKey':_0x1f10c6(0x219),'key':'horizontalGap',..._0x1e39ab[_0x1f10c6(0x2fb)]},{'labelKey':'boards-mind-ui.panel.spacing.siblingGap','key':_0x1f10c6(0x202),..._0x1e39ab['siblingGap']},{'labelKey':_0x1f10c6(0x159),'key':'branchGap',..._0x1e39ab[_0x1f10c6(0x2cc)]}],qr=[{'labelKey':_0x1f10c6(0x447),'value':_0x1f10c6(0x171)},{'labelKey':'boards-mind-ui.panel.layout.left','value':_0x1f10c6(0x233)},{'labelKey':_0x1f10c6(0x1b4),'value':_0x1f10c6(0x151)}],Jr=[{'labelKey':_0x1f10c6(0x39f),'value':'mindmap-horizontal'},{'labelKey':_0x1f10c6(0x41c),'value':'mindmap-vertical'},{'labelKey':_0x1f10c6(0x3dc),'value':_0x1f10c6(0x423)},{'labelKey':'boards-mind-ui.panel.structureKind.treeLeft','value':_0x1f10c6(0x3f2)},{'labelKey':'boards-mind-ui.panel.structureKind.treeAlternate','value':_0x1f10c6(0x2d6)},{'labelKey':_0x1f10c6(0x444),'value':'timeline-horizontal'},{'labelKey':'boards-mind-ui.panel.structureKind.timelineVertical','value':_0x1f10c6(0x1d3)}],Yr=[{'labelKey':_0x1f10c6(0x2b2),'value':'curve'},{'labelKey':_0x1f10c6(0x2a1),'value':_0x1f10c6(0x23b)},{'labelKey':'boards-mind-ui.panel.branchLineType.orthogonal','value':_0x1f10c6(0x3cb)}];function Xr(_0xff7406){const _0x1db750=_0x1f10c6;let _0x12a9a9=(_0xff7406==null?void 0x0:_0xff7406[_0x1db750(0x381)])??_0x258b6f[_0x1db750(0x381)];return{'spacing':{'horizontalGap':(_0xff7406==null?void 0x0:_0xff7406['horizontalGap'])??_0x258b6f['horizontalGap'],'siblingGap':(_0xff7406==null?void 0x0:_0xff7406[_0x1db750(0x202)])??_0x258b6f[_0x1db750(0x202)],'branchGap':(_0xff7406==null?void 0x0:_0xff7406[_0x1db750(0x2cc)])??_0x258b6f['branchGap']},'direction':(_0xff7406==null?void 0x0:_0xff7406[_0x1db750(0x307)])??_0x258b6f[_0x1db750(0x307)],'structureKind':_0x12a9a9,'branchLineType':_0x557da1(_0x12a9a9,_0xff7406==null?void 0x0:_0xff7406['branchLineType'])};}async function Zr(_0x539b6f,_0x1237b5){const _0x2280de=_0x1f10c6;return await Promise[_0x2280de(0x434)](_0x539b6f['executeCommand'](_0x24f826['id'],_0x1237b5))?(await Promise['resolve'](_0x539b6f['executeCommand'](_0x4a8bdc['id'],{'unitId':_0x1237b5[_0x2280de(0x147)],'subUnitId':_0x1237b5[_0x2280de(0x3cd)],'scopeId':_0x1237b5[_0x2280de(0x3d1)]})),!0x0):!0x1;}async function Qr(_0x72e7b7,_0x2536c2){const _0xe41ead=_0x1f10c6;return await Promise[_0xe41ead(0x434)](_0x72e7b7['executeCommand'](_0x4bb9b4['id'],_0x2536c2))?(await Promise[_0xe41ead(0x434)](_0x72e7b7[_0xe41ead(0x189)](_0x4a8bdc['id'],{'unitId':_0x2536c2[_0xe41ead(0x147)],'subUnitId':_0x2536c2['subUnitId'],'scopeId':_0x2536c2['scopeId']})),!0x0):!0x1;}function _0x1bd6(_0x1eae78,_0x42a8d6){_0x1eae78=_0x1eae78-0x13b;const _0x1ae0a7=_0x1ae0();let _0x1bd62a=_0x1ae0a7[_0x1eae78];return _0x1bd62a;}async function $r(_0x5d860c,_0x5ac686){const _0x178206=_0x1f10c6;return await Promise['resolve'](_0x5d860c[_0x178206(0x189)](_0x24f826['id'],{'unitId':_0x5ac686[_0x178206(0x147)],'subUnitId':_0x5ac686[_0x178206(0x3cd)],'scopeId':_0x5ac686[_0x178206(0x3d1)],..._0x5ac686['horizontalGap']===void 0x0?{}:{'horizontalGap':_0x5ac686[_0x178206(0x2fb)]},..._0x5ac686[_0x178206(0x202)]===void 0x0?{}:{'siblingGap':_0x5ac686[_0x178206(0x202)]},..._0x5ac686['branchGap']===void 0x0?{}:{'branchGap':_0x5ac686[_0x178206(0x2cc)]}}))?(await Promise[_0x178206(0x434)](_0x5d860c[_0x178206(0x189)](_0x4a8bdc['id'],{'unitId':_0x5ac686[_0x178206(0x147)],'subUnitId':_0x5ac686[_0x178206(0x3cd)],'scopeId':_0x5ac686[_0x178206(0x3d1)]})),!0x0):!0x1;}async function ei(_0x165fd9,_0x23e272){const _0x36ebc0=_0x1f10c6;return _0x23e272[_0x36ebc0(0x227)]===_0x23e272[_0x36ebc0(0x393)]||!await Promise['resolve'](_0x165fd9[_0x36ebc0(0x189)](_0x1b0b1e['id'],{'unitId':_0x23e272[_0x36ebc0(0x147)],'subUnitId':_0x23e272[_0x36ebc0(0x3cd)],'nodeId':_0x23e272[_0x36ebc0(0x227)],'targetNodeId':_0x23e272[_0x36ebc0(0x393)],'referenceNodeId':_0x23e272[_0x36ebc0(0x393)],'placement':_0x23e272[_0x36ebc0(0x369)]}))?!0x1:(await Promise[_0x36ebc0(0x434)](_0x165fd9[_0x36ebc0(0x189)](_0x4a8bdc['id'],{'unitId':_0x23e272[_0x36ebc0(0x147)],'subUnitId':_0x23e272[_0x36ebc0(0x3cd)],'scopeId':_0x23e272[_0x36ebc0(0x3d1)]})),!0x0);}async function ti(_0x470649,_0x328dd7){const _0x3ac9f5=_0x1f10c6;let _0x3ca89f=_0x328dd7[_0x3ac9f5(0x2e1)][_0x3ac9f5(0x282)]();return!_0x3ca89f||!await Promise[_0x3ac9f5(0x434)](_0x470649['executeCommand'](_0x1c2b74['id'],{'unitId':_0x328dd7[_0x3ac9f5(0x147)],'subUnitId':_0x328dd7[_0x3ac9f5(0x3cd)],'nodeId':_0x328dd7[_0x3ac9f5(0x227)],'text':_0x3ca89f}))?!0x1:(await Promise['resolve'](_0x470649['executeCommand'](_0x4a8bdc['id'],{'unitId':_0x328dd7[_0x3ac9f5(0x147)],'subUnitId':_0x328dd7['subUnitId'],'scopeId':_0x328dd7[_0x3ac9f5(0x3d1)]})),!0x0);}async function ni(_0x409266){const _0x4ad982=_0x1f10c6;var _0x49110c;let _0x17362f=(_0x49110c=globalThis[_0x4ad982(0x3ef)])==null?void 0x0:_0x49110c[_0x4ad982(0x39e)];return _0x17362f!=null&&_0x17362f[_0x4ad982(0x244)]?(await _0x17362f[_0x4ad982(0x244)](_0x409266),!0x0):!0x1;}async function ri(_0x2cf920,_0x1fa133,_0x5b5a2d=ni){const _0x31e816=_0x1f10c6;let _0x4954df=await Promise[_0x31e816(0x434)](_0x2cf920['executeCommand'](_0x1c72f4['id'],_0x1fa133));if(typeof _0x4954df!=_0x31e816(0x185)||!_0x4954df)return!0x1;try{return await _0x5b5a2d(_0x4954df)!==!0x1;}catch{return!0x1;}}async function ii(_0x569138,_0x531ebd){const _0x253963=_0x1f10c6;return _0x531ebd['opml'][_0x253963(0x282)]()?(await _0x569138[_0x253963(0x189)](_0x4975f4['id'],_0x531ebd))[_0x253963(0x365)]:!0x1;}function ai(_0x274a88,_0x5b7ef4){const _0x45cd6c=_0x1f10c6;let _0x3b4fe1=_0x45cd6c(0x1c5)in _0x274a88[_0x45cd6c(0x333)]?_0x274a88[_0x45cd6c(0x333)][_0x45cd6c(0x1c5)][_0x45cd6c(0x3f6)]:void 0x0;return(_0x3b4fe1==null?void 0x0:_0x3b4fe1[_0x45cd6c(0x2e1)])||_0x5b7ef4;}function oi(_0x179831,_0x251923,_0x565b12=_0x35edc8){const _0x454cac=_0x1f10c6;let _0x547d2f=Object['values'](_0x179831)[_0x454cac(0x28f)](_0x48cac6=>{let _0x370763=_0x51f94c(_0x48cac6['element']);return(_0x370763==null?void 0x0:_0x370763['structureScopeId'])===_0x251923?{'data':_0x48cac6,'meta':_0x370763}:null;})[_0x454cac(0x3f7)](_0x43c3f4=>!!_0x43c3f4),_0x10aad7=new Map();_0x547d2f['forEach'](_0x1829f1=>{const _0x1943b8=_0x454cac;let _0x3aa52c=_0x1829f1[_0x1943b8(0x3c4)][_0x1943b8(0x2d9)];_0x10aad7[_0x1943b8(0x27e)](_0x3aa52c,[..._0x10aad7['get'](_0x3aa52c)??[],_0x1829f1]);}),_0x10aad7['forEach'](_0x499dc5=>{const _0x47b249=_0x454cac;_0x499dc5[_0x47b249(0x194)]((_0x212f95,_0x14f63d)=>_0x3ac29b(_0x212f95[_0x47b249(0x3c4)]['orderKey'],_0x14f63d['meta'][_0x47b249(0x312)])||_0x212f95['data'][_0x47b249(0x142)][_0x47b249(0x41b)](_0x14f63d[_0x47b249(0x27c)]['elementId']));});let _0x1a29d0=[],_0x2acafc=(_0x482837,_0x45d611)=>{const _0x24fe7e=_0x454cac;(_0x10aad7[_0x24fe7e(0x1a4)](_0x482837)??[])[_0x24fe7e(0x35f)](_0x1f7b6b=>{const _0x205750=_0x24fe7e;_0x1a29d0[_0x205750(0x292)]({'nodeId':_0x1f7b6b['data'][_0x205750(0x142)],'depth':_0x45d611,'text':ai(_0x1f7b6b[_0x205750(0x27c)],_0x565b12)}),_0x2acafc(_0x1f7b6b[_0x205750(0x27c)][_0x205750(0x142)],_0x45d611+0x1);});};return _0x2acafc(null,0x0),_0x1a29d0;}function si(_0x34c60f,_0x436b71){const _0x3b5472=_0x1f10c6;let _0x5f1840=_0x436b71[_0x3b5472(0x282)]()[_0x3b5472(0x366)]();return _0x5f1840?_0x34c60f[_0x3b5472(0x3f7)](_0x32555d=>_0x32555d[_0x3b5472(0x2e1)]['toLowerCase']()[_0x3b5472(0x183)](_0x5f1840)):_0x34c60f;}function ci(_0xd2438a){return{'paddingInlineStart':0x8+(Number['isFinite'](_0xd2438a)&&_0xd2438a>0x0?_0xd2438a:0x0)*0x10};}function li(_0x5e4aa3){const _0x1d38e3=_0x1f10c6;return _0x4a7fc2(_0x2b2f23,{'className':_0x1d38e3(0x208),..._0x5e4aa3});}function ui(_0x36c0e9){const _0x1f1069=_0x1f10c6;return _0x2bca5a(_0x1f1069(0x35d),{'className':_0x3e6ef4(_0x1f1069(0x421),_0x1e4058),'data-board-mind-map-panel-section':'true','children':[_0x4a7fc2('h3',{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','children':_0x36c0e9['title']}),_0x36c0e9['children']]});}function di(_0x4d46ff,_0x2ed725='structure'){const _0x1b6226=_0x1f10c6;var _0x2b284d,_0x16846c,_0x1e89ef;let _0x44a150=_0x44103d(_0x56aea3),_0x921c2c=_0x44103d(_0x10fb2b),_0x49415e=_0x44103d(_0x52d74d),_0x46b372=_0x44103d(_0x588054),[,_0x468524]=_0x22c633(_0x441367=>_0x441367+0x1,0x0);_0x3733e5(()=>{const _0x526267=_0x1bd6;let _0x31f372=_0x4faf04(_0x49415e['elementAdd$'],_0x49415e[_0x526267(0x162)],_0x49415e[_0x526267(0x429)])[_0x526267(0x3c8)](_0x278b1f=>{const _0xcbd048=_0x526267;_0x278b1f[_0xcbd048(0x442)](_0xd951d=>_0xd951d[_0xcbd048(0x147)]===_0x4d46ff[_0xcbd048(0x147)]&&_0xd951d[_0xcbd048(0x3cd)]===_0x4d46ff[_0xcbd048(0x3cd)])&&_0x468524();});return()=>_0x31f372[_0x526267(0x1fe)]();},[_0x49415e,_0x4d46ff[_0x1b6226(0x147)],_0x4d46ff['subUnitId']]);let _0x2025ee=_0x49415e['getElementData'](_0x4d46ff[_0x1b6226(0x147)],_0x4d46ff[_0x1b6226(0x3cd)]),_0x430ca8=oi(_0x2025ee,_0x4d46ff['scopeId'],_0x46b372['t'](_0x1b6226(0x150))),_0x4bb595=(_0x2b284d=_0x195a16((_0x16846c=_0x2025ee[_0x4d46ff['scopeId']])==null?void 0x0:_0x16846c[_0x1b6226(0x333)]))==null?void 0x0:_0x2b284d['layout'],[_0xaa15ea,_0x2891a5]=_0x63f429(''),[_0x10c5f9,_0x391638]=_0x63f429(null),[_0x2e8d7e,_0x37ed55]=_0x63f429(''),{spacing:_0x4cdb49,direction:_0x35cb5b,structureKind:_0x1c2e6a,branchLineType:_0x38cc9d}=Xr(_0x4bb595),[_0x258ad0,_0x317f31]=_0x63f429(null),[_0x57c10b,_0x138d94]=_0x63f429(_0x2ed725),_0x59eb94=si(_0x430ca8,_0xaa15ea),_0x21ed7a={'unitId':_0x4d46ff[_0x1b6226(0x147)],'subUnitId':_0x4d46ff[_0x1b6226(0x3cd)],'scopeId':_0x4d46ff[_0x1b6226(0x3d1)]};return{'commandService':_0x44a150,'elementStateService':_0x921c2c,'localeService':_0x46b372,'query':_0xaa15ea,'setQuery':_0x2891a5,'editingOutlineNode':_0x10c5f9,'setEditingOutlineNode':_0x391638,'opmlText':_0x2e8d7e,'setOpmlText':_0x37ed55,'spacing':_0x4cdb49,'layoutDirection':_0x35cb5b,'structureKind':_0x1c2e6a,'branchLineType':_0x38cc9d,'setDraggedOutlineNodeId':_0x317f31,'activeTab':_0x57c10b,'setActiveTab':_0x138d94,'visibleOutlineItems':_0x59eb94,'baseParams':_0x21ed7a,'tabItems':Gr['map'](_0x7dad31=>({'label':_0x46b372['t'](_0x1b6226(0x241)+_0x7dad31),'value':_0x7dad31})),'selectedNode':_0x4d46ff[_0x1b6226(0x227)]?(_0x1e89ef=_0x2025ee[_0x4d46ff[_0x1b6226(0x227)]])==null?void 0x0:_0x1e89ef[_0x1b6226(0x333)]:void 0x0,'branchLineItems':Yr['filter'](_0x477062=>_0x477062[_0x1b6226(0x1f9)]!==_0x1b6226(0x411)||_0x2052ed(_0x1c2e6a)),'changeLayout':_0x1e2535=>Zr(_0x44a150,{..._0x21ed7a,'direction':_0x1e2535}),'changeStructureKind':_0x2d14e0=>{let _0x55b3da=_0x557da1(_0x2d14e0,_0x38cc9d);return Zr(_0x44a150,{..._0x21ed7a,'structureKind':_0x2d14e0,..._0x55b3da===_0x38cc9d?null:{'branchLineType':_0x55b3da}});},'changeBranchLineType':_0x59f6a9=>{let _0x24f117=_0x557da1(_0x1c2e6a,_0x59f6a9);return Qr(_0x44a150,{..._0x21ed7a,'branchLineType':_0x24f117});},'changeSpacing':(_0xee2452,_0x16c6e7)=>{let _0x3f2bc8={..._0x4cdb49,[_0xee2452]:_0x16c6e7};return $r(_0x44a150,{..._0x21ed7a,..._0x3f2bc8});},'importOpml':()=>{const _0x511368=_0x1b6226;ii(_0x44a150,{'unitId':_0x4d46ff[_0x511368(0x147)],'subUnitId':_0x4d46ff[_0x511368(0x3cd)],'left':0x78,'top':0x78,'opml':_0x2e8d7e})['then'](_0x2d19fd=>{_0x2d19fd&&_0x37ed55('');});},'exportOpml':()=>ri(_0x44a150,_0x21ed7a),'startRenameNode':(_0x430427,_0x1886fb)=>{_0x391638({'nodeId':_0x430427,'text':_0x1886fb});},'commitRenameNode':()=>{const _0x3a60f0=_0x1b6226;_0x10c5f9&&ti(_0x44a150,{..._0x21ed7a,'nodeId':_0x10c5f9[_0x3a60f0(0x227)],'text':_0x10c5f9[_0x3a60f0(0x2e1)]})[_0x3a60f0(0x161)](_0x450ad0=>{_0x450ad0&&_0x391638(null);});},'reorderNode':(_0x284c70,_0xd89e4)=>{const _0x471954=_0x1b6226;if(_0x284c70[_0x471954(0x188)](),!_0x258ad0||_0x258ad0===_0xd89e4)return;let _0x2b66fd=_0x284c70['currentTarget'][_0x471954(0x206)](),_0xa2f47f=_0x284c70[_0x471954(0x3ec)]<_0x2b66fd['top']+_0x2b66fd['height']/0x2?_0x471954(0x305):_0x471954(0x250);_0x317f31(null),ei(_0x44a150,{..._0x21ed7a,'nodeId':_0x258ad0,'targetNodeId':_0xd89e4,'placement':_0xa2f47f});}};}function fi(_0x44b2df){const _0x2212b2=_0x1f10c6;let {elementStateService:_0x4ef5ae,localeService:_0x609008,query:_0x57e8d6,setQuery:_0x3bd381,editingOutlineNode:_0x11fe7d,setEditingOutlineNode:_0x144b1e,opmlText:_0x3b7728,setOpmlText:_0x22d3f2,spacing:_0x216324,layoutDirection:_0x2a4f2a,structureKind:_0xf5fc74,branchLineType:_0x144d3b,setDraggedOutlineNodeId:_0x5b55a6,activeTab:_0x2c021f,setActiveTab:_0x34defb,visibleOutlineItems:_0x339719,tabItems:_0x568603,branchLineItems:_0x5a77fa,changeLayout:_0xae2358,changeStructureKind:_0x12d857,changeBranchLineType:_0x1e6df4,changeSpacing:_0x3f1fd1,importOpml:_0x245ef4,exportOpml:_0x3826a5,startRenameNode:_0x3fb1a2,commitRenameNode:_0xd9e74a,reorderNode:_0x1c9d78}=di(_0x44b2df);return _0x2bca5a(_0x2212b2(0x2fa),{'className':_0x2212b2(0x2a4),'data-board-mind-map-panel':_0x2212b2(0x2ac),'children':[_0x4a7fc2(_0x2212b2(0x2fa),{'className':_0x3e6ef4(_0x2212b2(0x22b),_0x1e4058),'data-board-mind-map-panel-tabs':'true','children':_0x4a7fc2(li,{'items':_0x568603,'value':_0x2c021f,'onChange':_0x365417=>_0x34defb(_0x365417)})}),_0x2c021f===_0x2212b2(0x3e4)&&_0x4a7fc2(ui,{'title':_0x609008['t'](_0x2212b2(0x428)),'children':_0x2bca5a(_0x2212b2(0x2fa),{'children':[_0x4a7fc2(_0x2cac2e,{'slot':_0x4a7fc2(_0x33044b,{}),'value':_0x57e8d6,'placeholder':_0x609008['t']('boards-mind-ui.panel.searchNodes'),'className':_0x3e6ef4(_0x2212b2(0x269),!0x1),'onChange':_0x3bd381}),_0x339719[_0x2212b2(0x1f3)]?_0x4a7fc2('ol',{'className':_0x2212b2(0x1eb),'children':_0x339719[_0x2212b2(0x28f)](_0x214e9c=>_0x4a7fc2('li',{'draggable':!0x0,'className':_0x2212b2(0x28c),'style':ci(_0x214e9c[_0x2212b2(0x1e2)]),'onDragStart':_0x57b4f1=>{const _0x457159=_0x2212b2;var _0x112a77;_0x5b55a6(_0x214e9c['nodeId']),(_0x112a77=_0x57b4f1['dataTransfer'])==null||_0x112a77[_0x457159(0x353)]('text/plain',_0x214e9c[_0x457159(0x227)]),_0x57b4f1[_0x457159(0x40a)]&&(_0x57b4f1['dataTransfer']['effectAllowed']=_0x457159(0x1de));},'onDragOver':_0x3b0110=>{const _0x2c73a4=_0x2212b2;_0x3b0110[_0x2c73a4(0x188)](),_0x3b0110[_0x2c73a4(0x40a)]&&(_0x3b0110[_0x2c73a4(0x40a)]['dropEffect']='move');},'onDrop':_0x3936d4=>_0x1c9d78(_0x3936d4,_0x214e9c[_0x2212b2(0x227)]),'onDragEnd':()=>_0x5b55a6(null),'children':(_0x11fe7d==null?void 0x0:_0x11fe7d[_0x2212b2(0x227)])===_0x214e9c['nodeId']?_0x2bca5a(_0x2212b2(0x2fa),{'className':_0x3e6ef4(_0x2212b2(0x44f),_0x2212b2(0x32b)),'children':[_0x4a7fc2(_0x2cac2e,{'autoFocus':!0x0,'size':_0x2212b2(0x33d),'className':void 0x0,'value':_0x11fe7d[_0x2212b2(0x2e1)],'onChange':_0x110c20=>_0x144b1e({'nodeId':_0x214e9c[_0x2212b2(0x227)],'text':_0x110c20}),'onKeyDown':_0x2149b7=>{const _0x31ee7b=_0x2212b2;_0x2149b7[_0x31ee7b(0x396)]==='Enter'&&_0xd9e74a(),_0x2149b7['key']===_0x31ee7b(0x262)&&_0x144b1e(null);}}),_0x4a7fc2(_0x4ef5c6,{'className':void 0x0,'size':_0x2212b2(0x33d),'variant':_0x2212b2(0x24a),'disabled':!_0x11fe7d['text'][_0x2212b2(0x282)](),'onClick':_0xd9e74a,'children':_0x609008['t'](_0x2212b2(0x3fc))}),_0x4a7fc2(_0x4ef5c6,{'className':void 0x0,'size':_0x2212b2(0x33d),'variant':'default','onClick':()=>_0x144b1e(null),'children':_0x609008['t'](_0x2212b2(0x1cd))})]}):_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2(_0x4ef5c6,{'size':'small','variant':'ghost','className':_0x3e6ef4(_0x2212b2(0x2e9),!0x1),'onClick':()=>_0x4ef5ae[_0x2212b2(0x29f)]({'unitId':_0x44b2df[_0x2212b2(0x147)],'subUnitId':_0x44b2df['subUnitId']},[_0x214e9c[_0x2212b2(0x227)]],_0x214e9c[_0x2212b2(0x227)]),'children':_0x214e9c[_0x2212b2(0x2e1)]}),_0x4a7fc2(_0x4ef5c6,{'className':_0x3e6ef4(_0x2212b2(0x29b),_0x2212b2(0x3af)),'size':_0x2212b2(0x33d),'variant':_0x2212b2(0x3bb),'onClick':()=>_0x3fb1a2(_0x214e9c[_0x2212b2(0x227)],_0x214e9c[_0x2212b2(0x2e1)]),'children':_0x609008['t'](_0x2212b2(0x3fc))})]})},_0x214e9c[_0x2212b2(0x227)]))}):_0x4a7fc2(_0x2212b2(0x2fa),{'className':'univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','data-board-mind-map-panel-empty-state':_0x2212b2(0x2ac),'children':_0x609008['t']('boards-mind-ui.panel.emptyNodes')})]})}),_0x2c021f===_0x2212b2(0x1d4)&&_0x4a7fc2(ui,{'title':_0x609008['t']('boards-mind-ui.panel.tab.layout'),'children':_0x2bca5a('div',{'className':_0x2212b2(0x1a8),'children':[_0x4a7fc2(_0x2212b2(0x2fa),{'className':'univer-flex\x20univer-gap-2','children':_0x4a7fc2(li,{'items':Jr[_0x2212b2(0x28f)](_0x26691d=>({'label':_0x609008['t'](_0x26691d[_0x2212b2(0x41a)]),'value':_0x26691d['value']})),'value':_0xf5fc74,'onChange':_0x330a87=>_0x12d857(_0x330a87)})}),_0x4a7fc2(_0x2212b2(0x2fa),{'className':'univer-flex\x20univer-gap-2','children':_0x4a7fc2(li,{'items':qr['map'](_0x46179c=>({'label':_0x609008['t'](_0x46179c[_0x2212b2(0x41a)]),'value':_0x46179c[_0x2212b2(0x1f9)]})),'value':_0x2a4f2a,'onChange':_0x56da4d=>_0xae2358(_0x56da4d)})}),_0x4a7fc2(_0x2212b2(0x2fa),{'className':_0x2212b2(0x19a),'children':_0x4a7fc2(li,{'items':_0x5a77fa['map'](_0x20b268=>({'label':_0x609008['t'](_0x20b268[_0x2212b2(0x41a)]),'value':_0x20b268[_0x2212b2(0x1f9)]})),'value':_0x144d3b,'onChange':_0x224ef3=>_0x1e6df4(_0x224ef3)})}),_0x4a7fc2(_0x2212b2(0x2fa),{'className':_0x2212b2(0x446),'children':Kr['map'](({labelKey:_0x104e48,key:_0x3c0ee4,min:_0x5a8d9c,max:_0x358ac2})=>_0x2bca5a(_0x2212b2(0x215),{'className':_0x2212b2(0x425),'children':[_0x4a7fc2(_0x2212b2(0x371),{'className':_0x2212b2(0x296),'children':_0x609008['t'](_0x104e48)}),_0x4a7fc2(_0x5d147a,{'controls':!0x0,'inputClassName':void 0x0,'min':_0x5a8d9c,'max':_0x358ac2,'step':0x4,'value':_0x216324[_0x3c0ee4],'precision':0x0,'className':'univer-w-24','onChange':_0x5c974b=>_0x3f1fd1(_0x3c0ee4,Number(_0x5c974b??_0x5a8d9c))})]},_0x3c0ee4))})]})}),_0x2c021f===_0x2212b2(0x218)&&_0x4a7fc2(ui,{'title':_0x609008['t'](_0x2212b2(0x274)),'children':_0x2bca5a(_0x2212b2(0x2fa),{'className':_0x2212b2(0x3e5),'children':[_0x4a7fc2(_0x5163c9,{'className':_0x3e6ef4(_0x2212b2(0x1d0),_0x2212b2(0x3af)),'placeholder':_0x609008['t'](_0x2212b2(0x357)),'value':_0x3b7728,'onValueChange':_0x22d3f2}),_0x2bca5a(_0x2212b2(0x2fa),{'className':_0x2212b2(0x19a),'children':[_0x4a7fc2(_0x4ef5c6,{'className':void 0x0,'size':_0x2212b2(0x33d),'variant':'primary','disabled':!_0x3b7728[_0x2212b2(0x282)](),'onClick':_0x245ef4,'children':_0x609008['t'](_0x2212b2(0x16d))}),_0x4a7fc2(_0x4ef5c6,{'className':void 0x0,'size':_0x2212b2(0x33d),'variant':_0x2212b2(0x3bb),'onClick':_0x3826a5,'children':_0x609008['t'](_0x2212b2(0x293))})]})]})})]});}let pi=class extends _0x494558{constructor(_0x44ca8f,_0x33ccd8,_0xfb3e79){const _0x4fcdea=_0x1f10c6;super(),this['_commandService']=_0x44ca8f,this[_0x4fcdea(0x379)]=_0x33ccd8,this[_0x4fcdea(0x1a9)]=_0xfb3e79,K(this,_0x4fcdea(0x443),null),this[_0x4fcdea(0x1c8)](this[_0x4fcdea(0x210)]['registerCommand'](Ur)),this[_0x4fcdea(0x1c8)](this[_0x4fcdea(0x210)][_0x4fcdea(0x1ec)](_0x1473c0=>{const _0x8663b7=_0x4fcdea;if(_0x1473c0['id']!==Ur['id'])return;let _0x23f6b2=_0x1473c0[_0x8663b7(0x316)];_0x23f6b2&&'unitId'in _0x23f6b2&&typeof _0x23f6b2[_0x8663b7(0x147)]==_0x8663b7(0x185)&&_0x8663b7(0x3cd)in _0x23f6b2&&typeof _0x23f6b2[_0x8663b7(0x3cd)]==_0x8663b7(0x185)&&_0x8663b7(0x3d1)in _0x23f6b2&&typeof _0x23f6b2[_0x8663b7(0x3d1)]=='string'&&this['open']({'unitId':_0x23f6b2[_0x8663b7(0x147)],'subUnitId':_0x23f6b2[_0x8663b7(0x3cd)],'scopeId':_0x23f6b2[_0x8663b7(0x3d1)],'nodeId':_0x8663b7(0x227)in _0x23f6b2&&typeof _0x23f6b2[_0x8663b7(0x227)]==_0x8663b7(0x185)?_0x23f6b2['nodeId']:void 0x0});}));}[_0x1f10c6(0x3c0)](){const _0x1b2cdc=_0x1f10c6;var _0xe95cfc;(_0xe95cfc=this[_0x1b2cdc(0x443)])==null||_0xe95cfc[_0x1b2cdc(0x3c0)](),this[_0x1b2cdc(0x443)]=null,super['dispose']();}[_0x1f10c6(0x187)](_0xe94827){const _0x5385df=_0x1f10c6;var _0x38cce7;let _0x556b6d={'label':Wr,..._0xe94827},_0xf0e6d3={'id':Wr,'layout':_0x5385df(0x410),'header':{'title':this['_localeService']['t'](_0x5385df(0x34b))},'width':0x184,'children':_0x556b6d,'onClose':()=>{this['_sidebarDisposable']=null;}};(_0x38cce7=this[_0x5385df(0x443)])==null||_0x38cce7[_0x5385df(0x3c0)](),this['_sidebarDisposable']=this[_0x5385df(0x1a9)][_0x5385df(0x187)](_0xf0e6d3);}};pi=J([q(0x0,_0x56aea3),q(0x1,_0x2e0f98(_0x588054)),q(0x2,_0x2e0f98(_0x56009b))],pi);function mi(_0x144aec){const _0x5e4a5b=_0x1f10c6;let _0x373267=_0x44103d(_0x56aea3),_0xd332ac=_0x144aec[_0x5e4a5b(0x352)][_0x5e4a5b(0x281)];return _0xd332ac?_0x4a7fc2(_0x3a615f,{'shapeRef':{'hostType':_0x25af0d[_0x5e4a5b(0x29c)],'unitId':_0xd332ac[_0x5e4a5b(0x147)],'subUnitId':_0xd332ac[_0x5e4a5b(0x3cd)],'shapeId':_0xd332ac[_0x5e4a5b(0x142)]},'onText':()=>qn(_0x373267,_0x5e4a5b(0x433)),'onStyle':()=>_0x373267['executeCommand'](Ur['id'],{'unitId':_0xd332ac[_0x5e4a5b(0x147)],'subUnitId':_0xd332ac[_0x5e4a5b(0x3cd)],'scopeId':_0xd332ac[_0x5e4a5b(0x3d1)],'nodeId':_0xd332ac[_0x5e4a5b(0x142)]}),'onDelete':()=>qn(_0x373267,_0x5e4a5b(0x3fe))}):null;}function hi(_0x149d57){const _0x4f0afa=_0x1f10c6;var _0xc77790,_0x3d68e3,_0x2c5df5,_0x2506de,_0x4db66d;let _0x73abff=_0x44103d(_0x56aea3),_0x31311c=_0x44103d(_0x588054),_0x3ddde6=_0x44103d(_0x23931d),_0x2eccac=_0x376a49(_0x3ddde6[_0x4f0afa(0x1fb)],_0x3ddde6[_0x4f0afa(0x26e)]()),[_0x33c62d,_0x47c07c]=_0x63f429(null),_0x33cc7e=_0x3a3968(_0x149d57[_0x4f0afa(0x1c5)]),_0x1b37d1=_0x33cc7e['ff']??_0x3ef48a[_0x4f0afa(0x3f6)][_0x4f0afa(0x2ed)],_0x329ae6=_0x33cc7e['fs']??_0x3ef48a[_0x4f0afa(0x3f6)]['fontSize'];function _0x59db9c(_0x2bfe71){const _0x3c4fc2=_0x4f0afa;return _0x73abff['executeCommand'](_0x1c2b74['id'],{'unitId':_0x149d57[_0x3c4fc2(0x147)],'subUnitId':_0x149d57[_0x3c4fc2(0x3cd)],'nodeId':_0x149d57[_0x3c4fc2(0x227)],..._0x2bfe71});}let _0x468df6=[{'key':_0x4f0afa(0x31a),'value':((_0xc77790=_0x149d57[_0x4f0afa(0x1c5)][_0x4f0afa(0x31a)])==null?void 0x0:_0xc77790[_0x4f0afa(0x143)])??_0x3ef48a[_0x4f0afa(0x31a)]},{'key':_0x4f0afa(0x45a),'value':((_0x3d68e3=_0x149d57[_0x4f0afa(0x1c5)][_0x4f0afa(0x45a)])==null?void 0x0:_0x3d68e3['color'])??_0x3ef48a[_0x4f0afa(0x45a)]},{'key':'fontColor','value':((_0x2c5df5=_0x33cc7e['cl'])==null?void 0x0:_0x2c5df5[_0x4f0afa(0x44a)])??_0x3ef48a[_0x4f0afa(0x3f6)][_0x4f0afa(0x143)]}];if(_0x33c62d){var _0xb2457a;return _0x2bca5a('div',{'className':_0x4f0afa(0x37b),'children':[_0x4a7fc2(_0x4ef5c6,{'className':_0x4f0afa(0x44d),'onClick':()=>_0x47c07c(null),'children':_0x31311c['t'](_0x4f0afa(0x1cd))}),_0x33c62d===_0x4f0afa(0x2ed)?_0x2eccac==null?void 0x0:_0x2eccac[_0x4f0afa(0x28f)](_0x202f74=>_0x4a7fc2(_0x4ef5c6,{'className':'univer-min-h-12\x20univer-w-full','aria-pressed':_0x1b37d1===_0x202f74[_0x4f0afa(0x1f9)],'variant':_0x1b37d1===_0x202f74[_0x4f0afa(0x1f9)]?_0x4f0afa(0x24a):'default','onClick':async()=>{const _0x40a899=_0x4f0afa;await _0x59db9c({'textStyle':{'fontFamily':_0x202f74[_0x40a899(0x1f9)]}}),_0x47c07c(null);},'children':_0x202f74[_0x4f0afa(0x215)]},_0x202f74[_0x4f0afa(0x1f9)])):_0x4a7fc2(_0x4001ce,{'value':(_0xb2457a=_0x468df6['find'](({key:_0x3e00bb})=>_0x3e00bb===_0x33c62d))==null?void 0x0:_0xb2457a['value'],'onSelect':async _0x1fff08=>{const _0x4e9210=_0x4f0afa;_0x33c62d===_0x4e9210(0x31a)?await _0x59db9c({'fillColor':_0x1fff08}):_0x33c62d===_0x4e9210(0x45a)?await _0x59db9c({'strokeColor':_0x1fff08}):await _0x59db9c({'textStyle':{'color':_0x1fff08}}),_0x47c07c(null);}})]});}let _0x18eb05=[{'key':_0x4f0afa(0x345),'active':_0x33cc7e['bl']===_0x3f7dc4[_0x4f0afa(0x3f3)],'icon':_0x4a7fc2(_0x39f22d,{})},{'key':_0x4f0afa(0x2a8),'active':_0x33cc7e['it']===_0x3f7dc4[_0x4f0afa(0x3f3)],'icon':_0x4a7fc2(_0x175b66,{})},{'key':'underline','active':((_0x2506de=_0x33cc7e['ul'])==null?void 0x0:_0x2506de['s'])===_0x3f7dc4[_0x4f0afa(0x3f3)],'icon':_0x4a7fc2(_0x5c18a9,{})},{'key':_0x4f0afa(0x1ae),'active':((_0x4db66d=_0x33cc7e['st'])==null?void 0x0:_0x4db66d['s'])===_0x3f7dc4[_0x4f0afa(0x3f3)],'icon':_0x4a7fc2(_0x325ccb,{})}];return _0x2bca5a(_0x4f0afa(0x2fa),{'className':_0x4f0afa(0x37b),'children':[_0x4a7fc2(_0x4f0afa(0x2fa),{'className':_0x4f0afa(0x40b),'children':_0x18eb05['map'](({key:_0x218e30,active:_0xdb7d40,icon:_0x3d05ab})=>_0x4a7fc2(_0x4ef5c6,{'className':_0x4f0afa(0x1cf),'aria-label':_0x31311c['t']('boards-mind-ui.panel.nodeStyle.'+_0x218e30),'aria-pressed':_0xdb7d40,'variant':_0xdb7d40?_0x4f0afa(0x24a):'default','onClick':()=>_0x59db9c({'textStyle':{[_0x218e30]:!_0xdb7d40}}),'children':_0x3d05ab},_0x218e30))}),_0x2bca5a(_0x4ef5c6,{'className':_0x4f0afa(0x2de),'onClick':()=>_0x47c07c(_0x4f0afa(0x2ed)),'children':[_0x4a7fc2(_0x4f0afa(0x371),{'children':_0x31311c['t']('boards-mind-ui.panel.nodeStyle.fontFamily')}),_0x4a7fc2('span',{'children':_0x1b37d1})]}),_0x2bca5a(_0x4f0afa(0x215),{'className':_0x4f0afa(0x437),'children':[_0x4a7fc2(_0x4f0afa(0x371),{'children':_0x31311c['t'](_0x4f0afa(0x216))}),_0x4a7fc2(_0x5d147a,{'className':_0x4f0afa(0x25c),'inputClassName':'[&_input]:univer-h-12\x20[&_input]:univer-text-base','controls':!0x1,'min':0x1,'value':_0x329ae6,'onChange':_0x2cd313=>{if(_0x2cd313!=null)return _0x59db9c({'textStyle':{'fontSize':_0x2cd313}});}})]}),_0x468df6['map'](({key:_0x55e47d,value:_0x397cde})=>_0x2bca5a(_0x4ef5c6,{'className':_0x4f0afa(0x2de),'onClick':()=>_0x47c07c(_0x55e47d),'children':[_0x4a7fc2(_0x4f0afa(0x371),{'children':_0x31311c['t'](_0x4f0afa(0x2f8)+_0x55e47d)}),_0x4a7fc2('span',{'className':_0x4f0afa(0x23f),'style':{'backgroundColor':_0x397cde}})]},_0x55e47d))]});}function gi(_0x34b8c8){const _0x3543a5=_0x1f10c6;return _0x4a7fc2(_0x3543a5(0x2fa),{'className':_0x3e6ef4(_0x3543a5(0x2ff),_0x34b8c8[_0x3543a5(0x41e)]['length']===0x4?'univer-grid-cols-4':_0x3543a5(0x2f0)),'children':_0x34b8c8[_0x3543a5(0x41e)][_0x3543a5(0x28f)](_0x6299d=>_0x4a7fc2(_0x4ef5c6,{'className':_0x3543a5(0x388),'variant':_0x34b8c8['value']===_0x6299d[_0x3543a5(0x1f9)]?'primary':'default','aria-pressed':_0x34b8c8[_0x3543a5(0x1f9)]===_0x6299d[_0x3543a5(0x1f9)],'onClick':()=>_0x34b8c8[_0x3543a5(0x1e8)](_0x6299d[_0x3543a5(0x1f9)]),'children':_0x6299d[_0x3543a5(0x215)]},_0x6299d['value']))});}function _i(_0x3919d0){const _0x5547e4=_0x1f10c6;let {commandService:_0x4ad13f,elementStateService:_0x22a031,localeService:_0x3d044e,query:_0x2d6527,setQuery:_0x548afd,editingOutlineNode:_0x514bce,setEditingOutlineNode:_0x49bb23,opmlText:_0x182cac,setOpmlText:_0x1485f7,spacing:_0x289062,layoutDirection:_0x24d62f,structureKind:_0x687d96,branchLineType:_0x57d264,activeTab:_0x3e32e2,setActiveTab:_0x4ff80c,visibleOutlineItems:_0x35200f,baseParams:_0x25f4bf,tabItems:_0x15c482,selectedNode:_0x4b5e79,branchLineItems:_0x185115,changeLayout:_0xccd201,changeStructureKind:_0x4af5c2,changeBranchLineType:_0x1b0778,changeSpacing:_0x3d706a,importOpml:_0x3540f6,startRenameNode:_0x26340d,commitRenameNode:_0x57b718}=di(_0x3919d0,_0x3919d0[_0x5547e4(0x227)]?_0x5547e4(0x337):_0x5547e4(0x3e4));return(_0x4b5e79==null?void 0x0:_0x4b5e79[_0x5547e4(0x1ce)])===_0x3a0cfb['Shape']&&_0x15c482[_0x5547e4(0x153)]({'label':_0x3d044e['t'](_0x5547e4(0x286)),'value':_0x5547e4(0x337)}),_0x2bca5a(_0x5547e4(0x2fa),{'className':_0x5547e4(0x2a4),'data-board-mind-map-panel':'true','children':[_0x4a7fc2(_0x5547e4(0x2fa),{'className':_0x3e6ef4(_0x5547e4(0x22b),_0x1e4058),'data-board-mind-map-panel-tabs':'true','children':_0x4a7fc2(gi,{'items':_0x15c482,'value':_0x3e32e2,'onChange':_0x188601=>_0x4ff80c(_0x188601)})}),_0x3e32e2==='style'&&(_0x4b5e79==null?void 0x0:_0x4b5e79[_0x5547e4(0x1ce)])===_0x3a0cfb[_0x5547e4(0x1c3)]&&_0x4a7fc2(hi,{'unitId':_0x3919d0[_0x5547e4(0x147)],'subUnitId':_0x3919d0[_0x5547e4(0x3cd)],'nodeId':_0x4b5e79['id'],'shapeData':_0x4b5e79['shapeData']}),_0x3e32e2===_0x5547e4(0x3e4)&&_0x4a7fc2(ui,{'title':_0x3d044e['t']('boards-mind-ui.panel.tab.structure'),'children':_0x2bca5a('div',{'children':[_0x4a7fc2(_0x2cac2e,{'slot':_0x4a7fc2(_0x33044b,{}),'value':_0x2d6527,'placeholder':_0x3d044e['t'](_0x5547e4(0x302)),'className':_0x3e6ef4(_0x5547e4(0x269),_0x5547e4(0x21e)),'onChange':_0x548afd}),_0x35200f[_0x5547e4(0x1f3)]?_0x4a7fc2('ol',{'className':'univer-space-y-1','children':_0x35200f[_0x5547e4(0x28f)](_0x95b1a9=>_0x4a7fc2('li',{'className':'univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','style':ci(_0x95b1a9['depth']),'children':(_0x514bce==null?void 0x0:_0x514bce[_0x5547e4(0x227)])===_0x95b1a9[_0x5547e4(0x227)]?_0x2bca5a(_0x5547e4(0x2fa),{'className':_0x3e6ef4(_0x5547e4(0x44f),_0x5547e4(0x154)),'children':[_0x4a7fc2(_0x2cac2e,{'autoFocus':!0x1,'size':_0x5547e4(0x36a),'className':_0x5547e4(0x2e6),'value':_0x514bce[_0x5547e4(0x2e1)],'onChange':_0x37bc52=>_0x49bb23({'nodeId':_0x95b1a9['nodeId'],'text':_0x37bc52}),'onKeyDown':_0x2eb73f=>{const _0x54f730=_0x5547e4;_0x2eb73f[_0x54f730(0x396)]===_0x54f730(0x1d8)&&_0x57b718(),_0x2eb73f[_0x54f730(0x396)]===_0x54f730(0x262)&&_0x49bb23(null);}}),_0x4a7fc2(_0x4ef5c6,{'className':'univer-min-h-12\x20univer-flex-1','size':'small','variant':_0x5547e4(0x24a),'disabled':!_0x514bce[_0x5547e4(0x2e1)][_0x5547e4(0x282)](),'onClick':_0x57b718,'children':_0x3d044e['t'](_0x5547e4(0x3fc))}),_0x4a7fc2(_0x4ef5c6,{'className':_0x5547e4(0x2e5),'size':_0x5547e4(0x33d),'variant':_0x5547e4(0x3bb),'onClick':()=>_0x49bb23(null),'children':_0x3d044e['t'](_0x5547e4(0x1cd))})]}):_0x2bca5a(_0x3a937c,{'children':[_0x4a7fc2(_0x4ef5c6,{'size':'small','variant':_0x5547e4(0x26b),'className':_0x3e6ef4('univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left',_0x5547e4(0x380)),'onClick':()=>_0x22a031[_0x5547e4(0x29f)]({'unitId':_0x3919d0[_0x5547e4(0x147)],'subUnitId':_0x3919d0[_0x5547e4(0x3cd)]},[_0x95b1a9[_0x5547e4(0x227)]],_0x95b1a9[_0x5547e4(0x227)]),'children':_0x95b1a9['text']}),_0x4a7fc2(_0x4ef5c6,{'className':_0x3e6ef4('univer-text-gray-500',_0x5547e4(0x179)),'size':'small','variant':_0x5547e4(0x3bb),'onClick':()=>_0x26340d(_0x95b1a9[_0x5547e4(0x227)],_0x95b1a9[_0x5547e4(0x2e1)]),'children':_0x3d044e['t']('boards-mind-ui.panel.rename')})]})},_0x95b1a9['nodeId']))}):_0x4a7fc2('div',{'className':_0x5547e4(0x451),'data-board-mind-map-panel-empty-state':_0x5547e4(0x2ac),'children':_0x3d044e['t'](_0x5547e4(0x2f5))})]})}),_0x3e32e2===_0x5547e4(0x1d4)&&_0x4a7fc2(ui,{'title':_0x3d044e['t']('boards-mind-ui.panel.tab.layout'),'children':_0x2bca5a('div',{'className':'univer-space-y-3','children':[_0x4a7fc2('div',{'className':_0x5547e4(0x19a),'children':_0x4a7fc2(gi,{'items':Jr['map'](_0x1eda34=>({'label':_0x3d044e['t'](_0x1eda34[_0x5547e4(0x41a)]),'value':_0x1eda34[_0x5547e4(0x1f9)]})),'value':_0x687d96,'onChange':_0x7f7730=>_0x4af5c2(_0x7f7730)})}),_0x4a7fc2(_0x5547e4(0x2fa),{'className':_0x5547e4(0x19a),'children':_0x4a7fc2(gi,{'items':qr[_0x5547e4(0x28f)](_0x4aa9e3=>({'label':_0x3d044e['t'](_0x4aa9e3[_0x5547e4(0x41a)]),'value':_0x4aa9e3['value']})),'value':_0x24d62f,'onChange':_0x19fa26=>_0xccd201(_0x19fa26)})}),_0x4a7fc2(_0x5547e4(0x2fa),{'className':_0x5547e4(0x19a),'children':_0x4a7fc2(gi,{'items':_0x185115['map'](_0x2a6cfb=>({'label':_0x3d044e['t'](_0x2a6cfb[_0x5547e4(0x41a)]),'value':_0x2a6cfb['value']})),'value':_0x57d264,'onChange':_0x3a1982=>_0x1b0778(_0x3a1982)})}),_0x4a7fc2(_0x5547e4(0x2fa),{'className':'univer-space-y-2','children':Kr[_0x5547e4(0x28f)](({labelKey:_0x56c860,key:_0x39cce9,min:_0x24acb2,max:_0x4a0786})=>_0x2bca5a(_0x5547e4(0x215),{'className':_0x5547e4(0x425),'children':[_0x4a7fc2(_0x5547e4(0x371),{'className':'univer-flex-1\x20univer-text-sm','children':_0x3d044e['t'](_0x56c860)}),_0x4a7fc2(_0x5d147a,{'controls':!0x1,'inputClassName':_0x5547e4(0x268),'min':_0x24acb2,'max':_0x4a0786,'step':0x4,'value':_0x289062[_0x39cce9],'precision':0x0,'className':_0x5547e4(0x13e),'onChange':_0x1a4b25=>_0x3d706a(_0x39cce9,Number(_0x1a4b25??_0x24acb2))})]},_0x39cce9))})]})}),_0x3e32e2===_0x5547e4(0x218)&&_0x4a7fc2(ui,{'title':_0x3d044e['t'](_0x5547e4(0x274)),'children':_0x2bca5a('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0x4a7fc2(_0x5163c9,{'className':_0x3e6ef4(_0x5547e4(0x1d0),'univer-text-base'),'placeholder':_0x3d044e['t'](_0x5547e4(0x357)),'value':_0x182cac,'onValueChange':_0x1485f7}),_0x2bca5a(_0x5547e4(0x2fa),{'className':_0x5547e4(0x19a),'children':[_0x4a7fc2(_0x4ef5c6,{'className':'univer-min-h-12\x20univer-flex-1','size':'small','variant':_0x5547e4(0x24a),'disabled':!_0x182cac['trim'](),'onClick':_0x3540f6,'children':_0x3d044e['t'](_0x5547e4(0x16d))}),_0x4a7fc2(_0x4ef5c6,{'className':_0x5547e4(0x2e5),'size':_0x5547e4(0x33d),'variant':_0x5547e4(0x3bb),'onClick':async()=>{let _0x1aa6be=await _0x4ad13f['executeCommand'](_0x1c72f4['id'],_0x25f4bf);_0x1aa6be!==!0x1&&_0x1485f7(_0x1aa6be);},'children':_0x3d044e['t'](_0x5547e4(0x293))})]})]})})]});}let vi=class extends _0x494558{constructor(_0x4b91cc){const _0x571e81=_0x1f10c6;super(),this[_0x571e81(0x3dd)]=_0x4b91cc,this[_0x571e81(0x42f)]();}[_0x1f10c6(0x42f)](){const _0x5e1e22=_0x1f10c6;this[_0x5e1e22(0x1c8)](this[_0x5e1e22(0x3dd)][_0x5e1e22(0x230)](On,An)),this['disposeWithMe'](this[_0x5e1e22(0x3dd)][_0x5e1e22(0x230)](Kn,mi)),this[_0x5e1e22(0x1c8)](this[_0x5e1e22(0x3dd)][_0x5e1e22(0x230)](Wr,_i));}};vi=J([q(0x0,_0x2e0f98(_0x583274))],vi);let yi=class extends _0x494558{constructor(_0x41bc9f,_0x36d371,_0x284643){const _0x2571dd=_0x1f10c6;super(),this[_0x2571dd(0x210)]=_0x41bc9f,this['_localeService']=_0x36d371,this[_0x2571dd(0x1a9)]=_0x284643,K(this,_0x2571dd(0x443),null),this['disposeWithMe'](this[_0x2571dd(0x210)][_0x2571dd(0x2d2)](Ur)),this[_0x2571dd(0x1c8)](this[_0x2571dd(0x210)]['onCommandExecuted'](_0x22712f=>{const _0x4b5df0=_0x2571dd;if(_0x22712f['id']!==Ur['id'])return;let _0x2d24e9=_0x22712f[_0x4b5df0(0x316)];_0x2d24e9&&_0x4b5df0(0x147)in _0x2d24e9&&typeof _0x2d24e9['unitId']=='string'&&'subUnitId'in _0x2d24e9&&typeof _0x2d24e9['subUnitId']==_0x4b5df0(0x185)&&_0x4b5df0(0x3d1)in _0x2d24e9&&typeof _0x2d24e9['scopeId']==_0x4b5df0(0x185)&&this['open']({'unitId':_0x2d24e9[_0x4b5df0(0x147)],'subUnitId':_0x2d24e9[_0x4b5df0(0x3cd)],'scopeId':_0x2d24e9[_0x4b5df0(0x3d1)],'nodeId':'nodeId'in _0x2d24e9&&typeof _0x2d24e9[_0x4b5df0(0x227)]==_0x4b5df0(0x185)?_0x2d24e9['nodeId']:void 0x0});}));}[_0x1f10c6(0x3c0)](){const _0x51946a=_0x1f10c6;var _0x5c313e;(_0x5c313e=this[_0x51946a(0x443)])==null||_0x5c313e['dispose'](),this[_0x51946a(0x443)]=null,super[_0x51946a(0x3c0)]();}[_0x1f10c6(0x187)](_0x2ebd9e){const _0x408c33=_0x1f10c6;var _0x16baa0;let _0x4fe49a={'label':Wr,..._0x2ebd9e};(_0x16baa0=this[_0x408c33(0x443)])==null||_0x16baa0['dispose'](),this[_0x408c33(0x443)]=this['_sidebarService'][_0x408c33(0x187)]({'id':Wr,'header':{'title':this[_0x408c33(0x379)]['t']('boards-mind-ui.panel.title')},'width':0x184,'children':_0x4fe49a,'onClose':()=>{const _0x4ed580=_0x408c33;this[_0x4ed580(0x443)]=null;}});}};yi=J([q(0x0,_0x56aea3),q(0x1,_0x2e0f98(_0x588054)),q(0x2,_0x2e0f98(_0x56009b))],yi);let bi=class extends _0x494558{constructor(_0x786490){const _0x9c42e7=_0x1f10c6;super(),this['_componentManager']=_0x786490,this[_0x9c42e7(0x42f)]();}[_0x1f10c6(0x42f)](){const _0x39637f=_0x1f10c6;this['disposeWithMe'](this[_0x39637f(0x3dd)][_0x39637f(0x230)](On,An)),this[_0x39637f(0x1c8)](this[_0x39637f(0x3dd)]['register'](Kn,cr)),this[_0x39637f(0x1c8)](this[_0x39637f(0x3dd)][_0x39637f(0x230)](Wr,fi));}};bi=J([q(0x0,_0x2e0f98(_0x583274))],bi);let xi=class{constructor(_0x3a5bb2,_0x5f39ff,_0x36ac5c){const _0xfa9766=_0x1f10c6;this[_0xfa9766(0x376)]=_0x3a5bb2,this[_0xfa9766(0x1ff)]=_0x5f39ff,this[_0xfa9766(0x311)]=_0x36ac5c;}['beginMindMapMode'](_0x5a1062){const _0x4e7fc4=_0x1f10c6;var _0x537256,_0x5b69d1;let _0x535fcb=(_0x537256=this[_0x4e7fc4(0x311)][_0x4e7fc4(0x3de)](_0x5a1062[_0x4e7fc4(0x147)]))==null||(_0x5b69d1=_0x537256[_0x4e7fc4(0x344)])==null?void 0x0:_0x5b69d1[_0x4e7fc4(0x266)](_0x537256),_0x2f26a7=(_0x535fcb==null?void 0x0:_0x535fcb[_0x4e7fc4(0x1a4)](_0x50e115))??this['_stateService'];return((_0x535fcb==null?void 0x0:_0x535fcb[_0x4e7fc4(0x1a4)](br))??this['_insertStateService'])[_0x4e7fc4(0x457)]({'rootText':_0x5a1062[_0x4e7fc4(0x237)],'structureKind':_0x5a1062[_0x4e7fc4(0x381)],'branchLineType':_0x5a1062[_0x4e7fc4(0x42b)],'children':_0x5a1062[_0x4e7fc4(0x39d)],'blueprint':_0x5a1062[_0x4e7fc4(0x30e)]}),_0x2f26a7[_0x4e7fc4(0x201)](!0x1),_0x2f26a7['clearPendingInsert'](),_0x2f26a7['setActiveTool'](_0x529842[_0x4e7fc4(0x2e3)]),_0x2f26a7[_0x4e7fc4(0x157)]({'type':_0x529842['MindMap']}),!0x0;}};xi=J([q(0x0,_0x50e115),q(0x1,_0x2e0f98(br)),q(0x2,_0x2411d0)],xi);const Si='UNIVER_BOARDS_MIND_UI_PLUGIN',Ci=[Dn],wi=[Vr];let Ti=class extends _0x5c3776{constructor(_0x3da47c=en,_0x3e93da,_0xc6ec33,_0x3a57d4){const _0x4b71e8=_0x1f10c6;super(),this[_0x4b71e8(0x31d)]=_0x3da47c,this['_injector']=_0x3e93da,this['_configService']=_0xc6ec33,this[_0x4b71e8(0x311)]=_0x3a57d4;let {..._0xec35fc}=_0x4a118c({},en,this[_0x4b71e8(0x31d)]);this[_0x4b71e8(0x27d)][_0x4b71e8(0x24f)]($t,_0xec35fc);}[_0x1f10c6(0x1dd)](){const _0x22f6e0=_0x1f10c6;_0x5a6c40[_0x22f6e0(0x30c)](this[_0x22f6e0(0x2c2)],[[br],[Tr]]),this['_getDependencies']()['forEach'](_0x52284f=>this['_injector'][_0x22f6e0(0x2c0)](_0x52284f));let _0x505185=this['_injector'][_0x22f6e0(0x1a4)](xi),_0x402fde=this['_injector'][_0x22f6e0(0x1a4)](_0x29fd82);this[_0x22f6e0(0x1c8)](_0x402fde[_0x22f6e0(0x25f)](_0x505185)),this['disposeWithMe'](this[_0x22f6e0(0x2c2)][_0x22f6e0(0x1a4)](Ln)),this[_0x22f6e0(0x1c8)](this['_injector'][_0x22f6e0(0x1a4)](zr)),this[_0x22f6e0(0x1c8)](this[_0x22f6e0(0x2c2)][_0x22f6e0(0x1a4)](yi)),this['disposeWithMe'](this[_0x22f6e0(0x2c2)][_0x22f6e0(0x1a4)](bi)),this[_0x22f6e0(0x24c)]();}[_0x1f10c6(0x406)](){return[[br],[Tr],[xi],[Ln],[zr],[yi],[bi]];}[_0x1f10c6(0x351)](){return[Ci,wi,[wr],[Lr],[ur],[En],[an],[Or]];}[_0x1f10c6(0x349)](){const _0x1868f5=_0x1f10c6;this[_0x1868f5(0x351)]()[_0x1868f5(0x35f)](_0x5dc36a=>{const _0x44a69b=_0x1868f5;this['disposeWithMe'](this[_0x44a69b(0x311)][_0x44a69b(0x239)](_0x25af0d[_0x44a69b(0x29c)],_0x5dc36a));});}[_0x1f10c6(0x24c)](){const _0x5f2328=_0x1f10c6;var _0x4aedf3,_0x22b9f6;let _0xcb46a8=this[_0x5f2328(0x3ca)]();this[_0x5f2328(0x27d)][_0x5f2328(0x24f)](_0x5a2905,{..._0xcb46a8,'toolbar':{..._0xcb46a8[_0x5f2328(0x1e1)],'tools':{...(_0x4aedf3=_0xcb46a8[_0x5f2328(0x1e1)])==null?void 0x0:_0x4aedf3[_0x5f2328(0x152)],[_0x529842['MindMap']]:Ei((_0x22b9f6=_0xcb46a8[_0x5f2328(0x1e1)])==null||(_0x22b9f6=_0x22b9f6[_0x5f2328(0x152)])==null?void 0x0:_0x22b9f6[_0x529842[_0x5f2328(0x2e3)]])}}});}[_0x1f10c6(0x3ca)](){const _0x28fda2=_0x1f10c6;return this[_0x28fda2(0x27d)]['getConfig'](_0x5a2905)??{};}};K(Ti,_0x1f10c6(0x231),Si),K(Ti,_0x1f10c6(0x1f5),Zt),K(Ti,_0x1f10c6(0x370),Qt),K(Ti,'type',_0x25af0d[_0x1f10c6(0x29c)]),Ti=J([_0x3653bf(_0x3b2992,_0x5abc2b,_0x14526b,_0x4e9553,_0x5a6c40),q(0x1,_0x2e0f98(_0x5007c9)),q(0x2,_0x77a9ff),q(0x3,_0x2411d0)],Ti);function Ei(_0xcd73da){const _0x47994f=_0x1f10c6;return _0xcd73da===!0x1?!0x1:typeof _0xcd73da!=_0x47994f(0x25a)||{..._0xcd73da,'enabled':_0xcd73da[_0x47994f(0x30a)]??!0x0};}let Di=class extends _0x5c3776{constructor(_0x189243=en,_0x3ac1ee,_0x58b58a,_0x42c9f9){const _0x3d0645=_0x1f10c6;super(),this['_config']=_0x189243,this['_injector']=_0x3ac1ee,this[_0x3d0645(0x27d)]=_0x58b58a,this['_renderManagerService']=_0x42c9f9;let {..._0x3131f4}=_0x4a118c({},en,this[_0x3d0645(0x31d)]);this[_0x3d0645(0x27d)][_0x3d0645(0x24f)]($t,_0x3131f4);}[_0x1f10c6(0x1dd)](){const _0x2fb1a2=_0x1f10c6;let _0xefe396=[[br],[Tr]];_0x29e7e1[_0x2fb1a2(0x30c)](this[_0x2fb1a2(0x2c2)],_0xefe396),[..._0xefe396,[xi],[Ln],[zr],[pi],[vi]][_0x2fb1a2(0x35f)](_0xbd7f03=>this[_0x2fb1a2(0x2c2)][_0x2fb1a2(0x2c0)](_0xbd7f03)),this['disposeWithMe'](this['_injector']['get'](_0x29fd82)[_0x2fb1a2(0x25f)](this['_injector'][_0x2fb1a2(0x1a4)](xi))),this[_0x2fb1a2(0x1c8)](this[_0x2fb1a2(0x2c2)]['get'](Ln)),this[_0x2fb1a2(0x1c8)](this[_0x2fb1a2(0x2c2)][_0x2fb1a2(0x1a4)](zr)),this[_0x2fb1a2(0x1c8)](this[_0x2fb1a2(0x2c2)][_0x2fb1a2(0x1a4)](pi)),this[_0x2fb1a2(0x1c8)](this[_0x2fb1a2(0x2c2)][_0x2fb1a2(0x1a4)](vi)),this[_0x2fb1a2(0x24c)]();}['onReady'](){[[Dn],[Vr],[wr,{'useClass':Hr}],[Lr],[ur],[En],[an],[Or]]['forEach'](_0x1fac55=>{const _0x4d9fed=_0x1bd6;this['disposeWithMe'](this[_0x4d9fed(0x311)][_0x4d9fed(0x239)](_0x25af0d['UNIVER_BOARD'],_0x1fac55));});}['_enableMindMapToolbarTool'](){const _0x47a313=_0x1f10c6;var _0x4c37db,_0x2fbdb0;let _0x5663d8=this[_0x47a313(0x3ca)]();this[_0x47a313(0x27d)][_0x47a313(0x24f)](_0x5a2905,{..._0x5663d8,'toolbar':{..._0x5663d8[_0x47a313(0x1e1)],'tools':{...(_0x4c37db=_0x5663d8[_0x47a313(0x1e1)])==null?void 0x0:_0x4c37db[_0x47a313(0x152)],[_0x529842[_0x47a313(0x2e3)]]:Oi((_0x2fbdb0=_0x5663d8['toolbar'])==null||(_0x2fbdb0=_0x2fbdb0[_0x47a313(0x152)])==null?void 0x0:_0x2fbdb0[_0x529842[_0x47a313(0x2e3)]])}}});}[_0x1f10c6(0x3ca)](){const _0x247586=_0x1f10c6;return this[_0x247586(0x27d)]['getConfig'](_0x5a2905)??{};}};K(Di,_0x1f10c6(0x231),Si),K(Di,_0x1f10c6(0x1f5),Zt),K(Di,_0x1f10c6(0x370),Qt),K(Di,'type',_0x25af0d[_0x1f10c6(0x29c)]),Di=J([_0x3653bf(_0x3b2992,_0x5abc2b,_0x14526b,_0x4e9553,_0x29e7e1),q(0x1,_0x2e0f98(_0x5007c9)),q(0x2,_0x77a9ff),q(0x3,_0x2411d0)],Di);function Oi(_0x421f5a){const _0x46bae0=_0x1f10c6;return _0x421f5a===!0x1?!0x1:typeof _0x421f5a!=_0x46bae0(0x25a)||{..._0x421f5a,'enabled':_0x421f5a['enabled']??!0x0};}export{Di as UniverBoardsMindMobileUIPlugin,Ti as UniverBoardsMindUIPlugin};
|