@univerjs-pro/docs-shape-ui 1.0.0-alpha.8 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/umd/index.js +1 -1
  62. package/lib/umd/locale/ar-SA.js +1 -1
  63. package/lib/umd/locale/ca-ES.js +1 -1
  64. package/lib/umd/locale/de-DE.js +1 -1
  65. package/lib/umd/locale/en-US.js +1 -1
  66. package/lib/umd/locale/es-ES.js +1 -1
  67. package/lib/umd/locale/fa-IR.js +1 -1
  68. package/lib/umd/locale/fr-FR.js +1 -1
  69. package/lib/umd/locale/id-ID.js +1 -1
  70. package/lib/umd/locale/it-IT.js +1 -1
  71. package/lib/umd/locale/ja-JP.js +1 -1
  72. package/lib/umd/locale/ko-KR.js +1 -1
  73. package/lib/umd/locale/pl-PL.js +1 -1
  74. package/lib/umd/locale/pt-BR.js +1 -1
  75. package/lib/umd/locale/ru-RU.js +1 -1
  76. package/lib/umd/locale/sk-SK.js +1 -1
  77. package/lib/umd/locale/vi-VN.js +1 -1
  78. package/lib/umd/locale/zh-CN.js +1 -1
  79. package/lib/umd/locale/zh-HK.js +1 -1
  80. package/lib/umd/locale/zh-TW.js +1 -1
  81. package/package.json +18 -18
  82. package/lib/types/views/ShapeOptions.d.ts +0 -26
  83. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -11
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x10f4(_0x5ab04e,_0xb629fd){_0x5ab04e=_0x5ab04e-0x1c3;const _0x1323de=_0x1323();let _0x10f421=_0x1323de[_0x5ab04e];return _0x10f421;}function _0x1323(){const _0x38234a=['onDblclick$','unregister','currentAdjustValues','_initShapePopupMenu','resolveShapeTextEditorBehaviorShapeData','@univerjs-pro/shape-editor','colorChannel1','_menuManagerService','setPresentation','IRenderManagerService','angle','UniverDocsDrawing','TextWrappingStyle','VIEW_MAIN','color','_updateAdjustControlPositions','_clearShapeAdjustControls','DRAWING_DOM','default','_lastEditingShapeKey','_docsShapeService','getPresentation','getDrawingPoints','constructor','title','COMMAND','disposeWithMe','createControl$','onStarting','ShapeEditPanel','setConfig','toStringTag','idSuffix','http://www.w3.org/2000/svg','resize','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','UniverDocsUIPlugin','jsxs','ISidebarService','_contextService','evenodd','useRef','onPointerUp$','complete','_formulaAnimation','getShapeModel','0\x200\x2016\x2016','1em','_addShapeAdjustControl','layoutType','getDrawingShapeKeyByDrawingSearch','@univerjs/core','BehaviorSubject','disableObjectsEvent','978756yhNxHb','oKey','preValue','DocumentViewModel','startIndex','onCommandExecuted','toString','flipY','data','makeDirty','_shapeTextEditingService','_adjHandlerPointerUp','isLineShape','isRichText','doc.operation.open-shape-object-list-panel','_getShapeInfo','ShapeTypeEnum','focus$','useState','_drawSimpleText','setFillImage','attachPopupToObject','_getActiveDrawingShape','UniverLicensePlugin','url(#$1','visible','sin','ShapeTextEditorContainer','defIds','canvas','_drawShapeText','useEffect','currentColor','warn','Module','Transform','getObjectListPanelTypeName','_baseShapeTop','below','forEach','getDrawingEditable','featurePluginUpdateNotification','updateShapeFillImage','drawWith','mergeMenu','clearControl$','attrs','docs-shape-ui.config','adjName','univer-box-border\x20univer-px-4\x20univer-text-sm','getBody','plainShapeTextToDocumentData','react/jsx-runtime','sectionFloating','WRAP_SQUARE','SetDocDrawingArrangeCommand','getShapeDataById','cancelEditing','Plugin','invert','reduce','call','_drawingManagerService','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','path','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraph','UNIVER_DOC','ShapePickerPanel','UNIVER_SHEET','UpdateDocDrawingWrappingStyleCommand','connectInjector','register','@univerjs/drawing-ui','extraProps','_updateShapeAdjustControls','Rect','IContextService','DrawingImageClipService','React','_sidebarDisposable','endOffset','indexOf','stopPropagation','registerRenderModule','getDrawingOrder','selectable','_getShapeAdjustInfosById','RENDER_CLASS_TYPE','updateDocumentStyle','children','completeEditing','ObjectLayersIcon','Path','createShapeFormulaDocument','xlink:href','drawings','IImageIoService','shapeType','buildShapeTextDataUpdate','DRAWING_UNIT','DRAWING_IMAGE','backward','_initCommands','3OPYoLR','focusDrawing','_subUnitId','round','UniverDocs','4417317LwFEMU','_baseShapeLeft','onTransformChange$','contentHeight','clearActiveDrawingObjects','entries','isInGroup','useFormulaShapeToolbar','CommandType','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','setAdjustValueByName','getUnitType','getCurrentTypeOfUnit$','srcRect','getShapePopupMenus','_univerInstanceService','packageName','left','docs-shape-ui.openPanel','5403760sjCUoy','add','ShapeLineTypeEnum','IConfigService','setPrstGeom','buildClipPath','getActiveViewportByCoord','getDrawingByParam','offsetX','forward','_imageIoService','endArrow','clearAdjustControls','reverse','set','isConnectorShape','map','LocaleService','resolveShapeTextDocumentRenderLayout','description','docs-shape-ui.insertShape','draw','SHAPE_TEXT','_openShapeEditPanel','drawingId','IUIPartsService','ShapeFormulaService','1.0.0-alpha.8','adjHandleFill','_activeAdjustInfo','24AwLrKW','enhanceParams','_drawingType','IUniverInstanceService','OPERATION','iterator','fillImageSourceType','_clearPopups','adjHandleStroke','_renderManagerService','SolidLine','_registerDrawingTransformHandler','refreshFormulaPresentation','restore','BooleanNumber','_baseShapeHeight','Disposable','getTextModel','docs-shape-ui.textWrap.inline','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','delete','UniverProShapeEditorUi','custom','ContextMenuPosition','unit','resolveShapeTextEditorWrapStrategy','_formulaShapes','animateFormulaPresentation','prepareShapeTextDocumentData','_adjHandlerPointerMove','text','src','Shape','extensionGroups','scale','UniverDocsUi','_urlImageService','div','LEFT','_isShouldShowDrawingShapeAdjust','fillImageSource','SetDrawingSelectedOperation','getImage','fontSize','UniverShapeEditorUIPlugin','UpdateDocShapeDataCommand','name','getDrawingSearch','transformForAngle','error','_getShapeAdjustPointListById','DOCS_COMPONENT_MAIN_LAYER_INDEX','_clipService','updateContext','BEHIND_TEXT','ShapePickerDropdown','VIEWPORT_KEY','_refreshShapeData','contentVerticalOffset','prototype','_shapeFormulaService','20QeLsGS','shapeId','isRenderLinePointsMode','UniverDrawing','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_getSceneByUnitId','.below','scene','getInverseCoord','_editingParams$','_componentManager','normalizeShapeTextModel','calculate','_drawRichText','getFocusDrawings','getShapeType','transformByState','_registerComponents','unitId','_adjustPointObjects','objects','with','FromArray','refreshTransform$','toDisposable','offsetY','Arrow','308hvObPl','isRender','getScene','getShapeTypeById','mask','setShapeProps','transform','UniverInstanceType','render','getUnit','UniverDocsPlugin','532106wvOHyF','_props','DocDrawingTextWrap','_initializedShapePopupMenu','enableObjectsEvent','translate','_applyFormulaAutoFitSize','0\x200\x2020\x2020','UniverProDocsShapeUi','ShapeArrowTypeEnum','object','DocCanvasPopManagerService','clip','_activeShapeInfo','stroke','svg','shapeModel','WRAP_TOP_AND_BOTTOM','open','rect','isEditing','InsertDocShapeCommand','_isStartAdjusting','doc','value','smartArt','formulaBinding','UpdateDocShapeDataMutation','createInternalEditorID','ImageSourceTypeEnum','dispose','isHit','OTHERS','_localeService','useMemo','values','adjHandleSize','animationEnabled','_initMenu','DocsShapeTextEditorContainer','getState','getUnitId','DRAWING_SHAPE','MEDIA','useDependency','keys','clearAdjustValue','@univerjs/docs-ui','UniverRenderEnginePlugin','UniverDocsDrawingUIPlugin','_configService','UniverDrawingUi','@univerjs/ui','ContextMenuGroup','refreshShapeFillImage','subscribeEvent','getCurrentUnitOfType','clone','INLINE','DependentOn','Injector','dom','initTransformer','classType','IDrawingManagerService','DocsShapeUIMenuSchema','docs-shape-ui.textWrap.behindText','parent','getParagraphContentStartOffset','startArrow','image','hidden','string','UniverCore','setCanUseShapeClip','SHAPE','activateDrawingObject','getActualSize','get','useObservable','_formulaKey','UpdateDocDrawingMetadataCommand','registerComponent','DocSelectionManagerService','prstGeom','width','_context','IDocDrawingService','setSrcRect','popup','doc.operation.open-doc-shape-format-panel','UniverShapeEditorPlugin','subscribe','_shapeId','GROUP','LAYOUT','_disposePopups','Documents','getEditing','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','shape','clip-','applyPoint','random','WRAP_NONE','unsubscribe','paragraphMenuPlacement','getDrawingVisible','ComponentManager','_toScenePoint','executeCommand','getTransformerByCreate','TOP','DrawingTypeEnum','push','shapeKey','setFormulaPresentation','_drawRichTextLayer','sheet.image-clip.shape-picker.component','DOC_CONTENT_INSERT_MENU_ID','DEFAULT_DOC_SHAPE_HEIGHT','refreshAdjustControls','CONTENT','ShapeModel','translateWithPrecision','shape-text-','debounceRefreshControls','Medium','remove$','docs-shape-ui.textWrap.topAndBottom','has','UniverProEngineShape','FOCUSING_COMMON_DRAWINGS','text-wrap-shape-icon','isHitLine','_getFocusedShapeAtPoint','_onSavingEditorData$','_registerDrawingFocusChangeHandler','multiply','getSnapshot','forwardRef','vertical','TRUE','size','RemoveDocDrawingCommand','startOffset','BUTTON','calcAdjValues','docs-shape-ui.hidePanel','ShapeIcon','behindText','_createShapeAdjustControls','getRenderUnitById','_activeShapeAdjustPointList','cos','UpdateDrawingDocTransformCommand','ShapeFloatingToolbar','_loadShapePictureFill','tag','URL','UniverIcon','Large','table','Line','symbol','getParent','_adjName','transformVector2SceneCoord','formulaPresentation','DOC_PARAGRAPH_T_INSERT_MENU_ID','getRealBound','docs-shape-ui.textWrap.square','_createShapePopupMenu','Circle','Fragment','UniverDocsShapePlugin','Inject','_toVisualAdjustPoint','createElement','shapeText','behindDoc','@univerjs-pro/docs-shape','paragraphId','_insertShapes','top-center','shapeData','merge','getAutoFitPresentations','DrawingCommonPanel','clear','disableShapeOption','_draw','memo','@univerjs-pro/docs-shape-ui','TextWrapShapeIcon','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','_config','ancestorTransform','_updateShape','SELECTOR','getShapeTextRect','DRAWING_OBJECT_LAYER_INDEX','assign','DocShapeAnchorPosition','_attachAdjustEvent','_isOpenedShapeEditPanel','some','@univerjs-pro/shape-editor-ui','getAdjustValueByName','rxjs','_initSelection','ShapeDefaultConfig','function','UniverDrawingPlugin','params','DRAWING_VIDEO','doc.image-clip.shape-picker.component','group','ShapeFillEnum','create','ShapeArrowSizeEnum','presentationChanged$','_injector','UniverProDocsShape','decorate','next','syncExecuteCommand','docs-shape-ui.objectListPanel.open','registerClipDelegate','_registerImageShapeClipDelegate','paragraphs','_closeShapeEditPanel','DocsShapeService','getShapeTextData','DRAWING_TABLE','PARAGRAPH','find','defineProperty','_getActiveDrawingParam','RibbonInsertGroup','height','INSERT_BELLOW_MENU_ID','target','addImageSourceCache','isDrawingObject','moveRange','editingParams$','renderDrawingShape','DRAWING_GROUP','IN_FRONT_OF_TEXT','beginPath','localeService','resetCursor','4717516XavfGj','_initUIPart','getObjectListPanelSectionIdForDrawingType','displayName','_activeShapeId','_registerOperations','UniverEngineRender','_sidebarService','update$','getDrawingData','asObservable','_commandService','resolveFormulaShapeAutoFitSize','current','doc.operation.close-doc-shape-format-panel','Vector2','none','_unitId','PositionedObjectLayoutType','panel','attachTransformerTo','length','_docCanvasPopManagerService','clipByShape','getValue','DEFAULT_DOC_SHAPE_WIDTH','_transformCalculateSrcRect','_baseShapeWidth','_updateSrcRectByTransform','SHAPE_EDITOR_TRANSFORMER_CONFIG','setContextValue','drawingType','_transform','fillType','registerCommand','238608fkgzJc','UniverDocsShapeUIPlugin','trim','getObjectIncludeInGroup','_releaseRenderCache','DOCS_SHAPE_UI_PLUGIN','react','changeStart$','docs-shape-text-','_docDrawingShapeRenderController','getActiveTextRange','clipHeight','object-layers-icon','_activeShapeModel','_loadAndSetImage','dataModel','strokeWidth','filter','FOCUSING_SHAPE_TEXT_EDITOR','onReady','DocSelectionRenderService','sectionCanvas','getViewports','changeEnd$','save','subUnitId','ICommandService','menu','changing$','docs-shape-ui.crop.shape','_initialize','horizontal','ShapeRenderModeEnum','getMatrix','_popupMenuListener','doc.shape.edit.panel','_shapeEditPanelVersion','4rOEuxT','getShapeData','1441097CzDhiT','MenuItemType','#3B82F6','setOnSavingEditorData','flipX','segmentId','type','fill','doc.shape.object-list.panel','pluginName','CURSOR_TYPE','video','getMenuHiddenObservable','substring','setEditing','_iconManager','DocumentDataModel','getTextStyle','exports','top','includes','_init','jsx','SolidFill','presentation','_registerIcons','close','IconManager'];_0x1323=function(){return _0x38234a;};return _0x1323();}(function(_0x537c5c,_0x23ad49){const _0x4b7666=_0x10f4,_0x422316=_0x537c5c();while(!![]){try{const _0x110765=parseInt(_0x4b7666(0x2a8))/0x1*(-parseInt(_0x4b7666(0x3fd))/0x2)+parseInt(_0x4b7666(0x364))/0x3*(parseInt(_0x4b7666(0x260))/0x4)+-parseInt(_0x4b7666(0x3d7))/0x5*(-parseInt(_0x4b7666(0x2fc))/0x6)+parseInt(_0x4b7666(0x2aa))/0x7*(-parseInt(_0x4b7666(0x39a))/0x8)+-parseInt(_0x4b7666(0x369))/0x9+parseInt(_0x4b7666(0x37c))/0xa+-parseInt(_0x4b7666(0x3f2))/0xb*(-parseInt(_0x4b7666(0x283))/0xc);if(_0x110765===_0x23ad49)break;else _0x422316['push'](_0x422316['shift']());}catch(_0x53cbdb){_0x422316['push'](_0x422316['shift']());}}}(_0x1323,0xb8a95),function(_0x3073fb,_0x35abfb){const _0x5d0056=_0x10f4;typeof exports==_0x5d0056(0x407)&&typeof module<'u'?_0x35abfb(exports,require('@univerjs/docs-ui'),require('@univerjs/ui'),require('@univerjs-pro/docs-shape'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/docs-drawing'),require('@univerjs/engine-render'),require('@univerjs/drawing'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/docs-drawing-ui'),require('react'),require('rxjs')):typeof define==_0x5d0056(0x237)&&define['amd']?define([_0x5d0056(0x2bc),_0x5d0056(0x42c),_0x5d0056(0x431),_0x5d0056(0x218),'@univerjs-pro/engine-shape',_0x5d0056(0x2cb),_0x5d0056(0x2f9),'@univerjs/docs','@univerjs/docs-drawing','@univerjs/engine-render','@univerjs/drawing',_0x5d0056(0x232),_0x5d0056(0x345),_0x5d0056(0x330),'@univerjs-pro/license','@univerjs/docs-drawing-ui',_0x5d0056(0x289),_0x5d0056(0x234)],_0x35abfb):(_0x3073fb=typeof globalThis<'u'?globalThis:_0x3073fb||self,_0x35abfb(_0x3073fb[_0x5d0056(0x405)]={},_0x3073fb[_0x5d0056(0x3bd)],_0x3073fb['UniverUi'],_0x3073fb[_0x5d0056(0x242)],_0x3073fb[_0x5d0056(0x1e6)],_0x3073fb['UniverProShapeEditor'],_0x3073fb[_0x5d0056(0x446)],_0x3073fb[_0x5d0056(0x368)],_0x3073fb[_0x5d0056(0x2d1)],_0x3073fb[_0x5d0056(0x266)],_0x3073fb[_0x5d0056(0x3da)],_0x3073fb[_0x5d0056(0x3af)],_0x3073fb[_0x5d0056(0x430)],_0x3073fb['React'],_0x3073fb['UniverProLicense'],_0x3073fb['UniverDocsDrawingUi'],_0x3073fb[_0x5d0056(0x34b)],_0x3073fb[_0x5d0056(0x234)]));}(this,function(_0x12a5c6,_0x4e6713,_0x517280,_0x555e7b,_0x5354f7,_0x5a3a75,_0xee7709,_0x458dc7,_0x2949a0,_0x2989a1,_0x291800,_0x3a322f,_0x5b086f,_0x3da6be,_0x28da5a,_0x5830e8,_0x316c68,_0x15594a){const _0x2f3801=_0x10f4;Object['defineProperty'](_0x12a5c6,Symbol[_0x2f3801(0x2e5)],{'value':_0x2f3801(0x31e)});let _0x5cf69f=_0x2f3801(0x2ac),_0x1ccaf1='#2563EB';function _0x3fb3bf(_0x3a6644,_0x292629){const _0x587529=_0x2f3801;if(_0x292629){if((0x0,_0x5354f7[_0x587529(0x38b)])(_0x3a6644)&&(_0x292629['startArrow']||_0x292629[_0x587529(0x387)]))return{'ln':{'startArrow':_0x292629[_0x587529(0x442)]?{'type':_0x5354f7[_0x587529(0x406)]['Arrow'],'size':_0x5354f7[_0x587529(0x23f)][_0x587529(0x1e2)]}:void 0x0,'endArrow':_0x292629[_0x587529(0x387)]?{'type':_0x5354f7[_0x587529(0x406)][_0x587529(0x3f1)],'size':_0x5354f7[_0x587529(0x23f)][_0x587529(0x204)]}:void 0x0}};if(_0x3a6644===_0x5354f7[_0x587529(0x30c)][_0x587529(0x348)]&&(_0x292629['horizontal']||_0x292629['vertical']))return(0x0,_0x5a3a75['createShapeTextBoxShapeData'])({'fill':{'fillType':_0x5354f7['ShapeFillEnum'][_0x587529(0x2c1)],'color':_0x5cf69f},'isHorizontal':!!_0x292629['horizontal'],'stroke':{'lineStrokeType':_0x5354f7[_0x587529(0x37e)][_0x587529(0x3a4)],'width':0x1,'color':_0x1ccaf1}});}}function _0x312ee4(_0x5aa455,_0x26f54b){const _0x3499b4=_0x2f3801;var _0x239840,_0x3c2b03,_0x2b2e70,_0x4e9cd3;let _0x1c00a9=(_0x239840=_0x26f54b[_0x3499b4(0x2af)])==null?'':_0x239840,_0x4707de=(_0x3c2b03=_0x5aa455['getSelfOrHeaderFooterModel'](_0x1c00a9))==null?void 0x0:_0x3c2b03[_0x3499b4(0x32e)]();if(!_0x4707de)return null;let _0x37ff8f=(_0x2b2e70=_0x4707de[_0x3499b4(0x249)])==null?[]:_0x2b2e70,_0x23e170=(_0x4e9cd3=_0x37ff8f['find'](_0x4bd619=>{const _0x557dac=_0x3499b4;let _0x51e350=(0x0,_0xee7709[_0x557dac(0x441)])(_0x4707de,_0x4bd619);return _0x26f54b['startOffset']>=_0x51e350&&_0x26f54b[_0x557dac(0x1f4)]<=_0x4bd619[_0x557dac(0x300)];}))==null?_0x37ff8f['at'](-0x1):_0x4e9cd3;return _0x23e170?{'paragraphId':_0x23e170[_0x3499b4(0x219)],'segmentId':_0x1c00a9,'position':_0x555e7b[_0x3499b4(0x22e)]['OFFSET'],'offset':_0x26f54b[_0x3499b4(0x1f4)]-(0x0,_0xee7709['getParagraphContentStartOffset'])(_0x4707de,_0x23e170)}:null;}function _0x345555(_0x9219e1,_0xbba210,_0x1b3892){const _0x594dcd=_0x2f3801;var _0x2c5cf7,_0x4ab4af,_0xf0f919;if(!_0x1b3892)return null;let _0x80d752=(_0x2c5cf7=_0x9219e1[_0x594dcd(0x44b)](_0x2989a1[_0x594dcd(0x2cf)])[_0x594dcd(0x1fb)](_0xbba210))==null?void 0x0:_0x2c5cf7[_0x594dcd(0x3ec)](_0x4e6713['DocParagraphMenuService'])['activeTarget'];if(!_0x80d752)return null;let _0xff7098=_0x1b3892==='below'?{'startOffset':_0x80d752[_0x594dcd(0x258)][_0x594dcd(0x34d)],'endOffset':_0x80d752[_0x594dcd(0x258)][_0x594dcd(0x34d)]}:_0x80d752['menuRange'];return{'startOffset':_0xff7098[_0x594dcd(0x1f4)],'endOffset':_0xff7098[_0x594dcd(0x34d)],'collapsed':_0xff7098[_0x594dcd(0x1f4)]===_0xff7098[_0x594dcd(0x34d)],'segmentId':(_0x4ab4af=(_0xf0f919=_0x80d752[_0x594dcd(0x33e)])==null?void 0x0:_0xf0f919[_0x594dcd(0x2af)])==null?'':_0x4ab4af};}let _0x58d64e={'type':_0xee7709['CommandType'][_0x2f3801(0x2df)],'id':'doc.command.menu-insert-shape','handler':async(_0x51abbd,_0x2c31bc)=>{const _0x540f13=_0x2f3801;var _0x444d45,_0x4f6c06,_0x393eaf,_0x5171c2,_0x46a4ac;let _0x192487=_0x51abbd[_0x540f13(0x44b)](_0xee7709['IUniverInstanceService'])[_0x540f13(0x435)](_0xee7709[_0x540f13(0x3f9)]['UNIVER_DOC']);if(!_0x192487)return!0x1;let _0x236780=_0x51abbd['get'](_0xee7709[_0x540f13(0x29d)]),_0x31a1ee=_0x192487[_0x540f13(0x426)](),_0x2cc42e=(_0x444d45=_0x2c31bc[_0x540f13(0x3d8)])==null?(0x0,_0xee7709['generateRandomId'])():_0x444d45,_0x3f1c30=(_0x4f6c06=_0x2c31bc['width'])==null?_0x555e7b[_0x540f13(0x279)]:_0x4f6c06,_0x4f3f24=(_0x393eaf=_0x2c31bc[_0x540f13(0x253)])==null?_0x555e7b[_0x540f13(0x1db)]:_0x393eaf,_0x2e63db=(_0x5171c2=(_0x46a4ac=_0x2c31bc['shapeData'])==null?_0x3fb3bf(_0x2c31bc[_0x540f13(0x415)],_0x2c31bc[_0x540f13(0x39b)]):_0x46a4ac)==null?{'fill':{'fillType':_0x5354f7[_0x540f13(0x23d)]['SolidFill'],'color':_0x5cf69f},'stroke':{'lineStrokeType':_0x5354f7['ShapeLineTypeEnum'][_0x540f13(0x3a4)],'width':0x1,'color':_0x1ccaf1}}:_0x5171c2,_0x2a1adf=_0x345555(_0x51abbd,_0x31a1ee,_0x2c31bc[_0x540f13(0x1cd)]),_0x2cf2d2=_0x2a1adf==null?_0x51abbd[_0x540f13(0x44b)](_0x458dc7[_0x540f13(0x450)])[_0x540f13(0x28d)]():_0x2a1adf;if(!_0x2cf2d2)return!0x1;let _0x29f87e=_0x312ee4(_0x192487,_0x2cf2d2);return _0x29f87e?!!_0x236780[_0x540f13(0x245)](_0x555e7b[_0x540f13(0x412)]['id'],{'unitId':_0x31a1ee,'shapeId':_0x2cc42e,'shapeType':_0x2c31bc[_0x540f13(0x415)],'shapeData':_0x2e63db,'transform':{'width':_0x3f1c30,'height':_0x4f3f24},'placement':{'wrappingStyle':_0x2949a0[_0x540f13(0x2d2)]['INLINE'],'anchor':_0x29f87e}}):!0x1;}},_0x11b824=_0x2f3801(0x2a6),_0x4b22f9=_0x2f3801(0x2b2),_0xaaddeb=(0x0,_0xee7709[_0x2f3801(0x419)])(_0x2f3801(0x392)),_0x143504='doc.shape.text.float-menu',_0x16a3a6={'id':_0x2f3801(0x30a),'type':_0xee7709[_0x2f3801(0x371)][_0x2f3801(0x2df)],'handler':(_0x469140,_0xcde6e0)=>{const _0x41a58c=_0x2f3801;let _0x2dffed=_0x469140['get'](_0x517280[_0x41a58c(0x2ec)]),_0x2ce247=_0x469140['get'](_0xee7709[_0x41a58c(0x38d)]),_0x27bb16=_0x469140[_0x41a58c(0x44b)](_0x291800['IDrawingManagerService']);return(_0xcde6e0==null?void 0x0:_0xcde6e0[_0x41a58c(0x415)])===_0x41a58c(0x2c4)?(_0x2dffed[_0x41a58c(0x2c4)](_0x4b22f9),!0x0):(_0x2dffed[_0x41a58c(0x40f)]({'id':_0x4b22f9,'header':{'title':_0x2ce247['t']('docs-shape-ui.objectListPanel.title')},'children':{'label':_0x4b22f9},'onClose':()=>{const _0x40987d=_0x41a58c;_0x27bb16[_0x40987d(0x365)](null);},'width':0x168}),!0x0);}};function _0x240031(_0x2103b0,_0x355d3a){return function(_0x3145b7,_0x1f3cd6){_0x355d3a(_0x3145b7,_0x1f3cd6,_0x2103b0);};}function _0x4e2bf9(_0x117cc3,_0x705646,_0xaad261,_0x1df888){const _0x1b8a88=_0x2f3801;var _0x535ba0=arguments[_0x1b8a88(0x275)],_0x37d050=_0x535ba0<0x3?_0x705646:_0x1df888===null?_0x1df888=Object['getOwnPropertyDescriptor'](_0x705646,_0xaad261):_0x1df888,_0x58aeb8;if(typeof Reflect==_0x1b8a88(0x407)&&typeof Reflect[_0x1b8a88(0x243)]==_0x1b8a88(0x237))_0x37d050=Reflect[_0x1b8a88(0x243)](_0x117cc3,_0x705646,_0xaad261,_0x1df888);else{for(var _0x3ed6c4=_0x117cc3[_0x1b8a88(0x275)]-0x1;_0x3ed6c4>=0x0;_0x3ed6c4--)(_0x58aeb8=_0x117cc3[_0x3ed6c4])&&(_0x37d050=(_0x535ba0<0x3?_0x58aeb8(_0x37d050):_0x535ba0>0x3?_0x58aeb8(_0x705646,_0xaad261,_0x37d050):_0x58aeb8(_0x705646,_0xaad261))||_0x37d050);}return _0x535ba0>0x3&&_0x37d050&&Object[_0x1b8a88(0x250)](_0x705646,_0xaad261,_0x37d050),_0x37d050;}let _0x25b37f=class extends _0xee7709['Disposable']{constructor(_0x10ae90,_0x212f38){const _0x36b896=_0x2f3801;super(),this[_0x36b896(0x3ce)]=_0x10ae90,this[_0x36b896(0x33a)]=_0x212f38,this[_0x36b896(0x248)](),this[_0x36b896(0x3ce)][_0x36b896(0x447)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x36b896(0x3ce)][_0x36b896(0x447)](!0x1)});}[_0x2f3801(0x248)](){const _0x504cb7=_0x2f3801;let _0x364fbf=new Map(),_0x1e23d6=this[_0x504cb7(0x3ce)][_0x504cb7(0x247)]((_0x5d3aa4,_0x2e7575,_0x3b2674,_0x5c85f4,_0x38a2a6)=>{const _0x42b85e=_0x504cb7;let _0x2e5a1c=_0x2e7575;if(_0x2e5a1c===_0x5354f7['ShapeTypeEnum']['None']||_0x2e7575===_0x42b85e(0x3b0))return!0x1;try{let _0x236c81=_0x364fbf[_0x42b85e(0x44b)](_0x2e7575);return _0x236c81||(_0x236c81=new _0x5354f7[(_0x42b85e(0x1de))](_0x2e5a1c,_0x42b85e(0x1c8)+_0x2e7575),_0x364fbf[_0x42b85e(0x38a)](_0x2e7575,_0x236c81)),_0x236c81[_0x42b85e(0x42b)](),_0x38a2a6&&Object[_0x42b85e(0x42a)](_0x38a2a6)[_0x42b85e(0x275)]>0x0&&_0x236c81['setShapeData']({'adjustValues':_0x38a2a6},!0x0),_0x236c81['updateContext']({'width':_0x3b2674,'height':_0x5c85f4}),_0x236c81[_0x42b85e(0x381)](_0x5d3aa4,{'left':0x0,'top':0x0,'width':_0x3b2674,'height':_0x5c85f4});}catch{return!0x1;}});this['disposeWithMe'](_0x1e23d6),this[_0x504cb7(0x2e0)]({'dispose':()=>_0x364fbf[_0x504cb7(0x220)]()});}[_0x2f3801(0x277)](_0x1d30f9,_0x19dc39,_0xcebf4e,_0x4cf69f,_0x22c67f){const _0x3385f5=_0x2f3801;let _0x4d48ef=this[_0x3385f5(0x33a)][_0x3385f5(0x269)](_0x1d30f9,_0x19dc39)[_0xcebf4e];!_0x4d48ef||_0x4d48ef['drawingType']!==_0xee7709[_0x3385f5(0x1d4)][_0x3385f5(0x361)]||this['_drawingManagerService'][_0x3385f5(0x325)]([{..._0x4d48ef,'prstGeom':_0x4cf69f,'adjustValues':_0x22c67f}]);}};_0x25b37f=_0x4e2bf9([_0x240031(0x0,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x5b086f[_0x2f3801(0x34a)])),_0x240031(0x1,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x291800[_0x2f3801(0x43d)]))],_0x25b37f);let _0x5152de='doc.shape.picker.component',_0x7e7379=_0x2f3801(0x23b);function _0x4896e7({onShapeClick:_0xf47bf1,excludeGroups:_0x539c96}){const _0x37bd98=_0x2f3801;return(0x0,_0x3da6be['jsx'])(_0x3a322f[_0x37bd98(0x340)],{'excludeGroups':_0x539c96,'onShapeClick':_0xf47bf1,'scrollContainer':_0x37bd98(0x440)});}function _0x382863(){const _0x57adac=_0x2f3801;let _0x59e4bc=(0x0,_0x517280[_0x57adac(0x429)])(_0x291800[_0x57adac(0x43d)]),_0x18db9c=(0x0,_0x517280['useDependency'])(_0x25b37f);return(0x0,_0x3da6be['jsx'])(_0x3a322f[_0x57adac(0x3d1)],{'buttonLabel':_0x57adac(0x2a0),'excludeGroups':[_0x3a322f['ShapeGroupEnum'][_0x57adac(0x206)]],'onShapeClick':_0x2bb824=>{const _0x50f0a8=_0x57adac;let _0x55f53f=_0x59e4bc['getFocusDrawings']()[_0x50f0a8(0x24f)](_0x2553ed=>_0x2553ed[_0x50f0a8(0x27f)]===_0xee7709[_0x50f0a8(0x1d4)][_0x50f0a8(0x361)]);if(!_0x55f53f)return;let {unitId:_0x56137c,subUnitId:_0x2dcd13,drawingId:_0x336f5f}=_0x55f53f;_0x18db9c[_0x50f0a8(0x277)](_0x56137c,_0x2dcd13,_0x336f5f,_0x2bb824[_0x50f0a8(0x2b0)]);}});}function _0x34d29d(){const _0xd41014=_0x2f3801;let _0x31c39c=(0x0,_0x517280[_0xd41014(0x429)])(_0x517280[_0xd41014(0x1cf)]),_0x10cd83=(0x0,_0x517280['useDependency'])(_0x291800[_0xd41014(0x43d)]),_0x629644=(0x0,_0x517280['useDependency'])(_0xee7709[_0xd41014(0x39d)]),_0x4c800b=_0x10cd83['getFocusDrawings']()[0x0],_0x189d66=_0x4c800b?_0x629644[_0xd41014(0x374)](_0x4c800b['unitId']):void 0x0,_0x4028f5=_0x189d66===_0xee7709['UniverInstanceType'][_0xd41014(0x33f)]?_0x7e7379:_0x189d66===_0xee7709[_0xd41014(0x3f9)][_0xd41014(0x341)]?_0xd41014(0x1d9):void 0x0,_0x550521=_0x4028f5?_0x31c39c[_0xd41014(0x44b)](_0x4028f5):void 0x0;return _0x550521?(0x0,_0x3da6be[_0xd41014(0x2c0)])(_0x550521,{}):null;}function _0x2e5bff({paragraphMenuPlacement:_0x337fad}){const _0xaf402f=_0x2f3801;let _0x2544a8=(0x0,_0x517280[_0xaf402f(0x429)])(_0xee7709[_0xaf402f(0x29d)]);return(0x0,_0x3da6be['jsx'])(_0x4896e7,{'onShapeClick':_0x5203c5=>{const _0x244829=_0xaf402f;_0x2544a8[_0x244829(0x1d1)](_0x58d64e['id'],{'paragraphMenuPlacement':_0x337fad,'value':_0x5203c5['type'],'enhanceParams':{'endArrow':_0x5203c5[_0x244829(0x387)],'startArrow':_0x5203c5['startArrow'],'horizontal':_0x5203c5[_0x244829(0x2a2)],'vertical':_0x5203c5[_0x244829(0x1f0)]}});}});}function _0x5a6822(_0x819a5a){const _0x23a476=_0x2f3801;return _0x50c684=>({'id':_0x58d64e['id'],'type':_0x517280[_0x23a476(0x2ab)][_0x23a476(0x22a)],'selections':[{'label':{'name':_0x5152de,'hoverable':!0x1,'selectable':!0x1,'props':_0x819a5a?{'id':_0x58d64e['id'],'paragraphMenuPlacement':_0x819a5a}:{'id':_0x58d64e['id']}}}],'icon':_0x23a476(0x1f8),'title':_0x23a476(0x390),'tooltip':_0x23a476(0x390),'hidden$':(0x0,_0x517280['getMenuHiddenObservable'])(_0x50c684,_0xee7709[_0x23a476(0x3f9)][_0x23a476(0x33f)])});}let _0x3e100e=_0x5a6822(),_0x24ee69=_0x5a6822(_0x2f3801(0x322)),_0x20fabf=_0x5a6822(_0x2f3801(0x255));function _0x585921(_0x3bf422){const _0x15bef8=_0x2f3801;return{'id':_0x16a3a6['id'],'type':_0x517280[_0x15bef8(0x2ab)][_0x15bef8(0x1f5)],'icon':_0x15bef8(0x358),'title':_0x15bef8(0x246),'tooltip':_0x15bef8(0x246),'hidden$':(0x0,_0x517280[_0x15bef8(0x2b6)])(_0x3bf422,_0xee7709[_0x15bef8(0x3f9)][_0x15bef8(0x33f)])};}let _0x307980={[_0x517280[_0x2f3801(0x252)][_0x2f3801(0x428)]]:{[_0x58d64e['id']]:{'order':0x4,'menuItemFactory':_0x3e86c4=>({..._0x3e100e(_0x3e86c4),'title':void 0x0})}},[_0x517280[_0x2f3801(0x252)][_0x2f3801(0x41d)]]:{[_0x16a3a6['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x585921}},[_0x517280[_0x2f3801(0x3b1)][_0x2f3801(0x24e)]]:{[_0x517280[_0x2f3801(0x432)][_0x2f3801(0x45c)]]:{[_0x4e6713[_0x2f3801(0x254)]]:{[_0x58d64e['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':_0x24ee69}}},[_0x4e6713[_0x2f3801(0x1da)]]:{[_0x517280['ContextMenuGroup'][_0x2f3801(0x45c)]]:{[_0x58d64e['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':_0x24ee69}}},[_0x4e6713['EMPTY_PARAGRAPH_MENU_ID']]:{[_0x517280[_0x2f3801(0x432)][_0x2f3801(0x45c)]]:{[_0x58d64e['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':_0x20fabf}}},[_0x4e6713[_0x2f3801(0x20c)]]:{'insert':{[_0x58d64e['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':_0x3e100e}}},[_0x4e6713[_0x2f3801(0x33b)]]:{'insert':{[_0x58d64e['id']+_0x2f3801(0x3dd)]:{'replace':!0x0,'order':0x2,'menuItemFactory':_0x24ee69}}}}};var _0x21cf84=_0x2f3801(0x224),_0x435074=_0x2f3801(0x397);let _0x2b9182={'type':_0xee7709['CommandType']['OPERATION'],'id':_0x2f3801(0x26e),'handler'(){return!0x0;}},_0x5f37a8={'type':_0xee7709[_0x2f3801(0x371)][_0x2f3801(0x39e)],'id':_0x2f3801(0x457),'handler'(){return!0x0;}},_0x25c95e={};function _0x46e9df({ref:_0x1126dd,..._0x396d9a}){const _0x175d67=_0x2f3801;let {icon:_0x2a043d,id:_0x36e97a,className:_0xebb7e8,extend:_0x4651a4,..._0x14f3ff}=_0x396d9a,_0x1ebd20=('univerjs-icon\x20univerjs-icon-'+_0x36e97a+'\x20'+(_0xebb7e8||''))[_0x175d67(0x285)](),_0xb61cd6=(0x0,_0x316c68[_0x175d67(0x2ef)])('_'+_0x8b1e2e());return _0x48b76d(_0x2a043d,''+_0x36e97a,{'defIds':_0x2a043d[_0x175d67(0x318)],'idSuffix':_0xb61cd6[_0x175d67(0x26d)]},{'ref':_0x1126dd,'className':_0x1ebd20,..._0x14f3ff},_0x4651a4);}function _0x48b76d(_0x12bccd,_0x5eedee,_0x1b4862,_0x2eae09,_0x24b364){const _0x3e89bc=_0x2f3801;return(0x0,_0x316c68[_0x3e89bc(0x215)])(_0x12bccd[_0x3e89bc(0x201)],{'key':_0x5eedee,..._0x5d650f(_0x12bccd,_0x1b4862,_0x24b364),..._0x2eae09},(_0x3c96d2(_0x12bccd,_0x1b4862)['children']||[])[_0x3e89bc(0x38c)]((_0xb41570,_0x54d292)=>_0x48b76d(_0xb41570,_0x5eedee+'-'+_0x12bccd[_0x3e89bc(0x201)]+'-'+_0x54d292,_0x1b4862,void 0x0,_0x24b364)));}function _0x5d650f(_0x1c1500,_0x5b1200,_0x5762f4){const _0x2c92ff=_0x2f3801;let _0x2fb558={..._0x1c1500['attrs']};_0x5762f4!=null&&_0x5762f4[_0x2c92ff(0x2cc)]&&_0x2fb558[_0x2c92ff(0x2b1)]===_0x2c92ff(0x2cc)&&(_0x2fb558[_0x2c92ff(0x2b1)]=_0x5762f4[_0x2c92ff(0x2cc)]),_0x5762f4!=null&&_0x5762f4[_0x2c92ff(0x2cc)]&&_0x2fb558[_0x2c92ff(0x40b)]==='colorChannel1'&&(_0x2fb558[_0x2c92ff(0x40b)]=_0x5762f4['colorChannel1']),_0x1c1500[_0x2c92ff(0x201)]===_0x2c92ff(0x3f6)&&_0x2fb558['id']&&(_0x2fb558['id']+=_0x5b1200[_0x2c92ff(0x2e6)]),Object[_0x2c92ff(0x36e)](_0x2fb558)[_0x2c92ff(0x323)](([_0x114899,_0x2ab3c3])=>{const _0x76b190=_0x2c92ff;_0x114899===_0x76b190(0x3f6)&&typeof _0x2ab3c3=='string'&&(_0x2fb558[_0x114899]=_0x2ab3c3['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5b1200[_0x76b190(0x2e6)]+')'));});let {defIds:_0x30a012}=_0x5b1200;return!_0x30a012||_0x30a012[_0x2c92ff(0x275)]===0x0?_0x2fb558:(_0x1c1500['tag']==='use'&&_0x2fb558[_0x2c92ff(0x35b)]&&(_0x2fb558[_0x2c92ff(0x35b)]+=_0x5b1200[_0x2c92ff(0x2e6)]),Object[_0x2c92ff(0x36e)](_0x2fb558)[_0x2c92ff(0x323)](([_0x25cbd3,_0x5d0509])=>{const _0x5067ac=_0x2c92ff;typeof _0x5d0509==_0x5067ac(0x445)&&(_0x2fb558[_0x25cbd3]=_0x5d0509['replace'](/url\(#(.*)\)/,_0x5067ac(0x314)+_0x5b1200[_0x5067ac(0x2e6)]+')'));}),_0x2fb558);}function _0x3c96d2(_0x56e806,_0x11a1f6){const _0x46c0e1=_0x2f3801;var _0x3440e8;let {defIds:_0x1eb8b7}=_0x11a1f6;return!_0x1eb8b7||_0x1eb8b7[_0x46c0e1(0x275)]===0x0?_0x56e806:_0x56e806[_0x46c0e1(0x201)]==='defs'&&(_0x3440e8=_0x56e806[_0x46c0e1(0x356)])!=null&&_0x3440e8[_0x46c0e1(0x275)]?{..._0x56e806,'children':_0x56e806['children'][_0x46c0e1(0x38c)](_0x1c7dff=>typeof _0x1c7dff['attrs']['id']=='string'&&_0x1eb8b7&&_0x1eb8b7['includes'](_0x1c7dff[_0x46c0e1(0x32a)]['id'])?{..._0x1c7dff,'attrs':{..._0x1c7dff[_0x46c0e1(0x32a)],'id':_0x1c7dff[_0x46c0e1(0x32a)]['id']+_0x11a1f6[_0x46c0e1(0x2e6)]}}:_0x1c7dff)}:_0x56e806;}function _0x8b1e2e(){const _0x231679=_0x2f3801;return Math[_0x231679(0x1ca)]()[_0x231679(0x302)](0x24)[_0x231679(0x2b7)](0x2,0x8);}_0x46e9df[_0x2f3801(0x263)]=_0x2f3801(0x203);let _0xa7d868={'tag':_0x2f3801(0x40c),'attrs':{'xmlns':_0x2f3801(0x2e7),'fill':_0x2f3801(0x270),'viewBox':_0x2f3801(0x2f4),'width':_0x2f3801(0x2f5),'height':_0x2f3801(0x2f5)},'children':[{'tag':_0x2f3801(0x33c),'attrs':{'stroke':_0x2f3801(0x31c),'d':'M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','strokeLinecap':_0x2f3801(0x367),'strokeLinejoin':'round','strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':_0x2f3801(0x31c),'d':'m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','strokeLinecap':_0x2f3801(0x367),'strokeLinejoin':'round','strokeWidth':1.3}}]},_0x4408db=(0x0,_0x316c68[_0x2f3801(0x1ef)])(function(_0x28636f,_0x143dc9){const _0x4703d3=_0x2f3801;return(0x0,_0x316c68[_0x4703d3(0x215)])(_0x46e9df,Object[_0x4703d3(0x22d)]({},_0x28636f,{'id':_0x4703d3(0x28f),'ref':_0x143dc9,'icon':_0xa7d868}));});_0x4408db[_0x2f3801(0x263)]='ObjectLayersIcon';let _0x272522={'tag':'svg','attrs':{'xmlns':_0x2f3801(0x2e7),'fill':_0x2f3801(0x270),'viewBox':_0x2f3801(0x404),'width':'1em','height':'1em'},'children':[{'tag':'rect','attrs':{'width':0x11,'height':1.2,'x':1.5,'y':2.45,'fill':_0x2f3801(0x31c),'rx':0.6}},{'tag':'rect','attrs':{'width':3.25,'height':1.2,'x':1.5,'y':6.1,'fill':_0x2f3801(0x31c),'rx':0.6}},{'tag':_0x2f3801(0x410),'attrs':{'width':3.25,'height':1.2,'x':15.25,'y':6.1,'fill':_0x2f3801(0x31c),'rx':0.6}},{'tag':'rect','attrs':{'width':3.25,'height':1.2,'x':1.5,'y':9.4,'fill':_0x2f3801(0x31c),'rx':0.6}},{'tag':'rect','attrs':{'width':3.25,'height':1.2,'x':15.25,'y':9.4,'fill':_0x2f3801(0x31c),'rx':0.6}},{'tag':_0x2f3801(0x410),'attrs':{'width':3.25,'height':1.2,'x':1.5,'y':12.7,'fill':_0x2f3801(0x31c),'rx':0.6}},{'tag':'rect','attrs':{'width':3.25,'height':1.2,'x':15.25,'y':12.7,'fill':_0x2f3801(0x31c),'rx':0.6}},{'tag':_0x2f3801(0x410),'attrs':{'width':0x11,'height':1.2,'x':1.5,'y':16.35,'fill':_0x2f3801(0x31c),'rx':0.6}},{'tag':'path','attrs':{'fill':_0x2f3801(0x31c),'d':'M7.55\x205.45C6.50066\x205.45\x205.65\x206.30066\x205.65\x207.35V12.65C5.65\x2013.6993\x206.50066\x2014.55\x207.55\x2014.55H12.45C13.4993\x2014.55\x2014.35\x2013.6993\x2014.35\x2012.65V7.35C14.35\x206.30066\x2013.4993\x205.45\x2012.45\x205.45H7.55ZM7.8\x206.75C7.24772\x206.75\x206.8\x207.19772\x206.8\x207.75V12.25C6.8\x2012.8023\x207.24772\x2013.25\x207.8\x2013.25H12.2C12.7523\x2013.25\x2013.2\x2012.8023\x2013.2\x2012.25V7.75C13.2\x207.19772\x2012.7523\x206.75\x2012.2\x206.75H7.8Z','fillRule':'evenodd','clipRule':_0x2f3801(0x2ee)}}]},_0x3d51a0=(0x0,_0x316c68['forwardRef'])(function(_0x75fec7,_0x471da2){const _0x141ad1=_0x2f3801;return(0x0,_0x316c68['createElement'])(_0x46e9df,Object[_0x141ad1(0x22d)]({},_0x75fec7,{'id':_0x141ad1(0x1e8),'ref':_0x471da2,'icon':_0x272522}));});_0x3d51a0[_0x2f3801(0x263)]=_0x2f3801(0x225);function _0x132b71(_0x2b9df6){return _0x2b9df6['trim']()||void 0x0;}function _0x1eb5d6(_0x195e46){const _0x5cb2e0=_0x2f3801;switch(_0x195e46[_0x5cb2e0(0x27f)]){case _0xee7709[_0x5cb2e0(0x1d4)][_0x5cb2e0(0x361)]:return _0x5cb2e0(0x443);case _0xee7709[_0x5cb2e0(0x1d4)]['DRAWING_CHART']:return'chart';case _0xee7709['DrawingTypeEnum'][_0x5cb2e0(0x24d)]:return _0x5cb2e0(0x205);case _0xee7709[_0x5cb2e0(0x1d4)]['DRAWING_SMART_ART']:return _0x5cb2e0(0x416);case _0xee7709[_0x5cb2e0(0x1d4)][_0x5cb2e0(0x23a)]:return _0x5cb2e0(0x2b5);case _0xee7709[_0x5cb2e0(0x1d4)][_0x5cb2e0(0x25b)]:return _0x5cb2e0(0x23c);case _0xee7709[_0x5cb2e0(0x1d4)][_0x5cb2e0(0x360)]:return _0x5cb2e0(0x3b2);case _0xee7709[_0x5cb2e0(0x1d4)][_0x5cb2e0(0x2d7)]:return _0x5cb2e0(0x43a);case _0xee7709['DrawingTypeEnum'][_0x5cb2e0(0x427)]:return _0x5cb2e0(0x1c7);default:return'object';}}function _0x270d6b(_0x3cecad,_0x54c445,_0x29f33f){const _0x39dea2=_0x2f3801;var _0x32ff95,_0x415544;return((_0x32ff95=_0x3cecad[_0x39dea2(0x3c8)])==null?void 0x0:_0x32ff95[_0x39dea2(0x285)]())||((_0x415544=_0x3cecad[_0x39dea2(0x2de)])==null?void 0x0:_0x415544[_0x39dea2(0x285)]())||(0x0,_0x5b086f[_0x39dea2(0x320)])(_0x29f33f,_0x1eb5d6(_0x3cecad))+'\x20'+(_0x54c445+0x1);}function _0x480f66(){const _0x52db6c=_0x2f3801;var _0x268672,_0x458594;let _0x13bbb1=(0x0,_0x517280[_0x52db6c(0x429)])(_0xee7709[_0x52db6c(0x38d)]),_0x22b514=(0x0,_0x517280[_0x52db6c(0x429)])(_0xee7709['ICommandService']),_0x144a84=(0x0,_0x517280['useDependency'])(_0xee7709[_0x52db6c(0x39d)]),_0x3593ab=(0x0,_0x517280[_0x52db6c(0x429)])(_0x2949a0[_0x52db6c(0x454)]),_0x4405de=(0x0,_0x517280[_0x52db6c(0x429)])(_0x291800['IDrawingManagerService']),_0x4acf39=(0x0,_0x517280[_0x52db6c(0x429)])(_0x2989a1[_0x52db6c(0x2cf)]),[,_0x1333d4]=(0x0,_0x316c68['useReducer'])(_0x4f9da7=>_0x4f9da7+0x1,0x0),_0x3dfc1b=_0x144a84['getCurrentUnitOfType'](_0xee7709['UniverInstanceType'][_0x52db6c(0x33f)]),_0x181138=(_0x268672=_0x3dfc1b==null?void 0x0:_0x3dfc1b['getUnitId']())==null?'':_0x268672,_0x9c2c4f=_0x181138,_0x1ccdff=(0x0,_0x517280[_0x52db6c(0x44c)])(()=>_0x4405de[_0x52db6c(0x30d)],_0x4405de[_0x52db6c(0x3e5)](),!0x1,[_0x4405de]);(0x0,_0x316c68[_0x52db6c(0x31b)])(()=>{const _0x50a620=_0x52db6c;let _0x3ad3e6=_0x22b514[_0x50a620(0x301)](()=>_0x1333d4());return()=>_0x3ad3e6['dispose']();},[_0x22b514]);let _0x3874a2=_0x181138?_0x3593ab[_0x52db6c(0x269)](_0x181138,_0x9c2c4f):{},_0x2c1883=_0x181138?_0x3593ab[_0x52db6c(0x351)](_0x181138,_0x9c2c4f):[],_0x1843a0=(0x0,_0x316c68[_0x52db6c(0x41f)])(()=>(0x0,_0x5b086f['getObjectListPanelLabels'])(_0x13bbb1),[_0x13bbb1]),_0xf817d6=(0x0,_0x316c68[_0x52db6c(0x41f)])(()=>{const _0x531e0f=_0x52db6c;let _0x11ffbf=_0x2c1883[_0x531e0f(0x38c)](_0x2cb343=>_0x3874a2[_0x2cb343])['filter'](_0x5744aa=>!!_0x5744aa)[_0x531e0f(0x389)](),_0x7a3e75=_0x11ffbf[_0x531e0f(0x338)]((_0x98fba5,_0x1d0fd1)=>(_0x98fba5[(0x0,_0x5b086f[_0x531e0f(0x262)])(_0x1d0fd1[_0x531e0f(0x27f)])]+=0x1,_0x98fba5),{'canvas':0x0,'floating':0x0}),_0x2151be={'canvas':0x0,'floating':0x0};return _0x11ffbf[_0x531e0f(0x38c)]((_0x18ac75,_0x1e82b7)=>{const _0x3fc67c=_0x531e0f;let _0x16dcce=(0x0,_0x5b086f[_0x3fc67c(0x262)])(_0x18ac75[_0x3fc67c(0x27f)]),_0x532ada=_0x16dcce===_0x5b086f['OBJECT_LIST_FLOATING_SECTION_ID'],_0x2ea84e=_0x2151be[_0x16dcce]++;return{'id':_0x18ac75['drawingId'],'name':_0x270d6b(_0x18ac75,_0x1e82b7,_0x13bbb1),'description':_0x18ac75[_0x3fc67c(0x38f)],'visible':_0x18ac75['hidden']!==!0x0,'selectable':_0x18ac75[_0x3fc67c(0x352)]!==!0x1,'sectionId':_0x16dcce,'sectionTitle':_0x532ada?_0x1843a0['sectionFloating']:_0x1843a0[_0x3fc67c(0x298)],'capabilities':_0x532ada?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x532ada&&_0x2ea84e>0x0,'canMoveBackward':!_0x532ada&&_0x2ea84e<_0x7a3e75[_0x3fc67c(0x319)]-0x1,'canReorder':!_0x532ada};});},[_0x3874a2,_0x2c1883,_0x1843a0[_0x52db6c(0x298)],_0x1843a0[_0x52db6c(0x331)],_0x13bbb1]),_0x4c648a=(0x0,_0x316c68[_0x52db6c(0x41f)])(()=>(_0x1ccdff==null?[]:_0x1ccdff)[_0x52db6c(0x294)](_0x5d8721=>_0x5d8721[_0x52db6c(0x3e9)]===_0x181138&&_0x5d8721[_0x52db6c(0x29c)]===_0x9c2c4f)['map'](_0x22b54c=>_0x22b54c[_0x52db6c(0x394)]),[_0x1ccdff,_0x9c2c4f,_0x181138]),_0x5bd61c=(_0x458594=_0x4c648a[_0x4c648a[_0x52db6c(0x275)]-0x1])==null?null:_0x458594,_0x27981e=_0xb49f9e=>{const _0x1c542b=_0x52db6c;var _0x12a312;return(_0x12a312=_0x3593ab[_0x1c542b(0x383)]({'unitId':_0x181138,'subUnitId':_0x9c2c4f,'drawingId':_0xb49f9e}))==null?null:_0x12a312;},_0x1a3d3f=_0x405cf1=>{const _0x2190a9=_0x52db6c;!_0x181138||!_0x405cf1[_0x2190a9(0x275)]||_0x22b514['executeCommand'](_0x555e7b[_0x2190a9(0x44e)]['id'],{'unitId':_0x181138,'patches':_0x405cf1});},_0x33cfd2=(_0x1e598f,_0x35bbb3)=>{const _0x4c54d0=_0x52db6c;if(!_0x181138)return;let _0x107fa7=_0x35bbb3?_0x4c648a[_0x4c54d0(0x2be)](_0x1e598f)?_0x4c648a[_0x4c54d0(0x294)](_0x2aafde=>_0x2aafde!==_0x1e598f):[..._0x4c648a,_0x1e598f]:[_0x1e598f];_0x22b514['syncExecuteCommand'](_0x291800[_0x4c54d0(0x3c3)]['id'],_0x107fa7[_0x4c54d0(0x38c)](_0x8b04da=>({'unitId':_0x181138,'subUnitId':_0x9c2c4f,'drawingId':_0x8b04da})));let _0x4a3833=_0x107fa7[_0x107fa7[_0x4c54d0(0x275)]-0x1];_0x4a3833?(0x0,_0x3a322f[_0x4c54d0(0x449)])(_0x4acf39,{'unitId':_0x181138,'subUnitId':_0x9c2c4f,'drawingId':_0x4a3833}):(0x0,_0x3a322f[_0x4c54d0(0x36d)])(_0x4acf39,_0x181138);},_0x5910db=(_0x8ed2db,_0x21dc96)=>{const _0x405a75=_0x52db6c;_0x1a3d3f(_0x8ed2db[_0x405a75(0x38c)](_0x175634=>_0x27981e(_0x175634))[_0x405a75(0x294)](_0x1f9dcf=>!!_0x1f9dcf)[_0x405a75(0x294)](_0x2f7216=>_0x2f7216[_0x405a75(0x444)]!==!0x0!==_0x21dc96)[_0x405a75(0x38c)](_0x393c92=>({'drawingId':_0x393c92['drawingId'],'hidden':!_0x21dc96})));},_0x40f863=_0x2aba7f=>{const _0x4d10ec=_0x52db6c;let _0x52d2bb=_0x27981e(_0x2aba7f);_0x52d2bb&&_0x1a3d3f([{'drawingId':_0x2aba7f,'selectable':_0x52d2bb[_0x4d10ec(0x352)]===!0x1&&void 0x0}]);},_0x4108b0=(_0x132858,_0xd56a0a)=>{const _0x62b93e=_0x52db6c;var _0x448e0e;let _0x2dfc4f=_0x27981e(_0x132858),_0x1a5073=_0x132b71(_0xd56a0a);!_0x2dfc4f||((_0x448e0e=_0x2dfc4f[_0x62b93e(0x3c8)])==null?void 0x0:_0x448e0e)===_0x1a5073&&(_0x2dfc4f[_0x62b93e(0x2de)]||void 0x0)===_0x1a5073||_0x1a3d3f([{'drawingId':_0x132858,'name':_0x1a5073,'title':_0x1a5073}]);},_0xe4b91f=(_0x3cd4de,_0x566775)=>{var _0x4cf24d;let _0x22a5ef=_0x27981e(_0x3cd4de),_0x51cece=_0x132b71(_0x566775);!_0x22a5ef||((_0x4cf24d=_0x22a5ef['description'])==null?void 0x0:_0x4cf24d)===_0x51cece||_0x1a3d3f([{'drawingId':_0x3cd4de,'description':_0x51cece}]);},_0x516d22=(_0x1f3dee,_0x2713f6)=>{const _0x34185e=_0x52db6c;_0x181138&&_0x22b514[_0x34185e(0x1d1)](_0x2949a0[_0x34185e(0x333)]['id'],{'unitId':_0x181138,'subUnitId':_0x9c2c4f,'drawingIds':[_0x1f3dee],'arrangeType':_0x2713f6});};return _0x181138?(0x0,_0x3da6be[_0x52db6c(0x2c0)])(_0x5b086f['ObjectListPanelBase'],{'items':_0xf817d6,'selectedIds':_0x4c648a,'focusedId':_0x5bd61c,'labels':_0x1843a0,'onSelect':_0x33cfd2,'onSetVisible':_0x5910db,'onCommitName':_0x4108b0,'onCommitDescription':_0xe4b91f,'onMoveForward':_0x1913fe=>_0x516d22(_0x1913fe,_0xee7709['ArrangeTypeEnum'][_0x52db6c(0x385)]),'onMoveBackward':_0x37abd9=>_0x516d22(_0x37abd9,_0xee7709['ArrangeTypeEnum'][_0x52db6c(0x362)]),'onToggleSelectable':_0x40f863}):(0x0,_0x3da6be[_0x52db6c(0x2c0)])('div',{'className':_0x52db6c(0x3db),'children':_0x1843a0[_0x52db6c(0x2de)]});}function _0x2be5b0(_0xda8cf9,_0x50d718,_0x33e7ec,_0x5792b4,_0x36afd1,_0x5ae644){const _0x574f88=_0x2f3801;let _0xe3701a={'unitId':_0x50d718,'shapeId':_0x5792b4,'shapeData':_0x5ae644,'oldShapeJSON':_0x36afd1};return _0xda8cf9['executeCommand'](_0x555e7b[_0x574f88(0x3c7)]['id'],_0xe3701a);}function _0x569e92(_0x4fda58,_0x13c68f,_0xcd7290,_0x32f057,_0x272f54,_0x59b896){const _0x4bf730=_0x2f3801;let _0x3d1216={'unitId':_0x13c68f,'shapeId':_0x32f057,'shapeData':_0x59b896,'oldShapeJSON':_0x272f54};return _0x4fda58[_0x4bf730(0x1d1)](_0x555e7b[_0x4bf730(0x3c7)]['id'],_0x3d1216);}let _0x1644e1=class{constructor(_0x1bec70){const _0x569547=_0x2f3801;this[_0x569547(0x3a3)]=_0x1bec70;}[_0x2f3801(0x326)](_0x3457bb,_0x5ae458){const _0x1beaa5=_0x2f3801;let _0x4b7595=this['_renderManagerService'][_0x1beaa5(0x1fb)](_0x3457bb[_0x1beaa5(0x3e9)]),_0x48cbf6=_0x4b7595==null?void 0x0:_0x4b7595['scene'];if(!_0x48cbf6)return;let _0x2cd154=(0x0,_0x291800['getDrawingShapeKeyByDrawingSearch'])(_0x3457bb),_0x192466=_0x48cbf6[_0x1beaa5(0x286)](_0x2cd154);_0x192466==null||_0x192466['setFillImage'](_0x5ae458);}};_0x1644e1=_0x4e2bf9([_0x240031(0x0,_0x2989a1['IRenderManagerService'])],_0x1644e1);function _0x423e91(){const _0x5c1d2d=_0x2f3801;let _0xc78434=(0x0,_0x517280['useDependency'])(_0x291800[_0x5c1d2d(0x43d)]),_0x595760=(0x0,_0x517280[_0x5c1d2d(0x44c)])(()=>_0xc78434[_0x5c1d2d(0x30d)],_0xc78434[_0x5c1d2d(0x3e5)](),!0x1,[_0xc78434]);return _0x595760['length']===0x0?null:(0x0,_0x3da6be['jsx'])(_0x5c1d2d(0x3bf),{'children':(0x0,_0x3da6be[_0x5c1d2d(0x2eb)])(_0x5c1d2d(0x3bf),{'className':_0x5c1d2d(0x32d),'children':[(0x0,_0x3da6be[_0x5c1d2d(0x2c0)])(_0x5b086f[_0x5c1d2d(0x21f)],{'drawings':_0x595760,'hasCropper':!0x1}),(0x0,_0x3da6be[_0x5c1d2d(0x2c0)])(_0x5830e8[_0x5c1d2d(0x3ff)],{'drawings':_0x595760}),(0x0,_0x3da6be[_0x5c1d2d(0x2c0)])(_0x5830e8['DocDrawingPosition'],{'drawings':_0x595760})]})});}function _0xb8c4d3(_0x32ddc5){const _0x5d2bc5=_0x2f3801;let {unitId:_0x187bd8,subUnitId:_0x51023c,shapeId:_0x2fae96}=_0x32ddc5,_0x59f414=(0x0,_0x517280[_0x5d2bc5(0x429)])(_0xee7709[_0x5d2bc5(0x29d)]),_0xbb3ba0=(0x0,_0x517280[_0x5d2bc5(0x429)])(_0x1644e1);return(0x0,_0x3da6be['jsx'])(_0x3a322f[_0x5d2bc5(0x2e3)],{..._0x32ddc5,'positionEditor':(0x0,_0x3da6be[_0x5d2bc5(0x2c0)])(_0x423e91,{}),'onUpdateShapeData':(_0x15354f,_0x253ee1)=>{_0x2be5b0(_0x59f414,_0x187bd8,_0x51023c,_0x2fae96,_0x15354f,_0x253ee1);},'onUpdateLineShapeData':(_0x5c6a42,_0x194b4b)=>{_0x569e92(_0x59f414,_0x187bd8,_0x51023c,_0x2fae96,_0x5c6a42,_0x194b4b);},'onUpdateShapeFillImage':_0xf8fd1b=>{const _0x355e3f=_0x5d2bc5;_0xbb3ba0[_0x355e3f(0x326)]({'unitId':_0x187bd8,'subUnitId':_0x51023c,'drawingId':_0x2fae96},_0xf8fd1b);}});}let _0x1ca774='doc.shape.floating-toolbar';function _0x2966e2(_0x372212,_0x4a8f6d){const _0x56a130=_0x2f3801;var _0x426f18;let _0x26ecbe=_0x372212==null||(_0x426f18=_0x372212[_0x56a130(0x1ee)]()[_0x56a130(0x35c)])==null?void 0x0:_0x426f18[_0x4a8f6d];return _0x26ecbe?_0x26ecbe[_0x56a130(0x2f7)]===_0xee7709[_0x56a130(0x272)][_0x56a130(0x1cb)]?_0x26ecbe[_0x56a130(0x217)]===_0xee7709[_0x56a130(0x3a8)][_0x56a130(0x1f1)]?_0x2949a0['TextWrappingStyle'][_0x56a130(0x3d0)]:_0x2949a0[_0x56a130(0x2d2)][_0x56a130(0x25c)]:_0x26ecbe[_0x56a130(0x2f7)]===_0xee7709[_0x56a130(0x272)][_0x56a130(0x332)]?_0x2949a0['TextWrappingStyle'][_0x56a130(0x332)]:_0x26ecbe[_0x56a130(0x2f7)]===_0xee7709['PositionedObjectLayoutType'][_0x56a130(0x40e)]?_0x2949a0[_0x56a130(0x2d2)][_0x56a130(0x40e)]:_0x2949a0[_0x56a130(0x2d2)][_0x56a130(0x437)]:_0x2949a0[_0x56a130(0x2d2)][_0x56a130(0x437)];}function _0x58c139(_0x264421){const _0x3fa38c=_0x2f3801;var _0x41c5df,_0x40720a,_0x540453;let _0x18830e=_0x264421[_0x3fa38c(0x456)][_0x3fa38c(0x346)],_0x544111=(0x0,_0x517280[_0x3fa38c(0x429)])(_0xee7709['ICommandService']),_0x293a59=(0x0,_0x517280[_0x3fa38c(0x429)])(_0xee7709[_0x3fa38c(0x38d)]),_0x6e8e0e=(0x0,_0x517280[_0x3fa38c(0x429)])(_0x555e7b[_0x3fa38c(0x24b)]),_0xf67bff=(0x0,_0x517280['useDependency'])(_0xee7709['IUniverInstanceService']),{unitId:_0x1532da,subUnitId:_0x527c27,drawingId:_0x503258,shapeType:_0xe04798}=_0x18830e,[_0x1132f8,_0x29df87]=(0x0,_0x316c68[_0x3fa38c(0x30e)])(_0x18830e['shapeData']),_0xc64bdc=(_0x41c5df=_0xf67bff[_0x3fa38c(0x3fb)](_0x1532da,_0xee7709['UniverInstanceType'][_0x3fa38c(0x33f)]))==null?void 0x0:_0x41c5df,[_0x110f49,_0x5695e6]=(0x0,_0x316c68[_0x3fa38c(0x30e)])(()=>_0x2966e2(_0xc64bdc,_0x503258)),_0x8dff82=(0x0,_0x316c68[_0x3fa38c(0x41f)])(()=>(0x0,_0x3a322f[_0x3fa38c(0x2bb)])(_0x1132f8),[_0x1132f8]),_0x3878e2=(0x0,_0x316c68['useMemo'])(()=>(0x0,_0x3a322f[_0x3fa38c(0x3ab)])(_0x1132f8),[_0x1132f8]);(0x0,_0x316c68[_0x3fa38c(0x31b)])(()=>{const _0x300938=_0x3fa38c;let _0x4f61a3=_0x544111[_0x300938(0x301)](_0x318cbe=>{const _0x23e4a6=_0x300938;if(_0x318cbe['id']!==_0x555e7b[_0x23e4a6(0x418)]['id'])return;let _0x126e04=_0x6e8e0e[_0x23e4a6(0x334)](_0x1532da,_0x527c27,_0x503258);_0x126e04&&_0x29df87(_0x126e04);});return()=>_0x4f61a3[_0x300938(0x41b)]();},[_0x544111,_0x6e8e0e,_0x503258,_0x527c27,_0x1532da]);let _0x1d8c8c=_0x3151ef=>{_0x29df87(_0x3d49db=>({..._0x3d49db,..._0x3151ef}));},_0x2a6314=_0x2f01fc=>{const _0xa1c6d9=_0x3fa38c;let _0x317335=(0x0,_0x3a322f[_0xa1c6d9(0x35f)])(_0x1132f8,_0x2f01fc);_0x2be5b0(_0x544111,_0x1532da,_0x527c27,_0x503258,{'oldShapeData':{'shapeText':_0x1132f8[_0xa1c6d9(0x216)]}},_0x317335),_0x1d8c8c(_0x317335);},_0xacea59=_0x229613=>{const _0x288870=_0x3fa38c;_0x5695e6(_0x229613),_0x544111['executeCommand'](_0x2949a0[_0x288870(0x342)]['id'],{'unitId':_0x1532da,'subUnitId':_0x527c27,'drawings':[{'unitId':_0x1532da,'subUnitId':_0x527c27,'drawingId':_0x503258}],'wrappingStyle':_0x229613});},_0x2a245f=(0x0,_0x3a322f[_0x3fa38c(0x370)])({'hostType':_0xee7709[_0x3fa38c(0x3f9)]['UNIVER_DOC'],'unitId':_0x1532da,'subUnitId':_0x527c27,'shapeId':_0x503258,'shapeData':_0x1132f8,'onUpdateBinding':_0x5dfae1=>{const _0x38571b=_0x3fa38c;let _0x3ac5a5={'formulaBinding':_0x5dfae1};_0x2be5b0(_0x544111,_0x1532da,_0x527c27,_0x503258,{'oldShapeData':{'formulaBinding':_0x1132f8[_0x38571b(0x417)]}},_0x3ac5a5),_0x1d8c8c(_0x3ac5a5);}}),_0x38876e=[{'label':_0x293a59['t'](_0x3fa38c(0x3ac)),'value':_0x2949a0['TextWrappingStyle'][_0x3fa38c(0x437)],'icon':(0x0,_0x3da6be[_0x3fa38c(0x2c0)])(_0x3d51a0,{})},{'label':_0x293a59['t'](_0x3fa38c(0x20e)),'value':_0x2949a0[_0x3fa38c(0x2d2)][_0x3fa38c(0x332)],'icon':(0x0,_0x3da6be['jsx'])(_0x3d51a0,{})},{'label':_0x293a59['t'](_0x3fa38c(0x1e4)),'value':_0x2949a0[_0x3fa38c(0x2d2)]['WRAP_TOP_AND_BOTTOM'],'icon':(0x0,_0x3da6be[_0x3fa38c(0x2c0)])(_0x3d51a0,{})},{'label':_0x293a59['t'](_0x3fa38c(0x43f)),'value':_0x2949a0['TextWrappingStyle'][_0x3fa38c(0x3d0)],'icon':(0x0,_0x3da6be[_0x3fa38c(0x2c0)])(_0x3d51a0,{})},{'label':_0x293a59['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x2949a0[_0x3fa38c(0x2d2)][_0x3fa38c(0x25c)],'icon':(0x0,_0x3da6be[_0x3fa38c(0x2c0)])(_0x3d51a0,{})}];return(0x0,_0x3da6be['jsxs'])(_0x3da6be[_0x3fa38c(0x211)],{'children':[(0x0,_0x3da6be[_0x3fa38c(0x2c0)])(_0x3a322f[_0x3fa38c(0x1ff)],{'shapeData':_0x1132f8,'shapeType':_0xe04798,'textStyle':{'ff':_0x5354f7[_0x3fa38c(0x236)][_0x3fa38c(0x216)]['fontFamily'],'fs':_0x5354f7[_0x3fa38c(0x236)][_0x3fa38c(0x216)][_0x3fa38c(0x3c5)],'cl':{'rgb':_0x5354f7[_0x3fa38c(0x236)]['shapeText'][_0x3fa38c(0x2d4)]},..._0x8dff82},'textModel':_0x3878e2?{'ha':(_0x40720a=_0x3878e2['ha'])==null?_0xee7709['HorizontalAlign'][_0x3fa38c(0x3c0)]:_0x40720a,'va':(_0x540453=_0x3878e2['va'])==null?_0xee7709['VerticalAlign'][_0x3fa38c(0x1d3)]:_0x540453}:null,'wrappingStyle':_0x110f49,'wrappingStyleOptions':_0x38876e,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x5354f7[_0x3fa38c(0x236)]['fill'],'defaultGradientEndColor':_0x5354f7[_0x3fa38c(0x236)]['gradientEndColor'],'defaultStrokeColor':_0x5354f7['ShapeDefaultConfig'][_0x3fa38c(0x40b)],'extensionGroups':_0x2a245f[_0x3fa38c(0x3bb)],'onUpdateShapeData':(_0xb9125d,_0x5026d6)=>{_0x2be5b0(_0x544111,_0x1532da,_0x527c27,_0x503258,_0xb9125d,_0x5026d6),_0x5026d6&&_0x1d8c8c(_0x5026d6);},'onUpdateText':_0x2a6314,'onUpdateWrappingStyle':_0x225c38=>_0xacea59(_0x225c38),'onOpenPanel':()=>{const _0x3eca76=_0x3fa38c;_0x544111[_0x3eca76(0x1d1)](_0x5f37a8['id'],{'unitId':_0x1532da,'subUnitId':_0x527c27,'drawingId':_0x503258});},'onDelete':()=>{const _0x37055c=_0x3fa38c;_0x544111[_0x37055c(0x1d1)](_0x2949a0[_0x37055c(0x1f3)]['id'],{'unitId':_0x1532da,'drawings':[{'unitId':_0x1532da,'subUnitId':_0x527c27,'drawingId':_0x503258}]});}}),_0x2a245f[_0x3fa38c(0x273)]]});}function _0x15c02f(_0x372aa3){'@babel/helpers - typeof';const _0x2bd28b=_0x2f3801;return _0x15c02f=typeof Symbol==_0x2bd28b(0x237)&&typeof Symbol[_0x2bd28b(0x39f)]==_0x2bd28b(0x207)?function(_0x2c7f37){return typeof _0x2c7f37;}:function(_0x24a5d2){const _0x350d94=_0x2bd28b;return _0x24a5d2&&typeof Symbol=='function'&&_0x24a5d2[_0x350d94(0x2dd)]===Symbol&&_0x24a5d2!==Symbol[_0x350d94(0x3d5)]?_0x350d94(0x207):typeof _0x24a5d2;},_0x15c02f(_0x372aa3);}function _0x17108e(_0x5f8e1a,_0x1e75af){const _0x38516b=_0x2f3801;if(_0x15c02f(_0x5f8e1a)!=_0x38516b(0x407)||!_0x5f8e1a)return _0x5f8e1a;var _0x504f2e=_0x5f8e1a[Symbol['toPrimitive']];if(_0x504f2e!==void 0x0){var _0x5b3a0c=_0x504f2e[_0x38516b(0x339)](_0x5f8e1a,_0x1e75af||_0x38516b(0x2d8));if(_0x15c02f(_0x5b3a0c)!=_0x38516b(0x407))return _0x5b3a0c;throw TypeError(_0x38516b(0x33d));}return(_0x1e75af===_0x38516b(0x445)?String:Number)(_0x5f8e1a);}function _0x4ae27a(_0x1bb304){const _0x45e81b=_0x2f3801;var _0x54c80e=_0x17108e(_0x1bb304,_0x45e81b(0x445));return _0x15c02f(_0x54c80e)==_0x45e81b(0x207)?_0x54c80e:_0x54c80e+'';}function _0x31c38d(_0x18e36a,_0x1ebd17,_0x5316e6){const _0x2b082a=_0x2f3801;return(_0x1ebd17=_0x4ae27a(_0x1ebd17))in _0x18e36a?Object[_0x2b082a(0x250)](_0x18e36a,_0x1ebd17,{'value':_0x5316e6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18e36a[_0x1ebd17]=_0x5316e6,_0x18e36a;}var _0x4bbdde=class extends _0xee7709['Disposable']{constructor(..._0x42d05a){const _0x5f1404=_0x2f3801;super(..._0x42d05a),_0x31c38d(this,_0x5f1404(0x3e0),new _0x15594a[(_0x5f1404(0x2fa))](null)),_0x31c38d(this,'editingParams$',this['_editingParams$'][_0x5f1404(0x26a)]()),_0x31c38d(this,_0x5f1404(0x1eb),new _0x15594a[(_0x5f1404(0x2fa))](!0x1)),_0x31c38d(this,'onSavingEditorData$',this[_0x5f1404(0x1eb)][_0x5f1404(0x26a)]());}['dispose'](){const _0x29387e=_0x2f3801;this[_0x29387e(0x3e0)][_0x29387e(0x244)](null),this[_0x29387e(0x3e0)][_0x29387e(0x2f1)](),this[_0x29387e(0x1eb)][_0x29387e(0x244)](!0x1),this[_0x29387e(0x1eb)][_0x29387e(0x2f1)](),super['dispose']();}[_0x2f3801(0x2b8)](_0x1a9fbc){const _0x1c6480=_0x2f3801;this[_0x1c6480(0x3e0)][_0x1c6480(0x244)](_0x1a9fbc),_0x1a9fbc==null&&this[_0x1c6480(0x1eb)][_0x1c6480(0x244)](!0x1);}[_0x2f3801(0x2ad)](_0x2f2f36){const _0x4e1581=_0x2f3801;this[_0x4e1581(0x1eb)][_0x4e1581(0x244)](_0x2f2f36);}[_0x2f3801(0x1c5)](){const _0x56f355=_0x2f3801;return this[_0x56f355(0x3e0)][_0x56f355(0x278)]();}[_0x2f3801(0x357)](_0x359949){const _0x1dee6a=_0x2f3801;this[_0x1dee6a(0x1c5)]()&&(this[_0x1dee6a(0x2ad)](!0x0),requestAnimationFrame(()=>{const _0x57245d=_0x1dee6a;this[_0x57245d(0x2b8)](null);}));}[_0x2f3801(0x335)](){const _0x1c34cc=_0x2f3801;this[_0x1c34cc(0x1c5)]()&&this[_0x1c34cc(0x2b8)](null);}};let _0x27a5c4=(0x0,_0x316c68[_0x2f3801(0x223)])(()=>{const _0x3c61af=_0x2f3801;let _0x51db48=(0x0,_0x517280[_0x3c61af(0x429)])(_0x4bbdde),_0x4b2de7=(0x0,_0x517280[_0x3c61af(0x429)])(_0x555e7b[_0x3c61af(0x24b)]),_0x1002ee=(0x0,_0x517280[_0x3c61af(0x429)])(_0x291800['IDrawingManagerService']),_0xe8dcdb=(0x0,_0x517280[_0x3c61af(0x429)])(_0xee7709[_0x3c61af(0x29d)]);return(0x0,_0x3da6be[_0x3c61af(0x2c0)])(_0x3a322f[_0x3c61af(0x317)],{'adapter':(0x0,_0x316c68[_0x3c61af(0x41f)])(()=>({'getShapeModel':(_0x38e414,_0x3d8b6a,_0x64999d)=>_0x4b2de7[_0x3c61af(0x2f3)](_0x38e414,_0x3d8b6a,_0x64999d),'getShapeData':(_0x2964a7,_0x4bcbf3,_0x8e66c2)=>_0x4b2de7[_0x3c61af(0x334)](_0x2964a7,_0x4bcbf3,_0x8e66c2),'getDrawingTransform':(_0x135abd,_0x2d4143,_0x53b043)=>{const _0x46ac9f=_0x3c61af;let _0x20c877=_0x1002ee[_0x46ac9f(0x383)]({'unitId':_0x135abd,'subUnitId':_0x2d4143,'drawingId':_0x53b043});return _0x20c877==null?void 0x0:_0x20c877[_0x46ac9f(0x3f8)];},'updateShapeText':({unitId:_0x3a7163,shapeId:_0x5efbcd,shapeText:_0x2bf210,oldShapeText:_0x22b664})=>{const _0x32c57e=_0x3c61af;_0xe8dcdb[_0x32c57e(0x1d1)](_0x555e7b[_0x32c57e(0x3c7)]['id'],{'unitId':_0x3a7163,'shapeId':_0x5efbcd,'shapeData':{'shapeText':_0x2bf210},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x22b664}}});},'updateHostSize':({unitId:_0x35aee9,subUnitId:_0x5654a5,shapeId:_0x4c72d4,width:_0x41befa,height:_0x29c336})=>{const _0x3ca041=_0x3c61af;_0xe8dcdb[_0x3ca041(0x1d1)](_0x2949a0[_0x3ca041(0x1fe)]['id'],{'unitId':_0x35aee9,'subUnitId':_0x5654a5,'drawings':[{'drawingId':_0x4c72d4,'key':_0x3ca041(0x1f2),'value':{'width':_0x41befa,'height':_0x29c336}}]});},'allowHostSizeShrink':({unitId:_0x3d23b7,subUnitId:_0x405abc,shapeId:_0x32bc1f})=>(0x0,_0x3a322f['shouldAllowShapeTextEditorHostSizeShrink'])(_0x4b2de7[_0x3c61af(0x334)](_0x3d23b7,_0x405abc,_0x32bc1f))}),[_0xe8dcdb,_0x4b2de7,_0x1002ee]),'editingService':_0x51db48,'editorUnitId':_0xaaddeb,'positionOptions':(0x0,_0x316c68['useMemo'])(()=>({'viewportKeys':{'main':_0x4e6713[_0x3c61af(0x3d2)][_0x3c61af(0x2d3)]}}),[])});}),_0x2ee0a8=class extends _0xee7709[_0x2f3801(0x3aa)]{constructor(_0x2fecad,_0x2d09ec){const _0xe00aa0=_0x2f3801;super(),this[_0xe00aa0(0x3e1)]=_0x2fecad,this[_0xe00aa0(0x2b9)]=_0x2d09ec,this[_0xe00aa0(0x2c3)](),this[_0xe00aa0(0x3e8)]();}[_0x2f3801(0x2c3)](){const _0x1d6b07=_0x2f3801;this[_0x1d6b07(0x2b9)]['has'](_0x1d6b07(0x358))||this[_0x1d6b07(0x2e0)](this[_0x1d6b07(0x2b9)]['register']({'ObjectLayersIcon':_0x4408db}));}[_0x2f3801(0x3e8)](){const _0x8f0856=_0x2f3801;this['disposeWithMe'](this[_0x8f0856(0x3e1)][_0x8f0856(0x344)](_0x11b824,_0xb8c4d3)),this[_0x8f0856(0x2e0)](this[_0x8f0856(0x3e1)][_0x8f0856(0x344)](_0x4b22f9,_0x480f66)),this['disposeWithMe'](this[_0x8f0856(0x3e1)][_0x8f0856(0x344)](_0x1ca774,_0x58c139)),this[_0x8f0856(0x2e0)](this['_componentManager'][_0x8f0856(0x344)](_0x143504,_0x3a322f['ShapeTextFloatToolbar'])),this[_0x8f0856(0x2e0)](this['_componentManager'][_0x8f0856(0x344)](_0x5152de,_0x2e5bff)),this[_0x8f0856(0x2e0)](this[_0x8f0856(0x3e1)][_0x8f0856(0x344)](_0x7e7379,_0x382863)),this[_0x8f0856(0x3e1)][_0x8f0856(0x44b)](_0x5b086f['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this[_0x8f0856(0x2e0)](this[_0x8f0856(0x3e1)][_0x8f0856(0x344)](_0x5b086f[_0x8f0856(0x1c6)],_0x34d29d)),this[_0x8f0856(0x2e0)](this[_0x8f0856(0x3e1)]['register'](_0x8f0856(0x424),_0x27a5c4));}};_0x2ee0a8=_0x4e2bf9([_0x240031(0x0,(0x0,_0xee7709['Inject'])(_0x517280[_0x2f3801(0x1cf)])),_0x240031(0x1,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x517280[_0x2f3801(0x2c5)]))],_0x2ee0a8);var _0x15d7cc=class extends _0x2989a1[_0x2f3801(0x3ba)]{constructor(_0x3f8162,_0x1efbd8){const _0xad1bbf=_0x2f3801;super(_0x3f8162,_0x1efbd8),_0x31c38d(this,'_shapeId',null),_0x31c38d(this,_0xad1bbf(0x209),null),_0x31c38d(this,_0xad1bbf(0x271),null),_0x31c38d(this,_0xad1bbf(0x366),null),_0x1efbd8&&this[_0xad1bbf(0x3f7)](_0x1efbd8);}[_0x2f3801(0x3c9)](){const _0x5a5875=_0x2f3801;return{'unitId':this['_unitId'],'subUnitId':this[_0x5a5875(0x366)],'drawingId':this[_0x5a5875(0x45a)]};}[_0x2f3801(0x3f7)](_0xd4a8ba){const _0x4fe764=_0x2f3801;_0xd4a8ba[_0x4fe764(0x3d8)]!==void 0x0&&(this[_0x4fe764(0x45a)]=_0xd4a8ba['shapeId']),_0xd4a8ba[_0x4fe764(0x32c)]!==void 0x0&&(this[_0x4fe764(0x209)]=_0xd4a8ba[_0x4fe764(0x32c)]),_0xd4a8ba[_0x4fe764(0x3e9)]!==void 0x0&&(this[_0x4fe764(0x271)]=_0xd4a8ba[_0x4fe764(0x3e9)]),_0xd4a8ba['subUnitId']!==void 0x0&&(this[_0x4fe764(0x366)]=_0xd4a8ba[_0x4fe764(0x29c)]),this[_0x4fe764(0x3e7)]({'width':_0xd4a8ba[_0x4fe764(0x452)],'height':_0xd4a8ba[_0x4fe764(0x253)]});}[_0x2f3801(0x222)](_0x4a4dc5){const _0x5254bc=_0x2f3801;_0x2989a1[_0x5254bc(0x210)][_0x5254bc(0x327)](_0x4a4dc5,{'radius':_0x5354f7[_0x5254bc(0x236)][_0x5254bc(0x421)],'fill':_0x5354f7['ShapeDefaultConfig'][_0x5254bc(0x398)],'stroke':_0x5354f7[_0x5254bc(0x236)][_0x5254bc(0x3a2)],'strokeWidth':0x1,'evented':!0x0});}};function _0x34d3c7(_0xafc45d,_0x8d78f7,_0x5e633f){const _0x1bc7f9=_0x2f3801;var _0x14b4e0;let _0x1c543a=(0x0,_0x3a322f[_0x1bc7f9(0x2ca)])(_0xafc45d,{..._0x8d78f7,'dataModel':{...(_0x14b4e0=_0x8d78f7['dataModel'])==null?{}:_0x14b4e0,..._0x5e633f?{'doc':_0x5e633f}:null}}),_0x31bb3b=(0x0,_0x3a322f[_0x1bc7f9(0x3b3)])(_0x1c543a);return{'clip':(0x0,_0x3a322f['shouldClipShapeTextDocument'])(_0x1c543a,_0x31bb3b),'wrapStrategy':_0x31bb3b};}var _0x5ba17f=class extends _0x2989a1['Shape']{constructor(_0x4333b4,_0x511f95){const _0x49a8d5=_0x2f3801;super(_0x4333b4,_0x511f95),_0x31c38d(this,_0x49a8d5(0x3fe),void 0x0),_0x31c38d(this,_0x49a8d5(0x2f2),new _0x3a322f['FormulaShapeAnimationController'](()=>this[_0x49a8d5(0x305)](!0x0),()=>this[_0x49a8d5(0x403)]())),_0x31c38d(this,_0x49a8d5(0x27a),!0x0),_0x31c38d(this,_0x49a8d5(0x39c),_0xee7709['DrawingTypeEnum'][_0x49a8d5(0x427)]),_0x31c38d(this,_0x49a8d5(0x257),!0x0),this[_0x49a8d5(0x3fe)]={..._0x511f95},this[_0x49a8d5(0x2f2)][_0x49a8d5(0x2ce)](_0x511f95[_0x49a8d5(0x20b)],_0x511f95[_0x49a8d5(0x3b5)]!==!0x1),this[_0x49a8d5(0x2bf)](),this[_0x49a8d5(0x403)]();}['_init'](){const _0x172100=_0x2f3801;this[_0x172100(0x36b)]['subscribeEvent'](_0x2900f6=>{const _0x5079f3=_0x172100;this[_0x5079f3(0x27c)](_0x2900f6);});}['setPrstGeom'](_0x57cced){const _0x440fdc=_0x2f3801;this['_props'][_0x440fdc(0x451)]=_0x57cced;}['setEditing'](_0x1da4d9){const _0x37ec83=_0x2f3801;this[_0x37ec83(0x3fe)][_0x37ec83(0x411)]=_0x1da4d9,this[_0x37ec83(0x305)](!0x0);}['setFormulaPresentation'](_0x3fb82a,_0x294dda=!0x0){const _0x5802f4=_0x2f3801;this[_0x5802f4(0x2f2)][_0x5802f4(0x2ce)](_0x3fb82a,_0x294dda),this[_0x5802f4(0x3fe)]['formulaPresentation']=_0x3fb82a,this[_0x5802f4(0x403)](),this[_0x5802f4(0x305)](!0x0);}[_0x2f3801(0x403)](){const _0x5c2585=_0x2f3801;let _0xf40fd0=this[_0x5c2585(0x3fe)]['shapeModel'],_0x203566=_0xf40fd0[_0x5c2585(0x24c)](),_0x4c7384=(0x0,_0x3a322f[_0x5c2585(0x3e2)])(_0x203566==null?void 0x0:_0x203566[_0x5c2585(0x292)]),_0x54ada1=_0x4c7384==null?void 0x0:_0x4c7384['doc'],_0x1cc1e3=this[_0x5c2585(0x2f2)][_0x5c2585(0x21e)]();if(!_0x54ada1||_0x1cc1e3[_0x5c2585(0x275)]===0x0)return;_0xf40fd0[_0x5c2585(0x3cf)]({'width':this[_0x5c2585(0x452)],'height':this[_0x5c2585(0x253)]});let _0x50d5fb=(0x0,_0x3a322f[_0x5c2585(0x26c)])({'documentData':_0x1cc1e3[_0x5c2585(0x38c)](_0x11e7c8=>(0x0,_0x5a3a75['createShapeFormulaDocument'])(_0x54ada1,_0x11e7c8)),'height':this['height'],'shapeData':_0xf40fd0[_0x5c2585(0x2a9)](),'textRect':_0xf40fd0[_0x5c2585(0x22b)]({'left':0x0,'top':0x0,'width':this[_0x5c2585(0x452)],'height':this[_0x5c2585(0x253)]}),'width':this[_0x5c2585(0x452)]});if(_0x50d5fb){var _0x1d2d1d;this[_0x5c2585(0x2e8)](_0x50d5fb[_0x5c2585(0x452)],_0x50d5fb[_0x5c2585(0x253)]),(_0x1d2d1d=this[_0x5c2585(0x3f4)]())==null||(_0x1d2d1d=_0x1d2d1d['getTransformer']())==null||_0x1d2d1d[_0x5c2585(0x1e1)]();}}get[_0x2f3801(0x3e9)](){const _0x46fae6=_0x2f3801;return this[_0x46fae6(0x3fe)][_0x46fae6(0x3e9)];}get[_0x2f3801(0x29c)](){const _0x5a1c9a=_0x2f3801;return this[_0x5a1c9a(0x3fe)][_0x5a1c9a(0x29c)];}[_0x2f3801(0x27c)](_0x39d90b){const _0x1ebb2b=_0x2f3801;if(this['_props'][_0x1ebb2b(0x376)]==null||!this[_0x1ebb2b(0x27a)])return;let {width:_0x560dad,height:_0x316d57}=this,{width:_0x197ba7=0x0,height:_0x5e8833=0x0}=_0x39d90b[_0x1ebb2b(0x2fe)],{left:_0x5e1d1b=0x0,top:_0x5870ec=0x0,right:_0x1f5be9=0x0,bottom:_0x17800b=0x0}=this[_0x1ebb2b(0x3fe)][_0x1ebb2b(0x376)],_0x246c03=_0x5e1d1b,_0x4edf1a=_0x5870ec,_0xcaa5b6=_0x1f5be9,_0x4f3bcc=_0x17800b,_0x4a8235=!0x1;if(_0x197ba7!==0x0&&_0x197ba7!==_0x560dad){let _0x2db0c0=_0x5e1d1b/_0x197ba7,_0x377f4f=_0x1f5be9/_0x197ba7;_0x246c03=_0x560dad*_0x2db0c0,_0xcaa5b6=_0x560dad*_0x377f4f,_0x4a8235=!0x0;}if(_0x5e8833!==0x0&&_0x5e8833!==_0x316d57){let _0x309b5c=_0x5870ec/_0x5e8833,_0x294f22=_0x17800b/_0x5e8833;_0x4edf1a=_0x316d57*_0x309b5c,_0x4f3bcc=_0x316d57*_0x294f22,_0x4a8235=!0x0;}_0x4a8235&&this[_0x1ebb2b(0x455)]({'left':_0x246c03,'top':_0x4edf1a,'right':_0xcaa5b6,'bottom':_0x4f3bcc});}[_0x2f3801(0x455)](_0x536c3c){const _0x4f9453=_0x2f3801;this[_0x4f9453(0x3fe)][_0x4f9453(0x376)]=_0x536c3c,this[_0x4f9453(0x305)](!0x0);}[_0x2f3801(0x310)](_0x21861a){const _0x68240c=_0x2f3801;this['_props'][_0x68240c(0x443)]=_0x21861a,this[_0x68240c(0x305)](!0x0);}set[_0x2f3801(0x3f8)](_0x466ded){const _0x47e19f=_0x2f3801;this[_0x47e19f(0x280)]=_0x466ded;}get[_0x2f3801(0x3f8)](){const _0x2a580e=_0x2f3801;this['_transform']||this['_setTransForm']();let _0x7f3714=this[_0x2a580e(0x280)][_0x2a580e(0x436)]();return this[_0x2a580e(0x3ca)](_0x7f3714);}get['shapeModel'](){const _0x44739c=_0x2f3801;return this[_0x44739c(0x3fe)][_0x44739c(0x40d)];}get[_0x2f3801(0x3d8)](){const _0x8068fb=_0x2f3801;return this[_0x8068fb(0x3fe)]['shapeId'];}get['classType'](){const _0x30ba01=_0x2f3801;return _0x2989a1[_0x30ba01(0x354)][_0x30ba01(0x448)];}[_0x2f3801(0x222)](_0x5b7304,_0x45363e,_0x4d3a5b,_0x3409dd){const _0x11c153=_0x2f3801;let _0x58bfa3=this[_0x11c153(0x3fe)]['shapeModel'];if(!_0x58bfa3||!_0x45363e)return;let _0x311080=_0x4d3a5b==null?this[_0x11c153(0x452)]:_0x4d3a5b,_0x3f2e20=_0x3409dd==null?this['height']:_0x3409dd,_0x44420f={'shapeType':_0x58bfa3[_0x11c153(0x3e6)](),'width':_0x311080,'height':_0x3f2e20},_0x3a1487={'renderMode':_0x5354f7[_0x11c153(0x2a3)][_0x11c153(0x359)],'oKey':this[_0x11c153(0x2fd)],'image':this[_0x11c153(0x3fe)][_0x11c153(0x443)],'angle':this[_0x11c153(0x2d0)]};_0x58bfa3[_0x11c153(0x3cf)](_0x44420f),_0x5b7304[_0x11c153(0x29b)]();let _0x1cd516={'top':0x0,'left':0x0,'width':_0x311080,'height':_0x3f2e20},_0xf1c9d7=_0x58bfa3['getDrawingEffectBounds'](_0x1cd516);_0xf1c9d7?this['_renderWithCache'](_0x5b7304,_0xf1c9d7,_0xee6493=>{const _0x2c29d9=_0x11c153;_0x58bfa3[_0x2c29d9(0x3fa)](_0xee6493,_0x1cd516,_0x3a1487);}):(this[_0x11c153(0x287)](),_0x58bfa3[_0x11c153(0x3fa)](_0x5b7304,_0x1cd516,_0x3a1487)),_0x5b7304['restore']();let _0x5a2f3e=_0x58bfa3[_0x11c153(0x24c)](),_0x5801aa=_0x58bfa3[_0x11c153(0x22b)](_0x1cd516),_0x3546a6=_0x58bfa3['isLineShape']();if(_0x5a2f3e&&_0x5801aa&&!_0x3546a6){_0x5b7304[_0x11c153(0x29b)](),this[_0x11c153(0x425)]()[_0x11c153(0x2ae)]&&_0x5b7304[_0x11c153(0x3bc)](-0x1,0x1);let _0x458c59=_0x311080/0x2,_0x5dc1cc=_0x3f2e20/0x2;_0x5b7304[_0x11c153(0x402)](-_0x458c59,-_0x5dc1cc),_0x5b7304[_0x11c153(0x25d)](),this[_0x11c153(0x31a)](_0x5b7304,_0x5a2f3e,_0x5801aa),_0x5b7304[_0x11c153(0x3a7)]();}}[_0x2f3801(0x2dc)](_0x11229d){}[_0x2f3801(0x31a)](_0x355bfc,_0x52926e,_0xd98129){const _0x293d5d=_0x2f3801;var _0xc2afff;this[_0x293d5d(0x3fe)][_0x293d5d(0x411)]||(!((_0xc2afff=_0x52926e[_0x293d5d(0x292)])!=null&&_0xc2afff[_0x293d5d(0x414)])&&_0x293d5d(0x309)in _0x52926e&&_0x52926e[_0x293d5d(0x309)]===!0x1?this[_0x293d5d(0x30f)](_0x355bfc,_0x52926e,_0xd98129):this['_drawRichText'](_0x355bfc,_0x52926e,_0xd98129));}[_0x2f3801(0x30f)](_0x1d3b4e,_0x211dd5,_0x54c1dc){const _0x543212=_0x2f3801;var _0x2b320a;this[_0x543212(0x3e4)](_0x1d3b4e,{..._0x211dd5,'text':(_0x2b320a=_0x211dd5[_0x543212(0x3b8)])==null?'':_0x2b320a,'dataModel':{'doc':(0x0,_0x3a322f[_0x543212(0x32f)])(_0x211dd5,_0x543212(0x28b)+this[_0x543212(0x2fd)])}},_0x54c1dc);}[_0x2f3801(0x3e4)](_0x11b15f,_0x3f4d55,_0xa134da){(0x0,_0x3a322f['drawFormulaShapeAnimationLayers'])(_0x11b15f,this['_formulaAnimation'],(_0x2eb0b9,_0x2775c2)=>{const _0x2188b9=_0x10f4;this[_0x2188b9(0x1d8)](_0x2eb0b9,_0x3f4d55,_0xa134da,_0x2775c2);});}[_0x2f3801(0x1d8)](_0x31cfec,_0x239dd2,_0x36db76,_0x2e12c9){const _0x19f402=_0x2f3801;var _0x236d00,_0x576730;let _0x464b7b=this[_0x19f402(0x3fe)][_0x19f402(0x25e)];if(!_0x239dd2[_0x19f402(0x292)]||!_0x464b7b){_0x464b7b||console[_0x19f402(0x31d)](_0x19f402(0x226));return;}let _0x139749=(0x0,_0x3a322f[_0x19f402(0x3e2)])(_0x239dd2['dataModel']);if(!_0x139749)return;let _0x17e0ba=_0x139749[_0x19f402(0x414)];if(!_0x17e0ba)return;let _0x4a200e=(0x0,_0x5a3a75[_0x19f402(0x35a)])(_0x17e0ba,_0x2e12c9),_0x1e4919=(_0x236d00=_0x139749['va'])==null?_0xee7709['VerticalAlign']['TOP']:_0x236d00,_0x1b24d7=(_0x576730=_0x139749['ha'])==null?_0xee7709['HorizontalAlign']['LEFT']:_0x576730,_0x2845a9=_0x34d3c7(this[_0x19f402(0x3fe)][_0x19f402(0x40d)][_0x19f402(0x2a9)](),_0x239dd2,_0x4a200e),_0x5a6b51=_0x239dd2['isHorizontal'],_0xe36eda=new _0xee7709[(_0x19f402(0x2ba))]((0x0,_0x3a322f[_0x19f402(0x3b6)])(_0x4a200e,{'isHorizontal':_0x5a6b51!==!0x1,'textRect':_0x36db76,'verticalAlign':_0x1e4919,'horizontalAlign':_0x1b24d7,'wrapStrategy':_0x2845a9['wrapStrategy']})),_0x47fc32=new _0x2989a1[(_0x19f402(0x2ff))](_0xe36eda),_0x3a1614=_0x2989a1['DocumentSkeleton'][_0x19f402(0x23e)](_0x47fc32,_0x464b7b);_0x3a1614[_0x19f402(0x3e3)]();let _0x547caa=_0x3a1614[_0x19f402(0x44a)]()['actualHeight'],_0x5ae330=(0x0,_0x3a322f[_0x19f402(0x38e)])({'contentHeight':_0x547caa,'verticalAlign':_0x1e4919,'viewportHeight':_0x36db76[_0x19f402(0x253)]});_0xe36eda[_0x19f402(0x355)]({'pageSize':{'width':_0x5a6b51===!0x1?_0x36db76[_0x19f402(0x253)]:_0x36db76[_0x19f402(0x452)],'height':_0x5ae330[_0x19f402(0x36c)]}}),_0xe36eda['updateDocumentDataMargin']({'t':_0x5ae330['marginTop']}),_0x3a1614[_0x19f402(0x3e3)]();let _0x15f035=new _0x2989a1[(_0x19f402(0x1c4))](_0x19f402(0x1e0)+this[_0x19f402(0x2fd)],_0x3a1614,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x19f402(0x305)](!0x0)});_0x15f035[_0x19f402(0x2e8)](_0x36db76['width'],_0x5ae330[_0x19f402(0x36c)]),_0x31cfec[_0x19f402(0x29b)](),_0x31cfec[_0x19f402(0x1df)](_0x36db76[_0x19f402(0x37a)],_0x36db76[_0x19f402(0x2bd)]),_0x2845a9[_0x19f402(0x409)]&&(_0x31cfec[_0x19f402(0x25d)](),_0x31cfec[_0x19f402(0x410)](0x0,_0x5ae330['clipTop'],_0x36db76[_0x19f402(0x452)],_0x5ae330[_0x19f402(0x28e)]),_0x31cfec[_0x19f402(0x409)]()),_0x5ae330[_0x19f402(0x3d4)]&&_0x31cfec['translateWithPrecision'](0x0,_0x5ae330[_0x19f402(0x3d4)]),_0x15f035[_0x19f402(0x391)](_0x31cfec),_0x31cfec[_0x19f402(0x3a7)](),_0x15f035[_0x19f402(0x41b)](),_0x3a1614[_0x19f402(0x41b)](),_0x47fc32[_0x19f402(0x41b)](),_0xe36eda[_0x19f402(0x41b)]();}[_0x2f3801(0x3fa)](_0xfee5c7,_0x3a0846,_0x9d3aac=!0x1){const _0x9c5083=_0x2f3801;if(!this[_0x9c5083(0x315)])return this['makeDirty'](!0x1),this;let {width:_0x38f7a6,height:_0x582168,left:_0x37a5fc,top:_0x1dbf72}=this,_0x56722b=this['getRealBound']();if(_0x38f7a6=_0x56722b[_0x9c5083(0x452)],_0x582168=_0x56722b[_0x9c5083(0x253)],_0x37a5fc=_0x56722b[_0x9c5083(0x37a)],_0x1dbf72=_0x56722b[_0x9c5083(0x2bd)],this[_0x9c5083(0x3f3)](_0x3a0846)){let {top:_0x50e754,left:_0x4fc0d3,bottom:_0x44266f,right:_0x5c9469}=_0x3a0846['viewBound'];if(_0x38f7a6+this[_0x9c5083(0x293)]+_0x37a5fc<_0x4fc0d3||_0x5c9469<_0x37a5fc||_0x582168+this[_0x9c5083(0x293)]+_0x1dbf72<_0x50e754||_0x44266f<_0x1dbf72)return this;}let _0x55aeb2=_0x37a5fc+_0x38f7a6/0x2,_0x5807df=_0x1dbf72+_0x582168/0x2,_0x6a88d0=this[_0x9c5083(0x3f8)][_0x9c5083(0x2a4)]();if(this[_0x9c5083(0x3fe)]['isEditing']){let _0x15c23f=this[_0x9c5083(0x425)](),_0x4123cf=new _0x2989a1[(_0x9c5083(0x31f))]();_0x4123cf['composeMatrix']({..._0x15c23f}),_0x6a88d0=_0x4123cf['getMatrix']();}return _0xfee5c7['save'](),this[_0x9c5083(0x3fe)][_0x9c5083(0x40d)][_0x9c5083(0x3d9)]===!0x0||_0xfee5c7[_0x9c5083(0x3f8)](_0x6a88d0[0x0],_0x6a88d0[0x1],_0x6a88d0[0x2],_0x6a88d0[0x3],_0x55aeb2,_0x5807df),this[_0x9c5083(0x222)](_0xfee5c7,_0x3a0846,_0x38f7a6,_0x582168),_0xfee5c7[_0x9c5083(0x3a7)](),this[_0x9c5083(0x305)](!0x1),this;}[_0x2f3801(0x3df)](_0x5e1990){const _0x3c6e04=_0x2f3801;let {left:_0x2da418,top:_0xc12892,width:_0x2265f6,height:_0xe681d5}=this[_0x3c6e04(0x20d)](),_0x5aeadf=this['transform']['getMatrix'](),_0x126434=_0x2da418+_0x2265f6/0x2,_0x42fba5=_0xc12892+_0xe681d5/0x2,_0x107640=new _0x2989a1[(_0x3c6e04(0x31f))]([_0x5aeadf[0x0],_0x5aeadf[0x1],_0x5aeadf[0x2],_0x5aeadf[0x3],_0x126434,_0x42fba5]),_0x45f576=this[_0x3c6e04(0x208)]();return(this[_0x3c6e04(0x36f)]&&(_0x45f576==null?void 0x0:_0x45f576[_0x3c6e04(0x43c)])===_0x2989a1[_0x3c6e04(0x354)]['GROUP']?_0x45f576[_0x3c6e04(0x228)][_0x3c6e04(0x1ed)](_0x107640):_0x107640)[_0x3c6e04(0x337)]()['applyPoint'](_0x5e1990);}[_0x2f3801(0x41c)](_0x465064){const _0x20f367=_0x2f3801;let {left:_0x214c67,top:_0x5d0883,width:_0x3fd18c,height:_0x265c31}=this[_0x20f367(0x20d)](),_0x491d3c=_0x214c67+_0x3fd18c/0x2,_0x24069b=_0x5d0883+_0x265c31/0x2,_0x5c62aa=this[_0x20f367(0x3f8)][_0x20f367(0x2a4)](),_0x3b91b0=new _0x2989a1[(_0x20f367(0x31f))]([_0x5c62aa[0x0],_0x5c62aa[0x1],_0x5c62aa[0x2],_0x5c62aa[0x3],_0x491d3c,_0x24069b]),_0x56136f=this[_0x20f367(0x208)](),_0x2ab9ee=(this[_0x20f367(0x36f)]&&(_0x56136f==null?void 0x0:_0x56136f[_0x20f367(0x43c)])===_0x2989a1[_0x20f367(0x354)][_0x20f367(0x45b)]?_0x56136f['ancestorTransform'][_0x20f367(0x1ed)](_0x3b91b0):_0x3b91b0)[_0x20f367(0x337)]()[_0x20f367(0x1c9)](_0x465064),_0x4eb373=_0x3fd18c/0x2,_0x1b318f=_0x265c31/0x2,_0x58bf83=this['_props']['shapeModel'];return _0x58bf83&&_0x58bf83[_0x20f367(0x308)]()?_0x58bf83[_0x20f367(0x1e9)](_0x2ab9ee['x'],_0x2ab9ee['y'],_0x3fd18c,_0x265c31):_0x2ab9ee['x']>=-_0x4eb373-this['strokeWidth']/0x2&&_0x2ab9ee['x']<=_0x4eb373+this[_0x20f367(0x293)]/0x2&&_0x2ab9ee['y']>=-_0x1b318f-this['strokeWidth']/0x2&&_0x2ab9ee['y']<=_0x1b318f+this['strokeWidth']/0x2;}[_0x2f3801(0x41b)](){const _0x1f4408=_0x2f3801;this[_0x1f4408(0x2f2)][_0x1f4408(0x41b)](),this[_0x1f4408(0x3fe)][_0x1f4408(0x40d)]=null,super['dispose']();}};let _0x2df3d2=class extends _0xee7709[_0x2f3801(0x3aa)]{constructor(_0x36db5f,_0x457c96,_0x2baed1,_0x1e84a5){const _0xf9f91d=_0x2f3801;super(),this[_0xf9f91d(0x453)]=_0x36db5f,this['_drawingManagerService']=_0x457c96,this[_0xf9f91d(0x2da)]=_0x2baed1,this[_0xf9f91d(0x26b)]=_0x1e84a5,_0x31c38d(this,_0xf9f91d(0x264),null),_0x31c38d(this,'_unitId',null),_0x31c38d(this,'_subUnitId',null),_0x31c38d(this,_0xf9f91d(0x1fc),void 0x0),_0x31c38d(this,'_adjustPointObjects',[]),_0x31c38d(this,_0xf9f91d(0x36a),0x0),_0x31c38d(this,_0xf9f91d(0x321),0x0),_0x31c38d(this,_0xf9f91d(0x27b),0x0),_0x31c38d(this,_0xf9f91d(0x3a9),0x0),_0x31c38d(this,'_isStartAdjusting',!0x1),_0x31c38d(this,_0xf9f91d(0x3c1),!0x1),_0x31c38d(this,_0xf9f91d(0x399),void 0x0),_0x31c38d(this,_0xf9f91d(0x290),void 0x0),_0x31c38d(this,_0xf9f91d(0x3b7),void 0x0),_0x31c38d(this,'_adjHandlerPointerUp',void 0x0),this[_0xf9f91d(0x1ec)](),this[_0xf9f91d(0x3a5)]();}[_0x2f3801(0x388)](){this['_clearShapeAdjustControls']();}[_0x2f3801(0x1dc)](){const _0x204b79=_0x2f3801;this[_0x204b79(0x347)](!0x0);}[_0x2f3801(0x3cc)](_0x5ea390,_0x39e832,_0x5a3aaf){const _0xdb5e8b=_0x2f3801;var _0x313512;return(_0x313512=this[_0xdb5e8b(0x2da)][_0xdb5e8b(0x2f3)](_0x5ea390,_0x39e832,_0x5a3aaf))==null?void 0x0:_0x313512[_0xdb5e8b(0x2dc)]();}[_0x2f3801(0x353)](_0x294078,_0x57ebbc,_0x33f570,_0x1dafec){var _0x518856;return(_0x518856=this['_docsShapeService']['getShapeModel'](_0x294078,_0x57ebbc,_0x33f570))==null?void 0x0:_0x518856['getAdjustInfoByName'](_0x1dafec);}[_0x2f3801(0x251)](){const _0x3d3398=_0x2f3801;if(this[_0x3d3398(0x271)]===null||this[_0x3d3398(0x366)]===null||this[_0x3d3398(0x264)]===null)return null;let _0x1eecec=this[_0x3d3398(0x33a)][_0x3d3398(0x383)]({'unitId':this[_0x3d3398(0x271)],'subUnitId':this[_0x3d3398(0x366)],'drawingId':this['_activeShapeId']});return _0x1eecec==null?null:_0x1eecec;}['_getActiveDrawingShape'](_0x533bc4){const _0xe8a37=_0x2f3801;if(this[_0xe8a37(0x271)]===null||this[_0xe8a37(0x366)]===null||this[_0xe8a37(0x264)]===null)return null;let _0x39a282=(0x0,_0x291800[_0xe8a37(0x2f8)])({'unitId':this[_0xe8a37(0x271)],'subUnitId':this[_0xe8a37(0x366)],'drawingId':this[_0xe8a37(0x264)]}),_0x1a9f55=_0x533bc4[_0xe8a37(0x286)](_0x39a282);return _0x1a9f55 instanceof _0x5ba17f?_0x1a9f55:null;}[_0x2f3801(0x1fa)](_0x447db8=!0x1){const _0x1da60e=_0x2f3801;if(this[_0x1da60e(0x271)]===null||this[_0x1da60e(0x366)]===null||this[_0x1da60e(0x264)]===null)return;let _0x1cf928=this[_0x1da60e(0x251)]();if((_0x1cf928==null?void 0x0:_0x1cf928[_0x1da60e(0x27f)])!==_0xee7709['DrawingTypeEnum'][_0x1da60e(0x427)]||!_0x1cf928[_0x1da60e(0x3f8)])return;let _0x2b5890=this[_0x1da60e(0x2da)][_0x1da60e(0x2f3)](this[_0x1da60e(0x271)],this[_0x1da60e(0x366)],this['_activeShapeId']);if(!_0x2b5890||_0x2b5890[_0x1da60e(0x308)]())return;let {left:_0x9ec680=0x0,top:_0x1292d7=0x0,width:_0x2d7170=0x0,height:_0x257718=0x0,flipX:_0x3ba9f6,flipY:_0x309ec7,angle:_0x46f637=0x0}=_0x1cf928[_0x1da60e(0x3f8)];(_0x447db8||!this[_0x1da60e(0x1fc)])&&(_0x2b5890['updateContext']({'width':_0x2d7170,'height':_0x257718}),this['_activeShapeAdjustPointList']=_0x2b5890[_0x1da60e(0x2dc)]());let _0x1af442=this['_activeShapeAdjustPointList'];if(!(_0x1af442!=null&&_0x1af442[_0x1da60e(0x275)]))return;let {scene:_0x4d4d66}=this[_0x1da60e(0x453)];for(let _0xe67bf0 of _0x1af442){let _0x4beddf=this['_toVisualAdjustPoint'](_0xe67bf0,_0x2d7170,_0x257718,!!_0x3ba9f6,!!_0x309ec7,_0x46f637);this[_0x1da60e(0x2f6)](_0x4d4d66,_0x4beddf,_0x4beddf[_0x1da60e(0x32c)],_0x9ec680,_0x1292d7,this[_0x1da60e(0x271)],this['_subUnitId']);}}[_0x2f3801(0x214)](_0x623934,_0xbf3cd0,_0xa811b9,_0x4df5d0,_0x254ea3,_0x118f3b){const _0x501d2e=_0x2f3801;let _0x56e384=_0x623934['x'],_0x2dba6f=_0x623934['y'];if(_0x4df5d0&&(_0x56e384=_0xbf3cd0-_0x56e384),_0x254ea3&&(_0x2dba6f=_0xa811b9-_0x2dba6f),_0x118f3b!==0x0){let _0x5edffb=_0xbf3cd0/0x2,_0x41c760=_0xa811b9/0x2,_0x579c54=_0x118f3b*Math['PI']/0xb4,_0x577beb=Math[_0x501d2e(0x1fd)](_0x579c54),_0x3b0465=Math['sin'](_0x579c54),_0x442ea4=_0x56e384-_0x5edffb,_0x40a3c6=_0x2dba6f-_0x41c760;_0x56e384=_0x5edffb+(_0x442ea4*_0x577beb-_0x40a3c6*_0x3b0465),_0x2dba6f=_0x41c760+(_0x442ea4*_0x3b0465+_0x40a3c6*_0x577beb);}return{'x':_0x56e384,'y':_0x2dba6f,'adjName':_0x623934['adjName']};}[_0x2f3801(0x347)](_0x4de392=!0x1){const _0x3b8f30=_0x2f3801;_0x4de392&&this[_0x3b8f30(0x2d6)](),this[_0x3b8f30(0x1fa)](_0x4de392);}[_0x2f3801(0x2f6)](_0x139887,_0x3dbd53,_0x5b5e18,_0x10e4f6,_0x3d57c1,_0x1ce872,_0x25f003){const _0x1b9de1=_0x2f3801;if(!this[_0x1b9de1(0x264)])return;let _0x3a9533='doc-shape-adjust-point-'+this[_0x1b9de1(0x264)]+'-'+_0x5b5e18,_0x133eae=_0x139887['getObjectIncludeInGroup'](_0x3a9533);if(_0x133eae){_0x133eae[_0x1b9de1(0x3e7)]({'left':_0x3dbd53['x']+_0x10e4f6-_0x5354f7['ShapeDefaultConfig'][_0x1b9de1(0x421)],'top':_0x3dbd53['y']+_0x3d57c1-_0x5354f7['ShapeDefaultConfig'][_0x1b9de1(0x421)]}),_0x133eae[_0x1b9de1(0x305)](!0x0);return;}let _0xcbec1=new _0x15d7cc(_0x3a9533,{'left':_0x3dbd53['x']+_0x10e4f6-_0x5354f7['ShapeDefaultConfig'][_0x1b9de1(0x421)],'top':_0x3dbd53['y']+_0x3d57c1-_0x5354f7['ShapeDefaultConfig'][_0x1b9de1(0x421)],'adjName':_0x5b5e18,'shapeId':this['_activeShapeId'],'unitId':_0x1ce872,'subUnitId':_0x25f003,'width':_0x5354f7[_0x1b9de1(0x236)]['adjHandleSize']+0x8,'height':_0x5354f7[_0x1b9de1(0x236)]['adjHandleSize']+0x8,'zIndex':_0x2989a1['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x1b9de1(0x3ea)]['push'](_0xcbec1),this[_0x1b9de1(0x22f)](_0xcbec1,_0x139887,_0x5b5e18),_0x139887['addObject'](_0xcbec1,_0x2989a1[_0x1b9de1(0x22c)]+0x1);}[_0x2f3801(0x2d6)](){const _0x385fca=_0x2f3801;this['_adjustPointObjects'][_0x385fca(0x323)](_0x34e4fc=>_0x34e4fc[_0x385fca(0x41b)]()),this[_0x385fca(0x3ea)]=[];}[_0x2f3801(0x2d5)](){const _0x4aa144=_0x2f3801;this[_0x4aa144(0x1fa)]();}[_0x2f3801(0x1d0)](_0x5011e2,_0x447718,_0x2c31d9){const _0x4f7406=_0x2f3801;var _0x142fda,_0x1b039a;let _0x56080d=_0x2989a1['Vector2'][_0x4f7406(0x3ed)]([_0x447718,_0x2c31d9]),_0x5ab3b7=(_0x142fda=_0x5011e2[_0x4f7406(0x382)](_0x56080d))==null?_0x5011e2[_0x4f7406(0x299)]()[0x0]:_0x142fda;return(_0x1b039a=_0x5ab3b7==null?void 0x0:_0x5ab3b7[_0x4f7406(0x20a)](_0x56080d))==null?_0x56080d:_0x1b039a;}['_attachAdjustEvent'](_0xc1f560,_0x5d0044,_0x3def40){const _0x287aa6=_0x2f3801;this[_0x287aa6(0x2e0)]((0x0,_0xee7709[_0x287aa6(0x3ef)])(_0xc1f560['onPointerDown$'][_0x287aa6(0x434)]((_0x2b5f0c,_0x5b8c09)=>{const _0x509818=_0x287aa6;var _0x5a96d2,_0x78f973;let _0x8eaeec=_0xc1f560[_0x509818(0x3c9)]();this[_0x509818(0x399)]=this[_0x509818(0x353)](_0x8eaeec[_0x509818(0x3e9)],_0x8eaeec[_0x509818(0x29c)],_0x8eaeec[_0x509818(0x394)],_0x3def40),this[_0x509818(0x290)]=this['_docsShapeService'][_0x509818(0x2f3)](_0x8eaeec[_0x509818(0x3e9)],_0x8eaeec[_0x509818(0x29c)],_0x8eaeec[_0x509818(0x394)]);let _0x1048fa=this[_0x509818(0x251)](),_0x4da87d=_0x1048fa==null?void 0x0:_0x1048fa[_0x509818(0x3f8)];if(!_0x1048fa||!_0x4da87d||!this[_0x509818(0x290)])return;this['_baseShapeLeft']=_0x4da87d['left']||0x0,this[_0x509818(0x321)]=_0x4da87d[_0x509818(0x2bd)]||0x0,this['_baseShapeWidth']=_0x4da87d[_0x509818(0x452)]||0x0,this[_0x509818(0x3a9)]=_0x4da87d[_0x509818(0x253)]||0x0;let _0x58aec6=!!_0x4da87d[_0x509818(0x2ae)],_0x59c6c4=!!_0x4da87d[_0x509818(0x303)],_0x3297fb=_0x4da87d[_0x509818(0x2d0)]||0x0,_0x5665c4={...(_0x5a96d2=(_0x78f973=this[_0x509818(0x399)])==null?void 0x0:_0x78f973[_0x509818(0x2c8)])==null?{}:_0x5a96d2};this[_0x509818(0x413)]=!0x0,_0x5d0044[_0x509818(0x2fb)](),this['_adjHandlerPointerMove']=_0x5d0044['onPointerMove$']['subscribeEvent']((_0x47b14d,_0x383656)=>{const _0x4c3f38=_0x509818;var _0x528ce1;if(!this['_isStartAdjusting']||!this['_activeShapeModel']||!this[_0x4c3f38(0x399)])return;_0x5d0044[_0x4c3f38(0x2fb)](),_0x5d0044['setCursor'](_0x2989a1[_0x4c3f38(0x2b4)]['CROSSHAIR']);let _0xd5fc04=this['_toScenePoint'](_0x5d0044,_0x47b14d[_0x4c3f38(0x384)],_0x47b14d[_0x4c3f38(0x3f0)]),_0x73ac10=_0xd5fc04['x']-this[_0x4c3f38(0x36a)],_0x4e0acf=_0xd5fc04['y']-this[_0x4c3f38(0x321)];if(_0x3297fb!==0x0){let _0x559dd8=this[_0x4c3f38(0x27b)]/0x2,_0x2255ba=this['_baseShapeHeight']/0x2,_0x47e00c=_0x3297fb*Math['PI']/0xb4,_0x34b7e9=Math[_0x4c3f38(0x1fd)](_0x47e00c),_0x3b9aaf=Math[_0x4c3f38(0x316)](_0x47e00c),_0x4092a2=_0x73ac10-_0x559dd8,_0x3893e2=_0x4e0acf-_0x2255ba;_0x73ac10=_0x559dd8+(_0x4092a2*_0x34b7e9+_0x3893e2*_0x3b9aaf),_0x4e0acf=_0x2255ba+(-_0x4092a2*_0x3b9aaf+_0x3893e2*_0x34b7e9);}_0x58aec6&&(_0x73ac10=this[_0x4c3f38(0x27b)]-_0x73ac10),_0x59c6c4&&(_0x4e0acf=this[_0x4c3f38(0x3a9)]-_0x4e0acf);let _0x24be8e={'left':0x0,'top':0x0,'width':this[_0x4c3f38(0x27b)],'height':this['_baseShapeHeight']},_0x481748=this['_activeShapeModel'][_0x4c3f38(0x1f6)](_0x24be8e,{'x':_0x73ac10,'y':_0x4e0acf},this[_0x4c3f38(0x399)],_0x58aec6,_0x59c6c4);if(Object[_0x4c3f38(0x42a)](_0x481748)[_0x4c3f38(0x275)]!==0x0){for(let [_0x1bacfe,_0xa90328]of Object['entries'](_0x481748))this[_0x4c3f38(0x290)][_0x4c3f38(0x373)](_0x1bacfe,_0xa90328);this[_0x4c3f38(0x290)]['updateContext']({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']}),(_0x528ce1=this[_0x4c3f38(0x312)](_0x5d0044))==null||_0x528ce1['makeDirty'](!0x0),this[_0x4c3f38(0x1fc)]=this['_getShapeAdjustPointListById'](_0x8eaeec['unitId'],_0x8eaeec[_0x4c3f38(0x29c)],_0x8eaeec[_0x4c3f38(0x394)]),this[_0x4c3f38(0x2d5)](),_0x383656['stopPropagation']();}}),this[_0x509818(0x307)]=_0x5d0044[_0x509818(0x2f0)]['subscribeEvent']((_0x1f6c10,_0x6b9d18)=>{const _0x2793f7=_0x509818;var _0x26f42a,_0x12e290;(_0x26f42a=this[_0x2793f7(0x3b7)])==null||_0x26f42a[_0x2793f7(0x1cc)](),(_0x12e290=this[_0x2793f7(0x307)])==null||_0x12e290[_0x2793f7(0x1cc)](),_0x5d0044[_0x2793f7(0x25f)]();let _0xe1fd35=this[_0x2793f7(0x399)];if(_0xe1fd35&&this[_0x2793f7(0x290)]){let _0x11139d={};for(let _0x5069e2 of Object[_0x2793f7(0x42a)](_0xe1fd35['currentAdjustValues'])){let _0x5cdd4d=this[_0x2793f7(0x290)][_0x2793f7(0x233)](_0x5069e2);_0x5cdd4d!==void 0x0&&(_0x11139d[_0x5069e2]=_0x5cdd4d);}Object['keys'](_0x11139d)[_0x2793f7(0x275)]>0x0&&_0x2be5b0(this[_0x2793f7(0x26b)],_0x8eaeec[_0x2793f7(0x3e9)],_0x8eaeec[_0x2793f7(0x29c)],_0x8eaeec[_0x2793f7(0x394)],{'oldShapeData':{'adjustValues':_0x5665c4}},{'adjustValues':_0x11139d});}this[_0x2793f7(0x399)]=void 0x0,this[_0x2793f7(0x290)]=void 0x0,this[_0x2793f7(0x413)]=!0x1,_0x5d0044[_0x2793f7(0x401)](),_0x6b9d18[_0x2793f7(0x34f)]();}),_0x5b8c09[_0x509818(0x34f)]();})));}[_0x2f3801(0x3a5)](){const _0x2c6325=_0x2f3801;let {scene:_0x5f131b}=this[_0x2c6325(0x453)],_0x6cf737=_0x5f131b[_0x2c6325(0x1d2)]();this[_0x2c6325(0x2e0)](_0x6cf737[_0x2c6325(0x28a)]['subscribe'](_0x29aadc=>{const _0x384f78=_0x2c6325;this['_createShapeAdjustControls'](),_0x29aadc[_0x384f78(0x3eb)]!==null&&_0x29aadc[_0x384f78(0x3eb)][_0x384f78(0x1f2)]===0x1&&_0x29aadc['objects'][_0x384f78(0x420)]()[_0x384f78(0x244)]()['value']instanceof _0x5ba17f&&(this[_0x384f78(0x3c1)]=!0x0);})),this[_0x2c6325(0x2e0)](_0x6cf737[_0x2c6325(0x29f)]['subscribe'](()=>{const _0x38a313=_0x2c6325;this[_0x38a313(0x3c1)]&&this[_0x38a313(0x2d6)]();})),this[_0x2c6325(0x2e0)](_0x5f131b[_0x2c6325(0x2f0)][_0x2c6325(0x434)](()=>{const _0xfb6df=_0x2c6325;this['_isShouldShowDrawingShapeAdjust']&&(this[_0xfb6df(0x3c1)]=!0x1,this[_0xfb6df(0x1fa)]());})),this[_0x2c6325(0x2e0)](_0x6cf737[_0x2c6325(0x29a)][_0x2c6325(0x459)](()=>{const _0x38145f=_0x2c6325;this[_0x38145f(0x271)]&&this[_0x38145f(0x366)]&&this[_0x38145f(0x264)]&&(this[_0x38145f(0x1fc)]=this[_0x38145f(0x3cc)](this[_0x38145f(0x271)],this['_subUnitId'],this[_0x38145f(0x264)]),this[_0x38145f(0x2d5)]());}));}[_0x2f3801(0x1ec)](){const _0x19e218=_0x2f3801;this[_0x19e218(0x2e0)](this['_commandService'][_0x19e218(0x301)](_0x5e937a=>{const _0x50f3cf=_0x19e218;if(_0x5e937a['id']!==_0x555e7b[_0x50f3cf(0x418)]['id'])return;let {unitId:_0x2776e4,shapeId:_0x22f8a7}=_0x5e937a[_0x50f3cf(0x239)];_0x2776e4===this[_0x50f3cf(0x271)]&&_0x22f8a7===this['_activeShapeId']&&this[_0x50f3cf(0x1dc)]();})),this[_0x19e218(0x2e0)](this['_drawingManagerService'][_0x19e218(0x30d)][_0x19e218(0x459)](_0x5cb00c=>{const _0x4d0567=_0x19e218;if(_0x5cb00c['length']===0x1){let _0x8da843=_0x5cb00c[0x0],_0x533351=this['_drawingManagerService']['getDrawingByParam'](_0x8da843);if((_0x533351==null?void 0x0:_0x533351[_0x4d0567(0x27f)])===_0xee7709[_0x4d0567(0x1d4)]['DRAWING_SHAPE']){this[_0x4d0567(0x264)]=_0x8da843[_0x4d0567(0x394)],this['_unitId']=_0x8da843[_0x4d0567(0x3e9)],this[_0x4d0567(0x366)]=_0x8da843[_0x4d0567(0x29c)],this[_0x4d0567(0x1fc)]=this[_0x4d0567(0x3cc)](_0x8da843[_0x4d0567(0x3e9)],_0x8da843['subUnitId'],_0x8da843[_0x4d0567(0x394)]),this['_clearShapeAdjustControls'](),this[_0x4d0567(0x1fa)]();return;}}this[_0x4d0567(0x264)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x4d0567(0x271)]=null,this[_0x4d0567(0x366)]=null,this[_0x4d0567(0x2d6)]();})),this[_0x19e218(0x2e0)]((0x0,_0x15594a[_0x19e218(0x21d)])(this[_0x19e218(0x33a)][_0x19e218(0x268)],this[_0x19e218(0x33a)][_0x19e218(0x3ee)])[_0x19e218(0x459)](_0x18aa32=>{const _0x2136a1=_0x19e218;var _0x35af52;let _0x7f3a25=_0x18aa32['find'](_0x2ee270=>_0x2ee270[_0x2136a1(0x394)]===this[_0x2136a1(0x264)]&&_0x2ee270['unitId']===this[_0x2136a1(0x271)]&&_0x2ee270[_0x2136a1(0x29c)]===this[_0x2136a1(0x366)]);_0x7f3a25&&((_0x35af52=this[_0x2136a1(0x33a)]['getDrawingByParam'](_0x7f3a25))==null?void 0x0:_0x35af52['drawingType'])===_0xee7709[_0x2136a1(0x1d4)]['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x19e218(0x2e0)](this[_0x19e218(0x33a)][_0x19e218(0x1e3)]['subscribe'](_0x349a7c=>{const _0x3274ce=_0x19e218;for(let _0xf84d7a of _0x349a7c)this[_0x3274ce(0x264)]===_0xf84d7a[_0x3274ce(0x394)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3274ce(0x271)]=null,this['_subUnitId']=null,this[_0x3274ce(0x2d6)]());}));}};_0x2df3d2=_0x4e2bf9([_0x240031(0x1,_0x291800[_0x2f3801(0x43d)]),_0x240031(0x2,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x555e7b[_0x2f3801(0x24b)])),_0x240031(0x3,_0xee7709[_0x2f3801(0x29d)])],_0x2df3d2);function _0x11b55b(_0x32706d){const _0x2ce33e=_0x2f3801;return _0x32706d[_0x2ce33e(0x1f9)]===!0x0||_0x32706d[_0x2ce33e(0x1f9)]===_0xee7709[_0x2ce33e(0x3a8)][_0x2ce33e(0x1f1)]||_0x32706d[_0x2ce33e(0x2f7)]===_0xee7709[_0x2ce33e(0x272)][_0x2ce33e(0x1cb)]&&_0x32706d['behindDoc']===_0xee7709[_0x2ce33e(0x3a8)][_0x2ce33e(0x1f1)]?_0x4e6713[_0x2ce33e(0x3cd)]-0x1:_0x2989a1[_0x2ce33e(0x22c)];}let _0x3c69bf=class extends _0xee7709[_0x2f3801(0x3aa)]{constructor(_0x46b0b2,_0x4dad2c,_0x5a537d,_0x1ee4d1,_0x142bd2,_0x543aab,_0x57207e){const _0x3fa786=_0x2f3801;super(),this[_0x3fa786(0x33a)]=_0x46b0b2,this[_0x3fa786(0x2da)]=_0x4dad2c,this['_localeService']=_0x5a537d,this['_imageIoService']=_0x1ee4d1,this[_0x3fa786(0x3be)]=_0x142bd2,this[_0x3fa786(0x306)]=_0x543aab,this['_shapeFormulaService']=_0x57207e,_0x31c38d(this,_0x3fa786(0x3b4),new Map()),this[_0x3fa786(0x2e0)](this[_0x3fa786(0x3d6)][_0x3fa786(0x240)][_0x3fa786(0x459)](_0x20eeb1=>{const _0x4a3e47=_0x3fa786;var _0x11fab5;(_0x11fab5=this[_0x4a3e47(0x3b4)][_0x4a3e47(0x44b)](this['_formulaKey'](_0x20eeb1[_0x4a3e47(0x3e9)],_0x20eeb1['subUnitId'],_0x20eeb1[_0x4a3e47(0x3d8)])))==null||_0x11fab5[_0x4a3e47(0x323)](_0x395b37=>_0x395b37[_0x4a3e47(0x1d7)](_0x20eeb1[_0x4a3e47(0x2c2)],_0x20eeb1[_0x4a3e47(0x422)]));})),this[_0x3fa786(0x2e0)](this[_0x3fa786(0x33a)]['remove$']['subscribe'](_0x2e0a93=>{const _0x125e5a=_0x3fa786;_0x2e0a93[_0x125e5a(0x323)](_0x558f9d=>{const _0x528707=_0x125e5a;this[_0x528707(0x3d6)][_0x528707(0x2c7)]({'unitId':_0x558f9d[_0x528707(0x3e9)],'subUnitId':_0x558f9d[_0x528707(0x29c)],'shapeId':_0x558f9d[_0x528707(0x394)]}),this['_formulaShapes'][_0x528707(0x3ae)](this['_formulaKey'](_0x558f9d[_0x528707(0x3e9)],_0x558f9d[_0x528707(0x29c)],_0x558f9d[_0x528707(0x394)]));});}));}[_0x2f3801(0x25a)](_0x3da24c,_0x2208ec){const _0x71635=_0x2f3801;let {transform:_0x4176f5,drawingType:_0x58c73c,srcRect:_0x1ad9e0,prstGeom:_0x8c595a,groupId:_0x35d614,unitId:_0x4b6da7,subUnitId:_0x518b19,drawingId:_0xeedc07,isMultiTransform:_0x45402b,transforms:_0x53d58d,hidden:_0x3d0b0f,selectable:_0x4809ac}=_0x3da24c;if(_0x58c73c!==_0xee7709[_0x71635(0x1d4)]['DRAWING_SHAPE']||!this[_0x71635(0x33a)][_0x71635(0x1ce)]()||_0x4176f5==null)return;let _0xb264f1=this[_0x71635(0x33a)][_0x71635(0x324)]();_0xb264f1&&_0x2208ec[_0x71635(0x43b)](_0x3a322f[_0x71635(0x27d)]);let _0x486a30=_0x45402b&&_0x53d58d?_0x53d58d:[_0x4176f5],_0x5ed51e=[];for(let _0x46fc99 of _0x486a30){let {left:_0x59b7c0,top:_0x2f4ceb,width:_0x387d3b,height:_0x43e457,angle:_0x44eea8,flipX:_0x4da998,flipY:_0x2e4864,skewX:_0x245738,skewY:_0x4d7285}=_0x46fc99,_0x57f654=_0x486a30[_0x71635(0x34e)](_0x46fc99),_0x8247bc=(0x0,_0x291800['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x4b6da7,'subUnitId':_0x518b19,'drawingId':_0xeedc07},_0x45402b?_0x57f654:void 0x0),_0x497656=_0x2208ec['getObjectIncludeInGroup'](_0x8247bc);if(_0x497656!=null){let _0x26b0bf={'unitId':_0x4b6da7,'subUnitId':_0x518b19,'shapeId':_0xeedc07};_0x497656 instanceof _0x5ba17f&&this[_0x71635(0x3a6)](_0x497656,_0x26b0bf),_0x497656[_0x71635(0x3e7)]({'left':_0x59b7c0,'top':_0x2f4ceb,'width':_0x387d3b,'height':_0x43e457,'angle':_0x44eea8,'flipX':_0x4da998,'flipY':_0x2e4864,'skewX':_0x245738,'skewY':_0x4d7285});continue;}let _0x18f730=this[_0x71635(0x33a)]['getDrawingOrder'](_0x4b6da7,_0x518b19),_0x687287=_0x18f730[_0x71635(0x34e)](_0xeedc07);if(_0x2208ec[_0x71635(0x286)](_0x8247bc)||!this['_drawingManagerService'][_0x71635(0x1ce)]())continue;let _0x3b7ce8=this[_0x71635(0x2da)]['getShapeModel'](_0x4b6da7,_0x518b19,_0xeedc07);if(!_0x3b7ce8)continue;let _0x3c3553=(0x0,_0x5354f7['isConnectorShape'])(_0x3b7ce8[_0x71635(0x3e6)]()),_0x4a4d14=_0x3b7ce8[_0x71635(0x2a9)]()['formulaBinding'],_0x5c3f2a={'unitId':_0x4b6da7,'subUnitId':_0x518b19,'shapeId':_0xeedc07};_0x4a4d14&&this[_0x71635(0x3d6)]['register'](_0x5c3f2a,_0x4a4d14);let _0x125f4d=new _0x5ba17f(_0x8247bc,{..._0x3c3553?{..._0x46fc99,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x46fc99},'zIndex':_0x687287===-0x1?_0x18f730[_0x71635(0x275)]-0x1:_0x687287,'shapeModel':_0x3b7ce8,'localeService':this[_0x71635(0x41e)],'shapeId':_0xeedc07,'unitId':_0x4b6da7,'subUnitId':_0x518b19,'visible':_0x3d0b0f!==!0x0,'evented':_0x4809ac!==!0x1,'formulaPresentation':_0x4a4d14?this[_0x71635(0x3d6)][_0x71635(0x2db)](_0x5c3f2a):void 0x0,'animateFormulaPresentation':(_0x4a4d14==null?void 0x0:_0x4a4d14[_0x71635(0x422)])!==!0x1});if(_0x4a4d14){var _0x2b491d;let _0x4f2d0e=this[_0x71635(0x44d)](_0x4b6da7,_0x518b19,_0xeedc07),_0x1774f1=(_0x2b491d=this['_formulaShapes'][_0x71635(0x44b)](_0x4f2d0e))==null?new Set():_0x2b491d;_0x1774f1['add'](_0x125f4d),this[_0x71635(0x3b4)][_0x71635(0x38a)](_0x4f2d0e,_0x1774f1);}this[_0x71635(0x2e0)]((0x0,_0xee7709['toDisposable'])(_0x125f4d[_0x71635(0x2c6)][_0x71635(0x434)]((_0xf4b65a,_0x520bc4)=>{const _0x2378e8=_0x71635;_0x3b7ce8[_0x2378e8(0x308)]()||_0x4a4d14||(this[_0x2378e8(0x306)][_0x2378e8(0x2b8)]({'visible':!0x0,'unitId':_0x4b6da7,'subUnitId':_0x518b19,'shapeId':_0xeedc07,'shapeKey':_0x125f4d['oKey']}),_0x520bc4[_0x2378e8(0x34f)]());}))),_0x2208ec['addObject'](_0x125f4d,_0x11b55b(_0x3da24c)),_0xb264f1&&_0x2208ec[_0x71635(0x274)](_0x125f4d),_0x35d614&&(0x0,_0x5b086f['insertGroupObject'])({'drawingId':_0x35d614,'unitId':_0x4b6da7,'subUnitId':_0x518b19},_0x125f4d,_0x2208ec,this[_0x71635(0x33a)]),_0x8c595a!=null&&_0x125f4d[_0x71635(0x380)](_0x8c595a),_0x1ad9e0!=null&&_0x125f4d['setSrcRect'](_0x1ad9e0),this[_0x71635(0x200)](_0x125f4d,_0x3b7ce8[_0x71635(0x2a9)]()),_0x5ed51e[_0x71635(0x1d5)](_0x125f4d);}return _0x5ed51e;}[_0x2f3801(0x44d)](_0x2b301e,_0x3b3fb2,_0x208b97){return _0x2b301e+'\x00'+_0x3b3fb2+'\x00'+_0x208b97;}[_0x2f3801(0x3a6)](_0x509b48,_0x473638){const _0x31ad7c=_0x2f3801;let _0x24c680=this['_docsShapeService'][_0x31ad7c(0x2f3)](_0x473638[_0x31ad7c(0x3e9)],_0x473638[_0x31ad7c(0x29c)],_0x473638[_0x31ad7c(0x3d8)]),_0x322d2b=_0x24c680==null?void 0x0:_0x24c680[_0x31ad7c(0x2a9)]()[_0x31ad7c(0x417)],_0x303d4a=this[_0x31ad7c(0x44d)](_0x473638[_0x31ad7c(0x3e9)],_0x473638[_0x31ad7c(0x29c)],_0x473638[_0x31ad7c(0x3d8)]);if(_0x322d2b){var _0x5848c3;this['_shapeFormulaService'][_0x31ad7c(0x344)](_0x473638,_0x322d2b);let _0x318c38=(_0x5848c3=this['_formulaShapes'][_0x31ad7c(0x44b)](_0x303d4a))==null?new Set():_0x5848c3;_0x318c38[_0x31ad7c(0x37d)](_0x509b48),this[_0x31ad7c(0x3b4)][_0x31ad7c(0x38a)](_0x303d4a,_0x318c38);}else{var _0x30ce14;this[_0x31ad7c(0x3d6)]['unregister'](_0x473638),(_0x30ce14=this[_0x31ad7c(0x3b4)][_0x31ad7c(0x44b)](_0x303d4a))==null||_0x30ce14[_0x31ad7c(0x3ae)](_0x509b48);}_0x509b48[_0x31ad7c(0x1d7)](_0x322d2b?this[_0x31ad7c(0x3d6)]['getPresentation'](_0x473638):void 0x0,(_0x322d2b==null?void 0x0:_0x322d2b[_0x31ad7c(0x422)])!==!0x1);}[_0x2f3801(0x433)](_0x51c7d7){const _0x19143a=_0x2f3801;let _0x2fadde=_0x51c7d7['shapeModel']['getShapeData'](),_0x13fd70=_0x2fadde['fill'];if(!_0x13fd70||_0x13fd70[_0x19143a(0x281)]!==_0x5354f7[_0x19143a(0x23d)]['PictureFill']||!_0x13fd70[_0x19143a(0x3c2)]){_0x51c7d7[_0x19143a(0x310)](void 0x0);return;}this[_0x19143a(0x200)](_0x51c7d7,_0x2fadde);}['_loadShapePictureFill'](_0x1325cc,_0x37e70a){const _0x377d61=_0x2f3801;var _0x12dc57;let _0x372c12=_0x37e70a[_0x377d61(0x2b1)];if(!_0x372c12||_0x372c12[_0x377d61(0x281)]!==_0x5354f7[_0x377d61(0x23d)]['PictureFill']||!_0x372c12[_0x377d61(0x3c2)])return;let _0x1f1fc=_0x372c12[_0x377d61(0x3c2)],_0x5d6cb9=(_0x12dc57=_0x372c12[_0x377d61(0x3a0)])==null?_0x5354f7[_0x377d61(0x41a)][_0x377d61(0x202)]:_0x12dc57,_0xb04322=this[_0x377d61(0x386)]['getImageSourceCache'](_0x1f1fc,_0x5d6cb9);if(_0xb04322){_0x1325cc[_0x377d61(0x310)](_0xb04322);return;}this[_0x377d61(0x291)](_0x1325cc,_0x1f1fc,_0x5d6cb9);}async['_loadAndSetImage'](_0x2ef2bb,_0x36f027,_0x416e91){const _0x2e115d=_0x2f3801;let _0x903f38;try{if(_0x416e91===_0x5354f7[_0x2e115d(0x41a)]['UUID'])_0x903f38=await this[_0x2e115d(0x386)][_0x2e115d(0x3c4)](_0x36f027);else{if(_0x416e91===_0x5354f7[_0x2e115d(0x41a)]['URL'])try{_0x903f38=await this[_0x2e115d(0x3be)][_0x2e115d(0x3c4)](_0x36f027);}catch{_0x903f38=_0x36f027;}else _0x903f38=_0x36f027;}}catch(_0xb30f36){console[_0x2e115d(0x3cb)](_0x2e115d(0x2e9),_0xb30f36);return;}let _0x484d85=new window['Image']();_0x484d85['onload']=()=>{const _0x35791a=_0x2e115d;this[_0x35791a(0x386)][_0x35791a(0x256)](_0x36f027,_0x416e91,_0x484d85),_0x2ef2bb[_0x35791a(0x310)](_0x484d85);},_0x484d85['onerror']=()=>{const _0x6f627a=_0x2e115d;console[_0x6f627a(0x3cb)](_0x6f627a(0x3ad),_0x36f027);},_0x484d85[_0x2e115d(0x3b9)]=_0x903f38;}};_0x3c69bf=_0x4e2bf9([_0x240031(0x0,_0x291800[_0x2f3801(0x43d)]),_0x240031(0x1,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x555e7b[_0x2f3801(0x24b)])),_0x240031(0x2,(0x0,_0xee7709[_0x2f3801(0x213)])(_0xee7709[_0x2f3801(0x38d)])),_0x240031(0x3,_0xee7709[_0x2f3801(0x35d)]),_0x240031(0x4,_0xee7709['IURLImageService']),_0x240031(0x5,(0x0,_0xee7709['Inject'])(_0x4bbdde)),_0x240031(0x6,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x5a3a75[_0x2f3801(0x396)]))],_0x3c69bf);function _0x38dc29(_0x445643,_0x442075){const _0x134c3d=_0x2f3801;let _0x4ea296=_0x445643;for(;_0x4ea296;){if(_0x442075(_0x4ea296))return _0x4ea296;_0x4ea296=typeof _0x4ea296[_0x134c3d(0x208)]==_0x134c3d(0x237)?_0x4ea296[_0x134c3d(0x208)]():null;}return null;}function _0x13bad5(_0x322ce8){return _0x38dc29(_0x322ce8,_0x29a7ab=>_0x29a7ab instanceof _0x5ba17f);}function _0x4b7641(_0x2c2b09){const _0x5f56bb=_0x2f3801;return(_0x2c2b09==null?void 0x0:_0x2c2b09[_0x5f56bb(0x417)])==null;}let _0x245215=class extends _0xee7709[_0x2f3801(0x3aa)]{constructor(_0x47ebd9,_0x40fd07,_0x163087,_0x26b152,_0x136554){const _0x4dbb23=_0x2f3801;super(),this[_0x4dbb23(0x453)]=_0x47ebd9,this[_0x4dbb23(0x306)]=_0x40fd07,this['_drawingManagerService']=_0x163087,this[_0x4dbb23(0x2ed)]=_0x26b152,this[_0x4dbb23(0x2da)]=_0x136554,_0x31c38d(this,'_lastEditingShapeKey',null),this['_initEvents'](),this[_0x4dbb23(0x235)](),this['_initEditingParams']();}['_initEvents'](){const _0x70132d=_0x2f3801;let {scene:_0x2ebf42}=this[_0x70132d(0x453)];this['disposeWithMe'](_0x2ebf42[_0x70132d(0x2c6)][_0x70132d(0x434)](_0x1ed0fc=>{const _0x19a16e=_0x70132d;var _0xdbe6ac;let {offsetX:_0x227831,offsetY:_0x1ad722}=_0x1ed0fc,_0x187ef4=_0x2989a1[_0x19a16e(0x26f)]['FromArray']([_0x227831,_0x1ad722]),_0x1831f6=(_0xdbe6ac=_0x13bad5(_0x2ebf42['pick'](_0x187ef4)))==null?this[_0x19a16e(0x1ea)](_0x187ef4):_0xdbe6ac;if(_0x1831f6){let _0x529dbf=this[_0x19a16e(0x2da)]['getShapeModel'](_0x1831f6[_0x19a16e(0x3e9)],_0x1831f6[_0x19a16e(0x29c)],_0x1831f6[_0x19a16e(0x3d8)]);if(!_0x529dbf||(0x0,_0x5354f7[_0x19a16e(0x38b)])(_0x529dbf[_0x19a16e(0x3e6)]())||!_0x4b7641(_0x529dbf[_0x19a16e(0x2a9)]()))return;this['_shapeTextEditingService'][_0x19a16e(0x2b8)]({'visible':!0x0,'unitId':_0x1831f6[_0x19a16e(0x3e9)],'subUnitId':_0x1831f6[_0x19a16e(0x29c)],'shapeId':_0x1831f6['shapeId'],'shapeKey':_0x1831f6[_0x19a16e(0x2fd)]});}}));}[_0x2f3801(0x1ea)](_0x24b1df){const _0x492432=_0x2f3801;let {scene:_0x1a193c}=this['_context'],_0x517c4f=this[_0x492432(0x33a)][_0x492432(0x3e5)]()[_0x492432(0x38c)](_0x2afbff=>_0x1a193c[_0x492432(0x286)]((0x0,_0x291800[_0x492432(0x2f8)])(_0x2afbff)))[_0x492432(0x24f)](_0x552f48=>_0x552f48 instanceof _0x5ba17f&&_0x552f48[_0x492432(0x41c)](_0x24b1df));return _0x517c4f==null?null:_0x517c4f;}[_0x2f3801(0x235)](){const _0x447740=_0x2f3801;this[_0x447740(0x2e0)](this[_0x447740(0x33a)][_0x447740(0x30d)][_0x447740(0x459)](_0x313dad=>{const _0xbbd024=_0x447740;if(_0x313dad[_0xbbd024(0x275)]===0x1){let _0x49634d=_0x313dad[0x0],_0x4acddf=this[_0xbbd024(0x33a)][_0xbbd024(0x383)](_0x49634d);if((_0x4acddf==null?void 0x0:_0x4acddf['drawingType'])===_0xee7709[_0xbbd024(0x1d4)]['DRAWING_SHAPE']){let _0x3043e7=this[_0xbbd024(0x306)][_0xbbd024(0x1c5)]();if((_0x3043e7==null?void 0x0:_0x3043e7[_0xbbd024(0x3d8)])===_0x49634d[_0xbbd024(0x394)]&&_0x3043e7['visible'])return;(0x0,_0x5354f7['isConnectorShape'])(this[_0xbbd024(0x2da)][_0xbbd024(0x3e6)](_0x49634d[_0xbbd024(0x3e9)],_0x49634d[_0xbbd024(0x29c)],_0x49634d['drawingId']))&&this['_shapeTextEditingService'][_0xbbd024(0x2b8)](null);}else this[_0xbbd024(0x306)][_0xbbd024(0x1c5)]()&&(this[_0xbbd024(0x306)][_0xbbd024(0x2ad)](!0x0),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));}else this[_0xbbd024(0x306)]['getEditing']()&&(this[_0xbbd024(0x306)][_0xbbd024(0x2ad)](!0x0),requestAnimationFrame(()=>{const _0x4820df=_0xbbd024;this[_0x4820df(0x306)][_0x4820df(0x2b8)](null);}));})),this[_0x447740(0x2e0)](this[_0x447740(0x33a)]['remove$'][_0x447740(0x459)](_0x4ff05f=>{const _0x411034=_0x447740;let _0x3f4456=this[_0x411034(0x306)]['getEditing']();_0x3f4456&&_0x4ff05f[_0x411034(0x231)](_0x5abdbd=>_0x5abdbd['drawingId']===_0x3f4456['shapeId'])&&this[_0x411034(0x306)]['setEditing'](null);}));}['_initEditingParams'](){const _0x3c03d9=_0x2f3801;this[_0x3c03d9(0x2e0)](this['_shapeTextEditingService']['editingParams$'][_0x3c03d9(0x459)](_0x5d028a=>{const _0x29bc44=_0x3c03d9;let {scene:_0x47855b}=this['_context'];if(this[_0x29bc44(0x2d9)]){let _0x517a10=_0x47855b['getObjectIncludeInGroup'](this[_0x29bc44(0x2d9)]);_0x517a10&&_0x517a10[_0x29bc44(0x2b8)](!0x1);}if(_0x5d028a){let _0x5b862f=!!_0x5d028a[_0x29bc44(0x315)],_0x4b2fc0=_0x47855b['getObjectIncludeInGroup'](_0x5d028a[_0x29bc44(0x1d6)]);_0x4b2fc0&&(_0x4b2fc0[_0x29bc44(0x2b8)](_0x5b862f),this[_0x29bc44(0x2d9)]=_0x5d028a[_0x29bc44(0x1d6)]),this[_0x29bc44(0x2ed)][_0x29bc44(0x27e)](_0xee7709[_0x29bc44(0x295)],_0x5b862f);}else this['_lastEditingShapeKey']=null,this[_0x29bc44(0x2ed)][_0x29bc44(0x27e)](_0xee7709['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};_0x245215=_0x4e2bf9([_0x240031(0x1,(0x0,_0xee7709['Inject'])(_0x4bbdde)),_0x240031(0x2,_0x291800[_0x2f3801(0x43d)]),_0x240031(0x3,_0xee7709[_0x2f3801(0x349)]),_0x240031(0x4,(0x0,_0xee7709['Inject'])(_0x555e7b['DocsShapeService']))],_0x245215);let _0x132fee=class extends _0x3a322f['ShapeTextFloatMenuRenderControllerBase']{constructor(_0x167a8b,_0x3f33e1,_0x12579c,_0x532749){super(_0x167a8b,_0x3f33e1,_0x12579c,_0x532749,{'componentKey':_0x143504,'editorUnitId':_0xaaddeb});}};_0x132fee=_0x4e2bf9([_0x240031(0x1,(0x0,_0xee7709['Inject'])(_0x458dc7[_0x2f3801(0x450)])),_0x240031(0x2,(0x0,_0xee7709['Inject'])(_0x4e6713[_0x2f3801(0x408)])),_0x240031(0x3,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x4e6713[_0x2f3801(0x297)]))],_0x132fee);let _0x5f389f=class extends _0xee7709[_0x2f3801(0x3aa)]{constructor(_0x191c3f,_0x41a10e,_0xaef9df,_0x3954f6){const _0x145cc4=_0x2f3801;super(),this['_commandService']=_0x191c3f,this[_0x145cc4(0x3a3)]=_0x41a10e,this['_drawingManagerService']=_0xaef9df,this[_0x145cc4(0x28c)]=_0x3954f6,this[_0x145cc4(0x2a1)]();}[_0x2f3801(0x2a1)](){const _0x13379f=_0x2f3801;this['disposeWithMe'](this[_0x13379f(0x33a)]['add$']['subscribe'](_0x503476=>this[_0x13379f(0x21a)](_0x503476))),this[_0x13379f(0x2e0)](this[_0x13379f(0x33a)][_0x13379f(0x268)]['subscribe'](_0x13fab8=>{const _0x330656=_0x13379f;_0x13fab8[_0x330656(0x323)](_0x16da74=>this[_0x330656(0x229)](_0x16da74));})),this[_0x13379f(0x2e0)](this[_0x13379f(0x26b)][_0x13379f(0x301)](_0x4ffda0=>{const _0x4fdc5e=_0x13379f;if(_0x4ffda0['id']!==_0x555e7b[_0x4fdc5e(0x418)]['id'])return;let {unitId:_0x121202,shapeId:_0x2701c6}=_0x4ffda0[_0x4fdc5e(0x239)];this['_refreshShapeData']({'unitId':_0x121202,'subUnitId':_0x121202,'drawingId':_0x2701c6});}));}[_0x2f3801(0x21a)](_0x2634fc){const _0x53ee8=_0x2f3801;_0x2634fc[_0x53ee8(0x323)](_0x463ec6=>{const _0x2ec932=_0x53ee8;var _0x2a7906;let _0x1352fb=this[_0x2ec932(0x3dc)](_0x463ec6[_0x2ec932(0x3e9)]);if(!_0x1352fb)return;let _0x2569d1=this[_0x2ec932(0x33a)][_0x2ec932(0x383)](_0x463ec6);(_0x2569d1==null?void 0x0:_0x2569d1[_0x2ec932(0x27f)])===_0xee7709[_0x2ec932(0x1d4)]['DRAWING_SHAPE']&&((0x0,_0x5354f7[_0x2ec932(0x38b)])((_0x2a7906=_0x2569d1[_0x2ec932(0x304)])==null?void 0x0:_0x2a7906[_0x2ec932(0x35e)])&&_0x2569d1[_0x2ec932(0x3f8)]&&(_0x2569d1['transform']={..._0x2569d1[_0x2ec932(0x3f8)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}),this[_0x2ec932(0x28c)][_0x2ec932(0x25a)](_0x2569d1,_0x1352fb[_0x2ec932(0x3de)]));});}[_0x2f3801(0x229)](_0x1f9fc2){const _0x155711=_0x2f3801;let _0xea1ea5=this['_drawingManagerService'][_0x155711(0x383)](_0x1f9fc2);if((_0xea1ea5==null?void 0x0:_0xea1ea5[_0x155711(0x27f)])!==_0xee7709[_0x155711(0x1d4)][_0x155711(0x427)])return;let _0xbcf16=this[_0x155711(0x3dc)](_0x1f9fc2[_0x155711(0x3e9)]);if(!_0xbcf16||_0xea1ea5['transform']==null)return;let _0x2078bd=(0x0,_0x291800['getDrawingShapeKeyByDrawingSearch'])(_0x1f9fc2),_0x2b2582=_0xbcf16[_0x155711(0x3de)][_0x155711(0x286)](_0x2078bd);_0x2b2582&&(_0x2b2582[_0x155711(0x455)](_0xea1ea5[_0x155711(0x376)]),_0x2b2582['setPrstGeom'](_0xea1ea5['prstGeom']),_0x2b2582[_0x155711(0x305)](!0x0));}[_0x2f3801(0x3d3)](_0x55bb32){const _0x394dcc=_0x2f3801;let _0x181c59=this[_0x394dcc(0x3dc)](_0x55bb32[_0x394dcc(0x3e9)]);if(!_0x181c59)return;let _0x3a3afa=(0x0,_0x291800['getDrawingShapeKeyByDrawingSearch'])(_0x55bb32),_0x5c1089=_0x181c59[_0x394dcc(0x3de)][_0x394dcc(0x286)](_0x3a3afa);_0x5c1089&&(this[_0x394dcc(0x28c)]['refreshShapeFillImage'](_0x5c1089),this[_0x394dcc(0x28c)][_0x394dcc(0x3a6)](_0x5c1089,{'unitId':_0x55bb32[_0x394dcc(0x3e9)],'subUnitId':_0x55bb32[_0x394dcc(0x29c)],'shapeId':_0x55bb32[_0x394dcc(0x394)]}),_0x5c1089[_0x394dcc(0x305)](!0x0));}[_0x2f3801(0x3dc)](_0x1ccce0){const _0x4c944c=_0x2f3801;if(_0x1ccce0==null)return null;let _0x5543aa=this['_renderManagerService'][_0x4c944c(0x1fb)](_0x1ccce0),_0x1dd6bb=_0x5543aa==null?void 0x0:_0x5543aa[_0x4c944c(0x3de)];return _0x1dd6bb==null?null:{'scene':_0x1dd6bb};}};_0x5f389f=_0x4e2bf9([_0x240031(0x0,_0xee7709['ICommandService']),_0x240031(0x1,_0x2989a1['IRenderManagerService']),_0x240031(0x2,_0x291800[_0x2f3801(0x43d)]),_0x240031(0x3,(0x0,_0xee7709['Inject'])(_0x3c69bf))],_0x5f389f);let _0xe92fb0=class extends _0xee7709[_0x2f3801(0x3aa)]{constructor(_0x2ae88e,_0x3ef377,_0x590741,_0xf88c95,_0x47d7cb,_0x3550cd,_0xbc3efd,_0x572058,_0x3211c4,_0x4fbd5d,_0x40dfa1){const _0x1ef996=_0x2f3801;super(),this[_0x1ef996(0x378)]=_0x2ae88e,this['_sidebarService']=_0x3ef377,this[_0x1ef996(0x2cd)]=_0x590741,this[_0x1ef996(0x2da)]=_0xf88c95,this['_localeService']=_0x47d7cb,this['_commandService']=_0x3550cd,this['_drawingManagerService']=_0xbc3efd,this[_0x1ef996(0x276)]=_0x572058,this[_0x1ef996(0x3a3)]=_0x3211c4,this[_0x1ef996(0x2ed)]=_0x4fbd5d,this[_0x1ef996(0x306)]=_0x40dfa1,_0x31c38d(this,_0x1ef996(0x34c),null),_0x31c38d(this,_0x1ef996(0x40a),null),_0x31c38d(this,_0x1ef996(0x230),!0x1),_0x31c38d(this,_0x1ef996(0x2a7),0x0),_0x31c38d(this,'_initializedShapePopupMenu',new Set()),_0x31c38d(this,'_disposePopups',[]),this[_0x1ef996(0x423)](),this[_0x1ef996(0x2e0)](this[_0x1ef996(0x378)][_0x1ef996(0x375)](_0xee7709['UniverInstanceType'][_0x1ef996(0x33f)])[_0x1ef996(0x459)](_0x3fc593=>{const _0x35b632=_0x1ef996;if(!_0x3fc593){var _0x37e222;(_0x37e222=this['_sidebarDisposable'])==null||_0x37e222[_0x35b632(0x41b)]();return;}this[_0x35b632(0x20f)](_0x3fc593);})),this[_0x1ef996(0x265)](),this[_0x1ef996(0x2c9)](),this[_0x1ef996(0x2e0)](this[_0x1ef996(0x306)][_0x1ef996(0x259)][_0x1ef996(0x459)](_0x1948e5=>{const _0x152f0c=_0x1ef996;_0x1948e5&&this[_0x152f0c(0x3a1)]();}));}[_0x2f3801(0x423)](){const _0x245efd=_0x2f3801;this[_0x245efd(0x2cd)][_0x245efd(0x328)](_0x307980);}['_initShapePopupMenu'](){const _0x29163b=_0x2f3801;this[_0x29163b(0x378)]['getAllUnitsForType'](_0xee7709[_0x29163b(0x3f9)][_0x29163b(0x33f)])[_0x29163b(0x323)](_0x2a4cec=>this['_createShapePopupMenu'](_0x2a4cec));}[_0x2f3801(0x377)](_0x58eca9,_0x2b045f,_0xc538fd,_0x17d030){const _0x137180=_0x2f3801;return[{'label':_0x137180(0x37b),'index':0x0,'commandId':_0x5f37a8['id'],'commandParams':{'unitId':_0x58eca9,'subUnitId':_0x2b045f,'drawingId':_0xc538fd},'disable':_0x17d030===_0xee7709[_0x137180(0x1d4)][_0x137180(0x2d7)]},{'label':'docs-shape-ui.deleteShape','index':0x1,'commandId':_0x2949a0[_0x137180(0x1f3)]['id'],'commandParams':{'unitId':_0x58eca9,'drawings':[{'unitId':_0x58eca9,'subUnitId':_0x2b045f,'drawingId':_0xc538fd}]},'disable':!0x1},{'label':_0x137180(0x1f7),'index':0x2,'commandId':_0x2b9182['id'],'commandParams':{'unitId':_0x58eca9,'subUnitId':_0x2b045f,'drawingId':_0xc538fd},'disable':!0x1}];}['_getShapeInfo'](_0x58c04d,_0x45663b,_0x3932b2){const _0x4bc6b9=_0x2f3801;let _0x44272b=this['_docsShapeService'][_0x4bc6b9(0x3f5)](_0x58c04d,_0x45663b,_0x3932b2),_0x43f6fc=this['_docsShapeService'][_0x4bc6b9(0x334)](_0x58c04d,_0x45663b,_0x3932b2);return _0x44272b!==void 0x0&&_0x43f6fc!==void 0x0?{'shapeData':_0x43f6fc,'shapeId':_0x3932b2,'shapeType':_0x44272b,'unitId':_0x58c04d,'subUnitId':_0x45663b,'version':this[_0x4bc6b9(0x2a7)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x5af6f5){const _0x5cf4b1=_0x2f3801;if(!_0x5af6f5)return;let _0x46c5bd=_0x5af6f5[_0x5cf4b1(0x426)]();this['_renderManagerService']['has'](_0x46c5bd)&&!this[_0x5cf4b1(0x400)][_0x5cf4b1(0x1e5)](_0x46c5bd)&&(this[_0x5cf4b1(0x2a5)](_0x46c5bd),this[_0x5cf4b1(0x400)][_0x5cf4b1(0x37d)](_0x46c5bd));}[_0x2f3801(0x3a1)](){const _0x36ff3d=_0x2f3801;this['_disposePopups'][_0x36ff3d(0x323)](_0x1edc8f=>_0x1edc8f[_0x36ff3d(0x41b)]()),this[_0x36ff3d(0x1c3)][_0x36ff3d(0x275)]=0x0;}['_popupMenuListener'](_0x52bbee){const _0x2b51b2=_0x2f3801;var _0x341f75;let _0x10d759=(_0x341f75=this[_0x2b51b2(0x3a3)][_0x2b51b2(0x1fb)](_0x52bbee))==null?void 0x0:_0x341f75[_0x2b51b2(0x3de)],_0x5cde2f=_0x10d759==null?void 0x0:_0x10d759[_0x2b51b2(0x1d2)]();!_0x10d759||!_0x5cde2f||(this[_0x2b51b2(0x2e0)](_0x5cde2f[_0x2b51b2(0x2e1)][_0x2b51b2(0x459)](()=>{const _0x2e895b=_0x2b51b2;let _0x583b7a=_0x5cde2f['getSelectedObjectMap']();if(this[_0x2e895b(0x3a1)](),this[_0x2e895b(0x230)]||_0x583b7a[_0x2e895b(0x1f2)]>0x1)return;let _0x529521=_0x583b7a['values']()['next']()['value'];if(!_0x529521)return;let _0x4726d6=this[_0x2e895b(0x33a)]['getDrawingOKey'](_0x529521['oKey']);if(!_0x4726d6||_0x4726d6[_0x2e895b(0x27f)]!==_0xee7709[_0x2e895b(0x1d4)]['DRAWING_SHAPE'])return;let {unitId:_0x4c3387,subUnitId:_0x1589df,drawingId:_0x5e76c2,drawingType:_0x573009}=_0x4726d6,_0xd7578a=this[_0x2e895b(0x30b)](_0x4c3387,_0x1589df,_0x5e76c2);if(!_0xd7578a)return;let _0x52f789=this[_0x2e895b(0x276)][_0x2e895b(0x311)](_0x529521,{'componentKey':_0x1ca774,'direction':_0x2e895b(0x21b),'offset':[0x0,_0x3a322f[_0x2e895b(0x372)]],'extraProps':{'unitId':_0x4c3387,'subUnitId':_0x1589df,'drawingId':_0x5e76c2,'drawingType':_0x573009,'shapeType':_0xd7578a[_0x2e895b(0x35e)],'shapeData':_0xd7578a[_0x2e895b(0x21c)]}},_0x4c3387);this[_0x2e895b(0x1c3)]['push'](this[_0x2e895b(0x2e0)](_0x52f789)),this[_0x2e895b(0x33a)]['getFocusDrawings']()['find'](_0x58612e=>_0x58612e[_0x2e895b(0x3e9)]===_0x4c3387&&_0x58612e[_0x2e895b(0x29c)]===_0x1589df&&_0x58612e[_0x2e895b(0x394)]===_0x5e76c2)||this[_0x2e895b(0x33a)][_0x2e895b(0x365)]([{'unitId':_0x4c3387,'subUnitId':_0x1589df,'drawingId':_0x5e76c2}]);})),this['disposeWithMe'](_0x5cde2f[_0x2b51b2(0x329)][_0x2b51b2(0x459)](()=>{const _0x6ad2e3=_0x2b51b2;this['_clearPopups'](),this[_0x6ad2e3(0x2ed)][_0x6ad2e3(0x27e)](_0xee7709[_0x6ad2e3(0x1e7)],!0x1),this[_0x6ad2e3(0x33a)][_0x6ad2e3(0x365)](null);})),this[_0x2b51b2(0x2e0)](_0x5cde2f['changing$'][_0x2b51b2(0x459)](()=>{const _0x306dd0=_0x2b51b2;this[_0x306dd0(0x3a1)]();})),this['disposeWithMe'](_0x5cde2f[_0x2b51b2(0x28a)]['subscribe'](()=>{const _0x105500=_0x2b51b2;this[_0x105500(0x3a1)]();})));}['_registerOperations'](){const _0x55ae86=_0x2f3801;this[_0x55ae86(0x2e0)](this[_0x55ae86(0x26b)]['onCommandExecuted'](_0x86bd13=>{const _0x4416f2=_0x55ae86;if(_0x86bd13['id']===_0x5f37a8['id']){let {unitId:_0x372ce7,subUnitId:_0x47641b,drawingId:_0x57e744}=_0x86bd13[_0x4416f2(0x239)];this[_0x4416f2(0x2a7)]+=0x1,this['_activeShapeInfo']=this[_0x4416f2(0x30b)](_0x372ce7,_0x47641b,_0x57e744),this['_clearPopups'](),this['_openShapeEditPanel']();}if(_0x86bd13['id']===_0x2b9182['id']&&(this[_0x4416f2(0x40a)]=null,this[_0x4416f2(0x24a)]()),_0x86bd13['id']===_0x555e7b['UpdateDocShapeDataMutation']['id']){let {unitId:_0xe26493,shapeId:_0x13e56d}=_0x86bd13[_0x4416f2(0x239)];if(this[_0x4416f2(0x40a)]&&this[_0x4416f2(0x40a)][_0x4416f2(0x3d8)]===_0x13e56d){let _0x3e02fb=this['_getShapeInfo'](_0xe26493,this[_0x4416f2(0x40a)][_0x4416f2(0x29c)],_0x13e56d);_0x3e02fb&&(this[_0x4416f2(0x2a7)]+=0x1,_0x3e02fb['version']=this['_shapeEditPanelVersion'],this[_0x4416f2(0x40a)]=_0x3e02fb,this[_0x4416f2(0x230)]&&this[_0x4416f2(0x393)]());}}})),this[_0x55ae86(0x2e0)](this[_0x55ae86(0x33a)][_0x55ae86(0x30d)][_0x55ae86(0x459)](_0x2682a6=>{const _0x4391db=_0x55ae86;if(this[_0x4391db(0x230)]===!0x1)return;if(_0x2682a6[_0x4391db(0x275)]===0x0){this[_0x4391db(0x40a)]=null,this['_closeShapeEditPanel']();return;}if(_0x2682a6[_0x4391db(0x275)]===0x1&&_0x2682a6[0x0]['drawingType']===_0xee7709['DrawingTypeEnum']['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x2682a6[0x0][_0x4391db(0x3e9)],_0x2682a6[0x0][_0x4391db(0x29c)],_0x2682a6[0x0]['drawingId']),this[_0x4391db(0x40a)])){this['_openShapeEditPanel']();return;}let _0x1eb72e=_0x2682a6[_0x4391db(0x294)](_0x3454cd=>_0x3454cd['drawingType']===_0xee7709[_0x4391db(0x1d4)][_0x4391db(0x427)]);if(_0x2682a6[_0x4391db(0x275)]>0x1&&_0x1eb72e[_0x4391db(0x275)]===_0x2682a6['length']){if(this[_0x4391db(0x2a7)]+=0x1,this[_0x4391db(0x40a)]=this[_0x4391db(0x30b)](_0x2682a6[0x0][_0x4391db(0x3e9)],_0x2682a6[0x0][_0x4391db(0x29c)],_0x2682a6[0x0]['drawingId']),this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{if(this[_0x4391db(0x2a7)]+=0x1,this['_activeShapeInfo']=this[_0x4391db(0x30b)](_0x2682a6[0x0]['unitId'],_0x2682a6[0x0][_0x4391db(0x29c)],_0x2682a6[0x0][_0x4391db(0x394)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x4391db(0x221)]=!0x0,this[_0x4391db(0x393)]();return;}}this[_0x4391db(0x24a)]();}));}[_0x2f3801(0x393)](){const _0x59b976=_0x2f3801;this[_0x59b976(0x40a)]&&(this[_0x59b976(0x34c)]=this[_0x59b976(0x267)]['open']({'id':_0x11b824,'header':{'title':this[_0x59b976(0x41e)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':_0x11b824,...this['_activeShapeInfo']},'onClose':()=>{const _0x56f3ff=_0x59b976;this[_0x56f3ff(0x33a)][_0x56f3ff(0x365)](null),this[_0x56f3ff(0x2ed)][_0x56f3ff(0x27e)](_0xee7709['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x56f3ff(0x34c)]=null;}}),this[_0x59b976(0x230)]=!0x0);}[_0x2f3801(0x24a)](){const _0xa252=_0x2f3801;this[_0xa252(0x230)]=!0x1,this[_0xa252(0x267)][_0xa252(0x2c4)](_0x11b824),this[_0xa252(0x34c)]=null,this['_contextService'][_0xa252(0x27e)](_0xee7709['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0xa252(0x33a)][_0xa252(0x365)](null);}};_0xe92fb0=_0x4e2bf9([_0x240031(0x0,_0xee7709[_0x2f3801(0x39d)]),_0x240031(0x1,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x517280[_0x2f3801(0x2ec)])),_0x240031(0x2,_0x517280['IMenuManagerService']),_0x240031(0x3,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x555e7b[_0x2f3801(0x24b)])),_0x240031(0x4,(0x0,_0xee7709[_0x2f3801(0x213)])(_0xee7709[_0x2f3801(0x38d)])),_0x240031(0x5,_0xee7709[_0x2f3801(0x29d)]),_0x240031(0x6,_0x291800[_0x2f3801(0x43d)]),_0x240031(0x7,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x4e6713[_0x2f3801(0x408)])),_0x240031(0x8,_0x2989a1[_0x2f3801(0x2cf)]),_0x240031(0x9,_0xee7709[_0x2f3801(0x349)]),_0x240031(0xa,(0x0,_0xee7709[_0x2f3801(0x213)])(_0x4bbdde))],_0xe92fb0);let _0x39c24e=class extends _0xee7709[_0x2f3801(0x336)]{constructor(_0x9abde8=_0x25c95e,_0x3917d6,_0x58b88d,_0x5bad30,_0x3dfd3a){const _0x5d00e0=_0x2f3801;super(),this['_config']=_0x9abde8,this[_0x5d00e0(0x241)]=_0x3917d6,this[_0x5d00e0(0x26b)]=_0x58b88d,this[_0x5d00e0(0x42f)]=_0x5bad30,this[_0x5d00e0(0x3a3)]=_0x3dfd3a;let {menu:_0x3af12b,..._0x2c866e}=(0x0,_0xee7709[_0x5d00e0(0x21d)])({},_0x25c95e,this[_0x5d00e0(0x227)]);_0x3af12b&&this[_0x5d00e0(0x42f)][_0x5d00e0(0x2e4)](_0x5d00e0(0x29e),_0x3af12b,{'merge':!0x0}),this['_configService']['setConfig'](_0x5d00e0(0x32b),_0x2c866e),this[_0x5d00e0(0x363)]();}[_0x2f3801(0x2e2)](){const _0xc7eb11=_0x2f3801;this[_0xc7eb11(0x241)]['add']([_0x2ee0a8]),this[_0xc7eb11(0x241)][_0xc7eb11(0x44b)](_0x2ee0a8),(0x0,_0xee7709['registerDependencies'])(this['_injector'],[[_0xe92fb0],[_0x5f389f],[_0x3c69bf],[_0x2df3d2],[_0x25b37f],[_0x1644e1],[_0x4bbdde]]),this[_0xc7eb11(0x261)]();}[_0x2f3801(0x296)](){const _0x2a207a=_0x2f3801;this[_0x2a207a(0x3a3)][_0x2a207a(0x350)](_0xee7709[_0x2a207a(0x3f9)][_0x2a207a(0x33f)],[_0x2df3d2]),this[_0x2a207a(0x3a3)][_0x2a207a(0x350)](_0xee7709['UniverInstanceType'][_0x2a207a(0x33f)],[_0x245215]),this[_0x2a207a(0x3a3)]['registerRenderModule'](_0xee7709['UniverInstanceType']['UNIVER_DOC'],[_0x132fee]),(0x0,_0xee7709['touchDependencies'])(this[_0x2a207a(0x241)],[[_0xe92fb0],[_0x5f389f],[_0x3c69bf],[_0x25b37f],[_0x1644e1],[_0x4bbdde]]);}[_0x2f3801(0x363)](){const _0xb9622d=_0x2f3801;[_0x58d64e,_0x2b9182,_0x5f37a8,_0x16a3a6][_0xb9622d(0x323)](_0x448a04=>this[_0xb9622d(0x2e0)](this[_0xb9622d(0x26b)][_0xb9622d(0x282)](_0x448a04)));}[_0x2f3801(0x261)](){const _0x2dddaf=_0x2f3801;let _0x595005=this[_0x2dddaf(0x241)],_0x54c5b2=_0x595005[_0x2dddaf(0x44b)](_0x517280[_0x2dddaf(0x395)]);this[_0x2dddaf(0x2e0)](_0x54c5b2[_0x2dddaf(0x44f)](_0x517280['BuiltInUIPart'][_0x2dddaf(0x1dd)],()=>(0x0,_0x517280[_0x2dddaf(0x343)])(_0x27a5c4,_0x595005)));}};_0x31c38d(_0x39c24e,'type',_0xee7709[_0x2f3801(0x3f9)][_0x2f3801(0x33f)]),_0x31c38d(_0x39c24e,_0x2f3801(0x2b3),_0x2f3801(0x288)),_0x31c38d(_0x39c24e,_0x2f3801(0x379),_0x21cf84),_0x31c38d(_0x39c24e,'version',_0x435074),_0x39c24e=_0x4e2bf9([(0x0,_0xee7709[_0x2f3801(0x438)])(_0x28da5a[_0x2f3801(0x313)],_0x458dc7[_0x2f3801(0x3fc)],_0x291800[_0x2f3801(0x238)],_0x5b086f['UniverDrawingUIPlugin'],_0x2989a1[_0x2f3801(0x42d)],_0x4e6713[_0x2f3801(0x2ea)],_0x517280['UniverUIPlugin'],_0x5a3a75[_0x2f3801(0x458)],_0x5830e8[_0x2f3801(0x42e)],_0x555e7b[_0x2f3801(0x212)],_0x3a322f[_0x2f3801(0x3c6)]),_0x240031(0x1,(0x0,_0xee7709['Inject'])(_0xee7709[_0x2f3801(0x439)])),_0x240031(0x2,_0xee7709[_0x2f3801(0x29d)]),_0x240031(0x3,_0xee7709[_0x2f3801(0x37f)]),_0x240031(0x4,_0x2989a1[_0x2f3801(0x2cf)])],_0x39c24e),_0x12a5c6[_0x2f3801(0x43e)]=_0x307980,Object['defineProperty'](_0x12a5c6,_0x2f3801(0x284),{'enumerable':!0x0,'get':function(){return _0x39c24e;}});}));
1
+ function _0x3be8(_0x25c090,_0x5085cf){_0x25c090=_0x25c090-0x13a;const _0x18941a=_0x1894();let _0x3be876=_0x18941a[_0x25c090];return _0x3be876;}function _0x1894(){const _0x11b321=['round','Rect','9125676hgwFFA','ShapeFillEnum','docs-shape-ui.objectListPanel.open','IConfigService','startIndex','sheet.image-clip.shape-picker.component','@univerjs-pro/docs-shape-ui','_baseShapeLeft','isConnectorShape','prstGeom','_closeShapeEditPanel','registerComponent','_activeShapeInfo','merge','dispose','mask','getShapeData','drawingId','useEffect','setPrstGeom','Large','clip','clear','adjHandleFill','subUnitId','getMatrix','unitId','DocDrawingTextWrap','_initUIPart','paragraphId','useFormulaShapeToolbar','get','UniverDocsDrawing','jsx','getOwnPropertyDescriptor','WRAP_SQUARE','getSelfOrHeaderFooterModel','setCursor','UniverCore','type','getDrawingPoints','_univerInstanceService','doc.shape.object-list.panel','getDrawingSearch','fontSize','endOffset','offsetY','isHorizontal','extraProps','_initSelection','top','canvas','INSERT_BELLOW_MENU_ID','isRenderLinePointsMode','map','IImageIoService','_imageIoService','length','m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','_registerOperations','_loadShapePictureFill','height','update$','getParagraphContentStartOffset','_drawRichText','getActiveViewportByCoord','onSavingEditorData$','DRAWING_IMAGE','@univerjs-pro/shape-editor','wrapStrategy','value','subscribeEvent','amd','forEach','ShapeModel','_updateShapeAdjustControls','setFormulaPresentation','visible','transformVector2SceneCoord','save','srcRect','_adjustPointObjects','packageName','params','_shapeTextEditingService','title','UniverDocsUIPlugin','SetDrawingSelectedOperation','colorChannel1','complete','onload','_transform','_activeAdjustInfo','localeService','_sidebarDisposable','composeMatrix','MenuItemType','disableShapeOption','CROSSHAIR','_adjHandlerPointerUp','_drawRichTextLayer','Shape','getDrawingOKey','setShapeProps','ShapeLineTypeEnum','isRender','BehaviorSubject','DOC_PARAGRAPH_T_INSERT_MENU_ID','ShapeEditPanel','8231720HMRWvN','image','tag','getAdjustValueByName','getShapeModel','_activeShapeId','isDrawingObject','_initEvents','rect','getState','_adjHandlerPointerMove','fill','onerror','_unitId','_init','IMenuManagerService','editingParams$','ShapePickerPanel','docs-shape-ui.config','idSuffix','.below','_getShapeInfo','_commandService','DOCS_COMPONENT_MAIN_LAYER_INDEX','_contextService','doc','ShapeDefaultConfig','dataModel','setOnSavingEditorData','setPresentation','DocParagraphMenuService','isEditing','_renderWithCache','VerticalAlign','focus$','debounceRefreshControls','UniverShapeEditorPlugin','DRAWING_OBJECT_LAYER_INDEX','stroke','SHAPE_EDITOR_TRANSFORMER_CONFIG','registerDependencies','clone','doc.shape.picker.component','shape-text-','DRAWING_DOM','ContextMenuGroup','UNIVER_SHEET','docs-shape-ui.crop.shape','getDrawingShapeKeyByDrawingSearch','OFFSET','docs-shape-ui.textWrap.topAndBottom','getObjectIncludeInGroup','makeDirty','shouldAllowShapeTextEditorHostSizeShrink','Medium','displayName','DEFAULT_DOC_SHAPE_HEIGHT','UpdateDrawingDocTransformCommand','Path','_initCommands','resize','description','layoutType','_createShapePopupMenu','enableObjectsEvent','getShapeType','onPointerDown$','has','toPrimitive','restore','clearActiveDrawingObjects','ShapeTextFloatMenuRenderControllerBase','clipTop','getAutoFitPresentations','constructor','UniverDrawingUIPlugin','react/jsx-runtime','drawWith','_setTransForm','next','docs-shape-ui.formatShape','SolidLine','popup','UniverDrawing','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','IUIPartsService','resolveShapeTextDocumentRenderLayout','_initializedShapePopupMenu','UpdateDocShapeDataCommand','http://www.w3.org/2000/svg','doc.shape.text.float-menu','UniverInstanceType','@univerjs-pro/docs-shape','UniverDocsPlugin','hidden','6494700LAEqqb','updateDocumentDataMargin','DrawingTypeEnum','@univerjs/docs-drawing','resolveFormulaShapeAutoFitSize','TRUE','formulaBinding','panel','drawFormulaShapeAnimationLayers','formulaPresentation','getDrawingTypeNameKey','registerClipDelegate','getDrawingByParam','changeEnd$','call','replace','LocaleService','Arrow','ShapeArrowTypeEnum','set','_draw','pluginName','_baseShapeTop','DocsShapeService','_popupMenuListener','_openShapeEditPanel','_docDrawingShapeRenderController','_docCanvasPopManagerService','_urlImageService','isInGroup','ShapeIcon','flipX','SELECTOR','getBody','contentHeight','behindText','iterator','register','syncExecuteCommand','render','animationEnabled','onCommandExecuted','DRAWING_SHAPE','completeEditing','setContextValue','transformByState','extensionGroups','3864152hnAhrC','GROUP','segmentId','getActiveTextRange','_config','random','_isShouldShowDrawingShapeAdjust','_disposePopups','currentColor','ShapeTextEditorContainer','defs','COMMAND','shapeText','registerRenderModule','attachPopupToObject','_clipService','below','plainShapeTextToDocumentData','setSrcRect','isRichText','assign','_adjName','FOCUSING_COMMON_DRAWINGS','PictureFill','shapeModel','applyPoint','TOP','values','DocShapeAnchorPosition','selectable','currentAdjustValues','useMemo','getObjectListPanelLabels','INLINE','Image','DocsShapeUIMenuSchema','getDrawingOrder','touchDependencies','_clearShapeAdjustControls','@univerjs/docs-ui','width','DocumentViewModel','create','object-layers-icon','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','connectInjector','_onSavingEditorData$','current','forward','getUnit','angle','UniverRenderEnginePlugin','IContextService','UniverDocsDrawingUi','useDependency','UpdateDocDrawingWrappingStyleCommand','_baseShapeHeight','indexOf','ArrangeTypeEnum','memo','doc.shape.edit.panel','RemoveDocDrawingCommand','startArrow','getActualSize','427422cNllYx','UniverProDocsShape','_registerDrawingFocusChangeHandler','isLineShape','_initMenu','reverse','_registerComponents','src','scene','object','ShapeGroupEnum','refreshFormulaPresentation','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','startOffset','1em','IUniverInstanceService','Circle','text','UpdateDocShapeDataMutation','_shapeEditPanelVersion','641866ayHWOg','registerCommand','FOCUSING_SHAPE_TEXT_EDITOR','generateRandomId','@univerjs/engine-render','left','getMenuHiddenObservable','_sidebarService','_initEditingParams','disposeWithMe','includes','transform','_editingParams$','_drawingType','fillImageSource','refreshAdjustControls','DrawingCommonPanel','horizontal','text-wrap-shape-icon','doc.operation.open-doc-shape-format-panel','0\x200\x2016\x2016','SHAPE','_attachAdjustEvent','_configService','translateWithPrecision','clipByShape','#2563EB','UUID','_registerDrawingTransformHandler','add','menu','_updateShape','ShapeArrowSizeEnum','transformForAngle','IDocDrawingService','getObjectListPanelTypeName','add$','_toScenePoint','drawingType','_formulaAnimation','_injector','UniverProEngineShape','univerjs-icon\x20univerjs-icon-','getEditing','fillType','substring','_drawingManagerService','_props','_createShapeAdjustControls','close','ShapeFloatingToolbar','IDrawingManagerService','setFillImage','getFocusDrawings','open','TextWrappingStyle','_releaseRenderCache','setShapeData','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','changing$','setCanUseShapeClip','div','oKey','SolidFill','data','classType','insertGroupObject','_formulaKey','toDisposable','_clearPopups','_registerIcons','getAdjustInfoByName','_subUnitId','_getActiveDrawingParam','doc.command.menu-insert-shape','IRenderManagerService','Inject','LEFT','_transformCalculateSrcRect','BUTTON','_activeShapeModel','addObject','getShapeTextData','DocsShapeTextEditorContainer','OBJECT_LIST_FLOATING_SECTION_ID','onTransformChange$','fontFamily','with','draw','entries','flipY','getObjectListPanelSectionIdForDrawingType','ICommandService','@univerjs/ui','WRAP_TOP_AND_BOTTOM','preValue','objects','parent','getParent','resetCursor','CURSOR_TYPE','none','DocumentDataModel','ComponentManager','createElement','React','_updateSrcRectByTransform','name','URL','_shapeFormulaService','svg','rxjs','Module','doc.operation.open-shape-object-list-panel','strokeWidth','docs-shape-ui.textWrap.inFrontText','RENDER_CLASS_TYPE','defineProperty','@univerjs/docs-drawing-ui','getDrawingEditable','_menuManagerService','calculate','@univerjs/drawing-ui','version','getShapeDataById','doc.image-clip.shape-picker.component','_getActiveDrawingShape','getUnitId','endArrow','createShapeFormulaDocument','UpdateDocDrawingMetadataCommand','renderDrawingShape','UniverProDocsShapeUi','RibbonInsertGroup','_activeShapeAdjustPointList','Fragment','VIEWPORT_KEY','UniverProShapeEditorUi','docs-shape-ui.textWrap.square','enhanceParams','path','adjHandleSize','ContextMenuPosition','moveRange','_localeService','docs-shape-ui.deleteShape','_renderManagerService','trim','shapeId','MEDIA','UniverEngineRender','error','children','addImageSourceCache','vertical','cos','HorizontalAlign','onPointerMove$','some','DocCanvasPopManagerService','sectionFloating','_baseShapeWidth','forwardRef','@univerjs/drawing','@univerjs/core','FormulaShapeAnimationController','sectionCanvas','prototype','_lastEditingShapeKey','getCurrentUnitOfType','presentationChanged$','initTransformer','Vector2','shapeType','keys','docs-shape-ui.openPanel','evenodd','custom','getSelectedObjectMap','CONTENT','normalizeShapeTextModel','stopPropagation','UniverDocsShapePlugin','getUnitType','_applyFormulaAutoFitSize','DocDrawingPosition','marginTop','pick','ShapeTypeEnum','DocumentSkeleton','useState','_formulaShapes','getRenderUnitById','ancestorTransform','isHit','ObjectLayersIcon','decorate','OPERATION','getDrawingEffectBounds','@univerjs-pro/shape-editor-ui','VIEW_MAIN','shapeKey','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','viewBound','_shapeId','onPointerUp$','IN_FRONT_OF_TEXT','getInverseCoord','PARAGRAPH','univer-box-border\x20univer-px-4\x20univer-text-sm','onDblclick$','ObjectListPanelBase','remove$','UniverDocsDrawingUIPlugin','getShapeTextRect','_refreshShapeData','ShapeTextFloatToolbar','cancelEditing','docs-shape-text-','behindDoc','_isStartAdjusting','multiply','useRef','_registerImageShapeClipDelegate','LAYOUT','shapeData','FromArray','BooleanNumber','function','getValue','symbol','_getSceneByUnitId','updateContext','executeCommand','ISidebarService','ShapePickerDropdown','_drawSimpleText','UNIVER_DOC','ImageSourceTypeEnum','_iconManager','_componentManager','setAdjustValueByName','_loadAndSetImage','None','updateDocumentStyle','paragraphs','toString','_drawShapeText','string','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','DocSelectionManagerService','UniverDocs','_initShapePopupMenu','warn','@univerjs-pro/license','push','adjName','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','menuRange','translate','url(#$1','ShapeFormulaService','setEditing','_docsShapeService','PositionedObjectLayoutType','createControl$','useReducer','jsxs','use','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','doc.shape.floating-toolbar','unregister','UniverDrawingPlugin','DependentOn','refreshShapeFillImage','prepareShapeTextDocumentData','unsubscribe','2wseZkw','Disposable','UniverLicensePlugin','docs-shape-ui.objectListPanel.title','2580935LCgQHW','UniverProLicense','IURLImageService','createShapeTextBoxShapeData','gradientEndColor','animateFormulaPresentation','attrs','sin','size','filter','setConfig','focusDrawing','getAllUnitsForType','color','getTextModel','_initialize','find','BEHIND_TEXT','UniverIcon','getDrawingData','#3B82F6','getRealBound','_getFocusedShapeAtPoint','_isOpenedShapeEditPanel','CommandType','_updateAdjustControlPositions','_insertShapes','OTHERS','subscribe','_context','resolveShapeTextEditorBehaviorShapeData','disableObjectsEvent','delete','asObservable','onStarting'];_0x1894=function(){return _0x11b321;};return _0x1894();}(function(_0x445ccb,_0x27a9f7){const _0x301359=_0x3be8,_0x3ba62f=_0x445ccb();while(!![]){try{const _0x5bb8d3=parseInt(_0x301359(0x397))/0x1+-parseInt(_0x301359(0x21f))/0x2*(parseInt(_0x301359(0x383))/0x3)+parseInt(_0x301359(0x343))/0x4+parseInt(_0x301359(0x223))/0x5+parseInt(_0x301359(0x314))/0x6+-parseInt(_0x301359(0x248))/0x7+-parseInt(_0x301359(0x2b5))/0x8;if(_0x5bb8d3===_0x27a9f7)break;else _0x3ba62f['push'](_0x3ba62f['shift']());}catch(_0xfea56){_0x3ba62f['push'](_0x3ba62f['shift']());}}}(_0x1894,0xb292a),function(_0x3b5116,_0x10ef87){const _0x22f5b2=_0x3be8;typeof exports=='object'&&typeof module<'u'?_0x10ef87(exports,require('@univerjs/docs-ui'),require('@univerjs/ui'),require('@univerjs-pro/docs-shape'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/docs-drawing'),require('@univerjs/engine-render'),require('@univerjs/drawing'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/docs-drawing-ui'),require('react'),require('rxjs')):typeof define=='function'&&define[_0x22f5b2(0x290)]?define(['exports',_0x22f5b2(0x36a),_0x22f5b2(0x167),_0x22f5b2(0x311),'@univerjs-pro/engine-shape',_0x22f5b2(0x28c),_0x22f5b2(0x1ae),'@univerjs/docs',_0x22f5b2(0x317),_0x22f5b2(0x39b),_0x22f5b2(0x1ad),_0x22f5b2(0x1d1),_0x22f5b2(0x184),_0x22f5b2(0x301),_0x22f5b2(0x208),_0x22f5b2(0x180),'react',_0x22f5b2(0x179)],_0x10ef87):(_0x3b5116=typeof globalThis<'u'?globalThis:_0x3b5116||self,_0x10ef87(_0x3b5116[_0x22f5b2(0x18e)]={},_0x3b5116['UniverDocsUi'],_0x3b5116['UniverUi'],_0x3b5116[_0x22f5b2(0x384)],_0x3b5116[_0x22f5b2(0x3c0)],_0x3b5116['UniverProShapeEditor'],_0x3b5116[_0x22f5b2(0x26e)],_0x3b5116[_0x22f5b2(0x205)],_0x3b5116[_0x22f5b2(0x268)],_0x3b5116[_0x22f5b2(0x1a0)],_0x3b5116[_0x22f5b2(0x308)],_0x3b5116[_0x22f5b2(0x193)],_0x3b5116['UniverDrawingUi'],_0x3b5116[_0x22f5b2(0x173)],_0x3b5116[_0x22f5b2(0x224)],_0x3b5116[_0x22f5b2(0x378)],_0x3b5116[_0x22f5b2(0x173)],_0x3b5116[_0x22f5b2(0x179)]));}(this,function(_0x5d90f2,_0x5585ad,_0x19675e,_0x5ac7da,_0x7d9a71,_0x9a69b6,_0x4e3c13,_0x19b019,_0x5cbb0a,_0x4beb3c,_0x53c637,_0x297fde,_0x30bc3a,_0x47d1b0,_0x3e511b,_0xe538da,_0x269570,_0x3a7932){const _0x1104af=_0x3be8;Object[_0x1104af(0x17f)](_0x5d90f2,Symbol['toStringTag'],{'value':_0x1104af(0x17a)});let _0x147fe9=_0x1104af(0x237),_0xa5f033=_0x1104af(0x3b1);function _0x102530(_0x234f8c,_0x1a7fcf){const _0x1e9ff9=_0x1104af;if(_0x1a7fcf){if((0x0,_0x7d9a71[_0x1e9ff9(0x250)])(_0x234f8c)&&(_0x1a7fcf['startArrow']||_0x1a7fcf[_0x1e9ff9(0x18a)]))return{'ln':{'startArrow':_0x1a7fcf['startArrow']?{'type':_0x7d9a71[_0x1e9ff9(0x326)][_0x1e9ff9(0x325)],'size':_0x7d9a71[_0x1e9ff9(0x3b7)][_0x1e9ff9(0x2eb)]}:void 0x0,'endArrow':_0x1a7fcf[_0x1e9ff9(0x18a)]?{'type':_0x7d9a71['ShapeArrowTypeEnum'][_0x1e9ff9(0x325)],'size':_0x7d9a71[_0x1e9ff9(0x3b7)][_0x1e9ff9(0x25c)]}:void 0x0}};if(_0x234f8c===_0x7d9a71[_0x1e9ff9(0x1c6)][_0x1e9ff9(0x247)]&&(_0x1a7fcf[_0x1e9ff9(0x3a8)]||_0x1a7fcf[_0x1e9ff9(0x1a4)]))return(0x0,_0x9a69b6[_0x1e9ff9(0x226)])({'fill':{'fillType':_0x7d9a71[_0x1e9ff9(0x249)]['SolidFill'],'color':_0x147fe9},'isHorizontal':!!_0x1a7fcf[_0x1e9ff9(0x3a8)],'stroke':{'lineStrokeType':_0x7d9a71[_0x1e9ff9(0x2b0)][_0x1e9ff9(0x306)],'width':0x1,'color':_0xa5f033}});}}function _0x55ffa6(_0x52eb41,_0x39a8b0){const _0x55a2a4=_0x1104af;var _0x3ab94b;let _0x1ae7a7=_0x39a8b0[_0x55a2a4(0x345)]??'',_0x14d5b4=(_0x3ab94b=_0x52eb41[_0x55a2a4(0x26c)](_0x1ae7a7))==null?void 0x0:_0x3ab94b[_0x55a2a4(0x335)]();if(!_0x14d5b4)return null;let _0x2796fa=_0x14d5b4[_0x55a2a4(0x1ff)]??[],_0x10aa71=_0x2796fa[_0x55a2a4(0x233)](_0xf6aff6=>{const _0x7ff40a=_0x55a2a4;let _0x3e661f=(0x0,_0x4e3c13[_0x7ff40a(0x287)])(_0x14d5b4,_0xf6aff6);return _0x39a8b0[_0x7ff40a(0x390)]>=_0x3e661f&&_0x39a8b0['startOffset']<=_0xf6aff6[_0x7ff40a(0x24c)];})??_0x2796fa[_0x2796fa['length']-0x1];return _0x10aa71?{'paragraphId':_0x10aa71[_0x55a2a4(0x265)],'segmentId':_0x1ae7a7,'position':_0x5ac7da[_0x55a2a4(0x35f)][_0x55a2a4(0x2e6)],'offset':_0x39a8b0[_0x55a2a4(0x390)]-(0x0,_0x4e3c13[_0x55a2a4(0x287)])(_0x14d5b4,_0x10aa71)}:null;}function _0x3b9938(_0x4386c4,_0x39a1f6,_0x402b98){const _0x480729=_0x1104af;var _0x2886c8,_0x3ca324;if(!_0x402b98)return null;let _0x5818e9=(_0x2886c8=_0x4386c4[_0x480729(0x267)](_0x4beb3c['IRenderManagerService'])[_0x480729(0x1ca)](_0x39a1f6))==null?void 0x0:_0x2886c8[_0x480729(0x161)](_0x5585ad[_0x480729(0x2d3)])['activeTarget'];if(!_0x5818e9)return null;let _0x5432c5=_0x402b98===_0x480729(0x353)?{'startOffset':_0x5818e9[_0x480729(0x199)][_0x480729(0x275)],'endOffset':_0x5818e9['moveRange'][_0x480729(0x275)]}:_0x5818e9[_0x480729(0x20c)];return{'startOffset':_0x5432c5['startOffset'],'endOffset':_0x5432c5[_0x480729(0x275)],'collapsed':_0x5432c5[_0x480729(0x390)]===_0x5432c5['endOffset'],'segmentId':((_0x3ca324=_0x5818e9['paragraph'])==null?void 0x0:_0x3ca324[_0x480729(0x345)])??''};}let _0x24d59f={'type':_0x4e3c13[_0x1104af(0x23b)][_0x1104af(0x34e)],'id':_0x1104af(0x154),'handler':async(_0x2e92de,_0x535d62)=>{const _0x9633fb=_0x1104af;let _0x2345cb=_0x2e92de['get'](_0x4e3c13['IUniverInstanceService'])[_0x9633fb(0x1b3)](_0x4e3c13[_0x9633fb(0x310)]['UNIVER_DOC']);if(!_0x2345cb)return!0x1;let _0x597e5b=_0x2e92de[_0x9633fb(0x267)](_0x4e3c13[_0x9633fb(0x166)]),_0x3f23b6=_0x2345cb[_0x9633fb(0x189)](),_0x1b9306=_0x535d62[_0x9633fb(0x19e)]??(0x0,_0x4e3c13[_0x9633fb(0x39a)])(),_0x3273e4=_0x535d62[_0x9633fb(0x36b)]??_0x5ac7da['DEFAULT_DOC_SHAPE_WIDTH'],_0xeba360=_0x535d62[_0x9633fb(0x285)]??_0x5ac7da[_0x9633fb(0x2ed)],_0x3240aa=_0x535d62[_0x9633fb(0x1eb)]??_0x102530(_0x535d62['value'],_0x535d62[_0x9633fb(0x195)])??{'fill':{'fillType':_0x7d9a71[_0x9633fb(0x249)][_0x9633fb(0x149)],'color':_0x147fe9},'stroke':{'lineStrokeType':_0x7d9a71['ShapeLineTypeEnum']['SolidLine'],'width':0x1,'color':_0xa5f033}},_0xeb68f7=_0x3b9938(_0x2e92de,_0x3f23b6,_0x535d62['paragraphMenuPlacement'])??_0x2e92de[_0x9633fb(0x267)](_0x19b019[_0x9633fb(0x204)])[_0x9633fb(0x346)]();if(!_0xeb68f7)return!0x1;let _0x5d74fe=_0x55ffa6(_0x2345cb,_0xeb68f7);return _0x5d74fe?!!_0x597e5b[_0x9633fb(0x33a)](_0x5ac7da['InsertDocShapeCommand']['id'],{'unitId':_0x3f23b6,'shapeId':_0x1b9306,'shapeType':_0x535d62['value'],'shapeData':_0x3240aa,'transform':{'width':_0x3273e4,'height':_0xeba360},'placement':{'wrappingStyle':_0x5cbb0a[_0x9633fb(0x140)][_0x9633fb(0x364)],'anchor':_0x5d74fe}}):!0x1;}},_0x23f350=_0x1104af(0x37f),_0x2802a4=_0x1104af(0x272),_0x2b7171=(0x0,_0x4e3c13['createInternalEditorID'])('SHAPE_TEXT'),_0x1afb3d=_0x1104af(0x30f),_0x21fd05={'id':_0x1104af(0x17b),'type':_0x4e3c13[_0x1104af(0x23b)][_0x1104af(0x34e)],'handler':(_0x38390b,_0x248f86)=>{const _0xc7a99e=_0x1104af;let _0x2e3c6e=_0x38390b[_0xc7a99e(0x267)](_0x19675e['ISidebarService']),_0x17fab2=_0x38390b[_0xc7a99e(0x267)](_0x4e3c13['LocaleService']),_0x3f0fee=_0x38390b['get'](_0x53c637[_0xc7a99e(0x13c)]);return(_0x248f86==null?void 0x0:_0x248f86[_0xc7a99e(0x28e)])===_0xc7a99e(0x13a)?(_0x2e3c6e[_0xc7a99e(0x13a)](_0x2802a4),!0x0):(_0x2e3c6e[_0xc7a99e(0x13f)]({'id':_0x2802a4,'header':{'title':_0x17fab2['t'](_0xc7a99e(0x222))},'children':{'label':_0x2802a4},'onClose':()=>{const _0x2faa05=_0xc7a99e;_0x3f0fee[_0x2faa05(0x22e)](null);},'width':0x168}),!0x0);}};function _0x3a726b(_0x40f97f,_0x3b9c47){return function(_0x2755db,_0x3c8482){_0x3b9c47(_0x2755db,_0x3c8482,_0x40f97f);};}function _0x21e0a3(_0x2f699c,_0x55704e,_0x4d37de,_0x10f3f4){const _0x4aa72c=_0x1104af;var _0xdf2ff9=arguments[_0x4aa72c(0x281)],_0x25d278=_0xdf2ff9<0x3?_0x55704e:_0x10f3f4===null?_0x10f3f4=Object[_0x4aa72c(0x26a)](_0x55704e,_0x4d37de):_0x10f3f4,_0xe628ed;if(typeof Reflect=='object'&&typeof Reflect[_0x4aa72c(0x1ce)]==_0x4aa72c(0x1ee))_0x25d278=Reflect[_0x4aa72c(0x1ce)](_0x2f699c,_0x55704e,_0x4d37de,_0x10f3f4);else{for(var _0xd2cffb=_0x2f699c[_0x4aa72c(0x281)]-0x1;_0xd2cffb>=0x0;_0xd2cffb--)(_0xe628ed=_0x2f699c[_0xd2cffb])&&(_0x25d278=(_0xdf2ff9<0x3?_0xe628ed(_0x25d278):_0xdf2ff9>0x3?_0xe628ed(_0x55704e,_0x4d37de,_0x25d278):_0xe628ed(_0x55704e,_0x4d37de))||_0x25d278);}return _0xdf2ff9>0x3&&_0x25d278&&Object[_0x4aa72c(0x17f)](_0x55704e,_0x4d37de,_0x25d278),_0x25d278;}let _0x12183a=class extends _0x4e3c13[_0x1104af(0x220)]{constructor(_0x181f7c,_0x5847a0){const _0x2b73dc=_0x1104af;super(),this['_clipService']=_0x181f7c,this[_0x2b73dc(0x3c5)]=_0x5847a0,this[_0x2b73dc(0x1e9)](),this[_0x2b73dc(0x352)][_0x2b73dc(0x146)](!0x0),this[_0x2b73dc(0x3a0)]({'dispose':()=>this[_0x2b73dc(0x352)][_0x2b73dc(0x146)](!0x1)});}[_0x1104af(0x1e9)](){const _0x5ec9ef=_0x1104af;let _0x3f1c6e=new Map(),_0x1c152a=this[_0x5ec9ef(0x352)][_0x5ec9ef(0x31f)]((_0x30afc2,_0x3d5e9f,_0x4f19eb,_0x32e4ec,_0x28c120)=>{const _0x337695=_0x5ec9ef;let _0x1738ba=_0x3d5e9f;if(_0x1738ba===_0x7d9a71['ShapeTypeEnum'][_0x337695(0x1fd)]||_0x3d5e9f===_0x337695(0x1bb))return!0x1;try{let _0x11ba4d=_0x3f1c6e['get'](_0x3d5e9f);return _0x11ba4d||(_0x11ba4d=new _0x7d9a71[(_0x337695(0x292))](_0x1738ba,'clip-'+_0x3d5e9f),_0x3f1c6e[_0x337695(0x327)](_0x3d5e9f,_0x11ba4d)),_0x11ba4d['clearAdjustValue'](),_0x28c120&&Object['keys'](_0x28c120)['length']>0x0&&_0x11ba4d[_0x337695(0x142)]({'adjustValues':_0x28c120},!0x0),_0x11ba4d[_0x337695(0x1f2)]({'width':_0x4f19eb,'height':_0x32e4ec}),_0x11ba4d['buildClipPath'](_0x30afc2,{'left':0x0,'top':0x0,'width':_0x4f19eb,'height':_0x32e4ec});}catch{return!0x1;}});this[_0x5ec9ef(0x3a0)](_0x1c152a),this[_0x5ec9ef(0x3a0)]({'dispose':()=>_0x3f1c6e[_0x5ec9ef(0x25e)]()});}['clipByShape'](_0x1b297f,_0x286a7d,_0x2c7b89,_0x53b705,_0x738fb8){const _0x3fc630=_0x1104af;let _0x20d536=this[_0x3fc630(0x3c5)][_0x3fc630(0x236)](_0x1b297f,_0x286a7d)[_0x2c7b89];!_0x20d536||_0x20d536[_0x3fc630(0x3bd)]!==_0x4e3c13['DrawingTypeEnum'][_0x3fc630(0x28b)]||this[_0x3fc630(0x3c5)]['featurePluginUpdateNotification']([{..._0x20d536,'prstGeom':_0x53b705,'adjustValues':_0x738fb8}]);}};_0x12183a=_0x21e0a3([_0x3a726b(0x0,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x30bc3a['DrawingImageClipService'])),_0x3a726b(0x1,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x53c637['IDrawingManagerService']))],_0x12183a);let _0x4eff94=_0x1104af(0x2df),_0x4ed7cd=_0x1104af(0x187);function _0xf33bb0({onShapeClick:_0x107874,excludeGroups:_0x489aba}){const _0x2d72c1=_0x1104af;return(0x0,_0x47d1b0[_0x2d72c1(0x269)])(_0x297fde[_0x2d72c1(0x2c6)],{'excludeGroups':_0x489aba,'onShapeClick':_0x107874,'scrollContainer':_0x2d72c1(0x16b)});}function _0x2c0664(){const _0x563123=_0x1104af;let _0x2f590f=(0x0,_0x19675e[_0x563123(0x379)])(_0x53c637[_0x563123(0x13c)]),_0x390229=(0x0,_0x19675e[_0x563123(0x379)])(_0x12183a);return(0x0,_0x47d1b0[_0x563123(0x269)])(_0x297fde[_0x563123(0x1f5)],{'buttonLabel':_0x563123(0x2e4),'excludeGroups':[_0x297fde[_0x563123(0x38d)]['Line']],'onShapeClick':_0x2f4093=>{const _0xed5bd4=_0x563123;let _0x1849b6=_0x2f590f[_0xed5bd4(0x13e)]()['find'](_0xd26b66=>_0xd26b66['drawingType']===_0x4e3c13[_0xed5bd4(0x316)][_0xed5bd4(0x28b)]);if(!_0x1849b6)return;let {unitId:_0x34a611,subUnitId:_0x41918f,drawingId:_0x3f75fb}=_0x1849b6;_0x390229[_0xed5bd4(0x3b0)](_0x34a611,_0x41918f,_0x3f75fb,_0x2f4093[_0xed5bd4(0x26f)]);}});}function _0xdd027b(){const _0x5b7b0d=_0x1104af;let _0x27e23b=(0x0,_0x19675e[_0x5b7b0d(0x379)])(_0x19675e[_0x5b7b0d(0x171)]),_0xb34e12=(0x0,_0x19675e[_0x5b7b0d(0x379)])(_0x53c637[_0x5b7b0d(0x13c)]),_0x64bcf5=(0x0,_0x19675e[_0x5b7b0d(0x379)])(_0x4e3c13[_0x5b7b0d(0x392)]),_0x49f6aa=_0xb34e12['getFocusDrawings']()[0x0],_0xfed4b5=_0x49f6aa?_0x64bcf5[_0x5b7b0d(0x1c1)](_0x49f6aa[_0x5b7b0d(0x262)]):void 0x0,_0x2f4aaf=_0xfed4b5===_0x4e3c13[_0x5b7b0d(0x310)][_0x5b7b0d(0x1f7)]?_0x4ed7cd:_0xfed4b5===_0x4e3c13['UniverInstanceType'][_0x5b7b0d(0x2e3)]?_0x5b7b0d(0x24d):void 0x0,_0x21772d=_0x2f4aaf?_0x27e23b['get'](_0x2f4aaf):void 0x0;return _0x21772d?(0x0,_0x47d1b0[_0x5b7b0d(0x269)])(_0x21772d,{}):null;}function _0x511625({paragraphMenuPlacement:_0x16fd7e}){const _0x5c85af=_0x1104af;let _0x1dbcef=(0x0,_0x19675e[_0x5c85af(0x379)])(_0x4e3c13[_0x5c85af(0x166)]);return(0x0,_0x47d1b0[_0x5c85af(0x269)])(_0xf33bb0,{'onShapeClick':_0x53c98d=>{const _0x5e5ca3=_0x5c85af;_0x1dbcef[_0x5e5ca3(0x1f3)](_0x24d59f['id'],{'paragraphMenuPlacement':_0x16fd7e,'value':_0x53c98d['type'],'enhanceParams':{'endArrow':_0x53c98d[_0x5e5ca3(0x18a)],'startArrow':_0x53c98d[_0x5e5ca3(0x381)],'horizontal':_0x53c98d[_0x5e5ca3(0x3a8)],'vertical':_0x53c98d['vertical']}});}});}function _0x3209a9(_0x4f26de){const _0x161e62=_0x1104af;return _0x14806c=>({'id':_0x24d59f['id'],'type':_0x19675e[_0x161e62(0x2a8)][_0x161e62(0x334)],'selections':[{'label':{'name':_0x4eff94,'hoverable':!0x1,'selectable':!0x1,'props':_0x4f26de?{'id':_0x24d59f['id'],'paragraphMenuPlacement':_0x4f26de}:{'id':_0x24d59f['id']}}}],'icon':_0x161e62(0x332),'title':'docs-shape-ui.insertShape','tooltip':'docs-shape-ui.insertShape','hidden$':(0x0,_0x19675e[_0x161e62(0x39d)])(_0x14806c,_0x4e3c13[_0x161e62(0x310)]['UNIVER_DOC'])});}let _0xa765e6=_0x3209a9(),_0x335a24=_0x3209a9('below'),_0x305b20=_0x3209a9('target');function _0x5aebf4(_0x238524){const _0x468f3c=_0x1104af;return{'id':_0x21fd05['id'],'type':_0x19675e[_0x468f3c(0x2a8)][_0x468f3c(0x159)],'icon':'ObjectLayersIcon','title':_0x468f3c(0x24a),'tooltip':_0x468f3c(0x24a),'hidden$':(0x0,_0x19675e['getMenuHiddenObservable'])(_0x238524,_0x4e3c13[_0x468f3c(0x310)][_0x468f3c(0x1f7)])};}let _0x5653f1={[_0x19675e[_0x1104af(0x18f)][_0x1104af(0x19f)]]:{[_0x24d59f['id']]:{'order':0x4,'menuItemFactory':_0x53e749=>({..._0xa765e6(_0x53e749),'title':void 0x0})}},[_0x19675e[_0x1104af(0x18f)][_0x1104af(0x23e)]]:{[_0x21fd05['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x5aebf4}},[_0x19675e[_0x1104af(0x198)][_0x1104af(0x1da)]]:{[_0x19675e[_0x1104af(0x2e2)]['LAYOUT']]:{[_0x5585ad[_0x1104af(0x27c)]]:{[_0x24d59f['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':_0x335a24}}},[_0x5585ad['DOC_CONTENT_INSERT_MENU_ID']]:{[_0x19675e[_0x1104af(0x2e2)][_0x1104af(0x1ea)]]:{[_0x24d59f['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':_0x335a24}}},[_0x5585ad['EMPTY_PARAGRAPH_MENU_ID']]:{[_0x19675e[_0x1104af(0x2e2)]['LAYOUT']]:{[_0x24d59f['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':_0x305b20}}},[_0x5585ad[_0x1104af(0x2b3)]]:{'insert':{[_0x24d59f['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':_0xa765e6}}},[_0x5585ad[_0x1104af(0x1d4)]]:{'insert':{[_0x24d59f['id']+_0x1104af(0x2c9)]:{'replace':!0x0,'order':0x2,'menuItemFactory':_0x335a24}}}}};var _0x492dbd=_0x1104af(0x24e),_0x2f7166='1.0.0-beta.0';let _0x208de0={'type':_0x4e3c13[_0x1104af(0x23b)][_0x1104af(0x1cf)],'id':'doc.operation.close-doc-shape-format-panel','handler'(){return!0x0;}},_0x3eb699={'type':_0x4e3c13[_0x1104af(0x23b)][_0x1104af(0x1cf)],'id':_0x1104af(0x3aa),'handler'(){return!0x0;}},_0x36c198={};function _0x5928c0({ref:_0x2bb6d4,..._0x2f3d03}){const _0x2c82c9=_0x1104af;let {icon:_0x3ff7dd,id:_0xa32016,className:_0x5499b3,extend:_0x3afab6,..._0x578147}=_0x2f3d03,_0x1e0f27=(_0x2c82c9(0x3c1)+_0xa32016+'\x20'+(_0x5499b3||''))[_0x2c82c9(0x19d)](),_0x59d10c=(0x0,_0x269570[_0x2c82c9(0x1e8)])('_'+_0x315b82());return _0x79d74f(_0x3ff7dd,''+_0xa32016,{'defIds':_0x3ff7dd['defIds'],'idSuffix':_0x59d10c[_0x2c82c9(0x372)]},{'ref':_0x2bb6d4,'className':_0x1e0f27,..._0x578147},_0x3afab6);}function _0x79d74f(_0x2b5d20,_0x3a6657,_0x27de11,_0x2fa986,_0x360998){const _0x323ea8=_0x1104af;return(0x0,_0x269570['createElement'])(_0x2b5d20[_0x323ea8(0x2b7)],{'key':_0x3a6657,..._0x28521d(_0x2b5d20,_0x27de11,_0x360998),..._0x2fa986},(_0x17ba33(_0x2b5d20,_0x27de11)[_0x323ea8(0x1a2)]||[])['map']((_0x452189,_0x517630)=>_0x79d74f(_0x452189,_0x3a6657+'-'+_0x2b5d20[_0x323ea8(0x2b7)]+'-'+_0x517630,_0x27de11,void 0x0,_0x360998)));}function _0x28521d(_0x3ef4bf,_0x4a6f15,_0x2884df){const _0x44395d=_0x1104af;let _0x275fe9={..._0x3ef4bf[_0x44395d(0x229)]};_0x2884df!=null&&_0x2884df[_0x44395d(0x2a0)]&&_0x275fe9[_0x44395d(0x2c0)]===_0x44395d(0x2a0)&&(_0x275fe9[_0x44395d(0x2c0)]=_0x2884df['colorChannel1']),_0x2884df!=null&&_0x2884df[_0x44395d(0x2a0)]&&_0x275fe9[_0x44395d(0x2db)]==='colorChannel1'&&(_0x275fe9[_0x44395d(0x2db)]=_0x2884df[_0x44395d(0x2a0)]),_0x3ef4bf['tag']===_0x44395d(0x257)&&_0x275fe9['id']&&(_0x275fe9['id']+=_0x4a6f15['idSuffix']),Object[_0x44395d(0x163)](_0x275fe9)[_0x44395d(0x291)](([_0x6a1772,_0x59427e])=>{const _0x2547c1=_0x44395d;_0x6a1772===_0x2547c1(0x257)&&typeof _0x59427e=='string'&&(_0x275fe9[_0x6a1772]=_0x59427e[_0x2547c1(0x323)](/url\(#(.*)\)/,_0x2547c1(0x20e)+_0x4a6f15[_0x2547c1(0x2c8)]+')'));});let {defIds:_0x2c4e2a}=_0x4a6f15;return!_0x2c4e2a||_0x2c4e2a['length']===0x0?_0x275fe9:(_0x3ef4bf[_0x44395d(0x2b7)]===_0x44395d(0x216)&&_0x275fe9['xlink:href']&&(_0x275fe9['xlink:href']+=_0x4a6f15['idSuffix']),Object['entries'](_0x275fe9)[_0x44395d(0x291)](([_0x4b5975,_0x362967])=>{const _0xbe252b=_0x44395d;typeof _0x362967=='string'&&(_0x275fe9[_0x4b5975]=_0x362967[_0xbe252b(0x323)](/url\(#(.*)\)/,_0xbe252b(0x20e)+_0x4a6f15[_0xbe252b(0x2c8)]+')'));}),_0x275fe9);}function _0x17ba33(_0x57bb96,_0x303343){const _0x178819=_0x1104af;var _0x42a177;let {defIds:_0x3b2a53}=_0x303343;return!_0x3b2a53||_0x3b2a53[_0x178819(0x281)]===0x0?_0x57bb96:_0x57bb96[_0x178819(0x2b7)]===_0x178819(0x34d)&&(_0x42a177=_0x57bb96[_0x178819(0x1a2)])!=null&&_0x42a177[_0x178819(0x281)]?{..._0x57bb96,'children':_0x57bb96[_0x178819(0x1a2)]['map'](_0x31651b=>typeof _0x31651b[_0x178819(0x229)]['id']==_0x178819(0x202)&&_0x3b2a53&&_0x3b2a53[_0x178819(0x3a1)](_0x31651b['attrs']['id'])?{..._0x31651b,'attrs':{..._0x31651b[_0x178819(0x229)],'id':_0x31651b['attrs']['id']+_0x303343['idSuffix']}}:_0x31651b)}:_0x57bb96;}function _0x315b82(){const _0x420a94=_0x1104af;return Math[_0x420a94(0x348)]()[_0x420a94(0x200)](0x24)[_0x420a94(0x3c4)](0x2,0x8);}_0x5928c0[_0x1104af(0x2ec)]=_0x1104af(0x235);let _0x5e0685={'tag':_0x1104af(0x178),'attrs':{'xmlns':_0x1104af(0x30e),'fill':'none','viewBox':_0x1104af(0x3ab),'width':'1em','height':_0x1104af(0x391)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','strokeLinecap':_0x1104af(0x246),'strokeLinejoin':_0x1104af(0x246),'strokeWidth':1.3}},{'tag':_0x1104af(0x196),'attrs':{'stroke':'currentColor','d':_0x1104af(0x282),'strokeLinecap':_0x1104af(0x246),'strokeLinejoin':_0x1104af(0x246),'strokeWidth':1.3}}]},_0x4a8940=(0x0,_0x269570[_0x1104af(0x1ac)])(function(_0xe90676,_0x110c0a){const _0x3b1f3e=_0x1104af;return(0x0,_0x269570[_0x3b1f3e(0x172)])(_0x5928c0,Object['assign']({},_0xe90676,{'id':_0x3b1f3e(0x36e),'ref':_0x110c0a,'icon':_0x5e0685}));});_0x4a8940[_0x1104af(0x2ec)]='ObjectLayersIcon';let _0x4baa7d={'tag':'svg','attrs':{'xmlns':_0x1104af(0x30e),'fill':_0x1104af(0x16f),'viewBox':'0\x200\x2020\x2020','width':_0x1104af(0x391),'height':'1em'},'children':[{'tag':_0x1104af(0x2bd),'attrs':{'width':0x11,'height':1.2,'x':1.5,'y':2.45,'fill':_0x1104af(0x34b),'rx':0.6}},{'tag':_0x1104af(0x2bd),'attrs':{'width':3.25,'height':1.2,'x':1.5,'y':6.1,'fill':_0x1104af(0x34b),'rx':0.6}},{'tag':_0x1104af(0x2bd),'attrs':{'width':3.25,'height':1.2,'x':15.25,'y':6.1,'fill':_0x1104af(0x34b),'rx':0.6}},{'tag':_0x1104af(0x2bd),'attrs':{'width':3.25,'height':1.2,'x':1.5,'y':9.4,'fill':_0x1104af(0x34b),'rx':0.6}},{'tag':_0x1104af(0x2bd),'attrs':{'width':3.25,'height':1.2,'x':15.25,'y':9.4,'fill':_0x1104af(0x34b),'rx':0.6}},{'tag':_0x1104af(0x2bd),'attrs':{'width':3.25,'height':1.2,'x':1.5,'y':12.7,'fill':_0x1104af(0x34b),'rx':0.6}},{'tag':_0x1104af(0x2bd),'attrs':{'width':3.25,'height':1.2,'x':15.25,'y':12.7,'fill':_0x1104af(0x34b),'rx':0.6}},{'tag':_0x1104af(0x2bd),'attrs':{'width':0x11,'height':1.2,'x':1.5,'y':16.35,'fill':_0x1104af(0x34b),'rx':0.6}},{'tag':'path','attrs':{'fill':_0x1104af(0x34b),'d':'M7.55\x205.45C6.50066\x205.45\x205.65\x206.30066\x205.65\x207.35V12.65C5.65\x2013.6993\x206.50066\x2014.55\x207.55\x2014.55H12.45C13.4993\x2014.55\x2014.35\x2013.6993\x2014.35\x2012.65V7.35C14.35\x206.30066\x2013.4993\x205.45\x2012.45\x205.45H7.55ZM7.8\x206.75C7.24772\x206.75\x206.8\x207.19772\x206.8\x207.75V12.25C6.8\x2012.8023\x207.24772\x2013.25\x207.8\x2013.25H12.2C12.7523\x2013.25\x2013.2\x2012.8023\x2013.2\x2012.25V7.75C13.2\x207.19772\x2012.7523\x206.75\x2012.2\x206.75H7.8Z','fillRule':'evenodd','clipRule':_0x1104af(0x1ba)}}]},_0x3ab031=(0x0,_0x269570[_0x1104af(0x1ac)])(function(_0x46deab,_0x502af0){const _0x4a6608=_0x1104af;return(0x0,_0x269570[_0x4a6608(0x172)])(_0x5928c0,Object[_0x4a6608(0x357)]({},_0x46deab,{'id':_0x4a6608(0x3a9),'ref':_0x502af0,'icon':_0x4baa7d}));});_0x3ab031[_0x1104af(0x2ec)]='TextWrapShapeIcon';function _0x2f4798(_0x2ccab2){return _0x2ccab2['trim']()||void 0x0;}function _0x1c0d23(_0x1158bb,_0x56830c,_0x3ff001){const _0x2f6cd3=_0x1104af;var _0x2f3501,_0x388768;return((_0x2f3501=_0x1158bb[_0x2f6cd3(0x175)])==null?void 0x0:_0x2f3501[_0x2f6cd3(0x19d)]())||((_0x388768=_0x1158bb[_0x2f6cd3(0x29d)])==null?void 0x0:_0x388768[_0x2f6cd3(0x19d)]())||(0x0,_0x30bc3a[_0x2f6cd3(0x3ba)])(_0x3ff001,(0x0,_0x297fde[_0x2f6cd3(0x31e)])(_0x1158bb[_0x2f6cd3(0x3bd)]))+'\x20'+(_0x56830c+0x1);}function _0x2ad4aa(){const _0x2b8e2d=_0x1104af;let _0x3ff177=(0x0,_0x19675e['useDependency'])(_0x4e3c13[_0x2b8e2d(0x324)]),_0x1162a6=(0x0,_0x19675e[_0x2b8e2d(0x379)])(_0x4e3c13['ICommandService']),_0x2a07e8=(0x0,_0x19675e[_0x2b8e2d(0x379)])(_0x4e3c13[_0x2b8e2d(0x392)]),_0x3aaf86=(0x0,_0x19675e['useDependency'])(_0x5cbb0a[_0x2b8e2d(0x3b9)]),_0x1614b3=(0x0,_0x19675e[_0x2b8e2d(0x379)])(_0x53c637[_0x2b8e2d(0x13c)]),_0x37a93e=(0x0,_0x19675e[_0x2b8e2d(0x379)])(_0x4beb3c[_0x2b8e2d(0x155)]),[,_0x5d5523]=(0x0,_0x269570[_0x2b8e2d(0x214)])(_0x4f7132=>_0x4f7132+0x1,0x0),_0x32efc7=_0x2a07e8[_0x2b8e2d(0x1b3)](_0x4e3c13[_0x2b8e2d(0x310)][_0x2b8e2d(0x1f7)]),_0x4ccc70=(_0x32efc7==null?void 0x0:_0x32efc7[_0x2b8e2d(0x189)]())??'',_0xdea713=_0x4ccc70,_0x5b84ba=(0x0,_0x19675e['useObservable'])(()=>_0x1614b3[_0x2b8e2d(0x2d7)],_0x1614b3[_0x2b8e2d(0x13e)](),!0x1,[_0x1614b3]);(0x0,_0x269570[_0x2b8e2d(0x25a)])(()=>{const _0x4c22d4=_0x2b8e2d;let _0x3b2fc7=_0x1162a6[_0x4c22d4(0x33d)](()=>_0x5d5523());return()=>_0x3b2fc7[_0x4c22d4(0x256)]();},[_0x1162a6]);let _0x311135=(0x0,_0x269570[_0x2b8e2d(0x362)])(()=>(0x0,_0x30bc3a[_0x2b8e2d(0x363)])(_0x3ff177),[_0x3ff177]),_0x4ec4f7=_0x4ccc70?_0x3aaf86['getDrawingData'](_0x4ccc70,_0xdea713):{},_0x3d3e8d=(_0x4ccc70?_0x3aaf86['getDrawingOrder'](_0x4ccc70,_0xdea713):[])[_0x2b8e2d(0x27e)](_0x1d10e9=>_0x4ec4f7[_0x1d10e9])[_0x2b8e2d(0x22c)](_0x2aeb93=>!!_0x2aeb93)[_0x2b8e2d(0x388)](),_0x548091=_0x3d3e8d['reduce']((_0x49174a,_0x486e5c)=>(_0x49174a[(0x0,_0x30bc3a[_0x2b8e2d(0x165)])(_0x486e5c[_0x2b8e2d(0x3bd)])]+=0x1,_0x49174a),{'canvas':0x0,'floating':0x0}),_0x488513={'canvas':0x0,'floating':0x0},_0x1506b2=_0x3d3e8d[_0x2b8e2d(0x27e)]((_0x25156e,_0x146e7f)=>{const _0x31c442=_0x2b8e2d;let _0x1545df=(0x0,_0x30bc3a[_0x31c442(0x165)])(_0x25156e['drawingType']),_0x5b2af3=_0x1545df===_0x30bc3a[_0x31c442(0x15e)],_0x144cf3=_0x488513[_0x1545df]++;return{'id':_0x25156e[_0x31c442(0x259)],'name':_0x1c0d23(_0x25156e,_0x146e7f,_0x3ff177),'description':_0x25156e[_0x31c442(0x2f2)],'visible':_0x25156e[_0x31c442(0x313)]!==!0x0,'selectable':_0x25156e[_0x31c442(0x360)]!==!0x1,'sectionId':_0x1545df,'sectionTitle':_0x5b2af3?_0x311135[_0x31c442(0x1aa)]:_0x311135[_0x31c442(0x1b0)],'capabilities':_0x5b2af3?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x5b2af3&&_0x144cf3>0x0,'canMoveBackward':!_0x5b2af3&&_0x144cf3<_0x548091[_0x31c442(0x27b)]-0x1,'canReorder':!_0x5b2af3};}),_0x4c9fbe=(0x0,_0x269570[_0x2b8e2d(0x362)])(()=>(_0x5b84ba??[])['filter'](_0x13f738=>_0x13f738[_0x2b8e2d(0x262)]===_0x4ccc70&&_0x13f738[_0x2b8e2d(0x260)]===_0xdea713)[_0x2b8e2d(0x27e)](_0x1ab1d0=>_0x1ab1d0[_0x2b8e2d(0x259)]),[_0x5b84ba,_0xdea713,_0x4ccc70]),_0x7ab08c=_0x4c9fbe[_0x4c9fbe[_0x2b8e2d(0x281)]-0x1]??null,_0x1806e7=_0x16da45=>_0x3aaf86[_0x2b8e2d(0x320)]({'unitId':_0x4ccc70,'subUnitId':_0xdea713,'drawingId':_0x16da45})??null,_0xf6156d=async _0x236514=>{const _0x1bd2cf=_0x2b8e2d;!_0x4ccc70||!_0x236514[_0x1bd2cf(0x281)]||await _0x1162a6['executeCommand'](_0x5ac7da[_0x1bd2cf(0x18c)]['id'],{'unitId':_0x4ccc70,'patches':_0x236514});},_0x4aa5d5=(_0xe63a7b,_0x58c99e)=>{const _0x2df513=_0x2b8e2d;if(!_0x4ccc70)return;let _0x4fea1b=_0x58c99e?_0x4c9fbe[_0x2df513(0x3a1)](_0xe63a7b)?_0x4c9fbe['filter'](_0x31de7b=>_0x31de7b!==_0xe63a7b):[..._0x4c9fbe,_0xe63a7b]:[_0xe63a7b];_0x1162a6['syncExecuteCommand'](_0x53c637[_0x2df513(0x29f)]['id'],_0x4fea1b['map'](_0x4045c5=>({'unitId':_0x4ccc70,'subUnitId':_0xdea713,'drawingId':_0x4045c5})));let _0x544af8=_0x4fea1b[_0x4fea1b[_0x2df513(0x281)]-0x1];_0x544af8?(0x0,_0x297fde['activateDrawingObject'])(_0x37a93e,{'unitId':_0x4ccc70,'subUnitId':_0xdea713,'drawingId':_0x544af8}):(0x0,_0x297fde[_0x2df513(0x2fb)])(_0x37a93e,_0x4ccc70);},_0x16d89b=async(_0x347923,_0x491aca)=>{const _0x595960=_0x2b8e2d;await _0xf6156d(_0x347923[_0x595960(0x27e)](_0x471ba0=>_0x1806e7(_0x471ba0))['filter'](_0xb49422=>!!_0xb49422)[_0x595960(0x22c)](_0x409c87=>_0x409c87['hidden']!==!0x0!==_0x491aca)[_0x595960(0x27e)](_0x3d5c9f=>({'drawingId':_0x3d5c9f[_0x595960(0x259)],'hidden':!_0x491aca})));},_0x424d3c=async _0x2020e0=>{const _0x5202ed=_0x2b8e2d;let _0x332620=_0x1806e7(_0x2020e0);_0x332620&&await _0xf6156d([{'drawingId':_0x2020e0,'selectable':_0x332620[_0x5202ed(0x360)]===!0x1&&void 0x0}]);},_0x3d73e8=async(_0x314589,_0x526d70)=>{let _0x31c042=_0x1806e7(_0x314589),_0x59ad39=_0x2f4798(_0x526d70);!_0x31c042||(_0x31c042['name']??void 0x0)===_0x59ad39&&(_0x31c042['title']||void 0x0)===_0x59ad39||await _0xf6156d([{'drawingId':_0x314589,'name':_0x59ad39,'title':_0x59ad39}]);},_0x35b522=async(_0x1575a0,_0xe815fd)=>{const _0x13786e=_0x2b8e2d;let _0x1969eb=_0x1806e7(_0x1575a0),_0x30911b=_0x2f4798(_0xe815fd);!_0x1969eb||(_0x1969eb[_0x13786e(0x2f2)]??void 0x0)===_0x30911b||await _0xf6156d([{'drawingId':_0x1575a0,'description':_0x30911b}]);},_0x1b6e4a=async(_0x164717,_0x46fc41)=>{const _0x436bc0=_0x2b8e2d;_0x4ccc70&&await _0x1162a6[_0x436bc0(0x1f3)](_0x5cbb0a['SetDocDrawingArrangeCommand']['id'],{'unitId':_0x4ccc70,'subUnitId':_0xdea713,'drawingIds':[_0x164717],'arrangeType':_0x46fc41});};return _0x4ccc70?(0x0,_0x47d1b0['jsx'])(_0x30bc3a[_0x2b8e2d(0x1dd)],{'items':_0x1506b2,'selectedIds':_0x4c9fbe,'focusedId':_0x7ab08c,'labels':_0x311135,'onSelect':_0x4aa5d5,'onSetVisible':_0x16d89b,'onCommitName':_0x3d73e8,'onCommitDescription':_0x35b522,'onMoveForward':async _0x414620=>_0x1b6e4a(_0x414620,_0x4e3c13[_0x2b8e2d(0x37d)][_0x2b8e2d(0x373)]),'onMoveBackward':async _0x2a0986=>_0x1b6e4a(_0x2a0986,_0x4e3c13[_0x2b8e2d(0x37d)]['backward']),'onToggleSelectable':_0x424d3c}):(0x0,_0x47d1b0[_0x2b8e2d(0x269)])(_0x2b8e2d(0x147),{'className':_0x2b8e2d(0x309),'children':_0x311135[_0x2b8e2d(0x29d)]});}function _0x3111aa(_0x5033ca,_0x40f481,_0x35ca29,_0xc45159,_0xda01f4,_0x2288b7){const _0x3ef013=_0x1104af;let _0x59b98a={'unitId':_0x40f481,'shapeId':_0xc45159,'shapeData':_0x2288b7,'oldShapeJSON':_0xda01f4};return _0x5033ca[_0x3ef013(0x1f3)](_0x5ac7da[_0x3ef013(0x30d)]['id'],_0x59b98a);}function _0x48189e(_0x1524ef,_0x43e41d,_0xbd30d2,_0x200c9d,_0xdc1ae7,_0x4ae9b4){const _0xb4446d=_0x1104af;let _0x322f0b={'unitId':_0x43e41d,'shapeId':_0x200c9d,'shapeData':_0x4ae9b4,'oldShapeJSON':_0xdc1ae7};return _0x1524ef[_0xb4446d(0x1f3)](_0x5ac7da['UpdateDocShapeDataCommand']['id'],_0x322f0b);}let _0x84635=class{constructor(_0x180f3b){this['_renderManagerService']=_0x180f3b;}['updateShapeFillImage'](_0x3a6590,_0x14bc3f){const _0x17d6c6=_0x1104af;let _0x188e92=this[_0x17d6c6(0x19c)][_0x17d6c6(0x1ca)](_0x3a6590['unitId']),_0x49d3fb=_0x188e92==null?void 0x0:_0x188e92[_0x17d6c6(0x38b)];if(!_0x49d3fb)return;let _0x33a173=(0x0,_0x53c637[_0x17d6c6(0x2e5)])(_0x3a6590),_0x2ffc04=_0x49d3fb[_0x17d6c6(0x2e8)](_0x33a173);_0x2ffc04==null||_0x2ffc04[_0x17d6c6(0x13d)](_0x14bc3f);}};_0x84635=_0x21e0a3([_0x3a726b(0x0,_0x4beb3c[_0x1104af(0x155)])],_0x84635);function _0xde9c72(){const _0x3fbeab=_0x1104af;let _0x1f0044=(0x0,_0x19675e[_0x3fbeab(0x379)])(_0x53c637[_0x3fbeab(0x13c)]),_0x4ba539=(0x0,_0x19675e['useObservable'])(()=>_0x1f0044[_0x3fbeab(0x2d7)],_0x1f0044[_0x3fbeab(0x13e)](),!0x1,[_0x1f0044]);return _0x4ba539[_0x3fbeab(0x281)]===0x0?null:(0x0,_0x47d1b0[_0x3fbeab(0x269)])(_0x3fbeab(0x147),{'children':(0x0,_0x47d1b0[_0x3fbeab(0x215)])(_0x3fbeab(0x147),{'className':_0x3fbeab(0x1db),'children':[(0x0,_0x47d1b0['jsx'])(_0x30bc3a[_0x3fbeab(0x3a7)],{'drawings':_0x4ba539,'hasCropper':!0x1}),(0x0,_0x47d1b0[_0x3fbeab(0x269)])(_0xe538da[_0x3fbeab(0x263)],{'drawings':_0x4ba539}),(0x0,_0x47d1b0[_0x3fbeab(0x269)])(_0xe538da[_0x3fbeab(0x1c3)],{'drawings':_0x4ba539})]})});}function _0x2eb68d(_0x1053b1){const _0x3b0bad=_0x1104af;let {unitId:_0x15691f,subUnitId:_0xd86fb7,shapeId:_0x37126d}=_0x1053b1,_0x1c62de=(0x0,_0x19675e[_0x3b0bad(0x379)])(_0x4e3c13[_0x3b0bad(0x166)]),_0x20f7cc=(0x0,_0x19675e['useDependency'])(_0x84635);return(0x0,_0x47d1b0[_0x3b0bad(0x269)])(_0x297fde[_0x3b0bad(0x2b4)],{..._0x1053b1,'positionEditor':(0x0,_0x47d1b0[_0x3b0bad(0x269)])(_0xde9c72,{}),'onUpdateShapeData':(_0x44011c,_0x3afce2)=>{_0x3111aa(_0x1c62de,_0x15691f,_0xd86fb7,_0x37126d,_0x44011c,_0x3afce2);},'onUpdateLineShapeData':(_0x4e781f,_0x4e5937)=>{_0x48189e(_0x1c62de,_0x15691f,_0xd86fb7,_0x37126d,_0x4e781f,_0x4e5937);},'onUpdateShapeFillImage':_0x40b421=>{_0x20f7cc['updateShapeFillImage']({'unitId':_0x15691f,'subUnitId':_0xd86fb7,'drawingId':_0x37126d},_0x40b421);}});}let _0x2c592e=_0x1104af(0x218);function _0x467273(_0x15dffd,_0x173648){const _0x24c833=_0x1104af;var _0x3d4e7b;let _0x2046ce=_0x15dffd==null||(_0x3d4e7b=_0x15dffd['getSnapshot']()['drawings'])==null?void 0x0:_0x3d4e7b[_0x173648];return _0x2046ce?_0x2046ce['layoutType']===_0x4e3c13[_0x24c833(0x212)]['WRAP_NONE']?_0x2046ce[_0x24c833(0x1e5)]===_0x4e3c13[_0x24c833(0x1ed)][_0x24c833(0x319)]?_0x5cbb0a['TextWrappingStyle'][_0x24c833(0x234)]:_0x5cbb0a[_0x24c833(0x140)][_0x24c833(0x1d8)]:_0x2046ce['layoutType']===_0x4e3c13[_0x24c833(0x212)][_0x24c833(0x26b)]?_0x5cbb0a['TextWrappingStyle'][_0x24c833(0x26b)]:_0x2046ce[_0x24c833(0x2f3)]===_0x4e3c13['PositionedObjectLayoutType'][_0x24c833(0x168)]?_0x5cbb0a[_0x24c833(0x140)][_0x24c833(0x168)]:_0x5cbb0a[_0x24c833(0x140)]['INLINE']:_0x5cbb0a[_0x24c833(0x140)][_0x24c833(0x364)];}function _0x5e882(_0x58f0c4){const _0x298cad=_0x1104af;let _0x5dab8a=_0x58f0c4[_0x298cad(0x307)][_0x298cad(0x278)],_0x52496a=(0x0,_0x19675e['useDependency'])(_0x4e3c13[_0x298cad(0x166)]),_0x244958=(0x0,_0x19675e[_0x298cad(0x379)])(_0x4e3c13[_0x298cad(0x324)]),_0x37eefd=(0x0,_0x19675e[_0x298cad(0x379)])(_0x5ac7da[_0x298cad(0x32b)]),_0x227f7e=(0x0,_0x19675e[_0x298cad(0x379)])(_0x4e3c13[_0x298cad(0x392)]),{unitId:_0x5da31e,subUnitId:_0x6216ef,drawingId:_0x360f8b,shapeType:_0x329029}=_0x5dab8a,[_0x1224e4,_0x3caf0a]=(0x0,_0x269570[_0x298cad(0x1c8)])(_0x5dab8a[_0x298cad(0x1eb)]),_0x329442=_0x227f7e[_0x298cad(0x374)](_0x5da31e,_0x4e3c13['UniverInstanceType'][_0x298cad(0x1f7)])??void 0x0,[_0x150b55,_0x14b17b]=(0x0,_0x269570[_0x298cad(0x1c8)])(()=>_0x467273(_0x329442,_0x360f8b)),_0x46bccd=(0x0,_0x269570['useMemo'])(()=>(0x0,_0x297fde['getTextStyle'])(_0x1224e4),[_0x1224e4]),_0x56a45c=(0x0,_0x269570[_0x298cad(0x362)])(()=>(0x0,_0x297fde[_0x298cad(0x231)])(_0x1224e4),[_0x1224e4]);(0x0,_0x269570[_0x298cad(0x25a)])(()=>{const _0x3ba0c9=_0x298cad;let _0x3b4367=_0x52496a[_0x3ba0c9(0x33d)](_0x43b435=>{const _0x379ab4=_0x3ba0c9;if(_0x43b435['id']!==_0x5ac7da[_0x379ab4(0x395)]['id'])return;let _0x56ab60=_0x37eefd[_0x379ab4(0x186)](_0x5da31e,_0x6216ef,_0x360f8b);_0x56ab60&&_0x3caf0a(_0x56ab60);});return()=>_0x3b4367[_0x3ba0c9(0x256)]();},[_0x52496a,_0x37eefd,_0x360f8b,_0x6216ef,_0x5da31e]);let _0x39c5f8=_0x4c5f2c=>{_0x3caf0a(_0x430732=>({..._0x430732,..._0x4c5f2c}));},_0x2b5dcb=_0x2e1f86=>{let _0x5c9e96=(0x0,_0x297fde['buildShapeTextDataUpdate'])(_0x1224e4,_0x2e1f86);_0x3111aa(_0x52496a,_0x5da31e,_0x6216ef,_0x360f8b,{'oldShapeData':{'shapeText':_0x1224e4['shapeText']}},_0x5c9e96),_0x39c5f8(_0x5c9e96);},_0x4e8a84=_0x1771da=>{const _0x204594=_0x298cad;_0x14b17b(_0x1771da),_0x52496a['executeCommand'](_0x5cbb0a[_0x204594(0x37a)]['id'],{'unitId':_0x5da31e,'subUnitId':_0x6216ef,'drawings':[{'unitId':_0x5da31e,'subUnitId':_0x6216ef,'drawingId':_0x360f8b}],'wrappingStyle':_0x1771da});},_0x221c30=(0x0,_0x297fde[_0x298cad(0x266)])({'hostType':_0x4e3c13['UniverInstanceType']['UNIVER_DOC'],'unitId':_0x5da31e,'subUnitId':_0x6216ef,'shapeId':_0x360f8b,'shapeData':_0x1224e4,'onUpdateBinding':_0x5ec195=>{const _0x2cedd8=_0x298cad;let _0x44ccd0={'formulaBinding':_0x5ec195};_0x3111aa(_0x52496a,_0x5da31e,_0x6216ef,_0x360f8b,{'oldShapeData':{'formulaBinding':_0x1224e4[_0x2cedd8(0x31a)]}},_0x44ccd0),_0x39c5f8(_0x44ccd0);}}),_0x30ee00=[{'label':_0x244958['t']('docs-shape-ui.textWrap.inline'),'value':_0x5cbb0a[_0x298cad(0x140)][_0x298cad(0x364)],'icon':(0x0,_0x47d1b0[_0x298cad(0x269)])(_0x3ab031,{})},{'label':_0x244958['t'](_0x298cad(0x194)),'value':_0x5cbb0a[_0x298cad(0x140)]['WRAP_SQUARE'],'icon':(0x0,_0x47d1b0[_0x298cad(0x269)])(_0x3ab031,{})},{'label':_0x244958['t'](_0x298cad(0x2e7)),'value':_0x5cbb0a[_0x298cad(0x140)]['WRAP_TOP_AND_BOTTOM'],'icon':(0x0,_0x47d1b0['jsx'])(_0x3ab031,{})},{'label':_0x244958['t']('docs-shape-ui.textWrap.behindText'),'value':_0x5cbb0a[_0x298cad(0x140)][_0x298cad(0x234)],'icon':(0x0,_0x47d1b0['jsx'])(_0x3ab031,{})},{'label':_0x244958['t'](_0x298cad(0x17d)),'value':_0x5cbb0a[_0x298cad(0x140)][_0x298cad(0x1d8)],'icon':(0x0,_0x47d1b0[_0x298cad(0x269)])(_0x3ab031,{})}];return(0x0,_0x47d1b0[_0x298cad(0x215)])(_0x47d1b0[_0x298cad(0x191)],{'children':[(0x0,_0x47d1b0[_0x298cad(0x269)])(_0x297fde[_0x298cad(0x13b)],{'shapeData':_0x1224e4,'shapeType':_0x329029,'textStyle':{'ff':_0x7d9a71[_0x298cad(0x2cf)][_0x298cad(0x34f)][_0x298cad(0x160)],'fs':_0x7d9a71[_0x298cad(0x2cf)][_0x298cad(0x34f)][_0x298cad(0x274)],'cl':{'rgb':_0x7d9a71[_0x298cad(0x2cf)][_0x298cad(0x34f)][_0x298cad(0x230)]},..._0x46bccd},'textModel':_0x56a45c?{'ha':_0x56a45c['ha']??_0x4e3c13['HorizontalAlign'][_0x298cad(0x157)],'va':_0x56a45c['va']??_0x4e3c13[_0x298cad(0x2d6)]['TOP']}:null,'wrappingStyle':_0x150b55,'wrappingStyleOptions':_0x30ee00,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x7d9a71[_0x298cad(0x2cf)]['fill'],'defaultGradientEndColor':_0x7d9a71[_0x298cad(0x2cf)][_0x298cad(0x227)],'defaultStrokeColor':_0x7d9a71['ShapeDefaultConfig'][_0x298cad(0x2db)],'extensionGroups':_0x221c30[_0x298cad(0x342)],'onUpdateShapeData':(_0x3d9078,_0x135e14)=>{_0x3111aa(_0x52496a,_0x5da31e,_0x6216ef,_0x360f8b,_0x3d9078,_0x135e14),_0x135e14&&_0x39c5f8(_0x135e14);},'onUpdateText':_0x2b5dcb,'onUpdateWrappingStyle':_0x2e20e6=>_0x4e8a84(_0x2e20e6),'onOpenPanel':()=>{const _0x1b7de7=_0x298cad;_0x52496a[_0x1b7de7(0x1f3)](_0x3eb699['id'],{'unitId':_0x5da31e,'subUnitId':_0x6216ef,'drawingId':_0x360f8b});},'onDelete':()=>{const _0x341e32=_0x298cad;_0x52496a[_0x341e32(0x1f3)](_0x5cbb0a[_0x341e32(0x380)]['id'],{'unitId':_0x5da31e,'drawings':[{'unitId':_0x5da31e,'subUnitId':_0x6216ef,'drawingId':_0x360f8b}]});}}),_0x221c30[_0x298cad(0x31b)]]});}function _0x44118d(_0x1b91f2){'@babel/helpers - typeof';const _0x188376=_0x1104af;return _0x44118d=typeof Symbol=='function'&&typeof Symbol[_0x188376(0x338)]==_0x188376(0x1f0)?function(_0x270ae7){return typeof _0x270ae7;}:function(_0x1f3c62){const _0x44ecc3=_0x188376;return _0x1f3c62&&typeof Symbol==_0x44ecc3(0x1ee)&&_0x1f3c62[_0x44ecc3(0x2ff)]===Symbol&&_0x1f3c62!==Symbol[_0x44ecc3(0x1b1)]?_0x44ecc3(0x1f0):typeof _0x1f3c62;},_0x44118d(_0x1b91f2);}function _0x97f8a9(_0x4cae7f,_0x327a6e){const _0x3f5eb2=_0x1104af;if(_0x44118d(_0x4cae7f)!=_0x3f5eb2(0x38c)||!_0x4cae7f)return _0x4cae7f;var _0x4f1da1=_0x4cae7f[Symbol[_0x3f5eb2(0x2f9)]];if(_0x4f1da1!==void 0x0){var _0x814558=_0x4f1da1[_0x3f5eb2(0x322)](_0x4cae7f,_0x327a6e||'default');if(_0x44118d(_0x814558)!=_0x3f5eb2(0x38c))return _0x814558;throw TypeError(_0x3f5eb2(0x144));}return(_0x327a6e===_0x3f5eb2(0x202)?String:Number)(_0x4cae7f);}function _0x2a0449(_0x37968b){const _0x4b6178=_0x1104af;var _0xb95ed6=_0x97f8a9(_0x37968b,'string');return _0x44118d(_0xb95ed6)==_0x4b6178(0x1f0)?_0xb95ed6:_0xb95ed6+'';}function _0x4730ad(_0x2588bc,_0x10745f,_0x4ee324){const _0x34c027=_0x1104af;return(_0x10745f=_0x2a0449(_0x10745f))in _0x2588bc?Object[_0x34c027(0x17f)](_0x2588bc,_0x10745f,{'value':_0x4ee324,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2588bc[_0x10745f]=_0x4ee324,_0x2588bc;}var _0x33d6bd=class extends _0x4e3c13[_0x1104af(0x220)]{constructor(..._0x1cacb3){const _0x4bf5ed=_0x1104af;super(..._0x1cacb3),_0x4730ad(this,_0x4bf5ed(0x3a3),new _0x3a7932[(_0x4bf5ed(0x2b2))](null)),_0x4730ad(this,_0x4bf5ed(0x2c5),this['_editingParams$']['asObservable']()),_0x4730ad(this,'_onSavingEditorData$',new _0x3a7932[(_0x4bf5ed(0x2b2))](!0x1)),_0x4730ad(this,_0x4bf5ed(0x28a),this[_0x4bf5ed(0x371)][_0x4bf5ed(0x244)]());}[_0x1104af(0x256)](){const _0x180d8e=_0x1104af;this['_editingParams$']['next'](null),this[_0x180d8e(0x3a3)][_0x180d8e(0x2a1)](),this[_0x180d8e(0x371)][_0x180d8e(0x304)](!0x1),this[_0x180d8e(0x371)][_0x180d8e(0x2a1)](),super[_0x180d8e(0x256)]();}[_0x1104af(0x210)](_0x232c46){const _0x187f56=_0x1104af;this['_editingParams$'][_0x187f56(0x304)](_0x232c46),_0x232c46??this[_0x187f56(0x371)][_0x187f56(0x304)](!0x1);}[_0x1104af(0x2d1)](_0x58eae0){const _0x2ed3bc=_0x1104af;this[_0x2ed3bc(0x371)]['next'](_0x58eae0);}[_0x1104af(0x3c2)](){const _0x2e9491=_0x1104af;return this[_0x2e9491(0x3a3)][_0x2e9491(0x1ef)]();}[_0x1104af(0x33f)](_0x58ec9b){const _0x5f4c75=_0x1104af;this[_0x5f4c75(0x3c2)]()&&(this[_0x5f4c75(0x2d1)](!0x0),requestAnimationFrame(()=>{const _0x6e420a=_0x5f4c75;this[_0x6e420a(0x210)](null);}));}[_0x1104af(0x1e3)](){const _0x59a41a=_0x1104af;this[_0x59a41a(0x3c2)]()&&this[_0x59a41a(0x210)](null);}};let _0x431507=(0x0,_0x269570[_0x1104af(0x37e)])(()=>{const _0x2c6405=_0x1104af;let _0x2992d9=(0x0,_0x19675e[_0x2c6405(0x379)])(_0x33d6bd),_0x4ae5b4=(0x0,_0x19675e[_0x2c6405(0x379)])(_0x5ac7da[_0x2c6405(0x32b)]),_0xd877d3=(0x0,_0x19675e[_0x2c6405(0x379)])(_0x53c637[_0x2c6405(0x13c)]),_0x72bff9=(0x0,_0x19675e[_0x2c6405(0x379)])(_0x4e3c13[_0x2c6405(0x166)]);return(0x0,_0x47d1b0[_0x2c6405(0x269)])(_0x297fde[_0x2c6405(0x34c)],{'adapter':(0x0,_0x269570[_0x2c6405(0x362)])(()=>({'getShapeModel':(_0x44d56c,_0x523702,_0x2810bc)=>_0x4ae5b4[_0x2c6405(0x2b9)](_0x44d56c,_0x523702,_0x2810bc),'getShapeData':(_0x5885da,_0x295739,_0x5440f1)=>_0x4ae5b4['getShapeDataById'](_0x5885da,_0x295739,_0x5440f1),'getDrawingTransform':(_0x35d756,_0x28434c,_0x46246a)=>{const _0x3f184d=_0x2c6405;let _0x16d312=_0xd877d3[_0x3f184d(0x320)]({'unitId':_0x35d756,'subUnitId':_0x28434c,'drawingId':_0x46246a});return _0x16d312==null?void 0x0:_0x16d312[_0x3f184d(0x3a2)];},'updateShapeText':({unitId:_0xe05ef4,shapeId:_0xee48ed,shapeText:_0x122b8d,oldShapeText:_0x1ecb76})=>{const _0x2d414c=_0x2c6405;_0x72bff9['executeCommand'](_0x5ac7da[_0x2d414c(0x30d)]['id'],{'unitId':_0xe05ef4,'shapeId':_0xee48ed,'shapeData':{'shapeText':_0x122b8d},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1ecb76}}});},'updateHostSize':({unitId:_0x4c65c2,subUnitId:_0xdbd6d7,shapeId:_0x181a6c,width:_0xbf884,height:_0x1060eb})=>{const _0x39cd03=_0x2c6405;_0x72bff9[_0x39cd03(0x1f3)](_0x5cbb0a[_0x39cd03(0x2ee)]['id'],{'unitId':_0x4c65c2,'subUnitId':_0xdbd6d7,'drawings':[{'drawingId':_0x181a6c,'key':_0x39cd03(0x22b),'value':{'width':_0xbf884,'height':_0x1060eb}}]});},'allowHostSizeShrink':({unitId:_0x119b29,subUnitId:_0x453b7a,shapeId:_0x411304})=>(0x0,_0x297fde[_0x2c6405(0x2ea)])(_0x4ae5b4[_0x2c6405(0x186)](_0x119b29,_0x453b7a,_0x411304))}),[_0x72bff9,_0x4ae5b4,_0xd877d3]),'editingService':_0x2992d9,'editorUnitId':_0x2b7171,'positionOptions':(0x0,_0x269570[_0x2c6405(0x362)])(()=>({'viewportKeys':{'main':_0x5585ad[_0x2c6405(0x192)][_0x2c6405(0x1d2)]}}),[])});}),_0x3ff7a8=class extends _0x4e3c13['Disposable']{constructor(_0x3c5216,_0x2939b7){const _0x10a754=_0x1104af;super(),this[_0x10a754(0x1fa)]=_0x3c5216,this[_0x10a754(0x1f9)]=_0x2939b7,this[_0x10a754(0x150)](),this[_0x10a754(0x389)]();}[_0x1104af(0x150)](){const _0x4c830c=_0x1104af;this[_0x4c830c(0x1f9)][_0x4c830c(0x2f8)](_0x4c830c(0x1cd))||this['disposeWithMe'](this[_0x4c830c(0x1f9)]['register']({'ObjectLayersIcon':_0x4a8940}));}[_0x1104af(0x389)](){const _0x4fd097=_0x1104af;this[_0x4fd097(0x3a0)](this[_0x4fd097(0x1fa)][_0x4fd097(0x339)](_0x23f350,_0x2eb68d)),this[_0x4fd097(0x3a0)](this[_0x4fd097(0x1fa)][_0x4fd097(0x339)](_0x2802a4,_0x2ad4aa)),this[_0x4fd097(0x3a0)](this[_0x4fd097(0x1fa)][_0x4fd097(0x339)](_0x2c592e,_0x5e882)),this[_0x4fd097(0x3a0)](this[_0x4fd097(0x1fa)][_0x4fd097(0x339)](_0x1afb3d,_0x297fde[_0x4fd097(0x1e2)])),this[_0x4fd097(0x3a0)](this[_0x4fd097(0x1fa)][_0x4fd097(0x339)](_0x4eff94,_0x511625)),this['disposeWithMe'](this[_0x4fd097(0x1fa)][_0x4fd097(0x339)](_0x4ed7cd,_0x2c0664)),this[_0x4fd097(0x1fa)]['get'](_0x30bc3a[_0x4fd097(0x38f)])||this['disposeWithMe'](this[_0x4fd097(0x1fa)]['register'](_0x30bc3a['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],_0xdd027b)),this[_0x4fd097(0x3a0)](this[_0x4fd097(0x1fa)][_0x4fd097(0x339)](_0x4fd097(0x15d),_0x431507));}};_0x3ff7a8=_0x21e0a3([_0x3a726b(0x0,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x19675e[_0x1104af(0x171)])),_0x3a726b(0x1,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x19675e['IconManager']))],_0x3ff7a8);var _0x4b9dac=class extends _0x4beb3c[_0x1104af(0x2ad)]{constructor(_0x1cefb0,_0x4ef88e){const _0xda5813=_0x1104af;super(_0x1cefb0,_0x4ef88e),_0x4730ad(this,_0xda5813(0x1d6),null),_0x4730ad(this,_0xda5813(0x358),null),_0x4730ad(this,_0xda5813(0x2c2),null),_0x4730ad(this,_0xda5813(0x152),null),_0x4ef88e&&this[_0xda5813(0x2af)](_0x4ef88e);}[_0x1104af(0x273)](){const _0x3f0bc2=_0x1104af;return{'unitId':this['_unitId'],'subUnitId':this[_0x3f0bc2(0x152)],'drawingId':this['_shapeId']};}[_0x1104af(0x2af)](_0x5c4faa){const _0x1becd2=_0x1104af;_0x5c4faa[_0x1becd2(0x19e)]!==void 0x0&&(this[_0x1becd2(0x1d6)]=_0x5c4faa[_0x1becd2(0x19e)]),_0x5c4faa[_0x1becd2(0x20a)]!==void 0x0&&(this[_0x1becd2(0x358)]=_0x5c4faa[_0x1becd2(0x20a)]),_0x5c4faa[_0x1becd2(0x262)]!==void 0x0&&(this[_0x1becd2(0x2c2)]=_0x5c4faa[_0x1becd2(0x262)]),_0x5c4faa[_0x1becd2(0x260)]!==void 0x0&&(this[_0x1becd2(0x152)]=_0x5c4faa[_0x1becd2(0x260)]),this[_0x1becd2(0x341)]({'width':_0x5c4faa[_0x1becd2(0x36b)],'height':_0x5c4faa['height']});}['_draw'](_0x10c737){const _0x50d6e8=_0x1104af;_0x4beb3c[_0x50d6e8(0x393)][_0x50d6e8(0x302)](_0x10c737,{'radius':_0x7d9a71[_0x50d6e8(0x2cf)][_0x50d6e8(0x197)],'fill':_0x7d9a71['ShapeDefaultConfig'][_0x50d6e8(0x25f)],'stroke':_0x7d9a71[_0x50d6e8(0x2cf)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function _0x13d1f7(_0xc6ae2f,_0x1f8db1,_0x4e6ddb){const _0x4c15fa=_0x1104af;let _0x166400=(0x0,_0x297fde[_0x4c15fa(0x241)])(_0xc6ae2f,{..._0x1f8db1,'dataModel':{..._0x1f8db1[_0x4c15fa(0x2d0)]??{},..._0x4e6ddb?{'doc':_0x4e6ddb}:null}}),_0x45b81f=(0x0,_0x297fde['resolveShapeTextEditorWrapStrategy'])(_0x166400);return{'clip':(0x0,_0x297fde['shouldClipShapeTextDocument'])(_0x166400,_0x45b81f),'wrapStrategy':_0x45b81f};}var _0x79ba4d=class extends _0x4beb3c[_0x1104af(0x2ad)]{constructor(_0x100699,_0x48b703){const _0x3509c4=_0x1104af;super(_0x100699,_0x48b703),_0x4730ad(this,_0x3509c4(0x3c6),void 0x0),_0x4730ad(this,_0x3509c4(0x3be),new _0x297fde[(_0x3509c4(0x1af))](()=>this[_0x3509c4(0x2e9)](!0x0),()=>this['_applyFormulaAutoFitSize']())),_0x4730ad(this,_0x3509c4(0x158),!0x0),_0x4730ad(this,_0x3509c4(0x3a4),_0x4e3c13[_0x3509c4(0x316)]['DRAWING_SHAPE']),_0x4730ad(this,_0x3509c4(0x2bb),!0x0),this[_0x3509c4(0x3c6)]={..._0x48b703},this[_0x3509c4(0x3be)]['setPresentation'](_0x48b703[_0x3509c4(0x31d)],_0x48b703[_0x3509c4(0x228)]!==!0x1),this['_init'](),this[_0x3509c4(0x1c2)]();}[_0x1104af(0x2c3)](){const _0x18bc99=_0x1104af;this[_0x18bc99(0x15f)][_0x18bc99(0x28f)](_0x25ec90=>{const _0x4c479d=_0x18bc99;this[_0x4c479d(0x174)](_0x25ec90);});}[_0x1104af(0x25b)](_0x26e295){const _0x5d0cf8=_0x1104af;this[_0x5d0cf8(0x3c6)][_0x5d0cf8(0x251)]=_0x26e295;}[_0x1104af(0x210)](_0x4a2177){const _0x49e153=_0x1104af;this['_props'][_0x49e153(0x2d4)]=_0x4a2177,this['makeDirty'](!0x0);}[_0x1104af(0x294)](_0x33675b,_0x969b49=!0x0){const _0x4a31d0=_0x1104af;this[_0x4a31d0(0x3be)][_0x4a31d0(0x2d2)](_0x33675b,_0x969b49),this[_0x4a31d0(0x3c6)]['formulaPresentation']=_0x33675b,this[_0x4a31d0(0x1c2)](),this[_0x4a31d0(0x2e9)](!0x0);}[_0x1104af(0x1c2)](){const _0x39a450=_0x1104af;let _0x2fbd23=this[_0x39a450(0x3c6)][_0x39a450(0x35b)],_0x32f538=_0x2fbd23['getShapeTextData'](),_0x281aec=(0x0,_0x297fde[_0x39a450(0x1be)])(_0x32f538==null?void 0x0:_0x32f538[_0x39a450(0x2d0)]),_0x36d823=_0x281aec==null?void 0x0:_0x281aec['doc'],_0x3f40b3=this[_0x39a450(0x3be)][_0x39a450(0x2fe)]();if(!_0x36d823||_0x3f40b3['length']===0x0)return;_0x2fbd23['updateContext']({'width':this[_0x39a450(0x36b)],'height':this[_0x39a450(0x285)]});let _0x3ce6c7=(0x0,_0x297fde[_0x39a450(0x318)])({'documentData':_0x3f40b3['map'](_0x90f060=>(0x0,_0x9a69b6['createShapeFormulaDocument'])(_0x36d823,_0x90f060)),'height':this[_0x39a450(0x285)],'shapeData':_0x2fbd23['getShapeData'](),'textRect':_0x2fbd23[_0x39a450(0x1e0)]({'left':0x0,'top':0x0,'width':this[_0x39a450(0x36b)],'height':this['height']}),'width':this[_0x39a450(0x36b)]});if(_0x3ce6c7){var _0x343401;this[_0x39a450(0x2f1)](_0x3ce6c7[_0x39a450(0x36b)],_0x3ce6c7['height']),(_0x343401=this['getScene']())==null||(_0x343401=_0x343401['getTransformer']())==null||_0x343401[_0x39a450(0x2d8)]();}}get['unitId'](){const _0x2506ff=_0x1104af;return this['_props'][_0x2506ff(0x262)];}get[_0x1104af(0x260)](){const _0x375723=_0x1104af;return this['_props'][_0x375723(0x260)];}['_updateSrcRectByTransform'](_0xf735e0){const _0x5cd5fa=_0x1104af;if(this[_0x5cd5fa(0x3c6)][_0x5cd5fa(0x298)]==null||!this[_0x5cd5fa(0x158)])return;let {width:_0x1ef86d,height:_0x118dcf}=this,{width:_0x31c935=0x0,height:_0x2861b6=0x0}=_0xf735e0[_0x5cd5fa(0x169)],{left:_0x18b8b7=0x0,top:_0x2e3583=0x0,right:_0x5b624a=0x0,bottom:_0x5356f9=0x0}=this[_0x5cd5fa(0x3c6)][_0x5cd5fa(0x298)],_0x37623b=_0x18b8b7,_0x4d73a5=_0x2e3583,_0x2fc029=_0x5b624a,_0x3bba1a=_0x5356f9,_0x1e9c26=!0x1;if(_0x31c935!==0x0&&_0x31c935!==_0x1ef86d){let _0x573f0e=_0x18b8b7/_0x31c935,_0x3bcab1=_0x5b624a/_0x31c935;_0x37623b=_0x1ef86d*_0x573f0e,_0x2fc029=_0x1ef86d*_0x3bcab1,_0x1e9c26=!0x0;}if(_0x2861b6!==0x0&&_0x2861b6!==_0x118dcf){let _0x2736d7=_0x2e3583/_0x2861b6,_0x91f354=_0x5356f9/_0x2861b6;_0x4d73a5=_0x118dcf*_0x2736d7,_0x3bba1a=_0x118dcf*_0x91f354,_0x1e9c26=!0x0;}_0x1e9c26&&this[_0x5cd5fa(0x355)]({'left':_0x37623b,'top':_0x4d73a5,'right':_0x2fc029,'bottom':_0x3bba1a});}[_0x1104af(0x355)](_0x3b0f87){const _0x1575c0=_0x1104af;this[_0x1575c0(0x3c6)][_0x1575c0(0x298)]=_0x3b0f87,this[_0x1575c0(0x2e9)](!0x0);}[_0x1104af(0x13d)](_0x216095){const _0x5cbfa2=_0x1104af;this[_0x5cbfa2(0x3c6)][_0x5cbfa2(0x2b6)]=_0x216095,this['makeDirty'](!0x0);}set[_0x1104af(0x3a2)](_0x39a1b2){this['_transform']=_0x39a1b2;}get[_0x1104af(0x3a2)](){const _0x2535ce=_0x1104af;this[_0x2535ce(0x2a3)]||this[_0x2535ce(0x303)]();let _0x292562=this[_0x2535ce(0x2a3)][_0x2535ce(0x2de)]();return this[_0x2535ce(0x3b8)](_0x292562);}get['shapeModel'](){const _0x1de41b=_0x1104af;return this['_props'][_0x1de41b(0x35b)];}get[_0x1104af(0x19e)](){const _0x507efd=_0x1104af;return this[_0x507efd(0x3c6)][_0x507efd(0x19e)];}get[_0x1104af(0x14b)](){const _0x3f02a1=_0x1104af;return _0x4beb3c['RENDER_CLASS_TYPE'][_0x3f02a1(0x3ac)];}['_draw'](_0x1674e5,_0x31e056,_0x5322f5,_0x1ae23c){const _0x22bd22=_0x1104af;let _0x1f0f40=this['_props'][_0x22bd22(0x35b)];if(!_0x1f0f40||!_0x31e056)return;let _0x38d86b=_0x5322f5??this['width'],_0xb15063=_0x1ae23c??this[_0x22bd22(0x285)],_0x4a5cae={'shapeType':_0x1f0f40['getShapeType'](),'width':_0x38d86b,'height':_0xb15063},_0x136e7f={'renderMode':_0x7d9a71['ShapeRenderModeEnum'][_0x22bd22(0x2ef)],'oKey':this[_0x22bd22(0x148)],'image':this[_0x22bd22(0x3c6)][_0x22bd22(0x2b6)],'angle':this['angle']};_0x1f0f40[_0x22bd22(0x1f2)](_0x4a5cae),_0x1674e5['save']();let _0x517aca={'top':0x0,'left':0x0,'width':_0x38d86b,'height':_0xb15063},_0x5836c3=_0x1f0f40[_0x22bd22(0x1d0)](_0x517aca);_0x5836c3?this[_0x22bd22(0x2d5)](_0x1674e5,_0x5836c3,_0x19af83=>{_0x1f0f40['render'](_0x19af83,_0x517aca,_0x136e7f);}):(this[_0x22bd22(0x141)](),_0x1f0f40['render'](_0x1674e5,_0x517aca,_0x136e7f)),_0x1674e5[_0x22bd22(0x2fa)]();let _0x2c27ca=_0x1f0f40[_0x22bd22(0x15c)](),_0x18f2af=_0x1f0f40[_0x22bd22(0x1e0)](_0x517aca),_0x2fb5fe=_0x1f0f40['isLineShape']();if(_0x2c27ca&&_0x18f2af&&!_0x2fb5fe){_0x1674e5[_0x22bd22(0x297)](),this['getState']()[_0x22bd22(0x333)]&&_0x1674e5['scale'](-0x1,0x1);let _0x4b079e=_0x38d86b/0x2,_0x4370e8=_0xb15063/0x2;_0x1674e5[_0x22bd22(0x20d)](-_0x4b079e,-_0x4370e8),_0x1674e5['beginPath'](),this['_drawShapeText'](_0x1674e5,_0x2c27ca,_0x18f2af),_0x1674e5[_0x22bd22(0x2fa)]();}}[_0x1104af(0x270)](_0x339332){}[_0x1104af(0x201)](_0x3a2f8b,_0x44af3d,_0x39faf3){const _0xdf0b22=_0x1104af;var _0x3f5e79;this[_0xdf0b22(0x3c6)][_0xdf0b22(0x2d4)]||(!((_0x3f5e79=_0x44af3d[_0xdf0b22(0x2d0)])!=null&&_0x3f5e79[_0xdf0b22(0x2ce)])&&_0xdf0b22(0x356)in _0x44af3d&&_0x44af3d[_0xdf0b22(0x356)]===!0x1?this[_0xdf0b22(0x1f6)](_0x3a2f8b,_0x44af3d,_0x39faf3):this['_drawRichText'](_0x3a2f8b,_0x44af3d,_0x39faf3));}[_0x1104af(0x1f6)](_0x1313b8,_0x336b6b,_0x12bcac){const _0x239112=_0x1104af;this[_0x239112(0x288)](_0x1313b8,{..._0x336b6b,'text':_0x336b6b[_0x239112(0x394)]??'','dataModel':{'doc':(0x0,_0x297fde[_0x239112(0x354)])(_0x336b6b,_0x239112(0x1e4)+this[_0x239112(0x148)])}},_0x12bcac);}[_0x1104af(0x288)](_0x322910,_0x541ba5,_0x2740ca){const _0x27601e=_0x1104af;(0x0,_0x297fde[_0x27601e(0x31c)])(_0x322910,this[_0x27601e(0x3be)],(_0x40cac8,_0x1a8ea5)=>{const _0xb62f11=_0x27601e;this[_0xb62f11(0x2ac)](_0x40cac8,_0x541ba5,_0x2740ca,_0x1a8ea5);});}['_drawRichTextLayer'](_0x172cdf,_0x394015,_0x10b878,_0x40afff){const _0x19c28a=_0x1104af;let _0x1f6ab2=this[_0x19c28a(0x3c6)][_0x19c28a(0x2a5)];if(!_0x394015['dataModel']||!_0x1f6ab2){_0x1f6ab2||console[_0x19c28a(0x207)](_0x19c28a(0x36f));return;}let _0x57894=(0x0,_0x297fde[_0x19c28a(0x1be)])(_0x394015['dataModel']);if(!_0x57894)return;let _0x2bd417=_0x57894[_0x19c28a(0x2ce)];if(!_0x2bd417)return;let _0x404124=(0x0,_0x9a69b6[_0x19c28a(0x18b)])(_0x2bd417,_0x40afff),_0x1cfd05=_0x57894['va']??_0x4e3c13[_0x19c28a(0x2d6)][_0x19c28a(0x35d)],_0x415ff3=_0x57894['ha']??_0x4e3c13[_0x19c28a(0x1a6)][_0x19c28a(0x157)],_0x36e1a5=_0x13d1f7(this['_props'][_0x19c28a(0x35b)][_0x19c28a(0x258)](),_0x394015,_0x404124),_0x69a263=_0x394015[_0x19c28a(0x277)],_0x22cf0d=new _0x4e3c13[(_0x19c28a(0x170))]((0x0,_0x297fde[_0x19c28a(0x21d)])(_0x404124,{'isHorizontal':_0x69a263!==!0x1,'textRect':_0x10b878,'verticalAlign':_0x1cfd05,'horizontalAlign':_0x415ff3,'wrapStrategy':_0x36e1a5[_0x19c28a(0x28d)]})),_0x2063bd=new _0x4beb3c[(_0x19c28a(0x36c))](_0x22cf0d),_0x431a03=_0x4beb3c[_0x19c28a(0x1c7)][_0x19c28a(0x36d)](_0x2063bd,_0x1f6ab2);_0x431a03[_0x19c28a(0x183)]();let _0x261e77=_0x431a03[_0x19c28a(0x382)]()['actualHeight'],_0x568d3d=(0x0,_0x297fde[_0x19c28a(0x30b)])({'contentHeight':_0x261e77,'verticalAlign':_0x1cfd05,'viewportHeight':_0x10b878[_0x19c28a(0x285)]});_0x22cf0d[_0x19c28a(0x1fe)]({'pageSize':{'width':_0x69a263===!0x1?_0x10b878[_0x19c28a(0x285)]:_0x10b878[_0x19c28a(0x36b)],'height':_0x568d3d[_0x19c28a(0x336)]}}),_0x22cf0d[_0x19c28a(0x315)]({'t':_0x568d3d[_0x19c28a(0x1c4)]}),_0x431a03[_0x19c28a(0x183)]();let _0x5b90a7=new _0x4beb3c['Documents'](_0x19c28a(0x2e0)+this[_0x19c28a(0x148)],_0x431a03,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x19c28a(0x2e9)](!0x0)});_0x5b90a7[_0x19c28a(0x2f1)](_0x10b878['width'],_0x568d3d[_0x19c28a(0x336)]),_0x172cdf['save'](),_0x172cdf['translateWithPrecision'](_0x10b878[_0x19c28a(0x39c)],_0x10b878[_0x19c28a(0x27a)]),_0x36e1a5['clip']&&(_0x172cdf['beginPath'](),_0x172cdf[_0x19c28a(0x2bd)](0x0,_0x568d3d[_0x19c28a(0x2fd)],_0x10b878['width'],_0x568d3d['clipHeight']),_0x172cdf[_0x19c28a(0x25d)]()),_0x568d3d['contentVerticalOffset']&&_0x172cdf[_0x19c28a(0x3af)](0x0,_0x568d3d['contentVerticalOffset']),_0x5b90a7[_0x19c28a(0x162)](_0x172cdf),_0x172cdf[_0x19c28a(0x2fa)](),_0x5b90a7[_0x19c28a(0x256)](),_0x431a03[_0x19c28a(0x256)](),_0x2063bd[_0x19c28a(0x256)](),_0x22cf0d[_0x19c28a(0x256)]();}[_0x1104af(0x33b)](_0x377178,_0x3127a8,_0x226854=!0x1){const _0x19206c=_0x1104af;if(!this[_0x19206c(0x295)])return this[_0x19206c(0x2e9)](!0x1),this;let {width:_0x2f2123,height:_0x29e7b9,left:_0x343d72,top:_0x5659fc}=this,_0xac8f9=this[_0x19206c(0x238)]();if(_0x2f2123=_0xac8f9['width'],_0x29e7b9=_0xac8f9['height'],_0x343d72=_0xac8f9[_0x19206c(0x39c)],_0x5659fc=_0xac8f9[_0x19206c(0x27a)],this[_0x19206c(0x2b1)](_0x3127a8)){let {top:_0x50f585,left:_0x363180,bottom:_0x26a73a,right:_0x493dd2}=_0x3127a8[_0x19206c(0x1d5)];if(_0x2f2123+this[_0x19206c(0x17c)]+_0x343d72<_0x363180||_0x493dd2<_0x343d72||_0x29e7b9+this[_0x19206c(0x17c)]+_0x5659fc<_0x50f585||_0x26a73a<_0x5659fc)return this;}let _0x41c046=_0x343d72+_0x2f2123/0x2,_0x4b9f22=_0x5659fc+_0x29e7b9/0x2,_0x510051=this['transform'][_0x19206c(0x261)]();if(this[_0x19206c(0x3c6)]['isEditing']){let _0x1eea2f=this[_0x19206c(0x2be)](),_0x1fc097=new _0x4beb3c['Transform']();_0x1fc097[_0x19206c(0x2a7)]({..._0x1eea2f}),_0x510051=_0x1fc097[_0x19206c(0x261)]();}return _0x377178[_0x19206c(0x297)](),this['_props'][_0x19206c(0x35b)][_0x19206c(0x27d)]===!0x0||_0x377178[_0x19206c(0x3a2)](_0x510051[0x0],_0x510051[0x1],_0x510051[0x2],_0x510051[0x3],_0x41c046,_0x4b9f22),this[_0x19206c(0x328)](_0x377178,_0x3127a8,_0x2f2123,_0x29e7b9),_0x377178['restore'](),this['makeDirty'](!0x1),this;}[_0x1104af(0x1d9)](_0x4c2fae){const _0x52227c=_0x1104af;let {left:_0x387530,top:_0x287f19,width:_0x2e3a0b,height:_0x2a569c}=this[_0x52227c(0x238)](),_0xc787ea=this[_0x52227c(0x3a2)][_0x52227c(0x261)](),_0x323e8d=_0x387530+_0x2e3a0b/0x2,_0x289823=_0x287f19+_0x2a569c/0x2,_0x382638=new _0x4beb3c['Transform']([_0xc787ea[0x0],_0xc787ea[0x1],_0xc787ea[0x2],_0xc787ea[0x3],_0x323e8d,_0x289823]),_0x1b8665=this[_0x52227c(0x16c)]();return(this[_0x52227c(0x331)]&&(_0x1b8665==null?void 0x0:_0x1b8665[_0x52227c(0x14b)])===_0x4beb3c[_0x52227c(0x17e)][_0x52227c(0x344)]?_0x1b8665[_0x52227c(0x1cb)][_0x52227c(0x1e7)](_0x382638):_0x382638)['invert']()[_0x52227c(0x35c)](_0x4c2fae);}[_0x1104af(0x1cc)](_0x50a8a3){const _0x4178f2=_0x1104af;let {left:_0x6379a9,top:_0x1b5699,width:_0x2acc06,height:_0x6e7291}=this['getRealBound'](),_0x15f3f0=_0x6379a9+_0x2acc06/0x2,_0xc8a739=_0x1b5699+_0x6e7291/0x2,_0x2d6dbd=this[_0x4178f2(0x3a2)][_0x4178f2(0x261)](),_0x1e3376=new _0x4beb3c['Transform']([_0x2d6dbd[0x0],_0x2d6dbd[0x1],_0x2d6dbd[0x2],_0x2d6dbd[0x3],_0x15f3f0,_0xc8a739]),_0xb5e4dd=this[_0x4178f2(0x16c)](),_0x34cd5a=(this[_0x4178f2(0x331)]&&(_0xb5e4dd==null?void 0x0:_0xb5e4dd[_0x4178f2(0x14b)])===_0x4beb3c[_0x4178f2(0x17e)]['GROUP']?_0xb5e4dd[_0x4178f2(0x1cb)][_0x4178f2(0x1e7)](_0x1e3376):_0x1e3376)['invert']()[_0x4178f2(0x35c)](_0x50a8a3),_0x6156cb=_0x2acc06/0x2,_0x47f31e=_0x6e7291/0x2,_0x1f46f1=this[_0x4178f2(0x3c6)][_0x4178f2(0x35b)];return _0x1f46f1&&_0x1f46f1[_0x4178f2(0x386)]()?_0x1f46f1['isHitLine'](_0x34cd5a['x'],_0x34cd5a['y'],_0x2acc06,_0x6e7291):_0x34cd5a['x']>=-_0x6156cb-this[_0x4178f2(0x17c)]/0x2&&_0x34cd5a['x']<=_0x6156cb+this[_0x4178f2(0x17c)]/0x2&&_0x34cd5a['y']>=-_0x47f31e-this[_0x4178f2(0x17c)]/0x2&&_0x34cd5a['y']<=_0x47f31e+this[_0x4178f2(0x17c)]/0x2;}['dispose'](){const _0xcc9b17=_0x1104af;this[_0xcc9b17(0x3be)]['dispose'](),this['_props'][_0xcc9b17(0x35b)]=null,super[_0xcc9b17(0x256)]();}};let _0x45b8f4=class extends _0x4e3c13[_0x1104af(0x220)]{constructor(_0x5a7e7b,_0x4b4378,_0xe2b22c,_0x57346f){const _0x41ce7d=_0x1104af;super(),this[_0x41ce7d(0x240)]=_0x5a7e7b,this[_0x41ce7d(0x3c5)]=_0x4b4378,this[_0x41ce7d(0x211)]=_0xe2b22c,this[_0x41ce7d(0x2cb)]=_0x57346f,_0x4730ad(this,_0x41ce7d(0x2ba),null),_0x4730ad(this,_0x41ce7d(0x2c2),null),_0x4730ad(this,_0x41ce7d(0x152),null),_0x4730ad(this,'_activeShapeAdjustPointList',void 0x0),_0x4730ad(this,_0x41ce7d(0x299),[]),_0x4730ad(this,'_baseShapeLeft',0x0),_0x4730ad(this,_0x41ce7d(0x32a),0x0),_0x4730ad(this,_0x41ce7d(0x1ab),0x0),_0x4730ad(this,_0x41ce7d(0x37b),0x0),_0x4730ad(this,_0x41ce7d(0x1e6),!0x1),_0x4730ad(this,'_isShouldShowDrawingShapeAdjust',!0x1),_0x4730ad(this,_0x41ce7d(0x2a4),void 0x0),_0x4730ad(this,_0x41ce7d(0x15a),void 0x0),_0x4730ad(this,_0x41ce7d(0x2bf),void 0x0),_0x4730ad(this,_0x41ce7d(0x2ab),void 0x0),this[_0x41ce7d(0x385)](),this[_0x41ce7d(0x3b3)]();}['clearAdjustControls'](){const _0x5c6dc2=_0x1104af;this[_0x5c6dc2(0x369)]();}[_0x1104af(0x3a6)](){const _0x53e286=_0x1104af;this[_0x53e286(0x293)](!0x0);}['_getShapeAdjustPointListById'](_0x21c752,_0x1d7c12,_0x5525e7){const _0x592961=_0x1104af;var _0x67aef1;return(_0x67aef1=this['_docsShapeService'][_0x592961(0x2b9)](_0x21c752,_0x1d7c12,_0x5525e7))==null?void 0x0:_0x67aef1['getDrawingPoints']();}['_getShapeAdjustInfosById'](_0x265fae,_0x55f31f,_0x17104d,_0x399ec5){const _0x1de1f6=_0x1104af;var _0x4f44bc;return(_0x4f44bc=this['_docsShapeService'][_0x1de1f6(0x2b9)](_0x265fae,_0x55f31f,_0x17104d))==null?void 0x0:_0x4f44bc[_0x1de1f6(0x151)](_0x399ec5);}[_0x1104af(0x153)](){const _0x3c68a0=_0x1104af;return this['_unitId']===null||this[_0x3c68a0(0x152)]===null||this[_0x3c68a0(0x2ba)]===null?null:this[_0x3c68a0(0x3c5)]['getDrawingByParam']({'unitId':this[_0x3c68a0(0x2c2)],'subUnitId':this[_0x3c68a0(0x152)],'drawingId':this[_0x3c68a0(0x2ba)]})??null;}[_0x1104af(0x188)](_0x4b54a2){const _0x2adaac=_0x1104af;if(this[_0x2adaac(0x2c2)]===null||this['_subUnitId']===null||this[_0x2adaac(0x2ba)]===null)return null;let _0x3f10cd=(0x0,_0x53c637['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x2adaac(0x2c2)],'subUnitId':this[_0x2adaac(0x152)],'drawingId':this[_0x2adaac(0x2ba)]}),_0x541510=_0x4b54a2['getObjectIncludeInGroup'](_0x3f10cd);return _0x541510 instanceof _0x79ba4d?_0x541510:null;}[_0x1104af(0x3c7)](_0x58a089=!0x1){const _0x24e02f=_0x1104af;if(this[_0x24e02f(0x2c2)]===null||this[_0x24e02f(0x152)]===null||this[_0x24e02f(0x2ba)]===null)return;let _0x216829=this[_0x24e02f(0x153)]();if((_0x216829==null?void 0x0:_0x216829['drawingType'])!==_0x4e3c13[_0x24e02f(0x316)][_0x24e02f(0x33e)]||!_0x216829[_0x24e02f(0x3a2)])return;let _0x402788=this[_0x24e02f(0x211)]['getShapeModel'](this[_0x24e02f(0x2c2)],this[_0x24e02f(0x152)],this[_0x24e02f(0x2ba)]);if(!_0x402788||_0x402788['isLineShape']())return;let {left:_0x2ea27f=0x0,top:_0x3712a8=0x0,width:_0x2db0c6=0x0,height:_0x13b965=0x0,flipX:_0x4da38a,flipY:_0x40a2b1,angle:_0x384edc=0x0}=_0x216829[_0x24e02f(0x3a2)];(_0x58a089||!this[_0x24e02f(0x190)])&&(_0x402788['updateContext']({'width':_0x2db0c6,'height':_0x13b965}),this[_0x24e02f(0x190)]=_0x402788[_0x24e02f(0x270)]());let _0x2ecafa=this[_0x24e02f(0x190)];if(!(_0x2ecafa!=null&&_0x2ecafa[_0x24e02f(0x281)]))return;let {scene:_0x1c7e70}=this[_0x24e02f(0x240)];for(let _0xbf769b of _0x2ecafa){let _0x24d3a3=this['_toVisualAdjustPoint'](_0xbf769b,_0x2db0c6,_0x13b965,!!_0x4da38a,!!_0x40a2b1,_0x384edc);this['_addShapeAdjustControl'](_0x1c7e70,_0x24d3a3,_0x24d3a3['adjName'],_0x2ea27f,_0x3712a8,this[_0x24e02f(0x2c2)],this[_0x24e02f(0x152)]);}}['_toVisualAdjustPoint'](_0x139356,_0x24998a,_0x2394b,_0x71379c,_0x382eb3,_0x3835b4){const _0x563b86=_0x1104af;let _0x1cf534=_0x139356['x'],_0x11e608=_0x139356['y'];if(_0x71379c&&(_0x1cf534=_0x24998a-_0x1cf534),_0x382eb3&&(_0x11e608=_0x2394b-_0x11e608),_0x3835b4!==0x0){let _0x56f5f6=_0x24998a/0x2,_0x8760b0=_0x2394b/0x2,_0x460644=_0x3835b4*Math['PI']/0xb4,_0x4273e7=Math['cos'](_0x460644),_0x4d85fd=Math[_0x563b86(0x22a)](_0x460644),_0x474282=_0x1cf534-_0x56f5f6,_0xc15371=_0x11e608-_0x8760b0;_0x1cf534=_0x56f5f6+(_0x474282*_0x4273e7-_0xc15371*_0x4d85fd),_0x11e608=_0x8760b0+(_0x474282*_0x4d85fd+_0xc15371*_0x4273e7);}return{'x':_0x1cf534,'y':_0x11e608,'adjName':_0x139356[_0x563b86(0x20a)]};}[_0x1104af(0x293)](_0x2fa920=!0x1){const _0x54e729=_0x1104af;_0x2fa920&&this[_0x54e729(0x369)](),this[_0x54e729(0x3c7)](_0x2fa920);}['_addShapeAdjustControl'](_0x1994a8,_0x11dff6,_0x461812,_0x36b8ae,_0x23b1f9,_0x197a7e,_0x48d48d){const _0x462bb1=_0x1104af;if(!this['_activeShapeId'])return;let _0x4063d3='doc-shape-adjust-point-'+this[_0x462bb1(0x2ba)]+'-'+_0x461812,_0x1f6695=_0x1994a8[_0x462bb1(0x2e8)](_0x4063d3);if(_0x1f6695){_0x1f6695[_0x462bb1(0x341)]({'left':_0x11dff6['x']+_0x36b8ae-_0x7d9a71[_0x462bb1(0x2cf)][_0x462bb1(0x197)],'top':_0x11dff6['y']+_0x23b1f9-_0x7d9a71[_0x462bb1(0x2cf)][_0x462bb1(0x197)]}),_0x1f6695[_0x462bb1(0x2e9)](!0x0);return;}let _0x2f9e5e=new _0x4b9dac(_0x4063d3,{'left':_0x11dff6['x']+_0x36b8ae-_0x7d9a71[_0x462bb1(0x2cf)][_0x462bb1(0x197)],'top':_0x11dff6['y']+_0x23b1f9-_0x7d9a71[_0x462bb1(0x2cf)][_0x462bb1(0x197)],'adjName':_0x461812,'shapeId':this[_0x462bb1(0x2ba)],'unitId':_0x197a7e,'subUnitId':_0x48d48d,'width':_0x7d9a71['ShapeDefaultConfig'][_0x462bb1(0x197)]+0x8,'height':_0x7d9a71[_0x462bb1(0x2cf)][_0x462bb1(0x197)]+0x8,'zIndex':_0x4beb3c[_0x462bb1(0x2da)]+0x1,'evented':!0x0});this['_adjustPointObjects']['push'](_0x2f9e5e),this[_0x462bb1(0x3ad)](_0x2f9e5e,_0x1994a8,_0x461812),_0x1994a8[_0x462bb1(0x15b)](_0x2f9e5e,_0x4beb3c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x1104af(0x369)](){const _0x2bc5c3=_0x1104af;this[_0x2bc5c3(0x299)]['forEach'](_0x1f24f9=>_0x1f24f9[_0x2bc5c3(0x256)]()),this['_adjustPointObjects']=[];}['_updateAdjustControlPositions'](){const _0x5718a0=_0x1104af;this[_0x5718a0(0x3c7)]();}[_0x1104af(0x3bc)](_0x4b50ac,_0x44d893,_0x503289){const _0x4e0e1c=_0x1104af;let _0xf81411=_0x4beb3c['Vector2'][_0x4e0e1c(0x1ec)]([_0x44d893,_0x503289]),_0x560bcc=_0x4b50ac[_0x4e0e1c(0x289)](_0xf81411)??_0x4b50ac['getViewports']()[0x0];return(_0x560bcc==null?void 0x0:_0x560bcc[_0x4e0e1c(0x296)](_0xf81411))??_0xf81411;}[_0x1104af(0x3ad)](_0x3e2caa,_0x5a849a,_0x33e0bd){const _0x294002=_0x1104af;this['disposeWithMe']((0x0,_0x4e3c13[_0x294002(0x14e)])(_0x3e2caa[_0x294002(0x2f7)][_0x294002(0x28f)]((_0x5803ce,_0x20269c)=>{const _0x1952f3=_0x294002;var _0x131c5b;let _0x563e6d=_0x3e2caa['getDrawingSearch']();this[_0x1952f3(0x2a4)]=this['_getShapeAdjustInfosById'](_0x563e6d['unitId'],_0x563e6d[_0x1952f3(0x260)],_0x563e6d['drawingId'],_0x33e0bd),this[_0x1952f3(0x15a)]=this[_0x1952f3(0x211)][_0x1952f3(0x2b9)](_0x563e6d[_0x1952f3(0x262)],_0x563e6d['subUnitId'],_0x563e6d['drawingId']);let _0x1450fb=this[_0x1952f3(0x153)](),_0x4284f6=_0x1450fb==null?void 0x0:_0x1450fb[_0x1952f3(0x3a2)];if(!_0x1450fb||!_0x4284f6||!this['_activeShapeModel'])return;this[_0x1952f3(0x24f)]=_0x4284f6[_0x1952f3(0x39c)]||0x0,this['_baseShapeTop']=_0x4284f6[_0x1952f3(0x27a)]||0x0,this[_0x1952f3(0x1ab)]=_0x4284f6[_0x1952f3(0x36b)]||0x0,this[_0x1952f3(0x37b)]=_0x4284f6[_0x1952f3(0x285)]||0x0;let _0x449b27=!!_0x4284f6['flipX'],_0x4ef28e=!!_0x4284f6[_0x1952f3(0x164)],_0x2bc84c=_0x4284f6[_0x1952f3(0x375)]||0x0,_0x569823={...((_0x131c5b=this['_activeAdjustInfo'])==null?void 0x0:_0x131c5b[_0x1952f3(0x361)])??{}};this[_0x1952f3(0x1e6)]=!0x0,_0x5a849a[_0x1952f3(0x242)](),this[_0x1952f3(0x2bf)]=_0x5a849a[_0x1952f3(0x1a7)][_0x1952f3(0x28f)]((_0x1a3483,_0x1796f5)=>{const _0x46f262=_0x1952f3;var _0xee2a75;if(!this['_isStartAdjusting']||!this[_0x46f262(0x15a)]||!this[_0x46f262(0x2a4)])return;_0x5a849a['disableObjectsEvent'](),_0x5a849a[_0x46f262(0x26d)](_0x4beb3c[_0x46f262(0x16e)][_0x46f262(0x2aa)]);let _0x344dc7=this[_0x46f262(0x3bc)](_0x5a849a,_0x1a3483['offsetX'],_0x1a3483[_0x46f262(0x276)]),_0x3e40d2=_0x344dc7['x']-this[_0x46f262(0x24f)],_0x54100a=_0x344dc7['y']-this[_0x46f262(0x32a)];if(_0x2bc84c!==0x0){let _0x132fa7=this[_0x46f262(0x1ab)]/0x2,_0x586fb9=this[_0x46f262(0x37b)]/0x2,_0x553862=_0x2bc84c*Math['PI']/0xb4,_0x1a658d=Math[_0x46f262(0x1a5)](_0x553862),_0x52fcc4=Math[_0x46f262(0x22a)](_0x553862),_0x5757b6=_0x3e40d2-_0x132fa7,_0x4f2b9b=_0x54100a-_0x586fb9;_0x3e40d2=_0x132fa7+(_0x5757b6*_0x1a658d+_0x4f2b9b*_0x52fcc4),_0x54100a=_0x586fb9+(-_0x5757b6*_0x52fcc4+_0x4f2b9b*_0x1a658d);}_0x449b27&&(_0x3e40d2=this['_baseShapeWidth']-_0x3e40d2),_0x4ef28e&&(_0x54100a=this[_0x46f262(0x37b)]-_0x54100a);let _0x282a2d={'left':0x0,'top':0x0,'width':this[_0x46f262(0x1ab)],'height':this[_0x46f262(0x37b)]},_0x109986=this[_0x46f262(0x15a)]['calcAdjValues'](_0x282a2d,{'x':_0x3e40d2,'y':_0x54100a},this[_0x46f262(0x2a4)],_0x449b27,_0x4ef28e);if(Object['keys'](_0x109986)['length']!==0x0){for(let [_0x53db33,_0x496c80]of Object['entries'](_0x109986))this['_activeShapeModel'][_0x46f262(0x1fb)](_0x53db33,_0x496c80);this['_activeShapeModel'][_0x46f262(0x1f2)]({'width':this[_0x46f262(0x1ab)],'height':this[_0x46f262(0x37b)]}),(_0xee2a75=this[_0x46f262(0x188)](_0x5a849a))==null||_0xee2a75[_0x46f262(0x2e9)](!0x0),this[_0x46f262(0x190)]=this['_getShapeAdjustPointListById'](_0x563e6d[_0x46f262(0x262)],_0x563e6d[_0x46f262(0x260)],_0x563e6d[_0x46f262(0x259)]),this[_0x46f262(0x23c)](),_0x1796f5[_0x46f262(0x1bf)]();}}),this[_0x1952f3(0x2ab)]=_0x5a849a['onPointerUp$'][_0x1952f3(0x28f)]((_0x2fa9da,_0x2102b9)=>{const _0x361cba=_0x1952f3;var _0x45ce38,_0xd27453;(_0x45ce38=this[_0x361cba(0x2bf)])==null||_0x45ce38[_0x361cba(0x21e)](),(_0xd27453=this[_0x361cba(0x2ab)])==null||_0xd27453['unsubscribe'](),_0x5a849a[_0x361cba(0x16d)]();let _0x30ab5e=this[_0x361cba(0x2a4)];if(_0x30ab5e&&this[_0x361cba(0x15a)]){let _0x58a17b={};for(let _0x30c918 of Object[_0x361cba(0x1b8)](_0x30ab5e['currentAdjustValues'])){let _0x48b1ca=this[_0x361cba(0x15a)][_0x361cba(0x2b8)](_0x30c918);_0x48b1ca!==void 0x0&&(_0x58a17b[_0x30c918]=_0x48b1ca);}Object[_0x361cba(0x1b8)](_0x58a17b)[_0x361cba(0x281)]>0x0&&_0x3111aa(this['_commandService'],_0x563e6d[_0x361cba(0x262)],_0x563e6d[_0x361cba(0x260)],_0x563e6d[_0x361cba(0x259)],{'oldShapeData':{'adjustValues':_0x569823}},{'adjustValues':_0x58a17b});}this['_activeAdjustInfo']=void 0x0,this[_0x361cba(0x15a)]=void 0x0,this[_0x361cba(0x1e6)]=!0x1,_0x5a849a[_0x361cba(0x2f5)](),_0x2102b9[_0x361cba(0x1bf)]();}),_0x20269c['stopPropagation']();})));}[_0x1104af(0x3b3)](){const _0x2fc6a7=_0x1104af;let {scene:_0x1b63bf}=this[_0x2fc6a7(0x240)],_0x12ac53=_0x1b63bf['getTransformerByCreate']();this[_0x2fc6a7(0x3a0)](_0x12ac53['changeStart$'][_0x2fc6a7(0x23f)](_0x28518b=>{const _0x28b268=_0x2fc6a7;this['_createShapeAdjustControls'](),_0x28518b[_0x28b268(0x16a)]!==null&&_0x28518b[_0x28b268(0x16a)][_0x28b268(0x22b)]===0x1&&_0x28518b[_0x28b268(0x16a)][_0x28b268(0x35e)]()[_0x28b268(0x304)]()[_0x28b268(0x28e)]instanceof _0x79ba4d&&(this[_0x28b268(0x349)]=!0x0);})),this[_0x2fc6a7(0x3a0)](_0x12ac53['changing$'][_0x2fc6a7(0x23f)](()=>{const _0x17eb8e=_0x2fc6a7;this[_0x17eb8e(0x349)]&&this['_clearShapeAdjustControls']();})),this[_0x2fc6a7(0x3a0)](_0x1b63bf[_0x2fc6a7(0x1d7)][_0x2fc6a7(0x28f)](()=>{this['_isShouldShowDrawingShapeAdjust']&&(this['_isShouldShowDrawingShapeAdjust']=!0x1,this['_createShapeAdjustControls']());})),this[_0x2fc6a7(0x3a0)](_0x12ac53[_0x2fc6a7(0x321)][_0x2fc6a7(0x23f)](()=>{const _0x1c2759=_0x2fc6a7;this[_0x1c2759(0x2c2)]&&this[_0x1c2759(0x152)]&&this[_0x1c2759(0x2ba)]&&(this[_0x1c2759(0x190)]=this['_getShapeAdjustPointListById'](this[_0x1c2759(0x2c2)],this[_0x1c2759(0x152)],this[_0x1c2759(0x2ba)]),this[_0x1c2759(0x23c)]());}));}[_0x1104af(0x385)](){const _0xaa8b91=_0x1104af;this['disposeWithMe'](this[_0xaa8b91(0x2cb)][_0xaa8b91(0x33d)](_0x391f56=>{const _0x58a18b=_0xaa8b91;if(_0x391f56['id']!==_0x5ac7da[_0x58a18b(0x395)]['id'])return;let {unitId:_0x27588d,shapeId:_0x4ec8fe}=_0x391f56[_0x58a18b(0x29b)];_0x27588d===this[_0x58a18b(0x2c2)]&&_0x4ec8fe===this[_0x58a18b(0x2ba)]&&this[_0x58a18b(0x3a6)]();})),this[_0xaa8b91(0x3a0)](this[_0xaa8b91(0x3c5)]['focus$'][_0xaa8b91(0x23f)](_0x1d579b=>{const _0x50eb21=_0xaa8b91;if(_0x1d579b[_0x50eb21(0x281)]===0x1){let _0x5c5c03=_0x1d579b[0x0],_0x20c64a=this[_0x50eb21(0x3c5)][_0x50eb21(0x320)](_0x5c5c03);if((_0x20c64a==null?void 0x0:_0x20c64a[_0x50eb21(0x3bd)])===_0x4e3c13[_0x50eb21(0x316)][_0x50eb21(0x33e)]){this[_0x50eb21(0x2ba)]=_0x5c5c03[_0x50eb21(0x259)],this[_0x50eb21(0x2c2)]=_0x5c5c03[_0x50eb21(0x262)],this[_0x50eb21(0x152)]=_0x5c5c03[_0x50eb21(0x260)],this[_0x50eb21(0x190)]=this['_getShapeAdjustPointListById'](_0x5c5c03[_0x50eb21(0x262)],_0x5c5c03[_0x50eb21(0x260)],_0x5c5c03[_0x50eb21(0x259)]),this[_0x50eb21(0x369)](),this['_createShapeAdjustControls']();return;}}this[_0x50eb21(0x2ba)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x50eb21(0x2c2)]=null,this['_subUnitId']=null,this[_0x50eb21(0x369)]();})),this[_0xaa8b91(0x3a0)]((0x0,_0x3a7932['merge'])(this[_0xaa8b91(0x3c5)][_0xaa8b91(0x286)],this['_drawingManagerService']['refreshTransform$'])[_0xaa8b91(0x23f)](_0x23d382=>{const _0x39ad9f=_0xaa8b91;var _0x53c27f;let _0x5a7e2a=_0x23d382[_0x39ad9f(0x233)](_0x59fc54=>_0x59fc54[_0x39ad9f(0x259)]===this[_0x39ad9f(0x2ba)]&&_0x59fc54['unitId']===this['_unitId']&&_0x59fc54['subUnitId']===this[_0x39ad9f(0x152)]);_0x5a7e2a&&((_0x53c27f=this[_0x39ad9f(0x3c5)][_0x39ad9f(0x320)](_0x5a7e2a))==null?void 0x0:_0x53c27f[_0x39ad9f(0x3bd)])===_0x4e3c13[_0x39ad9f(0x316)][_0x39ad9f(0x33e)]&&this[_0x39ad9f(0x293)](!0x0);})),this['disposeWithMe'](this[_0xaa8b91(0x3c5)]['remove$']['subscribe'](_0x4ea4e7=>{const _0x47dc00=_0xaa8b91;for(let _0x4e14be of _0x4ea4e7)this['_activeShapeId']===_0x4e14be[_0x47dc00(0x259)]&&(this[_0x47dc00(0x2ba)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x47dc00(0x2c2)]=null,this[_0x47dc00(0x152)]=null,this[_0x47dc00(0x369)]());}));}};_0x45b8f4=_0x21e0a3([_0x3a726b(0x1,_0x53c637[_0x1104af(0x13c)]),_0x3a726b(0x2,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x5ac7da[_0x1104af(0x32b)])),_0x3a726b(0x3,_0x4e3c13[_0x1104af(0x166)])],_0x45b8f4);function _0x31ad69(_0x1ce0a4){const _0x3cbc3f=_0x1104af;return _0x1ce0a4[_0x3cbc3f(0x337)]===!0x0||_0x1ce0a4[_0x3cbc3f(0x337)]===_0x4e3c13[_0x3cbc3f(0x1ed)][_0x3cbc3f(0x319)]||_0x1ce0a4[_0x3cbc3f(0x2f3)]===_0x4e3c13[_0x3cbc3f(0x212)]['WRAP_NONE']&&_0x1ce0a4[_0x3cbc3f(0x1e5)]===_0x4e3c13[_0x3cbc3f(0x1ed)]['TRUE']?_0x5585ad[_0x3cbc3f(0x2cc)]-0x1:_0x4beb3c[_0x3cbc3f(0x2da)];}let _0x9605a2=class extends _0x4e3c13['Disposable']{constructor(_0x4ede42,_0x3713e1,_0x1f4c09,_0x383a35,_0x544bf7,_0x34e8c1,_0x19819d){const _0x44b44b=_0x1104af;super(),this['_drawingManagerService']=_0x4ede42,this['_docsShapeService']=_0x3713e1,this['_localeService']=_0x1f4c09,this[_0x44b44b(0x280)]=_0x383a35,this[_0x44b44b(0x330)]=_0x544bf7,this[_0x44b44b(0x29c)]=_0x34e8c1,this[_0x44b44b(0x177)]=_0x19819d,_0x4730ad(this,'_formulaShapes',new Map()),this[_0x44b44b(0x3a0)](this[_0x44b44b(0x177)][_0x44b44b(0x1b4)][_0x44b44b(0x23f)](_0x3f5612=>{const _0x169813=_0x44b44b;var _0x17d8bc;(_0x17d8bc=this[_0x169813(0x1c9)][_0x169813(0x267)](this[_0x169813(0x14d)](_0x3f5612[_0x169813(0x262)],_0x3f5612[_0x169813(0x260)],_0x3f5612['shapeId'])))==null||_0x17d8bc['forEach'](_0x4c63d3=>_0x4c63d3['setFormulaPresentation'](_0x3f5612['presentation'],_0x3f5612['animationEnabled']));})),this[_0x44b44b(0x3a0)](this[_0x44b44b(0x3c5)][_0x44b44b(0x1de)][_0x44b44b(0x23f)](_0x43d130=>{const _0x1b9c02=_0x44b44b;_0x43d130[_0x1b9c02(0x291)](_0x4bf8dd=>{const _0x467fdf=_0x1b9c02;this['_shapeFormulaService']['unregister']({'unitId':_0x4bf8dd[_0x467fdf(0x262)],'subUnitId':_0x4bf8dd['subUnitId'],'shapeId':_0x4bf8dd[_0x467fdf(0x259)]}),this[_0x467fdf(0x1c9)][_0x467fdf(0x243)](this['_formulaKey'](_0x4bf8dd[_0x467fdf(0x262)],_0x4bf8dd[_0x467fdf(0x260)],_0x4bf8dd[_0x467fdf(0x259)]));});}));}[_0x1104af(0x18d)](_0x4d00fe,_0x1951e9){const _0x12482d=_0x1104af;let {transform:_0x10b7f4,drawingType:_0x3ae269,srcRect:_0x533438,prstGeom:_0x2185a4,groupId:_0x1ecaf8,unitId:_0x2ddd7c,subUnitId:_0x476283,drawingId:_0xa5851e,isMultiTransform:_0x2d29df,transforms:_0x502b10,hidden:_0x254e13,selectable:_0x235ac8}=_0x4d00fe;if(_0x3ae269!==_0x4e3c13[_0x12482d(0x316)]['DRAWING_SHAPE']||!this[_0x12482d(0x3c5)]['getDrawingVisible']()||_0x10b7f4==null)return;let _0x5c4443=this['_drawingManagerService'][_0x12482d(0x181)]();_0x5c4443&&_0x1951e9[_0x12482d(0x1b5)](_0x297fde[_0x12482d(0x2dc)]);let _0x4bc99c=_0x2d29df&&_0x502b10?_0x502b10:[_0x10b7f4],_0x22ca2e=[];for(let _0x5869df of _0x4bc99c){let {left:_0x23b0b0,top:_0xa1041,width:_0x48471f,height:_0x2a174e,angle:_0x3447f0,flipX:_0x1f57d2,flipY:_0x586da2,skewX:_0x5e02b9,skewY:_0xc31e88}=_0x5869df,_0x2b0a45=_0x4bc99c['indexOf'](_0x5869df),_0x14d6e0=(0x0,_0x53c637[_0x12482d(0x2e5)])({'unitId':_0x2ddd7c,'subUnitId':_0x476283,'drawingId':_0xa5851e},_0x2d29df?_0x2b0a45:void 0x0),_0x15a6e3=_0x1951e9[_0x12482d(0x2e8)](_0x14d6e0);if(_0x15a6e3!=null){let _0x315ed5={'unitId':_0x2ddd7c,'subUnitId':_0x476283,'shapeId':_0xa5851e};_0x15a6e3 instanceof _0x79ba4d&&this[_0x12482d(0x38e)](_0x15a6e3,_0x315ed5),_0x15a6e3[_0x12482d(0x341)]({'left':_0x23b0b0,'top':_0xa1041,'width':_0x48471f,'height':_0x2a174e,'angle':_0x3447f0,'flipX':_0x1f57d2,'flipY':_0x586da2,'skewX':_0x5e02b9,'skewY':_0xc31e88});continue;}let _0x23163d=this['_drawingManagerService'][_0x12482d(0x367)](_0x2ddd7c,_0x476283),_0x207c8d=_0x23163d[_0x12482d(0x37c)](_0xa5851e);if(_0x1951e9['getObjectIncludeInGroup'](_0x14d6e0)||!this[_0x12482d(0x3c5)]['getDrawingVisible']())continue;let _0x1e44ec=this[_0x12482d(0x211)]['getShapeModel'](_0x2ddd7c,_0x476283,_0xa5851e);if(!_0x1e44ec)continue;let _0x3f4026=(0x0,_0x7d9a71[_0x12482d(0x250)])(_0x1e44ec[_0x12482d(0x2f6)]()),_0x217307=_0x1e44ec[_0x12482d(0x258)]()[_0x12482d(0x31a)],_0x3e6813={'unitId':_0x2ddd7c,'subUnitId':_0x476283,'shapeId':_0xa5851e};_0x217307&&this[_0x12482d(0x177)][_0x12482d(0x339)](_0x3e6813,_0x217307);let _0x18f8c3=new _0x79ba4d(_0x14d6e0,{..._0x3f4026?{..._0x5869df,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5869df},'zIndex':_0x207c8d===-0x1?_0x23163d[_0x12482d(0x281)]-0x1:_0x207c8d,'shapeModel':_0x1e44ec,'localeService':this[_0x12482d(0x19a)],'shapeId':_0xa5851e,'unitId':_0x2ddd7c,'subUnitId':_0x476283,'visible':_0x254e13!==!0x0,'evented':_0x235ac8!==!0x1,'formulaPresentation':_0x217307?this[_0x12482d(0x177)]['getPresentation'](_0x3e6813):void 0x0,'animateFormulaPresentation':(_0x217307==null?void 0x0:_0x217307['animationEnabled'])!==!0x1});if(_0x217307){let _0x146c0d=this['_formulaKey'](_0x2ddd7c,_0x476283,_0xa5851e),_0x11f827=this[_0x12482d(0x1c9)]['get'](_0x146c0d)??new Set();_0x11f827['add'](_0x18f8c3),this['_formulaShapes'][_0x12482d(0x327)](_0x146c0d,_0x11f827);}this[_0x12482d(0x3a0)]((0x0,_0x4e3c13[_0x12482d(0x14e)])(_0x18f8c3['onDblclick$']['subscribeEvent']((_0x4ef512,_0x72c5be)=>{const _0x23bed4=_0x12482d;_0x1e44ec[_0x23bed4(0x386)]()||_0x217307||(this[_0x23bed4(0x29c)][_0x23bed4(0x210)]({'visible':!0x0,'unitId':_0x2ddd7c,'subUnitId':_0x476283,'shapeId':_0xa5851e,'shapeKey':_0x18f8c3[_0x23bed4(0x148)]}),_0x72c5be[_0x23bed4(0x1bf)]());}))),_0x1951e9[_0x12482d(0x15b)](_0x18f8c3,_0x31ad69(_0x4d00fe)),_0x5c4443&&_0x1951e9['attachTransformerTo'](_0x18f8c3),_0x1ecaf8&&(0x0,_0x30bc3a[_0x12482d(0x14c)])({'drawingId':_0x1ecaf8,'unitId':_0x2ddd7c,'subUnitId':_0x476283},_0x18f8c3,_0x1951e9,this['_drawingManagerService']),_0x2185a4!=null&&_0x18f8c3['setPrstGeom'](_0x2185a4),_0x533438!=null&&_0x18f8c3[_0x12482d(0x355)](_0x533438),this['_loadShapePictureFill'](_0x18f8c3,_0x1e44ec[_0x12482d(0x258)]()),_0x22ca2e[_0x12482d(0x209)](_0x18f8c3);}return _0x22ca2e;}[_0x1104af(0x14d)](_0x15fbaf,_0x14b82b,_0x4779d4){return _0x15fbaf+'\x00'+_0x14b82b+'\x00'+_0x4779d4;}['refreshFormulaPresentation'](_0x58aea1,_0x63f23e){const _0x439756=_0x1104af;let _0x424975=this['_docsShapeService'][_0x439756(0x2b9)](_0x63f23e[_0x439756(0x262)],_0x63f23e[_0x439756(0x260)],_0x63f23e[_0x439756(0x19e)]),_0x591784=_0x424975==null?void 0x0:_0x424975[_0x439756(0x258)]()['formulaBinding'],_0x2bda49=this[_0x439756(0x14d)](_0x63f23e['unitId'],_0x63f23e[_0x439756(0x260)],_0x63f23e[_0x439756(0x19e)]);if(_0x591784){this[_0x439756(0x177)][_0x439756(0x339)](_0x63f23e,_0x591784);let _0x363e4d=this[_0x439756(0x1c9)]['get'](_0x2bda49)??new Set();_0x363e4d[_0x439756(0x3b4)](_0x58aea1),this['_formulaShapes'][_0x439756(0x327)](_0x2bda49,_0x363e4d);}else{var _0xaa43c7;this[_0x439756(0x177)][_0x439756(0x219)](_0x63f23e),(_0xaa43c7=this[_0x439756(0x1c9)][_0x439756(0x267)](_0x2bda49))==null||_0xaa43c7[_0x439756(0x243)](_0x58aea1);}_0x58aea1['setFormulaPresentation'](_0x591784?this[_0x439756(0x177)]['getPresentation'](_0x63f23e):void 0x0,(_0x591784==null?void 0x0:_0x591784[_0x439756(0x33c)])!==!0x1);}['refreshShapeFillImage'](_0x313bd4){const _0x261a87=_0x1104af;let _0x7f6b54=_0x313bd4[_0x261a87(0x35b)][_0x261a87(0x258)](),_0x3ed57c=_0x7f6b54['fill'];if(!_0x3ed57c||_0x3ed57c[_0x261a87(0x3c3)]!==_0x7d9a71[_0x261a87(0x249)][_0x261a87(0x35a)]||!_0x3ed57c[_0x261a87(0x3a5)]){_0x313bd4[_0x261a87(0x13d)](void 0x0);return;}this[_0x261a87(0x284)](_0x313bd4,_0x7f6b54);}['_loadShapePictureFill'](_0x585556,_0xfa7f8a){const _0x260f78=_0x1104af;let _0x47fba8=_0xfa7f8a['fill'];if(!_0x47fba8||_0x47fba8[_0x260f78(0x3c3)]!==_0x7d9a71['ShapeFillEnum'][_0x260f78(0x35a)]||!_0x47fba8[_0x260f78(0x3a5)])return;let _0x81086c=_0x47fba8[_0x260f78(0x3a5)],_0x1f793f=_0x47fba8['fillImageSourceType']??_0x7d9a71[_0x260f78(0x1f8)][_0x260f78(0x176)],_0x738788=this['_imageIoService']['getImageSourceCache'](_0x81086c,_0x1f793f);if(_0x738788){_0x585556[_0x260f78(0x13d)](_0x738788);return;}this[_0x260f78(0x1fc)](_0x585556,_0x81086c,_0x1f793f);}async[_0x1104af(0x1fc)](_0x2a3d97,_0x409c43,_0x4a6dca){const _0x5f499d=_0x1104af;let _0x4f90c0;try{if(_0x4a6dca===_0x7d9a71[_0x5f499d(0x1f8)][_0x5f499d(0x3b2)])_0x4f90c0=await this[_0x5f499d(0x280)]['getImage'](_0x409c43);else{if(_0x4a6dca===_0x7d9a71['ImageSourceTypeEnum'][_0x5f499d(0x176)])try{_0x4f90c0=await this[_0x5f499d(0x330)]['getImage'](_0x409c43);}catch{_0x4f90c0=_0x409c43;}else _0x4f90c0=_0x409c43;}}catch(_0x584b50){console['error'](_0x5f499d(0x217),_0x584b50);return;}let _0x5d0182=new window[(_0x5f499d(0x365))]();_0x5d0182[_0x5f499d(0x2a2)]=()=>{const _0x498e17=_0x5f499d;this[_0x498e17(0x280)][_0x498e17(0x1a3)](_0x409c43,_0x4a6dca,_0x5d0182),_0x2a3d97['setFillImage'](_0x5d0182);},_0x5d0182[_0x5f499d(0x2c1)]=()=>{const _0x27a0c1=_0x5f499d;console[_0x27a0c1(0x1a1)](_0x27a0c1(0x203),_0x409c43);},_0x5d0182[_0x5f499d(0x38a)]=_0x4f90c0;}};_0x9605a2=_0x21e0a3([_0x3a726b(0x0,_0x53c637[_0x1104af(0x13c)]),_0x3a726b(0x1,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x5ac7da['DocsShapeService'])),_0x3a726b(0x2,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x4e3c13[_0x1104af(0x324)])),_0x3a726b(0x3,_0x4e3c13[_0x1104af(0x27f)]),_0x3a726b(0x4,_0x4e3c13[_0x1104af(0x225)]),_0x3a726b(0x5,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x33d6bd)),_0x3a726b(0x6,(0x0,_0x4e3c13['Inject'])(_0x9a69b6[_0x1104af(0x20f)]))],_0x9605a2);function _0xf47fcb(_0x5c99a9,_0x1deccc){const _0x357e8c=_0x1104af;let _0x2e932f=_0x5c99a9;for(;_0x2e932f;){if(_0x1deccc(_0x2e932f))return _0x2e932f;_0x2e932f=typeof _0x2e932f[_0x357e8c(0x16c)]==_0x357e8c(0x1ee)?_0x2e932f[_0x357e8c(0x16c)]():null;}return null;}function _0x2276b5(_0x2defce){return _0xf47fcb(_0x2defce,_0x19fffd=>_0x19fffd instanceof _0x79ba4d);}function _0x13f5d9(_0x24c2db){const _0x23d68b=_0x1104af;return(_0x24c2db==null?void 0x0:_0x24c2db[_0x23d68b(0x31a)])==null;}let _0x4519b5=class extends _0x4e3c13[_0x1104af(0x220)]{constructor(_0x5965b8,_0x3a5bee,_0x422d97,_0x48a1bd,_0x1afa50){const _0x2b3321=_0x1104af;super(),this[_0x2b3321(0x240)]=_0x5965b8,this['_shapeTextEditingService']=_0x3a5bee,this[_0x2b3321(0x3c5)]=_0x422d97,this[_0x2b3321(0x2cd)]=_0x48a1bd,this[_0x2b3321(0x211)]=_0x1afa50,_0x4730ad(this,'_lastEditingShapeKey',null),this[_0x2b3321(0x2bc)](),this['_initSelection'](),this[_0x2b3321(0x39f)]();}[_0x1104af(0x2bc)](){const _0x20cb57=_0x1104af;let {scene:_0x47ddef}=this[_0x20cb57(0x240)];this['disposeWithMe'](_0x47ddef[_0x20cb57(0x1dc)][_0x20cb57(0x28f)](_0x54d4b4=>{const _0x512431=_0x20cb57;let {offsetX:_0x15307a,offsetY:_0x28c511}=_0x54d4b4,_0x39bae3=_0x4beb3c[_0x512431(0x1b6)]['FromArray']([_0x15307a,_0x28c511]),_0xb4f114=_0x2276b5(_0x47ddef[_0x512431(0x1c5)](_0x39bae3))??this['_getFocusedShapeAtPoint'](_0x39bae3);if(_0xb4f114){let _0x55aa41=this['_docsShapeService'][_0x512431(0x2b9)](_0xb4f114[_0x512431(0x262)],_0xb4f114['subUnitId'],_0xb4f114[_0x512431(0x19e)]);if(!_0x55aa41||(0x0,_0x7d9a71[_0x512431(0x250)])(_0x55aa41[_0x512431(0x2f6)]())||!_0x13f5d9(_0x55aa41['getShapeData']()))return;this['_shapeTextEditingService'][_0x512431(0x210)]({'visible':!0x0,'unitId':_0xb4f114[_0x512431(0x262)],'subUnitId':_0xb4f114[_0x512431(0x260)],'shapeId':_0xb4f114[_0x512431(0x19e)],'shapeKey':_0xb4f114[_0x512431(0x148)]});}}));}[_0x1104af(0x239)](_0xb502e8){const _0x15fc0b=_0x1104af;let {scene:_0x305b4c}=this[_0x15fc0b(0x240)];return this[_0x15fc0b(0x3c5)][_0x15fc0b(0x13e)]()[_0x15fc0b(0x27e)](_0x5222a2=>_0x305b4c[_0x15fc0b(0x2e8)]((0x0,_0x53c637[_0x15fc0b(0x2e5)])(_0x5222a2)))[_0x15fc0b(0x233)](_0x8efd4d=>_0x8efd4d instanceof _0x79ba4d&&_0x8efd4d['isHit'](_0xb502e8))??null;}[_0x1104af(0x279)](){const _0x317891=_0x1104af;this[_0x317891(0x3a0)](this[_0x317891(0x3c5)][_0x317891(0x2d7)][_0x317891(0x23f)](_0x12049c=>{const _0x2d3b4e=_0x317891;if(_0x12049c[_0x2d3b4e(0x281)]===0x1){let _0x30f7dc=_0x12049c[0x0],_0xdb7822=this[_0x2d3b4e(0x3c5)]['getDrawingByParam'](_0x30f7dc);if((_0xdb7822==null?void 0x0:_0xdb7822[_0x2d3b4e(0x3bd)])===_0x4e3c13[_0x2d3b4e(0x316)][_0x2d3b4e(0x33e)]){let _0x6ec6f1=this[_0x2d3b4e(0x29c)][_0x2d3b4e(0x3c2)]();if((_0x6ec6f1==null?void 0x0:_0x6ec6f1[_0x2d3b4e(0x19e)])===_0x30f7dc['drawingId']&&_0x6ec6f1[_0x2d3b4e(0x295)])return;(0x0,_0x7d9a71['isConnectorShape'])(this['_docsShapeService']['getShapeType'](_0x30f7dc[_0x2d3b4e(0x262)],_0x30f7dc[_0x2d3b4e(0x260)],_0x30f7dc[_0x2d3b4e(0x259)]))&&this[_0x2d3b4e(0x29c)][_0x2d3b4e(0x210)](null);}else this[_0x2d3b4e(0x29c)][_0x2d3b4e(0x3c2)]()&&(this[_0x2d3b4e(0x29c)][_0x2d3b4e(0x2d1)](!0x0),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));}else this['_shapeTextEditingService'][_0x2d3b4e(0x3c2)]()&&(this[_0x2d3b4e(0x29c)][_0x2d3b4e(0x2d1)](!0x0),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));})),this[_0x317891(0x3a0)](this[_0x317891(0x3c5)][_0x317891(0x1de)][_0x317891(0x23f)](_0x23328c=>{const _0x464951=_0x317891;let _0x46bcc1=this[_0x464951(0x29c)]['getEditing']();_0x46bcc1&&_0x23328c[_0x464951(0x1a8)](_0x5834b7=>_0x5834b7[_0x464951(0x259)]===_0x46bcc1[_0x464951(0x19e)])&&this[_0x464951(0x29c)][_0x464951(0x210)](null);}));}[_0x1104af(0x39f)](){const _0x46dd0c=_0x1104af;this[_0x46dd0c(0x3a0)](this[_0x46dd0c(0x29c)][_0x46dd0c(0x2c5)][_0x46dd0c(0x23f)](_0x3788c8=>{const _0x1c0651=_0x46dd0c;let {scene:_0x4caf0e}=this[_0x1c0651(0x240)];if(this[_0x1c0651(0x1b2)]){let _0x71a7b1=_0x4caf0e[_0x1c0651(0x2e8)](this[_0x1c0651(0x1b2)]);_0x71a7b1&&_0x71a7b1[_0x1c0651(0x210)](!0x1);}if(_0x3788c8){let _0x12db1a=!!_0x3788c8[_0x1c0651(0x295)],_0x1219de=_0x4caf0e['getObjectIncludeInGroup'](_0x3788c8[_0x1c0651(0x1d3)]);_0x1219de&&(_0x1219de['setEditing'](_0x12db1a),this[_0x1c0651(0x1b2)]=_0x3788c8['shapeKey']),this['_contextService'][_0x1c0651(0x340)](_0x4e3c13[_0x1c0651(0x399)],_0x12db1a);}else this[_0x1c0651(0x1b2)]=null,this[_0x1c0651(0x2cd)][_0x1c0651(0x340)](_0x4e3c13[_0x1c0651(0x399)],!0x1);}));}};_0x4519b5=_0x21e0a3([_0x3a726b(0x1,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x33d6bd)),_0x3a726b(0x2,_0x53c637[_0x1104af(0x13c)]),_0x3a726b(0x3,_0x4e3c13['IContextService']),_0x3a726b(0x4,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x5ac7da[_0x1104af(0x32b)]))],_0x4519b5);let _0x2c224a=class extends _0x297fde[_0x1104af(0x2fc)]{constructor(_0x32702a,_0x4dd039,_0x243d53,_0x5d6609){super(_0x32702a,_0x4dd039,_0x243d53,_0x5d6609,{'componentKey':_0x1afb3d,'editorUnitId':_0x2b7171});}};_0x2c224a=_0x21e0a3([_0x3a726b(0x1,(0x0,_0x4e3c13['Inject'])(_0x19b019['DocSelectionManagerService'])),_0x3a726b(0x2,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x5585ad[_0x1104af(0x1a9)])),_0x3a726b(0x3,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x5585ad['DocSelectionRenderService']))],_0x2c224a);let _0x4b4d92=class extends _0x4e3c13['Disposable']{constructor(_0x3bac84,_0x33e262,_0x1a025f,_0x3ea5dc){const _0x88f397=_0x1104af;super(),this[_0x88f397(0x2cb)]=_0x3bac84,this[_0x88f397(0x19c)]=_0x33e262,this[_0x88f397(0x3c5)]=_0x1a025f,this[_0x88f397(0x32e)]=_0x3ea5dc,this['_initialize']();}[_0x1104af(0x232)](){const _0x189286=_0x1104af;this[_0x189286(0x3a0)](this['_drawingManagerService'][_0x189286(0x3bb)][_0x189286(0x23f)](_0xb0ed95=>this[_0x189286(0x23d)](_0xb0ed95))),this['disposeWithMe'](this[_0x189286(0x3c5)]['update$']['subscribe'](_0x50d628=>{const _0x4e7bbc=_0x189286;_0x50d628[_0x4e7bbc(0x291)](_0x4ef591=>this['_updateShape'](_0x4ef591));})),this[_0x189286(0x3a0)](this[_0x189286(0x2cb)][_0x189286(0x33d)](_0x3c3dee=>{const _0x20625e=_0x189286;if(_0x3c3dee['id']!==_0x5ac7da['UpdateDocShapeDataMutation']['id'])return;let {unitId:_0x5e0edf,shapeId:_0x369781}=_0x3c3dee['params'];this[_0x20625e(0x1e1)]({'unitId':_0x5e0edf,'subUnitId':_0x5e0edf,'drawingId':_0x369781});}));}[_0x1104af(0x23d)](_0x11b50b){const _0x4dec52=_0x1104af;_0x11b50b[_0x4dec52(0x291)](_0x383b7a=>{const _0x57284e=_0x4dec52;var _0x1d1408;let _0x22d2f3=this[_0x57284e(0x1f1)](_0x383b7a[_0x57284e(0x262)]);if(!_0x22d2f3)return;let _0x3892d6=this['_drawingManagerService'][_0x57284e(0x320)](_0x383b7a);(_0x3892d6==null?void 0x0:_0x3892d6[_0x57284e(0x3bd)])===_0x4e3c13['DrawingTypeEnum'][_0x57284e(0x33e)]&&((0x0,_0x7d9a71['isConnectorShape'])((_0x1d1408=_0x3892d6[_0x57284e(0x14a)])==null?void 0x0:_0x1d1408[_0x57284e(0x1b7)])&&_0x3892d6[_0x57284e(0x3a2)]&&(_0x3892d6[_0x57284e(0x3a2)]={..._0x3892d6[_0x57284e(0x3a2)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}),this[_0x57284e(0x32e)]['renderDrawingShape'](_0x3892d6,_0x22d2f3['scene']));});}[_0x1104af(0x3b6)](_0x24db81){const _0x3cafc8=_0x1104af;let _0x2ff51f=this['_drawingManagerService'][_0x3cafc8(0x320)](_0x24db81);if((_0x2ff51f==null?void 0x0:_0x2ff51f[_0x3cafc8(0x3bd)])!==_0x4e3c13[_0x3cafc8(0x316)][_0x3cafc8(0x33e)])return;let _0x1c0c44=this['_getSceneByUnitId'](_0x24db81[_0x3cafc8(0x262)]);if(!_0x1c0c44||_0x2ff51f[_0x3cafc8(0x3a2)]==null)return;let _0x19f5a7=(0x0,_0x53c637[_0x3cafc8(0x2e5)])(_0x24db81),_0xfe9413=_0x1c0c44[_0x3cafc8(0x38b)][_0x3cafc8(0x2e8)](_0x19f5a7);_0xfe9413&&(_0xfe9413[_0x3cafc8(0x355)](_0x2ff51f[_0x3cafc8(0x298)]),_0xfe9413[_0x3cafc8(0x25b)](_0x2ff51f['prstGeom']),_0xfe9413[_0x3cafc8(0x2e9)](!0x0));}[_0x1104af(0x1e1)](_0x35c342){const _0x3ffa4d=_0x1104af;let _0x17c25e=this[_0x3ffa4d(0x1f1)](_0x35c342[_0x3ffa4d(0x262)]);if(!_0x17c25e)return;let _0x2db03e=(0x0,_0x53c637[_0x3ffa4d(0x2e5)])(_0x35c342),_0x57778f=_0x17c25e[_0x3ffa4d(0x38b)][_0x3ffa4d(0x2e8)](_0x2db03e);_0x57778f&&(this[_0x3ffa4d(0x32e)][_0x3ffa4d(0x21c)](_0x57778f),this[_0x3ffa4d(0x32e)][_0x3ffa4d(0x38e)](_0x57778f,{'unitId':_0x35c342[_0x3ffa4d(0x262)],'subUnitId':_0x35c342[_0x3ffa4d(0x260)],'shapeId':_0x35c342[_0x3ffa4d(0x259)]}),_0x57778f['makeDirty'](!0x0));}[_0x1104af(0x1f1)](_0x20c856){const _0x2775c3=_0x1104af;if(_0x20c856==null)return null;let _0x35e1a5=this['_renderManagerService']['getRenderUnitById'](_0x20c856),_0x1668cc=_0x35e1a5==null?void 0x0:_0x35e1a5[_0x2775c3(0x38b)];return _0x1668cc==null?null:{'scene':_0x1668cc};}};_0x4b4d92=_0x21e0a3([_0x3a726b(0x0,_0x4e3c13[_0x1104af(0x166)]),_0x3a726b(0x1,_0x4beb3c[_0x1104af(0x155)]),_0x3a726b(0x2,_0x53c637[_0x1104af(0x13c)]),_0x3a726b(0x3,(0x0,_0x4e3c13['Inject'])(_0x9605a2))],_0x4b4d92);let _0x1323cc=class extends _0x4e3c13['Disposable']{constructor(_0x359189,_0x3ee408,_0x4cbf33,_0x48f95e,_0x4c5344,_0x2f83b5,_0x29db61,_0x2f6c6c,_0x24a008,_0x212d65,_0x21f8fb){const _0x2315b7=_0x1104af;super(),this['_univerInstanceService']=_0x359189,this[_0x2315b7(0x39e)]=_0x3ee408,this['_menuManagerService']=_0x4cbf33,this['_docsShapeService']=_0x48f95e,this[_0x2315b7(0x19a)]=_0x4c5344,this[_0x2315b7(0x2cb)]=_0x2f83b5,this[_0x2315b7(0x3c5)]=_0x29db61,this[_0x2315b7(0x32f)]=_0x2f6c6c,this[_0x2315b7(0x19c)]=_0x24a008,this[_0x2315b7(0x2cd)]=_0x212d65,this[_0x2315b7(0x29c)]=_0x21f8fb,_0x4730ad(this,_0x2315b7(0x2a6),null),_0x4730ad(this,_0x2315b7(0x254),null),_0x4730ad(this,_0x2315b7(0x23a),!0x1),_0x4730ad(this,_0x2315b7(0x396),0x0),_0x4730ad(this,_0x2315b7(0x30c),new Set()),_0x4730ad(this,_0x2315b7(0x34a),[]),this[_0x2315b7(0x387)](),this[_0x2315b7(0x3a0)](this[_0x2315b7(0x271)]['getCurrentTypeOfUnit$'](_0x4e3c13[_0x2315b7(0x310)][_0x2315b7(0x1f7)])[_0x2315b7(0x23f)](_0x19fe07=>{const _0x45a80a=_0x2315b7;if(!_0x19fe07){var _0x53e86a;(_0x53e86a=this[_0x45a80a(0x2a6)])==null||_0x53e86a[_0x45a80a(0x256)]();return;}this[_0x45a80a(0x2f4)](_0x19fe07);})),this[_0x2315b7(0x283)](),this[_0x2315b7(0x206)](),this['disposeWithMe'](this[_0x2315b7(0x29c)][_0x2315b7(0x2c5)]['subscribe'](_0x195e4c=>{_0x195e4c&&this['_clearPopups']();}));}[_0x1104af(0x387)](){const _0x1b85ef=_0x1104af;this[_0x1b85ef(0x182)]['mergeMenu'](_0x5653f1);}['_initShapePopupMenu'](){const _0x2a1755=_0x1104af;this[_0x2a1755(0x271)][_0x2a1755(0x22f)](_0x4e3c13['UniverInstanceType'][_0x2a1755(0x1f7)])['forEach'](_0x271b81=>this[_0x2a1755(0x2f4)](_0x271b81));}['getShapePopupMenus'](_0x41121f,_0xeec2a4,_0x2ccd62,_0x1fc6e8){const _0x1a389e=_0x1104af;return[{'label':_0x1a389e(0x1b9),'index':0x0,'commandId':_0x3eb699['id'],'commandParams':{'unitId':_0x41121f,'subUnitId':_0xeec2a4,'drawingId':_0x2ccd62},'disable':_0x1fc6e8===_0x4e3c13[_0x1a389e(0x316)][_0x1a389e(0x2e1)]},{'label':_0x1a389e(0x19b),'index':0x1,'commandId':_0x5cbb0a['RemoveDocDrawingCommand']['id'],'commandParams':{'unitId':_0x41121f,'drawings':[{'unitId':_0x41121f,'subUnitId':_0xeec2a4,'drawingId':_0x2ccd62}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':_0x208de0['id'],'commandParams':{'unitId':_0x41121f,'subUnitId':_0xeec2a4,'drawingId':_0x2ccd62},'disable':!0x1}];}['_getShapeInfo'](_0x34a69b,_0x2cccbd,_0x200343){const _0x3b1fa2=_0x1104af;let _0x5de581=this[_0x3b1fa2(0x211)]['getShapeTypeById'](_0x34a69b,_0x2cccbd,_0x200343),_0x1dfbb4=this[_0x3b1fa2(0x211)][_0x3b1fa2(0x186)](_0x34a69b,_0x2cccbd,_0x200343);return _0x5de581!==void 0x0&&_0x1dfbb4!==void 0x0?{'shapeData':_0x1dfbb4,'shapeId':_0x200343,'shapeType':_0x5de581,'unitId':_0x34a69b,'subUnitId':_0x2cccbd,'version':this[_0x3b1fa2(0x396)],'disableShapeOption':!0x1}:null;}[_0x1104af(0x2f4)](_0x516ba6){const _0x3391b8=_0x1104af;if(!_0x516ba6)return;let _0x3c1478=_0x516ba6[_0x3391b8(0x189)]();this[_0x3391b8(0x19c)][_0x3391b8(0x2f8)](_0x3c1478)&&!this[_0x3391b8(0x30c)]['has'](_0x3c1478)&&(this[_0x3391b8(0x32c)](_0x3c1478),this[_0x3391b8(0x30c)][_0x3391b8(0x3b4)](_0x3c1478));}[_0x1104af(0x14f)](){const _0x51dc6c=_0x1104af;this[_0x51dc6c(0x34a)][_0x51dc6c(0x291)](_0x43d955=>_0x43d955[_0x51dc6c(0x256)]()),this['_disposePopups'][_0x51dc6c(0x281)]=0x0;}['_popupMenuListener'](_0x67d4c6){const _0x4f4f15=_0x1104af;var _0x2135d1;let _0x5ce2f2=(_0x2135d1=this[_0x4f4f15(0x19c)][_0x4f4f15(0x1ca)](_0x67d4c6))==null?void 0x0:_0x2135d1[_0x4f4f15(0x38b)],_0xc2a70b=_0x5ce2f2==null?void 0x0:_0x5ce2f2['getTransformerByCreate']();!_0x5ce2f2||!_0xc2a70b||(this[_0x4f4f15(0x3a0)](_0xc2a70b[_0x4f4f15(0x213)][_0x4f4f15(0x23f)](()=>{const _0x2dc747=_0x4f4f15;let _0x20d06f=_0xc2a70b[_0x2dc747(0x1bc)]();if(this[_0x2dc747(0x14f)](),this[_0x2dc747(0x23a)]||_0x20d06f['size']>0x1)return;let _0x2114f0=_0x20d06f[_0x2dc747(0x35e)]()[_0x2dc747(0x304)]()['value'];if(!_0x2114f0)return;let _0x116799=this[_0x2dc747(0x3c5)][_0x2dc747(0x2ae)](_0x2114f0[_0x2dc747(0x148)]);if(!_0x116799||_0x116799[_0x2dc747(0x3bd)]!==_0x4e3c13[_0x2dc747(0x316)]['DRAWING_SHAPE'])return;let {unitId:_0x5b27c4,subUnitId:_0x1ad416,drawingId:_0x3061bb,drawingType:_0x10b1d2}=_0x116799,_0x3b1301=this['_getShapeInfo'](_0x5b27c4,_0x1ad416,_0x3061bb);if(!_0x3b1301)return;let _0x13f608=this[_0x2dc747(0x32f)][_0x2dc747(0x351)](_0x2114f0,{'componentKey':_0x2c592e,'direction':'top-center','offset':[0x0,_0x297fde[_0x2dc747(0x20b)]],'extraProps':{'unitId':_0x5b27c4,'subUnitId':_0x1ad416,'drawingId':_0x3061bb,'drawingType':_0x10b1d2,'shapeType':_0x3b1301[_0x2dc747(0x1b7)],'shapeData':_0x3b1301[_0x2dc747(0x1eb)]}},_0x5b27c4);this[_0x2dc747(0x34a)][_0x2dc747(0x209)](this[_0x2dc747(0x3a0)](_0x13f608)),this[_0x2dc747(0x3c5)][_0x2dc747(0x13e)]()[_0x2dc747(0x233)](_0x1b8eff=>_0x1b8eff[_0x2dc747(0x262)]===_0x5b27c4&&_0x1b8eff[_0x2dc747(0x260)]===_0x1ad416&&_0x1b8eff['drawingId']===_0x3061bb)||this[_0x2dc747(0x3c5)][_0x2dc747(0x22e)]([{'unitId':_0x5b27c4,'subUnitId':_0x1ad416,'drawingId':_0x3061bb}]);})),this[_0x4f4f15(0x3a0)](_0xc2a70b['clearControl$'][_0x4f4f15(0x23f)](()=>{const _0x36dfe=_0x4f4f15;this[_0x36dfe(0x14f)](),this['_contextService'][_0x36dfe(0x340)](_0x4e3c13[_0x36dfe(0x359)],!0x1),this['_drawingManagerService'][_0x36dfe(0x22e)](null);})),this['disposeWithMe'](_0xc2a70b[_0x4f4f15(0x145)]['subscribe'](()=>{this['_clearPopups']();})),this[_0x4f4f15(0x3a0)](_0xc2a70b['changeStart$'][_0x4f4f15(0x23f)](()=>{const _0x3bffb0=_0x4f4f15;this[_0x3bffb0(0x14f)]();})));}['_registerOperations'](){const _0x50aa80=_0x1104af;this[_0x50aa80(0x3a0)](this['_commandService'][_0x50aa80(0x33d)](_0x3bb240=>{const _0x38911f=_0x50aa80;if(_0x3bb240['id']===_0x3eb699['id']){let {unitId:_0x331abf,subUnitId:_0x10b337,drawingId:_0x1cf9c4}=_0x3bb240[_0x38911f(0x29b)];this[_0x38911f(0x396)]+=0x1,this[_0x38911f(0x254)]=this[_0x38911f(0x2ca)](_0x331abf,_0x10b337,_0x1cf9c4),this['_clearPopups'](),this[_0x38911f(0x32d)]();}if(_0x3bb240['id']===_0x208de0['id']&&(this[_0x38911f(0x254)]=null,this[_0x38911f(0x252)]()),_0x3bb240['id']===_0x5ac7da[_0x38911f(0x395)]['id']){let {unitId:_0x24de78,shapeId:_0x2367aa}=_0x3bb240['params'];if(this[_0x38911f(0x254)]&&this[_0x38911f(0x254)][_0x38911f(0x19e)]===_0x2367aa){let _0x1e43ec=this[_0x38911f(0x2ca)](_0x24de78,this['_activeShapeInfo'][_0x38911f(0x260)],_0x2367aa);_0x1e43ec&&(this[_0x38911f(0x396)]+=0x1,_0x1e43ec[_0x38911f(0x185)]=this['_shapeEditPanelVersion'],this[_0x38911f(0x254)]=_0x1e43ec,this[_0x38911f(0x23a)]&&this[_0x38911f(0x32d)]());}}})),this[_0x50aa80(0x3a0)](this[_0x50aa80(0x3c5)][_0x50aa80(0x2d7)][_0x50aa80(0x23f)](_0x455935=>{const _0x3612ef=_0x50aa80;if(this[_0x3612ef(0x23a)]===!0x1)return;if(_0x455935[_0x3612ef(0x281)]===0x0){this[_0x3612ef(0x254)]=null,this[_0x3612ef(0x252)]();return;}if(_0x455935['length']===0x1&&_0x455935[0x0][_0x3612ef(0x3bd)]===_0x4e3c13[_0x3612ef(0x316)]['DRAWING_SHAPE']&&(this[_0x3612ef(0x396)]+=0x1,this[_0x3612ef(0x254)]=this[_0x3612ef(0x2ca)](_0x455935[0x0][_0x3612ef(0x262)],_0x455935[0x0]['subUnitId'],_0x455935[0x0][_0x3612ef(0x259)]),this[_0x3612ef(0x254)])){this[_0x3612ef(0x32d)]();return;}let _0x382654=_0x455935[_0x3612ef(0x22c)](_0x17150a=>_0x17150a[_0x3612ef(0x3bd)]===_0x4e3c13[_0x3612ef(0x316)]['DRAWING_SHAPE']);if(_0x455935['length']>0x1&&_0x382654[_0x3612ef(0x281)]===_0x455935['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x3612ef(0x254)]=this['_getShapeInfo'](_0x455935[0x0][_0x3612ef(0x262)],_0x455935[0x0][_0x3612ef(0x260)],_0x455935[0x0][_0x3612ef(0x259)]),this[_0x3612ef(0x254)]){this[_0x3612ef(0x32d)]();return;}}else{if(this[_0x3612ef(0x396)]+=0x1,this[_0x3612ef(0x254)]=this[_0x3612ef(0x2ca)](_0x455935[0x0]['unitId'],_0x455935[0x0][_0x3612ef(0x260)],_0x455935[0x0][_0x3612ef(0x259)]),this[_0x3612ef(0x254)]){this['_activeShapeInfo'][_0x3612ef(0x2a9)]=!0x0,this[_0x3612ef(0x32d)]();return;}}this[_0x3612ef(0x252)]();}));}[_0x1104af(0x32d)](){const _0x1dfae2=_0x1104af;this['_activeShapeInfo']&&(this[_0x1dfae2(0x2a6)]=this[_0x1dfae2(0x39e)][_0x1dfae2(0x13f)]({'id':_0x23f350,'header':{'title':this[_0x1dfae2(0x19a)]['t'](_0x1dfae2(0x305))},'width':0x184,'children':{'label':_0x23f350,...this['_activeShapeInfo']},'onClose':()=>{const _0x4ed482=_0x1dfae2;this['_drawingManagerService'][_0x4ed482(0x22e)](null),this['_contextService'][_0x4ed482(0x340)](_0x4e3c13[_0x4ed482(0x359)],!0x1),this[_0x4ed482(0x2a6)]=null;}}),this[_0x1dfae2(0x23a)]=!0x0);}['_closeShapeEditPanel'](){const _0x10471a=_0x1104af;this[_0x10471a(0x23a)]=!0x1,this['_sidebarService'][_0x10471a(0x13a)](_0x23f350),this[_0x10471a(0x2a6)]=null,this[_0x10471a(0x2cd)]['setContextValue'](_0x4e3c13['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x10471a(0x3c5)][_0x10471a(0x22e)](null);}};_0x1323cc=_0x21e0a3([_0x3a726b(0x0,_0x4e3c13['IUniverInstanceService']),_0x3a726b(0x1,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x19675e[_0x1104af(0x1f4)])),_0x3a726b(0x2,_0x19675e[_0x1104af(0x2c4)]),_0x3a726b(0x3,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x5ac7da[_0x1104af(0x32b)])),_0x3a726b(0x4,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x4e3c13[_0x1104af(0x324)])),_0x3a726b(0x5,_0x4e3c13['ICommandService']),_0x3a726b(0x6,_0x53c637['IDrawingManagerService']),_0x3a726b(0x7,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x5585ad[_0x1104af(0x1a9)])),_0x3a726b(0x8,_0x4beb3c[_0x1104af(0x155)]),_0x3a726b(0x9,_0x4e3c13[_0x1104af(0x377)]),_0x3a726b(0xa,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x33d6bd))],_0x1323cc);let _0x3330e8=class extends _0x4e3c13['Plugin']{constructor(_0x47d184=_0x36c198,_0x4462a1,_0x12c8bd,_0x17d1fa,_0x469dea){const _0x197aff=_0x1104af;super(),this['_config']=_0x47d184,this[_0x197aff(0x3bf)]=_0x4462a1,this['_commandService']=_0x12c8bd,this[_0x197aff(0x3ae)]=_0x17d1fa,this['_renderManagerService']=_0x469dea;let {menu:_0x299ba1,..._0x4d5c24}=(0x0,_0x4e3c13[_0x197aff(0x255)])({},_0x36c198,this[_0x197aff(0x347)]);_0x299ba1&&this['_configService'][_0x197aff(0x22d)](_0x197aff(0x3b5),_0x299ba1,{'merge':!0x0}),this[_0x197aff(0x3ae)][_0x197aff(0x22d)](_0x197aff(0x2c7),_0x4d5c24),this[_0x197aff(0x2f0)]();}[_0x1104af(0x245)](){const _0x1932f3=_0x1104af;this['_injector']['add']([_0x3ff7a8]),this[_0x1932f3(0x3bf)][_0x1932f3(0x267)](_0x3ff7a8),(0x0,_0x4e3c13[_0x1932f3(0x2dd)])(this[_0x1932f3(0x3bf)],[[_0x1323cc],[_0x4b4d92],[_0x9605a2],[_0x45b8f4],[_0x12183a],[_0x84635],[_0x33d6bd]]),this['_initUIPart']();}['onReady'](){const _0x5f0f5f=_0x1104af;this['_renderManagerService'][_0x5f0f5f(0x350)](_0x4e3c13['UniverInstanceType'][_0x5f0f5f(0x1f7)],[_0x45b8f4]),this['_renderManagerService'][_0x5f0f5f(0x350)](_0x4e3c13[_0x5f0f5f(0x310)][_0x5f0f5f(0x1f7)],[_0x4519b5]),this['_renderManagerService']['registerRenderModule'](_0x4e3c13['UniverInstanceType']['UNIVER_DOC'],[_0x2c224a]),(0x0,_0x4e3c13[_0x5f0f5f(0x368)])(this[_0x5f0f5f(0x3bf)],[[_0x1323cc],[_0x4b4d92],[_0x9605a2],[_0x12183a],[_0x84635],[_0x33d6bd]]);}[_0x1104af(0x2f0)](){const _0x2548ce=_0x1104af;[_0x24d59f,_0x208de0,_0x3eb699,_0x21fd05]['forEach'](_0x2a5cc6=>this[_0x2548ce(0x3a0)](this[_0x2548ce(0x2cb)][_0x2548ce(0x398)](_0x2a5cc6)));}[_0x1104af(0x264)](){const _0x5b0f58=_0x1104af;let _0xd939ee=this[_0x5b0f58(0x3bf)],_0x128566=_0xd939ee[_0x5b0f58(0x267)](_0x19675e[_0x5b0f58(0x30a)]);this[_0x5b0f58(0x3a0)](_0x128566[_0x5b0f58(0x253)](_0x19675e['BuiltInUIPart'][_0x5b0f58(0x1bd)],()=>(0x0,_0x19675e[_0x5b0f58(0x370)])(_0x431507,_0xd939ee)));}};_0x4730ad(_0x3330e8,_0x1104af(0x26f),_0x4e3c13[_0x1104af(0x310)][_0x1104af(0x1f7)]),_0x4730ad(_0x3330e8,_0x1104af(0x329),'DOCS_SHAPE_UI_PLUGIN'),_0x4730ad(_0x3330e8,_0x1104af(0x29a),_0x492dbd),_0x4730ad(_0x3330e8,_0x1104af(0x185),_0x2f7166),_0x3330e8=_0x21e0a3([(0x0,_0x4e3c13[_0x1104af(0x21b)])(_0x3e511b[_0x1104af(0x221)],_0x19b019[_0x1104af(0x312)],_0x53c637[_0x1104af(0x21a)],_0x30bc3a[_0x1104af(0x300)],_0x4beb3c[_0x1104af(0x376)],_0x5585ad[_0x1104af(0x29e)],_0x9a69b6[_0x1104af(0x2d9)],_0xe538da[_0x1104af(0x1df)],_0x5ac7da[_0x1104af(0x1c0)],_0x297fde['UniverShapeEditorUIPlugin']),_0x3a726b(0x1,(0x0,_0x4e3c13[_0x1104af(0x156)])(_0x4e3c13[_0x1104af(0x143)])),_0x3a726b(0x2,_0x4e3c13[_0x1104af(0x166)]),_0x3a726b(0x3,_0x4e3c13[_0x1104af(0x24b)]),_0x3a726b(0x4,_0x4beb3c[_0x1104af(0x155)])],_0x3330e8),_0x5d90f2[_0x1104af(0x366)]=_0x5653f1,Object['defineProperty'](_0x5d90f2,'UniverDocsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return _0x3330e8;}});}));