@univerjs-pro/docs-shape-ui 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/types/controllers/components.controller.d.ts +0 -3
- package/lib/types/controllers/mobile/components.controller.d.ts +0 -3
- package/lib/types/controllers/mobile/ui.controller.d.ts +2 -2
- package/lib/types/controllers/ui.controller.d.ts +2 -2
- 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 +26 -26
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x54916c=_0x57eb;(function(_0x48e473,_0x3828a1){const _0x59fa80=_0x57eb,_0xbaaaec=_0x48e473();while(!![]){try{const _0x6ede32=parseInt(_0x59fa80(0x1b1))/0x1*(-parseInt(_0x59fa80(0x25d))/0x2)+parseInt(_0x59fa80(0x342))/0x3+-parseInt(_0x59fa80(0x310))/0x4+parseInt(_0x59fa80(0x215))/0x5*(parseInt(_0x59fa80(0x23d))/0x6)+-parseInt(_0x59fa80(0x308))/0x7+-parseInt(_0x59fa80(0x3d2))/0x8+parseInt(_0x59fa80(0x387))/0x9;if(_0x6ede32===_0x3828a1)break;else _0xbaaaec['push'](_0xbaaaec['shift']());}catch(_0x2fbd94){_0xbaaaec['push'](_0xbaaaec['shift']());}}}(_0x2acc,0xd1bae));import{FormulaShapeAnimationController as _0xc06e59,MobileShapeEditorControls as _0x5b55f5,MobileShapeEditorService as _0x4ab05a,MobileShapePickerPanel as _0x2f427f,SHAPE_CHANGE_PICKER_COMPONENT as _0x5503f1,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x252751,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x1e27ee,ShapeEditPanel as _0x3bec2c,ShapeFloatingToolbar as _0x426a66,ShapeFloatingToolbarService as _0x48226b,ShapeFloatingToolbarToggleFactory as _0x340926,ShapeFormulaRibbonControl as _0x139a7e,ShapeGroupEnum as _0x38fa0f,ShapePickerDropdown as _0x5b9e1e,ShapePickerPanel as _0x52cb63,ShapeQuickStyleGallery as _0x1e248b,ShapeStyleRibbonControl as _0x21c311,ShapeTextEditorContainer as _0x182b87,ShapeTextFloatMenuRenderControllerBase as _0x51aea9,ShapeTextFloatToolbar as _0x238ece,ShapeTextHyperLinkHoverController as _0x77ce55,ShapeTextHyperLinkInfo as _0xb2c799,ShapeTextHyperLinkPopupService as _0x188995,ShapeTextRibbonControl as _0x160997,ToggleShapeFloatingToolbarOperation as _0x287f5d,UniverShapeEditorMobileUIPlugin as _0x1cf61b,UniverShapeEditorUIPlugin as _0x3057d8,activateDrawingObject as _0xb011bc,bindRenderTransformerLifecycle as _0x3a81c4,buildShapeTextDataUpdate as _0x1e2016,clearActiveDrawingObjects as _0x4283f5,createShapeTextHyperLinkRegions as _0x2107bb,drawFormulaShapeAnimationLayers as _0x37906b,getDrawingTypeNameKey as _0x2465a4,getTextModel as _0x2017c9,getTextStyle as _0x2d35d1,normalizeShapeTextModel as _0x4bc9a6,plainShapeTextToDocumentData as _0x14eae4,prepareShapeTextDocumentData as _0x2af33e,prepareShapeTextDocumentData as _0x830d47,registerShapeFormatPainter as _0x2f7ffc,resolveFormulaShapeAutoFitSize as _0x1e0e9e,resolveShapeContextualRibbonHostMode as _0x2c4a7e,resolveShapeTextDocumentPageHeight as _0x25b217,resolveShapeTextDocumentRenderLayout as _0x1fa6e5,resolveShapeTextEditorBehaviorShapeData as _0x57f068,resolveShapeTextEditorWrapStrategy as _0xee6b9c,resolveShapeTextHyperLinkAt as _0x13c06,resolveShapeTextHyperLinkObject as _0x1dae7c,shouldAllowShapeTextEditorHostSizeShrink as _0x33120f,shouldClipShapeTextDocument as _0x3d57d0,useFormulaShapeToolbar as _0x11f231}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x208c19,DOC_CONTENT_INSERT_MENU_ID as _0x4b6267,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x28572c,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x5b597b,DocCanvasPopManagerService as _0x2245ef,DocEventManagerService as _0x36bcd6,DocLayoutInteractionService as _0x23f614,DocParagraphMenuService as _0xcb3360,DocPrintInterceptorService as _0x37b476,DocRenderController as _0x203910,DocSelectionRenderService as _0x161c1f,EMPTY_PARAGRAPH_MENU_ID as _0x1e75e0,INSERT_BELLOW_MENU_ID as _0x5739b8,UniverDocsMobileUIPlugin as _0xc138a0,UniverDocsUIPlugin as _0x146071,VIEWPORT_KEY as _0x3ec99c}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x4f6d28,ComponentManager as _0x25897b,ContextMenuGroup as _0x2cb6c2,ContextMenuPosition as _0x5ebfef,FloatingObjectToolbarPosition as _0x3abe7d,FormatPainterSessionService as _0x2b6126,IMenuManagerService as _0x2ed58f,IRibbonService as _0x302398,ISidebarService as _0x266cb2,IUIPartsService as _0x20d548,IconManager as _0x30c9c2,MenuItemType as _0x4bb24c,MenuManagerPosition as _0x18fbf6,MobileMenu as _0x43b5cf,ObjectPermissionButton as _0x2464f5,RibbonInsertGroup as _0x2b252d,connectInjector as _0x2cd116,getMenuHiddenObservable as _0xdca514,useDependency as _0x3e2052,useObservable as _0x23881d}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x5212a6,DEFAULT_DOC_SHAPE_WIDTH as _0x23dbed,DocShapeAnchorPosition as _0xd030d3,DocsShapeService as _0x2160d8,InsertDocShapeCommand as _0x34d7d3,UniverDocsShapePlugin as _0x35d39a,UpdateDocDrawingMetadataCommand as _0xc38c1c,UpdateDocShapeDataCommand as _0x35b851,UpdateDocShapeDataMutation as _0x1ea311}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0xe32566,ShapeArrowSizeEnum as _0x4ea660,ShapeArrowTypeEnum as _0x53c77a,ShapeDefaultConfig as _0x5938f6,ShapeFillEnum as _0xaab9cb,ShapeLineTypeEnum as _0x2c96a5,ShapeModel as _0x35be19,ShapeRenderModeEnum as _0x56f3ea,ShapeTextAutoFitType as _0x654413,ShapeTypeEnum as _0x4bfb72,isConnectorShape as _0x376792,resolveShapeTextBodyBehavior as _0x22aecc}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x4ddace,UniverShapeEditorPlugin as _0x1fab9b,applyQuickStyleToShapeData as _0x2b8af9,cloneShapeDataForType as _0x18f95e,createShapeFormulaDocument as _0x29415a,createShapeTextBoxShapeData as _0x3ea07c,getShapeQuickStylePreset as _0x499f05,getShapeQuickStyleType as _0x429d73,resolveActiveShapeQuickStylePresetId as _0x2dcbd9}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x5547f7,BooleanNumber as _0x5aa2e0,CommandType as _0x1848a0,DependentOn as _0x3770fa,Disposable as _0x2f986c,DisposableCollection as _0x5144e8,DocumentDataModel as _0xff9fea,DrawingTypeEnum as _0x22154c,FOCUSING_COMMON_DRAWINGS as _0x43629c,FOCUSING_SHAPE_TEXT_EDITOR as _0x154f42,HorizontalAlign as _0x41ec9a,ICommandService as _0x202e33,IConfigService as _0x3f325f,IContextService as _0x137754,IImageIoService as _0xb32c3c,IPermissionService as _0x1efc80,IURLImageService as _0x46c459,IUniverInstanceService as _0x12a7ac,Inject as _0x26d7aa,Injector as _0x4cf8ef,LocaleService as _0x5c011e,Plugin as _0x1cf528,PositionedObjectLayoutType as _0x3b3be3,UniverInstanceType as _0x4171be,VerticalAlign as _0x5e99c6,createInternalEditorID as _0x111514,generateRandomId as _0x56ec3b,getParagraphContentStartOffset as _0x237f25,merge as _0x21bba7,registerDependencies as _0x1f3224,toDisposable as _0x15884f,touchDependencies as _0x373f73}from'@univerjs/core';import{DocInterceptorService as _0x425d50,DocSelectionManagerService as _0x6b545d,RichTextEditingMutation as _0xf6218b,SetDocumentPermissionCommand as _0xb4c725,UniverDocsPlugin as _0xdc1620,canEditDocumentTargets as _0x2dda1f,getDocumentDrawingSegmentId as _0x4111cb,getDocumentEntityParentPermissionObjectIds as _0x5afa9b,getDocumentEntityPermissionObjectId as _0x1d967a,getDocumentPermissionValue as _0x30f7db}from'@univerjs/docs';import{IDocDrawingService as _0x124b5c,RemoveDocDrawingCommand as _0x175640,SetDocDrawingArrangeCommand as _0x5ba230,TextWrappingStyle as _0x2d5ca9,UpdateDocDrawingWrappingStyleCommand as _0x2b7a79,UpdateDrawingDocTransformCommand as _0x448491}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x31ceaf,Circle as _0x30a6ac,DRAWING_OBJECT_LAYER_INDEX as _0x2028f9,DocumentSkeleton as _0x442807,DocumentViewModel as _0x3fffa8,Documents as _0x30dafa,IRenderManagerService as _0x3c7e10,RENDER_CLASS_TYPE as _0x5b3c3e,Shape as _0xd9bd32,Transform as _0x13ba73,UniverRenderEnginePlugin as _0x4bba0d,Vector2 as _0x44d7b4,getLastLine as _0x1b96a5,setDocsCustomBlockRenderViewportProvider as _0x2dbdf0}from'@univerjs/engine-render';import{IDrawingManagerService as _0x26175c,SetDrawingSelectedOperation as _0x59affe,UniverDrawingPlugin as _0x42b107,getDrawingShapeKeyByDrawingSearch as _0x4c8b57}from'@univerjs/drawing';import{DrawingCommonPanel as _0xfa07fb,DrawingImageClipService as _0x2caec2,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x34f870,MobileObjectListPanel as _0x171a97,OBJECT_LIST_FLOATING_SECTION_ID as _0x4b3f5f,ObjectListPanelBase as _0x16aea2,UniverDrawingMobileUIPlugin as _0xffb1d5,UniverDrawingUIPlugin as _0x723ce2,getObjectListPanelSectionIdForDrawingType as _0x3eb1dc,insertGroupObject as _0x4d0bef}from'@univerjs/drawing-ui';function _0x2acc(){const _0x4337f3=['_measure','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','fill','formulaBinding','clearControl$','clearAdjustControls','getValue','panel','with','docs-shape-ui.shape-format.text-ribbon-control','doc.shape.picker.component','MoveUpIcon','canvasElement','animationEnabled','drawingId','angle','_transformCalculateSrcRect','isFinite','DOCS_SHAPE_UI_PLUGIN','drawing-ui.objectListPanel.show','register','_drawRichText','values','multiply','1060fbdUem','setPresentation','_getDependencies','ObjectLayersIcon','getShapeTypeById','editingParams$','doc.shape.object-list.panel','engine','data','function','shape-editor-ui.arrange.backward','doc-shape-adjust-point-','_handleCreateControl','DocsShapeWrapTopBottomIcon','clip','paragraph','docs-shape-ui.shape-format.wrapping-style-label','drawing-ui.objectListPanel.lockAll','hidden','_docsShapeService','fallbackWidth','getCanvasElement','setConfig','fillImageSourceType','clip-','isHit','_configService','getBody','drawing-ui.objectListPanel.sectionFloating','isHorizontal','docs-shape-format-font-family-menu','isRichText','sectionCanvas','_addShapeAdjustControl','some','onPointerUp$','activeTarget','update$','onerror','offsetY','2472HuNuTy','getShapeTextData','getDrawingPoints','SolidFill','startOffset','_subUnitId','ancestorTransform','unsubscribe','onReady','SHAPE_TEXT','_disposePopupsByUnit','LEFT','docs-shape-ui.ribbon.shape-format.style-control','WRAP_NONE','setShapeData','@univerjs-pro/docs-shape-ui','onRendered','univer-box-border\x20univer-px-4\x20univer-text-sm','docs-shape-ui.mobile.delete','_updateSrcRectByTransform','_toVisualAdjustPoint','drawing-ui.objectListPanel.lock','docs-shape-ui.shape-format.quick-style-gallery','shape-editor-ui.arrange.forward','docs-shape-ui.insertShape','updateContext','create','square','moveRange','univer-grid\x20univer-gap-3','_getShapeInfo','adjHandleStroke','128574nUdMjo','string','dispose','style','currentAdjustValues','translate','onStarting','BUTTON','invert','close','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_renderManagerService','fallbackHeight','getDrawingData','footerId','isEditing','top-center','_hyperLinkRegions','next','getScene','getDrawingOKey','TopmostIcon','get','animateFormulaPresentation','formulaPresentation','ShapeFormatSettingIcon','docs-shape-ui.deleteShape','setFillImage','doc.operation.open-shape-object-list-panel','getCurrentTypeOfUnit$','paragraphs','featurePluginUpdateNotification','subtle','changing$','set','cells','_initPrinting','_hide','createControl$','forEach','rect','docs-shape-ui.shape-format.formula-ribbon-control','_shapeId','makeDirty','round','docs-shape-ui.textWrap.square','isMainScene','drawing-ui.objectListPanel.dragToReorder','_activeShapeInfo','fillType','pages','docs-shape-ui.crop.shape','_layoutInteraction','SolidLine','getViewports','setFormulaPresentation','beginInteraction','intercept','INLINE','remove$','doc','_isOpenedShapeEditPanel','doc.image-clip.shape-picker.component','getActiveTextRange','setOnSavingEditorData','_urlImageService','onPointerDown$','doc.shape.text.float-menu','focusDrawing','SpAutoFit','1.3.1','drawing-ui.objectListPanel.hideAll','fillImageSource','flipX','_initEvents','permissionPointUpdate$','_formulaAnimation','docs-shape-ui.hidePanel','currentColor','reduce','attachPopupToObject','_adjustPointObjects','_activeAdjustInfo','pageWidth','attachTransformerTo','adjName','subscribeEvent','getPresentation','_localeService','_drawRichTextLayer','_registerOperations','vertical-center','skeTables','_insertShapes','getUnitId','stopPropagation','docs-shape-ui.ribbon.shape-format.text-control','Path','extraProps','shapeData','srcRect','docs-shape-ui.quickStyles','_initUIPart','bottom','cancelEditing','PRINTING_COMPONENT_COLLECT','shapeModel','prstGeom','adjHandleSize','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','drawing','_adjName','object','localeService','Medium','order','drawing-ui.objectListPanel.unlockHint','getDrawingDataForUnit','getDrawingVisible','_shapeTextEditingService','classType','getFocusedUnit','packageName','registerComponent','0.14','_clipService','_componentManager','applyPoint','updateShapeFillImage','getState','_activeShapeId','IN_FRONT_OF_TEXT','registerRenderModule','_openShapeEditPanel','params','_sidebarService','fontSize','startArrow','_getShapeAdjustInfosById','_shapeFormulaService','1.2','objects','_docCanvasPopManagerService','open','rows','getShapeDataById','shape-editor-ui.arrange.front','syncExecuteCommand','icon','docs-shape-ui.ribbon.shape-format.formula-control','default','marginTop','menu','_toScenePoint','.below','_instanceService','doc.operation.close-doc-shape-format-panel','drawing-ui.objectListPanel.locate','changeEnd$','docs-shape-ui.mobile.style','drawing-ui.objectListPanel.expand','isInGroup','_releaseRenderCache','visible','_canEditShape','getDrawingEditable','LAYOUT','_loadShapePictureFill','unregister','COMMAND','getAllRenderersOfType','7287973gSuIYL','height','behind','shape-editor-ui.toolbar.quickStyles','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','enableObjectsEvent','_shapeRenderController','title','1045788JUWwhX','doc.operation.update-shape-type','endArrow','find','setEditing','DocsShapeWrapInFrontOfTextIcon','resize','pipe','refreshShapeFillImage','text','transformByState','actions','hideContextualTab','max','transform','top','getActualSize','has','headerId','viewBound','getPageDrawingIds','OFFSET','_popupMenuListener','span','visible$','docs-shape-ui.openPanel','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawing-ui.objectListPanel.moveBackward','_drawSimpleText','docs-shape-ui.shape-format.style-ribbon-control','_registerObjectListPanel','drawing-ui.objectListPanel.empty','getSnapshot','drawing-ui.objectListPanel.moveForward','getInterceptPoints','_docDrawingShapeRenderController','TRUE','_isStartAdjusting','keys','updateDocumentStyle','changeStart$','value','None','_popupTargetKeys','doc.shape.edit.panel','symbol','getDrawingByParam','resolveHyperLinkAt','getMatrix','_permissionService','4626279LsBxxA','_registerFloatingToolbar','componentKey','docs-shape-ui.ribbon.shape-format.arrange-backward','below','selectable','getShapeModel','drawingType','scene','flatMap','behindText','calcAdjValues','subUnitId','startIndex','BEHIND_TEXT','_closeShapeEditPanel','getRenderUnitById','_draw','docs-shape-ui.mobile.text','drawing-ui.objectListPanel.lockHint','_getShapePopup','_updateShapeAdjustControls','front','getShapeType','getSkeletonData','popup','oKey','GROUP','onCommandExecuted','fontFamily','getParent','drawing-ui.objectListPanel.details','clipHeight','_props','shapeType','translateWithPrecision','drawing-ui.objectListPanel.name','VIEW_MAIN','vertical','_unitId','backward','div','pick','contentHeight','path','onTransformChange$','wrapStrategy','decorate','offsetX','skeHeaders','_shapeEditPanelVersion','_iconManager','_lastEditingShapeKey','getSelectedObjectMap','drawing-ui.objectListPanel.hide','_canEdit','setContextValue','docs-shape-ui.textWrap.inline','_mobileEditorService','error','M2\x203h16M2\x2017h16','getAdjustValueByName','unitId','addImageSourceCache','_ribbonService','MoveDownIcon','drawing-ui.objectListPanel.noSelection','_endLayoutInteraction','_drawingType','14498055pOpfam','transformForAngle','gradientEndColor','_update','_docLayoutInteractionService','disableShapeOption','svg','_init','docs-shape-text-','clipTop','_clearPopups','endOffset','_registerPickers','_loadAndSetImage','contentVerticalOffset','_attachAdjustEvent','Copy','left','DocsShapeWrapBehindTextIcon','_adjHandlerPointerMove','includes','horizontal','restore','docs-shape-ui.textWrap.behindText','dataModel','getUnit','onPointerMove$','shape-editor-ui.toolbar.changeShape','disposeWithMe','_baseShapeLeft','shapeId','subscribe','_updateShape','shapeText','UNIVER_SHEET','_getRenderModules','_sidebarDisposable','adjHandleFill','_formulaShapes','transformVector2SceneCoord','_applyFormulaAutoFitSize','getCurrentUnitOfType','add','setAdjustValueByName','_commandService','focus$','src','BottomIcon','clone','_registerIcons','_isShouldShowDrawingShapeAdjust','isRender','isHitLine','getDrawingOrder','getImage','getSelfOrHeaderFooterModel','clipByShape','name','splice','save','doc.operation.open-doc-shape-format-panel','CONTENT','inline','_imageIoService','indexOf','Image','isLineShape','_initSelection','docs-shape-ui.ribbon.shape-format.arrange-forward','actualHeight','_clearShapeAdjustControls','Line','getRealBound','_setTransForm','getDrawingSearch','8115240PqBsWM','none','docs-shape-ui.objectListPanel.open','5.5','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','SELECTOR','drawWith','layoutType','flipY','URL','entries','_activeShapeModel','executeCommand','WRAP_SQUARE','_baseShapeHeight','drawing-ui.objectListPanel.filterLocked','sin','drawing-ui.objectListPanel.sectionCanvas','segmentId','_baseShapeWidth','DocsShapeTextEditorContainer','getDrawingEffectBounds','disableObjectsEvent','trim','size','PaintIcon','doc.command.menu-insert-shape','-layout','getEditing','push','getContextValue','_initEditingParams','paragraphId','getInverseCoord','drawing-ui.objectListPanel.search','getImageSourceCache','render','getObjectIncludeInGroup','drawing-ui.objectListPanel.unlock','label','renderDrawingShape','registerClipDelegate','interceptor','toPrimitive','_univerInstanceService','DOC','menuRange','footerLayoutKey','setSrcRect','DocsShapeWrapSquareIcon','_getSceneByUnitId','resetCursor','docs-shape-contextual-ribbon','isolated','canvas','asObservable','onSavingEditorData$','_drawingManagerService','length','_completionFrame','registerCommand','_contextService','hasDefault','updateDocumentDataMargin','behindDoc','getShapeData','getShapeTextRect','spaceBelowApply','OPERATION','presentation','setPrstGeom','beginPath','map','image','sectionFloating','setFallbackVisible','_shapeFloatingToolbarService','_editingParams$','_config','_updateAdjustControlPositions','_initMenu','shapeKey','canDispose','_menuManagerService','skeDrawings','0.8','width','current','reverse','1LRTMKu','getFocusDrawings','drawing-ui.objectListPanel.title','CROSSHAIR','forward','doc.shape.floating-toolbar','_baseShapeTop','_getShapeAdjustPointListById','docs-shape-ui.textWrap.topAndBottom','_injector','_registerDrawingFocusChangeHandler','UNIVER_DOC','_formulaKey','_transform','docs-shape-ui.objectListPanel.title','drawing-ui.objectListPanel.close','doc.operation.apply-shape-quick-style','refreshAdjustControls','docs-shape-ui.ribbon.shape-format','#2563EB','calculate','setShapeProps','DRAWING_SHAPE','_adjHandlerPointerUp','DocumentEntity','cos','version','_getActiveDrawingShape','_registerImageShapeClipDelegate','_context','drawings','sheet.image-clip.shape-picker.component','type','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','presetId','_activeShapeAdjustPointList','strokeWidth','PictureFill','_initCommands','completeEditing','drawing-ui.objectListPanel.filterHidden','getShapePopupMenus','mergeMenu','filter','_visible','_clearCompletionFrame','_createShapeAdjustControls','Arrow','DRAWING_DOM','WRAP_TOP_AND_BOTTOM','addObject','defineProperty','docs-shape-ui.formatShape','isRenderLinePointsMode','buildClipPath','complete','_getFocusedShapeAtPoint','custom','warn','description','_onSavingEditorData$','getUnitType','getAdjustInfoByName','_refreshShapeData','drawing-ui.objectListPanel.showAll','_getDisposePopups','_registerComponents','onDblclick$','docs-shape-ui.ribbon.shape-format.arrange-front','refreshTransform$','constructor','_docPrintInterceptorService','TOP','delete','_registerDrawingTransformHandler','onload'];_0x2acc=function(){return _0x4337f3;};return _0x2acc();}import{Fragment as _0x2f373d,jsx as _0x43c133,jsxs as _0x1e2b7a}from'react/jsx-runtime';import{BehaviorSubject as _0x25998c,Observable as _0x2b8d1f,distinctUntilChanged as _0x63a2ad,map as _0x39640e,merge as _0x402001,of as _0x598810,startWith as _0x1f671b}from'rxjs';import{UniverLicensePlugin as _0x1ffca3}from'@univerjs-pro/license';import{DocDrawingPosition as _0x5bc29f,DocDrawingTextWrap as _0x218279,MobileDocDrawingPosition as _0x13ebf1,MobileDocDrawingTextWrap as _0x49b44d,UniverDocsDrawingMobileUIPlugin as _0x32fb19,UniverDocsDrawingUIPlugin as _0x28a0c7}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x1d96bc,MoreDownIcon as _0x227373,MoreUpIcon as _0x228c8a,MoveDownIcon as _0x26fb7f,MoveUpIcon as _0x26fa53,ObjectLayersIcon as _0x4d7a1f,ShapeFormatSettingIcon as _0x54f8f5,TextWrapShapeIcon as _0x5c4dcb,TopmostIcon as _0x432907}from'@univerjs/icons';import{MobileActionRow as _0x6c63ed}from'@univerjs/design';import{memo as _0x1967b0,useEffect as _0x162762,useMemo as _0xad29a1,useReducer as _0x58a9a5,useState as _0x59b14e}from'react';import{UnitAction as _0x45d729,UnitObject as _0x24aa21}from'@univerjs/protocol';function wr(_0x219b7d,_0xa7218e){const _0x898b49=_0x57eb;if(_0xa7218e){if(_0x376792(_0x219b7d)&&(_0xa7218e[_0x898b49(0x2e6)]||_0xa7218e[_0x898b49(0x312)]))return{'ln':{'startArrow':_0xa7218e['startArrow']?{'type':_0x53c77a[_0x898b49(0x1e0)],'size':_0x4ea660[_0x898b49(0x2cf)]}:void 0x0,'endArrow':_0xa7218e[_0x898b49(0x312)]?{'type':_0x53c77a['Arrow'],'size':_0x4ea660['Large']}:void 0x0}};if(_0x219b7d===_0x4bfb72['Rect']&&(_0xa7218e['horizontal']||_0xa7218e[_0x898b49(0x368)]))return _0x3ea07c({'fill':{'fillType':_0xaab9cb[_0x898b49(0x240)],'color':'#3B82F6'},'isHorizontal':!!_0xa7218e[_0x898b49(0x39c)],'stroke':{'lineStrokeType':_0x2c96a5[_0x898b49(0x292)],'width':0x1,'color':_0x898b49(0x1c4)}});}}function Tr(_0x3bb0c0,_0x4dae14){const _0x3a5959=_0x57eb;var _0xcb1c76;let _0x39cce0=_0x4dae14[_0x3a5959(0x16a)]??'',_0x13d863=(_0xcb1c76=_0x3bb0c0[_0x3a5959(0x3be)](_0x39cce0))==null?void 0x0:_0xcb1c76[_0x3a5959(0x230)]();if(!_0x13d863)return null;let _0x1a93b1=_0x13d863[_0x3a5959(0x27b)]??[],_0x365267=_0x1a93b1[_0x3a5959(0x313)](_0x358341=>{const _0x3e7ea3=_0x3a5959;let _0x2a2f7a=_0x237f25(_0x13d863,_0x358341);return _0x4dae14['startOffset']>=_0x2a2f7a&&_0x4dae14[_0x3e7ea3(0x241)]<=_0x358341[_0x3e7ea3(0x34f)];})??_0x1a93b1[_0x1a93b1[_0x3a5959(0x192)]-0x1];return _0x365267?{'paragraphId':_0x365267[_0x3a5959(0x178)],'segmentId':_0x39cce0,'position':_0xd030d3[_0x3a5959(0x325)],'offset':_0x4dae14['startOffset']-_0x237f25(_0x13d863,_0x365267)}:null;}function Er(_0x16a529,_0x593c52,_0xed2026){const _0x399757=_0x57eb;var _0x344335,_0x38767c;if(!_0xed2026)return null;let _0x51235b=(_0x344335=_0x16a529[_0x399757(0x273)](_0x3c7e10)[_0x399757(0x352)](_0x593c52))==null?void 0x0:_0x344335[_0x399757(0x205)](_0xcb3360)[_0x399757(0x239)];if(!_0x51235b)return null;let _0x4dfff4=_0xed2026===_0x399757(0x346)?{'startOffset':_0x51235b['moveRange']['endOffset'],'endOffset':_0x51235b[_0x399757(0x259)][_0x399757(0x392)]}:_0x51235b[_0x399757(0x186)];return{'startOffset':_0x4dfff4[_0x399757(0x241)],'endOffset':_0x4dfff4[_0x399757(0x392)],'collapsed':_0x4dfff4['startOffset']===_0x4dfff4[_0x399757(0x392)],'segmentId':((_0x38767c=_0x51235b[_0x399757(0x224)])==null?void 0x0:_0x38767c[_0x399757(0x16a)])??''};}const U={'type':_0x1848a0[_0x54916c(0x306)],'id':_0x54916c(0x172),'handler':async(_0x164f83,_0x5ab6cc)=>{const _0x48a638=_0x54916c;let _0x4a75d1=_0x164f83[_0x48a638(0x273)](_0x12a7ac)[_0x48a638(0x3b0)](_0x4171be['UNIVER_DOC']);if(!_0x4a75d1)return!0x1;let _0x30e0db=_0x164f83[_0x48a638(0x273)](_0x202e33),_0x5ae055=_0x4a75d1[_0x48a638(0x2bb)](),_0x468e58=_0x5ab6cc[_0x48a638(0x3a5)]??_0x56ec3b(),_0x2ba82a=_0x5ab6cc[_0x48a638(0x1ae)]??_0x23dbed,_0x2d7e85=_0x5ab6cc[_0x48a638(0x309)]??_0x5212a6,_0xaee42=_0x5ab6cc[_0x48a638(0x2c0)]??wr(_0x5ab6cc[_0x48a638(0x339)],_0x5ab6cc['enhanceParams']),_0x25bae7=Er(_0x164f83,_0x5ae055,_0x5ab6cc['paragraphMenuPlacement'])??_0x164f83[_0x48a638(0x273)](_0x6b545d)[_0x48a638(0x29c)]();if(!_0x25bae7)return!0x1;let _0x31fec6=Tr(_0x4a75d1,_0x25bae7);return _0x31fec6?!!_0x30e0db[_0x48a638(0x2f0)](_0x34d7d3['id'],{'unitId':_0x5ae055,'shapeId':_0x468e58,'shapeType':_0x5ab6cc[_0x48a638(0x339)],'shapeData':_0xaee42,'transform':{'width':_0x2ba82a,'height':_0x2d7e85},'placement':{'wrappingStyle':_0x2d5ca9['INLINE'],'anchor':_0x31fec6}}):!0x1;}},W=_0x54916c(0x33c),Dr=_0x54916c(0x1c3),Or=_0x54916c(0x21b),kr=_0x111514(_0x54916c(0x246)),Ar=_0x54916c(0x2a0),jr=_0x54916c(0x16c),Mr={'id':_0x54916c(0x279),'type':_0x1848a0[_0x54916c(0x306)],'handler':(_0x472b9d,_0x3be3b3)=>{const _0x54211d=_0x54916c;let _0x53e52a=_0x472b9d['get'](_0x266cb2),_0xf1cae8=_0x472b9d[_0x54211d(0x273)](_0x5c011e),_0x30c9ca=_0x472b9d['get'](_0x26175c);return(_0x3be3b3==null?void 0x0:_0x3be3b3[_0x54211d(0x339)])===_0x54211d(0x266)?(_0x53e52a[_0x54211d(0x266)](Or),!0x0):(_0x53e52a[_0x54211d(0x2ec)]({'id':Or,'header':{'title':_0xf1cae8['t'](_0x54211d(0x1bf))},'children':{'label':Or},'onClose':()=>{_0x30c9ca['focusDrawing'](null);},'width':0x168}),!0x0);}},G={'type':_0x1848a0['OPERATION'],'id':_0x54916c(0x3c3),'handler'(){return!0x0;}};function Nr(_0x444b8c){const _0x3db741=_0x54916c;let _0xcda508=_0x444b8c[_0x3db741(0x273)](_0x26175c)[_0x3db741(0x1b2)](),_0xdcc801=_0xcda508[_0x3db741(0x192)]===0x1?_0xcda508[0x0]:null;if(!_0xdcc801||_0xdcc801[_0x3db741(0x349)]!==_0x22154c[_0x3db741(0x1c7)])return null;let _0x49a0bf=_0x444b8c[_0x3db741(0x273)](_0x2160d8),_0x35bea1=_0x49a0bf[_0x3db741(0x219)](_0xdcc801[_0x3db741(0x380)],_0xdcc801['subUnitId'],_0xdcc801[_0x3db741(0x20b)]),_0x43a612=_0x49a0bf[_0x3db741(0x2ee)](_0xdcc801[_0x3db741(0x380)],_0xdcc801[_0x3db741(0x34e)],_0xdcc801[_0x3db741(0x20b)]);return _0x35bea1===void 0x0||!_0x43a612?null:{'drawing':_0xdcc801,'shapeData':_0x43a612,'shapeType':_0x35bea1};}const Pr={'id':_0x54916c(0x1c1),'type':_0x1848a0[_0x54916c(0x19c)],'handler':(_0x55f51a,_0x1e3538)=>{const _0x1be0e2=_0x54916c;let _0x30e683=Nr(_0x55f51a),_0x45188d=_0x499f05((_0x1e3538==null?void 0x0:_0x1e3538[_0x1be0e2(0x1d3)])??(_0x1e3538==null?void 0x0:_0x1e3538[_0x1be0e2(0x339)])??'');if(!_0x30e683||!_0x45188d||_0x45188d[_0x1be0e2(0x1d1)]!==_0x429d73(_0x30e683[_0x1be0e2(0x2c0)]))return!0x1;let _0x52eb8f=_0x2b8af9(_0x30e683[_0x1be0e2(0x2c0)],_0x45188d);if(!_0x52eb8f)return!0x1;let {drawing:_0x3818dd}=_0x30e683;return _0x55f51a['get'](_0x202e33)[_0x1be0e2(0x164)](_0x35b851['id'],{'unitId':_0x3818dd[_0x1be0e2(0x380)],'shapeId':_0x3818dd[_0x1be0e2(0x20b)],'shapeData':_0x52eb8f,'oldShapeJSON':{'oldShapeData':_0x30e683[_0x1be0e2(0x2c0)]}});}},Fr={'id':_0x54916c(0x311),'type':_0x1848a0['OPERATION'],'handler':(_0x1bc330,_0x35a975)=>{const _0xafbfcb=_0x54916c;let _0x4eb534=Nr(_0x1bc330),_0xb96616=(_0x35a975==null?void 0x0:_0x35a975[_0xafbfcb(0x364)])??(_0x35a975==null?void 0x0:_0x35a975[_0xafbfcb(0x339)]);if(!_0x4eb534||!_0xb96616||_0x376792(_0x4eb534[_0xafbfcb(0x364)])||_0x376792(_0xb96616))return!0x1;let _0x16d737=_0x18f95e(_0x4eb534[_0xafbfcb(0x2c0)],_0xb96616);if(!_0x16d737)return!0x1;let {drawing:_0x5a021c}=_0x4eb534;return _0x1bc330[_0xafbfcb(0x273)](_0x202e33)['executeCommand'](_0x35b851['id'],{'unitId':_0x5a021c[_0xafbfcb(0x380)],'shapeId':_0x5a021c[_0xafbfcb(0x20b)],'shapeType':_0xb96616,'shapeData':_0x16d737,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x4eb534[_0xafbfcb(0x364)],'oldShapeData':_0x4eb534[_0xafbfcb(0x2c0)]}});}};function K(_0x685cac,_0x9e2399){return function(_0x537d8b,_0x24873b){_0x9e2399(_0x537d8b,_0x24873b,_0x685cac);};}function q(_0x2be735,_0x1e8ec4,_0x54ac12,_0x22f801){const _0xb28afa=_0x54916c;var _0x4e3ebe=arguments[_0xb28afa(0x192)],_0x519588=_0x4e3ebe<0x3?_0x1e8ec4:_0x22f801===null?_0x22f801=Object['getOwnPropertyDescriptor'](_0x1e8ec4,_0x54ac12):_0x22f801,_0x4348ee;if(typeof Reflect==_0xb28afa(0x2cd)&&typeof Reflect[_0xb28afa(0x371)]=='function')_0x519588=Reflect['decorate'](_0x2be735,_0x1e8ec4,_0x54ac12,_0x22f801);else{for(var _0xe48faa=_0x2be735[_0xb28afa(0x192)]-0x1;_0xe48faa>=0x0;_0xe48faa--)(_0x4348ee=_0x2be735[_0xe48faa])&&(_0x519588=(_0x4e3ebe<0x3?_0x4348ee(_0x519588):_0x4e3ebe>0x3?_0x4348ee(_0x1e8ec4,_0x54ac12,_0x519588):_0x4348ee(_0x1e8ec4,_0x54ac12))||_0x519588);}return _0x4e3ebe>0x3&&_0x519588&&Object[_0xb28afa(0x1e4)](_0x1e8ec4,_0x54ac12,_0x519588),_0x519588;}let Ir=class extends _0x2f986c{constructor(_0x104ab1,_0x1d2f8f){const _0x3868a8=_0x54916c;super(),this[_0x3868a8(0x2da)]=_0x104ab1,this[_0x3868a8(0x191)]=_0x1d2f8f,this[_0x3868a8(0x1cd)](),this['_clipService']['setCanUseShapeClip'](!0x0),this[_0x3868a8(0x3a3)]({'dispose':()=>this[_0x3868a8(0x2da)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x56fda5=_0x54916c;let _0x47769c=new Map(),_0x4dc383=this['_clipService'][_0x56fda5(0x181)]((_0x445078,_0x31080e,_0x20905d,_0x37533b,_0x6ddb22)=>{const _0x3017b6=_0x56fda5;let _0x318aa0=_0x31080e;if(_0x318aa0===_0x4bfb72[_0x3017b6(0x33a)]||_0x31080e===_0x3017b6(0x1ea))return!0x1;try{let _0x352d6f=_0x47769c['get'](_0x31080e);return _0x352d6f||(_0x352d6f=new _0x35be19(_0x318aa0,_0x3017b6(0x22d)+_0x31080e),_0x47769c['set'](_0x31080e,_0x352d6f)),_0x352d6f['clearAdjustValue'](),_0x6ddb22&&Object[_0x3017b6(0x336)](_0x6ddb22)[_0x3017b6(0x192)]>0x0&&_0x352d6f[_0x3017b6(0x24b)]({'adjustValues':_0x6ddb22},!0x0),_0x352d6f['updateContext']({'width':_0x20905d,'height':_0x37533b}),_0x352d6f[_0x3017b6(0x1e7)](_0x445078,{'left':0x0,'top':0x0,'width':_0x20905d,'height':_0x37533b});}catch{return!0x1;}});this[_0x56fda5(0x3a3)](_0x4dc383),this['disposeWithMe']({'dispose':()=>_0x47769c['clear']()});}[_0x54916c(0x3bf)](_0x2054e2,_0x1cc9ea,_0x29b2eb,_0x42e731,_0x36cfe7){const _0x213b2a=_0x54916c;let _0x242800=this[_0x213b2a(0x191)][_0x213b2a(0x26a)](_0x2054e2,_0x1cc9ea)[_0x29b2eb];_0x242800&&_0x242800['drawingType']===_0x22154c['DRAWING_IMAGE']&&this[_0x213b2a(0x191)][_0x213b2a(0x27c)]([{..._0x242800,'prstGeom':_0x42e731,'adjustValues':_0x36cfe7}]);}};Ir=q([K(0x0,_0x26d7aa(_0x2caec2)),K(0x1,_0x26d7aa(_0x26175c))],Ir);const Lr=_0x54916c(0x207),Rr=_0x54916c(0x29b);function zr({onShapeClick:_0x3c92b6,excludeGroups:_0xb5f897}){return _0x43c133(_0x52cb63,{'excludeGroups':_0xb5f897,'onShapeClick':_0x3c92b6,'scrollContainer':'parent'});}function Br(){let _0x523d4b=_0x3e2052(_0x26175c),_0x1c55e9=_0x3e2052(Ir);return _0x10d64a=>{const _0x3d908d=_0x57eb;let _0x3c2345=_0x523d4b['getFocusDrawings']()['find'](_0x34bd49=>_0x34bd49['drawingType']===_0x22154c['DRAWING_IMAGE']);_0x3c2345&&_0x1c55e9[_0x3d908d(0x3bf)](_0x3c2345[_0x3d908d(0x380)],_0x3c2345[_0x3d908d(0x34e)],_0x3c2345[_0x3d908d(0x20b)],_0x10d64a[_0x3d908d(0x1d1)]);};}function Vr(){const _0x4e545e=_0x54916c;let _0x2951a6=Br();return _0x43c133(_0x5b9e1e,{'buttonLabel':_0x4e545e(0x290),'excludeGroups':[_0x38fa0f[_0x4e545e(0x3ce)]],'onShapeClick':_0x2951a6});}function Hr(){const _0x1db82f=_0x54916c;let _0x1afd71=_0x3e2052(_0x25897b),_0x381231=_0x3e2052(_0x26175c),_0x36154c=_0x3e2052(_0x12a7ac),_0x216435=_0x381231[_0x1db82f(0x1b2)]()[0x0],_0x13c555=_0x216435?_0x36154c[_0x1db82f(0x1ee)](_0x216435[_0x1db82f(0x380)]):void 0x0,_0x4b2362=_0x13c555===_0x4171be[_0x1db82f(0x1bc)]?Rr:_0x13c555===_0x4171be[_0x1db82f(0x3a9)]?_0x1db82f(0x1d0):void 0x0,_0x396809=_0x4b2362?_0x1afd71[_0x1db82f(0x273)](_0x4b2362):void 0x0;return _0x396809?_0x43c133(_0x396809,{}):null;}function Ur({paragraphMenuPlacement:_0x41d1d0,PickerComponent:_0x3fde00=zr}){let _0x522ce2=_0x3e2052(_0x202e33);return _0x43c133(_0x3fde00,{'onShapeClick':_0x183f9e=>{const _0x256119=_0x57eb;_0x522ce2[_0x256119(0x164)](U['id'],{'paragraphMenuPlacement':_0x41d1d0,'value':_0x183f9e[_0x256119(0x1d1)],'enhanceParams':{'endArrow':_0x183f9e[_0x256119(0x312)],'startArrow':_0x183f9e[_0x256119(0x2e6)],'horizontal':_0x183f9e[_0x256119(0x39c)],'vertical':_0x183f9e[_0x256119(0x368)]}});}});}function Wr(_0x326424){const _0x28ccad=_0x54916c;return _0x142a13=>({'id':U['id'],'type':_0x4bb24c[_0x28ccad(0x3d7)],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x326424?{'id':U['id'],'paragraphMenuPlacement':_0x326424}:{'id':U['id']}}}],'icon':'ShapeIcon','title':_0x28ccad(0x255),'tooltip':_0x28ccad(0x255),'hidden$':_0xdca514(_0x142a13,_0x4171be[_0x28ccad(0x1bc)])});}const Gr=Wr(),Kr=Wr(_0x54916c(0x346)),qr=Wr('target');function Jr(_0x5d4633){const _0x5e7a70=_0x54916c;return{'id':Mr['id'],'type':_0x4bb24c['BUTTON'],'icon':_0x5e7a70(0x218),'title':_0x5e7a70(0x3d4),'tooltip':_0x5e7a70(0x3d4),'hidden$':_0xdca514(_0x5d4633,_0x4171be[_0x5e7a70(0x1bc)])};}function Yr(_0x1466f,_0xac2769,_0x40fb7e,_0x566b0e,_0x16f01a,_0xc3ca3a){let _0x3c7818={'unitId':_0xac2769,'shapeId':_0x566b0e,'shapeData':_0xc3ca3a,'oldShapeJSON':_0x16f01a};return _0x1466f['executeCommand'](_0x35b851['id'],_0x3c7818);}function Xr(_0xfb9230,_0x3b6076,_0x27fb6c,_0x76d7af,_0x44eda0,_0x7d1ea6){const _0x1bef0a=_0x54916c;let _0x36e801={'unitId':_0x3b6076,'shapeId':_0x76d7af,'shapeData':_0x7d1ea6,'oldShapeJSON':_0x44eda0};return _0xfb9230[_0x1bef0a(0x164)](_0x35b851['id'],_0x36e801);}const Zr=_0x54916c(0x253),Qr=_0x54916c(0x32d),$r=_0x54916c(0x206),ei=_0x54916c(0x286),ti=_0x54916c(0x225),ni=[{'value':_0x2d5ca9[_0x54916c(0x297)],'label':_0x54916c(0x37b),'icon':'DocsShapeWrapInlineIcon'},{'value':_0x2d5ca9[_0x54916c(0x165)],'label':_0x54916c(0x28a),'icon':_0x54916c(0x189)},{'value':_0x2d5ca9[_0x54916c(0x1e2)],'label':_0x54916c(0x1b9),'icon':_0x54916c(0x222)},{'value':_0x2d5ca9[_0x54916c(0x350)],'label':'docs-shape-ui.textWrap.behindText','icon':_0x54916c(0x399)},{'value':_0x2d5ca9[_0x54916c(0x2e0)],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0x54916c(0x315)}];function ri(){let _0x1ed122=_0x3e2052(_0x202e33),_0x81674b=_0x3e2052(_0x26175c),_0x3f3f8c=_0x3e2052(_0x2160d8),_0x4c410f=()=>{const _0x2a7f23=_0x57eb;var _0x469c00;let _0x36cb03=_0x81674b[_0x2a7f23(0x1b2)]();if(_0x36cb03['length']!==0x1||((_0x469c00=_0x36cb03[0x0])==null?void 0x0:_0x469c00['drawingType'])!==_0x22154c[_0x2a7f23(0x1c7)])return null;let {unitId:_0x154c52,subUnitId:_0x14a11d,drawingId:_0x299982}=_0x36cb03[0x0],_0x25308c=_0x3f3f8c[_0x2a7f23(0x219)](_0x154c52,_0x14a11d,_0x299982),_0x3b4523=_0x3f3f8c[_0x2a7f23(0x2ee)](_0x154c52,_0x14a11d,_0x299982);return _0x25308c===void 0x0||!_0x3b4523?null:{'unitId':_0x154c52,'subUnitId':_0x14a11d,'drawingId':_0x299982,'shapeType':_0x25308c,'shapeData':_0x3b4523};},_0x163604=_0x23881d(()=>new _0x2b8d1f(_0x362fe2=>{const _0x1f8692=_0x57eb;let _0x475bb2=()=>_0x362fe2[_0x1f8692(0x26f)](_0x4c410f()),_0x458721=_0x81674b[_0x1f8692(0x3b4)][_0x1f8692(0x3a6)](_0x475bb2),_0x30027c=_0x1ed122[_0x1f8692(0x35e)](_0x18215e=>{_0x18215e['id']===_0x1ea311['id']&&_0x475bb2();});return _0x475bb2(),()=>{const _0x5b3f17=_0x1f8692;_0x458721[_0x5b3f17(0x244)](),_0x30027c[_0x5b3f17(0x25f)]();};}),_0x4c410f(),!0x1,[_0x1ed122,_0x3f3f8c,_0x81674b]);return{'selection':_0x163604,'updateShapeData':_0x66c29=>{const _0x4d1969=_0x57eb;_0x163604&&Yr(_0x1ed122,_0x163604[_0x4d1969(0x380)],_0x163604[_0x4d1969(0x34e)],_0x163604[_0x4d1969(0x20b)],{'oldShapeData':_0x163604[_0x4d1969(0x2c0)]},_0x66c29);}};}function ii(){const _0x19db58=_0x54916c;let {selection:_0x327685,updateShapeData:_0x4cb2af}=ri();return _0x327685?_0x43c133(_0x21c311,{'shapeData':_0x327685['shapeData'],'shapeType':_0x327685[_0x19db58(0x364)],'onUpdateShapeData':_0x4cb2af}):null;}function ai(){const _0x2cf6f7=_0x54916c;let _0x4be632=_0x3e2052(_0x202e33),_0xec49e5=_0x3e2052(_0x5c011e),{selection:_0x5d88ed}=ri();return _0x5d88ed?_0x43c133(_0x1e248b,{'type':_0x429d73(_0x5d88ed[_0x2cf6f7(0x2c0)]),'ariaLabel':_0xec49e5['t'](_0x2cf6f7(0x2c2)),'activePresetId':_0x2dcbd9(_0x5d88ed[_0x2cf6f7(0x2c0)]),'onSelect':_0x7ab527=>_0x4be632[_0x2cf6f7(0x164)](Pr['id'],{'presetId':_0x7ab527})}):null;}function oi(){const _0x4a6ea4=_0x54916c;let {selection:_0x176eb5,updateShapeData:_0x1cf89b}=ri();return _0x176eb5?_0x43c133(_0x160997,{'fontFamilyPopupDataComponent':_0x4a6ea4(0x233),'shapeData':_0x176eb5[_0x4a6ea4(0x2c0)],'onUpdateShapeData':_0x1cf89b}):null;}function si(){const _0x49e159=_0x54916c;var _0x3c4ef3;let {selection:_0x1d9f08,updateShapeData:_0x592d27}=ri(),_0x440aa6=_0x11f231({'hostType':_0x4171be[_0x49e159(0x1bc)],'unitId':(_0x1d9f08==null?void 0x0:_0x1d9f08['unitId'])??'','subUnitId':(_0x1d9f08==null?void 0x0:_0x1d9f08[_0x49e159(0x34e)])??'','shapeId':(_0x1d9f08==null?void 0x0:_0x1d9f08[_0x49e159(0x20b)])??'','shapeData':_0x1d9f08==null?void 0x0:_0x1d9f08[_0x49e159(0x2c0)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x49e159(0x2c4),'onUpdateBinding':_0x3ab74e=>_0x592d27({'formulaBinding':_0x3ab74e})}),_0x5ea119=((_0x3c4ef3=_0x440aa6['extensionGroups'])==null?void 0x0:_0x3c4ef3[_0x49e159(0x34b)](_0x595cfa=>_0x595cfa[_0x49e159(0x31b)])[_0x49e159(0x1dc)](_0x35f14b=>_0x35f14b[_0x49e159(0x300)]!==!0x1))??[];return _0x1d9f08!=null&&_0x1d9f08[_0x49e159(0x2c0)]['formulaBinding']?_0x43c133(_0x139a7e,{'actions':_0x5ea119,'panel':_0x440aa6[_0x49e159(0x204)]}):null;}function ci({value:_0x24e9d3}){const _0x500386=_0x54916c;let _0x531fb9=_0x3e2052(_0x5c011e),_0x4a993c=ni[_0x500386(0x313)](_0x1c165b=>_0x1c165b[_0x500386(0x339)]===_0x24e9d3)??ni[0x0];return _0x4a993c?_0x43c133(_0x500386(0x327),{'children':_0x531fb9['t'](_0x4a993c[_0x500386(0x17f)])}):null;}const li=_0x54916c(0x249),ui=_0x54916c(0x2bd),di=_0x54916c(0x2f2),fi=_0x54916c(0x3cb),pi=_0x54916c(0x345),mi=_0x54916c(0x1f5),hi='docs-shape-ui.ribbon.shape-format.arrange-back',gi='docs-shape-ui.ribbon.shape-format.wrapping-style';function _i(_0x316926){const _0x532408=_0x54916c;let _0x2dd526=_0x316926['get'](_0x202e33),_0x583206=_0x316926[_0x532408(0x273)](_0x26175c),_0x25e292=_0x316926['get'](_0x2160d8);return new _0x2b8d1f(_0x8419e9=>{const _0x2104f2=_0x532408;let _0x4ddf54=()=>{const _0x42aeb7=_0x57eb;let _0x33e7a1=vi(_0x316926),_0x418fa7=_0x33e7a1?_0x25e292[_0x42aeb7(0x2ee)](_0x33e7a1[_0x42aeb7(0x380)],_0x33e7a1[_0x42aeb7(0x34e)],_0x33e7a1[_0x42aeb7(0x20b)]):null;_0x8419e9['next'](_0x418fa7?_0x2dcbd9(_0x418fa7)??'':'');},_0x32d451=_0x583206['focus$'][_0x2104f2(0x3a6)](_0x4ddf54),_0x1de1b7=_0x2dd526[_0x2104f2(0x35e)](_0x4893f3=>{_0x4893f3['id']===_0x1ea311['id']&&_0x4ddf54();});return _0x4ddf54(),()=>{const _0x5952fb=_0x2104f2;_0x32d451[_0x5952fb(0x244)](),_0x1de1b7[_0x5952fb(0x25f)]();};});}function vi(_0xbb9268){const _0xf221ff=_0x54916c;var _0x53f665;let _0x2bc605=_0xbb9268['get'](_0x26175c)[_0xf221ff(0x1b2)]();return _0x2bc605[_0xf221ff(0x192)]===0x1&&((_0x53f665=_0x2bc605[0x0])==null?void 0x0:_0x53f665['drawingType'])===_0x22154c[_0xf221ff(0x1c7)]?_0x2bc605[0x0]:null;}function yi(_0x33de99){const _0x10e1ec=_0x54916c;return(_0x33de99==null?void 0x0:_0x33de99[_0x10e1ec(0x15f)])===_0x3b3be3[_0x10e1ec(0x24a)]?_0x33de99['behindDoc']===_0x5aa2e0[_0x10e1ec(0x334)]?_0x2d5ca9[_0x10e1ec(0x350)]:_0x2d5ca9[_0x10e1ec(0x2e0)]:(_0x33de99==null?void 0x0:_0x33de99[_0x10e1ec(0x15f)])===_0x3b3be3['WRAP_SQUARE']?_0x2d5ca9[_0x10e1ec(0x165)]:(_0x33de99==null?void 0x0:_0x33de99[_0x10e1ec(0x15f)])===_0x3b3be3[_0x10e1ec(0x1e2)]?_0x2d5ca9[_0x10e1ec(0x1e2)]:_0x2d5ca9[_0x10e1ec(0x297)];}function bi(_0x8f1119){const _0x57e88b=_0x54916c;let _0x27290c=_0x8f1119['get'](_0x202e33),_0xc427e8=_0x8f1119['get'](_0x26175c),_0x4e4e4a=_0x8f1119[_0x57e88b(0x273)](_0x12a7ac);return new _0x2b8d1f(_0xe516c3=>{const _0x1326ef=_0x57e88b;let _0x40bed2=()=>{const _0x1af2c4=_0x57eb;var _0x3320d1;let _0x1dcbbe=vi(_0x8f1119),_0x391410=_0x1dcbbe?_0x4e4e4a[_0x1af2c4(0x3a0)](_0x1dcbbe[_0x1af2c4(0x380)],_0x4171be[_0x1af2c4(0x1bc)]):void 0x0;_0xe516c3[_0x1af2c4(0x26f)](yi(_0x1dcbbe?_0x391410==null||(_0x3320d1=_0x391410[_0x1af2c4(0x330)]()[_0x1af2c4(0x1cf)])==null?void 0x0:_0x3320d1[_0x1dcbbe[_0x1af2c4(0x20b)]]:void 0x0));},_0x4e0a75=_0xc427e8[_0x1326ef(0x3b4)][_0x1326ef(0x3a6)](_0x40bed2),_0x1ac170=_0x27290c[_0x1326ef(0x35e)](_0x185cd3=>{_0x185cd3['id']===_0xf6218b['id']&&_0x40bed2();});return _0x40bed2(),()=>{const _0x4f3bf=_0x1326ef;_0x4e0a75['unsubscribe'](),_0x1ac170[_0x4f3bf(0x25f)]();};})[_0x57e88b(0x317)](_0x63a2ad());}function xi(_0x62caa3,_0x4a2d25=!0x1){const _0x535d9c=_0x54916c;let _0x56738a=_0x62caa3[_0x535d9c(0x273)](_0x202e33),_0xdc8ebd=_0x62caa3['get'](_0x26175c),_0x11fc98=_0x62caa3[_0x535d9c(0x273)](_0x2160d8);return new _0x2b8d1f(_0x41c9bd=>{const _0x5a34df=_0x535d9c;let _0xdceb48=()=>{const _0x330ff0=_0x57eb;let _0x2d3bf4=vi(_0x62caa3);if(!_0x2d3bf4){_0x41c9bd[_0x330ff0(0x26f)](!0x0);return;}let _0x4c403b=_0x11fc98[_0x330ff0(0x2ee)](_0x2d3bf4[_0x330ff0(0x380)],_0x2d3bf4[_0x330ff0(0x34e)],_0x2d3bf4[_0x330ff0(0x20b)]);_0x41c9bd[_0x330ff0(0x26f)](!_0x4c403b||_0x4a2d25&&_0x4c403b['formulaBinding']==null);},_0x33d20f=_0xdc8ebd[_0x5a34df(0x3b4)][_0x5a34df(0x3a6)](_0xdceb48),_0x117c91=_0x56738a['onCommandExecuted'](_0x13b163=>{_0x13b163['id']===_0x1ea311['id']&&_0xdceb48();});return _0xdceb48(),()=>{const _0x12618d=_0x5a34df;_0x33d20f[_0x12618d(0x244)](),_0x117c91['dispose']();};});}function Si(_0x4a0edd){const _0x3f3163=_0x54916c;let _0xc6e2f7=_0x4a0edd[_0x3f3163(0x273)](_0x26175c),_0x2c1135=_0x4a0edd[_0x3f3163(0x273)](_0x2160d8);return _0xc6e2f7['focus$']['pipe'](_0x1f671b(_0xc6e2f7[_0x3f3163(0x1b2)]()),_0x39640e(()=>{const _0x116f64=_0x3f3163;let _0x19f519=vi(_0x4a0edd),_0x16489a=_0x19f519?_0x2c1135[_0x116f64(0x219)](_0x19f519['unitId'],_0x19f519[_0x116f64(0x34e)],_0x19f519[_0x116f64(0x20b)]):void 0x0;return _0x16489a===void 0x0||_0x376792(_0x16489a);}));}function Ci(_0x5355b0){const _0xb92772=_0x54916c;return{'id':Pr['id'],'type':_0x4bb24c[_0xb92772(0x3d7)],'icon':_0xb92772(0x171),'title':_0xb92772(0x30b),'tooltip':_0xb92772(0x30b),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x5355b0),'hidden$':xi(_0x5355b0)};}function wi(_0x1498b7){const _0x37c74f=_0x54916c;return{'id':Fr['id'],'type':_0x4bb24c['SELECTOR'],'icon':'ShapeIcon','title':_0x37c74f(0x3a2),'tooltip':_0x37c74f(0x3a2),'slot':!0x0,'selections':[{'label':{'name':_0x5503f1,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x1498b7)};}function Ti(_0x46c356,_0xd4d7e1,_0xf940c2=!0x1){const _0x5a98bc=_0x54916c;return _0x524f1d=>({'id':_0x46c356,'type':_0x4bb24c[_0x5a98bc(0x264)],'label':{'name':_0xd4d7e1,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x524f1d,_0xf940c2)});}const Ei=Ti(li,Qr),Di=Ti(ui,$r),Oi=Ti(di,ei,!0x0);function ki(_0x41e1b3){const _0x58586a=_0x54916c;return{'id':gi,'type':_0x4bb24c['SELECTOR'],'icon':ni[0x0][_0x58586a(0x2f1)],'label':ti,'selectionsCommandId':_0x2b7a79['id'],'selections':ni['map'](({icon:_0x17c865,label:_0x48966d,value:_0x2f4dbb})=>({'value':_0x2f4dbb,'label':_0x48966d,'icon':_0x17c865,'params':()=>{const _0x2cf2e8=_0x58586a;let _0x19f2cf=vi(_0x41e1b3);return _0x19f2cf?{'unitId':_0x19f2cf[_0x2cf2e8(0x380)],'subUnitId':_0x19f2cf[_0x2cf2e8(0x34e)],'drawings':[{'unitId':_0x19f2cf['unitId'],'subUnitId':_0x19f2cf['subUnitId'],'drawingId':_0x19f2cf[_0x2cf2e8(0x20b)]}],'wrappingStyle':_0x2f4dbb}:void 0x0;}})),'value$':bi(_0x41e1b3),'hidden$':xi(_0x41e1b3)};}function Ai(_0x3573ad,_0x2ff36a,_0x29c8c4,_0x1ca8c0){return _0x4344f8=>({'id':_0x3573ad,'commandId':_0x5ba230['id'],'type':_0x4bb24c['BUTTON'],'icon':_0x29c8c4,'title':_0x1ca8c0,'tooltip':_0x1ca8c0,'hidden$':xi(_0x4344f8),'params':()=>{const _0x3c57e6=_0x57eb;let _0x1c0d43=vi(_0x4344f8);return _0x1c0d43?{'unitId':_0x1c0d43[_0x3c57e6(0x380)],'subUnitId':_0x1c0d43[_0x3c57e6(0x34e)],'drawingIds':[_0x1c0d43[_0x3c57e6(0x20b)]],'arrangeType':_0x2ff36a}:void 0x0;}});}const ji=Ai(fi,_0x5547f7[_0x54916c(0x1b5)],'MoveUpIcon',_0x54916c(0x254)),Mi=Ai(pi,_0x5547f7[_0x54916c(0x36a)],_0x54916c(0x383),_0x54916c(0x21f)),Ni=Ai(mi,_0x5547f7['front'],_0x54916c(0x272),_0x54916c(0x2ef)),Pi=Ai(hi,_0x5547f7['back'],_0x54916c(0x3b6),'shape-editor-ui.arrange.back');function Fi(_0x533cd8){const _0x3d2771=_0x54916c;return{'id':G['id'],'type':_0x4bb24c[_0x3d2771(0x264)],'icon':_0x3d2771(0x276),'title':_0x3d2771(0x1e5),'tooltip':'docs-shape-ui.formatShape','hidden$':xi(_0x533cd8),'params':()=>{const _0x52c5a9=_0x3d2771;let _0x7d20a9=vi(_0x533cd8);return _0x7d20a9?{'unitId':_0x7d20a9[_0x52c5a9(0x380)],'subUnitId':_0x7d20a9[_0x52c5a9(0x34e)],'drawingId':_0x7d20a9['drawingId']}:void 0x0;}};}const Ii={[_0x18fbf6['RIBBON']]:{[Dr]:{'order':0x64,'title':_0x54916c(0x1e5),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':ki},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ji},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Mi},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ni},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Pi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Fi},[_0x287f5d['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x340926}}}}},Li={[_0x2b252d['MEDIA']]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0xcd0cb2=>({...Gr(_0xcd0cb2),'title':void 0x0})}},[_0x2b252d['OTHERS']]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x5ebfef['PARAGRAPH']]:{[_0x2cb6c2[_0x54916c(0x303)]]:{[_0x5739b8]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x4b6267]:{[_0x2cb6c2[_0x54916c(0x303)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x1e75e0]:{[_0x2cb6c2[_0x54916c(0x303)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x5b597b]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0x28572c]:{'insert':{[U['id']+_0x54916c(0x2f7)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Ri=_0x54916c(0x24c),zi=_0x54916c(0x2a3);const Bi={'type':_0x1848a0['OPERATION'],'id':_0x54916c(0x2f9),'handler'(){return!0x0;}},Vi='docs-shape-ui.config',Hi={};function Ui(_0x5e0637){'@babel/helpers - typeof';const _0x3bd6b7=_0x54916c;return Ui=typeof Symbol==_0x3bd6b7(0x21e)&&typeof Symbol['iterator']==_0x3bd6b7(0x33d)?function(_0x2d8a58){return typeof _0x2d8a58;}:function(_0x4cdc5c){const _0x240875=_0x3bd6b7;return _0x4cdc5c&&typeof Symbol==_0x240875(0x21e)&&_0x4cdc5c[_0x240875(0x1f7)]===Symbol&&_0x4cdc5c!==Symbol['prototype']?_0x240875(0x33d):typeof _0x4cdc5c;},Ui(_0x5e0637);}function Wi(_0x11fae8,_0xba81b6){const _0xde30d4=_0x54916c;if(Ui(_0x11fae8)!=_0xde30d4(0x2cd)||!_0x11fae8)return _0x11fae8;var _0x3c118c=_0x11fae8[Symbol[_0xde30d4(0x183)]];if(_0x3c118c!==void 0x0){var _0x5c1c87=_0x3c118c['call'](_0x11fae8,_0xba81b6||_0xde30d4(0x2f3));if(Ui(_0x5c1c87)!=_0xde30d4(0x2cd))return _0x5c1c87;throw TypeError(_0xde30d4(0x32a));}return(_0xba81b6===_0xde30d4(0x25e)?String:Number)(_0x11fae8);}function Gi(_0x374d8d){const _0x53997d=_0x54916c;var _0x1ad552=Wi(_0x374d8d,'string');return Ui(_0x1ad552)==_0x53997d(0x33d)?_0x1ad552:_0x1ad552+'';}function J(_0x2b139e,_0x152e2e,_0x479075){const _0x43eafc=_0x54916c;return(_0x152e2e=Gi(_0x152e2e))in _0x2b139e?Object[_0x43eafc(0x1e4)](_0x2b139e,_0x152e2e,{'value':_0x479075,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b139e[_0x152e2e]=_0x479075,_0x2b139e;}var Ki=class extends _0xd9bd32{constructor(_0x4cfe29,_0x285b36){const _0x4c9359=_0x54916c;super(_0x4cfe29,_0x285b36),J(this,'_shapeId',null),J(this,_0x4c9359(0x2cc),null),J(this,_0x4c9359(0x369),null),J(this,_0x4c9359(0x242),null),_0x285b36&&this['setShapeProps'](_0x285b36);}[_0x54916c(0x3d1)](){const _0x576a2d=_0x54916c;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x576a2d(0x287)]};}[_0x54916c(0x1c6)](_0x59830b){const _0x3d112a=_0x54916c;_0x59830b[_0x3d112a(0x3a5)]!==void 0x0&&(this[_0x3d112a(0x287)]=_0x59830b[_0x3d112a(0x3a5)]),_0x59830b[_0x3d112a(0x2b2)]!==void 0x0&&(this[_0x3d112a(0x2cc)]=_0x59830b[_0x3d112a(0x2b2)]),_0x59830b['unitId']!==void 0x0&&(this[_0x3d112a(0x369)]=_0x59830b['unitId']),_0x59830b[_0x3d112a(0x34e)]!==void 0x0&&(this['_subUnitId']=_0x59830b[_0x3d112a(0x34e)]),this[_0x3d112a(0x31a)]({'width':_0x59830b[_0x3d112a(0x1ae)],'height':_0x59830b[_0x3d112a(0x309)]});}[_0x54916c(0x353)](_0x884d73){const _0x1ce38c=_0x54916c;_0x30a6ac[_0x1ce38c(0x15e)](_0x884d73,{'radius':_0x5938f6['adjHandleSize'],'fill':_0x5938f6[_0x1ce38c(0x3ac)],'stroke':_0x5938f6[_0x1ce38c(0x25c)],'strokeWidth':0x1,'evented':!0x0});}};function qi(_0x4ecf13,_0x9e18e3,_0x388fd1){let _0x14d89a={..._0x9e18e3,'dataModel':{..._0x9e18e3['dataModel']??{},..._0x388fd1?{'doc':_0x388fd1}:null}},_0x6f9381=_0x57f068(_0x4ecf13,_0x14d89a),_0x4e987f=_0xee6b9c(_0x6f9381);return{'clip':_0x3d57d0(_0x6f9381,_0x4e987f),'wrapStrategy':_0x4e987f};}var Y=class extends _0xd9bd32{constructor(_0x2c4f0b,_0x15579a){const _0x136a54=_0x54916c;super(_0x2c4f0b,_0x15579a),J(this,_0x136a54(0x26e),[]),J(this,'_props',void 0x0),J(this,_0x136a54(0x2a9),new _0xc06e59(()=>this[_0x136a54(0x288)](!0x0),()=>this[_0x136a54(0x3af)]())),J(this,_0x136a54(0x20d),!0x0),J(this,_0x136a54(0x386),_0x22154c[_0x136a54(0x1c7)]),J(this,'isDrawingObject',!0x0),this['_props']={..._0x15579a},this['_formulaAnimation'][_0x136a54(0x216)](_0x15579a[_0x136a54(0x275)],_0x15579a[_0x136a54(0x274)]!==!0x1),this[_0x136a54(0x38e)](),this['_applyFormulaAutoFitSize']();}[_0x54916c(0x38e)](){const _0x1abff4=_0x54916c;this[_0x1abff4(0x36f)][_0x1abff4(0x2b3)](_0x2cbd09=>{this['_updateSrcRectByTransform'](_0x2cbd09);});}[_0x54916c(0x19e)](_0x5bdd08){const _0x1fb00b=_0x54916c;this[_0x1fb00b(0x363)][_0x1fb00b(0x2c8)]=_0x5bdd08;}[_0x54916c(0x33f)](_0x4e7694){const _0x461c41=_0x54916c;if(this['_props'][_0x461c41(0x26c)])return null;let _0x1a7817=this['getInverseCoord'](_0x4e7694),{width:_0x1476eb,height:_0x59cd31}=this[_0x461c41(0x3cf)]();return _0x13c06(this['_hyperLinkRegions'],{'x':(this[_0x461c41(0x2a6)]?-_0x1a7817['x']:_0x1a7817['x'])+_0x1476eb/0x2,'y':_0x1a7817['y']+_0x59cd31/0x2});}[_0x54916c(0x314)](_0x56acb7){const _0x22e567=_0x54916c;this[_0x22e567(0x363)][_0x22e567(0x26c)]=_0x56acb7,this[_0x22e567(0x288)](!0x0);}[_0x54916c(0x294)](_0x2bda25,_0x35383c=!0x0){const _0x5a3eae=_0x54916c;this['_formulaAnimation'][_0x5a3eae(0x216)](_0x2bda25,_0x35383c),this['_props'][_0x5a3eae(0x275)]=_0x2bda25,this[_0x5a3eae(0x3af)](),this[_0x5a3eae(0x288)](!0x0);}[_0x54916c(0x3af)](){const _0x40d7ec=_0x54916c;let _0x5ac38a=this[_0x40d7ec(0x363)]['shapeModel'],_0x1dc0fd=_0x5ac38a[_0x40d7ec(0x23e)](),_0xcfd460=_0x4bc9a6(_0x1dc0fd==null?void 0x0:_0x1dc0fd[_0x40d7ec(0x39f)]),_0x39d116=_0xcfd460==null?void 0x0:_0xcfd460[_0x40d7ec(0x299)],_0x3f192a=this[_0x40d7ec(0x2a9)]['getAutoFitPresentations']();if(!_0x39d116||_0x3f192a[_0x40d7ec(0x192)]===0x0)return;_0x5ac38a['updateContext']({'width':this[_0x40d7ec(0x1ae)],'height':this[_0x40d7ec(0x309)]});let _0x2ccd3f=_0x1e0e9e({'documentData':_0x3f192a['map'](_0x42503d=>_0x29415a(_0x39d116,_0x42503d)),'height':this[_0x40d7ec(0x309)],'shapeData':_0x5ac38a[_0x40d7ec(0x199)](),'textRect':_0x5ac38a['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x40d7ec(0x1ae)],'height':this[_0x40d7ec(0x309)]}),'width':this[_0x40d7ec(0x1ae)]});if(_0x2ccd3f){var _0x3d6638;this[_0x40d7ec(0x316)](_0x2ccd3f[_0x40d7ec(0x1ae)],_0x2ccd3f[_0x40d7ec(0x309)]),(_0x3d6638=this[_0x40d7ec(0x270)]())==null||(_0x3d6638=_0x3d6638['getTransformer']())==null||_0x3d6638['debounceRefreshControls']();}}get[_0x54916c(0x380)](){const _0xe0dd1b=_0x54916c;return this[_0xe0dd1b(0x363)][_0xe0dd1b(0x380)];}get[_0x54916c(0x34e)](){const _0x169194=_0x54916c;return this[_0x169194(0x363)][_0x169194(0x34e)];}[_0x54916c(0x250)](_0x1ad9a8){const _0x10c32e=_0x54916c;if(this['_props']['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x348b97,height:_0x1a2c57}=this,{width:_0x352b97=0x0,height:_0x49a3e4=0x0}=_0x1ad9a8['preValue'],{left:_0x2141b8=0x0,top:_0x3d266f=0x0,right:_0x527d93=0x0,bottom:_0x3509b7=0x0}=this['_props'][_0x10c32e(0x2c1)],_0x36e1fe=_0x2141b8,_0x441bf9=_0x3d266f,_0x4f68f1=_0x527d93,_0x5e53d4=_0x3509b7,_0x131dc7=!0x1;if(_0x352b97!==0x0&&_0x352b97!==_0x348b97){let _0x2f6c99=_0x2141b8/_0x352b97,_0x2ea6b0=_0x527d93/_0x352b97;_0x36e1fe=_0x348b97*_0x2f6c99,_0x4f68f1=_0x348b97*_0x2ea6b0,_0x131dc7=!0x0;}if(_0x49a3e4!==0x0&&_0x49a3e4!==_0x1a2c57){let _0x11baf0=_0x3d266f/_0x49a3e4,_0x44b2f5=_0x3509b7/_0x49a3e4;_0x441bf9=_0x1a2c57*_0x11baf0,_0x5e53d4=_0x1a2c57*_0x44b2f5,_0x131dc7=!0x0;}_0x131dc7&&this[_0x10c32e(0x188)]({'left':_0x36e1fe,'top':_0x441bf9,'right':_0x4f68f1,'bottom':_0x5e53d4});}['setSrcRect'](_0x4fcc8f){const _0x1107fa=_0x54916c;this['_props'][_0x1107fa(0x2c1)]=_0x4fcc8f,this[_0x1107fa(0x288)](!0x0);}[_0x54916c(0x278)](_0x5e7150){const _0x1a91ec=_0x54916c;this[_0x1a91ec(0x363)][_0x1a91ec(0x1a1)]=_0x5e7150,this[_0x1a91ec(0x288)](!0x0);}set['transform'](_0x313e40){this['_transform']=_0x313e40;}get[_0x54916c(0x31e)](){const _0x3073f4=_0x54916c;this[_0x3073f4(0x1be)]||this[_0x3073f4(0x3d0)]();let _0x4dffec=this[_0x3073f4(0x1be)][_0x3073f4(0x3b7)]();return this[_0x3073f4(0x388)](_0x4dffec);}get['shapeModel'](){const _0x4c8ed0=_0x54916c;return this[_0x4c8ed0(0x363)]['shapeModel'];}get[_0x54916c(0x3a5)](){const _0x25aa45=_0x54916c;return this[_0x25aa45(0x363)][_0x25aa45(0x3a5)];}get[_0x54916c(0x2d5)](){return _0x5b3c3e['SHAPE'];}[_0x54916c(0x353)](_0xacb6c,_0x232165,_0x246b5b,_0x1ab37e){const _0x385d0a=_0x54916c;let _0x1b989b=this[_0x385d0a(0x363)][_0x385d0a(0x2c7)];if(!_0x1b989b||!_0x232165)return;let _0x2cd2c9=_0x246b5b??this[_0x385d0a(0x1ae)],_0x5cf6a4=_0x1ab37e??this[_0x385d0a(0x309)],_0x503224={'shapeType':_0x1b989b[_0x385d0a(0x359)](),'width':_0x2cd2c9,'height':_0x5cf6a4},_0x1ec98a={'renderMode':_0x56f3ea[_0x385d0a(0x2be)],'oKey':this[_0x385d0a(0x35c)],'image':this['_props'][_0x385d0a(0x1a1)],'angle':this['angle']};_0x1b989b[_0x385d0a(0x256)](_0x503224),_0xacb6c[_0x385d0a(0x3c2)]();let _0x54bc32={'top':0x0,'left':0x0,'width':_0x2cd2c9,'height':_0x5cf6a4},_0xcdd778=_0x1b989b[_0x385d0a(0x16d)](_0x54bc32);_0xcdd778?this['_renderWithCache'](_0xacb6c,_0xcdd778,_0x4b6dcd=>{_0x1b989b['render'](_0x4b6dcd,_0x54bc32,_0x1ec98a);}):(this[_0x385d0a(0x2ff)](),_0x1b989b[_0x385d0a(0x17c)](_0xacb6c,_0x54bc32,_0x1ec98a)),_0xacb6c[_0x385d0a(0x39d)]();let _0x1c249c=_0x1b989b['getShapeTextData'](),_0x2e5ce9=_0x1b989b[_0x385d0a(0x19a)](_0x54bc32),_0x2016ab=_0x1b989b[_0x385d0a(0x3c9)]();if(_0x1c249c&&_0x2e5ce9&&!_0x2016ab){_0xacb6c[_0x385d0a(0x3c2)](),this[_0x385d0a(0x2de)]()['flipX']&&_0xacb6c['scale'](-0x1,0x1);let _0x5c105d=_0x2cd2c9/0x2,_0x5f558a=_0x5cf6a4/0x2;_0xacb6c[_0x385d0a(0x262)](-_0x5c105d,-_0x5f558a),_0xacb6c[_0x385d0a(0x19f)](),this['_drawShapeText'](_0xacb6c,_0x1c249c,_0x2e5ce9),_0xacb6c[_0x385d0a(0x39d)]();}}[_0x54916c(0x23f)](_0x5be925){}['_drawShapeText'](_0x49d8d3,_0x414465,_0x650cd0){const _0x21cb78=_0x54916c;var _0x5112f1;this[_0x21cb78(0x26e)]=[],!this[_0x21cb78(0x363)][_0x21cb78(0x26c)]&&(!((_0x5112f1=_0x414465['dataModel'])!=null&&_0x5112f1[_0x21cb78(0x299)])&&'isRichText'in _0x414465&&_0x414465[_0x21cb78(0x234)]===!0x1?this[_0x21cb78(0x32c)](_0x49d8d3,_0x414465,_0x650cd0):this[_0x21cb78(0x212)](_0x49d8d3,_0x414465,_0x650cd0));}[_0x54916c(0x32c)](_0x140f07,_0x542bcf,_0x2fa50b){const _0x418ced=_0x54916c;this[_0x418ced(0x212)](_0x140f07,{..._0x542bcf,'text':_0x542bcf[_0x418ced(0x319)]??'','dataModel':{'doc':_0x14eae4(_0x542bcf,_0x418ced(0x38f)+this['oKey'])}},_0x2fa50b);}[_0x54916c(0x212)](_0x267dc0,_0x339ff6,_0x3db3d9){const _0x5b2063=_0x54916c;_0x37906b(_0x267dc0,this[_0x5b2063(0x2a9)],(_0x14f985,_0x27aaf8,_0x5ad08e)=>{const _0xbc7040=_0x5b2063;this[_0xbc7040(0x2b6)](_0x14f985,_0x339ff6,_0x3db3d9,_0x27aaf8,_0x5ad08e===_0xbc7040(0x1af));});}['_drawRichTextLayer'](_0x238ff6,_0x55891f,_0x35d400,_0x129fc5,_0x1edf82){const _0x388f00=_0x54916c;let _0x2e3030=this[_0x388f00(0x363)][_0x388f00(0x2ce)];if(!_0x55891f[_0x388f00(0x39f)]||!_0x2e3030){_0x2e3030||console[_0x388f00(0x1eb)](_0x388f00(0x2ca));return;}let _0x4e01b6=_0x4bc9a6(_0x55891f[_0x388f00(0x39f)]);if(!_0x4e01b6)return;let _0x3a4c4e=_0x4e01b6[_0x388f00(0x299)];if(!_0x3a4c4e)return;let _0x37ad3a=_0x29415a(_0x3a4c4e,_0x129fc5),_0x52f084=_0x4e01b6['va']??_0x5e99c6[_0x388f00(0x1f9)],_0x57c754=_0x4e01b6['ha']??_0x41ec9a[_0x388f00(0x248)],_0x17110e=qi(this[_0x388f00(0x363)]['shapeModel'][_0x388f00(0x199)](),_0x55891f,_0x37ad3a),_0x250f7a=_0x55891f[_0x388f00(0x232)],_0x26bf0c=_0x830d47(_0x37ad3a,{'isHorizontal':_0x250f7a!==!0x1,'textRect':_0x35d400,'verticalAlign':_0x52f084,'horizontalAlign':_0x57c754,'wrapStrategy':_0x17110e[_0x388f00(0x370)]}),_0x674f5=new _0xff9fea(_0x26bf0c),_0x480167=new _0x3fffa8(_0x674f5),_0x3635bf=_0x442807[_0x388f00(0x257)](_0x480167,_0x2e3030);_0x3635bf[_0x388f00(0x1c5)]();let _0x376fb6=_0x3635bf['getActualSize']()[_0x388f00(0x3cc)],_0x505c7d=_0x1fa6e5({'contentHeight':_0x376fb6,'verticalAlign':_0x52f084,'viewportHeight':_0x35d400[_0x388f00(0x309)]});_0x674f5[_0x388f00(0x337)]({'pageSize':{'width':_0x250f7a===!0x1?_0x35d400[_0x388f00(0x309)]:_0x35d400[_0x388f00(0x1ae)],'height':_0x25b217(_0x37ad3a,_0x505c7d['contentHeight'])}}),_0x674f5[_0x388f00(0x197)]({'t':_0x505c7d[_0x388f00(0x2f4)]}),_0x3635bf[_0x388f00(0x1c5)]();let _0x2aae73=new _0x30dafa('shape-text-'+this['oKey'],_0x3635bf,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x388f00(0x288)](!0x0)});_0x2aae73['resize'](_0x35d400['width'],_0x505c7d[_0x388f00(0x36d)]),_0x238ff6[_0x388f00(0x3c2)](),_0x238ff6[_0x388f00(0x365)](_0x35d400[_0x388f00(0x398)],_0x35d400[_0x388f00(0x31f)]),_0x17110e[_0x388f00(0x223)]&&(_0x238ff6[_0x388f00(0x19f)](),_0x238ff6[_0x388f00(0x285)](0x0,_0x505c7d[_0x388f00(0x390)],_0x35d400[_0x388f00(0x1ae)],_0x505c7d[_0x388f00(0x362)]),_0x238ff6['clip']()),_0x505c7d[_0x388f00(0x395)]&&_0x238ff6[_0x388f00(0x365)](0x0,_0x505c7d[_0x388f00(0x395)]),_0x2aae73['draw'](_0x238ff6),_0x1edf82&&(this[_0x388f00(0x26e)]=_0x2107bb(_0x2aae73,{'left':_0x35d400[_0x388f00(0x398)],'top':_0x35d400[_0x388f00(0x31f)]+_0x505c7d['contentVerticalOffset']},_0x17110e['clip']?{'left':_0x35d400[_0x388f00(0x398)],'right':_0x35d400[_0x388f00(0x398)]+_0x35d400[_0x388f00(0x1ae)],'top':_0x35d400[_0x388f00(0x31f)]+_0x505c7d[_0x388f00(0x390)],'bottom':_0x35d400['top']+_0x505c7d[_0x388f00(0x390)]+_0x505c7d[_0x388f00(0x362)]}:void 0x0)),_0x238ff6[_0x388f00(0x39d)](),_0x2aae73['dispose'](),_0x3635bf['dispose'](),_0x480167['dispose'](),_0x674f5[_0x388f00(0x25f)]();}['render'](_0x29f905,_0x5b52d9,_0x3319cb=!0x1){const _0x5a6d31=_0x54916c;if(!this['visible'])return this[_0x5a6d31(0x288)](!0x1),this;let {width:_0x2f2611,height:_0x1c9637,left:_0x3da2ee,top:_0x4e77cd}=this,_0xce8f5b=this['getRealBound']();if(_0x2f2611=_0xce8f5b['width'],_0x1c9637=_0xce8f5b[_0x5a6d31(0x309)],_0x3da2ee=_0xce8f5b[_0x5a6d31(0x398)],_0x4e77cd=_0xce8f5b[_0x5a6d31(0x31f)],this[_0x5a6d31(0x3ba)](_0x5b52d9)){let {top:_0x2a9082,left:_0x53d736,bottom:_0x4ccff2,right:_0x5ce526}=_0x5b52d9[_0x5a6d31(0x323)];if(_0x2f2611+this['strokeWidth']+_0x3da2ee<_0x53d736||_0x5ce526<_0x3da2ee||_0x1c9637+this[_0x5a6d31(0x1d5)]+_0x4e77cd<_0x2a9082||_0x4ccff2<_0x4e77cd)return this;}let _0x3cd317=_0x3da2ee+_0x2f2611/0x2,_0x4f4596=_0x4e77cd+_0x1c9637/0x2,_0x2f7eae=this[_0x5a6d31(0x31e)][_0x5a6d31(0x340)]();if(this['_props']['isEditing']){let _0x4bdece=this['getState'](),_0x178033=new _0x13ba73();_0x178033['composeMatrix']({..._0x4bdece}),_0x2f7eae=_0x178033[_0x5a6d31(0x340)]();}return _0x29f905[_0x5a6d31(0x3c2)](),this['_props'][_0x5a6d31(0x2c7)][_0x5a6d31(0x1e6)]===!0x0||_0x29f905['transform'](_0x2f7eae[0x0],_0x2f7eae[0x1],_0x2f7eae[0x2],_0x2f7eae[0x3],_0x3cd317,_0x4f4596),this[_0x5a6d31(0x353)](_0x29f905,_0x5b52d9,_0x2f2611,_0x1c9637),_0x29f905[_0x5a6d31(0x39d)](),this[_0x5a6d31(0x288)](!0x1),this;}[_0x54916c(0x179)](_0x17fadd){const _0x4ce33d=_0x54916c;let {left:_0x5ca6fc,top:_0x488ae0,width:_0x394c9a,height:_0x5b137c}=this[_0x4ce33d(0x3cf)](),_0x58b2c2=this[_0x4ce33d(0x31e)][_0x4ce33d(0x340)](),_0x168a28=_0x5ca6fc+_0x394c9a/0x2,_0x1f1f1c=_0x488ae0+_0x5b137c/0x2,_0x5762e8=new _0x13ba73([_0x58b2c2[0x0],_0x58b2c2[0x1],_0x58b2c2[0x2],_0x58b2c2[0x3],_0x168a28,_0x1f1f1c]),_0x1fbe64=this['getParent']();return(this['isInGroup']&&(_0x1fbe64==null?void 0x0:_0x1fbe64[_0x4ce33d(0x2d5)])===_0x5b3c3e['GROUP']?_0x1fbe64[_0x4ce33d(0x243)][_0x4ce33d(0x214)](_0x5762e8):_0x5762e8)[_0x4ce33d(0x265)]()[_0x4ce33d(0x2dc)](_0x17fadd);}['isHit'](_0x1dd0e1){const _0x10eda8=_0x54916c;let {left:_0x2206b4,top:_0x424a91,width:_0xe849de,height:_0x555e11}=this['getRealBound'](),_0x1264cc=_0x2206b4+_0xe849de/0x2,_0x19ddb9=_0x424a91+_0x555e11/0x2,_0x3552a6=this[_0x10eda8(0x31e)][_0x10eda8(0x340)](),_0x179d61=new _0x13ba73([_0x3552a6[0x0],_0x3552a6[0x1],_0x3552a6[0x2],_0x3552a6[0x3],_0x1264cc,_0x19ddb9]),_0x2cbbc6=this['getParent'](),_0x929c23=(this[_0x10eda8(0x2fe)]&&(_0x2cbbc6==null?void 0x0:_0x2cbbc6[_0x10eda8(0x2d5)])===_0x5b3c3e[_0x10eda8(0x35d)]?_0x2cbbc6['ancestorTransform']['multiply'](_0x179d61):_0x179d61)['invert']()[_0x10eda8(0x2dc)](_0x1dd0e1),_0x571d72=_0xe849de/0x2,_0x1eeb02=_0x555e11/0x2,_0x11b2cd=this[_0x10eda8(0x363)][_0x10eda8(0x2c7)];return _0x11b2cd&&_0x11b2cd['isLineShape']()?_0x11b2cd[_0x10eda8(0x3bb)](_0x929c23['x'],_0x929c23['y'],_0xe849de,_0x555e11):_0x929c23['x']>=-_0x571d72-this[_0x10eda8(0x1d5)]/0x2&&_0x929c23['x']<=_0x571d72+this[_0x10eda8(0x1d5)]/0x2&&_0x929c23['y']>=-_0x1eeb02-this[_0x10eda8(0x1d5)]/0x2&&_0x929c23['y']<=_0x1eeb02+this[_0x10eda8(0x1d5)]/0x2;}[_0x54916c(0x25f)](){const _0x2a5e5c=_0x54916c;this[_0x2a5e5c(0x2a9)]['dispose'](),this[_0x2a5e5c(0x363)]['shapeModel']=null,super[_0x2a5e5c(0x25f)]();}};let Ji=class extends _0x2f986c{constructor(_0x2c628e,_0x252dc9,_0x4978a2,_0x13e574){const _0x45db4e=_0x54916c;super(),this[_0x45db4e(0x1ce)]=_0x2c628e,this['_drawingManagerService']=_0x252dc9,this[_0x45db4e(0x228)]=_0x4978a2,this[_0x45db4e(0x3b3)]=_0x13e574,J(this,_0x45db4e(0x2df),null),J(this,_0x45db4e(0x369),null),J(this,_0x45db4e(0x242),null),J(this,_0x45db4e(0x1d4),void 0x0),J(this,_0x45db4e(0x2ae),[]),J(this,_0x45db4e(0x3a4),0x0),J(this,_0x45db4e(0x1b7),0x0),J(this,_0x45db4e(0x16b),0x0),J(this,'_baseShapeHeight',0x0),J(this,_0x45db4e(0x335),!0x1),J(this,_0x45db4e(0x3b9),!0x1),J(this,_0x45db4e(0x2af),void 0x0),J(this,_0x45db4e(0x163),void 0x0),J(this,_0x45db4e(0x39a),void 0x0),J(this,_0x45db4e(0x1c8),void 0x0),this[_0x45db4e(0x1bb)](),this[_0x45db4e(0x1fb)]();}[_0x54916c(0x202)](){const _0x3661f0=_0x54916c;this[_0x3661f0(0x3cd)]();}[_0x54916c(0x1c2)](){const _0x26efd7=_0x54916c;this[_0x26efd7(0x357)](!0x0);}['_getShapeAdjustPointListById'](_0x5104b4,_0x5a09ec,_0x228fc5){const _0x3c135d=_0x54916c;var _0x30c053;return(_0x30c053=this[_0x3c135d(0x228)][_0x3c135d(0x348)](_0x5104b4,_0x5a09ec,_0x228fc5))==null?void 0x0:_0x30c053['getDrawingPoints']();}[_0x54916c(0x2e7)](_0x20c051,_0x270545,_0x5e5724,_0x471f98){const _0x1a5899=_0x54916c;var _0xdc2424;return(_0xdc2424=this[_0x1a5899(0x228)][_0x1a5899(0x348)](_0x20c051,_0x270545,_0x5e5724))==null?void 0x0:_0xdc2424[_0x1a5899(0x1ef)](_0x471f98);}['_getActiveDrawingParam'](){const _0x2ac884=_0x54916c;return this[_0x2ac884(0x369)]===null||this[_0x2ac884(0x242)]===null||this[_0x2ac884(0x2df)]===null?null:this['_drawingManagerService'][_0x2ac884(0x33e)]({'unitId':this[_0x2ac884(0x369)],'subUnitId':this[_0x2ac884(0x242)],'drawingId':this['_activeShapeId']})??null;}[_0x54916c(0x1cc)](_0x56c3e7){const _0x32d1b5=_0x54916c;if(this[_0x32d1b5(0x369)]===null||this[_0x32d1b5(0x242)]===null||this['_activeShapeId']===null)return null;let _0x1c4234=_0x4c8b57({'unitId':this[_0x32d1b5(0x369)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x32d1b5(0x2df)]}),_0xe0acff=_0x56c3e7['getObjectIncludeInGroup'](_0x1c4234);return _0xe0acff instanceof Y?_0xe0acff:null;}[_0x54916c(0x1df)](_0x476157=!0x1){const _0x449c02=_0x54916c;if(this[_0x449c02(0x369)]===null||this[_0x449c02(0x242)]===null||this[_0x449c02(0x2df)]===null)return;let _0x649a77=this['_getActiveDrawingParam']();if((_0x649a77==null?void 0x0:_0x649a77[_0x449c02(0x349)])!==_0x22154c[_0x449c02(0x1c7)]||!_0x649a77[_0x449c02(0x31e)])return;let _0x294df7=this[_0x449c02(0x228)][_0x449c02(0x348)](this[_0x449c02(0x369)],this['_subUnitId'],this[_0x449c02(0x2df)]);if(!_0x294df7||_0x294df7[_0x449c02(0x3c9)]())return;let {left:_0x291902=0x0,top:_0x418dbf=0x0,width:_0x457477=0x0,height:_0x59d307=0x0,flipX:_0x269c24,flipY:_0x2961f5,angle:_0x226ee4=0x0}=_0x649a77['transform'];(_0x476157||!this['_activeShapeAdjustPointList'])&&(_0x294df7[_0x449c02(0x256)]({'width':_0x457477,'height':_0x59d307}),this[_0x449c02(0x1d4)]=_0x294df7[_0x449c02(0x23f)]());let _0x28a971=this['_activeShapeAdjustPointList'];if(!(_0x28a971!=null&&_0x28a971['length']))return;let {scene:_0xfa79f}=this['_context'];for(let _0x4a3ec6 of _0x28a971){let _0x309a73=this[_0x449c02(0x251)](_0x4a3ec6,_0x457477,_0x59d307,!!_0x269c24,!!_0x2961f5,_0x226ee4);this[_0x449c02(0x236)](_0xfa79f,_0x309a73,_0x309a73[_0x449c02(0x2b2)],_0x291902,_0x418dbf,this[_0x449c02(0x369)],this[_0x449c02(0x242)]);}}[_0x54916c(0x251)](_0x3f110d,_0x469c6c,_0x3b8951,_0x3b7652,_0x55f35a,_0x17762c){const _0x4397b4=_0x54916c;let _0x4e3cb6=_0x3f110d['x'],_0x16e33c=_0x3f110d['y'];if(_0x3b7652&&(_0x4e3cb6=_0x469c6c-_0x4e3cb6),_0x55f35a&&(_0x16e33c=_0x3b8951-_0x16e33c),_0x17762c!==0x0){let _0x4a2d15=_0x469c6c/0x2,_0x5e571c=_0x3b8951/0x2,_0x433796=_0x17762c*Math['PI']/0xb4,_0x3b0f6f=Math[_0x4397b4(0x1ca)](_0x433796),_0x348c11=Math[_0x4397b4(0x168)](_0x433796),_0xda5d2e=_0x4e3cb6-_0x4a2d15,_0x4bc755=_0x16e33c-_0x5e571c;_0x4e3cb6=_0x4a2d15+(_0xda5d2e*_0x3b0f6f-_0x4bc755*_0x348c11),_0x16e33c=_0x5e571c+(_0xda5d2e*_0x348c11+_0x4bc755*_0x3b0f6f);}return{'x':_0x4e3cb6,'y':_0x16e33c,'adjName':_0x3f110d[_0x4397b4(0x2b2)]};}['_updateShapeAdjustControls'](_0x1f2a66=!0x1){const _0x51b56d=_0x54916c;_0x1f2a66&&this['_clearShapeAdjustControls'](),this[_0x51b56d(0x1df)](_0x1f2a66);}['_addShapeAdjustControl'](_0x5c6f39,_0x50440c,_0x1efe28,_0x521c3b,_0x3c70d5,_0x182da9,_0x360c22){const _0x494b8a=_0x54916c;if(!this['_activeShapeId'])return;let _0x5a49df=_0x494b8a(0x220)+this[_0x494b8a(0x2df)]+'-'+_0x1efe28,_0x1c4a0b=_0x5c6f39[_0x494b8a(0x17d)](_0x5a49df);if(_0x1c4a0b){_0x1c4a0b['transformByState']({'left':_0x50440c['x']+_0x521c3b-_0x5938f6[_0x494b8a(0x2c9)],'top':_0x50440c['y']+_0x3c70d5-_0x5938f6['adjHandleSize']}),_0x1c4a0b[_0x494b8a(0x288)](!0x0);return;}let _0x7f0cb9=new Ki(_0x5a49df,{'left':_0x50440c['x']+_0x521c3b-_0x5938f6[_0x494b8a(0x2c9)],'top':_0x50440c['y']+_0x3c70d5-_0x5938f6[_0x494b8a(0x2c9)],'adjName':_0x1efe28,'shapeId':this[_0x494b8a(0x2df)],'unitId':_0x182da9,'subUnitId':_0x360c22,'width':_0x5938f6['adjHandleSize']+0x8,'height':_0x5938f6[_0x494b8a(0x2c9)]+0x8,'zIndex':_0x2028f9+0x1,'evented':!0x0});this['_adjustPointObjects'][_0x494b8a(0x175)](_0x7f0cb9),this[_0x494b8a(0x396)](_0x7f0cb9,_0x5c6f39,_0x1efe28),_0x5c6f39[_0x494b8a(0x1e3)](_0x7f0cb9,_0x2028f9+0x1);}[_0x54916c(0x3cd)](){const _0x3e297a=_0x54916c;this[_0x3e297a(0x2ae)][_0x3e297a(0x284)](_0x2625bc=>_0x2625bc[_0x3e297a(0x25f)]()),this['_adjustPointObjects']=[];}['_updateAdjustControlPositions'](){this['_createShapeAdjustControls']();}[_0x54916c(0x2f6)](_0x53cb20,_0x5511fe,_0x5d1410){const _0x14d831=_0x54916c;let _0x3f3b63=_0x44d7b4['FromArray']([_0x5511fe,_0x5d1410]),_0x2f0da5=_0x53cb20['getActiveViewportByCoord'](_0x3f3b63)??_0x53cb20[_0x14d831(0x293)]()[0x0];return(_0x2f0da5==null?void 0x0:_0x2f0da5['transformVector2SceneCoord'](_0x3f3b63))??_0x3f3b63;}[_0x54916c(0x396)](_0x1f63f8,_0x4dc971,_0xc7869a){const _0x25b5f4=_0x54916c;this[_0x25b5f4(0x3a3)](_0x15884f(_0x1f63f8[_0x25b5f4(0x29f)][_0x25b5f4(0x2b3)]((_0x1adb97,_0x3fd011)=>{const _0x4a210c=_0x25b5f4;var _0x441c9c;let _0x5df857=_0x1f63f8[_0x4a210c(0x3d1)]();this[_0x4a210c(0x2af)]=this[_0x4a210c(0x2e7)](_0x5df857['unitId'],_0x5df857[_0x4a210c(0x34e)],_0x5df857[_0x4a210c(0x20b)],_0xc7869a),this[_0x4a210c(0x163)]=this['_docsShapeService']['getShapeModel'](_0x5df857[_0x4a210c(0x380)],_0x5df857['subUnitId'],_0x5df857[_0x4a210c(0x20b)]);let _0x221e97=this['_getActiveDrawingParam'](),_0xa0c78f=_0x221e97==null?void 0x0:_0x221e97[_0x4a210c(0x31e)];if(!_0x221e97||!_0xa0c78f||!this[_0x4a210c(0x163)])return;this[_0x4a210c(0x3a4)]=_0xa0c78f[_0x4a210c(0x398)]||0x0,this['_baseShapeTop']=_0xa0c78f[_0x4a210c(0x31f)]||0x0,this[_0x4a210c(0x16b)]=_0xa0c78f[_0x4a210c(0x1ae)]||0x0,this[_0x4a210c(0x166)]=_0xa0c78f[_0x4a210c(0x309)]||0x0;let _0x4e22fe=!!_0xa0c78f['flipX'],_0x4f6eb8=!!_0xa0c78f[_0x4a210c(0x160)],_0x148536=_0xa0c78f[_0x4a210c(0x20c)]||0x0,_0x5dad79={...((_0x441c9c=this['_activeAdjustInfo'])==null?void 0x0:_0x441c9c[_0x4a210c(0x261)])??{}};this['_isStartAdjusting']=!0x0,_0x4dc971[_0x4a210c(0x16e)](),this['_adjHandlerPointerMove']=_0x4dc971[_0x4a210c(0x3a1)][_0x4a210c(0x2b3)]((_0x1cb8df,_0x55d341)=>{const _0x32018e=_0x4a210c;var _0x5732b9;if(!this['_isStartAdjusting']||!this[_0x32018e(0x163)]||!this[_0x32018e(0x2af)])return;_0x4dc971['disableObjectsEvent'](),_0x4dc971['setCursor'](_0x31ceaf[_0x32018e(0x1b4)]);let _0x50c1cc=this[_0x32018e(0x2f6)](_0x4dc971,_0x1cb8df['offsetX'],_0x1cb8df['offsetY']),_0x12155b=_0x50c1cc['x']-this[_0x32018e(0x3a4)],_0x2258f3=_0x50c1cc['y']-this[_0x32018e(0x1b7)];if(_0x148536!==0x0){let _0x1965b0=this['_baseShapeWidth']/0x2,_0x25c076=this[_0x32018e(0x166)]/0x2,_0x15ee26=_0x148536*Math['PI']/0xb4,_0x4bca63=Math[_0x32018e(0x1ca)](_0x15ee26),_0x597b57=Math['sin'](_0x15ee26),_0x263b7c=_0x12155b-_0x1965b0,_0x4375ee=_0x2258f3-_0x25c076;_0x12155b=_0x1965b0+(_0x263b7c*_0x4bca63+_0x4375ee*_0x597b57),_0x2258f3=_0x25c076+(-_0x263b7c*_0x597b57+_0x4375ee*_0x4bca63);}_0x4e22fe&&(_0x12155b=this[_0x32018e(0x16b)]-_0x12155b),_0x4f6eb8&&(_0x2258f3=this['_baseShapeHeight']-_0x2258f3);let _0x461e20={'left':0x0,'top':0x0,'width':this[_0x32018e(0x16b)],'height':this[_0x32018e(0x166)]},_0x5c4acd=this[_0x32018e(0x163)][_0x32018e(0x34d)](_0x461e20,{'x':_0x12155b,'y':_0x2258f3},this[_0x32018e(0x2af)],_0x4e22fe,_0x4f6eb8);if(Object['keys'](_0x5c4acd)['length']!==0x0){for(let [_0x3d42c6,_0x3b4831]of Object[_0x32018e(0x162)](_0x5c4acd))this['_activeShapeModel'][_0x32018e(0x3b2)](_0x3d42c6,_0x3b4831);this[_0x32018e(0x163)][_0x32018e(0x256)]({'width':this[_0x32018e(0x16b)],'height':this['_baseShapeHeight']}),(_0x5732b9=this[_0x32018e(0x1cc)](_0x4dc971))==null||_0x5732b9[_0x32018e(0x288)](!0x0),this[_0x32018e(0x1d4)]=this[_0x32018e(0x1b8)](_0x5df857[_0x32018e(0x380)],_0x5df857[_0x32018e(0x34e)],_0x5df857[_0x32018e(0x20b)]),this[_0x32018e(0x1a7)](),_0x55d341[_0x32018e(0x2bc)]();}}),this['_adjHandlerPointerUp']=_0x4dc971[_0x4a210c(0x238)][_0x4a210c(0x2b3)]((_0x56b147,_0x547ca6)=>{const _0x2e8b55=_0x4a210c;var _0x484bee,_0x21f048;(_0x484bee=this[_0x2e8b55(0x39a)])==null||_0x484bee[_0x2e8b55(0x244)](),(_0x21f048=this[_0x2e8b55(0x1c8)])==null||_0x21f048[_0x2e8b55(0x244)](),_0x4dc971[_0x2e8b55(0x18b)]();let _0x226449=this[_0x2e8b55(0x2af)];if(_0x226449&&this['_activeShapeModel']){let _0x4a701d={};for(let _0x5d52a6 of Object[_0x2e8b55(0x336)](_0x226449[_0x2e8b55(0x261)])){let _0x34e28e=this[_0x2e8b55(0x163)][_0x2e8b55(0x37f)](_0x5d52a6);_0x34e28e!==void 0x0&&(_0x4a701d[_0x5d52a6]=_0x34e28e);}Object[_0x2e8b55(0x336)](_0x4a701d)[_0x2e8b55(0x192)]>0x0&&Yr(this[_0x2e8b55(0x3b3)],_0x5df857[_0x2e8b55(0x380)],_0x5df857['subUnitId'],_0x5df857[_0x2e8b55(0x20b)],{'oldShapeData':{'adjustValues':_0x5dad79}},{'adjustValues':_0x4a701d});}this['_activeAdjustInfo']=void 0x0,this[_0x2e8b55(0x163)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4dc971[_0x2e8b55(0x30d)](),_0x547ca6['stopPropagation']();}),_0x3fd011[_0x4a210c(0x2bc)]();})));}[_0x54916c(0x1fb)](){const _0x47aee8=_0x54916c;let {scene:_0x227d6b}=this[_0x47aee8(0x1ce)],_0x3cc692=_0x227d6b['getTransformerByCreate']();this['disposeWithMe'](_0x3cc692[_0x47aee8(0x338)][_0x47aee8(0x3a6)](_0x1251df=>{const _0x2f083a=_0x47aee8;this[_0x2f083a(0x1df)](),_0x1251df[_0x2f083a(0x2ea)]!==null&&_0x1251df[_0x2f083a(0x2ea)][_0x2f083a(0x170)]===0x1&&_0x1251df[_0x2f083a(0x2ea)][_0x2f083a(0x213)]()[_0x2f083a(0x26f)]()[_0x2f083a(0x339)]instanceof Y&&(this['_isShouldShowDrawingShapeAdjust']=!0x0);})),this['disposeWithMe'](_0x3cc692[_0x47aee8(0x27e)][_0x47aee8(0x3a6)](()=>{const _0x332c0a=_0x47aee8;this[_0x332c0a(0x3b9)]&&this['_clearShapeAdjustControls']();})),this[_0x47aee8(0x3a3)](_0x227d6b[_0x47aee8(0x238)][_0x47aee8(0x2b3)](()=>{const _0xc87bff=_0x47aee8;this['_isShouldShowDrawingShapeAdjust']&&(this[_0xc87bff(0x3b9)]=!0x1,this[_0xc87bff(0x1df)]());})),this[_0x47aee8(0x3a3)](_0x3cc692[_0x47aee8(0x2fb)]['subscribe'](()=>{const _0x1b0712=_0x47aee8;this[_0x1b0712(0x369)]&&this[_0x1b0712(0x242)]&&this['_activeShapeId']&&(this[_0x1b0712(0x1d4)]=this[_0x1b0712(0x1b8)](this['_unitId'],this[_0x1b0712(0x242)],this['_activeShapeId']),this[_0x1b0712(0x1a7)]());}));}[_0x54916c(0x1bb)](){const _0x3571a7=_0x54916c;this[_0x3571a7(0x3a3)](this[_0x3571a7(0x3b3)][_0x3571a7(0x35e)](_0x2a16ad=>{const _0x2b54b8=_0x3571a7;if(_0x2a16ad['id']!==_0x1ea311['id'])return;let {unitId:_0x40213a,shapeId:_0x5e1467}=_0x2a16ad[_0x2b54b8(0x2e3)];_0x40213a===this['_unitId']&&_0x5e1467===this[_0x2b54b8(0x2df)]&&this[_0x2b54b8(0x1c2)]();})),this[_0x3571a7(0x3a3)](this['_drawingManagerService'][_0x3571a7(0x3b4)][_0x3571a7(0x3a6)](_0x188515=>{const _0xbc5ce4=_0x3571a7;if(_0x188515[_0xbc5ce4(0x192)]===0x1){let _0x43bb7a=_0x188515[0x0],_0x13d895=this[_0xbc5ce4(0x191)]['getDrawingByParam'](_0x43bb7a);if((_0x13d895==null?void 0x0:_0x13d895[_0xbc5ce4(0x349)])===_0x22154c[_0xbc5ce4(0x1c7)]){this[_0xbc5ce4(0x2df)]=_0x43bb7a[_0xbc5ce4(0x20b)],this[_0xbc5ce4(0x369)]=_0x43bb7a[_0xbc5ce4(0x380)],this[_0xbc5ce4(0x242)]=_0x43bb7a['subUnitId'],this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x43bb7a['unitId'],_0x43bb7a[_0xbc5ce4(0x34e)],_0x43bb7a[_0xbc5ce4(0x20b)]),this['_clearShapeAdjustControls'](),this[_0xbc5ce4(0x1df)]();return;}}this[_0xbc5ce4(0x2df)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0xbc5ce4(0x369)]=null,this['_subUnitId']=null,this[_0xbc5ce4(0x3cd)]();})),this[_0x3571a7(0x3a3)](_0x402001(this[_0x3571a7(0x191)][_0x3571a7(0x23a)],this[_0x3571a7(0x191)][_0x3571a7(0x1f6)])['subscribe'](_0x304787=>{const _0x40edcf=_0x3571a7;var _0x29c06a;let _0x2bf8f5=_0x304787['find'](_0x504123=>_0x504123[_0x40edcf(0x20b)]===this['_activeShapeId']&&_0x504123[_0x40edcf(0x380)]===this['_unitId']&&_0x504123['subUnitId']===this[_0x40edcf(0x242)]);_0x2bf8f5&&((_0x29c06a=this[_0x40edcf(0x191)]['getDrawingByParam'](_0x2bf8f5))==null?void 0x0:_0x29c06a[_0x40edcf(0x349)])===_0x22154c[_0x40edcf(0x1c7)]&&this['_updateShapeAdjustControls'](!0x0);})),this['disposeWithMe'](this[_0x3571a7(0x191)]['remove$'][_0x3571a7(0x3a6)](_0x33b187=>{const _0x246266=_0x3571a7;for(let _0x2f270d of _0x33b187)this[_0x246266(0x2df)]===_0x2f270d['drawingId']&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x246266(0x369)]=null,this['_subUnitId']=null,this[_0x246266(0x3cd)]());}));}};function _0x57eb(_0x5d1704,_0x213c47){_0x5d1704=_0x5d1704-0x15e;const _0x2acc1f=_0x2acc();let _0x57ebf3=_0x2acc1f[_0x5d1704];return _0x57ebf3;}Ji=q([K(0x1,_0x26175c),K(0x2,_0x26d7aa(_0x2160d8)),K(0x3,_0x202e33)],Ji);let X=class extends _0x2f986c{constructor(_0x13affd,_0x320b76){const _0x43dd8b=_0x54916c;super(),this[_0x43dd8b(0x341)]=_0x13affd,this[_0x43dd8b(0x2f8)]=_0x320b76,J(this,_0x43dd8b(0x1a5),new _0x25998c(null)),J(this,_0x43dd8b(0x21a),this[_0x43dd8b(0x1a5)][_0x43dd8b(0x18f)]()),J(this,_0x43dd8b(0x1ed),new _0x25998c(!0x1)),J(this,_0x43dd8b(0x190),this['_onSavingEditorData$'][_0x43dd8b(0x18f)]()),J(this,_0x43dd8b(0x193),void 0x0),this['disposeWithMe'](this[_0x43dd8b(0x341)][_0x43dd8b(0x2a8)][_0x43dd8b(0x3a6)](()=>{const _0x282109=_0x43dd8b;let _0x3b0763=this[_0x282109(0x174)]();_0x3b0763!=null&&_0x3b0763['visible']&&!this[_0x282109(0x379)](_0x3b0763)&&this[_0x282109(0x314)](null);}));}['dispose'](){const _0x581271=_0x54916c;this[_0x581271(0x1de)](),this['_editingParams$']['next'](null),this['_editingParams$'][_0x581271(0x1e8)](),this['_onSavingEditorData$'][_0x581271(0x26f)](!0x1),this[_0x581271(0x1ed)]['complete'](),super[_0x581271(0x25f)]();}[_0x54916c(0x314)](_0x215e06){const _0x163b73=_0x54916c;(_0x215e06==null||!_0x215e06[_0x163b73(0x300)]||this['_canEdit'](_0x215e06))&&(this[_0x163b73(0x1de)](),this[_0x163b73(0x1a5)][_0x163b73(0x26f)](_0x215e06),(_0x215e06==null||_0x215e06[_0x163b73(0x300)]&&this[_0x163b73(0x1ed)][_0x163b73(0x203)]())&&this[_0x163b73(0x1ed)][_0x163b73(0x26f)](!0x1));}[_0x54916c(0x29d)](_0x405975){const _0x2f95ac=_0x54916c;this['_onSavingEditorData$'][_0x2f95ac(0x26f)](_0x405975);}[_0x54916c(0x174)](){return this['_editingParams$']['getValue']();}['_canEdit'](_0x5206bf){const _0x31fddf=_0x54916c;let _0x2ee4e1=this[_0x31fddf(0x2f8)][_0x31fddf(0x3a0)](_0x5206bf[_0x31fddf(0x380)],_0x4171be[_0x31fddf(0x1bc)]);if(!_0x2ee4e1)return!0x0;let _0x2ebd01=_0x4111cb(_0x2ee4e1,_0x5206bf[_0x31fddf(0x3a5)]);return _0x2dda1f(this['_permissionService'],_0x5206bf['unitId'],[..._0x5afa9b(_0x2ee4e1,_0x2ebd01,_0x31fddf(0x2cb),_0x5206bf[_0x31fddf(0x3a5)]),_0x1d967a(_0x2ebd01,_0x31fddf(0x2cb),_0x5206bf[_0x31fddf(0x3a5)])]);}[_0x54916c(0x1d8)](_0x34f4a6){const _0x2bd9a7=_0x54916c;let _0x168f78=this[_0x2bd9a7(0x174)]();_0x168f78&&this['_completionFrame']===void 0x0&&(this[_0x2bd9a7(0x29d)](!0x0),this[_0x2bd9a7(0x193)]=requestAnimationFrame(()=>{const _0x2df08f=_0x2bd9a7;this[_0x2df08f(0x193)]=void 0x0,this[_0x2df08f(0x174)]()===_0x168f78&&this['setEditing'](null);}));}[_0x54916c(0x1de)](){const _0x217ddd=_0x54916c;this[_0x217ddd(0x193)]!==void 0x0&&(cancelAnimationFrame(this[_0x217ddd(0x193)]),this['_completionFrame']=void 0x0);}[_0x54916c(0x2c5)](){const _0x3e8c03=_0x54916c;this['getEditing']()&&this[_0x3e8c03(0x314)](null);}};X=q([K(0x0,_0x1efc80),K(0x1,_0x12a7ac)],X);function Yi(_0x5a97ea){const _0x3c24a0=_0x54916c;return _0x5a97ea[_0x3c24a0(0x34c)]===!0x0||_0x5a97ea[_0x3c24a0(0x34c)]===_0x5aa2e0[_0x3c24a0(0x334)]||_0x5a97ea[_0x3c24a0(0x15f)]===_0x3b3be3[_0x3c24a0(0x24a)]&&_0x5a97ea['behindDoc']===_0x5aa2e0[_0x3c24a0(0x334)]?_0x208c19-0x1:_0x2028f9;}let Z=class extends _0x2f986c{constructor(_0x55f338,_0x36e5b3,_0x3aba08,_0x38c8eb,_0x50ad1b,_0x1923cc,_0x4fe20f){const _0x435469=_0x54916c;super(),this[_0x435469(0x191)]=_0x55f338,this['_docsShapeService']=_0x36e5b3,this[_0x435469(0x2b5)]=_0x3aba08,this[_0x435469(0x3c6)]=_0x38c8eb,this[_0x435469(0x29e)]=_0x50ad1b,this[_0x435469(0x2d4)]=_0x1923cc,this[_0x435469(0x2e8)]=_0x4fe20f,J(this,'_formulaShapes',new Map()),this['disposeWithMe'](this['_shapeFormulaService']['presentationChanged$'][_0x435469(0x3a6)](_0x570f13=>{const _0x1c55d7=_0x435469;var _0x9c95fe;(_0x9c95fe=this[_0x1c55d7(0x3ad)][_0x1c55d7(0x273)](this[_0x1c55d7(0x1bd)](_0x570f13['unitId'],_0x570f13['subUnitId'],_0x570f13[_0x1c55d7(0x3a5)])))==null||_0x9c95fe['forEach'](_0x36db49=>_0x36db49['setFormulaPresentation'](_0x570f13[_0x1c55d7(0x19d)],_0x570f13[_0x1c55d7(0x20a)]));})),this[_0x435469(0x3a3)](this[_0x435469(0x191)][_0x435469(0x298)]['subscribe'](_0x1937d3=>{const _0x58937e=_0x435469;_0x1937d3[_0x58937e(0x284)](_0x2a355c=>{const _0x421555=_0x58937e;this[_0x421555(0x2e8)][_0x421555(0x305)]({'unitId':_0x2a355c[_0x421555(0x380)],'subUnitId':_0x2a355c[_0x421555(0x34e)],'shapeId':_0x2a355c['drawingId']}),this[_0x421555(0x3ad)][_0x421555(0x1fa)](this[_0x421555(0x1bd)](_0x2a355c[_0x421555(0x380)],_0x2a355c[_0x421555(0x34e)],_0x2a355c[_0x421555(0x20b)]));});}));}[_0x54916c(0x180)](_0x574273,_0x34365c){const _0x57c090=_0x54916c;let {transform:_0x16a7b6,drawingType:_0x1fa1fe,srcRect:_0x10f594,prstGeom:_0x101706,groupId:_0x4944da,unitId:_0x59ac20,subUnitId:_0x24312e,drawingId:_0x1dda8e,isMultiTransform:_0x12167d,transforms:_0x407cfd,hidden:_0x19185f,selectable:_0x3b62f9}=_0x574273;if(_0x1fa1fe!==_0x22154c[_0x57c090(0x1c7)]||!this[_0x57c090(0x191)][_0x57c090(0x2d3)]()||_0x16a7b6==null)return;let _0x13a6c7=this[_0x57c090(0x191)][_0x57c090(0x302)](),_0x4dceb9=_0x12167d&&_0x407cfd?_0x407cfd:[_0x16a7b6],_0x25631d=[];for(let [_0x5074c0,_0x334730]of _0x4dceb9['entries']()){let {left:_0x2e4321,top:_0x515dba,width:_0x3cf1f8,height:_0x538aa3,angle:_0x461680,flipX:_0x393239,flipY:_0x2cae77,skewX:_0x5fa4d,skewY:_0x1cbedd}=_0x334730,_0x26d0df=_0x4c8b57({'unitId':_0x59ac20,'subUnitId':_0x24312e,'drawingId':_0x1dda8e},_0x12167d?_0x5074c0:void 0x0),_0xcfac89=_0x34365c[_0x57c090(0x17d)](_0x26d0df);if(_0xcfac89!=null){let _0x1614ca={'unitId':_0x59ac20,'subUnitId':_0x24312e,'shapeId':_0x1dda8e};_0xcfac89 instanceof Y&&this['refreshFormulaPresentation'](_0xcfac89,_0x1614ca),_0xcfac89[_0x57c090(0x31a)]({'left':_0x2e4321,'top':_0x515dba,'width':_0x3cf1f8,'height':_0x538aa3,'angle':_0x461680,'flipX':_0x393239,'flipY':_0x2cae77,'skewX':_0x5fa4d,'skewY':_0x1cbedd});continue;}let _0x569d02=this[_0x57c090(0x191)][_0x57c090(0x3bc)](_0x59ac20,_0x24312e),_0x4f84eb=_0x569d02[_0x57c090(0x3c7)](_0x1dda8e);if(_0x34365c['getObjectIncludeInGroup'](_0x26d0df)||!this[_0x57c090(0x191)][_0x57c090(0x2d3)]())continue;let _0x1d3bd6=this['_docsShapeService'][_0x57c090(0x348)](_0x59ac20,_0x24312e,_0x1dda8e);if(!_0x1d3bd6)continue;let _0x1eba86=_0x376792(_0x1d3bd6['getShapeType']())?{..._0x252751,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x252751,_0x8b5c01=_0x1d3bd6[_0x57c090(0x199)]()['formulaBinding'],_0x58389={'unitId':_0x59ac20,'subUnitId':_0x24312e,'shapeId':_0x1dda8e};_0x8b5c01&&this['_shapeFormulaService'][_0x57c090(0x211)](_0x58389,_0x8b5c01);let _0x15d175=new Y(_0x26d0df,{..._0x334730,'zIndex':_0x4f84eb===-0x1?_0x569d02[_0x57c090(0x192)]-0x1:_0x4f84eb,'shapeModel':_0x1d3bd6,'localeService':this[_0x57c090(0x2b5)],'shapeId':_0x1dda8e,'unitId':_0x59ac20,'subUnitId':_0x24312e,'visible':_0x19185f!==!0x0,'evented':_0x3b62f9!==!0x1,'formulaPresentation':_0x8b5c01?this['_shapeFormulaService']['getPresentation'](_0x58389):void 0x0,'animateFormulaPresentation':(_0x8b5c01==null?void 0x0:_0x8b5c01[_0x57c090(0x20a)])!==!0x1,'transformerConfig':_0x1eba86});if(_0x8b5c01){let _0x30cf4e=this['_formulaKey'](_0x59ac20,_0x24312e,_0x1dda8e),_0x1132cc=this[_0x57c090(0x3ad)][_0x57c090(0x273)](_0x30cf4e)??new Set();_0x1132cc[_0x57c090(0x3b1)](_0x15d175),this['_formulaShapes'][_0x57c090(0x27f)](_0x30cf4e,_0x1132cc);}this[_0x57c090(0x3a3)](_0x15884f(_0x15d175[_0x57c090(0x1f4)]['subscribeEvent']((_0x557450,_0x190c16)=>{const _0x115f78=_0x57c090;_0x1d3bd6['isLineShape']()||_0x8b5c01||(this['_shapeTextEditingService'][_0x115f78(0x314)]({'visible':!0x0,'unitId':_0x59ac20,'subUnitId':_0x24312e,'shapeId':_0x1dda8e,'shapeKey':_0x15d175[_0x115f78(0x35c)]}),_0x190c16[_0x115f78(0x2bc)]());}))),_0x34365c['addObject'](_0x15d175,Yi(_0x574273)),_0x13a6c7&&_0x34365c[_0x57c090(0x2b1)](_0x15d175),_0x4944da&&_0x4d0bef({'drawingId':_0x4944da,'unitId':_0x59ac20,'subUnitId':_0x24312e},_0x15d175,_0x34365c,this['_drawingManagerService'],_0x12167d?_0x5074c0:void 0x0),_0x101706!=null&&_0x15d175[_0x57c090(0x19e)](_0x101706),_0x10f594!=null&&_0x15d175[_0x57c090(0x188)](_0x10f594),this['_loadShapePictureFill'](_0x15d175,_0x1d3bd6[_0x57c090(0x199)]()),_0x25631d['push'](_0x15d175);}return _0x25631d;}[_0x54916c(0x1bd)](_0x22e596,_0x53cee4,_0x2e77ef){return _0x22e596+'\x00'+_0x53cee4+'\x00'+_0x2e77ef;}['refreshFormulaPresentation'](_0x1765c7,_0x1bcdfe){const _0x38801f=_0x54916c;let _0x252e9a=this['_docsShapeService'][_0x38801f(0x348)](_0x1bcdfe['unitId'],_0x1bcdfe['subUnitId'],_0x1bcdfe['shapeId']),_0x28ab45=_0x252e9a==null?void 0x0:_0x252e9a[_0x38801f(0x199)]()['formulaBinding'],_0x411cd5=this[_0x38801f(0x1bd)](_0x1bcdfe[_0x38801f(0x380)],_0x1bcdfe['subUnitId'],_0x1bcdfe[_0x38801f(0x3a5)]);if(_0x28ab45){this['_shapeFormulaService']['register'](_0x1bcdfe,_0x28ab45);let _0x3ad426=this[_0x38801f(0x3ad)][_0x38801f(0x273)](_0x411cd5)??new Set();_0x3ad426[_0x38801f(0x3b1)](_0x1765c7),this[_0x38801f(0x3ad)][_0x38801f(0x27f)](_0x411cd5,_0x3ad426);}else{var _0x300a91;this['_shapeFormulaService'][_0x38801f(0x305)](_0x1bcdfe),(_0x300a91=this[_0x38801f(0x3ad)]['get'](_0x411cd5))==null||_0x300a91[_0x38801f(0x1fa)](_0x1765c7);}_0x1765c7[_0x38801f(0x294)](_0x28ab45?this[_0x38801f(0x2e8)][_0x38801f(0x2b4)](_0x1bcdfe):void 0x0,(_0x28ab45==null?void 0x0:_0x28ab45[_0x38801f(0x20a)])!==!0x1);}[_0x54916c(0x318)](_0x2bc4d7){const _0x4c223d=_0x54916c;let _0x1388fd=_0x2bc4d7['shapeModel'][_0x4c223d(0x199)](),_0x981ca9=_0x1388fd[_0x4c223d(0x1ff)];!_0x981ca9||_0x981ca9[_0x4c223d(0x28e)]!==_0xaab9cb[_0x4c223d(0x1d6)]||!_0x981ca9['fillImageSource']?_0x2bc4d7[_0x4c223d(0x278)](void 0x0):this['_loadShapePictureFill'](_0x2bc4d7,_0x1388fd);}[_0x54916c(0x304)](_0x1940df,_0x1fe972){const _0x19d515=_0x54916c;let _0xf3044d=_0x1fe972['fill'];if(!_0xf3044d||_0xf3044d[_0x19d515(0x28e)]!==_0xaab9cb[_0x19d515(0x1d6)]||!_0xf3044d['fillImageSource'])return;let _0x575fc3=_0xf3044d[_0x19d515(0x2a5)],_0x53ec2a=_0xf3044d[_0x19d515(0x22c)]??_0xe32566['URL'],_0x3707a4=this['_imageIoService'][_0x19d515(0x17b)](_0x575fc3,_0x53ec2a);_0x3707a4?_0x1940df['setFillImage'](_0x3707a4):this[_0x19d515(0x394)](_0x1940df,_0x575fc3,_0x53ec2a);}async[_0x54916c(0x394)](_0x28265e,_0x462196,_0x337bf2){const _0x228bd4=_0x54916c;let _0x57458f;try{if(_0x337bf2===_0xe32566['UUID'])_0x57458f=await this['_imageIoService']['getImage'](_0x462196);else{if(_0x337bf2===_0xe32566[_0x228bd4(0x161)])try{_0x57458f=await this[_0x228bd4(0x29e)][_0x228bd4(0x3bd)](_0x462196);}catch{_0x57458f=_0x462196;}else _0x57458f=_0x462196;}}catch(_0x627def){console[_0x228bd4(0x37d)](_0x228bd4(0x267),_0x627def);return;}let _0x4e4bb6=new window[(_0x228bd4(0x3c8))]();_0x4e4bb6[_0x228bd4(0x1fc)]=()=>{const _0xaef906=_0x228bd4;this['_imageIoService'][_0xaef906(0x381)](_0x462196,_0x337bf2,_0x4e4bb6),_0x28265e['setFillImage'](_0x4e4bb6);},_0x4e4bb6[_0x228bd4(0x23b)]=()=>{const _0x101659=_0x228bd4;console[_0x101659(0x37d)](_0x101659(0x1d2),_0x462196);},_0x4e4bb6[_0x228bd4(0x3b5)]=_0x57458f;}};Z=q([K(0x0,_0x26175c),K(0x1,_0x26d7aa(_0x2160d8)),K(0x2,_0x26d7aa(_0x5c011e)),K(0x3,_0xb32c3c),K(0x4,_0x46c459),K(0x5,_0x26d7aa(X)),K(0x6,_0x26d7aa(_0x4ddace))],Z);let Xi=class extends _0x2f986c{constructor(_0x2ed66d,_0xcdbc20,_0x4f5641){const _0x22b88e=_0x54916c;super(),this[_0x22b88e(0x1f8)]=_0x2ed66d,this['_drawingManagerService']=_0xcdbc20,this[_0x22b88e(0x30e)]=_0x4f5641,this[_0x22b88e(0x281)]();}[_0x54916c(0x281)](){const _0x39d760=_0x54916c;this[_0x39d760(0x3a3)](this[_0x39d760(0x1f8)][_0x39d760(0x182)][_0x39d760(0x296)](this['_docPrintInterceptorService']['interceptor'][_0x39d760(0x332)]()[_0x39d760(0x2c6)],{'handler':(_0x4dc3db,_0x488075,_0x299a6a)=>{const _0x582d6c=_0x39d760;var _0x5f1fe8;let {unitId:_0x511ef5,scene:_0x21f3b3,skeleton:_0x4ee643}=_0x488075,{pageIndex:_0x3eace3}=_0x488075,_0x1d80be=(_0x5f1fe8=this[_0x582d6c(0x191)][_0x582d6c(0x2d2)](_0x511ef5))==null?void 0x0:_0x5f1fe8[_0x511ef5],_0x530c21=Zi(this[_0x582d6c(0x1f8)],_0x4ee643,_0x3eace3);return _0x1d80be==null||_0x1d80be[_0x582d6c(0x2d0)][_0x582d6c(0x284)](_0x3d35d7=>{const _0x1ef3b4=_0x582d6c;if(_0x530c21&&!_0x530c21[_0x1ef3b4(0x321)](_0x3d35d7))return;let _0x4bb759=_0x1d80be[_0x1ef3b4(0x21d)][_0x3d35d7];_0x4bb759['drawingType']===_0x22154c[_0x1ef3b4(0x1c7)]&&!_0x4bb759['hidden']&&this[_0x1ef3b4(0x30e)][_0x1ef3b4(0x180)](_0x4bb759,_0x21f3b3);}),_0x299a6a(_0x4dc3db);}}));}};Xi=q([K(0x0,_0x26d7aa(_0x37b476)),K(0x1,_0x26175c),K(0x2,_0x26d7aa(Z))],Xi);function Zi(_0x3fdc61,_0x355801,_0x2b0c38){const _0x132d6e=_0x54916c;var _0x24b64e,_0x3971b3;let _0x598c24=_0x3fdc61;if(_0x598c24[_0x132d6e(0x324)])return _0x598c24[_0x132d6e(0x324)](_0x355801,_0x2b0c38);let _0x5a0311=_0x355801[_0x132d6e(0x35a)]();if(!_0x5a0311||_0x5a0311['pages'][_0x132d6e(0x192)]<=0x1||_0x2b0c38==null)return null;let _0x4721ca=new Set(),_0x276d3d=_0x5a0311['pages'][_0x2b0c38];if(!_0x276d3d)return _0x4721ca;Qi(_0x276d3d,_0x4721ca);let _0x52dec2=(_0x24b64e=_0x5a0311[_0x132d6e(0x373)]['get'](_0x276d3d[_0x132d6e(0x322)]))==null?void 0x0:_0x24b64e[_0x132d6e(0x273)](_0x276d3d['headerLayoutKey']??_0x276d3d['pageWidth']),_0x2e5ba5=(_0x3971b3=_0x5a0311['skeFooters'][_0x132d6e(0x273)](_0x276d3d[_0x132d6e(0x26b)]))==null?void 0x0:_0x3971b3[_0x132d6e(0x273)](_0x276d3d[_0x132d6e(0x187)]??_0x276d3d[_0x132d6e(0x2b0)]);return _0x52dec2&&Qi(_0x52dec2,_0x4721ca),_0x2e5ba5&&Qi(_0x2e5ba5,_0x4721ca),_0x4721ca;}function Qi(_0x3c6638,_0x1d7731){const _0x16962e=_0x54916c;for(let _0x605419 of _0x3c6638[_0x16962e(0x1ac)][_0x16962e(0x336)]())_0x1d7731[_0x16962e(0x3b1)](_0x605419);for(let _0x541307 of _0x3c6638[_0x16962e(0x2b9)][_0x16962e(0x213)]())for(let _0x2c506a of _0x541307[_0x16962e(0x2ed)])for(let _0x341fc8 of _0x2c506a[_0x16962e(0x280)])Qi(_0x341fc8,_0x1d7731);}function $i(_0x5e2d0a){return _0x43c133(Ur,{..._0x5e2d0a,'PickerComponent':_0x2f427f});}function ea(){const _0x37f5dd=_0x54916c;let _0x12e48c=_0x3e2052(_0x5c011e),_0x8cbf1d=Br(),[_0x46fe44,_0x269678]=_0x59b14e(!0x1);return _0x1e2b7a(_0x37f5dd(0x36b),{'className':_0x37f5dd(0x25a),'children':[_0x43c133(_0x6c63ed,{'title':_0x12e48c['t'](_0x37f5dd(0x290)),'aria-expanded':_0x46fe44,'variant':_0x37f5dd(0x27d),'trailing':_0x43c133(_0x46fe44?_0x228c8a:_0x227373,{}),'onClick':()=>_0x269678(_0x5157de=>!_0x5157de)}),_0x46fe44&&_0x43c133(_0x2f427f,{'excludeGroups':[_0x38fa0f['Line']],'onShapeClick':_0x2f0e7a=>{_0x8cbf1d(_0x2f0e7a),_0x269678(!0x1);}})]});}function ta(_0x517709){const _0x521eb3=_0x54916c;return _0x517709[_0x521eb3(0x16f)]()||void 0x0;}function na(_0x479f0b,_0x2c45ee,_0x4fa0bd){const _0x1e58ca=_0x54916c;var _0x5cc843,_0x2d6de2;return((_0x5cc843=_0x479f0b['name'])==null?void 0x0:_0x5cc843['trim']())||((_0x2d6de2=_0x479f0b['title'])==null?void 0x0:_0x2d6de2[_0x1e58ca(0x16f)]())||_0x4fa0bd['t']('drawing-ui.objectListPanel.typeNames.'+_0x2465a4(_0x479f0b['drawingType']))+'\x20'+(_0x2c45ee+0x1);}function ra({PanelComponent:_0x3d6798=_0x16aea2}){const _0x522c29=_0x54916c;let _0xbf315=_0x3e2052(_0x5c011e),_0x2ac520={'title':_0xbf315['t'](_0x522c29(0x1b3)),'empty':_0xbf315['t'](_0x522c29(0x32f)),'showAll':_0xbf315['t'](_0x522c29(0x1f1)),'hideAll':_0xbf315['t'](_0x522c29(0x2a4)),'lockAll':_0xbf315['t'](_0x522c29(0x226)),'unlockAll':_0xbf315['t']('drawing-ui.objectListPanel.unlockAll'),'moveForward':_0xbf315['t'](_0x522c29(0x331)),'moveBackward':_0xbf315['t'](_0x522c29(0x32b)),'close':_0xbf315['t'](_0x522c29(0x1c0)),'show':_0xbf315['t'](_0x522c29(0x210)),'hide':_0xbf315['t'](_0x522c29(0x378)),'lock':_0xbf315['t'](_0x522c29(0x252)),'unlock':_0xbf315['t'](_0x522c29(0x17e)),'lockHint':_0xbf315['t'](_0x522c29(0x355)),'unlockHint':_0xbf315['t'](_0x522c29(0x2d1)),'name':_0xbf315['t'](_0x522c29(0x366)),'nameInput':_0xbf315['t']('drawing-ui.objectListPanel.nameInput'),'description':_0xbf315['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0xbf315['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0xbf315['t'](_0x522c29(0x361)),'noSelection':_0xbf315['t'](_0x522c29(0x384)),'locate':_0xbf315['t'](_0x522c29(0x2fa)),'expand':_0xbf315['t'](_0x522c29(0x2fd)),'collapse':_0xbf315['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0xbf315['t'](_0x522c29(0x28c)),'search':_0xbf315['t'](_0x522c29(0x17a)),'filterAll':_0xbf315['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0xbf315['t'](_0x522c29(0x1d9)),'filterLocked':_0xbf315['t'](_0x522c29(0x167)),'sectionCanvas':_0xbf315['t'](_0x522c29(0x169)),'sectionFloating':_0xbf315['t'](_0x522c29(0x231))},_0x495cca=_0x3e2052(_0x202e33),_0x50352f=_0x3e2052(_0x12a7ac),_0x464f93=_0x3e2052(_0x124b5c),_0x4c5e78=_0x3e2052(_0x26175c),_0x9fcb6c=_0x3e2052(_0x3c7e10),[,_0x36ea83]=_0x58a9a5(_0xa6dfce=>_0xa6dfce+0x1,0x0),_0x3e5045=_0x50352f[_0x522c29(0x3b0)](_0x4171be[_0x522c29(0x1bc)]),_0x3e7e3a=(_0x3e5045==null?void 0x0:_0x3e5045['getUnitId']())??'',_0x37af37=_0x3e7e3a,_0xac3142=_0x23881d(()=>_0x4c5e78[_0x522c29(0x3b4)],_0x4c5e78['getFocusDrawings'](),!0x1,[_0x4c5e78]);_0x162762(()=>{const _0x30b9d2=_0x522c29;let _0x28d17d=_0x495cca[_0x30b9d2(0x35e)](()=>_0x36ea83());return()=>_0x28d17d[_0x30b9d2(0x25f)]();},[_0x495cca]);let _0x175dd7=_0x3e7e3a?_0x464f93[_0x522c29(0x26a)](_0x3e7e3a,_0x37af37):{},_0x6ae8f9=(_0x3e7e3a?_0x464f93[_0x522c29(0x3bc)](_0x3e7e3a,_0x37af37):[])[_0x522c29(0x1a0)](_0x2afa97=>_0x175dd7[_0x2afa97])[_0x522c29(0x1dc)](_0x5b58bd=>!!_0x5b58bd)[_0x522c29(0x1b0)](),_0xed9177=_0x6ae8f9[_0x522c29(0x2ac)]((_0x3655da,_0x3e84d0)=>(_0x3655da[_0x3eb1dc(_0x3e84d0[_0x522c29(0x349)])]+=0x1,_0x3655da),{'canvas':0x0,'floating':0x0}),_0x5db00a={'canvas':0x0,'floating':0x0},_0x20fb03=_0x6ae8f9[_0x522c29(0x1a0)]((_0x573750,_0x2aa8cb)=>{const _0x1052b5=_0x522c29;let _0x5b8ab3=_0x3eb1dc(_0x573750[_0x1052b5(0x349)]),_0x48175d=_0x5b8ab3===_0x4b3f5f,_0x101c48=_0x5db00a[_0x5b8ab3]++;return{'id':_0x573750[_0x1052b5(0x20b)],'name':na(_0x573750,_0x2aa8cb,_0xbf315),'description':_0x573750[_0x1052b5(0x1ec)],'visible':_0x573750[_0x1052b5(0x227)]!==!0x0,'selectable':_0x573750['selectable']!==!0x1,'sectionId':_0x5b8ab3,'sectionTitle':_0x48175d?_0x2ac520[_0x1052b5(0x1a2)]:_0x2ac520[_0x1052b5(0x235)],'capabilities':_0x48175d?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x48175d&&_0x101c48>0x0,'canMoveBackward':!_0x48175d&&_0x101c48<_0xed9177[_0x1052b5(0x18e)]-0x1,'canReorder':!_0x48175d};}),_0x5a4588=_0xad29a1(()=>(_0xac3142??[])[_0x522c29(0x1dc)](_0x75045c=>_0x75045c[_0x522c29(0x380)]===_0x3e7e3a&&_0x75045c[_0x522c29(0x34e)]===_0x37af37)[_0x522c29(0x1a0)](_0x2f417a=>_0x2f417a[_0x522c29(0x20b)]),[_0xac3142,_0x37af37,_0x3e7e3a]),_0x3c966b=_0x5a4588[_0x5a4588[_0x522c29(0x192)]-0x1]??null,_0x1f631e=_0x3463ff=>_0x464f93[_0x522c29(0x33e)]({'unitId':_0x3e7e3a,'subUnitId':_0x37af37,'drawingId':_0x3463ff})??null,_0x502e70=async _0x51a162=>{const _0x26a2cf=_0x522c29;_0x3e7e3a&&_0x51a162[_0x26a2cf(0x192)]&&await _0x495cca['executeCommand'](_0xc38c1c['id'],{'unitId':_0x3e7e3a,'patches':_0x51a162});},_0x5cbdf9=(_0x284c28,_0x4667d0)=>{const _0x176cde=_0x522c29;if(!_0x3e7e3a)return;let _0x3fdc14=_0x4667d0?_0x5a4588[_0x176cde(0x39b)](_0x284c28)?_0x5a4588[_0x176cde(0x1dc)](_0x5d6bf1=>_0x5d6bf1!==_0x284c28):[..._0x5a4588,_0x284c28]:[_0x284c28];_0x495cca['syncExecuteCommand'](_0x59affe['id'],_0x3fdc14['map'](_0x4b7b17=>({'unitId':_0x3e7e3a,'subUnitId':_0x37af37,'drawingId':_0x4b7b17})));let _0x2b8a1c=_0x3fdc14[_0x3fdc14['length']-0x1];_0x2b8a1c?_0xb011bc(_0x9fcb6c,{'unitId':_0x3e7e3a,'subUnitId':_0x37af37,'drawingId':_0x2b8a1c}):_0x4283f5(_0x9fcb6c,_0x3e7e3a);},_0x5896cd=async(_0x4c6fbe,_0x47d7e7)=>{const _0x53f7c8=_0x522c29;await _0x502e70(_0x4c6fbe[_0x53f7c8(0x1a0)](_0x1b4964=>_0x1f631e(_0x1b4964))[_0x53f7c8(0x1dc)](_0x394578=>!!_0x394578)[_0x53f7c8(0x1dc)](_0x7d86ca=>_0x7d86ca[_0x53f7c8(0x227)]!==!0x0!==_0x47d7e7)['map'](_0x4d42bc=>({'drawingId':_0x4d42bc[_0x53f7c8(0x20b)],'hidden':!_0x47d7e7})));},_0x3bbc9e=async(_0x196f47,_0x492aa4)=>{const _0x4b41af=_0x522c29;await _0x502e70(_0x196f47[_0x4b41af(0x1a0)](_0x178bb5=>_0x1f631e(_0x178bb5))[_0x4b41af(0x1dc)](_0x322d76=>!!_0x322d76)['filter'](_0x1cae50=>_0x1cae50[_0x4b41af(0x347)]!==!0x1!==_0x492aa4)[_0x4b41af(0x1a0)](_0x471772=>({'drawingId':_0x471772[_0x4b41af(0x20b)],'selectable':_0x492aa4})));},_0xe1fa61=_0x467eeb=>{const _0x20a787=_0x522c29;let _0x4eae45=_0x1f631e(_0x467eeb);if(_0x4eae45)return _0x3bbc9e([_0x467eeb],_0x4eae45[_0x20a787(0x347)]===!0x1);},_0x2a0e34=async(_0x26aec3,_0x250fb3)=>{let _0x592dd4=_0x1f631e(_0x26aec3),_0xaeebe0=ta(_0x250fb3);!_0x592dd4||(_0x592dd4['name']??void 0x0)===_0xaeebe0&&(_0x592dd4['title']||void 0x0)===_0xaeebe0||await _0x502e70([{'drawingId':_0x26aec3,'name':_0xaeebe0,'title':_0xaeebe0}]);},_0x5eeda2=async(_0x429300,_0x353b7e)=>{const _0xb52b6e=_0x522c29;let _0xa24c65=_0x1f631e(_0x429300),_0x5b1ddd=ta(_0x353b7e);_0xa24c65&&(_0xa24c65[_0xb52b6e(0x1ec)]??void 0x0)!==_0x5b1ddd&&await _0x502e70([{'drawingId':_0x429300,'description':_0x5b1ddd}]);},_0x4cf03e=async(_0x4032c7,_0x223337)=>{const _0x475be0=_0x522c29;_0x3e7e3a&&await _0x495cca[_0x475be0(0x164)](_0x5ba230['id'],{'unitId':_0x3e7e3a,'subUnitId':_0x37af37,'drawingIds':[_0x4032c7],'arrangeType':_0x223337});};return _0x3e7e3a?_0x43c133(_0x3d6798,{'labels':_0x2ac520,'renderPermissionAction':_0x58d9b8=>_0x3e5045?_0x43c133(_0x2464f5,{'target':{'unitId':_0x3e7e3a,'objectId':_0x1d967a(_0x4111cb(_0x3e5045,_0x58d9b8['id']),_0x522c29(0x2cb),_0x58d9b8['id']),'objectType':_0x24aa21[_0x522c29(0x1c9)]},'name':_0x58d9b8[_0x522c29(0x3c0)],'commandId':_0xb4c725['id'],'exists':()=>!!_0x1f631e(_0x58d9b8['id'])},_0x3e7e3a+'/'+_0x58d9b8['id']):null,'items':_0x20fb03,'selectedIds':_0x5a4588,'focusedId':_0x3c966b,'showHeader':!0x1,'onSelect':_0x5cbdf9,'onSetVisible':_0x5896cd,'onSetSelectable':_0x3bbc9e,'onCommitName':_0x2a0e34,'onCommitDescription':_0x5eeda2,'onMoveForward':async _0xaf512e=>_0x4cf03e(_0xaf512e,_0x5547f7['forward']),'onMoveBackward':async _0x3bd95b=>_0x4cf03e(_0x3bd95b,_0x5547f7[_0x522c29(0x36a)]),'onToggleSelectable':_0xe1fa61}):_0x43c133('div',{'className':_0x522c29(0x30c),'children':_0x2ac520[_0x522c29(0x30f)]});}function ia(){return _0x43c133(ra,{'PanelComponent':_0x171a97});}let aa=class{constructor(_0x11d165){const _0x48e315=_0x54916c;this[_0x48e315(0x268)]=_0x11d165;}[_0x54916c(0x2dd)](_0x43b087,_0x5c728f){const _0x5ec51c=_0x54916c;let _0x261260=this[_0x5ec51c(0x268)][_0x5ec51c(0x352)](_0x43b087[_0x5ec51c(0x380)]),_0x3ce641=_0x261260==null?void 0x0:_0x261260[_0x5ec51c(0x34a)];if(!_0x3ce641)return;let _0x270a43=_0x4c8b57(_0x43b087),_0xe9d07b=_0x3ce641['getObjectIncludeInGroup'](_0x270a43);_0xe9d07b==null||_0xe9d07b[_0x5ec51c(0x278)](_0x5c728f);}};aa=q([K(0x0,_0x3c7e10)],aa);function oa(){const _0x588811=_0x54916c;let _0x1bf003=_0x3e2052(_0x26175c),_0x1566da=_0x23881d(()=>_0x1bf003[_0x588811(0x3b4)],_0x1bf003['getFocusDrawings'](),!0x1,[_0x1bf003]);return _0x1566da[_0x588811(0x192)]===0x0?null:_0x43c133(_0x588811(0x36b),{'children':_0x1e2b7a(_0x588811(0x36b),{'className':_0x588811(0x24e),'children':[_0x43c133(_0xfa07fb,{'drawings':_0x1566da,'hasCropper':!0x1}),_0x43c133(_0x218279,{'drawings':_0x1566da}),_0x43c133(_0x5bc29f,{'drawings':_0x1566da})]})});}function sa(_0x49a9cd){let {unitId:_0x119c25,subUnitId:_0x1960b2,shapeId:_0xad44dc,PositionComponent:_0x347bad=oa}=_0x49a9cd,_0x52eaec=_0x3e2052(_0x202e33),_0x3015fa=_0x3e2052(aa);return _0x43c133(_0x3bec2c,{..._0x49a9cd,'positionEditor':_0x43c133(_0x347bad,{}),'onUpdateShapeData':(_0x4e679c,_0x3e5f8e)=>{Yr(_0x52eaec,_0x119c25,_0x1960b2,_0xad44dc,_0x4e679c,_0x3e5f8e);},'onUpdateLineShapeData':(_0x2b8de7,_0x437f55)=>{Xr(_0x52eaec,_0x119c25,_0x1960b2,_0xad44dc,_0x2b8de7,_0x437f55);},'onUpdateShapeFillImage':_0x5d1f79=>{_0x3015fa['updateShapeFillImage']({'unitId':_0x119c25,'subUnitId':_0x1960b2,'drawingId':_0xad44dc},_0x5d1f79);}});}function ca(){const _0xdb3889=_0x54916c;let _0x25177c=_0x3e2052(_0x26175c),_0x495f1f=_0x23881d(_0x25177c[_0xdb3889(0x3b4)],_0x25177c[_0xdb3889(0x1b2)]());return _0x495f1f[_0xdb3889(0x192)]===0x0?null:_0x1e2b7a(_0xdb3889(0x36b),{'className':'univer-grid\x20univer-gap-5\x20univer-p-3','children':[_0x43c133(_0xfa07fb,{'drawings':_0x495f1f,'hasCropper':!0x1}),_0x43c133(_0x49b44d,{'drawings':_0x495f1f}),_0x43c133(_0x13ebf1,{'drawings':_0x495f1f})]});}function la(_0x439aa8){return _0x43c133(_0x5b55f5,{'children':_0x43c133(sa,{..._0x439aa8,'PositionComponent':ca})});}function ua({popup:_0x3197fe}){const _0x2cb54d=_0x54916c;let _0x4c80f2=_0x3e2052(_0x5c011e),{shapeType:_0x1ed586,onText:_0x14d7d2,onStyle:_0x479058,onDelete:_0xa11334}=_0x3197fe[_0x2cb54d(0x2bf)],_0x3e6f15=[{'key':_0x2cb54d(0x319),'order':0x0,'item':{'id':_0x2cb54d(0x319),'type':_0x4bb24c['BUTTON'],'title':_0x4c80f2['t'](_0x2cb54d(0x354)),'disabled$':_0x598810(_0x376792(_0x1ed586))}},{'key':_0x2cb54d(0x260),'order':0x1,'item':{'id':_0x2cb54d(0x260),'type':_0x4bb24c[_0x2cb54d(0x264)],'title':_0x4c80f2['t'](_0x2cb54d(0x2fc))}},{'key':_0x2cb54d(0x1fa),'order':0x2,'item':{'id':_0x2cb54d(0x1fa),'type':_0x4bb24c['BUTTON'],'title':_0x4c80f2['t'](_0x2cb54d(0x24f))}}];return _0x43c133(_0x43b5cf,{'schemas':_0x3e6f15,'presentation':'context-bar','onOptionSelect':async({id:_0x234795})=>{const _0x98943e=_0x2cb54d;_0x234795===_0x98943e(0x319)?await _0x14d7d2():_0x234795===_0x98943e(0x260)?await _0x479058():_0x234795===_0x98943e(0x1fa)&&await _0xa11334();}});}const da=_0x54916c(0x1b6);function fa(_0x4b5252,_0x4a0bbb){const _0x56bb84=_0x54916c;var _0x16e658;let _0xcf165a=_0x4b5252==null||(_0x16e658=_0x4b5252[_0x56bb84(0x330)]()[_0x56bb84(0x1cf)])==null?void 0x0:_0x16e658[_0x4a0bbb];return _0xcf165a?_0xcf165a['layoutType']===_0x3b3be3['WRAP_NONE']?_0xcf165a[_0x56bb84(0x198)]===_0x5aa2e0['TRUE']?_0x2d5ca9[_0x56bb84(0x350)]:_0x2d5ca9['IN_FRONT_OF_TEXT']:_0xcf165a[_0x56bb84(0x15f)]===_0x3b3be3[_0x56bb84(0x165)]?_0x2d5ca9[_0x56bb84(0x165)]:_0xcf165a['layoutType']===_0x3b3be3['WRAP_TOP_AND_BOTTOM']?_0x2d5ca9[_0x56bb84(0x1e2)]:_0x2d5ca9[_0x56bb84(0x297)]:_0x2d5ca9[_0x56bb84(0x297)];}function pa(_0x7a0fc3){const _0x186ebd=_0x54916c;let _0x1de32f=_0x3e2052(_0x48226b),_0x3202df=_0x23881d(()=>_0x1de32f[_0x186ebd(0x328)],_0x1de32f['getVisible'](),!0x1,[_0x1de32f]),_0x2cbbe3=_0x7a0fc3[_0x186ebd(0x35b)][_0x186ebd(0x2bf)];return _0x3202df?_0x43c133(ma,{..._0x2cbbe3,'canvasElement':_0x7a0fc3[_0x186ebd(0x35b)][_0x186ebd(0x209)]}):null;}function ma(_0x4f2d50){const _0x19e702=_0x54916c;let _0x2c2bcf=_0x3e2052(_0x202e33),_0x4376d5=_0x3e2052(_0x5c011e),_0xb936fc=_0x3e2052(_0x2160d8),_0x3ec624=_0x3e2052(_0x12a7ac),{unitId:_0x3466ab,subUnitId:_0x394f4f,drawingId:_0xf9f1b5,shapeType:_0x2e0704}=_0x4f2d50,[_0xe1c3c2,_0x4e5410]=_0x59b14e(_0x4f2d50[_0x19e702(0x2c0)]),_0x2ab31e=_0x3ec624['getUnit'](_0x3466ab,_0x4171be[_0x19e702(0x1bc)])??void 0x0,[_0x2a0131,_0x1f8739]=_0x59b14e(()=>fa(_0x2ab31e,_0xf9f1b5)),_0x1632cd=_0xad29a1(()=>_0x2d35d1(_0xe1c3c2),[_0xe1c3c2]),_0x517e5f=_0xad29a1(()=>_0x2017c9(_0xe1c3c2),[_0xe1c3c2]);_0x162762(()=>{let _0x22b494=_0x2c2bcf['onCommandExecuted'](_0x41a919=>{const _0x3fcc0c=_0x57eb;if(_0x41a919['id']!==_0x1ea311['id'])return;let _0x17172e=_0xb936fc[_0x3fcc0c(0x2ee)](_0x3466ab,_0x394f4f,_0xf9f1b5);_0x17172e&&_0x4e5410(_0x17172e);});return()=>_0x22b494['dispose']();},[_0x2c2bcf,_0xb936fc,_0xf9f1b5,_0x394f4f,_0x3466ab]);let _0x187f8a=_0x5c7888=>{_0x4e5410(_0x11e9b7=>({..._0x11e9b7,..._0x5c7888}));},_0x54318c=_0x18611f=>{const _0x3587c3=_0x19e702;let _0xda6c3e=_0x1e2016(_0xe1c3c2,_0x18611f);Yr(_0x2c2bcf,_0x3466ab,_0x394f4f,_0xf9f1b5,{'oldShapeData':{'shapeText':_0xe1c3c2[_0x3587c3(0x3a8)]}},_0xda6c3e),_0x187f8a(_0xda6c3e);},_0x462925=_0x584249=>{const _0x3ae8ef=_0x19e702;_0x1f8739(_0x584249),_0x2c2bcf[_0x3ae8ef(0x164)](_0x2b7a79['id'],{'unitId':_0x3466ab,'subUnitId':_0x394f4f,'drawings':[{'unitId':_0x3466ab,'subUnitId':_0x394f4f,'drawingId':_0xf9f1b5}],'wrappingStyle':_0x584249});},_0x4dc8a6=_0x11f231({'hostType':_0x4171be[_0x19e702(0x1bc)],'unitId':_0x3466ab,'subUnitId':_0x394f4f,'shapeId':_0xf9f1b5,'shapeData':_0xe1c3c2,'onUpdateBinding':_0x3e165d=>{const _0x12c67c=_0x19e702;let _0x1f4fcb={'formulaBinding':_0x3e165d};Yr(_0x2c2bcf,_0x3466ab,_0x394f4f,_0xf9f1b5,{'oldShapeData':{'formulaBinding':_0xe1c3c2[_0x12c67c(0x200)]}},_0x1f4fcb),_0x187f8a(_0x1f4fcb);}}),_0x244c88=[{'label':_0x4376d5['t'](_0x19e702(0x37b)),'value':_0x2d5ca9['INLINE'],'icon':_0x43c133(_0x5c4dcb,{})},{'label':_0x4376d5['t']('docs-shape-ui.textWrap.square'),'value':_0x2d5ca9[_0x19e702(0x165)],'icon':_0x43c133(_0x5c4dcb,{})},{'label':_0x4376d5['t'](_0x19e702(0x1b9)),'value':_0x2d5ca9[_0x19e702(0x1e2)],'icon':_0x43c133(_0x5c4dcb,{})},{'label':_0x4376d5['t'](_0x19e702(0x39e)),'value':_0x2d5ca9[_0x19e702(0x350)],'icon':_0x43c133(_0x5c4dcb,{})},{'label':_0x4376d5['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x2d5ca9['IN_FRONT_OF_TEXT'],'icon':_0x43c133(_0x5c4dcb,{})}];return _0x1e2b7a(_0x2f373d,{'children':[_0x43c133(_0x426a66,{'canvasElement':_0x4f2d50[_0x19e702(0x209)],'shapeData':_0xe1c3c2,'shapeType':_0x2e0704,'textStyle':{'ff':_0x5938f6[_0x19e702(0x3a8)][_0x19e702(0x35f)],'fs':_0x5938f6[_0x19e702(0x3a8)][_0x19e702(0x2e5)],'cl':{'rgb':_0x5938f6[_0x19e702(0x3a8)]['color']},..._0x1632cd},'textModel':_0x517e5f?{'ha':_0x517e5f['ha']??_0x41ec9a[_0x19e702(0x248)],'va':_0x517e5f['va']??_0x5e99c6['TOP']}:null,'wrappingStyle':_0x2a0131,'wrappingStyleOptions':_0x244c88,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x5938f6[_0x19e702(0x1ff)],'defaultGradientEndColor':_0x5938f6[_0x19e702(0x389)],'defaultStrokeColor':_0x5938f6['stroke'],'extensionGroups':_0x4dc8a6['extensionGroups'],'floatingObjectToolbarPosition':_0x3abe7d[_0x19e702(0x185)],'onUpdateShapeData':(_0x3ce21b,_0x2aa1bf)=>{Yr(_0x2c2bcf,_0x3466ab,_0x394f4f,_0xf9f1b5,_0x3ce21b,_0x2aa1bf),_0x2aa1bf&&_0x187f8a(_0x2aa1bf);},'onUpdateText':_0x54318c,'onUpdateWrappingStyle':_0x3756f4=>_0x462925(_0x3756f4),'onOpenPanel':()=>{const _0x2d16e3=_0x19e702;_0x2c2bcf[_0x2d16e3(0x164)](G['id'],{'unitId':_0x3466ab,'subUnitId':_0x394f4f,'drawingId':_0xf9f1b5});},'onDelete':()=>{const _0x3b2116=_0x19e702;_0x2c2bcf[_0x3b2116(0x164)](_0x175640['id'],{'unitId':_0x3466ab,'drawings':[{'unitId':_0x3466ab,'subUnitId':_0x394f4f,'drawingId':_0xf9f1b5}]});}}),_0x4dc8a6[_0x19e702(0x204)]]});}function ha({variant:_0x516ea0,extend:_0x1aa55b,..._0x265452}){const _0x3ca91f=_0x54916c;let _0x2c940e=_0x43c133(_0x3ca91f(0x285),{'x':'7','y':_0x3ca91f(0x3d5),'width':'6','height':'9','rx':'1','fill':_0x3ca91f(0x2ab),'fillOpacity':_0x3ca91f(0x2d9),'stroke':_0x3ca91f(0x2ab),'strokeWidth':_0x3ca91f(0x2e9)});return _0x1e2b7a(_0x3ca91f(0x38d),{'aria-hidden':'true','fill':_0x3ca91f(0x3d3),'height':'1em','viewBox':'0\x200\x2020\x2020','width':'1em',..._0x265452,'children':[_0x516ea0===_0x3ca91f(0x3c5)&&_0x1e2b7a(_0x2f373d,{'children':[_0x43c133(_0x3ca91f(0x36e),{'d':'M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','stroke':_0x3ca91f(0x2ab),'strokeLinecap':_0x3ca91f(0x289),'strokeWidth':_0x3ca91f(0x2e9)}),_0x43c133(_0x3ca91f(0x285),{'x':'8','y':'7','width':'4','height':'6','rx':_0x3ca91f(0x1ad),'fill':'currentColor','fillOpacity':'0.14','stroke':'currentColor','strokeWidth':_0x3ca91f(0x2e9)})]}),_0x516ea0==='square'&&_0x1e2b7a(_0x2f373d,{'children':[_0x43c133(_0x3ca91f(0x36e),{'d':_0x3ca91f(0x3d6),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':'1.2'}),_0x2c940e]}),_0x516ea0==='top-bottom'&&_0x1e2b7a(_0x2f373d,{'children':[_0x43c133(_0x3ca91f(0x36e),{'d':_0x3ca91f(0x37e),'stroke':_0x3ca91f(0x2ab),'strokeLinecap':_0x3ca91f(0x289),'strokeWidth':_0x3ca91f(0x2e9)}),_0x2c940e]}),_0x516ea0===_0x3ca91f(0x30a)&&_0x1e2b7a(_0x2f373d,{'children':[_0x2c940e,_0x43c133(_0x3ca91f(0x36e),{'d':_0x3ca91f(0x1fe),'stroke':'currentColor','strokeLinecap':_0x3ca91f(0x289),'strokeWidth':'1.2'})]}),_0x516ea0===_0x3ca91f(0x358)&&_0x1e2b7a(_0x2f373d,{'children':[_0x43c133(_0x3ca91f(0x36e),{'d':_0x3ca91f(0x1fe),'stroke':_0x3ca91f(0x2ab),'strokeLinecap':'round','strokeWidth':_0x3ca91f(0x2e9)}),_0x43c133('rect',{'x':'7','y':_0x3ca91f(0x3d5),'width':'6','height':'9','rx':'1','fill':'currentColor'})]})]});}const ga=_0x457211=>_0x4a96cc=>_0x43c133(ha,{..._0x4a96cc,'variant':_0x457211}),_a={'DocsShapeWrapInlineIcon':ga(_0x54916c(0x3c5)),'DocsShapeWrapSquareIcon':ga(_0x54916c(0x258)),'DocsShapeWrapTopBottomIcon':ga('top-bottom'),'DocsShapeWrapBehindTextIcon':ga(_0x54916c(0x30a)),'DocsShapeWrapInFrontOfTextIcon':ga('front')},va=_0x1967b0(()=>{const _0x17fd15=_0x54916c;let _0x53c4ec=_0x3e2052(X),_0x38ea0d=_0x3e2052(_0x2160d8),_0x34d5c3=_0x3e2052(_0x26175c),_0x1d542b=_0x3e2052(_0x202e33),_0x44c324=_0xad29a1(()=>({'getShapeModel':(_0x311564,_0x4342b0,_0x2047af)=>_0x38ea0d[_0x17fd15(0x348)](_0x311564,_0x4342b0,_0x2047af),'getShapeData':(_0x6d6e65,_0x3ce3a2,_0x137344)=>_0x38ea0d[_0x17fd15(0x2ee)](_0x6d6e65,_0x3ce3a2,_0x137344),'getDrawingTransform':(_0x46a5bf,_0x29a14e,_0x15f465)=>{const _0x358fe9=_0x17fd15;let _0x3ccf47=_0x34d5c3['getDrawingByParam']({'unitId':_0x46a5bf,'subUnitId':_0x29a14e,'drawingId':_0x15f465});return _0x3ccf47==null?void 0x0:_0x3ccf47[_0x358fe9(0x31e)];},'updateShapeText':({unitId:_0x2ee6a0,shapeId:_0x127b15,shapeText:_0x4d1acc,oldShapeText:_0x53df1d})=>{const _0x5c9893=_0x17fd15;_0x1d542b[_0x5c9893(0x164)](_0x35b851['id'],{'unitId':_0x2ee6a0,'shapeId':_0x127b15,'shapeData':{'shapeText':_0x4d1acc},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x53df1d}}});},'updateHostSize':({unitId:_0x4e99ed,subUnitId:_0x16016b,shapeId:_0x25f465,width:_0x513ade,height:_0x105a4d})=>{const _0x5799b0=_0x17fd15;_0x1d542b[_0x5799b0(0x164)](_0x448491['id'],{'unitId':_0x4e99ed,'subUnitId':_0x16016b,'drawings':[{'drawingId':_0x25f465,'key':'size','value':{'width':_0x513ade,'height':_0x105a4d}}]});},'allowHostSizeShrink':({unitId:_0x1820b0,subUnitId:_0x35e67f,shapeId:_0x5e53c7})=>_0x33120f(_0x38ea0d[_0x17fd15(0x2ee)](_0x1820b0,_0x35e67f,_0x5e53c7))}),[_0x1d542b,_0x38ea0d,_0x34d5c3]),_0x576000=_0xad29a1(()=>({'viewportKeys':{'main':_0x3ec99c[_0x17fd15(0x367)]}}),[]);return _0x43c133(_0x182b87,{'adapter':_0x44c324,'editingService':_0x53c4ec,'editorUnitId':kr,'positionOptions':_0x576000});});let ya=class extends _0x2f986c{constructor(_0x50b684,_0x337ea0){const _0x49f721=_0x54916c;super(),this[_0x49f721(0x2db)]=_0x50b684,this[_0x49f721(0x375)]=_0x337ea0,this[_0x49f721(0x3b8)](),this[_0x49f721(0x1f3)]();}[_0x54916c(0x3b8)](){const _0x58866f=_0x54916c;this[_0x58866f(0x375)][_0x58866f(0x321)]('ObjectLayersIcon')||this[_0x58866f(0x3a3)](this[_0x58866f(0x375)][_0x58866f(0x211)]({'ObjectLayersIcon':_0x4d7a1f})),this['_iconManager'][_0x58866f(0x321)](_0x58866f(0x3b6))||this[_0x58866f(0x3a3)](this[_0x58866f(0x375)]['register']({'BottomIcon':_0x1d96bc})),this[_0x58866f(0x375)][_0x58866f(0x321)]('MoveDownIcon')||this['disposeWithMe'](this[_0x58866f(0x375)]['register']({'MoveDownIcon':_0x26fb7f})),this['_iconManager'][_0x58866f(0x321)]('MoveUpIcon')||this['disposeWithMe'](this[_0x58866f(0x375)][_0x58866f(0x211)]({'MoveUpIcon':_0x26fa53})),this['_iconManager'][_0x58866f(0x321)]('ShapeFormatSettingIcon')||this[_0x58866f(0x3a3)](this[_0x58866f(0x375)]['register']({'ShapeFormatSettingIcon':_0x54f8f5})),this['_iconManager']['has'](_0x58866f(0x272))||this['disposeWithMe'](this[_0x58866f(0x375)][_0x58866f(0x211)]({'TopmostIcon':_0x432907})),this[_0x58866f(0x3a3)](this[_0x58866f(0x375)][_0x58866f(0x211)](_a));}[_0x54916c(0x1f3)](){const _0x52f01d=_0x54916c;this[_0x52f01d(0x3a3)](this[_0x52f01d(0x2db)][_0x52f01d(0x211)](W,la)),this[_0x52f01d(0x32e)](),this[_0x52f01d(0x343)](),this[_0x52f01d(0x3a3)](this[_0x52f01d(0x2db)]['register'](Qr,ii)),this[_0x52f01d(0x3a3)](this['_componentManager']['register'](Zr,ai)),this['disposeWithMe'](this[_0x52f01d(0x2db)]['register']($r,oi)),this['disposeWithMe'](this[_0x52f01d(0x2db)][_0x52f01d(0x211)](ei,si)),this[_0x52f01d(0x3a3)](this[_0x52f01d(0x2db)]['register'](ti,ci)),this[_0x52f01d(0x3a3)](this['_componentManager']['register'](Ar,_0x238ece)),this['_registerPickers'](),this[_0x52f01d(0x2db)][_0x52f01d(0x196)](_0x34f870)||this['disposeWithMe'](this[_0x52f01d(0x2db)][_0x52f01d(0x211)](_0x34f870,Hr)),this[_0x52f01d(0x3a3)](this[_0x52f01d(0x2db)]['register'](jr,va));}[_0x54916c(0x32e)](){this['disposeWithMe'](this['_componentManager']['register'](Or,ia));}[_0x54916c(0x343)](){const _0x3f88db=_0x54916c;this[_0x3f88db(0x3a3)](this['_componentManager']['register'](da,ua));}[_0x54916c(0x393)](){const _0x22ec1e=_0x54916c;this[_0x22ec1e(0x3a3)](this[_0x22ec1e(0x2db)][_0x22ec1e(0x211)](Lr,$i)),this['disposeWithMe'](this[_0x22ec1e(0x2db)]['register'](Rr,ea));}};ya=q([K(0x0,_0x26d7aa(_0x25897b)),K(0x1,_0x26d7aa(_0x30c9c2))],ya);let ba=class extends _0x2f986c{constructor(_0x44f5cc,_0x2fa4cd,_0x2cd62b,_0x1bfc0d,_0xbd1610,_0xe8bd3a,_0x49e2fb,_0x13e639,_0x5f5de4,_0x2463ce,_0x49980d,_0x3c4a00,_0x1c9ab8){const _0x3eda6d=_0x54916c;super(),this[_0x3eda6d(0x184)]=_0x44f5cc,this['_sidebarService']=_0x2fa4cd,this['_menuManagerService']=_0x2cd62b,this['_docsShapeService']=_0x1bfc0d,this[_0x3eda6d(0x2b5)]=_0xbd1610,this[_0x3eda6d(0x3b3)]=_0xe8bd3a,this[_0x3eda6d(0x191)]=_0x49e2fb,this['_docCanvasPopManagerService']=_0x13e639,this[_0x3eda6d(0x268)]=_0x5f5de4,this['_contextService']=_0x2463ce,this['_shapeTextEditingService']=_0x49980d,this[_0x3eda6d(0x341)]=_0x3c4a00,this[_0x3eda6d(0x37c)]=_0x1c9ab8,J(this,_0x3eda6d(0x3ab),null),J(this,'_activeShapeInfo',null),J(this,'_isOpenedShapeEditPanel',!0x1),J(this,_0x3eda6d(0x374),0x0),J(this,_0x3eda6d(0x247),new Map()),J(this,_0x3eda6d(0x33b),new Map()),this[_0x3eda6d(0x1a8)](),this[_0x3eda6d(0x3a3)](this['_univerInstanceService'][_0x3eda6d(0x27a)](_0x4171be['UNIVER_DOC'])[_0x3eda6d(0x3a6)](_0x52be2d=>{const _0x585ab4=_0x3eda6d;if(!_0x52be2d){var _0x588083;(_0x588083=this[_0x585ab4(0x3ab)])==null||_0x588083[_0x585ab4(0x25f)]();}})),this[_0x3eda6d(0x2b7)](),this[_0x3eda6d(0x3a3)](this['_drawingManagerService']['remove$'][_0x3eda6d(0x3a6)](_0x53a4b1=>{const _0x4b3800=_0x3eda6d;for(let _0x2a1ed1 of _0x53a4b1){let _0x4a629d=_0x2a1ed1[_0x4b3800(0x380)]+':'+_0x2a1ed1[_0x4b3800(0x34e)]+':'+_0x2a1ed1[_0x4b3800(0x20b)];for(let [_0x265044,_0x1eb156]of this[_0x4b3800(0x33b)])_0x1eb156===_0x4a629d&&this[_0x4b3800(0x391)](_0x265044,!0x0);}})),this[_0x3eda6d(0x3a3)](_0x3a81c4(this[_0x3eda6d(0x268)],_0x4171be[_0x3eda6d(0x1bc)],_0x26381d=>this[_0x3eda6d(0x326)](_0x26381d))),this[_0x3eda6d(0x3a3)](this['_shapeTextEditingService'][_0x3eda6d(0x21a)][_0x3eda6d(0x3a6)](_0x1f78cf=>{const _0x503210=_0x3eda6d;_0x1f78cf&&this[_0x503210(0x391)](void 0x0,!0x0);})),this[_0x3eda6d(0x3a3)](this[_0x3eda6d(0x341)]['permissionPointUpdate$'][_0x3eda6d(0x3a6)](()=>{const _0x5caa8a=_0x3eda6d;this[_0x5caa8a(0x191)][_0x5caa8a(0x1b2)]()[_0x5caa8a(0x237)](_0x41235c=>_0x41235c['drawingType']===_0x22154c['DRAWING_SHAPE']&&this[_0x5caa8a(0x184)][_0x5caa8a(0x1ee)](_0x41235c[_0x5caa8a(0x380)])===_0x4171be[_0x5caa8a(0x1bc)]&&!this[_0x5caa8a(0x301)](_0x41235c[_0x5caa8a(0x380)],_0x41235c[_0x5caa8a(0x20b)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x5caa8a(0x351)]());}));}['getShapePopupMenus'](_0x2ab7d1,_0x50a331,_0x1f0b32,_0x2ba6e1){const _0x385e34=_0x54916c;return[{'label':_0x385e34(0x329),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x2ab7d1,'subUnitId':_0x50a331,'drawingId':_0x1f0b32},'disable':_0x2ba6e1===_0x22154c[_0x385e34(0x1e1)]},{'label':_0x385e34(0x277),'index':0x1,'commandId':_0x175640['id'],'commandParams':{'unitId':_0x2ab7d1,'drawings':[{'unitId':_0x2ab7d1,'subUnitId':_0x50a331,'drawingId':_0x1f0b32}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x2ab7d1,'subUnitId':_0x50a331,'drawingId':_0x1f0b32},'disable':!0x1}];}[_0x54916c(0x1a8)](){const _0xab8d77=_0x54916c;this['_menuManagerService'][_0xab8d77(0x1db)](Li);}[_0x54916c(0x25b)](_0x38d89d,_0x1127d6,_0xc41cc8){const _0x3190c4=_0x54916c;let _0x4f4ef8=this[_0x3190c4(0x228)][_0x3190c4(0x219)](_0x38d89d,_0x1127d6,_0xc41cc8),_0x2742bc=this[_0x3190c4(0x228)][_0x3190c4(0x2ee)](_0x38d89d,_0x1127d6,_0xc41cc8);return _0x4f4ef8===void 0x0||_0x2742bc===void 0x0?null:{'shapeData':_0x2742bc,'shapeId':_0xc41cc8,'shapeType':_0x4f4ef8,'unitId':_0x38d89d,'subUnitId':_0x1127d6,'version':this[_0x3190c4(0x374)],'disableShapeOption':!0x1};}[_0x54916c(0x391)](_0x453cf8,_0x2c4f3f=!0x1){const _0x3c4116=_0x54916c;if(_0x453cf8==null){[...this[_0x3c4116(0x247)][_0x3c4116(0x336)]()][_0x3c4116(0x284)](_0x56740a=>this[_0x3c4116(0x391)](_0x56740a,_0x2c4f3f));return;}let _0x3f35ee=this[_0x3c4116(0x247)][_0x3c4116(0x273)](_0x453cf8);if(_0x3f35ee){for(let _0x4049c8=_0x3f35ee[_0x3c4116(0x192)]-0x1;_0x4049c8>=0x0;--_0x4049c8){let _0x4db920=_0x3f35ee[_0x4049c8];(_0x2c4f3f||_0x4db920[_0x3c4116(0x1aa)]())&&(_0x4db920[_0x3c4116(0x25f)](),_0x3f35ee['splice'](_0x4049c8,0x1));}_0x3f35ee[_0x3c4116(0x192)]===0x0&&(this[_0x3c4116(0x247)][_0x3c4116(0x1fa)](_0x453cf8),this[_0x3c4116(0x33b)][_0x3c4116(0x1fa)](_0x453cf8));}}[_0x54916c(0x1f2)](_0x34ae2a){const _0x25212d=_0x54916c;let _0x387399=this[_0x25212d(0x247)][_0x25212d(0x273)](_0x34ae2a);if(_0x387399)return _0x387399;let _0x4b0b22=[];return this[_0x25212d(0x247)][_0x25212d(0x27f)](_0x34ae2a,_0x4b0b22),_0x4b0b22;}[_0x54916c(0x326)](_0x1b1f91){const _0x2667a7=_0x54916c;var _0x3f1310;let _0x5c05ce=new _0x5144e8(),_0x1e3d78=(_0x3f1310=this[_0x2667a7(0x268)][_0x2667a7(0x307)](_0x4171be['UNIVER_DOC'])[_0x2667a7(0x313)](_0x2ec358=>_0x2ec358[_0x2667a7(0x34a)]['getTransformerByCreate']()===_0x1b1f91))==null?void 0x0:_0x3f1310['unitId'];return _0x1e3d78&&(_0x5c05ce[_0x2667a7(0x3b1)](_0x1b1f91['createControl$'][_0x2667a7(0x3a6)](()=>this[_0x2667a7(0x221)](_0x1b1f91,_0x1e3d78))),_0x5c05ce[_0x2667a7(0x3b1)](_0x1b1f91[_0x2667a7(0x201)]['subscribe'](()=>{const _0x2e8761=_0x2667a7;this[_0x2e8761(0x391)](_0x1e3d78),queueMicrotask(()=>{const _0x4dfadc=_0x2e8761;_0x1b1f91[_0x4dfadc(0x377)]()[_0x4dfadc(0x170)]>0x0||!this[_0x4dfadc(0x191)][_0x4dfadc(0x1b2)]()[_0x4dfadc(0x237)](_0x3e315d=>_0x3e315d[_0x4dfadc(0x380)]===_0x1e3d78)||(this[_0x4dfadc(0x195)][_0x4dfadc(0x37a)](_0x43629c,!0x1),this[_0x4dfadc(0x191)][_0x4dfadc(0x2a1)](null));});})),_0x5c05ce[_0x2667a7(0x3b1)](_0x1b1f91['changing$'][_0x2667a7(0x3a6)](()=>{this['_clearPopups'](_0x1e3d78,!0x0);}))),_0x5c05ce;}[_0x54916c(0x221)](_0x1f8215,_0x4431d2){const _0x2443f0=_0x54916c;let _0x3599e4=_0x1f8215[_0x2443f0(0x377)]();if(this['_isOpenedShapeEditPanel']){this[_0x2443f0(0x391)](_0x4431d2,!0x0);return;}if(_0x3599e4[_0x2443f0(0x170)]>0x1){this['_clearPopups'](_0x4431d2);return;}let _0x5183b3=_0x3599e4[_0x2443f0(0x213)]()[_0x2443f0(0x26f)]()[_0x2443f0(0x339)];if(!_0x5183b3){this['_clearPopups'](_0x4431d2);return;}let _0x4b5178=this[_0x2443f0(0x191)][_0x2443f0(0x271)](_0x5183b3['oKey']);if(!_0x4b5178||_0x4b5178[_0x2443f0(0x349)]!==_0x22154c[_0x2443f0(0x1c7)]){this['_clearPopups'](_0x4431d2);return;}let {unitId:_0x2e8ad4,subUnitId:_0x28467e,drawingId:_0x509788}=_0x4b5178;if(!this['_canEditShape'](_0x2e8ad4,_0x509788)){this[_0x2443f0(0x391)](_0x4431d2,!0x0);return;}let _0x124294=this[_0x2443f0(0x25b)](_0x2e8ad4,_0x28467e,_0x509788);if(!_0x124294){this['_clearPopups'](_0x4431d2);return;}let _0x37b7d4=this[_0x2443f0(0x247)][_0x2443f0(0x273)](_0x4431d2),_0x1575cf=_0x2e8ad4+':'+_0x28467e+':'+_0x509788;if(this[_0x2443f0(0x33b)][_0x2443f0(0x273)](_0x4431d2)===_0x1575cf&&_0x37b7d4!=null&&_0x37b7d4[_0x2443f0(0x192)])return;this[_0x2443f0(0x391)](_0x4431d2);let _0x3a42d4=this[_0x2443f0(0x268)][_0x2443f0(0x352)](_0x2e8ad4),_0x249abc=((_0x3a42d4==null?void 0x0:_0x3a42d4[_0x2443f0(0x28b)])===!0x1?_0x3a42d4['with'](_0x2245ef):this['_docCanvasPopManagerService'])['attachPopupToObject'](_0x5183b3,this[_0x2443f0(0x356)](_0x124294,()=>this[_0x2443f0(0x391)](_0x4431d2,!0x0)),_0x2e8ad4);this['disposeWithMe'](_0x249abc),this[_0x2443f0(0x1f2)](_0x4431d2)['push'](_0x249abc),this[_0x2443f0(0x33b)][_0x2443f0(0x27f)](_0x4431d2,_0x1575cf),this[_0x2443f0(0x191)]['getFocusDrawings']()[_0x2443f0(0x237)](_0x378f64=>_0x378f64[_0x2443f0(0x380)]===_0x2e8ad4&&_0x378f64[_0x2443f0(0x34e)]===_0x28467e&&_0x378f64[_0x2443f0(0x20b)]===_0x509788)||this[_0x2443f0(0x191)][_0x2443f0(0x2a1)]([{'unitId':_0x2e8ad4,'subUnitId':_0x28467e,'drawingId':_0x509788}]);}['_getShapePopup'](_0x5c476d,_0x3f2c72){const _0x36c495=_0x54916c;let {unitId:_0x31426f,subUnitId:_0x1a30a2,shapeId:_0x18f360}=_0x5c476d,_0x2ed242={'hostType':_0x4171be[_0x36c495(0x1bc)],'unitId':_0x31426f,'subUnitId':_0x1a30a2,'shapeId':_0x18f360};return{'componentKey':da,'requiresStableLayout':!0x1,'direction':_0x36c495(0x26d),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x5c476d[_0x36c495(0x364)],'onText':()=>{const _0x4928e3=_0x36c495;_0x3f2c72(),this[_0x4928e3(0x37c)][_0x4928e3(0x2ec)](_0x4928e3(0x319),_0x2ed242);},'onStyle':()=>{const _0x1522e1=_0x36c495;_0x3f2c72(),this[_0x1522e1(0x37c)][_0x1522e1(0x2ec)](_0x1522e1(0x260),_0x2ed242);},'onDelete':()=>this[_0x36c495(0x3b3)][_0x36c495(0x164)](_0x175640['id'],{'unitId':_0x31426f,'drawings':[{'unitId':_0x31426f,'subUnitId':_0x1a30a2,'drawingId':_0x18f360}]})}};}['_canEditShape'](_0xed6dd7,_0x3108d6){const _0x584d44=_0x54916c;let _0x334a8f=this[_0x584d44(0x184)]['getUnit'](_0xed6dd7,_0x4171be[_0x584d44(0x1bc)]);if(!_0x334a8f)return!0x1;let _0x3594c6=_0x4111cb(_0x334a8f,_0x3108d6);return _0x2dda1f(this['_permissionService'],_0xed6dd7,[..._0x5afa9b(_0x334a8f,_0x3594c6,_0x584d44(0x2cb),_0x3108d6),_0x1d967a(_0x3594c6,_0x584d44(0x2cb),_0x3108d6)]);}[_0x54916c(0x2b7)](){const _0x59f0ad=_0x54916c;this[_0x59f0ad(0x3a3)](this['_commandService'][_0x59f0ad(0x35e)](_0x529888=>{const _0x3a554d=_0x59f0ad;if(_0x529888['id']===G['id']){let {unitId:_0x3a9883,subUnitId:_0x392b81,drawingId:_0x118849}=_0x529888[_0x3a554d(0x2e3)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x3a554d(0x25b)](_0x3a9883,_0x392b81,_0x118849),this[_0x3a554d(0x391)](void 0x0,!0x0),this[_0x3a554d(0x2e2)]();}if(_0x529888['id']===Bi['id']&&(this[_0x3a554d(0x28d)]=null,this[_0x3a554d(0x351)]()),_0x529888['id']===_0x1ea311['id']){var _0x823dea;let {unitId:_0x5669ed,shapeId:_0x3783ef}=_0x529888[_0x3a554d(0x2e3)];if(((_0x823dea=this['_activeShapeInfo'])==null?void 0x0:_0x823dea[_0x3a554d(0x3a5)])===_0x3783ef){let _0x18faba=this[_0x3a554d(0x25b)](_0x5669ed,this[_0x3a554d(0x28d)][_0x3a554d(0x34e)],_0x3783ef);_0x18faba&&(this[_0x3a554d(0x374)]+=0x1,_0x18faba[_0x3a554d(0x1cb)]=this['_shapeEditPanelVersion'],this[_0x3a554d(0x28d)]=_0x18faba,this['_isOpenedShapeEditPanel']&&this[_0x3a554d(0x2e2)]());}}})),this[_0x59f0ad(0x3a3)](this['_drawingManagerService'][_0x59f0ad(0x3b4)][_0x59f0ad(0x3a6)](_0x323217=>{const _0x6f6df8=_0x59f0ad;if(!this['_isOpenedShapeEditPanel'])return;if(_0x323217[_0x6f6df8(0x192)]===0x0){this[_0x6f6df8(0x28d)]=null,this[_0x6f6df8(0x351)]();return;}if(_0x323217[_0x6f6df8(0x192)]===0x1&&_0x323217[0x0][_0x6f6df8(0x349)]===_0x22154c[_0x6f6df8(0x1c7)]&&(this[_0x6f6df8(0x374)]+=0x1,this[_0x6f6df8(0x28d)]=this[_0x6f6df8(0x25b)](_0x323217[0x0][_0x6f6df8(0x380)],_0x323217[0x0][_0x6f6df8(0x34e)],_0x323217[0x0][_0x6f6df8(0x20b)]),this[_0x6f6df8(0x28d)])){this[_0x6f6df8(0x2e2)]();return;}let _0x13dd1c=_0x323217['filter'](_0x407244=>_0x407244[_0x6f6df8(0x349)]===_0x22154c[_0x6f6df8(0x1c7)]);this[_0x6f6df8(0x374)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x323217[0x0][_0x6f6df8(0x380)],_0x323217[0x0][_0x6f6df8(0x34e)],_0x323217[0x0][_0x6f6df8(0x20b)]),this[_0x6f6df8(0x28d)]&&_0x323217[_0x6f6df8(0x192)]>0x1&&_0x13dd1c[_0x6f6df8(0x192)]===_0x323217['length']?this[_0x6f6df8(0x2e2)]():this[_0x6f6df8(0x28d)]&&_0x13dd1c[_0x6f6df8(0x192)]!==_0x323217[_0x6f6df8(0x192)]?(this['_activeShapeInfo'][_0x6f6df8(0x38c)]=!0x0,this['_openShapeEditPanel']()):this[_0x6f6df8(0x351)]();}));}[_0x54916c(0x2e2)](){const _0x479a20=_0x54916c;this[_0x479a20(0x28d)]&&(this['_sidebarDisposable']=this['_sidebarService'][_0x479a20(0x2ec)]({'id':W,'header':{'title':this[_0x479a20(0x2b5)]['t'](_0x479a20(0x1e5))},'width':0x184,'children':{'label':W,...this[_0x479a20(0x28d)]},'onClose':()=>{const _0x4e7767=_0x479a20;this[_0x4e7767(0x191)][_0x4e7767(0x2a1)](null),this[_0x4e7767(0x195)][_0x4e7767(0x37a)](_0x43629c,!0x1),this[_0x4e7767(0x3ab)]=null;}}),this[_0x479a20(0x29a)]=!0x0);}['_closeShapeEditPanel'](){const _0x1187b0=_0x54916c;this[_0x1187b0(0x29a)]=!0x1,this[_0x1187b0(0x2e4)][_0x1187b0(0x266)](W),this[_0x1187b0(0x3ab)]=null,this['_contextService'][_0x1187b0(0x37a)](_0x43629c,!0x1),this[_0x1187b0(0x191)]['focusDrawing'](null);}};ba=q([K(0x0,_0x12a7ac),K(0x1,_0x26d7aa(_0x266cb2)),K(0x2,_0x2ed58f),K(0x3,_0x26d7aa(_0x2160d8)),K(0x4,_0x26d7aa(_0x5c011e)),K(0x5,_0x202e33),K(0x6,_0x26175c),K(0x7,_0x26d7aa(_0x2245ef)),K(0x8,_0x3c7e10),K(0x9,_0x137754),K(0xa,_0x26d7aa(X)),K(0xb,_0x1efc80),K(0xc,_0x26d7aa(_0x4ab05a))],ba);const xa=_0x54916c(0x18c);let Sa=class extends _0x2f986c{constructor(_0x5b2e21,_0x113f47,_0x3d3937,_0x20a707,_0x587ab1,_0x3e00bf){const _0x4c004d=_0x54916c;super(),this[_0x4c004d(0x1ab)]=_0x5b2e21,this[_0x4c004d(0x382)]=_0x113f47,this[_0x4c004d(0x191)]=_0x3d3937,this[_0x4c004d(0x184)]=_0x20a707,this[_0x4c004d(0x268)]=_0x587ab1,this[_0x4c004d(0x1a4)]=_0x3e00bf,J(this,_0x4c004d(0x1dd),!0x1),this[_0x4c004d(0x1ab)][_0x4c004d(0x1db)](Ii),this[_0x4c004d(0x3a3)](_0x15884f(this['_drawingManagerService'][_0x4c004d(0x3b4)][_0x4c004d(0x3a6)](()=>this[_0x4c004d(0x38a)]()))),this['_update']();}['dispose'](){const _0x394e44=_0x54916c;this[_0x394e44(0x1a4)]['setFallbackVisible'](!0x1,xa),this[_0x394e44(0x282)](),super[_0x394e44(0x25f)]();}[_0x54916c(0x38a)](){const _0x5b7e1b=_0x54916c;var _0xe9b6a5;let _0x3d4c03=this['_drawingManagerService'][_0x5b7e1b(0x1b2)](),_0x401392=_0x3d4c03[_0x5b7e1b(0x192)]===0x1?_0x3d4c03[0x0]:void 0x0;if((_0x401392==null?void 0x0:_0x401392[_0x5b7e1b(0x349)])!==_0x22154c['DRAWING_SHAPE']||this['_univerInstanceService'][_0x5b7e1b(0x1ee)](_0x401392[_0x5b7e1b(0x380)])!==_0x4171be[_0x5b7e1b(0x1bc)]){this[_0x5b7e1b(0x1a4)][_0x5b7e1b(0x1a3)](!0x1,xa),this[_0x5b7e1b(0x282)]();return;}let _0x9771e6=(_0xe9b6a5=this[_0x5b7e1b(0x268)][_0x5b7e1b(0x352)](_0x401392[_0x5b7e1b(0x380)]))==null?void 0x0:_0xe9b6a5[_0x5b7e1b(0x21c)][_0x5b7e1b(0x22a)](),_0x5c7213=_0x2c4a7e(_0x9771e6)===_0x5b7e1b(0x18d);this[_0x5b7e1b(0x1a4)][_0x5b7e1b(0x1a3)](_0x5c7213,xa),_0x5c7213?this[_0x5b7e1b(0x282)]():(this[_0x5b7e1b(0x1dd)]=!0x0,this[_0x5b7e1b(0x382)]['showContextualTab'](Dr,{'activate':!0x0}));}[_0x54916c(0x282)](){const _0xd6e914=_0x54916c;this[_0xd6e914(0x1dd)]&&(this[_0xd6e914(0x1dd)]=!0x1,this['_ribbonService'][_0xd6e914(0x31c)](Dr),this[_0xd6e914(0x382)]['setCollapsedIds']([]));}};Sa=q([K(0x0,_0x2ed58f),K(0x1,_0x302398),K(0x2,_0x26175c),K(0x3,_0x12a7ac),K(0x4,_0x3c7e10),K(0x5,_0x26d7aa(_0x48226b))],Sa);let Ca=class extends _0x2f986c{constructor(_0x14bacf,_0x1c3366,_0x106886,_0x2e66f5){const _0x1806d5=_0x54916c;super(),this[_0x1806d5(0x3b3)]=_0x14bacf,this['_renderManagerService']=_0x1c3366,this[_0x1806d5(0x191)]=_0x106886,this[_0x1806d5(0x333)]=_0x2e66f5,this['_initialize']();}['_initialize'](){const _0x1a4b3b=_0x54916c;this[_0x1a4b3b(0x3a3)](this[_0x1a4b3b(0x191)]['add$'][_0x1a4b3b(0x3a6)](_0x3444cf=>this[_0x1a4b3b(0x2ba)](_0x3444cf))),this[_0x1a4b3b(0x3a3)](this[_0x1a4b3b(0x191)][_0x1a4b3b(0x23a)][_0x1a4b3b(0x3a6)](_0xef2c09=>{const _0x2b93ec=_0x1a4b3b;_0xef2c09[_0x2b93ec(0x284)](_0x2d8006=>this[_0x2b93ec(0x3a7)](_0x2d8006));})),this[_0x1a4b3b(0x3a3)](this[_0x1a4b3b(0x3b3)][_0x1a4b3b(0x35e)](_0x479b30=>{const _0x158479=_0x1a4b3b;if(_0x479b30['id']!==_0x1ea311['id'])return;let {unitId:_0x2d309e,shapeId:_0x27ebce}=_0x479b30[_0x158479(0x2e3)];this[_0x158479(0x1f0)]({'unitId':_0x2d309e,'subUnitId':_0x2d309e,'drawingId':_0x27ebce});}));}[_0x54916c(0x2ba)](_0x3d7387){_0x3d7387['forEach'](_0x21ef44=>{const _0x502ba5=_0x57eb;let _0x4ab2f9=this[_0x502ba5(0x18a)](_0x21ef44[_0x502ba5(0x380)]);if(!_0x4ab2f9)return;let _0x54151c=this[_0x502ba5(0x191)][_0x502ba5(0x33e)](_0x21ef44);(_0x54151c==null?void 0x0:_0x54151c['drawingType'])===_0x22154c['DRAWING_SHAPE']&&this[_0x502ba5(0x333)]['renderDrawingShape'](_0x54151c,_0x4ab2f9[_0x502ba5(0x34a)]);});}['_updateShape'](_0x2e88a7){const _0x276082=_0x54916c;let _0xfbbdf4=this[_0x276082(0x191)][_0x276082(0x33e)](_0x2e88a7);if((_0xfbbdf4==null?void 0x0:_0xfbbdf4[_0x276082(0x349)])!==_0x22154c['DRAWING_SHAPE'])return;let _0x4c6de8=this[_0x276082(0x18a)](_0x2e88a7['unitId']);if(!_0x4c6de8||_0xfbbdf4['transform']==null)return;let _0x532c87=_0x4c8b57(_0x2e88a7),_0x5ed134=_0x4c6de8[_0x276082(0x34a)][_0x276082(0x17d)](_0x532c87);_0x5ed134&&(_0x5ed134[_0x276082(0x188)](_0xfbbdf4['srcRect']),_0x5ed134[_0x276082(0x19e)](_0xfbbdf4['prstGeom']),_0x5ed134[_0x276082(0x288)](!0x0));}[_0x54916c(0x1f0)](_0x1fbf00){const _0x54c7b9=_0x54916c;let _0x1dc4f9=this[_0x54c7b9(0x18a)](_0x1fbf00[_0x54c7b9(0x380)]);if(!_0x1dc4f9)return;let _0x20e9b0=_0x4c8b57(_0x1fbf00),_0x2c2c72=_0x1dc4f9['scene'][_0x54c7b9(0x17d)](_0x20e9b0);_0x2c2c72&&(this[_0x54c7b9(0x333)]['refreshShapeFillImage'](_0x2c2c72),this[_0x54c7b9(0x333)]['refreshFormulaPresentation'](_0x2c2c72,{'unitId':_0x1fbf00[_0x54c7b9(0x380)],'subUnitId':_0x1fbf00[_0x54c7b9(0x34e)],'shapeId':_0x1fbf00[_0x54c7b9(0x20b)]}),_0x2c2c72[_0x54c7b9(0x288)](!0x0));}[_0x54916c(0x18a)](_0x255813){const _0x11298e=_0x54916c;if(_0x255813==null)return null;let _0x4c3756=this[_0x11298e(0x268)][_0x11298e(0x352)](_0x255813),_0x4e1c77=_0x4c3756==null?void 0x0:_0x4c3756[_0x11298e(0x34a)];return _0x4e1c77==null?null:{'scene':_0x4e1c77};}};Ca=q([K(0x0,_0x202e33),K(0x1,_0x3c7e10),K(0x2,_0x26175c),K(0x3,_0x26d7aa(Z))],Ca);let Q=class extends _0x1cf528{constructor(_0x5ce349=Hi,_0x4dcc7a,_0x14ea59,_0x18e4e7,_0x52fbe9){const _0x4f6098=_0x54916c;super(),this[_0x4f6098(0x1a6)]=_0x5ce349,this[_0x4f6098(0x1ba)]=_0x4dcc7a,this['_commandService']=_0x14ea59,this[_0x4f6098(0x22f)]=_0x18e4e7,this[_0x4f6098(0x268)]=_0x52fbe9;let {menu:_0x393cfa,..._0x1fdd9b}=_0x21bba7({},Hi,this[_0x4f6098(0x1a6)]);_0x393cfa&&this[_0x4f6098(0x22f)][_0x4f6098(0x22b)]('menu',_0x393cfa,{'merge':!0x0}),this[_0x4f6098(0x22f)][_0x4f6098(0x22b)](Vi,_0x1fdd9b),[U,Bi,G,Mr,Pr,Fr][_0x4f6098(0x284)](_0x1d85ba=>this[_0x4f6098(0x3a3)](this['_commandService'][_0x4f6098(0x194)](_0x1d85ba)));}[_0x54916c(0x263)](){const _0x4970c4=_0x54916c;let _0x599f6b=[[ya],[ba],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[X],[Sa]];_0x1f3224(this[_0x4970c4(0x1ba)],_0x599f6b),this['_injector']['get'](ya);}['onReady'](){const _0x46f88f=_0x54916c;this['disposeWithMe'](this[_0x46f88f(0x268)][_0x46f88f(0x2e1)](_0x4171be[_0x46f88f(0x1bc)],[Ji])),_0x373f73(this[_0x46f88f(0x1ba)],[[ba],[Ca],[Z],[Xi],[Ir],[aa],[X],[Sa]]);}};J(Q,_0x54916c(0x1d1),_0x4171be['UNIVER_DOC']),J(Q,'pluginName',_0x54916c(0x20f)),J(Q,'packageName',Ri),J(Q,'version',zi),Q=q([_0x3770fa(_0x1ffca3,_0xdc1620,_0x42b107,_0xffb1d5,_0x4bba0d,_0xc138a0,_0x1fab9b,_0x32fb19,_0x35d39a,_0x1cf61b),K(0x1,_0x26d7aa(_0x4cf8ef)),K(0x2,_0x202e33),K(0x3,_0x3f325f),K(0x4,_0x3c7e10)],Q);let wa=class extends _0x2f986c{constructor(_0x5c78ba,_0x2dd8be){const _0x44c06f=_0x54916c;super(),this[_0x44c06f(0x2db)]=_0x5c78ba,this[_0x44c06f(0x375)]=_0x2dd8be,this['_registerIcons'](),this[_0x44c06f(0x1f3)]();}['_registerIcons'](){const _0x270cd2=_0x54916c;this[_0x270cd2(0x375)]['has'](_0x270cd2(0x218))||this[_0x270cd2(0x3a3)](this[_0x270cd2(0x375)][_0x270cd2(0x211)]({'ObjectLayersIcon':_0x4d7a1f})),this[_0x270cd2(0x375)]['has'](_0x270cd2(0x3b6))||this[_0x270cd2(0x3a3)](this[_0x270cd2(0x375)]['register']({'BottomIcon':_0x1d96bc})),this[_0x270cd2(0x375)][_0x270cd2(0x321)](_0x270cd2(0x383))||this[_0x270cd2(0x3a3)](this[_0x270cd2(0x375)][_0x270cd2(0x211)]({'MoveDownIcon':_0x26fb7f})),this[_0x270cd2(0x375)][_0x270cd2(0x321)](_0x270cd2(0x208))||this[_0x270cd2(0x3a3)](this['_iconManager'][_0x270cd2(0x211)]({'MoveUpIcon':_0x26fa53})),this[_0x270cd2(0x375)][_0x270cd2(0x321)]('ShapeFormatSettingIcon')||this[_0x270cd2(0x3a3)](this[_0x270cd2(0x375)][_0x270cd2(0x211)]({'ShapeFormatSettingIcon':_0x54f8f5})),this['_iconManager'][_0x270cd2(0x321)](_0x270cd2(0x272))||this[_0x270cd2(0x3a3)](this[_0x270cd2(0x375)][_0x270cd2(0x211)]({'TopmostIcon':_0x432907})),this[_0x270cd2(0x3a3)](this[_0x270cd2(0x375)][_0x270cd2(0x211)](_a));}[_0x54916c(0x1f3)](){const _0x565f34=_0x54916c;this[_0x565f34(0x3a3)](this[_0x565f34(0x2db)][_0x565f34(0x211)](W,sa)),this[_0x565f34(0x32e)](),this[_0x565f34(0x343)](),this[_0x565f34(0x3a3)](this[_0x565f34(0x2db)][_0x565f34(0x211)](Qr,ii)),this[_0x565f34(0x3a3)](this[_0x565f34(0x2db)][_0x565f34(0x211)](Zr,ai)),this[_0x565f34(0x3a3)](this['_componentManager']['register']($r,oi)),this[_0x565f34(0x3a3)](this[_0x565f34(0x2db)][_0x565f34(0x211)](ei,si)),this[_0x565f34(0x3a3)](this[_0x565f34(0x2db)][_0x565f34(0x211)](ti,ci)),this['disposeWithMe'](this['_componentManager'][_0x565f34(0x211)](Ar,_0x238ece)),this[_0x565f34(0x393)](),this['_componentManager']['hasDefault'](_0x34f870)||this['disposeWithMe'](this[_0x565f34(0x2db)][_0x565f34(0x211)](_0x34f870,Hr)),this[_0x565f34(0x3a3)](this['_componentManager'][_0x565f34(0x211)](jr,va));}[_0x54916c(0x32e)](){const _0x16ed22=_0x54916c;this[_0x16ed22(0x3a3)](this['_componentManager'][_0x16ed22(0x211)](Or,ra));}[_0x54916c(0x343)](){const _0x1d0e12=_0x54916c;this[_0x1d0e12(0x3a3)](this[_0x1d0e12(0x2db)]['register'](da,pa));}[_0x54916c(0x393)](){const _0x2f6f05=_0x54916c;this[_0x2f6f05(0x3a3)](this[_0x2f6f05(0x2db)][_0x2f6f05(0x211)](Lr,Ur)),this[_0x2f6f05(0x3a3)](this[_0x2f6f05(0x2db)][_0x2f6f05(0x211)](Rr,Vr));}};wa=q([K(0x0,_0x26d7aa(_0x25897b)),K(0x1,_0x26d7aa(_0x30c9c2))],wa);let Ta=class extends _0x2f986c{constructor(_0x370b6e,_0xda50b,_0x4e277f,_0x56d777,_0x205326,_0x39e40c,_0x104a0d,_0x1a7d0d,_0x1c28b8){const _0x197aa8=_0x54916c;super();let _0x2bc0df=_0x44fb7b=>{const _0x4cf2c2=_0x57eb;let _0x45bb49=_0x39e40c['getUnit'](_0x44fb7b['unitId'],_0x4171be[_0x4cf2c2(0x1bc)]),_0x525df3=_0x45bb49?_0x4111cb(_0x45bb49,_0x44fb7b['shapeId']):'';return!!_0x45bb49&&_0x2dda1f(_0x1a7d0d,_0x44fb7b[_0x4cf2c2(0x380)],[_0x1d967a(_0x525df3,_0x4cf2c2(0x2cb),_0x44fb7b['shapeId']),..._0x5afa9b(_0x45bb49,_0x525df3,_0x4cf2c2(0x2cb),_0x44fb7b['shapeId'])]);},_0x442879=_0x154cbc=>_0x154cbc[_0x197aa8(0x3a5)]&&_0x2bc0df(_0x154cbc)?_0x4e277f['getShapeDataById'](_0x154cbc['unitId'],_0x154cbc[_0x197aa8(0x3a5)])??null:null,_0x204e15=()=>{const _0x48bad4=_0x197aa8;let _0x55d2c7=_0x205326[_0x48bad4(0x1b2)](),_0x5bd5b9=_0x55d2c7[_0x48bad4(0x192)]===0x1?_0x55d2c7[0x0]:null;return(_0x5bd5b9==null?void 0x0:_0x5bd5b9['drawingType'])===_0x22154c['DRAWING_SHAPE']&&_0x5bd5b9['unitId']===_0x370b6e[_0x48bad4(0x380)]?{'unitId':_0x5bd5b9[_0x48bad4(0x380)],'subUnitId':_0x5bd5b9[_0x48bad4(0x34e)],'shapeId':_0x5bd5b9[_0x48bad4(0x20b)]}:null;};this[_0x197aa8(0x3a3)](_0x2f7ffc(_0x370b6e,_0xda50b,{'changes$':_0x402001(_0x205326[_0x197aa8(0x3b4)],_0x56d777['editingParams$'],_0x1a7d0d['permissionPointUpdate$']),'isActive':()=>{const _0x1f6c8d=_0x197aa8;var _0x4049c3;return((_0x4049c3=_0x39e40c[_0x1f6c8d(0x2d6)]())==null?void 0x0:_0x4049c3['getUnitId']())===_0x370b6e[_0x1f6c8d(0x380)]&&!_0x104a0d[_0x1f6c8d(0x176)](_0x154f42)&&_0x205326[_0x1f6c8d(0x1b2)]()['some'](_0x5f5684=>_0x5f5684[_0x1f6c8d(0x380)]===_0x370b6e['unitId']);},'getSelectedTarget':_0x204e15,'getSource':()=>{let _0x384d44=_0x204e15();return _0x384d44?_0x442879(_0x384d44):null;},'getTarget':_0x44e180=>{const _0x25bdef=_0x197aa8;let _0x107017=_0x370b6e[_0x25bdef(0x34a)]['pick'](new _0x44d7b4(_0x44e180['offsetX'],_0x44e180[_0x25bdef(0x23c)]));if(!(_0x107017 instanceof Y))return null;let _0x255404={'unitId':_0x370b6e[_0x25bdef(0x380)],'subUnitId':_0x370b6e[_0x25bdef(0x380)],'shapeId':_0x107017[_0x25bdef(0x3a5)]};return _0x2bc0df(_0x255404)?_0x255404:null;},'getShape':_0x442879,'update':(_0x21a32e,_0x582ad8,_0x3c1a8f)=>_0x1c28b8['executeCommand'](_0x35b851['id'],{..._0x21a32e,'shapeData':_0x3c1a8f,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x582ad8}})}));}};Ta=q([K(0x1,_0x26d7aa(_0x2b6126)),K(0x2,_0x26d7aa(_0x2160d8)),K(0x3,_0x26d7aa(X)),K(0x4,_0x26175c),K(0x5,_0x12a7ac),K(0x6,_0x137754),K(0x7,_0x1efc80),K(0x8,_0x202e33)],Ta);function Ea(_0x4553b9,_0x1b2b5b){const _0x3449bd=_0x54916c;let _0x22c721=_0x4553b9;for(;_0x22c721;){if(_0x1b2b5b(_0x22c721))return _0x22c721;_0x22c721=typeof _0x22c721[_0x3449bd(0x360)]==_0x3449bd(0x21e)?_0x22c721[_0x3449bd(0x360)]():null;}return null;}function Da(_0x153d87){return Ea(_0x153d87,_0x2be7b1=>_0x2be7b1 instanceof Y);}function Oa(_0x5cb0c2){const _0x1dbde6=_0x54916c;return(_0x5cb0c2==null?void 0x0:_0x5cb0c2[_0x1dbde6(0x200)])==null;}let ka=class extends _0x2f986c{constructor(_0x386448,_0x3c21c7,_0x1b28e5,_0x3d816e,_0x24f0ef){const _0x141c53=_0x54916c;super(),this['_context']=_0x386448,this['_shapeTextEditingService']=_0x3c21c7,this[_0x141c53(0x191)]=_0x1b28e5,this[_0x141c53(0x38b)]=_0x3d816e,this[_0x141c53(0x228)]=_0x24f0ef,J(this,_0x141c53(0x376),null),J(this,_0x141c53(0x291),null),this[_0x141c53(0x2a7)](),this['_initSelection'](),this['_initEditingParams']();}[_0x54916c(0x25f)](){const _0x193666=_0x54916c;this[_0x193666(0x385)](),super[_0x193666(0x25f)]();}['_initEvents'](){const _0x5d782c=_0x54916c;let {scene:_0x3aa7a3}=this['_context'];this[_0x5d782c(0x3a3)](_0x3aa7a3['onDblclick$'][_0x5d782c(0x2b3)]((_0x5971cd,_0x21cf84)=>{const _0x12e50f=_0x5d782c;let {offsetX:_0x236210,offsetY:_0x1d673c}=_0x5971cd,_0x22b1d3=_0x44d7b4['FromArray']([_0x236210,_0x1d673c]),_0x45d5d2=Da(_0x3aa7a3[_0x12e50f(0x36c)](_0x22b1d3))??this[_0x12e50f(0x1e9)](_0x22b1d3);if(_0x45d5d2){_0x21cf84['stopPropagation']();let _0xfdd6ae=this['_docsShapeService'][_0x12e50f(0x348)](_0x45d5d2[_0x12e50f(0x380)],_0x45d5d2[_0x12e50f(0x34e)],_0x45d5d2[_0x12e50f(0x3a5)]);if(!_0xfdd6ae||_0x376792(_0xfdd6ae[_0x12e50f(0x359)]())||!Oa(_0xfdd6ae[_0x12e50f(0x199)]()))return;this[_0x12e50f(0x2d4)]['setEditing']({'visible':!0x0,'unitId':_0x45d5d2[_0x12e50f(0x380)],'subUnitId':_0x45d5d2['subUnitId'],'shapeId':_0x45d5d2[_0x12e50f(0x3a5)],'shapeKey':_0x45d5d2[_0x12e50f(0x35c)]});}}));}[_0x54916c(0x1e9)](_0x13153c){const _0x2301fa=_0x54916c;let {scene:_0x58c2f6}=this['_context'];return this[_0x2301fa(0x191)][_0x2301fa(0x1b2)]()[_0x2301fa(0x1a0)](_0x121b2f=>_0x58c2f6['getObjectIncludeInGroup'](_0x4c8b57(_0x121b2f)))[_0x2301fa(0x313)](_0x1cf168=>_0x1cf168 instanceof Y&&_0x1cf168[_0x2301fa(0x22e)](_0x13153c))??null;}[_0x54916c(0x3ca)](){const _0x32cc44=_0x54916c;this[_0x32cc44(0x3a3)](this[_0x32cc44(0x191)][_0x32cc44(0x3b4)][_0x32cc44(0x3a6)](_0x166716=>{const _0x48f8eb=_0x32cc44;if(_0x166716[_0x48f8eb(0x192)]===0x1){let _0x21d514=_0x166716[0x0],_0x862d72=this[_0x48f8eb(0x191)][_0x48f8eb(0x33e)](_0x21d514);if((_0x862d72==null?void 0x0:_0x862d72['drawingType'])===_0x22154c[_0x48f8eb(0x1c7)]){let _0x3bfbd5=this[_0x48f8eb(0x2d4)][_0x48f8eb(0x174)]();if((_0x3bfbd5==null?void 0x0:_0x3bfbd5[_0x48f8eb(0x3a5)])===_0x21d514['drawingId']&&_0x3bfbd5[_0x48f8eb(0x300)])return;_0x376792(this[_0x48f8eb(0x228)][_0x48f8eb(0x359)](_0x21d514[_0x48f8eb(0x380)],_0x21d514['subUnitId'],_0x21d514[_0x48f8eb(0x20b)]))&&this['_shapeTextEditingService'][_0x48f8eb(0x314)](null);}else this[_0x48f8eb(0x2d4)][_0x48f8eb(0x1d8)]();}else this[_0x48f8eb(0x2d4)][_0x48f8eb(0x1d8)]();})),this[_0x32cc44(0x3a3)](this['_drawingManagerService']['remove$'][_0x32cc44(0x3a6)](_0x350de4=>{const _0x27d52c=_0x32cc44;let _0x24282e=this[_0x27d52c(0x2d4)][_0x27d52c(0x174)]();_0x24282e&&_0x350de4[_0x27d52c(0x237)](_0x5271b4=>_0x5271b4['drawingId']===_0x24282e[_0x27d52c(0x3a5)])&&this['_shapeTextEditingService'][_0x27d52c(0x314)](null);}));}[_0x54916c(0x177)](){const _0x1b9f9b=_0x54916c;this['disposeWithMe'](this[_0x1b9f9b(0x2d4)][_0x1b9f9b(0x21a)][_0x1b9f9b(0x3a6)](_0x418485=>{const _0x40badd=_0x1b9f9b;(_0x418485==null?void 0x0:_0x418485[_0x40badd(0x300)])===!0x0&&_0x418485[_0x40badd(0x380)]===this[_0x40badd(0x1ce)][_0x40badd(0x380)]?this['_layoutInteraction']??=this['_docLayoutInteractionService'][_0x40badd(0x295)]():this[_0x40badd(0x385)]();let {scene:_0x2ae531}=this[_0x40badd(0x1ce)];if(this[_0x40badd(0x376)]){let _0x503d0a=_0x2ae531[_0x40badd(0x17d)](this['_lastEditingShapeKey']);_0x503d0a&&_0x503d0a['setEditing'](!0x1);}if(_0x418485){let _0x3f07c2=!!_0x418485['visible'],_0x137414=_0x2ae531[_0x40badd(0x17d)](_0x418485[_0x40badd(0x1a9)]);_0x137414&&(_0x137414['setEditing'](_0x3f07c2),this['_lastEditingShapeKey']=_0x418485['shapeKey']);}else this[_0x40badd(0x376)]=null;}));}[_0x54916c(0x385)](){const _0x1b3daf=_0x54916c;var _0x3a613e;(_0x3a613e=this[_0x1b3daf(0x291)])==null||_0x3a613e[_0x1b3daf(0x25f)](),this[_0x1b3daf(0x291)]=null;}};ka=q([K(0x1,_0x26d7aa(X)),K(0x2,_0x26175c),K(0x3,_0x26d7aa(_0x23f614)),K(0x4,_0x26d7aa(_0x2160d8))],ka);let Aa=class extends _0x51aea9{constructor(_0x31d8b7,_0x16ea07,_0x22de2b,_0x53225f,_0xaa517e,_0x3a2bdf,_0x5107a6,_0x53724e,_0x53474f,_0x3380db){super(_0x31d8b7,_0x16ea07,_0x22de2b,_0x53225f,_0xaa517e,_0x3a2bdf,_0x5107a6,_0x53724e,_0x53474f,_0x3380db,{'componentKey':Ar,'editorUnitId':kr});}};Aa=q([K(0x1,_0x26d7aa(_0x6b545d)),K(0x2,_0x26d7aa(_0x2245ef)),K(0x3,_0x26d7aa(_0x161c1f)),K(0x4,_0x202e33),K(0x5,_0x26d7aa(_0x36bcd6)),K(0x6,_0x26d7aa(_0x188995)),K(0x7,_0x26d7aa(_0x425d50)),K(0x8,_0x26d7aa(_0x203910)),K(0x9,_0x26d7aa(X))],Aa);let ja=class extends _0x77ce55{constructor(_0x3daeab,_0xbb77e3,_0x191786,_0x53f241,_0x134f20){super(_0x3daeab,_0xbb77e3,{'editing$':_0x191786['editingParams$'],'resolve':_0x2e578e=>{const _0x2051b4=_0x57eb;var _0x6ddd00;let _0xc79d55=new _0x44d7b4(_0x2e578e[_0x2051b4(0x372)],_0x2e578e[_0x2051b4(0x23c)]),_0x17fc00=((_0x6ddd00=_0x3daeab['scene']['getActiveViewportByCoord'](_0xc79d55))==null?void 0x0:_0x6ddd00[_0x2051b4(0x3ae)](_0xc79d55))??_0xc79d55,_0x3bf8e9=_0x1dae7c(_0x3daeab[_0x2051b4(0x34a)][_0x2051b4(0x36c)](_0xc79d55)??null,_0x17fc00);if(!(_0x3bf8e9 instanceof Y))return null;let _0xc5fdc8=_0x3bf8e9[_0x2051b4(0x33f)](_0x17fc00);if(!_0xc5fdc8)return null;let _0x3add95=_0x3bf8e9,_0x815b1c={'componentKey':_0xb2c799[_0x2051b4(0x344)],'direction':_0x2051b4(0x26d),'offset':[0x0,0xa],'onClickOutside':()=>_0xbb77e3['hideInfoPopup']()};return{'object':_0x3bf8e9,'info':{..._0xc5fdc8,'unitId':_0x3bf8e9[_0x2051b4(0x380)],'subUnitId':_0x3bf8e9[_0x2051b4(0x34e)],'shapeKey':_0x3bf8e9['oKey'],'readonly':!0x0,'copyable':_0x30f7db(_0x134f20,_0x3bf8e9[_0x2051b4(0x380)],_0x3bf8e9['unitId'],_0x45d729[_0x2051b4(0x397)])},'attachPopup':()=>_0x53f241['attachPopupToObject'](_0x3add95,_0x815b1c,_0x3add95[_0x2051b4(0x380)])};}});}};ja=q([K(0x1,_0x26d7aa(_0x188995)),K(0x2,_0x26d7aa(X)),K(0x3,_0x26d7aa(_0x2245ef)),K(0x4,_0x1efc80)],ja);let Ma=class extends _0x2f986c{constructor(_0x1ee74b,_0x53e831,_0x5a77e0,_0x4a8b0f,_0xf0260a,_0x486acd,_0xf20cdb,_0x5623d6,_0x51deb3,_0x469960,_0x1107ef,_0x498f40){const _0x38138e=_0x54916c;super(),this['_univerInstanceService']=_0x1ee74b,this[_0x38138e(0x2e4)]=_0x53e831,this[_0x38138e(0x1ab)]=_0x5a77e0,this['_docsShapeService']=_0x4a8b0f,this['_localeService']=_0xf0260a,this['_commandService']=_0x486acd,this['_drawingManagerService']=_0xf20cdb,this[_0x38138e(0x2eb)]=_0x5623d6,this[_0x38138e(0x268)]=_0x51deb3,this[_0x38138e(0x195)]=_0x469960,this[_0x38138e(0x2d4)]=_0x1107ef,this[_0x38138e(0x341)]=_0x498f40,J(this,'_sidebarDisposable',null),J(this,_0x38138e(0x28d),null),J(this,_0x38138e(0x29a),!0x1),J(this,_0x38138e(0x374),0x0),J(this,'_disposePopupsByUnit',new Map()),J(this,_0x38138e(0x33b),new Map()),this[_0x38138e(0x1a8)](),this['disposeWithMe'](this[_0x38138e(0x184)][_0x38138e(0x27a)](_0x4171be['UNIVER_DOC'])[_0x38138e(0x3a6)](_0x38e3bd=>{const _0x527199=_0x38138e;if(!_0x38e3bd){var _0x42c738;(_0x42c738=this[_0x527199(0x3ab)])==null||_0x42c738[_0x527199(0x25f)]();}})),this[_0x38138e(0x2b7)](),this[_0x38138e(0x3a3)](this[_0x38138e(0x191)][_0x38138e(0x298)]['subscribe'](_0x16e382=>{const _0x481f8e=_0x38138e;for(let _0x3802fa of _0x16e382){let _0x3817a0=_0x3802fa[_0x481f8e(0x380)]+':'+_0x3802fa[_0x481f8e(0x34e)]+':'+_0x3802fa[_0x481f8e(0x20b)];for(let [_0x7b88fb,_0x52dbbd]of this[_0x481f8e(0x33b)])_0x52dbbd===_0x3817a0&&this['_clearPopups'](_0x7b88fb,!0x0);}})),this[_0x38138e(0x3a3)](_0x3a81c4(this['_renderManagerService'],_0x4171be[_0x38138e(0x1bc)],_0x37bfcc=>this['_popupMenuListener'](_0x37bfcc))),this['disposeWithMe'](this['_shapeTextEditingService'][_0x38138e(0x21a)][_0x38138e(0x3a6)](_0x395e56=>{const _0x5b8e5a=_0x38138e;_0x395e56&&this[_0x5b8e5a(0x391)](void 0x0,!0x0);})),this[_0x38138e(0x3a3)](this['_permissionService'][_0x38138e(0x2a8)][_0x38138e(0x3a6)](()=>{const _0xbbd68b=_0x38138e;this[_0xbbd68b(0x191)][_0xbbd68b(0x1b2)]()[_0xbbd68b(0x237)](_0xab973=>_0xab973[_0xbbd68b(0x349)]===_0x22154c[_0xbbd68b(0x1c7)]&&this[_0xbbd68b(0x184)]['getUnitType'](_0xab973[_0xbbd68b(0x380)])===_0x4171be[_0xbbd68b(0x1bc)]&&!this[_0xbbd68b(0x301)](_0xab973[_0xbbd68b(0x380)],_0xab973[_0xbbd68b(0x20b)]))&&(this[_0xbbd68b(0x391)](void 0x0,!0x0),this['_closeShapeEditPanel']());}));}[_0x54916c(0x1a8)](){const _0xb3e6b8=_0x54916c;this[_0xb3e6b8(0x1ab)]['mergeMenu'](Li);}[_0x54916c(0x1da)](_0x2f3f02,_0x3d4e9b,_0x56ea1c,_0x27a0d2){const _0x1842f8=_0x54916c;return[{'label':_0x1842f8(0x329),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x2f3f02,'subUnitId':_0x3d4e9b,'drawingId':_0x56ea1c},'disable':_0x27a0d2===_0x22154c[_0x1842f8(0x1e1)]},{'label':_0x1842f8(0x277),'index':0x1,'commandId':_0x175640['id'],'commandParams':{'unitId':_0x2f3f02,'drawings':[{'unitId':_0x2f3f02,'subUnitId':_0x3d4e9b,'drawingId':_0x56ea1c}]},'disable':!0x1},{'label':_0x1842f8(0x2aa),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x2f3f02,'subUnitId':_0x3d4e9b,'drawingId':_0x56ea1c},'disable':!0x1}];}[_0x54916c(0x25b)](_0x1b80de,_0xc7914d,_0x58a9b6){const _0x3348aa=_0x54916c;let _0x393555=this[_0x3348aa(0x228)][_0x3348aa(0x219)](_0x1b80de,_0xc7914d,_0x58a9b6),_0x4c7496=this['_docsShapeService'][_0x3348aa(0x2ee)](_0x1b80de,_0xc7914d,_0x58a9b6);return _0x393555!==void 0x0&&_0x4c7496!==void 0x0?{'shapeData':_0x4c7496,'shapeId':_0x58a9b6,'shapeType':_0x393555,'unitId':_0x1b80de,'subUnitId':_0xc7914d,'version':this[_0x3348aa(0x374)],'disableShapeOption':!0x1}:null;}[_0x54916c(0x391)](_0x42df5c,_0x27b38c=!0x1){const _0xadb13d=_0x54916c;if(_0x42df5c==null){[...this[_0xadb13d(0x247)][_0xadb13d(0x336)]()][_0xadb13d(0x284)](_0x4fcaea=>this[_0xadb13d(0x391)](_0x4fcaea,_0x27b38c));return;}let _0x17e05a=this[_0xadb13d(0x247)][_0xadb13d(0x273)](_0x42df5c);if(_0x17e05a){for(let _0x1abfcd=_0x17e05a[_0xadb13d(0x192)]-0x1;_0x1abfcd>=0x0;--_0x1abfcd){let _0xa9f518=_0x17e05a[_0x1abfcd];(_0x27b38c||_0xa9f518[_0xadb13d(0x1aa)]())&&(_0xa9f518[_0xadb13d(0x25f)](),_0x17e05a[_0xadb13d(0x3c1)](_0x1abfcd,0x1));}_0x17e05a[_0xadb13d(0x192)]===0x0&&(this[_0xadb13d(0x247)][_0xadb13d(0x1fa)](_0x42df5c),this['_popupTargetKeys'][_0xadb13d(0x1fa)](_0x42df5c));}}['_getDisposePopups'](_0x56bd05){const _0x2768a4=_0x54916c;let _0x41d476=this[_0x2768a4(0x247)][_0x2768a4(0x273)](_0x56bd05);if(_0x41d476)return _0x41d476;let _0x43b09f=[];return this[_0x2768a4(0x247)][_0x2768a4(0x27f)](_0x56bd05,_0x43b09f),_0x43b09f;}[_0x54916c(0x326)](_0xb0233e){const _0x16a551=_0x54916c;var _0x157034;let _0x1dffc0=new _0x5144e8(),_0x2597f3=(_0x157034=this[_0x16a551(0x268)]['getAllRenderersOfType'](_0x4171be[_0x16a551(0x1bc)])['find'](_0x109759=>_0x109759['scene']['getTransformerByCreate']()===_0xb0233e))==null?void 0x0:_0x157034[_0x16a551(0x380)];return _0x2597f3&&(_0x1dffc0[_0x16a551(0x3b1)](_0xb0233e[_0x16a551(0x283)]['subscribe'](()=>this[_0x16a551(0x221)](_0xb0233e,_0x2597f3))),_0x1dffc0[_0x16a551(0x3b1)](_0xb0233e[_0x16a551(0x201)][_0x16a551(0x3a6)](()=>{this['_clearPopups'](_0x2597f3),queueMicrotask(()=>{const _0x5490ac=_0x57eb;_0xb0233e[_0x5490ac(0x377)]()[_0x5490ac(0x170)]>0x0||!this['_drawingManagerService'][_0x5490ac(0x1b2)]()['some'](_0x3cdf0a=>_0x3cdf0a[_0x5490ac(0x380)]===_0x2597f3)||(this['_contextService'][_0x5490ac(0x37a)](_0x43629c,!0x1),this[_0x5490ac(0x191)][_0x5490ac(0x2a1)](null));});})),_0x1dffc0['add'](_0xb0233e[_0x16a551(0x27e)][_0x16a551(0x3a6)](()=>{const _0x426ae3=_0x16a551;this[_0x426ae3(0x391)](_0x2597f3,!0x0);}))),_0x1dffc0;}[_0x54916c(0x221)](_0x1bdd62,_0x47d7dd){const _0x2f1423=_0x54916c;let _0x193cb5=_0x1bdd62[_0x2f1423(0x377)]();if(this[_0x2f1423(0x29a)]){this['_clearPopups'](_0x47d7dd,!0x0);return;}if(_0x193cb5[_0x2f1423(0x170)]>0x1){this[_0x2f1423(0x391)](_0x47d7dd);return;}let _0x402821=_0x193cb5[_0x2f1423(0x213)]()[_0x2f1423(0x26f)]()[_0x2f1423(0x339)];if(!_0x402821){this[_0x2f1423(0x391)](_0x47d7dd);return;}let _0x46118e=this[_0x2f1423(0x191)]['getDrawingOKey'](_0x402821[_0x2f1423(0x35c)]);if(!_0x46118e||_0x46118e[_0x2f1423(0x349)]!==_0x22154c[_0x2f1423(0x1c7)]){this[_0x2f1423(0x391)](_0x47d7dd);return;}let {unitId:_0x955511,subUnitId:_0x5f3cf4,drawingId:_0xb61aeb,drawingType:_0x508dcc}=_0x46118e;if(!this[_0x2f1423(0x301)](_0x955511,_0xb61aeb)){this['_clearPopups'](_0x47d7dd,!0x0);return;}let _0xfda8fd=this[_0x2f1423(0x25b)](_0x955511,_0x5f3cf4,_0xb61aeb);if(!_0xfda8fd){this[_0x2f1423(0x391)](_0x47d7dd);return;}let _0x29eb83=this['_disposePopupsByUnit'][_0x2f1423(0x273)](_0x47d7dd),_0x17e3b3=_0x955511+':'+_0x5f3cf4+':'+_0xb61aeb;if(this[_0x2f1423(0x33b)][_0x2f1423(0x273)](_0x47d7dd)===_0x17e3b3&&_0x29eb83&&_0x29eb83[_0x2f1423(0x192)]>0x0)return;this[_0x2f1423(0x391)](_0x47d7dd);let _0x1e240a=this[_0x2f1423(0x268)]['getRenderUnitById'](_0x955511),_0x3538f2=((_0x1e240a==null?void 0x0:_0x1e240a[_0x2f1423(0x28b)])===!0x1?_0x1e240a['with'](_0x2245ef):this[_0x2f1423(0x2eb)])[_0x2f1423(0x2ad)](_0x402821,this[_0x2f1423(0x356)](_0xfda8fd,_0x508dcc),_0x955511);this[_0x2f1423(0x3a3)](_0x3538f2),this['_getDisposePopups'](_0x47d7dd)[_0x2f1423(0x175)](_0x3538f2),this[_0x2f1423(0x33b)][_0x2f1423(0x27f)](_0x47d7dd,_0x17e3b3),this['_drawingManagerService'][_0x2f1423(0x1b2)]()[_0x2f1423(0x237)](_0x454e5d=>_0x454e5d[_0x2f1423(0x380)]===_0x955511&&_0x454e5d['subUnitId']===_0x5f3cf4&&_0x454e5d[_0x2f1423(0x20b)]===_0xb61aeb)||this[_0x2f1423(0x191)][_0x2f1423(0x2a1)]([{'unitId':_0x955511,'subUnitId':_0x5f3cf4,'drawingId':_0xb61aeb}]);}[_0x54916c(0x356)](_0x57ec8b,_0x16cbf8){const _0x369848=_0x54916c;return{'componentKey':da,'requiresStableLayout':!0x1,'direction':_0x369848(0x2b8),'offset':[0x0,_0x1e27ee],'extraProps':{'unitId':_0x57ec8b[_0x369848(0x380)],'subUnitId':_0x57ec8b[_0x369848(0x34e)],'drawingId':_0x57ec8b[_0x369848(0x3a5)],'drawingType':_0x16cbf8,'shapeType':_0x57ec8b['shapeType'],'shapeData':_0x57ec8b[_0x369848(0x2c0)]}};}[_0x54916c(0x301)](_0x43e991,_0x502b66){const _0x369456=_0x54916c;let _0x35ea80=this[_0x369456(0x184)][_0x369456(0x3a0)](_0x43e991,_0x4171be[_0x369456(0x1bc)]);if(!_0x35ea80)return!0x1;let _0x5e8aac=_0x4111cb(_0x35ea80,_0x502b66);return _0x2dda1f(this[_0x369456(0x341)],_0x43e991,[..._0x5afa9b(_0x35ea80,_0x5e8aac,'drawing',_0x502b66),_0x1d967a(_0x5e8aac,_0x369456(0x2cb),_0x502b66)]);}[_0x54916c(0x2b7)](){const _0x5f4559=_0x54916c;this[_0x5f4559(0x3a3)](this[_0x5f4559(0x3b3)][_0x5f4559(0x35e)](_0x440728=>{const _0x200528=_0x5f4559;if(_0x440728['id']===G['id']){let {unitId:_0x248e73,subUnitId:_0x335b7c,drawingId:_0x3839d6}=_0x440728[_0x200528(0x2e3)];this[_0x200528(0x374)]+=0x1,this[_0x200528(0x28d)]=this[_0x200528(0x25b)](_0x248e73,_0x335b7c,_0x3839d6),this[_0x200528(0x391)](void 0x0,!0x0),this[_0x200528(0x2e2)]();}if(_0x440728['id']===Bi['id']&&(this[_0x200528(0x28d)]=null,this[_0x200528(0x351)]()),_0x440728['id']===_0x1ea311['id']){let {unitId:_0x468d12,shapeId:_0x11a213}=_0x440728[_0x200528(0x2e3)];if(this[_0x200528(0x28d)]&&this['_activeShapeInfo'][_0x200528(0x3a5)]===_0x11a213){let _0x6efaf5=this['_getShapeInfo'](_0x468d12,this[_0x200528(0x28d)][_0x200528(0x34e)],_0x11a213);_0x6efaf5&&(this[_0x200528(0x374)]+=0x1,_0x6efaf5[_0x200528(0x1cb)]=this[_0x200528(0x374)],this[_0x200528(0x28d)]=_0x6efaf5,this[_0x200528(0x29a)]&&this[_0x200528(0x2e2)]());}}})),this[_0x5f4559(0x3a3)](this[_0x5f4559(0x191)][_0x5f4559(0x3b4)][_0x5f4559(0x3a6)](_0x3ab35e=>{const _0xf5a09d=_0x5f4559;if(this[_0xf5a09d(0x29a)]===!0x1)return;if(_0x3ab35e[_0xf5a09d(0x192)]===0x0){this[_0xf5a09d(0x28d)]=null,this[_0xf5a09d(0x351)]();return;}if(_0x3ab35e[_0xf5a09d(0x192)]===0x1&&_0x3ab35e[0x0]['drawingType']===_0x22154c['DRAWING_SHAPE']&&(this[_0xf5a09d(0x374)]+=0x1,this[_0xf5a09d(0x28d)]=this[_0xf5a09d(0x25b)](_0x3ab35e[0x0][_0xf5a09d(0x380)],_0x3ab35e[0x0]['subUnitId'],_0x3ab35e[0x0][_0xf5a09d(0x20b)]),this[_0xf5a09d(0x28d)])){this['_openShapeEditPanel']();return;}let _0x4adf16=_0x3ab35e[_0xf5a09d(0x1dc)](_0x1f9068=>_0x1f9068[_0xf5a09d(0x349)]===_0x22154c[_0xf5a09d(0x1c7)]);if(_0x3ab35e[_0xf5a09d(0x192)]>0x1&&_0x4adf16[_0xf5a09d(0x192)]===_0x3ab35e[_0xf5a09d(0x192)]){if(this[_0xf5a09d(0x374)]+=0x1,this[_0xf5a09d(0x28d)]=this[_0xf5a09d(0x25b)](_0x3ab35e[0x0]['unitId'],_0x3ab35e[0x0][_0xf5a09d(0x34e)],_0x3ab35e[0x0][_0xf5a09d(0x20b)]),this[_0xf5a09d(0x28d)]){this['_openShapeEditPanel']();return;}}else{if(this[_0xf5a09d(0x374)]+=0x1,this[_0xf5a09d(0x28d)]=this[_0xf5a09d(0x25b)](_0x3ab35e[0x0][_0xf5a09d(0x380)],_0x3ab35e[0x0][_0xf5a09d(0x34e)],_0x3ab35e[0x0]['drawingId']),this['_activeShapeInfo']){this[_0xf5a09d(0x28d)][_0xf5a09d(0x38c)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0xf5a09d(0x351)]();}));}[_0x54916c(0x2e2)](){const _0x5a8c72=_0x54916c;this[_0x5a8c72(0x28d)]&&(this['_sidebarDisposable']=this[_0x5a8c72(0x2e4)][_0x5a8c72(0x2ec)]({'id':W,'header':{'title':this['_localeService']['t'](_0x5a8c72(0x1e5))},'width':0x184,'children':{'label':W,...this[_0x5a8c72(0x28d)]},'onClose':()=>{const _0x256af3=_0x5a8c72;this['_drawingManagerService']['focusDrawing'](null),this['_contextService'][_0x256af3(0x37a)](_0x43629c,!0x1),this[_0x256af3(0x3ab)]=null;}}),this[_0x5a8c72(0x29a)]=!0x0);}['_closeShapeEditPanel'](){const _0x2e0b13=_0x54916c;this[_0x2e0b13(0x29a)]=!0x1,this['_sidebarService'][_0x2e0b13(0x266)](W),this['_sidebarDisposable']=null,this[_0x2e0b13(0x195)][_0x2e0b13(0x37a)](_0x43629c,!0x1),this['_drawingManagerService'][_0x2e0b13(0x2a1)](null);}};Ma=q([K(0x0,_0x12a7ac),K(0x1,_0x26d7aa(_0x266cb2)),K(0x2,_0x2ed58f),K(0x3,_0x26d7aa(_0x2160d8)),K(0x4,_0x26d7aa(_0x5c011e)),K(0x5,_0x202e33),K(0x6,_0x26175c),K(0x7,_0x26d7aa(_0x2245ef)),K(0x8,_0x3c7e10),K(0x9,_0x137754),K(0xa,_0x26d7aa(X)),K(0xb,_0x1efc80)],Ma);let Na=class extends _0x2f986c{constructor(_0x171ea9,_0x1aeb39){const _0x48e8c9=_0x54916c;super(),this['_docsShapeService']=_0x171ea9,this['_localeService']=_0x1aeb39,this[_0x48e8c9(0x3a3)](_0x15884f(_0x2dbdf0((_0x38e0fa,_0x3b6eb5,_0x1daae7)=>this['_measure'](_0x38e0fa,_0x3b6eb5,_0x1daae7))));}[_0x54916c(0x1fd)](_0x58f401,_0x40bfed,_0x3aa4b5){const _0x2f0d11=_0x54916c;let _0x3fd3b8=this[_0x2f0d11(0x228)][_0x2f0d11(0x348)](_0x58f401,_0x40bfed);if(!_0x3fd3b8)return null;let _0x1253b9=_0x3fd3b8[_0x2f0d11(0x199)](),_0x2e2ca4=_0x22aecc(_0x1253b9),_0x555c2b=_0x1253b9[_0x2f0d11(0x3a8)];if(!_0x555c2b||_0x2e2ca4['autoFitType']!==_0x654413[_0x2f0d11(0x2a2)])return null;let _0x10b759=_0x3aa4b5[_0x2f0d11(0x229)],_0x3a09e9=_0x3aa4b5[_0x2f0d11(0x269)];_0x3fd3b8['updateContext']({'width':_0x10b759,'height':_0x3a09e9});let _0x2419b3=_0x3fd3b8['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x10b759,'height':_0x3a09e9}),_0x317556=_0x4bc9a6(_0x2f0d11(0x39f)in _0x555c2b?_0x555c2b['dataModel']:void 0x0),_0x3301b5=(_0x317556==null?void 0x0:_0x317556[_0x2f0d11(0x299)])??(_0x2f0d11(0x234)in _0x555c2b?_0x14eae4(_0x555c2b,_0x40bfed+_0x2f0d11(0x173)):null);if(!_0x3301b5)return null;let _0x13ff46=_0x1e0e9e({'documentData':_0x3301b5,'height':_0x3a09e9,'shapeData':_0x1253b9,'textRect':_0x2419b3,'width':_0x10b759,'widthBuffer':0x0});_0x13ff46&&({width:_0x10b759,height:_0x3a09e9}=_0x13ff46,_0x3fd3b8[_0x2f0d11(0x256)]({'width':_0x10b759,'height':_0x3a09e9}),_0x2419b3=_0x3fd3b8[_0x2f0d11(0x19a)]({'left':0x0,'top':0x0,'width':_0x10b759,'height':_0x3a09e9}));let _0x4bdbad=_0x555c2b[_0x2f0d11(0x232)]!==!0x1,_0x250a3c=_0x2af33e(_0x3301b5,{'isHorizontal':_0x4bdbad,'textRect':_0x2419b3,'verticalAlign':_0x317556==null?void 0x0:_0x317556['va'],'horizontalAlign':_0x317556==null?void 0x0:_0x317556['ha'],'wrapStrategy':_0xee6b9c(_0x1253b9)}),_0x4735d0=new _0xff9fea(_0x250a3c),_0x419c8e=new _0x3fffa8(_0x4735d0),_0x190ac0=_0x442807[_0x2f0d11(0x257)](_0x419c8e,this[_0x2f0d11(0x2b5)]);try{var _0x1d8552,_0x242cfb;_0x190ac0[_0x2f0d11(0x1c5)]();let _0x49293c=((_0x1d8552=_0x190ac0['getSkeletonData']())==null?void 0x0:_0x1d8552[_0x2f0d11(0x28f)])??[],_0x484af5=_0x49293c[_0x49293c['length']-0x1],_0x3d8a91=_0x484af5?Math[_0x2f0d11(0x31d)](0x0,((_0x242cfb=_0x1b96a5(_0x484af5))==null?void 0x0:_0x242cfb[_0x2f0d11(0x19b)])??0x0):0x0,_0x5037c8=_0x190ac0[_0x2f0d11(0x320)]()[_0x2f0d11(0x3cc)]+_0x3d8a91-(_0x4bdbad?_0x2419b3[_0x2f0d11(0x309)]:_0x2419b3[_0x2f0d11(0x1ae)]);return Number[_0x2f0d11(0x20e)](_0x5037c8)?_0x4bdbad?{'width':_0x10b759,'height':Math['max'](0x1,_0x3a09e9+_0x5037c8)}:{'width':Math['max'](0x1,_0x10b759+_0x5037c8),'height':_0x3a09e9}:null;}finally{_0x190ac0[_0x2f0d11(0x25f)](),_0x419c8e[_0x2f0d11(0x25f)](),_0x4735d0['dispose']();}}};Na=q([K(0x0,_0x26d7aa(_0x2160d8)),K(0x1,_0x26d7aa(_0x5c011e))],Na);let $=class extends _0x1cf528{constructor(_0x44e036=Hi,_0x614bf,_0x5c1828,_0x5b5138,_0x59c8d2){const _0x22f120=_0x54916c;super(),this[_0x22f120(0x1a6)]=_0x44e036,this[_0x22f120(0x1ba)]=_0x614bf,this['_commandService']=_0x5c1828,this[_0x22f120(0x22f)]=_0x5b5138,this[_0x22f120(0x268)]=_0x59c8d2;let {menu:_0x4bffff,..._0x8353d5}=_0x21bba7({},Hi,this[_0x22f120(0x1a6)]);_0x4bffff&&this['_configService']['setConfig'](_0x22f120(0x2f5),_0x4bffff,{'merge':!0x0}),this[_0x22f120(0x22f)]['setConfig'](Vi,_0x8353d5),this[_0x22f120(0x1d7)]();}[_0x54916c(0x263)](){const _0x409706=_0x54916c;_0x1f3224(this[_0x409706(0x1ba)],this[_0x409706(0x217)]()),this['_injector'][_0x409706(0x273)](wa),this[_0x409706(0x2c3)]();}[_0x54916c(0x217)](){return[[wa],[Ma],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[Na],[X],[Sa]];}[_0x54916c(0x245)](){const _0x20dbd6=_0x54916c;this[_0x20dbd6(0x3aa)]()[_0x20dbd6(0x284)](_0x4ab312=>{const _0x112505=_0x20dbd6;this[_0x112505(0x3a3)](this[_0x112505(0x268)][_0x112505(0x2e1)](_0x4171be['UNIVER_DOC'],_0x4ab312));}),_0x373f73(this[_0x20dbd6(0x1ba)],[[Ma],[Ca],[Z],[Xi],[Ir],[aa],[Na],[X],[Sa]]);}[_0x54916c(0x3aa)](){return[[Ji],[ka],[ja],[Ta]];}[_0x54916c(0x24d)](){const _0x24ae64=_0x54916c;this[_0x24ae64(0x3a3)](this['_renderManagerService'][_0x24ae64(0x2e1)](_0x4171be[_0x24ae64(0x1bc)],[Aa]));}[_0x54916c(0x1d7)](){const _0x5e4b37=_0x54916c;[U,Bi,G,Mr,Pr,Fr][_0x5e4b37(0x284)](_0x5117e1=>this[_0x5e4b37(0x3a3)](this[_0x5e4b37(0x3b3)][_0x5e4b37(0x194)](_0x5117e1)));}[_0x54916c(0x2c3)](){const _0xe839d3=_0x54916c;let _0x1d8e2d=this['_injector'],_0xea88f8=_0x1d8e2d['get'](_0x20d548);this['disposeWithMe'](_0xea88f8[_0xe839d3(0x2d8)](_0x4f6d28[_0xe839d3(0x3c4)],()=>_0x2cd116(va,_0x1d8e2d)));}};J($,'type',_0x4171be[_0x54916c(0x1bc)]),J($,'pluginName',_0x54916c(0x20f)),J($,_0x54916c(0x2d7),Ri),J($,_0x54916c(0x1cb),zi),$=q([_0x3770fa(_0x1ffca3,_0xdc1620,_0x42b107,_0x723ce2,_0x4bba0d,_0x146071,_0x1fab9b,_0x28a0c7,_0x35d39a,_0x3057d8),K(0x1,_0x26d7aa(_0x4cf8ef)),K(0x2,_0x202e33),K(0x3,_0x3f325f),K(0x4,_0x3c7e10)],$);export{Li as DocsShapeUIMenuSchema,Q as UniverDocsShapeMobileUIPlugin,$ as UniverDocsShapeUIPlugin};
|
|
1
|
+
const _0x33b4ed=_0x3935;(function(_0x2686ae,_0x4b37f7){const _0x1bd910=_0x3935,_0x1ef46a=_0x2686ae();while(!![]){try{const _0x4d407b=parseInt(_0x1bd910(0x1c0))/0x1*(-parseInt(_0x1bd910(0x2d2))/0x2)+-parseInt(_0x1bd910(0x297))/0x3+parseInt(_0x1bd910(0x1d0))/0x4+parseInt(_0x1bd910(0x3d1))/0x5+parseInt(_0x1bd910(0x216))/0x6+parseInt(_0x1bd910(0x2ff))/0x7*(parseInt(_0x1bd910(0x3d5))/0x8)+-parseInt(_0x1bd910(0x3bd))/0x9*(parseInt(_0x1bd910(0x255))/0xa);if(_0x4d407b===_0x4b37f7)break;else _0x1ef46a['push'](_0x1ef46a['shift']());}catch(_0x44c1c5){_0x1ef46a['push'](_0x1ef46a['shift']());}}}(_0x15fc,0xb8c4e));import{FormulaShapeAnimationController as _0x111cfb,MobileShapeEditorControls as _0x5c71dd,MobileShapeEditorService as _0x10d1ab,MobileShapePickerPanel as _0x45ec05,SHAPE_CHANGE_PICKER_COMPONENT as _0x52abb9,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xd0974d,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x51c5f7,ShapeEditPanel as _0x46d3f3,ShapeFloatingToolbar as _0x38e7bd,ShapeFloatingToolbarService as _0xafbc38,ShapeFloatingToolbarToggleFactory as _0x43dbc6,ShapeFormulaRibbonControl as _0x3315fc,ShapeGroupEnum as _0x18936a,ShapePickerDropdown as _0x1b348e,ShapePickerPanel as _0x36a009,ShapeQuickStyleGallery as _0x1d6539,ShapeStyleRibbonControl as _0x45d8f7,ShapeTextEditorContainer as _0x587c3f,ShapeTextFloatMenuRenderControllerBase as _0xafa84c,ShapeTextFloatToolbar as _0x171fcd,ShapeTextHyperLinkHoverController as _0x4093ea,ShapeTextHyperLinkInfo as _0xb65d9,ShapeTextHyperLinkPopupService as _0x3c0cac,ShapeTextRibbonControl as _0x1e0283,ToggleShapeFloatingToolbarOperation as _0xe63565,UniverShapeEditorMobileUIPlugin as _0x198fdd,UniverShapeEditorUIPlugin as _0x2e48c9,activateDrawingObject as _0x1968c3,bindRenderTransformerLifecycle as _0x312ad1,buildShapeTextDataUpdate as _0x1f2428,clearActiveDrawingObjects as _0x2e5f7a,createShapeTextHyperLinkRegions as _0x267ed3,drawFormulaShapeAnimationLayers as _0x398cb3,getDrawingTypeNameKey as _0x23090a,getTextModel as _0x565786,getTextStyle as _0xea05c7,normalizeShapeTextModel as _0x323514,plainShapeTextToDocumentData as _0x269d0d,prepareShapeTextDocumentData as _0x3b60aa,prepareShapeTextDocumentData as _0x5e7a93,registerShapeFormatPainter as _0x4c0695,resolveFormulaShapeAutoFitSize as _0x1e5357,resolveShapeContextualRibbonHostMode as _0x26f91d,resolveShapeTextDocumentPageHeight as _0x2da653,resolveShapeTextDocumentRenderLayout as _0x391f73,resolveShapeTextEditorBehaviorShapeData as _0x2cef43,resolveShapeTextEditorWrapStrategy as _0x3f29ab,resolveShapeTextHyperLinkAt as _0x3680bf,resolveShapeTextHyperLinkObject as _0x2efdd6,shouldAllowShapeTextEditorHostSizeShrink as _0x2db28c,shouldClipShapeTextDocument as _0x4917b7,useFormulaShapeToolbar as _0x1abe68}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x33fcfd,DOC_CONTENT_INSERT_MENU_ID as _0x2c757d,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x39bc40,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x1dc7cd,DocCanvasPopManagerService as _0x506b97,DocEventManagerService as _0x4e8139,DocLayoutInteractionService as _0x2431a6,DocParagraphMenuService as _0x3a0006,DocPrintInterceptorService as _0x592c88,DocRenderController as _0x50c2a2,DocSelectionRenderService as _0x277f8c,EMPTY_PARAGRAPH_MENU_ID as _0x2ca167,INSERT_BELLOW_MENU_ID as _0x57f28d,UniverDocsMobileUIPlugin as _0x5173fc,UniverDocsUIPlugin as _0x4dda97,VIEWPORT_KEY as _0x55f01c}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x42abda,ComponentManager as _0x497683,ContextMenuGroup as _0x441439,ContextMenuPosition as _0x48c8ed,FloatingObjectToolbarPosition as _0x52cb5e,FormatPainterSessionService as _0x575a29,IMenuManagerService as _0x4b4118,IRibbonService as _0x18d17b,ISidebarService as _0x1658ad,IUIPartsService as _0x94208e,IconManager as _0x4a3fd6,MenuItemType as _0x7efdf3,MenuManagerPosition as _0x5160ee,MobileMenu as _0x1e551c,ObjectPermissionButton as _0x5ec452,RibbonInsertGroup as _0x2b5ce5,connectInjector as _0x6c788,getMenuHiddenObservable as _0x1a292c,useDependency as _0x4f0443,useObservable as _0x182392}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x254783,DEFAULT_DOC_SHAPE_WIDTH as _0x1544b6,DocShapeAnchorPosition as _0x4206dc,DocsShapeService as _0x2b6cfd,InsertDocShapeCommand as _0x2eb417,UniverDocsShapePlugin as _0x2ef163,UpdateDocDrawingMetadataCommand as _0x7a9285,UpdateDocShapeDataCommand as _0x1a49e3,UpdateDocShapeDataMutation as _0xee5b39}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x336c0b,ShapeArrowSizeEnum as _0x462d37,ShapeArrowTypeEnum as _0x1262bd,ShapeDefaultConfig as _0x45f006,ShapeFillEnum as _0x663a07,ShapeLineTypeEnum as _0x1d7fb3,ShapeModel as _0x42b479,ShapeRenderModeEnum as _0x300492,ShapeTextAutoFitType as _0x251b87,ShapeTypeEnum as _0x31901e,isConnectorShape as _0x394312,resolveShapeTextBodyBehavior as _0x3ab30e}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x28fd23,UniverShapeEditorPlugin as _0x1a75fd,applyQuickStyleToShapeData as _0x17a77d,cloneShapeDataForType as _0x1ae742,createShapeFormulaDocument as _0xd798cf,createShapeTextBoxShapeData as _0x43ec31,getShapeQuickStylePreset as _0x630a9c,getShapeQuickStyleType as _0x416d3a,resolveActiveShapeQuickStylePresetId as _0x378bff}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x2adc43,BooleanNumber as _0x51c9cc,CommandType as _0x596f1a,DependentOn as _0xeaf711,Disposable as _0x256e8f,DisposableCollection as _0x107b45,DocumentDataModel as _0x483eaa,DrawingTypeEnum as _0x197ccb,FOCUSING_COMMON_DRAWINGS as _0x2a75d8,FOCUSING_SHAPE_TEXT_EDITOR as _0x48ed79,HorizontalAlign as _0x163f8a,ICommandService as _0x2474c3,IConfigService as _0x4747a4,IContextService as _0x651387,IImageIoService as _0xadc7af,IPermissionService as _0x371e1a,IURLImageService as _0x2f2fe2,IUniverInstanceService as _0x1e69fb,Inject as _0x179bf2,Injector as _0x3193fa,LocaleService as _0x5a1674,Plugin as _0x43bd26,PositionedObjectLayoutType as _0x2cd4cd,UniverInstanceType as _0x248b26,VerticalAlign as _0x9ed22a,createInternalEditorID as _0x35e317,generateRandomId as _0x599b17,getParagraphContentStartOffset as _0x51a026,merge as _0x2d69fe,registerDependencies as _0x490b6f,toDisposable as _0x519bb5,touchDependencies as _0x899513}from'@univerjs/core';import{DocInterceptorService as _0x3ac20b,DocSelectionManagerService as _0x1507b5,RichTextEditingMutation as _0x3ee887,SetDocumentPermissionCommand as _0x272850,UniverDocsPlugin as _0x2db5f7,canEditDocumentTargets as _0x1e4951,getDocumentDrawingSegmentId as _0x1142fd,getDocumentEntityParentPermissionObjectIds as _0x2e9cb2,getDocumentEntityPermissionObjectId as _0x365faa,getDocumentPermissionValue as _0x5efff4}from'@univerjs/docs';import{IDocDrawingService as _0x314cd0,RemoveDocDrawingCommand as _0x3f45a7,SetDocDrawingArrangeCommand as _0x207919,TextWrappingStyle as _0x4a5267,UpdateDocDrawingWrappingStyleCommand as _0x5ef581,UpdateDrawingDocTransformCommand as _0x39bf96}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0xb952ae,Circle as _0x3776a7,DRAWING_OBJECT_LAYER_INDEX as _0xbe605e,DocumentSkeleton as _0x11abd9,DocumentViewModel as _0x2fd191,Documents as _0x2bcd1b,IRenderManagerService as _0x456b85,RENDER_CLASS_TYPE as _0x33187e,Shape as _0x3c37d7,Transform as _0x3ab4ed,UniverRenderEnginePlugin as _0x28d240,Vector2 as _0x482a77,getLastLine as _0x522a83,setDocsCustomBlockRenderViewportProvider as _0x1201f1}from'@univerjs/engine-render';import{IDrawingManagerService as _0x8501d,SetDrawingSelectedOperation as _0x4974f9,UniverDrawingPlugin as _0x2b9ee4,getDrawingShapeKeyByDrawingSearch as _0x2d5511}from'@univerjs/drawing';import{DrawingCommonPanel as _0x5f290d,DrawingImageClipService as _0x2426eb,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x34cbd7,MobileObjectListPanel as _0x54d238,OBJECT_LIST_FLOATING_SECTION_ID as _0x6b425e,ObjectListPanelBase as _0x17f792,UniverDrawingMobileUIPlugin as _0x173033,UniverDrawingUIPlugin as _0x11c27b,getObjectListPanelSectionIdForDrawingType as _0xa06520,insertGroupObject as _0x2a4d00}from'@univerjs/drawing-ui';import{Fragment as _0x74fc90,jsx as _0x204a1f,jsxs as _0x5c5a38}from'react/jsx-runtime';import{BehaviorSubject as _0x3c3cbc,Observable as _0x5c7fe4,defer as _0x34fb2d,distinctUntilChanged as _0x53e830,map as _0x2d1e10,merge as _0x231b03,of as _0x336782,startWith as _0x24843f}from'rxjs';import{UniverLicensePlugin as _0x3c2eb4}from'@univerjs-pro/license';import{DocDrawingPosition as _0x3da229,DocDrawingTextWrap as _0x50fdaf,MobileDocDrawingPosition as _0xe32e88,MobileDocDrawingTextWrap as _0x100c92,UniverDocsDrawingMobileUIPlugin as _0x4f5b06,UniverDocsDrawingUIPlugin as _0x428172}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x58619f,MoreDownIcon as _0x27a17d,MoreUpIcon as _0x278e80,MoveDownIcon as _0x51ed93,MoveUpIcon as _0x5aa3fa,ObjectLayersIcon as _0x3d0405,ShapeFormatSettingIcon as _0x31ef3a,TextWrapShapeIcon as _0x15512e,TopmostIcon as _0x1ff755}from'@univerjs/icons';import{MobileActionRow as _0x1f7a84}from'@univerjs/design';function _0x15fc(){const _0x51342e=['_imageIoService','setFormulaPresentation','isDrawingObject','_localeService','_closeShapeEditPanel','Path','RIBBON','_getSceneByUnitId','animateFormulaPresentation','docs-shape-ui.mobile.text','_mobileEditorService','drawingId','_handleCreateControl','SolidFill','doc','_editingParams$','_shapeFormulaService','keys','SHAPE','_baseShapeTop','filter','renderDrawingShape','cancelEditing','PARAGRAPH','enhanceParams','doc.image-clip.shape-picker.component','menu','menuRange','_registerIcons','BUTTON','height','value','_initSelection','top-center','setContextValue','set','_activeShapeInfo','wrapStrategy','_urlImageService','panel','drawing-ui.objectListPanel.sectionFloating','#3B82F6','setCanUseShapeClip','behind','_instanceService','_shapeRenderController','_docCanvasPopManagerService','0\x200\x2020\x2020','svg','docs-shape-ui.shape-format.quick-style-gallery','clipTop','_onSavingEditorData$','next','close','pipe','setFillImage','object','_measure','behindDoc','_sidebarDisposable','_refreshShapeData','getImage','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','_isStartAdjusting','forward','rect','none','length','pick','docs-shape-ui.insertShape','presentationChanged$','refreshTransform$','setSrcRect','createControl$','doc.operation.open-doc-shape-format-panel','stopPropagation','_clearPopups','getAllRenderersOfType','localeService','refreshShapeFillImage','isHit','_drawingManagerService','doc.operation.update-shape-type','showContextualTab','getRenderUnitById','setCursor','constructor','text','_drawSimpleText','isRenderLinePointsMode','docs-shape-ui.shape-format.formula-ribbon-control','getShapePopupMenus','refreshFormulaPresentation','5.5','_addShapeAdjustControl','subscribe','getValue','max','path','_config','_unitId','changing$','interceptor','endOffset','adjHandleStroke','canDispose','getShapeModel','_toVisualAdjustPoint','composeMatrix','Line','doc.operation.open-shape-object-list-panel','DRAWING_SHAPE','_getShapeAdjustPointListById','_permissionService','function','draw','update$','onPointerUp$','Image','getObjectIncludeInGroup','drawing-ui.objectListPanel.nameInput','_props','drawing-ui.objectListPanel.locate','drawing-ui.objectListPanel.show','_clipService','fallbackHeight','BottomIcon','div','isHitLine','below','drawing-ui.objectListPanel.showAll','WRAP_TOP_AND_BOTTOM','calculate','SELECTOR','translate','clearControl$','getFocusedUnit','FromArray','round','_endLayoutInteraction','size','type','multiply','horizontal','updateContext','_configService','true','_initEvents','paragraphs','disposeWithMe','_getActiveDrawingShape','executeCommand','error','getSelectedObjectMap','docs-shape-ui.quickStyles','unregister','_popupTargetKeys','has','hidden','getDrawingData','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getTransformer','offsetX','MEDIA','_visible','docs-shape-ui.ribbon.shape-format.arrange-forward','getActiveViewportByCoord','mergeMenu','drawing-ui.objectListPanel.unlockHint','getOwnPropertyDescriptor','drawing-ui.objectListPanel.moveBackward','docs-shape-ui.hidePanel','translateWithPrecision','version','autoFitType','_clearCompletionFrame','addObject','symbol','resolveHyperLinkAt','drawing-ui.objectListPanel.hide','image','setPresentation','getDrawingEffectBounds','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','9ObQbJO','URL','title','indexOf','Medium','applyPoint','shapeKey','delete','getUnit','DRAWING_IMAGE','DocsShapeWrapBehindTextIcon','_shapeTextEditingService','onTransformChange$','doc.operation.apply-shape-quick-style','univer-box-border\x20univer-px-4\x20univer-text-sm','docs-shape-ui.ribbon.shape-format.arrange-backward','transform','presentation','setPrstGeom','sin','3285435qNFzKu','back','getSelfOrHeaderFooterModel','_initMenu','2404664CntgYH','_getRenderModules','getRealBound','get','startOffset','span','push','getCurrentTypeOfUnit$','makeDirty','_canEditShape','transformVector2SceneCoord','skeTables','formulaPresentation','drawing-ui.objectListPanel.lockAll','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','selectable','toPrimitive','_loadAndSetImage','getViewports','docs-shape-ui.objectListPanel.title','docs-shape-ui.mobile.style','OPERATION','setAdjustValueByName','_hyperLinkRegions','docs-shape-ui.textWrap.inFrontText','_formulaAnimation','ancestorTransform','isRichText','getActiveTextRange','COMMAND','layoutType','extraProps','add$','drawing-ui.objectListPanel.unlockAll','shape-editor-ui.arrange.front','render','contentVerticalOffset','WRAP_SQUARE','restore','setOnSavingEditorData','startArrow','shape-editor-ui.arrange.backward','drawing-ui.objectListPanel.sectionCanvas','getShapeType','_baseShapeHeight','shapeId','defineProperty','_getShapeAdjustInfosById','preValue','getImageSourceCache','.below','MoveDownIcon','sidebarOptions$','docs-shape-text-','open','featurePluginUpdateNotification','adjName','VIEW_MAIN','_shapeId','asObservable','beginInteraction','hideContextualTab','label','_renderManagerService','drawing-ui.objectListPanel.descriptionPlaceholder','CONTENT','current','docs-shape-ui.config','TOP','_updateShape','_docPrintInterceptorService','setCollapsedIds','map','_setTransForm','currentColor','setConfig','_initialize','onDblclick$','animationEnabled','TRUE','drawing-ui.objectListPanel.expand','editingParams$','_initPrinting','docs-shape-ui.mobile.delete','getShapeTextRect','#2563EB','_getActiveDrawingParam','_subUnitId','docs-shape-ui.shape-format.text-ribbon-control','hideInfoPopup','_init','_attachAdjustEvent','_drawRichTextLayer','UNIVER_DOC','_docsShapeService','_toScenePoint','5bKYmnM','getSkeletonData','_shapeEditPanelVersion','shape-editor-ui.arrange.forward','_createShapeAdjustControls','getDrawingSearch','subUnitId','unitId','square','iterator','_completionFrame','hasDefault','debounceRefreshControls','pageWidth','IN_FRONT_OF_TEXT','oKey','1752140NhMiBW','clip-','setFallbackVisible','fontSize','buildClipPath','dataModel','attachPopupToObject','vertical-center','focus$','startIndex','register','_registerDrawingTransformHandler','shapeModel','stroke','docs-shape-ui.textWrap.behindText','remove$','getShapeDataById','_sidebarService','_registerDrawingFocusChangeHandler','_componentManager','_registerImageShapeClipDelegate','1.2','intercept','top-bottom','cos','segmentId','formulaBinding','BEHIND_TEXT','docs-shape-ui.crop.shape','_menuManagerService','doc.shape.picker.component','_insertShapes','getDrawingVisible','_layoutInteraction','values','updateShapeFillImage','docs-shape-ui.openPanel','params','_isOpenedShapeEditPanel','unsubscribe','currentAdjustValues','getPageDrawingIds','footerId','doc.shape.text.float-menu','INLINE','headerId','clearAdjustControls','PRINTING_COMPONENT_COLLECT','getUnitType','docs-shape-ui.formatShape','_initUIPart','splice','drawing-ui.objectListPanel.lockHint','add','disableShapeOption','complete','shape-editor-ui.toolbar.quickStyles','context-bar','pluginName','endArrow','onPointerMove$','permissionPointUpdate$','getContextValue','options','docs-shape-ui.ribbon.shape-format.arrange-front','bottom','ShapeFormatSettingIcon','getSnapshot','docs-shape-ui.ribbon.shape-format.formula-control','PictureFill','1129980kAQDgo','srcRect','MoveUpIcon','getVisible','invert','docs-shape-ui.textWrap.inline','docs-shape-ui.shape-format.wrapping-style-label','fillType','rows','_getDependencies','registerCommand','drawingType','M2\x203h16M2\x2017h16','getUnitId','None','SHAPE_TEXT','fallbackWidth','getCanvasElement','LAYOUT','description','SpAutoFit','_updateShapeAdjustControls','GROUP','_lastEditingShapeKey','shapeText','drawing-ui.objectListPanel.unlock','clone','_adjName','docs-shape-ui.textWrap.topAndBottom','_injector','getDrawingPoints','1em','doc.command.menu-insert-shape','_activeShapeId','_clearShapeAdjustControls','top','_docLayoutInteractionService','_isShouldShowDrawingShapeAdjust','docs-shape-ui.ribbon.shape-format.style-control','univer-grid\x20univer-gap-3','getInterceptPoints','getInverseCoord','updateDocumentStyle','_getShapeInfo','getCurrentUnitOfType','shapeType','getShapeData','getParent','clipHeight','drawing-ui.objectListPanel.empty','registerRenderModule','sheet.image-clip.shape-picker.component','getEditing','_registerOperations','isolated','_iconManager','_ribbonService','subtle','drawing-ui.objectListPanel.typeNames.','sectionFloating','resize','_renderWithCache','_getShapePopup','11662810kSvwLn','clipByShape','trim','drawings','drawing-ui.objectListPanel.description','left','sectionCanvas','decorate','offsetY','flipY','getAdjustValueByName','drawing-ui.objectListPanel.lock','_hide','_adjHandlerPointerUp','_contextService','getShapeTextData','isFinite','create','DRAWING_DOM','getDrawingByParam','fillImageSourceType','skeHeaders','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','getFocusDrawings','drawing','icon','-layout','flipX','setShapeProps','_transform','_canEdit','_drawShapeText','pages','paragraphMenuPlacement','OFFSET','transformForAngle','_activeShapeAdjustPointList','forEach','_popupMenuListener','getDrawingDataForUnit','_baseShapeLeft','DocsShapeWrapInlineIcon','_univerInstanceService','getMatrix','setEditing','onStarting','_getDisposePopups','objects','docs-shape-ui.deleteShape','doc.shape.edit.panel','_docDrawingShapeRenderController','_openShapeEditPanel','0.14','docs-shape-ui.objectListPanel.open','univer-grid\x20univer-gap-5\x20univer-p-3','refreshAdjustControls','front','transformByState','with','@univerjs-pro/docs-shape-ui','docs-shape-ui.ribbon.shape-format.wrapping-style','inline','scale','doc.shape.object-list.panel','shapeData','includes','1435536IsfeoN','visible','docs-shape-ui.textWrap.square','0.8','beginPath','_initEditingParams','_applyFormulaAutoFitSize','default','getTransformerByCreate','spaceBelowApply','extensionGroups','_initCommands','_getFocusedShapeAtPoint','fill','setShapeData','_activeShapeModel','getShapeTypeById','isHorizontal','visible$','classType','getPresentation','docs-shape-ui.ribbon.shape-format','isLineShape','_baseShapeWidth','getAutoFitPresentations','adjHandleSize','DocsShapeWrapInFrontOfTextIcon','canvasElement','_activeAdjustInfo','changeEnd$','subscribeEvent','drawing-ui.objectListPanel.moveForward','width','clip','disableObjectsEvent','_disposePopupsByUnit','fillImageSource','completeEditing','_drawRichText','_context','componentKey','canvas','isMainScene','_updateAdjustControlPositions','Arrow','engine','docs-shape-ui.shape-format.style-ribbon-control','changeStart$','_draw','_commandService','reduce','_shapeFloatingToolbarService','_adjustPointObjects','find','DOCS_SHAPE_UI_PLUGIN','data','_formulaShapes','actualHeight','_update','153904vqZjvD','onReady','docs-shape-ui.ribbon.shape-format.text-control','focusDrawing','TopmostIcon','doc.operation.close-doc-shape-format-panel','Copy','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','SolidLine','packageName','_registerComponents','name','onSavingEditorData$','onCommandExecuted','some','calcAdjValues','save','isEditing','behindText','dispose','getDrawingOrder','_loadShapePictureFill','ObjectLayersIcon','scene','angle','_transformCalculateSrcRect','popup','drawing-ui.objectListPanel.dragToReorder','ShapeIcon','getDrawingOKey','WRAP_NONE','getState','isInGroup','moveRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DocsShapeWrapTopBottomIcon','color','viewBound','drawing-ui.objectListPanel.name','strokeWidth','reverse','doc.shape.floating-toolbar','onPointerDown$','backward','_formulaKey','35IzgoWG','entries','style','shape-editor-ui.toolbar.changeShape','custom','attachTransformerTo'];_0x15fc=function(){return _0x51342e;};return _0x15fc();}import{memo as _0x20bf0f,useEffect as _0x335468,useMemo as _0x536a10,useReducer as _0x55cb68,useState as _0x5ed182}from'react';import{UnitAction as _0x4f9b0b,UnitObject as _0xfcd145}from'@univerjs/protocol';function Tr(_0x34c2d6,_0x5a2a5a){const _0x73c9a1=_0x3935;if(_0x5a2a5a){if(_0x394312(_0x34c2d6)&&(_0x5a2a5a[_0x73c9a1(0x3fd)]||_0x5a2a5a[_0x73c9a1(0x20b)]))return{'ln':{'startArrow':_0x5a2a5a[_0x73c9a1(0x3fd)]?{'type':_0x1262bd[_0x73c9a1(0x2c3)],'size':_0x462d37[_0x73c9a1(0x3c1)]}:void 0x0,'endArrow':_0x5a2a5a[_0x73c9a1(0x20b)]?{'type':_0x1262bd['Arrow'],'size':_0x462d37['Large']}:void 0x0}};if(_0x34c2d6===_0x31901e['Rect']&&(_0x5a2a5a[_0x73c9a1(0x394)]||_0x5a2a5a['vertical']))return _0x43ec31({'fill':{'fillType':_0x663a07[_0x73c9a1(0x312)],'color':_0x73c9a1(0x32e)},'isHorizontal':!!_0x5a2a5a['horizontal'],'stroke':{'lineStrokeType':_0x1d7fb3[_0x73c9a1(0x2da)],'width':0x1,'color':_0x73c9a1(0x42a)}});}}function Er(_0x32441b,_0x40e6dd){const _0x316513=_0x3935;var _0x30c2c6;let _0x1f0248=_0x40e6dd[_0x316513(0x1e9)]??'',_0x5d488a=(_0x30c2c6=_0x32441b[_0x316513(0x3d3)](_0x1f0248))==null?void 0x0:_0x30c2c6['getBody']();if(!_0x5d488a)return null;let _0x53f4ae=_0x5d488a[_0x316513(0x399)]??[],_0x1492fa=_0x53f4ae[_0x316513(0x2cc)](_0x31a267=>{const _0x3cfea0=_0x316513;let _0x3ffe2c=_0x51a026(_0x5d488a,_0x31a267);return _0x40e6dd[_0x3cfea0(0x3d9)]>=_0x3ffe2c&&_0x40e6dd['startOffset']<=_0x31a267[_0x3cfea0(0x1d9)];})??_0x53f4ae[_0x53f4ae[_0x316513(0x348)]-0x1];return _0x1492fa?{'paragraphId':_0x1492fa['paragraphId'],'segmentId':_0x1f0248,'position':_0x4206dc[_0x316513(0x277)],'offset':_0x40e6dd['startOffset']-_0x51a026(_0x5d488a,_0x1492fa)}:null;}function Dr(_0x35926f,_0x1cae50,_0x59e0be){const _0x1ae7ed=_0x3935;var _0x15bd16,_0x1e517d;if(!_0x59e0be)return null;let _0x4bace0=(_0x15bd16=_0x35926f['get'](_0x456b85)[_0x1ae7ed(0x359)](_0x1cae50))==null?void 0x0:_0x15bd16[_0x1ae7ed(0x28f)](_0x3a0006)['activeTarget'];if(!_0x4bace0)return null;let _0x2342c4=_0x59e0be===_0x1ae7ed(0x386)?{'startOffset':_0x4bace0[_0x1ae7ed(0x2f3)][_0x1ae7ed(0x36c)],'endOffset':_0x4bace0['moveRange']['endOffset']}:_0x4bace0[_0x1ae7ed(0x320)];return{'startOffset':_0x2342c4['startOffset'],'endOffset':_0x2342c4['endOffset'],'collapsed':_0x2342c4[_0x1ae7ed(0x3d9)]===_0x2342c4[_0x1ae7ed(0x36c)],'segmentId':((_0x1e517d=_0x4bace0['paragraph'])==null?void 0x0:_0x1e517d['segmentId'])??''};}const U={'type':_0x596f1a[_0x33b4ed(0x3f2)],'id':_0x33b4ed(0x236),'handler':async(_0x2af7b9,_0x4e30bb)=>{const _0x5cb0a7=_0x33b4ed;let _0x509cbe=_0x2af7b9[_0x5cb0a7(0x3d8)](_0x1e69fb)[_0x5cb0a7(0x242)](_0x248b26['UNIVER_DOC']);if(!_0x509cbe)return!0x1;let _0x4fda8c=_0x2af7b9['get'](_0x2474c3),_0x2fe49d=_0x509cbe[_0x5cb0a7(0x223)](),_0x29f239=_0x4e30bb[_0x5cb0a7(0x402)]??_0x599b17(),_0x35f305=_0x4e30bb['width']??_0x1544b6,_0x2669e1=_0x4e30bb[_0x5cb0a7(0x323)]??_0x254783,_0x5f4d5c=_0x4e30bb[_0x5cb0a7(0x295)]??Tr(_0x4e30bb[_0x5cb0a7(0x324)],_0x4e30bb[_0x5cb0a7(0x31d)]),_0x16f8fe=Dr(_0x2af7b9,_0x2fe49d,_0x4e30bb[_0x5cb0a7(0x276)])??_0x2af7b9['get'](_0x1507b5)[_0x5cb0a7(0x3f1)]();if(!_0x16f8fe)return!0x1;let _0x1578a3=Er(_0x509cbe,_0x16f8fe);return _0x1578a3?!!_0x4fda8c['syncExecuteCommand'](_0x2eb417['id'],{'unitId':_0x2fe49d,'shapeId':_0x29f239,'shapeType':_0x4e30bb['value'],'shapeData':_0x5f4d5c,'transform':{'width':_0x35f305,'height':_0x2669e1},'placement':{'wrappingStyle':_0x4a5267[_0x5cb0a7(0x1fc)],'anchor':_0x1578a3}}):!0x1;}},W='doc.shape.edit.panel',Or=_0x33b4ed(0x2ac),kr='doc.shape.object-list.panel',Ar=_0x35e317(_0x33b4ed(0x225)),jr=_0x33b4ed(0x1fb),Mr='DocsShapeTextEditorContainer',Nr={'id':_0x33b4ed(0x373),'type':_0x596f1a[_0x33b4ed(0x3f2)],'handler':(_0x3e58df,_0x433063)=>{const _0x125c35=_0x33b4ed;let _0x1b26e5=_0x3e58df[_0x125c35(0x3d8)](_0x1658ad),_0x4c98ce=_0x3e58df[_0x125c35(0x3d8)](_0x5a1674),_0x46e755=_0x3e58df[_0x125c35(0x3d8)](_0x8501d);return(_0x433063==null?void 0x0:_0x433063[_0x125c35(0x324)])===_0x125c35(0x33a)?(_0x1b26e5['close'](kr),!0x0):(_0x1b26e5[_0x125c35(0x40b)]({'id':kr,'header':{'title':_0x4c98ce['t'](_0x125c35(0x3e8))},'children':{'label':kr},'onClose':()=>{const _0x4a0195=_0x125c35;_0x46e755[_0x4a0195(0x2d5)](null);},'width':0x168}),!0x0);}},G={'type':_0x596f1a[_0x33b4ed(0x3ea)],'id':_0x33b4ed(0x34f),'handler'(){return!0x0;}};function Pr(_0x325631){const _0x5e7f62=_0x33b4ed;let _0xa20369=_0x325631['get'](_0x8501d)['getFocusDrawings'](),_0x27690f=_0xa20369['length']===0x1?_0xa20369[0x0]:null;if(!_0x27690f||_0x27690f[_0x5e7f62(0x221)]!==_0x197ccb[_0x5e7f62(0x374)])return null;let _0x2ff910=_0x325631[_0x5e7f62(0x3d8)](_0x2b6cfd),_0x559d7c=_0x2ff910['getShapeTypeById'](_0x27690f[_0x5e7f62(0x1c7)],_0x27690f['subUnitId'],_0x27690f[_0x5e7f62(0x310)]),_0x1a1a3e=_0x2ff910[_0x5e7f62(0x1e0)](_0x27690f[_0x5e7f62(0x1c7)],_0x27690f[_0x5e7f62(0x1c6)],_0x27690f['drawingId']);return _0x559d7c===void 0x0||!_0x1a1a3e?null:{'drawing':_0x27690f,'shapeData':_0x1a1a3e,'shapeType':_0x559d7c};}const Fr={'id':_0x33b4ed(0x3ca),'type':_0x596f1a[_0x33b4ed(0x3ea)],'handler':(_0x110a9d,_0xd60ef)=>{const _0x131327=_0x33b4ed;let _0x588ca4=Pr(_0x110a9d),_0x542581=_0x630a9c((_0xd60ef==null?void 0x0:_0xd60ef['presetId'])??(_0xd60ef==null?void 0x0:_0xd60ef[_0x131327(0x324)])??'');if(!_0x588ca4||!_0x542581||_0x542581[_0x131327(0x392)]!==_0x416d3a(_0x588ca4['shapeData']))return!0x1;let _0x1509c3=_0x17a77d(_0x588ca4['shapeData'],_0x542581);if(!_0x1509c3)return!0x1;let {drawing:_0x5c6f81}=_0x588ca4;return _0x110a9d[_0x131327(0x3d8)](_0x2474c3)[_0x131327(0x39c)](_0x1a49e3['id'],{'unitId':_0x5c6f81[_0x131327(0x1c7)],'shapeId':_0x5c6f81[_0x131327(0x310)],'shapeData':_0x1509c3,'oldShapeJSON':{'oldShapeData':_0x588ca4[_0x131327(0x295)]}});}},Ir={'id':_0x33b4ed(0x357),'type':_0x596f1a[_0x33b4ed(0x3ea)],'handler':(_0xc6f848,_0x32682d)=>{const _0x2da608=_0x33b4ed;let _0x3f8a8d=Pr(_0xc6f848),_0x336a69=(_0x32682d==null?void 0x0:_0x32682d['shapeType'])??(_0x32682d==null?void 0x0:_0x32682d['value']);if(!_0x3f8a8d||!_0x336a69||_0x394312(_0x3f8a8d[_0x2da608(0x243)])||_0x394312(_0x336a69))return!0x1;let _0xb577ec=_0x1ae742(_0x3f8a8d[_0x2da608(0x295)],_0x336a69);if(!_0xb577ec)return!0x1;let {drawing:_0x53569d}=_0x3f8a8d;return _0xc6f848['get'](_0x2474c3)[_0x2da608(0x39c)](_0x1a49e3['id'],{'unitId':_0x53569d[_0x2da608(0x1c7)],'shapeId':_0x53569d[_0x2da608(0x310)],'shapeType':_0x336a69,'shapeData':_0xb577ec,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3f8a8d[_0x2da608(0x243)],'oldShapeData':_0x3f8a8d[_0x2da608(0x295)]}});}};function K(_0x81995c,_0x3f3e79){return function(_0x7b0f79,_0x434bf0){_0x3f3e79(_0x7b0f79,_0x434bf0,_0x81995c);};}function q(_0x3a2baa,_0x60b915,_0x2077b0,_0x4ac5d3){const _0x5dd28d=_0x33b4ed;var _0xb77e0e=arguments[_0x5dd28d(0x348)],_0x48fc50=_0xb77e0e<0x3?_0x60b915:_0x4ac5d3===null?_0x4ac5d3=Object[_0x5dd28d(0x3ae)](_0x60b915,_0x2077b0):_0x4ac5d3,_0x34c42b;if(typeof Reflect==_0x5dd28d(0x33d)&&typeof Reflect[_0x5dd28d(0x25c)]==_0x5dd28d(0x377))_0x48fc50=Reflect[_0x5dd28d(0x25c)](_0x3a2baa,_0x60b915,_0x2077b0,_0x4ac5d3);else{for(var _0x4b870f=_0x3a2baa['length']-0x1;_0x4b870f>=0x0;_0x4b870f--)(_0x34c42b=_0x3a2baa[_0x4b870f])&&(_0x48fc50=(_0xb77e0e<0x3?_0x34c42b(_0x48fc50):_0xb77e0e>0x3?_0x34c42b(_0x60b915,_0x2077b0,_0x48fc50):_0x34c42b(_0x60b915,_0x2077b0))||_0x48fc50);}return _0xb77e0e>0x3&&_0x48fc50&&Object[_0x5dd28d(0x403)](_0x60b915,_0x2077b0,_0x48fc50),_0x48fc50;}let J=class extends _0x256e8f{constructor(_0x3090d1,_0x2d2c8f){const _0x1f1e28=_0x33b4ed;super(),this[_0x1f1e28(0x381)]=_0x3090d1,this['_drawingManagerService']=_0x2d2c8f,this[_0x1f1e28(0x1e4)](),this[_0x1f1e28(0x381)][_0x1f1e28(0x32f)](!0x0),this[_0x1f1e28(0x39a)]({'dispose':()=>this[_0x1f1e28(0x381)][_0x1f1e28(0x32f)](!0x1)});}[_0x33b4ed(0x1e4)](){const _0x4998ef=_0x33b4ed;let _0x406b40=new Map(),_0x45e216=this[_0x4998ef(0x381)]['registerClipDelegate']((_0x3876ce,_0x57ddb7,_0x226ce1,_0x3442b7,_0x2bf80e)=>{const _0x444d10=_0x4998ef;let _0x5cae3d=_0x57ddb7;if(_0x5cae3d===_0x31901e[_0x444d10(0x224)]||_0x57ddb7===_0x444d10(0x303))return!0x1;try{let _0x17d03d=_0x406b40[_0x444d10(0x3d8)](_0x57ddb7);return _0x17d03d||(_0x17d03d=new _0x42b479(_0x5cae3d,_0x444d10(0x1d1)+_0x57ddb7),_0x406b40[_0x444d10(0x328)](_0x57ddb7,_0x17d03d)),_0x17d03d['clearAdjustValue'](),_0x2bf80e&&Object[_0x444d10(0x316)](_0x2bf80e)[_0x444d10(0x348)]>0x0&&_0x17d03d[_0x444d10(0x2a5)]({'adjustValues':_0x2bf80e},!0x0),_0x17d03d[_0x444d10(0x395)]({'width':_0x226ce1,'height':_0x3442b7}),_0x17d03d[_0x444d10(0x1d4)](_0x3876ce,{'left':0x0,'top':0x0,'width':_0x226ce1,'height':_0x3442b7});}catch{return!0x1;}});this[_0x4998ef(0x39a)](_0x45e216),this[_0x4998ef(0x39a)]({'dispose':()=>_0x406b40['clear']()});}[_0x33b4ed(0x256)](_0xc82511,_0x3659f0,_0x15b18f,_0x5e1805,_0x1a9d54){const _0x38bbbf=_0x33b4ed;let _0x28a5c4=this['_drawingManagerService'][_0x38bbbf(0x3a4)](_0xc82511,_0x3659f0)[_0x15b18f];_0x28a5c4&&_0x28a5c4[_0x38bbbf(0x221)]===_0x197ccb[_0x38bbbf(0x3c6)]&&this[_0x38bbbf(0x356)][_0x38bbbf(0x40c)]([{..._0x28a5c4,'prstGeom':_0x5e1805,'adjustValues':_0x1a9d54}]);}};J=q([K(0x0,_0x179bf2(_0x2426eb)),K(0x1,_0x179bf2(_0x8501d))],J);const Lr=_0x33b4ed(0x1ee),Rr=_0x33b4ed(0x31e);function zr({onShapeClick:_0x502460,excludeGroups:_0xb771d2}){return _0x204a1f(_0x36a009,{'excludeGroups':_0xb771d2,'onShapeClick':_0x502460,'scrollContainer':'parent'});}function Br(){let _0x397ed4=_0x4f0443(_0x8501d),_0x1f6c22=_0x4f0443(J);return _0x40d72c=>{const _0x2a786e=_0x3935;let _0x5df29f=_0x397ed4['getFocusDrawings']()['find'](_0x14cfa5=>_0x14cfa5[_0x2a786e(0x221)]===_0x197ccb[_0x2a786e(0x3c6)]);_0x5df29f&&_0x1f6c22[_0x2a786e(0x256)](_0x5df29f['unitId'],_0x5df29f[_0x2a786e(0x1c6)],_0x5df29f[_0x2a786e(0x310)],_0x40d72c['type']);};}function Vr(){const _0x282aee=_0x33b4ed;let _0xbb5b29=Br();return _0x204a1f(_0x1b348e,{'buttonLabel':'docs-shape-ui.crop.shape','excludeGroups':[_0x18936a[_0x282aee(0x372)]],'onShapeClick':_0xbb5b29});}function Hr(){const _0x4df970=_0x33b4ed;let _0x26401b=_0x4f0443(_0x497683),_0x22cd64=_0x4f0443(_0x8501d),_0x372499=_0x4f0443(_0x1e69fb),_0x90ae2a=_0x22cd64['getFocusDrawings']()[0x0],_0x544fb3=_0x90ae2a?_0x372499['getUnitType'](_0x90ae2a[_0x4df970(0x1c7)]):void 0x0,_0x4b7bd1=_0x544fb3===_0x248b26[_0x4df970(0x1bd)]?Rr:_0x544fb3===_0x248b26['UNIVER_SHEET']?_0x4df970(0x249):void 0x0,_0x379238=_0x4b7bd1?_0x26401b[_0x4df970(0x3d8)](_0x4b7bd1):void 0x0;return _0x379238?_0x204a1f(_0x379238,{}):null;}function Ur({paragraphMenuPlacement:_0x2380af,PickerComponent:_0x4952db=zr}){let _0x5cd163=_0x4f0443(_0x2474c3);return _0x204a1f(_0x4952db,{'onShapeClick':_0x276ee1=>{const _0x2f9b2d=_0x3935;_0x5cd163[_0x2f9b2d(0x39c)](U['id'],{'paragraphMenuPlacement':_0x2380af,'value':_0x276ee1['type'],'enhanceParams':{'endArrow':_0x276ee1['endArrow'],'startArrow':_0x276ee1[_0x2f9b2d(0x3fd)],'horizontal':_0x276ee1[_0x2f9b2d(0x394)],'vertical':_0x276ee1['vertical']}});}});}function Wr(_0x32adb4){const _0x32ae73=_0x33b4ed;return _0x2d4fa9=>({'id':U['id'],'type':_0x7efdf3[_0x32ae73(0x38a)],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x32adb4?{'id':U['id'],'paragraphMenuPlacement':_0x32adb4}:{'id':U['id']}}}],'icon':'ShapeIcon','title':'docs-shape-ui.insertShape','tooltip':_0x32ae73(0x34a),'hidden$':_0x1a292c(_0x2d4fa9,_0x248b26[_0x32ae73(0x1bd)])});}const Gr=Wr(),Kr=Wr(_0x33b4ed(0x386)),qr=Wr('target');function Jr(_0x4e4508){const _0x386bf7=_0x33b4ed;let _0x526a15=_0x4e4508[_0x386bf7(0x3d8)](_0x1658ad);return{'id':Nr['id'],'type':_0x7efdf3[_0x386bf7(0x322)],'icon':_0x386bf7(0x2e8),'title':_0x386bf7(0x28a),'tooltip':_0x386bf7(0x28a),'activated$':_0x34fb2d(()=>_0x526a15[_0x386bf7(0x409)][_0x386bf7(0x33b)](_0x24843f(_0x526a15[_0x386bf7(0x20f)]),_0x2d1e10(_0x502c28=>_0x502c28[_0x386bf7(0x298)]===!0x0&&_0x502c28['id']===_0x386bf7(0x294)),_0x53e830())),'hidden$':_0x1a292c(_0x4e4508,_0x248b26[_0x386bf7(0x1bd)])};}function Yr(_0x5ad7ed,_0x16f54a,_0x1d1ea1,_0x407b6a,_0x3071f9,_0x4f93e1){let _0x1c2c31={'unitId':_0x16f54a,'shapeId':_0x407b6a,'shapeData':_0x4f93e1,'oldShapeJSON':_0x3071f9};return _0x5ad7ed['executeCommand'](_0x1a49e3['id'],_0x1c2c31);}function Xr(_0x3d0ea8,_0x5e6a4d,_0x15d605,_0x531f83,_0x469564,_0x3f58d8){const _0x1f5c91=_0x33b4ed;let _0x4266ed={'unitId':_0x5e6a4d,'shapeId':_0x531f83,'shapeData':_0x3f58d8,'oldShapeJSON':_0x469564};return _0x3d0ea8[_0x1f5c91(0x39c)](_0x1a49e3['id'],_0x4266ed);}const Zr=_0x33b4ed(0x336),Qr=_0x33b4ed(0x2c5),$r=_0x33b4ed(0x42d),ei=_0x33b4ed(0x35f),ti=_0x33b4ed(0x21c),ni=[{'value':_0x4a5267[_0x33b4ed(0x1fc)],'label':_0x33b4ed(0x21b),'icon':_0x33b4ed(0x27e)},{'value':_0x4a5267['WRAP_SQUARE'],'label':_0x33b4ed(0x299),'icon':'DocsShapeWrapSquareIcon'},{'value':_0x4a5267[_0x33b4ed(0x388)],'label':_0x33b4ed(0x232),'icon':_0x33b4ed(0x2f5)},{'value':_0x4a5267[_0x33b4ed(0x1eb)],'label':_0x33b4ed(0x1de),'icon':_0x33b4ed(0x3c7)},{'value':_0x4a5267[_0x33b4ed(0x1ce)],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0x33b4ed(0x2b1)}];function ri(){let _0x7f241c=_0x4f0443(_0x2474c3),_0xa14d99=_0x4f0443(_0x8501d),_0x2c5638=_0x4f0443(_0x2b6cfd),_0x18ed67=()=>{const _0x82b94a=_0x3935;var _0x50a127;let _0x3e79d6=_0xa14d99[_0x82b94a(0x26c)]();if(_0x3e79d6[_0x82b94a(0x348)]!==0x1||((_0x50a127=_0x3e79d6[0x0])==null?void 0x0:_0x50a127['drawingType'])!==_0x197ccb[_0x82b94a(0x374)])return null;let {unitId:_0x3ddb82,subUnitId:_0x5f129e,drawingId:_0x5d5e6a}=_0x3e79d6[0x0],_0x4f9958=_0x2c5638['getShapeTypeById'](_0x3ddb82,_0x5f129e,_0x5d5e6a),_0x2e0786=_0x2c5638[_0x82b94a(0x1e0)](_0x3ddb82,_0x5f129e,_0x5d5e6a);return _0x4f9958===void 0x0||!_0x2e0786?null:{'unitId':_0x3ddb82,'subUnitId':_0x5f129e,'drawingId':_0x5d5e6a,'shapeType':_0x4f9958,'shapeData':_0x2e0786};},_0x4075b2=_0x182392(()=>new _0x5c7fe4(_0x54673e=>{const _0x5c8496=_0x3935;let _0x4c77b1=()=>_0x54673e['next'](_0x18ed67()),_0x5ce6c5=_0xa14d99[_0x5c8496(0x1d8)][_0x5c8496(0x364)](_0x4c77b1),_0x2fdc76=_0x7f241c[_0x5c8496(0x2df)](_0x3d4854=>{_0x3d4854['id']===_0xee5b39['id']&&_0x4c77b1();});return _0x4c77b1(),()=>{const _0x368b0b=_0x5c8496;_0x5ce6c5[_0x368b0b(0x1f7)](),_0x2fdc76[_0x368b0b(0x2e5)]();};}),_0x18ed67(),!0x1,[_0x7f241c,_0x2c5638,_0xa14d99]);return{'selection':_0x4075b2,'updateShapeData':_0xe3666d=>{const _0x19ecbd=_0x3935;_0x4075b2&&Yr(_0x7f241c,_0x4075b2[_0x19ecbd(0x1c7)],_0x4075b2['subUnitId'],_0x4075b2[_0x19ecbd(0x310)],{'oldShapeData':_0x4075b2['shapeData']},_0xe3666d);}};}function ii(){const _0x22b899=_0x33b4ed;let {selection:_0x414b81,updateShapeData:_0x103ad7}=ri();return _0x414b81?_0x204a1f(_0x45d8f7,{'shapeData':_0x414b81[_0x22b899(0x295)],'shapeType':_0x414b81[_0x22b899(0x243)],'onUpdateShapeData':_0x103ad7}):null;}function ai(){const _0x1f828b=_0x33b4ed;let _0x4d7d2c=_0x4f0443(_0x2474c3),_0x306da0=_0x4f0443(_0x5a1674),{selection:_0x9af48c}=ri();return _0x9af48c?_0x204a1f(_0x1d6539,{'type':_0x416d3a(_0x9af48c[_0x1f828b(0x295)]),'ariaLabel':_0x306da0['t'](_0x1f828b(0x39f)),'activePresetId':_0x378bff(_0x9af48c['shapeData']),'onSelect':_0x418aba=>_0x4d7d2c[_0x1f828b(0x39c)](Fr['id'],{'presetId':_0x418aba})}):null;}function oi(){const _0x1a6c04=_0x33b4ed;let {selection:_0x595cf2,updateShapeData:_0x5ba421}=ri();return _0x595cf2?_0x204a1f(_0x1e0283,{'fontFamilyPopupDataComponent':'docs-shape-format-font-family-menu','shapeData':_0x595cf2[_0x1a6c04(0x295)],'onUpdateShapeData':_0x5ba421}):null;}function si(){const _0x2712d6=_0x33b4ed;var _0x504dad;let {selection:_0x2bf915,updateShapeData:_0x4c668e}=ri(),_0xbe3a8e=_0x1abe68({'hostType':_0x248b26['UNIVER_DOC'],'unitId':(_0x2bf915==null?void 0x0:_0x2bf915['unitId'])??'','subUnitId':(_0x2bf915==null?void 0x0:_0x2bf915[_0x2712d6(0x1c6)])??'','shapeId':(_0x2bf915==null?void 0x0:_0x2bf915[_0x2712d6(0x310)])??'','shapeData':_0x2bf915==null?void 0x0:_0x2bf915['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x2712d6(0x211),'onUpdateBinding':_0x97027c=>_0x4c668e({'formulaBinding':_0x97027c})}),_0x41b7fc=((_0x504dad=_0xbe3a8e[_0x2712d6(0x2a1)])==null?void 0x0:_0x504dad['flatMap'](_0xc10e21=>_0xc10e21['actions'])[_0x2712d6(0x319)](_0x40091c=>_0x40091c[_0x2712d6(0x298)]!==!0x1))??[];return _0x2bf915!=null&&_0x2bf915[_0x2712d6(0x295)][_0x2712d6(0x1ea)]?_0x204a1f(_0x3315fc,{'actions':_0x41b7fc,'panel':_0xbe3a8e[_0x2712d6(0x32c)]}):null;}function ci({value:_0xaadcb8}){const _0x5bab30=_0x33b4ed;let _0x41cf4c=_0x4f0443(_0x5a1674),_0x152ae4=ni[_0x5bab30(0x2cc)](_0x219934=>_0x219934[_0x5bab30(0x324)]===_0xaadcb8)??ni[0x0];return _0x152ae4?_0x204a1f(_0x5bab30(0x3da),{'children':_0x41cf4c['t'](_0x152ae4[_0x5bab30(0x413)])}):null;}const li=_0x33b4ed(0x23c),ui=_0x33b4ed(0x2d4),di=_0x33b4ed(0x214),fi=_0x33b4ed(0x3aa),pi=_0x33b4ed(0x3cc),mi=_0x33b4ed(0x210),hi='docs-shape-ui.ribbon.shape-format.arrange-back',gi=_0x33b4ed(0x291);function _i(_0x52fd80){const _0x5c9341=_0x33b4ed;let _0x2f1a99=_0x52fd80['get'](_0x2474c3),_0x5c3b02=_0x52fd80[_0x5c9341(0x3d8)](_0x8501d),_0x4d6b7f=_0x52fd80['get'](_0x2b6cfd);return new _0x5c7fe4(_0x478847=>{const _0x424e35=_0x5c9341;let _0x407543=()=>{const _0x38e553=_0x3935;let _0x2b79ab=Y(_0x52fd80),_0x5cadcc=_0x2b79ab?_0x4d6b7f[_0x38e553(0x1e0)](_0x2b79ab[_0x38e553(0x1c7)],_0x2b79ab[_0x38e553(0x1c6)],_0x2b79ab[_0x38e553(0x310)]):null;_0x478847['next'](_0x5cadcc?_0x378bff(_0x5cadcc)??'':'');},_0x439edd=_0x5c3b02['focus$'][_0x424e35(0x364)](_0x407543),_0x18058c=_0x2f1a99[_0x424e35(0x2df)](_0x451404=>{_0x451404['id']===_0xee5b39['id']&&_0x407543();});return _0x407543(),()=>{const _0x11f1bc=_0x424e35;_0x439edd[_0x11f1bc(0x1f7)](),_0x18058c['dispose']();};});}function Y(_0x3409fd){const _0x4c2cc6=_0x33b4ed;var _0x1894d0;let _0x5ab841=_0x3409fd[_0x4c2cc6(0x3d8)](_0x8501d)[_0x4c2cc6(0x26c)]();return _0x5ab841[_0x4c2cc6(0x348)]===0x1&&((_0x1894d0=_0x5ab841[0x0])==null?void 0x0:_0x1894d0[_0x4c2cc6(0x221)])===_0x197ccb[_0x4c2cc6(0x374)]?_0x5ab841[0x0]:null;}function vi(_0x1f2aa1){const _0x3e0468=_0x33b4ed;return(_0x1f2aa1==null?void 0x0:_0x1f2aa1['layoutType'])===_0x2cd4cd[_0x3e0468(0x2f0)]?_0x1f2aa1['behindDoc']===_0x51c9cc[_0x3e0468(0x424)]?_0x4a5267[_0x3e0468(0x1eb)]:_0x4a5267[_0x3e0468(0x1ce)]:(_0x1f2aa1==null?void 0x0:_0x1f2aa1[_0x3e0468(0x3f3)])===_0x2cd4cd[_0x3e0468(0x3fa)]?_0x4a5267[_0x3e0468(0x3fa)]:(_0x1f2aa1==null?void 0x0:_0x1f2aa1['layoutType'])===_0x2cd4cd[_0x3e0468(0x388)]?_0x4a5267['WRAP_TOP_AND_BOTTOM']:_0x4a5267[_0x3e0468(0x1fc)];}function yi(_0x166846){const _0x69efbf=_0x33b4ed;let _0x50cb48=_0x166846[_0x69efbf(0x3d8)](_0x2474c3),_0x20ca9f=_0x166846['get'](_0x8501d),_0x56c9a6=_0x166846[_0x69efbf(0x3d8)](_0x1e69fb);return new _0x5c7fe4(_0x685436=>{const _0x30b58d=_0x69efbf;let _0x3b06f2=()=>{const _0x264c83=_0x3935;var _0x10730a;let _0x53ab48=Y(_0x166846),_0x128511=_0x53ab48?_0x56c9a6['getUnit'](_0x53ab48['unitId'],_0x248b26[_0x264c83(0x1bd)]):void 0x0;_0x685436['next'](vi(_0x53ab48?_0x128511==null||(_0x10730a=_0x128511[_0x264c83(0x213)]()[_0x264c83(0x258)])==null?void 0x0:_0x10730a[_0x53ab48[_0x264c83(0x310)]]:void 0x0));},_0x212c8f=_0x20ca9f[_0x30b58d(0x1d8)][_0x30b58d(0x364)](_0x3b06f2),_0x39f1ed=_0x50cb48['onCommandExecuted'](_0x18cd10=>{_0x18cd10['id']===_0x3ee887['id']&&_0x3b06f2();});return _0x3b06f2(),()=>{const _0x202c11=_0x30b58d;_0x212c8f['unsubscribe'](),_0x39f1ed[_0x202c11(0x2e5)]();};})[_0x69efbf(0x33b)](_0x53e830());}function bi(_0x7b97b0,_0x4fae7d=!0x1){const _0x54c4f2=_0x33b4ed;let _0x8ba394=_0x7b97b0['get'](_0x2474c3),_0x555d55=_0x7b97b0[_0x54c4f2(0x3d8)](_0x8501d),_0x5722b2=_0x7b97b0['get'](_0x2b6cfd);return new _0x5c7fe4(_0x4bd208=>{const _0x235b3d=_0x54c4f2;let _0x2f103b=()=>{const _0x1cbaac=_0x3935;let _0x1434e1=Y(_0x7b97b0);if(!_0x1434e1){_0x4bd208[_0x1cbaac(0x339)](!0x0);return;}let _0x597d0c=_0x5722b2['getShapeDataById'](_0x1434e1[_0x1cbaac(0x1c7)],_0x1434e1[_0x1cbaac(0x1c6)],_0x1434e1[_0x1cbaac(0x310)]);_0x4bd208['next'](!_0x597d0c||_0x4fae7d&&_0x597d0c['formulaBinding']==null);},_0x5a9e8b=_0x555d55[_0x235b3d(0x1d8)]['subscribe'](_0x2f103b),_0x5cfb99=_0x8ba394[_0x235b3d(0x2df)](_0x2addef=>{_0x2addef['id']===_0xee5b39['id']&&_0x2f103b();});return _0x2f103b(),()=>{const _0x4d2daa=_0x235b3d;_0x5a9e8b['unsubscribe'](),_0x5cfb99[_0x4d2daa(0x2e5)]();};});}function xi(_0x1334e2){const _0x79c6c=_0x33b4ed;let _0x56b1c9=_0x1334e2[_0x79c6c(0x3d8)](_0x8501d),_0x3b1621=_0x1334e2[_0x79c6c(0x3d8)](_0x2b6cfd);return _0x56b1c9[_0x79c6c(0x1d8)]['pipe'](_0x24843f(_0x56b1c9[_0x79c6c(0x26c)]()),_0x2d1e10(()=>{const _0x24e2f8=_0x79c6c;let _0x56a50b=Y(_0x1334e2),_0x2afced=_0x56a50b?_0x3b1621['getShapeTypeById'](_0x56a50b[_0x24e2f8(0x1c7)],_0x56a50b[_0x24e2f8(0x1c6)],_0x56a50b[_0x24e2f8(0x310)]):void 0x0;return _0x2afced===void 0x0||_0x394312(_0x2afced);}));}function Si(_0x27b57c){const _0x4251e5=_0x33b4ed;return{'id':Fr['id'],'type':_0x7efdf3[_0x4251e5(0x38a)],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x4251e5(0x208),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x27b57c),'hidden$':bi(_0x27b57c)};}function Ci(_0x129f3e){const _0x3a7cad=_0x33b4ed;return{'id':Ir['id'],'type':_0x7efdf3[_0x3a7cad(0x38a)],'icon':_0x3a7cad(0x2ee),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x3a7cad(0x302),'slot':!0x0,'selections':[{'label':{'name':_0x52abb9,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':xi(_0x129f3e)};}function wi(_0x2a8d10,_0x376254,_0x2dbdbe=!0x1){return _0x2ef948=>({'id':_0x2a8d10,'type':_0x7efdf3['BUTTON'],'label':{'name':_0x376254,'hoverable':!0x1,'selectable':!0x1},'hidden$':bi(_0x2ef948,_0x2dbdbe)});}const Ti=wi(li,Qr),Ei=wi(ui,$r),Di=wi(di,ei,!0x0);function Oi(_0x53b946){const _0x10ad5e=_0x33b4ed;return{'id':gi,'type':_0x7efdf3[_0x10ad5e(0x38a)],'icon':ni[0x0][_0x10ad5e(0x26e)],'label':ti,'selectionsCommandId':_0x5ef581['id'],'selections':ni[_0x10ad5e(0x41d)](({icon:_0x539c71,label:_0x174f81,value:_0x1240fc})=>({'value':_0x1240fc,'label':_0x174f81,'icon':_0x539c71,'params':()=>{const _0x52a716=_0x10ad5e;let _0x55f9d7=Y(_0x53b946);return _0x55f9d7?{'unitId':_0x55f9d7[_0x52a716(0x1c7)],'subUnitId':_0x55f9d7[_0x52a716(0x1c6)],'drawings':[{'unitId':_0x55f9d7[_0x52a716(0x1c7)],'subUnitId':_0x55f9d7[_0x52a716(0x1c6)],'drawingId':_0x55f9d7['drawingId']}],'wrappingStyle':_0x1240fc}:void 0x0;}})),'value$':yi(_0x53b946),'hidden$':bi(_0x53b946)};}function ki(_0x4c09bf,_0x960969,_0x30940c,_0x1108b6){const _0x588064=_0x33b4ed;return _0x5332fa=>({'id':_0x4c09bf,'commandId':_0x207919['id'],'type':_0x7efdf3[_0x588064(0x322)],'icon':_0x30940c,'title':_0x1108b6,'tooltip':_0x1108b6,'hidden$':bi(_0x5332fa),'params':()=>{const _0x5f20a3=_0x588064;let _0x149cf5=Y(_0x5332fa);return _0x149cf5?{'unitId':_0x149cf5[_0x5f20a3(0x1c7)],'subUnitId':_0x149cf5[_0x5f20a3(0x1c6)],'drawingIds':[_0x149cf5[_0x5f20a3(0x310)]],'arrangeType':_0x960969}:void 0x0;}});}const Ai=ki(fi,_0x2adc43[_0x33b4ed(0x345)],_0x33b4ed(0x218),_0x33b4ed(0x1c3)),ji=ki(pi,_0x2adc43['backward'],_0x33b4ed(0x408),_0x33b4ed(0x3fe)),Mi=ki(mi,_0x2adc43[_0x33b4ed(0x28d)],_0x33b4ed(0x2d6),_0x33b4ed(0x3f7)),Ni=ki(hi,_0x2adc43[_0x33b4ed(0x3d2)],_0x33b4ed(0x383),'shape-editor-ui.arrange.back');function Pi(_0x4020e9){const _0x31eb18=_0x33b4ed;let _0x22d28f=_0x4020e9[_0x31eb18(0x3d8)](_0x1658ad);return{'activated$':_0x34fb2d(()=>_0x22d28f['sidebarOptions$']['pipe'](_0x24843f(_0x22d28f[_0x31eb18(0x20f)]),_0x2d1e10(_0x162851=>_0x162851[_0x31eb18(0x298)]===!0x0&&_0x162851['id']===_0x31eb18(0x286)),_0x53e830())),'id':G['id'],'type':_0x7efdf3[_0x31eb18(0x322)],'icon':_0x31eb18(0x212),'title':_0x31eb18(0x201),'tooltip':_0x31eb18(0x201),'hidden$':bi(_0x4020e9),'params':()=>{const _0x2678f=_0x31eb18;let _0x38700d=Y(_0x4020e9);return _0x38700d?{'unitId':_0x38700d[_0x2678f(0x1c7)],'subUnitId':_0x38700d[_0x2678f(0x1c6)],'drawingId':_0x38700d['drawingId']}:void 0x0;}};}const Fi={[_0x5160ee[_0x33b4ed(0x30b)]]:{[Or]:{'order':0x64,'title':_0x33b4ed(0x201),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Fr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Si},[Ir['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ti}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':Oi},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ai},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':ji},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Mi},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Ni}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Pi},[_0xe63565['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x43dbc6}}}}},Ii={[_0x2b5ce5[_0x33b4ed(0x3a8)]]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x58cb23=>({...Gr(_0x58cb23),'title':void 0x0})}},[_0x2b5ce5['OTHERS']]:{[Nr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x48c8ed[_0x33b4ed(0x31c)]]:{[_0x441439[_0x33b4ed(0x228)]]:{[_0x57f28d]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x2c757d]:{[_0x441439[_0x33b4ed(0x228)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x2ca167]:{[_0x441439[_0x33b4ed(0x228)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x1dc7cd]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0x39bc40]:{'insert':{[U['id']+_0x33b4ed(0x407)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Li=_0x33b4ed(0x290),Ri='1.4.0';const zi={'type':_0x596f1a[_0x33b4ed(0x3ea)],'id':_0x33b4ed(0x2d7),'handler'(){return!0x0;}},Bi=_0x33b4ed(0x418),Vi={};function Hi(_0x22ba91){'@babel/helpers - typeof';const _0x45d959=_0x33b4ed;return Hi=typeof Symbol=='function'&&typeof Symbol[_0x45d959(0x1c9)]=='symbol'?function(_0x20b2cc){return typeof _0x20b2cc;}:function(_0x290ffe){const _0x3bea12=_0x45d959;return _0x290ffe&&typeof Symbol==_0x3bea12(0x377)&&_0x290ffe[_0x3bea12(0x35b)]===Symbol&&_0x290ffe!==Symbol['prototype']?_0x3bea12(0x3b6):typeof _0x290ffe;},Hi(_0x22ba91);}function Ui(_0xa21129,_0x21f3a6){const _0x2ff356=_0x33b4ed;if(Hi(_0xa21129)!=_0x2ff356(0x33d)||!_0xa21129)return _0xa21129;var _0x586178=_0xa21129[Symbol[_0x2ff356(0x3e5)]];if(_0x586178!==void 0x0){var _0x446d59=_0x586178['call'](_0xa21129,_0x21f3a6||_0x2ff356(0x29e));if(Hi(_0x446d59)!=_0x2ff356(0x33d))return _0x446d59;throw TypeError(_0x2ff356(0x2f4));}return(_0x21f3a6==='string'?String:Number)(_0xa21129);}function Wi(_0x2a7a48){var _0x46075e=Ui(_0x2a7a48,'string');return Hi(_0x46075e)=='symbol'?_0x46075e:_0x46075e+'';}function X(_0x4efc56,_0x17d3bb,_0x3462a7){const _0x4308d6=_0x33b4ed;return(_0x17d3bb=Wi(_0x17d3bb))in _0x4efc56?Object[_0x4308d6(0x403)](_0x4efc56,_0x17d3bb,{'value':_0x3462a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4efc56[_0x17d3bb]=_0x3462a7,_0x4efc56;}var Gi=class extends _0x3c37d7{constructor(_0xb2f080,_0x4ba903){const _0x12c863=_0x33b4ed;super(_0xb2f080,_0x4ba903),X(this,_0x12c863(0x40f),null),X(this,'_adjName',null),X(this,_0x12c863(0x369),null),X(this,_0x12c863(0x42c),null),_0x4ba903&&this[_0x12c863(0x271)](_0x4ba903);}[_0x33b4ed(0x1c5)](){const _0x34fa14=_0x33b4ed;return{'unitId':this[_0x34fa14(0x369)],'subUnitId':this[_0x34fa14(0x42c)],'drawingId':this[_0x34fa14(0x40f)]};}[_0x33b4ed(0x271)](_0x305600){const _0x3ad42e=_0x33b4ed;_0x305600[_0x3ad42e(0x402)]!==void 0x0&&(this[_0x3ad42e(0x40f)]=_0x305600[_0x3ad42e(0x402)]),_0x305600[_0x3ad42e(0x40d)]!==void 0x0&&(this[_0x3ad42e(0x231)]=_0x305600[_0x3ad42e(0x40d)]),_0x305600[_0x3ad42e(0x1c7)]!==void 0x0&&(this[_0x3ad42e(0x369)]=_0x305600['unitId']),_0x305600[_0x3ad42e(0x1c6)]!==void 0x0&&(this[_0x3ad42e(0x42c)]=_0x305600[_0x3ad42e(0x1c6)]),this[_0x3ad42e(0x28e)]({'width':_0x305600[_0x3ad42e(0x2b7)],'height':_0x305600[_0x3ad42e(0x323)]});}[_0x33b4ed(0x2c7)](_0x35fd05){const _0x4fe73f=_0x33b4ed;_0x3776a7['drawWith'](_0x35fd05,{'radius':_0x45f006['adjHandleSize'],'fill':_0x45f006['adjHandleFill'],'stroke':_0x45f006[_0x4fe73f(0x36d)],'strokeWidth':0x1,'evented':!0x0});}};function Ki(_0x1e75fc,_0x1b2e4f,_0x3aca36){const _0x408144=_0x33b4ed;let _0xaf3858={..._0x1b2e4f,'dataModel':{..._0x1b2e4f[_0x408144(0x1d5)]??{},..._0x3aca36?{'doc':_0x3aca36}:null}},_0x5ca6ce=_0x2cef43(_0x1e75fc,_0xaf3858),_0x23b13f=_0x3f29ab(_0x5ca6ce);return{'clip':_0x4917b7(_0x5ca6ce,_0x23b13f),'wrapStrategy':_0x23b13f};}var Z=class extends _0x3c37d7{constructor(_0x138869,_0x506712){const _0x5dacbe=_0x33b4ed;super(_0x138869,_0x506712),X(this,_0x5dacbe(0x3ec),[]),X(this,_0x5dacbe(0x37e),void 0x0),X(this,_0x5dacbe(0x3ee),new _0x111cfb(()=>this[_0x5dacbe(0x3dd)](!0x0),()=>this[_0x5dacbe(0x29d)]())),X(this,_0x5dacbe(0x2eb),!0x0),X(this,'_drawingType',_0x197ccb[_0x5dacbe(0x374)]),X(this,_0x5dacbe(0x307),!0x0),this['_props']={..._0x506712},this[_0x5dacbe(0x3ee)]['setPresentation'](_0x506712[_0x5dacbe(0x3e1)],_0x506712[_0x5dacbe(0x30d)]!==!0x1),this[_0x5dacbe(0x42f)](),this['_applyFormulaAutoFitSize']();}[_0x33b4ed(0x42f)](){const _0x4a2532=_0x33b4ed;this[_0x4a2532(0x3c9)][_0x4a2532(0x2b5)](_0xbd9b02=>{this['_updateSrcRectByTransform'](_0xbd9b02);});}['setPrstGeom'](_0x310ef8){const _0x40dbb6=_0x33b4ed;this[_0x40dbb6(0x37e)]['prstGeom']=_0x310ef8;}[_0x33b4ed(0x3b7)](_0x27514f){const _0xc232dd=_0x33b4ed;if(this[_0xc232dd(0x37e)]['isEditing'])return null;let _0x114aeb=this[_0xc232dd(0x23f)](_0x27514f),{width:_0x35b4d6,height:_0x23894f}=this[_0xc232dd(0x3d7)]();return _0x3680bf(this[_0xc232dd(0x3ec)],{'x':(this['flipX']?-_0x114aeb['x']:_0x114aeb['x'])+_0x35b4d6/0x2,'y':_0x114aeb['y']+_0x23894f/0x2});}[_0x33b4ed(0x281)](_0x345baf){const _0x4d6daf=_0x33b4ed;this[_0x4d6daf(0x37e)][_0x4d6daf(0x2e3)]=_0x345baf,this[_0x4d6daf(0x3dd)](!0x0);}[_0x33b4ed(0x306)](_0x234cc3,_0x1ead5c=!0x0){const _0x52166d=_0x33b4ed;this['_formulaAnimation'][_0x52166d(0x3ba)](_0x234cc3,_0x1ead5c),this[_0x52166d(0x37e)][_0x52166d(0x3e1)]=_0x234cc3,this[_0x52166d(0x29d)](),this[_0x52166d(0x3dd)](!0x0);}[_0x33b4ed(0x29d)](){const _0x51e29b=_0x33b4ed;let _0x55d92c=this['_props'][_0x51e29b(0x1dc)],_0x2a0a13=_0x55d92c[_0x51e29b(0x264)](),_0x409135=_0x323514(_0x2a0a13==null?void 0x0:_0x2a0a13[_0x51e29b(0x1d5)]),_0x1c45a7=_0x409135==null?void 0x0:_0x409135['doc'],_0x23c313=this[_0x51e29b(0x3ee)][_0x51e29b(0x2af)]();if(!_0x1c45a7||_0x23c313[_0x51e29b(0x348)]===0x0)return;_0x55d92c[_0x51e29b(0x395)]({'width':this['width'],'height':this[_0x51e29b(0x323)]});let _0x58e02d=_0x1e5357({'documentData':_0x23c313[_0x51e29b(0x41d)](_0x5008f9=>_0xd798cf(_0x1c45a7,_0x5008f9)),'height':this[_0x51e29b(0x323)],'shapeData':_0x55d92c['getShapeData'](),'textRect':_0x55d92c['getShapeTextRect']({'left':0x0,'top':0x0,'width':this['width'],'height':this['height']}),'width':this[_0x51e29b(0x2b7)]});if(_0x58e02d){var _0x2c7bde;this[_0x51e29b(0x252)](_0x58e02d[_0x51e29b(0x2b7)],_0x58e02d[_0x51e29b(0x323)]),(_0x2c7bde=this['getScene']())==null||(_0x2c7bde=_0x2c7bde[_0x51e29b(0x3a6)]())==null||_0x2c7bde[_0x51e29b(0x1cc)]();}}get['unitId'](){const _0x8569f9=_0x33b4ed;return this[_0x8569f9(0x37e)][_0x8569f9(0x1c7)];}get[_0x33b4ed(0x1c6)](){return this['_props']['subUnitId'];}['_updateSrcRectByTransform'](_0x306b04){const _0x39d445=_0x33b4ed;if(this['_props'][_0x39d445(0x217)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x4af741,height:_0x1b28f5}=this,{width:_0x3c9735=0x0,height:_0x348775=0x0}=_0x306b04[_0x39d445(0x405)],{left:_0x415b36=0x0,top:_0x3ddae9=0x0,right:_0x40c9d2=0x0,bottom:_0x520412=0x0}=this['_props'][_0x39d445(0x217)],_0x5c2e49=_0x415b36,_0x91bd75=_0x3ddae9,_0x37b5cc=_0x40c9d2,_0x129423=_0x520412,_0x481949=!0x1;if(_0x3c9735!==0x0&&_0x3c9735!==_0x4af741){let _0x22f929=_0x415b36/_0x3c9735,_0x5c1f81=_0x40c9d2/_0x3c9735;_0x5c2e49=_0x4af741*_0x22f929,_0x37b5cc=_0x4af741*_0x5c1f81,_0x481949=!0x0;}if(_0x348775!==0x0&&_0x348775!==_0x1b28f5){let _0x54be36=_0x3ddae9/_0x348775,_0x20c93c=_0x520412/_0x348775;_0x91bd75=_0x1b28f5*_0x54be36,_0x129423=_0x1b28f5*_0x20c93c,_0x481949=!0x0;}_0x481949&&this[_0x39d445(0x34d)]({'left':_0x5c2e49,'top':_0x91bd75,'right':_0x37b5cc,'bottom':_0x129423});}[_0x33b4ed(0x34d)](_0x8187d6){const _0x1cec35=_0x33b4ed;this['_props'][_0x1cec35(0x217)]=_0x8187d6,this[_0x1cec35(0x3dd)](!0x0);}['setFillImage'](_0x5a6f0f){const _0x4446f2=_0x33b4ed;this[_0x4446f2(0x37e)][_0x4446f2(0x3b9)]=_0x5a6f0f,this['makeDirty'](!0x0);}set[_0x33b4ed(0x3cd)](_0x2a61e3){const _0x3d8d7c=_0x33b4ed;this[_0x3d8d7c(0x272)]=_0x2a61e3;}get[_0x33b4ed(0x3cd)](){const _0x490c5a=_0x33b4ed;this[_0x490c5a(0x272)]||this[_0x490c5a(0x41e)]();let _0x117e39=this[_0x490c5a(0x272)][_0x490c5a(0x230)]();return this[_0x490c5a(0x278)](_0x117e39);}get[_0x33b4ed(0x1dc)](){const _0x2d592a=_0x33b4ed;return this[_0x2d592a(0x37e)][_0x2d592a(0x1dc)];}get['shapeId'](){const _0x2290ef=_0x33b4ed;return this[_0x2290ef(0x37e)][_0x2290ef(0x402)];}get[_0x33b4ed(0x2aa)](){const _0x25c555=_0x33b4ed;return _0x33187e[_0x25c555(0x317)];}['_draw'](_0x488b42,_0x180806,_0x2b0b28,_0x458b3f){const _0x439c8a=_0x33b4ed;let _0x15665b=this['_props'][_0x439c8a(0x1dc)];if(!_0x15665b||!_0x180806)return;let _0x4e84f8=_0x2b0b28??this[_0x439c8a(0x2b7)],_0x5727b3=_0x458b3f??this[_0x439c8a(0x323)],_0x5a5500={'shapeType':_0x15665b['getShapeType'](),'width':_0x4e84f8,'height':_0x5727b3},_0x217e7d={'renderMode':_0x300492[_0x439c8a(0x30a)],'oKey':this[_0x439c8a(0x1cf)],'image':this[_0x439c8a(0x37e)][_0x439c8a(0x3b9)],'angle':this[_0x439c8a(0x2ea)]};_0x15665b['updateContext'](_0x5a5500),_0x488b42[_0x439c8a(0x2e2)]();let _0x1a2a12={'top':0x0,'left':0x0,'width':_0x4e84f8,'height':_0x5727b3},_0x102fde=_0x15665b[_0x439c8a(0x3bb)](_0x1a2a12);_0x102fde?this[_0x439c8a(0x253)](_0x488b42,_0x102fde,_0x2c09a5=>{const _0x17ee9b=_0x439c8a;_0x15665b[_0x17ee9b(0x3f8)](_0x2c09a5,_0x1a2a12,_0x217e7d);}):(this['_releaseRenderCache'](),_0x15665b[_0x439c8a(0x3f8)](_0x488b42,_0x1a2a12,_0x217e7d)),_0x488b42[_0x439c8a(0x3fb)]();let _0x184bc6=_0x15665b['getShapeTextData'](),_0x914667=_0x15665b['getShapeTextRect'](_0x1a2a12),_0x51e45b=_0x15665b[_0x439c8a(0x2ad)]();if(_0x184bc6&&_0x914667&&!_0x51e45b){_0x488b42[_0x439c8a(0x2e2)](),this[_0x439c8a(0x2f1)]()[_0x439c8a(0x270)]&&_0x488b42[_0x439c8a(0x293)](-0x1,0x1);let _0x3e00b7=_0x4e84f8/0x2,_0x366aa1=_0x5727b3/0x2;_0x488b42[_0x439c8a(0x38b)](-_0x3e00b7,-_0x366aa1),_0x488b42[_0x439c8a(0x29b)](),this[_0x439c8a(0x274)](_0x488b42,_0x184bc6,_0x914667),_0x488b42[_0x439c8a(0x3fb)]();}}['getDrawingPoints'](_0x27b52c){}[_0x33b4ed(0x274)](_0x444a50,_0x48ff56,_0x1abb68){const _0x2081ec=_0x33b4ed;var _0x1fa403;this[_0x2081ec(0x3ec)]=[],this['_props'][_0x2081ec(0x2e3)]||(!((_0x1fa403=_0x48ff56[_0x2081ec(0x1d5)])!=null&&_0x1fa403[_0x2081ec(0x313)])&&_0x2081ec(0x3f0)in _0x48ff56&&_0x48ff56[_0x2081ec(0x3f0)]===!0x1?this[_0x2081ec(0x35d)](_0x444a50,_0x48ff56,_0x1abb68):this[_0x2081ec(0x2bd)](_0x444a50,_0x48ff56,_0x1abb68));}['_drawSimpleText'](_0x26b465,_0x4d8c99,_0xaf58e2){const _0x1c21e0=_0x33b4ed;this[_0x1c21e0(0x2bd)](_0x26b465,{..._0x4d8c99,'text':_0x4d8c99[_0x1c21e0(0x35c)]??'','dataModel':{'doc':_0x269d0d(_0x4d8c99,_0x1c21e0(0x40a)+this[_0x1c21e0(0x1cf)])}},_0xaf58e2);}['_drawRichText'](_0x4453b7,_0x241bf2,_0xa6828e){const _0x3c92df=_0x33b4ed;_0x398cb3(_0x4453b7,this[_0x3c92df(0x3ee)],(_0x3e4d1c,_0x5e466c,_0x4798f3)=>{const _0x25a82b=_0x3c92df;this[_0x25a82b(0x431)](_0x3e4d1c,_0x241bf2,_0xa6828e,_0x5e466c,_0x4798f3===_0x25a82b(0x417));});}[_0x33b4ed(0x431)](_0x355b27,_0x2644e0,_0x21dfc7,_0x206610,_0x478d9a){const _0x1e2ec9=_0x33b4ed;let _0x4b2e73=this[_0x1e2ec9(0x37e)][_0x1e2ec9(0x353)];if(!_0x2644e0[_0x1e2ec9(0x1d5)]||!_0x4b2e73){_0x4b2e73||console['warn'](_0x1e2ec9(0x26b));return;}let _0x11a60f=_0x323514(_0x2644e0['dataModel']);if(!_0x11a60f)return;let _0x3b5d46=_0x11a60f['doc'];if(!_0x3b5d46)return;let _0x56676f=_0xd798cf(_0x3b5d46,_0x206610),_0x13c965=_0x11a60f['va']??_0x9ed22a['TOP'],_0x23a7de=_0x11a60f['ha']??_0x163f8a['LEFT'],_0x2af284=Ki(this[_0x1e2ec9(0x37e)]['shapeModel'][_0x1e2ec9(0x244)](),_0x2644e0,_0x56676f),_0xc1f585=_0x2644e0[_0x1e2ec9(0x2a8)],_0x4e5496=_0x5e7a93(_0x56676f,{'isHorizontal':_0xc1f585!==!0x1,'textRect':_0x21dfc7,'verticalAlign':_0x13c965,'horizontalAlign':_0x23a7de,'wrapStrategy':_0x2af284[_0x1e2ec9(0x32a)]}),_0x1ea7c5=new _0x483eaa(_0x4e5496),_0xd100a0=new _0x2fd191(_0x1ea7c5),_0x1b4b1f=_0x11abd9[_0x1e2ec9(0x266)](_0xd100a0,_0x4b2e73);_0x1b4b1f['calculate']();let _0x57f56e=_0x1b4b1f['getActualSize']()[_0x1e2ec9(0x2d0)],_0xdfb60a=_0x391f73({'contentHeight':_0x57f56e,'verticalAlign':_0x13c965,'viewportHeight':_0x21dfc7['height']});_0x1ea7c5[_0x1e2ec9(0x240)]({'pageSize':{'width':_0xc1f585===!0x1?_0x21dfc7[_0x1e2ec9(0x323)]:_0x21dfc7[_0x1e2ec9(0x2b7)],'height':_0x2da653(_0x56676f,_0xdfb60a['contentHeight'])}}),_0x1ea7c5['updateDocumentDataMargin']({'t':_0xdfb60a['marginTop']}),_0x1b4b1f[_0x1e2ec9(0x389)]();let _0x26bb91=new _0x2bcd1b('shape-text-'+this['oKey'],_0x1b4b1f,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1e2ec9(0x3dd)](!0x0)});_0x26bb91[_0x1e2ec9(0x252)](_0x21dfc7[_0x1e2ec9(0x2b7)],_0xdfb60a['contentHeight']),_0x355b27[_0x1e2ec9(0x2e2)](),_0x355b27[_0x1e2ec9(0x3b1)](_0x21dfc7['left'],_0x21dfc7['top']),_0x2af284[_0x1e2ec9(0x2b8)]&&(_0x355b27[_0x1e2ec9(0x29b)](),_0x355b27[_0x1e2ec9(0x346)](0x0,_0xdfb60a[_0x1e2ec9(0x337)],_0x21dfc7[_0x1e2ec9(0x2b7)],_0xdfb60a['clipHeight']),_0x355b27[_0x1e2ec9(0x2b8)]()),_0xdfb60a[_0x1e2ec9(0x3f9)]&&_0x355b27[_0x1e2ec9(0x3b1)](0x0,_0xdfb60a[_0x1e2ec9(0x3f9)]),_0x26bb91[_0x1e2ec9(0x378)](_0x355b27),_0x478d9a&&(this[_0x1e2ec9(0x3ec)]=_0x267ed3(_0x26bb91,{'left':_0x21dfc7[_0x1e2ec9(0x25a)],'top':_0x21dfc7[_0x1e2ec9(0x239)]+_0xdfb60a['contentVerticalOffset']},_0x2af284[_0x1e2ec9(0x2b8)]?{'left':_0x21dfc7[_0x1e2ec9(0x25a)],'right':_0x21dfc7[_0x1e2ec9(0x25a)]+_0x21dfc7[_0x1e2ec9(0x2b7)],'top':_0x21dfc7['top']+_0xdfb60a[_0x1e2ec9(0x337)],'bottom':_0x21dfc7[_0x1e2ec9(0x239)]+_0xdfb60a[_0x1e2ec9(0x337)]+_0xdfb60a[_0x1e2ec9(0x246)]}:void 0x0)),_0x355b27[_0x1e2ec9(0x3fb)](),_0x26bb91[_0x1e2ec9(0x2e5)](),_0x1b4b1f[_0x1e2ec9(0x2e5)](),_0xd100a0[_0x1e2ec9(0x2e5)](),_0x1ea7c5[_0x1e2ec9(0x2e5)]();}[_0x33b4ed(0x3f8)](_0x39066a,_0x1a3054,_0x159417=!0x1){const _0x365a4c=_0x33b4ed;if(!this[_0x365a4c(0x298)])return this[_0x365a4c(0x3dd)](!0x1),this;let {width:_0x1d2ec6,height:_0x55978f,left:_0x48e7c9,top:_0x1551e1}=this,_0x1cc94f=this[_0x365a4c(0x3d7)]();if(_0x1d2ec6=_0x1cc94f['width'],_0x55978f=_0x1cc94f[_0x365a4c(0x323)],_0x48e7c9=_0x1cc94f[_0x365a4c(0x25a)],_0x1551e1=_0x1cc94f[_0x365a4c(0x239)],this['isRender'](_0x1a3054)){let {top:_0xbb4043,left:_0x58ea85,bottom:_0x2a358c,right:_0x8dca84}=_0x1a3054[_0x365a4c(0x2f7)];if(_0x1d2ec6+this[_0x365a4c(0x2f9)]+_0x48e7c9<_0x58ea85||_0x8dca84<_0x48e7c9||_0x55978f+this[_0x365a4c(0x2f9)]+_0x1551e1<_0xbb4043||_0x2a358c<_0x1551e1)return this;}let _0x18bead=_0x48e7c9+_0x1d2ec6/0x2,_0x561a2b=_0x1551e1+_0x55978f/0x2,_0xbf202=this[_0x365a4c(0x3cd)]['getMatrix']();if(this[_0x365a4c(0x37e)][_0x365a4c(0x2e3)]){let _0x110bac=this['getState'](),_0x3be80d=new _0x3ab4ed();_0x3be80d[_0x365a4c(0x371)]({..._0x110bac}),_0xbf202=_0x3be80d[_0x365a4c(0x280)]();}return _0x39066a[_0x365a4c(0x2e2)](),this[_0x365a4c(0x37e)][_0x365a4c(0x1dc)][_0x365a4c(0x35e)]===!0x0||_0x39066a['transform'](_0xbf202[0x0],_0xbf202[0x1],_0xbf202[0x2],_0xbf202[0x3],_0x18bead,_0x561a2b),this[_0x365a4c(0x2c7)](_0x39066a,_0x1a3054,_0x1d2ec6,_0x55978f),_0x39066a['restore'](),this[_0x365a4c(0x3dd)](!0x1),this;}[_0x33b4ed(0x23f)](_0x3218c3){const _0x2a3afe=_0x33b4ed;let {left:_0x39db4f,top:_0x356c85,width:_0x2d84a0,height:_0x53d6d1}=this['getRealBound'](),_0x26f090=this[_0x2a3afe(0x3cd)][_0x2a3afe(0x280)](),_0x4bf9bc=_0x39db4f+_0x2d84a0/0x2,_0x2b462e=_0x356c85+_0x53d6d1/0x2,_0x5c09a4=new _0x3ab4ed([_0x26f090[0x0],_0x26f090[0x1],_0x26f090[0x2],_0x26f090[0x3],_0x4bf9bc,_0x2b462e]),_0x7ca7d0=this[_0x2a3afe(0x245)]();return(this['isInGroup']&&(_0x7ca7d0==null?void 0x0:_0x7ca7d0[_0x2a3afe(0x2aa)])===_0x33187e[_0x2a3afe(0x22c)]?_0x7ca7d0[_0x2a3afe(0x3ef)][_0x2a3afe(0x393)](_0x5c09a4):_0x5c09a4)[_0x2a3afe(0x21a)]()[_0x2a3afe(0x3c2)](_0x3218c3);}[_0x33b4ed(0x355)](_0x35518e){const _0x2fda84=_0x33b4ed;let {left:_0x5697ae,top:_0x1d591e,width:_0x4b391b,height:_0x16ef97}=this[_0x2fda84(0x3d7)](),_0x5c6146=_0x5697ae+_0x4b391b/0x2,_0x3b8f94=_0x1d591e+_0x16ef97/0x2,_0x2a9daf=this['transform']['getMatrix'](),_0x47acf6=new _0x3ab4ed([_0x2a9daf[0x0],_0x2a9daf[0x1],_0x2a9daf[0x2],_0x2a9daf[0x3],_0x5c6146,_0x3b8f94]),_0x17f2aa=this[_0x2fda84(0x245)](),_0x92bc0d=(this[_0x2fda84(0x2f2)]&&(_0x17f2aa==null?void 0x0:_0x17f2aa[_0x2fda84(0x2aa)])===_0x33187e[_0x2fda84(0x22c)]?_0x17f2aa['ancestorTransform'][_0x2fda84(0x393)](_0x47acf6):_0x47acf6)[_0x2fda84(0x21a)]()[_0x2fda84(0x3c2)](_0x35518e),_0x3533f9=_0x4b391b/0x2,_0x24b83e=_0x16ef97/0x2,_0x293cab=this[_0x2fda84(0x37e)][_0x2fda84(0x1dc)];return _0x293cab&&_0x293cab['isLineShape']()?_0x293cab[_0x2fda84(0x385)](_0x92bc0d['x'],_0x92bc0d['y'],_0x4b391b,_0x16ef97):_0x92bc0d['x']>=-_0x3533f9-this[_0x2fda84(0x2f9)]/0x2&&_0x92bc0d['x']<=_0x3533f9+this[_0x2fda84(0x2f9)]/0x2&&_0x92bc0d['y']>=-_0x24b83e-this[_0x2fda84(0x2f9)]/0x2&&_0x92bc0d['y']<=_0x24b83e+this['strokeWidth']/0x2;}[_0x33b4ed(0x2e5)](){const _0xab166d=_0x33b4ed;this[_0xab166d(0x3ee)][_0xab166d(0x2e5)](),this[_0xab166d(0x37e)][_0xab166d(0x1dc)]=null,super['dispose']();}};let qi=class extends _0x256e8f{constructor(_0x4a4b4f,_0x3fe2ca,_0x1d9cfd,_0x599895){const _0x57b925=_0x33b4ed;super(),this[_0x57b925(0x2be)]=_0x4a4b4f,this[_0x57b925(0x356)]=_0x3fe2ca,this[_0x57b925(0x1be)]=_0x1d9cfd,this[_0x57b925(0x2c8)]=_0x599895,X(this,'_activeShapeId',null),X(this,_0x57b925(0x369),null),X(this,_0x57b925(0x42c),null),X(this,'_activeShapeAdjustPointList',void 0x0),X(this,_0x57b925(0x2cb),[]),X(this,_0x57b925(0x27d),0x0),X(this,_0x57b925(0x318),0x0),X(this,_0x57b925(0x2ae),0x0),X(this,_0x57b925(0x401),0x0),X(this,_0x57b925(0x344),!0x1),X(this,'_isShouldShowDrawingShapeAdjust',!0x1),X(this,_0x57b925(0x2b3),void 0x0),X(this,'_activeShapeModel',void 0x0),X(this,'_adjHandlerPointerMove',void 0x0),X(this,'_adjHandlerPointerUp',void 0x0),this['_registerDrawingFocusChangeHandler'](),this[_0x57b925(0x1db)]();}[_0x33b4ed(0x1fe)](){const _0x197a0e=_0x33b4ed;this[_0x197a0e(0x238)]();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!0x0);}[_0x33b4ed(0x375)](_0x5ce054,_0x37c286,_0x2dadb9){const _0x576275=_0x33b4ed;var _0x313e81;return(_0x313e81=this['_docsShapeService'][_0x576275(0x36f)](_0x5ce054,_0x37c286,_0x2dadb9))==null?void 0x0:_0x313e81['getDrawingPoints']();}[_0x33b4ed(0x404)](_0x2d23a1,_0x225bf5,_0x1c1545,_0x505daa){const _0x40cd9c=_0x33b4ed;var _0x4f6d49;return(_0x4f6d49=this[_0x40cd9c(0x1be)][_0x40cd9c(0x36f)](_0x2d23a1,_0x225bf5,_0x1c1545))==null?void 0x0:_0x4f6d49['getAdjustInfoByName'](_0x505daa);}[_0x33b4ed(0x42b)](){const _0x35f532=_0x33b4ed;return this[_0x35f532(0x369)]===null||this[_0x35f532(0x42c)]===null||this[_0x35f532(0x237)]===null?null:this['_drawingManagerService'][_0x35f532(0x268)]({'unitId':this[_0x35f532(0x369)],'subUnitId':this[_0x35f532(0x42c)],'drawingId':this[_0x35f532(0x237)]})??null;}[_0x33b4ed(0x39b)](_0x44588f){const _0x27c731=_0x33b4ed;if(this[_0x27c731(0x369)]===null||this[_0x27c731(0x42c)]===null||this[_0x27c731(0x237)]===null)return null;let _0x17814c=_0x2d5511({'unitId':this['_unitId'],'subUnitId':this[_0x27c731(0x42c)],'drawingId':this[_0x27c731(0x237)]}),_0x5a8c1f=_0x44588f[_0x27c731(0x37c)](_0x17814c);return _0x5a8c1f instanceof Z?_0x5a8c1f:null;}[_0x33b4ed(0x1c4)](_0x5c3659=!0x1){const _0x2c406f=_0x33b4ed;if(this[_0x2c406f(0x369)]===null||this[_0x2c406f(0x42c)]===null||this[_0x2c406f(0x237)]===null)return;let _0x34503c=this[_0x2c406f(0x42b)]();if((_0x34503c==null?void 0x0:_0x34503c[_0x2c406f(0x221)])!==_0x197ccb['DRAWING_SHAPE']||!_0x34503c[_0x2c406f(0x3cd)])return;let _0x8cfe70=this['_docsShapeService'][_0x2c406f(0x36f)](this['_unitId'],this[_0x2c406f(0x42c)],this['_activeShapeId']);if(!_0x8cfe70||_0x8cfe70['isLineShape']())return;let {left:_0x533337=0x0,top:_0x5314b7=0x0,width:_0x4860a7=0x0,height:_0x3604a2=0x0,flipX:_0x243102,flipY:_0x573719,angle:_0x11bb28=0x0}=_0x34503c[_0x2c406f(0x3cd)];(_0x5c3659||!this[_0x2c406f(0x279)])&&(_0x8cfe70[_0x2c406f(0x395)]({'width':_0x4860a7,'height':_0x3604a2}),this['_activeShapeAdjustPointList']=_0x8cfe70[_0x2c406f(0x234)]());let _0x1d14e1=this[_0x2c406f(0x279)];if(!(_0x1d14e1!=null&&_0x1d14e1['length']))return;let {scene:_0x539896}=this[_0x2c406f(0x2be)];for(let _0x4c91f3 of _0x1d14e1){let _0xd0b402=this['_toVisualAdjustPoint'](_0x4c91f3,_0x4860a7,_0x3604a2,!!_0x243102,!!_0x573719,_0x11bb28);this[_0x2c406f(0x363)](_0x539896,_0xd0b402,_0xd0b402[_0x2c406f(0x40d)],_0x533337,_0x5314b7,this[_0x2c406f(0x369)],this[_0x2c406f(0x42c)]);}}[_0x33b4ed(0x370)](_0x25b1de,_0x1caaad,_0x3097de,_0x1cb15d,_0x59b3c4,_0x59a598){const _0x4a0969=_0x33b4ed;let _0x33daef=_0x25b1de['x'],_0x538f82=_0x25b1de['y'];if(_0x1cb15d&&(_0x33daef=_0x1caaad-_0x33daef),_0x59b3c4&&(_0x538f82=_0x3097de-_0x538f82),_0x59a598!==0x0){let _0x4a1515=_0x1caaad/0x2,_0x3e775e=_0x3097de/0x2,_0x10c7d4=_0x59a598*Math['PI']/0xb4,_0x42c8bf=Math[_0x4a0969(0x1e8)](_0x10c7d4),_0x2da085=Math[_0x4a0969(0x3d0)](_0x10c7d4),_0x12fab3=_0x33daef-_0x4a1515,_0x4f9dd2=_0x538f82-_0x3e775e;_0x33daef=_0x4a1515+(_0x12fab3*_0x42c8bf-_0x4f9dd2*_0x2da085),_0x538f82=_0x3e775e+(_0x12fab3*_0x2da085+_0x4f9dd2*_0x42c8bf);}return{'x':_0x33daef,'y':_0x538f82,'adjName':_0x25b1de['adjName']};}[_0x33b4ed(0x22b)](_0x5a6a11=!0x1){const _0x3e5f00=_0x33b4ed;_0x5a6a11&&this[_0x3e5f00(0x238)](),this['_createShapeAdjustControls'](_0x5a6a11);}[_0x33b4ed(0x363)](_0x36b29d,_0x43def0,_0x5f40d4,_0x1eac45,_0x395e66,_0x5c3cc2,_0x3034d2){const _0x110bc3=_0x33b4ed;if(!this[_0x110bc3(0x237)])return;let _0x39e46c='doc-shape-adjust-point-'+this[_0x110bc3(0x237)]+'-'+_0x5f40d4,_0x2bc052=_0x36b29d[_0x110bc3(0x37c)](_0x39e46c);if(_0x2bc052){_0x2bc052[_0x110bc3(0x28e)]({'left':_0x43def0['x']+_0x1eac45-_0x45f006['adjHandleSize'],'top':_0x43def0['y']+_0x395e66-_0x45f006[_0x110bc3(0x2b0)]}),_0x2bc052[_0x110bc3(0x3dd)](!0x0);return;}let _0x117dfc=new Gi(_0x39e46c,{'left':_0x43def0['x']+_0x1eac45-_0x45f006[_0x110bc3(0x2b0)],'top':_0x43def0['y']+_0x395e66-_0x45f006['adjHandleSize'],'adjName':_0x5f40d4,'shapeId':this[_0x110bc3(0x237)],'unitId':_0x5c3cc2,'subUnitId':_0x3034d2,'width':_0x45f006[_0x110bc3(0x2b0)]+0x8,'height':_0x45f006[_0x110bc3(0x2b0)]+0x8,'zIndex':_0xbe605e+0x1,'evented':!0x0});this[_0x110bc3(0x2cb)][_0x110bc3(0x3db)](_0x117dfc),this[_0x110bc3(0x430)](_0x117dfc,_0x36b29d,_0x5f40d4),_0x36b29d[_0x110bc3(0x3b5)](_0x117dfc,_0xbe605e+0x1);}['_clearShapeAdjustControls'](){const _0x3c89da=_0x33b4ed;this[_0x3c89da(0x2cb)][_0x3c89da(0x27a)](_0x340445=>_0x340445[_0x3c89da(0x2e5)]()),this['_adjustPointObjects']=[];}[_0x33b4ed(0x2c2)](){const _0x3d8f47=_0x33b4ed;this[_0x3d8f47(0x1c4)]();}[_0x33b4ed(0x1bf)](_0x5bf9dd,_0x4f6c0d,_0x24d163){const _0x1836c7=_0x33b4ed;let _0x73086a=_0x482a77[_0x1836c7(0x38e)]([_0x4f6c0d,_0x24d163]),_0x4024ff=_0x5bf9dd[_0x1836c7(0x3ab)](_0x73086a)??_0x5bf9dd[_0x1836c7(0x3e7)]()[0x0];return(_0x4024ff==null?void 0x0:_0x4024ff[_0x1836c7(0x3df)](_0x73086a))??_0x73086a;}['_attachAdjustEvent'](_0x54c413,_0x367ea8,_0x4c147c){const _0x29142d=_0x33b4ed;this['disposeWithMe'](_0x519bb5(_0x54c413[_0x29142d(0x2fc)]['subscribeEvent']((_0x237999,_0x5dbd47)=>{const _0x4b6d03=_0x29142d;var _0x530ff1;let _0x413212=_0x54c413['getDrawingSearch']();this['_activeAdjustInfo']=this[_0x4b6d03(0x404)](_0x413212[_0x4b6d03(0x1c7)],_0x413212['subUnitId'],_0x413212[_0x4b6d03(0x310)],_0x4c147c),this[_0x4b6d03(0x2a6)]=this[_0x4b6d03(0x1be)][_0x4b6d03(0x36f)](_0x413212[_0x4b6d03(0x1c7)],_0x413212['subUnitId'],_0x413212[_0x4b6d03(0x310)]);let _0x44a98c=this[_0x4b6d03(0x42b)](),_0x74251c=_0x44a98c==null?void 0x0:_0x44a98c[_0x4b6d03(0x3cd)];if(!_0x44a98c||!_0x74251c||!this[_0x4b6d03(0x2a6)])return;this[_0x4b6d03(0x27d)]=_0x74251c[_0x4b6d03(0x25a)]||0x0,this[_0x4b6d03(0x318)]=_0x74251c[_0x4b6d03(0x239)]||0x0,this[_0x4b6d03(0x2ae)]=_0x74251c[_0x4b6d03(0x2b7)]||0x0,this[_0x4b6d03(0x401)]=_0x74251c[_0x4b6d03(0x323)]||0x0;let _0x5ab06e=!!_0x74251c[_0x4b6d03(0x270)],_0x327197=!!_0x74251c[_0x4b6d03(0x25e)],_0x4d4846=_0x74251c[_0x4b6d03(0x2ea)]||0x0,_0x358e8c={...((_0x530ff1=this['_activeAdjustInfo'])==null?void 0x0:_0x530ff1[_0x4b6d03(0x1f8)])??{}};this['_isStartAdjusting']=!0x0,_0x367ea8[_0x4b6d03(0x2b9)](),this['_adjHandlerPointerMove']=_0x367ea8[_0x4b6d03(0x20c)][_0x4b6d03(0x2b5)]((_0x29f34e,_0x3ca6ee)=>{const _0x50fcf3=_0x4b6d03;var _0x52f23a;if(!this['_isStartAdjusting']||!this[_0x50fcf3(0x2a6)]||!this[_0x50fcf3(0x2b3)])return;_0x367ea8[_0x50fcf3(0x2b9)](),_0x367ea8[_0x50fcf3(0x35a)](_0xb952ae['CROSSHAIR']);let _0x27f4e6=this[_0x50fcf3(0x1bf)](_0x367ea8,_0x29f34e[_0x50fcf3(0x3a7)],_0x29f34e[_0x50fcf3(0x25d)]),_0x5ced7b=_0x27f4e6['x']-this[_0x50fcf3(0x27d)],_0x47f8de=_0x27f4e6['y']-this[_0x50fcf3(0x318)];if(_0x4d4846!==0x0){let _0x57a272=this[_0x50fcf3(0x2ae)]/0x2,_0x1471a2=this['_baseShapeHeight']/0x2,_0x5290b1=_0x4d4846*Math['PI']/0xb4,_0x1efe2e=Math['cos'](_0x5290b1),_0x543ab5=Math['sin'](_0x5290b1),_0x2cafdb=_0x5ced7b-_0x57a272,_0x1421ca=_0x47f8de-_0x1471a2;_0x5ced7b=_0x57a272+(_0x2cafdb*_0x1efe2e+_0x1421ca*_0x543ab5),_0x47f8de=_0x1471a2+(-_0x2cafdb*_0x543ab5+_0x1421ca*_0x1efe2e);}_0x5ab06e&&(_0x5ced7b=this['_baseShapeWidth']-_0x5ced7b),_0x327197&&(_0x47f8de=this[_0x50fcf3(0x401)]-_0x47f8de);let _0x27a3f9={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x1bce66=this[_0x50fcf3(0x2a6)][_0x50fcf3(0x2e1)](_0x27a3f9,{'x':_0x5ced7b,'y':_0x47f8de},this[_0x50fcf3(0x2b3)],_0x5ab06e,_0x327197);if(Object['keys'](_0x1bce66)['length']!==0x0){for(let [_0x21d7d3,_0x2bc60b]of Object[_0x50fcf3(0x300)](_0x1bce66))this[_0x50fcf3(0x2a6)][_0x50fcf3(0x3eb)](_0x21d7d3,_0x2bc60b);this[_0x50fcf3(0x2a6)][_0x50fcf3(0x395)]({'width':this[_0x50fcf3(0x2ae)],'height':this['_baseShapeHeight']}),(_0x52f23a=this[_0x50fcf3(0x39b)](_0x367ea8))==null||_0x52f23a[_0x50fcf3(0x3dd)](!0x0),this[_0x50fcf3(0x279)]=this[_0x50fcf3(0x375)](_0x413212[_0x50fcf3(0x1c7)],_0x413212[_0x50fcf3(0x1c6)],_0x413212[_0x50fcf3(0x310)]),this[_0x50fcf3(0x2c2)](),_0x3ca6ee[_0x50fcf3(0x350)]();}}),this['_adjHandlerPointerUp']=_0x367ea8[_0x4b6d03(0x37a)]['subscribeEvent']((_0x3e3af1,_0x12b2e4)=>{const _0x414ff0=_0x4b6d03;var _0x256a10,_0x510322;(_0x256a10=this['_adjHandlerPointerMove'])==null||_0x256a10[_0x414ff0(0x1f7)](),(_0x510322=this[_0x414ff0(0x262)])==null||_0x510322['unsubscribe'](),_0x367ea8['resetCursor']();let _0x33f1a4=this[_0x414ff0(0x2b3)];if(_0x33f1a4&&this[_0x414ff0(0x2a6)]){let _0x4b2591={};for(let _0x1d89b2 of Object[_0x414ff0(0x316)](_0x33f1a4[_0x414ff0(0x1f8)])){let _0x21c197=this[_0x414ff0(0x2a6)][_0x414ff0(0x25f)](_0x1d89b2);_0x21c197!==void 0x0&&(_0x4b2591[_0x1d89b2]=_0x21c197);}Object['keys'](_0x4b2591)['length']>0x0&&Yr(this[_0x414ff0(0x2c8)],_0x413212[_0x414ff0(0x1c7)],_0x413212[_0x414ff0(0x1c6)],_0x413212['drawingId'],{'oldShapeData':{'adjustValues':_0x358e8c}},{'adjustValues':_0x4b2591});}this[_0x414ff0(0x2b3)]=void 0x0,this[_0x414ff0(0x2a6)]=void 0x0,this[_0x414ff0(0x344)]=!0x1,_0x367ea8['enableObjectsEvent'](),_0x12b2e4[_0x414ff0(0x350)]();}),_0x5dbd47['stopPropagation']();})));}[_0x33b4ed(0x1db)](){const _0x5a595c=_0x33b4ed;let {scene:_0x407735}=this[_0x5a595c(0x2be)],_0x23e251=_0x407735[_0x5a595c(0x29f)]();this[_0x5a595c(0x39a)](_0x23e251[_0x5a595c(0x2c6)][_0x5a595c(0x364)](_0x27cb4f=>{const _0x37bdff=_0x5a595c;this[_0x37bdff(0x1c4)](),_0x27cb4f[_0x37bdff(0x284)]!==null&&_0x27cb4f[_0x37bdff(0x284)][_0x37bdff(0x391)]===0x1&&_0x27cb4f[_0x37bdff(0x284)][_0x37bdff(0x1f2)]()['next']()[_0x37bdff(0x324)]instanceof Z&&(this[_0x37bdff(0x23b)]=!0x0);})),this[_0x5a595c(0x39a)](_0x23e251[_0x5a595c(0x36a)][_0x5a595c(0x364)](()=>{const _0x5a0da1=_0x5a595c;this[_0x5a0da1(0x23b)]&&this[_0x5a0da1(0x238)]();})),this['disposeWithMe'](_0x407735[_0x5a595c(0x37a)][_0x5a595c(0x2b5)](()=>{const _0x4d669c=_0x5a595c;this[_0x4d669c(0x23b)]&&(this[_0x4d669c(0x23b)]=!0x1,this[_0x4d669c(0x1c4)]());})),this[_0x5a595c(0x39a)](_0x23e251[_0x5a595c(0x2b4)][_0x5a595c(0x364)](()=>{const _0x4741cb=_0x5a595c;this[_0x4741cb(0x369)]&&this['_subUnitId']&&this['_activeShapeId']&&(this['_activeShapeAdjustPointList']=this[_0x4741cb(0x375)](this[_0x4741cb(0x369)],this[_0x4741cb(0x42c)],this['_activeShapeId']),this[_0x4741cb(0x2c2)]());}));}[_0x33b4ed(0x1e2)](){const _0x5d7603=_0x33b4ed;this[_0x5d7603(0x39a)](this[_0x5d7603(0x2c8)][_0x5d7603(0x2df)](_0x3970ce=>{const _0x222385=_0x5d7603;if(_0x3970ce['id']!==_0xee5b39['id'])return;let {unitId:_0x23882c,shapeId:_0x31f34}=_0x3970ce[_0x222385(0x1f5)];_0x23882c===this['_unitId']&&_0x31f34===this[_0x222385(0x237)]&&this[_0x222385(0x28c)]();})),this['disposeWithMe'](this['_drawingManagerService']['focus$'][_0x5d7603(0x364)](_0x4f67c3=>{const _0x2a0d5c=_0x5d7603;if(_0x4f67c3[_0x2a0d5c(0x348)]===0x1){let _0x4c4f27=_0x4f67c3[0x0],_0x16192b=this[_0x2a0d5c(0x356)][_0x2a0d5c(0x268)](_0x4c4f27);if((_0x16192b==null?void 0x0:_0x16192b[_0x2a0d5c(0x221)])===_0x197ccb[_0x2a0d5c(0x374)]){this[_0x2a0d5c(0x237)]=_0x4c4f27['drawingId'],this['_unitId']=_0x4c4f27['unitId'],this[_0x2a0d5c(0x42c)]=_0x4c4f27[_0x2a0d5c(0x1c6)],this[_0x2a0d5c(0x279)]=this[_0x2a0d5c(0x375)](_0x4c4f27[_0x2a0d5c(0x1c7)],_0x4c4f27[_0x2a0d5c(0x1c6)],_0x4c4f27[_0x2a0d5c(0x310)]),this[_0x2a0d5c(0x238)](),this[_0x2a0d5c(0x1c4)]();return;}}this[_0x2a0d5c(0x237)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x2a0d5c(0x42c)]=null,this[_0x2a0d5c(0x238)]();})),this['disposeWithMe'](_0x231b03(this[_0x5d7603(0x356)]['update$'],this[_0x5d7603(0x356)][_0x5d7603(0x34c)])[_0x5d7603(0x364)](_0x159731=>{const _0x696fbe=_0x5d7603;var _0x161924;let _0xe587c1=_0x159731[_0x696fbe(0x2cc)](_0x48ed41=>_0x48ed41['drawingId']===this[_0x696fbe(0x237)]&&_0x48ed41['unitId']===this[_0x696fbe(0x369)]&&_0x48ed41['subUnitId']===this[_0x696fbe(0x42c)]);_0xe587c1&&((_0x161924=this[_0x696fbe(0x356)][_0x696fbe(0x268)](_0xe587c1))==null?void 0x0:_0x161924[_0x696fbe(0x221)])===_0x197ccb[_0x696fbe(0x374)]&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x5d7603(0x39a)](this['_drawingManagerService'][_0x5d7603(0x1df)][_0x5d7603(0x364)](_0x3bfb34=>{const _0x2344c4=_0x5d7603;for(let _0xfd0d3c of _0x3bfb34)this['_activeShapeId']===_0xfd0d3c[_0x2344c4(0x310)]&&(this['_activeShapeId']=null,this[_0x2344c4(0x279)]=void 0x0,this[_0x2344c4(0x369)]=null,this[_0x2344c4(0x42c)]=null,this['_clearShapeAdjustControls']());}));}};qi=q([K(0x1,_0x8501d),K(0x2,_0x179bf2(_0x2b6cfd)),K(0x3,_0x2474c3)],qi);let Q=class extends _0x256e8f{constructor(_0x5bf454,_0x357716){const _0x53a133=_0x33b4ed;super(),this[_0x53a133(0x376)]=_0x5bf454,this[_0x53a133(0x331)]=_0x357716,X(this,_0x53a133(0x314),new _0x3c3cbc(null)),X(this,'editingParams$',this[_0x53a133(0x314)][_0x53a133(0x410)]()),X(this,_0x53a133(0x338),new _0x3c3cbc(!0x1)),X(this,_0x53a133(0x2de),this[_0x53a133(0x338)]['asObservable']()),X(this,_0x53a133(0x1ca),void 0x0),this[_0x53a133(0x39a)](this[_0x53a133(0x376)][_0x53a133(0x20d)][_0x53a133(0x364)](()=>{const _0x38d52b=_0x53a133;let _0x19d32e=this[_0x38d52b(0x24a)]();_0x19d32e!=null&&_0x19d32e['visible']&&!this[_0x38d52b(0x273)](_0x19d32e)&&this[_0x38d52b(0x281)](null);}));}['dispose'](){const _0x3dbf03=_0x33b4ed;this[_0x3dbf03(0x3b4)](),this[_0x3dbf03(0x314)][_0x3dbf03(0x339)](null),this[_0x3dbf03(0x314)]['complete'](),this[_0x3dbf03(0x338)][_0x3dbf03(0x339)](!0x1),this[_0x3dbf03(0x338)][_0x3dbf03(0x207)](),super[_0x3dbf03(0x2e5)]();}[_0x33b4ed(0x281)](_0x26f7dd){const _0x4f0efa=_0x33b4ed;(_0x26f7dd==null||!_0x26f7dd['visible']||this[_0x4f0efa(0x273)](_0x26f7dd))&&(this[_0x4f0efa(0x3b4)](),this[_0x4f0efa(0x314)][_0x4f0efa(0x339)](_0x26f7dd),(_0x26f7dd==null||_0x26f7dd[_0x4f0efa(0x298)]&&this[_0x4f0efa(0x338)][_0x4f0efa(0x365)]())&&this[_0x4f0efa(0x338)][_0x4f0efa(0x339)](!0x1));}[_0x33b4ed(0x3fc)](_0x511661){const _0x5305fd=_0x33b4ed;this[_0x5305fd(0x338)][_0x5305fd(0x339)](_0x511661);}['getEditing'](){const _0x433f44=_0x33b4ed;return this['_editingParams$'][_0x433f44(0x365)]();}[_0x33b4ed(0x273)](_0x3f4cf5){const _0x27a59f=_0x33b4ed;let _0x118942=this[_0x27a59f(0x331)]['getUnit'](_0x3f4cf5['unitId'],_0x248b26[_0x27a59f(0x1bd)]);if(!_0x118942)return!0x0;let _0x40d6fc=_0x1142fd(_0x118942,_0x3f4cf5['shapeId']);return _0x1e4951(this['_permissionService'],_0x3f4cf5[_0x27a59f(0x1c7)],[..._0x2e9cb2(_0x118942,_0x40d6fc,_0x27a59f(0x26d),_0x3f4cf5[_0x27a59f(0x402)]),_0x365faa(_0x40d6fc,_0x27a59f(0x26d),_0x3f4cf5[_0x27a59f(0x402)])]);}['completeEditing'](_0x492e12){const _0xd265c7=_0x33b4ed;let _0x12de4d=this['getEditing']();_0x12de4d&&this[_0xd265c7(0x1ca)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0xd265c7(0x1ca)]=requestAnimationFrame(()=>{const _0x195334=_0xd265c7;this[_0x195334(0x1ca)]=void 0x0,this[_0x195334(0x24a)]()===_0x12de4d&&this[_0x195334(0x281)](null);}));}[_0x33b4ed(0x3b4)](){const _0x5ed5a1=_0x33b4ed;this[_0x5ed5a1(0x1ca)]!==void 0x0&&(cancelAnimationFrame(this[_0x5ed5a1(0x1ca)]),this[_0x5ed5a1(0x1ca)]=void 0x0);}[_0x33b4ed(0x31b)](){const _0x33459b=_0x33b4ed;this[_0x33459b(0x24a)]()&&this[_0x33459b(0x281)](null);}};Q=q([K(0x0,_0x371e1a),K(0x1,_0x1e69fb)],Q);function Ji(_0x1ecb23){const _0x523699=_0x33b4ed;return _0x1ecb23[_0x523699(0x2e4)]===!0x0||_0x1ecb23[_0x523699(0x2e4)]===_0x51c9cc[_0x523699(0x424)]||_0x1ecb23[_0x523699(0x3f3)]===_0x2cd4cd[_0x523699(0x2f0)]&&_0x1ecb23['behindDoc']===_0x51c9cc[_0x523699(0x424)]?_0x33fcfd-0x1:_0xbe605e;}let $=class extends _0x256e8f{constructor(_0x49314a,_0xc41af3,_0xbf468,_0x40e955,_0x2b1e37,_0x5d9b4a,_0x50bc0d){const _0x4b4abb=_0x33b4ed;super(),this[_0x4b4abb(0x356)]=_0x49314a,this['_docsShapeService']=_0xc41af3,this[_0x4b4abb(0x308)]=_0xbf468,this[_0x4b4abb(0x305)]=_0x40e955,this[_0x4b4abb(0x32b)]=_0x2b1e37,this[_0x4b4abb(0x3c8)]=_0x5d9b4a,this[_0x4b4abb(0x315)]=_0x50bc0d,X(this,_0x4b4abb(0x2cf),new Map()),this['disposeWithMe'](this[_0x4b4abb(0x315)][_0x4b4abb(0x34b)][_0x4b4abb(0x364)](_0x141595=>{const _0x3a70c6=_0x4b4abb;var _0x238dad;(_0x238dad=this[_0x3a70c6(0x2cf)][_0x3a70c6(0x3d8)](this[_0x3a70c6(0x2fe)](_0x141595[_0x3a70c6(0x1c7)],_0x141595[_0x3a70c6(0x1c6)],_0x141595[_0x3a70c6(0x402)])))==null||_0x238dad['forEach'](_0x1802db=>_0x1802db[_0x3a70c6(0x306)](_0x141595[_0x3a70c6(0x3ce)],_0x141595[_0x3a70c6(0x423)]));})),this[_0x4b4abb(0x39a)](this[_0x4b4abb(0x356)][_0x4b4abb(0x1df)][_0x4b4abb(0x364)](_0x3aa2ad=>{const _0x2cb1c0=_0x4b4abb;_0x3aa2ad[_0x2cb1c0(0x27a)](_0x521380=>{const _0x113801=_0x2cb1c0;this[_0x113801(0x315)][_0x113801(0x3a0)]({'unitId':_0x521380[_0x113801(0x1c7)],'subUnitId':_0x521380[_0x113801(0x1c6)],'shapeId':_0x521380[_0x113801(0x310)]}),this[_0x113801(0x2cf)]['delete'](this['_formulaKey'](_0x521380[_0x113801(0x1c7)],_0x521380[_0x113801(0x1c6)],_0x521380['drawingId']));});}));}[_0x33b4ed(0x31a)](_0x2af9f6,_0x10c4dd){const _0x4e2b0e=_0x33b4ed;let {transform:_0x33038f,drawingType:_0x557f19,srcRect:_0x559eaa,prstGeom:_0x3d3119,groupId:_0x4450eb,unitId:_0x2f2c27,subUnitId:_0x1b3257,drawingId:_0xb093c5,isMultiTransform:_0x2debd4,transforms:_0x254e5c,hidden:_0x1b9173,selectable:_0xfd3233}=_0x2af9f6;if(_0x557f19!==_0x197ccb[_0x4e2b0e(0x374)]||!this[_0x4e2b0e(0x356)]['getDrawingVisible']()||_0x33038f==null)return;let _0x1df353=this[_0x4e2b0e(0x356)]['getDrawingEditable'](),_0x48ffd7=_0x2debd4&&_0x254e5c?_0x254e5c:[_0x33038f],_0x233b69=[];for(let [_0x38a25e,_0x53f055]of _0x48ffd7[_0x4e2b0e(0x300)]()){let {left:_0x1fda87,top:_0x221051,width:_0xde76be,height:_0x4c9c82,angle:_0x5ea645,flipX:_0x5f20ec,flipY:_0x3e8ff8,skewX:_0x3ec50f,skewY:_0x559c66}=_0x53f055,_0x36348d=_0x2d5511({'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'drawingId':_0xb093c5},_0x2debd4?_0x38a25e:void 0x0),_0x1ed1df=_0x10c4dd['getObjectIncludeInGroup'](_0x36348d);if(_0x1ed1df!=null){let _0x5e40b9={'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'shapeId':_0xb093c5};_0x1ed1df instanceof Z&&this[_0x4e2b0e(0x361)](_0x1ed1df,_0x5e40b9),_0x1ed1df[_0x4e2b0e(0x28e)]({'left':_0x1fda87,'top':_0x221051,'width':_0xde76be,'height':_0x4c9c82,'angle':_0x5ea645,'flipX':_0x5f20ec,'flipY':_0x3e8ff8,'skewX':_0x3ec50f,'skewY':_0x559c66});continue;}let _0x11432b=this['_drawingManagerService'][_0x4e2b0e(0x2e6)](_0x2f2c27,_0x1b3257),_0x2fafea=_0x11432b[_0x4e2b0e(0x3c0)](_0xb093c5);if(_0x10c4dd[_0x4e2b0e(0x37c)](_0x36348d)||!this[_0x4e2b0e(0x356)][_0x4e2b0e(0x1f0)]())continue;let _0x4c117e=this['_docsShapeService'][_0x4e2b0e(0x36f)](_0x2f2c27,_0x1b3257,_0xb093c5);if(!_0x4c117e)continue;let _0x1d5025=_0x394312(_0x4c117e['getShapeType']())?{..._0xd0974d,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xd0974d,_0x5c5a06=_0x4c117e['getShapeData']()[_0x4e2b0e(0x1ea)],_0x39a668={'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'shapeId':_0xb093c5};_0x5c5a06&&this['_shapeFormulaService'][_0x4e2b0e(0x1da)](_0x39a668,_0x5c5a06);let _0x2bd336=new Z(_0x36348d,{..._0x53f055,'zIndex':_0x2fafea===-0x1?_0x11432b['length']-0x1:_0x2fafea,'shapeModel':_0x4c117e,'localeService':this[_0x4e2b0e(0x308)],'shapeId':_0xb093c5,'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'visible':_0x1b9173!==!0x0,'evented':_0xfd3233!==!0x1,'formulaPresentation':_0x5c5a06?this[_0x4e2b0e(0x315)]['getPresentation'](_0x39a668):void 0x0,'animateFormulaPresentation':(_0x5c5a06==null?void 0x0:_0x5c5a06[_0x4e2b0e(0x423)])!==!0x1,'transformerConfig':_0x1d5025});if(_0x5c5a06){let _0x595404=this[_0x4e2b0e(0x2fe)](_0x2f2c27,_0x1b3257,_0xb093c5),_0x1f8421=this[_0x4e2b0e(0x2cf)][_0x4e2b0e(0x3d8)](_0x595404)??new Set();_0x1f8421[_0x4e2b0e(0x205)](_0x2bd336),this[_0x4e2b0e(0x2cf)]['set'](_0x595404,_0x1f8421);}this[_0x4e2b0e(0x39a)](_0x519bb5(_0x2bd336[_0x4e2b0e(0x422)][_0x4e2b0e(0x2b5)]((_0x2d587c,_0x1568f3)=>{const _0x389a64=_0x4e2b0e;_0x4c117e['isLineShape']()||_0x5c5a06||(this[_0x389a64(0x3c8)][_0x389a64(0x281)]({'visible':!0x0,'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'shapeId':_0xb093c5,'shapeKey':_0x2bd336[_0x389a64(0x1cf)]}),_0x1568f3[_0x389a64(0x350)]());}))),_0x10c4dd['addObject'](_0x2bd336,Ji(_0x2af9f6)),_0x1df353&&_0x10c4dd[_0x4e2b0e(0x304)](_0x2bd336),_0x4450eb&&_0x2a4d00({'drawingId':_0x4450eb,'unitId':_0x2f2c27,'subUnitId':_0x1b3257},_0x2bd336,_0x10c4dd,this[_0x4e2b0e(0x356)],_0x2debd4?_0x38a25e:void 0x0),_0x3d3119!=null&&_0x2bd336[_0x4e2b0e(0x3cf)](_0x3d3119),_0x559eaa!=null&&_0x2bd336[_0x4e2b0e(0x34d)](_0x559eaa),this['_loadShapePictureFill'](_0x2bd336,_0x4c117e[_0x4e2b0e(0x244)]()),_0x233b69[_0x4e2b0e(0x3db)](_0x2bd336);}return _0x233b69;}[_0x33b4ed(0x2fe)](_0x300f5e,_0x541dfa,_0x3de373){return _0x300f5e+'\x00'+_0x541dfa+'\x00'+_0x3de373;}[_0x33b4ed(0x361)](_0x17060d,_0x47cef2){const _0x415835=_0x33b4ed;let _0xaa75d3=this[_0x415835(0x1be)][_0x415835(0x36f)](_0x47cef2[_0x415835(0x1c7)],_0x47cef2[_0x415835(0x1c6)],_0x47cef2[_0x415835(0x402)]),_0x3972ff=_0xaa75d3==null?void 0x0:_0xaa75d3[_0x415835(0x244)]()[_0x415835(0x1ea)],_0x40a10f=this[_0x415835(0x2fe)](_0x47cef2['unitId'],_0x47cef2[_0x415835(0x1c6)],_0x47cef2[_0x415835(0x402)]);if(_0x3972ff){this[_0x415835(0x315)][_0x415835(0x1da)](_0x47cef2,_0x3972ff);let _0x22306f=this[_0x415835(0x2cf)][_0x415835(0x3d8)](_0x40a10f)??new Set();_0x22306f[_0x415835(0x205)](_0x17060d),this[_0x415835(0x2cf)]['set'](_0x40a10f,_0x22306f);}else{var _0x2151ff;this['_shapeFormulaService']['unregister'](_0x47cef2),(_0x2151ff=this[_0x415835(0x2cf)][_0x415835(0x3d8)](_0x40a10f))==null||_0x2151ff[_0x415835(0x3c4)](_0x17060d);}_0x17060d[_0x415835(0x306)](_0x3972ff?this[_0x415835(0x315)][_0x415835(0x2ab)](_0x47cef2):void 0x0,(_0x3972ff==null?void 0x0:_0x3972ff[_0x415835(0x423)])!==!0x1);}[_0x33b4ed(0x354)](_0x380d42){const _0xf23b33=_0x33b4ed;let _0x2ec5ad=_0x380d42['shapeModel']['getShapeData'](),_0x3c2301=_0x2ec5ad[_0xf23b33(0x2a4)];!_0x3c2301||_0x3c2301[_0xf23b33(0x21d)]!==_0x663a07[_0xf23b33(0x215)]||!_0x3c2301[_0xf23b33(0x2bb)]?_0x380d42[_0xf23b33(0x33c)](void 0x0):this[_0xf23b33(0x2e7)](_0x380d42,_0x2ec5ad);}[_0x33b4ed(0x2e7)](_0x3f2d01,_0x5126fa){const _0xf2fcdd=_0x33b4ed;let _0x37721e=_0x5126fa[_0xf2fcdd(0x2a4)];if(!_0x37721e||_0x37721e['fillType']!==_0x663a07[_0xf2fcdd(0x215)]||!_0x37721e[_0xf2fcdd(0x2bb)])return;let _0x2c46b3=_0x37721e[_0xf2fcdd(0x2bb)],_0x2271b3=_0x37721e[_0xf2fcdd(0x269)]??_0x336c0b['URL'],_0x138080=this[_0xf2fcdd(0x305)][_0xf2fcdd(0x406)](_0x2c46b3,_0x2271b3);_0x138080?_0x3f2d01[_0xf2fcdd(0x33c)](_0x138080):this[_0xf2fcdd(0x3e6)](_0x3f2d01,_0x2c46b3,_0x2271b3);}async[_0x33b4ed(0x3e6)](_0xe0f52f,_0x34c33b,_0x244077){const _0x4aace7=_0x33b4ed;let _0x4d2215;try{if(_0x244077===_0x336c0b['UUID'])_0x4d2215=await this['_imageIoService'][_0x4aace7(0x342)](_0x34c33b);else{if(_0x244077===_0x336c0b[_0x4aace7(0x3be)])try{_0x4d2215=await this['_urlImageService']['getImage'](_0x34c33b);}catch{_0x4d2215=_0x34c33b;}else _0x4d2215=_0x34c33b;}}catch(_0x5ebdbf){console[_0x4aace7(0x39d)](_0x4aace7(0x3bc),_0x5ebdbf);return;}let _0x414def=new window[(_0x4aace7(0x37b))]();_0x414def['onload']=()=>{this['_imageIoService']['addImageSourceCache'](_0x34c33b,_0x244077,_0x414def),_0xe0f52f['setFillImage'](_0x414def);},_0x414def['onerror']=()=>{const _0x472eca=_0x4aace7;console[_0x472eca(0x39d)](_0x472eca(0x3a5),_0x34c33b);},_0x414def['src']=_0x4d2215;}};$=q([K(0x0,_0x8501d),K(0x1,_0x179bf2(_0x2b6cfd)),K(0x2,_0x179bf2(_0x5a1674)),K(0x3,_0xadc7af),K(0x4,_0x2f2fe2),K(0x5,_0x179bf2(Q)),K(0x6,_0x179bf2(_0x28fd23))],$);let Yi=class extends _0x256e8f{constructor(_0xa78732,_0x88d158,_0x8ef0fe){const _0x22c1b1=_0x33b4ed;super(),this[_0x22c1b1(0x41b)]=_0xa78732,this['_drawingManagerService']=_0x88d158,this[_0x22c1b1(0x332)]=_0x8ef0fe,this[_0x22c1b1(0x427)]();}[_0x33b4ed(0x427)](){const _0xfc9039=_0x33b4ed;this[_0xfc9039(0x39a)](this[_0xfc9039(0x41b)][_0xfc9039(0x36b)][_0xfc9039(0x1e6)](this[_0xfc9039(0x41b)][_0xfc9039(0x36b)][_0xfc9039(0x23e)]()[_0xfc9039(0x1ff)],{'handler':(_0x1edd8f,_0x3c1dcb,_0x477ca0)=>{const _0x563ddd=_0xfc9039;var _0x11d2dd;let {unitId:_0xe813f3,scene:_0x2fea82,skeleton:_0xbf599b}=_0x3c1dcb,{pageIndex:_0x3e03e2}=_0x3c1dcb,_0x426012=(_0x11d2dd=this['_drawingManagerService'][_0x563ddd(0x27c)](_0xe813f3))==null?void 0x0:_0x11d2dd[_0xe813f3],_0xb7eab0=Xi(this[_0x563ddd(0x41b)],_0xbf599b,_0x3e03e2);return _0x426012==null||_0x426012['order'][_0x563ddd(0x27a)](_0x1b2031=>{const _0x4346c7=_0x563ddd;if(_0xb7eab0&&!_0xb7eab0[_0x4346c7(0x3a2)](_0x1b2031))return;let _0x5ea1ec=_0x426012[_0x4346c7(0x2ce)][_0x1b2031];_0x5ea1ec[_0x4346c7(0x221)]===_0x197ccb[_0x4346c7(0x374)]&&!_0x5ea1ec[_0x4346c7(0x3a3)]&&this[_0x4346c7(0x332)][_0x4346c7(0x31a)](_0x5ea1ec,_0x2fea82);}),_0x477ca0(_0x1edd8f);}}));}};Yi=q([K(0x0,_0x179bf2(_0x592c88)),K(0x1,_0x8501d),K(0x2,_0x179bf2($))],Yi);function Xi(_0x2d15f8,_0x18ab24,_0x19889e){const _0x4a6e7a=_0x33b4ed;var _0x4f4168,_0xd6d07;let _0x40033e=_0x2d15f8;if(_0x40033e[_0x4a6e7a(0x1f9)])return _0x40033e[_0x4a6e7a(0x1f9)](_0x18ab24,_0x19889e);let _0x352fe0=_0x18ab24['getSkeletonData']();if(!_0x352fe0||_0x352fe0[_0x4a6e7a(0x275)][_0x4a6e7a(0x348)]<=0x1||_0x19889e==null)return null;let _0x55fe76=new Set(),_0x31c5be=_0x352fe0[_0x4a6e7a(0x275)][_0x19889e];if(!_0x31c5be)return _0x55fe76;Zi(_0x31c5be,_0x55fe76);let _0x33876e=(_0x4f4168=_0x352fe0[_0x4a6e7a(0x26a)]['get'](_0x31c5be[_0x4a6e7a(0x1fd)]))==null?void 0x0:_0x4f4168['get'](_0x31c5be['headerLayoutKey']??_0x31c5be[_0x4a6e7a(0x1cd)]),_0x7ca6d0=(_0xd6d07=_0x352fe0['skeFooters'][_0x4a6e7a(0x3d8)](_0x31c5be[_0x4a6e7a(0x1fa)]))==null?void 0x0:_0xd6d07[_0x4a6e7a(0x3d8)](_0x31c5be['footerLayoutKey']??_0x31c5be[_0x4a6e7a(0x1cd)]);return _0x33876e&&Zi(_0x33876e,_0x55fe76),_0x7ca6d0&&Zi(_0x7ca6d0,_0x55fe76),_0x55fe76;}function Zi(_0xdac164,_0x132104){const _0x43aa10=_0x33b4ed;for(let _0x4ecd03 of _0xdac164['skeDrawings']['keys']())_0x132104[_0x43aa10(0x205)](_0x4ecd03);for(let _0x58b8e9 of _0xdac164[_0x43aa10(0x3e0)][_0x43aa10(0x1f2)]())for(let _0x5c5ad7 of _0x58b8e9[_0x43aa10(0x21e)])for(let _0xa76e4b of _0x5c5ad7['cells'])Zi(_0xa76e4b,_0x132104);}function Qi(_0x511fde){return _0x204a1f(Ur,{..._0x511fde,'PickerComponent':_0x45ec05});}function $i(){const _0x4279f6=_0x33b4ed;let _0xec3694=_0x4f0443(_0x5a1674),_0x36223a=Br(),[_0x16d51c,_0x17e417]=_0x5ed182(!0x1);return _0x5c5a38('div',{'className':_0x4279f6(0x23d),'children':[_0x204a1f(_0x1f7a84,{'title':_0xec3694['t'](_0x4279f6(0x1ec)),'aria-expanded':_0x16d51c,'variant':_0x4279f6(0x24f),'trailing':_0x204a1f(_0x16d51c?_0x278e80:_0x27a17d,{}),'onClick':()=>_0x17e417(_0x2ce9b6=>!_0x2ce9b6)}),_0x16d51c&&_0x204a1f(_0x45ec05,{'excludeGroups':[_0x18936a[_0x4279f6(0x372)]],'onShapeClick':_0x18aa21=>{_0x36223a(_0x18aa21),_0x17e417(!0x1);}})]});}function ea(_0x1331a1){const _0x511364=_0x33b4ed;return _0x1331a1[_0x511364(0x257)]()||void 0x0;}function ta(_0x4edadc,_0x29b14b,_0x876b79){const _0x2d74eb=_0x33b4ed;var _0x4b8722,_0x397fdf;return((_0x4b8722=_0x4edadc[_0x2d74eb(0x2dd)])==null?void 0x0:_0x4b8722[_0x2d74eb(0x257)]())||((_0x397fdf=_0x4edadc[_0x2d74eb(0x3bf)])==null?void 0x0:_0x397fdf[_0x2d74eb(0x257)]())||_0x876b79['t'](_0x2d74eb(0x250)+_0x23090a(_0x4edadc[_0x2d74eb(0x221)]))+'\x20'+(_0x29b14b+0x1);}function na({PanelComponent:_0x30c140=_0x17f792}){const _0x3a8761=_0x33b4ed;let _0x45e81f=_0x4f0443(_0x5a1674),_0x519305={'title':_0x45e81f['t']('drawing-ui.objectListPanel.title'),'empty':_0x45e81f['t'](_0x3a8761(0x247)),'showAll':_0x45e81f['t'](_0x3a8761(0x387)),'hideAll':_0x45e81f['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x45e81f['t'](_0x3a8761(0x3e2)),'unlockAll':_0x45e81f['t'](_0x3a8761(0x3f6)),'moveForward':_0x45e81f['t'](_0x3a8761(0x2b6)),'moveBackward':_0x45e81f['t'](_0x3a8761(0x3af)),'close':_0x45e81f['t']('drawing-ui.objectListPanel.close'),'show':_0x45e81f['t'](_0x3a8761(0x380)),'hide':_0x45e81f['t'](_0x3a8761(0x3b8)),'lock':_0x45e81f['t'](_0x3a8761(0x260)),'unlock':_0x45e81f['t'](_0x3a8761(0x22f)),'lockHint':_0x45e81f['t'](_0x3a8761(0x204)),'unlockHint':_0x45e81f['t'](_0x3a8761(0x3ad)),'name':_0x45e81f['t'](_0x3a8761(0x2f8)),'nameInput':_0x45e81f['t'](_0x3a8761(0x37d)),'description':_0x45e81f['t'](_0x3a8761(0x259)),'descriptionPlaceholder':_0x45e81f['t'](_0x3a8761(0x415)),'details':_0x45e81f['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x45e81f['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x45e81f['t'](_0x3a8761(0x37f)),'expand':_0x45e81f['t'](_0x3a8761(0x425)),'collapse':_0x45e81f['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x45e81f['t'](_0x3a8761(0x2ed)),'search':_0x45e81f['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x45e81f['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x45e81f['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x45e81f['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x45e81f['t'](_0x3a8761(0x3ff)),'sectionFloating':_0x45e81f['t'](_0x3a8761(0x32d))},_0x3bc176=_0x4f0443(_0x2474c3),_0x565e5f=_0x4f0443(_0x1e69fb),_0x1c6af1=_0x4f0443(_0x314cd0),_0x2fa9e9=_0x4f0443(_0x8501d),_0x4387c9=_0x4f0443(_0x456b85),[,_0x59c5a7]=_0x55cb68(_0x54f429=>_0x54f429+0x1,0x0),_0x360c21=_0x565e5f[_0x3a8761(0x242)](_0x248b26[_0x3a8761(0x1bd)]),_0x5c364b=(_0x360c21==null?void 0x0:_0x360c21['getUnitId']())??'',_0x5b9a02=_0x5c364b,_0x375ac0=_0x182392(()=>_0x2fa9e9[_0x3a8761(0x1d8)],_0x2fa9e9[_0x3a8761(0x26c)](),!0x1,[_0x2fa9e9]);_0x335468(()=>{const _0x223a64=_0x3a8761;let _0x312fba=_0x3bc176['onCommandExecuted'](()=>_0x59c5a7());return()=>_0x312fba[_0x223a64(0x2e5)]();},[_0x3bc176]);let _0x1c4352=_0x5c364b?_0x1c6af1[_0x3a8761(0x3a4)](_0x5c364b,_0x5b9a02):{},_0x346df9=(_0x5c364b?_0x1c6af1[_0x3a8761(0x2e6)](_0x5c364b,_0x5b9a02):[])[_0x3a8761(0x41d)](_0x163248=>_0x1c4352[_0x163248])['filter'](_0x38cde2=>!!_0x38cde2)[_0x3a8761(0x2fa)](),_0x448519=_0x346df9[_0x3a8761(0x2c9)]((_0x54d358,_0x3f2dd6)=>(_0x54d358[_0xa06520(_0x3f2dd6['drawingType'])]+=0x1,_0x54d358),{'canvas':0x0,'floating':0x0}),_0xae6a9b={'canvas':0x0,'floating':0x0},_0x50dbfb=_0x346df9[_0x3a8761(0x41d)]((_0xc12d39,_0x3ae7c4)=>{const _0x584c78=_0x3a8761;let _0x599d4c=_0xa06520(_0xc12d39[_0x584c78(0x221)]),_0x5568e1=_0x599d4c===_0x6b425e,_0x63173=_0xae6a9b[_0x599d4c]++;return{'id':_0xc12d39['drawingId'],'name':ta(_0xc12d39,_0x3ae7c4,_0x45e81f),'description':_0xc12d39[_0x584c78(0x229)],'visible':_0xc12d39[_0x584c78(0x3a3)]!==!0x0,'selectable':_0xc12d39[_0x584c78(0x3e4)]!==!0x1,'sectionId':_0x599d4c,'sectionTitle':_0x5568e1?_0x519305[_0x584c78(0x251)]:_0x519305[_0x584c78(0x25b)],'capabilities':_0x5568e1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x5568e1&&_0x63173>0x0,'canMoveBackward':!_0x5568e1&&_0x63173<_0x448519[_0x584c78(0x2c0)]-0x1,'canReorder':!_0x5568e1};}),_0x1c9bdb=_0x536a10(()=>(_0x375ac0??[])[_0x3a8761(0x319)](_0x17f924=>_0x17f924[_0x3a8761(0x1c7)]===_0x5c364b&&_0x17f924[_0x3a8761(0x1c6)]===_0x5b9a02)['map'](_0x273ea0=>_0x273ea0[_0x3a8761(0x310)]),[_0x375ac0,_0x5b9a02,_0x5c364b]),_0x17ee10=_0x1c9bdb[_0x1c9bdb['length']-0x1]??null,_0x21db5d=_0xbee96f=>_0x1c6af1[_0x3a8761(0x268)]({'unitId':_0x5c364b,'subUnitId':_0x5b9a02,'drawingId':_0xbee96f})??null,_0x23dec9=async _0x2e98b8=>{const _0x17581e=_0x3a8761;_0x5c364b&&_0x2e98b8[_0x17581e(0x348)]&&await _0x3bc176['executeCommand'](_0x7a9285['id'],{'unitId':_0x5c364b,'patches':_0x2e98b8});},_0x4bc335=(_0x598d38,_0x17896c)=>{const _0x150e86=_0x3a8761;if(!_0x5c364b)return;let _0x10053b=_0x17896c?_0x1c9bdb[_0x150e86(0x296)](_0x598d38)?_0x1c9bdb[_0x150e86(0x319)](_0x240266=>_0x240266!==_0x598d38):[..._0x1c9bdb,_0x598d38]:[_0x598d38];_0x3bc176['syncExecuteCommand'](_0x4974f9['id'],_0x10053b['map'](_0xb89ba6=>({'unitId':_0x5c364b,'subUnitId':_0x5b9a02,'drawingId':_0xb89ba6})));let _0x357cc2=_0x10053b[_0x10053b['length']-0x1];_0x357cc2?_0x1968c3(_0x4387c9,{'unitId':_0x5c364b,'subUnitId':_0x5b9a02,'drawingId':_0x357cc2}):_0x2e5f7a(_0x4387c9,_0x5c364b);},_0x320544=async(_0x161aaf,_0x2be181)=>{const _0x5bfbe0=_0x3a8761;await _0x23dec9(_0x161aaf[_0x5bfbe0(0x41d)](_0x3d6dcd=>_0x21db5d(_0x3d6dcd))[_0x5bfbe0(0x319)](_0x59ceca=>!!_0x59ceca)[_0x5bfbe0(0x319)](_0x3ce565=>_0x3ce565['hidden']!==!0x0!==_0x2be181)[_0x5bfbe0(0x41d)](_0x5cd83c=>({'drawingId':_0x5cd83c['drawingId'],'hidden':!_0x2be181})));},_0x3bfc05=async(_0x4d0bf6,_0x1975b4)=>{const _0x9aab12=_0x3a8761;await _0x23dec9(_0x4d0bf6[_0x9aab12(0x41d)](_0x10a12a=>_0x21db5d(_0x10a12a))[_0x9aab12(0x319)](_0x28967e=>!!_0x28967e)[_0x9aab12(0x319)](_0x2e4fdb=>_0x2e4fdb[_0x9aab12(0x3e4)]!==!0x1!==_0x1975b4)['map'](_0x40561a=>({'drawingId':_0x40561a[_0x9aab12(0x310)],'selectable':_0x1975b4})));},_0x360f58=_0x299df5=>{const _0x612516=_0x3a8761;let _0x390d3d=_0x21db5d(_0x299df5);if(_0x390d3d)return _0x3bfc05([_0x299df5],_0x390d3d[_0x612516(0x3e4)]===!0x1);},_0x13c372=async(_0x4da097,_0x1c13c3)=>{const _0x248de6=_0x3a8761;let _0x12469d=_0x21db5d(_0x4da097),_0x377b96=ea(_0x1c13c3);!_0x12469d||(_0x12469d[_0x248de6(0x2dd)]??void 0x0)===_0x377b96&&(_0x12469d[_0x248de6(0x3bf)]||void 0x0)===_0x377b96||await _0x23dec9([{'drawingId':_0x4da097,'name':_0x377b96,'title':_0x377b96}]);},_0xf44063=async(_0x1349a7,_0x3fa21f)=>{let _0x5d6c05=_0x21db5d(_0x1349a7),_0x355d5b=ea(_0x3fa21f);_0x5d6c05&&(_0x5d6c05['description']??void 0x0)!==_0x355d5b&&await _0x23dec9([{'drawingId':_0x1349a7,'description':_0x355d5b}]);},_0x379849=async(_0x37014c,_0x436983)=>{const _0x50c2c0=_0x3a8761;_0x5c364b&&await _0x3bc176[_0x50c2c0(0x39c)](_0x207919['id'],{'unitId':_0x5c364b,'subUnitId':_0x5b9a02,'drawingIds':[_0x37014c],'arrangeType':_0x436983});};return _0x5c364b?_0x204a1f(_0x30c140,{'labels':_0x519305,'renderPermissionAction':_0x540f63=>_0x360c21?_0x204a1f(_0x5ec452,{'target':{'unitId':_0x5c364b,'objectId':_0x365faa(_0x1142fd(_0x360c21,_0x540f63['id']),_0x3a8761(0x26d),_0x540f63['id']),'objectType':_0xfcd145['DocumentEntity']},'name':_0x540f63['name'],'commandId':_0x272850['id'],'exists':()=>!!_0x21db5d(_0x540f63['id'])},_0x5c364b+'/'+_0x540f63['id']):null,'items':_0x50dbfb,'selectedIds':_0x1c9bdb,'focusedId':_0x17ee10,'showHeader':!0x1,'onSelect':_0x4bc335,'onSetVisible':_0x320544,'onSetSelectable':_0x3bfc05,'onCommitName':_0x13c372,'onCommitDescription':_0xf44063,'onMoveForward':async _0x56781f=>_0x379849(_0x56781f,_0x2adc43[_0x3a8761(0x345)]),'onMoveBackward':async _0xe986c3=>_0x379849(_0xe986c3,_0x2adc43[_0x3a8761(0x2fd)]),'onToggleSelectable':_0x360f58}):_0x204a1f(_0x3a8761(0x384),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x519305[_0x3a8761(0x3bf)]});}function ra(){return _0x204a1f(na,{'PanelComponent':_0x54d238});}let ia=class{constructor(_0xa8119d){const _0x5f0cfc=_0x33b4ed;this[_0x5f0cfc(0x414)]=_0xa8119d;}[_0x33b4ed(0x1f3)](_0x2c95b4,_0x583957){const _0x5214e1=_0x33b4ed;let _0x320279=this[_0x5214e1(0x414)][_0x5214e1(0x359)](_0x2c95b4[_0x5214e1(0x1c7)]),_0x5a0a38=_0x320279==null?void 0x0:_0x320279[_0x5214e1(0x2e9)];if(!_0x5a0a38)return;let _0x3aba2e=_0x2d5511(_0x2c95b4),_0x205984=_0x5a0a38[_0x5214e1(0x37c)](_0x3aba2e);_0x205984==null||_0x205984['setFillImage'](_0x583957);}};ia=q([K(0x0,_0x456b85)],ia);function aa(){const _0x21d62b=_0x33b4ed;let _0xd7b1e2=_0x4f0443(_0x8501d),_0x119054=_0x182392(()=>_0xd7b1e2['focus$'],_0xd7b1e2[_0x21d62b(0x26c)](),!0x1,[_0xd7b1e2]);return _0x119054[_0x21d62b(0x348)]===0x0?null:_0x204a1f(_0x21d62b(0x384),{'children':_0x5c5a38(_0x21d62b(0x384),{'className':_0x21d62b(0x3cb),'children':[_0x204a1f(_0x5f290d,{'drawings':_0x119054,'hasCropper':!0x1}),_0x204a1f(_0x50fdaf,{'drawings':_0x119054}),_0x204a1f(_0x3da229,{'drawings':_0x119054})]})});}function oa(_0x4eaffd){let {unitId:_0x5803ac,subUnitId:_0x35c150,shapeId:_0x167b3c,PositionComponent:_0x419576=aa}=_0x4eaffd,_0x5a01bf=_0x4f0443(_0x2474c3),_0x4fa12c=_0x4f0443(ia);return _0x204a1f(_0x46d3f3,{..._0x4eaffd,'positionEditor':_0x204a1f(_0x419576,{}),'onUpdateShapeData':(_0x56098e,_0x168a68)=>{Yr(_0x5a01bf,_0x5803ac,_0x35c150,_0x167b3c,_0x56098e,_0x168a68);},'onUpdateLineShapeData':(_0x3d9568,_0x22dc37)=>{Xr(_0x5a01bf,_0x5803ac,_0x35c150,_0x167b3c,_0x3d9568,_0x22dc37);},'onUpdateShapeFillImage':_0x40a186=>{const _0x4f26af=_0x3935;_0x4fa12c[_0x4f26af(0x1f3)]({'unitId':_0x5803ac,'subUnitId':_0x35c150,'drawingId':_0x167b3c},_0x40a186);}});}function sa(){const _0x37da75=_0x33b4ed;let _0x343ae3=_0x4f0443(_0x8501d),_0x538899=_0x182392(_0x343ae3['focus$'],_0x343ae3['getFocusDrawings']());return _0x538899[_0x37da75(0x348)]===0x0?null:_0x5c5a38('div',{'className':_0x37da75(0x28b),'children':[_0x204a1f(_0x5f290d,{'drawings':_0x538899,'hasCropper':!0x1}),_0x204a1f(_0x100c92,{'drawings':_0x538899}),_0x204a1f(_0xe32e88,{'drawings':_0x538899})]});}function ca(_0x1fc75f){return _0x204a1f(_0x5c71dd,{'children':_0x204a1f(oa,{..._0x1fc75f,'PositionComponent':sa})});}function la({popup:_0x3f73fe}){const _0x33a417=_0x33b4ed;let _0x410569=_0x4f0443(_0x5a1674),{shapeType:_0x234fc9,onText:_0x495b37,onStyle:_0x30acd0,onDelete:_0x22b313}=_0x3f73fe[_0x33a417(0x3f4)],_0x1ca8f7=[{'key':_0x33a417(0x35c),'order':0x0,'item':{'id':_0x33a417(0x35c),'type':_0x7efdf3[_0x33a417(0x322)],'title':_0x410569['t'](_0x33a417(0x30e)),'disabled$':_0x336782(_0x394312(_0x234fc9))}},{'key':_0x33a417(0x301),'order':0x1,'item':{'id':'style','type':_0x7efdf3['BUTTON'],'title':_0x410569['t'](_0x33a417(0x3e9))}},{'key':_0x33a417(0x3c4),'order':0x2,'item':{'id':_0x33a417(0x3c4),'type':_0x7efdf3['BUTTON'],'title':_0x410569['t'](_0x33a417(0x428))}}];return _0x204a1f(_0x1e551c,{'schemas':_0x1ca8f7,'presentation':_0x33a417(0x209),'onOptionSelect':async({id:_0x93af73})=>{const _0x359ef7=_0x33a417;_0x93af73===_0x359ef7(0x35c)?await _0x495b37():_0x93af73===_0x359ef7(0x301)?await _0x30acd0():_0x93af73===_0x359ef7(0x3c4)&&await _0x22b313();}});}const ua=_0x33b4ed(0x2fb);function da(_0x10c278,_0x5103c0){const _0x36fd60=_0x33b4ed;var _0x5d5e89;let _0x4bca6d=_0x10c278==null||(_0x5d5e89=_0x10c278[_0x36fd60(0x213)]()[_0x36fd60(0x258)])==null?void 0x0:_0x5d5e89[_0x5103c0];return _0x4bca6d?_0x4bca6d['layoutType']===_0x2cd4cd['WRAP_NONE']?_0x4bca6d[_0x36fd60(0x33f)]===_0x51c9cc[_0x36fd60(0x424)]?_0x4a5267[_0x36fd60(0x1eb)]:_0x4a5267[_0x36fd60(0x1ce)]:_0x4bca6d[_0x36fd60(0x3f3)]===_0x2cd4cd[_0x36fd60(0x3fa)]?_0x4a5267[_0x36fd60(0x3fa)]:_0x4bca6d['layoutType']===_0x2cd4cd['WRAP_TOP_AND_BOTTOM']?_0x4a5267[_0x36fd60(0x388)]:_0x4a5267[_0x36fd60(0x1fc)]:_0x4a5267[_0x36fd60(0x1fc)];}function fa(_0x5024b2){const _0x18d6a6=_0x33b4ed;let _0x537d51=_0x4f0443(_0xafbc38),_0x39fe05=_0x182392(()=>_0x537d51[_0x18d6a6(0x2a9)],_0x537d51[_0x18d6a6(0x219)](),!0x1,[_0x537d51]),_0xba7fda=_0x5024b2[_0x18d6a6(0x2ec)][_0x18d6a6(0x3f4)];return _0x39fe05?_0x204a1f(pa,{..._0xba7fda,'canvasElement':_0x5024b2[_0x18d6a6(0x2ec)][_0x18d6a6(0x2b2)]}):null;}function pa(_0x5e52b6){const _0x2046cc=_0x33b4ed;let _0x48f519=_0x4f0443(_0x2474c3),_0x5a95ba=_0x4f0443(_0x5a1674),_0x3450ed=_0x4f0443(_0x2b6cfd),_0x5b250f=_0x4f0443(_0x1e69fb),{unitId:_0x10410a,subUnitId:_0xe1d718,drawingId:_0xffc913,shapeType:_0x5432bc}=_0x5e52b6,[_0x43d2a8,_0x5866ea]=_0x5ed182(_0x5e52b6['shapeData']),_0x315b87=_0x5b250f[_0x2046cc(0x3c5)](_0x10410a,_0x248b26[_0x2046cc(0x1bd)])??void 0x0,[_0x4bc231,_0x22fa62]=_0x5ed182(()=>da(_0x315b87,_0xffc913)),_0x2073ef=_0x536a10(()=>_0xea05c7(_0x43d2a8),[_0x43d2a8]),_0x3e4132=_0x536a10(()=>_0x565786(_0x43d2a8),[_0x43d2a8]);_0x335468(()=>{const _0x5da373=_0x2046cc;let _0x3bda53=_0x48f519[_0x5da373(0x2df)](_0x3eb7cf=>{const _0x2a08f5=_0x5da373;if(_0x3eb7cf['id']!==_0xee5b39['id'])return;let _0x429c2f=_0x3450ed[_0x2a08f5(0x1e0)](_0x10410a,_0xe1d718,_0xffc913);_0x429c2f&&_0x5866ea(_0x429c2f);});return()=>_0x3bda53[_0x5da373(0x2e5)]();},[_0x48f519,_0x3450ed,_0xffc913,_0xe1d718,_0x10410a]);let _0x58af00=_0x45e5c1=>{_0x5866ea(_0x5041bc=>({..._0x5041bc,..._0x45e5c1}));},_0x51cf1a=_0x48ac52=>{let _0x4a557b=_0x1f2428(_0x43d2a8,_0x48ac52);Yr(_0x48f519,_0x10410a,_0xe1d718,_0xffc913,{'oldShapeData':{'shapeText':_0x43d2a8['shapeText']}},_0x4a557b),_0x58af00(_0x4a557b);},_0x15535f=_0xf9df13=>{_0x22fa62(_0xf9df13),_0x48f519['executeCommand'](_0x5ef581['id'],{'unitId':_0x10410a,'subUnitId':_0xe1d718,'drawings':[{'unitId':_0x10410a,'subUnitId':_0xe1d718,'drawingId':_0xffc913}],'wrappingStyle':_0xf9df13});},_0x23ccfe=_0x1abe68({'hostType':_0x248b26['UNIVER_DOC'],'unitId':_0x10410a,'subUnitId':_0xe1d718,'shapeId':_0xffc913,'shapeData':_0x43d2a8,'onUpdateBinding':_0x30318b=>{const _0x1c499c=_0x2046cc;let _0x21c1d6={'formulaBinding':_0x30318b};Yr(_0x48f519,_0x10410a,_0xe1d718,_0xffc913,{'oldShapeData':{'formulaBinding':_0x43d2a8[_0x1c499c(0x1ea)]}},_0x21c1d6),_0x58af00(_0x21c1d6);}}),_0x115464=[{'label':_0x5a95ba['t'](_0x2046cc(0x21b)),'value':_0x4a5267[_0x2046cc(0x1fc)],'icon':_0x204a1f(_0x15512e,{})},{'label':_0x5a95ba['t']('docs-shape-ui.textWrap.square'),'value':_0x4a5267[_0x2046cc(0x3fa)],'icon':_0x204a1f(_0x15512e,{})},{'label':_0x5a95ba['t'](_0x2046cc(0x232)),'value':_0x4a5267[_0x2046cc(0x388)],'icon':_0x204a1f(_0x15512e,{})},{'label':_0x5a95ba['t'](_0x2046cc(0x1de)),'value':_0x4a5267['BEHIND_TEXT'],'icon':_0x204a1f(_0x15512e,{})},{'label':_0x5a95ba['t'](_0x2046cc(0x3ed)),'value':_0x4a5267[_0x2046cc(0x1ce)],'icon':_0x204a1f(_0x15512e,{})}];return _0x5c5a38(_0x74fc90,{'children':[_0x204a1f(_0x38e7bd,{'canvasElement':_0x5e52b6[_0x2046cc(0x2b2)],'shapeData':_0x43d2a8,'shapeType':_0x5432bc,'textStyle':{'ff':_0x45f006['shapeText']['fontFamily'],'fs':_0x45f006[_0x2046cc(0x22e)][_0x2046cc(0x1d3)],'cl':{'rgb':_0x45f006[_0x2046cc(0x22e)][_0x2046cc(0x2f6)]},..._0x2073ef},'textModel':_0x3e4132?{'ha':_0x3e4132['ha']??_0x163f8a['LEFT'],'va':_0x3e4132['va']??_0x9ed22a[_0x2046cc(0x419)]}:null,'wrappingStyle':_0x4bc231,'wrappingStyleOptions':_0x115464,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x45f006[_0x2046cc(0x2a4)],'defaultGradientEndColor':_0x45f006['gradientEndColor'],'defaultStrokeColor':_0x45f006[_0x2046cc(0x1dd)],'extensionGroups':_0x23ccfe['extensionGroups'],'floatingObjectToolbarPosition':_0x52cb5e['DOC'],'onUpdateShapeData':(_0x39ba95,_0x40fe08)=>{Yr(_0x48f519,_0x10410a,_0xe1d718,_0xffc913,_0x39ba95,_0x40fe08),_0x40fe08&&_0x58af00(_0x40fe08);},'onUpdateText':_0x51cf1a,'onUpdateWrappingStyle':_0x536399=>_0x15535f(_0x536399),'onOpenPanel':()=>{const _0x2d7555=_0x2046cc;_0x48f519[_0x2d7555(0x39c)](G['id'],{'unitId':_0x10410a,'subUnitId':_0xe1d718,'drawingId':_0xffc913});},'onDelete':()=>{const _0x59647d=_0x2046cc;_0x48f519[_0x59647d(0x39c)](_0x3f45a7['id'],{'unitId':_0x10410a,'drawings':[{'unitId':_0x10410a,'subUnitId':_0xe1d718,'drawingId':_0xffc913}]});}}),_0x23ccfe[_0x2046cc(0x32c)]]});}function ma({variant:_0x47df01,extend:_0x373260,..._0x458b58}){const _0x3b33f9=_0x33b4ed;let _0x215f8f=_0x204a1f(_0x3b33f9(0x346),{'x':'7','y':_0x3b33f9(0x362),'width':'6','height':'9','rx':'1','fill':_0x3b33f9(0x41f),'fillOpacity':'0.14','stroke':'currentColor','strokeWidth':'1.2'});return _0x5c5a38(_0x3b33f9(0x335),{'aria-hidden':_0x3b33f9(0x397),'fill':_0x3b33f9(0x347),'height':'1em','viewBox':_0x3b33f9(0x334),'width':_0x3b33f9(0x235),..._0x458b58,'children':[_0x47df01===_0x3b33f9(0x292)&&_0x5c5a38(_0x74fc90,{'children':[_0x204a1f(_0x3b33f9(0x367),{'d':_0x3b33f9(0x343),'stroke':'currentColor','strokeLinecap':_0x3b33f9(0x38f),'strokeWidth':_0x3b33f9(0x1e5)}),_0x204a1f('rect',{'x':'8','y':'7','width':'4','height':'6','rx':_0x3b33f9(0x29a),'fill':_0x3b33f9(0x41f),'fillOpacity':_0x3b33f9(0x289),'stroke':_0x3b33f9(0x41f),'strokeWidth':_0x3b33f9(0x1e5)})]}),_0x47df01===_0x3b33f9(0x1c8)&&_0x5c5a38(_0x74fc90,{'children':[_0x204a1f(_0x3b33f9(0x367),{'d':_0x3b33f9(0x3e3),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x3b33f9(0x1e5)}),_0x215f8f]}),_0x47df01===_0x3b33f9(0x1e7)&&_0x5c5a38(_0x74fc90,{'children':[_0x204a1f('path',{'d':_0x3b33f9(0x222),'stroke':_0x3b33f9(0x41f),'strokeLinecap':_0x3b33f9(0x38f),'strokeWidth':_0x3b33f9(0x1e5)}),_0x215f8f]}),_0x47df01===_0x3b33f9(0x330)&&_0x5c5a38(_0x74fc90,{'children':[_0x215f8f,_0x204a1f('path',{'d':_0x3b33f9(0x2d9),'stroke':_0x3b33f9(0x41f),'strokeLinecap':_0x3b33f9(0x38f),'strokeWidth':'1.2'})]}),_0x47df01===_0x3b33f9(0x28d)&&_0x5c5a38(_0x74fc90,{'children':[_0x204a1f(_0x3b33f9(0x367),{'d':'M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','stroke':'currentColor','strokeLinecap':_0x3b33f9(0x38f),'strokeWidth':_0x3b33f9(0x1e5)}),_0x204a1f('rect',{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x3b33f9(0x41f)})]})]});}const ha=_0x2eb4d8=>_0x3d8ab8=>_0x204a1f(ma,{..._0x3d8ab8,'variant':_0x2eb4d8}),ga={'DocsShapeWrapInlineIcon':ha('inline'),'DocsShapeWrapSquareIcon':ha(_0x33b4ed(0x1c8)),'DocsShapeWrapTopBottomIcon':ha(_0x33b4ed(0x1e7)),'DocsShapeWrapBehindTextIcon':ha(_0x33b4ed(0x330)),'DocsShapeWrapInFrontOfTextIcon':ha(_0x33b4ed(0x28d))},_a=_0x20bf0f(()=>{const _0x5dc05f=_0x33b4ed;let _0x253d68=_0x4f0443(Q),_0x33009d=_0x4f0443(_0x2b6cfd),_0x3fcf80=_0x4f0443(_0x8501d),_0x4c1ca9=_0x4f0443(_0x2474c3),_0x5d1e6a=_0x536a10(()=>({'getShapeModel':(_0x38018f,_0xe6dbe1,_0x14b0e1)=>_0x33009d[_0x5dc05f(0x36f)](_0x38018f,_0xe6dbe1,_0x14b0e1),'getShapeData':(_0x5715f5,_0x5093d2,_0x33dcda)=>_0x33009d['getShapeDataById'](_0x5715f5,_0x5093d2,_0x33dcda),'getDrawingTransform':(_0x48b2fd,_0x38cff4,_0xd6883e)=>{const _0x396f26=_0x5dc05f;let _0x855be2=_0x3fcf80[_0x396f26(0x268)]({'unitId':_0x48b2fd,'subUnitId':_0x38cff4,'drawingId':_0xd6883e});return _0x855be2==null?void 0x0:_0x855be2[_0x396f26(0x3cd)];},'updateShapeText':({unitId:_0x413cbe,shapeId:_0xa2d327,shapeText:_0x1db220,oldShapeText:_0x51138f})=>{const _0x51e476=_0x5dc05f;_0x4c1ca9[_0x51e476(0x39c)](_0x1a49e3['id'],{'unitId':_0x413cbe,'shapeId':_0xa2d327,'shapeData':{'shapeText':_0x1db220},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x51138f}}});},'updateHostSize':({unitId:_0xc9e09,subUnitId:_0x3b278c,shapeId:_0x2248ac,width:_0x175817,height:_0x1af576})=>{const _0x5ca12d=_0x5dc05f;_0x4c1ca9[_0x5ca12d(0x39c)](_0x39bf96['id'],{'unitId':_0xc9e09,'subUnitId':_0x3b278c,'drawings':[{'drawingId':_0x2248ac,'key':'size','value':{'width':_0x175817,'height':_0x1af576}}]});},'allowHostSizeShrink':({unitId:_0x6a6510,subUnitId:_0x2b9281,shapeId:_0x32bd92})=>_0x2db28c(_0x33009d[_0x5dc05f(0x1e0)](_0x6a6510,_0x2b9281,_0x32bd92))}),[_0x4c1ca9,_0x33009d,_0x3fcf80]),_0x64e81b=_0x536a10(()=>({'viewportKeys':{'main':_0x55f01c[_0x5dc05f(0x40e)]}}),[]);return _0x204a1f(_0x587c3f,{'adapter':_0x5d1e6a,'editingService':_0x253d68,'editorUnitId':Ar,'positionOptions':_0x64e81b});});let va=class extends _0x256e8f{constructor(_0x16af7d,_0x585188){const _0x30bccc=_0x33b4ed;super(),this['_componentManager']=_0x16af7d,this['_iconManager']=_0x585188,this['_registerIcons'](),this[_0x30bccc(0x2dc)]();}[_0x33b4ed(0x321)](){const _0x3d87b7=_0x33b4ed;this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x2e8))||this[_0x3d87b7(0x39a)](this[_0x3d87b7(0x24d)][_0x3d87b7(0x1da)]({'ObjectLayersIcon':_0x3d0405})),this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x383))||this['disposeWithMe'](this[_0x3d87b7(0x24d)]['register']({'BottomIcon':_0x58619f})),this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x408))||this[_0x3d87b7(0x39a)](this[_0x3d87b7(0x24d)][_0x3d87b7(0x1da)]({'MoveDownIcon':_0x51ed93})),this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x218))||this[_0x3d87b7(0x39a)](this['_iconManager'][_0x3d87b7(0x1da)]({'MoveUpIcon':_0x5aa3fa})),this['_iconManager'][_0x3d87b7(0x3a2)](_0x3d87b7(0x212))||this[_0x3d87b7(0x39a)](this['_iconManager'][_0x3d87b7(0x1da)]({'ShapeFormatSettingIcon':_0x31ef3a})),this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x2d6))||this['disposeWithMe'](this[_0x3d87b7(0x24d)][_0x3d87b7(0x1da)]({'TopmostIcon':_0x1ff755})),this[_0x3d87b7(0x39a)](this[_0x3d87b7(0x24d)][_0x3d87b7(0x1da)](ga));}[_0x33b4ed(0x2dc)](){const _0x28a388=_0x33b4ed;this[_0x28a388(0x39a)](this['_componentManager'][_0x28a388(0x1da)](W,ca)),this['disposeWithMe'](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](kr,ra)),this['disposeWithMe'](this[_0x28a388(0x1e3)]['register'](ua,la)),this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](Qr,ii)),this['disposeWithMe'](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](Zr,ai)),this[_0x28a388(0x39a)](this['_componentManager'][_0x28a388(0x1da)]($r,oi)),this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](ei,si)),this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)]['register'](ti,ci)),this['disposeWithMe'](this[_0x28a388(0x1e3)]['register'](jr,_0x171fcd)),this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](Lr,Qi)),this[_0x28a388(0x39a)](this['_componentManager'][_0x28a388(0x1da)](Rr,$i)),this[_0x28a388(0x1e3)][_0x28a388(0x1cb)](_0x34cbd7)||this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](_0x34cbd7,Hr)),this['disposeWithMe'](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](Mr,_a));}};va=q([K(0x0,_0x179bf2(_0x497683)),K(0x1,_0x179bf2(_0x4a3fd6))],va);let ya=class extends _0x256e8f{constructor(_0x5c6c42,_0x5980da,_0x40c487,_0x3628f9,_0x53e1d5,_0xbbf25b,_0x279122,_0xcbcca7,_0x3dcf67,_0xadcf2,_0x1cc86b,_0x4adada,_0x153a6e){const _0x2120aa=_0x33b4ed;super(),this['_univerInstanceService']=_0x5c6c42,this['_sidebarService']=_0x5980da,this[_0x2120aa(0x1ed)]=_0x40c487,this[_0x2120aa(0x1be)]=_0x3628f9,this['_localeService']=_0x53e1d5,this[_0x2120aa(0x2c8)]=_0xbbf25b,this['_drawingManagerService']=_0x279122,this[_0x2120aa(0x333)]=_0xcbcca7,this[_0x2120aa(0x414)]=_0x3dcf67,this[_0x2120aa(0x263)]=_0xadcf2,this['_shapeTextEditingService']=_0x1cc86b,this[_0x2120aa(0x376)]=_0x4adada,this[_0x2120aa(0x30f)]=_0x153a6e,X(this,_0x2120aa(0x340),null),X(this,_0x2120aa(0x329),null),X(this,_0x2120aa(0x1f6),!0x1),X(this,_0x2120aa(0x1c2),0x0),X(this,_0x2120aa(0x2ba),new Map()),X(this,'_popupTargetKeys',new Map()),this[_0x2120aa(0x3d4)](),this['disposeWithMe'](this[_0x2120aa(0x27f)]['getCurrentTypeOfUnit$'](_0x248b26[_0x2120aa(0x1bd)])[_0x2120aa(0x364)](_0x31a0c5=>{const _0x27d939=_0x2120aa;if(!_0x31a0c5){var _0x16ec69;(_0x16ec69=this[_0x27d939(0x340)])==null||_0x16ec69[_0x27d939(0x2e5)]();}})),this['_registerOperations'](),this[_0x2120aa(0x39a)](this[_0x2120aa(0x356)][_0x2120aa(0x1df)][_0x2120aa(0x364)](_0x4975ed=>{const _0x51c5d0=_0x2120aa;for(let _0x27f2c0 of _0x4975ed){let _0x39eb8a=_0x27f2c0[_0x51c5d0(0x1c7)]+':'+_0x27f2c0[_0x51c5d0(0x1c6)]+':'+_0x27f2c0[_0x51c5d0(0x310)];for(let [_0x277492,_0x22d928]of this[_0x51c5d0(0x3a1)])_0x22d928===_0x39eb8a&&this[_0x51c5d0(0x351)](_0x277492,!0x0);}})),this[_0x2120aa(0x39a)](_0x312ad1(this[_0x2120aa(0x414)],_0x248b26['UNIVER_DOC'],_0x403d12=>this[_0x2120aa(0x27b)](_0x403d12))),this['disposeWithMe'](this['_shapeTextEditingService'][_0x2120aa(0x426)][_0x2120aa(0x364)](_0x5e87ca=>{const _0x2efa4a=_0x2120aa;_0x5e87ca&&this[_0x2efa4a(0x351)](void 0x0,!0x0);})),this[_0x2120aa(0x39a)](this['_permissionService'][_0x2120aa(0x20d)]['subscribe'](()=>{const _0x559b33=_0x2120aa;this[_0x559b33(0x356)][_0x559b33(0x26c)]()[_0x559b33(0x2e0)](_0x9cb239=>_0x9cb239['drawingType']===_0x197ccb['DRAWING_SHAPE']&&this['_univerInstanceService']['getUnitType'](_0x9cb239[_0x559b33(0x1c7)])===_0x248b26[_0x559b33(0x1bd)]&&!this[_0x559b33(0x3de)](_0x9cb239[_0x559b33(0x1c7)],_0x9cb239[_0x559b33(0x310)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x559b33(0x309)]());}));}[_0x33b4ed(0x360)](_0x343ccd,_0x55b003,_0x1bb9a9,_0x304e47){const _0x4cbc09=_0x33b4ed;return[{'label':_0x4cbc09(0x1f4),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x343ccd,'subUnitId':_0x55b003,'drawingId':_0x1bb9a9},'disable':_0x304e47===_0x197ccb['DRAWING_DOM']},{'label':_0x4cbc09(0x285),'index':0x1,'commandId':_0x3f45a7['id'],'commandParams':{'unitId':_0x343ccd,'drawings':[{'unitId':_0x343ccd,'subUnitId':_0x55b003,'drawingId':_0x1bb9a9}]},'disable':!0x1},{'label':_0x4cbc09(0x3b0),'index':0x2,'commandId':zi['id'],'commandParams':{'unitId':_0x343ccd,'subUnitId':_0x55b003,'drawingId':_0x1bb9a9},'disable':!0x1}];}['_initMenu'](){const _0x1a187b=_0x33b4ed;this['_menuManagerService'][_0x1a187b(0x3ac)](Ii);}[_0x33b4ed(0x241)](_0x532982,_0x39ab87,_0x289637){const _0x25ceb1=_0x33b4ed;let _0x382a68=this['_docsShapeService'][_0x25ceb1(0x2a7)](_0x532982,_0x39ab87,_0x289637),_0xc0efbb=this[_0x25ceb1(0x1be)][_0x25ceb1(0x1e0)](_0x532982,_0x39ab87,_0x289637);return _0x382a68===void 0x0||_0xc0efbb===void 0x0?null:{'shapeData':_0xc0efbb,'shapeId':_0x289637,'shapeType':_0x382a68,'unitId':_0x532982,'subUnitId':_0x39ab87,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1};}[_0x33b4ed(0x351)](_0x575e9d,_0x321225=!0x1){const _0x593e20=_0x33b4ed;if(_0x575e9d==null){[...this[_0x593e20(0x2ba)][_0x593e20(0x316)]()][_0x593e20(0x27a)](_0x417710=>this[_0x593e20(0x351)](_0x417710,_0x321225));return;}let _0x17ca71=this['_disposePopupsByUnit'][_0x593e20(0x3d8)](_0x575e9d);if(_0x17ca71){for(let _0x302017=_0x17ca71[_0x593e20(0x348)]-0x1;_0x302017>=0x0;--_0x302017){let _0x545fa0=_0x17ca71[_0x302017];(_0x321225||_0x545fa0[_0x593e20(0x36e)]())&&(_0x545fa0['dispose'](),_0x17ca71[_0x593e20(0x203)](_0x302017,0x1));}_0x17ca71[_0x593e20(0x348)]===0x0&&(this[_0x593e20(0x2ba)][_0x593e20(0x3c4)](_0x575e9d),this['_popupTargetKeys'][_0x593e20(0x3c4)](_0x575e9d));}}[_0x33b4ed(0x283)](_0x13ecd0){const _0x2919c1=_0x33b4ed;let _0x553400=this[_0x2919c1(0x2ba)]['get'](_0x13ecd0);if(_0x553400)return _0x553400;let _0x49b93b=[];return this[_0x2919c1(0x2ba)][_0x2919c1(0x328)](_0x13ecd0,_0x49b93b),_0x49b93b;}[_0x33b4ed(0x27b)](_0x4d9f75){const _0x36148b=_0x33b4ed;var _0x4d78d4;let _0x2aef98=new _0x107b45(),_0x6f3192=(_0x4d78d4=this[_0x36148b(0x414)][_0x36148b(0x352)](_0x248b26['UNIVER_DOC'])['find'](_0x43b54b=>_0x43b54b['scene'][_0x36148b(0x29f)]()===_0x4d9f75))==null?void 0x0:_0x4d78d4[_0x36148b(0x1c7)];return _0x6f3192&&(_0x2aef98[_0x36148b(0x205)](_0x4d9f75[_0x36148b(0x34e)][_0x36148b(0x364)](()=>this[_0x36148b(0x311)](_0x4d9f75,_0x6f3192))),_0x2aef98[_0x36148b(0x205)](_0x4d9f75['clearControl$'][_0x36148b(0x364)](()=>{const _0x4e6d21=_0x36148b;this[_0x4e6d21(0x351)](_0x6f3192),queueMicrotask(()=>{const _0x19e895=_0x4e6d21;_0x4d9f75['getSelectedObjectMap']()[_0x19e895(0x391)]>0x0||!this[_0x19e895(0x356)][_0x19e895(0x26c)]()['some'](_0x150c28=>_0x150c28[_0x19e895(0x1c7)]===_0x6f3192)||(this[_0x19e895(0x263)][_0x19e895(0x327)](_0x2a75d8,!0x1),this['_drawingManagerService'][_0x19e895(0x2d5)](null));});})),_0x2aef98[_0x36148b(0x205)](_0x4d9f75[_0x36148b(0x36a)][_0x36148b(0x364)](()=>{const _0x560c1c=_0x36148b;this[_0x560c1c(0x351)](_0x6f3192,!0x0);}))),_0x2aef98;}[_0x33b4ed(0x311)](_0x4f2e53,_0x185d21){const _0x1617ad=_0x33b4ed;let _0x377a1b=_0x4f2e53['getSelectedObjectMap']();if(this[_0x1617ad(0x1f6)]){this[_0x1617ad(0x351)](_0x185d21,!0x0);return;}if(_0x377a1b['size']>0x1){this['_clearPopups'](_0x185d21);return;}let _0x4e7248=_0x377a1b[_0x1617ad(0x1f2)]()['next']()['value'];if(!_0x4e7248){this[_0x1617ad(0x351)](_0x185d21);return;}let _0x50f3a5=this['_drawingManagerService'][_0x1617ad(0x2ef)](_0x4e7248['oKey']);if(!_0x50f3a5||_0x50f3a5[_0x1617ad(0x221)]!==_0x197ccb[_0x1617ad(0x374)]){this[_0x1617ad(0x351)](_0x185d21);return;}let {unitId:_0x57f957,subUnitId:_0x228c16,drawingId:_0x307a28}=_0x50f3a5;if(!this[_0x1617ad(0x3de)](_0x57f957,_0x307a28)){this[_0x1617ad(0x351)](_0x185d21,!0x0);return;}let _0xfc1474=this[_0x1617ad(0x241)](_0x57f957,_0x228c16,_0x307a28);if(!_0xfc1474){this['_clearPopups'](_0x185d21);return;}let _0x2fa32c=this[_0x1617ad(0x2ba)][_0x1617ad(0x3d8)](_0x185d21),_0x406e88=_0x57f957+':'+_0x228c16+':'+_0x307a28;if(this[_0x1617ad(0x3a1)][_0x1617ad(0x3d8)](_0x185d21)===_0x406e88&&_0x2fa32c!=null&&_0x2fa32c['length'])return;this['_clearPopups'](_0x185d21);let _0x2e7789=this['_renderManagerService'][_0x1617ad(0x359)](_0x57f957),_0x51c27f=((_0x2e7789==null?void 0x0:_0x2e7789['isMainScene'])===!0x1?_0x2e7789['with'](_0x506b97):this[_0x1617ad(0x333)])['attachPopupToObject'](_0x4e7248,this[_0x1617ad(0x254)](_0xfc1474,()=>this[_0x1617ad(0x351)](_0x185d21,!0x0)),_0x57f957);this[_0x1617ad(0x39a)](_0x51c27f),this[_0x1617ad(0x283)](_0x185d21)[_0x1617ad(0x3db)](_0x51c27f),this[_0x1617ad(0x3a1)][_0x1617ad(0x328)](_0x185d21,_0x406e88),this[_0x1617ad(0x356)][_0x1617ad(0x26c)]()[_0x1617ad(0x2e0)](_0x14d0eb=>_0x14d0eb[_0x1617ad(0x1c7)]===_0x57f957&&_0x14d0eb[_0x1617ad(0x1c6)]===_0x228c16&&_0x14d0eb[_0x1617ad(0x310)]===_0x307a28)||this[_0x1617ad(0x356)]['focusDrawing']([{'unitId':_0x57f957,'subUnitId':_0x228c16,'drawingId':_0x307a28}]);}[_0x33b4ed(0x254)](_0x4b2a99,_0x51c461){const _0x26a0bd=_0x33b4ed;let {unitId:_0x28ddae,subUnitId:_0x284d82,shapeId:_0x4910b0}=_0x4b2a99,_0x12f692={'hostType':_0x248b26['UNIVER_DOC'],'unitId':_0x28ddae,'subUnitId':_0x284d82,'shapeId':_0x4910b0};return{'componentKey':ua,'requiresStableLayout':!0x1,'direction':_0x26a0bd(0x326),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x4b2a99['shapeType'],'onText':()=>{const _0x2570bb=_0x26a0bd;_0x51c461(),this[_0x2570bb(0x30f)][_0x2570bb(0x40b)](_0x2570bb(0x35c),_0x12f692);},'onStyle':()=>{const _0x4cd187=_0x26a0bd;_0x51c461(),this['_mobileEditorService']['open'](_0x4cd187(0x301),_0x12f692);},'onDelete':()=>this['_commandService'][_0x26a0bd(0x39c)](_0x3f45a7['id'],{'unitId':_0x28ddae,'drawings':[{'unitId':_0x28ddae,'subUnitId':_0x284d82,'drawingId':_0x4910b0}]})}};}[_0x33b4ed(0x3de)](_0x3e21b9,_0x6cecc3){const _0x350627=_0x33b4ed;let _0x5981b0=this[_0x350627(0x27f)]['getUnit'](_0x3e21b9,_0x248b26['UNIVER_DOC']);if(!_0x5981b0)return!0x1;let _0x4ea522=_0x1142fd(_0x5981b0,_0x6cecc3);return _0x1e4951(this[_0x350627(0x376)],_0x3e21b9,[..._0x2e9cb2(_0x5981b0,_0x4ea522,_0x350627(0x26d),_0x6cecc3),_0x365faa(_0x4ea522,_0x350627(0x26d),_0x6cecc3)]);}['_registerOperations'](){const _0x3059c7=_0x33b4ed;this[_0x3059c7(0x39a)](this['_commandService'][_0x3059c7(0x2df)](_0x5f4eb0=>{const _0x1d93ae=_0x3059c7;if(_0x5f4eb0['id']===G['id']){let {unitId:_0x3beaf5,subUnitId:_0x3b1eaa,drawingId:_0x186bae}=_0x5f4eb0['params'];this['_shapeEditPanelVersion']+=0x1,this[_0x1d93ae(0x329)]=this[_0x1d93ae(0x241)](_0x3beaf5,_0x3b1eaa,_0x186bae),this[_0x1d93ae(0x351)](void 0x0,!0x0),this[_0x1d93ae(0x288)]();}if(_0x5f4eb0['id']===zi['id']&&(this['_activeShapeInfo']=null,this[_0x1d93ae(0x309)]()),_0x5f4eb0['id']===_0xee5b39['id']){var _0x40903d;let {unitId:_0x439f16,shapeId:_0x256c08}=_0x5f4eb0['params'];if(((_0x40903d=this[_0x1d93ae(0x329)])==null?void 0x0:_0x40903d[_0x1d93ae(0x402)])===_0x256c08){let _0xc18e4f=this[_0x1d93ae(0x241)](_0x439f16,this[_0x1d93ae(0x329)][_0x1d93ae(0x1c6)],_0x256c08);_0xc18e4f&&(this[_0x1d93ae(0x1c2)]+=0x1,_0xc18e4f[_0x1d93ae(0x3b2)]=this[_0x1d93ae(0x1c2)],this[_0x1d93ae(0x329)]=_0xc18e4f,this[_0x1d93ae(0x1f6)]&&this[_0x1d93ae(0x288)]());}}})),this[_0x3059c7(0x39a)](this[_0x3059c7(0x356)]['focus$'][_0x3059c7(0x364)](_0x4d7b85=>{const _0x4120cf=_0x3059c7;if(!this[_0x4120cf(0x1f6)])return;if(_0x4d7b85[_0x4120cf(0x348)]===0x0){this[_0x4120cf(0x329)]=null,this[_0x4120cf(0x309)]();return;}if(_0x4d7b85[_0x4120cf(0x348)]===0x1&&_0x4d7b85[0x0][_0x4120cf(0x221)]===_0x197ccb[_0x4120cf(0x374)]&&(this[_0x4120cf(0x1c2)]+=0x1,this['_activeShapeInfo']=this[_0x4120cf(0x241)](_0x4d7b85[0x0][_0x4120cf(0x1c7)],_0x4d7b85[0x0]['subUnitId'],_0x4d7b85[0x0][_0x4120cf(0x310)]),this[_0x4120cf(0x329)])){this[_0x4120cf(0x288)]();return;}let _0x1341fb=_0x4d7b85[_0x4120cf(0x319)](_0xf52daa=>_0xf52daa['drawingType']===_0x197ccb[_0x4120cf(0x374)]);this['_shapeEditPanelVersion']+=0x1,this[_0x4120cf(0x329)]=this[_0x4120cf(0x241)](_0x4d7b85[0x0][_0x4120cf(0x1c7)],_0x4d7b85[0x0]['subUnitId'],_0x4d7b85[0x0][_0x4120cf(0x310)]),this[_0x4120cf(0x329)]&&_0x4d7b85[_0x4120cf(0x348)]>0x1&&_0x1341fb[_0x4120cf(0x348)]===_0x4d7b85['length']?this[_0x4120cf(0x288)]():this[_0x4120cf(0x329)]&&_0x1341fb['length']!==_0x4d7b85[_0x4120cf(0x348)]?(this[_0x4120cf(0x329)][_0x4120cf(0x206)]=!0x0,this[_0x4120cf(0x288)]()):this[_0x4120cf(0x309)]();}));}[_0x33b4ed(0x288)](){const _0x12be9f=_0x33b4ed;this[_0x12be9f(0x329)]&&(this['_sidebarDisposable']=this[_0x12be9f(0x1e1)]['open']({'id':W,'header':{'title':this[_0x12be9f(0x308)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0x12be9f(0x329)]},'onClose':()=>{const _0x25520a=_0x12be9f;this[_0x25520a(0x356)][_0x25520a(0x2d5)](null),this[_0x25520a(0x263)][_0x25520a(0x327)](_0x2a75d8,!0x1),this[_0x25520a(0x340)]=null;}}),this[_0x12be9f(0x1f6)]=!0x0);}[_0x33b4ed(0x309)](){const _0x3ccdb7=_0x33b4ed;this[_0x3ccdb7(0x1f6)]=!0x1,this[_0x3ccdb7(0x1e1)][_0x3ccdb7(0x33a)](W),this['_sidebarDisposable']=null,this[_0x3ccdb7(0x263)][_0x3ccdb7(0x327)](_0x2a75d8,!0x1),this['_drawingManagerService'][_0x3ccdb7(0x2d5)](null);}};ya=q([K(0x0,_0x1e69fb),K(0x1,_0x179bf2(_0x1658ad)),K(0x2,_0x4b4118),K(0x3,_0x179bf2(_0x2b6cfd)),K(0x4,_0x179bf2(_0x5a1674)),K(0x5,_0x2474c3),K(0x6,_0x8501d),K(0x7,_0x179bf2(_0x506b97)),K(0x8,_0x456b85),K(0x9,_0x651387),K(0xa,_0x179bf2(Q)),K(0xb,_0x371e1a),K(0xc,_0x179bf2(_0x10d1ab))],ya);const ba='docs-shape-contextual-ribbon';let xa=class extends _0x256e8f{constructor(_0x58e032,_0xd66c62,_0x2ac8e3,_0x1e18f8,_0x3cf51a,_0x379c53){const _0x84b7cd=_0x33b4ed;super(),this['_menuManagerService']=_0x58e032,this[_0x84b7cd(0x24e)]=_0xd66c62,this['_drawingManagerService']=_0x2ac8e3,this[_0x84b7cd(0x27f)]=_0x1e18f8,this['_renderManagerService']=_0x3cf51a,this[_0x84b7cd(0x2ca)]=_0x379c53,X(this,_0x84b7cd(0x3a9),!0x1),this[_0x84b7cd(0x1ed)][_0x84b7cd(0x3ac)](Fi),this[_0x84b7cd(0x39a)](_0x519bb5(this[_0x84b7cd(0x356)][_0x84b7cd(0x1d8)][_0x84b7cd(0x364)](()=>this[_0x84b7cd(0x2d1)]()))),this[_0x84b7cd(0x2d1)]();}[_0x33b4ed(0x2e5)](){const _0x230d62=_0x33b4ed;this[_0x230d62(0x2ca)][_0x230d62(0x1d2)](!0x1,ba),this['_hide'](),super[_0x230d62(0x2e5)]();}['_update'](){const _0x1df246=_0x33b4ed;var _0x293000;let _0xdfca08=this[_0x1df246(0x356)][_0x1df246(0x26c)](),_0x389847=_0xdfca08[_0x1df246(0x348)]===0x1?_0xdfca08[0x0]:void 0x0;if((_0x389847==null?void 0x0:_0x389847[_0x1df246(0x221)])!==_0x197ccb[_0x1df246(0x374)]||this[_0x1df246(0x27f)][_0x1df246(0x200)](_0x389847['unitId'])!==_0x248b26[_0x1df246(0x1bd)]){this[_0x1df246(0x2ca)][_0x1df246(0x1d2)](!0x1,ba),this['_hide']();return;}let _0x2daa69=(_0x293000=this[_0x1df246(0x414)]['getRenderUnitById'](_0x389847[_0x1df246(0x1c7)]))==null?void 0x0:_0x293000[_0x1df246(0x2c4)][_0x1df246(0x227)](),_0x333c2c=_0x26f91d(_0x2daa69)===_0x1df246(0x24c);this['_shapeFloatingToolbarService'][_0x1df246(0x1d2)](_0x333c2c,ba),_0x333c2c?this['_hide']():(this['_visible']=!0x0,this[_0x1df246(0x24e)][_0x1df246(0x358)](Or,{'activate':!0x0}));}[_0x33b4ed(0x261)](){const _0x342de7=_0x33b4ed;this['_visible']&&(this[_0x342de7(0x3a9)]=!0x1,this[_0x342de7(0x24e)][_0x342de7(0x412)](Or),this['_ribbonService'][_0x342de7(0x41c)]([]));}};xa=q([K(0x0,_0x4b4118),K(0x1,_0x18d17b),K(0x2,_0x8501d),K(0x3,_0x1e69fb),K(0x4,_0x456b85),K(0x5,_0x179bf2(_0xafbc38))],xa);let Sa=class extends _0x256e8f{constructor(_0x1d7fc4,_0x42d03a,_0x26ed76,_0x2c746c){const _0xa96d7f=_0x33b4ed;super(),this[_0xa96d7f(0x2c8)]=_0x1d7fc4,this[_0xa96d7f(0x414)]=_0x42d03a,this[_0xa96d7f(0x356)]=_0x26ed76,this[_0xa96d7f(0x287)]=_0x2c746c,this[_0xa96d7f(0x421)]();}['_initialize'](){const _0x1ada23=_0x33b4ed;this[_0x1ada23(0x39a)](this[_0x1ada23(0x356)][_0x1ada23(0x3f5)][_0x1ada23(0x364)](_0x10dea4=>this[_0x1ada23(0x1ef)](_0x10dea4))),this[_0x1ada23(0x39a)](this[_0x1ada23(0x356)][_0x1ada23(0x379)][_0x1ada23(0x364)](_0x2c74a1=>{const _0x4381da=_0x1ada23;_0x2c74a1['forEach'](_0x977306=>this[_0x4381da(0x41a)](_0x977306));})),this['disposeWithMe'](this[_0x1ada23(0x2c8)][_0x1ada23(0x2df)](_0x118876=>{const _0x4fe9ca=_0x1ada23;if(_0x118876['id']!==_0xee5b39['id'])return;let {unitId:_0x3c66fc,shapeId:_0x4c467c}=_0x118876[_0x4fe9ca(0x1f5)];this[_0x4fe9ca(0x341)]({'unitId':_0x3c66fc,'subUnitId':_0x3c66fc,'drawingId':_0x4c467c});}));}[_0x33b4ed(0x1ef)](_0x446b66){_0x446b66['forEach'](_0x240a8b=>{const _0x4f8319=_0x3935;let _0x2a4df8=this[_0x4f8319(0x30c)](_0x240a8b[_0x4f8319(0x1c7)]);if(!_0x2a4df8)return;let _0x3bdfc7=this[_0x4f8319(0x356)][_0x4f8319(0x268)](_0x240a8b);(_0x3bdfc7==null?void 0x0:_0x3bdfc7[_0x4f8319(0x221)])===_0x197ccb[_0x4f8319(0x374)]&&this[_0x4f8319(0x287)][_0x4f8319(0x31a)](_0x3bdfc7,_0x2a4df8[_0x4f8319(0x2e9)]);});}[_0x33b4ed(0x41a)](_0x1ba532){const _0x5b4ee1=_0x33b4ed;let _0x2aa180=this[_0x5b4ee1(0x356)]['getDrawingByParam'](_0x1ba532);if((_0x2aa180==null?void 0x0:_0x2aa180[_0x5b4ee1(0x221)])!==_0x197ccb[_0x5b4ee1(0x374)])return;let _0x230612=this[_0x5b4ee1(0x30c)](_0x1ba532['unitId']);if(!_0x230612||_0x2aa180['transform']==null)return;let _0x432caa=_0x2d5511(_0x1ba532),_0x23ff28=_0x230612[_0x5b4ee1(0x2e9)][_0x5b4ee1(0x37c)](_0x432caa);_0x23ff28&&(_0x23ff28[_0x5b4ee1(0x34d)](_0x2aa180[_0x5b4ee1(0x217)]),_0x23ff28[_0x5b4ee1(0x3cf)](_0x2aa180['prstGeom']),_0x23ff28[_0x5b4ee1(0x3dd)](!0x0));}[_0x33b4ed(0x341)](_0x36d38c){const _0x47d602=_0x33b4ed;let _0x312f03=this[_0x47d602(0x30c)](_0x36d38c[_0x47d602(0x1c7)]);if(!_0x312f03)return;let _0x3799a9=_0x2d5511(_0x36d38c),_0x4dee2f=_0x312f03[_0x47d602(0x2e9)][_0x47d602(0x37c)](_0x3799a9);_0x4dee2f&&(this[_0x47d602(0x287)][_0x47d602(0x354)](_0x4dee2f),this[_0x47d602(0x287)][_0x47d602(0x361)](_0x4dee2f,{'unitId':_0x36d38c[_0x47d602(0x1c7)],'subUnitId':_0x36d38c['subUnitId'],'shapeId':_0x36d38c[_0x47d602(0x310)]}),_0x4dee2f['makeDirty'](!0x0));}[_0x33b4ed(0x30c)](_0x5e3520){const _0x5875b2=_0x33b4ed;if(_0x5e3520==null)return null;let _0x2530fd=this[_0x5875b2(0x414)][_0x5875b2(0x359)](_0x5e3520),_0x500d11=_0x2530fd==null?void 0x0:_0x2530fd[_0x5875b2(0x2e9)];return _0x500d11==null?null:{'scene':_0x500d11};}};Sa=q([K(0x0,_0x2474c3),K(0x1,_0x456b85),K(0x2,_0x8501d),K(0x3,_0x179bf2($))],Sa);let Ca=class extends _0x43bd26{constructor(_0x2817e8=Vi,_0xe3092b,_0x45ef90,_0xea44b7,_0x2173da){const _0x4f8907=_0x33b4ed;super(),this[_0x4f8907(0x368)]=_0x2817e8,this['_injector']=_0xe3092b,this[_0x4f8907(0x2c8)]=_0x45ef90,this['_configService']=_0xea44b7,this[_0x4f8907(0x414)]=_0x2173da;let {menu:_0x50fd79,..._0x450bfb}=_0x2d69fe({},Vi,this[_0x4f8907(0x368)]);_0x50fd79&&this['_configService']['setConfig']('menu',_0x50fd79,{'merge':!0x0}),this[_0x4f8907(0x396)][_0x4f8907(0x420)](Bi,_0x450bfb),[U,zi,G,Nr,Fr,Ir][_0x4f8907(0x27a)](_0x2007f3=>this[_0x4f8907(0x39a)](this[_0x4f8907(0x2c8)][_0x4f8907(0x220)](_0x2007f3)));}[_0x33b4ed(0x282)](){const _0x35d4f5=_0x33b4ed;let _0x4d1970=[[va],[ya],[Sa],[$],[Yi],[qi],[J],[ia],[Q],[xa]];_0x490b6f(this['_injector'],_0x4d1970),this[_0x35d4f5(0x233)][_0x35d4f5(0x3d8)](va);}[_0x33b4ed(0x2d3)](){const _0x51b323=_0x33b4ed;this[_0x51b323(0x39a)](this[_0x51b323(0x414)][_0x51b323(0x248)](_0x248b26[_0x51b323(0x1bd)],[qi])),_0x899513(this[_0x51b323(0x233)],[[ya],[Sa],[$],[Yi],[J],[ia],[Q],[xa]]);}};function _0x3935(_0x316339,_0x12e5bf){_0x316339=_0x316339-0x1bd;const _0x15fc7a=_0x15fc();let _0x393598=_0x15fc7a[_0x316339];return _0x393598;}X(Ca,_0x33b4ed(0x392),_0x248b26['UNIVER_DOC']),X(Ca,_0x33b4ed(0x20a),_0x33b4ed(0x2cd)),X(Ca,_0x33b4ed(0x2db),Li),X(Ca,_0x33b4ed(0x3b2),Ri),Ca=q([_0xeaf711(_0x3c2eb4,_0x2db5f7,_0x2b9ee4,_0x173033,_0x28d240,_0x5173fc,_0x1a75fd,_0x4f5b06,_0x2ef163,_0x198fdd),K(0x1,_0x179bf2(_0x3193fa)),K(0x2,_0x2474c3),K(0x3,_0x4747a4),K(0x4,_0x456b85)],Ca);let wa=class extends _0x256e8f{constructor(_0x4f26bd,_0x296582){const _0x2b4b98=_0x33b4ed;super(),this[_0x2b4b98(0x1e3)]=_0x4f26bd,this[_0x2b4b98(0x24d)]=_0x296582,this[_0x2b4b98(0x321)](),this[_0x2b4b98(0x2dc)]();}['_registerIcons'](){const _0xabe1b4=_0x33b4ed;this[_0xabe1b4(0x24d)]['has'](_0xabe1b4(0x2e8))||this[_0xabe1b4(0x39a)](this[_0xabe1b4(0x24d)]['register']({'ObjectLayersIcon':_0x3d0405})),this[_0xabe1b4(0x24d)]['has']('BottomIcon')||this['disposeWithMe'](this['_iconManager'][_0xabe1b4(0x1da)]({'BottomIcon':_0x58619f})),this[_0xabe1b4(0x24d)][_0xabe1b4(0x3a2)](_0xabe1b4(0x408))||this['disposeWithMe'](this[_0xabe1b4(0x24d)]['register']({'MoveDownIcon':_0x51ed93})),this[_0xabe1b4(0x24d)]['has'](_0xabe1b4(0x218))||this['disposeWithMe'](this['_iconManager'][_0xabe1b4(0x1da)]({'MoveUpIcon':_0x5aa3fa})),this[_0xabe1b4(0x24d)][_0xabe1b4(0x3a2)](_0xabe1b4(0x212))||this[_0xabe1b4(0x39a)](this[_0xabe1b4(0x24d)][_0xabe1b4(0x1da)]({'ShapeFormatSettingIcon':_0x31ef3a})),this[_0xabe1b4(0x24d)][_0xabe1b4(0x3a2)]('TopmostIcon')||this[_0xabe1b4(0x39a)](this[_0xabe1b4(0x24d)][_0xabe1b4(0x1da)]({'TopmostIcon':_0x1ff755})),this['disposeWithMe'](this[_0xabe1b4(0x24d)][_0xabe1b4(0x1da)](ga));}[_0x33b4ed(0x2dc)](){const _0x1df50c=_0x33b4ed;this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](W,oa)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](kr,na)),this['disposeWithMe'](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](ua,fa)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)]['register'](Qr,ii)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)]['register'](Zr,ai)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)]($r,oi)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](ei,si)),this['disposeWithMe'](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](ti,ci)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](jr,_0x171fcd)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](Lr,Ur)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)]['register'](Rr,Vr)),this[_0x1df50c(0x1e3)]['hasDefault'](_0x34cbd7)||this[_0x1df50c(0x39a)](this['_componentManager'][_0x1df50c(0x1da)](_0x34cbd7,Hr)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](Mr,_a));}};wa=q([K(0x0,_0x179bf2(_0x497683)),K(0x1,_0x179bf2(_0x4a3fd6))],wa);let Ta=class extends _0x256e8f{constructor(_0x53cbec,_0xc4720d,_0x3bc670,_0x1dbaa9,_0x4d7668,_0x272bab,_0x42a737,_0x4da815,_0x3aa6c0){const _0x2281bb=_0x33b4ed;super();let _0x4b2495=_0x5259ff=>{const _0x17cdaf=_0x3935;let _0x3bfd6a=_0x272bab[_0x17cdaf(0x3c5)](_0x5259ff[_0x17cdaf(0x1c7)],_0x248b26[_0x17cdaf(0x1bd)]),_0x534075=_0x3bfd6a?_0x1142fd(_0x3bfd6a,_0x5259ff['shapeId']):'';return!!_0x3bfd6a&&_0x1e4951(_0x4da815,_0x5259ff[_0x17cdaf(0x1c7)],[_0x365faa(_0x534075,_0x17cdaf(0x26d),_0x5259ff['shapeId']),..._0x2e9cb2(_0x3bfd6a,_0x534075,'drawing',_0x5259ff[_0x17cdaf(0x402)])]);},_0x7dd30a=_0xcad723=>_0xcad723[_0x2281bb(0x402)]&&_0x4b2495(_0xcad723)?_0x3bc670[_0x2281bb(0x1e0)](_0xcad723['unitId'],_0xcad723[_0x2281bb(0x402)])??null:null,_0x152d7a=()=>{const _0x30d168=_0x2281bb;let _0x2832dc=_0x4d7668[_0x30d168(0x26c)](),_0x32c895=_0x2832dc[_0x30d168(0x348)]===0x1?_0x2832dc[0x0]:null;return(_0x32c895==null?void 0x0:_0x32c895[_0x30d168(0x221)])===_0x197ccb['DRAWING_SHAPE']&&_0x32c895[_0x30d168(0x1c7)]===_0x53cbec[_0x30d168(0x1c7)]?{'unitId':_0x32c895[_0x30d168(0x1c7)],'subUnitId':_0x32c895[_0x30d168(0x1c6)],'shapeId':_0x32c895[_0x30d168(0x310)]}:null;};this[_0x2281bb(0x39a)](_0x4c0695(_0x53cbec,_0xc4720d,{'changes$':_0x231b03(_0x4d7668[_0x2281bb(0x1d8)],_0x1dbaa9[_0x2281bb(0x426)],_0x4da815[_0x2281bb(0x20d)]),'isActive':()=>{const _0x1c26c2=_0x2281bb;var _0x32979f;return((_0x32979f=_0x272bab[_0x1c26c2(0x38d)]())==null?void 0x0:_0x32979f[_0x1c26c2(0x223)]())===_0x53cbec[_0x1c26c2(0x1c7)]&&!_0x42a737[_0x1c26c2(0x20e)](_0x48ed79)&&_0x4d7668[_0x1c26c2(0x26c)]()[_0x1c26c2(0x2e0)](_0x1c6342=>_0x1c6342[_0x1c26c2(0x1c7)]===_0x53cbec[_0x1c26c2(0x1c7)]);},'getSelectedTarget':_0x152d7a,'getSource':()=>{let _0x39dd6f=_0x152d7a();return _0x39dd6f?_0x7dd30a(_0x39dd6f):null;},'getTarget':_0x36dc46=>{const _0x267c1e=_0x2281bb;let _0x5a83df=_0x53cbec[_0x267c1e(0x2e9)]['pick'](new _0x482a77(_0x36dc46['offsetX'],_0x36dc46[_0x267c1e(0x25d)]));if(!(_0x5a83df instanceof Z))return null;let _0x3acccc={'unitId':_0x53cbec['unitId'],'subUnitId':_0x53cbec['unitId'],'shapeId':_0x5a83df[_0x267c1e(0x402)]};return _0x4b2495(_0x3acccc)?_0x3acccc:null;},'getShape':_0x7dd30a,'update':(_0x158154,_0x2a8a26,_0x51fc1d)=>_0x3aa6c0[_0x2281bb(0x39c)](_0x1a49e3['id'],{..._0x158154,'shapeData':_0x51fc1d,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x2a8a26}})}));}};Ta=q([K(0x1,_0x179bf2(_0x575a29)),K(0x2,_0x179bf2(_0x2b6cfd)),K(0x3,_0x179bf2(Q)),K(0x4,_0x8501d),K(0x5,_0x1e69fb),K(0x6,_0x651387),K(0x7,_0x371e1a),K(0x8,_0x2474c3)],Ta);function Ea(_0x229383,_0x3d4d64){const _0x438f7d=_0x33b4ed;let _0x195142=_0x229383;for(;_0x195142;){if(_0x3d4d64(_0x195142))return _0x195142;_0x195142=typeof _0x195142[_0x438f7d(0x245)]==_0x438f7d(0x377)?_0x195142['getParent']():null;}return null;}function Da(_0x1b9ed6){return Ea(_0x1b9ed6,_0x1960ef=>_0x1960ef instanceof Z);}function Oa(_0x2c8b75){const _0x3d7ef0=_0x33b4ed;return(_0x2c8b75==null?void 0x0:_0x2c8b75[_0x3d7ef0(0x1ea)])==null;}let ka=class extends _0x256e8f{constructor(_0x4ce02e,_0x183818,_0x5f0b3f,_0x2fc61a,_0x27526f){const _0x1e1b91=_0x33b4ed;super(),this[_0x1e1b91(0x2be)]=_0x4ce02e,this[_0x1e1b91(0x3c8)]=_0x183818,this[_0x1e1b91(0x356)]=_0x5f0b3f,this[_0x1e1b91(0x23a)]=_0x2fc61a,this[_0x1e1b91(0x1be)]=_0x27526f,X(this,_0x1e1b91(0x22d),null),X(this,_0x1e1b91(0x1f1),null),this['_initEvents'](),this[_0x1e1b91(0x325)](),this['_initEditingParams']();}[_0x33b4ed(0x2e5)](){const _0x227088=_0x33b4ed;this[_0x227088(0x390)](),super[_0x227088(0x2e5)]();}[_0x33b4ed(0x398)](){const _0x26e6ca=_0x33b4ed;let {scene:_0x419814}=this[_0x26e6ca(0x2be)];this[_0x26e6ca(0x39a)](_0x419814[_0x26e6ca(0x422)][_0x26e6ca(0x2b5)]((_0x322a2d,_0x3b6000)=>{const _0x573e48=_0x26e6ca;let {offsetX:_0x10e187,offsetY:_0x4be566}=_0x322a2d,_0x484361=_0x482a77[_0x573e48(0x38e)]([_0x10e187,_0x4be566]),_0x2f29b3=Da(_0x419814[_0x573e48(0x349)](_0x484361))??this[_0x573e48(0x2a3)](_0x484361);if(_0x2f29b3){_0x3b6000[_0x573e48(0x350)]();let _0x511b8c=this[_0x573e48(0x1be)][_0x573e48(0x36f)](_0x2f29b3[_0x573e48(0x1c7)],_0x2f29b3[_0x573e48(0x1c6)],_0x2f29b3[_0x573e48(0x402)]);if(!_0x511b8c||_0x394312(_0x511b8c[_0x573e48(0x400)]())||!Oa(_0x511b8c[_0x573e48(0x244)]()))return;this[_0x573e48(0x3c8)]['setEditing']({'visible':!0x0,'unitId':_0x2f29b3[_0x573e48(0x1c7)],'subUnitId':_0x2f29b3['subUnitId'],'shapeId':_0x2f29b3['shapeId'],'shapeKey':_0x2f29b3[_0x573e48(0x1cf)]});}}));}[_0x33b4ed(0x2a3)](_0x442b22){const _0x482b4d=_0x33b4ed;let {scene:_0x52df8f}=this[_0x482b4d(0x2be)];return this[_0x482b4d(0x356)][_0x482b4d(0x26c)]()[_0x482b4d(0x41d)](_0x4b8dc4=>_0x52df8f['getObjectIncludeInGroup'](_0x2d5511(_0x4b8dc4)))['find'](_0x4e9822=>_0x4e9822 instanceof Z&&_0x4e9822[_0x482b4d(0x355)](_0x442b22))??null;}['_initSelection'](){const _0x5b694b=_0x33b4ed;this['disposeWithMe'](this[_0x5b694b(0x356)][_0x5b694b(0x1d8)][_0x5b694b(0x364)](_0x29206d=>{const _0x1d6ae6=_0x5b694b;if(_0x29206d[_0x1d6ae6(0x348)]===0x1){let _0x4713d3=_0x29206d[0x0],_0x4041a1=this[_0x1d6ae6(0x356)][_0x1d6ae6(0x268)](_0x4713d3);if((_0x4041a1==null?void 0x0:_0x4041a1['drawingType'])===_0x197ccb[_0x1d6ae6(0x374)]){let _0x6cf40=this[_0x1d6ae6(0x3c8)]['getEditing']();if((_0x6cf40==null?void 0x0:_0x6cf40['shapeId'])===_0x4713d3[_0x1d6ae6(0x310)]&&_0x6cf40[_0x1d6ae6(0x298)])return;_0x394312(this['_docsShapeService'][_0x1d6ae6(0x400)](_0x4713d3[_0x1d6ae6(0x1c7)],_0x4713d3['subUnitId'],_0x4713d3[_0x1d6ae6(0x310)]))&&this[_0x1d6ae6(0x3c8)]['setEditing'](null);}else this[_0x1d6ae6(0x3c8)][_0x1d6ae6(0x2bc)]();}else this[_0x1d6ae6(0x3c8)][_0x1d6ae6(0x2bc)]();})),this[_0x5b694b(0x39a)](this['_drawingManagerService'][_0x5b694b(0x1df)]['subscribe'](_0x3da0c0=>{const _0x205fdf=_0x5b694b;let _0x422c46=this[_0x205fdf(0x3c8)][_0x205fdf(0x24a)]();_0x422c46&&_0x3da0c0[_0x205fdf(0x2e0)](_0x1f4736=>_0x1f4736[_0x205fdf(0x310)]===_0x422c46[_0x205fdf(0x402)])&&this['_shapeTextEditingService'][_0x205fdf(0x281)](null);}));}[_0x33b4ed(0x29c)](){const _0x3fe3c2=_0x33b4ed;this['disposeWithMe'](this[_0x3fe3c2(0x3c8)][_0x3fe3c2(0x426)][_0x3fe3c2(0x364)](_0x542097=>{const _0x1c3d50=_0x3fe3c2;(_0x542097==null?void 0x0:_0x542097[_0x1c3d50(0x298)])===!0x0&&_0x542097[_0x1c3d50(0x1c7)]===this['_context'][_0x1c3d50(0x1c7)]?this['_layoutInteraction']??=this[_0x1c3d50(0x23a)][_0x1c3d50(0x411)]():this[_0x1c3d50(0x390)]();let {scene:_0x34983c}=this[_0x1c3d50(0x2be)];if(this['_lastEditingShapeKey']){let _0x16bcb6=_0x34983c[_0x1c3d50(0x37c)](this[_0x1c3d50(0x22d)]);_0x16bcb6&&_0x16bcb6[_0x1c3d50(0x281)](!0x1);}if(_0x542097){let _0x4123b5=!!_0x542097[_0x1c3d50(0x298)],_0x21d3a4=_0x34983c[_0x1c3d50(0x37c)](_0x542097[_0x1c3d50(0x3c3)]);_0x21d3a4&&(_0x21d3a4[_0x1c3d50(0x281)](_0x4123b5),this[_0x1c3d50(0x22d)]=_0x542097[_0x1c3d50(0x3c3)]);}else this[_0x1c3d50(0x22d)]=null;}));}[_0x33b4ed(0x390)](){const _0x23755a=_0x33b4ed;var _0x4dda06;(_0x4dda06=this[_0x23755a(0x1f1)])==null||_0x4dda06[_0x23755a(0x2e5)](),this[_0x23755a(0x1f1)]=null;}};ka=q([K(0x1,_0x179bf2(Q)),K(0x2,_0x8501d),K(0x3,_0x179bf2(_0x2431a6)),K(0x4,_0x179bf2(_0x2b6cfd))],ka);let Aa=class extends _0xafa84c{constructor(_0x2d29c2,_0x26acd9,_0x34b330,_0x32a0b0,_0x31bf6f,_0x3da4f4,_0x3bdc98,_0x1668dc,_0x4180cd,_0x169c5e){super(_0x2d29c2,_0x26acd9,_0x34b330,_0x32a0b0,_0x31bf6f,_0x3da4f4,_0x3bdc98,_0x1668dc,_0x4180cd,_0x169c5e,{'componentKey':jr,'editorUnitId':Ar});}};Aa=q([K(0x1,_0x179bf2(_0x1507b5)),K(0x2,_0x179bf2(_0x506b97)),K(0x3,_0x179bf2(_0x277f8c)),K(0x4,_0x2474c3),K(0x5,_0x179bf2(_0x4e8139)),K(0x6,_0x179bf2(_0x3c0cac)),K(0x7,_0x179bf2(_0x3ac20b)),K(0x8,_0x179bf2(_0x50c2a2)),K(0x9,_0x179bf2(Q))],Aa);let ja=class extends _0x4093ea{constructor(_0x34dc5a,_0x1c33d2,_0x1f43d4,_0x115a28,_0x2a0249){const _0x54750b=_0x33b4ed;super(_0x34dc5a,_0x1c33d2,{'editing$':_0x1f43d4[_0x54750b(0x426)],'resolve':_0x5ec860=>{const _0x429bab=_0x54750b;var _0x954275;let _0x4f0853=new _0x482a77(_0x5ec860[_0x429bab(0x3a7)],_0x5ec860[_0x429bab(0x25d)]),_0x38f3b9=((_0x954275=_0x34dc5a['scene'][_0x429bab(0x3ab)](_0x4f0853))==null?void 0x0:_0x954275[_0x429bab(0x3df)](_0x4f0853))??_0x4f0853,_0x5d4525=_0x2efdd6(_0x34dc5a['scene']['pick'](_0x4f0853)??null,_0x38f3b9);if(!(_0x5d4525 instanceof Z))return null;let _0x5275d1=_0x5d4525[_0x429bab(0x3b7)](_0x38f3b9);if(!_0x5275d1)return null;let _0x43e9b1=_0x5d4525,_0x160b1f={'componentKey':_0xb65d9[_0x429bab(0x2bf)],'direction':_0x429bab(0x326),'offset':[0x0,0xa],'onClickOutside':()=>_0x1c33d2[_0x429bab(0x42e)]()};return{'object':_0x5d4525,'info':{..._0x5275d1,'unitId':_0x5d4525[_0x429bab(0x1c7)],'subUnitId':_0x5d4525[_0x429bab(0x1c6)],'shapeKey':_0x5d4525[_0x429bab(0x1cf)],'readonly':!0x0,'copyable':_0x5efff4(_0x2a0249,_0x5d4525['unitId'],_0x5d4525['unitId'],_0x4f9b0b[_0x429bab(0x2d8)])},'attachPopup':()=>_0x115a28[_0x429bab(0x1d6)](_0x43e9b1,_0x160b1f,_0x43e9b1[_0x429bab(0x1c7)])};}});}};ja=q([K(0x1,_0x179bf2(_0x3c0cac)),K(0x2,_0x179bf2(Q)),K(0x3,_0x179bf2(_0x506b97)),K(0x4,_0x371e1a)],ja);let Ma=class extends _0x256e8f{constructor(_0x45a037,_0x5e02a3,_0x3988ad,_0x7614f1,_0x412d49,_0x342898,_0xbabf28,_0x2f4be2,_0x179992,_0x41af6c,_0x10d49b,_0x15daf2){const _0x13e85f=_0x33b4ed;super(),this[_0x13e85f(0x27f)]=_0x45a037,this['_sidebarService']=_0x5e02a3,this['_menuManagerService']=_0x3988ad,this[_0x13e85f(0x1be)]=_0x7614f1,this[_0x13e85f(0x308)]=_0x412d49,this[_0x13e85f(0x2c8)]=_0x342898,this[_0x13e85f(0x356)]=_0xbabf28,this['_docCanvasPopManagerService']=_0x2f4be2,this[_0x13e85f(0x414)]=_0x179992,this[_0x13e85f(0x263)]=_0x41af6c,this[_0x13e85f(0x3c8)]=_0x10d49b,this[_0x13e85f(0x376)]=_0x15daf2,X(this,_0x13e85f(0x340),null),X(this,'_activeShapeInfo',null),X(this,_0x13e85f(0x1f6),!0x1),X(this,_0x13e85f(0x1c2),0x0),X(this,'_disposePopupsByUnit',new Map()),X(this,_0x13e85f(0x3a1),new Map()),this[_0x13e85f(0x3d4)](),this[_0x13e85f(0x39a)](this[_0x13e85f(0x27f)][_0x13e85f(0x3dc)](_0x248b26['UNIVER_DOC'])[_0x13e85f(0x364)](_0x3f62e2=>{const _0x5e820=_0x13e85f;if(!_0x3f62e2){var _0x4cd315;(_0x4cd315=this['_sidebarDisposable'])==null||_0x4cd315[_0x5e820(0x2e5)]();}})),this[_0x13e85f(0x24b)](),this[_0x13e85f(0x39a)](this[_0x13e85f(0x356)]['remove$']['subscribe'](_0x4429c1=>{const _0x26d58b=_0x13e85f;for(let _0x2e876b of _0x4429c1){let _0x3b3019=_0x2e876b[_0x26d58b(0x1c7)]+':'+_0x2e876b[_0x26d58b(0x1c6)]+':'+_0x2e876b[_0x26d58b(0x310)];for(let [_0x92333c,_0x368c8d]of this['_popupTargetKeys'])_0x368c8d===_0x3b3019&&this[_0x26d58b(0x351)](_0x92333c,!0x0);}})),this[_0x13e85f(0x39a)](_0x312ad1(this[_0x13e85f(0x414)],_0x248b26[_0x13e85f(0x1bd)],_0xe28349=>this[_0x13e85f(0x27b)](_0xe28349))),this[_0x13e85f(0x39a)](this[_0x13e85f(0x3c8)][_0x13e85f(0x426)][_0x13e85f(0x364)](_0x58b540=>{_0x58b540&&this['_clearPopups'](void 0x0,!0x0);})),this['disposeWithMe'](this[_0x13e85f(0x376)][_0x13e85f(0x20d)]['subscribe'](()=>{const _0x440393=_0x13e85f;this[_0x440393(0x356)]['getFocusDrawings']()[_0x440393(0x2e0)](_0x2ab639=>_0x2ab639['drawingType']===_0x197ccb[_0x440393(0x374)]&&this[_0x440393(0x27f)][_0x440393(0x200)](_0x2ab639['unitId'])===_0x248b26['UNIVER_DOC']&&!this[_0x440393(0x3de)](_0x2ab639[_0x440393(0x1c7)],_0x2ab639[_0x440393(0x310)]))&&(this[_0x440393(0x351)](void 0x0,!0x0),this['_closeShapeEditPanel']());}));}['_initMenu'](){const _0x94948c=_0x33b4ed;this[_0x94948c(0x1ed)]['mergeMenu'](Ii);}[_0x33b4ed(0x360)](_0x3d7ef4,_0x5013b1,_0x5f33b3,_0x484db8){const _0x488832=_0x33b4ed;return[{'label':_0x488832(0x1f4),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x3d7ef4,'subUnitId':_0x5013b1,'drawingId':_0x5f33b3},'disable':_0x484db8===_0x197ccb[_0x488832(0x267)]},{'label':_0x488832(0x285),'index':0x1,'commandId':_0x3f45a7['id'],'commandParams':{'unitId':_0x3d7ef4,'drawings':[{'unitId':_0x3d7ef4,'subUnitId':_0x5013b1,'drawingId':_0x5f33b3}]},'disable':!0x1},{'label':_0x488832(0x3b0),'index':0x2,'commandId':zi['id'],'commandParams':{'unitId':_0x3d7ef4,'subUnitId':_0x5013b1,'drawingId':_0x5f33b3},'disable':!0x1}];}[_0x33b4ed(0x241)](_0x18d681,_0x244463,_0x1d855c){const _0x11613c=_0x33b4ed;let _0x51b78a=this[_0x11613c(0x1be)][_0x11613c(0x2a7)](_0x18d681,_0x244463,_0x1d855c),_0x132274=this[_0x11613c(0x1be)][_0x11613c(0x1e0)](_0x18d681,_0x244463,_0x1d855c);return _0x51b78a!==void 0x0&&_0x132274!==void 0x0?{'shapeData':_0x132274,'shapeId':_0x1d855c,'shapeType':_0x51b78a,'unitId':_0x18d681,'subUnitId':_0x244463,'version':this[_0x11613c(0x1c2)],'disableShapeOption':!0x1}:null;}[_0x33b4ed(0x351)](_0x15f40d,_0x18b85c=!0x1){const _0x2d6a6a=_0x33b4ed;if(_0x15f40d==null){[...this[_0x2d6a6a(0x2ba)][_0x2d6a6a(0x316)]()][_0x2d6a6a(0x27a)](_0x154bb9=>this['_clearPopups'](_0x154bb9,_0x18b85c));return;}let _0x5b703a=this[_0x2d6a6a(0x2ba)][_0x2d6a6a(0x3d8)](_0x15f40d);if(_0x5b703a){for(let _0x2a071d=_0x5b703a['length']-0x1;_0x2a071d>=0x0;--_0x2a071d){let _0x4bd975=_0x5b703a[_0x2a071d];(_0x18b85c||_0x4bd975['canDispose']())&&(_0x4bd975[_0x2d6a6a(0x2e5)](),_0x5b703a[_0x2d6a6a(0x203)](_0x2a071d,0x1));}_0x5b703a['length']===0x0&&(this[_0x2d6a6a(0x2ba)]['delete'](_0x15f40d),this[_0x2d6a6a(0x3a1)][_0x2d6a6a(0x3c4)](_0x15f40d));}}['_getDisposePopups'](_0xa7b35d){const _0xdc41b7=_0x33b4ed;let _0x29390e=this[_0xdc41b7(0x2ba)]['get'](_0xa7b35d);if(_0x29390e)return _0x29390e;let _0x1d22dd=[];return this[_0xdc41b7(0x2ba)][_0xdc41b7(0x328)](_0xa7b35d,_0x1d22dd),_0x1d22dd;}[_0x33b4ed(0x27b)](_0xab6837){const _0x2276cd=_0x33b4ed;var _0x437789;let _0x2aa802=new _0x107b45(),_0x2473fd=(_0x437789=this['_renderManagerService'][_0x2276cd(0x352)](_0x248b26[_0x2276cd(0x1bd)])[_0x2276cd(0x2cc)](_0x8a4929=>_0x8a4929[_0x2276cd(0x2e9)][_0x2276cd(0x29f)]()===_0xab6837))==null?void 0x0:_0x437789[_0x2276cd(0x1c7)];return _0x2473fd&&(_0x2aa802[_0x2276cd(0x205)](_0xab6837[_0x2276cd(0x34e)]['subscribe'](()=>this['_handleCreateControl'](_0xab6837,_0x2473fd))),_0x2aa802['add'](_0xab6837[_0x2276cd(0x38c)][_0x2276cd(0x364)](()=>{const _0x337db3=_0x2276cd;this[_0x337db3(0x351)](_0x2473fd),queueMicrotask(()=>{const _0xa7eb1e=_0x337db3;_0xab6837[_0xa7eb1e(0x39e)]()['size']>0x0||!this[_0xa7eb1e(0x356)][_0xa7eb1e(0x26c)]()[_0xa7eb1e(0x2e0)](_0x1230f0=>_0x1230f0['unitId']===_0x2473fd)||(this[_0xa7eb1e(0x263)][_0xa7eb1e(0x327)](_0x2a75d8,!0x1),this[_0xa7eb1e(0x356)][_0xa7eb1e(0x2d5)](null));});})),_0x2aa802['add'](_0xab6837[_0x2276cd(0x36a)][_0x2276cd(0x364)](()=>{const _0xd28be9=_0x2276cd;this[_0xd28be9(0x351)](_0x2473fd,!0x0);}))),_0x2aa802;}['_handleCreateControl'](_0xbd7e6c,_0x61bb35){const _0x5f5a00=_0x33b4ed;let _0x55ea98=_0xbd7e6c[_0x5f5a00(0x39e)]();if(this[_0x5f5a00(0x1f6)]){this[_0x5f5a00(0x351)](_0x61bb35,!0x0);return;}if(_0x55ea98[_0x5f5a00(0x391)]>0x1){this[_0x5f5a00(0x351)](_0x61bb35);return;}let _0x4d8855=_0x55ea98[_0x5f5a00(0x1f2)]()[_0x5f5a00(0x339)]()['value'];if(!_0x4d8855){this[_0x5f5a00(0x351)](_0x61bb35);return;}let _0x2a6765=this[_0x5f5a00(0x356)][_0x5f5a00(0x2ef)](_0x4d8855['oKey']);if(!_0x2a6765||_0x2a6765[_0x5f5a00(0x221)]!==_0x197ccb[_0x5f5a00(0x374)]){this[_0x5f5a00(0x351)](_0x61bb35);return;}let {unitId:_0x3c85a3,subUnitId:_0x512f86,drawingId:_0x3b58ce,drawingType:_0x373167}=_0x2a6765;if(!this[_0x5f5a00(0x3de)](_0x3c85a3,_0x3b58ce)){this['_clearPopups'](_0x61bb35,!0x0);return;}let _0x13c792=this['_getShapeInfo'](_0x3c85a3,_0x512f86,_0x3b58ce);if(!_0x13c792){this[_0x5f5a00(0x351)](_0x61bb35);return;}let _0x9bbcee=this[_0x5f5a00(0x2ba)][_0x5f5a00(0x3d8)](_0x61bb35),_0x3957a0=_0x3c85a3+':'+_0x512f86+':'+_0x3b58ce;if(this[_0x5f5a00(0x3a1)][_0x5f5a00(0x3d8)](_0x61bb35)===_0x3957a0&&_0x9bbcee&&_0x9bbcee['length']>0x0)return;this['_clearPopups'](_0x61bb35);let _0x5e54e7=this[_0x5f5a00(0x414)][_0x5f5a00(0x359)](_0x3c85a3),_0x2d95af=((_0x5e54e7==null?void 0x0:_0x5e54e7[_0x5f5a00(0x2c1)])===!0x1?_0x5e54e7[_0x5f5a00(0x28f)](_0x506b97):this[_0x5f5a00(0x333)])[_0x5f5a00(0x1d6)](_0x4d8855,this['_getShapePopup'](_0x13c792,_0x373167),_0x3c85a3);this[_0x5f5a00(0x39a)](_0x2d95af),this['_getDisposePopups'](_0x61bb35)[_0x5f5a00(0x3db)](_0x2d95af),this[_0x5f5a00(0x3a1)][_0x5f5a00(0x328)](_0x61bb35,_0x3957a0),this[_0x5f5a00(0x356)]['getFocusDrawings']()[_0x5f5a00(0x2e0)](_0x1c4616=>_0x1c4616[_0x5f5a00(0x1c7)]===_0x3c85a3&&_0x1c4616[_0x5f5a00(0x1c6)]===_0x512f86&&_0x1c4616[_0x5f5a00(0x310)]===_0x3b58ce)||this[_0x5f5a00(0x356)][_0x5f5a00(0x2d5)]([{'unitId':_0x3c85a3,'subUnitId':_0x512f86,'drawingId':_0x3b58ce}]);}['_getShapePopup'](_0x1ae738,_0x1f0684){const _0x48cefb=_0x33b4ed;return{'componentKey':ua,'requiresStableLayout':!0x1,'direction':_0x48cefb(0x1d7),'offset':[0x0,_0x51c5f7],'extraProps':{'unitId':_0x1ae738[_0x48cefb(0x1c7)],'subUnitId':_0x1ae738[_0x48cefb(0x1c6)],'drawingId':_0x1ae738['shapeId'],'drawingType':_0x1f0684,'shapeType':_0x1ae738['shapeType'],'shapeData':_0x1ae738[_0x48cefb(0x295)]}};}['_canEditShape'](_0x8b2dc9,_0x1c1e5c){const _0x5a9a25=_0x33b4ed;let _0x3b51b9=this[_0x5a9a25(0x27f)][_0x5a9a25(0x3c5)](_0x8b2dc9,_0x248b26[_0x5a9a25(0x1bd)]);if(!_0x3b51b9)return!0x1;let _0x5ed6eb=_0x1142fd(_0x3b51b9,_0x1c1e5c);return _0x1e4951(this[_0x5a9a25(0x376)],_0x8b2dc9,[..._0x2e9cb2(_0x3b51b9,_0x5ed6eb,'drawing',_0x1c1e5c),_0x365faa(_0x5ed6eb,'drawing',_0x1c1e5c)]);}[_0x33b4ed(0x24b)](){const _0x2c2718=_0x33b4ed;this[_0x2c2718(0x39a)](this['_commandService'][_0x2c2718(0x2df)](_0x3c5120=>{const _0x5d8ee0=_0x2c2718;if(_0x3c5120['id']===G['id']){let {unitId:_0x3a330b,subUnitId:_0x37b6c6,drawingId:_0x1ec92a}=_0x3c5120[_0x5d8ee0(0x1f5)];this[_0x5d8ee0(0x1c2)]+=0x1,this[_0x5d8ee0(0x329)]=this['_getShapeInfo'](_0x3a330b,_0x37b6c6,_0x1ec92a),this['_clearPopups'](void 0x0,!0x0),this[_0x5d8ee0(0x288)]();}if(_0x3c5120['id']===zi['id']&&(this[_0x5d8ee0(0x329)]=null,this[_0x5d8ee0(0x309)]()),_0x3c5120['id']===_0xee5b39['id']){let {unitId:_0x3c5de6,shapeId:_0xbc43a7}=_0x3c5120[_0x5d8ee0(0x1f5)];if(this[_0x5d8ee0(0x329)]&&this[_0x5d8ee0(0x329)][_0x5d8ee0(0x402)]===_0xbc43a7){let _0x269db8=this[_0x5d8ee0(0x241)](_0x3c5de6,this[_0x5d8ee0(0x329)][_0x5d8ee0(0x1c6)],_0xbc43a7);_0x269db8&&(this[_0x5d8ee0(0x1c2)]+=0x1,_0x269db8[_0x5d8ee0(0x3b2)]=this[_0x5d8ee0(0x1c2)],this[_0x5d8ee0(0x329)]=_0x269db8,this['_isOpenedShapeEditPanel']&&this[_0x5d8ee0(0x288)]());}}})),this['disposeWithMe'](this[_0x2c2718(0x356)][_0x2c2718(0x1d8)]['subscribe'](_0x175ae0=>{const _0x55f513=_0x2c2718;if(this[_0x55f513(0x1f6)]===!0x1)return;if(_0x175ae0[_0x55f513(0x348)]===0x0){this['_activeShapeInfo']=null,this[_0x55f513(0x309)]();return;}if(_0x175ae0['length']===0x1&&_0x175ae0[0x0][_0x55f513(0x221)]===_0x197ccb[_0x55f513(0x374)]&&(this[_0x55f513(0x1c2)]+=0x1,this[_0x55f513(0x329)]=this[_0x55f513(0x241)](_0x175ae0[0x0][_0x55f513(0x1c7)],_0x175ae0[0x0][_0x55f513(0x1c6)],_0x175ae0[0x0][_0x55f513(0x310)]),this[_0x55f513(0x329)])){this[_0x55f513(0x288)]();return;}let _0x3c89db=_0x175ae0[_0x55f513(0x319)](_0x4298a0=>_0x4298a0[_0x55f513(0x221)]===_0x197ccb['DRAWING_SHAPE']);if(_0x175ae0[_0x55f513(0x348)]>0x1&&_0x3c89db[_0x55f513(0x348)]===_0x175ae0[_0x55f513(0x348)]){if(this[_0x55f513(0x1c2)]+=0x1,this[_0x55f513(0x329)]=this[_0x55f513(0x241)](_0x175ae0[0x0][_0x55f513(0x1c7)],_0x175ae0[0x0]['subUnitId'],_0x175ae0[0x0][_0x55f513(0x310)]),this['_activeShapeInfo']){this[_0x55f513(0x288)]();return;}}else{if(this[_0x55f513(0x1c2)]+=0x1,this[_0x55f513(0x329)]=this[_0x55f513(0x241)](_0x175ae0[0x0]['unitId'],_0x175ae0[0x0][_0x55f513(0x1c6)],_0x175ae0[0x0][_0x55f513(0x310)]),this[_0x55f513(0x329)]){this[_0x55f513(0x329)][_0x55f513(0x206)]=!0x0,this[_0x55f513(0x288)]();return;}}this[_0x55f513(0x309)]();}));}[_0x33b4ed(0x288)](){const _0x1687e3=_0x33b4ed;this['_activeShapeInfo']&&(this[_0x1687e3(0x340)]=this['_sidebarService']['open']({'id':W,'header':{'title':this[_0x1687e3(0x308)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0x1687e3(0x329)]},'onClose':()=>{const _0x2a9f48=_0x1687e3;this[_0x2a9f48(0x356)]['focusDrawing'](null),this['_contextService'][_0x2a9f48(0x327)](_0x2a75d8,!0x1),this[_0x2a9f48(0x340)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x33b4ed(0x309)](){const _0x5a962b=_0x33b4ed;this['_isOpenedShapeEditPanel']=!0x1,this[_0x5a962b(0x1e1)][_0x5a962b(0x33a)](W),this['_sidebarDisposable']=null,this[_0x5a962b(0x263)][_0x5a962b(0x327)](_0x2a75d8,!0x1),this[_0x5a962b(0x356)]['focusDrawing'](null);}};Ma=q([K(0x0,_0x1e69fb),K(0x1,_0x179bf2(_0x1658ad)),K(0x2,_0x4b4118),K(0x3,_0x179bf2(_0x2b6cfd)),K(0x4,_0x179bf2(_0x5a1674)),K(0x5,_0x2474c3),K(0x6,_0x8501d),K(0x7,_0x179bf2(_0x506b97)),K(0x8,_0x456b85),K(0x9,_0x651387),K(0xa,_0x179bf2(Q)),K(0xb,_0x371e1a)],Ma);let Na=class extends _0x256e8f{constructor(_0x3a4378,_0x368361){const _0x355d8a=_0x33b4ed;super(),this[_0x355d8a(0x1be)]=_0x3a4378,this[_0x355d8a(0x308)]=_0x368361,this[_0x355d8a(0x39a)](_0x519bb5(_0x1201f1((_0x48a88c,_0x5daecf,_0x347a55)=>this['_measure'](_0x48a88c,_0x5daecf,_0x347a55))));}[_0x33b4ed(0x33e)](_0x510ac4,_0x37c442,_0x531344){const _0x11fefd=_0x33b4ed;let _0x3fbb72=this['_docsShapeService']['getShapeModel'](_0x510ac4,_0x37c442);if(!_0x3fbb72)return null;let _0x14d53b=_0x3fbb72[_0x11fefd(0x244)](),_0x4fb974=_0x3ab30e(_0x14d53b),_0x5bcadd=_0x14d53b['shapeText'];if(!_0x5bcadd||_0x4fb974[_0x11fefd(0x3b3)]!==_0x251b87[_0x11fefd(0x22a)])return null;let _0x1e21fc=_0x531344[_0x11fefd(0x226)],_0x25cae6=_0x531344[_0x11fefd(0x382)];_0x3fbb72[_0x11fefd(0x395)]({'width':_0x1e21fc,'height':_0x25cae6});let _0x1b78c8=_0x3fbb72[_0x11fefd(0x429)]({'left':0x0,'top':0x0,'width':_0x1e21fc,'height':_0x25cae6}),_0x41f659=_0x323514(_0x11fefd(0x1d5)in _0x5bcadd?_0x5bcadd[_0x11fefd(0x1d5)]:void 0x0),_0x4c4d82=(_0x41f659==null?void 0x0:_0x41f659[_0x11fefd(0x313)])??('isRichText'in _0x5bcadd?_0x269d0d(_0x5bcadd,_0x37c442+_0x11fefd(0x26f)):null);if(!_0x4c4d82)return null;let _0x1332e0=_0x1e5357({'documentData':_0x4c4d82,'height':_0x25cae6,'shapeData':_0x14d53b,'textRect':_0x1b78c8,'width':_0x1e21fc,'widthBuffer':0x0});_0x1332e0&&({width:_0x1e21fc,height:_0x25cae6}=_0x1332e0,_0x3fbb72[_0x11fefd(0x395)]({'width':_0x1e21fc,'height':_0x25cae6}),_0x1b78c8=_0x3fbb72['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x1e21fc,'height':_0x25cae6}));let _0x58dd63=_0x5bcadd['isHorizontal']!==!0x1,_0x3a4419=_0x3b60aa(_0x4c4d82,{'isHorizontal':_0x58dd63,'textRect':_0x1b78c8,'verticalAlign':_0x41f659==null?void 0x0:_0x41f659['va'],'horizontalAlign':_0x41f659==null?void 0x0:_0x41f659['ha'],'wrapStrategy':_0x3f29ab(_0x14d53b)}),_0x185c11=new _0x483eaa(_0x3a4419),_0x4c757b=new _0x2fd191(_0x185c11),_0x308589=_0x11abd9['create'](_0x4c757b,this[_0x11fefd(0x308)]);try{var _0x2b8a4d,_0x43067a;_0x308589[_0x11fefd(0x389)]();let _0x440558=((_0x2b8a4d=_0x308589[_0x11fefd(0x1c1)]())==null?void 0x0:_0x2b8a4d['pages'])??[],_0x5661ea=_0x440558[_0x440558[_0x11fefd(0x348)]-0x1],_0x4d8d41=_0x5661ea?Math[_0x11fefd(0x366)](0x0,((_0x43067a=_0x522a83(_0x5661ea))==null?void 0x0:_0x43067a[_0x11fefd(0x2a0)])??0x0):0x0,_0x5cdbc9=_0x308589['getActualSize']()['actualHeight']+_0x4d8d41-(_0x58dd63?_0x1b78c8['height']:_0x1b78c8['width']);return Number[_0x11fefd(0x265)](_0x5cdbc9)?_0x58dd63?{'width':_0x1e21fc,'height':Math[_0x11fefd(0x366)](0x1,_0x25cae6+_0x5cdbc9)}:{'width':Math['max'](0x1,_0x1e21fc+_0x5cdbc9),'height':_0x25cae6}:null;}finally{_0x308589[_0x11fefd(0x2e5)](),_0x4c757b[_0x11fefd(0x2e5)](),_0x185c11[_0x11fefd(0x2e5)]();}}};Na=q([K(0x0,_0x179bf2(_0x2b6cfd)),K(0x1,_0x179bf2(_0x5a1674))],Na);let Pa=class extends _0x43bd26{constructor(_0x5d6c65=Vi,_0xa802b9,_0x487747,_0x2a8090,_0x51336b){const _0x50739f=_0x33b4ed;super(),this[_0x50739f(0x368)]=_0x5d6c65,this[_0x50739f(0x233)]=_0xa802b9,this['_commandService']=_0x487747,this[_0x50739f(0x396)]=_0x2a8090,this[_0x50739f(0x414)]=_0x51336b;let {menu:_0x473745,..._0x5857b4}=_0x2d69fe({},Vi,this[_0x50739f(0x368)]);_0x473745&&this[_0x50739f(0x396)][_0x50739f(0x420)](_0x50739f(0x31f),_0x473745,{'merge':!0x0}),this[_0x50739f(0x396)]['setConfig'](Bi,_0x5857b4),this[_0x50739f(0x2a2)]();}[_0x33b4ed(0x282)](){const _0x526720=_0x33b4ed;_0x490b6f(this[_0x526720(0x233)],this[_0x526720(0x21f)]()),this[_0x526720(0x233)][_0x526720(0x3d8)](wa),this['_initUIPart']();}[_0x33b4ed(0x21f)](){return[[wa],[Ma],[Sa],[$],[Yi],[qi],[J],[ia],[Na],[Q],[xa]];}[_0x33b4ed(0x2d3)](){const _0x2cec05=_0x33b4ed;this['_getRenderModules']()['forEach'](_0x19ad6e=>{const _0x33e117=_0x3935;this['disposeWithMe'](this[_0x33e117(0x414)][_0x33e117(0x248)](_0x248b26['UNIVER_DOC'],_0x19ad6e));}),_0x899513(this[_0x2cec05(0x233)],[[Ma],[Sa],[$],[Yi],[J],[ia],[Na],[Q],[xa]]);}[_0x33b4ed(0x3d6)](){return[[qi],[ka],[ja],[Ta]];}['onRendered'](){const _0x54db57=_0x33b4ed;this[_0x54db57(0x39a)](this[_0x54db57(0x414)][_0x54db57(0x248)](_0x248b26['UNIVER_DOC'],[Aa]));}[_0x33b4ed(0x2a2)](){const _0x151201=_0x33b4ed;[U,zi,G,Nr,Fr,Ir][_0x151201(0x27a)](_0x6eb092=>this[_0x151201(0x39a)](this[_0x151201(0x2c8)]['registerCommand'](_0x6eb092)));}[_0x33b4ed(0x202)](){const _0x367d18=_0x33b4ed;let _0xea524c=this['_injector'],_0x2d6cff=_0xea524c[_0x367d18(0x3d8)](_0x94208e);this[_0x367d18(0x39a)](_0x2d6cff['registerComponent'](_0x42abda[_0x367d18(0x416)],()=>_0x6c788(_a,_0xea524c)));}};X(Pa,'type',_0x248b26['UNIVER_DOC']),X(Pa,_0x33b4ed(0x20a),'DOCS_SHAPE_UI_PLUGIN'),X(Pa,'packageName',Li),X(Pa,'version',Ri),Pa=q([_0xeaf711(_0x3c2eb4,_0x2db5f7,_0x2b9ee4,_0x11c27b,_0x28d240,_0x4dda97,_0x1a75fd,_0x428172,_0x2ef163,_0x2e48c9),K(0x1,_0x179bf2(_0x3193fa)),K(0x2,_0x2474c3),K(0x3,_0x4747a4),K(0x4,_0x456b85)],Pa);export{Ii as DocsShapeUIMenuSchema,Ca as UniverDocsShapeMobileUIPlugin,Pa as UniverDocsShapeUIPlugin};
|