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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/umd/index.js +1 -1
  62. package/lib/umd/locale/ar-SA.js +1 -1
  63. package/lib/umd/locale/ca-ES.js +1 -1
  64. package/lib/umd/locale/de-DE.js +1 -1
  65. package/lib/umd/locale/en-US.js +1 -1
  66. package/lib/umd/locale/es-ES.js +1 -1
  67. package/lib/umd/locale/fa-IR.js +1 -1
  68. package/lib/umd/locale/fr-FR.js +1 -1
  69. package/lib/umd/locale/id-ID.js +1 -1
  70. package/lib/umd/locale/it-IT.js +1 -1
  71. package/lib/umd/locale/ja-JP.js +1 -1
  72. package/lib/umd/locale/ko-KR.js +1 -1
  73. package/lib/umd/locale/pl-PL.js +1 -1
  74. package/lib/umd/locale/pt-BR.js +1 -1
  75. package/lib/umd/locale/ru-RU.js +1 -1
  76. package/lib/umd/locale/sk-SK.js +1 -1
  77. package/lib/umd/locale/vi-VN.js +1 -1
  78. package/lib/umd/locale/zh-CN.js +1 -1
  79. package/lib/umd/locale/zh-HK.js +1 -1
  80. package/lib/umd/locale/zh-TW.js +1 -1
  81. package/package.json +21 -21
  82. package/lib/types/controllers/config.schema.d.ts +0 -7
  83. package/lib/types/controllers/docs-shape-ui.controller.d.ts +0 -64
  84. package/lib/types/controllers/menu.schema.d.ts +0 -2
  85. package/lib/types/view-model/shape-data-model.d.ts +0 -6
  86. package/lib/types/views/ShapeOptions.d.ts +0 -30
  87. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -11
  88. package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
  89. package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +0 -10
  90. package/lib/types/views/shape-text-editor/Editor.d.ts +0 -21
  91. package/lib/types/views/shape-text-editor/ShapePositionWrapper.d.ts +0 -15
  92. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
  93. package/lib/types/views/shape-text-editor/hooks/use-shape-position.d.ts +0 -29
  94. package/lib/types/views/shapes.d.ts +0 -58
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xad1a59=_0x1086;(function(_0x1b6b8e,_0xdc7d9f){const _0x2eec02=_0x1086,_0xdd54c6=_0x1b6b8e();while(!![]){try{const _0x1c6f43=-parseInt(_0x2eec02(0x148))/0x1*(parseInt(_0x2eec02(0x272))/0x2)+parseInt(_0x2eec02(0x211))/0x3+parseInt(_0x2eec02(0x27f))/0x4+-parseInt(_0x2eec02(0x196))/0x5+-parseInt(_0x2eec02(0x13f))/0x6+parseInt(_0x2eec02(0x110))/0x7+parseInt(_0x2eec02(0x281))/0x8;if(_0x1c6f43===_0xdc7d9f)break;else _0xdd54c6['push'](_0xdd54c6['shift']());}catch(_0x5ef070){_0xdd54c6['push'](_0xdd54c6['shift']());}}}(_0x20da,0xade56));import{FormulaShapeAnimationController as _0x279391,MobileShapeEditorControls as _0x1dd6b8,MobileShapeEditorService as _0x15fff4,MobileShapePickerPanel as _0x34cf0e,SHAPE_CHANGE_PICKER_COMPONENT as _0x31cb52,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x4407f0,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x2331dc,ShapeEditPanel as _0x552dde,ShapeFloatingToolbar as _0x5ab9af,ShapeFloatingToolbarService as _0x4cb24e,ShapeFloatingToolbarToggleFactory as _0x129f4f,ShapeFormulaRibbonControl as _0x18b4a1,ShapeGroupEnum as _0x425d50,ShapePickerDropdown as _0x2abc75,ShapePickerPanel as _0x16d9b5,ShapeQuickStyleGallery as _0x214628,ShapeStyleRibbonControl as _0x659ae2,ShapeTextEditorContainer as _0x127b55,ShapeTextFloatMenuRenderControllerBase as _0x243ce0,ShapeTextFloatToolbar as _0x553d4e,ShapeTextHyperLinkPopupService as _0x15fbf7,ShapeTextRibbonControl as _0xec92fe,ToggleShapeFloatingToolbarOperation as _0x2fbdbb,UniverShapeEditorMobileUIPlugin as _0x4013c5,UniverShapeEditorUIPlugin as _0xc210a4,activateDrawingObject as _0x296763,bindRenderTransformerLifecycle as _0x1dafe7,buildShapeTextDataUpdate as _0x408216,clearActiveDrawingObjects as _0x1d6d84,drawFormulaShapeAnimationLayers as _0x549816,getDrawingTypeNameKey as _0x38b9d3,getTextModel as _0x265967,getTextStyle as _0x4ad9c7,normalizeShapeTextModel as _0x5659e7,plainShapeTextToDocumentData as _0x1e932a,prepareShapeTextDocumentData as _0x314372,prepareShapeTextDocumentData as _0x264c4b,registerShapeFormatPainter as _0x2db216,resolveFormulaShapeAutoFitSize as _0xc7eb1f,resolveShapeContextualRibbonHostMode as _0x3cd0a9,resolveShapeTextDocumentPageHeight as _0x279db7,resolveShapeTextDocumentRenderLayout as _0x52a5e6,resolveShapeTextEditorBehaviorShapeData as _0x456679,resolveShapeTextEditorWrapStrategy as _0x2957db,shouldAllowShapeTextEditorHostSizeShrink as _0x2c0ada,shouldClipShapeTextDocument as _0x33a87f,useFormulaShapeToolbar as _0x10817c}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x5f31c7,DOC_CONTENT_INSERT_MENU_ID as _0x9b697e,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x44dc8c,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x56ea5f,DocCanvasPopManagerService as _0x27caad,DocEventManagerService as _0x36edd8,DocLayoutInteractionService as _0x263cc3,DocParagraphMenuService as _0x5b0821,DocPrintInterceptorService as _0x2a3d22,DocRenderController as _0x2419c5,DocSelectionRenderService as _0x409f50,EMPTY_PARAGRAPH_MENU_ID as _0x42c010,INSERT_BELLOW_MENU_ID as _0x413891,UniverDocsMobileUIPlugin as _0xaa2ac6,UniverDocsUIPlugin as _0x45f45b,VIEWPORT_KEY as _0x3948f2}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x2bb9a4,ComponentManager as _0x48d412,ContextMenuGroup as _0xc5a42b,ContextMenuPosition as _0x10e7d6,FloatingObjectToolbarPosition as _0x10f694,FormatPainterSessionService as _0x2eef32,IMenuManagerService as _0x476c9d,IRibbonService as _0x6e1c85,ISidebarService as _0x4b4d23,IUIPartsService as _0x20dff5,IconManager as _0x665b4a,MenuItemType as _0x3e7c2a,MenuManagerPosition as _0x28e9a7,MobileMenu as _0x257a21,ObjectPermissionButton as _0x1fc584,RibbonInsertGroup as _0xfe819d,connectInjector as _0x5634bd,getMenuHiddenObservable as _0x12817a,useDependency as _0x51204a,useObservable as _0x509339}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x2b4c5a,DEFAULT_DOC_SHAPE_WIDTH as _0x484b4e,DocShapeAnchorPosition as _0x45e8b3,DocsShapeService as _0x3fc69e,InsertDocShapeCommand as _0x223275,UniverDocsShapePlugin as _0x344219,UpdateDocDrawingMetadataCommand as _0x58da55,UpdateDocShapeDataCommand as _0x1a5e9f,UpdateDocShapeDataMutation as _0x18e8b3}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x2fb288,ShapeArrowSizeEnum as _0x161a42,ShapeArrowTypeEnum as _0x252a70,ShapeDefaultConfig as _0x4e5625,ShapeFillEnum as _0x26338c,ShapeLineTypeEnum as _0x5d288e,ShapeModel as _0x2805bc,ShapeRenderModeEnum as _0x2ebf20,ShapeTextAutoFitType as _0x3ab18f,ShapeTypeEnum as _0x146e43,isConnectorShape as _0x193ed1,resolveShapeTextBodyBehavior as _0x5c2191}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0xc56628,UniverShapeEditorPlugin as _0x8a55b7,applyQuickStyleToShapeData as _0x363558,cloneShapeDataForType as _0x1f50be,createShapeFormulaDocument as _0x5b6ae5,createShapeTextBoxShapeData as _0x445743,getShapeQuickStylePreset as _0x2ba708,getShapeQuickStyleType as _0x2ed83a,resolveActiveShapeQuickStylePresetId as _0x33b63a}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x9688d3,BooleanNumber as _0x35633c,CommandType as _0x5cb708,DependentOn as _0x576ad0,Disposable as _0x464e07,DisposableCollection as _0x29bfb7,DocumentDataModel as _0x18a8fc,DrawingTypeEnum as _0x16107f,FOCUSING_COMMON_DRAWINGS as _0x1df010,FOCUSING_SHAPE_TEXT_EDITOR as _0xc93721,HorizontalAlign as _0x5c2fd9,ICommandService as _0x4d71da,IConfigService as _0x5a4431,IContextService as _0x45c1ed,IImageIoService as _0x1d2d8d,IPermissionService as _0x9c7e02,IURLImageService as _0xf60492,IUniverInstanceService as _0x25edd3,Inject as _0x419b44,Injector as _0x1ae8f5,LocaleService as _0x4574f5,Plugin as _0x4de273,PositionedObjectLayoutType as _0x361e8f,UniverInstanceType as _0x312956,VerticalAlign as _0x3a9d83,createInternalEditorID as _0x8b4b0a,generateRandomId as _0xa5ff86,getParagraphContentStartOffset as _0x15b4dd,merge as _0x4ae44c,registerDependencies as _0x3d81ae,toDisposable as _0xf4ef4a,touchDependencies as _0x14a56b}from'@univerjs/core';import{DocInterceptorService as _0x31fa8b,DocSelectionManagerService as _0x2ae6f5,RichTextEditingMutation as _0x420f7a,SetDocumentPermissionCommand as _0x4f4dfc,UniverDocsPlugin as _0x962e3d,canEditDocumentTargets as _0x1fab01,getDocumentDrawingSegmentId as _0x3519d2,getDocumentEntityParentPermissionObjectIds as _0x54d8e6,getDocumentEntityPermissionObjectId as _0x2c866a}from'@univerjs/docs';import{IDocDrawingService as _0x562e38,RemoveDocDrawingCommand as _0x2bbbc0,SetDocDrawingArrangeCommand as _0x45f9b7,TextWrappingStyle as _0x2ba9f5,UpdateDocDrawingWrappingStyleCommand as _0x57a171,UpdateDrawingDocTransformCommand as _0x4ac193}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x7d9b20,Circle as _0x1228c1,DRAWING_OBJECT_LAYER_INDEX as _0x906907,DocumentSkeleton as _0x454db7,DocumentViewModel as _0x1d3879,Documents as _0x1e7e67,IRenderManagerService as _0x368952,RENDER_CLASS_TYPE as _0x534c90,Shape as _0x1fb5df,Transform as _0x53b936,UniverRenderEnginePlugin as _0xe383d4,Vector2 as _0x3960b4,getLastLine as _0x464d4f,setDocsCustomBlockRenderViewportProvider as _0x351d29}from'@univerjs/engine-render';import{IDrawingManagerService as _0x594fd5,SetDrawingSelectedOperation as _0x2d4210,UniverDrawingPlugin as _0x2de2b7,getDrawingShapeKeyByDrawingSearch as _0x1cc035}from'@univerjs/drawing';import{DrawingCommonPanel as _0x330e5f,DrawingImageClipService as _0x56d8c5,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0xafc4c6,MobileObjectListPanel as _0x28726a,OBJECT_LIST_FLOATING_SECTION_ID as _0x54c1f7,ObjectListPanelBase as _0x57708c,UniverDrawingMobileUIPlugin as _0x16789c,UniverDrawingUIPlugin as _0x23c413,getObjectListPanelSectionIdForDrawingType as _0x2d21df,insertGroupObject as _0x55badf}from'@univerjs/drawing-ui';import{Fragment as _0x5b0733,jsx as _0x36fdcc,jsxs as _0x3cbb28}from'react/jsx-runtime';import{BehaviorSubject as _0x132e71,Observable as _0xcb04ce,distinctUntilChanged as _0x2b9a48,map as _0x19934a,merge as _0x5f4fd7,of as _0xc7373c,startWith as _0x2a289e}from'rxjs';import{UniverLicensePlugin as _0x4c0897}from'@univerjs-pro/license';import{DocDrawingPosition as _0x4e39ea,DocDrawingTextWrap as _0x5c1883,MobileDocDrawingPosition as _0x10c78b,MobileDocDrawingTextWrap as _0x115fd7,UniverDocsDrawingMobileUIPlugin as _0x488ae5,UniverDocsDrawingUIPlugin as _0x4ee0fd}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x1c53ac,MoreDownIcon as _0xbff2c,MoreUpIcon as _0x299809,MoveDownIcon as _0x2d1584,MoveUpIcon as _0x2fdef3,ObjectLayersIcon as _0x1c0d92,ShapeFormatSettingIcon as _0x2d7d78,TextWrapShapeIcon as _0xe8544d,TopmostIcon as _0x410860}from'@univerjs/icons';import{MobileActionRow as _0x38babc}from'@univerjs/design';import{memo as _0x4d04cc,useEffect as _0x5a37f4,useMemo as _0x16edd4,useReducer as _0x2da66f,useState as _0x1a5239}from'react';import{UnitObject as _0x43bd2c}from'@univerjs/protocol';function hr(_0x7bf9dd,_0x1c6620){const _0x3280ba=_0x1086;if(_0x1c6620){if(_0x193ed1(_0x7bf9dd)&&(_0x1c6620[_0x3280ba(0x29a)]||_0x1c6620[_0x3280ba(0x2dd)]))return{'ln':{'startArrow':_0x1c6620['startArrow']?{'type':_0x252a70[_0x3280ba(0x204)],'size':_0x161a42[_0x3280ba(0x1fb)]}:void 0x0,'endArrow':_0x1c6620[_0x3280ba(0x2dd)]?{'type':_0x252a70[_0x3280ba(0x204)],'size':_0x161a42[_0x3280ba(0x1a0)]}:void 0x0}};if(_0x7bf9dd===_0x146e43[_0x3280ba(0x2ea)]&&(_0x1c6620[_0x3280ba(0x2e4)]||_0x1c6620['vertical']))return _0x445743({'fill':{'fillType':_0x26338c[_0x3280ba(0x1b7)],'color':'#3B82F6'},'isHorizontal':!!_0x1c6620['horizontal'],'stroke':{'lineStrokeType':_0x5d288e[_0x3280ba(0x2c7)],'width':0x1,'color':_0x3280ba(0xb5)}});}}function gr(_0x239752,_0x34a6b7){const _0x271c9b=_0x1086;var _0x1a0c03;let _0x28f9a1=_0x34a6b7[_0x271c9b(0x106)]??'',_0x34e4a6=(_0x1a0c03=_0x239752[_0x271c9b(0x311)](_0x28f9a1))==null?void 0x0:_0x1a0c03[_0x271c9b(0xe7)]();if(!_0x34e4a6)return null;let _0x26f292=_0x34e4a6['paragraphs']??[],_0x246abb=_0x26f292[_0x271c9b(0x1a5)](_0x165c96=>{const _0x1722fa=_0x271c9b;let _0xde66e2=_0x15b4dd(_0x34e4a6,_0x165c96);return _0x34a6b7[_0x1722fa(0x105)]>=_0xde66e2&&_0x34a6b7[_0x1722fa(0x105)]<=_0x165c96['startIndex'];})??_0x26f292[_0x26f292[_0x271c9b(0x296)]-0x1];return _0x246abb?{'paragraphId':_0x246abb[_0x271c9b(0x1de)],'segmentId':_0x28f9a1,'position':_0x45e8b3[_0x271c9b(0x141)],'offset':_0x34a6b7[_0x271c9b(0x105)]-_0x15b4dd(_0x34e4a6,_0x246abb)}:null;}function _r(_0xbda229,_0x307d07,_0x2afd24){const _0x1b49a3=_0x1086;var _0x3f6ceb,_0xeb8605;if(!_0x2afd24)return null;let _0x299958=(_0x3f6ceb=_0xbda229[_0x1b49a3(0x216)](_0x368952)[_0x1b49a3(0x264)](_0x307d07))==null?void 0x0:_0x3f6ceb[_0x1b49a3(0x223)](_0x5b0821)[_0x1b49a3(0xc3)];if(!_0x299958)return null;let _0x4f43a5=_0x2afd24===_0x1b49a3(0xff)?{'startOffset':_0x299958['moveRange']['endOffset'],'endOffset':_0x299958[_0x1b49a3(0x2fc)][_0x1b49a3(0x1d2)]}:_0x299958[_0x1b49a3(0xe3)];return{'startOffset':_0x4f43a5[_0x1b49a3(0x105)],'endOffset':_0x4f43a5[_0x1b49a3(0x1d2)],'collapsed':_0x4f43a5['startOffset']===_0x4f43a5[_0x1b49a3(0x1d2)],'segmentId':((_0xeb8605=_0x299958['paragraph'])==null?void 0x0:_0xeb8605[_0x1b49a3(0x106)])??''};}const G={'type':_0x5cb708[_0xad1a59(0x1da)],'id':_0xad1a59(0x30a),'handler':async(_0x1bc9e0,_0xaf4b2f)=>{const _0x5eb9cb=_0xad1a59;let _0x2ce5a1=_0x1bc9e0[_0x5eb9cb(0x216)](_0x25edd3)[_0x5eb9cb(0x150)](_0x312956['UNIVER_DOC']);if(!_0x2ce5a1)return!0x1;let _0x474bbe=_0x1bc9e0[_0x5eb9cb(0x216)](_0x4d71da),_0x15c5b=_0x2ce5a1['getUnitId'](),_0x154e62=_0xaf4b2f[_0x5eb9cb(0x13a)]??_0xa5ff86(),_0x11b642=_0xaf4b2f[_0x5eb9cb(0xf1)]??_0x484b4e,_0x5373d4=_0xaf4b2f[_0x5eb9cb(0x124)]??_0x2b4c5a,_0x12a828=_0xaf4b2f[_0x5eb9cb(0x268)]??hr(_0xaf4b2f[_0x5eb9cb(0x2a4)],_0xaf4b2f[_0x5eb9cb(0x2cd)]),_0x5295fb=_r(_0x1bc9e0,_0x15c5b,_0xaf4b2f['paragraphMenuPlacement'])??_0x1bc9e0[_0x5eb9cb(0x216)](_0x2ae6f5)[_0x5eb9cb(0xe8)]();if(!_0x5295fb)return!0x1;let _0x164fc0=gr(_0x2ce5a1,_0x5295fb);return _0x164fc0?!!_0x474bbe[_0x5eb9cb(0x16e)](_0x223275['id'],{'unitId':_0x15c5b,'shapeId':_0x154e62,'shapeType':_0xaf4b2f[_0x5eb9cb(0x2a4)],'shapeData':_0x12a828,'transform':{'width':_0x11b642,'height':_0x5373d4},'placement':{'wrappingStyle':_0x2ba9f5['INLINE'],'anchor':_0x164fc0}}):!0x1;}},K=_0xad1a59(0x1a8),vr='docs-shape-ui.ribbon.shape-format',yr=_0xad1a59(0x108),br=_0x8b4b0a('SHAPE_TEXT'),xr=_0xad1a59(0x243),Sr=_0xad1a59(0xfe),Cr={'id':_0xad1a59(0x22c),'type':_0x5cb708[_0xad1a59(0x1da)],'handler':(_0x3c934c,_0xbf3df4)=>{const _0x557af4=_0xad1a59;let _0xc982b1=_0x3c934c[_0x557af4(0x216)](_0x4b4d23),_0x44422c=_0x3c934c[_0x557af4(0x216)](_0x4574f5),_0x3f3407=_0x3c934c[_0x557af4(0x216)](_0x594fd5);return(_0xbf3df4==null?void 0x0:_0xbf3df4['value'])==='close'?(_0xc982b1[_0x557af4(0xf9)](yr),!0x0):(_0xc982b1[_0x557af4(0x1ac)]({'id':yr,'header':{'title':_0x44422c['t'](_0x557af4(0x275))},'children':{'label':yr},'onClose':()=>{const _0x396d02=_0x557af4;_0x3f3407[_0x396d02(0x2e3)](null);},'width':0x168}),!0x0);}},q={'type':_0x5cb708['OPERATION'],'id':_0xad1a59(0x152),'handler'(){return!0x0;}};function wr(_0x370348){const _0x193954=_0xad1a59;let _0x4eee3b=_0x370348[_0x193954(0x216)](_0x594fd5)[_0x193954(0x2ff)](),_0x233886=_0x4eee3b[_0x193954(0x296)]===0x1?_0x4eee3b[0x0]:null;if(!_0x233886||_0x233886[_0x193954(0x289)]!==_0x16107f[_0x193954(0x284)])return null;let _0x482dab=_0x370348[_0x193954(0x216)](_0x3fc69e),_0x47d9d=_0x482dab['getShapeTypeById'](_0x233886[_0x193954(0x306)],_0x233886[_0x193954(0x19b)],_0x233886[_0x193954(0xdb)]),_0x53701b=_0x482dab[_0x193954(0xdc)](_0x233886['unitId'],_0x233886[_0x193954(0x19b)],_0x233886['drawingId']);return _0x47d9d===void 0x0||!_0x53701b?null:{'drawing':_0x233886,'shapeData':_0x53701b,'shapeType':_0x47d9d};}const Tr={'id':'doc.operation.apply-shape-quick-style','type':_0x5cb708[_0xad1a59(0x1d3)],'handler':(_0x328711,_0xaef693)=>{const _0x210973=_0xad1a59;let _0x4002ac=wr(_0x328711),_0x192225=_0x2ba708((_0xaef693==null?void 0x0:_0xaef693[_0x210973(0x253)])??(_0xaef693==null?void 0x0:_0xaef693[_0x210973(0x2a4)])??'');if(!_0x4002ac||!_0x192225||_0x192225[_0x210973(0x19a)]!==_0x2ed83a(_0x4002ac[_0x210973(0x268)]))return!0x1;let _0x216f12=_0x363558(_0x4002ac[_0x210973(0x268)],_0x192225);if(!_0x216f12)return!0x1;let {drawing:_0x1ecd3b}=_0x4002ac;return _0x328711[_0x210973(0x216)](_0x4d71da)[_0x210973(0x182)](_0x1a5e9f['id'],{'unitId':_0x1ecd3b[_0x210973(0x306)],'shapeId':_0x1ecd3b[_0x210973(0xdb)],'shapeData':_0x216f12,'oldShapeJSON':{'oldShapeData':_0x4002ac[_0x210973(0x268)]}});}},Er={'id':'doc.operation.update-shape-type','type':_0x5cb708[_0xad1a59(0x1d3)],'handler':(_0x51c386,_0x59248c)=>{const _0xccaf2e=_0xad1a59;let _0x47e56b=wr(_0x51c386),_0xcef25c=(_0x59248c==null?void 0x0:_0x59248c['shapeType'])??(_0x59248c==null?void 0x0:_0x59248c['value']);if(!_0x47e56b||!_0xcef25c||_0x193ed1(_0x47e56b['shapeType'])||_0x193ed1(_0xcef25c))return!0x1;let _0x5df03e=_0x1f50be(_0x47e56b[_0xccaf2e(0x268)],_0xcef25c);if(!_0x5df03e)return!0x1;let {drawing:_0x448266}=_0x47e56b;return _0x51c386[_0xccaf2e(0x216)](_0x4d71da)[_0xccaf2e(0x182)](_0x1a5e9f['id'],{'unitId':_0x448266[_0xccaf2e(0x306)],'shapeId':_0x448266[_0xccaf2e(0xdb)],'shapeType':_0xcef25c,'shapeData':_0x5df03e,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x47e56b[_0xccaf2e(0x23e)],'oldShapeData':_0x47e56b[_0xccaf2e(0x268)]}});}};function J(_0x2cb5cb,_0x295261){return function(_0x519040,_0x4c42c8){_0x295261(_0x519040,_0x4c42c8,_0x2cb5cb);};}function Y(_0x5de527,_0x5511cf,_0x443d64,_0x2286d7){const _0x359ca9=_0xad1a59;var _0x375a54=arguments[_0x359ca9(0x296)],_0x489865=_0x375a54<0x3?_0x5511cf:_0x2286d7===null?_0x2286d7=Object[_0x359ca9(0x109)](_0x5511cf,_0x443d64):_0x2286d7,_0x172f91;if(typeof Reflect==_0x359ca9(0x12e)&&typeof Reflect['decorate']==_0x359ca9(0x170))_0x489865=Reflect[_0x359ca9(0x1ef)](_0x5de527,_0x5511cf,_0x443d64,_0x2286d7);else{for(var _0x75485c=_0x5de527[_0x359ca9(0x296)]-0x1;_0x75485c>=0x0;_0x75485c--)(_0x172f91=_0x5de527[_0x75485c])&&(_0x489865=(_0x375a54<0x3?_0x172f91(_0x489865):_0x375a54>0x3?_0x172f91(_0x5511cf,_0x443d64,_0x489865):_0x172f91(_0x5511cf,_0x443d64))||_0x489865);}return _0x375a54>0x3&&_0x489865&&Object['defineProperty'](_0x5511cf,_0x443d64,_0x489865),_0x489865;}let X=class extends _0x464e07{constructor(_0x4d56c1,_0x2021eb){const _0x25a8f4=_0xad1a59;super(),this[_0x25a8f4(0x301)]=_0x4d56c1,this[_0x25a8f4(0x131)]=_0x2021eb,this[_0x25a8f4(0x18e)](),this['_clipService'][_0x25a8f4(0x2bb)](!0x0),this[_0x25a8f4(0x1a6)]({'dispose':()=>this[_0x25a8f4(0x301)]['setCanUseShapeClip'](!0x1)});}[_0xad1a59(0x18e)](){const _0x5777e8=_0xad1a59;let _0xa60d2d=new Map(),_0x2cfddb=this['_clipService']['registerClipDelegate']((_0x38c791,_0x19367d,_0x244c5a,_0x3c7f4c,_0x3f516b)=>{const _0x12915e=_0x1086;let _0x49cede=_0x19367d;if(_0x49cede===_0x146e43[_0x12915e(0x247)]||_0x19367d===_0x12915e(0xf3))return!0x1;try{let _0x14c6ba=_0xa60d2d['get'](_0x19367d);return _0x14c6ba||(_0x14c6ba=new _0x2805bc(_0x49cede,_0x12915e(0x277)+_0x19367d),_0xa60d2d[_0x12915e(0x219)](_0x19367d,_0x14c6ba)),_0x14c6ba['clearAdjustValue'](),_0x3f516b&&Object[_0x12915e(0x107)](_0x3f516b)[_0x12915e(0x296)]>0x0&&_0x14c6ba['setShapeData']({'adjustValues':_0x3f516b},!0x0),_0x14c6ba[_0x12915e(0x29b)]({'width':_0x244c5a,'height':_0x3c7f4c}),_0x14c6ba[_0x12915e(0x1cf)](_0x38c791,{'left':0x0,'top':0x0,'width':_0x244c5a,'height':_0x3c7f4c});}catch{return!0x1;}});this[_0x5777e8(0x1a6)](_0x2cfddb),this[_0x5777e8(0x1a6)]({'dispose':()=>_0xa60d2d['clear']()});}['clipByShape'](_0x57b39d,_0x29465d,_0x18ca0c,_0x55565b,_0x2eb205){const _0x49c3fe=_0xad1a59;let _0x3292e7=this[_0x49c3fe(0x131)]['getDrawingData'](_0x57b39d,_0x29465d)[_0x18ca0c];_0x3292e7&&_0x3292e7[_0x49c3fe(0x289)]===_0x16107f[_0x49c3fe(0x194)]&&this[_0x49c3fe(0x131)]['featurePluginUpdateNotification']([{..._0x3292e7,'prstGeom':_0x55565b,'adjustValues':_0x2eb205}]);}};X=Y([J(0x0,_0x419b44(_0x56d8c5)),J(0x1,_0x419b44(_0x594fd5))],X);const Dr='doc.shape.picker.component',Or=_0xad1a59(0x1a2);function kr({onShapeClick:_0x45c5ff,excludeGroups:_0x330e61}){return _0x36fdcc(_0x16d9b5,{'excludeGroups':_0x330e61,'onShapeClick':_0x45c5ff,'scrollContainer':'parent'});}function Ar(){let _0x1ee09a=_0x51204a(_0x594fd5),_0x43205e=_0x51204a(X);return _0x12e71a=>{const _0x475d85=_0x1086;let _0x1b58c2=_0x1ee09a[_0x475d85(0x2ff)]()[_0x475d85(0x1a5)](_0x33588a=>_0x33588a[_0x475d85(0x289)]===_0x16107f[_0x475d85(0x194)]);_0x1b58c2&&_0x43205e[_0x475d85(0x251)](_0x1b58c2[_0x475d85(0x306)],_0x1b58c2[_0x475d85(0x19b)],_0x1b58c2[_0x475d85(0xdb)],_0x12e71a[_0x475d85(0x19a)]);};}function jr(){const _0x1e3d46=_0xad1a59;let _0x1800bc=Ar();return _0x36fdcc(_0x2abc75,{'buttonLabel':_0x1e3d46(0x1dc),'excludeGroups':[_0x425d50[_0x1e3d46(0xd8)]],'onShapeClick':_0x1800bc});}function Mr(){const _0x5cac65=_0xad1a59;let _0x25bf40=_0x51204a(_0x48d412),_0x142fea=_0x51204a(_0x594fd5),_0x5be415=_0x51204a(_0x25edd3),_0x13ba82=_0x142fea[_0x5cac65(0x2ff)]()[0x0],_0x50d9c4=_0x13ba82?_0x5be415[_0x5cac65(0x1fa)](_0x13ba82[_0x5cac65(0x306)]):void 0x0,_0x237330=_0x50d9c4===_0x312956['UNIVER_DOC']?Or:_0x50d9c4===_0x312956[_0x5cac65(0x15b)]?_0x5cac65(0x2bc):void 0x0,_0x37aff0=_0x237330?_0x25bf40[_0x5cac65(0x216)](_0x237330):void 0x0;return _0x37aff0?_0x36fdcc(_0x37aff0,{}):null;}function Nr({paragraphMenuPlacement:_0xb21944,PickerComponent:_0x40aa6d=kr}){let _0x3c1654=_0x51204a(_0x4d71da);return _0x36fdcc(_0x40aa6d,{'onShapeClick':_0x211b47=>{const _0x291386=_0x1086;_0x3c1654[_0x291386(0x182)](G['id'],{'paragraphMenuPlacement':_0xb21944,'value':_0x211b47['type'],'enhanceParams':{'endArrow':_0x211b47['endArrow'],'startArrow':_0x211b47[_0x291386(0x29a)],'horizontal':_0x211b47['horizontal'],'vertical':_0x211b47[_0x291386(0x24d)]}});}});}function Pr(_0x537c07){const _0x119511=_0xad1a59;return _0x15f179=>({'id':G['id'],'type':_0x3e7c2a['SELECTOR'],'selections':[{'label':{'name':Dr,'hoverable':!0x1,'selectable':!0x1,'props':_0x537c07?{'id':G['id'],'paragraphMenuPlacement':_0x537c07}:{'id':G['id']}}}],'icon':_0x119511(0xbc),'title':_0x119511(0x232),'tooltip':_0x119511(0x232),'hidden$':_0x12817a(_0x15f179,_0x312956['UNIVER_DOC'])});}const Fr=Pr(),Ir=Pr(_0xad1a59(0xff)),Lr=Pr('target');function Rr(_0x2740e2){const _0x3c35fe=_0xad1a59;return{'id':Cr['id'],'type':_0x3e7c2a[_0x3c35fe(0x1f0)],'icon':_0x3c35fe(0xf2),'title':_0x3c35fe(0x1f1),'tooltip':_0x3c35fe(0x1f1),'hidden$':_0x12817a(_0x2740e2,_0x312956[_0x3c35fe(0xde)])};}function zr(_0x132c75,_0x249c47,_0x343817,_0x5d27e5,_0x178b45,_0x4b7661){const _0x2408e0=_0xad1a59;let _0x525177={'unitId':_0x249c47,'shapeId':_0x5d27e5,'shapeData':_0x4b7661,'oldShapeJSON':_0x178b45};return _0x132c75[_0x2408e0(0x182)](_0x1a5e9f['id'],_0x525177);}function Br(_0x13a1e1,_0xf2d22,_0x3314bf,_0x2083ef,_0x1927c5,_0xff88){const _0x166b29=_0xad1a59;let _0x367563={'unitId':_0xf2d22,'shapeId':_0x2083ef,'shapeData':_0xff88,'oldShapeJSON':_0x1927c5};return _0x13a1e1[_0x166b29(0x182)](_0x1a5e9f['id'],_0x367563);}const Vr=_0xad1a59(0x30c),Hr=_0xad1a59(0x256),Ur=_0xad1a59(0x154),Wr=_0xad1a59(0x2aa),Gr=_0xad1a59(0x208),Kr=[{'value':_0x2ba9f5[_0xad1a59(0x23d)],'label':'docs-shape-ui.textWrap.inline','icon':_0xad1a59(0x1ed)},{'value':_0x2ba9f5[_0xad1a59(0x31b)],'label':_0xad1a59(0x120),'icon':_0xad1a59(0x27c)},{'value':_0x2ba9f5[_0xad1a59(0xc0)],'label':'docs-shape-ui.textWrap.topAndBottom','icon':_0xad1a59(0x2ce)},{'value':_0x2ba9f5[_0xad1a59(0x2a6)],'label':_0xad1a59(0x27b),'icon':_0xad1a59(0x163)},{'value':_0x2ba9f5[_0xad1a59(0x1f5)],'label':_0xad1a59(0x2e8),'icon':'DocsShapeWrapInFrontOfTextIcon'}];function qr(){let _0x422757=_0x51204a(_0x4d71da),_0x4097fa=_0x51204a(_0x594fd5),_0x56829d=_0x51204a(_0x3fc69e),_0x2fa97c=()=>{const _0x335a01=_0x1086;var _0x4dabf3;let _0x282b66=_0x4097fa[_0x335a01(0x2ff)]();if(_0x282b66['length']!==0x1||((_0x4dabf3=_0x282b66[0x0])==null?void 0x0:_0x4dabf3[_0x335a01(0x289)])!==_0x16107f['DRAWING_SHAPE'])return null;let {unitId:_0x56dbe7,subUnitId:_0x44a65b,drawingId:_0xac4ef0}=_0x282b66[0x0],_0x5e446b=_0x56829d[_0x335a01(0x10c)](_0x56dbe7,_0x44a65b,_0xac4ef0),_0x43f602=_0x56829d['getShapeDataById'](_0x56dbe7,_0x44a65b,_0xac4ef0);return _0x5e446b===void 0x0||!_0x43f602?null:{'unitId':_0x56dbe7,'subUnitId':_0x44a65b,'drawingId':_0xac4ef0,'shapeType':_0x5e446b,'shapeData':_0x43f602};},_0x26644c=_0x509339(()=>new _0xcb04ce(_0x252026=>{const _0xf2b35b=_0x1086;let _0x334765=()=>_0x252026[_0xf2b35b(0x1f9)](_0x2fa97c()),_0x3b2e62=_0x4097fa[_0xf2b35b(0x307)][_0xf2b35b(0x245)](_0x334765),_0x29831b=_0x422757[_0xf2b35b(0x20e)](_0x3a08b3=>{_0x3a08b3['id']===_0x18e8b3['id']&&_0x334765();});return _0x334765(),()=>{const _0x3d496d=_0xf2b35b;_0x3b2e62[_0x3d496d(0x1f2)](),_0x29831b[_0x3d496d(0x1d9)]();};}),_0x2fa97c(),!0x1,[_0x422757,_0x56829d,_0x4097fa]);return{'selection':_0x26644c,'updateShapeData':_0x46c51b=>{const _0x4b5cdb=_0x1086;_0x26644c&&zr(_0x422757,_0x26644c[_0x4b5cdb(0x306)],_0x26644c['subUnitId'],_0x26644c['drawingId'],{'oldShapeData':_0x26644c[_0x4b5cdb(0x268)]},_0x46c51b);}};}function Jr(){const _0x1c5af9=_0xad1a59;let {selection:_0x8e2e32,updateShapeData:_0x590e0c}=qr();return _0x8e2e32?_0x36fdcc(_0x659ae2,{'shapeData':_0x8e2e32[_0x1c5af9(0x268)],'shapeType':_0x8e2e32['shapeType'],'onUpdateShapeData':_0x590e0c}):null;}function Yr(){const _0x222b89=_0xad1a59;let _0x15c655=_0x51204a(_0x4d71da),_0x32c4fb=_0x51204a(_0x4574f5),{selection:_0x1ea81d}=qr();return _0x1ea81d?_0x36fdcc(_0x214628,{'type':_0x2ed83a(_0x1ea81d[_0x222b89(0x268)]),'ariaLabel':_0x32c4fb['t'](_0x222b89(0x303)),'activePresetId':_0x33b63a(_0x1ea81d[_0x222b89(0x268)]),'onSelect':_0x32f888=>_0x15c655[_0x222b89(0x182)](Tr['id'],{'presetId':_0x32f888})}):null;}function Xr(){const _0x125d17=_0xad1a59;let {selection:_0x9ec769,updateShapeData:_0x36567c}=qr();return _0x9ec769?_0x36fdcc(_0xec92fe,{'fontFamilyPopupDataComponent':_0x125d17(0x160),'shapeData':_0x9ec769[_0x125d17(0x268)],'onUpdateShapeData':_0x36567c}):null;}function Zr(){const _0x457459=_0xad1a59;var _0x31e85b;let {selection:_0x4aca2f,updateShapeData:_0x456b93}=qr(),_0x1004ec=_0x10817c({'hostType':_0x312956[_0x457459(0xde)],'unitId':(_0x4aca2f==null?void 0x0:_0x4aca2f[_0x457459(0x306)])??'','subUnitId':(_0x4aca2f==null?void 0x0:_0x4aca2f[_0x457459(0x19b)])??'','shapeId':(_0x4aca2f==null?void 0x0:_0x4aca2f[_0x457459(0xdb)])??'','shapeData':_0x4aca2f==null?void 0x0:_0x4aca2f[_0x457459(0x268)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':'bottom','onUpdateBinding':_0x104b98=>_0x456b93({'formulaBinding':_0x104b98})}),_0x5611be=((_0x31e85b=_0x1004ec[_0x457459(0x13c)])==null?void 0x0:_0x31e85b['flatMap'](_0x65c1cd=>_0x65c1cd[_0x457459(0x316)])[_0x457459(0x1ec)](_0x511559=>_0x511559[_0x457459(0x260)]!==!0x1))??[];return _0x4aca2f!=null&&_0x4aca2f[_0x457459(0x268)]['formulaBinding']?_0x36fdcc(_0x18b4a1,{'actions':_0x5611be,'panel':_0x1004ec['panel']}):null;}function Qr({value:_0x58c600}){const _0x3ba3bc=_0xad1a59;let _0x11efa8=_0x51204a(_0x4574f5),_0x1c57ff=Kr[_0x3ba3bc(0x1a5)](_0x493dcb=>_0x493dcb[_0x3ba3bc(0x2a4)]===_0x58c600)??Kr[0x0];return _0x1c57ff?_0x36fdcc(_0x3ba3bc(0x312),{'children':_0x11efa8['t'](_0x1c57ff[_0x3ba3bc(0x177)])}):null;}const $r=_0xad1a59(0x2d1),ei=_0xad1a59(0x249),ti=_0xad1a59(0xdd),ni='docs-shape-ui.ribbon.shape-format.arrange-forward',ri=_0xad1a59(0x237),ii=_0xad1a59(0x174),ai=_0xad1a59(0x22e),oi=_0xad1a59(0x24e);function si(_0x1cf8f1){const _0x2a382d=_0xad1a59;let _0x4e5fbb=_0x1cf8f1[_0x2a382d(0x216)](_0x4d71da),_0x261037=_0x1cf8f1['get'](_0x594fd5),_0x22c4a5=_0x1cf8f1[_0x2a382d(0x216)](_0x3fc69e);return new _0xcb04ce(_0x2a4adf=>{const _0x4b3732=_0x2a382d;let _0x3a9a88=()=>{const _0x599ca6=_0x1086;let _0x35696d=ci(_0x1cf8f1),_0x7d0580=_0x35696d?_0x22c4a5['getShapeDataById'](_0x35696d[_0x599ca6(0x306)],_0x35696d[_0x599ca6(0x19b)],_0x35696d['drawingId']):null;_0x2a4adf[_0x599ca6(0x1f9)](_0x7d0580?_0x33b63a(_0x7d0580)??'':'');},_0x2cea9b=_0x261037[_0x4b3732(0x307)][_0x4b3732(0x245)](_0x3a9a88),_0x365ba5=_0x4e5fbb[_0x4b3732(0x20e)](_0x432973=>{_0x432973['id']===_0x18e8b3['id']&&_0x3a9a88();});return _0x3a9a88(),()=>{const _0x3ae9fe=_0x4b3732;_0x2cea9b[_0x3ae9fe(0x1f2)](),_0x365ba5[_0x3ae9fe(0x1d9)]();};});}function ci(_0x4b2b2f){const _0x1d3c7b=_0xad1a59;var _0x4f64a0;let _0x5672f8=_0x4b2b2f[_0x1d3c7b(0x216)](_0x594fd5)[_0x1d3c7b(0x2ff)]();return _0x5672f8[_0x1d3c7b(0x296)]===0x1&&((_0x4f64a0=_0x5672f8[0x0])==null?void 0x0:_0x4f64a0[_0x1d3c7b(0x289)])===_0x16107f[_0x1d3c7b(0x284)]?_0x5672f8[0x0]:null;}function li(_0x2fd27f){const _0x3faee2=_0xad1a59;return(_0x2fd27f==null?void 0x0:_0x2fd27f[_0x3faee2(0x1df)])===_0x361e8f[_0x3faee2(0x23b)]?_0x2fd27f[_0x3faee2(0x17c)]===_0x35633c[_0x3faee2(0x1b5)]?_0x2ba9f5[_0x3faee2(0x2a6)]:_0x2ba9f5['IN_FRONT_OF_TEXT']:(_0x2fd27f==null?void 0x0:_0x2fd27f[_0x3faee2(0x1df)])===_0x361e8f[_0x3faee2(0x31b)]?_0x2ba9f5[_0x3faee2(0x31b)]:(_0x2fd27f==null?void 0x0:_0x2fd27f[_0x3faee2(0x1df)])===_0x361e8f['WRAP_TOP_AND_BOTTOM']?_0x2ba9f5[_0x3faee2(0xc0)]:_0x2ba9f5[_0x3faee2(0x23d)];}function ui(_0x17ee23){const _0x3df746=_0xad1a59;let _0x4013ab=_0x17ee23[_0x3df746(0x216)](_0x4d71da),_0x24ff5f=_0x17ee23[_0x3df746(0x216)](_0x594fd5),_0x1a6bf6=_0x17ee23[_0x3df746(0x216)](_0x25edd3);return new _0xcb04ce(_0x4f1b50=>{const _0x4d528d=_0x3df746;let _0xf80b94=()=>{const _0x1c5bed=_0x1086;var _0x4fbf7e;let _0x139b3c=ci(_0x17ee23),_0x403ed0=_0x139b3c?_0x1a6bf6[_0x1c5bed(0x201)](_0x139b3c[_0x1c5bed(0x306)],_0x312956['UNIVER_DOC']):void 0x0;_0x4f1b50[_0x1c5bed(0x1f9)](li(_0x139b3c?_0x403ed0==null||(_0x4fbf7e=_0x403ed0[_0x1c5bed(0x26c)]()[_0x1c5bed(0xd4)])==null?void 0x0:_0x4fbf7e[_0x139b3c['drawingId']]:void 0x0));},_0x37fc64=_0x24ff5f['focus$'][_0x4d528d(0x245)](_0xf80b94),_0x27226b=_0x4013ab['onCommandExecuted'](_0x1f1b2b=>{_0x1f1b2b['id']===_0x420f7a['id']&&_0xf80b94();});return _0xf80b94(),()=>{const _0xcaeffa=_0x4d528d;_0x37fc64[_0xcaeffa(0x1f2)](),_0x27226b['dispose']();};})[_0x3df746(0x304)](_0x2b9a48());}function di(_0x3e62a2,_0x795cdc=!0x1){const _0x24c26f=_0xad1a59;let _0x37f7bb=_0x3e62a2[_0x24c26f(0x216)](_0x4d71da),_0x3de327=_0x3e62a2[_0x24c26f(0x216)](_0x594fd5),_0x34ca45=_0x3e62a2['get'](_0x3fc69e);return new _0xcb04ce(_0x147b49=>{const _0x5a8a04=_0x24c26f;let _0x6bb245=()=>{const _0x4c2ac3=_0x1086;let _0x57b301=ci(_0x3e62a2);if(!_0x57b301){_0x147b49[_0x4c2ac3(0x1f9)](!0x0);return;}let _0x3f59c4=_0x34ca45[_0x4c2ac3(0xdc)](_0x57b301['unitId'],_0x57b301[_0x4c2ac3(0x19b)],_0x57b301[_0x4c2ac3(0xdb)]);_0x147b49[_0x4c2ac3(0x1f9)](!_0x3f59c4||_0x795cdc&&_0x3f59c4[_0x4c2ac3(0x2df)]==null);},_0x19eca9=_0x3de327[_0x5a8a04(0x307)][_0x5a8a04(0x245)](_0x6bb245),_0x583ba3=_0x37f7bb[_0x5a8a04(0x20e)](_0x237412=>{_0x237412['id']===_0x18e8b3['id']&&_0x6bb245();});return _0x6bb245(),()=>{const _0x4b92d9=_0x5a8a04;_0x19eca9[_0x4b92d9(0x1f2)](),_0x583ba3['dispose']();};});}function fi(_0x149a77){const _0x36a552=_0xad1a59;let _0x3e2215=_0x149a77['get'](_0x594fd5),_0x546753=_0x149a77[_0x36a552(0x216)](_0x3fc69e);return _0x3e2215[_0x36a552(0x307)]['pipe'](_0x2a289e(_0x3e2215[_0x36a552(0x2ff)]()),_0x19934a(()=>{const _0xf6624d=_0x36a552;let _0x3f4f8a=ci(_0x149a77),_0x279384=_0x3f4f8a?_0x546753['getShapeTypeById'](_0x3f4f8a[_0xf6624d(0x306)],_0x3f4f8a[_0xf6624d(0x19b)],_0x3f4f8a[_0xf6624d(0xdb)]):void 0x0;return _0x279384===void 0x0||_0x193ed1(_0x279384);}));}function pi(_0x424d76){const _0x20662d=_0xad1a59;return{'id':Tr['id'],'type':_0x3e7c2a['SELECTOR'],'icon':_0x20662d(0x1c4),'title':'shape-editor-ui.toolbar.quickStyles','tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1}}],'value$':si(_0x424d76),'hidden$':di(_0x424d76)};}function mi(_0xb38c62){const _0xd81e59=_0xad1a59;return{'id':Er['id'],'type':_0x3e7c2a[_0xd81e59(0x116)],'icon':'ShapeIcon','title':_0xd81e59(0xb8),'tooltip':_0xd81e59(0xb8),'slot':!0x0,'selections':[{'label':{'name':_0x31cb52,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':fi(_0xb38c62)};}function hi(_0x923408,_0x3e017b,_0x26400f=!0x1){return _0x36870f=>({'id':_0x923408,'type':_0x3e7c2a['BUTTON'],'label':{'name':_0x3e017b,'hoverable':!0x1,'selectable':!0x1},'hidden$':di(_0x36870f,_0x26400f)});}const gi=hi($r,Hr),_i=hi(ei,Ur),vi=hi(ti,Wr,!0x0);function yi(_0x3f65a1){const _0x5587e2=_0xad1a59;return{'id':oi,'type':_0x3e7c2a[_0x5587e2(0x116)],'icon':Kr[0x0][_0x5587e2(0xce)],'label':Gr,'selectionsCommandId':_0x57a171['id'],'selections':Kr[_0x5587e2(0x21c)](({icon:_0x1c85fb,label:_0x283c7a,value:_0xf72965})=>({'value':_0xf72965,'label':_0x283c7a,'icon':_0x1c85fb,'params':()=>{const _0x98af0b=_0x5587e2;let _0x5c27dd=ci(_0x3f65a1);return _0x5c27dd?{'unitId':_0x5c27dd[_0x98af0b(0x306)],'subUnitId':_0x5c27dd['subUnitId'],'drawings':[{'unitId':_0x5c27dd[_0x98af0b(0x306)],'subUnitId':_0x5c27dd[_0x98af0b(0x19b)],'drawingId':_0x5c27dd[_0x98af0b(0xdb)]}],'wrappingStyle':_0xf72965}:void 0x0;}})),'value$':ui(_0x3f65a1),'hidden$':di(_0x3f65a1)};}function bi(_0xdd456a,_0xb8adaf,_0x466f73,_0x2ebf1e){const _0x4f52b0=_0xad1a59;return _0x1f5b57=>({'id':_0xdd456a,'commandId':_0x45f9b7['id'],'type':_0x3e7c2a[_0x4f52b0(0x1f0)],'icon':_0x466f73,'title':_0x2ebf1e,'tooltip':_0x2ebf1e,'hidden$':di(_0x1f5b57),'params':()=>{const _0x5344af=_0x4f52b0;let _0x229fdc=ci(_0x1f5b57);return _0x229fdc?{'unitId':_0x229fdc[_0x5344af(0x306)],'subUnitId':_0x229fdc[_0x5344af(0x19b)],'drawingIds':[_0x229fdc[_0x5344af(0xdb)]],'arrangeType':_0xb8adaf}:void 0x0;}});}const xi=bi(ni,_0x9688d3[_0xad1a59(0x294)],'MoveUpIcon',_0xad1a59(0x2c8)),Si=bi(ri,_0x9688d3[_0xad1a59(0x240)],'MoveDownIcon',_0xad1a59(0xf5)),Ci=bi(ii,_0x9688d3[_0xad1a59(0x1d6)],_0xad1a59(0x314),_0xad1a59(0x2a7)),wi=bi(ai,_0x9688d3['back'],_0xad1a59(0x286),_0xad1a59(0x15a));function Ti(_0x755535){const _0x30e48e=_0xad1a59;return{'id':q['id'],'type':_0x3e7c2a[_0x30e48e(0x1f0)],'icon':'ShapeFormatSettingIcon','title':_0x30e48e(0x21f),'tooltip':_0x30e48e(0x21f),'hidden$':di(_0x755535),'params':()=>{const _0x52203f=_0x30e48e;let _0x399e13=ci(_0x755535);return _0x399e13?{'unitId':_0x399e13[_0x52203f(0x306)],'subUnitId':_0x399e13[_0x52203f(0x19b)],'drawingId':_0x399e13['drawingId']}:void 0x0;}};}const Ei={[_0x28e9a7[_0xad1a59(0x1bc)]]:{[vr]:{'order':0x64,'title':_0xad1a59(0x21f),'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},[_0x2fbdbb['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x129f4f}}}}},Di={[_0xfe819d[_0xad1a59(0x27d)]]:{[G['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x5692d9=>({...Fr(_0x5692d9),'title':void 0x0})}},[_0xfe819d[_0xad1a59(0x27a)]]:{[Cr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Rr}},[_0x10e7d6[_0xad1a59(0x2f4)]]:{[_0xc5a42b[_0xad1a59(0x161)]]:{[_0x413891]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x9b697e]:{[_0xc5a42b[_0xad1a59(0x161)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x42c010]:{[_0xc5a42b[_0xad1a59(0x161)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Lr}}},[_0x56ea5f]:{'insert':{[G['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Fr}}},[_0x44dc8c]:{'insert':{[G['id']+_0xad1a59(0x123)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Ir}}}}};var Oi=_0xad1a59(0x1fc),ki=_0xad1a59(0xd7);const Ai={'type':_0x5cb708['OPERATION'],'id':_0xad1a59(0x104),'handler'(){return!0x0;}},ji=_0xad1a59(0xca),Mi={};function Ni(_0x2725be){'@babel/helpers - typeof';const _0x2e62dc=_0xad1a59;return Ni=typeof Symbol==_0x2e62dc(0x170)&&typeof Symbol[_0x2e62dc(0x29d)]=='symbol'?function(_0x58eb32){return typeof _0x58eb32;}:function(_0x89411f){const _0x3f742c=_0x2e62dc;return _0x89411f&&typeof Symbol==_0x3f742c(0x170)&&_0x89411f[_0x3f742c(0x279)]===Symbol&&_0x89411f!==Symbol[_0x3f742c(0x1d1)]?_0x3f742c(0x2b6):typeof _0x89411f;},Ni(_0x2725be);}function Pi(_0x201b9e,_0x3a13b9){const _0xaa4208=_0xad1a59;if(Ni(_0x201b9e)!=_0xaa4208(0x12e)||!_0x201b9e)return _0x201b9e;var _0x118d65=_0x201b9e[Symbol[_0xaa4208(0x1b6)]];if(_0x118d65!==void 0x0){var _0x2ffc91=_0x118d65[_0xaa4208(0x255)](_0x201b9e,_0x3a13b9||_0xaa4208(0x21b));if(Ni(_0x2ffc91)!=_0xaa4208(0x12e))return _0x2ffc91;throw TypeError(_0xaa4208(0x280));}return(_0x3a13b9===_0xaa4208(0x1ab)?String:Number)(_0x201b9e);}function Fi(_0x432b95){var _0x3c1272=Pi(_0x432b95,'string');return Ni(_0x3c1272)=='symbol'?_0x3c1272:_0x3c1272+'';}function Z(_0x3727ec,_0x1c74fc,_0x479963){const _0xb068f9=_0xad1a59;return(_0x1c74fc=Fi(_0x1c74fc))in _0x3727ec?Object[_0xb068f9(0x184)](_0x3727ec,_0x1c74fc,{'value':_0x479963,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3727ec[_0x1c74fc]=_0x479963,_0x3727ec;}var Ii=class extends _0x1fb5df{constructor(_0x236af2,_0x34ec3c){const _0x79d42=_0xad1a59;super(_0x236af2,_0x34ec3c),Z(this,_0x79d42(0x2cb),null),Z(this,_0x79d42(0x162),null),Z(this,_0x79d42(0x1e7),null),Z(this,_0x79d42(0x102),null),_0x34ec3c&&this[_0x79d42(0x2f9)](_0x34ec3c);}[_0xad1a59(0x24c)](){const _0x1290de=_0xad1a59;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1290de(0x2cb)]};}['setShapeProps'](_0x4d4970){const _0x202ecc=_0xad1a59;_0x4d4970[_0x202ecc(0x13a)]!==void 0x0&&(this[_0x202ecc(0x2cb)]=_0x4d4970['shapeId']),_0x4d4970[_0x202ecc(0x239)]!==void 0x0&&(this[_0x202ecc(0x162)]=_0x4d4970['adjName']),_0x4d4970[_0x202ecc(0x306)]!==void 0x0&&(this[_0x202ecc(0x1e7)]=_0x4d4970[_0x202ecc(0x306)]),_0x4d4970[_0x202ecc(0x19b)]!==void 0x0&&(this['_subUnitId']=_0x4d4970[_0x202ecc(0x19b)]),this['transformByState']({'width':_0x4d4970['width'],'height':_0x4d4970[_0x202ecc(0x124)]});}[_0xad1a59(0x20d)](_0x546641){const _0x28d7ab=_0xad1a59;_0x1228c1[_0x28d7ab(0x118)](_0x546641,{'radius':_0x4e5625[_0x28d7ab(0x2af)],'fill':_0x4e5625[_0x28d7ab(0x24b)],'stroke':_0x4e5625[_0x28d7ab(0x13b)],'strokeWidth':0x1,'evented':!0x0});}};function Li(_0x3d4002,_0x5d9b66,_0x1b6c4b){const _0x2ac098=_0xad1a59;let _0x5db3a1={..._0x5d9b66,'dataModel':{..._0x5d9b66[_0x2ac098(0x235)]??{},..._0x1b6c4b?{'doc':_0x1b6c4b}:null}},_0x150316=_0x456679(_0x3d4002,_0x5db3a1),_0x52a91d=_0x2957db(_0x150316);return{'clip':_0x33a87f(_0x150316,_0x52a91d),'wrapStrategy':_0x52a91d};}var Ri=class extends _0x1fb5df{constructor(_0x352efa,_0x514032){const _0x3adc0e=_0xad1a59;super(_0x352efa,_0x514032),Z(this,'_props',void 0x0),Z(this,_0x3adc0e(0x25b),new _0x279391(()=>this[_0x3adc0e(0x246)](!0x0),()=>this[_0x3adc0e(0x309)]())),Z(this,'_transformCalculateSrcRect',!0x0),Z(this,_0x3adc0e(0x12c),_0x16107f[_0x3adc0e(0x284)]),Z(this,_0x3adc0e(0x17a),!0x0),this[_0x3adc0e(0x202)]={..._0x514032},this[_0x3adc0e(0x25b)][_0x3adc0e(0x1a3)](_0x514032[_0x3adc0e(0x186)],_0x514032[_0x3adc0e(0x156)]!==!0x1),this[_0x3adc0e(0x1ce)](),this[_0x3adc0e(0x309)]();}[_0xad1a59(0x1ce)](){const _0x30039e=_0xad1a59;this[_0x30039e(0x142)][_0x30039e(0xcd)](_0x43ba38=>{const _0x281d66=_0x30039e;this[_0x281d66(0x23a)](_0x43ba38);});}[_0xad1a59(0x1ca)](_0x35044b){this['_props']['prstGeom']=_0x35044b;}[_0xad1a59(0x1d8)](_0x38f5ed){const _0x4ec439=_0xad1a59;this[_0x4ec439(0x202)]['isEditing']=_0x38f5ed,this[_0x4ec439(0x246)](!0x0);}[_0xad1a59(0x117)](_0x4a968e,_0x4cd7f7=!0x0){const _0x273e60=_0xad1a59;this[_0x273e60(0x25b)]['setPresentation'](_0x4a968e,_0x4cd7f7),this[_0x273e60(0x202)][_0x273e60(0x186)]=_0x4a968e,this[_0x273e60(0x309)](),this[_0x273e60(0x246)](!0x0);}[_0xad1a59(0x309)](){const _0x28ac97=_0xad1a59;let _0x5dbb0c=this['_props'][_0x28ac97(0x300)],_0x1ca50f=_0x5dbb0c[_0x28ac97(0x31c)](),_0x49e8f6=_0x5659e7(_0x1ca50f==null?void 0x0:_0x1ca50f['dataModel']),_0x3a3307=_0x49e8f6==null?void 0x0:_0x49e8f6['doc'],_0x3a6b66=this[_0x28ac97(0x25b)][_0x28ac97(0x1bf)]();if(!_0x3a3307||_0x3a6b66[_0x28ac97(0x296)]===0x0)return;_0x5dbb0c[_0x28ac97(0x29b)]({'width':this[_0x28ac97(0xf1)],'height':this['height']});let _0x54a36b=_0xc7eb1f({'documentData':_0x3a6b66[_0x28ac97(0x21c)](_0x2699fe=>_0x5b6ae5(_0x3a3307,_0x2699fe)),'height':this[_0x28ac97(0x124)],'shapeData':_0x5dbb0c[_0x28ac97(0x226)](),'textRect':_0x5dbb0c[_0x28ac97(0x12f)]({'left':0x0,'top':0x0,'width':this[_0x28ac97(0xf1)],'height':this[_0x28ac97(0x124)]}),'width':this[_0x28ac97(0xf1)]});if(_0x54a36b){var _0x28049e;this[_0x28ac97(0x2a8)](_0x54a36b['width'],_0x54a36b[_0x28ac97(0x124)]),(_0x28049e=this['getScene']())==null||(_0x28049e=_0x28049e[_0x28ac97(0x2f8)]())==null||_0x28049e[_0x28ac97(0xf0)]();}}get[_0xad1a59(0x306)](){const _0x58cdbd=_0xad1a59;return this[_0x58cdbd(0x202)][_0x58cdbd(0x306)];}get['subUnitId'](){const _0x4063f1=_0xad1a59;return this[_0x4063f1(0x202)]['subUnitId'];}[_0xad1a59(0x23a)](_0x38c252){const _0x40c5c6=_0xad1a59;if(this[_0x40c5c6(0x202)]['srcRect']==null||!this[_0x40c5c6(0x2a0)])return;let {width:_0x13a298,height:_0x2dbbea}=this,{width:_0x1ce7e2=0x0,height:_0xcfcd2=0x0}=_0x38c252[_0x40c5c6(0x29f)],{left:_0x3416b6=0x0,top:_0x2bf96c=0x0,right:_0x341f38=0x0,bottom:_0x5660e6=0x0}=this[_0x40c5c6(0x202)]['srcRect'],_0xe4a132=_0x3416b6,_0x2aa8cd=_0x2bf96c,_0x5ee53f=_0x341f38,_0x322127=_0x5660e6,_0x8ea29d=!0x1;if(_0x1ce7e2!==0x0&&_0x1ce7e2!==_0x13a298){let _0x1b6c09=_0x3416b6/_0x1ce7e2,_0x10b98f=_0x341f38/_0x1ce7e2;_0xe4a132=_0x13a298*_0x1b6c09,_0x5ee53f=_0x13a298*_0x10b98f,_0x8ea29d=!0x0;}if(_0xcfcd2!==0x0&&_0xcfcd2!==_0x2dbbea){let _0x2bac90=_0x2bf96c/_0xcfcd2,_0x599ebb=_0x5660e6/_0xcfcd2;_0x2aa8cd=_0x2dbbea*_0x2bac90,_0x322127=_0x2dbbea*_0x599ebb,_0x8ea29d=!0x0;}_0x8ea29d&&this[_0x40c5c6(0x315)]({'left':_0xe4a132,'top':_0x2aa8cd,'right':_0x5ee53f,'bottom':_0x322127});}[_0xad1a59(0x315)](_0x4b4bd5){const _0xa1a389=_0xad1a59;this[_0xa1a389(0x202)][_0xa1a389(0x11a)]=_0x4b4bd5,this[_0xa1a389(0x246)](!0x0);}[_0xad1a59(0x16c)](_0x52293e){const _0xa9727c=_0xad1a59;this[_0xa9727c(0x202)][_0xa9727c(0xeb)]=_0x52293e,this[_0xa9727c(0x246)](!0x0);}set['transform'](_0x12291c){const _0xb07e36=_0xad1a59;this[_0xb07e36(0x2ac)]=_0x12291c;}get['transform'](){const _0x2f8d54=_0xad1a59;this[_0x2f8d54(0x2ac)]||this[_0x2f8d54(0x28a)]();let _0x188864=this[_0x2f8d54(0x2ac)][_0x2f8d54(0x214)]();return this[_0x2f8d54(0x19c)](_0x188864);}get[_0xad1a59(0x300)](){const _0x7c3ddb=_0xad1a59;return this[_0x7c3ddb(0x202)]['shapeModel'];}get[_0xad1a59(0x13a)](){const _0x1a35dc=_0xad1a59;return this[_0x1a35dc(0x202)]['shapeId'];}get[_0xad1a59(0x183)](){return _0x534c90['SHAPE'];}[_0xad1a59(0x20d)](_0x3bb8a0,_0x2b777f,_0xbc4b79,_0x464044){const _0x4b2d62=_0xad1a59;let _0x561fa9=this['_props'][_0x4b2d62(0x300)];if(!_0x561fa9||!_0x2b777f)return;let _0x456903=_0xbc4b79??this[_0x4b2d62(0xf1)],_0x414a9a=_0x464044??this[_0x4b2d62(0x124)],_0x131aa6={'shapeType':_0x561fa9[_0x4b2d62(0x159)](),'width':_0x456903,'height':_0x414a9a},_0x3f89b9={'renderMode':_0x2ebf20[_0x4b2d62(0x103)],'oKey':this['oKey'],'image':this['_props'][_0x4b2d62(0xeb)],'angle':this['angle']};_0x561fa9[_0x4b2d62(0x29b)](_0x131aa6),_0x3bb8a0[_0x4b2d62(0x2ad)]();let _0x50606b={'top':0x0,'left':0x0,'width':_0x456903,'height':_0x414a9a},_0x4492a9=_0x561fa9['getDrawingEffectBounds'](_0x50606b);_0x4492a9?this[_0x4b2d62(0x220)](_0x3bb8a0,_0x4492a9,_0x6fc8fc=>{_0x561fa9['render'](_0x6fc8fc,_0x50606b,_0x3f89b9);}):(this[_0x4b2d62(0x144)](),_0x561fa9['render'](_0x3bb8a0,_0x50606b,_0x3f89b9)),_0x3bb8a0[_0x4b2d62(0x222)]();let _0x3ed446=_0x561fa9[_0x4b2d62(0x31c)](),_0x26be5e=_0x561fa9[_0x4b2d62(0x12f)](_0x50606b),_0x4fdfb8=_0x561fa9[_0x4b2d62(0xfb)]();if(_0x3ed446&&_0x26be5e&&!_0x4fdfb8){_0x3bb8a0[_0x4b2d62(0x2ad)](),this[_0x4b2d62(0x189)]()[_0x4b2d62(0x2b8)]&&_0x3bb8a0[_0x4b2d62(0x20c)](-0x1,0x1);let _0x589c52=_0x456903/0x2,_0xf5e542=_0x414a9a/0x2;_0x3bb8a0[_0x4b2d62(0x30f)](-_0x589c52,-_0xf5e542),_0x3bb8a0[_0x4b2d62(0x218)](),this[_0x4b2d62(0x1e3)](_0x3bb8a0,_0x3ed446,_0x26be5e),_0x3bb8a0[_0x4b2d62(0x222)]();}}['getDrawingPoints'](_0x20f47e){}[_0xad1a59(0x1e3)](_0x33a3ca,_0x2f89c2,_0x58e170){const _0x57c195=_0xad1a59;var _0x317840;this[_0x57c195(0x202)][_0x57c195(0x2b0)]||(!((_0x317840=_0x2f89c2[_0x57c195(0x235)])!=null&&_0x317840['doc'])&&_0x57c195(0x30d)in _0x2f89c2&&_0x2f89c2[_0x57c195(0x30d)]===!0x1?this[_0x57c195(0x206)](_0x33a3ca,_0x2f89c2,_0x58e170):this[_0x57c195(0x2de)](_0x33a3ca,_0x2f89c2,_0x58e170));}[_0xad1a59(0x206)](_0x28cf1d,_0x356a0d,_0x35d3ec){const _0x5399d8=_0xad1a59;this[_0x5399d8(0x2de)](_0x28cf1d,{..._0x356a0d,'text':_0x356a0d['text']??'','dataModel':{'doc':_0x1e932a(_0x356a0d,_0x5399d8(0x11b)+this['oKey'])}},_0x35d3ec);}[_0xad1a59(0x2de)](_0x3625fe,_0x3dfe66,_0x30c151){_0x549816(_0x3625fe,this['_formulaAnimation'],(_0x9fb67d,_0x1e18d4)=>{this['_drawRichTextLayer'](_0x9fb67d,_0x3dfe66,_0x30c151,_0x1e18d4);});}[_0xad1a59(0x30e)](_0x5a3d39,_0x1118f8,_0x190aca,_0xd24b13){const _0x544283=_0xad1a59;let _0x5cb4c9=this[_0x544283(0x202)][_0x544283(0x20a)];if(!_0x1118f8[_0x544283(0x235)]||!_0x5cb4c9){_0x5cb4c9||console[_0x544283(0x1a1)](_0x544283(0x1db));return;}let _0x31eeb1=_0x5659e7(_0x1118f8[_0x544283(0x235)]);if(!_0x31eeb1)return;let _0x50eb26=_0x31eeb1[_0x544283(0x21a)];if(!_0x50eb26)return;let _0x2695c1=_0x5b6ae5(_0x50eb26,_0xd24b13),_0xaa8193=_0x31eeb1['va']??_0x3a9d83[_0x544283(0x137)],_0x1e915b=_0x31eeb1['ha']??_0x5c2fd9[_0x544283(0x2b2)],_0x298ef7=Li(this['_props'][_0x544283(0x300)]['getShapeData'](),_0x1118f8,_0x2695c1),_0x5bf1e2=_0x1118f8[_0x544283(0x2d9)],_0x306130=_0x264c4b(_0x2695c1,{'isHorizontal':_0x5bf1e2!==!0x1,'textRect':_0x190aca,'verticalAlign':_0xaa8193,'horizontalAlign':_0x1e915b,'wrapStrategy':_0x298ef7[_0x544283(0x288)]}),_0x45dcb6=new _0x18a8fc(_0x306130),_0x420c0c=new _0x1d3879(_0x45dcb6),_0x26f004=_0x454db7[_0x544283(0x188)](_0x420c0c,_0x5cb4c9);_0x26f004[_0x544283(0x2b3)]();let _0xccf80c=_0x26f004[_0x544283(0x217)]()['actualHeight'],_0x1bc5da=_0x52a5e6({'contentHeight':_0xccf80c,'verticalAlign':_0xaa8193,'viewportHeight':_0x190aca['height']});_0x45dcb6[_0x544283(0x10b)]({'pageSize':{'width':_0x5bf1e2===!0x1?_0x190aca[_0x544283(0x124)]:_0x190aca[_0x544283(0xf1)],'height':_0x279db7(_0x2695c1,_0x1bc5da[_0x544283(0x193)])}}),_0x45dcb6[_0x544283(0x310)]({'t':_0x1bc5da[_0x544283(0x2ab)]}),_0x26f004[_0x544283(0x2b3)]();let _0x22ed9e=new _0x1e7e67(_0x544283(0x14a)+this[_0x544283(0x2d8)],_0x26f004,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x544283(0x246)](!0x0)});_0x22ed9e[_0x544283(0x2a8)](_0x190aca[_0x544283(0xf1)],_0x1bc5da[_0x544283(0x193)]),_0x5a3d39['save'](),_0x5a3d39['translateWithPrecision'](_0x190aca[_0x544283(0xb1)],_0x190aca['top']),_0x298ef7[_0x544283(0x18d)]&&(_0x5a3d39[_0x544283(0x218)](),_0x5a3d39[_0x544283(0xe6)](0x0,_0x1bc5da[_0x544283(0x179)],_0x190aca[_0x544283(0xf1)],_0x1bc5da[_0x544283(0x119)]),_0x5a3d39[_0x544283(0x18d)]()),_0x1bc5da[_0x544283(0x292)]&&_0x5a3d39[_0x544283(0x172)](0x0,_0x1bc5da['contentVerticalOffset']),_0x22ed9e[_0x544283(0x25e)](_0x5a3d39),_0x5a3d39['restore'](),_0x22ed9e['dispose'](),_0x26f004[_0x544283(0x1d9)](),_0x420c0c['dispose'](),_0x45dcb6[_0x544283(0x1d9)]();}[_0xad1a59(0x283)](_0x1b1777,_0x4d2e3c,_0x140c95=!0x1){const _0x8f836e=_0xad1a59;if(!this[_0x8f836e(0x260)])return this[_0x8f836e(0x246)](!0x1),this;let {width:_0x552bed,height:_0x453baa,left:_0x3bdfc7,top:_0xbf7a3e}=this,_0x1b47fc=this[_0x8f836e(0x2ca)]();if(_0x552bed=_0x1b47fc[_0x8f836e(0xf1)],_0x453baa=_0x1b47fc[_0x8f836e(0x124)],_0x3bdfc7=_0x1b47fc[_0x8f836e(0xb1)],_0xbf7a3e=_0x1b47fc[_0x8f836e(0x1c8)],this[_0x8f836e(0x2da)](_0x4d2e3c)){let {top:_0xbc0ee9,left:_0x21def3,bottom:_0x485124,right:_0x40b343}=_0x4d2e3c[_0x8f836e(0x16b)];if(_0x552bed+this[_0x8f836e(0xc8)]+_0x3bdfc7<_0x21def3||_0x40b343<_0x3bdfc7||_0x453baa+this[_0x8f836e(0xc8)]+_0xbf7a3e<_0xbc0ee9||_0x485124<_0xbf7a3e)return this;}let _0xd16d9c=_0x3bdfc7+_0x552bed/0x2,_0x3101c8=_0xbf7a3e+_0x453baa/0x2,_0x5602f0=this[_0x8f836e(0x2fb)][_0x8f836e(0x22a)]();if(this[_0x8f836e(0x202)]['isEditing']){let _0x4b4c40=this['getState'](),_0x4e7380=new _0x53b936();_0x4e7380[_0x8f836e(0x205)]({..._0x4b4c40}),_0x5602f0=_0x4e7380[_0x8f836e(0x22a)]();}return _0x1b1777[_0x8f836e(0x2ad)](),this['_props'][_0x8f836e(0x300)][_0x8f836e(0x11c)]===!0x0||_0x1b1777[_0x8f836e(0x2fb)](_0x5602f0[0x0],_0x5602f0[0x1],_0x5602f0[0x2],_0x5602f0[0x3],_0xd16d9c,_0x3101c8),this[_0x8f836e(0x20d)](_0x1b1777,_0x4d2e3c,_0x552bed,_0x453baa),_0x1b1777[_0x8f836e(0x222)](),this['makeDirty'](!0x1),this;}[_0xad1a59(0x276)](_0x526e28){const _0x74655e=_0xad1a59;let {left:_0x1c64e7,top:_0x4dd3c0,width:_0x15097f,height:_0x347c73}=this['getRealBound'](),_0x4221f8=this[_0x74655e(0x2fb)][_0x74655e(0x22a)](),_0x5d34c3=_0x1c64e7+_0x15097f/0x2,_0x2f1480=_0x4dd3c0+_0x347c73/0x2,_0x1fdae0=new _0x53b936([_0x4221f8[0x0],_0x4221f8[0x1],_0x4221f8[0x2],_0x4221f8[0x3],_0x5d34c3,_0x2f1480]),_0x273c42=this[_0x74655e(0x12d)]();return(this['isInGroup']&&(_0x273c42==null?void 0x0:_0x273c42[_0x74655e(0x183)])===_0x534c90[_0x74655e(0x262)]?_0x273c42['ancestorTransform'][_0x74655e(0x241)](_0x1fdae0):_0x1fdae0)[_0x74655e(0x1e8)]()[_0x74655e(0x25c)](_0x526e28);}[_0xad1a59(0x319)](_0x8db1ac){const _0x34b519=_0xad1a59;let {left:_0x4f9677,top:_0x5054f6,width:_0x10e9f1,height:_0x348e28}=this[_0x34b519(0x2ca)](),_0x17bfe4=_0x4f9677+_0x10e9f1/0x2,_0x2ea91c=_0x5054f6+_0x348e28/0x2,_0x46a050=this[_0x34b519(0x2fb)][_0x34b519(0x22a)](),_0x4290f1=new _0x53b936([_0x46a050[0x0],_0x46a050[0x1],_0x46a050[0x2],_0x46a050[0x3],_0x17bfe4,_0x2ea91c]),_0x35e0e6=this[_0x34b519(0x12d)](),_0x1ea187=(this[_0x34b519(0xbd)]&&(_0x35e0e6==null?void 0x0:_0x35e0e6['classType'])===_0x534c90[_0x34b519(0x262)]?_0x35e0e6['ancestorTransform'][_0x34b519(0x241)](_0x4290f1):_0x4290f1)[_0x34b519(0x1e8)]()[_0x34b519(0x25c)](_0x8db1ac),_0x29ca3f=_0x10e9f1/0x2,_0x1fb58a=_0x348e28/0x2,_0x2c0a17=this[_0x34b519(0x202)][_0x34b519(0x300)];return _0x2c0a17&&_0x2c0a17['isLineShape']()?_0x2c0a17[_0x34b519(0x28e)](_0x1ea187['x'],_0x1ea187['y'],_0x10e9f1,_0x348e28):_0x1ea187['x']>=-_0x29ca3f-this[_0x34b519(0xc8)]/0x2&&_0x1ea187['x']<=_0x29ca3f+this[_0x34b519(0xc8)]/0x2&&_0x1ea187['y']>=-_0x1fb58a-this[_0x34b519(0xc8)]/0x2&&_0x1ea187['y']<=_0x1fb58a+this[_0x34b519(0xc8)]/0x2;}['dispose'](){const _0x226b46=_0xad1a59;this[_0x226b46(0x25b)][_0x226b46(0x1d9)](),this[_0x226b46(0x202)][_0x226b46(0x300)]=null,super[_0x226b46(0x1d9)]();}};let zi=class extends _0x464e07{constructor(_0x355aec,_0x5bfb9b,_0x6f844f,_0x1b4122){const _0x2142fd=_0xad1a59;super(),this[_0x2142fd(0xc7)]=_0x355aec,this[_0x2142fd(0x131)]=_0x5bfb9b,this[_0x2142fd(0x318)]=_0x6f844f,this['_commandService']=_0x1b4122,Z(this,_0x2142fd(0x14e),null),Z(this,_0x2142fd(0x1e7),null),Z(this,_0x2142fd(0x102),null),Z(this,_0x2142fd(0x305),void 0x0),Z(this,_0x2142fd(0x26f),[]),Z(this,_0x2142fd(0x2ee),0x0),Z(this,_0x2142fd(0x10d),0x0),Z(this,_0x2142fd(0x308),0x0),Z(this,_0x2142fd(0x210),0x0),Z(this,_0x2142fd(0x1c0),!0x1),Z(this,'_isShouldShowDrawingShapeAdjust',!0x1),Z(this,_0x2142fd(0xfd),void 0x0),Z(this,_0x2142fd(0x1e4),void 0x0),Z(this,_0x2142fd(0x1cb),void 0x0),Z(this,_0x2142fd(0x129),void 0x0),this[_0x2142fd(0x16d)](),this['_registerDrawingTransformHandler']();}[_0xad1a59(0xf4)](){const _0x50a8a7=_0xad1a59;this[_0x50a8a7(0x263)]();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!0x0);}['_getShapeAdjustPointListById'](_0x3ff8aa,_0xd64934,_0x3d007c){const _0x2ef736=_0xad1a59;var _0x2cae30;return(_0x2cae30=this[_0x2ef736(0x318)][_0x2ef736(0x2b9)](_0x3ff8aa,_0xd64934,_0x3d007c))==null?void 0x0:_0x2cae30[_0x2ef736(0x169)]();}[_0xad1a59(0x278)](_0x103195,_0x21182b,_0x409074,_0x1caf1f){const _0x49ed4f=_0xad1a59;var _0x1fcb36;return(_0x1fcb36=this[_0x49ed4f(0x318)][_0x49ed4f(0x2b9)](_0x103195,_0x21182b,_0x409074))==null?void 0x0:_0x1fcb36[_0x49ed4f(0xb4)](_0x1caf1f);}[_0xad1a59(0x139)](){const _0x4ae60e=_0xad1a59;return this[_0x4ae60e(0x1e7)]===null||this[_0x4ae60e(0x102)]===null||this['_activeShapeId']===null?null:this['_drawingManagerService'][_0x4ae60e(0x164)]({'unitId':this[_0x4ae60e(0x1e7)],'subUnitId':this[_0x4ae60e(0x102)],'drawingId':this[_0x4ae60e(0x14e)]})??null;}[_0xad1a59(0x2ae)](_0x32714f){const _0x394bcc=_0xad1a59;if(this[_0x394bcc(0x1e7)]===null||this['_subUnitId']===null||this[_0x394bcc(0x14e)]===null)return null;let _0x45534e=_0x1cc035({'unitId':this['_unitId'],'subUnitId':this[_0x394bcc(0x102)],'drawingId':this[_0x394bcc(0x14e)]}),_0x2bc4ce=_0x32714f[_0x394bcc(0x2c2)](_0x45534e);return _0x2bc4ce instanceof Ri?_0x2bc4ce:null;}[_0xad1a59(0x2eb)](_0x4b1808=!0x1){const _0x1fca56=_0xad1a59;if(this[_0x1fca56(0x1e7)]===null||this[_0x1fca56(0x102)]===null||this[_0x1fca56(0x14e)]===null)return;let _0x501a90=this[_0x1fca56(0x139)]();if((_0x501a90==null?void 0x0:_0x501a90[_0x1fca56(0x289)])!==_0x16107f[_0x1fca56(0x284)]||!_0x501a90[_0x1fca56(0x2fb)])return;let _0x470c23=this[_0x1fca56(0x318)][_0x1fca56(0x2b9)](this[_0x1fca56(0x1e7)],this[_0x1fca56(0x102)],this['_activeShapeId']);if(!_0x470c23||_0x470c23['isLineShape']())return;let {left:_0x27cb3e=0x0,top:_0x1f4b47=0x0,width:_0x458098=0x0,height:_0x23ddde=0x0,flipX:_0x23807c,flipY:_0x4dff04,angle:_0x3c5534=0x0}=_0x501a90[_0x1fca56(0x2fb)];(_0x4b1808||!this[_0x1fca56(0x305)])&&(_0x470c23[_0x1fca56(0x29b)]({'width':_0x458098,'height':_0x23ddde}),this['_activeShapeAdjustPointList']=_0x470c23[_0x1fca56(0x169)]());let _0x336202=this[_0x1fca56(0x305)];if(!(_0x336202!=null&&_0x336202[_0x1fca56(0x296)]))return;let {scene:_0x3c28b3}=this[_0x1fca56(0xc7)];for(let _0x9ed675 of _0x336202){let _0x4e9da8=this[_0x1fca56(0x233)](_0x9ed675,_0x458098,_0x23ddde,!!_0x23807c,!!_0x4dff04,_0x3c5534);this[_0x1fca56(0x238)](_0x3c28b3,_0x4e9da8,_0x4e9da8[_0x1fca56(0x239)],_0x27cb3e,_0x1f4b47,this[_0x1fca56(0x1e7)],this[_0x1fca56(0x102)]);}}[_0xad1a59(0x233)](_0x267794,_0x540152,_0x486743,_0x4065e3,_0x23317c,_0x9fbea5){const _0x38ba4b=_0xad1a59;let _0x126782=_0x267794['x'],_0x5f0a89=_0x267794['y'];if(_0x4065e3&&(_0x126782=_0x540152-_0x126782),_0x23317c&&(_0x5f0a89=_0x486743-_0x5f0a89),_0x9fbea5!==0x0){let _0x6dc44b=_0x540152/0x2,_0x103ec3=_0x486743/0x2,_0x32e300=_0x9fbea5*Math['PI']/0xb4,_0x20dd0f=Math[_0x38ba4b(0x23f)](_0x32e300),_0x5eed68=Math[_0x38ba4b(0x261)](_0x32e300),_0x15e281=_0x126782-_0x6dc44b,_0x3f8fce=_0x5f0a89-_0x103ec3;_0x126782=_0x6dc44b+(_0x15e281*_0x20dd0f-_0x3f8fce*_0x5eed68),_0x5f0a89=_0x103ec3+(_0x15e281*_0x5eed68+_0x3f8fce*_0x20dd0f);}return{'x':_0x126782,'y':_0x5f0a89,'adjName':_0x267794[_0x38ba4b(0x239)]};}[_0xad1a59(0x2ef)](_0x1963a4=!0x1){const _0x2fb11f=_0xad1a59;_0x1963a4&&this[_0x2fb11f(0x263)](),this[_0x2fb11f(0x2eb)](_0x1963a4);}['_addShapeAdjustControl'](_0x58ec20,_0x3f6b5c,_0x49a6b6,_0x55dc8d,_0x21382b,_0x52eb20,_0xcc9c60){const _0x45756c=_0xad1a59;if(!this[_0x45756c(0x14e)])return;let _0xd26ce7=_0x45756c(0x1fe)+this[_0x45756c(0x14e)]+'-'+_0x49a6b6,_0x19563b=_0x58ec20[_0x45756c(0x2c2)](_0xd26ce7);if(_0x19563b){_0x19563b[_0x45756c(0x25a)]({'left':_0x3f6b5c['x']+_0x55dc8d-_0x4e5625[_0x45756c(0x2af)],'top':_0x3f6b5c['y']+_0x21382b-_0x4e5625['adjHandleSize']}),_0x19563b['makeDirty'](!0x0);return;}let _0x552ecd=new Ii(_0xd26ce7,{'left':_0x3f6b5c['x']+_0x55dc8d-_0x4e5625[_0x45756c(0x2af)],'top':_0x3f6b5c['y']+_0x21382b-_0x4e5625[_0x45756c(0x2af)],'adjName':_0x49a6b6,'shapeId':this[_0x45756c(0x14e)],'unitId':_0x52eb20,'subUnitId':_0xcc9c60,'width':_0x4e5625[_0x45756c(0x2af)]+0x8,'height':_0x4e5625[_0x45756c(0x2af)]+0x8,'zIndex':_0x906907+0x1,'evented':!0x0});this['_adjustPointObjects']['push'](_0x552ecd),this[_0x45756c(0x295)](_0x552ecd,_0x58ec20,_0x49a6b6),_0x58ec20[_0x45756c(0x2a9)](_0x552ecd,_0x906907+0x1);}[_0xad1a59(0x263)](){const _0x38d108=_0xad1a59;this[_0x38d108(0x26f)][_0x38d108(0x302)](_0x3cc554=>_0x3cc554[_0x38d108(0x1d9)]()),this['_adjustPointObjects']=[];}[_0xad1a59(0x132)](){const _0x3ca604=_0xad1a59;this[_0x3ca604(0x2eb)]();}[_0xad1a59(0x224)](_0x182b22,_0x400130,_0x13c786){const _0x424d0a=_0xad1a59;let _0x2114ae=_0x3960b4['FromArray']([_0x400130,_0x13c786]),_0xcdadca=_0x182b22['getActiveViewportByCoord'](_0x2114ae)??_0x182b22['getViewports']()[0x0];return(_0xcdadca==null?void 0x0:_0xcdadca[_0x424d0a(0xf6)](_0x2114ae))??_0x2114ae;}[_0xad1a59(0x295)](_0x5633d7,_0x33aeec,_0x103e54){const _0x38388c=_0xad1a59;this[_0x38388c(0x1a6)](_0xf4ef4a(_0x5633d7[_0x38388c(0x1c6)][_0x38388c(0xcd)]((_0x4a740d,_0x56036a)=>{const _0x10a552=_0x38388c;var _0x5c8396;let _0x563089=_0x5633d7[_0x10a552(0x24c)]();this[_0x10a552(0xfd)]=this['_getShapeAdjustInfosById'](_0x563089['unitId'],_0x563089[_0x10a552(0x19b)],_0x563089[_0x10a552(0xdb)],_0x103e54),this[_0x10a552(0x1e4)]=this[_0x10a552(0x318)][_0x10a552(0x2b9)](_0x563089[_0x10a552(0x306)],_0x563089['subUnitId'],_0x563089[_0x10a552(0xdb)]);let _0x293cf5=this[_0x10a552(0x139)](),_0x2ab103=_0x293cf5==null?void 0x0:_0x293cf5['transform'];if(!_0x293cf5||!_0x2ab103||!this[_0x10a552(0x1e4)])return;this[_0x10a552(0x2ee)]=_0x2ab103['left']||0x0,this[_0x10a552(0x10d)]=_0x2ab103[_0x10a552(0x1c8)]||0x0,this[_0x10a552(0x308)]=_0x2ab103[_0x10a552(0xf1)]||0x0,this[_0x10a552(0x210)]=_0x2ab103[_0x10a552(0x124)]||0x0;let _0x1a7927=!!_0x2ab103['flipX'],_0x540d25=!!_0x2ab103['flipY'],_0x1b0ab5=_0x2ab103[_0x10a552(0x227)]||0x0,_0x2b0cf0={...((_0x5c8396=this[_0x10a552(0xfd)])==null?void 0x0:_0x5c8396['currentAdjustValues'])??{}};this['_isStartAdjusting']=!0x0,_0x33aeec['disableObjectsEvent'](),this['_adjHandlerPointerMove']=_0x33aeec[_0x10a552(0x126)]['subscribeEvent']((_0x1af590,_0x52d3c4)=>{const _0x53c729=_0x10a552;var _0x463dfa;if(!this[_0x53c729(0x1c0)]||!this[_0x53c729(0x1e4)]||!this[_0x53c729(0xfd)])return;_0x33aeec[_0x53c729(0x13d)](),_0x33aeec['setCursor'](_0x7d9b20[_0x53c729(0x17f)]);let _0x283329=this[_0x53c729(0x224)](_0x33aeec,_0x1af590[_0x53c729(0x225)],_0x1af590['offsetY']),_0x4d77d1=_0x283329['x']-this[_0x53c729(0x2ee)],_0x5c08a6=_0x283329['y']-this[_0x53c729(0x10d)];if(_0x1b0ab5!==0x0){let _0x4ce4de=this[_0x53c729(0x308)]/0x2,_0x41b9af=this[_0x53c729(0x210)]/0x2,_0x38f136=_0x1b0ab5*Math['PI']/0xb4,_0xe0eca8=Math['cos'](_0x38f136),_0x17930f=Math['sin'](_0x38f136),_0x188e9d=_0x4d77d1-_0x4ce4de,_0x43ca41=_0x5c08a6-_0x41b9af;_0x4d77d1=_0x4ce4de+(_0x188e9d*_0xe0eca8+_0x43ca41*_0x17930f),_0x5c08a6=_0x41b9af+(-_0x188e9d*_0x17930f+_0x43ca41*_0xe0eca8);}_0x1a7927&&(_0x4d77d1=this[_0x53c729(0x308)]-_0x4d77d1),_0x540d25&&(_0x5c08a6=this['_baseShapeHeight']-_0x5c08a6);let _0x179ef4={'left':0x0,'top':0x0,'width':this[_0x53c729(0x308)],'height':this['_baseShapeHeight']},_0x2189a4=this[_0x53c729(0x1e4)][_0x53c729(0x138)](_0x179ef4,{'x':_0x4d77d1,'y':_0x5c08a6},this['_activeAdjustInfo'],_0x1a7927,_0x540d25);if(Object[_0x53c729(0x107)](_0x2189a4)[_0x53c729(0x296)]!==0x0){for(let [_0x5a46ef,_0x4668f8]of Object[_0x53c729(0x26d)](_0x2189a4))this[_0x53c729(0x1e4)][_0x53c729(0x1bd)](_0x5a46ef,_0x4668f8);this[_0x53c729(0x1e4)][_0x53c729(0x29b)]({'width':this[_0x53c729(0x308)],'height':this['_baseShapeHeight']}),(_0x463dfa=this[_0x53c729(0x2ae)](_0x33aeec))==null||_0x463dfa['makeDirty'](!0x0),this[_0x53c729(0x305)]=this[_0x53c729(0x2fa)](_0x563089['unitId'],_0x563089[_0x53c729(0x19b)],_0x563089[_0x53c729(0xdb)]),this[_0x53c729(0x132)](),_0x52d3c4[_0x53c729(0x15e)]();}}),this[_0x10a552(0x129)]=_0x33aeec[_0x10a552(0x143)][_0x10a552(0xcd)]((_0x30c440,_0x491d1d)=>{const _0x19a73c=_0x10a552;var _0x50abfe,_0x1245b6;(_0x50abfe=this[_0x19a73c(0x1cb)])==null||_0x50abfe[_0x19a73c(0x1f2)](),(_0x1245b6=this['_adjHandlerPointerUp'])==null||_0x1245b6[_0x19a73c(0x1f2)](),_0x33aeec[_0x19a73c(0x2a1)]();let _0xc651f2=this['_activeAdjustInfo'];if(_0xc651f2&&this[_0x19a73c(0x1e4)]){let _0x2fb5e8={};for(let _0x40fd49 of Object['keys'](_0xc651f2[_0x19a73c(0x171)])){let _0x407391=this[_0x19a73c(0x1e4)][_0x19a73c(0x1be)](_0x40fd49);_0x407391!==void 0x0&&(_0x2fb5e8[_0x40fd49]=_0x407391);}Object[_0x19a73c(0x107)](_0x2fb5e8)['length']>0x0&&zr(this[_0x19a73c(0x100)],_0x563089[_0x19a73c(0x306)],_0x563089['subUnitId'],_0x563089['drawingId'],{'oldShapeData':{'adjustValues':_0x2b0cf0}},{'adjustValues':_0x2fb5e8});}this[_0x19a73c(0xfd)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x19a73c(0x1c0)]=!0x1,_0x33aeec[_0x19a73c(0x17e)](),_0x491d1d['stopPropagation']();}),_0x56036a[_0x10a552(0x15e)]();})));}[_0xad1a59(0x2d6)](){const _0x5a8615=_0xad1a59;let {scene:_0x26e89e}=this[_0x5a8615(0xc7)],_0x2084a2=_0x26e89e['getTransformerByCreate']();this['disposeWithMe'](_0x2084a2['changeStart$'][_0x5a8615(0x245)](_0x2fd63d=>{const _0xe5ee17=_0x5a8615;this[_0xe5ee17(0x2eb)](),_0x2fd63d[_0xe5ee17(0x28f)]!==null&&_0x2fd63d[_0xe5ee17(0x28f)]['size']===0x1&&_0x2fd63d[_0xe5ee17(0x28f)][_0xe5ee17(0x2d3)]()['next']()['value']instanceof Ri&&(this[_0xe5ee17(0xe5)]=!0x0);})),this[_0x5a8615(0x1a6)](_0x2084a2[_0x5a8615(0x192)]['subscribe'](()=>{const _0x1367e7=_0x5a8615;this[_0x1367e7(0xe5)]&&this[_0x1367e7(0x263)]();})),this[_0x5a8615(0x1a6)](_0x26e89e[_0x5a8615(0x143)]['subscribeEvent'](()=>{const _0x368869=_0x5a8615;this[_0x368869(0xe5)]&&(this[_0x368869(0xe5)]=!0x1,this[_0x368869(0x2eb)]());})),this[_0x5a8615(0x1a6)](_0x2084a2[_0x5a8615(0x269)]['subscribe'](()=>{const _0x32d2f4=_0x5a8615;this[_0x32d2f4(0x1e7)]&&this['_subUnitId']&&this[_0x32d2f4(0x14e)]&&(this[_0x32d2f4(0x305)]=this[_0x32d2f4(0x2fa)](this['_unitId'],this['_subUnitId'],this[_0x32d2f4(0x14e)]),this['_updateAdjustControlPositions']());}));}[_0xad1a59(0x16d)](){const _0x355157=_0xad1a59;this[_0x355157(0x1a6)](this[_0x355157(0x100)]['onCommandExecuted'](_0x213370=>{const _0x350103=_0x355157;if(_0x213370['id']!==_0x18e8b3['id'])return;let {unitId:_0x2ee311,shapeId:_0x2715c6}=_0x213370[_0x350103(0x112)];_0x2ee311===this[_0x350103(0x1e7)]&&_0x2715c6===this['_activeShapeId']&&this[_0x350103(0x298)]();})),this[_0x355157(0x1a6)](this['_drawingManagerService'][_0x355157(0x307)]['subscribe'](_0x28d74a=>{const _0x578af3=_0x355157;if(_0x28d74a['length']===0x1){let _0x1e00c9=_0x28d74a[0x0],_0xed5fdf=this['_drawingManagerService'][_0x578af3(0x164)](_0x1e00c9);if((_0xed5fdf==null?void 0x0:_0xed5fdf['drawingType'])===_0x16107f['DRAWING_SHAPE']){this['_activeShapeId']=_0x1e00c9[_0x578af3(0xdb)],this['_unitId']=_0x1e00c9[_0x578af3(0x306)],this['_subUnitId']=_0x1e00c9[_0x578af3(0x19b)],this[_0x578af3(0x305)]=this[_0x578af3(0x2fa)](_0x1e00c9[_0x578af3(0x306)],_0x1e00c9['subUnitId'],_0x1e00c9['drawingId']),this[_0x578af3(0x263)](),this[_0x578af3(0x2eb)]();return;}}this[_0x578af3(0x14e)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x578af3(0x1e7)]=null,this[_0x578af3(0x102)]=null,this[_0x578af3(0x263)]();})),this[_0x355157(0x1a6)](_0x5f4fd7(this['_drawingManagerService']['update$'],this['_drawingManagerService'][_0x355157(0x140)])['subscribe'](_0x2a9a3b=>{const _0xb19248=_0x355157;var _0x5085ad;let _0x11efd7=_0x2a9a3b[_0xb19248(0x1a5)](_0x26d6fb=>_0x26d6fb[_0xb19248(0xdb)]===this['_activeShapeId']&&_0x26d6fb[_0xb19248(0x306)]===this[_0xb19248(0x1e7)]&&_0x26d6fb[_0xb19248(0x19b)]===this[_0xb19248(0x102)]);_0x11efd7&&((_0x5085ad=this[_0xb19248(0x131)]['getDrawingByParam'](_0x11efd7))==null?void 0x0:_0x5085ad[_0xb19248(0x289)])===_0x16107f['DRAWING_SHAPE']&&this[_0xb19248(0x2ef)](!0x0);})),this[_0x355157(0x1a6)](this[_0x355157(0x131)][_0x355157(0x2e2)][_0x355157(0x245)](_0x2fc3cf=>{const _0x2dd8f3=_0x355157;for(let _0x50082a of _0x2fc3cf)this[_0x2dd8f3(0x14e)]===_0x50082a[_0x2dd8f3(0xdb)]&&(this[_0x2dd8f3(0x14e)]=null,this[_0x2dd8f3(0x305)]=void 0x0,this[_0x2dd8f3(0x1e7)]=null,this[_0x2dd8f3(0x102)]=null,this[_0x2dd8f3(0x263)]());}));}};zi=Y([J(0x1,_0x594fd5),J(0x2,_0x419b44(_0x3fc69e)),J(0x3,_0x4d71da)],zi);let Q=class extends _0x464e07{constructor(_0x2a7ef4,_0x96bf0c){const _0x231764=_0xad1a59;super(),this[_0x231764(0x12a)]=_0x2a7ef4,this[_0x231764(0x2d5)]=_0x96bf0c,Z(this,_0x231764(0x1dd),new _0x132e71(null)),Z(this,_0x231764(0x2b5),this[_0x231764(0x1dd)]['asObservable']()),Z(this,_0x231764(0x1c3),new _0x132e71(!0x1)),Z(this,_0x231764(0xd2),this['_onSavingEditorData$']['asObservable']()),Z(this,_0x231764(0x1cc),void 0x0),this[_0x231764(0x1a6)](this[_0x231764(0x12a)][_0x231764(0x191)][_0x231764(0x245)](()=>{const _0x584237=_0x231764;let _0xa0068b=this[_0x584237(0x15c)]();_0xa0068b!=null&&_0xa0068b[_0x584237(0x260)]&&!this[_0x584237(0x198)](_0xa0068b)&&this[_0x584237(0x1d8)](null);}));}[_0xad1a59(0x1d9)](){const _0x354750=_0xad1a59;this[_0x354750(0x254)](),this[_0x354750(0x1dd)][_0x354750(0x1f9)](null),this[_0x354750(0x1dd)][_0x354750(0x133)](),this['_onSavingEditorData$'][_0x354750(0x1f9)](!0x1),this[_0x354750(0x1c3)]['complete'](),super['dispose']();}[_0xad1a59(0x1d8)](_0x5b8c1a){const _0xe266b=_0xad1a59;(_0x5b8c1a==null||!_0x5b8c1a['visible']||this[_0xe266b(0x198)](_0x5b8c1a))&&(this[_0xe266b(0x254)](),this[_0xe266b(0x1dd)][_0xe266b(0x1f9)](_0x5b8c1a),(_0x5b8c1a==null||_0x5b8c1a[_0xe266b(0x260)]&&this[_0xe266b(0x1c3)][_0xe266b(0x2fd)]())&&this['_onSavingEditorData$']['next'](!0x1));}['setOnSavingEditorData'](_0x5d1c59){const _0x4639e4=_0xad1a59;this['_onSavingEditorData$'][_0x4639e4(0x1f9)](_0x5d1c59);}[_0xad1a59(0x15c)](){const _0x2d5380=_0xad1a59;return this[_0x2d5380(0x1dd)][_0x2d5380(0x2fd)]();}['_canEdit'](_0x41634c){const _0x2f78d0=_0xad1a59;let _0x4c4d52=this[_0x2f78d0(0x2d5)][_0x2f78d0(0x201)](_0x41634c['unitId'],_0x312956['UNIVER_DOC']);if(!_0x4c4d52)return!0x0;let _0x185e65=_0x3519d2(_0x4c4d52,_0x41634c[_0x2f78d0(0x13a)]);return _0x1fab01(this['_permissionService'],_0x41634c[_0x2f78d0(0x306)],[..._0x54d8e6(_0x4c4d52,_0x185e65,_0x2f78d0(0x1ae),_0x41634c['shapeId']),_0x2c866a(_0x185e65,_0x2f78d0(0x1ae),_0x41634c[_0x2f78d0(0x13a)])]);}[_0xad1a59(0x173)](_0x11537e){const _0x491044=_0xad1a59;let _0x2b3205=this[_0x491044(0x15c)]();_0x2b3205&&this[_0x491044(0x1cc)]===void 0x0&&(this[_0x491044(0x185)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x43f6a8=_0x491044;this[_0x43f6a8(0x1cc)]=void 0x0,this[_0x43f6a8(0x15c)]()===_0x2b3205&&this[_0x43f6a8(0x1d8)](null);}));}[_0xad1a59(0x254)](){const _0x1e4b3d=_0xad1a59;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x1e4b3d(0x1cc)]),this[_0x1e4b3d(0x1cc)]=void 0x0);}[_0xad1a59(0x1b4)](){const _0x3e7f9d=_0xad1a59;this[_0x3e7f9d(0x15c)]()&&this['setEditing'](null);}};Q=Y([J(0x0,_0x9c7e02),J(0x1,_0x25edd3)],Q);function Bi(_0x151b5a){const _0x4d1c5a=_0xad1a59;return _0x151b5a[_0x4d1c5a(0x149)]===!0x0||_0x151b5a[_0x4d1c5a(0x149)]===_0x35633c[_0x4d1c5a(0x1b5)]||_0x151b5a[_0x4d1c5a(0x1df)]===_0x361e8f[_0x4d1c5a(0x23b)]&&_0x151b5a[_0x4d1c5a(0x17c)]===_0x35633c[_0x4d1c5a(0x1b5)]?_0x5f31c7-0x1:_0x906907;}let $=class extends _0x464e07{constructor(_0xde85c5,_0x14fce9,_0x1077c3,_0x285371,_0x35c2aa,_0xe6435b,_0xef416e){const _0x346fd6=_0xad1a59;super(),this[_0x346fd6(0x131)]=_0xde85c5,this['_docsShapeService']=_0x14fce9,this[_0x346fd6(0x1a4)]=_0x1077c3,this[_0x346fd6(0x248)]=_0x285371,this[_0x346fd6(0xd3)]=_0x35c2aa,this[_0x346fd6(0x167)]=_0xe6435b,this[_0x346fd6(0x25f)]=_0xef416e,Z(this,_0x346fd6(0x26e),new Map()),this['disposeWithMe'](this[_0x346fd6(0x25f)][_0x346fd6(0x15d)][_0x346fd6(0x245)](_0x3fec05=>{const _0x5768e2=_0x346fd6;var _0x16996f;(_0x16996f=this['_formulaShapes'][_0x5768e2(0x216)](this[_0x5768e2(0xec)](_0x3fec05[_0x5768e2(0x306)],_0x3fec05[_0x5768e2(0x19b)],_0x3fec05[_0x5768e2(0x13a)])))==null||_0x16996f[_0x5768e2(0x302)](_0x47744d=>_0x47744d['setFormulaPresentation'](_0x3fec05[_0x5768e2(0x231)],_0x3fec05['animationEnabled']));})),this[_0x346fd6(0x1a6)](this['_drawingManagerService'][_0x346fd6(0x2e2)][_0x346fd6(0x245)](_0x3752a8=>{_0x3752a8['forEach'](_0xcde698=>{const _0x4db971=_0x1086;this[_0x4db971(0x25f)][_0x4db971(0x14b)]({'unitId':_0xcde698[_0x4db971(0x306)],'subUnitId':_0xcde698[_0x4db971(0x19b)],'shapeId':_0xcde698['drawingId']}),this[_0x4db971(0x26e)][_0x4db971(0x273)](this[_0x4db971(0xec)](_0xcde698[_0x4db971(0x306)],_0xcde698['subUnitId'],_0xcde698['drawingId']));});}));}['renderDrawingShape'](_0x11ea87,_0x5b5f3f){const _0x59f9bc=_0xad1a59;let {transform:_0x48333e,drawingType:_0x71e254,srcRect:_0x3a6bd2,prstGeom:_0x7738b4,groupId:_0x150f5f,unitId:_0x43d778,subUnitId:_0x3f70eb,drawingId:_0x27757a,isMultiTransform:_0x13627e,transforms:_0x114fae,hidden:_0x17957f,selectable:_0x2b66dc}=_0x11ea87;if(_0x71e254!==_0x16107f[_0x59f9bc(0x284)]||!this[_0x59f9bc(0x131)][_0x59f9bc(0x1f3)]()||_0x48333e==null)return;let _0x2cc9a2=this[_0x59f9bc(0x131)][_0x59f9bc(0x1e9)](),_0x158a7e=_0x13627e&&_0x114fae?_0x114fae:[_0x48333e],_0x396070=[];for(let [_0x3eee13,_0x2a57c2]of _0x158a7e['entries']()){let {left:_0x16c857,top:_0x20a993,width:_0x346342,height:_0x4cc284,angle:_0x5e6dcd,flipX:_0x55d56b,flipY:_0x47c040,skewX:_0xdc398c,skewY:_0x2c987e}=_0x2a57c2,_0x5d9680=_0x1cc035({'unitId':_0x43d778,'subUnitId':_0x3f70eb,'drawingId':_0x27757a},_0x13627e?_0x3eee13:void 0x0),_0x3a1a55=_0x5b5f3f[_0x59f9bc(0x2c2)](_0x5d9680);if(_0x3a1a55!=null){let _0x1c914c={'unitId':_0x43d778,'subUnitId':_0x3f70eb,'shapeId':_0x27757a};_0x3a1a55 instanceof Ri&&this[_0x59f9bc(0x212)](_0x3a1a55,_0x1c914c),_0x3a1a55[_0x59f9bc(0x25a)]({'left':_0x16c857,'top':_0x20a993,'width':_0x346342,'height':_0x4cc284,'angle':_0x5e6dcd,'flipX':_0x55d56b,'flipY':_0x47c040,'skewX':_0xdc398c,'skewY':_0x2c987e});continue;}let _0x3ccae7=this['_drawingManagerService'][_0x59f9bc(0x2dc)](_0x43d778,_0x3f70eb),_0x52e02c=_0x3ccae7[_0x59f9bc(0x244)](_0x27757a);if(_0x5b5f3f[_0x59f9bc(0x2c2)](_0x5d9680)||!this[_0x59f9bc(0x131)][_0x59f9bc(0x1f3)]())continue;let _0x258573=this[_0x59f9bc(0x318)]['getShapeModel'](_0x43d778,_0x3f70eb,_0x27757a);if(!_0x258573)continue;let _0x232a0d=_0x193ed1(_0x258573[_0x59f9bc(0x159)]())?{..._0x4407f0,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x4407f0,_0x1c5b27=_0x258573['getShapeData']()['formulaBinding'],_0x539f10={'unitId':_0x43d778,'subUnitId':_0x3f70eb,'shapeId':_0x27757a};_0x1c5b27&&this[_0x59f9bc(0x25f)][_0x59f9bc(0x29c)](_0x539f10,_0x1c5b27);let _0x422a3c=new Ri(_0x5d9680,{..._0x2a57c2,'zIndex':_0x52e02c===-0x1?_0x3ccae7[_0x59f9bc(0x296)]-0x1:_0x52e02c,'shapeModel':_0x258573,'localeService':this[_0x59f9bc(0x1a4)],'shapeId':_0x27757a,'unitId':_0x43d778,'subUnitId':_0x3f70eb,'visible':_0x17957f!==!0x0,'evented':_0x2b66dc!==!0x1,'formulaPresentation':_0x1c5b27?this[_0x59f9bc(0x25f)][_0x59f9bc(0x213)](_0x539f10):void 0x0,'animateFormulaPresentation':(_0x1c5b27==null?void 0x0:_0x1c5b27[_0x59f9bc(0x22b)])!==!0x1,'transformerConfig':_0x232a0d});if(_0x1c5b27){let _0x3b9f73=this[_0x59f9bc(0xec)](_0x43d778,_0x3f70eb,_0x27757a),_0x2efab2=this[_0x59f9bc(0x26e)][_0x59f9bc(0x216)](_0x3b9f73)??new Set();_0x2efab2['add'](_0x422a3c),this[_0x59f9bc(0x26e)][_0x59f9bc(0x219)](_0x3b9f73,_0x2efab2);}this['disposeWithMe'](_0xf4ef4a(_0x422a3c[_0x59f9bc(0x1b1)][_0x59f9bc(0xcd)]((_0x10a957,_0xd19c0b)=>{const _0x298ee7=_0x59f9bc;_0x258573[_0x298ee7(0xfb)]()||_0x1c5b27||(this[_0x298ee7(0x167)][_0x298ee7(0x1d8)]({'visible':!0x0,'unitId':_0x43d778,'subUnitId':_0x3f70eb,'shapeId':_0x27757a,'shapeKey':_0x422a3c[_0x298ee7(0x2d8)]}),_0xd19c0b['stopPropagation']());}))),_0x5b5f3f['addObject'](_0x422a3c,Bi(_0x11ea87)),_0x2cc9a2&&_0x5b5f3f[_0x59f9bc(0x2cc)](_0x422a3c),_0x150f5f&&_0x55badf({'drawingId':_0x150f5f,'unitId':_0x43d778,'subUnitId':_0x3f70eb},_0x422a3c,_0x5b5f3f,this[_0x59f9bc(0x131)],_0x13627e?_0x3eee13:void 0x0),_0x7738b4!=null&&_0x422a3c[_0x59f9bc(0x1ca)](_0x7738b4),_0x3a6bd2!=null&&_0x422a3c[_0x59f9bc(0x315)](_0x3a6bd2),this['_loadShapePictureFill'](_0x422a3c,_0x258573[_0x59f9bc(0x226)]()),_0x396070[_0x59f9bc(0xb9)](_0x422a3c);}return _0x396070;}['_formulaKey'](_0x3d3ada,_0xeebdc,_0x4ba5bc){return _0x3d3ada+'\x00'+_0xeebdc+'\x00'+_0x4ba5bc;}[_0xad1a59(0x212)](_0x111c95,_0x3066d6){const _0x5b4a9c=_0xad1a59;let _0x263bdc=this['_docsShapeService']['getShapeModel'](_0x3066d6[_0x5b4a9c(0x306)],_0x3066d6[_0x5b4a9c(0x19b)],_0x3066d6[_0x5b4a9c(0x13a)]),_0x382ce4=_0x263bdc==null?void 0x0:_0x263bdc[_0x5b4a9c(0x226)]()[_0x5b4a9c(0x2df)],_0x3eca04=this['_formulaKey'](_0x3066d6[_0x5b4a9c(0x306)],_0x3066d6[_0x5b4a9c(0x19b)],_0x3066d6[_0x5b4a9c(0x13a)]);if(_0x382ce4){this[_0x5b4a9c(0x25f)][_0x5b4a9c(0x29c)](_0x3066d6,_0x382ce4);let _0x3ed5d6=this[_0x5b4a9c(0x26e)][_0x5b4a9c(0x216)](_0x3eca04)??new Set();_0x3ed5d6[_0x5b4a9c(0x199)](_0x111c95),this['_formulaShapes']['set'](_0x3eca04,_0x3ed5d6);}else{var _0x58bb07;this[_0x5b4a9c(0x25f)][_0x5b4a9c(0x14b)](_0x3066d6),(_0x58bb07=this['_formulaShapes'][_0x5b4a9c(0x216)](_0x3eca04))==null||_0x58bb07['delete'](_0x111c95);}_0x111c95[_0x5b4a9c(0x117)](_0x382ce4?this[_0x5b4a9c(0x25f)][_0x5b4a9c(0x213)](_0x3066d6):void 0x0,(_0x382ce4==null?void 0x0:_0x382ce4[_0x5b4a9c(0x22b)])!==!0x1);}[_0xad1a59(0x1cd)](_0x5c16f9){const _0x6741aa=_0xad1a59;let _0x175c0e=_0x5c16f9[_0x6741aa(0x300)]['getShapeData'](),_0x2e2ef9=_0x175c0e[_0x6741aa(0x178)];if(!_0x2e2ef9||_0x2e2ef9[_0x6741aa(0xcc)]!==_0x26338c[_0x6741aa(0x22f)]||!_0x2e2ef9[_0x6741aa(0x215)]){_0x5c16f9['setFillImage'](void 0x0);return;}this[_0x6741aa(0xd9)](_0x5c16f9,_0x175c0e);}[_0xad1a59(0xd9)](_0x300107,_0x4a1732){const _0x1dbb87=_0xad1a59;let _0x15982d=_0x4a1732[_0x1dbb87(0x178)];if(!_0x15982d||_0x15982d[_0x1dbb87(0xcc)]!==_0x26338c[_0x1dbb87(0x22f)]||!_0x15982d[_0x1dbb87(0x215)])return;let _0x212caf=_0x15982d[_0x1dbb87(0x215)],_0x76b542=_0x15982d['fillImageSourceType']??_0x2fb288[_0x1dbb87(0x285)],_0x129b37=this[_0x1dbb87(0x248)]['getImageSourceCache'](_0x212caf,_0x76b542);if(_0x129b37){_0x300107[_0x1dbb87(0x16c)](_0x129b37);return;}this[_0x1dbb87(0x313)](_0x300107,_0x212caf,_0x76b542);}async[_0xad1a59(0x313)](_0x47b843,_0x1d0f59,_0x2932fa){const _0x457d14=_0xad1a59;let _0x78d481;try{if(_0x2932fa===_0x2fb288['UUID'])_0x78d481=await this[_0x457d14(0x248)]['getImage'](_0x1d0f59);else{if(_0x2932fa===_0x2fb288[_0x457d14(0x285)])try{_0x78d481=await this[_0x457d14(0xd3)][_0x457d14(0x136)](_0x1d0f59);}catch{_0x78d481=_0x1d0f59;}else _0x78d481=_0x1d0f59;}}catch(_0x58baeb){console[_0x457d14(0x10a)](_0x457d14(0x18a),_0x58baeb);return;}let _0x332033=new window[(_0x457d14(0xfc))]();_0x332033[_0x457d14(0xef)]=()=>{const _0x47cf99=_0x457d14;this[_0x47cf99(0x248)][_0x47cf99(0x1d4)](_0x1d0f59,_0x2932fa,_0x332033),_0x47b843[_0x47cf99(0x16c)](_0x332033);},_0x332033['onerror']=()=>{const _0xc49213=_0x457d14;console[_0xc49213(0x10a)](_0xc49213(0x2b4),_0x1d0f59);},_0x332033[_0x457d14(0x1c9)]=_0x78d481;}};$=Y([J(0x0,_0x594fd5),J(0x1,_0x419b44(_0x3fc69e)),J(0x2,_0x419b44(_0x4574f5)),J(0x3,_0x1d2d8d),J(0x4,_0xf60492),J(0x5,_0x419b44(Q)),J(0x6,_0x419b44(_0xc56628))],$);let Vi=class extends _0x464e07{constructor(_0x2715e1,_0x249f6b,_0x4972b7){const _0x10eb79=_0xad1a59;super(),this['_docPrintInterceptorService']=_0x2715e1,this[_0x10eb79(0x131)]=_0x249f6b,this[_0x10eb79(0x17b)]=_0x4972b7,this[_0x10eb79(0x31a)]();}['_initPrinting'](){const _0x100a30=_0xad1a59;this[_0x100a30(0x1a6)](this[_0x100a30(0x1b2)]['interceptor'][_0x100a30(0xe9)](this[_0x100a30(0x1b2)][_0x100a30(0x2e9)][_0x100a30(0x2c0)]()[_0x100a30(0x21e)],{'handler':(_0x393e58,_0x53fc45,_0x32ba0b)=>{const _0x44a43f=_0x100a30;var _0x1d9a0e;let {unitId:_0x3f452f,scene:_0x38dcd6,skeleton:_0x2baab2}=_0x53fc45,{pageIndex:_0x41499e}=_0x53fc45,_0x10c104=(_0x1d9a0e=this['_drawingManagerService'][_0x44a43f(0xbf)](_0x3f452f))==null?void 0x0:_0x1d9a0e[_0x3f452f],_0x8912f4=Hi(this[_0x44a43f(0x1b2)],_0x2baab2,_0x41499e);return _0x10c104==null||_0x10c104[_0x44a43f(0x2e7)][_0x44a43f(0x302)](_0x4d06cf=>{const _0x3354d5=_0x44a43f;if(_0x8912f4&&!_0x8912f4[_0x3354d5(0x317)](_0x4d06cf))return;let _0x2e2dd5=_0x10c104[_0x3354d5(0x2b7)][_0x4d06cf];_0x2e2dd5['drawingType']===_0x16107f[_0x3354d5(0x284)]&&!_0x2e2dd5[_0x3354d5(0x1d7)]&&this[_0x3354d5(0x17b)][_0x3354d5(0x230)](_0x2e2dd5,_0x38dcd6);}),_0x32ba0b(_0x393e58);}}));}};Vi=Y([J(0x0,_0x419b44(_0x2a3d22)),J(0x1,_0x594fd5),J(0x2,_0x419b44($))],Vi);function Hi(_0x10f759,_0x59186a,_0x273019){const _0x313321=_0xad1a59;var _0x5b1279,_0x554aae;let _0x3dc3f3=_0x10f759;if(_0x3dc3f3[_0x313321(0x1e0)])return _0x3dc3f3[_0x313321(0x1e0)](_0x59186a,_0x273019);let _0xac98ad=_0x59186a[_0x313321(0x12b)]();if(!_0xac98ad||_0xac98ad[_0x313321(0x145)][_0x313321(0x296)]<=0x1||_0x273019==null)return null;let _0xb5b96d=new Set(),_0x53998a=_0xac98ad['pages'][_0x273019];if(!_0x53998a)return _0xb5b96d;Ui(_0x53998a,_0xb5b96d);let _0x1f60b4=(_0x5b1279=_0xac98ad['skeHeaders'][_0x313321(0x216)](_0x53998a['headerId']))==null?void 0x0:_0x5b1279[_0x313321(0x216)](_0x53998a[_0x313321(0x282)]),_0x1c2411=(_0x554aae=_0xac98ad['skeFooters'][_0x313321(0x216)](_0x53998a[_0x313321(0xf7)]))==null?void 0x0:_0x554aae[_0x313321(0x216)](_0x53998a['pageWidth']);return _0x1f60b4&&Ui(_0x1f60b4,_0xb5b96d),_0x1c2411&&Ui(_0x1c2411,_0xb5b96d),_0xb5b96d;}function Ui(_0x375336,_0x36ca06){const _0x2bc18a=_0xad1a59;for(let _0x5ac97f of _0x375336[_0x2bc18a(0x2c5)][_0x2bc18a(0x107)]())_0x36ca06['add'](_0x5ac97f);for(let _0x1f2b64 of _0x375336['skeTables'][_0x2bc18a(0x2d3)]())for(let _0x3124c7 of _0x1f2b64['rows'])for(let _0x46b91e of _0x3124c7[_0x2bc18a(0xe1)])Ui(_0x46b91e,_0x36ca06);}function Wi(_0xbd4394){return _0x36fdcc(Nr,{..._0xbd4394,'PickerComponent':_0x34cf0e});}function Gi(){const _0x57ad32=_0xad1a59;let _0x122013=_0x51204a(_0x4574f5),_0x440239=Ar(),[_0x110b8b,_0x3648e4]=_0x1a5239(!0x1);return _0x3cbb28(_0x57ad32(0x229),{'className':'univer-grid\x20univer-gap-3','children':[_0x36fdcc(_0x38babc,{'title':_0x122013['t'](_0x57ad32(0x1dc)),'aria-expanded':_0x110b8b,'variant':_0x57ad32(0x25d),'trailing':_0x36fdcc(_0x110b8b?_0x299809:_0xbff2c,{}),'onClick':()=>_0x3648e4(_0xa664a8=>!_0xa664a8)}),_0x110b8b&&_0x36fdcc(_0x34cf0e,{'excludeGroups':[_0x425d50[_0x57ad32(0xd8)]],'onShapeClick':_0x56cb16=>{_0x440239(_0x56cb16),_0x3648e4(!0x1);}})]});}function Ki(_0x301d2a){const _0x29eba2=_0xad1a59;return _0x301d2a[_0x29eba2(0x1c2)]()||void 0x0;}function qi(_0x21ae1e,_0x11e282,_0x2dab4b){const _0x144a0c=_0xad1a59;var _0x481fa5,_0xb6ca87;return((_0x481fa5=_0x21ae1e['name'])==null?void 0x0:_0x481fa5[_0x144a0c(0x1c2)]())||((_0xb6ca87=_0x21ae1e['title'])==null?void 0x0:_0xb6ca87[_0x144a0c(0x1c2)]())||_0x2dab4b['t']('drawing-ui.objectListPanel.typeNames.'+_0x38b9d3(_0x21ae1e[_0x144a0c(0x289)]))+'\x20'+(_0x11e282+0x1);}function Ji({PanelComponent:_0xa53c59=_0x57708c}){const _0x36b661=_0xad1a59;let _0x3967f5=_0x51204a(_0x4574f5),_0x38dc1e={'title':_0x3967f5['t']('drawing-ui.objectListPanel.title'),'empty':_0x3967f5['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x3967f5['t'](_0x36b661(0x274)),'hideAll':_0x3967f5['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x3967f5['t'](_0x36b661(0xee)),'unlockAll':_0x3967f5['t'](_0x36b661(0x1c5)),'moveForward':_0x3967f5['t'](_0x36b661(0x2e1)),'moveBackward':_0x3967f5['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x3967f5['t']('drawing-ui.objectListPanel.close'),'show':_0x3967f5['t'](_0x36b661(0xe0)),'hide':_0x3967f5['t']('drawing-ui.objectListPanel.hide'),'lock':_0x3967f5['t'](_0x36b661(0x1ff)),'unlock':_0x3967f5['t'](_0x36b661(0x252)),'lockHint':_0x3967f5['t'](_0x36b661(0x290)),'unlockHint':_0x3967f5['t'](_0x36b661(0x207)),'name':_0x3967f5['t'](_0x36b661(0x2f1)),'nameInput':_0x3967f5['t'](_0x36b661(0x153)),'description':_0x3967f5['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x3967f5['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x3967f5['t'](_0x36b661(0x146)),'noSelection':_0x3967f5['t'](_0x36b661(0x1ea)),'locate':_0x3967f5['t']('drawing-ui.objectListPanel.locate'),'expand':_0x3967f5['t'](_0x36b661(0x28d)),'collapse':_0x3967f5['t'](_0x36b661(0x1e1)),'dragToReorder':_0x3967f5['t'](_0x36b661(0x165)),'search':_0x3967f5['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x3967f5['t'](_0x36b661(0x2fe)),'filterHidden':_0x3967f5['t'](_0x36b661(0x2c6)),'filterLocked':_0x3967f5['t'](_0x36b661(0x1ee)),'sectionCanvas':_0x3967f5['t'](_0x36b661(0x19d)),'sectionFloating':_0x3967f5['t'](_0x36b661(0x200))},_0x4a6b91=_0x51204a(_0x4d71da),_0x4d3573=_0x51204a(_0x25edd3),_0x2fc368=_0x51204a(_0x562e38),_0x4762a8=_0x51204a(_0x594fd5),_0xf2fe0f=_0x51204a(_0x368952),[,_0x2f9bf7]=_0x2da66f(_0x5527b6=>_0x5527b6+0x1,0x0),_0x57c092=_0x4d3573[_0x36b661(0x150)](_0x312956[_0x36b661(0xde)]),_0x221866=(_0x57c092==null?void 0x0:_0x57c092[_0x36b661(0xc4)]())??'',_0x2ac0a6=_0x221866,_0x27980b=_0x509339(()=>_0x4762a8[_0x36b661(0x307)],_0x4762a8[_0x36b661(0x2ff)](),!0x1,[_0x4762a8]);_0x5a37f4(()=>{let _0xc15263=_0x4a6b91['onCommandExecuted'](()=>_0x2f9bf7());return()=>_0xc15263['dispose']();},[_0x4a6b91]);let _0x2f115e=_0x221866?_0x2fc368[_0x36b661(0x1bb)](_0x221866,_0x2ac0a6):{},_0x5ce52f=(_0x221866?_0x2fc368[_0x36b661(0x2dc)](_0x221866,_0x2ac0a6):[])[_0x36b661(0x21c)](_0x56f630=>_0x2f115e[_0x56f630])[_0x36b661(0x1ec)](_0x201437=>!!_0x201437)[_0x36b661(0x29e)](),_0x445d94=_0x5ce52f[_0x36b661(0x1f8)]((_0x2ff291,_0x1dba8d)=>(_0x2ff291[_0x2d21df(_0x1dba8d['drawingType'])]+=0x1,_0x2ff291),{'canvas':0x0,'floating':0x0}),_0x23f22d={'canvas':0x0,'floating':0x0},_0x19a787=_0x5ce52f[_0x36b661(0x21c)]((_0x287c26,_0xf0f833)=>{const _0x1a175d=_0x36b661;let _0x2796b3=_0x2d21df(_0x287c26['drawingType']),_0x428f6d=_0x2796b3===_0x54c1f7,_0x9dae2d=_0x23f22d[_0x2796b3]++;return{'id':_0x287c26['drawingId'],'name':qi(_0x287c26,_0xf0f833,_0x3967f5),'description':_0x287c26[_0x1a175d(0x2be)],'visible':_0x287c26[_0x1a175d(0x1d7)]!==!0x0,'selectable':_0x287c26['selectable']!==!0x1,'sectionId':_0x2796b3,'sectionTitle':_0x428f6d?_0x38dc1e[_0x1a175d(0xc5)]:_0x38dc1e[_0x1a175d(0x299)],'capabilities':_0x428f6d?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x428f6d&&_0x9dae2d>0x0,'canMoveBackward':!_0x428f6d&&_0x9dae2d<_0x445d94[_0x1a175d(0x1c7)]-0x1,'canReorder':!_0x428f6d};}),_0x3e6eaf=_0x16edd4(()=>(_0x27980b??[])[_0x36b661(0x1ec)](_0x2d3836=>_0x2d3836[_0x36b661(0x306)]===_0x221866&&_0x2d3836[_0x36b661(0x19b)]===_0x2ac0a6)['map'](_0x3d3ebb=>_0x3d3ebb['drawingId']),[_0x27980b,_0x2ac0a6,_0x221866]),_0x1c2480=_0x3e6eaf[_0x3e6eaf[_0x36b661(0x296)]-0x1]??null,_0x33d220=_0x203c86=>_0x2fc368[_0x36b661(0x164)]({'unitId':_0x221866,'subUnitId':_0x2ac0a6,'drawingId':_0x203c86})??null,_0x13172e=async _0x54948c=>{const _0x562bfb=_0x36b661;_0x221866&&_0x54948c[_0x562bfb(0x296)]&&await _0x4a6b91[_0x562bfb(0x182)](_0x58da55['id'],{'unitId':_0x221866,'patches':_0x54948c});},_0x75acc0=(_0x5ccc7a,_0x2ebac6)=>{const _0x3d0617=_0x36b661;if(!_0x221866)return;let _0x36c193=_0x2ebac6?_0x3e6eaf['includes'](_0x5ccc7a)?_0x3e6eaf[_0x3d0617(0x1ec)](_0x40e12c=>_0x40e12c!==_0x5ccc7a):[..._0x3e6eaf,_0x5ccc7a]:[_0x5ccc7a];_0x4a6b91[_0x3d0617(0x16e)](_0x2d4210['id'],_0x36c193[_0x3d0617(0x21c)](_0x3dd610=>({'unitId':_0x221866,'subUnitId':_0x2ac0a6,'drawingId':_0x3dd610})));let _0x1659e6=_0x36c193[_0x36c193[_0x3d0617(0x296)]-0x1];_0x1659e6?_0x296763(_0xf2fe0f,{'unitId':_0x221866,'subUnitId':_0x2ac0a6,'drawingId':_0x1659e6}):_0x1d6d84(_0xf2fe0f,_0x221866);},_0x3fd7af=async(_0x5be83b,_0x5cc834)=>{const _0x3a1467=_0x36b661;await _0x13172e(_0x5be83b['map'](_0x3002ae=>_0x33d220(_0x3002ae))[_0x3a1467(0x1ec)](_0x18bdd5=>!!_0x18bdd5)[_0x3a1467(0x1ec)](_0x3f262b=>_0x3f262b[_0x3a1467(0x1d7)]!==!0x0!==_0x5cc834)[_0x3a1467(0x21c)](_0x1fc5fb=>({'drawingId':_0x1fc5fb[_0x3a1467(0xdb)],'hidden':!_0x5cc834})));},_0x3416b3=async(_0x13c93c,_0x577d16)=>{const _0x4a7a4b=_0x36b661;await _0x13172e(_0x13c93c['map'](_0x3a16b5=>_0x33d220(_0x3a16b5))[_0x4a7a4b(0x1ec)](_0x39474f=>!!_0x39474f)['filter'](_0x134283=>_0x134283[_0x4a7a4b(0x135)]!==!0x1!==_0x577d16)[_0x4a7a4b(0x21c)](_0x5272c5=>({'drawingId':_0x5272c5[_0x4a7a4b(0xdb)],'selectable':_0x577d16})));},_0x2a4bc4=_0x425307=>{const _0x2e2271=_0x36b661;let _0x5f25c8=_0x33d220(_0x425307);if(_0x5f25c8)return _0x3416b3([_0x425307],_0x5f25c8[_0x2e2271(0x135)]===!0x1);},_0x52d98e=async(_0x4409ec,_0x5927ac)=>{const _0x5782e4=_0x36b661;let _0x5b7164=_0x33d220(_0x4409ec),_0x17bf14=Ki(_0x5927ac);!_0x5b7164||(_0x5b7164[_0x5782e4(0x134)]??void 0x0)===_0x17bf14&&(_0x5b7164[_0x5782e4(0x2f0)]||void 0x0)===_0x17bf14||await _0x13172e([{'drawingId':_0x4409ec,'name':_0x17bf14,'title':_0x17bf14}]);},_0x4d7d76=async(_0x204867,_0x304dbf)=>{const _0x3ffc54=_0x36b661;let _0x1f98a7=_0x33d220(_0x204867),_0xb44bdc=Ki(_0x304dbf);_0x1f98a7&&(_0x1f98a7[_0x3ffc54(0x2be)]??void 0x0)!==_0xb44bdc&&await _0x13172e([{'drawingId':_0x204867,'description':_0xb44bdc}]);},_0x472267=async(_0x4751e3,_0x3d6272)=>{const _0x1a5ab6=_0x36b661;_0x221866&&await _0x4a6b91[_0x1a5ab6(0x182)](_0x45f9b7['id'],{'unitId':_0x221866,'subUnitId':_0x2ac0a6,'drawingIds':[_0x4751e3],'arrangeType':_0x3d6272});};return _0x221866?_0x36fdcc(_0xa53c59,{'labels':_0x38dc1e,'renderPermissionAction':_0x260455=>_0x57c092?_0x36fdcc(_0x1fc584,{'target':{'unitId':_0x221866,'objectId':_0x2c866a(_0x3519d2(_0x57c092,_0x260455['id']),_0x36b661(0x1ae),_0x260455['id']),'objectType':_0x43bd2c[_0x36b661(0xbb)]},'name':_0x260455[_0x36b661(0x134)],'commandId':_0x4f4dfc['id'],'exists':()=>!!_0x33d220(_0x260455['id'])},_0x221866+'/'+_0x260455['id']):null,'items':_0x19a787,'selectedIds':_0x3e6eaf,'focusedId':_0x1c2480,'showHeader':!0x1,'onSelect':_0x75acc0,'onSetVisible':_0x3fd7af,'onSetSelectable':_0x3416b3,'onCommitName':_0x52d98e,'onCommitDescription':_0x4d7d76,'onMoveForward':async _0x3aa551=>_0x472267(_0x3aa551,_0x9688d3[_0x36b661(0x294)]),'onMoveBackward':async _0x49827d=>_0x472267(_0x49827d,_0x9688d3['backward']),'onToggleSelectable':_0x2a4bc4}):_0x36fdcc(_0x36b661(0x229),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x38dc1e['title']});}function Yi(){return _0x36fdcc(Ji,{'PanelComponent':_0x28726a});}let Xi=class{constructor(_0x262308){const _0x34e5e3=_0xad1a59;this[_0x34e5e3(0xda)]=_0x262308;}[_0xad1a59(0x266)](_0x439bf3,_0x443ece){const _0x2e4703=_0xad1a59;let _0x32b917=this[_0x2e4703(0xda)][_0x2e4703(0x264)](_0x439bf3['unitId']),_0x541e83=_0x32b917==null?void 0x0:_0x32b917[_0x2e4703(0x111)];if(!_0x541e83)return;let _0x5833de=_0x1cc035(_0x439bf3),_0x27cdb4=_0x541e83[_0x2e4703(0x2c2)](_0x5833de);_0x27cdb4==null||_0x27cdb4[_0x2e4703(0x16c)](_0x443ece);}};Xi=Y([J(0x0,_0x368952)],Xi);function _0x20da(){const _0x5efbbc=['setCollapsedIds','function','currentAdjustValues','translateWithPrecision','completeEditing','docs-shape-ui.ribbon.shape-format.arrange-front','true','docs-shape-ui.deleteShape','label','fill','clipTop','isDrawingObject','_shapeRenderController','behindDoc','_docDrawingShapeRenderController','enableObjectsEvent','CROSSHAIR','_registerIcons','offsetY','executeCommand','classType','defineProperty','setOnSavingEditorData','formulaPresentation','MoveUpIcon','create','getState','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_getSceneByUnitId','currentColor','clip','_registerImageShapeClipDelegate','1em','docs-shape-ui.openPanel','permissionPointUpdate$','changing$','contentHeight','DRAWING_IMAGE','behind','7085550CbHVKg','_layoutInteraction','_canEdit','add','type','subUnitId','transformForAngle','drawing-ui.objectListPanel.sectionCanvas','docs-shape-ui.hidePanel','_getRenderModules','Large','warn','doc.image-clip.shape-picker.component','setPresentation','_localeService','find','disposeWithMe','pluginName','doc.shape.edit.panel','0\x200\x2020\x2020','_iconManager','string','open','fontSize','drawing','DOCS_SHAPE_UI_PLUGIN','docs-shape-ui.mobile.style','onDblclick$','_docPrintInterceptorService','ShapeFormatSettingIcon','cancelEditing','TRUE','toPrimitive','SolidFill','setContextValue','autoFitType','_menuManagerService','getDrawingData','RIBBON','setAdjustValueByName','getAdjustValueByName','getAutoFitPresentations','_isStartAdjusting','_registerObjectListPanel','trim','_onSavingEditorData$','PaintIcon','drawing-ui.objectListPanel.unlockAll','onPointerDown$','canvas','top','src','setPrstGeom','_adjHandlerPointerMove','_completionFrame','refreshShapeFillImage','_init','buildClipPath','splice','prototype','endOffset','OPERATION','addImageSourceCache','version','front','hidden','setEditing','dispose','COMMAND','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','docs-shape-ui.crop.shape','_editingParams$','paragraphId','layoutType','getPageDrawingIds','drawing-ui.objectListPanel.collapse','getCurrentTypeOfUnit$','_drawShapeText','_activeShapeModel','_insertShapes','isMainScene','_unitId','invert','getDrawingEditable','drawing-ui.objectListPanel.noSelection','DRAWING_DOM','filter','DocsShapeWrapInlineIcon','drawing-ui.objectListPanel.filterLocked','decorate','BUTTON','docs-shape-ui.objectListPanel.open','unsubscribe','getDrawingVisible','mergeMenu','IN_FRONT_OF_TEXT','update$','_canEditShape','reduce','next','getUnitType','Medium','@univerjs-pro/docs-shape-ui','_configService','doc-shape-adjust-point-','drawing-ui.objectListPanel.lock','drawing-ui.objectListPanel.sectionFloating','getUnit','_props','_getShapeInfo','Arrow','composeMatrix','_drawSimpleText','drawing-ui.objectListPanel.unlockHint','docs-shape-ui.shape-format.wrapping-style-label','getSelectedObjectMap','localeService','_sidebarService','scale','_draw','onCommandExecuted','_popupTargetKeys','_baseShapeHeight','904212LHeLWo','refreshFormulaPresentation','getPresentation','clone','fillImageSource','get','getActualSize','beginPath','set','doc','default','map','canvasElement','PRINTING_COMPONENT_COLLECT','docs-shape-ui.formatShape','_renderWithCache','_injector','restore','with','_toScenePoint','offsetX','getShapeData','angle','canDispose','div','getMatrix','animationEnabled','doc.operation.open-shape-object-list-panel','_initEvents','docs-shape-ui.ribbon.shape-format.arrange-back','PictureFill','renderDrawingShape','presentation','docs-shape-ui.insertShape','_toVisualAdjustPoint','CONTENT','dataModel','_componentManager','docs-shape-ui.ribbon.shape-format.arrange-backward','_addShapeAdjustControl','adjName','_updateSrcRectByTransform','WRAP_NONE','_isOpenedShapeEditPanel','INLINE','shapeType','cos','backward','multiply','_docCanvasPopManagerService','doc.shape.text.float-menu','indexOf','subscribe','makeDirty','None','_imageIoService','docs-shape-ui.ribbon.shape-format.text-control','_updateShape','adjHandleFill','getDrawingSearch','vertical','docs-shape-ui.ribbon.shape-format.wrapping-style','doc.shape.floating-toolbar','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','clipByShape','drawing-ui.objectListPanel.unlock','presetId','_clearCompletionFrame','call','docs-shape-ui.shape-format.style-ribbon-control','top-bottom','_initialize','inline','transformByState','_formulaAnimation','applyPoint','subtle','draw','_shapeFormulaService','visible','sin','GROUP','_clearShapeAdjustControls','getRenderUnitById','popup','updateShapeFillImage','VIEW_MAIN','shapeData','changeEnd$','_getShapePopup','_getFocusedShapeAtPoint','getSnapshot','entries','_formulaShapes','_adjustPointObjects','getFocusedUnit','showContextualTab','30656bdUPWZ','delete','drawing-ui.objectListPanel.showAll','docs-shape-ui.objectListPanel.title','getInverseCoord','clip-','_getShapeAdjustInfosById','constructor','OTHERS','docs-shape-ui.textWrap.behindText','DocsShapeWrapSquareIcon','MEDIA','onStarting','4736232fEhBsj','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3022944QUiobU','pageWidth','render','DRAWING_SHAPE','URL','BottomIcon','packageName','wrapStrategy','drawingType','_setTransForm','engine','_hide','drawing-ui.objectListPanel.expand','isHitLine','objects','drawing-ui.objectListPanel.lockHint','getShapePopupMenus','contentVerticalOffset','_clearPopups','forward','_attachAdjustEvent','length','_handleCreateControl','refreshAdjustControls','sectionCanvas','startArrow','updateContext','register','iterator','reverse','preValue','_transformCalculateSrcRect','resetCursor','univer-box-border\x20univer-px-4\x20univer-text-sm','5.5','value','_initUIPart','BEHIND_TEXT','shape-editor-ui.arrange.front','resize','addObject','docs-shape-ui.shape-format.formula-ribbon-control','marginTop','_transform','save','_getActiveDrawingShape','adjHandleSize','isEditing','_disposePopupsByUnit','LEFT','calculate','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','editingParams$','symbol','data','flipX','getShapeModel','_getDependencies','setCanUseShapeClip','sheet.image-clip.shape-picker.component','createControl$','description','fallbackHeight','getInterceptPoints','_endLayoutInteraction','getObjectIncludeInGroup','_registerOperations','docs-shape-ui.mobile.text','skeDrawings','drawing-ui.objectListPanel.filterHidden','SolidLine','shape-editor-ui.arrange.forward','color','getRealBound','_shapeId','attachTransformerTo','enhanceParams','DocsShapeWrapTopBottomIcon','registerCommand','clearControl$','docs-shape-ui.ribbon.shape-format.style-control','MoveDownIcon','values','_registerFloatingToolbar','_instanceService','_registerDrawingTransformHandler','round','oKey','isHorizontal','isRender','isFinite','getDrawingOrder','endArrow','_drawRichText','formulaBinding','registerRenderModule','drawing-ui.objectListPanel.moveForward','remove$','focusDrawing','horizontal','some','_initSelection','order','docs-shape-ui.textWrap.inFrontText','interceptor','Rect','_createShapeAdjustControls','_ribbonService','getAllRenderersOfType','_baseShapeLeft','_updateShapeAdjustControls','title','drawing-ui.objectListPanel.name','_initMenu','_shapeEditPanelVersion','PARAGRAPH','style','_univerInstanceService','docs-shape-ui.mobile.delete','getTransformer','setShapeProps','_getShapeAdjustPointListById','transform','moveRange','getValue','drawing-ui.objectListPanel.filterAll','getFocusDrawings','shapeModel','_clipService','forEach','docs-shape-ui.quickStyles','pipe','_activeShapeAdjustPointList','unitId','focus$','_baseShapeWidth','_applyFormulaAutoFitSize','doc.command.menu-insert-shape','context-bar','docs-shape-ui.shape-format.quick-style-gallery','isRichText','_drawRichTextLayer','translate','updateDocumentDataMargin','getSelfOrHeaderFooterModel','span','_loadAndSetImage','TopmostIcon','setSrcRect','actions','has','_docsShapeService','isHit','_initPrinting','WRAP_SQUARE','getShapeTextData','left','_refreshShapeData','_openShapeEditPanel','getAdjustInfoByName','#2563EB','setFallbackVisible','max','shape-editor-ui.toolbar.changeShape','push','none','DocumentEntity','ShapeIcon','isInGroup','shapeKey','getDrawingDataForUnit','WRAP_TOP_AND_BOTTOM','path','SpAutoFit','activeTarget','getUnitId','sectionFloating','text','_context','strokeWidth','0.8','docs-shape-ui.config','attachPopupToObject','fillType','subscribeEvent','icon','0.14','disableShapeOption','docs-shape-contextual-ribbon','onSavingEditorData$','_urlImageService','drawings','isolated','_activeShapeInfo','1.0.0','Line','_loadShapePictureFill','_renderManagerService','drawingId','getShapeDataById','docs-shape-ui.ribbon.shape-format.formula-control','UNIVER_DOC','spaceBelowApply','drawing-ui.objectListPanel.show','cells','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','menuRange','_shapeFloatingToolbarService','_isShouldShowDrawingShapeAdjust','rect','getBody','getActiveTextRange','intercept','getTransformerByCreate','image','_formulaKey','square','drawing-ui.objectListPanel.lockAll','onload','debounceRefreshControls','width','ObjectLayersIcon','custom','clearAdjustControls','shape-editor-ui.arrange.backward','transformVector2SceneCoord','footerId','_registerComponents','close','menu','isLineShape','Image','_activeAdjustInfo','DocsShapeTextEditorContainer','below','_commandService','shapeText','_subUnitId','Path','doc.operation.close-doc-shape-format-panel','startOffset','segmentId','keys','doc.shape.object-list.panel','getOwnPropertyDescriptor','error','updateDocumentStyle','getShapeTypeById','_baseShapeTop','onRendered','getDrawingOKey','9219021nMIvkS','scene','params','_sidebarDisposable','_docLayoutInteractionService','size','SELECTOR','setFormulaPresentation','drawWith','clipHeight','srcRect','docs-shape-text-','isRenderLinePointsMode','top-center','getCanvasElement','_update','docs-shape-ui.textWrap.square','fontFamily','1.2','.below','height','_closeShapeEditPanel','onPointerMove$','_config','-layout','_adjHandlerPointerUp','_permissionService','getSkeletonData','_drawingType','getParent','object','getShapeTextRect','_popupMenuListener','_drawingManagerService','_updateAdjustControlPositions','complete','name','selectable','getImage','TOP','calcAdjValues','_getActiveDrawingParam','shapeId','adjHandleStroke','extensionGroups','disableObjectsEvent','pick','3454662BNJBmd','refreshTransform$','OFFSET','onTransformChange$','onPointerUp$','_releaseRenderCache','pages','drawing-ui.objectListPanel.details','_registerPickers','31UQPGAZ','behindText','shape-text-','unregister','fallbackWidth','_getDisposePopups','_activeShapeId','registerComponent','getCurrentUnitOfType','_mobileEditorService','doc.operation.open-doc-shape-format-panel','drawing-ui.objectListPanel.nameInput','docs-shape-ui.shape-format.text-ribbon-control','_lastEditingShapeKey','animateFormulaPresentation','_measure','_initEditingParams','getShapeType','shape-editor-ui.arrange.back','UNIVER_SHEET','getEditing','presentationChanged$','stopPropagation','setConfig','docs-shape-format-font-family-menu','LAYOUT','_adjName','DocsShapeWrapBehindTextIcon','getDrawingByParam','drawing-ui.objectListPanel.dragToReorder','_contextService','_shapeTextEditingService','actualHeight','getDrawingPoints','_visible','viewBound','setFillImage','_registerDrawingFocusChangeHandler','syncExecuteCommand'];_0x20da=function(){return _0x5efbbc;};return _0x20da();}function Zi(){const _0x4d716f=_0xad1a59;let _0x13c65a=_0x51204a(_0x594fd5),_0x341c68=_0x509339(()=>_0x13c65a['focus$'],_0x13c65a[_0x4d716f(0x2ff)](),!0x1,[_0x13c65a]);return _0x341c68[_0x4d716f(0x296)]===0x0?null:_0x36fdcc(_0x4d716f(0x229),{'children':_0x3cbb28(_0x4d716f(0x229),{'className':_0x4d716f(0x2a2),'children':[_0x36fdcc(_0x330e5f,{'drawings':_0x341c68,'hasCropper':!0x1}),_0x36fdcc(_0x5c1883,{'drawings':_0x341c68}),_0x36fdcc(_0x4e39ea,{'drawings':_0x341c68})]})});}function Qi(_0x665ac4){let {unitId:_0x1c994c,subUnitId:_0x40907,shapeId:_0x1cdff4,PositionComponent:_0x38ddb7=Zi}=_0x665ac4,_0x36afe8=_0x51204a(_0x4d71da),_0x386444=_0x51204a(Xi);return _0x36fdcc(_0x552dde,{..._0x665ac4,'positionEditor':_0x36fdcc(_0x38ddb7,{}),'onUpdateShapeData':(_0x2ff419,_0x4e4e73)=>{zr(_0x36afe8,_0x1c994c,_0x40907,_0x1cdff4,_0x2ff419,_0x4e4e73);},'onUpdateLineShapeData':(_0x3d1fe7,_0x20b37e)=>{Br(_0x36afe8,_0x1c994c,_0x40907,_0x1cdff4,_0x3d1fe7,_0x20b37e);},'onUpdateShapeFillImage':_0x3562eb=>{_0x386444['updateShapeFillImage']({'unitId':_0x1c994c,'subUnitId':_0x40907,'drawingId':_0x1cdff4},_0x3562eb);}});}function $i(){const _0x2ce8af=_0xad1a59;let _0x5baf57=_0x51204a(_0x594fd5),_0x29ea1d=_0x509339(_0x5baf57[_0x2ce8af(0x307)],_0x5baf57[_0x2ce8af(0x2ff)]());return _0x29ea1d[_0x2ce8af(0x296)]===0x0?null:_0x3cbb28(_0x2ce8af(0x229),{'className':'univer-grid\x20univer-gap-5\x20univer-p-3','children':[_0x36fdcc(_0x330e5f,{'drawings':_0x29ea1d,'hasCropper':!0x1}),_0x36fdcc(_0x115fd7,{'drawings':_0x29ea1d}),_0x36fdcc(_0x10c78b,{'drawings':_0x29ea1d})]});}function ea(_0x2b99f8){return _0x36fdcc(_0x1dd6b8,{'children':_0x36fdcc(Qi,{..._0x2b99f8,'PositionComponent':$i})});}function ta({popup:_0x509f01}){const _0x1f3dcb=_0xad1a59;let _0x3c969e=_0x51204a(_0x4574f5),{shapeType:_0x33c0bd,onText:_0x388a07,onStyle:_0x59c356,onDelete:_0x43cfc7}=_0x509f01['extraProps'],_0x43f646=[{'key':_0x1f3dcb(0xc6),'order':0x0,'item':{'id':_0x1f3dcb(0xc6),'type':_0x3e7c2a[_0x1f3dcb(0x1f0)],'title':_0x3c969e['t'](_0x1f3dcb(0x2c4)),'disabled$':_0xc7373c(_0x193ed1(_0x33c0bd))}},{'key':_0x1f3dcb(0x2f5),'order':0x1,'item':{'id':'style','type':_0x3e7c2a['BUTTON'],'title':_0x3c969e['t'](_0x1f3dcb(0x1b0))}},{'key':_0x1f3dcb(0x273),'order':0x2,'item':{'id':_0x1f3dcb(0x273),'type':_0x3e7c2a[_0x1f3dcb(0x1f0)],'title':_0x3c969e['t'](_0x1f3dcb(0x2f7))}}];return _0x36fdcc(_0x257a21,{'schemas':_0x43f646,'presentation':_0x1f3dcb(0x30b),'onOptionSelect':async({id:_0x21fc18})=>{const _0x215836=_0x1f3dcb;_0x21fc18===_0x215836(0xc6)?await _0x388a07():_0x21fc18===_0x215836(0x2f5)?await _0x59c356():_0x21fc18===_0x215836(0x273)&&await _0x43cfc7();}});}const na=_0xad1a59(0x24f);function ra(_0x7f4ecd,_0x5b11b0){const _0x1acb1e=_0xad1a59;var _0xeeb506;let _0x1fe661=_0x7f4ecd==null||(_0xeeb506=_0x7f4ecd[_0x1acb1e(0x26c)]()['drawings'])==null?void 0x0:_0xeeb506[_0x5b11b0];return _0x1fe661?_0x1fe661['layoutType']===_0x361e8f[_0x1acb1e(0x23b)]?_0x1fe661['behindDoc']===_0x35633c['TRUE']?_0x2ba9f5[_0x1acb1e(0x2a6)]:_0x2ba9f5['IN_FRONT_OF_TEXT']:_0x1fe661[_0x1acb1e(0x1df)]===_0x361e8f['WRAP_SQUARE']?_0x2ba9f5[_0x1acb1e(0x31b)]:_0x1fe661['layoutType']===_0x361e8f[_0x1acb1e(0xc0)]?_0x2ba9f5[_0x1acb1e(0xc0)]:_0x2ba9f5[_0x1acb1e(0x23d)]:_0x2ba9f5[_0x1acb1e(0x23d)];}function ia(_0x1c4eb3){const _0x4869d7=_0xad1a59;let _0x3a6f75=_0x51204a(_0x4cb24e),_0x881501=_0x509339(()=>_0x3a6f75['visible$'],_0x3a6f75['getVisible'](),!0x1,[_0x3a6f75]),_0x5a50f7=_0x1c4eb3[_0x4869d7(0x265)]['extraProps'];return _0x881501?_0x36fdcc(aa,{..._0x5a50f7,'canvasElement':_0x1c4eb3[_0x4869d7(0x265)][_0x4869d7(0x21d)]}):null;}function aa(_0xde3fd1){const _0x2915c7=_0xad1a59;let _0x27ce5d=_0x51204a(_0x4d71da),_0xab6f30=_0x51204a(_0x4574f5),_0x4444a2=_0x51204a(_0x3fc69e),_0x344153=_0x51204a(_0x25edd3),{unitId:_0x2d5713,subUnitId:_0x1dcdee,drawingId:_0x2bde49,shapeType:_0x218bd3}=_0xde3fd1,[_0x7314c8,_0x49e854]=_0x1a5239(_0xde3fd1[_0x2915c7(0x268)]),_0x298800=_0x344153['getUnit'](_0x2d5713,_0x312956[_0x2915c7(0xde)])??void 0x0,[_0x37e629,_0x3708b0]=_0x1a5239(()=>ra(_0x298800,_0x2bde49)),_0x2a6a20=_0x16edd4(()=>_0x4ad9c7(_0x7314c8),[_0x7314c8]),_0x24a8c3=_0x16edd4(()=>_0x265967(_0x7314c8),[_0x7314c8]);_0x5a37f4(()=>{const _0x50b88e=_0x2915c7;let _0x11f2dd=_0x27ce5d[_0x50b88e(0x20e)](_0x4d1766=>{const _0x5c5b34=_0x50b88e;if(_0x4d1766['id']!==_0x18e8b3['id'])return;let _0x5be900=_0x4444a2[_0x5c5b34(0xdc)](_0x2d5713,_0x1dcdee,_0x2bde49);_0x5be900&&_0x49e854(_0x5be900);});return()=>_0x11f2dd[_0x50b88e(0x1d9)]();},[_0x27ce5d,_0x4444a2,_0x2bde49,_0x1dcdee,_0x2d5713]);let _0x4b88aa=_0x14767f=>{_0x49e854(_0x1328f6=>({..._0x1328f6,..._0x14767f}));},_0x1942d5=_0x5105a7=>{const _0x2f106a=_0x2915c7;let _0x114459=_0x408216(_0x7314c8,_0x5105a7);zr(_0x27ce5d,_0x2d5713,_0x1dcdee,_0x2bde49,{'oldShapeData':{'shapeText':_0x7314c8[_0x2f106a(0x101)]}},_0x114459),_0x4b88aa(_0x114459);},_0x4224d4=_0x2d4595=>{const _0x131ee2=_0x2915c7;_0x3708b0(_0x2d4595),_0x27ce5d[_0x131ee2(0x182)](_0x57a171['id'],{'unitId':_0x2d5713,'subUnitId':_0x1dcdee,'drawings':[{'unitId':_0x2d5713,'subUnitId':_0x1dcdee,'drawingId':_0x2bde49}],'wrappingStyle':_0x2d4595});},_0x1a946f=_0x10817c({'hostType':_0x312956['UNIVER_DOC'],'unitId':_0x2d5713,'subUnitId':_0x1dcdee,'shapeId':_0x2bde49,'shapeData':_0x7314c8,'onUpdateBinding':_0x1b2491=>{let _0x3c2151={'formulaBinding':_0x1b2491};zr(_0x27ce5d,_0x2d5713,_0x1dcdee,_0x2bde49,{'oldShapeData':{'formulaBinding':_0x7314c8['formulaBinding']}},_0x3c2151),_0x4b88aa(_0x3c2151);}}),_0x264c0a=[{'label':_0xab6f30['t']('docs-shape-ui.textWrap.inline'),'value':_0x2ba9f5[_0x2915c7(0x23d)],'icon':_0x36fdcc(_0xe8544d,{})},{'label':_0xab6f30['t'](_0x2915c7(0x120)),'value':_0x2ba9f5[_0x2915c7(0x31b)],'icon':_0x36fdcc(_0xe8544d,{})},{'label':_0xab6f30['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x2ba9f5['WRAP_TOP_AND_BOTTOM'],'icon':_0x36fdcc(_0xe8544d,{})},{'label':_0xab6f30['t'](_0x2915c7(0x27b)),'value':_0x2ba9f5['BEHIND_TEXT'],'icon':_0x36fdcc(_0xe8544d,{})},{'label':_0xab6f30['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x2ba9f5['IN_FRONT_OF_TEXT'],'icon':_0x36fdcc(_0xe8544d,{})}];return _0x3cbb28(_0x5b0733,{'children':[_0x36fdcc(_0x5ab9af,{'canvasElement':_0xde3fd1[_0x2915c7(0x21d)],'shapeData':_0x7314c8,'shapeType':_0x218bd3,'textStyle':{'ff':_0x4e5625['shapeText'][_0x2915c7(0x121)],'fs':_0x4e5625[_0x2915c7(0x101)][_0x2915c7(0x1ad)],'cl':{'rgb':_0x4e5625[_0x2915c7(0x101)][_0x2915c7(0x2c9)]},..._0x2a6a20},'textModel':_0x24a8c3?{'ha':_0x24a8c3['ha']??_0x5c2fd9[_0x2915c7(0x2b2)],'va':_0x24a8c3['va']??_0x3a9d83[_0x2915c7(0x137)]}:null,'wrappingStyle':_0x37e629,'wrappingStyleOptions':_0x264c0a,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4e5625[_0x2915c7(0x178)],'defaultGradientEndColor':_0x4e5625['gradientEndColor'],'defaultStrokeColor':_0x4e5625['stroke'],'extensionGroups':_0x1a946f['extensionGroups'],'floatingObjectToolbarPosition':_0x10f694['DOC'],'onUpdateShapeData':(_0x5c668b,_0xe54897)=>{zr(_0x27ce5d,_0x2d5713,_0x1dcdee,_0x2bde49,_0x5c668b,_0xe54897),_0xe54897&&_0x4b88aa(_0xe54897);},'onUpdateText':_0x1942d5,'onUpdateWrappingStyle':_0x5b3386=>_0x4224d4(_0x5b3386),'onOpenPanel':()=>{_0x27ce5d['executeCommand'](q['id'],{'unitId':_0x2d5713,'subUnitId':_0x1dcdee,'drawingId':_0x2bde49});},'onDelete':()=>{const _0x234842=_0x2915c7;_0x27ce5d[_0x234842(0x182)](_0x2bbbc0['id'],{'unitId':_0x2d5713,'drawings':[{'unitId':_0x2d5713,'subUnitId':_0x1dcdee,'drawingId':_0x2bde49}]});}}),_0x1a946f['panel']]});}function _0x1086(_0xc3a14f,_0x402447){_0xc3a14f=_0xc3a14f-0xb1;const _0x20da50=_0x20da();let _0x1086d7=_0x20da50[_0xc3a14f];return _0x1086d7;}function oa({variant:_0x55aa42,extend:_0x4af180,..._0x4877e8}){const _0x5168be=_0xad1a59;let _0x2f32f9=_0x36fdcc('rect',{'x':'7','y':_0x5168be(0x2a3),'width':'6','height':'9','rx':'1','fill':'currentColor','fillOpacity':_0x5168be(0xcf),'stroke':_0x5168be(0x18c),'strokeWidth':_0x5168be(0x122)});return _0x3cbb28('svg',{'aria-hidden':_0x5168be(0x175),'fill':_0x5168be(0xba),'height':_0x5168be(0x18f),'viewBox':_0x5168be(0x1a9),'width':_0x5168be(0x18f),..._0x4877e8,'children':[_0x55aa42===_0x5168be(0x259)&&_0x3cbb28(_0x5b0733,{'children':[_0x36fdcc(_0x5168be(0xc1),{'d':'M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','stroke':_0x5168be(0x18c),'strokeLinecap':_0x5168be(0x2d7),'strokeWidth':_0x5168be(0x122)}),_0x36fdcc(_0x5168be(0xe6),{'x':'8','y':'7','width':'4','height':'6','rx':_0x5168be(0xc9),'fill':'currentColor','fillOpacity':_0x5168be(0xcf),'stroke':_0x5168be(0x18c),'strokeWidth':_0x5168be(0x122)})]}),_0x55aa42===_0x5168be(0xed)&&_0x3cbb28(_0x5b0733,{'children':[_0x36fdcc(_0x5168be(0xc1),{'d':_0x5168be(0x250),'stroke':_0x5168be(0x18c),'strokeLinecap':_0x5168be(0x2d7),'strokeWidth':'1.2'}),_0x2f32f9]}),_0x55aa42===_0x5168be(0x257)&&_0x3cbb28(_0x5b0733,{'children':[_0x36fdcc(_0x5168be(0xc1),{'d':'M2\x203h16M2\x2017h16','stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x5168be(0x122)}),_0x2f32f9]}),_0x55aa42==='behind'&&_0x3cbb28(_0x5b0733,{'children':[_0x2f32f9,_0x36fdcc(_0x5168be(0xc1),{'d':_0x5168be(0xe2),'stroke':_0x5168be(0x18c),'strokeLinecap':_0x5168be(0x2d7),'strokeWidth':_0x5168be(0x122)})]}),_0x55aa42===_0x5168be(0x1d6)&&_0x3cbb28(_0x5b0733,{'children':[_0x36fdcc('path',{'d':_0x5168be(0xe2),'stroke':_0x5168be(0x18c),'strokeLinecap':_0x5168be(0x2d7),'strokeWidth':_0x5168be(0x122)}),_0x36fdcc(_0x5168be(0xe6),{'x':'7','y':_0x5168be(0x2a3),'width':'6','height':'9','rx':'1','fill':'currentColor'})]})]});}const sa=_0x32b4f8=>_0x1e2379=>_0x36fdcc(oa,{..._0x1e2379,'variant':_0x32b4f8}),ca={'DocsShapeWrapInlineIcon':sa(_0xad1a59(0x259)),'DocsShapeWrapSquareIcon':sa(_0xad1a59(0xed)),'DocsShapeWrapTopBottomIcon':sa(_0xad1a59(0x257)),'DocsShapeWrapBehindTextIcon':sa(_0xad1a59(0x195)),'DocsShapeWrapInFrontOfTextIcon':sa(_0xad1a59(0x1d6))},la=_0x4d04cc(()=>{const _0x51339d=_0xad1a59;let _0xf2996d=_0x51204a(Q),_0x1aa736=_0x51204a(_0x3fc69e),_0x4ccfec=_0x51204a(_0x594fd5),_0x154860=_0x51204a(_0x4d71da),_0x41321a=_0x16edd4(()=>({'getShapeModel':(_0x28fc00,_0x581a3e,_0x3a62d9)=>_0x1aa736[_0x51339d(0x2b9)](_0x28fc00,_0x581a3e,_0x3a62d9),'getShapeData':(_0x1691b6,_0x5e3cad,_0xaad181)=>_0x1aa736[_0x51339d(0xdc)](_0x1691b6,_0x5e3cad,_0xaad181),'getDrawingTransform':(_0x4dd093,_0x5cad83,_0x1cc7c4)=>{const _0x3ea2d8=_0x51339d;let _0x3a2327=_0x4ccfec['getDrawingByParam']({'unitId':_0x4dd093,'subUnitId':_0x5cad83,'drawingId':_0x1cc7c4});return _0x3a2327==null?void 0x0:_0x3a2327[_0x3ea2d8(0x2fb)];},'updateShapeText':({unitId:_0x8704ff,shapeId:_0x137455,shapeText:_0x382ead,oldShapeText:_0x51074d})=>{const _0x2bfeab=_0x51339d;_0x154860[_0x2bfeab(0x182)](_0x1a5e9f['id'],{'unitId':_0x8704ff,'shapeId':_0x137455,'shapeData':{'shapeText':_0x382ead},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x51074d}}});},'updateHostSize':({unitId:_0x3671c8,subUnitId:_0x202d4f,shapeId:_0xf73781,width:_0x27e2de,height:_0x5f581b})=>{const _0x427cd9=_0x51339d;_0x154860[_0x427cd9(0x182)](_0x4ac193['id'],{'unitId':_0x3671c8,'subUnitId':_0x202d4f,'drawings':[{'drawingId':_0xf73781,'key':_0x427cd9(0x115),'value':{'width':_0x27e2de,'height':_0x5f581b}}]});},'allowHostSizeShrink':({unitId:_0x3679eb,subUnitId:_0x4deb12,shapeId:_0xf4f2f9})=>_0x2c0ada(_0x1aa736[_0x51339d(0xdc)](_0x3679eb,_0x4deb12,_0xf4f2f9))}),[_0x154860,_0x1aa736,_0x4ccfec]),_0x304e3a=_0x16edd4(()=>({'viewportKeys':{'main':_0x3948f2[_0x51339d(0x267)]}}),[]);return _0x36fdcc(_0x127b55,{'adapter':_0x41321a,'editingService':_0xf2996d,'editorUnitId':br,'positionOptions':_0x304e3a});});let ua=class extends _0x464e07{constructor(_0x176f5c,_0x504b62){const _0x15dbc5=_0xad1a59;super(),this['_componentManager']=_0x176f5c,this[_0x15dbc5(0x1aa)]=_0x504b62,this[_0x15dbc5(0x180)](),this['_registerComponents']();}['_registerIcons'](){const _0x438d3a=_0xad1a59;this[_0x438d3a(0x1aa)][_0x438d3a(0x317)](_0x438d3a(0xf2))||this['disposeWithMe'](this[_0x438d3a(0x1aa)][_0x438d3a(0x29c)]({'ObjectLayersIcon':_0x1c0d92})),this[_0x438d3a(0x1aa)]['has'](_0x438d3a(0x286))||this[_0x438d3a(0x1a6)](this[_0x438d3a(0x1aa)][_0x438d3a(0x29c)]({'BottomIcon':_0x1c53ac})),this[_0x438d3a(0x1aa)][_0x438d3a(0x317)](_0x438d3a(0x2d2))||this['disposeWithMe'](this['_iconManager'][_0x438d3a(0x29c)]({'MoveDownIcon':_0x2d1584})),this[_0x438d3a(0x1aa)]['has'](_0x438d3a(0x187))||this[_0x438d3a(0x1a6)](this['_iconManager'][_0x438d3a(0x29c)]({'MoveUpIcon':_0x2fdef3})),this[_0x438d3a(0x1aa)][_0x438d3a(0x317)](_0x438d3a(0x1b3))||this[_0x438d3a(0x1a6)](this[_0x438d3a(0x1aa)]['register']({'ShapeFormatSettingIcon':_0x2d7d78})),this[_0x438d3a(0x1aa)][_0x438d3a(0x317)]('TopmostIcon')||this[_0x438d3a(0x1a6)](this[_0x438d3a(0x1aa)]['register']({'TopmostIcon':_0x410860})),this[_0x438d3a(0x1a6)](this[_0x438d3a(0x1aa)][_0x438d3a(0x29c)](ca));}[_0xad1a59(0xf8)](){const _0x4c1fad=_0xad1a59;this['disposeWithMe'](this[_0x4c1fad(0x236)][_0x4c1fad(0x29c)](K,ea)),this[_0x4c1fad(0x1c1)](),this[_0x4c1fad(0x2d4)](),this['disposeWithMe'](this[_0x4c1fad(0x236)][_0x4c1fad(0x29c)](Hr,Jr)),this[_0x4c1fad(0x1a6)](this[_0x4c1fad(0x236)][_0x4c1fad(0x29c)](Vr,Yr)),this[_0x4c1fad(0x1a6)](this[_0x4c1fad(0x236)][_0x4c1fad(0x29c)](Ur,Xr)),this['disposeWithMe'](this[_0x4c1fad(0x236)]['register'](Wr,Zr)),this['disposeWithMe'](this[_0x4c1fad(0x236)][_0x4c1fad(0x29c)](Gr,Qr)),this[_0x4c1fad(0x1a6)](this[_0x4c1fad(0x236)]['register'](xr,_0x553d4e)),this[_0x4c1fad(0x147)](),this[_0x4c1fad(0x236)]['get'](_0xafc4c6)||this[_0x4c1fad(0x1a6)](this[_0x4c1fad(0x236)]['register'](_0xafc4c6,Mr)),this[_0x4c1fad(0x1a6)](this[_0x4c1fad(0x236)][_0x4c1fad(0x29c)](Sr,la));}[_0xad1a59(0x1c1)](){const _0x26ef9d=_0xad1a59;this[_0x26ef9d(0x1a6)](this[_0x26ef9d(0x236)][_0x26ef9d(0x29c)](yr,Yi));}[_0xad1a59(0x2d4)](){const _0x3105e0=_0xad1a59;this[_0x3105e0(0x1a6)](this['_componentManager'][_0x3105e0(0x29c)](na,ta));}[_0xad1a59(0x147)](){const _0x5d3c7e=_0xad1a59;this['disposeWithMe'](this[_0x5d3c7e(0x236)]['register'](Dr,Wi)),this[_0x5d3c7e(0x1a6)](this[_0x5d3c7e(0x236)][_0x5d3c7e(0x29c)](Or,Gi));}};ua=Y([J(0x0,_0x419b44(_0x48d412)),J(0x1,_0x419b44(_0x665b4a))],ua);let da=class extends _0x464e07{constructor(_0x53d8ed,_0x338c63,_0x489a23,_0x1ff9fe,_0x455ca0,_0x3cbdf2,_0x18da9b,_0x1efd5d,_0x3f1bda,_0x23ae21,_0x51a6b9,_0x468f4c,_0x1998f8){const _0x4d620c=_0xad1a59;super(),this[_0x4d620c(0x2f6)]=_0x53d8ed,this[_0x4d620c(0x20b)]=_0x338c63,this['_menuManagerService']=_0x489a23,this[_0x4d620c(0x318)]=_0x1ff9fe,this['_localeService']=_0x455ca0,this[_0x4d620c(0x100)]=_0x3cbdf2,this[_0x4d620c(0x131)]=_0x18da9b,this[_0x4d620c(0x242)]=_0x1efd5d,this[_0x4d620c(0xda)]=_0x3f1bda,this[_0x4d620c(0x166)]=_0x23ae21,this[_0x4d620c(0x167)]=_0x51a6b9,this[_0x4d620c(0x12a)]=_0x468f4c,this[_0x4d620c(0x151)]=_0x1998f8,Z(this,_0x4d620c(0x113),null),Z(this,'_activeShapeInfo',null),Z(this,_0x4d620c(0x23c),!0x1),Z(this,_0x4d620c(0x2f3),0x0),Z(this,_0x4d620c(0x2b1),new Map()),Z(this,_0x4d620c(0x20f),new Map()),this[_0x4d620c(0x2f2)](),this[_0x4d620c(0x1a6)](this[_0x4d620c(0x2f6)][_0x4d620c(0x1e2)](_0x312956[_0x4d620c(0xde)])[_0x4d620c(0x245)](_0x9cadb2=>{const _0x171c88=_0x4d620c;if(!_0x9cadb2){var _0x17d323;(_0x17d323=this[_0x171c88(0x113)])==null||_0x17d323['dispose']();}})),this[_0x4d620c(0x2c3)](),this[_0x4d620c(0x1a6)](_0x1dafe7(this['_renderManagerService'],_0x312956[_0x4d620c(0xde)],_0x5951a0=>this[_0x4d620c(0x130)](_0x5951a0))),this[_0x4d620c(0x1a6)](this[_0x4d620c(0x167)]['editingParams$'][_0x4d620c(0x245)](_0x1e5c13=>{const _0x4cb947=_0x4d620c;_0x1e5c13&&this[_0x4cb947(0x293)](void 0x0,!0x0);})),this[_0x4d620c(0x1a6)](this[_0x4d620c(0x12a)]['permissionPointUpdate$']['subscribe'](()=>{const _0x3a91cb=_0x4d620c;this[_0x3a91cb(0x131)][_0x3a91cb(0x2ff)]()[_0x3a91cb(0x2e5)](_0x293b38=>_0x293b38[_0x3a91cb(0x289)]===_0x16107f[_0x3a91cb(0x284)]&&this['_univerInstanceService']['getUnitType'](_0x293b38[_0x3a91cb(0x306)])===_0x312956['UNIVER_DOC']&&!this[_0x3a91cb(0x1f7)](_0x293b38[_0x3a91cb(0x306)],_0x293b38['drawingId']))&&(this[_0x3a91cb(0x293)](void 0x0,!0x0),this[_0x3a91cb(0x125)]());}));}[_0xad1a59(0x291)](_0x582196,_0x18f980,_0x40813b,_0x1572a9){const _0x5d5b00=_0xad1a59;return[{'label':_0x5d5b00(0x190),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x582196,'subUnitId':_0x18f980,'drawingId':_0x40813b},'disable':_0x1572a9===_0x16107f[_0x5d5b00(0x1eb)]},{'label':_0x5d5b00(0x176),'index':0x1,'commandId':_0x2bbbc0['id'],'commandParams':{'unitId':_0x582196,'drawings':[{'unitId':_0x582196,'subUnitId':_0x18f980,'drawingId':_0x40813b}]},'disable':!0x1},{'label':_0x5d5b00(0x19e),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x582196,'subUnitId':_0x18f980,'drawingId':_0x40813b},'disable':!0x1}];}['_initMenu'](){const _0x4b95d2=_0xad1a59;this['_menuManagerService'][_0x4b95d2(0x1f4)](Di);}[_0xad1a59(0x203)](_0x2444b6,_0x39fdf4,_0x1ca514){const _0x11646d=_0xad1a59;let _0x164c51=this[_0x11646d(0x318)][_0x11646d(0x10c)](_0x2444b6,_0x39fdf4,_0x1ca514),_0x36d56=this['_docsShapeService'][_0x11646d(0xdc)](_0x2444b6,_0x39fdf4,_0x1ca514);return _0x164c51===void 0x0||_0x36d56===void 0x0?null:{'shapeData':_0x36d56,'shapeId':_0x1ca514,'shapeType':_0x164c51,'unitId':_0x2444b6,'subUnitId':_0x39fdf4,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1};}[_0xad1a59(0x293)](_0x4e2693,_0x3e05df=!0x1){const _0x1c2685=_0xad1a59;if(_0x4e2693==null){[...this['_disposePopupsByUnit'][_0x1c2685(0x107)]()][_0x1c2685(0x302)](_0x5f2ca2=>this[_0x1c2685(0x293)](_0x5f2ca2,_0x3e05df));return;}let _0x56a5ad=this[_0x1c2685(0x2b1)]['get'](_0x4e2693);if(_0x56a5ad){for(let _0x31f218=_0x56a5ad[_0x1c2685(0x296)]-0x1;_0x31f218>=0x0;--_0x31f218){let _0x8a1de2=_0x56a5ad[_0x31f218];(_0x3e05df||_0x8a1de2[_0x1c2685(0x228)]())&&(_0x8a1de2[_0x1c2685(0x1d9)](),_0x56a5ad[_0x1c2685(0x1d0)](_0x31f218,0x1));}_0x56a5ad['length']===0x0&&(this[_0x1c2685(0x2b1)][_0x1c2685(0x273)](_0x4e2693),this[_0x1c2685(0x20f)][_0x1c2685(0x273)](_0x4e2693));}}[_0xad1a59(0x14d)](_0x3e06e4){const _0x2866f8=_0xad1a59;let _0x208a66=this[_0x2866f8(0x2b1)][_0x2866f8(0x216)](_0x3e06e4);if(_0x208a66)return _0x208a66;let _0x1bc856=[];return this['_disposePopupsByUnit'][_0x2866f8(0x219)](_0x3e06e4,_0x1bc856),_0x1bc856;}[_0xad1a59(0x130)](_0x2c48c3){const _0x3f6772=_0xad1a59;var _0x59c539;let _0x3fcde4=new _0x29bfb7(),_0x41b703=(_0x59c539=this[_0x3f6772(0xda)][_0x3f6772(0x2ed)](_0x312956['UNIVER_DOC'])['find'](_0x36687f=>_0x36687f['scene'][_0x3f6772(0xea)]()===_0x2c48c3))==null?void 0x0:_0x59c539[_0x3f6772(0x306)];return _0x41b703?(_0x3fcde4[_0x3f6772(0x199)](_0x2c48c3[_0x3f6772(0x2bd)][_0x3f6772(0x245)](()=>this[_0x3f6772(0x297)](_0x2c48c3,_0x41b703))),_0x3fcde4['add'](_0x2c48c3[_0x3f6772(0x2d0)][_0x3f6772(0x245)](()=>{const _0x58f3e4=_0x3f6772;this[_0x58f3e4(0x293)](_0x41b703),queueMicrotask(()=>{const _0x228d16=_0x58f3e4;_0x2c48c3['getSelectedObjectMap']()['size']>0x0||(this[_0x228d16(0x166)][_0x228d16(0x1b8)](_0x1df010,!0x1),this[_0x228d16(0x131)]['focusDrawing'](null));});})),_0x3fcde4[_0x3f6772(0x199)](_0x2c48c3[_0x3f6772(0x192)][_0x3f6772(0x245)](()=>{const _0x5b2291=_0x3f6772;this[_0x5b2291(0x293)](_0x41b703,!0x0);})),_0x3fcde4):_0x3fcde4;}['_handleCreateControl'](_0x2f1857,_0x3ad403){const _0x72e008=_0xad1a59;let _0x2009dd=_0x2f1857[_0x72e008(0x209)]();if(this[_0x72e008(0x23c)]){this[_0x72e008(0x293)](_0x3ad403,!0x0);return;}if(_0x2009dd['size']>0x1){this[_0x72e008(0x293)](_0x3ad403);return;}let _0x1bc21a=_0x2009dd['values']()[_0x72e008(0x1f9)]()[_0x72e008(0x2a4)];if(!_0x1bc21a){this['_clearPopups'](_0x3ad403);return;}let _0x4e4b50=this['_drawingManagerService'][_0x72e008(0x10f)](_0x1bc21a[_0x72e008(0x2d8)]);if(!_0x4e4b50||_0x4e4b50[_0x72e008(0x289)]!==_0x16107f[_0x72e008(0x284)]){this[_0x72e008(0x293)](_0x3ad403);return;}let {unitId:_0x5a149,subUnitId:_0x14df4b,drawingId:_0x48a625}=_0x4e4b50;if(!this['_canEditShape'](_0x5a149,_0x48a625)){this[_0x72e008(0x293)](_0x3ad403,!0x0);return;}let _0x268c9d=this['_getShapeInfo'](_0x5a149,_0x14df4b,_0x48a625);if(!_0x268c9d){this[_0x72e008(0x293)](_0x3ad403);return;}let _0x133d5a=this['_disposePopupsByUnit'][_0x72e008(0x216)](_0x3ad403),_0x36b047=_0x5a149+':'+_0x14df4b+':'+_0x48a625;if(this[_0x72e008(0x20f)]['get'](_0x3ad403)===_0x36b047&&_0x133d5a!=null&&_0x133d5a['length'])return;this[_0x72e008(0x293)](_0x3ad403);let _0xf605c4=this[_0x72e008(0xda)][_0x72e008(0x264)](_0x5a149),_0x1b0832=((_0xf605c4==null?void 0x0:_0xf605c4[_0x72e008(0x1e6)])===!0x1?_0xf605c4[_0x72e008(0x223)](_0x27caad):this[_0x72e008(0x242)])['attachPopupToObject'](_0x1bc21a,this[_0x72e008(0x26a)](_0x268c9d,()=>this['_clearPopups'](_0x3ad403,!0x0)),_0x5a149);this['disposeWithMe'](_0x1b0832),this[_0x72e008(0x14d)](_0x3ad403)[_0x72e008(0xb9)](_0x1b0832),this['_popupTargetKeys']['set'](_0x3ad403,_0x36b047),this['_drawingManagerService']['getFocusDrawings']()[_0x72e008(0x2e5)](_0x53d024=>_0x53d024[_0x72e008(0x306)]===_0x5a149&&_0x53d024[_0x72e008(0x19b)]===_0x14df4b&&_0x53d024['drawingId']===_0x48a625)||this[_0x72e008(0x131)][_0x72e008(0x2e3)]([{'unitId':_0x5a149,'subUnitId':_0x14df4b,'drawingId':_0x48a625}]);}[_0xad1a59(0x26a)](_0x1fd03c,_0x4e70d6){const _0x156b35=_0xad1a59;let {unitId:_0x56ee8c,subUnitId:_0x488e49,shapeId:_0x4ba97b}=_0x1fd03c,_0x15bca2={'hostType':_0x312956['UNIVER_DOC'],'unitId':_0x56ee8c,'subUnitId':_0x488e49,'shapeId':_0x4ba97b};return{'componentKey':na,'direction':_0x156b35(0x11d),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x1fd03c[_0x156b35(0x23e)],'onText':()=>{const _0x2d762b=_0x156b35;_0x4e70d6(),this[_0x2d762b(0x151)][_0x2d762b(0x1ac)](_0x2d762b(0xc6),_0x15bca2);},'onStyle':()=>{const _0x89e604=_0x156b35;_0x4e70d6(),this[_0x89e604(0x151)]['open'](_0x89e604(0x2f5),_0x15bca2);},'onDelete':()=>this[_0x156b35(0x100)][_0x156b35(0x182)](_0x2bbbc0['id'],{'unitId':_0x56ee8c,'drawings':[{'unitId':_0x56ee8c,'subUnitId':_0x488e49,'drawingId':_0x4ba97b}]})}};}[_0xad1a59(0x1f7)](_0x35eef6,_0x58f993){const _0xda6541=_0xad1a59;let _0x424dc0=this[_0xda6541(0x2f6)][_0xda6541(0x201)](_0x35eef6,_0x312956[_0xda6541(0xde)]);if(!_0x424dc0)return!0x1;let _0x5e105c=_0x3519d2(_0x424dc0,_0x58f993);return _0x1fab01(this[_0xda6541(0x12a)],_0x35eef6,[..._0x54d8e6(_0x424dc0,_0x5e105c,_0xda6541(0x1ae),_0x58f993),_0x2c866a(_0x5e105c,_0xda6541(0x1ae),_0x58f993)]);}[_0xad1a59(0x2c3)](){const _0x5cf4f1=_0xad1a59;this[_0x5cf4f1(0x1a6)](this['_commandService']['onCommandExecuted'](_0x5515e7=>{const _0x17d9f5=_0x5cf4f1;if(_0x5515e7['id']===q['id']){let {unitId:_0x3c7776,subUnitId:_0x59c05b,drawingId:_0x529703}=_0x5515e7[_0x17d9f5(0x112)];this[_0x17d9f5(0x2f3)]+=0x1,this[_0x17d9f5(0xd6)]=this['_getShapeInfo'](_0x3c7776,_0x59c05b,_0x529703),this[_0x17d9f5(0x293)](void 0x0,!0x0),this[_0x17d9f5(0xb3)]();}if(_0x5515e7['id']===Ai['id']&&(this[_0x17d9f5(0xd6)]=null,this['_closeShapeEditPanel']()),_0x5515e7['id']===_0x18e8b3['id']){var _0x5197fb;let {unitId:_0xe09ffd,shapeId:_0x347224}=_0x5515e7[_0x17d9f5(0x112)];if(((_0x5197fb=this[_0x17d9f5(0xd6)])==null?void 0x0:_0x5197fb[_0x17d9f5(0x13a)])===_0x347224){let _0x498680=this[_0x17d9f5(0x203)](_0xe09ffd,this[_0x17d9f5(0xd6)][_0x17d9f5(0x19b)],_0x347224);_0x498680&&(this[_0x17d9f5(0x2f3)]+=0x1,_0x498680[_0x17d9f5(0x1d5)]=this['_shapeEditPanelVersion'],this['_activeShapeInfo']=_0x498680,this[_0x17d9f5(0x23c)]&&this[_0x17d9f5(0xb3)]());}}})),this['disposeWithMe'](this[_0x5cf4f1(0x131)][_0x5cf4f1(0x307)]['subscribe'](_0x5ea9bd=>{const _0x6ef86c=_0x5cf4f1;if(!this[_0x6ef86c(0x23c)])return;if(_0x5ea9bd['length']===0x0){this[_0x6ef86c(0xd6)]=null,this['_closeShapeEditPanel']();return;}if(_0x5ea9bd[_0x6ef86c(0x296)]===0x1&&_0x5ea9bd[0x0]['drawingType']===_0x16107f[_0x6ef86c(0x284)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x6ef86c(0xd6)]=this['_getShapeInfo'](_0x5ea9bd[0x0][_0x6ef86c(0x306)],_0x5ea9bd[0x0][_0x6ef86c(0x19b)],_0x5ea9bd[0x0][_0x6ef86c(0xdb)]),this[_0x6ef86c(0xd6)])){this[_0x6ef86c(0xb3)]();return;}let _0x25178c=_0x5ea9bd['filter'](_0x625904=>_0x625904['drawingType']===_0x16107f[_0x6ef86c(0x284)]);if(this[_0x6ef86c(0x2f3)]+=0x1,this[_0x6ef86c(0xd6)]=this['_getShapeInfo'](_0x5ea9bd[0x0][_0x6ef86c(0x306)],_0x5ea9bd[0x0][_0x6ef86c(0x19b)],_0x5ea9bd[0x0][_0x6ef86c(0xdb)]),this[_0x6ef86c(0xd6)]&&_0x5ea9bd[_0x6ef86c(0x296)]>0x1&&_0x25178c['length']===_0x5ea9bd[_0x6ef86c(0x296)]){this[_0x6ef86c(0xb3)]();return;}if(this[_0x6ef86c(0xd6)]&&_0x25178c[_0x6ef86c(0x296)]!==_0x5ea9bd[_0x6ef86c(0x296)]){this[_0x6ef86c(0xd6)][_0x6ef86c(0xd0)]=!0x0,this[_0x6ef86c(0xb3)]();return;}this[_0x6ef86c(0x125)]();}));}['_openShapeEditPanel'](){const _0x17b486=_0xad1a59;this[_0x17b486(0xd6)]&&(this[_0x17b486(0x113)]=this[_0x17b486(0x20b)][_0x17b486(0x1ac)]({'id':K,'header':{'title':this[_0x17b486(0x1a4)]['t'](_0x17b486(0x21f))},'width':0x184,'children':{'label':K,...this[_0x17b486(0xd6)]},'onClose':()=>{const _0x38be13=_0x17b486;this[_0x38be13(0x131)][_0x38be13(0x2e3)](null),this[_0x38be13(0x166)]['setContextValue'](_0x1df010,!0x1),this[_0x38be13(0x113)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0xad1a59(0x125)](){const _0x3f0df3=_0xad1a59;this['_isOpenedShapeEditPanel']=!0x1,this[_0x3f0df3(0x20b)][_0x3f0df3(0xf9)](K),this[_0x3f0df3(0x113)]=null,this[_0x3f0df3(0x166)][_0x3f0df3(0x1b8)](_0x1df010,!0x1),this[_0x3f0df3(0x131)][_0x3f0df3(0x2e3)](null);}};da=Y([J(0x0,_0x25edd3),J(0x1,_0x419b44(_0x4b4d23)),J(0x2,_0x476c9d),J(0x3,_0x419b44(_0x3fc69e)),J(0x4,_0x419b44(_0x4574f5)),J(0x5,_0x4d71da),J(0x6,_0x594fd5),J(0x7,_0x419b44(_0x27caad)),J(0x8,_0x368952),J(0x9,_0x45c1ed),J(0xa,_0x419b44(Q)),J(0xb,_0x9c7e02),J(0xc,_0x419b44(_0x15fff4))],da);const fa=_0xad1a59(0xd1);let pa=class extends _0x464e07{constructor(_0x484ae3,_0x55d385,_0x5de5f2,_0x579f1e,_0x1a7fb2,_0x5023ec){const _0x4e28cc=_0xad1a59;super(),this[_0x4e28cc(0x1ba)]=_0x484ae3,this['_ribbonService']=_0x55d385,this['_drawingManagerService']=_0x5de5f2,this[_0x4e28cc(0x2f6)]=_0x579f1e,this[_0x4e28cc(0xda)]=_0x1a7fb2,this[_0x4e28cc(0xe4)]=_0x5023ec,Z(this,_0x4e28cc(0x16a),!0x1),this[_0x4e28cc(0x1ba)][_0x4e28cc(0x1f4)](Ei),this[_0x4e28cc(0x1a6)](_0xf4ef4a(this[_0x4e28cc(0x131)][_0x4e28cc(0x307)][_0x4e28cc(0x245)](()=>this[_0x4e28cc(0x11f)]()))),this[_0x4e28cc(0x11f)]();}[_0xad1a59(0x1d9)](){const _0x34554=_0xad1a59;this[_0x34554(0xe4)][_0x34554(0xb6)](!0x1,fa),this[_0x34554(0x28c)](),super[_0x34554(0x1d9)]();}[_0xad1a59(0x11f)](){const _0x5e06d4=_0xad1a59;var _0x3a4d01;let _0x218103=this[_0x5e06d4(0x131)][_0x5e06d4(0x2ff)](),_0x59134e=_0x218103[_0x5e06d4(0x296)]===0x1?_0x218103[0x0]:void 0x0;if((_0x59134e==null?void 0x0:_0x59134e[_0x5e06d4(0x289)])!==_0x16107f['DRAWING_SHAPE']||this['_univerInstanceService'][_0x5e06d4(0x1fa)](_0x59134e[_0x5e06d4(0x306)])!==_0x312956[_0x5e06d4(0xde)]){this[_0x5e06d4(0xe4)][_0x5e06d4(0xb6)](!0x1,fa),this[_0x5e06d4(0x28c)]();return;}let _0x146473=(_0x3a4d01=this[_0x5e06d4(0xda)]['getRenderUnitById'](_0x59134e[_0x5e06d4(0x306)]))==null?void 0x0:_0x3a4d01[_0x5e06d4(0x28b)][_0x5e06d4(0x11e)](),_0x1d7fea=_0x3cd0a9(_0x146473)===_0x5e06d4(0xd5);if(this['_shapeFloatingToolbarService'][_0x5e06d4(0xb6)](_0x1d7fea,fa),_0x1d7fea){this[_0x5e06d4(0x28c)]();return;}this[_0x5e06d4(0x16a)]||(this[_0x5e06d4(0x16a)]=!0x0,this['_ribbonService'][_0x5e06d4(0x271)](vr,{'activate':!0x0}));}[_0xad1a59(0x28c)](){const _0x117a56=_0xad1a59;this[_0x117a56(0x16a)]&&(this[_0x117a56(0x16a)]=!0x1,this['_ribbonService']['hideContextualTab'](vr),this[_0x117a56(0x2ec)][_0x117a56(0x16f)]([]));}};pa=Y([J(0x0,_0x476c9d),J(0x1,_0x6e1c85),J(0x2,_0x594fd5),J(0x3,_0x25edd3),J(0x4,_0x368952),J(0x5,_0x419b44(_0x4cb24e))],pa);let ma=class extends _0x464e07{constructor(_0x40331b,_0x365783,_0x1df3cf,_0x4ed7fe){const _0xdbce3b=_0xad1a59;super(),this[_0xdbce3b(0x100)]=_0x40331b,this[_0xdbce3b(0xda)]=_0x365783,this['_drawingManagerService']=_0x1df3cf,this[_0xdbce3b(0x17d)]=_0x4ed7fe,this['_initialize']();}[_0xad1a59(0x258)](){const _0x2c3170=_0xad1a59;this['disposeWithMe'](this[_0x2c3170(0x131)]['add$'][_0x2c3170(0x245)](_0x224fc7=>this[_0x2c3170(0x1e5)](_0x224fc7))),this['disposeWithMe'](this[_0x2c3170(0x131)][_0x2c3170(0x1f6)]['subscribe'](_0x115144=>{const _0x55125=_0x2c3170;_0x115144[_0x55125(0x302)](_0x4091ef=>this[_0x55125(0x24a)](_0x4091ef));})),this[_0x2c3170(0x1a6)](this[_0x2c3170(0x100)]['onCommandExecuted'](_0x4a2261=>{const _0x383126=_0x2c3170;if(_0x4a2261['id']!==_0x18e8b3['id'])return;let {unitId:_0x5e0bfc,shapeId:_0x5c2755}=_0x4a2261['params'];this[_0x383126(0xb2)]({'unitId':_0x5e0bfc,'subUnitId':_0x5e0bfc,'drawingId':_0x5c2755});}));}[_0xad1a59(0x1e5)](_0x990f55){const _0x40021d=_0xad1a59;_0x990f55[_0x40021d(0x302)](_0x1207eb=>{const _0x41812f=_0x40021d;let _0x13ea01=this[_0x41812f(0x18b)](_0x1207eb[_0x41812f(0x306)]);if(!_0x13ea01)return;let _0x342750=this[_0x41812f(0x131)]['getDrawingByParam'](_0x1207eb);(_0x342750==null?void 0x0:_0x342750[_0x41812f(0x289)])===_0x16107f[_0x41812f(0x284)]&&this['_docDrawingShapeRenderController'][_0x41812f(0x230)](_0x342750,_0x13ea01[_0x41812f(0x111)]);});}[_0xad1a59(0x24a)](_0x1158e1){const _0x3ad5fa=_0xad1a59;let _0x5a43a5=this['_drawingManagerService'][_0x3ad5fa(0x164)](_0x1158e1);if((_0x5a43a5==null?void 0x0:_0x5a43a5['drawingType'])!==_0x16107f[_0x3ad5fa(0x284)])return;let _0x2cf1cd=this[_0x3ad5fa(0x18b)](_0x1158e1[_0x3ad5fa(0x306)]);if(!_0x2cf1cd||_0x5a43a5[_0x3ad5fa(0x2fb)]==null)return;let _0x3df4d4=_0x1cc035(_0x1158e1),_0x2278e3=_0x2cf1cd['scene'][_0x3ad5fa(0x2c2)](_0x3df4d4);_0x2278e3&&(_0x2278e3[_0x3ad5fa(0x315)](_0x5a43a5[_0x3ad5fa(0x11a)]),_0x2278e3[_0x3ad5fa(0x1ca)](_0x5a43a5['prstGeom']),_0x2278e3[_0x3ad5fa(0x246)](!0x0));}[_0xad1a59(0xb2)](_0x190b19){const _0x39822d=_0xad1a59;let _0x3ba057=this['_getSceneByUnitId'](_0x190b19[_0x39822d(0x306)]);if(!_0x3ba057)return;let _0x5ab656=_0x1cc035(_0x190b19),_0x1039c0=_0x3ba057['scene'][_0x39822d(0x2c2)](_0x5ab656);_0x1039c0&&(this[_0x39822d(0x17d)]['refreshShapeFillImage'](_0x1039c0),this[_0x39822d(0x17d)][_0x39822d(0x212)](_0x1039c0,{'unitId':_0x190b19[_0x39822d(0x306)],'subUnitId':_0x190b19[_0x39822d(0x19b)],'shapeId':_0x190b19[_0x39822d(0xdb)]}),_0x1039c0[_0x39822d(0x246)](!0x0));}[_0xad1a59(0x18b)](_0x4081c4){const _0x22c278=_0xad1a59;if(_0x4081c4==null)return null;let _0x1b5ed1=this[_0x22c278(0xda)][_0x22c278(0x264)](_0x4081c4),_0x18f51e=_0x1b5ed1==null?void 0x0:_0x1b5ed1['scene'];return _0x18f51e==null?null:{'scene':_0x18f51e};}};ma=Y([J(0x0,_0x4d71da),J(0x1,_0x368952),J(0x2,_0x594fd5),J(0x3,_0x419b44($))],ma);let ha=class extends _0x4de273{constructor(_0x27cf9e=Mi,_0x20f824,_0x33b251,_0xf47d7,_0xe21816){const _0xfe4631=_0xad1a59;super(),this['_config']=_0x27cf9e,this[_0xfe4631(0x221)]=_0x20f824,this[_0xfe4631(0x100)]=_0x33b251,this[_0xfe4631(0x1fd)]=_0xf47d7,this[_0xfe4631(0xda)]=_0xe21816;let {menu:_0x5efeb8,..._0x4bc267}=_0x4ae44c({},Mi,this[_0xfe4631(0x127)]);_0x5efeb8&&this['_configService'][_0xfe4631(0x15f)](_0xfe4631(0xfa),_0x5efeb8,{'merge':!0x0}),this[_0xfe4631(0x1fd)][_0xfe4631(0x15f)](ji,_0x4bc267),[G,Ai,q,Cr,Tr,Er][_0xfe4631(0x302)](_0x53f902=>this[_0xfe4631(0x1a6)](this[_0xfe4631(0x100)][_0xfe4631(0x2cf)](_0x53f902)));}[_0xad1a59(0x27e)](){const _0x5d164a=_0xad1a59;let _0x5d47f0=[[ua],[da],[ma],[$],[Vi],[zi],[X],[Xi],[Q],[pa]];_0x3d81ae(this[_0x5d164a(0x221)],_0x5d47f0),this[_0x5d164a(0x221)][_0x5d164a(0x216)](ua);}['onReady'](){const _0x476d87=_0xad1a59;this[_0x476d87(0x1a6)](this[_0x476d87(0xda)][_0x476d87(0x2e0)](_0x312956['UNIVER_DOC'],[zi])),_0x14a56b(this[_0x476d87(0x221)],[[da],[ma],[$],[Vi],[X],[Xi],[Q],[pa]]);}};Z(ha,_0xad1a59(0x19a),_0x312956[_0xad1a59(0xde)]),Z(ha,'pluginName',_0xad1a59(0x1af)),Z(ha,_0xad1a59(0x287),Oi),Z(ha,_0xad1a59(0x1d5),ki),ha=Y([_0x576ad0(_0x4c0897,_0x962e3d,_0x2de2b7,_0x16789c,_0xe383d4,_0xaa2ac6,_0x8a55b7,_0x488ae5,_0x344219,_0x4013c5),J(0x1,_0x419b44(_0x1ae8f5)),J(0x2,_0x4d71da),J(0x3,_0x5a4431),J(0x4,_0x368952)],ha);let ga=class extends _0x464e07{constructor(_0x5e91dd,_0x2bf014){const _0x5c28c5=_0xad1a59;super(),this[_0x5c28c5(0x236)]=_0x5e91dd,this['_iconManager']=_0x2bf014,this[_0x5c28c5(0x180)](),this[_0x5c28c5(0xf8)]();}['_registerIcons'](){const _0x25f7e9=_0xad1a59;this[_0x25f7e9(0x1aa)][_0x25f7e9(0x317)](_0x25f7e9(0xf2))||this[_0x25f7e9(0x1a6)](this[_0x25f7e9(0x1aa)]['register']({'ObjectLayersIcon':_0x1c0d92})),this['_iconManager'][_0x25f7e9(0x317)](_0x25f7e9(0x286))||this[_0x25f7e9(0x1a6)](this[_0x25f7e9(0x1aa)][_0x25f7e9(0x29c)]({'BottomIcon':_0x1c53ac})),this[_0x25f7e9(0x1aa)][_0x25f7e9(0x317)](_0x25f7e9(0x2d2))||this[_0x25f7e9(0x1a6)](this[_0x25f7e9(0x1aa)][_0x25f7e9(0x29c)]({'MoveDownIcon':_0x2d1584})),this[_0x25f7e9(0x1aa)]['has'](_0x25f7e9(0x187))||this[_0x25f7e9(0x1a6)](this['_iconManager']['register']({'MoveUpIcon':_0x2fdef3})),this['_iconManager'][_0x25f7e9(0x317)](_0x25f7e9(0x1b3))||this[_0x25f7e9(0x1a6)](this[_0x25f7e9(0x1aa)][_0x25f7e9(0x29c)]({'ShapeFormatSettingIcon':_0x2d7d78})),this[_0x25f7e9(0x1aa)][_0x25f7e9(0x317)](_0x25f7e9(0x314))||this[_0x25f7e9(0x1a6)](this['_iconManager'][_0x25f7e9(0x29c)]({'TopmostIcon':_0x410860})),this[_0x25f7e9(0x1a6)](this['_iconManager'][_0x25f7e9(0x29c)](ca));}['_registerComponents'](){const _0x38f2dd=_0xad1a59;this['disposeWithMe'](this[_0x38f2dd(0x236)][_0x38f2dd(0x29c)](K,Qi)),this[_0x38f2dd(0x1c1)](),this[_0x38f2dd(0x2d4)](),this['disposeWithMe'](this[_0x38f2dd(0x236)][_0x38f2dd(0x29c)](Hr,Jr)),this[_0x38f2dd(0x1a6)](this[_0x38f2dd(0x236)][_0x38f2dd(0x29c)](Vr,Yr)),this[_0x38f2dd(0x1a6)](this[_0x38f2dd(0x236)][_0x38f2dd(0x29c)](Ur,Xr)),this[_0x38f2dd(0x1a6)](this[_0x38f2dd(0x236)][_0x38f2dd(0x29c)](Wr,Zr)),this[_0x38f2dd(0x1a6)](this[_0x38f2dd(0x236)][_0x38f2dd(0x29c)](Gr,Qr)),this['disposeWithMe'](this[_0x38f2dd(0x236)][_0x38f2dd(0x29c)](xr,_0x553d4e)),this['_registerPickers'](),this['_componentManager'][_0x38f2dd(0x216)](_0xafc4c6)||this[_0x38f2dd(0x1a6)](this[_0x38f2dd(0x236)][_0x38f2dd(0x29c)](_0xafc4c6,Mr)),this[_0x38f2dd(0x1a6)](this[_0x38f2dd(0x236)]['register'](Sr,la));}[_0xad1a59(0x1c1)](){const _0x4dee33=_0xad1a59;this[_0x4dee33(0x1a6)](this[_0x4dee33(0x236)]['register'](yr,Ji));}[_0xad1a59(0x2d4)](){const _0x5c8ea8=_0xad1a59;this[_0x5c8ea8(0x1a6)](this[_0x5c8ea8(0x236)][_0x5c8ea8(0x29c)](na,ia));}['_registerPickers'](){const _0x51a80a=_0xad1a59;this[_0x51a80a(0x1a6)](this[_0x51a80a(0x236)]['register'](Dr,Nr)),this[_0x51a80a(0x1a6)](this[_0x51a80a(0x236)][_0x51a80a(0x29c)](Or,jr));}};ga=Y([J(0x0,_0x419b44(_0x48d412)),J(0x1,_0x419b44(_0x665b4a))],ga);let _a=class extends _0x464e07{constructor(_0x11c30d,_0x2918a2,_0x5694c8,_0x4962ea,_0x479c49,_0x5c17c6,_0x4d9ba7,_0x565660,_0x4719d7){const _0x19ad42=_0xad1a59;super();let _0xfe3b4f=_0x4d0c10=>{const _0x4f9270=_0x1086;let _0x42a09=_0x5c17c6[_0x4f9270(0x201)](_0x4d0c10[_0x4f9270(0x306)],_0x312956['UNIVER_DOC']),_0x36de12=_0x42a09?_0x3519d2(_0x42a09,_0x4d0c10[_0x4f9270(0x13a)]):'';return!!_0x42a09&&_0x1fab01(_0x565660,_0x4d0c10[_0x4f9270(0x306)],[_0x2c866a(_0x36de12,'drawing',_0x4d0c10['shapeId']),..._0x54d8e6(_0x42a09,_0x36de12,_0x4f9270(0x1ae),_0x4d0c10['shapeId'])]);},_0x250d46=_0x191c04=>_0x191c04[_0x19ad42(0x13a)]&&_0xfe3b4f(_0x191c04)?_0x5694c8[_0x19ad42(0xdc)](_0x191c04[_0x19ad42(0x306)],_0x191c04[_0x19ad42(0x13a)])??null:null,_0x33bac6=()=>{const _0x9ac277=_0x19ad42;let _0x1d98ca=_0x479c49['getFocusDrawings'](),_0x5516aa=_0x1d98ca[_0x9ac277(0x296)]===0x1?_0x1d98ca[0x0]:null;return(_0x5516aa==null?void 0x0:_0x5516aa['drawingType'])===_0x16107f['DRAWING_SHAPE']&&_0x5516aa[_0x9ac277(0x306)]===_0x11c30d[_0x9ac277(0x306)]?{'unitId':_0x5516aa['unitId'],'subUnitId':_0x5516aa['subUnitId'],'shapeId':_0x5516aa[_0x9ac277(0xdb)]}:null;};this['disposeWithMe'](_0x2db216(_0x11c30d,_0x2918a2,{'changes$':_0x5f4fd7(_0x479c49[_0x19ad42(0x307)],_0x4962ea[_0x19ad42(0x2b5)],_0x565660[_0x19ad42(0x191)]),'isActive':()=>{const _0x5636d0=_0x19ad42;var _0xa3e0a3;return((_0xa3e0a3=_0x5c17c6[_0x5636d0(0x270)]())==null?void 0x0:_0xa3e0a3[_0x5636d0(0xc4)]())===_0x11c30d[_0x5636d0(0x306)]&&!_0x4d9ba7['getContextValue'](_0xc93721)&&_0x479c49[_0x5636d0(0x2ff)]()['some'](_0x535a2d=>_0x535a2d[_0x5636d0(0x306)]===_0x11c30d[_0x5636d0(0x306)]);},'getSelectedTarget':_0x33bac6,'getSource':()=>{let _0x18f2e7=_0x33bac6();return _0x18f2e7?_0x250d46(_0x18f2e7):null;},'getTarget':_0x6e7c06=>{const _0x20fae0=_0x19ad42;let _0x348411=_0x11c30d['scene']['pick'](new _0x3960b4(_0x6e7c06[_0x20fae0(0x225)],_0x6e7c06[_0x20fae0(0x181)]));if(!(_0x348411 instanceof Ri))return null;let _0x40df57={'unitId':_0x11c30d[_0x20fae0(0x306)],'subUnitId':_0x11c30d[_0x20fae0(0x306)],'shapeId':_0x348411[_0x20fae0(0x13a)]};return _0xfe3b4f(_0x40df57)?_0x40df57:null;},'getShape':_0x250d46,'update':(_0x15a7e8,_0x5d5923,_0x2e7d88)=>_0x4719d7[_0x19ad42(0x182)](_0x1a5e9f['id'],{..._0x15a7e8,'shapeData':_0x2e7d88,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x5d5923}})}));}};_a=Y([J(0x1,_0x419b44(_0x2eef32)),J(0x2,_0x419b44(_0x3fc69e)),J(0x3,_0x419b44(Q)),J(0x4,_0x594fd5),J(0x5,_0x25edd3),J(0x6,_0x45c1ed),J(0x7,_0x9c7e02),J(0x8,_0x4d71da)],_a);function va(_0x318ee8,_0x248ba8){const _0x2c417f=_0xad1a59;let _0x5449d2=_0x318ee8;for(;_0x5449d2;){if(_0x248ba8(_0x5449d2))return _0x5449d2;_0x5449d2=typeof _0x5449d2[_0x2c417f(0x12d)]==_0x2c417f(0x170)?_0x5449d2[_0x2c417f(0x12d)]():null;}return null;}function ya(_0x17e391){return va(_0x17e391,_0x3b5ac0=>_0x3b5ac0 instanceof Ri);}function ba(_0x2c5dee){const _0x5236b5=_0xad1a59;return(_0x2c5dee==null?void 0x0:_0x2c5dee[_0x5236b5(0x2df)])==null;}let xa=class extends _0x464e07{constructor(_0x106418,_0x38d95c,_0x365971,_0x462911,_0x222452,_0x2bcc0d){const _0x269ccd=_0xad1a59;super(),this[_0x269ccd(0xc7)]=_0x106418,this[_0x269ccd(0x167)]=_0x38d95c,this[_0x269ccd(0x131)]=_0x365971,this[_0x269ccd(0x166)]=_0x462911,this['_docLayoutInteractionService']=_0x222452,this[_0x269ccd(0x318)]=_0x2bcc0d,Z(this,_0x269ccd(0x155),null),Z(this,'_layoutInteraction',null),this[_0x269ccd(0x22d)](),this[_0x269ccd(0x2e6)](),this[_0x269ccd(0x158)]();}[_0xad1a59(0x1d9)](){const _0x29e201=_0xad1a59;this[_0x29e201(0x2c1)](),super[_0x29e201(0x1d9)]();}[_0xad1a59(0x22d)](){const _0x4cf708=_0xad1a59;let {scene:_0x2de14d}=this[_0x4cf708(0xc7)];this['disposeWithMe'](_0x2de14d[_0x4cf708(0x1b1)][_0x4cf708(0xcd)]((_0xfc11c,_0x25c0d5)=>{const _0x3bcf9e=_0x4cf708;let {offsetX:_0x18978a,offsetY:_0x370834}=_0xfc11c,_0x11dc4a=_0x3960b4['FromArray']([_0x18978a,_0x370834]),_0x241c31=ya(_0x2de14d[_0x3bcf9e(0x13e)](_0x11dc4a))??this[_0x3bcf9e(0x26b)](_0x11dc4a);if(_0x241c31){_0x25c0d5['stopPropagation']();let _0x4355cd=this[_0x3bcf9e(0x318)][_0x3bcf9e(0x2b9)](_0x241c31[_0x3bcf9e(0x306)],_0x241c31['subUnitId'],_0x241c31[_0x3bcf9e(0x13a)]);if(!_0x4355cd||_0x193ed1(_0x4355cd['getShapeType']())||!ba(_0x4355cd[_0x3bcf9e(0x226)]()))return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x241c31[_0x3bcf9e(0x306)],'subUnitId':_0x241c31[_0x3bcf9e(0x19b)],'shapeId':_0x241c31[_0x3bcf9e(0x13a)],'shapeKey':_0x241c31[_0x3bcf9e(0x2d8)]});}}));}[_0xad1a59(0x26b)](_0x4ee8e6){const _0x4ef9f1=_0xad1a59;let {scene:_0x41d2d4}=this[_0x4ef9f1(0xc7)];return this[_0x4ef9f1(0x131)][_0x4ef9f1(0x2ff)]()['map'](_0x5ae1e2=>_0x41d2d4['getObjectIncludeInGroup'](_0x1cc035(_0x5ae1e2)))['find'](_0x40b1fe=>_0x40b1fe instanceof Ri&&_0x40b1fe['isHit'](_0x4ee8e6))??null;}[_0xad1a59(0x2e6)](){const _0x932a56=_0xad1a59;this['disposeWithMe'](this[_0x932a56(0x131)][_0x932a56(0x307)][_0x932a56(0x245)](_0x1cc7c2=>{const _0x4059de=_0x932a56;if(_0x1cc7c2['length']===0x1){let _0x1e50c3=_0x1cc7c2[0x0],_0x23f9a4=this[_0x4059de(0x131)][_0x4059de(0x164)](_0x1e50c3);if((_0x23f9a4==null?void 0x0:_0x23f9a4[_0x4059de(0x289)])===_0x16107f[_0x4059de(0x284)]){let _0x3da9d8=this[_0x4059de(0x167)][_0x4059de(0x15c)]();if((_0x3da9d8==null?void 0x0:_0x3da9d8[_0x4059de(0x13a)])===_0x1e50c3['drawingId']&&_0x3da9d8['visible'])return;_0x193ed1(this[_0x4059de(0x318)][_0x4059de(0x159)](_0x1e50c3['unitId'],_0x1e50c3['subUnitId'],_0x1e50c3[_0x4059de(0xdb)]))&&this[_0x4059de(0x167)]['setEditing'](null);}else this[_0x4059de(0x167)][_0x4059de(0x173)]();}else this['_shapeTextEditingService']['completeEditing']();})),this[_0x932a56(0x1a6)](this[_0x932a56(0x131)][_0x932a56(0x2e2)][_0x932a56(0x245)](_0x43e6d6=>{const _0xd7c478=_0x932a56;let _0x24e7f5=this[_0xd7c478(0x167)][_0xd7c478(0x15c)]();_0x24e7f5&&_0x43e6d6[_0xd7c478(0x2e5)](_0x28465f=>_0x28465f[_0xd7c478(0xdb)]===_0x24e7f5['shapeId'])&&this[_0xd7c478(0x167)][_0xd7c478(0x1d8)](null);}));}[_0xad1a59(0x158)](){const _0x115759=_0xad1a59;this[_0x115759(0x1a6)](this[_0x115759(0x167)]['editingParams$'][_0x115759(0x245)](_0x401d67=>{const _0x39feeb=_0x115759;(_0x401d67==null?void 0x0:_0x401d67[_0x39feeb(0x260)])===!0x0&&_0x401d67[_0x39feeb(0x306)]===this[_0x39feeb(0xc7)][_0x39feeb(0x306)]?this['_layoutInteraction']??=this[_0x39feeb(0x114)]['beginInteraction']():this['_endLayoutInteraction']();let {scene:_0x5d1ef2}=this[_0x39feeb(0xc7)];if(this[_0x39feeb(0x155)]){let _0x2991e5=_0x5d1ef2[_0x39feeb(0x2c2)](this['_lastEditingShapeKey']);_0x2991e5&&_0x2991e5['setEditing'](!0x1);}if(_0x401d67){let _0x49f191=!!_0x401d67[_0x39feeb(0x260)],_0xcc6b52=_0x5d1ef2['getObjectIncludeInGroup'](_0x401d67[_0x39feeb(0xbe)]);_0xcc6b52&&(_0xcc6b52[_0x39feeb(0x1d8)](_0x49f191),this[_0x39feeb(0x155)]=_0x401d67[_0x39feeb(0xbe)]),this['_contextService'][_0x39feeb(0x1b8)](_0xc93721,_0x49f191);}else this[_0x39feeb(0x155)]=null,this[_0x39feeb(0x166)][_0x39feeb(0x1b8)](_0xc93721,!0x1);}));}[_0xad1a59(0x2c1)](){const _0x13de6d=_0xad1a59;var _0xbc3bff;(_0xbc3bff=this['_layoutInteraction'])==null||_0xbc3bff['dispose'](),this[_0x13de6d(0x197)]=null;}};xa=Y([J(0x1,_0x419b44(Q)),J(0x2,_0x594fd5),J(0x3,_0x45c1ed),J(0x4,_0x419b44(_0x263cc3)),J(0x5,_0x419b44(_0x3fc69e))],xa);let Sa=class extends _0x243ce0{constructor(_0x4d6822,_0xc71bf6,_0x3d9364,_0x2f7bce,_0x38085f,_0x5a1500,_0x55681c,_0x49975c,_0x179d8a,_0x410a0c){super(_0x4d6822,_0xc71bf6,_0x3d9364,_0x2f7bce,_0x38085f,_0x5a1500,_0x55681c,_0x49975c,_0x179d8a,_0x410a0c,{'componentKey':xr,'editorUnitId':br});}};Sa=Y([J(0x1,_0x419b44(_0x2ae6f5)),J(0x2,_0x419b44(_0x27caad)),J(0x3,_0x419b44(_0x409f50)),J(0x4,_0x4d71da),J(0x5,_0x419b44(_0x36edd8)),J(0x6,_0x419b44(_0x15fbf7)),J(0x7,_0x419b44(_0x31fa8b)),J(0x8,_0x419b44(_0x2419c5)),J(0x9,_0x419b44(Q))],Sa);let Ca=class extends _0x464e07{constructor(_0x10bb52,_0x1028ce,_0x131803,_0x318b25,_0x30bd45,_0x3f3add,_0x1017f3,_0x1dfb31,_0x4d0464,_0x430726,_0x396dc3,_0x1260af){const _0x1f31ff=_0xad1a59;super(),this[_0x1f31ff(0x2f6)]=_0x10bb52,this[_0x1f31ff(0x20b)]=_0x1028ce,this[_0x1f31ff(0x1ba)]=_0x131803,this['_docsShapeService']=_0x318b25,this['_localeService']=_0x30bd45,this[_0x1f31ff(0x100)]=_0x3f3add,this[_0x1f31ff(0x131)]=_0x1017f3,this[_0x1f31ff(0x242)]=_0x1dfb31,this['_renderManagerService']=_0x4d0464,this[_0x1f31ff(0x166)]=_0x430726,this[_0x1f31ff(0x167)]=_0x396dc3,this[_0x1f31ff(0x12a)]=_0x1260af,Z(this,_0x1f31ff(0x113),null),Z(this,_0x1f31ff(0xd6),null),Z(this,_0x1f31ff(0x23c),!0x1),Z(this,_0x1f31ff(0x2f3),0x0),Z(this,_0x1f31ff(0x2b1),new Map()),Z(this,_0x1f31ff(0x20f),new Map()),this[_0x1f31ff(0x2f2)](),this[_0x1f31ff(0x1a6)](this[_0x1f31ff(0x2f6)][_0x1f31ff(0x1e2)](_0x312956[_0x1f31ff(0xde)])[_0x1f31ff(0x245)](_0x439efd=>{const _0x136bcf=_0x1f31ff;if(!_0x439efd){var _0x22d01f;(_0x22d01f=this[_0x136bcf(0x113)])==null||_0x22d01f[_0x136bcf(0x1d9)]();}})),this['_registerOperations'](),this[_0x1f31ff(0x1a6)](_0x1dafe7(this[_0x1f31ff(0xda)],_0x312956[_0x1f31ff(0xde)],_0x1e6ac2=>this['_popupMenuListener'](_0x1e6ac2))),this[_0x1f31ff(0x1a6)](this[_0x1f31ff(0x167)][_0x1f31ff(0x2b5)][_0x1f31ff(0x245)](_0x43210c=>{const _0x2f0006=_0x1f31ff;_0x43210c&&this[_0x2f0006(0x293)](void 0x0,!0x0);})),this[_0x1f31ff(0x1a6)](this[_0x1f31ff(0x12a)][_0x1f31ff(0x191)][_0x1f31ff(0x245)](()=>{const _0x1af31c=_0x1f31ff;this[_0x1af31c(0x131)][_0x1af31c(0x2ff)]()[_0x1af31c(0x2e5)](_0x528c7c=>_0x528c7c[_0x1af31c(0x289)]===_0x16107f[_0x1af31c(0x284)]&&this[_0x1af31c(0x2f6)][_0x1af31c(0x1fa)](_0x528c7c[_0x1af31c(0x306)])===_0x312956[_0x1af31c(0xde)]&&!this[_0x1af31c(0x1f7)](_0x528c7c[_0x1af31c(0x306)],_0x528c7c[_0x1af31c(0xdb)]))&&(this[_0x1af31c(0x293)](void 0x0,!0x0),this[_0x1af31c(0x125)]());}));}[_0xad1a59(0x2f2)](){const _0x4ca970=_0xad1a59;this['_menuManagerService'][_0x4ca970(0x1f4)](Di);}[_0xad1a59(0x291)](_0x50e0ba,_0x1836f4,_0x324c8a,_0x4f2c19){const _0x549107=_0xad1a59;return[{'label':_0x549107(0x190),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x50e0ba,'subUnitId':_0x1836f4,'drawingId':_0x324c8a},'disable':_0x4f2c19===_0x16107f['DRAWING_DOM']},{'label':_0x549107(0x176),'index':0x1,'commandId':_0x2bbbc0['id'],'commandParams':{'unitId':_0x50e0ba,'drawings':[{'unitId':_0x50e0ba,'subUnitId':_0x1836f4,'drawingId':_0x324c8a}]},'disable':!0x1},{'label':_0x549107(0x19e),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x50e0ba,'subUnitId':_0x1836f4,'drawingId':_0x324c8a},'disable':!0x1}];}[_0xad1a59(0x203)](_0x5113cf,_0x503483,_0x3cb97e){const _0x5ddccc=_0xad1a59;let _0x188065=this[_0x5ddccc(0x318)][_0x5ddccc(0x10c)](_0x5113cf,_0x503483,_0x3cb97e),_0x4b62a9=this[_0x5ddccc(0x318)][_0x5ddccc(0xdc)](_0x5113cf,_0x503483,_0x3cb97e);return _0x188065!==void 0x0&&_0x4b62a9!==void 0x0?{'shapeData':_0x4b62a9,'shapeId':_0x3cb97e,'shapeType':_0x188065,'unitId':_0x5113cf,'subUnitId':_0x503483,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}['_clearPopups'](_0x38c121,_0x484a3d=!0x1){const _0x13c4b5=_0xad1a59;if(_0x38c121==null){[...this[_0x13c4b5(0x2b1)][_0x13c4b5(0x107)]()][_0x13c4b5(0x302)](_0x2ce149=>this[_0x13c4b5(0x293)](_0x2ce149,_0x484a3d));return;}let _0x217e63=this[_0x13c4b5(0x2b1)][_0x13c4b5(0x216)](_0x38c121);if(_0x217e63){for(let _0x46c4bd=_0x217e63[_0x13c4b5(0x296)]-0x1;_0x46c4bd>=0x0;--_0x46c4bd){let _0x6048a3=_0x217e63[_0x46c4bd];(_0x484a3d||_0x6048a3[_0x13c4b5(0x228)]())&&(_0x6048a3[_0x13c4b5(0x1d9)](),_0x217e63['splice'](_0x46c4bd,0x1));}_0x217e63[_0x13c4b5(0x296)]===0x0&&(this['_disposePopupsByUnit'][_0x13c4b5(0x273)](_0x38c121),this[_0x13c4b5(0x20f)][_0x13c4b5(0x273)](_0x38c121));}}[_0xad1a59(0x14d)](_0x4b55d6){const _0x1256ac=_0xad1a59;let _0x35cb13=this['_disposePopupsByUnit'][_0x1256ac(0x216)](_0x4b55d6);if(_0x35cb13)return _0x35cb13;let _0x70a2d5=[];return this[_0x1256ac(0x2b1)]['set'](_0x4b55d6,_0x70a2d5),_0x70a2d5;}[_0xad1a59(0x130)](_0x27c6f6){const _0x33aebf=_0xad1a59;var _0x302c6b;let _0x350f87=new _0x29bfb7(),_0x9dac84=(_0x302c6b=this[_0x33aebf(0xda)]['getAllRenderersOfType'](_0x312956[_0x33aebf(0xde)])[_0x33aebf(0x1a5)](_0x38c066=>_0x38c066[_0x33aebf(0x111)][_0x33aebf(0xea)]()===_0x27c6f6))==null?void 0x0:_0x302c6b[_0x33aebf(0x306)];return _0x9dac84?(_0x350f87[_0x33aebf(0x199)](_0x27c6f6[_0x33aebf(0x2bd)][_0x33aebf(0x245)](()=>this[_0x33aebf(0x297)](_0x27c6f6,_0x9dac84))),_0x350f87[_0x33aebf(0x199)](_0x27c6f6[_0x33aebf(0x2d0)]['subscribe'](()=>{const _0xb3f6e3=_0x33aebf;this[_0xb3f6e3(0x293)](_0x9dac84),queueMicrotask(()=>{const _0x472f9a=_0xb3f6e3;_0x27c6f6['getSelectedObjectMap']()[_0x472f9a(0x115)]>0x0||(this[_0x472f9a(0x166)][_0x472f9a(0x1b8)](_0x1df010,!0x1),this[_0x472f9a(0x131)][_0x472f9a(0x2e3)](null));});})),_0x350f87[_0x33aebf(0x199)](_0x27c6f6['changing$']['subscribe'](()=>{const _0x1ecc67=_0x33aebf;this[_0x1ecc67(0x293)](_0x9dac84,!0x0);})),_0x350f87):_0x350f87;}[_0xad1a59(0x297)](_0x3d8596,_0x1d696f){const _0x243b87=_0xad1a59;let _0xba44b2=_0x3d8596['getSelectedObjectMap']();if(this[_0x243b87(0x23c)]){this[_0x243b87(0x293)](_0x1d696f,!0x0);return;}if(_0xba44b2[_0x243b87(0x115)]>0x1){this[_0x243b87(0x293)](_0x1d696f);return;}let _0x139d75=_0xba44b2[_0x243b87(0x2d3)]()[_0x243b87(0x1f9)]()[_0x243b87(0x2a4)];if(!_0x139d75){this['_clearPopups'](_0x1d696f);return;}let _0xf1d90=this['_drawingManagerService']['getDrawingOKey'](_0x139d75[_0x243b87(0x2d8)]);if(!_0xf1d90||_0xf1d90[_0x243b87(0x289)]!==_0x16107f[_0x243b87(0x284)]){this[_0x243b87(0x293)](_0x1d696f);return;}let {unitId:_0x2ca2e8,subUnitId:_0x337ae4,drawingId:_0x5a9900,drawingType:_0x2ed0f1}=_0xf1d90;if(!this[_0x243b87(0x1f7)](_0x2ca2e8,_0x5a9900)){this['_clearPopups'](_0x1d696f,!0x0);return;}let _0x3e152c=this[_0x243b87(0x203)](_0x2ca2e8,_0x337ae4,_0x5a9900);if(!_0x3e152c){this[_0x243b87(0x293)](_0x1d696f);return;}let _0x5943ae=this['_disposePopupsByUnit'][_0x243b87(0x216)](_0x1d696f),_0x24b8e4=_0x2ca2e8+':'+_0x337ae4+':'+_0x5a9900;if(this[_0x243b87(0x20f)][_0x243b87(0x216)](_0x1d696f)===_0x24b8e4&&_0x5943ae&&_0x5943ae['length']>0x0)return;this['_clearPopups'](_0x1d696f);let _0x21f846=this['_renderManagerService']['getRenderUnitById'](_0x2ca2e8),_0x602e0a=((_0x21f846==null?void 0x0:_0x21f846[_0x243b87(0x1e6)])===!0x1?_0x21f846['with'](_0x27caad):this[_0x243b87(0x242)])[_0x243b87(0xcb)](_0x139d75,this['_getShapePopup'](_0x3e152c,_0x2ed0f1),_0x2ca2e8);this[_0x243b87(0x1a6)](_0x602e0a),this[_0x243b87(0x14d)](_0x1d696f)[_0x243b87(0xb9)](_0x602e0a),this[_0x243b87(0x20f)][_0x243b87(0x219)](_0x1d696f,_0x24b8e4),this[_0x243b87(0x131)]['getFocusDrawings']()['some'](_0x22ace6=>_0x22ace6[_0x243b87(0x306)]===_0x2ca2e8&&_0x22ace6[_0x243b87(0x19b)]===_0x337ae4&&_0x22ace6[_0x243b87(0xdb)]===_0x5a9900)||this[_0x243b87(0x131)][_0x243b87(0x2e3)]([{'unitId':_0x2ca2e8,'subUnitId':_0x337ae4,'drawingId':_0x5a9900}]);}[_0xad1a59(0x26a)](_0x5ce114,_0x2513af){const _0x2f8cd5=_0xad1a59;return{'componentKey':na,'direction':'vertical-center','offset':[0x0,_0x2331dc],'extraProps':{'unitId':_0x5ce114[_0x2f8cd5(0x306)],'subUnitId':_0x5ce114[_0x2f8cd5(0x19b)],'drawingId':_0x5ce114['shapeId'],'drawingType':_0x2513af,'shapeType':_0x5ce114[_0x2f8cd5(0x23e)],'shapeData':_0x5ce114['shapeData']}};}[_0xad1a59(0x1f7)](_0x2447f5,_0x1a450a){const _0x52563a=_0xad1a59;let _0x40a6e3=this[_0x52563a(0x2f6)]['getUnit'](_0x2447f5,_0x312956['UNIVER_DOC']);if(!_0x40a6e3)return!0x1;let _0x20ecac=_0x3519d2(_0x40a6e3,_0x1a450a);return _0x1fab01(this['_permissionService'],_0x2447f5,[..._0x54d8e6(_0x40a6e3,_0x20ecac,_0x52563a(0x1ae),_0x1a450a),_0x2c866a(_0x20ecac,_0x52563a(0x1ae),_0x1a450a)]);}[_0xad1a59(0x2c3)](){const _0x21d664=_0xad1a59;this[_0x21d664(0x1a6)](this[_0x21d664(0x100)][_0x21d664(0x20e)](_0x3267a1=>{const _0x4fa84a=_0x21d664;if(_0x3267a1['id']===q['id']){let {unitId:_0x46194a,subUnitId:_0x5339a6,drawingId:_0x1d9347}=_0x3267a1[_0x4fa84a(0x112)];this[_0x4fa84a(0x2f3)]+=0x1,this['_activeShapeInfo']=this[_0x4fa84a(0x203)](_0x46194a,_0x5339a6,_0x1d9347),this[_0x4fa84a(0x293)](void 0x0,!0x0),this[_0x4fa84a(0xb3)]();}if(_0x3267a1['id']===Ai['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']()),_0x3267a1['id']===_0x18e8b3['id']){let {unitId:_0x195078,shapeId:_0xd06cf3}=_0x3267a1['params'];if(this[_0x4fa84a(0xd6)]&&this[_0x4fa84a(0xd6)][_0x4fa84a(0x13a)]===_0xd06cf3){let _0x5468e4=this['_getShapeInfo'](_0x195078,this[_0x4fa84a(0xd6)][_0x4fa84a(0x19b)],_0xd06cf3);_0x5468e4&&(this[_0x4fa84a(0x2f3)]+=0x1,_0x5468e4[_0x4fa84a(0x1d5)]=this['_shapeEditPanelVersion'],this[_0x4fa84a(0xd6)]=_0x5468e4,this[_0x4fa84a(0x23c)]&&this[_0x4fa84a(0xb3)]());}}})),this[_0x21d664(0x1a6)](this['_drawingManagerService']['focus$']['subscribe'](_0x39ea2e=>{const _0x2fbe23=_0x21d664;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x39ea2e[_0x2fbe23(0x296)]===0x0){this[_0x2fbe23(0xd6)]=null,this[_0x2fbe23(0x125)]();return;}if(_0x39ea2e[_0x2fbe23(0x296)]===0x1&&_0x39ea2e[0x0][_0x2fbe23(0x289)]===_0x16107f[_0x2fbe23(0x284)]&&(this[_0x2fbe23(0x2f3)]+=0x1,this[_0x2fbe23(0xd6)]=this[_0x2fbe23(0x203)](_0x39ea2e[0x0][_0x2fbe23(0x306)],_0x39ea2e[0x0]['subUnitId'],_0x39ea2e[0x0][_0x2fbe23(0xdb)]),this[_0x2fbe23(0xd6)])){this[_0x2fbe23(0xb3)]();return;}let _0x1727a7=_0x39ea2e[_0x2fbe23(0x1ec)](_0x2f7ddd=>_0x2f7ddd[_0x2fbe23(0x289)]===_0x16107f[_0x2fbe23(0x284)]);if(_0x39ea2e[_0x2fbe23(0x296)]>0x1&&_0x1727a7['length']===_0x39ea2e['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x2fbe23(0xd6)]=this['_getShapeInfo'](_0x39ea2e[0x0][_0x2fbe23(0x306)],_0x39ea2e[0x0][_0x2fbe23(0x19b)],_0x39ea2e[0x0][_0x2fbe23(0xdb)]),this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{if(this[_0x2fbe23(0x2f3)]+=0x1,this[_0x2fbe23(0xd6)]=this['_getShapeInfo'](_0x39ea2e[0x0][_0x2fbe23(0x306)],_0x39ea2e[0x0]['subUnitId'],_0x39ea2e[0x0][_0x2fbe23(0xdb)]),this[_0x2fbe23(0xd6)]){this['_activeShapeInfo'][_0x2fbe23(0xd0)]=!0x0,this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}[_0xad1a59(0xb3)](){const _0x5764c0=_0xad1a59;this[_0x5764c0(0xd6)]&&(this[_0x5764c0(0x113)]=this[_0x5764c0(0x20b)][_0x5764c0(0x1ac)]({'id':K,'header':{'title':this['_localeService']['t'](_0x5764c0(0x21f))},'width':0x184,'children':{'label':K,...this[_0x5764c0(0xd6)]},'onClose':()=>{const _0x54ee97=_0x5764c0;this[_0x54ee97(0x131)]['focusDrawing'](null),this['_contextService']['setContextValue'](_0x1df010,!0x1),this[_0x54ee97(0x113)]=null;}}),this[_0x5764c0(0x23c)]=!0x0);}[_0xad1a59(0x125)](){const _0x5c37bd=_0xad1a59;this['_isOpenedShapeEditPanel']=!0x1,this[_0x5c37bd(0x20b)][_0x5c37bd(0xf9)](K),this['_sidebarDisposable']=null,this['_contextService'][_0x5c37bd(0x1b8)](_0x1df010,!0x1),this[_0x5c37bd(0x131)][_0x5c37bd(0x2e3)](null);}};Ca=Y([J(0x0,_0x25edd3),J(0x1,_0x419b44(_0x4b4d23)),J(0x2,_0x476c9d),J(0x3,_0x419b44(_0x3fc69e)),J(0x4,_0x419b44(_0x4574f5)),J(0x5,_0x4d71da),J(0x6,_0x594fd5),J(0x7,_0x419b44(_0x27caad)),J(0x8,_0x368952),J(0x9,_0x45c1ed),J(0xa,_0x419b44(Q)),J(0xb,_0x9c7e02)],Ca);let wa=class extends _0x464e07{constructor(_0x2c813e,_0x4b80f8){const _0x20c3fe=_0xad1a59;super(),this[_0x20c3fe(0x318)]=_0x2c813e,this['_localeService']=_0x4b80f8,this['disposeWithMe'](_0xf4ef4a(_0x351d29((_0x5845d4,_0x18c2a9,_0x1dc5b4)=>this['_measure'](_0x5845d4,_0x18c2a9,_0x1dc5b4))));}[_0xad1a59(0x157)](_0xabd89b,_0x40c433,_0xc79c15){const _0x3db272=_0xad1a59;let _0x5ecc59=this[_0x3db272(0x318)]['getShapeModel'](_0xabd89b,_0x40c433);if(!_0x5ecc59)return null;let _0x2de995=_0x5ecc59[_0x3db272(0x226)](),_0x4c1fc9=_0x5c2191(_0x2de995),_0x1af4b9=_0x2de995[_0x3db272(0x101)];if(!_0x1af4b9||_0x4c1fc9[_0x3db272(0x1b9)]!==_0x3ab18f[_0x3db272(0xc2)])return null;let _0xbb68cc=_0xc79c15[_0x3db272(0x14c)],_0x31e34e=_0xc79c15[_0x3db272(0x2bf)];_0x5ecc59[_0x3db272(0x29b)]({'width':_0xbb68cc,'height':_0x31e34e});let _0x175c63=_0x5ecc59[_0x3db272(0x12f)]({'left':0x0,'top':0x0,'width':_0xbb68cc,'height':_0x31e34e}),_0x1c230d=_0x5659e7(_0x3db272(0x235)in _0x1af4b9?_0x1af4b9['dataModel']:void 0x0),_0xba2538=(_0x1c230d==null?void 0x0:_0x1c230d[_0x3db272(0x21a)])??(_0x3db272(0x30d)in _0x1af4b9?_0x1e932a(_0x1af4b9,_0x40c433+_0x3db272(0x128)):null);if(!_0xba2538)return null;let _0x2f36f3=_0xc7eb1f({'documentData':_0xba2538,'height':_0x31e34e,'shapeData':_0x2de995,'textRect':_0x175c63,'width':_0xbb68cc,'widthBuffer':0x0});_0x2f36f3&&({width:_0xbb68cc,height:_0x31e34e}=_0x2f36f3,_0x5ecc59['updateContext']({'width':_0xbb68cc,'height':_0x31e34e}),_0x175c63=_0x5ecc59[_0x3db272(0x12f)]({'left':0x0,'top':0x0,'width':_0xbb68cc,'height':_0x31e34e}));let _0x42e80c=_0x1af4b9[_0x3db272(0x2d9)]!==!0x1,_0x3790d1=_0x314372(_0xba2538,{'isHorizontal':_0x42e80c,'textRect':_0x175c63,'verticalAlign':_0x1c230d==null?void 0x0:_0x1c230d['va'],'horizontalAlign':_0x1c230d==null?void 0x0:_0x1c230d['ha'],'wrapStrategy':_0x2957db(_0x2de995)}),_0xe721c2=new _0x18a8fc(_0x3790d1),_0xda0ed8=new _0x1d3879(_0xe721c2),_0x44521b=_0x454db7[_0x3db272(0x188)](_0xda0ed8,this[_0x3db272(0x1a4)]);try{var _0x3d2602,_0x37bbfc;_0x44521b['calculate']();let _0x41eef6=((_0x3d2602=_0x44521b[_0x3db272(0x12b)]())==null?void 0x0:_0x3d2602['pages'])??[],_0x9aa026=_0x41eef6[_0x41eef6['length']-0x1],_0x590fd7=_0x9aa026?Math[_0x3db272(0xb7)](0x0,((_0x37bbfc=_0x464d4f(_0x9aa026))==null?void 0x0:_0x37bbfc[_0x3db272(0xdf)])??0x0):0x0,_0xf98168=_0x44521b[_0x3db272(0x217)]()[_0x3db272(0x168)]+_0x590fd7-(_0x42e80c?_0x175c63['height']:_0x175c63['width']);return Number[_0x3db272(0x2db)](_0xf98168)?_0x42e80c?{'width':_0xbb68cc,'height':Math[_0x3db272(0xb7)](0x1,_0x31e34e+_0xf98168)}:{'width':Math[_0x3db272(0xb7)](0x1,_0xbb68cc+_0xf98168),'height':_0x31e34e}:null;}finally{_0x44521b[_0x3db272(0x1d9)](),_0xda0ed8[_0x3db272(0x1d9)](),_0xe721c2[_0x3db272(0x1d9)]();}}};wa=Y([J(0x0,_0x419b44(_0x3fc69e)),J(0x1,_0x419b44(_0x4574f5))],wa);let Ta=class extends _0x4de273{constructor(_0x35a371=Mi,_0x500c86,_0x1c14df,_0x3e1de7,_0xdeadf2){const _0x9c2293=_0xad1a59;super(),this[_0x9c2293(0x127)]=_0x35a371,this[_0x9c2293(0x221)]=_0x500c86,this[_0x9c2293(0x100)]=_0x1c14df,this['_configService']=_0x3e1de7,this[_0x9c2293(0xda)]=_0xdeadf2;let {menu:_0x497471,..._0x3168a8}=_0x4ae44c({},Mi,this[_0x9c2293(0x127)]);_0x497471&&this[_0x9c2293(0x1fd)][_0x9c2293(0x15f)](_0x9c2293(0xfa),_0x497471,{'merge':!0x0}),this[_0x9c2293(0x1fd)]['setConfig'](ji,_0x3168a8),this['_initCommands']();}[_0xad1a59(0x27e)](){const _0x543a12=_0xad1a59;_0x3d81ae(this[_0x543a12(0x221)],this[_0x543a12(0x2ba)]()),this['_injector'][_0x543a12(0x216)](ga),this['_initUIPart']();}[_0xad1a59(0x2ba)](){return[[ga],[Ca],[ma],[$],[Vi],[zi],[X],[Xi],[wa],[Q],[pa]];}['onReady'](){const _0x5662dc=_0xad1a59;this[_0x5662dc(0x19f)]()['forEach'](_0x589741=>{const _0x4b1f72=_0x5662dc;this[_0x4b1f72(0x1a6)](this[_0x4b1f72(0xda)][_0x4b1f72(0x2e0)](_0x312956[_0x4b1f72(0xde)],_0x589741));}),_0x14a56b(this['_injector'],[[Ca],[ma],[$],[Vi],[X],[Xi],[wa],[Q],[pa]]);}['_getRenderModules'](){return[[zi],[xa],[_a]];}[_0xad1a59(0x10e)](){const _0x3e4067=_0xad1a59;this['disposeWithMe'](this['_renderManagerService'][_0x3e4067(0x2e0)](_0x312956[_0x3e4067(0xde)],[Sa]));}['_initCommands'](){const _0x492735=_0xad1a59;[G,Ai,q,Cr,Tr,Er]['forEach'](_0x45a1b3=>this[_0x492735(0x1a6)](this['_commandService'][_0x492735(0x2cf)](_0x45a1b3)));}[_0xad1a59(0x2a5)](){const _0x597c13=_0xad1a59;let _0x3074cd=this[_0x597c13(0x221)],_0x11c95a=_0x3074cd[_0x597c13(0x216)](_0x20dff5);this[_0x597c13(0x1a6)](_0x11c95a[_0x597c13(0x14f)](_0x2bb9a4[_0x597c13(0x234)],()=>_0x5634bd(la,_0x3074cd)));}};Z(Ta,_0xad1a59(0x19a),_0x312956[_0xad1a59(0xde)]),Z(Ta,_0xad1a59(0x1a7),_0xad1a59(0x1af)),Z(Ta,_0xad1a59(0x287),Oi),Z(Ta,_0xad1a59(0x1d5),ki),Ta=Y([_0x576ad0(_0x4c0897,_0x962e3d,_0x2de2b7,_0x23c413,_0xe383d4,_0x45f45b,_0x8a55b7,_0x4ee0fd,_0x344219,_0xc210a4),J(0x1,_0x419b44(_0x1ae8f5)),J(0x2,_0x4d71da),J(0x3,_0x5a4431),J(0x4,_0x368952)],Ta);export{Di as DocsShapeUIMenuSchema,ha as UniverDocsShapeMobileUIPlugin,Ta as UniverDocsShapeUIPlugin};
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};