@univerjs-pro/docs-shape-ui 1.0.2 → 1.0.4

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 (93) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/commands/command/update-doc-drawing-metadata.command.d.ts +15 -0
  62. package/lib/types/commands/menu/object-list.menu.d.ts +4 -0
  63. package/lib/types/controllers/shape-text-editing.render-controller.d.ts +2 -3
  64. package/lib/types/controllers/shape-text-hyper-link.render-controller.d.ts +9 -0
  65. package/lib/types/view-model/drawing-shape.d.ts +2 -0
  66. package/lib/types/view-model/shape-data-model.d.ts +8 -0
  67. package/lib/types/views/ShapeOptions.d.ts +26 -0
  68. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +12 -0
  69. package/lib/types/views/shape-editor-panel/index.d.ts +1 -0
  70. package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +1 -0
  71. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +2 -0
  72. package/lib/types/views/shapes.d.ts +58 -0
  73. package/lib/umd/index.js +1 -1
  74. package/lib/umd/locale/ar-SA.js +1 -1
  75. package/lib/umd/locale/ca-ES.js +1 -1
  76. package/lib/umd/locale/de-DE.js +1 -1
  77. package/lib/umd/locale/en-US.js +1 -1
  78. package/lib/umd/locale/es-ES.js +1 -1
  79. package/lib/umd/locale/fa-IR.js +1 -1
  80. package/lib/umd/locale/fr-FR.js +1 -1
  81. package/lib/umd/locale/id-ID.js +1 -1
  82. package/lib/umd/locale/it-IT.js +1 -1
  83. package/lib/umd/locale/ja-JP.js +1 -1
  84. package/lib/umd/locale/ko-KR.js +1 -1
  85. package/lib/umd/locale/pl-PL.js +1 -1
  86. package/lib/umd/locale/pt-BR.js +1 -1
  87. package/lib/umd/locale/ru-RU.js +1 -1
  88. package/lib/umd/locale/sk-SK.js +1 -1
  89. package/lib/umd/locale/vi-VN.js +1 -1
  90. package/lib/umd/locale/zh-CN.js +1 -1
  91. package/lib/umd/locale/zh-HK.js +1 -1
  92. package/lib/umd/locale/zh-TW.js +1 -1
  93. package/package.json +20 -20
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ed081=_0x5aa0;(function(_0x1ba713,_0x25b889){const _0x5d924f=_0x5aa0,_0x4dec90=_0x1ba713();while(!![]){try{const _0x4e89ce=parseInt(_0x5d924f(0x282))/0x1*(-parseInt(_0x5d924f(0x391))/0x2)+-parseInt(_0x5d924f(0x319))/0x3+parseInt(_0x5d924f(0x3ca))/0x4+-parseInt(_0x5d924f(0x404))/0x5*(parseInt(_0x5d924f(0x422))/0x6)+-parseInt(_0x5d924f(0x44e))/0x7*(-parseInt(_0x5d924f(0x448))/0x8)+parseInt(_0x5d924f(0x229))/0x9+parseInt(_0x5d924f(0x3f0))/0xa;if(_0x4e89ce===_0x25b889)break;else _0x4dec90['push'](_0x4dec90['shift']());}catch(_0x47abc5){_0x4dec90['push'](_0x4dec90['shift']());}}}(_0x4208,0xa86fe));import{FormulaShapeAnimationController as _0x297674,MobileShapeEditorControls as _0x3de1f7,MobileShapeEditorService as _0x1adc39,MobileShapePickerPanel as _0x28df4e,SHAPE_CHANGE_PICKER_COMPONENT as _0x528b39,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x45b1c1,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x1fa496,ShapeEditPanel as _0x528db9,ShapeFloatingToolbar as _0x28d84d,ShapeFloatingToolbarService as _0xd408b5,ShapeFloatingToolbarToggleFactory as _0x290bb3,ShapeFormulaRibbonControl as _0x1c996f,ShapeGroupEnum as _0x4f9fa7,ShapePickerDropdown as _0x506c5f,ShapePickerPanel as _0x104054,ShapeQuickStyleGallery as _0x3c43fb,ShapeStyleRibbonControl as _0x4f30f7,ShapeTextEditorContainer as _0x3e1e99,ShapeTextFloatMenuRenderControllerBase as _0x4fa01d,ShapeTextFloatToolbar as _0x1ff31b,ShapeTextHyperLinkPopupService as _0x491613,ShapeTextRibbonControl as _0xb93f52,ToggleShapeFloatingToolbarOperation as _0x1c8b61,UniverShapeEditorMobileUIPlugin as _0x2f7ef7,UniverShapeEditorUIPlugin as _0xf08f8c,activateDrawingObject as _0x58d512,bindRenderTransformerLifecycle as _0x40ac78,buildShapeTextDataUpdate as _0x4aa220,clearActiveDrawingObjects as _0x55746c,drawFormulaShapeAnimationLayers as _0xbd9d06,getDrawingTypeNameKey as _0x58a6be,getTextModel as _0x11d450,getTextStyle as _0x1257eb,normalizeShapeTextModel as _0x2e2427,plainShapeTextToDocumentData as _0x105325,prepareShapeTextDocumentData as _0x25ec96,prepareShapeTextDocumentData as _0x2bb33c,registerShapeFormatPainter as _0x688a39,resolveFormulaShapeAutoFitSize as _0x209b99,resolveShapeContextualRibbonHostMode as _0x557f66,resolveShapeTextDocumentPageHeight as _0x5a1b24,resolveShapeTextDocumentRenderLayout as _0x191558,resolveShapeTextEditorBehaviorShapeData as _0xe70f41,resolveShapeTextEditorWrapStrategy as _0x55fcc9,shouldAllowShapeTextEditorHostSizeShrink as _0x345c86,shouldClipShapeTextDocument as _0x2b8d55,useFormulaShapeToolbar as _0x4f9d08}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x47a510,DOC_CONTENT_INSERT_MENU_ID as _0x551466,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x31fd56,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x3e65d4,DocCanvasPopManagerService as _0xe084e0,DocEventManagerService as _0x4420fc,DocLayoutInteractionService as _0x23c4ef,DocParagraphMenuService as _0x33fce6,DocPrintInterceptorService as _0x10ee9c,DocRenderController as _0x299248,DocSelectionRenderService as _0x3272e9,EMPTY_PARAGRAPH_MENU_ID as _0x2babac,INSERT_BELLOW_MENU_ID as _0xb3dfee,UniverDocsMobileUIPlugin as _0x4ba3d5,UniverDocsUIPlugin as _0x44d973,VIEWPORT_KEY as _0x384053}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x32804c,ComponentManager as _0x1bfb02,ContextMenuGroup as _0x40e83e,ContextMenuPosition as _0x4bb22c,FloatingObjectToolbarPosition as _0x2b3178,FormatPainterSessionService as _0x2cd412,IMenuManagerService as _0x206d0b,IRibbonService as _0x356848,ISidebarService as _0x1357e7,IUIPartsService as _0x4e8829,IconManager as _0x2a264a,MenuItemType as _0x2f080a,MenuManagerPosition as _0x548c7b,MobileMenu as _0xc85ff4,ObjectPermissionButton as _0x54a7e7,RibbonInsertGroup as _0x2d4568,connectInjector as _0x30129e,getMenuHiddenObservable as _0x513eb1,useDependency as _0x5c5c3d,useObservable as _0x2f0836}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x4ea882,DEFAULT_DOC_SHAPE_WIDTH as _0x313d3d,DocShapeAnchorPosition as _0x4b20f2,DocsShapeService as _0x39396e,InsertDocShapeCommand as _0xc29dcd,UniverDocsShapePlugin as _0x2d0bed,UpdateDocDrawingMetadataCommand as _0x3f9a11,UpdateDocShapeDataCommand as _0x46dc48,UpdateDocShapeDataMutation as _0xbcf5de}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x2fdab0,ShapeArrowSizeEnum as _0xb4e302,ShapeArrowTypeEnum as _0xc61596,ShapeDefaultConfig as _0x127ad4,ShapeFillEnum as _0x81ceb,ShapeLineTypeEnum as _0xbdeefa,ShapeModel as _0x7b3953,ShapeRenderModeEnum as _0x3cb180,ShapeTextAutoFitType as _0x44ef7a,ShapeTypeEnum as _0x23c14c,isConnectorShape as _0x238e4e,resolveShapeTextBodyBehavior as _0x1a4698}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x44c530,UniverShapeEditorPlugin as _0xd2d2e,applyQuickStyleToShapeData as _0x3e6302,cloneShapeDataForType as _0x54b1f4,createShapeFormulaDocument as _0x347dfc,createShapeTextBoxShapeData as _0x9be148,getShapeQuickStylePreset as _0x35d5ae,getShapeQuickStyleType as _0x384a1e,resolveActiveShapeQuickStylePresetId as _0x4ee18b}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x30db5e,BooleanNumber as _0x1fdcb8,CommandType as _0x500db0,DependentOn as _0x2e6e62,Disposable as _0x5721ff,DisposableCollection as _0x153c14,DocumentDataModel as _0x3b3dfb,DrawingTypeEnum as _0x690970,FOCUSING_COMMON_DRAWINGS as _0x5ad933,FOCUSING_SHAPE_TEXT_EDITOR as _0x5fd016,HorizontalAlign as _0x2381fc,ICommandService as _0x582229,IConfigService as _0x280fd7,IContextService as _0x268075,IImageIoService as _0x272990,IPermissionService as _0x49aab3,IURLImageService as _0x2d26b4,IUniverInstanceService as _0x357598,Inject as _0x4e9d1c,Injector as _0x3d54b6,LocaleService as _0x4b811c,Plugin as _0x30ce8,PositionedObjectLayoutType as _0x1ef66e,UniverInstanceType as _0x436dd9,VerticalAlign as _0x36ee41,createInternalEditorID as _0x4f25d9,generateRandomId as _0xb695a5,getParagraphContentStartOffset as _0x29a058,merge as _0x381591,registerDependencies as _0x25479e,toDisposable as _0xfac87e,touchDependencies as _0x3d6461}from'@univerjs/core';import{DocInterceptorService as _0x3a4b97,DocSelectionManagerService as _0x2325c6,RichTextEditingMutation as _0x4c133e,SetDocumentPermissionCommand as _0x4a71fc,UniverDocsPlugin as _0x4e3d23,canEditDocumentTargets as _0x47555f,getDocumentDrawingSegmentId as _0x1fc7f8,getDocumentEntityParentPermissionObjectIds as _0x1a179a,getDocumentEntityPermissionObjectId as _0x5462ea}from'@univerjs/docs';import{IDocDrawingService as _0x5f2715,RemoveDocDrawingCommand as _0x3723c7,SetDocDrawingArrangeCommand as _0x5dc4dd,TextWrappingStyle as _0x4b1e43,UpdateDocDrawingWrappingStyleCommand as _0xdbdd89,UpdateDrawingDocTransformCommand as _0x53a1f6}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x13100c,Circle as _0x738e8c,DRAWING_OBJECT_LAYER_INDEX as _0x8e9c78,DocumentSkeleton as _0x44a5a2,DocumentViewModel as _0x514bbc,Documents as _0x407a64,IRenderManagerService as _0x1b5744,RENDER_CLASS_TYPE as _0x29eaa6,Shape as _0x9fb59e,Transform as _0x3cb6b6,UniverRenderEnginePlugin as _0x338f29,Vector2 as _0x2ede79,getLastLine as _0x14e5f4,setDocsCustomBlockRenderViewportProvider as _0x357255}from'@univerjs/engine-render';import{IDrawingManagerService as _0x4cc4c4,SetDrawingSelectedOperation as _0x4216b5,UniverDrawingPlugin as _0x4249ea,getDrawingShapeKeyByDrawingSearch as _0x54547b}from'@univerjs/drawing';import{DrawingCommonPanel as _0xe08cbd,DrawingImageClipService as _0x4775b9,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x3de7d6,MobileObjectListPanel as _0x49b254,OBJECT_LIST_FLOATING_SECTION_ID as _0x4887bf,ObjectListPanelBase as _0x92c98e,UniverDrawingMobileUIPlugin as _0x4ec3f0,UniverDrawingUIPlugin as _0x26805d,getObjectListPanelSectionIdForDrawingType as _0x3c8fa2,insertGroupObject as _0x514f17}from'@univerjs/drawing-ui';import{Fragment as _0x29f7de,jsx as _0x20be44,jsxs as _0x56d981}from'react/jsx-runtime';import{BehaviorSubject as _0x4246c4,Observable as _0x3fafbe,distinctUntilChanged as _0x19e0f8,map as _0x5cfa63,merge as _0xfc549c,of as _0x13712d,startWith as _0x2c09e4}from'rxjs';import{UniverLicensePlugin as _0x1319ac}from'@univerjs-pro/license';import{DocDrawingPosition as _0x397b36,DocDrawingTextWrap as _0x19e2da,MobileDocDrawingPosition as _0x3ccd8d,MobileDocDrawingTextWrap as _0x416f6b,UniverDocsDrawingMobileUIPlugin as _0x4ca735,UniverDocsDrawingUIPlugin as _0x5efad2}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x10f104,MoreDownIcon as _0x5c6907,MoreUpIcon as _0x19b22a,MoveDownIcon as _0x863eb7,MoveUpIcon as _0x1fa84b,ObjectLayersIcon as _0x2d9e5a,ShapeFormatSettingIcon as _0x51d8f6,TextWrapShapeIcon as _0x1a2dfc,TopmostIcon as _0x88dd38}from'@univerjs/icons';import{MobileActionRow as _0x37d12d}from'@univerjs/design';import{memo as _0x470956,useEffect as _0x3e40cc,useMemo as _0x108bd4,useReducer as _0x4aee64,useState as _0x5d63ba}from'react';import{UnitObject as _0x3d15f1}from'@univerjs/protocol';function hr(_0x20ec2e,_0x1f45c2){const _0x385c42=_0x5aa0;if(_0x1f45c2){if(_0x238e4e(_0x20ec2e)&&(_0x1f45c2[_0x385c42(0x2ce)]||_0x1f45c2[_0x385c42(0x441)]))return{'ln':{'startArrow':_0x1f45c2['startArrow']?{'type':_0xc61596[_0x385c42(0x29d)],'size':_0xb4e302[_0x385c42(0x3d7)]}:void 0x0,'endArrow':_0x1f45c2['endArrow']?{'type':_0xc61596['Arrow'],'size':_0xb4e302[_0x385c42(0x2e9)]}:void 0x0}};if(_0x20ec2e===_0x23c14c[_0x385c42(0x387)]&&(_0x1f45c2[_0x385c42(0x2f5)]||_0x1f45c2[_0x385c42(0x1e2)]))return _0x9be148({'fill':{'fillType':_0x81ceb[_0x385c42(0x433)],'color':_0x385c42(0x33d)},'isHorizontal':!!_0x1f45c2[_0x385c42(0x2f5)],'stroke':{'lineStrokeType':_0xbdeefa[_0x385c42(0x34d)],'width':0x1,'color':_0x385c42(0x233)}});}}function gr(_0x10cfd7,_0x1a31bf){const _0x552cad=_0x5aa0;var _0x2edd91;let _0x3b0289=_0x1a31bf['segmentId']??'',_0x317889=(_0x2edd91=_0x10cfd7[_0x552cad(0x2a2)](_0x3b0289))==null?void 0x0:_0x2edd91[_0x552cad(0x2be)]();if(!_0x317889)return null;let _0x911d4e=_0x317889['paragraphs']??[],_0x56be5e=_0x911d4e[_0x552cad(0x2ec)](_0x2598ab=>{const _0x52f348=_0x552cad;let _0x4d6829=_0x29a058(_0x317889,_0x2598ab);return _0x1a31bf[_0x52f348(0x304)]>=_0x4d6829&&_0x1a31bf[_0x52f348(0x304)]<=_0x2598ab[_0x52f348(0x36c)];})??_0x911d4e[_0x911d4e[_0x552cad(0x43c)]-0x1];return _0x56be5e?{'paragraphId':_0x56be5e['paragraphId'],'segmentId':_0x3b0289,'position':_0x4b20f2[_0x552cad(0x27f)],'offset':_0x1a31bf[_0x552cad(0x304)]-_0x29a058(_0x317889,_0x56be5e)}:null;}function _r(_0x44ad22,_0x3bf4cb,_0x5187c1){const _0x4b219b=_0x5aa0;var _0x43e807,_0x579bb5;if(!_0x5187c1)return null;let _0x3a5aa5=(_0x43e807=_0x44ad22['get'](_0x1b5744)[_0x4b219b(0x30a)](_0x3bf4cb))==null?void 0x0:_0x43e807[_0x4b219b(0x34e)](_0x33fce6)[_0x4b219b(0x393)];if(!_0x3a5aa5)return null;let _0x2fd5d0=_0x5187c1==='below'?{'startOffset':_0x3a5aa5[_0x4b219b(0x2f4)]['endOffset'],'endOffset':_0x3a5aa5['moveRange'][_0x4b219b(0x31b)]}:_0x3a5aa5[_0x4b219b(0x321)];return{'startOffset':_0x2fd5d0[_0x4b219b(0x304)],'endOffset':_0x2fd5d0[_0x4b219b(0x31b)],'collapsed':_0x2fd5d0[_0x4b219b(0x304)]===_0x2fd5d0['endOffset'],'segmentId':((_0x579bb5=_0x3a5aa5[_0x4b219b(0x3f5)])==null?void 0x0:_0x579bb5[_0x4b219b(0x2ae)])??''};}const G={'type':_0x500db0['COMMAND'],'id':_0x1ed081(0x378),'handler':async(_0x3115ac,_0x38a788)=>{const _0x24461f=_0x1ed081;let _0x3dcf3b=_0x3115ac[_0x24461f(0x410)](_0x357598)[_0x24461f(0x3c3)](_0x436dd9['UNIVER_DOC']);if(!_0x3dcf3b)return!0x1;let _0x377e16=_0x3115ac['get'](_0x582229),_0x4e54e8=_0x3dcf3b['getUnitId'](),_0x5ddebe=_0x38a788[_0x24461f(0x317)]??_0xb695a5(),_0x13ef9e=_0x38a788[_0x24461f(0x421)]??_0x313d3d,_0x36a14e=_0x38a788[_0x24461f(0x3e1)]??_0x4ea882,_0xf622aa=_0x38a788[_0x24461f(0x2ba)]??hr(_0x38a788[_0x24461f(0x439)],_0x38a788[_0x24461f(0x35f)]),_0xc20da8=_r(_0x3115ac,_0x4e54e8,_0x38a788[_0x24461f(0x22a)])??_0x3115ac[_0x24461f(0x410)](_0x2325c6)[_0x24461f(0x3fd)]();if(!_0xc20da8)return!0x1;let _0x411bab=gr(_0x3dcf3b,_0xc20da8);return _0x411bab?!!_0x377e16['syncExecuteCommand'](_0xc29dcd['id'],{'unitId':_0x4e54e8,'shapeId':_0x5ddebe,'shapeType':_0x38a788[_0x24461f(0x439)],'shapeData':_0xf622aa,'transform':{'width':_0x13ef9e,'height':_0x36a14e},'placement':{'wrappingStyle':_0x4b1e43[_0x24461f(0x211)],'anchor':_0x411bab}}):!0x1;}},K='doc.shape.edit.panel',vr=_0x1ed081(0x3db),yr=_0x1ed081(0x424),br=_0x4f25d9(_0x1ed081(0x23b)),xr=_0x1ed081(0x325),Sr='DocsShapeTextEditorContainer',Cr={'id':_0x1ed081(0x39d),'type':_0x500db0['COMMAND'],'handler':(_0xcb9cf9,_0xa87edc)=>{const _0x3d5658=_0x1ed081;let _0x57212c=_0xcb9cf9[_0x3d5658(0x410)](_0x1357e7),_0x1ead21=_0xcb9cf9[_0x3d5658(0x410)](_0x4b811c),_0x3fc132=_0xcb9cf9[_0x3d5658(0x410)](_0x4cc4c4);return(_0xa87edc==null?void 0x0:_0xa87edc['value'])===_0x3d5658(0x360)?(_0x57212c[_0x3d5658(0x360)](yr),!0x0):(_0x57212c[_0x3d5658(0x44d)]({'id':yr,'header':{'title':_0x1ead21['t']('docs-shape-ui.objectListPanel.title')},'children':{'label':yr},'onClose':()=>{const _0xc81ad5=_0x3d5658;_0x3fc132[_0xc81ad5(0x1ea)](null);},'width':0x168}),!0x0);}},q={'type':_0x500db0[_0x1ed081(0x2ea)],'id':_0x1ed081(0x27a),'handler'(){return!0x0;}};function wr(_0x3ad2b3){const _0x1dcf68=_0x1ed081;let _0x15769a=_0x3ad2b3[_0x1dcf68(0x410)](_0x4cc4c4)[_0x1dcf68(0x2a0)](),_0xf1f1e5=_0x15769a[_0x1dcf68(0x43c)]===0x1?_0x15769a[0x0]:null;if(!_0xf1f1e5||_0xf1f1e5[_0x1dcf68(0x234)]!==_0x690970['DRAWING_SHAPE'])return null;let _0x33565c=_0x3ad2b3[_0x1dcf68(0x410)](_0x39396e),_0x227e24=_0x33565c[_0x1dcf68(0x363)](_0xf1f1e5[_0x1dcf68(0x355)],_0xf1f1e5[_0x1dcf68(0x203)],_0xf1f1e5['drawingId']),_0x19875d=_0x33565c[_0x1dcf68(0x2e4)](_0xf1f1e5[_0x1dcf68(0x355)],_0xf1f1e5[_0x1dcf68(0x203)],_0xf1f1e5[_0x1dcf68(0x210)]);return _0x227e24===void 0x0||!_0x19875d?null:{'drawing':_0xf1f1e5,'shapeData':_0x19875d,'shapeType':_0x227e24};}const Tr={'id':_0x1ed081(0x32d),'type':_0x500db0[_0x1ed081(0x2ea)],'handler':(_0x56da25,_0x3d5489)=>{const _0x5655b4=_0x1ed081;let _0x4b11b3=wr(_0x56da25),_0x12d0aa=_0x35d5ae((_0x3d5489==null?void 0x0:_0x3d5489[_0x5655b4(0x2b1)])??(_0x3d5489==null?void 0x0:_0x3d5489['value'])??'');if(!_0x4b11b3||!_0x12d0aa||_0x12d0aa['type']!==_0x384a1e(_0x4b11b3[_0x5655b4(0x2ba)]))return!0x1;let _0x102fec=_0x3e6302(_0x4b11b3[_0x5655b4(0x2ba)],_0x12d0aa);if(!_0x102fec)return!0x1;let {drawing:_0x5c329e}=_0x4b11b3;return _0x56da25['get'](_0x582229)[_0x5655b4(0x402)](_0x46dc48['id'],{'unitId':_0x5c329e[_0x5655b4(0x355)],'shapeId':_0x5c329e[_0x5655b4(0x210)],'shapeData':_0x102fec,'oldShapeJSON':{'oldShapeData':_0x4b11b3[_0x5655b4(0x2ba)]}});}},Er={'id':'doc.operation.update-shape-type','type':_0x500db0[_0x1ed081(0x2ea)],'handler':(_0x3b6c5e,_0x12727d)=>{const _0x1a3374=_0x1ed081;let _0x475602=wr(_0x3b6c5e),_0x257478=(_0x12727d==null?void 0x0:_0x12727d['shapeType'])??(_0x12727d==null?void 0x0:_0x12727d['value']);if(!_0x475602||!_0x257478||_0x238e4e(_0x475602[_0x1a3374(0x2e0)])||_0x238e4e(_0x257478))return!0x1;let _0x3a1d35=_0x54b1f4(_0x475602[_0x1a3374(0x2ba)],_0x257478);if(!_0x3a1d35)return!0x1;let {drawing:_0x112837}=_0x475602;return _0x3b6c5e['get'](_0x582229)['executeCommand'](_0x46dc48['id'],{'unitId':_0x112837[_0x1a3374(0x355)],'shapeId':_0x112837[_0x1a3374(0x210)],'shapeType':_0x257478,'shapeData':_0x3a1d35,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x475602['shapeType'],'oldShapeData':_0x475602[_0x1a3374(0x2ba)]}});}};function J(_0x59a0f1,_0xf8a1ca){return function(_0x4bf945,_0x3e7d0a){_0xf8a1ca(_0x4bf945,_0x3e7d0a,_0x59a0f1);};}function Y(_0xc21633,_0xa1329f,_0x4179f4,_0x59d064){const _0xedf491=_0x1ed081;var _0x27869d=arguments[_0xedf491(0x43c)],_0x1fd84f=_0x27869d<0x3?_0xa1329f:_0x59d064===null?_0x59d064=Object[_0xedf491(0x249)](_0xa1329f,_0x4179f4):_0x59d064,_0x23b041;if(typeof Reflect==_0xedf491(0x39b)&&typeof Reflect[_0xedf491(0x3f1)]==_0xedf491(0x341))_0x1fd84f=Reflect[_0xedf491(0x3f1)](_0xc21633,_0xa1329f,_0x4179f4,_0x59d064);else{for(var _0x29679d=_0xc21633[_0xedf491(0x43c)]-0x1;_0x29679d>=0x0;_0x29679d--)(_0x23b041=_0xc21633[_0x29679d])&&(_0x1fd84f=(_0x27869d<0x3?_0x23b041(_0x1fd84f):_0x27869d>0x3?_0x23b041(_0xa1329f,_0x4179f4,_0x1fd84f):_0x23b041(_0xa1329f,_0x4179f4))||_0x1fd84f);}return _0x27869d>0x3&&_0x1fd84f&&Object[_0xedf491(0x247)](_0xa1329f,_0x4179f4,_0x1fd84f),_0x1fd84f;}let X=class extends _0x5721ff{constructor(_0x1b1ea9,_0x30d974){const _0x110d18=_0x1ed081;super(),this[_0x110d18(0x263)]=_0x1b1ea9,this['_drawingManagerService']=_0x30d974,this[_0x110d18(0x3d5)](),this[_0x110d18(0x263)][_0x110d18(0x386)](!0x0),this[_0x110d18(0x2fd)]({'dispose':()=>this[_0x110d18(0x263)][_0x110d18(0x386)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x17e76=_0x1ed081;let _0x117d5c=new Map(),_0x5a45f3=this[_0x17e76(0x263)]['registerClipDelegate']((_0x3f37eb,_0x2a288b,_0x4733a2,_0x3cb4f1,_0x356672)=>{const _0x4d4878=_0x17e76;let _0x406aae=_0x2a288b;if(_0x406aae===_0x23c14c['None']||_0x2a288b===_0x4d4878(0x35e))return!0x1;try{let _0x3df888=_0x117d5c['get'](_0x2a288b);return _0x3df888||(_0x3df888=new _0x7b3953(_0x406aae,_0x4d4878(0x332)+_0x2a288b),_0x117d5c[_0x4d4878(0x2e7)](_0x2a288b,_0x3df888)),_0x3df888['clearAdjustValue'](),_0x356672&&Object[_0x4d4878(0x303)](_0x356672)[_0x4d4878(0x43c)]>0x0&&_0x3df888[_0x4d4878(0x3b7)]({'adjustValues':_0x356672},!0x0),_0x3df888[_0x4d4878(0x31a)]({'width':_0x4733a2,'height':_0x3cb4f1}),_0x3df888[_0x4d4878(0x43a)](_0x3f37eb,{'left':0x0,'top':0x0,'width':_0x4733a2,'height':_0x3cb4f1});}catch{return!0x1;}});this[_0x17e76(0x2fd)](_0x5a45f3),this['disposeWithMe']({'dispose':()=>_0x117d5c['clear']()});}[_0x1ed081(0x275)](_0x246b25,_0x46777c,_0x53e950,_0x9055e5,_0xa8c6f7){const _0x5b0403=_0x1ed081;let _0x3a8247=this['_drawingManagerService'][_0x5b0403(0x426)](_0x246b25,_0x46777c)[_0x53e950];_0x3a8247&&_0x3a8247[_0x5b0403(0x234)]===_0x690970[_0x5b0403(0x202)]&&this[_0x5b0403(0x291)][_0x5b0403(0x399)]([{..._0x3a8247,'prstGeom':_0x9055e5,'adjustValues':_0xa8c6f7}]);}};X=Y([J(0x0,_0x4e9d1c(_0x4775b9)),J(0x1,_0x4e9d1c(_0x4cc4c4))],X);const Dr=_0x1ed081(0x3ea),Or=_0x1ed081(0x405);function kr({onShapeClick:_0x59f75e,excludeGroups:_0x45f4f3}){return _0x20be44(_0x104054,{'excludeGroups':_0x45f4f3,'onShapeClick':_0x59f75e,'scrollContainer':'parent'});}function Ar(){let _0x2774b2=_0x5c5c3d(_0x4cc4c4),_0x1f712c=_0x5c5c3d(X);return _0x55d710=>{const _0x5e344e=_0x5aa0;let _0x524dbb=_0x2774b2[_0x5e344e(0x2a0)]()[_0x5e344e(0x2ec)](_0x58a690=>_0x58a690[_0x5e344e(0x234)]===_0x690970[_0x5e344e(0x202)]);_0x524dbb&&_0x1f712c['clipByShape'](_0x524dbb[_0x5e344e(0x355)],_0x524dbb[_0x5e344e(0x203)],_0x524dbb['drawingId'],_0x55d710[_0x5e344e(0x37d)]);};}function jr(){const _0x32b872=_0x1ed081;let _0x26ea88=Ar();return _0x20be44(_0x506c5f,{'buttonLabel':_0x32b872(0x434),'excludeGroups':[_0x4f9fa7[_0x32b872(0x239)]],'onShapeClick':_0x26ea88});}function Mr(){const _0x547ad6=_0x1ed081;let _0x46872c=_0x5c5c3d(_0x1bfb02),_0x3e3c81=_0x5c5c3d(_0x4cc4c4),_0x10b323=_0x5c5c3d(_0x357598),_0x492cbf=_0x3e3c81[_0x547ad6(0x2a0)]()[0x0],_0x4fb832=_0x492cbf?_0x10b323[_0x547ad6(0x39e)](_0x492cbf[_0x547ad6(0x355)]):void 0x0,_0x47f4df=_0x4fb832===_0x436dd9[_0x547ad6(0x335)]?Or:_0x4fb832===_0x436dd9[_0x547ad6(0x407)]?_0x547ad6(0x2c9):void 0x0,_0x25fbeb=_0x47f4df?_0x46872c[_0x547ad6(0x410)](_0x47f4df):void 0x0;return _0x25fbeb?_0x20be44(_0x25fbeb,{}):null;}function _0x5aa0(_0x37500d,_0x1a52eb){_0x37500d=_0x37500d-0x1e2;const _0x420813=_0x4208();let _0x5aa06d=_0x420813[_0x37500d];return _0x5aa06d;}function Nr({paragraphMenuPlacement:_0x5b3688,PickerComponent:_0x4f53fd=kr}){let _0x413695=_0x5c5c3d(_0x582229);return _0x20be44(_0x4f53fd,{'onShapeClick':_0x587bbd=>{const _0x217f3a=_0x5aa0;_0x413695[_0x217f3a(0x402)](G['id'],{'paragraphMenuPlacement':_0x5b3688,'value':_0x587bbd['type'],'enhanceParams':{'endArrow':_0x587bbd[_0x217f3a(0x441)],'startArrow':_0x587bbd[_0x217f3a(0x2ce)],'horizontal':_0x587bbd[_0x217f3a(0x2f5)],'vertical':_0x587bbd[_0x217f3a(0x1e2)]}});}});}function Pr(_0x56aa72){const _0x2a418a=_0x1ed081;return _0x3c246c=>({'id':G['id'],'type':_0x2f080a[_0x2a418a(0x255)],'selections':[{'label':{'name':Dr,'hoverable':!0x1,'selectable':!0x1,'props':_0x56aa72?{'id':G['id'],'paragraphMenuPlacement':_0x56aa72}:{'id':G['id']}}}],'icon':_0x2a418a(0x21f),'title':_0x2a418a(0x3a9),'tooltip':_0x2a418a(0x3a9),'hidden$':_0x513eb1(_0x3c246c,_0x436dd9['UNIVER_DOC'])});}const Fr=Pr(),Ir=Pr(_0x1ed081(0x31f)),Lr=Pr(_0x1ed081(0x425));function Rr(_0x1e4f75){const _0x1e0f3f=_0x1ed081;return{'id':Cr['id'],'type':_0x2f080a['BUTTON'],'icon':_0x1e0f3f(0x22c),'title':'docs-shape-ui.objectListPanel.open','tooltip':_0x1e0f3f(0x2fe),'hidden$':_0x513eb1(_0x1e4f75,_0x436dd9[_0x1e0f3f(0x335)])};}function zr(_0x250525,_0xdf191c,_0x4a632f,_0x35971a,_0x2b863b,_0x12a912){let _0xb845ff={'unitId':_0xdf191c,'shapeId':_0x35971a,'shapeData':_0x12a912,'oldShapeJSON':_0x2b863b};return _0x250525['executeCommand'](_0x46dc48['id'],_0xb845ff);}function Br(_0x20ab4c,_0x5a091b,_0x47da19,_0x2bef29,_0x5c38f7,_0x23de89){const _0x3eee23=_0x1ed081;let _0x586b53={'unitId':_0x5a091b,'shapeId':_0x2bef29,'shapeData':_0x23de89,'oldShapeJSON':_0x5c38f7};return _0x20ab4c[_0x3eee23(0x402)](_0x46dc48['id'],_0x586b53);}const Vr=_0x1ed081(0x2f0),Hr=_0x1ed081(0x328),Ur=_0x1ed081(0x2ef),Wr=_0x1ed081(0x2d7),Gr='docs-shape-ui.shape-format.wrapping-style-label',Kr=[{'value':_0x4b1e43[_0x1ed081(0x211)],'label':_0x1ed081(0x236),'icon':_0x1ed081(0x342)},{'value':_0x4b1e43[_0x1ed081(0x2af)],'label':_0x1ed081(0x23d),'icon':_0x1ed081(0x40c)},{'value':_0x4b1e43[_0x1ed081(0x2b6)],'label':_0x1ed081(0x351),'icon':'DocsShapeWrapTopBottomIcon'},{'value':_0x4b1e43[_0x1ed081(0x318)],'label':'docs-shape-ui.textWrap.behindText','icon':_0x1ed081(0x449)},{'value':_0x4b1e43[_0x1ed081(0x3c0)],'label':_0x1ed081(0x365),'icon':_0x1ed081(0x3ba)}];function qr(){let _0x1454b6=_0x5c5c3d(_0x582229),_0x515c66=_0x5c5c3d(_0x4cc4c4),_0x235a25=_0x5c5c3d(_0x39396e),_0x4e4e3e=()=>{const _0x54e95e=_0x5aa0;var _0x38e783;let _0xf59c9=_0x515c66[_0x54e95e(0x2a0)]();if(_0xf59c9['length']!==0x1||((_0x38e783=_0xf59c9[0x0])==null?void 0x0:_0x38e783[_0x54e95e(0x234)])!==_0x690970['DRAWING_SHAPE'])return null;let {unitId:_0x1c8b64,subUnitId:_0x4fb17e,drawingId:_0x4e4b07}=_0xf59c9[0x0],_0x5c2377=_0x235a25[_0x54e95e(0x363)](_0x1c8b64,_0x4fb17e,_0x4e4b07),_0x455354=_0x235a25[_0x54e95e(0x2e4)](_0x1c8b64,_0x4fb17e,_0x4e4b07);return _0x5c2377===void 0x0||!_0x455354?null:{'unitId':_0x1c8b64,'subUnitId':_0x4fb17e,'drawingId':_0x4e4b07,'shapeType':_0x5c2377,'shapeData':_0x455354};},_0x40f24d=_0x2f0836(()=>new _0x3fafbe(_0xa2f63a=>{const _0x9c6712=_0x5aa0;let _0x26efaa=()=>_0xa2f63a[_0x9c6712(0x2d8)](_0x4e4e3e()),_0x4c25b5=_0x515c66['focus$'][_0x9c6712(0x251)](_0x26efaa),_0x7e3587=_0x1454b6['onCommandExecuted'](_0x19c10f=>{_0x19c10f['id']===_0xbcf5de['id']&&_0x26efaa();});return _0x26efaa(),()=>{const _0x3d9389=_0x9c6712;_0x4c25b5[_0x3d9389(0x36d)](),_0x7e3587['dispose']();};}),_0x4e4e3e(),!0x1,[_0x1454b6,_0x235a25,_0x515c66]);return{'selection':_0x40f24d,'updateShapeData':_0x585966=>{const _0x2b42d6=_0x5aa0;_0x40f24d&&zr(_0x1454b6,_0x40f24d[_0x2b42d6(0x355)],_0x40f24d[_0x2b42d6(0x203)],_0x40f24d[_0x2b42d6(0x210)],{'oldShapeData':_0x40f24d['shapeData']},_0x585966);}};}function Jr(){let {selection:_0x2e24d4,updateShapeData:_0x1c6c78}=qr();return _0x2e24d4?_0x20be44(_0x4f30f7,{'shapeData':_0x2e24d4['shapeData'],'shapeType':_0x2e24d4['shapeType'],'onUpdateShapeData':_0x1c6c78}):null;}function Yr(){const _0x2c9fe2=_0x1ed081;let _0x253212=_0x5c5c3d(_0x582229),_0x32dc2d=_0x5c5c3d(_0x4b811c),{selection:_0x40f09b}=qr();return _0x40f09b?_0x20be44(_0x3c43fb,{'type':_0x384a1e(_0x40f09b[_0x2c9fe2(0x2ba)]),'ariaLabel':_0x32dc2d['t'](_0x2c9fe2(0x413)),'activePresetId':_0x4ee18b(_0x40f09b[_0x2c9fe2(0x2ba)]),'onSelect':_0x5a8854=>_0x253212[_0x2c9fe2(0x402)](Tr['id'],{'presetId':_0x5a8854})}):null;}function Xr(){const _0x39dbed=_0x1ed081;let {selection:_0x4a5ae7,updateShapeData:_0x29dc2f}=qr();return _0x4a5ae7?_0x20be44(_0xb93f52,{'fontFamilyPopupDataComponent':'docs-shape-format-font-family-menu','shapeData':_0x4a5ae7[_0x39dbed(0x2ba)],'onUpdateShapeData':_0x29dc2f}):null;}function _0x4208(){const _0x38f2c1=['_loadShapePictureFill','getMatrix','LAYOUT','startIndex','unsubscribe','_transform','getTransformerByCreate','getAdjustInfoByName','applyPoint','setEditing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cells','_getSceneByUnitId','_isStartAdjusting','_instanceService','doc.command.menu-insert-shape','image','classType','render','intercept','type','_activeShapeAdjustPointList','onPointerDown$','isMainScene','getShapeModel','_permissionService','_clearCompletionFrame','MoveUpIcon','getScene','setCanUseShapeClip','Rect','getParent','offsetY','registerCommand','_setTransForm','svg','getActualSize','CROSSHAIR','getInterceptPoints','flatMap','466uXbiTK','onerror','activeTarget','GROUP','drawing-ui.objectListPanel.search','behindText','vertical-center','getImageSourceCache','featurePluginUpdateNotification','1em','object','push','doc.operation.open-shape-object-list-panel','getUnitType','delete','drawing-ui.objectListPanel.dragToReorder','0.14','PictureFill','getContextValue','getAdjustValueByName','drawing-ui.objectListPanel.locate','warn','docs-shape-ui.openPanel','contentVerticalOffset','docs-shape-ui.insertShape','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','doc.operation.close-doc-shape-format-panel','calcAdjValues','drawing-ui.objectListPanel.hide','getDrawingOrder','permissionPointUpdate$','restore','contentHeight','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','drawing-ui.objectListPanel.unlockHint','URL','setContextValue','extraProps','setShapeData','presentation','_layoutInteraction','DocsShapeWrapInFrontOfTextIcon','getPresentation','front','_drawRichTextLayer','transformByState','docs-shape-ui.mobile.style','IN_FRONT_OF_TEXT','angle','getShapeData','getCurrentUnitOfType','docs-shape-ui.textWrap.behindText','_menuManagerService','translateWithPrecision','save','_updateAdjustControlPositions','_popupMenuListener','3017104IuByLd','docs-shape-ui.ribbon.shape-format.formula-control','completeEditing','getValue','getPageDrawingIds','some','drawing-ui.objectListPanel.noSelection','_registerObjectListPanel','shape-editor-ui.toolbar.changeShape','getUnit','1.2','_registerImageShapeClipDelegate','clone','Medium','multiply','currentColor','_configService','docs-shape-ui.ribbon.shape-format','animationEnabled','behind','getShapePopupMenus','rows','drawing-ui.objectListPanel.lock','height','dataModel','_mobileEditorService','round','skeTables','_releaseRenderCache','0\x200\x2020\x2020','order','getImage','doc.shape.picker.component','M2\x203h16M2\x2017h16','PARAGRAPH','fallbackHeight','_toVisualAdjustPoint','calculate','17976410tzkpbB','decorate','currentAdjustValues','doc.shape.floating-toolbar','isInGroup','paragraph','drawings','_registerOperations','BUTTON','unregister','getObjectIncludeInGroup','isRichText','pages','getActiveTextRange','_shapeRenderController','complete','fillImageSourceType','_shapeFormulaService','executeCommand','drawing-ui.objectListPanel.hideAll','73290FUBzAT','doc.image-clip.shape-picker.component','create','UNIVER_SHEET','_drawShapeText','_hide','isHit','getShapeType','DocsShapeWrapSquareIcon','_activeShapeModel','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','refreshFormulaPresentation','get','_adjustPointObjects','beginInteraction','docs-shape-ui.quickStyles','indexOf','title','extensionGroups','_docPrintInterceptorService','_formulaAnimation','_draw','getDrawingEffectBounds','_getShapePopup','_transformCalculateSrcRect','drawing-ui.objectListPanel.descriptionPlaceholder','params','registerComponent','objects','width','300dHaGhG','fillType','doc.shape.object-list.panel','target','getDrawingData','map','onPointerUp$','_isOpenedShapeEditPanel','adjHandleSize','_getDependencies','_getFocusedShapeAtPoint','getSnapshot','_context','ancestorTransform','setSrcRect','getCurrentTypeOfUnit$','subscribeEvent','SolidFill','docs-shape-ui.crop.shape','_init','_canEditShape','_localeService','fillImageSource','value','buildClipPath','visible$','length','drawing-ui.objectListPanel.filterHidden','adjName','isHitLine','drawing-ui.objectListPanel.filterAll','endArrow','mergeMenu','_adjHandlerPointerMove','_shapeEditPanelVersion','isDrawingObject','subtle','left','12184yCdiBq','DocsShapeWrapBehindTextIcon','CONTENT','version','_getDisposePopups','open','791uvDamh','vertical','getRealBound','symbol','_getActiveDrawingParam','formulaPresentation','setConfig','oKey','size','focusDrawing','actualHeight','_injector','getDrawingSearch','_baseShapeHeight','cos','_onSavingEditorData$','showContextualTab','canDispose','refreshAdjustControls','drawing-ui.objectListPanel.nameInput','formulaBinding','trim','name','drawing-ui.objectListPanel.moveForward','TRUE','toPrimitive','_editingParams$','drawing-ui.objectListPanel.empty','top','5.5','onload','createControl$','_docDrawingShapeRenderController','DRAWING_IMAGE','subUnitId','onPointerMove$','_registerIcons','_toScenePoint','getDrawingByParam','dispose','string','DRAWING_DOM','shape-editor-ui.toolbar.quickStyles','disableObjectsEvent','DRAWING_SHAPE','PRINTING_COMPONENT_COLLECT','_getShapeAdjustInfosById','drawingId','INLINE','_activeAdjustInfo','docs-shape-ui.ribbon.shape-format.arrange-back','_updateSrcRectByTransform','square','reduce','refreshTransform$','_initMenu','_getRenderModules','hidden','prstGeom','getFocusedUnit','refreshShapeFillImage','OTHERS','ShapeIcon','getSkeletonData','_univerInstanceService','srcRect','onRendered','none','_activeShapeInfo','preValue','canvas','includes','7478505OQCWVo','paragraphMenuPlacement','pick','ObjectLayersIcon','_commandService','_createShapeAdjustControls','_shapeFloatingToolbarService','_shapeTextEditingService','drawing-ui.objectListPanel.close','visible','#2563EB','drawingType','flipX','docs-shape-ui.textWrap.inline','getDrawingVisible','isHorizontal','Line','getSelectedObjectMap','SHAPE_TEXT','max','docs-shape-ui.textWrap.square','_attachAdjustEvent','univer-box-border\x20univer-px-4\x20univer-text-sm','_ribbonService','MoveDownIcon','skeFooters','actions','default','_handleCreateControl','docs-shape-ui.config','defineProperty','isLineShape','getOwnPropertyDescriptor','docs-shape-ui.mobile.text','drawing-ui.objectListPanel.title','getEditing','univer-grid\x20univer-gap-3','drawing-ui.objectListPanel.sectionFloating','inline','clip','subscribe','filter','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','getDrawingDataForUnit','SELECTOR','update$','_shapeId','entries','behindDoc','_initPrinting','docs-shape-ui.formatShape','invert','setFillImage','LEFT','sin','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','docs-shape-ui.ribbon.shape-format.style-control','getShapeTextRect','_clipService','doc-shape-adjust-point-','univer-grid\x20univer-gap-5\x20univer-p-3','color','@univerjs-pro/docs-shape-ui','hideContextualTab','getDrawingOKey','shape-editor-ui.arrange.forward','_initUIPart','_docsShapeService','_initCommands','_completionFrame','docs-shape-ui.ribbon.shape-format.arrange-front','_registerPickers','_registerDrawingTransformHandler','_clearPopups','focus$','animateFormulaPresentation','clipByShape','drawing-ui.objectListPanel.filterLocked','isolated','_initEditingParams','_isShouldShowDrawingShapeAdjust','doc.operation.open-doc-shape-format-panel','setFormulaPresentation','engine','_initEvents','scene','OFFSET','shapeText','drawing-ui.objectListPanel.expand','5729YQVmwJ','_renderManagerService','_popupTargetKeys','getVisible','src','shape-editor-ui.arrange.back','error','_componentManager','updateDocumentStyle','style','FromArray','add','attachPopupToObject','setCursor','docs-shape-text-','_drawingManagerService','_updateShapeAdjustControls','editingParams$','add$','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','icon','_sidebarDisposable','bottom','splice','getActiveViewportByCoord','div','setPrstGeom','Arrow','_adjHandlerPointerUp','layoutType','getFocusDrawings','_canEdit','getSelfOrHeaderFooterModel','drawing-ui.objectListPanel.collapse','popup','isFinite','backward','spaceBelowApply','adjHandleFill','_unitId','_visible','drawing-ui.objectListPanel.unlockAll','constructor','_contextService','segmentId','WRAP_SQUARE','-layout','presetId','_formulaShapes','_initSelection','_closeShapeEditPanel','getState','WRAP_TOP_AND_BOTTOM','debounceRefreshControls','onStarting','marginTop','shapeData','isEditing','drawing-ui.objectListPanel.show','forward','getBody','translate','_activeShapeId','offsetX','values','_updateShape','getInverseCoord','has','getDrawingEditable','_update','onReady','sheet.image-clip.shape-picker.component','doc','packageName','disableShapeOption','_baseShapeLeft','startArrow','makeDirty','beginPath','setFallbackVisible','_openShapeEditPanel','_sidebarService','shapeModel','adjHandleStroke','_drawRichText','docs-shape-ui.shape-format.formula-ribbon-control','next','_measure','_addShapeAdjustControl','_applyFormulaAutoFitSize','_insertShapes','ShapeFormatSettingIcon','getShapeTextData','renderDrawingShape','shapeType','setAdjustValueByName','interceptor','syncExecuteCommand','getShapeDataById','docs-shape-ui.hidePanel','_props','set','drawing-ui.objectListPanel.name','Large','OPERATION','drawing-ui.objectListPanel.showAll','find','addObject','_baseShapeTop','docs-shape-ui.shape-format.text-ribbon-control','docs-shape-ui.shape-format.quick-style-gallery','viewBound','description','BottomIcon','moveRange','horizontal','composeMatrix','_endLayoutInteraction','resetCursor','docs-shape-ui.ribbon.shape-format.arrange-backward','drawing','_baseShapeWidth','_subUnitId','disposeWithMe','docs-shape-ui.objectListPanel.open','_imageIoService','clearControl$','pipe','WRAP_NONE','keys','startOffset','span','selectable','top-bottom','Path','_iconManager','getRenderUnitById','_refreshShapeData','_loadAndSetImage','updateDocumentDataMargin','DOCS_SHAPE_UI_PLUGIN','PaintIcon','onDblclick$','setOnSavingEditorData','_drawSimpleText','getCanvasElement','register','drawing-ui.objectListPanel.typeNames.','registerRenderModule','shapeId','BEHIND_TEXT','2391858MansVC','updateContext','endOffset','docs-shape-ui.deleteShape','getAllRenderersOfType','scale','below','onCommandExecuted','menuRange','1.0.2','forEach','_registerDrawingFocusChangeHandler','doc.shape.text.float-menu','clipHeight','updateShapeFillImage','docs-shape-ui.shape-format.style-ribbon-control','fill','_urlImageService','changeEnd$','SHAPE','doc.operation.apply-shape-quick-style','MEDIA','rect','_config','canvasElement','clip-','label','_disposePopupsByUnit','UNIVER_DOC','getUnitId','_renderWithCache','RIBBON','panel','_getShapeAdjustPointListById','_registerFloatingToolbar','draw','#3B82F6','setShapeProps','_formulaKey','clearAdjustControls','function','DocsShapeWrapInlineIcon','asObservable','_getShapeInfo','headerId','_drawingType','_registerComponents','text','onSavingEditorData$','menu','getDrawingPoints','_clearShapeAdjustControls','SolidLine','with','call','_lastEditingShapeKey','docs-shape-ui.textWrap.topAndBottom','TopmostIcon','drawing-ui.objectListPanel.lockHint','remove$','unitId','strokeWidth','_getActiveDrawingShape','docs-shape-ui.ribbon.shape-format.text-control','docs-shape-ui.ribbon.shape-format.arrange-forward','autoFitType','changing$','_adjName','transform','custom','enhanceParams','close','_docCanvasPopManagerService','shapeKey','getShapeTypeById','_docLayoutInteractionService','docs-shape-ui.textWrap.inFrontText','DOC','stopPropagation','path'];_0x4208=function(){return _0x38f2c1;};return _0x4208();}function Zr(){const _0x51698c=_0x1ed081;var _0x50ef5d;let {selection:_0x3a62fb,updateShapeData:_0x5968d5}=qr(),_0x4ed926=_0x4f9d08({'hostType':_0x436dd9[_0x51698c(0x335)],'unitId':(_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x355)])??'','subUnitId':(_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x203)])??'','shapeId':(_0x3a62fb==null?void 0x0:_0x3a62fb['drawingId'])??'','shapeData':_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x2ba)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x51698c(0x298),'onUpdateBinding':_0x9799fb=>_0x5968d5({'formulaBinding':_0x9799fb})}),_0x1647f8=((_0x50ef5d=_0x4ed926[_0x51698c(0x416)])==null?void 0x0:_0x50ef5d[_0x51698c(0x390)](_0x1f9f91=>_0x1f9f91[_0x51698c(0x243)])[_0x51698c(0x252)](_0x3c98f5=>_0x3c98f5[_0x51698c(0x232)]!==!0x1))??[];return _0x3a62fb!=null&&_0x3a62fb[_0x51698c(0x2ba)][_0x51698c(0x1f5)]?_0x20be44(_0x1c996f,{'actions':_0x1647f8,'panel':_0x4ed926['panel']}):null;}function Qr({value:_0x2e2031}){const _0x58c95d=_0x1ed081;let _0x3fdef8=_0x5c5c3d(_0x4b811c),_0x536624=Kr[_0x58c95d(0x2ec)](_0x25d2b3=>_0x25d2b3['value']===_0x2e2031)??Kr[0x0];return _0x536624?_0x20be44(_0x58c95d(0x305),{'children':_0x3fdef8['t'](_0x536624[_0x58c95d(0x333)])}):null;}const $r=_0x1ed081(0x261),ei=_0x1ed081(0x358),ti=_0x1ed081(0x3cb),ni=_0x1ed081(0x359),ri=_0x1ed081(0x2f9),ii=_0x1ed081(0x26f),ai=_0x1ed081(0x213),oi='docs-shape-ui.ribbon.shape-format.wrapping-style';function si(_0x4202d4){const _0x44bb48=_0x1ed081;let _0x2a5ddc=_0x4202d4['get'](_0x582229),_0x3c07b4=_0x4202d4['get'](_0x4cc4c4),_0x183276=_0x4202d4[_0x44bb48(0x410)](_0x39396e);return new _0x3fafbe(_0x4ec8a4=>{const _0x5161d4=_0x44bb48;let _0x3f8f7c=()=>{const _0x13d16e=_0x5aa0;let _0xeec2b1=ci(_0x4202d4),_0x33cdc6=_0xeec2b1?_0x183276['getShapeDataById'](_0xeec2b1['unitId'],_0xeec2b1[_0x13d16e(0x203)],_0xeec2b1[_0x13d16e(0x210)]):null;_0x4ec8a4[_0x13d16e(0x2d8)](_0x33cdc6?_0x4ee18b(_0x33cdc6)??'':'');},_0x4a72e9=_0x3c07b4['focus$'][_0x5161d4(0x251)](_0x3f8f7c),_0x151dc5=_0x2a5ddc[_0x5161d4(0x320)](_0x54d0bd=>{_0x54d0bd['id']===_0xbcf5de['id']&&_0x3f8f7c();});return _0x3f8f7c(),()=>{const _0x5b1a07=_0x5161d4;_0x4a72e9['unsubscribe'](),_0x151dc5[_0x5b1a07(0x208)]();};});}function ci(_0x3ca4b0){const _0x3a5ed5=_0x1ed081;var _0xc9d06a;let _0x5a9f0e=_0x3ca4b0['get'](_0x4cc4c4)[_0x3a5ed5(0x2a0)]();return _0x5a9f0e[_0x3a5ed5(0x43c)]===0x1&&((_0xc9d06a=_0x5a9f0e[0x0])==null?void 0x0:_0xc9d06a[_0x3a5ed5(0x234)])===_0x690970[_0x3a5ed5(0x20d)]?_0x5a9f0e[0x0]:null;}function li(_0x54b5da){const _0x10d823=_0x1ed081;return(_0x54b5da==null?void 0x0:_0x54b5da['layoutType'])===_0x1ef66e[_0x10d823(0x302)]?_0x54b5da[_0x10d823(0x259)]===_0x1fdcb8[_0x10d823(0x1f9)]?_0x4b1e43[_0x10d823(0x318)]:_0x4b1e43[_0x10d823(0x3c0)]:(_0x54b5da==null?void 0x0:_0x54b5da[_0x10d823(0x29f)])===_0x1ef66e['WRAP_SQUARE']?_0x4b1e43['WRAP_SQUARE']:(_0x54b5da==null?void 0x0:_0x54b5da[_0x10d823(0x29f)])===_0x1ef66e['WRAP_TOP_AND_BOTTOM']?_0x4b1e43['WRAP_TOP_AND_BOTTOM']:_0x4b1e43[_0x10d823(0x211)];}function ui(_0x41b4da){const _0xb0970d=_0x1ed081;let _0x3f5fee=_0x41b4da['get'](_0x582229),_0x57e84b=_0x41b4da['get'](_0x4cc4c4),_0x393600=_0x41b4da[_0xb0970d(0x410)](_0x357598);return new _0x3fafbe(_0xc702ea=>{const _0x2a30aa=_0xb0970d;let _0x464221=()=>{const _0x446217=_0x5aa0;var _0xe2d236;let _0x1a5c59=ci(_0x41b4da),_0x1f33f8=_0x1a5c59?_0x393600[_0x446217(0x3d3)](_0x1a5c59[_0x446217(0x355)],_0x436dd9[_0x446217(0x335)]):void 0x0;_0xc702ea[_0x446217(0x2d8)](li(_0x1a5c59?_0x1f33f8==null||(_0xe2d236=_0x1f33f8['getSnapshot']()[_0x446217(0x3f6)])==null?void 0x0:_0xe2d236[_0x1a5c59['drawingId']]:void 0x0));},_0x457764=_0x57e84b[_0x2a30aa(0x273)][_0x2a30aa(0x251)](_0x464221),_0x1004a6=_0x3f5fee[_0x2a30aa(0x320)](_0x502d68=>{_0x502d68['id']===_0x4c133e['id']&&_0x464221();});return _0x464221(),()=>{const _0x39eca6=_0x2a30aa;_0x457764['unsubscribe'](),_0x1004a6[_0x39eca6(0x208)]();};})[_0xb0970d(0x301)](_0x19e0f8());}function di(_0xd34c35,_0x344685=!0x1){const _0x21ff6a=_0x1ed081;let _0x57dbd0=_0xd34c35['get'](_0x582229),_0x198520=_0xd34c35[_0x21ff6a(0x410)](_0x4cc4c4),_0x74ae82=_0xd34c35[_0x21ff6a(0x410)](_0x39396e);return new _0x3fafbe(_0x1eb839=>{const _0x373daf=_0x21ff6a;let _0x4836bf=()=>{const _0x1b53a3=_0x5aa0;let _0x164aa0=ci(_0xd34c35);if(!_0x164aa0){_0x1eb839[_0x1b53a3(0x2d8)](!0x0);return;}let _0x4fd048=_0x74ae82[_0x1b53a3(0x2e4)](_0x164aa0[_0x1b53a3(0x355)],_0x164aa0['subUnitId'],_0x164aa0['drawingId']);_0x1eb839[_0x1b53a3(0x2d8)](!_0x4fd048||_0x344685&&_0x4fd048[_0x1b53a3(0x1f5)]==null);},_0xd327f=_0x198520[_0x373daf(0x273)]['subscribe'](_0x4836bf),_0x30b95f=_0x57dbd0[_0x373daf(0x320)](_0x54acc3=>{_0x54acc3['id']===_0xbcf5de['id']&&_0x4836bf();});return _0x4836bf(),()=>{const _0x29d0d2=_0x373daf;_0xd327f['unsubscribe'](),_0x30b95f[_0x29d0d2(0x208)]();};});}function fi(_0x2bc761){const _0x53a969=_0x1ed081;let _0x2e0527=_0x2bc761['get'](_0x4cc4c4),_0x2351f0=_0x2bc761[_0x53a969(0x410)](_0x39396e);return _0x2e0527[_0x53a969(0x273)][_0x53a969(0x301)](_0x2c09e4(_0x2e0527['getFocusDrawings']()),_0x5cfa63(()=>{const _0x4d2cd5=_0x53a969;let _0x5e8f4d=ci(_0x2bc761),_0x2db076=_0x5e8f4d?_0x2351f0[_0x4d2cd5(0x363)](_0x5e8f4d[_0x4d2cd5(0x355)],_0x5e8f4d[_0x4d2cd5(0x203)],_0x5e8f4d['drawingId']):void 0x0;return _0x2db076===void 0x0||_0x238e4e(_0x2db076);}));}function pi(_0x4c4e6a){const _0x1800ab=_0x1ed081;return{'id':Tr['id'],'type':_0x2f080a[_0x1800ab(0x255)],'icon':_0x1800ab(0x30f),'title':_0x1800ab(0x20b),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1}}],'value$':si(_0x4c4e6a),'hidden$':di(_0x4c4e6a)};}function mi(_0x504679){const _0x3ae536=_0x1ed081;return{'id':Er['id'],'type':_0x2f080a['SELECTOR'],'icon':_0x3ae536(0x21f),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x3ae536(0x3d2),'slot':!0x0,'selections':[{'label':{'name':_0x528b39,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':fi(_0x504679)};}function hi(_0x52947f,_0xf66239,_0x5b9837=!0x1){return _0x240b88=>({'id':_0x52947f,'type':_0x2f080a['BUTTON'],'label':{'name':_0xf66239,'hoverable':!0x1,'selectable':!0x1},'hidden$':di(_0x240b88,_0x5b9837)});}const gi=hi($r,Hr),_i=hi(ei,Ur),vi=hi(ti,Wr,!0x0);function yi(_0x2d8033){const _0x51559c=_0x1ed081;return{'id':oi,'type':_0x2f080a['SELECTOR'],'icon':Kr[0x0][_0x51559c(0x296)],'label':Gr,'selectionsCommandId':_0xdbdd89['id'],'selections':Kr['map'](({icon:_0x2504e6,label:_0x46b290,value:_0x3526f0})=>({'value':_0x3526f0,'label':_0x46b290,'icon':_0x2504e6,'params':()=>{const _0x4ebffd=_0x51559c;let _0x31a708=ci(_0x2d8033);return _0x31a708?{'unitId':_0x31a708['unitId'],'subUnitId':_0x31a708['subUnitId'],'drawings':[{'unitId':_0x31a708[_0x4ebffd(0x355)],'subUnitId':_0x31a708[_0x4ebffd(0x203)],'drawingId':_0x31a708['drawingId']}],'wrappingStyle':_0x3526f0}:void 0x0;}})),'value$':ui(_0x2d8033),'hidden$':di(_0x2d8033)};}function bi(_0x80cf32,_0x484a70,_0x19e7ef,_0x26a4ea){const _0x28891c=_0x1ed081;return _0x256ba4=>({'id':_0x80cf32,'commandId':_0x5dc4dd['id'],'type':_0x2f080a[_0x28891c(0x3f8)],'icon':_0x19e7ef,'title':_0x26a4ea,'tooltip':_0x26a4ea,'hidden$':di(_0x256ba4),'params':()=>{const _0x408d01=_0x28891c;let _0x5ac71f=ci(_0x256ba4);return _0x5ac71f?{'unitId':_0x5ac71f['unitId'],'subUnitId':_0x5ac71f[_0x408d01(0x203)],'drawingIds':[_0x5ac71f[_0x408d01(0x210)]],'arrangeType':_0x484a70}:void 0x0;}});}const xi=bi(ni,_0x30db5e[_0x1ed081(0x2bd)],'MoveUpIcon',_0x1ed081(0x26a)),Si=bi(ri,_0x30db5e[_0x1ed081(0x2a6)],_0x1ed081(0x241),'shape-editor-ui.arrange.backward'),Ci=bi(ii,_0x30db5e[_0x1ed081(0x3bc)],'TopmostIcon','shape-editor-ui.arrange.front'),wi=bi(ai,_0x30db5e['back'],'BottomIcon',_0x1ed081(0x287));function Ti(_0x607a3a){const _0x3855c3=_0x1ed081;return{'id':q['id'],'type':_0x2f080a['BUTTON'],'icon':_0x3855c3(0x2dd),'title':_0x3855c3(0x25b),'tooltip':'docs-shape-ui.formatShape','hidden$':di(_0x607a3a),'params':()=>{const _0x15e9a9=_0x3855c3;let _0x57990d=ci(_0x607a3a);return _0x57990d?{'unitId':_0x57990d[_0x15e9a9(0x355)],'subUnitId':_0x57990d[_0x15e9a9(0x203)],'drawingId':_0x57990d[_0x15e9a9(0x210)]}:void 0x0;}};}const Ei={[_0x548c7b[_0x1ed081(0x338)]]:{[vr]:{'order':0x64,'title':_0x1ed081(0x25b),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Tr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':pi},[Er['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':mi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[$r]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':gi}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ei]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':_i}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[oi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':yi},[ni]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':xi},[ri]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Si},[ii]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ci},[ai]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ti]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':vi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[q['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ti},[_0x1c8b61['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x290bb3}}}}},Di={[_0x2d4568[_0x1ed081(0x32e)]]:{[G['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x2a9bf4=>({...Fr(_0x2a9bf4),'title':void 0x0})}},[_0x2d4568[_0x1ed081(0x21e)]]:{[Cr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Rr}},[_0x4bb22c[_0x1ed081(0x3ec)]]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[_0xb3dfee]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x551466]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x2babac]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Lr}}},[_0x3e65d4]:{'insert':{[G['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Fr}}},[_0x31fd56]:{'insert':{[G['id']+'.below']:{'replace':!0x0,'order':0x2,'menuItemFactory':Ir}}}}};var Oi=_0x1ed081(0x267),ki=_0x1ed081(0x322);const Ai={'type':_0x500db0[_0x1ed081(0x2ea)],'id':_0x1ed081(0x3ab),'handler'(){return!0x0;}},ji=_0x1ed081(0x246),Mi={};function Ni(_0x30d0fc){'@babel/helpers - typeof';const _0x395444=_0x1ed081;return Ni=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x395444(0x1e4)?function(_0x4b20ae){return typeof _0x4b20ae;}:function(_0x28d01f){const _0x112fdf=_0x395444;return _0x28d01f&&typeof Symbol==_0x112fdf(0x341)&&_0x28d01f[_0x112fdf(0x2ac)]===Symbol&&_0x28d01f!==Symbol['prototype']?'symbol':typeof _0x28d01f;},Ni(_0x30d0fc);}function Pi(_0x28aa25,_0x4b1820){const _0x31c2d9=_0x1ed081;if(Ni(_0x28aa25)!=_0x31c2d9(0x39b)||!_0x28aa25)return _0x28aa25;var _0x5a0bf4=_0x28aa25[Symbol[_0x31c2d9(0x1fa)]];if(_0x5a0bf4!==void 0x0){var _0x3b53a0=_0x5a0bf4[_0x31c2d9(0x34f)](_0x28aa25,_0x4b1820||_0x31c2d9(0x244));if(Ni(_0x3b53a0)!=_0x31c2d9(0x39b))return _0x3b53a0;throw TypeError(_0x31c2d9(0x373));}return(_0x4b1820==='string'?String:Number)(_0x28aa25);}function Fi(_0x418c1f){const _0x3c8a04=_0x1ed081;var _0xdcf171=Pi(_0x418c1f,_0x3c8a04(0x209));return Ni(_0xdcf171)==_0x3c8a04(0x1e4)?_0xdcf171:_0xdcf171+'';}function Z(_0x58f768,_0x3bc367,_0x18c7c5){const _0x92bfc2=_0x1ed081;return(_0x3bc367=Fi(_0x3bc367))in _0x58f768?Object[_0x92bfc2(0x247)](_0x58f768,_0x3bc367,{'value':_0x18c7c5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x58f768[_0x3bc367]=_0x18c7c5,_0x58f768;}var Ii=class extends _0x9fb59e{constructor(_0x128700,_0x5e7c0e){const _0x26d072=_0x1ed081;super(_0x128700,_0x5e7c0e),Z(this,'_shapeId',null),Z(this,_0x26d072(0x35c),null),Z(this,_0x26d072(0x2a9),null),Z(this,_0x26d072(0x2fc),null),_0x5e7c0e&&this['setShapeProps'](_0x5e7c0e);}['getDrawingSearch'](){const _0x875075=_0x1ed081;return{'unitId':this['_unitId'],'subUnitId':this[_0x875075(0x2fc)],'drawingId':this['_shapeId']};}[_0x1ed081(0x33e)](_0x24b76c){const _0x5679d2=_0x1ed081;_0x24b76c[_0x5679d2(0x317)]!==void 0x0&&(this[_0x5679d2(0x257)]=_0x24b76c[_0x5679d2(0x317)]),_0x24b76c[_0x5679d2(0x43e)]!==void 0x0&&(this[_0x5679d2(0x35c)]=_0x24b76c['adjName']),_0x24b76c[_0x5679d2(0x355)]!==void 0x0&&(this[_0x5679d2(0x2a9)]=_0x24b76c[_0x5679d2(0x355)]),_0x24b76c[_0x5679d2(0x203)]!==void 0x0&&(this['_subUnitId']=_0x24b76c['subUnitId']),this[_0x5679d2(0x3be)]({'width':_0x24b76c[_0x5679d2(0x421)],'height':_0x24b76c[_0x5679d2(0x3e1)]});}[_0x1ed081(0x419)](_0x5a815a){const _0x31e499=_0x1ed081;_0x738e8c['drawWith'](_0x5a815a,{'radius':_0x127ad4[_0x31e499(0x42a)],'fill':_0x127ad4[_0x31e499(0x2a8)],'stroke':_0x127ad4[_0x31e499(0x2d5)],'strokeWidth':0x1,'evented':!0x0});}};function Li(_0x451224,_0x458389,_0x3dd22c){const _0x5df600=_0x1ed081;let _0x3b2ddb={..._0x458389,'dataModel':{..._0x458389[_0x5df600(0x3e2)]??{},..._0x3dd22c?{'doc':_0x3dd22c}:null}},_0x347d03=_0xe70f41(_0x451224,_0x3b2ddb),_0x18d3fb=_0x55fcc9(_0x347d03);return{'clip':_0x2b8d55(_0x347d03,_0x18d3fb),'wrapStrategy':_0x18d3fb};}var Ri=class extends _0x9fb59e{constructor(_0x4d9cd2,_0x775f6b){const _0x20ec42=_0x1ed081;super(_0x4d9cd2,_0x775f6b),Z(this,'_props',void 0x0),Z(this,_0x20ec42(0x418),new _0x297674(()=>this[_0x20ec42(0x2cf)](!0x0),()=>this[_0x20ec42(0x2db)]())),Z(this,_0x20ec42(0x41c),!0x0),Z(this,_0x20ec42(0x346),_0x690970[_0x20ec42(0x20d)]),Z(this,_0x20ec42(0x445),!0x0),this[_0x20ec42(0x2e6)]={..._0x775f6b},this['_formulaAnimation']['setPresentation'](_0x775f6b[_0x20ec42(0x1e6)],_0x775f6b[_0x20ec42(0x274)]!==!0x1),this['_init'](),this[_0x20ec42(0x2db)]();}[_0x1ed081(0x435)](){this['onTransformChange$']['subscribeEvent'](_0x2aa114=>{const _0x100f9c=_0x5aa0;this[_0x100f9c(0x214)](_0x2aa114);});}[_0x1ed081(0x29c)](_0x912306){const _0x325e4c=_0x1ed081;this[_0x325e4c(0x2e6)][_0x325e4c(0x21b)]=_0x912306;}[_0x1ed081(0x372)](_0x56a52a){const _0xa56a37=_0x1ed081;this[_0xa56a37(0x2e6)]['isEditing']=_0x56a52a,this[_0xa56a37(0x2cf)](!0x0);}[_0x1ed081(0x27b)](_0x1f55f,_0x2ad77b=!0x0){const _0x389781=_0x1ed081;this[_0x389781(0x418)]['setPresentation'](_0x1f55f,_0x2ad77b),this[_0x389781(0x2e6)][_0x389781(0x1e6)]=_0x1f55f,this[_0x389781(0x2db)](),this['makeDirty'](!0x0);}[_0x1ed081(0x2db)](){const _0x45147d=_0x1ed081;let _0x14066a=this['_props'][_0x45147d(0x2d4)],_0x30364c=_0x14066a['getShapeTextData'](),_0x105053=_0x2e2427(_0x30364c==null?void 0x0:_0x30364c['dataModel']),_0x5f467b=_0x105053==null?void 0x0:_0x105053[_0x45147d(0x2ca)],_0x42359d=this[_0x45147d(0x418)]['getAutoFitPresentations']();if(!_0x5f467b||_0x42359d['length']===0x0)return;_0x14066a[_0x45147d(0x31a)]({'width':this[_0x45147d(0x421)],'height':this[_0x45147d(0x3e1)]});let _0x5f44b7=_0x209b99({'documentData':_0x42359d['map'](_0x4697c8=>_0x347dfc(_0x5f467b,_0x4697c8)),'height':this[_0x45147d(0x3e1)],'shapeData':_0x14066a[_0x45147d(0x3c2)](),'textRect':_0x14066a['getShapeTextRect']({'left':0x0,'top':0x0,'width':this['width'],'height':this[_0x45147d(0x3e1)]}),'width':this['width']});if(_0x5f44b7){var _0x143aa6;this['resize'](_0x5f44b7[_0x45147d(0x421)],_0x5f44b7['height']),(_0x143aa6=this[_0x45147d(0x385)]())==null||(_0x143aa6=_0x143aa6['getTransformer']())==null||_0x143aa6[_0x45147d(0x2b7)]();}}get['unitId'](){const _0x500b8e=_0x1ed081;return this[_0x500b8e(0x2e6)][_0x500b8e(0x355)];}get[_0x1ed081(0x203)](){const _0x3a7365=_0x1ed081;return this[_0x3a7365(0x2e6)]['subUnitId'];}['_updateSrcRectByTransform'](_0x2c2f6f){const _0x4d81ab=_0x1ed081;if(this['_props'][_0x4d81ab(0x222)]==null||!this[_0x4d81ab(0x41c)])return;let {width:_0x1be501,height:_0x1532d6}=this,{width:_0x586478=0x0,height:_0x5b4428=0x0}=_0x2c2f6f[_0x4d81ab(0x226)],{left:_0x5cac18=0x0,top:_0x47cabe=0x0,right:_0x96bad3=0x0,bottom:_0x2206f7=0x0}=this[_0x4d81ab(0x2e6)][_0x4d81ab(0x222)],_0x5ae710=_0x5cac18,_0x57d959=_0x47cabe,_0x156ceb=_0x96bad3,_0x1f710b=_0x2206f7,_0x4f3510=!0x1;if(_0x586478!==0x0&&_0x586478!==_0x1be501){let _0x3188e3=_0x5cac18/_0x586478,_0x52cd8f=_0x96bad3/_0x586478;_0x5ae710=_0x1be501*_0x3188e3,_0x156ceb=_0x1be501*_0x52cd8f,_0x4f3510=!0x0;}if(_0x5b4428!==0x0&&_0x5b4428!==_0x1532d6){let _0x376f46=_0x47cabe/_0x5b4428,_0x4979e3=_0x2206f7/_0x5b4428;_0x57d959=_0x1532d6*_0x376f46,_0x1f710b=_0x1532d6*_0x4979e3,_0x4f3510=!0x0;}_0x4f3510&&this['setSrcRect']({'left':_0x5ae710,'top':_0x57d959,'right':_0x156ceb,'bottom':_0x1f710b});}[_0x1ed081(0x430)](_0x1a3637){const _0x15240b=_0x1ed081;this[_0x15240b(0x2e6)]['srcRect']=_0x1a3637,this[_0x15240b(0x2cf)](!0x0);}[_0x1ed081(0x25d)](_0x99855){const _0x12f378=_0x1ed081;this[_0x12f378(0x2e6)]['image']=_0x99855,this[_0x12f378(0x2cf)](!0x0);}set[_0x1ed081(0x35d)](_0x277efb){this['_transform']=_0x277efb;}get[_0x1ed081(0x35d)](){const _0x4304eb=_0x1ed081;this[_0x4304eb(0x36e)]||this[_0x4304eb(0x38b)]();let _0x2f0ce4=this[_0x4304eb(0x36e)][_0x4304eb(0x3d6)]();return this['transformForAngle'](_0x2f0ce4);}get[_0x1ed081(0x2d4)](){const _0x215a7d=_0x1ed081;return this[_0x215a7d(0x2e6)]['shapeModel'];}get[_0x1ed081(0x317)](){const _0x21b8a9=_0x1ed081;return this[_0x21b8a9(0x2e6)]['shapeId'];}get[_0x1ed081(0x37a)](){const _0x487404=_0x1ed081;return _0x29eaa6[_0x487404(0x32c)];}[_0x1ed081(0x419)](_0x5e7fa6,_0x347ee2,_0x21a447,_0x379d6f){const _0x413b44=_0x1ed081;let _0x368d6c=this[_0x413b44(0x2e6)][_0x413b44(0x2d4)];if(!_0x368d6c||!_0x347ee2)return;let _0x5690cb=_0x21a447??this[_0x413b44(0x421)],_0x5e6eec=_0x379d6f??this[_0x413b44(0x3e1)],_0x182b79={'shapeType':_0x368d6c[_0x413b44(0x40b)](),'width':_0x5690cb,'height':_0x5e6eec},_0x1756a3={'renderMode':_0x3cb180[_0x413b44(0x308)],'oKey':this[_0x413b44(0x1e8)],'image':this[_0x413b44(0x2e6)][_0x413b44(0x379)],'angle':this[_0x413b44(0x3c1)]};_0x368d6c[_0x413b44(0x31a)](_0x182b79),_0x5e7fa6[_0x413b44(0x3c7)]();let _0x1b525d={'top':0x0,'left':0x0,'width':_0x5690cb,'height':_0x5e6eec},_0x6c41ca=_0x368d6c[_0x413b44(0x41a)](_0x1b525d);_0x6c41ca?this[_0x413b44(0x337)](_0x5e7fa6,_0x6c41ca,_0x5c4916=>{const _0x21b509=_0x413b44;_0x368d6c[_0x21b509(0x37b)](_0x5c4916,_0x1b525d,_0x1756a3);}):(this[_0x413b44(0x3e6)](),_0x368d6c[_0x413b44(0x37b)](_0x5e7fa6,_0x1b525d,_0x1756a3)),_0x5e7fa6[_0x413b44(0x3b0)]();let _0x571b09=_0x368d6c[_0x413b44(0x2de)](),_0x1e8b04=_0x368d6c[_0x413b44(0x262)](_0x1b525d),_0x1c4a35=_0x368d6c[_0x413b44(0x248)]();if(_0x571b09&&_0x1e8b04&&!_0x1c4a35){_0x5e7fa6[_0x413b44(0x3c7)](),this['getState']()['flipX']&&_0x5e7fa6[_0x413b44(0x31e)](-0x1,0x1);let _0x6eb6c5=_0x5690cb/0x2,_0x1e2c3b=_0x5e6eec/0x2;_0x5e7fa6[_0x413b44(0x2bf)](-_0x6eb6c5,-_0x1e2c3b),_0x5e7fa6['beginPath'](),this[_0x413b44(0x408)](_0x5e7fa6,_0x571b09,_0x1e8b04),_0x5e7fa6[_0x413b44(0x3b0)]();}}[_0x1ed081(0x34b)](_0x549455){}[_0x1ed081(0x408)](_0x133f05,_0x32b64d,_0x255a0a){const _0x4e6843=_0x1ed081;var _0xe48d2e;this['_props']['isEditing']||(!((_0xe48d2e=_0x32b64d[_0x4e6843(0x3e2)])!=null&&_0xe48d2e[_0x4e6843(0x2ca)])&&_0x4e6843(0x3fb)in _0x32b64d&&_0x32b64d[_0x4e6843(0x3fb)]===!0x1?this[_0x4e6843(0x312)](_0x133f05,_0x32b64d,_0x255a0a):this[_0x4e6843(0x2d6)](_0x133f05,_0x32b64d,_0x255a0a));}['_drawSimpleText'](_0x5ab799,_0x17355b,_0x9e74f){const _0x2b9a49=_0x1ed081;this[_0x2b9a49(0x2d6)](_0x5ab799,{..._0x17355b,'text':_0x17355b[_0x2b9a49(0x348)]??'','dataModel':{'doc':_0x105325(_0x17355b,_0x2b9a49(0x290)+this[_0x2b9a49(0x1e8)])}},_0x9e74f);}[_0x1ed081(0x2d6)](_0x49f414,_0x5c6178,_0x29fb82){const _0x233f8a=_0x1ed081;_0xbd9d06(_0x49f414,this[_0x233f8a(0x418)],(_0x4996a0,_0x162eab)=>{this['_drawRichTextLayer'](_0x4996a0,_0x5c6178,_0x29fb82,_0x162eab);});}[_0x1ed081(0x3bd)](_0x37f725,_0x2cbc80,_0x1346e1,_0x2e8080){const _0x40b4d2=_0x1ed081;let _0x1bb07f=this['_props']['localeService'];if(!_0x2cbc80['dataModel']||!_0x1bb07f){_0x1bb07f||console[_0x40b4d2(0x3a6)](_0x40b4d2(0x3aa));return;}let _0x37f5df=_0x2e2427(_0x2cbc80[_0x40b4d2(0x3e2)]);if(!_0x37f5df)return;let _0x10ac5e=_0x37f5df[_0x40b4d2(0x2ca)];if(!_0x10ac5e)return;let _0x3251b7=_0x347dfc(_0x10ac5e,_0x2e8080),_0x1e37a5=_0x37f5df['va']??_0x36ee41['TOP'],_0x231216=_0x37f5df['ha']??_0x2381fc[_0x40b4d2(0x25e)],_0xd32a84=Li(this[_0x40b4d2(0x2e6)]['shapeModel'][_0x40b4d2(0x3c2)](),_0x2cbc80,_0x3251b7),_0x4a3b7a=_0x2cbc80[_0x40b4d2(0x238)],_0x3b0b61=_0x2bb33c(_0x3251b7,{'isHorizontal':_0x4a3b7a!==!0x1,'textRect':_0x1346e1,'verticalAlign':_0x1e37a5,'horizontalAlign':_0x231216,'wrapStrategy':_0xd32a84['wrapStrategy']}),_0x37f8a0=new _0x3b3dfb(_0x3b0b61),_0x2aa9d1=new _0x514bbc(_0x37f8a0),_0x3e63b0=_0x44a5a2['create'](_0x2aa9d1,_0x1bb07f);_0x3e63b0[_0x40b4d2(0x3ef)]();let _0x294fd1=_0x3e63b0[_0x40b4d2(0x38d)]()[_0x40b4d2(0x1eb)],_0x366e04=_0x191558({'contentHeight':_0x294fd1,'verticalAlign':_0x1e37a5,'viewportHeight':_0x1346e1['height']});_0x37f8a0[_0x40b4d2(0x28a)]({'pageSize':{'width':_0x4a3b7a===!0x1?_0x1346e1['height']:_0x1346e1[_0x40b4d2(0x421)],'height':_0x5a1b24(_0x3251b7,_0x366e04[_0x40b4d2(0x3b1)])}}),_0x37f8a0[_0x40b4d2(0x30d)]({'t':_0x366e04[_0x40b4d2(0x2b9)]}),_0x3e63b0[_0x40b4d2(0x3ef)]();let _0x484499=new _0x407a64('shape-text-'+this[_0x40b4d2(0x1e8)],_0x3e63b0,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x484499['resize'](_0x1346e1['width'],_0x366e04['contentHeight']),_0x37f725[_0x40b4d2(0x3c7)](),_0x37f725[_0x40b4d2(0x3c6)](_0x1346e1[_0x40b4d2(0x447)],_0x1346e1[_0x40b4d2(0x1fd)]),_0xd32a84[_0x40b4d2(0x250)]&&(_0x37f725[_0x40b4d2(0x2d0)](),_0x37f725[_0x40b4d2(0x32f)](0x0,_0x366e04['clipTop'],_0x1346e1[_0x40b4d2(0x421)],_0x366e04[_0x40b4d2(0x326)]),_0x37f725['clip']()),_0x366e04['contentVerticalOffset']&&_0x37f725[_0x40b4d2(0x3c6)](0x0,_0x366e04[_0x40b4d2(0x3a8)]),_0x484499[_0x40b4d2(0x33c)](_0x37f725),_0x37f725[_0x40b4d2(0x3b0)](),_0x484499[_0x40b4d2(0x208)](),_0x3e63b0[_0x40b4d2(0x208)](),_0x2aa9d1[_0x40b4d2(0x208)](),_0x37f8a0[_0x40b4d2(0x208)]();}[_0x1ed081(0x37b)](_0x549778,_0x4e7ff2,_0x64586c=!0x1){const _0x1e8586=_0x1ed081;if(!this[_0x1e8586(0x232)])return this['makeDirty'](!0x1),this;let {width:_0x48875a,height:_0x12c313,left:_0x1cf3c5,top:_0x1bee99}=this,_0x245a8a=this[_0x1e8586(0x1e3)]();if(_0x48875a=_0x245a8a[_0x1e8586(0x421)],_0x12c313=_0x245a8a[_0x1e8586(0x3e1)],_0x1cf3c5=_0x245a8a[_0x1e8586(0x447)],_0x1bee99=_0x245a8a['top'],this['isRender'](_0x4e7ff2)){let {top:_0x2f1f2d,left:_0xbc6621,bottom:_0x51c87e,right:_0x597c43}=_0x4e7ff2[_0x1e8586(0x2f1)];if(_0x48875a+this['strokeWidth']+_0x1cf3c5<_0xbc6621||_0x597c43<_0x1cf3c5||_0x12c313+this[_0x1e8586(0x356)]+_0x1bee99<_0x2f1f2d||_0x51c87e<_0x1bee99)return this;}let _0x38ea23=_0x1cf3c5+_0x48875a/0x2,_0x5e9eae=_0x1bee99+_0x12c313/0x2,_0x41e58f=this['transform'][_0x1e8586(0x36a)]();if(this[_0x1e8586(0x2e6)][_0x1e8586(0x2bb)]){let _0x4d67ed=this[_0x1e8586(0x2b5)](),_0x2704bd=new _0x3cb6b6();_0x2704bd[_0x1e8586(0x2f6)]({..._0x4d67ed}),_0x41e58f=_0x2704bd[_0x1e8586(0x36a)]();}return _0x549778['save'](),this[_0x1e8586(0x2e6)][_0x1e8586(0x2d4)]['isRenderLinePointsMode']===!0x0||_0x549778[_0x1e8586(0x35d)](_0x41e58f[0x0],_0x41e58f[0x1],_0x41e58f[0x2],_0x41e58f[0x3],_0x38ea23,_0x5e9eae),this[_0x1e8586(0x419)](_0x549778,_0x4e7ff2,_0x48875a,_0x12c313),_0x549778[_0x1e8586(0x3b0)](),this[_0x1e8586(0x2cf)](!0x1),this;}[_0x1ed081(0x2c4)](_0x52f1fa){const _0x11aec3=_0x1ed081;let {left:_0xadc810,top:_0x10b900,width:_0x12c1fa,height:_0x357d00}=this['getRealBound'](),_0x44e716=this[_0x11aec3(0x35d)][_0x11aec3(0x36a)](),_0x548c4a=_0xadc810+_0x12c1fa/0x2,_0x425aba=_0x10b900+_0x357d00/0x2,_0x2eea3f=new _0x3cb6b6([_0x44e716[0x0],_0x44e716[0x1],_0x44e716[0x2],_0x44e716[0x3],_0x548c4a,_0x425aba]),_0x5ea2b6=this[_0x11aec3(0x388)]();return(this[_0x11aec3(0x3f4)]&&(_0x5ea2b6==null?void 0x0:_0x5ea2b6[_0x11aec3(0x37a)])===_0x29eaa6[_0x11aec3(0x394)]?_0x5ea2b6[_0x11aec3(0x42f)][_0x11aec3(0x3d8)](_0x2eea3f):_0x2eea3f)[_0x11aec3(0x25c)]()[_0x11aec3(0x371)](_0x52f1fa);}[_0x1ed081(0x40a)](_0x923b5b){const _0x46185e=_0x1ed081;let {left:_0x164ef2,top:_0x4bdfb0,width:_0x4c16da,height:_0x443da8}=this[_0x46185e(0x1e3)](),_0x13b6c6=_0x164ef2+_0x4c16da/0x2,_0x587451=_0x4bdfb0+_0x443da8/0x2,_0x5dc731=this[_0x46185e(0x35d)][_0x46185e(0x36a)](),_0x43bc74=new _0x3cb6b6([_0x5dc731[0x0],_0x5dc731[0x1],_0x5dc731[0x2],_0x5dc731[0x3],_0x13b6c6,_0x587451]),_0x2e0dd8=this[_0x46185e(0x388)](),_0x3499c8=(this[_0x46185e(0x3f4)]&&(_0x2e0dd8==null?void 0x0:_0x2e0dd8[_0x46185e(0x37a)])===_0x29eaa6['GROUP']?_0x2e0dd8[_0x46185e(0x42f)][_0x46185e(0x3d8)](_0x43bc74):_0x43bc74)['invert']()[_0x46185e(0x371)](_0x923b5b),_0x263e21=_0x4c16da/0x2,_0x3be28f=_0x443da8/0x2,_0xd1ac5e=this[_0x46185e(0x2e6)][_0x46185e(0x2d4)];return _0xd1ac5e&&_0xd1ac5e[_0x46185e(0x248)]()?_0xd1ac5e[_0x46185e(0x43f)](_0x3499c8['x'],_0x3499c8['y'],_0x4c16da,_0x443da8):_0x3499c8['x']>=-_0x263e21-this['strokeWidth']/0x2&&_0x3499c8['x']<=_0x263e21+this[_0x46185e(0x356)]/0x2&&_0x3499c8['y']>=-_0x3be28f-this[_0x46185e(0x356)]/0x2&&_0x3499c8['y']<=_0x3be28f+this['strokeWidth']/0x2;}['dispose'](){const _0x455eb9=_0x1ed081;this[_0x455eb9(0x418)][_0x455eb9(0x208)](),this[_0x455eb9(0x2e6)][_0x455eb9(0x2d4)]=null,super[_0x455eb9(0x208)]();}};let zi=class extends _0x5721ff{constructor(_0x2a588a,_0x3733ef,_0x59f995,_0x451d04){const _0xbdf674=_0x1ed081;super(),this[_0xbdf674(0x42e)]=_0x2a588a,this[_0xbdf674(0x291)]=_0x3733ef,this['_docsShapeService']=_0x59f995,this[_0xbdf674(0x22d)]=_0x451d04,Z(this,_0xbdf674(0x2c0),null),Z(this,_0xbdf674(0x2a9),null),Z(this,_0xbdf674(0x2fc),null),Z(this,'_activeShapeAdjustPointList',void 0x0),Z(this,_0xbdf674(0x411),[]),Z(this,'_baseShapeLeft',0x0),Z(this,'_baseShapeTop',0x0),Z(this,_0xbdf674(0x2fb),0x0),Z(this,_0xbdf674(0x1ee),0x0),Z(this,'_isStartAdjusting',!0x1),Z(this,_0xbdf674(0x279),!0x1),Z(this,_0xbdf674(0x212),void 0x0),Z(this,'_activeShapeModel',void 0x0),Z(this,'_adjHandlerPointerMove',void 0x0),Z(this,'_adjHandlerPointerUp',void 0x0),this[_0xbdf674(0x324)](),this[_0xbdf674(0x271)]();}[_0x1ed081(0x340)](){this['_clearShapeAdjustControls']();}[_0x1ed081(0x1f3)](){const _0x52ac7f=_0x1ed081;this[_0x52ac7f(0x292)](!0x0);}[_0x1ed081(0x33a)](_0x58761f,_0x308e19,_0x2e87f2){const _0x93761e=_0x1ed081;var _0x1168fd;return(_0x1168fd=this[_0x93761e(0x26c)][_0x93761e(0x381)](_0x58761f,_0x308e19,_0x2e87f2))==null?void 0x0:_0x1168fd[_0x93761e(0x34b)]();}[_0x1ed081(0x20f)](_0x522dd7,_0x4b1f2e,_0x5761b1,_0x315c05){const _0x1eaa08=_0x1ed081;var _0x2b1b75;return(_0x2b1b75=this[_0x1eaa08(0x26c)][_0x1eaa08(0x381)](_0x522dd7,_0x4b1f2e,_0x5761b1))==null?void 0x0:_0x2b1b75[_0x1eaa08(0x370)](_0x315c05);}[_0x1ed081(0x1e5)](){const _0x5bdecc=_0x1ed081;return this[_0x5bdecc(0x2a9)]===null||this[_0x5bdecc(0x2fc)]===null||this[_0x5bdecc(0x2c0)]===null?null:this[_0x5bdecc(0x291)][_0x5bdecc(0x207)]({'unitId':this['_unitId'],'subUnitId':this[_0x5bdecc(0x2fc)],'drawingId':this['_activeShapeId']})??null;}[_0x1ed081(0x357)](_0x5eaf74){const _0x3390f5=_0x1ed081;if(this[_0x3390f5(0x2a9)]===null||this[_0x3390f5(0x2fc)]===null||this[_0x3390f5(0x2c0)]===null)return null;let _0xa0640d=_0x54547b({'unitId':this['_unitId'],'subUnitId':this[_0x3390f5(0x2fc)],'drawingId':this['_activeShapeId']}),_0x30d550=_0x5eaf74['getObjectIncludeInGroup'](_0xa0640d);return _0x30d550 instanceof Ri?_0x30d550:null;}[_0x1ed081(0x22e)](_0xaa5b40=!0x1){const _0x46d9e4=_0x1ed081;if(this['_unitId']===null||this[_0x46d9e4(0x2fc)]===null||this[_0x46d9e4(0x2c0)]===null)return;let _0x13b358=this[_0x46d9e4(0x1e5)]();if((_0x13b358==null?void 0x0:_0x13b358[_0x46d9e4(0x234)])!==_0x690970[_0x46d9e4(0x20d)]||!_0x13b358[_0x46d9e4(0x35d)])return;let _0x5a9e91=this[_0x46d9e4(0x26c)][_0x46d9e4(0x381)](this[_0x46d9e4(0x2a9)],this[_0x46d9e4(0x2fc)],this[_0x46d9e4(0x2c0)]);if(!_0x5a9e91||_0x5a9e91[_0x46d9e4(0x248)]())return;let {left:_0x354ec4=0x0,top:_0x3baf35=0x0,width:_0x3421a6=0x0,height:_0x2d39dc=0x0,flipX:_0x37b18a,flipY:_0x30a7f9,angle:_0x3558b9=0x0}=_0x13b358[_0x46d9e4(0x35d)];(_0xaa5b40||!this[_0x46d9e4(0x37e)])&&(_0x5a9e91[_0x46d9e4(0x31a)]({'width':_0x3421a6,'height':_0x2d39dc}),this['_activeShapeAdjustPointList']=_0x5a9e91[_0x46d9e4(0x34b)]());let _0x47b174=this[_0x46d9e4(0x37e)];if(!(_0x47b174!=null&&_0x47b174[_0x46d9e4(0x43c)]))return;let {scene:_0x5e57cc}=this[_0x46d9e4(0x42e)];for(let _0x2e041e of _0x47b174){let _0x7586dc=this[_0x46d9e4(0x3ee)](_0x2e041e,_0x3421a6,_0x2d39dc,!!_0x37b18a,!!_0x30a7f9,_0x3558b9);this[_0x46d9e4(0x2da)](_0x5e57cc,_0x7586dc,_0x7586dc[_0x46d9e4(0x43e)],_0x354ec4,_0x3baf35,this['_unitId'],this[_0x46d9e4(0x2fc)]);}}[_0x1ed081(0x3ee)](_0x308129,_0x139a4c,_0x2074ba,_0x32656f,_0x316142,_0x3184c9){const _0x399126=_0x1ed081;let _0x99aa6=_0x308129['x'],_0x5a5963=_0x308129['y'];if(_0x32656f&&(_0x99aa6=_0x139a4c-_0x99aa6),_0x316142&&(_0x5a5963=_0x2074ba-_0x5a5963),_0x3184c9!==0x0){let _0x427436=_0x139a4c/0x2,_0xe90283=_0x2074ba/0x2,_0x41b133=_0x3184c9*Math['PI']/0xb4,_0x1d7e98=Math[_0x399126(0x1ef)](_0x41b133),_0x25c957=Math['sin'](_0x41b133),_0x36c9d9=_0x99aa6-_0x427436,_0x29b08a=_0x5a5963-_0xe90283;_0x99aa6=_0x427436+(_0x36c9d9*_0x1d7e98-_0x29b08a*_0x25c957),_0x5a5963=_0xe90283+(_0x36c9d9*_0x25c957+_0x29b08a*_0x1d7e98);}return{'x':_0x99aa6,'y':_0x5a5963,'adjName':_0x308129[_0x399126(0x43e)]};}['_updateShapeAdjustControls'](_0x5916ff=!0x1){const _0x3ca55a=_0x1ed081;_0x5916ff&&this[_0x3ca55a(0x34c)](),this['_createShapeAdjustControls'](_0x5916ff);}[_0x1ed081(0x2da)](_0x5f507a,_0x5d64bb,_0x51ef36,_0x5844d4,_0x49868c,_0x567fad,_0x4a19b1){const _0x3d9c12=_0x1ed081;if(!this[_0x3d9c12(0x2c0)])return;let _0x11ab21=_0x3d9c12(0x264)+this[_0x3d9c12(0x2c0)]+'-'+_0x51ef36,_0x96e5c1=_0x5f507a[_0x3d9c12(0x3fa)](_0x11ab21);if(_0x96e5c1){_0x96e5c1[_0x3d9c12(0x3be)]({'left':_0x5d64bb['x']+_0x5844d4-_0x127ad4[_0x3d9c12(0x42a)],'top':_0x5d64bb['y']+_0x49868c-_0x127ad4[_0x3d9c12(0x42a)]}),_0x96e5c1[_0x3d9c12(0x2cf)](!0x0);return;}let _0xf17003=new Ii(_0x11ab21,{'left':_0x5d64bb['x']+_0x5844d4-_0x127ad4['adjHandleSize'],'top':_0x5d64bb['y']+_0x49868c-_0x127ad4[_0x3d9c12(0x42a)],'adjName':_0x51ef36,'shapeId':this[_0x3d9c12(0x2c0)],'unitId':_0x567fad,'subUnitId':_0x4a19b1,'width':_0x127ad4[_0x3d9c12(0x42a)]+0x8,'height':_0x127ad4[_0x3d9c12(0x42a)]+0x8,'zIndex':_0x8e9c78+0x1,'evented':!0x0});this[_0x3d9c12(0x411)][_0x3d9c12(0x39c)](_0xf17003),this[_0x3d9c12(0x23e)](_0xf17003,_0x5f507a,_0x51ef36),_0x5f507a[_0x3d9c12(0x2ed)](_0xf17003,_0x8e9c78+0x1);}[_0x1ed081(0x34c)](){const _0x5e07bc=_0x1ed081;this[_0x5e07bc(0x411)][_0x5e07bc(0x323)](_0x33f610=>_0x33f610['dispose']()),this[_0x5e07bc(0x411)]=[];}['_updateAdjustControlPositions'](){const _0x1c90d2=_0x1ed081;this[_0x1c90d2(0x22e)]();}[_0x1ed081(0x206)](_0x480d65,_0x4dcb96,_0x23952c){const _0x21a722=_0x1ed081;let _0x38e94f=_0x2ede79[_0x21a722(0x28c)]([_0x4dcb96,_0x23952c]),_0xbe2ff2=_0x480d65[_0x21a722(0x29a)](_0x38e94f)??_0x480d65['getViewports']()[0x0];return(_0xbe2ff2==null?void 0x0:_0xbe2ff2['transformVector2SceneCoord'](_0x38e94f))??_0x38e94f;}[_0x1ed081(0x23e)](_0x5e9248,_0x20f853,_0x39db83){const _0xe23a7b=_0x1ed081;this[_0xe23a7b(0x2fd)](_0xfac87e(_0x5e9248[_0xe23a7b(0x37f)][_0xe23a7b(0x432)]((_0x2c7e74,_0x27fc0d)=>{const _0x928f78=_0xe23a7b;var _0x262842;let _0x3eb6bd=_0x5e9248[_0x928f78(0x1ed)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x3eb6bd[_0x928f78(0x355)],_0x3eb6bd[_0x928f78(0x203)],_0x3eb6bd[_0x928f78(0x210)],_0x39db83),this[_0x928f78(0x40d)]=this[_0x928f78(0x26c)][_0x928f78(0x381)](_0x3eb6bd[_0x928f78(0x355)],_0x3eb6bd[_0x928f78(0x203)],_0x3eb6bd[_0x928f78(0x210)]);let _0x5802b9=this[_0x928f78(0x1e5)](),_0x44352f=_0x5802b9==null?void 0x0:_0x5802b9['transform'];if(!_0x5802b9||!_0x44352f||!this[_0x928f78(0x40d)])return;this['_baseShapeLeft']=_0x44352f['left']||0x0,this[_0x928f78(0x2ee)]=_0x44352f[_0x928f78(0x1fd)]||0x0,this['_baseShapeWidth']=_0x44352f[_0x928f78(0x421)]||0x0,this[_0x928f78(0x1ee)]=_0x44352f[_0x928f78(0x3e1)]||0x0;let _0x593cca=!!_0x44352f[_0x928f78(0x235)],_0x21ecaa=!!_0x44352f['flipY'],_0x2f97da=_0x44352f[_0x928f78(0x3c1)]||0x0,_0x224801={...((_0x262842=this[_0x928f78(0x212)])==null?void 0x0:_0x262842['currentAdjustValues'])??{}};this[_0x928f78(0x376)]=!0x0,_0x20f853[_0x928f78(0x20c)](),this[_0x928f78(0x443)]=_0x20f853[_0x928f78(0x204)][_0x928f78(0x432)]((_0x5ec559,_0x2c2a92)=>{const _0x2671ca=_0x928f78;var _0x51de79;if(!this['_isStartAdjusting']||!this[_0x2671ca(0x40d)]||!this['_activeAdjustInfo'])return;_0x20f853[_0x2671ca(0x20c)](),_0x20f853[_0x2671ca(0x28f)](_0x13100c[_0x2671ca(0x38e)]);let _0x3f75c5=this['_toScenePoint'](_0x20f853,_0x5ec559['offsetX'],_0x5ec559[_0x2671ca(0x389)]),_0x173989=_0x3f75c5['x']-this[_0x2671ca(0x2cd)],_0x188d10=_0x3f75c5['y']-this['_baseShapeTop'];if(_0x2f97da!==0x0){let _0x13f190=this['_baseShapeWidth']/0x2,_0x1cae59=this[_0x2671ca(0x1ee)]/0x2,_0x5b43ed=_0x2f97da*Math['PI']/0xb4,_0x175eb9=Math['cos'](_0x5b43ed),_0x416eac=Math[_0x2671ca(0x25f)](_0x5b43ed),_0x129e0a=_0x173989-_0x13f190,_0x203409=_0x188d10-_0x1cae59;_0x173989=_0x13f190+(_0x129e0a*_0x175eb9+_0x203409*_0x416eac),_0x188d10=_0x1cae59+(-_0x129e0a*_0x416eac+_0x203409*_0x175eb9);}_0x593cca&&(_0x173989=this[_0x2671ca(0x2fb)]-_0x173989),_0x21ecaa&&(_0x188d10=this[_0x2671ca(0x1ee)]-_0x188d10);let _0x151f52={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0xb8e4dc=this[_0x2671ca(0x40d)][_0x2671ca(0x3ac)](_0x151f52,{'x':_0x173989,'y':_0x188d10},this['_activeAdjustInfo'],_0x593cca,_0x21ecaa);if(Object[_0x2671ca(0x303)](_0xb8e4dc)[_0x2671ca(0x43c)]!==0x0){for(let [_0x54f8cd,_0x348265]of Object['entries'](_0xb8e4dc))this[_0x2671ca(0x40d)][_0x2671ca(0x2e1)](_0x54f8cd,_0x348265);this[_0x2671ca(0x40d)]['updateContext']({'width':this[_0x2671ca(0x2fb)],'height':this[_0x2671ca(0x1ee)]}),(_0x51de79=this[_0x2671ca(0x357)](_0x20f853))==null||_0x51de79[_0x2671ca(0x2cf)](!0x0),this[_0x2671ca(0x37e)]=this[_0x2671ca(0x33a)](_0x3eb6bd[_0x2671ca(0x355)],_0x3eb6bd[_0x2671ca(0x203)],_0x3eb6bd[_0x2671ca(0x210)]),this['_updateAdjustControlPositions'](),_0x2c2a92[_0x2671ca(0x367)]();}}),this['_adjHandlerPointerUp']=_0x20f853[_0x928f78(0x428)]['subscribeEvent']((_0xfcbe47,_0x8e6786)=>{const _0x3a9776=_0x928f78;var _0x52a788,_0x48b072;(_0x52a788=this[_0x3a9776(0x443)])==null||_0x52a788[_0x3a9776(0x36d)](),(_0x48b072=this[_0x3a9776(0x29e)])==null||_0x48b072[_0x3a9776(0x36d)](),_0x20f853[_0x3a9776(0x2f8)]();let _0x13cdda=this[_0x3a9776(0x212)];if(_0x13cdda&&this['_activeShapeModel']){let _0x157ed6={};for(let _0x55d754 of Object[_0x3a9776(0x303)](_0x13cdda[_0x3a9776(0x3f2)])){let _0x14d5b4=this[_0x3a9776(0x40d)][_0x3a9776(0x3a4)](_0x55d754);_0x14d5b4!==void 0x0&&(_0x157ed6[_0x55d754]=_0x14d5b4);}Object[_0x3a9776(0x303)](_0x157ed6)['length']>0x0&&zr(this[_0x3a9776(0x22d)],_0x3eb6bd[_0x3a9776(0x355)],_0x3eb6bd[_0x3a9776(0x203)],_0x3eb6bd[_0x3a9776(0x210)],{'oldShapeData':{'adjustValues':_0x224801}},{'adjustValues':_0x157ed6});}this['_activeAdjustInfo']=void 0x0,this[_0x3a9776(0x40d)]=void 0x0,this[_0x3a9776(0x376)]=!0x1,_0x20f853['enableObjectsEvent'](),_0x8e6786[_0x3a9776(0x367)]();}),_0x27fc0d[_0x928f78(0x367)]();})));}[_0x1ed081(0x271)](){const _0x270e84=_0x1ed081;let {scene:_0x429736}=this[_0x270e84(0x42e)],_0x18d1ec=_0x429736[_0x270e84(0x36f)]();this[_0x270e84(0x2fd)](_0x18d1ec['changeStart$'][_0x270e84(0x251)](_0x364bbc=>{const _0x4ea426=_0x270e84;this[_0x4ea426(0x22e)](),_0x364bbc[_0x4ea426(0x420)]!==null&&_0x364bbc[_0x4ea426(0x420)]['size']===0x1&&_0x364bbc['objects'][_0x4ea426(0x2c2)]()[_0x4ea426(0x2d8)]()[_0x4ea426(0x439)]instanceof Ri&&(this[_0x4ea426(0x279)]=!0x0);})),this[_0x270e84(0x2fd)](_0x18d1ec[_0x270e84(0x35b)][_0x270e84(0x251)](()=>{const _0x5bdcce=_0x270e84;this['_isShouldShowDrawingShapeAdjust']&&this[_0x5bdcce(0x34c)]();})),this['disposeWithMe'](_0x429736[_0x270e84(0x428)][_0x270e84(0x432)](()=>{const _0x3ea271=_0x270e84;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x3ea271(0x279)]=!0x1,this['_createShapeAdjustControls']());})),this[_0x270e84(0x2fd)](_0x18d1ec[_0x270e84(0x32b)][_0x270e84(0x251)](()=>{const _0x313835=_0x270e84;this['_unitId']&&this[_0x313835(0x2fc)]&&this[_0x313835(0x2c0)]&&(this[_0x313835(0x37e)]=this[_0x313835(0x33a)](this[_0x313835(0x2a9)],this[_0x313835(0x2fc)],this[_0x313835(0x2c0)]),this[_0x313835(0x3c8)]());}));}[_0x1ed081(0x324)](){const _0x443c30=_0x1ed081;this[_0x443c30(0x2fd)](this['_commandService']['onCommandExecuted'](_0x22543b=>{const _0x83d556=_0x443c30;if(_0x22543b['id']!==_0xbcf5de['id'])return;let {unitId:_0x400c73,shapeId:_0x58ae31}=_0x22543b[_0x83d556(0x41e)];_0x400c73===this[_0x83d556(0x2a9)]&&_0x58ae31===this[_0x83d556(0x2c0)]&&this['refreshAdjustControls']();})),this['disposeWithMe'](this[_0x443c30(0x291)][_0x443c30(0x273)][_0x443c30(0x251)](_0x584489=>{const _0x40fa44=_0x443c30;if(_0x584489['length']===0x1){let _0x31f4be=_0x584489[0x0],_0x10df3c=this[_0x40fa44(0x291)][_0x40fa44(0x207)](_0x31f4be);if((_0x10df3c==null?void 0x0:_0x10df3c[_0x40fa44(0x234)])===_0x690970[_0x40fa44(0x20d)]){this[_0x40fa44(0x2c0)]=_0x31f4be[_0x40fa44(0x210)],this[_0x40fa44(0x2a9)]=_0x31f4be[_0x40fa44(0x355)],this[_0x40fa44(0x2fc)]=_0x31f4be['subUnitId'],this[_0x40fa44(0x37e)]=this[_0x40fa44(0x33a)](_0x31f4be[_0x40fa44(0x355)],_0x31f4be[_0x40fa44(0x203)],_0x31f4be[_0x40fa44(0x210)]),this[_0x40fa44(0x34c)](),this[_0x40fa44(0x22e)]();return;}}this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x40fa44(0x2a9)]=null,this[_0x40fa44(0x2fc)]=null,this[_0x40fa44(0x34c)]();})),this[_0x443c30(0x2fd)](_0xfc549c(this[_0x443c30(0x291)][_0x443c30(0x256)],this[_0x443c30(0x291)][_0x443c30(0x217)])[_0x443c30(0x251)](_0x82db28=>{const _0xab19d0=_0x443c30;var _0x37c358;let _0x2d1ac1=_0x82db28[_0xab19d0(0x2ec)](_0x4885c2=>_0x4885c2[_0xab19d0(0x210)]===this['_activeShapeId']&&_0x4885c2['unitId']===this[_0xab19d0(0x2a9)]&&_0x4885c2['subUnitId']===this[_0xab19d0(0x2fc)]);_0x2d1ac1&&((_0x37c358=this['_drawingManagerService'][_0xab19d0(0x207)](_0x2d1ac1))==null?void 0x0:_0x37c358[_0xab19d0(0x234)])===_0x690970['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x443c30(0x2fd)](this['_drawingManagerService'][_0x443c30(0x354)][_0x443c30(0x251)](_0x910068=>{const _0x12ade9=_0x443c30;for(let _0x47f0d3 of _0x910068)this[_0x12ade9(0x2c0)]===_0x47f0d3[_0x12ade9(0x210)]&&(this[_0x12ade9(0x2c0)]=null,this[_0x12ade9(0x37e)]=void 0x0,this[_0x12ade9(0x2a9)]=null,this[_0x12ade9(0x2fc)]=null,this[_0x12ade9(0x34c)]());}));}};zi=Y([J(0x1,_0x4cc4c4),J(0x2,_0x4e9d1c(_0x39396e)),J(0x3,_0x582229)],zi);let Q=class extends _0x5721ff{constructor(_0x4b4491,_0x2537d7){const _0x4e0629=_0x1ed081;super(),this[_0x4e0629(0x382)]=_0x4b4491,this[_0x4e0629(0x377)]=_0x2537d7,Z(this,'_editingParams$',new _0x4246c4(null)),Z(this,_0x4e0629(0x293),this['_editingParams$'][_0x4e0629(0x343)]()),Z(this,'_onSavingEditorData$',new _0x4246c4(!0x1)),Z(this,_0x4e0629(0x349),this['_onSavingEditorData$'][_0x4e0629(0x343)]()),Z(this,_0x4e0629(0x26e),void 0x0),this[_0x4e0629(0x2fd)](this[_0x4e0629(0x382)][_0x4e0629(0x3af)][_0x4e0629(0x251)](()=>{const _0x287b0b=_0x4e0629;let _0x1cd4e3=this['getEditing']();_0x1cd4e3!=null&&_0x1cd4e3[_0x287b0b(0x232)]&&!this['_canEdit'](_0x1cd4e3)&&this[_0x287b0b(0x372)](null);}));}['dispose'](){const _0x3ab73d=_0x1ed081;this[_0x3ab73d(0x383)](),this[_0x3ab73d(0x1fb)][_0x3ab73d(0x2d8)](null),this[_0x3ab73d(0x1fb)][_0x3ab73d(0x3ff)](),this[_0x3ab73d(0x1f0)][_0x3ab73d(0x2d8)](!0x1),this[_0x3ab73d(0x1f0)][_0x3ab73d(0x3ff)](),super[_0x3ab73d(0x208)]();}[_0x1ed081(0x372)](_0x189af4){const _0x5950c=_0x1ed081;(_0x189af4==null||!_0x189af4[_0x5950c(0x232)]||this[_0x5950c(0x2a1)](_0x189af4))&&(this[_0x5950c(0x383)](),this[_0x5950c(0x1fb)][_0x5950c(0x2d8)](_0x189af4),(_0x189af4==null||_0x189af4['visible']&&this[_0x5950c(0x1f0)][_0x5950c(0x3cd)]())&&this[_0x5950c(0x1f0)][_0x5950c(0x2d8)](!0x1));}[_0x1ed081(0x311)](_0x4b9b4a){const _0x164d87=_0x1ed081;this[_0x164d87(0x1f0)][_0x164d87(0x2d8)](_0x4b9b4a);}[_0x1ed081(0x24c)](){const _0x932d=_0x1ed081;return this[_0x932d(0x1fb)][_0x932d(0x3cd)]();}[_0x1ed081(0x2a1)](_0x1de03c){const _0x2967fa=_0x1ed081;let _0x2a99f5=this[_0x2967fa(0x377)][_0x2967fa(0x3d3)](_0x1de03c[_0x2967fa(0x355)],_0x436dd9[_0x2967fa(0x335)]);if(!_0x2a99f5)return!0x0;let _0x7921de=_0x1fc7f8(_0x2a99f5,_0x1de03c['shapeId']);return _0x47555f(this[_0x2967fa(0x382)],_0x1de03c[_0x2967fa(0x355)],[..._0x1a179a(_0x2a99f5,_0x7921de,'drawing',_0x1de03c[_0x2967fa(0x317)]),_0x5462ea(_0x7921de,_0x2967fa(0x2fa),_0x1de03c[_0x2967fa(0x317)])]);}[_0x1ed081(0x3cc)](_0x58de5f){const _0x255614=_0x1ed081;let _0x497b46=this[_0x255614(0x24c)]();_0x497b46&&this['_completionFrame']===void 0x0&&(this[_0x255614(0x311)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x5d492a=_0x255614;this[_0x5d492a(0x26e)]=void 0x0,this[_0x5d492a(0x24c)]()===_0x497b46&&this[_0x5d492a(0x372)](null);}));}[_0x1ed081(0x383)](){const _0x1b85fc=_0x1ed081;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x1b85fc(0x26e)]),this[_0x1b85fc(0x26e)]=void 0x0);}['cancelEditing'](){const _0x52f407=_0x1ed081;this[_0x52f407(0x24c)]()&&this[_0x52f407(0x372)](null);}};Q=Y([J(0x0,_0x49aab3),J(0x1,_0x357598)],Q);function Bi(_0x975de3){const _0xa3d236=_0x1ed081;return _0x975de3[_0xa3d236(0x396)]===!0x0||_0x975de3[_0xa3d236(0x396)]===_0x1fdcb8[_0xa3d236(0x1f9)]||_0x975de3[_0xa3d236(0x29f)]===_0x1ef66e['WRAP_NONE']&&_0x975de3[_0xa3d236(0x259)]===_0x1fdcb8[_0xa3d236(0x1f9)]?_0x47a510-0x1:_0x8e9c78;}let $=class extends _0x5721ff{constructor(_0x2ab307,_0x5a8741,_0x36116a,_0x5c3af5,_0x235519,_0xcabf0f,_0x366b8a){const _0x16ae0c=_0x1ed081;super(),this[_0x16ae0c(0x291)]=_0x2ab307,this[_0x16ae0c(0x26c)]=_0x5a8741,this[_0x16ae0c(0x437)]=_0x36116a,this[_0x16ae0c(0x2ff)]=_0x5c3af5,this[_0x16ae0c(0x32a)]=_0x235519,this['_shapeTextEditingService']=_0xcabf0f,this[_0x16ae0c(0x401)]=_0x366b8a,Z(this,_0x16ae0c(0x2b2),new Map()),this['disposeWithMe'](this[_0x16ae0c(0x401)]['presentationChanged$'][_0x16ae0c(0x251)](_0x7f4ace=>{const _0x5acd2e=_0x16ae0c;var _0x37ec92;(_0x37ec92=this[_0x5acd2e(0x2b2)]['get'](this[_0x5acd2e(0x33f)](_0x7f4ace['unitId'],_0x7f4ace[_0x5acd2e(0x203)],_0x7f4ace[_0x5acd2e(0x317)])))==null||_0x37ec92['forEach'](_0x5e9e9a=>_0x5e9e9a[_0x5acd2e(0x27b)](_0x7f4ace[_0x5acd2e(0x3b8)],_0x7f4ace[_0x5acd2e(0x3dc)]));})),this[_0x16ae0c(0x2fd)](this[_0x16ae0c(0x291)]['remove$'][_0x16ae0c(0x251)](_0x1319b1=>{const _0x253cf6=_0x16ae0c;_0x1319b1[_0x253cf6(0x323)](_0x436006=>{const _0x4f0d28=_0x253cf6;this['_shapeFormulaService']['unregister']({'unitId':_0x436006[_0x4f0d28(0x355)],'subUnitId':_0x436006[_0x4f0d28(0x203)],'shapeId':_0x436006[_0x4f0d28(0x210)]}),this[_0x4f0d28(0x2b2)][_0x4f0d28(0x39f)](this['_formulaKey'](_0x436006['unitId'],_0x436006[_0x4f0d28(0x203)],_0x436006['drawingId']));});}));}[_0x1ed081(0x2df)](_0x439578,_0x39069a){const _0x39dbbd=_0x1ed081;let {transform:_0x3351b6,drawingType:_0x1e8c21,srcRect:_0x337fdb,prstGeom:_0x74fc89,groupId:_0x492bfc,unitId:_0x5c45f8,subUnitId:_0x4abff9,drawingId:_0x29e51c,isMultiTransform:_0x14842a,transforms:_0x5f033b,hidden:_0x594c35,selectable:_0x1622c3}=_0x439578;if(_0x1e8c21!==_0x690970[_0x39dbbd(0x20d)]||!this[_0x39dbbd(0x291)]['getDrawingVisible']()||_0x3351b6==null)return;let _0x9cf6d7=this[_0x39dbbd(0x291)][_0x39dbbd(0x2c6)](),_0x5f182c=_0x14842a&&_0x5f033b?_0x5f033b:[_0x3351b6],_0x730e44=[];for(let [_0x4a5838,_0x486789]of _0x5f182c[_0x39dbbd(0x258)]()){let {left:_0x361d07,top:_0x175242,width:_0x56ed74,height:_0x14c0b6,angle:_0x35ada6,flipX:_0x2c1f5c,flipY:_0x73cff,skewX:_0xa321ac,skewY:_0x4e2611}=_0x486789,_0x58c789=_0x54547b({'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'drawingId':_0x29e51c},_0x14842a?_0x4a5838:void 0x0),_0x4aeb89=_0x39069a['getObjectIncludeInGroup'](_0x58c789);if(_0x4aeb89!=null){let _0x4018f0={'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c};_0x4aeb89 instanceof Ri&&this[_0x39dbbd(0x40f)](_0x4aeb89,_0x4018f0),_0x4aeb89[_0x39dbbd(0x3be)]({'left':_0x361d07,'top':_0x175242,'width':_0x56ed74,'height':_0x14c0b6,'angle':_0x35ada6,'flipX':_0x2c1f5c,'flipY':_0x73cff,'skewX':_0xa321ac,'skewY':_0x4e2611});continue;}let _0xc93dde=this['_drawingManagerService'][_0x39dbbd(0x3ae)](_0x5c45f8,_0x4abff9),_0x582d98=_0xc93dde[_0x39dbbd(0x414)](_0x29e51c);if(_0x39069a[_0x39dbbd(0x3fa)](_0x58c789)||!this[_0x39dbbd(0x291)][_0x39dbbd(0x237)]())continue;let _0x1594f3=this[_0x39dbbd(0x26c)]['getShapeModel'](_0x5c45f8,_0x4abff9,_0x29e51c);if(!_0x1594f3)continue;let _0x1a75c2=_0x238e4e(_0x1594f3[_0x39dbbd(0x40b)]())?{..._0x45b1c1,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x45b1c1,_0x52119b=_0x1594f3[_0x39dbbd(0x3c2)]()[_0x39dbbd(0x1f5)],_0x12761e={'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c};_0x52119b&&this[_0x39dbbd(0x401)][_0x39dbbd(0x314)](_0x12761e,_0x52119b);let _0x67366a=new Ri(_0x58c789,{..._0x486789,'zIndex':_0x582d98===-0x1?_0xc93dde[_0x39dbbd(0x43c)]-0x1:_0x582d98,'shapeModel':_0x1594f3,'localeService':this[_0x39dbbd(0x437)],'shapeId':_0x29e51c,'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'visible':_0x594c35!==!0x0,'evented':_0x1622c3!==!0x1,'formulaPresentation':_0x52119b?this[_0x39dbbd(0x401)][_0x39dbbd(0x3bb)](_0x12761e):void 0x0,'animateFormulaPresentation':(_0x52119b==null?void 0x0:_0x52119b[_0x39dbbd(0x3dc)])!==!0x1,'transformerConfig':_0x1a75c2});if(_0x52119b){let _0x6facf6=this['_formulaKey'](_0x5c45f8,_0x4abff9,_0x29e51c),_0xbeb95f=this[_0x39dbbd(0x2b2)]['get'](_0x6facf6)??new Set();_0xbeb95f['add'](_0x67366a),this[_0x39dbbd(0x2b2)][_0x39dbbd(0x2e7)](_0x6facf6,_0xbeb95f);}this[_0x39dbbd(0x2fd)](_0xfac87e(_0x67366a[_0x39dbbd(0x310)]['subscribeEvent']((_0x48c4ed,_0x2d2ede)=>{const _0x2e7f0b=_0x39dbbd;_0x1594f3[_0x2e7f0b(0x248)]()||_0x52119b||(this[_0x2e7f0b(0x230)][_0x2e7f0b(0x372)]({'visible':!0x0,'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c,'shapeKey':_0x67366a[_0x2e7f0b(0x1e8)]}),_0x2d2ede[_0x2e7f0b(0x367)]());}))),_0x39069a[_0x39dbbd(0x2ed)](_0x67366a,Bi(_0x439578)),_0x9cf6d7&&_0x39069a['attachTransformerTo'](_0x67366a),_0x492bfc&&_0x514f17({'drawingId':_0x492bfc,'unitId':_0x5c45f8,'subUnitId':_0x4abff9},_0x67366a,_0x39069a,this[_0x39dbbd(0x291)],_0x14842a?_0x4a5838:void 0x0),_0x74fc89!=null&&_0x67366a[_0x39dbbd(0x29c)](_0x74fc89),_0x337fdb!=null&&_0x67366a[_0x39dbbd(0x430)](_0x337fdb),this[_0x39dbbd(0x369)](_0x67366a,_0x1594f3[_0x39dbbd(0x3c2)]()),_0x730e44[_0x39dbbd(0x39c)](_0x67366a);}return _0x730e44;}['_formulaKey'](_0x47a34d,_0x277a2b,_0x574c81){return _0x47a34d+'\x00'+_0x277a2b+'\x00'+_0x574c81;}[_0x1ed081(0x40f)](_0x517030,_0x5872ff){const _0x41fcca=_0x1ed081;let _0x4d534a=this[_0x41fcca(0x26c)][_0x41fcca(0x381)](_0x5872ff[_0x41fcca(0x355)],_0x5872ff[_0x41fcca(0x203)],_0x5872ff[_0x41fcca(0x317)]),_0x165005=_0x4d534a==null?void 0x0:_0x4d534a[_0x41fcca(0x3c2)]()[_0x41fcca(0x1f5)],_0x9e2cd3=this[_0x41fcca(0x33f)](_0x5872ff[_0x41fcca(0x355)],_0x5872ff['subUnitId'],_0x5872ff['shapeId']);if(_0x165005){this[_0x41fcca(0x401)][_0x41fcca(0x314)](_0x5872ff,_0x165005);let _0x1d4f2e=this['_formulaShapes'][_0x41fcca(0x410)](_0x9e2cd3)??new Set();_0x1d4f2e[_0x41fcca(0x28d)](_0x517030),this['_formulaShapes']['set'](_0x9e2cd3,_0x1d4f2e);}else{var _0x19e8f4;this[_0x41fcca(0x401)][_0x41fcca(0x3f9)](_0x5872ff),(_0x19e8f4=this[_0x41fcca(0x2b2)]['get'](_0x9e2cd3))==null||_0x19e8f4[_0x41fcca(0x39f)](_0x517030);}_0x517030[_0x41fcca(0x27b)](_0x165005?this['_shapeFormulaService']['getPresentation'](_0x5872ff):void 0x0,(_0x165005==null?void 0x0:_0x165005['animationEnabled'])!==!0x1);}[_0x1ed081(0x21d)](_0x21d411){const _0x172a73=_0x1ed081;let _0x9996e4=_0x21d411[_0x172a73(0x2d4)][_0x172a73(0x3c2)](),_0x1c313a=_0x9996e4[_0x172a73(0x329)];if(!_0x1c313a||_0x1c313a['fillType']!==_0x81ceb[_0x172a73(0x3a2)]||!_0x1c313a[_0x172a73(0x438)]){_0x21d411['setFillImage'](void 0x0);return;}this[_0x172a73(0x369)](_0x21d411,_0x9996e4);}[_0x1ed081(0x369)](_0x25339e,_0x47617a){const _0x3fccc2=_0x1ed081;let _0x316d26=_0x47617a[_0x3fccc2(0x329)];if(!_0x316d26||_0x316d26[_0x3fccc2(0x423)]!==_0x81ceb[_0x3fccc2(0x3a2)]||!_0x316d26[_0x3fccc2(0x438)])return;let _0x25798a=_0x316d26[_0x3fccc2(0x438)],_0x29955a=_0x316d26[_0x3fccc2(0x400)]??_0x2fdab0[_0x3fccc2(0x3b4)],_0x50b307=this[_0x3fccc2(0x2ff)][_0x3fccc2(0x398)](_0x25798a,_0x29955a);if(_0x50b307){_0x25339e[_0x3fccc2(0x25d)](_0x50b307);return;}this[_0x3fccc2(0x30c)](_0x25339e,_0x25798a,_0x29955a);}async['_loadAndSetImage'](_0x1d38e3,_0x1a6f55,_0x4dca7e){const _0x14dedf=_0x1ed081;let _0x81bb19;try{if(_0x4dca7e===_0x2fdab0['UUID'])_0x81bb19=await this[_0x14dedf(0x2ff)][_0x14dedf(0x3e9)](_0x1a6f55);else{if(_0x4dca7e===_0x2fdab0[_0x14dedf(0x3b4)])try{_0x81bb19=await this['_urlImageService'][_0x14dedf(0x3e9)](_0x1a6f55);}catch{_0x81bb19=_0x1a6f55;}else _0x81bb19=_0x1a6f55;}}catch(_0x4073d3){console[_0x14dedf(0x288)](_0x14dedf(0x260),_0x4073d3);return;}let _0x195880=new window['Image']();_0x195880[_0x14dedf(0x1ff)]=()=>{const _0x320b15=_0x14dedf;this[_0x320b15(0x2ff)]['addImageSourceCache'](_0x1a6f55,_0x4dca7e,_0x195880),_0x1d38e3[_0x320b15(0x25d)](_0x195880);},_0x195880[_0x14dedf(0x392)]=()=>{const _0x4d65e5=_0x14dedf;console[_0x4d65e5(0x288)](_0x4d65e5(0x40e),_0x1a6f55);},_0x195880[_0x14dedf(0x286)]=_0x81bb19;}};$=Y([J(0x0,_0x4cc4c4),J(0x1,_0x4e9d1c(_0x39396e)),J(0x2,_0x4e9d1c(_0x4b811c)),J(0x3,_0x272990),J(0x4,_0x2d26b4),J(0x5,_0x4e9d1c(Q)),J(0x6,_0x4e9d1c(_0x44c530))],$);let Vi=class extends _0x5721ff{constructor(_0x1b1c55,_0x1d2f23,_0x11d315){const _0x506d21=_0x1ed081;super(),this[_0x506d21(0x417)]=_0x1b1c55,this[_0x506d21(0x291)]=_0x1d2f23,this[_0x506d21(0x3fe)]=_0x11d315,this['_initPrinting']();}[_0x1ed081(0x25a)](){const _0x646805=_0x1ed081;this['disposeWithMe'](this[_0x646805(0x417)][_0x646805(0x2e2)][_0x646805(0x37c)](this[_0x646805(0x417)][_0x646805(0x2e2)][_0x646805(0x38f)]()[_0x646805(0x20e)],{'handler':(_0x5171d7,_0x396c77,_0x48e025)=>{const _0xd8fd7=_0x646805;var _0x543bd2;let {unitId:_0x494f1a,scene:_0x4c7a02,skeleton:_0x112af9}=_0x396c77,{pageIndex:_0x48133a}=_0x396c77,_0x39b73d=(_0x543bd2=this[_0xd8fd7(0x291)][_0xd8fd7(0x254)](_0x494f1a))==null?void 0x0:_0x543bd2[_0x494f1a],_0x291ca1=Hi(this[_0xd8fd7(0x417)],_0x112af9,_0x48133a);return _0x39b73d==null||_0x39b73d[_0xd8fd7(0x3e8)][_0xd8fd7(0x323)](_0x3d857a=>{const _0x1ee408=_0xd8fd7;if(_0x291ca1&&!_0x291ca1[_0x1ee408(0x2c5)](_0x3d857a))return;let _0x7679a4=_0x39b73d['data'][_0x3d857a];_0x7679a4['drawingType']===_0x690970[_0x1ee408(0x20d)]&&!_0x7679a4[_0x1ee408(0x21a)]&&this[_0x1ee408(0x3fe)][_0x1ee408(0x2df)](_0x7679a4,_0x4c7a02);}),_0x48e025(_0x5171d7);}}));}};Vi=Y([J(0x0,_0x4e9d1c(_0x10ee9c)),J(0x1,_0x4cc4c4),J(0x2,_0x4e9d1c($))],Vi);function Hi(_0x4d4656,_0x57b5c5,_0x4c544b){const _0x10e325=_0x1ed081;var _0x57982e,_0x4f127f;let _0x3fed02=_0x4d4656;if(_0x3fed02[_0x10e325(0x3ce)])return _0x3fed02[_0x10e325(0x3ce)](_0x57b5c5,_0x4c544b);let _0x2cbcf4=_0x57b5c5[_0x10e325(0x220)]();if(!_0x2cbcf4||_0x2cbcf4[_0x10e325(0x3fc)]['length']<=0x1||_0x4c544b==null)return null;let _0x409759=new Set(),_0x4a9c40=_0x2cbcf4[_0x10e325(0x3fc)][_0x4c544b];if(!_0x4a9c40)return _0x409759;Ui(_0x4a9c40,_0x409759);let _0x19849e=(_0x57982e=_0x2cbcf4['skeHeaders'][_0x10e325(0x410)](_0x4a9c40[_0x10e325(0x345)]))==null?void 0x0:_0x57982e[_0x10e325(0x410)](_0x4a9c40['pageWidth']),_0x5e9935=(_0x4f127f=_0x2cbcf4[_0x10e325(0x242)][_0x10e325(0x410)](_0x4a9c40['footerId']))==null?void 0x0:_0x4f127f[_0x10e325(0x410)](_0x4a9c40['pageWidth']);return _0x19849e&&Ui(_0x19849e,_0x409759),_0x5e9935&&Ui(_0x5e9935,_0x409759),_0x409759;}function Ui(_0x4cda65,_0x19cce3){const _0x5e2e44=_0x1ed081;for(let _0x2e676d of _0x4cda65['skeDrawings']['keys']())_0x19cce3[_0x5e2e44(0x28d)](_0x2e676d);for(let _0x85151e of _0x4cda65[_0x5e2e44(0x3e5)][_0x5e2e44(0x2c2)]())for(let _0x150a5d of _0x85151e[_0x5e2e44(0x3df)])for(let _0x143cc6 of _0x150a5d[_0x5e2e44(0x374)])Ui(_0x143cc6,_0x19cce3);}function Wi(_0x572687){return _0x20be44(Nr,{..._0x572687,'PickerComponent':_0x28df4e});}function Gi(){const _0x4e7c00=_0x1ed081;let _0x26e57f=_0x5c5c3d(_0x4b811c),_0x22f362=Ar(),[_0x4f797f,_0x5d37d1]=_0x5d63ba(!0x1);return _0x56d981(_0x4e7c00(0x29b),{'className':_0x4e7c00(0x24d),'children':[_0x20be44(_0x37d12d,{'title':_0x26e57f['t'](_0x4e7c00(0x434)),'aria-expanded':_0x4f797f,'variant':_0x4e7c00(0x446),'trailing':_0x20be44(_0x4f797f?_0x19b22a:_0x5c6907,{}),'onClick':()=>_0x5d37d1(_0x2266ed=>!_0x2266ed)}),_0x4f797f&&_0x20be44(_0x28df4e,{'excludeGroups':[_0x4f9fa7[_0x4e7c00(0x239)]],'onShapeClick':_0xc0a1d2=>{_0x22f362(_0xc0a1d2),_0x5d37d1(!0x1);}})]});}function Ki(_0x4cb6d5){const _0x5f1bdf=_0x1ed081;return _0x4cb6d5[_0x5f1bdf(0x1f6)]()||void 0x0;}function qi(_0x95761b,_0xbba491,_0x55d0d2){const _0xd7a3af=_0x1ed081;var _0x5e254e,_0x58b84e;return((_0x5e254e=_0x95761b['name'])==null?void 0x0:_0x5e254e[_0xd7a3af(0x1f6)]())||((_0x58b84e=_0x95761b['title'])==null?void 0x0:_0x58b84e[_0xd7a3af(0x1f6)]())||_0x55d0d2['t'](_0xd7a3af(0x315)+_0x58a6be(_0x95761b[_0xd7a3af(0x234)]))+'\x20'+(_0xbba491+0x1);}function Ji({PanelComponent:_0x36a83d=_0x92c98e}){const _0x4a9a5e=_0x1ed081;let _0x173e95=_0x5c5c3d(_0x4b811c),_0x1d006c={'title':_0x173e95['t'](_0x4a9a5e(0x24b)),'empty':_0x173e95['t'](_0x4a9a5e(0x1fc)),'showAll':_0x173e95['t'](_0x4a9a5e(0x2eb)),'hideAll':_0x173e95['t'](_0x4a9a5e(0x403)),'lockAll':_0x173e95['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0x173e95['t'](_0x4a9a5e(0x2ab)),'moveForward':_0x173e95['t'](_0x4a9a5e(0x1f8)),'moveBackward':_0x173e95['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x173e95['t'](_0x4a9a5e(0x231)),'show':_0x173e95['t'](_0x4a9a5e(0x2bc)),'hide':_0x173e95['t'](_0x4a9a5e(0x3ad)),'lock':_0x173e95['t'](_0x4a9a5e(0x3e0)),'unlock':_0x173e95['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0x173e95['t'](_0x4a9a5e(0x353)),'unlockHint':_0x173e95['t'](_0x4a9a5e(0x3b3)),'name':_0x173e95['t'](_0x4a9a5e(0x2e8)),'nameInput':_0x173e95['t'](_0x4a9a5e(0x1f4)),'description':_0x173e95['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x173e95['t'](_0x4a9a5e(0x41d)),'details':_0x173e95['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x173e95['t'](_0x4a9a5e(0x3d0)),'locate':_0x173e95['t'](_0x4a9a5e(0x3a5)),'expand':_0x173e95['t'](_0x4a9a5e(0x281)),'collapse':_0x173e95['t'](_0x4a9a5e(0x2a3)),'dragToReorder':_0x173e95['t'](_0x4a9a5e(0x3a0)),'search':_0x173e95['t'](_0x4a9a5e(0x395)),'filterAll':_0x173e95['t'](_0x4a9a5e(0x440)),'filterHidden':_0x173e95['t'](_0x4a9a5e(0x43d)),'filterLocked':_0x173e95['t'](_0x4a9a5e(0x276)),'sectionCanvas':_0x173e95['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x173e95['t'](_0x4a9a5e(0x24e))},_0xe517f7=_0x5c5c3d(_0x582229),_0x1d9e9e=_0x5c5c3d(_0x357598),_0x553c45=_0x5c5c3d(_0x5f2715),_0x20f9d2=_0x5c5c3d(_0x4cc4c4),_0x46bfca=_0x5c5c3d(_0x1b5744),[,_0x241105]=_0x4aee64(_0x20e714=>_0x20e714+0x1,0x0),_0x9ce88f=_0x1d9e9e[_0x4a9a5e(0x3c3)](_0x436dd9['UNIVER_DOC']),_0x1fe0c7=(_0x9ce88f==null?void 0x0:_0x9ce88f[_0x4a9a5e(0x336)]())??'',_0x5ba642=_0x1fe0c7,_0x219e15=_0x2f0836(()=>_0x20f9d2[_0x4a9a5e(0x273)],_0x20f9d2[_0x4a9a5e(0x2a0)](),!0x1,[_0x20f9d2]);_0x3e40cc(()=>{const _0x4dac30=_0x4a9a5e;let _0x1dc22b=_0xe517f7['onCommandExecuted'](()=>_0x241105());return()=>_0x1dc22b[_0x4dac30(0x208)]();},[_0xe517f7]);let _0x508680=_0x1fe0c7?_0x553c45['getDrawingData'](_0x1fe0c7,_0x5ba642):{},_0x3baaf9=(_0x1fe0c7?_0x553c45[_0x4a9a5e(0x3ae)](_0x1fe0c7,_0x5ba642):[])['map'](_0x5c2338=>_0x508680[_0x5c2338])[_0x4a9a5e(0x252)](_0x5d48d2=>!!_0x5d48d2)['reverse'](),_0x385675=_0x3baaf9[_0x4a9a5e(0x216)]((_0x3bb7d9,_0x427bc5)=>(_0x3bb7d9[_0x3c8fa2(_0x427bc5[_0x4a9a5e(0x234)])]+=0x1,_0x3bb7d9),{'canvas':0x0,'floating':0x0}),_0x2e94cf={'canvas':0x0,'floating':0x0},_0x166505=_0x3baaf9[_0x4a9a5e(0x427)]((_0x294816,_0x2a0874)=>{const _0x141600=_0x4a9a5e;let _0x55b57f=_0x3c8fa2(_0x294816[_0x141600(0x234)]),_0x2a3dae=_0x55b57f===_0x4887bf,_0x2afd62=_0x2e94cf[_0x55b57f]++;return{'id':_0x294816['drawingId'],'name':qi(_0x294816,_0x2a0874,_0x173e95),'description':_0x294816['description'],'visible':_0x294816[_0x141600(0x21a)]!==!0x0,'selectable':_0x294816[_0x141600(0x306)]!==!0x1,'sectionId':_0x55b57f,'sectionTitle':_0x2a3dae?_0x1d006c['sectionFloating']:_0x1d006c['sectionCanvas'],'capabilities':_0x2a3dae?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x2a3dae&&_0x2afd62>0x0,'canMoveBackward':!_0x2a3dae&&_0x2afd62<_0x385675[_0x141600(0x227)]-0x1,'canReorder':!_0x2a3dae};}),_0x2eb9c5=_0x108bd4(()=>(_0x219e15??[])[_0x4a9a5e(0x252)](_0x224f46=>_0x224f46[_0x4a9a5e(0x355)]===_0x1fe0c7&&_0x224f46[_0x4a9a5e(0x203)]===_0x5ba642)['map'](_0x457c85=>_0x457c85['drawingId']),[_0x219e15,_0x5ba642,_0x1fe0c7]),_0x31fa8b=_0x2eb9c5[_0x2eb9c5['length']-0x1]??null,_0x2932c7=_0x5cdb4e=>_0x553c45[_0x4a9a5e(0x207)]({'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x5cdb4e})??null,_0x570887=async _0x58d23f=>{const _0x783b5b=_0x4a9a5e;_0x1fe0c7&&_0x58d23f[_0x783b5b(0x43c)]&&await _0xe517f7[_0x783b5b(0x402)](_0x3f9a11['id'],{'unitId':_0x1fe0c7,'patches':_0x58d23f});},_0x462d1b=(_0x186952,_0x463e6c)=>{const _0x43415f=_0x4a9a5e;if(!_0x1fe0c7)return;let _0x4e1726=_0x463e6c?_0x2eb9c5[_0x43415f(0x228)](_0x186952)?_0x2eb9c5[_0x43415f(0x252)](_0xe3d3ef=>_0xe3d3ef!==_0x186952):[..._0x2eb9c5,_0x186952]:[_0x186952];_0xe517f7[_0x43415f(0x2e3)](_0x4216b5['id'],_0x4e1726['map'](_0x2968fa=>({'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x2968fa})));let _0x577564=_0x4e1726[_0x4e1726[_0x43415f(0x43c)]-0x1];_0x577564?_0x58d512(_0x46bfca,{'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x577564}):_0x55746c(_0x46bfca,_0x1fe0c7);},_0x2f35cd=async(_0x232cb4,_0x30d057)=>{const _0x55896a=_0x4a9a5e;await _0x570887(_0x232cb4[_0x55896a(0x427)](_0x1dae02=>_0x2932c7(_0x1dae02))[_0x55896a(0x252)](_0x582af5=>!!_0x582af5)[_0x55896a(0x252)](_0x4d6187=>_0x4d6187[_0x55896a(0x21a)]!==!0x0!==_0x30d057)[_0x55896a(0x427)](_0x3b2351=>({'drawingId':_0x3b2351[_0x55896a(0x210)],'hidden':!_0x30d057})));},_0x2cb868=async(_0xbc50d2,_0x264105)=>{const _0x5095aa=_0x4a9a5e;await _0x570887(_0xbc50d2[_0x5095aa(0x427)](_0x1d85fc=>_0x2932c7(_0x1d85fc))[_0x5095aa(0x252)](_0x30bec4=>!!_0x30bec4)[_0x5095aa(0x252)](_0xbefbbe=>_0xbefbbe[_0x5095aa(0x306)]!==!0x1!==_0x264105)[_0x5095aa(0x427)](_0x50c79e=>({'drawingId':_0x50c79e['drawingId'],'selectable':_0x264105})));},_0x41ecd0=_0x42aa2b=>{const _0x1e223f=_0x4a9a5e;let _0xa7c6c6=_0x2932c7(_0x42aa2b);if(_0xa7c6c6)return _0x2cb868([_0x42aa2b],_0xa7c6c6[_0x1e223f(0x306)]===!0x1);},_0x5db648=async(_0x34ab8c,_0xd43510)=>{const _0x271bf6=_0x4a9a5e;let _0x23c22d=_0x2932c7(_0x34ab8c),_0x5bc3d9=Ki(_0xd43510);!_0x23c22d||(_0x23c22d[_0x271bf6(0x1f7)]??void 0x0)===_0x5bc3d9&&(_0x23c22d[_0x271bf6(0x415)]||void 0x0)===_0x5bc3d9||await _0x570887([{'drawingId':_0x34ab8c,'name':_0x5bc3d9,'title':_0x5bc3d9}]);},_0x4c8b72=async(_0x4a11b2,_0x52fc3d)=>{const _0x300851=_0x4a9a5e;let _0x42c7a1=_0x2932c7(_0x4a11b2),_0xa7eec4=Ki(_0x52fc3d);_0x42c7a1&&(_0x42c7a1[_0x300851(0x2f2)]??void 0x0)!==_0xa7eec4&&await _0x570887([{'drawingId':_0x4a11b2,'description':_0xa7eec4}]);},_0x41a100=async(_0x174a6b,_0xf2f595)=>{const _0x55a8ba=_0x4a9a5e;_0x1fe0c7&&await _0xe517f7[_0x55a8ba(0x402)](_0x5dc4dd['id'],{'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingIds':[_0x174a6b],'arrangeType':_0xf2f595});};return _0x1fe0c7?_0x20be44(_0x36a83d,{'labels':_0x1d006c,'renderPermissionAction':_0x3c4752=>_0x9ce88f?_0x20be44(_0x54a7e7,{'target':{'unitId':_0x1fe0c7,'objectId':_0x5462ea(_0x1fc7f8(_0x9ce88f,_0x3c4752['id']),_0x4a9a5e(0x2fa),_0x3c4752['id']),'objectType':_0x3d15f1['DocumentEntity']},'name':_0x3c4752['name'],'commandId':_0x4a71fc['id'],'exists':()=>!!_0x2932c7(_0x3c4752['id'])},_0x1fe0c7+'/'+_0x3c4752['id']):null,'items':_0x166505,'selectedIds':_0x2eb9c5,'focusedId':_0x31fa8b,'showHeader':!0x1,'onSelect':_0x462d1b,'onSetVisible':_0x2f35cd,'onSetSelectable':_0x2cb868,'onCommitName':_0x5db648,'onCommitDescription':_0x4c8b72,'onMoveForward':async _0x26d782=>_0x41a100(_0x26d782,_0x30db5e[_0x4a9a5e(0x2bd)]),'onMoveBackward':async _0xc9ad4a=>_0x41a100(_0xc9ad4a,_0x30db5e[_0x4a9a5e(0x2a6)]),'onToggleSelectable':_0x41ecd0}):_0x20be44(_0x4a9a5e(0x29b),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1d006c[_0x4a9a5e(0x415)]});}function Yi(){return _0x20be44(Ji,{'PanelComponent':_0x49b254});}let Xi=class{constructor(_0x1aab72){const _0x179e7b=_0x1ed081;this[_0x179e7b(0x283)]=_0x1aab72;}[_0x1ed081(0x327)](_0x3518e1,_0x1213f9){const _0x2d943c=_0x1ed081;let _0x47137c=this['_renderManagerService']['getRenderUnitById'](_0x3518e1[_0x2d943c(0x355)]),_0x825ff5=_0x47137c==null?void 0x0:_0x47137c[_0x2d943c(0x27e)];if(!_0x825ff5)return;let _0x1b3a56=_0x54547b(_0x3518e1),_0x4b623f=_0x825ff5['getObjectIncludeInGroup'](_0x1b3a56);_0x4b623f==null||_0x4b623f[_0x2d943c(0x25d)](_0x1213f9);}};Xi=Y([J(0x0,_0x1b5744)],Xi);function Zi(){const _0x49d260=_0x1ed081;let _0x1fca96=_0x5c5c3d(_0x4cc4c4),_0x3a2087=_0x2f0836(()=>_0x1fca96['focus$'],_0x1fca96[_0x49d260(0x2a0)](),!0x1,[_0x1fca96]);return _0x3a2087['length']===0x0?null:_0x20be44(_0x49d260(0x29b),{'children':_0x56d981(_0x49d260(0x29b),{'className':_0x49d260(0x23f),'children':[_0x20be44(_0xe08cbd,{'drawings':_0x3a2087,'hasCropper':!0x1}),_0x20be44(_0x19e2da,{'drawings':_0x3a2087}),_0x20be44(_0x397b36,{'drawings':_0x3a2087})]})});}function Qi(_0x15147c){let {unitId:_0x479b15,subUnitId:_0x41c58a,shapeId:_0x4c45a4,PositionComponent:_0x6e12d7=Zi}=_0x15147c,_0x59ad28=_0x5c5c3d(_0x582229),_0x1690b2=_0x5c5c3d(Xi);return _0x20be44(_0x528db9,{..._0x15147c,'positionEditor':_0x20be44(_0x6e12d7,{}),'onUpdateShapeData':(_0x4068bc,_0x200614)=>{zr(_0x59ad28,_0x479b15,_0x41c58a,_0x4c45a4,_0x4068bc,_0x200614);},'onUpdateLineShapeData':(_0x4d83e3,_0x507ef4)=>{Br(_0x59ad28,_0x479b15,_0x41c58a,_0x4c45a4,_0x4d83e3,_0x507ef4);},'onUpdateShapeFillImage':_0x24a74e=>{_0x1690b2['updateShapeFillImage']({'unitId':_0x479b15,'subUnitId':_0x41c58a,'drawingId':_0x4c45a4},_0x24a74e);}});}function $i(){const _0x66d3ac=_0x1ed081;let _0x3a97b1=_0x5c5c3d(_0x4cc4c4),_0x10a5a4=_0x2f0836(_0x3a97b1[_0x66d3ac(0x273)],_0x3a97b1[_0x66d3ac(0x2a0)]());return _0x10a5a4[_0x66d3ac(0x43c)]===0x0?null:_0x56d981(_0x66d3ac(0x29b),{'className':_0x66d3ac(0x265),'children':[_0x20be44(_0xe08cbd,{'drawings':_0x10a5a4,'hasCropper':!0x1}),_0x20be44(_0x416f6b,{'drawings':_0x10a5a4}),_0x20be44(_0x3ccd8d,{'drawings':_0x10a5a4})]});}function ea(_0x1f5862){return _0x20be44(_0x3de1f7,{'children':_0x20be44(Qi,{..._0x1f5862,'PositionComponent':$i})});}function ta({popup:_0x332760}){const _0x9b4388=_0x1ed081;let _0x2e40c8=_0x5c5c3d(_0x4b811c),{shapeType:_0x187e48,onText:_0x2285a6,onStyle:_0x51f850,onDelete:_0x3db312}=_0x332760['extraProps'],_0x38f1e9=[{'key':_0x9b4388(0x348),'order':0x0,'item':{'id':_0x9b4388(0x348),'type':_0x2f080a['BUTTON'],'title':_0x2e40c8['t'](_0x9b4388(0x24a)),'disabled$':_0x13712d(_0x238e4e(_0x187e48))}},{'key':_0x9b4388(0x28b),'order':0x1,'item':{'id':'style','type':_0x2f080a['BUTTON'],'title':_0x2e40c8['t'](_0x9b4388(0x3bf))}},{'key':_0x9b4388(0x39f),'order':0x2,'item':{'id':_0x9b4388(0x39f),'type':_0x2f080a[_0x9b4388(0x3f8)],'title':_0x2e40c8['t']('docs-shape-ui.mobile.delete')}}];return _0x20be44(_0xc85ff4,{'schemas':_0x38f1e9,'presentation':'context-bar','onOptionSelect':async({id:_0x5c1b0a})=>{const _0x27f430=_0x9b4388;_0x5c1b0a===_0x27f430(0x348)?await _0x2285a6():_0x5c1b0a===_0x27f430(0x28b)?await _0x51f850():_0x5c1b0a==='delete'&&await _0x3db312();}});}const na=_0x1ed081(0x3f3);function ra(_0x47194c,_0x17a903){const _0x404f57=_0x1ed081;var _0x377d6d;let _0x4a8f9b=_0x47194c==null||(_0x377d6d=_0x47194c[_0x404f57(0x42d)]()['drawings'])==null?void 0x0:_0x377d6d[_0x17a903];return _0x4a8f9b?_0x4a8f9b[_0x404f57(0x29f)]===_0x1ef66e[_0x404f57(0x302)]?_0x4a8f9b['behindDoc']===_0x1fdcb8[_0x404f57(0x1f9)]?_0x4b1e43[_0x404f57(0x318)]:_0x4b1e43[_0x404f57(0x3c0)]:_0x4a8f9b['layoutType']===_0x1ef66e[_0x404f57(0x2af)]?_0x4b1e43['WRAP_SQUARE']:_0x4a8f9b[_0x404f57(0x29f)]===_0x1ef66e[_0x404f57(0x2b6)]?_0x4b1e43[_0x404f57(0x2b6)]:_0x4b1e43[_0x404f57(0x211)]:_0x4b1e43[_0x404f57(0x211)];}function ia(_0x2e2e1b){const _0x448ecc=_0x1ed081;let _0x2288f9=_0x5c5c3d(_0xd408b5),_0x2c8ae5=_0x2f0836(()=>_0x2288f9[_0x448ecc(0x43b)],_0x2288f9[_0x448ecc(0x285)](),!0x1,[_0x2288f9]),_0x210a16=_0x2e2e1b['popup'][_0x448ecc(0x3b6)];return _0x2c8ae5?_0x20be44(aa,{..._0x210a16,'canvasElement':_0x2e2e1b[_0x448ecc(0x2a4)]['canvasElement']}):null;}function aa(_0x4c80d7){const _0x1deb25=_0x1ed081;let _0x2f6728=_0x5c5c3d(_0x582229),_0x4ad36a=_0x5c5c3d(_0x4b811c),_0x3e2019=_0x5c5c3d(_0x39396e),_0x4cf841=_0x5c5c3d(_0x357598),{unitId:_0x3ca729,subUnitId:_0x4907b3,drawingId:_0x3621ea,shapeType:_0x3a0c37}=_0x4c80d7,[_0x4e6329,_0x514227]=_0x5d63ba(_0x4c80d7[_0x1deb25(0x2ba)]),_0x45c107=_0x4cf841[_0x1deb25(0x3d3)](_0x3ca729,_0x436dd9[_0x1deb25(0x335)])??void 0x0,[_0x2788b3,_0x5c6185]=_0x5d63ba(()=>ra(_0x45c107,_0x3621ea)),_0x3e370e=_0x108bd4(()=>_0x1257eb(_0x4e6329),[_0x4e6329]),_0x4d0f7c=_0x108bd4(()=>_0x11d450(_0x4e6329),[_0x4e6329]);_0x3e40cc(()=>{const _0x3e4b22=_0x1deb25;let _0x1e6e3b=_0x2f6728[_0x3e4b22(0x320)](_0x12ea30=>{if(_0x12ea30['id']!==_0xbcf5de['id'])return;let _0x2861be=_0x3e2019['getShapeDataById'](_0x3ca729,_0x4907b3,_0x3621ea);_0x2861be&&_0x514227(_0x2861be);});return()=>_0x1e6e3b[_0x3e4b22(0x208)]();},[_0x2f6728,_0x3e2019,_0x3621ea,_0x4907b3,_0x3ca729]);let _0x40e6b5=_0x5d8176=>{_0x514227(_0x2011a1=>({..._0x2011a1,..._0x5d8176}));},_0x1cceac=_0x31f6a1=>{const _0x355aa9=_0x1deb25;let _0x37c083=_0x4aa220(_0x4e6329,_0x31f6a1);zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,{'oldShapeData':{'shapeText':_0x4e6329[_0x355aa9(0x280)]}},_0x37c083),_0x40e6b5(_0x37c083);},_0x876ffa=_0x17e1f3=>{const _0x3e7238=_0x1deb25;_0x5c6185(_0x17e1f3),_0x2f6728[_0x3e7238(0x402)](_0xdbdd89['id'],{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawings':[{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea}],'wrappingStyle':_0x17e1f3});},_0x51c364=_0x4f9d08({'hostType':_0x436dd9[_0x1deb25(0x335)],'unitId':_0x3ca729,'subUnitId':_0x4907b3,'shapeId':_0x3621ea,'shapeData':_0x4e6329,'onUpdateBinding':_0x242ab5=>{let _0x325095={'formulaBinding':_0x242ab5};zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,{'oldShapeData':{'formulaBinding':_0x4e6329['formulaBinding']}},_0x325095),_0x40e6b5(_0x325095);}}),_0x5af67a=[{'label':_0x4ad36a['t']('docs-shape-ui.textWrap.inline'),'value':_0x4b1e43[_0x1deb25(0x211)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x23d)),'value':_0x4b1e43[_0x1deb25(0x2af)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x351)),'value':_0x4b1e43[_0x1deb25(0x2b6)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x3c4)),'value':_0x4b1e43[_0x1deb25(0x318)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x4b1e43['IN_FRONT_OF_TEXT'],'icon':_0x20be44(_0x1a2dfc,{})}];return _0x56d981(_0x29f7de,{'children':[_0x20be44(_0x28d84d,{'canvasElement':_0x4c80d7[_0x1deb25(0x331)],'shapeData':_0x4e6329,'shapeType':_0x3a0c37,'textStyle':{'ff':_0x127ad4[_0x1deb25(0x280)]['fontFamily'],'fs':_0x127ad4[_0x1deb25(0x280)]['fontSize'],'cl':{'rgb':_0x127ad4[_0x1deb25(0x280)][_0x1deb25(0x266)]},..._0x3e370e},'textModel':_0x4d0f7c?{'ha':_0x4d0f7c['ha']??_0x2381fc['LEFT'],'va':_0x4d0f7c['va']??_0x36ee41['TOP']}:null,'wrappingStyle':_0x2788b3,'wrappingStyleOptions':_0x5af67a,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x127ad4[_0x1deb25(0x329)],'defaultGradientEndColor':_0x127ad4['gradientEndColor'],'defaultStrokeColor':_0x127ad4['stroke'],'extensionGroups':_0x51c364['extensionGroups'],'floatingObjectToolbarPosition':_0x2b3178[_0x1deb25(0x366)],'onUpdateShapeData':(_0x6c1bd1,_0x18c35a)=>{zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,_0x6c1bd1,_0x18c35a),_0x18c35a&&_0x40e6b5(_0x18c35a);},'onUpdateText':_0x1cceac,'onUpdateWrappingStyle':_0xa39d93=>_0x876ffa(_0xa39d93),'onOpenPanel':()=>{const _0x318e5e=_0x1deb25;_0x2f6728[_0x318e5e(0x402)](q['id'],{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea});},'onDelete':()=>{_0x2f6728['executeCommand'](_0x3723c7['id'],{'unitId':_0x3ca729,'drawings':[{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea}]});}}),_0x51c364[_0x1deb25(0x339)]]});}function oa({variant:_0x50da5f,extend:_0x50a243,..._0x2c3556}){const _0x18dd02=_0x1ed081;let _0x52fdcc=_0x20be44(_0x18dd02(0x32f),{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x18dd02(0x3d9),'fillOpacity':_0x18dd02(0x3a1),'stroke':_0x18dd02(0x3d9),'strokeWidth':_0x18dd02(0x3d4)});return _0x56d981(_0x18dd02(0x38c),{'aria-hidden':'true','fill':_0x18dd02(0x224),'height':'1em','viewBox':_0x18dd02(0x3e7),'width':_0x18dd02(0x39a),..._0x2c3556,'children':[_0x50da5f===_0x18dd02(0x24f)&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x295),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':'1.2'}),_0x20be44(_0x18dd02(0x32f),{'x':'8','y':'7','width':'4','height':'6','rx':'0.8','fill':'currentColor','fillOpacity':_0x18dd02(0x3a1),'stroke':_0x18dd02(0x3d9),'strokeWidth':_0x18dd02(0x3d4)})]}),_0x50da5f==='square'&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x253),'stroke':'currentColor','strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)}),_0x52fdcc]}),_0x50da5f===_0x18dd02(0x307)&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x3eb),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)}),_0x52fdcc]}),_0x50da5f===_0x18dd02(0x3dd)&&_0x56d981(_0x29f7de,{'children':[_0x52fdcc,_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x3b2),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)})]}),_0x50da5f===_0x18dd02(0x3bc)&&_0x56d981(_0x29f7de,{'children':[_0x20be44('path',{'d':_0x18dd02(0x3b2),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x18dd02(0x3d4)}),_0x20be44(_0x18dd02(0x32f),{'x':'7','y':_0x18dd02(0x1fe),'width':'6','height':'9','rx':'1','fill':_0x18dd02(0x3d9)})]})]});}const sa=_0x3e993f=>_0x57608f=>_0x20be44(oa,{..._0x57608f,'variant':_0x3e993f}),ca={'DocsShapeWrapInlineIcon':sa(_0x1ed081(0x24f)),'DocsShapeWrapSquareIcon':sa(_0x1ed081(0x215)),'DocsShapeWrapTopBottomIcon':sa(_0x1ed081(0x307)),'DocsShapeWrapBehindTextIcon':sa(_0x1ed081(0x3dd)),'DocsShapeWrapInFrontOfTextIcon':sa(_0x1ed081(0x3bc))},la=_0x470956(()=>{const _0x4f9c79=_0x1ed081;let _0x3d8ce2=_0x5c5c3d(Q),_0x200ebd=_0x5c5c3d(_0x39396e),_0x194110=_0x5c5c3d(_0x4cc4c4),_0x177b7a=_0x5c5c3d(_0x582229),_0x48eeef=_0x108bd4(()=>({'getShapeModel':(_0x10c556,_0x38f71f,_0x41126c)=>_0x200ebd['getShapeModel'](_0x10c556,_0x38f71f,_0x41126c),'getShapeData':(_0x943ca,_0x34f84d,_0x3305a9)=>_0x200ebd[_0x4f9c79(0x2e4)](_0x943ca,_0x34f84d,_0x3305a9),'getDrawingTransform':(_0x1be73d,_0x26b496,_0x1e4888)=>{const _0x3e1425=_0x4f9c79;let _0x2cc0eb=_0x194110[_0x3e1425(0x207)]({'unitId':_0x1be73d,'subUnitId':_0x26b496,'drawingId':_0x1e4888});return _0x2cc0eb==null?void 0x0:_0x2cc0eb[_0x3e1425(0x35d)];},'updateShapeText':({unitId:_0x1105a2,shapeId:_0x399280,shapeText:_0x4a9d10,oldShapeText:_0x71f6ca})=>{const _0x222e07=_0x4f9c79;_0x177b7a[_0x222e07(0x402)](_0x46dc48['id'],{'unitId':_0x1105a2,'shapeId':_0x399280,'shapeData':{'shapeText':_0x4a9d10},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x71f6ca}}});},'updateHostSize':({unitId:_0x483c72,subUnitId:_0x490992,shapeId:_0x17b9ad,width:_0x559e2d,height:_0xa25a2c})=>{const _0x2a2487=_0x4f9c79;_0x177b7a[_0x2a2487(0x402)](_0x53a1f6['id'],{'unitId':_0x483c72,'subUnitId':_0x490992,'drawings':[{'drawingId':_0x17b9ad,'key':_0x2a2487(0x1e9),'value':{'width':_0x559e2d,'height':_0xa25a2c}}]});},'allowHostSizeShrink':({unitId:_0x5e3d20,subUnitId:_0x34183d,shapeId:_0x66d5ee})=>_0x345c86(_0x200ebd[_0x4f9c79(0x2e4)](_0x5e3d20,_0x34183d,_0x66d5ee))}),[_0x177b7a,_0x200ebd,_0x194110]),_0x5f524e=_0x108bd4(()=>({'viewportKeys':{'main':_0x384053['VIEW_MAIN']}}),[]);return _0x20be44(_0x3e1e99,{'adapter':_0x48eeef,'editingService':_0x3d8ce2,'editorUnitId':br,'positionOptions':_0x5f524e});});let ua=class extends _0x5721ff{constructor(_0xcab961,_0x57e888){const _0x4d9f30=_0x1ed081;super(),this[_0x4d9f30(0x289)]=_0xcab961,this['_iconManager']=_0x57e888,this[_0x4d9f30(0x205)](),this[_0x4d9f30(0x347)]();}['_registerIcons'](){const _0x3cf4c1=_0x1ed081;this['_iconManager'][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x22c))||this['disposeWithMe'](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'ObjectLayersIcon':_0x2d9e5a})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)]('BottomIcon')||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'BottomIcon':_0x10f104})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x241))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'MoveDownIcon':_0x863eb7})),this[_0x3cf4c1(0x309)]['has'](_0x3cf4c1(0x384))||this['disposeWithMe'](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'MoveUpIcon':_0x1fa84b})),this['_iconManager'][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x2dd))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'ShapeFormatSettingIcon':_0x51d8f6})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x352))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'TopmostIcon':_0x88dd38})),this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)](ca));}[_0x1ed081(0x347)](){const _0x10b93c=_0x1ed081;this['disposeWithMe'](this['_componentManager'][_0x10b93c(0x314)](K,ea)),this[_0x10b93c(0x3d1)](),this[_0x10b93c(0x33b)](),this['disposeWithMe'](this[_0x10b93c(0x289)]['register'](Hr,Jr)),this['disposeWithMe'](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Vr,Yr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Ur,Xr)),this['disposeWithMe'](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Wr,Zr)),this[_0x10b93c(0x2fd)](this['_componentManager']['register'](Gr,Qr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](xr,_0x1ff31b)),this[_0x10b93c(0x270)](),this[_0x10b93c(0x289)][_0x10b93c(0x410)](_0x3de7d6)||this[_0x10b93c(0x2fd)](this['_componentManager'][_0x10b93c(0x314)](_0x3de7d6,Mr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Sr,la));}['_registerObjectListPanel'](){const _0x5a0444=_0x1ed081;this[_0x5a0444(0x2fd)](this['_componentManager'][_0x5a0444(0x314)](yr,Yi));}['_registerFloatingToolbar'](){const _0x2846e8=_0x1ed081;this[_0x2846e8(0x2fd)](this[_0x2846e8(0x289)][_0x2846e8(0x314)](na,ta));}[_0x1ed081(0x270)](){const _0x3f4371=_0x1ed081;this['disposeWithMe'](this[_0x3f4371(0x289)][_0x3f4371(0x314)](Dr,Wi)),this['disposeWithMe'](this[_0x3f4371(0x289)]['register'](Or,Gi));}};ua=Y([J(0x0,_0x4e9d1c(_0x1bfb02)),J(0x1,_0x4e9d1c(_0x2a264a))],ua);let da=class extends _0x5721ff{constructor(_0x2d3cd1,_0x16d447,_0xd7c20f,_0x51381d,_0x1796aa,_0x7b7379,_0xa1e322,_0x1f6f4b,_0x4e02f3,_0x50f69f,_0x5b27e8,_0xe4f268,_0x29ef58){const _0x1b0f72=_0x1ed081;super(),this[_0x1b0f72(0x221)]=_0x2d3cd1,this['_sidebarService']=_0x16d447,this[_0x1b0f72(0x3c5)]=_0xd7c20f,this[_0x1b0f72(0x26c)]=_0x51381d,this[_0x1b0f72(0x437)]=_0x1796aa,this[_0x1b0f72(0x22d)]=_0x7b7379,this[_0x1b0f72(0x291)]=_0xa1e322,this[_0x1b0f72(0x361)]=_0x1f6f4b,this['_renderManagerService']=_0x4e02f3,this[_0x1b0f72(0x2ad)]=_0x50f69f,this[_0x1b0f72(0x230)]=_0x5b27e8,this[_0x1b0f72(0x382)]=_0xe4f268,this[_0x1b0f72(0x3e3)]=_0x29ef58,Z(this,_0x1b0f72(0x297),null),Z(this,_0x1b0f72(0x225),null),Z(this,_0x1b0f72(0x429),!0x1),Z(this,'_shapeEditPanelVersion',0x0),Z(this,_0x1b0f72(0x334),new Map()),Z(this,_0x1b0f72(0x284),new Map()),this[_0x1b0f72(0x218)](),this[_0x1b0f72(0x2fd)](this[_0x1b0f72(0x221)][_0x1b0f72(0x431)](_0x436dd9['UNIVER_DOC'])[_0x1b0f72(0x251)](_0x2da5ab=>{const _0x15b7d4=_0x1b0f72;if(!_0x2da5ab){var _0x47831b;(_0x47831b=this[_0x15b7d4(0x297)])==null||_0x47831b[_0x15b7d4(0x208)]();}})),this['_registerOperations'](),this[_0x1b0f72(0x2fd)](_0x40ac78(this[_0x1b0f72(0x283)],_0x436dd9[_0x1b0f72(0x335)],_0x3cf0e3=>this[_0x1b0f72(0x3c9)](_0x3cf0e3))),this[_0x1b0f72(0x2fd)](this[_0x1b0f72(0x230)]['editingParams$'][_0x1b0f72(0x251)](_0x32d4c9=>{const _0x12c4bc=_0x1b0f72;_0x32d4c9&&this[_0x12c4bc(0x272)](void 0x0,!0x0);})),this[_0x1b0f72(0x2fd)](this['_permissionService']['permissionPointUpdate$'][_0x1b0f72(0x251)](()=>{const _0x1fb391=_0x1b0f72;this['_drawingManagerService'][_0x1fb391(0x2a0)]()[_0x1fb391(0x3cf)](_0x2b0298=>_0x2b0298[_0x1fb391(0x234)]===_0x690970['DRAWING_SHAPE']&&this[_0x1fb391(0x221)][_0x1fb391(0x39e)](_0x2b0298[_0x1fb391(0x355)])===_0x436dd9[_0x1fb391(0x335)]&&!this[_0x1fb391(0x436)](_0x2b0298[_0x1fb391(0x355)],_0x2b0298[_0x1fb391(0x210)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x1fb391(0x2b4)]());}));}['getShapePopupMenus'](_0x3965da,_0x47130c,_0x162a4e,_0x245778){const _0x330ed6=_0x1ed081;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e},'disable':_0x245778===_0x690970[_0x330ed6(0x20a)]},{'label':_0x330ed6(0x31c),'index':0x1,'commandId':_0x3723c7['id'],'commandParams':{'unitId':_0x3965da,'drawings':[{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e}]},'disable':!0x1},{'label':_0x330ed6(0x2e5),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e},'disable':!0x1}];}[_0x1ed081(0x218)](){const _0x1f977a=_0x1ed081;this['_menuManagerService'][_0x1f977a(0x442)](Di);}[_0x1ed081(0x344)](_0x367443,_0xb71b7,_0x43b40e){const _0x3db491=_0x1ed081;let _0x18016a=this[_0x3db491(0x26c)]['getShapeTypeById'](_0x367443,_0xb71b7,_0x43b40e),_0x504bc8=this[_0x3db491(0x26c)][_0x3db491(0x2e4)](_0x367443,_0xb71b7,_0x43b40e);return _0x18016a===void 0x0||_0x504bc8===void 0x0?null:{'shapeData':_0x504bc8,'shapeId':_0x43b40e,'shapeType':_0x18016a,'unitId':_0x367443,'subUnitId':_0xb71b7,'version':this[_0x3db491(0x444)],'disableShapeOption':!0x1};}[_0x1ed081(0x272)](_0x1a4021,_0x274247=!0x1){const _0x4fca42=_0x1ed081;if(_0x1a4021==null){[...this[_0x4fca42(0x334)][_0x4fca42(0x303)]()]['forEach'](_0x4caf3e=>this['_clearPopups'](_0x4caf3e,_0x274247));return;}let _0x3396fc=this[_0x4fca42(0x334)][_0x4fca42(0x410)](_0x1a4021);if(_0x3396fc){for(let _0x36387c=_0x3396fc[_0x4fca42(0x43c)]-0x1;_0x36387c>=0x0;--_0x36387c){let _0x35c418=_0x3396fc[_0x36387c];(_0x274247||_0x35c418[_0x4fca42(0x1f2)]())&&(_0x35c418[_0x4fca42(0x208)](),_0x3396fc[_0x4fca42(0x299)](_0x36387c,0x1));}_0x3396fc[_0x4fca42(0x43c)]===0x0&&(this[_0x4fca42(0x334)][_0x4fca42(0x39f)](_0x1a4021),this[_0x4fca42(0x284)][_0x4fca42(0x39f)](_0x1a4021));}}['_getDisposePopups'](_0x234b05){const _0x1d9027=_0x1ed081;let _0x537f06=this[_0x1d9027(0x334)][_0x1d9027(0x410)](_0x234b05);if(_0x537f06)return _0x537f06;let _0x3c64d6=[];return this['_disposePopupsByUnit']['set'](_0x234b05,_0x3c64d6),_0x3c64d6;}[_0x1ed081(0x3c9)](_0x26eb99){const _0x341660=_0x1ed081;var _0x5b7efe;let _0x1d5793=new _0x153c14(),_0x27a477=(_0x5b7efe=this[_0x341660(0x283)]['getAllRenderersOfType'](_0x436dd9[_0x341660(0x335)])[_0x341660(0x2ec)](_0x3dc3ff=>_0x3dc3ff[_0x341660(0x27e)][_0x341660(0x36f)]()===_0x26eb99))==null?void 0x0:_0x5b7efe[_0x341660(0x355)];return _0x27a477?(_0x1d5793[_0x341660(0x28d)](_0x26eb99[_0x341660(0x200)]['subscribe'](()=>this[_0x341660(0x245)](_0x26eb99,_0x27a477))),_0x1d5793[_0x341660(0x28d)](_0x26eb99[_0x341660(0x300)][_0x341660(0x251)](()=>{const _0x3688b1=_0x341660;this[_0x3688b1(0x272)](_0x27a477),queueMicrotask(()=>{const _0x1b1d9=_0x3688b1;_0x26eb99[_0x1b1d9(0x23a)]()[_0x1b1d9(0x1e9)]>0x0||(this[_0x1b1d9(0x2ad)][_0x1b1d9(0x3b5)](_0x5ad933,!0x1),this['_drawingManagerService'][_0x1b1d9(0x1ea)](null));});})),_0x1d5793['add'](_0x26eb99[_0x341660(0x35b)][_0x341660(0x251)](()=>{this['_clearPopups'](_0x27a477,!0x0);})),_0x1d5793):_0x1d5793;}[_0x1ed081(0x245)](_0x1937a2,_0x12f8cd){const _0x245f48=_0x1ed081;let _0x35895d=_0x1937a2['getSelectedObjectMap']();if(this[_0x245f48(0x429)]){this['_clearPopups'](_0x12f8cd,!0x0);return;}if(_0x35895d[_0x245f48(0x1e9)]>0x1){this[_0x245f48(0x272)](_0x12f8cd);return;}let _0x443689=_0x35895d[_0x245f48(0x2c2)]()['next']()[_0x245f48(0x439)];if(!_0x443689){this['_clearPopups'](_0x12f8cd);return;}let _0x3e37e6=this[_0x245f48(0x291)]['getDrawingOKey'](_0x443689[_0x245f48(0x1e8)]);if(!_0x3e37e6||_0x3e37e6[_0x245f48(0x234)]!==_0x690970[_0x245f48(0x20d)]){this[_0x245f48(0x272)](_0x12f8cd);return;}let {unitId:_0x5707f8,subUnitId:_0x5df6d3,drawingId:_0x44490a}=_0x3e37e6;if(!this[_0x245f48(0x436)](_0x5707f8,_0x44490a)){this[_0x245f48(0x272)](_0x12f8cd,!0x0);return;}let _0x52f5a5=this[_0x245f48(0x344)](_0x5707f8,_0x5df6d3,_0x44490a);if(!_0x52f5a5){this[_0x245f48(0x272)](_0x12f8cd);return;}let _0x50bea7=this[_0x245f48(0x334)][_0x245f48(0x410)](_0x12f8cd),_0x97d311=_0x5707f8+':'+_0x5df6d3+':'+_0x44490a;if(this[_0x245f48(0x284)]['get'](_0x12f8cd)===_0x97d311&&_0x50bea7!=null&&_0x50bea7[_0x245f48(0x43c)])return;this[_0x245f48(0x272)](_0x12f8cd);let _0x349f52=this[_0x245f48(0x283)]['getRenderUnitById'](_0x5707f8),_0x2b08a1=((_0x349f52==null?void 0x0:_0x349f52[_0x245f48(0x380)])===!0x1?_0x349f52['with'](_0xe084e0):this[_0x245f48(0x361)])[_0x245f48(0x28e)](_0x443689,this[_0x245f48(0x41b)](_0x52f5a5,()=>this[_0x245f48(0x272)](_0x12f8cd,!0x0)),_0x5707f8);this[_0x245f48(0x2fd)](_0x2b08a1),this[_0x245f48(0x44c)](_0x12f8cd)['push'](_0x2b08a1),this[_0x245f48(0x284)]['set'](_0x12f8cd,_0x97d311),this['_drawingManagerService'][_0x245f48(0x2a0)]()[_0x245f48(0x3cf)](_0x32965=>_0x32965[_0x245f48(0x355)]===_0x5707f8&&_0x32965[_0x245f48(0x203)]===_0x5df6d3&&_0x32965[_0x245f48(0x210)]===_0x44490a)||this['_drawingManagerService'][_0x245f48(0x1ea)]([{'unitId':_0x5707f8,'subUnitId':_0x5df6d3,'drawingId':_0x44490a}]);}[_0x1ed081(0x41b)](_0xd0a395,_0x2d5185){const _0x186cf8=_0x1ed081;let {unitId:_0x4aff24,subUnitId:_0x2162e5,shapeId:_0xa20206}=_0xd0a395,_0x370ab5={'hostType':_0x436dd9[_0x186cf8(0x335)],'unitId':_0x4aff24,'subUnitId':_0x2162e5,'shapeId':_0xa20206};return{'componentKey':na,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'shapeType':_0xd0a395[_0x186cf8(0x2e0)],'onText':()=>{const _0x1c1456=_0x186cf8;_0x2d5185(),this[_0x1c1456(0x3e3)][_0x1c1456(0x44d)](_0x1c1456(0x348),_0x370ab5);},'onStyle':()=>{const _0x4ebf1c=_0x186cf8;_0x2d5185(),this[_0x4ebf1c(0x3e3)][_0x4ebf1c(0x44d)]('style',_0x370ab5);},'onDelete':()=>this['_commandService'][_0x186cf8(0x402)](_0x3723c7['id'],{'unitId':_0x4aff24,'drawings':[{'unitId':_0x4aff24,'subUnitId':_0x2162e5,'drawingId':_0xa20206}]})}};}[_0x1ed081(0x436)](_0x5d9fa8,_0x20020e){const _0x1a61c3=_0x1ed081;let _0x57bc43=this['_univerInstanceService'][_0x1a61c3(0x3d3)](_0x5d9fa8,_0x436dd9[_0x1a61c3(0x335)]);if(!_0x57bc43)return!0x1;let _0x8e42d7=_0x1fc7f8(_0x57bc43,_0x20020e);return _0x47555f(this[_0x1a61c3(0x382)],_0x5d9fa8,[..._0x1a179a(_0x57bc43,_0x8e42d7,_0x1a61c3(0x2fa),_0x20020e),_0x5462ea(_0x8e42d7,_0x1a61c3(0x2fa),_0x20020e)]);}['_registerOperations'](){const _0x34597a=_0x1ed081;this[_0x34597a(0x2fd)](this[_0x34597a(0x22d)]['onCommandExecuted'](_0x1527c0=>{const _0x171ce1=_0x34597a;if(_0x1527c0['id']===q['id']){let {unitId:_0x479a3d,subUnitId:_0x1dbc80,drawingId:_0x3429ef}=_0x1527c0[_0x171ce1(0x41e)];this[_0x171ce1(0x444)]+=0x1,this[_0x171ce1(0x225)]=this[_0x171ce1(0x344)](_0x479a3d,_0x1dbc80,_0x3429ef),this[_0x171ce1(0x272)](void 0x0,!0x0),this[_0x171ce1(0x2d2)]();}if(_0x1527c0['id']===Ai['id']&&(this[_0x171ce1(0x225)]=null,this[_0x171ce1(0x2b4)]()),_0x1527c0['id']===_0xbcf5de['id']){var _0x3d4b49;let {unitId:_0x4b709a,shapeId:_0x9f20a8}=_0x1527c0[_0x171ce1(0x41e)];if(((_0x3d4b49=this[_0x171ce1(0x225)])==null?void 0x0:_0x3d4b49[_0x171ce1(0x317)])===_0x9f20a8){let _0x5c263b=this[_0x171ce1(0x344)](_0x4b709a,this[_0x171ce1(0x225)]['subUnitId'],_0x9f20a8);_0x5c263b&&(this[_0x171ce1(0x444)]+=0x1,_0x5c263b[_0x171ce1(0x44b)]=this['_shapeEditPanelVersion'],this[_0x171ce1(0x225)]=_0x5c263b,this['_isOpenedShapeEditPanel']&&this[_0x171ce1(0x2d2)]());}}})),this['disposeWithMe'](this[_0x34597a(0x291)][_0x34597a(0x273)][_0x34597a(0x251)](_0x4a96dd=>{const _0x3dd527=_0x34597a;if(!this[_0x3dd527(0x429)])return;if(_0x4a96dd[_0x3dd527(0x43c)]===0x0){this[_0x3dd527(0x225)]=null,this[_0x3dd527(0x2b4)]();return;}if(_0x4a96dd[_0x3dd527(0x43c)]===0x1&&_0x4a96dd[0x0]['drawingType']===_0x690970[_0x3dd527(0x20d)]&&(this[_0x3dd527(0x444)]+=0x1,this[_0x3dd527(0x225)]=this[_0x3dd527(0x344)](_0x4a96dd[0x0][_0x3dd527(0x355)],_0x4a96dd[0x0][_0x3dd527(0x203)],_0x4a96dd[0x0][_0x3dd527(0x210)]),this[_0x3dd527(0x225)])){this['_openShapeEditPanel']();return;}let _0x307908=_0x4a96dd[_0x3dd527(0x252)](_0x4be853=>_0x4be853['drawingType']===_0x690970[_0x3dd527(0x20d)]);if(this['_shapeEditPanelVersion']+=0x1,this[_0x3dd527(0x225)]=this[_0x3dd527(0x344)](_0x4a96dd[0x0][_0x3dd527(0x355)],_0x4a96dd[0x0][_0x3dd527(0x203)],_0x4a96dd[0x0][_0x3dd527(0x210)]),this['_activeShapeInfo']&&_0x4a96dd[_0x3dd527(0x43c)]>0x1&&_0x307908[_0x3dd527(0x43c)]===_0x4a96dd['length']){this[_0x3dd527(0x2d2)]();return;}if(this[_0x3dd527(0x225)]&&_0x307908['length']!==_0x4a96dd['length']){this[_0x3dd527(0x225)][_0x3dd527(0x2cc)]=!0x0,this['_openShapeEditPanel']();return;}this[_0x3dd527(0x2b4)]();}));}[_0x1ed081(0x2d2)](){const _0xd810a6=_0x1ed081;this[_0xd810a6(0x225)]&&(this[_0xd810a6(0x297)]=this['_sidebarService'][_0xd810a6(0x44d)]({'id':K,'header':{'title':this[_0xd810a6(0x437)]['t'](_0xd810a6(0x25b))},'width':0x184,'children':{'label':K,...this[_0xd810a6(0x225)]},'onClose':()=>{const _0x6eafea=_0xd810a6;this[_0x6eafea(0x291)]['focusDrawing'](null),this['_contextService'][_0x6eafea(0x3b5)](_0x5ad933,!0x1),this[_0x6eafea(0x297)]=null;}}),this[_0xd810a6(0x429)]=!0x0);}[_0x1ed081(0x2b4)](){const _0x4031ab=_0x1ed081;this[_0x4031ab(0x429)]=!0x1,this[_0x4031ab(0x2d3)][_0x4031ab(0x360)](K),this['_sidebarDisposable']=null,this['_contextService'][_0x4031ab(0x3b5)](_0x5ad933,!0x1),this[_0x4031ab(0x291)]['focusDrawing'](null);}};da=Y([J(0x0,_0x357598),J(0x1,_0x4e9d1c(_0x1357e7)),J(0x2,_0x206d0b),J(0x3,_0x4e9d1c(_0x39396e)),J(0x4,_0x4e9d1c(_0x4b811c)),J(0x5,_0x582229),J(0x6,_0x4cc4c4),J(0x7,_0x4e9d1c(_0xe084e0)),J(0x8,_0x1b5744),J(0x9,_0x268075),J(0xa,_0x4e9d1c(Q)),J(0xb,_0x49aab3),J(0xc,_0x4e9d1c(_0x1adc39))],da);const fa='docs-shape-contextual-ribbon';let pa=class extends _0x5721ff{constructor(_0x3e64be,_0x21d8ed,_0x1389f4,_0x276b7b,_0x3eb856,_0x5226df){const _0x144031=_0x1ed081;super(),this[_0x144031(0x3c5)]=_0x3e64be,this[_0x144031(0x240)]=_0x21d8ed,this[_0x144031(0x291)]=_0x1389f4,this[_0x144031(0x221)]=_0x276b7b,this[_0x144031(0x283)]=_0x3eb856,this[_0x144031(0x22f)]=_0x5226df,Z(this,_0x144031(0x2aa),!0x1),this[_0x144031(0x3c5)]['mergeMenu'](Ei),this[_0x144031(0x2fd)](_0xfac87e(this[_0x144031(0x291)][_0x144031(0x273)][_0x144031(0x251)](()=>this[_0x144031(0x2c7)]()))),this[_0x144031(0x2c7)]();}['dispose'](){const _0xaae6e6=_0x1ed081;this['_shapeFloatingToolbarService'][_0xaae6e6(0x2d1)](!0x1,fa),this['_hide'](),super[_0xaae6e6(0x208)]();}[_0x1ed081(0x2c7)](){const _0x5519e2=_0x1ed081;var _0x290cc5;let _0x289b3e=this[_0x5519e2(0x291)][_0x5519e2(0x2a0)](),_0xb49721=_0x289b3e[_0x5519e2(0x43c)]===0x1?_0x289b3e[0x0]:void 0x0;if((_0xb49721==null?void 0x0:_0xb49721[_0x5519e2(0x234)])!==_0x690970[_0x5519e2(0x20d)]||this[_0x5519e2(0x221)][_0x5519e2(0x39e)](_0xb49721[_0x5519e2(0x355)])!==_0x436dd9['UNIVER_DOC']){this[_0x5519e2(0x22f)]['setFallbackVisible'](!0x1,fa),this[_0x5519e2(0x409)]();return;}let _0x5acf84=(_0x290cc5=this[_0x5519e2(0x283)]['getRenderUnitById'](_0xb49721['unitId']))==null?void 0x0:_0x290cc5[_0x5519e2(0x27c)][_0x5519e2(0x313)](),_0x1c1626=_0x557f66(_0x5acf84)===_0x5519e2(0x277);if(this[_0x5519e2(0x22f)][_0x5519e2(0x2d1)](_0x1c1626,fa),_0x1c1626){this[_0x5519e2(0x409)]();return;}this[_0x5519e2(0x2aa)]||(this[_0x5519e2(0x2aa)]=!0x0,this['_ribbonService'][_0x5519e2(0x1f1)](vr,{'activate':!0x0}));}[_0x1ed081(0x409)](){const _0x3aee19=_0x1ed081;this[_0x3aee19(0x2aa)]&&(this[_0x3aee19(0x2aa)]=!0x1,this[_0x3aee19(0x240)][_0x3aee19(0x268)](vr),this[_0x3aee19(0x240)]['setCollapsedIds']([]));}};pa=Y([J(0x0,_0x206d0b),J(0x1,_0x356848),J(0x2,_0x4cc4c4),J(0x3,_0x357598),J(0x4,_0x1b5744),J(0x5,_0x4e9d1c(_0xd408b5))],pa);let ma=class extends _0x5721ff{constructor(_0x4ee64f,_0x27325b,_0x2bd32e,_0x314b79){const _0x184d98=_0x1ed081;super(),this['_commandService']=_0x4ee64f,this[_0x184d98(0x283)]=_0x27325b,this[_0x184d98(0x291)]=_0x2bd32e,this[_0x184d98(0x201)]=_0x314b79,this['_initialize']();}['_initialize'](){const _0xced8b7=_0x1ed081;this['disposeWithMe'](this[_0xced8b7(0x291)][_0xced8b7(0x294)][_0xced8b7(0x251)](_0x4736ba=>this['_insertShapes'](_0x4736ba))),this[_0xced8b7(0x2fd)](this[_0xced8b7(0x291)][_0xced8b7(0x256)][_0xced8b7(0x251)](_0xeb7279=>{const _0x43b070=_0xced8b7;_0xeb7279['forEach'](_0x5befed=>this[_0x43b070(0x2c3)](_0x5befed));})),this['disposeWithMe'](this[_0xced8b7(0x22d)][_0xced8b7(0x320)](_0x22812b=>{const _0x57351a=_0xced8b7;if(_0x22812b['id']!==_0xbcf5de['id'])return;let {unitId:_0x55387d,shapeId:_0x1a2c84}=_0x22812b[_0x57351a(0x41e)];this[_0x57351a(0x30b)]({'unitId':_0x55387d,'subUnitId':_0x55387d,'drawingId':_0x1a2c84});}));}[_0x1ed081(0x2dc)](_0x5eb2e8){const _0x3f3ba6=_0x1ed081;_0x5eb2e8[_0x3f3ba6(0x323)](_0x5ed9d2=>{const _0x5aa4fe=_0x3f3ba6;let _0x5558bf=this[_0x5aa4fe(0x375)](_0x5ed9d2[_0x5aa4fe(0x355)]);if(!_0x5558bf)return;let _0x4acad9=this['_drawingManagerService'][_0x5aa4fe(0x207)](_0x5ed9d2);(_0x4acad9==null?void 0x0:_0x4acad9[_0x5aa4fe(0x234)])===_0x690970[_0x5aa4fe(0x20d)]&&this[_0x5aa4fe(0x201)][_0x5aa4fe(0x2df)](_0x4acad9,_0x5558bf[_0x5aa4fe(0x27e)]);});}[_0x1ed081(0x2c3)](_0x27f83e){const _0x5e38e9=_0x1ed081;let _0x20f063=this['_drawingManagerService'][_0x5e38e9(0x207)](_0x27f83e);if((_0x20f063==null?void 0x0:_0x20f063['drawingType'])!==_0x690970[_0x5e38e9(0x20d)])return;let _0x3bc74e=this[_0x5e38e9(0x375)](_0x27f83e[_0x5e38e9(0x355)]);if(!_0x3bc74e||_0x20f063[_0x5e38e9(0x35d)]==null)return;let _0x4679a4=_0x54547b(_0x27f83e),_0x4b00c9=_0x3bc74e[_0x5e38e9(0x27e)][_0x5e38e9(0x3fa)](_0x4679a4);_0x4b00c9&&(_0x4b00c9[_0x5e38e9(0x430)](_0x20f063['srcRect']),_0x4b00c9[_0x5e38e9(0x29c)](_0x20f063['prstGeom']),_0x4b00c9[_0x5e38e9(0x2cf)](!0x0));}[_0x1ed081(0x30b)](_0x108e99){const _0x10dbbb=_0x1ed081;let _0x5ebc13=this[_0x10dbbb(0x375)](_0x108e99['unitId']);if(!_0x5ebc13)return;let _0x5ba902=_0x54547b(_0x108e99),_0x1f6e20=_0x5ebc13['scene']['getObjectIncludeInGroup'](_0x5ba902);_0x1f6e20&&(this[_0x10dbbb(0x201)][_0x10dbbb(0x21d)](_0x1f6e20),this[_0x10dbbb(0x201)][_0x10dbbb(0x40f)](_0x1f6e20,{'unitId':_0x108e99['unitId'],'subUnitId':_0x108e99[_0x10dbbb(0x203)],'shapeId':_0x108e99['drawingId']}),_0x1f6e20[_0x10dbbb(0x2cf)](!0x0));}[_0x1ed081(0x375)](_0x4e3cee){const _0x5bc1eb=_0x1ed081;if(_0x4e3cee==null)return null;let _0x3678f0=this[_0x5bc1eb(0x283)]['getRenderUnitById'](_0x4e3cee),_0x2b438c=_0x3678f0==null?void 0x0:_0x3678f0[_0x5bc1eb(0x27e)];return _0x2b438c==null?null:{'scene':_0x2b438c};}};ma=Y([J(0x0,_0x582229),J(0x1,_0x1b5744),J(0x2,_0x4cc4c4),J(0x3,_0x4e9d1c($))],ma);let ha=class extends _0x30ce8{constructor(_0x5cf4ba=Mi,_0x3bf6a0,_0xea0af4,_0x1355b1,_0x133b7a){const _0x35a018=_0x1ed081;super(),this[_0x35a018(0x330)]=_0x5cf4ba,this[_0x35a018(0x1ec)]=_0x3bf6a0,this[_0x35a018(0x22d)]=_0xea0af4,this[_0x35a018(0x3da)]=_0x1355b1,this[_0x35a018(0x283)]=_0x133b7a;let {menu:_0x351bb2,..._0x5653a8}=_0x381591({},Mi,this[_0x35a018(0x330)]);_0x351bb2&&this[_0x35a018(0x3da)]['setConfig'](_0x35a018(0x34a),_0x351bb2,{'merge':!0x0}),this[_0x35a018(0x3da)][_0x35a018(0x1e7)](ji,_0x5653a8),[G,Ai,q,Cr,Tr,Er]['forEach'](_0x28b59a=>this['disposeWithMe'](this[_0x35a018(0x22d)][_0x35a018(0x38a)](_0x28b59a)));}[_0x1ed081(0x2b8)](){const _0x2031f5=_0x1ed081;let _0x3be482=[[ua],[da],[ma],[$],[Vi],[zi],[X],[Xi],[Q],[pa]];_0x25479e(this['_injector'],_0x3be482),this[_0x2031f5(0x1ec)]['get'](ua);}[_0x1ed081(0x2c8)](){const _0x472492=_0x1ed081;this[_0x472492(0x2fd)](this['_renderManagerService'][_0x472492(0x316)](_0x436dd9[_0x472492(0x335)],[zi])),_0x3d6461(this[_0x472492(0x1ec)],[[da],[ma],[$],[Vi],[X],[Xi],[Q],[pa]]);}};Z(ha,_0x1ed081(0x37d),_0x436dd9[_0x1ed081(0x335)]),Z(ha,'pluginName',_0x1ed081(0x30e)),Z(ha,'packageName',Oi),Z(ha,'version',ki),ha=Y([_0x2e6e62(_0x1319ac,_0x4e3d23,_0x4249ea,_0x4ec3f0,_0x338f29,_0x4ba3d5,_0xd2d2e,_0x4ca735,_0x2d0bed,_0x2f7ef7),J(0x1,_0x4e9d1c(_0x3d54b6)),J(0x2,_0x582229),J(0x3,_0x280fd7),J(0x4,_0x1b5744)],ha);let ga=class extends _0x5721ff{constructor(_0x48faad,_0x1fec85){const _0x4308a4=_0x1ed081;super(),this['_componentManager']=_0x48faad,this[_0x4308a4(0x309)]=_0x1fec85,this[_0x4308a4(0x205)](),this[_0x4308a4(0x347)]();}['_registerIcons'](){const _0xeb1582=_0x1ed081;this[_0xeb1582(0x309)][_0xeb1582(0x2c5)](_0xeb1582(0x22c))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'ObjectLayersIcon':_0x2d9e5a})),this[_0xeb1582(0x309)][_0xeb1582(0x2c5)](_0xeb1582(0x2f3))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'BottomIcon':_0x10f104})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x241))||this[_0xeb1582(0x2fd)](this['_iconManager'][_0xeb1582(0x314)]({'MoveDownIcon':_0x863eb7})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x384))||this['disposeWithMe'](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'MoveUpIcon':_0x1fa84b})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x2dd))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)]['register']({'ShapeFormatSettingIcon':_0x51d8f6})),this[_0xeb1582(0x309)]['has']('TopmostIcon')||this['disposeWithMe'](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'TopmostIcon':_0x88dd38})),this[_0xeb1582(0x2fd)](this['_iconManager'][_0xeb1582(0x314)](ca));}[_0x1ed081(0x347)](){const _0x32eb43=_0x1ed081;this[_0x32eb43(0x2fd)](this['_componentManager'][_0x32eb43(0x314)](K,Qi)),this['_registerObjectListPanel'](),this[_0x32eb43(0x33b)](),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Hr,Jr)),this['disposeWithMe'](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Vr,Yr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Ur,Xr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Wr,Zr)),this['disposeWithMe'](this['_componentManager'][_0x32eb43(0x314)](Gr,Qr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](xr,_0x1ff31b)),this[_0x32eb43(0x270)](),this[_0x32eb43(0x289)][_0x32eb43(0x410)](_0x3de7d6)||this['disposeWithMe'](this[_0x32eb43(0x289)]['register'](_0x3de7d6,Mr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)]['register'](Sr,la));}['_registerObjectListPanel'](){const _0x1ffbcd=_0x1ed081;this[_0x1ffbcd(0x2fd)](this['_componentManager'][_0x1ffbcd(0x314)](yr,Ji));}[_0x1ed081(0x33b)](){const _0x683836=_0x1ed081;this['disposeWithMe'](this[_0x683836(0x289)]['register'](na,ia));}[_0x1ed081(0x270)](){const _0x446025=_0x1ed081;this[_0x446025(0x2fd)](this['_componentManager'][_0x446025(0x314)](Dr,Nr)),this['disposeWithMe'](this[_0x446025(0x289)]['register'](Or,jr));}};ga=Y([J(0x0,_0x4e9d1c(_0x1bfb02)),J(0x1,_0x4e9d1c(_0x2a264a))],ga);let _a=class extends _0x5721ff{constructor(_0x5a4bde,_0x53126a,_0x325abc,_0x2e7513,_0x3770c0,_0x3e3899,_0x4b3ba9,_0x3d3d3d,_0x5e05e4){const _0x49ce83=_0x1ed081;super();let _0x1ddfa2=_0x8c89bc=>{const _0x3cb89f=_0x5aa0;let _0x5c7345=_0x3e3899[_0x3cb89f(0x3d3)](_0x8c89bc['unitId'],_0x436dd9['UNIVER_DOC']),_0x2b1397=_0x5c7345?_0x1fc7f8(_0x5c7345,_0x8c89bc[_0x3cb89f(0x317)]):'';return!!_0x5c7345&&_0x47555f(_0x3d3d3d,_0x8c89bc[_0x3cb89f(0x355)],[_0x5462ea(_0x2b1397,_0x3cb89f(0x2fa),_0x8c89bc['shapeId']),..._0x1a179a(_0x5c7345,_0x2b1397,_0x3cb89f(0x2fa),_0x8c89bc[_0x3cb89f(0x317)])]);},_0x16b1eb=_0x5a07e0=>_0x5a07e0[_0x49ce83(0x317)]&&_0x1ddfa2(_0x5a07e0)?_0x325abc['getShapeDataById'](_0x5a07e0[_0x49ce83(0x355)],_0x5a07e0['shapeId'])??null:null,_0xa6d308=()=>{const _0x683ceb=_0x49ce83;let _0x3c5c02=_0x3770c0[_0x683ceb(0x2a0)](),_0x39f4cf=_0x3c5c02[_0x683ceb(0x43c)]===0x1?_0x3c5c02[0x0]:null;return(_0x39f4cf==null?void 0x0:_0x39f4cf[_0x683ceb(0x234)])===_0x690970[_0x683ceb(0x20d)]&&_0x39f4cf['unitId']===_0x5a4bde['unitId']?{'unitId':_0x39f4cf[_0x683ceb(0x355)],'subUnitId':_0x39f4cf['subUnitId'],'shapeId':_0x39f4cf['drawingId']}:null;};this[_0x49ce83(0x2fd)](_0x688a39(_0x5a4bde,_0x53126a,{'changes$':_0xfc549c(_0x3770c0[_0x49ce83(0x273)],_0x2e7513[_0x49ce83(0x293)],_0x3d3d3d[_0x49ce83(0x3af)]),'isActive':()=>{const _0x2c5f3b=_0x49ce83;var _0x42bc26;return((_0x42bc26=_0x3e3899[_0x2c5f3b(0x21c)]())==null?void 0x0:_0x42bc26[_0x2c5f3b(0x336)]())===_0x5a4bde['unitId']&&!_0x4b3ba9[_0x2c5f3b(0x3a3)](_0x5fd016)&&_0x3770c0[_0x2c5f3b(0x2a0)]()[_0x2c5f3b(0x3cf)](_0x2d9a49=>_0x2d9a49[_0x2c5f3b(0x355)]===_0x5a4bde[_0x2c5f3b(0x355)]);},'getSelectedTarget':_0xa6d308,'getSource':()=>{let _0x3609e1=_0xa6d308();return _0x3609e1?_0x16b1eb(_0x3609e1):null;},'getTarget':_0x57a85f=>{const _0x561a22=_0x49ce83;let _0x142481=_0x5a4bde[_0x561a22(0x27e)][_0x561a22(0x22b)](new _0x2ede79(_0x57a85f[_0x561a22(0x2c1)],_0x57a85f['offsetY']));if(!(_0x142481 instanceof Ri))return null;let _0x2b4b5b={'unitId':_0x5a4bde[_0x561a22(0x355)],'subUnitId':_0x5a4bde[_0x561a22(0x355)],'shapeId':_0x142481[_0x561a22(0x317)]};return _0x1ddfa2(_0x2b4b5b)?_0x2b4b5b:null;},'getShape':_0x16b1eb,'update':(_0x538208,_0x3866fd,_0x3341ff)=>_0x5e05e4[_0x49ce83(0x402)](_0x46dc48['id'],{..._0x538208,'shapeData':_0x3341ff,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x3866fd}})}));}};_a=Y([J(0x1,_0x4e9d1c(_0x2cd412)),J(0x2,_0x4e9d1c(_0x39396e)),J(0x3,_0x4e9d1c(Q)),J(0x4,_0x4cc4c4),J(0x5,_0x357598),J(0x6,_0x268075),J(0x7,_0x49aab3),J(0x8,_0x582229)],_a);function va(_0x5eec15,_0x17a17e){const _0x5531e3=_0x1ed081;let _0x4ebcc9=_0x5eec15;for(;_0x4ebcc9;){if(_0x17a17e(_0x4ebcc9))return _0x4ebcc9;_0x4ebcc9=typeof _0x4ebcc9[_0x5531e3(0x388)]==_0x5531e3(0x341)?_0x4ebcc9[_0x5531e3(0x388)]():null;}return null;}function ya(_0x31959d){return va(_0x31959d,_0x2e9d8c=>_0x2e9d8c instanceof Ri);}function ba(_0x342bfd){const _0x2a81ec=_0x1ed081;return(_0x342bfd==null?void 0x0:_0x342bfd[_0x2a81ec(0x1f5)])==null;}let xa=class extends _0x5721ff{constructor(_0x36c206,_0x5adb8a,_0x20159e,_0x12ecf8,_0x1a3bbd,_0x598987){const _0x597456=_0x1ed081;super(),this[_0x597456(0x42e)]=_0x36c206,this[_0x597456(0x230)]=_0x5adb8a,this[_0x597456(0x291)]=_0x20159e,this[_0x597456(0x2ad)]=_0x12ecf8,this[_0x597456(0x364)]=_0x1a3bbd,this[_0x597456(0x26c)]=_0x598987,Z(this,'_lastEditingShapeKey',null),Z(this,'_layoutInteraction',null),this[_0x597456(0x27d)](),this['_initSelection'](),this[_0x597456(0x278)]();}[_0x1ed081(0x208)](){const _0x2af216=_0x1ed081;this[_0x2af216(0x2f7)](),super['dispose']();}[_0x1ed081(0x27d)](){const _0x4e8032=_0x1ed081;let {scene:_0x32052b}=this[_0x4e8032(0x42e)];this['disposeWithMe'](_0x32052b[_0x4e8032(0x310)][_0x4e8032(0x432)]((_0x58b1fc,_0x507fad)=>{const _0x4e07b3=_0x4e8032;let {offsetX:_0x2e71f8,offsetY:_0x2ce0b7}=_0x58b1fc,_0x4ab415=_0x2ede79['FromArray']([_0x2e71f8,_0x2ce0b7]),_0x45fb45=ya(_0x32052b[_0x4e07b3(0x22b)](_0x4ab415))??this[_0x4e07b3(0x42c)](_0x4ab415);if(_0x45fb45){_0x507fad[_0x4e07b3(0x367)]();let _0xdecaa0=this[_0x4e07b3(0x26c)][_0x4e07b3(0x381)](_0x45fb45['unitId'],_0x45fb45[_0x4e07b3(0x203)],_0x45fb45[_0x4e07b3(0x317)]);if(!_0xdecaa0||_0x238e4e(_0xdecaa0['getShapeType']())||!ba(_0xdecaa0[_0x4e07b3(0x3c2)]()))return;this[_0x4e07b3(0x230)]['setEditing']({'visible':!0x0,'unitId':_0x45fb45['unitId'],'subUnitId':_0x45fb45[_0x4e07b3(0x203)],'shapeId':_0x45fb45[_0x4e07b3(0x317)],'shapeKey':_0x45fb45['oKey']});}}));}['_getFocusedShapeAtPoint'](_0x232234){const _0x3ba098=_0x1ed081;let {scene:_0x54fc22}=this[_0x3ba098(0x42e)];return this[_0x3ba098(0x291)][_0x3ba098(0x2a0)]()['map'](_0x25d3f2=>_0x54fc22['getObjectIncludeInGroup'](_0x54547b(_0x25d3f2)))[_0x3ba098(0x2ec)](_0xcf97f5=>_0xcf97f5 instanceof Ri&&_0xcf97f5[_0x3ba098(0x40a)](_0x232234))??null;}[_0x1ed081(0x2b3)](){const _0x3a0166=_0x1ed081;this[_0x3a0166(0x2fd)](this[_0x3a0166(0x291)][_0x3a0166(0x273)][_0x3a0166(0x251)](_0x13766f=>{const _0x46a567=_0x3a0166;if(_0x13766f[_0x46a567(0x43c)]===0x1){let _0x4ae1fc=_0x13766f[0x0],_0x9c75ea=this[_0x46a567(0x291)]['getDrawingByParam'](_0x4ae1fc);if((_0x9c75ea==null?void 0x0:_0x9c75ea[_0x46a567(0x234)])===_0x690970[_0x46a567(0x20d)]){let _0x95407c=this['_shapeTextEditingService'][_0x46a567(0x24c)]();if((_0x95407c==null?void 0x0:_0x95407c[_0x46a567(0x317)])===_0x4ae1fc['drawingId']&&_0x95407c[_0x46a567(0x232)])return;_0x238e4e(this[_0x46a567(0x26c)][_0x46a567(0x40b)](_0x4ae1fc[_0x46a567(0x355)],_0x4ae1fc[_0x46a567(0x203)],_0x4ae1fc[_0x46a567(0x210)]))&&this['_shapeTextEditingService'][_0x46a567(0x372)](null);}else this[_0x46a567(0x230)]['completeEditing']();}else this[_0x46a567(0x230)][_0x46a567(0x3cc)]();})),this[_0x3a0166(0x2fd)](this[_0x3a0166(0x291)][_0x3a0166(0x354)][_0x3a0166(0x251)](_0x177abf=>{const _0x126e23=_0x3a0166;let _0x369a39=this['_shapeTextEditingService']['getEditing']();_0x369a39&&_0x177abf[_0x126e23(0x3cf)](_0x1956e0=>_0x1956e0[_0x126e23(0x210)]===_0x369a39[_0x126e23(0x317)])&&this[_0x126e23(0x230)][_0x126e23(0x372)](null);}));}[_0x1ed081(0x278)](){this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$']['subscribe'](_0x1ccea1=>{const _0x58537e=_0x5aa0;(_0x1ccea1==null?void 0x0:_0x1ccea1[_0x58537e(0x232)])===!0x0&&_0x1ccea1['unitId']===this[_0x58537e(0x42e)][_0x58537e(0x355)]?this[_0x58537e(0x3b9)]??=this[_0x58537e(0x364)][_0x58537e(0x412)]():this[_0x58537e(0x2f7)]();let {scene:_0x2413be}=this[_0x58537e(0x42e)];if(this[_0x58537e(0x350)]){let _0x4b6ed5=_0x2413be[_0x58537e(0x3fa)](this[_0x58537e(0x350)]);_0x4b6ed5&&_0x4b6ed5['setEditing'](!0x1);}if(_0x1ccea1){let _0x39353a=!!_0x1ccea1[_0x58537e(0x232)],_0x595b3d=_0x2413be[_0x58537e(0x3fa)](_0x1ccea1[_0x58537e(0x362)]);_0x595b3d&&(_0x595b3d[_0x58537e(0x372)](_0x39353a),this['_lastEditingShapeKey']=_0x1ccea1[_0x58537e(0x362)]),this[_0x58537e(0x2ad)]['setContextValue'](_0x5fd016,_0x39353a);}else this[_0x58537e(0x350)]=null,this['_contextService'][_0x58537e(0x3b5)](_0x5fd016,!0x1);}));}[_0x1ed081(0x2f7)](){const _0x4e8ad6=_0x1ed081;var _0x403dfa;(_0x403dfa=this['_layoutInteraction'])==null||_0x403dfa[_0x4e8ad6(0x208)](),this[_0x4e8ad6(0x3b9)]=null;}};xa=Y([J(0x1,_0x4e9d1c(Q)),J(0x2,_0x4cc4c4),J(0x3,_0x268075),J(0x4,_0x4e9d1c(_0x23c4ef)),J(0x5,_0x4e9d1c(_0x39396e))],xa);let Sa=class extends _0x4fa01d{constructor(_0x5b9f32,_0x562da8,_0x5836c7,_0x18137f,_0x2bd0f6,_0x1b409c,_0x187c31,_0x245c3f,_0x1f25b9,_0x140d38){super(_0x5b9f32,_0x562da8,_0x5836c7,_0x18137f,_0x2bd0f6,_0x1b409c,_0x187c31,_0x245c3f,_0x1f25b9,_0x140d38,{'componentKey':xr,'editorUnitId':br});}};Sa=Y([J(0x1,_0x4e9d1c(_0x2325c6)),J(0x2,_0x4e9d1c(_0xe084e0)),J(0x3,_0x4e9d1c(_0x3272e9)),J(0x4,_0x582229),J(0x5,_0x4e9d1c(_0x4420fc)),J(0x6,_0x4e9d1c(_0x491613)),J(0x7,_0x4e9d1c(_0x3a4b97)),J(0x8,_0x4e9d1c(_0x299248)),J(0x9,_0x4e9d1c(Q))],Sa);let Ca=class extends _0x5721ff{constructor(_0x37024b,_0x4027c2,_0x416e4c,_0x2fddb6,_0x1dbfb,_0xe5696a,_0x39c1cb,_0x4eeed3,_0x5c7dd9,_0x4b1636,_0x11bead,_0x531ac8){const _0x214d7a=_0x1ed081;super(),this[_0x214d7a(0x221)]=_0x37024b,this['_sidebarService']=_0x4027c2,this['_menuManagerService']=_0x416e4c,this[_0x214d7a(0x26c)]=_0x2fddb6,this['_localeService']=_0x1dbfb,this[_0x214d7a(0x22d)]=_0xe5696a,this['_drawingManagerService']=_0x39c1cb,this['_docCanvasPopManagerService']=_0x4eeed3,this[_0x214d7a(0x283)]=_0x5c7dd9,this[_0x214d7a(0x2ad)]=_0x4b1636,this[_0x214d7a(0x230)]=_0x11bead,this[_0x214d7a(0x382)]=_0x531ac8,Z(this,_0x214d7a(0x297),null),Z(this,'_activeShapeInfo',null),Z(this,_0x214d7a(0x429),!0x1),Z(this,'_shapeEditPanelVersion',0x0),Z(this,'_disposePopupsByUnit',new Map()),Z(this,_0x214d7a(0x284),new Map()),this[_0x214d7a(0x218)](),this[_0x214d7a(0x2fd)](this['_univerInstanceService'][_0x214d7a(0x431)](_0x436dd9[_0x214d7a(0x335)])['subscribe'](_0x2acc16=>{const _0xef0dd0=_0x214d7a;if(!_0x2acc16){var _0x3d9d40;(_0x3d9d40=this[_0xef0dd0(0x297)])==null||_0x3d9d40[_0xef0dd0(0x208)]();}})),this[_0x214d7a(0x3f7)](),this['disposeWithMe'](_0x40ac78(this[_0x214d7a(0x283)],_0x436dd9[_0x214d7a(0x335)],_0x15d25e=>this[_0x214d7a(0x3c9)](_0x15d25e))),this[_0x214d7a(0x2fd)](this[_0x214d7a(0x230)][_0x214d7a(0x293)][_0x214d7a(0x251)](_0x3b81b1=>{_0x3b81b1&&this['_clearPopups'](void 0x0,!0x0);})),this[_0x214d7a(0x2fd)](this['_permissionService']['permissionPointUpdate$'][_0x214d7a(0x251)](()=>{const _0x398d3d=_0x214d7a;this[_0x398d3d(0x291)][_0x398d3d(0x2a0)]()['some'](_0x526981=>_0x526981['drawingType']===_0x690970['DRAWING_SHAPE']&&this[_0x398d3d(0x221)]['getUnitType'](_0x526981[_0x398d3d(0x355)])===_0x436dd9['UNIVER_DOC']&&!this['_canEditShape'](_0x526981[_0x398d3d(0x355)],_0x526981[_0x398d3d(0x210)]))&&(this[_0x398d3d(0x272)](void 0x0,!0x0),this[_0x398d3d(0x2b4)]());}));}[_0x1ed081(0x218)](){const _0x465476=_0x1ed081;this['_menuManagerService'][_0x465476(0x442)](Di);}[_0x1ed081(0x3de)](_0x4f3190,_0x39bff7,_0xe3006,_0x2d0653){const _0x2a46b9=_0x1ed081;return[{'label':_0x2a46b9(0x3a7),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006},'disable':_0x2d0653===_0x690970[_0x2a46b9(0x20a)]},{'label':_0x2a46b9(0x31c),'index':0x1,'commandId':_0x3723c7['id'],'commandParams':{'unitId':_0x4f3190,'drawings':[{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006}]},'disable':!0x1},{'label':_0x2a46b9(0x2e5),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006},'disable':!0x1}];}[_0x1ed081(0x344)](_0x30d313,_0x4bb13f,_0x2aabfa){const _0x21f471=_0x1ed081;let _0x2c6a02=this[_0x21f471(0x26c)][_0x21f471(0x363)](_0x30d313,_0x4bb13f,_0x2aabfa),_0x521cf7=this[_0x21f471(0x26c)]['getShapeDataById'](_0x30d313,_0x4bb13f,_0x2aabfa);return _0x2c6a02!==void 0x0&&_0x521cf7!==void 0x0?{'shapeData':_0x521cf7,'shapeId':_0x2aabfa,'shapeType':_0x2c6a02,'unitId':_0x30d313,'subUnitId':_0x4bb13f,'version':this[_0x21f471(0x444)],'disableShapeOption':!0x1}:null;}[_0x1ed081(0x272)](_0x3ac361,_0x38f06f=!0x1){const _0x10ac76=_0x1ed081;if(_0x3ac361==null){[...this['_disposePopupsByUnit'][_0x10ac76(0x303)]()]['forEach'](_0x57a6c5=>this[_0x10ac76(0x272)](_0x57a6c5,_0x38f06f));return;}let _0x1f3ed6=this[_0x10ac76(0x334)][_0x10ac76(0x410)](_0x3ac361);if(_0x1f3ed6){for(let _0x2cae8f=_0x1f3ed6['length']-0x1;_0x2cae8f>=0x0;--_0x2cae8f){let _0x11032f=_0x1f3ed6[_0x2cae8f];(_0x38f06f||_0x11032f[_0x10ac76(0x1f2)]())&&(_0x11032f['dispose'](),_0x1f3ed6['splice'](_0x2cae8f,0x1));}_0x1f3ed6[_0x10ac76(0x43c)]===0x0&&(this[_0x10ac76(0x334)][_0x10ac76(0x39f)](_0x3ac361),this['_popupTargetKeys'][_0x10ac76(0x39f)](_0x3ac361));}}[_0x1ed081(0x44c)](_0x3feb01){const _0x4d32e2=_0x1ed081;let _0x5055b1=this[_0x4d32e2(0x334)][_0x4d32e2(0x410)](_0x3feb01);if(_0x5055b1)return _0x5055b1;let _0x5293c0=[];return this[_0x4d32e2(0x334)][_0x4d32e2(0x2e7)](_0x3feb01,_0x5293c0),_0x5293c0;}[_0x1ed081(0x3c9)](_0x485d24){const _0x17ee05=_0x1ed081;var _0x545d2b;let _0x30926f=new _0x153c14(),_0x42c665=(_0x545d2b=this[_0x17ee05(0x283)][_0x17ee05(0x31d)](_0x436dd9[_0x17ee05(0x335)])[_0x17ee05(0x2ec)](_0x5e2fd9=>_0x5e2fd9[_0x17ee05(0x27e)][_0x17ee05(0x36f)]()===_0x485d24))==null?void 0x0:_0x545d2b['unitId'];return _0x42c665?(_0x30926f[_0x17ee05(0x28d)](_0x485d24[_0x17ee05(0x200)][_0x17ee05(0x251)](()=>this[_0x17ee05(0x245)](_0x485d24,_0x42c665))),_0x30926f['add'](_0x485d24[_0x17ee05(0x300)]['subscribe'](()=>{const _0x5b7431=_0x17ee05;this[_0x5b7431(0x272)](_0x42c665),queueMicrotask(()=>{const _0x2b3e47=_0x5b7431;_0x485d24[_0x2b3e47(0x23a)]()[_0x2b3e47(0x1e9)]>0x0||(this[_0x2b3e47(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this[_0x2b3e47(0x291)][_0x2b3e47(0x1ea)](null));});})),_0x30926f[_0x17ee05(0x28d)](_0x485d24[_0x17ee05(0x35b)][_0x17ee05(0x251)](()=>{this['_clearPopups'](_0x42c665,!0x0);})),_0x30926f):_0x30926f;}[_0x1ed081(0x245)](_0x126a5c,_0x1a63c6){const _0x4816a7=_0x1ed081;let _0x280dae=_0x126a5c[_0x4816a7(0x23a)]();if(this['_isOpenedShapeEditPanel']){this[_0x4816a7(0x272)](_0x1a63c6,!0x0);return;}if(_0x280dae[_0x4816a7(0x1e9)]>0x1){this[_0x4816a7(0x272)](_0x1a63c6);return;}let _0x312359=_0x280dae['values']()[_0x4816a7(0x2d8)]()['value'];if(!_0x312359){this['_clearPopups'](_0x1a63c6);return;}let _0x449700=this[_0x4816a7(0x291)][_0x4816a7(0x269)](_0x312359[_0x4816a7(0x1e8)]);if(!_0x449700||_0x449700[_0x4816a7(0x234)]!==_0x690970[_0x4816a7(0x20d)]){this['_clearPopups'](_0x1a63c6);return;}let {unitId:_0x147d37,subUnitId:_0x1fd4b4,drawingId:_0x39d36e,drawingType:_0x2597c2}=_0x449700;if(!this[_0x4816a7(0x436)](_0x147d37,_0x39d36e)){this[_0x4816a7(0x272)](_0x1a63c6,!0x0);return;}let _0x5f5467=this[_0x4816a7(0x344)](_0x147d37,_0x1fd4b4,_0x39d36e);if(!_0x5f5467){this[_0x4816a7(0x272)](_0x1a63c6);return;}let _0xed16f8=this['_disposePopupsByUnit'][_0x4816a7(0x410)](_0x1a63c6),_0x19eff8=_0x147d37+':'+_0x1fd4b4+':'+_0x39d36e;if(this[_0x4816a7(0x284)][_0x4816a7(0x410)](_0x1a63c6)===_0x19eff8&&_0xed16f8&&_0xed16f8[_0x4816a7(0x43c)]>0x0)return;this[_0x4816a7(0x272)](_0x1a63c6);let _0x14d2d5=this[_0x4816a7(0x283)][_0x4816a7(0x30a)](_0x147d37),_0x5d0bdc=((_0x14d2d5==null?void 0x0:_0x14d2d5[_0x4816a7(0x380)])===!0x1?_0x14d2d5[_0x4816a7(0x34e)](_0xe084e0):this[_0x4816a7(0x361)])[_0x4816a7(0x28e)](_0x312359,this[_0x4816a7(0x41b)](_0x5f5467,_0x2597c2),_0x147d37);this[_0x4816a7(0x2fd)](_0x5d0bdc),this[_0x4816a7(0x44c)](_0x1a63c6)[_0x4816a7(0x39c)](_0x5d0bdc),this[_0x4816a7(0x284)]['set'](_0x1a63c6,_0x19eff8),this[_0x4816a7(0x291)][_0x4816a7(0x2a0)]()[_0x4816a7(0x3cf)](_0x367b03=>_0x367b03[_0x4816a7(0x355)]===_0x147d37&&_0x367b03['subUnitId']===_0x1fd4b4&&_0x367b03[_0x4816a7(0x210)]===_0x39d36e)||this[_0x4816a7(0x291)]['focusDrawing']([{'unitId':_0x147d37,'subUnitId':_0x1fd4b4,'drawingId':_0x39d36e}]);}[_0x1ed081(0x41b)](_0x15676a,_0x4da931){const _0x4c1091=_0x1ed081;return{'componentKey':na,'direction':_0x4c1091(0x397),'offset':[0x0,_0x1fa496],'extraProps':{'unitId':_0x15676a[_0x4c1091(0x355)],'subUnitId':_0x15676a['subUnitId'],'drawingId':_0x15676a['shapeId'],'drawingType':_0x4da931,'shapeType':_0x15676a[_0x4c1091(0x2e0)],'shapeData':_0x15676a[_0x4c1091(0x2ba)]}};}[_0x1ed081(0x436)](_0x368c25,_0xd0f819){const _0x331950=_0x1ed081;let _0x37f431=this[_0x331950(0x221)][_0x331950(0x3d3)](_0x368c25,_0x436dd9[_0x331950(0x335)]);if(!_0x37f431)return!0x1;let _0x5ecc67=_0x1fc7f8(_0x37f431,_0xd0f819);return _0x47555f(this['_permissionService'],_0x368c25,[..._0x1a179a(_0x37f431,_0x5ecc67,_0x331950(0x2fa),_0xd0f819),_0x5462ea(_0x5ecc67,_0x331950(0x2fa),_0xd0f819)]);}[_0x1ed081(0x3f7)](){const _0x5ce752=_0x1ed081;this['disposeWithMe'](this[_0x5ce752(0x22d)]['onCommandExecuted'](_0x101cbd=>{const _0x8db220=_0x5ce752;if(_0x101cbd['id']===q['id']){let {unitId:_0x55944e,subUnitId:_0x1e2d77,drawingId:_0x11547c}=_0x101cbd[_0x8db220(0x41e)];this[_0x8db220(0x444)]+=0x1,this[_0x8db220(0x225)]=this['_getShapeInfo'](_0x55944e,_0x1e2d77,_0x11547c),this[_0x8db220(0x272)](void 0x0,!0x0),this[_0x8db220(0x2d2)]();}if(_0x101cbd['id']===Ai['id']&&(this['_activeShapeInfo']=null,this[_0x8db220(0x2b4)]()),_0x101cbd['id']===_0xbcf5de['id']){let {unitId:_0x1dc078,shapeId:_0x144d8b}=_0x101cbd['params'];if(this[_0x8db220(0x225)]&&this[_0x8db220(0x225)][_0x8db220(0x317)]===_0x144d8b){let _0x8c1a1d=this[_0x8db220(0x344)](_0x1dc078,this[_0x8db220(0x225)]['subUnitId'],_0x144d8b);_0x8c1a1d&&(this['_shapeEditPanelVersion']+=0x1,_0x8c1a1d[_0x8db220(0x44b)]=this[_0x8db220(0x444)],this['_activeShapeInfo']=_0x8c1a1d,this[_0x8db220(0x429)]&&this['_openShapeEditPanel']());}}})),this[_0x5ce752(0x2fd)](this['_drawingManagerService']['focus$'][_0x5ce752(0x251)](_0x376295=>{const _0xbd3732=_0x5ce752;if(this[_0xbd3732(0x429)]===!0x1)return;if(_0x376295[_0xbd3732(0x43c)]===0x0){this[_0xbd3732(0x225)]=null,this[_0xbd3732(0x2b4)]();return;}if(_0x376295['length']===0x1&&_0x376295[0x0]['drawingType']===_0x690970[_0xbd3732(0x20d)]&&(this[_0xbd3732(0x444)]+=0x1,this[_0xbd3732(0x225)]=this['_getShapeInfo'](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0][_0xbd3732(0x203)],_0x376295[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0xbd3732(0x2d2)]();return;}let _0x1db8d6=_0x376295[_0xbd3732(0x252)](_0x2cc9c0=>_0x2cc9c0[_0xbd3732(0x234)]===_0x690970[_0xbd3732(0x20d)]);if(_0x376295[_0xbd3732(0x43c)]>0x1&&_0x1db8d6[_0xbd3732(0x43c)]===_0x376295[_0xbd3732(0x43c)]){if(this[_0xbd3732(0x444)]+=0x1,this['_activeShapeInfo']=this[_0xbd3732(0x344)](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0]['subUnitId'],_0x376295[0x0]['drawingId']),this['_activeShapeInfo']){this[_0xbd3732(0x2d2)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0xbd3732(0x225)]=this['_getShapeInfo'](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0][_0xbd3732(0x203)],_0x376295[0x0][_0xbd3732(0x210)]),this[_0xbd3732(0x225)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0xbd3732(0x2d2)]();return;}}this[_0xbd3732(0x2b4)]();}));}[_0x1ed081(0x2d2)](){const _0x4228a1=_0x1ed081;this[_0x4228a1(0x225)]&&(this['_sidebarDisposable']=this[_0x4228a1(0x2d3)][_0x4228a1(0x44d)]({'id':K,'header':{'title':this[_0x4228a1(0x437)]['t'](_0x4228a1(0x25b))},'width':0x184,'children':{'label':K,...this[_0x4228a1(0x225)]},'onClose':()=>{const _0xdc9506=_0x4228a1;this[_0xdc9506(0x291)][_0xdc9506(0x1ea)](null),this[_0xdc9506(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this['_sidebarDisposable']=null;}}),this[_0x4228a1(0x429)]=!0x0);}[_0x1ed081(0x2b4)](){const _0x357ff3=_0x1ed081;this['_isOpenedShapeEditPanel']=!0x1,this[_0x357ff3(0x2d3)]['close'](K),this['_sidebarDisposable']=null,this[_0x357ff3(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ca=Y([J(0x0,_0x357598),J(0x1,_0x4e9d1c(_0x1357e7)),J(0x2,_0x206d0b),J(0x3,_0x4e9d1c(_0x39396e)),J(0x4,_0x4e9d1c(_0x4b811c)),J(0x5,_0x582229),J(0x6,_0x4cc4c4),J(0x7,_0x4e9d1c(_0xe084e0)),J(0x8,_0x1b5744),J(0x9,_0x268075),J(0xa,_0x4e9d1c(Q)),J(0xb,_0x49aab3)],Ca);let wa=class extends _0x5721ff{constructor(_0x111c22,_0x3489f6){const _0x86b536=_0x1ed081;super(),this['_docsShapeService']=_0x111c22,this['_localeService']=_0x3489f6,this[_0x86b536(0x2fd)](_0xfac87e(_0x357255((_0x527943,_0x1892e8,_0x58f68a)=>this['_measure'](_0x527943,_0x1892e8,_0x58f68a))));}[_0x1ed081(0x2d9)](_0x44ec7a,_0x4f52f9,_0x174f34){const _0xd23d7c=_0x1ed081;let _0x1c43cc=this[_0xd23d7c(0x26c)][_0xd23d7c(0x381)](_0x44ec7a,_0x4f52f9);if(!_0x1c43cc)return null;let _0x268b9d=_0x1c43cc[_0xd23d7c(0x3c2)](),_0x5bb3cd=_0x1a4698(_0x268b9d),_0x5a9dfa=_0x268b9d['shapeText'];if(!_0x5a9dfa||_0x5bb3cd[_0xd23d7c(0x35a)]!==_0x44ef7a['SpAutoFit'])return null;let _0x5b640a=_0x174f34['fallbackWidth'],_0x2c2e7c=_0x174f34[_0xd23d7c(0x3ed)];_0x1c43cc['updateContext']({'width':_0x5b640a,'height':_0x2c2e7c});let _0x15dda6=_0x1c43cc[_0xd23d7c(0x262)]({'left':0x0,'top':0x0,'width':_0x5b640a,'height':_0x2c2e7c}),_0x52aeca=_0x2e2427(_0xd23d7c(0x3e2)in _0x5a9dfa?_0x5a9dfa[_0xd23d7c(0x3e2)]:void 0x0),_0x192104=(_0x52aeca==null?void 0x0:_0x52aeca[_0xd23d7c(0x2ca)])??(_0xd23d7c(0x3fb)in _0x5a9dfa?_0x105325(_0x5a9dfa,_0x4f52f9+_0xd23d7c(0x2b0)):null);if(!_0x192104)return null;let _0x24c2ff=_0x209b99({'documentData':_0x192104,'height':_0x2c2e7c,'shapeData':_0x268b9d,'textRect':_0x15dda6,'width':_0x5b640a,'widthBuffer':0x0});_0x24c2ff&&({width:_0x5b640a,height:_0x2c2e7c}=_0x24c2ff,_0x1c43cc[_0xd23d7c(0x31a)]({'width':_0x5b640a,'height':_0x2c2e7c}),_0x15dda6=_0x1c43cc[_0xd23d7c(0x262)]({'left':0x0,'top':0x0,'width':_0x5b640a,'height':_0x2c2e7c}));let _0x39c265=_0x5a9dfa['isHorizontal']!==!0x1,_0x348c15=_0x25ec96(_0x192104,{'isHorizontal':_0x39c265,'textRect':_0x15dda6,'verticalAlign':_0x52aeca==null?void 0x0:_0x52aeca['va'],'horizontalAlign':_0x52aeca==null?void 0x0:_0x52aeca['ha'],'wrapStrategy':_0x55fcc9(_0x268b9d)}),_0x8eca77=new _0x3b3dfb(_0x348c15),_0x2b2d31=new _0x514bbc(_0x8eca77),_0x293ee4=_0x44a5a2[_0xd23d7c(0x406)](_0x2b2d31,this[_0xd23d7c(0x437)]);try{var _0x3dde40,_0x4245e8;_0x293ee4[_0xd23d7c(0x3ef)]();let _0x10850b=((_0x3dde40=_0x293ee4[_0xd23d7c(0x220)]())==null?void 0x0:_0x3dde40[_0xd23d7c(0x3fc)])??[],_0x29dd75=_0x10850b[_0x10850b[_0xd23d7c(0x43c)]-0x1],_0x3f783a=_0x29dd75?Math[_0xd23d7c(0x23c)](0x0,((_0x4245e8=_0x14e5f4(_0x29dd75))==null?void 0x0:_0x4245e8[_0xd23d7c(0x2a7)])??0x0):0x0,_0x249acc=_0x293ee4[_0xd23d7c(0x38d)]()[_0xd23d7c(0x1eb)]+_0x3f783a-(_0x39c265?_0x15dda6[_0xd23d7c(0x3e1)]:_0x15dda6[_0xd23d7c(0x421)]);return Number[_0xd23d7c(0x2a5)](_0x249acc)?_0x39c265?{'width':_0x5b640a,'height':Math[_0xd23d7c(0x23c)](0x1,_0x2c2e7c+_0x249acc)}:{'width':Math['max'](0x1,_0x5b640a+_0x249acc),'height':_0x2c2e7c}:null;}finally{_0x293ee4[_0xd23d7c(0x208)](),_0x2b2d31[_0xd23d7c(0x208)](),_0x8eca77[_0xd23d7c(0x208)]();}}};wa=Y([J(0x0,_0x4e9d1c(_0x39396e)),J(0x1,_0x4e9d1c(_0x4b811c))],wa);let Ta=class extends _0x30ce8{constructor(_0x4cf939=Mi,_0x55e771,_0x56e081,_0x4027df,_0x5e330d){const _0x70cbbe=_0x1ed081;super(),this['_config']=_0x4cf939,this[_0x70cbbe(0x1ec)]=_0x55e771,this[_0x70cbbe(0x22d)]=_0x56e081,this['_configService']=_0x4027df,this[_0x70cbbe(0x283)]=_0x5e330d;let {menu:_0x257cdb,..._0xff364d}=_0x381591({},Mi,this[_0x70cbbe(0x330)]);_0x257cdb&&this['_configService'][_0x70cbbe(0x1e7)](_0x70cbbe(0x34a),_0x257cdb,{'merge':!0x0}),this[_0x70cbbe(0x3da)][_0x70cbbe(0x1e7)](ji,_0xff364d),this[_0x70cbbe(0x26d)]();}[_0x1ed081(0x2b8)](){const _0x52a525=_0x1ed081;_0x25479e(this['_injector'],this[_0x52a525(0x42b)]()),this[_0x52a525(0x1ec)][_0x52a525(0x410)](ga),this[_0x52a525(0x26b)]();}[_0x1ed081(0x42b)](){return[[ga],[Ca],[ma],[$],[Vi],[zi],[X],[Xi],[wa],[Q],[pa]];}[_0x1ed081(0x2c8)](){const _0x32a76e=_0x1ed081;this[_0x32a76e(0x219)]()[_0x32a76e(0x323)](_0x28172f=>{const _0x44570f=_0x32a76e;this[_0x44570f(0x2fd)](this[_0x44570f(0x283)]['registerRenderModule'](_0x436dd9[_0x44570f(0x335)],_0x28172f));}),_0x3d6461(this[_0x32a76e(0x1ec)],[[Ca],[ma],[$],[Vi],[X],[Xi],[wa],[Q],[pa]]);}[_0x1ed081(0x219)](){return[[zi],[xa],[_a]];}[_0x1ed081(0x223)](){const _0x42be24=_0x1ed081;this[_0x42be24(0x2fd)](this[_0x42be24(0x283)][_0x42be24(0x316)](_0x436dd9[_0x42be24(0x335)],[Sa]));}[_0x1ed081(0x26d)](){const _0x2e2468=_0x1ed081;[G,Ai,q,Cr,Tr,Er][_0x2e2468(0x323)](_0x5126c4=>this[_0x2e2468(0x2fd)](this['_commandService']['registerCommand'](_0x5126c4)));}['_initUIPart'](){const _0x29ea3a=_0x1ed081;let _0x34eafb=this[_0x29ea3a(0x1ec)],_0x2ff9b6=_0x34eafb[_0x29ea3a(0x410)](_0x4e8829);this[_0x29ea3a(0x2fd)](_0x2ff9b6[_0x29ea3a(0x41f)](_0x32804c[_0x29ea3a(0x44a)],()=>_0x30129e(la,_0x34eafb)));}};Z(Ta,'type',_0x436dd9[_0x1ed081(0x335)]),Z(Ta,'pluginName','DOCS_SHAPE_UI_PLUGIN'),Z(Ta,_0x1ed081(0x2cb),Oi),Z(Ta,_0x1ed081(0x44b),ki),Ta=Y([_0x2e6e62(_0x1319ac,_0x4e3d23,_0x4249ea,_0x26805d,_0x338f29,_0x44d973,_0xd2d2e,_0x5efad2,_0x2d0bed,_0xf08f8c),J(0x1,_0x4e9d1c(_0x3d54b6)),J(0x2,_0x582229),J(0x3,_0x280fd7),J(0x4,_0x1b5744)],Ta);export{Di as DocsShapeUIMenuSchema,ha as UniverDocsShapeMobileUIPlugin,Ta as UniverDocsShapeUIPlugin};
1
+ const _0x2b58b8=_0x73b8;(function(_0x2f8989,_0x267d73){const _0x155858=_0x73b8,_0x784576=_0x2f8989();while(!![]){try{const _0x1f5e37=parseInt(_0x155858(0x1ad))/0x1*(-parseInt(_0x155858(0x22a))/0x2)+parseInt(_0x155858(0x37d))/0x3+-parseInt(_0x155858(0x337))/0x4*(-parseInt(_0x155858(0x30f))/0x5)+-parseInt(_0x155858(0x159))/0x6+-parseInt(_0x155858(0x117))/0x7*(-parseInt(_0x155858(0x355))/0x8)+parseInt(_0x155858(0x2e9))/0x9+parseInt(_0x155858(0x2c8))/0xa*(-parseInt(_0x155858(0x266))/0xb);if(_0x1f5e37===_0x267d73)break;else _0x784576['push'](_0x784576['shift']());}catch(_0x226d17){_0x784576['push'](_0x784576['shift']());}}}(_0x3bfd,0x38591));import{FormulaShapeAnimationController as _0x4df99d,MobileShapeEditorControls as _0x406ee5,MobileShapeEditorService as _0x4b38a4,MobileShapePickerPanel as _0xe027d8,SHAPE_CHANGE_PICKER_COMPONENT as _0x342b81,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x48d4bb,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x199a5b,ShapeEditPanel as _0x11d750,ShapeFloatingToolbar as _0x1ee75a,ShapeFloatingToolbarService as _0x54ad5c,ShapeFloatingToolbarToggleFactory as _0x17729f,ShapeFormulaRibbonControl as _0x38d486,ShapeGroupEnum as _0x1aea6e,ShapePickerDropdown as _0x43ddc3,ShapePickerPanel as _0x4d11e9,ShapeQuickStyleGallery as _0x11cbb8,ShapeStyleRibbonControl as _0x5de1c8,ShapeTextEditorContainer as _0x4573e8,ShapeTextFloatMenuRenderControllerBase as _0x4f9593,ShapeTextFloatToolbar as _0x2439df,ShapeTextHyperLinkHoverController as _0x436d06,ShapeTextHyperLinkInfo as _0x1151ff,ShapeTextHyperLinkPopupService as _0x1edd14,ShapeTextRibbonControl as _0x21ece6,ToggleShapeFloatingToolbarOperation as _0x5bf1e4,UniverShapeEditorMobileUIPlugin as _0x3b9966,UniverShapeEditorUIPlugin as _0x21cd82,activateDrawingObject as _0x30f783,bindRenderTransformerLifecycle as _0x59c4f1,buildShapeTextDataUpdate as _0x4b7a9f,clearActiveDrawingObjects as _0x168dd8,createShapeTextHyperLinkRegions as _0x269858,drawFormulaShapeAnimationLayers as _0x1ecc92,getDrawingTypeNameKey as _0x29fa97,getTextModel as _0xf92dc,getTextStyle as _0x2f8313,normalizeShapeTextModel as _0x361202,plainShapeTextToDocumentData as _0x20f7f3,prepareShapeTextDocumentData as _0x1bee13,prepareShapeTextDocumentData as _0x3b74bd,registerShapeFormatPainter as _0x3dbd87,resolveFormulaShapeAutoFitSize as _0x57aa48,resolveShapeContextualRibbonHostMode as _0x5387c5,resolveShapeTextDocumentPageHeight as _0x261110,resolveShapeTextDocumentRenderLayout as _0x1e51d4,resolveShapeTextEditorBehaviorShapeData as _0x1e45b8,resolveShapeTextEditorWrapStrategy as _0x46d47a,resolveShapeTextHyperLinkAt as _0xccb99c,resolveShapeTextHyperLinkObject as _0xb163f0,shouldAllowShapeTextEditorHostSizeShrink as _0x37cf60,shouldClipShapeTextDocument as _0x3440f6,useFormulaShapeToolbar as _0x4bb66f}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x191d2f,DOC_CONTENT_INSERT_MENU_ID as _0x53ef11,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x906c27,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x2b37e1,DocCanvasPopManagerService as _0x44b27e,DocEventManagerService as _0x20631e,DocLayoutInteractionService as _0x4c3397,DocParagraphMenuService as _0x11940c,DocPrintInterceptorService as _0x50c28a,DocRenderController as _0x2215d8,DocSelectionRenderService as _0x56a574,EMPTY_PARAGRAPH_MENU_ID as _0x3a423f,INSERT_BELLOW_MENU_ID as _0xcccbbd,UniverDocsMobileUIPlugin as _0x4a5d16,UniverDocsUIPlugin as _0x191fd8,VIEWPORT_KEY as _0x59aab8}from'@univerjs/docs-ui';import{BuiltInUIPart as _0xf47892,ComponentManager as _0x391057,ContextMenuGroup as _0xbc21b0,ContextMenuPosition as _0x519876,FloatingObjectToolbarPosition as _0x825cf2,FormatPainterSessionService as _0x292d84,IMenuManagerService as _0x955a33,IRibbonService as _0x16839e,ISidebarService as _0x4bee7b,IUIPartsService as _0x4050f2,IconManager as _0x3fa0b0,MenuItemType as _0x56fa91,MenuManagerPosition as _0x23e24a,MobileMenu as _0x2cf0e1,ObjectPermissionButton as _0x3d2d26,RibbonInsertGroup as _0x4dd0cf,connectInjector as _0x370dd2,getMenuHiddenObservable as _0x26c4d6,useDependency as _0x16858b,useObservable as _0x104db2}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x2e80b2,DEFAULT_DOC_SHAPE_WIDTH as _0x2a901a,DocShapeAnchorPosition as _0x24ab2d,DocsShapeService as _0xc58a76,InsertDocShapeCommand as _0x1b7b6a,UniverDocsShapePlugin as _0x33aa0d,UpdateDocDrawingMetadataCommand as _0x155b37,UpdateDocShapeDataCommand as _0x544402,UpdateDocShapeDataMutation as _0x3d4cfc}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x34e787,ShapeArrowSizeEnum as _0xf89a84,ShapeArrowTypeEnum as _0x1c38b1,ShapeDefaultConfig as _0xda9354,ShapeFillEnum as _0x377cba,ShapeLineTypeEnum as _0x52f7da,ShapeModel as _0x211894,ShapeRenderModeEnum as _0x1f70b1,ShapeTextAutoFitType as _0x52fc4f,ShapeTypeEnum as _0x32c60e,isConnectorShape as _0x3a6b70,resolveShapeTextBodyBehavior as _0x49519b}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x13f23d,UniverShapeEditorPlugin as _0x4f835e,applyQuickStyleToShapeData as _0x92fd7b,cloneShapeDataForType as _0x41e0ce,createShapeFormulaDocument as _0x5273c3,createShapeTextBoxShapeData as _0x42690e,getShapeQuickStylePreset as _0x1a66ee,getShapeQuickStyleType as _0x42e968,resolveActiveShapeQuickStylePresetId as _0x1547f4}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x3963c4,BooleanNumber as _0x562bb0,CommandType as _0x1d6912,DependentOn as _0x5d76b8,Disposable as _0x587b62,DisposableCollection as _0x5570bd,DocumentDataModel as _0x4107fb,DrawingTypeEnum as _0x11efaa,FOCUSING_COMMON_DRAWINGS as _0x1ec544,FOCUSING_SHAPE_TEXT_EDITOR as _0x386d22,HorizontalAlign as _0x5cdaf0,ICommandService as _0x5f3c0a,IConfigService as _0x2f3c71,IContextService as _0x311686,IImageIoService as _0x1ec634,IPermissionService as _0x562515,IURLImageService as _0x57ea26,IUniverInstanceService as _0x52a285,Inject as _0xbdb0e2,Injector as _0x57c331,LocaleService as _0x5af3e2,Plugin as _0x2f0f12,PositionedObjectLayoutType as _0x292c91,UniverInstanceType as _0x19a5e9,VerticalAlign as _0x41d65f,createInternalEditorID as _0x3abe1f,generateRandomId as _0x205d4b,getParagraphContentStartOffset as _0x9501d0,merge as _0x4cbbbe,registerDependencies as _0x4136fc,toDisposable as _0x390b1,touchDependencies as _0x44a503}from'@univerjs/core';import{DocInterceptorService as _0x267fb9,DocSelectionManagerService as _0x30b345,RichTextEditingMutation as _0x2dba6b,SetDocumentPermissionCommand as _0x2ba39d,UniverDocsPlugin as _0x2627bb,canEditDocumentTargets as _0x353611,getDocumentDrawingSegmentId as _0x384956,getDocumentEntityParentPermissionObjectIds as _0x4fa6cb,getDocumentEntityPermissionObjectId as _0x418902,getDocumentPermissionValue as _0x196f76}from'@univerjs/docs';import{IDocDrawingService as _0x1c6928,RemoveDocDrawingCommand as _0x6ceb84,SetDocDrawingArrangeCommand as _0x441b4f,TextWrappingStyle as _0x31600f,UpdateDocDrawingWrappingStyleCommand as _0x210103,UpdateDrawingDocTransformCommand as _0x2f3fc9}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x5c1434,Circle as _0x20e69b,DRAWING_OBJECT_LAYER_INDEX as _0x59670b,DocumentSkeleton as _0x297bbe,DocumentViewModel as _0x2f6ee9,Documents as _0x501bdc,IRenderManagerService as _0x5479fc,RENDER_CLASS_TYPE as _0x585778,Shape as _0x55a1bf,Transform as _0x4b5d71,UniverRenderEnginePlugin as _0xd9d11,Vector2 as _0xd9a358,getLastLine as _0x5abd28,setDocsCustomBlockRenderViewportProvider as _0x3e088f}from'@univerjs/engine-render';import{IDrawingManagerService as _0x1f1d2f,SetDrawingSelectedOperation as _0x2aa15c,UniverDrawingPlugin as _0x224c4f,getDrawingShapeKeyByDrawingSearch as _0x3ac7e0}from'@univerjs/drawing';function _0x3bfd(){const _0x118904=['canvas','_closeShapeEditPanel','add$','_hide','setSrcRect','docs-shape-ui.shape-format.style-ribbon-control','fallbackWidth','applyPoint','_registerDrawingTransformHandler','_contextService','pages','Rect','MoveDownIcon','_transformCalculateSrcRect','_registerIcons','_getShapePopup','visible','docs-shape-ui.crop.shape','getState','refreshAdjustControls','adjHandleFill','find','_unitId','_attachAdjustEvent','forEach','408715BisTtX','some','paragraphMenuPlacement','docs-shape-ui.mobile.style','_popupTargetKeys','docs-shape-ui.ribbon.shape-format.arrange-back','getPresentation','_shapeRenderController','isEditing','_addShapeAdjustControl','getTransformerByCreate','docs-shape-ui.ribbon.shape-format.text-control','drawing-ui.objectListPanel.sectionCanvas','CROSSHAIR','docs-shape-ui.textWrap.topAndBottom','clearAdjustValue','getAdjustValueByName','_sidebarDisposable','subscribeEvent','WRAP_SQUARE','componentKey','_drawingManagerService','_getShapeInfo','type','actualHeight','formulaBinding','_disposePopupsByUnit','docs-shape-ui.textWrap.inFrontText','DRAWING_DOM','_isShouldShowDrawingShapeAdjust','disposeWithMe','Line','_baseShapeWidth','getRealBound','calculate','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','0.14','fillType','push','_transform','20QJmKkc','univer-grid\x20univer-gap-5\x20univer-p-3','params','_adjustPointObjects','buildClipPath','span','drawing-ui.objectListPanel.empty','drawing','_docsShapeService','endArrow','draw','beginPath','doc.shape.object-list.panel','objects','horizontal','error','getValue','getShapeModel','getDrawingEffectBounds','_initUIPart','rect','COMMAND','_commandService','_menuManagerService','_popupMenuListener','context-bar','_activeAdjustInfo','shape-editor-ui.arrange.back','onPointerDown$','docs-shape-ui.mobile.text','7144DDVoGU','changeEnd$','drawing-ui.objectListPanel.hide','drawing-ui.objectListPanel.descriptionPlaceholder','VIEW_MAIN','hasDefault','splice','_renderManagerService','_measure','gradientEndColor','drawing-ui.objectListPanel.description','startArrow','drawing-ui.objectListPanel.filterLocked','executeCommand','syncExecuteCommand','length','clearControl$','registerComponent','drawing-ui.objectListPanel.title','_shapeEditPanelVersion','onDblclick$','DocsShapeWrapTopBottomIcon','getSkeletonData','doc','URL','_getActiveDrawingShape','drawWith','transformByState','editingParams$','clipHeight','getInterceptPoints','DocsShapeWrapInFrontOfTextIcon','restore','_shapeFormulaService','_visible','doc-shape-adjust-point-','docs-shape-ui.textWrap.inline','changing$','svg','_subUnitId','1313130wnQQYN','_isOpenedShapeEditPanel','_context','refreshShapeFillImage','drawing-ui.objectListPanel.typeNames.','setCursor','unitId','_getActiveDrawingParam','div','addObject','_activeShapeAdjustPointList','formulaPresentation','isRenderLinePointsMode','_lastEditingShapeKey','contentVerticalOffset','symbol','register','drawing-ui.objectListPanel.close','scene','back','text','DocsShapeTextEditorContainer','translate','getSnapshot','skeFooters','left','get','top-bottom','BEHIND_TEXT','getMatrix','644sfkCtr','layoutType','None','add','oKey','-layout','getSelectedObjectMap','docs-shape-ui.insertShape','getShapeType','sectionCanvas','_permissionService','_registerComponents','_initPrinting','getSelfOrHeaderFooterModel','entries','_isStartAdjusting','order','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','animationEnabled','_getSceneByUnitId','shape-editor-ui.arrange.backward','_registerDrawingFocusChangeHandler','DOCS_SHAPE_UI_PLUGIN','top','dispose','intercept','presetId','_update','getActualSize','_updateAdjustControlPositions','style','fillImageSource','offsetX','subscribe','getPageDrawingIds','behindText','getVisible','Arrow','_updateShape','moveRange','shape-editor-ui.toolbar.changeShape','_toScenePoint','fallbackHeight','drawingType','warn','shapeKey','getShapeTextData','resize','_baseShapeTop','getBody','doc.shape.edit.panel','default','DocsShapeWrapInlineIcon','_componentManager','adjHandleSize','isInGroup','DRAWING_SHAPE','RIBBON','packageName','getShapeDataById','invert','setConfig','behind','_applyFormulaAutoFitSize','menu','stopPropagation','1279014bvqaWJ','docs-shape-ui.ribbon.shape-format.formula-control','_initMenu','docs-shape-ui.ribbon.shape-format.style-control','_activeShapeInfo','docs-shape-ui.ribbon.shape-format.wrapping-style','1.0.4','drawingId','_getDependencies','0\x200\x2020\x2020','_canEdit','_docLayoutInteractionService','_univerInstanceService','map','headerLayoutKey','subtle','panel','_formulaKey','_drawRichText','_editingParams$','_clipService','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','filter','getShapeData','_getDisposePopups','title','drawing-ui.objectListPanel.unlock','height','bottom','cells','width','WRAP_NONE','version','docs-shape-ui.quickStyles','label','shapeModel','drawing-ui.objectListPanel.unlockAll','prstGeom','popup','fill','_injector','multiply','name','setCollapsedIds','Path','backward','_getShapeAdjustPointListById','shapeText','disableObjectsEvent','featurePluginUpdateNotification','with','string','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','flipY','presentationChanged$','call','stroke','DocsShapeWrapSquareIcon','createControl$','current','function','composeMatrix','getDrawingSearch','_adjHandlerPointerUp','values','setCanUseShapeClip','_iconManager','object','getAutoFitPresentations','onCommandExecuted','ancestorTransform','canDispose','doc.operation.close-doc-shape-format-panel','delete','getDrawingPoints','drawings','animateFormulaPresentation','onStarting','shapeId','drawing-ui.objectListPanel.collapse','skeHeaders','_shapeTextEditingService','pageWidth','getShapeTypeById','13gidtUU','shapeData','_clearCompletionFrame','skeTables','wrapStrategy','_insertShapes','refreshTransform$','drawing-ui.objectListPanel.noSelection','getUnitType','PictureFill','SolidLine','startOffset','_activeShapeId','TopmostIcon','footerId','forward','_getShapeAdjustInfosById','contentHeight','setAdjustValueByName','drawing-ui.objectListPanel.hideAll','srcRect','setShapeData','docs-shape-ui.hidePanel','#2563EB','updateShapeFillImage','drawing-ui.objectListPanel.moveForward','doc.operation.apply-shape-quick-style','true','getRenderUnitById','FromArray','_refreshShapeData','Image','create','renderDrawingShape','drawing-ui.objectListPanel.lockHint','_handleCreateControl','front','TOP','max','1.2','drawing-ui.objectListPanel.expand','shapeType','clearAdjustControls','getParent','@univerjs-pro/docs-shape-ui','selectable','INLINE','value','set','unsubscribe','setPrstGeom','_adjName','interceptor','_drawShapeText','drawing-ui.objectListPanel.showAll','trim','inline','clear','save','_mobileEditorService','path','icon','_clearPopups','getDrawingOrder','getOwnPropertyDescriptor','clip','5.5','strokeWidth','_canEditShape','cos','1em','_shapeId','docs-shape-ui.deleteShape','scale','TRUE','updateContext','asObservable','drawing-ui.objectListPanel.lockAll','LAYOUT','transformForAngle','PaintIcon','docs-shape-ui.mobile.delete','getDrawingVisible','_getRenderModules','docs-shape-format-font-family-menu','getObjectIncludeInGroup','DocumentEntity','_localeService','LEFT','_baseShapeHeight','doc.operation.open-shape-object-list-panel','setPresentation','currentAdjustValues','onPointerUp$','docs-shape-ui.textWrap.square','isHorizontal','getDrawingEditable','onPointerMove$','marginTop','docs-shape-text-','_urlImageService','_docDrawingShapeRenderController','getDrawingData','close','getTransformer','_layoutInteraction','PRINTING_COMPONENT_COLLECT','registerRenderModule','drawing-ui.objectListPanel.unlockHint','_initCommands','pluginName','render','below','subUnitId','univer-box-border\x20univer-px-4\x20univer-text-sm','_setTransForm','getViewports','segmentId','classType','refreshFormulaPresentation','next','update$','parent','getCurrentTypeOfUnit$','_renderWithCache','26414UoTtgv','_drawSimpleText','PARAGRAPH','currentColor','DRAWING_IMAGE','_shapeFloatingToolbarService','transformVector2SceneCoord','iterator','canvasElement','isFinite','UNIVER_DOC','onRendered','endOffset','getContextValue','UUID','beginInteraction','_formulaAnimation','attachTransformerTo','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getActiveTextRange','data','drawing-ui.objectListPanel.details','spaceBelowApply','_draw','enhanceParams','extensionGroups','mergeMenu','clip-','description','getDrawingByParam','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_ribbonService','_registerImageShapeClipDelegate','drawing-ui.objectListPanel.filterHidden','none','flipX','onload','shape-editor-ui.arrange.front','toPrimitive','defineProperty','drawing-ui.objectListPanel.filterAll','_imageIoService','vertical-center','Medium','decorate','docs-shape-ui.shape-format.text-ribbon-control','docs-shape-ui.ribbon.shape-format','src','drawing-ui.objectListPanel.nameInput','sheet.image-clip.shape-picker.component','has','_configService','dataModel','size','complete','docs-shape-ui.ribbon.shape-format.arrange-forward','getFocusDrawings','footerLayoutKey','drawing-ui.objectListPanel.search','clipByShape','11DYYbnJ','_registerPickers','debounceRefreshControls','resolveHyperLinkAt','Copy','WRAP_TOP_AND_BOTTOM','_updateShapeAdjustControls','docs-shape-ui.openPanel','completeEditing','behindDoc','_config','_completionFrame','getDrawingDataForUnit','getImage','getUnitId','_loadAndSetImage','angle','transform','ObjectLayersIcon','keys','autoFitType','shape-text-','_initEvents','getActiveViewportByCoord','OPERATION','permissionPointUpdate$','BUTTON','_instanceService','MEDIA','getUnit','square','SELECTOR','_hyperLinkRegions','showContextualTab','updateDocumentStyle','_updateSrcRectByTransform','_baseShapeLeft','MoveUpIcon','UNIVER_SHEET','drawing-ui.objectListPanel.lock','docs-shape-ui.textWrap.behindText','IN_FRONT_OF_TEXT','doc.shape.floating-toolbar','enableObjectsEvent','_endLayoutInteraction','setFillImage','attachPopupToObject','SHAPE_TEXT','doc.operation.update-shape-type','SpAutoFit','getAllRenderersOfType','isHit','isMainScene','prototype','offsetY','sectionFloating','docs-shape-ui.formatShape','drawing-ui.objectListPanel.name','fillImageSourceType','hidden','getDrawingOKey','clone','_formulaShapes','_sidebarService','getShapePopupMenus','BottomIcon','_createShapeAdjustControls','setFallbackVisible','_adjHandlerPointerMove','docs-shape-ui.objectListPanel.title','top-center','localeService','docs-shape-ui.shape-format.quick-style-gallery','color','_registerOperations','docs-shape-contextual-ribbon','isLineShape','constructor','custom','setFormulaPresentation','getCurrentUnitOfType','docs-shape-ui.objectListPanel.open','round','getShapeTextRect','isRichText','_onSavingEditorData$','_toVisualAdjustPoint','_props','headerId','_docPrintInterceptorService','_registerObjectListPanel','paragraph','drawing-ui.objectListPanel.locate','ShapeFormatSettingIcon','disableShapeOption','getEditing','adjName','extraProps','4254790CzjEtR','updateDocumentDataMargin','open','cancelEditing','docs-shape-ui.ribbon.shape-format.arrange-front','_clearShapeAdjustControls','SHAPE','sin','_docCanvasPopManagerService','setContextValue','drawing-ui.objectListPanel.show','getInverseCoord','drawing-ui.objectListPanel.sectionFloating','reverse','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','_releaseRenderCache','calcAdjValues','translateWithPrecision','shape-editor-ui.toolbar.quickStyles','clipTop','changeStart$','_activeShapeModel','adjHandleStroke','_loadShapePictureFill','_getFocusedShapeAtPoint','_init','pick','getImageSourceCache','image','focusDrawing','_initEditingParams','vertical','setEditing','1013031xzAjQU','docs-shape-ui.shape-format.wrapping-style-label','_openShapeEditPanel','addImageSourceCache','DocsShapeWrapBehindTextIcon','makeDirty','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','isDrawingObject','_registerFloatingToolbar','remove$','focus$','onReady','OTHERS'];_0x3bfd=function(){return _0x118904;};return _0x3bfd();}import{DrawingCommonPanel as _0x45ca4b,DrawingImageClipService as _0x20d505,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x2c1395,MobileObjectListPanel as _0x4bf5db,OBJECT_LIST_FLOATING_SECTION_ID as _0xa72627,ObjectListPanelBase as _0x77d035,UniverDrawingMobileUIPlugin as _0x10c85b,UniverDrawingUIPlugin as _0x38457f,getObjectListPanelSectionIdForDrawingType as _0x590bb6,insertGroupObject as _0xfd7c86}from'@univerjs/drawing-ui';import{Fragment as _0x18996c,jsx as _0x9daf1d,jsxs as _0x29ba63}from'react/jsx-runtime';import{BehaviorSubject as _0x4ac5d9,Observable as _0x15ba3b,distinctUntilChanged as _0x325f40,map as _0x41dd31,merge as _0x3f58bc,of as _0x156e35,startWith as _0x19f0b7}from'rxjs';import{UniverLicensePlugin as _0x23a3e9}from'@univerjs-pro/license';import{DocDrawingPosition as _0x1adf5f,DocDrawingTextWrap as _0x4fb651,MobileDocDrawingPosition as _0x3ac16a,MobileDocDrawingTextWrap as _0x44ac19,UniverDocsDrawingMobileUIPlugin as _0x5994c3,UniverDocsDrawingUIPlugin as _0x26ca13}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x30111e,MoreDownIcon as _0x4067c9,MoreUpIcon as _0x1f633b,MoveDownIcon as _0x23588f,MoveUpIcon as _0x50d193,ObjectLayersIcon as _0x7b836,ShapeFormatSettingIcon as _0x38092e,TextWrapShapeIcon as _0x5e10e7,TopmostIcon as _0x37e31f}from'@univerjs/icons';import{MobileActionRow as _0x1cbd0b}from'@univerjs/design';import{memo as _0x4417c9,useEffect as _0x2951cf,useMemo as _0x17c0eb,useReducer as _0x3f2dd0,useState as _0x1960d6}from'react';import{UnitAction as _0x5c2975,UnitObject as _0xb843b5}from'@univerjs/protocol';function wr(_0xd08d52,_0x170c5a){const _0x452e40=_0x73b8;if(_0x170c5a){if(_0x3a6b70(_0xd08d52)&&(_0x170c5a[_0x452e40(0x360)]||_0x170c5a[_0x452e40(0x340)]))return{'ln':{'startArrow':_0x170c5a['startArrow']?{'type':_0x1c38b1[_0x452e40(0x13c)],'size':_0xf89a84[_0x452e40(0x255)]}:void 0x0,'endArrow':_0x170c5a['endArrow']?{'type':_0x1c38b1[_0x452e40(0x13c)],'size':_0xf89a84['Large']}:void 0x0}};if(_0xd08d52===_0x32c60e[_0x452e40(0x301)]&&(_0x170c5a['horizontal']||_0x170c5a[_0x452e40(0x2e7)]))return _0x42690e({'fill':{'fillType':_0x377cba['SolidFill'],'color':'#3B82F6'},'isHorizontal':!!_0x170c5a[_0x452e40(0x345)],'stroke':{'lineStrokeType':_0x52f7da[_0x452e40(0x1b7)],'width':0x1,'color':_0x452e40(0x1c4)}});}}function Tr(_0x1a532a,_0x2ea3c5){const _0x5a889e=_0x73b8;var _0x163cd4;let _0xc731d3=_0x2ea3c5[_0x5a889e(0x222)]??'',_0x53a4f3=(_0x163cd4=_0x1a532a[_0x5a889e(0x124)](_0xc731d3))==null?void 0x0:_0x163cd4[_0x5a889e(0x148)]();if(!_0x53a4f3)return null;let _0x3f580d=_0x53a4f3['paragraphs']??[],_0xb72fc9=_0x3f580d[_0x5a889e(0x30b)](_0x5a1fe5=>{const _0x3e5dc7=_0x5a889e;let _0x27c1d4=_0x9501d0(_0x53a4f3,_0x5a1fe5);return _0x2ea3c5[_0x3e5dc7(0x1b8)]>=_0x27c1d4&&_0x2ea3c5[_0x3e5dc7(0x1b8)]<=_0x5a1fe5['startIndex'];})??_0x3f580d[_0x3f580d[_0x5a889e(0x364)]-0x1];return _0xb72fc9?{'paragraphId':_0xb72fc9['paragraphId'],'segmentId':_0xc731d3,'position':_0x24ab2d['OFFSET'],'offset':_0x2ea3c5['startOffset']-_0x9501d0(_0x53a4f3,_0xb72fc9)}:null;}function Er(_0x324ea0,_0x848faf,_0x9a58f8){const _0x249fc3=_0x73b8;var _0x5e8cfe,_0x203564;if(!_0x9a58f8)return null;let _0x5ca359=(_0x5e8cfe=_0x324ea0[_0x249fc3(0x113)](_0x5479fc)[_0x249fc3(0x1c9)](_0x848faf))==null?void 0x0:_0x5e8cfe[_0x249fc3(0x18b)](_0x11940c)['activeTarget'];if(!_0x5ca359)return null;let _0x21c35f=_0x9a58f8===_0x249fc3(0x21d)?{'startOffset':_0x5ca359[_0x249fc3(0x13e)][_0x249fc3(0x236)],'endOffset':_0x5ca359[_0x249fc3(0x13e)][_0x249fc3(0x236)]}:_0x5ca359['menuRange'];return{'startOffset':_0x21c35f[_0x249fc3(0x1b8)],'endOffset':_0x21c35f['endOffset'],'collapsed':_0x21c35f[_0x249fc3(0x1b8)]===_0x21c35f[_0x249fc3(0x236)],'segmentId':((_0x203564=_0x5ca359[_0x249fc3(0x2c1)])==null?void 0x0:_0x203564['segmentId'])??''};}const U={'type':_0x1d6912['COMMAND'],'id':'doc.command.menu-insert-shape','handler':async(_0x3e0818,_0x2faaf7)=>{const _0x5d3208=_0x73b8;let _0x3326c4=_0x3e0818[_0x5d3208(0x113)](_0x52a285)['getCurrentUnitOfType'](_0x19a5e9[_0x5d3208(0x234)]);if(!_0x3326c4)return!0x1;let _0x4f5d9f=_0x3e0818[_0x5d3208(0x113)](_0x5f3c0a),_0x519f4c=_0x3326c4[_0x5d3208(0x274)](),_0x219091=_0x2faaf7['shapeId']??_0x205d4b(),_0x36c836=_0x2faaf7[_0x5d3208(0x177)]??_0x2a901a,_0x9250fa=_0x2faaf7[_0x5d3208(0x174)]??_0x2e80b2,_0x228e0f=_0x2faaf7[_0x5d3208(0x1ae)]??wr(_0x2faaf7['value'],_0x2faaf7[_0x5d3208(0x242)]),_0x53dd53=Er(_0x3e0818,_0x519f4c,_0x2faaf7[_0x5d3208(0x311)])??_0x3e0818[_0x5d3208(0x113)](_0x30b345)[_0x5d3208(0x23d)]();if(!_0x53dd53)return!0x1;let _0x63dc1d=Tr(_0x3326c4,_0x53dd53);return _0x63dc1d?!!_0x4f5d9f[_0x5d3208(0x363)](_0x1b7b6a['id'],{'unitId':_0x519f4c,'shapeId':_0x219091,'shapeType':_0x2faaf7[_0x5d3208(0x1dc)],'shapeData':_0x228e0f,'transform':{'width':_0x36c836,'height':_0x9250fa},'placement':{'wrappingStyle':_0x31600f[_0x5d3208(0x1db)],'anchor':_0x63dc1d}}):!0x1;}},W=_0x2b58b8(0x149),Dr=_0x2b58b8(0x258),Or=_0x2b58b8(0x343),kr=_0x3abe1f(_0x2b58b8(0x295)),Ar='doc.shape.text.float-menu',jr=_0x2b58b8(0x10e),Mr={'id':_0x2b58b8(0x207),'type':_0x1d6912[_0x2b58b8(0x34c)],'handler':(_0x14b044,_0x185a15)=>{const _0x5c4fef=_0x2b58b8;let _0x125435=_0x14b044['get'](_0x4bee7b),_0x3f8f52=_0x14b044['get'](_0x5af3e2),_0x5b1624=_0x14b044[_0x5c4fef(0x113)](_0x1f1d2f);return(_0x185a15==null?void 0x0:_0x185a15[_0x5c4fef(0x1dc)])===_0x5c4fef(0x214)?(_0x125435[_0x5c4fef(0x214)](Or),!0x0):(_0x125435[_0x5c4fef(0x2ca)]({'id':Or,'header':{'title':_0x3f8f52['t'](_0x5c4fef(0x2ab))},'children':{'label':Or},'onClose':()=>{_0x5b1624['focusDrawing'](null);},'width':0x168}),!0x0);}},G={'type':_0x1d6912['OPERATION'],'id':'doc.operation.open-doc-shape-format-panel','handler'(){return!0x0;}};function Nr(_0x70cd97){const _0x2c67ad=_0x2b58b8;let _0x218e67=_0x70cd97[_0x2c67ad(0x113)](_0x1f1d2f)[_0x2c67ad(0x262)](),_0x16be9f=_0x218e67[_0x2c67ad(0x364)]===0x1?_0x218e67[0x0]:null;if(!_0x16be9f||_0x16be9f[_0x2c67ad(0x142)]!==_0x11efaa[_0x2c67ad(0x14f)])return null;let _0x4a82da=_0x70cd97['get'](_0xc58a76),_0x169f5f=_0x4a82da[_0x2c67ad(0x1ac)](_0x16be9f[_0x2c67ad(0x383)],_0x16be9f[_0x2c67ad(0x21e)],_0x16be9f[_0x2c67ad(0x160)]),_0x37e65d=_0x4a82da['getShapeDataById'](_0x16be9f[_0x2c67ad(0x383)],_0x16be9f[_0x2c67ad(0x21e)],_0x16be9f[_0x2c67ad(0x160)]);return _0x169f5f===void 0x0||!_0x37e65d?null:{'drawing':_0x16be9f,'shapeData':_0x37e65d,'shapeType':_0x169f5f};}const Pr={'id':_0x2b58b8(0x1c7),'type':_0x1d6912[_0x2b58b8(0x27e)],'handler':(_0x4dd916,_0x1217e7)=>{const _0x35a749=_0x2b58b8;let _0x526900=Nr(_0x4dd916),_0x4681e1=_0x1a66ee((_0x1217e7==null?void 0x0:_0x1217e7[_0x35a749(0x131)])??(_0x1217e7==null?void 0x0:_0x1217e7['value'])??'');if(!_0x526900||!_0x4681e1||_0x4681e1[_0x35a749(0x326)]!==_0x42e968(_0x526900[_0x35a749(0x1ae)]))return!0x1;let _0x11e3df=_0x92fd7b(_0x526900[_0x35a749(0x1ae)],_0x4681e1);if(!_0x11e3df)return!0x1;let {drawing:_0x4a5b04}=_0x526900;return _0x4dd916[_0x35a749(0x113)](_0x5f3c0a)['executeCommand'](_0x544402['id'],{'unitId':_0x4a5b04[_0x35a749(0x383)],'shapeId':_0x4a5b04['drawingId'],'shapeData':_0x11e3df,'oldShapeJSON':{'oldShapeData':_0x526900[_0x35a749(0x1ae)]}});}},Fr={'id':_0x2b58b8(0x296),'type':_0x1d6912[_0x2b58b8(0x27e)],'handler':(_0x37d12f,_0x40b1cf)=>{const _0x3156d2=_0x2b58b8;let _0x514da0=Nr(_0x37d12f),_0x259b68=(_0x40b1cf==null?void 0x0:_0x40b1cf[_0x3156d2(0x1d6)])??(_0x40b1cf==null?void 0x0:_0x40b1cf[_0x3156d2(0x1dc)]);if(!_0x514da0||!_0x259b68||_0x3a6b70(_0x514da0[_0x3156d2(0x1d6)])||_0x3a6b70(_0x259b68))return!0x1;let _0x3f91ad=_0x41e0ce(_0x514da0[_0x3156d2(0x1ae)],_0x259b68);if(!_0x3f91ad)return!0x1;let {drawing:_0xda6f5e}=_0x514da0;return _0x37d12f[_0x3156d2(0x113)](_0x5f3c0a)['executeCommand'](_0x544402['id'],{'unitId':_0xda6f5e[_0x3156d2(0x383)],'shapeId':_0xda6f5e[_0x3156d2(0x160)],'shapeType':_0x259b68,'shapeData':_0x3f91ad,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x514da0[_0x3156d2(0x1d6)],'oldShapeData':_0x514da0['shapeData']}});}};function K(_0x468cdc,_0x1a3cce){return function(_0x4cc2da,_0x21e181){_0x1a3cce(_0x4cc2da,_0x21e181,_0x468cdc);};}function q(_0x5b2194,_0x4281c8,_0x36ad47,_0x5d4b4e){const _0x4ec3c4=_0x2b58b8;var _0x4ae443=arguments['length'],_0x2fdcf0=_0x4ae443<0x3?_0x4281c8:_0x5d4b4e===null?_0x5d4b4e=Object[_0x4ec3c4(0x1ed)](_0x4281c8,_0x36ad47):_0x5d4b4e,_0xa62003;if(typeof Reflect=='object'&&typeof Reflect[_0x4ec3c4(0x256)]==_0x4ec3c4(0x195))_0x2fdcf0=Reflect[_0x4ec3c4(0x256)](_0x5b2194,_0x4281c8,_0x36ad47,_0x5d4b4e);else{for(var _0x15f513=_0x5b2194['length']-0x1;_0x15f513>=0x0;_0x15f513--)(_0xa62003=_0x5b2194[_0x15f513])&&(_0x2fdcf0=(_0x4ae443<0x3?_0xa62003(_0x2fdcf0):_0x4ae443>0x3?_0xa62003(_0x4281c8,_0x36ad47,_0x2fdcf0):_0xa62003(_0x4281c8,_0x36ad47))||_0x2fdcf0);}return _0x4ae443>0x3&&_0x2fdcf0&&Object[_0x4ec3c4(0x251)](_0x4281c8,_0x36ad47,_0x2fdcf0),_0x2fdcf0;}let Ir=class extends _0x587b62{constructor(_0x90164a,_0x59f8b0){const _0x34b91f=_0x2b58b8;super(),this[_0x34b91f(0x16d)]=_0x90164a,this[_0x34b91f(0x324)]=_0x59f8b0,this['_registerImageShapeClipDelegate'](),this[_0x34b91f(0x16d)][_0x34b91f(0x19a)](!0x0),this[_0x34b91f(0x32d)]({'dispose':()=>this[_0x34b91f(0x16d)][_0x34b91f(0x19a)](!0x1)});}[_0x2b58b8(0x24a)](){const _0x52582b=_0x2b58b8;let _0x1cefb9=new Map(),_0x19ace3=this[_0x52582b(0x16d)]['registerClipDelegate']((_0x35c704,_0x556a94,_0x596bd7,_0x29282b,_0x3a81e1)=>{const _0x198561=_0x52582b;let _0xbbe077=_0x556a94;if(_0xbbe077===_0x32c60e[_0x198561(0x119)]||_0x556a94===_0x198561(0x2b4))return!0x1;try{let _0x37b6aa=_0x1cefb9[_0x198561(0x113)](_0x556a94);return _0x37b6aa||(_0x37b6aa=new _0x211894(_0xbbe077,_0x198561(0x245)+_0x556a94),_0x1cefb9[_0x198561(0x1dd)](_0x556a94,_0x37b6aa)),_0x37b6aa[_0x198561(0x31e)](),_0x3a81e1&&Object['keys'](_0x3a81e1)[_0x198561(0x364)]>0x0&&_0x37b6aa[_0x198561(0x1c2)]({'adjustValues':_0x3a81e1},!0x0),_0x37b6aa[_0x198561(0x1f8)]({'width':_0x596bd7,'height':_0x29282b}),_0x37b6aa[_0x198561(0x33b)](_0x35c704,{'left':0x0,'top':0x0,'width':_0x596bd7,'height':_0x29282b});}catch{return!0x1;}});this[_0x52582b(0x32d)](_0x19ace3),this[_0x52582b(0x32d)]({'dispose':()=>_0x1cefb9[_0x52582b(0x1e6)]()});}['clipByShape'](_0x569d57,_0x392185,_0x52605a,_0x42a169,_0x40daab){const _0x22db48=_0x2b58b8;let _0x3d76ac=this[_0x22db48(0x324)][_0x22db48(0x213)](_0x569d57,_0x392185)[_0x52605a];_0x3d76ac&&_0x3d76ac['drawingType']===_0x11efaa['DRAWING_IMAGE']&&this[_0x22db48(0x324)][_0x22db48(0x18a)]([{..._0x3d76ac,'prstGeom':_0x42a169,'adjustValues':_0x40daab}]);}};Ir=q([K(0x0,_0xbdb0e2(_0x20d505)),K(0x1,_0xbdb0e2(_0x1f1d2f))],Ir);const Lr='doc.shape.picker.component',Rr='doc.image-clip.shape-picker.component';function zr({onShapeClick:_0x1ff170,excludeGroups:_0x17de3e}){const _0x3737de=_0x2b58b8;return _0x9daf1d(_0x4d11e9,{'excludeGroups':_0x17de3e,'onShapeClick':_0x1ff170,'scrollContainer':_0x3737de(0x227)});}function Br(){let _0x59f1c5=_0x16858b(_0x1f1d2f),_0x15992c=_0x16858b(Ir);return _0x590fe7=>{const _0x4bb1e2=_0x73b8;let _0x22a186=_0x59f1c5[_0x4bb1e2(0x262)]()[_0x4bb1e2(0x30b)](_0xc87c72=>_0xc87c72['drawingType']===_0x11efaa[_0x4bb1e2(0x22e)]);_0x22a186&&_0x15992c[_0x4bb1e2(0x265)](_0x22a186[_0x4bb1e2(0x383)],_0x22a186[_0x4bb1e2(0x21e)],_0x22a186[_0x4bb1e2(0x160)],_0x590fe7[_0x4bb1e2(0x326)]);};}function Vr(){const _0x1bf7a3=_0x2b58b8;let _0x5762f5=Br();return _0x9daf1d(_0x43ddc3,{'buttonLabel':_0x1bf7a3(0x307),'excludeGroups':[_0x1aea6e[_0x1bf7a3(0x32e)]],'onShapeClick':_0x5762f5});}function Hr(){const _0x117a27=_0x2b58b8;let _0x2ebce8=_0x16858b(_0x391057),_0x1591a9=_0x16858b(_0x1f1d2f),_0x250366=_0x16858b(_0x52a285),_0xd2fcae=_0x1591a9[_0x117a27(0x262)]()[0x0],_0x40f7bc=_0xd2fcae?_0x250366[_0x117a27(0x1b5)](_0xd2fcae[_0x117a27(0x383)]):void 0x0,_0x1f68f9=_0x40f7bc===_0x19a5e9[_0x117a27(0x234)]?Rr:_0x40f7bc===_0x19a5e9[_0x117a27(0x28c)]?_0x117a27(0x25b):void 0x0,_0x497fab=_0x1f68f9?_0x2ebce8[_0x117a27(0x113)](_0x1f68f9):void 0x0;return _0x497fab?_0x9daf1d(_0x497fab,{}):null;}function Ur({paragraphMenuPlacement:_0x313d48,PickerComponent:_0x3ce292=zr}){let _0xa31034=_0x16858b(_0x5f3c0a);return _0x9daf1d(_0x3ce292,{'onShapeClick':_0x377c7d=>{const _0x17656a=_0x73b8;_0xa31034[_0x17656a(0x362)](U['id'],{'paragraphMenuPlacement':_0x313d48,'value':_0x377c7d['type'],'enhanceParams':{'endArrow':_0x377c7d[_0x17656a(0x340)],'startArrow':_0x377c7d[_0x17656a(0x360)],'horizontal':_0x377c7d[_0x17656a(0x345)],'vertical':_0x377c7d[_0x17656a(0x2e7)]}});}});}function Wr(_0x1227a6){const _0x3e107d=_0x2b58b8;return _0x1b73dc=>({'id':U['id'],'type':_0x56fa91['SELECTOR'],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x1227a6?{'id':U['id'],'paragraphMenuPlacement':_0x1227a6}:{'id':U['id']}}}],'icon':'ShapeIcon','title':'docs-shape-ui.insertShape','tooltip':_0x3e107d(0x11e),'hidden$':_0x26c4d6(_0x1b73dc,_0x19a5e9[_0x3e107d(0x234)])});}const Gr=Wr(),Kr=Wr(_0x2b58b8(0x21d)),qr=Wr('target');function Jr(_0x52f6bf){const _0x31474f=_0x2b58b8;return{'id':Mr['id'],'type':_0x56fa91[_0x31474f(0x280)],'icon':_0x31474f(0x278),'title':_0x31474f(0x2b7),'tooltip':_0x31474f(0x2b7),'hidden$':_0x26c4d6(_0x52f6bf,_0x19a5e9['UNIVER_DOC'])};}function Yr(_0x268ac4,_0x2f6f55,_0x40dc72,_0x423572,_0x536099,_0x4fb03b){const _0x2e8782=_0x2b58b8;let _0x1f090a={'unitId':_0x2f6f55,'shapeId':_0x423572,'shapeData':_0x4fb03b,'oldShapeJSON':_0x536099};return _0x268ac4[_0x2e8782(0x362)](_0x544402['id'],_0x1f090a);}function Xr(_0x599ccf,_0x25e856,_0x28d66f,_0x45e26a,_0x491dbb,_0x3648a4){let _0x5d37fe={'unitId':_0x25e856,'shapeId':_0x45e26a,'shapeData':_0x3648a4,'oldShapeJSON':_0x491dbb};return _0x599ccf['executeCommand'](_0x544402['id'],_0x5d37fe);}const Zr=_0x2b58b8(0x2ae),Qr=_0x2b58b8(0x2fb),$r=_0x2b58b8(0x257),ei='docs-shape-ui.shape-format.formula-ribbon-control',ti=_0x2b58b8(0x2ea),ni=[{'value':_0x31600f[_0x2b58b8(0x1db)],'label':_0x2b58b8(0x379),'icon':_0x2b58b8(0x14b)},{'value':_0x31600f['WRAP_SQUARE'],'label':'docs-shape-ui.textWrap.square','icon':_0x2b58b8(0x192)},{'value':_0x31600f['WRAP_TOP_AND_BOTTOM'],'label':_0x2b58b8(0x31d),'icon':_0x2b58b8(0x36a)},{'value':_0x31600f['BEHIND_TEXT'],'label':_0x2b58b8(0x28e),'icon':_0x2b58b8(0x2ed)},{'value':_0x31600f[_0x2b58b8(0x28f)],'label':_0x2b58b8(0x32a),'icon':_0x2b58b8(0x374)}];function ri(){let _0x299f86=_0x16858b(_0x5f3c0a),_0x4a6b63=_0x16858b(_0x1f1d2f),_0x3b909a=_0x16858b(_0xc58a76),_0x4ab3a6=()=>{const _0x29cf9f=_0x73b8;var _0x2a865f;let _0x4b1459=_0x4a6b63[_0x29cf9f(0x262)]();if(_0x4b1459[_0x29cf9f(0x364)]!==0x1||((_0x2a865f=_0x4b1459[0x0])==null?void 0x0:_0x2a865f[_0x29cf9f(0x142)])!==_0x11efaa[_0x29cf9f(0x14f)])return null;let {unitId:_0x3a631c,subUnitId:_0x53856a,drawingId:_0x3251b6}=_0x4b1459[0x0],_0x311f1a=_0x3b909a['getShapeTypeById'](_0x3a631c,_0x53856a,_0x3251b6),_0x5399f8=_0x3b909a[_0x29cf9f(0x152)](_0x3a631c,_0x53856a,_0x3251b6);return _0x311f1a===void 0x0||!_0x5399f8?null:{'unitId':_0x3a631c,'subUnitId':_0x53856a,'drawingId':_0x3251b6,'shapeType':_0x311f1a,'shapeData':_0x5399f8};},_0x586918=_0x104db2(()=>new _0x15ba3b(_0x2d0ead=>{const _0x40ad0c=_0x73b8;let _0x2f51fe=()=>_0x2d0ead[_0x40ad0c(0x225)](_0x4ab3a6()),_0x33fad5=_0x4a6b63[_0x40ad0c(0x2f3)][_0x40ad0c(0x138)](_0x2f51fe),_0x4b665d=_0x299f86[_0x40ad0c(0x19e)](_0x37a467=>{_0x37a467['id']===_0x3d4cfc['id']&&_0x2f51fe();});return _0x2f51fe(),()=>{const _0x4a938d=_0x40ad0c;_0x33fad5[_0x4a938d(0x1de)](),_0x4b665d['dispose']();};}),_0x4ab3a6(),!0x1,[_0x299f86,_0x3b909a,_0x4a6b63]);return{'selection':_0x586918,'updateShapeData':_0x261aca=>{const _0x345f08=_0x73b8;_0x586918&&Yr(_0x299f86,_0x586918['unitId'],_0x586918[_0x345f08(0x21e)],_0x586918[_0x345f08(0x160)],{'oldShapeData':_0x586918[_0x345f08(0x1ae)]},_0x261aca);}};}function ii(){const _0x184994=_0x2b58b8;let {selection:_0x459657,updateShapeData:_0x5d6b9b}=ri();return _0x459657?_0x9daf1d(_0x5de1c8,{'shapeData':_0x459657[_0x184994(0x1ae)],'shapeType':_0x459657['shapeType'],'onUpdateShapeData':_0x5d6b9b}):null;}function ai(){const _0x11cd8d=_0x2b58b8;let _0x41451c=_0x16858b(_0x5f3c0a),_0x37da9a=_0x16858b(_0x5af3e2),{selection:_0x5c1507}=ri();return _0x5c1507?_0x9daf1d(_0x11cbb8,{'type':_0x42e968(_0x5c1507['shapeData']),'ariaLabel':_0x37da9a['t'](_0x11cd8d(0x17a)),'activePresetId':_0x1547f4(_0x5c1507[_0x11cd8d(0x1ae)]),'onSelect':_0x239c21=>_0x41451c[_0x11cd8d(0x362)](Pr['id'],{'presetId':_0x239c21})}):null;}function oi(){const _0x4d176e=_0x2b58b8;let {selection:_0xa61126,updateShapeData:_0x50bb23}=ri();return _0xa61126?_0x9daf1d(_0x21ece6,{'fontFamilyPopupDataComponent':_0x4d176e(0x201),'shapeData':_0xa61126[_0x4d176e(0x1ae)],'onUpdateShapeData':_0x50bb23}):null;}function si(){const _0x5ab714=_0x2b58b8;var _0x45e70d;let {selection:_0x3e7804,updateShapeData:_0x59d9c2}=ri(),_0x5cbad0=_0x4bb66f({'hostType':_0x19a5e9[_0x5ab714(0x234)],'unitId':(_0x3e7804==null?void 0x0:_0x3e7804['unitId'])??'','subUnitId':(_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x21e)])??'','shapeId':(_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x160)])??'','shapeData':_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x1ae)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x5ab714(0x175),'onUpdateBinding':_0x3de2c6=>_0x59d9c2({'formulaBinding':_0x3de2c6})}),_0x3868ec=((_0x45e70d=_0x5cbad0[_0x5ab714(0x243)])==null?void 0x0:_0x45e70d['flatMap'](_0x3cdab6=>_0x3cdab6['actions'])[_0x5ab714(0x16f)](_0x5124e9=>_0x5124e9[_0x5ab714(0x306)]!==!0x1))??[];return _0x3e7804!=null&&_0x3e7804['shapeData'][_0x5ab714(0x328)]?_0x9daf1d(_0x38d486,{'actions':_0x3868ec,'panel':_0x5cbad0[_0x5ab714(0x169)]}):null;}function ci({value:_0x189cf3}){const _0x1b4f09=_0x2b58b8;let _0x5c2841=_0x16858b(_0x5af3e2),_0x26f7e5=ni[_0x1b4f09(0x30b)](_0x2eeead=>_0x2eeead['value']===_0x189cf3)??ni[0x0];return _0x26f7e5?_0x9daf1d(_0x1b4f09(0x33c),{'children':_0x5c2841['t'](_0x26f7e5[_0x1b4f09(0x17b)])}):null;}const li=_0x2b58b8(0x15c),ui=_0x2b58b8(0x31a),di=_0x2b58b8(0x15a),fi=_0x2b58b8(0x261),pi='docs-shape-ui.ribbon.shape-format.arrange-backward',mi=_0x2b58b8(0x2cc),hi=_0x2b58b8(0x314),gi=_0x2b58b8(0x15e);function _i(_0x2979fc){const _0x3757bc=_0x2b58b8;let _0xffaa0d=_0x2979fc[_0x3757bc(0x113)](_0x5f3c0a),_0x1ee158=_0x2979fc[_0x3757bc(0x113)](_0x1f1d2f),_0x3ebcda=_0x2979fc[_0x3757bc(0x113)](_0xc58a76);return new _0x15ba3b(_0x2d3a18=>{const _0x438f2c=_0x3757bc;let _0xc105a0=()=>{const _0x3d3f3a=_0x73b8;let _0x40085a=vi(_0x2979fc),_0x1f7fec=_0x40085a?_0x3ebcda[_0x3d3f3a(0x152)](_0x40085a[_0x3d3f3a(0x383)],_0x40085a[_0x3d3f3a(0x21e)],_0x40085a[_0x3d3f3a(0x160)]):null;_0x2d3a18[_0x3d3f3a(0x225)](_0x1f7fec?_0x1547f4(_0x1f7fec)??'':'');},_0x17fcab=_0x1ee158[_0x438f2c(0x2f3)][_0x438f2c(0x138)](_0xc105a0),_0x3a1188=_0xffaa0d[_0x438f2c(0x19e)](_0x329f79=>{_0x329f79['id']===_0x3d4cfc['id']&&_0xc105a0();});return _0xc105a0(),()=>{const _0xd23df8=_0x438f2c;_0x17fcab[_0xd23df8(0x1de)](),_0x3a1188['dispose']();};});}function vi(_0x1c765e){const _0x1f3cb0=_0x2b58b8;var _0x299007;let _0x148afd=_0x1c765e[_0x1f3cb0(0x113)](_0x1f1d2f)['getFocusDrawings']();return _0x148afd[_0x1f3cb0(0x364)]===0x1&&((_0x299007=_0x148afd[0x0])==null?void 0x0:_0x299007[_0x1f3cb0(0x142)])===_0x11efaa[_0x1f3cb0(0x14f)]?_0x148afd[0x0]:null;}function yi(_0x215bec){const _0x4c8944=_0x2b58b8;return(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91[_0x4c8944(0x178)]?_0x215bec['behindDoc']===_0x562bb0['TRUE']?_0x31600f['BEHIND_TEXT']:_0x31600f[_0x4c8944(0x28f)]:(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91[_0x4c8944(0x322)]?_0x31600f[_0x4c8944(0x322)]:(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91['WRAP_TOP_AND_BOTTOM']?_0x31600f['WRAP_TOP_AND_BOTTOM']:_0x31600f[_0x4c8944(0x1db)];}function bi(_0x4c7574){const _0x5405d8=_0x2b58b8;let _0x1fb748=_0x4c7574[_0x5405d8(0x113)](_0x5f3c0a),_0x138e86=_0x4c7574['get'](_0x1f1d2f),_0x26d5fa=_0x4c7574[_0x5405d8(0x113)](_0x52a285);return new _0x15ba3b(_0x5a02af=>{const _0x903a63=_0x5405d8;let _0x41c7d4=()=>{const _0x146628=_0x73b8;var _0x172ab6;let _0x3d6d98=vi(_0x4c7574),_0x294ce6=_0x3d6d98?_0x26d5fa['getUnit'](_0x3d6d98[_0x146628(0x383)],_0x19a5e9['UNIVER_DOC']):void 0x0;_0x5a02af[_0x146628(0x225)](yi(_0x3d6d98?_0x294ce6==null||(_0x172ab6=_0x294ce6[_0x146628(0x110)]()[_0x146628(0x1a4)])==null?void 0x0:_0x172ab6[_0x3d6d98[_0x146628(0x160)]]:void 0x0));},_0x11f614=_0x138e86[_0x903a63(0x2f3)]['subscribe'](_0x41c7d4),_0x413f41=_0x1fb748[_0x903a63(0x19e)](_0x33ba9d=>{_0x33ba9d['id']===_0x2dba6b['id']&&_0x41c7d4();});return _0x41c7d4(),()=>{const _0x357e9b=_0x903a63;_0x11f614[_0x357e9b(0x1de)](),_0x413f41['dispose']();};})['pipe'](_0x325f40());}function xi(_0x2cecf9,_0x313a76=!0x1){const _0x576213=_0x2b58b8;let _0x240902=_0x2cecf9[_0x576213(0x113)](_0x5f3c0a),_0x24c33b=_0x2cecf9[_0x576213(0x113)](_0x1f1d2f),_0x372ebb=_0x2cecf9[_0x576213(0x113)](_0xc58a76);return new _0x15ba3b(_0x31f6da=>{const _0x285017=_0x576213;let _0x4aed76=()=>{const _0x5831fd=_0x73b8;let _0x2474b4=vi(_0x2cecf9);if(!_0x2474b4){_0x31f6da[_0x5831fd(0x225)](!0x0);return;}let _0x1203e3=_0x372ebb['getShapeDataById'](_0x2474b4[_0x5831fd(0x383)],_0x2474b4[_0x5831fd(0x21e)],_0x2474b4['drawingId']);_0x31f6da[_0x5831fd(0x225)](!_0x1203e3||_0x313a76&&_0x1203e3[_0x5831fd(0x328)]==null);},_0x47a0a7=_0x24c33b[_0x285017(0x2f3)][_0x285017(0x138)](_0x4aed76),_0x54d454=_0x240902['onCommandExecuted'](_0x15cd30=>{_0x15cd30['id']===_0x3d4cfc['id']&&_0x4aed76();});return _0x4aed76(),()=>{const _0x5d3e29=_0x285017;_0x47a0a7[_0x5d3e29(0x1de)](),_0x54d454[_0x5d3e29(0x12f)]();};});}function Si(_0x2a39a8){const _0x47674c=_0x2b58b8;let _0x5063fd=_0x2a39a8['get'](_0x1f1d2f),_0x11ca84=_0x2a39a8['get'](_0xc58a76);return _0x5063fd[_0x47674c(0x2f3)]['pipe'](_0x19f0b7(_0x5063fd[_0x47674c(0x262)]()),_0x41dd31(()=>{const _0x2c5a67=_0x47674c;let _0x526b36=vi(_0x2a39a8),_0x3d4f4d=_0x526b36?_0x11ca84[_0x2c5a67(0x1ac)](_0x526b36['unitId'],_0x526b36[_0x2c5a67(0x21e)],_0x526b36[_0x2c5a67(0x160)]):void 0x0;return _0x3d4f4d===void 0x0||_0x3a6b70(_0x3d4f4d);}));}function Ci(_0x555136){const _0x36b857=_0x2b58b8;return{'id':Pr['id'],'type':_0x56fa91['SELECTOR'],'icon':_0x36b857(0x1fd),'title':_0x36b857(0x2da),'tooltip':_0x36b857(0x2da),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x555136),'hidden$':xi(_0x555136)};}function wi(_0x2d5cbb){const _0x3c91f2=_0x2b58b8;return{'id':Fr['id'],'type':_0x56fa91[_0x3c91f2(0x285)],'icon':'ShapeIcon','title':_0x3c91f2(0x13f),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x342b81,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x2d5cbb)};}function Ti(_0x16558c,_0x875e74,_0x1e39d8=!0x1){const _0x18b9d3=_0x2b58b8;return _0x34325d=>({'id':_0x16558c,'type':_0x56fa91[_0x18b9d3(0x280)],'label':{'name':_0x875e74,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x34325d,_0x1e39d8)});}const Ei=Ti(li,Qr),Di=Ti(ui,$r),Oi=Ti(di,ei,!0x0);function ki(_0x2e1034){const _0x476dc5=_0x2b58b8;return{'id':gi,'type':_0x56fa91[_0x476dc5(0x285)],'icon':ni[0x0][_0x476dc5(0x1ea)],'label':ti,'selectionsCommandId':_0x210103['id'],'selections':ni[_0x476dc5(0x166)](({icon:_0xb84669,label:_0x1fe12e,value:_0x10d0b3})=>({'value':_0x10d0b3,'label':_0x1fe12e,'icon':_0xb84669,'params':()=>{const _0x1a0485=_0x476dc5;let _0x3c4d24=vi(_0x2e1034);return _0x3c4d24?{'unitId':_0x3c4d24[_0x1a0485(0x383)],'subUnitId':_0x3c4d24[_0x1a0485(0x21e)],'drawings':[{'unitId':_0x3c4d24[_0x1a0485(0x383)],'subUnitId':_0x3c4d24[_0x1a0485(0x21e)],'drawingId':_0x3c4d24[_0x1a0485(0x160)]}],'wrappingStyle':_0x10d0b3}:void 0x0;}})),'value$':bi(_0x2e1034),'hidden$':xi(_0x2e1034)};}function Ai(_0x2d1def,_0x20ac4b,_0x2797f,_0x584037){return _0x340d46=>({'id':_0x2d1def,'commandId':_0x441b4f['id'],'type':_0x56fa91['BUTTON'],'icon':_0x2797f,'title':_0x584037,'tooltip':_0x584037,'hidden$':xi(_0x340d46),'params':()=>{const _0x47372a=_0x73b8;let _0x52609f=vi(_0x340d46);return _0x52609f?{'unitId':_0x52609f[_0x47372a(0x383)],'subUnitId':_0x52609f[_0x47372a(0x21e)],'drawingIds':[_0x52609f[_0x47372a(0x160)]],'arrangeType':_0x20ac4b}:void 0x0;}});}const ji=Ai(fi,_0x3963c4[_0x2b58b8(0x1bc)],_0x2b58b8(0x28b),'shape-editor-ui.arrange.forward'),Mi=Ai(pi,_0x3963c4[_0x2b58b8(0x186)],_0x2b58b8(0x302),_0x2b58b8(0x12b)),Ni=Ai(mi,_0x3963c4[_0x2b58b8(0x1d1)],_0x2b58b8(0x1ba),_0x2b58b8(0x24f)),Pi=Ai(hi,_0x3963c4[_0x2b58b8(0x10c)],_0x2b58b8(0x2a7),_0x2b58b8(0x352));function Fi(_0x3fac19){const _0x674d7a=_0x2b58b8;return{'id':G['id'],'type':_0x56fa91['BUTTON'],'icon':'ShapeFormatSettingIcon','title':_0x674d7a(0x29e),'tooltip':_0x674d7a(0x29e),'hidden$':xi(_0x3fac19),'params':()=>{const _0x37dd57=_0x674d7a;let _0x1f1e03=vi(_0x3fac19);return _0x1f1e03?{'unitId':_0x1f1e03[_0x37dd57(0x383)],'subUnitId':_0x1f1e03[_0x37dd57(0x21e)],'drawingId':_0x1f1e03[_0x37dd57(0x160)]}:void 0x0;}};}const Ii={[_0x23e24a[_0x2b58b8(0x150)]]:{[Dr]:{'order':0x64,'title':'docs-shape-ui.formatShape','contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':ki},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ji},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Mi},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ni},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Pi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Fi},[_0x5bf1e4['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x17729f}}}}},Li={[_0x4dd0cf[_0x2b58b8(0x282)]]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x577281=>({...Gr(_0x577281),'title':void 0x0})}},[_0x4dd0cf[_0x2b58b8(0x2f5)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x519876[_0x2b58b8(0x22c)]]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[_0xcccbbd]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x53ef11]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x3a423f]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x2b37e1]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0x906c27]:{'insert':{[U['id']+'.below']:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Ri=_0x2b58b8(0x1d9),zi=_0x2b58b8(0x15f);const Bi={'type':_0x1d6912[_0x2b58b8(0x27e)],'id':_0x2b58b8(0x1a1),'handler'(){return!0x0;}},Vi='docs-shape-ui.config',Hi={};function Ui(_0x3b9178){'@babel/helpers - typeof';const _0x2c7b46=_0x2b58b8;return Ui=typeof Symbol==_0x2c7b46(0x195)&&typeof Symbol[_0x2c7b46(0x231)]==_0x2c7b46(0x108)?function(_0x39c47d){return typeof _0x39c47d;}:function(_0x2ac11d){const _0x4ca8b3=_0x2c7b46;return _0x2ac11d&&typeof Symbol=='function'&&_0x2ac11d[_0x4ca8b3(0x2b3)]===Symbol&&_0x2ac11d!==Symbol[_0x4ca8b3(0x29b)]?'symbol':typeof _0x2ac11d;},Ui(_0x3b9178);}function Wi(_0x20ca1f,_0x3c378b){const _0x57c17b=_0x2b58b8;if(Ui(_0x20ca1f)!=_0x57c17b(0x19c)||!_0x20ca1f)return _0x20ca1f;var _0x35bb92=_0x20ca1f[Symbol[_0x57c17b(0x250)]];if(_0x35bb92!==void 0x0){var _0x2ec30e=_0x35bb92[_0x57c17b(0x190)](_0x20ca1f,_0x3c378b||_0x57c17b(0x14a));if(Ui(_0x2ec30e)!=_0x57c17b(0x19c))return _0x2ec30e;throw TypeError(_0x57c17b(0x23c));}return(_0x3c378b===_0x57c17b(0x18c)?String:Number)(_0x20ca1f);}function Gi(_0x38a4ca){const _0x1952b5=_0x2b58b8;var _0x5f4440=Wi(_0x38a4ca,_0x1952b5(0x18c));return Ui(_0x5f4440)==_0x1952b5(0x108)?_0x5f4440:_0x5f4440+'';}function J(_0x757c2d,_0x3e2d6f,_0x291de1){const _0x2c035f=_0x2b58b8;return(_0x3e2d6f=Gi(_0x3e2d6f))in _0x757c2d?Object[_0x2c035f(0x251)](_0x757c2d,_0x3e2d6f,{'value':_0x291de1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x757c2d[_0x3e2d6f]=_0x291de1,_0x757c2d;}var Ki=class extends _0x55a1bf{constructor(_0x411342,_0xaf1707){const _0x13f879=_0x2b58b8;super(_0x411342,_0xaf1707),J(this,_0x13f879(0x1f4),null),J(this,'_adjName',null),J(this,_0x13f879(0x30c),null),J(this,_0x13f879(0x37c),null),_0xaf1707&&this['setShapeProps'](_0xaf1707);}[_0x2b58b8(0x197)](){const _0xd6be48=_0x2b58b8;return{'unitId':this['_unitId'],'subUnitId':this[_0xd6be48(0x37c)],'drawingId':this[_0xd6be48(0x1f4)]};}['setShapeProps'](_0x44590f){const _0x16c210=_0x2b58b8;_0x44590f['shapeId']!==void 0x0&&(this[_0x16c210(0x1f4)]=_0x44590f[_0x16c210(0x1a7)]),_0x44590f[_0x16c210(0x2c6)]!==void 0x0&&(this[_0x16c210(0x1e0)]=_0x44590f[_0x16c210(0x2c6)]),_0x44590f[_0x16c210(0x383)]!==void 0x0&&(this[_0x16c210(0x30c)]=_0x44590f['unitId']),_0x44590f[_0x16c210(0x21e)]!==void 0x0&&(this[_0x16c210(0x37c)]=_0x44590f[_0x16c210(0x21e)]),this[_0x16c210(0x370)]({'width':_0x44590f[_0x16c210(0x177)],'height':_0x44590f[_0x16c210(0x174)]});}[_0x2b58b8(0x241)](_0x59c58f){const _0x457fea=_0x2b58b8;_0x20e69b[_0x457fea(0x36f)](_0x59c58f,{'radius':_0xda9354['adjHandleSize'],'fill':_0xda9354[_0x457fea(0x30a)],'stroke':_0xda9354[_0x457fea(0x2de)],'strokeWidth':0x1,'evented':!0x0});}};function qi(_0x280eed,_0x199da6,_0x51280c){const _0x25392e=_0x2b58b8;let _0x34743d={..._0x199da6,'dataModel':{..._0x199da6[_0x25392e(0x25e)]??{},..._0x51280c?{'doc':_0x51280c}:null}},_0x47cf78=_0x1e45b8(_0x280eed,_0x34743d),_0x2e1f0c=_0x46d47a(_0x47cf78);return{'clip':_0x3440f6(_0x47cf78,_0x2e1f0c),'wrapStrategy':_0x2e1f0c};}var Y=class extends _0x55a1bf{constructor(_0x2d219b,_0x809869){const _0x5b8eeb=_0x2b58b8;super(_0x2d219b,_0x809869),J(this,_0x5b8eeb(0x286),[]),J(this,_0x5b8eeb(0x2bd),void 0x0),J(this,_0x5b8eeb(0x23a),new _0x4df99d(()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),J(this,_0x5b8eeb(0x303),!0x0),J(this,'_drawingType',_0x11efaa[_0x5b8eeb(0x14f)]),J(this,_0x5b8eeb(0x2f0),!0x0),this[_0x5b8eeb(0x2bd)]={..._0x809869},this[_0x5b8eeb(0x23a)]['setPresentation'](_0x809869[_0x5b8eeb(0x388)],_0x809869[_0x5b8eeb(0x1a5)]!==!0x1),this['_init'](),this[_0x5b8eeb(0x156)]();}[_0x2b58b8(0x2e1)](){this['onTransformChange$']['subscribeEvent'](_0x3e108c=>{const _0x4b9a70=_0x73b8;this[_0x4b9a70(0x289)](_0x3e108c);});}['setPrstGeom'](_0x39780c){const _0x392051=_0x2b58b8;this[_0x392051(0x2bd)][_0x392051(0x17e)]=_0x39780c;}[_0x2b58b8(0x269)](_0xdc4841){const _0x52e272=_0x2b58b8;if(this[_0x52e272(0x2bd)][_0x52e272(0x317)])return null;let _0x28acc3=this[_0x52e272(0x2d3)](_0xdc4841),{width:_0x330a45,height:_0x8f7a74}=this[_0x52e272(0x330)]();return _0xccb99c(this[_0x52e272(0x286)],{'x':(this[_0x52e272(0x24d)]?-_0x28acc3['x']:_0x28acc3['x'])+_0x330a45/0x2,'y':_0x28acc3['y']+_0x8f7a74/0x2});}['setEditing'](_0x2ea7e9){const _0x250193=_0x2b58b8;this['_props'][_0x250193(0x317)]=_0x2ea7e9,this['makeDirty'](!0x0);}[_0x2b58b8(0x2b5)](_0x15431c,_0x1ec61c=!0x0){const _0x32c67a=_0x2b58b8;this[_0x32c67a(0x23a)][_0x32c67a(0x208)](_0x15431c,_0x1ec61c),this[_0x32c67a(0x2bd)]['formulaPresentation']=_0x15431c,this[_0x32c67a(0x156)](),this[_0x32c67a(0x2ee)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x49d004=_0x2b58b8;let _0x296bf9=this[_0x49d004(0x2bd)]['shapeModel'],_0x23242f=_0x296bf9['getShapeTextData'](),_0x553985=_0x361202(_0x23242f==null?void 0x0:_0x23242f[_0x49d004(0x25e)]),_0x132509=_0x553985==null?void 0x0:_0x553985[_0x49d004(0x36c)],_0x3806e3=this[_0x49d004(0x23a)][_0x49d004(0x19d)]();if(!_0x132509||_0x3806e3[_0x49d004(0x364)]===0x0)return;_0x296bf9[_0x49d004(0x1f8)]({'width':this[_0x49d004(0x177)],'height':this['height']});let _0x41f4f6=_0x57aa48({'documentData':_0x3806e3['map'](_0x39c91f=>_0x5273c3(_0x132509,_0x39c91f)),'height':this[_0x49d004(0x174)],'shapeData':_0x296bf9[_0x49d004(0x170)](),'textRect':_0x296bf9[_0x49d004(0x2b9)]({'left':0x0,'top':0x0,'width':this[_0x49d004(0x177)],'height':this[_0x49d004(0x174)]}),'width':this[_0x49d004(0x177)]});if(_0x41f4f6){var _0x3a3df5;this[_0x49d004(0x146)](_0x41f4f6[_0x49d004(0x177)],_0x41f4f6[_0x49d004(0x174)]),(_0x3a3df5=this['getScene']())==null||(_0x3a3df5=_0x3a3df5[_0x49d004(0x215)]())==null||_0x3a3df5[_0x49d004(0x268)]();}}get[_0x2b58b8(0x383)](){const _0x31f29a=_0x2b58b8;return this[_0x31f29a(0x2bd)][_0x31f29a(0x383)];}get[_0x2b58b8(0x21e)](){const _0x5881c1=_0x2b58b8;return this[_0x5881c1(0x2bd)]['subUnitId'];}[_0x2b58b8(0x289)](_0x12fa19){const _0x20d287=_0x2b58b8;if(this[_0x20d287(0x2bd)][_0x20d287(0x1c1)]==null||!this[_0x20d287(0x303)])return;let {width:_0x4ae5d4,height:_0x3caa04}=this,{width:_0x2ae24f=0x0,height:_0x4249d7=0x0}=_0x12fa19['preValue'],{left:_0x327fe0=0x0,top:_0x4c195a=0x0,right:_0x275b74=0x0,bottom:_0xdcdf83=0x0}=this[_0x20d287(0x2bd)]['srcRect'],_0x1e471e=_0x327fe0,_0x208aef=_0x4c195a,_0x365b19=_0x275b74,_0x1edde3=_0xdcdf83,_0x7fc285=!0x1;if(_0x2ae24f!==0x0&&_0x2ae24f!==_0x4ae5d4){let _0x5398c9=_0x327fe0/_0x2ae24f,_0x6ec884=_0x275b74/_0x2ae24f;_0x1e471e=_0x4ae5d4*_0x5398c9,_0x365b19=_0x4ae5d4*_0x6ec884,_0x7fc285=!0x0;}if(_0x4249d7!==0x0&&_0x4249d7!==_0x3caa04){let _0x407d76=_0x4c195a/_0x4249d7,_0x59cc7d=_0xdcdf83/_0x4249d7;_0x208aef=_0x3caa04*_0x407d76,_0x1edde3=_0x3caa04*_0x59cc7d,_0x7fc285=!0x0;}_0x7fc285&&this[_0x20d287(0x2fa)]({'left':_0x1e471e,'top':_0x208aef,'right':_0x365b19,'bottom':_0x1edde3});}['setSrcRect'](_0x469b48){const _0xdb10c5=_0x2b58b8;this[_0xdb10c5(0x2bd)][_0xdb10c5(0x1c1)]=_0x469b48,this['makeDirty'](!0x0);}[_0x2b58b8(0x293)](_0x46d698){const _0x2641f5=_0x2b58b8;this['_props'][_0x2641f5(0x2e4)]=_0x46d698,this[_0x2641f5(0x2ee)](!0x0);}set[_0x2b58b8(0x277)](_0x460a95){const _0x44012a=_0x2b58b8;this[_0x44012a(0x336)]=_0x460a95;}get[_0x2b58b8(0x277)](){const _0x96f8d2=_0x2b58b8;this['_transform']||this[_0x96f8d2(0x220)]();let _0x36ad64=this[_0x96f8d2(0x336)][_0x96f8d2(0x2a3)]();return this[_0x96f8d2(0x1fc)](_0x36ad64);}get[_0x2b58b8(0x17c)](){const _0x10153b=_0x2b58b8;return this[_0x10153b(0x2bd)][_0x10153b(0x17c)];}get[_0x2b58b8(0x1a7)](){const _0x39c9b5=_0x2b58b8;return this['_props'][_0x39c9b5(0x1a7)];}get[_0x2b58b8(0x223)](){const _0xa3a93c=_0x2b58b8;return _0x585778[_0xa3a93c(0x2ce)];}[_0x2b58b8(0x241)](_0x2acb6b,_0x5444fe,_0x12b136,_0x3c114e){const _0x1c8606=_0x2b58b8;let _0x48ca76=this[_0x1c8606(0x2bd)][_0x1c8606(0x17c)];if(!_0x48ca76||!_0x5444fe)return;let _0xa2f530=_0x12b136??this[_0x1c8606(0x177)],_0x25375d=_0x3c114e??this[_0x1c8606(0x174)],_0x10f2a1={'shapeType':_0x48ca76[_0x1c8606(0x11f)](),'width':_0xa2f530,'height':_0x25375d},_0x1ff0f2={'renderMode':_0x1f70b1[_0x1c8606(0x185)],'oKey':this[_0x1c8606(0x11b)],'image':this[_0x1c8606(0x2bd)][_0x1c8606(0x2e4)],'angle':this[_0x1c8606(0x276)]};_0x48ca76[_0x1c8606(0x1f8)](_0x10f2a1),_0x2acb6b[_0x1c8606(0x1e7)]();let _0x19e978={'top':0x0,'left':0x0,'width':_0xa2f530,'height':_0x25375d},_0x44b5fe=_0x48ca76[_0x1c8606(0x349)](_0x19e978);_0x44b5fe?this[_0x1c8606(0x229)](_0x2acb6b,_0x44b5fe,_0x5ca6f3=>{const _0x5c259d=_0x1c8606;_0x48ca76[_0x5c259d(0x21c)](_0x5ca6f3,_0x19e978,_0x1ff0f2);}):(this[_0x1c8606(0x2d7)](),_0x48ca76[_0x1c8606(0x21c)](_0x2acb6b,_0x19e978,_0x1ff0f2)),_0x2acb6b['restore']();let _0x1982b6=_0x48ca76[_0x1c8606(0x145)](),_0x467e61=_0x48ca76['getShapeTextRect'](_0x19e978),_0xb5e946=_0x48ca76[_0x1c8606(0x2b2)]();if(_0x1982b6&&_0x467e61&&!_0xb5e946){_0x2acb6b[_0x1c8606(0x1e7)](),this[_0x1c8606(0x308)]()[_0x1c8606(0x24d)]&&_0x2acb6b[_0x1c8606(0x1f6)](-0x1,0x1);let _0x411aa9=_0xa2f530/0x2,_0x16f7ba=_0x25375d/0x2;_0x2acb6b[_0x1c8606(0x10f)](-_0x411aa9,-_0x16f7ba),_0x2acb6b[_0x1c8606(0x342)](),this[_0x1c8606(0x1e2)](_0x2acb6b,_0x1982b6,_0x467e61),_0x2acb6b[_0x1c8606(0x375)]();}}[_0x2b58b8(0x1a3)](_0x326a06){}[_0x2b58b8(0x1e2)](_0x244d24,_0x260cff,_0x25c327){const _0x5dac3b=_0x2b58b8;var _0xdf25fa;this[_0x5dac3b(0x286)]=[],!this[_0x5dac3b(0x2bd)][_0x5dac3b(0x317)]&&(!((_0xdf25fa=_0x260cff[_0x5dac3b(0x25e)])!=null&&_0xdf25fa[_0x5dac3b(0x36c)])&&_0x5dac3b(0x2ba)in _0x260cff&&_0x260cff[_0x5dac3b(0x2ba)]===!0x1?this[_0x5dac3b(0x22b)](_0x244d24,_0x260cff,_0x25c327):this[_0x5dac3b(0x16b)](_0x244d24,_0x260cff,_0x25c327));}[_0x2b58b8(0x22b)](_0x56206a,_0x52a0a0,_0x5b16d3){const _0x513ecc=_0x2b58b8;this[_0x513ecc(0x16b)](_0x56206a,{..._0x52a0a0,'text':_0x52a0a0[_0x513ecc(0x10d)]??'','dataModel':{'doc':_0x20f7f3(_0x52a0a0,_0x513ecc(0x210)+this['oKey'])}},_0x5b16d3);}[_0x2b58b8(0x16b)](_0x1ef1e8,_0xccd309,_0x5b8028){const _0x3e9b54=_0x2b58b8;_0x1ecc92(_0x1ef1e8,this[_0x3e9b54(0x23a)],(_0xe58a1b,_0x480082,_0x300b41)=>{const _0x39bf2e=_0x3e9b54;this['_drawRichTextLayer'](_0xe58a1b,_0xccd309,_0x5b8028,_0x480082,_0x300b41===_0x39bf2e(0x194));});}['_drawRichTextLayer'](_0x2336a7,_0xcfd96b,_0x2d5583,_0x12cb18,_0x2a1079){const _0xb64857=_0x2b58b8;let _0x1f50f1=this['_props'][_0xb64857(0x2ad)];if(!_0xcfd96b[_0xb64857(0x25e)]||!_0x1f50f1){_0x1f50f1||console[_0xb64857(0x143)](_0xb64857(0x128));return;}let _0x163060=_0x361202(_0xcfd96b[_0xb64857(0x25e)]);if(!_0x163060)return;let _0x5e0280=_0x163060[_0xb64857(0x36c)];if(!_0x5e0280)return;let _0x14745d=_0x5273c3(_0x5e0280,_0x12cb18),_0x250d64=_0x163060['va']??_0x41d65f[_0xb64857(0x1d2)],_0x4d6d10=_0x163060['ha']??_0x5cdaf0[_0xb64857(0x205)],_0x175e6a=qi(this[_0xb64857(0x2bd)]['shapeModel']['getShapeData'](),_0xcfd96b,_0x14745d),_0x59eb61=_0xcfd96b[_0xb64857(0x20c)],_0x35415f=_0x3b74bd(_0x14745d,{'isHorizontal':_0x59eb61!==!0x1,'textRect':_0x2d5583,'verticalAlign':_0x250d64,'horizontalAlign':_0x4d6d10,'wrapStrategy':_0x175e6a[_0xb64857(0x1b1)]}),_0x1e539c=new _0x4107fb(_0x35415f),_0x29815e=new _0x2f6ee9(_0x1e539c),_0x4220c9=_0x297bbe[_0xb64857(0x1cd)](_0x29815e,_0x1f50f1);_0x4220c9[_0xb64857(0x331)]();let _0x231503=_0x4220c9[_0xb64857(0x133)]()['actualHeight'],_0x535ab1=_0x1e51d4({'contentHeight':_0x231503,'verticalAlign':_0x250d64,'viewportHeight':_0x2d5583[_0xb64857(0x174)]});_0x1e539c[_0xb64857(0x288)]({'pageSize':{'width':_0x59eb61===!0x1?_0x2d5583['height']:_0x2d5583[_0xb64857(0x177)],'height':_0x261110(_0x14745d,_0x535ab1[_0xb64857(0x1be)])}}),_0x1e539c[_0xb64857(0x2c9)]({'t':_0x535ab1[_0xb64857(0x20f)]}),_0x4220c9[_0xb64857(0x331)]();let _0x5e7a10=new _0x501bdc(_0xb64857(0x27b)+this[_0xb64857(0x11b)],_0x4220c9,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xb64857(0x2ee)](!0x0)});_0x5e7a10['resize'](_0x2d5583[_0xb64857(0x177)],_0x535ab1[_0xb64857(0x1be)]),_0x2336a7['save'](),_0x2336a7[_0xb64857(0x2d9)](_0x2d5583['left'],_0x2d5583[_0xb64857(0x12e)]),_0x175e6a['clip']&&(_0x2336a7['beginPath'](),_0x2336a7[_0xb64857(0x34b)](0x0,_0x535ab1[_0xb64857(0x2db)],_0x2d5583[_0xb64857(0x177)],_0x535ab1[_0xb64857(0x372)]),_0x2336a7[_0xb64857(0x1ee)]()),_0x535ab1['contentVerticalOffset']&&_0x2336a7[_0xb64857(0x2d9)](0x0,_0x535ab1[_0xb64857(0x107)]),_0x5e7a10[_0xb64857(0x341)](_0x2336a7),_0x2a1079&&(this['_hyperLinkRegions']=_0x269858(_0x5e7a10,{'left':_0x2d5583[_0xb64857(0x112)],'top':_0x2d5583[_0xb64857(0x12e)]+_0x535ab1[_0xb64857(0x107)]},_0x175e6a['clip']?{'left':_0x2d5583[_0xb64857(0x112)],'right':_0x2d5583[_0xb64857(0x112)]+_0x2d5583[_0xb64857(0x177)],'top':_0x2d5583[_0xb64857(0x12e)]+_0x535ab1[_0xb64857(0x2db)],'bottom':_0x2d5583['top']+_0x535ab1[_0xb64857(0x2db)]+_0x535ab1[_0xb64857(0x372)]}:void 0x0)),_0x2336a7[_0xb64857(0x375)](),_0x5e7a10[_0xb64857(0x12f)](),_0x4220c9[_0xb64857(0x12f)](),_0x29815e[_0xb64857(0x12f)](),_0x1e539c[_0xb64857(0x12f)]();}[_0x2b58b8(0x21c)](_0x2c50fb,_0xb5eec7,_0x16cd02=!0x1){const _0x219b65=_0x2b58b8;if(!this[_0x219b65(0x306)])return this[_0x219b65(0x2ee)](!0x1),this;let {width:_0x44ae79,height:_0x2a5721,left:_0x51cb27,top:_0x573dbd}=this,_0x5404ce=this[_0x219b65(0x330)]();if(_0x44ae79=_0x5404ce[_0x219b65(0x177)],_0x2a5721=_0x5404ce['height'],_0x51cb27=_0x5404ce[_0x219b65(0x112)],_0x573dbd=_0x5404ce[_0x219b65(0x12e)],this['isRender'](_0xb5eec7)){let {top:_0x14d5b2,left:_0x1a0197,bottom:_0x23f800,right:_0x51f7c4}=_0xb5eec7['viewBound'];if(_0x44ae79+this['strokeWidth']+_0x51cb27<_0x1a0197||_0x51f7c4<_0x51cb27||_0x2a5721+this['strokeWidth']+_0x573dbd<_0x14d5b2||_0x23f800<_0x573dbd)return this;}let _0x174e64=_0x51cb27+_0x44ae79/0x2,_0x318648=_0x573dbd+_0x2a5721/0x2,_0x8dffb9=this[_0x219b65(0x277)][_0x219b65(0x116)]();if(this['_props'][_0x219b65(0x317)]){let _0x2db6d4=this[_0x219b65(0x308)](),_0x2a0d3f=new _0x4b5d71();_0x2a0d3f[_0x219b65(0x196)]({..._0x2db6d4}),_0x8dffb9=_0x2a0d3f[_0x219b65(0x116)]();}return _0x2c50fb[_0x219b65(0x1e7)](),this[_0x219b65(0x2bd)][_0x219b65(0x17c)][_0x219b65(0x105)]===!0x0||_0x2c50fb[_0x219b65(0x277)](_0x8dffb9[0x0],_0x8dffb9[0x1],_0x8dffb9[0x2],_0x8dffb9[0x3],_0x174e64,_0x318648),this['_draw'](_0x2c50fb,_0xb5eec7,_0x44ae79,_0x2a5721),_0x2c50fb['restore'](),this[_0x219b65(0x2ee)](!0x1),this;}['getInverseCoord'](_0x21ea2a){const _0x372889=_0x2b58b8;let {left:_0x52c66f,top:_0x3a81bf,width:_0x342608,height:_0x53c9a7}=this[_0x372889(0x330)](),_0x3b0bdb=this[_0x372889(0x277)]['getMatrix'](),_0x5a9a63=_0x52c66f+_0x342608/0x2,_0x31cb53=_0x3a81bf+_0x53c9a7/0x2,_0x68a663=new _0x4b5d71([_0x3b0bdb[0x0],_0x3b0bdb[0x1],_0x3b0bdb[0x2],_0x3b0bdb[0x3],_0x5a9a63,_0x31cb53]),_0x1ebe17=this[_0x372889(0x1d8)]();return(this[_0x372889(0x14e)]&&(_0x1ebe17==null?void 0x0:_0x1ebe17[_0x372889(0x223)])===_0x585778['GROUP']?_0x1ebe17[_0x372889(0x19f)]['multiply'](_0x68a663):_0x68a663)[_0x372889(0x153)]()[_0x372889(0x2fd)](_0x21ea2a);}[_0x2b58b8(0x299)](_0x5824c3){const _0x2b6759=_0x2b58b8;let {left:_0x5e4df4,top:_0x4494f9,width:_0x3fa643,height:_0x2c0364}=this['getRealBound'](),_0x265c36=_0x5e4df4+_0x3fa643/0x2,_0x4c0a0f=_0x4494f9+_0x2c0364/0x2,_0x1e7949=this[_0x2b6759(0x277)][_0x2b6759(0x116)](),_0x44403e=new _0x4b5d71([_0x1e7949[0x0],_0x1e7949[0x1],_0x1e7949[0x2],_0x1e7949[0x3],_0x265c36,_0x4c0a0f]),_0x2f3fe5=this['getParent'](),_0x1f0780=(this['isInGroup']&&(_0x2f3fe5==null?void 0x0:_0x2f3fe5[_0x2b6759(0x223)])===_0x585778['GROUP']?_0x2f3fe5[_0x2b6759(0x19f)][_0x2b6759(0x182)](_0x44403e):_0x44403e)[_0x2b6759(0x153)]()[_0x2b6759(0x2fd)](_0x5824c3),_0x4a6254=_0x3fa643/0x2,_0x2ec4b7=_0x2c0364/0x2,_0x66c889=this['_props']['shapeModel'];return _0x66c889&&_0x66c889[_0x2b6759(0x2b2)]()?_0x66c889['isHitLine'](_0x1f0780['x'],_0x1f0780['y'],_0x3fa643,_0x2c0364):_0x1f0780['x']>=-_0x4a6254-this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['x']<=_0x4a6254+this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['y']>=-_0x2ec4b7-this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['y']<=_0x2ec4b7+this['strokeWidth']/0x2;}['dispose'](){const _0x3942d3=_0x2b58b8;this['_formulaAnimation']['dispose'](),this['_props'][_0x3942d3(0x17c)]=null,super[_0x3942d3(0x12f)]();}};let Ji=class extends _0x587b62{constructor(_0x8f166d,_0x2d5812,_0x1319a1,_0x12bb1a){const _0x2066d6=_0x2b58b8;super(),this[_0x2066d6(0x37f)]=_0x8f166d,this[_0x2066d6(0x324)]=_0x2d5812,this['_docsShapeService']=_0x1319a1,this[_0x2066d6(0x34d)]=_0x12bb1a,J(this,'_activeShapeId',null),J(this,_0x2066d6(0x30c),null),J(this,_0x2066d6(0x37c),null),J(this,_0x2066d6(0x387),void 0x0),J(this,_0x2066d6(0x33a),[]),J(this,_0x2066d6(0x28a),0x0),J(this,_0x2066d6(0x147),0x0),J(this,'_baseShapeWidth',0x0),J(this,_0x2066d6(0x206),0x0),J(this,_0x2066d6(0x126),!0x1),J(this,'_isShouldShowDrawingShapeAdjust',!0x1),J(this,_0x2066d6(0x351),void 0x0),J(this,_0x2066d6(0x2dd),void 0x0),J(this,_0x2066d6(0x2aa),void 0x0),J(this,_0x2066d6(0x198),void 0x0),this[_0x2066d6(0x12c)](),this[_0x2066d6(0x2fe)]();}[_0x2b58b8(0x1d7)](){const _0x21d77c=_0x2b58b8;this[_0x21d77c(0x2cd)]();}['refreshAdjustControls'](){const _0x1c8e46=_0x2b58b8;this[_0x1c8e46(0x26c)](!0x0);}['_getShapeAdjustPointListById'](_0x1d6529,_0x12d8e1,_0x55d1a8){const _0x2b7275=_0x2b58b8;var _0x256c00;return(_0x256c00=this['_docsShapeService'][_0x2b7275(0x348)](_0x1d6529,_0x12d8e1,_0x55d1a8))==null?void 0x0:_0x256c00[_0x2b7275(0x1a3)]();}[_0x2b58b8(0x1bd)](_0x31664c,_0xcf64ac,_0x44ed60,_0x7f725f){const _0x1a80a5=_0x2b58b8;var _0x1cb3e9;return(_0x1cb3e9=this[_0x1a80a5(0x33f)][_0x1a80a5(0x348)](_0x31664c,_0xcf64ac,_0x44ed60))==null?void 0x0:_0x1cb3e9['getAdjustInfoByName'](_0x7f725f);}[_0x2b58b8(0x384)](){const _0x311690=_0x2b58b8;return this['_unitId']===null||this['_subUnitId']===null||this[_0x311690(0x1b9)]===null?null:this[_0x311690(0x324)]['getDrawingByParam']({'unitId':this[_0x311690(0x30c)],'subUnitId':this[_0x311690(0x37c)],'drawingId':this[_0x311690(0x1b9)]})??null;}[_0x2b58b8(0x36e)](_0x3ea397){const _0x18cb47=_0x2b58b8;if(this[_0x18cb47(0x30c)]===null||this[_0x18cb47(0x37c)]===null||this[_0x18cb47(0x1b9)]===null)return null;let _0x1057e9=_0x3ac7e0({'unitId':this['_unitId'],'subUnitId':this[_0x18cb47(0x37c)],'drawingId':this[_0x18cb47(0x1b9)]}),_0xce073a=_0x3ea397[_0x18cb47(0x202)](_0x1057e9);return _0xce073a instanceof Y?_0xce073a:null;}[_0x2b58b8(0x2a8)](_0x263769=!0x1){const _0x38263b=_0x2b58b8;if(this[_0x38263b(0x30c)]===null||this[_0x38263b(0x37c)]===null||this[_0x38263b(0x1b9)]===null)return;let _0x556d72=this[_0x38263b(0x384)]();if((_0x556d72==null?void 0x0:_0x556d72[_0x38263b(0x142)])!==_0x11efaa[_0x38263b(0x14f)]||!_0x556d72[_0x38263b(0x277)])return;let _0x210d23=this['_docsShapeService'][_0x38263b(0x348)](this[_0x38263b(0x30c)],this[_0x38263b(0x37c)],this['_activeShapeId']);if(!_0x210d23||_0x210d23[_0x38263b(0x2b2)]())return;let {left:_0xabf71f=0x0,top:_0x11fa0b=0x0,width:_0x355cea=0x0,height:_0x1bb0f2=0x0,flipX:_0x297355,flipY:_0x5ccaa8,angle:_0x5a9f40=0x0}=_0x556d72[_0x38263b(0x277)];(_0x263769||!this[_0x38263b(0x387)])&&(_0x210d23[_0x38263b(0x1f8)]({'width':_0x355cea,'height':_0x1bb0f2}),this['_activeShapeAdjustPointList']=_0x210d23[_0x38263b(0x1a3)]());let _0x47e303=this[_0x38263b(0x387)];if(!(_0x47e303!=null&&_0x47e303[_0x38263b(0x364)]))return;let {scene:_0x48f1c7}=this[_0x38263b(0x37f)];for(let _0x565f13 of _0x47e303){let _0x470662=this[_0x38263b(0x2bc)](_0x565f13,_0x355cea,_0x1bb0f2,!!_0x297355,!!_0x5ccaa8,_0x5a9f40);this[_0x38263b(0x318)](_0x48f1c7,_0x470662,_0x470662[_0x38263b(0x2c6)],_0xabf71f,_0x11fa0b,this['_unitId'],this[_0x38263b(0x37c)]);}}[_0x2b58b8(0x2bc)](_0x4ace78,_0x10c0ac,_0x5eedb6,_0x59c664,_0x865ce4,_0x5ce92e){const _0x8f80c9=_0x2b58b8;let _0x140fd9=_0x4ace78['x'],_0x52c480=_0x4ace78['y'];if(_0x59c664&&(_0x140fd9=_0x10c0ac-_0x140fd9),_0x865ce4&&(_0x52c480=_0x5eedb6-_0x52c480),_0x5ce92e!==0x0){let _0x2e8f7c=_0x10c0ac/0x2,_0x539109=_0x5eedb6/0x2,_0x5e7b6c=_0x5ce92e*Math['PI']/0xb4,_0xec0a3=Math[_0x8f80c9(0x1f2)](_0x5e7b6c),_0x57004c=Math[_0x8f80c9(0x2cf)](_0x5e7b6c),_0x4d5c77=_0x140fd9-_0x2e8f7c,_0x281f69=_0x52c480-_0x539109;_0x140fd9=_0x2e8f7c+(_0x4d5c77*_0xec0a3-_0x281f69*_0x57004c),_0x52c480=_0x539109+(_0x4d5c77*_0x57004c+_0x281f69*_0xec0a3);}return{'x':_0x140fd9,'y':_0x52c480,'adjName':_0x4ace78['adjName']};}[_0x2b58b8(0x26c)](_0x1487e9=!0x1){const _0x1ce24e=_0x2b58b8;_0x1487e9&&this[_0x1ce24e(0x2cd)](),this[_0x1ce24e(0x2a8)](_0x1487e9);}[_0x2b58b8(0x318)](_0x48fb63,_0x17ce2a,_0x2a7d19,_0x3a343d,_0x5771ff,_0x35e9d7,_0x2487ae){const _0x966ce3=_0x2b58b8;if(!this[_0x966ce3(0x1b9)])return;let _0x12815d=_0x966ce3(0x378)+this['_activeShapeId']+'-'+_0x2a7d19,_0x102cf4=_0x48fb63[_0x966ce3(0x202)](_0x12815d);if(_0x102cf4){_0x102cf4['transformByState']({'left':_0x17ce2a['x']+_0x3a343d-_0xda9354['adjHandleSize'],'top':_0x17ce2a['y']+_0x5771ff-_0xda9354['adjHandleSize']}),_0x102cf4['makeDirty'](!0x0);return;}let _0x581167=new Ki(_0x12815d,{'left':_0x17ce2a['x']+_0x3a343d-_0xda9354['adjHandleSize'],'top':_0x17ce2a['y']+_0x5771ff-_0xda9354[_0x966ce3(0x14d)],'adjName':_0x2a7d19,'shapeId':this['_activeShapeId'],'unitId':_0x35e9d7,'subUnitId':_0x2487ae,'width':_0xda9354[_0x966ce3(0x14d)]+0x8,'height':_0xda9354['adjHandleSize']+0x8,'zIndex':_0x59670b+0x1,'evented':!0x0});this['_adjustPointObjects']['push'](_0x581167),this[_0x966ce3(0x30d)](_0x581167,_0x48fb63,_0x2a7d19),_0x48fb63[_0x966ce3(0x386)](_0x581167,_0x59670b+0x1);}[_0x2b58b8(0x2cd)](){const _0x4d6386=_0x2b58b8;this['_adjustPointObjects'][_0x4d6386(0x30e)](_0x30e0c8=>_0x30e0c8[_0x4d6386(0x12f)]()),this[_0x4d6386(0x33a)]=[];}['_updateAdjustControlPositions'](){const _0x49a7b9=_0x2b58b8;this[_0x49a7b9(0x2a8)]();}[_0x2b58b8(0x140)](_0x1a3194,_0x4bcfed,_0x23ae0f){const _0x26c20c=_0x2b58b8;let _0x444d74=_0xd9a358['FromArray']([_0x4bcfed,_0x23ae0f]),_0xa4d856=_0x1a3194['getActiveViewportByCoord'](_0x444d74)??_0x1a3194[_0x26c20c(0x221)]()[0x0];return(_0xa4d856==null?void 0x0:_0xa4d856['transformVector2SceneCoord'](_0x444d74))??_0x444d74;}[_0x2b58b8(0x30d)](_0x4722b3,_0x467cb6,_0x27ba1d){const _0x48a438=_0x2b58b8;this['disposeWithMe'](_0x390b1(_0x4722b3[_0x48a438(0x353)][_0x48a438(0x321)]((_0x99148b,_0x1a6785)=>{const _0x34ba63=_0x48a438;var _0x2e06bc;let _0x3cd680=_0x4722b3['getDrawingSearch']();this[_0x34ba63(0x351)]=this[_0x34ba63(0x1bd)](_0x3cd680[_0x34ba63(0x383)],_0x3cd680[_0x34ba63(0x21e)],_0x3cd680[_0x34ba63(0x160)],_0x27ba1d),this[_0x34ba63(0x2dd)]=this[_0x34ba63(0x33f)]['getShapeModel'](_0x3cd680[_0x34ba63(0x383)],_0x3cd680['subUnitId'],_0x3cd680[_0x34ba63(0x160)]);let _0x286b2d=this[_0x34ba63(0x384)](),_0x702fa8=_0x286b2d==null?void 0x0:_0x286b2d['transform'];if(!_0x286b2d||!_0x702fa8||!this[_0x34ba63(0x2dd)])return;this[_0x34ba63(0x28a)]=_0x702fa8[_0x34ba63(0x112)]||0x0,this[_0x34ba63(0x147)]=_0x702fa8[_0x34ba63(0x12e)]||0x0,this[_0x34ba63(0x32f)]=_0x702fa8['width']||0x0,this['_baseShapeHeight']=_0x702fa8[_0x34ba63(0x174)]||0x0;let _0x352b3c=!!_0x702fa8[_0x34ba63(0x24d)],_0x1d99aa=!!_0x702fa8[_0x34ba63(0x18e)],_0x529684=_0x702fa8[_0x34ba63(0x276)]||0x0,_0x259bcb={...((_0x2e06bc=this[_0x34ba63(0x351)])==null?void 0x0:_0x2e06bc['currentAdjustValues'])??{}};this['_isStartAdjusting']=!0x0,_0x467cb6[_0x34ba63(0x189)](),this['_adjHandlerPointerMove']=_0x467cb6[_0x34ba63(0x20e)][_0x34ba63(0x321)]((_0x7f0e06,_0x53c067)=>{const _0x12a393=_0x34ba63;var _0x178014;if(!this[_0x12a393(0x126)]||!this[_0x12a393(0x2dd)]||!this[_0x12a393(0x351)])return;_0x467cb6[_0x12a393(0x189)](),_0x467cb6[_0x12a393(0x382)](_0x5c1434[_0x12a393(0x31c)]);let _0x4e9b53=this[_0x12a393(0x140)](_0x467cb6,_0x7f0e06[_0x12a393(0x137)],_0x7f0e06['offsetY']),_0x2ca111=_0x4e9b53['x']-this['_baseShapeLeft'],_0x14f89e=_0x4e9b53['y']-this['_baseShapeTop'];if(_0x529684!==0x0){let _0xee0f7c=this['_baseShapeWidth']/0x2,_0x325245=this[_0x12a393(0x206)]/0x2,_0x13a132=_0x529684*Math['PI']/0xb4,_0x17d43b=Math['cos'](_0x13a132),_0x1c7d3f=Math[_0x12a393(0x2cf)](_0x13a132),_0x132ceb=_0x2ca111-_0xee0f7c,_0x3ac161=_0x14f89e-_0x325245;_0x2ca111=_0xee0f7c+(_0x132ceb*_0x17d43b+_0x3ac161*_0x1c7d3f),_0x14f89e=_0x325245+(-_0x132ceb*_0x1c7d3f+_0x3ac161*_0x17d43b);}_0x352b3c&&(_0x2ca111=this['_baseShapeWidth']-_0x2ca111),_0x1d99aa&&(_0x14f89e=this[_0x12a393(0x206)]-_0x14f89e);let _0x1d2625={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x12a393(0x206)]},_0x5571e9=this[_0x12a393(0x2dd)][_0x12a393(0x2d8)](_0x1d2625,{'x':_0x2ca111,'y':_0x14f89e},this[_0x12a393(0x351)],_0x352b3c,_0x1d99aa);if(Object['keys'](_0x5571e9)['length']!==0x0){for(let [_0x47bd83,_0x22f683]of Object[_0x12a393(0x125)](_0x5571e9))this[_0x12a393(0x2dd)][_0x12a393(0x1bf)](_0x47bd83,_0x22f683);this[_0x12a393(0x2dd)][_0x12a393(0x1f8)]({'width':this[_0x12a393(0x32f)],'height':this['_baseShapeHeight']}),(_0x178014=this[_0x12a393(0x36e)](_0x467cb6))==null||_0x178014[_0x12a393(0x2ee)](!0x0),this[_0x12a393(0x387)]=this['_getShapeAdjustPointListById'](_0x3cd680[_0x12a393(0x383)],_0x3cd680['subUnitId'],_0x3cd680['drawingId']),this[_0x12a393(0x134)](),_0x53c067[_0x12a393(0x158)]();}}),this[_0x34ba63(0x198)]=_0x467cb6['onPointerUp$']['subscribeEvent']((_0x27d032,_0xce1d16)=>{const _0x237715=_0x34ba63;var _0x3d913c,_0x1576b3;(_0x3d913c=this[_0x237715(0x2aa)])==null||_0x3d913c[_0x237715(0x1de)](),(_0x1576b3=this[_0x237715(0x198)])==null||_0x1576b3['unsubscribe'](),_0x467cb6['resetCursor']();let _0x2a538f=this[_0x237715(0x351)];if(_0x2a538f&&this['_activeShapeModel']){let _0x2aad20={};for(let _0x3d0390 of Object['keys'](_0x2a538f[_0x237715(0x209)])){let _0x32a1aa=this[_0x237715(0x2dd)][_0x237715(0x31f)](_0x3d0390);_0x32a1aa!==void 0x0&&(_0x2aad20[_0x3d0390]=_0x32a1aa);}Object[_0x237715(0x279)](_0x2aad20)[_0x237715(0x364)]>0x0&&Yr(this['_commandService'],_0x3cd680[_0x237715(0x383)],_0x3cd680[_0x237715(0x21e)],_0x3cd680[_0x237715(0x160)],{'oldShapeData':{'adjustValues':_0x259bcb}},{'adjustValues':_0x2aad20});}this['_activeAdjustInfo']=void 0x0,this[_0x237715(0x2dd)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x467cb6[_0x237715(0x291)](),_0xce1d16[_0x237715(0x158)]();}),_0x1a6785[_0x34ba63(0x158)]();})));}[_0x2b58b8(0x2fe)](){const _0x1c0219=_0x2b58b8;let {scene:_0x5a2c1d}=this[_0x1c0219(0x37f)],_0x462800=_0x5a2c1d[_0x1c0219(0x319)]();this[_0x1c0219(0x32d)](_0x462800[_0x1c0219(0x2dc)]['subscribe'](_0x55d30f=>{const _0x137ae=_0x1c0219;this[_0x137ae(0x2a8)](),_0x55d30f[_0x137ae(0x344)]!==null&&_0x55d30f['objects'][_0x137ae(0x25f)]===0x1&&_0x55d30f[_0x137ae(0x344)][_0x137ae(0x199)]()['next']()[_0x137ae(0x1dc)]instanceof Y&&(this[_0x137ae(0x32c)]=!0x0);})),this[_0x1c0219(0x32d)](_0x462800['changing$'][_0x1c0219(0x138)](()=>{const _0x104274=_0x1c0219;this[_0x104274(0x32c)]&&this[_0x104274(0x2cd)]();})),this[_0x1c0219(0x32d)](_0x5a2c1d[_0x1c0219(0x20a)][_0x1c0219(0x321)](()=>{const _0x2eda05=_0x1c0219;this[_0x2eda05(0x32c)]&&(this[_0x2eda05(0x32c)]=!0x1,this[_0x2eda05(0x2a8)]());})),this[_0x1c0219(0x32d)](_0x462800[_0x1c0219(0x356)][_0x1c0219(0x138)](()=>{const _0x5b523e=_0x1c0219;this['_unitId']&&this[_0x5b523e(0x37c)]&&this[_0x5b523e(0x1b9)]&&(this[_0x5b523e(0x387)]=this[_0x5b523e(0x187)](this['_unitId'],this[_0x5b523e(0x37c)],this[_0x5b523e(0x1b9)]),this[_0x5b523e(0x134)]());}));}['_registerDrawingFocusChangeHandler'](){const _0x1ab318=_0x2b58b8;this[_0x1ab318(0x32d)](this['_commandService'][_0x1ab318(0x19e)](_0xb4eb8a=>{const _0x2c52db=_0x1ab318;if(_0xb4eb8a['id']!==_0x3d4cfc['id'])return;let {unitId:_0x216300,shapeId:_0x4b8b25}=_0xb4eb8a[_0x2c52db(0x339)];_0x216300===this[_0x2c52db(0x30c)]&&_0x4b8b25===this['_activeShapeId']&&this[_0x2c52db(0x309)]();})),this[_0x1ab318(0x32d)](this[_0x1ab318(0x324)][_0x1ab318(0x2f3)][_0x1ab318(0x138)](_0x27285e=>{const _0x489a1f=_0x1ab318;if(_0x27285e[_0x489a1f(0x364)]===0x1){let _0x185115=_0x27285e[0x0],_0x1333b5=this['_drawingManagerService']['getDrawingByParam'](_0x185115);if((_0x1333b5==null?void 0x0:_0x1333b5[_0x489a1f(0x142)])===_0x11efaa[_0x489a1f(0x14f)]){this[_0x489a1f(0x1b9)]=_0x185115[_0x489a1f(0x160)],this[_0x489a1f(0x30c)]=_0x185115['unitId'],this[_0x489a1f(0x37c)]=_0x185115[_0x489a1f(0x21e)],this[_0x489a1f(0x387)]=this['_getShapeAdjustPointListById'](_0x185115[_0x489a1f(0x383)],_0x185115[_0x489a1f(0x21e)],_0x185115[_0x489a1f(0x160)]),this[_0x489a1f(0x2cd)](),this[_0x489a1f(0x2a8)]();return;}}this[_0x489a1f(0x1b9)]=null,this[_0x489a1f(0x387)]=void 0x0,this[_0x489a1f(0x30c)]=null,this[_0x489a1f(0x37c)]=null,this['_clearShapeAdjustControls']();})),this[_0x1ab318(0x32d)](_0x3f58bc(this[_0x1ab318(0x324)]['update$'],this[_0x1ab318(0x324)][_0x1ab318(0x1b3)])[_0x1ab318(0x138)](_0x231f81=>{const _0x23ff20=_0x1ab318;var _0x50b722;let _0x4170b1=_0x231f81['find'](_0xd66d1=>_0xd66d1[_0x23ff20(0x160)]===this[_0x23ff20(0x1b9)]&&_0xd66d1[_0x23ff20(0x383)]===this['_unitId']&&_0xd66d1[_0x23ff20(0x21e)]===this[_0x23ff20(0x37c)]);_0x4170b1&&((_0x50b722=this[_0x23ff20(0x324)]['getDrawingByParam'](_0x4170b1))==null?void 0x0:_0x50b722[_0x23ff20(0x142)])===_0x11efaa['DRAWING_SHAPE']&&this[_0x23ff20(0x26c)](!0x0);})),this[_0x1ab318(0x32d)](this[_0x1ab318(0x324)][_0x1ab318(0x2f2)][_0x1ab318(0x138)](_0x52c3e3=>{const _0x410136=_0x1ab318;for(let _0x196d09 of _0x52c3e3)this['_activeShapeId']===_0x196d09[_0x410136(0x160)]&&(this[_0x410136(0x1b9)]=null,this[_0x410136(0x387)]=void 0x0,this[_0x410136(0x30c)]=null,this[_0x410136(0x37c)]=null,this[_0x410136(0x2cd)]());}));}};Ji=q([K(0x1,_0x1f1d2f),K(0x2,_0xbdb0e2(_0xc58a76)),K(0x3,_0x5f3c0a)],Ji);let X=class extends _0x587b62{constructor(_0x3189ee,_0x3ebc1f){const _0x372cae=_0x2b58b8;super(),this[_0x372cae(0x121)]=_0x3189ee,this[_0x372cae(0x281)]=_0x3ebc1f,J(this,_0x372cae(0x16c),new _0x4ac5d9(null)),J(this,_0x372cae(0x371),this['_editingParams$'][_0x372cae(0x1f9)]()),J(this,_0x372cae(0x2bb),new _0x4ac5d9(!0x1)),J(this,'onSavingEditorData$',this[_0x372cae(0x2bb)][_0x372cae(0x1f9)]()),J(this,'_completionFrame',void 0x0),this[_0x372cae(0x32d)](this[_0x372cae(0x121)][_0x372cae(0x27f)][_0x372cae(0x138)](()=>{const _0x3f803f=_0x372cae;let _0x1503f0=this[_0x3f803f(0x2c5)]();_0x1503f0!=null&&_0x1503f0[_0x3f803f(0x306)]&&!this[_0x3f803f(0x163)](_0x1503f0)&&this['setEditing'](null);}));}[_0x2b58b8(0x12f)](){const _0x28cd4a=_0x2b58b8;this[_0x28cd4a(0x1af)](),this['_editingParams$'][_0x28cd4a(0x225)](null),this[_0x28cd4a(0x16c)][_0x28cd4a(0x260)](),this[_0x28cd4a(0x2bb)][_0x28cd4a(0x225)](!0x1),this['_onSavingEditorData$'][_0x28cd4a(0x260)](),super['dispose']();}[_0x2b58b8(0x2e8)](_0x4b22ce){const _0x48270f=_0x2b58b8;(_0x4b22ce==null||!_0x4b22ce[_0x48270f(0x306)]||this[_0x48270f(0x163)](_0x4b22ce))&&(this[_0x48270f(0x1af)](),this['_editingParams$'][_0x48270f(0x225)](_0x4b22ce),(_0x4b22ce==null||_0x4b22ce[_0x48270f(0x306)]&&this['_onSavingEditorData$'][_0x48270f(0x347)]())&&this['_onSavingEditorData$'][_0x48270f(0x225)](!0x1));}['setOnSavingEditorData'](_0x4eb8e3){const _0x2c4750=_0x2b58b8;this[_0x2c4750(0x2bb)][_0x2c4750(0x225)](_0x4eb8e3);}[_0x2b58b8(0x2c5)](){return this['_editingParams$']['getValue']();}[_0x2b58b8(0x163)](_0x47e97f){const _0x4c8896=_0x2b58b8;let _0x4f1f3d=this[_0x4c8896(0x281)]['getUnit'](_0x47e97f[_0x4c8896(0x383)],_0x19a5e9[_0x4c8896(0x234)]);if(!_0x4f1f3d)return!0x0;let _0x2091bb=_0x384956(_0x4f1f3d,_0x47e97f[_0x4c8896(0x1a7)]);return _0x353611(this[_0x4c8896(0x121)],_0x47e97f[_0x4c8896(0x383)],[..._0x4fa6cb(_0x4f1f3d,_0x2091bb,_0x4c8896(0x33e),_0x47e97f[_0x4c8896(0x1a7)]),_0x418902(_0x2091bb,_0x4c8896(0x33e),_0x47e97f[_0x4c8896(0x1a7)])]);}['completeEditing'](_0x41b202){const _0x34a219=_0x2b58b8;let _0x1bede8=this[_0x34a219(0x2c5)]();_0x1bede8&&this[_0x34a219(0x271)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x34a219(0x271)]=requestAnimationFrame(()=>{const _0x55f227=_0x34a219;this['_completionFrame']=void 0x0,this[_0x55f227(0x2c5)]()===_0x1bede8&&this[_0x55f227(0x2e8)](null);}));}[_0x2b58b8(0x1af)](){const _0x515253=_0x2b58b8;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x515253(0x271)]),this['_completionFrame']=void 0x0);}[_0x2b58b8(0x2cb)](){const _0x276035=_0x2b58b8;this[_0x276035(0x2c5)]()&&this[_0x276035(0x2e8)](null);}};X=q([K(0x0,_0x562515),K(0x1,_0x52a285)],X);function Yi(_0x43353c){const _0x25724e=_0x2b58b8;return _0x43353c['behindText']===!0x0||_0x43353c[_0x25724e(0x13a)]===_0x562bb0['TRUE']||_0x43353c[_0x25724e(0x118)]===_0x292c91['WRAP_NONE']&&_0x43353c[_0x25724e(0x26f)]===_0x562bb0['TRUE']?_0x191d2f-0x1:_0x59670b;}let Z=class extends _0x587b62{constructor(_0x44c43e,_0x20fcd7,_0x15a84c,_0x533693,_0x3b3d66,_0xcad525,_0xe2d148){const _0x224d6a=_0x2b58b8;super(),this[_0x224d6a(0x324)]=_0x44c43e,this[_0x224d6a(0x33f)]=_0x20fcd7,this[_0x224d6a(0x204)]=_0x15a84c,this['_imageIoService']=_0x533693,this[_0x224d6a(0x211)]=_0x3b3d66,this[_0x224d6a(0x1aa)]=_0xcad525,this['_shapeFormulaService']=_0xe2d148,J(this,_0x224d6a(0x2a4),new Map()),this[_0x224d6a(0x32d)](this[_0x224d6a(0x376)][_0x224d6a(0x18f)][_0x224d6a(0x138)](_0x401c2e=>{const _0x15f068=_0x224d6a;var _0x243c22;(_0x243c22=this['_formulaShapes'][_0x15f068(0x113)](this['_formulaKey'](_0x401c2e[_0x15f068(0x383)],_0x401c2e[_0x15f068(0x21e)],_0x401c2e[_0x15f068(0x1a7)])))==null||_0x243c22[_0x15f068(0x30e)](_0x548d11=>_0x548d11[_0x15f068(0x2b5)](_0x401c2e['presentation'],_0x401c2e[_0x15f068(0x129)]));})),this['disposeWithMe'](this['_drawingManagerService']['remove$']['subscribe'](_0x3daa66=>{const _0x2d01f3=_0x224d6a;_0x3daa66[_0x2d01f3(0x30e)](_0x5770bf=>{const _0x3adbbb=_0x2d01f3;this['_shapeFormulaService']['unregister']({'unitId':_0x5770bf[_0x3adbbb(0x383)],'subUnitId':_0x5770bf[_0x3adbbb(0x21e)],'shapeId':_0x5770bf[_0x3adbbb(0x160)]}),this[_0x3adbbb(0x2a4)]['delete'](this[_0x3adbbb(0x16a)](_0x5770bf['unitId'],_0x5770bf[_0x3adbbb(0x21e)],_0x5770bf[_0x3adbbb(0x160)]));});}));}[_0x2b58b8(0x1ce)](_0x2f5668,_0x6969d2){const _0x5c64a4=_0x2b58b8;let {transform:_0x8e8678,drawingType:_0x26f5dc,srcRect:_0x4407e2,prstGeom:_0x2497d8,groupId:_0x6ebbe6,unitId:_0x496ba9,subUnitId:_0x45afc5,drawingId:_0x25f9b6,isMultiTransform:_0x143927,transforms:_0x2595df,hidden:_0x1a6f40,selectable:_0x37ae7f}=_0x2f5668;if(_0x26f5dc!==_0x11efaa[_0x5c64a4(0x14f)]||!this[_0x5c64a4(0x324)][_0x5c64a4(0x1ff)]()||_0x8e8678==null)return;let _0x30e5dc=this['_drawingManagerService'][_0x5c64a4(0x20d)](),_0x5a4a3f=_0x143927&&_0x2595df?_0x2595df:[_0x8e8678],_0x4c7f98=[];for(let [_0x35d5fd,_0x5ae1c3]of _0x5a4a3f['entries']()){let {left:_0x48d536,top:_0x3af56b,width:_0x59d2b0,height:_0x4e6df8,angle:_0x4c6a41,flipX:_0x29a9ee,flipY:_0x25a8ee,skewX:_0x31593a,skewY:_0x46135d}=_0x5ae1c3,_0x512767=_0x3ac7e0({'unitId':_0x496ba9,'subUnitId':_0x45afc5,'drawingId':_0x25f9b6},_0x143927?_0x35d5fd:void 0x0),_0x150037=_0x6969d2[_0x5c64a4(0x202)](_0x512767);if(_0x150037!=null){let _0x1129e3={'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6};_0x150037 instanceof Y&&this[_0x5c64a4(0x224)](_0x150037,_0x1129e3),_0x150037['transformByState']({'left':_0x48d536,'top':_0x3af56b,'width':_0x59d2b0,'height':_0x4e6df8,'angle':_0x4c6a41,'flipX':_0x29a9ee,'flipY':_0x25a8ee,'skewX':_0x31593a,'skewY':_0x46135d});continue;}let _0x1074d0=this[_0x5c64a4(0x324)][_0x5c64a4(0x1ec)](_0x496ba9,_0x45afc5),_0x1be685=_0x1074d0['indexOf'](_0x25f9b6);if(_0x6969d2[_0x5c64a4(0x202)](_0x512767)||!this[_0x5c64a4(0x324)][_0x5c64a4(0x1ff)]())continue;let _0x10094c=this[_0x5c64a4(0x33f)]['getShapeModel'](_0x496ba9,_0x45afc5,_0x25f9b6);if(!_0x10094c)continue;let _0x37a7b8=_0x3a6b70(_0x10094c[_0x5c64a4(0x11f)]())?{..._0x48d4bb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x48d4bb,_0x215767=_0x10094c['getShapeData']()[_0x5c64a4(0x328)],_0x5da622={'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6};_0x215767&&this[_0x5c64a4(0x376)][_0x5c64a4(0x109)](_0x5da622,_0x215767);let _0x4d45f2=new Y(_0x512767,{..._0x5ae1c3,'zIndex':_0x1be685===-0x1?_0x1074d0[_0x5c64a4(0x364)]-0x1:_0x1be685,'shapeModel':_0x10094c,'localeService':this[_0x5c64a4(0x204)],'shapeId':_0x25f9b6,'unitId':_0x496ba9,'subUnitId':_0x45afc5,'visible':_0x1a6f40!==!0x0,'evented':_0x37ae7f!==!0x1,'formulaPresentation':_0x215767?this[_0x5c64a4(0x376)][_0x5c64a4(0x315)](_0x5da622):void 0x0,'animateFormulaPresentation':(_0x215767==null?void 0x0:_0x215767[_0x5c64a4(0x129)])!==!0x1,'transformerConfig':_0x37a7b8});if(_0x215767){let _0x39b098=this['_formulaKey'](_0x496ba9,_0x45afc5,_0x25f9b6),_0x4cc6c7=this[_0x5c64a4(0x2a4)][_0x5c64a4(0x113)](_0x39b098)??new Set();_0x4cc6c7[_0x5c64a4(0x11a)](_0x4d45f2),this['_formulaShapes'][_0x5c64a4(0x1dd)](_0x39b098,_0x4cc6c7);}this['disposeWithMe'](_0x390b1(_0x4d45f2[_0x5c64a4(0x369)]['subscribeEvent']((_0x37d832,_0x13baaa)=>{const _0x5a9c7a=_0x5c64a4;_0x10094c[_0x5a9c7a(0x2b2)]()||_0x215767||(this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6,'shapeKey':_0x4d45f2[_0x5a9c7a(0x11b)]}),_0x13baaa['stopPropagation']());}))),_0x6969d2[_0x5c64a4(0x386)](_0x4d45f2,Yi(_0x2f5668)),_0x30e5dc&&_0x6969d2[_0x5c64a4(0x23b)](_0x4d45f2),_0x6ebbe6&&_0xfd7c86({'drawingId':_0x6ebbe6,'unitId':_0x496ba9,'subUnitId':_0x45afc5},_0x4d45f2,_0x6969d2,this[_0x5c64a4(0x324)],_0x143927?_0x35d5fd:void 0x0),_0x2497d8!=null&&_0x4d45f2['setPrstGeom'](_0x2497d8),_0x4407e2!=null&&_0x4d45f2[_0x5c64a4(0x2fa)](_0x4407e2),this[_0x5c64a4(0x2df)](_0x4d45f2,_0x10094c[_0x5c64a4(0x170)]()),_0x4c7f98['push'](_0x4d45f2);}return _0x4c7f98;}[_0x2b58b8(0x16a)](_0x2d61c9,_0x33936f,_0x436c9c){return _0x2d61c9+'\x00'+_0x33936f+'\x00'+_0x436c9c;}[_0x2b58b8(0x224)](_0x6e5971,_0x2be3f0){const _0x147a43=_0x2b58b8;let _0x321693=this[_0x147a43(0x33f)][_0x147a43(0x348)](_0x2be3f0[_0x147a43(0x383)],_0x2be3f0[_0x147a43(0x21e)],_0x2be3f0[_0x147a43(0x1a7)]),_0x4c8908=_0x321693==null?void 0x0:_0x321693[_0x147a43(0x170)]()[_0x147a43(0x328)],_0x8d4529=this[_0x147a43(0x16a)](_0x2be3f0[_0x147a43(0x383)],_0x2be3f0[_0x147a43(0x21e)],_0x2be3f0[_0x147a43(0x1a7)]);if(_0x4c8908){this[_0x147a43(0x376)]['register'](_0x2be3f0,_0x4c8908);let _0x51c852=this[_0x147a43(0x2a4)][_0x147a43(0x113)](_0x8d4529)??new Set();_0x51c852[_0x147a43(0x11a)](_0x6e5971),this[_0x147a43(0x2a4)][_0x147a43(0x1dd)](_0x8d4529,_0x51c852);}else{var _0x25efa0;this[_0x147a43(0x376)]['unregister'](_0x2be3f0),(_0x25efa0=this[_0x147a43(0x2a4)][_0x147a43(0x113)](_0x8d4529))==null||_0x25efa0[_0x147a43(0x1a2)](_0x6e5971);}_0x6e5971['setFormulaPresentation'](_0x4c8908?this['_shapeFormulaService'][_0x147a43(0x315)](_0x2be3f0):void 0x0,(_0x4c8908==null?void 0x0:_0x4c8908['animationEnabled'])!==!0x1);}[_0x2b58b8(0x380)](_0x2d9439){const _0x5e71b4=_0x2b58b8;let _0xa2713b=_0x2d9439[_0x5e71b4(0x17c)]['getShapeData'](),_0x41fbb4=_0xa2713b[_0x5e71b4(0x180)];if(!_0x41fbb4||_0x41fbb4[_0x5e71b4(0x334)]!==_0x377cba[_0x5e71b4(0x1b6)]||!_0x41fbb4[_0x5e71b4(0x136)]){_0x2d9439['setFillImage'](void 0x0);return;}this[_0x5e71b4(0x2df)](_0x2d9439,_0xa2713b);}[_0x2b58b8(0x2df)](_0xc71f70,_0x32b6a3){const _0x20bc64=_0x2b58b8;let _0x18f95a=_0x32b6a3[_0x20bc64(0x180)];if(!_0x18f95a||_0x18f95a[_0x20bc64(0x334)]!==_0x377cba[_0x20bc64(0x1b6)]||!_0x18f95a[_0x20bc64(0x136)])return;let _0x10abfd=_0x18f95a[_0x20bc64(0x136)],_0x35081f=_0x18f95a[_0x20bc64(0x2a0)]??_0x34e787[_0x20bc64(0x36d)],_0x4db42f=this['_imageIoService'][_0x20bc64(0x2e3)](_0x10abfd,_0x35081f);if(_0x4db42f){_0xc71f70[_0x20bc64(0x293)](_0x4db42f);return;}this[_0x20bc64(0x275)](_0xc71f70,_0x10abfd,_0x35081f);}async[_0x2b58b8(0x275)](_0x1b04d2,_0x47f4af,_0x3fa949){const _0x4f4482=_0x2b58b8;let _0x14bbe9;try{if(_0x3fa949===_0x34e787[_0x4f4482(0x238)])_0x14bbe9=await this[_0x4f4482(0x253)][_0x4f4482(0x273)](_0x47f4af);else{if(_0x3fa949===_0x34e787[_0x4f4482(0x36d)])try{_0x14bbe9=await this[_0x4f4482(0x211)][_0x4f4482(0x273)](_0x47f4af);}catch{_0x14bbe9=_0x47f4af;}else _0x14bbe9=_0x47f4af;}}catch(_0x1d3b5d){console[_0x4f4482(0x346)](_0x4f4482(0x332),_0x1d3b5d);return;}let _0x4ec56e=new window[(_0x4f4482(0x1cc))]();_0x4ec56e[_0x4f4482(0x24e)]=()=>{const _0x1090b3=_0x4f4482;this[_0x1090b3(0x253)][_0x1090b3(0x2ec)](_0x47f4af,_0x3fa949,_0x4ec56e),_0x1b04d2[_0x1090b3(0x293)](_0x4ec56e);},_0x4ec56e['onerror']=()=>{const _0x4b0fb6=_0x4f4482;console[_0x4b0fb6(0x346)](_0x4b0fb6(0x16e),_0x47f4af);},_0x4ec56e[_0x4f4482(0x259)]=_0x14bbe9;}};Z=q([K(0x0,_0x1f1d2f),K(0x1,_0xbdb0e2(_0xc58a76)),K(0x2,_0xbdb0e2(_0x5af3e2)),K(0x3,_0x1ec634),K(0x4,_0x57ea26),K(0x5,_0xbdb0e2(X)),K(0x6,_0xbdb0e2(_0x13f23d))],Z);let Xi=class extends _0x587b62{constructor(_0x1dc795,_0x41c511,_0x3d7643){const _0x35fe22=_0x2b58b8;super(),this[_0x35fe22(0x2bf)]=_0x1dc795,this[_0x35fe22(0x324)]=_0x41c511,this[_0x35fe22(0x316)]=_0x3d7643,this[_0x35fe22(0x123)]();}['_initPrinting'](){const _0x31b1d4=_0x2b58b8;this[_0x31b1d4(0x32d)](this[_0x31b1d4(0x2bf)][_0x31b1d4(0x1e1)][_0x31b1d4(0x130)](this[_0x31b1d4(0x2bf)][_0x31b1d4(0x1e1)][_0x31b1d4(0x373)]()[_0x31b1d4(0x217)],{'handler':(_0x1787c3,_0x3ce185,_0x6d5c66)=>{const _0x4adcc0=_0x31b1d4;var _0x12eb01;let {unitId:_0x682242,scene:_0x37a417,skeleton:_0x2f3f6e}=_0x3ce185,{pageIndex:_0x3f8c56}=_0x3ce185,_0x39d8c9=(_0x12eb01=this[_0x4adcc0(0x324)][_0x4adcc0(0x272)](_0x682242))==null?void 0x0:_0x12eb01[_0x682242],_0x2c6ac0=Zi(this[_0x4adcc0(0x2bf)],_0x2f3f6e,_0x3f8c56);return _0x39d8c9==null||_0x39d8c9[_0x4adcc0(0x127)][_0x4adcc0(0x30e)](_0x19fde7=>{const _0x3eb1cf=_0x4adcc0;if(_0x2c6ac0&&!_0x2c6ac0[_0x3eb1cf(0x25c)](_0x19fde7))return;let _0x2e9934=_0x39d8c9[_0x3eb1cf(0x23e)][_0x19fde7];_0x2e9934[_0x3eb1cf(0x142)]===_0x11efaa[_0x3eb1cf(0x14f)]&&!_0x2e9934['hidden']&&this[_0x3eb1cf(0x316)][_0x3eb1cf(0x1ce)](_0x2e9934,_0x37a417);}),_0x6d5c66(_0x1787c3);}}));}};Xi=q([K(0x0,_0xbdb0e2(_0x50c28a)),K(0x1,_0x1f1d2f),K(0x2,_0xbdb0e2(Z))],Xi);function Zi(_0x578ce9,_0x458a22,_0x3c552f){const _0x3e12c4=_0x2b58b8;var _0xd1e80b,_0x10c09f;let _0x19ebec=_0x578ce9;if(_0x19ebec['getPageDrawingIds'])return _0x19ebec[_0x3e12c4(0x139)](_0x458a22,_0x3c552f);let _0x435adb=_0x458a22[_0x3e12c4(0x36b)]();if(!_0x435adb||_0x435adb[_0x3e12c4(0x300)][_0x3e12c4(0x364)]<=0x1||_0x3c552f==null)return null;let _0x15a90a=new Set(),_0x3b0daf=_0x435adb[_0x3e12c4(0x300)][_0x3c552f];if(!_0x3b0daf)return _0x15a90a;Qi(_0x3b0daf,_0x15a90a);let _0x4bb6a9=(_0xd1e80b=_0x435adb[_0x3e12c4(0x1a9)][_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x2be)]))==null?void 0x0:_0xd1e80b[_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x167)]??_0x3b0daf[_0x3e12c4(0x1ab)]),_0x1a0c1c=(_0x10c09f=_0x435adb[_0x3e12c4(0x111)]['get'](_0x3b0daf[_0x3e12c4(0x1bb)]))==null?void 0x0:_0x10c09f[_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x263)]??_0x3b0daf['pageWidth']);return _0x4bb6a9&&Qi(_0x4bb6a9,_0x15a90a),_0x1a0c1c&&Qi(_0x1a0c1c,_0x15a90a),_0x15a90a;}function Qi(_0x541383,_0xab12ba){const _0x1a8d83=_0x2b58b8;for(let _0x1796fe of _0x541383['skeDrawings'][_0x1a8d83(0x279)]())_0xab12ba[_0x1a8d83(0x11a)](_0x1796fe);for(let _0x1bbaa9 of _0x541383[_0x1a8d83(0x1b0)][_0x1a8d83(0x199)]())for(let _0x2d822b of _0x1bbaa9['rows'])for(let _0x4f7417 of _0x2d822b[_0x1a8d83(0x176)])Qi(_0x4f7417,_0xab12ba);}function $i(_0x5709fd){return _0x9daf1d(Ur,{..._0x5709fd,'PickerComponent':_0xe027d8});}function ea(){const _0x421c24=_0x2b58b8;let _0x4a5d90=_0x16858b(_0x5af3e2),_0x27f654=Br(),[_0x9aca3,_0x15e41f]=_0x1960d6(!0x1);return _0x29ba63(_0x421c24(0x385),{'className':'univer-grid\x20univer-gap-3','children':[_0x9daf1d(_0x1cbd0b,{'title':_0x4a5d90['t']('docs-shape-ui.crop.shape'),'aria-expanded':_0x9aca3,'variant':_0x421c24(0x168),'trailing':_0x9daf1d(_0x9aca3?_0x1f633b:_0x4067c9,{}),'onClick':()=>_0x15e41f(_0x36cd5b=>!_0x36cd5b)}),_0x9aca3&&_0x9daf1d(_0xe027d8,{'excludeGroups':[_0x1aea6e[_0x421c24(0x32e)]],'onShapeClick':_0x200a78=>{_0x27f654(_0x200a78),_0x15e41f(!0x1);}})]});}function ta(_0x299cbf){return _0x299cbf['trim']()||void 0x0;}function na(_0x3d5ece,_0x237ce6,_0x4d35b3){const _0x55b798=_0x2b58b8;var _0x2b45fd,_0x21c82e;return((_0x2b45fd=_0x3d5ece[_0x55b798(0x183)])==null?void 0x0:_0x2b45fd[_0x55b798(0x1e4)]())||((_0x21c82e=_0x3d5ece['title'])==null?void 0x0:_0x21c82e[_0x55b798(0x1e4)]())||_0x4d35b3['t'](_0x55b798(0x381)+_0x29fa97(_0x3d5ece[_0x55b798(0x142)]))+'\x20'+(_0x237ce6+0x1);}function ra({PanelComponent:_0x334045=_0x77d035}){const _0x36908f=_0x2b58b8;let _0x7a3f78=_0x16858b(_0x5af3e2),_0x25e8b9={'title':_0x7a3f78['t'](_0x36908f(0x367)),'empty':_0x7a3f78['t'](_0x36908f(0x33d)),'showAll':_0x7a3f78['t'](_0x36908f(0x1e3)),'hideAll':_0x7a3f78['t'](_0x36908f(0x1c0)),'lockAll':_0x7a3f78['t'](_0x36908f(0x1fa)),'unlockAll':_0x7a3f78['t'](_0x36908f(0x17d)),'moveForward':_0x7a3f78['t'](_0x36908f(0x1c6)),'moveBackward':_0x7a3f78['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x7a3f78['t'](_0x36908f(0x10a)),'show':_0x7a3f78['t'](_0x36908f(0x2d2)),'hide':_0x7a3f78['t'](_0x36908f(0x357)),'lock':_0x7a3f78['t'](_0x36908f(0x28d)),'unlock':_0x7a3f78['t'](_0x36908f(0x173)),'lockHint':_0x7a3f78['t'](_0x36908f(0x1cf)),'unlockHint':_0x7a3f78['t'](_0x36908f(0x219)),'name':_0x7a3f78['t'](_0x36908f(0x29f)),'nameInput':_0x7a3f78['t'](_0x36908f(0x25a)),'description':_0x7a3f78['t'](_0x36908f(0x35f)),'descriptionPlaceholder':_0x7a3f78['t'](_0x36908f(0x358)),'details':_0x7a3f78['t'](_0x36908f(0x23f)),'noSelection':_0x7a3f78['t'](_0x36908f(0x1b4)),'locate':_0x7a3f78['t'](_0x36908f(0x2c2)),'expand':_0x7a3f78['t'](_0x36908f(0x1d5)),'collapse':_0x7a3f78['t'](_0x36908f(0x1a8)),'dragToReorder':_0x7a3f78['t']('drawing-ui.objectListPanel.dragToReorder'),'search':_0x7a3f78['t'](_0x36908f(0x264)),'filterAll':_0x7a3f78['t'](_0x36908f(0x252)),'filterHidden':_0x7a3f78['t'](_0x36908f(0x24b)),'filterLocked':_0x7a3f78['t'](_0x36908f(0x361)),'sectionCanvas':_0x7a3f78['t'](_0x36908f(0x31b)),'sectionFloating':_0x7a3f78['t'](_0x36908f(0x2d4))},_0x22d8c1=_0x16858b(_0x5f3c0a),_0x291e8a=_0x16858b(_0x52a285),_0xc16b18=_0x16858b(_0x1c6928),_0x1b3e99=_0x16858b(_0x1f1d2f),_0x4679fa=_0x16858b(_0x5479fc),[,_0x1f38cd]=_0x3f2dd0(_0x1430ee=>_0x1430ee+0x1,0x0),_0x43cb8d=_0x291e8a[_0x36908f(0x2b6)](_0x19a5e9['UNIVER_DOC']),_0x34cbb4=(_0x43cb8d==null?void 0x0:_0x43cb8d[_0x36908f(0x274)]())??'',_0x45d489=_0x34cbb4,_0x268e31=_0x104db2(()=>_0x1b3e99['focus$'],_0x1b3e99[_0x36908f(0x262)](),!0x1,[_0x1b3e99]);_0x2951cf(()=>{const _0x2abb08=_0x36908f;let _0x5036d2=_0x22d8c1['onCommandExecuted'](()=>_0x1f38cd());return()=>_0x5036d2[_0x2abb08(0x12f)]();},[_0x22d8c1]);let _0x27735e=_0x34cbb4?_0xc16b18[_0x36908f(0x213)](_0x34cbb4,_0x45d489):{},_0x237a15=(_0x34cbb4?_0xc16b18[_0x36908f(0x1ec)](_0x34cbb4,_0x45d489):[])['map'](_0x4b7c40=>_0x27735e[_0x4b7c40])[_0x36908f(0x16f)](_0x708e1f=>!!_0x708e1f)[_0x36908f(0x2d5)](),_0x2ec814=_0x237a15['reduce']((_0x2ca533,_0x30907e)=>(_0x2ca533[_0x590bb6(_0x30907e[_0x36908f(0x142)])]+=0x1,_0x2ca533),{'canvas':0x0,'floating':0x0}),_0x370abb={'canvas':0x0,'floating':0x0},_0x4803cc=_0x237a15[_0x36908f(0x166)]((_0x213131,_0x493c76)=>{const _0x367af0=_0x36908f;let _0x308704=_0x590bb6(_0x213131['drawingType']),_0xace63c=_0x308704===_0xa72627,_0x5add61=_0x370abb[_0x308704]++;return{'id':_0x213131[_0x367af0(0x160)],'name':na(_0x213131,_0x493c76,_0x7a3f78),'description':_0x213131[_0x367af0(0x246)],'visible':_0x213131[_0x367af0(0x2a1)]!==!0x0,'selectable':_0x213131['selectable']!==!0x1,'sectionId':_0x308704,'sectionTitle':_0xace63c?_0x25e8b9[_0x367af0(0x29d)]:_0x25e8b9[_0x367af0(0x120)],'capabilities':_0xace63c?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xace63c&&_0x5add61>0x0,'canMoveBackward':!_0xace63c&&_0x5add61<_0x2ec814[_0x367af0(0x2f6)]-0x1,'canReorder':!_0xace63c};}),_0x50351d=_0x17c0eb(()=>(_0x268e31??[])[_0x36908f(0x16f)](_0x294fa6=>_0x294fa6[_0x36908f(0x383)]===_0x34cbb4&&_0x294fa6[_0x36908f(0x21e)]===_0x45d489)['map'](_0x14a50c=>_0x14a50c[_0x36908f(0x160)]),[_0x268e31,_0x45d489,_0x34cbb4]),_0x18e08f=_0x50351d[_0x50351d[_0x36908f(0x364)]-0x1]??null,_0x595942=_0x5d0240=>_0xc16b18[_0x36908f(0x247)]({'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x5d0240})??null,_0x2777ad=async _0x195c8d=>{const _0x22defb=_0x36908f;_0x34cbb4&&_0x195c8d[_0x22defb(0x364)]&&await _0x22d8c1[_0x22defb(0x362)](_0x155b37['id'],{'unitId':_0x34cbb4,'patches':_0x195c8d});},_0x458042=(_0x1ac0ec,_0x22ae2d)=>{const _0x2c9af9=_0x36908f;if(!_0x34cbb4)return;let _0x5057f5=_0x22ae2d?_0x50351d['includes'](_0x1ac0ec)?_0x50351d[_0x2c9af9(0x16f)](_0x18ddc9=>_0x18ddc9!==_0x1ac0ec):[..._0x50351d,_0x1ac0ec]:[_0x1ac0ec];_0x22d8c1[_0x2c9af9(0x363)](_0x2aa15c['id'],_0x5057f5[_0x2c9af9(0x166)](_0x542376=>({'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x542376})));let _0x43d22a=_0x5057f5[_0x5057f5[_0x2c9af9(0x364)]-0x1];_0x43d22a?_0x30f783(_0x4679fa,{'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x43d22a}):_0x168dd8(_0x4679fa,_0x34cbb4);},_0x12b583=async(_0x1390d3,_0x307c1d)=>{const _0x5920d7=_0x36908f;await _0x2777ad(_0x1390d3[_0x5920d7(0x166)](_0x5abd0a=>_0x595942(_0x5abd0a))['filter'](_0x41a3d3=>!!_0x41a3d3)[_0x5920d7(0x16f)](_0x5bf0d0=>_0x5bf0d0[_0x5920d7(0x2a1)]!==!0x0!==_0x307c1d)[_0x5920d7(0x166)](_0x4c3129=>({'drawingId':_0x4c3129[_0x5920d7(0x160)],'hidden':!_0x307c1d})));},_0xdb595e=async(_0x134b70,_0x3d17ca)=>{const _0x48a57c=_0x36908f;await _0x2777ad(_0x134b70['map'](_0x4723b0=>_0x595942(_0x4723b0))[_0x48a57c(0x16f)](_0x481923=>!!_0x481923)['filter'](_0x396623=>_0x396623[_0x48a57c(0x1da)]!==!0x1!==_0x3d17ca)[_0x48a57c(0x166)](_0x50e59f=>({'drawingId':_0x50e59f[_0x48a57c(0x160)],'selectable':_0x3d17ca})));},_0x1d9ac8=_0xe1a804=>{const _0x4e7e26=_0x36908f;let _0x51f169=_0x595942(_0xe1a804);if(_0x51f169)return _0xdb595e([_0xe1a804],_0x51f169[_0x4e7e26(0x1da)]===!0x1);},_0x14ea6c=async(_0x5a7f20,_0x109be2)=>{const _0x145ff7=_0x36908f;let _0x31459a=_0x595942(_0x5a7f20),_0x564a08=ta(_0x109be2);!_0x31459a||(_0x31459a[_0x145ff7(0x183)]??void 0x0)===_0x564a08&&(_0x31459a[_0x145ff7(0x172)]||void 0x0)===_0x564a08||await _0x2777ad([{'drawingId':_0x5a7f20,'name':_0x564a08,'title':_0x564a08}]);},_0x45b411=async(_0x1505b5,_0x2492bf)=>{const _0x1e00bc=_0x36908f;let _0x3f2f1a=_0x595942(_0x1505b5),_0x5a66db=ta(_0x2492bf);_0x3f2f1a&&(_0x3f2f1a[_0x1e00bc(0x246)]??void 0x0)!==_0x5a66db&&await _0x2777ad([{'drawingId':_0x1505b5,'description':_0x5a66db}]);},_0x504af9=async(_0x50d24f,_0x4c6f78)=>{const _0x1fea44=_0x36908f;_0x34cbb4&&await _0x22d8c1[_0x1fea44(0x362)](_0x441b4f['id'],{'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingIds':[_0x50d24f],'arrangeType':_0x4c6f78});};return _0x34cbb4?_0x9daf1d(_0x334045,{'labels':_0x25e8b9,'renderPermissionAction':_0x475326=>_0x43cb8d?_0x9daf1d(_0x3d2d26,{'target':{'unitId':_0x34cbb4,'objectId':_0x418902(_0x384956(_0x43cb8d,_0x475326['id']),_0x36908f(0x33e),_0x475326['id']),'objectType':_0xb843b5[_0x36908f(0x203)]},'name':_0x475326[_0x36908f(0x183)],'commandId':_0x2ba39d['id'],'exists':()=>!!_0x595942(_0x475326['id'])},_0x34cbb4+'/'+_0x475326['id']):null,'items':_0x4803cc,'selectedIds':_0x50351d,'focusedId':_0x18e08f,'showHeader':!0x1,'onSelect':_0x458042,'onSetVisible':_0x12b583,'onSetSelectable':_0xdb595e,'onCommitName':_0x14ea6c,'onCommitDescription':_0x45b411,'onMoveForward':async _0x511752=>_0x504af9(_0x511752,_0x3963c4[_0x36908f(0x1bc)]),'onMoveBackward':async _0x5154e4=>_0x504af9(_0x5154e4,_0x3963c4[_0x36908f(0x186)]),'onToggleSelectable':_0x1d9ac8}):_0x9daf1d(_0x36908f(0x385),{'className':_0x36908f(0x248),'children':_0x25e8b9[_0x36908f(0x172)]});}function ia(){return _0x9daf1d(ra,{'PanelComponent':_0x4bf5db});}let aa=class{constructor(_0x2dd0b7){const _0x406eb0=_0x2b58b8;this[_0x406eb0(0x35c)]=_0x2dd0b7;}[_0x2b58b8(0x1c5)](_0x970028,_0x28668e){const _0x11d2a6=_0x2b58b8;let _0x5e5bd8=this[_0x11d2a6(0x35c)][_0x11d2a6(0x1c9)](_0x970028[_0x11d2a6(0x383)]),_0x25e82a=_0x5e5bd8==null?void 0x0:_0x5e5bd8[_0x11d2a6(0x10b)];if(!_0x25e82a)return;let _0x5ba697=_0x3ac7e0(_0x970028),_0x1e5fe8=_0x25e82a[_0x11d2a6(0x202)](_0x5ba697);_0x1e5fe8==null||_0x1e5fe8['setFillImage'](_0x28668e);}};aa=q([K(0x0,_0x5479fc)],aa);function oa(){const _0x42fb6d=_0x2b58b8;let _0x497f45=_0x16858b(_0x1f1d2f),_0x39433a=_0x104db2(()=>_0x497f45[_0x42fb6d(0x2f3)],_0x497f45['getFocusDrawings'](),!0x1,[_0x497f45]);return _0x39433a[_0x42fb6d(0x364)]===0x0?null:_0x9daf1d(_0x42fb6d(0x385),{'children':_0x29ba63(_0x42fb6d(0x385),{'className':_0x42fb6d(0x21f),'children':[_0x9daf1d(_0x45ca4b,{'drawings':_0x39433a,'hasCropper':!0x1}),_0x9daf1d(_0x4fb651,{'drawings':_0x39433a}),_0x9daf1d(_0x1adf5f,{'drawings':_0x39433a})]})});}function sa(_0x23e905){let {unitId:_0x88c620,subUnitId:_0xfaf7fe,shapeId:_0x5ac31a,PositionComponent:_0x43a911=oa}=_0x23e905,_0x5b2847=_0x16858b(_0x5f3c0a),_0x226718=_0x16858b(aa);return _0x9daf1d(_0x11d750,{..._0x23e905,'positionEditor':_0x9daf1d(_0x43a911,{}),'onUpdateShapeData':(_0x2b0f6a,_0x5c6d33)=>{Yr(_0x5b2847,_0x88c620,_0xfaf7fe,_0x5ac31a,_0x2b0f6a,_0x5c6d33);},'onUpdateLineShapeData':(_0x4c37f0,_0x5782e5)=>{Xr(_0x5b2847,_0x88c620,_0xfaf7fe,_0x5ac31a,_0x4c37f0,_0x5782e5);},'onUpdateShapeFillImage':_0xa3a936=>{_0x226718['updateShapeFillImage']({'unitId':_0x88c620,'subUnitId':_0xfaf7fe,'drawingId':_0x5ac31a},_0xa3a936);}});}function ca(){const _0x10facb=_0x2b58b8;let _0x571500=_0x16858b(_0x1f1d2f),_0x440c8f=_0x104db2(_0x571500[_0x10facb(0x2f3)],_0x571500[_0x10facb(0x262)]());return _0x440c8f[_0x10facb(0x364)]===0x0?null:_0x29ba63(_0x10facb(0x385),{'className':_0x10facb(0x338),'children':[_0x9daf1d(_0x45ca4b,{'drawings':_0x440c8f,'hasCropper':!0x1}),_0x9daf1d(_0x44ac19,{'drawings':_0x440c8f}),_0x9daf1d(_0x3ac16a,{'drawings':_0x440c8f})]});}function la(_0x542521){return _0x9daf1d(_0x406ee5,{'children':_0x9daf1d(sa,{..._0x542521,'PositionComponent':ca})});}function ua({popup:_0x5347cf}){const _0x5a6061=_0x2b58b8;let _0x3c0173=_0x16858b(_0x5af3e2),{shapeType:_0x26ce75,onText:_0x5b5999,onStyle:_0xdc2c85,onDelete:_0x5ad0c0}=_0x5347cf[_0x5a6061(0x2c7)],_0x511e79=[{'key':_0x5a6061(0x10d),'order':0x0,'item':{'id':'text','type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x354)),'disabled$':_0x156e35(_0x3a6b70(_0x26ce75))}},{'key':_0x5a6061(0x135),'order':0x1,'item':{'id':_0x5a6061(0x135),'type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x312))}},{'key':_0x5a6061(0x1a2),'order':0x2,'item':{'id':_0x5a6061(0x1a2),'type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x1fe))}}];return _0x9daf1d(_0x2cf0e1,{'schemas':_0x511e79,'presentation':_0x5a6061(0x350),'onOptionSelect':async({id:_0x3a423b})=>{const _0x3a4608=_0x5a6061;_0x3a423b===_0x3a4608(0x10d)?await _0x5b5999():_0x3a423b===_0x3a4608(0x135)?await _0xdc2c85():_0x3a423b===_0x3a4608(0x1a2)&&await _0x5ad0c0();}});}const da=_0x2b58b8(0x290);function fa(_0xe1805a,_0x286006){const _0x2db006=_0x2b58b8;var _0xa351cd;let _0x264005=_0xe1805a==null||(_0xa351cd=_0xe1805a[_0x2db006(0x110)]()[_0x2db006(0x1a4)])==null?void 0x0:_0xa351cd[_0x286006];return _0x264005?_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x178)]?_0x264005[_0x2db006(0x26f)]===_0x562bb0[_0x2db006(0x1f7)]?_0x31600f[_0x2db006(0x115)]:_0x31600f[_0x2db006(0x28f)]:_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x322)]?_0x31600f[_0x2db006(0x322)]:_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x26b)]?_0x31600f[_0x2db006(0x26b)]:_0x31600f[_0x2db006(0x1db)]:_0x31600f[_0x2db006(0x1db)];}function pa(_0x2384ce){const _0x464a93=_0x2b58b8;let _0x11a175=_0x16858b(_0x54ad5c),_0x2adf0a=_0x104db2(()=>_0x11a175['visible$'],_0x11a175[_0x464a93(0x13b)](),!0x1,[_0x11a175]),_0x2a7cf8=_0x2384ce[_0x464a93(0x17f)][_0x464a93(0x2c7)];return _0x2adf0a?_0x9daf1d(ma,{..._0x2a7cf8,'canvasElement':_0x2384ce['popup'][_0x464a93(0x232)]}):null;}function ma(_0x5e38db){const _0x42a935=_0x2b58b8;let _0x44e8e0=_0x16858b(_0x5f3c0a),_0x314853=_0x16858b(_0x5af3e2),_0x485309=_0x16858b(_0xc58a76),_0x1d236e=_0x16858b(_0x52a285),{unitId:_0x2ef3de,subUnitId:_0x293725,drawingId:_0x17d1a5,shapeType:_0x4b123b}=_0x5e38db,[_0x3a1243,_0x52f4ab]=_0x1960d6(_0x5e38db[_0x42a935(0x1ae)]),_0x1afa68=_0x1d236e[_0x42a935(0x283)](_0x2ef3de,_0x19a5e9[_0x42a935(0x234)])??void 0x0,[_0x3449c1,_0x1f45af]=_0x1960d6(()=>fa(_0x1afa68,_0x17d1a5)),_0x3f7891=_0x17c0eb(()=>_0x2f8313(_0x3a1243),[_0x3a1243]),_0xfd48f7=_0x17c0eb(()=>_0xf92dc(_0x3a1243),[_0x3a1243]);_0x2951cf(()=>{const _0x4a5e5c=_0x42a935;let _0xab3a33=_0x44e8e0[_0x4a5e5c(0x19e)](_0x311b20=>{const _0x309aa4=_0x4a5e5c;if(_0x311b20['id']!==_0x3d4cfc['id'])return;let _0x48806b=_0x485309[_0x309aa4(0x152)](_0x2ef3de,_0x293725,_0x17d1a5);_0x48806b&&_0x52f4ab(_0x48806b);});return()=>_0xab3a33[_0x4a5e5c(0x12f)]();},[_0x44e8e0,_0x485309,_0x17d1a5,_0x293725,_0x2ef3de]);let _0x1eefe6=_0x234773=>{_0x52f4ab(_0x3193ac=>({..._0x3193ac,..._0x234773}));},_0x444cdc=_0x521f11=>{const _0x589a79=_0x42a935;let _0x24df7a=_0x4b7a9f(_0x3a1243,_0x521f11);Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,{'oldShapeData':{'shapeText':_0x3a1243[_0x589a79(0x188)]}},_0x24df7a),_0x1eefe6(_0x24df7a);},_0x2cee01=_0x4b54f3=>{_0x1f45af(_0x4b54f3),_0x44e8e0['executeCommand'](_0x210103['id'],{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawings':[{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5}],'wrappingStyle':_0x4b54f3});},_0x482394=_0x4bb66f({'hostType':_0x19a5e9[_0x42a935(0x234)],'unitId':_0x2ef3de,'subUnitId':_0x293725,'shapeId':_0x17d1a5,'shapeData':_0x3a1243,'onUpdateBinding':_0x3c915a=>{let _0xc6ac0a={'formulaBinding':_0x3c915a};Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,{'oldShapeData':{'formulaBinding':_0x3a1243['formulaBinding']}},_0xc6ac0a),_0x1eefe6(_0xc6ac0a);}}),_0x21d203=[{'label':_0x314853['t'](_0x42a935(0x379)),'value':_0x31600f[_0x42a935(0x1db)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t'](_0x42a935(0x20b)),'value':_0x31600f['WRAP_SQUARE'],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x31600f[_0x42a935(0x26b)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t'](_0x42a935(0x28e)),'value':_0x31600f[_0x42a935(0x115)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x31600f[_0x42a935(0x28f)],'icon':_0x9daf1d(_0x5e10e7,{})}];return _0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x1ee75a,{'canvasElement':_0x5e38db[_0x42a935(0x232)],'shapeData':_0x3a1243,'shapeType':_0x4b123b,'textStyle':{'ff':_0xda9354[_0x42a935(0x188)]['fontFamily'],'fs':_0xda9354['shapeText']['fontSize'],'cl':{'rgb':_0xda9354[_0x42a935(0x188)][_0x42a935(0x2af)]},..._0x3f7891},'textModel':_0xfd48f7?{'ha':_0xfd48f7['ha']??_0x5cdaf0[_0x42a935(0x205)],'va':_0xfd48f7['va']??_0x41d65f['TOP']}:null,'wrappingStyle':_0x3449c1,'wrappingStyleOptions':_0x21d203,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0xda9354['fill'],'defaultGradientEndColor':_0xda9354[_0x42a935(0x35e)],'defaultStrokeColor':_0xda9354[_0x42a935(0x191)],'extensionGroups':_0x482394[_0x42a935(0x243)],'floatingObjectToolbarPosition':_0x825cf2['DOC'],'onUpdateShapeData':(_0x589e04,_0x41d8da)=>{Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,_0x589e04,_0x41d8da),_0x41d8da&&_0x1eefe6(_0x41d8da);},'onUpdateText':_0x444cdc,'onUpdateWrappingStyle':_0x7f8d64=>_0x2cee01(_0x7f8d64),'onOpenPanel':()=>{const _0x2c1859=_0x42a935;_0x44e8e0[_0x2c1859(0x362)](G['id'],{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5});},'onDelete':()=>{_0x44e8e0['executeCommand'](_0x6ceb84['id'],{'unitId':_0x2ef3de,'drawings':[{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5}]});}}),_0x482394[_0x42a935(0x169)]]});}function ha({variant:_0x86348,extend:_0x385342,..._0x53e7d3}){const _0x4f6a74=_0x2b58b8;let _0xb5f7bf=_0x9daf1d(_0x4f6a74(0x34b),{'x':'7','y':_0x4f6a74(0x1ef),'width':'6','height':'9','rx':'1','fill':'currentColor','fillOpacity':_0x4f6a74(0x333),'stroke':_0x4f6a74(0x22d),'strokeWidth':'1.2'});return _0x29ba63(_0x4f6a74(0x37b),{'aria-hidden':_0x4f6a74(0x1c8),'fill':_0x4f6a74(0x24c),'height':_0x4f6a74(0x1f3),'viewBox':_0x4f6a74(0x162),'width':_0x4f6a74(0x1f3),..._0x53e7d3,'children':[_0x86348===_0x4f6a74(0x1e5)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d('path',{'d':_0x4f6a74(0x2d6),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0x9daf1d('rect',{'x':'8','y':'7','width':'4','height':'6','rx':'0.8','fill':'currentColor','fillOpacity':_0x4f6a74(0x333),'stroke':'currentColor','strokeWidth':'1.2'})]}),_0x86348==='square'&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x2ef),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0xb5f7bf]}),_0x86348===_0x4f6a74(0x114)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':'M2\x203h16M2\x2017h16','stroke':'currentColor','strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0xb5f7bf]}),_0x86348===_0x4f6a74(0x155)&&_0x29ba63(_0x18996c,{'children':[_0xb5f7bf,_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x18d),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':'1.2'})]}),_0x86348===_0x4f6a74(0x1d1)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x18d),'stroke':'currentColor','strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':'1.2'}),_0x9daf1d('rect',{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x4f6a74(0x22d)})]})]});}const ga=_0x10ed21=>_0x30c780=>_0x9daf1d(ha,{..._0x30c780,'variant':_0x10ed21}),_a={'DocsShapeWrapInlineIcon':ga(_0x2b58b8(0x1e5)),'DocsShapeWrapSquareIcon':ga(_0x2b58b8(0x284)),'DocsShapeWrapTopBottomIcon':ga('top-bottom'),'DocsShapeWrapBehindTextIcon':ga(_0x2b58b8(0x155)),'DocsShapeWrapInFrontOfTextIcon':ga(_0x2b58b8(0x1d1))},va=_0x4417c9(()=>{const _0x91215c=_0x2b58b8;let _0x528fe5=_0x16858b(X),_0x566d8f=_0x16858b(_0xc58a76),_0xd20f83=_0x16858b(_0x1f1d2f),_0x5ccc1e=_0x16858b(_0x5f3c0a),_0x1ba832=_0x17c0eb(()=>({'getShapeModel':(_0x17ade3,_0x36ff79,_0x23423f)=>_0x566d8f[_0x91215c(0x348)](_0x17ade3,_0x36ff79,_0x23423f),'getShapeData':(_0x100254,_0x4b1c46,_0x40dcc7)=>_0x566d8f[_0x91215c(0x152)](_0x100254,_0x4b1c46,_0x40dcc7),'getDrawingTransform':(_0x140815,_0x43490f,_0x201869)=>{const _0x3de243=_0x91215c;let _0x2d85c8=_0xd20f83[_0x3de243(0x247)]({'unitId':_0x140815,'subUnitId':_0x43490f,'drawingId':_0x201869});return _0x2d85c8==null?void 0x0:_0x2d85c8[_0x3de243(0x277)];},'updateShapeText':({unitId:_0x3ac69a,shapeId:_0x23d6e4,shapeText:_0x400b67,oldShapeText:_0x280d00})=>{const _0x4ab78a=_0x91215c;_0x5ccc1e[_0x4ab78a(0x362)](_0x544402['id'],{'unitId':_0x3ac69a,'shapeId':_0x23d6e4,'shapeData':{'shapeText':_0x400b67},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x280d00}}});},'updateHostSize':({unitId:_0x4794e9,subUnitId:_0x1c24a7,shapeId:_0x896b5,width:_0xe2d6d4,height:_0x5dbb29})=>{const _0x902888=_0x91215c;_0x5ccc1e[_0x902888(0x362)](_0x2f3fc9['id'],{'unitId':_0x4794e9,'subUnitId':_0x1c24a7,'drawings':[{'drawingId':_0x896b5,'key':_0x902888(0x25f),'value':{'width':_0xe2d6d4,'height':_0x5dbb29}}]});},'allowHostSizeShrink':({unitId:_0x3915bd,subUnitId:_0x41172f,shapeId:_0x1f71a6})=>_0x37cf60(_0x566d8f[_0x91215c(0x152)](_0x3915bd,_0x41172f,_0x1f71a6))}),[_0x5ccc1e,_0x566d8f,_0xd20f83]),_0x4cba35=_0x17c0eb(()=>({'viewportKeys':{'main':_0x59aab8[_0x91215c(0x359)]}}),[]);return _0x9daf1d(_0x4573e8,{'adapter':_0x1ba832,'editingService':_0x528fe5,'editorUnitId':kr,'positionOptions':_0x4cba35});});let ya=class extends _0x587b62{constructor(_0x34a911,_0xc7f499){const _0x2b3c79=_0x2b58b8;super(),this[_0x2b3c79(0x14c)]=_0x34a911,this['_iconManager']=_0xc7f499,this['_registerIcons'](),this[_0x2b3c79(0x122)]();}[_0x2b58b8(0x304)](){const _0x29cd43=_0x2b58b8;this['_iconManager']['has'](_0x29cd43(0x278))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)]['register']({'ObjectLayersIcon':_0x7b836})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x2a7))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'BottomIcon':_0x30111e})),this[_0x29cd43(0x19b)]['has'](_0x29cd43(0x302))||this[_0x29cd43(0x32d)](this['_iconManager'][_0x29cd43(0x109)]({'MoveDownIcon':_0x23588f})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x28b))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'MoveUpIcon':_0x50d193})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x2c3))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'ShapeFormatSettingIcon':_0x38092e})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)]('TopmostIcon')||this[_0x29cd43(0x32d)](this['_iconManager'][_0x29cd43(0x109)]({'TopmostIcon':_0x37e31f})),this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)](_a));}[_0x2b58b8(0x122)](){const _0x11a294=_0x2b58b8;this['disposeWithMe'](this[_0x11a294(0x14c)]['register'](W,la)),this['_registerObjectListPanel'](),this[_0x11a294(0x2f1)](),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Qr,ii)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Zr,ai)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)]($r,oi)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)]['register'](ei,si)),this[_0x11a294(0x32d)](this['_componentManager'][_0x11a294(0x109)](ti,ci)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Ar,_0x2439df)),this[_0x11a294(0x267)](),this[_0x11a294(0x14c)]['hasDefault'](_0x2c1395)||this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](_0x2c1395,Hr)),this['disposeWithMe'](this[_0x11a294(0x14c)][_0x11a294(0x109)](jr,va));}['_registerObjectListPanel'](){const _0x5e9121=_0x2b58b8;this[_0x5e9121(0x32d)](this[_0x5e9121(0x14c)][_0x5e9121(0x109)](Or,ia));}[_0x2b58b8(0x2f1)](){const _0x217622=_0x2b58b8;this[_0x217622(0x32d)](this[_0x217622(0x14c)][_0x217622(0x109)](da,ua));}[_0x2b58b8(0x267)](){const _0x43c47c=_0x2b58b8;this['disposeWithMe'](this[_0x43c47c(0x14c)][_0x43c47c(0x109)](Lr,$i)),this[_0x43c47c(0x32d)](this['_componentManager'][_0x43c47c(0x109)](Rr,ea));}};ya=q([K(0x0,_0xbdb0e2(_0x391057)),K(0x1,_0xbdb0e2(_0x3fa0b0))],ya);let ba=class extends _0x587b62{constructor(_0x281761,_0x3f4092,_0x33b4a4,_0x2dd95e,_0x501ecb,_0x3a0cb3,_0x2ac4c4,_0x18579b,_0x3ac66b,_0x56aa8b,_0x4d6443,_0x599ccc,_0x4b8896){const _0x2707a9=_0x2b58b8;super(),this[_0x2707a9(0x165)]=_0x281761,this[_0x2707a9(0x2a5)]=_0x3f4092,this[_0x2707a9(0x34e)]=_0x33b4a4,this[_0x2707a9(0x33f)]=_0x2dd95e,this[_0x2707a9(0x204)]=_0x501ecb,this[_0x2707a9(0x34d)]=_0x3a0cb3,this['_drawingManagerService']=_0x2ac4c4,this[_0x2707a9(0x2d0)]=_0x18579b,this[_0x2707a9(0x35c)]=_0x3ac66b,this['_contextService']=_0x56aa8b,this[_0x2707a9(0x1aa)]=_0x4d6443,this[_0x2707a9(0x121)]=_0x599ccc,this[_0x2707a9(0x1e8)]=_0x4b8896,J(this,_0x2707a9(0x320),null),J(this,_0x2707a9(0x15d),null),J(this,_0x2707a9(0x37e),!0x1),J(this,_0x2707a9(0x368),0x0),J(this,_0x2707a9(0x329),new Map()),J(this,_0x2707a9(0x313),new Map()),this[_0x2707a9(0x15b)](),this['disposeWithMe'](this[_0x2707a9(0x165)][_0x2707a9(0x228)](_0x19a5e9[_0x2707a9(0x234)])[_0x2707a9(0x138)](_0x927b67=>{const _0x1e7c7a=_0x2707a9;if(!_0x927b67){var _0x4a17c3;(_0x4a17c3=this[_0x1e7c7a(0x320)])==null||_0x4a17c3[_0x1e7c7a(0x12f)]();}})),this['_registerOperations'](),this[_0x2707a9(0x32d)](_0x59c4f1(this['_renderManagerService'],_0x19a5e9[_0x2707a9(0x234)],_0x57e90a=>this['_popupMenuListener'](_0x57e90a))),this[_0x2707a9(0x32d)](this[_0x2707a9(0x1aa)][_0x2707a9(0x371)]['subscribe'](_0x152931=>{const _0x1b2931=_0x2707a9;_0x152931&&this[_0x1b2931(0x1eb)](void 0x0,!0x0);})),this[_0x2707a9(0x32d)](this[_0x2707a9(0x121)][_0x2707a9(0x27f)][_0x2707a9(0x138)](()=>{const _0x3675ec=_0x2707a9;this[_0x3675ec(0x324)][_0x3675ec(0x262)]()[_0x3675ec(0x310)](_0x386fc6=>_0x386fc6[_0x3675ec(0x142)]===_0x11efaa['DRAWING_SHAPE']&&this['_univerInstanceService'][_0x3675ec(0x1b5)](_0x386fc6['unitId'])===_0x19a5e9[_0x3675ec(0x234)]&&!this['_canEditShape'](_0x386fc6[_0x3675ec(0x383)],_0x386fc6['drawingId']))&&(this[_0x3675ec(0x1eb)](void 0x0,!0x0),this[_0x3675ec(0x2f7)]());}));}[_0x2b58b8(0x2a6)](_0x843b4b,_0x3e6211,_0x4a03f4,_0x5cb7dc){const _0x5d62e8=_0x2b58b8;return[{'label':_0x5d62e8(0x26d),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4},'disable':_0x5cb7dc===_0x11efaa[_0x5d62e8(0x32b)]},{'label':_0x5d62e8(0x1f5),'index':0x1,'commandId':_0x6ceb84['id'],'commandParams':{'unitId':_0x843b4b,'drawings':[{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4}]},'disable':!0x1},{'label':_0x5d62e8(0x1c3),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4},'disable':!0x1}];}[_0x2b58b8(0x15b)](){this['_menuManagerService']['mergeMenu'](Li);}[_0x2b58b8(0x325)](_0x7ce41,_0x30465c,_0x5d0423){const _0x7e9eef=_0x2b58b8;let _0xfd7bd3=this[_0x7e9eef(0x33f)][_0x7e9eef(0x1ac)](_0x7ce41,_0x30465c,_0x5d0423),_0x5f07a3=this[_0x7e9eef(0x33f)][_0x7e9eef(0x152)](_0x7ce41,_0x30465c,_0x5d0423);return _0xfd7bd3===void 0x0||_0x5f07a3===void 0x0?null:{'shapeData':_0x5f07a3,'shapeId':_0x5d0423,'shapeType':_0xfd7bd3,'unitId':_0x7ce41,'subUnitId':_0x30465c,'version':this[_0x7e9eef(0x368)],'disableShapeOption':!0x1};}[_0x2b58b8(0x1eb)](_0xbc3a94,_0x1e77a5=!0x1){const _0x569339=_0x2b58b8;if(_0xbc3a94==null){[...this[_0x569339(0x329)]['keys']()][_0x569339(0x30e)](_0x2e673e=>this[_0x569339(0x1eb)](_0x2e673e,_0x1e77a5));return;}let _0xaaa34e=this[_0x569339(0x329)][_0x569339(0x113)](_0xbc3a94);if(_0xaaa34e){for(let _0x2bb704=_0xaaa34e[_0x569339(0x364)]-0x1;_0x2bb704>=0x0;--_0x2bb704){let _0x931a3a=_0xaaa34e[_0x2bb704];(_0x1e77a5||_0x931a3a[_0x569339(0x1a0)]())&&(_0x931a3a['dispose'](),_0xaaa34e[_0x569339(0x35b)](_0x2bb704,0x1));}_0xaaa34e['length']===0x0&&(this['_disposePopupsByUnit'][_0x569339(0x1a2)](_0xbc3a94),this['_popupTargetKeys'][_0x569339(0x1a2)](_0xbc3a94));}}['_getDisposePopups'](_0x3efbc){const _0x390981=_0x2b58b8;let _0x2910a2=this[_0x390981(0x329)][_0x390981(0x113)](_0x3efbc);if(_0x2910a2)return _0x2910a2;let _0x498689=[];return this[_0x390981(0x329)]['set'](_0x3efbc,_0x498689),_0x498689;}[_0x2b58b8(0x34f)](_0x5990b1){const _0x21e4a9=_0x2b58b8;var _0x52afb2;let _0x9e8597=new _0x5570bd(),_0x151299=(_0x52afb2=this[_0x21e4a9(0x35c)]['getAllRenderersOfType'](_0x19a5e9['UNIVER_DOC'])[_0x21e4a9(0x30b)](_0x571d37=>_0x571d37[_0x21e4a9(0x10b)]['getTransformerByCreate']()===_0x5990b1))==null?void 0x0:_0x52afb2['unitId'];return _0x151299?(_0x9e8597['add'](_0x5990b1[_0x21e4a9(0x193)][_0x21e4a9(0x138)](()=>this[_0x21e4a9(0x1d0)](_0x5990b1,_0x151299))),_0x9e8597[_0x21e4a9(0x11a)](_0x5990b1[_0x21e4a9(0x365)][_0x21e4a9(0x138)](()=>{const _0x595a78=_0x21e4a9;this[_0x595a78(0x1eb)](_0x151299),queueMicrotask(()=>{const _0x198709=_0x595a78;_0x5990b1[_0x198709(0x11d)]()[_0x198709(0x25f)]>0x0||!this[_0x198709(0x324)]['getFocusDrawings']()['some'](_0x2c9c13=>_0x2c9c13[_0x198709(0x383)]===_0x151299)||(this[_0x198709(0x2ff)][_0x198709(0x2d1)](_0x1ec544,!0x1),this[_0x198709(0x324)][_0x198709(0x2e5)](null));});})),_0x9e8597[_0x21e4a9(0x11a)](_0x5990b1[_0x21e4a9(0x37a)][_0x21e4a9(0x138)](()=>{this['_clearPopups'](_0x151299,!0x0);})),_0x9e8597):_0x9e8597;}[_0x2b58b8(0x1d0)](_0x1baaf6,_0x567849){const _0x3cfe1a=_0x2b58b8;let _0x6b1f5f=_0x1baaf6[_0x3cfe1a(0x11d)]();if(this[_0x3cfe1a(0x37e)]){this[_0x3cfe1a(0x1eb)](_0x567849,!0x0);return;}if(_0x6b1f5f['size']>0x1){this[_0x3cfe1a(0x1eb)](_0x567849);return;}let _0x1a0060=_0x6b1f5f[_0x3cfe1a(0x199)]()[_0x3cfe1a(0x225)]()[_0x3cfe1a(0x1dc)];if(!_0x1a0060){this['_clearPopups'](_0x567849);return;}let _0x4abbaa=this['_drawingManagerService']['getDrawingOKey'](_0x1a0060[_0x3cfe1a(0x11b)]);if(!_0x4abbaa||_0x4abbaa[_0x3cfe1a(0x142)]!==_0x11efaa[_0x3cfe1a(0x14f)]){this[_0x3cfe1a(0x1eb)](_0x567849);return;}let {unitId:_0x4a8731,subUnitId:_0x4d1f7e,drawingId:_0x110e85}=_0x4abbaa;if(!this[_0x3cfe1a(0x1f1)](_0x4a8731,_0x110e85)){this['_clearPopups'](_0x567849,!0x0);return;}let _0x31574c=this[_0x3cfe1a(0x325)](_0x4a8731,_0x4d1f7e,_0x110e85);if(!_0x31574c){this['_clearPopups'](_0x567849);return;}let _0x4a4aca=this[_0x3cfe1a(0x329)][_0x3cfe1a(0x113)](_0x567849),_0x4d60ec=_0x4a8731+':'+_0x4d1f7e+':'+_0x110e85;if(this[_0x3cfe1a(0x313)]['get'](_0x567849)===_0x4d60ec&&_0x4a4aca!=null&&_0x4a4aca[_0x3cfe1a(0x364)])return;this[_0x3cfe1a(0x1eb)](_0x567849);let _0x3bdc4d=this[_0x3cfe1a(0x35c)][_0x3cfe1a(0x1c9)](_0x4a8731),_0x158120=((_0x3bdc4d==null?void 0x0:_0x3bdc4d[_0x3cfe1a(0x29a)])===!0x1?_0x3bdc4d[_0x3cfe1a(0x18b)](_0x44b27e):this[_0x3cfe1a(0x2d0)])[_0x3cfe1a(0x294)](_0x1a0060,this[_0x3cfe1a(0x305)](_0x31574c,()=>this['_clearPopups'](_0x567849,!0x0)),_0x4a8731);this[_0x3cfe1a(0x32d)](_0x158120),this[_0x3cfe1a(0x171)](_0x567849)[_0x3cfe1a(0x335)](_0x158120),this['_popupTargetKeys'][_0x3cfe1a(0x1dd)](_0x567849,_0x4d60ec),this['_drawingManagerService'][_0x3cfe1a(0x262)]()['some'](_0x4c643b=>_0x4c643b[_0x3cfe1a(0x383)]===_0x4a8731&&_0x4c643b[_0x3cfe1a(0x21e)]===_0x4d1f7e&&_0x4c643b['drawingId']===_0x110e85)||this[_0x3cfe1a(0x324)]['focusDrawing']([{'unitId':_0x4a8731,'subUnitId':_0x4d1f7e,'drawingId':_0x110e85}]);}[_0x2b58b8(0x305)](_0x52f97,_0x57b116){const _0x2d2add=_0x2b58b8;let {unitId:_0x2f3e6c,subUnitId:_0x2c3b33,shapeId:_0x3e9310}=_0x52f97,_0xb9b053={'hostType':_0x19a5e9[_0x2d2add(0x234)],'unitId':_0x2f3e6c,'subUnitId':_0x2c3b33,'shapeId':_0x3e9310};return{'componentKey':da,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'shapeType':_0x52f97[_0x2d2add(0x1d6)],'onText':()=>{const _0x549315=_0x2d2add;_0x57b116(),this[_0x549315(0x1e8)][_0x549315(0x2ca)](_0x549315(0x10d),_0xb9b053);},'onStyle':()=>{const _0x5df95b=_0x2d2add;_0x57b116(),this[_0x5df95b(0x1e8)][_0x5df95b(0x2ca)]('style',_0xb9b053);},'onDelete':()=>this[_0x2d2add(0x34d)]['executeCommand'](_0x6ceb84['id'],{'unitId':_0x2f3e6c,'drawings':[{'unitId':_0x2f3e6c,'subUnitId':_0x2c3b33,'drawingId':_0x3e9310}]})}};}[_0x2b58b8(0x1f1)](_0x4aabd4,_0x4837ab){const _0x469e55=_0x2b58b8;let _0x3558d8=this[_0x469e55(0x165)][_0x469e55(0x283)](_0x4aabd4,_0x19a5e9[_0x469e55(0x234)]);if(!_0x3558d8)return!0x1;let _0x33948e=_0x384956(_0x3558d8,_0x4837ab);return _0x353611(this[_0x469e55(0x121)],_0x4aabd4,[..._0x4fa6cb(_0x3558d8,_0x33948e,_0x469e55(0x33e),_0x4837ab),_0x418902(_0x33948e,'drawing',_0x4837ab)]);}['_registerOperations'](){const _0x3ff816=_0x2b58b8;this[_0x3ff816(0x32d)](this[_0x3ff816(0x34d)]['onCommandExecuted'](_0x123a10=>{const _0x49a44e=_0x3ff816;if(_0x123a10['id']===G['id']){let {unitId:_0x23ad05,subUnitId:_0x678a48,drawingId:_0x471c35}=_0x123a10[_0x49a44e(0x339)];this[_0x49a44e(0x368)]+=0x1,this[_0x49a44e(0x15d)]=this[_0x49a44e(0x325)](_0x23ad05,_0x678a48,_0x471c35),this['_clearPopups'](void 0x0,!0x0),this[_0x49a44e(0x2eb)]();}if(_0x123a10['id']===Bi['id']&&(this[_0x49a44e(0x15d)]=null,this['_closeShapeEditPanel']()),_0x123a10['id']===_0x3d4cfc['id']){var _0x500244;let {unitId:_0x4264e8,shapeId:_0x3c87c1}=_0x123a10[_0x49a44e(0x339)];if(((_0x500244=this['_activeShapeInfo'])==null?void 0x0:_0x500244['shapeId'])===_0x3c87c1){let _0x2477a9=this['_getShapeInfo'](_0x4264e8,this[_0x49a44e(0x15d)]['subUnitId'],_0x3c87c1);_0x2477a9&&(this[_0x49a44e(0x368)]+=0x1,_0x2477a9[_0x49a44e(0x179)]=this['_shapeEditPanelVersion'],this[_0x49a44e(0x15d)]=_0x2477a9,this[_0x49a44e(0x37e)]&&this[_0x49a44e(0x2eb)]());}}})),this[_0x3ff816(0x32d)](this[_0x3ff816(0x324)][_0x3ff816(0x2f3)][_0x3ff816(0x138)](_0x344942=>{const _0x39964f=_0x3ff816;if(!this[_0x39964f(0x37e)])return;if(_0x344942['length']===0x0){this['_activeShapeInfo']=null,this[_0x39964f(0x2f7)]();return;}if(_0x344942[_0x39964f(0x364)]===0x1&&_0x344942[0x0][_0x39964f(0x142)]===_0x11efaa[_0x39964f(0x14f)]&&(this[_0x39964f(0x368)]+=0x1,this[_0x39964f(0x15d)]=this[_0x39964f(0x325)](_0x344942[0x0]['unitId'],_0x344942[0x0]['subUnitId'],_0x344942[0x0]['drawingId']),this[_0x39964f(0x15d)])){this[_0x39964f(0x2eb)]();return;}let _0x43770a=_0x344942[_0x39964f(0x16f)](_0x3679ae=>_0x3679ae[_0x39964f(0x142)]===_0x11efaa[_0x39964f(0x14f)]);if(this[_0x39964f(0x368)]+=0x1,this['_activeShapeInfo']=this[_0x39964f(0x325)](_0x344942[0x0][_0x39964f(0x383)],_0x344942[0x0][_0x39964f(0x21e)],_0x344942[0x0][_0x39964f(0x160)]),this['_activeShapeInfo']&&_0x344942[_0x39964f(0x364)]>0x1&&_0x43770a[_0x39964f(0x364)]===_0x344942[_0x39964f(0x364)]){this['_openShapeEditPanel']();return;}if(this[_0x39964f(0x15d)]&&_0x43770a[_0x39964f(0x364)]!==_0x344942[_0x39964f(0x364)]){this[_0x39964f(0x15d)]['disableShapeOption']=!0x0,this['_openShapeEditPanel']();return;}this[_0x39964f(0x2f7)]();}));}[_0x2b58b8(0x2eb)](){const _0x17fe4e=_0x2b58b8;this['_activeShapeInfo']&&(this[_0x17fe4e(0x320)]=this[_0x17fe4e(0x2a5)][_0x17fe4e(0x2ca)]({'id':W,'header':{'title':this['_localeService']['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x45391b=_0x17fe4e;this[_0x45391b(0x324)][_0x45391b(0x2e5)](null),this['_contextService'][_0x45391b(0x2d1)](_0x1ec544,!0x1),this[_0x45391b(0x320)]=null;}}),this[_0x17fe4e(0x37e)]=!0x0);}[_0x2b58b8(0x2f7)](){const _0x40e7d4=_0x2b58b8;this[_0x40e7d4(0x37e)]=!0x1,this[_0x40e7d4(0x2a5)][_0x40e7d4(0x214)](W),this['_sidebarDisposable']=null,this['_contextService']['setContextValue'](_0x1ec544,!0x1),this[_0x40e7d4(0x324)]['focusDrawing'](null);}};ba=q([K(0x0,_0x52a285),K(0x1,_0xbdb0e2(_0x4bee7b)),K(0x2,_0x955a33),K(0x3,_0xbdb0e2(_0xc58a76)),K(0x4,_0xbdb0e2(_0x5af3e2)),K(0x5,_0x5f3c0a),K(0x6,_0x1f1d2f),K(0x7,_0xbdb0e2(_0x44b27e)),K(0x8,_0x5479fc),K(0x9,_0x311686),K(0xa,_0xbdb0e2(X)),K(0xb,_0x562515),K(0xc,_0xbdb0e2(_0x4b38a4))],ba);const xa=_0x2b58b8(0x2b1);let Sa=class extends _0x587b62{constructor(_0x5e74c5,_0x1edb81,_0x5d0bf1,_0x496b16,_0x25dbb4,_0x2e3bdb){const _0x11b257=_0x2b58b8;super(),this[_0x11b257(0x34e)]=_0x5e74c5,this[_0x11b257(0x249)]=_0x1edb81,this['_drawingManagerService']=_0x5d0bf1,this[_0x11b257(0x165)]=_0x496b16,this[_0x11b257(0x35c)]=_0x25dbb4,this[_0x11b257(0x22f)]=_0x2e3bdb,J(this,_0x11b257(0x377),!0x1),this[_0x11b257(0x34e)][_0x11b257(0x244)](Ii),this['disposeWithMe'](_0x390b1(this['_drawingManagerService'][_0x11b257(0x2f3)][_0x11b257(0x138)](()=>this[_0x11b257(0x132)]()))),this[_0x11b257(0x132)]();}[_0x2b58b8(0x12f)](){const _0x1ebc33=_0x2b58b8;this[_0x1ebc33(0x22f)]['setFallbackVisible'](!0x1,xa),this[_0x1ebc33(0x2f9)](),super[_0x1ebc33(0x12f)]();}[_0x2b58b8(0x132)](){const _0x54ba1b=_0x2b58b8;var _0x137e4d;let _0xc4d82e=this['_drawingManagerService'][_0x54ba1b(0x262)](),_0x49c827=_0xc4d82e['length']===0x1?_0xc4d82e[0x0]:void 0x0;if((_0x49c827==null?void 0x0:_0x49c827[_0x54ba1b(0x142)])!==_0x11efaa['DRAWING_SHAPE']||this['_univerInstanceService']['getUnitType'](_0x49c827['unitId'])!==_0x19a5e9[_0x54ba1b(0x234)]){this[_0x54ba1b(0x22f)]['setFallbackVisible'](!0x1,xa),this[_0x54ba1b(0x2f9)]();return;}let _0x191585=(_0x137e4d=this[_0x54ba1b(0x35c)][_0x54ba1b(0x1c9)](_0x49c827['unitId']))==null?void 0x0:_0x137e4d['engine']['getCanvasElement'](),_0x5a8b5e=_0x5387c5(_0x191585)==='isolated';if(this[_0x54ba1b(0x22f)][_0x54ba1b(0x2a9)](_0x5a8b5e,xa),_0x5a8b5e){this[_0x54ba1b(0x2f9)]();return;}this['_visible']=!0x0,this[_0x54ba1b(0x249)][_0x54ba1b(0x287)](Dr,{'activate':!0x0});}[_0x2b58b8(0x2f9)](){const _0x3dada0=_0x2b58b8;this[_0x3dada0(0x377)]&&(this[_0x3dada0(0x377)]=!0x1,this[_0x3dada0(0x249)]['hideContextualTab'](Dr),this[_0x3dada0(0x249)][_0x3dada0(0x184)]([]));}};Sa=q([K(0x0,_0x955a33),K(0x1,_0x16839e),K(0x2,_0x1f1d2f),K(0x3,_0x52a285),K(0x4,_0x5479fc),K(0x5,_0xbdb0e2(_0x54ad5c))],Sa);let Ca=class extends _0x587b62{constructor(_0x2a8c6b,_0x28ee80,_0x288800,_0x39d526){const _0x30bcdd=_0x2b58b8;super(),this[_0x30bcdd(0x34d)]=_0x2a8c6b,this[_0x30bcdd(0x35c)]=_0x28ee80,this[_0x30bcdd(0x324)]=_0x288800,this[_0x30bcdd(0x212)]=_0x39d526,this['_initialize']();}['_initialize'](){const _0x5e75a4=_0x2b58b8;this[_0x5e75a4(0x32d)](this[_0x5e75a4(0x324)][_0x5e75a4(0x2f8)]['subscribe'](_0x151d78=>this[_0x5e75a4(0x1b2)](_0x151d78))),this[_0x5e75a4(0x32d)](this[_0x5e75a4(0x324)][_0x5e75a4(0x226)][_0x5e75a4(0x138)](_0x5ddec4=>{const _0x225aeb=_0x5e75a4;_0x5ddec4[_0x225aeb(0x30e)](_0x19e1f0=>this['_updateShape'](_0x19e1f0));})),this[_0x5e75a4(0x32d)](this['_commandService']['onCommandExecuted'](_0x3a2de2=>{const _0x381fcd=_0x5e75a4;if(_0x3a2de2['id']!==_0x3d4cfc['id'])return;let {unitId:_0x322c2e,shapeId:_0x3f5228}=_0x3a2de2[_0x381fcd(0x339)];this[_0x381fcd(0x1cb)]({'unitId':_0x322c2e,'subUnitId':_0x322c2e,'drawingId':_0x3f5228});}));}[_0x2b58b8(0x1b2)](_0x22c10b){_0x22c10b['forEach'](_0x110751=>{const _0x7cf17c=_0x73b8;let _0x1b55b9=this[_0x7cf17c(0x12a)](_0x110751[_0x7cf17c(0x383)]);if(!_0x1b55b9)return;let _0x2f7d1a=this[_0x7cf17c(0x324)]['getDrawingByParam'](_0x110751);(_0x2f7d1a==null?void 0x0:_0x2f7d1a['drawingType'])===_0x11efaa[_0x7cf17c(0x14f)]&&this['_docDrawingShapeRenderController'][_0x7cf17c(0x1ce)](_0x2f7d1a,_0x1b55b9[_0x7cf17c(0x10b)]);});}[_0x2b58b8(0x13d)](_0x1c3e11){const _0x303ca1=_0x2b58b8;let _0x2b8e8f=this[_0x303ca1(0x324)][_0x303ca1(0x247)](_0x1c3e11);if((_0x2b8e8f==null?void 0x0:_0x2b8e8f[_0x303ca1(0x142)])!==_0x11efaa['DRAWING_SHAPE'])return;let _0xdb6979=this[_0x303ca1(0x12a)](_0x1c3e11[_0x303ca1(0x383)]);if(!_0xdb6979||_0x2b8e8f['transform']==null)return;let _0x46009f=_0x3ac7e0(_0x1c3e11),_0xe0fe10=_0xdb6979[_0x303ca1(0x10b)][_0x303ca1(0x202)](_0x46009f);_0xe0fe10&&(_0xe0fe10[_0x303ca1(0x2fa)](_0x2b8e8f['srcRect']),_0xe0fe10[_0x303ca1(0x1df)](_0x2b8e8f[_0x303ca1(0x17e)]),_0xe0fe10[_0x303ca1(0x2ee)](!0x0));}['_refreshShapeData'](_0x33f6e5){const _0x82d73b=_0x2b58b8;let _0x2af9ae=this[_0x82d73b(0x12a)](_0x33f6e5[_0x82d73b(0x383)]);if(!_0x2af9ae)return;let _0x821294=_0x3ac7e0(_0x33f6e5),_0x29ff4b=_0x2af9ae['scene'][_0x82d73b(0x202)](_0x821294);_0x29ff4b&&(this[_0x82d73b(0x212)]['refreshShapeFillImage'](_0x29ff4b),this['_docDrawingShapeRenderController'][_0x82d73b(0x224)](_0x29ff4b,{'unitId':_0x33f6e5[_0x82d73b(0x383)],'subUnitId':_0x33f6e5[_0x82d73b(0x21e)],'shapeId':_0x33f6e5[_0x82d73b(0x160)]}),_0x29ff4b[_0x82d73b(0x2ee)](!0x0));}['_getSceneByUnitId'](_0x2eaff6){const _0x4069ba=_0x2b58b8;if(_0x2eaff6==null)return null;let _0x4e62a8=this[_0x4069ba(0x35c)][_0x4069ba(0x1c9)](_0x2eaff6),_0x32dd8b=_0x4e62a8==null?void 0x0:_0x4e62a8[_0x4069ba(0x10b)];return _0x32dd8b==null?null:{'scene':_0x32dd8b};}};Ca=q([K(0x0,_0x5f3c0a),K(0x1,_0x5479fc),K(0x2,_0x1f1d2f),K(0x3,_0xbdb0e2(Z))],Ca);let Q=class extends _0x2f0f12{constructor(_0xd1be00=Hi,_0x5f1c78,_0x734bbf,_0x29c18c,_0x1509a4){const _0x60ccf5=_0x2b58b8;super(),this[_0x60ccf5(0x270)]=_0xd1be00,this[_0x60ccf5(0x181)]=_0x5f1c78,this[_0x60ccf5(0x34d)]=_0x734bbf,this['_configService']=_0x29c18c,this[_0x60ccf5(0x35c)]=_0x1509a4;let {menu:_0x14d13e,..._0x4e2c09}=_0x4cbbbe({},Hi,this['_config']);_0x14d13e&&this[_0x60ccf5(0x25d)][_0x60ccf5(0x154)](_0x60ccf5(0x157),_0x14d13e,{'merge':!0x0}),this[_0x60ccf5(0x25d)][_0x60ccf5(0x154)](Vi,_0x4e2c09),[U,Bi,G,Mr,Pr,Fr][_0x60ccf5(0x30e)](_0x2bc1d0=>this[_0x60ccf5(0x32d)](this[_0x60ccf5(0x34d)]['registerCommand'](_0x2bc1d0)));}[_0x2b58b8(0x1a6)](){const _0x467d3a=_0x2b58b8;let _0x1a71d7=[[ya],[ba],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[X],[Sa]];_0x4136fc(this['_injector'],_0x1a71d7),this[_0x467d3a(0x181)]['get'](ya);}['onReady'](){const _0x5deb2c=_0x2b58b8;this[_0x5deb2c(0x32d)](this[_0x5deb2c(0x35c)][_0x5deb2c(0x218)](_0x19a5e9[_0x5deb2c(0x234)],[Ji])),_0x44a503(this[_0x5deb2c(0x181)],[[ba],[Ca],[Z],[Xi],[Ir],[aa],[X],[Sa]]);}};J(Q,_0x2b58b8(0x326),_0x19a5e9[_0x2b58b8(0x234)]),J(Q,_0x2b58b8(0x21b),_0x2b58b8(0x12d)),J(Q,_0x2b58b8(0x151),Ri),J(Q,_0x2b58b8(0x179),zi),Q=q([_0x5d76b8(_0x23a3e9,_0x2627bb,_0x224c4f,_0x10c85b,_0xd9d11,_0x4a5d16,_0x4f835e,_0x5994c3,_0x33aa0d,_0x3b9966),K(0x1,_0xbdb0e2(_0x57c331)),K(0x2,_0x5f3c0a),K(0x3,_0x2f3c71),K(0x4,_0x5479fc)],Q);let wa=class extends _0x587b62{constructor(_0x3c4e60,_0x2cf552){const _0x30f7fb=_0x2b58b8;super(),this[_0x30f7fb(0x14c)]=_0x3c4e60,this[_0x30f7fb(0x19b)]=_0x2cf552,this[_0x30f7fb(0x304)](),this[_0x30f7fb(0x122)]();}[_0x2b58b8(0x304)](){const _0x31338d=_0x2b58b8;this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x278))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'ObjectLayersIcon':_0x7b836})),this[_0x31338d(0x19b)]['has'](_0x31338d(0x2a7))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'BottomIcon':_0x30111e})),this['_iconManager'][_0x31338d(0x25c)]('MoveDownIcon')||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'MoveDownIcon':_0x23588f})),this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x28b))||this['disposeWithMe'](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'MoveUpIcon':_0x50d193})),this[_0x31338d(0x19b)][_0x31338d(0x25c)]('ShapeFormatSettingIcon')||this[_0x31338d(0x32d)](this['_iconManager'][_0x31338d(0x109)]({'ShapeFormatSettingIcon':_0x38092e})),this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x1ba))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)]['register']({'TopmostIcon':_0x37e31f})),this[_0x31338d(0x32d)](this[_0x31338d(0x19b)]['register'](_a));}[_0x2b58b8(0x122)](){const _0x528df0=_0x2b58b8;this['disposeWithMe'](this[_0x528df0(0x14c)][_0x528df0(0x109)](W,sa)),this['_registerObjectListPanel'](),this[_0x528df0(0x2f1)](),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)]['register'](Qr,ii)),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)]['register'](Zr,ai)),this[_0x528df0(0x32d)](this['_componentManager'][_0x528df0(0x109)]($r,oi)),this['disposeWithMe'](this[_0x528df0(0x14c)][_0x528df0(0x109)](ei,si)),this[_0x528df0(0x32d)](this['_componentManager'][_0x528df0(0x109)](ti,ci)),this['disposeWithMe'](this['_componentManager']['register'](Ar,_0x2439df)),this[_0x528df0(0x267)](),this[_0x528df0(0x14c)][_0x528df0(0x35a)](_0x2c1395)||this[_0x528df0(0x32d)](this[_0x528df0(0x14c)][_0x528df0(0x109)](_0x2c1395,Hr)),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)][_0x528df0(0x109)](jr,va));}[_0x2b58b8(0x2c0)](){const _0x87c3b0=_0x2b58b8;this[_0x87c3b0(0x32d)](this['_componentManager']['register'](Or,ra));}['_registerFloatingToolbar'](){const _0x5a0c8f=_0x2b58b8;this[_0x5a0c8f(0x32d)](this['_componentManager'][_0x5a0c8f(0x109)](da,pa));}[_0x2b58b8(0x267)](){const _0x3cec8a=_0x2b58b8;this[_0x3cec8a(0x32d)](this[_0x3cec8a(0x14c)][_0x3cec8a(0x109)](Lr,Ur)),this[_0x3cec8a(0x32d)](this['_componentManager'][_0x3cec8a(0x109)](Rr,Vr));}};function _0x73b8(_0x392d80,_0x2066fc){_0x392d80=_0x392d80-0x105;const _0x3bfd31=_0x3bfd();let _0x73b804=_0x3bfd31[_0x392d80];return _0x73b804;}wa=q([K(0x0,_0xbdb0e2(_0x391057)),K(0x1,_0xbdb0e2(_0x3fa0b0))],wa);let Ta=class extends _0x587b62{constructor(_0x3b92d1,_0x3fa2ca,_0x5c9f34,_0x5b0abb,_0x2e20b5,_0x55e7ae,_0x1c5ade,_0x23f16c,_0x421e7b){const _0x165e2f=_0x2b58b8;super();let _0x332297=_0x3af52b=>{const _0x2c797a=_0x73b8;let _0x317a92=_0x55e7ae[_0x2c797a(0x283)](_0x3af52b['unitId'],_0x19a5e9[_0x2c797a(0x234)]),_0x2e2ad0=_0x317a92?_0x384956(_0x317a92,_0x3af52b['shapeId']):'';return!!_0x317a92&&_0x353611(_0x23f16c,_0x3af52b['unitId'],[_0x418902(_0x2e2ad0,'drawing',_0x3af52b[_0x2c797a(0x1a7)]),..._0x4fa6cb(_0x317a92,_0x2e2ad0,'drawing',_0x3af52b[_0x2c797a(0x1a7)])]);},_0x3cf0fb=_0x28dc51=>_0x28dc51[_0x165e2f(0x1a7)]&&_0x332297(_0x28dc51)?_0x5c9f34[_0x165e2f(0x152)](_0x28dc51[_0x165e2f(0x383)],_0x28dc51['shapeId'])??null:null,_0x3b32d2=()=>{const _0x59e8aa=_0x165e2f;let _0x8464be=_0x2e20b5[_0x59e8aa(0x262)](),_0x1d289b=_0x8464be[_0x59e8aa(0x364)]===0x1?_0x8464be[0x0]:null;return(_0x1d289b==null?void 0x0:_0x1d289b[_0x59e8aa(0x142)])===_0x11efaa['DRAWING_SHAPE']&&_0x1d289b[_0x59e8aa(0x383)]===_0x3b92d1[_0x59e8aa(0x383)]?{'unitId':_0x1d289b[_0x59e8aa(0x383)],'subUnitId':_0x1d289b[_0x59e8aa(0x21e)],'shapeId':_0x1d289b[_0x59e8aa(0x160)]}:null;};this[_0x165e2f(0x32d)](_0x3dbd87(_0x3b92d1,_0x3fa2ca,{'changes$':_0x3f58bc(_0x2e20b5[_0x165e2f(0x2f3)],_0x5b0abb['editingParams$'],_0x23f16c[_0x165e2f(0x27f)]),'isActive':()=>{const _0x34728f=_0x165e2f;var _0x237122;return((_0x237122=_0x55e7ae['getFocusedUnit']())==null?void 0x0:_0x237122['getUnitId']())===_0x3b92d1['unitId']&&!_0x1c5ade[_0x34728f(0x237)](_0x386d22)&&_0x2e20b5[_0x34728f(0x262)]()['some'](_0x2cf2cb=>_0x2cf2cb[_0x34728f(0x383)]===_0x3b92d1['unitId']);},'getSelectedTarget':_0x3b32d2,'getSource':()=>{let _0x39fec1=_0x3b32d2();return _0x39fec1?_0x3cf0fb(_0x39fec1):null;},'getTarget':_0x4a8d53=>{const _0x9413=_0x165e2f;let _0x1f28e9=_0x3b92d1[_0x9413(0x10b)][_0x9413(0x2e2)](new _0xd9a358(_0x4a8d53[_0x9413(0x137)],_0x4a8d53['offsetY']));if(!(_0x1f28e9 instanceof Y))return null;let _0x3c1aec={'unitId':_0x3b92d1[_0x9413(0x383)],'subUnitId':_0x3b92d1[_0x9413(0x383)],'shapeId':_0x1f28e9['shapeId']};return _0x332297(_0x3c1aec)?_0x3c1aec:null;},'getShape':_0x3cf0fb,'update':(_0x4a1c0c,_0x41da53,_0x46df68)=>_0x421e7b[_0x165e2f(0x362)](_0x544402['id'],{..._0x4a1c0c,'shapeData':_0x46df68,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x41da53}})}));}};Ta=q([K(0x1,_0xbdb0e2(_0x292d84)),K(0x2,_0xbdb0e2(_0xc58a76)),K(0x3,_0xbdb0e2(X)),K(0x4,_0x1f1d2f),K(0x5,_0x52a285),K(0x6,_0x311686),K(0x7,_0x562515),K(0x8,_0x5f3c0a)],Ta);function Ea(_0x10589e,_0x28148e){const _0x2ad5dd=_0x2b58b8;let _0x5f463f=_0x10589e;for(;_0x5f463f;){if(_0x28148e(_0x5f463f))return _0x5f463f;_0x5f463f=typeof _0x5f463f[_0x2ad5dd(0x1d8)]==_0x2ad5dd(0x195)?_0x5f463f[_0x2ad5dd(0x1d8)]():null;}return null;}function Da(_0x2601e9){return Ea(_0x2601e9,_0x1f7b0b=>_0x1f7b0b instanceof Y);}function Oa(_0x4d0000){const _0x40293a=_0x2b58b8;return(_0x4d0000==null?void 0x0:_0x4d0000[_0x40293a(0x328)])==null;}let ka=class extends _0x587b62{constructor(_0x124265,_0x5448e7,_0x199e7e,_0x525c51,_0x58641a){const _0x2717ef=_0x2b58b8;super(),this[_0x2717ef(0x37f)]=_0x124265,this['_shapeTextEditingService']=_0x5448e7,this[_0x2717ef(0x324)]=_0x199e7e,this[_0x2717ef(0x164)]=_0x525c51,this['_docsShapeService']=_0x58641a,J(this,_0x2717ef(0x106),null),J(this,_0x2717ef(0x216),null),this[_0x2717ef(0x27c)](),this['_initSelection'](),this[_0x2717ef(0x2e6)]();}[_0x2b58b8(0x12f)](){this['_endLayoutInteraction'](),super['dispose']();}['_initEvents'](){const _0x33ce20=_0x2b58b8;let {scene:_0x5030f9}=this[_0x33ce20(0x37f)];this['disposeWithMe'](_0x5030f9[_0x33ce20(0x369)][_0x33ce20(0x321)]((_0x9ac695,_0x2e9e02)=>{const _0x327e86=_0x33ce20;let {offsetX:_0x2fcfdb,offsetY:_0x2710fb}=_0x9ac695,_0x3cc421=_0xd9a358[_0x327e86(0x1ca)]([_0x2fcfdb,_0x2710fb]),_0x19f6a0=Da(_0x5030f9[_0x327e86(0x2e2)](_0x3cc421))??this[_0x327e86(0x2e0)](_0x3cc421);if(_0x19f6a0){_0x2e9e02[_0x327e86(0x158)]();let _0x3ba83a=this[_0x327e86(0x33f)]['getShapeModel'](_0x19f6a0[_0x327e86(0x383)],_0x19f6a0[_0x327e86(0x21e)],_0x19f6a0[_0x327e86(0x1a7)]);if(!_0x3ba83a||_0x3a6b70(_0x3ba83a[_0x327e86(0x11f)]())||!Oa(_0x3ba83a[_0x327e86(0x170)]()))return;this[_0x327e86(0x1aa)][_0x327e86(0x2e8)]({'visible':!0x0,'unitId':_0x19f6a0[_0x327e86(0x383)],'subUnitId':_0x19f6a0[_0x327e86(0x21e)],'shapeId':_0x19f6a0[_0x327e86(0x1a7)],'shapeKey':_0x19f6a0[_0x327e86(0x11b)]});}}));}[_0x2b58b8(0x2e0)](_0xb25c9c){const _0x557774=_0x2b58b8;let {scene:_0x2ee3b3}=this[_0x557774(0x37f)];return this[_0x557774(0x324)][_0x557774(0x262)]()['map'](_0x2195bd=>_0x2ee3b3[_0x557774(0x202)](_0x3ac7e0(_0x2195bd)))[_0x557774(0x30b)](_0x241d89=>_0x241d89 instanceof Y&&_0x241d89[_0x557774(0x299)](_0xb25c9c))??null;}['_initSelection'](){const _0x39b96f=_0x2b58b8;this[_0x39b96f(0x32d)](this[_0x39b96f(0x324)][_0x39b96f(0x2f3)]['subscribe'](_0x160ce9=>{const _0x571ece=_0x39b96f;if(_0x160ce9[_0x571ece(0x364)]===0x1){let _0x3ef938=_0x160ce9[0x0],_0x3fca97=this[_0x571ece(0x324)][_0x571ece(0x247)](_0x3ef938);if((_0x3fca97==null?void 0x0:_0x3fca97[_0x571ece(0x142)])===_0x11efaa['DRAWING_SHAPE']){let _0x4b9a33=this['_shapeTextEditingService'][_0x571ece(0x2c5)]();if((_0x4b9a33==null?void 0x0:_0x4b9a33[_0x571ece(0x1a7)])===_0x3ef938[_0x571ece(0x160)]&&_0x4b9a33['visible'])return;_0x3a6b70(this[_0x571ece(0x33f)][_0x571ece(0x11f)](_0x3ef938[_0x571ece(0x383)],_0x3ef938[_0x571ece(0x21e)],_0x3ef938[_0x571ece(0x160)]))&&this[_0x571ece(0x1aa)][_0x571ece(0x2e8)](null);}else this[_0x571ece(0x1aa)][_0x571ece(0x26e)]();}else this[_0x571ece(0x1aa)][_0x571ece(0x26e)]();})),this[_0x39b96f(0x32d)](this[_0x39b96f(0x324)]['remove$'][_0x39b96f(0x138)](_0x47349d=>{const _0x397196=_0x39b96f;let _0xbc1219=this[_0x397196(0x1aa)][_0x397196(0x2c5)]();_0xbc1219&&_0x47349d[_0x397196(0x310)](_0x27bd3e=>_0x27bd3e[_0x397196(0x160)]===_0xbc1219['shapeId'])&&this[_0x397196(0x1aa)][_0x397196(0x2e8)](null);}));}[_0x2b58b8(0x2e6)](){const _0x5f34c3=_0x2b58b8;this[_0x5f34c3(0x32d)](this['_shapeTextEditingService'][_0x5f34c3(0x371)][_0x5f34c3(0x138)](_0x4a06e1=>{const _0x29304e=_0x5f34c3;(_0x4a06e1==null?void 0x0:_0x4a06e1[_0x29304e(0x306)])===!0x0&&_0x4a06e1['unitId']===this['_context'][_0x29304e(0x383)]?this[_0x29304e(0x216)]??=this[_0x29304e(0x164)][_0x29304e(0x239)]():this[_0x29304e(0x292)]();let {scene:_0x8645a9}=this['_context'];if(this['_lastEditingShapeKey']){let _0x59dc8a=_0x8645a9['getObjectIncludeInGroup'](this[_0x29304e(0x106)]);_0x59dc8a&&_0x59dc8a[_0x29304e(0x2e8)](!0x1);}if(_0x4a06e1){let _0x38a044=!!_0x4a06e1[_0x29304e(0x306)],_0x4a65a9=_0x8645a9[_0x29304e(0x202)](_0x4a06e1[_0x29304e(0x144)]);_0x4a65a9&&(_0x4a65a9[_0x29304e(0x2e8)](_0x38a044),this[_0x29304e(0x106)]=_0x4a06e1[_0x29304e(0x144)]);}else this[_0x29304e(0x106)]=null;}));}['_endLayoutInteraction'](){const _0xa5f135=_0x2b58b8;var _0x4e5bfe;(_0x4e5bfe=this['_layoutInteraction'])==null||_0x4e5bfe['dispose'](),this[_0xa5f135(0x216)]=null;}};ka=q([K(0x1,_0xbdb0e2(X)),K(0x2,_0x1f1d2f),K(0x3,_0xbdb0e2(_0x4c3397)),K(0x4,_0xbdb0e2(_0xc58a76))],ka);let Aa=class extends _0x4f9593{constructor(_0x513081,_0x36b6c1,_0xba0ef2,_0x15c7d7,_0x24dc24,_0x5da567,_0x11fe83,_0x3d73f8,_0x82f99f,_0x4c7a63){super(_0x513081,_0x36b6c1,_0xba0ef2,_0x15c7d7,_0x24dc24,_0x5da567,_0x11fe83,_0x3d73f8,_0x82f99f,_0x4c7a63,{'componentKey':Ar,'editorUnitId':kr});}};Aa=q([K(0x1,_0xbdb0e2(_0x30b345)),K(0x2,_0xbdb0e2(_0x44b27e)),K(0x3,_0xbdb0e2(_0x56a574)),K(0x4,_0x5f3c0a),K(0x5,_0xbdb0e2(_0x20631e)),K(0x6,_0xbdb0e2(_0x1edd14)),K(0x7,_0xbdb0e2(_0x267fb9)),K(0x8,_0xbdb0e2(_0x2215d8)),K(0x9,_0xbdb0e2(X))],Aa);let ja=class extends _0x436d06{constructor(_0x690a70,_0x2131d4,_0x529f0b,_0x552a7c,_0x1915a3){const _0x2e1d1d=_0x2b58b8;super(_0x690a70,_0x2131d4,{'editing$':_0x529f0b[_0x2e1d1d(0x371)],'resolve':_0x14e620=>{const _0x2564f4=_0x2e1d1d;var _0x3f34fc;let _0x217fed=new _0xd9a358(_0x14e620[_0x2564f4(0x137)],_0x14e620[_0x2564f4(0x29c)]),_0x4295c6=((_0x3f34fc=_0x690a70[_0x2564f4(0x10b)][_0x2564f4(0x27d)](_0x217fed))==null?void 0x0:_0x3f34fc[_0x2564f4(0x230)](_0x217fed))??_0x217fed,_0xe9a916=_0xb163f0(_0x690a70['scene'][_0x2564f4(0x2e2)](_0x217fed)??null,_0x4295c6);if(!(_0xe9a916 instanceof Y))return null;let _0x44a6aa=_0xe9a916[_0x2564f4(0x269)](_0x4295c6);if(!_0x44a6aa)return null;let _0x542bac=_0xe9a916,_0x18e794={'componentKey':_0x1151ff[_0x2564f4(0x323)],'direction':_0x2564f4(0x2ac),'offset':[0x0,0xa],'onClickOutside':()=>_0x2131d4['hideInfoPopup']()};return{'object':_0xe9a916,'info':{..._0x44a6aa,'unitId':_0xe9a916[_0x2564f4(0x383)],'subUnitId':_0xe9a916[_0x2564f4(0x21e)],'shapeKey':_0xe9a916[_0x2564f4(0x11b)],'readonly':!0x0,'copyable':_0x196f76(_0x1915a3,_0xe9a916[_0x2564f4(0x383)],_0xe9a916['unitId'],_0x5c2975[_0x2564f4(0x26a)])},'attachPopup':()=>_0x552a7c['attachPopupToObject'](_0x542bac,_0x18e794,_0x542bac['unitId'])};}});}};ja=q([K(0x1,_0xbdb0e2(_0x1edd14)),K(0x2,_0xbdb0e2(X)),K(0x3,_0xbdb0e2(_0x44b27e)),K(0x4,_0x562515)],ja);let Ma=class extends _0x587b62{constructor(_0xeef241,_0x213bc6,_0x4cc73f,_0x1ded50,_0xf90252,_0x21aab0,_0x18adb6,_0x191735,_0x2749dd,_0x4f44a7,_0x2537b8,_0x24cf81){const _0x4ef146=_0x2b58b8;super(),this[_0x4ef146(0x165)]=_0xeef241,this[_0x4ef146(0x2a5)]=_0x213bc6,this['_menuManagerService']=_0x4cc73f,this[_0x4ef146(0x33f)]=_0x1ded50,this[_0x4ef146(0x204)]=_0xf90252,this[_0x4ef146(0x34d)]=_0x21aab0,this['_drawingManagerService']=_0x18adb6,this[_0x4ef146(0x2d0)]=_0x191735,this[_0x4ef146(0x35c)]=_0x2749dd,this['_contextService']=_0x4f44a7,this[_0x4ef146(0x1aa)]=_0x2537b8,this['_permissionService']=_0x24cf81,J(this,_0x4ef146(0x320),null),J(this,_0x4ef146(0x15d),null),J(this,'_isOpenedShapeEditPanel',!0x1),J(this,_0x4ef146(0x368),0x0),J(this,_0x4ef146(0x329),new Map()),J(this,_0x4ef146(0x313),new Map()),this[_0x4ef146(0x15b)](),this[_0x4ef146(0x32d)](this[_0x4ef146(0x165)][_0x4ef146(0x228)](_0x19a5e9[_0x4ef146(0x234)])['subscribe'](_0x415839=>{const _0x93267=_0x4ef146;if(!_0x415839){var _0x2c5830;(_0x2c5830=this[_0x93267(0x320)])==null||_0x2c5830[_0x93267(0x12f)]();}})),this['_registerOperations'](),this['disposeWithMe'](_0x59c4f1(this[_0x4ef146(0x35c)],_0x19a5e9['UNIVER_DOC'],_0x330f2f=>this[_0x4ef146(0x34f)](_0x330f2f))),this['disposeWithMe'](this[_0x4ef146(0x1aa)][_0x4ef146(0x371)][_0x4ef146(0x138)](_0x51d387=>{const _0x5da3ce=_0x4ef146;_0x51d387&&this[_0x5da3ce(0x1eb)](void 0x0,!0x0);})),this[_0x4ef146(0x32d)](this[_0x4ef146(0x121)][_0x4ef146(0x27f)][_0x4ef146(0x138)](()=>{const _0x1d7c2d=_0x4ef146;this['_drawingManagerService'][_0x1d7c2d(0x262)]()[_0x1d7c2d(0x310)](_0x3928e4=>_0x3928e4['drawingType']===_0x11efaa['DRAWING_SHAPE']&&this[_0x1d7c2d(0x165)][_0x1d7c2d(0x1b5)](_0x3928e4[_0x1d7c2d(0x383)])===_0x19a5e9[_0x1d7c2d(0x234)]&&!this[_0x1d7c2d(0x1f1)](_0x3928e4[_0x1d7c2d(0x383)],_0x3928e4['drawingId']))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x1d7c2d(0x2f7)]());}));}[_0x2b58b8(0x15b)](){const _0x3c4c89=_0x2b58b8;this[_0x3c4c89(0x34e)]['mergeMenu'](Li);}[_0x2b58b8(0x2a6)](_0x5f47c9,_0x2b7218,_0x1e07fb,_0x4b516f){const _0x33005f=_0x2b58b8;return[{'label':_0x33005f(0x26d),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb},'disable':_0x4b516f===_0x11efaa[_0x33005f(0x32b)]},{'label':_0x33005f(0x1f5),'index':0x1,'commandId':_0x6ceb84['id'],'commandParams':{'unitId':_0x5f47c9,'drawings':[{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb}]},'disable':!0x1},{'label':_0x33005f(0x1c3),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb},'disable':!0x1}];}[_0x2b58b8(0x325)](_0x3bc161,_0x1e7f40,_0x116d72){const _0x88bd43=_0x2b58b8;let _0x2e7bf6=this[_0x88bd43(0x33f)][_0x88bd43(0x1ac)](_0x3bc161,_0x1e7f40,_0x116d72),_0x269505=this[_0x88bd43(0x33f)][_0x88bd43(0x152)](_0x3bc161,_0x1e7f40,_0x116d72);return _0x2e7bf6!==void 0x0&&_0x269505!==void 0x0?{'shapeData':_0x269505,'shapeId':_0x116d72,'shapeType':_0x2e7bf6,'unitId':_0x3bc161,'subUnitId':_0x1e7f40,'version':this[_0x88bd43(0x368)],'disableShapeOption':!0x1}:null;}[_0x2b58b8(0x1eb)](_0x2751b7,_0x5b7a4c=!0x1){const _0x57ea49=_0x2b58b8;if(_0x2751b7==null){[...this['_disposePopupsByUnit'][_0x57ea49(0x279)]()]['forEach'](_0x2e6c44=>this[_0x57ea49(0x1eb)](_0x2e6c44,_0x5b7a4c));return;}let _0x224138=this[_0x57ea49(0x329)][_0x57ea49(0x113)](_0x2751b7);if(_0x224138){for(let _0x4bb27e=_0x224138[_0x57ea49(0x364)]-0x1;_0x4bb27e>=0x0;--_0x4bb27e){let _0x354d3b=_0x224138[_0x4bb27e];(_0x5b7a4c||_0x354d3b[_0x57ea49(0x1a0)]())&&(_0x354d3b['dispose'](),_0x224138['splice'](_0x4bb27e,0x1));}_0x224138[_0x57ea49(0x364)]===0x0&&(this[_0x57ea49(0x329)][_0x57ea49(0x1a2)](_0x2751b7),this['_popupTargetKeys'][_0x57ea49(0x1a2)](_0x2751b7));}}[_0x2b58b8(0x171)](_0x2b8097){const _0x4ee8e0=_0x2b58b8;let _0x29b573=this[_0x4ee8e0(0x329)]['get'](_0x2b8097);if(_0x29b573)return _0x29b573;let _0x2397b0=[];return this[_0x4ee8e0(0x329)][_0x4ee8e0(0x1dd)](_0x2b8097,_0x2397b0),_0x2397b0;}[_0x2b58b8(0x34f)](_0x2f1293){const _0x49ed95=_0x2b58b8;var _0x261f98;let _0x309086=new _0x5570bd(),_0xf181d=(_0x261f98=this[_0x49ed95(0x35c)][_0x49ed95(0x298)](_0x19a5e9[_0x49ed95(0x234)])[_0x49ed95(0x30b)](_0x27493b=>_0x27493b['scene'][_0x49ed95(0x319)]()===_0x2f1293))==null?void 0x0:_0x261f98['unitId'];return _0xf181d?(_0x309086[_0x49ed95(0x11a)](_0x2f1293['createControl$'][_0x49ed95(0x138)](()=>this[_0x49ed95(0x1d0)](_0x2f1293,_0xf181d))),_0x309086[_0x49ed95(0x11a)](_0x2f1293[_0x49ed95(0x365)][_0x49ed95(0x138)](()=>{this['_clearPopups'](_0xf181d),queueMicrotask(()=>{const _0x486dd9=_0x73b8;_0x2f1293[_0x486dd9(0x11d)]()[_0x486dd9(0x25f)]>0x0||!this['_drawingManagerService'][_0x486dd9(0x262)]()['some'](_0x214de0=>_0x214de0[_0x486dd9(0x383)]===_0xf181d)||(this[_0x486dd9(0x2ff)][_0x486dd9(0x2d1)](_0x1ec544,!0x1),this[_0x486dd9(0x324)]['focusDrawing'](null));});})),_0x309086[_0x49ed95(0x11a)](_0x2f1293[_0x49ed95(0x37a)][_0x49ed95(0x138)](()=>{this['_clearPopups'](_0xf181d,!0x0);})),_0x309086):_0x309086;}[_0x2b58b8(0x1d0)](_0x63f8e7,_0x3a8a8d){const _0x4b73ea=_0x2b58b8;let _0x1180d8=_0x63f8e7[_0x4b73ea(0x11d)]();if(this[_0x4b73ea(0x37e)]){this[_0x4b73ea(0x1eb)](_0x3a8a8d,!0x0);return;}if(_0x1180d8['size']>0x1){this['_clearPopups'](_0x3a8a8d);return;}let _0x386315=_0x1180d8[_0x4b73ea(0x199)]()[_0x4b73ea(0x225)]()['value'];if(!_0x386315){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let _0x270874=this[_0x4b73ea(0x324)][_0x4b73ea(0x2a2)](_0x386315['oKey']);if(!_0x270874||_0x270874['drawingType']!==_0x11efaa[_0x4b73ea(0x14f)]){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let {unitId:_0x285db7,subUnitId:_0x42a460,drawingId:_0x490f5a,drawingType:_0x26b6fc}=_0x270874;if(!this[_0x4b73ea(0x1f1)](_0x285db7,_0x490f5a)){this[_0x4b73ea(0x1eb)](_0x3a8a8d,!0x0);return;}let _0x28b0e6=this[_0x4b73ea(0x325)](_0x285db7,_0x42a460,_0x490f5a);if(!_0x28b0e6){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let _0x46b96f=this[_0x4b73ea(0x329)]['get'](_0x3a8a8d),_0x31dc1a=_0x285db7+':'+_0x42a460+':'+_0x490f5a;if(this[_0x4b73ea(0x313)][_0x4b73ea(0x113)](_0x3a8a8d)===_0x31dc1a&&_0x46b96f&&_0x46b96f[_0x4b73ea(0x364)]>0x0)return;this['_clearPopups'](_0x3a8a8d);let _0x4ed101=this[_0x4b73ea(0x35c)][_0x4b73ea(0x1c9)](_0x285db7),_0x4dd1c6=((_0x4ed101==null?void 0x0:_0x4ed101[_0x4b73ea(0x29a)])===!0x1?_0x4ed101[_0x4b73ea(0x18b)](_0x44b27e):this[_0x4b73ea(0x2d0)])['attachPopupToObject'](_0x386315,this[_0x4b73ea(0x305)](_0x28b0e6,_0x26b6fc),_0x285db7);this[_0x4b73ea(0x32d)](_0x4dd1c6),this['_getDisposePopups'](_0x3a8a8d)[_0x4b73ea(0x335)](_0x4dd1c6),this[_0x4b73ea(0x313)][_0x4b73ea(0x1dd)](_0x3a8a8d,_0x31dc1a),this[_0x4b73ea(0x324)][_0x4b73ea(0x262)]()['some'](_0x36937f=>_0x36937f[_0x4b73ea(0x383)]===_0x285db7&&_0x36937f[_0x4b73ea(0x21e)]===_0x42a460&&_0x36937f[_0x4b73ea(0x160)]===_0x490f5a)||this['_drawingManagerService'][_0x4b73ea(0x2e5)]([{'unitId':_0x285db7,'subUnitId':_0x42a460,'drawingId':_0x490f5a}]);}[_0x2b58b8(0x305)](_0x8aed6d,_0x531dd7){const _0x1c9fbc=_0x2b58b8;return{'componentKey':da,'direction':_0x1c9fbc(0x254),'offset':[0x0,_0x199a5b],'extraProps':{'unitId':_0x8aed6d[_0x1c9fbc(0x383)],'subUnitId':_0x8aed6d['subUnitId'],'drawingId':_0x8aed6d[_0x1c9fbc(0x1a7)],'drawingType':_0x531dd7,'shapeType':_0x8aed6d[_0x1c9fbc(0x1d6)],'shapeData':_0x8aed6d[_0x1c9fbc(0x1ae)]}};}['_canEditShape'](_0xf75ae0,_0x170ee1){const _0x474ce6=_0x2b58b8;let _0x253d41=this['_univerInstanceService'][_0x474ce6(0x283)](_0xf75ae0,_0x19a5e9[_0x474ce6(0x234)]);if(!_0x253d41)return!0x1;let _0x4e1b52=_0x384956(_0x253d41,_0x170ee1);return _0x353611(this[_0x474ce6(0x121)],_0xf75ae0,[..._0x4fa6cb(_0x253d41,_0x4e1b52,'drawing',_0x170ee1),_0x418902(_0x4e1b52,_0x474ce6(0x33e),_0x170ee1)]);}[_0x2b58b8(0x2b0)](){const _0x19fee1=_0x2b58b8;this[_0x19fee1(0x32d)](this['_commandService'][_0x19fee1(0x19e)](_0x2f59c9=>{const _0x4c1d5e=_0x19fee1;if(_0x2f59c9['id']===G['id']){let {unitId:_0x3d62e8,subUnitId:_0xb6c18b,drawingId:_0x109a7b}=_0x2f59c9['params'];this[_0x4c1d5e(0x368)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x3d62e8,_0xb6c18b,_0x109a7b),this[_0x4c1d5e(0x1eb)](void 0x0,!0x0),this[_0x4c1d5e(0x2eb)]();}if(_0x2f59c9['id']===Bi['id']&&(this[_0x4c1d5e(0x15d)]=null,this[_0x4c1d5e(0x2f7)]()),_0x2f59c9['id']===_0x3d4cfc['id']){let {unitId:_0x52bba4,shapeId:_0x447678}=_0x2f59c9['params'];if(this['_activeShapeInfo']&&this[_0x4c1d5e(0x15d)]['shapeId']===_0x447678){let _0xb408c6=this['_getShapeInfo'](_0x52bba4,this[_0x4c1d5e(0x15d)][_0x4c1d5e(0x21e)],_0x447678);_0xb408c6&&(this['_shapeEditPanelVersion']+=0x1,_0xb408c6[_0x4c1d5e(0x179)]=this[_0x4c1d5e(0x368)],this[_0x4c1d5e(0x15d)]=_0xb408c6,this[_0x4c1d5e(0x37e)]&&this[_0x4c1d5e(0x2eb)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x19fee1(0x2f3)][_0x19fee1(0x138)](_0x550bed=>{const _0x4b5ed6=_0x19fee1;if(this[_0x4b5ed6(0x37e)]===!0x1)return;if(_0x550bed[_0x4b5ed6(0x364)]===0x0){this[_0x4b5ed6(0x15d)]=null,this[_0x4b5ed6(0x2f7)]();return;}if(_0x550bed['length']===0x1&&_0x550bed[0x0]['drawingType']===_0x11efaa[_0x4b5ed6(0x14f)]&&(this[_0x4b5ed6(0x368)]+=0x1,this[_0x4b5ed6(0x15d)]=this[_0x4b5ed6(0x325)](_0x550bed[0x0][_0x4b5ed6(0x383)],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this[_0x4b5ed6(0x15d)])){this[_0x4b5ed6(0x2eb)]();return;}let _0x1e1aac=_0x550bed['filter'](_0xbc0036=>_0xbc0036[_0x4b5ed6(0x142)]===_0x11efaa[_0x4b5ed6(0x14f)]);if(_0x550bed[_0x4b5ed6(0x364)]>0x1&&_0x1e1aac[_0x4b5ed6(0x364)]===_0x550bed['length']){if(this[_0x4b5ed6(0x368)]+=0x1,this[_0x4b5ed6(0x15d)]=this['_getShapeInfo'](_0x550bed[0x0][_0x4b5ed6(0x383)],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this['_activeShapeInfo']){this[_0x4b5ed6(0x2eb)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x4b5ed6(0x15d)]=this[_0x4b5ed6(0x325)](_0x550bed[0x0]['unitId'],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this[_0x4b5ed6(0x15d)]){this['_activeShapeInfo'][_0x4b5ed6(0x2c4)]=!0x0,this[_0x4b5ed6(0x2eb)]();return;}}this['_closeShapeEditPanel']();}));}['_openShapeEditPanel'](){const _0x11e08b=_0x2b58b8;this['_activeShapeInfo']&&(this[_0x11e08b(0x320)]=this[_0x11e08b(0x2a5)][_0x11e08b(0x2ca)]({'id':W,'header':{'title':this[_0x11e08b(0x204)]['t'](_0x11e08b(0x29e))},'width':0x184,'children':{'label':W,...this[_0x11e08b(0x15d)]},'onClose':()=>{const _0x4ff980=_0x11e08b;this[_0x4ff980(0x324)]['focusDrawing'](null),this[_0x4ff980(0x2ff)][_0x4ff980(0x2d1)](_0x1ec544,!0x1),this[_0x4ff980(0x320)]=null;}}),this[_0x11e08b(0x37e)]=!0x0);}['_closeShapeEditPanel'](){const _0x1a9eb2=_0x2b58b8;this[_0x1a9eb2(0x37e)]=!0x1,this[_0x1a9eb2(0x2a5)][_0x1a9eb2(0x214)](W),this['_sidebarDisposable']=null,this[_0x1a9eb2(0x2ff)][_0x1a9eb2(0x2d1)](_0x1ec544,!0x1),this['_drawingManagerService'][_0x1a9eb2(0x2e5)](null);}};Ma=q([K(0x0,_0x52a285),K(0x1,_0xbdb0e2(_0x4bee7b)),K(0x2,_0x955a33),K(0x3,_0xbdb0e2(_0xc58a76)),K(0x4,_0xbdb0e2(_0x5af3e2)),K(0x5,_0x5f3c0a),K(0x6,_0x1f1d2f),K(0x7,_0xbdb0e2(_0x44b27e)),K(0x8,_0x5479fc),K(0x9,_0x311686),K(0xa,_0xbdb0e2(X)),K(0xb,_0x562515)],Ma);let Na=class extends _0x587b62{constructor(_0x99c53f,_0x5ed2e7){const _0x8ad870=_0x2b58b8;super(),this[_0x8ad870(0x33f)]=_0x99c53f,this['_localeService']=_0x5ed2e7,this[_0x8ad870(0x32d)](_0x390b1(_0x3e088f((_0x5cc37f,_0x5f025e,_0x1aba4f)=>this['_measure'](_0x5cc37f,_0x5f025e,_0x1aba4f))));}[_0x2b58b8(0x35d)](_0xc274e,_0x52900e,_0x366cb3){const _0x493fde=_0x2b58b8;let _0xaa6f0d=this[_0x493fde(0x33f)][_0x493fde(0x348)](_0xc274e,_0x52900e);if(!_0xaa6f0d)return null;let _0x1c85ef=_0xaa6f0d[_0x493fde(0x170)](),_0x3c46cd=_0x49519b(_0x1c85ef),_0x406c93=_0x1c85ef['shapeText'];if(!_0x406c93||_0x3c46cd[_0x493fde(0x27a)]!==_0x52fc4f[_0x493fde(0x297)])return null;let _0x2168ca=_0x366cb3[_0x493fde(0x2fc)],_0x1e7eb6=_0x366cb3[_0x493fde(0x141)];_0xaa6f0d['updateContext']({'width':_0x2168ca,'height':_0x1e7eb6});let _0x390669=_0xaa6f0d['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x2168ca,'height':_0x1e7eb6}),_0x5a1926=_0x361202(_0x493fde(0x25e)in _0x406c93?_0x406c93[_0x493fde(0x25e)]:void 0x0),_0x427f80=(_0x5a1926==null?void 0x0:_0x5a1926[_0x493fde(0x36c)])??('isRichText'in _0x406c93?_0x20f7f3(_0x406c93,_0x52900e+_0x493fde(0x11c)):null);if(!_0x427f80)return null;let _0x1c7a2d=_0x57aa48({'documentData':_0x427f80,'height':_0x1e7eb6,'shapeData':_0x1c85ef,'textRect':_0x390669,'width':_0x2168ca,'widthBuffer':0x0});_0x1c7a2d&&({width:_0x2168ca,height:_0x1e7eb6}=_0x1c7a2d,_0xaa6f0d['updateContext']({'width':_0x2168ca,'height':_0x1e7eb6}),_0x390669=_0xaa6f0d[_0x493fde(0x2b9)]({'left':0x0,'top':0x0,'width':_0x2168ca,'height':_0x1e7eb6}));let _0x34cc85=_0x406c93[_0x493fde(0x20c)]!==!0x1,_0x4b51e3=_0x1bee13(_0x427f80,{'isHorizontal':_0x34cc85,'textRect':_0x390669,'verticalAlign':_0x5a1926==null?void 0x0:_0x5a1926['va'],'horizontalAlign':_0x5a1926==null?void 0x0:_0x5a1926['ha'],'wrapStrategy':_0x46d47a(_0x1c85ef)}),_0x1db65c=new _0x4107fb(_0x4b51e3),_0x33bcaa=new _0x2f6ee9(_0x1db65c),_0x5d470c=_0x297bbe[_0x493fde(0x1cd)](_0x33bcaa,this[_0x493fde(0x204)]);try{var _0x30b954,_0x25b200;_0x5d470c['calculate']();let _0xd47b8f=((_0x30b954=_0x5d470c['getSkeletonData']())==null?void 0x0:_0x30b954['pages'])??[],_0x4a9e0b=_0xd47b8f[_0xd47b8f['length']-0x1],_0x5378f0=_0x4a9e0b?Math[_0x493fde(0x1d3)](0x0,((_0x25b200=_0x5abd28(_0x4a9e0b))==null?void 0x0:_0x25b200[_0x493fde(0x240)])??0x0):0x0,_0x3fb210=_0x5d470c[_0x493fde(0x133)]()[_0x493fde(0x327)]+_0x5378f0-(_0x34cc85?_0x390669[_0x493fde(0x174)]:_0x390669[_0x493fde(0x177)]);return Number[_0x493fde(0x233)](_0x3fb210)?_0x34cc85?{'width':_0x2168ca,'height':Math[_0x493fde(0x1d3)](0x1,_0x1e7eb6+_0x3fb210)}:{'width':Math['max'](0x1,_0x2168ca+_0x3fb210),'height':_0x1e7eb6}:null;}finally{_0x5d470c[_0x493fde(0x12f)](),_0x33bcaa[_0x493fde(0x12f)](),_0x1db65c[_0x493fde(0x12f)]();}}};Na=q([K(0x0,_0xbdb0e2(_0xc58a76)),K(0x1,_0xbdb0e2(_0x5af3e2))],Na);let $=class extends _0x2f0f12{constructor(_0x33674d=Hi,_0x327e93,_0x57e6d4,_0x273e79,_0x3c085b){const _0x5da4f2=_0x2b58b8;super(),this[_0x5da4f2(0x270)]=_0x33674d,this['_injector']=_0x327e93,this['_commandService']=_0x57e6d4,this[_0x5da4f2(0x25d)]=_0x273e79,this[_0x5da4f2(0x35c)]=_0x3c085b;let {menu:_0xb05b2d,..._0x467322}=_0x4cbbbe({},Hi,this[_0x5da4f2(0x270)]);_0xb05b2d&&this['_configService'][_0x5da4f2(0x154)](_0x5da4f2(0x157),_0xb05b2d,{'merge':!0x0}),this[_0x5da4f2(0x25d)][_0x5da4f2(0x154)](Vi,_0x467322),this[_0x5da4f2(0x21a)]();}[_0x2b58b8(0x1a6)](){const _0x27aac7=_0x2b58b8;_0x4136fc(this[_0x27aac7(0x181)],this[_0x27aac7(0x161)]()),this[_0x27aac7(0x181)][_0x27aac7(0x113)](wa),this[_0x27aac7(0x34a)]();}['_getDependencies'](){return[[wa],[Ma],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[Na],[X],[Sa]];}[_0x2b58b8(0x2f4)](){const _0x556e9b=_0x2b58b8;this[_0x556e9b(0x200)]()[_0x556e9b(0x30e)](_0x429cd5=>{const _0xce37c2=_0x556e9b;this[_0xce37c2(0x32d)](this['_renderManagerService'][_0xce37c2(0x218)](_0x19a5e9[_0xce37c2(0x234)],_0x429cd5));}),_0x44a503(this['_injector'],[[Ma],[Ca],[Z],[Xi],[Ir],[aa],[Na],[X],[Sa]]);}[_0x2b58b8(0x200)](){return[[Ji],[ka],[ja],[Ta]];}[_0x2b58b8(0x235)](){const _0x23d16c=_0x2b58b8;this['disposeWithMe'](this[_0x23d16c(0x35c)][_0x23d16c(0x218)](_0x19a5e9[_0x23d16c(0x234)],[Aa]));}[_0x2b58b8(0x21a)](){const _0x4e44e8=_0x2b58b8;[U,Bi,G,Mr,Pr,Fr][_0x4e44e8(0x30e)](_0x1b344f=>this[_0x4e44e8(0x32d)](this[_0x4e44e8(0x34d)]['registerCommand'](_0x1b344f)));}['_initUIPart'](){const _0xb231f3=_0x2b58b8;let _0x195066=this[_0xb231f3(0x181)],_0x64af41=_0x195066[_0xb231f3(0x113)](_0x4050f2);this[_0xb231f3(0x32d)](_0x64af41[_0xb231f3(0x366)](_0xf47892['CONTENT'],()=>_0x370dd2(va,_0x195066)));}};J($,_0x2b58b8(0x326),_0x19a5e9['UNIVER_DOC']),J($,_0x2b58b8(0x21b),_0x2b58b8(0x12d)),J($,'packageName',Ri),J($,_0x2b58b8(0x179),zi),$=q([_0x5d76b8(_0x23a3e9,_0x2627bb,_0x224c4f,_0x38457f,_0xd9d11,_0x191fd8,_0x4f835e,_0x26ca13,_0x33aa0d,_0x21cd82),K(0x1,_0xbdb0e2(_0x57c331)),K(0x2,_0x5f3c0a),K(0x3,_0x2f3c71),K(0x4,_0x5479fc)],$);export{Li as DocsShapeUIMenuSchema,Q as UniverDocsShapeMobileUIPlugin,$ as UniverDocsShapeUIPlugin};